vue-editify 0.2.14 → 0.2.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. package/examples/App.vue +41 -88
  2. package/lib/components/button/button.vue.d.ts +62 -60
  3. package/lib/components/button/index.d.ts +4 -0
  4. package/lib/components/button/props.d.ts +12 -1
  5. package/lib/components/checkbox/checkbox.vue.d.ts +9 -9
  6. package/lib/components/checkbox/index.d.ts +4 -0
  7. package/lib/components/checkbox/props.d.ts +2 -2
  8. package/lib/components/colors/colors.vue.d.ts +4 -4
  9. package/lib/components/colors/index.d.ts +4 -0
  10. package/lib/components/colors/props.d.ts +2 -2
  11. package/lib/components/icon/index.d.ts +4 -0
  12. package/lib/components/insertAttachment/index.d.ts +4 -0
  13. package/lib/{plugins/attachment → components}/insertAttachment/insertAttachment.vue.d.ts +3 -3
  14. package/lib/{plugins/attachment → components}/insertAttachment/props.d.ts +1 -1
  15. package/lib/components/insertImage/index.d.ts +4 -0
  16. package/lib/components/insertImage/insertImage.vue.d.ts +3 -3
  17. package/lib/components/insertImage/props.d.ts +1 -1
  18. package/lib/components/insertLink/index.d.ts +4 -0
  19. package/lib/components/insertLink/insertLink.vue.d.ts +6 -6
  20. package/lib/components/insertLink/props.d.ts +3 -3
  21. package/lib/components/insertMathformula/index.d.ts +4 -0
  22. package/lib/{plugins/mathformula → components}/insertMathformula/insertMathformula.vue.d.ts +3 -3
  23. package/lib/{plugins/mathformula → components}/insertMathformula/props.d.ts +2 -2
  24. package/lib/components/insertTable/index.d.ts +4 -0
  25. package/lib/components/insertTable/insertTable.vue.d.ts +3 -3
  26. package/lib/components/insertTable/props.d.ts +2 -2
  27. package/lib/components/insertVideo/index.d.ts +4 -0
  28. package/lib/components/insertVideo/insertVideo.vue.d.ts +3 -3
  29. package/lib/components/insertVideo/props.d.ts +1 -1
  30. package/lib/components/layer/index.d.ts +4 -0
  31. package/lib/components/layer/layer.vue.d.ts +10 -8
  32. package/lib/components/tooltip/index.d.ts +4 -0
  33. package/lib/components/tooltip/tooltip.vue.d.ts +6 -4
  34. package/lib/components/triangle/index.d.ts +4 -0
  35. package/lib/components/triangle/triangle.vue.d.ts +1 -1
  36. package/lib/components/updateLink/index.d.ts +4 -0
  37. package/lib/components/updateLink/props.d.ts +17 -0
  38. package/lib/components/updateLink/updateLink.vue.d.ts +38 -0
  39. package/lib/core/function.d.ts +113 -36
  40. package/lib/core/rule.d.ts +20 -0
  41. package/lib/core/tool.d.ts +36 -34
  42. package/lib/editify/editify.vue.d.ts +18 -28
  43. package/lib/editify/menu/index.d.ts +4 -0
  44. package/lib/{components → editify}/menu/menu.vue.d.ts +3 -4
  45. package/lib/{components → editify}/menu/props.d.ts +1 -1
  46. package/lib/editify/props.d.ts +3 -7
  47. package/lib/editify/toolbar/index.d.ts +4 -0
  48. package/lib/{components → editify}/toolbar/props.d.ts +2 -2
  49. package/lib/{components → editify}/toolbar/toolbar.vue.d.ts +53 -53
  50. package/lib/editify.es.js +38964 -37727
  51. package/lib/editify.umd.js +2 -2
  52. package/lib/feature/align.d.ts +32 -0
  53. package/lib/feature/attachment.d.ts +18 -0
  54. package/lib/feature/backColor.d.ts +32 -0
  55. package/lib/feature/bold.d.ts +32 -0
  56. package/lib/feature/code.d.ts +32 -0
  57. package/lib/feature/codeBlock.d.ts +32 -0
  58. package/lib/feature/fontFamily.d.ts +32 -0
  59. package/lib/feature/fontSize.d.ts +32 -0
  60. package/lib/feature/foreColor.d.ts +32 -0
  61. package/lib/feature/formatClear.d.ts +32 -0
  62. package/lib/feature/fullScreen.d.ts +18 -0
  63. package/lib/feature/heading.d.ts +32 -0
  64. package/lib/feature/image.d.ts +32 -0
  65. package/lib/feature/indent.d.ts +18 -0
  66. package/lib/feature/infoBlock.d.ts +18 -0
  67. package/lib/feature/italic.d.ts +32 -0
  68. package/lib/feature/lineHeight.d.ts +32 -0
  69. package/lib/feature/link.d.ts +26 -0
  70. package/lib/feature/mathformula.d.ts +22 -0
  71. package/lib/feature/orderList.d.ts +32 -0
  72. package/lib/feature/panel.d.ts +18 -0
  73. package/lib/feature/quote.d.ts +18 -0
  74. package/lib/feature/redo.d.ts +18 -0
  75. package/lib/feature/separator.d.ts +18 -0
  76. package/lib/feature/sourceView.d.ts +18 -0
  77. package/lib/feature/strikethrough.d.ts +32 -0
  78. package/lib/feature/sub.d.ts +32 -0
  79. package/lib/feature/super.d.ts +32 -0
  80. package/lib/feature/table.d.ts +32 -0
  81. package/lib/feature/task.d.ts +32 -0
  82. package/lib/feature/underline.d.ts +32 -0
  83. package/lib/feature/undo.d.ts +18 -0
  84. package/lib/feature/unorderList.d.ts +32 -0
  85. package/lib/feature/video.d.ts +38 -0
  86. package/lib/index.d.ts +194 -202
  87. package/package.json +5 -5
  88. package/src/components/button/button.vue +21 -24
  89. package/src/components/button/index.ts +5 -0
  90. package/src/components/button/props.ts +14 -1
  91. package/src/components/checkbox/checkbox.vue +1 -1
  92. package/src/components/checkbox/index.ts +5 -0
  93. package/src/components/checkbox/props.ts +1 -1
  94. package/src/components/colors/colors.vue +3 -3
  95. package/src/components/colors/index.ts +5 -0
  96. package/src/components/colors/props.ts +2 -2
  97. package/src/components/icon/index.ts +5 -0
  98. package/src/components/insertAttachment/index.ts +5 -0
  99. package/src/{plugins/attachment → components}/insertAttachment/insertAttachment.vue +4 -2
  100. package/src/{plugins/attachment → components}/insertAttachment/props.ts +1 -1
  101. package/src/components/insertImage/index.ts +5 -0
  102. package/src/components/insertImage/insertImage.vue +5 -5
  103. package/src/components/insertImage/props.ts +1 -1
  104. package/src/components/insertLink/index.ts +5 -0
  105. package/src/components/insertLink/insertLink.vue +10 -10
  106. package/src/components/insertLink/props.ts +3 -3
  107. package/src/components/insertMathformula/index.ts +5 -0
  108. package/src/{plugins/mathformula → components}/insertMathformula/props.ts +2 -2
  109. package/src/components/insertTable/index.ts +5 -0
  110. package/src/components/insertTable/props.ts +2 -2
  111. package/src/components/insertVideo/index.ts +5 -0
  112. package/src/components/insertVideo/insertVideo.vue +2 -2
  113. package/src/components/insertVideo/props.ts +1 -1
  114. package/src/components/layer/index.ts +5 -0
  115. package/src/components/layer/layer.vue +42 -4
  116. package/src/components/tooltip/index.ts +5 -0
  117. package/src/components/tooltip/tooltip.vue +1 -1
  118. package/src/components/triangle/index.ts +5 -0
  119. package/src/components/triangle/triangle.vue +1 -1
  120. package/src/components/updateLink/index.ts +5 -0
  121. package/src/components/updateLink/props.ts +21 -0
  122. package/src/components/{toolbar/toolbar.less → updateLink/updateLink.less} +4 -20
  123. package/src/components/updateLink/updateLink.vue +74 -0
  124. package/src/core/function.ts +289 -97
  125. package/src/core/rule.ts +108 -29
  126. package/src/core/tool.ts +237 -81
  127. package/src/editify/editify.less +4 -0
  128. package/src/editify/editify.vue +183 -194
  129. package/src/editify/menu/index.ts +5 -0
  130. package/src/editify/menu/menu.vue +215 -0
  131. package/src/{components → editify}/menu/props.ts +1 -1
  132. package/src/editify/props.ts +7 -11
  133. package/src/editify/toolbar/index.ts +5 -0
  134. package/src/{components → editify}/toolbar/props.ts +1 -1
  135. package/src/editify/toolbar/toolbar.less +10 -0
  136. package/src/editify/toolbar/toolbar.vue +103 -0
  137. package/src/feature/align.ts +126 -0
  138. package/src/feature/attachment.ts +108 -0
  139. package/src/feature/backColor.ts +169 -0
  140. package/src/feature/bold.ts +134 -0
  141. package/src/feature/code.ts +134 -0
  142. package/src/feature/codeBlock.ts +201 -0
  143. package/src/feature/fontFamily.ts +138 -0
  144. package/src/feature/fontSize.ts +140 -0
  145. package/src/feature/foreColor.ts +171 -0
  146. package/src/feature/formatClear.ts +116 -0
  147. package/src/feature/fullScreen.ts +57 -0
  148. package/src/feature/heading.ts +152 -0
  149. package/src/feature/image.ts +222 -0
  150. package/src/feature/indent.ts +72 -0
  151. package/src/feature/infoBlock.ts +93 -0
  152. package/src/feature/italic.ts +134 -0
  153. package/src/feature/lineHeight.ts +163 -0
  154. package/src/feature/link.ts +146 -0
  155. package/src/feature/mathformula.ts +146 -0
  156. package/src/feature/orderList.ts +114 -0
  157. package/src/feature/panel.ts +107 -0
  158. package/src/feature/quote.ts +60 -0
  159. package/src/feature/redo.ts +56 -0
  160. package/src/feature/separator.ts +61 -0
  161. package/src/feature/sourceView.ts +59 -0
  162. package/src/feature/strikethrough.ts +134 -0
  163. package/src/feature/sub.ts +134 -0
  164. package/src/feature/super.ts +134 -0
  165. package/src/feature/table.ts +981 -0
  166. package/src/feature/task.ts +114 -0
  167. package/src/feature/underline.ts +134 -0
  168. package/src/feature/undo.ts +56 -0
  169. package/src/feature/unorderList.ts +114 -0
  170. package/src/feature/video.ts +335 -0
  171. package/src/hljs/index.ts +1 -1
  172. package/src/index.ts +82 -25
  173. package/src/locale/en_US.ts +3 -3
  174. package/src/locale/zh_CN.ts +3 -3
  175. package/lib/plugins/attachment/index.d.ts +0 -37
  176. package/lib/plugins/infoBlock/index.d.ts +0 -55
  177. package/lib/plugins/mathformula/index.d.ts +0 -49
  178. package/lib/plugins/panel/index.d.ts +0 -48
  179. package/src/components/menu/menu.vue +0 -1655
  180. package/src/components/toolbar/toolbar.vue +0 -1677
  181. package/src/plugins/attachment/index.ts +0 -237
  182. package/src/plugins/infoBlock/index.ts +0 -238
  183. package/src/plugins/mathformula/index.ts +0 -295
  184. package/src/plugins/panel/index.ts +0 -228
  185. package/tsconfig.json +0 -31
  186. package/tsconfig.node.json +0 -11
  187. /package/src/{plugins/attachment → components}/insertAttachment/insertAttachment.less +0 -0
  188. /package/src/{plugins/mathformula → components}/insertMathformula/insertMathformula.less +0 -0
  189. /package/src/{plugins/mathformula → components}/insertMathformula/insertMathformula.vue +0 -0
  190. /package/src/{components → editify}/menu/menu.less +0 -0
