@opentiny/fluent-editor 3.22.0 → 3.23.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.
Files changed (82) hide show
  1. package/README.md +2 -0
  2. package/es/config/editor.config.es.js +9 -3
  3. package/es/config/editor.config.es.js.map +1 -1
  4. package/es/config/i18n/en-us.es.js +47 -26
  5. package/es/config/i18n/en-us.es.js.map +1 -1
  6. package/es/config/i18n/zh-cn.es.js +47 -26
  7. package/es/config/i18n/zh-cn.es.js.map +1 -1
  8. package/es/config/index.es.js +3 -44
  9. package/es/config/index.es.js.map +1 -1
  10. package/es/counter/index.es.js +16 -11
  11. package/es/counter/index.es.js.map +1 -1
  12. package/es/custom-clipboard.es.js +4 -4
  13. package/es/custom-clipboard.es.js.map +1 -1
  14. package/es/fluent-editor.es.js +28 -3
  15. package/es/fluent-editor.es.js.map +1 -1
  16. package/es/fullscreen/handler.es.js +10 -0
  17. package/es/fullscreen/handler.es.js.map +1 -1
  18. package/es/index.es.js +4 -3
  19. package/es/link/modules/tooltip.es.js +22 -5
  20. package/es/link/modules/tooltip.es.js.map +1 -1
  21. package/es/table/modules/table-operation-menu.es.js +213 -203
  22. package/es/table/modules/table-operation-menu.es.js.map +1 -1
  23. package/es/table/modules/table-selection.es.js.map +1 -1
  24. package/es/toolbar/index.es.js +2 -0
  25. package/es/toolbar/index.es.js.map +1 -1
  26. package/es/toolbar/toolbar-tip.es.js +106 -0
  27. package/es/toolbar/toolbar-tip.es.js.map +1 -0
  28. package/es/utils/debounce.es.js +2 -1
  29. package/es/utils/debounce.es.js.map +1 -1
  30. package/es/utils/is.es.js +10 -0
  31. package/es/utils/is.es.js.map +1 -0
  32. package/es/utils/method.es.js +0 -5
  33. package/es/utils/method.es.js.map +1 -1
  34. package/lib/config/editor.config.cjs.js +8 -2
  35. package/lib/config/editor.config.cjs.js.map +1 -1
  36. package/lib/config/i18n/en-us.cjs.js +47 -26
  37. package/lib/config/i18n/en-us.cjs.js.map +1 -1
  38. package/lib/config/i18n/zh-cn.cjs.js +47 -26
  39. package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
  40. package/lib/config/index.cjs.js +3 -43
  41. package/lib/config/index.cjs.js.map +1 -1
  42. package/lib/counter/index.cjs.js +15 -10
  43. package/lib/counter/index.cjs.js.map +1 -1
  44. package/lib/custom-clipboard.cjs.js +3 -3
  45. package/lib/custom-clipboard.cjs.js.map +1 -1
  46. package/lib/fluent-editor.cjs.js +27 -2
  47. package/lib/fluent-editor.cjs.js.map +1 -1
  48. package/lib/fullscreen/handler.cjs.js +10 -0
  49. package/lib/fullscreen/handler.cjs.js.map +1 -1
  50. package/lib/index.cjs.js +2 -1
  51. package/lib/index.cjs.js.map +1 -1
  52. package/lib/link/modules/tooltip.cjs.js +22 -5
  53. package/lib/link/modules/tooltip.cjs.js.map +1 -1
  54. package/lib/table/modules/table-operation-menu.cjs.js +213 -203
  55. package/lib/table/modules/table-operation-menu.cjs.js.map +1 -1
  56. package/lib/table/modules/table-selection.cjs.js.map +1 -1
  57. package/lib/toolbar/index.cjs.js +2 -0
  58. package/lib/toolbar/index.cjs.js.map +1 -1
  59. package/lib/toolbar/toolbar-tip.cjs.js +106 -0
  60. package/lib/toolbar/toolbar-tip.cjs.js.map +1 -0
  61. package/lib/utils/debounce.cjs.js +2 -1
  62. package/lib/utils/debounce.cjs.js.map +1 -1
  63. package/lib/utils/is.cjs.js +10 -0
  64. package/lib/utils/is.cjs.js.map +1 -0
  65. package/lib/utils/method.cjs.js +0 -5
  66. package/lib/utils/method.cjs.js.map +1 -1
  67. package/package.json +4 -3
  68. package/style.css +15 -1
  69. package/types/config/editor.config.d.ts +214 -84
  70. package/types/config/i18n/en-us.d.ts +46 -26
  71. package/types/config/i18n/zh-cn.d.ts +46 -26
  72. package/types/config/index.d.ts +0 -41
  73. package/types/config/types/editor-config.interface.d.ts +2 -0
  74. package/types/counter/index.d.ts +9 -4
  75. package/types/custom-clipboard.d.ts +6 -3
  76. package/types/fluent-editor.d.ts +7 -1
  77. package/types/link/modules/tooltip.d.ts +1 -0
  78. package/types/table/modules/table-operation-menu.d.ts +6 -0
  79. package/types/toolbar/index.d.ts +1 -0
  80. package/types/toolbar/toolbar-tip.d.ts +9 -0
  81. package/types/utils/is.d.ts +2 -0
  82. package/types/utils/method.d.ts +0 -1
