lwc

package
v0.75.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const NAME = "LightningComponentBundle"

Variables

This section is empty.

Functions

This section is empty.

Types

type LightningComponentBundle

type LightningComponentBundle struct {
	metadata.MetadataInfo
	XMLName    xml.Name `xml:"LightningComponentBundle"`
	Xmlns      string   `xml:"xmlns,attr"`
	Fqn        *string  `xml:"fqn,attr"`
	ApiVersion struct {
		Text string `xml:",chardata"`
	} `xml:"apiVersion"`
	Description *struct {
		Text string `xml:",chardata"`
	} `xml:"description"`
	IsExposed struct {
		Text string `xml:",chardata"`
	} `xml:"isExposed"`
	MasterLabel *struct {
		Text string `xml:",chardata"`
	} `xml:"masterLabel"`
	RuntimeNamespace *struct {
		Text string `xml:",chardata"`
	} `xml:"runtimeNamespace"`
	Targets *struct {
		Target []struct {
			Text string `xml:",chardata"`
		} `xml:"target"`
	} `xml:"targets"`
	TargetConfigs *TargetConfigs    `xml:"targetConfigs"`
	BundleFiles   map[string][]byte `xml:"-"`
	SourcePath    string            `xml:"-"`
}

func Open

func Open(path string) (*LightningComponentBundle, error)

func (*LightningComponentBundle) Files

func (c *LightningComponentBundle) Files(format metadata.Format) (map[string][]byte, error)

func (*LightningComponentBundle) SetMetadata

func (*LightningComponentBundle) Tidy

func (c *LightningComponentBundle) Tidy()

Tidy implements the general.Tidyable interface It sorts targets and targetConfigs to ensure consistent output

func (*LightningComponentBundle) Type

type TargetConfig added in v0.69.0

type TargetConfig struct {
	Xmlns    *string                `xml:"xmlns,attr"`
	Targets  string                 `xml:"targets,attr"`
	Property []TargetConfigProperty `xml:"property"`
	Objects  *struct {
		Object []struct {
			Text string `xml:",chardata"`
		} `xml:"object"`
	} `xml:"objects"`
	SupportedFormFactors *struct {
		SupportedFormFactor []struct {
			Type string `xml:"type,attr"`
		} `xml:"supportedFormFactor"`
	} `xml:"supportedFormFactors"`
	ActionType *struct {
		Text string `xml:",chardata"`
	} `xml:"actionType"`
}

type TargetConfigProperty added in v0.69.0

type TargetConfigProperty struct {
	Name        string  `xml:"name,attr"`
	Label       *string `xml:"label,attr"`
	Type        string  `xml:"type,attr"`
	Role        *string `xml:"role,attr"`
	Description *string `xml:"description,attr"`
	Datasource  *string `xml:"datasource,attr"`
	Default     *string `xml:"default,attr"`
	Required    *string `xml:"required,attr"`
}

type TargetConfigs added in v0.69.0

type TargetConfigs struct {
	TargetConfig []TargetConfig `xml:"targetConfig"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL