@lwrjs/everywhere 0.9.0-alpha.27 → 0.9.0-alpha.29
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/17aec9f84ba12d4de03c93446f4f4cef/config.js +10 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/{0_9_0-alpha_27 → 0_9_0-alpha_29}/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js +4 -4
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/{0_9_0-alpha_27 → 0_9_0-alpha_29}/s/c538071acf5bde58e816967a14c465c3/lwr_everywhereAmd.js +3 -3
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/init/v/{0_9_0-alpha_27 → 0_9_0-alpha_29}/s/206e6e0af6f019fdfd86d87d56331bc2/lwr_init.js +3 -3
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/loader/v/{0_9_0-alpha_27/s/4123fc1392e2464eeb558f59aebf0b74 → 0_9_0-alpha_29/s/d9bc2c5f3c03eeed1dd7f51f1e961002}/lwr_loader.js +7 -11
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/{0_9_0-alpha_27 → 0_9_0-alpha_29}/s/3426e42c3e22ce07ab2adc62c4c523a0/lwr_metrics.js +1 -1
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/{0_9_0-alpha_27 → 0_9_0-alpha_29}/s/e25f3b0b8b5c096acebf847d0a83ea62/lwr_profiler.js +1 -1
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/vault/v/{0_9_0-alpha_27 → 0_9_0-alpha_29}/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/{0_9_0-alpha_27 → 0_9_0-alpha_29}/lwr-error-shim.js +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.bundle.js/v/0_9_0-alpha_29/lwr-loader-shim.bundle.js +1547 -0
- package/build/assets/amd/lwr-everywhere-debug.js +14 -18
- package/build/assets/amd/lwr-everywhere-min.js +1 -1
- package/build/assets/amd/lwr-everywhere.js +14 -18
- package/build/assets/core/lwr-everywhere-debug.js +10 -14
- package/build/assets/core/lwr-everywhere-min.js +1 -1
- package/build/assets/core/lwr-everywhere.js +10 -14
- 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 +5 -5
- package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/f686972c89c37f7668129e8fbb58eade/config.js +0 -10
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.js/v/0_9_0-alpha_27/lwr-loader-shim.js +0 -312
|
@@ -0,0 +1,10 @@
|
|
|
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_9_0-alpha_29","autoBoot":true,"imports":{"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_9_0-alpha_29/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_29"],"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_9_0-alpha_29/s/206e6e0af6f019fdfd86d87d56331bc2/lwr_init.js":["lwr/init/v/0_9_0-alpha_29"],"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_9_0-alpha_29/s/3426e42c3e22ce07ab2adc62c4c523a0/lwr_metrics.js":["lwr/metrics/v/0_9_0-alpha_29"],"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_9_0-alpha_29/s/e25f3b0b8b5c096acebf847d0a83ea62/lwr_profiler.js":["lwr/profiler/v/0_9_0-alpha_29"],"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F2_38_1/s/8cf6b94d9c0b398c70c97fdca2759caa/lwc.js":["lwc/v/2_38_1"],"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_9_0-alpha_29/s/c538071acf5bde58e816967a14c465c3/lwr_everywhereAmd.js":["lwr/everywhereAmd/v/0_9_0-alpha_29"],"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_9_0-alpha_29/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js":["lwr/vault/v/0_9_0-alpha_29"]},"index":{"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_29":"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_9_0-alpha_29/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js","lwr/init/v/0_9_0-alpha_29":"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_9_0-alpha_29/s/206e6e0af6f019fdfd86d87d56331bc2/lwr_init.js","lwr/metrics/v/0_9_0-alpha_29":"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_9_0-alpha_29/s/3426e42c3e22ce07ab2adc62c4c523a0/lwr_metrics.js","lwr/profiler/v/0_9_0-alpha_29":"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_9_0-alpha_29/s/e25f3b0b8b5c096acebf847d0a83ea62/lwr_profiler.js","lwc/v/2_38_1":"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F2_38_1/s/8cf6b94d9c0b398c70c97fdca2759caa/lwc.js","lwr/everywhereAmd/v/0_9_0-alpha_29":"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_9_0-alpha_29/s/c538071acf5bde58e816967a14c465c3/lwr_everywhereAmd.js","lwr/vault/v/0_9_0-alpha_29":"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_9_0-alpha_29/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js"},"rootComponents":["lwr/everywhereAmd/v/0_9_0-alpha_29"],"requiredModules":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_29"],"preloadModules":["lwr/init/v/0_9_0-alpha_29","lwr/metrics/v/0_9_0-alpha_29","lwc/v/2_38_1","lwr/everywhereAmd/v/0_9_0-alpha_29"],"endpoints":{"uris":{"mapping":"/1/mapping/amd/1/l/en-US/mp/"}}});
|
|
5
|
+
globalThis.process = { env: { NODE_ENV: "compat" } };
|
|
6
|
+
// Appended by Static Site Generator
|
|
7
|
+
if (!globalThis.LWR.imports) { globalThis.LWR.imports = {}; }
|
|
8
|
+
Object.assign(globalThis.LWR.imports, {"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_9_0-alpha_29/s/d9bc2c5f3c03eeed1dd7f51f1e961002/lwr_loader.js":["lwr/loader/v/0_9_0-alpha_29"]})
|
|
9
|
+
if (!globalThis.LWR.index) { globalThis.LWR.index = {}; }
|
|
10
|
+
Object.assign(globalThis.LWR.index, {"lwr/loader/v/0_9_0-alpha_29":"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_9_0-alpha_29/s/d9bc2c5f3c03eeed1dd7f51f1e961002/lwr_loader.js"})
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-
|
|
1
|
+
LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_29', ['lwr/loader/v/0_9_0-alpha_29', 'lwr/init/v/0_9_0-alpha_29'], function (_0_9_0Alpha_29$1, _0_9_0Alpha_29) { 'use strict';
|
|
2
2
|
|
|
3
3
|
const clientBootstrapConfig = globalThis.LWR;
|
|
4
4
|
|
|
5
5
|
// initialize additional non-configured root components
|
|
6
6
|
const { rootComponents, ssrProps } = clientBootstrapConfig;
|
|
7
7
|
Promise.all(rootComponents.map(async (rootSpecifier) => {
|
|
8
|
-
const element =
|
|
9
|
-
return
|
|
10
|
-
|
|
8
|
+
const element = _0_9_0Alpha_29.toKebabCase(rootSpecifier);
|
|
9
|
+
return _0_9_0Alpha_29$1.load(rootSpecifier, '@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_29').then(({default: Ctor}) => {
|
|
10
|
+
_0_9_0Alpha_29.init([[element, Ctor]], ssrProps);
|
|
11
11
|
});
|
|
12
12
|
}));
|
|
13
13
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
LWR.define('lwr/everywhereAmd/v/0_9_0-
|
|
1
|
+
LWR.define('lwr/everywhereAmd/v/0_9_0-alpha_29', ['exports', 'lwr/vault/v/0_9_0-alpha_29'], function (exports, _0_9_0Alpha_29) { '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_9_0Alpha_29.getAuthInfo();
|
|
8
8
|
if (authInfo) {
|
|
9
9
|
return fetch(url, {
|
|
10
10
|
headers: {
|
|
@@ -54,7 +54,7 @@ LWR.define('lwr/everywhereAmd/v/0_9_0-alpha_27', ['exports', 'lwr/vault/v/0_9_0-
|
|
|
54
54
|
function authenticate(authInfo) {
|
|
55
55
|
// Put OAuth info into the vault
|
|
56
56
|
if (authInfo) {
|
|
57
|
-
|
|
57
|
+
_0_9_0Alpha_29.setAuthInfo(authInfo);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwr/init/v/0_9_0-
|
|
1
|
+
LWR.define('lwr/init/v/0_9_0-alpha_29', ['exports', 'lwr/metrics/v/0_9_0-alpha_29', 'lwr/profiler/v/0_9_0-alpha_29', 'lwc/v/2_38_1'], function (exports, _0_9_0Alpha_29$1, _0_9_0Alpha_29, _2_38_1) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function initializeWebComponent(elementName, Ctor) {
|
|
4
4
|
return _2_38_1.createElement(elementName, {
|
|
@@ -83,8 +83,8 @@ LWR.define('lwr/init/v/0_9_0-alpha_27', ['exports', 'lwr/metrics/v/0_9_0-alpha_2
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
id:
|
|
86
|
+
_0_9_0Alpha_29.logOperationStart({
|
|
87
|
+
id: _0_9_0Alpha_29$1.BOOTSTRAP_END
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwr/loader/v/0_9_0-
|
|
1
|
+
LWR.define('lwr/loader/v/0_9_0-alpha_29', ['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_9_0-alpha_27', ['exports'], function (exports) { 'use
|
|
|
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.9.0-alpha.
|
|
9
|
+
/* LWR Module Loader v0.9.0-alpha.29 */
|
|
10
10
|
const templateRegex = /\{([0-9]+)\}/g;
|
|
11
11
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
12
|
function templateString(template, args) {
|
|
@@ -105,7 +105,7 @@ LWR.define('lwr/loader/v/0_9_0-alpha_27', ['exports'], function (exports) { 'use
|
|
|
105
105
|
const MODULE_ALREADY_LOADED = Object.freeze({
|
|
106
106
|
code: 3017,
|
|
107
107
|
level: 0,
|
|
108
|
-
message: 'Marking module(s) as externally loaded, but they are already loaded:
|
|
108
|
+
message: 'Marking module(s) as externally loaded, but they are already loaded:'
|
|
109
109
|
});
|
|
110
110
|
const FAIL_HOOK_LOAD = Object.freeze({
|
|
111
111
|
code: 3018,
|
|
@@ -743,11 +743,8 @@ LWR.define('lwr/loader/v/0_9_0-alpha_27', ['exports'], function (exports) { 'use
|
|
|
743
743
|
* @param modules - list of module identifiers
|
|
744
744
|
*/
|
|
745
745
|
registerExternalModules(modules) {
|
|
746
|
-
const alreadyRegistered = [];
|
|
747
746
|
modules.map(id => {
|
|
748
|
-
if (this.namedDefineRegistry.has(id)) {
|
|
749
|
-
alreadyRegistered.push(id);
|
|
750
|
-
} else {
|
|
747
|
+
if (!this.namedDefineRegistry.has(id)) {
|
|
751
748
|
let resolveExternal;
|
|
752
749
|
let timer;
|
|
753
750
|
const moduleDefPromise = new Promise((resolve, reject) => {
|
|
@@ -770,12 +767,11 @@ LWR.define('lwr/loader/v/0_9_0-alpha_27', ['exports'], function (exports) { 'use
|
|
|
770
767
|
}
|
|
771
768
|
};
|
|
772
769
|
this.namedDefineRegistry.set(id, moduleDef);
|
|
770
|
+
} else if (process.env.NODE_ENV !== 'production' && hasConsole) {
|
|
771
|
+
// eslint-disable-next-line lwr/no-unguarded-apis
|
|
772
|
+
console.warn(MODULE_ALREADY_LOADED.message, id);
|
|
773
773
|
}
|
|
774
774
|
});
|
|
775
|
-
// throw error for modules that were already registered
|
|
776
|
-
if (alreadyRegistered.length) {
|
|
777
|
-
throw new LoaderError(MODULE_ALREADY_LOADED, [alreadyRegistered.join(', ')]);
|
|
778
|
-
}
|
|
779
775
|
}
|
|
780
776
|
getImportMetadataResolver() {
|
|
781
777
|
return this.resolver;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwr/vault/v/0_9_0-
|
|
1
|
+
LWR.define('lwr/vault/v/0_9_0-alpha_29', ['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.9.0-alpha.
|
|
7
|
+
/* LWR Error Shim v0.9.0-alpha.29 */
|
|
8
8
|
!function(){"use strict";if(!(globalThis.LWR&&globalThis.LWR.define)){const o=new Error("The LWR application failed to bootstrap");if(!globalThis.LWR||!globalThis.LWR.onError)throw o;globalThis.LWR.onError(o)}}();
|