@opentiny/fluent-editor 4.0.0-alpha.13 → 4.0.0-alpha.15

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 (339) 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 +27 -0
  5. package/es/config/editor.config.es.js.map +1 -1
  6. package/es/config/editor.utils.es.js.map +1 -1
  7. package/es/config/i18n/en-us.es.js.map +1 -1
  8. package/es/config/i18n/zh-cn.es.js.map +1 -1
  9. package/es/config/index.es.js +3 -1
  10. package/es/config/index.es.js.map +1 -1
  11. package/es/core/fluent-editor.es.js.map +1 -1
  12. package/es/fluent-editor.es.js.map +1 -1
  13. package/es/formats/emoji.es.js.map +1 -1
  14. package/es/formats/soft-break.es.js.map +1 -1
  15. package/es/formats/strike.es.js.map +1 -1
  16. package/es/formats/video.es.js.map +1 -1
  17. package/es/index.es.js +31 -2
  18. package/es/index.es.js.map +1 -1
  19. package/es/modules/ai/constants.es.js.map +1 -1
  20. package/es/modules/ai/icons.es.js.map +1 -1
  21. package/es/modules/ai/index.es.js.map +1 -1
  22. package/es/modules/collaborative-editing/awareness/awareness.es.js.map +1 -1
  23. package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js.map +1 -1
  24. package/es/modules/collaborative-editing/collaborative-editing.es.js.map +1 -1
  25. package/es/modules/collaborative-editing/module.es.js.map +1 -1
  26. package/es/modules/collaborative-editing/provider/providerRegistry.es.js.map +1 -1
  27. package/es/modules/collaborative-editing/provider/webrtc.es.js.map +1 -1
  28. package/es/modules/collaborative-editing/provider/websocket.es.js.map +1 -1
  29. package/es/modules/counter.es.js.map +1 -1
  30. package/es/modules/custom-clipboard.es.js.map +1 -1
  31. package/es/modules/custom-image/actions/action.es.js.map +1 -1
  32. package/es/modules/custom-image/actions/custom-resize-action.es.js.map +1 -1
  33. package/es/modules/custom-image/actions/delete-action.es.js.map +1 -1
  34. package/es/modules/custom-image/blot-formatter.es.js.map +1 -1
  35. package/es/modules/custom-image/image.es.js.map +1 -1
  36. package/es/modules/custom-image/options.es.js.map +1 -1
  37. package/es/modules/custom-image/specs/blot-spec.es.js.map +1 -1
  38. package/es/modules/custom-image/specs/custom-image-spec.es.js.map +1 -1
  39. package/es/modules/custom-image/specs/image-spec.es.js.map +1 -1
  40. package/es/modules/divider.es.js.map +1 -1
  41. package/es/modules/emoji.es.js.map +1 -1
  42. package/es/modules/file/formats/file.es.js.map +1 -1
  43. package/es/modules/file/modules/file-bar.es.js.map +1 -1
  44. package/es/modules/file/modules/file-module.es.js.map +1 -1
  45. package/es/modules/flow-chart/config-utils.es.js.map +1 -1
  46. package/es/modules/flow-chart/formats/flow-chart-blot.es.js.map +1 -1
  47. package/es/modules/flow-chart/i18n/en-us.es.js.map +1 -1
  48. package/es/modules/flow-chart/i18n/index.es.js.map +1 -1
  49. package/es/modules/flow-chart/i18n/zh-cn.es.js.map +1 -1
  50. package/es/modules/flow-chart/icons.es.js.map +1 -1
  51. package/es/modules/flow-chart/index.es.js.map +1 -1
  52. package/es/modules/flow-chart/modules/context-menu.es.js.map +1 -1
  53. package/es/modules/flow-chart/modules/control-panel.es.js.map +1 -1
  54. package/es/modules/flow-chart/modules/custom-resize-action.es.js.map +1 -1
  55. package/es/modules/link/formats/link.es.js.map +1 -1
  56. package/es/modules/link/modules/tooltip.es.js.map +1 -1
  57. package/es/modules/mathlive/formats.es.js.map +1 -1
  58. package/es/modules/mathlive/tooltip.es.js.map +1 -1
  59. package/es/modules/mention/constants.es.js.map +1 -1
  60. package/es/modules/mention/mention-link.es.js.map +1 -1
  61. package/es/modules/mention/mention.es.js.map +1 -1
  62. package/es/modules/mind-map/config-utils.es.js.map +1 -1
  63. package/es/modules/mind-map/formats/mind-map-blot.es.js.map +1 -1
  64. package/es/modules/mind-map/i18n/en-us.es.js.map +1 -1
  65. package/es/modules/mind-map/i18n/index.es.js.map +1 -1
  66. package/es/modules/mind-map/i18n/zh-cn.es.js.map +1 -1
  67. package/es/modules/mind-map/icons.es.js.map +1 -1
  68. package/es/modules/mind-map/index.es.js.map +1 -1
  69. package/es/modules/mind-map/modules/context-menu.es.js.map +1 -1
  70. package/es/modules/mind-map/modules/control-panel.es.js.map +1 -1
  71. package/es/modules/mind-map/modules/custom-resize-action.es.js.map +1 -1
  72. package/es/modules/syntax.es.js.map +1 -1
  73. package/es/modules/toolbar/better-picker.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/merge.es.js.map +1 -1
  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 +27 -0
  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/index.cjs.js +2 -0
  89. package/lib/config/index.cjs.js.map +1 -1
  90. package/lib/core/fluent-editor.cjs.js.map +1 -1
  91. package/lib/fluent-editor.cjs.js.map +1 -1
  92. package/lib/formats/emoji.cjs.js.map +1 -1
  93. package/lib/formats/soft-break.cjs.js.map +1 -1
  94. package/lib/formats/strike.cjs.js.map +1 -1
  95. package/lib/formats/video.cjs.js.map +1 -1
  96. package/lib/index.cjs.js +39 -10
  97. package/lib/index.cjs.js.map +1 -1
  98. package/lib/modules/ai/constants.cjs.js.map +1 -1
  99. package/lib/modules/ai/icons.cjs.js.map +1 -1
  100. package/lib/modules/ai/index.cjs.js.map +1 -1
  101. package/lib/modules/collaborative-editing/awareness/awareness.cjs.js.map +1 -1
  102. package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js.map +1 -1
  103. package/lib/modules/collaborative-editing/collaborative-editing.cjs.js.map +1 -1
  104. package/lib/modules/collaborative-editing/module.cjs.js.map +1 -1
  105. package/lib/modules/collaborative-editing/provider/providerRegistry.cjs.js.map +1 -1
  106. package/lib/modules/collaborative-editing/provider/webrtc.cjs.js.map +1 -1
  107. package/lib/modules/collaborative-editing/provider/websocket.cjs.js.map +1 -1
  108. package/lib/modules/counter.cjs.js.map +1 -1
  109. package/lib/modules/custom-clipboard.cjs.js.map +1 -1
  110. package/lib/modules/custom-image/actions/action.cjs.js.map +1 -1
  111. package/lib/modules/custom-image/actions/custom-resize-action.cjs.js.map +1 -1
  112. package/lib/modules/custom-image/actions/delete-action.cjs.js.map +1 -1
  113. package/lib/modules/custom-image/blot-formatter.cjs.js.map +1 -1
  114. package/lib/modules/custom-image/image.cjs.js.map +1 -1
  115. package/lib/modules/custom-image/options.cjs.js.map +1 -1
  116. package/lib/modules/custom-image/specs/blot-spec.cjs.js.map +1 -1
  117. package/lib/modules/custom-image/specs/custom-image-spec.cjs.js.map +1 -1
  118. package/lib/modules/custom-image/specs/image-spec.cjs.js.map +1 -1
  119. package/lib/modules/divider.cjs.js.map +1 -1
  120. package/lib/modules/emoji.cjs.js.map +1 -1
  121. package/lib/modules/file/formats/file.cjs.js.map +1 -1
  122. package/lib/modules/file/modules/file-bar.cjs.js.map +1 -1
  123. package/lib/modules/file/modules/file-module.cjs.js.map +1 -1
  124. package/lib/modules/flow-chart/config-utils.cjs.js.map +1 -1
  125. package/lib/modules/flow-chart/formats/flow-chart-blot.cjs.js.map +1 -1
  126. package/lib/modules/flow-chart/i18n/en-us.cjs.js.map +1 -1
  127. package/lib/modules/flow-chart/i18n/index.cjs.js.map +1 -1
  128. package/lib/modules/flow-chart/i18n/zh-cn.cjs.js.map +1 -1
  129. package/lib/modules/flow-chart/icons.cjs.js.map +1 -1
  130. package/lib/modules/flow-chart/index.cjs.js.map +1 -1
  131. package/lib/modules/flow-chart/modules/context-menu.cjs.js.map +1 -1
  132. package/lib/modules/flow-chart/modules/control-panel.cjs.js.map +1 -1
  133. package/lib/modules/flow-chart/modules/custom-resize-action.cjs.js.map +1 -1
  134. package/lib/modules/link/formats/link.cjs.js.map +1 -1
  135. package/lib/modules/link/modules/tooltip.cjs.js.map +1 -1
  136. package/lib/modules/mathlive/formats.cjs.js.map +1 -1
  137. package/lib/modules/mathlive/tooltip.cjs.js.map +1 -1
  138. package/lib/modules/mention/constants.cjs.js.map +1 -1
  139. package/lib/modules/mention/mention-link.cjs.js.map +1 -1
  140. package/lib/modules/mention/mention.cjs.js.map +1 -1
  141. package/lib/modules/mind-map/config-utils.cjs.js.map +1 -1
  142. package/lib/modules/mind-map/formats/mind-map-blot.cjs.js.map +1 -1
  143. package/lib/modules/mind-map/i18n/en-us.cjs.js.map +1 -1
  144. package/lib/modules/mind-map/i18n/index.cjs.js.map +1 -1
  145. package/lib/modules/mind-map/i18n/zh-cn.cjs.js.map +1 -1
  146. package/lib/modules/mind-map/icons.cjs.js.map +1 -1
  147. package/lib/modules/mind-map/index.cjs.js.map +1 -1
  148. package/lib/modules/mind-map/modules/context-menu.cjs.js.map +1 -1
  149. package/lib/modules/mind-map/modules/control-panel.cjs.js.map +1 -1
  150. package/lib/modules/mind-map/modules/custom-resize-action.cjs.js.map +1 -1
  151. package/lib/modules/syntax.cjs.js.map +1 -1
  152. package/lib/modules/toolbar/better-picker.cjs.js.map +1 -1
  153. package/lib/themes/snow.cjs.js.map +1 -1
  154. package/lib/tools/screenshot.cjs.js.map +1 -1
  155. package/lib/ui/icons.cjs.js.map +1 -1
  156. package/lib/ui/icons.config.cjs.js.map +1 -1
  157. package/lib/utils/debounce.cjs.js.map +1 -1
  158. package/lib/utils/merge.cjs.js.map +1 -1
  159. package/lib/utils/method.cjs.js.map +1 -1
  160. package/package.json +1 -1
  161. package/patches/quill@2.0.3.patch +33 -33
  162. package/scripts/apply-patches.cjs +248 -248
  163. package/style.css +1 -1
  164. package/types/attributors/font-size.d.ts +1 -1
  165. package/types/attributors/font-style.d.ts +1 -1
  166. package/types/attributors/index.d.ts +4 -4
  167. package/types/attributors/line-height.d.ts +1 -1
  168. package/types/attributors/text-indent.d.ts +1 -1
  169. package/types/config/base64-image.d.ts +2 -2
  170. package/types/config/editor.config.d.ts +55 -11
  171. package/types/config/editor.utils.d.ts +40 -40
  172. package/types/config/i18n/en-us.d.ts +125 -125
  173. package/types/config/i18n/zh-cn.d.ts +125 -125
  174. package/types/config/index.d.ts +7 -7
  175. package/types/config/types/additional-toolbar-item.interface.d.ts +8 -0
  176. package/types/config/types/content-change.interface.d.ts +13 -0
  177. package/types/config/types/content-save.interface.d.ts +6 -0
  178. package/types/config/types/counter-option.interface.d.ts +9 -0
  179. package/types/config/types/editor-config.interface.d.ts +12 -11
  180. package/types/config/types/editor-modules.interface.d.ts +39 -38
  181. package/types/config/types/editor-toolbar.interface.d.ts +6 -0
  182. package/types/config/types/file-operation.interface.d.ts +12 -0
  183. package/types/config/types/focus-change.interface.d.ts +4 -0
  184. package/types/config/types/fullscreen-module.interface.d.ts +4 -0
  185. package/types/config/types/help-panel-item.interface.d.ts +5 -0
  186. package/types/config/types/help-panel-option.interface.d.ts +7 -0
  187. package/types/config/types/image-module.interface.d.ts +3 -0
  188. package/types/config/types/image-upload.interface.d.ts +7 -0
  189. package/types/config/types/index.d.ts +3 -3
  190. package/types/config/types/load-on-demand-module.interface.d.ts +5 -0
  191. package/types/config/types/mention-module.interface.d.ts +8 -0
  192. package/types/config/types/paste-change.interface.d.ts +6 -0
  193. package/types/config/types/quick-menu-module.interface.d.ts +3 -0
  194. package/types/config/types/range.interface.d.ts +4 -0
  195. package/types/config/types/registry-options.interface.d.ts +5 -0
  196. package/types/config/types/selection-change.interface.d.ts +8 -0
  197. package/types/config/types/toolbar-item.interface.d.ts +13 -0
  198. package/types/config/types/type.d.ts +2 -2
  199. package/types/config/types/validate-error.interface.d.ts +13 -0
  200. package/types/core/fluent-editor.d.ts +11 -10
  201. package/types/fluent-editor.d.ts +2 -1
  202. package/types/formats/emoji.d.ts +8 -7
  203. package/types/formats/index.d.ts +4 -4
  204. package/types/formats/soft-break.d.ts +12 -11
  205. package/types/formats/strike.d.ts +8 -7
  206. package/types/formats/video.d.ts +13 -12
  207. package/types/index.d.ts +8 -7
  208. package/types/modules/ai/constants.d.ts +30 -30
  209. package/types/modules/ai/icons.d.ts +21 -21
  210. package/types/modules/ai/index.d.ts +94 -93
  211. package/types/modules/ai/types.d.ts +16 -16
  212. package/types/modules/collaborative-editing/awareness/awareness.d.ts +26 -25
  213. package/types/modules/collaborative-editing/awareness/index.d.ts +2 -2
  214. package/types/modules/collaborative-editing/awareness/y-indexeddb.d.ts +3 -2
  215. package/types/modules/collaborative-editing/collaborative-editing.d.ts +21 -20
  216. package/types/modules/collaborative-editing/index.d.ts +2 -2
  217. package/types/modules/collaborative-editing/module.d.ts +11 -10
  218. package/types/modules/collaborative-editing/provider/index.d.ts +3 -3
  219. package/types/modules/collaborative-editing/provider/providerRegistry.d.ts +25 -24
  220. package/types/modules/collaborative-editing/provider/webrtc.d.ts +34 -33
  221. package/types/modules/collaborative-editing/provider/websocket.d.ts +38 -37
  222. package/types/modules/collaborative-editing/types.d.ts +46 -45
  223. package/types/modules/counter.d.ts +22 -21
  224. package/types/modules/custom-clipboard.d.ts +24 -23
  225. package/types/modules/custom-image/BlotFormatter.d.ts +29 -0
  226. package/types/modules/custom-image/{options.d.ts → Options.d.ts} +46 -45
  227. package/types/modules/custom-image/actions/{action.d.ts → Action.d.ts} +8 -7
  228. package/types/modules/custom-image/actions/CustomResizeAction.d.ts +24 -0
  229. package/types/modules/custom-image/actions/DeleteAction.d.ts +7 -0
  230. package/types/modules/custom-image/actions/custom-resize-action.d.ts +23 -22
  231. package/types/modules/custom-image/actions/delete-action.d.ts +6 -5
  232. package/types/modules/custom-image/actions/image-toolbar-buttons.d.ts +16 -15
  233. package/types/modules/custom-image/actions/index.d.ts +6 -6
  234. package/types/modules/custom-image/actions/toolbar-action.d.ts +8 -7
  235. package/types/modules/custom-image/actions/toolbar.d.ts +17 -16
  236. package/types/modules/custom-image/blot-formatter.d.ts +20 -19
  237. package/types/modules/custom-image/image-bar.d.ts +15 -0
  238. package/types/modules/custom-image/image.d.ts +27 -26
  239. package/types/modules/custom-image/index.d.ts +4 -4
  240. package/types/modules/custom-image/specs/BlotSpec.d.ts +13 -0
  241. package/types/modules/custom-image/specs/CustomImageSpec.d.ts +21 -0
  242. package/types/modules/custom-image/specs/ImageSpec.d.ts +10 -0
  243. package/types/modules/custom-image/specs/blot-spec.d.ts +11 -10
  244. package/types/modules/custom-image/specs/custom-image-spec.d.ts +16 -15
  245. package/types/modules/custom-image/specs/image-spec.d.ts +8 -7
  246. package/types/modules/custom-image/specs/index.d.ts +3 -3
  247. package/types/modules/custom-uploader.d.ts +38 -37
  248. package/types/modules/divider.d.ts +8 -7
  249. package/types/modules/emoji/emoji-list/index.d.ts +1 -0
  250. package/types/modules/emoji/emoji-list/people.d.ts +1 -0
  251. package/types/modules/emoji/emoji-list.d.ts +2 -0
  252. package/types/modules/emoji/emoji-map.d.ts +2 -0
  253. package/types/modules/emoji/emoji-sprite.d.ts +1 -0
  254. package/types/modules/emoji/formats/emoji-blot.d.ts +13 -0
  255. package/types/modules/emoji/index.d.ts +10 -0
  256. package/types/modules/emoji/modules/emoji.d.ts +38 -0
  257. package/types/modules/emoji/modules/toolbar-emoji.d.ts +8 -0
  258. package/types/modules/emoji/utils.d.ts +1 -0
  259. package/types/modules/emoji.d.ts +36 -35
  260. package/types/modules/file/formats/file.d.ts +18 -17
  261. package/types/modules/file/index.d.ts +3 -3
  262. package/types/modules/file/modules/file-bar.d.ts +14 -14
  263. package/types/modules/file/modules/file-module.d.ts +8 -7
  264. package/types/modules/flow-chart/config-utils.d.ts +10 -9
  265. package/types/modules/flow-chart/formats/flow-chart-blot.d.ts +41 -40
  266. package/types/modules/flow-chart/i18n/en-us.d.ts +26 -26
  267. package/types/modules/flow-chart/i18n/index.d.ts +1 -1
  268. package/types/modules/flow-chart/i18n/zh-cn.d.ts +26 -26
  269. package/types/modules/flow-chart/icons.d.ts +12 -12
  270. package/types/modules/flow-chart/index.d.ts +9 -8
  271. package/types/modules/flow-chart/modules/context-menu.d.ts +2 -1
  272. package/types/modules/flow-chart/modules/control-panel.d.ts +2 -1
  273. package/types/modules/flow-chart/modules/custom-resize-action.d.ts +22 -22
  274. package/types/modules/flow-chart/options.d.ts +29 -29
  275. package/types/modules/global-link/constants.d.ts +3 -0
  276. package/types/modules/global-link/formats/customer-widget-link.d.ts +14 -0
  277. package/types/modules/global-link/formats/doc-link.d.ts +17 -0
  278. package/types/modules/global-link/formats/wiki-link.d.ts +16 -0
  279. package/types/modules/global-link/formats/work-item-link.d.ts +16 -0
  280. package/types/modules/global-link/global-link-panel.d.ts +19 -0
  281. package/types/modules/global-link/index.d.ts +18 -0
  282. package/types/modules/global-link/utils/createTable.d.ts +1 -0
  283. package/types/modules/i18n.d.ts +14 -13
  284. package/types/modules/index.d.ts +18 -18
  285. package/types/modules/link/formats/link.d.ts +15 -14
  286. package/types/modules/link/index.d.ts +2 -2
  287. package/types/modules/link/modules/tooltip.d.ts +26 -25
  288. package/types/modules/mathlive/formats.d.ts +21 -20
  289. package/types/modules/mathlive/index.d.ts +3 -3
  290. package/types/modules/mathlive/module.d.ts +8 -7
  291. package/types/modules/mathlive/tooltip.d.ts +15 -14
  292. package/types/modules/mention/{mention.d.ts → Mention.d.ts} +53 -52
  293. package/types/modules/mention/MentionLink.d.ts +16 -0
  294. package/types/modules/mention/constants.d.ts +3 -3
  295. package/types/modules/mention/index.d.ts +2 -2
  296. package/types/modules/mention/mention-link.d.ts +15 -14
  297. package/types/modules/mind-map/config-utils.d.ts +12 -11
  298. package/types/modules/mind-map/formats/mind-map-blot.d.ts +42 -41
  299. package/types/modules/mind-map/i18n/en-us.d.ts +25 -25
  300. package/types/modules/mind-map/i18n/index.d.ts +1 -1
  301. package/types/modules/mind-map/i18n/zh-cn.d.ts +25 -25
  302. package/types/modules/mind-map/icons.d.ts +21 -21
  303. package/types/modules/mind-map/index.d.ts +9 -8
  304. package/types/modules/mind-map/modules/context-menu.d.ts +2 -1
  305. package/types/modules/mind-map/modules/control-panel.d.ts +2 -1
  306. package/types/modules/mind-map/modules/custom-resize-action.d.ts +23 -23
  307. package/types/modules/mind-map/options.d.ts +27 -27
  308. package/types/modules/quick-menu.d.ts +22 -0
  309. package/types/modules/shortcut-key/index.d.ts +68 -67
  310. package/types/modules/syntax.d.ts +13 -12
  311. package/types/modules/table/better-table.d.ts +35 -0
  312. package/types/modules/table/formats/header.d.ts +23 -0
  313. package/types/modules/table/formats/list.d.ts +34 -0
  314. package/types/modules/table/formats/table.d.ts +147 -0
  315. package/types/modules/table/modules/table-column-tool.d.ts +23 -0
  316. package/types/modules/table/modules/table-operation-menu.d.ts +38 -0
  317. package/types/modules/table/modules/table-scroll-bar.d.ts +33 -0
  318. package/types/modules/table/modules/table-selection.d.ts +37 -0
  319. package/types/modules/table/modules/table-selector.d.ts +22 -0
  320. package/types/modules/table/table-config.d.ts +38 -0
  321. package/types/modules/table/utils/index.d.ts +17 -0
  322. package/types/modules/table/utils/node-matchers.d.ts +9 -0
  323. package/types/modules/table-up/index.d.ts +33 -32
  324. package/types/modules/toolbar/better-picker.d.ts +14 -13
  325. package/types/modules/toolbar/better-toolbar.d.ts +7 -6
  326. package/types/modules/toolbar/index.d.ts +3 -3
  327. package/types/modules/toolbar/toolbar-tip.d.ts +8 -7
  328. package/types/themes/snow.d.ts +10 -9
  329. package/types/tools/format-painter.d.ts +13 -12
  330. package/types/tools/fullscreen.d.ts +5 -4
  331. package/types/tools/screenshot.d.ts +18 -17
  332. package/types/ui/icons.config.d.ts +40 -40
  333. package/types/ui/icons.d.ts +6 -6
  334. package/types/utils/debounce.d.ts +6 -6
  335. package/types/utils/image.d.ts +1 -1
  336. package/types/utils/is.d.ts +6 -6
  337. package/types/utils/merge.d.ts +7 -7
  338. package/types/utils/method.d.ts +6 -6
  339. package/types/utils/scroll-lock.d.ts +6 -6
