@salesforce/lds-runtime-aura 1.469.0 → 1.470.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
|
@@ -30,12 +30,12 @@ import { instrument as instrument$4 } from 'force/adsBridge';
|
|
|
30
30
|
import { instrument as instrument$5 } from '@lwc/state';
|
|
31
31
|
import { withRegistration, register, setDefaultLuvio } from 'force/ldsEngine';
|
|
32
32
|
import { ThirdPartyTracker } from 'instrumentation:thirdPartyTracker';
|
|
33
|
+
import { createStorage, clearStorages } from 'force/ldsDurableStorage';
|
|
33
34
|
import lightningConnectEnabled from '@salesforce/gate/ui.services.LightningConnect.enabled';
|
|
34
35
|
import bypassAppRestrictionEnabled from '@salesforce/gate/ui.services.LightningConnect.BypassAppRestriction.enabled';
|
|
35
36
|
import csrfValidationEnabled from '@salesforce/gate/ui.services.LightningConnect.CsrfValidation.enabled';
|
|
36
37
|
import sessionApiEnabled from '@salesforce/gate/ui.uisdk.session.api.enabled';
|
|
37
38
|
import { pageScopedCache } from 'instrumentation/utility';
|
|
38
|
-
import { createStorage, clearStorages } from 'force/ldsDurableStorage';
|
|
39
39
|
import useHttpUiapiAuraSites from '@salesforce/gate/lds.usehttpuiapiaurasites';
|
|
40
40
|
import auraBasedRequestsEnabled from '@salesforce/gate/ui.services.auraBasedRequests.enabled';
|
|
41
41
|
import { registerSubRequestNetworkAdapter } from 'force/ldsNetwork';
|
|
@@ -2783,7 +2783,7 @@ function buildServiceDescriptor$d(luvio) {
|
|
|
2783
2783
|
},
|
|
2784
2784
|
};
|
|
2785
2785
|
}
|
|
2786
|
-
// version: 1.
|
|
2786
|
+
// version: 1.470.0-ba8b11db3a
|
|
2787
2787
|
|
|
2788
2788
|
class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
|
|
2789
2789
|
constructor(config, documentRootType, services) {
|
|
@@ -3122,7 +3122,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
3122
3122
|
},
|
|
3123
3123
|
};
|
|
3124
3124
|
}
|
|
3125
|
-
// version: 1.
|
|
3125
|
+
// version: 1.470.0-ba8b11db3a
|
|
3126
3126
|
|
|
3127
3127
|
class RetryService {
|
|
3128
3128
|
constructor(defaultRetryPolicy) {
|
|
@@ -6704,6 +6704,116 @@ function buildLuvioActionMarksSendInterceptor() {
|
|
|
6704
6704
|
};
|
|
6705
6705
|
}
|
|
6706
6706
|
|
|
6707
|
+
const CSRF_TOKEN_KEY = 'salesforce_csrf_token';
|
|
6708
|
+
const CSRF_STORAGE_NAME = 'ldsCSRFToken';
|
|
6709
|
+
const BASE_URI = '/services/data/v69.0';
|
|
6710
|
+
const UI_API_BASE_URI = `${BASE_URI}/ui-api`;
|
|
6711
|
+
const CSRF_TOKEN_ENDPOINT = `${UI_API_BASE_URI}/session/csrf`;
|
|
6712
|
+
const CSRF_STORAGE_CONFIG = {
|
|
6713
|
+
name: CSRF_STORAGE_NAME,
|
|
6714
|
+
persistent: true,
|
|
6715
|
+
secure: true,
|
|
6716
|
+
maxSize: 1024,
|
|
6717
|
+
expiration: 24 * 60 * 60,
|
|
6718
|
+
clearOnInit: false,
|
|
6719
|
+
debugLogging: false,
|
|
6720
|
+
};
|
|
6721
|
+
function readPreloadedToken(getPreloadedToken) {
|
|
6722
|
+
try {
|
|
6723
|
+
const token = getPreloadedToken?.();
|
|
6724
|
+
return typeof token === 'string' && token ? token : undefined;
|
|
6725
|
+
}
|
|
6726
|
+
catch {
|
|
6727
|
+
return undefined;
|
|
6728
|
+
}
|
|
6729
|
+
}
|
|
6730
|
+
/**
|
|
6731
|
+
* Fetches a fresh CSRF token from the server. Resolves `undefined` (not a
|
|
6732
|
+
* rejection) on any non-ok response, missing token, or network/parse error so
|
|
6733
|
+
* the manager treats it as "no value" and leaves any cached token intact. The
|
|
6734
|
+
* CSRF retry policy — not this fetch — owns retry semantics.
|
|
6735
|
+
*/
|
|
6736
|
+
async function fetchFreshToken() {
|
|
6737
|
+
try {
|
|
6738
|
+
const response = await fetch(CSRF_TOKEN_ENDPOINT, {
|
|
6739
|
+
method: 'GET',
|
|
6740
|
+
credentials: 'same-origin',
|
|
6741
|
+
});
|
|
6742
|
+
if (!response.ok) {
|
|
6743
|
+
return undefined;
|
|
6744
|
+
}
|
|
6745
|
+
const data = await response.json();
|
|
6746
|
+
const token = data.csrfToken;
|
|
6747
|
+
return typeof token === 'string' && token ? token : undefined;
|
|
6748
|
+
}
|
|
6749
|
+
catch {
|
|
6750
|
+
return undefined;
|
|
6751
|
+
}
|
|
6752
|
+
}
|
|
6753
|
+
/**
|
|
6754
|
+
* Durable store fronted by memory so `get()` is sync once loaded (W-24883855).
|
|
6755
|
+
* No TTL: a stale token is replaced via the CSRF retry policy's `refresh()`.
|
|
6756
|
+
*/
|
|
6757
|
+
function buildCsrfResourceStorage(getPreloadedToken) {
|
|
6758
|
+
const storage = createStorage(CSRF_STORAGE_CONFIG);
|
|
6759
|
+
let currentToken;
|
|
6760
|
+
let loaded = false;
|
|
6761
|
+
// Seed once (stored, else preloaded) so a later clear() isn't resurrected by
|
|
6762
|
+
// the preload. A set()/clear() during the read wins.
|
|
6763
|
+
const seeded = (async () => {
|
|
6764
|
+
const preloadedToken = readPreloadedToken(getPreloadedToken);
|
|
6765
|
+
let existing;
|
|
6766
|
+
try {
|
|
6767
|
+
const cached = await storage?.get(CSRF_TOKEN_KEY);
|
|
6768
|
+
existing = typeof cached === 'string' && cached ? cached : undefined;
|
|
6769
|
+
}
|
|
6770
|
+
catch {
|
|
6771
|
+
// Treated as a miss; the manager fetches.
|
|
6772
|
+
}
|
|
6773
|
+
if (loaded) {
|
|
6774
|
+
return;
|
|
6775
|
+
}
|
|
6776
|
+
currentToken = existing ?? preloadedToken;
|
|
6777
|
+
loaded = true;
|
|
6778
|
+
if (storage && !existing && preloadedToken) {
|
|
6779
|
+
try {
|
|
6780
|
+
await storage.set(CSRF_TOKEN_KEY, preloadedToken);
|
|
6781
|
+
}
|
|
6782
|
+
catch {
|
|
6783
|
+
// Still usable from memory.
|
|
6784
|
+
}
|
|
6785
|
+
}
|
|
6786
|
+
})();
|
|
6787
|
+
// Durable writes wait for the seed so they land after its preload write.
|
|
6788
|
+
// Failures are ignored; memory stays authoritative.
|
|
6789
|
+
const afterSeed = (write) => seeded.then(write).then(() => { }, () => { });
|
|
6790
|
+
return {
|
|
6791
|
+
get: () => (loaded ? resolvedPromiseLike$2(currentToken) : seeded.then(() => currentToken)),
|
|
6792
|
+
set: (value) => {
|
|
6793
|
+
currentToken = value;
|
|
6794
|
+
loaded = true;
|
|
6795
|
+
return afterSeed(() => storage?.set(CSRF_TOKEN_KEY, value));
|
|
6796
|
+
},
|
|
6797
|
+
clear: () => {
|
|
6798
|
+
currentToken = undefined;
|
|
6799
|
+
loaded = true;
|
|
6800
|
+
return afterSeed(() => storage?.remove(CSRF_TOKEN_KEY));
|
|
6801
|
+
},
|
|
6802
|
+
};
|
|
6803
|
+
}
|
|
6804
|
+
/**
|
|
6805
|
+
* Builds the CSRF token manager: a {@link BasicRenewableResourceManager} that
|
|
6806
|
+
* lazily caches the token in durable storage, coalesces concurrent fetches onto
|
|
6807
|
+
* a single in-flight request, and dedups refresh storms. Registered as a
|
|
6808
|
+
* provisioner service (`csrfTokenManager`) by `initializeOneStore`.
|
|
6809
|
+
*/
|
|
6810
|
+
function buildCsrfTokenManager(options = {}) {
|
|
6811
|
+
return new BasicRenewableResourceManager({
|
|
6812
|
+
fetch: fetchFreshToken,
|
|
6813
|
+
storage: buildCsrfResourceStorage(options.getPreloadedToken),
|
|
6814
|
+
});
|
|
6815
|
+
}
|
|
6816
|
+
|
|
6707
6817
|
/**
|
|
6708
6818
|
* Service name the CSRF token manager is registered under by
|
|
6709
6819
|
* `initializeOneStore` (see `buildRenewableResourceManagerDescriptor`).
|
|
@@ -6716,6 +6826,11 @@ const CSRF_TOKEN_MANAGER_REQUEST = {
|
|
|
6716
6826
|
},
|
|
6717
6827
|
};
|
|
6718
6828
|
let cached;
|
|
6829
|
+
let resolvedManager;
|
|
6830
|
+
/** The manager if {@link getCsrfTokenManager} has resolved it, else `undefined`. */
|
|
6831
|
+
function peekCsrfTokenManager() {
|
|
6832
|
+
return resolvedManager;
|
|
6833
|
+
}
|
|
6719
6834
|
/**
|
|
6720
6835
|
* Resolves the CSRF token manager from the service provisioner.
|
|
6721
6836
|
*
|
|
@@ -6731,7 +6846,10 @@ let cached;
|
|
|
6731
6846
|
function getCsrfTokenManager() {
|
|
6732
6847
|
if (!cached) {
|
|
6733
6848
|
cached = Promise.resolve(getServices(CSRF_TOKEN_MANAGER_REQUEST))
|
|
6734
|
-
.then((services) =>
|
|
6849
|
+
.then((services) => {
|
|
6850
|
+
resolvedManager = services[CSRF_TOKEN_MANAGER_SERVICE];
|
|
6851
|
+
return resolvedManager;
|
|
6852
|
+
})
|
|
6735
6853
|
.catch((error) => {
|
|
6736
6854
|
cached = undefined;
|
|
6737
6855
|
throw error;
|
|
@@ -6745,14 +6863,18 @@ const CSRF_TOKEN_HEADER = 'X-CSRF-Token';
|
|
|
6745
6863
|
* Resolves the CSRF token manager and returns the current token. Returns
|
|
6746
6864
|
* `undefined` if the manager cannot be resolved (service not yet provisioned)
|
|
6747
6865
|
* or has no token, so a request is never blocked by token resolution.
|
|
6866
|
+
* Synchronous once the manager has resolved and the token is loaded (W-24883855).
|
|
6748
6867
|
*/
|
|
6749
|
-
|
|
6868
|
+
function getCsrfToken() {
|
|
6750
6869
|
try {
|
|
6751
|
-
const manager =
|
|
6752
|
-
|
|
6870
|
+
const manager = peekCsrfTokenManager();
|
|
6871
|
+
const token = manager
|
|
6872
|
+
? manager.get()
|
|
6873
|
+
: getCsrfTokenManager().then((resolved) => resolved.get());
|
|
6874
|
+
return token.then((value) => value, () => undefined);
|
|
6753
6875
|
}
|
|
6754
6876
|
catch {
|
|
6755
|
-
return undefined;
|
|
6877
|
+
return resolvedPromiseLike$2(undefined);
|
|
6756
6878
|
}
|
|
6757
6879
|
}
|
|
6758
6880
|
/**
|
|
@@ -6804,7 +6926,8 @@ function buildCsrfTokenInterceptor() {
|
|
|
6804
6926
|
* @returns A request interceptor function for Luvio ResourceRequest objects
|
|
6805
6927
|
*/
|
|
6806
6928
|
function buildLuvioCsrfTokenInterceptor() {
|
|
6807
|
-
|
|
6929
|
+
// Sync on purpose (W-24883855).
|
|
6930
|
+
return (resourceRequest) => {
|
|
6808
6931
|
// Check if all required gates are enabled before running
|
|
6809
6932
|
if (!areCsrfGatesEnabled()) {
|
|
6810
6933
|
return resolvedPromiseLike$2(resourceRequest);
|
|
@@ -6813,17 +6936,20 @@ function buildLuvioCsrfTokenInterceptor() {
|
|
|
6813
6936
|
if (!resourceRequest.headers) {
|
|
6814
6937
|
resourceRequest.headers = {};
|
|
6815
6938
|
}
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
if (!resourceRequest.headers[CSRF_TOKEN_HEADER]) {
|
|
6820
|
-
const token = await getCsrfToken();
|
|
6821
|
-
if (token) {
|
|
6822
|
-
resourceRequest.headers[CSRF_TOKEN_HEADER] = token;
|
|
6823
|
-
}
|
|
6824
|
-
}
|
|
6939
|
+
if (!peekCsrfTokenManager()) {
|
|
6940
|
+
// Warm it (GETs too) so mutations attach the token synchronously.
|
|
6941
|
+
getCsrfTokenManager().catch(() => { });
|
|
6825
6942
|
}
|
|
6826
|
-
|
|
6943
|
+
if (!isMutatingMethod(resourceRequest.method) ||
|
|
6944
|
+
resourceRequest.headers[CSRF_TOKEN_HEADER]) {
|
|
6945
|
+
return resolvedPromiseLike$2(resourceRequest);
|
|
6946
|
+
}
|
|
6947
|
+
return getCsrfToken().then((token) => {
|
|
6948
|
+
if (token) {
|
|
6949
|
+
resourceRequest.headers[CSRF_TOKEN_HEADER] = token;
|
|
6950
|
+
}
|
|
6951
|
+
return resourceRequest;
|
|
6952
|
+
});
|
|
6827
6953
|
};
|
|
6828
6954
|
}
|
|
6829
6955
|
|
|
@@ -6879,7 +7005,8 @@ function buildFirstPartyHeaderInterceptor() {
|
|
|
6879
7005
|
* @returns A request interceptor for Luvio ResourceRequest objects
|
|
6880
7006
|
*/
|
|
6881
7007
|
function buildLuvioFirstPartyHeaderInterceptor() {
|
|
6882
|
-
|
|
7008
|
+
// Sync on purpose (W-24883855).
|
|
7009
|
+
return (resourceRequest) => {
|
|
6883
7010
|
if (!resourceRequest.headers) {
|
|
6884
7011
|
resourceRequest.headers = {};
|
|
6885
7012
|
}
|
|
@@ -6924,7 +7051,8 @@ function mintIdempotencyKey() {
|
|
|
6924
7051
|
* registry flag can never cause an unsafe replay.
|
|
6925
7052
|
*/
|
|
6926
7053
|
function buildLuvioIdempotencyKeyInterceptor() {
|
|
6927
|
-
|
|
7054
|
+
// Sync on purpose (W-24883855).
|
|
7055
|
+
return (resourceRequest) => {
|
|
6928
7056
|
if (!resourceRequest.headers) {
|
|
6929
7057
|
resourceRequest.headers = {};
|
|
6930
7058
|
}
|
|
@@ -8159,7 +8287,7 @@ function getEnvironmentSetting(name) {
|
|
|
8159
8287
|
}
|
|
8160
8288
|
return undefined;
|
|
8161
8289
|
}
|
|
8162
|
-
// version: 1.
|
|
8290
|
+
// version: 1.470.0-41a8c88685
|
|
8163
8291
|
|
|
8164
8292
|
const auraClientService = getAuraClientService();
|
|
8165
8293
|
const defaultConfig = {
|
|
@@ -9246,149 +9374,6 @@ function buildLexRuntimeCompressedFetchServiceDescriptor(logger, retryService) {
|
|
|
9246
9374
|
};
|
|
9247
9375
|
}
|
|
9248
9376
|
|
|
9249
|
-
const CSRF_TOKEN_KEY = 'salesforce_csrf_token';
|
|
9250
|
-
const CSRF_STORAGE_NAME = 'ldsCSRFToken';
|
|
9251
|
-
const BASE_URI = '/services/data/v69.0';
|
|
9252
|
-
const UI_API_BASE_URI = `${BASE_URI}/ui-api`;
|
|
9253
|
-
const CSRF_TOKEN_ENDPOINT = `${UI_API_BASE_URI}/session/csrf`;
|
|
9254
|
-
const CSRF_STORAGE_CONFIG = {
|
|
9255
|
-
name: CSRF_STORAGE_NAME,
|
|
9256
|
-
persistent: true,
|
|
9257
|
-
secure: true,
|
|
9258
|
-
maxSize: 1024,
|
|
9259
|
-
expiration: 24 * 60 * 60,
|
|
9260
|
-
clearOnInit: false,
|
|
9261
|
-
debugLogging: false,
|
|
9262
|
-
};
|
|
9263
|
-
/**
|
|
9264
|
-
* Reads the CSRF token Aura preloads onto the bootstrap payload. When the
|
|
9265
|
-
* Connect Framework CSRF token is minted at template-render time it is exposed
|
|
9266
|
-
* via `$A.clientService.getConnectCsrfToken()`. Reading it here lets the first
|
|
9267
|
-
* state-changing request skip the cold `/ui-api/session/csrf` round trip.
|
|
9268
|
-
*
|
|
9269
|
-
* Defensive against a missing getter or server killswitch: returns `undefined`,
|
|
9270
|
-
* never throws.
|
|
9271
|
-
*/
|
|
9272
|
-
function readPreloadedToken() {
|
|
9273
|
-
const clientService = getAuraClientService();
|
|
9274
|
-
if (typeof clientService?.getConnectCsrfToken !== 'function') {
|
|
9275
|
-
return undefined;
|
|
9276
|
-
}
|
|
9277
|
-
try {
|
|
9278
|
-
const token = clientService.getConnectCsrfToken();
|
|
9279
|
-
return typeof token === 'string' && token ? token : undefined;
|
|
9280
|
-
}
|
|
9281
|
-
catch {
|
|
9282
|
-
return undefined;
|
|
9283
|
-
}
|
|
9284
|
-
}
|
|
9285
|
-
/**
|
|
9286
|
-
* Fetches a fresh CSRF token from the server. Resolves `undefined` (not a
|
|
9287
|
-
* rejection) on any non-ok response, missing token, or network/parse error so
|
|
9288
|
-
* the manager treats it as "no value" and leaves any cached token intact. The
|
|
9289
|
-
* CSRF retry policy — not this fetch — owns retry semantics.
|
|
9290
|
-
*/
|
|
9291
|
-
async function fetchFreshToken() {
|
|
9292
|
-
try {
|
|
9293
|
-
const response = await fetch(CSRF_TOKEN_ENDPOINT, {
|
|
9294
|
-
method: 'GET',
|
|
9295
|
-
credentials: 'same-origin',
|
|
9296
|
-
});
|
|
9297
|
-
if (!response.ok) {
|
|
9298
|
-
return undefined;
|
|
9299
|
-
}
|
|
9300
|
-
const data = await response.json();
|
|
9301
|
-
const token = data.csrfToken;
|
|
9302
|
-
return typeof token === 'string' && token ? token : undefined;
|
|
9303
|
-
}
|
|
9304
|
-
catch {
|
|
9305
|
-
return undefined;
|
|
9306
|
-
}
|
|
9307
|
-
}
|
|
9308
|
-
/**
|
|
9309
|
-
* Adapts the durable AuraStorage backing store to the {@link ResourceStorage}
|
|
9310
|
-
* contract the renewable-resource manager expects.
|
|
9311
|
-
*
|
|
9312
|
-
* The Aura-preloaded token is written into the store **once at creation** (only
|
|
9313
|
-
* when the store is otherwise empty), so the first `get()` finds it and the
|
|
9314
|
-
* first mutation skips the network. Seeding the store — rather than having
|
|
9315
|
-
* `get()` fall back to the preload on every empty read — means a later
|
|
9316
|
-
* `clear()` (logout / org switch) is not silently resurrected by the preload.
|
|
9317
|
-
*
|
|
9318
|
-
* Every operation awaits the one-time seed so reads and writes observe a
|
|
9319
|
-
* consistent store. Storage read/write failures are non-fatal.
|
|
9320
|
-
*/
|
|
9321
|
-
function buildCsrfResourceStorage() {
|
|
9322
|
-
const storage = createStorage(CSRF_STORAGE_CONFIG);
|
|
9323
|
-
// Pre-seed the preloaded token into the store, once, if the store is empty.
|
|
9324
|
-
const seeded = (async () => {
|
|
9325
|
-
const preloadedToken = readPreloadedToken();
|
|
9326
|
-
if (!storage || !preloadedToken) {
|
|
9327
|
-
return;
|
|
9328
|
-
}
|
|
9329
|
-
try {
|
|
9330
|
-
const existing = await storage.get(CSRF_TOKEN_KEY);
|
|
9331
|
-
if (typeof existing !== 'string' || !existing) {
|
|
9332
|
-
await storage.set(CSRF_TOKEN_KEY, preloadedToken);
|
|
9333
|
-
}
|
|
9334
|
-
}
|
|
9335
|
-
catch {
|
|
9336
|
-
// Non-fatal: fall back to fetching a fresh token on first use.
|
|
9337
|
-
}
|
|
9338
|
-
})();
|
|
9339
|
-
return {
|
|
9340
|
-
get: async () => {
|
|
9341
|
-
await seeded;
|
|
9342
|
-
if (storage) {
|
|
9343
|
-
try {
|
|
9344
|
-
const cached = await storage.get(CSRF_TOKEN_KEY);
|
|
9345
|
-
if (typeof cached === 'string' && cached) {
|
|
9346
|
-
return cached;
|
|
9347
|
-
}
|
|
9348
|
-
}
|
|
9349
|
-
catch {
|
|
9350
|
-
// Non-fatal: treat as a cache miss so the manager fetches.
|
|
9351
|
-
}
|
|
9352
|
-
}
|
|
9353
|
-
return undefined;
|
|
9354
|
-
},
|
|
9355
|
-
set: async (value) => {
|
|
9356
|
-
await seeded;
|
|
9357
|
-
if (storage) {
|
|
9358
|
-
try {
|
|
9359
|
-
await storage.set(CSRF_TOKEN_KEY, value);
|
|
9360
|
-
}
|
|
9361
|
-
catch {
|
|
9362
|
-
// Non-fatal: token is still usable even if caching fails.
|
|
9363
|
-
}
|
|
9364
|
-
}
|
|
9365
|
-
},
|
|
9366
|
-
clear: async () => {
|
|
9367
|
-
await seeded;
|
|
9368
|
-
if (storage) {
|
|
9369
|
-
try {
|
|
9370
|
-
await storage.remove(CSRF_TOKEN_KEY);
|
|
9371
|
-
}
|
|
9372
|
-
catch {
|
|
9373
|
-
// Non-fatal: continue even if the clear fails.
|
|
9374
|
-
}
|
|
9375
|
-
}
|
|
9376
|
-
},
|
|
9377
|
-
};
|
|
9378
|
-
}
|
|
9379
|
-
/**
|
|
9380
|
-
* Builds the CSRF token manager: a {@link BasicRenewableResourceManager} that
|
|
9381
|
-
* lazily caches the token in durable storage, coalesces concurrent fetches onto
|
|
9382
|
-
* a single in-flight request, and dedups refresh storms. Registered as a
|
|
9383
|
-
* provisioner service (`csrfTokenManager`) by `initializeOneStore`.
|
|
9384
|
-
*/
|
|
9385
|
-
function buildCsrfTokenManager() {
|
|
9386
|
-
return new BasicRenewableResourceManager({
|
|
9387
|
-
fetch: fetchFreshToken,
|
|
9388
|
-
storage: buildCsrfResourceStorage(),
|
|
9389
|
-
});
|
|
9390
|
-
}
|
|
9391
|
-
|
|
9392
9377
|
// Registration published on the force/ldsEngine bus so shared (cross-runtime) laf
|
|
9393
9378
|
// loaders can read buildPredictorForContext without importing a bootstrap bundle.
|
|
9394
9379
|
const PDL_ENGINE_REGISTRATION_ID = '@salesforce/lds-pdl-engine';
|
|
@@ -9521,7 +9506,9 @@ function initializeOneStore(luvio) {
|
|
|
9521
9506
|
// loudly in development instead.
|
|
9522
9507
|
const retryServiceDescriptor = buildServiceDescriptor$8(new UnconfiguredRetryPolicy());
|
|
9523
9508
|
const retryService = retryServiceDescriptor.service;
|
|
9524
|
-
const csrfTokenManagerServiceDescriptor = buildRenewableResourceManagerDescriptor(CSRF_TOKEN_MANAGER_SERVICE, buildCsrfTokenManager(
|
|
9509
|
+
const csrfTokenManagerServiceDescriptor = buildRenewableResourceManagerDescriptor(CSRF_TOKEN_MANAGER_SERVICE, buildCsrfTokenManager({
|
|
9510
|
+
getPreloadedToken: () => getAuraClientService()?.getConnectCsrfToken?.(),
|
|
9511
|
+
}));
|
|
9525
9512
|
const prefetchSfapJwtServiceDescriptor = {
|
|
9526
9513
|
type: 'prefetchSfapJwt',
|
|
9527
9514
|
version: '1.0',
|
|
@@ -9601,4 +9588,4 @@ function ldsEngineCreator() {
|
|
|
9601
9588
|
}
|
|
9602
9589
|
|
|
9603
9590
|
export { PDL_ENGINE_REGISTRATION_ID, buildPredictorForContext, configService, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory };
|
|
9604
|
-
// version: 1.
|
|
9591
|
+
// version: 1.470.0-ba8b11db3a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-aura",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.470.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Aura runtime.",
|
|
6
6
|
"main": "dist/ldsEngineCreator.js",
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@conduit-client/service-provisioner": "3.35.1",
|
|
38
38
|
"@conduit-client/tools-core": "3.35.1",
|
|
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-adapter": "^1.
|
|
46
|
-
"@salesforce/lds-network-aura": "^1.
|
|
47
|
-
"@salesforce/lds-network-fetch": "^1.
|
|
48
|
-
"@salesforce/lds-runtime-shared": "^1.
|
|
39
|
+
"@salesforce/lds-adapters-apex": "^1.470.0",
|
|
40
|
+
"@salesforce/lds-adapters-uiapi": "^1.470.0",
|
|
41
|
+
"@salesforce/lds-ads-bridge": "^1.470.0",
|
|
42
|
+
"@salesforce/lds-aura-storage": "^1.470.0",
|
|
43
|
+
"@salesforce/lds-bindings": "^1.470.0",
|
|
44
|
+
"@salesforce/lds-instrumentation": "^1.470.0",
|
|
45
|
+
"@salesforce/lds-network-adapter": "^1.470.0",
|
|
46
|
+
"@salesforce/lds-network-aura": "^1.470.0",
|
|
47
|
+
"@salesforce/lds-network-fetch": "^1.470.0",
|
|
48
|
+
"@salesforce/lds-runtime-shared": "^1.470.0",
|
|
49
49
|
"jwt-encode": "1.0.1"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"@luvio/network-adapter-composable": "0.161.2",
|
|
78
78
|
"@luvio/network-adapter-fetch": "0.161.2",
|
|
79
79
|
"@lwc/state": "^0.29.0",
|
|
80
|
-
"@salesforce/lds-adapters-onestore-graphql": "^1.
|
|
80
|
+
"@salesforce/lds-adapters-onestore-graphql": "^1.470.0",
|
|
81
81
|
"@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
|
|
82
|
-
"@salesforce/lds-durable-storage": "^1.
|
|
83
|
-
"@salesforce/lds-luvio-service": "^1.
|
|
84
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.
|
|
82
|
+
"@salesforce/lds-durable-storage": "^1.470.0",
|
|
83
|
+
"@salesforce/lds-luvio-service": "^1.470.0",
|
|
84
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.470.0"
|
|
85
85
|
},
|
|
86
86
|
"luvioBundlesize": [
|
|
87
87
|
{
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type RenewableResourceManager } from '@conduit-client/service-renewable-resource-manager/v1';
|
|
2
|
-
/**
|
|
3
|
-
* Builds the CSRF token manager: a {@link BasicRenewableResourceManager} that
|
|
4
|
-
* lazily caches the token in durable storage, coalesces concurrent fetches onto
|
|
5
|
-
* a single in-flight request, and dedups refresh storms. Registered as a
|
|
6
|
-
* provisioner service (`csrfTokenManager`) by `initializeOneStore`.
|
|
7
|
-
*/
|
|
8
|
-
export declare function buildCsrfTokenManager(): RenewableResourceManager<string>;
|