@salesforce/sdk-core 1.117.1 → 1.117.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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var i = /* @__PURE__ */ ((e) => (e.WebApp = "WebApp", e.MicroFrontend = "Micro-Frontend", e.OpenAI = "OpenAI", e.SalesforceACC = "Salesforce-ACC", e.MCPApps = "MCP-Apps", e))(i || {});
1
+ var i = /* @__PURE__ */ ((e) => (e.UIBundle = "UIBundle", e.MicroFrontend = "Micro-Frontend", e.OpenAI = "OpenAI", e.SalesforceACC = "Salesforce-ACC", e.MCPApps = "MCP-Apps", e))(i || {});
2
2
  const d = f();
3
3
  function f() {
4
4
  if (window.openai)
@@ -10,7 +10,7 @@ function f() {
10
10
  return "MCP-Apps";
11
11
  }
12
12
  const e = window;
13
- return e.$A || e.Aura ? "Salesforce-ACC" : "WebApp";
13
+ return e.$A || e.Aura ? "Salesforce-ACC" : "UIBundle";
14
14
  }
15
15
  function w(e) {
16
16
  return e ?? d;
@@ -135,7 +135,7 @@ class T {
135
135
  window.parent?.postMessage(n, "*");
136
136
  }
137
137
  }
138
- const C = 5e3, A = "2026-01-26";
138
+ const C = 5e3, I = "2026-01-26";
139
139
  class r extends T {
140
140
  static initPromise = null;
141
141
  hostCtx = {};
@@ -171,7 +171,7 @@ class r extends T {
171
171
  try {
172
172
  const o = /* @__PURE__ */ Symbol("timeout"), c = await Promise.race([
173
173
  this.request("ui/initialize", {
174
- protocolVersion: A,
174
+ protocolVersion: I,
175
175
  appInfo: n,
176
176
  appCapabilities: {}
177
177
  }),
@@ -246,7 +246,7 @@ const M = {
246
246
  displayModal: !0,
247
247
  getTheme: !0,
248
248
  resize: !1
249
- }, I = {
249
+ }, A = {
250
250
  callTool: !1,
251
251
  sendMessageToHost: !0,
252
252
  readResource: !1,
@@ -292,8 +292,8 @@ function S(e) {
292
292
  case i.OpenAI:
293
293
  return { ...m };
294
294
  case i.SalesforceACC:
295
- return { ...I };
296
- case i.WebApp:
295
+ return { ...A };
296
+ case i.UIBundle:
297
297
  case i.MicroFrontend:
298
298
  default:
299
299
  return { ...y };
package/dist/surface.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * Enumeration of possible runtime surfaces
8
8
  */
9
9
  export declare enum Surface {
10
- WebApp = "WebApp",
10
+ UIBundle = "UIBundle",
11
11
  MicroFrontend = "Micro-Frontend",
12
12
  OpenAI = "OpenAI",
13
13
  SalesforceACC = "Salesforce-ACC",
@@ -1 +1 @@
1
- {"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../src/surface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,oBAAY,OAAO;IAClB,MAAM,WAAW;IACjB,aAAa,mBAAmB;IAChC,MAAM,WAAW;IACjB,aAAa,mBAAmB;IAChC,OAAO,aAAa;CACpB;AAgCD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAEtD"}
1
+ {"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../src/surface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,oBAAY,OAAO;IAClB,QAAQ,aAAa;IACrB,aAAa,mBAAmB;IAChC,MAAM,WAAW;IACjB,aAAa,mBAAmB;IAChC,OAAO,aAAa;CACpB;AAgCD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAEtD"}
package/dist/view.d.ts CHANGED
@@ -89,7 +89,7 @@ export interface ModalOptions {
89
89
  /**
90
90
  * ViewSDK API - Provides methods for displaying UI elements and managing view state
91
91
  *
92
- * This SDK enables web applications to interact with the host's UI layer by displaying
92
+ * This SDK enables UI Bundles to interact with the host's UI layer by displaying
93
93
  * alerts, toast notifications, modal dialogs, and managing application state. All methods
94
94
  * are optional and may not be available depending on the runtime surface.
95
95
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sdk-core",
3
- "version": "1.117.1",
3
+ "version": "1.117.3",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",