package/lib/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { App } from 'vue';
2
+ import { AlexElement } from 'alex-editor';
2
3
 
3
4
  declare const Editify: import('./core/tool').SFCWithInstall<import('vue').DefineComponent<{
4
5
  locale: {
@@ -42,9 +43,9 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
42
43
  default: boolean;
43
44
  };
44
45
  color: {
45
- type: import('vue').PropType<string | null>;
46
+ type: StringConstructor;
46
47
  default: string;
47
- validator(value: any): boolean;
48
+ validator(value: string): boolean;
48
49
  };
49
50
  videoRatio: {
50
51
  type: NumberConstructor;
@@ -63,7 +64,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
63
64
  default: null;
64
65
  };
65
66
  customHtmlPaste: {
66
- type: import('vue').PropType<(elements: import('alex-editor').AlexElement[]) => void | Promise<void>>;
67
+ type: import('vue').PropType<(elements: AlexElement[]) => void | Promise<void>>;
67
68
  default: null;
68
69
  };
69
70
  customImagePaste: {
@@ -83,15 +84,15 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
83
84
  default: null;
84
85
  };
85
86
  pasteKeepMarks: {
86
- type: import('vue').PropType<(el: import('alex-editor').AlexElement) => import('./core/tool').ObjectType>;
87
+ type: import('vue').PropType<(el: AlexElement) => import('./core/tool').ObjectType>;
87
88
  default: null;
88
89
  };
89
90
  pasteKeepStyles: {
90
- type: import('vue').PropType<(el: import('alex-editor').AlexElement) => import('./core/tool').ObjectType>;
91
+ type: import('vue').PropType<(el: AlexElement) => import('./core/tool').ObjectType>;
91
92
  default: null;
92
93
  };
93
94
  customParseNode: {
94
- type: import('vue').PropType<(el: import('alex-editor').AlexElement) => import('alex-editor').AlexElement>;
95
+ type: import('vue').PropType<(el: AlexElement) => AlexElement>;
95
96
  default: null;
96
97
  };
97
98
  extraKeepTags: {
@@ -99,7 +100,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
99
100
  default: () => never[];
100
101
  };
101
102
  renderRules: {
102
- type: import('vue').PropType<((el: import('alex-editor').AlexElement) => void)[]>;
103
+ type: import('vue').PropType<((el: AlexElement) => void)[]>;
103
104
  default: () => never[];
104
105
  };
105
106
  autoheight: {
@@ -110,10 +111,6 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
110
111
  type: BooleanConstructor;
111
112
  default: boolean;
112
113
  };
113
- plugins: {
114
- type: import('vue').PropType<import('./core/tool').PluginType[]>;
115
- default: () => never[];
116
- };
117
114
  dark: {
118
115
  type: BooleanConstructor;
119
116
  default: boolean;
@@ -131,18 +128,18 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
131
128
  $el: HTMLElement;
132
129
  disabled: boolean;
133
130
  value: string;
134
- renderRules: ((element: import('alex-editor').AlexElement) => void)[];
131
+ renderRules: ((element: AlexElement) => void)[];
135
132
  allowCopy: boolean;
136
133
  allowPaste: boolean;
137
134
  allowCut: boolean;
138
135
  allowPasteHtml: boolean;
139
136
  customTextPaste: ((text: string) => void | Promise<void>) | null;
140
- customHtmlPaste: ((AlexElements: import('alex-editor').AlexElement[], html: string) => void | Promise<void>) | null;
137
+ customHtmlPaste: ((AlexElements: AlexElement[], html: string) => void | Promise<void>) | null;
141
138
  customImagePaste: ((file: File) => void | Promise<void>) | null;
142
139
  customVideoPaste: ((file: File) => void | Promise<void>) | null;
143
140
  customFilePaste: ((file: File) => void | Promise<void>) | null;
144
- customMerge: ((mergeElement: import('alex-editor').AlexElement, targetElement: import('alex-editor').AlexElement) => void | Promise<void>) | null;
145
- customParseNode: ((el: import('alex-editor').AlexElement) => import('alex-editor').AlexElement) | null;
141
+ customMerge: ((mergeElement: AlexElement, targetElement: AlexElement) => void | Promise<void>) | null;
142
+ customParseNode: ((el: AlexElement) => AlexElement) | null;
146
143
  extraKeepTags: string[];
147
144
  history: {
148
145
  records: {
@@ -167,27 +164,27 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
167
164
  isBreak: () => boolean;
168
165
  isEmpty: () => boolean;
169
166
  isSpaceText: () => boolean;
170
- getUneditableElement: () => import('alex-editor').AlexElement | null;
171
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
172
- isContains: (element: import('alex-editor').AlexElement) => boolean;
167
+ getUneditableElement: () => AlexElement | null;
168
+ isEqual: (element: AlexElement) => boolean;
169
+ isContains: (element: AlexElement) => boolean;
173
170
  isOnlyHasBreak: () => boolean | 0;
174
171
  isPreStyle: () => boolean;
175
172
  hasMarks: () => boolean;
176
173
  hasStyles: () => boolean;
177
174
  hasChildren: () => boolean;
178
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
179
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
175
+ hasContains: (element: AlexElement) => boolean;
176
+ clone: (deep?: boolean | undefined) => AlexElement;
180
177
  convertToBlock: () => void;
181
178
  toEmpty: () => void;
182
- getBlock: () => import('alex-editor').AlexElement;
183
- getInblock: () => import('alex-editor').AlexElement | null;
184
- getInline: () => import('alex-editor').AlexElement | null;
185
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
186
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
187
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
188
- isLast: (element: import('alex-editor').AlexElement) => boolean;
179
+ getBlock: () => AlexElement;
180
+ getInblock: () => AlexElement | null;
181
+ getInline: () => AlexElement | null;
182
+ isEqualStyles: (element: AlexElement) => boolean;
183
+ isEqualMarks: (element: AlexElement) => boolean;
184
+ isFirst: (element: AlexElement) => boolean;
185
+ isLast: (element: AlexElement) => boolean;
189
186
  __render: () => void;
190
- __fullClone: () => import('alex-editor').AlexElement;
187
+ __fullClone: () => AlexElement;
191
188
  }[];
192
189
  range: {
193
190
  anchor: {
@@ -212,32 +209,32 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
212
209
  isBreak: () => boolean;
213
210
  isEmpty: () => boolean;
214
211
  isSpaceText: () => boolean;
215
- getUneditableElement: () => import('alex-editor').AlexElement | null;
216
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
217
- isContains: (element: import('alex-editor').AlexElement) => boolean;
212
+ getUneditableElement: () => AlexElement | null;
213
+ isEqual: (element: AlexElement) => boolean;
214
+ isContains: (element: AlexElement) => boolean;
218
215
  isOnlyHasBreak: () => boolean | 0;
219
216
  isPreStyle: () => boolean;
220
217
  hasMarks: () => boolean;
221
218
  hasStyles: () => boolean;
222
219
  hasChildren: () => boolean;
223
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
224
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
220
+ hasContains: (element: AlexElement) => boolean;
221
+ clone: (deep?: boolean | undefined) => AlexElement;
225
222
  convertToBlock: () => void;
226
223
  toEmpty: () => void;
227
- getBlock: () => import('alex-editor').AlexElement;
228
- getInblock: () => import('alex-editor').AlexElement | null;
229
- getInline: () => import('alex-editor').AlexElement | null;
230
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
231
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
232
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
233
- isLast: (element: import('alex-editor').AlexElement) => boolean;
224
+ getBlock: () => AlexElement;
225
+ getInblock: () => AlexElement | null;
226
+ getInline: () => AlexElement | null;
227
+ isEqualStyles: (element: AlexElement) => boolean;
228
+ isEqualMarks: (element: AlexElement) => boolean;
229
+ isFirst: (element: AlexElement) => boolean;
230
+ isLast: (element: AlexElement) => boolean;
234
231
  __render: () => void;
235
- __fullClone: () => import('alex-editor').AlexElement;
232
+ __fullClone: () => AlexElement;
236
233
  };
237
234
  offset: number;
238
235
  isEqual: (point: import('alex-editor').AlexPoint) => boolean;
239
- moveToEnd: (element: import('alex-editor').AlexElement) => void;
240
- moveToStart: (element: import('alex-editor').AlexElement) => void;
236
+ moveToEnd: (element: AlexElement) => void;
237
+ moveToStart: (element: AlexElement) => void;
241
238
  };
242
239
  focus: {
243
240
  element: {
@@ -261,40 +258,40 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
261
258
  isBreak: () => boolean;
262
259
  isEmpty: () => boolean;
263
260
  isSpaceText: () => boolean;
264
- getUneditableElement: () => import('alex-editor').AlexElement | null;
265
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
266
- isContains: (element: import('alex-editor').AlexElement) => boolean;
261
+ getUneditableElement: () => AlexElement | null;
262
+ isEqual: (element: AlexElement) => boolean;
263
+ isContains: (element: AlexElement) => boolean;
267
264
  isOnlyHasBreak: () => boolean | 0;
268
265
  isPreStyle: () => boolean;
269
266
  hasMarks: () => boolean;
270
267
  hasStyles: () => boolean;
271
268
  hasChildren: () => boolean;
272
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
273
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
269
+ hasContains: (element: AlexElement) => boolean;
270
+ clone: (deep?: boolean | undefined) => AlexElement;
274
271
  convertToBlock: () => void;
275
272
  toEmpty: () => void;
276
- getBlock: () => import('alex-editor').AlexElement;
277
- getInblock: () => import('alex-editor').AlexElement | null;
278
- getInline: () => import('alex-editor').AlexElement | null;
279
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
280
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
281
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
282
- isLast: (element: import('alex-editor').AlexElement) => boolean;
273
+ getBlock: () => AlexElement;
274
+ getInblock: () => AlexElement | null;
275
+ getInline: () => AlexElement | null;
276
+ isEqualStyles: (element: AlexElement) => boolean;
277
+ isEqualMarks: (element: AlexElement) => boolean;
278
+ isFirst: (element: AlexElement) => boolean;
279
+ isLast: (element: AlexElement) => boolean;
283
280
  __render: () => void;
284
- __fullClone: () => import('alex-editor').AlexElement;
281
+ __fullClone: () => AlexElement;
285
282
  };
286
283
  offset: number;
287
284
  isEqual: (point: import('alex-editor').AlexPoint) => boolean;
288
- moveToEnd: (element: import('alex-editor').AlexElement) => void;
289
- moveToStart: (element: import('alex-editor').AlexElement) => void;
285
+ moveToEnd: (element: AlexElement) => void;
286
+ moveToStart: (element: AlexElement) => void;
290
287
  };
291
288
  } | null;
292
289
  }[];
293
290
  current: number;
294
- push: (stack: import('alex-editor').AlexElement[], range?: import('alex-editor').AlexRange | null | undefined) => void;
295
- get: (type: 1 | -1) => import('alex-editor').AlexHistoryResultType | null;
291
+ push: (stack: AlexElement[], range?: import('alex-editor').AlexRange | null) => void;
292
+ get: (type: -1 | 1) => import('alex-editor').AlexHistoryResultType | null;
296
293
  updateCurrentRange: (range: import('alex-editor').AlexRange) => void;
297
- __cloneRange: (newStack: import('alex-editor').AlexElement[], range?: import('alex-editor').AlexRange | null | undefined) => import('alex-editor').AlexRange | null;
294
+ __cloneRange: (newStack: AlexElement[], range?: import('alex-editor').AlexRange | null) => import('alex-editor').AlexRange | null;
298
295
  };
