@salesforce/lwc-adapters-uiapi 1.241.0 → 1.242.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 +4 -10
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -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
|
}
|