@salesforce/lds-worker-api 1.266.0-dev12 → 1.266.0-dev13

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-dev12-070ceccd9
1037
+ // version: 1.266.0-dev13-5246ad482
@@ -4144,7 +4144,7 @@ function withDefaultLuvio(callback) {
4144
4144
  }
4145
4145
  callbacks.push(callback);
4146
4146
  }
4147
- // version: 1.266.0-dev12-070ceccd9
4147
+ // version: 1.266.0-dev13-5246ad482
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-dev12-070ceccd9
15655
+ // version: 1.266.0-dev13-5246ad482
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-dev12-070ceccd9
16580
+ // version: 1.266.0-dev13-5246ad482
16581
16581
 
16582
16582
  /**
16583
16583
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -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-dev12-133bca5b9
43157
+ // version: 1.266.0-dev13-7dc12e938
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
- if (objectInfo !== undefined) {
55635
- const allObjectFields = keys$3$1(objectInfo.fields);
55636
- allObjectFields.forEach((fieldName) => {
55637
- if (draftFields[fieldName] === undefined) {
55638
- draftFields[fieldName] = { value: null, displayValue: null };
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-dev12-070ceccd9
61070
+ // version: 1.266.0-dev13-5246ad482
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-dev12-133bca5b9
79465
+ // version: 1.266.0-dev13-7dc12e938
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-dev12-133bca5b9
81719
+ // version: 1.266.0-dev13-7dc12e938
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-dev12-070ceccd9
82417
+ // version: 1.266.0-dev13-5246ad482
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-dev12-070ceccd9
87322
+ // version: 1.266.0-dev13-5246ad482
@@ -4150,7 +4150,7 @@
4150
4150
  }
4151
4151
  callbacks.push(callback);
4152
4152
  }
4153
- // version: 1.266.0-dev12-070ceccd9
4153
+ // version: 1.266.0-dev13-5246ad482
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-dev12-070ceccd9
15661
+ // version: 1.266.0-dev13-5246ad482
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-dev12-070ceccd9
16586
+ // version: 1.266.0-dev13-5246ad482
16587
16587
 
16588
16588
  /**
16589
16589
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -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-dev12-133bca5b9
43163
+ // version: 1.266.0-dev13-7dc12e938
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
- if (objectInfo !== undefined) {
55641
- const allObjectFields = keys$3$1(objectInfo.fields);
55642
- allObjectFields.forEach((fieldName) => {
55643
- if (draftFields[fieldName] === undefined) {
55644
- draftFields[fieldName] = { value: null, displayValue: null };
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-dev12-070ceccd9
61076
+ // version: 1.266.0-dev13-5246ad482
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-dev12-133bca5b9
79471
+ // version: 1.266.0-dev13-7dc12e938
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-dev12-133bca5b9
81725
+ // version: 1.266.0-dev13-7dc12e938
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-dev12-070ceccd9
82423
+ // version: 1.266.0-dev13-5246ad482
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-dev12-070ceccd9
87346
+ // version: 1.266.0-dev13-5246ad482
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.266.0-dev12",
3
+ "version": "1.266.0-dev13",
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-dev12",
39
- "@salesforce/lds-adapters-uiapi": "^1.266.0-dev12",
40
- "@salesforce/lds-default-luvio": "^1.266.0-dev12",
41
- "@salesforce/lds-drafts": "^1.266.0-dev12",
42
- "@salesforce/lds-graphql-parser": "^1.266.0-dev12",
43
- "@salesforce/lds-luvio-engine": "^1.266.0-dev12",
44
- "@salesforce/lds-priming": "^1.266.0-dev12",
45
- "@salesforce/lds-runtime-mobile": "^1.266.0-dev12",
46
- "@salesforce/nimbus-plugin-lds": "^1.266.0-dev12",
38
+ "@salesforce/lds-adapters-graphql": "^1.266.0-dev13",
39
+ "@salesforce/lds-adapters-uiapi": "^1.266.0-dev13",
40
+ "@salesforce/lds-default-luvio": "^1.266.0-dev13",
41
+ "@salesforce/lds-drafts": "^1.266.0-dev13",
42
+ "@salesforce/lds-graphql-parser": "^1.266.0-dev13",
43
+ "@salesforce/lds-luvio-engine": "^1.266.0-dev13",
44
+ "@salesforce/lds-priming": "^1.266.0-dev13",
45
+ "@salesforce/lds-runtime-mobile": "^1.266.0-dev13",
46
+ "@salesforce/nimbus-plugin-lds": "^1.266.0-dev13",
47
47
  "ajv": "^8.11.0",
48
48
  "glob": "^7.1.5",
49
49
  "nimbus-types": "^2.0.0-alpha1",