@salesforce/lwc-adapters-uiapi 1.374.0 → 1.376.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 +43 -9
  2. package/package.json +3 -3
package/dist/main.js CHANGED
@@ -61187,14 +61187,10 @@ function getInContextFragmentType$q(fragment, fragmentMap) {
61187
61187
  }
61188
61188
 
61189
61189
  const name$6 = 'Setup__ListViewRow';
61190
- const VERSION$i = '64197359a4e2fa7cc243c02e897bfbf6';
61190
+ const VERSION$i = 'de20102a064874c9fc37bc9cbd59dbd0';
61191
61191
  function keyBuilder$k(luvio, path, data) {
61192
- return path.fullPath;
61192
+ return keyPrefix + '::uiapi::' + name$6 + '::' + data.id; // We're missing idNodeName in the actual key here...
61193
61193
  }
61194
- // W-12356727: To be switched over once path.fullPath is a structured key.
61195
- // export function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, path: $64$luvio_engine_IngestPath, data: PartialInterface): $64$luvio_engine_NormalizedKeyMetadata {
61196
- // return path.fullPath;
61197
- // }
61198
61194
  function mergeData$6(existingData, newData) {
61199
61195
  return {
61200
61196
  data: ObjectAssign({}, existingData["data"], newData["data"]),
@@ -61202,7 +61198,7 @@ function mergeData$6(existingData, newData) {
61202
61198
  }
61203
61199
  function ingest$e(astNode, state) {
61204
61200
  const { path, data, timestamp, luvio } = state;
61205
- const key = keyBuilder$k(luvio, path);
61201
+ const key = keyBuilder$k(luvio, path, data);
61206
61202
  return ingestNonCursorConnectionType(astNode, state, {
61207
61203
  key,
61208
61204
  isFragmentApplicable: isFragmentApplicable$7,
@@ -61241,6 +61237,11 @@ function selectType$6(typename, sel, fieldData, reader, key, sink, variables, fr
61241
61237
  reader.assignScalar(key, sink, fieldData);
61242
61238
  break;
61243
61239
  }
61240
+ case 'ID': {
61241
+ reader.markSeenId(parentRecordId);
61242
+ reader.assignScalar(key, sink, fieldData);
61243
+ break;
61244
+ }
61244
61245
  case 'Setup__ListScalarField': {
61245
61246
  selectTypeLink(sel, fieldData, reader, key, sink, variables, fragments, VERSION$j, select$g, false);
61246
61247
  break;
@@ -61257,6 +61258,7 @@ function buildSelectionForNode$7(source, reader, parentNode, selectionNode, vari
61257
61258
  function select$f(field, variables, fragments) {
61258
61259
  return (source, reader, parentRecordId) => {
61259
61260
  const sink = {};
61261
+ reader.markSeenId(parentRecordId); // Always mark identifiable types as seen
61260
61262
  return selectCalculateSink(sink, field, buildSelectionForNode$7, source, reader, variables, fragments, parentRecordId);
61261
61263
  };
61262
61264
  }
@@ -61269,12 +61271,19 @@ const getMinimumSelections$r = () => {
61269
61271
  value: '__typename',
61270
61272
  },
61271
61273
  },
61274
+ {
61275
+ kind: 'Field',
61276
+ name: {
61277
+ kind: 'Name',
61278
+ value: 'id',
61279
+ },
61280
+ },
61272
61281
  ];
61273
61282
  return { selections: minimumSelections };
61274
61283
  };
61275
61284
  function getTypeCacheKeys$f(cacheKeySink, astNode, state) {
61276
61285
  const { path, data, luvio } = state;
61277
- const rootKey = keyBuilder$k(luvio, path);
61286
+ const rootKey = keyBuilder$k(luvio, path, data);
61278
61287
  cacheKeySink.set(rootKey, {
61279
61288
  namespace: keyPrefix,
61280
61289
  mergeable: true,
@@ -61323,6 +61332,12 @@ function getFieldType$o(field) {
61323
61332
  typename: 'String'
61324
61333
  };
61325
61334
  }
61335
+ case 'id': {
61336
+ return {
61337
+ isArray: false,
61338
+ typename: 'ID'
61339
+ };
61340
+ }
61326
61341
  case 'columns': {
61327
61342
  return {
61328
61343
  isArray: true,
@@ -61344,6 +61359,10 @@ function ingestFieldByType$6(typename, parentKey, requestedField, sink, fieldKey
61344
61359
  sink[fieldKey] = fieldData;
61345
61360
  break;
61346
61361
  }
61362
+ case 'ID': {
61363
+ sink[fieldKey] = fieldData;
61364
+ break;
61365
+ }
61347
61366
  case 'Setup__ListScalarField': {
61348
61367
  const Setup__ListScalarFieldState = buildFieldState(state, parentKey + '__' + fieldKey, fieldData);
61349
61368
  sink[fieldKey] = ingest$f(requestedField, Setup__ListScalarFieldState);
@@ -61531,7 +61550,7 @@ function getInContextFragmentType$o(fragment, fragmentMap) {
61531
61550
  }
61532
61551
 
61533
61552
  const name$4 = 'Setup__ListViewRowConnection';
61534
- const VERSION$g = '7b474680bc37a464a0c628599119db27';
61553
+ const VERSION$g = '0af8ab891c0cd416a19a0f2fed0c1791';
61535
61554
  function keyBuilder$i(luvio, path, data) {
61536
61555
  return path.fullPath;
61537
61556
  }
@@ -61651,6 +61670,11 @@ function selectType$4(typename, sel, fieldData, reader, key, sink, variables, fr
61651
61670
  selectTypeLink(sel, fieldData, reader, key, sink, variables, fragments, VERSION$1i, select$1f, false);
61652
61671
  break;
61653
61672
  }
61673
+ case 'Int': {
61674
+ reader.markSeenId(parentRecordId);
61675
+ reader.assignScalar(key, sink, fieldData);
61676
+ break;
61677
+ }
61654
61678
  }
61655
61679
  return sink;
61656
61680
  }
@@ -61747,6 +61771,12 @@ function getFieldType$m(field) {
61747
61771
  typename: 'PageInfo'
61748
61772
  };
61749
61773
  }
61774
+ case 'totalCount': {
61775
+ return {
61776
+ isArray: false,
61777
+ typename: 'Int'
61778
+ };
61779
+ }
61750
61780
  default:
61751
61781
  return undefined;
61752
61782
  }
@@ -61772,6 +61802,10 @@ function ingestFieldByType$4(typename, parentKey, fullPathKey, requestedField, s
61772
61802
  sink[fieldKey] = ingest$1e(requestedField, PageInfoState);
61773
61803
  break;
61774
61804
  }
61805
+ case 'Int': {
61806
+ sink[fieldKey] = fieldData;
61807
+ break;
61808
+ }
61775
61809
  }
61776
61810
  }
61777
61811
  function isMappedField$4(field) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lwc-adapters-uiapi",
3
- "version": "1.374.0",
3
+ "version": "1.376.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.374.0"
34
+ "@salesforce/lds-adapters-uiapi": "^1.376.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "@luvio/lwc-luvio": "0.158.7",
38
- "@salesforce/lds-default-luvio": "^1.374.0"
38
+ "@salesforce/lds-default-luvio": "^1.376.0"
39
39
  }
40
40
  }