@@ -1,125 +1,125 @@
1
- export declare const ZH_CN: {
2
- header: string;
3
- normal: string;
4
- h1: string;
5
- h2: string;
6
- h3: string;
7
- h4: string;
8
- h5: string;
9
- h6: string;
10
- 'line-height': string;
11
- songti: string;
12
- yahei: string;
13
- kaiti: string;
14
- heiti: string;
15
- lishu: string;
16
- left: string;
17
- center: string;
18
- right: string;
19
- codeblock: string;
20
- globallink: string;
21
- 'exit-fullscreen': string;
22
- help: string;
23
- more: string;
24
- 'help-format': string;
25
- 'help-insert': string;
26
- 'help-operation': string;
27
- mention: string;
28
- 'quick-menu': string;
29
- 'toggle-help-panel': string;
30
- 'scroll-table': string;
31
- 'mouse-wheel': string;
32
- save: string;
33
- 'default-link-text': string;
34
- basicblock: string;
35
- linkplaceholder: string;
36
- 'counter-template': string;
37
- char: string;
38
- word: string;
39
- 'counter-limit-tips': string;
40
- 'ie-msg': string;
41
- loading: string;
42
- pasting: string;
43
- 'img-error': string;
44
- 'img-error-info': string;
45
- 'last-modified': string;
46
- screenshot: string;
47
- uploading: string;
48
- 'sub-title-bg-color': string;
49
- emoji: string;
50
- fullscreen: string;
51
- blockquote: string;
52
- undo: string;
53
- redo: string;
54
- clean: string;
55
- bold: string;
56
- italic: string;
57
- underline: string;
58
- strike: string;
59
- image: string;
60
- file: string;
61
- 'mind-map': string;
62
- 'flow-chart': string;
63
- link: string;
64
- divider: string;
65
- code: string;
66
- table: string;
67
- 'table-up': string;
68
- 'code-block': string;
69
- formula: string;
70
- 'format-painter': string;
71
- video: string;
72
- color: string;
73
- background: string;
74
- font: string;
75
- size: string;
76
- list: string;
77
- 'list-ordered': string;
78
- 'list-bullet': string;
79
- 'list-check': string;
80
- 'align-left': string;
81
- 'align-center': string;
82
- 'align-right': string;
83
- 'align-justify': string;
84
- 'direction-ltr': string;
85
- 'direction-rtl': string;
86
- 'indent--1': string;
87
- 'indent-+1': string;
88
- 'script-super': string;
89
- 'script-sub': string;
90
- 'header-normal': string;
91
- 'header-1': string;
92
- 'header-2': string;
93
- 'header-3': string;
94
- 'header-4': string;
95
- 'header-5': string;
96
- 'header-6': string;
97
- 'header-list': string;
98
- 'input-recall-menu-placeholder': string;
99
- 'clear-color': string;
100
- 'custom-color': string;
101
- fullCheckboxText: string;
102
- customBtnText: string;
103
- confirmText: string;
104
- cancelText: string;
105
- rowText: string;
106
- colText: string;
107
- notPositiveNumberError: string;
108
- custom: string;
109
- clear: string;
110
- transparent: string;
111
- perWidthInsufficient: string;
112
- CopyCell: string;
113
- CutCell: string;
114
- InsertTop: string;
115
- InsertRight: string;
116
- InsertBottom: string;
117
- InsertLeft: string;
118
- MergeCell: string;
119
- SplitCell: string;
120
- DeleteRow: string;
121
- DeleteColumn: string;
122
- DeleteTable: string;
123
- BackgroundColor: string;
124
- BorderColor: string;
125
- };
1
+ export declare const ZH_CN: {
2
+ header: string;
3
+ normal: string;
4
+ h1: string;
5
+ h2: string;
6
+ h3: string;
7
+ h4: string;
8
+ h5: string;
9
+ h6: string;
10
+ 'line-height': string;
11
+ songti: string;
12
+ yahei: string;
13
+ kaiti: string;
14
+ heiti: string;
15
+ lishu: string;
16
+ left: string;
17
+ center: string;
18
+ right: string;
19
+ codeblock: string;
20
+ globallink: string;
21
+ 'exit-fullscreen': string;
22
+ help: string;
23
+ more: string;
24
+ 'help-format': string;
25
+ 'help-insert': string;
26
+ 'help-operation': string;
27
+ mention: string;
28
+ 'quick-menu': string;
29
+ 'toggle-help-panel': string;
30
+ 'scroll-table': string;
31
+ 'mouse-wheel': string;
32
+ save: string;
33
+ 'default-link-text': string;
34
+ basicblock: string;
35
+ linkplaceholder: string;
36
+ 'counter-template': string;
37
+ char: string;
38
+ word: string;
39
+ 'counter-limit-tips': string;
40
+ 'ie-msg': string;
41
+ loading: string;
42
+ pasting: string;
43
+ 'img-error': string;
44
+ 'img-error-info': string;
45
+ 'last-modified': string;
46
+ screenshot: string;
47
+ uploading: string;
48
+ 'sub-title-bg-color': string;
49
+ emoji: string;
50
+ fullscreen: string;
51
+ blockquote: string;
52
+ undo: string;
53
+ redo: string;
54
+ clean: string;
55
+ bold: string;
56
+ italic: string;
57
+ underline: string;
58
+ strike: string;
59
+ image: string;
60
+ file: string;
61
+ 'mind-map': string;
62
+ 'flow-chart': string;
63
+ link: string;
64
+ divider: string;
65
+ code: string;
66
+ table: string;
67
+ 'table-up': string;
68
+ 'code-block': string;
69
+ formula: string;
70
+ 'format-painter': string;
71
+ video: string;
72
+ color: string;
73
+ background: string;
74
+ font: string;
75
+ size: string;
76
+ list: string;
77
+ 'list-ordered': string;
78
+ 'list-bullet': string;
79
+ 'list-check': string;
80
+ 'align-left': string;
81
+ 'align-center': string;
82
+ 'align-right': string;
83
+ 'align-justify': string;
84
+ 'direction-ltr': string;
85
+ 'direction-rtl': string;
86
+ 'indent--1': string;
87
+ 'indent-+1': string;
88
+ 'script-super': string;
89
+ 'script-sub': string;
90
+ 'header-normal': string;
91
+ 'header-1': string;
92
+ 'header-2': string;
93
+ 'header-3': string;
94
+ 'header-4': string;
95
+ 'header-5': string;
96
+ 'header-6': string;
97
+ 'header-list': string;
98
+ 'input-recall-menu-placeholder': string;
99
+ 'clear-color': string;
100
+ 'custom-color': string;
101
+ fullCheckboxText: string;
102
+ customBtnText: string;
103
+ confirmText: string;
104
+ cancelText: string;
105
+ rowText: string;
106
+ colText: string;
107
+ notPositiveNumberError: string;
108
+ custom: string;
109
+ clear: string;
110
+ transparent: string;
111
+ perWidthInsufficient: string;
112
+ CopyCell: string;
113
+ CutCell: string;
114
+ InsertTop: string;
115
+ InsertRight: string;
116
+ InsertBottom: string;
117
+ InsertLeft: string;
118
+ MergeCell: string;
119
+ SplitCell: string;
120
+ DeleteRow: string;
121
+ DeleteColumn: string;
122
+ DeleteTable: string;
123
+ BackgroundColor: string;
124
+ BorderColor: string;
125
+ };
@@ -1,7 +1,7 @@
1
- export * from './editor.config';
2
- export * from './editor.utils';
3
- export * from './types';
4
- export declare function inputFile(type: 'image' | 'video' | 'file', accept: string[]): void;
5
- export declare function getListValue(value: any, preListValue: any): any;
6
- /** css namespace */
7
- export declare const namespace = "fe";
1
+ export * from './editor.config';
2
+ export * from './editor.utils';
3
+ export * from './types';
4
+ export declare function inputFile(type: 'image' | 'video' | 'file', accept: string[]): void;
5
+ export declare function getListValue(value: any, preListValue: any): any;
6
+ /** css namespace */
7
+ export declare const namespace = "fe";
@@ -0,0 +1,8 @@
1
+ import { AnyFunction } from './type';
2
+
3
+ export interface IAdditionalToolItemData {
4
+ name: string;
5
+ content: string;
6
+ icon: string;
7
+ handler: AnyFunction;
8
+ }
@@ -0,0 +1,13 @@
1
+ export interface IContentChange {
2
+ content: any;
3
+ delta: any;
4
+ editor: any;
5
+ html: string | null;
6
+ oldDelta: any;
7
+ source: string;
8
+ text: string;
9
+ textCount: number;
10
+ wordCount: number;
11
+ htmlCount: number;
12
+ isChanged?: boolean;
13
+ }
@@ -0,0 +1,6 @@
1
+ export interface IContentSave {
2
+ editor: any;
3
+ content: any;
4
+ html: string | null;
5
+ text: string;
6
+ }
@@ -0,0 +1,9 @@
1
+ import { AnyFunction } from './type';
2
+
3
+ export interface ICounterOption {
4
+ format?: 'text' | 'html';
5
+ unit?: 'word' | 'char';
6
+ count?: number;
7
+ template?: string | AnyFunction;
8
+ errorTemplate?: string | AnyFunction;
9
+ }
@@ -1,14 +1,15 @@
1
1
  import { QuillOptions } from 'quill';
