@lwrjs/everywhere 0.12.0-alpha.6 → 0.12.0-alpha.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/e050122262c9c7eb0f9fb8b85f52e5b3/config.js +11 -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_12_0-alpha_8/s/8bce578258518655194bd71d1d72aad5/@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_0_0/s/6e7ff236fd6011fdc06fb33b61261493 → 6_1_1/s/97cfd3dd664529265351b5d32d878542}/lwc.js +89 -68
  4. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/{0_12_0-alpha_6 → 0_12_0-alpha_8}/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_12_0-alpha_6 → 0_12_0-alpha_8}/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_12_0-alpha_6/s/7d8a8e317de06e72e1bf307d3ea8d1f0 → 0_12_0-alpha_8/s/defdc8250ae07a7f1997e7288f4130fa}/lwr_loader.js +126 -132
  7. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/{0_12_0-alpha_6 → 0_12_0-alpha_8}/s/274c8343f810353bbad085a79709395f/lwr_metrics.js +1 -1
  8. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/preInit/v/{0_12_0-alpha_6 → 0_12_0-alpha_8}/s/f3a204ef43fb3057d910f80d7e9f9ba7/lwr_preInit.js +1 -1
  9. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/{0_12_0-alpha_6 → 0_12_0-alpha_8}/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_12_0-alpha_6 → 0_12_0-alpha_8}/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +1 -1
  11. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/{0_12_0-alpha_6 → 0_12_0-alpha_8}/lwr-error-shim.js +1 -1
  12. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.bundle.js/v/{0_12_0-alpha_6 → 0_12_0-alpha_8}/lwr-loader-shim.bundle.js +131 -163
  13. package/build/assets/amd/lwr-everywhere-debug.js +133 -165
  14. package/build/assets/amd/lwr-everywhere-min.js +2 -2
  15. package/build/assets/amd/lwr-everywhere.js +133 -165
  16. package/build/assets/core/lwr-everywhere-debug.js +129 -161
  17. package/build/assets/core/lwr-everywhere-min.js +1 -1
  18. package/build/assets/core/lwr-everywhere.js +129 -161
  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 +8 -8
  23. package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/c4ab7e5dbc0697efbf468c722dbd35d0/config.js +0 -11
  24. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_12_0-alpha_6/s/8bce578258518655194bd71d1d72aad5/@lwrjs_app-service_amd-bootstrap_module_amd.js +0 -14
