@salesforce/lwc-adapters-uiapi 1.136.2 → 1.136.4
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.
- package/dist/main.js +87 -51
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -364,7 +364,7 @@ var FragmentReadResultState;
|
|
|
364
364
|
({
|
|
365
365
|
state: FragmentReadResultState.Missing,
|
|
366
366
|
});
|
|
367
|
-
// engine version: 0.140.
|
|
367
|
+
// engine version: 0.140.2-f4576b7c
|
|
368
368
|
|
|
369
369
|
/**
|
|
370
370
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -7468,6 +7468,63 @@ keyMap(specifiedScalarTypes.concat(introspectionTypes), function (type) {
|
|
|
7468
7468
|
return type.name;
|
|
7469
7469
|
});
|
|
7470
7470
|
|
|
7471
|
+
function serializeFieldArguments(argumentNodes, variables) {
|
|
7472
|
+
const mutableArgumentNodes = Object.assign([], argumentNodes);
|
|
7473
|
+
return `args__(${mutableArgumentNodes
|
|
7474
|
+
.sort((a, b) => {
|
|
7475
|
+
const aName = a.name.value.toUpperCase();
|
|
7476
|
+
const bName = b.name.value.toUpperCase();
|
|
7477
|
+
return aName < bName ? -1 : aName > bName ? 1 : 0;
|
|
7478
|
+
})
|
|
7479
|
+
.map((node) => serializeArgNode(node, variables))
|
|
7480
|
+
.join('::')})`;
|
|
7481
|
+
}
|
|
7482
|
+
function serializeArgNode(argumentNode, variables) {
|
|
7483
|
+
const argName = argumentNode.name.value;
|
|
7484
|
+
return `${argName}:${serializeValueNode(argumentNode.value, variables)}`;
|
|
7485
|
+
}
|
|
7486
|
+
function serializeValueNode(valueNode, variables) {
|
|
7487
|
+
switch (valueNode.kind) {
|
|
7488
|
+
case 'BooleanValue':
|
|
7489
|
+
return valueNode.value + '';
|
|
7490
|
+
case 'IntValue':
|
|
7491
|
+
case 'FloatValue':
|
|
7492
|
+
case 'EnumValue':
|
|
7493
|
+
case 'StringValue':
|
|
7494
|
+
return valueNode.value;
|
|
7495
|
+
case 'ListValue': {
|
|
7496
|
+
const mutableValueNodeList = Object.assign([], valueNode.values);
|
|
7497
|
+
return mutableValueNodeList
|
|
7498
|
+
.sort((a, b) => {
|
|
7499
|
+
const aVal = serializeValueNode(a, variables).toUpperCase();
|
|
7500
|
+
const bVal = serializeValueNode(b, variables).toUpperCase();
|
|
7501
|
+
return aVal < bVal ? -1 : aVal > bVal ? 1 : 0;
|
|
7502
|
+
})
|
|
7503
|
+
.map((val, i) => `${serializeValueNode(val, variables)}[${i}]`)
|
|
7504
|
+
.join(',');
|
|
7505
|
+
}
|
|
7506
|
+
case 'Variable': {
|
|
7507
|
+
const variableValue = variables[valueNode.name.value];
|
|
7508
|
+
return typeof variableValue === 'string'
|
|
7509
|
+
? variableValue
|
|
7510
|
+
: JSON.stringify(variableValue);
|
|
7511
|
+
}
|
|
7512
|
+
case 'NullValue':
|
|
7513
|
+
return 'null';
|
|
7514
|
+
case 'ObjectValue': {
|
|
7515
|
+
const mutableFieldNodeList = Object.assign([], valueNode.fields);
|
|
7516
|
+
return mutableFieldNodeList
|
|
7517
|
+
.sort((a, b) => {
|
|
7518
|
+
const aName = a.name.value.toUpperCase();
|
|
7519
|
+
const bName = b.name.value.toUpperCase();
|
|
7520
|
+
return aName < bName ? -1 : aName > bName ? 1 : 0;
|
|
7521
|
+
})
|
|
7522
|
+
.map((field) => field.name.value + ':' + serializeValueNode(field.value, variables))
|
|
7523
|
+
.join(',');
|
|
7524
|
+
}
|
|
7525
|
+
}
|
|
7526
|
+
}
|
|
7527
|
+
|
|
7471
7528
|
/**
|
|
7472
7529
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
7473
7530
|
* All rights reserved.
|
|
@@ -24540,7 +24597,7 @@ function getTypeCacheKeys$1d(luvio, input, fullPathFactory) {
|
|
|
24540
24597
|
}
|
|
24541
24598
|
|
|
24542
24599
|
const TTL$q = 300000;
|
|
24543
|
-
const VERSION$1y = "
|
|
24600
|
+
const VERSION$1y = "38ee38ead5262047cfa7604e8bf72d4b";
|
|
24544
24601
|
function validate$11(obj, path = 'AppRepresentation') {
|
|
24545
24602
|
const v_error = (() => {
|
|
24546
24603
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -24606,8 +24663,29 @@ function validate$11(obj, path = 'AppRepresentation') {
|
|
|
24606
24663
|
}
|
|
24607
24664
|
const obj_iconUrl = obj.iconUrl;
|
|
24608
24665
|
const path_iconUrl = path + '.iconUrl';
|
|
24609
|
-
|
|
24610
|
-
|
|
24666
|
+
let obj_iconUrl_union0 = null;
|
|
24667
|
+
const obj_iconUrl_union0_error = (() => {
|
|
24668
|
+
if (typeof obj_iconUrl !== 'string') {
|
|
24669
|
+
return new TypeError('Expected "string" but received "' + typeof obj_iconUrl + '" (at "' + path_iconUrl + '")');
|
|
24670
|
+
}
|
|
24671
|
+
})();
|
|
24672
|
+
if (obj_iconUrl_union0_error != null) {
|
|
24673
|
+
obj_iconUrl_union0 = obj_iconUrl_union0_error.message;
|
|
24674
|
+
}
|
|
24675
|
+
let obj_iconUrl_union1 = null;
|
|
24676
|
+
const obj_iconUrl_union1_error = (() => {
|
|
24677
|
+
if (obj_iconUrl !== null) {
|
|
24678
|
+
return new TypeError('Expected "null" but received "' + typeof obj_iconUrl + '" (at "' + path_iconUrl + '")');
|
|
24679
|
+
}
|
|
24680
|
+
})();
|
|
24681
|
+
if (obj_iconUrl_union1_error != null) {
|
|
24682
|
+
obj_iconUrl_union1 = obj_iconUrl_union1_error.message;
|
|
24683
|
+
}
|
|
24684
|
+
if (obj_iconUrl_union0 && obj_iconUrl_union1) {
|
|
24685
|
+
let message = 'Object doesn\'t match union (at "' + path_iconUrl + '")';
|
|
24686
|
+
message += '\n' + obj_iconUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
24687
|
+
message += '\n' + obj_iconUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
24688
|
+
return new TypeError(message);
|
|
24611
24689
|
}
|
|
24612
24690
|
const obj_isNavAutoTempTabsDisabled = obj.isNavAutoTempTabsDisabled;
|
|
24613
24691
|
const path_isNavAutoTempTabsDisabled = path + '.isNavAutoTempTabsDisabled';
|
|
@@ -24872,11 +24950,6 @@ function equals$E(existing, incoming) {
|
|
|
24872
24950
|
if (!(existing_headerColor === incoming_headerColor)) {
|
|
24873
24951
|
return false;
|
|
24874
24952
|
}
|
|
24875
|
-
const existing_iconUrl = existing.iconUrl;
|
|
24876
|
-
const incoming_iconUrl = incoming.iconUrl;
|
|
24877
|
-
if (!(existing_iconUrl === incoming_iconUrl)) {
|
|
24878
|
-
return false;
|
|
24879
|
-
}
|
|
24880
24953
|
const existing_label = existing.label;
|
|
24881
24954
|
const incoming_label = incoming.label;
|
|
24882
24955
|
if (!(existing_label === incoming_label)) {
|
|
@@ -24912,6 +24985,11 @@ function equals$E(existing, incoming) {
|
|
|
24912
24985
|
if (equals_formFactors_items === false) {
|
|
24913
24986
|
return false;
|
|
24914
24987
|
}
|
|
24988
|
+
const existing_iconUrl = existing.iconUrl;
|
|
24989
|
+
const incoming_iconUrl = incoming.iconUrl;
|
|
24990
|
+
if (!(existing_iconUrl === incoming_iconUrl)) {
|
|
24991
|
+
return false;
|
|
24992
|
+
}
|
|
24915
24993
|
const existing_mobileStartUrl = existing.mobileStartUrl;
|
|
24916
24994
|
const incoming_mobileStartUrl = incoming.mobileStartUrl;
|
|
24917
24995
|
if (!(existing_mobileStartUrl === incoming_mobileStartUrl)) {
|
|
@@ -49728,48 +49806,6 @@ function ingestTypeWithStrategy(astNode, state, isCursorConnectionType, { key, i
|
|
|
49728
49806
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
49729
49807
|
return createLink(key);
|
|
49730
49808
|
}
|
|
49731
|
-
function serializeFieldArguments(argumentNodes, variables) {
|
|
49732
|
-
const mutableArgumentNodes = Object.assign([], argumentNodes);
|
|
49733
|
-
return `args__(${mutableArgumentNodes.sort((a, b) => {
|
|
49734
|
-
const aName = a.name.value.toUpperCase();
|
|
49735
|
-
const bName = b.name.value.toUpperCase();
|
|
49736
|
-
return aName < bName ? -1 : (aName > bName) ? 1 : 0;
|
|
49737
|
-
}).map(node => serializeArgNode(node, variables)).join("::")})`;
|
|
49738
|
-
}
|
|
49739
|
-
function serializeArgNode(argumentNode, variables) {
|
|
49740
|
-
const argName = argumentNode.name.value;
|
|
49741
|
-
return `${argName}:${serializeValueNode(argumentNode.value, variables)}`;
|
|
49742
|
-
}
|
|
49743
|
-
function serializeValueNode(valueNode, variables) {
|
|
49744
|
-
switch (valueNode.kind) {
|
|
49745
|
-
case ("BooleanValue"):
|
|
49746
|
-
return valueNode.value + '';
|
|
49747
|
-
case ("IntValue"):
|
|
49748
|
-
case ("FloatValue"):
|
|
49749
|
-
case ("EnumValue"):
|
|
49750
|
-
case ("StringValue"):
|
|
49751
|
-
return valueNode.value;
|
|
49752
|
-
case ("ListValue"):
|
|
49753
|
-
const mutableValueNodeList = Object.assign([], valueNode.values);
|
|
49754
|
-
return mutableValueNodeList.sort((a, b) => {
|
|
49755
|
-
const aVal = serializeValueNode(a, variables).toUpperCase();
|
|
49756
|
-
const bVal = serializeValueNode(b, variables).toUpperCase();
|
|
49757
|
-
return aVal < bVal ? -1 : (aVal > bVal) ? 1 : 0;
|
|
49758
|
-
}).map((val, i) => serializeValueNode(val, variables) + `[${i}]`).join(',');
|
|
49759
|
-
case ("Variable"):
|
|
49760
|
-
const variableValue = variables[valueNode.name.value];
|
|
49761
|
-
return typeof variableValue === "string" ? variableValue : JSON.stringify(variableValue);
|
|
49762
|
-
case ("NullValue"):
|
|
49763
|
-
return "null";
|
|
49764
|
-
case ("ObjectValue"):
|
|
49765
|
-
const mutableFieldNodeList = Object.assign([], valueNode.fields);
|
|
49766
|
-
return mutableFieldNodeList.sort((a, b) => {
|
|
49767
|
-
const aName = a.name.value.toUpperCase();
|
|
49768
|
-
const bName = b.name.value.toUpperCase();
|
|
49769
|
-
return aName < bName ? -1 : (aName > bName) ? 1 : 0;
|
|
49770
|
-
}).map(field => field.name.value + ":" + serializeValueNode(field.value, variables)).join(',');
|
|
49771
|
-
}
|
|
49772
|
-
}
|
|
49773
49809
|
const TTL$6 = 900000;
|
|
49774
49810
|
function applyMinimumFieldsToQuery(query) {
|
|
49775
49811
|
const fragmentMap = createFragmentMap(query);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lwc-adapters-uiapi",
|
|
3
|
-
"version": "1.136.
|
|
3
|
+
"version": "1.136.4",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "UIAPI adapters with LWC bindings",
|
|
6
6
|
"module": "dist/main.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@salesforce/lds-adapters-uiapi": "*"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@luvio/lwc-luvio": "0.140.
|
|
37
|
+
"@luvio/lwc-luvio": "0.140.2",
|
|
38
38
|
"@salesforce/lds-default-luvio": "*"
|
|
39
39
|
}
|
|
40
40
|
}
|