@contentful/experiences-core 3.8.4-beta.1 → 3.8.4-beta.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.
@@ -2691,6 +2691,10 @@ const detachExperienceStyles = (experience) => {
2691
2691
  // conflicts between different breakpoint values from multiple nodes where the hash would be equal
2692
2692
  // - Adding wrapping pattern nodes IDs to avoid conflicts between similar nested patterns as those
2693
2693
  // could override each others CSS for some breakpoints just through the order of `<style>` tags in the DOM.
2694
+ // - We're only considering the regular CSS (not the visibility-specific one) but that doesn't cause an issue
2695
+ // since we already use the breakpointId (which is not used in CSR, see createStylesheetsForBuiltInStyles).
2696
+ // Theoretically, we could drop `generatedCss` from the hash generation and still be safe from conflicts (unless
2697
+ // the node IDs are similar but visibility is different?)
2694
2698
  const styleHash = md5(currentNodeIdsChain + breakpointId + generatedCss);
2695
2699
  // and prefix the className to make sure the value can be processed
2696
2700
  const className = `cf-${styleHash}`;