@salesforce/lds-runtime-one-app 1.452.0 → 1.453.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.
@@ -41,8 +41,6 @@ import bypassAppRestrictionEnabled from '@salesforce/gate/ui.services.LightningC
41
41
  import csrfValidationEnabled from '@salesforce/gate/ui.services.LightningConnect.CsrfValidation.enabled';
42
42
  import sessionApiEnabled from '@salesforce/gate/ui.uisdk.session.api.enabled';
43
43
  import useHttpUiapiLex from '@salesforce/gate/lds.usehttpuiapilex';
44
- import useHttpUiapiOneRuntime from '@salesforce/gate/lds.useHttpUiapiOneRuntime';
45
- import useHttpUiapiAuraSites from '@salesforce/gate/lds.usehttpuiapiaurasites';
46
44
  import auraBasedRequestsEnabled from '@salesforce/gate/ui.services.auraBasedRequests.enabled';
47
45
  import disableCreateContentDocumentAndVersionHTTPLexRuntime from '@salesforce/gate/lds.lex.http.disableCreateContentDocumentAndVersion';
48
46
  import useHotspotLimit from '@salesforce/gate/lds.pdl.useHotspotLimit';
@@ -2590,7 +2588,7 @@ function buildServiceDescriptor$d(luvio) {
2590
2588
  },
2591
2589
  };
2592
2590
  }
2593
- // version: 1.452.0-bcd113b7fd
2591
+ // version: 1.453.0-725e09cf25
2594
2592
 
2595
2593
  class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
2596
2594
  constructor(config, documentRootType, services) {
@@ -2929,7 +2927,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
2929
2927
  },
2930
2928
  };
2931
2929
  }
2932
- // version: 1.452.0-bcd113b7fd
2930
+ // version: 1.453.0-725e09cf25
2933
2931
 
