@salesforce/lds-worker-api 1.264.0 → 1.266.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.
@@ -1034,4 +1034,4 @@ if (process.env.NODE_ENV !== 'production') {
1034
1034
  }
1035
1035
 
1036
1036
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1037
- // version: 1.264.0-707402a81
1037
+ // version: 1.266.0-2ee9b6853
@@ -2549,6 +2549,10 @@ class Reader {
2549
2549
  refresh: this.refresh,
2550
2550
  }; // Typescript complains about unfulfilled vs fulfilled snapshot if we don't cast
2551
2551
  }
2552
+ // Only works for non-complex values.. No Date or Functions.
2553
+ opaqueCopy(value) {
2554
+ return parse$a(stringify$a(value));
2555
+ }
2552
2556
  deepCopy(record, data, key, visitedKeys) {
2553
2557
  const value = record[key];
2554
2558
  this.enterPath(key);
@@ -2797,12 +2801,18 @@ class Reader {
2797
2801
  this.snapshotChanged = keys$1.length !== keys$c(baseSnapshotValue).length;
2798
2802
  }
2799
2803
  }
2800
- checkIfChanged(value) {
2804
+ checkIfChanged(value, options) {
2801
2805
  // If we've already detected a change, just return
2802
2806
  if (this.snapshotChanged === true) {
2803
2807
  return;
2804
2808
  }
2805
- this.snapshotChanged = this.currentPath.baseSnapshotValue !== value;
2809
+ if ((options === null || options === void 0 ? void 0 : options.useDeepEquals) === true) {
2810
+ this.snapshotChanged =
2811
+ stringify$a(this.currentPath.baseSnapshotValue) !== stringify$a(value);
2812
+ }
2813
+ else {
2814
+ this.snapshotChanged = this.currentPath.baseSnapshotValue !== value;
2815
+ }
2806
2816
  }
2807
2817
  readPluralLink(propertyName, selection, record, data) {
2808
2818
  if (selection.fragment === undefined) {
@@ -2881,10 +2891,11 @@ class Reader {
2881
2891
  };
2882
2892
  }
2883
2893
  if (fragment.opaque) {
2884
- this.checkIfChanged(result.value);
2894
+ this.checkIfChanged(result.value, { useDeepEquals: true });
2895
+ const opaqueValue = this.opaqueCopy(result.value);
2885
2896
  return {
2886
2897
  state: FragmentReadResultState$1.Success,
2887
- value: result.value,
2898
+ value: opaqueValue,
2888
2899
  };
2889
2900
  }
2890
2901
  const sink = {};
@@ -2958,7 +2969,7 @@ class Reader {
2958
2969
  if (value === undefined && required === false) {
2959
2970
  return;
2960
2971
  }
2961
- sink[propertyName] = value;
2972
+ sink[propertyName] = value; // Should we be using this.opaqueCopy here? Not used by gql but seems bad to directly expose store entries.
2962
2973
  }
2963
2974
  readScalarMap(propertyName, record, data, required) {
2964
2975
  const obj = record[propertyName];
@@ -4001,7 +4012,7 @@ function createResourceParamsImpl(config, configMetadata) {
4001
4012
  }
4002
4013
  return resourceParams;
4003
4014
  }
4004
- // engine version: 0.154.4-7ff4ac46
4015
+ // engine version: 0.154.6-a3a5150a
4005
4016
 
4006
4017
  /**
4007
4018
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -4129,7 +4140,7 @@ function withDefaultLuvio(callback) {
4129
4140
  }
4130
4141
  callbacks.push(callback);
4131
4142
  }
4132
- // version: 1.264.0-707402a81
4143
+ // version: 1.266.0-2ee9b6853
4133
4144
 
4134
4145
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4135
4146
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15637,7 +15648,7 @@ function gql(literals, ...subs) {
15637
15648
  }
15638
15649
  return superResult;
15639
15650
  }
15640
- // version: 1.264.0-707402a81
15651
+ // version: 1.266.0-2ee9b6853
15641
15652
 
15642
15653
  function unwrap(data) {
15643
15654
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16562,7 +16573,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16562
16573
  const { apiFamily, name } = metadata;
16563
16574
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16564
16575
  }
16565
- // version: 1.264.0-707402a81
16576
+ // version: 1.266.0-2ee9b6853
16566
16577
 
16567
16578
  /**
16568
16579
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16661,7 +16672,7 @@ var TypeCheckShapes;
16661
16672
  TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
16662
16673
  TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
16663
16674
  })(TypeCheckShapes || (TypeCheckShapes = {}));
16664
- // engine version: 0.154.4-7ff4ac46
16675
+ // engine version: 0.154.6-a3a5150a
16665
16676
 
16666
16677
  const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
16667
16678
 
@@ -20293,8 +20304,7 @@ function markNulledOutPath(record, path) {
20293
20304
  const resolved = link.follow();
20294
20305
  if (isGraphNode(resolved) &&
20295
20306
  resolved.isScalar('value') &&
20296
- path.length > 0 &&
20297
- // TODO [W-14082782]: temporary fix
20307
+ path.length > 0 && // TODO [W-14082782]: temporary fix
20298
20308
  !isFrozen$2(link.data)) {
20299
20309
  const linkState = link.linkData();
20300
20310
  const fields = linkState === undefined ? [] : linkState.fields;
@@ -23780,7 +23790,15 @@ function prepareRequest_getListRecords(luvio, context, config, listInfo, snapsho
23780
23790
  // eslint-disable-next-line @salesforce/lds/no-error-in-production
23781
23791
  throw new Error('how did MRU config get here?');
23782
23792
  }
23793
+ let releaseKeys = () => { };
23783
23794
  if (snapshot) {
23795
+ if (snapshot.state !== 'Error') {
23796
+ const { recordId, seenRecords } = snapshot;
23797
+ const snapshotRetainedIds = seenRecords === undefined ? [recordId] : [recordId, ...seenRecords.keysAsArray()];
23798
+ const snapshotKeys = [];
23799
+ snapshotRetainedIds.forEach((key) => snapshotKeys.push(key));
23800
+ releaseKeys = luvio.storeRetain(snapshotKeys);
23801
+ }
23784
23802
  const paginationKey = paginationKeyBuilder(luvio, {
23785
23803
  listViewId: listInfo.eTag,
23786
23804
  searchTerm: null,
@@ -23820,11 +23838,14 @@ function prepareRequest_getListRecords(luvio, context, config, listInfo, snapsho
23820
23838
  request.queryParams.pageToken = pageToken;
23821
23839
  }
23822
23840
  }
23823
- return request;
23841
+ return {
23842
+ request: request,
23843
+ releaseKeys: releaseKeys,
23844
+ };
23824
23845
  }
23825
23846
  // Only call this function if you are certain the list view hasn't changed (ie:
23826
23847
  // the listInfoEtag in the body is the same as the cached listInfo.eTag)
23827
- function onResourceSuccess_getListRecords(luvio, context, config, listInfo, response) {
23848
+ function onResourceSuccess_getListRecords(luvio, context, config, listInfo, response, releaseKeys) {
23828
23849
  const { body } = response;
23829
23850
  const { listInfoETag } = body;
23830
23851
  const fields = listFields(luvio, config, listInfo).processRecords(body.records);
@@ -23836,18 +23857,20 @@ function onResourceSuccess_getListRecords(luvio, context, config, listInfo, resp
23836
23857
  listViewApiName: listInfo.listReference.listViewApiName,
23837
23858
  }), ingest$K$1, body);
23838
23859
  const snapshot = buildCachedSnapshot$7(luvio, luvio.storeLookup.bind(luvio), context, config, listInfo, fields);
23860
+ releaseKeys();
23839
23861
  return luvio.storeBroadcast().then(() => snapshot);
23840
23862
  }
23841
- function onResourceError_getListRecords(luvio, context, config, listInfo, err) {
23863
+ function onResourceError_getListRecords(luvio, context, config, listInfo, err, releaseKeys) {
23842
23864
  const errorSnapshot = luvio.errorSnapshot(err);
23843
23865
  luvio.storeIngestError(keyBuilder$1Y(luvio, {
23844
23866
  ...listInfo.listReference,
23845
23867
  sortBy: getSortBy(config, context),
23846
23868
  }), errorSnapshot);
23869
+ releaseKeys();
23847
23870
  return luvio.storeBroadcast().then(() => errorSnapshot);
23848
23871
  }
23849
23872
  function buildNetworkSnapshot_getListRecords(luvio, context, config, listInfo, dispatchOptions, snapshot) {
23850
- const request = prepareRequest_getListRecords(luvio, context, config, listInfo, snapshot);
23873
+ const { request, releaseKeys } = prepareRequest_getListRecords(luvio, context, config, listInfo, snapshot);
23851
23874
  return luvio.dispatchResourceRequest(request).then((response) => {
23852
23875
  const { body } = response;
23853
23876
  // fall back to list-ui if list view has changed
@@ -23861,14 +23884,14 @@ function buildNetworkSnapshot_getListRecords(luvio, context, config, listInfo, d
23861
23884
  body.sortBy = sortBy.split(',');
23862
23885
  }
23863
23886
  // else ingest
23864
- return luvio.handleSuccessResponse(() => onResourceSuccess_getListRecords(luvio, context, config, listInfo, response), () => {
23887
+ return luvio.handleSuccessResponse(() => onResourceSuccess_getListRecords(luvio, context, config, listInfo, response, releaseKeys), () => {
23865
23888
  const cache = new StoreKeyMap();
23866
23889
  getTypeCacheKeys$R$1(cache, luvio, body);
23867
23890
  return cache;
23868
23891
  });
23869
23892
  }, (err) => {
23870
23893
  return luvio.handleErrorResponse(() => {
23871
- return onResourceError_getListRecords(luvio, context, config, listInfo, err);
23894
+ return onResourceError_getListRecords(luvio, context, config, listInfo, err, releaseKeys);
23872
23895
  });
23873
23896
  });
23874
23897
  }
@@ -27393,7 +27416,7 @@ function select$1m(luvio, params) {
27393
27416
  return select$1n();
27394
27417
  }
27395
27418
  function keyBuilder$1v(luvio, params) {
27396
- return keyPrefix$2 + '::FlexipageFormulaActivationRepresentation:(' + 'application:' + params.queryParams.application + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'actionFeature:' + params.urlParams.actionFeature + ')';
27419
+ return keyPrefix$2 + '::FlexipageFormulaActivationRepresentation:(' + 'application:' + params.queryParams.application + ',' + 'objectApiNames:' + params.queryParams.objectApiNames + ',' + 'actionFeature:' + params.urlParams.actionFeature + ')';
27397
27420
  }
27398
27421
  function getResponseCacheKeys$R(storeKeyMap, luvio, resourceParams, response) {
27399
27422
  getTypeCacheKeys$B$1(storeKeyMap, luvio, response, () => keyBuilder$1v(luvio, resourceParams));
@@ -27440,7 +27463,7 @@ const adapterName$R = 'getFlexipageFormulaOverrides';
27440
27463
  const getFlexipageFormulaOverrides_ConfigPropertyMetadata = [
27441
27464
  generateParamConfigMetadata$2('actionFeature', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1$1),
27442
27465
  generateParamConfigMetadata$2('application', false, 1 /* QueryParameter */, 0 /* String */, false, getObjectApiName$1$1),
27443
- generateParamConfigMetadata$2('objectApiName', false, 1 /* QueryParameter */, 0 /* String */, false, getObjectApiName$1$1),
27466
+ generateParamConfigMetadata$2('objectApiNames', false, 1 /* QueryParameter */, 0 /* String */, true, toSortedStringArray),
27444
27467
  ];
