@opentiny/fluent-editor 4.0.0-alpha.0 → 4.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (487) hide show
  1. package/README.md +7 -24
  2. package/es/config/editor.config.es.js +0 -7
  3. package/es/config/editor.config.es.js.map +1 -1
  4. package/es/config/editor.utils.es.js +0 -2
  5. package/es/config/editor.utils.es.js.map +1 -1
  6. package/es/config/i18n/en-us.es.js +0 -13
  7. package/es/config/i18n/en-us.es.js.map +1 -1
  8. package/es/config/i18n/zh-cn.es.js +0 -13
  9. package/es/config/i18n/zh-cn.es.js.map +1 -1
  10. package/es/config/index.es.js +8 -13
  11. package/es/config/index.es.js.map +1 -1
  12. package/es/config/types/index.es.js +0 -20
  13. package/es/config/types/index.es.js.map +1 -1
  14. package/es/core/fluent-editor.es.js +7 -5
  15. package/es/core/fluent-editor.es.js.map +1 -1
  16. package/es/fluent-editor.es.js +36 -22
  17. package/es/fluent-editor.es.js.map +1 -1
  18. package/es/formats/emoji.es.js +14 -0
  19. package/es/formats/emoji.es.js.map +1 -0
  20. package/es/formats/index.es.js +11 -0
  21. package/es/formats/index.es.js.map +1 -0
  22. package/es/formats/soft-break.es.js +12 -5
  23. package/es/formats/soft-break.es.js.map +1 -1
  24. package/es/formats/strike.es.js +8 -5
  25. package/es/formats/strike.es.js.map +1 -1
  26. package/es/formats/video.es.js +14 -10
  27. package/es/formats/video.es.js.map +1 -1
  28. package/es/index.es.js +92 -32
  29. package/es/index.es.js.map +1 -1
  30. package/es/modules/counter.es.js +8 -3
  31. package/es/modules/counter.es.js.map +1 -1
  32. package/es/modules/custom-clipboard.es.js +23 -27
  33. package/es/modules/custom-clipboard.es.js.map +1 -1
  34. package/es/modules/custom-image/actions/action.es.js +19 -0
  35. package/es/modules/custom-image/actions/action.es.js.map +1 -0
  36. package/es/modules/custom-image/actions/{CustomResizeAction.es.js → custom-resize-action.es.js} +24 -11
  37. package/es/modules/custom-image/actions/{CustomResizeAction.es.js.map → custom-resize-action.es.js.map} +1 -1
  38. package/es/modules/custom-image/actions/{DeleteAction.es.js → delete-action.es.js} +8 -5
  39. package/es/modules/custom-image/actions/delete-action.es.js.map +1 -0
  40. package/es/modules/custom-image/actions/image-toolbar-buttons.es.js +137 -0
  41. package/es/modules/custom-image/actions/image-toolbar-buttons.es.js.map +1 -0
  42. package/es/modules/custom-image/actions/index.es.js +18 -0
  43. package/es/modules/custom-image/actions/index.es.js.map +1 -0
  44. package/es/modules/custom-image/actions/toolbar-action.es.js +33 -0
  45. package/es/modules/custom-image/actions/toolbar-action.es.js.map +1 -0
  46. package/es/modules/custom-image/actions/toolbar.es.js +110 -0
  47. package/es/modules/custom-image/actions/toolbar.es.js.map +1 -0
  48. package/es/modules/custom-image/{BlotFormatter.es.js → blot-formatter.es.js} +23 -50
  49. package/es/modules/custom-image/blot-formatter.es.js.map +1 -0
  50. package/es/modules/custom-image/image.es.js +34 -21
  51. package/es/modules/custom-image/image.es.js.map +1 -1
  52. package/es/modules/custom-image/index.es.js +9 -0
  53. package/es/modules/custom-image/index.es.js.map +1 -0
  54. package/es/modules/custom-image/options.es.js +85 -0
  55. package/es/modules/custom-image/options.es.js.map +1 -0
  56. package/es/modules/custom-image/specs/blot-spec.es.js +33 -0
  57. package/es/modules/custom-image/specs/blot-spec.es.js.map +1 -0
  58. package/es/modules/custom-image/specs/{CustomImageSpec.es.js → custom-image-spec.es.js} +13 -14
  59. package/es/modules/custom-image/specs/custom-image-spec.es.js.map +1 -0
  60. package/es/modules/custom-image/specs/image-spec.es.js +32 -0
  61. package/es/modules/custom-image/specs/image-spec.es.js.map +1 -0
  62. package/es/modules/custom-image/specs/index.es.js +9 -0
  63. package/es/modules/custom-image/specs/index.es.js.map +1 -0
  64. package/es/modules/custom-uploader.es.js +63 -194
  65. package/es/modules/custom-uploader.es.js.map +1 -1
  66. package/es/modules/divider.es.js +8 -7
  67. package/es/modules/divider.es.js.map +1 -1
  68. package/es/modules/emoji.es.js +175 -0
  69. package/es/modules/emoji.es.js.map +1 -0
  70. package/es/modules/file/formats/file.es.js +13 -13
  71. package/es/modules/file/formats/file.es.js.map +1 -1
  72. package/es/modules/file/index.es.js +6 -29
  73. package/es/modules/file/index.es.js.map +1 -1
  74. package/es/modules/file/modules/file-bar.es.js +11 -3
  75. package/es/modules/file/modules/file-bar.es.js.map +1 -1
  76. package/es/modules/file/modules/file-module.es.js +35 -0
  77. package/es/modules/file/modules/file-module.es.js.map +1 -0
  78. package/es/modules/i18n.es.js +33 -11
  79. package/es/modules/i18n.es.js.map +1 -1
  80. package/es/modules/index.es.js +26 -0
  81. package/es/modules/index.es.js.map +1 -0
  82. package/es/modules/link/formats/link.es.js +14 -10
  83. package/es/modules/link/formats/link.es.js.map +1 -1
  84. package/es/modules/link/index.es.js +4 -12
  85. package/es/modules/link/index.es.js.map +1 -1
  86. package/es/modules/link/modules/tooltip.es.js +31 -21
  87. package/es/modules/link/modules/tooltip.es.js.map +1 -1
  88. package/es/modules/mathlive/formats.es.js +10 -7
  89. package/es/modules/mathlive/formats.es.js.map +1 -1
  90. package/es/modules/mathlive/index.es.js +6 -30
  91. package/es/modules/mathlive/index.es.js.map +1 -1
  92. package/es/modules/mathlive/module.es.js +40 -0
  93. package/es/modules/mathlive/module.es.js.map +1 -0
  94. package/es/modules/mathlive/tooltip.es.js +9 -5
  95. package/es/modules/mathlive/tooltip.es.js.map +1 -1
  96. package/es/modules/mention/index.es.js +7 -0
  97. package/es/modules/{emoji/emoji-list → mention}/index.es.js.map +1 -1
  98. package/es/modules/mention/{MentionLink.es.js → mention-link.es.js} +14 -6
  99. package/es/modules/mention/mention-link.es.js.map +1 -0
  100. package/es/modules/mention/{Mention.es.js → mention.es.js} +28 -20
  101. package/es/modules/mention/mention.es.js.map +1 -0
  102. package/es/modules/shortcut-key/index.es.js +17 -1
  103. package/es/modules/shortcut-key/index.es.js.map +1 -1
  104. package/es/modules/syntax.es.js +4 -0
  105. package/es/modules/syntax.es.js.map +1 -1
  106. package/es/modules/table-up/index.es.js +9 -2
  107. package/es/modules/table-up/index.es.js.map +1 -1
  108. package/es/modules/toolbar/better-picker.es.js +5 -0
  109. package/es/modules/toolbar/better-picker.es.js.map +1 -1
  110. package/es/modules/toolbar/better-toolbar.es.js +138 -0
  111. package/es/modules/toolbar/better-toolbar.es.js.map +1 -0
  112. package/es/modules/toolbar/index.es.js +5 -135
  113. package/es/modules/toolbar/index.es.js.map +1 -1
  114. package/es/modules/toolbar/toolbar-tip.es.js +6 -1
  115. package/es/modules/toolbar/toolbar-tip.es.js.map +1 -1
  116. package/es/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.es.js +40145 -0
  117. package/es/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.es.js.map +1 -0
  118. package/es/node_modules/.pnpm/@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.es.js +938 -0
  119. package/es/node_modules/.pnpm/@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.es.js.map +1 -0
  120. package/es/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js +624 -0
  121. package/es/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js.map +1 -0
  122. package/es/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js +174 -0
  123. package/es/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js.map +1 -0
  124. package/es/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js +159 -0
  125. package/es/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js.map +1 -0
  126. package/es/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.es.js +2849 -0
  127. package/es/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.es.js.map +1 -0
  128. package/es/themes/snow.es.js +18 -15
  129. package/es/themes/snow.es.js.map +1 -1
  130. package/es/tools/fullscreen.es.js.map +1 -1
  131. package/es/ui/icons.config.es.js +8 -0
  132. package/es/ui/icons.config.es.js.map +1 -1
  133. package/es/ui/icons.es.js.map +1 -1
  134. package/es/utils/is.es.js +4 -0
  135. package/es/utils/is.es.js.map +1 -1
  136. package/lib/config/editor.config.cjs.js +0 -7
  137. package/lib/config/editor.config.cjs.js.map +1 -1
  138. package/lib/config/editor.utils.cjs.js +0 -2
  139. package/lib/config/editor.utils.cjs.js.map +1 -1
  140. package/lib/config/i18n/en-us.cjs.js +0 -13
  141. package/lib/config/i18n/en-us.cjs.js.map +1 -1
  142. package/lib/config/i18n/zh-cn.cjs.js +0 -13
  143. package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
  144. package/lib/config/index.cjs.js +6 -11
  145. package/lib/config/index.cjs.js.map +1 -1
  146. package/lib/config/types/index.cjs.js +0 -20
  147. package/lib/config/types/index.cjs.js.map +1 -1
  148. package/lib/core/fluent-editor.cjs.js +6 -4
  149. package/lib/core/fluent-editor.cjs.js.map +1 -1
  150. package/lib/fluent-editor.cjs.js +44 -30
  151. package/lib/fluent-editor.cjs.js.map +1 -1
  152. package/lib/formats/emoji.cjs.js +14 -0
  153. package/lib/formats/emoji.cjs.js.map +1 -0
  154. package/lib/formats/index.cjs.js +11 -0
  155. package/lib/formats/index.cjs.js.map +1 -0
  156. package/lib/formats/soft-break.cjs.js +13 -6
  157. package/lib/formats/soft-break.cjs.js.map +1 -1
  158. package/lib/formats/strike.cjs.js +9 -6
  159. package/lib/formats/strike.cjs.js.map +1 -1
  160. package/lib/formats/video.cjs.js +15 -11
  161. package/lib/formats/video.cjs.js.map +1 -1
  162. package/lib/index.cjs.js +112 -34
  163. package/lib/index.cjs.js.map +1 -1
  164. package/lib/modules/counter.cjs.js +8 -3
  165. package/lib/modules/counter.cjs.js.map +1 -1
  166. package/lib/modules/custom-clipboard.cjs.js +23 -27
  167. package/lib/modules/custom-clipboard.cjs.js.map +1 -1
  168. package/lib/modules/custom-image/actions/action.cjs.js +19 -0
  169. package/lib/modules/custom-image/actions/action.cjs.js.map +1 -0
  170. package/lib/modules/custom-image/actions/{CustomResizeAction.cjs.js → custom-resize-action.cjs.js} +26 -13
  171. package/lib/modules/custom-image/actions/{CustomResizeAction.cjs.js.map → custom-resize-action.cjs.js.map} +1 -1
  172. package/lib/modules/custom-image/actions/{DeleteAction.cjs.js → delete-action.cjs.js} +10 -7
  173. package/lib/modules/custom-image/actions/delete-action.cjs.js.map +1 -0
  174. package/lib/modules/custom-image/actions/image-toolbar-buttons.cjs.js +137 -0
  175. package/lib/modules/custom-image/actions/image-toolbar-buttons.cjs.js.map +1 -0
  176. package/lib/modules/custom-image/actions/index.cjs.js +18 -0
  177. package/lib/modules/custom-image/actions/index.cjs.js.map +1 -0
  178. package/lib/modules/custom-image/actions/toolbar-action.cjs.js +33 -0
  179. package/lib/modules/custom-image/actions/toolbar-action.cjs.js.map +1 -0
  180. package/lib/modules/custom-image/actions/toolbar.cjs.js +110 -0
  181. package/lib/modules/custom-image/actions/toolbar.cjs.js.map +1 -0
  182. package/lib/modules/custom-image/{BlotFormatter.cjs.js → blot-formatter.cjs.js} +24 -51
  183. package/lib/modules/custom-image/blot-formatter.cjs.js.map +1 -0
  184. package/lib/modules/custom-image/image.cjs.js +35 -22
  185. package/lib/modules/custom-image/image.cjs.js.map +1 -1
  186. package/lib/modules/custom-image/index.cjs.js +9 -0
  187. package/lib/modules/custom-image/index.cjs.js.map +1 -0
  188. package/lib/modules/custom-image/options.cjs.js +85 -0
  189. package/lib/modules/custom-image/options.cjs.js.map +1 -0
  190. package/lib/modules/custom-image/specs/blot-spec.cjs.js +33 -0
  191. package/lib/modules/custom-image/specs/blot-spec.cjs.js.map +1 -0
  192. package/lib/modules/custom-image/specs/{CustomImageSpec.cjs.js → custom-image-spec.cjs.js} +14 -15
  193. package/lib/modules/custom-image/specs/custom-image-spec.cjs.js.map +1 -0
  194. package/lib/modules/custom-image/specs/image-spec.cjs.js +32 -0
  195. package/lib/modules/custom-image/specs/image-spec.cjs.js.map +1 -0
  196. package/lib/modules/custom-image/specs/index.cjs.js +9 -0
  197. package/lib/modules/custom-image/specs/index.cjs.js.map +1 -0
  198. package/lib/modules/custom-uploader.cjs.js +64 -195
  199. package/lib/modules/custom-uploader.cjs.js.map +1 -1
  200. package/lib/modules/divider.cjs.js +9 -8
  201. package/lib/modules/divider.cjs.js.map +1 -1
  202. package/lib/modules/emoji.cjs.js +175 -0
  203. package/lib/modules/emoji.cjs.js.map +1 -0
  204. package/lib/modules/file/formats/file.cjs.js +14 -14
  205. package/lib/modules/file/formats/file.cjs.js.map +1 -1
  206. package/lib/modules/file/index.cjs.js +5 -28
  207. package/lib/modules/file/index.cjs.js.map +1 -1
  208. package/lib/modules/file/modules/file-bar.cjs.js +12 -4
  209. package/lib/modules/file/modules/file-bar.cjs.js.map +1 -1
  210. package/lib/modules/file/modules/file-module.cjs.js +35 -0
  211. package/lib/modules/file/modules/file-module.cjs.js.map +1 -0
  212. package/lib/modules/i18n.cjs.js +32 -10
  213. package/lib/modules/i18n.cjs.js.map +1 -1
  214. package/lib/modules/index.cjs.js +26 -0
  215. package/lib/modules/index.cjs.js.map +1 -0
  216. package/lib/modules/link/formats/link.cjs.js +15 -11
  217. package/lib/modules/link/formats/link.cjs.js.map +1 -1
  218. package/lib/modules/link/index.cjs.js +4 -12
  219. package/lib/modules/link/index.cjs.js.map +1 -1
  220. package/lib/modules/link/modules/tooltip.cjs.js +30 -20
  221. package/lib/modules/link/modules/tooltip.cjs.js.map +1 -1
  222. package/lib/modules/mathlive/formats.cjs.js +11 -8
  223. package/lib/modules/mathlive/formats.cjs.js.map +1 -1
  224. package/lib/modules/mathlive/index.cjs.js +5 -29
  225. package/lib/modules/mathlive/index.cjs.js.map +1 -1
  226. package/lib/modules/mathlive/module.cjs.js +40 -0
  227. package/lib/modules/mathlive/module.cjs.js.map +1 -0
  228. package/lib/modules/mathlive/tooltip.cjs.js +10 -6
  229. package/lib/modules/mathlive/tooltip.cjs.js.map +1 -1
  230. package/lib/modules/mention/index.cjs.js +7 -0
  231. package/lib/modules/{emoji/emoji-list → mention}/index.cjs.js.map +1 -1
  232. package/lib/modules/mention/{MentionLink.cjs.js → mention-link.cjs.js} +15 -7
  233. package/lib/modules/mention/mention-link.cjs.js.map +1 -0
  234. package/lib/modules/mention/{Mention.cjs.js → mention.cjs.js} +30 -22
  235. package/lib/modules/mention/mention.cjs.js.map +1 -0
  236. package/lib/modules/shortcut-key/index.cjs.js +16 -0
  237. package/lib/modules/shortcut-key/index.cjs.js.map +1 -1
  238. package/lib/modules/syntax.cjs.js +4 -0
  239. package/lib/modules/syntax.cjs.js.map +1 -1
  240. package/lib/modules/table-up/index.cjs.js +9 -2
  241. package/lib/modules/table-up/index.cjs.js.map +1 -1
  242. package/lib/modules/toolbar/better-picker.cjs.js +5 -0
  243. package/lib/modules/toolbar/better-picker.cjs.js.map +1 -1
  244. package/lib/modules/toolbar/better-toolbar.cjs.js +138 -0
  245. package/lib/modules/toolbar/better-toolbar.cjs.js.map +1 -0
  246. package/lib/modules/toolbar/index.cjs.js +6 -136
  247. package/lib/modules/toolbar/index.cjs.js.map +1 -1
  248. package/lib/modules/toolbar/toolbar-tip.cjs.js +6 -1
  249. package/lib/modules/toolbar/toolbar-tip.cjs.js.map +1 -1
  250. package/lib/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.cjs.js +40145 -0
  251. package/lib/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.cjs.js.map +1 -0
  252. package/lib/node_modules/.pnpm/@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.js +938 -0
  253. package/lib/node_modules/.pnpm/@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.js.map +1 -0
  254. package/lib/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.js +624 -0
  255. package/lib/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.js.map +1 -0
  256. package/lib/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.js +159 -0
  257. package/lib/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.js.map +1 -0
  258. package/lib/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.js +174 -0
  259. package/lib/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.js.map +1 -0
  260. package/lib/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.cjs.js +2847 -0
  261. package/lib/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.cjs.js.map +1 -0
  262. package/lib/themes/snow.cjs.js +19 -16
  263. package/lib/themes/snow.cjs.js.map +1 -1
  264. package/lib/tools/fullscreen.cjs.js.map +1 -1
  265. package/lib/ui/icons.cjs.js.map +1 -1
  266. package/lib/ui/icons.config.cjs.js +8 -0
  267. package/lib/ui/icons.config.cjs.js.map +1 -1
  268. package/lib/utils/is.cjs.js +4 -0
  269. package/lib/utils/is.cjs.js.map +1 -1
  270. package/package.json +8 -7
  271. package/style.css +8 -952
  272. package/types/config/editor.config.d.ts +0 -274
  273. package/types/config/editor.utils.d.ts +0 -1
  274. package/types/config/i18n/en-us.d.ts +0 -13
  275. package/types/config/i18n/zh-cn.d.ts +0 -13
  276. package/types/config/index.d.ts +2 -1
  277. package/types/config/types/editor-config.interface.d.ts +0 -26
  278. package/types/config/types/editor-modules.interface.d.ts +22 -11
  279. package/types/config/types/index.d.ts +0 -20
  280. package/types/config/types/type.d.ts +0 -4
  281. package/types/core/fluent-editor.d.ts +3 -2
  282. package/types/formats/emoji.d.ts +9 -0
  283. package/types/formats/index.d.ts +4 -0
  284. package/types/formats/soft-break.d.ts +6 -7
  285. package/types/formats/strike.d.ts +6 -4
  286. package/types/formats/video.d.ts +4 -6
  287. package/types/index.d.ts +5 -3
  288. package/types/modules/counter.d.ts +9 -2
  289. package/types/modules/custom-clipboard.d.ts +4 -7
  290. package/types/modules/custom-image/Options.d.ts +34 -23
  291. package/types/modules/custom-image/actions/Action.d.ts +5 -3
  292. package/types/modules/custom-image/actions/custom-resize-action.d.ts +24 -0
  293. package/types/modules/custom-image/actions/delete-action.d.ts +7 -0
  294. package/types/modules/custom-image/actions/image-toolbar-buttons.d.ts +17 -0
  295. package/types/modules/custom-image/actions/index.d.ts +6 -0
  296. package/types/modules/custom-image/actions/toolbar-action.d.ts +12 -0
  297. package/types/modules/custom-image/actions/toolbar.d.ts +20 -0
  298. package/types/modules/custom-image/blot-formatter.d.ts +24 -0
  299. package/types/modules/custom-image/image-bar.d.ts +9 -7
  300. package/types/modules/custom-image/image.d.ts +22 -23
  301. package/types/modules/custom-image/index.d.ts +4 -0
  302. package/types/modules/custom-image/specs/blot-spec.d.ts +13 -0
  303. package/types/modules/custom-image/specs/custom-image-spec.d.ts +18 -0
  304. package/types/modules/custom-image/specs/image-spec.d.ts +9 -0
  305. package/types/modules/custom-image/specs/index.d.ts +3 -0
  306. package/types/modules/custom-uploader.d.ts +38 -28
  307. package/types/modules/divider.d.ts +6 -4
  308. package/types/modules/emoji/formats/emoji-blot.d.ts +9 -7
  309. package/types/modules/emoji/index.d.ts +3 -10
  310. package/types/modules/emoji/modules/emoji.d.ts +6 -6
  311. package/types/modules/emoji/modules/toolbar-emoji.d.ts +7 -6
  312. package/types/modules/emoji.d.ts +35 -0
  313. package/types/modules/file/formats/file.d.ts +14 -10
  314. package/types/modules/file/index.d.ts +3 -11
  315. package/types/modules/file/modules/file-bar.d.ts +1 -1
  316. package/types/modules/file/modules/file-module.d.ts +10 -0
  317. package/types/modules/i18n.d.ts +4 -5
  318. package/types/modules/index.d.ts +15 -0
  319. package/types/modules/link/formats/link.d.ts +5 -5
  320. package/types/modules/link/index.d.ts +2 -6
  321. package/types/modules/link/modules/tooltip.d.ts +5 -10
  322. package/types/modules/mathlive/formats.d.ts +2 -2
  323. package/types/modules/mathlive/index.d.ts +3 -9
  324. package/types/modules/mathlive/module.d.ts +10 -0
  325. package/types/modules/mathlive/tooltip.d.ts +1 -1
  326. package/types/modules/mention/Mention.d.ts +3 -4
  327. package/types/modules/mention/index.d.ts +2 -0
  328. package/types/modules/mention/mention-link.d.ts +17 -0
  329. package/types/modules/shortcut-key/index.d.ts +16 -41
  330. package/types/modules/table-up/index.d.ts +27 -27
  331. package/types/modules/toolbar/better-toolbar.d.ts +8 -0
  332. package/types/modules/toolbar/index.d.ts +2 -8
  333. package/types/tools/fullscreen.d.ts +5 -1
  334. package/types/ui/icons.config.d.ts +1 -0
  335. package/types/utils/is.d.ts +3 -1
  336. package/es/config/types/additional-toolbar-item.interface.es.js +0 -2
  337. package/es/config/types/additional-toolbar-item.interface.es.js.map +0 -1
  338. package/es/config/types/content-change.interface.es.js +0 -2
  339. package/es/config/types/content-change.interface.es.js.map +0 -1
  340. package/es/config/types/content-save.interface.es.js +0 -2
  341. package/es/config/types/content-save.interface.es.js.map +0 -1
  342. package/es/config/types/counter-option.interface.es.js +0 -2
  343. package/es/config/types/counter-option.interface.es.js.map +0 -1
  344. package/es/config/types/editor-toolbar.interface.es.js +0 -2
  345. package/es/config/types/editor-toolbar.interface.es.js.map +0 -1
  346. package/es/config/types/file-operation.interface.es.js +0 -2
  347. package/es/config/types/file-operation.interface.es.js.map +0 -1
  348. package/es/config/types/focus-change.interface.es.js +0 -2
  349. package/es/config/types/focus-change.interface.es.js.map +0 -1
  350. package/es/config/types/fullscreen-module.interface.es.js +0 -2
  351. package/es/config/types/fullscreen-module.interface.es.js.map +0 -1
  352. package/es/config/types/help-panel-item.interface.es.js +0 -2
  353. package/es/config/types/help-panel-item.interface.es.js.map +0 -1
  354. package/es/config/types/help-panel-option.interface.es.js +0 -2
  355. package/es/config/types/help-panel-option.interface.es.js.map +0 -1
  356. package/es/config/types/image-module.interface.es.js +0 -2
  357. package/es/config/types/image-module.interface.es.js.map +0 -1
  358. package/es/config/types/image-upload.interface.es.js +0 -2
  359. package/es/config/types/image-upload.interface.es.js.map +0 -1
  360. package/es/config/types/load-on-demand-module.interface.es.js +0 -2
  361. package/es/config/types/load-on-demand-module.interface.es.js.map +0 -1
  362. package/es/config/types/mention-module.interface.es.js +0 -2
  363. package/es/config/types/mention-module.interface.es.js.map +0 -1
  364. package/es/config/types/paste-change.interface.es.js +0 -2
  365. package/es/config/types/paste-change.interface.es.js.map +0 -1
  366. package/es/config/types/quick-menu-module.interface.es.js +0 -2
  367. package/es/config/types/quick-menu-module.interface.es.js.map +0 -1
  368. package/es/config/types/range.interface.es.js +0 -2
  369. package/es/config/types/range.interface.es.js.map +0 -1
  370. package/es/config/types/registry-options.interface.es.js +0 -2
  371. package/es/config/types/registry-options.interface.es.js.map +0 -1
  372. package/es/config/types/selection-change.interface.es.js +0 -2
  373. package/es/config/types/selection-change.interface.es.js.map +0 -1
  374. package/es/config/types/toolbar-item.interface.es.js +0 -2
  375. package/es/config/types/toolbar-item.interface.es.js.map +0 -1
  376. package/es/config/types/validate-error.interface.es.js +0 -2
  377. package/es/config/types/validate-error.interface.es.js.map +0 -1
  378. package/es/modules/custom-image/BlotFormatter.es.js.map +0 -1
  379. package/es/modules/custom-image/Options.es.js +0 -95
  380. package/es/modules/custom-image/Options.es.js.map +0 -1
  381. package/es/modules/custom-image/actions/Action.es.js +0 -15
  382. package/es/modules/custom-image/actions/Action.es.js.map +0 -1
  383. package/es/modules/custom-image/actions/DeleteAction.es.js.map +0 -1
  384. package/es/modules/custom-image/image-bar.es.js +0 -127
  385. package/es/modules/custom-image/image-bar.es.js.map +0 -1
  386. package/es/modules/custom-image/specs/BlotSpec.es.js +0 -27
  387. package/es/modules/custom-image/specs/BlotSpec.es.js.map +0 -1
  388. package/es/modules/custom-image/specs/CustomImageSpec.es.js.map +0 -1
  389. package/es/modules/custom-image/specs/ImageSpec.es.js +0 -29
  390. package/es/modules/custom-image/specs/ImageSpec.es.js.map +0 -1
  391. package/es/modules/emoji/emoji-list/index.es.js +0 -5
  392. package/es/modules/emoji/emoji-list/people.es.js +0 -114
  393. package/es/modules/emoji/emoji-list/people.es.js.map +0 -1
  394. package/es/modules/emoji/emoji-list.es.js +0 -9
  395. package/es/modules/emoji/emoji-list.es.js.map +0 -1
  396. package/es/modules/emoji/emoji-map.es.js +0 -9
  397. package/es/modules/emoji/emoji-map.es.js.map +0 -1
  398. package/es/modules/emoji/emoji-sprite.es.js +0 -5
  399. package/es/modules/emoji/emoji-sprite.es.js.map +0 -1
  400. package/es/modules/emoji/formats/emoji-blot.es.js +0 -41
  401. package/es/modules/emoji/formats/emoji-blot.es.js.map +0 -1
  402. package/es/modules/emoji/index.es.js +0 -8
  403. package/es/modules/emoji/index.es.js.map +0 -1
  404. package/es/modules/emoji/modules/emoji.es.js +0 -248
  405. package/es/modules/emoji/modules/emoji.es.js.map +0 -1
  406. package/es/modules/emoji/modules/toolbar-emoji.es.js +0 -153
  407. package/es/modules/emoji/modules/toolbar-emoji.es.js.map +0 -1
  408. package/es/modules/emoji/utils.es.js +0 -19
  409. package/es/modules/emoji/utils.es.js.map +0 -1
  410. package/es/modules/mention/Mention.es.js.map +0 -1
  411. package/es/modules/mention/MentionLink.es.js.map +0 -1
  412. package/lib/config/types/additional-toolbar-item.interface.cjs.js +0 -2
  413. package/lib/config/types/additional-toolbar-item.interface.cjs.js.map +0 -1
  414. package/lib/config/types/content-change.interface.cjs.js +0 -2
  415. package/lib/config/types/content-change.interface.cjs.js.map +0 -1
  416. package/lib/config/types/content-save.interface.cjs.js +0 -2
  417. package/lib/config/types/content-save.interface.cjs.js.map +0 -1
  418. package/lib/config/types/counter-option.interface.cjs.js +0 -2
  419. package/lib/config/types/counter-option.interface.cjs.js.map +0 -1
  420. package/lib/config/types/editor-toolbar.interface.cjs.js +0 -2
  421. package/lib/config/types/editor-toolbar.interface.cjs.js.map +0 -1
  422. package/lib/config/types/file-operation.interface.cjs.js +0 -2
  423. package/lib/config/types/file-operation.interface.cjs.js.map +0 -1
  424. package/lib/config/types/focus-change.interface.cjs.js +0 -2
  425. package/lib/config/types/focus-change.interface.cjs.js.map +0 -1
  426. package/lib/config/types/fullscreen-module.interface.cjs.js +0 -2
  427. package/lib/config/types/fullscreen-module.interface.cjs.js.map +0 -1
  428. package/lib/config/types/help-panel-item.interface.cjs.js +0 -2
  429. package/lib/config/types/help-panel-item.interface.cjs.js.map +0 -1
  430. package/lib/config/types/help-panel-option.interface.cjs.js +0 -2
  431. package/lib/config/types/help-panel-option.interface.cjs.js.map +0 -1
  432. package/lib/config/types/image-module.interface.cjs.js +0 -2
  433. package/lib/config/types/image-module.interface.cjs.js.map +0 -1
  434. package/lib/config/types/image-upload.interface.cjs.js +0 -2
  435. package/lib/config/types/image-upload.interface.cjs.js.map +0 -1
  436. package/lib/config/types/load-on-demand-module.interface.cjs.js +0 -2
  437. package/lib/config/types/load-on-demand-module.interface.cjs.js.map +0 -1
  438. package/lib/config/types/mention-module.interface.cjs.js +0 -2
  439. package/lib/config/types/mention-module.interface.cjs.js.map +0 -1
  440. package/lib/config/types/paste-change.interface.cjs.js +0 -2
  441. package/lib/config/types/paste-change.interface.cjs.js.map +0 -1
  442. package/lib/config/types/quick-menu-module.interface.cjs.js +0 -2
  443. package/lib/config/types/quick-menu-module.interface.cjs.js.map +0 -1
  444. package/lib/config/types/range.interface.cjs.js +0 -2
  445. package/lib/config/types/range.interface.cjs.js.map +0 -1
  446. package/lib/config/types/registry-options.interface.cjs.js +0 -2
  447. package/lib/config/types/registry-options.interface.cjs.js.map +0 -1
  448. package/lib/config/types/selection-change.interface.cjs.js +0 -2
  449. package/lib/config/types/selection-change.interface.cjs.js.map +0 -1
  450. package/lib/config/types/toolbar-item.interface.cjs.js +0 -2
  451. package/lib/config/types/toolbar-item.interface.cjs.js.map +0 -1
  452. package/lib/config/types/validate-error.interface.cjs.js +0 -2
  453. package/lib/config/types/validate-error.interface.cjs.js.map +0 -1
  454. package/lib/modules/custom-image/BlotFormatter.cjs.js.map +0 -1
  455. package/lib/modules/custom-image/Options.cjs.js +0 -95
  456. package/lib/modules/custom-image/Options.cjs.js.map +0 -1
  457. package/lib/modules/custom-image/actions/Action.cjs.js +0 -15
  458. package/lib/modules/custom-image/actions/Action.cjs.js.map +0 -1
  459. package/lib/modules/custom-image/actions/DeleteAction.cjs.js.map +0 -1
  460. package/lib/modules/custom-image/image-bar.cjs.js +0 -127
  461. package/lib/modules/custom-image/image-bar.cjs.js.map +0 -1
  462. package/lib/modules/custom-image/specs/BlotSpec.cjs.js +0 -27
  463. package/lib/modules/custom-image/specs/BlotSpec.cjs.js.map +0 -1
  464. package/lib/modules/custom-image/specs/CustomImageSpec.cjs.js.map +0 -1
  465. package/lib/modules/custom-image/specs/ImageSpec.cjs.js +0 -29
  466. package/lib/modules/custom-image/specs/ImageSpec.cjs.js.map +0 -1
  467. package/lib/modules/emoji/emoji-list/index.cjs.js +0 -5
  468. package/lib/modules/emoji/emoji-list/people.cjs.js +0 -114
  469. package/lib/modules/emoji/emoji-list/people.cjs.js.map +0 -1
  470. package/lib/modules/emoji/emoji-list.cjs.js +0 -9
  471. package/lib/modules/emoji/emoji-list.cjs.js.map +0 -1
  472. package/lib/modules/emoji/emoji-map.cjs.js +0 -9
  473. package/lib/modules/emoji/emoji-map.cjs.js.map +0 -1
  474. package/lib/modules/emoji/emoji-sprite.cjs.js +0 -5
  475. package/lib/modules/emoji/emoji-sprite.cjs.js.map +0 -1
  476. package/lib/modules/emoji/formats/emoji-blot.cjs.js +0 -41
  477. package/lib/modules/emoji/formats/emoji-blot.cjs.js.map +0 -1
  478. package/lib/modules/emoji/index.cjs.js +0 -8
  479. package/lib/modules/emoji/index.cjs.js.map +0 -1
  480. package/lib/modules/emoji/modules/emoji.cjs.js +0 -248
  481. package/lib/modules/emoji/modules/emoji.cjs.js.map +0 -1
  482. package/lib/modules/emoji/modules/toolbar-emoji.cjs.js +0 -153
  483. package/lib/modules/emoji/modules/toolbar-emoji.cjs.js.map +0 -1
  484. package/lib/modules/emoji/utils.cjs.js +0 -19
  485. package/lib/modules/emoji/utils.cjs.js.map +0 -1
  486. package/lib/modules/mention/Mention.cjs.js.map +0 -1
  487. package/lib/modules/mention/MentionLink.cjs.js.map +0 -1
