@salesforce/lds-runtime-one-runtime 1.467.0 → 1.469.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.
@@ -13,6 +13,7 @@
13
13
  */
14
14
  /* proxy-compat-disable */
15
15
  import { HttpStatusCode as HttpStatusCode$2, InMemoryStore, Environment, Luvio, InMemoryStoreQueryEvaluator } from 'force/luvioEngine';
16
+ import useHttpUiapiLex from '@salesforce/gate/lds.usehttpuiapilex';
16
17
  import usePersistedQueries from '@salesforce/gate/lds.graphqlusepersistedqueries';
17
18
  import canCombineRecordLayoutRequests from '@salesforce/gate/lds.pdl.canCombineRecordLayoutRequests';
18
19
  import { GetApexWireAdapterFactory, registerPrefetcher as registerPrefetcher$1 } from 'force/ldsAdaptersApex';
@@ -38,7 +39,6 @@ import csrfValidationEnabled from '@salesforce/gate/ui.services.LightningConnect
38
39
  import sessionApiEnabled from '@salesforce/gate/ui.uisdk.session.api.enabled';
39
40
  import { pageScopedCache } from 'instrumentation/utility';
40
41
  import { createStorage, clearStorages } from 'force/ldsDurableStorage';
41
- import useHttpUiapiOneRuntime from '@salesforce/gate/lds.useHttpUiapiOneRuntime';
42
42
  import auraBasedRequestsEnabled from '@salesforce/gate/ui.services.auraBasedRequests.enabled';
43
43
  import { registerSubRequestNetworkAdapter } from 'force/ldsNetwork';
44
44
 
