@opentiny/fluent-editor 3.25.1 → 3.25.3-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.
Files changed (274) hide show
  1. package/README.md +105 -105
  2. package/es/attributors/line-height.es.js.map +1 -1
  3. package/es/config/base64-image.es.js.map +1 -1
  4. package/es/config/editor.config.es.js.map +1 -1
  5. package/es/config/editor.utils.es.js.map +1 -1
  6. package/es/config/i18n/en-us.es.js.map +1 -1
  7. package/es/config/i18n/zh-cn.es.js.map +1 -1
  8. package/es/config/index.es.js.map +1 -1
  9. package/es/core/fluent-editor.es.js.map +1 -1
  10. package/es/fluent-editor.es.js.map +1 -1
  11. package/es/formats/soft-break.es.js.map +1 -1
  12. package/es/formats/strike.es.js.map +1 -1
  13. package/es/formats/video.es.js.map +1 -1
  14. package/es/modules/counter.es.js.map +1 -1
  15. package/es/modules/custom-clipboard.es.js.map +1 -1
  16. package/es/modules/custom-image/BlotFormatter.es.js +28 -0
  17. package/es/modules/custom-image/BlotFormatter.es.js.map +1 -1
  18. package/es/modules/custom-image/Options.es.js.map +1 -1
  19. package/es/modules/custom-image/actions/Action.es.js.map +1 -1
  20. package/es/modules/custom-image/actions/CustomResizeAction.es.js.map +1 -1
  21. package/es/modules/custom-image/actions/DeleteAction.es.js.map +1 -1
  22. package/es/modules/custom-image/image-bar.es.js +126 -0
  23. package/es/modules/custom-image/image-bar.es.js.map +1 -0
  24. package/es/modules/custom-image/image.es.js.map +1 -1
  25. package/es/modules/custom-image/specs/BlotSpec.es.js.map +1 -1
  26. package/es/modules/custom-image/specs/CustomImageSpec.es.js.map +1 -1
  27. package/es/modules/custom-image/specs/ImageSpec.es.js.map +1 -1
  28. package/es/modules/custom-uploader.es.js.map +1 -1
  29. package/es/modules/divider.es.js.map +1 -1
  30. package/es/modules/emoji/emoji-list/people.es.js.map +1 -1
  31. package/es/modules/emoji/emoji-list.es.js.map +1 -1
  32. package/es/modules/emoji/emoji-map.es.js.map +1 -1
  33. package/es/modules/emoji/emoji-sprite.es.js.map +1 -1
  34. package/es/modules/emoji/formats/emoji-blot.es.js.map +1 -1
  35. package/es/modules/emoji/index.es.js.map +1 -1
  36. package/es/modules/emoji/modules/emoji.es.js.map +1 -1
  37. package/es/modules/emoji/modules/toolbar-emoji.es.js.map +1 -1
  38. package/es/modules/emoji/utils.es.js.map +1 -1
  39. package/es/modules/file/formats/file.es.js.map +1 -1
  40. package/es/modules/file/index.es.js.map +1 -1
  41. package/es/modules/file/modules/file-bar.es.js.map +1 -1
  42. package/es/modules/global-link/constants.es.js.map +1 -1
  43. package/es/modules/global-link/formats/customer-widget-link.es.js.map +1 -1
  44. package/es/modules/global-link/formats/doc-link.es.js.map +1 -1
  45. package/es/modules/global-link/formats/wiki-link.es.js.map +1 -1
  46. package/es/modules/global-link/formats/work-item-link.es.js.map +1 -1
  47. package/es/modules/global-link/index.es.js.map +1 -1
  48. package/es/modules/global-link/utils/createTable.es.js.map +1 -1
  49. package/es/modules/link/formats/link.es.js.map +1 -1
  50. package/es/modules/link/index.es.js.map +1 -1
  51. package/es/modules/link/modules/tooltip.es.js.map +1 -1
  52. package/es/modules/mathlive/formats.es.js.map +1 -1
  53. package/es/modules/mathlive/index.es.js.map +1 -1
  54. package/es/modules/mathlive/tooltip.es.js.map +1 -1
  55. package/es/modules/mention/Mention.es.js.map +1 -1
  56. package/es/modules/mention/MentionLink.es.js.map +1 -1
  57. package/es/modules/mention/constants.es.js.map +1 -1
  58. package/es/modules/quick-menu.es.js.map +1 -1
  59. package/es/modules/syntax.es.js.map +1 -1
  60. package/es/modules/table/better-table.es.js.map +1 -1
  61. package/es/modules/table/formats/header.es.js.map +1 -1
  62. package/es/modules/table/formats/list.es.js.map +1 -1
  63. package/es/modules/table/formats/table.es.js.map +1 -1
  64. package/es/modules/table/modules/table-column-tool.es.js.map +1 -1
  65. package/es/modules/table/modules/table-operation-menu.es.js.map +1 -1
  66. package/es/modules/table/modules/table-scroll-bar.es.js.map +1 -1
  67. package/es/modules/table/modules/table-selection.es.js.map +1 -1
  68. package/es/modules/table/modules/table-selector.es.js.map +1 -1
  69. package/es/modules/table/table-config.es.js.map +1 -1
  70. package/es/modules/table/utils/index.es.js.map +1 -1
  71. package/es/modules/table/utils/node-matchers.es.js.map +1 -1
  72. package/es/modules/toolbar/better-picker.es.js.map +1 -1
  73. package/es/modules/toolbar/index.es.js.map +1 -1
  74. package/es/themes/snow.es.js.map +1 -1
  75. package/es/tools/screenshot.es.js.map +1 -1
  76. package/es/ui/icons.config.es.js.map +1 -1
  77. package/es/ui/icons.es.js.map +1 -1
  78. package/es/utils/debounce.es.js.map +1 -1
  79. package/es/utils/method.es.js.map +1 -1
  80. package/lib/attributors/line-height.cjs.js.map +1 -1
  81. package/lib/config/base64-image.cjs.js.map +1 -1
  82. package/lib/config/editor.config.cjs.js.map +1 -1
  83. package/lib/config/editor.utils.cjs.js.map +1 -1
  84. package/lib/config/i18n/en-us.cjs.js.map +1 -1
  85. package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
  86. package/lib/config/index.cjs.js.map +1 -1
  87. package/lib/core/fluent-editor.cjs.js.map +1 -1
  88. package/lib/fluent-editor.cjs.js.map +1 -1
  89. package/lib/formats/soft-break.cjs.js.map +1 -1
  90. package/lib/formats/strike.cjs.js.map +1 -1
  91. package/lib/formats/video.cjs.js.map +1 -1
  92. package/lib/modules/counter.cjs.js.map +1 -1
  93. package/lib/modules/custom-clipboard.cjs.js.map +1 -1
  94. package/lib/modules/custom-image/BlotFormatter.cjs.js +28 -0
  95. package/lib/modules/custom-image/BlotFormatter.cjs.js.map +1 -1
  96. package/lib/modules/custom-image/Options.cjs.js.map +1 -1
  97. package/lib/modules/custom-image/actions/Action.cjs.js.map +1 -1
  98. package/lib/modules/custom-image/actions/CustomResizeAction.cjs.js.map +1 -1
  99. package/lib/modules/custom-image/actions/DeleteAction.cjs.js.map +1 -1
  100. package/lib/modules/custom-image/image-bar.cjs.js +126 -0
  101. package/lib/modules/custom-image/image-bar.cjs.js.map +1 -0
  102. package/lib/modules/custom-image/image.cjs.js.map +1 -1
  103. package/lib/modules/custom-image/specs/BlotSpec.cjs.js.map +1 -1
  104. package/lib/modules/custom-image/specs/CustomImageSpec.cjs.js.map +1 -1
  105. package/lib/modules/custom-image/specs/ImageSpec.cjs.js.map +1 -1
  106. package/lib/modules/custom-uploader.cjs.js.map +1 -1
  107. package/lib/modules/divider.cjs.js.map +1 -1
  108. package/lib/modules/emoji/emoji-list/people.cjs.js.map +1 -1
  109. package/lib/modules/emoji/emoji-list.cjs.js.map +1 -1
  110. package/lib/modules/emoji/emoji-map.cjs.js.map +1 -1
  111. package/lib/modules/emoji/emoji-sprite.cjs.js.map +1 -1
  112. package/lib/modules/emoji/formats/emoji-blot.cjs.js.map +1 -1
  113. package/lib/modules/emoji/index.cjs.js.map +1 -1
  114. package/lib/modules/emoji/modules/emoji.cjs.js.map +1 -1
  115. package/lib/modules/emoji/modules/toolbar-emoji.cjs.js.map +1 -1
  116. package/lib/modules/emoji/utils.cjs.js.map +1 -1
  117. package/lib/modules/file/formats/file.cjs.js.map +1 -1
  118. package/lib/modules/file/index.cjs.js.map +1 -1
  119. package/lib/modules/file/modules/file-bar.cjs.js.map +1 -1
  120. package/lib/modules/global-link/constants.cjs.js.map +1 -1
  121. package/lib/modules/global-link/formats/customer-widget-link.cjs.js.map +1 -1
  122. package/lib/modules/global-link/formats/doc-link.cjs.js.map +1 -1
  123. package/lib/modules/global-link/formats/wiki-link.cjs.js.map +1 -1
  124. package/lib/modules/global-link/formats/work-item-link.cjs.js.map +1 -1
  125. package/lib/modules/global-link/index.cjs.js.map +1 -1
  126. package/lib/modules/global-link/utils/createTable.cjs.js.map +1 -1
  127. package/lib/modules/link/formats/link.cjs.js.map +1 -1
  128. package/lib/modules/link/index.cjs.js.map +1 -1
  129. package/lib/modules/link/modules/tooltip.cjs.js.map +1 -1
  130. package/lib/modules/mathlive/formats.cjs.js.map +1 -1
  131. package/lib/modules/mathlive/index.cjs.js.map +1 -1
  132. package/lib/modules/mathlive/tooltip.cjs.js.map +1 -1
  133. package/lib/modules/mention/Mention.cjs.js.map +1 -1
  134. package/lib/modules/mention/MentionLink.cjs.js.map +1 -1
  135. package/lib/modules/mention/constants.cjs.js.map +1 -1
  136. package/lib/modules/quick-menu.cjs.js.map +1 -1
  137. package/lib/modules/syntax.cjs.js.map +1 -1
  138. package/lib/modules/table/better-table.cjs.js.map +1 -1
  139. package/lib/modules/table/formats/header.cjs.js.map +1 -1
  140. package/lib/modules/table/formats/list.cjs.js.map +1 -1
  141. package/lib/modules/table/formats/table.cjs.js.map +1 -1
  142. package/lib/modules/table/modules/table-column-tool.cjs.js.map +1 -1
  143. package/lib/modules/table/modules/table-operation-menu.cjs.js.map +1 -1
  144. package/lib/modules/table/modules/table-scroll-bar.cjs.js.map +1 -1
  145. package/lib/modules/table/modules/table-selection.cjs.js.map +1 -1
  146. package/lib/modules/table/modules/table-selector.cjs.js.map +1 -1
  147. package/lib/modules/table/table-config.cjs.js.map +1 -1
  148. package/lib/modules/table/utils/index.cjs.js.map +1 -1
  149. package/lib/modules/table/utils/node-matchers.cjs.js.map +1 -1
  150. package/lib/modules/toolbar/better-picker.cjs.js.map +1 -1
  151. package/lib/modules/toolbar/index.cjs.js.map +1 -1
  152. package/lib/themes/snow.cjs.js.map +1 -1
  153. package/lib/tools/screenshot.cjs.js.map +1 -1
  154. package/lib/ui/icons.cjs.js.map +1 -1
  155. package/lib/ui/icons.config.cjs.js.map +1 -1
  156. package/lib/utils/debounce.cjs.js.map +1 -1
  157. package/lib/utils/method.cjs.js.map +1 -1
  158. package/package.json +57 -56
  159. package/style.css +193 -0
  160. package/types/attributors/font-size.d.ts +1 -1
  161. package/types/attributors/font-style.d.ts +1 -1
  162. package/types/attributors/index.d.ts +4 -4
  163. package/types/attributors/line-height.d.ts +1 -1
  164. package/types/attributors/text-indent.d.ts +1 -1
  165. package/types/config/base64-image.d.ts +2 -2
  166. package/types/config/editor.config.d.ts +229 -229
  167. package/types/config/editor.utils.d.ts +42 -42
  168. package/types/config/i18n/en-us.d.ts +108 -108
  169. package/types/config/i18n/zh-cn.d.ts +108 -108
  170. package/types/config/index.d.ts +6 -6
  171. package/types/config/types/additional-toolbar-item.interface.d.ts +7 -6
  172. package/types/config/types/content-change.interface.d.ts +13 -13
  173. package/types/config/types/content-save.interface.d.ts +6 -6
  174. package/types/config/types/counter-option.interface.d.ts +8 -7
  175. package/types/config/types/editor-config.interface.d.ts +34 -33
  176. package/types/config/types/editor-modules.interface.d.ts +30 -29
  177. package/types/config/types/editor-toolbar.interface.d.ts +4 -3
  178. package/types/config/types/file-operation.interface.d.ts +11 -10
  179. package/types/config/types/focus-change.interface.d.ts +4 -4
  180. package/types/config/types/fullscreen-module.interface.d.ts +4 -4
  181. package/types/config/types/help-panel-item.interface.d.ts +5 -5
  182. package/types/config/types/help-panel-option.interface.d.ts +6 -5
  183. package/types/config/types/image-module.interface.d.ts +3 -3
  184. package/types/config/types/image-upload.interface.d.ts +6 -5
  185. package/types/config/types/index.d.ts +23 -23
  186. package/types/config/types/load-on-demand-module.interface.d.ts +5 -5
  187. package/types/config/types/mention-module.interface.d.ts +8 -8
  188. package/types/config/types/paste-change.interface.d.ts +5 -4
  189. package/types/config/types/quick-menu-module.interface.d.ts +3 -3
  190. package/types/config/types/range.interface.d.ts +4 -4
  191. package/types/config/types/registry-options.interface.d.ts +5 -5
  192. package/types/config/types/selection-change.interface.d.ts +7 -6
  193. package/types/config/types/toolbar-item.interface.d.ts +13 -13
  194. package/types/config/types/type.d.ts +5 -4
  195. package/types/config/types/validate-error.interface.d.ts +13 -13
  196. package/types/core/fluent-editor.d.ts +10 -9
  197. package/types/fluent-editor.d.ts +2 -1
  198. package/types/formats/soft-break.d.ts +14 -14
  199. package/types/formats/strike.d.ts +7 -7
  200. package/types/formats/video.d.ts +15 -14
  201. package/types/index.d.ts +4 -3
  202. package/types/modules/counter.d.ts +15 -14
  203. package/types/modules/custom-clipboard.d.ts +27 -26
  204. package/types/modules/custom-image/BlotFormatter.d.ts +26 -20
  205. package/types/modules/custom-image/Options.d.ts +36 -36
  206. package/types/modules/custom-image/actions/Action.d.ts +7 -7
  207. package/types/modules/custom-image/actions/CustomResizeAction.d.ts +23 -22
  208. package/types/modules/custom-image/actions/DeleteAction.d.ts +6 -5
  209. package/types/modules/custom-image/image-bar.d.ts +15 -0
  210. package/types/modules/custom-image/image.d.ts +28 -28
  211. package/types/modules/custom-image/specs/BlotSpec.d.ts +11 -10
  212. package/types/modules/custom-image/specs/CustomImageSpec.d.ts +18 -17
  213. package/types/modules/custom-image/specs/ImageSpec.d.ts +9 -8
  214. package/types/modules/custom-uploader.d.ts +30 -29
  215. package/types/modules/divider.d.ts +7 -7
  216. package/types/modules/emoji/emoji-list/index.d.ts +1 -1
  217. package/types/modules/emoji/emoji-list/people.d.ts +1 -1
  218. package/types/modules/emoji/emoji-list.d.ts +2 -2
  219. package/types/modules/emoji/emoji-map.d.ts +2 -2
  220. package/types/modules/emoji/emoji-sprite.d.ts +1 -1
  221. package/types/modules/emoji/formats/emoji-blot.d.ts +13 -13
  222. package/types/modules/emoji/index.d.ts +7 -6
  223. package/types/modules/emoji/modules/emoji.d.ts +38 -38
  224. package/types/modules/emoji/modules/toolbar-emoji.d.ts +8 -8
  225. package/types/modules/emoji/utils.d.ts +1 -1
  226. package/types/modules/file/formats/file.d.ts +15 -15
  227. package/types/modules/file/index.d.ts +10 -9
  228. package/types/modules/file/modules/file-bar.d.ts +14 -14
  229. package/types/modules/global-link/constants.d.ts +3 -3
  230. package/types/modules/global-link/formats/customer-widget-link.d.ts +14 -14
  231. package/types/modules/global-link/formats/doc-link.d.ts +17 -17
  232. package/types/modules/global-link/formats/wiki-link.d.ts +16 -16
  233. package/types/modules/global-link/formats/work-item-link.d.ts +16 -16
  234. package/types/modules/global-link/global-link-panel.d.ts +18 -17
  235. package/types/modules/global-link/index.d.ts +18 -18
  236. package/types/modules/global-link/utils/createTable.d.ts +1 -1
  237. package/types/modules/i18n.d.ts +15 -14
  238. package/types/modules/link/formats/link.d.ts +15 -14
  239. package/types/modules/link/index.d.ts +6 -6
  240. package/types/modules/link/modules/tooltip.d.ts +32 -31
  241. package/types/modules/mathlive/formats.d.ts +21 -20
  242. package/types/modules/mathlive/index.d.ts +7 -6
  243. package/types/modules/mathlive/tooltip.d.ts +15 -14
  244. package/types/modules/mention/Mention.d.ts +54 -53
  245. package/types/modules/mention/MentionLink.d.ts +15 -14
  246. package/types/modules/mention/constants.d.ts +3 -3
  247. package/types/modules/quick-menu.d.ts +21 -20
  248. package/types/modules/syntax.d.ts +13 -12
  249. package/types/modules/table/better-table.d.ts +32 -31
  250. package/types/modules/table/formats/header.d.ts +22 -21
  251. package/types/modules/table/formats/list.d.ts +34 -34
  252. package/types/modules/table/formats/table.d.ts +146 -145
  253. package/types/modules/table/modules/table-column-tool.d.ts +23 -23
  254. package/types/modules/table/modules/table-operation-menu.d.ts +38 -38
  255. package/types/modules/table/modules/table-scroll-bar.d.ts +33 -33
  256. package/types/modules/table/modules/table-selection.d.ts +37 -37
  257. package/types/modules/table/modules/table-selector.d.ts +22 -22
  258. package/types/modules/table/table-config.d.ts +38 -38
  259. package/types/modules/table/utils/index.d.ts +17 -17
  260. package/types/modules/table/utils/node-matchers.d.ts +9 -9
  261. package/types/modules/toolbar/better-picker.d.ts +1 -1
  262. package/types/modules/toolbar/index.d.ts +8 -7
  263. package/types/modules/toolbar/toolbar-tip.d.ts +8 -7
  264. package/types/themes/snow.d.ts +3 -2
  265. package/types/tools/format-painter.d.ts +14 -13
  266. package/types/tools/fullscreen.d.ts +2 -1
  267. package/types/tools/screenshot.d.ts +18 -17
  268. package/types/ui/icons.config.d.ts +36 -36
  269. package/types/ui/icons.d.ts +6 -6
  270. package/types/utils/debounce.d.ts +6 -6
  271. package/types/utils/image.d.ts +1 -1
  272. package/types/utils/is.d.ts +4 -4
  273. package/types/utils/method.d.ts +6 -6
  274. package/types/utils/scroll-lock.d.ts +6 -6
