@lwrjs/everywhere 0.13.0-alpha.12 → 0.13.0-alpha.13

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 (25) hide show
  1. package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/f4a28f1dc47d826e84660311911c8cab/config.js +12 -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_13_0-alpha_13/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js +14 -0
  3. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwc/v/{6_6_4/s/f3631872947ba9ba56d1595c533c3911 → 6_6_5/s/b8c97f50493286526ef44aa0119c98a5}/lwc.js +22 -22
  4. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/{0_13_0-alpha_12 → 0_13_0-alpha_13}/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js +3 -3
  5. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/init/v/{0_13_0-alpha_12 → 0_13_0-alpha_13}/s/f30361ad8ff7af505bf4d465c8499181/lwr_init.js +21 -21
  6. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/loader/v/{0_13_0-alpha_12/s/de8858ace5fe0476eedc56012cc9922a → 0_13_0-alpha_13/s/3f0d7758fedb9dbca2318be6348fd301}/lwr_loader.js +15 -7
  7. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/{0_13_0-alpha_12/s/274c8343f810353bbad085a79709395f → 0_13_0-alpha_13/s/fb8c5dd340c69fdf7ded52d3eba633b9}/lwr_metrics.js +2 -2
  8. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/preInit/v/{0_13_0-alpha_12 → 0_13_0-alpha_13}/s/ec0fad0e38a96bb0b88c9f4553460347/lwr_preInit.js +1 -1
  9. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/{0_13_0-alpha_12 → 0_13_0-alpha_13}/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js +1 -1
  10. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/vault/v/{0_13_0-alpha_12 → 0_13_0-alpha_13}/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +1 -1
  11. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/0_13_0-alpha_13/lwr-error-shim.js +8 -0
  12. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.bundle.js/v/{0_13_0-alpha_12 → 0_13_0-alpha_13}/lwr-loader-shim.bundle.js +38 -19
  13. package/build/assets/amd/lwr-everywhere-debug.js +24 -16
  14. package/build/assets/amd/lwr-everywhere-min.js +2 -2
  15. package/build/assets/amd/lwr-everywhere.js +24 -16
  16. package/build/assets/core/lwr-everywhere-debug.js +20 -12
  17. package/build/assets/core/lwr-everywhere-min.js +2 -2
  18. package/build/assets/core/lwr-everywhere.js +20 -12
  19. package/build/assets/esm/lwr-everywhere-debug.js +1 -1
  20. package/build/assets/esm/lwr-everywhere-min.js +1 -1
  21. package/build/assets/esm/lwr-everywhere.js +1 -1
  22. package/package.json +7 -7
  23. package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/7366f627cbc4163527f3423e02f9a60b/config.js +0 -12
  24. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_12/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js +0 -14
  25. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/0_13_0-alpha_12/lwr-error-shim.js +0 -8
