@salesforce/lds-worker-api 1.266.0-dev12 → 1.266.0-dev14
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.266.0-
|
|
1037
|
+
// version: 1.266.0-dev14-f1b3f37fa
|
|
@@ -984,7 +984,7 @@ class StringKeyInMemoryStore {
|
|
|
984
984
|
// is already in L1 prior to ingestion
|
|
985
985
|
stagingStore.readEntry = (key) => {
|
|
986
986
|
const entry = originalReadEntry(key);
|
|
987
|
-
if (
|
|
987
|
+
if (entry === undefined) {
|
|
988
988
|
return upstreamStore.readEntry(key);
|
|
989
989
|
}
|
|
990
990
|
return entry;
|
|
@@ -4016,7 +4016,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
4016
4016
|
}
|
|
4017
4017
|
return resourceParams;
|
|
4018
4018
|
}
|
|
4019
|
-
// engine version: 0.154.7-
|
|
4019
|
+
// engine version: 0.154.7-dev5-593e8859
|
|
4020
4020
|
|
|
4021
4021
|
/**
|
|
4022
4022
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4144,7 +4144,7 @@ function withDefaultLuvio(callback) {
|
|
|
4144
4144
|
}
|
|
4145
4145
|
callbacks.push(callback);
|
|
4146
4146
|
}
|
|
4147
|
-
// version: 1.266.0-
|
|
4147
|
+
// version: 1.266.0-dev14-f1b3f37fa
|
|
4148
4148
|
|
|
4149
4149
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4150
4150
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15652,7 +15652,7 @@ function gql(literals, ...subs) {
|
|
|
15652
15652
|
}
|
|
15653
15653
|
return superResult;
|
|
15654
15654
|
}
|
|
15655
|
-
// version: 1.266.0-
|
|
15655
|
+
// version: 1.266.0-dev14-f1b3f37fa
|
|
15656
15656
|
|
|
15657
15657
|
function unwrap(data) {
|
|
15658
15658
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16577,7 +16577,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16577
16577
|
const { apiFamily, name } = metadata;
|
|
16578
16578
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16579
16579
|
}
|
|
16580
|
-
// version: 1.266.0-
|
|
16580
|
+
// version: 1.266.0-dev14-f1b3f37fa
|
|
16581
16581
|
|
|
16582
16582
|
/**
|
|
16583
16583
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16676,7 +16676,7 @@ var TypeCheckShapes;
|
|
|
16676
16676
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16677
16677
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16678
16678
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16679
|
-
// engine version: 0.154.7-
|
|
16679
|
+
// engine version: 0.154.7-dev5-593e8859
|
|
16680
16680
|
|
|
16681
16681
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16682
16682
|
|
|
@@ -43154,7 +43154,7 @@ withDefaultLuvio((luvio) => {
|
|
|
43154
43154
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
43155
43155
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43156
43156
|
});
|
|
43157
|
-
// version: 1.266.0-
|
|
43157
|
+
// version: 1.266.0-dev14-46738832d
|
|
43158
43158
|
|
|
43159
43159
|
var ldsIdempotencyWriteDisabled = {
|
|
43160
43160
|
isOpen: function (e) {
|
|
@@ -55631,13 +55631,21 @@ function buildSyntheticRecordRepresentation(luvio, createOperation, userId, obje
|
|
|
55631
55631
|
draftFields[DEFAULT_FIELD_LAST_MODIFIED_DATE] = { value: timestampString, displayValue: null };
|
|
55632
55632
|
draftFields[DEFAULT_FIELD_OWNER_ID] = { value: userId, displayValue: null };
|
|
55633
55633
|
draftFields[DEFAULT_FIELD_ID] = { value: recordId, displayValue: null };
|
|
55634
|
-
|
|
55635
|
-
|
|
55636
|
-
|
|
55637
|
-
|
|
55638
|
-
|
|
55639
|
-
|
|
55640
|
-
|
|
55634
|
+
const allObjectFields = keys$3$1(objectInfo.fields);
|
|
55635
|
+
allObjectFields.forEach((fieldName) => {
|
|
55636
|
+
if (draftFields[fieldName] === undefined) {
|
|
55637
|
+
draftFields[fieldName] = { value: null, displayValue: null };
|
|
55638
|
+
}
|
|
55639
|
+
});
|
|
55640
|
+
// TODO [W-14915806]: lightning-record-form injects the `IsPersonAccount`
|
|
55641
|
+
// field for all `Account` and `PersonAccount` records. However, not all
|
|
55642
|
+
// orgs use person accounts, and if that field is not present in the object
|
|
55643
|
+
// info then it is not synthesized. We force it to be synthesized here to
|
|
55644
|
+
// ensure lightning-record-form will work correctly with draft-created
|
|
55645
|
+
// accounts.
|
|
55646
|
+
if ((apiName === 'Account' || apiName === 'PersonAccount') &&
|
|
55647
|
+
draftFields['IsPersonAccount'] === undefined) {
|
|
55648
|
+
draftFields['IsPersonAccount'] = { value: null, displayValue: null };
|
|
55641
55649
|
}
|
|
55642
55650
|
return {
|
|
55643
55651
|
id: recordId,
|
|
@@ -61059,7 +61067,7 @@ register$1({
|
|
|
61059
61067
|
id: '@salesforce/lds-network-adapter',
|
|
61060
61068
|
instrument: instrument$2,
|
|
61061
61069
|
});
|
|
61062
|
-
// version: 1.266.0-
|
|
61070
|
+
// version: 1.266.0-dev14-f1b3f37fa
|
|
61063
61071
|
|
|
61064
61072
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61065
61073
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -79454,7 +79462,7 @@ register$1({
|
|
|
79454
79462
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
79455
79463
|
instrument: instrument$1,
|
|
79456
79464
|
});
|
|
79457
|
-
// version: 1.266.0-
|
|
79465
|
+
// version: 1.266.0-dev14-46738832d
|
|
79458
79466
|
|
|
79459
79467
|
// On core the unstable adapters are re-exported with different names,
|
|
79460
79468
|
// we want to match them here.
|
|
@@ -81708,7 +81716,7 @@ withDefaultLuvio((luvio) => {
|
|
|
81708
81716
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81709
81717
|
graphQLImperative = ldsAdapter;
|
|
81710
81718
|
});
|
|
81711
|
-
// version: 1.266.0-
|
|
81719
|
+
// version: 1.266.0-dev14-46738832d
|
|
81712
81720
|
|
|
81713
81721
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81714
81722
|
__proto__: null,
|
|
@@ -82406,7 +82414,7 @@ const callbacks$1 = [];
|
|
|
82406
82414
|
function register(r) {
|
|
82407
82415
|
callbacks$1.forEach((callback) => callback(r));
|
|
82408
82416
|
}
|
|
82409
|
-
// version: 1.266.0-
|
|
82417
|
+
// version: 1.266.0-dev14-f1b3f37fa
|
|
82410
82418
|
|
|
82411
82419
|
/**
|
|
82412
82420
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -87311,4 +87319,4 @@ const { luvio } = getRuntime();
|
|
|
87311
87319
|
setDefaultLuvio({ luvio });
|
|
87312
87320
|
|
|
87313
87321
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
87314
|
-
// version: 1.266.0-
|
|
87322
|
+
// version: 1.266.0-dev14-f1b3f37fa
|
|
@@ -990,7 +990,7 @@
|
|
|
990
990
|
// is already in L1 prior to ingestion
|
|
991
991
|
stagingStore.readEntry = (key) => {
|
|
992
992
|
const entry = originalReadEntry(key);
|
|
993
|
-
if (
|
|
993
|
+
if (entry === undefined) {
|
|
994
994
|
return upstreamStore.readEntry(key);
|
|
995
995
|
}
|
|
996
996
|
return entry;
|
|
@@ -4022,7 +4022,7 @@
|
|
|
4022
4022
|
}
|
|
4023
4023
|
return resourceParams;
|
|
4024
4024
|
}
|
|
4025
|
-
// engine version: 0.154.7-
|
|
4025
|
+
// engine version: 0.154.7-dev5-593e8859
|
|
4026
4026
|
|
|
4027
4027
|
/**
|
|
4028
4028
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4150,7 +4150,7 @@
|
|
|
4150
4150
|
}
|
|
4151
4151
|
callbacks.push(callback);
|
|
4152
4152
|
}
|
|
4153
|
-
// version: 1.266.0-
|
|
4153
|
+
// version: 1.266.0-dev14-f1b3f37fa
|
|
4154
4154
|
|
|
4155
4155
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4156
4156
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15658,7 +15658,7 @@
|
|
|
15658
15658
|
}
|
|
15659
15659
|
return superResult;
|
|
15660
15660
|
}
|
|
15661
|
-
// version: 1.266.0-
|
|
15661
|
+
// version: 1.266.0-dev14-f1b3f37fa
|
|
15662
15662
|
|
|
15663
15663
|
function unwrap(data) {
|
|
15664
15664
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16583,7 +16583,7 @@
|
|
|
16583
16583
|
const { apiFamily, name } = metadata;
|
|
16584
16584
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16585
16585
|
}
|
|
16586
|
-
// version: 1.266.0-
|
|
16586
|
+
// version: 1.266.0-dev14-f1b3f37fa
|
|
16587
16587
|
|
|
16588
16588
|
/**
|
|
16589
16589
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16682,7 +16682,7 @@
|
|
|
16682
16682
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16683
16683
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16684
16684
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16685
|
-
// engine version: 0.154.7-
|
|
16685
|
+
// engine version: 0.154.7-dev5-593e8859
|
|
16686
16686
|
|
|
16687
16687
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16688
16688
|
|
|
@@ -43160,7 +43160,7 @@
|
|
|
43160
43160
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
43161
43161
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43162
43162
|
});
|
|
43163
|
-
// version: 1.266.0-
|
|
43163
|
+
// version: 1.266.0-dev14-46738832d
|
|
43164
43164
|
|
|
43165
43165
|
var ldsIdempotencyWriteDisabled = {
|
|
43166
43166
|
isOpen: function (e) {
|
|
@@ -55637,13 +55637,21 @@
|
|
|
55637
55637
|
draftFields[DEFAULT_FIELD_LAST_MODIFIED_DATE] = { value: timestampString, displayValue: null };
|
|
55638
55638
|
draftFields[DEFAULT_FIELD_OWNER_ID] = { value: userId, displayValue: null };
|
|
55639
55639
|
draftFields[DEFAULT_FIELD_ID] = { value: recordId, displayValue: null };
|
|
55640
|
-
|
|
55641
|
-
|
|
55642
|
-
|
|
55643
|
-
|
|
55644
|
-
|
|
55645
|
-
|
|
55646
|
-
|
|
55640
|
+
const allObjectFields = keys$3$1(objectInfo.fields);
|
|
55641
|
+
allObjectFields.forEach((fieldName) => {
|
|
55642
|
+
if (draftFields[fieldName] === undefined) {
|
|
55643
|
+
draftFields[fieldName] = { value: null, displayValue: null };
|
|
55644
|
+
}
|
|
55645
|
+
});
|
|
55646
|
+
// TODO [W-14915806]: lightning-record-form injects the `IsPersonAccount`
|
|
55647
|
+
// field for all `Account` and `PersonAccount` records. However, not all
|
|
55648
|
+
// orgs use person accounts, and if that field is not present in the object
|
|
55649
|
+
// info then it is not synthesized. We force it to be synthesized here to
|
|
55650
|
+
// ensure lightning-record-form will work correctly with draft-created
|
|
55651
|
+
// accounts.
|
|
55652
|
+
if ((apiName === 'Account' || apiName === 'PersonAccount') &&
|
|
55653
|
+
draftFields['IsPersonAccount'] === undefined) {
|
|
55654
|
+
draftFields['IsPersonAccount'] = { value: null, displayValue: null };
|
|
55647
55655
|
}
|
|
55648
55656
|
return {
|
|
55649
55657
|
id: recordId,
|
|
@@ -61065,7 +61073,7 @@
|
|
|
61065
61073
|
id: '@salesforce/lds-network-adapter',
|
|
61066
61074
|
instrument: instrument$2,
|
|
61067
61075
|
});
|
|
61068
|
-
// version: 1.266.0-
|
|
61076
|
+
// version: 1.266.0-dev14-f1b3f37fa
|
|
61069
61077
|
|
|
61070
61078
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61071
61079
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -79460,7 +79468,7 @@
|
|
|
79460
79468
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
79461
79469
|
instrument: instrument$1,
|
|
79462
79470
|
});
|
|
79463
|
-
// version: 1.266.0-
|
|
79471
|
+
// version: 1.266.0-dev14-46738832d
|
|
79464
79472
|
|
|
79465
79473
|
// On core the unstable adapters are re-exported with different names,
|
|
79466
79474
|
// we want to match them here.
|
|
@@ -81714,7 +81722,7 @@
|
|
|
81714
81722
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81715
81723
|
graphQLImperative = ldsAdapter;
|
|
81716
81724
|
});
|
|
81717
|
-
// version: 1.266.0-
|
|
81725
|
+
// version: 1.266.0-dev14-46738832d
|
|
81718
81726
|
|
|
81719
81727
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81720
81728
|
__proto__: null,
|
|
@@ -82412,7 +82420,7 @@
|
|
|
82412
82420
|
function register(r) {
|
|
82413
82421
|
callbacks$1.forEach((callback) => callback(r));
|
|
82414
82422
|
}
|
|
82415
|
-
// version: 1.266.0-
|
|
82423
|
+
// version: 1.266.0-dev14-f1b3f37fa
|
|
82416
82424
|
|
|
82417
82425
|
/**
|
|
82418
82426
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -87335,4 +87343,4 @@
|
|
|
87335
87343
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
87336
87344
|
|
|
87337
87345
|
}));
|
|
87338
|
-
// version: 1.266.0-
|
|
87346
|
+
// version: 1.266.0-dev14-f1b3f37fa
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.266.0-
|
|
3
|
+
"version": "1.266.0-dev14",
|
|
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.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-
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.266.0-dev14",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.266.0-dev14",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.266.0-dev14",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.266.0-dev14",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.266.0-dev14",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.266.0-dev14",
|
|
44
|
+
"@salesforce/lds-priming": "^1.266.0-dev14",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.266.0-dev14",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.266.0-dev14",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|