2
2
  import { ScreenShotOptions } from '../../tools/screenshot';
3
3
  import { IEditorModules } from './editor-modules.interface';
4
- export interface IEditorConfig extends QuillOptions {
5
- 'modules'?: IEditorModules;
6
- 'screenshotOnStaticPage'?: boolean;
7
- 'scrollingContainer'?: HTMLElement | string | null;
8
- 'autoProtocol'?: boolean | string;
9
- 'editorPaste'?: any;
10
- 'screenshot'?: Partial<ScreenShotOptions>;
11
- 'format-painter'?: {
12
- ignoreFormat?: string[];
13
- };
14
- }
4
+
5
+ export interface IEditorConfig extends QuillOptions {
6
+ 'modules'?: IEditorModules;
7
+ 'screenshotOnStaticPage'?: boolean;
8
+ 'scrollingContainer'?: HTMLElement | string | null;
9
+ 'autoProtocol'?: boolean | string;
10
+ 'editorPaste'?: any;
11
+ 'screenshot'?: Partial<ScreenShotOptions>;
12
+ 'format-painter'?: {
13
+ ignoreFormat?: string[];
14
+ };
15
+ }
@@ -5,41 +5,42 @@ import { FileUploaderOptions } from '../../modules/custom-uploader';
5
5
  import { EmojiModuleOptions } from '../../modules/emoji';
