@salesforce/plugin-templates 56.19.5 → 56.20.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
@@ -177,7 +177,7 @@ FLAG DESCRIPTIONS
177
177
  directory.
178
178
  ```
179
179
 
180
- _See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/analytics/template.ts)_
180
+ _See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/analytics/template.ts)_
181
181
 
182
182
  ## `sf template generate apex class`
183
183
 
@@ -239,7 +239,7 @@ FLAG DESCRIPTIONS
239
239
  Supplied parameter values or default values are filled into a copy of the template.
240
240
  ```
241
241
 
242
- _See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/apex/class.ts)_
242
+ _See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/apex/class.ts)_
243
243
 
244
244
  ## `sf template generate apex trigger`
245
245
 
@@ -309,7 +309,7 @@ FLAG DESCRIPTIONS
309
309
  Supplied parameter values or default values are filled into a copy of the template.
310
310
  ```
311
311
 
312
- _See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/apex/trigger.ts)_
312
+ _See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/apex/trigger.ts)_
313
313
 
314
314
  ## `sf template generate digital-experience site`
315
315
 
@@ -363,7 +363,7 @@ FLAG DESCRIPTIONS
363
363
  project, defaults to the current directory.
364
364
  ```
365
365
 
366
- _See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/digital-experience/site.ts)_
366
+ _See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/digital-experience/site.ts)_
367
367
 
368
368
  ## `sf template generate flexipage`
369
369
 
@@ -445,7 +445,7 @@ FLAG DESCRIPTIONS
445
445
  'Custom_Object__c'. This sets the `sobjectType` field in the FlexiPage metadata.
446
446
  ```
447
447
 
448
- _See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/flexipage/index.ts)_
448
+ _See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/flexipage/index.ts)_
449
449
 
450
450
  ## `sf template generate lightning app`
451
451
 
@@ -503,7 +503,7 @@ FLAG DESCRIPTIONS
503
503
  field in the DX project's "sfdx-project.json" file.
504
504
  ```
505
505
 
506
- _See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/lightning/app.ts)_
506
+ _See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/lightning/app.ts)_
507
507
 
508
508
  ## `sf template generate lightning component`
509
509
 
@@ -580,7 +580,7 @@ FLAG DESCRIPTIONS
580
580
  field in the DX project's "sfdx-project.json" file.
581
581
  ```
582
582
 
583
- _See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/lightning/component.ts)_
583
+ _See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/lightning/component.ts)_
584
584
 
585
585
  ## `sf template generate lightning event`
586
586
 
@@ -638,7 +638,7 @@ FLAG DESCRIPTIONS
638
638
  field in the DX project's "sfdx-project.json" file.
639
639
  ```
640
640
 
641
- _See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/lightning/event.ts)_
641
+ _See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/lightning/event.ts)_
642
642
 
643
643
  ## `sf template generate lightning interface`
644
644
 
@@ -696,7 +696,7 @@ FLAG DESCRIPTIONS
696
696
  field in the DX project's "sfdx-project.json" file.
697
697
  ```
698
698
 
699
- _See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/lightning/interface.ts)_
699
+ _See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/lightning/interface.ts)_
700
700
 
701
701
  ## `sf template generate lightning test`
702
702
 
@@ -754,7 +754,7 @@ FLAG DESCRIPTIONS
754
754
  field in the DX project's "sfdx-project.json" file.
755
755
  ```
756
756
 
757
- _See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/lightning/test.ts)_
757
+ _See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/lightning/test.ts)_
758
758
 
759
759
  ## `sf template generate project`
760
760
 
@@ -886,7 +886,7 @@ FLAG DESCRIPTIONS
886
886
  server-side type stripping.
887
887
  ```
888
888
 
889
- _See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/project/index.ts)_
889
+ _See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/project/index.ts)_
890
890
 
891
891
  ## `sf template generate static-resource`
892
892
 
@@ -949,7 +949,7 @@ FLAG DESCRIPTIONS
949
949
  etc.
950
950
  ```
951
951
 
952
- _See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/static-resource/index.ts)_
952
+ _See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/static-resource/index.ts)_
953
953
 
954
954
  ## `sf template generate ui-bundle`
955
955
 
@@ -1038,7 +1038,7 @@ FLAG DESCRIPTIONS
1038
1038
  Supplied parameter values or default values are filled into a copy of the template.
1039
1039
  ```
1040
1040
 
1041
- _See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/ui-bundle/index.ts)_
1041
+ _See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/ui-bundle/index.ts)_
1042
1042
 
1043
1043
  ## `sf template generate visualforce component`
1044
1044
 
@@ -1095,7 +1095,7 @@ FLAG DESCRIPTIONS
1095
1095
  Supplied parameter values or default values are filled into a copy of the template.
1096
1096
  ```
1097
1097
 
1098
- _See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/visualforce/component.ts)_
1098
+ _See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/visualforce/component.ts)_
1099
1099
 
1100
1100
  ## `sf template generate visualforce page`
1101
1101
 
@@ -1146,6 +1146,6 @@ FLAG DESCRIPTIONS
1146
1146
  The name can be up to 40 characters and must start with a letter.
