@wangeditor-next/editor-for-react 6.4.2 → 6.4.3
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/dist/index.d.ts +9 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -11
- package/dist/editor-for-react/src/components/Editor.d.ts +0 -22
- package/dist/editor-for-react/src/components/Toolbar.d.ts +0 -15
- package/dist/editor-for-react/src/index.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wangeditor-next/editor-for-react",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.3",
|
|
4
4
|
"description": "wangEditor next editor for react",
|
|
5
5
|
"author": "cycleccc <2991205548@qq.com>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"homepage": "https://github.com/wangeditor-next/wangEditor-next#readme",
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"types": "dist/
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"module": "dist/index.mjs",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"types": "./dist/
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
15
|
"import": "./dist/index.mjs",
|
|
16
16
|
"require": "./dist/index.js"
|
|
17
17
|
}
|
|
@@ -35,19 +35,18 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"react": "^17.0.2",
|
|
37
37
|
"react-dom": "^17.0.2",
|
|
38
|
-
"@wangeditor-next
|
|
39
|
-
"@wangeditor-next/editor": "^6.4.2"
|
|
38
|
+
"@wangeditor-next/editor": "^6.4.3"
|
|
40
39
|
},
|
|
41
40
|
"peerDependencies": {
|
|
42
41
|
"react": ">=17.0.2",
|
|
43
42
|
"react-dom": ">=17.0.2",
|
|
44
|
-
"@wangeditor-next/editor": "^6.4.
|
|
43
|
+
"@wangeditor-next/editor": "^6.4.3"
|
|
45
44
|
},
|
|
46
45
|
"scripts": {
|
|
47
|
-
"dev": "cross-env NODE_ENV=development
|
|
48
|
-
"dev-watch": "cross-env NODE_ENV=development
|
|
49
|
-
"build": "cross-env NODE_ENV=production
|
|
50
|
-
"dev-size-stats": "cross-env NODE_ENV=development:size_stats
|
|
51
|
-
"size-stats": "cross-env NODE_ENV=production:size_stats
|
|
46
|
+
"dev": "cross-env NODE_ENV=development tsdown -c tsdown.config.js",
|
|
47
|
+
"dev-watch": "cross-env NODE_ENV=development tsdown -c tsdown.config.js -w",
|
|
48
|
+
"build": "cross-env NODE_ENV=production tsdown -c tsdown.config.js",
|
|
49
|
+
"dev-size-stats": "cross-env NODE_ENV=development:size_stats tsdown -c tsdown.config.js --report",
|
|
50
|
+
"size-stats": "cross-env NODE_ENV=production:size_stats tsdown -c tsdown.config.js --report"
|
|
52
51
|
}
|
|
53
52
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description editor react component
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
import type { IDomEditor, IEditorConfig } from '@wangeditor-next/editor';
|
|
6
|
-
import { SlateDescendant } from '@wangeditor-next/editor';
|
|
7
|
-
import React from 'react';
|
|
8
|
-
interface IProps {
|
|
9
|
-
defaultContent?: SlateDescendant[];
|
|
10
|
-
onCreated?: (editor: IDomEditor) => void;
|
|
11
|
-
defaultHtml?: string;
|
|
12
|
-
value?: string;
|
|
13
|
-
onChange: (editor: IDomEditor) => void;
|
|
14
|
-
defaultConfig: Partial<IEditorConfig>;
|
|
15
|
-
mode?: string;
|
|
16
|
-
style?: React.CSSProperties;
|
|
17
|
-
className?: string;
|
|
18
|
-
loading?: boolean;
|
|
19
|
-
loadingText?: React.ReactNode;
|
|
20
|
-
}
|
|
21
|
-
declare function EditorComponent(props: Partial<IProps>): React.JSX.Element;
|
|
22
|
-
export default EditorComponent;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description toolbar react component
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
import * as wangEditor from '@wangeditor-next/editor';
|
|
6
|
-
import React from 'react';
|
|
7
|
-
interface IProps {
|
|
8
|
-
editor: wangEditor.IDomEditor | null;
|
|
9
|
-
defaultConfig?: Partial<wangEditor.IToolbarConfig>;
|
|
10
|
-
mode?: string;
|
|
11
|
-
style?: object;
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
declare function ToolbarComponent(props: IProps): React.JSX.Element;
|
|
15
|
-
export default ToolbarComponent;
|