@salesforce/lds-worker-api 1.326.0 → 1.328.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.
@@ -446,34 +446,42 @@ function invokeAdapterWithMetadata(adapterId, config, metadata, onResponse, nati
446
446
  invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponse, nativeAdapterRequestContext);
447
447
  }
448
448
  else {
449
- invokeDmlAdapter(adapter, parse(config), async (responseValue) => {
450
- const draftIds = draftIdsForResponseValue(responseValue);
451
- if (responseValue.error === undefined &&
452
- draftIds !== undefined &&
453
- draftIds.length > 0) {
454
- const draftId = draftIds[draftIds.length - 1];
455
- const managerState = await draftManager.getQueue();
456
- const draftItem = managerState.items.find((x) => x.id === draftId);
457
- if (draftItem === undefined) {
458
- // draftItem no longer exists, might have already been uploaded
459
- ldsMobileInstrumentation$1.log('tried to set metadata on draft item that no longer exists');
460
- return onResponse(responseValue);
461
- }
462
- draftManager
463
- .setMetadata(draftId, { ...draftItem.metadata, ...metadata })
464
- .then(() => {
465
- onResponse(responseValue);
466
- })
467
- .catch((error) => {
468
- onResponse(convertErrorIntoNativeFetchError(error, 'Unknown error setting metadata'));
469
- });
470
- }
471
- else {
472
- let response = responseValue;
473
- response.error = createNativeFetchErrorResponse(NO_DRAFT_CREATED_MESSAGE);
474
- onResponse(response);
475
- }
476
- }, nativeAdapterRequestContext);
449
+ draftManager.stopQueueWhileRunning(() => {
450
+ return new Promise((resolve) => {
451
+ invokeDmlAdapter(adapter, parse(config), async (responseValue) => {
452
+ const draftIds = draftIdsForResponseValue(responseValue);
453
+ if (responseValue.error === undefined &&
454
+ draftIds !== undefined &&
455
+ draftIds.length > 0) {
456
+ const draftId = draftIds[draftIds.length - 1];
457
+ const managerState = await draftManager.getQueue();
458
+ const draftItem = managerState.items.find((x) => x.id === draftId);
459
+ if (draftItem === undefined) {
460
+ // draftItem no longer exists, might have already been uploaded
461
+ ldsMobileInstrumentation$1.log('tried to set metadata on draft item that no longer exists');
462
+ resolve(responseValue);
463
+ return;
464
+ }
465
+ draftManager
466
+ .setMetadata(draftId, { ...draftItem.metadata, ...metadata })
467
+ .then(() => {
468
+ resolve(responseValue);
469
+ })
470
+ .catch((error) => {
471
+ resolve(convertErrorIntoNativeFetchError(error, 'Unknown error setting metadata'));
472
+ });
473
+ }
474
+ else {
475
+ let response = responseValue;
476
+ response.error =
477
+ createNativeFetchErrorResponse(NO_DRAFT_CREATED_MESSAGE);
478
+ resolve(response);
479
+ }
480
+ }, nativeAdapterRequestContext);
481
+ }).then((callbackValue) => {
482
+ onResponse(callbackValue);
483
+ });
484
+ });
477
485
  }
478
486
  }
