@salesforce/lds-runtime-aura 1.381.0 → 1.383.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
|
@@ -25,16 +25,17 @@ import useOneStoreGraphql from '@salesforce/gate/lds.oneStoreGraphqlEnabled.ltng
|
|
|
25
25
|
import { GetApexWireAdapterFactory, registerPrefetcher as registerPrefetcher$1 } from 'force/ldsAdaptersApex';
|
|
26
26
|
import { getRecordAvatarsAdapterFactory, getRecordAdapterFactory, coerceFieldIdArray, getRecordsAdapterFactory, getRecordActionsAdapterFactory, getObjectInfosAdapterFactory, coerceObjectIdArray, getObjectInfoAdapterFactory, coerceObjectId, getRelatedListsActionsAdapterFactory, getRelatedListInfoBatchAdapterFactory, getRelatedListInfoAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getRelatedListRecordsAdapterFactory, getListInfoByNameAdapterFactory, getListInfosByObjectNameAdapterFactory, getListRecordsByNameAdapterFactory, getListObjectInfoAdapterFactory, getRelatedListsInfoAdapterFactory, getRelatedListActionsAdapterFactory, getRecordId18Array, instrument, buildRecordRepKeyFromId, configuration, InMemoryRecordRepresentationQueryEvaluator, UiApiNamespace, RecordRepresentationRepresentationType, registerPrefetcher, RecordRepresentationVersion } from 'force/ldsAdaptersUiapi';
|
|
27
27
|
import { getInstrumentation } from 'o11y/client';
|
|
28
|
-
import { buildGraphQLInputExtension } from 'force/luvioGraphqlNormalization';
|
|
28
|
+
import { buildGraphQLInputExtension, addTypenameToDocument } from 'force/luvioGraphqlNormalization';
|
|
29
29
|
import { print } from 'force/luvioOnestoreGraphqlParser';
|
|
30
30
|
import { setServices } from 'force/luvioServiceProvisioner1';
|
|
31
31
|
import { unstable_loadComponentDefs, executeGlobalControllerRawResponse } from 'aura';
|
|
32
32
|
import auraNetworkAdapter, { dispatchAuraAction, defaultActionConfig, instrument as instrument$1, forceRecordTransactionsDisabled as forceRecordTransactionsDisabled$1, ldsNetworkAdapterInstrument, CrudEventState, CrudEventType, UIAPI_RECORDS_PATH, UIAPI_RELATED_LIST_RECORDS_BATCH_PATH, UIAPI_RELATED_LIST_RECORDS_PATH } from 'force/ldsNetwork';
|
|
33
|
-
import { LRUCache, instrumentAdapter, instrumentLuvio, setupInstrumentation as setupInstrumentation$1, logObjectInfoChanged as logObjectInfoChanged$1, updatePercentileHistogramMetric, incrementCounterMetric, incrementGetRecordNotifyChangeAllowCount, incrementGetRecordNotifyChangeDropCount, incrementNotifyRecordUpdateAvailableAllowCount, incrementNotifyRecordUpdateAvailableDropCount, setLdsAdaptersUiapiInstrumentation, logError, setLdsNetworkAdapterInstrumentation, executeAsyncActivity, METRIC_KEYS, onIdleDetected } from 'force/ldsInstrumentation';
|
|
33
|
+
import { LRUCache, instrumentAdapter, instrumentLuvio, setupInstrumentation as setupInstrumentation$1, logObjectInfoChanged as logObjectInfoChanged$1, updatePercentileHistogramMetric, incrementCounterMetric, incrementGetRecordNotifyChangeAllowCount, incrementGetRecordNotifyChangeDropCount, incrementNotifyRecordUpdateAvailableAllowCount, incrementNotifyRecordUpdateAvailableDropCount, setLdsAdaptersUiapiInstrumentation, logError, setLdsNetworkAdapterInstrumentation, incrementStateCreatedCount, executeAsyncActivity, METRIC_KEYS, onIdleDetected } from 'force/ldsInstrumentation';
|
|
34
34
|
import { REFRESH_ADAPTER_EVENT, ADAPTER_UNFULFILLED_ERROR, instrument as instrument$3 } from 'force/ldsBindings';
|
|
35
35
|
import { counter, registerCacheStats, perfStart, perfEnd, registerPeriodicLogger, interaction, timer } from 'instrumentation/service';
|
|
36
36
|
import { instrument as instrument$2, setupLexNetworkAdapter } from 'force/ldsNetworkFetch';
|
|
37
37
|
import { instrument as instrument$4 } from 'force/adsBridge';
|
|
38
|
+
import { instrument as instrument$5 } from '@lwc/state';
|
|
38
39
|
import { withRegistration, register, setDefaultLuvio } from 'force/ldsEngine';
|
|
39
40
|
import useHotspotLimit from '@salesforce/gate/lds.pdl.useHotspotLimit';
|
|
40
41
|
import { createStorage, clearStorages } from 'force/ldsStorage';
|
|
@@ -2309,7 +2310,7 @@ function buildServiceDescriptor$5(luvio) {
|
|
|
2309
2310
|
},
|
|
2310
2311
|
};
|
|
2311
2312
|
}
|
|
2312
|
-
// version: 1.
|
|
2313
|
+
// version: 1.383.0-d85dce8db1
|
|
2313
2314
|
|
|
2314
2315
|
/*!
|
|
2315
2316
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -2433,7 +2434,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
2433
2434
|
if (augmentedQueryResult.isErr()) {
|
|
2434
2435
|
throw augmentedQueryResult.error;
|
|
2435
2436
|
}
|
|
2436
|
-
return augmentedQueryResult.value;
|
|
2437
|
+
return addTypenameToDocument(augmentedQueryResult.value);
|
|
2437
2438
|
}
|
|
2438
2439
|
buildWriteInput(data) {
|
|
2439
2440
|
const extensionResult = buildGraphQLInputExtension({
|
|
@@ -2527,7 +2528,7 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
|
|
|
2527
2528
|
if (augmentedQueryResult.isErr()) {
|
|
2528
2529
|
throw augmentedQueryResult.error;
|
|
2529
2530
|
}
|
|
2530
|
-
return augmentedQueryResult.value;
|
|
2531
|
+
return addTypenameToDocument(augmentedQueryResult.value);
|
|
2531
2532
|
}
|
|
2532
2533
|
buildWriteInput(data) {
|
|
2533
2534
|
const extensionResult = buildGraphQLInputExtension({
|
|
@@ -2628,7 +2629,7 @@ function buildServiceDescriptor$1(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
2628
2629
|
},
|
|
2629
2630
|
};
|
|
2630
2631
|
}
|
|
2631
|
-
// version: 1.
|
|
2632
|
+
// version: 1.383.0-d85dce8db1
|
|
2632
2633
|
|
|
2633
2634
|
/*!
|
|
2634
2635
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -5627,6 +5628,16 @@ function setAuraInstrumentationHooks() {
|
|
|
5627
5628
|
}
|
|
5628
5629
|
withRegistration('@salesforce/lds-network-adapter', (reg) => setLdsNetworkAdapterInstrumentation(reg));
|
|
5629
5630
|
}
|
|
5631
|
+
let stateManagerInstrumentationHooksInitialized = false;
|
|
5632
|
+
function setStateManagerInstrumentationHooks() {
|
|
5633
|
+
if (stateManagerInstrumentationHooksInitialized) {
|
|
5634
|
+
return;
|
|
5635
|
+
}
|
|
5636
|
+
instrument$5({
|
|
5637
|
+
stateCreated: incrementStateCreatedCount,
|
|
5638
|
+
});
|
|
5639
|
+
stateManagerInstrumentationHooksInitialized = true;
|
|
5640
|
+
}
|
|
5630
5641
|
/**
|
|
5631
5642
|
* Initialize the instrumentation and instrument the LDS instance and the InMemoryStore.
|
|
5632
5643
|
*
|
|
@@ -5636,6 +5647,7 @@ function setAuraInstrumentationHooks() {
|
|
|
5636
5647
|
function setupInstrumentation(luvio, store) {
|
|
5637
5648
|
setupInstrumentation$1(luvio, store);
|
|
5638
5649
|
setAuraInstrumentationHooks();
|
|
5650
|
+
setStateManagerInstrumentationHooks();
|
|
5639
5651
|
}
|
|
5640
5652
|
/**
|
|
5641
5653
|
* Note: locator.scope is set to 'force_record' in order for the instrumentation gate to work, which will
|
|
@@ -6119,7 +6131,7 @@ function getEnvironmentSetting(name) {
|
|
|
6119
6131
|
}
|
|
6120
6132
|
return undefined;
|
|
6121
6133
|
}
|
|
6122
|
-
// version: 1.
|
|
6134
|
+
// version: 1.383.0-d85dce8db1
|
|
6123
6135
|
|
|
6124
6136
|
const forceRecordTransactionsDisabled = getEnvironmentSetting(EnvironmentSettings.ForceRecordTransactionsDisabled);
|
|
6125
6137
|
//TODO: Some duplication here that can be most likely moved to a util class
|
|
@@ -7086,4 +7098,4 @@ function ldsEngineCreator() {
|
|
|
7086
7098
|
}
|
|
7087
7099
|
|
|
7088
7100
|
export { LexRequestStrategy, PdlRequestPriority, buildPredictorForContext, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, unregisterRequestStrategy, whenPredictionsReady };
|
|
7089
|
-
// version: 1.
|
|
7101
|
+
// version: 1.383.0-b9875fc4e1
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
export declare const setTrustedSignalSet: jest.Mock<any, any, any>;
|
|
3
|
+
export declare const setTrustedContextSet: jest.Mock<any, any, any>;
|
|
4
|
+
export declare const setContextKeys: jest.Mock<any, any, any>;
|
|
5
|
+
export declare const __dangerous_do_not_use_addTrustedContext: jest.Mock<any, any, any>;
|
|
6
|
+
export declare const isTrustedSignal: jest.Mock<any, any, any>;
|
|
@@ -163,6 +163,7 @@ export declare function registerLdsCacheStats(name: string): CacheStatsLogger;
|
|
|
163
163
|
* Add or overwrite hooks that require aura implementations
|
|
164
164
|
*/
|
|
165
165
|
export declare function setAuraInstrumentationHooks(): void;
|
|
166
|
+
export declare function setStateManagerInstrumentationHooks(): void;
|
|
166
167
|
/**
|
|
167
168
|
* Initialize the instrumentation and instrument the LDS instance and the InMemoryStore.
|
|
168
169
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-aura",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.383.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Aura runtime",
|
|
6
6
|
"main": "dist/ldsEngineCreator.js",
|
|
@@ -34,47 +34,48 @@
|
|
|
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
|
-
"@luvio/tools-core": "5.
|
|
39
|
-
"@salesforce/lds-adapters-apex": "^1.
|
|
40
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
37
|
+
"@luvio/service-provisioner": "5.58.0",
|
|
38
|
+
"@luvio/tools-core": "5.58.0",
|
|
39
|
+
"@salesforce/lds-adapters-apex": "^1.383.0",
|
|
40
|
+
"@salesforce/lds-adapters-uiapi": "^1.383.0",
|
|
41
41
|
"@salesforce/lds-adapters-uiapi-lex": "^1.371.0",
|
|
42
|
-
"@salesforce/lds-ads-bridge": "^1.
|
|
43
|
-
"@salesforce/lds-aura-storage": "^1.
|
|
44
|
-
"@salesforce/lds-bindings": "^1.
|
|
45
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
46
|
-
"@salesforce/lds-network-aura": "^1.
|
|
47
|
-
"@salesforce/lds-network-fetch": "^1.
|
|
42
|
+
"@salesforce/lds-ads-bridge": "^1.383.0",
|
|
43
|
+
"@salesforce/lds-aura-storage": "^1.383.0",
|
|
44
|
+
"@salesforce/lds-bindings": "^1.383.0",
|
|
45
|
+
"@salesforce/lds-instrumentation": "^1.383.0",
|
|
46
|
+
"@salesforce/lds-network-aura": "^1.383.0",
|
|
47
|
+
"@salesforce/lds-network-fetch": "^1.383.0",
|
|
48
48
|
"jwt-encode": "1.0.1"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@luvio/command-aura-graphql-normalized-cache-control": "5.
|
|
52
|
-
"@luvio/command-aura-network": "5.
|
|
53
|
-
"@luvio/command-aura-normalized-cache-control": "5.
|
|
54
|
-
"@luvio/command-aura-resource-cache-control": "5.
|
|
55
|
-
"@luvio/command-fetch-network": "5.
|
|
56
|
-
"@luvio/command-http-graphql-normalized-cache-control": "5.
|
|
57
|
-
"@luvio/command-http-normalized-cache-control": "5.
|
|
58
|
-
"@luvio/command-ndjson": "5.
|
|
59
|
-
"@luvio/command-network": "5.
|
|
60
|
-
"@luvio/command-sse": "5.
|
|
61
|
-
"@luvio/command-streaming": "5.
|
|
51
|
+
"@luvio/command-aura-graphql-normalized-cache-control": "5.58.0",
|
|
52
|
+
"@luvio/command-aura-network": "5.58.0",
|
|
53
|
+
"@luvio/command-aura-normalized-cache-control": "5.58.0",
|
|
54
|
+
"@luvio/command-aura-resource-cache-control": "5.58.0",
|
|
55
|
+
"@luvio/command-fetch-network": "5.58.0",
|
|
56
|
+
"@luvio/command-http-graphql-normalized-cache-control": "5.58.0",
|
|
57
|
+
"@luvio/command-http-normalized-cache-control": "5.58.0",
|
|
58
|
+
"@luvio/command-ndjson": "5.58.0",
|
|
59
|
+
"@luvio/command-network": "5.58.0",
|
|
60
|
+
"@luvio/command-sse": "5.58.0",
|
|
61
|
+
"@luvio/command-streaming": "5.58.0",
|
|
62
62
|
"@luvio/network-adapter-composable": "0.158.7",
|
|
63
63
|
"@luvio/network-adapter-fetch": "0.158.7",
|
|
64
|
-
"@luvio/service-aura-network": "5.
|
|
65
|
-
"@luvio/service-cache": "5.
|
|
66
|
-
"@luvio/service-cache-control": "5.
|
|
67
|
-
"@luvio/service-cache-inclusion-policy": "5.
|
|
68
|
-
"@luvio/service-feature-flags": "5.
|
|
69
|
-
"@luvio/service-fetch-network": "5.
|
|
70
|
-
"@luvio/service-instrument-command": "5.
|
|
71
|
-
"@luvio/service-pubsub": "5.
|
|
72
|
-
"@luvio/service-store": "5.
|
|
73
|
-
"@luvio/utils": "5.
|
|
74
|
-
"@
|
|
75
|
-
"@salesforce/lds-adapters-
|
|
76
|
-
"@salesforce/lds-
|
|
77
|
-
"@salesforce/lds-luvio-
|
|
64
|
+
"@luvio/service-aura-network": "5.58.0",
|
|
65
|
+
"@luvio/service-cache": "5.58.0",
|
|
66
|
+
"@luvio/service-cache-control": "5.58.0",
|
|
67
|
+
"@luvio/service-cache-inclusion-policy": "5.58.0",
|
|
68
|
+
"@luvio/service-feature-flags": "5.58.0",
|
|
69
|
+
"@luvio/service-fetch-network": "5.58.0",
|
|
70
|
+
"@luvio/service-instrument-command": "5.58.0",
|
|
71
|
+
"@luvio/service-pubsub": "5.58.0",
|
|
72
|
+
"@luvio/service-store": "5.58.0",
|
|
73
|
+
"@luvio/utils": "5.58.0",
|
|
74
|
+
"@lwc/state": "^0.23.0",
|
|
75
|
+
"@salesforce/lds-adapters-onestore-graphql": "^1.383.0",
|
|
76
|
+
"@salesforce/lds-adapters-uiapi-lex": "^1.383.0",
|
|
77
|
+
"@salesforce/lds-luvio-service": "^1.383.0",
|
|
78
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.383.0"
|
|
78
79
|
},
|
|
79
80
|
"luvioBundlesize": [
|
|
80
81
|
{
|