@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
package/lib/fluent-editor.cjs.js
CHANGED
|
@@ -4,31 +4,39 @@ require("./attributors/index.cjs.js");
|
|
|
4
4
|
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
|
-
|
|
8
|
-
const
|
|
9
|
-
const video = require("./formats/video.cjs.js");
|
|
7
|
+
require("./formats/index.cjs.js");
|
|
8
|
+
const index = require("./modules/ai/index.cjs.js");
|
|
10
9
|
const counter = require("./modules/counter.cjs.js");
|
|
11
10
|
const customClipboard = require("./modules/custom-clipboard.cjs.js");
|
|
12
|
-
|
|
11
|
+
require("./modules/custom-image/index.cjs.js");
|
|
13
12
|
const customUploader = require("./modules/custom-uploader.cjs.js");
|
|
14
13
|
const divider = require("./modules/divider.cjs.js");
|
|
15
|
-
const
|
|
16
|
-
|
|
14
|
+
const emoji$1 = require("./modules/emoji.cjs.js");
|
|
15
|
+
require("./modules/file/index.cjs.js");
|
|
17
16
|
const i18n = require("./modules/i18n.cjs.js");
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
const index$5 = require("./modules/shortcut-key/index.cjs.js");
|
|
17
|
+
require("./modules/link/index.cjs.js");
|
|
18
|
+
require("./modules/mathlive/index.cjs.js");
|
|
19
|
+
require("./modules/mention/index.cjs.js");
|
|
20
|
+
const index$1 = require("./modules/shortcut-key/index.cjs.js");
|
|
23
21
|
const syntax = require("./modules/syntax.cjs.js");
|
|
24
|
-
|
|
22
|
+
require("./modules/toolbar/index.cjs.js");
|
|
25
23
|
const betterPicker = require("./modules/toolbar/better-picker.cjs.js");
|
|
26
24
|
const snow = require("./themes/snow.cjs.js");
|
|
27
25
|
const icons = require("./ui/icons.cjs.js");
|
|
28
26
|
const fontStyle = require("./attributors/font-style.cjs.js");
|
|
29
27
|
const fontSize = require("./attributors/font-size.cjs.js");
|
|
30
28
|
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");
|
|
31
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");
|
|
32
40
|
i18n.I18N.register(
|
|
33
41
|
{
|
|
34
42
|
"en-US": enUs.EN_US,
|
|
@@ -44,27 +52,26 @@ fluentEditor.default.register(
|
|
|
44
52
|
"formats/font": fontStyle.FontStyle,
|
|
45
53
|
"formats/line-height": lineHeight.LineHeightStyle,
|
|
46
54
|
"formats/size": fontSize.SizeStyle,
|
|
47
|
-
"formats/emoji":
|
|
48
|
-
|
|
49
|
-
"formats/
|
|
50
|
-
"formats/strike": strike.default,
|
|
55
|
+
"formats/emoji": emoji.EmojiBlot,
|
|
56
|
+
"formats/softBreak": softBreak.SoftBreak,
|
|
57
|
+
"formats/strike": strike.StrikeBlot,
|
|
51
58
|
"formats/text-indent": textIndent.TextIndentStyle,
|
|
52
|
-
"formats/video": video.
|
|
53
|
-
"
|
|
59
|
+
"formats/video": video.Video,
|
|
60
|
+
"formats/divider": divider.DividerBlot,
|
|
61
|
+
"formats/link": link.LinkBlot,
|
|
62
|
+
"modules/clipboard": customClipboard.CustomClipboard,
|
|
54
63
|
"modules/counter": counter.default,
|
|
55
|
-
"modules/
|
|
56
|
-
"modules/
|
|
57
|
-
"modules/emoji-toolbar": index.default.ToolbarEmoji,
|
|
58
|
-
"modules/file": index$1.default,
|
|
64
|
+
"modules/emoji": emoji$1.EmojiModule,
|
|
65
|
+
"modules/file": fileModule.FileModule,
|
|
59
66
|
"modules/i18n": i18n.I18N,
|
|
60
|
-
"modules/image": BlotFormatter
|
|
61
|
-
"modules/
|
|
62
|
-
"modules/
|
|
63
|
-
"modules/mention": Mention
|
|
67
|
+
"modules/image": blotFormatter.BlotFormatter,
|
|
68
|
+
"modules/mathlive": module$1.MathliveModule,
|
|
69
|
+
"modules/ai": index.AI,
|
|
70
|
+
"modules/mention": mention.Mention,
|
|
64
71
|
"modules/syntax": syntax.default,
|
|
65
|
-
"modules/toolbar":
|
|
72
|
+
"modules/toolbar": betterToolbar.BetterToolbar,
|
|
66
73
|
"modules/uploader": customUploader.FileUploader,
|
|
67
|
-
"modules/shortcut-key": index$
|
|
74
|
+
"modules/shortcut-key": index$1.ShortCutKey,
|
|
68
75
|
"themes/snow": snow.default,
|
|
69
76
|
"ui/icons": icons.default,
|
|
70
77
|
"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'\
|
|
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 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":["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;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
6
|
+
const Quill = require("quill");
|
|
7
|
+
const Inline = Quill.import("blots/inline");
|
|
8
|
+
class EmojiBlot extends Inline {
|
|
9
|
+
}
|
|
10
|
+
__publicField(EmojiBlot, "blotName", "emoji");
|
|
11
|
+
__publicField(EmojiBlot, "tagName", "span");
|
|
12
|
+
__publicField(EmojiBlot, "className", "ql-emoji-format");
|
|
13
|
+
exports.EmojiBlot = EmojiBlot;
|
|
14
|
+
//# sourceMappingURL=emoji.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const emoji = require("./emoji.cjs.js");
|
|
4
|
+
const softBreak = require("./soft-break.cjs.js");
|
|
5
|
+
const strike = require("./strike.cjs.js");
|
|
6
|
+
const video = require("./video.cjs.js");
|
|
7
|
+
exports.EmojiBlot = emoji.EmojiBlot;
|
|
8
|
+
exports.SoftBreak = softBreak.SoftBreak;
|
|
9
|
+
exports.StrikeBlot = strike.StrikeBlot;
|
|
10
|
+
exports.Video = video.Video;
|
|
11
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
6
|
const Quill = require("quill");
|
|
4
|
-
const Embed = Quill.
|
|
7
|
+
const Embed = Quill.import("blots/embed");
|
|
5
8
|
class SoftBreak extends Embed {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
__publicField(this, "remove");
|
|
12
|
+
}
|
|
6
13
|
static create() {
|
|
7
14
|
const node = super.create();
|
|
8
15
|
return node;
|
|
@@ -16,8 +23,8 @@ class SoftBreak extends Embed {
|
|
|
16
23
|
return 1;
|
|
17
24
|
}
|
|
18
25
|
}
|
|
19
|
-
SoftBreak
|
|
20
|
-
SoftBreak
|
|
21
|
-
SoftBreak
|
|
22
|
-
exports.
|
|
26
|
+
__publicField(SoftBreak, "blotName", "soft-break");
|
|
27
|
+
__publicField(SoftBreak, "tagName", "BR");
|
|
28
|
+
__publicField(SoftBreak, "className", "ql-soft-break");
|
|
29
|
+
exports.SoftBreak = SoftBreak;
|
|
23
30
|
//# sourceMappingURL=soft-break.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"soft-break.cjs.js","sources":["../../../src/formats/soft-break.ts"],"sourcesContent":["import Quill from 'quill'\
|
|
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;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,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
6
|
const Quill = require("quill");
|
|
4
|
-
const Inline = Quill.
|
|
7
|
+
const Inline = Quill.import("blots/inline");
|
|
5
8
|
class StrikeBlot extends Inline {
|
|
6
9
|
// 此处删除了formats方法,当前tag非span,则并不需要进行特殊处理去重写formats方法
|
|
7
10
|
}
|
|
8
|
-
StrikeBlot
|
|
9
|
-
StrikeBlot
|
|
10
|
-
StrikeBlot
|
|
11
|
-
exports.
|
|
11
|
+
__publicField(StrikeBlot, "blotName", "strike");
|
|
12
|
+
__publicField(StrikeBlot, "tagName", "u");
|
|
13
|
+
__publicField(StrikeBlot, "className", "ql-custom-strike");
|
|
14
|
+
exports.StrikeBlot = StrikeBlot;
|
|
12
15
|
//# sourceMappingURL=strike.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strike.cjs.js","sources":["../../../src/formats/strike.ts"],"sourcesContent":["import Quill from 'quill'\
|
|
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;;"}
|
package/lib/formats/video.cjs.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
6
|
const Quill = require("quill");
|
|
4
7
|
const editor_utils = require("../config/editor.utils.cjs.js");
|
|
5
|
-
const BlockEmbed = Quill.
|
|
8
|
+
const BlockEmbed = Quill.import("blots/block/embed");
|
|
6
9
|
const VIDEO_ATTRIBUTES = ["id", "title", "src"];
|
|
7
|
-
class
|
|
10
|
+
const _Video = class _Video extends BlockEmbed {
|
|
8
11
|
static sanitize(url) {
|
|
9
12
|
return editor_utils.sanitize(url, this.PROTOCOL_WHITELIST) ? url : this.SANITIZED_URL;
|
|
10
13
|
}
|
|
@@ -16,7 +19,7 @@ class Video extends BlockEmbed {
|
|
|
16
19
|
if (value[key]) {
|
|
17
20
|
switch (key) {
|
|
18
21
|
case "src": {
|
|
19
|
-
const src =
|
|
22
|
+
const src = _Video.sanitize(value[key]);
|
|
20
23
|
node.setAttribute(key, src);
|
|
21
24
|
break;
|
|
22
25
|
}
|
|
@@ -42,11 +45,12 @@ class Video extends BlockEmbed {
|
|
|
42
45
|
});
|
|
43
46
|
return formats;
|
|
44
47
|
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
};
|
|
49
|
+
__publicField(_Video, "blotName", "video");
|
|
50
|
+
__publicField(_Video, "tagName", "VIDEO");
|
|
51
|
+
__publicField(_Video, "SANITIZED_URL", "about:blank");
|
|
52
|
+
__publicField(_Video, "PROTOCOL_WHITELIST", ["http", "https", "blob"]);
|
|
53
|
+
__publicField(_Video, "className", "ql-video");
|
|
54
|
+
let Video = _Video;
|
|
55
|
+
exports.Video = Video;
|
|
52
56
|
//# sourceMappingURL=video.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.cjs.js","sources":["../../../src/formats/video.ts"],"sourcesContent":["import type {
|
|
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,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/lib/index.cjs.js
CHANGED
|
@@ -1,46 +1,125 @@
|
|
|
1
1
|
"use strict";
|
|
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");
|
|
6
|
+
require("./formats/index.cjs.js");
|
|
7
|
+
require("./modules/index.cjs.js");
|
|
8
|
+
const QuillShortcutKey = require("quill-shortcut-key");
|
|
9
|
+
const core = require("quill/core");
|
|
10
|
+
const fluentEditor = require("./core/fluent-editor.cjs.js");
|
|
11
|
+
const fontSize = require("./attributors/font-size.cjs.js");
|
|
12
|
+
const fontStyle = require("./attributors/font-style.cjs.js");
|
|
13
|
+
const lineHeight = require("./attributors/line-height.cjs.js");
|
|
14
|
+
const textIndent = require("./attributors/text-indent.cjs.js");
|
|
15
|
+
const emoji = require("./formats/emoji.cjs.js");
|
|
16
|
+
const softBreak = require("./formats/soft-break.cjs.js");
|
|
17
|
+
const strike = require("./formats/strike.cjs.js");
|
|
18
|
+
const video = require("./formats/video.cjs.js");
|
|
19
|
+
const module$1 = require("./modules/collaborative-editing/module.cjs.js");
|
|
20
|
+
const customClipboard = require("./modules/custom-clipboard.cjs.js");
|
|
21
|
+
const action = require("./modules/custom-image/actions/action.cjs.js");
|
|
22
|
+
const customResizeAction = require("./modules/custom-image/actions/custom-resize-action.cjs.js");
|
|
23
|
+
const deleteAction = require("./modules/custom-image/actions/delete-action.cjs.js");
|
|
24
|
+
const imageToolbarButtons = require("./modules/custom-image/actions/image-toolbar-buttons.cjs.js");
|
|
25
|
+
const toolbar = require("./modules/custom-image/actions/toolbar.cjs.js");
|
|
26
|
+
const toolbarAction = require("./modules/custom-image/actions/toolbar-action.cjs.js");
|
|
27
|
+
const blotFormatter = require("./modules/custom-image/blot-formatter.cjs.js");
|
|
28
|
+
const image = require("./modules/custom-image/image.cjs.js");
|
|
29
|
+
const blotSpec = require("./modules/custom-image/specs/blot-spec.cjs.js");
|
|
30
|
+
const customImageSpec = require("./modules/custom-image/specs/custom-image-spec.cjs.js");
|
|
31
|
+
const imageSpec = require("./modules/custom-image/specs/image-spec.cjs.js");
|
|
32
|
+
const customUploader = require("./modules/custom-uploader.cjs.js");
|
|
33
|
+
const divider = require("./modules/divider.cjs.js");
|
|
34
|
+
const emoji$1 = require("./modules/emoji.cjs.js");
|
|
35
|
+
const file = require("./modules/file/formats/file.cjs.js");
|
|
36
|
+
const fileBar = require("./modules/file/modules/file-bar.cjs.js");
|
|
37
|
+
const fileModule = require("./modules/file/modules/file-module.cjs.js");
|
|
5
38
|
const i18n = require("./modules/i18n.cjs.js");
|
|
39
|
+
const link = require("./modules/link/formats/link.cjs.js");
|
|
40
|
+
const tooltip = require("./modules/link/modules/tooltip.cjs.js");
|
|
41
|
+
const formats = require("./modules/mathlive/formats.cjs.js");
|
|
42
|
+
const module$2 = require("./modules/mathlive/module.cjs.js");
|
|
43
|
+
const tooltip$1 = require("./modules/mathlive/tooltip.cjs.js");
|
|
44
|
+
const mention = require("./modules/mention/mention.cjs.js");
|
|
45
|
+
const mentionLink = require("./modules/mention/mention-link.cjs.js");
|
|
46
|
+
const index = require("./modules/shortcut-key/index.cjs.js");
|
|
6
47
|
const index$1 = require("./modules/table-up/index.cjs.js");
|
|
48
|
+
const betterPicker = require("./modules/toolbar/better-picker.cjs.js");
|
|
49
|
+
const betterToolbar = require("./modules/toolbar/better-toolbar.cjs.js");
|
|
7
50
|
const toolbarTip = require("./modules/toolbar/toolbar-tip.cjs.js");
|
|
8
|
-
const QuillShortcutKey = require("quill-shortcut-key");
|
|
9
|
-
const fluentEditor = require("./core/fluent-editor.cjs.js");
|
|
10
|
-
const editor_config = require("./config/editor.config.cjs.js");
|
|
11
|
-
const editor_utils = require("./config/editor.utils.cjs.js");
|
|
12
|
-
exports.getListValue = index.getListValue;
|
|
13
|
-
exports.inputFile = index.inputFile;
|
|
14
|
-
exports.namespace = index.namespace;
|
|
15
|
-
exports.I18N = i18n.I18N;
|
|
16
|
-
exports.generateTableUp = index$1.generateTableUp;
|
|
17
|
-
exports.generateToolbarTip = toolbarTip.generateToolbarTip;
|
|
18
51
|
Object.defineProperty(exports, "generateTableUpShortKeyMenu", {
|
|
19
52
|
enumerable: true,
|
|
20
53
|
get: () => QuillShortcutKey.generateTableUpShortKeyMenu
|
|
21
54
|
});
|
|
55
|
+
Object.defineProperty(exports, "AttributeMap", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: () => core.AttributeMap
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(exports, "Delta", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: () => core.Delta
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, "Op", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: () => core.Op
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, "OpIterator", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: () => core.OpIterator
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, "Parchment", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: () => core.Parchment
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(exports, "Range", {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: () => core.Range
|
|
78
|
+
});
|
|
22
79
|
exports.default = fluentEditor.default;
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
80
|
+
exports.SizeStyle = fontSize.SizeStyle;
|
|
81
|
+
exports.FontStyle = fontStyle.FontStyle;
|
|
82
|
+
exports.LineHeightStyle = lineHeight.LineHeightStyle;
|
|
83
|
+
exports.TextIndentStyle = textIndent.TextIndentStyle;
|
|
84
|
+
exports.EmojiBlot = emoji.EmojiBlot;
|
|
85
|
+
exports.SoftBreak = softBreak.SoftBreak;
|
|
86
|
+
exports.StrikeBlot = strike.StrikeBlot;
|
|
87
|
+
exports.Video = video.Video;
|
|
88
|
+
exports.CollaborationModule = module$1.CollaborationModule;
|
|
89
|
+
exports.CustomClipboard = customClipboard.CustomClipboard;
|
|
90
|
+
exports.Action = action.Action;
|
|
91
|
+
exports.CustomResizeAction = customResizeAction.CustomResizeAction;
|
|
92
|
+
exports.DeleteAction = deleteAction.DeleteAction;
|
|
93
|
+
exports.ALIGN_ATTR = imageToolbarButtons.ALIGN_ATTR;
|
|
94
|
+
exports.ImageToolbarButtons = imageToolbarButtons.ImageToolbarButtons;
|
|
95
|
+
exports.alignmentHandler = imageToolbarButtons.alignmentHandler;
|
|
96
|
+
exports.setAlignStyle = imageToolbarButtons.setAlignStyle;
|
|
97
|
+
exports.ImageToolbar = toolbar.ImageToolbar;
|
|
98
|
+
exports.ImageToolbarAction = toolbarAction.ImageToolbarAction;
|
|
99
|
+
exports.BlotFormatter = blotFormatter.BlotFormatter;
|
|
100
|
+
exports.CustomImage = image.CustomImage;
|
|
101
|
+
exports.BlotSpec = blotSpec.BlotSpec;
|
|
102
|
+
exports.CustomImageSpec = customImageSpec.CustomImageSpec;
|
|
103
|
+
exports.ImageSpec = imageSpec.ImageSpec;
|
|
104
|
+
exports.FileUploader = customUploader.FileUploader;
|
|
105
|
+
exports.DividerBlot = divider.DividerBlot;
|
|
106
|
+
exports.EmojiModule = emoji$1.EmojiModule;
|
|
107
|
+
exports.File = file.File;
|
|
108
|
+
exports.FileBar = fileBar.FileBar;
|
|
109
|
+
exports.FileModule = fileModule.FileModule;
|
|
110
|
+
exports.I18N = i18n.I18N;
|
|
111
|
+
exports.LinkBlot = link.LinkBlot;
|
|
112
|
+
exports.LinkTooltip = tooltip.LinkTooltip;
|
|
113
|
+
exports.MathliveBlot = formats.MathliveBlot;
|
|
114
|
+
exports.MathliveModule = module$2.MathliveModule;
|
|
115
|
+
exports.MathliveTooltip = tooltip$1.MathliveTooltip;
|
|
116
|
+
exports.Mention = mention.Mention;
|
|
117
|
+
exports.MentionLink = mentionLink.MentionLink;
|
|
118
|
+
exports.ShortCutKey = index.ShortCutKey;
|
|
119
|
+
exports.shortKey = index.shortKey;
|
|
120
|
+
exports.generateTableUp = index$1.generateTableUp;
|
|
121
|
+
exports.ColorPicker = betterPicker.ColorPicker;
|
|
122
|
+
exports.Picker = betterPicker.Picker;
|
|
123
|
+
exports.BetterToolbar = betterToolbar.BetterToolbar;
|
|
124
|
+
exports.generateToolbarTip = toolbarTip.generateToolbarTip;
|
|
46
125
|
//# sourceMappingURL=index.cjs.js.map
|
package/lib/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const icons = require("./icons.cjs.js");
|
|
4
|
+
const INPUT_PLACEHOLDER = '请输入问题或"/"获取提示词';
|
|
5
|
+
const SELECT_PLACEHOLDER = "向我提问/选择操作";
|
|
6
|
+
const STOP_ANSWER = "停止回答";
|
|
7
|
+
const REPLACE_SELECT = "替换选中内容";
|
|
8
|
+
const INSERT_TEXT = "插入内容";
|
|
9
|
+
const INSERT_SUB_CONTENT_TEXT = "插入内容下方";
|
|
10
|
+
const REGENERATE = "重新生成";
|
|
11
|
+
const CLOSE = "关闭";
|
|
12
|
+
const THINK_TEXT = "正在为您分析并总结答案";
|
|
13
|
+
const RESULT_HEADER_TEXT = "根据您的诉求,已为您解答,具体如下:";
|
|
14
|
+
const MENU_TITLE_DATA = {
|
|
15
|
+
editor: [
|
|
16
|
+
{ id: "1-1", text: "丰富内容", icon: icons.RICH_CONTENT_ICON },
|
|
17
|
+
{ id: "1-2", text: "精简内容", icon: icons.STREAMLINE_CONTENT_ICON },
|
|
18
|
+
{ id: "1-3", text: "修改标点符号", icon: icons.SYMBOL_ICON },
|
|
19
|
+
{ id: "1-4", text: "翻译", icon: icons.TRANSLATE_ICON }
|
|
20
|
+
],
|
|
21
|
+
tone: [
|
|
22
|
+
{ id: "2-1", text: "更专业的" },
|
|
23
|
+
{ id: "2-2", text: "更直接的" },
|
|
24
|
+
{ id: "2-3", text: "更友善的" },
|
|
25
|
+
{ id: "2-4", text: "更口语化的" }
|
|
26
|
+
],
|
|
27
|
+
adjust: [
|
|
28
|
+
{ id: "3-1", text: "提炼要点" },
|
|
29
|
+
{ id: "3-2", text: "归纳总结" },
|
|
30
|
+
{ id: "3-3", text: "转写成[代码块]" }
|
|
31
|
+
]
|
|
32
|
+
};
|
|
33
|
+
const MENU_ID_MAP = {
|
|
34
|
+
editor: "subMenuEditorEl",
|
|
35
|
+
tone: "subMenuToneEl",
|
|
36
|
+
adjust: "subMenuAdjustEl"
|
|
37
|
+
};
|
|
38
|
+
exports.CLOSE = CLOSE;
|
|
39
|
+
exports.INPUT_PLACEHOLDER = INPUT_PLACEHOLDER;
|
|
40
|
+
exports.INSERT_SUB_CONTENT_TEXT = INSERT_SUB_CONTENT_TEXT;
|
|
41
|
+
exports.INSERT_TEXT = INSERT_TEXT;
|
|
42
|
+
exports.MENU_ID_MAP = MENU_ID_MAP;
|
|
43
|
+
exports.MENU_TITLE_DATA = MENU_TITLE_DATA;
|
|
44
|
+
exports.REGENERATE = REGENERATE;
|
|
45
|
+
exports.REPLACE_SELECT = REPLACE_SELECT;
|
|
46
|
+
exports.RESULT_HEADER_TEXT = RESULT_HEADER_TEXT;
|
|
47
|
+
exports.SELECT_PLACEHOLDER = SELECT_PLACEHOLDER;
|
|
48
|
+
exports.STOP_ANSWER = STOP_ANSWER;
|
|
49
|
+
exports.THINK_TEXT = THINK_TEXT;
|
|
50
|
+
//# sourceMappingURL=constants.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,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;;;;;;;;;;;;;"}
|