@flozy/editor 4.3.3 → 4.3.5

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.
@@ -42,7 +42,8 @@ const styles = theme => ({
42
42
  height: "100%"
43
43
  },
44
44
  TranscriptionContainer: {
45
- padding: "12px"
45
+ padding: "12px",
46
+ color: theme?.palette?.editor?.textColor
46
47
  }
47
48
  });
48
49
  export default styles;
@@ -5,7 +5,7 @@ const usePopupStyle = theme => ({
5
5
  marginBottom: "12px !important",
6
6
  border: "1px solid #D8DDE1",
7
7
  borderRadius: "6px",
8
- maxWidth: "96%",
8
+ maxWidth: "100%",
9
9
  "&.fullscreen": {
10
10
  marginBottom: "0px !important",
11
11
  "& .papper-wrpr": {
@@ -84,6 +84,7 @@ const FontLoader = props => {
84
84
  });
85
85
  let families = Array.from(fontSet);
86
86
  families = correctFontArray(families.join(', '));
87
+ families = families.map(font => font.replace(/\"/g, ''));
87
88
  loadFontsInBatches(families);
88
89
  }
89
90
  }, []);
@@ -1,6 +1,5 @@
1
1
  import React, { useEffect, useRef, useState } from "react";
2
- import { Editor, Node, Path, Transforms } from "slate";
3
- import { ReactEditor } from "slate-react";
2
+ import { Node, Path } from "slate";
4
3
  import { Box } from "@mui/material";
5
4
  import { Rnd } from "react-rnd";
6
5
  import Handles from "./TransformHandles";
@@ -151,7 +150,7 @@ const RnD = props => {
151
150
  // to prevent auto scroll to top
152
151
  // when no editor.selection
153
152
  if (!editor.selection) {
154
- Transforms.select(editor, Editor.end(editor, []));
153
+ // Transforms.select(editor, Editor.end(editor, []));
155
154
  }
156
155
  switch (e.detail) {
157
156
  case 1:
@@ -163,7 +162,7 @@ const RnD = props => {
163
162
  anchorEl: rndRef?.current
164
163
  });
165
164
  }
166
- ReactEditor.focus(editor);
165
+ // ReactEditor.focus(editor);
167
166
  break;
168
167
  case 2:
169
168
  focusSelection(editor, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "4.3.3",
3
+ "version": "4.3.5",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"