@salesforce/sdk-core 1.123.0 → 1.127.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 +9 -9
- package/dist/surface.d.ts +1 -1
- package/dist/surface.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var o = /* @__PURE__ */ ((e) => (e.
|
|
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" : "
|
|
15
|
+
return e.$A || e.Aura ? "Salesforce-ACC" : "WebApp";
|
|
16
16
|
}
|
|
17
|
-
function
|
|
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
|
|
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
|
-
},
|
|
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 { ...
|
|
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.
|
|
299
|
+
case o.WebApp:
|
|
300
300
|
case o.MicroFrontend:
|
|
301
301
|
default:
|
|
302
|
-
return { ...
|
|
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
|
-
|
|
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
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,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"}
|