@salesforce/webapp-template-feature-react-agentforce-conversation-client-experimental 1.33.4 → 1.33.6

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
@@ -11,13 +11,14 @@ The component embeds the Agentforce chat experience using Lightning Out 2.0. Aut
11
11
  - **Dev (localhost)**: fetches a `frontdoorUrl` from `/__lo/frontdoor`
12
12
  - **Prod (hosted in org)**: uses `window.location.origin` as `salesforceOrigin`
13
13
 
14
- ## Step 1: Install dependencies
14
+ ## Step 1: Install
15
15
 
16
16
  ```bash
17
- npm install @salesforce/agentforce-conversation-client
18
17
  npm install @salesforce/webapp-template-feature-react-agentforce-conversation-client-experimental
19
18
  ```
20
19
 
20
+ This automatically installs `@salesforce/agentforce-conversation-client` (the underlying SDK) as a dependency.
21
+
21
22
  ## Step 2: Embed in the app layout
22
23
 
23
24
  ```tsx
package/dist/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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
+ ## [1.33.6](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.33.5...v1.33.6) (2026-02-18)
7
+
8
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.33.5](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.33.4...v1.33.5) (2026-02-18)
15
+
16
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
17
+
18
+
19
+
20
+
21
+
6
22
  ## [1.33.4](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.33.3...v1.33.4) (2026-02-17)
7
23
 
8
24
  **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
@@ -7,6 +7,8 @@ import salesforce from '@salesforce/vite-plugin-webapp-experimental';
7
7
  export default defineConfig(function (_a) {
8
8
  var mode = _a.mode;
9
9
  return {
10
+ // Ensure root base for e2e/static serve; plugin may override when deployed under a path
11
+ base: '/',
10
12
  plugins: [tailwindcss(), react(), salesforce()],
11
13
  // Build configuration for MPA
12
14
  build: {
@@ -8,7 +8,7 @@
8
8
  "name": "base-react-app",
9
9
  "version": "1.0.0",
10
10
  "dependencies": {
11
- "@salesforce/agentforce-conversation-client": "^1.33.3",
11
+ "@salesforce/agentforce-conversation-client": "^1.33.5",
12
12
  "@salesforce/webapp-experimental": "*",
13
13
  "@tailwindcss/vite": "^4.1.17",
14
14
  "react": "^19.2.0",
@@ -1863,9 +1863,9 @@
1863
1863
  ]
1864
1864
  },
1865
1865
  "node_modules/@salesforce/agentforce-conversation-client": {
1866
- "version": "1.33.3",
1867
- "resolved": "https://registry.npmjs.org/@salesforce/agentforce-conversation-client/-/agentforce-conversation-client-1.33.3.tgz",
1868
- "integrity": "sha512-E1/muJq/xRJ2HGnz2Yj/AL3xZv8aTMiitXa0apygP9CSkIANi2ET3APkx/UvA8e636W0Ba6VvL/CKo6+zWIzsA==",
1866
+ "version": "1.33.5",
1867
+ "resolved": "https://registry.npmjs.org/@salesforce/agentforce-conversation-client/-/agentforce-conversation-client-1.33.5.tgz",
1868
+ "integrity": "sha512-7OV4uFwa4IpOwrbmaw023tGaU/fGI47+kpfBOC8y9YUqNv6ObArfZ5wZWExci7XSbEFAmgQwr9piAgz5izM/NA==",
1869
1869
  "license": "SEE LICENSE IN LICENSE.txt",
1870
1870
  "dependencies": {
1871
1871
  "@lightning-out/application": "2.1.1-rc.2"
@@ -12,7 +12,7 @@
12
12
  "test": "vitest"
13
13
  },
14
14
  "dependencies": {
15
- "@salesforce/agentforce-conversation-client": "^1.33.3",
15
+ "@salesforce/agentforce-conversation-client": "^1.33.5",
16
16
  "@salesforce/webapp-experimental": "*",
17
17
  "@tailwindcss/vite": "^4.1.17",
18
18
  "react": "^19.2.0",
@@ -4,7 +4,16 @@ import { StrictMode } from 'react';
4
4
  import { createRoot } from 'react-dom/client';
5
5
  import './styles/global.css';
6
6
 
7
- const router = createBrowserRouter(routes);
7
+ // Match Vite base so client-side routes work when deployed under a path (e.g. /lwr/application/ai/c-webapp2/).
8
+ // When served at root (e.g. e2e with static serve), use '/' so routes match.
9
+ const base = (import.meta.env.BASE_URL ?? '/').replace(/\/$/, '') || '/';
10
+ const basename =
11
+ typeof window !== 'undefined' &&
12
+ (window.location.pathname === '/' ||
13
+ !window.location.pathname.startsWith('/lwr/'))
14
+ ? '/'
15
+ : base;
16
+ const router = createBrowserRouter(routes, { basename });
8
17
 
9
18
  createRoot(document.getElementById('root')!).render(
10
19
  <StrictMode>
@@ -1,6 +1,6 @@
1
1
  import type { RouteObject } from 'react-router';
2
2
  import AppLayout from '@/appLayout';
3
- import Home from '@/pages/Home';
3
+ import Home from './pages/Home';
4
4
  import About from './pages/About';
5
5
  import NotFound from './pages/NotFound';
6
6
 
@@ -7,6 +7,8 @@ import salesforce from '@salesforce/vite-plugin-webapp-experimental';
7
7
 
8
8
  export default defineConfig(({ mode }) => {
9
9
  return {
10
+ // Ensure root base for e2e/static serve; plugin may override when deployed under a path
11
+ base: '/',
10
12
  plugins: [tailwindcss(), react(), salesforce()],
11
13
 
12
14
  // Build configuration for MPA
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
3
- "version": "1.33.4",
3
+ "version": "1.33.6",
4
4
  "description": "Base SFDX project template",
5
5
  "private": true,
6
6
  "files": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-feature-react-agentforce-conversation-client-experimental",
3
- "version": "1.33.4",
3
+ "version": "1.33.6",
4
4
  "description": "Embedded Agentforce conversation client feature for web applications",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",
@@ -30,6 +30,9 @@
30
30
  "dev": "cd dist/force-app/main/default/webapplications/feature-react-agentforce-conversation-client && npm install && npm run dev",
31
31
  "watch": "npx tsx ../../cli/src/index.ts watch-patches packages/template/feature/feature-react-agentforce-conversation-client packages/template/base-app/base-react-app packages/template/feature/feature-react-agentforce-conversation-client/dist"
32
32
  },
33
+ "dependencies": {
34
+ "@salesforce/agentforce-conversation-client": "^1.33.6"
35
+ },
33
36
  "devDependencies": {
34
37
  "@types/react": "^19.2.7",
35
38
  "@types/react-dom": "^19.2.3",
@@ -37,5 +40,5 @@
37
40
  "react-dom": "^19.2.1",
38
41
  "react-router": "^7.10.1"
39
42
  },
40
- "gitHead": "eeddfb5c8c8d44e2096b3196ca2ee902129e5655"
43
+ "gitHead": "bdeda861b2f911cd48fe9379102c2e83a5e769a0"
41
44
  }
@@ -10,8 +10,8 @@ When adding or editing the embedded Agentforce chat client in this project, foll
10
10
 
11
11
  ## Component and library
12
12
 
13
- - Use the shared **AgentforceConversationClient** React component from `feature-react-agentforce-conversation-client`. Do not call `embedAgentforceClient` directly in application code.
14
- - The project must have **@salesforce/agentforce-conversation-client** installed (`npm install @salesforce/agentforce-conversation-client`).
13
+ - Use the shared **AgentforceConversationClient** React component from `@salesforce/webapp-template-feature-react-agentforce-conversation-client-experimental`. Do not call `embedAgentforceClient` directly in application code.
14
+ - Install with `npm install @salesforce/webapp-template-feature-react-agentforce-conversation-client-experimental`. The underlying SDK (`@salesforce/agentforce-conversation-client`) is included automatically as a dependency.
15
15
 
16
16
  ## Authentication
17
17
 
@@ -7,27 +7,22 @@ description: Embed an Agentforce conversation client (chat UI) into a React web
7
7
 
8
8
  When the user wants an embedded Agentforce chat client in a React app, follow this workflow.
9
9
 
10
- ## 1. Install the dependency
10
+ ## 1. Install the package
11
11
 
12
12
  ```bash
