@opentiny/fluent-editor 4.0.0-alpha.1 → 4.0.0-alpha.10

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 (588) hide show
  1. package/README.md +88 -105
  2. package/es/attributors/line-height.es.js.map +1 -1
  3. package/es/config/base64-image.es.js.map +1 -1
  4. package/es/config/editor.config.es.js.map +1 -1
  5. package/es/config/editor.utils.es.js +0 -2
  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 +2 -2
  10. package/es/config/index.es.js.map +1 -1
  11. package/es/config/types/index.es.js +0 -20
  12. package/es/config/types/index.es.js.map +1 -1
  13. package/es/core/fluent-editor.es.js +4 -1
  14. package/es/core/fluent-editor.es.js.map +1 -1
  15. package/es/fluent-editor.es.js +26 -19
  16. package/es/fluent-editor.es.js.map +1 -1
  17. package/es/formats/emoji.es.js +14 -0
  18. package/es/formats/emoji.es.js.map +1 -0
  19. package/es/formats/index.es.js +11 -0
  20. package/es/formats/index.es.js.map +1 -0
  21. package/es/formats/soft-break.es.js +12 -5
  22. package/es/formats/soft-break.es.js.map +1 -1
  23. package/es/formats/strike.es.js +8 -5
  24. package/es/formats/strike.es.js.map +1 -1
  25. package/es/formats/video.es.js +14 -10
  26. package/es/formats/video.es.js.map +1 -1
  27. package/es/index.es.js +92 -31
  28. package/es/index.es.js.map +1 -1
  29. package/es/modules/ai/constants.es.js +50 -0
  30. package/es/modules/ai/constants.es.js.map +1 -0
  31. package/es/modules/ai/icons.es.js +319 -0
  32. package/es/modules/ai/icons.es.js.map +1 -0
  33. package/es/modules/ai/index.es.js +670 -0
  34. package/es/modules/ai/index.es.js.map +1 -0
  35. package/es/modules/collaborative-editing/awareness/awareness.es.js +93 -0
  36. package/es/modules/collaborative-editing/awareness/awareness.es.js.map +1 -0
  37. package/es/modules/collaborative-editing/awareness/index.es.js +8 -0
  38. package/es/modules/{emoji/emoji-list → collaborative-editing/awareness}/index.es.js.map +1 -1
  39. package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js +12 -0
  40. package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js.map +1 -0
  41. package/es/modules/collaborative-editing/collaborative-editing.es.js +105 -0
  42. package/es/modules/collaborative-editing/collaborative-editing.es.js.map +1 -0
  43. package/es/modules/collaborative-editing/index.es.js +6 -0
  44. package/es/modules/collaborative-editing/index.es.js.map +1 -0
  45. package/es/modules/collaborative-editing/module.es.js +35 -0
  46. package/es/modules/collaborative-editing/module.es.js.map +1 -0
  47. package/es/modules/collaborative-editing/provider/providerRegistry.es.js +28 -0
  48. package/es/modules/collaborative-editing/provider/providerRegistry.es.js.map +1 -0
  49. package/es/modules/collaborative-editing/provider/webrtc.es.js +99 -0
  50. package/es/modules/collaborative-editing/provider/webrtc.es.js.map +1 -0
  51. package/es/modules/collaborative-editing/provider/websocket.es.js +111 -0
  52. package/es/modules/collaborative-editing/provider/websocket.es.js.map +1 -0
  53. package/es/modules/collaborative-editing/types.es.js +2 -0
  54. package/es/modules/collaborative-editing/types.es.js.map +1 -0
  55. package/es/modules/counter.es.js +8 -3
  56. package/es/modules/counter.es.js.map +1 -1
  57. package/es/modules/custom-clipboard.es.js +20 -22
  58. package/es/modules/custom-clipboard.es.js.map +1 -1
  59. package/es/modules/custom-image/actions/action.es.js +19 -0
  60. package/es/modules/custom-image/actions/action.es.js.map +1 -0
  61. package/es/modules/custom-image/actions/{CustomResizeAction.es.js → custom-resize-action.es.js} +24 -11
  62. package/es/modules/custom-image/actions/custom-resize-action.es.js.map +1 -0
  63. package/es/modules/custom-image/actions/{DeleteAction.es.js → delete-action.es.js} +8 -5
  64. package/es/modules/custom-image/actions/delete-action.es.js.map +1 -0
  65. package/es/modules/custom-image/actions/image-toolbar-buttons.es.js +137 -0
  66. package/es/modules/custom-image/actions/image-toolbar-buttons.es.js.map +1 -0
  67. package/es/modules/custom-image/actions/index.es.js +18 -0
  68. package/es/modules/custom-image/actions/index.es.js.map +1 -0
  69. package/es/modules/custom-image/actions/toolbar-action.es.js +33 -0
  70. package/es/modules/custom-image/actions/toolbar-action.es.js.map +1 -0
  71. package/es/modules/custom-image/actions/toolbar.es.js +110 -0
  72. package/es/modules/custom-image/actions/toolbar.es.js.map +1 -0
  73. package/es/modules/custom-image/{BlotFormatter.es.js → blot-formatter.es.js} +27 -49
  74. package/es/modules/custom-image/blot-formatter.es.js.map +1 -0
  75. package/es/modules/custom-image/image.es.js +39 -7
  76. package/es/modules/custom-image/image.es.js.map +1 -1
  77. package/es/modules/custom-image/index.es.js +9 -0
  78. package/es/modules/custom-image/index.es.js.map +1 -0
  79. package/es/modules/custom-image/options.es.js +88 -0
  80. package/es/modules/custom-image/options.es.js.map +1 -0
  81. package/es/modules/custom-image/specs/blot-spec.es.js +33 -0
  82. package/es/modules/custom-image/specs/blot-spec.es.js.map +1 -0
  83. package/es/modules/custom-image/specs/{CustomImageSpec.es.js → custom-image-spec.es.js} +13 -14
  84. package/es/modules/custom-image/specs/custom-image-spec.es.js.map +1 -0
  85. package/es/modules/custom-image/specs/image-spec.es.js +32 -0
  86. package/es/modules/custom-image/specs/image-spec.es.js.map +1 -0
  87. package/es/modules/custom-image/specs/index.es.js +9 -0
  88. package/es/modules/custom-image/specs/index.es.js.map +1 -0
  89. package/es/modules/custom-uploader.es.js +7 -5
  90. package/es/modules/custom-uploader.es.js.map +1 -1
  91. package/es/modules/divider.es.js +8 -7
  92. package/es/modules/divider.es.js.map +1 -1
  93. package/es/modules/emoji.es.js +167 -0
  94. package/es/modules/emoji.es.js.map +1 -0
  95. package/es/modules/file/formats/file.es.js +10 -8
  96. package/es/modules/file/formats/file.es.js.map +1 -1
  97. package/es/modules/file/index.es.js +6 -28
  98. package/es/modules/file/index.es.js.map +1 -1
  99. package/es/modules/file/modules/file-bar.es.js +11 -3
  100. package/es/modules/file/modules/file-bar.es.js.map +1 -1
  101. package/es/modules/file/modules/file-module.es.js +35 -0
  102. package/es/modules/file/modules/file-module.es.js.map +1 -0
  103. package/es/modules/i18n.es.js +6 -3
  104. package/es/modules/i18n.es.js.map +1 -1
  105. package/es/modules/index.es.js +27 -0
  106. package/es/modules/index.es.js.map +1 -0
  107. package/es/modules/link/formats/link.es.js +14 -10
  108. package/es/modules/link/formats/link.es.js.map +1 -1
  109. package/es/modules/link/index.es.js +4 -12
  110. package/es/modules/link/index.es.js.map +1 -1
  111. package/es/modules/link/modules/tooltip.es.js +28 -19
  112. package/es/modules/link/modules/tooltip.es.js.map +1 -1
  113. package/es/modules/mathlive/formats.es.js +10 -7
  114. package/es/modules/mathlive/formats.es.js.map +1 -1
  115. package/es/modules/mathlive/index.es.js +6 -30
  116. package/es/modules/mathlive/index.es.js.map +1 -1
  117. package/es/modules/mathlive/module.es.js +40 -0
  118. package/es/modules/mathlive/module.es.js.map +1 -0
  119. package/es/modules/mathlive/tooltip.es.js +9 -5
  120. package/es/modules/mathlive/tooltip.es.js.map +1 -1
  121. package/es/modules/mention/constants.es.js.map +1 -1
  122. package/es/modules/mention/index.es.js +7 -0
  123. package/es/modules/mention/index.es.js.map +1 -0
  124. package/es/modules/mention/{MentionLink.es.js → mention-link.es.js} +14 -6
  125. package/es/modules/mention/mention-link.es.js.map +1 -0
  126. package/es/modules/mention/{Mention.es.js → mention.es.js} +28 -20
  127. package/es/modules/mention/mention.es.js.map +1 -0
  128. package/es/modules/shortcut-key/index.es.js.map +1 -1
  129. package/es/modules/syntax.es.js +4 -0
  130. package/es/modules/syntax.es.js.map +1 -1
  131. package/es/modules/table-up/index.es.js +16 -6
  132. package/es/modules/table-up/index.es.js.map +1 -1
  133. package/es/modules/toolbar/better-picker.es.js +5 -0
  134. package/es/modules/toolbar/better-picker.es.js.map +1 -1
  135. package/es/modules/toolbar/better-toolbar.es.js +138 -0
  136. package/es/modules/toolbar/better-toolbar.es.js.map +1 -0
  137. package/es/modules/toolbar/index.es.js +5 -135
  138. package/es/modules/toolbar/index.es.js.map +1 -1
  139. package/es/themes/snow.es.js +18 -10
  140. package/es/themes/snow.es.js.map +1 -1
  141. package/es/tools/format-painter.es.js +8 -2
  142. package/es/tools/format-painter.es.js.map +1 -1
  143. package/es/tools/fullscreen.es.js.map +1 -1
  144. package/es/tools/screenshot.es.js.map +1 -1
  145. package/es/ui/icons.config.es.js +53 -0
  146. package/es/ui/icons.config.es.js.map +1 -1
  147. package/es/ui/icons.es.js +2 -1
  148. package/es/ui/icons.es.js.map +1 -1
  149. package/es/utils/debounce.es.js.map +1 -1
  150. package/es/utils/is.es.js.map +1 -1
  151. package/es/utils/method.es.js.map +1 -1
  152. package/lib/attributors/line-height.cjs.js.map +1 -1
  153. package/lib/config/base64-image.cjs.js.map +1 -1
  154. package/lib/config/editor.config.cjs.js.map +1 -1
  155. package/lib/config/editor.utils.cjs.js +0 -2
  156. package/lib/config/editor.utils.cjs.js.map +1 -1
  157. package/lib/config/i18n/en-us.cjs.js.map +1 -1
  158. package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
  159. package/lib/config/index.cjs.js +1 -1
  160. package/lib/config/index.cjs.js.map +1 -1
  161. package/lib/config/types/index.cjs.js +0 -20
  162. package/lib/config/types/index.cjs.js.map +1 -1
  163. package/lib/core/fluent-editor.cjs.js +4 -1
  164. package/lib/core/fluent-editor.cjs.js.map +1 -1
  165. package/lib/fluent-editor.cjs.js +35 -28
  166. package/lib/fluent-editor.cjs.js.map +1 -1
  167. package/lib/formats/emoji.cjs.js +14 -0
  168. package/lib/formats/emoji.cjs.js.map +1 -0
  169. package/lib/formats/index.cjs.js +11 -0
  170. package/lib/formats/index.cjs.js.map +1 -0
  171. package/lib/formats/soft-break.cjs.js +13 -6
  172. package/lib/formats/soft-break.cjs.js.map +1 -1
  173. package/lib/formats/strike.cjs.js +9 -6
  174. package/lib/formats/strike.cjs.js.map +1 -1
  175. package/lib/formats/video.cjs.js +15 -11
  176. package/lib/formats/video.cjs.js.map +1 -1
  177. package/lib/index.cjs.js +113 -34
  178. package/lib/index.cjs.js.map +1 -1
  179. package/lib/modules/ai/constants.cjs.js +50 -0
  180. package/lib/modules/ai/constants.cjs.js.map +1 -0
  181. package/lib/modules/ai/icons.cjs.js +319 -0
  182. package/lib/modules/ai/icons.cjs.js.map +1 -0
  183. package/lib/modules/ai/index.cjs.js +670 -0
  184. package/lib/modules/ai/index.cjs.js.map +1 -0
  185. package/lib/modules/collaborative-editing/awareness/awareness.cjs.js +110 -0
  186. package/lib/modules/collaborative-editing/awareness/awareness.cjs.js.map +1 -0
  187. package/lib/modules/collaborative-editing/awareness/index.cjs.js +8 -0
  188. package/lib/modules/collaborative-editing/awareness/index.cjs.js.map +1 -0
  189. package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js +12 -0
  190. package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js.map +1 -0
  191. package/lib/modules/collaborative-editing/collaborative-editing.cjs.js +122 -0
  192. package/lib/modules/collaborative-editing/collaborative-editing.cjs.js.map +1 -0
  193. package/lib/modules/collaborative-editing/index.cjs.js +6 -0
  194. package/lib/modules/{emoji/emoji-list → collaborative-editing}/index.cjs.js.map +1 -1
  195. package/lib/modules/collaborative-editing/module.cjs.js +35 -0
  196. package/lib/modules/collaborative-editing/module.cjs.js.map +1 -0
  197. package/lib/modules/collaborative-editing/provider/providerRegistry.cjs.js +28 -0
  198. package/lib/modules/collaborative-editing/provider/providerRegistry.cjs.js.map +1 -0
  199. package/lib/modules/collaborative-editing/provider/webrtc.cjs.js +116 -0
  200. package/lib/modules/collaborative-editing/provider/webrtc.cjs.js.map +1 -0
  201. package/lib/modules/collaborative-editing/provider/websocket.cjs.js +128 -0
  202. package/lib/modules/collaborative-editing/provider/websocket.cjs.js.map +1 -0
  203. package/lib/modules/collaborative-editing/types.cjs.js +2 -0
  204. package/lib/modules/collaborative-editing/types.cjs.js.map +1 -0
  205. package/lib/modules/counter.cjs.js +8 -3
  206. package/lib/modules/counter.cjs.js.map +1 -1
  207. package/lib/modules/custom-clipboard.cjs.js +21 -23
  208. package/lib/modules/custom-clipboard.cjs.js.map +1 -1
  209. package/lib/modules/custom-image/actions/action.cjs.js +19 -0
  210. package/lib/modules/custom-image/actions/action.cjs.js.map +1 -0
  211. package/lib/modules/custom-image/actions/{CustomResizeAction.cjs.js → custom-resize-action.cjs.js} +26 -13
  212. package/lib/modules/custom-image/actions/custom-resize-action.cjs.js.map +1 -0
  213. package/lib/modules/custom-image/actions/{DeleteAction.cjs.js → delete-action.cjs.js} +10 -7
  214. package/lib/modules/custom-image/actions/delete-action.cjs.js.map +1 -0
  215. package/lib/modules/custom-image/actions/image-toolbar-buttons.cjs.js +137 -0
  216. package/lib/modules/custom-image/actions/image-toolbar-buttons.cjs.js.map +1 -0
  217. package/lib/modules/custom-image/actions/index.cjs.js +18 -0
  218. package/lib/modules/custom-image/actions/index.cjs.js.map +1 -0
  219. package/lib/modules/custom-image/actions/toolbar-action.cjs.js +33 -0
  220. package/lib/modules/custom-image/actions/toolbar-action.cjs.js.map +1 -0
  221. package/lib/modules/custom-image/actions/toolbar.cjs.js +110 -0
  222. package/lib/modules/custom-image/actions/toolbar.cjs.js.map +1 -0
  223. package/lib/modules/custom-image/{BlotFormatter.cjs.js → blot-formatter.cjs.js} +28 -50
  224. package/lib/modules/custom-image/blot-formatter.cjs.js.map +1 -0
  225. package/lib/modules/custom-image/image.cjs.js +40 -8
  226. package/lib/modules/custom-image/image.cjs.js.map +1 -1
  227. package/lib/modules/custom-image/index.cjs.js +9 -0
  228. package/lib/modules/custom-image/index.cjs.js.map +1 -0
  229. package/lib/modules/custom-image/options.cjs.js +88 -0
  230. package/lib/modules/custom-image/options.cjs.js.map +1 -0
  231. package/lib/modules/custom-image/specs/blot-spec.cjs.js +33 -0
  232. package/lib/modules/custom-image/specs/blot-spec.cjs.js.map +1 -0
  233. package/lib/modules/custom-image/specs/{CustomImageSpec.cjs.js → custom-image-spec.cjs.js} +14 -15
  234. package/lib/modules/custom-image/specs/custom-image-spec.cjs.js.map +1 -0
  235. package/lib/modules/custom-image/specs/image-spec.cjs.js +32 -0
  236. package/lib/modules/custom-image/specs/image-spec.cjs.js.map +1 -0
  237. package/lib/modules/custom-image/specs/index.cjs.js +9 -0
  238. package/lib/modules/custom-image/specs/index.cjs.js.map +1 -0
  239. package/lib/modules/custom-uploader.cjs.js +7 -5
  240. package/lib/modules/custom-uploader.cjs.js.map +1 -1
  241. package/lib/modules/divider.cjs.js +9 -8
  242. package/lib/modules/divider.cjs.js.map +1 -1
  243. package/lib/modules/emoji.cjs.js +167 -0
  244. package/lib/modules/emoji.cjs.js.map +1 -0
  245. package/lib/modules/file/formats/file.cjs.js +11 -9
  246. package/lib/modules/file/formats/file.cjs.js.map +1 -1
  247. package/lib/modules/file/index.cjs.js +5 -27
  248. package/lib/modules/file/index.cjs.js.map +1 -1
  249. package/lib/modules/file/modules/file-bar.cjs.js +12 -4
  250. package/lib/modules/file/modules/file-bar.cjs.js.map +1 -1
  251. package/lib/modules/file/modules/file-module.cjs.js +35 -0
  252. package/lib/modules/file/modules/file-module.cjs.js.map +1 -0
  253. package/lib/modules/i18n.cjs.js +6 -3
  254. package/lib/modules/i18n.cjs.js.map +1 -1
  255. package/lib/modules/index.cjs.js +27 -0
  256. package/lib/modules/index.cjs.js.map +1 -0
  257. package/lib/modules/link/formats/link.cjs.js +15 -11
  258. package/lib/modules/link/formats/link.cjs.js.map +1 -1
  259. package/lib/modules/link/index.cjs.js +4 -12
  260. package/lib/modules/link/index.cjs.js.map +1 -1
  261. package/lib/modules/link/modules/tooltip.cjs.js +28 -19
  262. package/lib/modules/link/modules/tooltip.cjs.js.map +1 -1
  263. package/lib/modules/mathlive/formats.cjs.js +11 -8
  264. package/lib/modules/mathlive/formats.cjs.js.map +1 -1
  265. package/lib/modules/mathlive/index.cjs.js +5 -29
  266. package/lib/modules/mathlive/index.cjs.js.map +1 -1
  267. package/lib/modules/mathlive/module.cjs.js +40 -0
  268. package/lib/modules/mathlive/module.cjs.js.map +1 -0
  269. package/lib/modules/mathlive/tooltip.cjs.js +10 -6
  270. package/lib/modules/mathlive/tooltip.cjs.js.map +1 -1
  271. package/lib/modules/mention/constants.cjs.js.map +1 -1
  272. package/lib/modules/mention/index.cjs.js +7 -0
  273. package/lib/modules/mention/index.cjs.js.map +1 -0
  274. package/lib/modules/mention/{MentionLink.cjs.js → mention-link.cjs.js} +15 -7
  275. package/lib/modules/mention/mention-link.cjs.js.map +1 -0
  276. package/lib/modules/mention/{Mention.cjs.js → mention.cjs.js} +30 -22
  277. package/lib/modules/mention/mention.cjs.js.map +1 -0
  278. package/lib/modules/shortcut-key/index.cjs.js.map +1 -1
  279. package/lib/modules/syntax.cjs.js +4 -0
  280. package/lib/modules/syntax.cjs.js.map +1 -1
  281. package/lib/modules/table-up/index.cjs.js +16 -6
  282. package/lib/modules/table-up/index.cjs.js.map +1 -1
  283. package/lib/modules/toolbar/better-picker.cjs.js +5 -0
  284. package/lib/modules/toolbar/better-picker.cjs.js.map +1 -1
  285. package/lib/modules/toolbar/better-toolbar.cjs.js +138 -0
  286. package/lib/modules/toolbar/better-toolbar.cjs.js.map +1 -0
  287. package/lib/modules/toolbar/index.cjs.js +6 -136
  288. package/lib/modules/toolbar/index.cjs.js.map +1 -1
  289. package/lib/themes/snow.cjs.js +19 -11
  290. package/lib/themes/snow.cjs.js.map +1 -1
  291. package/lib/tools/format-painter.cjs.js +8 -2
  292. package/lib/tools/format-painter.cjs.js.map +1 -1
  293. package/lib/tools/fullscreen.cjs.js.map +1 -1
  294. package/lib/tools/screenshot.cjs.js.map +1 -1
  295. package/lib/ui/icons.cjs.js +1 -0
  296. package/lib/ui/icons.cjs.js.map +1 -1
  297. package/lib/ui/icons.config.cjs.js +53 -0
  298. package/lib/ui/icons.config.cjs.js.map +1 -1
  299. package/lib/utils/debounce.cjs.js.map +1 -1
  300. package/lib/utils/is.cjs.js.map +1 -1
  301. package/lib/utils/method.cjs.js.map +1 -1
  302. package/package.json +68 -59
  303. package/style.css +2354 -2233
  304. package/types/attributors/font-size.d.ts +1 -1
  305. package/types/attributors/font-style.d.ts +1 -1
  306. package/types/attributors/index.d.ts +4 -4
  307. package/types/attributors/line-height.d.ts +1 -1
  308. package/types/attributors/text-indent.d.ts +1 -1
  309. package/types/config/base64-image.d.ts +2 -2
  310. package/types/config/editor.config.d.ts +11 -11
  311. package/types/config/editor.utils.d.ts +40 -41
  312. package/types/config/i18n/en-us.d.ts +123 -123
  313. package/types/config/i18n/zh-cn.d.ts +123 -123
  314. package/types/config/index.d.ts +7 -6
  315. package/types/config/types/editor-config.interface.d.ts +11 -16
  316. package/types/config/types/editor-modules.interface.d.ts +40 -32
  317. package/types/config/types/index.d.ts +3 -23
  318. package/types/config/types/type.d.ts +2 -6
  319. package/types/core/fluent-editor.d.ts +10 -12
  320. package/types/fluent-editor.d.ts +1 -2
  321. package/types/formats/emoji.d.ts +8 -0
  322. package/types/formats/index.d.ts +4 -0
  323. package/types/formats/soft-break.d.ts +12 -14
  324. package/types/formats/strike.d.ts +8 -7
  325. package/types/formats/video.d.ts +13 -16
  326. package/types/index.d.ts +7 -7
  327. package/types/modules/ai/constants.d.ts +30 -0
  328. package/types/modules/ai/icons.d.ts +21 -0
  329. package/types/modules/ai/index.d.ts +96 -0
  330. package/types/modules/ai/types.d.ts +16 -0
  331. package/types/modules/collaborative-editing/awareness/awareness.d.ts +28 -0
  332. package/types/modules/collaborative-editing/awareness/index.d.ts +2 -0
  333. package/types/modules/collaborative-editing/awareness/y-indexeddb.d.ts +2 -0
  334. package/types/modules/collaborative-editing/collaborative-editing.d.ts +24 -0
  335. package/types/modules/collaborative-editing/index.d.ts +2 -0
  336. package/types/modules/collaborative-editing/module.d.ts +11 -0
  337. package/types/modules/collaborative-editing/provider/index.d.ts +3 -0
  338. package/types/modules/collaborative-editing/provider/providerRegistry.d.ts +25 -0
  339. package/types/modules/collaborative-editing/provider/webrtc.d.ts +36 -0
  340. package/types/modules/collaborative-editing/provider/websocket.d.ts +40 -0
  341. package/types/modules/collaborative-editing/types.d.ts +37 -0
  342. package/types/modules/counter.d.ts +22 -16
  343. package/types/modules/custom-clipboard.d.ts +23 -27
  344. package/types/modules/custom-image/actions/action.d.ts +8 -0
  345. package/types/modules/custom-image/actions/{CustomResizeAction.d.ts → custom-resize-action.d.ts} +23 -24
  346. package/types/modules/custom-image/actions/delete-action.d.ts +6 -0
  347. package/types/modules/custom-image/actions/image-toolbar-buttons.d.ts +16 -0
  348. package/types/modules/custom-image/actions/index.d.ts +6 -0
  349. package/types/modules/custom-image/actions/toolbar-action.d.ts +11 -0
  350. package/types/modules/custom-image/actions/toolbar.d.ts +19 -0
  351. package/types/modules/custom-image/blot-formatter.d.ts +23 -0
  352. package/types/modules/custom-image/image.d.ts +27 -24
  353. package/types/modules/custom-image/index.d.ts +4 -0
  354. package/types/modules/custom-image/options.d.ts +47 -0
  355. package/types/modules/custom-image/specs/blot-spec.d.ts +12 -0
  356. package/types/modules/custom-image/specs/{CustomImageSpec.d.ts → custom-image-spec.d.ts} +17 -21
  357. package/types/modules/custom-image/specs/image-spec.d.ts +8 -0
  358. package/types/modules/custom-image/specs/index.d.ts +3 -0
  359. package/types/modules/custom-uploader.d.ts +40 -0
  360. package/types/modules/divider.d.ts +8 -7
  361. package/types/modules/emoji.d.ts +39 -0
  362. package/types/modules/file/formats/file.d.ts +17 -18
  363. package/types/modules/file/index.d.ts +3 -11
  364. package/types/modules/file/modules/file-bar.d.ts +14 -14
  365. package/types/modules/file/modules/file-module.d.ts +9 -0
  366. package/types/modules/i18n.d.ts +13 -15
  367. package/types/modules/index.d.ts +16 -0
  368. package/types/modules/link/formats/link.d.ts +14 -15
  369. package/types/modules/link/index.d.ts +2 -6
  370. package/types/modules/link/modules/tooltip.d.ts +26 -32
  371. package/types/modules/mathlive/formats.d.ts +20 -21
  372. package/types/modules/mathlive/index.d.ts +3 -9
  373. package/types/modules/mathlive/module.d.ts +9 -0
  374. package/types/modules/mathlive/tooltip.d.ts +14 -15
  375. package/types/modules/mention/constants.d.ts +3 -3
  376. package/types/modules/mention/index.d.ts +2 -0
  377. package/types/modules/mention/{MentionLink.d.ts → mention-link.d.ts} +15 -15
  378. package/types/modules/mention/{Mention.d.ts → mention.d.ts} +52 -54
  379. package/types/modules/shortcut-key/index.d.ts +67 -64
  380. package/types/modules/syntax.d.ts +12 -13
  381. package/types/modules/table-up/index.d.ts +32 -64
  382. package/types/modules/toolbar/better-picker.d.ts +13 -14
  383. package/types/modules/toolbar/better-toolbar.d.ts +7 -0
  384. package/types/modules/toolbar/index.d.ts +3 -9
  385. package/types/modules/toolbar/toolbar-tip.d.ts +7 -8
  386. package/types/themes/snow.d.ts +9 -10
  387. package/types/tools/format-painter.d.ts +12 -14
  388. package/types/tools/fullscreen.d.ts +6 -3
  389. package/types/tools/screenshot.d.ts +17 -18
  390. package/types/ui/icons.config.d.ts +38 -36
  391. package/types/ui/icons.d.ts +6 -6
  392. package/types/utils/debounce.d.ts +6 -6
  393. package/types/utils/image.d.ts +1 -1
  394. package/types/utils/is.d.ts +6 -6
  395. package/types/utils/method.d.ts +6 -6
  396. package/types/utils/scroll-lock.d.ts +6 -6
  397. package/es/config/types/additional-toolbar-item.interface.es.js +0 -2
  398. package/es/config/types/additional-toolbar-item.interface.es.js.map +0 -1
  399. package/es/config/types/content-change.interface.es.js +0 -2
  400. package/es/config/types/content-change.interface.es.js.map +0 -1
  401. package/es/config/types/content-save.interface.es.js +0 -2
  402. package/es/config/types/content-save.interface.es.js.map +0 -1
  403. package/es/config/types/counter-option.interface.es.js +0 -2
  404. package/es/config/types/counter-option.interface.es.js.map +0 -1
  405. package/es/config/types/editor-toolbar.interface.es.js +0 -2
  406. package/es/config/types/editor-toolbar.interface.es.js.map +0 -1
  407. package/es/config/types/file-operation.interface.es.js +0 -2
  408. package/es/config/types/file-operation.interface.es.js.map +0 -1
  409. package/es/config/types/focus-change.interface.es.js +0 -2
  410. package/es/config/types/focus-change.interface.es.js.map +0 -1
  411. package/es/config/types/fullscreen-module.interface.es.js +0 -2
  412. package/es/config/types/fullscreen-module.interface.es.js.map +0 -1
  413. package/es/config/types/help-panel-item.interface.es.js +0 -2
  414. package/es/config/types/help-panel-item.interface.es.js.map +0 -1
  415. package/es/config/types/help-panel-option.interface.es.js +0 -2
  416. package/es/config/types/help-panel-option.interface.es.js.map +0 -1
  417. package/es/config/types/image-module.interface.es.js +0 -2
  418. package/es/config/types/image-module.interface.es.js.map +0 -1
  419. package/es/config/types/image-upload.interface.es.js +0 -2
  420. package/es/config/types/image-upload.interface.es.js.map +0 -1
  421. package/es/config/types/load-on-demand-module.interface.es.js +0 -2
  422. package/es/config/types/load-on-demand-module.interface.es.js.map +0 -1
  423. package/es/config/types/mention-module.interface.es.js +0 -2
  424. package/es/config/types/mention-module.interface.es.js.map +0 -1
  425. package/es/config/types/paste-change.interface.es.js +0 -2
  426. package/es/config/types/paste-change.interface.es.js.map +0 -1
  427. package/es/config/types/quick-menu-module.interface.es.js +0 -2
  428. package/es/config/types/quick-menu-module.interface.es.js.map +0 -1
  429. package/es/config/types/range.interface.es.js +0 -2
  430. package/es/config/types/range.interface.es.js.map +0 -1
  431. package/es/config/types/registry-options.interface.es.js +0 -2
  432. package/es/config/types/registry-options.interface.es.js.map +0 -1
  433. package/es/config/types/selection-change.interface.es.js +0 -2
  434. package/es/config/types/selection-change.interface.es.js.map +0 -1
  435. package/es/config/types/toolbar-item.interface.es.js +0 -2
  436. package/es/config/types/toolbar-item.interface.es.js.map +0 -1
  437. package/es/config/types/validate-error.interface.es.js +0 -2
  438. package/es/config/types/validate-error.interface.es.js.map +0 -1
  439. package/es/modules/custom-image/BlotFormatter.es.js.map +0 -1
  440. package/es/modules/custom-image/Options.es.js +0 -95
  441. package/es/modules/custom-image/Options.es.js.map +0 -1
  442. package/es/modules/custom-image/actions/Action.es.js +0 -15
  443. package/es/modules/custom-image/actions/Action.es.js.map +0 -1
  444. package/es/modules/custom-image/actions/CustomResizeAction.es.js.map +0 -1
  445. package/es/modules/custom-image/actions/DeleteAction.es.js.map +0 -1
  446. package/es/modules/custom-image/image-bar.es.js +0 -127
  447. package/es/modules/custom-image/image-bar.es.js.map +0 -1
  448. package/es/modules/custom-image/specs/BlotSpec.es.js +0 -27
  449. package/es/modules/custom-image/specs/BlotSpec.es.js.map +0 -1
  450. package/es/modules/custom-image/specs/CustomImageSpec.es.js.map +0 -1
  451. package/es/modules/custom-image/specs/ImageSpec.es.js +0 -29
  452. package/es/modules/custom-image/specs/ImageSpec.es.js.map +0 -1
  453. package/es/modules/emoji/emoji-list/index.es.js +0 -5
  454. package/es/modules/emoji/emoji-list/people.es.js +0 -114
  455. package/es/modules/emoji/emoji-list/people.es.js.map +0 -1
  456. package/es/modules/emoji/emoji-list.es.js +0 -9
  457. package/es/modules/emoji/emoji-list.es.js.map +0 -1
  458. package/es/modules/emoji/emoji-map.es.js +0 -9
  459. package/es/modules/emoji/emoji-map.es.js.map +0 -1
  460. package/es/modules/emoji/emoji-sprite.es.js +0 -5
  461. package/es/modules/emoji/emoji-sprite.es.js.map +0 -1
  462. package/es/modules/emoji/formats/emoji-blot.es.js +0 -41
  463. package/es/modules/emoji/formats/emoji-blot.es.js.map +0 -1
  464. package/es/modules/emoji/index.es.js +0 -8
  465. package/es/modules/emoji/index.es.js.map +0 -1
  466. package/es/modules/emoji/modules/emoji.es.js +0 -248
  467. package/es/modules/emoji/modules/emoji.es.js.map +0 -1
  468. package/es/modules/emoji/modules/toolbar-emoji.es.js +0 -153
  469. package/es/modules/emoji/modules/toolbar-emoji.es.js.map +0 -1
  470. package/es/modules/emoji/utils.es.js +0 -19
  471. package/es/modules/emoji/utils.es.js.map +0 -1
  472. package/es/modules/mention/Mention.es.js.map +0 -1
  473. package/es/modules/mention/MentionLink.es.js.map +0 -1
  474. package/lib/config/types/additional-toolbar-item.interface.cjs.js +0 -2
  475. package/lib/config/types/additional-toolbar-item.interface.cjs.js.map +0 -1
  476. package/lib/config/types/content-change.interface.cjs.js +0 -2
  477. package/lib/config/types/content-change.interface.cjs.js.map +0 -1
  478. package/lib/config/types/content-save.interface.cjs.js +0 -2
  479. package/lib/config/types/content-save.interface.cjs.js.map +0 -1
  480. package/lib/config/types/counter-option.interface.cjs.js +0 -2
  481. package/lib/config/types/counter-option.interface.cjs.js.map +0 -1
  482. package/lib/config/types/editor-toolbar.interface.cjs.js +0 -2
  483. package/lib/config/types/editor-toolbar.interface.cjs.js.map +0 -1
  484. package/lib/config/types/file-operation.interface.cjs.js +0 -2
  485. package/lib/config/types/file-operation.interface.cjs.js.map +0 -1
  486. package/lib/config/types/focus-change.interface.cjs.js +0 -2
  487. package/lib/config/types/focus-change.interface.cjs.js.map +0 -1
  488. package/lib/config/types/fullscreen-module.interface.cjs.js +0 -2
  489. package/lib/config/types/fullscreen-module.interface.cjs.js.map +0 -1
  490. package/lib/config/types/help-panel-item.interface.cjs.js +0 -2
  491. package/lib/config/types/help-panel-item.interface.cjs.js.map +0 -1
  492. package/lib/config/types/help-panel-option.interface.cjs.js +0 -2
  493. package/lib/config/types/help-panel-option.interface.cjs.js.map +0 -1
  494. package/lib/config/types/image-module.interface.cjs.js +0 -2
  495. package/lib/config/types/image-module.interface.cjs.js.map +0 -1
  496. package/lib/config/types/image-upload.interface.cjs.js +0 -2
  497. package/lib/config/types/image-upload.interface.cjs.js.map +0 -1
  498. package/lib/config/types/load-on-demand-module.interface.cjs.js +0 -2
  499. package/lib/config/types/load-on-demand-module.interface.cjs.js.map +0 -1
  500. package/lib/config/types/mention-module.interface.cjs.js +0 -2
  501. package/lib/config/types/mention-module.interface.cjs.js.map +0 -1
  502. package/lib/config/types/paste-change.interface.cjs.js +0 -2
  503. package/lib/config/types/paste-change.interface.cjs.js.map +0 -1
  504. package/lib/config/types/quick-menu-module.interface.cjs.js +0 -2
  505. package/lib/config/types/quick-menu-module.interface.cjs.js.map +0 -1
  506. package/lib/config/types/range.interface.cjs.js +0 -2
  507. package/lib/config/types/range.interface.cjs.js.map +0 -1
  508. package/lib/config/types/registry-options.interface.cjs.js +0 -2
  509. package/lib/config/types/registry-options.interface.cjs.js.map +0 -1
  510. package/lib/config/types/selection-change.interface.cjs.js +0 -2
  511. package/lib/config/types/selection-change.interface.cjs.js.map +0 -1
  512. package/lib/config/types/toolbar-item.interface.cjs.js +0 -2
  513. package/lib/config/types/toolbar-item.interface.cjs.js.map +0 -1
  514. package/lib/config/types/validate-error.interface.cjs.js +0 -2
  515. package/lib/config/types/validate-error.interface.cjs.js.map +0 -1
  516. package/lib/modules/custom-image/BlotFormatter.cjs.js.map +0 -1
  517. package/lib/modules/custom-image/Options.cjs.js +0 -95
  518. package/lib/modules/custom-image/Options.cjs.js.map +0 -1
  519. package/lib/modules/custom-image/actions/Action.cjs.js +0 -15
  520. package/lib/modules/custom-image/actions/Action.cjs.js.map +0 -1
  521. package/lib/modules/custom-image/actions/CustomResizeAction.cjs.js.map +0 -1
  522. package/lib/modules/custom-image/actions/DeleteAction.cjs.js.map +0 -1
  523. package/lib/modules/custom-image/image-bar.cjs.js +0 -127
  524. package/lib/modules/custom-image/image-bar.cjs.js.map +0 -1
  525. package/lib/modules/custom-image/specs/BlotSpec.cjs.js +0 -27
  526. package/lib/modules/custom-image/specs/BlotSpec.cjs.js.map +0 -1
  527. package/lib/modules/custom-image/specs/CustomImageSpec.cjs.js.map +0 -1
  528. package/lib/modules/custom-image/specs/ImageSpec.cjs.js +0 -29
  529. package/lib/modules/custom-image/specs/ImageSpec.cjs.js.map +0 -1
  530. package/lib/modules/emoji/emoji-list/index.cjs.js +0 -5
  531. package/lib/modules/emoji/emoji-list/people.cjs.js +0 -114
  532. package/lib/modules/emoji/emoji-list/people.cjs.js.map +0 -1
  533. package/lib/modules/emoji/emoji-list.cjs.js +0 -9
  534. package/lib/modules/emoji/emoji-list.cjs.js.map +0 -1
  535. package/lib/modules/emoji/emoji-map.cjs.js +0 -9
  536. package/lib/modules/emoji/emoji-map.cjs.js.map +0 -1
  537. package/lib/modules/emoji/emoji-sprite.cjs.js +0 -5
  538. package/lib/modules/emoji/emoji-sprite.cjs.js.map +0 -1
  539. package/lib/modules/emoji/formats/emoji-blot.cjs.js +0 -41
  540. package/lib/modules/emoji/formats/emoji-blot.cjs.js.map +0 -1
  541. package/lib/modules/emoji/index.cjs.js +0 -8
  542. package/lib/modules/emoji/index.cjs.js.map +0 -1
  543. package/lib/modules/emoji/modules/emoji.cjs.js +0 -248
  544. package/lib/modules/emoji/modules/emoji.cjs.js.map +0 -1
  545. package/lib/modules/emoji/modules/toolbar-emoji.cjs.js +0 -153
  546. package/lib/modules/emoji/modules/toolbar-emoji.cjs.js.map +0 -1
  547. package/lib/modules/emoji/utils.cjs.js +0 -19
  548. package/lib/modules/emoji/utils.cjs.js.map +0 -1
  549. package/lib/modules/mention/Mention.cjs.js.map +0 -1
  550. package/lib/modules/mention/MentionLink.cjs.js.map +0 -1
  551. package/types/config/types/additional-toolbar-item.interface.d.ts +0 -8
  552. package/types/config/types/content-change.interface.d.ts +0 -13
  553. package/types/config/types/content-save.interface.d.ts +0 -6
  554. package/types/config/types/counter-option.interface.d.ts +0 -9
  555. package/types/config/types/editor-toolbar.interface.d.ts +0 -6
  556. package/types/config/types/file-operation.interface.d.ts +0 -12
  557. package/types/config/types/focus-change.interface.d.ts +0 -4
  558. package/types/config/types/fullscreen-module.interface.d.ts +0 -4
  559. package/types/config/types/help-panel-item.interface.d.ts +0 -5
  560. package/types/config/types/help-panel-option.interface.d.ts +0 -7
  561. package/types/config/types/image-module.interface.d.ts +0 -3
  562. package/types/config/types/image-upload.interface.d.ts +0 -7
  563. package/types/config/types/load-on-demand-module.interface.d.ts +0 -5
  564. package/types/config/types/mention-module.interface.d.ts +0 -8
  565. package/types/config/types/paste-change.interface.d.ts +0 -6
  566. package/types/config/types/quick-menu-module.interface.d.ts +0 -3
  567. package/types/config/types/range.interface.d.ts +0 -4
  568. package/types/config/types/registry-options.interface.d.ts +0 -5
  569. package/types/config/types/selection-change.interface.d.ts +0 -8
  570. package/types/config/types/toolbar-item.interface.d.ts +0 -13
  571. package/types/config/types/validate-error.interface.d.ts +0 -13
  572. package/types/modules/custom-image/BlotFormatter.d.ts +0 -29
  573. package/types/modules/custom-image/Options.d.ts +0 -36
  574. package/types/modules/custom-image/actions/Action.d.ts +0 -7
  575. package/types/modules/custom-image/actions/DeleteAction.d.ts +0 -7
  576. package/types/modules/custom-image/image-bar.d.ts +0 -15
  577. package/types/modules/custom-image/specs/BlotSpec.d.ts +0 -13
  578. package/types/modules/custom-image/specs/ImageSpec.d.ts +0 -10
  579. package/types/modules/emoji/emoji-list/index.d.ts +0 -1
  580. package/types/modules/emoji/emoji-list/people.d.ts +0 -1
  581. package/types/modules/emoji/emoji-list.d.ts +0 -2
  582. package/types/modules/emoji/emoji-map.d.ts +0 -2
  583. package/types/modules/emoji/emoji-sprite.d.ts +0 -1
  584. package/types/modules/emoji/formats/emoji-blot.d.ts +0 -13
  585. package/types/modules/emoji/index.d.ts +0 -10
  586. package/types/modules/emoji/modules/emoji.d.ts +0 -38
  587. package/types/modules/emoji/modules/toolbar-emoji.d.ts +0 -8
  588. package/types/modules/emoji/utils.d.ts +0 -1
