@opentiny/fluent-editor 4.0.0-alpha.12 → 4.0.0-alpha.14

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 (338) hide show
  1. package/README.md +88 -88
  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/emoji.es.js.map +1 -1
  12. package/es/formats/soft-break.es.js.map +1 -1
  13. package/es/formats/strike.es.js.map +1 -1
  14. package/es/formats/video.es.js.map +1 -1
  15. package/es/modules/ai/constants.es.js.map +1 -1
  16. package/es/modules/ai/icons.es.js.map +1 -1
  17. package/es/modules/ai/index.es.js.map +1 -1
  18. package/es/modules/collaborative-editing/awareness/awareness.es.js.map +1 -1
  19. package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js.map +1 -1
  20. package/es/modules/collaborative-editing/collaborative-editing.es.js.map +1 -1
  21. package/es/modules/collaborative-editing/module.es.js.map +1 -1
  22. package/es/modules/collaborative-editing/provider/providerRegistry.es.js.map +1 -1
  23. package/es/modules/collaborative-editing/provider/webrtc.es.js.map +1 -1
  24. package/es/modules/collaborative-editing/provider/websocket.es.js.map +1 -1
  25. package/es/modules/counter.es.js.map +1 -1
  26. package/es/modules/custom-clipboard.es.js.map +1 -1
  27. package/es/modules/custom-image/actions/action.es.js.map +1 -1
  28. package/es/modules/custom-image/actions/custom-resize-action.es.js.map +1 -1
  29. package/es/modules/custom-image/actions/delete-action.es.js.map +1 -1
  30. package/es/modules/custom-image/blot-formatter.es.js +1 -1
  31. package/es/modules/custom-image/blot-formatter.es.js.map +1 -1
  32. package/es/modules/custom-image/image.es.js.map +1 -1
  33. package/es/modules/custom-image/options.es.js.map +1 -1
  34. package/es/modules/custom-image/specs/blot-spec.es.js.map +1 -1
  35. package/es/modules/custom-image/specs/custom-image-spec.es.js.map +1 -1
  36. package/es/modules/custom-image/specs/image-spec.es.js.map +1 -1
  37. package/es/modules/divider.es.js.map +1 -1
  38. package/es/modules/emoji.es.js +1 -1
  39. package/es/modules/emoji.es.js.map +1 -1
  40. package/es/modules/file/formats/file.es.js.map +1 -1
  41. package/es/modules/file/modules/file-bar.es.js.map +1 -1
  42. package/es/modules/file/modules/file-module.es.js.map +1 -1
  43. package/es/modules/flow-chart/config-utils.es.js.map +1 -1
  44. package/es/modules/flow-chart/formats/flow-chart-blot.es.js.map +1 -1
  45. package/es/modules/flow-chart/i18n/en-us.es.js.map +1 -1
  46. package/es/modules/flow-chart/i18n/index.es.js.map +1 -1
  47. package/es/modules/flow-chart/i18n/zh-cn.es.js.map +1 -1
  48. package/es/modules/flow-chart/icons.es.js.map +1 -1
  49. package/es/modules/flow-chart/index.es.js.map +1 -1
  50. package/es/modules/flow-chart/modules/context-menu.es.js.map +1 -1
  51. package/es/modules/flow-chart/modules/control-panel.es.js.map +1 -1
  52. package/es/modules/flow-chart/modules/custom-resize-action.es.js.map +1 -1
  53. package/es/modules/link/formats/link.es.js.map +1 -1
  54. package/es/modules/link/modules/tooltip.es.js.map +1 -1
  55. package/es/modules/mathlive/formats.es.js.map +1 -1
  56. package/es/modules/mathlive/tooltip.es.js.map +1 -1
  57. package/es/modules/mention/constants.es.js.map +1 -1
  58. package/es/modules/mention/mention-link.es.js.map +1 -1
  59. package/es/modules/mention/mention.es.js.map +1 -1
  60. package/es/modules/mind-map/config-utils.es.js.map +1 -1
  61. package/es/modules/mind-map/formats/mind-map-blot.es.js.map +1 -1
  62. package/es/modules/mind-map/i18n/en-us.es.js.map +1 -1
  63. package/es/modules/mind-map/i18n/index.es.js.map +1 -1
  64. package/es/modules/mind-map/i18n/zh-cn.es.js.map +1 -1
  65. package/es/modules/mind-map/icons.es.js.map +1 -1
  66. package/es/modules/mind-map/index.es.js.map +1 -1
  67. package/es/modules/mind-map/modules/context-menu.es.js.map +1 -1
  68. package/es/modules/mind-map/modules/control-panel.es.js +2 -2
  69. package/es/modules/mind-map/modules/control-panel.es.js.map +1 -1
  70. package/es/modules/mind-map/modules/custom-resize-action.es.js.map +1 -1
  71. package/es/modules/syntax.es.js.map +1 -1
  72. package/es/modules/toolbar/better-picker.es.js.map +1 -1
  73. package/es/themes/snow.es.js.map +1 -1
  74. package/es/tools/screenshot.es.js.map +1 -1
  75. package/es/ui/icons.config.es.js.map +1 -1
  76. package/es/ui/icons.es.js.map +1 -1
  77. package/es/utils/debounce.es.js.map +1 -1
  78. package/es/utils/merge.es.js +27 -0
  79. package/es/utils/merge.es.js.map +1 -0
  80. package/es/utils/method.es.js.map +1 -1
  81. package/lib/attributors/line-height.cjs.js.map +1 -1
  82. package/lib/config/base64-image.cjs.js.map +1 -1
  83. package/lib/config/editor.config.cjs.js.map +1 -1
  84. package/lib/config/editor.utils.cjs.js.map +1 -1
  85. package/lib/config/i18n/en-us.cjs.js.map +1 -1
  86. package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
  87. package/lib/config/index.cjs.js.map +1 -1
  88. package/lib/core/fluent-editor.cjs.js.map +1 -1
  89. package/lib/fluent-editor.cjs.js.map +1 -1
  90. package/lib/formats/emoji.cjs.js.map +1 -1
  91. package/lib/formats/soft-break.cjs.js.map +1 -1
  92. package/lib/formats/strike.cjs.js.map +1 -1
  93. package/lib/formats/video.cjs.js.map +1 -1
  94. package/lib/modules/ai/constants.cjs.js.map +1 -1
  95. package/lib/modules/ai/icons.cjs.js.map +1 -1
  96. package/lib/modules/ai/index.cjs.js.map +1 -1
  97. package/lib/modules/collaborative-editing/awareness/awareness.cjs.js.map +1 -1
  98. package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js.map +1 -1
  99. package/lib/modules/collaborative-editing/collaborative-editing.cjs.js.map +1 -1
  100. package/lib/modules/collaborative-editing/module.cjs.js.map +1 -1
  101. package/lib/modules/collaborative-editing/provider/providerRegistry.cjs.js.map +1 -1
  102. package/lib/modules/collaborative-editing/provider/webrtc.cjs.js.map +1 -1
  103. package/lib/modules/collaborative-editing/provider/websocket.cjs.js.map +1 -1
  104. package/lib/modules/counter.cjs.js.map +1 -1
  105. package/lib/modules/custom-clipboard.cjs.js.map +1 -1
  106. package/lib/modules/custom-image/actions/action.cjs.js.map +1 -1
  107. package/lib/modules/custom-image/actions/custom-resize-action.cjs.js.map +1 -1
  108. package/lib/modules/custom-image/actions/delete-action.cjs.js.map +1 -1
  109. package/lib/modules/custom-image/blot-formatter.cjs.js +2 -2
  110. package/lib/modules/custom-image/blot-formatter.cjs.js.map +1 -1
  111. package/lib/modules/custom-image/image.cjs.js.map +1 -1
  112. package/lib/modules/custom-image/options.cjs.js.map +1 -1
  113. package/lib/modules/custom-image/specs/blot-spec.cjs.js.map +1 -1
  114. package/lib/modules/custom-image/specs/custom-image-spec.cjs.js.map +1 -1
  115. package/lib/modules/custom-image/specs/image-spec.cjs.js.map +1 -1
  116. package/lib/modules/divider.cjs.js.map +1 -1
  117. package/lib/modules/emoji.cjs.js +2 -2
  118. package/lib/modules/emoji.cjs.js.map +1 -1
  119. package/lib/modules/file/formats/file.cjs.js.map +1 -1
  120. package/lib/modules/file/modules/file-bar.cjs.js.map +1 -1
  121. package/lib/modules/file/modules/file-module.cjs.js.map +1 -1
  122. package/lib/modules/flow-chart/config-utils.cjs.js.map +1 -1
  123. package/lib/modules/flow-chart/formats/flow-chart-blot.cjs.js.map +1 -1
  124. package/lib/modules/flow-chart/i18n/en-us.cjs.js.map +1 -1
  125. package/lib/modules/flow-chart/i18n/index.cjs.js.map +1 -1
  126. package/lib/modules/flow-chart/i18n/zh-cn.cjs.js.map +1 -1
  127. package/lib/modules/flow-chart/icons.cjs.js.map +1 -1
  128. package/lib/modules/flow-chart/index.cjs.js.map +1 -1
  129. package/lib/modules/flow-chart/modules/context-menu.cjs.js.map +1 -1
  130. package/lib/modules/flow-chart/modules/control-panel.cjs.js.map +1 -1
  131. package/lib/modules/flow-chart/modules/custom-resize-action.cjs.js.map +1 -1
  132. package/lib/modules/link/formats/link.cjs.js.map +1 -1
  133. package/lib/modules/link/modules/tooltip.cjs.js.map +1 -1
  134. package/lib/modules/mathlive/formats.cjs.js.map +1 -1
  135. package/lib/modules/mathlive/tooltip.cjs.js.map +1 -1
  136. package/lib/modules/mention/constants.cjs.js.map +1 -1
  137. package/lib/modules/mention/mention-link.cjs.js.map +1 -1
  138. package/lib/modules/mention/mention.cjs.js.map +1 -1
  139. package/lib/modules/mind-map/config-utils.cjs.js.map +1 -1
  140. package/lib/modules/mind-map/formats/mind-map-blot.cjs.js.map +1 -1
  141. package/lib/modules/mind-map/i18n/en-us.cjs.js.map +1 -1
  142. package/lib/modules/mind-map/i18n/index.cjs.js.map +1 -1
  143. package/lib/modules/mind-map/i18n/zh-cn.cjs.js.map +1 -1
  144. package/lib/modules/mind-map/icons.cjs.js.map +1 -1
  145. package/lib/modules/mind-map/index.cjs.js.map +1 -1
  146. package/lib/modules/mind-map/modules/context-menu.cjs.js.map +1 -1
  147. package/lib/modules/mind-map/modules/control-panel.cjs.js +2 -2
  148. package/lib/modules/mind-map/modules/control-panel.cjs.js.map +1 -1
  149. package/lib/modules/mind-map/modules/custom-resize-action.cjs.js.map +1 -1
  150. package/lib/modules/syntax.cjs.js.map +1 -1
  151. package/lib/modules/toolbar/better-picker.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/merge.cjs.js +27 -0
  158. package/lib/utils/merge.cjs.js.map +1 -0
  159. package/lib/utils/method.cjs.js.map +1 -1
  160. package/package.json +13 -3
  161. package/patches/quill@2.0.3.patch +33 -33
  162. package/scripts/apply-patches.cjs +248 -248
  163. package/types/attributors/font-size.d.ts +1 -1
  164. package/types/attributors/font-style.d.ts +1 -1
  165. package/types/attributors/index.d.ts +4 -4
  166. package/types/attributors/line-height.d.ts +1 -1
  167. package/types/attributors/text-indent.d.ts +1 -1
  168. package/types/config/base64-image.d.ts +2 -2
  169. package/types/config/editor.config.d.ts +11 -11
  170. package/types/config/editor.utils.d.ts +40 -40
  171. package/types/config/i18n/en-us.d.ts +125 -125
  172. package/types/config/i18n/zh-cn.d.ts +125 -125
  173. package/types/config/index.d.ts +7 -7
  174. package/types/config/types/additional-toolbar-item.interface.d.ts +8 -0
  175. package/types/config/types/content-change.interface.d.ts +13 -0
  176. package/types/config/types/content-save.interface.d.ts +6 -0
  177. package/types/config/types/counter-option.interface.d.ts +9 -0
  178. package/types/config/types/editor-config.interface.d.ts +12 -11
  179. package/types/config/types/editor-modules.interface.d.ts +39 -38
  180. package/types/config/types/editor-toolbar.interface.d.ts +6 -0
  181. package/types/config/types/file-operation.interface.d.ts +12 -0
  182. package/types/config/types/focus-change.interface.d.ts +4 -0
  183. package/types/config/types/fullscreen-module.interface.d.ts +4 -0
  184. package/types/config/types/help-panel-item.interface.d.ts +5 -0
  185. package/types/config/types/help-panel-option.interface.d.ts +7 -0
  186. package/types/config/types/image-module.interface.d.ts +3 -0
  187. package/types/config/types/image-upload.interface.d.ts +7 -0
  188. package/types/config/types/index.d.ts +3 -3
  189. package/types/config/types/load-on-demand-module.interface.d.ts +5 -0
  190. package/types/config/types/mention-module.interface.d.ts +8 -0
  191. package/types/config/types/paste-change.interface.d.ts +6 -0
  192. package/types/config/types/quick-menu-module.interface.d.ts +3 -0
  193. package/types/config/types/range.interface.d.ts +4 -0
  194. package/types/config/types/registry-options.interface.d.ts +5 -0
  195. package/types/config/types/selection-change.interface.d.ts +8 -0
  196. package/types/config/types/toolbar-item.interface.d.ts +13 -0
  197. package/types/config/types/type.d.ts +2 -2
  198. package/types/config/types/validate-error.interface.d.ts +13 -0
  199. package/types/core/fluent-editor.d.ts +11 -10
  200. package/types/fluent-editor.d.ts +2 -1
  201. package/types/formats/emoji.d.ts +8 -7
  202. package/types/formats/index.d.ts +4 -4
  203. package/types/formats/soft-break.d.ts +12 -11
  204. package/types/formats/strike.d.ts +8 -7
  205. package/types/formats/video.d.ts +13 -12
  206. package/types/index.d.ts +8 -7
  207. package/types/modules/ai/constants.d.ts +30 -30
  208. package/types/modules/ai/icons.d.ts +21 -21
  209. package/types/modules/ai/index.d.ts +94 -93
  210. package/types/modules/ai/types.d.ts +16 -16
  211. package/types/modules/collaborative-editing/awareness/awareness.d.ts +26 -25
  212. package/types/modules/collaborative-editing/awareness/index.d.ts +2 -2
  213. package/types/modules/collaborative-editing/awareness/y-indexeddb.d.ts +3 -2
  214. package/types/modules/collaborative-editing/collaborative-editing.d.ts +21 -20
  215. package/types/modules/collaborative-editing/index.d.ts +2 -2
  216. package/types/modules/collaborative-editing/module.d.ts +11 -10
  217. package/types/modules/collaborative-editing/provider/index.d.ts +3 -3
  218. package/types/modules/collaborative-editing/provider/providerRegistry.d.ts +25 -24
  219. package/types/modules/collaborative-editing/provider/webrtc.d.ts +34 -33
  220. package/types/modules/collaborative-editing/provider/websocket.d.ts +38 -37
  221. package/types/modules/collaborative-editing/types.d.ts +46 -45
  222. package/types/modules/counter.d.ts +22 -21
  223. package/types/modules/custom-clipboard.d.ts +24 -23
  224. package/types/modules/custom-image/BlotFormatter.d.ts +29 -0
  225. package/types/modules/custom-image/{options.d.ts → Options.d.ts} +46 -45
  226. package/types/modules/custom-image/actions/{action.d.ts → Action.d.ts} +8 -7
  227. package/types/modules/custom-image/actions/CustomResizeAction.d.ts +24 -0
  228. package/types/modules/custom-image/actions/DeleteAction.d.ts +7 -0
  229. package/types/modules/custom-image/actions/custom-resize-action.d.ts +23 -22
  230. package/types/modules/custom-image/actions/delete-action.d.ts +6 -5
  231. package/types/modules/custom-image/actions/image-toolbar-buttons.d.ts +16 -15
  232. package/types/modules/custom-image/actions/index.d.ts +6 -6
  233. package/types/modules/custom-image/actions/toolbar-action.d.ts +8 -7
  234. package/types/modules/custom-image/actions/toolbar.d.ts +17 -16
  235. package/types/modules/custom-image/blot-formatter.d.ts +20 -19
  236. package/types/modules/custom-image/image-bar.d.ts +15 -0
  237. package/types/modules/custom-image/image.d.ts +27 -26
  238. package/types/modules/custom-image/index.d.ts +4 -4
  239. package/types/modules/custom-image/specs/BlotSpec.d.ts +13 -0
  240. package/types/modules/custom-image/specs/CustomImageSpec.d.ts +21 -0
  241. package/types/modules/custom-image/specs/ImageSpec.d.ts +10 -0
  242. package/types/modules/custom-image/specs/blot-spec.d.ts +11 -10
  243. package/types/modules/custom-image/specs/custom-image-spec.d.ts +16 -15
  244. package/types/modules/custom-image/specs/image-spec.d.ts +8 -7
  245. package/types/modules/custom-image/specs/index.d.ts +3 -3
  246. package/types/modules/custom-uploader.d.ts +38 -37
  247. package/types/modules/divider.d.ts +8 -7
  248. package/types/modules/emoji/emoji-list/index.d.ts +1 -0
  249. package/types/modules/emoji/emoji-list/people.d.ts +1 -0
  250. package/types/modules/emoji/emoji-list.d.ts +2 -0
  251. package/types/modules/emoji/emoji-map.d.ts +2 -0
  252. package/types/modules/emoji/emoji-sprite.d.ts +1 -0
  253. package/types/modules/emoji/formats/emoji-blot.d.ts +13 -0
  254. package/types/modules/emoji/index.d.ts +10 -0
  255. package/types/modules/emoji/modules/emoji.d.ts +38 -0
  256. package/types/modules/emoji/modules/toolbar-emoji.d.ts +8 -0
  257. package/types/modules/emoji/utils.d.ts +1 -0
  258. package/types/modules/emoji.d.ts +36 -35
  259. package/types/modules/file/formats/file.d.ts +18 -17
  260. package/types/modules/file/index.d.ts +3 -3
  261. package/types/modules/file/modules/file-bar.d.ts +14 -14
  262. package/types/modules/file/modules/file-module.d.ts +8 -7
  263. package/types/modules/flow-chart/config-utils.d.ts +10 -9
  264. package/types/modules/flow-chart/formats/flow-chart-blot.d.ts +41 -40
  265. package/types/modules/flow-chart/i18n/en-us.d.ts +26 -26
  266. package/types/modules/flow-chart/i18n/index.d.ts +1 -1
  267. package/types/modules/flow-chart/i18n/zh-cn.d.ts +26 -26
  268. package/types/modules/flow-chart/icons.d.ts +12 -12
  269. package/types/modules/flow-chart/index.d.ts +9 -8
  270. package/types/modules/flow-chart/modules/context-menu.d.ts +2 -1
  271. package/types/modules/flow-chart/modules/control-panel.d.ts +2 -1
  272. package/types/modules/flow-chart/modules/custom-resize-action.d.ts +22 -22
  273. package/types/modules/flow-chart/options.d.ts +29 -29
  274. package/types/modules/global-link/constants.d.ts +3 -0
  275. package/types/modules/global-link/formats/customer-widget-link.d.ts +14 -0
  276. package/types/modules/global-link/formats/doc-link.d.ts +17 -0
  277. package/types/modules/global-link/formats/wiki-link.d.ts +16 -0
  278. package/types/modules/global-link/formats/work-item-link.d.ts +16 -0
  279. package/types/modules/global-link/global-link-panel.d.ts +19 -0
  280. package/types/modules/global-link/index.d.ts +18 -0
  281. package/types/modules/global-link/utils/createTable.d.ts +1 -0
  282. package/types/modules/i18n.d.ts +14 -13
  283. package/types/modules/index.d.ts +18 -18
  284. package/types/modules/link/formats/link.d.ts +15 -14
  285. package/types/modules/link/index.d.ts +2 -2
  286. package/types/modules/link/modules/tooltip.d.ts +26 -25
  287. package/types/modules/mathlive/formats.d.ts +21 -20
  288. package/types/modules/mathlive/index.d.ts +3 -3
  289. package/types/modules/mathlive/module.d.ts +8 -7
  290. package/types/modules/mathlive/tooltip.d.ts +15 -14
  291. package/types/modules/mention/{mention.d.ts → Mention.d.ts} +53 -52
  292. package/types/modules/mention/MentionLink.d.ts +16 -0
  293. package/types/modules/mention/constants.d.ts +3 -3
  294. package/types/modules/mention/index.d.ts +2 -2
  295. package/types/modules/mention/mention-link.d.ts +15 -14
  296. package/types/modules/mind-map/config-utils.d.ts +12 -11
  297. package/types/modules/mind-map/formats/mind-map-blot.d.ts +42 -41
  298. package/types/modules/mind-map/i18n/en-us.d.ts +25 -25
  299. package/types/modules/mind-map/i18n/index.d.ts +1 -1
  300. package/types/modules/mind-map/i18n/zh-cn.d.ts +25 -25
  301. package/types/modules/mind-map/icons.d.ts +21 -21
  302. package/types/modules/mind-map/index.d.ts +9 -8
  303. package/types/modules/mind-map/modules/context-menu.d.ts +2 -1
  304. package/types/modules/mind-map/modules/control-panel.d.ts +2 -1
  305. package/types/modules/mind-map/modules/custom-resize-action.d.ts +23 -23
  306. package/types/modules/mind-map/options.d.ts +27 -27
  307. package/types/modules/quick-menu.d.ts +22 -0
  308. package/types/modules/shortcut-key/index.d.ts +68 -67
  309. package/types/modules/syntax.d.ts +13 -12
  310. package/types/modules/table/better-table.d.ts +35 -0
  311. package/types/modules/table/formats/header.d.ts +23 -0
  312. package/types/modules/table/formats/list.d.ts +34 -0
  313. package/types/modules/table/formats/table.d.ts +147 -0
  314. package/types/modules/table/modules/table-column-tool.d.ts +23 -0
  315. package/types/modules/table/modules/table-operation-menu.d.ts +38 -0
  316. package/types/modules/table/modules/table-scroll-bar.d.ts +33 -0
  317. package/types/modules/table/modules/table-selection.d.ts +37 -0
  318. package/types/modules/table/modules/table-selector.d.ts +22 -0
  319. package/types/modules/table/table-config.d.ts +38 -0
  320. package/types/modules/table/utils/index.d.ts +17 -0
  321. package/types/modules/table/utils/node-matchers.d.ts +9 -0
  322. package/types/modules/table-up/index.d.ts +33 -32
  323. package/types/modules/toolbar/better-picker.d.ts +14 -13
  324. package/types/modules/toolbar/better-toolbar.d.ts +7 -6
  325. package/types/modules/toolbar/index.d.ts +3 -3
  326. package/types/modules/toolbar/toolbar-tip.d.ts +8 -7
  327. package/types/themes/snow.d.ts +10 -9
  328. package/types/tools/format-painter.d.ts +13 -12
  329. package/types/tools/fullscreen.d.ts +5 -4
  330. package/types/tools/screenshot.d.ts +18 -17
  331. package/types/ui/icons.config.d.ts +40 -40
  332. package/types/ui/icons.d.ts +6 -6
  333. package/types/utils/debounce.d.ts +6 -6
  334. package/types/utils/image.d.ts +1 -1
  335. package/types/utils/is.d.ts +6 -6
  336. package/types/utils/merge.d.ts +7 -0
  337. package/types/utils/method.d.ts +6 -6
  338. package/types/utils/scroll-lock.d.ts +6 -6