299
296
  stack: {
300
297
  key: number;
@@ -317,27 +314,27 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
317
314
  isBreak: () => boolean;
318
315
  isEmpty: () => boolean;
319
316
  isSpaceText: () => boolean;
320
- getUneditableElement: () => import('alex-editor').AlexElement | null;
321
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
322
- isContains: (element: import('alex-editor').AlexElement) => boolean;
317
+ getUneditableElement: () => AlexElement | null;
318
+ isEqual: (element: AlexElement) => boolean;
319
+ isContains: (element: AlexElement) => boolean;
323
320
  isOnlyHasBreak: () => boolean | 0;
324
321
  isPreStyle: () => boolean;
325
322
  hasMarks: () => boolean;
326
323
  hasStyles: () => boolean;
327
324
  hasChildren: () => boolean;
328
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
329
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
325
+ hasContains: (element: AlexElement) => boolean;
326
+ clone: (deep?: boolean | undefined) => AlexElement;
330
327
  convertToBlock: () => void;
331
328
  toEmpty: () => void;
332
- getBlock: () => import('alex-editor').AlexElement;
333
- getInblock: () => import('alex-editor').AlexElement | null;
334
- getInline: () => import('alex-editor').AlexElement | null;
335
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
336
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
337
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
338
- isLast: (element: import('alex-editor').AlexElement) => boolean;
329
+ getBlock: () => AlexElement;
330
+ getInblock: () => AlexElement | null;
331
+ getInline: () => AlexElement | null;
332
+ isEqualStyles: (element: AlexElement) => boolean;
333
+ isEqualMarks: (element: AlexElement) => boolean;
334
+ isFirst: (element: AlexElement) => boolean;
335
+ isLast: (element: AlexElement) => boolean;
339
336
  __render: () => void;
340
- __fullClone: () => import('alex-editor').AlexElement;
337
+ __fullClone: () => AlexElement;
341
338
  }[];