@@ -1,123 +1,123 @@
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
- link: string;
62
- divider: string;
63
- code: string;
64
- table: string;
65
- 'table-up': string;
66
- 'code-block': string;
67
- formula: string;
68
- 'format-painter': string;
69
- video: string;
70
- color: string;
71
- background: string;
72
- font: string;
73
- size: string;
74
- list: string;
75
- 'list-ordered': string;
76
- 'list-bullet': string;
77
- 'list-check': string;
78
- 'align-left': string;
79
- 'align-center': string;
80
- 'align-right': string;
81
- 'align-justify': string;
82
- 'direction-ltr': string;
83
- 'direction-rtl': string;
84
- 'indent--1': string;
85
- 'indent-+1': string;
86
- 'script-super': string;
87
- 'script-sub': string;
88
- 'header-normal': string;
89
- 'header-1': string;
90
- 'header-2': string;
91
- 'header-3': string;
92
- 'header-4': string;
93
- 'header-5': string;
94
- 'header-6': string;
95
- 'header-list': string;
96
- 'input-recall-menu-placeholder': string;
97
- 'clear-color': string;
98
- 'custom-color': string;
99
- fullCheckboxText: string;
100
- customBtnText: string;
101
- confirmText: string;
102
- cancelText: string;
103
- rowText: string;
104
- colText: string;
105
- notPositiveNumberError: string;
106
- custom: string;
107
- clear: string;
108
- transparent: string;
109
- perWidthInsufficient: string;
110
- CopyCell: string;
111
- CutCell: string;
112
- InsertTop: string;
113
- InsertRight: string;
114
- InsertBottom: string;
115
- InsertLeft: string;
116
- MergeCell: string;
117
- SplitCell: string;
118
- DeleteRow: string;
119
- DeleteColumn: string;
120
- DeleteTable: string;
121
- BackgroundColor: string;
122
- BorderColor: string;
123
- };
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
+ link: string;
62
+ divider: string;
63
+ code: string;
64
+ table: string;
65
+ 'table-up': string;
66
+ 'code-block': string;
67
+ formula: string;
68
+ 'format-painter': string;
69
+ video: string;
70
+ color: string;
71
+ background: string;
72
+ font: string;
73
+ size: string;
74
+ list: string;
75
+ 'list-ordered': string;
76
+ 'list-bullet': string;
77
+ 'list-check': string;
78
+ 'align-left': string;
79
+ 'align-center': string;
80
+ 'align-right': string;
81
+ 'align-justify': string;
82
+ 'direction-ltr': string;
83
+ 'direction-rtl': string;
84
+ 'indent--1': string;
85
+ 'indent-+1': string;
86
+ 'script-super': string;
87
+ 'script-sub': string;
88
+ 'header-normal': string;
89
+ 'header-1': string;
90
+ 'header-2': string;
91
+ 'header-3': string;
92
+ 'header-4': string;
93
+ 'header-5': string;
94
+ 'header-6': string;
95
+ 'header-list': string;
96
+ 'input-recall-menu-placeholder': string;
97
+ 'clear-color': string;
98
+ 'custom-color': string;
99
+ fullCheckboxText: string;
100
+ customBtnText: string;
101
+ confirmText: string;
102
+ cancelText: string;
103
+ rowText: string;
104
+ colText: string;
105
+ notPositiveNumberError: string;
106
+ custom: string;
107
+ clear: string;
108
+ transparent: string;
109
+ perWidthInsufficient: string;
110
+ CopyCell: string;
111
+ CutCell: string;
112
+ InsertTop: string;
113
+ InsertRight: string;
114
+ InsertBottom: string;
115
+ InsertLeft: string;
116
+ MergeCell: string;
117
+ SplitCell: string;
118
+ DeleteRow: string;
119
+ DeleteColumn: string;
120
+ DeleteTable: string;
121
+ BackgroundColor: string;
122
+ BorderColor: string;
123
+ };
@@ -1,6 +1,7 @@
1
- export * from './editor.config';
2
- export * from './editor.utils';
3
- export declare function inputFile(type: 'image' | 'video' | 'file', accept: string[]): void;
4
- export declare function getListValue(value: any, preListValue: any): any;
5
- /** css namespace */
6
- 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";
@@ -1,19 +1,14 @@
1
1
  import { QuillOptions } from 'quill';
