@opentiny/fluent-editor 3.23.0 → 3.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/README.md +102 -101
  2. package/es/attributors/font-style.es.js +1 -1
  3. package/es/attributors/font-style.es.js.map +1 -1
  4. package/es/attributors/line-height.es.js.map +1 -1
  5. package/es/config/base64-image.es.js.map +1 -1
  6. package/es/config/editor.config.es.js.map +1 -1
  7. package/es/config/editor.utils.es.js.map +1 -1
  8. package/es/config/i18n/en-us.es.js.map +1 -1
  9. package/es/config/i18n/zh-cn.es.js.map +1 -1
  10. package/es/config/icons.config.es.js.map +1 -1
  11. package/es/config/index.es.js.map +1 -1
  12. package/es/counter/index.es.js.map +1 -1
  13. package/es/custom-clipboard.es.js.map +1 -1
  14. package/es/custom-image/BlotFormatter.es.js.map +1 -1
  15. package/es/custom-image/Options.es.js.map +1 -1
  16. package/es/custom-image/actions/Action.es.js.map +1 -1
  17. package/es/custom-image/actions/CustomResizeAction.es.js.map +1 -1
  18. package/es/custom-image/actions/DeleteAction.es.js.map +1 -1
  19. package/es/custom-image/image.es.js +1 -1
  20. package/es/custom-image/image.es.js.map +1 -1
  21. package/es/custom-image/specs/BlotSpec.es.js.map +1 -1
  22. package/es/custom-image/specs/CustomImageSpec.es.js.map +1 -1
  23. package/es/custom-image/specs/ImageSpec.es.js.map +1 -1
  24. package/es/custom-uploader.es.js.map +1 -1
  25. package/es/emoji/emoji-list/people.es.js.map +1 -1
  26. package/es/emoji/emoji-list.es.js.map +1 -1
  27. package/es/emoji/emoji-map.es.js.map +1 -1
  28. package/es/emoji/formats/emoji-blot.es.js.map +1 -1
  29. package/es/emoji/index.es.js.map +1 -1
  30. package/es/emoji/modules/emoji.es.js.map +1 -1
  31. package/es/emoji/modules/toolbar-emoji.es.js.map +1 -1
  32. package/es/emoji/utils.es.js.map +1 -1
  33. package/es/file/formats/file.es.js.map +1 -1
  34. package/es/file/index.es.js.map +1 -1
  35. package/es/file/modules/file-bar.es.js.map +1 -1
  36. package/es/fluent-editor.es.js +1 -0
  37. package/es/fluent-editor.es.js.map +1 -1
  38. package/es/global-link/constants.es.js.map +1 -1
  39. package/es/global-link/formats/customer-widget-link.es.js.map +1 -1
  40. package/es/global-link/formats/doc-link.es.js.map +1 -1
  41. package/es/global-link/formats/wiki-link.es.js.map +1 -1
  42. package/es/global-link/formats/work-item-link.es.js.map +1 -1
  43. package/es/global-link/index.es.js.map +1 -1
  44. package/es/global-link/utils/createTable.es.js.map +1 -1
  45. package/es/link/formats/link.es.js.map +1 -1
  46. package/es/link/index.es.js.map +1 -1
  47. package/es/link/modules/tooltip.es.js.map +1 -1
  48. package/es/mathlive/formats.es.js +3 -32
  49. package/es/mathlive/formats.es.js.map +1 -1
  50. package/es/mathlive/index.es.js +23 -6
  51. package/es/mathlive/index.es.js.map +1 -1
  52. package/es/mathlive/tooltip.es.js +5 -5
  53. package/es/mathlive/tooltip.es.js.map +1 -1
  54. package/es/mention/Mention.es.js.map +1 -1
  55. package/es/mention/MentionLink.es.js.map +1 -1
  56. package/es/mention/constants.es.js.map +1 -1
  57. package/es/quick-menu/index.es.js.map +1 -1
  58. package/es/screenshot/index.es.js.map +1 -1
  59. package/es/soft-break/index.es.js.map +1 -1
  60. package/es/strike/index.es.js.map +1 -1
  61. package/es/syntax/index.es.js.map +1 -1
  62. package/es/table/better-table.es.js.map +1 -1
  63. package/es/table/formats/header.es.js.map +1 -1
  64. package/es/table/formats/list.es.js.map +1 -1
  65. package/es/table/formats/table.es.js.map +1 -1
  66. package/es/table/modules/table-column-tool.es.js.map +1 -1
  67. package/es/table/modules/table-operation-menu.es.js +16 -12
  68. package/es/table/modules/table-operation-menu.es.js.map +1 -1
  69. package/es/table/modules/table-scroll-bar.es.js.map +1 -1
  70. package/es/table/modules/table-selection.es.js.map +1 -1
  71. package/es/table/table-config.es.js.map +1 -1
  72. package/es/table/utils/index.es.js.map +1 -1
  73. package/es/table/utils/node-matchers.es.js +1 -1
  74. package/es/table/utils/node-matchers.es.js.map +1 -1
  75. package/es/toolbar/better-picker.es.js.map +1 -1
  76. package/es/toolbar/index.es.js.map +1 -1
  77. package/es/utils/debounce.es.js.map +1 -1
  78. package/es/utils/method.es.js.map +1 -1
  79. package/es/video/index.es.js.map +1 -1
  80. package/lib/attributors/font-style.cjs.js +1 -1
  81. package/lib/attributors/font-style.cjs.js.map +1 -1
  82. package/lib/attributors/line-height.cjs.js.map +1 -1
  83. package/lib/config/base64-image.cjs.js.map +1 -1
  84. package/lib/config/editor.config.cjs.js.map +1 -1
  85. package/lib/config/editor.utils.cjs.js.map +1 -1
  86. package/lib/config/i18n/en-us.cjs.js.map +1 -1
  87. package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
  88. package/lib/config/icons.config.cjs.js.map +1 -1
  89. package/lib/config/index.cjs.js.map +1 -1
  90. package/lib/counter/index.cjs.js.map +1 -1
  91. package/lib/custom-clipboard.cjs.js.map +1 -1
  92. package/lib/custom-image/BlotFormatter.cjs.js.map +1 -1
  93. package/lib/custom-image/Options.cjs.js.map +1 -1
  94. package/lib/custom-image/actions/Action.cjs.js.map +1 -1
  95. package/lib/custom-image/actions/CustomResizeAction.cjs.js.map +1 -1
  96. package/lib/custom-image/actions/DeleteAction.cjs.js.map +1 -1
  97. package/lib/custom-image/image.cjs.js +1 -1
  98. package/lib/custom-image/image.cjs.js.map +1 -1
  99. package/lib/custom-image/specs/BlotSpec.cjs.js.map +1 -1
  100. package/lib/custom-image/specs/CustomImageSpec.cjs.js.map +1 -1
  101. package/lib/custom-image/specs/ImageSpec.cjs.js.map +1 -1
  102. package/lib/custom-uploader.cjs.js.map +1 -1
  103. package/lib/emoji/emoji-list/people.cjs.js.map +1 -1
  104. package/lib/emoji/emoji-list.cjs.js.map +1 -1
  105. package/lib/emoji/emoji-map.cjs.js.map +1 -1
  106. package/lib/emoji/formats/emoji-blot.cjs.js.map +1 -1
  107. package/lib/emoji/index.cjs.js.map +1 -1
  108. package/lib/emoji/modules/emoji.cjs.js.map +1 -1
  109. package/lib/emoji/modules/toolbar-emoji.cjs.js.map +1 -1
  110. package/lib/emoji/utils.cjs.js.map +1 -1
  111. package/lib/file/formats/file.cjs.js.map +1 -1
  112. package/lib/file/index.cjs.js.map +1 -1
  113. package/lib/file/modules/file-bar.cjs.js.map +1 -1
  114. package/lib/fluent-editor.cjs.js +1 -0
  115. package/lib/fluent-editor.cjs.js.map +1 -1
  116. package/lib/global-link/constants.cjs.js.map +1 -1
  117. package/lib/global-link/formats/customer-widget-link.cjs.js.map +1 -1
  118. package/lib/global-link/formats/doc-link.cjs.js.map +1 -1
  119. package/lib/global-link/formats/wiki-link.cjs.js.map +1 -1
  120. package/lib/global-link/formats/work-item-link.cjs.js.map +1 -1
  121. package/lib/global-link/index.cjs.js.map +1 -1
  122. package/lib/global-link/utils/createTable.cjs.js.map +1 -1
  123. package/lib/link/formats/link.cjs.js.map +1 -1
  124. package/lib/link/index.cjs.js.map +1 -1
  125. package/lib/link/modules/tooltip.cjs.js.map +1 -1
  126. package/lib/mathlive/formats.cjs.js +3 -32
  127. package/lib/mathlive/formats.cjs.js.map +1 -1
  128. package/lib/mathlive/index.cjs.js +22 -5
  129. package/lib/mathlive/index.cjs.js.map +1 -1
  130. package/lib/mathlive/tooltip.cjs.js +6 -6
  131. package/lib/mathlive/tooltip.cjs.js.map +1 -1
  132. package/lib/mention/Mention.cjs.js.map +1 -1
  133. package/lib/mention/MentionLink.cjs.js.map +1 -1
  134. package/lib/mention/constants.cjs.js.map +1 -1
  135. package/lib/quick-menu/index.cjs.js.map +1 -1
  136. package/lib/screenshot/index.cjs.js.map +1 -1
  137. package/lib/soft-break/index.cjs.js.map +1 -1
  138. package/lib/strike/index.cjs.js.map +1 -1
  139. package/lib/syntax/index.cjs.js.map +1 -1
  140. package/lib/table/better-table.cjs.js.map +1 -1
  141. package/lib/table/formats/header.cjs.js.map +1 -1
  142. package/lib/table/formats/list.cjs.js.map +1 -1
  143. package/lib/table/formats/table.cjs.js.map +1 -1
  144. package/lib/table/modules/table-column-tool.cjs.js.map +1 -1
  145. package/lib/table/modules/table-operation-menu.cjs.js +16 -12
  146. package/lib/table/modules/table-operation-menu.cjs.js.map +1 -1
  147. package/lib/table/modules/table-scroll-bar.cjs.js.map +1 -1
  148. package/lib/table/modules/table-selection.cjs.js.map +1 -1
  149. package/lib/table/table-config.cjs.js.map +1 -1
  150. package/lib/table/utils/index.cjs.js.map +1 -1
  151. package/lib/table/utils/node-matchers.cjs.js +1 -1
  152. package/lib/table/utils/node-matchers.cjs.js.map +1 -1
  153. package/lib/toolbar/better-picker.cjs.js.map +1 -1
  154. package/lib/toolbar/index.cjs.js.map +1 -1
  155. package/lib/utils/debounce.cjs.js.map +1 -1
  156. package/lib/utils/method.cjs.js.map +1 -1
  157. package/lib/video/index.cjs.js.map +1 -1
  158. package/package.json +57 -57
  159. package/style.css +3 -37
  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 +3 -3
  166. package/types/config/editor.config.d.ts +225 -225
  167. package/types/config/editor.utils.d.ts +42 -42
  168. package/types/config/i18n/en-us.d.ts +106 -106
  169. package/types/config/i18n/zh-cn.d.ts +106 -106
  170. package/types/config/icons.config.d.ts +34 -34
  171. package/types/config/index.d.ts +8 -8
  172. package/types/config/types/additional-toolbar-item.interface.d.ts +6 -7
  173. package/types/config/types/content-change.interface.d.ts +13 -13
  174. package/types/config/types/content-save.interface.d.ts +6 -6
  175. package/types/config/types/counter-option.interface.d.ts +7 -8
  176. package/types/config/types/editor-config.interface.d.ts +18 -19
  177. package/types/config/types/editor-modules.interface.d.ts +29 -30
  178. package/types/config/types/editor-toolbar.interface.d.ts +3 -4
  179. package/types/config/types/file-operation.interface.d.ts +10 -11
  180. package/types/config/types/focus-change.interface.d.ts +4 -4
  181. package/types/config/types/fullscreen-module.interface.d.ts +4 -4
  182. package/types/config/types/help-panel-item.interface.d.ts +5 -5
  183. package/types/config/types/help-panel-option.interface.d.ts +5 -6
  184. package/types/config/types/image-module.interface.d.ts +3 -3
  185. package/types/config/types/image-upload.interface.d.ts +5 -6
  186. package/types/config/types/index.d.ts +23 -23
  187. package/types/config/types/load-on-demand-module.interface.d.ts +5 -5
  188. package/types/config/types/mention-module.interface.d.ts +8 -8
  189. package/types/config/types/paste-change.interface.d.ts +4 -5
  190. package/types/config/types/quick-menu-module.interface.d.ts +3 -3
  191. package/types/config/types/range.interface.d.ts +4 -4
  192. package/types/config/types/registry-options.interface.d.ts +5 -5
  193. package/types/config/types/selection-change.interface.d.ts +6 -7
  194. package/types/config/types/toolbar-item.interface.d.ts +13 -13
  195. package/types/config/types/type.d.ts +3 -4
  196. package/types/config/types/validate-error.interface.d.ts +13 -13
  197. package/types/counter/index.d.ts +14 -15
  198. package/types/custom-clipboard.d.ts +26 -27
  199. package/types/custom-image/BlotFormatter.d.ts +20 -21
  200. package/types/custom-image/Options.d.ts +36 -36
  201. package/types/custom-image/actions/Action.d.ts +7 -7
  202. package/types/custom-image/actions/CustomResizeAction.d.ts +22 -23
  203. package/types/custom-image/actions/DeleteAction.d.ts +5 -6
  204. package/types/custom-image/image.d.ts +28 -28
  205. package/types/custom-image/specs/BlotSpec.d.ts +10 -11
  206. package/types/custom-image/specs/CustomImageSpec.d.ts +17 -18
  207. package/types/custom-image/specs/ImageSpec.d.ts +8 -9
  208. package/types/custom-uploader.d.ts +28 -29
  209. package/types/emoji/emoji-list/index.d.ts +1 -1
  210. package/types/emoji/emoji-list/people.d.ts +1 -1
  211. package/types/emoji/emoji-list.d.ts +2 -2
  212. package/types/emoji/emoji-map.d.ts +2 -2
  213. package/types/emoji/formats/emoji-blot.d.ts +13 -13
  214. package/types/emoji/index.d.ts +6 -7
  215. package/types/emoji/modules/emoji.d.ts +38 -38
  216. package/types/emoji/modules/toolbar-emoji.d.ts +8 -8
  217. package/types/emoji/utils.d.ts +1 -1
  218. package/types/file/formats/file.d.ts +15 -15
  219. package/types/file/index.d.ts +9 -10
  220. package/types/file/modules/file-bar.d.ts +14 -14
  221. package/types/fluent-editor.d.ts +12 -13
  222. package/types/format-painter/index.d.ts +13 -14
  223. package/types/fullscreen/handler.d.ts +1 -2
  224. package/types/global-link/constants.d.ts +3 -3
  225. package/types/global-link/formats/customer-widget-link.d.ts +14 -14
  226. package/types/global-link/formats/doc-link.d.ts +17 -17
  227. package/types/global-link/formats/wiki-link.d.ts +16 -16
  228. package/types/global-link/formats/work-item-link.d.ts +16 -16
  229. package/types/global-link/global-link-panel.d.ts +17 -18
  230. package/types/global-link/index.d.ts +18 -18
  231. package/types/global-link/utils/createTable.d.ts +1 -1
  232. package/types/index.d.ts +2 -3
  233. package/types/link/formats/link.d.ts +14 -15
  234. package/types/link/index.d.ts +6 -6
  235. package/types/link/modules/tooltip.d.ts +31 -32
  236. package/types/mathlive/formats.d.ts +20 -26
  237. package/types/mathlive/index.d.ts +7 -7
  238. package/types/mathlive/tooltip.d.ts +16 -15
  239. package/types/mention/Mention.d.ts +53 -54
  240. package/types/mention/MentionLink.d.ts +14 -15
  241. package/types/mention/constants.d.ts +3 -3
  242. package/types/quick-menu/index.d.ts +20 -21
  243. package/types/screenshot/index.d.ts +17 -18
  244. package/types/soft-break/index.d.ts +14 -14
  245. package/types/strike/index.d.ts +7 -7
  246. package/types/syntax/index.d.ts +12 -13
  247. package/types/table/better-table.d.ts +24 -25
  248. package/types/table/formats/header.d.ts +22 -22
  249. package/types/table/formats/list.d.ts +34 -34
  250. package/types/table/formats/table.d.ts +145 -146
  251. package/types/table/modules/table-column-tool.d.ts +23 -23
  252. package/types/table/modules/table-operation-menu.d.ts +38 -38
  253. package/types/table/modules/table-scroll-bar.d.ts +33 -33
  254. package/types/table/modules/table-selection.d.ts +37 -37
  255. package/types/table/table-config.d.ts +38 -38
  256. package/types/table/utils/index.d.ts +17 -17
  257. package/types/table/utils/node-matchers.d.ts +9 -9
  258. package/types/toolbar/better-picker.d.ts +1 -1
  259. package/types/toolbar/index.d.ts +7 -8
  260. package/types/toolbar/toolbar-tip.d.ts +6 -7
  261. package/types/utils/debounce.d.ts +6 -6
  262. package/types/utils/image.d.ts +1 -1
  263. package/types/utils/is.d.ts +2 -2
  264. package/types/utils/method.d.ts +6 -6
  265. package/types/utils/scroll-lock.d.ts +6 -6
  266. package/types/video/index.d.ts +14 -15