@@ -169,6 +169,45 @@ function rejectedPromiseLike$2(reason) {
169
169
  function isPromiseLike$2(x) {
170
170
  return typeof x?.then === "function";
171
171
  }
172
+ function deepEquals$2(x, y) {
173
+ if (x === void 0) {
174
+ return y === void 0;
175
+ } else if (x === null) {
176
+ return y === null;
177
+ } else if (y === null) {
178
+ return x === null;
179
+ } else if (isArray$4(x)) {
180
+ if (!isArray$4(y) || x.length !== y.length) {
181
+ return false;
182
+ }
183
+ for (let i = 0; i < x.length; ++i) {
184
+ if (!deepEquals$2(x[i], y[i])) {
185
+ return false;
186
+ }
187
+ }
188
+ return true;
189
+ } else if (typeof x === "object") {
190
+ if (typeof y !== "object") {
191
+ return false;
192
+ }
193
+ const xkeys = Object.keys(x);
194
+ const ykeys = Object.keys(y);
195
+ if (xkeys.length !== ykeys.length) {
196
+ return false;
197
+ }
198
+ for (let i = 0; i < xkeys.length; ++i) {
199
+ const key = xkeys[i];
200
+ if (!deepEquals$2(
201
+ x[key],
202
+ y[key]
203
+ )) {
204
+ return false;
205
+ }
206
+ }
207
+ return true;
208
+ }
209
+ return x === y;
210
+ }
172
211
  function stableJSONStringify$2(node) {
173
212
  const withToJSON = node;
174
213
  if (withToJSON && typeof withToJSON.toJSON === "function") {
@@ -366,7 +405,10 @@ let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
366
405
  if (isSubscribableResult(newResult)) {
367
406
  const value = newResult.isOk() ? ok$2(newResult.value.data) : err$1(newResult.error.failure);
368
407
  this.subscriptions.forEach((cb) => {
369
- cb(value);
408
+ try {
409
+ cb(value);
410
+ } catch {
411
+ }
370
412
  });
371
413
  }
372
414
  return ok$2(void 0);
@@ -1444,7 +1486,10 @@ class NetworkCommand extends BaseCommand {
1444
1486
  if (isSubscribableResult(newResult)) {
1445
1487
  const value = newResult.isOk() ? ok$2(newResult.value.data) : err$1(newResult.error.failure);
1446
1488
  this.subscriptions.forEach((cb) => {
1447
- cb(value);
1489
+ try {
1490
+ cb(value);
1491
+ } catch {
1492
+ }
1448
1493
  });
1449
1494
  }
1450
1495
  return ok$2(void 0);
@@ -1466,6 +1511,79 @@ function applyOperationRequestOptions(init, operationType, requestOptions) {
1466
1511
  }
1467
1512
  };
1468
1513
  }
1514
+ function fetchFromNetwork(getRequest, hooks, contextSeed) {
1515
+ try {
1516
+ const {
1517
+ services,
1518
+ params: [input, init],
1519
+ operationType,
1520
+ requestOptions
1521
+ } = getRequest();
1522
+ const initWithOptions = applyOperationRequestOptions(init, operationType, requestOptions);
1523
+ const seed = operationType === void 0 ? contextSeed : { operationType, ...contextSeed };
1524
+ const initWithSeed = seed === void 0 ? initWithOptions : { ...initWithOptions, __contextSeed: seed };
1525
+ const fetchCall = initWithSeed === void 0 ? services.fetch(input) : services.fetch(input, initWithSeed);
1526
+ return convertFetchResponseToData(fetchCall, hooks);
1527
+ } catch (reason) {
1528
+ return resolvedPromiseLike$2(err$1(toError(reason)));
1529
+ }
1530
+ }
1531
+ function convertFetchResponseToData(response, hooks) {
1532
+ return response.then(
1533
+ (response2) => {
1534
+ if (response2.ok) {
1535
+ let resultPromise;
1536
+ if (hooks.isSemanticNullResponse(response2)) {
1537
+ resultPromise = Promise.resolve(ok$2(null));
1538
+ } else if (hooks.isProtocolNoBodyStatus(response2.status) && !hooks.isSemanticNullResponse(response2)) {
1539
+ resultPromise = Promise.resolve(
1540
+ err$1(
1541
+ toError(
1542
+ `Unexpected ${response2.status} response: no-content status was not declared in the API specification. Declare this response in your OAS without a content property.`
1543
+ )
1544
+ )
1545
+ );
1546
+ } else {
1547
+ resultPromise = response2.json().then(
1548
+ (json) => ok$2(json),
1549
+ (reason) => err$1(toError(reason))
1550
+ );
1551
+ }
1552
+ return resultPromise.finally(() => {
1553
+ try {
1554
+ hooks.afterRequestHooks({ statusCode: response2.status });
1555
+ } catch {
1556
+ }
1557
+ });
1558
+ } else {
1559
+ return hooks.coerceError(response2).then((coercedError) => {
1560
+ return err$1(coercedError);
1561
+ }).finally(() => {
1562
+ try {
1563
+ hooks.afterRequestHooks({ statusCode: response2.status });
1564
+ } catch {
1565
+ }
1566
+ });
1567
+ }
1568
+ },
1569
+ (reason) => err$1(toError(reason))
1570
+ );
1571
+ }
1572
+ function completeRefresh(result, getSubscriptions, options = {}) {
1573
+ const { previousResult } = options;
1574
+ if (!options.suppressEqualSuccesses || result.isErr() || !previousResult || previousResult.isErr() || !deepEquals$2(previousResult.value, result.value)) {
1575
+ const subscriptions = getSubscriptions();
1576
+ const callbacks = options.skipRemovedSubscriptions ? [...subscriptions] : subscriptions;
1577
+ callbacks.forEach((callback) => {
1578
+ if (options.skipRemovedSubscriptions && !getSubscriptions().includes(callback)) return;
1579
+ try {
1580
+ callback(result);
1581
+ } catch {
1582
+ }
1583
+ });
1584
+ }
1585
+ return options.reportFailure && result.isErr() ? result : ok$2(void 0);
1586
+ }
1469
1587
  function isAbortableCommand(command) {
1470
1588
  return !!command && typeof command === "object" && "isAbortableCommand" in command && command.isAbortableCommand === true;
1471
1589
  }
@@ -1505,18 +1623,18 @@ function createAbortableDecorator(command, options) {
1505
1623
  }
1506
1624
  if (prop === "fetchParams") {
1507
1625
  const originalFetchParams = Reflect.get(target, prop, receiver);
1508
- const isInternal = Reflect.get(target, "isInternalExecution", receiver) === true;
1626
+ const suppressAbortSignal = Reflect.get(target, "isInternalExecution", receiver) === true;
1509
1627
  if (typeof originalFetchParams === "function") {
1510
1628
  return function(...args) {
1511
1629
  const originalReturnValue = originalFetchParams.apply(this, args);
1512
- if (!isInternal) {
1630
+ if (!suppressAbortSignal) {
1513
1631
  const [url, init = {}] = originalReturnValue;
1514
1632
  return [url, { signal, ...init }];
1515
1633
  }
1516
1634
  return originalReturnValue;
1517
1635
  };
1518
1636
  } else {
1519
- if (!isInternal && originalFetchParams && Array.isArray(originalFetchParams)) {
1637
+ if (!suppressAbortSignal && originalFetchParams && Array.isArray(originalFetchParams)) {
1520
1638
  const [url, init = {}] = originalFetchParams;
1521
1639
  return [url, { signal, ...init }];
1522
1640
  }
@@ -1549,38 +1667,35 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
1549
1667
  this.services = services;
1550
1668
  this.additionalNullResponses = [];
1551
1669
  }
1552
- /**
1553
- * The command's operation type. Generated command subclasses override this
1554
- * getter with their concrete operation (see the generator's
1555
- * `generateOperationType`); the base returns `undefined` for commands that
1556
- * don't declare one (e.g. hand-written commands). Transport-layer
1557
- * interceptors use it to tell a read (`query`) apart from a write — see
1558
- * `fetch`, which folds it into the context seed and derives
1559
- * `onestore.retrySafe` from it.
1560
- */
1561
1670
  get operationType() {
1562
1671
  return void 0;
1563
1672
  }
1564
- /** Declared `onestore` options (`handleServerError`, `compression`); generated overrides (`generateRequestOptionsGetter`). */
1565
1673
  get requestOptions() {
1566
1674
  return void 0;
1567
1675
  }
1568
1676
  fetch(contextSeed) {
1569
- try {
1570
- const [input, init] = this.fetchParams;
1571
- const operationType = this.operationType;
1572
- const initWithOptions = applyOperationRequestOptions(
1573
- init,
1574
- operationType,
1575
- this.requestOptions
1576
- );
1577
- const seed = operationType === void 0 ? contextSeed : { operationType, ...contextSeed };
1578
- const initWithSeed = seed === void 0 ? initWithOptions : { ...initWithOptions, __contextSeed: seed };
1579
- const fetchCall = initWithSeed === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithSeed);
1580
- return this.convertFetchResponseToData(fetchCall);
1581
- } catch (reason) {
1582
- return resolvedPromiseLike$2(err$1(toError(reason)));
1583
- }
1677
+ return fetchFromNetwork(
1678
+ () => ({
1679
+ services: this.services,
1680
+ params: this.fetchParams,
1681
+ operationType: this.operationType,
1682
+ requestOptions: this.requestOptions
1683
+ }),
1684
+ {
1685
+ isSemanticNullResponse: (response) => this.isSemanticNullResponse(response),
1686
+ isProtocolNoBodyStatus: (status) => this.isProtocolNoBodyStatus(status),
1687
+ coerceError: (response) => this.coerceError(response),
1688
+ afterRequestHooks: (options) => this.afterRequestHooks(options)
1689
+ },
1690
+ contextSeed
1691
+ );
1692
+ }
1693
+ refresh() {
1694
+ return this.execute().then((newResult) => {
1695
+ if (!isSubscribableResult(newResult)) return ok$2(void 0);
1696
+ const result = newResult.isOk() ? ok$2(newResult.value.data) : err$1(newResult.error.failure);
1697
+ return completeRefresh(result, () => this.subscriptions);
1698
+ });
1584
1699
  }
1585
1700
  isSemanticNullResponse(response) {
1586
1701
  return this.additionalNullResponses.includes(response.status);
@@ -1588,53 +1703,9 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
1588
1703
  isProtocolNoBodyStatus(status) {
1589
1704
  return status === 204 || status === 205;
1590
1705
  }
1591
- isUndeclaredNoBodyResponse(response) {
1592
- return this.isProtocolNoBodyStatus(response.status) && !this.isSemanticNullResponse(response);
1593
- }
1594
1706
  async coerceError(errorResponse) {
1595
1707
  return toError(errorResponse.statusText);
1596
1708
  }
1597
- convertFetchResponseToData(response) {
1598
- return response.then(
1599
- (response2) => {
1600
- if (response2.ok) {
1601
- let resultPromise;
1602
- if (this.isSemanticNullResponse(response2)) {
1603
- resultPromise = Promise.resolve(ok$2(null));
1604
- } else if (this.isUndeclaredNoBodyResponse(response2)) {
1605
- resultPromise = Promise.resolve(
1606
- err$1(
1607
- toError(
1608
- `Unexpected ${response2.status} response: no-content status was not declared in the API specification. Declare this response in your OAS without a content property.`
1609
- )
1610
- )
1611
- );
1612
- } else {
1613
- resultPromise = response2.json().then(
1614
- (json) => ok$2(json),
1615
- (reason) => err$1(toError(reason))
1616
- );
1617
- }
1618
- return resultPromise.finally(() => {
1619
- try {
1620
- this.afterRequestHooks({ statusCode: response2.status });
1621
- } catch {
1622
- }
1623
- });
1624
- } else {
1625
- return this.coerceError(response2).then((coercedError) => {
1626
- return err$1(coercedError);
1627
- }).finally(() => {
1628
- try {
1629
- this.afterRequestHooks({ statusCode: response2.status });
1630
- } catch {
1631
- }
1632
- });
1633
- }
1634
- },
1635
- (reason) => err$1(toError(reason))
1636
- );
1637
- }
1638
1709
  };
1639
1710
  _FetchNetworkCommand.availableDecorators = {
1640
1711
  abortable: createAbortableDecorator
@@ -2714,7 +2785,7 @@ function buildServiceDescriptor$d(luvio) {
2714
2785
  },
2715
2786
  };
2716
2787
  }
2717
- // version: 1.467.0-4f065d2a2a
2788
+ // version: 1.469.0-efd4e5a180
2718
2789
 
2719
2790
  class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
2720
2791
  constructor(config, documentRootType, services) {
@@ -3053,7 +3124,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
3053
3124
  },
3054
3125
  };
3055
3126
  }
3056
- // version: 1.467.0-4f065d2a2a
3127
+ // version: 1.469.0-efd4e5a180
3057
3128
 
3058
3129
  class RetryService {
3059
3130
  constructor(defaultRetryPolicy) {
@@ -3292,6 +3363,53 @@ function buildBaseImperativeInvoker(getCommand, transformResult) {
3292
3363
  }
3293
3364
  };
3294
3365
  }
3366
+ function assertSubscribable(result, report) {
3367
+ if (!isSubscribableResult(result)) {
3368
+ report("Non-subscribable result encountered - please use correct operation type");
3369
+ throw new Error("Internal error in Lightning Data Service adapter occurred");
3370
+ }
3371
+ }
3372
+ function toQueryUpdate(result) {
3373
+ return result.isOk() ? { data: result.value, error: void 0 } : { data: void 0, error: unwrapUserlandError(result.error) };
3374
+ }
3375
+ class SubscribableImperativeBindingsService {
3376
+ bind(getCommand, exposeRefresh = false) {
3377
+ return buildBaseImperativeInvoker(
3378
+ getCommand,
3379
+ (result) => this.transformResult(result, exposeRefresh)
3380
+ );
3381
+ }
3382
+ transformResult(result, exposeRefresh = false) {
3383
+ assertSubscribable(result, (message) => console.error(message));
3384
+ if (result.isErr()) throwUnwrappedUserlandError(result.error.failure);
3385
+ deepFreeze(result.value.data);
3386
+ const api = {
3387
+ data: result.value.data,
3388
+ subscribe: (callback) => result.value.subscribe((update) => {
3389
+ const { data, error } = toQueryUpdate(update);
3390
+ return callback({ data, error });
3391
+ })
3392
+ };
3393
+ if (exposeRefresh) {
3394
+ return {
3395
+ ...api,
3396
+ refresh: () => result.value.refresh().then((refreshed) => {
3397
+ if (refreshed.isOk()) return void 0;
3398
+ throw refreshed.error;
3399
+ })
3400
+ };
3401
+ }
3402
+ return api;
3403
+ }
3404
+ }
3405
+ function buildServiceDescriptor$7() {
3406
+ return {
3407
+ type: "subscribableImperativeBindings",
3408
+ version: "1.0",
3409
+ service: new SubscribableImperativeBindingsService()
3410
+ };
3411
+ }
3412
+
3295
3413
  const supportedCachePolicyTypes = ["no-cache", "only-if-cached"];
3296
3414
  function requestContextIsSupportedCachePolicy(requestContext) {
3297
3415
  return typeof requestContext === "object" && requestContext !== null && "cachePolicy" in requestContext && typeof requestContext.cachePolicy === "object" && requestContext.cachePolicy !== null && "type" in requestContext.cachePolicy && typeof requestContext.cachePolicy.type === "string" && supportedCachePolicyTypes.includes(
@@ -3344,7 +3462,7 @@ class DefaultImperativeBindingsService {
3344
3462
  });
3345
3463
  }
3346
3464
  }