2
2
  import { ScreenShotOptions } from '../../tools/screenshot';
3
3
  import { IEditorModules } from './editor-modules.interface';
4
- import { EditorFormat } from './type';
5
-
6
- export interface IEditorConfig extends QuillOptions {
7
- format?: EditorFormat;
8
- modules?: IEditorModules;
9
- screenshotOnStaticPage?: boolean;
10
- scrollingContainer?: HTMLElement | string | null;
11
- trackChanges?: 'user' | 'all';
12
- autoProtocol?: boolean | string;
13
- editorPaste?: any;
14
- screenshot?: Partial<ScreenShotOptions>;
15
- i18n?: {
16
- lang?: string;
17
- langText?: Record<string, string>;
18
- };
19
- }
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
+ }
@@ -1,33 +1,41 @@
1
+ import { ToolbarProps } from 'quill/modules/toolbar';
2
+ import { I18NOptions, ICounterOption, MentionOption, ShortCutKeyInputOptions } from '../../modules';
3
+ import { BlotFormatterOptionsInput } from '../../modules/custom-image/options';
1
4
  import { FileUploaderOptions } from '../../modules/custom-uploader';
2
- import { ToolbarOption } from './type';
3
-
4
- export interface IEditorModules {
5
- [key: string]: any;
6
- clipboard?: {
7
- matchers?: any[];
8
- matchVisual?: boolean;
9
- } | boolean;
10
- history?: {
11
- delay?: number;
12
- maxStack?: number;
13
- userOnly?: boolean;
14
- } | boolean;
15
- keyboard?: {
16
- bindings?: any;
17
- } | boolean;
18
- syntax?: {
19
- interval?: number;
20
- languages?: {
21
- key: string;
22
- label: string;
23
- }[];
24
- hljs?: any;
25
- } | boolean;
26
- toolbar?: (string | string[])[][] | ToolbarOption | string | {
27
- container?: string | string[] | ToolbarOption;
28
- handlers?: {
29
- [key: string]: any;
30
- };
31
- } | boolean;
32
- uploader?: boolean | Partial<FileUploaderOptions>;
33
- }
5
+ import { EmojiModuleOptions } from '../../modules/emoji';
6
+ export type ToolbarOptions = {
7
+ container?: HTMLElement | (Record<string, any>[] | string[] | (string | Record<string, any>)[])[];
8
+ } & ToolbarProps;
9
+ export interface IEditorModules {
10
+ [key: string]: any;
11
+ 'clipboard'?: {
12
+ matchers?: any[];
13
+ matchVisual?: boolean;
14
+ } | boolean;
15
+ 'history'?: {
16
+ delay?: number;
17
+ maxStack?: number;
18
+ userOnly?: boolean;
19
+ } | boolean;
20
+ 'keyboard'?: {
21
+ bindings?: any;
22
+ } | boolean;
23
+ 'syntax'?: {
24
+ interval?: number;
25
+ languages?: {
26
+ key: string;
27
+ label: string;
28
+ }[];
29
+ hljs?: any;
30
+ } | boolean;
31
+ 'toolbar'?: boolean | ToolbarOptions | ToolbarOptions['container'] | string[];
32
+ 'uploader'?: boolean | Partial<FileUploaderOptions>;
33
+ 'shortcut-key'?: boolean | Partial<ShortCutKeyInputOptions>;
34
+ 'mention'?: boolean | MentionOption;
35
+ 'i18n'?: boolean | Partial<I18NOptions>;
36
+ 'counter'?: boolean | ICounterOption;
37
+ 'emoji'?: boolean | EmojiModuleOptions;
38
+ 'file'?: boolean;
39
+ 'mathlive'?: boolean;
40
+ 'image'?: boolean | Partial<BlotFormatterOptionsInput>;
41
+ }
@@ -1,23 +1,3 @@
1
- export * from './additional-toolbar-item.interface';
2
- export * from './content-change.interface';
3
- export * from './content-save.interface';
4
- export * from './counter-option.interface';
5
- export * from './editor-config.interface';
6
- export * from './editor-modules.interface';
7
- export * from './editor-toolbar.interface';
8
- export * from './file-operation.interface';
9
- export * from './focus-change.interface';
10
- export * from './fullscreen-module.interface';
11
- export * from './help-panel-option.interface';
12
- export * from './image-module.interface';
13
- export * from './image-upload.interface';
14
- export * from './load-on-demand-module.interface';
15
- export * from './mention-module.interface';
16
- export * from './paste-change.interface';
17
- export * from './quick-menu-module.interface';
18
- export * from './range.interface';
19
- export * from './registry-options.interface';
20
- export * from './selection-change.interface';
21
- export * from './toolbar-item.interface';
22
- export * from './type';
23
- export * from './validate-error.interface';
1
+ export * from './editor-config.interface';
2
+ export * from './editor-modules.interface';
3
+ export * from './type';
@@ -1,6 +1,2 @@
1
- import { IToolbarItem } from './toolbar-item.interface';
2
-
3
- export type ToolbarOption = (string[] | IToolbarItem[] | string | IToolbarItem)[];
4
- export type EditorFormat = 'object' | 'json' | 'html' | 'text';
5
- export type AnyFunction = (...args: any[]) => any;
6
- 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;
@@ -1,15 +1,13 @@
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
-
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 type { Module, Parchment as TypeParchment, } from 'quill';
15
- export default FluentEditor;
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;
@@ -1,3 +1,2 @@
1
1
  import { default as FluentEditor } from './core/fluent-editor';