@@ -1,15 +1,16 @@
1
1
  import { default as TypeEmbed } from 'quill/blots/embed';
2
- declare const Embed: typeof TypeEmbed;
3
- declare class MentionLink extends Embed {
4
- static blotName: string;
5
- static tagName: string;
6
- static className: string;
7
- scroll: any;
8
- mentionData: any;
9
- static create(data: any): HTMLElement;
10
- static value(domNode: HTMLElement): Record<string, any>;
11
- constructor(scroll: any, domNode: any, data: any);
12
- value(): any;
13
- remove(): void;
14
- }
15
- export { MentionLink as default };
2
+
3
+ declare const Embed: typeof TypeEmbed;
4
+ declare class MentionLink extends Embed {
5
+ static blotName: string;
6
+ static tagName: string;
7
+ static className: string;
8
+ scroll: any;
9
+ mentionData: any;
10
+ static create(data: any): HTMLElement;
11
+ static value(domNode: HTMLElement): Record<string, any>;
12
+ constructor(scroll: any, domNode: any, data: any);
13
+ value(): any;
14
+ remove(): void;
15
+ }
16
+ export { MentionLink as default };
@@ -1,3 +1,3 @@
1
- export declare const ON_MENTION_LINK_REMOVE = "mention-link/remove";
2
- export declare const MENTION_CHAR = "mentionChar";
3
- export declare const DEFAULT_MENTION_CHAR = "@";
1
+ export declare const ON_MENTION_LINK_REMOVE = "mention-link/remove";
2
+ export declare const MENTION_CHAR = "mentionChar";
3
+ export declare const DEFAULT_MENTION_CHAR = "@";
@@ -1,21 +1,22 @@
1
1
  import { default as Quill } from 'quill';
