@opentiny/fluent-editor 3.24.0 → 3.25.0-alpha.0
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/es/config/editor.utils.es.js.map +1 -1
- package/es/config/i18n/en-us.es.js +3 -1
- package/es/config/i18n/en-us.es.js.map +1 -1
- package/es/config/i18n/zh-cn.es.js +3 -1
- package/es/config/i18n/zh-cn.es.js.map +1 -1
- package/es/config/icons.config.es.js +4 -0
- package/es/config/icons.config.es.js.map +1 -1
- package/es/config/index.es.js +8 -4
- package/es/config/index.es.js.map +1 -1
- package/es/counter/index.es.js +4 -4
- package/es/counter/index.es.js.map +1 -1
- package/es/custom-clipboard.es.js +2 -2
- package/es/custom-clipboard.es.js.map +1 -1
- package/es/custom-image/BlotFormatter.es.js.map +1 -1
- package/es/custom-image/Options.es.js.map +1 -1
- package/es/custom-image/actions/Action.es.js.map +1 -1
- package/es/custom-image/actions/CustomResizeAction.es.js.map +1 -1
- package/es/custom-image/actions/DeleteAction.es.js.map +1 -1
- package/es/custom-image/image.es.js.map +1 -1
- package/es/custom-image/specs/BlotSpec.es.js.map +1 -1
- package/es/custom-image/specs/CustomImageSpec.es.js.map +1 -1
- package/es/custom-image/specs/ImageSpec.es.js.map +1 -1
- package/es/custom-uploader.es.js +70 -30
- package/es/custom-uploader.es.js.map +1 -1
- package/es/divider/index.es.js +17 -0
- package/es/divider/index.es.js.map +1 -0
- package/es/emoji/emoji-map.es.js.map +1 -1
- package/es/emoji/formats/emoji-blot.es.js.map +1 -1
- package/es/emoji/modules/emoji.es.js.map +1 -1
- package/es/emoji/modules/toolbar-emoji.es.js.map +1 -1
- package/es/emoji/utils.es.js.map +1 -1
- package/es/file/formats/file.es.js +1 -1
- package/es/file/formats/file.es.js.map +1 -1
- package/es/file/index.es.js.map +1 -1
- package/es/file/modules/file-bar.es.js +3 -1
- package/es/file/modules/file-bar.es.js.map +1 -1
- package/es/fluent-editor.es.js +25 -29
- package/es/fluent-editor.es.js.map +1 -1
- package/es/format-painter/index.es.js.map +1 -1
- package/es/fullscreen/handler.es.js +2 -4
- package/es/fullscreen/handler.es.js.map +1 -1
- package/es/global-link/formats/customer-widget-link.es.js.map +1 -1
- package/es/global-link/formats/doc-link.es.js.map +1 -1
- package/es/global-link/formats/wiki-link.es.js.map +1 -1
- package/es/global-link/formats/work-item-link.es.js.map +1 -1
- package/es/global-link/index.es.js.map +1 -1
- package/es/global-link/utils/createTable.es.js.map +1 -1
- package/es/i18n/index.es.js +39 -0
- package/es/i18n/index.es.js.map +1 -0
- package/es/index.es.js +3 -1
- package/es/index.es.js.map +1 -1
- package/es/link/formats/link.es.js.map +1 -1
- package/es/link/index.es.js.map +1 -1
- package/es/link/modules/tooltip.es.js +2 -3
- package/es/link/modules/tooltip.es.js.map +1 -1
- package/es/mathlive/formats.es.js.map +1 -1
- package/es/mathlive/index.es.js.map +1 -1
- package/es/mathlive/tooltip.es.js.map +1 -1
- package/es/mention/Mention.es.js.map +1 -1
- package/es/mention/MentionLink.es.js.map +1 -1
- package/es/quick-menu/index.es.js.map +1 -1
- package/es/screenshot/index.es.js.map +1 -1
- package/es/soft-break/index.es.js.map +1 -1
- package/es/syntax/index.es.js.map +1 -1
- package/es/table/better-table.es.js.map +1 -1
- package/es/table/formats/header.es.js +2 -2
- package/es/table/formats/header.es.js.map +1 -1
- package/es/table/formats/list.es.js.map +1 -1
- package/es/table/formats/table.es.js.map +1 -1
- package/es/table/modules/table-column-tool.es.js.map +1 -1
- package/es/table/modules/table-operation-menu.es.js +16 -17
- package/es/table/modules/table-operation-menu.es.js.map +1 -1
- package/es/table/modules/table-scroll-bar.es.js.map +1 -1
- package/es/table/modules/table-selection.es.js.map +1 -1
- package/es/table/modules/table-selector.es.js.map +1 -1
- package/es/table/utils/index.es.js.map +1 -1
- package/es/table/utils/node-matchers.es.js.map +1 -1
- package/es/toolbar/better-picker.es.js.map +1 -1
- package/es/toolbar/index.es.js +3 -3
- package/es/toolbar/index.es.js.map +1 -1
- package/es/toolbar/toolbar-tip.es.js +96 -94
- package/es/toolbar/toolbar-tip.es.js.map +1 -1
- package/es/utils/debounce.es.js.map +1 -1
- package/es/utils/image.es.js.map +1 -1
- package/es/utils/is.es.js +4 -0
- package/es/utils/is.es.js.map +1 -1
- package/es/utils/method.es.js.map +1 -1
- package/es/utils/scroll-lock.es.js.map +1 -1
- package/es/video/index.es.js.map +1 -1
- package/lib/config/editor.config.cjs.js.map +1 -1
- package/lib/config/editor.utils.cjs.js.map +1 -1
- package/lib/config/i18n/en-us.cjs.js +3 -1
- package/lib/config/i18n/en-us.cjs.js.map +1 -1
- package/lib/config/i18n/zh-cn.cjs.js +3 -1
- package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
- package/lib/config/icons.config.cjs.js +4 -0
- package/lib/config/icons.config.cjs.js.map +1 -1
- package/lib/config/index.cjs.js +7 -3
- package/lib/config/index.cjs.js.map +1 -1
- package/lib/counter/index.cjs.js +4 -4
- package/lib/counter/index.cjs.js.map +1 -1
- package/lib/custom-clipboard.cjs.js +2 -2
- package/lib/custom-clipboard.cjs.js.map +1 -1
- package/lib/custom-image/BlotFormatter.cjs.js.map +1 -1
- package/lib/custom-image/Options.cjs.js.map +1 -1
- package/lib/custom-image/actions/Action.cjs.js.map +1 -1
- package/lib/custom-image/actions/CustomResizeAction.cjs.js.map +1 -1
- package/lib/custom-image/actions/DeleteAction.cjs.js.map +1 -1
- package/lib/custom-image/image.cjs.js.map +1 -1
- package/lib/custom-image/specs/BlotSpec.cjs.js.map +1 -1
- package/lib/custom-image/specs/CustomImageSpec.cjs.js.map +1 -1
- package/lib/custom-image/specs/ImageSpec.cjs.js.map +1 -1
- package/lib/custom-uploader.cjs.js +70 -30
- package/lib/custom-uploader.cjs.js.map +1 -1
- package/lib/divider/index.cjs.js +17 -0
- package/lib/divider/index.cjs.js.map +1 -0
- package/lib/emoji/emoji-list.cjs.js.map +1 -1
- package/lib/emoji/emoji-map.cjs.js.map +1 -1
- package/lib/emoji/formats/emoji-blot.cjs.js.map +1 -1
- package/lib/emoji/modules/emoji.cjs.js.map +1 -1
- package/lib/emoji/modules/toolbar-emoji.cjs.js.map +1 -1
- package/lib/emoji/utils.cjs.js.map +1 -1
- package/lib/file/formats/file.cjs.js +1 -1
- package/lib/file/formats/file.cjs.js.map +1 -1
- package/lib/file/index.cjs.js.map +1 -1
- package/lib/file/modules/file-bar.cjs.js +3 -1
- package/lib/file/modules/file-bar.cjs.js.map +1 -1
- package/lib/fluent-editor.cjs.js +46 -50
- package/lib/fluent-editor.cjs.js.map +1 -1
- package/lib/format-painter/index.cjs.js.map +1 -1
- package/lib/fullscreen/handler.cjs.js +2 -4
- package/lib/fullscreen/handler.cjs.js.map +1 -1
- package/lib/global-link/formats/customer-widget-link.cjs.js.map +1 -1
- package/lib/global-link/formats/doc-link.cjs.js.map +1 -1
- package/lib/global-link/formats/wiki-link.cjs.js.map +1 -1
- package/lib/global-link/formats/work-item-link.cjs.js.map +1 -1
- package/lib/global-link/index.cjs.js.map +1 -1
- package/lib/global-link/utils/createTable.cjs.js.map +1 -1
- package/lib/i18n/index.cjs.js +39 -0
- package/lib/i18n/index.cjs.js.map +1 -0
- package/lib/index.cjs.js +3 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/link/formats/link.cjs.js.map +1 -1
- package/lib/link/index.cjs.js.map +1 -1
- package/lib/link/modules/tooltip.cjs.js +2 -3
- package/lib/link/modules/tooltip.cjs.js.map +1 -1
- package/lib/mathlive/formats.cjs.js.map +1 -1
- package/lib/mathlive/index.cjs.js.map +1 -1
- package/lib/mathlive/tooltip.cjs.js.map +1 -1
- package/lib/mention/Mention.cjs.js.map +1 -1
- package/lib/mention/MentionLink.cjs.js.map +1 -1
- package/lib/quick-menu/index.cjs.js.map +1 -1
- package/lib/screenshot/index.cjs.js.map +1 -1
- package/lib/soft-break/index.cjs.js.map +1 -1
- package/lib/syntax/index.cjs.js.map +1 -1
- package/lib/table/better-table.cjs.js.map +1 -1
- package/lib/table/formats/header.cjs.js +2 -2
- package/lib/table/formats/header.cjs.js.map +1 -1
- package/lib/table/formats/list.cjs.js.map +1 -1
- package/lib/table/formats/table.cjs.js.map +1 -1
- package/lib/table/modules/table-column-tool.cjs.js.map +1 -1
- package/lib/table/modules/table-operation-menu.cjs.js +16 -17
- package/lib/table/modules/table-operation-menu.cjs.js.map +1 -1
- package/lib/table/modules/table-scroll-bar.cjs.js.map +1 -1
- package/lib/table/modules/table-selection.cjs.js.map +1 -1
- package/lib/table/modules/table-selector.cjs.js.map +1 -1
- package/lib/table/utils/index.cjs.js.map +1 -1
- package/lib/table/utils/node-matchers.cjs.js.map +1 -1
- package/lib/toolbar/better-picker.cjs.js.map +1 -1
- package/lib/toolbar/index.cjs.js +1 -1
- package/lib/toolbar/index.cjs.js.map +1 -1
- package/lib/toolbar/toolbar-tip.cjs.js +96 -94
- package/lib/toolbar/toolbar-tip.cjs.js.map +1 -1
- package/lib/utils/debounce.cjs.js.map +1 -1
- package/lib/utils/image.cjs.js.map +1 -1
- package/lib/utils/is.cjs.js +4 -0
- package/lib/utils/is.cjs.js.map +1 -1
- package/lib/utils/method.cjs.js.map +1 -1
- package/lib/utils/scroll-lock.cjs.js.map +1 -1
- package/lib/video/index.cjs.js.map +1 -1
- package/package.json +2 -3
- package/style.css +169 -109
- package/types/config/editor.config.d.ts +4 -0
- package/types/config/i18n/en-us.d.ts +2 -0
- package/types/config/i18n/zh-cn.d.ts +2 -0
- package/types/config/icons.config.d.ts +2 -0
- package/types/config/types/editor-config.interface.d.ts +11 -3
- package/types/config/types/type.d.ts +1 -0
- package/types/counter/index.d.ts +1 -1
- package/types/divider/index.d.ts +7 -0
- package/types/fluent-editor.d.ts +2 -5
- package/types/i18n/index.d.ts +14 -0
- package/types/index.d.ts +2 -1
- package/types/table/formats/header.d.ts +5 -4
- package/types/toolbar/toolbar-tip.d.ts +8 -7
- package/types/utils/is.d.ts +3 -1
|
@@ -80,6 +80,7 @@ export declare const LANG_CONF: {
|
|
|
80
80
|
'code-block': string;
|
|
81
81
|
formula: string;
|
|
82
82
|
'format-painter': string;
|
|
83
|
+
divider: string;
|
|
83
84
|
video: string;
|
|
84
85
|
color: string;
|
|
85
86
|
background: string;
|
|
@@ -105,6 +106,7 @@ export declare const LANG_CONF: {
|
|
|
105
106
|
'header-4': string;
|
|
106
107
|
'header-5': string;
|
|
107
108
|
'header-6': string;
|
|
109
|
+
'header-list': string;
|
|
108
110
|
};
|
|
109
111
|
'zh-CN': {
|
|
110
112
|
header: string;
|
|
@@ -181,6 +183,7 @@ export declare const LANG_CONF: {
|
|
|
181
183
|
file: string;
|
|
182
184
|
table: string;
|
|
183
185
|
link: string;
|
|
186
|
+
divider: string;
|
|
184
187
|
code: string;
|
|
185
188
|
'better-table': string;
|
|
186
189
|
'code-block': string;
|
|
@@ -211,6 +214,7 @@ export declare const LANG_CONF: {
|
|
|
211
214
|
'header-4': string;
|
|
212
215
|
'header-5': string;
|
|
213
216
|
'header-6': string;
|
|
217
|
+
'header-list': string;
|
|
214
218
|
};
|
|
215
219
|
};
|
|
216
220
|
export declare const CHANGE_LANGUAGE_EVENT = "change-language";
|
|
@@ -78,6 +78,7 @@ export declare const EN_US: {
|
|
|
78
78
|
'code-block': string;
|
|
79
79
|
formula: string;
|
|
80
80
|
'format-painter': string;
|
|
81
|
+
divider: string;
|
|
81
82
|
video: string;
|
|
82
83
|
color: string;
|
|
83
84
|
background: string;
|
|
@@ -103,4 +104,5 @@ export declare const EN_US: {
|
|
|
103
104
|
'header-4': string;
|
|
104
105
|
'header-5': string;
|
|
105
106
|
'header-6': string;
|
|
107
|
+
'header-list': string;
|
|
106
108
|
};
|
|
@@ -73,6 +73,7 @@ export declare const ZH_CN: {
|
|
|
73
73
|
file: string;
|
|
74
74
|
table: string;
|
|
75
75
|
link: string;
|
|
76
|
+
divider: string;
|
|
76
77
|
code: string;
|
|
77
78
|
'better-table': string;
|
|
78
79
|
'code-block': string;
|
|
@@ -103,4 +104,5 @@ export declare const ZH_CN: {
|
|
|
103
104
|
'header-4': string;
|
|
104
105
|
'header-5': string;
|
|
105
106
|
'header-6': string;
|
|
107
|
+
'header-list': string;
|
|
106
108
|
};
|
|
@@ -9,6 +9,7 @@ export declare const COLOR_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\
|
|
|
9
9
|
export declare const BACKGROUND_COLOR_ICON = " <svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <path d=\"M4.64447006,9.66583547 L3.17597929,8.33216965 L6.15933183,5.11039074 L5.42508645,4.44355783\n L9.39179153,1.0658141e-13 L16,6.00149616 L12.0332949,10.445054 L11.2990495,9.77822108 L8.31569698,13 L6.84720621,11.6663342\n L5.69344476,12.9587937 L2.36400649,12.9587937 L2,12.6282074 L4.64447006,9.66583547 Z M4.57134219,8.25840959\n L8.24256911,11.5925741 L10.5648041,9.11138818 L6.89357722,5.77722364 L4.57134219,8.25840959 Z M14.6046371,6.07525623\n L9.4649194,1.40742588 L6.82044935,4.36979777 L11.960167,9.03762811 L14.6046371,6.07525623 Z M2,14 L14,14 L14,16 L2,16 L2,14 Z\"\n fill=\"#293040\"></path>\n</g>\n</svg>";
|
|
10
10
|
export declare const ALIGN_LEFT_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <path d=\"M0,0 L1.5,0 L1.5,16 L0,16 L0,0 Z M4,3 L13,3 L13,7 L4,7 L4,3 Z M5,4 L5,6 L12,6 L12,4 L5,4 Z M4,9 L16,9\n L16,13 L4,13 L4,9 Z M5,10 L5,12 L15,12 L15,10 L5,10 Z\" fill=\"#293040\"></path>\n</g>\n</svg>";
|
|
11
11
|
export declare const ALIGN_CENTER_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <path d=\"M8.75,7 L8.75,9 L16,9 L16,13 L8.75,13 L8.75,16 L7.25,16 L7.25,13 L0,13 L0,9 L7.25,9 L7.25,7 L2,7\n L2,3 L7.25,3 L7.25,0 L8.75,0 L8.75,3 L14,3 L14,7 L8.75,7 Z M1,10 L1,12 L15,12 L15,10 L1,10 Z M3,4 L3,6 L13,6\n L13,4 L3,4 Z\" fill=\"#293040\"></path>\n</g>\n</svg>";
|
|
12
|
+
export declare const ALIGN_JUSTIFY_ICON = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 15 15\"><path fill=\"none\" stroke=\"currentColor\" d=\"M0 3.5h15m-15 8h15m-15-4h15\"/></svg>";
|
|
12
13
|
export declare const ALIGN_RIGHT_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <path d=\"M14.5,0 L16,0 L16,16 L14.5,16 L14.5,0 Z M3,3 L12,3 L12,7 L3,7 L3,3 Z M4,4 L4,6 L11,6 L11,4 L4,4 Z\n M0,9 L12,9 L12,13 L0,13 L0,9 Z M1,10 L1,12 L11,12 L11,10 L1,10 Z\" fill=\"#293040\"></path>\n</g>\n</svg>";
|
|
13
14
|
export declare const LIST_UNORDERED_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill=\"#293040\">\n <path d=\"M5,1 L16,1 L16,2.5 L5,2.5 L5,1 Z M2,4 C0.8954305,4 0,3.1045695 0,2 C0,0.8954305 0.8954305,0 2,0\n C3.1045695,0 4,0.8954305 4,2 C4,3.1045695 3.1045695,4 2,4 Z M2,3 C2.55228475,3 3,2.55228475 3,2 C3,1.44771525\n 2.55228475,1 2,1 C1.44771525,1 1,1.44771525 1,2 C1,2.55228475 1.44771525,3 2,3 Z M2,10 C0.8954305,10 0,9.1045695\n 0,8 C0,6.8954305 0.8954305,6 2,6 C3.1045695,6 4,6.8954305 4,8 C4,9.1045695 3.1045695,10 2,10 Z M2,9 C2.55228475,9\n 3,8.55228475 3,8 C3,7.44771525 2.55228475,7 2,7 C1.44771525,7 1,7.44771525 1,8 C1,8.55228475 1.44771525,9 2,9 Z\n M2,16 C0.8954305,16 0,15.1045695 0,14 C0,12.8954305 0.8954305,12 2,12 C3.1045695,12 4,12.8954305 4,14 C4,15.1045695\n 3.1045695,16 2,16 Z M2,15 C2.55228475,15 3,14.5522847 3,14 C3,13.4477153 2.55228475,13 2,13 C1.44771525,13 1,13.4477153\n 1,14 C1,14.5522847 1.44771525,15 2,15 Z M5,7 L16,7 L16,8.5 L5,8.5 L5,7 Z M5,13 L16,13 L16,14.5 L5,14.5 L5,13 Z\"></path>\n </g>\n</g>\n</svg>";
|
|
14
15
|
export declare const LIST_ORDERED_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill=\"#293040\">\n <path d=\"M5,1 L16,1 L16,2.5 L5,2.5 L5,1 Z M0,0 L2,0 L2,3 L3,3 L3,4 L0,4 L0,3 L1,3 L1,1 L0,1 L0,0 Z M5,7 L16,7\n L16,8.5 L5,8.5 L5,7 Z M5,13 L16,13 L16,14.5 L5,14.5 L5,13 Z M0,15 L1.75,15 C1.88807119,15 2,14.8880712 2,14.75\n C2,14.6119288 1.88807119,14.5 1.75,14.5 L0,14.5 L0,13.5 L1.75,13.5 C1.88807119,13.5 2,13.3880712 2,13.25 C2,13.1119288\n 1.88807119,13 1.75,13 L0,13 L0,12 L1.5,12 C2.32842712,12 3,12.6715729 3,13.5 C3,13.6753177 2.96992289,13.8436105\n 2.91464715,14 C2.96992289,14.1563895 3,14.3246823 3,14.5 C3,15.3284271 2.32842712,16 1.5,16 L0,16 L0,15 Z M2,7.5\n C2,7.35127258 1.9375,7.22627258 1.84375,7.13845444 C1.76307119,7.05596441 1.63807119,7 1.5,7 C1.22385763,7 1,7.22385763\n 1,7.5 L1.62630326e-19,7.5 C0.147399902,6.5 0.647399902,6 1.5,6 C2.32842712,6 3,6.67157288 3,7.5 C3,8.07312512\n 2.50016007,8.55650475 2.22821045,8.74661255 C1.95626083,8.93672035 1.77325955,8.99789088 1.76769962,9 L3,9 L3,10\n L0,10 L1.62630326e-19,9 C0.619515577,8.77257137 1.06188822,8.55939591 1.32711792,8.36047363 C1.6371448,8.12795347\n 1.87259637,7.91592701 1.96143498,7.69289356 C1.98627694,7.633537 2,7.5683711 2,7.5 Z\"></path>\n </g>\n</g>\n</svg>";
|
|
@@ -32,3 +33,4 @@ export declare const FULLSCREEN_ICON = "<svg xmlns=\"http://www.w3.org/2000/svg\
|
|
|
32
33
|
export declare const FULLSCREEN_EXIT_ICON = "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 24 24\">\n <path fill=\"currentColor\" d=\"M6 21v-3H3v-2h5v5zm10 0v-5h5v2h-3v3zM3 8V6h3V3h2v5zm13 0V3h2v3h3v2z\"/>\n </svg>\n";
|
|
33
34
|
export declare const TRIANGLE_DOWN_ICON = "<i class=\"icon-triangle-down\"></i>";
|
|
34
35
|
export declare const FORMAT_PAINTER_ICON = "<svg viewBox=\"0 0 32 32\"><path fill=\"currentColor\" d=\"M28.83 23.17L23 17.33V13a1 1 0 0 0-.29-.71l-10-10a1 1 0 0 0-1.42 0l-9 9a1 1 0 0 0 0 1.42l10 10A1 1 0 0 0 13 23h4.34l5.83 5.84a4 4 0 0 0 5.66-5.66ZM6 10.41l2.29 2.3l1.42-1.42L7.41 9L9 7.41l4.29 4.3l1.42-1.42L10.41 6L12 4.41L18.59 11L11 18.59L4.41 12Zm21.41 17a2 2 0 0 1-2.82 0l-6.13-6.12a1.8 1.8 0 0 0-.71-.29h-4.34l-1-1L20 12.41l1 1v4.34a1 1 0 0 0 .29.7l6.12 6.14a2 2 0 0 1 0 2.82\"/></svg>";
|
|
36
|
+
export declare const DIVIDER_ICON = "<svg viewBox=\"0 0 18 18\"><line x1=\"0\" y1=\"9\" x2=\"18\" y2=\"9\" stroke=\"currentColor\" stroke-width=\"2\"/></svg>";
|
|
@@ -19,12 +19,20 @@ export interface IEditorConfig extends QuillOptions {
|
|
|
19
19
|
}) => void;
|
|
20
20
|
imageAccept?: Array<string>[] | string;
|
|
21
21
|
fileAccept?: Array<string>[] | string;
|
|
22
|
+
fileUpload: ({ file, callback, editor }: {
|
|
23
|
+
file: any;
|
|
24
|
+
callback: any;
|
|
25
|
+
editor: any;
|
|
26
|
+
}) => void;
|
|
22
27
|
isVideoPlay?: boolean;
|
|
23
|
-
maxSize?:
|
|
28
|
+
maxSize?: number;
|
|
24
29
|
success?: (file: File) => void;
|
|
25
30
|
fail?: (file: File) => void;
|
|
31
|
+
multiple?: boolean;
|
|
26
32
|
};
|
|
27
33
|
screenshot?: Partial<ScreenShotOptions>;
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
i18n?: {
|
|
35
|
+
lang?: string;
|
|
36
|
+
langText?: Record<string, string>;
|
|
37
|
+
};
|
|
30
38
|
}
|
|
@@ -3,3 +3,4 @@ import { IToolbarItem } from './toolbar-item.interface';
|
|
|
3
3
|
export type ToolbarOption = (string[] | IToolbarItem[] | string | IToolbarItem)[];
|
|
4
4
|
export type EditorFormat = 'object' | 'json' | 'html' | 'text';
|
|
5
5
|
export type AnyFunction = (...args: any[]) => any;
|
|
6
|
+
export type Constructor<T = any, U extends Array<any> = any[]> = new (...args: U) => T;
|
package/types/counter/index.d.ts
CHANGED
package/types/fluent-editor.d.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { ExpandedQuillOptions, default as Quill } from 'quill';
|
|
2
2
|
import { IEditorConfig } from './config/types';
|
|
3
3
|
|
|
4
|
-
export interface I18NOptions {
|
|
5
|
-
lang: string;
|
|
6
|
-
langText: Record<string, string>;
|
|
7
|
-
}
|
|
8
4
|
export declare class FluentEditor extends Quill {
|
|
9
5
|
isFullscreen: boolean;
|
|
10
6
|
options: IEditorConfig & ExpandedQuillOptions;
|
|
7
|
+
get lang(): string;
|
|
11
8
|
constructor(container: HTMLElement | string, options?: IEditorConfig);
|
|
12
|
-
|
|
9
|
+
getLangText(name: string): any;
|
|
13
10
|
}
|
|
14
11
|
declare const _default: typeof FluentEditor;
|
|
15
12
|
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FluentEditor } from '../fluent-editor';
|
|
2
|
+
|
|
3
|
+
export interface I18NOptions {
|
|
4
|
+
lang: string;
|
|
5
|
+
langText: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
export declare class I18N {
|
|
8
|
+
quill: FluentEditor;
|
|
9
|
+
isFullscreen: boolean;
|
|
10
|
+
options: I18NOptions;
|
|
11
|
+
constructor(quill: FluentEditor, options: Partial<I18NOptions>);
|
|
12
|
+
resolveLanguageOption(options: Partial<I18NOptions>): I18NOptions;
|
|
13
|
+
changeLanguage(options: Partial<I18NOptions>): void;
|
|
14
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { default as TypeHeader } from 'quill/formats/header';
|
|
2
|
+
|
|
3
|
+
declare const OriginHeader: typeof TypeHeader;
|
|
4
|
+
declare class Header extends OriginHeader {
|
|
3
5
|
static tagName: any;
|
|
4
6
|
static blotName: string;
|
|
5
7
|
domNode: any;
|
|
@@ -9,12 +11,11 @@ declare class Header extends Block {
|
|
|
9
11
|
enforceAllowedChildren: any;
|
|
10
12
|
uiNode: any;
|
|
11
13
|
children: any;
|
|
12
|
-
statics: any;
|
|
13
14
|
appendChild: any;
|
|
14
15
|
remove: any;
|
|
15
16
|
cache: Record<string, any>;
|
|
16
17
|
scroll: any;
|
|
17
|
-
static create(value: any):
|
|
18
|
+
static create(value: any): HTMLElement;
|
|
18
19
|
static formats(domNode: any): any;
|
|
19
20
|
format(name: any, value: any): void;
|
|
20
21
|
optimize(_context: any): void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Constructor } from '../config/types';
|
|
2
2
|
import { FluentEditor } from '../fluent-editor';
|
|
3
3
|
|
|
4
|
-
export declare
|
|
5
|
-
quill: FluentEditor
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
4
|
+
export declare function generateToolbarTip(QuillToolbarTip: Constructor): {
|
|
5
|
+
new (quill: FluentEditor, options: Partial<Record<string, any>>): {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
quill: FluentEditor;
|
|
8
|
+
resolveOptions(options: Partial<Record<string, any>>): Record<string, any>;
|
|
9
|
+
};
|
|
10
|
+
};
|
package/types/utils/is.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export declare function isObject(value:
|
|
1
|
+
export declare function isObject(value: unknown): value is object;
|
|
2
2
|
export declare const isUndefined: (val: unknown) => val is undefined;
|
|
3
|
+
export declare const isFunction: (val: unknown) => val is Function;
|
|
4
|
+
export declare const isString: (val: unknown) => val is string;
|