@contentful/experiences-visual-editor-react 1.0.5 → 1.0.6-dev-20240416T2113-090181e.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 -4
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +2 -4
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -54143,8 +54143,6 @@ const RootRenderer = ({ onChange }) => {
|
|
|
54143
54143
|
const userIsDragging = useDraggedItemStore((state) => state.isDraggingOnCanvas);
|
|
54144
54144
|
const breakpoints = useTreeStore((state) => state.breakpoints);
|
|
54145
54145
|
const setSelectedNodeId = useEditorStore((state) => state.setSelectedNodeId);
|
|
54146
|
-
const draggableSourceId = useDraggedItemStore((state) => state.draggedItem?.source.droppableId);
|
|
54147
|
-
const draggingNewComponent = !!draggableSourceId?.startsWith(COMPONENT_LIST_ID);
|
|
54148
54146
|
const containerRef = reactExports.useRef(null);
|
|
54149
54147
|
const { resolveDesignValue } = useBreakpoints(breakpoints);
|
|
54150
54148
|
const [containerStyles, setContainerStyles] = reactExports.useState({});
|
|
@@ -54210,9 +54208,9 @@ const RootRenderer = ({ onChange }) => {
|
|
|
54210
54208
|
return (React.createElement(DNDProvider, null,
|
|
54211
54209
|
dragItem && React.createElement(DraggableContainer, { id: dragItem }),
|
|
54212
54210
|
React.createElement("div", { "data-ctfl-root": true, className: styles.container, ref: containerRef, style: containerStyles },
|
|
54213
|
-
userIsDragging &&
|
|
54211
|
+
userIsDragging && React.createElement("div", { "data-ctfl-zone-id": ROOT_ID, className: styles.hitbox }),
|
|
54214
54212
|
React.createElement(Dropzone, { zoneId: ROOT_ID, resolveDesignValue: resolveDesignValue }),
|
|
54215
|
-
userIsDragging &&
|
|
54213
|
+
userIsDragging && React.createElement("div", { "data-ctfl-zone-id": ROOT_ID, className: styles.hitboxLower })),
|
|
54216
54214
|
React.createElement("div", { "data-ctfl-hitboxes": true })));
|
|
54217
54215
|
};
|
|
54218
54216
|
|