@vonaffenfels/contentful-slate-editor 1.0.41 → 1.0.43

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/contentful-slate-editor",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "scripts": {
5
5
  "prepublish": "yarn run build",
6
6
  "dev": "yarn run start",
@@ -89,10 +89,10 @@
89
89
  "webpack-dev-server": "^4.0.0-beta.2"
90
90
  },
91
91
  "dependencies": {
92
- "@vonaffenfels/slate-editor": "^1.0.41",
92
+ "@vonaffenfels/slate-editor": "^1.0.43",
93
93
  "webpack": "5.88.2"
94
94
  },
95
- "gitHead": "1ad8ddd858ff27ea19e568d79f189f20a2ef0488",
95
+ "gitHead": "2dc1a5a219755f4b1036840f4c1bc9356749eb28",
96
96
  "publishConfig": {
97
97
  "access": "public"
98
98
  }
@@ -37,7 +37,7 @@ const EditorField = ({
37
37
  ];
38
38
  const [value, setValue] = useState(validateValue(loadedValue));
39
39
  const [externalValue, setExternalValue] = useState(value);
40
- const [isLoadingCount, setIsLoadingCount] = useState(isLoadingCount);
40
+ const [isLoadingCount, setIsLoadingCount] = useState(0);
41
41
  const isVisible = useOnScreen(wrapperRef);
42
42
 
43
43
  function validateValue(value) {
@@ -6,7 +6,10 @@ import componentLoader from "@vonaffenfels/slate-editor/componentLoader.js";
6
6
 
7
7
  const FIELD_HEIGHT = 300;
8
8
 
9
- const Field = ({sdk, elementPropsMap}) => {
9
+ const Field = ({
10
+ sdk,
11
+ elementPropsMap,
12
+ }) => {
10
13
  const [value, setValue] = useState(sdk.field.getValue());
11
14
  const wrapperRef = useRef();
12
15
 
@@ -49,7 +52,7 @@ const Field = ({sdk, elementPropsMap}) => {
49
52
  return <div
50
53
  ref={wrapperRef}
51
54
  >
52
- <button onClick={openDialog} className="mb-2 w-full">Inhalt bearbeiten</button>
55
+ <button onClick={openDialog} className="button mb-2 w-full">Inhalt bearbeiten</button>
53
56
  <div style={{
54
57
  overflowY: "auto",
55
58
  maxHeight: "500px",