@salesforce/plugin-templates 57.1.2 → 57.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -132,6 +132,7 @@ Congrats, you are debugging!
132
132
  - [`sf template generate project`](#sf-template-generate-project)
133
133
  - [`sf template generate static-resource`](#sf-template-generate-static-resource)
134
134
  - [`sf template generate ui-bundle`](#sf-template-generate-ui-bundle)
135
+ - [`sf template generate ui-embedding`](#sf-template-generate-ui-embedding)
135
136
  - [`sf template generate visualforce component`](#sf-template-generate-visualforce-component)
136
137
  - [`sf template generate visualforce page`](#sf-template-generate-visualforce-page)
137
138
 
@@ -177,7 +178,7 @@ FLAG DESCRIPTIONS
177
178
  directory.
178
179
  ```
179
180
 
180
- _See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/analytics/template.ts)_
181
+ _See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/analytics/template.ts)_
181
182
 
182
183
  ## `sf template generate apex class`
183
184
 
@@ -239,7 +240,7 @@ FLAG DESCRIPTIONS
239
240
  Supplied parameter values or default values are filled into a copy of the template.
240
241
  ```
241
242
 
242
- _See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/apex/class.ts)_
243
+ _See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/apex/class.ts)_
243
244
 
244
245
  ## `sf template generate apex trigger`
245
246
 
@@ -309,7 +310,7 @@ FLAG DESCRIPTIONS
309
310
  Supplied parameter values or default values are filled into a copy of the template.
310
311
  ```
311
312
 
312
- _See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/apex/trigger.ts)_
313
+ _See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/apex/trigger.ts)_
313
314
 
314
315
  ## `sf template generate digital-experience site`
315
316
 
@@ -363,7 +364,7 @@ FLAG DESCRIPTIONS
363
364
  project, defaults to the current directory.
364
365
  ```
365
366
 
366
- _See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/digital-experience/site.ts)_
367
+ _See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/digital-experience/site.ts)_
367
368
 
368
369
  ## `sf template generate flexipage`
369
370
 
@@ -445,7 +446,7 @@ FLAG DESCRIPTIONS
445
446
  'Custom_Object__c'. This sets the `sobjectType` field in the FlexiPage metadata.
446
447
  ```
447
448
 
448
- _See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/flexipage/index.ts)_
449
+ _See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/flexipage/index.ts)_
449
450
 
450
451
  ## `sf template generate lightning app`
451
452
 
@@ -503,7 +504,7 @@ FLAG DESCRIPTIONS
503
504
  field in the DX project's "sfdx-project.json" file.
504
505
  ```
505
506
 
506
- _See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/lightning/app.ts)_
507
+ _See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/lightning/app.ts)_
507
508
 
508
509
  ## `sf template generate lightning component`
509
510
 
@@ -580,7 +581,7 @@ FLAG DESCRIPTIONS
580
581
  field in the DX project's "sfdx-project.json" file.
581
582
  ```
582
583
 
583
- _See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/lightning/component.ts)_
584
+ _See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/lightning/component.ts)_
584
585
 
585
586
  ## `sf template generate lightning event`
586
587
 
@@ -638,7 +639,7 @@ FLAG DESCRIPTIONS
638
639
  field in the DX project's "sfdx-project.json" file.
639
640
  ```
640
641
 
641
- _See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/lightning/event.ts)_
642
+ _See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/lightning/event.ts)_
642
643
 
643
644
  ## `sf template generate lightning interface`
644
645
 
@@ -696,7 +697,7 @@ FLAG DESCRIPTIONS
696
697
  field in the DX project's "sfdx-project.json" file.
697
698
  ```
698
699
 
699
- _See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/lightning/interface.ts)_
700
+ _See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/lightning/interface.ts)_
700
701
 
701
702
  ## `sf template generate lightning test`
702
703
 
@@ -754,7 +755,7 @@ FLAG DESCRIPTIONS
754
755
  field in the DX project's "sfdx-project.json" file.
755
756
  ```
756
757
 
757
- _See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/lightning/test.ts)_
758
+ _See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/lightning/test.ts)_
758
759
 
