@lwrjs/everywhere 0.13.2 → 0.13.4
Sign up to get free protection for your applications and to get access to all the features.
- package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/3a235d536c56b72bbb1ad89873a9f117/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_4/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_2 → 0_13_4}/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_2 → 0_13_4}/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_2/s/70dd26a29833655c13b8a0ca0745050d → 0_13_4/s/529f1c95694cbd08725a2ec6efb0e04e}/lwr_loader.js +13 -27
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/{0_13_2 → 0_13_4}/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_2 → 0_13_4}/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_2 → 0_13_4}/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_2 → 0_13_4}/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/{0_13_2 → 0_13_4}/lwr-error-shim.js +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.bundle.js/v/{0_13_2 → 0_13_4}/lwr-loader-shim.bundle.js +21 -11
- package/build/assets/amd/lwr-everywhere-debug.js +23 -13
- package/build/assets/amd/lwr-everywhere-min.js +2 -2
- package/build/assets/amd/lwr-everywhere.js +23 -13
- package/build/assets/core/lwr-everywhere-debug.js +19 -9
- package/build/assets/core/lwr-everywhere-min.js +2 -2
- package/build/assets/core/lwr-everywhere.js +19 -9
- 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 +8 -8
- package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/9416bdad305e814a9d47587f1454fc28/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_2/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_4","autoBoot":true,"imports":{"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_13_4/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_4"],"/1/module/amd/1/l/en-US/mi/lwr%2FpreInit%2Fv%2F0_13_4/s/ec0fad0e38a96bb0b88c9f4553460347/lwr_preInit.js":["lwr/preInit/v/0_13_4"],"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_13_4/s/d7186d4fbbc58762dab0d51cc1f0afb8/lwr_init.js":["lwr/init/v/0_13_4"],"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_13_4/s/fb8c5dd340c69fdf7ded52d3eba633b9/lwr_metrics.js":["lwr/metrics/v/0_13_4"],"/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_4/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js":["lwr/everywhereAmd/v/0_13_4"],"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_13_4/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js":["lwr/vault/v/0_13_4"]},"index":{"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_4":"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_13_4/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js","lwr/preInit/v/0_13_4":"/1/module/amd/1/l/en-US/mi/lwr%2FpreInit%2Fv%2F0_13_4/s/ec0fad0e38a96bb0b88c9f4553460347/lwr_preInit.js","lwr/init/v/0_13_4":"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_13_4/s/d7186d4fbbc58762dab0d51cc1f0afb8/lwr_init.js","lwr/metrics/v/0_13_4":"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_13_4/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_4":"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_13_4/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js","lwr/vault/v/0_13_4":"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_13_4/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js"},"rootComponents":["lwr/everywhereAmd/v/0_13_4"],"serverData":{},"requiredModules":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_4"],"preloadModules":["lwr/preInit/v/0_13_4","lwr/init/v/0_13_4","lwr/metrics/v/0_13_4","lwc/v/7_2_0","lwr/everywhereAmd/v/0_13_4"],"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_4/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js":["lwr/profiler/v/0_13_4"],"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_13_4/s/529f1c95694cbd08725a2ec6efb0e04e/lwr_loader.js":["lwr/loader/v/0_13_4"]})
|
11
|
+
if (!globalThis.LWR.index) { globalThis.LWR.index = {}; }
|
12
|
+
Object.assign(globalThis.LWR.index, {"lwr/profiler/v/0_13_4":"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_13_4/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js","lwr/loader/v/0_13_4":"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_13_4/s/529f1c95694cbd08725a2ec6efb0e04e/lwr_loader.js"})
|
@@ -0,0 +1,14 @@
|
|
1
|
+
LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_4', ['lwr/loader/v/0_13_4', 'lwr/preInit/v/0_13_4', 'lwr/init/v/0_13_4'], (function (_0_13_4$2, _0_13_4, _0_13_4$1) { 'use strict';
|
2
|
+
|
3
|
+
const clientBootstrapConfig = _0_13_4.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_4$1.toKebabCase(rootSpecifier);
|
9
|
+
return _0_13_4$2.load(rootSpecifier, '@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_4').then(({default: Ctor}) => {
|
10
|
+
_0_13_4$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_4', ['exports', 'lwr/vault/v/0_13_4'], (function (exports, _0_13_4) { '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_4.getAuthInfo();
|
8
8
|
if (authInfo) {
|
9
9
|
return fetch(url, {
|
10
10
|
headers: {
|
@@ -53,7 +53,7 @@ LWR.define('lwr/everywhereAmd/v/0_13_2', ['exports', 'lwr/vault/v/0_13_2'], (fun
|
|
53
53
|
function authenticate(authInfo) {
|
54
54
|
// Put OAuth info into the vault
|
55
55
|
if (authInfo) {
|
56
|
-
|
56
|
+
_0_13_4.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_4', ['exports', 'lwr/metrics/v/0_13_4', 'lwr/profiler/v/0_13_4', 'lwc/v/7_2_0'], (function (exports, _0_13_4$1, _0_13_4, _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_2', ['exports', 'lwr/metrics/v/0_13_2', '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_4.logOperationStart({
|
49
|
+
id: _0_13_4$1.BOOTSTRAP_END
|
50
50
|
});
|
51
51
|
return;
|
52
52
|
}
|
53
|
-
|
54
|
-
id:
|
53
|
+
_0_13_4.logOperationStart({
|
54
|
+
id: _0_13_4$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_2', ['exports', 'lwr/metrics/v/0_13_2', '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_4.logOperationStart({
|
63
|
+
id: _0_13_4$1.INIT_MODULE,
|
64
64
|
specifier,
|
65
65
|
specifierIndex: ++index
|
66
66
|
});
|
@@ -69,8 +69,8 @@ LWR.define('lwr/init/v/0_13_2', ['exports', 'lwr/metrics/v/0_13_2', '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_4.logOperationEnd({
|
73
|
+
id: _0_13_4$1.INIT_MODULE,
|
74
74
|
specifier,
|
75
75
|
specifierIndex: index,
|
76
76
|
metadata: {
|
@@ -83,8 +83,8 @@ LWR.define('lwr/init/v/0_13_2', ['exports', 'lwr/metrics/v/0_13_2', '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_4.logOperationStart({
|
87
|
+
id: _0_13_4$1.INIT_MODULE,
|
88
88
|
specifier,
|
89
89
|
specifierIndex: ++index
|
90
90
|
});
|
@@ -93,8 +93,8 @@ LWR.define('lwr/init/v/0_13_2', ['exports', 'lwr/metrics/v/0_13_2', '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_4.logOperationEnd({
|
97
|
+
id: _0_13_4$1.INIT_MODULE,
|
98
98
|
specifier,
|
99
99
|
specifierIndex: index,
|
100
100
|
metadata: {
|
@@ -132,8 +132,8 @@ LWR.define('lwr/init/v/0_13_2', ['exports', 'lwr/metrics/v/0_13_2', 'lwr/profile
|
|
132
132
|
if (parent) {
|
133
133
|
parent.replaceChild(component, element);
|
134
134
|
}
|
135
|
-
|
136
|
-
id:
|
135
|
+
_0_13_4.logOperationEnd({
|
136
|
+
id: _0_13_4$1.INIT_MODULE,
|
137
137
|
specifier,
|
138
138
|
specifierIndex: index,
|
139
139
|
metadata: {
|
@@ -142,11 +142,11 @@ LWR.define('lwr/init/v/0_13_2', ['exports', 'lwr/metrics/v/0_13_2', 'lwr/profile
|
|
142
142
|
});
|
143
143
|
}
|
144
144
|
}
|
145
|
-
|
146
|
-
id:
|
145
|
+
_0_13_4.logOperationEnd({
|
146
|
+
id: _0_13_4$1.INIT
|
147
147
|
});
|
148
|
-
|
149
|
-
id:
|
148
|
+
_0_13_4.logOperationStart({
|
149
|
+
id: _0_13_4$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_4', ['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_2', ['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.4 */
|
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_2', ['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_2', ['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_2', ['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
|
|
@@ -704,27 +706,8 @@ LWR.define('lwr/loader/v/0_13_2', ['exports'], (function (exports) { 'use strict
|
|
704
706
|
});
|
705
707
|
});
|
706
708
|
}
|
707
|
-
|
708
|
-
|
709
|
-
let value = ops[0];
|
710
|
-
let i = 1;
|
711
|
-
while (i < ops.length) {
|
712
|
-
const op = ops[i];
|
713
|
-
const fn = ops[i + 1];
|
714
|
-
i += 2;
|
715
|
-
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
716
|
-
return undefined;
|
717
|
-
}
|
718
|
-
if (op === 'access' || op === 'optionalAccess') {
|
719
|
-
lastAccessLHS = value;
|
720
|
-
value = fn(value);
|
721
|
-
} else if (op === 'call' || op === 'optionalCall') {
|
722
|
-
value = fn((...args) => value.call(lastAccessLHS, ...args));
|
723
|
-
lastAccessLHS = undefined;
|
724
|
-
}
|
725
|
-
}
|
726
|
-
return value;
|
727
|
-
} /* global console,process */
|
709
|
+
|
710
|
+
/* global console,process */
|
728
711
|
|
729
712
|
class ModuleRegistry {
|
730
713
|
constructor(config) {
|
@@ -850,8 +833,11 @@ LWR.define('lwr/loader/v/0_13_2', ['exports'], (function (exports) { 'use strict
|
|
850
833
|
const mod = this.namedDefineRegistry.get(name);
|
851
834
|
// Don't allow redefining a module.
|
852
835
|
if (mod && mod.defined) {
|
836
|
+
if (hasProcessEnv &&
|
837
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
838
|
+
process.env.NODE_ENV !== 'production' &&
|
853
839
|
// eslint-disable-next-line lwr/no-unguarded-apis
|
854
|
-
|
840
|
+
process.env.MRT_HMR !== 'true' && hasConsole) {
|
855
841
|
// eslint-disable-next-line lwr/no-unguarded-apis
|
856
842
|
console.warn(`Module redefine attempted: ${name}`);
|
857
843
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
LWR.define('lwr/preInit/v/
|
1
|
+
LWR.define('lwr/preInit/v/0_13_4', ['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_4', ['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.4 */
|
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.4 */
|
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_4';
|
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_4', ['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_4') < 0) {
|
418
|
+
GLOBAL.LWR.requiredModules.push('lwr/loader/v/0_13_4');
|
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_4', ['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_2', ['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_2', ['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
|
|
@@ -1186,7 +1190,7 @@ LWR.define('lwr/loader/v/0_13_2', ['exports'], (function (exports) { 'use strict
|
|
1186
1190
|
});
|
1187
1191
|
}
|
1188
1192
|
|
1189
|
-
|
1193
|
+
/* global console,process */
|
1190
1194
|
|
1191
1195
|
|
1192
1196
|
|
@@ -1366,8 +1370,14 @@ LWR.define('lwr/loader/v/0_13_2', ['exports'], (function (exports) { 'use strict
|
|
1366
1370
|
const mod = this.namedDefineRegistry.get(name);
|
1367
1371
|
// Don't allow redefining a module.
|
1368
1372
|
if (mod && mod.defined) {
|
1369
|
-
|
1370
|
-
|
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
|
+
) {
|
1371
1381
|
// eslint-disable-next-line lwr/no-unguarded-apis
|
1372
1382
|
console.warn(`Module redefine attempted: ${name}`);
|
1373
1383
|
}
|
@@ -20,7 +20,7 @@ function getConfiguration(options) {
|
|
20
20
|
: `${ORIGIN}${PREFIX}/module/${format}/${POSTFIX}/mi/`;
|
21
21
|
|
22
22
|
// Component specifiers and URIs
|
23
|
-
const BOOT_MODULE = `lwr/everywhere${format === 'esm' ? 'Esm' : 'Amd'}/v/
|
23
|
+
const BOOT_MODULE = `lwr/everywhere${format === 'esm' ? 'Esm' : 'Amd'}/v/0_13_4`;
|
24
24
|
const BOOT_URI = `${ENDPOINT}${encodeURIComponent(BOOT_MODULE)}/latest${debug ? '?debug' : ''}`;
|
25
25
|
|
26
26
|
// Client Bootstrap Config
|
@@ -52,7 +52,7 @@ function getConfiguration(options) {
|
|
52
52
|
* SPDX-License-Identifier: MIT
|
53
53
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
54
54
|
*/
|
55
|
-
/* LWR Module Loader v0.13.
|
55
|
+
/* LWR Module Loader v0.13.4 */
|
56
56
|
const templateRegex = /\{([0-9]+)\}/g;
|
57
57
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
58
58
|
function templateString(template, args) {
|
@@ -200,7 +200,11 @@ const hasDocument = typeof document !== 'undefined';
|
|
200
200
|
const hasSetTimeout = typeof setTimeout === 'function';
|
201
201
|
|
202
202
|
const hasConsole = typeof console !== 'undefined';
|
203
|
-
|
203
|
+
|
204
|
+
const hasProcess = typeof process !== 'undefined';
|
205
|
+
|
206
|
+
// eslint-disable-next-line no-undef
|
207
|
+
const hasProcessEnv = hasProcess && process.env;
|
204
208
|
|
205
209
|
function getBaseUrl() {
|
206
210
|
let baseUrl = undefined;
|
@@ -702,7 +706,7 @@ try {
|
|
702
706
|
// swallow
|
703
707
|
}
|
704
708
|
const trusted = createPolicy('trusted', policyOptions);
|
705
|
-
/*! version: 0.22.
|
709
|
+
/*! version: 0.22.5 */
|
706
710
|
|
707
711
|
/* global console,process */
|
708
712
|
|
@@ -816,7 +820,7 @@ async function evaluateLoadHook(
|
|
816
820
|
});
|
817
821
|
}
|
818
822
|
|
819
|
-
|
823
|
+
/* global console,process */
|
820
824
|
|
821
825
|
|
822
826
|
|
@@ -996,8 +1000,14 @@ class ModuleRegistry {
|
|
996
1000
|
const mod = this.namedDefineRegistry.get(name);
|
997
1001
|
// Don't allow redefining a module.
|
998
1002
|
if (mod && mod.defined) {
|
999
|
-
|
1000
|
-
|
1003
|
+
if (
|
1004
|
+
hasProcessEnv &&
|
1005
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
1006
|
+
process.env.NODE_ENV !== 'production' &&
|
1007
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
1008
|
+
process.env.MRT_HMR !== 'true' &&
|
1009
|
+
hasConsole
|
1010
|
+
) {
|
1001
1011
|
// eslint-disable-next-line lwr/no-unguarded-apis
|
1002
1012
|
console.warn(`Module redefine attempted: ${name}`);
|
1003
1013
|
}
|
@@ -1611,7 +1621,7 @@ const { bootstrapModule, endpoints, baseUrl, imports, index } = configuration;
|
|
1611
1621
|
|
1612
1622
|
// Initialize the AMD loader (its code is bundled into the LWR Everywhere module)
|
1613
1623
|
const loader = new Loader({ endpoints, baseUrl });
|
1614
|
-
loader.define('lwr/loader/v/
|
1624
|
+
loader.define('lwr/loader/v/0_13_4', ['exports'], (exports) => {
|
1615
1625
|
Object.assign(exports, {
|
1616
1626
|
define: loader.define.bind(loader),
|
1617
1627
|
load: loader.load.bind(loader),
|
@@ -1621,12 +1631,12 @@ await loader.registerImportMappings({ imports, index }, [bootstrapModule]);
|
|
1621
1631
|
(globalThis ).LWR = Object.freeze({ define: loader.define.bind(loader) });
|
1622
1632
|
|
1623
1633
|
// Define preload modules (ie: ABS, vault, etc) BEFORE loading them
|
1624
|
-
LWR.define('lwr/everywhereAmd/v/
|
1634
|
+
LWR.define('lwr/everywhereAmd/v/0_13_4', ['exports', 'lwr/vault/v/0_13_4'], (function (exports, _0_13_4) {
|
1625
1635
|
// IMPORTANT: Do not add any static imports to this file that are not bundled with the amd-client
|
1626
1636
|
|
1627
1637
|
// Do an OAuthed fetch
|
1628
1638
|
async function authFetch(url, accept = 'javascript') {
|
1629
|
-
const authInfo =
|
1639
|
+
const authInfo = _0_13_4.getAuthInfo();
|
1630
1640
|
if (authInfo) {
|
1631
1641
|
return fetch(url, {
|
1632
1642
|
headers: {
|
@@ -1675,7 +1685,7 @@ LWR.define('lwr/everywhereAmd/v/0_13_2', ['exports', 'lwr/vault/v/0_13_2'], (fun
|
|
1675
1685
|
function authenticate(authInfo) {
|
1676
1686
|
// Put OAuth info into the vault
|
1677
1687
|
if (authInfo) {
|
1678
|
-
|
1688
|
+
_0_13_4.setAuthInfo(authInfo);
|
1679
1689
|
}
|
1680
1690
|
}
|
1681
1691
|
|
@@ -1685,7 +1695,7 @@ LWR.define('lwr/everywhereAmd/v/0_13_2', ['exports', 'lwr/vault/v/0_13_2'], (fun
|
|
1685
1695
|
Object.defineProperty(exports, '__esModule', { value: true });
|
1686
1696
|
|
1687
1697
|
}));
|
1688
|
-
LWR.define('lwr/vault/v/
|
1698
|
+
LWR.define('lwr/vault/v/0_13_4', ['exports'], (function (exports) {
|
1689
1699
|
// Credential vault for storing setters and subscribers for OAuth info
|
1690
1700
|
// This module is a SINGLETON and must be excluded from ESM bundling
|
1691
1701
|
|
@@ -1709,7 +1719,7 @@ LWR.define('lwr/vault/v/0_13_2', ['exports'], (function (exports) {
|
|
1709
1719
|
|
1710
1720
|
// Set up the AMD loader hooks for OAuth
|
1711
1721
|
const { initAmd, authenticate } = await loader.load(bootstrapModule);
|
1712
|
-
initAmd(loader.services, _optionalChain([endpoints, 'optionalAccess', _ => _.uris, 'access', _2 => _2.mapping]), '
|
1722
|
+
initAmd(loader.services, _optionalChain([endpoints, 'optionalAccess', _ => _.uris, 'access', _2 => _2.mapping]), '0_13_4');
|
1713
1723
|
|
1714
1724
|
// Wrap the createComponent API to allow proper ordering of module definitions:
|
1715
1725
|
// 1. LWRE module bundle (this): lwr/loader, lwr/everywhereAmd, lwr/vault
|