13
- npm install @salesforce/agentforce-conversation-client
13
+ npm install @salesforce/webapp-template-feature-react-agentforce-conversation-client-experimental
14
14
  ```
15
15
 
16
- The dependency should be added to the project's `package.json` dependencies.
16
+ This single install also brings in `@salesforce/agentforce-conversation-client` (the underlying SDK) automatically.
17
17
 
18
- ## 2. Add the feature
19
-
20
- - Include `@salesforce/webapp-template-feature-react-agentforce-conversation-client-experimental` in the app configuration.
21
- - This feature provides **AgentforceConversationClient**.
22
-
23
- ## 3. Use the shared wrapper
18
+ ## 2. Use the shared wrapper
24
19
 
25
20
  Use the `AgentforceConversationClient` React component. It resolves auth automatically:
26
21
 
27
22
  - **Dev (localhost)**: fetches `frontdoorUrl` from `/__lo/frontdoor`
28
23
  - **Prod (hosted in org)**: uses `salesforceOrigin` from `window.location.origin`
29
24
 
30
- ## 4. Embed in the layout
25
+ ## 3. Embed in the layout
31
26
 
32
27
  Render `<AgentforceConversationClient />` in the app layout so the chat client loads globally. Keep it alongside the existing layout (do not replace the page shell).
33
28
 
@@ -45,7 +40,7 @@ export default function AppLayout() {
45
40
  }
46
41
  ```
47
42
 
48
- ## 5. Configure the agent
43
+ ## 4. Configure the agent
49
44
 
50
45
  Pass options via the `agentforceClientConfig` prop:
51
46
 
@@ -58,7 +53,7 @@ Pass options via the `agentforceClientConfig` prop:
58
53
 
59
54
  See [embed-examples.md](docs/embed-examples.md) for complete examples of each mode.
60
55
 
61
- ## 6. Validate prerequisites
56
+ ## 5. Validate prerequisites
62
57
 
63
58
  - The org must allow `localhost:<PORT>` in **Trusted Domains for Inline Frames** (session settings).
64
59