@@ -1,10 +1,11 @@
1
1
  import { default as Quill } from 'quill';
2
2
  import { MindMapOptions } from './options';
3
- export declare class MindMapModule {
4
- quill: Quill;
5
- toolbar: any;
6
- options: MindMapOptions;
7
- static register(): void;
8
- constructor(quill: Quill, options: MindMapOptions);
9
- insertMindMapEditor(): void;
10
- }
3
+
4
+ export declare class MindMapModule {
5
+ quill: Quill;
6
+ toolbar: any;
7
+ options: MindMapOptions;
8
+ static register(): void;
9
+ constructor(quill: Quill, options: MindMapOptions);
10
+ insertMindMapEditor(): void;
11
+ }
@@ -1,3 +1,4 @@
1
1
  import { default as FluentEditor } from '../../../core/fluent-editor';
2
2
  import { default as MindMapPlaceholderBlot } from '../formats/mind-map-blot';
3
- export declare function initContextMenu(blot: MindMapPlaceholderBlot, quill: FluentEditor): void;
3
+
4
+ export declare function initContextMenu(blot: MindMapPlaceholderBlot, quill: FluentEditor): void;
@@ -1,3 +1,4 @@
1
1
  import { default as FluentEditor } from '../../../core/fluent-editor';
2
2
  import { default as MindMapPlaceholderBlot } from '../formats/mind-map-blot';