342
339
  range: {
343
340
  anchor: {
@@ -362,32 +359,32 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
362
359
  isBreak: () => boolean;
363
360
  isEmpty: () => boolean;
364
361
  isSpaceText: () => boolean;
365
- getUneditableElement: () => import('alex-editor').AlexElement | null;
366
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
367
- isContains: (element: import('alex-editor').AlexElement) => boolean;
362
+ getUneditableElement: () => AlexElement | null;
363
+ isEqual: (element: AlexElement) => boolean;
364
+ isContains: (element: AlexElement) => boolean;
368
365
  isOnlyHasBreak: () => boolean | 0;
369
366
  isPreStyle: () => boolean;
370
367
  hasMarks: () => boolean;
371
368
  hasStyles: () => boolean;
372
369
  hasChildren: () => boolean;
373
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
374
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
370
+ hasContains: (element: AlexElement) => boolean;
371
+ clone: (deep?: boolean | undefined) => AlexElement;
375
372
  convertToBlock: () => void;
376
373
  toEmpty: () => void;
377
- getBlock: () => import('alex-editor').AlexElement;
378
- getInblock: () => import('alex-editor').AlexElement | null;
379
- getInline: () => import('alex-editor').AlexElement | null;
380
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
381
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
382
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
383
- isLast: (element: import('alex-editor').AlexElement) => boolean;
374
+ getBlock: () => AlexElement;
375
+ getInblock: () => AlexElement | null;
376
+ getInline: () => AlexElement | null;
377
+ isEqualStyles: (element: AlexElement) => boolean;
378
+ isEqualMarks: (element: AlexElement) => boolean;
379
+ isFirst: (element: AlexElement) => boolean;
380
+ isLast: (element: AlexElement) => boolean;
384
381
  __render: () => void;
385
- __fullClone: () => import('alex-editor').AlexElement;
382
+ __fullClone: () => AlexElement;
386
383
  };
387
384
  offset: number;
388
385
  isEqual: (point: import('alex-editor').AlexPoint) => boolean;
389
- moveToEnd: (element: import('alex-editor').AlexElement) => void;
390
- moveToStart: (element: import('alex-editor').AlexElement) => void;
386
+ moveToEnd: (element: AlexElement) => void;
387
+ moveToStart: (element: AlexElement) => void;
391
388
  };
