@lwrjs/everywhere 0.11.0-alpha.6 → 0.11.0-alpha.7
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/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/78b653169a5192c4659563d9bb43ccad/config.js +11 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/{0_11_0-alpha_6 → 0_11_0-alpha_7}/s/625ff96e920182ae7ef5b87f02964e6c/@lwrjs_app-service_amd-bootstrap_module_amd.js +4 -4
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwc/v/{3_1_3/s/5ecae4481a6009197f93d4b83392ccba → 3_2_0/s/ab8f5848cd7c307feeeb8a995ab42add}/lwc.js +84 -32
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/{0_11_0-alpha_6 → 0_11_0-alpha_7}/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js +3 -3
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/init/v/{0_11_0-alpha_6 → 0_11_0-alpha_7}/s/f30361ad8ff7af505bf4d465c8499181/lwr_init.js +21 -21
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/loader/v/{0_11_0-alpha_6/s/76470de750b1edc12579a58577b55fd5 → 0_11_0-alpha_7/s/db2848f0cffe03ff0c6a3124c73dc736}/lwr_loader.js +41 -16
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/{0_11_0-alpha_6/s/7a802ee7a2430244c1f66bce2c2eafef → 0_11_0-alpha_7/s/274c8343f810353bbad085a79709395f}/lwr_metrics.js +5 -1
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/{0_11_0-alpha_6 → 0_11_0-alpha_7}/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js +1 -1
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/vault/v/{0_11_0-alpha_6 → 0_11_0-alpha_7}/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/{0_11_0-alpha_6 → 0_11_0-alpha_7}/lwr-error-shim.js +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.bundle.js/v/{0_11_0-alpha_6 → 0_11_0-alpha_7}/lwr-loader-shim.bundle.js +69 -45
- package/build/assets/amd/lwr-everywhere-debug.js +71 -47
- package/build/assets/amd/lwr-everywhere-min.js +2 -2
- package/build/assets/amd/lwr-everywhere.js +71 -47
- package/build/assets/core/lwr-everywhere-debug.js +67 -43
- package/build/assets/core/lwr-everywhere-min.js +2 -2
- package/build/assets/core/lwr-everywhere.js +67 -43
- package/build/assets/esm/lwr-everywhere-debug.js +1 -1
- package/build/assets/esm/lwr-everywhere-min.js +1 -1
- package/build/assets/esm/lwr-everywhere.js +1 -1
- package/package.json +9 -7
- package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/d0473dcdb26d88eae1ad60738fd67aaa/config.js +0 -11
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* This script is generated */
|
|
2
|
+
/* Client Bootstrap configuration */
|
|
3
|
+
globalThis.LWR = globalThis.LWR || {};
|
|
4
|
+
Object.assign(globalThis.LWR, {"appId":"amd-bootstrap","bootstrapModule":"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_11_0-alpha_7","autoBoot":true,"imports":{"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_11_0-alpha_7/s/625ff96e920182ae7ef5b87f02964e6c/@lwrjs_app-service_amd-bootstrap_module_amd.js":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_11_0-alpha_7"],"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_11_0-alpha_7/s/f30361ad8ff7af505bf4d465c8499181/lwr_init.js":["lwr/init/v/0_11_0-alpha_7"],"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_11_0-alpha_7/s/274c8343f810353bbad085a79709395f/lwr_metrics.js":["lwr/metrics/v/0_11_0-alpha_7"],"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_11_0-alpha_7/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js":["lwr/profiler/v/0_11_0-alpha_7"],"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F3_2_0/s/ab8f5848cd7c307feeeb8a995ab42add/lwc.js":["lwc/v/3_2_0"],"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_11_0-alpha_7/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js":["lwr/everywhereAmd/v/0_11_0-alpha_7"],"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_11_0-alpha_7/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js":["lwr/vault/v/0_11_0-alpha_7"]},"index":{"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_11_0-alpha_7":"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_11_0-alpha_7/s/625ff96e920182ae7ef5b87f02964e6c/@lwrjs_app-service_amd-bootstrap_module_amd.js","lwr/init/v/0_11_0-alpha_7":"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_11_0-alpha_7/s/f30361ad8ff7af505bf4d465c8499181/lwr_init.js","lwr/metrics/v/0_11_0-alpha_7":"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_11_0-alpha_7/s/274c8343f810353bbad085a79709395f/lwr_metrics.js","lwr/profiler/v/0_11_0-alpha_7":"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_11_0-alpha_7/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js","lwc/v/3_2_0":"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F3_2_0/s/ab8f5848cd7c307feeeb8a995ab42add/lwc.js","lwr/everywhereAmd/v/0_11_0-alpha_7":"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_11_0-alpha_7/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js","lwr/vault/v/0_11_0-alpha_7":"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_11_0-alpha_7/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js"},"rootComponents":["lwr/everywhereAmd/v/0_11_0-alpha_7","lwr/everywhereAmd/v/0_11_0-alpha_7"],"serverData":{},"requiredModules":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_11_0-alpha_7"],"preloadModules":["lwr/init/v/0_11_0-alpha_7","lwr/metrics/v/0_11_0-alpha_7","lwc/v/3_2_0","lwr/everywhereAmd/v/0_11_0-alpha_7","lwr/everywhereAmd/v/0_11_0-alpha_7"],"endpoints":{"uris":{"mapping":"/1/mapping/amd/1/l/en-US/mp/"}}});
|
|
5
|
+
globalThis.process = { env: { NODE_ENV: "compat", SSR: false } };
|
|
6
|
+
globalThis.lwcRuntimeFlags = { ENABLE_MIXED_SHADOW_MODE: false };
|
|
7
|
+
// Appended by Static Site Generator
|
|
8
|
+
if (!globalThis.LWR.imports) { globalThis.LWR.imports = {}; }
|
|
9
|
+
Object.assign(globalThis.LWR.imports, {"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_11_0-alpha_7/s/db2848f0cffe03ff0c6a3124c73dc736/lwr_loader.js":["lwr/loader/v/0_11_0-alpha_7"]})
|
|
10
|
+
if (!globalThis.LWR.index) { globalThis.LWR.index = {}; }
|
|
11
|
+
Object.assign(globalThis.LWR.index, {"lwr/loader/v/0_11_0-alpha_7":"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_11_0-alpha_7/s/db2848f0cffe03ff0c6a3124c73dc736/lwr_loader.js"})
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_11_0-
|
|
1
|
+
LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_11_0-alpha_7', ['lwr/loader/v/0_11_0-alpha_7', 'lwr/init/v/0_11_0-alpha_7'], (function (_0_11_0Alpha_7$1, _0_11_0Alpha_7) { 'use strict';
|
|
2
2
|
|
|
3
3
|
const clientBootstrapConfig = globalThis.LWR;
|
|
4
4
|
|
|
5
5
|
// initialize additional non-configured root components
|
|
6
6
|
const { rootComponents, serverData } = clientBootstrapConfig;
|
|
7
7
|
Promise.all(rootComponents.map(async (rootSpecifier) => {
|
|
8
|
-
const element =
|
|
9
|
-
return
|
|
10
|
-
|
|
8
|
+
const element = _0_11_0Alpha_7.toKebabCase(rootSpecifier);
|
|
9
|
+
return _0_11_0Alpha_7$1.load(rootSpecifier, '@lwrjs/app-service/amd-bootstrap/module/amd/v/0_11_0-alpha_7').then(({default: Ctor}) => {
|
|
10
|
+
_0_11_0Alpha_7.init([[element, Ctor]], serverData);
|
|
11
11
|
});
|
|
12
12
|
}));
|
|
13
13
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwc/v/
|
|
1
|
+
LWR.define('lwc/v/3_2_0', ['exports'], (function (exports) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Copyright (C) 2023 salesforce.com, inc.
|
|
@@ -291,9 +291,9 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
291
291
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
292
292
|
*/
|
|
293
293
|
// Increment whenever the LWC template compiler changes
|
|
294
|
-
const LWC_VERSION = "3.
|
|
294
|
+
const LWC_VERSION = "3.2.0";
|
|
295
295
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
296
|
-
/** version: 3.
|
|
296
|
+
/** version: 3.2.0 */
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
299
|
* Copyright (C) 2023 salesforce.com, inc.
|
|
@@ -372,7 +372,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
372
372
|
setFeatureFlag(name, value);
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
/** version: 3.
|
|
375
|
+
/** version: 3.2.0 */
|
|
376
376
|
|
|
377
377
|
/**
|
|
378
378
|
* Copyright (C) 2023 salesforce.com, inc.
|
|
@@ -435,7 +435,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
/** version: 3.
|
|
438
|
+
/** version: 3.2.0 */
|
|
439
439
|
|
|
440
440
|
/*
|
|
441
441
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1527,7 +1527,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
1527
1527
|
valueMutated(originalTarget, key);
|
|
1528
1528
|
return true;
|
|
1529
1529
|
}
|
|
1530
|
-
/*LWC compiler v3.
|
|
1530
|
+
/*LWC compiler v3.2.0*/
|
|
1531
1531
|
}
|
|
1532
1532
|
const getterMap = new WeakMap();
|
|
1533
1533
|
const setterMap = new WeakMap();
|
|
@@ -1620,7 +1620,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
1620
1620
|
/* istanbul ignore next */
|
|
1621
1621
|
return false;
|
|
1622
1622
|
}
|
|
1623
|
-
/*LWC compiler v3.
|
|
1623
|
+
/*LWC compiler v3.2.0*/
|
|
1624
1624
|
}
|
|
1625
1625
|
function extract(objectOrArray) {
|
|
1626
1626
|
if (isArray(objectOrArray)) {
|
|
@@ -1987,6 +1987,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
1987
1987
|
logError(`this.${methodOrPropName} should not be called during the construction of the custom element for ${getComponentTag(vm)} because the element is not yet in the DOM or has no children yet.`);
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
1990
|
+
const supportsElementInternals = typeof ElementInternals !== 'undefined';
|
|
1990
1991
|
// @ts-ignore
|
|
1991
1992
|
LightningElement.prototype = {
|
|
1992
1993
|
constructor: LightningElement,
|
|
@@ -2136,6 +2137,23 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
2136
2137
|
}
|
|
2137
2138
|
return getBoundingClientRect(elm);
|
|
2138
2139
|
},
|
|
2140
|
+
attachInternals() {
|
|
2141
|
+
const vm = getAssociatedVM(this);
|
|
2142
|
+
const {
|
|
2143
|
+
elm,
|
|
2144
|
+
renderer: {
|
|
2145
|
+
attachInternals
|
|
2146
|
+
}
|
|
2147
|
+
} = vm;
|
|
2148
|
+
if (isFalse(supportsElementInternals)) {
|
|
2149
|
+
// Browsers that don't support attachInternals will need to be polyfilled before LWC is loaded.
|
|
2150
|
+
throw new Error('attachInternals API is not supported in this browser environment.');
|
|
2151
|
+
}
|
|
2152
|
+
if (vm.renderMode === 0 /* RenderMode.Light */ || vm.shadowMode === 1 /* ShadowMode.Synthetic */) {
|
|
2153
|
+
throw new Error('attachInternals API is not supported in light DOM or synthetic shadow.');
|
|
2154
|
+
}
|
|
2155
|
+
return attachInternals(elm);
|
|
2156
|
+
},
|
|
2139
2157
|
get isConnected() {
|
|
2140
2158
|
const vm = getAssociatedVM(this);
|
|
2141
2159
|
const {
|
|
@@ -3207,7 +3225,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
3207
3225
|
}
|
|
3208
3226
|
function HTMLBridgeElementFactory(SuperClass, props, methods) {
|
|
3209
3227
|
const HTMLBridgeElement = class extends SuperClass {
|
|
3210
|
-
/*LWC compiler v3.
|
|
3228
|
+
/*LWC compiler v3.2.0*/
|
|
3211
3229
|
};
|
|
3212
3230
|
// generating the hash table for attributes to avoid duplicate fields and facilitate validation
|
|
3213
3231
|
// and false positives in case of inheritance.
|
|
@@ -3246,6 +3264,14 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
3246
3264
|
descriptors.attributeChangedCallback = {
|
|
3247
3265
|
value: createAttributeChangedCallback(attributeToPropMap, superAttributeChangedCallback)
|
|
3248
3266
|
};
|
|
3267
|
+
// To avoid leaking private component details, accessing internals from outside a component is not allowed.
|
|
3268
|
+
descriptors.attachInternals = {
|
|
3269
|
+
get() {
|
|
3270
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3271
|
+
logError('attachInternals cannot be accessed outside of a component. Use this.attachInternals instead.');
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
};
|
|
3249
3275
|
// Specify attributes for which we want to reflect changes back to their corresponding
|
|
3250
3276
|
// properties via attributeChangedCallback.
|
|
3251
3277
|
defineProperty(HTMLBridgeElement, 'observedAttributes', {
|
|
@@ -6249,8 +6275,8 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
6249
6275
|
}
|
|
6250
6276
|
resetComponentStateWhenRemoved(vm);
|
|
6251
6277
|
}
|
|
6252
|
-
function getNearestShadowAncestor(
|
|
6253
|
-
let ancestor =
|
|
6278
|
+
function getNearestShadowAncestor(owner) {
|
|
6279
|
+
let ancestor = owner;
|
|
6254
6280
|
while (!isNull(ancestor) && ancestor.renderMode === 0 /* RenderMode.Light */) {
|
|
6255
6281
|
ancestor = ancestor.owner;
|
|
6256
6282
|
}
|
|
@@ -6313,15 +6339,12 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
6313
6339
|
vm.debugInfo = create(null);
|
|
6314
6340
|
}
|
|
6315
6341
|
vm.stylesheets = computeStylesheets(vm, def.ctor);
|
|
6316
|
-
vm.shadowMode = computeShadowMode(vm, renderer);
|
|
6342
|
+
vm.shadowMode = computeShadowMode(def, vm.owner, renderer);
|
|
6317
6343
|
vm.tro = getTemplateReactiveObserver(vm);
|
|
6318
6344
|
if (process.env.NODE_ENV !== 'production') {
|
|
6319
6345
|
vm.toString = () => {
|
|
6320
6346
|
return `[object:vm ${def.name} (${vm.idx})]`;
|
|
6321
6347
|
};
|
|
6322
|
-
if (lwcRuntimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
|
|
6323
|
-
vm.shadowMode = 0 /* ShadowMode.Native */;
|
|
6324
|
-
}
|
|
6325
6348
|
}
|
|
6326
6349
|
// Create component instance associated to the vm and the element.
|
|
6327
6350
|
invokeComponentConstructor(vm, def.ctor);
|
|
@@ -6384,10 +6407,26 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
6384
6407
|
});
|
|
6385
6408
|
}
|
|
6386
6409
|
}
|
|
6387
|
-
|
|
6410
|
+
// Compute the shadowMode/renderMode without creating a VM. This is used in some scenarios like hydration.
|
|
6411
|
+
function computeShadowAndRenderMode(Ctor, renderer) {
|
|
6412
|
+
const def = getComponentInternalDef(Ctor);
|
|
6388
6413
|
const {
|
|
6389
|
-
|
|
6390
|
-
} =
|
|
6414
|
+
renderMode
|
|
6415
|
+
} = def;
|
|
6416
|
+
// Assume null `owner` - this is what happens in hydration cases anyway
|
|
6417
|
+
const shadowMode = computeShadowMode(def, /* owner */null, renderer);
|
|
6418
|
+
return {
|
|
6419
|
+
renderMode,
|
|
6420
|
+
shadowMode
|
|
6421
|
+
};
|
|
6422
|
+
}
|
|
6423
|
+
function computeShadowMode(def, owner, renderer) {
|
|
6424
|
+
// Force the shadow mode to always be native. Used for running tests with synthetic shadow patches
|
|
6425
|
+
// on, but components running in actual native shadow mode
|
|
6426
|
+
if (process.env.NODE_ENV !== 'production' && lwcRuntimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
|
|
6427
|
+
return 0 /* ShadowMode.Native */;
|
|
6428
|
+
}
|
|
6429
|
+
|
|
6391
6430
|
const {
|
|
6392
6431
|
isSyntheticShadowDefined
|
|
6393
6432
|
} = renderer;
|
|
@@ -6401,7 +6440,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
6401
6440
|
if (def.shadowSupportMode === "any" /* ShadowSupportMode.Any */) {
|
|
6402
6441
|
shadowMode = 0 /* ShadowMode.Native */;
|
|
6403
6442
|
} else {
|
|
6404
|
-
const shadowAncestor = getNearestShadowAncestor(
|
|
6443
|
+
const shadowAncestor = getNearestShadowAncestor(owner);
|
|
6405
6444
|
if (!isNull(shadowAncestor) && shadowAncestor.shadowMode === 0 /* ShadowMode.Native */) {
|
|
6406
6445
|
// Transitive support for native Shadow DOM. A component in native mode
|
|
6407
6446
|
// transitively opts all of its descendants into native.
|
|
@@ -7802,7 +7841,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
7802
7841
|
}
|
|
7803
7842
|
return getReadOnlyProxy(obj);
|
|
7804
7843
|
}
|
|
7805
|
-
/** version: 3.
|
|
7844
|
+
/** version: 3.2.0 */
|
|
7806
7845
|
|
|
7807
7846
|
/*
|
|
7808
7847
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -7893,12 +7932,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
7893
7932
|
// This check for constructable style sheets is similar to Fast's:
|
|
7894
7933
|
// https://github.com/microsoft/fast/blob/d49d1ec/packages/web-components/fast-element/src/dom.ts#L51-L53
|
|
7895
7934
|
// See also: https://github.com/whatwg/webidl/issues/1027#issuecomment-934510070
|
|
7896
|
-
const supportsConstructableStylesheets = isFunction$1(CSSStyleSheet.prototype.replaceSync) && isArray$1(document.adoptedStyleSheets)
|
|
7897
|
-
// The original adoptedStylesheet proposal used a frozen array. A follow-up proposal made the array mutable.
|
|
7898
|
-
// Chromium 99+ and Firefox 101+ support mutable arrays. We check if the array is mutable, to ensure backward compat.
|
|
7899
|
-
// (If the length is writable, then the array is mutable.) See: https://chromestatus.com/feature/5638996492288000
|
|
7900
|
-
// TODO [#2828]: Re-evaluate this in the future once we drop support for older browser versions.
|
|
7901
|
-
isTrue(getOwnPropertyDescriptor$1(document.adoptedStyleSheets, 'length').writable);
|
|
7935
|
+
const supportsConstructableStylesheets = isFunction$1(CSSStyleSheet.prototype.replaceSync) && isArray$1(document.adoptedStyleSheets);
|
|
7902
7936
|
const stylesheetCache = new Map();
|
|
7903
7937
|
//
|
|
7904
7938
|
// Test utilities
|
|
@@ -8048,7 +8082,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
8048
8082
|
// Do we want to support this? Throw an error? Currently for backwards compat it's a no-op.
|
|
8049
8083
|
}
|
|
8050
8084
|
}
|
|
8051
|
-
/*LWC compiler v3.
|
|
8085
|
+
/*LWC compiler v3.2.0*/
|
|
8052
8086
|
}
|
|
8053
8087
|
// Do not unnecessarily add a connectedCallback/disconnectedCallback, as it introduces perf overhead
|
|
8054
8088
|
// See: https://github.com/salesforce/lwc/pull/3162#issuecomment-1311851174
|
|
@@ -8145,7 +8179,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
8145
8179
|
function isNull(obj) {
|
|
8146
8180
|
return obj === null;
|
|
8147
8181
|
}
|
|
8148
|
-
/** version: 3.
|
|
8182
|
+
/** version: 3.2.0 */
|
|
8149
8183
|
|
|
8150
8184
|
/*
|
|
8151
8185
|
* Copyright (c) 2023, salesforce.com, inc.
|
|
@@ -8165,7 +8199,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
8165
8199
|
this.setNewContext = setNewContext;
|
|
8166
8200
|
this.setDisconnectedCallback = setDisconnectedCallback;
|
|
8167
8201
|
}
|
|
8168
|
-
/*LWC compiler v3.
|
|
8202
|
+
/*LWC compiler v3.2.0*/
|
|
8169
8203
|
}
|
|
8170
8204
|
function registerContextConsumer(elm, adapterContextToken, subscriptionPayload) {
|
|
8171
8205
|
dispatchEvent(elm, new WireContextSubscriptionEvent(adapterContextToken, subscriptionPayload));
|
|
@@ -8311,8 +8345,16 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
8311
8345
|
function getTagName(elm) {
|
|
8312
8346
|
return elm.tagName;
|
|
8313
8347
|
}
|
|
8348
|
+
// Use the attachInternals method from HTMLElement.prototype because access to it is removed
|
|
8349
|
+
// in HTMLBridgeElement, ie: elm.attachInternals is undefined.
|
|
8350
|
+
// Additionally, cache the attachInternals method to protect against 3rd party monkey-patching.
|
|
8351
|
+
const attachInternalsFunc = HTMLElement.prototype.attachInternals;
|
|
8352
|
+
function attachInternals(elm) {
|
|
8353
|
+
return attachInternalsFunc.call(elm);
|
|
8354
|
+
}
|
|
8314
8355
|
exports.addEventListener = addEventListener;
|
|
8315
8356
|
exports.assertInstanceOfHTMLElement = assertInstanceOfHTMLElement;
|
|
8357
|
+
exports.attachInternals = attachInternals;
|
|
8316
8358
|
exports.attachShadow = attachShadow;
|
|
8317
8359
|
exports.cloneNode = cloneNode;
|
|
8318
8360
|
exports.createComment = createComment;
|
|
@@ -8493,10 +8535,20 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
8493
8535
|
}
|
|
8494
8536
|
clearNode(this.shadowRoot);
|
|
8495
8537
|
}
|
|
8496
|
-
|
|
8538
|
+
// Compute renderMode/shadowMode in advance. This must be done before `createVM` because `createVM` may
|
|
8539
|
+
// mutate the element.
|
|
8540
|
+
const {
|
|
8541
|
+
shadowMode,
|
|
8542
|
+
renderMode
|
|
8543
|
+
} = computeShadowAndRenderMode(Ctor, renderer);
|
|
8544
|
+
// Native shadow components are allowed to have pre-existing `childNodes` before upgrade. This supports
|
|
8545
|
+
// use cases where a custom element has declaratively-defined slotted content, e.g.:
|
|
8546
|
+
// https://github.com/salesforce/lwc/issues/3639
|
|
8547
|
+
const isNativeShadow = renderMode === 1 /* RenderMode.Shadow */ && shadowMode === 0 /* ShadowMode.Native */;
|
|
8548
|
+
if (!isNativeShadow && this.childNodes.length > 0) {
|
|
8497
8549
|
if (process.env.NODE_ENV !== 'production') {
|
|
8498
8550
|
// eslint-disable-next-line no-console
|
|
8499
|
-
console.warn(`
|
|
8551
|
+
console.warn(`Light DOM and synthetic shadow custom elements cannot have child nodes. ` + `Ensure the element is empty, including whitespace.`);
|
|
8500
8552
|
}
|
|
8501
8553
|
clearNode(this);
|
|
8502
8554
|
}
|
|
@@ -8515,7 +8567,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
8515
8567
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
8516
8568
|
attributeChangedCallback.call(this, name, oldValue, newValue);
|
|
8517
8569
|
}
|
|
8518
|
-
/*LWC compiler v3.
|
|
8570
|
+
/*LWC compiler v3.2.0*/
|
|
8519
8571
|
}, _a.observedAttributes = observedAttributes, _a;
|
|
8520
8572
|
}
|
|
8521
8573
|
|
|
@@ -8729,7 +8781,7 @@ LWR.define('lwc/v/3_1_3', ['exports'], (function (exports) { 'use strict';
|
|
|
8729
8781
|
});
|
|
8730
8782
|
});
|
|
8731
8783
|
}
|
|
8732
|
-
/** version: 3.
|
|
8784
|
+
/** version: 3.2.0 */
|
|
8733
8785
|
|
|
8734
8786
|
exports.LightningElement = LightningElement;
|
|
8735
8787
|
exports.__unstable__ProfilerControl = profilerControl;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
LWR.define('lwr/everywhereAmd/v/0_11_0-
|
|
1
|
+
LWR.define('lwr/everywhereAmd/v/0_11_0-alpha_7', ['exports', 'lwr/vault/v/0_11_0-alpha_7'], (function (exports, _0_11_0Alpha_7) { 'use strict';
|
|
2
2
|
|
|
3
3
|
// IMPORTANT: Do not add any static imports to this file that are not bundled with the amd-client
|
|
4
4
|
|
|
5
5
|
// Do an OAuthed fetch
|
|
6
6
|
async function authFetch(url, accept = 'javascript') {
|
|
7
|
-
const authInfo =
|
|
7
|
+
const authInfo = _0_11_0Alpha_7.getAuthInfo();
|
|
8
8
|
if (authInfo) {
|
|
9
9
|
return fetch(url, {
|
|
10
10
|
headers: {
|
|
@@ -54,7 +54,7 @@ LWR.define('lwr/everywhereAmd/v/0_11_0-alpha_6', ['exports', 'lwr/vault/v/0_11_0
|
|
|
54
54
|
function authenticate(authInfo) {
|
|
55
55
|
// Put OAuth info into the vault
|
|
56
56
|
if (authInfo) {
|
|
57
|
-
|
|
57
|
+
_0_11_0Alpha_7.setAuthInfo(authInfo);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
LWR.define('lwr/init/v/0_11_0-
|
|
1
|
+
LWR.define('lwr/init/v/0_11_0-alpha_7', ['exports', 'lwr/metrics/v/0_11_0-alpha_7', 'lwr/profiler/v/0_11_0-alpha_7', 'lwc/v/3_2_0'], (function (exports, _0_11_0Alpha_7$1, _0_11_0Alpha_7, _3_2_0) { 'use strict';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4
4
|
|
|
5
5
|
// <hydrateComponentProxy> - This code is removed in core
|
|
6
6
|
|
|
7
7
|
function hydrateComponentProxy(customElement, Ctor, props) {
|
|
8
|
-
|
|
8
|
+
_3_2_0.hydrateComponent(customElement, Ctor, props);
|
|
9
9
|
}
|
|
10
10
|
// </hydrateComponentProxy>
|
|
11
11
|
|
|
12
12
|
function initializeWebComponent(elementName, Ctor) {
|
|
13
|
-
return
|
|
13
|
+
return _3_2_0.createElement(elementName, {
|
|
14
14
|
is: Ctor
|
|
15
15
|
});
|
|
16
16
|
}
|
|
@@ -47,13 +47,13 @@ LWR.define('lwr/init/v/0_11_0-alpha_6', ['exports', 'lwr/metrics/v/0_11_0-alpha_
|
|
|
47
47
|
*/
|
|
48
48
|
function init(rootModules, serverData = {}) {
|
|
49
49
|
if (typeof customElements === 'undefined' || typeof document === 'undefined') {
|
|
50
|
-
|
|
51
|
-
id:
|
|
50
|
+
_0_11_0Alpha_7.logOperationStart({
|
|
51
|
+
id: _0_11_0Alpha_7$1.BOOTSTRAP_END
|
|
52
52
|
});
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
id:
|
|
55
|
+
_0_11_0Alpha_7.logOperationStart({
|
|
56
|
+
id: _0_11_0Alpha_7$1.INIT
|
|
57
57
|
});
|
|
58
58
|
let index = 0;
|
|
59
59
|
for (const [specifier, ctor] of rootModules) {
|
|
@@ -61,8 +61,8 @@ LWR.define('lwr/init/v/0_11_0-alpha_6', ['exports', 'lwr/metrics/v/0_11_0-alpha_
|
|
|
61
61
|
|
|
62
62
|
// initialize and inject the root module into the LWR Root or DOM if it is missing
|
|
63
63
|
if (!document.body.querySelector(elementName)) {
|
|
64
|
-
|
|
65
|
-
id:
|
|
64
|
+
_0_11_0Alpha_7.logOperationStart({
|
|
65
|
+
id: _0_11_0Alpha_7$1.INIT_MODULE,
|
|
66
66
|
specifier,
|
|
67
67
|
specifierIndex: ++index
|
|
68
68
|
});
|
|
@@ -71,8 +71,8 @@ LWR.define('lwr/init/v/0_11_0-alpha_6', ['exports', 'lwr/metrics/v/0_11_0-alpha_
|
|
|
71
71
|
const component = initializeWebComponent(elementName, ctor);
|
|
72
72
|
const container = document.querySelector('[lwr-root]');
|
|
73
73
|
container ? container.appendChild(component) : document.body.appendChild(component);
|
|
74
|
-
|
|
75
|
-
id:
|
|
74
|
+
_0_11_0Alpha_7.logOperationEnd({
|
|
75
|
+
id: _0_11_0Alpha_7$1.INIT_MODULE,
|
|
76
76
|
specifier,
|
|
77
77
|
specifierIndex: index,
|
|
78
78
|
metadata: {
|
|
@@ -85,8 +85,8 @@ LWR.define('lwr/init/v/0_11_0-alpha_6', ['exports', 'lwr/metrics/v/0_11_0-alpha_
|
|
|
85
85
|
// the page has been rendered or SSR'd, and each component needs to initialized(or hydrated)
|
|
86
86
|
const elements = document.querySelectorAll(elementName);
|
|
87
87
|
for (const element of elements) {
|
|
88
|
-
|
|
89
|
-
id:
|
|
88
|
+
_0_11_0Alpha_7.logOperationStart({
|
|
89
|
+
id: _0_11_0Alpha_7$1.INIT_MODULE,
|
|
90
90
|
specifier,
|
|
91
91
|
specifierIndex: ++index
|
|
92
92
|
});
|
|
@@ -97,8 +97,8 @@ LWR.define('lwr/init/v/0_11_0-alpha_6', ['exports', 'lwr/metrics/v/0_11_0-alpha_
|
|
|
97
97
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
98
98
|
// @ts-ignore
|
|
99
99
|
hydrateComponentProxy(element, ctor, serverData[propsId] || {});
|
|
100
|
-
|
|
101
|
-
id:
|
|
100
|
+
_0_11_0Alpha_7.logOperationEnd({
|
|
101
|
+
id: _0_11_0Alpha_7$1.INIT_MODULE,
|
|
102
102
|
specifier,
|
|
103
103
|
specifierIndex: index,
|
|
104
104
|
metadata: {
|
|
@@ -136,8 +136,8 @@ LWR.define('lwr/init/v/0_11_0-alpha_6', ['exports', 'lwr/metrics/v/0_11_0-alpha_
|
|
|
136
136
|
if (parent) {
|
|
137
137
|
parent.replaceChild(component, element);
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
id:
|
|
139
|
+
_0_11_0Alpha_7.logOperationEnd({
|
|
140
|
+
id: _0_11_0Alpha_7$1.INIT_MODULE,
|
|
141
141
|
specifier,
|
|
142
142
|
specifierIndex: index,
|
|
143
143
|
metadata: {
|
|
@@ -146,11 +146,11 @@ LWR.define('lwr/init/v/0_11_0-alpha_6', ['exports', 'lwr/metrics/v/0_11_0-alpha_
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
id:
|
|
149
|
+
_0_11_0Alpha_7.logOperationEnd({
|
|
150
|
+
id: _0_11_0Alpha_7$1.INIT
|
|
151
151
|
});
|
|
152
|
-
|
|
153
|
-
id:
|
|
152
|
+
_0_11_0Alpha_7.logOperationStart({
|
|
153
|
+
id: _0_11_0Alpha_7$1.BOOTSTRAP_END
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwr/loader/v/0_11_0-
|
|
1
|
+
LWR.define('lwr/loader/v/0_11_0-alpha_7', ['exports'], (function (exports) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Copyright (c) 2021, salesforce.com, inc.
|
|
@@ -6,7 +6,7 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
6
6
|
* SPDX-License-Identifier: MIT
|
|
7
7
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
8
8
|
*/
|
|
9
|
-
/* LWR Module Loader v0.11.0-alpha.
|
|
9
|
+
/* LWR Module Loader v0.11.0-alpha.7 */
|
|
10
10
|
const templateRegex = /\{([0-9]+)\}/g;
|
|
11
11
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
12
|
function templateString(template, args) {
|
|
@@ -25,7 +25,7 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
25
25
|
super();
|
|
26
26
|
this.message = generateErrorMessage(errorInfo, errorArgs);
|
|
27
27
|
}
|
|
28
|
-
/*LWC compiler v3.
|
|
28
|
+
/*LWC compiler v3.2.0*/
|
|
29
29
|
}
|
|
30
30
|
function invariant(condition, errorInfo) {
|
|
31
31
|
if (!condition) {
|
|
@@ -305,6 +305,7 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
305
305
|
// Loader: modules
|
|
306
306
|
const LOADER_PREFIX = 'lwr.loader.';
|
|
307
307
|
const MODULE_DEFINE = `${LOADER_PREFIX}module.define`;
|
|
308
|
+
const MODULE_DYNAMIC_LOAD = `${LOADER_PREFIX}moduleRegistry.dynamicLoad`;
|
|
308
309
|
const MODULE_FETCH = `${LOADER_PREFIX}module.fetch`;
|
|
309
310
|
const MODULE_ERROR = `${LOADER_PREFIX}module.error`;
|
|
310
311
|
|
|
@@ -637,7 +638,7 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
637
638
|
}
|
|
638
639
|
async function evaluateLoadHookResponse(response, id) {
|
|
639
640
|
return Promise.resolve().then(async () => {
|
|
640
|
-
if (!response.status) {
|
|
641
|
+
if (!response || !response.status) {
|
|
641
642
|
throw new LoaderError(INVALID_LOADER_SERVICE_RESPONSE);
|
|
642
643
|
}
|
|
643
644
|
if (response.status !== 200) {
|
|
@@ -661,6 +662,10 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
661
662
|
// TODO eval source maps for debugging
|
|
662
663
|
eval(trusted.createScript(code));
|
|
663
664
|
} catch (e) {
|
|
665
|
+
if (process.env.NODE_ENV !== 'production' && hasConsole) {
|
|
666
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
667
|
+
console.error(e);
|
|
668
|
+
}
|
|
664
669
|
throw new LoaderError(FAIL_LOAD, [id]);
|
|
665
670
|
}
|
|
666
671
|
if (lastWindowError) {
|
|
@@ -701,8 +706,16 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
701
706
|
this.resolver = new ImportMetadataResolver(config, this.importMetadataInvalidationCallback.bind(this));
|
|
702
707
|
}
|
|
703
708
|
async load(id, importer) {
|
|
709
|
+
const metadata = importer ? {
|
|
710
|
+
importer
|
|
711
|
+
} : {};
|
|
712
|
+
this.profiler.logOperationStart({
|
|
713
|
+
id: MODULE_DYNAMIC_LOAD,
|
|
714
|
+
specifier: id,
|
|
715
|
+
metadata
|
|
716
|
+
});
|
|
704
717
|
const resolvedId = await this.resolve(id, importer);
|
|
705
|
-
const moduleRecord = this.getModuleRecord(resolvedId, id);
|
|
718
|
+
const moduleRecord = await this.getModuleRecord(resolvedId, id);
|
|
706
719
|
if (moduleRecord.evaluated) {
|
|
707
720
|
return moduleRecord.module;
|
|
708
721
|
} else {
|
|
@@ -770,7 +783,10 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
770
783
|
const resolvedUrl = this.resolver.resolveLocal(resolvedOrPlain);
|
|
771
784
|
if (resolvedUrl) {
|
|
772
785
|
// return the plain id if it is already defined && the resolvedUrl is NOT already in the module registry
|
|
773
|
-
if (this.namedDefineRegistry.has(resolvedOrPlain) &&
|
|
786
|
+
if (this.namedDefineRegistry.has(resolvedOrPlain) &&
|
|
787
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
788
|
+
// @ts-ignore has check right above
|
|
789
|
+
this.namedDefineRegistry.get(resolvedOrPlain).defined) {
|
|
774
790
|
const record = this.moduleRegistry.get(resolvedUrl);
|
|
775
791
|
if (!record || !this.aliases.has(resolvedOrPlain)) {
|
|
776
792
|
return resolvedOrPlain;
|
|
@@ -906,7 +922,7 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
906
922
|
}
|
|
907
923
|
return moduleRecord;
|
|
908
924
|
}
|
|
909
|
-
getModuleRecord(resolvedId, id) {
|
|
925
|
+
async getModuleRecord(resolvedId, id) {
|
|
910
926
|
// Look for an existing record
|
|
911
927
|
const existingRecord = this.getExistingModuleRecord(resolvedId, id);
|
|
912
928
|
if (existingRecord) {
|
|
@@ -917,7 +933,7 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
917
933
|
// Create a new Module Record
|
|
918
934
|
const instantiation = this.getModuleDef(resolvedId, id);
|
|
919
935
|
const dependencyRecords = instantiation.then(moduleDef => {
|
|
920
|
-
const dependencies = moduleDef.dependencies;
|
|
936
|
+
const dependencies = moduleDef.dependencies || [];
|
|
921
937
|
// get dep and filter out exports
|
|
922
938
|
const filtered = dependencies.map(dep => {
|
|
923
939
|
if (dep === 'exports') {
|
|
@@ -938,7 +954,9 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
938
954
|
};
|
|
939
955
|
this.moduleRegistry.set(resolvedId, newModuleRecord);
|
|
940
956
|
this.storeModuleAlias(id, resolvedId);
|
|
941
|
-
|
|
957
|
+
|
|
958
|
+
// Wait for the dependencies to resolve the return the moduleRecord
|
|
959
|
+
return dependencyRecords.then(() => newModuleRecord);
|
|
942
960
|
}
|
|
943
961
|
storeModuleAlias(aliasId, resolvedId) {
|
|
944
962
|
if (aliasId !== resolvedId) {
|
|
@@ -949,7 +967,10 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
949
967
|
const currentResolvedId = this.aliases.get(aliasId);
|
|
950
968
|
if (currentResolvedId !== resolvedId) {
|
|
951
969
|
// eslint-disable-next-line lwr/no-unguarded-apis, no-undef
|
|
952
|
-
|
|
970
|
+
if (process.env.NODE_ENV !== 'production' && hasConsole) {
|
|
971
|
+
// eslint-disable-next-line lwr/no-unguarded-apis, no-undef
|
|
972
|
+
console.warn(`Alias update attempt: ${aliasId}=>${currentResolvedId}, ${resolvedId}`);
|
|
973
|
+
}
|
|
953
974
|
}
|
|
954
975
|
}
|
|
955
976
|
}
|
|
@@ -992,7 +1013,7 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
992
1013
|
} = await moduleRecord.instantiation;
|
|
993
1014
|
// The exports object automatically gets filled in by the exporter evaluation
|
|
994
1015
|
const exports = {};
|
|
995
|
-
const depsMapped = await Promise.all(dependencies.map(async dep => {
|
|
1016
|
+
const depsMapped = dependencies ? await Promise.all(dependencies.map(async dep => {
|
|
996
1017
|
if (dep === 'exports') {
|
|
997
1018
|
return exports;
|
|
998
1019
|
}
|
|
@@ -1016,7 +1037,7 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
1016
1037
|
return module.__defaultInterop ? module.default : module;
|
|
1017
1038
|
}
|
|
1018
1039
|
throw new LoaderError(FAILED_DEP, [resolvedDepId]);
|
|
1019
|
-
}));
|
|
1040
|
+
})) : [];
|
|
1020
1041
|
|
|
1021
1042
|
// W-10029836 - In the case where we could be instantiating multiple graphs at the same time lets make sure the module have not already been evaluated
|
|
1022
1043
|
if (moduleRecord.evaluated) {
|
|
@@ -1172,10 +1193,14 @@ LWR.define('lwr/loader/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'us
|
|
|
1172
1193
|
});
|
|
1173
1194
|
return moduleDef;
|
|
1174
1195
|
}).catch(e => {
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1196
|
+
// Create module error marks for all errors caused by the loader
|
|
1197
|
+
// Note: these marks do not include errors caused by invalid server responses or loader hooks
|
|
1198
|
+
if (!(e instanceof LoaderError)) {
|
|
1199
|
+
this.profiler.logOperationStart({
|
|
1200
|
+
id: MODULE_ERROR,
|
|
1201
|
+
specifier
|
|
1202
|
+
});
|
|
1203
|
+
}
|
|
1179
1204
|
throw e;
|
|
1180
1205
|
});
|
|
1181
1206
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwr/metrics/v/0_11_0-
|
|
1
|
+
LWR.define('lwr/metrics/v/0_11_0-alpha_7', ['exports'], (function (exports) { 'use strict';
|
|
2
2
|
|
|
3
3
|
// Bootstrap / shim
|
|
4
4
|
const BOOTSTRAP_PREFIX = 'lwr.bootstrap.';
|
|
@@ -18,6 +18,8 @@ LWR.define('lwr/metrics/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'u
|
|
|
18
18
|
const LOADER_PREFIX = 'lwr.loader.';
|
|
19
19
|
const MODULE_DEFINE = `${LOADER_PREFIX}module.define`;
|
|
20
20
|
const MODULE_DEFINE_COUNT = `${MODULE_DEFINE}.count`;
|
|
21
|
+
const MODULE_DYNAMIC_LOAD = `${LOADER_PREFIX}moduleRegistry.dynamicLoad`;
|
|
22
|
+
const MODULE_DYNAMIC_LOAD_COUNT = `${MODULE_DYNAMIC_LOAD}.count`;
|
|
21
23
|
const MODULE_FETCH = `${LOADER_PREFIX}module.fetch`;
|
|
22
24
|
const MODULE_FETCH_COUNT = `${MODULE_FETCH}.count`;
|
|
23
25
|
const MODULE_FETCH_DURATION = `${MODULE_FETCH}.duration`;
|
|
@@ -59,6 +61,8 @@ LWR.define('lwr/metrics/v/0_11_0-alpha_6', ['exports'], (function (exports) { 'u
|
|
|
59
61
|
exports.MAPPINGS_FETCH_DURATION = MAPPINGS_FETCH_DURATION;
|
|
60
62
|
exports.MODULE_DEFINE = MODULE_DEFINE;
|
|
61
63
|
exports.MODULE_DEFINE_COUNT = MODULE_DEFINE_COUNT;
|
|
64
|
+
exports.MODULE_DYNAMIC_LOAD = MODULE_DYNAMIC_LOAD;
|
|
65
|
+
exports.MODULE_DYNAMIC_LOAD_COUNT = MODULE_DYNAMIC_LOAD_COUNT;
|
|
62
66
|
exports.MODULE_ERROR = MODULE_ERROR;
|
|
63
67
|
exports.MODULE_ERROR_COUNT = MODULE_ERROR_COUNT;
|
|
64
68
|
exports.MODULE_FETCH = MODULE_FETCH;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwr/profiler/v/0_11_0-
|
|
1
|
+
LWR.define('lwr/profiler/v/0_11_0-alpha_7', ['exports'], (function (exports) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwr/vault/v/0_11_0-
|
|
1
|
+
LWR.define('lwr/vault/v/0_11_0-alpha_7', ['exports'], (function (exports) { 'use strict';
|
|
2
2
|
|
|
3
3
|
// Credential vault for storing setters and subscribers for OAuth info
|
|
4
4
|
// This module is a SINGLETON and must be excluded from ESM bundling
|