@@ -0,0 +1,11 @@
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_12_0-alpha_8","autoBoot":true,"imports":{"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_12_0-alpha_8/s/8bce578258518655194bd71d1d72aad5/@lwrjs_app-service_amd-bootstrap_module_amd.js":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_12_0-alpha_8"],"/1/module/amd/1/l/en-US/mi/lwr%2FpreInit%2Fv%2F0_12_0-alpha_8/s/f3a204ef43fb3057d910f80d7e9f9ba7/lwr_preInit.js":["lwr/preInit/v/0_12_0-alpha_8"],"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_12_0-alpha_8/s/f30361ad8ff7af505bf4d465c8499181/lwr_init.js":["lwr/init/v/0_12_0-alpha_8"],"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_12_0-alpha_8/s/274c8343f810353bbad085a79709395f/lwr_metrics.js":["lwr/metrics/v/0_12_0-alpha_8"],"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_12_0-alpha_8/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js":["lwr/profiler/v/0_12_0-alpha_8"],"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F6_1_1/s/97cfd3dd664529265351b5d32d878542/lwc.js":["lwc/v/6_1_1"],"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_12_0-alpha_8/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js":["lwr/everywhereAmd/v/0_12_0-alpha_8"],"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_12_0-alpha_8/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js":["lwr/vault/v/0_12_0-alpha_8"]},"index":{"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_12_0-alpha_8":"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_12_0-alpha_8/s/8bce578258518655194bd71d1d72aad5/@lwrjs_app-service_amd-bootstrap_module_amd.js","lwr/preInit/v/0_12_0-alpha_8":"/1/module/amd/1/l/en-US/mi/lwr%2FpreInit%2Fv%2F0_12_0-alpha_8/s/f3a204ef43fb3057d910f80d7e9f9ba7/lwr_preInit.js","lwr/init/v/0_12_0-alpha_8":"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_12_0-alpha_8/s/f30361ad8ff7af505bf4d465c8499181/lwr_init.js","lwr/metrics/v/0_12_0-alpha_8":"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_12_0-alpha_8/s/274c8343f810353bbad085a79709395f/lwr_metrics.js","lwr/profiler/v/0_12_0-alpha_8":"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_12_0-alpha_8/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js","lwc/v/6_1_1":"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F6_1_1/s/97cfd3dd664529265351b5d32d878542/lwc.js","lwr/everywhereAmd/v/0_12_0-alpha_8":"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_12_0-alpha_8/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js","lwr/vault/v/0_12_0-alpha_8":"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_12_0-alpha_8/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js"},"rootComponents":["lwr/everywhereAmd/v/0_12_0-alpha_8"],"serverData":{},"requiredModules":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_12_0-alpha_8"],"preloadModules":["lwr/preInit/v/0_12_0-alpha_8","lwr/init/v/0_12_0-alpha_8","lwr/metrics/v/0_12_0-alpha_8","lwc/v/6_1_1","lwr/everywhereAmd/v/0_12_0-alpha_8"],"endpoints":{"uris":{"mapping":"/1/mapping/amd/1/l/en-US/mp/"}}});
5
+ globalThis.process = { env: {"NODE_ENV":"compat","SSR":false,"basePath":"","locale":"en-US","assetBasePath":"","uiBasePath":""} };
6
+ globalThis.lwcRuntimeFlags = { ENABLE_MIXED_SHADOW_MODE: false };
7
+ // Appended by Static Site Generator
8
+ if (!globalThis.LWR.imports) { globalThis.LWR.imports = {}; }
9
+ Object.assign(globalThis.LWR.imports, {"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_12_0-alpha_8/s/defdc8250ae07a7f1997e7288f4130fa/lwr_loader.js":["lwr/loader/v/0_12_0-alpha_8"]})
10
+ if (!globalThis.LWR.index) { globalThis.LWR.index = {}; }
11
+ Object.assign(globalThis.LWR.index, {"lwr/loader/v/0_12_0-alpha_8":"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_12_0-alpha_8/s/defdc8250ae07a7f1997e7288f4130fa/lwr_loader.js"})
@@ -0,0 +1,14 @@
1
+ LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_12_0-alpha_8', ['lwr/loader/v/0_12_0-alpha_8', 'lwr/preInit/v/0_12_0-alpha_8', 'lwr/init/v/0_12_0-alpha_8'], (function (_0_12_0Alpha_8$2, _0_12_0Alpha_8, _0_12_0Alpha_8$1) { 'use strict';
2
+
3
+ const clientBootstrapConfig = _0_12_0Alpha_8.getClientBootstrapConfig();
4
+
5
+ // initialize additional non-configured root components
6
+ const { rootComponents, serverData } = clientBootstrapConfig;
7
+ Promise.all(rootComponents.map(async (rootSpecifier) => {
8
+ const element = _0_12_0Alpha_8$1.toKebabCase(rootSpecifier);
9
+ return _0_12_0Alpha_8$2.load(rootSpecifier, '@lwrjs/app-service/amd-bootstrap/module/amd/v/0_12_0-alpha_8').then(({default: Ctor}) => {
10
+ _0_12_0Alpha_8$1.init([[element, Ctor]], serverData);
11
+ });
12
+ }));
13
+
14
+ }));
@@ -1,10 +1,10 @@
1
- LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
1
+ LWR.define('lwc/v/6_1_1', ['exports'], (function (exports) { 'use strict';
2
2
 
3
3
  /**
4
- * Copyright (C) 2023 salesforce.com, inc.
4
+ * Copyright (c) 2024 Salesforce, Inc.
5
5
  */
6
6
  /**
7
- * Copyright (C) 2023 salesforce.com, inc.
7
+ * Copyright (c) 2024 Salesforce, Inc.
8
8
  */
9
9
  /*
10
10
  * Copyright (c) 2018, salesforce.com, inc.
@@ -229,18 +229,6 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
229
229
  // This includes aria-* attributes as well as the special non-ARIA "for" attribute
230
230
  const ID_REFERENCING_ATTRIBUTES_SET = /*@__PURE__*/new Set(['aria-activedescendant', 'aria-controls', 'aria-describedby', 'aria-details', 'aria-errormessage', 'aria-flowto', 'aria-labelledby', 'aria-owns', 'for']);
231
231
 
232
- /*
233
- * Copyright (c) 2018, salesforce.com, inc.
234
- * All rights reserved.
235
- * SPDX-License-Identifier: MIT
236
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
237
- */
238
- // See browser support for globalThis:
239
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#browser_compatibility
240
- /* istanbul ignore next */
241
- // @ts-ignore
242
- const _globalThis = typeof globalThis === 'object' ? globalThis : window;
243
-
244
232
  /*
245
233
  * Copyright (c) 2023, Salesforce.com, inc.
246
234
  * All rights reserved.
@@ -319,12 +307,12 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
319
307
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
320
308
  */
321
309
  // Increment whenever the LWC template compiler changes
322
- const LWC_VERSION = "6.0.0";
310
+ const LWC_VERSION = "6.1.1";
323
311
  const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
324
- /** version: 6.0.0 */
312
+ /** version: 6.1.1 */
325
313
 
326
314
  /**
327
- * Copyright (C) 2023 salesforce.com, inc.
315
+ * Copyright (c) 2024 Salesforce, Inc.
328
316
  */
329
317
 
330
318
  /*
@@ -338,22 +326,20 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
338
326
  const features = {
339
327
  PLACEHOLDER_TEST_FLAG: null,
340
328
  ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST: null,
341
- ENABLE_MIXED_SHADOW_MODE: null,
342
329
  DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE: null,
343
330
  ENABLE_WIRE_SYNC_EMIT: null,
344
331
  DISABLE_LIGHT_DOM_UNSCOPED_CSS: null,
345
332
  ENABLE_FROZEN_TEMPLATE: null,
346
333
  ENABLE_LEGACY_SCOPE_TOKENS: null,
347
- ENABLE_FORCE_SHADOW_MIGRATE_MODE: null
334
+ ENABLE_FORCE_SHADOW_MIGRATE_MODE: null,
335
+ DISABLE_TEMPORARY_V5_COMPILER_SUPPORT: null
348
336
  };
349
- // eslint-disable-next-line no-restricted-properties
350
- if (!_globalThis.lwcRuntimeFlags) {
351
- Object.defineProperty(_globalThis, 'lwcRuntimeFlags', {
337
+ if (!globalThis.lwcRuntimeFlags) {
338
+ Object.defineProperty(globalThis, 'lwcRuntimeFlags', {
352
339
  value: create(null)
353
340
  });
354
341
  }
355
- // eslint-disable-next-line no-restricted-properties
356
- const flags = _globalThis.lwcRuntimeFlags;
342
+ const flags = globalThis.lwcRuntimeFlags;
357
343
  /**
358
344
  * Set the value at runtime of a given feature flag. This method only be invoked once per feature
359
345
  * flag. It is meant to be used during the app initialization.
@@ -401,10 +387,10 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
401
387
  setFeatureFlag(name, value);
402
388
  }
403
389
  }
404
- /** version: 6.0.0 */
390
+ /** version: 6.1.1 */
405
391
 
406
392
  /**
407
- * Copyright (C) 2023 salesforce.com, inc.
393
+ * Copyright (c) 2024 Salesforce, Inc.
408
394
  */
409
395
 
410
396
  /*
@@ -790,6 +776,32 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
790
776
  throw new ReferenceError();
791
777
  }
792
778
  }
779
+ // Temporary fix for when the LWC v5 compiler is used in conjunction with a v6+ engine
780
+ // The old compiler format used the "slot" attribute in the `data` bag, whereas the new
781
+ // format uses the special `slotAssignment` key.
782
+ // This should be removed when the LWC v5 compiler is not used anywhere where it could be mismatched
783
+ // with another LWC engine version.
784
+ // TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
785
+ function applyTemporaryCompilerV5SlotFix(data) {
786
+ if (lwcRuntimeFlags.DISABLE_TEMPORARY_V5_COMPILER_SUPPORT) {
787
+ return data;
788
+ }
789
+ const {
790
+ attrs
791
+ } = data;
792
+ if (!isUndefined$1(attrs)) {
793
+ const {
794
+ slot
795
+ } = attrs;
796
+ if (!isUndefined$1(slot) && !isNull(slot)) {
797
+ return Object.assign(Object.assign({}, data), {
798
+ attrs: cloneAndOmitKey(attrs, 'slot'),
799
+ slotAssignment: String(slot)
800
+ });
801
+ }
802
+ }
803
+ return data;
804
+ }
793
805
 
794
806
  /*
795
807
  * Copyright (c) 2020, salesforce.com, inc.
@@ -805,8 +817,8 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
805
817
  return isFunction$1(obj) && hasOwnProperty$1.call(obj, '__circular__');
806
818
  }
807
819
  var _a, _b;
808
- const instrumentDef = (_a = _globalThis.__lwc_instrument_cmp_def) !== null && _a !== void 0 ? _a : noop;
809
- const instrumentInstance = (_b = _globalThis.__lwc_instrument_cmp_instance) !== null && _b !== void 0 ? _b : noop;
820
+ const instrumentDef = (_a = globalThis.__lwc_instrument_cmp_def) !== null && _a !== void 0 ? _a : noop;
821
+ const instrumentInstance = (_b = globalThis.__lwc_instrument_cmp_instance) !== null && _b !== void 0 ? _b : noop;
810
822
 
811
823
  /*
812
824
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1490,7 +1502,7 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
1490
1502
  valueMutated(originalTarget, key);
1491
1503
  return true;
1492
1504
  }
1493
- /*LWC compiler v6.0.0*/
1505
+ /*LWC compiler v6.1.1*/
1494
1506
  }
1495
1507
  const getterMap = new WeakMap();
1496
1508
  const setterMap = new WeakMap();
@@ -1583,7 +1595,7 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
1583
1595
  /* istanbul ignore next */
1584
1596
  return false;
1585
1597
  }
1586
- /*LWC compiler v6.0.0*/
1598
+ /*LWC compiler v6.1.1*/
1587
1599
  }
