@contentful/experiences-visual-editor-react 1.30.5 → 1.31.0-beta.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 +5 -3
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +5 -3
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -56671,8 +56671,8 @@ const cloneDeepAsPOJO = (obj) => {
|
|
|
56671
56671
|
return JSON.parse(JSON.stringify(obj));
|
|
56672
56672
|
};
|
|
56673
56673
|
|
|
56674
|
-
var css_248z$9 = ".render-module_hitbox__l4ysJ {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 10px;\n z-index: 1000000;\n}\n\n.render-module_hitboxLower__tgsA1 {\n position: absolute;\n bottom: -
|
|
56675
|
-
var styles$3 = {"hitbox":"render-module_hitbox__l4ysJ","hitboxLower":"render-module_hitboxLower__tgsA1","container":"render-module_container__-C3d7"};
|
|
56674
|
+
var css_248z$9 = ".render-module_hitbox__l4ysJ {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 10px;\n z-index: 1000000;\n}\n\n.render-module_hitboxLower__tgsA1 {\n position: absolute;\n bottom: -20px;\n left: 0;\n width: 100%;\n height: 20px;\n z-index: 1000000;\n}\n\n.render-module_canvasBottomSpacer__JuxVh {\n position: absolute;\n width: 100%;\n height: 50px;\n}\n\n.render-module_container__-C3d7 {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\nbody {\n margin: 0;\n}\n\nhtml {\n -ms-overflow-style: none; /* Internet Explorer 10+ */\n scrollbar-width: none; /* Firefox */\n}\n\nhtml::-webkit-scrollbar {\n display: none;\n}\n";
|
|
56675
|
+
var styles$3 = {"hitbox":"render-module_hitbox__l4ysJ","hitboxLower":"render-module_hitboxLower__tgsA1","canvasBottomSpacer":"render-module_canvasBottomSpacer__JuxVh","container":"render-module_container__-C3d7"};
|
|
56676
56676
|
styleInject(css_248z$9);
|
|
56677
56677
|
|
|
56678
56678
|
// TODO: In order to support integrations without React, we should extract this heavy logic into simple
|
|
@@ -60682,7 +60682,9 @@ const RootRenderer = ({ onChange }) => {
|
|
|
60682
60682
|
React$1.createElement("div", { "data-ctfl-root": true, className: styles$3.container, ref: containerRef, style: containerStyles },
|
|
60683
60683
|
userIsDragging && React$1.createElement("div", { "data-ctfl-zone-id": ROOT_ID, className: styles$3.hitbox }),
|
|
60684
60684
|
React$1.createElement(Dropzone, { zoneId: ROOT_ID, resolveDesignValue: resolveDesignValue }),
|
|
60685
|
-
userIsDragging && React$1.createElement(
|
|
60685
|
+
userIsDragging && (React$1.createElement(React$1.Fragment, null,
|
|
60686
|
+
React$1.createElement("div", { "data-ctfl-zone-id": ROOT_ID, className: styles$3.hitboxLower }),
|
|
60687
|
+
React$1.createElement("div", { "data-ctfl-zone-id": ROOT_ID, className: styles$3.canvasBottomSpacer })))),
|
|
60686
60688
|
React$1.createElement("div", { "data-ctfl-hitboxes": true })));
|
|
60687
60689
|
};
|
|
60688
60690
|
|