@salesforce/lds-worker-api 1.130.8 → 1.130.10
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.
|
@@ -761,4 +761,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
761
761
|
}
|
|
762
762
|
|
|
763
763
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
764
|
-
// version: 1.130.
|
|
764
|
+
// version: 1.130.10-0fac4c295
|
|
@@ -3649,7 +3649,7 @@ class Luvio {
|
|
|
3649
3649
|
return this.environment.buildStructuredKey(namespace, representationName, idValues);
|
|
3650
3650
|
}
|
|
3651
3651
|
}
|
|
3652
|
-
// engine version: 0.138.
|
|
3652
|
+
// engine version: 0.138.8-480e18f2
|
|
3653
3653
|
|
|
3654
3654
|
/**
|
|
3655
3655
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3776,7 +3776,7 @@ function withDefaultLuvio(callback) {
|
|
|
3776
3776
|
}
|
|
3777
3777
|
callbacks.push(callback);
|
|
3778
3778
|
}
|
|
3779
|
-
// version: 1.130.
|
|
3779
|
+
// version: 1.130.10-0fac4c295
|
|
3780
3780
|
|
|
3781
3781
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3782
3782
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15200,7 +15200,7 @@ function parseAndVisit(source) {
|
|
|
15200
15200
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15201
15201
|
return luvioDocumentNode;
|
|
15202
15202
|
}
|
|
15203
|
-
// version: 1.130.
|
|
15203
|
+
// version: 1.130.10-0fac4c295
|
|
15204
15204
|
|
|
15205
15205
|
function unwrap(data) {
|
|
15206
15206
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16113,7 +16113,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16113
16113
|
const { apiFamily, name } = metadata;
|
|
16114
16114
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16115
16115
|
}
|
|
16116
|
-
// version: 1.130.
|
|
16116
|
+
// version: 1.130.10-0fac4c295
|
|
16117
16117
|
|
|
16118
16118
|
/**
|
|
16119
16119
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16196,7 +16196,7 @@ var FragmentReadResultState;
|
|
|
16196
16196
|
({
|
|
16197
16197
|
state: FragmentReadResultState.Missing,
|
|
16198
16198
|
});
|
|
16199
|
-
// engine version: 0.138.
|
|
16199
|
+
// engine version: 0.138.8-480e18f2
|
|
16200
16200
|
|
|
16201
16201
|
const { keys: ObjectKeys$3, freeze: ObjectFreeze$3, create: ObjectCreate$3 } = Object;
|
|
16202
16202
|
|
|
@@ -40515,7 +40515,7 @@ function ingestAndBroadcast(luvio, key, config, body) {
|
|
|
40515
40515
|
return buildCachedSnapshot$5(luvio, config);
|
|
40516
40516
|
});
|
|
40517
40517
|
}
|
|
40518
|
-
function clone(userLayoutState) {
|
|
40518
|
+
function clone$1(userLayoutState) {
|
|
40519
40519
|
return parse$7(stringify$7(userLayoutState));
|
|
40520
40520
|
}
|
|
40521
40521
|
// Applies optimisticUpdate to layoutUserState
|
|
@@ -40538,7 +40538,7 @@ function optimisticUpdate(cachedLayoutUserState, layoutUserStateInput) {
|
|
|
40538
40538
|
if (clonedLayoutUserState === undefined) {
|
|
40539
40539
|
// We have to clone cachedLayoutUserState because this object is coming from
|
|
40540
40540
|
// a snapshot, where it is frozen
|
|
40541
|
-
clonedLayoutUserState = clone(cachedLayoutUserState);
|
|
40541
|
+
clonedLayoutUserState = clone$1(cachedLayoutUserState);
|
|
40542
40542
|
// hold onto sectionUserStates from clonedLayoutUserState
|
|
40543
40543
|
clonedLayoutUserStateSections = clonedLayoutUserState.sectionUserStates;
|
|
40544
40544
|
}
|
|
@@ -44412,7 +44412,7 @@ withDefaultLuvio((luvio) => {
|
|
|
44412
44412
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
44413
44413
|
});
|
|
44414
44414
|
});
|
|
44415
|
-
// version: 1.130.
|
|
44415
|
+
// version: 1.130.10-b649bb8d1
|
|
44416
44416
|
|
|
44417
44417
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
44418
44418
|
|
|
@@ -45680,7 +45680,8 @@ function makeDurable(environment, { durableStore, instrumentation }) {
|
|
|
45680
45680
|
for (const cacheKeyMapKey of cacheKeyMapKeys) {
|
|
45681
45681
|
const cacheKey = cacheKeyMap.get(cacheKeyMapKey);
|
|
45682
45682
|
if (cacheKey.mergeable === true) {
|
|
45683
|
-
|
|
45683
|
+
const canonical = environment.storeGetCanonicalKey(cacheKeyMapKey);
|
|
45684
|
+
keysToRevive.add(canonical);
|
|
45684
45685
|
}
|
|
45685
45686
|
}
|
|
45686
45687
|
let snapshotFromMemoryIngest = undefined;
|
|
@@ -55448,6 +55449,10 @@ function makeEnvironmentUiApiRecordDraftAware(luvio, options, env) {
|
|
|
55448
55449
|
return create$2$1(adapterSpecificEnvironments, {});
|
|
55449
55450
|
}
|
|
55450
55451
|
|
|
55452
|
+
function clone(obj) {
|
|
55453
|
+
return parse$2(stringify$2(obj));
|
|
55454
|
+
}
|
|
55455
|
+
|
|
55451
55456
|
const DEFAULT_FIELD_CREATED_BY_ID = 'CreatedById';
|
|
55452
55457
|
const DEFAULT_FIELD_CREATED_DATE = 'CreatedDate';
|
|
55453
55458
|
const DEFAULT_FIELD_ID = 'Id';
|
|
@@ -55475,7 +55480,9 @@ function replayDraftsOnRecord(record, draftMetadata) {
|
|
|
55475
55480
|
// no baseRecord
|
|
55476
55481
|
return undefined;
|
|
55477
55482
|
}
|
|
55478
|
-
const { recordOperations } = draftMetadata;
|
|
55483
|
+
const { recordOperations: originalOperations } = draftMetadata;
|
|
55484
|
+
// since replaying drafts is destructive, we need to clone the original operations
|
|
55485
|
+
const recordOperations = clone(originalOperations);
|
|
55479
55486
|
if (recordOperations.length === 0) {
|
|
55480
55487
|
return undefined;
|
|
55481
55488
|
}
|
|
@@ -55506,7 +55513,11 @@ function recursivelyApplyDraftsToRecord(record, draftMetadata, recordOperations)
|
|
|
55506
55513
|
}
|
|
55507
55514
|
const draftActionType = draftOperation.type;
|
|
55508
55515
|
if (draftActionType === 'create') {
|
|
55509
|
-
|
|
55516
|
+
if (record.drafts !== undefined) {
|
|
55517
|
+
throw Error('a create action cannot exist on an existing draft record');
|
|
55518
|
+
}
|
|
55519
|
+
// the draft may have been uploaded already so skip the create operation and apply the rest (if any)
|
|
55520
|
+
return recursivelyApplyDraftsToRecord(record, draftMetadata, recordOperations);
|
|
55510
55521
|
}
|
|
55511
55522
|
// add the draft node
|
|
55512
55523
|
if (record.drafts === undefined) {
|
|
@@ -56269,6 +56280,11 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
56269
56280
|
let record = entry && entry.data;
|
|
56270
56281
|
if (record === undefined) {
|
|
56271
56282
|
record = storeRecords[recordKey];
|
|
56283
|
+
if (record === undefined) {
|
|
56284
|
+
// fields are being published without a record for them existing,
|
|
56285
|
+
// fields cannot exist standalone in the durable store
|
|
56286
|
+
continue;
|
|
56287
|
+
}
|
|
56272
56288
|
}
|
|
56273
56289
|
putRecords[recordId] = true;
|
|
56274
56290
|
if (isStoreRecordError(record)) {
|
|
@@ -60008,7 +60024,7 @@ register({
|
|
|
60008
60024
|
id: '@salesforce/lds-network-adapter',
|
|
60009
60025
|
instrument: instrument$1,
|
|
60010
60026
|
});
|
|
60011
|
-
// version: 1.130.
|
|
60027
|
+
// version: 1.130.10-0fac4c295
|
|
60012
60028
|
|
|
60013
60029
|
const { create: create$2, keys: keys$2 } = Object;
|
|
60014
60030
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -74316,7 +74332,7 @@ register({
|
|
|
74316
74332
|
configuration: { ...configurationForGraphQLAdapters },
|
|
74317
74333
|
instrument,
|
|
74318
74334
|
});
|
|
74319
|
-
// version: 1.130.
|
|
74335
|
+
// version: 1.130.10-b649bb8d1
|
|
74320
74336
|
|
|
74321
74337
|
// On core the unstable adapters are re-exported with different names,
|
|
74322
74338
|
|
|
@@ -76445,7 +76461,7 @@ withDefaultLuvio((luvio) => {
|
|
|
76445
76461
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
76446
76462
|
graphQLImperative = ldsAdapter;
|
|
76447
76463
|
});
|
|
76448
|
-
// version: 1.130.
|
|
76464
|
+
// version: 1.130.10-b649bb8d1
|
|
76449
76465
|
|
|
76450
76466
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
76451
76467
|
__proto__: null,
|
|
@@ -77137,4 +77153,4 @@ const { luvio } = getRuntime();
|
|
|
77137
77153
|
setDefaultLuvio({ luvio });
|
|
77138
77154
|
|
|
77139
77155
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
77140
|
-
// version: 1.130.
|
|
77156
|
+
// version: 1.130.10-0fac4c295
|
|
@@ -3655,7 +3655,7 @@
|
|
|
3655
3655
|
return this.environment.buildStructuredKey(namespace, representationName, idValues);
|
|
3656
3656
|
}
|
|
3657
3657
|
}
|
|
3658
|
-
// engine version: 0.138.
|
|
3658
|
+
// engine version: 0.138.8-480e18f2
|
|
3659
3659
|
|
|
3660
3660
|
/**
|
|
3661
3661
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3782,7 +3782,7 @@
|
|
|
3782
3782
|
}
|
|
3783
3783
|
callbacks.push(callback);
|
|
3784
3784
|
}
|
|
3785
|
-
// version: 1.130.
|
|
3785
|
+
// version: 1.130.10-0fac4c295
|
|
3786
3786
|
|
|
3787
3787
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3788
3788
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15206,7 +15206,7 @@
|
|
|
15206
15206
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15207
15207
|
return luvioDocumentNode;
|
|
15208
15208
|
}
|
|
15209
|
-
// version: 1.130.
|
|
15209
|
+
// version: 1.130.10-0fac4c295
|
|
15210
15210
|
|
|
15211
15211
|
function unwrap(data) {
|
|
15212
15212
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16119,7 +16119,7 @@
|
|
|
16119
16119
|
const { apiFamily, name } = metadata;
|
|
16120
16120
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16121
16121
|
}
|
|
16122
|
-
// version: 1.130.
|
|
16122
|
+
// version: 1.130.10-0fac4c295
|
|
16123
16123
|
|
|
16124
16124
|
/**
|
|
16125
16125
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16202,7 +16202,7 @@
|
|
|
16202
16202
|
({
|
|
16203
16203
|
state: FragmentReadResultState.Missing,
|
|
16204
16204
|
});
|
|
16205
|
-
// engine version: 0.138.
|
|
16205
|
+
// engine version: 0.138.8-480e18f2
|
|
16206
16206
|
|
|
16207
16207
|
const { keys: ObjectKeys$3, freeze: ObjectFreeze$3, create: ObjectCreate$3 } = Object;
|
|
16208
16208
|
|
|
@@ -40521,7 +40521,7 @@
|
|
|
40521
40521
|
return buildCachedSnapshot$5(luvio, config);
|
|
40522
40522
|
});
|
|
40523
40523
|
}
|
|
40524
|
-
function clone(userLayoutState) {
|
|
40524
|
+
function clone$1(userLayoutState) {
|
|
40525
40525
|
return parse$7(stringify$7(userLayoutState));
|
|
40526
40526
|
}
|
|
40527
40527
|
// Applies optimisticUpdate to layoutUserState
|
|
@@ -40544,7 +40544,7 @@
|
|
|
40544
40544
|
if (clonedLayoutUserState === undefined) {
|
|
40545
40545
|
// We have to clone cachedLayoutUserState because this object is coming from
|
|
40546
40546
|
// a snapshot, where it is frozen
|
|
40547
|
-
clonedLayoutUserState = clone(cachedLayoutUserState);
|
|
40547
|
+
clonedLayoutUserState = clone$1(cachedLayoutUserState);
|
|
40548
40548
|
// hold onto sectionUserStates from clonedLayoutUserState
|
|
40549
40549
|
clonedLayoutUserStateSections = clonedLayoutUserState.sectionUserStates;
|
|
40550
40550
|
}
|
|
@@ -44418,7 +44418,7 @@
|
|
|
44418
44418
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
44419
44419
|
});
|
|
44420
44420
|
});
|
|
44421
|
-
// version: 1.130.
|
|
44421
|
+
// version: 1.130.10-b649bb8d1
|
|
44422
44422
|
|
|
44423
44423
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
44424
44424
|
|
|
@@ -45686,7 +45686,8 @@
|
|
|
45686
45686
|
for (const cacheKeyMapKey of cacheKeyMapKeys) {
|
|
45687
45687
|
const cacheKey = cacheKeyMap.get(cacheKeyMapKey);
|
|
45688
45688
|
if (cacheKey.mergeable === true) {
|
|
45689
|
-
|
|
45689
|
+
const canonical = environment.storeGetCanonicalKey(cacheKeyMapKey);
|
|
45690
|
+
keysToRevive.add(canonical);
|
|
45690
45691
|
}
|
|
45691
45692
|
}
|
|
45692
45693
|
let snapshotFromMemoryIngest = undefined;
|
|
@@ -55454,6 +55455,10 @@
|
|
|
55454
55455
|
return create$2$1(adapterSpecificEnvironments, {});
|
|
55455
55456
|
}
|
|
55456
55457
|
|
|
55458
|
+
function clone(obj) {
|
|
55459
|
+
return parse$2(stringify$2(obj));
|
|
55460
|
+
}
|
|
55461
|
+
|
|
55457
55462
|
const DEFAULT_FIELD_CREATED_BY_ID = 'CreatedById';
|
|
55458
55463
|
const DEFAULT_FIELD_CREATED_DATE = 'CreatedDate';
|
|
55459
55464
|
const DEFAULT_FIELD_ID = 'Id';
|
|
@@ -55481,7 +55486,9 @@
|
|
|
55481
55486
|
// no baseRecord
|
|
55482
55487
|
return undefined;
|
|
55483
55488
|
}
|
|
55484
|
-
const { recordOperations } = draftMetadata;
|
|
55489
|
+
const { recordOperations: originalOperations } = draftMetadata;
|
|
55490
|
+
// since replaying drafts is destructive, we need to clone the original operations
|
|
55491
|
+
const recordOperations = clone(originalOperations);
|
|
55485
55492
|
if (recordOperations.length === 0) {
|
|
55486
55493
|
return undefined;
|
|
55487
55494
|
}
|
|
@@ -55512,7 +55519,11 @@
|
|
|
55512
55519
|
}
|
|
55513
55520
|
const draftActionType = draftOperation.type;
|
|
55514
55521
|
if (draftActionType === 'create') {
|
|
55515
|
-
|
|
55522
|
+
if (record.drafts !== undefined) {
|
|
55523
|
+
throw Error('a create action cannot exist on an existing draft record');
|
|
55524
|
+
}
|
|
55525
|
+
// the draft may have been uploaded already so skip the create operation and apply the rest (if any)
|
|
55526
|
+
return recursivelyApplyDraftsToRecord(record, draftMetadata, recordOperations);
|
|
55516
55527
|
}
|
|
55517
55528
|
// add the draft node
|
|
55518
55529
|
if (record.drafts === undefined) {
|
|
@@ -56275,6 +56286,11 @@
|
|
|
56275
56286
|
let record = entry && entry.data;
|
|
56276
56287
|
if (record === undefined) {
|
|
56277
56288
|
record = storeRecords[recordKey];
|
|
56289
|
+
if (record === undefined) {
|
|
56290
|
+
// fields are being published without a record for them existing,
|
|
56291
|
+
// fields cannot exist standalone in the durable store
|
|
56292
|
+
continue;
|
|
56293
|
+
}
|
|
56278
56294
|
}
|
|
56279
56295
|
putRecords[recordId] = true;
|
|
56280
56296
|
if (isStoreRecordError(record)) {
|
|
@@ -60014,7 +60030,7 @@
|
|
|
60014
60030
|
id: '@salesforce/lds-network-adapter',
|
|
60015
60031
|
instrument: instrument$1,
|
|
60016
60032
|
});
|
|
60017
|
-
// version: 1.130.
|
|
60033
|
+
// version: 1.130.10-0fac4c295
|
|
60018
60034
|
|
|
60019
60035
|
const { create: create$2, keys: keys$2 } = Object;
|
|
60020
60036
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -74322,7 +74338,7 @@
|
|
|
74322
74338
|
configuration: { ...configurationForGraphQLAdapters },
|
|
74323
74339
|
instrument,
|
|
74324
74340
|
});
|
|
74325
|
-
// version: 1.130.
|
|
74341
|
+
// version: 1.130.10-b649bb8d1
|
|
74326
74342
|
|
|
74327
74343
|
// On core the unstable adapters are re-exported with different names,
|
|
74328
74344
|
|
|
@@ -76451,7 +76467,7 @@
|
|
|
76451
76467
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
76452
76468
|
graphQLImperative = ldsAdapter;
|
|
76453
76469
|
});
|
|
76454
|
-
// version: 1.130.
|
|
76470
|
+
// version: 1.130.10-b649bb8d1
|
|
76455
76471
|
|
|
76456
76472
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
76457
76473
|
__proto__: null,
|
|
@@ -77160,4 +77176,4 @@
|
|
|
77160
77176
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
77161
77177
|
|
|
77162
77178
|
}));
|
|
77163
|
-
// version: 1.130.
|
|
77179
|
+
// version: 1.130.10-0fac4c295
|