@lwrjs/everywhere 0.21.7 → 0.22.1

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 (24) hide show
  1. package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/19a41f4f4c6816cc1f688bd4bfc5039c/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_21_7 → 0_21_8}/s/3aba11034f11c8d5598c93bfca4d4690/@lwrjs_app-service_amd-bootstrap_module_amd.js +5 -5
  3. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwc/v/{8_20_1/s/13f9f9934fd3a3c9f52760160b464d00 → 8_22_6/s/21cb42e66f1f2b4362fe6203653b692f}/lwc.js +130 -47
  4. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/{0_21_7 → 0_22_1}/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_21_7 → 0_21_8}/s/c5c8bdc0e87baf3d6b68b0603d670664/lwr_init.js +22 -22
  6. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/loader/v/{0_21_7/s/730dbe56c23f7b421f45c317e351be6f → 0_22_1/s/6586c1d7b8319771fe8b7861acbb37ca}/lwr_loader.js +5 -14
  7. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/{0_21_7 → 0_21_8}/s/fb8c5dd340c69fdf7ded52d3eba633b9/lwr_metrics.js +1 -1
  8. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/preInit/v/{0_21_7 → 0_21_8}/s/7d064ec3a80dbbccaa4845ea5eaef125/lwr_preInit.js +1 -1
  9. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/{0_21_7 → 0_21_8}/s/9f74c8370534ce02c6e7637abdcffedf/lwr_profiler.js +1 -1
  10. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/scheduler/v/{0_21_7 → 0_21_8}/s/fd3fe53248b540ca046ead92862ca496/lwr_scheduler.js +1 -1
  11. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/vault/v/{0_21_7 → 0_22_1}/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +1 -1
  12. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/{0_21_7 → 0_21_8}/lwr-error-shim.js +1 -1
  13. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.bundle.js/v/{0_21_7 → 0_21_8}/lwr-loader-shim.bundle.js +9 -18
  14. package/build/assets/amd/lwr-everywhere-debug.js +11 -20
  15. package/build/assets/amd/lwr-everywhere-min.js +2 -2
  16. package/build/assets/amd/lwr-everywhere.js +11 -20
  17. package/build/assets/core/lwr-everywhere-debug.js +7 -16
  18. package/build/assets/core/lwr-everywhere-min.js +2 -2
  19. package/build/assets/core/lwr-everywhere.js +7 -16
  20. package/build/assets/esm/lwr-everywhere-debug.js +1 -1
  21. package/build/assets/esm/lwr-everywhere-min.js +1 -1
  22. package/build/assets/esm/lwr-everywhere.js +1 -1
  23. package/package.json +7 -7
  24. package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/121a212d1c1430305d01594ee3058c1f/config.js +0 -12
