@salesforce/lds-runtime-aura 1.266.0-dev16 → 1.266.0-dev17
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
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import { HttpStatusCode, InMemoryStore, Environment, Luvio, InMemoryStoreQueryEvaluator } from 'force/luvioEngine';
|
|
16
16
|
import ldsTrackedFieldsBehaviorGate from '@salesforce/gate/lds.useNewTrackedFieldBehavior';
|
|
17
17
|
import usePredictiveLoading from '@salesforce/gate/lds.usePredictiveLoading';
|
|
18
|
-
import { getRecordAvatarsAdapterFactory, getRecordAdapterFactory,
|
|
18
|
+
import { getRecordAvatarsAdapterFactory, getRecordAdapterFactory, getRecordsAdapterFactory, getRecordActionsAdapterFactory, getObjectInfoAdapterFactory, getObjectInfosAdapterFactory, instrument, configuration, InMemoryRecordRepresentationQueryEvaluator, UiApiNamespace, RecordRepresentationRepresentationType, registerPrefetcher } from 'force/ldsAdaptersUiapi';
|
|
19
19
|
import { createStorage, clearStorages } from 'force/ldsStorage';
|
|
20
20
|
import { withRegistration, register, setDefaultLuvio } from 'force/ldsEngine';
|
|
21
21
|
import { REFRESH_ADAPTER_EVENT, ADAPTER_UNFULFILLED_ERROR, instrument as instrument$2 } from 'force/ldsBindings';
|
|
@@ -512,14 +512,16 @@ class GetRecordRequestStrategy extends LuvioAdapterRequestStrategy {
|
|
|
512
512
|
if (request.config.fields === undefined && request.config.optionalFields === undefined) {
|
|
513
513
|
return request;
|
|
514
514
|
}
|
|
515
|
-
let
|
|
516
|
-
|
|
515
|
+
let optionalFields = request.config.optionalFields || [];
|
|
516
|
+
if (!ArrayIsArray(optionalFields)) {
|
|
517
|
+
optionalFields = [optionalFields];
|
|
518
|
+
}
|
|
517
519
|
return {
|
|
518
520
|
...request,
|
|
519
521
|
config: {
|
|
520
522
|
...request.config,
|
|
521
523
|
fields: undefined,
|
|
522
|
-
optionalFields: [...fields, ...optionalFields],
|
|
524
|
+
optionalFields: [...(request.config.fields || []), ...optionalFields],
|
|
523
525
|
},
|
|
524
526
|
};
|
|
525
527
|
}
|
|
@@ -571,17 +573,11 @@ class GetRecordsRequestStrategy extends LuvioAdapterRequestStrategy {
|
|
|
571
573
|
}
|
|
572
574
|
|
|
573
575
|
function normalizeRecordIds(recordIds) {
|
|
574
|
-
if (!
|
|
576
|
+
if (!Array.isArray(recordIds)) {
|
|
575
577
|
return [recordIds];
|
|
576
578
|
}
|
|
577
579
|
return recordIds;
|
|
578
580
|
}
|
|
579
|
-
function normalizeApiNames(apiNames) {
|
|
580
|
-
if (apiNames === undefined || apiNames === null) {
|
|
581
|
-
return [];
|
|
582
|
-
}
|
|
583
|
-
return ArrayIsArray(apiNames) ? apiNames : [apiNames];
|
|
584
|
-
}
|
|
585
581
|
class GetRecordActionsRequestStrategy extends LuvioAdapterRequestStrategy {
|
|
586
582
|
constructor() {
|
|
587
583
|
super(...arguments);
|
|
@@ -626,10 +622,7 @@ class GetRecordActionsRequestStrategy extends LuvioAdapterRequestStrategy {
|
|
|
626
622
|
// let's merge the recordIds
|
|
627
623
|
combined.recordIds = Array.from(new Set([...normalizeRecordIds(reqA.recordIds), ...normalizeRecordIds(reqB.recordIds)]));
|
|
628
624
|
if (combined.retrievalMode === 'ALL') {
|
|
629
|
-
const combinedSet = new Set([
|
|
630
|
-
...normalizeApiNames(combined.apiNames),
|
|
631
|
-
...normalizeApiNames(reqB.apiNames),
|
|
632
|
-
]);
|
|
625
|
+
const combinedSet = new Set([...(combined.apiNames || []), ...(reqB.apiNames || [])]);
|
|
633
626
|
combined.apiNames = Array.from(combinedSet);
|
|
634
627
|
}
|
|
635
628
|
return combined;
|
|
@@ -733,7 +726,6 @@ const DEFAULT_STORAGE_OPTIONS = {
|
|
|
733
726
|
expiration: 12 * 60 * 60,
|
|
734
727
|
clearOnInit: false,
|
|
735
728
|
debugLogging: false,
|
|
736
|
-
version: 2,
|
|
737
729
|
};
|
|
738
730
|
function buildAuraPrefetchStorage(options = {}) {
|
|
739
731
|
const auraStorage = createStorage({
|
|
@@ -1623,4 +1615,4 @@ function ldsEngineCreator() {
|
|
|
1623
1615
|
}
|
|
1624
1616
|
|
|
1625
1617
|
export { buildPredictorForContext, ldsEngineCreator as default, initializeLDS, predictiveLoadPage };
|
|
1626
|
-
// version: 1.266.0-
|
|
1618
|
+
// version: 1.266.0-dev17-880c5fb50
|
|
@@ -8,7 +8,6 @@ export declare const DEFAULT_STORAGE_OPTIONS: {
|
|
|
8
8
|
expiration: number;
|
|
9
9
|
clearOnInit: boolean;
|
|
10
10
|
debugLogging: boolean;
|
|
11
|
-
version: number;
|
|
12
11
|
};
|
|
13
12
|
export declare function buildAuraPrefetchStorage(options?: Partial<AuraStorageConfig>): PrefetchStorage;
|
|
14
13
|
export declare class AuraPrefetchStorage implements PrefetchStorage {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-aura",
|
|
3
|
-
"version": "1.266.0-
|
|
3
|
+
"version": "1.266.0-dev17",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Aura runtime",
|
|
6
6
|
"main": "dist/ldsEngineCreator.js",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-aura"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@salesforce/lds-adapters-uiapi": "^1.266.0-
|
|
38
|
-
"@salesforce/lds-ads-bridge": "^1.266.0-
|
|
39
|
-
"@salesforce/lds-aura-storage": "^1.266.0-
|
|
40
|
-
"@salesforce/lds-bindings": "^1.266.0-
|
|
41
|
-
"@salesforce/lds-instrumentation": "^1.266.0-
|
|
42
|
-
"@salesforce/lds-network-aura": "^1.266.0-
|
|
43
|
-
"@salesforce/lds-network-fetch-with-jwt": "^1.266.0-
|
|
37
|
+
"@salesforce/lds-adapters-uiapi": "^1.266.0-dev17",
|
|
38
|
+
"@salesforce/lds-ads-bridge": "^1.266.0-dev17",
|
|
39
|
+
"@salesforce/lds-aura-storage": "^1.266.0-dev17",
|
|
40
|
+
"@salesforce/lds-bindings": "^1.266.0-dev17",
|
|
41
|
+
"@salesforce/lds-instrumentation": "^1.266.0-dev17",
|
|
42
|
+
"@salesforce/lds-network-aura": "^1.266.0-dev17",
|
|
43
|
+
"@salesforce/lds-network-fetch-with-jwt": "^1.266.0-dev17"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@luvio/network-adapter-composable": "0.154.7-
|
|
46
|
+
"@luvio/network-adapter-composable": "0.154.7-dev7"
|
|
47
47
|
},
|
|
48
48
|
"luvioBundlesize": [
|
|
49
49
|
{
|