@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 +7 -7
- package/dist/surface.d.ts +1 -1
- package/dist/surface.d.ts.map +1 -1
- package/dist/view.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var i = /* @__PURE__ */ ((e) => (e.
|
|
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" : "
|
|
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,
|
|
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:
|
|
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
|
-
},
|
|
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 { ...
|
|
296
|
-
case i.
|
|
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
package/dist/surface.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../src/surface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,oBAAY,OAAO;IAClB,
|
|
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
|
|
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
|
*
|