1147
1147
  ```
1148
1148
 
1149
- _See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.19.5/src/commands/template/generate/visualforce/page.ts)_
1149
+ _See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.20.0/src/commands/template/generate/visualforce/page.ts)_
1150
1150
 
1151
1151
  <!-- commandsstop -->
@@ -1,6 +1,6 @@
1
1
  import { SfCommand } from '@salesforce/sf-plugins-core';
2
2
  import { CreateOutput } from '@salesforce/templates';
3
- export default class LightningEmbedding extends SfCommand<CreateOutput> {
3
+ 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[];
@@ -10,8 +10,8 @@ import { Messages } from '@salesforce/core';
10
10
  import { getCustomTemplates, runGenerator } from '../../../../utils/templateCommand.js';
11
11
  import { internalFlag, outputDirFlagLightning } from '../../../../utils/flags.js';
12
12
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
13
- const messages = Messages.loadMessages('@salesforce/plugin-templates', 'lightningEmbedding');
14
- export default class LightningEmbedding extends SfCommand {
13
+ const messages = Messages.loadMessages('@salesforce/plugin-templates', 'uiEmbedding');
14
+ export default class UIEmbedding extends SfCommand {
15
15
  static summary = messages.getMessage('summary');
16
16
  static description = messages.getMessage('description');
17
17
  static examples = messages.getMessages('examples');
@@ -54,7 +54,7 @@ export default class LightningEmbedding extends SfCommand {
54
54
  loglevel,
55
55
  };
56
56
  async run() {
57
- const { flags } = await this.parse(LightningEmbedding);
57
+ const { flags } = await this.parse(UIEmbedding);
58
58
  const flagsAsOptions = {
59
59
  componentname: flags.name,
60
60
  src: flags.src,
@@ -72,4 +72,4 @@ export default class LightningEmbedding extends SfCommand {
72
72
  });
73
73
  }
74
74
  }
75
- //# sourceMappingURL=embedding.js.map
75
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/commands/template/generate/ui-embedding/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;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,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WAAW,EAAE,EAAE,CAAC;YAC/C,SAAS,EAAE,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACrD,CAAC,CAAC;IACL,CAAC"}
@@ -2,19 +2,19 @@
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 Widget"
5
+ <%= config.bin %> <%= command.id %> --name MyEmbeddingWrapper --src https://app.example.com --sandbox allow-forms --shell-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 Widget" --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 --shell-title "Expense Report Embedding" --output-dir force-app/main/default/lwc
10
10
 
11
11
  # summary
12
12
 
13
- Generate a Lightning Web Component (LWC) bundle that wraps the lightning-embedding base component.
13
+ Generate a Lightning Web Component (LWC) bundle that wraps the <lightning-ui-embedding> base component.
14
14
 
15
15
  # description
16
16
 
17
- The generated LWC bundle consumes the first-party <lightning-embedding> component, which is pre-wired with the three required attributes: the widget 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 (shell-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
 
@@ -32,7 +32,7 @@ Absolute HTTPS URL that the iframe will load.
32
32
 
33
33
  # flags.src.description
34
34
 
35
- The URL is bound to the <lightning-embedding> "src" attribute as a reactive property in the generated LWC. Must use HTTPS; plain HTTP is allowed only for localhost or 127.0.0.1 (for local development).
35
+ The URL is bound to the <lightning-ui-embedding> "src" attribute as a reactive property in the generated LWC. Must use HTTPS; plain HTTP is allowed only for localhost or 127.0.0.1 (for local development).
36
36
 
37
37
  # flags.src.error
38
38
 
@@ -44,7 +44,7 @@ Iframe sandbox token. Specify this flag multiple times to set more than one toke
44
44
 
45
45
  # flags.sandbox.description
46
46
 
47
- Each token is written into the space-separated "sandbox" attribute on <lightning-embedding>. Only W3C-defined sandbox tokens are accepted.
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
49
  # flags.shell-title.summary
50
50
 
@@ -52,4 +52,4 @@ Accessible title for the embedded iframe.
52
52
 
53
53
  # flags.shell-title.description
54
54
 
55
- Written to the "shell-title" attribute on <lightning-embedding> and used as the iframe's accessible name (announced by screen readers).
55
+ Written to the "shell-title" attribute on <lightning-ui-embedding> and used as the iframe's accessible name (announced by screen readers).
@@ -530,134 +530,6 @@
530
530
  "trigger:apex:generate:template"
531
531
  ]
532
532
  },
533
- "template:generate:digital-experience:site": {
534
- "aliases": [],
535
- "args": {},
536
- "description": "Creates the metadata of an Experience Cloud site with the specified template, name, and URL path prefix. The output includes all the necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and CustomSite.\nUnlike `sf community create`, which builds the site directly in the org, this command generates only the local metadata.",
537
- "examples": [
538
- "Generate an Experience Cloud site using the Build Your Own (LWR) template. The site is called \"mysite\" and has the URL path prefix \"mysite\":\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite",
539
- "Generate an Experience Cloud site like the last example, but generate the files into the specified output directory:\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite --output-dir force-app/main/default"
540
- ],
541
- "flags": {
542
- "json": {
543
- "description": "Format output as json.",
544
- "helpGroup": "GLOBAL",
545
- "name": "json",
546
- "allowNo": false,
547
- "type": "boolean"
548
- },
549
- "flags-dir": {
550
- "helpGroup": "GLOBAL",
551
- "name": "flags-dir",
552
- "summary": "Import flag values from a directory.",
553
- "hasDynamicHelp": false,
554
- "multiple": false,
555
- "type": "option"
556
- },
557
- "target-org": {
558
- "char": "o",
559
- "name": "target-org",
560
- "noCacheDefault": true,
561
- "summary": "Username or alias of the target org.",
562
- "hasDynamicHelp": true,
563
- "multiple": false,
564
- "type": "option"
565
- },
566
- "name": {
567
- "char": "n",
568
- "name": "name",
569
- "required": true,
570
- "summary": "Name of the Experience Cloud site to generate.",
571
- "hasDynamicHelp": false,
572
- "multiple": false,
573
- "type": "option"
574
- },
575
- "template-name": {
576
- "char": "t",
577
- "name": "template-name",
578
- "required": true,
579
- "summary": "Template to use when generating the site.",
580
- "hasDynamicHelp": false,
581
- "multiple": false,
582
- "options": [
583
- "Build Your Own (LWR)"
584
- ],
585
- "type": "option"
586
- },
587
- "url-path-prefix": {
588
- "char": "p",
589
- "name": "url-path-prefix",
590
- "summary": "URL path prefix for the site; must contain only alphanumeric characters.",
591
- "default": "",
592
- "hasDynamicHelp": false,
593
- "multiple": false,
594
- "type": "option"
595
- },
596
- "admin-email": {
597
- "char": "e",
598
- "name": "admin-email",
599
- "summary": "Email address for the site administrator. Defaults to the username of the currently authenticated user.",
600
- "hasDynamicHelp": false,
601
- "multiple": false,
602
- "type": "option"
603
- },
604
- "output-dir": {
605
- "char": "d",
606
- "description": "The location can be an absolute path or relative to the current working directory. If not specified, the command reads your sfdx-project.json file and uses the default package directory. When running outside a Salesforce DX project, defaults to the current directory.",
607
- "name": "output-dir",
608
- "summary": "Directory to generate the site files in.",
609
- "hasDynamicHelp": false,
610
- "multiple": false,
611
- "type": "option"
612
- }
613
- },
614
- "hasDynamicHelp": true,
615
- "hiddenAliases": [],
616
- "id": "template:generate:digital-experience:site",
617
- "pluginAlias": "@salesforce/plugin-templates",
618
- "pluginName": "@salesforce/plugin-templates",
619
- "pluginType": "core",
620
- "state": "preview",
621
- "strict": true,
622
- "summary": "Generate an Experience Cloud site.",
623
- "enableJsonFlag": true,
624
- "isESM": true,
625
- "relativePath": [
626
- "lib",
627
- "commands",
628
- "template",
629
- "generate",
630
- "digital-experience",
631
- "site.js"
632
- ],
633
- "aliasPermutations": [],
634
- "permutations": [
635
- "template:generate:digital-experience:site",
636
- "generate:template:digital-experience:site",
637
- "generate:digital-experience:template:site",
638
- "generate:digital-experience:site:template",
639
- "template:digital-experience:generate:site",
640
- "digital-experience:template:generate:site",
641
- "digital-experience:generate:template:site",
642
- "digital-experience:generate:site:template",
643
- "template:digital-experience:site:generate",
644
- "digital-experience:template:site:generate",
645
- "digital-experience:site:template:generate",
646
- "digital-experience:site:generate:template",
647
- "template:generate:site:digital-experience",
648
- "generate:template:site:digital-experience",
649
- "generate:site:template:digital-experience",
650
- "generate:site:digital-experience:template",
651
- "template:site:generate:digital-experience",
652
- "site:template:generate:digital-experience",
653
- "site:generate:template:digital-experience",
654
- "site:generate:digital-experience:template",
655
- "template:site:digital-experience:generate",
656
- "site:template:digital-experience:generate",
657
- "site:digital-experience:template:generate",
658
- "site:digital-experience:generate:template"
659
- ]
660
- },
661
533
  "template:generate:flexipage": {
662
534
  "aliases": [],
663
535
  "args": {},
@@ -841,6 +713,134 @@
841
713
  "flexipage:generate:template"
842
714
  ]
843
715
  },
716
+ "template:generate:digital-experience:site": {
717
+ "aliases": [],
718
+ "args": {},
719
+ "description": "Creates the metadata of an Experience Cloud site with the specified template, name, and URL path prefix. The output includes all the necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and CustomSite.\nUnlike `sf community create`, which builds the site directly in the org, this command generates only the local metadata.",
720
+ "examples": [
721
+ "Generate an Experience Cloud site using the Build Your Own (LWR) template. The site is called \"mysite\" and has the URL path prefix \"mysite\":\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite",
722
+ "Generate an Experience Cloud site like the last example, but generate the files into the specified output directory:\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite --output-dir force-app/main/default"
723
+ ],
724
+ "flags": {
725
+ "json": {
726
+ "description": "Format output as json.",
727
+ "helpGroup": "GLOBAL",
728
+ "name": "json",
729
+ "allowNo": false,
730
+ "type": "boolean"
731
+ },
732
+ "flags-dir": {
733
+ "helpGroup": "GLOBAL",
734
+ "name": "flags-dir",
735
+ "summary": "Import flag values from a directory.",
736
+ "hasDynamicHelp": false,
737
+ "multiple": false,
738
+ "type": "option"
739
+ },
740
+ "target-org": {
741
+ "char": "o",
742
+ "name": "target-org",
743
+ "noCacheDefault": true,
744
+ "summary": "Username or alias of the target org.",
745
+ "hasDynamicHelp": true,
746
+ "multiple": false,
747
+ "type": "option"
748
+ },
749
+ "name": {
750
+ "char": "n",
751
+ "name": "name",
752
+ "required": true,
753
+ "summary": "Name of the Experience Cloud site to generate.",
754
+ "hasDynamicHelp": false,
755
+ "multiple": false,
756
+ "type": "option"
757
+ },
758
+ "template-name": {
759
+ "char": "t",
760
+ "name": "template-name",
761
+ "required": true,
762
+ "summary": "Template to use when generating the site.",
763
+ "hasDynamicHelp": false,
764
+ "multiple": false,
765
+ "options": [
766
+ "Build Your Own (LWR)"
767
+ ],
768
+ "type": "option"
769
+ },
770
+ "url-path-prefix": {
771
+ "char": "p",
772
+ "name": "url-path-prefix",
773
+ "summary": "URL path prefix for the site; must contain only alphanumeric characters.",
774
+ "default": "",
775
+ "hasDynamicHelp": false,
776
+ "multiple": false,
777
+ "type": "option"
778
+ },
779
+ "admin-email": {
780
+ "char": "e",
781
+ "name": "admin-email",
782
+ "summary": "Email address for the site administrator. Defaults to the username of the currently authenticated user.",
783
+ "hasDynamicHelp": false,
784
+ "multiple": false,
785
+ "type": "option"
786
+ },
787
+ "output-dir": {
788
+ "char": "d",
789
+ "description": "The location can be an absolute path or relative to the current working directory. If not specified, the command reads your sfdx-project.json file and uses the default package directory. When running outside a Salesforce DX project, defaults to the current directory.",
790
+ "name": "output-dir",
791
+ "summary": "Directory to generate the site files in.",
792
+ "hasDynamicHelp": false,
793
+ "multiple": false,
794
+ "type": "option"
795
+ }
796
+ },
797
+ "hasDynamicHelp": true,
798
+ "hiddenAliases": [],
799
+ "id": "template:generate:digital-experience:site",
800
+ "pluginAlias": "@salesforce/plugin-templates",
801
+ "pluginName": "@salesforce/plugin-templates",
802
+ "pluginType": "core",
803
+ "state": "preview",
804
+ "strict": true,
805
+ "summary": "Generate an Experience Cloud site.",
806
+ "enableJsonFlag": true,
807
+ "isESM": true,
808
+ "relativePath": [
809
+ "lib",
810
+ "commands",
811
+ "template",
812
+ "generate",
813
+ "digital-experience",
814
+ "site.js"
815
+ ],
816
+ "aliasPermutations": [],
817
+ "permutations": [
818
+ "template:generate:digital-experience:site",
819
+ "generate:template:digital-experience:site",
820
+ "generate:digital-experience:template:site",
821
+ "generate:digital-experience:site:template",
822
+ "template:digital-experience:generate:site",
823
+ "digital-experience:template:generate:site",
824
+ "digital-experience:generate:template:site",
825
+ "digital-experience:generate:site:template",
826
+ "template:digital-experience:site:generate",
827
+ "digital-experience:template:site:generate",
828
+ "digital-experience:site:template:generate",
829
+ "digital-experience:site:generate:template",
830
+ "template:generate:site:digital-experience",
831
+ "generate:template:site:digital-experience",
832
+ "generate:site:template:digital-experience",
833
+ "generate:site:digital-experience:template",
834
+ "template:site:generate:digital-experience",
835
+ "site:template:generate:digital-experience",
836
+ "site:generate:template:digital-experience",
837
+ "site:generate:digital-experience:template",
838
+ "template:site:digital-experience:generate",
839
+ "site:template:digital-experience:generate",
840
+ "site:digital-experience:template:generate",
841
+ "site:digital-experience:generate:template"
842
+ ]
843
+ },
844
844
  "template:generate:lightning:app": {
845
845
  "aliases": [
846
846
  "force:lightning:app:create",
@@ -1053,240 +1053,31 @@
1053
1053
  "componentname"
1054
1054
  ],
1055
1055
  "char": "n",
1056
- "deprecateAliases": true,
1057
- "description": "The name can be up to 40 characters and must start with a letter.",
1058
- "name": "name",
1059
- "required": true,
1060
- "summary": "Name of the generated Lightning Component.",
1061
- "hasDynamicHelp": false,
1062
- "multiple": false,
1063
- "type": "option"
1064
- },
1065
- "template": {
1066
- "char": "t",
1067
- "description": "Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\" field in the DX project's \"sfdx-project.json\" file.",
1068
- "name": "template",
1069
- "summary": "Template to use for file creation.",
1070
- "default": "default",
1071
- "hasDynamicHelp": false,
1072
- "multiple": false,
1073
- "options": [
1074
- "default",
1075
- "analyticsDashboard",
1076
- "analyticsDashboardWithStep",
1077
- "typescript"
1078
- ],
1079
- "type": "option"
1080
- },
1081
- "output-dir": {
1082
- "aliases": [
1083
- "outputdir"
1084
- ],
1085
- "char": "d",
1086
- "deprecateAliases": true,
1087
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
1088
- "name": "output-dir",
1089
- "summary": "Directory for saving the created files.",
1090
- "default": ".",
1091
- "hasDynamicHelp": false,
1092
- "multiple": false,
1093
- "type": "option"
1094
- },
1095
- "api-version": {
1096
- "aliases": [
1097
- "apiversion"
1098
- ],
1099
- "deprecateAliases": true,
1100
- "description": "Override the api version used for api requests made by this command",
1101
- "name": "api-version",
1102
- "hasDynamicHelp": false,
1103
- "multiple": false,
1104
- "type": "option"
1105
- },
1106
- "type": {
1107
- "name": "type",
1108
- "summary": "Type of the component bundle.",
1109
- "default": "aura",
1110
- "hasDynamicHelp": false,
1111
- "multiple": false,
1112
- "options": [
1113
- "aura",
1114
- "lwc"
1115
- ],
1116
- "type": "option"
1117
- },
1118
- "internal": {
1119
- "char": "i",
1120
- "hidden": true,
1121
- "name": "internal",
1122
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
1123
- "allowNo": false,
1124
- "type": "boolean"
1125
- },
1126
- "loglevel": {
1127
- "deprecated": {
1128
- "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."
1129
- },
1130
- "hidden": true,
1131
- "name": "loglevel",
1132
- "hasDynamicHelp": false,
1133
- "multiple": false,
1134
- "type": "option"
1135
- }
1136
- },
1137
- "hasDynamicHelp": false,
1138
- "hiddenAliases": [],
1139
- "id": "template:generate:lightning:component",
1140
- "pluginAlias": "@salesforce/plugin-templates",
1141
- "pluginName": "@salesforce/plugin-templates",
1142
- "pluginType": "core",
1143
- "strict": true,
1144
- "summary": "Generate a bundle for an Aura component or a Lightning web component.",
1145
- "enableJsonFlag": true,
1146
- "isESM": true,
1147
- "relativePath": [
1148
- "lib",
1149
- "commands",
1150
- "template",
1151
- "generate",
1152
- "lightning",
1153
- "component.js"
1154
- ],
1155
- "aliasPermutations": [
1156
- "force:lightning:component:create",
1157
- "lightning:force:component:create",
1158
- "lightning:component:force:create",
1159
- "lightning:component:create:force",
1160
- "force:component:lightning:create",
1161
- "component:force:lightning:create",
1162
- "component:lightning:force:create",
1163
- "component:lightning:create:force",
1164
- "force:component:create:lightning",
1165
- "component:force:create:lightning",
1166
- "component:create:force:lightning",
1167
- "component:create:lightning:force",
1168
- "force:lightning:create:component",
1169
- "lightning:force:create:component",
1170
- "lightning:create:force:component",
1171
- "lightning:create:component:force",
1172
- "force:create:lightning:component",
1173
- "create:force:lightning:component",
1174
- "create:lightning:force:component",
1175
- "create:lightning:component:force",
1176
- "force:create:component:lightning",
1177
- "create:force:component:lightning",
1178
- "create:component:force:lightning",
1179
- "create:component:lightning:force",
1180
- "lightning:generate:component",
1181
- "generate:lightning:component",
1182
- "generate:component:lightning",
1183
- "lightning:component:generate",
1184
- "component:lightning:generate",
1185
- "component:generate:lightning"
1186
- ],
1187
- "permutations": [
1188
- "template:generate:lightning:component",
1189
- "generate:template:lightning:component",
1190
- "generate:lightning:template:component",
1191
- "generate:lightning:component:template",
1192
- "template:lightning:generate:component",
1193
- "lightning:template:generate:component",
1194
- "lightning:generate:template:component",
1195
- "lightning:generate:component:template",
1196
- "template:lightning:component:generate",
1197
- "lightning:template:component:generate",
1198
- "lightning:component:template:generate",
1199
- "lightning:component:generate:template",
1200
- "template:generate:component:lightning",
1201
- "generate:template:component:lightning",
1202
- "generate:component:template:lightning",
1203
- "generate:component:lightning:template",
1204
- "template:component:generate:lightning",
1205
- "component:template:generate:lightning",
1206
- "component:generate:template:lightning",
1207
- "component:generate:lightning:template",
1208
- "template:component:lightning:generate",
1209
- "component:template:lightning:generate",
1210
- "component:lightning:template:generate",
1211
- "component:lightning:generate:template"
1212
- ]
1213
- },
1214
- "template:generate:lightning:embedding": {
1215
- "aliases": [],
1216
- "args": {},
1217
- "description": "The generated LWC bundle consumes the first-party <lightning-embedding> component, which is pre-wired with the three required attributes: the widget URL (src), iframe sandbox tokens, and an accessible iframe title (shell-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\".",
1218
- "examples": [
1219
- "Generate an embedding wrapper LWC in the current directory:\n<%= config.bin %> <%= command.id %> --name MyEmbeddingWrapper --src https://app.example.com --sandbox allow-forms --shell-title \"Expense Report Widget\"",
1220
- "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 --shell-title \"Expense Report Widget\" --output-dir force-app/main/default/lwc"
1221
- ],
1222
- "flags": {
1223
- "json": {
1224
- "description": "Format output as json.",
1225
- "helpGroup": "GLOBAL",
1226
- "name": "json",
1227
- "allowNo": false,
1228
- "type": "boolean"
1229
- },
1230
- "flags-dir": {
1231
- "helpGroup": "GLOBAL",
1232
- "name": "flags-dir",
1233
- "summary": "Import flag values from a directory.",
1234
- "hasDynamicHelp": false,
1235
- "multiple": false,
1236
- "type": "option"
1237
- },
1238
- "name": {
1239
- "char": "n",
1240
- "description": "The component name is also used (camelCased) as the LWC folder name and file stem. Must contain only alphanumeric characters and start with a letter.",
1056
+ "deprecateAliases": true,
1057
+ "description": "The name can be up to 40 characters and must start with a letter.",
1241
1058
  "name": "name",
1242
1059
  "required": true,
1243
- "summary": "Name of the generated component; must be in PascalCase format.",
1060
+ "summary": "Name of the generated Lightning Component.",
1244
1061
  "hasDynamicHelp": false,
1245
1062
  "multiple": false,
1246
1063
  "type": "option"
1247
1064
  },
1248
- "src": {
1249
- "char": "s",
1250
- "description": "The URL is bound to the <lightning-embedding> \"src\" attribute as a reactive property in the generated LWC. Must use HTTPS; plain HTTP is allowed only for localhost or 127.0.0.1 (for local development).",
1251
- "name": "src",
1252
- "required": true,
1253
- "summary": "Absolute HTTPS URL that the iframe will load.",
1065
+ "template": {
1066
+ "char": "t",
1067
+ "description": "Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\" field in the DX project's \"sfdx-project.json\" file.",
1068
+ "name": "template",
1069
+ "summary": "Template to use for file creation.",
1070
+ "default": "default",
1254
1071
  "hasDynamicHelp": false,
1255
1072
  "multiple": false,
1256
- "type": "option"
1257
- },
1258
- "sandbox": {
1259
- "description": "Each token is written into the space-separated \"sandbox\" attribute on <lightning-embedding>. Only W3C-defined sandbox tokens are accepted.",
1260
- "name": "sandbox",
1261
- "required": true,
1262
- "summary": "Iframe sandbox token. Specify this flag multiple times to set more than one token.",
1263
- "hasDynamicHelp": false,
1264
- "multiple": true,
1265
1073
  "options": [
1266
- "allow-forms",
1267
- "allow-modals",
1268
- "allow-orientation-lock",
1269
- "allow-pointer-lock",
1270
- "allow-popups",
1271
- "allow-popups-to-escape-sandbox",
1272
- "allow-presentation",
1273
- "allow-same-origin",
1274
- "allow-scripts",
1275
- "allow-storage-access-by-user-activation",
1276
- "allow-top-navigation",
1277
- "allow-top-navigation-by-user-activation"
1074
+ "default",
1075
+ "analyticsDashboard",
1076
+ "analyticsDashboardWithStep",
1077
+ "typescript"
1278
1078
  ],
1279
1079
  "type": "option"
1280
1080
  },
1281
- "shell-title": {
1282
- "description": "Written to the \"shell-title\" attribute on <lightning-embedding> and used as the iframe's accessible name (announced by screen readers).",
1283
- "name": "shell-title",
1284
- "required": true,
1285
- "summary": "Accessible title for the embedded iframe.",
1286
- "hasDynamicHelp": false,
1287
- "multiple": false,
1288
- "type": "option"
1289
- },
1290
1081
  "output-dir": {
1291
1082
  "aliases": [
1292
1083
  "outputdir"
@@ -1312,6 +1103,18 @@
1312
1103
  "multiple": false,
1313
1104
  "type": "option"
1314
1105
  },
1106
+ "type": {
1107
+ "name": "type",
1108
+ "summary": "Type of the component bundle.",
1109
+ "default": "aura",
1110
+ "hasDynamicHelp": false,
1111
+ "multiple": false,
1112
+ "options": [
1113
+ "aura",
1114
+ "lwc"
1115
+ ],
1116
+ "type": "option"
1117
+ },
1315
1118
  "internal": {
1316
1119
  "char": "i",
1317
1120
  "hidden": true,
@@ -1332,15 +1135,13 @@
1332
1135
  }
1333
1136
  },
1334
1137
  "hasDynamicHelp": false,
1335
- "hidden": true,
1336
1138
  "hiddenAliases": [],
1337
- "id": "template:generate:lightning:embedding",
1139
+ "id": "template:generate:lightning:component",
1338
1140
  "pluginAlias": "@salesforce/plugin-templates",
1339
1141
  "pluginName": "@salesforce/plugin-templates",
1340
1142
  "pluginType": "core",
1341
- "state": "beta",
1342
1143
  "strict": true,
1343
- "summary": "Generate a Lightning Web Component (LWC) bundle that wraps the lightning-embedding base component.",
1144
+ "summary": "Generate a bundle for an Aura component or a Lightning web component.",
1344
1145
  "enableJsonFlag": true,
1345
1146
  "isESM": true,
1346
1147
  "relativePath": [
@@ -1349,34 +1150,65 @@
1349
1150
  "template",
1350
1151
  "generate",
1351
1152
  "lightning",
1352
- "embedding.js"
1153
+ "component.js"
1154
+ ],
1155
+ "aliasPermutations": [
1156
+ "force:lightning:component:create",
1157
+ "lightning:force:component:create",
1158
+ "lightning:component:force:create",
1159
+ "lightning:component:create:force",
1160
+ "force:component:lightning:create",
1161
+ "component:force:lightning:create",
1162
+ "component:lightning:force:create",
1163
+ "component:lightning:create:force",
1164
+ "force:component:create:lightning",
1165
+ "component:force:create:lightning",
1166
+ "component:create:force:lightning",
1167
+ "component:create:lightning:force",
1168
+ "force:lightning:create:component",
1169
+ "lightning:force:create:component",
1170
+ "lightning:create:force:component",
1171
+ "lightning:create:component:force",
1172
+ "force:create:lightning:component",
1173
+ "create:force:lightning:component",
1174
+ "create:lightning:force:component",
1175
+ "create:lightning:component:force",
1176
+ "force:create:component:lightning",
1177
+ "create:force:component:lightning",
1178
+ "create:component:force:lightning",
1179
+ "create:component:lightning:force",
1180
+ "lightning:generate:component",
1181
+ "generate:lightning:component",
1182
+ "generate:component:lightning",
1183
+ "lightning:component:generate",
1184
+ "component:lightning:generate",
1185
+ "component:generate:lightning"
1353
1186
  ],
1354
- "aliasPermutations": [],
1355
1187
  "permutations": [
1356
- "template:generate:lightning:embedding",
1357
- "generate:template:lightning:embedding",
1358
- "generate:lightning:template:embedding",
1359
- "generate:lightning:embedding:template",
1360
- "template:lightning:generate:embedding",
1361
- "lightning:template:generate:embedding",
1362
- "lightning:generate:template:embedding",
1363
- "lightning:generate:embedding:template",
1364
- "template:lightning:embedding:generate",
1365
- "lightning:template:embedding:generate",
1366
- "lightning:embedding:template:generate",
1367
- "lightning:embedding:generate:template",
1368
- "template:generate:embedding:lightning",
1369
- "generate:template:embedding:lightning",
1370
- "generate:embedding:template:lightning",
1371
- "generate:embedding:lightning:template",
1372
- "template:embedding:generate:lightning",
1373
- "embedding:template:generate:lightning",
1374
- "embedding:generate:template:lightning",
1375
- "embedding:generate:lightning:template",
1376
- "template:embedding:lightning:generate",
1377
- "embedding:template:lightning:generate",
1378
- "embedding:lightning:template:generate",
1379
- "embedding:lightning:generate:template"
1188
+ "template:generate:lightning:component",
1189
+ "generate:template:lightning:component",
1190
+ "generate:lightning:template:component",
1191
+ "generate:lightning:component:template",
1192
+ "template:lightning:generate:component",
1193
+ "lightning:template:generate:component",
1194
+ "lightning:generate:template:component",
1195
+ "lightning:generate:component:template",
1196
+ "template:lightning:component:generate",
1197
+ "lightning:template:component:generate",
1198
+ "lightning:component:template:generate",
1199
+ "lightning:component:generate:template",
1200
+ "template:generate:component:lightning",
1201
+ "generate:template:component:lightning",
1202
+ "generate:component:template:lightning",
1203
+ "generate:component:lightning:template",
1204
+ "template:component:generate:lightning",
1205
+ "component:template:generate:lightning",
1206
+ "component:generate:template:lightning",
1207
+ "component:generate:lightning:template",
1208
+ "template:component:lightning:generate",
1209
+ "component:template:lightning:generate",
1210
+ "component:lightning:template:generate",
1211
+ "component:lightning:generate:template"
1380
1212
  ]
1381
1213
  },
1382
1214
  "template:generate:lightning:event": {
@@ -2334,6 +2166,156 @@
2334
2166
  "ui-bundle:generate:template"
2335
2167
  ]
2336
2168
  },
2169
+ "template:generate:ui-embedding": {
2170
+ "aliases": [],
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 (shell-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
+ "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 --shell-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 --shell-title \"Expense Report Embedding\" --output-dir force-app/main/default/lwc"
2176
+ ],
2177
+ "flags": {
2178
+ "json": {
2179
+ "description": "Format output as json.",
2180
+ "helpGroup": "GLOBAL",
2181
+ "name": "json",
2182
+ "allowNo": false,
2183
+ "type": "boolean"
2184
+ },
2185
+ "flags-dir": {
2186
+ "helpGroup": "GLOBAL",
2187
+ "name": "flags-dir",
2188
+ "summary": "Import flag values from a directory.",
2189
+ "hasDynamicHelp": false,
2190
+ "multiple": false,
2191
+ "type": "option"
2192
+ },
2193
+ "name": {
2194
+ "char": "n",
2195
+ "description": "The component name is also used (camelCased) as the LWC folder name and file stem. Must contain only alphanumeric characters and start with a letter.",
2196
+ "name": "name",
2197
+ "required": true,
2198
+ "summary": "Name of the generated component; must be in PascalCase format.",
2199
+ "hasDynamicHelp": false,
2200
+ "multiple": false,
2201
+ "type": "option"
2202
+ },
2203
+ "src": {
2204
+ "char": "s",
2205
+ "description": "The URL is bound to the <lightning-ui-embedding> \"src\" attribute as a reactive property in the generated LWC. Must use HTTPS; plain HTTP is allowed only for localhost or 127.0.0.1 (for local development).",
2206
+ "name": "src",
2207
+ "required": true,
2208
+ "summary": "Absolute HTTPS URL that the iframe will load.",
2209
+ "hasDynamicHelp": false,
2210
+ "multiple": false,
2211
+ "type": "option"
2212
+ },
2213
+ "sandbox": {
2214
+ "description": "Each token is written into the space-separated \"sandbox\" attribute on <lightning-ui-embedding>. Only W3C-defined sandbox tokens are accepted.",
2215
+ "name": "sandbox",
2216
+ "required": true,
2217
+ "summary": "Iframe sandbox token. Specify this flag multiple times to set more than one token.",
2218
+ "hasDynamicHelp": false,
2219
+ "multiple": true,
2220
+ "options": [
2221
+ "allow-forms",
2222
+ "allow-modals",
2223
+ "allow-orientation-lock",
2224
+ "allow-pointer-lock",
2225
+ "allow-popups",
2226
+ "allow-popups-to-escape-sandbox",
2227
+ "allow-presentation",
2228
+ "allow-same-origin",
2229
+ "allow-scripts",
2230
+ "allow-storage-access-by-user-activation",
2231
+ "allow-top-navigation",
2232
+ "allow-top-navigation-by-user-activation"
2233
+ ],
2234
+ "type": "option"
2235
+ },
2236
+ "shell-title": {
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": "shell-title",
2239
+ "required": true,
2240
+ "summary": "Accessible title for the embedded iframe.",
2241
+ "hasDynamicHelp": false,
2242
+ "multiple": false,
2243
+ "type": "option"
2244
+ },
2245
+ "output-dir": {
2246
+ "aliases": [
2247
+ "outputdir"
2248
+ ],
2249
+ "char": "d",
2250
+ "deprecateAliases": true,
2251
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
2252
+ "name": "output-dir",
2253
+ "summary": "Directory for saving the created files.",
2254
+ "default": ".",
2255
+ "hasDynamicHelp": false,
2256
+ "multiple": false,
2257
+ "type": "option"
2258
+ },
2259
+ "api-version": {
2260
+ "aliases": [
2261
+ "apiversion"
2262
+ ],
2263
+ "deprecateAliases": true,
2264
+ "description": "Override the api version used for api requests made by this command",
2265
+ "name": "api-version",
2266
+ "hasDynamicHelp": false,
2267
+ "multiple": false,
2268
+ "type": "option"
2269
+ },
2270
+ "internal": {
2271
+ "char": "i",
2272
+ "hidden": true,
2273
+ "name": "internal",
2274
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
2275
+ "allowNo": false,
2276
+ "type": "boolean"
2277
+ },
2278
+ "loglevel": {
2279
+ "deprecated": {
2280
+ "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."
2281
+ },
2282
+ "hidden": true,
2283
+ "name": "loglevel",
2284
+ "hasDynamicHelp": false,
2285
+ "multiple": false,
2286
+ "type": "option"
2287
+ }
2288
+ },
2289
+ "hasDynamicHelp": false,
2290
+ "hidden": true,
2291
+ "hiddenAliases": [],
2292
+ "id": "template:generate:ui-embedding",
2293
+ "pluginAlias": "@salesforce/plugin-templates",
2294
+ "pluginName": "@salesforce/plugin-templates",
2295
+ "pluginType": "core",
2296
+ "state": "beta",
2297
+ "strict": true,
2298
+ "summary": "Generate a Lightning Web Component (LWC) bundle that wraps the <lightning-ui-embedding> base component.",
2299
+ "enableJsonFlag": true,
2300
+ "isESM": true,
2301
+ "relativePath": [
2302
+ "lib",
2303
+ "commands",
2304
+ "template",
2305
+ "generate",
2306
+ "ui-embedding",
2307
+ "index.js"
2308
+ ],
2309
+ "aliasPermutations": [],
2310
+ "permutations": [
2311
+ "template:generate:ui-embedding",
2312
+ "generate:template:ui-embedding",
2313
+ "generate:ui-embedding:template",
2314
+ "template:ui-embedding:generate",
2315
+ "ui-embedding:template:generate",
2316
+ "ui-embedding:generate:template"
2317
+ ]
2318
+ },
2337
2319
  "template:generate:visualforce:component": {
2338
2320
  "aliases": [
2339
2321
  "force:visualforce:component:create",
@@ -2690,5 +2672,5 @@
2690
2672
  ]
2691
2673
  }
2692
2674
  },
2693
- "version": "56.19.5"
2675
+ "version": "56.20.0"
2694
2676
  }
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": "56.19.5",
4
+ "version": "56.20.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/salesforcecli/plugin-templates/issues",
7
7
  "enableO11y": true,
@@ -86,6 +86,9 @@
86
86
  },
87
87
  "ui-bundle": {
88
88
  "description": "Generate a UI bundle."
89
+ },
90
+ "ui-embedding": {
91
+ "description": "Generate a UI embedding wrapper LWC."
89
92
  }
90
93
  }
91
94
  }
@@ -249,7 +252,7 @@
249
252
  "exports": "./lib/index.js",
250
253
  "type": "module",
251
254
  "sfdx": {
252
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.19.5.crt",
253
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.19.5.sig"
255
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.20.0.crt",
256
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.20.0.sig"
254
257
  }
255
258
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"embedding.js","sourceRoot":"","sources":["../../../../../src/commands/template/generate/lightning/embedding.ts"],"names":[],"mappings":"AAAA;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