1588
1600
  function extract(objectOrArray) {
1589
1601
  if (isArray(objectOrArray)) {
@@ -3335,7 +3347,7 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
3335
3347
  }
3336
3348
  function HTMLBridgeElementFactory(SuperClass, publicProperties, methods, observedFields, proto, hasCustomSuperClass) {
3337
3349
  const HTMLBridgeElement = class extends SuperClass {
3338
- /*LWC compiler v6.0.0*/
3350
+ /*LWC compiler v6.1.1*/
3339
3351
  };
3340
3352
  // generating the hash table for attributes to avoid duplicate fields and facilitate validation
3341
3353
  // and false positives in case of inheritance.
@@ -3742,6 +3754,10 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
3742
3754
  if (!isUndefined$1(ctorShadowSupportMode) && ctorShadowSupportMode !== "any" /* ShadowSupportMode.Any */ && ctorShadowSupportMode !== "reset" /* ShadowSupportMode.Default */ && ctorShadowSupportMode !== "native" /* ShadowSupportMode.Native */) {
3743
3755
  logError(`Invalid value for static property shadowSupportMode: '${ctorShadowSupportMode}'`);
3744
3756
  }
3757
+ // TODO [#3971]: Completely remove shadowSupportMode "any"
3758
+ if (ctorShadowSupportMode === "any" /* ShadowSupportMode.Any */) {
3759
+ logWarn(`Invalid value 'any' for static property shadowSupportMode. 'any' is deprecated and will be removed in a future release--use 'native' instead.`);
3760
+ }
3745
3761
  if (!isUndefined$1(ctorRenderMode) && ctorRenderMode !== 'light' && ctorRenderMode !== 'shadow') {
3746
3762
  logError(`Invalid value for static property renderMode: '${ctorRenderMode}'. renderMode must be either 'light' or 'shadow'.`);
3747
3763
  }
@@ -5561,6 +5577,8 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
5561
5577
  }
5562
5578
  });
