@salesforce/lds-runtime-aura 1.433.0 → 1.435.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 +83 -72
- package/dist/types/fetch-service-descriptors/lex-fetch-service.d.ts +1 -1
- package/dist/types/finally-interceptors/third-party-tracker-finish.d.ts +1 -1
- package/dist/types/main.d.ts +3 -2
- package/dist/types/network-fetch.d.ts +1 -1
- package/dist/types/predictive-loading/prefetcher/lex-predictive-prefetcher.d.ts +1 -1
- package/dist/types/predictive-loading/prefetcher/predictive-prefetcher.d.ts +2 -1
- package/dist/types/predictive-loading/storage/index.d.ts +1 -1
- package/dist/types/request-interceptors/action-enqueue.d.ts +2 -2
- package/dist/types/request-interceptors/csrf-token.d.ts +2 -2
- package/dist/types/request-interceptors/luvio-third-party-tracker-register.d.ts +1 -1
- package/dist/types/request-interceptors/page-scoped-cache.d.ts +1 -1
- package/dist/types/request-interceptors/third-party-tracker-register.d.ts +1 -1
- package/dist/types/request-interceptors/transport-send.d.ts +2 -2
- package/dist/types/response-interceptors/action-finish.d.ts +2 -2
- package/dist/types/response-interceptors/lex-runtime-5xx-status.d.ts +3 -3
- package/dist/types/response-interceptors/lex-runtime-auth-expiration-redirect.d.ts +3 -3
- package/dist/types/response-interceptors/transport-receive.d.ts +2 -2
- package/dist/types/retry-interceptors/csrf-retry.d.ts +1 -1
- package/dist/types/retry-policies/csrf-token-retry-policy.d.ts +2 -1
- package/dist/types/retry-policies/fetch-throttling-retry-policy.d.ts +2 -1
- package/package.json +40 -39
package/dist/ldsEngineCreator.js
CHANGED
|
@@ -21,9 +21,9 @@ import { GetApexWireAdapterFactory, registerPrefetcher as registerPrefetcher$1 }
|
|
|
21
21
|
import { instrument, getRecordAvatarsAdapterFactory, getRecordAdapterFactory, coerceFieldIdArray, coerceLayoutTypeArray, coerceLayoutModeArray, getRecordsAdapterFactory, getRecordActionsAdapterFactory, getObjectInfosAdapterFactory, coerceObjectIdArray, getObjectInfoAdapterFactory, coerceObjectId, getRelatedListsActionsAdapterFactory, getRelatedListInfoBatchAdapterFactory, getRelatedListInfoAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getRelatedListRecordsAdapterFactory, getListInfoByNameAdapterFactory, getListInfosByObjectNameAdapterFactory, getListRecordsByNameAdapterFactory, getListObjectInfoAdapterFactory, getRelatedListsInfoAdapterFactory, getRelatedListActionsAdapterFactory, getRecordId18Array, buildRecordRepKeyFromId, configuration, InMemoryRecordRepresentationQueryEvaluator, UiApiNamespace, RecordRepresentationRepresentationType, registerPrefetcher, RecordRepresentationVersion } from 'force/ldsAdaptersUiapi';
|
|
22
22
|
import { getInstrumentation } from 'o11y/client';
|
|
23
23
|
import { findExecutableOperation, buildGraphQLInputExtension, addTypenameToDocument } from 'force/luvioGraphqlNormalization';
|
|
24
|
-
import { print, resolveAndValidateGraphQLConfig } from 'force/luvioOnestoreGraphqlParser';
|
|
24
|
+
import { print, resolveAndValidateGraphQLConfig, toGraphQLErrorResponse } from 'force/luvioOnestoreGraphqlParser';
|
|
25
25
|
import { setServices } from 'force/luvioServiceProvisioner1';
|
|
26
|
-
import { assertIsValid,
|
|
26
|
+
import { assertIsValid, JsonSchemaViolationError, MissingRequiredPropertyError } from 'force/luvioJsonschemaValidate5';
|
|
27
27
|
import { dispatchGlobalEvent, executeGlobalControllerRawResponse } from 'aura';
|
|
28
28
|
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';
|
|
29
29
|
import { ThirdPartyTracker } from 'instrumentation:thirdPartyTracker';
|
|
@@ -45,6 +45,7 @@ import useHttpUiapiOneApp from '@salesforce/gate/lds.useHttpUiapiOneApp';
|
|
|
45
45
|
import useHttpUiapiOneRuntime from '@salesforce/gate/lds.useHttpUiapiOneRuntime';
|
|
46
46
|
import disableCreateContentDocumentAndVersionHTTPLexRuntime from '@salesforce/gate/lds.lex.http.disableCreateContentDocumentAndVersion';
|
|
47
47
|
import useHotspotLimit from '@salesforce/gate/lds.pdl.useHotspotLimit';
|
|
48
|
+
import { registerSubRequestNetworkAdapter } from 'force/ldsNetwork';
|
|
48
49
|
|
|
49
50
|
/*!
|
|
50
51
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -2759,7 +2760,7 @@ function buildServiceDescriptor$d(luvio) {
|
|
|
2759
2760
|
},
|
|
2760
2761
|
};
|
|
2761
2762
|
}
|
|
2762
|
-
// version: 1.
|
|
2763
|
+
// version: 1.435.0-5818ce3c48
|
|
2763
2764
|
|
|
2764
2765
|
/*!
|
|
2765
2766
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3112,7 +3113,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
3112
3113
|
},
|
|
3113
3114
|
};
|
|
3114
3115
|
}
|
|
3115
|
-
// version: 1.
|
|
3116
|
+
// version: 1.435.0-5818ce3c48
|
|
3116
3117
|
|
|
3117
3118
|
/*!
|
|
3118
3119
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3519,13 +3520,7 @@ class GraphQLImperativeBindingsService {
|
|
|
3519
3520
|
}
|
|
3520
3521
|
return await buildBaseImperativeInvoker(getCommand, (result) => this.transformResult(result, exposeRefresh))(...params);
|
|
3521
3522
|
} catch (error) {
|
|
3522
|
-
|
|
3523
|
-
return {
|
|
3524
|
-
data: void 0,
|
|
3525
|
-
errors: [
|
|
3526
|
-
{ message: "Internal error in GraphQL adapter occurred", locations: [] }
|
|
3527
|
-
]
|
|
3528
|
-
};
|
|
3523
|
+
return toGraphQLErrorResponse(error);
|
|
3529
3524
|
}
|
|
3530
3525
|
};
|
|
3531
3526
|
}
|
|
@@ -3619,8 +3614,8 @@ class GraphQLLegacyImperativeBindingsService {
|
|
|
3619
3614
|
config = result.value;
|
|
3620
3615
|
}
|
|
3621
3616
|
}
|
|
3622
|
-
const command = getCommand({ config, assertIsValid });
|
|
3623
3617
|
try {
|
|
3618
|
+
const command = getCommand({ config, assertIsValid });
|
|
3624
3619
|
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
3625
3620
|
const result = await command.execute(overrides);
|
|
3626
3621
|
const consumerEmittedData = {
|
|
@@ -3637,13 +3632,7 @@ class GraphQLLegacyImperativeBindingsService {
|
|
|
3637
3632
|
}
|
|
3638
3633
|
callback(consumerEmittedData);
|
|
3639
3634
|
} catch (error) {
|
|
3640
|
-
|
|
3641
|
-
callback({
|
|
3642
|
-
data: void 0,
|
|
3643
|
-
errors: [
|
|
3644
|
-
{ message: "Internal error in GraphQL adapter occurred", locations: [] }
|
|
3645
|
-
]
|
|
3646
|
-
});
|
|
3635
|
+
callback(toGraphQLErrorResponse(error));
|
|
3647
3636
|
}
|
|
3648
3637
|
};
|
|
3649
3638
|
const subscribe = (config, requestContext, callback) => {
|
|
@@ -3661,35 +3650,41 @@ class GraphQLLegacyImperativeBindingsService {
|
|
|
3661
3650
|
config = result.value;
|
|
3662
3651
|
}
|
|
3663
3652
|
}
|
|
3664
|
-
const command = getCommand({ config, assertIsValid });
|
|
3665
3653
|
let unsubscribe = () => {
|
|
3666
3654
|
};
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
const
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3655
|
+
try {
|
|
3656
|
+
const command = getCommand({ config, assertIsValid });
|
|
3657
|
+
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
3658
|
+
command.execute(overrides).then((result) => {
|
|
3659
|
+
const consumerEmittedData = {
|
|
3660
|
+
data: void 0,
|
|
3661
|
+
errors: void 0
|
|
3662
|
+
};
|
|
3663
|
+
if (result.isOk()) {
|
|
3664
|
+
deepFreeze(result.value);
|
|
3665
|
+
consumerEmittedData.data = result.value.data.data;
|
|
3666
|
+
unsubscribe = result.value.subscribe(
|
|
3667
|
+
(res) => {
|
|
3668
|
+
handleEmit(res, callback);
|
|
3669
|
+
}
|
|
3670
|
+
);
|
|
3671
|
+
} else {
|
|
3672
|
+
const { data, errors } = toGraphQLResponseFromFailure$1(
|
|
3673
|
+
result.error.failure
|
|
3674
|
+
);
|
|
3675
|
+
consumerEmittedData.data = data;
|
|
3676
|
+
consumerEmittedData.errors = errors;
|
|
3677
|
+
unsubscribe = result.error.subscribe(
|
|
3678
|
+
(res) => {
|
|
3679
|
+
handleEmit(res, callback);
|
|
3680
|
+
}
|
|
3681
|
+
);
|
|
3682
|
+
}
|
|
3683
|
+
callback(consumerEmittedData);
|
|
3684
|
+
});
|
|
3685
|
+
} catch (error) {
|
|
3686
|
+
callback(toGraphQLErrorResponse(error));
|
|
3687
|
+
}
|
|
3693
3688
|
return () => {
|
|
3694
3689
|
unsubscribe();
|
|
3695
3690
|
};
|
|
@@ -3732,13 +3727,7 @@ class GraphQLMutationBindingsService {
|
|
|
3732
3727
|
return toGraphQLResponseFromFailure$1(result.error.failure);
|
|
3733
3728
|
}
|
|
3734
3729
|
} catch (error) {
|
|
3735
|
-
|
|
3736
|
-
return {
|
|
3737
|
-
data: void 0,
|
|
3738
|
-
errors: [
|
|
3739
|
-
{ message: "Internal error in GraphQL adapter occurred", locations: [] }
|
|
3740
|
-
]
|
|
3741
|
-
};
|
|
3730
|
+
return toGraphQLErrorResponse(error);
|
|
3742
3731
|
}
|
|
3743
3732
|
};
|
|
3744
3733
|
}
|
|
@@ -3898,6 +3887,10 @@ class CommandWireAdapterConstructor {
|
|
|
3898
3887
|
if (isIncompleteConfigError(err)) {
|
|
3899
3888
|
return;
|
|
3900
3889
|
}
|
|
3890
|
+
if (err instanceof JsonSchemaViolationError) {
|
|
3891
|
+
this.handleConfigSchemaViolation(err);
|
|
3892
|
+
return;
|
|
3893
|
+
}
|
|
3901
3894
|
throw err;
|
|
3902
3895
|
}
|
|
3903
3896
|
}
|
|
@@ -3950,6 +3943,16 @@ class CommandWireAdapterConstructor {
|
|
|
3950
3943
|
handleExecutionThrow(error) {
|
|
3951
3944
|
emitError(this.callback, error);
|
|
3952
3945
|
}
|
|
3946
|
+
/**
|
|
3947
|
+
* Hook for subclasses to handle a JsonSchemaViolationError from the config
|
|
3948
|
+
* schema assertion. The default re-throws so legacy non-GraphQL wire
|
|
3949
|
+
* adapters keep their existing throw behavior. Overrides are expected to
|
|
3950
|
+
* either emit an error result or re-throw — silently returning will
|
|
3951
|
+
* swallow the error.
|
|
3952
|
+
*/
|
|
3953
|
+
handleConfigSchemaViolation(error) {
|
|
3954
|
+
throw error;
|
|
3955
|
+
}
|
|
3953
3956
|
unsubscribe() {
|
|
3954
3957
|
if (this.unsubscriber) {
|
|
3955
3958
|
this.unsubscriber();
|
|
@@ -4042,16 +4045,14 @@ class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor
|
|
|
4042
4045
|
this.callback(consumerEmittedData);
|
|
4043
4046
|
}
|
|
4044
4047
|
} catch (e) {
|
|
4045
|
-
logError$1(e);
|
|
4046
4048
|
this.handleExecutionThrow(e);
|
|
4047
4049
|
}
|
|
4048
4050
|
}
|
|
4049
|
-
handleExecutionThrow(
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
});
|
|
4051
|
+
handleExecutionThrow(error) {
|
|
4052
|
+
this.callback(toGraphQLErrorResponse(error));
|
|
4053
|
+
}
|
|
4054
|
+
handleConfigSchemaViolation(error) {
|
|
4055
|
+
this.handleExecutionThrow(error);
|
|
4055
4056
|
}
|
|
4056
4057
|
update(config, _context) {
|
|
4057
4058
|
this.unsubscribe();
|
|
@@ -5742,7 +5743,7 @@ function getEnvironmentSetting(name) {
|
|
|
5742
5743
|
}
|
|
5743
5744
|
return undefined;
|
|
5744
5745
|
}
|
|
5745
|
-
// version: 1.
|
|
5746
|
+
// version: 1.435.0-615ebb9bbd
|
|
5746
5747
|
|
|
5747
5748
|
const environmentHasAura = typeof window !== 'undefined' && typeof window.$A !== 'undefined';
|
|
5748
5749
|
const defaultConfig = {
|
|
@@ -6138,6 +6139,7 @@ function buildLexRuntime5xxStatusResponseInterceptor(logger) {
|
|
|
6138
6139
|
// Throw a simple error to terminate the request completely
|
|
6139
6140
|
// The consumer has NOT opted in to handle 5xx errors, so we don't return any response
|
|
6140
6141
|
// The systemError event above will handle showing the gack dialog
|
|
6142
|
+
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
6141
6143
|
throw new Error(error.message);
|
|
6142
6144
|
}
|
|
6143
6145
|
return response;
|
|
@@ -6180,6 +6182,7 @@ function buildLexRuntimeLuvio5xxStatusResponseInterceptor() {
|
|
|
6180
6182
|
// Throw a simple error to terminate the request completely
|
|
6181
6183
|
// The consumer has NOT opted in to handle 5xx errors, so we don't return any response
|
|
6182
6184
|
// The systemError event above will handle showing the gack dialog
|
|
6185
|
+
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
6183
6186
|
throw new Error(error.message);
|
|
6184
6187
|
}
|
|
6185
6188
|
return response;
|
|
@@ -6369,6 +6372,7 @@ function buildCsrfTokenInterceptor() {
|
|
|
6369
6372
|
if (isCsrfMethod(method)) {
|
|
6370
6373
|
const token = await csrfTokenManager.getToken();
|
|
6371
6374
|
if (token) {
|
|
6375
|
+
// eslint-disable-next-line no-param-reassign
|
|
6372
6376
|
fetchArgs = setHeader(CSRF_TOKEN_HEADER, token, fetchArgs);
|
|
6373
6377
|
}
|
|
6374
6378
|
}
|
|
@@ -6543,6 +6547,7 @@ function findCorrectResource(resources, url, context) {
|
|
|
6543
6547
|
const matchingResources = [];
|
|
6544
6548
|
if (context.queryParams) {
|
|
6545
6549
|
const urlWithParams = buildUrlWithParams(url, context.queryParams);
|
|
6550
|
+
// eslint-disable-next-line guard-for-in
|
|
6546
6551
|
for (let entry in resources) {
|
|
6547
6552
|
const resource = resources[entry];
|
|
6548
6553
|
if (resource.name === urlWithParams && !seenResources.has(resource)) {
|
|
@@ -6554,6 +6559,7 @@ function findCorrectResource(resources, url, context) {
|
|
|
6554
6559
|
return matchingResources[0];
|
|
6555
6560
|
}
|
|
6556
6561
|
else if (matchingResources.length > 1) {
|
|
6562
|
+
// eslint-disable-next-line no-param-reassign
|
|
6557
6563
|
resources = matchingResources;
|
|
6558
6564
|
}
|
|
6559
6565
|
// this means that we have multiple of the same request, and so we will fall back to timing. But this is only a best estimate,
|
|
@@ -6633,6 +6639,7 @@ function buildTransportMarksSendInterceptor() {
|
|
|
6633
6639
|
// First set the requestId header. If there's not context, it means we won't be able to track the mark and something is hosed, and so not worth even trying
|
|
6634
6640
|
if (context && context.instrumentationId) {
|
|
6635
6641
|
const requestId = context.instrumentationId;
|
|
6642
|
+
// eslint-disable-next-line no-param-reassign
|
|
6636
6643
|
fetchArgs = setHeader(SFDC_REQUEST_ID_KEY, requestId, fetchArgs);
|
|
6637
6644
|
context.startTime = performance.now();
|
|
6638
6645
|
createTransportStartMark(requestId);
|
|
@@ -6930,7 +6937,7 @@ class CsrfTokenRetryPolicy extends RetryPolicy {
|
|
|
6930
6937
|
}
|
|
6931
6938
|
// Check if this is a CSRF error by examining the response body
|
|
6932
6939
|
// This avoids retrying all 400s (validation errors, bad requests, etc.)
|
|
6933
|
-
return
|
|
6940
|
+
return isCsrfError(result);
|
|
6934
6941
|
}
|
|
6935
6942
|
/**
|
|
6936
6943
|
* CSRF token refresh should happen immediately with no delay.
|
|
@@ -6990,7 +6997,7 @@ async function isCsrfError(response) {
|
|
|
6990
6997
|
}
|
|
6991
6998
|
|
|
6992
6999
|
function buildCsrfRetryInterceptor() {
|
|
6993
|
-
return async (fetchArgs, retryService,
|
|
7000
|
+
return async (fetchArgs, retryService, _context) => {
|
|
6994
7001
|
if (retryService) {
|
|
6995
7002
|
// Create mutable context for CSRF retry policy
|
|
6996
7003
|
const mutableRequest = { args: fetchArgs };
|
|
@@ -7009,7 +7016,7 @@ function buildCsrfRetryInterceptor() {
|
|
|
7009
7016
|
}
|
|
7010
7017
|
// Retry service will call prepareRetry hook which updates mutableRequest.args
|
|
7011
7018
|
return retryService.applyRetry(async () => {
|
|
7012
|
-
return
|
|
7019
|
+
return fetch(...mutableRequest.args);
|
|
7013
7020
|
});
|
|
7014
7021
|
}
|
|
7015
7022
|
return fetch(...fetchArgs);
|
|
@@ -9148,6 +9155,9 @@ const composedNetworkAdapter = buildComposableNetworkAdapter([
|
|
|
9148
9155
|
adapter: auraNetworkAdapter,
|
|
9149
9156
|
},
|
|
9150
9157
|
]);
|
|
9158
|
+
// Route dispatcher-synthesized sub-requests (e.g. aggregate-ui) back through
|
|
9159
|
+
// the composed adapter so shouldHandleRequest and interceptors apply uniformly.
|
|
9160
|
+
registerSubRequestNetworkAdapter(composedNetworkAdapter);
|
|
9151
9161
|
|
|
9152
9162
|
const OBJECT_INFO_PREFIX = 'UiApi::ObjectInfoRepresentation:';
|
|
9153
9163
|
/**
|
|
@@ -9915,6 +9925,7 @@ class FetchThrottlingRetryPolicy extends RetryPolicy {
|
|
|
9915
9925
|
}
|
|
9916
9926
|
}
|
|
9917
9927
|
|
|
9928
|
+
/* eslint-disable no-console */
|
|
9918
9929
|
/**
|
|
9919
9930
|
* Default storage configuration for the durable cache
|
|
9920
9931
|
*/
|
|
@@ -10209,6 +10220,7 @@ class AuraDurableCacheInclusionPolicy extends DurableCacheInclusionPolicy {
|
|
|
10209
10220
|
buildUpdate(update, existing) {
|
|
10210
10221
|
switch (update.type) {
|
|
10211
10222
|
case 'invalidate':
|
|
10223
|
+
// eslint-disable-next-line no-case-declarations
|
|
10212
10224
|
const updatedCacheControl = this.buildInvalidatedCacheControl(existing.metadata.cacheControl);
|
|
10213
10225
|
return updatedCacheControl !== undefined
|
|
10214
10226
|
? { type: 'metadata', metadata: updatedCacheControl }
|
|
@@ -10217,6 +10229,7 @@ class AuraDurableCacheInclusionPolicy extends DurableCacheInclusionPolicy {
|
|
|
10217
10229
|
// Eviction removes the entry entirely from storage
|
|
10218
10230
|
return { type: 'delete' };
|
|
10219
10231
|
default:
|
|
10232
|
+
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
10220
10233
|
throw new Error(`Invalid update operation: ${update.type}`);
|
|
10221
10234
|
}
|
|
10222
10235
|
}
|
|
@@ -10267,12 +10280,10 @@ register({
|
|
|
10267
10280
|
id: '@salesforce/lds-network-adapter',
|
|
10268
10281
|
instrument: ldsNetworkAdapterInstrument,
|
|
10269
10282
|
});
|
|
10270
|
-
function setTrackedFieldsConfig(
|
|
10271
|
-
|
|
10272
|
-
configuration.
|
|
10273
|
-
configuration.
|
|
10274
|
-
configuration.setTrackedFieldDepthOnCacheMergeConflict(depth);
|
|
10275
|
-
configuration.setTrackedFieldDepthOnNotifyChange(depth);
|
|
10283
|
+
function setTrackedFieldsConfig() {
|
|
10284
|
+
configuration.setTrackedFieldDepthOnCacheMiss(1);
|
|
10285
|
+
configuration.setTrackedFieldDepthOnCacheMergeConflict(1);
|
|
10286
|
+
configuration.setTrackedFieldDepthOnNotifyChange(1);
|
|
10276
10287
|
}
|
|
10277
10288
|
function setupQueryEvaluators(luvio, store) {
|
|
10278
10289
|
const baseQueryEvaluator = new InMemoryStoreQueryEvaluator(store);
|
|
@@ -10464,7 +10475,7 @@ function initializeLDS() {
|
|
|
10464
10475
|
setupMetadataWatcher(luvio);
|
|
10465
10476
|
setupQueryEvaluators(luvio, store);
|
|
10466
10477
|
setDefaultLuvio({ luvio });
|
|
10467
|
-
setTrackedFieldsConfig(
|
|
10478
|
+
setTrackedFieldsConfig();
|
|
10468
10479
|
if (usePredictiveLoading.isOpen({ fallback: false })) {
|
|
10469
10480
|
setupPredictivePrefetcher(luvio);
|
|
10470
10481
|
}
|
|
@@ -10574,4 +10585,4 @@ function ldsEngineCreator() {
|
|
|
10574
10585
|
}
|
|
10575
10586
|
|
|
10576
10587
|
export { LexRequestStrategy, PdlPrefetcherEventType, PdlRequestPriority, buildPredictorForContext, configService, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, subscribeToPrefetcherEvents, unregisterRequestStrategy, whenPredictionsReady };
|
|
10577
|
-
// version: 1.
|
|
10588
|
+
// version: 1.435.0-5818ce3c48
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type LoggerService } from '@conduit-client/utils';
|
|
2
2
|
import { type FetchServiceDescriptor } from '@conduit-client/service-fetch-network/v1';
|
|
3
|
-
import { RetryService } from '@conduit-client/service-retry/v1';
|
|
3
|
+
import type { RetryService } from '@conduit-client/service-retry/v1';
|
|
4
4
|
export declare function buildLexRuntimeDefaultFetchServiceDescriptor(logger: LoggerService, retryService?: RetryService<Response>): FetchServiceDescriptor;
|
|
5
5
|
export declare function buildLexRuntimeAllow5xxFetchServiceDescriptor(logger: LoggerService, retryService?: RetryService<Response>): FetchServiceDescriptor;
|
|
6
6
|
export declare function buildLexRuntimeCompressedFetchServiceDescriptor(logger: LoggerService, retryService?: RetryService<Response>): FetchServiceDescriptor;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FinallyInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
1
|
+
import type { FinallyInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
2
|
export declare function buildThirdPartyTrackerFinishInterceptor(): FinallyInterceptor;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Luvio } from '@luvio/engine';
|
|
2
|
-
import { KeyParamsRecord } from '@salesforce/lds-adapters-uiapi';
|
|
3
|
-
import { ObjectHomePageContext, PdlPrefetcherEventType, PrefetcherEventMap
|
|
2
|
+
import type { KeyParamsRecord } from '@salesforce/lds-adapters-uiapi';
|
|
3
|
+
import type { ObjectHomePageContext, PdlPrefetcherEventType, PrefetcherEventMap } from './predictive-loading';
|
|
4
|
+
import { type RecordHomePageContext } from './predictive-loading';
|
|
4
5
|
import type { LexRequestStrategy } from './predictive-loading/request-strategy/lex-request-strategy';
|
|
5
6
|
import { type LexRequest } from './predictive-loading/lex';
|
|
6
7
|
export { PdlRequestPriority, PdlPrefetcherEventType } from './predictive-loading';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ResourceRequest } from '@luvio/engine';
|
|
2
2
|
import type { RequestLogger } from '@salesforce/lds-network-fetch';
|
|
3
|
-
import { RequestTracker } from './instrumentation-utils';
|
|
3
|
+
import type { RequestTracker } from './instrumentation-utils';
|
|
4
4
|
/**
|
|
5
5
|
* Base set of url paths that this adapter can serve via HTTP when enabled.
|
|
6
6
|
* Extend this list to support additional endpoints (see predicate wiring below).
|
|
@@ -5,7 +5,7 @@ import type { PrefetchRepository } from '../repository';
|
|
|
5
5
|
import type { RequestEntry } from '../common';
|
|
6
6
|
import type { LexContext, LexPrefetcherOptions, LexRequest } from '../lex';
|
|
7
7
|
import type { RequestStrategyManager } from '../request-strategy-manager/request-strategy-manager';
|
|
8
|
-
import { PrefetcherEventEmitter } from './events';
|
|
8
|
+
import type { PrefetcherEventEmitter } from './events';
|
|
9
9
|
export declare class LexPredictivePrefetcher extends ApplicationPredictivePrefetcher<LexRequest, LexContext, LexDefaultPage<LexRequest, LexContext>> {
|
|
10
10
|
protected options: LexPrefetcherOptions;
|
|
11
11
|
page: LexDefaultPage<LexRequest, LexContext>;
|
|
@@ -2,7 +2,8 @@ import type { PrefetchRepository } from '../repository';
|
|
|
2
2
|
import type { PredictivePrefetchPage } from '../pages';
|
|
3
3
|
import type { RequestRunner } from '../request-runner';
|
|
4
4
|
import type { BaseAdapterRequest } from '../request-strategy';
|
|
5
|
-
import { PrefetcherEventEmitter,
|
|
5
|
+
import type { PrefetcherEventEmitter, PrefetcherEventMap } from './events';
|
|
6
|
+
import { PdlPrefetcherEventType } from './events';
|
|
6
7
|
export declare abstract class ApplicationPredictivePrefetcher<Request extends BaseAdapterRequest, Context extends Record<string, any>, Page extends PredictivePrefetchPage<Request, Context>> {
|
|
7
8
|
protected repository: PrefetchRepository<Request>;
|
|
8
9
|
protected requestRunner: RequestRunner<Request>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
|
-
import { ResourceRequest } from '@luvio/engine';
|
|
1
|
+
import type { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
|
+
import type { ResourceRequest } from '@luvio/engine';
|
|
3
3
|
export declare function buildActionMarksSendInterceptor(): RequestInterceptor;
|
|
4
4
|
export declare function buildLuvioActionMarksSendInterceptor(): (resourceRequest: ResourceRequest, context?: any) => PromiseLike<ResourceRequest>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
|
-
import { ResourceRequest } from '@luvio/engine';
|
|
1
|
+
import type { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
|
+
import type { ResourceRequest } from '@luvio/engine';
|
|
3
3
|
/**
|
|
4
4
|
* Builds a request interceptor that adds CSRF token headers to mutating requests.
|
|
5
5
|
* The CSRF token is fetched once and cached for subsequent requests.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResourceRequest } from '@luvio/engine';
|
|
1
|
+
import type { ResourceRequest } from '@luvio/engine';
|
|
2
2
|
export declare function buildLuvioThirdPartyTrackerRegisterInterceptor(): (resourceRequest: ResourceRequest, context?: any) => PromiseLike<ResourceRequest>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
1
|
+
import type { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
2
|
export declare function buildPageScopedCacheRequestInterceptor(): RequestInterceptor;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
1
|
+
import type { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
2
|
export declare function buildThirdPartyTrackerRegisterInterceptor(): RequestInterceptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
|
-
import { ResourceRequest } from '@luvio/engine';
|
|
1
|
+
import type { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
|
+
import type { ResourceRequest } from '@luvio/engine';
|
|
3
3
|
export declare const SFDC_REQUEST_ID_KEY = "X-SFDC-Request-Id";
|
|
4
4
|
export declare function buildTransportMarksSendInterceptor(): RequestInterceptor;
|
|
5
5
|
export declare function buildLuvioTransportMarksSendInterceptor(): (resourceRequest: ResourceRequest, context?: any) => PromiseLike<ResourceRequest>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
|
-
import { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
|
|
1
|
+
import type { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
|
+
import type { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
|
|
3
3
|
export declare function buildActionMarksReceiveInterceptor(): ResponseInterceptor;
|
|
4
4
|
export declare function buildLuvioActionMarksReceiveInterceptor(): LuvioResponseInterceptor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LoggerService } from '@conduit-client/utils';
|
|
2
|
-
import { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
3
|
-
import { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
|
|
1
|
+
import type { LoggerService } from '@conduit-client/utils';
|
|
2
|
+
import type { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
3
|
+
import type { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
|
|
4
4
|
export type LexRuntimeError = {
|
|
5
5
|
message: string;
|
|
6
6
|
severity: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LoggerService } from '@conduit-client/utils';
|
|
2
|
-
import { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
3
|
-
import { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
|
|
1
|
+
import type { LoggerService } from '@conduit-client/utils';
|
|
2
|
+
import type { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
3
|
+
import type { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
|
|
4
4
|
export declare function buildLexRuntimeAuthExpirationRedirectResponseInterceptor(logger: LoggerService): ResponseInterceptor;
|
|
5
5
|
export declare function buildLexRuntimeLuvioAuthExpirationRedirectResponseInterceptor(): LuvioResponseInterceptor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
|
-
import { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
|
|
1
|
+
import type { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
|
+
import type { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
|
|
3
3
|
export declare function buildTransportMarksReceiveInterceptor(): ResponseInterceptor;
|
|
4
4
|
export declare function buildLuvioTransportMarksReceiveInterceptor(): LuvioResponseInterceptor;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RetryInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
1
|
+
import type { RetryInterceptor } from '@conduit-client/service-fetch-network/v1';
|
|
2
2
|
export declare function buildCsrfRetryInterceptor(): RetryInterceptor;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RetryContext } from '@conduit-client/service-retry/v1';
|
|
2
|
+
import { RetryPolicy } from '@conduit-client/service-retry/v1';
|
|
2
3
|
import type { FetchParameters } from '@conduit-client/service-fetch-network/v1';
|
|
3
4
|
type CsrfTokenRetryPolicyConfig = {
|
|
4
5
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RetryContext } from '@conduit-client/service-retry/v1';
|
|
2
|
+
import { RetryPolicy } from '@conduit-client/service-retry/v1';
|
|
2
3
|
type FetchThrottlingRetryPolicyConfig = {
|
|
3
4
|
maxRetries: number;
|
|
4
5
|
maxTimeToRetry: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-aura",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.435.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Aura runtime",
|
|
6
6
|
"main": "dist/ldsEngineCreator.js",
|
|
@@ -34,51 +34,52 @@
|
|
|
34
34
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-aura"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@conduit-client/service-provisioner": "3.19.
|
|
38
|
-
"@conduit-client/tools-core": "3.19.
|
|
39
|
-
"@salesforce/lds-adapters-apex": "^1.
|
|
40
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
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-
|
|
46
|
-
"@salesforce/lds-network-
|
|
37
|
+
"@conduit-client/service-provisioner": "3.19.5",
|
|
38
|
+
"@conduit-client/tools-core": "3.19.5",
|
|
39
|
+
"@salesforce/lds-adapters-apex": "^1.435.0",
|
|
40
|
+
"@salesforce/lds-adapters-uiapi": "^1.435.0",
|
|
41
|
+
"@salesforce/lds-ads-bridge": "^1.435.0",
|
|
42
|
+
"@salesforce/lds-aura-storage": "^1.435.0",
|
|
43
|
+
"@salesforce/lds-bindings": "^1.435.0",
|
|
44
|
+
"@salesforce/lds-instrumentation": "^1.435.0",
|
|
45
|
+
"@salesforce/lds-network-adapter": "^1.435.0",
|
|
46
|
+
"@salesforce/lds-network-aura": "^1.435.0",
|
|
47
|
+
"@salesforce/lds-network-fetch": "^1.435.0",
|
|
47
48
|
"jwt-encode": "1.0.1"
|
|
48
49
|
},
|
|
49
50
|
"dependencies": {
|
|
50
|
-
"@conduit-client/command-aura-graphql-normalized-cache-control": "3.19.
|
|
51
|
-
"@conduit-client/command-aura-network": "3.19.
|
|
52
|
-
"@conduit-client/command-aura-normalized-cache-control": "3.19.
|
|
53
|
-
"@conduit-client/command-aura-resource-cache-control": "3.19.
|
|
54
|
-
"@conduit-client/command-fetch-network": "3.19.
|
|
55
|
-
"@conduit-client/command-http-graphql-normalized-cache-control": "3.19.
|
|
56
|
-
"@conduit-client/command-http-normalized-cache-control": "3.19.
|
|
57
|
-
"@conduit-client/command-ndjson": "3.19.
|
|
58
|
-
"@conduit-client/command-network": "3.19.
|
|
59
|
-
"@conduit-client/command-sse": "3.19.
|
|
60
|
-
"@conduit-client/command-streaming": "3.19.
|
|
61
|
-
"@conduit-client/service-aura-network": "3.19.
|
|
62
|
-
"@conduit-client/service-bindings-imperative": "3.19.
|
|
63
|
-
"@conduit-client/service-bindings-lwc": "3.19.
|
|
64
|
-
"@conduit-client/service-cache": "3.19.
|
|
65
|
-
"@conduit-client/service-cache-control": "3.19.
|
|
66
|
-
"@conduit-client/service-cache-inclusion-policy": "3.19.
|
|
67
|
-
"@conduit-client/service-config": "3.19.
|
|
68
|
-
"@conduit-client/service-feature-flags": "3.19.
|
|
69
|
-
"@conduit-client/service-fetch-network": "3.19.
|
|
70
|
-
"@conduit-client/service-instrument-command": "3.19.
|
|
71
|
-
"@conduit-client/service-pubsub": "3.19.
|
|
72
|
-
"@conduit-client/service-store": "3.19.
|
|
73
|
-
"@conduit-client/utils": "3.19.
|
|
51
|
+
"@conduit-client/command-aura-graphql-normalized-cache-control": "3.19.5",
|
|
52
|
+
"@conduit-client/command-aura-network": "3.19.5",
|
|
53
|
+
"@conduit-client/command-aura-normalized-cache-control": "3.19.5",
|
|
54
|
+
"@conduit-client/command-aura-resource-cache-control": "3.19.5",
|
|
55
|
+
"@conduit-client/command-fetch-network": "3.19.5",
|
|
56
|
+
"@conduit-client/command-http-graphql-normalized-cache-control": "3.19.5",
|
|
57
|
+
"@conduit-client/command-http-normalized-cache-control": "3.19.5",
|
|
58
|
+
"@conduit-client/command-ndjson": "3.19.5",
|
|
59
|
+
"@conduit-client/command-network": "3.19.5",
|
|
60
|
+
"@conduit-client/command-sse": "3.19.5",
|
|
61
|
+
"@conduit-client/command-streaming": "3.19.5",
|
|
62
|
+
"@conduit-client/service-aura-network": "3.19.5",
|
|
63
|
+
"@conduit-client/service-bindings-imperative": "3.19.5",
|
|
64
|
+
"@conduit-client/service-bindings-lwc": "3.19.5",
|
|
65
|
+
"@conduit-client/service-cache": "3.19.5",
|
|
66
|
+
"@conduit-client/service-cache-control": "3.19.5",
|
|
67
|
+
"@conduit-client/service-cache-inclusion-policy": "3.19.5",
|
|
68
|
+
"@conduit-client/service-config": "3.19.5",
|
|
69
|
+
"@conduit-client/service-feature-flags": "3.19.5",
|
|
70
|
+
"@conduit-client/service-fetch-network": "3.19.5",
|
|
71
|
+
"@conduit-client/service-instrument-command": "3.19.5",
|
|
72
|
+
"@conduit-client/service-pubsub": "3.19.5",
|
|
73
|
+
"@conduit-client/service-store": "3.19.5",
|
|
74
|
+
"@conduit-client/utils": "3.19.5",
|
|
74
75
|
"@luvio/network-adapter-composable": "0.160.4",
|
|
75
76
|
"@luvio/network-adapter-fetch": "0.160.4",
|
|
76
77
|
"@lwc/state": "^0.29.0",
|
|
77
|
-
"@salesforce/lds-adapters-onestore-graphql": "^1.
|
|
78
|
+
"@salesforce/lds-adapters-onestore-graphql": "^1.435.0",
|
|
78
79
|
"@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
|
|
79
|
-
"@salesforce/lds-durable-storage": "^1.
|
|
80
|
-
"@salesforce/lds-luvio-service": "^1.
|
|
81
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.
|
|
80
|
+
"@salesforce/lds-durable-storage": "^1.435.0",
|
|
81
|
+
"@salesforce/lds-luvio-service": "^1.435.0",
|
|
82
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.435.0"
|
|
82
83
|
},
|
|
83
84
|
"luvioBundlesize": [
|
|
84
85
|
{
|