@salesforce/lds-runtime-aura 1.376.0 → 1.377.1
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 +130 -878
- package/dist/types/main.d.ts +2 -0
- package/package.json +36 -34
package/dist/ldsEngineCreator.js
CHANGED
|
@@ -21,12 +21,13 @@ import useRelatedListPlus from '@salesforce/gate/lds.pdl.useRelatedListPlus';
|
|
|
21
21
|
import useCmpDefPredictions from '@salesforce/gate/lds.pdl.useCmpDefPredictions';
|
|
22
22
|
import applyPredictionRequestLimit from '@salesforce/gate/lds.pdl.applyRequestLimit';
|
|
23
23
|
import useLocalStorage from '@salesforce/gate/lds.pdl.useLocalStorage';
|
|
24
|
+
import useOneStoreGraphql from '@salesforce/gate/lds.oneStoreGraphqlEnabled.ltng';
|
|
24
25
|
import { GetApexWireAdapterFactory, registerPrefetcher as registerPrefetcher$1 } from 'force/ldsAdaptersApex';
|
|
25
|
-
import { getRecordAvatarsAdapterFactory, getRecordAdapterFactory, coerceFieldIdArray, getRecordsAdapterFactory, getRecordActionsAdapterFactory, getObjectInfosAdapterFactory, coerceObjectIdArray, getObjectInfoAdapterFactory, coerceObjectId, getRelatedListsActionsAdapterFactory, getRelatedListInfoBatchAdapterFactory, getRelatedListInfoAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getRelatedListRecordsAdapterFactory, getListInfoByNameAdapterFactory, getListInfosByObjectNameAdapterFactory, getListRecordsByNameAdapterFactory, getListObjectInfoAdapterFactory, getRelatedListsInfoAdapterFactory, getRelatedListActionsAdapterFactory, getRecordId18Array, instrument, configuration, InMemoryRecordRepresentationQueryEvaluator, UiApiNamespace, RecordRepresentationRepresentationType, registerPrefetcher } from 'force/ldsAdaptersUiapi';
|
|
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';
|
|
26
27
|
import { getInstrumentation } from 'o11y/client';
|
|
27
28
|
import { buildGraphQLInputExtension } from 'force/luvioGraphqlNormalization';
|
|
29
|
+
import { print } from 'force/luvioOnestoreGraphqlParser';
|
|
28
30
|
import { setServices } from 'force/luvioServiceProvisioner1';
|
|
29
|
-
import oneStoreUiapiEnabled from '@salesforce/gate/lds.oneStoreUiapiEnabled.ltng';
|
|
30
31
|
import { unstable_loadComponentDefs, executeGlobalControllerRawResponse } from 'aura';
|
|
31
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';
|
|
32
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';
|
|
@@ -285,7 +286,7 @@ let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
|
|
|
285
286
|
async afterRequestHooks(_options) {
|
|
286
287
|
}
|
|
287
288
|
};
|
|
288
|
-
function buildServiceDescriptor$
|
|
289
|
+
function buildServiceDescriptor$j() {
|
|
289
290
|
return {
|
|
290
291
|
type: "networkCommandBaseClass",
|
|
291
292
|
version: "1.0",
|
|
@@ -387,7 +388,7 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
387
388
|
return resolvedPromiseLike$3(err$1(toError("Aura/Fetch network services not found")));
|
|
388
389
|
}
|
|
389
390
|
}
|
|
390
|
-
function buildServiceDescriptor$
|
|
391
|
+
function buildServiceDescriptor$i() {
|
|
391
392
|
return {
|
|
392
393
|
type: "auraNetworkCommandBaseClass",
|
|
393
394
|
version: "1.0",
|
|
@@ -894,7 +895,7 @@ class AuraResourceCacheControlCommand extends AuraCacheControlCommand$1 {
|
|
|
894
895
|
return `{"endpoint":${this.endpoint},"params":${stableJSONStringify$2(this.auraParams)}}`;
|
|
895
896
|
}
|
|
896
897
|
}
|
|
897
|
-
function buildServiceDescriptor$
|
|
898
|
+
function buildServiceDescriptor$h() {
|
|
898
899
|
return {
|
|
899
900
|
type: "auraResourceCacheControlCommand",
|
|
900
901
|
version: "1.0",
|
|
@@ -1033,7 +1034,7 @@ class AuraNormalizedCacheControlCommand extends AuraCacheControlCommand {
|
|
|
1033
1034
|
return resolvedPromiseLike$3(void 0);
|
|
1034
1035
|
}
|
|
1035
1036
|
}
|
|
1036
|
-
function buildServiceDescriptor$
|
|
1037
|
+
function buildServiceDescriptor$g() {
|
|
1037
1038
|
return {
|
|
1038
1039
|
type: "auraNormalizedCacheControlCommand",
|
|
1039
1040
|
version: "1.0",
|
|
@@ -1122,7 +1123,7 @@ class HttpNormalizedCacheControlCommand extends HttpCacheControlCommand {
|
|
|
1122
1123
|
return resolvedPromiseLike$3(void 0);
|
|
1123
1124
|
}
|
|
1124
1125
|
}
|
|
1125
|
-
function buildServiceDescriptor$
|
|
1126
|
+
function buildServiceDescriptor$f() {
|
|
1126
1127
|
return {
|
|
1127
1128
|
type: "httpNormalizedCacheControlCommand",
|
|
1128
1129
|
version: "1.0",
|
|
@@ -1229,7 +1230,7 @@ class FetchNetworkCommand extends NetworkCommand {
|
|
|
1229
1230
|
);
|
|
1230
1231
|
}
|
|
1231
1232
|
}
|
|
1232
|
-
function buildServiceDescriptor$
|
|
1233
|
+
function buildServiceDescriptor$e() {
|
|
1233
1234
|
return {
|
|
1234
1235
|
type: "fetchNetworkCommandBaseClass",
|
|
1235
1236
|
version: "1.0",
|
|
@@ -1265,7 +1266,7 @@ class StreamingCommand extends BaseCommand {
|
|
|
1265
1266
|
);
|
|
1266
1267
|
}
|
|
1267
1268
|
}
|
|
1268
|
-
function buildServiceDescriptor$
|
|
1269
|
+
function buildServiceDescriptor$d() {
|
|
1269
1270
|
return {
|
|
1270
1271
|
type: "streamingCommandBaseClass",
|
|
1271
1272
|
version: "1.0",
|
|
@@ -1348,7 +1349,7 @@ class SSEParsingStream extends TransformStream {
|
|
|
1348
1349
|
});
|
|
1349
1350
|
}
|
|
1350
1351
|
}
|
|
1351
|
-
function buildServiceDescriptor$
|
|
1352
|
+
function buildServiceDescriptor$c() {
|
|
1352
1353
|
return {
|
|
1353
1354
|
type: "SSECommandBaseClass",
|
|
1354
1355
|
version: "1.0",
|
|
@@ -1394,7 +1395,7 @@ function buildInstrumentCommand(services) {
|
|
|
1394
1395
|
};
|
|
1395
1396
|
};
|
|
1396
1397
|
}
|
|
1397
|
-
function buildServiceDescriptor$
|
|
1398
|
+
function buildServiceDescriptor$b(instrumentation) {
|
|
1398
1399
|
return {
|
|
1399
1400
|
type: "instrumentCommand",
|
|
1400
1401
|
version: "1.0",
|
|
@@ -1664,7 +1665,7 @@ class O11yInstrumentation {
|
|
|
1664
1665
|
this.metrics = new O11yOTelMetricsAPI(this.services);
|
|
1665
1666
|
}
|
|
1666
1667
|
}
|
|
1667
|
-
function buildServiceDescriptor$
|
|
1668
|
+
function buildServiceDescriptor$a(logger) {
|
|
1668
1669
|
return {
|
|
1669
1670
|
type: "instrumentation",
|
|
1670
1671
|
version: "1.0",
|
|
@@ -1917,7 +1918,7 @@ class DefaultCache {
|
|
|
1917
1918
|
return new FixedTimeWritableCache(this, generatedTime);
|
|
1918
1919
|
}
|
|
1919
1920
|
}
|
|
1920
|
-
function buildServiceDescriptor$
|
|
1921
|
+
function buildServiceDescriptor$9() {
|
|
1921
1922
|
return {
|
|
1922
1923
|
type: "cache",
|
|
1923
1924
|
version: "1.0",
|
|
@@ -2085,7 +2086,7 @@ class CacheController {
|
|
|
2085
2086
|
yield* this.services.cacheInclusionPolicy.findAndModify(query, cacheUpdate);
|
|
2086
2087
|
}
|
|
2087
2088
|
}
|
|
2088
|
-
function buildServiceDescriptor$
|
|
2089
|
+
function buildServiceDescriptor$8(cache, cacheInclusionPolicy) {
|
|
2089
2090
|
return {
|
|
2090
2091
|
type: "cacheController",
|
|
2091
2092
|
version: "1.0",
|
|
@@ -2195,7 +2196,7 @@ class DefaultPubSubService {
|
|
|
2195
2196
|
return matchingSubscriptions;
|
|
2196
2197
|
}
|
|
2197
2198
|
}
|
|
2198
|
-
function buildServiceDescriptor$
|
|
2199
|
+
function buildServiceDescriptor$7() {
|
|
2199
2200
|
return {
|
|
2200
2201
|
type: "pubSub",
|
|
2201
2202
|
version: "1.0",
|
|
@@ -2258,7 +2259,7 @@ class NDJSONParsingStream extends TransformStream {
|
|
|
2258
2259
|
});
|
|
2259
2260
|
}
|
|
2260
2261
|
}
|
|
2261
|
-
function buildServiceDescriptor$
|
|
2262
|
+
function buildServiceDescriptor$6() {
|
|
2262
2263
|
return {
|
|
2263
2264
|
type: "NDJSONCommandBaseClass",
|
|
2264
2265
|
version: "1.0",
|
|
@@ -2299,7 +2300,7 @@ function buildServiceDescriptor$4() {
|
|
|
2299
2300
|
* };
|
|
2300
2301
|
* ```
|
|
2301
2302
|
*/
|
|
2302
|
-
function buildServiceDescriptor$
|
|
2303
|
+
function buildServiceDescriptor$5(luvio) {
|
|
2303
2304
|
return {
|
|
2304
2305
|
type: 'luvio',
|
|
2305
2306
|
version: '1.0',
|
|
@@ -2308,847 +2309,7 @@ function buildServiceDescriptor$3(luvio) {
|
|
|
2308
2309
|
},
|
|
2309
2310
|
};
|
|
2310
2311
|
}
|
|
2311
|
-
// version: 1.
|
|
2312
|
-
|
|
2313
|
-
/*!
|
|
2314
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
2315
|
-
* All rights reserved.
|
|
2316
|
-
* For full license text, see the LICENSE.txt file
|
|
2317
|
-
*/
|
|
2318
|
-
function devAssert(condition, message) {
|
|
2319
|
-
const booleanCondition = Boolean(condition);
|
|
2320
|
-
if (!booleanCondition) {
|
|
2321
|
-
throw new Error(message);
|
|
2322
|
-
}
|
|
2323
|
-
}
|
|
2324
|
-
const MAX_ARRAY_LENGTH = 10;
|
|
2325
|
-
const MAX_RECURSIVE_DEPTH = 2;
|
|
2326
|
-
function inspect(value) {
|
|
2327
|
-
return formatValue(value, []);
|
|
2328
|
-
}
|
|
2329
|
-
function formatValue(value, seenValues) {
|
|
2330
|
-
switch (typeof value) {
|
|
2331
|
-
case "string":
|
|
2332
|
-
return JSON.stringify(value);
|
|
2333
|
-
case "function":
|
|
2334
|
-
return value.name ? `[function ${value.name}]` : "[function]";
|
|
2335
|
-
case "object":
|
|
2336
|
-
return formatObjectValue(value, seenValues);
|
|
2337
|
-
default:
|
|
2338
|
-
return String(value);
|
|
2339
|
-
}
|
|
2340
|
-
}
|
|
2341
|
-
function formatObjectValue(value, previouslySeenValues) {
|
|
2342
|
-
if (value === null) {
|
|
2343
|
-
return "null";
|
|
2344
|
-
}
|
|
2345
|
-
if (previouslySeenValues.includes(value)) {
|
|
2346
|
-
return "[Circular]";
|
|
2347
|
-
}
|
|
2348
|
-
const seenValues = [...previouslySeenValues, value];
|
|
2349
|
-
if (isJSONable(value)) {
|
|
2350
|
-
const jsonValue = value.toJSON();
|
|
2351
|
-
if (jsonValue !== value) {
|
|
2352
|
-
return typeof jsonValue === "string" ? jsonValue : formatValue(jsonValue, seenValues);
|
|
2353
|
-
}
|
|
2354
|
-
} else if (Array.isArray(value)) {
|
|
2355
|
-
return formatArray(value, seenValues);
|
|
2356
|
-
}
|
|
2357
|
-
return formatObject(value, seenValues);
|
|
2358
|
-
}
|
|
2359
|
-
function isJSONable(value) {
|
|
2360
|
-
return typeof value.toJSON === "function";
|
|
2361
|
-
}
|
|
2362
|
-
function formatObject(object, seenValues) {
|
|
2363
|
-
const entries = Object.entries(object);
|
|
2364
|
-
if (entries.length === 0) {
|
|
2365
|
-
return "{}";
|
|
2366
|
-
}
|
|
2367
|
-
if (seenValues.length > MAX_RECURSIVE_DEPTH) {
|
|
2368
|
-
return "[" + getObjectTag(object) + "]";
|
|
2369
|
-
}
|
|
2370
|
-
const properties = entries.map(
|
|
2371
|
-
([key, value]) => key + ": " + formatValue(value, seenValues)
|
|
2372
|
-
);
|
|
2373
|
-
return "{ " + properties.join(", ") + " }";
|
|
2374
|
-
}
|
|
2375
|
-
function formatArray(array, seenValues) {
|
|
2376
|
-
if (array.length === 0) {
|
|
2377
|
-
return "[]";
|
|
2378
|
-
}
|
|
2379
|
-
if (seenValues.length > MAX_RECURSIVE_DEPTH) {
|
|
2380
|
-
return "[Array]";
|
|
2381
|
-
}
|
|
2382
|
-
const len = Math.min(MAX_ARRAY_LENGTH, array.length);
|
|
2383
|
-
const remaining = array.length - len;
|
|
2384
|
-
const items = [];
|
|
2385
|
-
for (let i = 0; i < len; ++i) {
|
|
2386
|
-
items.push(formatValue(array[i], seenValues));
|
|
2387
|
-
}
|
|
2388
|
-
if (remaining === 1) {
|
|
2389
|
-
items.push("... 1 more item");
|
|
2390
|
-
} else if (remaining > 1) {
|
|
2391
|
-
items.push(`... ${remaining} more items`);
|
|
2392
|
-
}
|
|
2393
|
-
return "[" + items.join(", ") + "]";
|
|
2394
|
-
}
|
|
2395
|
-
function getObjectTag(object) {
|
|
2396
|
-
const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
|
|
2397
|
-
if (tag === "Object" && typeof object.constructor === "function") {
|
|
2398
|
-
const name = object.constructor.name;
|
|
2399
|
-
if (typeof name === "string" && name !== "") {
|
|
2400
|
-
return name;
|
|
2401
|
-
}
|
|
2402
|
-
}
|
|
2403
|
-
return tag;
|
|
2404
|
-
}
|
|
2405
|
-
globalThis.process && // eslint-disable-next-line no-undef
|
|
2406
|
-
process.env.NODE_ENV === "production";
|
|
2407
|
-
var Kind;
|
|
2408
|
-
(function(Kind2) {
|
|
2409
|
-
Kind2["NAME"] = "Name";
|
|
2410
|
-
Kind2["DOCUMENT"] = "Document";
|
|
2411
|
-
Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
|
|
2412
|
-
Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
|
|
2413
|
-
Kind2["SELECTION_SET"] = "SelectionSet";
|
|
2414
|
-
Kind2["FIELD"] = "Field";
|
|
2415
|
-
Kind2["ARGUMENT"] = "Argument";
|
|
2416
|
-
Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
|
|
2417
|
-
Kind2["INLINE_FRAGMENT"] = "InlineFragment";
|
|
2418
|
-
Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
|
|
2419
|
-
Kind2["VARIABLE"] = "Variable";
|
|
2420
|
-
Kind2["INT"] = "IntValue";
|
|
2421
|
-
Kind2["FLOAT"] = "FloatValue";
|
|
2422
|
-
Kind2["STRING"] = "StringValue";
|
|
2423
|
-
Kind2["BOOLEAN"] = "BooleanValue";
|
|
2424
|
-
Kind2["NULL"] = "NullValue";
|
|
2425
|
-
Kind2["ENUM"] = "EnumValue";
|
|
2426
|
-
Kind2["LIST"] = "ListValue";
|
|
2427
|
-
Kind2["OBJECT"] = "ObjectValue";
|
|
2428
|
-
Kind2["OBJECT_FIELD"] = "ObjectField";
|
|
2429
|
-
Kind2["DIRECTIVE"] = "Directive";
|
|
2430
|
-
Kind2["NAMED_TYPE"] = "NamedType";
|
|
2431
|
-
Kind2["LIST_TYPE"] = "ListType";
|
|
2432
|
-
Kind2["NON_NULL_TYPE"] = "NonNullType";
|
|
2433
|
-
Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
|
|
2434
|
-
Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
|
|
2435
|
-
Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
|
|
2436
|
-
Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
|
|
2437
|
-
Kind2["FIELD_DEFINITION"] = "FieldDefinition";
|
|
2438
|
-
Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
|
|
2439
|
-
Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
|
|
2440
|
-
Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
|
|
2441
|
-
Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
|
|
2442
|
-
Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
|
|
2443
|
-
Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
|
|
2444
|
-
Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
|
|
2445
|
-
Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
|
|
2446
|
-
Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
|
|
2447
|
-
Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
|
|
2448
|
-
Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
|
|
2449
|
-
Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
|
|
2450
|
-
Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
|
|
2451
|
-
Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
|
|
2452
|
-
})(Kind || (Kind = {}));
|
|
2453
|
-
var TokenKind;
|
|
2454
|
-
(function(TokenKind2) {
|
|
2455
|
-
TokenKind2["SOF"] = "<SOF>";
|
|
2456
|
-
TokenKind2["EOF"] = "<EOF>";
|
|
2457
|
-
TokenKind2["BANG"] = "!";
|
|
2458
|
-
TokenKind2["DOLLAR"] = "$";
|
|
2459
|
-
TokenKind2["AMP"] = "&";
|
|
2460
|
-
TokenKind2["PAREN_L"] = "(";
|
|
2461
|
-
TokenKind2["PAREN_R"] = ")";
|
|
2462
|
-
TokenKind2["SPREAD"] = "...";
|
|
2463
|
-
TokenKind2["COLON"] = ":";
|
|
2464
|
-
TokenKind2["EQUALS"] = "=";
|
|
2465
|
-
TokenKind2["AT"] = "@";
|
|
2466
|
-
TokenKind2["BRACKET_L"] = "[";
|
|
2467
|
-
TokenKind2["BRACKET_R"] = "]";
|
|
2468
|
-
TokenKind2["BRACE_L"] = "{";
|
|
2469
|
-
TokenKind2["PIPE"] = "|";
|
|
2470
|
-
TokenKind2["BRACE_R"] = "}";
|
|
2471
|
-
TokenKind2["NAME"] = "Name";
|
|
2472
|
-
TokenKind2["INT"] = "Int";
|
|
2473
|
-
TokenKind2["FLOAT"] = "Float";
|
|
2474
|
-
TokenKind2["STRING"] = "String";
|
|
2475
|
-
TokenKind2["BLOCK_STRING"] = "BlockString";
|
|
2476
|
-
TokenKind2["COMMENT"] = "Comment";
|
|
2477
|
-
})(TokenKind || (TokenKind = {}));
|
|
2478
|
-
const QueryDocumentKeys = {
|
|
2479
|
-
Name: [],
|
|
2480
|
-
Document: ["definitions"],
|
|
2481
|
-
OperationDefinition: [
|
|
2482
|
-
"name",
|
|
2483
|
-
"variableDefinitions",
|
|
2484
|
-
"directives",
|
|
2485
|
-
"selectionSet"
|
|
2486
|
-
],
|
|
2487
|
-
VariableDefinition: ["variable", "type", "defaultValue", "directives"],
|
|
2488
|
-
Variable: ["name"],
|
|
2489
|
-
SelectionSet: ["selections"],
|
|
2490
|
-
Field: ["alias", "name", "arguments", "directives", "selectionSet"],
|
|
2491
|
-
Argument: ["name", "value"],
|
|
2492
|
-
FragmentSpread: ["name", "directives"],
|
|
2493
|
-
InlineFragment: ["typeCondition", "directives", "selectionSet"],
|
|
2494
|
-
FragmentDefinition: [
|
|
2495
|
-
"name",
|
|
2496
|
-
// Note: fragment variable definitions are deprecated and will removed in v17.0.0
|
|
2497
|
-
"variableDefinitions",
|
|
2498
|
-
"typeCondition",
|
|
2499
|
-
"directives",
|
|
2500
|
-
"selectionSet"
|
|
2501
|
-
],
|
|
2502
|
-
IntValue: [],
|
|
2503
|
-
FloatValue: [],
|
|
2504
|
-
StringValue: [],
|
|
2505
|
-
BooleanValue: [],
|
|
2506
|
-
NullValue: [],
|
|
2507
|
-
EnumValue: [],
|
|
2508
|
-
ListValue: ["values"],
|
|
2509
|
-
ObjectValue: ["fields"],
|
|
2510
|
-
ObjectField: ["name", "value"],
|
|
2511
|
-
Directive: ["name", "arguments"],
|
|
2512
|
-
NamedType: ["name"],
|
|
2513
|
-
ListType: ["type"],
|
|
2514
|
-
NonNullType: ["type"],
|
|
2515
|
-
SchemaDefinition: ["description", "directives", "operationTypes"],
|
|
2516
|
-
OperationTypeDefinition: ["type"],
|
|
2517
|
-
ScalarTypeDefinition: ["description", "name", "directives"],
|
|
2518
|
-
ObjectTypeDefinition: [
|
|
2519
|
-
"description",
|
|
2520
|
-
"name",
|
|
2521
|
-
"interfaces",
|
|
2522
|
-
"directives",
|
|
2523
|
-
"fields"
|
|
2524
|
-
],
|
|
2525
|
-
FieldDefinition: ["description", "name", "arguments", "type", "directives"],
|
|
2526
|
-
InputValueDefinition: [
|
|
2527
|
-
"description",
|
|
2528
|
-
"name",
|
|
2529
|
-
"type",
|
|
2530
|
-
"defaultValue",
|
|
2531
|
-
"directives"
|
|
2532
|
-
],
|
|
2533
|
-
InterfaceTypeDefinition: [
|
|
2534
|
-
"description",
|
|
2535
|
-
"name",
|
|
2536
|
-
"interfaces",
|
|
2537
|
-
"directives",
|
|
2538
|
-
"fields"
|
|
2539
|
-
],
|
|
2540
|
-
UnionTypeDefinition: ["description", "name", "directives", "types"],
|
|
2541
|
-
EnumTypeDefinition: ["description", "name", "directives", "values"],
|
|
2542
|
-
EnumValueDefinition: ["description", "name", "directives"],
|
|
2543
|
-
InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
|
|
2544
|
-
DirectiveDefinition: ["description", "name", "arguments", "locations"],
|
|
2545
|
-
SchemaExtension: ["directives", "operationTypes"],
|
|
2546
|
-
ScalarTypeExtension: ["name", "directives"],
|
|
2547
|
-
ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
|
|
2548
|
-
InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
|
|
2549
|
-
UnionTypeExtension: ["name", "directives", "types"],
|
|
2550
|
-
EnumTypeExtension: ["name", "directives", "values"],
|
|
2551
|
-
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
2552
|
-
};
|
|
2553
|
-
const kindValues = new Set(Object.keys(QueryDocumentKeys));
|
|
2554
|
-
function isNode(maybeNode) {
|
|
2555
|
-
const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
|
|
2556
|
-
return typeof maybeKind === "string" && kindValues.has(maybeKind);
|
|
2557
|
-
}
|
|
2558
|
-
var OperationTypeNode;
|
|
2559
|
-
(function(OperationTypeNode2) {
|
|
2560
|
-
OperationTypeNode2["QUERY"] = "query";
|
|
2561
|
-
OperationTypeNode2["MUTATION"] = "mutation";
|
|
2562
|
-
OperationTypeNode2["SUBSCRIPTION"] = "subscription";
|
|
2563
|
-
})(OperationTypeNode || (OperationTypeNode = {}));
|
|
2564
|
-
function isWhiteSpace(code) {
|
|
2565
|
-
return code === 9 || code === 32;
|
|
2566
|
-
}
|
|
2567
|
-
function printBlockString(value, options) {
|
|
2568
|
-
const escapedValue = value.replace(/"""/g, '\\"""');
|
|
2569
|
-
const lines = escapedValue.split(/\r\n|[\n\r]/g);
|
|
2570
|
-
const isSingleLine = lines.length === 1;
|
|
2571
|
-
const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
|
|
2572
|
-
const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
|
|
2573
|
-
const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
|
|
2574
|
-
const hasTrailingSlash = value.endsWith("\\");
|
|
2575
|
-
const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
|
|
2576
|
-
const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
|
|
2577
|
-
(!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
|
|
2578
|
-
let result = "";
|
|
2579
|
-
const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
|
|
2580
|
-
if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
|
|
2581
|
-
result += "\n";
|
|
2582
|
-
}
|
|
2583
|
-
result += escapedValue;
|
|
2584
|
-
if (printAsMultipleLines || forceTrailingNewline) {
|
|
2585
|
-
result += "\n";
|
|
2586
|
-
}
|
|
2587
|
-
return '"""' + result + '"""';
|
|
2588
|
-
}
|
|
2589
|
-
var DirectiveLocation;
|
|
2590
|
-
(function(DirectiveLocation2) {
|
|
2591
|
-
DirectiveLocation2["QUERY"] = "QUERY";
|
|
2592
|
-
DirectiveLocation2["MUTATION"] = "MUTATION";
|
|
2593
|
-
DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
|
|
2594
|
-
DirectiveLocation2["FIELD"] = "FIELD";
|
|
2595
|
-
DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
|
|
2596
|
-
DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
|
|
2597
|
-
DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
|
|
2598
|
-
DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
|
|
2599
|
-
DirectiveLocation2["SCHEMA"] = "SCHEMA";
|
|
2600
|
-
DirectiveLocation2["SCALAR"] = "SCALAR";
|
|
2601
|
-
DirectiveLocation2["OBJECT"] = "OBJECT";
|
|
2602
|
-
DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
|
|
2603
|
-
DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
|
|
2604
|
-
DirectiveLocation2["INTERFACE"] = "INTERFACE";
|
|
2605
|
-
DirectiveLocation2["UNION"] = "UNION";
|
|
2606
|
-
DirectiveLocation2["ENUM"] = "ENUM";
|
|
2607
|
-
DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
|
|
2608
|
-
DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
|
|
2609
|
-
DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
|
|
2610
|
-
})(DirectiveLocation || (DirectiveLocation = {}));
|
|
2611
|
-
function printString(str) {
|
|
2612
|
-
return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
|
|
2613
|
-
}
|
|
2614
|
-
const escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
2615
|
-
function escapedReplacer(str) {
|
|
2616
|
-
return escapeSequences[str.charCodeAt(0)];
|
|
2617
|
-
}
|
|
2618
|
-
const escapeSequences = [
|
|
2619
|
-
"\\u0000",
|
|
2620
|
-
"\\u0001",
|
|
2621
|
-
"\\u0002",
|
|
2622
|
-
"\\u0003",
|
|
2623
|
-
"\\u0004",
|
|
2624
|
-
"\\u0005",
|
|
2625
|
-
"\\u0006",
|
|
2626
|
-
"\\u0007",
|
|
2627
|
-
"\\b",
|
|
2628
|
-
"\\t",
|
|
2629
|
-
"\\n",
|
|
2630
|
-
"\\u000B",
|
|
2631
|
-
"\\f",
|
|
2632
|
-
"\\r",
|
|
2633
|
-
"\\u000E",
|
|
2634
|
-
"\\u000F",
|
|
2635
|
-
"\\u0010",
|
|
2636
|
-
"\\u0011",
|
|
2637
|
-
"\\u0012",
|
|
2638
|
-
"\\u0013",
|
|
2639
|
-
"\\u0014",
|
|
2640
|
-
"\\u0015",
|
|
2641
|
-
"\\u0016",
|
|
2642
|
-
"\\u0017",
|
|
2643
|
-
"\\u0018",
|
|
2644
|
-
"\\u0019",
|
|
2645
|
-
"\\u001A",
|
|
2646
|
-
"\\u001B",
|
|
2647
|
-
"\\u001C",
|
|
2648
|
-
"\\u001D",
|
|
2649
|
-
"\\u001E",
|
|
2650
|
-
"\\u001F",
|
|
2651
|
-
"",
|
|
2652
|
-
"",
|
|
2653
|
-
'\\"',
|
|
2654
|
-
"",
|
|
2655
|
-
"",
|
|
2656
|
-
"",
|
|
2657
|
-
"",
|
|
2658
|
-
"",
|
|
2659
|
-
"",
|
|
2660
|
-
"",
|
|
2661
|
-
"",
|
|
2662
|
-
"",
|
|
2663
|
-
"",
|
|
2664
|
-
"",
|
|
2665
|
-
"",
|
|
2666
|
-
"",
|
|
2667
|
-
// 2F
|
|
2668
|
-
"",
|
|
2669
|
-
"",
|
|
2670
|
-
"",
|
|
2671
|
-
"",
|
|
2672
|
-
"",
|
|
2673
|
-
"",
|
|
2674
|
-
"",
|
|
2675
|
-
"",
|
|
2676
|
-
"",
|
|
2677
|
-
"",
|
|
2678
|
-
"",
|
|
2679
|
-
"",
|
|
2680
|
-
"",
|
|
2681
|
-
"",
|
|
2682
|
-
"",
|
|
2683
|
-
"",
|
|
2684
|
-
// 3F
|
|
2685
|
-
"",
|
|
2686
|
-
"",
|
|
2687
|
-
"",
|
|
2688
|
-
"",
|
|
2689
|
-
"",
|
|
2690
|
-
"",
|
|
2691
|
-
"",
|
|
2692
|
-
"",
|
|
2693
|
-
"",
|
|
2694
|
-
"",
|
|
2695
|
-
"",
|
|
2696
|
-
"",
|
|
2697
|
-
"",
|
|
2698
|
-
"",
|
|
2699
|
-
"",
|
|
2700
|
-
"",
|
|
2701
|
-
// 4F
|
|
2702
|
-
"",
|
|
2703
|
-
"",
|
|
2704
|
-
"",
|
|
2705
|
-
"",
|
|
2706
|
-
"",
|
|
2707
|
-
"",
|
|
2708
|
-
"",
|
|
2709
|
-
"",
|
|
2710
|
-
"",
|
|
2711
|
-
"",
|
|
2712
|
-
"",
|
|
2713
|
-
"",
|
|
2714
|
-
"\\\\",
|
|
2715
|
-
"",
|
|
2716
|
-
"",
|
|
2717
|
-
"",
|
|
2718
|
-
// 5F
|
|
2719
|
-
"",
|
|
2720
|
-
"",
|
|
2721
|
-
"",
|
|
2722
|
-
"",
|
|
2723
|
-
"",
|
|
2724
|
-
"",
|
|
2725
|
-
"",
|
|
2726
|
-
"",
|
|
2727
|
-
"",
|
|
2728
|
-
"",
|
|
2729
|
-
"",
|
|
2730
|
-
"",
|
|
2731
|
-
"",
|
|
2732
|
-
"",
|
|
2733
|
-
"",
|
|
2734
|
-
"",
|
|
2735
|
-
// 6F
|
|
2736
|
-
"",
|
|
2737
|
-
"",
|
|
2738
|
-
"",
|
|
2739
|
-
"",
|
|
2740
|
-
"",
|
|
2741
|
-
"",
|
|
2742
|
-
"",
|
|
2743
|
-
"",
|
|
2744
|
-
"",
|
|
2745
|
-
"",
|
|
2746
|
-
"",
|
|
2747
|
-
"",
|
|
2748
|
-
"",
|
|
2749
|
-
"",
|
|
2750
|
-
"",
|
|
2751
|
-
"\\u007F",
|
|
2752
|
-
"\\u0080",
|
|
2753
|
-
"\\u0081",
|
|
2754
|
-
"\\u0082",
|
|
2755
|
-
"\\u0083",
|
|
2756
|
-
"\\u0084",
|
|
2757
|
-
"\\u0085",
|
|
2758
|
-
"\\u0086",
|
|
2759
|
-
"\\u0087",
|
|
2760
|
-
"\\u0088",
|
|
2761
|
-
"\\u0089",
|
|
2762
|
-
"\\u008A",
|
|
2763
|
-
"\\u008B",
|
|
2764
|
-
"\\u008C",
|
|
2765
|
-
"\\u008D",
|
|
2766
|
-
"\\u008E",
|
|
2767
|
-
"\\u008F",
|
|
2768
|
-
"\\u0090",
|
|
2769
|
-
"\\u0091",
|
|
2770
|
-
"\\u0092",
|
|
2771
|
-
"\\u0093",
|
|
2772
|
-
"\\u0094",
|
|
2773
|
-
"\\u0095",
|
|
2774
|
-
"\\u0096",
|
|
2775
|
-
"\\u0097",
|
|
2776
|
-
"\\u0098",
|
|
2777
|
-
"\\u0099",
|
|
2778
|
-
"\\u009A",
|
|
2779
|
-
"\\u009B",
|
|
2780
|
-
"\\u009C",
|
|
2781
|
-
"\\u009D",
|
|
2782
|
-
"\\u009E",
|
|
2783
|
-
"\\u009F"
|
|
2784
|
-
];
|
|
2785
|
-
const BREAK = Object.freeze({});
|
|
2786
|
-
function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
|
|
2787
|
-
const enterLeaveMap = /* @__PURE__ */ new Map();
|
|
2788
|
-
for (const kind of Object.values(Kind)) {
|
|
2789
|
-
enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
|
|
2790
|
-
}
|
|
2791
|
-
let stack = void 0;
|
|
2792
|
-
let inArray = Array.isArray(root);
|
|
2793
|
-
let keys = [root];
|
|
2794
|
-
let index = -1;
|
|
2795
|
-
let edits = [];
|
|
2796
|
-
let node = root;
|
|
2797
|
-
let key = void 0;
|
|
2798
|
-
let parent = void 0;
|
|
2799
|
-
const path = [];
|
|
2800
|
-
const ancestors = [];
|
|
2801
|
-
do {
|
|
2802
|
-
index++;
|
|
2803
|
-
const isLeaving = index === keys.length;
|
|
2804
|
-
const isEdited = isLeaving && edits.length !== 0;
|
|
2805
|
-
if (isLeaving) {
|
|
2806
|
-
key = ancestors.length === 0 ? void 0 : path[path.length - 1];
|
|
2807
|
-
node = parent;
|
|
2808
|
-
parent = ancestors.pop();
|
|
2809
|
-
if (isEdited) {
|
|
2810
|
-
if (inArray) {
|
|
2811
|
-
node = node.slice();
|
|
2812
|
-
let editOffset = 0;
|
|
2813
|
-
for (const [editKey, editValue] of edits) {
|
|
2814
|
-
const arrayKey = editKey - editOffset;
|
|
2815
|
-
if (editValue === null) {
|
|
2816
|
-
node.splice(arrayKey, 1);
|
|
2817
|
-
editOffset++;
|
|
2818
|
-
} else {
|
|
2819
|
-
node[arrayKey] = editValue;
|
|
2820
|
-
}
|
|
2821
|
-
}
|
|
2822
|
-
} else {
|
|
2823
|
-
node = { ...node };
|
|
2824
|
-
for (const [editKey, editValue] of edits) {
|
|
2825
|
-
node[editKey] = editValue;
|
|
2826
|
-
}
|
|
2827
|
-
}
|
|
2828
|
-
}
|
|
2829
|
-
index = stack.index;
|
|
2830
|
-
keys = stack.keys;
|
|
2831
|
-
edits = stack.edits;
|
|
2832
|
-
inArray = stack.inArray;
|
|
2833
|
-
stack = stack.prev;
|
|
2834
|
-
} else if (parent) {
|
|
2835
|
-
key = inArray ? index : keys[index];
|
|
2836
|
-
node = parent[key];
|
|
2837
|
-
if (node === null || node === void 0) {
|
|
2838
|
-
continue;
|
|
2839
|
-
}
|
|
2840
|
-
path.push(key);
|
|
2841
|
-
}
|
|
2842
|
-
let result;
|
|
2843
|
-
if (!Array.isArray(node)) {
|
|
2844
|
-
var _enterLeaveMap$get, _enterLeaveMap$get2;
|
|
2845
|
-
isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
|
|
2846
|
-
const visitFn = isLeaving ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get === void 0 ? void 0 : _enterLeaveMap$get.leave : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get2 === void 0 ? void 0 : _enterLeaveMap$get2.enter;
|
|
2847
|
-
result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
|
|
2848
|
-
if (result === BREAK) {
|
|
2849
|
-
break;
|
|
2850
|
-
}
|
|
2851
|
-
if (result === false) {
|
|
2852
|
-
if (!isLeaving) {
|
|
2853
|
-
path.pop();
|
|
2854
|
-
continue;
|
|
2855
|
-
}
|
|
2856
|
-
} else if (result !== void 0) {
|
|
2857
|
-
edits.push([key, result]);
|
|
2858
|
-
if (!isLeaving) {
|
|
2859
|
-
if (isNode(result)) {
|
|
2860
|
-
node = result;
|
|
2861
|
-
} else {
|
|
2862
|
-
path.pop();
|
|
2863
|
-
continue;
|
|
2864
|
-
}
|
|
2865
|
-
}
|
|
2866
|
-
}
|
|
2867
|
-
}
|
|
2868
|
-
if (result === void 0 && isEdited) {
|
|
2869
|
-
edits.push([key, node]);
|
|
2870
|
-
}
|
|
2871
|
-
if (isLeaving) {
|
|
2872
|
-
path.pop();
|
|
2873
|
-
} else {
|
|
2874
|
-
var _node$kind;
|
|
2875
|
-
stack = {
|
|
2876
|
-
inArray,
|
|
2877
|
-
index,
|
|
2878
|
-
keys,
|
|
2879
|
-
edits,
|
|
2880
|
-
prev: stack
|
|
2881
|
-
};
|
|
2882
|
-
inArray = Array.isArray(node);
|
|
2883
|
-
keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
|
|
2884
|
-
index = -1;
|
|
2885
|
-
edits = [];
|
|
2886
|
-
if (parent) {
|
|
2887
|
-
ancestors.push(parent);
|
|
2888
|
-
}
|
|
2889
|
-
parent = node;
|
|
2890
|
-
}
|
|
2891
|
-
} while (stack !== void 0);
|
|
2892
|
-
if (edits.length !== 0) {
|
|
2893
|
-
return edits[edits.length - 1][1];
|
|
2894
|
-
}
|
|
2895
|
-
return root;
|
|
2896
|
-
}
|
|
2897
|
-
function getEnterLeaveForKind(visitor, kind) {
|
|
2898
|
-
const kindVisitor = visitor[kind];
|
|
2899
|
-
if (typeof kindVisitor === "object") {
|
|
2900
|
-
return kindVisitor;
|
|
2901
|
-
} else if (typeof kindVisitor === "function") {
|
|
2902
|
-
return {
|
|
2903
|
-
enter: kindVisitor,
|
|
2904
|
-
leave: void 0
|
|
2905
|
-
};
|
|
2906
|
-
}
|
|
2907
|
-
return {
|
|
2908
|
-
enter: visitor.enter,
|
|
2909
|
-
leave: visitor.leave
|
|
2910
|
-
};
|
|
2911
|
-
}
|
|
2912
|
-
function print(ast) {
|
|
2913
|
-
return visit(ast, printDocASTReducer);
|
|
2914
|
-
}
|
|
2915
|
-
const MAX_LINE_LENGTH = 80;
|
|
2916
|
-
const printDocASTReducer = {
|
|
2917
|
-
Name: {
|
|
2918
|
-
leave: (node) => node.value
|
|
2919
|
-
},
|
|
2920
|
-
Variable: {
|
|
2921
|
-
leave: (node) => "$" + node.name
|
|
2922
|
-
},
|
|
2923
|
-
// Document
|
|
2924
|
-
Document: {
|
|
2925
|
-
leave: (node) => join(node.definitions, "\n\n")
|
|
2926
|
-
},
|
|
2927
|
-
OperationDefinition: {
|
|
2928
|
-
leave(node) {
|
|
2929
|
-
const varDefs = wrap("(", join(node.variableDefinitions, ", "), ")");
|
|
2930
|
-
const prefix = join(
|
|
2931
|
-
[
|
|
2932
|
-
node.operation,
|
|
2933
|
-
join([node.name, varDefs]),
|
|
2934
|
-
join(node.directives, " ")
|
|
2935
|
-
],
|
|
2936
|
-
" "
|
|
2937
|
-
);
|
|
2938
|
-
return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
|
|
2939
|
-
}
|
|
2940
|
-
},
|
|
2941
|
-
VariableDefinition: {
|
|
2942
|
-
leave: ({ variable, type, defaultValue, directives }) => variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join(directives, " "))
|
|
2943
|
-
},
|
|
2944
|
-
SelectionSet: {
|
|
2945
|
-
leave: ({ selections }) => block(selections)
|
|
2946
|
-
},
|
|
2947
|
-
Field: {
|
|
2948
|
-
leave({ alias, name, arguments: args, directives, selectionSet }) {
|
|
2949
|
-
const prefix = wrap("", alias, ": ") + name;
|
|
2950
|
-
let argsLine = prefix + wrap("(", join(args, ", "), ")");
|
|
2951
|
-
if (argsLine.length > MAX_LINE_LENGTH) {
|
|
2952
|
-
argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
|
|
2953
|
-
}
|
|
2954
|
-
return join([argsLine, join(directives, " "), selectionSet], " ");
|
|
2955
|
-
}
|
|
2956
|
-
},
|
|
2957
|
-
Argument: {
|
|
2958
|
-
leave: ({ name, value }) => name + ": " + value
|
|
2959
|
-
},
|
|
2960
|
-
// Fragments
|
|
2961
|
-
FragmentSpread: {
|
|
2962
|
-
leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " "))
|
|
2963
|
-
},
|
|
2964
|
-
InlineFragment: {
|
|
2965
|
-
leave: ({ typeCondition, directives, selectionSet }) => join(
|
|
2966
|
-
[
|
|
2967
|
-
"...",
|
|
2968
|
-
wrap("on ", typeCondition),
|
|
2969
|
-
join(directives, " "),
|
|
2970
|
-
selectionSet
|
|
2971
|
-
],
|
|
2972
|
-
" "
|
|
2973
|
-
)
|
|
2974
|
-
},
|
|
2975
|
-
FragmentDefinition: {
|
|
2976
|
-
leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => (
|
|
2977
|
-
// or removed in the future.
|
|
2978
|
-
`fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet
|
|
2979
|
-
)
|
|
2980
|
-
},
|
|
2981
|
-
// Value
|
|
2982
|
-
IntValue: {
|
|
2983
|
-
leave: ({ value }) => value
|
|
2984
|
-
},
|
|
2985
|
-
FloatValue: {
|
|
2986
|
-
leave: ({ value }) => value
|
|
2987
|
-
},
|
|
2988
|
-
StringValue: {
|
|
2989
|
-
leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
|
|
2990
|
-
},
|
|
2991
|
-
BooleanValue: {
|
|
2992
|
-
leave: ({ value }) => value ? "true" : "false"
|
|
2993
|
-
},
|
|
2994
|
-
NullValue: {
|
|
2995
|
-
leave: () => "null"
|
|
2996
|
-
},
|
|
2997
|
-
EnumValue: {
|
|
2998
|
-
leave: ({ value }) => value
|
|
2999
|
-
},
|
|
3000
|
-
ListValue: {
|
|
3001
|
-
leave: ({ values }) => "[" + join(values, ", ") + "]"
|
|
3002
|
-
},
|
|
3003
|
-
ObjectValue: {
|
|
3004
|
-
leave: ({ fields }) => "{" + join(fields, ", ") + "}"
|
|
3005
|
-
},
|
|
3006
|
-
ObjectField: {
|
|
3007
|
-
leave: ({ name, value }) => name + ": " + value
|
|
3008
|
-
},
|
|
3009
|
-
// Directive
|
|
3010
|
-
Directive: {
|
|
3011
|
-
leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")")
|
|
3012
|
-
},
|
|
3013
|
-
// Type
|
|
3014
|
-
NamedType: {
|
|
3015
|
-
leave: ({ name }) => name
|
|
3016
|
-
},
|
|
3017
|
-
ListType: {
|
|
3018
|
-
leave: ({ type }) => "[" + type + "]"
|
|
3019
|
-
},
|
|
3020
|
-
NonNullType: {
|
|
3021
|
-
leave: ({ type }) => type + "!"
|
|
3022
|
-
},
|
|
3023
|
-
// Type System Definitions
|
|
3024
|
-
SchemaDefinition: {
|
|
3025
|
-
leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join(["schema", join(directives, " "), block(operationTypes)], " ")
|
|
3026
|
-
},
|
|
3027
|
-
OperationTypeDefinition: {
|
|
3028
|
-
leave: ({ operation, type }) => operation + ": " + type
|
|
3029
|
-
},
|
|
3030
|
-
ScalarTypeDefinition: {
|
|
3031
|
-
leave: ({ description, name, directives }) => wrap("", description, "\n") + join(["scalar", name, join(directives, " ")], " ")
|
|
3032
|
-
},
|
|
3033
|
-
ObjectTypeDefinition: {
|
|
3034
|
-
leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
|
|
3035
|
-
[
|
|
3036
|
-
"type",
|
|
3037
|
-
name,
|
|
3038
|
-
wrap("implements ", join(interfaces, " & ")),
|
|
3039
|
-
join(directives, " "),
|
|
3040
|
-
block(fields)
|
|
3041
|
-
],
|
|
3042
|
-
" "
|
|
3043
|
-
)
|
|
3044
|
-
},
|
|
3045
|
-
FieldDefinition: {
|
|
3046
|
-
leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + ": " + type + wrap(" ", join(directives, " "))
|
|
3047
|
-
},
|
|
3048
|
-
InputValueDefinition: {
|
|
3049
|
-
leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join(
|
|
3050
|
-
[name + ": " + type, wrap("= ", defaultValue), join(directives, " ")],
|
|
3051
|
-
" "
|
|
3052
|
-
)
|
|
3053
|
-
},
|
|
3054
|
-
InterfaceTypeDefinition: {
|
|
3055
|
-
leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
|
|
3056
|
-
[
|
|
3057
|
-
"interface",
|
|
3058
|
-
name,
|
|
3059
|
-
wrap("implements ", join(interfaces, " & ")),
|
|
3060
|
-
join(directives, " "),
|
|
3061
|
-
block(fields)
|
|
3062
|
-
],
|
|
3063
|
-
" "
|
|
3064
|
-
)
|
|
3065
|
-
},
|
|
3066
|
-
UnionTypeDefinition: {
|
|
3067
|
-
leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join(
|
|
3068
|
-
["union", name, join(directives, " "), wrap("= ", join(types, " | "))],
|
|
3069
|
-
" "
|
|
3070
|
-
)
|
|
3071
|
-
},
|
|
3072
|
-
EnumTypeDefinition: {
|
|
3073
|
-
leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join(["enum", name, join(directives, " "), block(values)], " ")
|
|
3074
|
-
},
|
|
3075
|
-
EnumValueDefinition: {
|
|
3076
|
-
leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ")
|
|
3077
|
-
},
|
|
3078
|
-
InputObjectTypeDefinition: {
|
|
3079
|
-
leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join(["input", name, join(directives, " "), block(fields)], " ")
|
|
3080
|
-
},
|
|
3081
|
-
DirectiveDefinition: {
|
|
3082
|
-
leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ")
|
|
3083
|
-
},
|
|
3084
|
-
SchemaExtension: {
|
|
3085
|
-
leave: ({ directives, operationTypes }) => join(
|
|
3086
|
-
["extend schema", join(directives, " "), block(operationTypes)],
|
|
3087
|
-
" "
|
|
3088
|
-
)
|
|
3089
|
-
},
|
|
3090
|
-
ScalarTypeExtension: {
|
|
3091
|
-
leave: ({ name, directives }) => join(["extend scalar", name, join(directives, " ")], " ")
|
|
3092
|
-
},
|
|
3093
|
-
ObjectTypeExtension: {
|
|
3094
|
-
leave: ({ name, interfaces, directives, fields }) => join(
|
|
3095
|
-
[
|
|
3096
|
-
"extend type",
|
|
3097
|
-
name,
|
|
3098
|
-
wrap("implements ", join(interfaces, " & ")),
|
|
3099
|
-
join(directives, " "),
|
|
3100
|
-
block(fields)
|
|
3101
|
-
],
|
|
3102
|
-
" "
|
|
3103
|
-
)
|
|
3104
|
-
},
|
|
3105
|
-
InterfaceTypeExtension: {
|
|
3106
|
-
leave: ({ name, interfaces, directives, fields }) => join(
|
|
3107
|
-
[
|
|
3108
|
-
"extend interface",
|
|
3109
|
-
name,
|
|
3110
|
-
wrap("implements ", join(interfaces, " & ")),
|
|
3111
|
-
join(directives, " "),
|
|
3112
|
-
block(fields)
|
|
3113
|
-
],
|
|
3114
|
-
" "
|
|
3115
|
-
)
|
|
3116
|
-
},
|
|
3117
|
-
UnionTypeExtension: {
|
|
3118
|
-
leave: ({ name, directives, types }) => join(
|
|
3119
|
-
[
|
|
3120
|
-
"extend union",
|
|
3121
|
-
name,
|
|
3122
|
-
join(directives, " "),
|
|
3123
|
-
wrap("= ", join(types, " | "))
|
|
3124
|
-
],
|
|
3125
|
-
" "
|
|
3126
|
-
)
|
|
3127
|
-
},
|
|
3128
|
-
EnumTypeExtension: {
|
|
3129
|
-
leave: ({ name, directives, values }) => join(["extend enum", name, join(directives, " "), block(values)], " ")
|
|
3130
|
-
},
|
|
3131
|
-
InputObjectTypeExtension: {
|
|
3132
|
-
leave: ({ name, directives, fields }) => join(["extend input", name, join(directives, " "), block(fields)], " ")
|
|
3133
|
-
}
|
|
3134
|
-
};
|
|
3135
|
-
function join(maybeArray, separator = "") {
|
|
3136
|
-
var _maybeArray$filter$jo;
|
|
3137
|
-
return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
|
|
3138
|
-
}
|
|
3139
|
-
function block(array) {
|
|
3140
|
-
return wrap("{\n", indent(join(array, "\n")), "\n}");
|
|
3141
|
-
}
|
|
3142
|
-
function wrap(start, maybeString, end = "") {
|
|
3143
|
-
return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
|
|
3144
|
-
}
|
|
3145
|
-
function indent(str) {
|
|
3146
|
-
return wrap(" ", str.replace(/\n/g, "\n "));
|
|
3147
|
-
}
|
|
3148
|
-
function hasMultilineItems(maybeArray) {
|
|
3149
|
-
var _maybeArray$some;
|
|
3150
|
-
return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
|
|
3151
|
-
}
|
|
2312
|
+
// version: 1.377.1-db77d3f339
|
|
3152
2313
|
|
|
3153
2314
|
/*!
|
|
3154
2315
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3301,7 +2462,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
3301
2462
|
});
|
|
3302
2463
|
}
|
|
3303
2464
|
}
|
|
3304
|
-
function buildServiceDescriptor$
|
|
2465
|
+
function buildServiceDescriptor$4() {
|
|
3305
2466
|
return {
|
|
3306
2467
|
type: "auraGraphQLNormalizedCacheControlCommand",
|
|
3307
2468
|
version: "1.0",
|
|
@@ -3411,7 +2572,7 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
|
|
|
3411
2572
|
});
|
|
3412
2573
|
}
|
|
3413
2574
|
}
|
|
3414
|
-
function buildServiceDescriptor$
|
|
2575
|
+
function buildServiceDescriptor$3() {
|
|
3415
2576
|
return {
|
|
3416
2577
|
type: "httpGraphQLNormalizedCacheControlCommand",
|
|
3417
2578
|
version: "1.0",
|
|
@@ -3419,6 +2580,56 @@ function buildServiceDescriptor$1() {
|
|
|
3419
2580
|
};
|
|
3420
2581
|
}
|
|
3421
2582
|
|
|
2583
|
+
/*!
|
|
2584
|
+
* Copyright (c) 2022, Salesforce, Inc.,
|
|
2585
|
+
* All rights reserved.
|
|
2586
|
+
* For full license text, see the LICENSE.txt file
|
|
2587
|
+
*/
|
|
2588
|
+
class FeatureFlagsService {
|
|
2589
|
+
constructor() {
|
|
2590
|
+
this.flags = /* @__PURE__ */ new Map();
|
|
2591
|
+
}
|
|
2592
|
+
set(flagName, value) {
|
|
2593
|
+
this.flags.set(flagName, value);
|
|
2594
|
+
}
|
|
2595
|
+
get(flagName, defaultValue = false) {
|
|
2596
|
+
return this.flags.get(flagName) || defaultValue;
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
function buildServiceDescriptor$2() {
|
|
2600
|
+
return {
|
|
2601
|
+
version: "1.0",
|
|
2602
|
+
service: new FeatureFlagsService(),
|
|
2603
|
+
type: "featureFlags"
|
|
2604
|
+
};
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
/**
|
|
2608
|
+
* Copyright (c) 2022, Salesforce, Inc.,
|
|
2609
|
+
* All rights reserved.
|
|
2610
|
+
* For full license text, see the LICENSE.txt file
|
|
2611
|
+
*/
|
|
2612
|
+
|
|
2613
|
+
/*
|
|
2614
|
+
* ATTENTION!
|
|
2615
|
+
* THIS IS A GENERATED FILE FROM https://github.com/salesforce-experience-platform-emu/lds-lightning-platform
|
|
2616
|
+
* If you would like to contribute to LDS, please follow the steps outlined in the git repo.
|
|
2617
|
+
* Any changes made to this file in p4 will be automatically overwritten.
|
|
2618
|
+
* *******************************************************************************************
|
|
2619
|
+
*/
|
|
2620
|
+
/* proxy-compat-disable */
|
|
2621
|
+
function buildServiceDescriptor$1(notifyRecordUpdateAvailable, getNormalizedLuvioRecord) {
|
|
2622
|
+
return {
|
|
2623
|
+
type: 'luvioUiapiRecords',
|
|
2624
|
+
version: '1.0',
|
|
2625
|
+
service: {
|
|
2626
|
+
notifyRecordUpdateAvailable,
|
|
2627
|
+
getNormalizedLuvioRecord,
|
|
2628
|
+
},
|
|
2629
|
+
};
|
|
2630
|
+
}
|
|
2631
|
+
// version: 1.377.1-db77d3f339
|
|
2632
|
+
|
|
3422
2633
|
/*!
|
|
3423
2634
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3424
2635
|
* All rights reserved.
|
|
@@ -6912,7 +6123,7 @@ function getEnvironmentSetting(name) {
|
|
|
6912
6123
|
}
|
|
6913
6124
|
return undefined;
|
|
6914
6125
|
}
|
|
6915
|
-
// version: 1.
|
|
6126
|
+
// version: 1.377.1-db77d3f339
|
|
6916
6127
|
|
|
6917
6128
|
const forceRecordTransactionsDisabled = getEnvironmentSetting(EnvironmentSettings.ForceRecordTransactionsDisabled);
|
|
6918
6129
|
//TODO: Some duplication here that can be most likely moved to a util class
|
|
@@ -7686,6 +6897,21 @@ function saveRequestAsPrediction(request) {
|
|
|
7686
6897
|
__lexPrefetcher.saveRequest(request);
|
|
7687
6898
|
}
|
|
7688
6899
|
}
|
|
6900
|
+
// This is copied from lds-adapters-uiapi because the exports are totally messed up
|
|
6901
|
+
const notifyUpdateAvailableFactory = (luvio) => {
|
|
6902
|
+
return function notifyRecordUpdateAvailable(configs) {
|
|
6903
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6904
|
+
const requiredKeyParams = ['recordId'];
|
|
6905
|
+
configs.forEach((config) => {
|
|
6906
|
+
if (false === requiredKeyParams.every((req) => req in config)) {
|
|
6907
|
+
throw new Error(`one of the configs did not contain all required parameters`);
|
|
6908
|
+
}
|
|
6909
|
+
});
|
|
6910
|
+
}
|
|
6911
|
+
const keys = configs.map((c) => buildRecordRepKeyFromId(c.recordId));
|
|
6912
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
6913
|
+
};
|
|
6914
|
+
};
|
|
7689
6915
|
/**
|
|
7690
6916
|
* @typedef {Object} RecordHomePageContext
|
|
7691
6917
|
* @property {string} objectApiName - The API name of the object.
|
|
@@ -7795,31 +7021,58 @@ function initializeLDS() {
|
|
|
7795
7021
|
// Initializes OneStore in LEX
|
|
7796
7022
|
function initializeOneStore(luvio) {
|
|
7797
7023
|
const loggerService = new ConsoleLogger$1('ERROR');
|
|
7798
|
-
const cacheServiceDescriptor = buildServiceDescriptor$
|
|
7799
|
-
const instrumentationServiceDescriptor = buildServiceDescriptor$
|
|
7024
|
+
const cacheServiceDescriptor = buildServiceDescriptor$9();
|
|
7025
|
+
const instrumentationServiceDescriptor = buildServiceDescriptor$a(loggerService);
|
|
7800
7026
|
const inMemoryCacheInclusionPolicyServiceDescriptor = buildInMemoryCacheInclusionPolicyService(cacheServiceDescriptor.service);
|
|
7027
|
+
const featureFlagsServiceDescriptor = buildServiceDescriptor$2();
|
|
7028
|
+
const featureFlagsService = featureFlagsServiceDescriptor.service;
|
|
7029
|
+
const luvioUiapiRecordsServiceDescriptor = buildServiceDescriptor$1((configs) => {
|
|
7030
|
+
return notifyUpdateAvailableFactory(luvio)(configs);
|
|
7031
|
+
}, (recordId, reader) => {
|
|
7032
|
+
const recordKey = buildRecordRepKeyFromId(recordId);
|
|
7033
|
+
reader.markSeenId(recordKey);
|
|
7034
|
+
const linkedData = reader.read({
|
|
7035
|
+
recordId: recordKey,
|
|
7036
|
+
node: {
|
|
7037
|
+
kind: 'Fragment',
|
|
7038
|
+
private: [],
|
|
7039
|
+
opaque: true,
|
|
7040
|
+
version: RecordRepresentationVersion,
|
|
7041
|
+
},
|
|
7042
|
+
variables: {},
|
|
7043
|
+
});
|
|
7044
|
+
if (linkedData.data === undefined) {
|
|
7045
|
+
reader.markMissingLink(recordKey);
|
|
7046
|
+
return undefined;
|
|
7047
|
+
}
|
|
7048
|
+
return linkedData.data;
|
|
7049
|
+
});
|
|
7050
|
+
// set flags based on gates
|
|
7051
|
+
featureFlagsService.set('useOneStoreGraphQL', useOneStoreGraphql.isOpen({ fallback: false }));
|
|
7801
7052
|
const services = [
|
|
7802
7053
|
instrumentationServiceDescriptor,
|
|
7803
7054
|
buildUnauthorizedFetchServiceDescriptor(),
|
|
7804
7055
|
buildJwtAuthorizedSfapFetchServiceDescriptor(loggerService),
|
|
7805
7056
|
buildCopilotFetchServiceDescriptor(loggerService),
|
|
7806
7057
|
buildAuraNetworkService(),
|
|
7807
|
-
buildServiceDescriptor$
|
|
7808
|
-
buildServiceDescriptor$
|
|
7809
|
-
buildServiceDescriptor$
|
|
7810
|
-
buildServiceDescriptor$
|
|
7058
|
+
buildServiceDescriptor$b(instrumentationServiceDescriptor.service),
|
|
7059
|
+
buildServiceDescriptor$8(cacheServiceDescriptor.service, inMemoryCacheInclusionPolicyServiceDescriptor.service),
|
|
7060
|
+
buildServiceDescriptor$i(),
|
|
7061
|
+
buildServiceDescriptor$6(),
|
|
7062
|
+
buildServiceDescriptor$e(),
|
|
7063
|
+
buildServiceDescriptor$j(),
|
|
7064
|
+
buildServiceDescriptor$d(),
|
|
7811
7065
|
buildServiceDescriptor$c(),
|
|
7812
7066
|
buildServiceDescriptor$h(),
|
|
7813
|
-
buildServiceDescriptor$
|
|
7814
|
-
buildServiceDescriptor$a(),
|
|
7067
|
+
buildServiceDescriptor$g(),
|
|
7815
7068
|
buildServiceDescriptor$f(),
|
|
7816
|
-
buildServiceDescriptor$
|
|
7817
|
-
buildServiceDescriptor$d(),
|
|
7818
|
-
buildServiceDescriptor$5(),
|
|
7069
|
+
buildServiceDescriptor$7(),
|
|
7819
7070
|
buildLexRuntimeFetchServiceDescriptor(loggerService),
|
|
7820
|
-
buildServiceDescriptor$
|
|
7821
|
-
|
|
7822
|
-
buildServiceDescriptor$
|
|
7071
|
+
buildServiceDescriptor$5(luvio),
|
|
7072
|
+
luvioUiapiRecordsServiceDescriptor,
|
|
7073
|
+
buildServiceDescriptor$4(),
|
|
7074
|
+
buildServiceDescriptor$3(),
|
|
7075
|
+
featureFlagsServiceDescriptor,
|
|
7823
7076
|
];
|
|
7824
7077
|
setServices(services);
|
|
7825
7078
|
}
|
|
@@ -7835,9 +7088,8 @@ function ldsEngineCreator() {
|
|
|
7835
7088
|
const luvio = initializeLDS();
|
|
7836
7089
|
// One store initialization needs to happen first in order to set the one store adapter correctly in configuration object.
|
|
7837
7090
|
initializeOneStore(luvio);
|
|
7838
|
-
if (oneStoreUiapiEnabled.isOpen({ fallback: false })) ;
|
|
7839
7091
|
return { name: 'ldsEngineCreator' };
|
|
7840
7092
|
}
|
|
7841
7093
|
|
|
7842
|
-
export { LexRequestStrategy, PdlRequestPriority, buildPredictorForContext, ldsEngineCreator as default, initializeLDS, initializeOneStore, registerRequestStrategy, saveRequestAsPrediction, unregisterRequestStrategy, whenPredictionsReady };
|
|
7843
|
-
// version: 1.
|
|
7094
|
+
export { LexRequestStrategy, PdlRequestPriority, buildPredictorForContext, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, unregisterRequestStrategy, whenPredictionsReady };
|
|
7095
|
+
// version: 1.377.1-dadb6358f3
|
package/dist/types/main.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Luvio } from '@luvio/engine';
|
|
2
|
+
import { KeyParamsRecord } from '@salesforce/lds-adapters-uiapi';
|
|
2
3
|
import { ObjectHomePageContext, type RecordHomePageContext } from './predictive-loading';
|
|
3
4
|
import type { LexRequestStrategy } from './predictive-loading/request-strategy/lex-request-strategy';
|
|
4
5
|
import { type LexRequest } from './predictive-loading/lex';
|
|
@@ -18,6 +19,7 @@ export declare function registerRequestStrategy(...requestStrategy: LexRequestSt
|
|
|
18
19
|
export declare function unregisterRequestStrategy(...requestStrategy: LexRequestStrategy[]): boolean | boolean[];
|
|
19
20
|
export declare function whenPredictionsReady(callback: () => void): void;
|
|
20
21
|
export declare function saveRequestAsPrediction(request: LexRequest): void;
|
|
22
|
+
export declare const notifyUpdateAvailableFactory: (luvio: Luvio) => (configs: Partial<KeyParamsRecord>[]) => Promise<void>;
|
|
21
23
|
/**
|
|
22
24
|
* @typedef {Object} RecordHomePageContext
|
|
23
25
|
* @property {string} objectApiName - The API name of the object.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-aura",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.377.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Aura runtime",
|
|
6
6
|
"main": "dist/ldsEngineCreator.js",
|
|
@@ -34,45 +34,47 @@
|
|
|
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.54.0",
|
|
38
|
+
"@luvio/tools-core": "5.54.0",
|
|
39
|
+
"@salesforce/lds-adapters-apex": "^1.377.1",
|
|
40
|
+
"@salesforce/lds-adapters-uiapi": "^1.377.1",
|
|
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.377.1",
|
|
43
|
+
"@salesforce/lds-aura-storage": "^1.377.1",
|
|
44
|
+
"@salesforce/lds-bindings": "^1.377.1",
|
|
45
|
+
"@salesforce/lds-instrumentation": "^1.377.1",
|
|
46
|
+
"@salesforce/lds-network-aura": "^1.377.1",
|
|
47
|
+
"@salesforce/lds-network-fetch": "^1.377.1",
|
|
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.54.0",
|
|
52
|
+
"@luvio/command-aura-network": "5.54.0",
|
|
53
|
+
"@luvio/command-aura-normalized-cache-control": "5.54.0",
|
|
54
|
+
"@luvio/command-aura-resource-cache-control": "5.54.0",
|
|
55
|
+
"@luvio/command-fetch-network": "5.54.0",
|
|
56
|
+
"@luvio/command-http-graphql-normalized-cache-control": "5.54.0",
|
|
57
|
+
"@luvio/command-http-normalized-cache-control": "5.54.0",
|
|
58
|
+
"@luvio/command-ndjson": "5.54.0",
|
|
59
|
+
"@luvio/command-network": "5.54.0",
|
|
60
|
+
"@luvio/command-sse": "5.54.0",
|
|
61
|
+
"@luvio/command-streaming": "5.54.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-
|
|
69
|
-
"@luvio/service-
|
|
70
|
-
"@luvio/service-
|
|
71
|
-
"@luvio/service-
|
|
72
|
-
"@luvio/
|
|
73
|
-
"@
|
|
74
|
-
"@salesforce/lds-adapters-
|
|
75
|
-
"@salesforce/lds-
|
|
64
|
+
"@luvio/service-aura-network": "5.54.0",
|
|
65
|
+
"@luvio/service-cache": "5.54.0",
|
|
66
|
+
"@luvio/service-cache-control": "5.54.0",
|
|
67
|
+
"@luvio/service-cache-inclusion-policy": "5.54.0",
|
|
68
|
+
"@luvio/service-feature-flags": "5.54.0",
|
|
69
|
+
"@luvio/service-fetch-network": "5.54.0",
|
|
70
|
+
"@luvio/service-instrument-command": "5.54.0",
|
|
71
|
+
"@luvio/service-pubsub": "5.54.0",
|
|
72
|
+
"@luvio/service-store": "5.54.0",
|
|
73
|
+
"@luvio/utils": "5.54.0",
|
|
74
|
+
"@salesforce/lds-adapters-onestore-graphql": "^1.377.1",
|
|
75
|
+
"@salesforce/lds-adapters-uiapi-lex": "^1.377.1",
|
|
76
|
+
"@salesforce/lds-luvio-service": "^1.377.1",
|
|
77
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.377.1"
|
|
76
78
|
},
|
|
77
79
|
"luvioBundlesize": [
|
|
78
80
|
{
|