@opentiny/fluent-editor 4.0.0-alpha.1 → 4.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -105
- package/es/attributors/line-height.es.js.map +1 -1
- package/es/config/base64-image.es.js.map +1 -1
- package/es/config/editor.config.es.js.map +1 -1
- package/es/config/editor.utils.es.js +0 -2
- package/es/config/editor.utils.es.js.map +1 -1
- package/es/config/i18n/en-us.es.js.map +1 -1
- package/es/config/i18n/zh-cn.es.js.map +1 -1
- package/es/config/index.es.js +2 -2
- package/es/config/index.es.js.map +1 -1
- package/es/config/types/index.es.js +0 -20
- package/es/config/types/index.es.js.map +1 -1
- package/es/core/fluent-editor.es.js +4 -1
- package/es/core/fluent-editor.es.js.map +1 -1
- package/es/fluent-editor.es.js +26 -19
- package/es/fluent-editor.es.js.map +1 -1
- package/es/formats/emoji.es.js +14 -0
- package/es/formats/emoji.es.js.map +1 -0
- package/es/formats/index.es.js +11 -0
- package/es/formats/index.es.js.map +1 -0
- package/es/formats/soft-break.es.js +12 -5
- package/es/formats/soft-break.es.js.map +1 -1
- package/es/formats/strike.es.js +8 -5
- package/es/formats/strike.es.js.map +1 -1
- package/es/formats/video.es.js +14 -10
- package/es/formats/video.es.js.map +1 -1
- package/es/index.es.js +92 -31
- package/es/index.es.js.map +1 -1
- package/es/modules/ai/constants.es.js +50 -0
- package/es/modules/ai/constants.es.js.map +1 -0
- package/es/modules/ai/icons.es.js +319 -0
- package/es/modules/ai/icons.es.js.map +1 -0
- package/es/modules/ai/index.es.js +670 -0
- package/es/modules/ai/index.es.js.map +1 -0
- package/es/modules/collaborative-editing/awareness/awareness.es.js +93 -0
- package/es/modules/collaborative-editing/awareness/awareness.es.js.map +1 -0
- package/es/modules/collaborative-editing/awareness/index.es.js +8 -0
- package/es/modules/{emoji/emoji-list → collaborative-editing/awareness}/index.es.js.map +1 -1
- package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js +12 -0
- package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js.map +1 -0
- package/es/modules/collaborative-editing/collaborative-editing.es.js +105 -0
- package/es/modules/collaborative-editing/collaborative-editing.es.js.map +1 -0
- package/es/modules/collaborative-editing/index.es.js +6 -0
- package/es/modules/collaborative-editing/index.es.js.map +1 -0
- package/es/modules/collaborative-editing/module.es.js +35 -0
- package/es/modules/collaborative-editing/module.es.js.map +1 -0
- package/es/modules/collaborative-editing/provider/providerRegistry.es.js +28 -0
- package/es/modules/collaborative-editing/provider/providerRegistry.es.js.map +1 -0
- package/es/modules/collaborative-editing/provider/webrtc.es.js +99 -0
- package/es/modules/collaborative-editing/provider/webrtc.es.js.map +1 -0
- package/es/modules/collaborative-editing/provider/websocket.es.js +111 -0
- package/es/modules/collaborative-editing/provider/websocket.es.js.map +1 -0
- package/es/modules/collaborative-editing/types.es.js +2 -0
- package/es/modules/collaborative-editing/types.es.js.map +1 -0
- package/es/modules/counter.es.js +8 -3
- package/es/modules/counter.es.js.map +1 -1
- package/es/modules/custom-clipboard.es.js +20 -22
- package/es/modules/custom-clipboard.es.js.map +1 -1
- package/es/modules/custom-image/actions/action.es.js +19 -0
- package/es/modules/custom-image/actions/action.es.js.map +1 -0
- package/es/modules/custom-image/actions/{CustomResizeAction.es.js → custom-resize-action.es.js} +24 -11
- package/es/modules/custom-image/actions/custom-resize-action.es.js.map +1 -0
- package/es/modules/custom-image/actions/{DeleteAction.es.js → delete-action.es.js} +8 -5
- package/es/modules/custom-image/actions/delete-action.es.js.map +1 -0
- package/es/modules/custom-image/actions/image-toolbar-buttons.es.js +137 -0
- package/es/modules/custom-image/actions/image-toolbar-buttons.es.js.map +1 -0
- package/es/modules/custom-image/actions/index.es.js +18 -0
- package/es/modules/custom-image/actions/index.es.js.map +1 -0
- package/es/modules/custom-image/actions/toolbar-action.es.js +33 -0
- package/es/modules/custom-image/actions/toolbar-action.es.js.map +1 -0
- package/es/modules/custom-image/actions/toolbar.es.js +110 -0
- package/es/modules/custom-image/actions/toolbar.es.js.map +1 -0
- package/es/modules/custom-image/{BlotFormatter.es.js → blot-formatter.es.js} +27 -49
- package/es/modules/custom-image/blot-formatter.es.js.map +1 -0
- package/es/modules/custom-image/image.es.js +39 -7
- package/es/modules/custom-image/image.es.js.map +1 -1
- package/es/modules/custom-image/index.es.js +9 -0
- package/es/modules/custom-image/index.es.js.map +1 -0
- package/es/modules/custom-image/options.es.js +88 -0
- package/es/modules/custom-image/options.es.js.map +1 -0
- package/es/modules/custom-image/specs/blot-spec.es.js +33 -0
- package/es/modules/custom-image/specs/blot-spec.es.js.map +1 -0
- package/es/modules/custom-image/specs/{CustomImageSpec.es.js → custom-image-spec.es.js} +13 -14
- package/es/modules/custom-image/specs/custom-image-spec.es.js.map +1 -0
- package/es/modules/custom-image/specs/image-spec.es.js +32 -0
- package/es/modules/custom-image/specs/image-spec.es.js.map +1 -0
- package/es/modules/custom-image/specs/index.es.js +9 -0
- package/es/modules/custom-image/specs/index.es.js.map +1 -0
- package/es/modules/custom-uploader.es.js +7 -5
- package/es/modules/custom-uploader.es.js.map +1 -1
- package/es/modules/divider.es.js +8 -7
- package/es/modules/divider.es.js.map +1 -1
- package/es/modules/emoji.es.js +167 -0
- package/es/modules/emoji.es.js.map +1 -0
- package/es/modules/file/formats/file.es.js +10 -8
- package/es/modules/file/formats/file.es.js.map +1 -1
- package/es/modules/file/index.es.js +6 -28
- package/es/modules/file/index.es.js.map +1 -1
- package/es/modules/file/modules/file-bar.es.js +11 -3
- package/es/modules/file/modules/file-bar.es.js.map +1 -1
- package/es/modules/file/modules/file-module.es.js +35 -0
- package/es/modules/file/modules/file-module.es.js.map +1 -0
- package/es/modules/i18n.es.js +6 -3
- package/es/modules/i18n.es.js.map +1 -1
- package/es/modules/index.es.js +27 -0
- package/es/modules/index.es.js.map +1 -0
- package/es/modules/link/formats/link.es.js +14 -10
- package/es/modules/link/formats/link.es.js.map +1 -1
- package/es/modules/link/index.es.js +4 -12
- package/es/modules/link/index.es.js.map +1 -1
- package/es/modules/link/modules/tooltip.es.js +28 -19
- package/es/modules/link/modules/tooltip.es.js.map +1 -1
- package/es/modules/mathlive/formats.es.js +10 -7
- package/es/modules/mathlive/formats.es.js.map +1 -1
- package/es/modules/mathlive/index.es.js +6 -30
- package/es/modules/mathlive/index.es.js.map +1 -1
- package/es/modules/mathlive/module.es.js +40 -0
- package/es/modules/mathlive/module.es.js.map +1 -0
- package/es/modules/mathlive/tooltip.es.js +9 -5
- package/es/modules/mathlive/tooltip.es.js.map +1 -1
- package/es/modules/mention/constants.es.js.map +1 -1
- package/es/modules/mention/index.es.js +7 -0
- package/es/modules/mention/index.es.js.map +1 -0
- package/es/modules/mention/{MentionLink.es.js → mention-link.es.js} +14 -6
- package/es/modules/mention/mention-link.es.js.map +1 -0
- package/es/modules/mention/{Mention.es.js → mention.es.js} +28 -20
- package/es/modules/mention/mention.es.js.map +1 -0
- package/es/modules/shortcut-key/index.es.js.map +1 -1
- package/es/modules/syntax.es.js +4 -0
- package/es/modules/syntax.es.js.map +1 -1
- package/es/modules/table-up/index.es.js +16 -6
- package/es/modules/table-up/index.es.js.map +1 -1
- package/es/modules/toolbar/better-picker.es.js +5 -0
- package/es/modules/toolbar/better-picker.es.js.map +1 -1
- package/es/modules/toolbar/better-toolbar.es.js +138 -0
- package/es/modules/toolbar/better-toolbar.es.js.map +1 -0
- package/es/modules/toolbar/index.es.js +5 -135
- package/es/modules/toolbar/index.es.js.map +1 -1
- package/es/themes/snow.es.js +18 -10
- package/es/themes/snow.es.js.map +1 -1
- package/es/tools/format-painter.es.js +8 -2
- package/es/tools/format-painter.es.js.map +1 -1
- package/es/tools/fullscreen.es.js.map +1 -1
- package/es/tools/screenshot.es.js.map +1 -1
- package/es/ui/icons.config.es.js +53 -0
- package/es/ui/icons.config.es.js.map +1 -1
- package/es/ui/icons.es.js +2 -1
- package/es/ui/icons.es.js.map +1 -1
- package/es/utils/debounce.es.js.map +1 -1
- package/es/utils/is.es.js.map +1 -1
- package/es/utils/method.es.js.map +1 -1
- package/lib/attributors/line-height.cjs.js.map +1 -1
- package/lib/config/base64-image.cjs.js.map +1 -1
- package/lib/config/editor.config.cjs.js.map +1 -1
- package/lib/config/editor.utils.cjs.js +0 -2
- package/lib/config/editor.utils.cjs.js.map +1 -1
- package/lib/config/i18n/en-us.cjs.js.map +1 -1
- package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
- package/lib/config/index.cjs.js +1 -1
- package/lib/config/index.cjs.js.map +1 -1
- package/lib/config/types/index.cjs.js +0 -20
- package/lib/config/types/index.cjs.js.map +1 -1
- package/lib/core/fluent-editor.cjs.js +4 -1
- package/lib/core/fluent-editor.cjs.js.map +1 -1
- package/lib/fluent-editor.cjs.js +35 -28
- package/lib/fluent-editor.cjs.js.map +1 -1
- package/lib/formats/emoji.cjs.js +14 -0
- package/lib/formats/emoji.cjs.js.map +1 -0
- package/lib/formats/index.cjs.js +11 -0
- package/lib/formats/index.cjs.js.map +1 -0
- package/lib/formats/soft-break.cjs.js +13 -6
- package/lib/formats/soft-break.cjs.js.map +1 -1
- package/lib/formats/strike.cjs.js +9 -6
- package/lib/formats/strike.cjs.js.map +1 -1
- package/lib/formats/video.cjs.js +15 -11
- package/lib/formats/video.cjs.js.map +1 -1
- package/lib/index.cjs.js +113 -34
- package/lib/index.cjs.js.map +1 -1
- package/lib/modules/ai/constants.cjs.js +50 -0
- package/lib/modules/ai/constants.cjs.js.map +1 -0
- package/lib/modules/ai/icons.cjs.js +319 -0
- package/lib/modules/ai/icons.cjs.js.map +1 -0
- package/lib/modules/ai/index.cjs.js +670 -0
- package/lib/modules/ai/index.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/awareness/awareness.cjs.js +110 -0
- package/lib/modules/collaborative-editing/awareness/awareness.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/awareness/index.cjs.js +8 -0
- package/lib/modules/collaborative-editing/awareness/index.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js +12 -0
- package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/collaborative-editing.cjs.js +122 -0
- package/lib/modules/collaborative-editing/collaborative-editing.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/index.cjs.js +6 -0
- package/lib/modules/{emoji/emoji-list → collaborative-editing}/index.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/module.cjs.js +35 -0
- package/lib/modules/collaborative-editing/module.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/provider/providerRegistry.cjs.js +28 -0
- package/lib/modules/collaborative-editing/provider/providerRegistry.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/provider/webrtc.cjs.js +116 -0
- package/lib/modules/collaborative-editing/provider/webrtc.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/provider/websocket.cjs.js +128 -0
- package/lib/modules/collaborative-editing/provider/websocket.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/types.cjs.js +2 -0
- package/lib/modules/collaborative-editing/types.cjs.js.map +1 -0
- package/lib/modules/counter.cjs.js +8 -3
- package/lib/modules/counter.cjs.js.map +1 -1
- package/lib/modules/custom-clipboard.cjs.js +21 -23
- package/lib/modules/custom-clipboard.cjs.js.map +1 -1
- package/lib/modules/custom-image/actions/action.cjs.js +19 -0
- package/lib/modules/custom-image/actions/action.cjs.js.map +1 -0
- package/lib/modules/custom-image/actions/{CustomResizeAction.cjs.js → custom-resize-action.cjs.js} +26 -13
- package/lib/modules/custom-image/actions/custom-resize-action.cjs.js.map +1 -0
- package/lib/modules/custom-image/actions/{DeleteAction.cjs.js → delete-action.cjs.js} +10 -7
- package/lib/modules/custom-image/actions/delete-action.cjs.js.map +1 -0
- package/lib/modules/custom-image/actions/image-toolbar-buttons.cjs.js +137 -0
- package/lib/modules/custom-image/actions/image-toolbar-buttons.cjs.js.map +1 -0
- package/lib/modules/custom-image/actions/index.cjs.js +18 -0
- package/lib/modules/custom-image/actions/index.cjs.js.map +1 -0
- package/lib/modules/custom-image/actions/toolbar-action.cjs.js +33 -0
- package/lib/modules/custom-image/actions/toolbar-action.cjs.js.map +1 -0
- package/lib/modules/custom-image/actions/toolbar.cjs.js +110 -0
- package/lib/modules/custom-image/actions/toolbar.cjs.js.map +1 -0
- package/lib/modules/custom-image/{BlotFormatter.cjs.js → blot-formatter.cjs.js} +28 -50
- package/lib/modules/custom-image/blot-formatter.cjs.js.map +1 -0
- package/lib/modules/custom-image/image.cjs.js +40 -8
- package/lib/modules/custom-image/image.cjs.js.map +1 -1
- package/lib/modules/custom-image/index.cjs.js +9 -0
- package/lib/modules/custom-image/index.cjs.js.map +1 -0
- package/lib/modules/custom-image/options.cjs.js +88 -0
- package/lib/modules/custom-image/options.cjs.js.map +1 -0
- package/lib/modules/custom-image/specs/blot-spec.cjs.js +33 -0
- package/lib/modules/custom-image/specs/blot-spec.cjs.js.map +1 -0
- package/lib/modules/custom-image/specs/{CustomImageSpec.cjs.js → custom-image-spec.cjs.js} +14 -15
- package/lib/modules/custom-image/specs/custom-image-spec.cjs.js.map +1 -0
- package/lib/modules/custom-image/specs/image-spec.cjs.js +32 -0
- package/lib/modules/custom-image/specs/image-spec.cjs.js.map +1 -0
- package/lib/modules/custom-image/specs/index.cjs.js +9 -0
- package/lib/modules/custom-image/specs/index.cjs.js.map +1 -0
- package/lib/modules/custom-uploader.cjs.js +7 -5
- package/lib/modules/custom-uploader.cjs.js.map +1 -1
- package/lib/modules/divider.cjs.js +9 -8
- package/lib/modules/divider.cjs.js.map +1 -1
- package/lib/modules/emoji.cjs.js +167 -0
- package/lib/modules/emoji.cjs.js.map +1 -0
- package/lib/modules/file/formats/file.cjs.js +11 -9
- package/lib/modules/file/formats/file.cjs.js.map +1 -1
- package/lib/modules/file/index.cjs.js +5 -27
- package/lib/modules/file/index.cjs.js.map +1 -1
- package/lib/modules/file/modules/file-bar.cjs.js +12 -4
- package/lib/modules/file/modules/file-bar.cjs.js.map +1 -1
- package/lib/modules/file/modules/file-module.cjs.js +35 -0
- package/lib/modules/file/modules/file-module.cjs.js.map +1 -0
- package/lib/modules/i18n.cjs.js +6 -3
- package/lib/modules/i18n.cjs.js.map +1 -1
- package/lib/modules/index.cjs.js +27 -0
- package/lib/modules/index.cjs.js.map +1 -0
- package/lib/modules/link/formats/link.cjs.js +15 -11
- package/lib/modules/link/formats/link.cjs.js.map +1 -1
- package/lib/modules/link/index.cjs.js +4 -12
- package/lib/modules/link/index.cjs.js.map +1 -1
- package/lib/modules/link/modules/tooltip.cjs.js +28 -19
- package/lib/modules/link/modules/tooltip.cjs.js.map +1 -1
- package/lib/modules/mathlive/formats.cjs.js +11 -8
- package/lib/modules/mathlive/formats.cjs.js.map +1 -1
- package/lib/modules/mathlive/index.cjs.js +5 -29
- package/lib/modules/mathlive/index.cjs.js.map +1 -1
- package/lib/modules/mathlive/module.cjs.js +40 -0
- package/lib/modules/mathlive/module.cjs.js.map +1 -0
- package/lib/modules/mathlive/tooltip.cjs.js +10 -6
- package/lib/modules/mathlive/tooltip.cjs.js.map +1 -1
- package/lib/modules/mention/constants.cjs.js.map +1 -1
- package/lib/modules/mention/index.cjs.js +7 -0
- package/lib/modules/mention/index.cjs.js.map +1 -0
- package/lib/modules/mention/{MentionLink.cjs.js → mention-link.cjs.js} +15 -7
- package/lib/modules/mention/mention-link.cjs.js.map +1 -0
- package/lib/modules/mention/{Mention.cjs.js → mention.cjs.js} +30 -22
- package/lib/modules/mention/mention.cjs.js.map +1 -0
- package/lib/modules/shortcut-key/index.cjs.js.map +1 -1
- package/lib/modules/syntax.cjs.js +4 -0
- package/lib/modules/syntax.cjs.js.map +1 -1
- package/lib/modules/table-up/index.cjs.js +16 -6
- package/lib/modules/table-up/index.cjs.js.map +1 -1
- package/lib/modules/toolbar/better-picker.cjs.js +5 -0
- package/lib/modules/toolbar/better-picker.cjs.js.map +1 -1
- package/lib/modules/toolbar/better-toolbar.cjs.js +138 -0
- package/lib/modules/toolbar/better-toolbar.cjs.js.map +1 -0
- package/lib/modules/toolbar/index.cjs.js +6 -136
- package/lib/modules/toolbar/index.cjs.js.map +1 -1
- package/lib/themes/snow.cjs.js +19 -11
- package/lib/themes/snow.cjs.js.map +1 -1
- package/lib/tools/format-painter.cjs.js +8 -2
- package/lib/tools/format-painter.cjs.js.map +1 -1
- package/lib/tools/fullscreen.cjs.js.map +1 -1
- package/lib/tools/screenshot.cjs.js.map +1 -1
- package/lib/ui/icons.cjs.js +1 -0
- package/lib/ui/icons.cjs.js.map +1 -1
- package/lib/ui/icons.config.cjs.js +53 -0
- package/lib/ui/icons.config.cjs.js.map +1 -1
- package/lib/utils/debounce.cjs.js.map +1 -1
- package/lib/utils/is.cjs.js.map +1 -1
- package/lib/utils/method.cjs.js.map +1 -1
- package/package.json +68 -59
- package/style.css +2354 -2233
- package/types/attributors/font-size.d.ts +1 -1
- package/types/attributors/font-style.d.ts +1 -1
- package/types/attributors/index.d.ts +4 -4
- package/types/attributors/line-height.d.ts +1 -1
- package/types/attributors/text-indent.d.ts +1 -1
- package/types/config/base64-image.d.ts +2 -2
- package/types/config/editor.config.d.ts +11 -11
- package/types/config/editor.utils.d.ts +40 -41
- package/types/config/i18n/en-us.d.ts +123 -123
- package/types/config/i18n/zh-cn.d.ts +123 -123
- package/types/config/index.d.ts +7 -6
- package/types/config/types/editor-config.interface.d.ts +11 -16
- package/types/config/types/editor-modules.interface.d.ts +40 -32
- package/types/config/types/index.d.ts +3 -23
- package/types/config/types/type.d.ts +2 -6
- package/types/core/fluent-editor.d.ts +10 -12
- package/types/fluent-editor.d.ts +1 -2
- package/types/formats/emoji.d.ts +8 -0
- package/types/formats/index.d.ts +4 -0
- package/types/formats/soft-break.d.ts +12 -14
- package/types/formats/strike.d.ts +8 -7
- package/types/formats/video.d.ts +13 -16
- package/types/index.d.ts +7 -7
- package/types/modules/ai/constants.d.ts +30 -0
- package/types/modules/ai/icons.d.ts +21 -0
- package/types/modules/ai/index.d.ts +96 -0
- package/types/modules/ai/types.d.ts +16 -0
- package/types/modules/collaborative-editing/awareness/awareness.d.ts +28 -0
- package/types/modules/collaborative-editing/awareness/index.d.ts +2 -0
- package/types/modules/collaborative-editing/awareness/y-indexeddb.d.ts +2 -0
- package/types/modules/collaborative-editing/collaborative-editing.d.ts +24 -0
- package/types/modules/collaborative-editing/index.d.ts +2 -0
- package/types/modules/collaborative-editing/module.d.ts +11 -0
- package/types/modules/collaborative-editing/provider/index.d.ts +3 -0
- package/types/modules/collaborative-editing/provider/providerRegistry.d.ts +25 -0
- package/types/modules/collaborative-editing/provider/webrtc.d.ts +36 -0
- package/types/modules/collaborative-editing/provider/websocket.d.ts +40 -0
- package/types/modules/collaborative-editing/types.d.ts +37 -0
- package/types/modules/counter.d.ts +22 -16
- package/types/modules/custom-clipboard.d.ts +23 -27
- package/types/modules/custom-image/actions/action.d.ts +8 -0
- package/types/modules/custom-image/actions/{CustomResizeAction.d.ts → custom-resize-action.d.ts} +23 -24
- package/types/modules/custom-image/actions/delete-action.d.ts +6 -0
- package/types/modules/custom-image/actions/image-toolbar-buttons.d.ts +16 -0
- package/types/modules/custom-image/actions/index.d.ts +6 -0
- package/types/modules/custom-image/actions/toolbar-action.d.ts +11 -0
- package/types/modules/custom-image/actions/toolbar.d.ts +19 -0
- package/types/modules/custom-image/blot-formatter.d.ts +23 -0
- package/types/modules/custom-image/image.d.ts +27 -24
- package/types/modules/custom-image/index.d.ts +4 -0
- package/types/modules/custom-image/options.d.ts +47 -0
- package/types/modules/custom-image/specs/blot-spec.d.ts +12 -0
- package/types/modules/custom-image/specs/{CustomImageSpec.d.ts → custom-image-spec.d.ts} +17 -21
- package/types/modules/custom-image/specs/image-spec.d.ts +8 -0
- package/types/modules/custom-image/specs/index.d.ts +3 -0
- package/types/modules/custom-uploader.d.ts +40 -0
- package/types/modules/divider.d.ts +8 -7
- package/types/modules/emoji.d.ts +39 -0
- package/types/modules/file/formats/file.d.ts +17 -18
- package/types/modules/file/index.d.ts +3 -11
- package/types/modules/file/modules/file-bar.d.ts +14 -14
- package/types/modules/file/modules/file-module.d.ts +9 -0
- package/types/modules/i18n.d.ts +13 -15
- package/types/modules/index.d.ts +16 -0
- package/types/modules/link/formats/link.d.ts +14 -15
- package/types/modules/link/index.d.ts +2 -6
- package/types/modules/link/modules/tooltip.d.ts +26 -32
- package/types/modules/mathlive/formats.d.ts +20 -21
- package/types/modules/mathlive/index.d.ts +3 -9
- package/types/modules/mathlive/module.d.ts +9 -0
- package/types/modules/mathlive/tooltip.d.ts +14 -15
- package/types/modules/mention/constants.d.ts +3 -3
- package/types/modules/mention/index.d.ts +2 -0
- package/types/modules/mention/{MentionLink.d.ts → mention-link.d.ts} +15 -15
- package/types/modules/mention/{Mention.d.ts → mention.d.ts} +52 -54
- package/types/modules/shortcut-key/index.d.ts +67 -64
- package/types/modules/syntax.d.ts +12 -13
- package/types/modules/table-up/index.d.ts +32 -64
- package/types/modules/toolbar/better-picker.d.ts +13 -14
- package/types/modules/toolbar/better-toolbar.d.ts +7 -0
- package/types/modules/toolbar/index.d.ts +3 -9
- package/types/modules/toolbar/toolbar-tip.d.ts +7 -8
- package/types/themes/snow.d.ts +9 -10
- package/types/tools/format-painter.d.ts +12 -14
- package/types/tools/fullscreen.d.ts +6 -3
- package/types/tools/screenshot.d.ts +17 -18
- package/types/ui/icons.config.d.ts +38 -36
- package/types/ui/icons.d.ts +6 -6
- package/types/utils/debounce.d.ts +6 -6
- package/types/utils/image.d.ts +1 -1
- package/types/utils/is.d.ts +6 -6
- package/types/utils/method.d.ts +6 -6
- package/types/utils/scroll-lock.d.ts +6 -6
- package/es/config/types/additional-toolbar-item.interface.es.js +0 -2
- package/es/config/types/additional-toolbar-item.interface.es.js.map +0 -1
- package/es/config/types/content-change.interface.es.js +0 -2
- package/es/config/types/content-change.interface.es.js.map +0 -1
- package/es/config/types/content-save.interface.es.js +0 -2
- package/es/config/types/content-save.interface.es.js.map +0 -1
- package/es/config/types/counter-option.interface.es.js +0 -2
- package/es/config/types/counter-option.interface.es.js.map +0 -1
- package/es/config/types/editor-toolbar.interface.es.js +0 -2
- package/es/config/types/editor-toolbar.interface.es.js.map +0 -1
- package/es/config/types/file-operation.interface.es.js +0 -2
- package/es/config/types/file-operation.interface.es.js.map +0 -1
- package/es/config/types/focus-change.interface.es.js +0 -2
- package/es/config/types/focus-change.interface.es.js.map +0 -1
- package/es/config/types/fullscreen-module.interface.es.js +0 -2
- package/es/config/types/fullscreen-module.interface.es.js.map +0 -1
- package/es/config/types/help-panel-item.interface.es.js +0 -2
- package/es/config/types/help-panel-item.interface.es.js.map +0 -1
- package/es/config/types/help-panel-option.interface.es.js +0 -2
- package/es/config/types/help-panel-option.interface.es.js.map +0 -1
- package/es/config/types/image-module.interface.es.js +0 -2
- package/es/config/types/image-module.interface.es.js.map +0 -1
- package/es/config/types/image-upload.interface.es.js +0 -2
- package/es/config/types/image-upload.interface.es.js.map +0 -1
- package/es/config/types/load-on-demand-module.interface.es.js +0 -2
- package/es/config/types/load-on-demand-module.interface.es.js.map +0 -1
- package/es/config/types/mention-module.interface.es.js +0 -2
- package/es/config/types/mention-module.interface.es.js.map +0 -1
- package/es/config/types/paste-change.interface.es.js +0 -2
- package/es/config/types/paste-change.interface.es.js.map +0 -1
- package/es/config/types/quick-menu-module.interface.es.js +0 -2
- package/es/config/types/quick-menu-module.interface.es.js.map +0 -1
- package/es/config/types/range.interface.es.js +0 -2
- package/es/config/types/range.interface.es.js.map +0 -1
- package/es/config/types/registry-options.interface.es.js +0 -2
- package/es/config/types/registry-options.interface.es.js.map +0 -1
- package/es/config/types/selection-change.interface.es.js +0 -2
- package/es/config/types/selection-change.interface.es.js.map +0 -1
- package/es/config/types/toolbar-item.interface.es.js +0 -2
- package/es/config/types/toolbar-item.interface.es.js.map +0 -1
- package/es/config/types/validate-error.interface.es.js +0 -2
- package/es/config/types/validate-error.interface.es.js.map +0 -1
- package/es/modules/custom-image/BlotFormatter.es.js.map +0 -1
- package/es/modules/custom-image/Options.es.js +0 -95
- package/es/modules/custom-image/Options.es.js.map +0 -1
- package/es/modules/custom-image/actions/Action.es.js +0 -15
- package/es/modules/custom-image/actions/Action.es.js.map +0 -1
- package/es/modules/custom-image/actions/CustomResizeAction.es.js.map +0 -1
- package/es/modules/custom-image/actions/DeleteAction.es.js.map +0 -1
- package/es/modules/custom-image/image-bar.es.js +0 -127
- package/es/modules/custom-image/image-bar.es.js.map +0 -1
- package/es/modules/custom-image/specs/BlotSpec.es.js +0 -27
- package/es/modules/custom-image/specs/BlotSpec.es.js.map +0 -1
- package/es/modules/custom-image/specs/CustomImageSpec.es.js.map +0 -1
- package/es/modules/custom-image/specs/ImageSpec.es.js +0 -29
- package/es/modules/custom-image/specs/ImageSpec.es.js.map +0 -1
- package/es/modules/emoji/emoji-list/index.es.js +0 -5
- package/es/modules/emoji/emoji-list/people.es.js +0 -114
- package/es/modules/emoji/emoji-list/people.es.js.map +0 -1
- package/es/modules/emoji/emoji-list.es.js +0 -9
- package/es/modules/emoji/emoji-list.es.js.map +0 -1
- package/es/modules/emoji/emoji-map.es.js +0 -9
- package/es/modules/emoji/emoji-map.es.js.map +0 -1
- package/es/modules/emoji/emoji-sprite.es.js +0 -5
- package/es/modules/emoji/emoji-sprite.es.js.map +0 -1
- package/es/modules/emoji/formats/emoji-blot.es.js +0 -41
- package/es/modules/emoji/formats/emoji-blot.es.js.map +0 -1
- package/es/modules/emoji/index.es.js +0 -8
- package/es/modules/emoji/index.es.js.map +0 -1
- package/es/modules/emoji/modules/emoji.es.js +0 -248
- package/es/modules/emoji/modules/emoji.es.js.map +0 -1
- package/es/modules/emoji/modules/toolbar-emoji.es.js +0 -153
- package/es/modules/emoji/modules/toolbar-emoji.es.js.map +0 -1
- package/es/modules/emoji/utils.es.js +0 -19
- package/es/modules/emoji/utils.es.js.map +0 -1
- package/es/modules/mention/Mention.es.js.map +0 -1
- package/es/modules/mention/MentionLink.es.js.map +0 -1
- package/lib/config/types/additional-toolbar-item.interface.cjs.js +0 -2
- package/lib/config/types/additional-toolbar-item.interface.cjs.js.map +0 -1
- package/lib/config/types/content-change.interface.cjs.js +0 -2
- package/lib/config/types/content-change.interface.cjs.js.map +0 -1
- package/lib/config/types/content-save.interface.cjs.js +0 -2
- package/lib/config/types/content-save.interface.cjs.js.map +0 -1
- package/lib/config/types/counter-option.interface.cjs.js +0 -2
- package/lib/config/types/counter-option.interface.cjs.js.map +0 -1
- package/lib/config/types/editor-toolbar.interface.cjs.js +0 -2
- package/lib/config/types/editor-toolbar.interface.cjs.js.map +0 -1
- package/lib/config/types/file-operation.interface.cjs.js +0 -2
- package/lib/config/types/file-operation.interface.cjs.js.map +0 -1
- package/lib/config/types/focus-change.interface.cjs.js +0 -2
- package/lib/config/types/focus-change.interface.cjs.js.map +0 -1
- package/lib/config/types/fullscreen-module.interface.cjs.js +0 -2
- package/lib/config/types/fullscreen-module.interface.cjs.js.map +0 -1
- package/lib/config/types/help-panel-item.interface.cjs.js +0 -2
- package/lib/config/types/help-panel-item.interface.cjs.js.map +0 -1
- package/lib/config/types/help-panel-option.interface.cjs.js +0 -2
- package/lib/config/types/help-panel-option.interface.cjs.js.map +0 -1
- package/lib/config/types/image-module.interface.cjs.js +0 -2
- package/lib/config/types/image-module.interface.cjs.js.map +0 -1
- package/lib/config/types/image-upload.interface.cjs.js +0 -2
- package/lib/config/types/image-upload.interface.cjs.js.map +0 -1
- package/lib/config/types/load-on-demand-module.interface.cjs.js +0 -2
- package/lib/config/types/load-on-demand-module.interface.cjs.js.map +0 -1
- package/lib/config/types/mention-module.interface.cjs.js +0 -2
- package/lib/config/types/mention-module.interface.cjs.js.map +0 -1
- package/lib/config/types/paste-change.interface.cjs.js +0 -2
- package/lib/config/types/paste-change.interface.cjs.js.map +0 -1
- package/lib/config/types/quick-menu-module.interface.cjs.js +0 -2
- package/lib/config/types/quick-menu-module.interface.cjs.js.map +0 -1
- package/lib/config/types/range.interface.cjs.js +0 -2
- package/lib/config/types/range.interface.cjs.js.map +0 -1
- package/lib/config/types/registry-options.interface.cjs.js +0 -2
- package/lib/config/types/registry-options.interface.cjs.js.map +0 -1
- package/lib/config/types/selection-change.interface.cjs.js +0 -2
- package/lib/config/types/selection-change.interface.cjs.js.map +0 -1
- package/lib/config/types/toolbar-item.interface.cjs.js +0 -2
- package/lib/config/types/toolbar-item.interface.cjs.js.map +0 -1
- package/lib/config/types/validate-error.interface.cjs.js +0 -2
- package/lib/config/types/validate-error.interface.cjs.js.map +0 -1
- package/lib/modules/custom-image/BlotFormatter.cjs.js.map +0 -1
- package/lib/modules/custom-image/Options.cjs.js +0 -95
- package/lib/modules/custom-image/Options.cjs.js.map +0 -1
- package/lib/modules/custom-image/actions/Action.cjs.js +0 -15
- package/lib/modules/custom-image/actions/Action.cjs.js.map +0 -1
- package/lib/modules/custom-image/actions/CustomResizeAction.cjs.js.map +0 -1
- package/lib/modules/custom-image/actions/DeleteAction.cjs.js.map +0 -1
- package/lib/modules/custom-image/image-bar.cjs.js +0 -127
- package/lib/modules/custom-image/image-bar.cjs.js.map +0 -1
- package/lib/modules/custom-image/specs/BlotSpec.cjs.js +0 -27
- package/lib/modules/custom-image/specs/BlotSpec.cjs.js.map +0 -1
- package/lib/modules/custom-image/specs/CustomImageSpec.cjs.js.map +0 -1
- package/lib/modules/custom-image/specs/ImageSpec.cjs.js +0 -29
- package/lib/modules/custom-image/specs/ImageSpec.cjs.js.map +0 -1
- package/lib/modules/emoji/emoji-list/index.cjs.js +0 -5
- package/lib/modules/emoji/emoji-list/people.cjs.js +0 -114
- package/lib/modules/emoji/emoji-list/people.cjs.js.map +0 -1
- package/lib/modules/emoji/emoji-list.cjs.js +0 -9
- package/lib/modules/emoji/emoji-list.cjs.js.map +0 -1
- package/lib/modules/emoji/emoji-map.cjs.js +0 -9
- package/lib/modules/emoji/emoji-map.cjs.js.map +0 -1
- package/lib/modules/emoji/emoji-sprite.cjs.js +0 -5
- package/lib/modules/emoji/emoji-sprite.cjs.js.map +0 -1
- package/lib/modules/emoji/formats/emoji-blot.cjs.js +0 -41
- package/lib/modules/emoji/formats/emoji-blot.cjs.js.map +0 -1
- package/lib/modules/emoji/index.cjs.js +0 -8
- package/lib/modules/emoji/index.cjs.js.map +0 -1
- package/lib/modules/emoji/modules/emoji.cjs.js +0 -248
- package/lib/modules/emoji/modules/emoji.cjs.js.map +0 -1
- package/lib/modules/emoji/modules/toolbar-emoji.cjs.js +0 -153
- package/lib/modules/emoji/modules/toolbar-emoji.cjs.js.map +0 -1
- package/lib/modules/emoji/utils.cjs.js +0 -19
- package/lib/modules/emoji/utils.cjs.js.map +0 -1
- package/lib/modules/mention/Mention.cjs.js.map +0 -1
- package/lib/modules/mention/MentionLink.cjs.js.map +0 -1
- package/types/config/types/additional-toolbar-item.interface.d.ts +0 -8
- package/types/config/types/content-change.interface.d.ts +0 -13
- package/types/config/types/content-save.interface.d.ts +0 -6
- package/types/config/types/counter-option.interface.d.ts +0 -9
- package/types/config/types/editor-toolbar.interface.d.ts +0 -6
- package/types/config/types/file-operation.interface.d.ts +0 -12
- package/types/config/types/focus-change.interface.d.ts +0 -4
- package/types/config/types/fullscreen-module.interface.d.ts +0 -4
- package/types/config/types/help-panel-item.interface.d.ts +0 -5
- package/types/config/types/help-panel-option.interface.d.ts +0 -7
- package/types/config/types/image-module.interface.d.ts +0 -3
- package/types/config/types/image-upload.interface.d.ts +0 -7
- package/types/config/types/load-on-demand-module.interface.d.ts +0 -5
- package/types/config/types/mention-module.interface.d.ts +0 -8
- package/types/config/types/paste-change.interface.d.ts +0 -6
- package/types/config/types/quick-menu-module.interface.d.ts +0 -3
- package/types/config/types/range.interface.d.ts +0 -4
- package/types/config/types/registry-options.interface.d.ts +0 -5
- package/types/config/types/selection-change.interface.d.ts +0 -8
- package/types/config/types/toolbar-item.interface.d.ts +0 -13
- package/types/config/types/validate-error.interface.d.ts +0 -13
- package/types/modules/custom-image/BlotFormatter.d.ts +0 -29
- package/types/modules/custom-image/Options.d.ts +0 -36
- package/types/modules/custom-image/actions/Action.d.ts +0 -7
- package/types/modules/custom-image/actions/DeleteAction.d.ts +0 -7
- package/types/modules/custom-image/image-bar.d.ts +0 -15
- package/types/modules/custom-image/specs/BlotSpec.d.ts +0 -13
- package/types/modules/custom-image/specs/ImageSpec.d.ts +0 -10
- package/types/modules/emoji/emoji-list/index.d.ts +0 -1
- package/types/modules/emoji/emoji-list/people.d.ts +0 -1
- package/types/modules/emoji/emoji-list.d.ts +0 -2
- package/types/modules/emoji/emoji-map.d.ts +0 -2
- package/types/modules/emoji/emoji-sprite.d.ts +0 -1
- package/types/modules/emoji/formats/emoji-blot.d.ts +0 -13
- package/types/modules/emoji/index.d.ts +0 -10
- package/types/modules/emoji/modules/emoji.d.ts +0 -38
- package/types/modules/emoji/modules/toolbar-emoji.d.ts +0 -8
- package/types/modules/emoji/utils.d.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-cn.es.js","sources":["../../../../src/config/i18n/zh-cn.ts"],"sourcesContent":["export const ZH_CN = {\
|
|
1
|
+
{"version":3,"file":"zh-cn.es.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 '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}\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;"}
|
package/es/config/index.es.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isNullOrUndefined } from "./editor.utils.es.js";
|
|
2
|
-
import { getEventComposedPath, hadProtocol, hexToRgbA, imageFileToUrl, imageUrlToFile, isInside,
|
|
2
|
+
import { getEventComposedPath, hadProtocol, hexToRgbA, imageFileToUrl, imageUrlToFile, isInside, omit, replaceDeltaImage, sanitize, splitWithBreak } from "./editor.utils.es.js";
|
|
3
3
|
import { AUDIO_VIDEO_UPLOADER_MIME_TYPES, BIG_DELTA_LIMIT, CHANGE_LANGUAGE_EVENT, COMPRESSED_UPLOADER_MIME_TYPES, DOC_UPLOADER_MIME_TYPES, FILE_UPLOADER_MIME_TYPES, IMAGE_UPLOADER_MIME_TYPES, OTHER_FILE_UPLOADER_MIME_TYPES, PPT_UPLOADER_MIME_TYPES, XSL_UPLOADER_MIME_TYPES, defaultLanguage } from "./editor.config.es.js";
|
|
4
|
+
import "./types/index.es.js";
|
|
4
5
|
function inputFile(type, accept) {
|
|
5
6
|
if (accept.length <= 0) return;
|
|
6
7
|
let fileInput = this.container.querySelector(`input.ql-${type}[type=file]`);
|
|
@@ -55,7 +56,6 @@ export {
|
|
|
55
56
|
inputFile,
|
|
56
57
|
isInside,
|
|
57
58
|
isNullOrUndefined,
|
|
58
|
-
isPureIE,
|
|
59
59
|
namespace,
|
|
60
60
|
omit,
|
|
61
61
|
replaceDeltaImage,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../src/config/index.ts"],"sourcesContent":["import { isNullOrUndefined } from './editor.utils'\
|
|
1
|
+
{"version":3,"file":"index.es.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":[],"mappings":";;;;AAOgB,SAAA,UAAU,MAAkC,QAAkB;AACxE,MAAA,OAAO,UAAU,EAAG;AACxB,MAAI,YAAY,KAAK,UAAU,cAAc,YAAY,IAAI,aAAa;AACtE,MAAA,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,24 +1,4 @@
|
|
|
1
|
-
import "./additional-toolbar-item.interface.es.js";
|
|
2
|
-
import "./content-change.interface.es.js";
|
|
3
|
-
import "./content-save.interface.es.js";
|
|
4
|
-
import "./counter-option.interface.es.js";
|
|
5
1
|
import "./editor-config.interface.es.js";
|
|
6
2
|
import "./editor-modules.interface.es.js";
|
|
7
|
-
import "./editor-toolbar.interface.es.js";
|
|
8
|
-
import "./file-operation.interface.es.js";
|
|
9
|
-
import "./focus-change.interface.es.js";
|
|
10
|
-
import "./fullscreen-module.interface.es.js";
|
|
11
|
-
import "./help-panel-option.interface.es.js";
|
|
12
|
-
import "./image-module.interface.es.js";
|
|
13
|
-
import "./image-upload.interface.es.js";
|
|
14
|
-
import "./load-on-demand-module.interface.es.js";
|
|
15
|
-
import "./mention-module.interface.es.js";
|
|
16
|
-
import "./paste-change.interface.es.js";
|
|
17
|
-
import "./quick-menu-module.interface.es.js";
|
|
18
|
-
import "./range.interface.es.js";
|
|
19
|
-
import "./registry-options.interface.es.js";
|
|
20
|
-
import "./selection-change.interface.es.js";
|
|
21
|
-
import "./toolbar-item.interface.es.js";
|
|
22
3
|
import "./type.es.js";
|
|
23
|
-
import "./validate-error.interface.es.js";
|
|
24
4
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1
4
|
import Quill from "quill";
|
|
2
5
|
import "../config/index.es.js";
|
|
3
6
|
import { I18N } from "../modules/i18n.es.js";
|
|
@@ -5,7 +8,7 @@ import { defaultLanguage } from "../config/editor.config.es.js";
|
|
|
5
8
|
class FluentEditor extends Quill {
|
|
6
9
|
constructor(container, options = {}) {
|
|
7
10
|
super(container, options);
|
|
8
|
-
this
|
|
11
|
+
__publicField(this, "isFullscreen", false);
|
|
9
12
|
}
|
|
10
13
|
static register(...args) {
|
|
11
14
|
super.register(...args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluent-editor.es.js","sources":["../../../src/core/fluent-editor.ts"],"sourcesContent":["import type { ExpandedQuillOptions } from 'quill'\
|
|
1
|
+
{"version":3,"file":"fluent-editor.es.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":[],"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,OAAO;AAAA,EAAA;AAAA,EAOhD,YAAY,MAAc;AACxB,WAAO,KAAK,WAAW,MAAM,KAAK,IAAI;AAAA,EAAA;AAE1C;"}
|
package/es/fluent-editor.es.js
CHANGED
|
@@ -2,31 +2,39 @@ import "./attributors/index.es.js";
|
|
|
2
2
|
import { EN_US } from "./config/i18n/en-us.es.js";
|
|
3
3
|
import { ZH_CN } from "./config/i18n/zh-cn.es.js";
|
|
4
4
|
import FluentEditor from "./core/fluent-editor.es.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import Video from "./formats/video.es.js";
|
|
5
|
+
import "./formats/index.es.js";
|
|
6
|
+
import { AI } from "./modules/ai/index.es.js";
|
|
8
7
|
import Counter from "./modules/counter.es.js";
|
|
9
|
-
import CustomClipboard from "./modules/custom-clipboard.es.js";
|
|
10
|
-
import
|
|
8
|
+
import { CustomClipboard } from "./modules/custom-clipboard.es.js";
|
|
9
|
+
import "./modules/custom-image/index.es.js";
|
|
11
10
|
import { FileUploader } from "./modules/custom-uploader.es.js";
|
|
12
|
-
import DividerBlot from "./modules/divider.es.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
11
|
+
import { DividerBlot } from "./modules/divider.es.js";
|
|
12
|
+
import { EmojiModule } from "./modules/emoji.es.js";
|
|
13
|
+
import "./modules/file/index.es.js";
|
|
15
14
|
import { I18N } from "./modules/i18n.es.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import Mention from "./modules/mention/Mention.es.js";
|
|
15
|
+
import "./modules/link/index.es.js";
|
|
16
|
+
import "./modules/mathlive/index.es.js";
|
|
17
|
+
import "./modules/mention/index.es.js";
|
|
20
18
|
import { ShortCutKey } from "./modules/shortcut-key/index.es.js";
|
|
21
19
|
import CustomSyntax from "./modules/syntax.es.js";
|
|
22
|
-
import
|
|
20
|
+
import "./modules/toolbar/index.es.js";
|
|
23
21
|
import { Picker, ColorPicker } from "./modules/toolbar/better-picker.es.js";
|
|
24
22
|
import SnowTheme from "./themes/snow.es.js";
|
|
25
23
|
import Icons from "./ui/icons.es.js";
|
|
26
24
|
import { FontStyle } from "./attributors/font-style.es.js";
|
|
27
25
|
import { SizeStyle } from "./attributors/font-size.es.js";
|
|
28
26
|
import { LineHeightStyle } from "./attributors/line-height.es.js";
|
|
27
|
+
import { EmojiBlot } from "./formats/emoji.es.js";
|
|
28
|
+
import { SoftBreak } from "./formats/soft-break.es.js";
|
|
29
|
+
import { StrikeBlot } from "./formats/strike.es.js";
|
|
29
30
|
import { TextIndentStyle } from "./attributors/text-indent.es.js";
|
|
31
|
+
import { Video } from "./formats/video.es.js";
|
|
32
|
+
import { LinkBlot } from "./modules/link/formats/link.es.js";
|
|
33
|
+
import { FileModule } from "./modules/file/modules/file-module.es.js";
|
|
34
|
+
import { BlotFormatter } from "./modules/custom-image/blot-formatter.es.js";
|
|
35
|
+
import { MathliveModule } from "./modules/mathlive/module.es.js";
|
|
36
|
+
import { Mention } from "./modules/mention/mention.es.js";
|
|
37
|
+
import { BetterToolbar } from "./modules/toolbar/better-toolbar.es.js";
|
|
30
38
|
I18N.register(
|
|
31
39
|
{
|
|
32
40
|
"en-US": EN_US,
|
|
@@ -42,22 +50,21 @@ FluentEditor.register(
|
|
|
42
50
|
"formats/font": FontStyle,
|
|
43
51
|
"formats/line-height": LineHeightStyle,
|
|
44
52
|
"formats/size": SizeStyle,
|
|
45
|
-
"formats/emoji":
|
|
46
|
-
[`formats/${MathliveBlot.blotName}`]: MathliveBlot,
|
|
53
|
+
"formats/emoji": EmojiBlot,
|
|
47
54
|
"formats/softBreak": SoftBreak,
|
|
48
55
|
"formats/strike": StrikeBlot,
|
|
49
56
|
"formats/text-indent": TextIndentStyle,
|
|
50
57
|
"formats/video": Video,
|
|
58
|
+
"formats/divider": DividerBlot,
|
|
59
|
+
"formats/link": LinkBlot,
|
|
51
60
|
"modules/clipboard": CustomClipboard,
|
|
52
61
|
"modules/counter": Counter,
|
|
53
|
-
"modules/
|
|
54
|
-
"modules/emoji-shortname": Emoji.ShortNameEmoji,
|
|
55
|
-
"modules/emoji-toolbar": Emoji.ToolbarEmoji,
|
|
62
|
+
"modules/emoji": EmojiModule,
|
|
56
63
|
"modules/file": FileModule,
|
|
57
64
|
"modules/i18n": I18N,
|
|
58
65
|
"modules/image": BlotFormatter,
|
|
59
|
-
"modules/link": Link,
|
|
60
66
|
"modules/mathlive": MathliveModule,
|
|
67
|
+
"modules/ai": AI,
|
|
61
68
|
"modules/mention": Mention,
|
|
62
69
|
"modules/syntax": CustomSyntax,
|
|
63
70
|
"modules/toolbar": BetterToolbar,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluent-editor.es.js","sources":["../../src/fluent-editor.ts"],"sourcesContent":["import { FontStyle, LineHeightStyle, SizeStyle, TextIndentStyle } from './attributors'\
|
|
1
|
+
{"version":3,"file":"fluent-editor.es.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 I18N from './modules/i18n'\nimport { LinkBlot } from './modules/link' // 超链接\nimport { MathliveModule } from './modules/mathlive' // latex公式\nimport { Mention } from './modules/mention' // @提醒\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\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":["Syntax"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,KAAK;AAAA,EACH;AAAA,IACE,SAAS;AAAA,IACT,SAAS;AAAA,EACX;AAAA,EACA;AACF;AACA,aAAa;AAAA,EACX;AAAA,IACE,0BAA0B;AAAA,IAC1B,0BAA0B;AAAA,IAC1B,iCAAiC;AAAA,IAEjC,gBAAgB;AAAA,IAChB,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,qBAAqB;AAAA,IACrB,kBAAkB;AAAA,IAClB,uBAAuB;AAAA,IACvB,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,gBAAgB;AAAA,IAEhB,qBAAqB;AAAA,IACrB,mBAAmB;AAAA,IACnB,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,oBAAoB;AAAA,IACpB,cAAc;AAAA,IACd,mBAAmB;AAAA,IACnB,kBAAkBA;AAAAA,IAClB,mBAAmB;AAAA,IACnB,oBAAoB;AAAA,IACpB,wBAAwB;AAAA,IAExB,eAAe;AAAA,IAEf,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,mBAAmB;AAAA,EACrB;AAAA,EACA;AAAA;AACF;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
+
import Quill from "quill";
|
|
5
|
+
const Inline = Quill.import("blots/inline");
|
|
6
|
+
class EmojiBlot extends Inline {
|
|
7
|
+
}
|
|
8
|
+
__publicField(EmojiBlot, "blotName", "emoji");
|
|
9
|
+
__publicField(EmojiBlot, "tagName", "span");
|
|
10
|
+
__publicField(EmojiBlot, "className", "ql-emoji-format");
|
|
11
|
+
export {
|
|
12
|
+
EmojiBlot
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=emoji.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emoji.es.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;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EmojiBlot } from "./emoji.es.js";
|
|
2
|
+
import { SoftBreak } from "./soft-break.es.js";
|
|
3
|
+
import { StrikeBlot } from "./strike.es.js";
|
|
4
|
+
import { Video } from "./video.es.js";
|
|
5
|
+
export {
|
|
6
|
+
EmojiBlot,
|
|
7
|
+
SoftBreak,
|
|
8
|
+
StrikeBlot,
|
|
9
|
+
Video
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1
4
|
import Quill from "quill";
|
|
2
|
-
const Embed = Quill.
|
|
5
|
+
const Embed = Quill.import("blots/embed");
|
|
3
6
|
class SoftBreak extends Embed {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
__publicField(this, "remove");
|
|
10
|
+
}
|
|
4
11
|
static create() {
|
|
5
12
|
const node = super.create();
|
|
6
13
|
return node;
|
|
@@ -14,10 +21,10 @@ class SoftBreak extends Embed {
|
|
|
14
21
|
return 1;
|
|
15
22
|
}
|
|
16
23
|
}
|
|
17
|
-
SoftBreak
|
|
18
|
-
SoftBreak
|
|
19
|
-
SoftBreak
|
|
24
|
+
__publicField(SoftBreak, "blotName", "soft-break");
|
|
25
|
+
__publicField(SoftBreak, "tagName", "BR");
|
|
26
|
+
__publicField(SoftBreak, "className", "ql-soft-break");
|
|
20
27
|
export {
|
|
21
|
-
SoftBreak
|
|
28
|
+
SoftBreak
|
|
22
29
|
};
|
|
23
30
|
//# sourceMappingURL=soft-break.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"soft-break.es.js","sources":["../../../src/formats/soft-break.ts"],"sourcesContent":["import Quill from 'quill'\
|
|
1
|
+
{"version":3,"file":"soft-break.es.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;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;"}
|
package/es/formats/strike.es.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1
4
|
import Quill from "quill";
|
|
2
|
-
const Inline = Quill.
|
|
5
|
+
const Inline = Quill.import("blots/inline");
|
|
3
6
|
class StrikeBlot extends Inline {
|
|
4
7
|
// 此处删除了formats方法,当前tag非span,则并不需要进行特殊处理去重写formats方法
|
|
5
8
|
}
|
|
6
|
-
StrikeBlot
|
|
7
|
-
StrikeBlot
|
|
8
|
-
StrikeBlot
|
|
9
|
+
__publicField(StrikeBlot, "blotName", "strike");
|
|
10
|
+
__publicField(StrikeBlot, "tagName", "u");
|
|
11
|
+
__publicField(StrikeBlot, "className", "ql-custom-strike");
|
|
9
12
|
export {
|
|
10
|
-
StrikeBlot
|
|
13
|
+
StrikeBlot
|
|
11
14
|
};
|
|
12
15
|
//# sourceMappingURL=strike.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strike.es.js","sources":["../../../src/formats/strike.ts"],"sourcesContent":["import Quill from 'quill'\
|
|
1
|
+
{"version":3,"file":"strike.es.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;"}
|
package/es/formats/video.es.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1
4
|
import Quill from "quill";
|
|
2
5
|
import { sanitize } from "../config/editor.utils.es.js";
|
|
3
|
-
const BlockEmbed = Quill.
|
|
6
|
+
const BlockEmbed = Quill.import("blots/block/embed");
|
|
4
7
|
const VIDEO_ATTRIBUTES = ["id", "title", "src"];
|
|
5
|
-
class
|
|
8
|
+
const _Video = class _Video extends BlockEmbed {
|
|
6
9
|
static sanitize(url) {
|
|
7
10
|
return sanitize(url, this.PROTOCOL_WHITELIST) ? url : this.SANITIZED_URL;
|
|
8
11
|
}
|
|
@@ -14,7 +17,7 @@ class Video extends BlockEmbed {
|
|
|
14
17
|
if (value[key]) {
|
|
15
18
|
switch (key) {
|
|
16
19
|
case "src": {
|
|
17
|
-
const src =
|
|
20
|
+
const src = _Video.sanitize(value[key]);
|
|
18
21
|
node.setAttribute(key, src);
|
|
19
22
|
break;
|
|
20
23
|
}
|
|
@@ -40,13 +43,14 @@ class Video extends BlockEmbed {
|
|
|
40
43
|
});
|
|
41
44
|
return formats;
|
|
42
45
|
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
};
|
|
47
|
+
__publicField(_Video, "blotName", "video");
|
|
48
|
+
__publicField(_Video, "tagName", "VIDEO");
|
|
49
|
+
__publicField(_Video, "SANITIZED_URL", "about:blank");
|
|
50
|
+
__publicField(_Video, "PROTOCOL_WHITELIST", ["http", "https", "blob"]);
|
|
51
|
+
__publicField(_Video, "className", "ql-video");
|
|
52
|
+
let Video = _Video;
|
|
49
53
|
export {
|
|
50
|
-
Video
|
|
54
|
+
Video
|
|
51
55
|
};
|
|
52
56
|
//# sourceMappingURL=video.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.es.js","sources":["../../../src/formats/video.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"video.es.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":[],"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,WAAO,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;"}
|
package/es/index.es.js
CHANGED
|
@@ -1,43 +1,104 @@
|
|
|
1
1
|
import "./fluent-editor.es.js";
|
|
2
|
-
import
|
|
2
|
+
import "./attributors/index.es.js";
|
|
3
|
+
import "./config/types/index.es.js";
|
|
4
|
+
import "./formats/index.es.js";
|
|
5
|
+
import "./modules/index.es.js";
|
|
6
|
+
import { generateTableUpShortKeyMenu } from "quill-shortcut-key";
|
|
7
|
+
import { AttributeMap, Delta, Op, OpIterator, Parchment, Range } from "quill/core";
|
|
8
|
+
import FluentEditor from "./core/fluent-editor.es.js";
|
|
9
|
+
import { SizeStyle } from "./attributors/font-size.es.js";
|
|
10
|
+
import { FontStyle } from "./attributors/font-style.es.js";
|
|
11
|
+
import { LineHeightStyle } from "./attributors/line-height.es.js";
|
|
12
|
+
import { TextIndentStyle } from "./attributors/text-indent.es.js";
|
|
13
|
+
import { EmojiBlot } from "./formats/emoji.es.js";
|
|
14
|
+
import { SoftBreak } from "./formats/soft-break.es.js";
|
|
15
|
+
import { StrikeBlot } from "./formats/strike.es.js";
|
|
16
|
+
import { Video } from "./formats/video.es.js";
|
|
17
|
+
import { CollaborationModule } from "./modules/collaborative-editing/module.es.js";
|
|
18
|
+
import { CustomClipboard } from "./modules/custom-clipboard.es.js";
|
|
19
|
+
import { Action } from "./modules/custom-image/actions/action.es.js";
|
|
20
|
+
import { CustomResizeAction } from "./modules/custom-image/actions/custom-resize-action.es.js";
|
|
21
|
+
import { DeleteAction } from "./modules/custom-image/actions/delete-action.es.js";
|
|
22
|
+
import { ALIGN_ATTR, ImageToolbarButtons, alignmentHandler, setAlignStyle } from "./modules/custom-image/actions/image-toolbar-buttons.es.js";
|
|
23
|
+
import { ImageToolbar } from "./modules/custom-image/actions/toolbar.es.js";
|
|
24
|
+
import { ImageToolbarAction } from "./modules/custom-image/actions/toolbar-action.es.js";
|
|
25
|
+
import { BlotFormatter } from "./modules/custom-image/blot-formatter.es.js";
|
|
26
|
+
import { CustomImage } from "./modules/custom-image/image.es.js";
|
|
27
|
+
import { BlotSpec } from "./modules/custom-image/specs/blot-spec.es.js";
|
|
28
|
+
import { CustomImageSpec } from "./modules/custom-image/specs/custom-image-spec.es.js";
|
|
29
|
+
import { ImageSpec } from "./modules/custom-image/specs/image-spec.es.js";
|
|
30
|
+
import { FileUploader } from "./modules/custom-uploader.es.js";
|
|
31
|
+
import { DividerBlot } from "./modules/divider.es.js";
|
|
32
|
+
import { EmojiModule } from "./modules/emoji.es.js";
|
|
33
|
+
import { File } from "./modules/file/formats/file.es.js";
|
|
34
|
+
import { FileBar } from "./modules/file/modules/file-bar.es.js";
|
|
35
|
+
import { FileModule } from "./modules/file/modules/file-module.es.js";
|
|
3
36
|
import { I18N } from "./modules/i18n.es.js";
|
|
37
|
+
import { LinkBlot } from "./modules/link/formats/link.es.js";
|
|
38
|
+
import { LinkTooltip } from "./modules/link/modules/tooltip.es.js";
|
|
39
|
+
import { MathliveBlot } from "./modules/mathlive/formats.es.js";
|
|
40
|
+
import { MathliveModule } from "./modules/mathlive/module.es.js";
|
|
41
|
+
import { MathliveTooltip } from "./modules/mathlive/tooltip.es.js";
|
|
42
|
+
import { Mention } from "./modules/mention/mention.es.js";
|
|
43
|
+
import { MentionLink } from "./modules/mention/mention-link.es.js";
|
|
44
|
+
import { ShortCutKey, shortKey } from "./modules/shortcut-key/index.es.js";
|
|
4
45
|
import { generateTableUp } from "./modules/table-up/index.es.js";
|
|
46
|
+
import { ColorPicker, Picker } from "./modules/toolbar/better-picker.es.js";
|
|
47
|
+
import { BetterToolbar } from "./modules/toolbar/better-toolbar.es.js";
|
|
5
48
|
import { generateToolbarTip } from "./modules/toolbar/toolbar-tip.es.js";
|
|
6
|
-
import { generateTableUpShortKeyMenu } from "quill-shortcut-key";
|
|
7
|
-
import FluentEditor from "./core/fluent-editor.es.js";
|
|
8
|
-
import { AUDIO_VIDEO_UPLOADER_MIME_TYPES, BIG_DELTA_LIMIT, CHANGE_LANGUAGE_EVENT, COMPRESSED_UPLOADER_MIME_TYPES, DOC_UPLOADER_MIME_TYPES, FILE_UPLOADER_MIME_TYPES, IMAGE_UPLOADER_MIME_TYPES, OTHER_FILE_UPLOADER_MIME_TYPES, PPT_UPLOADER_MIME_TYPES, XSL_UPLOADER_MIME_TYPES, defaultLanguage } from "./config/editor.config.es.js";
|
|
9
|
-
import { getEventComposedPath, hadProtocol, hexToRgbA, imageFileToUrl, imageUrlToFile, isInside, isNullOrUndefined, isPureIE, omit, replaceDeltaImage, sanitize, splitWithBreak } from "./config/editor.utils.es.js";
|
|
10
49
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
50
|
+
ALIGN_ATTR,
|
|
51
|
+
Action,
|
|
52
|
+
AttributeMap,
|
|
53
|
+
BetterToolbar,
|
|
54
|
+
BlotFormatter,
|
|
55
|
+
BlotSpec,
|
|
56
|
+
CollaborationModule,
|
|
57
|
+
ColorPicker,
|
|
58
|
+
CustomClipboard,
|
|
59
|
+
CustomImage,
|
|
60
|
+
CustomImageSpec,
|
|
61
|
+
CustomResizeAction,
|
|
62
|
+
DeleteAction,
|
|
63
|
+
Delta,
|
|
64
|
+
DividerBlot,
|
|
65
|
+
EmojiBlot,
|
|
66
|
+
EmojiModule,
|
|
67
|
+
File,
|
|
68
|
+
FileBar,
|
|
69
|
+
FileModule,
|
|
70
|
+
FileUploader,
|
|
71
|
+
FontStyle,
|
|
17
72
|
I18N,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
73
|
+
ImageSpec,
|
|
74
|
+
ImageToolbar,
|
|
75
|
+
ImageToolbarAction,
|
|
76
|
+
ImageToolbarButtons,
|
|
77
|
+
LineHeightStyle,
|
|
78
|
+
LinkBlot,
|
|
79
|
+
LinkTooltip,
|
|
80
|
+
MathliveBlot,
|
|
81
|
+
MathliveModule,
|
|
82
|
+
MathliveTooltip,
|
|
83
|
+
Mention,
|
|
84
|
+
MentionLink,
|
|
85
|
+
Op,
|
|
86
|
+
OpIterator,
|
|
87
|
+
Parchment,
|
|
88
|
+
Picker,
|
|
89
|
+
Range,
|
|
90
|
+
ShortCutKey,
|
|
91
|
+
SizeStyle,
|
|
92
|
+
SoftBreak,
|
|
93
|
+
StrikeBlot,
|
|
94
|
+
TextIndentStyle,
|
|
95
|
+
Video,
|
|
96
|
+
alignmentHandler,
|
|
22
97
|
FluentEditor as default,
|
|
23
|
-
defaultLanguage,
|
|
24
98
|
generateTableUp,
|
|
25
99
|
generateTableUpShortKeyMenu,
|
|
26
100
|
generateToolbarTip,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
hadProtocol,
|
|
30
|
-
hexToRgbA,
|
|
31
|
-
imageFileToUrl,
|
|
32
|
-
imageUrlToFile,
|
|
33
|
-
inputFile,
|
|
34
|
-
isInside,
|
|
35
|
-
isNullOrUndefined,
|
|
36
|
-
isPureIE,
|
|
37
|
-
namespace,
|
|
38
|
-
omit,
|
|
39
|
-
replaceDeltaImage,
|
|
40
|
-
sanitize,
|
|
41
|
-
splitWithBreak
|
|
101
|
+
setAlignStyle,
|
|
102
|
+
shortKey
|
|
42
103
|
};
|
|
43
104
|
//# sourceMappingURL=index.es.js.map
|
package/es/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { RICH_CONTENT_ICON, STREAMLINE_CONTENT_ICON, SYMBOL_ICON, TRANSLATE_ICON } from "./icons.es.js";
|
|
2
|
+
const INPUT_PLACEHOLDER = '请输入问题或"/"获取提示词';
|
|
3
|
+
const SELECT_PLACEHOLDER = "向我提问/选择操作";
|
|
4
|
+
const STOP_ANSWER = "停止回答";
|
|
5
|
+
const REPLACE_SELECT = "替换选中内容";
|
|
6
|
+
const INSERT_TEXT = "插入内容";
|
|
7
|
+
const INSERT_SUB_CONTENT_TEXT = "插入内容下方";
|
|
8
|
+
const REGENERATE = "重新生成";
|
|
9
|
+
const CLOSE = "关闭";
|
|
10
|
+
const THINK_TEXT = "正在为您分析并总结答案";
|
|
11
|
+
const RESULT_HEADER_TEXT = "根据您的诉求,已为您解答,具体如下:";
|
|
12
|
+
const MENU_TITLE_DATA = {
|
|
13
|
+
editor: [
|
|
14
|
+
{ id: "1-1", text: "丰富内容", icon: RICH_CONTENT_ICON },
|
|
15
|
+
{ id: "1-2", text: "精简内容", icon: STREAMLINE_CONTENT_ICON },
|
|
16
|
+
{ id: "1-3", text: "修改标点符号", icon: SYMBOL_ICON },
|
|
17
|
+
{ id: "1-4", text: "翻译", icon: TRANSLATE_ICON }
|
|
18
|
+
],
|
|
19
|
+
tone: [
|
|
20
|
+
{ id: "2-1", text: "更专业的" },
|
|
21
|
+
{ id: "2-2", text: "更直接的" },
|
|
22
|
+
{ id: "2-3", text: "更友善的" },
|
|
23
|
+
{ id: "2-4", text: "更口语化的" }
|
|
24
|
+
],
|
|
25
|
+
adjust: [
|
|
26
|
+
{ id: "3-1", text: "提炼要点" },
|
|
27
|
+
{ id: "3-2", text: "归纳总结" },
|
|
28
|
+
{ id: "3-3", text: "转写成[代码块]" }
|
|
29
|
+
]
|
|
30
|
+
};
|
|
31
|
+
const MENU_ID_MAP = {
|
|
32
|
+
editor: "subMenuEditorEl",
|
|
33
|
+
tone: "subMenuToneEl",
|
|
34
|
+
adjust: "subMenuAdjustEl"
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
CLOSE,
|
|
38
|
+
INPUT_PLACEHOLDER,
|
|
39
|
+
INSERT_SUB_CONTENT_TEXT,
|
|
40
|
+
INSERT_TEXT,
|
|
41
|
+
MENU_ID_MAP,
|
|
42
|
+
MENU_TITLE_DATA,
|
|
43
|
+
REGENERATE,
|
|
44
|
+
REPLACE_SELECT,
|
|
45
|
+
RESULT_HEADER_TEXT,
|
|
46
|
+
SELECT_PLACEHOLDER,
|
|
47
|
+
STOP_ANSWER,
|
|
48
|
+
THINK_TEXT
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=constants.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.es.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":[],"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,MAAM,kBAAkB;AAAA,IACnD,EAAE,IAAI,OAAO,MAAM,QAAQ,MAAM,wBAAwB;AAAA,IACzD,EAAE,IAAI,OAAO,MAAM,UAAU,MAAM,YAAY;AAAA,IAC/C,EAAE,IAAI,OAAO,MAAM,MAAM,MAAM,eAAe;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;"}
|