2
- interface QuickMenuOptions {
3
- container: string;
4
- component: any;
5
- }
6
- declare class QuickMenu {
7
- private quill;
8
- private options;
9
- private container;
10
- private hostElement;
11
- private quickMenu;
12
- private quickMenuContainer;
13
- constructor(quill: Quill, options: QuickMenuOptions);
14
- handleSlashKeyDown: (_range: any, context: any) => void;
15
- private isOpen;
16
- hideQuickMenu: (event: any) => void;
17
- handleArrowUpKey: (_range: any, _context: any) => boolean;
18
- handleArrowDownKey: (_range: any, _context: any) => boolean;
19
- handleEnterKey: (_range: any, _context: any) => boolean;
20
- }
21
- export default QuickMenu;
2
+
3
+ interface QuickMenuOptions {
4
+ container: string;
5
+ component: any;
6
+ }
7
+ declare class QuickMenu {
8
+ private quill;
9
+ private options;
10
+ private container;
11
+ private hostElement;
12
+ private quickMenu;
13
+ private quickMenuContainer;
14
+ constructor(quill: Quill, options: QuickMenuOptions);
15
+ handleSlashKeyDown: (_range: any, context: any) => void;
16
+ private isOpen;
17
+ hideQuickMenu: (event: any) => void;
18
+ handleArrowUpKey: (_range: any, _context: any) => boolean;
19
+ handleArrowDownKey: (_range: any, _context: any) => boolean;
20
+ handleEnterKey: (_range: any, _context: any) => boolean;
21
+ }
22
+ export default QuickMenu;
@@ -1,13 +1,14 @@
1
1
  import { default as TypeSyntax } from 'quill/modules/syntax';
