@contentful/experiences-visual-editor-react 3.7.0-dev-20250917T1357-4fbbff5.0 → 3.7.0-dev-20250917T1515-4c340b9.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 +3 -1
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +3 -1
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -5083,7 +5083,9 @@ const checkIsNodeVisible = (node, resolveDesignValue) => {
|
|
|
5083
5083
|
return node.children.some((childNode) => checkIsNodeVisible(childNode, resolveDesignValue));
|
|
5084
5084
|
}
|
|
5085
5085
|
// Check if the current node is visible (`cfVisibility` is enforced on all nodes)
|
|
5086
|
-
|
|
5086
|
+
// Check explicitly for false, as `undefined` is treated as `true`. It could become undefined when the breakpoint IDs changed.
|
|
5087
|
+
return (resolveDesignValue(node.data.props['cfVisibility'].valuesByBreakpoint) !==
|
|
5088
|
+
false);
|
|
5087
5089
|
};
|
|
5088
5090
|
|
|
5089
5091
|
const useComponentProps = ({ node, entityStore, areEntitiesFetched, resolveDesignValue, definition, options, }) => {
|