@lwc/ssr-runtime 8.20.1 → 8.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -614,20 +614,23 @@ function normalizeClass(value) {
614
614
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
615
615
  */
616
616
  let hooksAreSet = false;
617
+ let sanitizeHtmlContentImpl = () => {
618
+ // locker-service patches this function during runtime to sanitize HTML content.
619
+ throw new Error('sanitizeHtmlContent hook must be implemented.');
620
+ };
617
621
  /**
618
622
  * EXPERIMENTAL: This function acts like a hook for Lightning Locker Service and other similar
619
623
  * libraries to sanitize HTML content. This hook process the content passed via the template to
620
624
  * lwc:inner-html directive.
621
625
  * It is meant to be overridden via `setHooks`; it throws an error by default.
622
626
  */
623
- exports.sanitizeHtmlContent = () => {
624
- // locker-service patches this function during runtime to sanitize HTML content.
625
- throw new Error('sanitizeHtmlContent hook must be implemented.');
627
+ const sanitizeHtmlContent = (value) => {
628
+ return sanitizeHtmlContentImpl(value);
626
629
  };
627
630
  function setHooks(hooks) {
628
631
  isFalse$1(hooksAreSet, 'Hooks are already overridden, only one definition is allowed.');
629
632
  hooksAreSet = true;
630
- exports.sanitizeHtmlContent = hooks.sanitizeHtmlContent;
633
+ sanitizeHtmlContentImpl = hooks.sanitizeHtmlContent;
631
634
  }
632
635
 
633
636
  /*
@@ -674,7 +677,7 @@ function normalizeTabIndex(value) {
674
677
  const shouldNormalize = value > 0 && typeof value !== 'boolean';
675
678
  return shouldNormalize ? 0 : value;
676
679
  }
677
- /** version: 8.20.1 */
680
+ /** version: 8.20.2 */
678
681
 
679
682
  /**
680
683
  * Copyright (c) 2025 Salesforce, Inc.
@@ -698,7 +701,7 @@ function normalizeTabIndex(value) {
698
701
  * @param value
699
702
  * @param msg
700
703
  */
701
- /** version: 8.20.1 */
704
+ /** version: 8.20.2 */
702
705
 
703
706
  /*
704
707
  * Copyright (c) 2023, salesforce.com, inc.
@@ -722,7 +725,7 @@ class SignalBaseClass {
722
725
  }
723
726
  }
724
727
  }
725
- /** version: 8.20.1 */
728
+ /** version: 8.20.2 */
726
729
 
727
730
  /**
728
731
  * Copyright (c) 2025 Salesforce, Inc.
@@ -810,7 +813,7 @@ function setFeatureFlagForTest(name, value) {
810
813
  setFeatureFlag(name, value);
811
814
  }
812
815
  }
813
- /** version: 8.20.1 */
816
+ /** version: 8.20.2 */
814
817
 
815
818
  /*
816
819
  * Copyright (c) 2024, Salesforce, Inc.
@@ -2170,6 +2173,7 @@ exports.renderStylesheets = renderStylesheets;
2170
2173
  exports.renderTextContent = renderTextContent;
2171
2174
  exports.renderer = renderer;
2172
2175
  exports.sanitizeAttribute = sanitizeAttribute;
2176
+ exports.sanitizeHtmlContent = sanitizeHtmlContent;
2173
2177
  exports.serverSideRenderComponent = serverSideRenderComponent;
2174
2178
  exports.setContextKeys = setContextKeys;
2175
2179
  exports.setFeatureFlag = setFeatureFlag;
@@ -2185,5 +2189,5 @@ exports.track = track;
2185
2189
  exports.unwrap = unwrap$1;
2186
2190
  exports.validateStyleTextContents = validateStyleTextContents;
2187
2191
  exports.wire = wire;
2188
- /** version: 8.20.1 */
2192
+ /** version: 8.20.2 */
2189
2193
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.js CHANGED
@@ -610,20 +610,23 @@ function normalizeClass(value) {
610
610
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
611
611
  */
612
612
  let hooksAreSet = false;
613
+ let sanitizeHtmlContentImpl = () => {
614
+ // locker-service patches this function during runtime to sanitize HTML content.
615
+ throw new Error('sanitizeHtmlContent hook must be implemented.');
616
+ };
613
617
  /**
614
618
  * EXPERIMENTAL: This function acts like a hook for Lightning Locker Service and other similar
615
619
  * libraries to sanitize HTML content. This hook process the content passed via the template to
616
620
  * lwc:inner-html directive.
617
621
  * It is meant to be overridden via `setHooks`; it throws an error by default.
618
622
  */
619
- let sanitizeHtmlContent = () => {
620
- // locker-service patches this function during runtime to sanitize HTML content.
621
- throw new Error('sanitizeHtmlContent hook must be implemented.');
623
+ const sanitizeHtmlContent = (value) => {
624
+ return sanitizeHtmlContentImpl(value);
622
625
  };
623
626
  function setHooks(hooks) {
624
627
  isFalse$1(hooksAreSet, 'Hooks are already overridden, only one definition is allowed.');
625
628
  hooksAreSet = true;
626
- sanitizeHtmlContent = hooks.sanitizeHtmlContent;
629
+ sanitizeHtmlContentImpl = hooks.sanitizeHtmlContent;
627
630
  }
628
631
 
629
632
  /*
@@ -670,7 +673,7 @@ function normalizeTabIndex(value) {
670
673
  const shouldNormalize = value > 0 && typeof value !== 'boolean';
671
674
  return shouldNormalize ? 0 : value;
672
675
  }
673
- /** version: 8.20.1 */
676
+ /** version: 8.20.2 */
674
677
 
675
678
  /**
676
679
  * Copyright (c) 2025 Salesforce, Inc.
@@ -694,7 +697,7 @@ function normalizeTabIndex(value) {
694
697
  * @param value
695
698
  * @param msg
696
699
  */
697
- /** version: 8.20.1 */
700
+ /** version: 8.20.2 */
698
701
 
699
702
  /*
700
703
  * Copyright (c) 2023, salesforce.com, inc.
@@ -718,7 +721,7 @@ class SignalBaseClass {
718
721
  }
719
722
  }
720
723
  }
721
- /** version: 8.20.1 */
724
+ /** version: 8.20.2 */
722
725
 
723
726
  /**
724
727
  * Copyright (c) 2025 Salesforce, Inc.
@@ -806,7 +809,7 @@ function setFeatureFlagForTest(name, value) {
806
809
  setFeatureFlag(name, value);
807
810
  }
808
811
  }
809
- /** version: 8.20.1 */
812
+ /** version: 8.20.2 */
810
813
 
811
814
  /*
812
815
  * Copyright (c) 2024, Salesforce, Inc.
@@ -2128,5 +2131,5 @@ function* toIteratorDirective(iterable) {
2128
2131
  }
2129
2132
 
2130
2133
  export { ClassList, LightningElement, SYMBOL__DEFAULT_TEMPLATE, SYMBOL__GENERATE_MARKUP, SYMBOL__SET_INTERNALS, SignalBaseClass, addTrustedContext as __dangerous_do_not_use_addTrustedContext, addSlottedContent, api, connectContext$1 as connectContext, createContextProvider, createElement, establishContextfulRelationship, fallbackTmpl, fallbackTmplNoYield, freezeTemplate, getComponentDef, hasScopedStaticStylesheets, hot, htmlEscape, isComponentConstructor, isTrustedSignal, mutationTracker, normalizeClass, normalizeTabIndex, normalizeTextContent, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, renderAttrs, renderAttrsNoYield, serverSideRenderComponent as renderComponent, renderStylesheets, renderTextContent, renderer, sanitizeAttribute, sanitizeHtmlContent, serverSideRenderComponent, setContextKeys, setFeatureFlag, setFeatureFlagForTest, setHooks, setTrustedContextSet, setTrustedSignalSet, swapComponent, swapStyle, swapTemplate, toIteratorDirective, track, unwrap$1 as unwrap, validateStyleTextContents, wire };
2131
- /** version: 8.20.1 */
2134
+ /** version: 8.20.2 */
2132
2135
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
5
5
  ],
6
6
  "name": "@lwc/ssr-runtime",
7
- "version": "8.20.1",
7
+ "version": "8.20.2",
8
8
  "description": "Runtime complement to @lwc/ssr-compiler",
9
9
  "keywords": [
10
10
  "lwc",
@@ -48,10 +48,10 @@
48
48
  }
49
49
  },
50
50
  "devDependencies": {
51
- "@lwc/shared": "8.20.1",
52
- "@lwc/engine-core": "8.20.1",
53
- "@lwc/features": "8.20.1",
54
- "@lwc/signals": "8.20.1",
51
+ "@lwc/shared": "8.20.2",
52
+ "@lwc/engine-core": "8.20.2",
53
+ "@lwc/features": "8.20.2",
54
+ "@lwc/signals": "8.20.2",
55
55
  "observable-membrane": "2.0.0"
56
56
  }
57
57
  }