2
- declare const Syntax: typeof TypeSyntax;
3
- declare class CustomSyntax extends Syntax {
4
- static DEFAULTS: {
5
- hljs: any;
6
- interval: number;
7
- languages: {
8
- key: string;
9
- label: string;
10
- }[];
11
- };
12
- }
13
- export default CustomSyntax;
2
+
3
+ declare const Syntax: typeof TypeSyntax;
4
+ declare class CustomSyntax extends Syntax {
5
+ static DEFAULTS: {
6
+ hljs: any;
7
+ interval: number;
8
+ languages: {
9
+ key: string;
10
+ label: string;
11
+ }[];
12
+ };
13
+ }
14
+ export default CustomSyntax;
@@ -1,34 +1,35 @@
1
1
  import { default as TableColumnTool } from './modules/table-column-tool';
2
2
  import { default as TableScrollBar } from './modules/table-scroll-bar';
3
3
  import { default as TableSelector } from './modules/table-selector';
4
- declare const Module: unknown;
5
- declare class BetterTable extends Module {
6
- static keyboardBindings: any;
7
- isComposition: boolean;
8
- quill: any;
9
- table: any;
10
- modulesContainer: any;
11
- tableSelection: any;
12
- subscriber: any;
13
- tableOperationMenu: any;
14
- columnTool: TableColumnTool;
15
- tableScrollBar: TableScrollBar;
16
- tableSelector: TableSelector;
17
- isTableSelectorVisible: boolean;
18
- tableSelectorWrapper: HTMLDivElement;
19
- static register(): void;
20
- constructor(quill: any, options: any);
21
- initTableSelector(): void;
22
- tableSelectorWrapperCreator(): HTMLDivElement;
23
- handleMouseDown(evt: any, quill: any): void;
24
- handleKeyDown(evt: any, quill: any): void;
25
- handleCompositionstart(quill: any): void;
26
- handleCompositionend(quill: any): void;
27
- handleTableSelectorHover(): void;
28
- handleTableSelectorMouseOut(): void;
29
- getTable(range?: any): any[];
30
- insertTable(rows: any, columns: any): void;
31
- showTableTools(table: any, quill: any): void;
32
- hideTableTools(): void;
33
- }
34
- export default BetterTable;
4
+
5
+ declare const Module: unknown;
6
+ declare class BetterTable extends Module {
7
+ static keyboardBindings: any;
8
+ isComposition: boolean;
9
+ quill: any;
10
+ table: any;
11
+ modulesContainer: any;
12
+ tableSelection: any;
13
+ subscriber: any;
14
+ tableOperationMenu: any;
15
+ columnTool: TableColumnTool;
16
+ tableScrollBar: TableScrollBar;
17
+ tableSelector: TableSelector;
18
+ isTableSelectorVisible: boolean;
19
+ tableSelectorWrapper: HTMLDivElement;
20
+ static register(): void;
21
+ constructor(quill: any, options: any);
22
+ initTableSelector(): void;
23
+ tableSelectorWrapperCreator(): HTMLDivElement;
24
+ handleMouseDown(evt: any, quill: any): void;
25
+ handleKeyDown(evt: any, quill: any): void;
26
+ handleCompositionstart(quill: any): void;
27
+ handleCompositionend(quill: any): void;
28
+ handleTableSelectorHover(): void;
29
+ handleTableSelectorMouseOut(): void;
30
+ getTable(range?: any): any[];
31
+ insertTable(rows: any, columns: any): void;
32
+ showTableTools(table: any, quill: any): void;
33
+ hideTableTools(): void;
34
+ }
35
+ export default BetterTable;
@@ -1,22 +1,23 @@
1
1
  import { default as TypeHeader } from 'quill/formats/header';
