@salesforce/ui-bundle-template-feature-react-agentforce-conversation-client 10.21.0 → 10.22.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 +9 -0
- package/dist/CHANGELOG.md +8 -0
- package/dist/force-app/main/default/uiBundles/feature-react-agentforce-conversation-client/package.json +4 -4
- package/dist/force-app/main/default/uiBundles/feature-react-agentforce-conversation-client/src/components/AgentforceConversationClient.tsx +13 -1
- package/dist/force-app/main/default/uiBundles/feature-react-agentforce-conversation-client/src/types/conversation.ts +1 -0
- package/dist/package-lock.json +2 -2
- package/dist/package.json +1 -1
- package/package.json +2 -2
- package/src/force-app/main/default/uiBundles/feature-react-agentforce-conversation-client/src/components/AgentforceConversationClient.tsx +13 -1
- package/src/force-app/main/default/uiBundles/feature-react-agentforce-conversation-client/src/types/conversation.ts +1 -0
package/README.md
CHANGED
|
@@ -48,6 +48,7 @@ export default function AppLayout() {
|
|
|
48
48
|
| `width` | `number \| string` | No | Inline width (px number or CSS string). |
|
|
49
49
|
| `height` | `number \| string` | No | Inline height (px number or CSS string). |
|
|
50
50
|
| `styleTokens` | `Record<string, string>` | No | Theme tokens for chat UI styling. Passed through to the underlying SDK. |
|
|
51
|
+
| `isFileBased` | `boolean` | No | Indicates the selected agent is file-based. Passed through to the underlying SDK as-is. |
|
|
51
52
|
| `salesforceOrigin` | `string` | No | Salesforce org origin URL. Resolved automatically if not provided. |
|
|
52
53
|
| `frontdoorUrl` | `string` | No | Frontdoor URL for authentication. Resolved automatically in dev if not provided. |
|
|
53
54
|
| `onReady` | `AgentforceReadyHandler` | No | Callback invoked when Lightning Out is ready. Receives the event detail. |
|
|
@@ -79,6 +80,14 @@ Pass `agentId` to load a specific agent (e.g. travel agent, HR agent). `agentId`
|
|
|
79
80
|
<AgentforceConversationClient agentId="0Xx000000000000AAA" />
|
|
80
81
|
```
|
|
81
82
|
|
|
83
|
+
### File-based agents
|
|
84
|
+
|
|
85
|
+
Set `isFileBased` when the selected agent is file-based so the underlying `accSdkWrapper`/`accSdk` can apply file-agent-specific behavior.
|
|
86
|
+
|
|
87
|
+
```tsx
|
|
88
|
+
<AgentforceConversationClient agentId="New_York_City_Explorer" isFileBased />
|
|
89
|
+
```
|
|
90
|
+
|
|
82
91
|
### Theming with `styleTokens`
|
|
83
92
|
|
|
84
93
|
Use `styleTokens` to theme the Agentforce Conversation Client. Only override the tokens you need.
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.22.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.21.0...v10.22.0) (2026-06-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [10.21.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.20.2...v10.21.0) (2026-06-24)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"graphql:schema": "node scripts/get-graphql-schema.mjs"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@salesforce/platform-sdk": "^10.
|
|
22
|
-
"@salesforce/ui-bundle": "^10.
|
|
21
|
+
"@salesforce/platform-sdk": "^10.22.0",
|
|
22
|
+
"@salesforce/ui-bundle": "^10.22.0",
|
|
23
23
|
"@tailwindcss/vite": "^4.1.17",
|
|
24
24
|
"class-variance-authority": "^0.7.1",
|
|
25
25
|
"clsx": "^2.1.1",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
|
46
46
|
"@graphql-tools/utils": "^11.0.0",
|
|
47
47
|
"@playwright/test": "^1.49.0",
|
|
48
|
-
"@salesforce/graphiti": "^10.
|
|
49
|
-
"@salesforce/vite-plugin-ui-bundle": "^10.
|
|
48
|
+
"@salesforce/graphiti": "^10.22.0",
|
|
49
|
+
"@salesforce/vite-plugin-ui-bundle": "^10.22.0",
|
|
50
50
|
"@testing-library/jest-dom": "^6.6.3",
|
|
51
51
|
"@testing-library/react": "^16.1.0",
|
|
52
52
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -69,6 +69,7 @@ export function AgentforceConversationClient({
|
|
|
69
69
|
width,
|
|
70
70
|
height,
|
|
71
71
|
styleTokens,
|
|
72
|
+
isFileBased,
|
|
72
73
|
salesforceOrigin,
|
|
73
74
|
frontdoorUrl,
|
|
74
75
|
onReady,
|
|
@@ -89,10 +90,21 @@ export function AgentforceConversationClient({
|
|
|
89
90
|
...(agentId !== undefined && { agentId }),
|
|
90
91
|
...(agentLabel !== undefined && { agentLabel }),
|
|
91
92
|
...(styleTokens !== undefined && { styleTokens }),
|
|
93
|
+
...(isFileBased !== undefined && { isFileBased }),
|
|
92
94
|
renderingConfig,
|
|
93
95
|
channel: "Vibes",
|
|
94
96
|
};
|
|
95
|
-
}, [
|
|
97
|
+
}, [
|
|
98
|
+
agentId,
|
|
99
|
+
agentLabel,
|
|
100
|
+
inlineProp,
|
|
101
|
+
headerEnabled,
|
|
102
|
+
showHeaderIcon,
|
|
103
|
+
width,
|
|
104
|
+
height,
|
|
105
|
+
styleTokens,
|
|
106
|
+
isFileBased,
|
|
107
|
+
]);
|
|
96
108
|
|
|
97
109
|
const inline = normalizedAgentforceClientConfig?.renderingConfig?.mode === "inline";
|
|
98
110
|
|
|
@@ -33,6 +33,7 @@ export interface AgentforceConversationClientProps {
|
|
|
33
33
|
height?: string | number;
|
|
34
34
|
/** Theme overrides for the chat UI. */
|
|
35
35
|
styleTokens?: StyleTokens;
|
|
36
|
+
isFileBased?: boolean;
|
|
36
37
|
/** Optional. If not provided, resolved internally (e.g. from /__lo/frontdoor in dev, window.location.origin in prod). */
|
|
37
38
|
salesforceOrigin?: string;
|
|
38
39
|
/** Optional. If not provided, resolved internally in dev via /__lo/frontdoor. */
|
package/dist/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-base-sfdx-project-experimental",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.22.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/webapp-template-base-sfdx-project-experimental",
|
|
9
|
-
"version": "10.
|
|
9
|
+
"version": "10.22.0",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@lwc/eslint-plugin-lwc": "^3.3.0",
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/ui-bundle-template-feature-react-agentforce-conversation-client",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.22.0",
|
|
4
4
|
"description": "Embedded Agentforce conversation client feature for UI Bundles",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"clean": "rm -rf dist"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@salesforce/agentforce-conversation-client": "^10.
|
|
29
|
+
"@salesforce/agentforce-conversation-client": "^10.22.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/react": "^19.2.7",
|
|
@@ -69,6 +69,7 @@ export function AgentforceConversationClient({
|
|
|
69
69
|
width,
|
|
70
70
|
height,
|
|
71
71
|
styleTokens,
|
|
72
|
+
isFileBased,
|
|
72
73
|
salesforceOrigin,
|
|
73
74
|
frontdoorUrl,
|
|
74
75
|
onReady,
|
|
@@ -89,10 +90,21 @@ export function AgentforceConversationClient({
|
|
|
89
90
|
...(agentId !== undefined && { agentId }),
|
|
90
91
|
...(agentLabel !== undefined && { agentLabel }),
|
|
91
92
|
...(styleTokens !== undefined && { styleTokens }),
|
|
93
|
+
...(isFileBased !== undefined && { isFileBased }),
|
|
92
94
|
renderingConfig,
|
|
93
95
|
channel: "Vibes",
|
|
94
96
|
};
|
|
95
|
-
}, [
|
|
97
|
+
}, [
|
|
98
|
+
agentId,
|
|
99
|
+
agentLabel,
|
|
100
|
+
inlineProp,
|
|
101
|
+
headerEnabled,
|
|
102
|
+
showHeaderIcon,
|
|
103
|
+
width,
|
|
104
|
+
height,
|
|
105
|
+
styleTokens,
|
|
106
|
+
isFileBased,
|
|
107
|
+
]);
|
|
96
108
|
|
|
97
109
|
const inline = normalizedAgentforceClientConfig?.renderingConfig?.mode === "inline";
|
|
98
110
|
|
|
@@ -33,6 +33,7 @@ export interface AgentforceConversationClientProps {
|
|
|
33
33
|
height?: string | number;
|
|
34
34
|
/** Theme overrides for the chat UI. */
|
|
35
35
|
styleTokens?: StyleTokens;
|
|
36
|
+
isFileBased?: boolean;
|
|
36
37
|
/** Optional. If not provided, resolved internally (e.g. from /__lo/frontdoor in dev, window.location.origin in prod). */
|
|
37
38
|
salesforceOrigin?: string;
|
|
38
39
|
/** Optional. If not provided, resolved internally in dev via /__lo/frontdoor. */
|