@uiw/react-md-editor 3.20.8 → 3.20.9

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/esm/Editor.d.ts CHANGED
@@ -31,7 +31,7 @@ export interface MDEditorProps extends Omit<React.HTMLAttributes<HTMLDivElement>
31
31
  * The height of the editor.
32
32
  * ⚠️ `Dragbar` is invalid when **`height`** parameter percentage.
33
33
  */
34
- height?: number;
34
+ height?: CSSProperties['height'];
35
35
  /**
36
36
  * Custom toolbar heigth
37
37
  * @default 29px
package/lib/Editor.d.ts CHANGED
@@ -31,7 +31,7 @@ export interface MDEditorProps extends Omit<React.HTMLAttributes<HTMLDivElement>
31
31
  * The height of the editor.
32
32
  * ⚠️ `Dragbar` is invalid when **`height`** parameter percentage.
33
33
  */
34
- height?: number;
34
+ height?: CSSProperties['height'];
35
35
  /**
36
36
  * Custom toolbar heigth
37
37
  * @default 29px
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uiw/react-md-editor",
3
- "version": "3.20.8",
3
+ "version": "3.20.9",
4
4
  "description": "A markdown editor with preview, implemented with React.js and TypeScript.",
5
5
  "homepage": "https://uiwjs.github.io/react-md-editor/",
6
6
  "author": "kenny wang <wowohoo@qq.com>",
package/src/Editor.tsx CHANGED
@@ -35,7 +35,7 @@ export interface MDEditorProps extends Omit<React.HTMLAttributes<HTMLDivElement>
35
35
  * The height of the editor.
36
36
  * ⚠️ `Dragbar` is invalid when **`height`** parameter percentage.
37
37
  */
38
- height?: number;
38
+ height?: CSSProperties['height'];
39
39
  /**
40
40
  * Custom toolbar heigth
41
41
  * @default 29px