@salesforce/lds-runtime-aura 1.334.0 → 1.336.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
CHANGED
|
@@ -17,10 +17,11 @@ import ldsTrackedFieldsBehaviorGate from '@salesforce/gate/lds.useNewTrackedFiel
|
|
|
17
17
|
import usePredictiveLoading from '@salesforce/gate/lds.usePredictiveLoading';
|
|
18
18
|
import useApexPredictions from '@salesforce/gate/lds.pdl.useApexPredictions';
|
|
19
19
|
import useRelatedListsPredictions from '@salesforce/gate/lds.pdl.useRelatedListsPredictions';
|
|
20
|
+
import useRelatedListPlus from '@salesforce/gate/lds.pdl.useRelatedListPlus';
|
|
20
21
|
import useCmpDefPredictions from '@salesforce/gate/lds.pdl.useCmpDefPredictions';
|
|
21
22
|
import applyPredictionRequestLimit from '@salesforce/gate/lds.pdl.applyRequestLimit';
|
|
22
23
|
import { GetApexWireAdapterFactory, registerPrefetcher as registerPrefetcher$1 } from 'force/ldsAdaptersApex';
|
|
23
|
-
import { getRecordAvatarsAdapterFactory, getRecordAdapterFactory, coerceFieldIdArray, getRecordsAdapterFactory, getRecordActionsAdapterFactory, getObjectInfosAdapterFactory, coerceObjectIdArray, getObjectInfoAdapterFactory, coerceObjectId, getRelatedListsActionsAdapterFactory, getRelatedListInfoBatchAdapterFactory, getRelatedListInfoAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getRelatedListRecordsAdapterFactory, getListInfoByNameAdapterFactory, getListInfosByObjectNameAdapterFactory, getListRecordsByNameAdapterFactory, getListObjectInfoAdapterFactory, instrument, configuration, InMemoryRecordRepresentationQueryEvaluator, UiApiNamespace, RecordRepresentationRepresentationType, registerPrefetcher } from 'force/ldsAdaptersUiapi';
|
|
24
|
+
import { getRecordAvatarsAdapterFactory, getRecordAdapterFactory, coerceFieldIdArray, getRecordsAdapterFactory, getRecordActionsAdapterFactory, getObjectInfosAdapterFactory, coerceObjectIdArray, getObjectInfoAdapterFactory, coerceObjectId, getRelatedListsActionsAdapterFactory, getRelatedListInfoBatchAdapterFactory, getRelatedListInfoAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getRelatedListRecordsAdapterFactory, getListInfoByNameAdapterFactory, getListInfosByObjectNameAdapterFactory, getListRecordsByNameAdapterFactory, getListObjectInfoAdapterFactory, getRelatedListsInfoAdapterFactory, instrument, configuration, InMemoryRecordRepresentationQueryEvaluator, UiApiNamespace, RecordRepresentationRepresentationType, registerPrefetcher } from 'force/ldsAdaptersUiapi';
|
|
24
25
|
import { getInstrumentation } from 'o11y/client';
|
|
25
26
|
import { setServices } from 'force/luvioServiceProvisioner1';
|
|
26
27
|
import oneStoreEnabled from '@salesforce/gate/lds.oneStoreEnabled.ltng';
|
|
@@ -37,7 +38,6 @@ import useHotspotLimit from '@salesforce/gate/lds.pdl.useHotspotLimit';
|
|
|
37
38
|
import { createStorage, clearStorages } from 'force/ldsStorage';
|
|
38
39
|
import useHttpInsteadAuraTransport from '@salesforce/gate/lds.useHttpInsteadAuraTransport';
|
|
39
40
|
import { ThirdPartyTracker } from 'instrumentation:beaconLib';
|
|
40
|
-
import { getObjectInfo, getObjectInfos } from 'force/ldsAdaptersUiapiLex';
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3433,6 +3433,48 @@ class GetListObjectInfoRequestStrategy extends LuvioAdapterRequestStrategy {
|
|
|
3433
3433
|
}
|
|
3434
3434
|
}
|
|
3435
3435
|
|
|
3436
|
+
const GET_RELATED_LISTS_INFO_ADAPTER_NAME = 'getRelatedListsInfo';
|
|
3437
|
+
class GetRelatedListsInfoRequestStrategy extends LuvioAdapterRequestStrategy {
|
|
3438
|
+
constructor() {
|
|
3439
|
+
super(...arguments);
|
|
3440
|
+
this.adapterName = GET_RELATED_LISTS_INFO_ADAPTER_NAME;
|
|
3441
|
+
this.adapterFactory = getRelatedListsInfoAdapterFactory;
|
|
3442
|
+
}
|
|
3443
|
+
/**
|
|
3444
|
+
* @override
|
|
3445
|
+
*/
|
|
3446
|
+
isContextDependent(context, request) {
|
|
3447
|
+
return (context.objectApiName === coerceObjectId(request.config.parentObjectApiName) &&
|
|
3448
|
+
context.recordTypeId === request.config.recordTypeId);
|
|
3449
|
+
}
|
|
3450
|
+
/**
|
|
3451
|
+
* @override
|
|
3452
|
+
*/
|
|
3453
|
+
buildConcreteRequest(similarRequest, _context) {
|
|
3454
|
+
return similarRequest;
|
|
3455
|
+
}
|
|
3456
|
+
/**
|
|
3457
|
+
* @override
|
|
3458
|
+
*/
|
|
3459
|
+
transformForSave(request) {
|
|
3460
|
+
return {
|
|
3461
|
+
...request,
|
|
3462
|
+
config: {
|
|
3463
|
+
...request.config,
|
|
3464
|
+
parentObjectApiName: coerceObjectId(request.config.parentObjectApiName),
|
|
3465
|
+
},
|
|
3466
|
+
};
|
|
3467
|
+
}
|
|
3468
|
+
canCombine(reqA, reqB) {
|
|
3469
|
+
// only combine if both requests are equal.
|
|
3470
|
+
return (reqA.parentObjectApiName === reqB.parentObjectApiName &&
|
|
3471
|
+
reqA.recordTypeId === reqB.recordTypeId);
|
|
3472
|
+
}
|
|
3473
|
+
combineRequests(reqA, _reqB) {
|
|
3474
|
+
return reqA;
|
|
3475
|
+
}
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3436
3478
|
/**
|
|
3437
3479
|
* Base implementation of a home page
|
|
3438
3480
|
*/
|
|
@@ -3482,6 +3524,7 @@ const RECORD_HOME_SUPPORTED_ADAPTERS = new Set([
|
|
|
3482
3524
|
GET_RELATED_LIST_RECORDS_BATCH_ADAPTER_NAME,
|
|
3483
3525
|
GET_RELATED_LIST_RECORDS_ADAPTER_NAME,
|
|
3484
3526
|
GET_RELATED_LISTS_ACTIONS_ADAPTER_NAME,
|
|
3527
|
+
GET_RELATED_LISTS_INFO_ADAPTER_NAME,
|
|
3485
3528
|
'templateApi', // external - getTemplateDescriptorWithExpansionBundle
|
|
3486
3529
|
]);
|
|
3487
3530
|
class RecordHomePage extends AbstractHomePage {
|
|
@@ -4611,7 +4654,7 @@ function getEnvironmentSetting(name) {
|
|
|
4611
4654
|
}
|
|
4612
4655
|
return undefined;
|
|
4613
4656
|
}
|
|
4614
|
-
// version: 1.
|
|
4657
|
+
// version: 1.336.0-1b35a3afd9
|
|
4615
4658
|
|
|
4616
4659
|
const forceRecordTransactionsDisabled = getEnvironmentSetting(EnvironmentSettings.ForceRecordTransactionsDisabled);
|
|
4617
4660
|
//TODO: Some duplication here that can be most likely moved to a util class
|
|
@@ -5100,6 +5143,7 @@ function setupPredictivePrefetcher(luvio) {
|
|
|
5100
5143
|
new GetComponentsDefStrategy(),
|
|
5101
5144
|
new GetListInfosByObjectNameRequestStrategy(luvio),
|
|
5102
5145
|
new GetListObjectInfoRequestStrategy(luvio),
|
|
5146
|
+
new GetRelatedListsInfoRequestStrategy(luvio),
|
|
5103
5147
|
];
|
|
5104
5148
|
requestStrategyManager.register(allStrategies);
|
|
5105
5149
|
const storage = buildAuraPrefetchStorage({
|
|
@@ -5247,6 +5291,7 @@ function initializeLDS() {
|
|
|
5247
5291
|
// This configuration is needed by bindings time in adapter. Needs to happen
|
|
5248
5292
|
// before setDefaultLuvio is called.
|
|
5249
5293
|
configuration.setRelatedListsPredictionsEnabled(useRelatedListsPredictions.isOpen({ fallback: false }));
|
|
5294
|
+
configuration.setRelatedListsPlusPredictionsEnabled(useRelatedListPlus.isOpen({ fallback: false }));
|
|
5250
5295
|
setupInstrumentation(luvio, store);
|
|
5251
5296
|
setupMetadataWatcher(luvio);
|
|
5252
5297
|
setupQueryEvaluators(luvio, store);
|
|
@@ -5278,10 +5323,6 @@ function initializeOneStore() {
|
|
|
5278
5323
|
];
|
|
5279
5324
|
setServices(services);
|
|
5280
5325
|
}
|
|
5281
|
-
function initializeOnestoreUiApiAdapters() {
|
|
5282
|
-
configuration.setGetObjectInfoAdapter(getObjectInfo);
|
|
5283
|
-
configuration.setGetObjectInfosAdapter(getObjectInfos);
|
|
5284
|
-
}
|
|
5285
5326
|
function buildAuraNetworkService() {
|
|
5286
5327
|
return {
|
|
5287
5328
|
type: 'auraNetwork',
|
|
@@ -5294,13 +5335,11 @@ function ldsEngineCreator() {
|
|
|
5294
5335
|
// One store initialization needs to happen first in order to set the one store adapter correctly in configuration object.
|
|
5295
5336
|
if (oneStoreEnabled.isOpen({ fallback: false })) {
|
|
5296
5337
|
initializeOneStore();
|
|
5297
|
-
if (oneStoreUiapiEnabled.isOpen({ fallback: false }))
|
|
5298
|
-
initializeOnestoreUiApiAdapters();
|
|
5299
|
-
}
|
|
5338
|
+
if (oneStoreUiapiEnabled.isOpen({ fallback: false })) ;
|
|
5300
5339
|
}
|
|
5301
5340
|
initializeLDS();
|
|
5302
5341
|
return { name: 'ldsEngineCreator' };
|
|
5303
5342
|
}
|
|
5304
5343
|
|
|
5305
5344
|
export { LexRequestStrategy, PdlRequestPriority, buildPredictorForContext, ldsEngineCreator as default, initializeLDS, initializeOneStore, registerRequestStrategy, saveRequestAsPrediction, unregisterRequestStrategy, whenPredictionsReady };
|
|
5306
|
-
// version: 1.
|
|
5345
|
+
// version: 1.336.0-7d2c781c74
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { GetRelatedListsInfoConfig } from '@salesforce/lds-adapters-uiapi';
|
|
2
|
+
import { LuvioAdapterRequestStrategy } from './luvio-adapter-request-strategy';
|
|
3
|
+
export type GetRelatedListsInfoRequest = {
|
|
4
|
+
adapterName: 'getRelatedListsInfo';
|
|
5
|
+
config: GetRelatedListsInfoConfig;
|
|
6
|
+
};
|
|
7
|
+
type GetRelatedListsInfoContext = {
|
|
8
|
+
objectApiName: string;
|
|
9
|
+
recordTypeId: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const GET_RELATED_LISTS_INFO_ADAPTER_NAME = "getRelatedListsInfo";
|
|
12
|
+
export declare class GetRelatedListsInfoRequestStrategy extends LuvioAdapterRequestStrategy<GetRelatedListsInfoConfig, GetRelatedListsInfoRequest, GetRelatedListsInfoContext> {
|
|
13
|
+
adapterName: string;
|
|
14
|
+
adapterFactory: import("@luvio/engine").AdapterFactory<GetRelatedListsInfoConfig, import("packages/lds-adapters-uiapi/dist/es/es2018/types/src/generated/types/RelatedListSummaryInfoCollectionRepresentation").RelatedListSummaryInfoCollectionRepresentation>;
|
|
15
|
+
/**
|
|
16
|
+
* @override
|
|
17
|
+
*/
|
|
18
|
+
isContextDependent(context: GetRelatedListsInfoContext, request: GetRelatedListsInfoRequest): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @override
|
|
21
|
+
*/
|
|
22
|
+
buildConcreteRequest(similarRequest: GetRelatedListsInfoRequest, _context: GetRelatedListsInfoContext): GetRelatedListsInfoRequest;
|
|
23
|
+
/**
|
|
24
|
+
* @override
|
|
25
|
+
*/
|
|
26
|
+
transformForSave(request: GetRelatedListsInfoRequest): GetRelatedListsInfoRequest;
|
|
27
|
+
canCombine(reqA: GetRelatedListsInfoConfig, reqB: GetRelatedListsInfoConfig): boolean;
|
|
28
|
+
combineRequests(reqA: GetRelatedListsInfoConfig, _reqB: GetRelatedListsInfoConfig): GetRelatedListsInfoConfig;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -17,3 +17,4 @@ export * from './request-strategy';
|
|
|
17
17
|
export * from './get-list-infos-by-object-name-request-strategy';
|
|
18
18
|
export * from './get-list-records-by-name-request-strategy';
|
|
19
19
|
export * from './get-list-object-info-request-strategy';
|
|
20
|
+
export * from './get-related-lists-info-strategy';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-aura",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.336.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Aura runtime",
|
|
6
6
|
"main": "dist/ldsEngineCreator.js",
|
|
@@ -34,42 +34,42 @@
|
|
|
34
34
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-aura"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@luvio/service-provisioner": "5.
|
|
38
|
-
"@salesforce/lds-adapters-apex": "^1.
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
37
|
+
"@luvio/service-provisioner": "5.25.0",
|
|
38
|
+
"@salesforce/lds-adapters-apex": "^1.336.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.336.0",
|
|
40
40
|
"@salesforce/lds-adapters-uiapi-lex": "^1.302.0",
|
|
41
|
-
"@salesforce/lds-ads-bridge": "^1.
|
|
42
|
-
"@salesforce/lds-aura-storage": "^1.
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
44
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
45
|
-
"@salesforce/lds-network-aura": "^1.
|
|
46
|
-
"@salesforce/lds-network-fetch": "^1.
|
|
41
|
+
"@salesforce/lds-ads-bridge": "^1.336.0",
|
|
42
|
+
"@salesforce/lds-aura-storage": "^1.336.0",
|
|
43
|
+
"@salesforce/lds-bindings": "^1.336.0",
|
|
44
|
+
"@salesforce/lds-instrumentation": "^1.336.0",
|
|
45
|
+
"@salesforce/lds-network-aura": "^1.336.0",
|
|
46
|
+
"@salesforce/lds-network-fetch": "^1.336.0",
|
|
47
47
|
"jwt-encode": "1.0.1"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@luvio/command-aura-network": "5.
|
|
51
|
-
"@luvio/command-aura-resource-cache-control": "5.
|
|
52
|
-
"@luvio/command-fetch-network": "5.
|
|
53
|
-
"@luvio/command-network": "5.
|
|
54
|
-
"@luvio/command-sse": "5.
|
|
55
|
-
"@luvio/command-streaming": "5.
|
|
50
|
+
"@luvio/command-aura-network": "5.25.0",
|
|
51
|
+
"@luvio/command-aura-resource-cache-control": "5.25.0",
|
|
52
|
+
"@luvio/command-fetch-network": "5.25.0",
|
|
53
|
+
"@luvio/command-network": "5.25.0",
|
|
54
|
+
"@luvio/command-sse": "5.25.0",
|
|
55
|
+
"@luvio/command-streaming": "5.25.0",
|
|
56
56
|
"@luvio/network-adapter-composable": "0.156.5",
|
|
57
57
|
"@luvio/network-adapter-fetch": "0.156.5",
|
|
58
|
-
"@luvio/service-aura-network": "5.
|
|
59
|
-
"@luvio/service-cache": "5.
|
|
60
|
-
"@luvio/service-cache-control": "5.
|
|
61
|
-
"@luvio/service-fetch-network": "5.
|
|
62
|
-
"@luvio/service-instrument-command": "5.
|
|
63
|
-
"@luvio/service-store": "5.
|
|
64
|
-
"@luvio/utils": "5.
|
|
65
|
-
"@salesforce/lds-adapters-uiapi-lex": "^1.
|
|
58
|
+
"@luvio/service-aura-network": "5.25.0",
|
|
59
|
+
"@luvio/service-cache": "5.25.0",
|
|
60
|
+
"@luvio/service-cache-control": "5.25.0",
|
|
61
|
+
"@luvio/service-fetch-network": "5.25.0",
|
|
62
|
+
"@luvio/service-instrument-command": "5.25.0",
|
|
63
|
+
"@luvio/service-store": "5.25.0",
|
|
64
|
+
"@luvio/utils": "5.25.0",
|
|
65
|
+
"@salesforce/lds-adapters-uiapi-lex": "^1.336.0"
|
|
66
66
|
},
|
|
67
67
|
"luvioBundlesize": [
|
|
68
68
|
{
|
|
69
69
|
"path": "./dist/ldsEngineCreator.js",
|
|
70
70
|
"maxSize": {
|
|
71
|
-
"none": "
|
|
72
|
-
"min": "
|
|
71
|
+
"none": "205 kB",
|
|
72
|
+
"min": "84.5 kB",
|
|
73
73
|
"compressed": "36 kB"
|
|
74
74
|
}
|
|
75
75
|
}
|