6
6
  import { FlowChartOptions } from '../../modules/flow-chart/options';
7
7
  import { MindMapOptions } from '../../modules/mind-map/options';
8
- export type ToolbarOptions = {
9
- container?: HTMLElement | (Record<string, any>[] | string[] | (string | Record<string, any>)[])[];
10
- } & ToolbarProps;
11
- export interface IEditorModules {
12
- [key: string]: any;
13
- 'clipboard'?: {
14
- matchers?: any[];
15
- matchVisual?: boolean;
16
- } | boolean;
17
- 'history'?: {
18
- delay?: number;
19
- maxStack?: number;
20
- userOnly?: boolean;
21
- } | boolean;
22
- 'keyboard'?: {
23
- bindings?: any;
24
- } | boolean;
25
- 'syntax'?: {
26
- interval?: number;
27
- languages?: {
28
- key: string;
29
- label: string;
30
- }[];
31
- hljs?: any;
32
- } | boolean;
33
- 'toolbar'?: boolean | ToolbarOptions | ToolbarOptions['container'] | string[];
34
- 'uploader'?: boolean | Partial<FileUploaderOptions>;
35
- 'shortcut-key'?: boolean | Partial<ShortCutKeyInputOptions>;
36
- 'mention'?: boolean | MentionOption;
37
- 'i18n'?: boolean | Partial<I18NOptions>;
38
- 'counter'?: boolean | ICounterOption;
39
- 'emoji'?: boolean | EmojiModuleOptions;
40
- 'file'?: boolean;
41
- 'mathlive'?: boolean;
42
- 'image'?: boolean | Partial<BlotFormatterOptionsInput>;
43
- 'mind-map'?: boolean | Partial<MindMapOptions>;
44
- 'flow-chart'?: boolean | Partial<FlowChartOptions>;
45
- }
8
+
9
+ export type ToolbarOptions = {
10
+ container?: HTMLElement | (Record<string, any>[] | string[] | (string | Record<string, any>)[])[];
11
+ } & ToolbarProps;
12
+ export interface IEditorModules {
13
+ [key: string]: any;
14
+ 'clipboard'?: {
15
+ matchers?: any[];
16
+ matchVisual?: boolean;
17
+ } | boolean;
18
+ 'history'?: {
19
+ delay?: number;
20
+ maxStack?: number;
21
+ userOnly?: boolean;
22
+ } | boolean;
23
+ 'keyboard'?: {
24
+ bindings?: any;
25
+ } | boolean;
26
+ 'syntax'?: {
27
+ interval?: number;
28
+ languages?: {
29
+ key: string;
30
+ label: string;
31
+ }[];
32
+ hljs?: any;
33
+ } | boolean;
34
+ 'toolbar'?: boolean | ToolbarOptions | ToolbarOptions['container'] | string[];
35
+ 'uploader'?: boolean | Partial<FileUploaderOptions>;
36
+ 'shortcut-key'?: boolean | Partial<ShortCutKeyInputOptions>;
37
+ 'mention'?: boolean | MentionOption;
38
+ 'i18n'?: boolean | Partial<I18NOptions>;
39
+ 'counter'?: boolean | ICounterOption;
40
+ 'emoji'?: boolean | EmojiModuleOptions;
41
+ 'file'?: boolean;
42
+ 'mathlive'?: boolean;
43
+ 'image'?: boolean | Partial<BlotFormatterOptionsInput>;
44
+ 'mind-map'?: boolean | Partial<MindMapOptions>;
45
+ 'flow-chart'?: boolean | Partial<FlowChartOptions>;
46
+ }
@@ -0,0 +1,6 @@
1
+ import { default as Toolbar } from 'quill/modules/toolbar';
2
+ import { default as FluentEditor } from '../../fluent-editor';
3
+
4
+ export interface FluentEditorToolbar extends Toolbar {
5
+ quill: FluentEditor;
6
+ }
@@ -0,0 +1,12 @@
1
+ import { AnyFunction } from './type';
2
+
3
+ export interface FileOperation {
4
+ operation: string;
5
+ hasRejectedFile?: boolean;
6
+ data: {
7
+ fileId?: string;
8
+ file?: File;
9
+ files?: Array<File>;
10
+ };
11
+ callback?: AnyFunction;
12
+ }
@@ -0,0 +1,4 @@
1
+ export interface IFocusChange {
2
+ editor: any;
3
+ source: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface IFullscreenModule {
2
+ mode?: 'normal' | 'immersive';
3
+ zIndex: number;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface IHelpPanelItem {
2
+ icon: string;
3
+ text: string;
4
+ hotkey: string[];
5
+ }
@@ -0,0 +1,7 @@
1
+ import { IHelpPanelItem } from './help-panel-item.interface';
2
+
3
+ export interface IHelpPanelOption {
4
+ id: string;
5
+ title: string;
6
+ content: IHelpPanelItem[];
7
+ }
@@ -0,0 +1,3 @@
1
+ export interface ImageModule {
2
+ zIndex: number;
3
+ }
@@ -0,0 +1,7 @@
1
+ import { AnyFunction } from './type';
2
+
3
+ export interface ImageUpload {
4
+ file: File;
5
+ hasRejectedImage?: boolean;
6
+ callback: AnyFunction;
7
+ }
@@ -1,3 +1,3 @@
1
- export * from './editor-config.interface';
2
- export * from './editor-modules.interface';
3
- export * from './type';
1
+ export * from './editor-config.interface';
2
+ export * from './editor-modules.interface';
3
+ export * from './type';
@@ -0,0 +1,5 @@
1
+ export interface ILoadOnDemandModule {
2
+ mode?: 'line' | 'text';
3
+ limit?: number;
4
+ lazy?: boolean;
5
+ }
@@ -0,0 +1,8 @@
1
+ export interface IMentionModule {
2
+ data: object[];
3
+ itemKey: string;
4
+ searchKey: string;
5
+ mentionSearchFn?: (term: string) => Promise<any[]>;
6
+ mentionSelect?: any;
7
+ mentionRemove?: any;
8
+ }
@@ -0,0 +1,6 @@
1
+ import { AnyFunction } from './type';
2
+
3
+ export interface IPasteChange {
4
+ files: File[];
5
+ callback: AnyFunction;
6
+ }
@@ -0,0 +1,3 @@
1
+ export interface IQuickMenuModule {
2
+ zIndex: number;
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface IRange {
2
+ index: number;
3
+ length: number;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface IRegistryOption {
2
+ importUrl?: string;
3
+ params?: any;
4
+ register?: any;
5
+ }
@@ -0,0 +1,8 @@
1
+ import { IRange } from './range.interface';
2
+
3
+ export interface ISelectionChange {
4
+ editor: any;
5
+ oldRange: IRange | null;
6
+ range: IRange | null;
7
+ source: string;
8
+ }
@@ -0,0 +1,13 @@
1
+ export interface IToolbarItem {
2
+ indent?: string;
3
+ list?: string;
4
+ direction?: string;
5
+ header?: number | (boolean | number)[];
6
+ color?: string[];
7
+ background?: string[];
8
+ align?: string[];
9
+ script?: string;
10
+ font?: string[];
11
+ size?: boolean[] | string[];
12
+ lineheight?: number[];
13
+ }
@@ -1,2 +1,2 @@
1
- export type AnyFunction = (...args: any[]) => any;
2
- export type Constructor<T = any, U extends Array<any> = any[]> = new (...args: U) => T;
1
+ export type AnyFunction = (...args: any[]) => any;
2
+ export type Constructor<T = any, U extends Array<any> = any[]> = new (...args: U) => T;
@@ -0,0 +1,13 @@
1
+ export interface IValidateError {
2
+ minLengthError?: {
3
+ given: number;
4
+ minLength: number;
5
+ };
6
+ maxLengthError?: {
7
+ given: number;
8
+ maxLength: number;
9
+ };
10
+ requiredError?: {
11
+ empty: boolean;
12
+ };
13
+ }
@@ -1,13 +1,14 @@
1
1
  import { ExpandedQuillOptions, default as Quill } from 'quill';
2
2
  import { IEditorConfig } from '../config/types';
3
3
  import { FileUploader } from '../modules/custom-uploader';
4
- declare class FluentEditor extends Quill {
5
- isFullscreen: boolean;
6
- options: IEditorConfig & ExpandedQuillOptions;
7
- uploader: FileUploader;
8
- static register(...args: any[]): void;
9
- get lang(): string;
10
- constructor(container: HTMLElement | string, options?: IEditorConfig);
11
- getLangText(name: string): string;
12
- }
13
- export default FluentEditor;
4
+
5
+ declare class FluentEditor extends Quill {
6
+ isFullscreen: boolean;
7
+ options: IEditorConfig & ExpandedQuillOptions;
8
+ uploader: FileUploader;
9
+ static register(...args: any[]): void;
10
+ get lang(): string;
11
+ constructor(container: HTMLElement | string, options?: IEditorConfig);
12
+ getLangText(name: string): string;
13
+ }
14
+ export default FluentEditor;
@@ -1,2 +1,3 @@
1
1
  import { default as FluentEditor } from './core/fluent-editor';
2
- export default FluentEditor;
2
+
3
+ export default FluentEditor;
@@ -1,8 +1,9 @@
1
1
  import { default as TypeInline } from 'quill/blots/inline';
2
- declare const Inline: typeof TypeInline;
3
- export declare class EmojiBlot extends Inline {
4
- static blotName: string;
5
- static tagName: string;
6
- static className: string;
7
- }
8
- export {};
2
+
3
+ declare const Inline: typeof TypeInline;
4
+ export declare class EmojiBlot extends Inline {
5
+ static blotName: string;
6
+ static tagName: string;
7
+ static className: string;
8
+ }
9
+ export {};
@@ -1,4 +1,4 @@
1
- export * from './emoji';
2
- export * from './soft-break';
3
- export * from './strike';
4
- export * from './video';
1
+ export * from './emoji';
2
+ export * from './soft-break';
3
+ export * from './strike';
4
+ export * from './video';