@lwrjs/everywhere 0.9.0-alpha.26 → 0.9.0-alpha.28

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.
Files changed (22) hide show
  1. package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/96d66cbaf1b94dad6cdeef34aee259cd/config.js +10 -0
  2. 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_26 → 0_9_0-alpha_28}/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js +4 -4
  3. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/{0_9_0-alpha_26 → 0_9_0-alpha_28}/s/c538071acf5bde58e816967a14c465c3/lwr_everywhereAmd.js +3 -3
  4. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/init/v/{0_9_0-alpha_26 → 0_9_0-alpha_28}/s/206e6e0af6f019fdfd86d87d56331bc2/lwr_init.js +3 -3
  5. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/loader/v/{0_9_0-alpha_26/s/89d1323af34eb6daf9b222fcc6f05f58 → 0_9_0-alpha_28/s/77539cdda693efda0b8244be84948117}/lwr_loader.js +7 -11
  6. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/{0_9_0-alpha_26 → 0_9_0-alpha_28}/s/3426e42c3e22ce07ab2adc62c4c523a0/lwr_metrics.js +1 -1
  7. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/{0_9_0-alpha_26 → 0_9_0-alpha_28}/s/e25f3b0b8b5c096acebf847d0a83ea62/lwr_profiler.js +1 -1
  8. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/vault/v/{0_9_0-alpha_26 → 0_9_0-alpha_28}/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +1 -1
  9. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/{0_9_0-alpha_26 → 0_9_0-alpha_28}/lwr-error-shim.js +1 -1
  10. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.bundle.js/v/0_9_0-alpha_28/lwr-loader-shim.bundle.js +1547 -0
  11. package/build/assets/amd/lwr-everywhere-debug.js +14 -18
  12. package/build/assets/amd/lwr-everywhere-min.js +1 -1
  13. package/build/assets/amd/lwr-everywhere.js +14 -18
  14. package/build/assets/core/lwr-everywhere-debug.js +10 -14
  15. package/build/assets/core/lwr-everywhere-min.js +1 -1
  16. package/build/assets/core/lwr-everywhere.js +10 -14
  17. package/build/assets/esm/lwr-everywhere-debug.js +1 -1
  18. package/build/assets/esm/lwr-everywhere-min.js +1 -1
  19. package/build/assets/esm/lwr-everywhere.js +1 -1
  20. package/package.json +5 -5
  21. package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/2458c6e319e9056787252989c2e26389/config.js +0 -10
  22. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.js/v/0_9_0-alpha_26/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_28","autoBoot":true,"imports":{"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_9_0-alpha_28/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_28"],"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_9_0-alpha_28/s/206e6e0af6f019fdfd86d87d56331bc2/lwr_init.js":["lwr/init/v/0_9_0-alpha_28"],"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_9_0-alpha_28/s/3426e42c3e22ce07ab2adc62c4c523a0/lwr_metrics.js":["lwr/metrics/v/0_9_0-alpha_28"],"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_9_0-alpha_28/s/e25f3b0b8b5c096acebf847d0a83ea62/lwr_profiler.js":["lwr/profiler/v/0_9_0-alpha_28"],"/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_28/s/c538071acf5bde58e816967a14c465c3/lwr_everywhereAmd.js":["lwr/everywhereAmd/v/0_9_0-alpha_28"],"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_9_0-alpha_28/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js":["lwr/vault/v/0_9_0-alpha_28"]},"index":{"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_28":"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_9_0-alpha_28/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js","lwr/init/v/0_9_0-alpha_28":"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_9_0-alpha_28/s/206e6e0af6f019fdfd86d87d56331bc2/lwr_init.js","lwr/metrics/v/0_9_0-alpha_28":"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_9_0-alpha_28/s/3426e42c3e22ce07ab2adc62c4c523a0/lwr_metrics.js","lwr/profiler/v/0_9_0-alpha_28":"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_9_0-alpha_28/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_28":"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_9_0-alpha_28/s/c538071acf5bde58e816967a14c465c3/lwr_everywhereAmd.js","lwr/vault/v/0_9_0-alpha_28":"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_9_0-alpha_28/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js"},"rootComponents":["lwr/everywhereAmd/v/0_9_0-alpha_28"],"requiredModules":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_28"],"preloadModules":["lwr/init/v/0_9_0-alpha_28","lwr/metrics/v/0_9_0-alpha_28","lwc/v/2_38_1","lwr/everywhereAmd/v/0_9_0-alpha_28"],"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_28/s/77539cdda693efda0b8244be84948117/lwr_loader.js":["lwr/loader/v/0_9_0-alpha_28"]})