479
487
  /*
@@ -1098,4 +1106,4 @@ if (process.env.NODE_ENV !== 'production') {
1098
1106
  }
1099
1107
 
1100
1108
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1101
- // version: 1.326.0-562167ef21
1109
+ // version: 1.328.0-f3d79bc783
@@ -71,7 +71,7 @@ function isUnfulfilledSnapshot$6(snapshot) {
71
71
  function isPendingSnapshot$1(snapshot) {
72
72
  return snapshot.state === SnapshotState$3.Pending;
73
73
  }
74
- function createErrorSnapshot$1(error, refresh) {
74
+ function createErrorSnapshot(error, refresh) {
75
75
  deepFreeze(error);
76
76
  const snap = {
77
77
  error,
@@ -2099,7 +2099,7 @@ const onlyIfCachedImplementation = function (args) {
2099
2099
  return snapshot;
2100
2100
  }
2101
2101
  const refresh = snapshot !== undefined ? snapshot.refresh : undefined;
2102
- return createErrorSnapshot$1({
2102
+ return createErrorSnapshot({
2103
2103
  body: undefined,
2104
2104
  headers: {},
2105
2105
  ok: false,
@@ -3753,7 +3753,7 @@ class Luvio {
3753
3753
  return this.environment.createSnapshot(selector, refresh);
3754
3754
  }
3755
3755
  errorSnapshot(error, refresh) {
3756
- return createErrorSnapshot$1(error, refresh);
3756
+ return createErrorSnapshot(error, refresh);
3757
3757
  }
3758
3758
  dispatchResourceRequest(resourceRequest, context) {
3759
3759
  let mergedResourceRequest = resourceRequest;
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
4265
4265
  }
4266
4266
  callbacks.push(callback);
4267
4267
  }
4268
- // version: 1.326.0-562167ef21
4268
+ // version: 1.328.0-f3d79bc783
4269
4269
 
4270
4270
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4271
4271
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5213,7 +5213,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5213
5213
  const { apiFamily, name } = metadata;
5214
5214
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5215
5215
  }
5216
- // version: 1.326.0-562167ef21
5216
+ // version: 1.328.0-f3d79bc783
5217
5217
 
5218
5218
  /**
5219
5219
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -33851,25 +33851,7 @@ withDefaultLuvio((luvio) => {
33851
33851
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
33852
33852
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
33853
33853
  });
33854
- // version: 1.326.0-c4e3f37efd
33855
-
33856
- var ldsIdempotencyWriteDisabled = {
33857
- isOpen: function (e) {
33858
- return e.fallback;
33859
- },
33860
- hasError: function () {
33861
- return !0;
33862
- },
33863
- };
33864
-
33865
- var ldsBackdatingEnabled = {
33866
- isOpen: function (e_) {
33867
- return true;
33868
- },
33869
- hasError: function () {
33870
- return !0;
33871
- },
33872
- };
33854
+ // version: 1.328.0-e51e28f7fc
33873
33855
 
33874
33856
  /**
33875
33857
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -45374,15 +45356,6 @@ const getInstrumentation = () => {
45374
45356
  return mockInstrumentation;
45375
45357
  };
45376
45358
 
45377
- var ldsUseShortUrlGate = {
45378
- isOpen: function (e) {
45379
- return e.fallback;
45380
- },
45381
- hasError: function () {
45382
- return !0;
45383
- },
45384
- };
45385
-
45386
45359
  var ldsAdapterO11yLoggingGate = {
45387
45360
  isOpen: function (e) {
45388
45361
  return e.fallback;
@@ -45441,15 +45414,6 @@ function formattingOptions(pattern) {
45441
45414
  return pattern;
45442
45415
  }
45443
45416
 
45444
- var eagerEvalStaleWhileRevalidate = {
45445
- isOpen: function (e) {
45446
- return e.fallback;
45447
- },
45448
- hasError: function () {
45449
- return !0;
45450
- },
45451
- };
45452
-
45453
45417
  var ldsPrimingGraphqlBatch = {
45454
45418
  isOpen: function (e) {
45455
45419
  return e.fallback;
@@ -45468,15 +45432,6 @@ var lmrPrimingUseSoql = {
45468
45432
  },
45469
45433
  };
45470
45434
 
45471
- var ldsMetadataRefreshEnabled = {
45472
- isOpen: function (_e) {
45473
- return true;
45474
- },
45475
- hasError: function () {
45476
- return !0;
45477
- },
45478
- };
45479
-
45480
45435
  var graphqlL2AdapterGate = {
45481
45436
  isOpen: function (e) {
45482
45437
  return e.fallback;
@@ -45525,7 +45480,7 @@ function instrument$2(newInstrumentation) {
45525
45480
  const LDS_RECORDS_AGGREGATE_UI = 'LDS_Records_AggregateUi';
45526
45481
  // Boundary which represents the limit that we start chunking at,
45527
45482
  // determined by comma separated string length of fields
45528
- const MAX_STRING_LENGTH_PER_CHUNK$1 = 10000;
45483
+ const MAX_STRING_LENGTH_PER_CHUNK = 10000;
45529
45484
  // UIAPI limit
45530
45485
  const MAX_AGGREGATE_UI_CHUNK_LIMIT = 50;
45531
45486
  function createOkResponse$1(body) {
@@ -45629,7 +45584,7 @@ function dispatchSplitRecordAggregateUiAction(recordId, networkAdapter, resource
45629
45584
  });
45630
45585
  }
45631
45586
  function shouldUseAggregateUiForGetRecord(fieldsArray, optionalFieldsArray) {
45632
- return fieldsArray.length + optionalFieldsArray.length >= MAX_STRING_LENGTH_PER_CHUNK$1;
45587
+ return fieldsArray.length + optionalFieldsArray.length >= MAX_STRING_LENGTH_PER_CHUNK;
45633
45588
  }
45634
45589
  function buildAggregateUiUrl$1(params, resourceRequest) {
45635
45590
  const { fields, optionalFields } = params;
@@ -45648,7 +45603,7 @@ function buildGetRecordByFieldsCompositeRequest(resourceRequest, recordsComposit
45648
45603
  const { fieldsArray, optionalFieldsArray, fieldsLength, optionalFieldsLength } = recordsCompositeRequest;
45649
45604
  // Formula: # of fields per chunk = floor(avg field length / max length per chunk)
45650
45605
  const averageFieldStringLength = Math.floor((fieldsLength + optionalFieldsLength) / (fieldsArray.length + optionalFieldsArray.length));
45651
- const fieldsPerChunk = Math.floor(MAX_STRING_LENGTH_PER_CHUNK$1 / averageFieldStringLength);
45606
+ const fieldsPerChunk = Math.floor(MAX_STRING_LENGTH_PER_CHUNK / averageFieldStringLength);
45652
45607
  const optionalFieldsChunks = [];
45653
45608
  // Do the same for optional tracked fields
45654
45609
  for (let i = 0, j = optionalFieldsArray.length; i < j; i += fieldsPerChunk) {
@@ -47568,6 +47523,12 @@ class DurableDraftQueue {
47568
47523
  draftCount: this.draftStore.getCount(),
47569
47524
  });
47570
47525
  }
47526
+ stopQueueWhileRunning(action) {
47527
+ this.stopQueueManually(true);
47528
+ return action().finally(() => {
47529
+ this.startQueueSafe();
47530
+ });
47531
+ }
47571
47532
  /**
47572
47533
  * Used to stop the queue within DraftQueue without user interaction
47573
47534
  */