27445
27468
  const getFlexipageFormulaOverrides_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$R, getFlexipageFormulaOverrides_ConfigPropertyMetadata);
27446
27469
  const createResourceParams$P = /*#__PURE__*/ createResourceParams$11(getFlexipageFormulaOverrides_ConfigPropertyMetadata);
@@ -42865,7 +42888,7 @@ function bindExportsTo$1(luvio) {
42865
42888
  getListObjectInfo: createWireAdapterConstructor(luvio, getListObjectInfo_ldsAdapter, getListObjectInfoMetadata),
42866
42889
  getListPreferences: createWireAdapterConstructor(luvio, getListPreferences_ldsAdapter, getListPreferencesMetadata),
42867
42890
  getListRecordsByName: createWireAdapterConstructor(luvio, getListRecordsByName_ldsAdapter, getListRecordsByNameMetadata),
42868
- getListUi: createWireAdapterConstructor(luvio, getListUi_ldsAdapter, getListUiMetadata),
42891
+ getListUi: createInfiniteScrollingWireAdapterConstructor(luvio, getListUi_ldsAdapter, getListUiMetadata),
42869
42892
  getLookupActions: createWireAdapterConstructor(luvio, getLookupActions_ldsAdapter, getLookupActionsMetadata),
42870
42893
  getLookupMetadata: createWireAdapterConstructor(luvio, getLookupMetadata_ldsAdapter, getLookupMetadataMetadata),
42871
42894
  getLookupRecords: createWireAdapterConstructor(luvio, getLookupRecords_ldsAdapter, getLookupRecordsMetadata),
@@ -43118,7 +43141,7 @@ withDefaultLuvio((luvio) => {
43118
43141
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
43119
43142
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
43120
43143
  });
43121
- // version: 1.264.0-76ebb1758
43144
+ // version: 1.266.0-081d1ca4f
43122
43145
 
43123
43146
  var ldsIdempotencyWriteDisabled = {
43124
43147
  isOpen: function (e) {
@@ -60996,7 +61019,7 @@ register$1({
60996
61019
  id: '@salesforce/lds-network-adapter',
60997
61020
  instrument: instrument$2,
60998
61021
  });
60999
- // version: 1.264.0-707402a81
61022
+ // version: 1.266.0-2ee9b6853
61000
61023
 
61001
61024
  const { create: create$3, keys: keys$3 } = Object;
61002
61025
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -79325,7 +79348,7 @@ register$1({
79325
79348
  configuration: { ...configurationForGraphQLAdapters$1 },
79326
79349
  instrument: instrument$1,
79327
79350
  });
79328
- // version: 1.264.0-76ebb1758
79351
+ // version: 1.266.0-081d1ca4f
79329
79352
 
79330
79353
  // On core the unstable adapters are re-exported with different names,
79331
79354
  // we want to match them here.
@@ -81576,7 +81599,7 @@ withDefaultLuvio((luvio) => {
81576
81599
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
81577
81600
  graphQLImperative = ldsAdapter;
81578
81601
  });
81579
- // version: 1.264.0-76ebb1758
81602
+ // version: 1.266.0-081d1ca4f
81580
81603
 
81581
81604
  var gqlApi = /*#__PURE__*/Object.freeze({
81582
81605
  __proto__: null,
@@ -82274,7 +82297,7 @@ const callbacks$1 = [];
82274
82297
  function register(r) {
82275
82298
  callbacks$1.forEach((callback) => callback(r));
82276
82299
  }
82277
- // version: 1.264.0-707402a81
82300
+ // version: 1.266.0-2ee9b6853
82278
82301
 
82279
82302
  /**
82280
82303
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -87179,4 +87202,4 @@ const { luvio } = getRuntime();
87179
87202
  setDefaultLuvio({ luvio });
87180
87203
 
87181
87204
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
87182
- // version: 1.264.0-707402a81
87205
+ // version: 1.266.0-2ee9b6853
@@ -2555,6 +2555,10 @@
2555
2555
  refresh: this.refresh,
2556
2556
  }; // Typescript complains about unfulfilled vs fulfilled snapshot if we don't cast
2557
2557
  }
2558
+ // Only works for non-complex values.. No Date or Functions.
2559
+ opaqueCopy(value) {
2560
+ return parse$a(stringify$a(value));
2561
+ }
2558
2562
  deepCopy(record, data, key, visitedKeys) {
2559
2563
  const value = record[key];
2560
2564
  this.enterPath(key);
@@ -2803,12 +2807,18 @@
2803
2807
  this.snapshotChanged = keys$1.length !== keys$c(baseSnapshotValue).length;
2804
2808
  }
2805
2809
  }
2806
- checkIfChanged(value) {
2810
+ checkIfChanged(value, options) {
2807
2811
  // If we've already detected a change, just return
2808
2812
  if (this.snapshotChanged === true) {
2809
2813
  return;
2810
2814
  }
2811
- this.snapshotChanged = this.currentPath.baseSnapshotValue !== value;
2815
+ if ((options === null || options === void 0 ? void 0 : options.useDeepEquals) === true) {
2816
+ this.snapshotChanged =
2817
+ stringify$a(this.currentPath.baseSnapshotValue) !== stringify$a(value);
2818
+ }
2819
+ else {
2820
+ this.snapshotChanged = this.currentPath.baseSnapshotValue !== value;
2821
+ }
2812
2822
  }
2813
2823
  readPluralLink(propertyName, selection, record, data) {
2814
2824
  if (selection.fragment === undefined) {
@@ -2887,10 +2897,11 @@
2887
2897
  };
2888
2898
  }
2889
2899
  if (fragment.opaque) {
2890
- this.checkIfChanged(result.value);
2900
+ this.checkIfChanged(result.value, { useDeepEquals: true });
2901
+ const opaqueValue = this.opaqueCopy(result.value);
2891
2902
  return {
2892
2903
  state: FragmentReadResultState$1.Success,
2893
- value: result.value,
2904
+ value: opaqueValue,
2894
2905
  };
2895
2906
  }
2896
2907
  const sink = {};
@@ -2964,7 +2975,7 @@
2964
2975
  if (value === undefined && required === false) {
2965
2976
  return;
2966
2977
  }
2967
- sink[propertyName] = value;
2978
+ sink[propertyName] = value; // Should we be using this.opaqueCopy here? Not used by gql but seems bad to directly expose store entries.
2968
2979
  }
2969
2980
  readScalarMap(propertyName, record, data, required) {
2970
2981
  const obj = record[propertyName];
@@ -4007,7 +4018,7 @@
4007
4018
  }
4008
4019
  return resourceParams;
4009
4020
  }
4010
- // engine version: 0.154.4-7ff4ac46
4021
+ // engine version: 0.154.6-a3a5150a
4011
4022
 
4012
4023
  /**
4013
4024
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -4135,7 +4146,7 @@
4135
4146
  }
4136
4147
  callbacks.push(callback);
4137
4148
  }
4138
- // version: 1.264.0-707402a81
4149
+ // version: 1.266.0-2ee9b6853
4139
4150
 
4140
4151
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4141
4152
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15643,7 +15654,7 @@
15643
15654
  }
15644
15655
  return superResult;
15645
15656
  }
15646
- // version: 1.264.0-707402a81
15657
+ // version: 1.266.0-2ee9b6853
15647
15658
 
15648
15659
  function unwrap(data) {
15649
15660
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16568,7 +16579,7 @@
16568
16579
  const { apiFamily, name } = metadata;
16569
16580
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16570
16581
  }
16571
- // version: 1.264.0-707402a81
16582
+ // version: 1.266.0-2ee9b6853
16572
16583
 
16573
16584
  /**
16574
16585
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16667,7 +16678,7 @@
16667
16678
  TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
16668
16679
  TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
16669
16680
  })(TypeCheckShapes || (TypeCheckShapes = {}));
16670
- // engine version: 0.154.4-7ff4ac46
16681
+ // engine version: 0.154.6-a3a5150a
16671
16682
 
16672
16683
  const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
16673
16684
 
@@ -20299,8 +20310,7 @@
20299
20310
  const resolved = link.follow();
20300
20311
  if (isGraphNode(resolved) &&
20301
20312
  resolved.isScalar('value') &&
20302
- path.length > 0 &&
20303
- // TODO [W-14082782]: temporary fix
20313
+ path.length > 0 && // TODO [W-14082782]: temporary fix
20304
20314
  !isFrozen$2(link.data)) {
20305
20315
  const linkState = link.linkData();
20306
20316
  const fields = linkState === undefined ? [] : linkState.fields;
@@ -23786,7 +23796,15 @@
23786
23796
  // eslint-disable-next-line @salesforce/lds/no-error-in-production
23787
23797
  throw new Error('how did MRU config get here?');
23788
23798
  }
23799
+ let releaseKeys = () => { };
23789
23800
  if (snapshot) {
23801
+ if (snapshot.state !== 'Error') {
23802
+ const { recordId, seenRecords } = snapshot;
23803
+ const snapshotRetainedIds = seenRecords === undefined ? [recordId] : [recordId, ...seenRecords.keysAsArray()];
23804
+ const snapshotKeys = [];
23805
+ snapshotRetainedIds.forEach((key) => snapshotKeys.push(key));
23806
+ releaseKeys = luvio.storeRetain(snapshotKeys);
23807
+ }
23790
23808
  const paginationKey = paginationKeyBuilder(luvio, {
23791
23809
  listViewId: listInfo.eTag,
23792
23810
  searchTerm: null,
@@ -23826,11 +23844,14 @@
23826
23844
  request.queryParams.pageToken = pageToken;
23827
23845
  }
23828
23846
  }
23829
- return request;
23847
+ return {
23848
+ request: request,
23849
+ releaseKeys: releaseKeys,
23850
+ };
23830
23851
  }
23831
23852
  // Only call this function if you are certain the list view hasn't changed (ie:
23832
23853
  // the listInfoEtag in the body is the same as the cached listInfo.eTag)
23833
- function onResourceSuccess_getListRecords(luvio, context, config, listInfo, response) {
23854
+ function onResourceSuccess_getListRecords(luvio, context, config, listInfo, response, releaseKeys) {
23834
23855
  const { body } = response;
23835
23856
  const { listInfoETag } = body;
23836
23857
  const fields = listFields(luvio, config, listInfo).processRecords(body.records);
@@ -23842,18 +23863,20 @@
23842
23863
  listViewApiName: listInfo.listReference.listViewApiName,
23843
23864
  }), ingest$K$1, body);
23844
23865
  const snapshot = buildCachedSnapshot$7(luvio, luvio.storeLookup.bind(luvio), context, config, listInfo, fields);
23866
+ releaseKeys();
23845
23867
  return luvio.storeBroadcast().then(() => snapshot);
23846
23868
  }
23847
- function onResourceError_getListRecords(luvio, context, config, listInfo, err) {
23869
+ function onResourceError_getListRecords(luvio, context, config, listInfo, err, releaseKeys) {
23848
23870
  const errorSnapshot = luvio.errorSnapshot(err);
23849
23871
  luvio.storeIngestError(keyBuilder$1Y(luvio, {
23850
23872
  ...listInfo.listReference,
23851
23873
  sortBy: getSortBy(config, context),
23852
23874
  }), errorSnapshot);
23875
+ releaseKeys();
23853
23876
  return luvio.storeBroadcast().then(() => errorSnapshot);
23854
23877
  }
23855
23878
  function buildNetworkSnapshot_getListRecords(luvio, context, config, listInfo, dispatchOptions, snapshot) {
23856
- const request = prepareRequest_getListRecords(luvio, context, config, listInfo, snapshot);
23879
+ const { request, releaseKeys } = prepareRequest_getListRecords(luvio, context, config, listInfo, snapshot);
23857
23880
  return luvio.dispatchResourceRequest(request).then((response) => {
23858
23881
  const { body } = response;
23859
23882
  // fall back to list-ui if list view has changed
@@ -23867,14 +23890,14 @@
23867
23890
  body.sortBy = sortBy.split(',');
23868
23891
  }
23869
23892
  // else ingest
23870
- return luvio.handleSuccessResponse(() => onResourceSuccess_getListRecords(luvio, context, config, listInfo, response), () => {
23893
+ return luvio.handleSuccessResponse(() => onResourceSuccess_getListRecords(luvio, context, config, listInfo, response, releaseKeys), () => {
23871
23894
  const cache = new StoreKeyMap();
23872
23895
  getTypeCacheKeys$R$1(cache, luvio, body);
23873
23896
  return cache;
23874
23897
  });
23875
23898
  }, (err) => {
23876
23899
  return luvio.handleErrorResponse(() => {
23877
- return onResourceError_getListRecords(luvio, context, config, listInfo, err);
23900
+ return onResourceError_getListRecords(luvio, context, config, listInfo, err, releaseKeys);
23878
23901
  });
23879
23902
  });
23880
23903
  }
@@ -27399,7 +27422,7 @@
27399
27422
  return select$1n();
27400
27423
  }
27401
27424
  function keyBuilder$1v(luvio, params) {
27402
- return keyPrefix$2 + '::FlexipageFormulaActivationRepresentation:(' + 'application:' + params.queryParams.application + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'actionFeature:' + params.urlParams.actionFeature + ')';
27425
+ return keyPrefix$2 + '::FlexipageFormulaActivationRepresentation:(' + 'application:' + params.queryParams.application + ',' + 'objectApiNames:' + params.queryParams.objectApiNames + ',' + 'actionFeature:' + params.urlParams.actionFeature + ')';
27403
27426
  }
27404
27427
  function getResponseCacheKeys$R(storeKeyMap, luvio, resourceParams, response) {
27405
27428
  getTypeCacheKeys$B$1(storeKeyMap, luvio, response, () => keyBuilder$1v(luvio, resourceParams));
@@ -27446,7 +27469,7 @@
27446
27469
  const getFlexipageFormulaOverrides_ConfigPropertyMetadata = [
27447
27470
  generateParamConfigMetadata$2('actionFeature', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1$1),
27448
27471
  generateParamConfigMetadata$2('application', false, 1 /* QueryParameter */, 0 /* String */, false, getObjectApiName$1$1),
27449
- generateParamConfigMetadata$2('objectApiName', false, 1 /* QueryParameter */, 0 /* String */, false, getObjectApiName$1$1),
27472
+ generateParamConfigMetadata$2('objectApiNames', false, 1 /* QueryParameter */, 0 /* String */, true, toSortedStringArray),
27450
27473
  ];
27451
27474
  const getFlexipageFormulaOverrides_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$R, getFlexipageFormulaOverrides_ConfigPropertyMetadata);
27452
27475
  const createResourceParams$P = /*#__PURE__*/ createResourceParams$11(getFlexipageFormulaOverrides_ConfigPropertyMetadata);
@@ -42871,7 +42894,7 @@
42871
42894
  getListObjectInfo: createWireAdapterConstructor(luvio, getListObjectInfo_ldsAdapter, getListObjectInfoMetadata),
42872
42895
  getListPreferences: createWireAdapterConstructor(luvio, getListPreferences_ldsAdapter, getListPreferencesMetadata),
42873
42896
  getListRecordsByName: createWireAdapterConstructor(luvio, getListRecordsByName_ldsAdapter, getListRecordsByNameMetadata),
42874
- getListUi: createWireAdapterConstructor(luvio, getListUi_ldsAdapter, getListUiMetadata),
42897
+ getListUi: createInfiniteScrollingWireAdapterConstructor(luvio, getListUi_ldsAdapter, getListUiMetadata),
42875
42898
  getLookupActions: createWireAdapterConstructor(luvio, getLookupActions_ldsAdapter, getLookupActionsMetadata),
42876
42899
  getLookupMetadata: createWireAdapterConstructor(luvio, getLookupMetadata_ldsAdapter, getLookupMetadataMetadata),
42877
42900
  getLookupRecords: createWireAdapterConstructor(luvio, getLookupRecords_ldsAdapter, getLookupRecordsMetadata),
@@ -43124,7 +43147,7 @@
43124
43147
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
43125
43148
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
43126
43149
  });
