@salesforce/lds-runtime-aura 1.282.0 → 1.284.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/ldsEngineCreator.js +17 -4
- package/package.json +9 -9
package/dist/ldsEngineCreator.js
CHANGED
|
@@ -1457,6 +1457,7 @@ class GetRecordAvatarsRequestStrategy extends LuvioAdapterRequestStrategy {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
1459
|
|
|
1460
|
+
const COERCE_FIELD_ID_ARRAY_OPTIONS = { onlyQualifiedFieldNames: true };
|
|
1460
1461
|
class GetRecordRequestStrategy extends LuvioAdapterRequestStrategy {
|
|
1461
1462
|
constructor() {
|
|
1462
1463
|
super(...arguments);
|
|
@@ -1476,8 +1477,8 @@ class GetRecordRequestStrategy extends LuvioAdapterRequestStrategy {
|
|
|
1476
1477
|
if (request.config.fields === undefined && request.config.optionalFields === undefined) {
|
|
1477
1478
|
return request;
|
|
1478
1479
|
}
|
|
1479
|
-
let fields = coerceFieldIdArray(request.config.fields) || [];
|
|
1480
|
-
let optionalFields = coerceFieldIdArray(request.config.optionalFields) || [];
|
|
1480
|
+
let fields = coerceFieldIdArray(request.config.fields, COERCE_FIELD_ID_ARRAY_OPTIONS) || [];
|
|
1481
|
+
let optionalFields = coerceFieldIdArray(request.config.optionalFields, COERCE_FIELD_ID_ARRAY_OPTIONS) || [];
|
|
1481
1482
|
return {
|
|
1482
1483
|
...request,
|
|
1483
1484
|
config: {
|
|
@@ -2321,6 +2322,17 @@ function initializeOneStore() {
|
|
|
2321
2322
|
registration.setServices(matchingServices);
|
|
2322
2323
|
}
|
|
2323
2324
|
});
|
|
2325
|
+
withRegistration('commandModule-uiapi', (registration) => {
|
|
2326
|
+
if (Object.entries(registration.services).every(([service, version]) => service in services &&
|
|
2327
|
+
satisfies(serviceVersions[service], version) &&
|
|
2328
|
+
(services[service]))) {
|
|
2329
|
+
// To-do: Revise how the adapter references get resolved - most likely through importing.
|
|
2330
|
+
// https://github.com/salesforce-experience-platform-emu/lds-lightning-platform/pull/4961/files#r1522283942
|
|
2331
|
+
const { getObjectInfo, getObjectInfos } = registration.setServices(services);
|
|
2332
|
+
configuration.setGetObjectInfoAdapter(getObjectInfo);
|
|
2333
|
+
configuration.setGetObjectInfosAdapter(getObjectInfos);
|
|
2334
|
+
}
|
|
2335
|
+
});
|
|
2324
2336
|
}
|
|
2325
2337
|
function buildAuraNetworkService() {
|
|
2326
2338
|
const auraNetwork = {
|
|
@@ -2330,12 +2342,13 @@ function buildAuraNetworkService() {
|
|
|
2330
2342
|
}
|
|
2331
2343
|
// service function to be invoked by Aura
|
|
2332
2344
|
function ldsEngineCreator() {
|
|
2333
|
-
|
|
2345
|
+
// One store initialization needs to happen first in order to set the one store adapter correctly in configuration object.
|
|
2334
2346
|
if (oneStoreEnabled.isOpen({ fallback: false })) {
|
|
2335
2347
|
initializeOneStore();
|
|
2336
2348
|
}
|
|
2349
|
+
initializeLDS();
|
|
2337
2350
|
return { name: 'ldsEngineCreator' };
|
|
2338
2351
|
}
|
|
2339
2352
|
|
|
2340
2353
|
export { buildPredictorForContext, ldsEngineCreator as default, initializeLDS, initializeOneStore };
|
|
2341
|
-
// version: 1.
|
|
2354
|
+
// version: 1.284.0-a7e8dc51c
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-aura",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.284.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Aura runtime",
|
|
6
6
|
"main": "dist/ldsEngineCreator.js",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@luvio/registry": "^3.0.0",
|
|
38
38
|
"@luvio/runtime": "3.4.3",
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
40
|
-
"@salesforce/lds-ads-bridge": "^1.
|
|
41
|
-
"@salesforce/lds-aura-storage": "^1.
|
|
42
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
44
|
-
"@salesforce/lds-network-aura": "^1.
|
|
45
|
-
"@salesforce/lds-network-fetch-with-jwt": "^1.
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.284.0",
|
|
40
|
+
"@salesforce/lds-ads-bridge": "^1.284.0",
|
|
41
|
+
"@salesforce/lds-aura-storage": "^1.284.0",
|
|
42
|
+
"@salesforce/lds-bindings": "^1.284.0",
|
|
43
|
+
"@salesforce/lds-instrumentation": "^1.284.0",
|
|
44
|
+
"@salesforce/lds-network-aura": "^1.284.0",
|
|
45
|
+
"@salesforce/lds-network-fetch-with-jwt": "^1.284.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@luvio/network-adapter-composable": "0.154.15"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
{
|
|
52
52
|
"path": "./dist/ldsEngineCreator.js",
|
|
53
53
|
"maxSize": {
|
|
54
|
-
"none": "
|
|
54
|
+
"none": "90 kB",
|
|
55
55
|
"min": "37.5 kB",
|
|
56
56
|
"compressed": "17 kB"
|
|
57
57
|
}
|