@flozy/editor 8.0.9 → 9.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.
@@ -43,19 +43,21 @@ const ColorPicker = props => {
43
43
  };
44
44
  const handleFormSubmit = color => {
45
45
  if (!color) return;
46
- selection && Transforms.select(editor, selection);
46
+ // selection && Transforms.select(editor, selection);
47
47
  addMarkData(editor, {
48
48
  format,
49
49
  value: color
50
50
  });
51
- selection && ReactEditor.focus(editor);
52
- handleClose();
51
+ // selection && ReactEditor.focus(editor);
52
+ // handleClose();
53
53
  };
54
+
54
55
  const onSelect = color => {
55
56
  handleFormSubmit(color);
56
57
  };
57
58
  const handleClose = () => {
58
59
  setAnchorEl(null);
60
+ setSelection(null);
59
61
  };
60
62
  const activeColor = activeMark(editor, format) || DEFAULT_COLOR[format];
61
63
  return /*#__PURE__*/_jsxs(_Fragment, {
@@ -153,7 +153,7 @@ const useOptionsStyles = (theme, appTheme) => ({
153
153
  },
154
154
  addProperty: {
155
155
  padding: "12px",
156
- width: "253px",
156
+ minWidth: "253px",
157
157
  "& .divider_sty": {
158
158
  borderBottom: `1px solid ${appTheme?.palette?.editor?.tv_border}`
159
159
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "8.0.9",
3
+ "version": "9.0.2",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"