2
- declare const OriginHeader: typeof TypeHeader;
3
- declare class Header extends OriginHeader {
4
- static tagName: any;
5
- static blotName: string;
6
- domNode: any;
7
- replaceWith: any;
8
- parent: any;
9
- wrap: any;
10
- enforceAllowedChildren: any;
11
- uiNode: any;
12
- children: any;
13
- appendChild: any;
14
- remove: any;
15
- cache: Record<string, any>;
16
- scroll: any;
17
- static create(value: any): HTMLElement;
18
- static formats(domNode: any): any;
19
- format(name: any, value: any): void;
20
- optimize(_context: any): void;
21
- }
22
- export default Header;
2
+
3
+ declare const OriginHeader: typeof TypeHeader;
4
+ declare class Header extends OriginHeader {
5
+ static tagName: any;
6
+ static blotName: string;
7
+ domNode: any;
8
+ replaceWith: any;
9
+ parent: any;
10
+ wrap: any;
11
+ enforceAllowedChildren: any;
12
+ uiNode: any;
13
+ children: any;
14
+ appendChild: any;
15
+ remove: any;
16
+ cache: Record<string, any>;
17
+ scroll: any;
18
+ static create(value: any): HTMLElement;
19
+ static formats(domNode: any): any;
20
+ format(name: any, value: any): void;
21
+ optimize(_context: any): void;
22
+ }
23
+ export default Header;
@@ -1,34 +1,34 @@
1
- declare const Block: unknown;
2
- declare const Container: unknown;
3
- declare class ListContainer extends Container {
4
- static allowedChildren: any;
5
- static blotName: string;
6
- static tagName: string;
7
- replaceWith: any;
8
- domNode: any;
9
- parent: any;
10
- statics: any;
11
- wrap: any;
12
- format(name: any, value: any): void;
13
- }
14
- declare class ListItem extends Block {
15
- static blotName: string;
16
- static tagName: string;
17
- static requiredContainer: typeof ListContainer;
18
- statics: any;
19
- attachUI: any;
20
- domNode: any;
21
- replaceWith: any;
22
- parent: any;
23
- wrap: any;
24
- children: any;
25
- prev: any;
26
- remove: () => void;
27
- static create(value: any): any;
28
- static formats(domNode: any): any;
29
- static register(): void;
30
- constructor(scroll: any, domNode: any);
31
- format(name: any, value: any): void;
32
- optimize(context: any): void;
33
- }
34
- export { ListItem as default, ListContainer };
1
+ declare const Block: unknown;
2
+ declare const Container: unknown;
3
+ declare class ListContainer extends Container {
4
+ static allowedChildren: any;
5
+ static blotName: string;
6
+ static tagName: string;
7
+ replaceWith: any;
8
+ domNode: any;
9
+ parent: any;
10
+ statics: any;
11
+ wrap: any;
12
+ format(name: any, value: any): void;
13
+ }
14
+ declare class ListItem extends Block {
15
+ static blotName: string;
16
+ static tagName: string;
17
+ static requiredContainer: typeof ListContainer;
18
+ statics: any;
19
+ attachUI: any;
20
+ domNode: any;
21
+ replaceWith: any;
22
+ parent: any;
23
+ wrap: any;
24
+ children: any;
25
+ prev: any;
26
+ remove: () => void;
27
+ static create(value: any): any;
28
+ static formats(domNode: any): any;
29
+ static register(): void;
30
+ constructor(scroll: any, domNode: any);
31
+ format(name: any, value: any): void;
32
+ optimize(context: any): void;
33
+ }
34
+ export { ListItem as default, ListContainer };
@@ -1,146 +1,147 @@
1
1
  import { CELL_ATTRIBUTES, CELL_IDENTITY_KEYS } from '../table-config';
