@lwrjs/everywhere 0.13.1 → 0.13.3
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/fb1d1cfa55c5f3bcef558f1bf03cac53/config.js +12 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_3/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js +14 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwc/v/{7_1_2/s/027fc9cd750ae64e43070ae2b597fad0 → 7_2_0/s/8af0ee539312c02579f2d7488cc0c080}/lwc.js +14 -14
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/{0_13_1 → 0_13_3}/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_13_1 → 0_13_3}/s/d7186d4fbbc58762dab0d51cc1f0afb8/lwr_init.js +21 -21
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/loader/v/{0_13_1/s/ded190a5e59589e772053998f231183d → 0_13_3/s/ba99bf3c6207290b7c7567f7b8265f8f}/lwr_loader.js +18 -6
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/{0_13_1 → 0_13_3}/s/fb8c5dd340c69fdf7ded52d3eba633b9/lwr_metrics.js +1 -1
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/preInit/v/{0_13_1 → 0_13_3}/s/ec0fad0e38a96bb0b88c9f4553460347/lwr_preInit.js +1 -1
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/{0_13_1 → 0_13_3}/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_13_1 → 0_13_3}/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/{0_13_1 → 0_13_3}/lwr-error-shim.js +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.bundle.js/v/{0_13_1 → 0_13_3}/lwr-loader-shim.bundle.js +25 -9
- package/build/assets/amd/lwr-everywhere-debug.js +27 -11
- package/build/assets/amd/lwr-everywhere-min.js +2 -2
- package/build/assets/amd/lwr-everywhere.js +27 -11
- package/build/assets/core/lwr-everywhere-debug.js +23 -7
- package/build/assets/core/lwr-everywhere-min.js +2 -2
- package/build/assets/core/lwr-everywhere.js +23 -7
- 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 +7 -7
- package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/3843d81d518e535e74becaf4861cf364/config.js +0 -12
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_1/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js +0 -14
|
@@ -0,0 +1,12 @@
|
|
|
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_13_3","autoBoot":true,"imports":{"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_13_3/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_3"],"/1/module/amd/1/l/en-US/mi/lwr%2FpreInit%2Fv%2F0_13_3/s/ec0fad0e38a96bb0b88c9f4553460347/lwr_preInit.js":["lwr/preInit/v/0_13_3"],"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_13_3/s/d7186d4fbbc58762dab0d51cc1f0afb8/lwr_init.js":["lwr/init/v/0_13_3"],"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_13_3/s/fb8c5dd340c69fdf7ded52d3eba633b9/lwr_metrics.js":["lwr/metrics/v/0_13_3"],"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F7_2_0/s/8af0ee539312c02579f2d7488cc0c080/lwc.js":["lwc/v/7_2_0"],"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_13_3/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js":["lwr/everywhereAmd/v/0_13_3"],"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_13_3/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js":["lwr/vault/v/0_13_3"]},"index":{"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_3":"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_13_3/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js","lwr/preInit/v/0_13_3":"/1/module/amd/1/l/en-US/mi/lwr%2FpreInit%2Fv%2F0_13_3/s/ec0fad0e38a96bb0b88c9f4553460347/lwr_preInit.js","lwr/init/v/0_13_3":"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_13_3/s/d7186d4fbbc58762dab0d51cc1f0afb8/lwr_init.js","lwr/metrics/v/0_13_3":"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_13_3/s/fb8c5dd340c69fdf7ded52d3eba633b9/lwr_metrics.js","lwc/v/7_2_0":"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F7_2_0/s/8af0ee539312c02579f2d7488cc0c080/lwc.js","lwr/everywhereAmd/v/0_13_3":"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_13_3/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js","lwr/vault/v/0_13_3":"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_13_3/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js"},"rootComponents":["lwr/everywhereAmd/v/0_13_3"],"serverData":{},"requiredModules":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_3"],"preloadModules":["lwr/preInit/v/0_13_3","lwr/init/v/0_13_3","lwr/metrics/v/0_13_3","lwc/v/7_2_0","lwr/everywhereAmd/v/0_13_3"],"endpoints":{"uris":{"mapping":"/1/mapping/amd/1/l/en-US/mp/"}}});
|
|
5
|
+
globalThis.LWR = {...globalThis.LWR, env: {"SSR":false,"basePath":"","locale":"en-US","assetBasePath":"","uiBasePath":""}};
|
|
6
|
+
globalThis.process={...globalThis.process,env:{...globalThis.process?.env,...{"NODE_ENV":"compat"}}};
|
|
7
|
+
globalThis.lwcRuntimeFlags = { ENABLE_MIXED_SHADOW_MODE: false };
|
|
8
|
+
// Appended by Static Site Generator
|
|
9
|
+
if (!globalThis.LWR.imports) { globalThis.LWR.imports = {}; }
|
|
10
|
+
Object.assign(globalThis.LWR.imports, {"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_13_3/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js":["lwr/profiler/v/0_13_3"],"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_13_3/s/ba99bf3c6207290b7c7567f7b8265f8f/lwr_loader.js":["lwr/loader/v/0_13_3"]})
|
|
11
|
+
if (!globalThis.LWR.index) { globalThis.LWR.index = {}; }
|
|
12
|
+
Object.assign(globalThis.LWR.index, {"lwr/profiler/v/0_13_3":"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_13_3/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js","lwr/loader/v/0_13_3":"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_13_3/s/ba99bf3c6207290b7c7567f7b8265f8f/lwr_loader.js"})
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_3', ['lwr/loader/v/0_13_3', 'lwr/preInit/v/0_13_3', 'lwr/init/v/0_13_3'], (function (_0_13_3$2, _0_13_3, _0_13_3$1) { 'use strict';
|
|
2
|
+
|
|
3
|
+
const clientBootstrapConfig = _0_13_3.getClientBootstrapConfig();
|
|
4
|
+
const { serverData, rootComponents } = clientBootstrapConfig;
|
|
5
|
+
|
|
6
|
+
// initialize additional non-configured root components
|
|
7
|
+
Promise.all(rootComponents.map(async (rootSpecifier) => {
|
|
8
|
+
const element = _0_13_3$1.toKebabCase(rootSpecifier);
|
|
9
|
+
return _0_13_3$2.load(rootSpecifier, '@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_3').then(({default: Ctor}) => {
|
|
10
|
+
_0_13_3$1.init([[element, Ctor]], serverData);
|
|
11
|
+
});
|
|
12
|
+
}));
|
|
13
|
+
|
|
14
|
+
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwc/v/
|
|
1
|
+
LWR.define('lwc/v/7_2_0', ['exports'], (function (exports) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Copyright (c) 2024 Salesforce, Inc.
|
|
@@ -446,9 +446,9 @@ LWR.define('lwc/v/7_1_2', ['exports'], (function (exports) { 'use strict';
|
|
|
446
446
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
447
447
|
*/
|
|
448
448
|
// Increment whenever the LWC template compiler changes
|
|
449
|
-
const LWC_VERSION = "7.
|
|
449
|
+
const LWC_VERSION = "7.2.0";
|
|
450
450
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
451
|
-
/** version: 7.
|
|
451
|
+
/** version: 7.2.0 */
|
|
452
452
|
|
|
453
453
|
/**
|
|
454
454
|
* Copyright (c) 2024 Salesforce, Inc.
|
|
@@ -534,7 +534,7 @@ LWR.define('lwc/v/7_1_2', ['exports'], (function (exports) { 'use strict';
|
|
|
534
534
|
setFeatureFlag(name, value);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
/** version: 7.
|
|
537
|
+
/** version: 7.2.0 */
|
|
538
538
|
|
|
539
539
|
/**
|
|
540
540
|
* Copyright (c) 2024 Salesforce, Inc.
|
|
@@ -1718,7 +1718,7 @@ LWR.define('lwc/v/7_1_2', ['exports'], (function (exports) { 'use strict';
|
|
|
1718
1718
|
valueMutated(originalTarget, key);
|
|
1719
1719
|
return true;
|
|
1720
1720
|
}
|
|
1721
|
-
/*LWC compiler v7.
|
|
1721
|
+
/*LWC compiler v7.2.0*/
|
|
1722
1722
|
}
|
|
1723
1723
|
const getterMap = new WeakMap();
|
|
1724
1724
|
const setterMap = new WeakMap();
|
|
@@ -1811,7 +1811,7 @@ LWR.define('lwc/v/7_1_2', ['exports'], (function (exports) { 'use strict';
|
|
|
1811
1811
|
/* istanbul ignore next */
|
|
1812
1812
|
return false;
|
|
1813
1813
|
}
|
|
1814
|
-
/*LWC compiler v7.
|
|
1814
|
+
/*LWC compiler v7.2.0*/
|
|
1815
1815
|
}
|
|
1816
1816
|
function extract(objectOrArray) {
|
|
1817
1817
|
if (isArray(objectOrArray)) {
|
|
@@ -3564,7 +3564,7 @@ LWR.define('lwc/v/7_1_2', ['exports'], (function (exports) { 'use strict';
|
|
|
3564
3564
|
}
|
|
3565
3565
|
function HTMLBridgeElementFactory(SuperClass, publicProperties, methods, observedFields, proto, hasCustomSuperClass) {
|
|
3566
3566
|
const HTMLBridgeElement = class extends SuperClass {
|
|
3567
|
-
/*LWC compiler v7.
|
|
3567
|
+
/*LWC compiler v7.2.0*/
|
|
3568
3568
|
};
|
|
3569
3569
|
// generating the hash table for attributes to avoid duplicate fields and facilitate validation
|
|
3570
3570
|
// and false positives in case of inheritance.
|
|
@@ -8951,7 +8951,7 @@ LWR.define('lwc/v/7_1_2', ['exports'], (function (exports) { 'use strict';
|
|
|
8951
8951
|
}
|
|
8952
8952
|
return getReadOnlyProxy(obj);
|
|
8953
8953
|
}
|
|
8954
|
-
/** version: 7.
|
|
8954
|
+
/** version: 7.2.0 */
|
|
8955
8955
|
|
|
8956
8956
|
/*
|
|
8957
8957
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -9245,7 +9245,7 @@ LWR.define('lwc/v/7_1_2', ['exports'], (function (exports) { 'use strict';
|
|
|
9245
9245
|
formStateRestoreCallback(state, reason) {
|
|
9246
9246
|
runFormStateRestoreCallback(this, state, reason);
|
|
9247
9247
|
}
|
|
9248
|
-
/*LWC compiler v7.
|
|
9248
|
+
/*LWC compiler v7.2.0*/
|
|
9249
9249
|
};
|
|
9250
9250
|
BaseHTMLElement = HTMLElement; // cache to track if it changes
|
|
9251
9251
|
}
|
|
@@ -9260,7 +9260,7 @@ LWR.define('lwc/v/7_1_2', ['exports'], (function (exports) { 'use strict';
|
|
|
9260
9260
|
// Using a BaseUpgradableConstructor superclass here is a perf optimization to avoid
|
|
9261
9261
|
// re-defining the same logic (connectedCallback, disconnectedCallback, etc.) over and over.
|
|
9262
9262
|
class UpgradableConstructor extends BaseUpgradableConstructor {
|
|
9263
|
-
/*LWC compiler v7.
|
|
9263
|
+
/*LWC compiler v7.2.0*/
|
|
9264
9264
|
}
|
|
9265
9265
|
if (isFormAssociated) {
|
|
9266
9266
|
// Perf optimization - the vast majority of components have formAssociated=false,
|
|
@@ -9383,7 +9383,7 @@ LWR.define('lwc/v/7_1_2', ['exports'], (function (exports) { 'use strict';
|
|
|
9383
9383
|
function isNull(obj) {
|
|
9384
9384
|
return obj === null;
|
|
9385
9385
|
}
|
|
9386
|
-
/** version: 7.
|
|
9386
|
+
/** version: 7.2.0 */
|
|
9387
9387
|
|
|
9388
9388
|
/*
|
|
9389
9389
|
* Copyright (c) 2023, salesforce.com, inc.
|
|
@@ -9403,7 +9403,7 @@ LWR.define('lwc/v/7_1_2', ['exports'], (function (exports) { 'use strict';
|
|
|
9403
9403
|
this.setNewContext = setNewContext;
|
|
9404
9404
|
this.setDisconnectedCallback = setDisconnectedCallback;
|
|
9405
9405
|
}
|
|
9406
|
-
/*LWC compiler v7.
|
|
9406
|
+
/*LWC compiler v7.2.0*/
|
|
9407
9407
|
}
|
|
9408
9408
|
function registerContextConsumer(elm, adapterContextToken, subscriptionPayload) {
|
|
9409
9409
|
dispatchEvent(elm, new WireContextSubscriptionEvent(adapterContextToken, subscriptionPayload));
|
|
@@ -9826,7 +9826,7 @@ LWR.define('lwc/v/7_1_2', ['exports'], (function (exports) { 'use strict';
|
|
|
9826
9826
|
formStateRestoreCallback(state, reason) {
|
|
9827
9827
|
runFormStateRestoreCallback(this, state, reason);
|
|
9828
9828
|
}
|
|
9829
|
-
/*LWC compiler v7.
|
|
9829
|
+
/*LWC compiler v7.2.0*/
|
|
9830
9830
|
}, _a.observedAttributes = observedAttributes,
|
|
9831
9831
|
// Note CustomElementConstructor is not upgraded by LWC and inherits directly from HTMLElement which means it calls the native
|
|
9832
9832
|
// attachInternals API.
|
|
@@ -10072,7 +10072,7 @@ LWR.define('lwc/v/7_1_2', ['exports'], (function (exports) { 'use strict';
|
|
|
10072
10072
|
});
|
|
10073
10073
|
});
|
|
10074
10074
|
}
|
|
10075
|
-
/** version: 7.
|
|
10075
|
+
/** version: 7.2.0 */
|
|
10076
10076
|
|
|
10077
10077
|
exports.LightningElement = LightningElement;
|
|
10078
10078
|
exports.__unstable__ProfilerControl = profilerControl;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
LWR.define('lwr/everywhereAmd/v/
|
|
1
|
+
LWR.define('lwr/everywhereAmd/v/0_13_3', ['exports', 'lwr/vault/v/0_13_3'], (function (exports, _0_13_3) { '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_13_3.getAuthInfo();
|
|
8
8
|
if (authInfo) {
|
|
9
9
|
return fetch(url, {
|
|
10
10
|
headers: {
|
|
@@ -53,7 +53,7 @@ LWR.define('lwr/everywhereAmd/v/0_13_1', ['exports', 'lwr/vault/v/0_13_1'], (fun
|
|
|
53
53
|
function authenticate(authInfo) {
|
|
54
54
|
// Put OAuth info into the vault
|
|
55
55
|
if (authInfo) {
|
|
56
|
-
|
|
56
|
+
_0_13_3.setAuthInfo(authInfo);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
LWR.define('lwr/init/v/
|
|
1
|
+
LWR.define('lwr/init/v/0_13_3', ['exports', 'lwr/metrics/v/0_13_3', 'lwr/profiler/v/0_13_3', 'lwc/v/7_2_0'], (function (exports, _0_13_3$1, _0_13_3, _7_2_0) { 'use strict';
|
|
2
2
|
|
|
3
3
|
// <hydrateComponentProxy> - This code is removed in core
|
|
4
4
|
|
|
5
5
|
function hydrateComponentProxy(customElement, Ctor, props) {
|
|
6
|
-
|
|
6
|
+
_7_2_0.hydrateComponent(customElement, Ctor, props);
|
|
7
7
|
}
|
|
8
8
|
// </hydrateComponentProxy>
|
|
9
9
|
|
|
10
10
|
function initializeWebComponent(elementName, Ctor) {
|
|
11
|
-
return
|
|
11
|
+
return _7_2_0.createElement(elementName, {
|
|
12
12
|
is: Ctor
|
|
13
13
|
});
|
|
14
14
|
}
|
|
@@ -45,13 +45,13 @@ LWR.define('lwr/init/v/0_13_1', ['exports', 'lwr/metrics/v/0_13_1', 'lwr/profile
|
|
|
45
45
|
*/
|
|
46
46
|
function init(rootModules, serverData = {}) {
|
|
47
47
|
if (typeof customElements === 'undefined' || typeof document === 'undefined') {
|
|
48
|
-
|
|
49
|
-
id:
|
|
48
|
+
_0_13_3.logOperationStart({
|
|
49
|
+
id: _0_13_3$1.BOOTSTRAP_END
|
|
50
50
|
});
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
id:
|
|
53
|
+
_0_13_3.logOperationStart({
|
|
54
|
+
id: _0_13_3$1.INIT
|
|
55
55
|
});
|
|
56
56
|
let index = 0;
|
|
57
57
|
for (const [specifier, ctor] of rootModules) {
|
|
@@ -59,8 +59,8 @@ LWR.define('lwr/init/v/0_13_1', ['exports', 'lwr/metrics/v/0_13_1', 'lwr/profile
|
|
|
59
59
|
|
|
60
60
|
// initialize and inject the root module into the LWR Root or DOM if it is missing
|
|
61
61
|
if (!document.body.querySelector(elementName)) {
|
|
62
|
-
|
|
63
|
-
id:
|
|
62
|
+
_0_13_3.logOperationStart({
|
|
63
|
+
id: _0_13_3$1.INIT_MODULE,
|
|
64
64
|
specifier,
|
|
65
65
|
specifierIndex: ++index
|
|
66
66
|
});
|
|
@@ -69,8 +69,8 @@ LWR.define('lwr/init/v/0_13_1', ['exports', 'lwr/metrics/v/0_13_1', 'lwr/profile
|
|
|
69
69
|
const component = initializeWebComponent(elementName, ctor);
|
|
70
70
|
const container = document.querySelector('[lwr-root]');
|
|
71
71
|
container ? container.appendChild(component) : document.body.appendChild(component);
|
|
72
|
-
|
|
73
|
-
id:
|
|
72
|
+
_0_13_3.logOperationEnd({
|
|
73
|
+
id: _0_13_3$1.INIT_MODULE,
|
|
74
74
|
specifier,
|
|
75
75
|
specifierIndex: index,
|
|
76
76
|
metadata: {
|
|
@@ -83,8 +83,8 @@ LWR.define('lwr/init/v/0_13_1', ['exports', 'lwr/metrics/v/0_13_1', 'lwr/profile
|
|
|
83
83
|
// the page has been rendered or SSR'd, and each component needs to initialized(or hydrated)
|
|
84
84
|
const elements = document.querySelectorAll(elementName);
|
|
85
85
|
for (const element of elements) {
|
|
86
|
-
|
|
87
|
-
id:
|
|
86
|
+
_0_13_3.logOperationStart({
|
|
87
|
+
id: _0_13_3$1.INIT_MODULE,
|
|
88
88
|
specifier,
|
|
89
89
|
specifierIndex: ++index
|
|
90
90
|
});
|
|
@@ -93,8 +93,8 @@ LWR.define('lwr/init/v/0_13_1', ['exports', 'lwr/metrics/v/0_13_1', 'lwr/profile
|
|
|
93
93
|
// hydrate SSR'd components
|
|
94
94
|
if (propsId) {
|
|
95
95
|
hydrateComponentProxy(element, ctor, serverData[propsId] || {});
|
|
96
|
-
|
|
97
|
-
id:
|
|
96
|
+
_0_13_3.logOperationEnd({
|
|
97
|
+
id: _0_13_3$1.INIT_MODULE,
|
|
98
98
|
specifier,
|
|
99
99
|
specifierIndex: index,
|
|
100
100
|
metadata: {
|
|
@@ -132,8 +132,8 @@ LWR.define('lwr/init/v/0_13_1', ['exports', 'lwr/metrics/v/0_13_1', 'lwr/profile
|
|
|
132
132
|
if (parent) {
|
|
133
133
|
parent.replaceChild(component, element);
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
id:
|
|
135
|
+
_0_13_3.logOperationEnd({
|
|
136
|
+
id: _0_13_3$1.INIT_MODULE,
|
|
137
137
|
specifier,
|
|
138
138
|
specifierIndex: index,
|
|
139
139
|
metadata: {
|
|
@@ -142,11 +142,11 @@ LWR.define('lwr/init/v/0_13_1', ['exports', 'lwr/metrics/v/0_13_1', 'lwr/profile
|
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
|
|
146
|
-
id:
|
|
145
|
+
_0_13_3.logOperationEnd({
|
|
146
|
+
id: _0_13_3$1.INIT
|
|
147
147
|
});
|
|
148
|
-
|
|
149
|
-
id:
|
|
148
|
+
_0_13_3.logOperationStart({
|
|
149
|
+
id: _0_13_3$1.BOOTSTRAP_END
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwr/loader/v/
|
|
1
|
+
LWR.define('lwr/loader/v/0_13_3', ['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_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
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.13.
|
|
9
|
+
/* LWR Module Loader v0.13.3 */
|
|
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_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
25
25
|
super();
|
|
26
26
|
this.message = generateErrorMessage(errorInfo, errorArgs);
|
|
27
27
|
}
|
|
28
|
-
/*LWC compiler v7.
|
|
28
|
+
/*LWC compiler v7.2.0*/
|
|
29
29
|
}
|
|
30
30
|
function invariant(condition, errorInfo) {
|
|
31
31
|
if (!condition) {
|
|
@@ -144,8 +144,10 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
144
144
|
const hasDocument = typeof document !== 'undefined';
|
|
145
145
|
const hasSetTimeout = typeof setTimeout === 'function';
|
|
146
146
|
const hasConsole = typeof console !== 'undefined';
|
|
147
|
-
|
|
147
|
+
const hasProcess = typeof process !== 'undefined';
|
|
148
148
|
|
|
149
|
+
// eslint-disable-next-line no-undef
|
|
150
|
+
const hasProcessEnv = hasProcess && process.env;
|
|
149
151
|
function getBaseUrl() {
|
|
150
152
|
let baseUrl = undefined;
|
|
151
153
|
if (hasDocument) {
|
|
@@ -617,7 +619,7 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
617
619
|
// swallow
|
|
618
620
|
}
|
|
619
621
|
const trusted = createPolicy('trusted', policyOptions);
|
|
620
|
-
/*! version: 0.22.
|
|
622
|
+
/*! version: 0.22.5 */
|
|
621
623
|
|
|
622
624
|
/* global console,process */
|
|
623
625
|
|
|
@@ -627,6 +629,8 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
627
629
|
lastWindowError = evt.error;
|
|
628
630
|
});
|
|
629
631
|
}
|
|
632
|
+
|
|
633
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
630
634
|
if (process.env.NODE_ENV !== 'production') {
|
|
631
635
|
if (!hasSetTimeout && hasConsole) {
|
|
632
636
|
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
@@ -669,6 +673,7 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
669
673
|
// TODO eval source maps for debugging
|
|
670
674
|
eval(trusted.createScript(code));
|
|
671
675
|
} catch (e) {
|
|
676
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
672
677
|
if (process.env.NODE_ENV !== 'production' && hasConsole) {
|
|
673
678
|
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
674
679
|
console.error(e);
|
|
@@ -828,7 +833,11 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
828
833
|
const mod = this.namedDefineRegistry.get(name);
|
|
829
834
|
// Don't allow redefining a module.
|
|
830
835
|
if (mod && mod.defined) {
|
|
831
|
-
if (
|
|
836
|
+
if (hasProcessEnv &&
|
|
837
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
838
|
+
process.env.NODE_ENV !== 'production' &&
|
|
839
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
840
|
+
process.env.MRT_HMR !== 'true' && hasConsole) {
|
|
832
841
|
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
833
842
|
console.warn(`Module redefine attempted: ${name}`);
|
|
834
843
|
}
|
|
@@ -884,6 +893,7 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
884
893
|
}
|
|
885
894
|
};
|
|
886
895
|
this.namedDefineRegistry.set(id, moduleDef);
|
|
896
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
887
897
|
} else if (process.env.NODE_ENV !== 'production' && hasConsole) {
|
|
888
898
|
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
889
899
|
console.warn(MODULE_ALREADY_LOADED.message, id);
|
|
@@ -969,6 +979,7 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
969
979
|
if (aliasId !== resolvedId) {
|
|
970
980
|
if (!this.aliases.has(aliasId)) {
|
|
971
981
|
this.aliases.set(aliasId, resolvedId);
|
|
982
|
+
// eslint-disable-next-line lwr/no-unguarded-apis, no-undef
|
|
972
983
|
} else if (process.env.NODE_ENV !== 'production' && hasConsole) {
|
|
973
984
|
// Warn the user if they were not aliasing to the resolvedId
|
|
974
985
|
const currentResolvedId = this.aliases.get(aliasId);
|
|
@@ -1251,6 +1262,7 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
1251
1262
|
newUrl
|
|
1252
1263
|
});
|
|
1253
1264
|
} else {
|
|
1265
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
1254
1266
|
if (process.env.NODE_ENV !== 'production' && hasConsole) {
|
|
1255
1267
|
// eslint-disable-next-line lwr/no-unguarded-apis, no-undef
|
|
1256
1268
|
console.warn(`stale module detected ${name}, current URL:${oldUrl}, new URL:${newUrl}`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwr/preInit/v/
|
|
1
|
+
LWR.define('lwr/preInit/v/0_13_3', ['exports'], (function (exports) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This module is called in the ABS module (app bootstrap module) to perform neccesary pre initialization steps for an LWR app.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwr/vault/v/
|
|
1
|
+
LWR.define('lwr/vault/v/0_13_3', ['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
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
6
6
|
*/
|
|
7
|
-
/* LWR Error Shim v0.13.
|
|
7
|
+
/* LWR Error Shim v0.13.3 */
|
|
8
8
|
!function(){"use strict";const o=globalThis;if(!(o.LWR&&o.LWR.define)){const r=new Error("The LWR application failed to bootstrap");if(!o.LWR||!o.LWR.onError)throw r;o.LWR.onError(r)}}();
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
6
6
|
*/
|
|
7
|
-
/* LWR Module Loader Shim v0.13.
|
|
7
|
+
/* LWR Module Loader Shim v0.13.3 */
|
|
8
8
|
(function () {
|
|
9
9
|
'use strict';
|
|
10
10
|
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
// Parse configuration
|
|
210
210
|
this.global = global;
|
|
211
211
|
this.config = global.LWR ;
|
|
212
|
-
this.loaderSpecifier = 'lwr/loader/v/
|
|
212
|
+
this.loaderSpecifier = 'lwr/loader/v/0_13_3';
|
|
213
213
|
|
|
214
214
|
// Set up error handler
|
|
215
215
|
this.errorHandler = this.config.onError ;
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
const exporter = (exports) => {
|
|
338
338
|
Object.assign(exports, { logOperationStart, logOperationEnd });
|
|
339
339
|
};
|
|
340
|
-
define('lwr/profiler/v/
|
|
340
|
+
define('lwr/profiler/v/0_13_3', ['exports'], exporter);
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
// Set up the application globals, import map, root custom element...
|
|
@@ -414,14 +414,14 @@
|
|
|
414
414
|
// The loader module is ALWAYS required
|
|
415
415
|
const GLOBAL = globalThis ;
|
|
416
416
|
GLOBAL.LWR.requiredModules = GLOBAL.LWR.requiredModules || [];
|
|
417
|
-
if (GLOBAL.LWR.requiredModules.indexOf('lwr/loader/v/
|
|
418
|
-
GLOBAL.LWR.requiredModules.push('lwr/loader/v/
|
|
417
|
+
if (GLOBAL.LWR.requiredModules.indexOf('lwr/loader/v/0_13_3') < 0) {
|
|
418
|
+
GLOBAL.LWR.requiredModules.push('lwr/loader/v/0_13_3');
|
|
419
419
|
}
|
|
420
420
|
new LoaderShim(GLOBAL);
|
|
421
421
|
|
|
422
422
|
})();
|
|
423
423
|
|
|
424
|
-
LWR.define('lwr/loader/v/
|
|
424
|
+
LWR.define('lwr/loader/v/0_13_3', ['exports'], (function (exports) { 'use strict';
|
|
425
425
|
|
|
426
426
|
const templateRegex = /\{([0-9]+)\}/g;
|
|
427
427
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -570,7 +570,11 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
570
570
|
const hasSetTimeout = typeof setTimeout === 'function';
|
|
571
571
|
|
|
572
572
|
const hasConsole = typeof console !== 'undefined';
|
|
573
|
-
|
|
573
|
+
|
|
574
|
+
const hasProcess = typeof process !== 'undefined';
|
|
575
|
+
|
|
576
|
+
// eslint-disable-next-line no-undef
|
|
577
|
+
const hasProcessEnv = hasProcess && process.env;
|
|
574
578
|
|
|
575
579
|
function getBaseUrl() {
|
|
576
580
|
let baseUrl = undefined;
|
|
@@ -1072,7 +1076,7 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
1072
1076
|
// swallow
|
|
1073
1077
|
}
|
|
1074
1078
|
const trusted = createPolicy('trusted', policyOptions);
|
|
1075
|
-
/*! version: 0.22.
|
|
1079
|
+
/*! version: 0.22.5 */
|
|
1076
1080
|
|
|
1077
1081
|
/* global console,process */
|
|
1078
1082
|
|
|
@@ -1084,6 +1088,7 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
1084
1088
|
});
|
|
1085
1089
|
}
|
|
1086
1090
|
|
|
1091
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
1087
1092
|
if (process.env.NODE_ENV !== 'production') {
|
|
1088
1093
|
if (!hasSetTimeout && hasConsole) {
|
|
1089
1094
|
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
@@ -1143,6 +1148,7 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
1143
1148
|
// TODO eval source maps for debugging
|
|
1144
1149
|
eval(trusted.createScript(code));
|
|
1145
1150
|
} catch (e) {
|
|
1151
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
1146
1152
|
if (process.env.NODE_ENV !== 'production' && hasConsole) {
|
|
1147
1153
|
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
1148
1154
|
console.error(e);
|
|
@@ -1364,7 +1370,14 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
1364
1370
|
const mod = this.namedDefineRegistry.get(name);
|
|
1365
1371
|
// Don't allow redefining a module.
|
|
1366
1372
|
if (mod && mod.defined) {
|
|
1367
|
-
if (
|
|
1373
|
+
if (
|
|
1374
|
+
hasProcessEnv &&
|
|
1375
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
1376
|
+
process.env.NODE_ENV !== 'production' &&
|
|
1377
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
1378
|
+
process.env.MRT_HMR !== 'true' &&
|
|
1379
|
+
hasConsole
|
|
1380
|
+
) {
|
|
1368
1381
|
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
1369
1382
|
console.warn(`Module redefine attempted: ${name}`);
|
|
1370
1383
|
}
|
|
@@ -1419,6 +1432,7 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
1419
1432
|
},
|
|
1420
1433
|
};
|
|
1421
1434
|
this.namedDefineRegistry.set(id, moduleDef );
|
|
1435
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
1422
1436
|
} else if (process.env.NODE_ENV !== 'production' && hasConsole) {
|
|
1423
1437
|
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
1424
1438
|
console.warn(MODULE_ALREADY_LOADED.message, id);
|
|
@@ -1510,6 +1524,7 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
1510
1524
|
if (aliasId !== resolvedId) {
|
|
1511
1525
|
if (!this.aliases.has(aliasId)) {
|
|
1512
1526
|
this.aliases.set(aliasId, resolvedId);
|
|
1527
|
+
// eslint-disable-next-line lwr/no-unguarded-apis, no-undef
|
|
1513
1528
|
} else if (process.env.NODE_ENV !== 'production' && hasConsole) {
|
|
1514
1529
|
// Warn the user if they were not aliasing to the resolvedId
|
|
1515
1530
|
const currentResolvedId = this.aliases.get(aliasId);
|
|
@@ -1808,6 +1823,7 @@ LWR.define('lwr/loader/v/0_13_1', ['exports'], (function (exports) { 'use strict
|
|
|
1808
1823
|
newUrl,
|
|
1809
1824
|
});
|
|
1810
1825
|
} else {
|
|
1826
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
1811
1827
|
if (process.env.NODE_ENV !== 'production' && hasConsole) {
|
|
1812
1828
|
// eslint-disable-next-line lwr/no-unguarded-apis, no-undef
|
|
1813
1829
|
console.warn(`stale module detected ${name}, current URL:${oldUrl}, new URL:${newUrl}`);
|