@opentiny/fluent-editor 4.0.0-alpha.9 → 4.0.0-beta.0

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 (385) hide show
  1. package/README.md +88 -88
  2. package/es/attributors/line-height.es.js.map +1 -1
  3. package/es/config/base64-image.es.js.map +1 -1
  4. package/es/config/editor.config.es.js +27 -0
  5. package/es/config/editor.config.es.js.map +1 -1
  6. package/es/config/editor.utils.es.js.map +1 -1
  7. package/es/config/i18n/en-us.es.js +2 -0
  8. package/es/config/i18n/en-us.es.js.map +1 -1
  9. package/es/config/i18n/zh-cn.es.js +2 -0
  10. package/es/config/i18n/zh-cn.es.js.map +1 -1
  11. package/es/config/index.es.js +3 -1
  12. package/es/config/index.es.js.map +1 -1
  13. package/es/core/fluent-editor.es.js.map +1 -1
  14. package/es/fluent-editor.es.js +17 -13
  15. package/es/fluent-editor.es.js.map +1 -1
  16. package/es/formats/emoji.es.js.map +1 -1
  17. package/es/formats/soft-break.es.js.map +1 -1
  18. package/es/formats/strike.es.js.map +1 -1
  19. package/es/formats/video.es.js.map +1 -1
  20. package/es/index.es.js +35 -2
  21. package/es/index.es.js.map +1 -1
  22. package/es/modules/ai/constants.es.js.map +1 -1
  23. package/es/modules/ai/icons.es.js.map +1 -1
  24. package/es/modules/ai/index.es.js +1 -1
  25. package/es/modules/ai/index.es.js.map +1 -1
  26. package/es/modules/collaborative-editing/awareness/awareness.es.js +6 -7
  27. package/es/modules/collaborative-editing/awareness/awareness.es.js.map +1 -1
  28. package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js +7 -3
  29. package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js.map +1 -1
  30. package/es/modules/collaborative-editing/collaborative-editing.es.js +13 -8
  31. package/es/modules/collaborative-editing/collaborative-editing.es.js.map +1 -1
  32. package/es/modules/collaborative-editing/module.es.js.map +1 -1
  33. package/es/modules/collaborative-editing/provider/providerRegistry.es.js.map +1 -1
  34. package/es/modules/collaborative-editing/provider/webrtc.es.js +8 -4
  35. package/es/modules/collaborative-editing/provider/webrtc.es.js.map +1 -1
  36. package/es/modules/collaborative-editing/provider/websocket.es.js +6 -4
  37. package/es/modules/collaborative-editing/provider/websocket.es.js.map +1 -1
  38. package/es/modules/counter.es.js.map +1 -1
  39. package/es/modules/custom-clipboard.es.js.map +1 -1
  40. package/es/modules/custom-image/actions/action.es.js.map +1 -1
  41. package/es/modules/custom-image/actions/custom-resize-action.es.js.map +1 -1
  42. package/es/modules/custom-image/actions/delete-action.es.js.map +1 -1
  43. package/es/modules/custom-image/actions/image-toolbar-buttons.es.js +1 -1
  44. package/es/modules/custom-image/actions/image-toolbar-buttons.es.js.map +1 -1
  45. package/es/modules/custom-image/actions/toolbar-action.es.js.map +1 -1
  46. package/es/modules/custom-image/actions/toolbar.es.js.map +1 -1
  47. package/es/modules/custom-image/blot-formatter.es.js +1 -1
  48. package/es/modules/custom-image/blot-formatter.es.js.map +1 -1
  49. package/es/modules/custom-image/image.es.js.map +1 -1
  50. package/es/modules/custom-image/options.es.js.map +1 -1
  51. package/es/modules/custom-image/specs/blot-spec.es.js.map +1 -1
  52. package/es/modules/custom-image/specs/custom-image-spec.es.js.map +1 -1
  53. package/es/modules/custom-image/specs/image-spec.es.js.map +1 -1
  54. package/es/modules/custom-uploader.es.js.map +1 -1
  55. package/es/modules/divider.es.js.map +1 -1
  56. package/es/modules/emoji.es.js +1 -1
  57. package/es/modules/emoji.es.js.map +1 -1
  58. package/es/modules/file/formats/file.es.js.map +1 -1
  59. package/es/modules/file/modules/file-bar.es.js.map +1 -1
  60. package/es/modules/file/modules/file-module.es.js.map +1 -1
  61. package/es/modules/flow-chart/config-utils.es.js +102 -0
  62. package/es/modules/flow-chart/config-utils.es.js.map +1 -0
  63. package/es/modules/flow-chart/formats/flow-chart-blot.es.js +369 -0
  64. package/es/modules/flow-chart/formats/flow-chart-blot.es.js.map +1 -0
  65. package/es/modules/flow-chart/i18n/en-us.es.js +30 -0
  66. package/es/modules/flow-chart/i18n/en-us.es.js.map +1 -0
  67. package/es/modules/flow-chart/i18n/index.es.js +12 -0
  68. package/es/modules/flow-chart/i18n/index.es.js.map +1 -0
  69. package/es/modules/flow-chart/i18n/zh-cn.es.js +30 -0
  70. package/es/modules/flow-chart/i18n/zh-cn.es.js.map +1 -0
  71. package/es/modules/flow-chart/icons.es.js +27 -0
  72. package/es/modules/flow-chart/icons.es.js.map +1 -0
  73. package/es/modules/flow-chart/index.es.js +45 -0
  74. package/es/modules/flow-chart/index.es.js.map +1 -0
  75. package/es/modules/flow-chart/modules/context-menu.es.js +184 -0
  76. package/es/modules/flow-chart/modules/context-menu.es.js.map +1 -0
  77. package/es/modules/flow-chart/modules/control-panel.es.js +286 -0
  78. package/es/modules/flow-chart/modules/control-panel.es.js.map +1 -0
  79. package/es/modules/flow-chart/modules/custom-resize-action.es.js +150 -0
  80. package/es/modules/flow-chart/modules/custom-resize-action.es.js.map +1 -0
  81. package/es/modules/i18n.es.js.map +1 -1
  82. package/es/modules/index.es.js +4 -0
  83. package/es/modules/index.es.js.map +1 -1
  84. package/es/modules/link/formats/link.es.js.map +1 -1
  85. package/es/modules/link/modules/tooltip.es.js.map +1 -1
  86. package/es/modules/mathlive/formats.es.js.map +1 -1
  87. package/es/modules/mathlive/module.es.js.map +1 -1
  88. package/es/modules/mathlive/tooltip.es.js.map +1 -1
  89. package/es/modules/mention/constants.es.js.map +1 -1
  90. package/es/modules/mention/mention-link.es.js.map +1 -1
  91. package/es/modules/mention/mention.es.js.map +1 -1
  92. package/es/modules/mind-map/config-utils.es.js +108 -0
  93. package/es/modules/mind-map/config-utils.es.js.map +1 -0
  94. package/es/modules/mind-map/formats/mind-map-blot.es.js +356 -0
  95. package/es/modules/mind-map/formats/mind-map-blot.es.js.map +1 -0
  96. package/es/modules/mind-map/i18n/en-us.es.js +29 -0
  97. package/es/modules/mind-map/i18n/en-us.es.js.map +1 -0
  98. package/es/modules/mind-map/i18n/index.es.js +12 -0
  99. package/es/modules/mind-map/i18n/index.es.js.map +1 -0
  100. package/es/modules/mind-map/i18n/zh-cn.es.js +29 -0
  101. package/es/modules/mind-map/i18n/zh-cn.es.js.map +1 -0
  102. package/es/modules/mind-map/icons.es.js +45 -0
  103. package/es/modules/mind-map/icons.es.js.map +1 -0
  104. package/es/modules/mind-map/index.es.js +56 -0
  105. package/es/modules/mind-map/index.es.js.map +1 -0
  106. package/es/modules/mind-map/modules/context-menu.es.js +128 -0
  107. package/es/modules/mind-map/modules/context-menu.es.js.map +1 -0
  108. package/es/modules/mind-map/modules/control-panel.es.js +425 -0
  109. package/es/modules/mind-map/modules/control-panel.es.js.map +1 -0
  110. package/es/modules/mind-map/modules/custom-resize-action.es.js +161 -0
  111. package/es/modules/mind-map/modules/custom-resize-action.es.js.map +1 -0
  112. package/es/modules/shortcut-key/index.es.js +16 -0
  113. package/es/modules/shortcut-key/index.es.js.map +1 -1
  114. package/es/modules/syntax.es.js.map +1 -1
  115. package/es/modules/table-up/index.es.js.map +1 -1
  116. package/es/modules/toolbar/better-picker.es.js.map +1 -1
  117. package/es/modules/toolbar/better-toolbar.es.js.map +1 -1
  118. package/es/modules/toolbar/toolbar-tip.es.js.map +1 -1
  119. package/es/themes/snow.es.js.map +1 -1
  120. package/es/tools/format-painter.es.js.map +1 -1
  121. package/es/tools/fullscreen.es.js.map +1 -1
  122. package/es/tools/screenshot.es.js.map +1 -1
  123. package/es/ui/icons.config.es.js +4 -0
  124. package/es/ui/icons.config.es.js.map +1 -1
  125. package/es/ui/icons.es.js +4 -2
  126. package/es/ui/icons.es.js.map +1 -1
  127. package/es/utils/debounce.es.js.map +1 -1
  128. package/es/utils/image.es.js.map +1 -1
  129. package/es/utils/is.es.js.map +1 -1
  130. package/es/utils/merge.es.js +27 -0
  131. package/es/utils/merge.es.js.map +1 -0
  132. package/es/utils/method.es.js.map +1 -1
  133. package/es/utils/scroll-lock.es.js.map +1 -1
  134. package/flow-chart.css +185 -0
  135. package/lib/attributors/line-height.cjs.js.map +1 -1
  136. package/lib/config/base64-image.cjs.js.map +1 -1
  137. package/lib/config/editor.config.cjs.js +27 -0
  138. package/lib/config/editor.config.cjs.js.map +1 -1
  139. package/lib/config/editor.utils.cjs.js.map +1 -1
  140. package/lib/config/i18n/en-us.cjs.js +2 -0
  141. package/lib/config/i18n/en-us.cjs.js.map +1 -1
  142. package/lib/config/i18n/zh-cn.cjs.js +2 -0
  143. package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
  144. package/lib/config/index.cjs.js +2 -0
  145. package/lib/config/index.cjs.js.map +1 -1
  146. package/lib/core/fluent-editor.cjs.js.map +1 -1
  147. package/lib/fluent-editor.cjs.js +23 -19
  148. package/lib/fluent-editor.cjs.js.map +1 -1
  149. package/lib/formats/emoji.cjs.js.map +1 -1
  150. package/lib/formats/soft-break.cjs.js.map +1 -1
  151. package/lib/formats/strike.cjs.js.map +1 -1
  152. package/lib/formats/video.cjs.js.map +1 -1
  153. package/lib/index.cjs.js +39 -6
  154. package/lib/index.cjs.js.map +1 -1
  155. package/lib/modules/ai/constants.cjs.js.map +1 -1
  156. package/lib/modules/ai/icons.cjs.js.map +1 -1
  157. package/lib/modules/ai/index.cjs.js.map +1 -1
  158. package/lib/modules/collaborative-editing/awareness/awareness.cjs.js +6 -24
  159. package/lib/modules/collaborative-editing/awareness/awareness.cjs.js.map +1 -1
  160. package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js +7 -3
  161. package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js.map +1 -1
  162. package/lib/modules/collaborative-editing/collaborative-editing.cjs.js +19 -31
  163. package/lib/modules/collaborative-editing/collaborative-editing.cjs.js.map +1 -1
  164. package/lib/modules/collaborative-editing/module.cjs.js.map +1 -1
  165. package/lib/modules/collaborative-editing/provider/providerRegistry.cjs.js.map +1 -1
  166. package/lib/modules/collaborative-editing/provider/webrtc.cjs.js +10 -23
  167. package/lib/modules/collaborative-editing/provider/webrtc.cjs.js.map +1 -1
  168. package/lib/modules/collaborative-editing/provider/websocket.cjs.js +10 -25
  169. package/lib/modules/collaborative-editing/provider/websocket.cjs.js.map +1 -1
  170. package/lib/modules/counter.cjs.js.map +1 -1
  171. package/lib/modules/custom-clipboard.cjs.js.map +1 -1
  172. package/lib/modules/custom-image/actions/action.cjs.js.map +1 -1
  173. package/lib/modules/custom-image/actions/custom-resize-action.cjs.js.map +1 -1
  174. package/lib/modules/custom-image/actions/delete-action.cjs.js.map +1 -1
  175. package/lib/modules/custom-image/actions/image-toolbar-buttons.cjs.js.map +1 -1
  176. package/lib/modules/custom-image/actions/toolbar-action.cjs.js.map +1 -1
  177. package/lib/modules/custom-image/actions/toolbar.cjs.js.map +1 -1
  178. package/lib/modules/custom-image/blot-formatter.cjs.js +2 -2
  179. package/lib/modules/custom-image/blot-formatter.cjs.js.map +1 -1
  180. package/lib/modules/custom-image/image.cjs.js.map +1 -1
  181. package/lib/modules/custom-image/options.cjs.js.map +1 -1
  182. package/lib/modules/custom-image/specs/blot-spec.cjs.js.map +1 -1
  183. package/lib/modules/custom-image/specs/custom-image-spec.cjs.js.map +1 -1
  184. package/lib/modules/custom-image/specs/image-spec.cjs.js.map +1 -1
  185. package/lib/modules/custom-uploader.cjs.js.map +1 -1
  186. package/lib/modules/divider.cjs.js.map +1 -1
  187. package/lib/modules/emoji.cjs.js +2 -2
  188. package/lib/modules/emoji.cjs.js.map +1 -1
  189. package/lib/modules/file/formats/file.cjs.js.map +1 -1
  190. package/lib/modules/file/modules/file-bar.cjs.js.map +1 -1
  191. package/lib/modules/file/modules/file-module.cjs.js.map +1 -1
  192. package/lib/modules/flow-chart/config-utils.cjs.js +102 -0
  193. package/lib/modules/flow-chart/config-utils.cjs.js.map +1 -0
  194. package/lib/modules/flow-chart/formats/flow-chart-blot.cjs.js +369 -0
  195. package/lib/modules/flow-chart/formats/flow-chart-blot.cjs.js.map +1 -0
  196. package/lib/modules/flow-chart/i18n/en-us.cjs.js +30 -0
  197. package/lib/modules/flow-chart/i18n/en-us.cjs.js.map +1 -0
  198. package/lib/modules/flow-chart/i18n/index.cjs.js +12 -0
  199. package/lib/modules/flow-chart/i18n/index.cjs.js.map +1 -0
  200. package/lib/modules/flow-chart/i18n/zh-cn.cjs.js +30 -0
  201. package/lib/modules/flow-chart/i18n/zh-cn.cjs.js.map +1 -0
  202. package/lib/modules/flow-chart/icons.cjs.js +27 -0
  203. package/lib/modules/flow-chart/icons.cjs.js.map +1 -0
  204. package/lib/modules/flow-chart/index.cjs.js +45 -0
  205. package/lib/modules/flow-chart/index.cjs.js.map +1 -0
  206. package/lib/modules/flow-chart/modules/context-menu.cjs.js +184 -0
  207. package/lib/modules/flow-chart/modules/context-menu.cjs.js.map +1 -0
  208. package/lib/modules/flow-chart/modules/control-panel.cjs.js +286 -0
  209. package/lib/modules/flow-chart/modules/control-panel.cjs.js.map +1 -0
  210. package/lib/modules/flow-chart/modules/custom-resize-action.cjs.js +150 -0
  211. package/lib/modules/flow-chart/modules/custom-resize-action.cjs.js.map +1 -0
  212. package/lib/modules/i18n.cjs.js.map +1 -1
  213. package/lib/modules/index.cjs.js +9 -5
  214. package/lib/modules/index.cjs.js.map +1 -1
  215. package/lib/modules/link/formats/link.cjs.js.map +1 -1
  216. package/lib/modules/link/modules/tooltip.cjs.js.map +1 -1
  217. package/lib/modules/mathlive/formats.cjs.js.map +1 -1
  218. package/lib/modules/mathlive/module.cjs.js.map +1 -1
  219. package/lib/modules/mathlive/tooltip.cjs.js.map +1 -1
  220. package/lib/modules/mention/constants.cjs.js.map +1 -1
  221. package/lib/modules/mention/mention-link.cjs.js.map +1 -1
  222. package/lib/modules/mention/mention.cjs.js.map +1 -1
  223. package/lib/modules/mind-map/config-utils.cjs.js +108 -0
  224. package/lib/modules/mind-map/config-utils.cjs.js.map +1 -0
  225. package/lib/modules/mind-map/formats/mind-map-blot.cjs.js +356 -0
  226. package/lib/modules/mind-map/formats/mind-map-blot.cjs.js.map +1 -0
  227. package/lib/modules/mind-map/i18n/en-us.cjs.js +29 -0
  228. package/lib/modules/mind-map/i18n/en-us.cjs.js.map +1 -0
  229. package/lib/modules/mind-map/i18n/index.cjs.js +12 -0
  230. package/lib/modules/mind-map/i18n/index.cjs.js.map +1 -0
  231. package/lib/modules/mind-map/i18n/zh-cn.cjs.js +29 -0
  232. package/lib/modules/mind-map/i18n/zh-cn.cjs.js.map +1 -0
  233. package/lib/modules/mind-map/icons.cjs.js +45 -0
  234. package/lib/modules/mind-map/icons.cjs.js.map +1 -0
  235. package/lib/modules/mind-map/index.cjs.js +56 -0
  236. package/lib/modules/mind-map/index.cjs.js.map +1 -0
  237. package/lib/modules/mind-map/modules/context-menu.cjs.js +128 -0
  238. package/lib/modules/mind-map/modules/context-menu.cjs.js.map +1 -0
  239. package/lib/modules/mind-map/modules/control-panel.cjs.js +425 -0
  240. package/lib/modules/mind-map/modules/control-panel.cjs.js.map +1 -0
  241. package/lib/modules/mind-map/modules/custom-resize-action.cjs.js +161 -0
  242. package/lib/modules/mind-map/modules/custom-resize-action.cjs.js.map +1 -0
  243. package/lib/modules/shortcut-key/index.cjs.js +16 -0
  244. package/lib/modules/shortcut-key/index.cjs.js.map +1 -1
  245. package/lib/modules/syntax.cjs.js.map +1 -1
  246. package/lib/modules/table-up/index.cjs.js.map +1 -1
  247. package/lib/modules/toolbar/better-picker.cjs.js.map +1 -1
  248. package/lib/modules/toolbar/better-toolbar.cjs.js.map +1 -1
  249. package/lib/modules/toolbar/toolbar-tip.cjs.js.map +1 -1
  250. package/lib/themes/snow.cjs.js.map +1 -1
  251. package/lib/tools/format-painter.cjs.js.map +1 -1
  252. package/lib/tools/fullscreen.cjs.js.map +1 -1
  253. package/lib/tools/screenshot.cjs.js.map +1 -1
  254. package/lib/ui/icons.cjs.js +3 -1
  255. package/lib/ui/icons.cjs.js.map +1 -1
  256. package/lib/ui/icons.config.cjs.js +4 -0
  257. package/lib/ui/icons.config.cjs.js.map +1 -1
  258. package/lib/utils/debounce.cjs.js.map +1 -1
  259. package/lib/utils/image.cjs.js.map +1 -1
  260. package/lib/utils/is.cjs.js.map +1 -1
  261. package/lib/utils/merge.cjs.js +27 -0
  262. package/lib/utils/merge.cjs.js.map +1 -0
  263. package/lib/utils/method.cjs.js.map +1 -1
  264. package/lib/utils/scroll-lock.cjs.js.map +1 -1
  265. package/mind-map.css +224 -0
  266. package/package.json +45 -67
  267. package/patches/quill@2.0.3.patch +33 -0
  268. package/scripts/apply-patches.cjs +248 -0
  269. package/style.css +4 -2
  270. package/types/attributors/font-size.d.ts +1 -1
  271. package/types/attributors/font-style.d.ts +1 -1
  272. package/types/attributors/index.d.ts +4 -4
  273. package/types/attributors/line-height.d.ts +1 -1
  274. package/types/attributors/text-indent.d.ts +1 -1
  275. package/types/config/base64-image.d.ts +2 -2
  276. package/types/config/editor.config.d.ts +55 -11
  277. package/types/config/editor.utils.d.ts +40 -40
  278. package/types/config/i18n/en-us.d.ts +125 -123
  279. package/types/config/i18n/zh-cn.d.ts +125 -123
  280. package/types/config/index.d.ts +7 -7
  281. package/types/config/types/editor-config.interface.d.ts +11 -12
  282. package/types/config/types/editor-modules.interface.d.ts +40 -37
  283. package/types/config/types/index.d.ts +3 -3
  284. package/types/config/types/type.d.ts +2 -2
  285. package/types/core/fluent-editor.d.ts +10 -11
  286. package/types/fluent-editor.d.ts +1 -2
  287. package/types/formats/emoji.d.ts +7 -8
  288. package/types/formats/index.d.ts +4 -4
  289. package/types/formats/soft-break.d.ts +11 -12
  290. package/types/formats/strike.d.ts +7 -8
  291. package/types/formats/video.d.ts +12 -13
  292. package/types/index.d.ts +7 -8
  293. package/types/modules/ai/constants.d.ts +30 -30
  294. package/types/modules/ai/icons.d.ts +21 -21
  295. package/types/modules/ai/index.d.ts +93 -94
  296. package/types/modules/ai/types.d.ts +16 -16
  297. package/types/modules/collaborative-editing/awareness/awareness.d.ts +25 -26
  298. package/types/modules/collaborative-editing/awareness/index.d.ts +2 -2
  299. package/types/modules/collaborative-editing/awareness/y-indexeddb.d.ts +3 -3
  300. package/types/modules/collaborative-editing/collaborative-editing.d.ts +22 -22
  301. package/types/modules/collaborative-editing/index.d.ts +2 -2
  302. package/types/modules/collaborative-editing/module.d.ts +10 -11
  303. package/types/modules/collaborative-editing/provider/index.d.ts +3 -3
  304. package/types/modules/collaborative-editing/provider/providerRegistry.d.ts +25 -25
  305. package/types/modules/collaborative-editing/provider/webrtc.d.ts +35 -35
  306. package/types/modules/collaborative-editing/provider/websocket.d.ts +39 -39
  307. package/types/modules/collaborative-editing/types.d.ts +51 -35
  308. package/types/modules/counter.d.ts +21 -22
  309. package/types/modules/custom-clipboard.d.ts +23 -24
  310. package/types/modules/custom-image/actions/action.d.ts +7 -8
  311. package/types/modules/custom-image/actions/custom-resize-action.d.ts +22 -23
  312. package/types/modules/custom-image/actions/delete-action.d.ts +5 -6
  313. package/types/modules/custom-image/actions/image-toolbar-buttons.d.ts +15 -16
  314. package/types/modules/custom-image/actions/index.d.ts +6 -6
  315. package/types/modules/custom-image/actions/toolbar-action.d.ts +7 -8
  316. package/types/modules/custom-image/actions/toolbar.d.ts +16 -17
  317. package/types/modules/custom-image/blot-formatter.d.ts +19 -20
  318. package/types/modules/custom-image/image.d.ts +26 -27
  319. package/types/modules/custom-image/index.d.ts +4 -4
  320. package/types/modules/custom-image/options.d.ts +45 -46
  321. package/types/modules/custom-image/specs/blot-spec.d.ts +10 -11
  322. package/types/modules/custom-image/specs/custom-image-spec.d.ts +15 -16
  323. package/types/modules/custom-image/specs/image-spec.d.ts +7 -8
  324. package/types/modules/custom-image/specs/index.d.ts +3 -3
  325. package/types/modules/custom-uploader.d.ts +37 -38
  326. package/types/modules/divider.d.ts +7 -8
  327. package/types/modules/emoji.d.ts +35 -36
  328. package/types/modules/file/formats/file.d.ts +17 -18
  329. package/types/modules/file/index.d.ts +3 -3
  330. package/types/modules/file/modules/file-bar.d.ts +14 -14
  331. package/types/modules/file/modules/file-module.d.ts +7 -8
  332. package/types/modules/flow-chart/config-utils.d.ts +10 -0
  333. package/types/modules/flow-chart/formats/flow-chart-blot.d.ts +43 -0
  334. package/types/modules/flow-chart/i18n/en-us.d.ts +26 -0
  335. package/types/modules/flow-chart/i18n/index.d.ts +1 -0
  336. package/types/modules/flow-chart/i18n/zh-cn.d.ts +26 -0
  337. package/types/modules/flow-chart/icons.d.ts +12 -0
  338. package/types/modules/flow-chart/index.d.ts +10 -0
  339. package/types/modules/flow-chart/modules/context-menu.d.ts +3 -0
  340. package/types/modules/flow-chart/modules/control-panel.d.ts +3 -0
  341. package/types/modules/flow-chart/modules/custom-resize-action.d.ts +22 -0
  342. package/types/modules/flow-chart/options.d.ts +29 -0
  343. package/types/modules/i18n.d.ts +13 -14
  344. package/types/modules/index.d.ts +18 -16
  345. package/types/modules/link/formats/link.d.ts +14 -15
  346. package/types/modules/link/index.d.ts +2 -2
  347. package/types/modules/link/modules/tooltip.d.ts +25 -26
  348. package/types/modules/mathlive/formats.d.ts +20 -21
  349. package/types/modules/mathlive/index.d.ts +3 -3
  350. package/types/modules/mathlive/module.d.ts +7 -8
  351. package/types/modules/mathlive/tooltip.d.ts +14 -15
  352. package/types/modules/mention/constants.d.ts +3 -3
  353. package/types/modules/mention/index.d.ts +2 -2
  354. package/types/modules/mention/mention-link.d.ts +14 -15
  355. package/types/modules/mention/mention.d.ts +52 -53
  356. package/types/modules/mind-map/config-utils.d.ts +12 -0
  357. package/types/modules/mind-map/formats/mind-map-blot.d.ts +44 -0
  358. package/types/modules/mind-map/i18n/en-us.d.ts +25 -0
  359. package/types/modules/mind-map/i18n/index.d.ts +1 -0
  360. package/types/modules/mind-map/i18n/zh-cn.d.ts +25 -0
  361. package/types/modules/mind-map/icons.d.ts +21 -0
  362. package/types/modules/mind-map/index.d.ts +10 -0
  363. package/types/modules/mind-map/modules/context-menu.d.ts +3 -0
  364. package/types/modules/mind-map/modules/control-panel.d.ts +3 -0
  365. package/types/modules/mind-map/modules/custom-resize-action.d.ts +23 -0
  366. package/types/modules/mind-map/options.d.ts +27 -0
  367. package/types/modules/shortcut-key/index.d.ts +67 -68
  368. package/types/modules/syntax.d.ts +12 -13
  369. package/types/modules/table-up/index.d.ts +32 -33
  370. package/types/modules/toolbar/better-picker.d.ts +13 -14
  371. package/types/modules/toolbar/better-toolbar.d.ts +6 -7
  372. package/types/modules/toolbar/index.d.ts +3 -3
  373. package/types/modules/toolbar/toolbar-tip.d.ts +7 -8
  374. package/types/themes/snow.d.ts +9 -10
  375. package/types/tools/format-painter.d.ts +12 -13
  376. package/types/tools/fullscreen.d.ts +4 -5
  377. package/types/tools/screenshot.d.ts +17 -18
  378. package/types/ui/icons.config.d.ts +40 -38
  379. package/types/ui/icons.d.ts +6 -6
  380. package/types/utils/debounce.d.ts +6 -6
  381. package/types/utils/image.d.ts +1 -1
  382. package/types/utils/is.d.ts +6 -6
  383. package/types/utils/merge.d.ts +7 -0
  384. package/types/utils/method.d.ts +6 -6
  385. package/types/utils/scroll-lock.d.ts +6 -6
