@flozy/editor 1.5.7 → 1.5.8

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.
@@ -4,7 +4,7 @@ import { useSelected, useSlateStatic, ReactEditor } from "slate-react";
4
4
  import { gridItem } from "../../utils/gridItem";
5
5
  import GridPopup from "./GridPopup";
6
6
  import { IconButton, Tooltip } from "@mui/material";
7
- import CompressIcon from "@mui/icons-material/Compress";
7
+ // import CompressIcon from "@mui/icons-material/Compress";
8
8
  import { insertGrid } from "../../utils/grid";
9
9
  import useDragAndDrop from "../../common/useDragAndDrop";
10
10
  import useResize from "../../utils/customHooks/useResize";
@@ -257,7 +257,7 @@ const Grid = props => {
257
257
  backgroundRepeat: "no-repeat",
258
258
  backgroundSize: "cover"
259
259
  }
260
- }), dndElements, !readOnly && /*#__PURE__*/_jsxs("div", {
260
+ }), !readOnly && /*#__PURE__*/_jsxs("div", {
261
261
  className: `element-selector ${selected ? "selected" : ""}`,
262
262
  contentEditable: false,
263
263
  children: [/*#__PURE__*/_jsx("div", {
@@ -294,24 +294,6 @@ const Grid = props => {
294
294
  height: resizing ? `${size?.height}px` : elHeight ? `${elHeight}px` : "fit-content"
295
295
  },
296
296
  children: children
297
- }), selected && !readOnly && /*#__PURE__*/_jsx(IconButton, {
298
- onPointerDown: onMouseDown,
299
- style: {
300
- opacity: 1,
301
- background: "#FFF",
302
- position: "absolute",
303
- left: 0,
304
- right: 0,
305
- bottom: "-28px",
306
- margin: "auto",
307
- color: "#FFF",
308
- backgroundColor: "#2684ff",
309
- width: "42px",
310
- height: "42px",
311
- zIndex: 1000
312
- },
313
- className: "",
314
- children: /*#__PURE__*/_jsx(CompressIcon, {})
315
297
  })]
316
298
  });
317
299
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"