3
- export declare function createControlPanel(blot: MindMapPlaceholderBlot, quill: FluentEditor): void;
3
+
4
+ export declare function createControlPanel(blot: MindMapPlaceholderBlot, quill: FluentEditor): void;
@@ -1,23 +1,23 @@
1
- export declare class MindMapResizeAction {
2
- topLeftHandle: HTMLElement;
3
- topRightHandle: HTMLElement;
4
- bottomRightHandle: HTMLElement;
5
- bottomLeftHandle: HTMLElement;
6
- dragHandle: HTMLElement | null;
7
- dragStartX: number;
8
- dragStartY: number;
9
- preDragWidth: number;
10
- preDragHeight: number;
11
- targetRatio: number;
12
- blot: any;
13
- constructor(blot: any);
14
- isFullscreen(): boolean;
15
- init(): void;
16
- createHandle(position: string, cursor: string): HTMLElement;
17
- repositionHandles(): void;
18
- onMouseDown(event: MouseEvent): void;
19
- updateDependentElementsHeight(newHeight: number): void;
20
- onDrag(event: MouseEvent): void;
21
- onMouseUp(): void;
22
- destroy(): void;
23
- }
1
+ export declare class MindMapResizeAction {
2
+ topLeftHandle: HTMLElement;
3
+ topRightHandle: HTMLElement;
4
+ bottomRightHandle: HTMLElement;
5
+ bottomLeftHandle: HTMLElement;
6
+ dragHandle: HTMLElement | null;
7
+ dragStartX: number;
8
+ dragStartY: number;
9
+ preDragWidth: number;
10
+ preDragHeight: number;
11
+ targetRatio: number;
12
+ blot: any;
13
+ constructor(blot: any);
14
+ isFullscreen(): boolean;
15
+ init(): void;
16
+ createHandle(position: string, cursor: string): HTMLElement;
17
+ repositionHandles(): void;
18
+ onMouseDown(event: MouseEvent): void;
19
+ updateDependentElementsHeight(newHeight: number): void;
20
+ onDrag(event: MouseEvent): void;
21
+ onMouseUp(): void;
22
+ destroy(): void;
23
+ }
@@ -1,27 +1,27 @@
1
- export interface BackgroundConfig {
2
- color?: string;
3
- image?: string;
4
- repeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
5
- position?: string;
6
- size?: string;
7
- }
8
- export interface LineConfig {
9
- color?: string;
10
- width?: number;
11
- dasharray?: string;
12
- style?: 'curve' | 'straight' | 'direct';
13
- }
14
- export interface MindMapDeps {
15
- SimpleMindMap: any;
16
- Themes: any;
17
- Drag: any;
18
- Export: any;
19
- nodeIconList: any;
20
- }
21
- export interface MindMapOptions {
22
- background?: boolean | BackgroundConfig;
23
- resize?: boolean;
24
- line?: boolean | LineConfig;
25
- theme?: string;
26
- deps?: MindMapDeps;
27
- }
1
+ export interface BackgroundConfig {
2
+ color?: string;
3
+ image?: string;
4
+ repeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
5
+ position?: string;
6
+ size?: string;
7
+ }
8
+ export interface LineConfig {
9
+ color?: string;
10
+ width?: number;
11
+ dasharray?: string;
12
+ style?: 'curve' | 'straight' | 'direct';
13
+ }
14
+ export interface MindMapDeps {
15
+ SimpleMindMap: any;
16
+ Themes: any;
17
+ Drag: any;
18
+ Export: any;
19
+ nodeIconList: any;
20
+ }
21
+ export interface MindMapOptions {
22
+ background?: boolean | BackgroundConfig;
23
+ resize?: boolean;
24
+ line?: boolean | LineConfig;
25
+ theme?: string;
26
+ deps?: MindMapDeps;
27
+ }
@@ -0,0 +1,22 @@
1
+ import { default as Quill } from 'quill';
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;
@@ -2,70 +2,71 @@ import { Range, default as Quill } from 'quill';
2
2
  import { QuillShortcutKeyInputOptions, QuillShortcutKeyOptions, default as QuillShortcutKey } from 'quill-shortcut-key';
