@salesforce/lwc-adapters-uiapi 1.272.0 → 1.273.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.
Files changed (2) hide show
  1. package/dist/main.js +18 -3
  2. package/package.json +3 -3
package/dist/main.js CHANGED
@@ -10250,7 +10250,7 @@ function getTypeCacheKeys$1W(rootKeySet, luvio, input, fullPathFactory) {
10250
10250
  getTypeCacheKeys$1Z(rootKeySet, luvio, input_fields[key], () => rootKey + "__fields" + "__" + key);
10251
10251
  }
10252
10252
  }
10253
- const notifyUpdateAvailableFactory$3 = (luvio) => {
10253
+ const notifyUpdateAvailableFactory$4 = (luvio) => {
10254
10254
  return function notifyRecordUpdateAvailable(configs) {
10255
10255
  if (process.env.NODE_ENV !== 'production') {
10256
10256
  const requiredKeyParams = ['recordId'];
@@ -19520,9 +19520,24 @@ function getFieldsFromLayoutMap(layoutMap, objectInfo) {
19520
19520
  }
19521
19521
  return dedupe(fields).sort();
19522
19522
  }
19523
+ /**
19524
+ * W-14696113
19525
+ * Merge fields into optionalFields and return the whole list.
19526
+ * @param {string[]} fields
19527
+ * @param {string[]} [optionalFields]
19528
+ */
19529
+ function convertToImplicitFields(fields, optionalFields) {
19530
+ const implicitFields = optionalFields || [];
19531
+ fields.forEach((field) => {
19532
+ if (!(field in implicitFields))
19533
+ implicitFields.push(field);
19534
+ });
19535
+ return implicitFields;
19536
+ }
19523
19537
  function getRecordForLayoutableEntities(luvio, refresh, recordId, layoutMap, objectInfo, configOptionalFields) {
19524
19538
  const fields = getFieldsFromLayoutMap(layoutMap, objectInfo);
19525
- return getRecord$1(luvio, refresh, recordId, fields, configOptionalFields);
19539
+ const implicitFields = convertToImplicitFields(fields, configOptionalFields);
19540
+ return getRecord$1(luvio, refresh, recordId, [], implicitFields);
19526
19541
  }
19527
19542
  function getRecordForNonLayoutableEntities(luvio, adapterContext, refresh, recordId, objectInfo, configOptionalFields, configFields) {
19528
19543
  const fields = keys(configFields ? configFields : {}).map((key) => `${objectInfo.apiName}.${key}`);
@@ -58730,7 +58745,7 @@ withDefaultLuvio((luvio) => {
58730
58745
  let getRecordNotifyChange, refresh, notifyRecordUpdateAvailable;
58731
58746
  withDefaultLuvio((luvio) => {
58732
58747
  getRecordNotifyChange = notifyChangeFactory(luvio);
58733
- notifyRecordUpdateAvailable = notifyUpdateAvailableFactory$3(luvio);
58748
+ notifyRecordUpdateAvailable = notifyUpdateAvailableFactory$4(luvio);
58734
58749
  refresh = bindWireRefresh(luvio);
58735
58750
  });
58736
58751
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lwc-adapters-uiapi",
3
- "version": "1.272.0",
3
+ "version": "1.273.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "UIAPI adapters with LWC bindings",
6
6
  "module": "dist/main.js",
@@ -31,10 +31,10 @@
31
31
  "clean": "rm -rf dist src/generated"
32
32
  },
33
33
  "devDependencies": {
34
- "@salesforce/lds-adapters-uiapi": "^1.272.0"
34
+ "@salesforce/lds-adapters-uiapi": "^1.273.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "@luvio/lwc-luvio": "0.154.9",
38
- "@salesforce/lds-default-luvio": "^1.272.0"
38
+ "@salesforce/lds-default-luvio": "^1.273.0"
39
39
  }
40
40
  }