@@ -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_0-alpha_13","autoBoot":true,"imports":{"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_13_0-alpha_13/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_13"],"/1/module/amd/1/l/en-US/mi/lwr%2FpreInit%2Fv%2F0_13_0-alpha_13/s/ec0fad0e38a96bb0b88c9f4553460347/lwr_preInit.js":["lwr/preInit/v/0_13_0-alpha_13"],"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_13_0-alpha_13/s/f30361ad8ff7af505bf4d465c8499181/lwr_init.js":["lwr/init/v/0_13_0-alpha_13"],"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_13_0-alpha_13/s/fb8c5dd340c69fdf7ded52d3eba633b9/lwr_metrics.js":["lwr/metrics/v/0_13_0-alpha_13"],"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F6_6_5/s/b8c97f50493286526ef44aa0119c98a5/lwc.js":["lwc/v/6_6_5"],"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_13_0-alpha_13/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js":["lwr/everywhereAmd/v/0_13_0-alpha_13"],"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_13_0-alpha_13/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js":["lwr/vault/v/0_13_0-alpha_13"]},"index":{"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_13":"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_13_0-alpha_13/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js","lwr/preInit/v/0_13_0-alpha_13":"/1/module/amd/1/l/en-US/mi/lwr%2FpreInit%2Fv%2F0_13_0-alpha_13/s/ec0fad0e38a96bb0b88c9f4553460347/lwr_preInit.js","lwr/init/v/0_13_0-alpha_13":"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_13_0-alpha_13/s/f30361ad8ff7af505bf4d465c8499181/lwr_init.js","lwr/metrics/v/0_13_0-alpha_13":"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_13_0-alpha_13/s/fb8c5dd340c69fdf7ded52d3eba633b9/lwr_metrics.js","lwc/v/6_6_5":"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F6_6_5/s/b8c97f50493286526ef44aa0119c98a5/lwc.js","lwr/everywhereAmd/v/0_13_0-alpha_13":"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_13_0-alpha_13/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js","lwr/vault/v/0_13_0-alpha_13":"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_13_0-alpha_13/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js"},"rootComponents":["lwr/everywhereAmd/v/0_13_0-alpha_13"],"serverData":{},"requiredModules":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_13"],"preloadModules":["lwr/preInit/v/0_13_0-alpha_13","lwr/init/v/0_13_0-alpha_13","lwr/metrics/v/0_13_0-alpha_13","lwc/v/6_6_5","lwr/everywhereAmd/v/0_13_0-alpha_13"],"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_0-alpha_13/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js":["lwr/profiler/v/0_13_0-alpha_13"],"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_13_0-alpha_13/s/3f0d7758fedb9dbca2318be6348fd301/lwr_loader.js":["lwr/loader/v/0_13_0-alpha_13"]})
11
+ if (!globalThis.LWR.index) { globalThis.LWR.index = {}; }
12
+ Object.assign(globalThis.LWR.index, {"lwr/profiler/v/0_13_0-alpha_13":"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_13_0-alpha_13/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js","lwr/loader/v/0_13_0-alpha_13":"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_13_0-alpha_13/s/3f0d7758fedb9dbca2318be6348fd301/lwr_loader.js"})
@@ -0,0 +1,14 @@
1
+ LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_13', ['lwr/loader/v/0_13_0-alpha_13', 'lwr/preInit/v/0_13_0-alpha_13', 'lwr/init/v/0_13_0-alpha_13'], (function (_0_13_0Alpha_13$2, _0_13_0Alpha_13, _0_13_0Alpha_13$1) { 'use strict';
2
+
3
+ const clientBootstrapConfig = _0_13_0Alpha_13.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_0Alpha_13$1.toKebabCase(rootSpecifier);
9
+ return _0_13_0Alpha_13$2.load(rootSpecifier, '@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_13').then(({default: Ctor}) => {
10
+ _0_13_0Alpha_13$1.init([[element, Ctor]], serverData);
11
+ });
12
+ }));
13
+
14
+ }));
@@ -1,4 +1,4 @@
1
- LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
1
+ LWR.define('lwc/v/6_6_5', ['exports'], (function (exports) { 'use strict';
2
2
 
3
3
  /**
4
4
  * Copyright (c) 2024 Salesforce, Inc.
@@ -442,9 +442,9 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
442
442
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
443
443
  */
444
444
  // Increment whenever the LWC template compiler changes
445
- const LWC_VERSION = "6.6.4";
445
+ const LWC_VERSION = "6.6.5";
446
446
  const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
447
- /** version: 6.6.4 */
447
+ /** version: 6.6.5 */
448
448
 
449
449
  /**
450
450
  * Copyright (c) 2024 Salesforce, Inc.
@@ -530,7 +530,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
530
530
  setFeatureFlag(name, value);
531
531
  }
532
532
  }
533
- /** version: 6.6.4 */
533
+ /** version: 6.6.5 */
534
534
 
535
535
  /**
536
536
  * Copyright (c) 2024 Salesforce, Inc.
@@ -1722,7 +1722,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
1722
1722
  valueMutated(originalTarget, key);
1723
1723
  return true;
1724
1724
  }
1725
- /*LWC compiler v6.6.4*/
1725
+ /*LWC compiler v6.6.5*/
1726
1726
  }
1727
1727
  const getterMap = new WeakMap();
1728
1728
  const setterMap = new WeakMap();
@@ -1815,7 +1815,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
1815
1815
  /* istanbul ignore next */
1816
1816
  return false;
1817
1817
  }
1818
- /*LWC compiler v6.6.4*/
1818
+ /*LWC compiler v6.6.5*/
1819
1819
  }