@@ -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
+ }
@@ -1,38 +1,38 @@
1
- export default class TableOperationMenu {
2
- tableSelection: any;
3
- table: any;
4
- quill: any;
5
- options: any;
6
- menuItems: any;
7
- tableColumnTool: any;
8
- tableScrollBar: any;
9
- boundary: any;
10
- selectedTds: any;
11
- destroyHandler: any;
12
- columnToolCells: any;
13
- colorSubTitle: any;
14
- cellColors: any;
15
- domNode: any;
16
- DEFAULT_COLOR_SUBTITLE: string;
17
- DEFAULT_MENU: Record<string, {
18
- text: string;
19
- handler: () => void;
20
- }>;
21
- constructor(params: any, quill: any, options: any);
22
- setDefaultMenu(): void;
23
- mount(): void;
24
- destroy(): any;
25
- menuInitial({ cell, left, top }: {
26
- cell: any;
27
- left: any;
28
- top: any;
29
- }): void;
30
- colorsItemCreator(colors: any): HTMLDivElement;
31
- menuItemCreator({ text }: {
32
- text: any;
33
- }): HTMLDivElement;
34
- onCopy(operation: any): void;
35
- createVirtualTable(selectedTds: any, _operation: any): any;
36
- setCopyRange(selectedNodes: any): void;
37
- groupTableCell(selectedTds: any): any[];
38
- }
1
+ export default class TableOperationMenu {
2
+ tableSelection: any;
3
+ table: any;
4
+ quill: any;
5
+ options: any;
6
+ menuItems: any;
7
+ tableColumnTool: any;
8
+ tableScrollBar: any;
9
+ boundary: any;
10
+ selectedTds: any;
11
+ destroyHandler: any;
12
+ columnToolCells: any;
13
+ colorSubTitle: any;
14
+ cellColors: any;
15
+ domNode: any;
16
+ DEFAULT_COLOR_SUBTITLE: string;
17
+ DEFAULT_MENU: Record<string, {
18
+ text: string;
19
+ handler: () => void;
20
+ }>;
21
+ constructor(params: any, quill: any, options: any);
22
+ setDefaultMenu(): void;
23
+ mount(): void;
24
+ destroy(): any;
25
+ menuInitial({ cell, left, top }: {
26
+ cell: any;
27
+ left: any;
28
+ top: any;
29
+ }): void;
30
+ colorsItemCreator(colors: any): HTMLDivElement;
31
+ menuItemCreator({ text }: {
32
+ text: any;
33
+ }): HTMLDivElement;
34
+ onCopy(operation: any): Promise<void>;
35
+ createVirtualTable(selectedTds: any, _operation: any): any;
36
+ setCopyRange(selectedNodes: any): void;
37
+ groupTableCell(selectedTds: any): any[];
38
+ }
@@ -1,33 +1,33 @@
1
- export default class TableScrollBar {
2
- table: any;
3
- quill: any;
4
- modulesContainer: any;
5
- domNode: any;
6
- oldRootScrollTop: any;
7
- prev: number;
8
- columnToolDomNode: any;
9
- columnCtrlPanel: any;
10
- leftMask: any;
11
- tableViewRect: any;
12
- tableRect: any;
13
- containerRect: any;
14
- subscriber: any;
15
- tableMoveDistance: number;
16
- maxBarLeft: number;
17
- scrollBar: Element;
18
- isTableOverflow: boolean;
19
- constructor(table: any, quill: any, dom: any);
20
- handleQuillRootScroll(): void;
21
- setScrollBarToBottom(): void;
22
- resetTableHeight(table: any): void;
23
- setScrollBarMove(pos: any, isMouse: any): void;
24
- handleScrollBarMouseDown(mouseDownEvent: any): void;
25
- handleScrollBarMouseup(event: any): void;
26
- handleWheel(event: any): void;
27
- showMask(distance: any): void;
28
- getLimitedDistance(distance: any): any;
29
- updateScrollBar(): void;
30
- createScrollBar(): void;
31
- destroyScrollBar(): void;
32
- destroy(): void;
33
- }
1
+ export default class TableScrollBar {
2
+ table: any;
3
+ quill: any;
4
+ modulesContainer: any;
5
+ domNode: any;
6
+ oldRootScrollTop: any;
7
+ prev: number;
8
+ columnToolDomNode: any;
9
+ columnCtrlPanel: any;
10
+ leftMask: any;
11
+ tableViewRect: any;
12
+ tableRect: any;
13
+ containerRect: any;
14
+ subscriber: any;
15
+ tableMoveDistance: number;
16
+ maxBarLeft: number;
17
+ scrollBar: Element;
18
+ isTableOverflow: boolean;
19
+ constructor(table: any, quill: any, dom: any);
20
+ handleQuillRootScroll(): void;
21
+ setScrollBarToBottom(): void;
22
+ resetTableHeight(table: any): void;
23
+ setScrollBarMove(pos: any, isMouse: any): void;
24
+ handleScrollBarMouseDown(mouseDownEvent: any): void;
25
+ handleScrollBarMouseup(event: any): void;
26
+ handleWheel(event: any): void;
27
+ showMask(distance: any): void;
28
+ getLimitedDistance(distance: any): any;
29
+ updateScrollBar(): void;
30
+ createScrollBar(): void;
31
+ destroyScrollBar(): void;
32
+ destroy(): void;
33
+ }
@@ -1,37 +1,37 @@
1
- export default class TableSelection {
2
- table: any;
3
- quill: any;
4
- modulesContainer: any;
5
- parent: any;
6
- boundary: any;
7
- selectedTds: any[];
8
- dragging: boolean;
9
- preSelectedTable: any;
10
- oldRootScrollTop: any;
11
- selectingHandler: any;
12
- tdEditHandler: any;
13
- tdResizeHandler: any;
14
- endTd: any;
15
- startTd: any;
16
- editTd: any;
17
- left: any;
18
- bottom: any;
19
- top: any;
20
- right: any;
21
- constructor(table: any, quill: any, dom: any);
22
- handleQuillRootScroll(): void;
23
- isEditorHasScrollBar(): void;
24
- helpLinesInitial(): void;
25
- mouseDownHandler(e: any): void;
26
- drawSelection(self: any, end: any): void;
27
- setTdEditable(e: any): void;
28
- resizeTd(): void;
29
- resetTd(e: any): void;
30
- correctBoundary(): void;
31
- computeSelectedTds(): any;
32
- repositionHelpLines(): void;
33
- refreshHelpLinesPosition(): void;
34
- destroy(): any;
35
- setSelection(startRect: any, endRect: any): void;
36
- clearSelection(): void;
37
- }
1
+ export default class TableSelection {
2
+ table: any;
3
+ quill: any;
4
+ modulesContainer: any;
5
+ parent: any;
6
+ boundary: any;
7
+ selectedTds: any[];
8
+ dragging: boolean;
9
+ preSelectedTable: any;
10
+ oldRootScrollTop: any;
11
+ selectingHandler: any;
12
+ tdEditHandler: any;
13
+ tdResizeHandler: any;
14
+ endTd: any;
15
+ startTd: any;
16
+ editTd: any;
17
+ left: any;
18
+ bottom: any;
19
+ top: any;
20
+ right: any;
21
+ constructor(table: any, quill: any, dom: any);
22
+ handleQuillRootScroll(): void;
23
+ isEditorHasScrollBar(): void;
24
+ helpLinesInitial(): void;
25
+ mouseDownHandler(e: any): void;
26
+ drawSelection(self: any, end: any): void;
27
+ setTdEditable(e: any): void;
28
+ resizeTd(): void;
29
+ resetTd(e: any): void;
30
+ correctBoundary(): void;
31
+ computeSelectedTds(): any;
32
+ repositionHelpLines(): void;
33
+ refreshHelpLinesPosition(): void;
34
+ destroy(): any;
35
+ setSelection(startRect: any, endRect: any): void;
36
+ clearSelection(): void;
37
+ }
@@ -1,38 +1,38 @@
1
- export declare const TABLE_CELL_LINE_CLASS = "qlrte__better-table-cell-line";
2
- export declare const ROW_TOOL_CLASS = "qlrte__row-tool";
3
- export declare const ROW_TOOL_CELL_CLASS = "qlrte__row-tool-cell";
4
- export declare const ROW_TOOL_CELL_HOLDER_CLASS = "qlrte__row-tool-cell-holder";
5
- export declare const COL_TOOL_CLASS = "qlrte__col-tool";
6
- export declare const COL_TOOL_CELL_CLASS = "qlrte__col-tool-cell";
7
- export declare const COL_TOOL_CELL_HOLDER_CLASS = "qlrte__col-tool-cell-holder";
8
- export declare const SELECT_LINE_CLASS = "qlrte__selection-line";
9
- export declare const OPERATE_MENU_CLASS = "qlrte__op-menu";
10
- export declare const OPERATE_MENU_ITEM_CLASS = "qlrte__op-menu-item";
11
- export declare const OPERATE_MENU_ICON_CLASS = "qlrte__op-menu-icon";
12
- export declare const OPERATE_MENU_ICON_PREFIX_CLASS = "qlrte__op-menu-icon-prefix";
13
- export declare const OPERATE_MENU_TEXT_CLASS = "qlrte__op-menu-text";
14
- export declare const OPERATE_MENU_DIVIDING_CLASS = "qlrte__op-menu-dividing";
15
- export declare const OPERATE_MENU_SUBTITLE_CLASS = "qlrte__op-menu-subtitle";
16
- export declare const OPERATE_MENU_COLORPICKER_CLASS = "qlrte__op-menu-color-picker";
17
- export declare const OPERATE_MENU_COLORPICKER_ITEM_CLASS = "qlrte__op-menu-color-picker-item";
18
- export declare const COL_ATTRIBUTES: string[];
19
- export declare const COL_DEFAULT: {
20
- width: number;
21
- };
22
- export declare const CELL_IDENTITY_KEYS: string[];
23
- export declare const CELL_ATTRIBUTES: string[];
24
- export declare const CELL_DEFAULT: {
25
- rowspan: number;
26
- colspan: number;
27
- };
28
- export declare const ERROR_LIMIT = 5;
29
- export declare const SCROLL_BAR_PANEL_HEIGHT = 32;
30
- export declare const ROW_TOOL_WIDTH = 16;
31
- export declare const COL_TOOL_HEIGHT = 16;
32
- export declare const CELL_MIN_WIDTH = 50;
33
- export declare const CELL_MIN_HEIGHT = 29;
34
- export declare const PRIMARY_COLOR: string[];
35
- export declare const MENU_ITEM_HEIGHT = 40;
36
- export declare const MENU_MIN_HEIGHT = 150;
37
- export declare const MENU_WIDTH = 205;
38
- export declare const LINE_POSITIONS: string[];
1
+ export declare const TABLE_CELL_LINE_CLASS = "qlrte__better-table-cell-line";
2
+ export declare const ROW_TOOL_CLASS = "qlrte__row-tool";
3
+ export declare const ROW_TOOL_CELL_CLASS = "qlrte__row-tool-cell";
4
+ export declare const ROW_TOOL_CELL_HOLDER_CLASS = "qlrte__row-tool-cell-holder";
5
+ export declare const COL_TOOL_CLASS = "qlrte__col-tool";
6
+ export declare const COL_TOOL_CELL_CLASS = "qlrte__col-tool-cell";
7
+ export declare const COL_TOOL_CELL_HOLDER_CLASS = "qlrte__col-tool-cell-holder";
8
+ export declare const SELECT_LINE_CLASS = "qlrte__selection-line";
9
+ export declare const OPERATE_MENU_CLASS = "qlrte__op-menu";
10
+ export declare const OPERATE_MENU_ITEM_CLASS = "qlrte__op-menu-item";
11
+ export declare const OPERATE_MENU_ICON_CLASS = "qlrte__op-menu-icon";
12
+ export declare const OPERATE_MENU_ICON_PREFIX_CLASS = "qlrte__op-menu-icon-prefix";
13
+ export declare const OPERATE_MENU_TEXT_CLASS = "qlrte__op-menu-text";
14
+ export declare const OPERATE_MENU_DIVIDING_CLASS = "qlrte__op-menu-dividing";
15
+ export declare const OPERATE_MENU_SUBTITLE_CLASS = "qlrte__op-menu-subtitle";
16
+ export declare const OPERATE_MENU_COLORPICKER_CLASS = "qlrte__op-menu-color-picker";
17
+ export declare const OPERATE_MENU_COLORPICKER_ITEM_CLASS = "qlrte__op-menu-color-picker-item";
18
+ export declare const COL_ATTRIBUTES: string[];
19
+ export declare const COL_DEFAULT: {
20
+ width: number;
21
+ };
22
+ export declare const CELL_IDENTITY_KEYS: string[];
23
+ export declare const CELL_ATTRIBUTES: string[];
24
+ export declare const CELL_DEFAULT: {
25
+ rowspan: number;
26
+ colspan: number;
27
+ };
28
+ export declare const ERROR_LIMIT = 5;
29
+ export declare const SCROLL_BAR_PANEL_HEIGHT = 32;
30
+ export declare const ROW_TOOL_WIDTH = 16;
31
+ export declare const COL_TOOL_HEIGHT = 16;
32
+ export declare const CELL_MIN_WIDTH = 50;
33
+ export declare const CELL_MIN_HEIGHT = 29;
34
+ export declare const PRIMARY_COLOR: string[];
35
+ export declare const MENU_ITEM_HEIGHT = 40;
36
+ export declare const MENU_MIN_HEIGHT = 150;
37
+ export declare const MENU_WIDTH = 205;
38
+ export declare const LINE_POSITIONS: string[];
@@ -1,17 +1,17 @@
1
- export declare function css(domNode: any, rules: any): void;
2
- /**
3
- * getRelativeRect
4
- * @param targetRect rect data for target element {Object}
5
- * @param container container element {Element}
6
- * @return an object with rect data {Object}
7
- */
8
- export declare function getRelativeRect(targetRect: any, container: any): {
9
- x: number;
10
- y: number;
11
- x1: any;
12
- y1: any;
13
- width: any;
14
- height: any;
15
- };
16
- export declare const elementRemove: (node: any) => void;
17
- export declare const arrayFrom: (arrayLike: any, mapFn?: any, thisArg?: any) => any[];
1
+ export declare function css(domNode: any, rules: any): void;
2
+ /**
3
+ * getRelativeRect
4
+ * @param targetRect rect data for target element {Object}
5
+ * @param container container element {Element}
6
+ * @return an object with rect data {Object}
7
+ */
8
+ export declare function getRelativeRect(targetRect: any, container: any): {
9
+ x: number;
10
+ y: number;
11
+ x1: any;
12
+ y1: any;
13
+ width: any;
14
+ height: any;
15
+ };
16
+ export declare const elementRemove: (node: any) => void;
17
+ export declare const arrayFrom: (arrayLike: any, mapFn?: any, thisArg?: any) => any[];
@@ -1,9 +1,9 @@
1
- export declare function matchTableCell(node: any, delta: any): any;
2
- export declare function matchTableHeader(node: any, delta: any, _scroll: any): any;
3
- export declare function matchTable(node: any, delta: any, scroll: any): any;
4
- export declare function matchTableRow(_node: any, delta: any): any;
5
- export declare function matchHeader(node: any, delta: any): any;
6
- export declare function matchList(node: any, delta: any): any;
7
- export declare function matchInline(node: any, delta: any, scroll: any): any;
8
- export declare function matchWordShapeImage(node: any, delta: any): any;
9
- export declare function matchMentionLink(node: any, delta: any, scroll: any): any;
1
+ export declare function matchTableCell(node: any, delta: any): any;
2
+ export declare function matchTableHeader(node: any, delta: any, _scroll: any): any;
3
+ export declare function matchTable(node: any, delta: any, scroll: any): any;
4
+ export declare function matchTableRow(_node: any, delta: any): any;
5
+ export declare function matchHeader(node: any, delta: any): any;
6
+ export declare function matchList(node: any, delta: any): any;
7
+ export declare function matchInline(node: any, delta: any, scroll: any): any;
8
+ export declare function matchWordShapeImage(node: any, delta: any): any;
9
+ export declare function matchMentionLink(node: any, delta: any, scroll: any): any;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,9 +1,8 @@
1
1
  import { default as TypeToolbar } from 'quill/modules/toolbar';
