@salesforce/ui-bundle-template-app-react-template-b2e 9.2.0 → 9.4.1

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/dist/CHANGELOG.md CHANGED
@@ -3,6 +3,46 @@
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
+ ## [9.4.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v9.4.0...v9.4.1) (2026-05-21)
7
+
8
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
9
+
10
+
11
+
12
+
13
+
14
+ ## [9.4.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v9.3.0...v9.4.0) (2026-05-20)
15
+
16
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
17
+
18
+
19
+
20
+
21
+
22
+ ## [9.3.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v9.2.2...v9.3.0) (2026-05-20)
23
+
24
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
25
+
26
+
27
+
28
+
29
+
30
+ ## [9.2.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v9.2.1...v9.2.2) (2026-05-20)
31
+
32
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
33
+
34
+
35
+
36
+
37
+
38
+ ## [9.2.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v9.2.0...v9.2.1) (2026-05-20)
39
+
40
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
41
+
42
+
43
+
44
+
45
+
6
46
  ## [9.2.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v9.1.0...v9.2.0) (2026-05-19)
7
47
 
8
48
  **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
@@ -147,13 +147,29 @@ export function AgentforceConversationClient({
147
147
  }
148
148
  const host = inline ? containerRef.current! : getOrCreateGlobalHost();
149
149
 
150
- embedAgentforceClient({
151
- container: host,
152
- salesforceOrigin: salesforceOrigin ?? options.salesforceOrigin,
153
- frontdoorUrl: frontdoorUrl ?? options.frontdoorUrl,
154
- agentforceClientConfig: normalizedAgentforceClientConfig,
155
- });
156
- singleton.initialized = true;
150
+ try {
151
+ embedAgentforceClient({
152
+ container: host,
153
+ salesforceOrigin: salesforceOrigin ?? options.salesforceOrigin,
154
+ frontdoorUrl: frontdoorUrl ?? options.frontdoorUrl,
155
+ agentforceClientConfig: normalizedAgentforceClientConfig,
156
+ });
157
+ singleton.initialized = true;
158
+ } catch (err) {
159
+ // Strip a partially-created LO element so the next mount can retry.
160
+ const partialEmbed = document.querySelector('lightning-out-application[data-lo="acc"]');
161
+ partialEmbed?.remove();
162
+ console.error("AgentforceConversationClient: initialization failed", err);
163
+ }
164
+ };
165
+
166
+ const safeInitialize = (options: ResolvedEmbedOptions) => {
167
+ try {
168
+ initialize(options);
169
+ } catch (initErr) {
170
+ console.error("AgentforceConversationClient: initialization failed", initErr);
171
+ singleton.initialized = false;
172
+ }
157
173
  };
158
174
 
159
175
  const shouldFetchFrontdoor = window.location.hostname === "localhost";
@@ -166,7 +182,7 @@ export function AgentforceConversationClient({
166
182
  return;
167
183
  }
168
184
  const { frontdoorUrl: resolvedFrontdoorUrl } = await res.json();
169
- initialize({ frontdoorUrl: resolvedFrontdoorUrl });
185
+ safeInitialize({ frontdoorUrl: resolvedFrontdoorUrl });
170
186
  })
171
187
  .catch((err) => {
172
188
  console.error("AgentforceConversationClient: failed to fetch frontdoor URL", err);
@@ -177,7 +193,7 @@ export function AgentforceConversationClient({
177
193
  } else {
178
194
  singleton.initPromise = Promise.resolve()
179
195
  .then(() => {
180
- initialize(getDefaultEmbedOptions());
196
+ safeInitialize(getDefaultEmbedOptions());
181
197
  })
182
198
  .catch((err) => {
183
199
  console.error("AgentforceConversationClient: failed to embed Agentforce client", err);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
3
- "version": "9.2.0",
3
+ "version": "9.4.1",
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": "9.2.0",
9
+ "version": "9.4.1",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/ui-bundle-template-base-sfdx-project",
3
- "version": "9.2.0",
3
+ "version": "9.4.1",
4
4
  "description": "Base SFDX project template",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "publishConfig": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/ui-bundle-template-app-react-template-b2e",
3
- "version": "9.2.0",
3
+ "version": "9.4.1",
4
4
  "description": "Salesforce React internal app template",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",