392
389
  focus: {
393
390
  element: {
@@ -411,32 +408,32 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
411
408
  isBreak: () => boolean;
412
409
  isEmpty: () => boolean;
413
410
  isSpaceText: () => boolean;
414
- getUneditableElement: () => import('alex-editor').AlexElement | null;
415
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
416
- isContains: (element: import('alex-editor').AlexElement) => boolean;
411
+ getUneditableElement: () => AlexElement | null;
412
+ isEqual: (element: AlexElement) => boolean;
413
+ isContains: (element: AlexElement) => boolean;
417
414
  isOnlyHasBreak: () => boolean | 0;
418
415
  isPreStyle: () => boolean;
419
416
  hasMarks: () => boolean;
420
417
  hasStyles: () => boolean;
421
418
  hasChildren: () => boolean;
422
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
423
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
419
+ hasContains: (element: AlexElement) => boolean;
420
+ clone: (deep?: boolean | undefined) => AlexElement;
424
421
  convertToBlock: () => void;
425
422
  toEmpty: () => void;
426
- getBlock: () => import('alex-editor').AlexElement;
427
- getInblock: () => import('alex-editor').AlexElement | null;
428
- getInline: () => import('alex-editor').AlexElement | null;
429
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
430
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
431
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
432
- isLast: (element: import('alex-editor').AlexElement) => boolean;
423
+ getBlock: () => AlexElement;
424
+ getInblock: () => AlexElement | null;
425
+ getInline: () => AlexElement | null;
426
+ isEqualStyles: (element: AlexElement) => boolean;
427
+ isEqualMarks: (element: AlexElement) => boolean;
428
+ isFirst: (element: AlexElement) => boolean;
429
+ isLast: (element: AlexElement) => boolean;
433
430
  __render: () => void;
434
- __fullClone: () => import('alex-editor').AlexElement;
431
+ __fullClone: () => AlexElement;
435
432
  };
436
433
  offset: number;
437
434
  isEqual: (point: import('alex-editor').AlexPoint) => boolean;
438
- moveToEnd: (element: import('alex-editor').AlexElement) => void;
439
- moveToStart: (element: import('alex-editor').AlexElement) => void;
435
+ moveToEnd: (element: AlexElement) => void;
436
+ moveToStart: (element: AlexElement) => void;
440
437
  };
441
438
  } | null;
442
439
  __guid: number;
@@ -462,27 +459,27 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
462
459
  isBreak: () => boolean;
463
460
  isEmpty: () => boolean;
464
461
  isSpaceText: () => boolean;
465
- getUneditableElement: () => import('alex-editor').AlexElement | null;
466
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
467
- isContains: (element: import('alex-editor').AlexElement) => boolean;
462
+ getUneditableElement: () => AlexElement | null;
463
+ isEqual: (element: AlexElement) => boolean;
464
+ isContains: (element: AlexElement) => boolean;
468
465
  isOnlyHasBreak: () => boolean | 0;
469
466
  isPreStyle: () => boolean;
470
467
  hasMarks: () => boolean;
471
468
  hasStyles: () => boolean;
472
469
  hasChildren: () => boolean;
473
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
474
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
470
+ hasContains: (element: AlexElement) => boolean;
471
+ clone: (deep?: boolean | undefined) => AlexElement;
475
472
  convertToBlock: () => void;
476
473
  toEmpty: () => void;
