@uiw/react-md-editor 3.23.3 → 3.23.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.
@@ -26,7 +26,7 @@
26
26
  */
27
27
 
28
28
  /**!
29
- * @uiw/copy-to-clipboard v1.0.14
29
+ * @uiw/copy-to-clipboard v1.0.15
30
30
  * Copy to clipboard.
31
31
  *
32
32
  * Copyright (c) 2023 Kenny Wang
package/esm/Context.d.ts CHANGED
@@ -46,7 +46,7 @@ export declare function reducer(state: ContextStore, action: ContextStore): {
46
46
  extraCommands?: ICommand<string>[] | undefined;
47
47
  markdown?: string | undefined;
48
48
  preview?: PreviewType | undefined;
49
- height?: string | number | undefined;
49
+ height?: import("csstype").Property.Height<string | number> | undefined;
50
50
  fullscreen?: boolean | undefined;
51
51
  highlightEnable?: boolean | undefined;
52
52
  autoFocus?: boolean | undefined;
package/lib/Context.d.ts CHANGED
@@ -46,7 +46,7 @@ export declare function reducer(state: ContextStore, action: ContextStore): {
46
46
  extraCommands?: ICommand<string>[] | undefined;
47
47
  markdown?: string | undefined;
48
48
  preview?: PreviewType | undefined;
49
- height?: string | number | undefined;
49
+ height?: import("csstype").Property.Height<string | number> | undefined;
50
50
  fullscreen?: boolean | undefined;
51
51
  highlightEnable?: boolean | undefined;
52
52
  autoFocus?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uiw/react-md-editor",
3
- "version": "3.23.3",
3
+ "version": "3.23.5",
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>",
@@ -24,8 +24,9 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.14.6",
27
- "@uiw/react-markdown-preview": "^4.1.5",
28
- "rehype": "~12.0.1"
27
+ "@uiw/react-markdown-preview": "^4.1.14",
28
+ "rehype": "~12.0.1",
29
+ "rehype-prism-plus": "~1.6.1"
29
30
  },
30
31
  "keywords": [
31
32
  "react",
@@ -1,4 +1,4 @@
1
- import React, { useContext, useEffect, useMemo } from 'react';
1
+ import React, { useContext, useEffect } from 'react';
2
2
  import { rehype } from 'rehype';
3
3
  import rehypePrism from 'rehype-prism-plus';
4
4
  import { IProps } from '../../Editor';