@salesforce/lwc-adapters-uiapi 1.404.0-dev1 → 1.404.0-dev11

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 +51 -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
  /**
@@ -33568,6 +33571,12 @@ const picklistValuesConfigPropertyNames = {
33568
33571
  },
33569
33572
  };
33570
33573
  function validateAdapterConfig$z(untrusted, _config) {
33574
+ if (process.env.NODE_ENV !== 'production') {
33575
+ const fieldApiName = untrusted.fieldApiName;
33576
+ if (typeof fieldApiName === 'string' && fieldApiName.includes(',')) {
33577
+ throw new TypeError(`adapter ${picklistValuesConfigPropertyNames.displayName} configuration must not have a comma in the fieldApiName: ${fieldApiName}`);
33578
+ }
33579
+ }
33571
33580
  return validateAdapterConfig$y(untrusted, picklistValuesConfigPropertyNames);
33572
33581
  }
33573
33582
 
@@ -34032,6 +34041,18 @@ function typeCheckConfig$w(untrustedConfig) {
34032
34041
  untrustedConfig_fields_object[key] = untrustedConfig_fields_prop;
34033
34042
  }
34034
34043
  }
34044
+ if (ArrayIsArray$1(untrustedConfig_fields_prop)) {
34045
+ const untrustedConfig_fields_prop_array = [];
34046
+ for (let i = 0, arrayLength = untrustedConfig_fields_prop.length; i < arrayLength; i++) {
34047
+ const untrustedConfig_fields_prop_item = untrustedConfig_fields_prop[i];
34048
+ if (typeof untrustedConfig_fields_prop_item === 'string') {
34049
+ untrustedConfig_fields_prop_array.push(untrustedConfig_fields_prop_item);
34050
+ }
34051
+ }
34052
+ if (untrustedConfig_fields_object !== undefined) {
34053
+ untrustedConfig_fields_object[key] = untrustedConfig_fields_prop_array;
34054
+ }
34055
+ }
34035
34056
  }
34036
34057
  if (untrustedConfig_fields_object !== undefined && Object.keys(untrustedConfig_fields_object).length >= 0) {
34037
34058
  config.fields = untrustedConfig_fields_object;
@@ -70559,12 +70580,29 @@ function validate$b(obj, path = 'RecordInputRepresentation') {
70559
70580
  if (obj_fields_prop_union3_error != null) {
70560
70581
  obj_fields_prop_union3 = obj_fields_prop_union3_error.message;
70561
70582
  }
70562
- if (obj_fields_prop_union0 && obj_fields_prop_union1 && obj_fields_prop_union2 && obj_fields_prop_union3) {
70583
+ let obj_fields_prop_union4 = null;
70584
+ const obj_fields_prop_union4_error = (() => {
70585
+ if (!ArrayIsArray(obj_fields_prop)) {
70586
+ return new TypeError('Expected "array" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
70587
+ }
70588
+ for (let i = 0; i < obj_fields_prop.length; i++) {
70589
+ const obj_fields_prop_item = obj_fields_prop[i];
70590
+ const path_fields_prop_item = path_fields_prop + '[' + i + ']';
70591
+ if (typeof obj_fields_prop_item !== 'string') {
70592
+ return new TypeError('Expected "string" but received "' + typeof obj_fields_prop_item + '" (at "' + path_fields_prop_item + '")');
70593
+ }
70594
+ }
70595
+ })();
70596
+ if (obj_fields_prop_union4_error != null) {
70597
+ obj_fields_prop_union4 = obj_fields_prop_union4_error.message;
70598
+ }
70599
+ if (obj_fields_prop_union0 && obj_fields_prop_union1 && obj_fields_prop_union2 && obj_fields_prop_union3 && obj_fields_prop_union4) {
70563
70600
  let message = 'Object doesn\'t match union (at "' + path_fields_prop + '")';
70564
70601
  message += '\n' + obj_fields_prop_union0.split('\n').map((line) => '\t' + line).join('\n');
70565
70602
  message += '\n' + obj_fields_prop_union1.split('\n').map((line) => '\t' + line).join('\n');
70566
70603
  message += '\n' + obj_fields_prop_union2.split('\n').map((line) => '\t' + line).join('\n');
70567
70604
  message += '\n' + obj_fields_prop_union3.split('\n').map((line) => '\t' + line).join('\n');
70605
+ message += '\n' + obj_fields_prop_union4.split('\n').map((line) => '\t' + line).join('\n');
70568
70606
  return new TypeError(message);
70569
70607
  }
70570
70608
  }
@@ -73188,6 +73226,18 @@ function typeCheckConfig$4(untrustedConfig) {
73188
73226
  untrustedConfig_fields_object[key] = untrustedConfig_fields_prop;
73189
73227
  }
73190
73228
  }
73229
+ if (ArrayIsArray$1(untrustedConfig_fields_prop)) {
73230
+ const untrustedConfig_fields_prop_array = [];
73231
+ for (let i = 0, arrayLength = untrustedConfig_fields_prop.length; i < arrayLength; i++) {
73232
+ const untrustedConfig_fields_prop_item = untrustedConfig_fields_prop[i];
73233
+ if (typeof untrustedConfig_fields_prop_item === 'string') {
73234
+ untrustedConfig_fields_prop_array.push(untrustedConfig_fields_prop_item);
73235
+ }
73236
+ }
73237
+ if (untrustedConfig_fields_object !== undefined) {
73238
+ untrustedConfig_fields_object[key] = untrustedConfig_fields_prop_array;
73239
+ }
73240
+ }
73191
73241
  }
73192
73242
  if (untrustedConfig_fields_object !== undefined && Object.keys(untrustedConfig_fields_object).length >= 0) {
73193
73243
  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.404.0-dev1",
3
+ "version": "1.404.0-dev11",
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.404.0-dev1"
34
+ "@salesforce/lds-adapters-uiapi": "^1.404.0-dev11"
35
35
  },
36
36
  "dependencies": {
37
37
  "@luvio/lwc-luvio": "0.158.7",
38
- "@salesforce/lds-default-luvio": "^1.404.0-dev1"
38
+ "@salesforce/lds-default-luvio": "^1.404.0-dev11"
39
39
  }
40
40
  }