@salesforce/lwc-adapters-uiapi 1.405.0 → 1.410.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 +45 -1
  2. package/package.json +3 -3
package/dist/main.js CHANGED
@@ -13893,6 +13893,9 @@ function generateRecordInputForUpdate(record, objectInfo) {
13893
13893
  }
13894
13894
  function isRecordInputFieldValue(unknown) {
13895
13895
  const type = typeof unknown;
13896
+ if (Array.isArray(unknown)) {
13897
+ return unknown.every((entry) => typeof entry === 'string');
13898
+ }
13896
13899
  return unknown === null || type === 'string' || type === 'number' || type === 'boolean';
13897
13900
  }
13898
13901
  /**
@@ -34032,6 +34035,18 @@ function typeCheckConfig$w(untrustedConfig) {
34032
34035
  untrustedConfig_fields_object[key] = untrustedConfig_fields_prop;
34033
34036
  }
34034
34037
  }
34038
+ if (ArrayIsArray$1(untrustedConfig_fields_prop)) {
34039
+ const untrustedConfig_fields_prop_array = [];
34040
+ for (let i = 0, arrayLength = untrustedConfig_fields_prop.length; i < arrayLength; i++) {
34041
+ const untrustedConfig_fields_prop_item = untrustedConfig_fields_prop[i];
34042
+ if (typeof untrustedConfig_fields_prop_item === 'string') {
34043
+ untrustedConfig_fields_prop_array.push(untrustedConfig_fields_prop_item);
34044
+ }
34045
+ }
34046
+ if (untrustedConfig_fields_object !== undefined) {
34047
+ untrustedConfig_fields_object[key] = untrustedConfig_fields_prop_array;
34048
+ }
34049
+ }
34035
34050
  }
34036
34051
  if (untrustedConfig_fields_object !== undefined && Object.keys(untrustedConfig_fields_object).length >= 0) {
34037
34052
  config.fields = untrustedConfig_fields_object;
@@ -70559,12 +70574,29 @@ function validate$b(obj, path = 'RecordInputRepresentation') {
70559
70574
  if (obj_fields_prop_union3_error != null) {
70560
70575
  obj_fields_prop_union3 = obj_fields_prop_union3_error.message;
70561
70576
  }
70562
- if (obj_fields_prop_union0 && obj_fields_prop_union1 && obj_fields_prop_union2 && obj_fields_prop_union3) {
70577
+ let obj_fields_prop_union4 = null;
70578
+ const obj_fields_prop_union4_error = (() => {
70579
+ if (!ArrayIsArray(obj_fields_prop)) {
70580
+ return new TypeError('Expected "array" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
70581
+ }
70582
+ for (let i = 0; i < obj_fields_prop.length; i++) {
70583
+ const obj_fields_prop_item = obj_fields_prop[i];
70584
+ const path_fields_prop_item = path_fields_prop + '[' + i + ']';
70585
+ if (typeof obj_fields_prop_item !== 'string') {
70586
+ return new TypeError('Expected "string" but received "' + typeof obj_fields_prop_item + '" (at "' + path_fields_prop_item + '")');
70587
+ }
70588
+ }
70589
+ })();
70590
+ if (obj_fields_prop_union4_error != null) {
70591
+ obj_fields_prop_union4 = obj_fields_prop_union4_error.message;
70592
+ }
70593
+ if (obj_fields_prop_union0 && obj_fields_prop_union1 && obj_fields_prop_union2 && obj_fields_prop_union3 && obj_fields_prop_union4) {
70563
70594
  let message = 'Object doesn\'t match union (at "' + path_fields_prop + '")';
70564
70595
  message += '\n' + obj_fields_prop_union0.split('\n').map((line) => '\t' + line).join('\n');
70565
70596
  message += '\n' + obj_fields_prop_union1.split('\n').map((line) => '\t' + line).join('\n');
70566
70597
  message += '\n' + obj_fields_prop_union2.split('\n').map((line) => '\t' + line).join('\n');
70567
70598
  message += '\n' + obj_fields_prop_union3.split('\n').map((line) => '\t' + line).join('\n');
70599
+ message += '\n' + obj_fields_prop_union4.split('\n').map((line) => '\t' + line).join('\n');
70568
70600
  return new TypeError(message);
70569
70601
  }
70570
70602
  }
@@ -73188,6 +73220,18 @@ function typeCheckConfig$4(untrustedConfig) {
73188
73220
  untrustedConfig_fields_object[key] = untrustedConfig_fields_prop;
73189
73221
  }
73190
73222
  }
73223
+ if (ArrayIsArray$1(untrustedConfig_fields_prop)) {
73224
+ const untrustedConfig_fields_prop_array = [];
73225
+ for (let i = 0, arrayLength = untrustedConfig_fields_prop.length; i < arrayLength; i++) {
73226
+ const untrustedConfig_fields_prop_item = untrustedConfig_fields_prop[i];
73227
+ if (typeof untrustedConfig_fields_prop_item === 'string') {
73228
+ untrustedConfig_fields_prop_array.push(untrustedConfig_fields_prop_item);
73229
+ }
73230
+ }
73231
+ if (untrustedConfig_fields_object !== undefined) {
73232
+ untrustedConfig_fields_object[key] = untrustedConfig_fields_prop_array;
73233
+ }
73234
+ }
73191
73235
  }
73192
73236
  if (untrustedConfig_fields_object !== undefined && Object.keys(untrustedConfig_fields_object).length >= 0) {
73193
73237
  config.fields = untrustedConfig_fields_object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lwc-adapters-uiapi",
3
- "version": "1.405.0",
3
+ "version": "1.410.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.405.0"
34
+ "@salesforce/lds-adapters-uiapi": "^1.410.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "@luvio/lwc-luvio": "0.158.7",
38
- "@salesforce/lds-default-luvio": "^1.405.0"
38
+ "@salesforce/lds-default-luvio": "^1.410.0"
39
39
  }
40
40
  }