43127
- // version: 1.264.0-76ebb1758
43150
+ // version: 1.266.0-081d1ca4f
43128
43151
 
43129
43152
  var ldsIdempotencyWriteDisabled = {
43130
43153
  isOpen: function (e) {
@@ -61002,7 +61025,7 @@
61002
61025
  id: '@salesforce/lds-network-adapter',
61003
61026
  instrument: instrument$2,
61004
61027
  });
61005
- // version: 1.264.0-707402a81
61028
+ // version: 1.266.0-2ee9b6853
61006
61029
 
61007
61030
  const { create: create$3, keys: keys$3 } = Object;
61008
61031
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -79331,7 +79354,7 @@
79331
79354
  configuration: { ...configurationForGraphQLAdapters$1 },
79332
79355
  instrument: instrument$1,
79333
79356
  });
79334
- // version: 1.264.0-76ebb1758
79357
+ // version: 1.266.0-081d1ca4f
79335
79358
 
79336
79359
  // On core the unstable adapters are re-exported with different names,
79337
79360
  // we want to match them here.
@@ -81582,7 +81605,7 @@
81582
81605
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
81583
81606
  graphQLImperative = ldsAdapter;
81584
81607
  });
81585
- // version: 1.264.0-76ebb1758
81608
+ // version: 1.266.0-081d1ca4f
81586
81609
 