477
- getBlock: () => import('alex-editor').AlexElement;
478
- getInblock: () => import('alex-editor').AlexElement | null;
479
- getInline: () => import('alex-editor').AlexElement | null;
480
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
481
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
482
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
483
- isLast: (element: import('alex-editor').AlexElement) => boolean;
474
+ getBlock: () => AlexElement;
475
+ getInblock: () => AlexElement | null;
476
+ getInline: () => AlexElement | null;
477
+ isEqualStyles: (element: AlexElement) => boolean;
478
+ isEqualMarks: (element: AlexElement) => boolean;
479
+ isFirst: (element: AlexElement) => boolean;
480
+ isLast: (element: AlexElement) => boolean;
484
481
  __render: () => void;
485
- __fullClone: () => import('alex-editor').AlexElement;
482
+ __fullClone: () => AlexElement;
486
483
  }[];
487
484
  __isInputChinese: boolean;
488
485
  __innerSelectionChange: boolean;
@@ -491,24 +488,23 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
491
488
  delete: () => void;
492
489
  insertText: (data: string) => void;
493
490
  insertParagraph: () => void;
494
- insertElement: (ele: import('alex-editor').AlexElement, cover?: boolean | undefined) => void;
495
- formatElementStack: () => void;
491
+ insertElement: (ele: AlexElement, cover?: boolean | undefined) => void;
496
492
  domRender: (unPushHistory?: boolean | undefined) => void;
497
493
  rangeRender: () => Promise<void>;
498
- parseHtml: (html: string) => import('alex-editor').AlexElement[];
499
- parseNode: (node: HTMLElement) => import('alex-editor').AlexElement;
500
- merge: (ele: import('alex-editor').AlexElement, previousEle: import('alex-editor').AlexElement) => void;
501
- getElementByKey: (key: number) => import('alex-editor').AlexElement | null;
502
- getPreviousElement: (ele: import('alex-editor').AlexElement) => import('alex-editor').AlexElement | null;
503
- getNextElement: (ele: import('alex-editor').AlexElement) => import('alex-editor').AlexElement | null;
504
- getPreviousElementOfPoint: (point: import('alex-editor').AlexPoint) => import('alex-editor').AlexElement | null;
505
- getNextElementOfPoint: (point: import('alex-editor').AlexPoint) => import('alex-editor').AlexElement | null;
494
+ parseHtml: (html: string) => AlexElement[];
495
+ parseNode: (node: HTMLElement) => AlexElement;
496
+ merge: (ele: AlexElement, previousEle: AlexElement) => void;
497
+ getElementByKey: (key: number) => AlexElement | null;
498
+ getPreviousElement: (ele: AlexElement) => AlexElement | null;
499
+ getNextElement: (ele: AlexElement) => AlexElement | null;
500
+ getPreviousElementOfPoint: (point: import('alex-editor').AlexPoint) => AlexElement | null;
501
+ getNextElementOfPoint: (point: import('alex-editor').AlexPoint) => AlexElement | null;
506
502
  getElementsByRange: () => import('alex-editor').AlexElementsRangeType;
507
- addElementTo: (childEle: import('alex-editor').AlexElement, parentEle: import('alex-editor').AlexElement, index?: number | undefined) => void;
508
- addElementBefore: (newEle: import('alex-editor').AlexElement, targetEle: import('alex-editor').AlexElement) => void;
509
- addElementAfter: (newEle: import('alex-editor').AlexElement, targetEle: import('alex-editor').AlexElement) => void;
510
- collapseToStart: (element?: import('alex-editor').AlexElement | undefined) => void;
511
- collapseToEnd: (element?: import('alex-editor').AlexElement | undefined) => void;
503
+ addElementTo: (childEle: AlexElement, parentEle: AlexElement, index?: number | undefined) => void;
504
+ addElementBefore: (newEle: AlexElement, targetEle: AlexElement) => void;
505
+ addElementAfter: (newEle: AlexElement, targetEle: AlexElement) => void;
506
+ collapseToStart: (element?: AlexElement) => void;
507
+ collapseToEnd: (element?: AlexElement) => void;
512
508
  setDisabled: () => void;
513
509
  setEnabled: () => void;
514
510
  emit: (eventName: string, ...value: any) => boolean;
@@ -517,7 +513,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
517
513
  } | null>;
518
514
  isSourceView: import('vue').Ref<boolean>;
519
515
  isFullScreen: import('vue').Ref<boolean>;
