@contentful/experiences-visual-editor-react 3.8.3-dev-20251013T1057-2d4f2cd.0 → 3.8.3-dev-20251020T1356-dca4ced.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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +2 -2
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -5040,9 +5040,9 @@ const checkIsNodeVisible = (node, resolveDesignValue) => {
|
|
|
5040
5040
|
// If this is a wrapping pattern/root with no visible children, it is invisible as well
|
|
5041
5041
|
return node.children.some((childNode) => checkIsNodeVisible(childNode, resolveDesignValue));
|
|
5042
5042
|
}
|
|
5043
|
-
// Check if the current node is visible (`cfVisibility` is enforced on all nodes)
|
|
5043
|
+
// Check if the current node is visible (`cfVisibility` is enforced on all nodes however leaving as optional chaining due to bug discovered [SPA-3298])
|
|
5044
5044
|
// Check explicitly for false, as `undefined` is treated as `true`. It could become undefined when the breakpoint IDs changed.
|
|
5045
|
-
return (resolveDesignValue(node.data.props['cfVisibility']
|
|
5045
|
+
return (resolveDesignValue(node.data.props['cfVisibility']?.valuesByBreakpoint) !==
|
|
5046
5046
|
false);
|
|
5047
5047
|
};
|
|
5048
5048
|
|