@toast-ui/editor 3.0.2 → 3.1.2
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/README.md +4 -4
- package/dist/esm/i18n/ar.js +7 -0
- package/dist/esm/i18n/cs-cz.js +7 -0
- package/dist/esm/i18n/de-de.js +7 -0
- package/dist/esm/i18n/en-us.js +7 -0
- package/dist/esm/i18n/es-es.js +7 -0
- package/dist/esm/i18n/fi-fi.js +7 -0
- package/dist/esm/i18n/fr-fr.js +7 -0
- package/dist/esm/i18n/gl-es.js +7 -0
- package/dist/esm/i18n/hr-hr.js +7 -0
- package/dist/esm/i18n/i18n.js +15 -4
- package/dist/esm/i18n/it-it.js +7 -0
- package/dist/esm/i18n/ja-jp.js +7 -0
- package/dist/esm/i18n/ko-kr.js +7 -0
- package/dist/esm/i18n/nb-no.js +7 -0
- package/dist/esm/i18n/nl-nl.js +7 -0
- package/dist/esm/i18n/pl-pl.js +7 -0
- package/dist/esm/i18n/pt-br.js +7 -0
- package/dist/esm/i18n/ru-ru.js +7 -0
- package/dist/esm/i18n/sv-se.js +7 -0
- package/dist/esm/i18n/tr-tr.js +7 -0
- package/dist/esm/i18n/uk-ua.js +7 -0
- package/dist/esm/i18n/zh-cn.js +7 -0
- package/dist/esm/i18n/zh-tw.js +7 -0
- package/dist/esm/index.js +2885 -426
- package/dist/esm/indexViewer.js +1672 -297
- package/dist/i18n/ar.js +1 -1
- package/dist/i18n/cs-cz.js +1 -1
- package/dist/i18n/de-de.js +1 -1
- package/dist/i18n/es-es.js +1 -1
- package/dist/i18n/fi-fi.js +1 -1
- package/dist/i18n/fr-fr.js +1 -1
- package/dist/i18n/gl-es.js +1 -1
- package/dist/i18n/hr-hr.js +1 -1
- package/dist/i18n/it-it.js +1 -1
- package/dist/i18n/ja-jp.js +1 -1
- package/dist/i18n/ko-kr.js +1 -1
- package/dist/i18n/nb-no.js +1 -1
- package/dist/i18n/nl-nl.js +1 -1
- package/dist/i18n/pl-pl.js +1 -1
- package/dist/i18n/pt-br.js +1 -1
- package/dist/i18n/ru-ru.js +1 -1
- package/dist/i18n/sv-se.js +1 -1
- package/dist/i18n/tr-tr.js +1 -1
- package/dist/i18n/uk-ua.js +1 -1
- package/dist/i18n/zh-cn.js +1 -1
- package/dist/i18n/zh-tw.js +1 -1
- package/dist/toastui-editor-only.css +22 -16
- package/dist/toastui-editor-viewer.css +10 -2
- package/dist/toastui-editor-viewer.js +1823 -370
- package/dist/toastui-editor.css +31 -17
- package/dist/toastui-editor.js +2853 -318
- package/package.json +5 -1
- package/types/editor.d.ts +6 -4
- package/types/event.d.ts +1 -0
- package/types/index.d.ts +4 -3
- package/types/toastui-editor-viewer.d.ts +39 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toast-ui/editor",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "GFM Markdown Wysiwyg Editor - Productive and Extensible",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nhn",
|
|
@@ -31,9 +31,11 @@
|
|
|
31
31
|
"./dist/toastui-editor-viewer": "./dist/toastui-editor-viewer.js",
|
|
32
32
|
"./dist/toastui-editor.css": "./dist/toastui-editor.css",
|
|
33
33
|
"./dist/toastui-editor-viewer.css": "./dist/toastui-editor-viewer.css",
|
|
34
|
+
"./dist/toastui-editor-only.css": "./dist/toastui-editor-only.css",
|
|
34
35
|
"./dist/theme/toastui-editor-dark.css": "./dist/theme/toastui-editor-dark.css",
|
|
35
36
|
"./toastui-editor.css": "./dist/toastui-editor.css",
|
|
36
37
|
"./toastui-editor-viewer.css": "./dist/toastui-editor-viewer.css",
|
|
38
|
+
"./toastui-editor-only.css": "./dist/toastui-editor-only.css",
|
|
37
39
|
"./toastui-editor-dark.css": "./dist/theme/toastui-editor-dark.css"
|
|
38
40
|
},
|
|
39
41
|
"types": "types/index.d.ts",
|
|
@@ -75,9 +77,11 @@
|
|
|
75
77
|
},
|
|
76
78
|
"devDependencies": {
|
|
77
79
|
"@toast-ui/release-notes": "^2.0.1",
|
|
80
|
+
"@types/dompurify": "2.3.1",
|
|
78
81
|
"cross-env": "^6.0.3"
|
|
79
82
|
},
|
|
80
83
|
"dependencies": {
|
|
84
|
+
"dompurify": "^2.3.3",
|
|
81
85
|
"prosemirror-commands": "^1.1.9",
|
|
82
86
|
"prosemirror-history": "^1.1.3",
|
|
83
87
|
"prosemirror-inputrules": "^1.1.3",
|
package/types/editor.d.ts
CHANGED
|
@@ -158,6 +158,8 @@ export interface EditorOptions {
|
|
|
158
158
|
frontMatter?: boolean;
|
|
159
159
|
widgetRules?: WidgetRule[];
|
|
160
160
|
theme?: string;
|
|
161
|
+
autofocus?: boolean;
|
|
162
|
+
viewer?: boolean;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
165
|
interface Slots {
|
|
@@ -193,9 +195,9 @@ export class EditorCore {
|
|
|
193
195
|
|
|
194
196
|
blur(): void;
|
|
195
197
|
|
|
196
|
-
moveCursorToEnd(): void;
|
|
198
|
+
moveCursorToEnd(focus?: boolean): void;
|
|
197
199
|
|
|
198
|
-
moveCursorToStart(): void;
|
|
200
|
+
moveCursorToStart(focus?: boolean): void;
|
|
199
201
|
|
|
200
202
|
setMarkdown(markdown: string, cursorToEnd?: boolean): void;
|
|
201
203
|
|
|
@@ -312,9 +314,9 @@ export interface Base {
|
|
|
312
314
|
|
|
313
315
|
destroy(): void;
|
|
314
316
|
|
|
315
|
-
moveCursorToStart(): void;
|
|
317
|
+
moveCursorToStart(focus: boolean): void;
|
|
316
318
|
|
|
317
|
-
moveCursorToEnd(): void;
|
|
319
|
+
moveCursorToEnd(focus: boolean): void;
|
|
318
320
|
|
|
319
321
|
setScrollTop(top: number): void;
|
|
320
322
|
|
package/types/event.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for TOAST UI Editor v3.
|
|
1
|
+
// Type definitions for TOAST UI Editor v3.1.2
|
|
2
2
|
// TypeScript Version: 4.2.3
|
|
3
3
|
import {
|
|
4
4
|
EditorCore,
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
HTMLMdNodeConvertor,
|
|
23
23
|
HTMLMdNodeConvertorMap,
|
|
24
24
|
} from './editor';
|
|
25
|
+
import './toastui-editor-viewer';
|
|
25
26
|
|
|
26
27
|
export {
|
|
27
28
|
MdNode,
|
|
@@ -61,9 +62,9 @@ export {
|
|
|
61
62
|
export { Dispatch } from './spec';
|
|
62
63
|
export { PluginInfo, PluginNodeViews, CommandFn, PluginCommandMap } from './plugin';
|
|
63
64
|
export { MdLikeNode, HTMLMdNode } from './markdown';
|
|
64
|
-
export { Editor, EditorCore };
|
|
65
|
+
export { Editor, EditorCore, Viewer };
|
|
65
66
|
export default Editor;
|
|
66
67
|
|
|
67
68
|
export declare namespace toastui {
|
|
68
|
-
export {
|
|
69
|
+
export { Editor };
|
|
69
70
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare module '@toast-ui/editor/dist/toastui-editor-viewer' {
|
|
2
|
+
import {
|
|
3
|
+
Viewer,
|
|
4
|
+
ViewerOptions,
|
|
5
|
+
ExtendedAutolinks,
|
|
6
|
+
LinkAttributes,
|
|
7
|
+
Sanitizer,
|
|
8
|
+
EventMap,
|
|
9
|
+
WidgetRuleMap,
|
|
10
|
+
WidgetRule,
|
|
11
|
+
PluginContext,
|
|
12
|
+
I18n,
|
|
13
|
+
CustomHTMLRenderer,
|
|
14
|
+
HTMLMdNodeConvertor,
|
|
15
|
+
HTMLMdNodeConvertorMap,
|
|
16
|
+
PluginInfo,
|
|
17
|
+
PluginNodeViews,
|
|
18
|
+
PluginCommandMap,
|
|
19
|
+
} from '@toast-ui/editor';
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
ViewerOptions,
|
|
23
|
+
ExtendedAutolinks,
|
|
24
|
+
LinkAttributes,
|
|
25
|
+
Sanitizer,
|
|
26
|
+
EventMap,
|
|
27
|
+
WidgetRuleMap,
|
|
28
|
+
WidgetRule,
|
|
29
|
+
PluginContext,
|
|
30
|
+
I18n,
|
|
31
|
+
CustomHTMLRenderer,
|
|
32
|
+
HTMLMdNodeConvertor,
|
|
33
|
+
HTMLMdNodeConvertorMap,
|
|
34
|
+
PluginInfo,
|
|
35
|
+
PluginNodeViews,
|
|
36
|
+
PluginCommandMap,
|
|
37
|
+
};
|
|
38
|
+
export default Viewer;
|
|
39
|
+
}
|