@flozy/editor 10.0.4 → 10.0.6

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.
@@ -129,7 +129,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
129
129
  hideTools = [],
130
130
  translationMock
131
131
  } = otherProps || {};
132
- const translationFn = translation || translationMock;
132
+ const translationFn = translation || translationMock || (() => {});
133
133
  const editor = useMemo(() => {
134
134
  if (collaborativeEditor) return collaborativeEditor;
135
135
  const editor = createEditor();
@@ -630,7 +630,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
630
630
  }) : null, /*#__PURE__*/_jsx(PopoverAIInput, {
631
631
  otherProps: otherProps || {},
632
632
  editorWrapper: editorWrapper,
633
- translation: translation || translationMock
633
+ translation: translationFn
634
634
  }), footer && (fullScreen || readOnly) && /*#__PURE__*/_jsx(Typography, {
635
635
  sx: {
636
636
  color: "rgb(100, 116, 139)",
@@ -653,13 +653,13 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
653
653
  }) : null, !readOnly && showViewport ? /*#__PURE__*/_jsx(SwitchViewport, {
654
654
  breakpoint: breakpoint,
655
655
  onChange: b => onSwitchBreakpoint(b),
656
- translation: translation || translationMock
656
+ translation: translationFn
657
657
  }) : null]
658
658
  })
659
659
  }), htmlAction.showInput && /*#__PURE__*/_jsx(CodeToText, {
660
660
  ...htmlAction,
661
661
  handleCodeToText: handleCodeToText,
662
- translation: translation || translationMock
662
+ translation: translationFn
663
663
  })]
664
664
  }, id), /*#__PURE__*/_jsx(FontLoader, {
665
665
  otherProps: {
@@ -676,7 +676,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
676
676
  onConfirm: () => {
677
677
  handleDeleteAll();
678
678
  },
679
- translation: translation || translationMock
679
+ translation: translationFn
680
680
  })]
681
681
  });
682
682
  });
@@ -47,6 +47,9 @@ const useFreeGridStyles = ({
47
47
  "&.type_text": {
48
48
  // minHeight: "fit-content !important",
49
49
  // wordBreak: "break-all",
50
+ "& .placeholder-simple-text": {
51
+ display: "none"
52
+ }
50
53
  },
51
54
  "&.enable-1, &.enable-2": {
52
55
  "&.type_text": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "10.0.4",
3
+ "version": "10.0.6",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"