@contentful/experiences-visual-editor-react 3.8.3-beta.0 → 3.8.3-beta.1
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/renderApp.js
CHANGED
|
@@ -50986,9 +50986,9 @@ const checkIsNodeVisible = (node, resolveDesignValue) => {
|
|
|
50986
50986
|
// If this is a wrapping pattern/root with no visible children, it is invisible as well
|
|
50987
50987
|
return node.children.some((childNode) => checkIsNodeVisible(childNode, resolveDesignValue));
|
|
50988
50988
|
}
|
|
50989
|
-
// Check if the current node is visible (`cfVisibility` is enforced on all nodes)
|
|
50989
|
+
// Check if the current node is visible (`cfVisibility` is enforced on all nodes however leaving as optional chaining due to bug discovered [SPA-3298])
|
|
50990
50990
|
// Check explicitly for false, as `undefined` is treated as `true`. It could become undefined when the breakpoint IDs changed.
|
|
50991
|
-
return (resolveDesignValue(node.data.props['cfVisibility']
|
|
50991
|
+
return (resolveDesignValue(node.data.props['cfVisibility']?.valuesByBreakpoint) !==
|
|
50992
50992
|
false);
|
|
50993
50993
|
};
|
|
50994
50994
|
|