@salesforce/lds-runtime-one-runtime 1.467.0 → 1.468.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/oneRuntimeLdsEngineCreator.js +209 -147
- package/package.json +42 -42
|
@@ -38,7 +38,7 @@ import csrfValidationEnabled from '@salesforce/gate/ui.services.LightningConnect
|
|
|
38
38
|
import sessionApiEnabled from '@salesforce/gate/ui.uisdk.session.api.enabled';
|
|
39
39
|
import { pageScopedCache } from 'instrumentation/utility';
|
|
40
40
|
import { createStorage, clearStorages } from 'force/ldsDurableStorage';
|
|
41
|
-
import
|
|
41
|
+
import useHttpUiapiLex from '@salesforce/gate/lds.usehttpuiapilex';
|
|
42
42
|
import auraBasedRequestsEnabled from '@salesforce/gate/ui.services.auraBasedRequests.enabled';
|
|
43
43
|
import { registerSubRequestNetworkAdapter } from 'force/ldsNetwork';
|
|
44
44
|
|
|
@@ -169,6 +169,45 @@ function rejectedPromiseLike$2(reason) {
|
|
|
169
169
|
function isPromiseLike$2(x) {
|
|
170
170
|
return typeof x?.then === "function";
|
|
171
171
|
}
|
|
172
|
+
function deepEquals$2(x, y) {
|
|
173
|
+
if (x === void 0) {
|
|
174
|
+
return y === void 0;
|
|
175
|
+
} else if (x === null) {
|
|
176
|
+
return y === null;
|
|
177
|
+
} else if (y === null) {
|
|
178
|
+
return x === null;
|
|
179
|
+
} else if (isArray$4(x)) {
|
|
180
|
+
if (!isArray$4(y) || x.length !== y.length) {
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
for (let i = 0; i < x.length; ++i) {
|
|
184
|
+
if (!deepEquals$2(x[i], y[i])) {
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return true;
|
|
189
|
+
} else if (typeof x === "object") {
|
|
190
|
+
if (typeof y !== "object") {
|
|
191
|
+
return false;
|
|
192
|
+
}
|
|
193
|
+
const xkeys = Object.keys(x);
|
|
194
|
+
const ykeys = Object.keys(y);
|
|
195
|
+
if (xkeys.length !== ykeys.length) {
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
for (let i = 0; i < xkeys.length; ++i) {
|
|
199
|
+
const key = xkeys[i];
|
|
200
|
+
if (!deepEquals$2(
|
|
201
|
+
x[key],
|
|
202
|
+
y[key]
|
|
203
|
+
)) {
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
return true;
|
|
208
|
+
}
|
|
209
|
+
return x === y;
|
|
210
|
+
}
|
|
172
211
|
function stableJSONStringify$2(node) {
|
|
173
212
|
const withToJSON = node;
|
|
174
213
|
if (withToJSON && typeof withToJSON.toJSON === "function") {
|
|
@@ -366,7 +405,10 @@ let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
|
|
|
366
405
|
if (isSubscribableResult(newResult)) {
|
|
367
406
|
const value = newResult.isOk() ? ok$2(newResult.value.data) : err$1(newResult.error.failure);
|
|
368
407
|
this.subscriptions.forEach((cb) => {
|
|
369
|
-
|
|
408
|
+
try {
|
|
409
|
+
cb(value);
|
|
410
|
+
} catch {
|
|
411
|
+
}
|
|
370
412
|
});
|
|
371
413
|
}
|
|
372
414
|
return ok$2(void 0);
|
|
@@ -1444,7 +1486,10 @@ class NetworkCommand extends BaseCommand {
|
|
|
1444
1486
|
if (isSubscribableResult(newResult)) {
|
|
1445
1487
|
const value = newResult.isOk() ? ok$2(newResult.value.data) : err$1(newResult.error.failure);
|
|
1446
1488
|
this.subscriptions.forEach((cb) => {
|
|
1447
|
-
|
|
1489
|
+
try {
|
|
1490
|
+
cb(value);
|
|
1491
|
+
} catch {
|
|
1492
|
+
}
|
|
1448
1493
|
});
|
|
1449
1494
|
}
|
|
1450
1495
|
return ok$2(void 0);
|
|
@@ -1466,6 +1511,79 @@ function applyOperationRequestOptions(init, operationType, requestOptions) {
|
|
|
1466
1511
|
}
|
|
1467
1512
|
};
|
|
1468
1513
|
}
|
|
1514
|
+
function fetchFromNetwork(getRequest, hooks, contextSeed) {
|
|
1515
|
+
try {
|
|
1516
|
+
const {
|
|
1517
|
+
services,
|
|
1518
|
+
params: [input, init],
|
|
1519
|
+
operationType,
|
|
1520
|
+
requestOptions
|
|
1521
|
+
} = getRequest();
|
|
1522
|
+
const initWithOptions = applyOperationRequestOptions(init, operationType, requestOptions);
|
|
1523
|
+
const seed = operationType === void 0 ? contextSeed : { operationType, ...contextSeed };
|
|
1524
|
+
const initWithSeed = seed === void 0 ? initWithOptions : { ...initWithOptions, __contextSeed: seed };
|
|
1525
|
+
const fetchCall = initWithSeed === void 0 ? services.fetch(input) : services.fetch(input, initWithSeed);
|
|
1526
|
+
return convertFetchResponseToData(fetchCall, hooks);
|
|
1527
|
+
} catch (reason) {
|
|
1528
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
function convertFetchResponseToData(response, hooks) {
|
|
1532
|
+
return response.then(
|
|
1533
|
+
(response2) => {
|
|
1534
|
+
if (response2.ok) {
|
|
1535
|
+
let resultPromise;
|
|
1536
|
+
if (hooks.isSemanticNullResponse(response2)) {
|
|
1537
|
+
resultPromise = Promise.resolve(ok$2(null));
|
|
1538
|
+
} else if (hooks.isProtocolNoBodyStatus(response2.status) && !hooks.isSemanticNullResponse(response2)) {
|
|
1539
|
+
resultPromise = Promise.resolve(
|
|
1540
|
+
err$1(
|
|
1541
|
+
toError(
|
|
1542
|
+
`Unexpected ${response2.status} response: no-content status was not declared in the API specification. Declare this response in your OAS without a content property.`
|
|
1543
|
+
)
|
|
1544
|
+
)
|
|
1545
|
+
);
|
|
1546
|
+
} else {
|
|
1547
|
+
resultPromise = response2.json().then(
|
|
1548
|
+
(json) => ok$2(json),
|
|
1549
|
+
(reason) => err$1(toError(reason))
|
|
1550
|
+
);
|
|
1551
|
+
}
|
|
1552
|
+
return resultPromise.finally(() => {
|
|
1553
|
+
try {
|
|
1554
|
+
hooks.afterRequestHooks({ statusCode: response2.status });
|
|
1555
|
+
} catch {
|
|
1556
|
+
}
|
|
1557
|
+
});
|
|
1558
|
+
} else {
|
|
1559
|
+
return hooks.coerceError(response2).then((coercedError) => {
|
|
1560
|
+
return err$1(coercedError);
|
|
1561
|
+
}).finally(() => {
|
|
1562
|
+
try {
|
|
1563
|
+
hooks.afterRequestHooks({ statusCode: response2.status });
|
|
1564
|
+
} catch {
|
|
1565
|
+
}
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1568
|
+
},
|
|
1569
|
+
(reason) => err$1(toError(reason))
|
|
1570
|
+
);
|
|
1571
|
+
}
|
|
1572
|
+
function completeRefresh(result, getSubscriptions, options = {}) {
|
|
1573
|
+
const { previousResult } = options;
|
|
1574
|
+
if (!options.suppressEqualSuccesses || result.isErr() || !previousResult || previousResult.isErr() || !deepEquals$2(previousResult.value, result.value)) {
|
|
1575
|
+
const subscriptions = getSubscriptions();
|
|
1576
|
+
const callbacks = options.skipRemovedSubscriptions ? [...subscriptions] : subscriptions;
|
|
1577
|
+
callbacks.forEach((callback) => {
|
|
1578
|
+
if (options.skipRemovedSubscriptions && !getSubscriptions().includes(callback)) return;
|
|
1579
|
+
try {
|
|
1580
|
+
callback(result);
|
|
1581
|
+
} catch {
|
|
1582
|
+
}
|
|
1583
|
+
});
|
|
1584
|
+
}
|
|
1585
|
+
return options.reportFailure && result.isErr() ? result : ok$2(void 0);
|
|
1586
|
+
}
|
|
1469
1587
|
function isAbortableCommand(command) {
|
|
1470
1588
|
return !!command && typeof command === "object" && "isAbortableCommand" in command && command.isAbortableCommand === true;
|
|
1471
1589
|
}
|
|
@@ -1505,18 +1623,18 @@ function createAbortableDecorator(command, options) {
|
|
|
1505
1623
|
}
|
|
1506
1624
|
if (prop === "fetchParams") {
|
|
1507
1625
|
const originalFetchParams = Reflect.get(target, prop, receiver);
|
|
1508
|
-
const
|
|
1626
|
+
const suppressAbortSignal = Reflect.get(target, "isInternalExecution", receiver) === true;
|
|
1509
1627
|
if (typeof originalFetchParams === "function") {
|
|
1510
1628
|
return function(...args) {
|
|
1511
1629
|
const originalReturnValue = originalFetchParams.apply(this, args);
|
|
1512
|
-
if (!
|
|
1630
|
+
if (!suppressAbortSignal) {
|
|
1513
1631
|
const [url, init = {}] = originalReturnValue;
|
|
1514
1632
|
return [url, { signal, ...init }];
|
|
1515
1633
|
}
|
|
1516
1634
|
return originalReturnValue;
|
|
1517
1635
|
};
|
|
1518
1636
|
} else {
|
|
1519
|
-
if (!
|
|
1637
|
+
if (!suppressAbortSignal && originalFetchParams && Array.isArray(originalFetchParams)) {
|
|
1520
1638
|
const [url, init = {}] = originalFetchParams;
|
|
1521
1639
|
return [url, { signal, ...init }];
|
|
1522
1640
|
}
|
|
@@ -1549,38 +1667,35 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
1549
1667
|
this.services = services;
|
|
1550
1668
|
this.additionalNullResponses = [];
|
|
1551
1669
|
}
|
|
1552
|
-
/**
|
|
1553
|
-
* The command's operation type. Generated command subclasses override this
|
|
1554
|
-
* getter with their concrete operation (see the generator's
|
|
1555
|
-
* `generateOperationType`); the base returns `undefined` for commands that
|
|
1556
|
-
* don't declare one (e.g. hand-written commands). Transport-layer
|
|
1557
|
-
* interceptors use it to tell a read (`query`) apart from a write — see
|
|
1558
|
-
* `fetch`, which folds it into the context seed and derives
|
|
1559
|
-
* `onestore.retrySafe` from it.
|
|
1560
|
-
*/
|
|
1561
1670
|
get operationType() {
|
|
1562
1671
|
return void 0;
|
|
1563
1672
|
}
|
|
1564
|
-
/** Declared `onestore` options (`handleServerError`, `compression`); generated overrides (`generateRequestOptionsGetter`). */
|
|
1565
1673
|
get requestOptions() {
|
|
1566
1674
|
return void 0;
|
|
1567
1675
|
}
|
|
1568
1676
|
fetch(contextSeed) {
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1677
|
+
return fetchFromNetwork(
|
|
1678
|
+
() => ({
|
|
1679
|
+
services: this.services,
|
|
1680
|
+
params: this.fetchParams,
|
|
1681
|
+
operationType: this.operationType,
|
|
1682
|
+
requestOptions: this.requestOptions
|
|
1683
|
+
}),
|
|
1684
|
+
{
|
|
1685
|
+
isSemanticNullResponse: (response) => this.isSemanticNullResponse(response),
|
|
1686
|
+
isProtocolNoBodyStatus: (status) => this.isProtocolNoBodyStatus(status),
|
|
1687
|
+
coerceError: (response) => this.coerceError(response),
|
|
1688
|
+
afterRequestHooks: (options) => this.afterRequestHooks(options)
|
|
1689
|
+
},
|
|
1690
|
+
contextSeed
|
|
1691
|
+
);
|
|
1692
|
+
}
|
|
1693
|
+
refresh() {
|
|
1694
|
+
return this.execute().then((newResult) => {
|
|
1695
|
+
if (!isSubscribableResult(newResult)) return ok$2(void 0);
|
|
1696
|
+
const result = newResult.isOk() ? ok$2(newResult.value.data) : err$1(newResult.error.failure);
|
|
1697
|
+
return completeRefresh(result, () => this.subscriptions);
|
|
1698
|
+
});
|
|
1584
1699
|
}
|
|
1585
1700
|
isSemanticNullResponse(response) {
|
|
1586
1701
|
return this.additionalNullResponses.includes(response.status);
|
|
@@ -1588,53 +1703,9 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
1588
1703
|
isProtocolNoBodyStatus(status) {
|
|
1589
1704
|
return status === 204 || status === 205;
|
|
1590
1705
|
}
|
|
1591
|
-
isUndeclaredNoBodyResponse(response) {
|
|
1592
|
-
return this.isProtocolNoBodyStatus(response.status) && !this.isSemanticNullResponse(response);
|
|
1593
|
-
}
|
|
1594
1706
|
async coerceError(errorResponse) {
|
|
1595
1707
|
return toError(errorResponse.statusText);
|
|
1596
1708
|
}
|
|
1597
|
-
convertFetchResponseToData(response) {
|
|
1598
|
-
return response.then(
|
|
1599
|
-
(response2) => {
|
|
1600
|
-
if (response2.ok) {
|
|
1601
|
-
let resultPromise;
|
|
1602
|
-
if (this.isSemanticNullResponse(response2)) {
|
|
1603
|
-
resultPromise = Promise.resolve(ok$2(null));
|
|
1604
|
-
} else if (this.isUndeclaredNoBodyResponse(response2)) {
|
|
1605
|
-
resultPromise = Promise.resolve(
|
|
1606
|
-
err$1(
|
|
1607
|
-
toError(
|
|
1608
|
-
`Unexpected ${response2.status} response: no-content status was not declared in the API specification. Declare this response in your OAS without a content property.`
|
|
1609
|
-
)
|
|
1610
|
-
)
|
|
1611
|
-
);
|
|
1612
|
-
} else {
|
|
1613
|
-
resultPromise = response2.json().then(
|
|
1614
|
-
(json) => ok$2(json),
|
|
1615
|
-
(reason) => err$1(toError(reason))
|
|
1616
|
-
);
|
|
1617
|
-
}
|
|
1618
|
-
return resultPromise.finally(() => {
|
|
1619
|
-
try {
|
|
1620
|
-
this.afterRequestHooks({ statusCode: response2.status });
|
|
1621
|
-
} catch {
|
|
1622
|
-
}
|
|
1623
|
-
});
|
|
1624
|
-
} else {
|
|
1625
|
-
return this.coerceError(response2).then((coercedError) => {
|
|
1626
|
-
return err$1(coercedError);
|
|
1627
|
-
}).finally(() => {
|
|
1628
|
-
try {
|
|
1629
|
-
this.afterRequestHooks({ statusCode: response2.status });
|
|
1630
|
-
} catch {
|
|
1631
|
-
}
|
|
1632
|
-
});
|
|
1633
|
-
}
|
|
1634
|
-
},
|
|
1635
|
-
(reason) => err$1(toError(reason))
|
|
1636
|
-
);
|
|
1637
|
-
}
|
|
1638
1709
|
};
|
|
1639
1710
|
_FetchNetworkCommand.availableDecorators = {
|
|
1640
1711
|
abortable: createAbortableDecorator
|
|
@@ -2714,7 +2785,7 @@ function buildServiceDescriptor$d(luvio) {
|
|
|
2714
2785
|
},
|
|
2715
2786
|
};
|
|
2716
2787
|
}
|
|
2717
|
-
// version: 1.
|
|
2788
|
+
// version: 1.468.0-9ef0fbdaee
|
|
2718
2789
|
|
|
2719
2790
|
class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
|
|
2720
2791
|
constructor(config, documentRootType, services) {
|
|
@@ -3053,7 +3124,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
3053
3124
|
},
|
|
3054
3125
|
};
|
|
3055
3126
|
}
|
|
3056
|
-
// version: 1.
|
|
3127
|
+
// version: 1.468.0-9ef0fbdaee
|
|
3057
3128
|
|
|
3058
3129
|
class RetryService {
|
|
3059
3130
|
constructor(defaultRetryPolicy) {
|
|
@@ -3292,6 +3363,53 @@ function buildBaseImperativeInvoker(getCommand, transformResult) {
|
|
|
3292
3363
|
}
|
|
3293
3364
|
};
|
|
3294
3365
|
}
|
|
3366
|
+
function assertSubscribable(result, report) {
|
|
3367
|
+
if (!isSubscribableResult(result)) {
|
|
3368
|
+
report("Non-subscribable result encountered - please use correct operation type");
|
|
3369
|
+
throw new Error("Internal error in Lightning Data Service adapter occurred");
|
|
3370
|
+
}
|
|
3371
|
+
}
|
|
3372
|
+
function toQueryUpdate(result) {
|
|
3373
|
+
return result.isOk() ? { data: result.value, error: void 0 } : { data: void 0, error: unwrapUserlandError(result.error) };
|
|
3374
|
+
}
|
|
3375
|
+
class SubscribableImperativeBindingsService {
|
|
3376
|
+
bind(getCommand, exposeRefresh = false) {
|
|
3377
|
+
return buildBaseImperativeInvoker(
|
|
3378
|
+
getCommand,
|
|
3379
|
+
(result) => this.transformResult(result, exposeRefresh)
|
|
3380
|
+
);
|
|
3381
|
+
}
|
|
3382
|
+
transformResult(result, exposeRefresh = false) {
|
|
3383
|
+
assertSubscribable(result, (message) => console.error(message));
|
|
3384
|
+
if (result.isErr()) throwUnwrappedUserlandError(result.error.failure);
|
|
3385
|
+
deepFreeze(result.value.data);
|
|
3386
|
+
const api = {
|
|
3387
|
+
data: result.value.data,
|
|
3388
|
+
subscribe: (callback) => result.value.subscribe((update) => {
|
|
3389
|
+
const { data, error } = toQueryUpdate(update);
|
|
3390
|
+
return callback({ data, error });
|
|
3391
|
+
})
|
|
3392
|
+
};
|
|
3393
|
+
if (exposeRefresh) {
|
|
3394
|
+
return {
|
|
3395
|
+
...api,
|
|
3396
|
+
refresh: () => result.value.refresh().then((refreshed) => {
|
|
3397
|
+
if (refreshed.isOk()) return void 0;
|
|
3398
|
+
throw refreshed.error;
|
|
3399
|
+
})
|
|
3400
|
+
};
|
|
3401
|
+
}
|
|
3402
|
+
return api;
|
|
3403
|
+
}
|
|
3404
|
+
}
|
|
3405
|
+
function buildServiceDescriptor$7() {
|
|
3406
|
+
return {
|
|
3407
|
+
type: "subscribableImperativeBindings",
|
|
3408
|
+
version: "1.0",
|
|
3409
|
+
service: new SubscribableImperativeBindingsService()
|
|
3410
|
+
};
|
|
3411
|
+
}
|
|
3412
|
+
|
|
3295
3413
|
const supportedCachePolicyTypes = ["no-cache", "only-if-cached"];
|
|
3296
3414
|
function requestContextIsSupportedCachePolicy(requestContext) {
|
|
3297
3415
|
return typeof requestContext === "object" && requestContext !== null && "cachePolicy" in requestContext && typeof requestContext.cachePolicy === "object" && requestContext.cachePolicy !== null && "type" in requestContext.cachePolicy && typeof requestContext.cachePolicy.type === "string" && supportedCachePolicyTypes.includes(
|
|
@@ -3344,7 +3462,7 @@ class DefaultImperativeBindingsService {
|
|
|
3344
3462
|
});
|
|
3345
3463
|
}
|
|
3346
3464
|
}
|
|
3347
|
-
function buildServiceDescriptor$
|
|
3465
|
+
function buildServiceDescriptor$5() {
|
|
3348
3466
|
return {
|
|
3349
3467
|
type: "defaultImperativeBindings",
|
|
3350
3468
|
version: "1.0",
|
|
@@ -3364,70 +3482,13 @@ class QueryImperativeBindingsService {
|
|
|
3364
3482
|
});
|
|
3365
3483
|
}
|
|
3366
3484
|
}
|
|
3367
|
-
function buildServiceDescriptor$
|
|
3485
|
+
function buildServiceDescriptor$4() {
|
|
3368
3486
|
return {
|
|
3369
3487
|
type: "queryImperativeBindings",
|
|
3370
3488
|
version: "1.0",
|
|
3371
3489
|
service: new QueryImperativeBindingsService()
|
|
3372
3490
|
};
|
|
3373
3491
|
}
|
|
3374
|
-
class SubscribableImperativeBindingsService {
|
|
3375
|
-
bind(getCommand, exposeRefresh = false) {
|
|
3376
|
-
return buildBaseImperativeInvoker(
|
|
3377
|
-
getCommand,
|
|
3378
|
-
(result) => this.transformResult(result, exposeRefresh)
|
|
3379
|
-
);
|
|
3380
|
-
}
|
|
3381
|
-
transformResult(result, exposeRefresh = false) {
|
|
3382
|
-
if (!isSubscribableResult(result)) {
|
|
3383
|
-
console.error(
|
|
3384
|
-
"Non-subscribable result encountered - please use correct operation type"
|
|
3385
|
-
);
|
|
3386
|
-
throw new Error("Internal error in Lightning Data Service adapter occurred");
|
|
3387
|
-
}
|
|
3388
|
-
if (result.isOk()) {
|
|
3389
|
-
deepFreeze(result.value.data);
|
|
3390
|
-
const api = {
|
|
3391
|
-
data: result.value.data,
|
|
3392
|
-
subscribe: (cb) => {
|
|
3393
|
-
return result.value.subscribe((result2) => {
|
|
3394
|
-
if (result2.isErr()) {
|
|
3395
|
-
return cb({
|
|
3396
|
-
data: void 0,
|
|
3397
|
-
error: unwrapUserlandError(result2.error)
|
|
3398
|
-
});
|
|
3399
|
-
}
|
|
3400
|
-
return cb({ data: result2.value, error: void 0 });
|
|
3401
|
-
});
|
|
3402
|
-
}
|
|
3403
|
-
};
|
|
3404
|
-
if (exposeRefresh) {
|
|
3405
|
-
return {
|
|
3406
|
-
...api,
|
|
3407
|
-
refresh: () => {
|
|
3408
|
-
return result.value.refresh().then((res) => {
|
|
3409
|
-
if (res.isOk()) {
|
|
3410
|
-
return void 0;
|
|
3411
|
-
}
|
|
3412
|
-
throw res.error;
|
|
3413
|
-
});
|
|
3414
|
-
}
|
|
3415
|
-
};
|
|
3416
|
-
} else {
|
|
3417
|
-
return api;
|
|
3418
|
-
}
|
|
3419
|
-
} else {
|
|
3420
|
-
throwUnwrappedUserlandError(result.error.failure);
|
|
3421
|
-
}
|
|
3422
|
-
}
|
|
3423
|
-
}
|
|
3424
|
-
function buildServiceDescriptor$4() {
|
|
3425
|
-
return {
|
|
3426
|
-
type: "subscribableImperativeBindings",
|
|
3427
|
-
version: "1.0",
|
|
3428
|
-
service: new SubscribableImperativeBindingsService()
|
|
3429
|
-
};
|
|
3430
|
-
}
|
|
3431
3492
|
class LegacyImperativeBindingsService {
|
|
3432
3493
|
bind(getCommand) {
|
|
3433
3494
|
const invoke = async (config, requestContext, callback) => {
|
|
@@ -3729,7 +3790,7 @@ class GraphQLMutationBindingsService {
|
|
|
3729
3790
|
};
|
|
3730
3791
|
}
|
|
3731
3792
|
}
|
|
3732
|
-
function buildServiceDescriptor$
|
|
3793
|
+
function buildServiceDescriptor$6() {
|
|
3733
3794
|
return {
|
|
3734
3795
|
type: "graphQLMutationBindings",
|
|
3735
3796
|
version: "1.0",
|
|
@@ -8004,7 +8065,7 @@ function getEnvironmentSetting(name) {
|
|
|
8004
8065
|
}
|
|
8005
8066
|
return undefined;
|
|
8006
8067
|
}
|
|
8007
|
-
// version: 1.
|
|
8068
|
+
// version: 1.468.0-c060a9b9c6
|
|
8008
8069
|
|
|
8009
8070
|
/**
|
|
8010
8071
|
* Helpers for reaching the Aura framework from the LDS Aura runtime.
|
|
@@ -8528,22 +8589,23 @@ const CONTENT_DOCUMENTS_VERSIONS_PATH = '/ui-api/records/content-documents/conte
|
|
|
8528
8589
|
*/
|
|
8529
8590
|
// This fork package (lds-runtime-one-runtime) is provisioned only in the LEX on
|
|
8530
8591
|
// One Runtime (LWR) runtime, which means it always runs as LEX on One Runtime —
|
|
8531
|
-
// never classic one.app Aura, never on a site.
|
|
8532
|
-
//
|
|
8533
|
-
//
|
|
8534
|
-
//
|
|
8592
|
+
// never classic one.app Aura, never on a site. Both LEX flavors (one.app and
|
|
8593
|
+
// LEX on One Runtime) share the single LDS gate `lds.usehttpuiapilex`, which
|
|
8594
|
+
// enables both the public and private path lists. The public/private split is
|
|
8595
|
+
// preserved as two separate arrays because the PRIVATE paths carry an extra
|
|
8596
|
+
// condition: the server-side `auraBasedRequests` UiSdk gate.
|
|
8535
8597
|
// If UiSdk turns that gate off, private (UiTier-restricted) Connect resources can
|
|
8536
8598
|
// no longer be served over HTTP and must fall back to Aura, whereas
|
|
8537
8599
|
// public/allowlisted paths are unaffected.
|
|
8538
8600
|
const PREDICATE_PATH_SETS = [
|
|
8539
8601
|
// LEX on One Runtime — public UIAPI endpoints
|
|
8540
8602
|
{
|
|
8541
|
-
predicate: () =>
|
|
8603
|
+
predicate: () => useHttpUiapiLex.isOpen({ fallback: false }),
|
|
8542
8604
|
paths: UIAPI_PUBLIC_PATHS,
|
|
8543
8605
|
},
|
|
8544
8606
|
// LEX on One Runtime — private UIAPI endpoints (also require the UiSdk gate)
|
|
8545
8607
|
{
|
|
8546
|
-
predicate: () =>
|
|
8608
|
+
predicate: () => useHttpUiapiLex.isOpen({ fallback: false }) &&
|
|
8547
8609
|
auraBasedRequestsEnabled.isOpen({ fallback: false }),
|
|
8548
8610
|
paths: UIAPI_PRIVATE_PATHS,
|
|
8549
8611
|
},
|
|
@@ -11607,13 +11669,13 @@ function initializeOneStore(luvio) {
|
|
|
11607
11669
|
buildServiceDescriptor$b(),
|
|
11608
11670
|
featureFlagsServiceDescriptor,
|
|
11609
11671
|
retryServiceDescriptor,
|
|
11610
|
-
buildServiceDescriptor$6(),
|
|
11611
11672
|
buildServiceDescriptor$5(),
|
|
11612
11673
|
buildServiceDescriptor$4(),
|
|
11674
|
+
buildServiceDescriptor$7(),
|
|
11613
11675
|
buildServiceDescriptor$3$1(),
|
|
11614
11676
|
buildServiceDescriptor$2$1(),
|
|
11615
11677
|
buildServiceDescriptor$1$2(),
|
|
11616
|
-
buildServiceDescriptor$
|
|
11678
|
+
buildServiceDescriptor$6(),
|
|
11617
11679
|
buildLWCWireBindingsServiceDescriptor(),
|
|
11618
11680
|
buildLWCGraphQLWireBindingsServiceDescriptor(),
|
|
11619
11681
|
configServiceDescriptor,
|
|
@@ -11638,4 +11700,4 @@ function ldsEngineCreator() {
|
|
|
11638
11700
|
}
|
|
11639
11701
|
|
|
11640
11702
|
export { LexRequestStrategy, PDL_ENGINE_REGISTRATION_ID, PdlPrefetcherEventType, PdlRequestPriority, buildPredictorForContext, configService, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, subscribeToPrefetcherEvents, unregisterRequestStrategy, whenPredictionsReady };
|
|
11641
|
-
// version: 1.
|
|
11703
|
+
// version: 1.468.0-9ef0fbdaee
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-one-runtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.468.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for the LEX on One Runtime (LWR) runtime.",
|
|
6
6
|
"main": "dist/oneRuntimeLdsEngineCreator.js",
|
|
@@ -34,54 +34,54 @@
|
|
|
34
34
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-one-runtime"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@conduit-client/service-provisioner": "3.
|
|
38
|
-
"@conduit-client/tools-core": "3.
|
|
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.
|
|
37
|
+
"@conduit-client/service-provisioner": "3.35.0",
|
|
38
|
+
"@conduit-client/tools-core": "3.35.0",
|
|
39
|
+
"@salesforce/lds-adapters-apex": "^1.468.0",
|
|
40
|
+
"@salesforce/lds-adapters-uiapi": "^1.468.0",
|
|
41
|
+
"@salesforce/lds-ads-bridge": "^1.468.0",
|
|
42
|
+
"@salesforce/lds-aura-storage": "^1.468.0",
|
|
43
|
+
"@salesforce/lds-bindings": "^1.468.0",
|
|
44
|
+
"@salesforce/lds-instrumentation": "^1.468.0",
|
|
45
|
+
"@salesforce/lds-network-adapter": "^1.468.0",
|
|
46
|
+
"@salesforce/lds-network-aura": "^1.468.0",
|
|
47
|
+
"@salesforce/lds-network-fetch": "^1.468.0",
|
|
48
|
+
"@salesforce/lds-runtime-shared": "^1.468.0",
|
|
49
49
|
"jwt-encode": "1.0.1"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@conduit-client/command-aura-graphql-normalized-cache-control": "3.
|
|
53
|
-
"@conduit-client/command-aura-network": "3.
|
|
54
|
-
"@conduit-client/command-aura-normalized-cache-control": "3.
|
|
55
|
-
"@conduit-client/command-fetch-network": "3.
|
|
56
|
-
"@conduit-client/command-http-graphql-normalized-cache-control": "3.
|
|
57
|
-
"@conduit-client/command-http-normalized-cache-control": "3.
|
|
58
|
-
"@conduit-client/command-ndjson": "3.
|
|
59
|
-
"@conduit-client/command-network": "3.
|
|
60
|
-
"@conduit-client/command-sse": "3.
|
|
61
|
-
"@conduit-client/command-streaming": "3.
|
|
62
|
-
"@conduit-client/jwt-manager": "3.
|
|
63
|
-
"@conduit-client/service-aura-network": "3.
|
|
64
|
-
"@conduit-client/service-bindings-imperative": "3.
|
|
65
|
-
"@conduit-client/service-bindings-lwc": "3.
|
|
66
|
-
"@conduit-client/service-cache": "3.
|
|
67
|
-
"@conduit-client/service-cache-control": "3.
|
|
68
|
-
"@conduit-client/service-cache-inclusion-policy": "3.
|
|
69
|
-
"@conduit-client/service-config": "3.
|
|
70
|
-
"@conduit-client/service-feature-flags": "3.
|
|
71
|
-
"@conduit-client/service-fetch-network": "3.
|
|
72
|
-
"@conduit-client/service-instrument-command": "3.
|
|
73
|
-
"@conduit-client/service-pubsub": "3.
|
|
74
|
-
"@conduit-client/service-renewable-resource-manager": "3.
|
|
75
|
-
"@conduit-client/service-store": "3.
|
|
76
|
-
"@conduit-client/utils": "3.
|
|
52
|
+
"@conduit-client/command-aura-graphql-normalized-cache-control": "3.35.0",
|
|
53
|
+
"@conduit-client/command-aura-network": "3.35.0",
|
|
54
|
+
"@conduit-client/command-aura-normalized-cache-control": "3.35.0",
|
|
55
|
+
"@conduit-client/command-fetch-network": "3.35.0",
|
|
56
|
+
"@conduit-client/command-http-graphql-normalized-cache-control": "3.35.0",
|
|
57
|
+
"@conduit-client/command-http-normalized-cache-control": "3.35.0",
|
|
58
|
+
"@conduit-client/command-ndjson": "3.35.0",
|
|
59
|
+
"@conduit-client/command-network": "3.35.0",
|
|
60
|
+
"@conduit-client/command-sse": "3.35.0",
|
|
61
|
+
"@conduit-client/command-streaming": "3.35.0",
|
|
62
|
+
"@conduit-client/jwt-manager": "3.35.0",
|
|
63
|
+
"@conduit-client/service-aura-network": "3.35.0",
|
|
64
|
+
"@conduit-client/service-bindings-imperative": "3.35.0",
|
|
65
|
+
"@conduit-client/service-bindings-lwc": "3.35.0",
|
|
66
|
+
"@conduit-client/service-cache": "3.35.0",
|
|
67
|
+
"@conduit-client/service-cache-control": "3.35.0",
|
|
68
|
+
"@conduit-client/service-cache-inclusion-policy": "3.35.0",
|
|
69
|
+
"@conduit-client/service-config": "3.35.0",
|
|
70
|
+
"@conduit-client/service-feature-flags": "3.35.0",
|
|
71
|
+
"@conduit-client/service-fetch-network": "3.35.0",
|
|
72
|
+
"@conduit-client/service-instrument-command": "3.35.0",
|
|
73
|
+
"@conduit-client/service-pubsub": "3.35.0",
|
|
74
|
+
"@conduit-client/service-renewable-resource-manager": "3.35.0",
|
|
75
|
+
"@conduit-client/service-store": "3.35.0",
|
|
76
|
+
"@conduit-client/utils": "3.35.0",
|
|
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.468.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.468.0",
|
|
83
|
+
"@salesforce/lds-luvio-service": "^1.468.0",
|
|
84
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.468.0"
|
|
85
85
|
},
|
|
86
86
|
"luvioBundlesize": [
|
|
87
87
|
{
|