@@ -1,90 +1,220 @@
1
1
  export declare const BIG_DELTA_LIMIT = 2000;
2
2
  export declare const LANG_CONF: {
3
- undo: string;
4
- redo: string;
5
- clean: string;
6
- header: string;
7
- normal: string;
8
- h1: string;
9
- h2: string;
10
- h3: string;
11
- h4: string;
12
- h5: string;
13
- h6: string;
14
- font: string;
15
- size: string;
16
- lineheight: string;
17
- songti: string;
18
- yahei: string;
19
- kaiti: string;
20
- heiti: string;
21
- lishu: string;
22
- bold: string;
23
- italic: string;
24
- underline: string;
25
- strike: string;
26
- color: string;
27
- background: string;
28
- orderedlist: string;
29
- bulletlist: string;
30
- checklist: string;
31
- left: string;
32
- center: string;
33
- right: string;
34
- image: string;
35
- file: string;
36
- table: string;
37
- link: string;
38
- code: string;
39
- codeblock: string;
40
- blockquote: string;
41
- superscript: string;
42
- subscript: string;
43
- globallink: string;
44
- emoji: string;
45
- fullscreen: string;
46
- 'exit-fullscreen': string;
47
- help: string;
48
- more: string;
49
- 'help-format': string;
50
- 'help-insert': string;
51
- 'help-operation': string;
52
- mention: string;
53
- 'quick-menu': string;
54
- 'toggle-help-panel': string;
55
- 'scroll-table': string;
56
- 'mouse-wheel': string;
57
- save: string;
58
- 'copy-cells': string;
59
- 'copy-table': string;
60
- 'cut-cells': string;
61
- 'empty-cells': string;
62
- 'insert-row-up': string;
63
- 'insert-row-down': string;
64
- 'insert-column-left': string;
65
- 'insert-column-right': string;
66
- 'merge-cells': string;
67
- 'unmerge-cells': string;
68
- 'delete-row': string;
69
- 'delete-column': string;
70
- 'delete-table': string;
71
- 'default-link-text': string;
72
- basicblock: string;
73
- linkplaceholder: string;
74
- 'counter-template': string;
75
- char: string;
76
- word: string;
77
- 'counter-limit-tips': string;
78
- 'ie-msg': string;
79
- loading: string;
80
- pasting: string;
81
- 'img-error': string;
82
- 'img-error-info': string;
83
- lastModified: string;
84
- screenshot: string;
85
- uploading: string;
86
- subTitleBgColor: string;
3
+ 'en-US': {
4
+ header: string;
5
+ normal: string;
6
+ h1: string;
7
+ h2: string;
8
+ h3: string;
9
+ h4: string;
10
+ h5: string;
11
+ h6: string;
12
+ lineheight: string;
13
+ songti: string;
14
+ yahei: string;
15
+ kaiti: string;
16
+ heiti: string;
17
+ lishu: string;
18
+ left: string;
19
+ center: string;
20
+ right: string;
21
+ codeblock: string;
22
+ globallink: string;
23
+ 'exit-fullscreen': string;
24
+ help: string;
25
+ more: string;
26
+ 'help-format': string;
27
+ 'help-insert': string;
28
+ 'help-operation': string;
29
+ mention: string;
30
+ 'quick-menu': string;
31
+ 'toggle-help-panel': string;
32
+ 'scroll-table': string;
33
+ 'mouse-wheel': string;
34
+ save: string;
35
+ 'copy-cells': string;
36
+ 'copy-table': string;
37
+ 'cut-cells': string;
38
+ 'empty-cells': string;
39
+ 'insert-row-up': string;
40
+ 'insert-row-down': string;
41
+ 'insert-column-left': string;
42
+ 'insert-column-right': string;
43
+ 'merge-cells': string;
44
+ 'unmerge-cells': string;
45
+ 'delete-row': string;
46
+ 'delete-column': string;
47
+ 'delete-table': string;
48
+ 'default-link-text': string;
49
+ basicblock: string;
50
+ linkplaceholder: string;
51
+ 'counter-template': string;
52
+ char: string;
53
+ word: string;
54
+ 'counter-limit-tips': string;
55
+ 'ie-msg': string;
56
+ loading: string;
57
+ pasting: string;
58
+ 'img-error': string;
59
+ 'img-error-info': string;
60
+ 'last-modified': string;
61
+ screenshot: string;
62
+ uploading: string;
63
+ 'sub-title-bg-color': string;
64
+ emoji: string;
65
+ fullscreen: string;
66
+ blockquote: string;
67
+ undo: string;
68
+ redo: string;
69
+ clean: string;
70
+ bold: string;
71
+ italic: string;
72
+ underline: string;
73
+ strike: string;
74
+ image: string;
75
+ file: string;
76
+ table: string;
77
+ link: string;
78
+ code: string;
79
+ 'better-table': string;
80
+ 'code-block': string;
81
+ formula: string;
82
+ 'format-painter': string;
83
+ video: string;
84
+ color: string;
85
+ background: string;
86
+ font: string;
87
+ size: string;
88
+ 'list-ordered': string;
89
+ 'list-bullet': string;
90
+ 'list-check': string;
91
+ 'align-left': string;
92
+ 'align-center': string;
93
+ 'align-right': string;
94
+ 'align-justify': string;
95
+ 'direction-ltr': string;
96
+ 'direction-rtl': string;
97
+ 'indent--1': string;
98
+ 'indent-+1': string;
99
+ 'script-super': string;
100
+ 'script-sub': string;
101
+ 'header-normal': string;
102
+ 'header-1': string;
103
+ 'header-2': string;
104
+ 'header-3': string;
105
+ 'header-4': string;
106
+ 'header-5': string;
107
+ 'header-6': string;
108
+ };
109
+ 'zh-CN': {
110
+ header: string;
111
+ normal: string;
112
+ h1: string;
113
+ h2: string;
114
+ h3: string;
115
+ h4: string;
116
+ h5: string;
117
+ h6: string;
118
+ lineheight: string;
119
+ songti: string;
120
+ yahei: string;
121
+ kaiti: string;
122
+ heiti: string;
123
+ lishu: string;
124
+ left: string;
125
+ center: string;
126
+ right: string;
127
+ codeblock: string;
128
+ globallink: string;
129
+ 'exit-fullscreen': string;
130
+ help: string;
131
+ more: string;
132
+ 'help-format': string;
133
+ 'help-insert': string;
134
+ 'help-operation': string;
135
+ mention: string;
136
+ 'quick-menu': string;
137
+ 'toggle-help-panel': string;
138
+ 'scroll-table': string;
139
+ 'mouse-wheel': string;
140
+ save: string;
141
+ 'copy-cells': string;
142
+ 'copy-table': string;
143
+ 'cut-cells': string;
144
+ 'empty-cells': string;
145
+ 'insert-row-up': string;
146
+ 'insert-row-down': string;
147
+ 'insert-column-left': string;
148
+ 'insert-column-right': string;
149
+ 'merge-cells': string;
150
+ 'unmerge-cells': string;
151
+ 'delete-row': string;
152
+ 'delete-column': string;
153
+ 'delete-table': string;
154
+ 'default-link-text': string;
155
+ basicblock: string;
156
+ linkplaceholder: string;
157
+ 'counter-template': string;
158
+ char: string;
159
+ word: string;
160
+ 'counter-limit-tips': string;
161
+ 'ie-msg': string;
162
+ loading: string;
163
+ pasting: string;
164
+ 'img-error': string;
165
+ 'img-error-info': string;
166
+ 'last-modified': string;
167
+ screenshot: string;
168
+ uploading: string;
169
+ 'sub-title-bg-color': string;
170
+ emoji: string;
171
+ fullscreen: string;
172
+ blockquote: string;
173
+ undo: string;
174
+ redo: string;
175
+ clean: string;
176
+ bold: string;
177
+ italic: string;
178
+ underline: string;
179
+ strike: string;
180
+ image: string;
181
+ file: string;
182
+ table: string;
183
+ link: string;
184
+ code: string;
185
+ 'better-table': string;
186
+ 'code-block': string;
187
+ formula: string;
188
+ 'format-painter': string;
189
+ video: string;
190
+ color: string;
191
+ background: string;
192
+ font: string;
193
+ size: string;
194
+ 'list-ordered': string;
195
+ 'list-bullet': string;
196
+ 'list-check': string;
197
+ 'align-left': string;
198
+ 'align-center': string;
199
+ 'align-right': string;
200
+ 'align-justify': string;
201
+ 'direction-ltr': string;
202
+ 'direction-rtl': string;
203
+ 'indent--1': string;
204
+ 'indent-+1': string;
205
+ 'script-super': string;
206
+ 'script-sub': string;
207
+ 'header-normal': string;
208
+ 'header-1': string;
209
+ 'header-2': string;
210
+ 'header-3': string;
211
+ 'header-4': string;
212
+ 'header-5': string;
213
+ 'header-6': string;
214
+ };
87
215
  };
