@vonaffenfels/slate-editor 1.0.35 → 1.0.41

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonaffenfels/slate-editor",
3
- "version": "1.0.35",
3
+ "version": "1.0.41",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -71,7 +71,7 @@
71
71
  "cssnano": "^5.0.1",
72
72
  "escape-html": "^1.0.3"
73
73
  },
74
- "gitHead": "8531e3bdf7affdda47f286a5786cd7778044f1fc",
74
+ "gitHead": "1ad8ddd858ff27ea19e568d79f189f20a2ef0488",
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  }
@@ -34,7 +34,7 @@ export default function BlockEditor({
34
34
  }) {
35
35
  const scrollContainer = useRef(null);
36
36
  const [selectedStorybookElement, setSelectedStorybookElement] = useState(null);
37
- const renderElement = useCallback((props) => {
37
+ const renderElement = (props) => {
38
38
  return <Element
39
39
  {...props}
40
40
  editor={editor}
@@ -55,7 +55,7 @@ export default function BlockEditor({
55
55
  onElementClick={() => {
56
56
  setSelectedStorybookElement(null);
57
57
  }}/>;
58
- }, []);
58
+ };
59
59
  const renderLeaf = useCallback(props => <Leaf {...props} elementPropsMap={elementPropsMap}/>, []);
60
60
  const emptyValue = [
61
61
  {
@@ -95,8 +95,6 @@ const BlockComponent = ({
95
95
 
96
96
  setLoadedComponent(loadedComponent);
97
97
 
98
- console.log({loadedAttributes});
99
-
100
98
  return () => {
101
99
  mounted = false;
102
100
  };
@@ -3,10 +3,7 @@ import {
3
3
  } from "react";
4
4
  import {SidebarEditorField} from "./SidebarEditor/SidebarEditorField";
5
5
  import {ToolMargin} from "./Tools/Margin";
6
-
7
6
  import "../scss/sidebarEditor.scss";
8
- import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
9
- import {faSpinner} from "@fortawesome/free-solid-svg-icons";
10
7
  import {Spinner} from "@contentful/forma-36-react-components";
11
8
 
12
9
  const devMode = localStorage.getItem("dev-mode") === "true";