520
- canUseMenu: import('vue').Ref<boolean>;
516
+ rangeKey: import('vue').Ref<number | null>;
521
517
  dataRangeCaches: import('vue').Ref<{
522
518
  list: {
523
519
  element: {
@@ -541,29 +537,29 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
541
537
  isBreak: () => boolean;
542
538
  isEmpty: () => boolean;
543
539
  isSpaceText: () => boolean;
544
- getUneditableElement: () => import('alex-editor').AlexElement | null;
545
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
546
- isContains: (element: import('alex-editor').AlexElement) => boolean;
540
+ getUneditableElement: () => AlexElement | null;
541
+ isEqual: (element: AlexElement) => boolean;
542
+ isContains: (element: AlexElement) => boolean;
547
543
  isOnlyHasBreak: () => boolean | 0;
548
544
  isPreStyle: () => boolean;
549
545
  hasMarks: () => boolean;
550
546
  hasStyles: () => boolean;
551
547
  hasChildren: () => boolean;
552
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
553
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
548
+ hasContains: (element: AlexElement) => boolean;
549
+ clone: (deep?: boolean | undefined) => AlexElement;
554
550
  convertToBlock: () => void;
555
551
  toEmpty: () => void;
556
- getBlock: () => import('alex-editor').AlexElement;
557
- getInblock: () => import('alex-editor').AlexElement | null;
558
- getInline: () => import('alex-editor').AlexElement | null;
559
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
560
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
561
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
562
- isLast: (element: import('alex-editor').AlexElement) => boolean;
552
+ getBlock: () => AlexElement;
553
+ getInblock: () => AlexElement | null;
554
+ getInline: () => AlexElement | null;
555
+ isEqualStyles: (element: AlexElement) => boolean;
556
+ isEqualMarks: (element: AlexElement) => boolean;
557
+ isFirst: (element: AlexElement) => boolean;
558
+ isLast: (element: AlexElement) => boolean;
563
559
  __render: () => void;
564
- __fullClone: () => import('alex-editor').AlexElement;
560
+ __fullClone: () => AlexElement;
565
561
  };
566
- offset: false | number[];
562
+ offset: number[] | false;
567
563
  }[];
568
564
  flatList: {
569
565
  element: {
@@ -587,29 +583,29 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
587
583
  isBreak: () => boolean;
588
584
  isEmpty: () => boolean;
589
585
  isSpaceText: () => boolean;
590
- getUneditableElement: () => import('alex-editor').AlexElement | null;
591
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
592
- isContains: (element: import('alex-editor').AlexElement) => boolean;
586
+ getUneditableElement: () => AlexElement | null;
587
+ isEqual: (element: AlexElement) => boolean;
588
+ isContains: (element: AlexElement) => boolean;
593
589
  isOnlyHasBreak: () => boolean | 0;
594
590
  isPreStyle: () => boolean;
595
591
  hasMarks: () => boolean;
596
592
  hasStyles: () => boolean;
597
593
  hasChildren: () => boolean;
598
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
599
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
594
+ hasContains: (element: AlexElement) => boolean;
595
+ clone: (deep?: boolean | undefined) => AlexElement;
600
596
  convertToBlock: () => void;
601
597
  toEmpty: () => void;
602
- getBlock: () => import('alex-editor').AlexElement;
603
- getInblock: () => import('alex-editor').AlexElement | null;
604
- getInline: () => import('alex-editor').AlexElement | null;
605
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
606
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
607
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
608
- isLast: (element: import('alex-editor').AlexElement) => boolean;
598
+ getBlock: () => AlexElement;
599
+ getInblock: () => AlexElement | null;
600
+ getInline: () => AlexElement | null;
601
+ isEqualStyles: (element: AlexElement) => boolean;
602
+ isEqualMarks: (element: AlexElement) => boolean;
603
+ isFirst: (element: AlexElement) => boolean;
604
+ isLast: (element: AlexElement) => boolean;
609
605
  __render: () => void;
610
- __fullClone: () => import('alex-editor').AlexElement;
606
+ __fullClone: () => AlexElement;
611
607
  };
612
- offset: false | number[];
608
+ offset: number[] | false;
613
609
  }[];
614
610
  }>;
615
611
  textValue: import('vue').ComputedRef<string>;
@@ -619,10 +615,10 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
619
615
  undo: () => void;
620
616
  redo: () => void;
621
617
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
622
- "update:modelValue": (...args: any[]) => void;
623
618
  change: (...args: any[]) => void;
624
619
  blur: (...args: any[]) => void;
625
620
  focus: (...args: any[]) => void;
621
+ "update:modelValue": (...args: any[]) => void;
626
622
  keydown: (...args: any[]) => void;
627
623
  keyup: (...args: any[]) => void;
628
624
  insertparagraph: (...args: any[]) => void;
@@ -670,9 +666,9 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
670
666
  default: boolean;
671
667
  };
672
668
  color: {
673
- type: import('vue').PropType<string | null>;
669
+ type: StringConstructor;
674
670
  default: string;
675
- validator(value: any): boolean;
671
+ validator(value: string): boolean;
676
672
  };
677
673
  videoRatio: {
678
674
  type: NumberConstructor;
@@ -691,7 +687,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
691
687
  default: null;
692
688
  };
693
689
  customHtmlPaste: {
694
- type: import('vue').PropType<(elements: import('alex-editor').AlexElement[]) => void | Promise<void>>;
690
+ type: import('vue').PropType<(elements: AlexElement[]) => void | Promise<void>>;
695
691
  default: null;
696
692
  };
697
693
  customImagePaste: {
@@ -711,15 +707,15 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
711
707
  default: null;
712
708
  };
713
709
  pasteKeepMarks: {
714
- type: import('vue').PropType<(el: import('alex-editor').AlexElement) => import('./core/tool').ObjectType>;
710
+ type: import('vue').PropType<(el: AlexElement) => import('./core/tool').ObjectType>;
715
711
  default: null;
716
712
  };
717
713
  pasteKeepStyles: {
718
- type: import('vue').PropType<(el: import('alex-editor').AlexElement) => import('./core/tool').ObjectType>;
714
+ type: import('vue').PropType<(el: AlexElement) => import('./core/tool').ObjectType>;
719
715
  default: null;
720
716
  };
721
717
  customParseNode: {
722
- type: import('vue').PropType<(el: import('alex-editor').AlexElement) => import('alex-editor').AlexElement>;
718
+ type: import('vue').PropType<(el: AlexElement) => AlexElement>;
723
719
  default: null;
724
720
  };
725
721
  extraKeepTags: {
@@ -727,7 +723,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
727
723
  default: () => never[];
728
724
  };
729
725
  renderRules: {
730
- type: import('vue').PropType<((el: import('alex-editor').AlexElement) => void)[]>;
726
+ type: import('vue').PropType<((el: AlexElement) => void)[]>;
731
727
  default: () => never[];
732
728
  };
733
729
  autoheight: {
@@ -738,10 +734,6 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
738
734
  type: BooleanConstructor;
739
735
  default: boolean;
740
736
  };
741
- plugins: {
742
- type: import('vue').PropType<import('./core/tool').PluginType[]>;
743
- default: () => never[];
744
- };
745
737
  dark: {
746
738
  type: BooleanConstructor;
747
739
  default: boolean;
@@ -755,24 +747,23 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
755
747
  default: number;
756
748
  };