1820
1820
  function extract(objectOrArray) {
1821
1821
  if (isArray(objectOrArray)) {
@@ -3522,7 +3522,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
3522
3522
  }
3523
3523
  function HTMLBridgeElementFactory(SuperClass, publicProperties, methods, observedFields, proto, hasCustomSuperClass) {
3524
3524
  const HTMLBridgeElement = class extends SuperClass {
3525
- /*LWC compiler v6.6.4*/
3525
+ /*LWC compiler v6.6.5*/
3526
3526
  };
3527
3527
  // generating the hash table for attributes to avoid duplicate fields and facilitate validation
3528
3528
  // and false positives in case of inheritance.
@@ -5933,7 +5933,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
5933
5933
  factory,
5934
5934
  owner: getVMBeingRendered(),
5935
5935
  elm: undefined,
5936
- sel: undefined,
5936
+ sel: '__scoped_slot_fragment__',
5937
5937
  key: undefined,
5938
5938
  slotName
5939
5939
  };
@@ -5944,7 +5944,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
5944
5944
  const fragment = fragmentFactory(parts);
5945
5945
  const vnode = {
5946
5946
  type: 4 /* VNodeType.Static */,
5947
- sel: undefined,
5947
+ sel: '__static__',
5948
5948
  key,
5949
5949
  elm: undefined,
5950
5950
  fragment,
@@ -5962,7 +5962,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
5962
5962
  const trailing = useCommentNodes ? co('') : t('');
5963
5963
  return {
5964
5964
  type: 5 /* VNodeType.Fragment */,
5965
- sel: undefined,
5965
+ sel: '__fragment__',
5966
5966
  key,
5967
5967
  elm: undefined,
5968
5968
  children: [leading, ...children, trailing],
@@ -6254,10 +6254,10 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
6254
6254
  }
6255
6255
  // [t]ext node
6256
6256
  function t(text) {
6257
- let sel, key, elm;
6257
+ let key, elm;
6258
6258
  return {
6259
6259
  type: 0 /* VNodeType.Text */,
6260
- sel,
6260
+ sel: '__text__',
6261
6261
  text,
6262
6262
  elm,
6263
6263
  key,
@@ -6266,13 +6266,13 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
6266
6266
  }
6267
6267
  // [co]mment node
6268
6268
  function co(text) {
6269
- let sel, elm;
6269
+ let elm, key;
6270
6270
  return {
6271
6271
  type: 1 /* VNodeType.Comment */,
6272
- sel,
6272
+ sel: '__comment__',
6273
6273
  text,
6274
6274
  elm,
6275
- key: 'c',
6275
+ key,
6276
6276
  owner: getVMBeingRendered()
6277
6277
  };
6278
6278
  }
@@ -8838,7 +8838,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
8838
8838
  }
8839
8839
  return getReadOnlyProxy(obj);
8840
8840
  }
8841
- /** version: 6.6.4 */
8841
+ /** version: 6.6.5 */
8842
8842
 
8843
8843
  /*
8844
8844
  * Copyright (c) 2018, salesforce.com, inc.
@@ -9138,7 +9138,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
9138
9138
  runFormStateRestoreCallback(this, state, reason);
9139
9139
  }
9140
9140
  }
9141
- /*LWC compiler v6.6.4*/
9141
+ /*LWC compiler v6.6.5*/
9142
9142
  };
9143
9143
  BaseHTMLElement = HTMLElement; // cache to track if it changes
9144
9144
  }
@@ -9153,7 +9153,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
9153
9153
  // Using a BaseUpgradableConstructor superclass here is a perf optimization to avoid
