@salesforce/platform-sdk 11.37.1 → 11.39.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/app/index.d.ts +24 -0
- package/dist/app/index.d.ts.map +1 -0
- package/dist/app/index.js +36 -0
- package/dist/app/webapp.d.ts +10 -0
- package/dist/app/webapp.d.ts.map +1 -0
- package/dist/core/app.d.ts +50 -0
- package/dist/core/app.d.ts.map +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/data/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -24
- package/package.json +10 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CurrentApp, SDKOptions } from '../core';
|
|
2
|
+
/**
|
|
3
|
+
* Options for querying the current app.
|
|
4
|
+
*/
|
|
5
|
+
export interface CurrentAppOptions extends SDKOptions {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Get the current (running) app based on the detected surface.
|
|
9
|
+
*
|
|
10
|
+
* There is exactly one running app, so this queries the ambient one rather than
|
|
11
|
+
* constructing a client. Its identity is backed by `SFDC_ENV`, which the runtime
|
|
12
|
+
* injects only on the {@link Surface.WebApp} surface today (an internally-hosted
|
|
13
|
+
* MicroFrontend is the natural next surface). On every other surface — and when
|
|
14
|
+
* the surface is unusable — the returned {@link CurrentApp} has `identity`
|
|
15
|
+
* `undefined`, mirroring how the Data/Chat SDKs degrade rather than failing the
|
|
16
|
+
* host.
|
|
17
|
+
*
|
|
18
|
+
* @param options - Optional configuration including surface override
|
|
19
|
+
* @returns Promise resolving to the current app
|
|
20
|
+
*/
|
|
21
|
+
export declare function getCurrentApp(options?: CurrentAppOptions): Promise<CurrentApp>;
|
|
22
|
+
export { WebAppCurrentApp } from './webapp';
|
|
23
|
+
export type { AppIdentity, CurrentApp } from '../core';
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGtD;;GAEG;AAEH,MAAM,WAAW,iBAAkB,SAAQ,UAAU;CAAG;AAExD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CAoB9E;AAED,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { g as n, S as c } from "../surface-Dd2tqrPi.js";
|
|
2
|
+
import { w as s } from "../sdk-promise-D0sy7OW1.js";
|
|
3
|
+
const p = "c";
|
|
4
|
+
class u {
|
|
5
|
+
identity;
|
|
6
|
+
constructor() {
|
|
7
|
+
const e = globalThis.SFDC_ENV, r = e?.appName;
|
|
8
|
+
if (!r)
|
|
9
|
+
return;
|
|
10
|
+
const a = e?.namespace || p;
|
|
11
|
+
this.identity = {
|
|
12
|
+
namespace: a,
|
|
13
|
+
appName: r,
|
|
14
|
+
// Namespace first, "__" separator — the UIBundle record's qualified name.
|
|
15
|
+
qualifiedName: `${a}__${r}`,
|
|
16
|
+
// Authoritative record Id from the server injector; absent in local-dev.
|
|
17
|
+
bundleId: e?.bundleId
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function f(t) {
|
|
22
|
+
return s(
|
|
23
|
+
(async () => {
|
|
24
|
+
try {
|
|
25
|
+
return await n(t?.surface) === c.WebApp ? new u() : {};
|
|
26
|
+
} catch {
|
|
27
|
+
return {};
|
|
28
|
+
}
|
|
29
|
+
})(),
|
|
30
|
+
"getCurrentApp"
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
u as WebAppCurrentApp,
|
|
35
|
+
f as getCurrentApp
|
|
36
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AppIdentity, CurrentApp } from '../core';
|
|
2
|
+
/**
|
|
3
|
+
* Current-app implementation for web apps: reads the identity the runtime
|
|
4
|
+
* injected into `globalThis.SFDC_ENV` and composes the qualified name.
|
|
5
|
+
*/
|
|
6
|
+
export declare class WebAppCurrentApp implements CurrentApp {
|
|
7
|
+
readonly identity?: AppIdentity;
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=webapp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webapp.d.ts","sourceRoot":"","sources":["../../src/app/webapp.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKvD;;;GAGG;AACH,qBAAa,gBAAiB,YAAW,UAAU;IAClD,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;;CAuBhC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Identity of the running UIBundle (web app), derived from the values the
|
|
8
|
+
* runtime injects into `globalThis.SFDC_ENV`.
|
|
9
|
+
*
|
|
10
|
+
* The {@link qualifiedName} — `namespace__appName` — is the platform-addressable
|
|
11
|
+
* name of the UIBundle record (namespace first, `__` separator, namespace kept
|
|
12
|
+
* in its original mixed case). It is composed at runtime from the two stored
|
|
13
|
+
* fields; it is **not** the auto-assigned 18-char record Id. Consumers such as
|
|
14
|
+
* CMS search that key off the UIBundle identity use this value.
|
|
15
|
+
*/
|
|
16
|
+
export interface AppIdentity {
|
|
17
|
+
/**
|
|
18
|
+
* Namespace prefix in its original mixed case (e.g., "MyNs"). Falls back to
|
|
19
|
+
* "c" when the org has no registered namespace.
|
|
20
|
+
*/
|
|
21
|
+
namespace: string;
|
|
22
|
+
/** Developer (app) name of the UIBundle (e.g., "MyBundle"). */
|
|
23
|
+
appName: string;
|
|
24
|
+
/**
|
|
25
|
+
* Platform-addressable qualified name `namespace__appName`
|
|
26
|
+
* (e.g., "MyNs__MyBundle", or "c__MyBundle" with no registered namespace).
|
|
27
|
+
*/
|
|
28
|
+
qualifiedName: string;
|
|
29
|
+
/**
|
|
30
|
+
* Authoritative UIBundle **record Id**, injected by the core server (owned
|
|
31
|
+
* by App Fabric) into `SFDC_ENV`. Explicitly **not** {@link qualifiedName}
|
|
32
|
+
* and **not** {@link appName}. `undefined` when the runtime does not inject
|
|
33
|
+
* it — local development, and every non-WebApp surface.
|
|
34
|
+
*/
|
|
35
|
+
bundleId?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The current (running) app: the single, ambient app the code is executing
|
|
39
|
+
* inside. There is exactly one, so it is queried — not constructed.
|
|
40
|
+
*
|
|
41
|
+
* Its {@link identity} is only meaningful on surfaces where the runtime injects
|
|
42
|
+
* `SFDC_ENV` (the {@link Surface.WebApp} surface today). On every other surface
|
|
43
|
+
* {@link identity} is absent, mirroring how the other SDKs degrade when a surface
|
|
44
|
+
* cannot back their capability.
|
|
45
|
+
*/
|
|
46
|
+
export interface CurrentApp {
|
|
47
|
+
/** The running app's identity, or `undefined` on surfaces without `SFDC_ENV`. */
|
|
48
|
+
readonly identity?: AppIdentity;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/core/app.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;GASG;AACH,MAAM,WAAW,WAAW;IAC3B;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IAC1B,iFAAiF;IACjF,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;CAChC"}
|
package/dist/core/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
export { Surface, getVerifiedSurface, initialize, isSfEmbeddingIframe, resetSurface, } from './surface';
|
|
7
7
|
export type { InitializeOptions } from './surface';
|
|
8
8
|
export type { SDKOptions } from './options';
|
|
9
|
+
export type { AppIdentity, CurrentApp } from './app';
|
|
9
10
|
export type { HostContext, HostStyles, ChatMessage, ChatSDK, ContentBlock, DeviceCapabilities, DisplayMode, ResourceRequest, SafeAreaInsets, SetWidgetStateOptions, ToolCall, ToolState, } from './chat';
|
|
10
11
|
export type { AlertOptions, MessageLevel, ModalOptions, ToastOptions, Theme, ThemeMode, UiState, UiStyles, ViewSDK, } from './view';
|
|
11
12
|
export type { CacheControl, DataSDK, DataSDKGraphQL, GraphQLError, GraphQLRawDocument, GraphQLRequest, GraphQLRequestHeaders, GraphQLResponse, MutateOptions, MutationResult, QueryOptions, QueryResult, QuerySubscriber, Unsubscribe, } from './data';
|
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACN,OAAO,EACP,kBAAkB,EAClB,UAAU,EACV,mBAAmB,EACnB,YAAY,GACZ,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAGnD,YAAY,EAAE,UAAU,EAAE,MAAM,WAA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AAW,CAAC;AAG5C,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGrD,YAAY,EACX,WAAW,EACX,UAAU,EACV,WAAW,EACX,OAAO,EACP,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,QAAQ,EACR,SAAS,GACT,MAAM,QAAQ,CAAC;AAGhB,YAAY,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,KAAK,EACL,SAAS,EACT,OAAO,EACP,QAAQ,EACR,OAAO,GACP,MAAM,QAAQ,CAAC;AAGhB,YAAY,EACX,YAAY,EACZ,OAAO,EACP,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,aAAa,EACb,cAAc,EACd,YAAY,EACZ,WAAW,EACX,eAAe,EACf,WAAW,GACX,MAAM,QAAQ,CAAC;AAGhB,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7F,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC7E,YAAY,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAGnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/data/index.js
CHANGED
|
@@ -239,7 +239,7 @@ class fe {
|
|
|
239
239
|
})).structuredContent;
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
const pe = "X-SFDC-Client-Name", me = "X-SFDC-Client-Version", ye = "@salesforce/platform-sdk", be = "11.
|
|
242
|
+
const pe = "X-SFDC-Client-Name", me = "X-SFDC-Client-Version", ye = "@salesforce/platform-sdk", be = "11.39.0", ve = (r) => {
|
|
243
243
|
let e = b(pe, ye, r);
|
|
244
244
|
return e = b(me, be, e), u(e);
|
|
245
245
|
}, Se = "X-CSRF-Token";
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { createChatSDK, type ChatSDKOptions, MCPAppsChatSDK, getChatSDK, getChat
|
|
|
8
8
|
export { createViewSDK, type ViewSDKOptions, MCPAppsViewSDK, getViewSDK, getViewSDKSync, resetViewSDK, } from './view';
|
|
9
9
|
export { createDataSDK, type DataSDKOptions, type WebAppDataSDKOptions, type MosaicDataSDKOptions, type StatusCallback, type NodeOfConnection, gql, } from './data';
|
|
10
10
|
export { createLightningSDK, type LightningSDKOptions } from './lightning';
|
|
11
|
+
export { getCurrentApp, type CurrentAppOptions, type AppIdentity, type CurrentApp, WebAppCurrentApp, } from './app';
|
|
11
12
|
export { createTelemetryTransport, registerTelemetryUploader, TelemetryUploader, type TelemetryTransport, type TelemetryTransportOptions, type EnvelopeEntry, type EnvelopeMetadata, type TelemetryUploaderOptions, type OnEnvelopeCallback, type FlushReason, type TelemetryUploadContext, type TelemetryUploaderErrorContext, type InstrumentedAppLike, type DisposeOptions, } from './telemetry';
|
|
12
13
|
export { AXL_PFT_ID, createAnalytics, PFT_META_KEY, validatePftId, type Analytics, type AnalyticsOptions, } from './analytics';
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,QAAQ,CAAC;AAGvB,OAAO,EACN,aAAa,EACb,KAAK,cAAc,EACnB,cAAc,EACd,UAAU,EACV,cAAc,EACd,YAAY,GACZ,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACN,aAAa,EACb,KAAK,cAAc,EACnB,cAAc,EAC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AK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAG3E,OAAO,EACN,aAAa,EACb,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,gBAAgB,GAChB,MAAM,OAAO,CAAC;AAGf,OAAO,EACN,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACnB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACN,UAAU,EACV,eAAe,EACf,YAAY,EACZ,aAAa,EACb,KAAK,SAAS,EACd,KAAK,gBAAgB,GACrB,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
import { M as a, a as t, S as
|
|
1
|
+
import { M as a, a as t, S as p, g as s, i as o, b as i, r as S } from "./surface-Dd2tqrPi.js";
|
|
2
2
|
import { g as c } from "./capabilities-5BWkCbcP.js";
|
|
3
3
|
import { w as D } from "./sdk-promise-D0sy7OW1.js";
|
|
4
|
-
import { MCPAppsChatSDK as
|
|
4
|
+
import { MCPAppsChatSDK as K, createChatSDK as l, getChatSDK as A, getChatSDKSync as n, resetChatSDK as x } from "./chat/index.js";
|
|
5
5
|
import { MCPAppsViewSDK as T, createViewSDK as d, getViewSDK as w, getViewSDKSync as P, resetViewSDK as h } from "./view/index.js";
|
|
6
|
-
import { createDataSDK as
|
|
7
|
-
import { createLightningSDK as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
6
|
+
import { createDataSDK as y, gql as M } from "./data/index.js";
|
|
7
|
+
import { createLightningSDK as b } from "./lightning/index.js";
|
|
8
|
+
import { WebAppCurrentApp as _, getCurrentApp as v } from "./app/index.js";
|
|
9
|
+
import { c as F } from "./transport-D9QstWle.js";
|
|
10
|
+
import { T as U, r as q } from "./TelemetryUploader-DKkdppe9.js";
|
|
11
|
+
import { A as N, P as W, c as X, v as Y } from "./analytics-xqWfpWnv.js";
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
N as AXL_PFT_ID,
|
|
14
|
+
K as MCPAppsChatSDK,
|
|
14
15
|
T as MCPAppsViewSDK,
|
|
15
16
|
a as McpAppsNotAvailableError,
|
|
16
17
|
t as McpAppsSession,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
W as PFT_META_KEY,
|
|
19
|
+
p as Surface,
|
|
20
|
+
U as TelemetryUploader,
|
|
21
|
+
_ as WebAppCurrentApp,
|
|
22
|
+
X as createAnalytics,
|
|
21
23
|
l as createChatSDK,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
y as createDataSDK,
|
|
25
|
+
b as createLightningSDK,
|
|
26
|
+
F as createTelemetryTransport,
|
|
25
27
|
d as createViewSDK,
|
|
26
|
-
|
|
28
|
+
A as getChatSDK,
|
|
27
29
|
n as getChatSDKSync,
|
|
30
|
+
v as getCurrentApp,
|
|
28
31
|
c as getSurfaceCapabilities,
|
|
29
|
-
|
|
32
|
+
s as getVerifiedSurface,
|
|
30
33
|
w as getViewSDK,
|
|
31
34
|
P as getViewSDKSync,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
M as gql,
|
|
36
|
+
o as initialize,
|
|
37
|
+
i as isSfEmbeddingIframe,
|
|
38
|
+
q as registerTelemetryUploader,
|
|
39
|
+
x as resetChatSDK,
|
|
37
40
|
S as resetSurface,
|
|
38
41
|
h as resetViewSDK,
|
|
39
|
-
|
|
42
|
+
Y as validatePftId,
|
|
40
43
|
D as wrapSDKPromise
|
|
41
44
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/platform-sdk",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.39.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
"lightning": [
|
|
28
28
|
"./dist/lightning/index.d.ts"
|
|
29
29
|
],
|
|
30
|
+
"app": [
|
|
31
|
+
"./dist/app/index.d.ts"
|
|
32
|
+
],
|
|
30
33
|
"telemetry": [
|
|
31
34
|
"./dist/telemetry/index.d.ts"
|
|
32
35
|
],
|
|
@@ -72,6 +75,11 @@
|
|
|
72
75
|
"import": "./dist/lightning/index.js",
|
|
73
76
|
"default": "./dist/lightning/index.js"
|
|
74
77
|
},
|
|
78
|
+
"./app": {
|
|
79
|
+
"types": "./dist/app/index.d.ts",
|
|
80
|
+
"import": "./dist/app/index.js",
|
|
81
|
+
"default": "./dist/app/index.js"
|
|
82
|
+
},
|
|
75
83
|
"./telemetry": {
|
|
76
84
|
"types": "./dist/telemetry/index.d.ts",
|
|
77
85
|
"import": "./dist/telemetry/index.js",
|
|
@@ -115,7 +123,7 @@
|
|
|
115
123
|
"@conduit-client/service-pubsub": "3.19.6",
|
|
116
124
|
"@conduit-client/service-retry": "3.19.6",
|
|
117
125
|
"@conduit-client/utils": "3.19.6",
|
|
118
|
-
"@salesforce/jsonrpc": "^11.
|
|
126
|
+
"@salesforce/jsonrpc": "^11.39.0",
|
|
119
127
|
"@salesforce/sf-embedding-bridge": "2.2.5-rc.2"
|
|
120
128
|
},
|
|
121
129
|
"peerDependencies": {
|