@@ -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_21_8","autoBoot":true,"imports":{"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_21_8/s/3aba11034f11c8d5598c93bfca4d4690/@lwrjs_app-service_amd-bootstrap_module_amd.js":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_21_8"],"/1/module/amd/1/l/en-US/mi/lwr%2FpreInit%2Fv%2F0_21_8/s/7d064ec3a80dbbccaa4845ea5eaef125/lwr_preInit.js":["lwr/preInit/v/0_21_8"],"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_21_8/s/c5c8bdc0e87baf3d6b68b0603d670664/lwr_init.js":["lwr/init/v/0_21_8"],"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_21_8/s/fb8c5dd340c69fdf7ded52d3eba633b9/lwr_metrics.js":["lwr/metrics/v/0_21_8"],"/1/module/amd/1/l/en-US/mi/lwr%2Fscheduler%2Fv%2F0_21_8/s/fd3fe53248b540ca046ead92862ca496/lwr_scheduler.js":["lwr/scheduler/v/0_21_8"],"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F8_22_6/s/21cb42e66f1f2b4362fe6203653b692f/lwc.js":["lwc/v/8_22_6"],"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_22_1/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js":["lwr/everywhereAmd/v/0_22_1"],"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_22_1/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js":["lwr/vault/v/0_22_1"]},"index":{"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_21_8":"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_21_8/s/3aba11034f11c8d5598c93bfca4d4690/@lwrjs_app-service_amd-bootstrap_module_amd.js","lwr/preInit/v/0_21_8":"/1/module/amd/1/l/en-US/mi/lwr%2FpreInit%2Fv%2F0_21_8/s/7d064ec3a80dbbccaa4845ea5eaef125/lwr_preInit.js","lwr/init/v/0_21_8":"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_21_8/s/c5c8bdc0e87baf3d6b68b0603d670664/lwr_init.js","lwr/metrics/v/0_21_8":"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_21_8/s/fb8c5dd340c69fdf7ded52d3eba633b9/lwr_metrics.js","lwr/scheduler/v/0_21_8":"/1/module/amd/1/l/en-US/mi/lwr%2Fscheduler%2Fv%2F0_21_8/s/fd3fe53248b540ca046ead92862ca496/lwr_scheduler.js","lwc/v/8_22_6":"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F8_22_6/s/21cb42e66f1f2b4362fe6203653b692f/lwc.js","lwr/everywhereAmd/v/0_22_1":"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_22_1/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js","lwr/vault/v/0_22_1":"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_22_1/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js"},"rootComponents":["lwr/everywhereAmd/v/0_22_1"],"serverData":{},"requiredModules":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_21_8"],"preloadModules":["lwr/preInit/v/0_21_8","lwr/init/v/0_21_8","lwr/metrics/v/0_21_8","lwr/scheduler/v/0_21_8","lwc/v/8_22_6","lwr/everywhereAmd/v/0_22_1"],"endpoints":{"uris":{"mapping":"/1/mapping/amd/1/l/en-US/mp/"}}});
5
+ globalThis.LWR = {...globalThis.LWR, env: {"SSR":false,"SSREnabled":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, ENABLE_WIRE_SYNC_EMIT: 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_21_8/s/9f74c8370534ce02c6e7637abdcffedf/lwr_profiler.js":["lwr/profiler/v/0_21_8"],"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_22_1/s/6586c1d7b8319771fe8b7861acbb37ca/lwr_loader.js":["lwr/loader/v/0_22_1"]})
11
+ if (!globalThis.LWR.index) { globalThis.LWR.index = {}; }
12
+ Object.assign(globalThis.LWR.index, {"lwr/profiler/v/0_21_8":"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_21_8/s/9f74c8370534ce02c6e7637abdcffedf/lwr_profiler.js","lwr/loader/v/0_22_1":"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_22_1/s/6586c1d7b8319771fe8b7861acbb37ca/lwr_loader.js"})
@@ -1,15 +1,15 @@
1
- LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_21_7', ['lwr/loader/v/0_21_7', 'lwr/preInit/v/0_21_7', 'lwr/init/v/0_21_7'], (function (_0_21_7$2, _0_21_7, _0_21_7$1) { 'use strict';
1
+ LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_21_8', ['lwr/loader/v/0_22_1', 'lwr/preInit/v/0_21_8', 'lwr/init/v/0_21_8'], (function (_0_22_1, _0_21_8, _0_21_8$1) { 'use strict';
2
2
 
3
- const clientBootstrapConfig = _0_21_7.getClientBootstrapConfig();
3
+ const clientBootstrapConfig = _0_21_8.getClientBootstrapConfig();
4
4
  const { serverData, rootComponents } = clientBootstrapConfig;
5
5
 
6
6
  // initialize additional non-configured root components
7
7
  Promise.all(rootComponents.map(async (rootSpecifier) => {
8
- const element = _0_21_7$1.toKebabCase(rootSpecifier);
9
- const { default: Ctor } = await _0_21_7$2.load(rootSpecifier, '@lwrjs/app-service/amd-bootstrap/module/amd/v/0_21_7');
8
+ const element = _0_21_8$1.toKebabCase(rootSpecifier);
9
+ const { default: Ctor } = await _0_22_1.load(rootSpecifier, '@lwrjs/app-service/amd-bootstrap/module/amd/v/0_21_8');
10
10
  return [element, Ctor];
11
11
  })).then((rootModules) => {
12
- return _0_21_7$1.init(rootModules, serverData);
12
+ return _0_21_8$1.init(rootModules, serverData);
13
13
  }).then(() => {
14
14
  globalThis?.lwcRuntimeFlags?.ENABLE_WIRE_SYNC_EMIT &&
15
15
  (globalThis.lwcRuntimeFlags = {
@@ -1,4 +1,4 @@
1
- LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
1
+ LWR.define('lwc/v/8_22_6', ['exports'], (function (exports) { 'use strict';
2
2
 
3
3
  /**
4
4
  * Copyright (c) 2025 Salesforce, Inc.
@@ -273,34 +273,43 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
273
273
  61 /* APIVersion.V61_250_SUMMER_24 */,
274
274
  62 /* APIVersion.V62_252_WINTER_25 */,
275
275
  63 /* APIVersion.V63_254_SPRING_25 */,
276
+ 64 /* APIVersion.V64_256_SUMMER_25 */,
277
+ 65 /* APIVersion.V65_258_WINTER_26 */,
278
+ 66 /* APIVersion.V66_260_SPRING_26 */,
276
279
  ];
277
280
  const LOWEST_API_VERSION = allVersions[0];
278
281
  /**
279
- *
280
282
  * @param apiVersionFeature
281
- * @param apiVersion
282
283
  */
283
- function isAPIFeatureEnabled(apiVersionFeature, apiVersion) {
284
+ function minApiVersion(apiVersionFeature) {
284
285
  switch (apiVersionFeature) {
285
286
  case 0 /* APIFeature.LOWERCASE_SCOPE_TOKENS */:
286
287
  case 1 /* APIFeature.TREAT_ALL_PARSE5_ERRORS_AS_ERRORS */:
287
- return apiVersion >= 59 /* APIVersion.V59_246_WINTER_24 */;
288
+ return 59 /* APIVersion.V59_246_WINTER_24 */;
288
289
  case 3 /* APIFeature.DISABLE_OBJECT_REST_SPREAD_TRANSFORMATION */:
289
290
  case 4 /* APIFeature.SKIP_UNNECESSARY_REGISTER_DECORATORS */:
290
291
  case 5 /* APIFeature.USE_COMMENTS_FOR_FRAGMENT_BOOKENDS */:
291
292
  case 2 /* APIFeature.USE_FRAGMENTS_FOR_LIGHT_DOM_SLOTS */:
292
- return apiVersion >= 60 /* APIVersion.V60_248_SPRING_24 */;
293
+ return 60 /* APIVersion.V60_248_SPRING_24 */;
293
294
  case 7 /* APIFeature.ENABLE_ELEMENT_INTERNALS_AND_FACE */:
294
295
  case 6 /* APIFeature.USE_LIGHT_DOM_SLOT_FORWARDING */:
295
- return apiVersion >= 61 /* APIVersion.V61_250_SUMMER_24 */;
296
+ return 61 /* APIVersion.V61_250_SUMMER_24 */;
296
297
  case 8 /* APIFeature.ENABLE_THIS_DOT_HOST_ELEMENT */:
297
298
  case 9 /* APIFeature.ENABLE_THIS_DOT_STYLE */:
298
299
  case 10 /* APIFeature.TEMPLATE_CLASS_NAME_OBJECT_BINDING */:
299
- return apiVersion >= 62 /* APIVersion.V62_252_WINTER_25 */;
300
+ return 62 /* APIVersion.V62_252_WINTER_25 */;
300
301
  case 11 /* APIFeature.ENABLE_COMPLEX_TEMPLATE_EXPRESSIONS */:
301
- return apiVersion >= 63 /* APIVersion.V63_254_SPRING_25 */;
302
+ return 66 /* APIVersion.V66_260_SPRING_26 */;
302
303
  }
303
304
  }
305
+ /**
306
+ *
307
+ * @param apiVersionFeature
308
+ * @param apiVersion
309
+ */
310
+ function isAPIFeatureEnabled(apiVersionFeature, apiVersion) {
311
+ return apiVersion >= minApiVersion(apiVersionFeature);
312
+ }
304
313
 
305
314
  /*
306
315
  * Copyright (c) 2018, salesforce.com, inc.
@@ -555,7 +564,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
555
564
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
556
565
  */
557
566
  // Increment whenever the LWC template compiler changes
558
- const LWC_VERSION = "8.20.1";
567
+ const LWC_VERSION = "8.22.6";
559
568
  const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
560
569
 
561
570
  /*
@@ -611,20 +620,23 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
611
620
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
612
621
  */
613
622
  let hooksAreSet = false;
623
+ let sanitizeHtmlContentImpl = () => {
624
+ // locker-service patches this function during runtime to sanitize HTML content.
625
+ throw new Error('sanitizeHtmlContent hook must be implemented.');
626
+ };
614
627
  /**
615
628
  * EXPERIMENTAL: This function acts like a hook for Lightning Locker Service and other similar
616
629
  * libraries to sanitize HTML content. This hook process the content passed via the template to
617
630
  * lwc:inner-html directive.
618
631
  * It is meant to be overridden via `setHooks`; it throws an error by default.
619
632
  */
620
- let sanitizeHtmlContent = () => {
621
- // locker-service patches this function during runtime to sanitize HTML content.
622
- throw new Error('sanitizeHtmlContent hook must be implemented.');
633
+ const sanitizeHtmlContent = (value) => {
634
+ return sanitizeHtmlContentImpl(value);
623
635
  };
624
636
  function setHooks(hooks) {
625
637
  isFalse$1(hooksAreSet, 'Hooks are already overridden, only one definition is allowed.');
626
638
  hooksAreSet = true;
627
- sanitizeHtmlContent = hooks.sanitizeHtmlContent;
639
+ sanitizeHtmlContentImpl = hooks.sanitizeHtmlContent;
628
640
  }
629
641
  const DECLARATION_DELIMITER = /;(?![^(]*\))/g;
630
642
  const PROPERTY_DELIMITER = /:(.+)/s; // `/s` (dotAll) required to match styles across newlines, e.g. `color: \n red;`
@@ -666,8 +678,22 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
666
678
  function setTrustedSignalSet(signals) {
667
679
  isFalse$1(trustedSignals, 'Trusted Signal Set is already set!');
668
680
  trustedSignals = signals;
681
+ // Only used in LWC's Karma. Contained within the set function as there are multiple imports of
682
+ // this module. Placing it here ensures we reference the import where the trustedSignals set is maintained
683
+ if (process.env.NODE_ENV === 'test-lwc-integration') {
684
+ // Used to reset the global state between test runs
685
+ globalThis.__lwcResetTrustedSignals = () => (trustedSignals = undefined);
686
+ }
669
687
  }
670
- function isTrustedSignal(target) {
688
+ /**
689
+ * The legacy validation behavior was that this check should only
690
+ * be performed for runtimes that have provided a trustedSignals set.
691
+ * However, this resulted in a bug as all object values were
692
+ * being considered signals in environments where the trustedSignals
693
+ * set had not been defined. The runtime flag has been added as a killswitch
694
+ * in case the fix needs to be reverted.
695
+ */
696
+ function legacyIsTrustedSignal(target) {
671
697
  if (!trustedSignals) {
672
698
  // The runtime didn't set a trustedSignals set
673
699
  // this check should only be performed for runtimes that care about filtering signals to track
@@ -676,7 +702,13 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
676
702
  }
677
703
  return trustedSignals.has(target);
678
704
  }
679
- /** version: 8.20.1 */
705
+ function isTrustedSignal(target) {
706
+ if (!trustedSignals) {
707
+ return false;
708
+ }
709
+ return trustedSignals.has(target);
710
+ }
711
+ /** version: 8.22.6 */
680
712
 
681
713
  /**
682
714
  * Copyright (c) 2025 Salesforce, Inc.
@@ -700,10 +732,13 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
700
732
  ENABLE_LEGACY_SCOPE_TOKENS: null,
701
733
  ENABLE_FORCE_SHADOW_MIGRATE_MODE: null,
702
734
  ENABLE_EXPERIMENTAL_SIGNALS: null,
735
+ ENABLE_LEGACY_SIGNAL_CONTEXT_VALIDATION: null,
703
736
  DISABLE_SYNTHETIC_SHADOW: null,
704
737
  DISABLE_SCOPE_TOKEN_VALIDATION: null,
705
738
  LEGACY_LOCKER_ENABLED: null,
706
739
  DISABLE_LEGACY_VALIDATION: null,
740
+ DISABLE_DETACHED_REHYDRATION: null,
741
+ ENABLE_LEGACY_CONTEXT_CONNECTION: null,
707
742
  };
708
743
  if (!globalThis.lwcRuntimeFlags) {
709
744
  Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
@@ -735,8 +770,8 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
735
770
  console.info(`Attempt to set a value on an unknown feature flag "${name}" resulted in a NOOP.`);
736
771
  return;
737
772
  }
738
- // This may seem redundant, but `process.env.NODE_ENV === 'test-karma-lwc'` is replaced by Karma tests
739
- if (process.env.NODE_ENV === 'test-karma-lwc' || process.env.NODE_ENV !== 'production') {
773
+ // This may seem redundant, but `process.env.NODE_ENV === 'test-lwc-integration'` is replaced by Karma tests
774
+ if (process.env.NODE_ENV === 'test-lwc-integration' || process.env.NODE_ENV !== 'production') {
740
775
  // Allow the same flag to be set more than once outside of production to enable testing
741
776
  flags[name] = value;
742
777
  }
@@ -759,12 +794,12 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
759
794
  * @example setFeatureFlag("DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE", true)
760
795
  */
761
796
  function setFeatureFlagForTest(name, value) {
762
- // This may seem redundant, but `process.env.NODE_ENV === 'test-karma-lwc'` is replaced by Karma tests
763
- if (process.env.NODE_ENV === 'test-karma-lwc' || process.env.NODE_ENV !== 'production') {
797
+ // This may seem redundant, but `process.env.NODE_ENV === 'test-lwc-integration'` is replaced by Karma tests
798
+ if (process.env.NODE_ENV === 'test-lwc-integration' || process.env.NODE_ENV !== 'production') {
764
799
  setFeatureFlag(name, value);
765
800
  }
766
801
  }
767
- /** version: 8.20.1 */
802
+ /** version: 8.22.6 */
768
803
 
769
804
  /**
770
805
  * Copyright (c) 2025 Salesforce, Inc.
@@ -788,7 +823,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
788
823
  * @param value
789
824
  * @param msg
790
825
  */
791
- /** version: 8.20.1 */
826
+ /** version: 8.22.6 */
792
827
 
793
828
  /*
794
829
  * Copyright (c) 2023, salesforce.com, inc.
@@ -812,7 +847,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
812
847
  }
813
848
  }
814
849
  }
815
- /** version: 8.20.1 */
850
+ /** version: 8.22.6 */
816
851
 
817
852
  /**
818
853
  * Copyright (c) 2025 Salesforce, Inc.
@@ -949,7 +984,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
949
984
  */
950
985
  const alreadyLoggedMessages = new Set();
951
986
  // Only used in LWC's Karma tests
952
- if (process.env.NODE_ENV === 'test-karma-lwc') {
987
+ if (process.env.NODE_ENV === 'test-lwc-integration') {
953
988
  window.__lwcResetAlreadyLoggedMessages = () => {
954
989
  alreadyLoggedMessages.clear();
955
990
  };
@@ -1141,7 +1176,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
1141
1176
  // because the unit tests just create Reactive Observers on-the-fly.
1142
1177
  // Note we could explicitly target Vitest with `process.env.NODE_ENV === 'test'`, but then that would also
1143
1178
  // affect our downstream consumers' Jest/Vitest tests, and we don't want to throw an error just for a logger.
1144
- if (process.env.NODE_ENV === 'test-karma-lwc') {
1179
+ if (process.env.NODE_ENV === 'test-lwc-integration') {
1145
1180
  throw new Error('The VM should always be defined except possibly in unit tests');
1146
1181
  }
1147
1182
  }
@@ -1406,12 +1441,23 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
1406
1441
  if (lwcRuntimeFlags.ENABLE_EXPERIMENTAL_SIGNALS &&
1407
1442
  isObject(target) &&
1408
1443
  !isNull(target) &&
1409
- isTrustedSignal(target) &&
1410
1444
  true &&
1411
1445
  // Only subscribe if a template is being rendered by the engine
1412
1446
  tro.isObserving()) {
1413
- // Subscribe the template reactive observer's notify method, which will mark the vm as dirty and schedule hydration.
1414
- subscribeToSignal(component, target, tro.notify.bind(tro));
1447
+ /**
1448
+ * The legacy validation behavior was that this check should only
1449
+ * be performed for runtimes that have provided a trustedSignals set.
1450
+ * However, this resulted in a bug as all object values were
1451
+ * being considered signals in environments where the trustedSignals
1452
+ * set had not been defined. The runtime flag has been added as a killswitch
1453
+ * in case the fix needs to be reverted.
1454
+ */
1455
+ if (lwcRuntimeFlags.ENABLE_LEGACY_SIGNAL_CONTEXT_VALIDATION
1456
+ ? legacyIsTrustedSignal(target)
1457
+ : isTrustedSignal(target)) {
1458
+ // Subscribe the template reactive observer's notify method, which will mark the vm as dirty and schedule hydration.
1459
+ subscribeToSignal(component, target, tro.notify.bind(tro));
1460
+ }
1415
1461
  }
1416
1462
  }
1417
1463
  function createReactiveObserver(callback) {
@@ -3481,7 +3527,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
3481
3527
  */
3482
3528
  let warned = false;
3483
3529
  // Only used in LWC's Karma tests
3484
- if (process.env.NODE_ENV === 'test-karma-lwc') {
3530
+ if (process.env.NODE_ENV === 'test-lwc-integration') {
3485
3531
  window.__lwcResetWarnedOnVersionMismatch = () => {
3486
3532
  warned = false;
3487
3533
  };
@@ -3751,7 +3797,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
3751
3797
  seal(BaseBridgeElement.prototype);
3752
3798
 
3753
3799
  /*
3754
- * Copyright (c) 2018, salesforce.com, inc.
3800
+ * Copyright (c) 2025, Salesforce, Inc.
3755
3801
  * All rights reserved.
3756
3802
  * SPDX-License-Identifier: MIT
3757
3803
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
@@ -3762,7 +3808,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
3762
3808
  let stylesheetsToCssContent = /*@__PURE__@*/ new WeakMap();
3763
3809
  let cssContentToAbortControllers = /*@__PURE__@*/ new Map();
3764
3810
  // Only used in LWC's Karma tests
3765
- if (process.env.NODE_ENV === 'test-karma-lwc') {
3811
+ if (process.env.NODE_ENV === 'test-lwc-integration') {
3766
3812
  // Used to reset the global state between test runs
3767
3813
  window.__lwcResetStylesheetCache = () => {
3768
3814
  stylesheetsToCssContent = new WeakMap();
@@ -4159,7 +4205,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
4159
4205
  /*@__PURE__@*/ new WeakMultiMap();
4160
4206
  let activeStyles = /*@__PURE__@*/ new WeakMultiMap();
4161
4207
  // Only used in LWC's Karma tests
4162
- if (process.env.NODE_ENV === 'test-karma-lwc') {
4208
+ if (process.env.NODE_ENV === 'test-lwc-integration') {
4163
4209
  // Used to reset the global state between test runs
4164
4210
  window.__lwcResetHotSwaps = () => {
4165
4211
  swappedTemplateMap = new WeakMap();
@@ -6821,7 +6867,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
6821
6867
  // Also note that this array only needs to be large enough to account for the maximum possible cache key
6822
6868
  const fragmentCache = ArrayFrom({ length: MAX_CACHE_KEY + 1 }, () => new WeakMap());
6823
6869
  // Only used in LWC's Karma tests
6824
- if (process.env.NODE_ENV === 'test-karma-lwc') {
6870
+ if (process.env.NODE_ENV === 'test-lwc-integration') {
6825
6871
  window.__lwcResetFragmentCache = () => {
6826
6872
  for (let i = 0; i < fragmentCache.length; i++) {
6827
6873
  fragmentCache[i] = new WeakMap();
@@ -7313,7 +7359,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
7313
7359
 
7314
7360
 
7315
7361
  function __classPrivateFieldGet(receiver, state, kind, f) {
7316
- if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
7362
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
7317
7363
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7318
7364
  }
7319
7365
 
@@ -7369,42 +7415,72 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
7369
7415
  }
7370
7416
  _ContextBinding_renderer = new WeakMap(), _ContextBinding_providedContextVarieties = new WeakMap(), _ContextBinding_elm = new WeakMap();
7371
7417
  function connectContext(vm) {
7418
+ /**
7419
+ * If ENABLE_LEGACY_CONTEXT_CONNECTION is true, enumerates directly on the component
7420
+ * which can result in the component lifecycle observing properties that are not typically observed.
7421
+ * See PR #5536 for more information.
7422
+ */
7423
+ if (lwcRuntimeFlags.ENABLE_LEGACY_CONTEXT_CONNECTION) {
7424
+ connect(vm, keys(getPrototypeOf$1(vm.component)), vm.component);
7425
+ }
7426
+ else {
7427
+ // Non-decorated objects
7428
+ connect(vm, keys(vm.cmpFields), vm.cmpFields);
7429
+ // Decorated objects like @api context
7430
+ connect(vm, keys(vm.cmpProps), vm.cmpProps);
7431
+ }
7432
+ }
7433
+ function disconnectContext(vm) {
7434
+ /**
7435
+ * If ENABLE_LEGACY_CONTEXT_CONNECTION is true, enumerates directly on the component
7436
+ * which can result in the component lifecycle observing properties that are not typically observed.
7437
+ * See PR #5536 for more information.
7438
+ */
7439
+ if (lwcRuntimeFlags.ENABLE_LEGACY_CONTEXT_CONNECTION) {
7440
+ connect(vm, keys(getPrototypeOf$1(vm.component)), vm.component);
7441
+ }
7442
+ else {
7443
+ // Non-decorated objects
7444
+ disconnect(vm, keys(vm.cmpFields), vm.cmpFields);
7445
+ // Decorated objects like @api context
7446
+ disconnect(vm, keys(vm.cmpProps), vm.cmpProps);
7447
+ }
7448
+ }
7449
+ function connect(vm, enumerableKeys, contextContainer) {
7372
7450
  const contextKeys = getContextKeys();
7373
7451
  if (isUndefined$1(contextKeys)) {
7374
7452
  return;
7375
7453
  }
7376
7454
  const { connectContext } = contextKeys;
7377
7455
  const { component } = vm;
7378
- const enumerableKeys = keys(getPrototypeOf$1(component));
7379
- const contextfulKeys = ArrayFilter.call(enumerableKeys, (enumerableKey) => isTrustedContext(component[enumerableKey]));
7456
+ const contextfulKeys = ArrayFilter.call(enumerableKeys, (enumerableKey) => isTrustedContext(contextContainer[enumerableKey]));
7380
7457
  if (contextfulKeys.length === 0) {
7381
7458
  return;
7382
7459
  }
7383
7460
  const providedContextVarieties = new Map();
7384
7461
  try {
7385
7462
  for (let i = 0; i < contextfulKeys.length; i++) {
7386
- component[contextfulKeys[i]][connectContext](new ContextBinding(vm, component, providedContextVarieties));
7463
+ contextContainer[contextfulKeys[i]][connectContext](new ContextBinding(vm, component, providedContextVarieties));
7387
7464
  }
7388
7465
  }
7389
7466
  catch (err) {
7390
7467
  logWarnOnce(`Attempted to connect to trusted context but received the following error: ${err.message}`);
7391
7468
  }
7392
7469
  }
7393
- function disconnectContext(vm) {
7470
+ function disconnect(vm, enumerableKeys, contextContainer) {
7394
7471
  const contextKeys = getContextKeys();
7395
7472
  if (!contextKeys) {
7396
7473
  return;
7397
7474
  }
7398
7475
  const { disconnectContext } = contextKeys;
7399
7476
  const { component } = vm;
7400
- const enumerableKeys = keys(getPrototypeOf$1(component));
7401
- const contextfulKeys = ArrayFilter.call(enumerableKeys, (enumerableKey) => isTrustedContext(component[enumerableKey]));
7477
+ const contextfulKeys = ArrayFilter.call(enumerableKeys, (enumerableKey) => isTrustedContext(contextContainer[enumerableKey]));
7402
7478
  if (contextfulKeys.length === 0) {
7403
7479
  return;
7404
7480
  }
7405
7481
  try {
7406
7482
  for (let i = 0; i < contextfulKeys.length; i++) {
7407
- component[contextfulKeys[i]][disconnectContext](component);
7483
+ contextContainer[contextfulKeys[i]][disconnectContext](component);
7408
7484
  }
7409
7485
  }
7410
7486
  catch (err) {
@@ -7643,7 +7719,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
7643
7719
  if (
7644
7720
  // Force the shadow mode to always be native. Used for running tests with synthetic shadow patches
7645
7721
  // on, but components running in actual native shadow mode
7646
- (process.env.NODE_ENV === 'test-karma-lwc' &&
7722
+ (process.env.NODE_ENV === 'test-lwc-integration' &&
7647
7723
  process.env.FORCE_NATIVE_SHADOW_MODE_FOR_TEST) ||
7648
7724
  // If synthetic shadow is explicitly disabled, use pure-native
7649
7725
  lwcRuntimeFlags.DISABLE_SYNTHETIC_SHADOW ||
@@ -7764,7 +7840,14 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
7764
7840
  for (let i = 0, len = vms.length; i < len; i += 1) {
7765
7841
  const vm = vms[i];
7766
7842
  try {
7767
- rehydrate(vm);
7843
+ // We want to prevent rehydration from occurring when nodes are detached from the DOM as this can trigger
7844
+ // unintended side effects, like lifecycle methods being called multiple times.
7845
+ // For backwards compatibility, we use a flag to control the check.
7846
+ // 1. When flag is off, always rehydrate (legacy behavior)
7847
+ // 2. When flag is on, only rehydrate when the VM state is connected (fixed behavior)
7848
+ if (!lwcRuntimeFlags.DISABLE_DETACHED_REHYDRATION || vm.state === 1 /* VMState.connected */) {
7849
+ rehydrate(vm);
7850
+ }
7768
7851
  }
7769
7852
  catch (error) {
7770
7853
  if (i + 1 < len) {
@@ -9204,7 +9287,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
9204
9287
  }
9205
9288
  return getReadOnlyProxy(obj);
9206
9289
  }
9207
- /** version: 8.20.1 */
9290
+ /** version: 8.22.6 */
9208
9291
 
9209
9292
  /*
9210
9293
  * Copyright (c) 2018, salesforce.com, inc.
@@ -9303,7 +9386,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
9303
9386
  // Test utilities
9304
9387
  //
9305
9388
  // Only used in LWC's Karma tests
9306
- if (process.env.NODE_ENV === 'test-karma-lwc') {
9389
+ if (process.env.NODE_ENV === 'test-lwc-integration') {
9307
9390
  window.__lwcResetGlobalStylesheets = () => {
9308
9391
  stylesheetCache.clear();
9309
9392
  };
@@ -9645,7 +9728,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
9645
9728
  function isNull(obj) {
9646
9729
  return obj === null;
9647
9730
  }
9648
- /** version: 8.20.1 */
9731
+ /** version: 8.22.6 */
9649
9732
 
9650
9733
  /*
9651
9734
  * Copyright (c) 2024, Salesforce, Inc.
@@ -10355,7 +10438,7 @@ LWR.define('lwc/v/8_20_1', ['exports'], (function (exports) { 'use strict';
10355
10438
  }
10356
10439
  }));
10357
10440
  }
10358
- /** version: 8.20.1 */
10441
+ /** version: 8.22.6 */
10359
10442
 
10360
10443
  exports.LightningElement = LightningElement;
10361
10444
  exports.SignalBaseClass = SignalBaseClass;
@@ -1,10 +1,10 @@
1
- LWR.define('lwr/everywhereAmd/v/0_21_7', ['exports', 'lwr/vault/v/0_21_7'], (function (exports, _0_21_7) { 'use strict';
1
+ LWR.define('lwr/everywhereAmd/v/0_22_1', ['exports', 'lwr/vault/v/0_22_1'], (function (exports, _0_22_1) { '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_21_7.getAuthInfo();
7
+ const authInfo = _0_22_1.getAuthInfo();
8
8
  if (authInfo) {
9
9
  return fetch(url, {
10
10
  headers: {
@@ -53,7 +53,7 @@ LWR.define('lwr/everywhereAmd/v/0_21_7', ['exports', 'lwr/vault/v/0_21_7'], (fun
53
53
  function authenticate(authInfo) {
54
54
  // Put OAuth info into the vault
55
55
  if (authInfo) {
56
- _0_21_7.setAuthInfo(authInfo);
56
+ _0_22_1.setAuthInfo(authInfo);
57
57
  }
58
58
  }
59
59
 
@@ -1,4 +1,4 @@
1
- LWR.define('lwr/init/v/0_21_7', ['exports', 'lwr/metrics/v/0_21_7', 'lwr/profiler/v/0_21_7', 'lwr/scheduler/v/0_21_7', 'lwc/v/8_20_1'], (function (exports, _0_21_7$1, _0_21_7, _0_21_7$2, _8_20_1) { 'use strict';
1
+ LWR.define('lwr/init/v/0_21_8', ['exports', 'lwr/metrics/v/0_21_8', 'lwr/profiler/v/0_21_8', 'lwr/scheduler/v/0_21_8', 'lwc/v/8_22_6'], (function (exports, _0_21_8$1, _0_21_8, _0_21_8$2, _8_22_6) { 'use strict';
2
2
 
3
3
  // eslint-disable-next-line lwr/only-allowed-type-imports
4
4
 
@@ -7,7 +7,7 @@ LWR.define('lwr/init/v/0_21_7', ['exports', 'lwr/metrics/v/0_21_7', 'lwr/profile
7
7
  const HYDRATE_DIRECTIVE = 'lwr:hydrate';
8
8
  const HYDRATE_VISIBLE_VALUE = 'visible';
9
9
  function hydrateComponentProxy(customElement, Ctor, props) {
10
- _8_20_1.hydrateComponent(customElement, Ctor, props);
10
+ _8_22_6.hydrateComponent(customElement, Ctor, props);
11
11
  }
12
12
 
13
13
  /**
@@ -85,7 +85,7 @@ LWR.define('lwr/init/v/0_21_7', ['exports', 'lwr/metrics/v/0_21_7', 'lwr/profile
85
85
  return visibilityObserver;
86
86
  }
87
87
  function initializeWebComponent(elementName, Ctor) {
88
- return _8_20_1.createElement(elementName, {
88
+ return _8_22_6.createElement(elementName, {
89
89
  is: Ctor
90
90
  });
91
91
  }
@@ -123,13 +123,13 @@ LWR.define('lwr/init/v/0_21_7', ['exports', 'lwr/metrics/v/0_21_7', 'lwr/profile
123
123
  function init(rootModules, serverData = {}) {
124
124
  // eslint-disable-next-line lwr/no-unguarded-apis
125
125
  if (typeof globalThis.customElements === 'undefined' || typeof globalThis.document === 'undefined') {
126
- _0_21_7.logOperationStart({
127
- id: _0_21_7$1.BOOTSTRAP_END
126
+ _0_21_8.logOperationStart({
127
+ id: _0_21_8$1.BOOTSTRAP_END
128
128
  });
129
129
  return;
130
130
  }
131
- _0_21_7.logOperationStart({
132
- id: _0_21_7$1.INIT
131
+ _0_21_8.logOperationStart({
132
+ id: _0_21_8$1.INIT
133
133
  });
134
134
  (async () => {
135
135
  let index = 0;
@@ -138,15 +138,15 @@ LWR.define('lwr/init/v/0_21_7', ['exports', 'lwr/metrics/v/0_21_7', 'lwr/profile
138
138
  for (const [specifier, ctor] of rootModules) {
139
139
  // Yield to the main thread during long hydration tasks
140
140
  // eslint-disable-next-line no-await-in-loop
141
- await _0_21_7$2.yieldIfNecessary();
141
+ await _0_21_8$2.yieldIfNecessary();
142
142
  const specifierIndex = ++index;
143
143
  const elementName = toKebabCase(specifier);
144
144
 
145
145
  // initialize and inject the root module into the LWR Root or DOM if it is missing
146
146
  // eslint-disable-next-line lwr/no-unguarded-apis
147
147
  if (!document.body.querySelector(elementName)) {
148
- _0_21_7.logOperationStart({
149
- id: _0_21_7$1.INIT_MODULE,
148
+ _0_21_8.logOperationStart({
149
+ id: _0_21_8$1.INIT_MODULE,
150
150
  specifier,
151
151
  specifierIndex
152
152
  });
@@ -157,8 +157,8 @@ LWR.define('lwr/init/v/0_21_7', ['exports', 'lwr/metrics/v/0_21_7', 'lwr/profile
157
157
  const container = document.querySelector('[lwr-root]');
158
158
  // eslint-disable-next-line lwr/no-unguarded-apis
159
159
  container ? container.appendChild(component) : document.body.appendChild(component);
160
- _0_21_7.logOperationEnd({
161
- id: _0_21_7$1.INIT_MODULE,
160
+ _0_21_8.logOperationEnd({
161
+ id: _0_21_8$1.INIT_MODULE,
162
162
  specifier,
163
163
  specifierIndex,
164
164
  metadata: {
@@ -172,8 +172,8 @@ LWR.define('lwr/init/v/0_21_7', ['exports', 'lwr/metrics/v/0_21_7', 'lwr/profile
172
172
  // eslint-disable-next-line lwr/no-unguarded-apis
173
173
  const elements = document.querySelectorAll(elementName);
174
174
  for (const element of elements) {
175
- _0_21_7.logOperationStart({
176
- id: _0_21_7$1.INIT_MODULE,
175
+ _0_21_8.logOperationStart({
176
+ id: _0_21_8$1.INIT_MODULE,
177
177
  specifier,
178
178
  specifierIndex
179
179
  });
@@ -189,8 +189,8 @@ LWR.define('lwr/init/v/0_21_7', ['exports', 'lwr/metrics/v/0_21_7', 'lwr/profile
189
189
  // hydrate the island immediately
190
190
  hydrateComponentProxy(element, ctor, serverData[propsId] || {});
191
191
  }
192
- _0_21_7.logOperationEnd({
193
- id: _0_21_7$1.INIT_MODULE,
192
+ _0_21_8.logOperationEnd({
193
+ id: _0_21_8$1.INIT_MODULE,
194
194
  specifier,
195
195
  specifierIndex,
196
196
  metadata: {
@@ -228,8 +228,8 @@ LWR.define('lwr/init/v/0_21_7', ['exports', 'lwr/metrics/v/0_21_7', 'lwr/profile
228
228
  if (parent) {
229
229
  parent.replaceChild(component, element);
230
230
  }
231
- _0_21_7.logOperationEnd({
232
- id: _0_21_7$1.INIT_MODULE,
231
+ _0_21_8.logOperationEnd({
232
+ id: _0_21_8$1.INIT_MODULE,
233
233
  specifier,
234
234
  specifierIndex,
235
235
  metadata: {
@@ -239,11 +239,11 @@ LWR.define('lwr/init/v/0_21_7', ['exports', 'lwr/metrics/v/0_21_7', 'lwr/profile
239
239
  }
240
240
  }
241
241
  })();
242
- _0_21_7.logOperationEnd({
243
- id: _0_21_7$1.INIT
242
+ _0_21_8.logOperationEnd({
243
+ id: _0_21_8$1.INIT
244
244
  });
245
- _0_21_7.logOperationStart({
246
- id: _0_21_7$1.BOOTSTRAP_END
245
+ _0_21_8.logOperationStart({
246
+ id: _0_21_8$1.BOOTSTRAP_END
247
247
  });
248
248
  }
249
249