@salesforce/lwc-adapters-uiapi 1.291.0 → 1.293.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 +66 -15
  2. package/package.json +4 -4
package/dist/main.js CHANGED
@@ -572,7 +572,7 @@ function createResourceParamsImpl(config, configMetadata) {
572
572
  }
573
573
  return resourceParams;
574
574
  }
575
- // engine version: 0.154.18-b8141c42
575
+ // engine version: 0.154.19-8ff414af
576
576
 
577
577
  /**
578
578
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -17735,6 +17735,11 @@ function validate$1J(obj, path = 'FieldRepresentation') {
17735
17735
  if (typeof obj_dataType !== 'string') {
17736
17736
  return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
17737
17737
  }
17738
+ const obj_externalId = obj.externalId;
17739
+ const path_externalId = path + '.externalId';
17740
+ if (typeof obj_externalId !== 'boolean') {
17741
+ return new TypeError('Expected "boolean" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
17742
+ }
17738
17743
  const obj_extraTypeInfo = obj.extraTypeInfo;
17739
17744
  const path_extraTypeInfo = path + '.extraTypeInfo';
17740
17745
  let obj_extraTypeInfo_union0 = null;
@@ -17841,6 +17846,32 @@ function validate$1J(obj, path = 'FieldRepresentation') {
17841
17846
  if (typeof obj_length !== 'number' || (typeof obj_length === 'number' && Math.floor(obj_length) !== obj_length)) {
17842
17847
  return new TypeError('Expected "integer" but received "' + typeof obj_length + '" (at "' + path_length + '")');
17843
17848
  }
17849
+ const obj_maskType = obj.maskType;
17850
+ const path_maskType = path + '.maskType';
17851
+ let obj_maskType_union0 = null;
17852
+ const obj_maskType_union0_error = (() => {
17853
+ if (typeof obj_maskType !== 'string') {
17854
+ return new TypeError('Expected "string" but received "' + typeof obj_maskType + '" (at "' + path_maskType + '")');
17855
+ }
17856
+ })();
17857
+ if (obj_maskType_union0_error != null) {
17858
+ obj_maskType_union0 = obj_maskType_union0_error.message;
17859
+ }
17860
+ let obj_maskType_union1 = null;
17861
+ const obj_maskType_union1_error = (() => {
17862
+ if (obj_maskType !== null) {
17863
+ return new TypeError('Expected "null" but received "' + typeof obj_maskType + '" (at "' + path_maskType + '")');
17864
+ }
17865
+ })();
17866
+ if (obj_maskType_union1_error != null) {
17867
+ obj_maskType_union1 = obj_maskType_union1_error.message;
17868
+ }
17869
+ if (obj_maskType_union0 && obj_maskType_union1) {
17870
+ let message = 'Object doesn\'t match union (at "' + path_maskType + '")';
17871
+ message += '\n' + obj_maskType_union0.split('\n').map((line) => '\t' + line).join('\n');
17872
+ message += '\n' + obj_maskType_union1.split('\n').map((line) => '\t' + line).join('\n');
17873
+ return new TypeError(message);
17874
+ }
17844
17875
  const obj_nameField = obj.nameField;
17845
17876
  const path_nameField = path + '.nameField';
17846
17877
  if (typeof obj_nameField !== 'boolean') {
@@ -18003,7 +18034,7 @@ function validate$1I(obj, path = 'ThemeInfoRepresentation') {
18003
18034
  }
18004
18035
 
18005
18036
  const TTL$C = 900000;
18006
- const VERSION$2g = "ec9370a0cd56f4769fe9ec5cd942ff30";
18037
+ const VERSION$2g = "2302a71ca718abb60353eb88dedb1c12";
18007
18038
  function validate$1H(obj, path = 'ObjectInfoRepresentation') {
18008
18039
  const v_error = (() => {
18009
18040
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -18081,6 +18112,11 @@ function validate$1H(obj, path = 'ObjectInfoRepresentation') {
18081
18112
  return new TypeError(message);
18082
18113
  }
18083
18114
  }
18115
+ const obj_compactLayoutable = obj.compactLayoutable;
18116
+ const path_compactLayoutable = path + '.compactLayoutable';
18117
+ if (typeof obj_compactLayoutable !== 'boolean') {
18118
+ return new TypeError('Expected "boolean" but received "' + typeof obj_compactLayoutable + '" (at "' + path_compactLayoutable + '")');
18119
+ }
18084
18120
  const obj_createable = obj.createable;
18085
18121
  const path_createable = path + '.createable';
18086
18122
  if (typeof obj_createable !== 'boolean') {
@@ -18243,6 +18279,11 @@ function validate$1H(obj, path = 'ObjectInfoRepresentation') {
18243
18279
  return new TypeError(message);
18244
18280
  }
18245
18281
  }
18282
+ const obj_searchLayoutable = obj.searchLayoutable;
18283
+ const path_searchLayoutable = path + '.searchLayoutable';
18284
+ if (typeof obj_searchLayoutable !== 'boolean') {
18285
+ return new TypeError('Expected "boolean" but received "' + typeof obj_searchLayoutable + '" (at "' + path_searchLayoutable + '")');
18286
+ }
18246
18287
  const obj_searchable = obj.searchable;
18247
18288
  const path_searchable = path + '.searchable';
18248
18289
  if (typeof obj_searchable !== 'boolean') {
@@ -18323,6 +18364,10 @@ const select$2T = function ObjectInfoRepresentationSelect() {
18323
18364
  kind: 'Object',
18324
18365
  opaque: true
18325
18366
  },
18367
+ {
18368
+ name: 'compactLayoutable',
18369
+ kind: 'Scalar'
18370
+ },
18326
18371
  {
18327
18372
  name: 'createable',
18328
18373
  kind: 'Scalar'
@@ -18387,6 +18432,10 @@ const select$2T = function ObjectInfoRepresentationSelect() {
18387
18432
  kind: 'Object',
18388
18433
  opaque: true
18389
18434
  },
18435
+ {
18436
+ name: 'searchLayoutable',
18437
+ kind: 'Scalar'
18438
+ },
18390
18439
  {
18391
18440
  name: 'searchable',
18392
18441
  kind: 'Scalar'
@@ -24728,7 +24777,7 @@ function getTypeCacheKeys$1J(rootKeySet, luvio, input, fullPathFactory) {
24728
24777
  }
24729
24778
 
24730
24779
  const TTL$t = 300000;
24731
- const VERSION$20 = "b33c534240965bedfcf073228d48b940";
24780
+ const VERSION$20 = "0cd492fdd6c713c206ef53dc02175f71";
24732
24781
  function validate$1j(obj, path = 'AppRepresentation') {
24733
24782
  const v_error = (() => {
24734
24783
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -24875,6 +24924,11 @@ function validate$1j(obj, path = 'AppRepresentation') {
24875
24924
  if (typeof obj_isNavTabPersistenceDisabled !== 'boolean') {
24876
24925
  return new TypeError('Expected "boolean" but received "' + typeof obj_isNavTabPersistenceDisabled + '" (at "' + path_isNavTabPersistenceDisabled + '")');
24877
24926
  }
24927
+ const obj_isOmniPinnedViewEnabled = obj.isOmniPinnedViewEnabled;
24928
+ const path_isOmniPinnedViewEnabled = path + '.isOmniPinnedViewEnabled';
24929
+ if (typeof obj_isOmniPinnedViewEnabled !== 'boolean') {
24930
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isOmniPinnedViewEnabled + '" (at "' + path_isOmniPinnedViewEnabled + '")');
24931
+ }
24878
24932
  const obj_label = obj.label;
24879
24933
  const path_label = path + '.label';
24880
24934
  if (typeof obj_label !== 'string') {
@@ -25043,6 +25097,10 @@ const select$2t = function AppRepresentationSelect() {
25043
25097
  name: 'isNavTabPersistenceDisabled',
25044
25098
  kind: 'Scalar'
25045
25099
  },
25100
+ {
25101
+ name: 'isOmniPinnedViewEnabled',
25102
+ kind: 'Scalar'
25103
+ },
25046
25104
  {
25047
25105
  name: 'label',
25048
25106
  kind: 'Scalar'
@@ -25098,6 +25156,11 @@ function equals$I(existing, incoming) {
25098
25156
  if (!(existing_isNavTabPersistenceDisabled === incoming_isNavTabPersistenceDisabled)) {
25099
25157
  return false;
25100
25158
  }
25159
+ const existing_isOmniPinnedViewEnabled = existing.isOmniPinnedViewEnabled;
25160
+ const incoming_isOmniPinnedViewEnabled = incoming.isOmniPinnedViewEnabled;
25161
+ if (!(existing_isOmniPinnedViewEnabled === incoming_isOmniPinnedViewEnabled)) {
25162
+ return false;
25163
+ }
25101
25164
  const existing_selected = existing.selected;
25102
25165
  const incoming_selected = incoming.selected;
25103
25166
  if (!(existing_selected === incoming_selected)) {
@@ -60808,23 +60871,11 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
60808
60871
  return config;
60809
60872
  }
60810
60873
 
60811
- const ISO8601_DATE_REGEX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z$/;
60812
60874
  function getHeaders(clientOptions) {
60813
60875
  const headers = {};
60814
60876
  if (untrustedIsObject(clientOptions)) {
60815
60877
  if (typeof clientOptions.ifUnmodifiedSince === 'string') {
60816
60878
  headers.ifUnmodifiedSince = clientOptions.ifUnmodifiedSince;
60817
- // HTTP standard format date is expected by UI-API
60818
- // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since
60819
- // A component built for Connect API must use If-Unmodified-Since
60820
- // dates formatted as ISO 8601, which does not match the HTTP spec.
60821
- // For compatibility, convert the date to match the standard.
60822
- if (headers.ifUnmodifiedSince.match(ISO8601_DATE_REGEX)) {
60823
- const utcString = new Date(headers.ifUnmodifiedSince).toUTCString();
60824
- if (utcString !== 'Invalid Date') {
60825
- headers.ifUnmodifiedSince = utcString;
60826
- }
60827
- }
60828
60879
  }
60829
60880
  }
60830
60881
  return headers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lwc-adapters-uiapi",
3
- "version": "1.291.0",
3
+ "version": "1.293.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.291.0"
34
+ "@salesforce/lds-adapters-uiapi": "^1.293.0"
35
35
  },
36
36
  "dependencies": {
37
- "@luvio/lwc-luvio": "0.154.18",
38
- "@salesforce/lds-default-luvio": "^1.291.0"
37
+ "@luvio/lwc-luvio": "0.154.19",
38
+ "@salesforce/lds-default-luvio": "^1.293.0"
39
39
  }
40
40
  }