3
3
  import { Context } from 'quill/modules/keyboard';
4
4
  import { default as FluentEditor } from '../../fluent-editor';
5
- export interface ShortCutKeyCustomOptions {
6
- isMenuItemsAdd: boolean;
7
- }
8
- export type ShortCutKeyInputOptions = QuillShortcutKeyInputOptions & ShortCutKeyCustomOptions;
9
- export type ShortCutKeyOptions = QuillShortcutKeyOptions & ShortCutKeyCustomOptions;
10
- export declare class ShortCutKey extends QuillShortcutKey {
11
- quill: FluentEditor;
12
- constructor(quill: FluentEditor, options: Partial<ShortCutKeyInputOptions>);
13
- resolveOptions(options: Partial<ShortCutKeyInputOptions>): ShortCutKeyOptions;
14
- defaultMenuList(): ({
15
- type: "item";
16
- name: string;
17
- alias: string[];
18
- icon: any;
19
- title: string;
20
- onClick(this: Quill, range: Range | null, _: any): void;
21
- hideSearch?: undefined;
22
- children?: undefined;
23
- } | {
24
- type: "group";
25
- name: string;
26
- alias: any[];
27
- hideSearch: boolean;
28
- icon: any;
29
- title: string;
30
- children: {
31
- type: "item";
32
- name: string;
33
- alias: string[];
34
- icon: any;
35
- title: string;
36
- onClick: (this: Quill, range: Range | null) => void;
37
- }[];
38
- })[];
39
- }
40
- export declare const shortKey: {
41
- link: {
42
- key: string;
43
- shortKey: boolean;
44
- handler(this: {
45
- quill: Quill;
46
- }, _: any, context: Context): void;
47
- };
48
- color: {
49
- key: string;
50
- altKey: boolean;
51
- shortKey: boolean;
52
- handler(this: {
53
- quill: Quill;
54
- }): void;
55
- };
56
- background: {
57
- key: string;
58
- altKey: boolean;
59
- shortKey: boolean;
60
- handler(this: {
61
- quill: Quill;
62
- }): void;
63
- };
64
- clean: {
65
- key: string;
66
- shortKey: boolean;
67
- handler(this: {
68
- quill: Quill;
69
- }, range: Range): void;
70
- };
71
- };
5
+
6
+ export interface ShortCutKeyCustomOptions {
7
+ isMenuItemsAdd: boolean;
8
+ }
9
+ export type ShortCutKeyInputOptions = QuillShortcutKeyInputOptions & ShortCutKeyCustomOptions;
10
+ export type ShortCutKeyOptions = QuillShortcutKeyOptions & ShortCutKeyCustomOptions;
11
+ export declare class ShortCutKey extends QuillShortcutKey {
12
+ quill: FluentEditor;
13
+ constructor(quill: FluentEditor, options: Partial<ShortCutKeyInputOptions>);
14
+ resolveOptions(options: Partial<ShortCutKeyInputOptions>): ShortCutKeyOptions;
15
+ defaultMenuList(): ({
16
+ type: "item";
17
+ name: string;
18
+ alias: string[];
19
+ icon: any;
20
+ title: string;
21
+ onClick(this: Quill, range: Range | null, _: any): void;
22
+ hideSearch?: undefined;
23
+ children?: undefined;
24
+ } | {
25
+ type: "group";
26
+ name: string;
27
+ alias: any[];
28
+ hideSearch: boolean;
29
+ icon: any;
30
+ title: string;
31
+ children: {
32
+ type: "item";
33
+ name: string;
34
+ alias: string[];
35
+ icon: any;
36
+ title: string;
37
+ onClick: (this: Quill, range: Range | null) => void;
38
+ }[];
39
+ })[];
40
+ }
41
+ export declare const shortKey: {
42
+ link: {
43
+ key: string;
44
+ shortKey: boolean;
45
+ handler(this: {
46
+ quill: Quill;
47
+ }, _: any, context: Context): void;
48
+ };
49
+ color: {
50
+ key: string;
51
+ altKey: boolean;
52
+ shortKey: boolean;
53
+ handler(this: {
54
+ quill: Quill;
55
+ }): void;
56
+ };
57
+ background: {
58
+ key: string;
59
+ altKey: boolean;
60
+ shortKey: boolean;
61
+ handler(this: {
62
+ quill: Quill;
63
+ }): void;
64
+ };
65
+ clean: {
66
+ key: string;
67
+ shortKey: boolean;
68
+ handler(this: {
69
+ quill: Quill;
70
+ }, range: Range): void;
71
+ };
72
+ };
@@ -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;
@@ -0,0 +1,35 @@
1
+ import { default as TableColumnTool } from './modules/table-column-tool';
2
+ import { default as TableScrollBar } from './modules/table-scroll-bar';
3
+ import { default as TableSelector } from './modules/table-selector';
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;
@@ -0,0 +1,23 @@
1
+ import { default as TypeHeader } from 'quill/formats/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;
@@ -0,0 +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 };
@@ -0,0 +1,147 @@
1
+ import { CELL_ATTRIBUTES, CELL_IDENTITY_KEYS } from '../table-config';
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, };
@@ -0,0 +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
+ }
@@ -0,0 +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): Promise<void>;
35
+ createVirtualTable(selectedTds: any, _operation: any): any;
36
+ setCopyRange(selectedNodes: any): void;
37
+ groupTableCell(selectedTds: any): any[];
38
+ }
@@ -0,0 +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
+ }