@flozy/editor 7.0.1 → 7.0.2

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.
@@ -92,7 +92,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
92
92
  isIframe,
93
93
  theme,
94
94
  showViewport = false,
95
- styles = {}
95
+ overrideWrapperStyles = {}
96
96
  } = props;
97
97
  const editorWrapper = useRef();
98
98
  const mentionsRef = useRef();
@@ -154,7 +154,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
154
154
  padHeight: !fullScreen ? otherProps?.padHeight : 20,
155
155
  placeHolderColor: invertColor(pageColor || "#FFF"),
156
156
  theme,
157
- styles
157
+ overrideWrapperStyles
158
158
  });
159
159
  const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
160
160
  useEffect(() => {
@@ -2,7 +2,7 @@ const editorStyles = ({
2
2
  padHeight,
3
3
  placeHolderColor,
4
4
  theme,
5
- styles = {}
5
+ overrideWrapperStyles = {}
6
6
  }) => ({
7
7
  root: {
8
8
  display: "flex",
@@ -57,7 +57,8 @@ const editorStyles = ({
57
57
  backgroundColor: "#FFF",
58
58
  zIndex: 10
59
59
  }
60
- }
60
+ },
61
+ ...overrideWrapperStyles
61
62
  },
62
63
  slateWrapper: {
63
64
  paddingTop: "0px",
@@ -316,8 +317,7 @@ const editorStyles = ({
316
317
  "& .MuiDialogContent-root": {
317
318
  padding: "0px"
318
319
  }
319
- },
320
- ...(styles?.override_wrapper_styles || {})
320
+ }
321
321
  },
322
322
  cardsTypo: {
323
323
  color: theme?.palette?.editor?.textColor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"