@flozy/editor 7.0.0 → 7.0.1

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.
@@ -91,7 +91,8 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
91
91
  otherProps,
92
92
  isIframe,
93
93
  theme,
94
- showViewport = false
94
+ showViewport = false,
95
+ styles = {}
95
96
  } = props;
96
97
  const editorWrapper = useRef();
97
98
  const mentionsRef = useRef();
@@ -152,7 +153,8 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
152
153
  const classes = editorStyles({
153
154
  padHeight: !fullScreen ? otherProps?.padHeight : 20,
154
155
  placeHolderColor: invertColor(pageColor || "#FFF"),
155
- theme
156
+ theme,
157
+ styles
156
158
  });
157
159
  const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
158
160
  useEffect(() => {
@@ -1,7 +1,8 @@
1
1
  const editorStyles = ({
2
2
  padHeight,
3
3
  placeHolderColor,
4
- theme
4
+ theme,
5
+ styles = {}
5
6
  }) => ({
6
7
  root: {
7
8
  display: "flex",
@@ -315,7 +316,8 @@ const editorStyles = ({
315
316
  "& .MuiDialogContent-root": {
316
317
  padding: "0px"
317
318
  }
318
- }
319
+ },
320
+ ...(styles?.override_wrapper_styles || {})
319
321
  },
320
322
  cardsTypo: {
321
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.0",
3
+ "version": "7.0.1",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"