2
- declare const Block: unknown;
3
- declare const Container: unknown;
4
- declare class TableCellLine extends Block {
5
- static requiredContainer: any;
6
- static tagName: string;
7
- static className: string;
8
- static blotName: any;
9
- domNode: any;
10
- statics: any;
11
- wrap: any;
12
- parent: any;
13
- static create(value: any): any;
14
- static formats(domNode: any): Record<string, any>;
15
- toggleAttribute(name: any, value: any): void;
16
- formatChildren(name: any, value: any): void;
17
- format(name: any, value: any): void;
18
- optimize(context: any): void;
19
- tableCell(): any;
20
- }
21
- declare class TableCell extends Container {
22
- static allowedChildren: any;
23
- static blotName: any;
24
- static requiredContainer: any;
25
- static tagName: string;
26
- next: any;
27
- children: any;
28
- parent: any;
29
- domNode: any;
30
- statics: any;
31
- wrap: any;
32
- splitAfter: any;
33
- prev: any;
34
- scroll: any;
35
- static create(value?: {
36
- row: string;
37
- }): any;
38
- static formats(domNode: any): {
39
- height: any;
40
- row: any;
41
- };
42
- checkMerge(): boolean;
43
- cellOffset(): any;
44
- formats(): {};
45
- toggleAttribute(name: any, value: any): void;
46
- formatChildren(name: any, value: any): void;
47
- /**
48
- * this method is for TableCellLine to change cell background color
49
- * if use `format('cell-bg', value)` will loop trigger
50
- * TableCellLine.optimize -> TableCell.format -> TableCellLine.optimize ...
51
- */
52
- setCellBg(value?: string): void;
53
- format(name: any, value: any): void;
54
- optimize(context: any): void;
55
- getFormat(domNode: any): Record<string, any>;
56
- row(): any;
57
- rowOffset(): any;
58
- table(): any;
59
- }
60
- declare class TableRow extends Container {
61
- static requiredContainer: any;
62
- static allowedChildren: any;
63
- static blotName: string;
64
- static tagName: string;
65
- next: any;
66
- children: any;
67
- domNode: any;
68
- statics: any;
69
- wrap: any;
70
- splitAfter: any;
71
- enforceAllowedChildren: any;
72
- uiNode: any;
73
- parent: any;
74
- prev: any;
75
- static create(value: any): any;
76
- checkMerge(): boolean;
77
- formats(): {};
78
- format(key: any, value: any): void;
79
- optimize(context: any): void;
80
- rowOffset(): any;
81
- table(): any;
82
- }
83
- declare class TableBody extends Container {
84
- static requiredContainer: any;
85
- static allowedChildren: any;
86
- static blotName: string;
87
- static tagName: string;
88
- }
89
- declare class TableCol extends Block {
90
- static requiredContainer: any;
91
- static blotName: string;
92
- static tagName: string;
93
- domNode: any;
94
- static create(value: any): any;
95
- static formats(domNode: any): {};
96
- format(name: any, value: any): void;
97
- html(): any;
98
- }
99
- declare class TableColGroup extends Container {
100
- static requiredContainer: any;
101
- static allowedChildren: any;
102
- static blotName: string;
103
- static tagName: string;
104
- parent: any;
105
- statics: any;
106
- optimize(context: any): void;
107
- findTdColspanInTbody(tbody: any, trId: any): number;
108
- }
109
- declare class TableContainer extends Container {
110
- static blotName: string;
111
- static className: string;
112
- static tagName: string;
113
- static requiredContainer: any;
114
- static allowedChildren: any;
115
- domNode: any;
116
- parent: any;
117
- children: any;
118
- descendants: any;
119
- scroll: any;
120
- remove: any;
121
- static create(): any;
122
- constructor(scroll: any, domNode: any);
123
- updateTableWidth(): void;
124
- cells(column: any): any;
125
- colGroup(): any;
126
- deleteColumns(compareRect: any, delIndexes: any[], editorWrapper: any): boolean;
127
- deleteRow(compareRect: any, editorWrapper: any): void;
128
- tableDestroy(): void;
129
- insertCell(tableRow: any, ref: any, bg?: string): void;
130
- insertColumn(compareRect: any, colIndex: any, isRight: boolean, editorWrapper: any): any[];
131
- insertRow(compareRect: any, isDown: any, editorWrapper: any): any[];
132
- mergeCells(_compareRect: any, mergingCells: any, rowspan: any, colspan: any, _editorWrapper: any): any;
133
- unmergeCells(unmergingCells: any, editorWrapper: any): void;
134
- emptyCells(selectedTds: any): void;
135
- rows(): any;
136
- }
137
- declare class TableViewWrapper extends Container {
138
- static blotName: string;
139
- static tagName: string;
140
- static className: string;
141
- static allowedChildren: any;
142
- constructor(scroll: any, domNode: any);
143
- }
144
- declare function rowId(): string;
145
- declare function cellId(): string;
146
- export { CELL_ATTRIBUTES, CELL_IDENTITY_KEYS, cellId, rowId, TableBody, TableCell, TableCellLine, TableCol, TableColGroup, TableContainer, TableRow, TableViewWrapper, };
2
+
3
+ declare const Block: unknown;
4
+ declare const Container: unknown;
5
+ declare class TableCellLine extends Block {
6
+ static requiredContainer: any;
7
+ static tagName: string;
8
+ static className: string;
9
+ static blotName: any;
10
+ domNode: any;
11
+ statics: any;
12
+ wrap: any;
13
+ parent: any;
14
+ static create(value: any): any;
15
+ static formats(domNode: any): Record<string, any>;
16
+ toggleAttribute(name: any, value: any): void;
17
+ formatChildren(name: any, value: any): void;
18
+ format(name: any, value: any): void;
19
+ optimize(context: any): void;
20
+ tableCell(): any;
21
+ }
22
+ declare class TableCell extends Container {
23
+ static allowedChildren: any;
24
+ static blotName: any;
25
+ static requiredContainer: any;
26
+ static tagName: string;
27
+ next: any;
28
+ children: any;
29
+ parent: any;
30
+ domNode: any;
31
+ statics: any;
32
+ wrap: any;
33
+ splitAfter: any;
34
+ prev: any;
35
+ scroll: any;
36
+ static create(value?: {
37
+ row: string;
38
+ }): any;
39
+ static formats(domNode: any): {
40
+ height: any;
41
+ row: any;
42
+ };
43
+ checkMerge(): boolean;
44
+ cellOffset(): any;
45
+ formats(): {};
46
+ toggleAttribute(name: any, value: any): void;
47
+ formatChildren(name: any, value: any): void;
48
+ /**
49
+ * this method is for TableCellLine to change cell background color
50
+ * if use `format('cell-bg', value)` will loop trigger
51
+ * TableCellLine.optimize -> TableCell.format -> TableCellLine.optimize ...
52
+ */
53
+ setCellBg(value?: string): void;
54
+ format(name: any, value: any): void;
55
+ optimize(context: any): void;
56
+ getFormat(domNode: any): Record<string, any>;
57
+ row(): any;
58
+ rowOffset(): any;
59
+ table(): any;
60
+ }
61
+ declare class TableRow extends Container {
62
+ static requiredContainer: any;
63
+ static allowedChildren: any;
64
+ static blotName: string;
65
+ static tagName: string;
66
+ next: any;
67
+ children: any;
68
+ domNode: any;
69
+ statics: any;
70
+ wrap: any;
71
+ splitAfter: any;
72
+ enforceAllowedChildren: any;
73
+ uiNode: any;
74
+ parent: any;
75
+ prev: any;
76
+ static create(value: any): any;
77
+ checkMerge(): boolean;
78
+ formats(): {};
79
+ format(key: any, value: any): void;
80
+ optimize(context: any): void;
81
+ rowOffset(): any;
82
+ table(): any;
83
+ }
84
+ declare class TableBody extends Container {
85
+ static requiredContainer: any;
86
+ static allowedChildren: any;
87
+ static blotName: string;
88
+ static tagName: string;
89
+ }
90
+ declare class TableCol extends Block {
91
+ static requiredContainer: any;
92
+ static blotName: string;
93
+ static tagName: string;
94
+ domNode: any;
95
+ static create(value: any): any;
96
+ static formats(domNode: any): {};
97
+ format(name: any, value: any): void;
98
+ html(): any;
99
+ }
100
+ declare class TableColGroup extends Container {
101
+ static requiredContainer: any;
102
+ static allowedChildren: any;
103
+ static blotName: string;
104
+ static tagName: string;
105
+ parent: any;
106
+ statics: any;
107
+ optimize(context: any): void;
108
+ findTdColspanInTbody(tbody: any, trId: any): number;
109
+ }
110
+ declare class TableContainer extends Container {
111
+ static blotName: string;
112
+ static className: string;
113
+ static tagName: string;
114
+ static requiredContainer: any;
115
+ static allowedChildren: any;
116
+ domNode: any;
117
+ parent: any;
118
+ children: any;
119
+ descendants: any;
120
+ scroll: any;
121
+ remove: any;
122
+ static create(): any;
123
+ constructor(scroll: any, domNode: any);
124
+ updateTableWidth(): void;
125
+ cells(column: any): any;
126
+ colGroup(): any;
127
+ deleteColumns(compareRect: any, delIndexes: any[], editorWrapper: any): boolean;
128
+ deleteRow(compareRect: any, editorWrapper: any): void;
129
+ tableDestroy(): void;
130
+ insertCell(tableRow: any, ref: any, bg?: string): void;
131
+ insertColumn(compareRect: any, colIndex: any, isRight: boolean, editorWrapper: any): any[];
132
+ insertRow(compareRect: any, isDown: any, editorWrapper: any): any[];
133
+ mergeCells(_compareRect: any, mergingCells: any, rowspan: any, colspan: any, _editorWrapper: any): any;
134
+ unmergeCells(unmergingCells: any, editorWrapper: any): void;
135
+ emptyCells(selectedTds: any): void;
136
+ rows(): any;
137
+ }
138
+ declare class TableViewWrapper extends Container {
139
+ static blotName: string;
140
+ static tagName: string;
141
+ static className: string;
142
+ static allowedChildren: any;
143
+ constructor(scroll: any, domNode: any);
144
+ }
145
+ declare function rowId(): string;
146
+ declare function cellId(): string;
147
+ export { CELL_ATTRIBUTES, CELL_IDENTITY_KEYS, cellId, rowId, TableBody, TableCell, TableCellLine, TableCol, TableColGroup, TableContainer, TableRow, TableViewWrapper, };
@@ -1,23 +1,23 @@
1
- export default class TableColumnTool {
2
- table: any;
3
- quill: any;
4
- modulesContainer: any;
5
- domNode: any;
6
- columnCtrlPanel: HTMLDivElement;
7
- leftMask: HTMLDivElement;
8
- rowCtrlPanel: HTMLDivElement;
9
- activeToolCell: HTMLElement;
10
- oldRootScrollTop: any;
11
- constructor(table: any, quill: any, dom: any);
12
- handleQuillRootScroll(): void;
13
- initColTool(): void;
14
- createToolCell(isRow: any): HTMLDivElement;
15
- updateColToolCells(): void;
16
- updateRowToolCells(): void;
17
- destroy(): any;
18
- addRowCellSelectHandler(cell: any): void;
19
- addRowCellHolderHandler(cell: any): void;
20
- addColCellSelectHandler(cell: any): void;
21
- addColCellHolderHandler(cell: any): void;
22
- colToolCells(): unknown[];
23
- }
1
+ export default class TableColumnTool {
2
+ table: any;
3
+ quill: any;
4
+ modulesContainer: any;
5
+ domNode: any;
6
+ columnCtrlPanel: HTMLDivElement;
7
+ leftMask: HTMLDivElement;
8
+ rowCtrlPanel: HTMLDivElement;
9
+ activeToolCell: HTMLElement;
10
+ oldRootScrollTop: any;
11
+ constructor(table: any, quill: any, dom: any);
12
+ handleQuillRootScroll(): void;
13
+ initColTool(): void;
14
+ createToolCell(isRow: any): HTMLDivElement;
15
+ updateColToolCells(): void;
16
+ updateRowToolCells(): void;
17
+ destroy(): any;
18
+ addRowCellSelectHandler(cell: any): void;
19
+ addRowCellHolderHandler(cell: any): void;
20
+ addColCellSelectHandler(cell: any): void;
21
+ addColCellHolderHandler(cell: any): void;
22
+ colToolCells(): unknown[];
23
+ }