9154
9154
  // re-defining the same logic (connectedCallback, disconnectedCallback, etc.) over and over.
9155
9155
  class UpgradableConstructor extends BaseUpgradableConstructor {
9156
- /*LWC compiler v6.6.4*/
9156
+ /*LWC compiler v6.6.5*/
9157
9157
  }
9158
9158
  if (isFormAssociated) {
9159
9159
  // Perf optimization - the vast majority of components have formAssociated=false,
@@ -9276,7 +9276,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
9276
9276
  function isNull(obj) {
9277
9277
  return obj === null;
9278
9278
  }
9279
- /** version: 6.6.4 */
9279
+ /** version: 6.6.5 */
9280
9280
 
9281
9281
  /*
9282
9282
  * Copyright (c) 2023, salesforce.com, inc.
@@ -9296,7 +9296,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
9296
9296
  this.setNewContext = setNewContext;
9297
9297
  this.setDisconnectedCallback = setDisconnectedCallback;
9298
9298
  }
9299
- /*LWC compiler v6.6.4*/
9299
+ /*LWC compiler v6.6.5*/
9300
9300
  }
9301
9301
  function registerContextConsumer(elm, adapterContextToken, subscriptionPayload) {
9302
9302
  dispatchEvent(elm, new WireContextSubscriptionEvent(adapterContextToken, subscriptionPayload));
@@ -9710,7 +9710,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
9710
9710
  formStateRestoreCallback(state, reason) {
9711
9711
  runFormStateRestoreCallback(this, state, reason);
9712
9712
  }
9713
- /*LWC compiler v6.6.4*/
9713
+ /*LWC compiler v6.6.5*/
9714
9714
  }, _a.observedAttributes = observedAttributes,
9715
9715
  // Note CustomElementConstructor is not upgraded by LWC and inherits directly from HTMLElement which means it calls the native
9716
9716
  // attachInternals API.
@@ -9939,7 +9939,7 @@ LWR.define('lwc/v/6_6_4', ['exports'], (function (exports) { 'use strict';
9939
9939
  });
9940
9940
  });
9941
9941
  }
9942
- /** version: 6.6.4 */
9942
+ /** version: 6.6.5 */
9943
9943
 
9944
9944
  exports.LightningElement = LightningElement;
9945
9945
  exports.__unstable__ProfilerControl = profilerControl;