9
+ if (!globalThis.LWR.index) { globalThis.LWR.index = {}; }
10
+ Object.assign(globalThis.LWR.index, {"lwr/loader/v/0_9_0-alpha_28":"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_9_0-alpha_28/s/77539cdda693efda0b8244be84948117/lwr_loader.js"})
@@ -1,13 +1,13 @@
1
- LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_26', ['lwr/loader/v/0_9_0-alpha_26', 'lwr/init/v/0_9_0-alpha_26'], function (_0_9_0Alpha_26$1, _0_9_0Alpha_26) { 'use strict';
1
+ LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_28', ['lwr/loader/v/0_9_0-alpha_28', 'lwr/init/v/0_9_0-alpha_28'], function (_0_9_0Alpha_28$1, _0_9_0Alpha_28) { '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 = _0_9_0Alpha_26.toKebabCase(rootSpecifier);
9
- return _0_9_0Alpha_26$1.load(rootSpecifier, '@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_26').then(({default: Ctor}) => {
10
- _0_9_0Alpha_26.init([[element, Ctor]], ssrProps);
8
+ const element = _0_9_0Alpha_28.toKebabCase(rootSpecifier);
9
+ return _0_9_0Alpha_28$1.load(rootSpecifier, '@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_28').then(({default: Ctor}) => {
10
+ _0_9_0Alpha_28.init([[element, Ctor]], ssrProps);
11
11
  });
12
12
  }));
13
13
 
@@ -1,10 +1,10 @@
1
- LWR.define('lwr/everywhereAmd/v/0_9_0-alpha_26', ['exports', 'lwr/vault/v/0_9_0-alpha_26'], function (exports, _0_9_0Alpha_26) { 'use strict';
1
+ LWR.define('lwr/everywhereAmd/v/0_9_0-alpha_28', ['exports', 'lwr/vault/v/0_9_0-alpha_28'], function (exports, _0_9_0Alpha_28) { '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 = _0_9_0Alpha_26.getAuthInfo();
7
+ const authInfo = _0_9_0Alpha_28.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_26', ['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
- _0_9_0Alpha_26.setAuthInfo(authInfo);
57
+ _0_9_0Alpha_28.setAuthInfo(authInfo);
58
58
  }
59
59
  }
60
60
 
@@ -1,4 +1,4 @@
1
- LWR.define('lwr/init/v/0_9_0-alpha_26', ['exports', 'lwr/metrics/v/0_9_0-alpha_26', 'lwr/profiler/v/0_9_0-alpha_26', 'lwc/v/2_38_1'], function (exports, _0_9_0Alpha_26$1, _0_9_0Alpha_26, _2_38_1) { 'use strict';
1
+ LWR.define('lwr/init/v/0_9_0-alpha_28', ['exports', 'lwr/metrics/v/0_9_0-alpha_28', 'lwr/profiler/v/0_9_0-alpha_28', 'lwc/v/2_38_1'], function (exports, _0_9_0Alpha_28$1, _0_9_0Alpha_28, _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_26', ['exports', 'lwr/metrics/v/0_9_0-alpha_2
83
83
  }
84
84
  });
85
85
  }
86
- _0_9_0Alpha_26.logOperationStart({
87
- id: _0_9_0Alpha_26$1.BOOTSTRAP_END
86
+ _0_9_0Alpha_28.logOperationStart({
87
+ id: _0_9_0Alpha_28$1.BOOTSTRAP_END
88
88
  });
89
89
  }
90
90
 
@@ -1,4 +1,4 @@
1
- LWR.define('lwr/loader/v/0_9_0-alpha_26', ['exports'], function (exports) { 'use strict';
1
+ LWR.define('lwr/loader/v/0_9_0-alpha_28', ['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_26', ['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.26 */
9
+ /* LWR Module Loader v0.9.0-alpha.28 */
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_26', ['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: {0}'
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_26', ['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_26', ['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/metrics/v/0_9_0-alpha_26', ['exports'], function (exports) { 'use strict';
1
+ LWR.define('lwr/metrics/v/0_9_0-alpha_28', ['exports'], function (exports) { 'use strict';
2
2
 
3
3
  // Bootstrap / shim
4
4
  const BOOTSTRAP_PREFIX = 'lwr.bootstrap.';
@@ -1,4 +1,4 @@
1
- LWR.define('lwr/profiler/v/0_9_0-alpha_26', ['exports'], function (exports) { 'use strict';
1
+ LWR.define('lwr/profiler/v/0_9_0-alpha_28', ['exports'], function (exports) { 'use strict';
2
2
 
3
3
  var Phase;
4
4
  (function (Phase) {
@@ -1,4 +1,4 @@
1
- LWR.define('lwr/vault/v/0_9_0-alpha_26', ['exports'], function (exports) { 'use strict';
1
+ LWR.define('lwr/vault/v/0_9_0-alpha_28', ['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.26 */
7
+ /* LWR Error Shim v0.9.0-alpha.28 */
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)}}();