2934
2932
  class RetryService {
2935
2933
  constructor(defaultRetryPolicy) {
@@ -5843,7 +5841,7 @@ function getEnvironmentSetting(name) {
5843
5841
  }
5844
5842
  return undefined;
5845
5843
  }
5846
- // version: 1.452.0-1ecfe8af95
5844
+ // version: 1.453.0-e6dc0c039a
5847
5845
 
5848
5846
  /**
5849
5847
  * Helpers for reaching the Aura framework from the LDS Aura runtime.
@@ -5880,26 +5878,6 @@ function dispatchGlobalEvent(...args) {
5880
5878
  function getAuraClientService() {
5881
5879
  return getAura()?.clientService;
5882
5880
  }
5883
- /**
5884
- * Returns `true` when the Aura runtime is hosted inside an Aura/Experience
5885
- * site (Experience Builder / `communityApp`) rather than LEX (one.app).
5886
- * `$A.get('$Site')` is present and truthy on Aura sites and absent/falsy in
5887
- * LEX. A stable per-page signal, so it is safe to evaluate once at module
5888
- * load. Defensive: never throws.
5889
- *
5890
- * Used to keep the OneStore GraphQL adapter — and the HTTP UIAPI fetch path —
5891
- * on the Aura transport for sites, because the HTTP transport's CSRF handling
5892
- * does not work in the Aura Sites runtime (W-23092947).
5893
- */
5894
- function isAuraSite() {
5895
- const aura = getAura();
5896
- try {
5897
- return !!aura?.get?.('$Site');
5898
- }
5899
- catch {
5900
- return false;
5901
- }
5902
- }
5903
5881
 
5904
5882
  const auraClientService = getAuraClientService();
5905
5883
  const defaultConfig = {
@@ -7095,9 +7073,6 @@ function buildLuvioActionMarksSendInterceptor() {
7095
7073
  };
7096
7074
  }
7097
7075
 
7098
- function isOneRuntime() {
7099
- return !!globalThis.LWR;
7100
- }
7101
7076
  /**
7102
7077
  * Public UIAPI url paths verified for HTTP transport.
7103
7078
  *
@@ -7300,63 +7275,31 @@ const CONTENT_DOCUMENTS_VERSIONS_PATH = '/ui-api/records/content-documents/conte
7300
7275
  * paths: ['/ui-api/some-endpoint/{id}'],
7301
7276
  * }
7302
7277
  */
7303
- // Each runtime uses a SINGLE LDS gate that enables both the public and
7304
- // private path lists. The public/private split is preserved as two separate
7278
+ // This fork package (lds-runtime-one-app) is provisioned only in one/one.app's
7279
+ // Aura services=, which means it always runs as classic Aura LEX — never LWR,
7280
+ // never on a site. The single LDS gate `useHttpUiapiLex` enables both the public
7281
+ // and private path lists. The public/private split is preserved as two separate
7305
7282
  // arrays because the PRIVATE paths carry an extra condition: the server-side
7306
7283
  // `auraBasedRequests` UiSdk gate. If UiSdk turns that gate off, private
7307
7284
  // (UiTier-restricted) Connect resources can no longer be served over HTTP and
7308
7285
  // must fall back to Aura, whereas public/allowlisted paths are unaffected.
7309
- //
7310
- // Runtimes are mutually exclusive: One Runtime (globalThis.LWR), Aura Sites
7311
- // ($Site present), and LEX/one.app (everything else). Each has its own gate.
7312
7286
  const PREDICATE_PATH_SETS = [
7313
- // One Runtime — public UIAPI endpoints
7314
- {
7315
- predicate: () => isOneRuntime() && useHttpUiapiOneRuntime.isOpen({ fallback: false }),
7316
- paths: UIAPI_PUBLIC_PATHS,
7317
- },
7318
- // One Runtime — private UIAPI endpoints (also require the UiSdk gate)
7319
- {
7320
- predicate: () => isOneRuntime() &&
7321
- useHttpUiapiOneRuntime.isOpen({ fallback: false }) &&
7322
- auraBasedRequestsEnabled.isOpen({ fallback: false }),
7323
- paths: UIAPI_PRIVATE_PATHS,
7324
- },
7325
- // Aura Sites — public UIAPI endpoints.
7326
- // Gate defaults closed, which keeps HTTP UIAPI OFF on Aura/Experience sites:
7327
- // the HTTP transport's CSRF handling is broken there (W-23092947), so until
7328
- // that is fixed this gate must not be opened. Wiring it as a normal gated
7329
- // predicate (rather than a hard block) lets it be flipped on once CSRF works.
7330
- {
7331
- predicate: () => isAuraSite() && useHttpUiapiAuraSites.isOpen({ fallback: false }),
7332
- paths: UIAPI_PUBLIC_PATHS,
7333
- },
7334
- // Aura Sites — private UIAPI endpoints (also require the UiSdk gate)
7335
- {
7336
- predicate: () => isAuraSite() &&
7337
- useHttpUiapiAuraSites.isOpen({ fallback: false }) &&
7338
- auraBasedRequestsEnabled.isOpen({ fallback: false }),
7339
- paths: UIAPI_PRIVATE_PATHS,
7340
- },
7341
7287
  // LEX (one.app) — public UIAPI endpoints
7342
7288
  {
7343
- predicate: () => !isOneRuntime() && !isAuraSite() && useHttpUiapiLex.isOpen({ fallback: false }),
7289
+ predicate: () => useHttpUiapiLex.isOpen({ fallback: false }),
7344
7290
  paths: UIAPI_PUBLIC_PATHS,
7345
7291
  },
7346
7292
  // LEX (one.app) — private UIAPI endpoints (also require the UiSdk gate)
7347
7293
  {
7348
- predicate: () => !isOneRuntime() &&
7349
- !isAuraSite() &&
7350
- useHttpUiapiLex.isOpen({ fallback: false }) &&
7294
+ predicate: () => useHttpUiapiLex.isOpen({ fallback: false }) &&
7351
7295
  auraBasedRequestsEnabled.isOpen({ fallback: false }),
7352
7296
  paths: UIAPI_PRIVATE_PATHS,
7353
7297
  },
7354
7298
  // disableCreateContentDocumentAndVersionHTTPLexRuntime killswitch.
7355
- // Excluded on Aura Sites for the same broken-CSRF reason as the UIAPI paths
7356
- // (W-23092947); LEX / One Runtime are unaffected.
7299
+ // This fork only runs in LEX (one.app), never on a site, so the killswitch
7300
+ // alone controls the feature.
7357
7301
  {
7358
- predicate: () => !isAuraSite() &&
7359
- !disableCreateContentDocumentAndVersionHTTPLexRuntime.isOpen({ fallback: false }),
7302
+ predicate: () => !disableCreateContentDocumentAndVersionHTTPLexRuntime.isOpen({ fallback: false }),
7360
7303
  paths: [CONTENT_DOCUMENTS_VERSIONS_PATH],
7361
7304
  },
7362
7305
  ];
@@ -11235,7 +11178,7 @@ register({
11235
11178
  instrument: ldsNetworkAdapterInstrument,
11236
11179
  });
11237
11180
  // Publish buildPredictorForContext on the force/ldsEngine registration bus so that
11238
- // shared laf loaders can obtain it without a dynamic import("force/ldsEngineCreator"),
11181
+ // shared laf loaders can obtain it without a dynamic import of the aura ldsEngineCreator module,
11239
11182
  // which would evaluate this whole bootstrap a second time. See ADR
11240
11183
  // 2026-07-10-pdl-service-provisioner-decoupling. buildPredictorForContext is a hoisted
11241
11184
  // function declaration and internally no-ops (returns undefined) when the PDL gate is
@@ -11557,4 +11500,4 @@ function ldsEngineCreator() {
11557
11500
  }
11558
11501
 
11559
11502
  export { LexRequestStrategy, PDL_ENGINE_REGISTRATION_ID, PdlPrefetcherEventType, PdlRequestPriority, buildPredictorForContext, configService, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, subscribeToPrefetcherEvents, unregisterRequestStrategy, whenPredictionsReady };
11560
- // version: 1.452.0-bcd113b7fd
11503
+ // version: 1.453.0-725e09cf25
@@ -42,16 +42,4 @@ export interface AuraClientService {
42
42
  * `undefined` otherwise. Defensive: never throws.
43
43
  */
44
44
  export declare function getAuraClientService(): AuraClientService | undefined;
45
- /**
46
- * Returns `true` when the Aura runtime is hosted inside an Aura/Experience
47
- * site (Experience Builder / `communityApp`) rather than LEX (one.app).
48
- * `$A.get('$Site')` is present and truthy on Aura sites and absent/falsy in
49
- * LEX. A stable per-page signal, so it is safe to evaluate once at module
50
- * load. Defensive: never throws.
51
- *
52
- * Used to keep the OneStore GraphQL adapter — and the HTTP UIAPI fetch path —
53
- * on the Aura transport for sites, because the HTTP transport's CSRF handling
54
- * does not work in the Aura Sites runtime (W-23092947).
55
- */
56
- export declare function isAuraSite(): boolean;
57
45
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-one-app",
3
- "version": "1.452.0",
3
+ "version": "1.453.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS engine for the one.app (LEX) runtime.",
6
6
  "main": "dist/oneAppLdsEngineCreator.js",
@@ -34,53 +34,53 @@
34
34
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-one-app"
35
35
  },
36
36
  "devDependencies": {
37
- "@conduit-client/service-provisioner": "3.26.0",
38
- "@conduit-client/tools-core": "3.26.0",
39
- "@salesforce/lds-adapters-apex": "^1.452.0",
40
- "@salesforce/lds-adapters-uiapi": "^1.452.0",
41
- "@salesforce/lds-ads-bridge": "^1.452.0",
42
- "@salesforce/lds-aura-storage": "^1.452.0",
43
- "@salesforce/lds-bindings": "^1.452.0",
44
- "@salesforce/lds-instrumentation": "^1.452.0",
45
- "@salesforce/lds-network-adapter": "^1.452.0",
46
- "@salesforce/lds-network-aura": "^1.452.0",
47
- "@salesforce/lds-network-fetch": "^1.452.0",
37
+ "@conduit-client/service-provisioner": "3.26.1",
38
+ "@conduit-client/tools-core": "3.26.1",
39
+ "@salesforce/lds-adapters-apex": "^1.453.0",
40
+ "@salesforce/lds-adapters-uiapi": "^1.453.0",
41
+ "@salesforce/lds-ads-bridge": "^1.453.0",
42
+ "@salesforce/lds-aura-storage": "^1.453.0",
43
+ "@salesforce/lds-bindings": "^1.453.0",
44
+ "@salesforce/lds-instrumentation": "^1.453.0",
45
+ "@salesforce/lds-network-adapter": "^1.453.0",
46
+ "@salesforce/lds-network-aura": "^1.453.0",
47
+ "@salesforce/lds-network-fetch": "^1.453.0",
48
48
  "jwt-encode": "1.0.1"
49
49
  },
50
50
  "dependencies": {
51
- "@conduit-client/command-aura-graphql-normalized-cache-control": "3.26.0",
52
- "@conduit-client/command-aura-network": "3.26.0",
53
- "@conduit-client/command-aura-normalized-cache-control": "3.26.0",
54
- "@conduit-client/command-fetch-network": "3.26.0",
55
- "@conduit-client/command-http-graphql-normalized-cache-control": "3.26.0",
56
- "@conduit-client/command-http-normalized-cache-control": "3.26.0",
57
- "@conduit-client/command-ndjson": "3.26.0",
58
- "@conduit-client/command-network": "3.26.0",
59
- "@conduit-client/command-sse": "3.26.0",
60
- "@conduit-client/command-streaming": "3.26.0",
61
- "@conduit-client/jwt-manager": "3.26.0",
62
- "@conduit-client/service-aura-network": "3.26.0",
63
- "@conduit-client/service-bindings-imperative": "3.26.0",
64
- "@conduit-client/service-bindings-lwc": "3.26.0",
65
- "@conduit-client/service-cache": "3.26.0",
66
- "@conduit-client/service-cache-control": "3.26.0",
67
- "@conduit-client/service-cache-inclusion-policy": "3.26.0",
68
- "@conduit-client/service-config": "3.26.0",
69
- "@conduit-client/service-feature-flags": "3.26.0",
70
- "@conduit-client/service-fetch-network": "3.26.0",
71
- "@conduit-client/service-instrument-command": "3.26.0",
72
- "@conduit-client/service-pubsub": "3.26.0",
73
- "@conduit-client/service-renewable-resource-manager": "3.26.0",
74
- "@conduit-client/service-store": "3.26.0",
75
- "@conduit-client/utils": "3.26.0",
51
+ "@conduit-client/command-aura-graphql-normalized-cache-control": "3.26.1",
52
+ "@conduit-client/command-aura-network": "3.26.1",
53
+ "@conduit-client/command-aura-normalized-cache-control": "3.26.1",
54
+ "@conduit-client/command-fetch-network": "3.26.1",
55
+ "@conduit-client/command-http-graphql-normalized-cache-control": "3.26.1",
56
+ "@conduit-client/command-http-normalized-cache-control": "3.26.1",
57
+ "@conduit-client/command-ndjson": "3.26.1",
58
+ "@conduit-client/command-network": "3.26.1",
59
+ "@conduit-client/command-sse": "3.26.1",
60
+ "@conduit-client/command-streaming": "3.26.1",
61
+ "@conduit-client/jwt-manager": "3.26.1",
62
+ "@conduit-client/service-aura-network": "3.26.1",
63
+ "@conduit-client/service-bindings-imperative": "3.26.1",
64
+ "@conduit-client/service-bindings-lwc": "3.26.1",
65
+ "@conduit-client/service-cache": "3.26.1",
66
+ "@conduit-client/service-cache-control": "3.26.1",
67
+ "@conduit-client/service-cache-inclusion-policy": "3.26.1",
68
+ "@conduit-client/service-config": "3.26.1",
69
+ "@conduit-client/service-feature-flags": "3.26.1",
70
+ "@conduit-client/service-fetch-network": "3.26.1",
71
+ "@conduit-client/service-instrument-command": "3.26.1",
72
+ "@conduit-client/service-pubsub": "3.26.1",
73
+ "@conduit-client/service-renewable-resource-manager": "3.26.1",
74
+ "@conduit-client/service-store": "3.26.1",
75
+ "@conduit-client/utils": "3.26.1",
76
76
  "@luvio/network-adapter-composable": "0.161.0",
77
77
  "@luvio/network-adapter-fetch": "0.161.0",
78
78
  "@lwc/state": "^0.29.0",
79
- "@salesforce/lds-adapters-onestore-graphql": "^1.452.0",
79
+ "@salesforce/lds-adapters-onestore-graphql": "^1.453.0",
80
80
  "@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
81
- "@salesforce/lds-durable-storage": "^1.452.0",
82
- "@salesforce/lds-luvio-service": "^1.452.0",
83
- "@salesforce/lds-luvio-uiapi-records-service": "^1.452.0"
81
+ "@salesforce/lds-durable-storage": "^1.453.0",
82
+ "@salesforce/lds-luvio-service": "^1.453.0",
83
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.453.0"
84
84
  },
85
85
  "luvioBundlesize": [
86
86
  {