216
+ export declare const CHANGE_LANGUAGE_EVENT = "change-language";
217
+ export declare const defaultLanguage = "en-US";
88
218
  export declare const IMAGE_UPLOADER_MIME_TYPES: string[];
89
219
  export declare const OTHER_FILE_UPLOADER_MIME_TYPES: string[];
90
220
  export declare const AUDIO_VIDEO_UPLOADER_MIME_TYPES: string[];
@@ -1,7 +1,4 @@
1
1
  export declare const EN_US: {
2
- undo: string;
3
- redo: string;
4
- clean: string;
5
2
  header: string;
6
3
  normal: string;
7
4
  h1: string;
@@ -10,38 +7,17 @@ export declare const EN_US: {
10
7
  h4: string;
11
8
  h5: string;
12
9
  h6: string;
13
- font: string;
14
- size: string;
15
10
  lineheight: string;
16
11
  songti: string;
17
12
  yahei: string;
18
13
  kaiti: string;
19
14
  heiti: string;
20
15
  lishu: string;
21
- bold: string;
22
- italic: string;
23
- underline: string;
24
- strike: string;
25
- color: string;
26
- background: string;
27
- orderedlist: string;
28
- bulletlist: string;
29
- checklist: string;
30
16
  left: string;
31
17
  center: string;
32
18
  right: string;
33
- image: string;
34
- file: string;
35
- table: string;
36
- link: string;
37
- code: string;
38
19
  codeblock: string;
39
- blockquote: string;
40
- superscript: string;
41
- subscript: string;
42
20
  globallink: string;
43
- emoji: string;
44
- fullscreen: string;
45
21
  'exit-fullscreen': string;
46
22
  help: string;
47
23
  more: string;
@@ -79,8 +55,52 @@ export declare const EN_US: {
79
55
  pasting: string;
80
56
  'img-error': string;
81
57
  'img-error-info': string;
82
- lastModified: string;
58
+ 'last-modified': string;
83
59
  screenshot: string;
84
60
  uploading: string;
85
- subTitleBgColor: string;
61
+ 'sub-title-bg-color': string;
62
+ emoji: string;
63
+ fullscreen: string;
64
+ blockquote: string;
65
+ undo: string;
66
+ redo: string;
67
+ clean: string;
68
+ bold: string;
69
+ italic: string;
70
+ underline: string;
71
+ strike: string;
72
+ image: string;
73
+ file: string;
74
+ table: string;
75
+ link: string;
76
+ code: string;
77
+ 'better-table': string;
78
+ 'code-block': string;
79
+ formula: string;
80
+ 'format-painter': string;
81
+ video: string;
82
+ color: string;
83
+ background: string;
84
+ font: string;
85
+ size: string;
86
+ 'list-ordered': string;
87
+ 'list-bullet': string;
88
+ 'list-check': string;
89
+ 'align-left': string;
90
+ 'align-center': string;
91
+ 'align-right': string;
92
+ 'align-justify': string;
93
+ 'direction-ltr': string;
94
+ 'direction-rtl': string;
95
+ 'indent--1': string;
96
+ 'indent-+1': string;
97
+ 'script-super': string;
98
+ 'script-sub': string;
99
+ 'header-normal': string;
100
+ 'header-1': string;
101
+ 'header-2': string;
102
+ 'header-3': string;
103
+ 'header-4': string;
104
+ 'header-5': string;
105
+ 'header-6': string;
86
106
  };
@@ -1,7 +1,4 @@
1
1
  export declare const ZH_CN: {
2
- undo: string;
3
- redo: string;
4
- clean: string;
5
2
  header: string;
6
3
  normal: string;
7
4
  h1: string;
@@ -10,38 +7,17 @@ export declare const ZH_CN: {
10
7
  h4: string;
11
8
  h5: string;
12
9
  h6: string;
13
- font: string;
14
- size: string;
15
10
  lineheight: string;
16
11
  songti: string;
17
12
  yahei: string;
18
13
  kaiti: string;
19
14
  heiti: string;
20
15
  lishu: string;
21
- bold: string;
22
- italic: string;
23
- underline: string;
24
- strike: string;
25
- color: string;
26
- background: string;
27
- orderedlist: string;
28
- bulletlist: string;
29
- checklist: string;
30
16
  left: string;
31
17
  center: string;
32
18
  right: string;
33
- image: string;
34
- file: string;
35
- table: string;
36
- link: string;
37
- code: string;
38
19
  codeblock: string;
39
- blockquote: string;
40
- superscript: string;
41
- subscript: string;
42
20
  globallink: string;
43
- emoji: string;
44
- fullscreen: string;
45
21
  'exit-fullscreen': string;
46
22
  help: string;
47
23
  more: string;
@@ -79,8 +55,52 @@ export declare const ZH_CN: {
79
55
  pasting: string;
80
56
  'img-error': string;
81
57
  'img-error-info': string;
82
- lastModified: string;
58
+ 'last-modified': string;
83
59
  screenshot: string;
84
60
  uploading: string;
85
- subTitleBgColor: string;
61
+ 'sub-title-bg-color': string;
62
+ emoji: string;
63
+ fullscreen: string;
64
+ blockquote: string;
65
+ undo: string;
66
+ redo: string;
67
+ clean: string;
68
+ bold: string;
69
+ italic: string;
70
+ underline: string;
71
+ strike: string;
72
+ image: string;
73
+ file: string;
74
+ table: string;
75
+ link: string;
76
+ code: string;
77
+ 'better-table': string;
78
+ 'code-block': string;
79
+ formula: string;
80
+ 'format-painter': string;
81
+ video: string;
82
+ color: string;
83
+ background: string;
84
+ font: string;
85
+ size: string;
86
+ 'list-ordered': string;
87
+ 'list-bullet': string;
88
+ 'list-check': string;
89
+ 'align-left': string;
90
+ 'align-center': string;
91
+ 'align-right': string;
92
+ 'align-justify': string;
93
+ 'direction-ltr': string;
94
+ 'direction-rtl': string;
95
+ 'indent--1': string;
96
+ 'indent-+1': string;
97
+ 'script-super': string;
98
+ 'script-sub': string;
99
+ 'header-normal': string;
100
+ 'header-1': string;
101
+ 'header-2': string;
102
+ 'header-3': string;
103
+ 'header-4': string;
104
+ 'header-5': string;
105
+ 'header-6': string;
86
106
  };
@@ -2,47 +2,6 @@ export * from './editor.config';
2
2
  export declare const ICONS_CONFIG: {
3
3
  [key: string]: any;
4
4
  };
5
- export declare const TABLE_RIGHT_MENU_CONFIG: {
6
- copyCells: {
7
- text: string;
8
- };
9
- copyTable: {
10
- text: string;
11
- };
12
- cutCells: {
13
- text: string;
14
- };
15
- emptyCells: {
16
- text: string;
17
- };
18
- insertRowUp: {
19
- text: string;
20
- };
21
- insertRowDown: {
22
- text: string;
23
- };
24
- insertColumnLeft: {
25
- text: string;
26
- };
27
- insertColumnRight: {
28
- text: string;
29
- };
30
- mergeCells: {
31
- text: string;
32
- };
33
- unmergeCells: {
34
- text: string;
35
- };
36
- deleteRow: {
37
- text: string;
38
- };
39
- deleteColumn: {
40
- text: string;
41
- };
42
- deleteTable: {
43
- text: string;
44
- };
45
- };
46
5
  export declare function inputFile(type: any, accept: any): void;
47
6
  export declare function getListValue(value: any, preListValue: any): any;
48
7
  /** css namespace */
@@ -18,4 +18,6 @@ export interface IEditorConfig extends QuillOptions {
18
18
  isVideoPlay?: boolean;
19
19
  };
20
20
  screenshot?: Partial<ScreenShotOptions>;
21
+ lang?: string;
22
+ langText?: Record<string, string>;
21
23
  }
@@ -1,12 +1,17 @@
1
+ import { FluentEditor } from 'src/fluent-editor';
1
2
  import { ICounterOption } from '../config/types';
2
- import { default as Quill } from 'quill';
3
3
 
4
4
  export default class Counter {
5
- private quill;
5
+ quill: FluentEditor;
6
6
  container: HTMLDivElement;
7
7
  options: ICounterOption;
8
- defaultOptions: ICounterOption;
9
- constructor(quill: Quill, options: ICounterOption);
8
+ constructor(quill: FluentEditor, options: ICounterOption);
9
+ resolveOptions(options: ICounterOption): {
10
+ format: string;
11
+ unit: string;
12
+ template: string;
13
+ count: number;
14
+ } & ICounterOption;
10
15
  renderCount: () => void;
11
16
  getContentLength(format: any): number;
12
17
  }
@@ -1,12 +1,15 @@
1
- declare const Clipboard: unknown;
1
+ import { default as TypeClipboard } from 'quill/modules/clipboard';
2
+ import { FluentEditor } from './fluent-editor';
3
+
4
+ declare const Clipboard: typeof TypeClipboard;
2
5
  declare class CustomClipboard extends Clipboard {
3
- quill: any;
6
+ quill: FluentEditor;
4
7
  convert: any;
5
8
  onCopy: any;
6
9
  matchers: any;
7
10
  prepareMatching(container: any, nodeMatches: any): any[][];
8
11
  onCaptureCopy(e: any, isCut?: boolean): void;
9
- onCapturePaste(e: any): void;
12
+ onCapturePaste(e: ClipboardEvent): void;
10
13
  onPaste(range: any, { html, text, files: clipboardFiles, rtf }: {
11
14
  html: any;
12
15
  text: any;
@@ -1,9 +1,15 @@
1
+ import { ExpandedQuillOptions, default as Quill } from 'quill';
1
2
  import { IEditorConfig } from './config/types';
2
- import { default as Quill } from 'quill';
3
3
 
4
+ export interface I18NOptions {
5
+ lang: string;
6
+ langText: Record<string, string>;
7
+ }
4
8
  export declare class FluentEditor extends Quill {
5
9
  isFullscreen: boolean;
10
+ options: IEditorConfig & ExpandedQuillOptions;
6
11
  constructor(container: HTMLElement | string, options?: IEditorConfig);
12
+ changeLanguage(options: Partial<I18NOptions>): void;
7
13
  }
8
14
  declare const _default: typeof FluentEditor;
9
15
  export default _default;
@@ -17,6 +17,7 @@ export default class Tooltip extends BaseTooltip {
17
17
  autoProtocol: string;
18
18
  };
19
19
  constructor(quill: any, bounds: any);
20
+ setTemplate(): void;
20
21
  resolveOptions(): void;
21
22
  shouldHide(): boolean;
22
23
  hideToolTip(): void;
@@ -13,7 +13,13 @@ export default class TableOperationMenu {
13
13
  colorSubTitle: any;
14
14
  cellColors: any;
15
15
  domNode: any;
16
+ DEFAULT_COLOR_SUBTITLE: string;
17
+ DEFAULT_MENU: Record<string, {
18
+ text: string;
19
+ handler: () => void;
20
+ }>;
16
21
  constructor(params: any, quill: any, options: any);
22
+ setDefaultMenu(): void;
17
23
  mount(): void;
18
24
  destroy(): any;
19
25
  menuInitial({ cell, left, top }: {
@@ -6,3 +6,4 @@ declare class BetterToolbar extends Toolbar {
6
6
  attach(input: HTMLElement): void;
7
7
  }
8
8
  export default BetterToolbar;
9
+ export * from './toolbar-tip';
@@ -0,0 +1,9 @@
1
+ import { QuillToolbarTipOptions, default as QuillToolbarTip } from 'quill-toolbar-tip';
2
+ import { FluentEditor } from '../fluent-editor';
3
+
4
+ export declare class ToolbarTip extends QuillToolbarTip {
5
+ quill: FluentEditor;
6
+ static moduleName: string;
7
+ constructor(quill: FluentEditor, options: Partial<QuillToolbarTipOptions>);
8
+ resolveOptions(options: Partial<QuillToolbarTipOptions>): QuillToolbarTipOptions;
9
+ }
@@ -0,0 +1,2 @@
1
+ export declare function isObject(value: any): value is object;
2
+ export declare const isUndefined: (val: unknown) => val is undefined;
@@ -1,6 +1,5 @@
1
1
  /** Used as a reference to the global object. */
2
2
  export declare const root: any;
3
- export declare function isObject(value: any): boolean;
4
3
  export declare function compareArray(arr1: any, arr2: any): boolean;
5
4
  export declare function compareObject(object1: any, object2: any): boolean;
6
5
  export declare function compare(value: any, other: any): boolean;