@@ -1,10 +1,10 @@
1
- LWR.define('lwr/everywhereAmd/v/0_13_0-alpha_12', ['exports', 'lwr/vault/v/0_13_0-alpha_12'], (function (exports, _0_13_0Alpha_12) { 'use strict';
1
+ LWR.define('lwr/everywhereAmd/v/0_13_0-alpha_13', ['exports', 'lwr/vault/v/0_13_0-alpha_13'], (function (exports, _0_13_0Alpha_13) { '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_13_0Alpha_12.getAuthInfo();
7
+ const authInfo = _0_13_0Alpha_13.getAuthInfo();
8
8
  if (authInfo) {
9
9
  return fetch(url, {
10
10
  headers: {
@@ -53,7 +53,7 @@ LWR.define('lwr/everywhereAmd/v/0_13_0-alpha_12', ['exports', 'lwr/vault/v/0_13_
53
53
  function authenticate(authInfo) {
54
54
  // Put OAuth info into the vault
55
55
  if (authInfo) {
56
- _0_13_0Alpha_12.setAuthInfo(authInfo);
56
+ _0_13_0Alpha_13.setAuthInfo(authInfo);
57
57
  }
58
58
  }
59
59
 
@@ -1,16 +1,16 @@
1
- LWR.define('lwr/init/v/0_13_0-alpha_12', ['exports', 'lwr/metrics/v/0_13_0-alpha_12', 'lwr/profiler/v/0_13_0-alpha_12', 'lwc/v/6_6_4'], (function (exports, _0_13_0Alpha_12$1, _0_13_0Alpha_12, _6_6_4) { 'use strict';
1
+ LWR.define('lwr/init/v/0_13_0-alpha_13', ['exports', 'lwr/metrics/v/0_13_0-alpha_13', 'lwr/profiler/v/0_13_0-alpha_13', 'lwc/v/6_6_5'], (function (exports, _0_13_0Alpha_13$1, _0_13_0Alpha_13, _6_6_5) { '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
- _6_6_4.hydrateComponent(customElement, Ctor, props);
8
+ _6_6_5.hydrateComponent(customElement, Ctor, props);
9
9
  }
10
10
  // </hydrateComponentProxy>
11
11
 
12
12
  function initializeWebComponent(elementName, Ctor) {
13
- return _6_6_4.createElement(elementName, {
13
+ return _6_6_5.createElement(elementName, {
14
14
  is: Ctor
15
15
  });
16
16
  }
@@ -47,13 +47,13 @@ LWR.define('lwr/init/v/0_13_0-alpha_12', ['exports', 'lwr/metrics/v/0_13_0-alpha
47
47
  */
48
48
  function init(rootModules, serverData = {}) {
49
49
  if (typeof customElements === 'undefined' || typeof document === 'undefined') {
50
- _0_13_0Alpha_12.logOperationStart({
51
- id: _0_13_0Alpha_12$1.BOOTSTRAP_END
50
+ _0_13_0Alpha_13.logOperationStart({
51
+ id: _0_13_0Alpha_13$1.BOOTSTRAP_END
52
52
  });
53
53
  return;
54
54
  }
55
- _0_13_0Alpha_12.logOperationStart({
56
- id: _0_13_0Alpha_12$1.INIT
55
+ _0_13_0Alpha_13.logOperationStart({
56
+ id: _0_13_0Alpha_13$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_13_0-alpha_12', ['exports', 'lwr/metrics/v/0_13_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
- _0_13_0Alpha_12.logOperationStart({
65
- id: _0_13_0Alpha_12$1.INIT_MODULE,
64
+ _0_13_0Alpha_13.logOperationStart({
65
+ id: _0_13_0Alpha_13$1.INIT_MODULE,
66
66
  specifier,
67
67
  specifierIndex: ++index
68
68
  });
@@ -71,8 +71,8 @@ LWR.define('lwr/init/v/0_13_0-alpha_12', ['exports', 'lwr/metrics/v/0_13_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
- _0_13_0Alpha_12.logOperationEnd({
75
- id: _0_13_0Alpha_12$1.INIT_MODULE,
74
+ _0_13_0Alpha_13.logOperationEnd({
75
+ id: _0_13_0Alpha_13$1.INIT_MODULE,
76
76
  specifier,
77
77
  specifierIndex: index,
78
78
  metadata: {
@@ -85,8 +85,8 @@ LWR.define('lwr/init/v/0_13_0-alpha_12', ['exports', 'lwr/metrics/v/0_13_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
- _0_13_0Alpha_12.logOperationStart({
89
- id: _0_13_0Alpha_12$1.INIT_MODULE,
88
+ _0_13_0Alpha_13.logOperationStart({
89
+ id: _0_13_0Alpha_13$1.INIT_MODULE,
90
90
  specifier,
91
91
  specifierIndex: ++index
92
92
  });
@@ -97,8 +97,8 @@ LWR.define('lwr/init/v/0_13_0-alpha_12', ['exports', 'lwr/metrics/v/0_13_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
- _0_13_0Alpha_12.logOperationEnd({
101
- id: _0_13_0Alpha_12$1.INIT_MODULE,
100
+ _0_13_0Alpha_13.logOperationEnd({
101
+ id: _0_13_0Alpha_13$1.INIT_MODULE,
102
102
  specifier,
103
103
  specifierIndex: index,
104
104
  metadata: {
@@ -136,8 +136,8 @@ LWR.define('lwr/init/v/0_13_0-alpha_12', ['exports', 'lwr/metrics/v/0_13_0-alpha
136
136
  if (parent) {
137
137
  parent.replaceChild(component, element);
138
138
  }
139
- _0_13_0Alpha_12.logOperationEnd({
140
- id: _0_13_0Alpha_12$1.INIT_MODULE,
139
+ _0_13_0Alpha_13.logOperationEnd({
140
+ id: _0_13_0Alpha_13$1.INIT_MODULE,
141
141
  specifier,
142
142
  specifierIndex: index,
143
143
  metadata: {
@@ -146,11 +146,11 @@ LWR.define('lwr/init/v/0_13_0-alpha_12', ['exports', 'lwr/metrics/v/0_13_0-alpha
146
146
  });
147
147
  }
148
148
  }
149
- _0_13_0Alpha_12.logOperationEnd({
150
- id: _0_13_0Alpha_12$1.INIT
149
+ _0_13_0Alpha_13.logOperationEnd({
150
+ id: _0_13_0Alpha_13$1.INIT
151
151
  });
152
- _0_13_0Alpha_12.logOperationStart({
153
- id: _0_13_0Alpha_12$1.BOOTSTRAP_END
152
+ _0_13_0Alpha_13.logOperationStart({
153
+ id: _0_13_0Alpha_13$1.BOOTSTRAP_END
154
154
  });
155
155
  }
156
156
 
@@ -1,4 +1,4 @@
1
- LWR.define('lwr/loader/v/0_13_0-alpha_12', ['exports'], (function (exports) { 'use strict';
1
+ LWR.define('lwr/loader/v/0_13_0-alpha_13', ['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_0-alpha_12', ['exports'], (function (exports) { 'u
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.0-alpha.12 */
9
+ /* LWR Module Loader v0.13.0-alpha.13 */
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_0-alpha_12', ['exports'], (function (exports) { 'u
25
25
  super();
26
26
  this.message = generateErrorMessage(errorInfo, errorArgs);
27
27
  }
28
- /*LWC compiler v6.6.4*/
28
+ /*LWC compiler v6.6.5*/
29
29
  }
30
30
  function invariant(condition, errorInfo) {
31
31
  if (!condition) {
@@ -127,6 +127,11 @@ LWR.define('lwr/loader/v/0_13_0-alpha_12', ['exports'], (function (exports) { 'u
127
127
  level: 0,
128
128
  message: 'Error evaluating module "{0}", error was "{1}"'
129
129
  });
130
+ const UNRESOLVEABLE_MAPPING_ERROR = Object.freeze({
131
+ code: 3022,
132
+ level: 0,
133
+ message: 'Unexpected undefined URI resolving mapping for "{0}"'
134
+ });
130
135
 
131
136
  /* importMap errors */
132
137
  Object.freeze({
@@ -304,7 +309,7 @@ LWR.define('lwr/loader/v/0_13_0-alpha_12', ['exports'], (function (exports) { 'u
304
309
  // Loader: modules
305
310
  const LOADER_PREFIX = 'lwr.loader.';
306
311
  const MODULE_DEFINE = `${LOADER_PREFIX}module.define`;
307
- const MODULE_DYNAMIC_LOAD = `${LOADER_PREFIX}moduleRegistry.dynamicLoad`;
312
+ const MODULE_DYNAMIC_LOAD = `${LOADER_PREFIX}module.dynamicLoad`;
308
313
  const MODULE_FETCH = `${LOADER_PREFIX}module.fetch`;
309
314
  const MODULE_ERROR = `${LOADER_PREFIX}module.error`;
310
315
 
@@ -354,7 +359,7 @@ LWR.define('lwr/loader/v/0_13_0-alpha_12', ['exports'], (function (exports) { 'u
354
359
  return `${mappingEndpoint}${specifiers}${modifiers}`;
355
360
  }
356
361
  getBaseUrl() {
357
- return this.config.baseUrl;
362
+ return this.config.baseUrl || '';
358
363
  }
359
364
  registerImportMappings(newImportMetadata, rootSpecifiers) {
360
365
  if (!rootSpecifiers || rootSpecifiers.length === 0) {
@@ -391,7 +396,7 @@ LWR.define('lwr/loader/v/0_13_0-alpha_12', ['exports'], (function (exports) { 'u
391
396
 
392
397
  // Get URL from the local cache or return undefiend
393
398
  getURI(specifier) {
394
- return this.importURICache.has(specifier) ? resolveUrl(this.importURICache.get(specifier).uri, this.getBaseUrl()) : undefined;
399
+ return this.importURICache && this.importURICache.has(specifier) ? resolveUrl(this.importURICache.get(specifier).uri, this.getBaseUrl()) : undefined;
395
400
  }
396
401
  resolveLocal(specifier) {
397
402
  const uri = this.getURI(specifier);
@@ -488,6 +493,9 @@ LWR.define('lwr/loader/v/0_13_0-alpha_12', ['exports'], (function (exports) { 'u
488
493
  // TODO For module invalidation with bundles it is recommended we have to send back all loaded root specified
489
494
  // to ensure we detect all conflicts.
490
495
  const uri = resolveUrl(this.buildMappingUrl(specifier), this.getBaseUrl());
496
+ if (!uri) {
497
+ throw new LoaderError(UNRESOLVEABLE_MAPPING_ERROR, [specifier]);
498
+ }
491
499
  return globalThis.fetch(uri).then(res => {
492
500
  if (!res.ok) {
493
501
  this.config.profiler.logOperationStart({
@@ -1269,7 +1277,7 @@ LWR.define('lwr/loader/v/0_13_0-alpha_12', ['exports'], (function (exports) { 'u
1269
1277
  let baseUrl = config.baseUrl;
1270
1278
  const mappingEndpoint = config.endpoints ? config.endpoints.uris.mapping : undefined;
1271
1279
  let profiler = config.profiler;
1272
- if (!mappingEndpoint) {
1280
+ if (!mappingEndpoint || !config.endpoints) {
1273
1281
  throw new LoaderError(NO_MAPPING_URL);
1274
1282
  }
1275
1283
 
@@ -1,4 +1,4 @@
1
- LWR.define('lwr/metrics/v/0_13_0-alpha_12', ['exports'], (function (exports) { 'use strict';
1
+ LWR.define('lwr/metrics/v/0_13_0-alpha_13', ['exports'], (function (exports) { 'use strict';
2
2
 
3
3
  // Bootstrap / shim
4
4
  const BOOTSTRAP_PREFIX = 'lwr.bootstrap.';
@@ -18,7 +18,7 @@ LWR.define('lwr/metrics/v/0_13_0-alpha_12', ['exports'], (function (exports) { '
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`;
21
+ const MODULE_DYNAMIC_LOAD = `${LOADER_PREFIX}module.dynamicLoad`;
22
22
  const MODULE_DYNAMIC_LOAD_COUNT = `${MODULE_DYNAMIC_LOAD}.count`;
23
23
  const MODULE_FETCH = `${LOADER_PREFIX}module.fetch`;
24
24
  const MODULE_FETCH_COUNT = `${MODULE_FETCH}.count`;
@@ -1,4 +1,4 @@
1
- LWR.define('lwr/preInit/v/0_13_0-alpha_12', ['exports'], (function (exports) { 'use strict';
1
+ LWR.define('lwr/preInit/v/0_13_0-alpha_13', ['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/profiler/v/0_13_0-alpha_12', ['exports'], (function (exports) { 'use strict';
1
+ LWR.define('lwr/profiler/v/0_13_0-alpha_13', ['exports'], (function (exports) { 'use strict';
2
2
 
3
3
  var Phase = /*#__PURE__*/function (Phase) {
4
4
  Phase[Phase["Start"] = 0] = "Start";
@@ -1,4 +1,4 @@
1
- LWR.define('lwr/vault/v/0_13_0-alpha_12', ['exports'], (function (exports) { 'use strict';
1
+ LWR.define('lwr/vault/v/0_13_0-alpha_13', ['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
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) 2021, salesforce.com, inc.
3
+ * All rights reserved.
4
+ * SPDX-License-Identifier: MIT
5
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
6
+ */
7
+ /* LWR Error Shim v0.13.0-alpha.13 */
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)}}();