@salesforce/lwc-adapters-uiapi 1.465.0 → 1.466.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 +47 -1
  2. package/package.json +3 -3
package/dist/main.js CHANGED
@@ -19922,7 +19922,7 @@ function coerceFormFactor(form) {
19922
19922
  return undefined;
19923
19923
  }
19924
19924
 
19925
- const VERSION$2N = "3f49d751896cf66e6e29788d8880e2cc";
19925
+ const VERSION$2N = "c42f4294edf6efc71f5ff9b9adf922e8";
19926
19926
  function validate$1A(obj, path = 'PlatformActionRepresentation') {
19927
19927
  const v_error = (() => {
19928
19928
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -20062,6 +20062,34 @@ function validate$1A(obj, path = 'PlatformActionRepresentation') {
20062
20062
  message += '\n' + obj_lwcComponent_union1.split('\n').map((line) => '\t' + line).join('\n');
20063
20063
  return new TypeError(message);
20064
20064
  }
20065
+ if (obj.modalSize !== undefined) {
20066
+ const obj_modalSize = obj.modalSize;
20067
+ const path_modalSize = path + '.modalSize';
20068
+ let obj_modalSize_union0 = null;
20069
+ const obj_modalSize_union0_error = (() => {
20070
+ if (typeof obj_modalSize !== 'string') {
20071
+ return new TypeError('Expected "string" but received "' + typeof obj_modalSize + '" (at "' + path_modalSize + '")');
20072
+ }
20073
+ })();
20074
+ if (obj_modalSize_union0_error != null) {
20075
+ obj_modalSize_union0 = obj_modalSize_union0_error.message;
20076
+ }
20077
+ let obj_modalSize_union1 = null;
20078
+ const obj_modalSize_union1_error = (() => {
20079
+ if (obj_modalSize !== null) {
20080
+ return new TypeError('Expected "null" but received "' + typeof obj_modalSize + '" (at "' + path_modalSize + '")');
20081
+ }
20082
+ })();
20083
+ if (obj_modalSize_union1_error != null) {
20084
+ obj_modalSize_union1 = obj_modalSize_union1_error.message;
20085
+ }
20086
+ if (obj_modalSize_union0 && obj_modalSize_union1) {
20087
+ let message = 'Object doesn\'t match union (at "' + path_modalSize + '")';
20088
+ message += '\n' + obj_modalSize_union0.split('\n').map((line) => '\t' + line).join('\n');
20089
+ message += '\n' + obj_modalSize_union1.split('\n').map((line) => '\t' + line).join('\n');
20090
+ return new TypeError(message);
20091
+ }
20092
+ }
20065
20093
  const obj_primaryColor = obj.primaryColor;
20066
20094
  const path_primaryColor = path + '.primaryColor';
20067
20095
  let obj_primaryColor_union0 = null;
@@ -20316,6 +20344,11 @@ const select$3q = function PlatformActionRepresentationSelect() {
20316
20344
  name: 'lwcComponent',
20317
20345
  kind: 'Scalar'
20318
20346
  },
20347
+ {
20348
+ name: 'modalSize',
20349
+ kind: 'Scalar',
20350
+ required: false
20351
+ },
20319
20352
  {
20320
20353
  name: 'primaryColor',
20321
20354
  kind: 'Scalar'
@@ -20416,6 +20449,19 @@ function equals$W(existing, incoming) {
20416
20449
  if (!(existing_lwcComponent === incoming_lwcComponent)) {
20417
20450
  return false;
20418
20451
  }
20452
+ const existing_modalSize = existing.modalSize;
20453
+ const incoming_modalSize = incoming.modalSize;
20454
+ // if at least one of these optionals is defined
20455
+ if (existing_modalSize !== undefined || incoming_modalSize !== undefined) {
20456
+ // if one of these is not defined we know the other is defined and therefore
20457
+ // not equal
20458
+ if (existing_modalSize === undefined || incoming_modalSize === undefined) {
20459
+ return false;
20460
+ }
20461
+ if (!(existing_modalSize === incoming_modalSize)) {
20462
+ return false;
20463
+ }
20464
+ }
20419
20465
  const existing_primaryColor = existing.primaryColor;
20420
20466
  const incoming_primaryColor = incoming.primaryColor;
20421
20467
  if (!(existing_primaryColor === incoming_primaryColor)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lwc-adapters-uiapi",
3
- "version": "1.465.0",
3
+ "version": "1.466.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.465.0"
34
+ "@salesforce/lds-adapters-uiapi": "^1.466.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "@luvio/lwc-luvio": "0.161.2",
38
- "@salesforce/lds-default-luvio": "^1.465.0"
38
+ "@salesforce/lds-default-luvio": "^1.466.0"
39
39
  }
40
40
  }