@@ -48344,6 +48305,14 @@ class DraftManager {
48344
48305
  stopQueue() {
48345
48306
  return this.draftQueue.stopQueue();
48346
48307
  }
48308
+ /**
48309
+ * Stops the draft queue manually without notifying the user and then runs the passed action.
48310
+ * After the action is completed it will safely start the queue if the user had set it to be
48311
+ * started.
48312
+ */
48313
+ stopQueueWhileRunning(action) {
48314
+ return this.draftQueue.stopQueueWhileRunning(action);
48315
+ }
48347
48316
  /**
48348
48317
  * Subscribes the listener to changes to the draft queue.
48349
48318
  *
@@ -79261,11 +79230,6 @@ class AbstractResourceRequestActionHandler {
79261
79230
  this.recordService = recordService;
79262
79231
  // determined by Server setup.
79263
79232
  this.isIdempotencySupported = true;
79264
- // idempotency write flag set by lds
79265
- this.isLdsIdempotencyWriteDisabled = ldsIdempotencyWriteDisabled.isOpen({
79266
- fallback: false,
79267
- });
79268
- this.isBackdatingEnabled = ldsBackdatingEnabled.isOpen({ fallback: false });
79269
79233
  }
79270
79234
  enqueue(data) {
79271
79235
  return this.draftQueue.enqueue(this.handlerId, data);
@@ -79364,8 +79328,7 @@ class AbstractResourceRequestActionHandler {
79364
79328
  updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
79365
79329
  actionDataChanged = true;
79366
79330
  }
79367
- if (this.isBackdatingEnabled &&
79368
- response.status === HttpStatusCode$1.BadRequest &&
79331
+ if (response.status === HttpStatusCode$1.BadRequest &&
79369
79332
  this.isBackdatingError(response.body, action)) {
79370
79333
  updatedAction.timestamp = Date.now();
79371
79334
  updatedAction.data.body.fields = {
@@ -79640,7 +79603,7 @@ class AbstractResourceRequestActionHandler {
79640
79603
  return [action.targetId];
79641
79604
  }
79642
79605
  hasIdempotencySupport() {
79643
- return this.isIdempotencySupported && !this.isLdsIdempotencyWriteDisabled;
79606
+ return this.isIdempotencySupported;
79644
79607
  }
79645
79608
  async ingestResponses(responses, action) {
79646
79609
  const luvio = this.getLuvio();
@@ -79768,8 +79731,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
79768
79731
  }
79769
79732
  // handles backdating
79770
79733
  const objectInfo = await this.objectInfoService.getObjectInfo(targetApiName);
79771
- if (this.isBackdatingEnabled &&
79772
- pendingAction.data &&
79734
+ if (pendingAction.data &&
79773
79735
  pendingAction.data.method !== 'delete' && //'delete' action does not have fields
79774
79736
  objectInfo) {
79775
79737
  const appendedFields = this.getBackdatingFields(objectInfo, resolvedRequest.method, pendingAction);
@@ -80480,7 +80442,7 @@ class ContentDocumentCompositeRepresentationActionHandler extends AbstractResour
80480
80442
  if (objectInfo === undefined) {
80481
80443
  throw Error(`Could not generate draft. Object info is missing`);
80482
80444
  }
80483
- if (this.isBackdatingEnabled && pendingAction.data) {
80445
+ if (pendingAction.data) {
80484
80446
  pendingAction.data.body.namedEntries = [
80485
80447
  ...pendingAction.data.body.namedEntries,
80486
80448
  ...this.getBackdatingNameEntries(objectInfo, pendingAction.timestamp),
@@ -86732,18 +86694,6 @@ function createSeenRecords(ids, currentSnapshot) {
86732
86694
  }
86733
86695
  return seenRecords;
86734
86696
  }
86735
- function createErrorSnapshot(result, snapshot) {
86736
- return {
86737
- ...snapshot,
86738
- data: undefined,
86739
- state: 'Error',
86740
- error: {
86741
- body: {
86742
- message: result.errors,
86743
- },
86744
- },
86745
- };
86746
- }
86747
86697
  function createLocalEvalSnapshot(data, seenRecords, recordId, rebuildWithLocalEval, refresh) {
86748
86698
  return {
86749
86699
  refresh,
@@ -87261,7 +87211,18 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
87261
87211
  // currently by design if there are any graphql errors we return an ErrorSnapshot
87262
87212
  // partial results are not supported at this time
87263
87213
  if (gqlResult.errors !== undefined && gqlResult.errors.length > 0) {
87264
- return createErrorSnapshot(gqlResult, nonEvaluatedSnapshot);
87214
+ const errors = gqlResult.errors || [];
87215
+ let responseErrors = errors.map((e) => {
87216
+ return { message: e instanceof Error ? e.message : String(e) };
87217
+ });
87218
+ return {
87219
+ data: undefined,
87220
+ state: 'Error',
87221
+ error: {
87222
+ errorType: 'adapterError',
87223
+ error: responseErrors,
87224
+ },
87225
+ };
87265
87226
  }
87266
87227
  // if the non-eval'ed snapshot was an error then we return a synthetic
87267
87228
  // Fulfilled snapshot (this only happens in this code path if
@@ -87804,7 +87765,7 @@ class ScopedFieldsCollection {
87804
87765
  * which there max fields list length will not exceeded the specified maxLength
87805
87766
  * @param maxLength
87806
87767
  */
87807
- split(maxLength = MAX_STRING_LENGTH_PER_CHUNK) {
87768
+ split(maxLength = MAX_URL_LENGTH) {
87808
87769
  const size = this.size();
87809
87770
  if (size > maxLength) {
87810
87771
  const fieldsArray = [];
@@ -87891,7 +87852,6 @@ class ScopedFieldsCollection {
87891
87852
  }
87892
87853
  }
87893
87854
 
87894
- const MAX_STRING_LENGTH_PER_CHUNK = 10000;
87895
87855
  //Salesforce/Akamai cdn uri max size is 8898 bytes, short than normal. Per
87896
87856
  //https://help.salesforce.com/s/articleView?id=sf.community_builder_cdn_considerations.htm&type=5
87897
87857
  //Due to we don't know the domain ResourceRequest, here we give 8000
@@ -88126,22 +88086,18 @@ function arrayOrEmpty(array) {
88126
88086
  return array !== undefined && isArray$4(array) ? array : [];
88127
88087
  }
88128
88088
  /**
88129
- * Calculate the max lengh per chunk.
88130
- * If useShortUrlGate is open, allow max chunk size is MAX_URL_LENGTH - the url without fields and optional fields in url.
88131
- * Otherwise MAX_STRING_LENGTH_PER_CHUNK
88089
+ * Calculate the max length per chunk.
88090
+ * Max chunk size is MAX_URL_LENGTH - the url without fields and optional fields.
88091
+ *
88132
88092
  * @param resourceRequest
88133
88093
  * @returns
88134
88094
  */
88135
88095
  function getMaxLengthPerChunkAllowed(request) {
88136
- if (!ldsUseShortUrlGate.isOpen({ fallback: false })) {
88137
- return MAX_STRING_LENGTH_PER_CHUNK;
88138
- }
88139
88096
  // Too much work to get exact length of the final url, so use stringified json to get the rough length.
88140
88097
  const roughUrlLengthWithoutFieldsAndOptionFields = request.basePath.length +
88141
88098
  request.baseUri.length +
88142
88099
  (request.urlParams ? stringify$1(request.urlParams).length : 0) +
88143
88100
  stringify$1({ ...request.queryParams, fields: {}, optionalFields: {} }).length;
88144
- // MAX_URL_LENGTH - full lenght without fields, optionalFields
88145
88101
  return MAX_URL_LENGTH - roughUrlLengthWithoutFieldsAndOptionFields;
88146
88102
  }
88147
88103
  // we don't have access to the host so we cannot calculate the exact length of the url
@@ -88441,6 +88397,9 @@ class NimbusDraftQueue {
88441
88397
  stopQueue() {
88442
88398
  return Promise.reject(new Error('Cannot call stopQueue from the NimbusDraftQueue'));
88443
88399
  }
88400
+ stopQueueWhileRunning(_action) {
88401
+ return Promise.reject(new Error('Cannot call stopQueueWhileRunning from the NimbusDraftQueue'));
88402
+ }
88444
88403
  replaceAction(_actionId, _withActionId) {
88445
88404
  return Promise.reject(new Error('Cannot call replaceAction from the NimbusDraftQueue'));
88446
88405
  }
@@ -89715,13 +89674,7 @@ function makeEnvironmentGraphqlAware(environment) {
89715
89674
  cachePolicy.basePolicy.type === 'stale-while-revalidate') {
89716
89675
  localBuildCachedSnapshot = hoistUnfulfilledToStale;
89717
89676
  }
89718
- if (eagerEvalStaleWhileRevalidate.isOpen({ fallback: false }) &&
89719
- cachePolicy &&
89720
- cachePolicy.type === 'stale-while-revalidate' &&
89721
- cachePolicy.staleDurationSeconds >= Number.MAX_SAFE_INTEGER) {
89722
- localBuildCachedSnapshot = hoistUnfulfilledToStale;
89723
- }
89724
- if ((cachePolicy === undefined || cachePolicy === null)) {
89677
+ if (cachePolicy === undefined || cachePolicy === null) {
89725
89678
  localBuildCachedSnapshot = hoistUnfulfilledToStale;
89726
89679
  }
89727
89680
  return environment.applyCachePolicy(luvio, adapterRequestContext, buildSnapshotContext, localBuildCachedSnapshot, buildNetworkSnapshot);
@@ -92594,7 +92547,7 @@ function getRuntime() {
92594
92547
  const gqlEnv = makeEnvironmentGraphqlAware(baseEnv);
92595
92548
  const durableEnv = makeDurable(gqlEnv, {
92596
92549
  durableStore: lazyDurableStore,
92597
- enableDurableMetadataRefresh: ldsMetadataRefreshEnabled.isOpen({ fallback: false }),
92550
+ enableDurableMetadataRefresh: true,
92598
92551
  // disable luvio deep freeze in headless environments
92599
92552
  disableDeepFreeze: typeof window === 'undefined',
92600
92553
  shouldFlush,
@@ -92712,7 +92665,7 @@ register$1({
92712
92665
  id: '@salesforce/lds-network-adapter',
92713
92666
  instrument: instrument$2,
92714
92667
  });
92715
- // version: 1.326.0-562167ef21
92668
+ // version: 1.328.0-f3d79bc783
92716
92669
 
92717
92670
  const { create: create$2, keys: keys$2 } = Object;
92718
92671
  const { stringify, parse } = JSON;
@@ -115279,7 +115232,7 @@ register$1({
115279
115232
  configuration: { ...configurationForGraphQLAdapters$1 },
115280
115233
  instrument: instrument$1,
115281
115234
  });
115282
- // version: 1.326.0-c4e3f37efd
115235
+ // version: 1.328.0-e51e28f7fc
115283
115236
 
115284
115237
  // On core the unstable adapters are re-exported with different names,
115285
115238
  // we want to match them here.
@@ -115431,7 +115384,7 @@ withDefaultLuvio((luvio) => {
115431
115384
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
115432
115385
  graphQLImperative = ldsAdapter;
115433
115386
  });
115434
- // version: 1.326.0-c4e3f37efd
115387
+ // version: 1.328.0-e51e28f7fc
115435
115388
 
115436
115389
  var gqlApi = /*#__PURE__*/Object.freeze({
115437
115390
  __proto__: null,
@@ -115841,34 +115794,42 @@ function invokeAdapterWithMetadata(adapterId, config, metadata, onResponse, nati
115841
115794
  invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponse, nativeAdapterRequestContext);
115842
115795
  }
115843
115796
  else {
115844
- invokeDmlAdapter(adapter, parse(config), async (responseValue) => {
115845
- const draftIds = draftIdsForResponseValue(responseValue);
115846
- if (responseValue.error === undefined &&
115847
- draftIds !== undefined &&
115848
- draftIds.length > 0) {
115849
- const draftId = draftIds[draftIds.length - 1];
115850
- const managerState = await draftManager.getQueue();
115851
- const draftItem = managerState.items.find((x) => x.id === draftId);
115852
- if (draftItem === undefined) {
115853
- // draftItem no longer exists, might have already been uploaded
115854
- ldsMobileInstrumentation$1.log('tried to set metadata on draft item that no longer exists');
115855
- return onResponse(responseValue);
115856
- }
115857
- draftManager
115858
- .setMetadata(draftId, { ...draftItem.metadata, ...metadata })
115859
- .then(() => {
115860
- onResponse(responseValue);
115861
- })
115862
- .catch((error) => {
115863
- onResponse(convertErrorIntoNativeFetchError(error, 'Unknown error setting metadata'));
115864
- });
115865
- }
115866
- else {
115867
- let response = responseValue;
115868
- response.error = createNativeFetchErrorResponse(NO_DRAFT_CREATED_MESSAGE);
115869
- onResponse(response);
115870
- }
115871
- }, nativeAdapterRequestContext);
115797
+ draftManager.stopQueueWhileRunning(() => {
115798
+ return new Promise((resolve) => {
115799
+ invokeDmlAdapter(adapter, parse(config), async (responseValue) => {
115800
+ const draftIds = draftIdsForResponseValue(responseValue);
115801
+ if (responseValue.error === undefined &&
115802
+ draftIds !== undefined &&
115803
+ draftIds.length > 0) {
115804
+ const draftId = draftIds[draftIds.length - 1];
115805
+ const managerState = await draftManager.getQueue();
115806
+ const draftItem = managerState.items.find((x) => x.id === draftId);
115807
+ if (draftItem === undefined) {
115808
+ // draftItem no longer exists, might have already been uploaded
115809
+ ldsMobileInstrumentation$1.log('tried to set metadata on draft item that no longer exists');
115810
+ resolve(responseValue);
115811
+ return;
115812
+ }
115813
+ draftManager
115814
+ .setMetadata(draftId, { ...draftItem.metadata, ...metadata })
115815
+ .then(() => {
115816
+ resolve(responseValue);
115817
+ })
115818
+ .catch((error) => {
115819
+ resolve(convertErrorIntoNativeFetchError(error, 'Unknown error setting metadata'));
115820
+ });
115821
+ }
115822
+ else {
115823
+ let response = responseValue;
115824
+ response.error =
115825
+ createNativeFetchErrorResponse(NO_DRAFT_CREATED_MESSAGE);
115826
+ resolve(response);
115827
+ }
115828
+ }, nativeAdapterRequestContext);
115829
+ }).then((callbackValue) => {
115830
+ onResponse(callbackValue);
115831
+ });
115832
+ });
115872
115833
  }
115873
115834
  }
115874
115835
  /*
@@ -116193,7 +116154,7 @@ const callbacks$1 = [];
116193
116154
  function register(r) {
116194
116155
  callbacks$1.forEach((callback) => callback(r));
116195
116156
  }
116196
- // version: 1.326.0-562167ef21
116157
+ // version: 1.328.0-f3d79bc783
116197
116158
 
116198
116159
  /**
116199
116160
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -117256,4 +117217,4 @@ const { luvio } = getRuntime();
117256
117217
  setDefaultLuvio({ luvio });
117257
117218
 
117258
117219
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
117259
- // version: 1.326.0-562167ef21
117220
+ // version: 1.328.0-f3d79bc783
@@ -77,7 +77,7 @@
77
77
  function isPendingSnapshot$1(snapshot) {
78
78
  return snapshot.state === SnapshotState$3.Pending;
79
79
  }
80
- function createErrorSnapshot$1(error, refresh) {
80
+ function createErrorSnapshot(error, refresh) {
81
81
  deepFreeze(error);
82
82
  const snap = {
83
83
  error,
@@ -2105,7 +2105,7 @@
2105
2105
  return snapshot;
2106
2106
  }
2107
2107
  const refresh = snapshot !== undefined ? snapshot.refresh : undefined;
2108
- return createErrorSnapshot$1({
2108
+ return createErrorSnapshot({
2109
2109
  body: undefined,
2110
2110
  headers: {},
2111
2111
  ok: false,
@@ -3759,7 +3759,7 @@
3759
3759
  return this.environment.createSnapshot(selector, refresh);
3760
3760
  }
3761
3761
  errorSnapshot(error, refresh) {
3762
- return createErrorSnapshot$1(error, refresh);
3762
+ return createErrorSnapshot(error, refresh);
3763
3763
  }
3764
3764
  dispatchResourceRequest(resourceRequest, context) {
3765
3765
  let mergedResourceRequest = resourceRequest;
@@ -4271,7 +4271,7 @@
4271
4271
  }
4272
4272
  callbacks.push(callback);
4273
4273
  }
4274
- // version: 1.326.0-562167ef21
4274
+ // version: 1.328.0-f3d79bc783
4275
4275
 
4276
4276
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4277
4277
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5219,7 +5219,7 @@
5219
5219
  const { apiFamily, name } = metadata;
5220
5220
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5221
5221
  }
5222
- // version: 1.326.0-562167ef21
5222
+ // version: 1.328.0-f3d79bc783
5223
5223
 
5224
5224
  /**
5225
5225
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -33857,25 +33857,7 @@
33857
33857
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
33858
33858
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
33859
33859
  });
33860
- // version: 1.326.0-c4e3f37efd
33861
-
33862
- var ldsIdempotencyWriteDisabled = {
33863
- isOpen: function (e) {
33864
- return e.fallback;
33865
- },
33866
- hasError: function () {
33867
- return !0;
33868
- },
33869
- };
33870
-
33871
- var ldsBackdatingEnabled = {
33872
- isOpen: function (e_) {
33873
- return true;
33874
- },
33875
- hasError: function () {
33876
- return !0;
33877
- },
33878
- };
33860
+ // version: 1.328.0-e51e28f7fc
33879
33861
 
33880
33862
  /**
33881
33863
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -45380,15 +45362,6 @@
45380
45362
  return mockInstrumentation;
45381
45363
  };
45382
45364
 
45383
- var ldsUseShortUrlGate = {
45384
- isOpen: function (e) {
45385
- return e.fallback;
45386
- },
45387
- hasError: function () {
45388
- return !0;
45389
- },
45390
- };
45391
-
45392
45365
  var ldsAdapterO11yLoggingGate = {
45393
45366
  isOpen: function (e) {
45394
45367
  return e.fallback;
@@ -45447,15 +45420,6 @@
45447
45420
  return pattern;
45448
45421
  }
45449
45422
 
45450
- var eagerEvalStaleWhileRevalidate = {
45451
- isOpen: function (e) {
45452
- return e.fallback;
45453
- },
45454
- hasError: function () {
45455
- return !0;
45456
- },
45457
- };
45458
-
45459
45423
  var ldsPrimingGraphqlBatch = {
45460
45424
  isOpen: function (e) {
45461
45425
  return e.fallback;
@@ -45474,15 +45438,6 @@
45474
45438
  },
45475
45439
  };
45476
45440
 
45477
- var ldsMetadataRefreshEnabled = {
45478
- isOpen: function (_e) {
45479
- return true;
45480
- },
45481
- hasError: function () {
45482
- return !0;
45483
- },
45484
- };
45485
-
45486
45441
  var graphqlL2AdapterGate = {
45487
45442
  isOpen: function (e) {
45488
45443
  return e.fallback;
@@ -45531,7 +45486,7 @@
45531
45486
  const LDS_RECORDS_AGGREGATE_UI = 'LDS_Records_AggregateUi';
45532
45487
  // Boundary which represents the limit that we start chunking at,
45533
45488
  // determined by comma separated string length of fields
45534
- const MAX_STRING_LENGTH_PER_CHUNK$1 = 10000;
45489
+ const MAX_STRING_LENGTH_PER_CHUNK = 10000;
45535
45490
  // UIAPI limit
45536
45491
  const MAX_AGGREGATE_UI_CHUNK_LIMIT = 50;
45537
45492
  function createOkResponse$1(body) {
@@ -45635,7 +45590,7 @@
45635
45590
  });
45636
45591
  }
45637
45592
  function shouldUseAggregateUiForGetRecord(fieldsArray, optionalFieldsArray) {
45638
- return fieldsArray.length + optionalFieldsArray.length >= MAX_STRING_LENGTH_PER_CHUNK$1;
45593
+ return fieldsArray.length + optionalFieldsArray.length >= MAX_STRING_LENGTH_PER_CHUNK;
45639
45594
  }
45640
45595
  function buildAggregateUiUrl$1(params, resourceRequest) {
45641
45596
  const { fields, optionalFields } = params;
@@ -45654,7 +45609,7 @@
45654
45609
  const { fieldsArray, optionalFieldsArray, fieldsLength, optionalFieldsLength } = recordsCompositeRequest;
45655
45610
  // Formula: # of fields per chunk = floor(avg field length / max length per chunk)
45656
45611
  const averageFieldStringLength = Math.floor((fieldsLength + optionalFieldsLength) / (fieldsArray.length + optionalFieldsArray.length));
45657
- const fieldsPerChunk = Math.floor(MAX_STRING_LENGTH_PER_CHUNK$1 / averageFieldStringLength);
45612
+ const fieldsPerChunk = Math.floor(MAX_STRING_LENGTH_PER_CHUNK / averageFieldStringLength);
45658
45613
  const optionalFieldsChunks = [];
45659
45614
  // Do the same for optional tracked fields
45660
45615
  for (let i = 0, j = optionalFieldsArray.length; i < j; i += fieldsPerChunk) {
@@ -47574,6 +47529,12 @@
47574
47529
  draftCount: this.draftStore.getCount(),
47575
47530
  });
47576
47531
  }
47532
+ stopQueueWhileRunning(action) {
47533
+ this.stopQueueManually(true);
47534
+ return action().finally(() => {
47535
+ this.startQueueSafe();
47536
+ });
47537
+ }
47577
47538
  /**
47578
47539
  * Used to stop the queue within DraftQueue without user interaction
47579
47540
  */
@@ -48350,6 +48311,14 @@
48350
48311
  stopQueue() {
48351
48312
  return this.draftQueue.stopQueue();
48352
48313
  }
48314
+ /**
48315
+ * Stops the draft queue manually without notifying the user and then runs the passed action.
48316
+ * After the action is completed it will safely start the queue if the user had set it to be
48317
+ * started.
48318
+ */
48319
+ stopQueueWhileRunning(action) {
48320
+ return this.draftQueue.stopQueueWhileRunning(action);
48321
+ }
48353
48322
  /**
48354
48323
  * Subscribes the listener to changes to the draft queue.
48355
48324
  *
@@ -79267,11 +79236,6 @@
79267
79236
  this.recordService = recordService;
79268
79237
  // determined by Server setup.
79269
79238
  this.isIdempotencySupported = true;
79270
- // idempotency write flag set by lds
79271
- this.isLdsIdempotencyWriteDisabled = ldsIdempotencyWriteDisabled.isOpen({
79272
- fallback: false,
79273
- });
79274
- this.isBackdatingEnabled = ldsBackdatingEnabled.isOpen({ fallback: false });
79275
79239
  }
79276
79240
  enqueue(data) {
79277
79241
  return this.draftQueue.enqueue(this.handlerId, data);
@@ -79370,8 +79334,7 @@
79370
79334
  updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
79371
79335
  actionDataChanged = true;
79372
79336
  }
79373
- if (this.isBackdatingEnabled &&
79374
- response.status === HttpStatusCode$1.BadRequest &&
79337
+ if (response.status === HttpStatusCode$1.BadRequest &&
79375
79338
  this.isBackdatingError(response.body, action)) {
79376
79339
  updatedAction.timestamp = Date.now();
79377
79340
  updatedAction.data.body.fields = {
@@ -79646,7 +79609,7 @@
79646
79609
  return [action.targetId];
79647
79610
  }
79648
79611
  hasIdempotencySupport() {
79649
- return this.isIdempotencySupported && !this.isLdsIdempotencyWriteDisabled;
79612
+ return this.isIdempotencySupported;
79650
79613
  }
79651
79614
  async ingestResponses(responses, action) {
79652
79615
  const luvio = this.getLuvio();
@@ -79774,8 +79737,7 @@
79774
79737
  }
79775
79738
  // handles backdating
79776
79739
  const objectInfo = await this.objectInfoService.getObjectInfo(targetApiName);
79777
- if (this.isBackdatingEnabled &&
79778
- pendingAction.data &&
79740
+ if (pendingAction.data &&
79779
79741
  pendingAction.data.method !== 'delete' && //'delete' action does not have fields
79780
79742
  objectInfo) {
79781
79743
  const appendedFields = this.getBackdatingFields(objectInfo, resolvedRequest.method, pendingAction);
@@ -80486,7 +80448,7 @@
80486
80448
  if (objectInfo === undefined) {
80487
80449
  throw Error(`Could not generate draft. Object info is missing`);
80488
80450
  }
80489
- if (this.isBackdatingEnabled && pendingAction.data) {
80451
+ if (pendingAction.data) {
80490
80452
  pendingAction.data.body.namedEntries = [
80491
80453
  ...pendingAction.data.body.namedEntries,
80492
80454
  ...this.getBackdatingNameEntries(objectInfo, pendingAction.timestamp),
@@ -86738,18 +86700,6 @@
86738
86700
  }
86739
86701
  return seenRecords;
86740
86702
  }
86741
- function createErrorSnapshot(result, snapshot) {
86742
- return {
86743
- ...snapshot,
86744
- data: undefined,
86745
- state: 'Error',
86746
- error: {
86747
- body: {
86748
- message: result.errors,
86749
- },
86750
- },
86751
- };
86752
- }
86753
86703
  function createLocalEvalSnapshot(data, seenRecords, recordId, rebuildWithLocalEval, refresh) {
86754
86704
  return {
86755
86705
  refresh,
@@ -87267,7 +87217,18 @@
87267
87217
  // currently by design if there are any graphql errors we return an ErrorSnapshot
87268
87218
  // partial results are not supported at this time
87269
87219
  if (gqlResult.errors !== undefined && gqlResult.errors.length > 0) {
87270
- return createErrorSnapshot(gqlResult, nonEvaluatedSnapshot);
87220
+ const errors = gqlResult.errors || [];
87221
+ let responseErrors = errors.map((e) => {
87222
+ return { message: e instanceof Error ? e.message : String(e) };
87223
+ });
87224
+ return {
87225
+ data: undefined,
87226
+ state: 'Error',
87227
+ error: {
87228
+ errorType: 'adapterError',
87229
+ error: responseErrors,
87230
+ },
87231
+ };
87271
87232
  }
87272
87233
  // if the non-eval'ed snapshot was an error then we return a synthetic
87273
87234
  // Fulfilled snapshot (this only happens in this code path if
@@ -87810,7 +87771,7 @@
87810
87771
  * which there max fields list length will not exceeded the specified maxLength
87811
87772
  * @param maxLength
87812
87773
  */
87813
- split(maxLength = MAX_STRING_LENGTH_PER_CHUNK) {
87774
+ split(maxLength = MAX_URL_LENGTH) {
87814
87775
  const size = this.size();
87815
87776
  if (size > maxLength) {
87816
87777
  const fieldsArray = [];
@@ -87897,7 +87858,6 @@
87897
87858
  }
87898
87859
  }
87899
87860
 
87900
- const MAX_STRING_LENGTH_PER_CHUNK = 10000;
87901
87861
  //Salesforce/Akamai cdn uri max size is 8898 bytes, short than normal. Per
87902
87862
  //https://help.salesforce.com/s/articleView?id=sf.community_builder_cdn_considerations.htm&type=5
87903
87863
  //Due to we don't know the domain ResourceRequest, here we give 8000
@@ -88132,22 +88092,18 @@
88132
88092
  return array !== undefined && isArray$4(array) ? array : [];
88133
88093
  }
88134
88094
  /**
88135
- * Calculate the max lengh per chunk.
88136
- * If useShortUrlGate is open, allow max chunk size is MAX_URL_LENGTH - the url without fields and optional fields in url.
88137
- * Otherwise MAX_STRING_LENGTH_PER_CHUNK
88095
+ * Calculate the max length per chunk.
88096
+ * Max chunk size is MAX_URL_LENGTH - the url without fields and optional fields.
88097
+ *
88138
88098
  * @param resourceRequest
88139
88099
  * @returns
88140
88100
  */
88141
88101
  function getMaxLengthPerChunkAllowed(request) {
88142
- if (!ldsUseShortUrlGate.isOpen({ fallback: false })) {
88143
- return MAX_STRING_LENGTH_PER_CHUNK;
88144
- }
88145
88102
  // Too much work to get exact length of the final url, so use stringified json to get the rough length.
88146
88103
  const roughUrlLengthWithoutFieldsAndOptionFields = request.basePath.length +
88147
88104
  request.baseUri.length +
88148
88105
  (request.urlParams ? stringify$1(request.urlParams).length : 0) +
88149
88106
  stringify$1({ ...request.queryParams, fields: {}, optionalFields: {} }).length;
88150
- // MAX_URL_LENGTH - full lenght without fields, optionalFields
88151
88107
  return MAX_URL_LENGTH - roughUrlLengthWithoutFieldsAndOptionFields;
88152
88108
  }
88153
88109
  // we don't have access to the host so we cannot calculate the exact length of the url
@@ -88447,6 +88403,9 @@
88447
88403
  stopQueue() {
88448
88404
  return Promise.reject(new Error('Cannot call stopQueue from the NimbusDraftQueue'));
88449
88405
  }
88406
+ stopQueueWhileRunning(_action) {
88407
+ return Promise.reject(new Error('Cannot call stopQueueWhileRunning from the NimbusDraftQueue'));
88408
+ }
88450
88409
  replaceAction(_actionId, _withActionId) {
88451
88410
  return Promise.reject(new Error('Cannot call replaceAction from the NimbusDraftQueue'));
88452
88411
  }
@@ -89721,13 +89680,7 @@
89721
89680
  cachePolicy.basePolicy.type === 'stale-while-revalidate') {
89722
89681
  localBuildCachedSnapshot = hoistUnfulfilledToStale;
89723
89682
  }
89724
- if (eagerEvalStaleWhileRevalidate.isOpen({ fallback: false }) &&
89725
- cachePolicy &&
89726
- cachePolicy.type === 'stale-while-revalidate' &&
89727
- cachePolicy.staleDurationSeconds >= Number.MAX_SAFE_INTEGER) {
89728
- localBuildCachedSnapshot = hoistUnfulfilledToStale;
89729
- }
89730
- if ((cachePolicy === undefined || cachePolicy === null)) {
89683
+ if (cachePolicy === undefined || cachePolicy === null) {
89731
89684
  localBuildCachedSnapshot = hoistUnfulfilledToStale;
89732
89685
  }
89733
89686
  return environment.applyCachePolicy(luvio, adapterRequestContext, buildSnapshotContext, localBuildCachedSnapshot, buildNetworkSnapshot);
@@ -92600,7 +92553,7 @@
92600
92553
  const gqlEnv = makeEnvironmentGraphqlAware(baseEnv);
92601
92554
  const durableEnv = makeDurable(gqlEnv, {
92602
92555
  durableStore: lazyDurableStore,
92603
- enableDurableMetadataRefresh: ldsMetadataRefreshEnabled.isOpen({ fallback: false }),
92556
+ enableDurableMetadataRefresh: true,
92604
92557
  // disable luvio deep freeze in headless environments
92605
92558
  disableDeepFreeze: typeof window === 'undefined',
92606
92559
  shouldFlush,
@@ -92718,7 +92671,7 @@
92718
92671
  id: '@salesforce/lds-network-adapter',
92719
92672
  instrument: instrument$2,
92720
92673
  });
92721
- // version: 1.326.0-562167ef21
92674
+ // version: 1.328.0-f3d79bc783
92722
92675
 
92723
92676
  const { create: create$2, keys: keys$2 } = Object;
92724
92677
  const { stringify, parse } = JSON;
@@ -115285,7 +115238,7 @@
115285
115238
  configuration: { ...configurationForGraphQLAdapters$1 },
115286
115239
  instrument: instrument$1,
115287
115240
  });
115288
- // version: 1.326.0-c4e3f37efd
115241
+ // version: 1.328.0-e51e28f7fc
115289
115242
 
115290
115243
  // On core the unstable adapters are re-exported with different names,
115291
115244
  // we want to match them here.
@@ -115437,7 +115390,7 @@
115437
115390
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
115438
115391
  graphQLImperative = ldsAdapter;
115439
115392
  });
115440
- // version: 1.326.0-c4e3f37efd
115393
+ // version: 1.328.0-e51e28f7fc
115441
115394
 
115442
115395
  var gqlApi = /*#__PURE__*/Object.freeze({
115443
115396
  __proto__: null,
@@ -115847,34 +115800,42 @@
115847
115800
  invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponse, nativeAdapterRequestContext);
115848
115801
  }
115849
115802
  else {
115850
- invokeDmlAdapter(adapter, parse(config), async (responseValue) => {
115851
- const draftIds = draftIdsForResponseValue(responseValue);
115852
- if (responseValue.error === undefined &&
115853
- draftIds !== undefined &&
115854
- draftIds.length > 0) {
115855
- const draftId = draftIds[draftIds.length - 1];
115856
- const managerState = await draftManager.getQueue();
115857
- const draftItem = managerState.items.find((x) => x.id === draftId);
115858
- if (draftItem === undefined) {
115859
- // draftItem no longer exists, might have already been uploaded
115860
- ldsMobileInstrumentation$1.log('tried to set metadata on draft item that no longer exists');
115861
- return onResponse(responseValue);
115862
- }
115863
- draftManager
115864
- .setMetadata(draftId, { ...draftItem.metadata, ...metadata })
115865
- .then(() => {
115866
- onResponse(responseValue);
115867
- })
115868
- .catch((error) => {
115869
- onResponse(convertErrorIntoNativeFetchError(error, 'Unknown error setting metadata'));
115870
- });
115871
- }
115872
- else {
115873
- let response = responseValue;
115874
- response.error = createNativeFetchErrorResponse(NO_DRAFT_CREATED_MESSAGE);
115875
- onResponse(response);
115876
- }
115877
- }, nativeAdapterRequestContext);
115803
+ draftManager.stopQueueWhileRunning(() => {
115804
+ return new Promise((resolve) => {
115805
+ invokeDmlAdapter(adapter, parse(config), async (responseValue) => {
115806
+ const draftIds = draftIdsForResponseValue(responseValue);
115807
+ if (responseValue.error === undefined &&
115808
+ draftIds !== undefined &&
115809
+ draftIds.length > 0) {
115810
+ const draftId = draftIds[draftIds.length - 1];
115811
+ const managerState = await draftManager.getQueue();
115812
+ const draftItem = managerState.items.find((x) => x.id === draftId);
115813
+ if (draftItem === undefined) {
115814
+ // draftItem no longer exists, might have already been uploaded
115815
+ ldsMobileInstrumentation$1.log('tried to set metadata on draft item that no longer exists');
115816
+ resolve(responseValue);
115817
+ return;
115818
+ }
115819
+ draftManager
115820
+ .setMetadata(draftId, { ...draftItem.metadata, ...metadata })
115821
+ .then(() => {
115822
+ resolve(responseValue);
115823
+ })
115824
+ .catch((error) => {
115825
+ resolve(convertErrorIntoNativeFetchError(error, 'Unknown error setting metadata'));
115826
+ });
115827
+ }
115828
+ else {
115829
+ let response = responseValue;
115830
+ response.error =
115831
+ createNativeFetchErrorResponse(NO_DRAFT_CREATED_MESSAGE);
115832
+ resolve(response);
115833
+ }
115834
+ }, nativeAdapterRequestContext);
115835
+ }).then((callbackValue) => {
115836
+ onResponse(callbackValue);
115837
+ });
115838
+ });
115878
115839
  }
115879
115840
  }
115880
115841
  /*
@@ -116199,7 +116160,7 @@
116199
116160
  function register(r) {
116200
116161
  callbacks$1.forEach((callback) => callback(r));
116201
116162
  }
116202
- // version: 1.326.0-562167ef21
116163
+ // version: 1.328.0-f3d79bc783
116203
116164
 
116204
116165
  /**
116205
116166
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -117281,4 +117242,4 @@
117281
117242
  exports.subscribeToAdapter = subscribeToAdapter;
117282
117243
 
117283
117244
  }));
117284
- // version: 1.326.0-562167ef21
117245
+ // version: 1.328.0-f3d79bc783
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.326.0",
3
+ "version": "1.328.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,14 +35,14 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.326.0",
39
- "@salesforce/lds-adapters-uiapi": "^1.326.0",
40
- "@salesforce/lds-default-luvio": "^1.326.0",
41
- "@salesforce/lds-drafts": "^1.326.0",
42
- "@salesforce/lds-graphql-parser": "^1.326.0",
43
- "@salesforce/lds-luvio-engine": "^1.326.0",
44
- "@salesforce/lds-runtime-mobile": "^1.326.0",
45
- "@salesforce/nimbus-plugin-lds": "^1.326.0",
38
+ "@salesforce/lds-adapters-graphql": "^1.328.0",
39
+ "@salesforce/lds-adapters-uiapi": "^1.328.0",
40
+ "@salesforce/lds-default-luvio": "^1.328.0",
41
+ "@salesforce/lds-drafts": "^1.328.0",
42
+ "@salesforce/lds-graphql-parser": "^1.328.0",
43
+ "@salesforce/lds-luvio-engine": "^1.328.0",
44
+ "@salesforce/lds-runtime-mobile": "^1.328.0",
45
+ "@salesforce/nimbus-plugin-lds": "^1.328.0",
46
46
  "ajv": "^8.11.0",
47
47
  "glob": "^7.1.5",
48
48
  "nimbus-types": "^2.0.0-alpha1",