@salesforce/sdk-core 1.120.3 → 1.120.6
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 +10 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,9 +5,9 @@ function f() {
|
|
|
5
5
|
return "OpenAI";
|
|
6
6
|
try {
|
|
7
7
|
if (window.self !== window.top)
|
|
8
|
-
return "
|
|
8
|
+
return "Micro-Frontend";
|
|
9
9
|
} catch {
|
|
10
|
-
return "
|
|
10
|
+
return "Micro-Frontend";
|
|
11
11
|
}
|
|
12
12
|
const e = window;
|
|
13
13
|
return e.$A || e.Aura ? "Salesforce-ACC" : "UIBundle";
|
|
@@ -30,7 +30,7 @@ function h(e) {
|
|
|
30
30
|
function g(e) {
|
|
31
31
|
return l(e) && "method" in e && typeof e.method == "string" && !("id" in e);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function S(e) {
|
|
34
34
|
return l(e) && "id" in e && typeof e.id == "number" && "method" in e && typeof e.method == "string";
|
|
35
35
|
}
|
|
36
36
|
class T {
|
|
@@ -246,7 +246,7 @@ const M = {
|
|
|
246
246
|
displayModal: !0,
|
|
247
247
|
getTheme: !0,
|
|
248
248
|
resize: !1
|
|
249
|
-
},
|
|
249
|
+
}, y = {
|
|
250
250
|
callTool: !1,
|
|
251
251
|
sendMessageToHost: !0,
|
|
252
252
|
readResource: !1,
|
|
@@ -265,7 +265,7 @@ const M = {
|
|
|
265
265
|
displayModal: !1,
|
|
266
266
|
getTheme: !0,
|
|
267
267
|
resize: !1
|
|
268
|
-
},
|
|
268
|
+
}, A = {
|
|
269
269
|
callTool: !1,
|
|
270
270
|
sendMessageToHost: !1,
|
|
271
271
|
readResource: !1,
|
|
@@ -285,18 +285,18 @@ const M = {
|
|
|
285
285
|
getTheme: !1,
|
|
286
286
|
resize: !1
|
|
287
287
|
};
|
|
288
|
-
function
|
|
288
|
+
function P(e) {
|
|
289
289
|
switch (e) {
|
|
290
290
|
case i.MCPApps:
|
|
291
291
|
return { ...M };
|
|
292
292
|
case i.OpenAI:
|
|
293
293
|
return { ...m };
|
|
294
294
|
case i.SalesforceACC:
|
|
295
|
-
return { ...
|
|
295
|
+
return { ...y };
|
|
296
296
|
case i.UIBundle:
|
|
297
297
|
case i.MicroFrontend:
|
|
298
298
|
default:
|
|
299
|
-
return { ...
|
|
299
|
+
return { ...A };
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
export {
|
|
@@ -304,11 +304,11 @@ export {
|
|
|
304
304
|
r as McpAppsSession,
|
|
305
305
|
i as Surface,
|
|
306
306
|
w as getSurface,
|
|
307
|
-
|
|
307
|
+
P as getSurfaceCapabilities,
|
|
308
308
|
l as isJsonRpcBase,
|
|
309
309
|
u as isJsonRpcErrorResponse,
|
|
310
310
|
g as isJsonRpcNotification,
|
|
311
|
-
|
|
311
|
+
S as isJsonRpcRequest,
|
|
312
312
|
h as isJsonRpcResponse,
|
|
313
313
|
p as isJsonRpcSuccessResponse
|
|
314
314
|
};
|