@salesforce/plugin-templates 57.1.2 → 57.4.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/lightning-out/index.d.ts +60 -0
- package/lib/commands/template/generate/lightning-out/index.js +179 -0
- package/lib/commands/template/generate/lightning-out/index.js.map +1 -0
- 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/lightningOut.md +105 -0
- package/messages/uiEmbedding.md +5 -5
- package/oclif.manifest.json +1104 -963
- package/package.json +7 -7
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).
|