@salesforce/plugin-templates 57.1.1 → 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 +95 -15
- package/lib/commands/template/generate/ui-embedding/index.d.ts +1 -3
- package/lib/commands/template/generate/ui-embedding/index.js +4 -6
- package/lib/commands/template/generate/ui-embedding/index.js.map +1 -1
- package/messages/uiEmbedding.md +5 -5
- package/oclif.manifest.json +378 -380
- package/package.json +4 -4
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
56
|
-
summary: messages.getMessage('flags.
|
|
57
|
-
description: messages.getMessage('flags.
|
|
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
|
-
|
|
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,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;
|
|
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,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAE5D,MAAM,CAAU,KAAK,GAAG;QAC7B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;YACjB,IAAI,EAAE,GAAG;YACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;YAClD,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;YAC1D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC;YAChB,IAAI,EAAE,GAAG;YACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC;YACjD,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;YACzD,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,KAAa,EAAE,EAAE;gBACvB,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC,EAAE,CAAC;oBACvC,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC;gBAC1D,CAAC;gBACD,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAChC,CAAC;SACF,CAAC;QACF,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC;YACpB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;YACrD,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC;YAC7D,OAAO,EAAE,2BAA2B;YACpC,QAAQ,EAAE,IAAI;YACd,QAAQ,EAAE,IAAI;SACf,CAAC,EAAE;QACJ,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC;YAClB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;YACnD,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;YAC3D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,YAAY,EAAE,sBAAsB;QACpC,aAAa,EAAE,iCAAiC;QAChD,QAAQ,EAAE,YAAY;QACtB,QAAQ;KACT,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAEhD,MAAM,cAAc,GAAuB;YACzC,aAAa,EAAE,KAAK,CAAC,IAAI;YACzB,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;YAChC,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC;YAC9B,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC;YAChC,QAAQ,EAAE,KAAK,CAAC,QAAQ;SACzB,CAAC;QAEF,OAAO,YAAY,CAAC;YAClB,YAAY,EAAE,YAAY,CAAC,WAAW;YACtC,IAAI,EAAE,cAAc;YACpB,EAAE,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"}
|
package/messages/uiEmbedding.md
CHANGED
|
@@ -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 --
|
|
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 --
|
|
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 (
|
|
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.
|
|
49
|
+
# flags.title.summary
|
|
50
50
|
|
|
51
51
|
Accessible title for the embedded iframe.
|
|
52
52
|
|
|
53
|
-
# flags.
|
|
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).
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,158 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
+
"template:generate:analytics:template": {
|
|
4
|
+
"aliases": [
|
|
5
|
+
"force:analytics:template:create",
|
|
6
|
+
"analytics:generate:template"
|
|
7
|
+
],
|
|
8
|
+
"args": {},
|
|
9
|
+
"deprecateAliases": true,
|
|
10
|
+
"description": "The metadata files associated with the Analytics template must be contained in a parent directory called \"waveTemplates\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.",
|
|
11
|
+
"examples": [
|
|
12
|
+
"Generate the metadata files for a simple Analytics template file called myTemplate in the force-app/main/default/waveTemplates directory:\n<%= config.bin %> <%= command.id %> --name myTemplate --output-dir force-app/main/default/waveTemplates"
|
|
13
|
+
],
|
|
14
|
+
"flags": {
|
|
15
|
+
"json": {
|
|
16
|
+
"description": "Format output as json.",
|
|
17
|
+
"helpGroup": "GLOBAL",
|
|
18
|
+
"name": "json",
|
|
19
|
+
"allowNo": false,
|
|
20
|
+
"type": "boolean"
|
|
21
|
+
},
|
|
22
|
+
"flags-dir": {
|
|
23
|
+
"helpGroup": "GLOBAL",
|
|
24
|
+
"name": "flags-dir",
|
|
25
|
+
"summary": "Import flag values from a directory.",
|
|
26
|
+
"hasDynamicHelp": false,
|
|
27
|
+
"multiple": false,
|
|
28
|
+
"type": "option"
|
|
29
|
+
},
|
|
30
|
+
"output-dir": {
|
|
31
|
+
"aliases": [
|
|
32
|
+
"outputdir"
|
|
33
|
+
],
|
|
34
|
+
"char": "d",
|
|
35
|
+
"deprecateAliases": true,
|
|
36
|
+
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
37
|
+
"name": "output-dir",
|
|
38
|
+
"summary": "Directory for saving the created files.",
|
|
39
|
+
"default": ".",
|
|
40
|
+
"hasDynamicHelp": false,
|
|
41
|
+
"multiple": false,
|
|
42
|
+
"type": "option"
|
|
43
|
+
},
|
|
44
|
+
"api-version": {
|
|
45
|
+
"aliases": [
|
|
46
|
+
"apiversion"
|
|
47
|
+
],
|
|
48
|
+
"deprecateAliases": true,
|
|
49
|
+
"description": "Override the api version used for api requests made by this command",
|
|
50
|
+
"name": "api-version",
|
|
51
|
+
"hasDynamicHelp": false,
|
|
52
|
+
"multiple": false,
|
|
53
|
+
"type": "option"
|
|
54
|
+
},
|
|
55
|
+
"name": {
|
|
56
|
+
"aliases": [
|
|
57
|
+
"templatename"
|
|
58
|
+
],
|
|
59
|
+
"char": "n",
|
|
60
|
+
"deprecateAliases": true,
|
|
61
|
+
"name": "name",
|
|
62
|
+
"required": true,
|
|
63
|
+
"summary": "Name of the Analytics template.",
|
|
64
|
+
"hasDynamicHelp": false,
|
|
65
|
+
"multiple": false,
|
|
66
|
+
"type": "option"
|
|
67
|
+
},
|
|
68
|
+
"loglevel": {
|
|
69
|
+
"deprecated": {
|
|
70
|
+
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SF_LOG_LEVEL` environment variable."
|
|
71
|
+
},
|
|
72
|
+
"hidden": true,
|
|
73
|
+
"name": "loglevel",
|
|
74
|
+
"hasDynamicHelp": false,
|
|
75
|
+
"multiple": false,
|
|
76
|
+
"type": "option"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"hasDynamicHelp": false,
|
|
80
|
+
"hiddenAliases": [],
|
|
81
|
+
"id": "template:generate:analytics:template",
|
|
82
|
+
"pluginAlias": "@salesforce/plugin-templates",
|
|
83
|
+
"pluginName": "@salesforce/plugin-templates",
|
|
84
|
+
"pluginType": "core",
|
|
85
|
+
"strict": true,
|
|
86
|
+
"summary": "Generate a simple Analytics template.",
|
|
87
|
+
"enableJsonFlag": true,
|
|
88
|
+
"isESM": true,
|
|
89
|
+
"relativePath": [
|
|
90
|
+
"lib",
|
|
91
|
+
"commands",
|
|
92
|
+
"template",
|
|
93
|
+
"generate",
|
|
94
|
+
"analytics",
|
|
95
|
+
"template.js"
|
|
96
|
+
],
|
|
97
|
+
"aliasPermutations": [
|
|
98
|
+
"force:analytics:template:create",
|
|
99
|
+
"analytics:force:template:create",
|
|
100
|
+
"analytics:template:force:create",
|
|
101
|
+
"analytics:template:create:force",
|
|
102
|
+
"force:template:analytics:create",
|
|
103
|
+
"template:force:analytics:create",
|
|
104
|
+
"template:analytics:force:create",
|
|
105
|
+
"template:analytics:create:force",
|
|
106
|
+
"force:template:create:analytics",
|
|
107
|
+
"template:force:create:analytics",
|
|
108
|
+
"template:create:force:analytics",
|
|
109
|
+
"template:create:analytics:force",
|
|
110
|
+
"force:analytics:create:template",
|
|
111
|
+
"analytics:force:create:template",
|
|
112
|
+
"analytics:create:force:template",
|
|
113
|
+
"analytics:create:template:force",
|
|
114
|
+
"force:create:analytics:template",
|
|
115
|
+
"create:force:analytics:template",
|
|
116
|
+
"create:analytics:force:template",
|
|
117
|
+
"create:analytics:template:force",
|
|
118
|
+
"force:create:template:analytics",
|
|
119
|
+
"create:force:template:analytics",
|
|
120
|
+
"create:template:force:analytics",
|
|
121
|
+
"create:template:analytics:force",
|
|
122
|
+
"analytics:generate:template",
|
|
123
|
+
"generate:analytics:template",
|
|
124
|
+
"generate:template:analytics",
|
|
125
|
+
"analytics:template:generate",
|
|
126
|
+
"template:analytics:generate",
|
|
127
|
+
"template:generate:analytics"
|
|
128
|
+
],
|
|
129
|
+
"permutations": [
|
|
130
|
+
"template:generate:analytics:template",
|
|
131
|
+
"generate:template:analytics:template",
|
|
132
|
+
"generate:analytics:template:template",
|
|
133
|
+
"generate:analytics:template:template",
|
|
134
|
+
"template:analytics:generate:template",
|
|
135
|
+
"analytics:template:generate:template",
|
|
136
|
+
"analytics:generate:template:template",
|
|
137
|
+
"analytics:generate:template:template",
|
|
138
|
+
"template:analytics:template:generate",
|
|
139
|
+
"analytics:template:template:generate",
|
|
140
|
+
"analytics:template:template:generate",
|
|
141
|
+
"analytics:template:generate:template",
|
|
142
|
+
"template:generate:template:analytics",
|
|
143
|
+
"generate:template:template:analytics",
|
|
144
|
+
"generate:template:template:analytics",
|
|
145
|
+
"generate:template:analytics:template",
|
|
146
|
+
"template:template:generate:analytics",
|
|
147
|
+
"template:template:generate:analytics",
|
|
148
|
+
"template:generate:template:analytics",
|
|
149
|
+
"template:generate:analytics:template",
|
|
150
|
+
"template:template:analytics:generate",
|
|
151
|
+
"template:template:analytics:generate",
|
|
152
|
+
"template:analytics:template:generate",
|
|
153
|
+
"template:analytics:generate:template"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
3
156
|
"template:generate:apex:class": {
|
|
4
157
|
"aliases": [
|
|
5
158
|
"force:apex:class:create",
|
|
@@ -505,159 +658,6 @@
|
|
|
505
658
|
"site:digital-experience:generate:template"
|
|
506
659
|
]
|
|
507
660
|
},
|
|
508
|
-
"template:generate:analytics:template": {
|
|
509
|
-
"aliases": [
|
|
510
|
-
"force:analytics:template:create",
|
|
511
|
-
"analytics:generate:template"
|
|
512
|
-
],
|
|
513
|
-
"args": {},
|
|
514
|
-
"deprecateAliases": true,
|
|
515
|
-
"description": "The metadata files associated with the Analytics template must be contained in a parent directory called \"waveTemplates\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.",
|
|
516
|
-
"examples": [
|
|
517
|
-
"Generate the metadata files for a simple Analytics template file called myTemplate in the force-app/main/default/waveTemplates directory:\n<%= config.bin %> <%= command.id %> --name myTemplate --output-dir force-app/main/default/waveTemplates"
|
|
518
|
-
],
|
|
519
|
-
"flags": {
|
|
520
|
-
"json": {
|
|
521
|
-
"description": "Format output as json.",
|
|
522
|
-
"helpGroup": "GLOBAL",
|
|
523
|
-
"name": "json",
|
|
524
|
-
"allowNo": false,
|
|
525
|
-
"type": "boolean"
|
|
526
|
-
},
|
|
527
|
-
"flags-dir": {
|
|
528
|
-
"helpGroup": "GLOBAL",
|
|
529
|
-
"name": "flags-dir",
|
|
530
|
-
"summary": "Import flag values from a directory.",
|
|
531
|
-
"hasDynamicHelp": false,
|
|
532
|
-
"multiple": false,
|
|
533
|
-
"type": "option"
|
|
534
|
-
},
|
|
535
|
-
"output-dir": {
|
|
536
|
-
"aliases": [
|
|
537
|
-
"outputdir"
|
|
538
|
-
],
|
|
539
|
-
"char": "d",
|
|
540
|
-
"deprecateAliases": true,
|
|
541
|
-
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
542
|
-
"name": "output-dir",
|
|
543
|
-
"summary": "Directory for saving the created files.",
|
|
544
|
-
"default": ".",
|
|
545
|
-
"hasDynamicHelp": false,
|
|
546
|
-
"multiple": false,
|
|
547
|
-
"type": "option"
|
|
548
|
-
},
|
|
549
|
-
"api-version": {
|
|
550
|
-
"aliases": [
|
|
551
|
-
"apiversion"
|
|
552
|
-
],
|
|
553
|
-
"deprecateAliases": true,
|
|
554
|
-
"description": "Override the api version used for api requests made by this command",
|
|
555
|
-
"name": "api-version",
|
|
556
|
-
"hasDynamicHelp": false,
|
|
557
|
-
"multiple": false,
|
|
558
|
-
"type": "option"
|
|
559
|
-
},
|
|
560
|
-
"name": {
|
|
561
|
-
"aliases": [
|
|
562
|
-
"templatename"
|
|
563
|
-
],
|
|
564
|
-
"char": "n",
|
|
565
|
-
"deprecateAliases": true,
|
|
566
|
-
"name": "name",
|
|
567
|
-
"required": true,
|
|
568
|
-
"summary": "Name of the Analytics template.",
|
|
569
|
-
"hasDynamicHelp": false,
|
|
570
|
-
"multiple": false,
|
|
571
|
-
"type": "option"
|
|
572
|
-
},
|
|
573
|
-
"loglevel": {
|
|
574
|
-
"deprecated": {
|
|
575
|
-
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SF_LOG_LEVEL` environment variable."
|
|
576
|
-
},
|
|
577
|
-
"hidden": true,
|
|
578
|
-
"name": "loglevel",
|
|
579
|
-
"hasDynamicHelp": false,
|
|
580
|
-
"multiple": false,
|
|
581
|
-
"type": "option"
|
|
582
|
-
}
|
|
583
|
-
},
|
|
584
|
-
"hasDynamicHelp": false,
|
|
585
|
-
"hiddenAliases": [],
|
|
586
|
-
"id": "template:generate:analytics:template",
|
|
587
|
-
"pluginAlias": "@salesforce/plugin-templates",
|
|
588
|
-
"pluginName": "@salesforce/plugin-templates",
|
|
589
|
-
"pluginType": "core",
|
|
590
|
-
"strict": true,
|
|
591
|
-
"summary": "Generate a simple Analytics template.",
|
|
592
|
-
"enableJsonFlag": true,
|
|
593
|
-
"isESM": true,
|
|
594
|
-
"relativePath": [
|
|
595
|
-
"lib",
|
|
596
|
-
"commands",
|
|
597
|
-
"template",
|
|
598
|
-
"generate",
|
|
599
|
-
"analytics",
|
|
600
|
-
"template.js"
|
|
601
|
-
],
|
|
602
|
-
"aliasPermutations": [
|
|
603
|
-
"force:analytics:template:create",
|
|
604
|
-
"analytics:force:template:create",
|
|
605
|
-
"analytics:template:force:create",
|
|
606
|
-
"analytics:template:create:force",
|
|
607
|
-
"force:template:analytics:create",
|
|
608
|
-
"template:force:analytics:create",
|
|
609
|
-
"template:analytics:force:create",
|
|
610
|
-
"template:analytics:create:force",
|
|
611
|
-
"force:template:create:analytics",
|
|
612
|
-
"template:force:create:analytics",
|
|
613
|
-
"template:create:force:analytics",
|
|
614
|
-
"template:create:analytics:force",
|
|
615
|
-
"force:analytics:create:template",
|
|
616
|
-
"analytics:force:create:template",
|
|
617
|
-
"analytics:create:force:template",
|
|
618
|
-
"analytics:create:template:force",
|
|
619
|
-
"force:create:analytics:template",
|
|
620
|
-
"create:force:analytics:template",
|
|
621
|
-
"create:analytics:force:template",
|
|
622
|
-
"create:analytics:template:force",
|
|
623
|
-
"force:create:template:analytics",
|
|
624
|
-
"create:force:template:analytics",
|
|
625
|
-
"create:template:force:analytics",
|
|
626
|
-
"create:template:analytics:force",
|
|
627
|
-
"analytics:generate:template",
|
|
628
|
-
"generate:analytics:template",
|
|
629
|
-
"generate:template:analytics",
|
|
630
|
-
"analytics:template:generate",
|
|
631
|
-
"template:analytics:generate",
|
|
632
|
-
"template:generate:analytics"
|
|
633
|
-
],
|
|
634
|
-
"permutations": [
|
|
635
|
-
"template:generate:analytics:template",
|
|
636
|
-
"generate:template:analytics:template",
|
|
637
|
-
"generate:analytics:template:template",
|
|
638
|
-
"generate:analytics:template:template",
|
|
639
|
-
"template:analytics:generate:template",
|
|
640
|
-
"analytics:template:generate:template",
|
|
641
|
-
"analytics:generate:template:template",
|
|
642
|
-
"analytics:generate:template:template",
|
|
643
|
-
"template:analytics:template:generate",
|
|
644
|
-
"analytics:template:template:generate",
|
|
645
|
-
"analytics:template:template:generate",
|
|
646
|
-
"analytics:template:generate:template",
|
|
647
|
-
"template:generate:template:analytics",
|
|
648
|
-
"generate:template:template:analytics",
|
|
649
|
-
"generate:template:template:analytics",
|
|
650
|
-
"generate:template:analytics:template",
|
|
651
|
-
"template:template:generate:analytics",
|
|
652
|
-
"template:template:generate:analytics",
|
|
653
|
-
"template:generate:template:analytics",
|
|
654
|
-
"template:generate:analytics:template",
|
|
655
|
-
"template:template:analytics:generate",
|
|
656
|
-
"template:template:analytics:generate",
|
|
657
|
-
"template:analytics:template:generate",
|
|
658
|
-
"template:analytics:generate:template"
|
|
659
|
-
]
|
|
660
|
-
},
|
|
661
661
|
"template:generate:flexipage": {
|
|
662
662
|
"aliases": [],
|
|
663
663
|
"args": {},
|
|
@@ -781,203 +781,25 @@
|
|
|
781
781
|
"summary": "Secondary fields shown in the dynamic highlights header. Specify multiple fields separated by commas. Maximum of 11 fields. Used only with RecordPage.",
|
|
782
782
|
"delimiter": ",",
|
|
783
783
|
"hasDynamicHelp": false,
|
|
784
|
-
"multiple": true,
|
|
785
|
-
"type": "option"
|
|
786
|
-
},
|
|
787
|
-
"detail-fields": {
|
|
788
|
-
"name": "detail-fields",
|
|
789
|
-
"summary": "Fields to display in the Details tab. Specify multiple fields separated by commas. Fields are split into two columns. Used only with RecordPage.",
|
|
790
|
-
"delimiter": ",",
|
|
791
|
-
"hasDynamicHelp": false,
|
|
792
|
-
"multiple": true,
|
|
793
|
-
"type": "option"
|
|
794
|
-
},
|
|
795
|
-
"internal": {
|
|
796
|
-
"char": "i",
|
|
797
|
-
"hidden": true,
|
|
798
|
-
"name": "internal",
|
|
799
|
-
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
800
|
-
"allowNo": false,
|
|
801
|
-
"type": "boolean"
|
|
802
|
-
},
|
|
803
|
-
"loglevel": {
|
|
804
|
-
"deprecated": {
|
|
805
|
-
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SF_LOG_LEVEL` environment variable."
|
|
806
|
-
},
|
|
807
|
-
"hidden": true,
|
|
808
|
-
"name": "loglevel",
|
|
809
|
-
"hasDynamicHelp": false,
|
|
810
|
-
"multiple": false,
|
|
811
|
-
"type": "option"
|
|
812
|
-
}
|
|
813
|
-
},
|
|
814
|
-
"hasDynamicHelp": false,
|
|
815
|
-
"hiddenAliases": [],
|
|
816
|
-
"id": "template:generate:flexipage",
|
|
817
|
-
"pluginAlias": "@salesforce/plugin-templates",
|
|
818
|
-
"pluginName": "@salesforce/plugin-templates",
|
|
819
|
-
"pluginType": "core",
|
|
820
|
-
"state": "beta",
|
|
821
|
-
"strict": true,
|
|
822
|
-
"summary": "Generate a FlexiPage, also known as a Lightning page.",
|
|
823
|
-
"enableJsonFlag": true,
|
|
824
|
-
"MAX_SECONDARY_FIELDS": 11,
|
|
825
|
-
"isESM": true,
|
|
826
|
-
"relativePath": [
|
|
827
|
-
"lib",
|
|
828
|
-
"commands",
|
|
829
|
-
"template",
|
|
830
|
-
"generate",
|
|
831
|
-
"flexipage",
|
|
832
|
-
"index.js"
|
|
833
|
-
],
|
|
834
|
-
"aliasPermutations": [],
|
|
835
|
-
"permutations": [
|
|
836
|
-
"template:generate:flexipage",
|
|
837
|
-
"generate:template:flexipage",
|
|
838
|
-
"generate:flexipage:template",
|
|
839
|
-
"template:flexipage:generate",
|
|
840
|
-
"flexipage:template:generate",
|
|
841
|
-
"flexipage:generate:template"
|
|
842
|
-
]
|
|
843
|
-
},
|
|
844
|
-
"template:generate:project": {
|
|
845
|
-
"aliases": [
|
|
846
|
-
"force:project:create",
|
|
847
|
-
"project:generate"
|
|
848
|
-
],
|
|
849
|
-
"args": {},
|
|
850
|
-
"deprecateAliases": true,
|
|
851
|
-
"description": "A Salesforce DX project has a specific structure and a configuration file (sfdx-project.json) that identifies the directory as a Salesforce DX project. This command generates the necessary configuration files and directories to get you started.\n\nBy default, the generated sfdx-project.json file sets the sourceApiVersion property to the default API version currently used by Salesforce CLI. To specify a different version, set the apiVersion configuration variable. For example: \"sf config set apiVersion=57.0 --global\".",
|
|
852
|
-
"examples": [
|
|
853
|
-
"Generate a project called \"mywork\":\n<%= config.bin %> <%= command.id %> --name mywork",
|
|
854
|
-
"Similar to previous example, but generate the files in a directory called \"myapp\":\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp",
|
|
855
|
-
"Similar to prevoius example, but also generate a default package.xml manifest file:\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp --manifest",
|
|
856
|
-
"Generate a project with the minimum files and directories:\n<%= config.bin %> <%= command.id %> --name mywork --template empty",
|
|
857
|
-
"Generate a project in which the Lightning Web Components use TypeScript rather than the default JavaScript:\n<%= config.bin %> <%= command.id %> --name mywork --lwc-language typescript"
|
|
858
|
-
],
|
|
859
|
-
"flags": {
|
|
860
|
-
"json": {
|
|
861
|
-
"description": "Format output as json.",
|
|
862
|
-
"helpGroup": "GLOBAL",
|
|
863
|
-
"name": "json",
|
|
864
|
-
"allowNo": false,
|
|
865
|
-
"type": "boolean"
|
|
866
|
-
},
|
|
867
|
-
"flags-dir": {
|
|
868
|
-
"helpGroup": "GLOBAL",
|
|
869
|
-
"name": "flags-dir",
|
|
870
|
-
"summary": "Import flag values from a directory.",
|
|
871
|
-
"hasDynamicHelp": false,
|
|
872
|
-
"multiple": false,
|
|
873
|
-
"type": "option"
|
|
874
|
-
},
|
|
875
|
-
"name": {
|
|
876
|
-
"aliases": [
|
|
877
|
-
"projectname"
|
|
878
|
-
],
|
|
879
|
-
"char": "n",
|
|
880
|
-
"deprecateAliases": true,
|
|
881
|
-
"description": "Generates a project directory with this name; any valid directory name is accepted. Also sets the \"name\" property in the sfdx-project.json file to this name.",
|
|
882
|
-
"name": "name",
|
|
883
|
-
"required": true,
|
|
884
|
-
"summary": "Name of the generated project.",
|
|
885
|
-
"hasDynamicHelp": false,
|
|
886
|
-
"multiple": false,
|
|
887
|
-
"type": "option"
|
|
888
|
-
},
|
|
889
|
-
"template": {
|
|
890
|
-
"char": "t",
|
|
891
|
-
"description": "The template determines the sample configuration files and directories that this command generates. For example, the empty template provides these files and directory to get you started.\n\n- .forceignore\n- config/project-scratch-def.json\n- sfdx-project.json\n- package.json\n- force-app (basic source directory structure)\n\nThe standard template provides a complete force-app directory structure so you know where to put your source. It also provides additional files and scripts, especially useful when using Salesforce Extensions for VS Code. For example:\n\n- .gitignore: Use Git for version control.\n- .prettierrc and .prettierignore: Use Prettier to format your Aura components.\n- .vscode/extensions.json: When launched, Visual Studio Code, prompts you to install the recommended extensions for your project.\n- .vscode/launch.json: Configures Replay Debugger.\n- .vscode/settings.json: Additional configuration settings.\n\nThe analytics template provides similar files and the force-app/main/default/waveTemplates directory.\n\nThe reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external UI bundle use cases.\n\nThe angularinternalapp and angularexternalapp templates provide Angular-based project scaffolding for internal and external UI bundle use cases.\n\nThe agent template provides project scaffolding for building Agentforce agents and includes a sample agent called Local Info Agent.",
|
|
892
|
-
"name": "template",
|
|
893
|
-
"summary": "Template to use for project creation.",
|
|
894
|
-
"default": "standard",
|
|
895
|
-
"hasDynamicHelp": false,
|
|
896
|
-
"multiple": false,
|
|
897
|
-
"options": [
|
|
898
|
-
"standard",
|
|
899
|
-
"empty",
|
|
900
|
-
"analytics",
|
|
901
|
-
"reactinternalapp",
|
|
902
|
-
"reactexternalapp",
|
|
903
|
-
"angularinternalapp",
|
|
904
|
-
"angularexternalapp",
|
|
905
|
-
"agent"
|
|
906
|
-
],
|
|
907
|
-
"type": "option"
|
|
908
|
-
},
|
|
909
|
-
"output-dir": {
|
|
910
|
-
"aliases": [
|
|
911
|
-
"outputdir"
|
|
912
|
-
],
|
|
913
|
-
"char": "d",
|
|
914
|
-
"deprecateAliases": true,
|
|
915
|
-
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
916
|
-
"name": "output-dir",
|
|
917
|
-
"summary": "Directory for saving the created files.",
|
|
918
|
-
"default": ".",
|
|
919
|
-
"hasDynamicHelp": false,
|
|
920
|
-
"multiple": false,
|
|
921
|
-
"type": "option"
|
|
922
|
-
},
|
|
923
|
-
"namespace": {
|
|
924
|
-
"char": "s",
|
|
925
|
-
"name": "namespace",
|
|
926
|
-
"summary": "Namespace associated with this project and any connected scratch orgs.",
|
|
927
|
-
"default": "",
|
|
928
|
-
"hasDynamicHelp": false,
|
|
929
|
-
"multiple": false,
|
|
930
|
-
"type": "option"
|
|
931
|
-
},
|
|
932
|
-
"default-package-dir": {
|
|
933
|
-
"aliases": [
|
|
934
|
-
"defaultpackagedir"
|
|
935
|
-
],
|
|
936
|
-
"char": "p",
|
|
937
|
-
"deprecateAliases": true,
|
|
938
|
-
"description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
|
|
939
|
-
"name": "default-package-dir",
|
|
940
|
-
"summary": "Default package directory name.",
|
|
941
|
-
"default": "force-app",
|
|
942
|
-
"hasDynamicHelp": false,
|
|
943
|
-
"multiple": false,
|
|
944
|
-
"type": "option"
|
|
945
|
-
},
|
|
946
|
-
"manifest": {
|
|
947
|
-
"char": "x",
|
|
948
|
-
"description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
|
|
949
|
-
"name": "manifest",
|
|
950
|
-
"summary": "Generate a manifest (package.xml) for change-set based development.",
|
|
951
|
-
"allowNo": false,
|
|
952
|
-
"type": "boolean"
|
|
953
|
-
},
|
|
954
|
-
"login-url": {
|
|
955
|
-
"aliases": [
|
|
956
|
-
"loginurl"
|
|
957
|
-
],
|
|
958
|
-
"char": "l",
|
|
959
|
-
"deprecateAliases": true,
|
|
960
|
-
"description": "Normally defaults to https://login.salesforce.com.",
|
|
961
|
-
"hidden": true,
|
|
962
|
-
"name": "login-url",
|
|
963
|
-
"summary": "Salesforce instance login URL.",
|
|
964
|
-
"default": "https://login.salesforce.com",
|
|
965
|
-
"hasDynamicHelp": false,
|
|
966
|
-
"multiple": false,
|
|
784
|
+
"multiple": true,
|
|
967
785
|
"type": "option"
|
|
968
786
|
},
|
|
969
|
-
"
|
|
970
|
-
"
|
|
971
|
-
"
|
|
972
|
-
"
|
|
787
|
+
"detail-fields": {
|
|
788
|
+
"name": "detail-fields",
|
|
789
|
+
"summary": "Fields to display in the Details tab. Specify multiple fields separated by commas. Fields are split into two columns. Used only with RecordPage.",
|
|
790
|
+
"delimiter": ",",
|
|
973
791
|
"hasDynamicHelp": false,
|
|
974
|
-
"multiple":
|
|
975
|
-
"options": [
|
|
976
|
-
"javascript",
|
|
977
|
-
"typescript"
|
|
978
|
-
],
|
|
792
|
+
"multiple": true,
|
|
979
793
|
"type": "option"
|
|
980
794
|
},
|
|
795
|
+
"internal": {
|
|
796
|
+
"char": "i",
|
|
797
|
+
"hidden": true,
|
|
798
|
+
"name": "internal",
|
|
799
|
+
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
800
|
+
"allowNo": false,
|
|
801
|
+
"type": "boolean"
|
|
802
|
+
},
|
|
981
803
|
"loglevel": {
|
|
982
804
|
"deprecated": {
|
|
983
805
|
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SF_LOG_LEVEL` environment variable."
|
|
@@ -987,51 +809,36 @@
|
|
|
987
809
|
"hasDynamicHelp": false,
|
|
988
810
|
"multiple": false,
|
|
989
811
|
"type": "option"
|
|
990
|
-
},
|
|
991
|
-
"api-version": {
|
|
992
|
-
"description": "Override the api version used for api requests made by this command",
|
|
993
|
-
"name": "api-version",
|
|
994
|
-
"summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
|
|
995
|
-
"hasDynamicHelp": false,
|
|
996
|
-
"multiple": false,
|
|
997
|
-
"type": "option"
|
|
998
812
|
}
|
|
999
813
|
},
|
|
1000
814
|
"hasDynamicHelp": false,
|
|
1001
815
|
"hiddenAliases": [],
|
|
1002
|
-
"id": "template:generate:
|
|
816
|
+
"id": "template:generate:flexipage",
|
|
1003
817
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
1004
818
|
"pluginName": "@salesforce/plugin-templates",
|
|
1005
819
|
"pluginType": "core",
|
|
820
|
+
"state": "beta",
|
|
1006
821
|
"strict": true,
|
|
1007
|
-
"summary": "Generate a
|
|
822
|
+
"summary": "Generate a FlexiPage, also known as a Lightning page.",
|
|
1008
823
|
"enableJsonFlag": true,
|
|
824
|
+
"MAX_SECONDARY_FIELDS": 11,
|
|
1009
825
|
"isESM": true,
|
|
1010
826
|
"relativePath": [
|
|
1011
827
|
"lib",
|
|
1012
828
|
"commands",
|
|
1013
829
|
"template",
|
|
1014
830
|
"generate",
|
|
1015
|
-
"
|
|
831
|
+
"flexipage",
|
|
1016
832
|
"index.js"
|
|
1017
833
|
],
|
|
1018
|
-
"aliasPermutations": [
|
|
1019
|
-
"force:project:create",
|
|
1020
|
-
"project:force:create",
|
|
1021
|
-
"project:create:force",
|
|
1022
|
-
"force:create:project",
|
|
1023
|
-
"create:force:project",
|
|
1024
|
-
"create:project:force",
|
|
1025
|
-
"project:generate",
|
|
1026
|
-
"generate:project"
|
|
1027
|
-
],
|
|
834
|
+
"aliasPermutations": [],
|
|
1028
835
|
"permutations": [
|
|
1029
|
-
"template:generate:
|
|
1030
|
-
"generate:template:
|
|
1031
|
-
"generate:
|
|
1032
|
-
"template:
|
|
1033
|
-
"
|
|
1034
|
-
"
|
|
836
|
+
"template:generate:flexipage",
|
|
837
|
+
"generate:template:flexipage",
|
|
838
|
+
"generate:flexipage:template",
|
|
839
|
+
"template:flexipage:generate",
|
|
840
|
+
"flexipage:template:generate",
|
|
841
|
+
"flexipage:generate:template"
|
|
1035
842
|
]
|
|
1036
843
|
},
|
|
1037
844
|
"template:generate:lightning:app": {
|
|
@@ -1932,6 +1739,199 @@
|
|
|
1932
1739
|
"test:lightning:generate:template"
|
|
1933
1740
|
]
|
|
1934
1741
|
},
|
|
1742
|
+
"template:generate:project": {
|
|
1743
|
+
"aliases": [
|
|
1744
|
+
"force:project:create",
|
|
1745
|
+
"project:generate"
|
|
1746
|
+
],
|
|
1747
|
+
"args": {},
|
|
1748
|
+
"deprecateAliases": true,
|
|
1749
|
+
"description": "A Salesforce DX project has a specific structure and a configuration file (sfdx-project.json) that identifies the directory as a Salesforce DX project. This command generates the necessary configuration files and directories to get you started.\n\nBy default, the generated sfdx-project.json file sets the sourceApiVersion property to the default API version currently used by Salesforce CLI. To specify a different version, set the apiVersion configuration variable. For example: \"sf config set apiVersion=57.0 --global\".",
|
|
1750
|
+
"examples": [
|
|
1751
|
+
"Generate a project called \"mywork\":\n<%= config.bin %> <%= command.id %> --name mywork",
|
|
1752
|
+
"Similar to previous example, but generate the files in a directory called \"myapp\":\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp",
|
|
1753
|
+
"Similar to prevoius example, but also generate a default package.xml manifest file:\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp --manifest",
|
|
1754
|
+
"Generate a project with the minimum files and directories:\n<%= config.bin %> <%= command.id %> --name mywork --template empty",
|
|
1755
|
+
"Generate a project in which the Lightning Web Components use TypeScript rather than the default JavaScript:\n<%= config.bin %> <%= command.id %> --name mywork --lwc-language typescript"
|
|
1756
|
+
],
|
|
1757
|
+
"flags": {
|
|
1758
|
+
"json": {
|
|
1759
|
+
"description": "Format output as json.",
|
|
1760
|
+
"helpGroup": "GLOBAL",
|
|
1761
|
+
"name": "json",
|
|
1762
|
+
"allowNo": false,
|
|
1763
|
+
"type": "boolean"
|
|
1764
|
+
},
|
|
1765
|
+
"flags-dir": {
|
|
1766
|
+
"helpGroup": "GLOBAL",
|
|
1767
|
+
"name": "flags-dir",
|
|
1768
|
+
"summary": "Import flag values from a directory.",
|
|
1769
|
+
"hasDynamicHelp": false,
|
|
1770
|
+
"multiple": false,
|
|
1771
|
+
"type": "option"
|
|
1772
|
+
},
|
|
1773
|
+
"name": {
|
|
1774
|
+
"aliases": [
|
|
1775
|
+
"projectname"
|
|
1776
|
+
],
|
|
1777
|
+
"char": "n",
|
|
1778
|
+
"deprecateAliases": true,
|
|
1779
|
+
"description": "Generates a project directory with this name; any valid directory name is accepted. Also sets the \"name\" property in the sfdx-project.json file to this name.",
|
|
1780
|
+
"name": "name",
|
|
1781
|
+
"required": true,
|
|
1782
|
+
"summary": "Name of the generated project.",
|
|
1783
|
+
"hasDynamicHelp": false,
|
|
1784
|
+
"multiple": false,
|
|
1785
|
+
"type": "option"
|
|
1786
|
+
},
|
|
1787
|
+
"template": {
|
|
1788
|
+
"char": "t",
|
|
1789
|
+
"description": "The template determines the sample configuration files and directories that this command generates. For example, the empty template provides these files and directory to get you started.\n\n- .forceignore\n- config/project-scratch-def.json\n- sfdx-project.json\n- package.json\n- force-app (basic source directory structure)\n\nThe standard template provides a complete force-app directory structure so you know where to put your source. It also provides additional files and scripts, especially useful when using Salesforce Extensions for VS Code. For example:\n\n- .gitignore: Use Git for version control.\n- .prettierrc and .prettierignore: Use Prettier to format your Aura components.\n- .vscode/extensions.json: When launched, Visual Studio Code, prompts you to install the recommended extensions for your project.\n- .vscode/launch.json: Configures Replay Debugger.\n- .vscode/settings.json: Additional configuration settings.\n\nThe analytics template provides similar files and the force-app/main/default/waveTemplates directory.\n\nThe reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external UI bundle use cases.\n\nThe angularinternalapp and angularexternalapp templates provide Angular-based project scaffolding for internal and external UI bundle use cases.\n\nThe agent template provides project scaffolding for building Agentforce agents and includes a sample agent called Local Info Agent.",
|
|
1790
|
+
"name": "template",
|
|
1791
|
+
"summary": "Template to use for project creation.",
|
|
1792
|
+
"default": "standard",
|
|
1793
|
+
"hasDynamicHelp": false,
|
|
1794
|
+
"multiple": false,
|
|
1795
|
+
"options": [
|
|
1796
|
+
"standard",
|
|
1797
|
+
"empty",
|
|
1798
|
+
"analytics",
|
|
1799
|
+
"reactinternalapp",
|
|
1800
|
+
"reactexternalapp",
|
|
1801
|
+
"angularinternalapp",
|
|
1802
|
+
"angularexternalapp",
|
|
1803
|
+
"agent"
|
|
1804
|
+
],
|
|
1805
|
+
"type": "option"
|
|
1806
|
+
},
|
|
1807
|
+
"output-dir": {
|
|
1808
|
+
"aliases": [
|
|
1809
|
+
"outputdir"
|
|
1810
|
+
],
|
|
1811
|
+
"char": "d",
|
|
1812
|
+
"deprecateAliases": true,
|
|
1813
|
+
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
1814
|
+
"name": "output-dir",
|
|
1815
|
+
"summary": "Directory for saving the created files.",
|
|
1816
|
+
"default": ".",
|
|
1817
|
+
"hasDynamicHelp": false,
|
|
1818
|
+
"multiple": false,
|
|
1819
|
+
"type": "option"
|
|
1820
|
+
},
|
|
1821
|
+
"namespace": {
|
|
1822
|
+
"char": "s",
|
|
1823
|
+
"name": "namespace",
|
|
1824
|
+
"summary": "Namespace associated with this project and any connected scratch orgs.",
|
|
1825
|
+
"default": "",
|
|
1826
|
+
"hasDynamicHelp": false,
|
|
1827
|
+
"multiple": false,
|
|
1828
|
+
"type": "option"
|
|
1829
|
+
},
|
|
1830
|
+
"default-package-dir": {
|
|
1831
|
+
"aliases": [
|
|
1832
|
+
"defaultpackagedir"
|
|
1833
|
+
],
|
|
1834
|
+
"char": "p",
|
|
1835
|
+
"deprecateAliases": true,
|
|
1836
|
+
"description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
|
|
1837
|
+
"name": "default-package-dir",
|
|
1838
|
+
"summary": "Default package directory name.",
|
|
1839
|
+
"default": "force-app",
|
|
1840
|
+
"hasDynamicHelp": false,
|
|
1841
|
+
"multiple": false,
|
|
1842
|
+
"type": "option"
|
|
1843
|
+
},
|
|
1844
|
+
"manifest": {
|
|
1845
|
+
"char": "x",
|
|
1846
|
+
"description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
|
|
1847
|
+
"name": "manifest",
|
|
1848
|
+
"summary": "Generate a manifest (package.xml) for change-set based development.",
|
|
1849
|
+
"allowNo": false,
|
|
1850
|
+
"type": "boolean"
|
|
1851
|
+
},
|
|
1852
|
+
"login-url": {
|
|
1853
|
+
"aliases": [
|
|
1854
|
+
"loginurl"
|
|
1855
|
+
],
|
|
1856
|
+
"char": "l",
|
|
1857
|
+
"deprecateAliases": true,
|
|
1858
|
+
"description": "Normally defaults to https://login.salesforce.com.",
|
|
1859
|
+
"hidden": true,
|
|
1860
|
+
"name": "login-url",
|
|
1861
|
+
"summary": "Salesforce instance login URL.",
|
|
1862
|
+
"default": "https://login.salesforce.com",
|
|
1863
|
+
"hasDynamicHelp": false,
|
|
1864
|
+
"multiple": false,
|
|
1865
|
+
"type": "option"
|
|
1866
|
+
},
|
|
1867
|
+
"lwc-language": {
|
|
1868
|
+
"description": "When set to `'typescript'`, generates TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware ESLint config). When you deploy the TypeScript-based Lightning Web Components, the TypeScript files are first compiled locally for validation and then the `.ts` files are deployed to your org for server-side type stripping.",
|
|
1869
|
+
"name": "lwc-language",
|
|
1870
|
+
"summary": "Language of the Lightning Web Components. If not specified, \"javascript\" is used.",
|
|
1871
|
+
"hasDynamicHelp": false,
|
|
1872
|
+
"multiple": false,
|
|
1873
|
+
"options": [
|
|
1874
|
+
"javascript",
|
|
1875
|
+
"typescript"
|
|
1876
|
+
],
|
|
1877
|
+
"type": "option"
|
|
1878
|
+
},
|
|
1879
|
+
"loglevel": {
|
|
1880
|
+
"deprecated": {
|
|
1881
|
+
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SF_LOG_LEVEL` environment variable."
|
|
1882
|
+
},
|
|
1883
|
+
"hidden": true,
|
|
1884
|
+
"name": "loglevel",
|
|
1885
|
+
"hasDynamicHelp": false,
|
|
1886
|
+
"multiple": false,
|
|
1887
|
+
"type": "option"
|
|
1888
|
+
},
|
|
1889
|
+
"api-version": {
|
|
1890
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1891
|
+
"name": "api-version",
|
|
1892
|
+
"summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
|
|
1893
|
+
"hasDynamicHelp": false,
|
|
1894
|
+
"multiple": false,
|
|
1895
|
+
"type": "option"
|
|
1896
|
+
}
|
|
1897
|
+
},
|
|
1898
|
+
"hasDynamicHelp": false,
|
|
1899
|
+
"hiddenAliases": [],
|
|
1900
|
+
"id": "template:generate:project",
|
|
1901
|
+
"pluginAlias": "@salesforce/plugin-templates",
|
|
1902
|
+
"pluginName": "@salesforce/plugin-templates",
|
|
1903
|
+
"pluginType": "core",
|
|
1904
|
+
"strict": true,
|
|
1905
|
+
"summary": "Generate a Salesforce DX project.",
|
|
1906
|
+
"enableJsonFlag": true,
|
|
1907
|
+
"isESM": true,
|
|
1908
|
+
"relativePath": [
|
|
1909
|
+
"lib",
|
|
1910
|
+
"commands",
|
|
1911
|
+
"template",
|
|
1912
|
+
"generate",
|
|
1913
|
+
"project",
|
|
1914
|
+
"index.js"
|
|
1915
|
+
],
|
|
1916
|
+
"aliasPermutations": [
|
|
1917
|
+
"force:project:create",
|
|
1918
|
+
"project:force:create",
|
|
1919
|
+
"project:create:force",
|
|
1920
|
+
"force:create:project",
|
|
1921
|
+
"create:force:project",
|
|
1922
|
+
"create:project:force",
|
|
1923
|
+
"project:generate",
|
|
1924
|
+
"generate:project"
|
|
1925
|
+
],
|
|
1926
|
+
"permutations": [
|
|
1927
|
+
"template:generate:project",
|
|
1928
|
+
"generate:template:project",
|
|
1929
|
+
"generate:project:template",
|
|
1930
|
+
"template:project:generate",
|
|
1931
|
+
"project:template:generate",
|
|
1932
|
+
"project:generate:template"
|
|
1933
|
+
]
|
|
1934
|
+
},
|
|
1935
1935
|
"template:generate:static-resource": {
|
|
1936
1936
|
"aliases": [
|
|
1937
1937
|
"force:staticresource:create",
|
|
@@ -2169,10 +2169,10 @@
|
|
|
2169
2169
|
"template:generate:ui-embedding": {
|
|
2170
2170
|
"aliases": [],
|
|
2171
2171
|
"args": {},
|
|
2172
|
-
"description": "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 (
|
|
2172
|
+
"description": "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).\n\nThe 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\".",
|
|
2173
2173
|
"examples": [
|
|
2174
|
-
"Generate an embedding wrapper LWC in the current directory:\n<%= config.bin %> <%= command.id %> --name MyEmbeddingWrapper --src https://app.example.com --sandbox allow-forms --
|
|
2175
|
-
"Generate an embedding wrapper LWC in the \"force-app/main/default/lwc\" directory with multiple sandbox tokens:\n<%= config.bin %> <%= command.id %> --name MyEmbeddingWrapper --src https://app.example.com --sandbox allow-forms --sandbox allow-scripts --
|
|
2174
|
+
"Generate an embedding wrapper LWC in the current directory:\n<%= config.bin %> <%= command.id %> --name MyEmbeddingWrapper --src https://app.example.com --sandbox allow-forms --title \"Expense Report Embedding\"",
|
|
2175
|
+
"Generate an embedding wrapper LWC in the \"force-app/main/default/lwc\" directory with multiple sandbox tokens:\n<%= 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"
|
|
2176
2176
|
],
|
|
2177
2177
|
"flags": {
|
|
2178
2178
|
"json": {
|
|
@@ -2233,9 +2233,9 @@
|
|
|
2233
2233
|
],
|
|
2234
2234
|
"type": "option"
|
|
2235
2235
|
},
|
|
2236
|
-
"
|
|
2236
|
+
"title": {
|
|
2237
2237
|
"description": "Written to the \"shell-title\" attribute on <lightning-ui-embedding> and used as the iframe's accessible name (announced by screen readers).",
|
|
2238
|
-
"name": "
|
|
2238
|
+
"name": "title",
|
|
2239
2239
|
"required": true,
|
|
2240
2240
|
"summary": "Accessible title for the embedded iframe.",
|
|
2241
2241
|
"hasDynamicHelp": false,
|
|
@@ -2287,13 +2287,11 @@
|
|
|
2287
2287
|
}
|
|
2288
2288
|
},
|
|
2289
2289
|
"hasDynamicHelp": false,
|
|
2290
|
-
"hidden": true,
|
|
2291
2290
|
"hiddenAliases": [],
|
|
2292
2291
|
"id": "template:generate:ui-embedding",
|
|
2293
2292
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
2294
2293
|
"pluginName": "@salesforce/plugin-templates",
|
|
2295
2294
|
"pluginType": "core",
|
|
2296
|
-
"state": "beta",
|
|
2297
2295
|
"strict": true,
|
|
2298
2296
|
"summary": "Generate a Lightning Web Component (LWC) bundle that wraps the <lightning-ui-embedding> base component.",
|
|
2299
2297
|
"enableJsonFlag": true,
|
|
@@ -2672,5 +2670,5 @@
|
|
|
2672
2670
|
]
|
|
2673
2671
|
}
|
|
2674
2672
|
},
|
|
2675
|
-
"version": "57.
|
|
2673
|
+
"version": "57.3.0"
|
|
2676
2674
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-templates",
|
|
3
3
|
"description": "Commands to create metadata from a default or custom template",
|
|
4
|
-
"version": "57.
|
|
4
|
+
"version": "57.3.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/salesforcecli/plugin-templates/issues",
|
|
7
7
|
"enableO11y": true,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@salesforce/core": "^9.1.9",
|
|
11
11
|
"@salesforce/sf-plugins-core": "^13.0.4",
|
|
12
|
-
"@salesforce/templates": "^66.
|
|
12
|
+
"@salesforce/templates": "^66.15.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@oclif/plugin-command-snapshot": "^6.0.0",
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
"exports": "./lib/index.js",
|
|
260
260
|
"type": "module",
|
|
261
261
|
"sfdx": {
|
|
262
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/57.
|
|
263
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/57.
|
|
262
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/57.3.0.crt",
|
|
263
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/57.3.0.sig"
|
|
264
264
|
}
|
|
265
265
|
}
|