@@ -61,6 +61,8 @@ const EN_US = {
61
61
  "strike": "Strikethrough",
62
62
  "image": "Image",
63
63
  "file": "File",
64
+ "mind-map": "Mind Map",
65
+ "flow-chart": "Flow Chart",
64
66
  "link": "Hyperlink",
65
67
  "code": "Inline Code",
66
68
  "table": "Table",
@@ -1 +1 @@
1
- {"version":3,"file":"en-us.cjs.js","sources":["../../../../src/config/i18n/en-us.ts"],"sourcesContent":["export const EN_US = {\r\n\r\n 'header': 'Paragraph Formatting',\r\n 'normal': 'Normal',\r\n 'h1': 'Heading 1',\r\n 'h2': 'Heading 2',\r\n 'h3': 'Heading 3',\r\n 'h4': 'Heading 4',\r\n 'h5': 'Heading 5',\r\n 'h6': 'Heading 6',\r\n\r\n 'line-height': 'Line Height',\r\n 'songti': 'SimSun',\r\n 'yahei': 'Microsoft Yahei',\r\n 'kaiti': 'KaiTi',\r\n 'heiti': 'SimHei',\r\n 'lishu': 'LiSu',\r\n\r\n 'left': 'Left',\r\n 'center': 'Centered',\r\n 'right': 'Right',\r\n\r\n 'codeblock': 'Code Block',\r\n 'globallink': 'Link',\r\n\r\n 'exit-fullscreen': 'Exit Full Screen',\r\n 'help': 'Help',\r\n 'more': 'More',\r\n\r\n 'help-format': 'Format',\r\n 'help-insert': 'Insert',\r\n 'help-operation': 'Edit',\r\n 'mention': 'Mention People',\r\n 'quick-menu': 'Shortcut',\r\n 'toggle-help-panel': 'Open/Close Help Panel',\r\n 'scroll-table': 'Horizontal Scroll',\r\n 'mouse-wheel': 'Mouse Wheel',\r\n 'save': 'Save',\r\n\r\n 'default-link-text': 'Link',\r\n 'basicblock': 'Card',\r\n 'linkplaceholder': 'Enter an address and press Enter.',\r\n 'counter-template': `{{count}}/{{totalCount}} {{countUnit}}`,\r\n 'char': 'characters',\r\n 'word': 'words',\r\n 'counter-limit-tips':\r\n 'The number of {{countUnit}} exceeds the maximum allowed limit.',\r\n 'ie-msg':\r\n 'In order to have a better experience, it is recommended to use the latest version of Chrome browser.',\r\n\r\n 'loading': 'Loading...',\r\n 'pasting': 'A large amount of content to paste. Loading...',\r\n 'img-error': 'Image Copy Error',\r\n 'img-error-info':\r\n 'Failed to copy the image. Save it to your local computer and then upload it by clicking Image on the toolbar.',\r\n\r\n 'last-modified': 'Last Modified Date:',\r\n 'screenshot': 'Screenshot',\r\n 'uploading': 'Uploading...',\r\n 'sub-title-bg-color': 'Background Color',\r\n\r\n // blot tip name\r\n 'emoji': 'Emoji',\r\n 'fullscreen': 'Full Screen',\r\n 'blockquote': 'Quote',\r\n 'undo': 'Undo',\r\n 'redo': 'Redo',\r\n 'clean': 'Clear Formatting',\r\n 'bold': 'Bold',\r\n 'italic': 'Italic',\r\n 'underline': 'Underline',\r\n 'strike': 'Strikethrough',\r\n 'image': 'Image',\r\n 'file': 'File',\r\n 'link': 'Hyperlink',\r\n 'code': 'Inline Code',\r\n 'table': 'Table',\r\n 'table-up': 'Table',\r\n 'code-block': 'Code Block',\r\n 'formula': 'Formula',\r\n 'format-painter': 'Format Painter',\r\n 'divider': 'Divider',\r\n 'video': 'Video',\r\n 'color': 'Font Color',\r\n 'background': 'Background Color',\r\n 'font': 'Font',\r\n 'size': 'Size',\r\n 'list': 'List',\r\n 'list-ordered': 'Ordered List',\r\n 'list-bullet': 'Unordered List',\r\n 'list-check': 'Task List',\r\n 'align-left': 'Left aligned',\r\n 'align-center': 'Center aligned',\r\n 'align-right': 'Right aligned',\r\n 'align-justify': 'Justify aligned',\r\n 'direction-ltr': 'Text Direction Left To Right',\r\n 'direction-rtl': 'Text Direction Right To Left',\r\n 'indent--1': 'Minus Indent',\r\n 'indent-+1': 'Add Indent',\r\n 'script-super': 'Superscript',\r\n 'script-sub': 'Subscript',\r\n 'header-normal': 'Text',\r\n 'header-1': 'Heading 1',\r\n 'header-2': 'Heading 2',\r\n 'header-3': 'Heading 3',\r\n 'header-4': 'Heading 4',\r\n 'header-5': 'Heading 5',\r\n 'header-6': 'Heading 6',\r\n 'header-list': 'Heading List',\r\n 'input-recall-menu-placeholder': 'Input / recall menu',\r\n 'clear-color': 'Clear color',\r\n 'custom-color': 'Color picker',\r\n // table-up texts\r\n 'fullCheckboxText': 'Insert full width table',\r\n 'customBtnText': 'Custom',\r\n 'confirmText': 'Confirm',\r\n 'cancelText': 'Cancel',\r\n 'rowText': 'Row',\r\n 'colText': 'Column',\r\n 'notPositiveNumberError': 'Please enter a positive integer',\r\n 'custom': 'Custom',\r\n 'clear': 'Clear',\r\n 'transparent': 'Transparent',\r\n 'perWidthInsufficient': 'The percentage width is insufficient. To complete the operation, the table needs to be converted to a fixed width. Do you want to continue?',\r\n 'CopyCell': 'Copy cell',\r\n 'CutCell': 'Cut cell',\r\n 'InsertTop': 'Insert row above',\r\n 'InsertRight': 'Insert column right',\r\n 'InsertBottom': 'Insert row below',\r\n 'InsertLeft': 'Insert column Left',\r\n 'MergeCell': 'Merge Cell',\r\n 'SplitCell': 'Split Cell',\r\n 'DeleteRow': 'Delete Row',\r\n 'DeleteColumn': 'Delete Column',\r\n 'DeleteTable': 'Delete table',\r\n 'BackgroundColor': 'Set background color',\r\n 'BorderColor': 'Set border color',\r\n}\r\n"],"names":[],"mappings":";;AAAO,MAAM,QAAQ;AAAA,EAEnB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EAEN,eAAe;AAAA,EACf,UAAU;AAAA,EACV,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EAET,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EAET,aAAa;AAAA,EACb,cAAc;AAAA,EAEd,mBAAmB;AAAA,EACnB,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER,eAAe;AAAA,EACf,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,WAAW;AAAA,EACX,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,QAAQ;AAAA,EAER,qBAAqB;AAAA,EACrB,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,oBAAoB;AAAA,EACpB,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,sBACE;AAAA,EACF,UACE;AAAA,EAEF,WAAW;AAAA,EACX,WAAW;AAAA,EACX,aAAa;AAAA,EACb,kBACE;AAAA,EAEF,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,sBAAsB;AAAA;AAAA,EAGtB,SAAS;AAAA,EACT,cAAc;AAAA,EACd,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,aAAa;AAAA,EACb,UAAU;AAAA,EACV,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,WAAW;AAAA,EACX,SAAS;AAAA,EACT,SAAS;AAAA,EACT,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,iCAAiC;AAAA,EACjC,eAAe;AAAA,EACf,gBAAgB;AAAA;AAAA,EAEhB,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,WAAW;AAAA,EACX,WAAW;AAAA,EACX,0BAA0B;AAAA,EAC1B,UAAU;AAAA,EACV,SAAS;AAAA,EACT,eAAe;AAAA,EACf,wBAAwB;AAAA,EACxB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,aAAa;AAAA,EACb,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,eAAe;AACjB;;"}
1
+ {"version":3,"file":"en-us.cjs.js","sources":["../../../../src/config/i18n/en-us.ts"],"sourcesContent":["export const EN_US = {\n\n 'header': 'Paragraph Formatting',\n 'normal': 'Normal',\n 'h1': 'Heading 1',\n 'h2': 'Heading 2',\n 'h3': 'Heading 3',\n 'h4': 'Heading 4',\n 'h5': 'Heading 5',\n 'h6': 'Heading 6',\n\n 'line-height': 'Line Height',\n 'songti': 'SimSun',\n 'yahei': 'Microsoft Yahei',\n 'kaiti': 'KaiTi',\n 'heiti': 'SimHei',\n 'lishu': 'LiSu',\n\n 'left': 'Left',\n 'center': 'Centered',\n 'right': 'Right',\n\n 'codeblock': 'Code Block',\n 'globallink': 'Link',\n\n 'exit-fullscreen': 'Exit Full Screen',\n 'help': 'Help',\n 'more': 'More',\n\n 'help-format': 'Format',\n 'help-insert': 'Insert',\n 'help-operation': 'Edit',\n 'mention': 'Mention People',\n 'quick-menu': 'Shortcut',\n 'toggle-help-panel': 'Open/Close Help Panel',\n 'scroll-table': 'Horizontal Scroll',\n 'mouse-wheel': 'Mouse Wheel',\n 'save': 'Save',\n\n 'default-link-text': 'Link',\n 'basicblock': 'Card',\n 'linkplaceholder': 'Enter an address and press Enter.',\n 'counter-template': `{{count}}/{{totalCount}} {{countUnit}}`,\n 'char': 'characters',\n 'word': 'words',\n 'counter-limit-tips':\n 'The number of {{countUnit}} exceeds the maximum allowed limit.',\n 'ie-msg':\n 'In order to have a better experience, it is recommended to use the latest version of Chrome browser.',\n\n 'loading': 'Loading...',\n 'pasting': 'A large amount of content to paste. Loading...',\n 'img-error': 'Image Copy Error',\n 'img-error-info':\n 'Failed to copy the image. Save it to your local computer and then upload it by clicking Image on the toolbar.',\n\n 'last-modified': 'Last Modified Date:',\n 'screenshot': 'Screenshot',\n 'uploading': 'Uploading...',\n 'sub-title-bg-color': 'Background Color',\n\n // blot tip name\n 'emoji': 'Emoji',\n 'fullscreen': 'Full Screen',\n 'blockquote': 'Quote',\n 'undo': 'Undo',\n 'redo': 'Redo',\n 'clean': 'Clear Formatting',\n 'bold': 'Bold',\n 'italic': 'Italic',\n 'underline': 'Underline',\n 'strike': 'Strikethrough',\n 'image': 'Image',\n 'file': 'File',\n 'mind-map': 'Mind Map',\n 'flow-chart': 'Flow Chart',\n 'link': 'Hyperlink',\n 'code': 'Inline Code',\n 'table': 'Table',\n 'table-up': 'Table',\n 'code-block': 'Code Block',\n 'formula': 'Formula',\n 'format-painter': 'Format Painter',\n 'divider': 'Divider',\n 'video': 'Video',\n 'color': 'Font Color',\n 'background': 'Background Color',\n 'font': 'Font',\n 'size': 'Size',\n 'list': 'List',\n 'list-ordered': 'Ordered List',\n 'list-bullet': 'Unordered List',\n 'list-check': 'Task List',\n 'align-left': 'Left aligned',\n 'align-center': 'Center aligned',\n 'align-right': 'Right aligned',\n 'align-justify': 'Justify aligned',\n 'direction-ltr': 'Text Direction Left To Right',\n 'direction-rtl': 'Text Direction Right To Left',\n 'indent--1': 'Minus Indent',\n 'indent-+1': 'Add Indent',\n 'script-super': 'Superscript',\n 'script-sub': 'Subscript',\n 'header-normal': 'Text',\n 'header-1': 'Heading 1',\n 'header-2': 'Heading 2',\n 'header-3': 'Heading 3',\n 'header-4': 'Heading 4',\n 'header-5': 'Heading 5',\n 'header-6': 'Heading 6',\n 'header-list': 'Heading List',\n 'input-recall-menu-placeholder': 'Input / recall menu',\n 'clear-color': 'Clear color',\n 'custom-color': 'Color picker',\n // table-up texts\n 'fullCheckboxText': 'Insert full width table',\n 'customBtnText': 'Custom',\n 'confirmText': 'Confirm',\n 'cancelText': 'Cancel',\n 'rowText': 'Row',\n 'colText': 'Column',\n 'notPositiveNumberError': 'Please enter a positive integer',\n 'custom': 'Custom',\n 'clear': 'Clear',\n 'transparent': 'Transparent',\n 'perWidthInsufficient': 'The percentage width is insufficient. To complete the operation, the table needs to be converted to a fixed width. Do you want to continue?',\n 'CopyCell': 'Copy cell',\n 'CutCell': 'Cut cell',\n 'InsertTop': 'Insert row above',\n 'InsertRight': 'Insert column right',\n 'InsertBottom': 'Insert row below',\n 'InsertLeft': 'Insert column Left',\n 'MergeCell': 'Merge Cell',\n 'SplitCell': 'Split Cell',\n 'DeleteRow': 'Delete Row',\n 'DeleteColumn': 'Delete Column',\n 'DeleteTable': 'Delete table',\n 'BackgroundColor': 'Set background color',\n 'BorderColor': 'Set border color',\n}\n"],"names":[],"mappings":";;AAAO,MAAM,QAAQ;AAAA,EAEnB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EAEN,eAAe;AAAA,EACf,UAAU;AAAA,EACV,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EAET,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EAET,aAAa;AAAA,EACb,cAAc;AAAA,EAEd,mBAAmB;AAAA,EACnB,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER,eAAe;AAAA,EACf,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,WAAW;AAAA,EACX,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,QAAQ;AAAA,EAER,qBAAqB;AAAA,EACrB,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,oBAAoB;AAAA,EACpB,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,sBACE;AAAA,EACF,UACE;AAAA,EAEF,WAAW;AAAA,EACX,WAAW;AAAA,EACX,aAAa;AAAA,EACb,kBACE;AAAA,EAEF,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,sBAAsB;AAAA;AAAA,EAGtB,SAAS;AAAA,EACT,cAAc;AAAA,EACd,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,aAAa;AAAA,EACb,UAAU;AAAA,EACV,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,WAAW;AAAA,EACX,SAAS;AAAA,EACT,SAAS;AAAA,EACT,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,iCAAiC;AAAA,EACjC,eAAe;AAAA,EACf,gBAAgB;AAAA;AAAA,EAEhB,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,WAAW;AAAA,EACX,WAAW;AAAA,EACX,0BAA0B;AAAA,EAC1B,UAAU;AAAA,EACV,SAAS;AAAA,EACT,eAAe;AAAA,EACf,wBAAwB;AAAA,EACxB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,aAAa;AAAA,EACb,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,eAAe;AACjB;;"}
@@ -61,6 +61,8 @@ const ZH_CN = {
61
61
  "strike": "删除线",
62
62
  "image": "图片",
63
63
  "file": "文件",
64
+ "mind-map": "思维导图",
65
+ "flow-chart": "流程图",
64
66
  "link": "超链接",
65
67
  "divider": "分割线",
66
68
  "code": "行内代码",
@@ -1 +1 @@
1
- {"version":3,"file":"zh-cn.cjs.js","sources":["../../../../src/config/i18n/zh-cn.ts"],"sourcesContent":["export const ZH_CN = {\r\n\r\n 'header': '段落格式',\r\n 'normal': '正文',\r\n 'h1': '标题1',\r\n 'h2': '标题2',\r\n 'h3': '标题3',\r\n 'h4': '标题4',\r\n 'h5': '标题5',\r\n 'h6': '标题6',\r\n\r\n 'line-height': '行距',\r\n 'songti': '宋体',\r\n 'yahei': '微软雅黑',\r\n 'kaiti': '楷体',\r\n 'heiti': '黑体',\r\n 'lishu': '隶书',\r\n\r\n 'left': '左对齐',\r\n 'center': '居中对齐',\r\n 'right': '右对齐',\r\n\r\n 'codeblock': '代码块',\r\n 'globallink': '全局链接',\r\n\r\n 'exit-fullscreen': '退出全屏',\r\n 'help': '帮助',\r\n 'more': '更多',\r\n\r\n 'help-format': '格式',\r\n 'help-insert': '插入',\r\n 'help-operation': '操作',\r\n 'mention': '提及某人',\r\n 'quick-menu': '快捷菜单',\r\n 'toggle-help-panel': '打开/关闭帮助面板',\r\n 'scroll-table': '水平滚动表格',\r\n 'mouse-wheel': '鼠标滚轮',\r\n 'save': '保存',\r\n\r\n 'default-link-text': '链接',\r\n 'basicblock': '卡片',\r\n 'linkplaceholder': '请输入链接地址,按回车键确认',\r\n 'counter-template': '{{count}}/{{totalCount}}',\r\n 'char': '字符',\r\n 'word': '单词',\r\n 'counter-limit-tips': '{{countUnit}}数超出最大允许值',\r\n 'ie-msg': '为了有更好的体验,推荐使用最新版Chrome浏览器。',\r\n\r\n 'loading': '正在加载中...',\r\n 'pasting': '您粘贴的内容较多,正在努力加载中,请耐心等待...',\r\n 'img-error': '图片复制出错',\r\n 'img-error-info':\r\n '此图片不支持复制,请将原图下载至本地后点击工具栏【插入图片】,重新上传。',\r\n\r\n 'last-modified': '最后修改时间:',\r\n 'screenshot': '截图',\r\n 'uploading': '上传中...',\r\n 'sub-title-bg-color': '背景颜色',\r\n\r\n // blot tip name\r\n 'emoji': '表情',\r\n 'fullscreen': '全屏',\r\n 'blockquote': '引用',\r\n 'undo': '撤销',\r\n 'redo': '重做',\r\n 'clean': '清除格式',\r\n 'bold': '粗体',\r\n 'italic': '斜体',\r\n 'underline': '下划线',\r\n 'strike': '删除线',\r\n 'image': '图片',\r\n 'file': '文件',\r\n 'link': '超链接',\r\n 'divider': '分割线',\r\n 'code': '行内代码',\r\n 'table': '表格',\r\n 'table-up': '表格',\r\n 'code-block': '代码块',\r\n 'formula': '公式',\r\n 'format-painter': '格式刷',\r\n 'video': '视频',\r\n 'color': '字体颜色',\r\n 'background': '背景色',\r\n 'font': '字体',\r\n 'size': '字号',\r\n 'list': '列表',\r\n 'list-ordered': '有序列表',\r\n 'list-bullet': '无序列表',\r\n 'list-check': '任务列表',\r\n 'align-left': '左对齐',\r\n 'align-center': '居中对齐',\r\n 'align-right': '右对齐',\r\n 'align-justify': '两端对齐',\r\n 'direction-ltr': '文本方向左到右',\r\n 'direction-rtl': '文本方向右到左',\r\n 'indent--1': '减少缩进',\r\n 'indent-+1': '增加缩进',\r\n 'script-super': '上标',\r\n 'script-sub': '下标',\r\n 'header-normal': '正文',\r\n 'header-1': '标题1',\r\n 'header-2': '标题2',\r\n 'header-3': '标题3',\r\n 'header-4': '标题4',\r\n 'header-5': '标题5',\r\n 'header-6': '标题6',\r\n 'header-list': '标题列表',\r\n 'input-recall-menu-placeholder': '输入 / 唤起菜单',\r\n 'clear-color': '清除颜色',\r\n 'custom-color': '选择颜色',\r\n // table-up texts\r\n 'fullCheckboxText': '插入满宽度表格',\r\n 'customBtnText': '自定义行列数',\r\n 'confirmText': '确认',\r\n 'cancelText': '取消',\r\n 'rowText': '行数',\r\n 'colText': '列数',\r\n 'notPositiveNumberError': '请输入正整数',\r\n 'custom': '自定义',\r\n 'clear': '清除',\r\n 'transparent': '透明',\r\n 'perWidthInsufficient': '百分比宽度不足, 如需完成操作需要转换表格为固定宽度,是否继续?',\r\n 'CopyCell': '复制单元格',\r\n 'CutCell': '剪切单元格',\r\n 'InsertTop': '向上插入一行',\r\n 'InsertRight': '向右插入一列',\r\n 'InsertBottom': '向下插入一行',\r\n 'InsertLeft': '向左插入一列',\r\n 'MergeCell': '合并单元格',\r\n 'SplitCell': '拆分单元格',\r\n 'DeleteRow': '删除当前行',\r\n 'DeleteColumn': '删除当前列',\r\n 'DeleteTable': '删除当前表格',\r\n 'BackgroundColor': '设置背景颜色',\r\n 'BorderColor': '设置边框颜色',\r\n\r\n}\r\n"],"names":[],"mappings":";;AAAO,MAAM,QAAQ;AAAA,EAEnB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EAEN,eAAe;AAAA,EACf,UAAU;AAAA,EACV,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EAET,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EAET,aAAa;AAAA,EACb,cAAc;AAAA,EAEd,mBAAmB;AAAA,EACnB,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER,eAAe;AAAA,EACf,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,WAAW;AAAA,EACX,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,QAAQ;AAAA,EAER,qBAAqB;AAAA,EACrB,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,oBAAoB;AAAA,EACpB,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,sBAAsB;AAAA,EACtB,UAAU;AAAA,EAEV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,aAAa;AAAA,EACb,kBACE;AAAA,EAEF,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,sBAAsB;AAAA;AAAA,EAGtB,SAAS;AAAA,EACT,cAAc;AAAA,EACd,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,aAAa;AAAA,EACb,UAAU;AAAA,EACV,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,iCAAiC;AAAA,EACjC,eAAe;AAAA,EACf,gBAAgB;AAAA;AAAA,EAEhB,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,WAAW;AAAA,EACX,WAAW;AAAA,EACX,0BAA0B;AAAA,EAC1B,UAAU;AAAA,EACV,SAAS;AAAA,EACT,eAAe;AAAA,EACf,wBAAwB;AAAA,EACxB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,aAAa;AAAA,EACb,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,eAAe;AAEjB;;"}
1
+ {"version":3,"file":"zh-cn.cjs.js","sources":["../../../../src/config/i18n/zh-cn.ts"],"sourcesContent":["export const ZH_CN = {\n\n 'header': '段落格式',\n 'normal': '正文',\n 'h1': '标题1',\n 'h2': '标题2',\n 'h3': '标题3',\n 'h4': '标题4',\n 'h5': '标题5',\n 'h6': '标题6',\n\n 'line-height': '行距',\n 'songti': '宋体',\n 'yahei': '微软雅黑',\n 'kaiti': '楷体',\n 'heiti': '黑体',\n 'lishu': '隶书',\n\n 'left': '左对齐',\n 'center': '居中对齐',\n 'right': '右对齐',\n\n 'codeblock': '代码块',\n 'globallink': '全局链接',\n\n 'exit-fullscreen': '退出全屏',\n 'help': '帮助',\n 'more': '更多',\n\n 'help-format': '格式',\n 'help-insert': '插入',\n 'help-operation': '操作',\n 'mention': '提及某人',\n 'quick-menu': '快捷菜单',\n 'toggle-help-panel': '打开/关闭帮助面板',\n 'scroll-table': '水平滚动表格',\n 'mouse-wheel': '鼠标滚轮',\n 'save': '保存',\n\n 'default-link-text': '链接',\n 'basicblock': '卡片',\n 'linkplaceholder': '请输入链接地址,按回车键确认',\n 'counter-template': '{{count}}/{{totalCount}}',\n 'char': '字符',\n 'word': '单词',\n 'counter-limit-tips': '{{countUnit}}数超出最大允许值',\n 'ie-msg': '为了有更好的体验,推荐使用最新版Chrome浏览器。',\n\n 'loading': '正在加载中...',\n 'pasting': '您粘贴的内容较多,正在努力加载中,请耐心等待...',\n 'img-error': '图片复制出错',\n 'img-error-info':\n '此图片不支持复制,请将原图下载至本地后点击工具栏【插入图片】,重新上传。',\n\n 'last-modified': '最后修改时间:',\n 'screenshot': '截图',\n 'uploading': '上传中...',\n 'sub-title-bg-color': '背景颜色',\n\n // blot tip name\n 'emoji': '表情',\n 'fullscreen': '全屏',\n 'blockquote': '引用',\n 'undo': '撤销',\n 'redo': '重做',\n 'clean': '清除格式',\n 'bold': '粗体',\n 'italic': '斜体',\n 'underline': '下划线',\n 'strike': '删除线',\n 'image': '图片',\n 'file': '文件',\n 'mind-map': '思维导图',\n 'flow-chart': '流程图',\n 'link': '超链接',\n 'divider': '分割线',\n 'code': '行内代码',\n 'table': '表格',\n 'table-up': '表格',\n 'code-block': '代码块',\n 'formula': '公式',\n 'format-painter': '格式刷',\n 'video': '视频',\n 'color': '字体颜色',\n 'background': '背景色',\n 'font': '字体',\n 'size': '字号',\n 'list': '列表',\n 'list-ordered': '有序列表',\n 'list-bullet': '无序列表',\n 'list-check': '任务列表',\n 'align-left': '左对齐',\n 'align-center': '居中对齐',\n 'align-right': '右对齐',\n 'align-justify': '两端对齐',\n 'direction-ltr': '文本方向左到右',\n 'direction-rtl': '文本方向右到左',\n 'indent--1': '减少缩进',\n 'indent-+1': '增加缩进',\n 'script-super': '上标',\n 'script-sub': '下标',\n 'header-normal': '正文',\n 'header-1': '标题1',\n 'header-2': '标题2',\n 'header-3': '标题3',\n 'header-4': '标题4',\n 'header-5': '标题5',\n 'header-6': '标题6',\n 'header-list': '标题列表',\n 'input-recall-menu-placeholder': '输入 / 唤起菜单',\n 'clear-color': '清除颜色',\n 'custom-color': '选择颜色',\n // table-up texts\n 'fullCheckboxText': '插入满宽度表格',\n 'customBtnText': '自定义行列数',\n 'confirmText': '确认',\n 'cancelText': '取消',\n 'rowText': '行数',\n 'colText': '列数',\n 'notPositiveNumberError': '请输入正整数',\n 'custom': '自定义',\n 'clear': '清除',\n 'transparent': '透明',\n 'perWidthInsufficient': '百分比宽度不足, 如需完成操作需要转换表格为固定宽度,是否继续?',\n 'CopyCell': '复制单元格',\n 'CutCell': '剪切单元格',\n 'InsertTop': '向上插入一行',\n 'InsertRight': '向右插入一列',\n 'InsertBottom': '向下插入一行',\n 'InsertLeft': '向左插入一列',\n 'MergeCell': '合并单元格',\n 'SplitCell': '拆分单元格',\n 'DeleteRow': '删除当前行',\n 'DeleteColumn': '删除当前列',\n 'DeleteTable': '删除当前表格',\n 'BackgroundColor': '设置背景颜色',\n 'BorderColor': '设置边框颜色',\n}\n"],"names":[],"mappings":";;AAAO,MAAM,QAAQ;AAAA,EAEnB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EAEN,eAAe;AAAA,EACf,UAAU;AAAA,EACV,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EAET,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EAET,aAAa;AAAA,EACb,cAAc;AAAA,EAEd,mBAAmB;AAAA,EACnB,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER,eAAe;AAAA,EACf,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,WAAW;AAAA,EACX,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,QAAQ;AAAA,EAER,qBAAqB;AAAA,EACrB,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,oBAAoB;AAAA,EACpB,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,sBAAsB;AAAA,EACtB,UAAU;AAAA,EAEV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,aAAa;AAAA,EACb,kBACE;AAAA,EAEF,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,sBAAsB;AAAA;AAAA,EAGtB,SAAS;AAAA,EACT,cAAc;AAAA,EACd,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,aAAa;AAAA,EACb,UAAU;AAAA,EACV,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,iCAAiC;AAAA,EACjC,eAAe;AAAA,EACf,gBAAgB;AAAA;AAAA,EAEhB,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,WAAW;AAAA,EACX,WAAW;AAAA,EACX,0BAA0B;AAAA,EAC1B,UAAU;AAAA,EACV,SAAS;AAAA,EACT,eAAe;AAAA,EACf,wBAAwB;AAAA,EACxB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,aAAa;AAAA,EACb,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,eAAe;AACjB;;"}
@@ -51,8 +51,10 @@ exports.AUDIO_VIDEO_UPLOADER_MIME_TYPES = editor_config.AUDIO_VIDEO_UPLOADER_MIM
51
51
  exports.BIG_DELTA_LIMIT = editor_config.BIG_DELTA_LIMIT;
52
52
  exports.CHANGE_LANGUAGE_EVENT = editor_config.CHANGE_LANGUAGE_EVENT;
53
53
  exports.COMPRESSED_UPLOADER_MIME_TYPES = editor_config.COMPRESSED_UPLOADER_MIME_TYPES;
54
+ exports.DEFAULT_TOOLBAR = editor_config.DEFAULT_TOOLBAR;
54
55
  exports.DOC_UPLOADER_MIME_TYPES = editor_config.DOC_UPLOADER_MIME_TYPES;
55
56
  exports.FILE_UPLOADER_MIME_TYPES = editor_config.FILE_UPLOADER_MIME_TYPES;
57
+ exports.FULL_TOOLBAR = editor_config.FULL_TOOLBAR;
56
58
  exports.IMAGE_UPLOADER_MIME_TYPES = editor_config.IMAGE_UPLOADER_MIME_TYPES;
57
59
  exports.OTHER_FILE_UPLOADER_MIME_TYPES = editor_config.OTHER_FILE_UPLOADER_MIME_TYPES;
58
60
  exports.PPT_UPLOADER_MIME_TYPES = editor_config.PPT_UPLOADER_MIME_TYPES;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../../src/config/index.ts"],"sourcesContent":["import { isNullOrUndefined } from './editor.utils'\r\n\r\nexport * from './editor.config'\r\nexport * from './editor.utils'\r\nexport * from './types'\r\n\r\n// 触发上传\r\nexport function inputFile(type: 'image' | 'video' | 'file', accept: string[]) {\r\n if (accept.length <= 0) return\r\n let fileInput = this.container.querySelector(`input.ql-${type}[type=file]`)\r\n if (isNullOrUndefined(fileInput)) {\r\n fileInput = document.createElement('input')\r\n fileInput.style.display = 'none'\r\n fileInput.classList.add(`ql-${type}`)\r\n fileInput.setAttribute('type', 'file')\r\n fileInput.setAttribute('accept', accept.map(mime => mime === '*' ? `${type}/*` : mime).join(','))\r\n fileInput.setAttribute('multiple', '')\r\n fileInput.addEventListener('change', () => {\r\n const range = this.quill.getSelection(true)\r\n this.quill.uploader.upload(range, fileInput.files)\r\n fileInput.value = ''\r\n })\r\n this.container.appendChild(fileInput)\r\n }\r\n fileInput.click()\r\n}\r\n\r\nexport function getListValue(value, preListValue) {\r\n let curListValue = value\r\n if (preListValue && preListValue === value) {\r\n curListValue = false\r\n }\r\n else if (value === 'check') {\r\n if (preListValue === 'checked' || preListValue === 'unchecked') {\r\n curListValue = false\r\n }\r\n else {\r\n curListValue = 'unchecked'\r\n }\r\n }\r\n return curListValue\r\n}\r\n/** css namespace */\r\nexport const namespace = 'fe'\r\n"],"names":["isNullOrUndefined"],"mappings":";;;;;AAOgB,SAAA,UAAU,MAAkC,QAAkB;AACxE,MAAA,OAAO,UAAU,EAAG;AACxB,MAAI,YAAY,KAAK,UAAU,cAAc,YAAY,IAAI,aAAa;AACtE,MAAAA,aAAAA,kBAAkB,SAAS,GAAG;AACpB,gBAAA,SAAS,cAAc,OAAO;AAC1C,cAAU,MAAM,UAAU;AAC1B,cAAU,UAAU,IAAI,MAAM,IAAI,EAAE;AAC1B,cAAA,aAAa,QAAQ,MAAM;AACrC,cAAU,aAAa,UAAU,OAAO,IAAI,UAAQ,SAAS,MAAM,GAAG,IAAI,OAAO,IAAI,EAAE,KAAK,GAAG,CAAC;AACtF,cAAA,aAAa,YAAY,EAAE;AAC3B,cAAA,iBAAiB,UAAU,MAAM;AACzC,YAAM,QAAQ,KAAK,MAAM,aAAa,IAAI;AAC1C,WAAK,MAAM,SAAS,OAAO,OAAO,UAAU,KAAK;AACjD,gBAAU,QAAQ;AAAA,IAAA,CACnB;AACI,SAAA,UAAU,YAAY,SAAS;AAAA,EAAA;AAEtC,YAAU,MAAM;AAClB;AAEgB,SAAA,aAAa,OAAO,cAAc;AAChD,MAAI,eAAe;AACf,MAAA,gBAAgB,iBAAiB,OAAO;AAC3B,mBAAA;AAAA,EAAA,WAER,UAAU,SAAS;AACtB,QAAA,iBAAiB,aAAa,iBAAiB,aAAa;AAC/C,qBAAA;AAAA,IAAA,OAEZ;AACY,qBAAA;AAAA,IAAA;AAAA,EACjB;AAEK,SAAA;AACT;AAEO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../src/config/index.ts"],"sourcesContent":["import { isNullOrUndefined } from './editor.utils'\n\nexport * from './editor.config'\nexport * from './editor.utils'\nexport * from './types'\n\n// 触发上传\nexport function inputFile(type: 'image' | 'video' | 'file', accept: string[]) {\n if (accept.length <= 0) return\n let fileInput = this.container.querySelector(`input.ql-${type}[type=file]`)\n if (isNullOrUndefined(fileInput)) {\n fileInput = document.createElement('input')\n fileInput.style.display = 'none'\n fileInput.classList.add(`ql-${type}`)\n fileInput.setAttribute('type', 'file')\n fileInput.setAttribute('accept', accept.map(mime => mime === '*' ? `${type}/*` : mime).join(','))\n fileInput.setAttribute('multiple', '')\n fileInput.addEventListener('change', () => {\n const range = this.quill.getSelection(true)\n this.quill.uploader.upload(range, fileInput.files)\n fileInput.value = ''\n })\n this.container.appendChild(fileInput)\n }\n fileInput.click()\n}\n\nexport function getListValue(value, preListValue) {\n let curListValue = value\n if (preListValue && preListValue === value) {\n curListValue = false\n }\n else if (value === 'check') {\n if (preListValue === 'checked' || preListValue === 'unchecked') {\n curListValue = false\n }\n else {\n curListValue = 'unchecked'\n }\n }\n return curListValue\n}\n/** css namespace */\nexport const namespace = 'fe'\n"],"names":["isNullOrUndefined"],"mappings":";;;;;AAOO,SAAS,UAAU,MAAkC,QAAkB;AAC5E,MAAI,OAAO,UAAU,EAAG;AACxB,MAAI,YAAY,KAAK,UAAU,cAAc,YAAY,IAAI,aAAa;AAC1E,MAAIA,aAAAA,kBAAkB,SAAS,GAAG;AAChC,gBAAY,SAAS,cAAc,OAAO;AAC1C,cAAU,MAAM,UAAU;AAC1B,cAAU,UAAU,IAAI,MAAM,IAAI,EAAE;AACpC,cAAU,aAAa,QAAQ,MAAM;AACrC,cAAU,aAAa,UAAU,OAAO,IAAI,UAAQ,SAAS,MAAM,GAAG,IAAI,OAAO,IAAI,EAAE,KAAK,GAAG,CAAC;AAChG,cAAU,aAAa,YAAY,EAAE;AACrC,cAAU,iBAAiB,UAAU,MAAM;AACzC,YAAM,QAAQ,KAAK,MAAM,aAAa,IAAI;AAC1C,WAAK,MAAM,SAAS,OAAO,OAAO,UAAU,KAAK;AACjD,gBAAU,QAAQ;AAAA,IACpB,CAAC;AACD,SAAK,UAAU,YAAY,SAAS;AAAA,EACtC;AACA,YAAU,MAAA;AACZ;AAEO,SAAS,aAAa,OAAO,cAAc;AAChD,MAAI,eAAe;AACnB,MAAI,gBAAgB,iBAAiB,OAAO;AAC1C,mBAAe;AAAA,EACjB,WACS,UAAU,SAAS;AAC1B,QAAI,iBAAiB,aAAa,iBAAiB,aAAa;AAC9D,qBAAe;AAAA,IACjB,OACK;AACH,qBAAe;AAAA,IACjB;AAAA,EACF;AACA,SAAO;AACT;AAEO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"fluent-editor.cjs.js","sources":["../../../src/core/fluent-editor.ts"],"sourcesContent":["import type { ExpandedQuillOptions } from 'quill'\r\nimport type { IEditorConfig } from '../config/types'\r\nimport type { FileUploader } from '../modules/custom-uploader'\r\nimport Quill from 'quill'\r\nimport { defaultLanguage } from '../config'\r\nimport I18N from '../modules/i18n'\r\n\r\nclass FluentEditor extends Quill {\r\n isFullscreen: boolean = false\r\n declare options: IEditorConfig & ExpandedQuillOptions\r\n declare uploader: FileUploader\r\n\r\n static register(...args: any[]): void {\r\n super.register(...args as Parameters<typeof Quill.register>)\r\n }\r\n\r\n get lang() {\r\n const i18nModule = this.getModule('i18n') as I18N\r\n return i18nModule ? i18nModule.options.lang : defaultLanguage\r\n }\r\n\r\n constructor(container: HTMLElement | string, options: IEditorConfig = {}) {\r\n super(container, options)\r\n }\r\n\r\n getLangText(name: string) {\r\n return I18N.parserText(name, this.lang)\r\n }\r\n}\r\n\r\nexport default FluentEditor\r\n"],"names":["defaultLanguage","I18N"],"mappings":";;;;;;;;;AAOA,MAAM,qBAAqB,MAAM;AAAA,EAc/B,YAAY,WAAiC,UAAyB,IAAI;AACxE,UAAM,WAAW,OAAO;AAd1B,wCAAwB;AAAA,EAcE;AAAA,EAV1B,OAAO,YAAY,MAAmB;AAC9B,UAAA,SAAS,GAAG,IAAyC;AAAA,EAAA;AAAA,EAG7D,IAAI,OAAO;AACH,UAAA,aAAa,KAAK,UAAU,MAAM;AACjC,WAAA,aAAa,WAAW,QAAQ,OAAOA,cAAA;AAAA,EAAA;AAAA,EAOhD,YAAY,MAAc;AACxB,WAAOC,KAAK,KAAA,WAAW,MAAM,KAAK,IAAI;AAAA,EAAA;AAE1C;;"}
1
+ {"version":3,"file":"fluent-editor.cjs.js","sources":["../../../src/core/fluent-editor.ts"],"sourcesContent":["import type { ExpandedQuillOptions } from 'quill'\nimport type { IEditorConfig } from '../config/types'\nimport type { FileUploader } from '../modules/custom-uploader'\nimport Quill from 'quill'\nimport { defaultLanguage } from '../config'\nimport I18N from '../modules/i18n'\n\nclass FluentEditor extends Quill {\n isFullscreen: boolean = false\n declare options: IEditorConfig & ExpandedQuillOptions\n declare uploader: FileUploader\n\n static register(...args: any[]): void {\n super.register(...args as Parameters<typeof Quill.register>)\n }\n\n get lang() {\n const i18nModule = this.getModule('i18n') as I18N\n return i18nModule ? i18nModule.options.lang : defaultLanguage\n }\n\n constructor(container: HTMLElement | string, options: IEditorConfig = {}) {\n super(container, options)\n }\n\n getLangText(name: string) {\n return I18N.parserText(name, this.lang)\n }\n}\n\nexport default FluentEditor\n"],"names":["defaultLanguage","I18N"],"mappings":";;;;;;;;;AAOA,MAAM,qBAAqB,MAAM;AAAA,EAc/B,YAAY,WAAiC,UAAyB,IAAI;AACxE,UAAM,WAAW,OAAO;AAd1B,wCAAwB;AAAA,EAexB;AAAA,EAXA,OAAO,YAAY,MAAmB;AACpC,UAAM,SAAS,GAAG,IAAyC;AAAA,EAC7D;AAAA,EAEA,IAAI,OAAO;AACT,UAAM,aAAa,KAAK,UAAU,MAAM;AACxC,WAAO,aAAa,WAAW,QAAQ,OAAOA,cAAAA;AAAAA,EAChD;AAAA,EAMA,YAAY,MAAc;AACxB,WAAOC,KAAAA,KAAK,WAAW,MAAM,KAAK,IAAI;AAAA,EACxC;AACF;;"}
@@ -5,38 +5,40 @@ const enUs = require("./config/i18n/en-us.cjs.js");
5
5
  const zhCn = require("./config/i18n/zh-cn.cjs.js");
6
6
  const fluentEditor = require("./core/fluent-editor.cjs.js");
7
7
  require("./formats/index.cjs.js");
8
- const index = require("./modules/ai/index.cjs.js");
8
+ const index$3 = require("./modules/ai/index.cjs.js");
9
9
  const counter = require("./modules/counter.cjs.js");
10
10
  const customClipboard = require("./modules/custom-clipboard.cjs.js");
11
11
  require("./modules/custom-image/index.cjs.js");
12
12
  const customUploader = require("./modules/custom-uploader.cjs.js");
13
13
  const divider = require("./modules/divider.cjs.js");
14
- const emoji$1 = require("./modules/emoji.cjs.js");
14
+ const emoji = require("./modules/emoji.cjs.js");
15
15
  require("./modules/file/index.cjs.js");
16
+ const index = require("./modules/flow-chart/index.cjs.js");
16
17
  const i18n = require("./modules/i18n.cjs.js");
17
18
  require("./modules/link/index.cjs.js");
18
19
  require("./modules/mathlive/index.cjs.js");
19
20
  require("./modules/mention/index.cjs.js");
20
- const index$1 = require("./modules/shortcut-key/index.cjs.js");
21
+ const index$1 = require("./modules/mind-map/index.cjs.js");
22
+ const index$2 = require("./modules/shortcut-key/index.cjs.js");
21
23
  const syntax = require("./modules/syntax.cjs.js");
22
24
  require("./modules/toolbar/index.cjs.js");
23
25
  const betterPicker = require("./modules/toolbar/better-picker.cjs.js");
24
26
  const snow = require("./themes/snow.cjs.js");
25
27
  const icons = require("./ui/icons.cjs.js");
26
- const fontStyle = require("./attributors/font-style.cjs.js");
28
+ const betterToolbar = require("./modules/toolbar/better-toolbar.cjs.js");
29
+ const mention = require("./modules/mention/mention.cjs.js");
30
+ const module$1 = require("./modules/mathlive/module.cjs.js");
31
+ const blotFormatter = require("./modules/custom-image/blot-formatter.cjs.js");
32
+ const fileModule = require("./modules/file/modules/file-module.cjs.js");
33
+ const link = require("./modules/link/formats/link.cjs.js");
34
+ const video = require("./formats/video.cjs.js");
35
+ const textIndent = require("./attributors/text-indent.cjs.js");
36
+ const strike = require("./formats/strike.cjs.js");
37
+ const softBreak = require("./formats/soft-break.cjs.js");
38
+ const emoji$1 = require("./formats/emoji.cjs.js");
27
39
  const fontSize = require("./attributors/font-size.cjs.js");
28
40
  const lineHeight = require("./attributors/line-height.cjs.js");
29
- const emoji = require("./formats/emoji.cjs.js");
30
- const softBreak = require("./formats/soft-break.cjs.js");
31
- const strike = require("./formats/strike.cjs.js");
32
- const textIndent = require("./attributors/text-indent.cjs.js");
33
- const video = require("./formats/video.cjs.js");
34
- const link = require("./modules/link/formats/link.cjs.js");
35
- const fileModule = require("./modules/file/modules/file-module.cjs.js");
36
- const blotFormatter = require("./modules/custom-image/blot-formatter.cjs.js");
37
- const module$1 = require("./modules/mathlive/module.cjs.js");
38
- const mention = require("./modules/mention/mention.cjs.js");
39
- const betterToolbar = require("./modules/toolbar/better-toolbar.cjs.js");
41
+ const fontStyle = require("./attributors/font-style.cjs.js");
40
42
  i18n.I18N.register(
41
43
  {
42
44
  "en-US": enUs.EN_US,
@@ -52,7 +54,7 @@ fluentEditor.default.register(
52
54
  "formats/font": fontStyle.FontStyle,
53
55
  "formats/line-height": lineHeight.LineHeightStyle,
54
56
  "formats/size": fontSize.SizeStyle,
55
- "formats/emoji": emoji.EmojiBlot,
57
+ "formats/emoji": emoji$1.EmojiBlot,
56
58
  "formats/softBreak": softBreak.SoftBreak,
57
59
  "formats/strike": strike.StrikeBlot,
58
60
  "formats/text-indent": textIndent.TextIndentStyle,
@@ -61,17 +63,19 @@ fluentEditor.default.register(
61
63
  "formats/link": link.LinkBlot,
62
64
  "modules/clipboard": customClipboard.CustomClipboard,
63
65
  "modules/counter": counter.default,
64
- "modules/emoji": emoji$1.EmojiModule,
66
+ "modules/emoji": emoji.EmojiModule,
65
67
  "modules/file": fileModule.FileModule,
66
68
  "modules/i18n": i18n.I18N,
67
69
  "modules/image": blotFormatter.BlotFormatter,
68
70
  "modules/mathlive": module$1.MathliveModule,
69
- "modules/ai": index.AI,
71
+ "modules/ai": index$3.AI,
70
72
  "modules/mention": mention.Mention,
71
73
  "modules/syntax": syntax.default,
72
74
  "modules/toolbar": betterToolbar.BetterToolbar,
73
75
  "modules/uploader": customUploader.FileUploader,
74
- "modules/shortcut-key": index$1.ShortCutKey,
76
+ "modules/shortcut-key": index$2.ShortCutKey,
77
+ "modules/mind-map": index$1.MindMapModule,
78
+ "modules/flow-chart": index.FlowChartModule,
75
79
  "themes/snow": snow.default,
76
80
  "ui/icons": icons.default,
77
81
  "ui/picker": betterPicker.Picker,
@@ -1 +1 @@
1
- {"version":3,"file":"fluent-editor.cjs.js","sources":["../../src/fluent-editor.ts"],"sourcesContent":["import { FontStyle, LineHeightStyle, SizeStyle, TextIndentStyle } from './attributors'\r\nimport { EN_US } from './config/i18n/en-us'\r\nimport { ZH_CN } from './config/i18n/zh-cn'\r\nimport FluentEditor from './core/fluent-editor'\r\nimport { EmojiBlot, SoftBreak, StrikeBlot, Video } from './formats'\r\nimport { AI } from './modules/ai' // AI\r\nimport Counter from './modules/counter' // 字符统计\r\nimport { CustomClipboard } from './modules/custom-clipboard' // 粘贴板\r\nimport { BlotFormatter } from './modules/custom-image' // 图片\r\nimport { FileUploader } from './modules/custom-uploader' // 上传\r\nimport { DividerBlot } from './modules/divider' // 分割线\r\nimport { EmojiModule } from './modules/emoji'\r\nimport { FileModule } from './modules/file' // 文件\r\nimport I18N from './modules/i18n'\r\nimport { LinkBlot } from './modules/link' // 超链接\r\nimport { MathliveModule } from './modules/mathlive' // latex公式\r\nimport { Mention } from './modules/mention' // @提醒\r\nimport { ShortCutKey } from './modules/shortcut-key'\r\nimport Syntax from './modules/syntax' // 代码块高亮\r\nimport { BetterToolbar } from './modules/toolbar' // 工具栏\r\nimport { ColorPicker, Picker } from './modules/toolbar/better-picker'\r\nimport SnowTheme from './themes/snow'\r\nimport Icons from './ui/icons'\r\n\r\nI18N.register(\r\n {\r\n 'en-US': EN_US,\r\n 'zh-CN': ZH_CN,\r\n },\r\n true,\r\n)\r\nFluentEditor.register(\r\n {\r\n 'attributors/style/font': FontStyle,\r\n 'attributors/style/size': SizeStyle,\r\n 'attributors/style/line-height': LineHeightStyle,\r\n\r\n 'formats/font': FontStyle,\r\n 'formats/line-height': LineHeightStyle,\r\n 'formats/size': SizeStyle,\r\n 'formats/emoji': EmojiBlot,\r\n 'formats/softBreak': SoftBreak,\r\n 'formats/strike': StrikeBlot,\r\n 'formats/text-indent': TextIndentStyle,\r\n 'formats/video': Video,\r\n 'formats/divider': DividerBlot,\r\n 'formats/link': LinkBlot,\r\n\r\n 'modules/clipboard': CustomClipboard,\r\n 'modules/counter': Counter,\r\n 'modules/emoji': EmojiModule,\r\n 'modules/file': FileModule,\r\n 'modules/i18n': I18N,\r\n 'modules/image': BlotFormatter,\r\n 'modules/mathlive': MathliveModule,\r\n 'modules/ai': AI,\r\n 'modules/mention': Mention,\r\n 'modules/syntax': Syntax,\r\n 'modules/toolbar': BetterToolbar,\r\n 'modules/uploader': FileUploader,\r\n 'modules/shortcut-key': ShortCutKey,\r\n\r\n 'themes/snow': SnowTheme,\r\n\r\n 'ui/icons': Icons,\r\n 'ui/picker': Picker,\r\n 'ui/color-picker': ColorPicker,\r\n },\r\n true, // 覆盖内部模块\r\n)\r\n\r\nexport default FluentEditor\r\n"],"names":["I18N","EN_US","ZH_CN","FluentEditor","FontStyle","SizeStyle","LineHeightStyle","EmojiBlot","SoftBreak","StrikeBlot","TextIndentStyle","Video","DividerBlot","LinkBlot","CustomClipboard","Counter","EmojiModule","FileModule","BlotFormatter","MathliveModule","AI","Mention","Syntax","BetterToolbar","FileUploader","ShortCutKey","SnowTheme","Icons","Picker","ColorPicker"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBAA,KAAAA,KAAK;AAAA,EACH;AAAA,IACE,SAASC,KAAA;AAAA,IACT,SAASC,KAAAA;AAAAA,EACX;AAAA,EACA;AACF;AACAC,aAAAA,QAAa;AAAA,EACX;AAAA,IACE,0BAA0BC,UAAA;AAAA,IAC1B,0BAA0BC,SAAA;AAAA,IAC1B,iCAAiCC,WAAA;AAAA,IAEjC,gBAAgBF,UAAA;AAAA,IAChB,uBAAuBE,WAAA;AAAA,IACvB,gBAAgBD,SAAA;AAAA,IAChB,iBAAiBE,MAAA;AAAA,IACjB,qBAAqBC,UAAA;AAAA,IACrB,kBAAkBC,OAAA;AAAA,IAClB,uBAAuBC,WAAA;AAAA,IACvB,iBAAiBC,MAAA;AAAA,IACjB,mBAAmBC,QAAA;AAAA,IACnB,gBAAgBC,KAAA;AAAA,IAEhB,qBAAqBC,gBAAA;AAAA,IACrB,mBAAmBC,QAAA;AAAA,IACnB,iBAAiBC,QAAA;AAAA,IACjB,gBAAgBC,WAAA;AAAA,IAChB,gBAAgBjB,KAAA;AAAA,IAChB,iBAAiBkB,cAAA;AAAA,IACjB,oBAAoBC,SAAA;AAAA,IACpB,cAAcC,MAAA;AAAA,IACd,mBAAmBC,QAAA;AAAA,IACnB,kBAAkBC,OAAA;AAAA,IAClB,mBAAmBC,cAAA;AAAA,IACnB,oBAAoBC,eAAA;AAAA,IACpB,wBAAwBC,QAAA;AAAA,IAExB,eAAeC,KAAA;AAAA,IAEf,YAAYC,MAAA;AAAA,IACZ,aAAaC,aAAA;AAAA,IACb,mBAAmBC,aAAAA;AAAAA,EACrB;AAAA,EACA;AAAA;AACF;;"}
1
+ {"version":3,"file":"fluent-editor.cjs.js","sources":["../../src/fluent-editor.ts"],"sourcesContent":["import { FontStyle, LineHeightStyle, SizeStyle, TextIndentStyle } from './attributors'\nimport { EN_US } from './config/i18n/en-us'\nimport { ZH_CN } from './config/i18n/zh-cn'\nimport FluentEditor from './core/fluent-editor'\nimport { EmojiBlot, SoftBreak, StrikeBlot, Video } from './formats'\nimport { AI } from './modules/ai' // AI\nimport Counter from './modules/counter' // 字符统计\nimport { CustomClipboard } from './modules/custom-clipboard' // 粘贴板\nimport { BlotFormatter } from './modules/custom-image' // 图片\nimport { FileUploader } from './modules/custom-uploader' // 上传\nimport { DividerBlot } from './modules/divider' // 分割线\nimport { EmojiModule } from './modules/emoji'\nimport { FileModule } from './modules/file' // 文件\nimport { FlowChartModule } from './modules/flow-chart' // 流程图\nimport I18N from './modules/i18n'\nimport { LinkBlot } from './modules/link' // 超链接\nimport { MathliveModule } from './modules/mathlive' // latex公式\nimport { Mention } from './modules/mention' // @提醒\nimport { MindMapModule } from './modules/mind-map' // 思维导图\nimport { ShortCutKey } from './modules/shortcut-key'\nimport Syntax from './modules/syntax' // 代码块高亮\nimport { BetterToolbar } from './modules/toolbar' // 工具栏\nimport { ColorPicker, Picker } from './modules/toolbar/better-picker'\nimport SnowTheme from './themes/snow'\nimport Icons from './ui/icons'\n\nI18N.register(\n {\n 'en-US': EN_US,\n 'zh-CN': ZH_CN,\n },\n true,\n)\nFluentEditor.register(\n {\n 'attributors/style/font': FontStyle,\n 'attributors/style/size': SizeStyle,\n 'attributors/style/line-height': LineHeightStyle,\n\n 'formats/font': FontStyle,\n 'formats/line-height': LineHeightStyle,\n 'formats/size': SizeStyle,\n 'formats/emoji': EmojiBlot,\n 'formats/softBreak': SoftBreak,\n 'formats/strike': StrikeBlot,\n 'formats/text-indent': TextIndentStyle,\n 'formats/video': Video,\n 'formats/divider': DividerBlot,\n 'formats/link': LinkBlot,\n\n 'modules/clipboard': CustomClipboard,\n 'modules/counter': Counter,\n 'modules/emoji': EmojiModule,\n 'modules/file': FileModule,\n 'modules/i18n': I18N,\n 'modules/image': BlotFormatter,\n 'modules/mathlive': MathliveModule,\n 'modules/ai': AI,\n 'modules/mention': Mention,\n 'modules/syntax': Syntax,\n 'modules/toolbar': BetterToolbar,\n 'modules/uploader': FileUploader,\n 'modules/shortcut-key': ShortCutKey,\n 'modules/mind-map': MindMapModule,\n 'modules/flow-chart': FlowChartModule,\n\n 'themes/snow': SnowTheme,\n\n 'ui/icons': Icons,\n 'ui/picker': Picker,\n 'ui/color-picker': ColorPicker,\n },\n true, // 覆盖内部模块\n)\n\nexport default FluentEditor\n"],"names":["I18N","EN_US","ZH_CN","FluentEditor","FontStyle","SizeStyle","LineHeightStyle","EmojiBlot","SoftBreak","StrikeBlot","TextIndentStyle","Video","DividerBlot","LinkBlot","CustomClipboard","Counter","EmojiModule","FileModule","BlotFormatter","MathliveModule","AI","Mention","Syntax","BetterToolbar","FileUploader","ShortCutKey","MindMapModule","FlowChartModule","SnowTheme","Icons","Picker","ColorPicker"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BAA,KAAAA,KAAK;AAAA,EACH;AAAA,IACE,SAASC,KAAAA;AAAAA,IACT,SAASC,KAAAA;AAAAA,EAAA;AAAA,EAEX;AACF;AACAC,aAAAA,QAAa;AAAA,EACX;AAAA,IACE,0BAA0BC,UAAAA;AAAAA,IAC1B,0BAA0BC,SAAAA;AAAAA,IAC1B,iCAAiCC,WAAAA;AAAAA,IAEjC,gBAAgBF,UAAAA;AAAAA,IAChB,uBAAuBE,WAAAA;AAAAA,IACvB,gBAAgBD,SAAAA;AAAAA,IAChB,iBAAiBE,QAAAA;AAAAA,IACjB,qBAAqBC,UAAAA;AAAAA,IACrB,kBAAkBC,OAAAA;AAAAA,IAClB,uBAAuBC,WAAAA;AAAAA,IACvB,iBAAiBC,MAAAA;AAAAA,IACjB,mBAAmBC,QAAAA;AAAAA,IACnB,gBAAgBC,KAAAA;AAAAA,IAEhB,qBAAqBC,gBAAAA;AAAAA,IACrB,mBAAmBC,QAAAA;AAAAA,IACnB,iBAAiBC,MAAAA;AAAAA,IACjB,gBAAgBC,WAAAA;AAAAA,IAChB,gBAAgBjB,KAAAA;AAAAA,IAChB,iBAAiBkB,cAAAA;AAAAA,IACjB,oBAAoBC,SAAAA;AAAAA,IACpB,cAAcC,QAAAA;AAAAA,IACd,mBAAmBC,QAAAA;AAAAA,IACnB,kBAAkBC,OAAAA;AAAAA,IAClB,mBAAmBC,cAAAA;AAAAA,IACnB,oBAAoBC,eAAAA;AAAAA,IACpB,wBAAwBC,QAAAA;AAAAA,IACxB,oBAAoBC,QAAAA;AAAAA,IACpB,sBAAsBC,MAAAA;AAAAA,IAEtB,eAAeC,KAAAA;AAAAA,IAEf,YAAYC,MAAAA;AAAAA,IACZ,aAAaC,aAAAA;AAAAA,IACb,mBAAmBC,aAAAA;AAAAA,EAAA;AAAA,EAErB;AAAA;AACF;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"emoji.cjs.js","sources":["../../../src/formats/emoji.ts"],"sourcesContent":["import type TypeInline from 'quill/blots/inline'\r\nimport Quill from 'quill'\r\n\r\nconst Inline = Quill.import('blots/inline') as typeof TypeInline\r\n\r\nexport class EmojiBlot extends Inline {\r\n static blotName = 'emoji'\r\n static tagName = 'span'\r\n static className = 'ql-emoji-format'\r\n}\r\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,SAAS,MAAM,OAAO,cAAc;AAEnC,MAAM,kBAAkB,OAAO;AAItC;AAHE,cADW,WACJ,YAAW;AAClB,cAFW,WAEJ,WAAU;AACjB,cAHW,WAGJ,aAAY;;"}
1
+ {"version":3,"file":"emoji.cjs.js","sources":["../../../src/formats/emoji.ts"],"sourcesContent":["import type TypeInline from 'quill/blots/inline'\nimport Quill from 'quill'\n\nconst Inline = Quill.import('blots/inline') as typeof TypeInline\n\nexport class EmojiBlot extends Inline {\n static blotName = 'emoji'\n static tagName = 'span'\n static className = 'ql-emoji-format'\n}\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,SAAS,MAAM,OAAO,cAAc;AAEnC,MAAM,kBAAkB,OAAO;AAItC;AAHE,cADW,WACJ,YAAW;AAClB,cAFW,WAEJ,WAAU;AACjB,cAHW,WAGJ,aAAY;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"soft-break.cjs.js","sources":["../../../src/formats/soft-break.ts"],"sourcesContent":["import type TypeEmbed from 'quill/blots/embed'\r\nimport Quill from 'quill'\r\n\r\nconst Embed = Quill.import('blots/embed') as typeof TypeEmbed\r\n\r\nexport class SoftBreak extends Embed {\r\n static blotName = 'soft-break'\r\n static tagName = 'BR'\r\n static className = 'ql-soft-break'\r\n remove: () => void\r\n\r\n static create() {\r\n const node = super.create()\r\n return node\r\n }\r\n\r\n optimize() {\r\n // li的开头结尾,移除软回车\r\n if (this.prev === null) {\r\n this.remove()\r\n }\r\n }\r\n\r\n length() {\r\n return 1\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,QAAQ,MAAM,OAAO,aAAa;AAEjC,MAAM,kBAAkB,MAAM;AAAA,EAA9B;AAAA;AAIL;AAAA;AAAA,EAEA,OAAO,SAAS;AACR,UAAA,OAAO,MAAM,OAAO;AACnB,WAAA;AAAA,EAAA;AAAA,EAGT,WAAW;AAEL,QAAA,KAAK,SAAS,MAAM;AACtB,WAAK,OAAO;AAAA,IAAA;AAAA,EACd;AAAA,EAGF,SAAS;AACA,WAAA;AAAA,EAAA;AAEX;AApBE,cADW,WACJ,YAAW;AAClB,cAFW,WAEJ,WAAU;AACjB,cAHW,WAGJ,aAAY;;"}
1
+ {"version":3,"file":"soft-break.cjs.js","sources":["../../../src/formats/soft-break.ts"],"sourcesContent":["import type TypeEmbed from 'quill/blots/embed'\nimport Quill from 'quill'\n\nconst Embed = Quill.import('blots/embed') as typeof TypeEmbed\n\nexport class SoftBreak extends Embed {\n static blotName = 'soft-break'\n static tagName = 'BR'\n static className = 'ql-soft-break'\n remove: () => void\n\n static create() {\n const node = super.create()\n return node\n }\n\n optimize() {\n // li的开头结尾,移除软回车\n if (this.prev === null) {\n this.remove()\n }\n }\n\n length() {\n return 1\n }\n}\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,QAAQ,MAAM,OAAO,aAAa;AAEjC,MAAM,kBAAkB,MAAM;AAAA,EAA9B;AAAA;AAIL;AAAA;AAAA,EAEA,OAAO,SAAS;AACd,UAAM,OAAO,MAAM,OAAA;AACnB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW;AAET,QAAI,KAAK,SAAS,MAAM;AACtB,WAAK,OAAA;AAAA,IACP;AAAA,EACF;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,EACT;AACF;AApBE,cADW,WACJ,YAAW;AAClB,cAFW,WAEJ,WAAU;AACjB,cAHW,WAGJ,aAAY;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"strike.cjs.js","sources":["../../../src/formats/strike.ts"],"sourcesContent":["import type TypeInline from 'quill/blots/inline'\r\nimport Quill from 'quill'\r\n\r\nconst Inline = Quill.import('blots/inline') as typeof TypeInline\r\n\r\nexport class StrikeBlot extends Inline {\r\n static blotName = 'strike'\r\n static tagName = 'u'\r\n static className = 'ql-custom-strike'\r\n // 此处删除了formats方法,当前tag非span,则并不需要进行特殊处理去重写formats方法\r\n}\r\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,SAAS,MAAM,OAAO,cAAc;AAEnC,MAAM,mBAAmB,OAAO;AAAA;AAKvC;AAJE,cADW,YACJ,YAAW;AAClB,cAFW,YAEJ,WAAU;AACjB,cAHW,YAGJ,aAAY;;"}
1
+ {"version":3,"file":"strike.cjs.js","sources":["../../../src/formats/strike.ts"],"sourcesContent":["import type TypeInline from 'quill/blots/inline'\nimport Quill from 'quill'\n\nconst Inline = Quill.import('blots/inline') as typeof TypeInline\n\nexport class StrikeBlot extends Inline {\n static blotName = 'strike'\n static tagName = 'u'\n static className = 'ql-custom-strike'\n // 此处删除了formats方法,当前tag非span,则并不需要进行特殊处理去重写formats方法\n}\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,SAAS,MAAM,OAAO,cAAc;AAEnC,MAAM,mBAAmB,OAAO;AAAA;AAKvC;AAJE,cADW,YACJ,YAAW;AAClB,cAFW,YAEJ,WAAU;AACjB,cAHW,YAGJ,aAAY;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"video.cjs.js","sources":["../../../src/formats/video.ts"],"sourcesContent":["import type { BlockEmbed as TypeBlockEmbed } from 'quill/blots/block'\r\nimport Quill from 'quill'\r\nimport { sanitize } from '../config/editor.utils'\r\n\r\nconst BlockEmbed = Quill.import('blots/block/embed') as typeof TypeBlockEmbed\r\nconst VIDEO_ATTRIBUTES = ['id', 'title', 'src']\r\n\r\nexport class Video extends BlockEmbed {\r\n static blotName = 'video'\r\n static tagName = 'VIDEO'\r\n static SANITIZED_URL = 'about:blank'\r\n static PROTOCOL_WHITELIST = ['http', 'https', 'blob']\r\n static className = 'ql-video'\r\n\r\n static sanitize(url) {\r\n return sanitize(url, this.PROTOCOL_WHITELIST) ? url : this.SANITIZED_URL\r\n }\r\n\r\n static create(value) {\r\n const node = super.create(value) as HTMLElement\r\n node.setAttribute('contenteditable', 'false')\r\n node.setAttribute('controls', 'controls')\r\n VIDEO_ATTRIBUTES.forEach((key) => {\r\n if (value[key]) {\r\n switch (key) {\r\n case 'src':{ const src = Video.sanitize(value[key])\r\n node.setAttribute(key, src)\r\n break\r\n }\r\n case 'title': {\r\n node.setAttribute(key, value[key])\r\n break\r\n }\r\n default: {\r\n node.dataset[key] = value[key]\r\n }\r\n }\r\n }\r\n })\r\n return node\r\n }\r\n\r\n static value(domNode) {\r\n const formats: any = {}\r\n VIDEO_ATTRIBUTES.forEach((key) => {\r\n const value = domNode.getAttribute(key) || domNode.dataset[key]\r\n if (value) {\r\n formats[key] = value\r\n }\r\n })\r\n return formats\r\n }\r\n}\r\n"],"names":["sanitize"],"mappings":";;;;;;;AAIA,MAAM,aAAa,MAAM,OAAO,mBAAmB;AACnD,MAAM,mBAAmB,CAAC,MAAM,SAAS,KAAK;AAEvC,MAAM,SAAN,MAAM,eAAc,WAAW;AAAA,EAOpC,OAAO,SAAS,KAAK;AACnB,WAAOA,aAAAA,SAAS,KAAK,KAAK,kBAAkB,IAAI,MAAM,KAAK;AAAA,EAAA;AAAA,EAG7D,OAAO,OAAO,OAAO;AACb,UAAA,OAAO,MAAM,OAAO,KAAK;AAC1B,SAAA,aAAa,mBAAmB,OAAO;AACvC,SAAA,aAAa,YAAY,UAAU;AACvB,qBAAA,QAAQ,CAAC,QAAQ;AAC5B,UAAA,MAAM,GAAG,GAAG;AACd,gBAAQ,KAAK;AAAA,UACX,KAAK,OAAM;AAAE,kBAAM,MAAM,OAAM,SAAS,MAAM,GAAG,CAAC;AAC3C,iBAAA,aAAa,KAAK,GAAG;AAC1B;AAAA,UAAA;AAAA,UAEF,KAAK,SAAS;AACZ,iBAAK,aAAa,KAAK,MAAM,GAAG,CAAC;AACjC;AAAA,UAAA;AAAA,UAEF,SAAS;AACP,iBAAK,QAAQ,GAAG,IAAI,MAAM,GAAG;AAAA,UAAA;AAAA,QAC/B;AAAA,MACF;AAAA,IACF,CACD;AACM,WAAA;AAAA,EAAA;AAAA,EAGT,OAAO,MAAM,SAAS;AACpB,UAAM,UAAe,CAAC;AACL,qBAAA,QAAQ,CAAC,QAAQ;AAChC,YAAM,QAAQ,QAAQ,aAAa,GAAG,KAAK,QAAQ,QAAQ,GAAG;AAC9D,UAAI,OAAO;AACT,gBAAQ,GAAG,IAAI;AAAA,MAAA;AAAA,IACjB,CACD;AACM,WAAA;AAAA,EAAA;AAEX;AA5CE,cADW,QACJ,YAAW;AAClB,cAFW,QAEJ,WAAU;AACjB,cAHW,QAGJ,iBAAgB;AACvB,cAJW,QAIJ,sBAAqB,CAAC,QAAQ,SAAS,MAAM;AACpD,cALW,QAKJ,aAAY;AALd,IAAM,QAAN;;"}
1
+ {"version":3,"file":"video.cjs.js","sources":["../../../src/formats/video.ts"],"sourcesContent":["import type { BlockEmbed as TypeBlockEmbed } from 'quill/blots/block'\nimport Quill from 'quill'\nimport { sanitize } from '../config/editor.utils'\n\nconst BlockEmbed = Quill.import('blots/block/embed') as typeof TypeBlockEmbed\nconst VIDEO_ATTRIBUTES = ['id', 'title', 'src']\n\nexport class Video extends BlockEmbed {\n static blotName = 'video'\n static tagName = 'VIDEO'\n static SANITIZED_URL = 'about:blank'\n static PROTOCOL_WHITELIST = ['http', 'https', 'blob']\n static className = 'ql-video'\n\n static sanitize(url) {\n return sanitize(url, this.PROTOCOL_WHITELIST) ? url : this.SANITIZED_URL\n }\n\n static create(value) {\n const node = super.create(value) as HTMLElement\n node.setAttribute('contenteditable', 'false')\n node.setAttribute('controls', 'controls')\n VIDEO_ATTRIBUTES.forEach((key) => {\n if (value[key]) {\n switch (key) {\n case 'src':{ const src = Video.sanitize(value[key])\n node.setAttribute(key, src)\n break\n }\n case 'title': {\n node.setAttribute(key, value[key])\n break\n }\n default: {\n node.dataset[key] = value[key]\n }\n }\n }\n })\n return node\n }\n\n static value(domNode) {\n const formats: any = {}\n VIDEO_ATTRIBUTES.forEach((key) => {\n const value = domNode.getAttribute(key) || domNode.dataset[key]\n if (value) {\n formats[key] = value\n }\n })\n return formats\n }\n}\n"],"names":["sanitize"],"mappings":";;;;;;;AAIA,MAAM,aAAa,MAAM,OAAO,mBAAmB;AACnD,MAAM,mBAAmB,CAAC,MAAM,SAAS,KAAK;AAEvC,MAAM,SAAN,MAAM,eAAc,WAAW;AAAA,EAOpC,OAAO,SAAS,KAAK;AACnB,WAAOA,aAAAA,SAAS,KAAK,KAAK,kBAAkB,IAAI,MAAM,KAAK;AAAA,EAC7D;AAAA,EAEA,OAAO,OAAO,OAAO;AACnB,UAAM,OAAO,MAAM,OAAO,KAAK;AAC/B,SAAK,aAAa,mBAAmB,OAAO;AAC5C,SAAK,aAAa,YAAY,UAAU;AACxC,qBAAiB,QAAQ,CAAC,QAAQ;AAChC,UAAI,MAAM,GAAG,GAAG;AACd,gBAAQ,KAAA;AAAA,UACN,KAAK,OAAM;AAAE,kBAAM,MAAM,OAAM,SAAS,MAAM,GAAG,CAAC;AAChD,iBAAK,aAAa,KAAK,GAAG;AAC1B;AAAA,UACF;AAAA,UACA,KAAK,SAAS;AACZ,iBAAK,aAAa,KAAK,MAAM,GAAG,CAAC;AACjC;AAAA,UACF;AAAA,UACA,SAAS;AACP,iBAAK,QAAQ,GAAG,IAAI,MAAM,GAAG;AAAA,UAC/B;AAAA,QAAA;AAAA,MAEJ;AAAA,IACF,CAAC;AACD,WAAO;AAAA,EACT;AAAA,EAEA,OAAO,MAAM,SAAS;AACpB,UAAM,UAAe,CAAA;AACrB,qBAAiB,QAAQ,CAAC,QAAQ;AAChC,YAAM,QAAQ,QAAQ,aAAa,GAAG,KAAK,QAAQ,QAAQ,GAAG;AAC9D,UAAI,OAAO;AACT,gBAAQ,GAAG,IAAI;AAAA,MACjB;AAAA,IACF,CAAC;AACD,WAAO;AAAA,EACT;AACF;AA5CE,cADW,QACJ,YAAW;AAClB,cAFW,QAEJ,WAAU;AACjB,cAHW,QAGJ,iBAAgB;AACvB,cAJW,QAIJ,sBAAqB,CAAC,QAAQ,SAAS,MAAM;AACpD,cALW,QAKJ,aAAY;AALd,IAAM,QAAN;;"}
package/lib/index.cjs.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  require("./fluent-editor.cjs.js");
4
4
  require("./attributors/index.cjs.js");
5
- require("./config/types/index.cjs.js");
5
+ const index = require("./config/index.cjs.js");
6
6
  require("./formats/index.cjs.js");
7
7
  require("./modules/index.cjs.js");
8
8
  const QuillShortcutKey = require("quill-shortcut-key");
@@ -12,6 +12,8 @@ const fontSize = require("./attributors/font-size.cjs.js");
12
12
  const fontStyle = require("./attributors/font-style.cjs.js");
13
13
  const lineHeight = require("./attributors/line-height.cjs.js");
14
14
  const textIndent = require("./attributors/text-indent.cjs.js");
15
+ const editor_config = require("./config/editor.config.cjs.js");
16
+ const editor_utils = require("./config/editor.utils.cjs.js");
15
17
  const emoji = require("./formats/emoji.cjs.js");
16
18
  const softBreak = require("./formats/soft-break.cjs.js");
17
19
  const strike = require("./formats/strike.cjs.js");
@@ -35,6 +37,7 @@ const emoji$1 = require("./modules/emoji.cjs.js");
35
37
  const file = require("./modules/file/formats/file.cjs.js");
36
38
  const fileBar = require("./modules/file/modules/file-bar.cjs.js");
37
39
  const fileModule = require("./modules/file/modules/file-module.cjs.js");
40
+ const index$1 = require("./modules/flow-chart/index.cjs.js");
38
41
  const i18n = require("./modules/i18n.cjs.js");
39
42
  const link = require("./modules/link/formats/link.cjs.js");
40
43
  const tooltip = require("./modules/link/modules/tooltip.cjs.js");
@@ -43,11 +46,15 @@ const module$2 = require("./modules/mathlive/module.cjs.js");
43
46
  const tooltip$1 = require("./modules/mathlive/tooltip.cjs.js");
44
47
  const mention = require("./modules/mention/mention.cjs.js");
45
48
  const mentionLink = require("./modules/mention/mention-link.cjs.js");
46
- const index = require("./modules/shortcut-key/index.cjs.js");
47
- const index$1 = require("./modules/table-up/index.cjs.js");
49
+ const index$2 = require("./modules/mind-map/index.cjs.js");
50
+ const index$3 = require("./modules/shortcut-key/index.cjs.js");
51
+ const index$4 = require("./modules/table-up/index.cjs.js");
48
52
  const betterPicker = require("./modules/toolbar/better-picker.cjs.js");
49
53
  const betterToolbar = require("./modules/toolbar/better-toolbar.cjs.js");
50
54
  const toolbarTip = require("./modules/toolbar/toolbar-tip.cjs.js");
55
+ exports.getListValue = index.getListValue;
56
+ exports.inputFile = index.inputFile;
57
+ exports.namespace = index.namespace;
51
58
  Object.defineProperty(exports, "generateTableUpShortKeyMenu", {
52
59
  enumerable: true,
53
60
  get: () => QuillShortcutKey.generateTableUpShortKeyMenu
@@ -81,6 +88,30 @@ exports.SizeStyle = fontSize.SizeStyle;
81
88
  exports.FontStyle = fontStyle.FontStyle;
82
89
  exports.LineHeightStyle = lineHeight.LineHeightStyle;
83
90
  exports.TextIndentStyle = textIndent.TextIndentStyle;
91
+ exports.AUDIO_VIDEO_UPLOADER_MIME_TYPES = editor_config.AUDIO_VIDEO_UPLOADER_MIME_TYPES;
92
+ exports.BIG_DELTA_LIMIT = editor_config.BIG_DELTA_LIMIT;
93
+ exports.CHANGE_LANGUAGE_EVENT = editor_config.CHANGE_LANGUAGE_EVENT;
94
+ exports.COMPRESSED_UPLOADER_MIME_TYPES = editor_config.COMPRESSED_UPLOADER_MIME_TYPES;
95
+ exports.DEFAULT_TOOLBAR = editor_config.DEFAULT_TOOLBAR;
96
+ exports.DOC_UPLOADER_MIME_TYPES = editor_config.DOC_UPLOADER_MIME_TYPES;
97
+ exports.FILE_UPLOADER_MIME_TYPES = editor_config.FILE_UPLOADER_MIME_TYPES;
98
+ exports.FULL_TOOLBAR = editor_config.FULL_TOOLBAR;
99
+ exports.IMAGE_UPLOADER_MIME_TYPES = editor_config.IMAGE_UPLOADER_MIME_TYPES;
100
+ exports.OTHER_FILE_UPLOADER_MIME_TYPES = editor_config.OTHER_FILE_UPLOADER_MIME_TYPES;
101
+ exports.PPT_UPLOADER_MIME_TYPES = editor_config.PPT_UPLOADER_MIME_TYPES;
102
+ exports.XSL_UPLOADER_MIME_TYPES = editor_config.XSL_UPLOADER_MIME_TYPES;
103
+ exports.defaultLanguage = editor_config.defaultLanguage;
104
+ exports.getEventComposedPath = editor_utils.getEventComposedPath;
105
+ exports.hadProtocol = editor_utils.hadProtocol;
106
+ exports.hexToRgbA = editor_utils.hexToRgbA;
107
+ exports.imageFileToUrl = editor_utils.imageFileToUrl;
108
+ exports.imageUrlToFile = editor_utils.imageUrlToFile;
109
+ exports.isInside = editor_utils.isInside;
110
+ exports.isNullOrUndefined = editor_utils.isNullOrUndefined;
111
+ exports.omit = editor_utils.omit;
112
+ exports.replaceDeltaImage = editor_utils.replaceDeltaImage;
113
+ exports.sanitize = editor_utils.sanitize;
114
+ exports.splitWithBreak = editor_utils.splitWithBreak;
84
115
  exports.EmojiBlot = emoji.EmojiBlot;
85
116
  exports.SoftBreak = softBreak.SoftBreak;
86
117
  exports.StrikeBlot = strike.StrikeBlot;
@@ -107,6 +138,7 @@ exports.EmojiModule = emoji$1.EmojiModule;
107
138
  exports.File = file.File;
108
139
  exports.FileBar = fileBar.FileBar;
109
140
  exports.FileModule = fileModule.FileModule;
141
+ exports.FlowChartModule = index$1.FlowChartModule;
110
142
  exports.I18N = i18n.I18N;
111
143
  exports.LinkBlot = link.LinkBlot;
112
144
  exports.LinkTooltip = tooltip.LinkTooltip;
@@ -115,9 +147,10 @@ exports.MathliveModule = module$2.MathliveModule;
115
147
  exports.MathliveTooltip = tooltip$1.MathliveTooltip;
116
148
  exports.Mention = mention.Mention;
117
149
  exports.MentionLink = mentionLink.MentionLink;
118
- exports.ShortCutKey = index.ShortCutKey;
119
- exports.shortKey = index.shortKey;
120
- exports.generateTableUp = index$1.generateTableUp;
150
+ exports.MindMapModule = index$2.MindMapModule;
151
+ exports.ShortCutKey = index$3.ShortCutKey;
152
+ exports.shortKey = index$3.shortKey;
153
+ exports.generateTableUp = index$4.generateTableUp;
121
154
  exports.ColorPicker = betterPicker.ColorPicker;
122
155
  exports.Picker = betterPicker.Picker;
123
156
  exports.BetterToolbar = betterToolbar.BetterToolbar;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.cjs.js","sources":["../../../../src/modules/ai/constants.ts"],"sourcesContent":["import {\r\n RICH_CONTENT_ICON,\r\n STREAMLINE_CONTENT_ICON,\r\n SYMBOL_ICON,\r\n TRANSLATE_ICON,\r\n} from './icons'\r\n\r\nexport const INPUT_PLACEHOLDER = '请输入问题或\"/\"获取提示词'\r\nexport const SELECT_PLACEHOLDER = '向我提问/选择操作'\r\nexport const STOP_ANSWER = '停止回答'\r\nexport const REPLACE_SELECT = '替换选中内容'\r\nexport const INSERT_TEXT = '插入内容'\r\nexport const INSERT_SUB_CONTENT_TEXT = '插入内容下方'\r\nexport const REGENERATE = '重新生成'\r\nexport const CLOSE = '关闭'\r\nexport const THINK_TEXT = '正在为您分析并总结答案'\r\nexport const RESULT_HEADER_TEXT = '根据您的诉求,已为您解答,具体如下:'\r\n\r\nexport const MENU_TITLE_DATA = {\r\n editor: [\r\n { id: '1-1', text: '丰富内容', icon: RICH_CONTENT_ICON },\r\n { id: '1-2', text: '精简内容', icon: STREAMLINE_CONTENT_ICON },\r\n { id: '1-3', text: '修改标点符号', icon: SYMBOL_ICON },\r\n { id: '1-4', text: '翻译', icon: TRANSLATE_ICON },\r\n ],\r\n tone: [\r\n { id: '2-1', text: '更专业的' },\r\n { id: '2-2', text: '更直接的' },\r\n { id: '2-3', text: '更友善的' },\r\n { id: '2-4', text: '更口语化的' },\r\n ],\r\n adjust: [\r\n { id: '3-1', text: '提炼要点' },\r\n { id: '3-2', text: '归纳总结' },\r\n { id: '3-3', text: '转写成[代码块]' },\r\n ],\r\n}\r\n\r\nexport const MENU_ID_MAP = {\r\n editor: 'subMenuEditorEl',\r\n tone: 'subMenuToneEl',\r\n adjust: 'subMenuAdjustEl',\r\n}\r\n"],"names":["RICH_CONTENT_ICON","STREAMLINE_CONTENT_ICON","SYMBOL_ICON","TRANSLATE_ICON"],"mappings":";;;AAOO,MAAM,oBAAoB;AAC1B,MAAM,qBAAqB;AAC3B,MAAM,cAAc;AACpB,MAAM,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,0BAA0B;AAChC,MAAM,aAAa;AACnB,MAAM,QAAQ;AACd,MAAM,aAAa;AACnB,MAAM,qBAAqB;AAE3B,MAAM,kBAAkB;AAAA,EAC7B,QAAQ;AAAA,IACN,EAAE,IAAI,OAAO,MAAM,QAAQ,MAAMA,MAAAA,kBAAkB;AAAA,IACnD,EAAE,IAAI,OAAO,MAAM,QAAQ,MAAMC,MAAAA,wBAAwB;AAAA,IACzD,EAAE,IAAI,OAAO,MAAM,UAAU,MAAMC,MAAAA,YAAY;AAAA,IAC/C,EAAE,IAAI,OAAO,MAAM,MAAM,MAAMC,MAAe,eAAA;AAAA,EAChD;AAAA,EACA,MAAM;AAAA,IACJ,EAAE,IAAI,OAAO,MAAM,OAAO;AAAA,IAC1B,EAAE,IAAI,OAAO,MAAM,OAAO;AAAA,IAC1B,EAAE,IAAI,OAAO,MAAM,OAAO;AAAA,IAC1B,EAAE,IAAI,OAAO,MAAM,QAAQ;AAAA,EAC7B;AAAA,EACA,QAAQ;AAAA,IACN,EAAE,IAAI,OAAO,MAAM,OAAO;AAAA,IAC1B,EAAE,IAAI,OAAO,MAAM,OAAO;AAAA,IAC1B,EAAE,IAAI,OAAO,MAAM,WAAW;AAAA,EAAA;AAElC;AAEO,MAAM,cAAc;AAAA,EACzB,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AACV;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"constants.cjs.js","sources":["../../../../src/modules/ai/constants.ts"],"sourcesContent":["import {\n RICH_CONTENT_ICON,\n STREAMLINE_CONTENT_ICON,\n SYMBOL_ICON,\n TRANSLATE_ICON,\n} from './icons'\n\nexport const INPUT_PLACEHOLDER = '请输入问题或\"/\"获取提示词'\nexport const SELECT_PLACEHOLDER = '向我提问/选择操作'\nexport const STOP_ANSWER = '停止回答'\nexport const REPLACE_SELECT = '替换选中内容'\nexport const INSERT_TEXT = '插入内容'\nexport const INSERT_SUB_CONTENT_TEXT = '插入内容下方'\nexport const REGENERATE = '重新生成'\nexport const CLOSE = '关闭'\nexport const THINK_TEXT = '正在为您分析并总结答案'\nexport const RESULT_HEADER_TEXT = '根据您的诉求,已为您解答,具体如下:'\n\nexport const MENU_TITLE_DATA = {\n editor: [\n { id: '1-1', text: '丰富内容', icon: RICH_CONTENT_ICON },\n { id: '1-2', text: '精简内容', icon: STREAMLINE_CONTENT_ICON },\n { id: '1-3', text: '修改标点符号', icon: SYMBOL_ICON },\n { id: '1-4', text: '翻译', icon: TRANSLATE_ICON },\n ],\n tone: [\n { id: '2-1', text: '更专业的' },\n { id: '2-2', text: '更直接的' },\n { id: '2-3', text: '更友善的' },\n { id: '2-4', text: '更口语化的' },\n ],\n adjust: [\n { id: '3-1', text: '提炼要点' },\n { id: '3-2', text: '归纳总结' },\n { id: '3-3', text: '转写成[代码块]' },\n ],\n}\n\nexport const MENU_ID_MAP = {\n editor: 'subMenuEditorEl',\n tone: 'subMenuToneEl',\n adjust: 'subMenuAdjustEl',\n}\n"],"names":["RICH_CONTENT_ICON","STREAMLINE_CONTENT_ICON","SYMBOL_ICON","TRANSLATE_ICON"],"mappings":";;;AAOO,MAAM,oBAAoB;AAC1B,MAAM,qBAAqB;AAC3B,MAAM,cAAc;AACpB,MAAM,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,0BAA0B;AAChC,MAAM,aAAa;AACnB,MAAM,QAAQ;AACd,MAAM,aAAa;AACnB,MAAM,qBAAqB;AAE3B,MAAM,kBAAkB;AAAA,EAC7B,QAAQ;AAAA,IACN,EAAE,IAAI,OAAO,MAAM,QAAQ,MAAMA,MAAAA,kBAAA;AAAA,IACjC,EAAE,IAAI,OAAO,MAAM,QAAQ,MAAMC,MAAAA,wBAAA;AAAA,IACjC,EAAE,IAAI,OAAO,MAAM,UAAU,MAAMC,MAAAA,YAAA;AAAA,IACnC,EAAE,IAAI,OAAO,MAAM,MAAM,MAAMC,MAAAA,eAAA;AAAA,EAAe;AAAA,EAEhD,MAAM;AAAA,IACJ,EAAE,IAAI,OAAO,MAAM,OAAA;AAAA,IACnB,EAAE,IAAI,OAAO,MAAM,OAAA;AAAA,IACnB,EAAE,IAAI,OAAO,MAAM,OAAA;AAAA,IACnB,EAAE,IAAI,OAAO,MAAM,QAAA;AAAA,EAAQ;AAAA,EAE7B,QAAQ;AAAA,IACN,EAAE,IAAI,OAAO,MAAM,OAAA;AAAA,IACnB,EAAE,IAAI,OAAO,MAAM,OAAA;AAAA,IACnB,EAAE,IAAI,OAAO,MAAM,WAAA;AAAA,EAAW;AAElC;AAEO,MAAM,cAAc;AAAA,EACzB,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AACV;;;;;;;;;;;;;"}