@@ -1,16 +1,16 @@
1
1
  import { default as TypeInline } from 'quill/blots/inline';
2
2
 
3
3
  declare const Inline: typeof TypeInline;
4
- export default class Link extends Inline {
4
+ export declare class LinkBlot extends Inline {
5
5
  static blotName: string;
6
6
  static tagName: string;
7
7
  static SANITIZED_URL: string;
8
8
  static PROTOCOL_WHITELIST: string[];
9
9
  static className: string;
10
10
  static autoProtocol: string;
11
- static create(value: any): HTMLElement;
12
- static formats(domNode: any): any;
13
- static sanitize(url: any): any;
14
- format(name: any, value: any): void;
11
+ static create(value: string): HTMLElement;
12
+ static formats(domNode: HTMLElement): string | null;
13
+ static sanitize(url: string): string;
14
+ format(name: string, value: any): void;
15
15
  }
16
16
  export {};
@@ -1,6 +1,2 @@
1
- declare const Module: typeof import('quill/core/module').default;
2
- declare class Link extends Module {
3
- static register(): void;
4
- constructor(quill: any, options: any);
5
- }
6
- export default Link;
1
+ export * from './formats/link';
2
+ export * from './modules/tooltip';
@@ -1,29 +1,24 @@
1
+ import { default as FluentEditor } from '../../../core/fluent-editor';
1
2
  import { BaseTooltip } from 'quill/themes/base';
2
3
 
3
- export default class Tooltip extends BaseTooltip {
4
+ export declare class LinkTooltip extends BaseTooltip {
5
+ quill: FluentEditor;
4
6
  static TEMPLATE: string;
5
7
  isInputFocus: boolean;
6
8
  isHover: boolean;
7
9
  debouncedHideToolTip: any;
8
10
  debouncedShowToolTip: any;
9
- hide: any;
10
- linkRange: any;
11
- quill: any;
12
- root: any;
13
- restoreFocus: any;
14
- textbox: any;
15
- boundsContainer: any;
16
11
  options: {
17
12
  autoProtocol: string;
18
13
  };
19
- constructor(quill: any, bounds: any);
14
+ constructor(quill: FluentEditor, bounds: any);
20
15
  setTemplate(): void;
21
16
  resolveOptions(): void;
22
17
  shouldHide(): boolean;
23
18
  hideToolTip(): void;
24
19
  showToolTip(name: any, value: any, range: any): void;
25
20
  handleMouseLeave(): void;
26
- handleMouseEnter(event: any): void;
21
+ handleMouseEnter(event: MouseEvent): void;
27
22
  listen(): void;
28
23
  save(): void;
29
24
  position(reference: any): number;
@@ -2,8 +2,8 @@ import { MathfieldElement } from 'mathlive';
2
2
  import { Root } from 'parchment';
3
3
 
4
4
  declare const Parchment: typeof import("parchment");
5
- type MathliveBlotMode = 'dialog' | 'only-read';
6
- export default class MathliveBlot extends Parchment.EmbedBlot {
5
+ export type MathliveBlotMode = 'dialog' | 'only-read';
6
+ export declare class MathliveBlot extends Parchment.EmbedBlot {
7
7
  domNode: MathfieldElement;
8
8
  static blotName: string;
9
9
  static tagName: string;
@@ -1,9 +1,3 @@
1
- import { default as Quill } from 'quill';
2
- import { default as MathliveTooltip } from './tooltip';
3
-
4
- export default class MathliveModule {
5
- quill: Quill;
6
- tooltip: MathliveTooltip;
7
- constructor(quill: Quill);
8
- createDialog(value?: string): void;
9
- }
1
+ export * from './formats';
2
+ export * from './module';
3
+ export * from './tooltip';
@@ -0,0 +1,10 @@
1
+ import { default as Quill } from 'quill';
2
+ import { MathliveTooltip } from './tooltip';
3
+
4
+ export declare class MathliveModule {
5
+ quill: Quill;
6
+ tooltip: MathliveTooltip;
7
+ static register(): void;
8
+ constructor(quill: Quill);
9
+ createDialog(value?: string): void;
10
+ }
@@ -4,7 +4,7 @@ import { default as TypeTooltip } from 'quill/ui/tooltip';
4
4
  import { default as Quill } from 'quill';
5
5
 
6
6
  declare const Tooltip: typeof TypeTooltip;
7
- export default class MathliveTooltip extends Tooltip {
7
+ export declare class MathliveTooltip extends Tooltip {
8
8
  static TEMPLATE: string;
9
9
  mathliveDom: MathfieldElement;
10
10
  editValue?: string;
@@ -1,6 +1,6 @@
1
1
  import { default as Quill } from 'quill';
2
2
 
3
- interface MentionOption {
3
+ export interface MentionOption {
4
4
  containerClass?: string;
5
5
  defaultLink?: string;
6
6
  itemActiveClass?: string;
@@ -13,12 +13,12 @@ interface MentionOption {
13
13
  remove?: (data: any) => void;
14
14
  renderMentionItem?: (data: any) => string | HTMLElement;
15
15
  renderMentionText?: (data: any) => string | HTMLElement;
16
- search?: (term: string) => Promise<any[]>;
16
+ search?: (term: string) => Promise<any[]> | any[];
17
17
  searchKey: string;
18
18
  select?: (data: any) => void;
19
19
  target?: string;
20
20
  }
21
- declare class Mention {
21
+ export declare class Mention {
22
22
  private quill;
23
23
  private readonly options;
24
24
  private readonly mentionListEL;
@@ -52,4 +52,3 @@ declare class Mention {
52
52
  selectMentionItem(index?: number, isClick?: boolean): void;
53
53
  insertMentionBlot(activeMentionItem: any, isClick?: boolean): void;
54
54
  }
55
- export { Mention as default };
@@ -0,0 +1,2 @@
1
+ export * from './mention';
2
+ export * from './mention-link';
@@ -0,0 +1,17 @@
1
+ import { default as TypeEmbed } from 'quill/blots/embed';
2
+ import { default as TypeScroll } from 'quill/blots/scroll';
3
+
4
+ declare const Embed: typeof TypeEmbed;
5
+ export declare class MentionLink extends Embed {
6
+ scroll: TypeScroll;
7
+ static blotName: string;
8
+ static tagName: string;
9
+ static className: string;
10
+ mentionData: any;
11
+ static create(data: any): HTMLElement;
12
+ static value(domNode: HTMLElement): Record<string, any>;
13
+ constructor(scroll: TypeScroll, domNode: any, data: any);
14
+ value(): any;
15
+ remove(): void;
16
+ }
17
+ export {};
@@ -3,51 +3,21 @@ import { QuillShortcutKeyInputOptions, QuillShortcutKeyOptions, default as Quill
3
3
  import { Context } from 'quill/modules/keyboard';
4
4
  import { default as FluentEditor } from '../../fluent-editor';
5
5
 
6
- interface ShortCutKeyCustomOptions {
6
+ export interface ShortCutKeyCustomOptions {
7
7
  isMenuItemsAdd: boolean;
8
8
  }
9
- type ShortCutKeyInputOptions = QuillShortcutKeyInputOptions & ShortCutKeyCustomOptions;
10
- type ShortCutKeyOptions = QuillShortcutKeyOptions & ShortCutKeyCustomOptions;
9
+ export type ShortCutKeyInputOptions = QuillShortcutKeyInputOptions & ShortCutKeyCustomOptions;
10
+ export type ShortCutKeyOptions = QuillShortcutKeyOptions & ShortCutKeyCustomOptions;
11
11
  export declare class ShortCutKey extends QuillShortcutKey {
12
12
  quill: FluentEditor;
13
- options: ShortCutKeyOptions;
14
13
  constructor(quill: FluentEditor, options: Partial<ShortCutKeyInputOptions>);
15
- resolveOptions(options: Partial<ShortCutKeyInputOptions>): {
16
- placeholder: any;
17
- menuItems: ({
18
- type: "item";
19
- name: string;
20
- alias: string[];
21
- icon: any;
22
- title: any;
23
- onClick(this: Quill, range: Range, _: any): void;
24
- hideSearch?: undefined;
25
- children?: undefined;
26
- } | {
27
- type: "group";
28
- name: string;
29
- alias: any[];
30
- hideSearch: boolean;
31
- icon: any;
32
- title: any;
33
- children: {
34
- type: "item";
35
- name: string;
36
- alias: string[];
37
- icon: any;
38
- title: any;
39
- onClick: (this: Quill, range: Range) => void;
40
- }[];
41
- })[];
42
- isMenuItemsAdd: boolean;
43
- menuKeyboardControls: () => false;
44
- } & Partial<ShortCutKeyInputOptions>;
14
+ resolveOptions(options: Partial<ShortCutKeyInputOptions>): ShortCutKeyOptions;
45
15
  defaultMenuList(): ({
46
16
  type: "item";
47
17
  name: string;
48
18
  alias: string[];
49
19
  icon: any;
50
- title: any;
20
+ title: string;
51
21
  onClick(this: Quill, range: Range | null, _: any): void;
52
22
  hideSearch?: undefined;
53
23
  children?: undefined;
@@ -57,13 +27,13 @@ export declare class ShortCutKey extends QuillShortcutKey {
57
27
  alias: any[];
58
28
  hideSearch: boolean;
59
29
  icon: any;
60
- title: any;
30
+ title: string;
61
31
  children: {
62
32
  type: "item";
63
33
  name: string;
64
34
  alias: string[];
65
35
  icon: any;
66
- title: any;
36
+ title: string;
67
37
  onClick: (this: Quill, range: Range | null) => void;
68
38
  }[];
69
39
  })[];
@@ -72,19 +42,25 @@ export declare const shortKey: {
72
42
  link: {
73
43
  key: string;
74
44
  shortKey: boolean;
75
- handler(_: any, context: Context): void;
45
+ handler(this: {
46
+ quill: Quill;
47
+ }, _: any, context: Context): void;
76
48
  };
77
49
  color: {
78
50
  key: string;
79
51
  altKey: boolean;
80
52
  shortKey: boolean;
81
- handler(): void;
53
+ handler(this: {
54
+ quill: Quill;
55
+ }): void;
82
56
  };
83
57
  background: {
84
58
  key: string;
85
59
  altKey: boolean;
86
60
  shortKey: boolean;
87
- handler(): void;
61
+ handler(this: {
62
+ quill: Quill;
63
+ }): void;
88
64
  };
89
65
  clean: {
90
66
  key: string;
@@ -94,4 +70,3 @@ export declare const shortKey: {
94
70
  }, range: Range): void;
95
71
  };
96
72
  };
97
- export {};
@@ -8,7 +8,7 @@ interface InternalModule {
8
8
  update: () => void;
9
9
  destroy: () => void;
10
10
  }
11
- interface InternalTableSelectionModule extends InternalModule {
11
+ export interface InternalTableSelectionModule extends InternalModule {
12
12
  dragging: boolean;
13
13
  boundary: {
14
14
  x: number;
@@ -35,32 +35,32 @@ export declare function generateTableUp(QuillTableUp: Constructor): {
35
35
  [x: string]: any;
36
36
  tableSelection?: InternalTableSelectionModule;
37
37
  quill: FluentEditor;
38
- resolveTexts(options: Partial<Record<string, string>>): {
39
- fullCheckboxText: any;
40
- customBtnText: any;
41
- confirmText: any;
42
- cancelText: any;
43
- rowText: any;
44
- colText: any;
45
- notPositiveNumberError: any;
46
- custom: any;
47
- clear: any;
48
- transparent: any;
49
- perWidthInsufficient: any;
50
- CopyCell: any;
51
- CutCell: any;
52
- InsertTop: any;
53
- InsertRight: any;
54
- InsertBottom: any;
55
- InsertLeft: any;
56
- MergeCell: any;
57
- SplitCell: any;
58
- DeleteRow: any;
59
- DeleteColumn: any;
60
- DeleteTable: any;
61
- BackgroundColor: any;
62
- BorderColor: any;
63
- } & Partial<Record<string, string>>;
38
+ resolveTexts(options?: Record<string, string>): {
39
+ fullCheckboxText: string;
40
+ customBtnText: string;
41
+ confirmText: string;
42
+ cancelText: string;
43
+ rowText: string;
44
+ colText: string;
45
+ notPositiveNumberError: string;
46
+ custom: string;
47
+ clear: string;
48
+ transparent: string;
49
+ perWidthInsufficient: string;
50
+ CopyCell: string;
51
+ CutCell: string;
52
+ InsertTop: string;
53
+ InsertRight: string;
54
+ InsertBottom: string;
55
+ InsertLeft: string;
56
+ MergeCell: string;
57
+ SplitCell: string;
58
+ DeleteRow: string;
59
+ DeleteColumn: string;
60
+ DeleteTable: string;
61
+ BackgroundColor: string;
62
+ BorderColor: string;
63
+ } & Record<string, string>;
64
64
  };
65
65
  };
66
66
  export {};
@@ -0,0 +1,8 @@
1
+ import { default as TypeToolbar } from 'quill/modules/toolbar';
2
+
3
+ declare const Toolbar: typeof TypeToolbar;
4
+ export declare class BetterToolbar extends Toolbar {
5
+ update(range: any): void;
6
+ attach(input: HTMLElement): void;
7
+ }
8
+ export {};
@@ -1,9 +1,3 @@
1
- import { default as TypeToolbar } from 'quill/modules/toolbar';
2
-
3
- declare const Toolbar: typeof TypeToolbar;
4
- declare class BetterToolbar extends Toolbar {
5
- update(range: any): void;
6
- attach(input: HTMLElement): void;
7
- }
8
- export default BetterToolbar;
1
+ export * from './better-picker';
2
+ export * from './better-toolbar';
9
3
  export * from './toolbar-tip';
@@ -1,3 +1,7 @@
1
- import { FluentEditorToolbar } from '../config/types';
1
+ import { default as Toolbar } from 'quill/modules/toolbar';
2
+ import { default as FluentEditor } from '../core/fluent-editor';
2
3
 
4
+ export interface FluentEditorToolbar extends Toolbar {
5
+ quill: FluentEditor;
6
+ }
3
7
  export declare function fullscreenHandler(this: FluentEditorToolbar): void;
@@ -21,6 +21,7 @@ export declare const FILE_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"
21
21
  export declare const TABLE_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g transform=\"translate(-1227.000000, -96.000000)\" fill=\"#293040\">\n <g transform=\"translate(407.000000, 93.000000)\">\n <path d=\"M820,3 L836,3 L836,19 L820,19 L820,3 Z M821,4 L821,8 L835,8 L835,4 L821,4 Z M821,9 L821,13 L825,\n 13 L825,9 L821,9 Z M821,14 L821,18 L825,18 L825,14 L821,14 Z M826,9 L826,13 L830,13 L830,9 L826,9 Z M826,\n 14 L826,18 L830,18 L830,14 L826,14 Z M831,9 L831,13 L835,13 L835,9 L831,9 Z M831,14 L831,18 L835,18 L835,\n 14 L831,14 Z\"></path>\n </g>\n </g>\n</g>\n</svg>";
22
22
  export declare const LINK_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g transform=\"translate(-1258.000000, -96.000000)\" fill=\"#293040\" fill-rule=\"nonzero\">\n <g transform=\"translate(407.000000, 93.000000)\">\n <path d=\"M855.499,13.863 L861.863,7.499 L862.573,8.209 L856.209,14.573 L855.499,13.863 Z M854.646498,9.99452063\n C854.661947,10.0108615 854.677673,10.0270363 854.693676,10.0430391 L855.388521,10.7378841 L852.802248,13.3241571\n C851.732584,14.3938208 851.732584,16.1280884 852.802248,17.1977522 C853.871912,18.2674159 855.606179,18.2674159\n 856.675843,17.1977522 L859.262116,14.6114792 L859.956961,15.3063242 C859.972964,15.3223269 859.989138,15.3380528\n 860.005479,15.3535018 L857.468863,17.8901187 C855.989021,19.3699604 853.589723,19.3699604 852.109881,17.8901187\n C850.63004,16.4102769 850.63004,14.0109793 852.109881,12.5311375 L854.646498,9.99452063 Z M857.994521,6.64649819\n L860.531137,4.10988134 C862.010979,2.63003955 864.410277,2.63003955 865.890119,4.10988134 C867.36996,5.58972313\n 867.36996,7.98902073 865.890119,9.46886252 L863.353502,12.0054794 C863.338053,11.9891385 863.322327,11.9729637\n 863.306324,11.9569609 L862.611479,11.2621159 L865.197752,8.67584293 C866.267416,7.60617918 866.267416,5.87191157\n 865.197752,4.80224782 C864.128088,3.73258406 862.393821,3.73258406 861.324157,4.80224782 L858.737884,7.38852082\n L858.043039,6.69367584 C858.027036,6.67767307 858.010862,6.66194719 857.994521,6.64649819 Z\"></path>\n </g>\n </g>\n</g>\n</svg>";
23
23
  export declare const EMOJI_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <path d=\"M8,16 C3.581722,16 0,12.418278 0,8 C0,3.581722 3.581722,0 8,0 C12.418278,0 16,3.581722 16,8 C16,12.418278\n 12.418278,16 8,16 Z M8,15 C11.8659932,15 15,11.8659932 15,8 C15,4.13400675 11.8659932,1 8,1 C4.13400675,1 1,4.13400675\n 1,8 C1,11.8659932 4.13400675,15 8,15 Z M5,7 C4.44771525,7 4,6.55228475 4,6 C4,5.44771525 4.44771525,5 5,5 C5.55228475,5\n 6,5.44771525 6,6 C6,6.55228475 5.55228475,7 5,7 Z M11,7 C10.4477153,7 10,6.55228475 10,6 C10,5.44771525 10.4477153,5 11,5\n C11.5522847,5 12,5.44771525 12,6 C12,6.55228475 11.5522847,7 11,7 Z M4,10 L12,10 C11.5415129,11.7252272 9.9244686,13 8,13\n C6.0755314,13 4.45848714,11.7252272 4,10 Z\" fill=\"#293040\"></path>\n</g>\n</svg>";
24
+ export declare const EMOJI_PLUS_ICON = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\">\n <rect width=\"24\" height=\"24\" fill=\"none\" />\n <g fill=\"none\">\n <path d=\"m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z\" />\n <path fill=\"currentColor\" d=\"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m0 2a8 8 0 1 0 0 16a8 8 0 0 0 0-16m2.8 9.857a1 1 0 1 1 1.4 1.428A5.98 5.98 0 0 1 12 17a5.98 5.98 0 0 1-4.2-1.715a1 1 0 0 1 1.4-1.428A3.98 3.98 0 0 0 12 15c1.09 0 2.077-.435 2.8-1.143M8.5 8a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3m7 0a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3\" />\n </g>\n</svg>";
24
25
  export declare const SCREENSHOT_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\" version=\"1.1\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g transform=\"translate(-1529.000000, -96.000000)\">\n <g transform=\"translate(1529.000000, 96.000000)\">\n <rect fill=\"#000000\" fill-rule=\"nonzero\" opacity=\"0\" x=\"0\" y=\"0\" width=\"16\" height=\"16\"></rect>\n <polyline stroke=\"currentColor\" points=\"16 14 2 14 2 0 2 0\"></polyline>\n <polyline stroke=\"currentColor\" points=\"4 2 14 2 14 12\"></polyline>\n <rect fill=\"currentColor\" x=\"0\" y=\"1.5\" width=\"2\" height=\"1\"></rect>\n <rect fill=\"currentColor\"\n transform=\"translate(14.000000, 15.000000)\n rotate(-90.000000)\n translate(-14.000000, -15.000000) \" x=\"13\" y=\"14.5\" width=\"2\" height=\"1\">\n </rect>\n </g>\n </g>\n</g>\n</svg>";
25
26
  export declare const CODE_ICON = "<svg t=\"1721956397010\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4254\" width=\"20\" height=\"20\"><path d=\"M438.4 849.1l222.7-646.7c0.2-0.5 0.3-1.1 0.4-1.6L438.4 849.1z\" opacity=\".224\" p-id=\"4255\"></path><path d=\"M661.2 168.7h-67.5c-3.4 0-6.5 2.2-7.6 5.4L354.7 846c-0.3 0.8-0.4 1.7-0.4 2.6 0 4.4 3.6 8 8 8h67.8c3.4 0 6.5-2.2 7.6-5.4l0.7-2.1 223.1-648.3 7.4-21.4c0.3-0.8 0.4-1.7 0.4-2.6-0.1-4.5-3.6-8.1-8.1-8.1zM954.6 502.1c-0.8-1-1.7-1.9-2.7-2.7l-219-171.3c-3.5-2.7-8.5-2.1-11.2 1.4-1.1 1.4-1.7 3.1-1.7 4.9v81.3c0 2.5 1.1 4.8 3.1 6.3l115 90-115 90c-1.9 1.5-3.1 3.8-3.1 6.3v81.3c0 4.4 3.6 8 8 8 1.8 0 3.5-0.6 4.9-1.7l219-171.3c6.9-5.4 8.2-15.5 2.7-22.5zM291.1 328.1l-219 171.3c-1 0.8-1.9 1.7-2.7 2.7-5.4 7-4.2 17 2.7 22.5l219 171.3c1.4 1.1 3.1 1.7 4.9 1.7 4.4 0 8-3.6 8-8v-81.3c0-2.5-1.1-4.8-3.1-6.3l-115-90 115-90c1.9-1.5 3.1-3.8 3.1-6.3v-81.3c0-1.8-0.6-3.5-1.7-4.9-2.7-3.5-7.7-4.1-11.2-1.4z\" p-id=\"4256\"></path></svg>";
26
27
  export declare const MENTION_ICON = "<i class=\"icon-set-keyword\"></i>";
@@ -1,4 +1,6 @@
1
- export declare function isObject(value: unknown): value is object;
1
+ export declare function isObject(value: unknown): value is Record<string, any>;
2
2
  export declare const isUndefined: (val: unknown) => val is undefined;
3
3
  export declare const isFunction: (val: unknown) => val is Function;
4
4
  export declare const isString: (val: unknown) => val is string;
5
+ export declare const isBoolean: (val: unknown) => val is boolean;
6
+ export declare const isArray: (arg: any) => arg is any[];
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=additional-toolbar-item.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"additional-toolbar-item.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=content-change.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"content-change.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=content-save.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"content-save.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=counter-option.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"counter-option.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=editor-toolbar.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editor-toolbar.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=file-operation.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-operation.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=focus-change.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"focus-change.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=fullscreen-module.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fullscreen-module.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=help-panel-item.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"help-panel-item.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=help-panel-option.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"help-panel-option.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=image-module.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"image-module.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=image-upload.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"image-upload.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=load-on-demand-module.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"load-on-demand-module.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=mention-module.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mention-module.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=paste-change.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paste-change.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=quick-menu-module.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"quick-menu-module.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=range.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"range.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=registry-options.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry-options.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=selection-change.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selection-change.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=toolbar-item.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toolbar-item.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=validate-error.interface.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validate-error.interface.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlotFormatter.es.js","sources":["../../../../src/modules/custom-image/BlotFormatter.ts"],"sourcesContent":["import type Action from './actions/Action'\r\nimport type { Options } from './Options'\r\nimport type BlotSpec from './specs/BlotSpec'\r\nimport { merge as deepmerge } from 'lodash-es'\r\nimport Quill from 'quill'\r\nimport ImageBlot, { ImageContainerBlot } from './image'\r\nimport ImageBar from './image-bar'\r\nimport DefaultOptions from './Options'\r\nimport { CustomImageSpec } from './specs/CustomImageSpec'\r\n\r\nconst dontMerge = (_destination: Array<any>, source: Array<any>) => source\r\n\r\n// @dynamic\r\nexport default class BlotFormatter {\r\n quill: any\r\n options: Options\r\n currentSpec: BlotSpec\r\n specs: BlotSpec[]\r\n overlay: HTMLElement\r\n actions: Action[]\r\n observer: any\r\n imageBar: ImageBar\r\n private debounceTimer: number | null = null\r\n\r\n static register() {\r\n Quill.register('formats/image', ImageBlot, true)\r\n Quill.register('formats/image-container', ImageContainerBlot, true)\r\n Quill.register('modules/image-spec', CustomImageSpec, true)\r\n }\r\n\r\n constructor(quill: any, options: any = {}) {\r\n this.quill = quill\r\n this.options = deepmerge(DefaultOptions, options, { arrayMerge: dontMerge })\r\n this.currentSpec = null\r\n this.actions = []\r\n this.overlay = document.createElement('div')\r\n this.overlay.classList.add(this.options.overlay.className)\r\n if (this.options.overlay.style) {\r\n Object.assign(this.overlay.style, this.options.overlay.style)\r\n }\r\n\r\n // disable native image resizing on firefox\r\n document.execCommand('enableObjectResizing', false, 'false') // eslint-disable-next-line-line no-undef\r\n this.quill.root.addEventListener('click', this.onClick)\r\n this.quill.root.addEventListener('mouseover', event => this.onMouseOver(event))\r\n this.specs = this.options.specs.map((SpecClass: any) => new SpecClass(this))\r\n this.specs.forEach(spec => spec.init())\r\n }\r\n\r\n show(spec: BlotSpec) {\r\n this.currentSpec = spec\r\n this.currentSpec.setSelection()\r\n this.setUserSelect('none')\r\n this.quill.root.parentNode.appendChild(this.overlay)\r\n this.repositionOverlay()\r\n this.createActions(spec)\r\n\r\n // fix: 图片对齐之后,虚线外框应该跟随移动\r\n const imageDom = spec.getTargetElement()\r\n const win: any = window\r\n const MutationObserver = win.MutationObserver || win.WebKitMutationObserver || win.MozMutationObserver\r\n const element = imageDom.parentNode\r\n this.observer = new MutationObserver((mutationList) => {\r\n for (const mutation of mutationList) {\r\n const target = mutation.target\r\n const image = target.querySelector('img')\r\n if (image) {\r\n this.repositionOverlay()\r\n }\r\n }\r\n })\r\n this.observer.observe(element, {\r\n attributes: true,\r\n attributeFilter: ['class'],\r\n attributeOldValue: true,\r\n subtree: true,\r\n })\r\n document.body.addEventListener('click', this.hideImageOverlay, true)\r\n }\r\n\r\n hide() {\r\n if (!this.currentSpec) {\r\n return\r\n }\r\n\r\n const imgDom = this.currentSpec.getTargetElement()\r\n if (imgDom) {\r\n imgDom.classList.remove('current-select-img')\r\n }\r\n\r\n this.currentSpec.onHide()\r\n this.currentSpec = null\r\n this.quill.root.parentNode.removeChild(this.overlay)\r\n this.overlay.style.setProperty('display', 'none')\r\n this.setUserSelect('')\r\n this.destroyActions()\r\n }\r\n\r\n update() {\r\n this.repositionOverlay()\r\n this.actions.forEach(action => action.onUpdate())\r\n }\r\n\r\n createActions(spec: BlotSpec) {\r\n this.actions = spec.getActions().map((ActionClass: any) => {\r\n const action: Action = new ActionClass(this)\r\n action.onCreate()\r\n return action\r\n })\r\n }\r\n\r\n destroyActions() {\r\n this.actions.forEach((action: Action) => action.onDestroy())\r\n this.actions = []\r\n }\r\n\r\n repositionOverlay() {\r\n if (!this.currentSpec) {\r\n return\r\n }\r\n\r\n const overlayTarget = this.currentSpec.getOverlayElement()\r\n if (!overlayTarget) {\r\n return\r\n }\r\n\r\n const parent: HTMLElement = this.quill.root.parentNode\r\n const specRect = overlayTarget.getBoundingClientRect()\r\n const parentRect = parent.getBoundingClientRect()\r\n\r\n Object.assign(this.overlay.style, {\r\n display: 'block',\r\n left: `${specRect.left - parentRect.left - 1 + parent.scrollLeft}px`,\r\n top: `${specRect.top - parentRect.top + parent.scrollTop}px`,\r\n width: `${specRect.width}px`,\r\n height: `${specRect.height}px`,\r\n })\r\n }\r\n\r\n setUserSelect(value: string) {\r\n const props: string[] = [\r\n 'userSelect',\r\n 'mozUserSelect',\r\n 'webkitUserSelect',\r\n 'msUserSelect',\r\n ]\r\n\r\n props.forEach((prop: string) => {\r\n // set on contenteditable element and <html>\r\n this.quill.root.style.setProperty(prop, value)\r\n if (document.documentElement) {\r\n document.documentElement.style.setProperty(prop, value)\r\n }\r\n })\r\n }\r\n\r\n onClick = () => {\r\n this.hide()\r\n this.hideImageBar()\r\n }\r\n\r\n onMouseOver = (event) => {\r\n if (this.debounceTimer) {\r\n clearTimeout(this.debounceTimer)\r\n }\r\n this.debounceTimer = window.setTimeout(() => {\r\n if (event.target.tagName === 'IMG') {\r\n const target = event.target\r\n if (target) {\r\n if (this.imageBar) {\r\n this.imageBar.destroy()\r\n }\r\n this.imageBar = new ImageBar(this.quill, target)\r\n }\r\n }\r\n else {\r\n this.hideImageBar()\r\n }\r\n }, 150)\r\n }\r\n\r\n hideImageBar = () => {\r\n if (this.imageBar) {\r\n this.imageBar.destroy()\r\n this.imageBar = null\r\n }\r\n }\r\n\r\n hideImageOverlay = (event) => {\r\n const target = event.target\r\n const isBlotFormatter = target?.classList?.contains('blot-formatter__overlay')\r\n // 点击图片操作框之外应该将其销毁\r\n if (!isBlotFormatter) {\r\n this.hide()\r\n }\r\n document.body.removeEventListener('click', this.hideImageOverlay)\r\n }\r\n}\r\n"],"names":["deepmerge","ImageBlot","ImageContainerBlot"],"mappings":"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"}