@contentful/experiences-visual-editor-react 1.37.1-dev-20250423T1409-b90b338.0 → 1.37.1-dev-20250425T1024-b8bfdfb.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 +8 -13
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +8 -13
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -43986,6 +43986,7 @@ const transformVisibility = (value) => {
|
|
|
43986
43986
|
// Don't explicitly set anything when visible to not overwrite values like `grid` or `flex`.
|
|
43987
43987
|
return {};
|
|
43988
43988
|
};
|
|
43989
|
+
// TODO: Remove in next major version v2 since the change is 17 months old
|
|
43989
43990
|
// Keep this for backwards compatibility - deleting this would be a breaking change
|
|
43990
43991
|
// because existing components on a users experience will have the width value as fill
|
|
43991
43992
|
// rather than 100%
|
|
@@ -60448,29 +60449,23 @@ const Tooltip = ({ coordinates, id, label, isAssemblyBlock, isContainer, isSelec
|
|
|
60448
60449
|
function useSingleColumn(node, resolveDesignValue) {
|
|
60449
60450
|
const tree = useTreeStore((store) => store.tree);
|
|
60450
60451
|
const isSingleColumn = node.data.blockId === CONTENTFUL_COMPONENTS$1.singleColumn.id;
|
|
60451
|
-
const
|
|
60452
|
-
let isWrapped = false;
|
|
60453
|
-
let wrapColumnsCount = 0;
|
|
60452
|
+
const isWrapped = reactExports.useMemo(() => {
|
|
60454
60453
|
if (!node.parentId || !isSingleColumn) {
|
|
60455
|
-
return
|
|
60454
|
+
return false;
|
|
60456
60455
|
}
|
|
60457
60456
|
const parentNode = getItem({ id: node.parentId }, tree);
|
|
60458
60457
|
if (!parentNode || parentNode.data.blockId !== CONTENTFUL_COMPONENTS$1.columns.id) {
|
|
60459
|
-
return
|
|
60460
|
-
}
|
|
60461
|
-
const { cfWrapColumns, cfWrapColumnsCount } = parentNode.data.props;
|
|
60462
|
-
if (cfWrapColumns.type === 'DesignValue') {
|
|
60463
|
-
isWrapped = resolveDesignValue(cfWrapColumns.valuesByBreakpoint, 'cfWrapColumns');
|
|
60458
|
+
return false;
|
|
60464
60459
|
}
|
|
60465
|
-
|
|
60466
|
-
|
|
60460
|
+
const { cfWrapColumns } = parentNode.data.props;
|
|
60461
|
+
if (cfWrapColumns.type !== 'DesignValue') {
|
|
60462
|
+
return false;
|
|
60467
60463
|
}
|
|
60468
|
-
return
|
|
60464
|
+
return resolveDesignValue(cfWrapColumns.valuesByBreakpoint, 'cfWrapColumns');
|
|
60469
60465
|
}, [tree, node, isSingleColumn, resolveDesignValue]);
|
|
60470
60466
|
return {
|
|
60471
60467
|
isSingleColumn,
|
|
60472
60468
|
isWrapped,
|
|
60473
|
-
wrapColumnsCount,
|
|
60474
60469
|
};
|
|
60475
60470
|
}
|
|
60476
60471
|
|