759
760
  ## `sf template generate project`
760
761
 
@@ -886,7 +887,7 @@ FLAG DESCRIPTIONS
886
887
  server-side type stripping.
887
888
  ```
888
889
 
889
- _See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/project/index.ts)_
890
+ _See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/project/index.ts)_
890
891
 
891
892
  ## `sf template generate static-resource`
892
893
 
@@ -949,7 +950,7 @@ FLAG DESCRIPTIONS
949
950
  etc.
950
951
  ```
951
952
 
952
- _See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/static-resource/index.ts)_
953
+ _See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/static-resource/index.ts)_
953
954
 
954
955
  ## `sf template generate ui-bundle`
955
956
 
@@ -1038,7 +1039,86 @@ FLAG DESCRIPTIONS
1038
1039
  Supplied parameter values or default values are filled into a copy of the template.
1039
1040
  ```
1040
1041
 
1041
- _See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/ui-bundle/index.ts)_
1042
+ _See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/ui-bundle/index.ts)_
1043
+
1044
+ ## `sf template generate ui-embedding`
1045
+
1046
+ Generate a Lightning Web Component (LWC) bundle that wraps the <lightning-ui-embedding> base component.
1047
+
1048
+ ```
1049
+ USAGE
1050
+ $ sf template generate ui-embedding -n <value> -s <value> --sandbox
1051
+ allow-forms|allow-modals|allow-orientation-lock|allow-pointer-lock|allow-popups|allow-popups-to-escape-sandbox|allow
1052
+ -presentation|allow-same-origin|allow-scripts|allow-storage-access-by-user-activation|allow-top-navigation|allow-top
1053
+ -navigation-by-user-activation... --title <value> [--json] [--flags-dir <value>] [-d <value>] [--api-version
1054
+ <value>]
1055
+
1056
+ FLAGS
1057
+ -d, --output-dir=<value> [default: .] Directory for saving the created files.
1058
+ -n, --name=<value> (required) Name of the generated component; must be in PascalCase format.
1059
+ -s, --src=<value> (required) Absolute HTTPS URL that the iframe will load.
1060
+ --api-version=<value> Override the api version used for api requests made by this command
1061
+ --sandbox=<option>... (required) Iframe sandbox token. Specify this flag multiple times to set more than one
1062
+ token.
1063
+ <options: allow-forms|allow-modals|allow-orientation-lock|allow-pointer-lock|allow-popups|a
1064
+ llow-popups-to-escape-sandbox|allow-presentation|allow-same-origin|allow-scripts|allow-stor
1065
+ age-access-by-user-activation|allow-top-navigation|allow-top-navigation-by-user-activation>
1066
+ --title=<value> (required) Accessible title for the embedded iframe.
1067
+
1068
+ GLOBAL FLAGS
1069
+ --flags-dir=<value> Import flag values from a directory.
1070
+ --json Format output as json.
1071
+
1072
+ DESCRIPTION
1073
+ Generate a Lightning Web Component (LWC) bundle that wraps the <lightning-ui-embedding> base component.
1074
+
1075
+ The generated LWC bundle consumes the first-party <lightning-ui-embedding> component, which is pre-wired with the
1076
+ three required attributes: the embedding URL (--src), iframe sandbox tokens, and an accessible iframe title (--title).
1077
+
1078
+ The generated LWC bundle contains four files (.html, .js, .js-meta.xml, .css) in a directory named with the camelCased
1079
+ component name. The bundle must live under a parent folder named "lwc".
1080
+
1081
+ EXAMPLES
1082
+ Generate an embedding wrapper LWC in the current directory:
1083
+
1084
+ $ sf template generate ui-embedding --name MyEmbeddingWrapper --src https://app.example.com --sandbox \
1085
+ allow-forms --title "Expense Report Embedding"
1086
+
1087
+ Generate an embedding wrapper LWC in the "force-app/main/default/lwc" directory with multiple sandbox tokens:
1088
+
1089
+ $ sf template generate ui-embedding --name MyEmbeddingWrapper --src https://app.example.com --sandbox \
1090
+ allow-forms --sandbox allow-scripts --title "Expense Report Embedding" --output-dir force-app/main/default/lwc
1091
+
1092
+ FLAG DESCRIPTIONS
1093
+ -d, --output-dir=<value> Directory for saving the created files.
1094
+
1095
+ The location can be an absolute path or relative to the current working directory. The default is the current
1096
+ directory.
1097
+
1098
+ -n, --name=<value> Name of the generated component; must be in PascalCase format.
1099
+
1100
+ The component name is also used (camelCased) as the LWC folder name and file stem. Must contain only alphanumeric
1101
+ characters and start with a letter.
1102
+
1103
+ -s, --src=<value> Absolute HTTPS URL that the iframe will load.
1104
+
1105
+ The URL is bound to the <lightning-ui-embedding> "src" attribute as a reactive property in the generated LWC. Must
1106
+ use HTTPS; plain HTTP is allowed only for localhost or 127.0.0.1 (for local development).
1107
+
1108
+ --sandbox=allow-forms|allow-modals|allow-orientation-lock|allow-pointer-lock|allow-popups|allow-popups-to-escape-sandbox|allow-presentation|allow-same-origin|allow-scripts|allow-storage-access-by-user-activation|allow-top-navigation|allow-top-navigation-by-user-activation...
1109
+
1110
+ Iframe sandbox token. Specify this flag multiple times to set more than one token.
1111
+
1112
+ Each token is written into the space-separated "sandbox" attribute on <lightning-ui-embedding>. Only W3C-defined
1113
+ sandbox tokens are accepted.
1114
+
1115
+ --title=<value> Accessible title for the embedded iframe.
1116
+
1117
+ Written to the "shell-title" attribute on <lightning-ui-embedding> and used as the iframe's accessible name
1118
+ (announced by screen readers).
1119
+ ```
1120
+
1121
+ _See code: [src/commands/template/generate/ui-embedding/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/ui-embedding/index.ts)_
1042
1122
 
1043
1123
  ## `sf template generate visualforce component`
1044
1124
 
@@ -1095,7 +1175,7 @@ FLAG DESCRIPTIONS
1095
1175
  Supplied parameter values or default values are filled into a copy of the template.
1096
1176
  ```