5563
5579
  }
5580
+ // TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
5581
+ data = applyTemporaryCompilerV5SlotFix(data);
5564
5582
  const {
5565
5583
  key,
5566
5584
  slotAssignment
@@ -5603,6 +5621,8 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
5603
5621
  renderMode,
5604
5622
  apiVersion
5605
5623
  } = vmBeingRendered;
5624
+ // TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
5625
+ data = applyTemporaryCompilerV5SlotFix(data);
5606
5626
  if (!isUndefined$1(slotset) && !isUndefined$1(slotset.slotAssignments) && !isUndefined$1(slotset.slotAssignments[slotName]) && slotset.slotAssignments[slotName].length !== 0) {
5607
5627
  const newChildren = [];
5608
5628
  const slotAssignments = slotset.slotAssignments[slotName];
@@ -5701,6 +5721,8 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
5701
5721
  });
5702
5722
  }
5703
5723
  }
5724
+ // TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
5725
+ data = applyTemporaryCompilerV5SlotFix(data);
5704
5726
  const {
5705
5727
  key,
5706
5728
  slotAssignment
@@ -6237,7 +6259,6 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
6237
6259
  });
6238
6260
  function evaluateTemplate(vm, html) {
6239
6261
  if (process.env.NODE_ENV !== 'production') {
6240
- assert.isTrue(isFunction$1(html), `evaluateTemplate() second argument must be an imported template instead of ${toString$1(html)}`);
6241
6262
  // in dev-mode, we support hot swapping of templates, which means that
6242
6263
  // the component instance might be attempting to use an old version of
6243
6264
  // the template, while internally, we have a replacement for it.
@@ -6262,6 +6283,10 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
6262
6283
  tro.observe(() => {
6263
6284
  // Reset the cache memoizer for template when needed.
6264
6285
  if (html !== cmpTemplate) {
6286
+ // Check that the template was built by the compiler.
6287
+ if (!isTemplateRegistered(html)) {
6288
+ throw new TypeError(`Invalid template returned by the render() method on ${vm.tagName}. It must return an imported template (e.g.: \`import html from "./${vm.def.name}.html"\`), instead, it has returned: ${toString$1(html)}.`);
6289
+ }
6265
6290
  if (process.env.NODE_ENV !== 'production') {
6266
6291
  validateLightDomTemplate(html, vm);
6267
6292
  }
@@ -6273,10 +6298,6 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
6273
6298
  // and snabbdom just rely on the IDs.
6274
6299
  resetComponentRoot(vm);
6275
6300
  }
6276
- // Check that the template was built by the compiler.
6277
- if (!isTemplateRegistered(html)) {
6278
- throw new TypeError(`Invalid template returned by the render() method on ${vm}. It must return an imported template (e.g.: \`import html from "./${vm.def.name}.html"\`), instead, it has returned: ${toString$1(html)}.`);
6279
- }
6280
6301
  vm.cmpTemplate = html;
6281
6302
  // Create a brand new template cache for the swapped templated.
6282
6303
  context.tplCache = create(null);
@@ -6676,7 +6697,7 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
6676
6697
  vm.debugInfo = create(null);
6677
6698
  }
6678
6699
  vm.stylesheets = computeStylesheets(vm, def.ctor);
6679
- const computedShadowMode = computeShadowMode(def, vm.owner, renderer);
6700
+ const computedShadowMode = computeShadowMode(def, vm.owner, renderer, hydrated);
6680
6701
  if (lwcRuntimeFlags.ENABLE_FORCE_SHADOW_MIGRATE_MODE) {
6681
6702
  vm.shadowMode = 0 /* ShadowMode.Native */;
6682
6703
  vm.shadowMigrateMode = computedShadowMode === 1 /* ShadowMode.Synthetic */;
@@ -6764,45 +6785,45 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
6764
6785
  renderMode
6765
6786
  } = def;
6766
6787
  // Assume null `owner` - this is what happens in hydration cases anyway
6767
- const shadowMode = computeShadowMode(def, /* owner */null, renderer);
6788
+ // Also assume we are not in hydration mode for this exported API
6789
+ const shadowMode = computeShadowMode(def, /* owner */null, renderer, false);
6768
6790
  return {
6769
6791
  renderMode,
6770
6792
  shadowMode
6771
6793
  };
6772
6794
  }
6773
- function computeShadowMode(def, owner, renderer) {
6795
+ function computeShadowMode(def, owner, renderer, hydrated) {
6774
6796
  // Force the shadow mode to always be native. Used for running tests with synthetic shadow patches
6775
6797
  // on, but components running in actual native shadow mode
6776
6798
  if (process.env.NODE_ENV !== 'production' && lwcRuntimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
6777
6799
  return 0 /* ShadowMode.Native */;
6778
6800
  }
6801
+ if (isTrue(hydrated)) {
6802
+ // hydration only supports native shadow
6803
+ return 0 /* ShadowMode.Native */;
6804
+ }
6779
6805
  const {
6780
6806
  isSyntheticShadowDefined
6781
6807
  } = renderer;
6782
6808
  let shadowMode;
6783
- // If ENABLE_FORCE_SHADOW_MIGRATE_MODE is true, then ShadowMode.Synthetic here will mean "force-migrate" mode.
6784
6809
  if (isSyntheticShadowDefined || lwcRuntimeFlags.ENABLE_FORCE_SHADOW_MIGRATE_MODE) {
6785
6810
  if (def.renderMode === 0 /* RenderMode.Light */) {
6786
6811
  // ShadowMode.Native implies "not synthetic shadow" which is consistent with how
6787
6812
  // everything defaults to native when the synthetic shadow polyfill is unavailable.
6788
6813
  shadowMode = 0 /* ShadowMode.Native */;
6789
- } else if (lwcRuntimeFlags.ENABLE_MIXED_SHADOW_MODE || def.shadowSupportMode === "native" /* ShadowSupportMode.Native */) {
6790
- if (def.shadowSupportMode === "any" /* ShadowSupportMode.Any */ || def.shadowSupportMode === "native" /* ShadowSupportMode.Native */) {
6814
+ } else if (def.shadowSupportMode === "native" /* ShadowSupportMode.Native */) {
6815
+ shadowMode = 0 /* ShadowMode.Native */;
6816
+ } else {
6817
+ const shadowAncestor = getNearestShadowAncestor(owner);
6818
+ if (!isNull(shadowAncestor) && shadowAncestor.shadowMode === 0 /* ShadowMode.Native */) {
6819
+ // Transitive support for native Shadow DOM. A component in native mode
6820
+ // transitively opts all of its descendants into native.
6791
6821
  shadowMode = 0 /* ShadowMode.Native */;
6792
6822
  } else {
6793
- const shadowAncestor = getNearestShadowAncestor(owner);
6794
- if (!isNull(shadowAncestor) && shadowAncestor.shadowMode === 0 /* ShadowMode.Native */) {
6795
- // Transitive support for native Shadow DOM. A component in native mode
6796
- // transitively opts all of its descendants into native.
6797
- shadowMode = 0 /* ShadowMode.Native */;
6798
- } else {
6799
- // Synthetic if neither this component nor any of its ancestors are configured
6800
- // to be native.
6801
- shadowMode = 1 /* ShadowMode.Synthetic */;
6802
- }
6823
+ // Synthetic if neither this component nor any of its ancestors are configured
6824
+ // to be native.
6825
+ shadowMode = 1 /* ShadowMode.Synthetic */;
6803
6826
  }
6804
- } else {
6805
- shadowMode = 1 /* ShadowMode.Synthetic */;
6806
6827
  }
6807
6828
  } else {
6808
6829
  // Native if the synthetic shadow polyfill is unavailable.
@@ -7206,12 +7227,12 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
7206
7227
  // See: https://sfdc.co/synthetic-aria
7207
7228
  //
7208
7229
  // Use the unpatched native getElementById/querySelectorAll rather than the synthetic one
7209
- const getElementById = _globalThis[KEY__NATIVE_GET_ELEMENT_BY_ID];
7210
- const querySelectorAll = _globalThis[KEY__NATIVE_QUERY_SELECTOR_ALL];
7230
+ const getElementById = globalThis[KEY__NATIVE_GET_ELEMENT_BY_ID];
7231
+ const querySelectorAll = globalThis[KEY__NATIVE_QUERY_SELECTOR_ALL];
7211
7232
  // This is a "handoff" from synthetic-shadow to engine-core – we want to clean up after ourselves
7212
7233
  // so nobody else can misuse these global APIs.
7213
- delete _globalThis[KEY__NATIVE_GET_ELEMENT_BY_ID];
7214
- delete _globalThis[KEY__NATIVE_QUERY_SELECTOR_ALL];
7234
+ delete globalThis[KEY__NATIVE_GET_ELEMENT_BY_ID];
7235
+ delete globalThis[KEY__NATIVE_QUERY_SELECTOR_ALL];
7215
7236
  function isSyntheticShadowRootInstance(rootNode) {
7216
7237
  return rootNode !== document && isTrue(rootNode.synthetic);
7217
7238
  }
@@ -8269,7 +8290,7 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
8269
8290
  }
8270
8291
  return getReadOnlyProxy(obj);
8271
8292
  }
8272
- /** version: 6.0.0 */
8293
+ /** version: 6.1.1 */
8273
8294
 
8274
8295
  /*
8275
8296
  * Copyright (c) 2018, salesforce.com, inc.
@@ -8340,9 +8361,9 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
8340
8361
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
8341
8362
  */
8342
8363
  function init() {
8343
- const devtoolsFormatters = _globalThis.devtoolsFormatters || [];
8364
+ const devtoolsFormatters = globalThis.devtoolsFormatters || [];
8344
8365
  ArrayPush$1.call(devtoolsFormatters, LightningElementFormatter);
8345
- _globalThis.devtoolsFormatters = devtoolsFormatters;
8366
+ globalThis.devtoolsFormatters = devtoolsFormatters;
8346
8367
  }
8347
8368
  if (process.env.NODE_ENV !== 'production') {
8348
8369
  init();
@@ -8519,7 +8540,7 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
8519
8540
  // TODO [#2970]: LWC elements cannot be upgraded via new Ctor()
8520
8541
  // Do we want to support this? Throw an error? Currently for backwards compat it's a no-op.
8521
8542
  }
8522
- /*LWC compiler v6.0.0*/
8543
+ /*LWC compiler v6.1.1*/
8523
8544
  }
8524
8545
  UpgradableConstructor.formAssociated = true;
8525
8546
  for (const [propName, callback] of entries(LIFECYCLE_CALLBACKS)) {
@@ -8574,7 +8595,7 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
8574
8595
  function rendererFactory(baseRenderer) {
8575
8596
  const renderer = function (exports) {
8576
8597
  /**
8577
- * Copyright (C) 2023 salesforce.com, inc.
8598
+ * Copyright (c) 2024 Salesforce, Inc.
8578
8599
  */
8579
8600
  /*
8580
8601
  * Copyright (c) 2018, salesforce.com, inc.
@@ -8613,7 +8634,7 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
8613
8634
  function isNull(obj) {
8614
8635
  return obj === null;
8615
8636
  }
8616
- /** version: 6.0.0 */
8637
+ /** version: 6.1.1 */
8617
8638
 
8618
8639
  /*
8619
8640
  * Copyright (c) 2023, salesforce.com, inc.
@@ -8633,7 +8654,7 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
8633
8654
  this.setNewContext = setNewContext;
8634
8655
  this.setDisconnectedCallback = setDisconnectedCallback;
8635
8656
  }
8636
- /*LWC compiler v6.0.0*/
8657
+ /*LWC compiler v6.1.1*/
8637
8658
  }
8638
8659
  function registerContextConsumer(elm, adapterContextToken, subscriptionPayload) {
8639
8660
  dispatchEvent(elm, new WireContextSubscriptionEvent(adapterContextToken, subscriptionPayload));
@@ -9013,7 +9034,7 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
9013
9034
  attributeChangedCallback(name, oldValue, newValue) {
9014
9035
  attributeChangedCallback.call(this, name, oldValue, newValue);
9015
9036
  }
9016
- /*LWC compiler v6.0.0*/
9037
+ /*LWC compiler v6.1.1*/
9017
9038
  }, _a.observedAttributes = observedAttributes, _a;
9018
9039
  }
9019
9040
 
@@ -9228,7 +9249,7 @@ LWR.define('lwc/v/6_0_0', ['exports'], (function (exports) { 'use strict';
9228
9249
  });
9229
9250
  });
9230
9251
  }
9231
- /** version: 6.0.0 */
9252
+ /** version: 6.1.1 */
9232
9253
 
9233
9254
  exports.LightningElement = LightningElement;
9234
9255
  exports.__unstable__ProfilerControl = profilerControl;
@@ -1,10 +1,10 @@
1
- LWR.define('lwr/everywhereAmd/v/0_12_0-alpha_6', ['exports', 'lwr/vault/v/0_12_0-alpha_6'], (function (exports, _0_12_0Alpha_6) { 'use strict';
1
+ LWR.define('lwr/everywhereAmd/v/0_12_0-alpha_8', ['exports', 'lwr/vault/v/0_12_0-alpha_8'], (function (exports, _0_12_0Alpha_8) { '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_12_0Alpha_6.getAuthInfo();
7
+ const authInfo = _0_12_0Alpha_8.getAuthInfo();
8
8
  if (authInfo) {
9
9
  return fetch(url, {
10
10
  headers: {
@@ -53,7 +53,7 @@ LWR.define('lwr/everywhereAmd/v/0_12_0-alpha_6', ['exports', 'lwr/vault/v/0_12_0
53
53
  function authenticate(authInfo) {
54
54
  // Put OAuth info into the vault
55
55
  if (authInfo) {
56
- _0_12_0Alpha_6.setAuthInfo(authInfo);
56
+ _0_12_0Alpha_8.setAuthInfo(authInfo);
57
57
  }
58
58
  }
59
59
 
@@ -1,16 +1,16 @@
1
- LWR.define('lwr/init/v/0_12_0-alpha_6', ['exports', 'lwr/metrics/v/0_12_0-alpha_6', 'lwr/profiler/v/0_12_0-alpha_6', 'lwc/v/6_0_0'], (function (exports, _0_12_0Alpha_6$1, _0_12_0Alpha_6, _6_0_0) { 'use strict';
1
+ LWR.define('lwr/init/v/0_12_0-alpha_8', ['exports', 'lwr/metrics/v/0_12_0-alpha_8', 'lwr/profiler/v/0_12_0-alpha_8', 'lwc/v/6_1_1'], (function (exports, _0_12_0Alpha_8$1, _0_12_0Alpha_8, _6_1_1) { '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_0_0.hydrateComponent(customElement, Ctor, props);
8
+ _6_1_1.hydrateComponent(customElement, Ctor, props);
9
9
  }
10
10
  // </hydrateComponentProxy>
11
11
 
12
12
  function initializeWebComponent(elementName, Ctor) {
13
- return _6_0_0.createElement(elementName, {
13
+ return _6_1_1.createElement(elementName, {
14
14
  is: Ctor
15
15
  });
16
16
  }
@@ -47,13 +47,13 @@ LWR.define('lwr/init/v/0_12_0-alpha_6', ['exports', 'lwr/metrics/v/0_12_0-alpha_
47
47
  */
48
48
  function init(rootModules, serverData = {}) {
49
49
  if (typeof customElements === 'undefined' || typeof document === 'undefined') {
50
- _0_12_0Alpha_6.logOperationStart({
51
- id: _0_12_0Alpha_6$1.BOOTSTRAP_END
50
+ _0_12_0Alpha_8.logOperationStart({
51
+ id: _0_12_0Alpha_8$1.BOOTSTRAP_END
52
52
  });
53
53
  return;
54
54
  }
55
- _0_12_0Alpha_6.logOperationStart({
56
- id: _0_12_0Alpha_6$1.INIT
55
+ _0_12_0Alpha_8.logOperationStart({
56
+ id: _0_12_0Alpha_8$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_12_0-alpha_6', ['exports', 'lwr/metrics/v/0_12_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_12_0Alpha_6.logOperationStart({
65
- id: _0_12_0Alpha_6$1.INIT_MODULE,
64
+ _0_12_0Alpha_8.logOperationStart({
65
+ id: _0_12_0Alpha_8$1.INIT_MODULE,
66
66
  specifier,
67
67
  specifierIndex: ++index
68
68
  });
@@ -71,8 +71,8 @@ LWR.define('lwr/init/v/0_12_0-alpha_6', ['exports', 'lwr/metrics/v/0_12_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_12_0Alpha_6.logOperationEnd({
75
- id: _0_12_0Alpha_6$1.INIT_MODULE,
74
+ _0_12_0Alpha_8.logOperationEnd({
75
+ id: _0_12_0Alpha_8$1.INIT_MODULE,
76
76
  specifier,
77
77
  specifierIndex: index,
78
78
  metadata: {
@@ -85,8 +85,8 @@ LWR.define('lwr/init/v/0_12_0-alpha_6', ['exports', 'lwr/metrics/v/0_12_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_12_0Alpha_6.logOperationStart({
89
- id: _0_12_0Alpha_6$1.INIT_MODULE,
88
+ _0_12_0Alpha_8.logOperationStart({
89
+ id: _0_12_0Alpha_8$1.INIT_MODULE,
90
90
  specifier,
91
91
  specifierIndex: ++index
92
92
  });
@@ -97,8 +97,8 @@ LWR.define('lwr/init/v/0_12_0-alpha_6', ['exports', 'lwr/metrics/v/0_12_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_12_0Alpha_6.logOperationEnd({
101
- id: _0_12_0Alpha_6$1.INIT_MODULE,
100
+ _0_12_0Alpha_8.logOperationEnd({
101
+ id: _0_12_0Alpha_8$1.INIT_MODULE,
102
102
  specifier,
103
103
  specifierIndex: index,
104
104
  metadata: {
@@ -136,8 +136,8 @@ LWR.define('lwr/init/v/0_12_0-alpha_6', ['exports', 'lwr/metrics/v/0_12_0-alpha_
136
136
  if (parent) {
137
137
  parent.replaceChild(component, element);
138
138
  }
139
- _0_12_0Alpha_6.logOperationEnd({
140
- id: _0_12_0Alpha_6$1.INIT_MODULE,
139
+ _0_12_0Alpha_8.logOperationEnd({
140
+ id: _0_12_0Alpha_8$1.INIT_MODULE,
141
141
  specifier,
142
142
  specifierIndex: index,
143
143
  metadata: {
@@ -146,11 +146,11 @@ LWR.define('lwr/init/v/0_12_0-alpha_6', ['exports', 'lwr/metrics/v/0_12_0-alpha_
146
146
  });
147
147
  }
148
148
  }
149
- _0_12_0Alpha_6.logOperationEnd({
150
- id: _0_12_0Alpha_6$1.INIT
149
+ _0_12_0Alpha_8.logOperationEnd({
150
+ id: _0_12_0Alpha_8$1.INIT
151
151
  });
152
- _0_12_0Alpha_6.logOperationStart({
153
- id: _0_12_0Alpha_6$1.BOOTSTRAP_END
152
+ _0_12_0Alpha_8.logOperationStart({
153
+ id: _0_12_0Alpha_8$1.BOOTSTRAP_END
154
154
  });
155
155
  }
156
156