@salesforce/sdk-core 1.123.0 → 1.126.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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var o = /* @__PURE__ */ ((e) => (e.UIBundle = "UIBundle", e.MicroFrontend = "Micro-Frontend", e.OpenAI = "OpenAI", e.SalesforceACC = "Salesforce-ACC", e.MCPApps = "MCP-Apps", e.Mosaic = "Mosaic", e))(o || {});
1
+ var o = /* @__PURE__ */ ((e) => (e.WebApp = "WebApp", e.MicroFrontend = "Micro-Frontend", e.OpenAI = "OpenAI", e.SalesforceACC = "Salesforce-ACC", e.MCPApps = "MCP-Apps", e.Mosaic = "Mosaic", e))(o || {});
2
2
  const d = f();
3
3
  function f() {
4
4
  if (typeof window > "u")
@@ -12,9 +12,9 @@ function f() {
12
12
  return "Micro-Frontend";
13
13
  }
14
14
  const e = window;
15
- return e.$A || e.Aura ? "Salesforce-ACC" : "UIBundle";
15
+ return e.$A || e.Aura ? "Salesforce-ACC" : "WebApp";
16
16
  }
17
- function A(e) {
17
+ function w(e) {
18
18
  return e ?? d;
19
19
  }
20
20
  function l(e) {
@@ -209,7 +209,7 @@ class r extends T {
209
209
  super.registerNotificationHandler(s, t);
210
210
  }
211
211
  }
212
- const I = {
212
+ const A = {
213
213
  callTool: !0,
214
214
  sendMessageToHost: !0,
215
215
  readResource: !0,
@@ -267,7 +267,7 @@ const I = {
267
267
  displayModal: !1,
268
268
  getTheme: !0,
269
269
  resize: !1
270
- }, w = {
270
+ }, I = {
271
271
  callTool: !1,
272
272
  sendMessageToHost: !1,
273
273
  readResource: !1,
@@ -290,23 +290,23 @@ const I = {
290
290
  function S(e) {
291
291
  switch (e) {
292
292
  case o.MCPApps:
293
- return { ...I };
293
+ return { ...A };
294
294
  case o.OpenAI:
295
295
  return { ...m };
296
296
  case o.SalesforceACC:
297
297
  return { ...y };
298
298
  case o.Mosaic:
299
- case o.UIBundle:
299
+ case o.WebApp:
300
300
  case o.MicroFrontend:
301
301
  default:
302
- return { ...w };
302
+ return { ...I };
303
303
  }
304
304
  }
305
305
  export {
306
306
  T as JsonRpcClient,
307
307
  r as McpAppsSession,
308
308
  o as Surface,
309
- A as getSurface,
309
+ w as getSurface,
310
310
  S as getSurfaceCapabilities,
311
311
  l as isJsonRpcBase,
312
312
  u as isJsonRpcErrorResponse,
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
- UIBundle = "UIBundle",
10
+ WebApp = "WebApp",
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,QAAQ,aAAa;IACrB,aAAa,mBAAmB;IAChC,MAAM,WAAW;IACjB,aAAa,mBAAmB;IAChC,OAAO,aAAa;IACpB,MAAM,WAAW;CACjB;AAoCD;;;;;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,MAAM,WAAW;IACjB,aAAa,mBAAmB;IAChC,MAAM,WAAW;IACjB,aAAa,mBAAmB;IAChC,OAAO,aAAa;IACpB,MAAM,WAAW;CACjB;AAoCD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAEtD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sdk-core",
3
- "version": "1.123.0",
3
+ "version": "1.126.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",