757
749
  }>> & {
758
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
759
750
  onFocus?: ((...args: any[]) => any) | undefined;
760
751
  onBlur?: ((...args: any[]) => any) | undefined;
761
752
  onChange?: ((...args: any[]) => any) | undefined;
762
753
  onKeydown?: ((...args: any[]) => any) | undefined;
763
754
  onKeyup?: ((...args: any[]) => any) | undefined;
755
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
764
756
  onInsertparagraph?: ((...args: any[]) => any) | undefined;
765
757
  onRangeupdate?: ((...args: any[]) => any) | undefined;
766
758
  onUpdateview?: ((...args: any[]) => any) | undefined;
767
759
  }, {
768
- color: string | null;
760
+ color: string;
769
761
  disabled: boolean;
770
762
  zIndex: number;
771
- modelValue: string;
772
- border: boolean;
773
763
  menu: import('./core/tool').MenuConfigType;
774
764
  placeholder: string;
775
- autoheight: boolean;
765
+ modelValue: string;
766
+ border: boolean;
776
767
  toolbar: import('./core/tool').ToolbarConfigType;
777
768
  locale: import('./locale').LocaleType;
778
769
  autofocus: boolean;
@@ -783,36 +774,37 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
783
774
  videoRatio: number;
784
775
  showWordLength: boolean;
785
776
  customTextPaste: (data: string) => void | Promise<void>;
786
- customHtmlPaste: (elements: import('alex-editor').AlexElement[]) => void | Promise<void>;
777
+ customHtmlPaste: (elements: AlexElement[]) => void | Promise<void>;
787
778
  customImagePaste: (file: File) => void | Promise<void>;
788
779
  customVideoPaste: (file: File) => void | Promise<void>;
789
780
  customFilePaste: (file: File) => void | Promise<void>;
790
- pasteKeepMarks: (el: import('alex-editor').AlexElement) => import('./core/tool').ObjectType;
791
- pasteKeepStyles: (el: import('alex-editor').AlexElement) => import('./core/tool').ObjectType;
792
- customParseNode: (el: import('alex-editor').AlexElement) => import('alex-editor').AlexElement;
781
+ pasteKeepMarks: (el: AlexElement) => import('./core/tool').ObjectType;
782
+ pasteKeepStyles: (el: AlexElement) => import('./core/tool').ObjectType;
783
+ customParseNode: (el: AlexElement) => AlexElement;
793
784
  extraKeepTags: string[];
794
- renderRules: ((el: import('alex-editor').AlexElement) => void)[];
785
+ renderRules: ((el: AlexElement) => void)[];
786
+ autoheight: boolean;
795
787
  tab: boolean;
796
- plugins: import('./core/tool').PluginType[];
797
788
  dark: boolean;
798
789
  offset: number;
799
790
  }, {}>>;
800
- export type { ButtonTypeType, ButtonOptionsItemType, ButtonSelectConfigType, ButtonDisplayConfigType } from './components/button/props';
801
- export type { InsertImageUploadErrorType } from './components/insertImage/props';
802
- export type { InsertVideoUploadErrorType } from './components/insertVideo/props';
803
- export type { MenuButtonType, MenuSelectButtonType, MenuDisplayButtonType, MenuImageButtonType, MenuVideoButtonType, MenuTableButtonType, MenuCustomButtonType, CodeBlockToolbarType, TextToolbarType, ToolbarConfigType, MenuSequenceType, MenuModeType, MenuExtendType, MenuConfigType, PluginMenuConfigType, PluginType, PluginResultType } from './core/tool';
804
- export type { ElementMatchConfigType } from './core/function';
805
- export { elementIsMatch, getMatchElementByElement, getMatchElementByRange, isList, isTask, elementIsInList, elementIsInTask, hasPreInRange, hasQuoteInRange, hasListInRange, hasTaskInRange, hasLinkInRange, hasTableInRange, hasImageInRange, hasVideoInRange, isRangeInQuote, isRangeInList, isRangeInTask, queryTextStyle, queryTextMark, getRangeText, setIndentIncrease, setIndentDecrease, setQuote, setAlign, setList, setTask, setTextStyle, setTextMark, removeTextStyle, removeTextMark, setLineHeight, insertLink, insertImage, insertVideo, insertTable, insertCodeBlock, insertSeparator } from './core/function';
791
+ export type * from './components/button';
792
+ export type * from './components/checkbox';
793
+ export type * from './components/colors';
794
+ export type * from './components/icon';
795
+ export type * from './components/insertImage';
796
+ export type * from './components/insertLink';
797
+ export type * from './components/insertTable';
798
+ export type * from './components/insertVideo';
799
+ export type * from './components/layer';
800
+ export type * from './components/tooltip';
801
+ export type * from './components/triangle';
802
+ export type * from './components/updateLink';
803
+ export type * from './core/tool';
804
+ export type * from './core/function';
805
+ export type * from './editify/menu';
806
+ export type * from './editify/toolbar';
807
+ export { elementIsMatch, getMatchElementByElement, getMatchElementByRange, elementIsList, getListByElement, hasListInRange, rangeIsInList, elementIsTask, getTaskByElement, hasTaskInRange, rangeIsInTask, elementIsAttachment, hasAttachmentInRange, elementIsMathformula, getMathformulaByElement, hasMathformulaInRange, elementIsPanel, getPanelByElement, hasPanelInRange, elementIsInfoBlock, getInfoBlockByElement, hasInfoBlockInRange, rangeIsInInfoBlock, hasPreInRange, hasQuoteInRange, hasLinkInRange, hasTableInRange, hasImageInRange, hasVideoInRange, rangeIsInQuote, queryTextStyle, queryTextMark, getRangeText, setIndentIncrease, setIndentDecrease, setQuote, setAlign, setList, setTask, setTextStyle, setTextMark, removeTextStyle, removeTextMark, setLineHeight, insertLink, insertImage, insertVideo, insertTable, insertCodeBlock, insertSeparator } from './core/function';
806
808
  declare const install: (app: App) => void;
807
- declare const version = "0.2.14";
808
- export { AlexElement } from 'alex-editor';
809
- export type { AttachmentOptionsType } from './plugins/attachment';
810
- export type { InsertAttachmentUploadErrorType } from './plugins/attachment/insertAttachment/props';
811
- export { attachment, isAttachment, hasAttachmentInRange } from './plugins/attachment';
812
- export type { MathformulaOptionsType } from './plugins/mathformula';
813
- export { mathformula, isMathformula, isUnderMathformula, getMathformulaElement, hasMathformulaInRange, getMathformulaElementByRange } from './plugins/mathformula';
814
- export type { PanelOptionsType } from './plugins/panel';
815
- export { panel, isPanel, isUnderPanel, getPanelElement, hasPanelInRange, getPanelElementByRange } from './plugins/panel';
816
- export type { InfoBlockOptionsType } from './plugins/infoBlock';
817
- export { infoBlock, isInfoBlock, isUnderInfoBlock, getInfoBlockElement, hasInfoBlockInRange, getInfoBlockElementByRange } from './plugins/infoBlock';
818
- export { Editify as default, Editify, install, version };
809
+ declare const version = "0.2.16";
810
+ export { Editify as default, Editify, install, AlexElement, version };