@contentful/experiences-core 1.30.5 → 1.31.0-dev-20250217T1216-8f96b7d.0

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.js CHANGED
@@ -1766,7 +1766,9 @@ const detachExperienceStyles = (experience) => {
1766
1766
  }
1767
1767
  */
1768
1768
  // I create a hash of the object above because that would ensure hash stability
1769
- const styleHash = md5(JSON.stringify(stylesForBreakpointWithoutUndefined));
1769
+ // Adding breakpointId to ensure not using the same IDs between breakpoints as this leads to
1770
+ // conflicts between different breakpoint values from multiple nodes where the hash would be equal
1771
+ const styleHash = md5(breakpointId + JSON.stringify(stylesForBreakpointWithoutUndefined));
1770
1772
  // and prefix the className to make sure the value can be processed
1771
1773
  const className = `cf-${styleHash}`;
1772
1774
  // I save the generated hashes into an array to later save it in the tree node