1097
1177
 
1098
- _See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/visualforce/component.ts)_
1178
+ _See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/visualforce/component.ts)_
1099
1179
 
1100
1180
  ## `sf template generate visualforce page`
1101
1181
 
@@ -1146,6 +1226,6 @@ FLAG DESCRIPTIONS
1146
1226
  The name can be up to 40 characters and must start with a letter.
1147
1227
  ```
1148
1228
 
1149
- _See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.2/src/commands/template/generate/visualforce/page.ts)_
1229
+ _See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/57.3.0/src/commands/template/generate/visualforce/page.ts)_
1150
1230
 
1151
1231
  <!-- commandsstop -->
@@ -4,13 +4,11 @@ export default class UIEmbedding extends SfCommand<CreateOutput> {
4
4
  static readonly summary: string;
5
5
  static readonly description: string;
6
6
  static readonly examples: string[];
7
- static readonly state = "beta";
8
- static readonly hidden = true;
9
7
  static readonly flags: {
10
8
  name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
11
9
  src: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
12
10
  sandbox: import("@oclif/core/interfaces").OptionFlag<("allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation")[], import("@oclif/core/interfaces").CustomOptions>;
13
- 'shell-title': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
11
+ title: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
14
12
  'output-dir': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
15
13
  'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
14
  internal: import("@oclif/core/interfaces").BooleanFlag<boolean>;
@@ -24,8 +24,6 @@ export default class UIEmbedding extends SfCommand {
24
24
  static summary = messages.getMessage('summary');
25
25
  static description = messages.getMessage('description');
26
26
  static examples = messages.getMessages('examples');
27
- static state = 'beta';
28
- static hidden = true;
29
27
  static flags = {
30
28
  name: Flags.string({
31
29
  char: 'n',
@@ -52,9 +50,9 @@ export default class UIEmbedding extends SfCommand {
52
50
  multiple: true,
53
51
  required: true,
54
52
  })(),
55
- 'shell-title': Flags.string({
56
- summary: messages.getMessage('flags.shell-title.summary'),
57
- description: messages.getMessage('flags.shell-title.description'),
53
+ title: Flags.string({
54
+ summary: messages.getMessage('flags.title.summary'),
55
+ description: messages.getMessage('flags.title.description'),
58
56
  required: true,
59
57
  }),
60
58
  'output-dir': outputDirFlagLightning,
@@ -68,7 +66,7 @@ export default class UIEmbedding extends SfCommand {
68
66
  componentname: flags.name,
69
67
  src: flags.src,
70
68
  sandbox: flags.sandbox.join(' '),
71
- shellTitle: flags['shell-title'],
69
+ title: flags.title,
72
70
  outputdir: flags['output-dir'],
73
71
  apiversion: flags['api-version'],
74
72
  internal: flags.internal,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/commands/template/generate/ui-embedding/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,iCAAiC,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AAChH,OAAO,EAEL,0BAA0B,EAC1B,2BAA2B,EAE3B,YAAY,GACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAElF,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,aAAa,CAAC,CAAC;AAEtF,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAuB;IACvD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,W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,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YAC/C,SAAS,EAAE,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACrD,CAAC,CAAC;IACL,CAAC"}
@@ -2,11 +2,11 @@
2
2
 
3
3
  - Generate an embedding wrapper LWC in the current directory:
4
4
 
5
- <%= config.bin %> <%= command.id %> --name MyEmbeddingWrapper --src https://app.example.com --sandbox allow-forms --shell-title "Expense Report Embedding"
5
+ <%= config.bin %> <%= command.id %> --name MyEmbeddingWrapper --src https://app.example.com --sandbox allow-forms --title "Expense Report Embedding"
6
6
 
7
7
  - Generate an embedding wrapper LWC in the "force-app/main/default/lwc" directory with multiple sandbox tokens:
8
8
 
9
- <%= config.bin %> <%= command.id %> --name MyEmbeddingWrapper --src https://app.example.com --sandbox allow-forms --sandbox allow-scripts --shell-title "Expense Report Embedding" --output-dir force-app/main/default/lwc
9
+ <%= config.bin %> <%= command.id %> --name MyEmbeddingWrapper --src https://app.example.com --sandbox allow-forms --sandbox allow-scripts --title "Expense Report Embedding" --output-dir force-app/main/default/lwc
10
10
 
11
11
  # summary
12
12
 
@@ -14,7 +14,7 @@ Generate a Lightning Web Component (LWC) bundle that wraps the <lightning-ui-emb
14
14
 
15
15
  # description
16
16
 
17
- The generated LWC bundle consumes the first-party <lightning-ui-embedding> component, which is pre-wired with the three required attributes: the embedding URL (src), iframe sandbox tokens, and an accessible iframe title (shell-title).
17
+ The generated LWC bundle consumes the first-party <lightning-ui-embedding> component, which is pre-wired with the three required attributes: the embedding URL (--src), iframe sandbox tokens, and an accessible iframe title (--title).
18
18
 
19
19
  The generated LWC bundle contains four files (.html, .js, .js-meta.xml, .css) in a directory named with the camelCased component name. The bundle must live under a parent folder named "lwc".
20
20
 
@@ -46,10 +46,10 @@ Iframe sandbox token. Specify this flag multiple times to set more than one toke
46
46
 
47
47
  Each token is written into the space-separated "sandbox" attribute on <lightning-ui-embedding>. Only W3C-defined sandbox tokens are accepted.
48
48
 
49
- # flags.shell-title.summary
49
+ # flags.title.summary
50
50
 
51
51
  Accessible title for the embedded iframe.
52
52
 
53
- # flags.shell-title.description
53
+ # flags.title.description
54
54
 
55
55
  Written to the "shell-title" attribute on <lightning-ui-embedding> and used as the iframe's accessible name (announced by screen readers).