@flozy/editor 3.2.2 → 3.2.4

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.
@@ -451,7 +451,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
451
451
  customProps: customProps,
452
452
  toolbarOptions: toolbarOptions,
453
453
  theme: theme
454
- }) : null, footer && /*#__PURE__*/_jsx(Typography, {
454
+ }) : null, footer && (fullScreen || readOnly) && /*#__PURE__*/_jsx(Typography, {
455
455
  sx: {
456
456
  color: "rgb(100, 116, 139)",
457
457
  fontSize: "13px",
@@ -6,7 +6,8 @@ const AccordionBtnPopup = props => {
6
6
  const {
7
7
  element,
8
8
  onSave,
9
- onClose
9
+ onClose,
10
+ customProps
10
11
  } = props;
11
12
  return /*#__PURE__*/_jsx(StyleBuilder, {
12
13
  title: "Accordion Collapse Button",
@@ -14,7 +15,8 @@ const AccordionBtnPopup = props => {
14
15
  element: element,
15
16
  onSave: onSave,
16
17
  onClose: onClose,
17
- renderTabs: accordionTitleBtnStyle
18
+ renderTabs: accordionTitleBtnStyle,
19
+ customProps: customProps
18
20
  });
19
21
  };
20
22
  export default AccordionBtnPopup;
@@ -6,7 +6,8 @@ const AccordionTitlePopup = props => {
6
6
  const {
7
7
  element,
8
8
  onSave,
9
- onClose
9
+ onClose,
10
+ customProps
10
11
  } = props;
11
12
  return /*#__PURE__*/_jsx(StyleBuilder, {
12
13
  title: "Accordion Title",
@@ -14,7 +15,8 @@ const AccordionTitlePopup = props => {
14
15
  element: element,
15
16
  onSave: onSave,
16
17
  onClose: onClose,
17
- renderTabs: accordionTitleStyle
18
+ renderTabs: accordionTitleStyle,
19
+ customProps: customProps
18
20
  });
19
21
  };
20
22
  export default AccordionTitlePopup;
@@ -6,7 +6,8 @@ const FieldPopup = props => {
6
6
  const {
7
7
  element,
8
8
  onSave,
9
- onClose
9
+ onClose,
10
+ customProps
10
11
  } = props;
11
12
  return /*#__PURE__*/_jsx(StyleBuilder, {
12
13
  title: "Form Field",
@@ -14,7 +15,8 @@ const FieldPopup = props => {
14
15
  element: element,
15
16
  onSave: onSave,
16
17
  onClose: onClose,
17
- renderTabs: fieldStyle
18
+ renderTabs: fieldStyle,
19
+ customProps: customProps
18
20
  });
19
21
  };
20
22
  export default FieldPopup;
@@ -97,7 +97,8 @@ const FormField = props => {
97
97
  }), openSetttings ? /*#__PURE__*/_jsx(FieldPopup, {
98
98
  element: element,
99
99
  onSave: onSave,
100
- onClose: onClose
100
+ onClose: onClose,
101
+ customProps: customProps
101
102
  }) : null, /*#__PURE__*/_jsx("span", {
102
103
  style: {
103
104
  display: "none"
@@ -177,7 +177,8 @@ const GridItem = props => {
177
177
  element: element,
178
178
  onSave: onSave,
179
179
  onClose: onClose,
180
- onDelete: onDelete
180
+ onDelete: onDelete,
181
+ customProps: customProps
181
182
  }) : null]
182
183
  });
183
184
  };
@@ -7,7 +7,8 @@ const GridItemPopup = props => {
7
7
  element,
8
8
  onSave,
9
9
  onClose,
10
- onDelete
10
+ onDelete,
11
+ customProps
11
12
  } = props;
12
13
  return /*#__PURE__*/_jsx(StyleBuilder, {
13
14
  title: "Grid Item",
@@ -16,7 +17,8 @@ const GridItemPopup = props => {
16
17
  onSave: onSave,
17
18
  onClose: onClose,
18
19
  renderTabs: gridItemStyle,
19
- onDelete: onDelete
20
+ onDelete: onDelete,
21
+ customProps: customProps
20
22
  });
21
23
  };
22
24
  export default GridItemPopup;
@@ -62,9 +62,7 @@ const StyleBuilder = props => {
62
62
  theme
63
63
  } = useEditorContext();
64
64
  const classes = useCommonStyle(theme);
65
- const {
66
- isMobile = false
67
- } = customProps;
65
+ const isMobile = customProps?.isMobile || false;
68
66
  const [elementProps, setElementProps] = useState(element);
69
67
  const [tab] = useState(renderTabs[0]?.value);
70
68
  const tabVal = renderTabs?.find(f => f.value === tab);
@@ -110,7 +108,7 @@ const StyleBuilder = props => {
110
108
  xs: 12,
111
109
  sx: {
112
110
  p: 2,
113
- width: "350px"
111
+ width: isMobile ? "100%" : "350px"
114
112
  },
115
113
  children: [/*#__PURE__*/_jsx(DialogTitle, {
116
114
  sx: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "3.2.2",
3
+ "version": "3.2.4",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"