81587
81610
  var gqlApi = /*#__PURE__*/Object.freeze({
81588
81611
  __proto__: null,
@@ -82280,7 +82303,7 @@
82280
82303
  function register(r) {
82281
82304
  callbacks$1.forEach((callback) => callback(r));
82282
82305
  }
82283
- // version: 1.264.0-707402a81
82306
+ // version: 1.266.0-2ee9b6853
82284
82307
 
82285
82308
  /**
82286
82309
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -87203,4 +87226,4 @@
87203
87226
  exports.subscribeToAdapter = subscribeToAdapter;
87204
87227
 
87205
87228
  }));
87206
- // version: 1.264.0-707402a81
87229
+ // version: 1.266.0-2ee9b6853
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.264.0",
3
+ "version": "1.266.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.264.0",
39
- "@salesforce/lds-adapters-uiapi": "^1.264.0",
40
- "@salesforce/lds-default-luvio": "^1.264.0",
41
- "@salesforce/lds-drafts": "^1.264.0",
42
- "@salesforce/lds-graphql-parser": "^1.264.0",
43
- "@salesforce/lds-luvio-engine": "^1.264.0",
44
- "@salesforce/lds-priming": "^1.264.0",
45
- "@salesforce/lds-runtime-mobile": "^1.264.0",
46
- "@salesforce/nimbus-plugin-lds": "^1.264.0",
38
+ "@salesforce/lds-adapters-graphql": "^1.266.0",
39
+ "@salesforce/lds-adapters-uiapi": "^1.266.0",
40
+ "@salesforce/lds-default-luvio": "^1.266.0",
41
+ "@salesforce/lds-drafts": "^1.266.0",
42
+ "@salesforce/lds-graphql-parser": "^1.266.0",
43
+ "@salesforce/lds-luvio-engine": "^1.266.0",
44
+ "@salesforce/lds-priming": "^1.266.0",
45
+ "@salesforce/lds-runtime-mobile": "^1.266.0",
46
+ "@salesforce/nimbus-plugin-lds": "^1.266.0",
47
47
  "ajv": "^8.11.0",
48
48
  "glob": "^7.1.5",
49
49
  "nimbus-types": "^2.0.0-alpha1",