@salesforce/lwc-adapters-uiapi 1.264.0 → 1.265.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.
- package/dist/main.js +23 -11
- package/package.json +4 -4
package/dist/main.js
CHANGED
|
@@ -569,7 +569,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
569
569
|
}
|
|
570
570
|
return resourceParams;
|
|
571
571
|
}
|
|
572
|
-
// engine version: 0.154.
|
|
572
|
+
// engine version: 0.154.6-a3a5150a
|
|
573
573
|
|
|
574
574
|
/**
|
|
575
575
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -12372,8 +12372,7 @@ function markNulledOutPath(record, path) {
|
|
|
12372
12372
|
const resolved = link.follow();
|
|
12373
12373
|
if (isGraphNode(resolved) &&
|
|
12374
12374
|
resolved.isScalar('value') &&
|
|
12375
|
-
path.length > 0 &&
|
|
12376
|
-
// TODO [W-14082782]: temporary fix
|
|
12375
|
+
path.length > 0 && // TODO [W-14082782]: temporary fix
|
|
12377
12376
|
!isFrozen(link.data)) {
|
|
12378
12377
|
const linkState = link.linkData();
|
|
12379
12378
|
const fields = linkState === undefined ? [] : linkState.fields;
|
|
@@ -16576,7 +16575,15 @@ function prepareRequest_getListRecords(luvio, context, config, listInfo, snapsho
|
|
|
16576
16575
|
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
16577
16576
|
throw new Error('how did MRU config get here?');
|
|
16578
16577
|
}
|
|
16578
|
+
let releaseKeys = () => { };
|
|
16579
16579
|
if (snapshot) {
|
|
16580
|
+
if (snapshot.state !== 'Error') {
|
|
16581
|
+
const { recordId, seenRecords } = snapshot;
|
|
16582
|
+
const snapshotRetainedIds = seenRecords === undefined ? [recordId] : [recordId, ...seenRecords.keysAsArray()];
|
|
16583
|
+
const snapshotKeys = [];
|
|
16584
|
+
snapshotRetainedIds.forEach((key) => snapshotKeys.push(key));
|
|
16585
|
+
releaseKeys = luvio.storeRetain(snapshotKeys);
|
|
16586
|
+
}
|
|
16580
16587
|
const paginationKey = paginationKeyBuilder(luvio, {
|
|
16581
16588
|
listViewId: listInfo.eTag,
|
|
16582
16589
|
searchTerm: null,
|
|
@@ -16616,11 +16623,14 @@ function prepareRequest_getListRecords(luvio, context, config, listInfo, snapsho
|
|
|
16616
16623
|
request.queryParams.pageToken = pageToken;
|
|
16617
16624
|
}
|
|
16618
16625
|
}
|
|
16619
|
-
return
|
|
16626
|
+
return {
|
|
16627
|
+
request: request,
|
|
16628
|
+
releaseKeys: releaseKeys,
|
|
16629
|
+
};
|
|
16620
16630
|
}
|
|
16621
16631
|
// Only call this function if you are certain the list view hasn't changed (ie:
|
|
16622
16632
|
// the listInfoEtag in the body is the same as the cached listInfo.eTag)
|
|
16623
|
-
function onResourceSuccess_getListRecords(luvio, context, config, listInfo, response) {
|
|
16633
|
+
function onResourceSuccess_getListRecords(luvio, context, config, listInfo, response, releaseKeys) {
|
|
16624
16634
|
const { body } = response;
|
|
16625
16635
|
const { listInfoETag } = body;
|
|
16626
16636
|
const fields = listFields(luvio, config, listInfo).processRecords(body.records);
|
|
@@ -16632,18 +16642,20 @@ function onResourceSuccess_getListRecords(luvio, context, config, listInfo, resp
|
|
|
16632
16642
|
listViewApiName: listInfo.listReference.listViewApiName,
|
|
16633
16643
|
}), ingest$1S, body);
|
|
16634
16644
|
const snapshot = buildCachedSnapshot$7(luvio, luvio.storeLookup.bind(luvio), context, config, listInfo, fields);
|
|
16645
|
+
releaseKeys();
|
|
16635
16646
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16636
16647
|
}
|
|
16637
|
-
function onResourceError_getListRecords(luvio, context, config, listInfo, err) {
|
|
16648
|
+
function onResourceError_getListRecords(luvio, context, config, listInfo, err, releaseKeys) {
|
|
16638
16649
|
const errorSnapshot = luvio.errorSnapshot(err);
|
|
16639
16650
|
luvio.storeIngestError(keyBuilder$38(luvio, {
|
|
16640
16651
|
...listInfo.listReference,
|
|
16641
16652
|
sortBy: getSortBy(config, context),
|
|
16642
16653
|
}), errorSnapshot);
|
|
16654
|
+
releaseKeys();
|
|
16643
16655
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
16644
16656
|
}
|
|
16645
16657
|
function buildNetworkSnapshot_getListRecords(luvio, context, config, listInfo, dispatchOptions, snapshot) {
|
|
16646
|
-
const request = prepareRequest_getListRecords(luvio, context, config, listInfo, snapshot);
|
|
16658
|
+
const { request, releaseKeys } = prepareRequest_getListRecords(luvio, context, config, listInfo, snapshot);
|
|
16647
16659
|
return luvio.dispatchResourceRequest(request).then((response) => {
|
|
16648
16660
|
const { body } = response;
|
|
16649
16661
|
// fall back to list-ui if list view has changed
|
|
@@ -16657,14 +16669,14 @@ function buildNetworkSnapshot_getListRecords(luvio, context, config, listInfo, d
|
|
|
16657
16669
|
body.sortBy = sortBy.split(',');
|
|
16658
16670
|
}
|
|
16659
16671
|
// else ingest
|
|
16660
|
-
return luvio.handleSuccessResponse(() => onResourceSuccess_getListRecords(luvio, context, config, listInfo, response), () => {
|
|
16672
|
+
return luvio.handleSuccessResponse(() => onResourceSuccess_getListRecords(luvio, context, config, listInfo, response, releaseKeys), () => {
|
|
16661
16673
|
const cache = new StoreKeyMap();
|
|
16662
16674
|
getTypeCacheKeys$1V(cache, luvio, body);
|
|
16663
16675
|
return cache;
|
|
16664
16676
|
});
|
|
16665
16677
|
}, (err) => {
|
|
16666
16678
|
return luvio.handleErrorResponse(() => {
|
|
16667
|
-
return onResourceError_getListRecords(luvio, context, config, listInfo, err);
|
|
16679
|
+
return onResourceError_getListRecords(luvio, context, config, listInfo, err, releaseKeys);
|
|
16668
16680
|
});
|
|
16669
16681
|
});
|
|
16670
16682
|
}
|
|
@@ -22100,7 +22112,7 @@ function select$2t(luvio, params) {
|
|
|
22100
22112
|
return select$2u();
|
|
22101
22113
|
}
|
|
22102
22114
|
function keyBuilder$2D(luvio, params) {
|
|
22103
|
-
return keyPrefix + '::FlexipageFormulaActivationRepresentation:(' + 'application:' + params.queryParams.application + ',' + '
|
|
22115
|
+
return keyPrefix + '::FlexipageFormulaActivationRepresentation:(' + 'application:' + params.queryParams.application + ',' + 'objectApiNames:' + params.queryParams.objectApiNames + ',' + 'actionFeature:' + params.urlParams.actionFeature + ')';
|
|
22104
22116
|
}
|
|
22105
22117
|
function getResponseCacheKeys$U(storeKeyMap, luvio, resourceParams, response) {
|
|
22106
22118
|
getTypeCacheKeys$1F(storeKeyMap, luvio, response, () => keyBuilder$2D(luvio, resourceParams));
|
|
@@ -22152,7 +22164,7 @@ const adapterName$P = 'getFlexipageFormulaOverrides';
|
|
|
22152
22164
|
const getFlexipageFormulaOverrides_ConfigPropertyMetadata = [
|
|
22153
22165
|
generateParamConfigMetadata('actionFeature', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
|
|
22154
22166
|
generateParamConfigMetadata('application', false, 1 /* QueryParameter */, 0 /* String */, false, getObjectApiName$1),
|
|
22155
|
-
generateParamConfigMetadata('
|
|
22167
|
+
generateParamConfigMetadata('objectApiNames', false, 1 /* QueryParameter */, 0 /* String */, true, toSortedStringArray),
|
|
22156
22168
|
];
|
|
22157
22169
|
const getFlexipageFormulaOverrides_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$P, getFlexipageFormulaOverrides_ConfigPropertyMetadata);
|
|
22158
22170
|
const createResourceParams$S = /*#__PURE__*/ createResourceParams$k(getFlexipageFormulaOverrides_ConfigPropertyMetadata);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lwc-adapters-uiapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.265.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.
|
|
34
|
+
"@salesforce/lds-adapters-uiapi": "^1.265.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@luvio/lwc-luvio": "0.154.
|
|
38
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
37
|
+
"@luvio/lwc-luvio": "0.154.6",
|
|
38
|
+
"@salesforce/lds-default-luvio": "^1.265.0"
|
|
39
39
|
}
|
|
40
40
|
}
|