2
-
3
- declare const Toolbar: typeof TypeToolbar;
4
- declare class BetterToolbar extends Toolbar {
5
- update(range: any): void;
6
- attach(input: HTMLElement): void;
7
- }
8
- export default BetterToolbar;
9
- export * from './toolbar-tip';
2
+ declare const Toolbar: typeof TypeToolbar;
3
+ declare class BetterToolbar extends Toolbar {
4
+ update(range: any): void;
5
+ attach(input: HTMLElement): void;
6
+ }
7
+ export default BetterToolbar;
8
+ export * from './toolbar-tip';
@@ -1,9 +1,8 @@
1
1
  import { QuillToolbarTipOptions, default as QuillToolbarTip } from 'quill-toolbar-tip';
2
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
- }
3
+ export declare class ToolbarTip extends QuillToolbarTip {
4
+ quill: FluentEditor;
5
+ static moduleName: string;
6
+ constructor(quill: FluentEditor, options: Partial<QuillToolbarTipOptions>);
7
+ resolveOptions(options: Partial<QuillToolbarTipOptions>): QuillToolbarTipOptions;
8
+ }
@@ -1,6 +1,6 @@
1
- export declare function debounce(func: any, wait: any, options?: any): {
2
- (...args: any[]): any;
3
- cancel: () => void;
4
- flush: () => any;
5
- pending: () => boolean;
6
- };
1
+ export declare function debounce(func: any, wait: any, options?: any): {
2
+ (...args: any[]): any;
3
+ cancel: () => void;
4
+ flush: () => any;
5
+ pending: () => boolean;
6
+ };
@@ -1 +1 @@
1
- export declare function imgToBase64(imageUrl: string): Promise<string>;
1
+ export declare function imgToBase64(imageUrl: string): Promise<string>;
@@ -1,2 +1,2 @@
1
- export declare function isObject(value: any): value is object;
2
- export declare const isUndefined: (val: unknown) => val is undefined;
1
+ export declare function isObject(value: any): value is object;
2
+ export declare const isUndefined: (val: unknown) => val is undefined;
@@ -1,6 +1,6 @@
1
- /** Used as a reference to the global object. */
2
- export declare const root: any;
3
- export declare function compareArray(arr1: any, arr2: any): boolean;
4
- export declare function compareObject(object1: any, object2: any): boolean;
5
- export declare function compare(value: any, other: any): boolean;
6
- export declare function unshiftString(str: string, targetLength: number, addString: string): string;
1
+ /** Used as a reference to the global object. */
2
+ export declare const root: any;
3
+ export declare function compareArray(arr1: any, arr2: any): boolean;
4
+ export declare function compareObject(object1: any, object2: any): boolean;
5
+ export declare function compare(value: any, other: any): boolean;
6
+ export declare function unshiftString(str: string, targetLength: number, addString: string): string;
@@ -1,6 +1,6 @@
1
- export declare function getScrollBarWidth({ target }?: {
2
- target?: HTMLElement;
3
- }): number;
4
- export declare function lockScroll({ target }?: {
5
- target?: HTMLElement;
6
- }): () => void;
1
+ export declare function getScrollBarWidth({ target }?: {
2
+ target?: HTMLElement;
3
+ }): number;
4
+ export declare function lockScroll({ target }?: {
5
+ target?: HTMLElement;
6
+ }): () => void;
@@ -1,16 +1,15 @@
1
1
  import { Parchment as TypeParchment } from 'quill';
2
-
3
- declare const BlockEmbed: TypeParchment.BlotConstructor;
4
- declare class Video extends BlockEmbed {
5
- static blotName: string;
6
- static tagName: string;
7
- static SANITIZED_URL: string;
8
- static PROTOCOL_WHITELIST: string[];
9
- static className: string;
10
- statics: any;
11
- domNode: any;
12
- static sanitize(url: any): any;
13
- static create(value: any): HTMLElement;
14
- static value(domNode: any): any;
15
- }
16
- export default Video;
2
+ declare const BlockEmbed: TypeParchment.BlotConstructor;
3
+ declare class Video extends BlockEmbed {
4
+ static blotName: string;
5
+ static tagName: string;
6
+ static SANITIZED_URL: string;
7
+ static PROTOCOL_WHITELIST: string[];
8
+ static className: string;
9
+ statics: any;
10
+ domNode: any;
11
+ static sanitize(url: any): any;
12
+ static create(value: any): HTMLElement;
13
+ static value(domNode: any): any;
14
+ }
15
+ export default Video;