3347
- function buildServiceDescriptor$6() {
3465
+ function buildServiceDescriptor$5() {
3348
3466
  return {
3349
3467
  type: "defaultImperativeBindings",
3350
3468
  version: "1.0",
@@ -3364,70 +3482,13 @@ class QueryImperativeBindingsService {
3364
3482
  });
3365
3483
  }
3366
3484
  }
3367
- function buildServiceDescriptor$5() {
3485
+ function buildServiceDescriptor$4() {
3368
3486
  return {
3369
3487
  type: "queryImperativeBindings",
3370
3488
  version: "1.0",
3371
3489
  service: new QueryImperativeBindingsService()
3372
3490
  };
3373
3491
  }
3374
- class SubscribableImperativeBindingsService {
3375
- bind(getCommand, exposeRefresh = false) {
3376
- return buildBaseImperativeInvoker(
3377
- getCommand,
3378
- (result) => this.transformResult(result, exposeRefresh)
3379
- );
3380
- }
3381
- transformResult(result, exposeRefresh = false) {
3382
- if (!isSubscribableResult(result)) {
3383
- console.error(
3384
- "Non-subscribable result encountered - please use correct operation type"
3385
- );
3386
- throw new Error("Internal error in Lightning Data Service adapter occurred");
3387
- }
3388
- if (result.isOk()) {
3389
- deepFreeze(result.value.data);
3390
- const api = {
3391
- data: result.value.data,
3392
- subscribe: (cb) => {
3393
- return result.value.subscribe((result2) => {
3394
- if (result2.isErr()) {
3395
- return cb({
3396
- data: void 0,
3397
- error: unwrapUserlandError(result2.error)
3398
- });
3399
- }
3400
- return cb({ data: result2.value, error: void 0 });
3401
- });
3402
- }
3403
- };
3404
- if (exposeRefresh) {
3405
- return {
3406
- ...api,
3407
- refresh: () => {
3408
- return result.value.refresh().then((res) => {
3409
- if (res.isOk()) {
3410
- return void 0;
3411
- }
3412
- throw res.error;
3413
- });
3414
- }
3415
- };
3416
- } else {
3417
- return api;
3418
- }
3419
- } else {
3420
- throwUnwrappedUserlandError(result.error.failure);
3421
- }
3422
- }
3423
- }
3424
- function buildServiceDescriptor$4() {
3425
- return {
3426
- type: "subscribableImperativeBindings",
3427
- version: "1.0",
3428
- service: new SubscribableImperativeBindingsService()
3429
- };
3430
- }
3431
3492
  class LegacyImperativeBindingsService {
3432
3493
  bind(getCommand) {
3433
3494
  const invoke = async (config, requestContext, callback) => {
@@ -3729,7 +3790,7 @@ class GraphQLMutationBindingsService {
3729
3790
  };
3730
3791
  }
3731
3792
  }
3732
- function buildServiceDescriptor$7() {
3793
+ function buildServiceDescriptor$6() {
3733
3794
  return {
3734
3795
  type: "graphQLMutationBindings",
3735
3796
  version: "1.0",
@@ -6060,7 +6121,7 @@ function createActionEndMark(responseStatus, responseStatusText, serverTiming, u
6060
6121
  const ctx = {
6061
6122
  id: instrumentationId,
6062
6123
  state: responseStatusText || getResponseStatusText(responseStatus.toString()),
6063
- def: url,
6124
+ def: toMarkDef(url),
6064
6125
  };
6065
6126
  // this step adds the serverTime to the base object, as opposed to being in the context field
6066
6127
  const receiveCtx = { ...ctx, serverTime: getServerTimeObject(serverTiming) };
@@ -6068,6 +6129,18 @@ function createActionEndMark(responseStatus, responseStatusText, serverTiming, u
6068
6129
  mark('actions', 'finishStart', ctx);
6069
6130
  mark('actions', 'finishEnd', ctx);
6070
6131
  }
6132
+ // A path segment (or comma-separated item within one, e.g. records/batch/001..,005..,
6133
+ // with the comma raw or percent-encoded) that looks like a 15- or 18-char Salesforce ID.
6134
+ // Requiring a digit keeps alphabetic API names of the same length (e.g.
6135
+ // OpportunityHistory) intact.
6136
+ const RECORD_ID_SEGMENT = /(\/|,|%2[Cc])(?=[A-Za-z]*\d)[A-Za-z0-9]{15}(?:[A-Za-z0-9]{3})?(?=\/|,|%2[Cc]|$)/g;
6137
+ // The action mark `def` is beaconed to the server, whose PII check flags user IDs (005...)
6138
+ // anywhere under marks.actions and then re-tokenizes the entire payload. Drop the query
6139
+ // string and template record IDs so `def` identifies the endpoint without carrying data,
6140
+ // analogous to the Aura action name it replaces.
6141
+ function toMarkDef(url) {
6142
+ return url.split(/[?#]/)[0].replace(RECORD_ID_SEGMENT, '$1{id}');
6143
+ }
6071
6144
  const seenResources = new WeakSet();
6072
6145
  function createTransportEndMark(responseStatus, responseStatusText, url, context, errorMessage) {
6073
6146
  if (context && context.instrumentationId) {
@@ -8004,7 +8077,7 @@ function getEnvironmentSetting(name) {
8004
8077
  }
8005
8078
  return undefined;
8006
8079
  }
8007
- // version: 1.467.0-049a8b6027
8080
+ // version: 1.469.0-20bccd4816
8008
8081
 
8009
8082
  /**
8010
8083
  * Helpers for reaching the Aura framework from the LDS Aura runtime.
@@ -8528,22 +8601,23 @@ const CONTENT_DOCUMENTS_VERSIONS_PATH = '/ui-api/records/content-documents/conte
8528
8601
  */
8529
8602
  // This fork package (lds-runtime-one-runtime) is provisioned only in the LEX on
8530
8603
  // One Runtime (LWR) runtime, which means it always runs as LEX on One Runtime —
8531
- // never classic one.app Aura, never on a site. The single LDS gate
8532
- // `useHttpUiapiOneRuntime` enables both the public and private path lists. The
8533
- // public/private split is preserved as two separate arrays because the PRIVATE
8534
- // paths carry an extra condition: the server-side `auraBasedRequests` UiSdk gate.
8604
+ // never classic one.app Aura, never on a site. Both LEX flavors (one.app and
8605
+ // LEX on One Runtime) share the single LDS gate `lds.usehttpuiapilex`, which
8606
+ // enables both the public and private path lists. The public/private split is
8607
+ // preserved as two separate arrays because the PRIVATE paths carry an extra
8608
+ // condition: the server-side `auraBasedRequests` UiSdk gate.
8535
8609
  // If UiSdk turns that gate off, private (UiTier-restricted) Connect resources can
8536
8610
  // no longer be served over HTTP and must fall back to Aura, whereas
8537
8611
  // public/allowlisted paths are unaffected.
8538
8612
  const PREDICATE_PATH_SETS = [
8539
8613
  // LEX on One Runtime — public UIAPI endpoints
8540
8614
  {
8541
- predicate: () => useHttpUiapiOneRuntime.isOpen({ fallback: false }),
8615
+ predicate: () => useHttpUiapiLex.isOpen({ fallback: false }),
8542
8616
  paths: UIAPI_PUBLIC_PATHS,
8543
8617
  },
8544
8618
  // LEX on One Runtime — private UIAPI endpoints (also require the UiSdk gate)
8545
8619
  {
8546
- predicate: () => useHttpUiapiOneRuntime.isOpen({ fallback: false }) &&
8620
+ predicate: () => useHttpUiapiLex.isOpen({ fallback: false }) &&
8547
8621
  auraBasedRequestsEnabled.isOpen({ fallback: false }),
8548
8622
  paths: UIAPI_PRIVATE_PATHS,
8549
8623
  },
@@ -11570,12 +11644,8 @@ function initializeOneStore(luvio) {
11570
11644
  version: '1.0',
11571
11645
  service: prefetchSfapJwt,
11572
11646
  };
11573
- // Use the Aura transport for the OneStore GraphQL command by default. The
11574
- // HTTP transport's CSRF handling is broken on Aura/Experience sites
11575
- // (W-23092947), and defaulting to Aura keeps a single, known-good transport
11576
- // across LEX and sites. Paired with the HTTP UIAPI fetch path being
11577
- // disabled on sites (see network-fetch.ts).
11578
- featureFlagsService.set('graphQLUseAura', true);
11647
+ // OneStore GraphQL follows the HTTP UIAPI gate (LEX never runs on sites).
11648
+ featureFlagsService.set('graphQLUseAura', !useHttpUiapiLex.isOpen({ fallback: false }));
11579
11649
  // Persisted (named) GraphQL queries; no consumers yet (W-23971639).
11580
11650
  featureFlagsService.set('graphQLUsePersistedQueries', usePersistedQueries.isOpen({ fallback: false }));
11581
11651
  const services = [
@@ -11607,13 +11677,13 @@ function initializeOneStore(luvio) {
11607
11677
  buildServiceDescriptor$b(),
11608
11678
  featureFlagsServiceDescriptor,
11609
11679
  retryServiceDescriptor,
11610
- buildServiceDescriptor$6(),
11611
11680
  buildServiceDescriptor$5(),
11612
11681
  buildServiceDescriptor$4(),
11682
+ buildServiceDescriptor$7(),
11613
11683
  buildServiceDescriptor$3$1(),
11614
11684
  buildServiceDescriptor$2$1(),
11615
11685
  buildServiceDescriptor$1$2(),
11616
- buildServiceDescriptor$7(),
11686
+ buildServiceDescriptor$6(),
11617
11687
  buildLWCWireBindingsServiceDescriptor(),
11618
11688
  buildLWCGraphQLWireBindingsServiceDescriptor(),
11619
11689
  configServiceDescriptor,
@@ -11638,4 +11708,4 @@ function ldsEngineCreator() {
11638
11708
  }
11639
11709
 
11640
11710
  export { LexRequestStrategy, PDL_ENGINE_REGISTRATION_ID, PdlPrefetcherEventType, PdlRequestPriority, buildPredictorForContext, configService, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, subscribeToPrefetcherEvents, unregisterRequestStrategy, whenPredictionsReady };
11641
- // version: 1.467.0-4f065d2a2a
11711
+ // version: 1.469.0-efd4e5a180
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-one-runtime",
3
- "version": "1.467.0",
3
+ "version": "1.469.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS engine for the LEX on One Runtime (LWR) runtime.",
6
6
  "main": "dist/oneRuntimeLdsEngineCreator.js",
@@ -34,54 +34,54 @@
34
34
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-one-runtime"
35
35
  },
36
36
  "devDependencies": {
37
- "@conduit-client/service-provisioner": "3.34.0",
38
- "@conduit-client/tools-core": "3.34.0",
39
- "@salesforce/lds-adapters-apex": "^1.467.0",
40
- "@salesforce/lds-adapters-uiapi": "^1.467.0",
41
- "@salesforce/lds-ads-bridge": "^1.467.0",
42
- "@salesforce/lds-aura-storage": "^1.467.0",
43
- "@salesforce/lds-bindings": "^1.467.0",
44
- "@salesforce/lds-instrumentation": "^1.467.0",
45
- "@salesforce/lds-network-adapter": "^1.467.0",
46
- "@salesforce/lds-network-aura": "^1.467.0",
47
- "@salesforce/lds-network-fetch": "^1.467.0",
48
- "@salesforce/lds-runtime-shared": "^1.467.0",
37
+ "@conduit-client/service-provisioner": "3.35.1",
38
+ "@conduit-client/tools-core": "3.35.1",
39
+ "@salesforce/lds-adapters-apex": "^1.469.0",
40
+ "@salesforce/lds-adapters-uiapi": "^1.469.0",
41
+ "@salesforce/lds-ads-bridge": "^1.469.0",
42
+ "@salesforce/lds-aura-storage": "^1.469.0",
43
+ "@salesforce/lds-bindings": "^1.469.0",
44
+ "@salesforce/lds-instrumentation": "^1.469.0",
45
+ "@salesforce/lds-network-adapter": "^1.469.0",
46
+ "@salesforce/lds-network-aura": "^1.469.0",
47
+ "@salesforce/lds-network-fetch": "^1.469.0",
48
+ "@salesforce/lds-runtime-shared": "^1.469.0",
49
49
  "jwt-encode": "1.0.1"
50
50
  },
51
51
  "dependencies": {
52
- "@conduit-client/command-aura-graphql-normalized-cache-control": "3.34.0",
53
- "@conduit-client/command-aura-network": "3.34.0",
54
- "@conduit-client/command-aura-normalized-cache-control": "3.34.0",
55
- "@conduit-client/command-fetch-network": "3.34.0",
56
- "@conduit-client/command-http-graphql-normalized-cache-control": "3.34.0",
57
- "@conduit-client/command-http-normalized-cache-control": "3.34.0",
58
- "@conduit-client/command-ndjson": "3.34.0",
59
- "@conduit-client/command-network": "3.34.0",
60
- "@conduit-client/command-sse": "3.34.0",
61
- "@conduit-client/command-streaming": "3.34.0",
62
- "@conduit-client/jwt-manager": "3.34.0",
63
- "@conduit-client/service-aura-network": "3.34.0",
64
- "@conduit-client/service-bindings-imperative": "3.34.0",
65
- "@conduit-client/service-bindings-lwc": "3.34.0",
66
- "@conduit-client/service-cache": "3.34.0",
67
- "@conduit-client/service-cache-control": "3.34.0",
68
- "@conduit-client/service-cache-inclusion-policy": "3.34.0",
69
- "@conduit-client/service-config": "3.34.0",
70
- "@conduit-client/service-feature-flags": "3.34.0",
71
- "@conduit-client/service-fetch-network": "3.34.0",
72
- "@conduit-client/service-instrument-command": "3.34.0",
73
- "@conduit-client/service-pubsub": "3.34.0",
74
- "@conduit-client/service-renewable-resource-manager": "3.34.0",
75
- "@conduit-client/service-store": "3.34.0",
76
- "@conduit-client/utils": "3.34.0",
52
+ "@conduit-client/command-aura-graphql-normalized-cache-control": "3.35.1",
53
+ "@conduit-client/command-aura-network": "3.35.1",
54
+ "@conduit-client/command-aura-normalized-cache-control": "3.35.1",
55
+ "@conduit-client/command-fetch-network": "3.35.1",
56
+ "@conduit-client/command-http-graphql-normalized-cache-control": "3.35.1",
57
+ "@conduit-client/command-http-normalized-cache-control": "3.35.1",
58
+ "@conduit-client/command-ndjson": "3.35.1",
59
+ "@conduit-client/command-network": "3.35.1",
60
+ "@conduit-client/command-sse": "3.35.1",
61
+ "@conduit-client/command-streaming": "3.35.1",
62
+ "@conduit-client/jwt-manager": "3.35.1",
63
+ "@conduit-client/service-aura-network": "3.35.1",
64
+ "@conduit-client/service-bindings-imperative": "3.35.1",
65
+ "@conduit-client/service-bindings-lwc": "3.35.1",
66
+ "@conduit-client/service-cache": "3.35.1",
67
+ "@conduit-client/service-cache-control": "3.35.1",
68
+ "@conduit-client/service-cache-inclusion-policy": "3.35.1",
69
+ "@conduit-client/service-config": "3.35.1",
70
+ "@conduit-client/service-feature-flags": "3.35.1",
71
+ "@conduit-client/service-fetch-network": "3.35.1",
72
+ "@conduit-client/service-instrument-command": "3.35.1",
73
+ "@conduit-client/service-pubsub": "3.35.1",
74
+ "@conduit-client/service-renewable-resource-manager": "3.35.1",
75
+ "@conduit-client/service-store": "3.35.1",
76
+ "@conduit-client/utils": "3.35.1",
77
77
  "@luvio/network-adapter-composable": "0.161.2",
78
78
  "@luvio/network-adapter-fetch": "0.161.2",
79
79
  "@lwc/state": "^0.29.0",
80
- "@salesforce/lds-adapters-onestore-graphql": "^1.467.0",
80
+ "@salesforce/lds-adapters-onestore-graphql": "^1.469.0",
81
81
  "@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
82
- "@salesforce/lds-durable-storage": "^1.467.0",
83
- "@salesforce/lds-luvio-service": "^1.467.0",
84
- "@salesforce/lds-luvio-uiapi-records-service": "^1.467.0"
82
+ "@salesforce/lds-durable-storage": "^1.469.0",
83
+ "@salesforce/lds-luvio-service": "^1.469.0",
84
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.469.0"
85
85
  },
86
86
  "luvioBundlesize": [
87
87
  {