2
-
3
- export default FluentEditor;
2
+ export default FluentEditor;
@@ -0,0 +1,8 @@
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 {};
@@ -0,0 +1,4 @@
1
+ export * from './emoji';
2
+ export * from './soft-break';
3
+ export * from './strike';
4
+ export * from './video';
@@ -1,14 +1,12 @@
1
- declare const Embed: unknown;
2
- declare class SoftBreak extends Embed {
3
- static blotName: string;
4
- static tagName: string;
5
- static className: string;
6
- domNode: any;
7
- prev: any;
8
- next: any;
9
- remove: () => void;
10
- static create(): any;
11
- optimize(): void;
12
- length(): number;
13
- }
14
- export default SoftBreak;
1
+ import { default as TypeEmbed } from 'quill/blots/embed';
2
+ declare const Embed: typeof TypeEmbed;
3
+ export declare class SoftBreak extends Embed {
4
+ static blotName: string;
5
+ static tagName: string;
6
+ static className: string;
7
+ remove: () => void;
8
+ static create(): Node;
9
+ optimize(): void;
10
+ length(): number;
11
+ }
12
+ export {};
@@ -1,7 +1,8 @@
1
- declare const Inline: unknown;
2
- declare class StrikeBlot extends Inline {
3
- static blotName: string;
4
- static className: string;
5
- static tagName: string;
6
- }
7
- export default StrikeBlot;
1
+ import { default as TypeInline } from 'quill/blots/inline';
2
+ declare const Inline: typeof TypeInline;
3
+ export declare class StrikeBlot extends Inline {
4
+ static blotName: string;
5
+ static tagName: string;
6
+ static className: string;
7
+ }
8
+ export {};
@@ -1,16 +1,13 @@
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;
1
+ import { BlockEmbed as TypeBlockEmbed } from 'quill/blots/block';
2
+ declare const BlockEmbed: typeof TypeBlockEmbed;
3
+ export 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
+ static sanitize(url: any): any;
10
+ static create(value: any): HTMLElement;
11
+ static value(domNode: any): any;
12
+ }
13
+ export {};
package/types/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { default as FluentEditor } from './fluent-editor';
2
-
3
- export * from './config';
4
- export { I18N } from './modules/i18n';
5
- export * from './modules/table-up';
6
- export * from './modules/toolbar/toolbar-tip';
7
- export default FluentEditor;
8
- export { generateTableUpShortKeyMenu } from 'quill-shortcut-key';
2
+ export * from './attributors';
3
+ export * from './config/types';
4
+ export * from './formats';
5
+ export * from './modules';
6
+ export { generateTableUpShortKeyMenu } from 'quill-shortcut-key';
7
+ export default FluentEditor;
8
+ export { AttributeMap, Delta, Op, OpIterator, Parchment, Range } from 'quill/core';
@@ -0,0 +1,30 @@
1
+ export declare const INPUT_PLACEHOLDER = "\u8BF7\u8F93\u5165\u95EE\u9898\u6216\"/\"\u83B7\u53D6\u63D0\u793A\u8BCD";
2
+ export declare const SELECT_PLACEHOLDER = "\u5411\u6211\u63D0\u95EE/\u9009\u62E9\u64CD\u4F5C";
3
+ export declare const STOP_ANSWER = "\u505C\u6B62\u56DE\u7B54";
4
+ export declare const REPLACE_SELECT = "\u66FF\u6362\u9009\u4E2D\u5185\u5BB9";
5
+ export declare const INSERT_TEXT = "\u63D2\u5165\u5185\u5BB9";
6
+ export declare const INSERT_SUB_CONTENT_TEXT = "\u63D2\u5165\u5185\u5BB9\u4E0B\u65B9";
7
+ export declare const REGENERATE = "\u91CD\u65B0\u751F\u6210";
8
+ export declare const CLOSE = "\u5173\u95ED";
9
+ export declare const THINK_TEXT = "\u6B63\u5728\u4E3A\u60A8\u5206\u6790\u5E76\u603B\u7ED3\u7B54\u6848";
10
+ export declare const RESULT_HEADER_TEXT = "\u6839\u636E\u60A8\u7684\u8BC9\u6C42\uFF0C\u5DF2\u4E3A\u60A8\u89E3\u7B54\uFF0C\u5177\u4F53\u5982\u4E0B\uFF1A";
11
+ export declare const MENU_TITLE_DATA: {
12
+ editor: {
13
+ id: string;
14
+ text: string;
15
+ icon: string;
16
+ }[];
17
+ tone: {
18
+ id: string;
19
+ text: string;
20
+ }[];
21
+ adjust: {
22
+ id: string;
23
+ text: string;
24
+ }[];
25
+ };
26
+ export declare const MENU_ID_MAP: {
27
+ editor: string;
28
+ tone: string;
29
+ adjust: string;
30
+ };