@salesforcedevs/dx-components 1.32.1-alpha.2 → 1.32.1-alpha.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.32.1-alpha.
|
|
3
|
+
"version": "1.32.1-alpha.3",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"luxon": "3.4.4",
|
|
45
45
|
"msw": "^2.12.4"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "d2c2ec175856efed7388c6486bdb78695485afed"
|
|
48
48
|
}
|
|
@@ -90,6 +90,13 @@ export default class AgentMiawUi extends LightningElement {
|
|
|
90
90
|
@api deploymentDevName = "page_builder_miaw_ui";
|
|
91
91
|
@api richComponentVersion = "v1-stable";
|
|
92
92
|
@api routingAttributes?: string;
|
|
93
|
+
/**
|
|
94
|
+
* JSON array of suggested prompt strings for the MIAW UI (e.g.
|
|
95
|
+
* `["Show me an Agentforce demo","Help me build a business case"]`); forwarded as `prompts` on the embed.
|
|
96
|
+
*/
|
|
97
|
+
@api prompts?: string;
|
|
98
|
+
/** When set, forwarded to the embed as `welcome-text` (greeting / headline copy). */
|
|
99
|
+
@api welcomeText?: string;
|
|
93
100
|
/**
|
|
94
101
|
* When set, bar gradient start (CSS color); sets `--wes-color-af-bar-gradient-from` on the
|
|
95
102
|
* `.miaw-host` container and on the embed when present (LWC may reset `this.style` on the host).
|
|
@@ -171,6 +178,12 @@ export default class AgentMiawUi extends LightningElement {
|
|
|
171
178
|
this.routingAttributes
|
|
172
179
|
);
|
|
173
180
|
}
|
|
181
|
+
if (this.prompts) {
|
|
182
|
+
el.setAttribute("prompts", this.prompts);
|
|
183
|
+
}
|
|
184
|
+
if (this.welcomeText) {
|
|
185
|
+
el.setAttribute("welcome-text", this.welcomeText);
|
|
186
|
+
}
|
|
174
187
|
container.appendChild(el);
|
|
175
188
|
this.syncGradientToMiawSubtree();
|
|
176
189
|
} catch (e) {
|