@salesforce/lwc-adapters-uiapi 1.241.0 → 1.242.1
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 +5 -11
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -535,7 +535,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
535
535
|
}
|
|
536
536
|
return resourceParams;
|
|
537
537
|
}
|
|
538
|
-
// engine version: 0.150.
|
|
538
|
+
// engine version: 0.150.2-5dcb5d26
|
|
539
539
|
|
|
540
540
|
/**
|
|
541
541
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -41209,22 +41209,12 @@ function selectType$E(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
41209
41209
|
return sink;
|
|
41210
41210
|
}
|
|
41211
41211
|
|
|
41212
|
-
/**
|
|
41213
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
41214
|
-
* All rights reserved.
|
|
41215
|
-
* For full license text, see the LICENSE.txt file
|
|
41216
|
-
*/
|
|
41217
|
-
|
|
41218
41212
|
const API_NAMESPACE = 'UiApi';
|
|
41219
41213
|
const RECORD_REPRESENTATION_NAME = 'RecordRepresentation';
|
|
41220
41214
|
const RECORD_VIEW_ENTITY_REPRESENTATION_NAME = 'RecordViewEntityRepresentation';
|
|
41221
41215
|
const RECORD_ID_PREFIX = `${API_NAMESPACE}::${RECORD_REPRESENTATION_NAME}:`;
|
|
41222
41216
|
const RECORD_VIEW_ENTITY_ID_PREFIX = `${API_NAMESPACE}::${RECORD_VIEW_ENTITY_REPRESENTATION_NAME}:Name:`;
|
|
41223
41217
|
const RECORD_FIELDS_KEY_JUNCTION = '__fields__';
|
|
41224
|
-
function isStoreKeyRecordViewEntity(key) {
|
|
41225
|
-
return (key.indexOf(RECORD_VIEW_ENTITY_ID_PREFIX) > -1 &&
|
|
41226
|
-
key.indexOf(RECORD_FIELDS_KEY_JUNCTION) === -1);
|
|
41227
|
-
}
|
|
41228
41218
|
function extractRecordIdFromStoreKey(key) {
|
|
41229
41219
|
if (key === undefined ||
|
|
41230
41220
|
(key.indexOf(RECORD_ID_PREFIX) === -1 && key.indexOf(RECORD_VIEW_ENTITY_ID_PREFIX) === -1)) {
|
|
@@ -41233,6 +41223,10 @@ function extractRecordIdFromStoreKey(key) {
|
|
|
41233
41223
|
const parts = key.split(':');
|
|
41234
41224
|
return parts[parts.length - 1].split('_')[0];
|
|
41235
41225
|
}
|
|
41226
|
+
function isStoreKeyRecordViewEntity(key) {
|
|
41227
|
+
return (key.indexOf(RECORD_VIEW_ENTITY_ID_PREFIX) > -1 &&
|
|
41228
|
+
key.indexOf(RECORD_FIELDS_KEY_JUNCTION) === -1);
|
|
41229
|
+
}
|
|
41236
41230
|
function buildRecordRepKeyFromId(recordId) {
|
|
41237
41231
|
return `${API_NAMESPACE}::${RECORD_REPRESENTATION_NAME}:${recordId}`;
|
|
41238
41232
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lwc-adapters-uiapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.242.1",
|
|
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.150.
|
|
37
|
+
"@luvio/lwc-luvio": "0.150.2",
|
|
38
38
|
"@salesforce/lds-default-luvio": "*"
|
|
39
39
|
}
|
|
40
40
|
}
|