@opentiny/fluent-editor 4.0.0-alpha.15 → 4.0.0-alpha.16
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 -88
- 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.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.map +1 -1
- package/es/core/fluent-editor.es.js.map +1 -1
- package/es/fluent-editor.es.js.map +1 -1
- package/es/formats/emoji.es.js.map +1 -1
- package/es/formats/soft-break.es.js.map +1 -1
- package/es/formats/strike.es.js.map +1 -1
- package/es/formats/video.es.js.map +1 -1
- package/es/modules/ai/constants.es.js.map +1 -1
- package/es/modules/ai/icons.es.js.map +1 -1
- package/es/modules/ai/index.es.js.map +1 -1
- package/es/modules/collaborative-editing/awareness/awareness.es.js.map +1 -1
- package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js.map +1 -1
- package/es/modules/collaborative-editing/collaborative-editing.es.js.map +1 -1
- package/es/modules/collaborative-editing/module.es.js.map +1 -1
- package/es/modules/collaborative-editing/provider/providerRegistry.es.js.map +1 -1
- package/es/modules/collaborative-editing/provider/webrtc.es.js.map +1 -1
- package/es/modules/collaborative-editing/provider/websocket.es.js.map +1 -1
- package/es/modules/counter.es.js.map +1 -1
- package/es/modules/custom-clipboard.es.js.map +1 -1
- package/es/modules/custom-image/actions/action.es.js.map +1 -1
- package/es/modules/custom-image/actions/custom-resize-action.es.js.map +1 -1
- package/es/modules/custom-image/actions/delete-action.es.js.map +1 -1
- package/es/modules/custom-image/blot-formatter.es.js.map +1 -1
- package/es/modules/custom-image/image.es.js.map +1 -1
- package/es/modules/custom-image/options.es.js.map +1 -1
- package/es/modules/custom-image/specs/blot-spec.es.js.map +1 -1
- package/es/modules/custom-image/specs/custom-image-spec.es.js.map +1 -1
- package/es/modules/custom-image/specs/image-spec.es.js.map +1 -1
- package/es/modules/divider.es.js.map +1 -1
- package/es/modules/emoji.es.js.map +1 -1
- package/es/modules/file/formats/file.es.js.map +1 -1
- package/es/modules/file/modules/file-bar.es.js.map +1 -1
- package/es/modules/file/modules/file-module.es.js.map +1 -1
- package/es/modules/flow-chart/config-utils.es.js.map +1 -1
- package/es/modules/flow-chart/formats/flow-chart-blot.es.js.map +1 -1
- package/es/modules/flow-chart/i18n/en-us.es.js.map +1 -1
- package/es/modules/flow-chart/i18n/index.es.js.map +1 -1
- package/es/modules/flow-chart/i18n/zh-cn.es.js.map +1 -1
- package/es/modules/flow-chart/icons.es.js.map +1 -1
- package/es/modules/flow-chart/index.es.js.map +1 -1
- package/es/modules/flow-chart/modules/context-menu.es.js.map +1 -1
- package/es/modules/flow-chart/modules/control-panel.es.js.map +1 -1
- package/es/modules/flow-chart/modules/custom-resize-action.es.js.map +1 -1
- package/es/modules/link/formats/link.es.js.map +1 -1
- package/es/modules/link/modules/tooltip.es.js.map +1 -1
- package/es/modules/mathlive/formats.es.js.map +1 -1
- package/es/modules/mathlive/tooltip.es.js.map +1 -1
- package/es/modules/mention/constants.es.js.map +1 -1
- package/es/modules/mention/mention-link.es.js.map +1 -1
- package/es/modules/mention/mention.es.js.map +1 -1
- package/es/modules/mind-map/config-utils.es.js.map +1 -1
- package/es/modules/mind-map/formats/mind-map-blot.es.js.map +1 -1
- package/es/modules/mind-map/i18n/en-us.es.js.map +1 -1
- package/es/modules/mind-map/i18n/index.es.js.map +1 -1
- package/es/modules/mind-map/i18n/zh-cn.es.js.map +1 -1
- package/es/modules/mind-map/icons.es.js.map +1 -1
- package/es/modules/mind-map/index.es.js.map +1 -1
- package/es/modules/mind-map/modules/context-menu.es.js.map +1 -1
- package/es/modules/mind-map/modules/control-panel.es.js.map +1 -1
- package/es/modules/mind-map/modules/custom-resize-action.es.js.map +1 -1
- package/es/modules/syntax.es.js.map +1 -1
- package/es/modules/toolbar/better-picker.es.js.map +1 -1
- package/es/themes/snow.es.js.map +1 -1
- package/es/tools/screenshot.es.js.map +1 -1
- package/es/ui/icons.config.es.js.map +1 -1
- package/es/ui/icons.es.js.map +1 -1
- package/es/utils/debounce.es.js.map +1 -1
- package/es/utils/merge.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.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.map +1 -1
- package/lib/core/fluent-editor.cjs.js.map +1 -1
- package/lib/fluent-editor.cjs.js.map +1 -1
- package/lib/formats/emoji.cjs.js.map +1 -1
- package/lib/formats/soft-break.cjs.js.map +1 -1
- package/lib/formats/strike.cjs.js.map +1 -1
- package/lib/formats/video.cjs.js.map +1 -1
- package/lib/modules/ai/constants.cjs.js.map +1 -1
- package/lib/modules/ai/icons.cjs.js.map +1 -1
- package/lib/modules/ai/index.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/awareness/awareness.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/collaborative-editing.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/module.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/provider/providerRegistry.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/provider/webrtc.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/provider/websocket.cjs.js.map +1 -1
- package/lib/modules/counter.cjs.js.map +1 -1
- package/lib/modules/custom-clipboard.cjs.js.map +1 -1
- package/lib/modules/custom-image/actions/action.cjs.js.map +1 -1
- package/lib/modules/custom-image/actions/custom-resize-action.cjs.js.map +1 -1
- package/lib/modules/custom-image/actions/delete-action.cjs.js.map +1 -1
- package/lib/modules/custom-image/blot-formatter.cjs.js.map +1 -1
- package/lib/modules/custom-image/image.cjs.js.map +1 -1
- package/lib/modules/custom-image/options.cjs.js.map +1 -1
- package/lib/modules/custom-image/specs/blot-spec.cjs.js.map +1 -1
- package/lib/modules/custom-image/specs/custom-image-spec.cjs.js.map +1 -1
- package/lib/modules/custom-image/specs/image-spec.cjs.js.map +1 -1
- package/lib/modules/divider.cjs.js.map +1 -1
- package/lib/modules/emoji.cjs.js.map +1 -1
- package/lib/modules/file/formats/file.cjs.js.map +1 -1
- package/lib/modules/file/modules/file-bar.cjs.js.map +1 -1
- package/lib/modules/file/modules/file-module.cjs.js.map +1 -1
- package/lib/modules/flow-chart/config-utils.cjs.js.map +1 -1
- package/lib/modules/flow-chart/formats/flow-chart-blot.cjs.js.map +1 -1
- package/lib/modules/flow-chart/i18n/en-us.cjs.js.map +1 -1
- package/lib/modules/flow-chart/i18n/index.cjs.js.map +1 -1
- package/lib/modules/flow-chart/i18n/zh-cn.cjs.js.map +1 -1
- package/lib/modules/flow-chart/icons.cjs.js.map +1 -1
- package/lib/modules/flow-chart/index.cjs.js.map +1 -1
- package/lib/modules/flow-chart/modules/context-menu.cjs.js.map +1 -1
- package/lib/modules/flow-chart/modules/control-panel.cjs.js.map +1 -1
- package/lib/modules/flow-chart/modules/custom-resize-action.cjs.js.map +1 -1
- package/lib/modules/link/formats/link.cjs.js.map +1 -1
- package/lib/modules/link/modules/tooltip.cjs.js.map +1 -1
- package/lib/modules/mathlive/formats.cjs.js.map +1 -1
- package/lib/modules/mathlive/tooltip.cjs.js.map +1 -1
- package/lib/modules/mention/constants.cjs.js.map +1 -1
- package/lib/modules/mention/mention-link.cjs.js.map +1 -1
- package/lib/modules/mention/mention.cjs.js.map +1 -1
- package/lib/modules/mind-map/config-utils.cjs.js.map +1 -1
- package/lib/modules/mind-map/formats/mind-map-blot.cjs.js.map +1 -1
- package/lib/modules/mind-map/i18n/en-us.cjs.js.map +1 -1
- package/lib/modules/mind-map/i18n/index.cjs.js.map +1 -1
- package/lib/modules/mind-map/i18n/zh-cn.cjs.js.map +1 -1
- package/lib/modules/mind-map/icons.cjs.js.map +1 -1
- package/lib/modules/mind-map/index.cjs.js.map +1 -1
- package/lib/modules/mind-map/modules/context-menu.cjs.js.map +1 -1
- package/lib/modules/mind-map/modules/control-panel.cjs.js.map +1 -1
- package/lib/modules/mind-map/modules/custom-resize-action.cjs.js.map +1 -1
- package/lib/modules/syntax.cjs.js.map +1 -1
- package/lib/modules/toolbar/better-picker.cjs.js.map +1 -1
- package/lib/themes/snow.cjs.js.map +1 -1
- package/lib/tools/screenshot.cjs.js.map +1 -1
- package/lib/ui/icons.cjs.js.map +1 -1
- package/lib/ui/icons.config.cjs.js.map +1 -1
- package/lib/utils/debounce.cjs.js.map +1 -1
- package/lib/utils/merge.cjs.js.map +1 -1
- package/lib/utils/method.cjs.js.map +1 -1
- package/package.json +1 -1
- package/patches/quill@2.0.3.patch +33 -33
- package/scripts/apply-patches.cjs +248 -248
- 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 +55 -55
- package/types/config/editor.utils.d.ts +40 -40
- package/types/config/i18n/en-us.d.ts +125 -125
- package/types/config/i18n/zh-cn.d.ts +125 -125
- package/types/config/index.d.ts +7 -7
- package/types/config/types/editor-config.interface.d.ts +11 -12
- package/types/config/types/editor-modules.interface.d.ts +38 -39
- package/types/config/types/index.d.ts +3 -3
- package/types/config/types/type.d.ts +2 -2
- package/types/core/fluent-editor.d.ts +10 -11
- package/types/fluent-editor.d.ts +1 -2
- package/types/formats/emoji.d.ts +7 -8
- package/types/formats/index.d.ts +4 -4
- package/types/formats/soft-break.d.ts +11 -12
- package/types/formats/strike.d.ts +7 -8
- package/types/formats/video.d.ts +12 -13
- package/types/index.d.ts +7 -8
- package/types/modules/ai/constants.d.ts +30 -30
- package/types/modules/ai/icons.d.ts +21 -21
- package/types/modules/ai/index.d.ts +93 -94
- package/types/modules/ai/types.d.ts +16 -16
- package/types/modules/collaborative-editing/awareness/awareness.d.ts +25 -26
- package/types/modules/collaborative-editing/awareness/index.d.ts +2 -2
- package/types/modules/collaborative-editing/awareness/y-indexeddb.d.ts +2 -3
- package/types/modules/collaborative-editing/collaborative-editing.d.ts +20 -21
- package/types/modules/collaborative-editing/index.d.ts +2 -2
- package/types/modules/collaborative-editing/module.d.ts +10 -11
- package/types/modules/collaborative-editing/provider/index.d.ts +3 -3
- package/types/modules/collaborative-editing/provider/providerRegistry.d.ts +24 -25
- package/types/modules/collaborative-editing/provider/webrtc.d.ts +33 -34
- package/types/modules/collaborative-editing/provider/websocket.d.ts +37 -38
- package/types/modules/collaborative-editing/types.d.ts +45 -46
- package/types/modules/counter.d.ts +21 -22
- package/types/modules/custom-clipboard.d.ts +23 -24
- package/types/modules/custom-image/actions/{Action.d.ts → action.d.ts} +7 -8
- package/types/modules/custom-image/actions/custom-resize-action.d.ts +22 -23
- package/types/modules/custom-image/actions/delete-action.d.ts +5 -6
- package/types/modules/custom-image/actions/image-toolbar-buttons.d.ts +15 -16
- package/types/modules/custom-image/actions/index.d.ts +6 -6
- package/types/modules/custom-image/actions/toolbar-action.d.ts +7 -8
- package/types/modules/custom-image/actions/toolbar.d.ts +16 -17
- package/types/modules/custom-image/blot-formatter.d.ts +19 -20
- package/types/modules/custom-image/image.d.ts +26 -27
- package/types/modules/custom-image/index.d.ts +4 -4
- package/types/modules/custom-image/{Options.d.ts → options.d.ts} +45 -46
- package/types/modules/custom-image/specs/blot-spec.d.ts +10 -11
- package/types/modules/custom-image/specs/custom-image-spec.d.ts +15 -16
- package/types/modules/custom-image/specs/image-spec.d.ts +7 -8
- package/types/modules/custom-image/specs/index.d.ts +3 -3
- package/types/modules/custom-uploader.d.ts +37 -38
- package/types/modules/divider.d.ts +7 -8
- package/types/modules/emoji.d.ts +35 -36
- package/types/modules/file/formats/file.d.ts +17 -18
- package/types/modules/file/index.d.ts +3 -3
- package/types/modules/file/modules/file-bar.d.ts +14 -14
- package/types/modules/file/modules/file-module.d.ts +7 -8
- package/types/modules/flow-chart/config-utils.d.ts +9 -10
- package/types/modules/flow-chart/formats/flow-chart-blot.d.ts +40 -41
- package/types/modules/flow-chart/i18n/en-us.d.ts +26 -26
- package/types/modules/flow-chart/i18n/index.d.ts +1 -1
- package/types/modules/flow-chart/i18n/zh-cn.d.ts +26 -26
- package/types/modules/flow-chart/icons.d.ts +12 -12
- package/types/modules/flow-chart/index.d.ts +8 -9
- package/types/modules/flow-chart/modules/context-menu.d.ts +1 -2
- package/types/modules/flow-chart/modules/control-panel.d.ts +1 -2
- package/types/modules/flow-chart/modules/custom-resize-action.d.ts +22 -22
- package/types/modules/flow-chart/options.d.ts +29 -29
- package/types/modules/i18n.d.ts +13 -14
- package/types/modules/index.d.ts +18 -18
- package/types/modules/link/formats/link.d.ts +14 -15
- package/types/modules/link/index.d.ts +2 -2
- package/types/modules/link/modules/tooltip.d.ts +25 -26
- package/types/modules/mathlive/formats.d.ts +20 -21
- package/types/modules/mathlive/index.d.ts +3 -3
- package/types/modules/mathlive/module.d.ts +7 -8
- 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 -2
- package/types/modules/mention/mention-link.d.ts +14 -15
- package/types/modules/mention/{Mention.d.ts → mention.d.ts} +52 -53
- package/types/modules/mind-map/config-utils.d.ts +11 -12
- package/types/modules/mind-map/formats/mind-map-blot.d.ts +41 -42
- package/types/modules/mind-map/i18n/en-us.d.ts +25 -25
- package/types/modules/mind-map/i18n/index.d.ts +1 -1
- package/types/modules/mind-map/i18n/zh-cn.d.ts +25 -25
- package/types/modules/mind-map/icons.d.ts +21 -21
- package/types/modules/mind-map/index.d.ts +8 -9
- package/types/modules/mind-map/modules/context-menu.d.ts +1 -2
- package/types/modules/mind-map/modules/control-panel.d.ts +1 -2
- package/types/modules/mind-map/modules/custom-resize-action.d.ts +23 -23
- package/types/modules/mind-map/options.d.ts +27 -27
- package/types/modules/shortcut-key/index.d.ts +67 -68
- package/types/modules/syntax.d.ts +12 -13
- package/types/modules/table-up/index.d.ts +32 -33
- package/types/modules/toolbar/better-picker.d.ts +13 -14
- package/types/modules/toolbar/better-toolbar.d.ts +6 -7
- package/types/modules/toolbar/index.d.ts +3 -3
- 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 -13
- package/types/tools/fullscreen.d.ts +4 -5
- package/types/tools/screenshot.d.ts +17 -18
- package/types/ui/icons.config.d.ts +40 -40
- 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/merge.d.ts +7 -7
- package/types/utils/method.d.ts +6 -6
- package/types/utils/scroll-lock.d.ts +6 -6
- 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/actions/CustomResizeAction.d.ts +0 -24
- 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/CustomImageSpec.d.ts +0 -21
- 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/types/modules/global-link/constants.d.ts +0 -3
- package/types/modules/global-link/formats/customer-widget-link.d.ts +0 -14
- package/types/modules/global-link/formats/doc-link.d.ts +0 -17
- package/types/modules/global-link/formats/wiki-link.d.ts +0 -16
- package/types/modules/global-link/formats/work-item-link.d.ts +0 -16
- package/types/modules/global-link/global-link-panel.d.ts +0 -19
- package/types/modules/global-link/index.d.ts +0 -18
- package/types/modules/global-link/utils/createTable.d.ts +0 -1
- package/types/modules/mention/MentionLink.d.ts +0 -16
- package/types/modules/quick-menu.d.ts +0 -22
- package/types/modules/table/better-table.d.ts +0 -35
- package/types/modules/table/formats/header.d.ts +0 -23
- package/types/modules/table/formats/list.d.ts +0 -34
- package/types/modules/table/formats/table.d.ts +0 -147
- package/types/modules/table/modules/table-column-tool.d.ts +0 -23
- package/types/modules/table/modules/table-operation-menu.d.ts +0 -38
- package/types/modules/table/modules/table-scroll-bar.d.ts +0 -33
- package/types/modules/table/modules/table-selection.d.ts +0 -37
- package/types/modules/table/modules/table-selector.d.ts +0 -22
- package/types/modules/table/table-config.d.ts +0 -38
- package/types/modules/table/utils/index.d.ts +0 -17
- package/types/modules/table/utils/node-matchers.d.ts +0 -9
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { default as Quill } from 'quill';
|
|
2
2
|
import { FlowChartOptions } from './options';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
3
|
+
export declare class FlowChartModule {
|
|
4
|
+
quill: Quill;
|
|
5
|
+
toolbar: any;
|
|
6
|
+
options: FlowChartOptions;
|
|
7
|
+
static register(): void;
|
|
8
|
+
constructor(quill: Quill, options: any);
|
|
9
|
+
insertFlowChartEditor(): void;
|
|
10
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { default as FluentEditor } from '../../../core/fluent-editor';
|
|
2
2
|
import { default as FlowChartPlaceholderBlot } from '../formats/flow-chart-blot';
|
|
3
|
-
|
|
4
|
-
export declare function initContextMenu(blot: FlowChartPlaceholderBlot, quill: FluentEditor): void;
|
|
3
|
+
export declare function initContextMenu(blot: FlowChartPlaceholderBlot, quill: FluentEditor): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { default as FluentEditor } from '../../../core/fluent-editor';
|
|
2
2
|
import { default as FlowChartPlaceholderBlot } from '../formats/flow-chart-blot';
|
|
3
|
-
|
|
4
|
-
export declare function createControlPanel(blot: FlowChartPlaceholderBlot, quill: FluentEditor): void;
|
|
3
|
+
export declare function createControlPanel(blot: FlowChartPlaceholderBlot, quill: FluentEditor): void;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export declare class FlowChartResizeAction {
|
|
2
|
-
topLeftHandle: HTMLElement;
|
|
3
|
-
topRightHandle: HTMLElement;
|
|
4
|
-
bottomRightHandle: HTMLElement;
|
|
5
|
-
bottomLeftHandle: HTMLElement;
|
|
6
|
-
dragHandle: HTMLElement | null;
|
|
7
|
-
dragStartX: number;
|
|
8
|
-
dragStartY: number;
|
|
9
|
-
preDragWidth: number;
|
|
10
|
-
preDragHeight: number;
|
|
11
|
-
targetRatio: number;
|
|
12
|
-
blot: any;
|
|
13
|
-
constructor(blot: any);
|
|
14
|
-
isFullscreen(): boolean;
|
|
15
|
-
init(): void;
|
|
16
|
-
createHandle(position: string, cursor: string): HTMLElement;
|
|
17
|
-
repositionHandles(): void;
|
|
18
|
-
onMouseDown(event: MouseEvent): void;
|
|
19
|
-
onDrag(event: MouseEvent): void;
|
|
20
|
-
onMouseUp(): void;
|
|
21
|
-
destroy(): void;
|
|
22
|
-
}
|
|
1
|
+
export declare class FlowChartResizeAction {
|
|
2
|
+
topLeftHandle: HTMLElement;
|
|
3
|
+
topRightHandle: HTMLElement;
|
|
4
|
+
bottomRightHandle: HTMLElement;
|
|
5
|
+
bottomLeftHandle: HTMLElement;
|
|
6
|
+
dragHandle: HTMLElement | null;
|
|
7
|
+
dragStartX: number;
|
|
8
|
+
dragStartY: number;
|
|
9
|
+
preDragWidth: number;
|
|
10
|
+
preDragHeight: number;
|
|
11
|
+
targetRatio: number;
|
|
12
|
+
blot: any;
|
|
13
|
+
constructor(blot: any);
|
|
14
|
+
isFullscreen(): boolean;
|
|
15
|
+
init(): void;
|
|
16
|
+
createHandle(position: string, cursor: string): HTMLElement;
|
|
17
|
+
repositionHandles(): void;
|
|
18
|
+
onMouseDown(event: MouseEvent): void;
|
|
19
|
+
onDrag(event: MouseEvent): void;
|
|
20
|
+
onMouseUp(): void;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export interface GridOptions {
|
|
2
|
-
size?: number;
|
|
3
|
-
visible?: boolean;
|
|
4
|
-
type?: 'dot' | 'mesh';
|
|
5
|
-
config?: {
|
|
6
|
-
color: string;
|
|
7
|
-
thickness?: number;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export interface BackgroundConfig {
|
|
11
|
-
color?: string;
|
|
12
|
-
image?: string;
|
|
13
|
-
repeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
|
|
14
|
-
position?: string;
|
|
15
|
-
size?: string;
|
|
16
|
-
opacity?: number;
|
|
17
|
-
}
|
|
18
|
-
export interface FlowChartDeps {
|
|
19
|
-
LogicFlow: any;
|
|
20
|
-
DndPanel: any;
|
|
21
|
-
SelectionSelect: any;
|
|
22
|
-
Snapshot: any;
|
|
23
|
-
}
|
|
24
|
-
export interface FlowChartOptions {
|
|
25
|
-
grid?: boolean | GridOptions;
|
|
26
|
-
background?: boolean | BackgroundConfig;
|
|
27
|
-
resize?: boolean;
|
|
28
|
-
deps: FlowChartDeps;
|
|
29
|
-
}
|
|
1
|
+
export interface GridOptions {
|
|
2
|
+
size?: number;
|
|
3
|
+
visible?: boolean;
|
|
4
|
+
type?: 'dot' | 'mesh';
|
|
5
|
+
config?: {
|
|
6
|
+
color: string;
|
|
7
|
+
thickness?: number;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface BackgroundConfig {
|
|
11
|
+
color?: string;
|
|
12
|
+
image?: string;
|
|
13
|
+
repeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
|
|
14
|
+
position?: string;
|
|
15
|
+
size?: string;
|
|
16
|
+
opacity?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface FlowChartDeps {
|
|
19
|
+
LogicFlow: any;
|
|
20
|
+
DndPanel: any;
|
|
21
|
+
SelectionSelect: any;
|
|
22
|
+
Snapshot: any;
|
|
23
|
+
}
|
|
24
|
+
export interface FlowChartOptions {
|
|
25
|
+
grid?: boolean | GridOptions;
|
|
26
|
+
background?: boolean | BackgroundConfig;
|
|
27
|
+
resize?: boolean;
|
|
28
|
+
deps: FlowChartDeps;
|
|
29
|
+
}
|
package/types/modules/i18n.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { default as FluentEditor } from '../fluent-editor';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
static
|
|
9
|
-
|
|
10
|
-
options: I18NOptions;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export default I18N;
|
|
2
|
+
export interface I18NOptions {
|
|
3
|
+
lang: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class I18N {
|
|
6
|
+
quill: FluentEditor;
|
|
7
|
+
static register(inputLangs: Record<string, Record<string, string>>, isCover?: boolean): void;
|
|
8
|
+
static parserText(text: string, lang: string): string;
|
|
9
|
+
options: I18NOptions;
|
|
10
|
+
constructor(quill: FluentEditor, options: Partial<I18NOptions>);
|
|
11
|
+
resolveLanguageOption(options: Partial<I18NOptions>): I18NOptions;
|
|
12
|
+
changeLanguage(options: Partial<I18NOptions>, force?: boolean): void;
|
|
13
|
+
}
|
|
14
|
+
export default I18N;
|
package/types/modules/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export * from './collaborative-editing';
|
|
2
|
-
export * from './counter';
|
|
3
|
-
export * from './custom-clipboard';
|
|
4
|
-
export * from './custom-image';
|
|
5
|
-
export * from './custom-uploader';
|
|
6
|
-
export * from './divider';
|
|
7
|
-
export * from './emoji';
|
|
8
|
-
export * from './file';
|
|
9
|
-
export * from './flow-chart';
|
|
10
|
-
export * from './i18n';
|
|
11
|
-
export * from './link';
|
|
12
|
-
export * from './mathlive';
|
|
13
|
-
export * from './mention';
|
|
14
|
-
export * from './mind-map';
|
|
15
|
-
export * from './shortcut-key';
|
|
16
|
-
export * from './syntax';
|
|
17
|
-
export * from './table-up';
|
|
18
|
-
export * from './toolbar';
|
|
1
|
+
export * from './collaborative-editing';
|
|
2
|
+
export * from './counter';
|
|
3
|
+
export * from './custom-clipboard';
|
|
4
|
+
export * from './custom-image';
|
|
5
|
+
export * from './custom-uploader';
|
|
6
|
+
export * from './divider';
|
|
7
|
+
export * from './emoji';
|
|
8
|
+
export * from './file';
|
|
9
|
+
export * from './flow-chart';
|
|
10
|
+
export * from './i18n';
|
|
11
|
+
export * from './link';
|
|
12
|
+
export * from './mathlive';
|
|
13
|
+
export * from './mention';
|
|
14
|
+
export * from './mind-map';
|
|
15
|
+
export * from './shortcut-key';
|
|
16
|
+
export * from './syntax';
|
|
17
|
+
export * from './table-up';
|
|
18
|
+
export * from './toolbar';
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { default as TypeInline } from 'quill/blots/inline';
|
|
2
|
-
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
static
|
|
6
|
-
static
|
|
7
|
-
static
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
-
static
|
|
11
|
-
static
|
|
12
|
-
static
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
2
|
+
declare const Inline: typeof TypeInline;
|
|
3
|
+
export declare class LinkBlot extends Inline {
|
|
4
|
+
static blotName: string;
|
|
5
|
+
static tagName: string;
|
|
6
|
+
static SANITIZED_URL: string;
|
|
7
|
+
static PROTOCOL_WHITELIST: string[];
|
|
8
|
+
static className: string;
|
|
9
|
+
static autoProtocol: string;
|
|
10
|
+
static create(value: string): HTMLElement;
|
|
11
|
+
static formats(domNode: HTMLElement): string | null;
|
|
12
|
+
static sanitize(url: string): string;
|
|
13
|
+
format(name: string, value: any): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './formats/link';
|
|
2
|
-
export * from './modules/tooltip';
|
|
1
|
+
export * from './formats/link';
|
|
2
|
+
export * from './modules/tooltip';
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { default as FluentEditor } from '../../../core/fluent-editor';
|
|
2
2
|
import { BaseTooltip } from 'quill/themes/base';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
3
|
+
export declare class LinkTooltip extends BaseTooltip {
|
|
4
|
+
quill: FluentEditor;
|
|
5
|
+
static TEMPLATE: string;
|
|
6
|
+
isInputFocus: boolean;
|
|
7
|
+
isHover: boolean;
|
|
8
|
+
debouncedHideToolTip: any;
|
|
9
|
+
debouncedShowToolTip: any;
|
|
10
|
+
options: {
|
|
11
|
+
autoProtocol: string;
|
|
12
|
+
};
|
|
13
|
+
constructor(quill: FluentEditor, bounds: any);
|
|
14
|
+
setTemplate(): void;
|
|
15
|
+
resolveOptions(): void;
|
|
16
|
+
shouldHide(): boolean;
|
|
17
|
+
hideToolTip(): void;
|
|
18
|
+
showToolTip(name: any, value: any, range: any): void;
|
|
19
|
+
handleMouseLeave(): void;
|
|
20
|
+
handleMouseEnter(event: MouseEvent): void;
|
|
21
|
+
listen(): void;
|
|
22
|
+
save(): void;
|
|
23
|
+
position(reference: any): number;
|
|
24
|
+
edit(mode: string, preview: any, range: any): void;
|
|
25
|
+
show(): void;
|
|
26
|
+
addHttpProtocol(url: string): string;
|
|
27
|
+
}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { MathfieldElement } from 'mathlive';
|
|
2
2
|
import { Root } from 'parchment';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
3
|
+
declare const Parchment: typeof import("parchment");
|
|
4
|
+
export type MathliveBlotMode = 'dialog' | 'only-read';
|
|
5
|
+
export declare class MathliveBlot extends Parchment.EmbedBlot {
|
|
6
|
+
domNode: MathfieldElement;
|
|
7
|
+
static blotName: string;
|
|
8
|
+
static tagName: string;
|
|
9
|
+
static className: string;
|
|
10
|
+
mode: MathliveBlotMode;
|
|
11
|
+
static create(obj: {
|
|
12
|
+
value: string;
|
|
13
|
+
mode: MathliveBlotMode;
|
|
14
|
+
}): MathfieldElement;
|
|
15
|
+
static value(domNode: MathfieldElement): {
|
|
16
|
+
value: string;
|
|
17
|
+
mode: string;
|
|
18
|
+
};
|
|
19
|
+
constructor(scroll: Root, domNode: MathfieldElement);
|
|
20
|
+
html(): string;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './formats';
|
|
2
|
-
export * from './module';
|
|
3
|
-
export * from './tooltip';
|
|
1
|
+
export * from './formats';
|
|
2
|
+
export * from './module';
|
|
3
|
+
export * from './tooltip';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { default as Quill } from 'quill';
|
|
2
2
|
import { MathliveTooltip } from './tooltip';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
3
|
+
export declare class MathliveModule {
|
|
4
|
+
quill: Quill;
|
|
5
|
+
tooltip: MathliveTooltip;
|
|
6
|
+
static register(): void;
|
|
7
|
+
constructor(quill: Quill);
|
|
8
|
+
createDialog(value?: string): void;
|
|
9
|
+
}
|
|
@@ -2,18 +2,17 @@ import { MathfieldElement } from 'mathlive';
|
|
|
2
2
|
import { Bounds } from 'quill/core/selection';
|
|
3
3
|
import { default as TypeTooltip } from 'quill/ui/tooltip';
|
|
4
4
|
import { default as Quill } from 'quill';
|
|
5
|
-
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
5
|
+
declare const Tooltip: typeof TypeTooltip;
|
|
6
|
+
export declare class MathliveTooltip extends Tooltip {
|
|
7
|
+
static TEMPLATE: string;
|
|
8
|
+
mathliveDom: MathfieldElement;
|
|
9
|
+
editValue?: string;
|
|
10
|
+
constructor(quill: Quill, boundsContainer?: HTMLElement);
|
|
11
|
+
listen(): void;
|
|
12
|
+
cancel(): void;
|
|
13
|
+
edit(value?: string): void;
|
|
14
|
+
restoreFocus(): void;
|
|
15
|
+
save(): void;
|
|
16
|
+
position(reference: Bounds): number;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const ON_MENTION_LINK_REMOVE = "mention-link/remove";
|
|
2
|
-
export declare const MENTION_CHAR = "mentionChar";
|
|
3
|
-
export declare const DEFAULT_MENTION_CHAR = "@";
|
|
1
|
+
export declare const ON_MENTION_LINK_REMOVE = "mention-link/remove";
|
|
2
|
+
export declare const MENTION_CHAR = "mentionChar";
|
|
3
|
+
export declare const DEFAULT_MENTION_CHAR = "@";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './mention';
|
|
2
|
-
export * from './mention-link';
|
|
1
|
+
export * from './mention';
|
|
2
|
+
export * from './mention-link';
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { default as TypeEmbed } from 'quill/blots/embed';
|
|
2
2
|
import { default as TypeScroll } from 'quill/blots/scroll';
|
|
3
|
-
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
static
|
|
8
|
-
static
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
static
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
3
|
+
declare const Embed: typeof TypeEmbed;
|
|
4
|
+
export declare class MentionLink extends Embed {
|
|
5
|
+
scroll: TypeScroll;
|
|
6
|
+
static blotName: string;
|
|
7
|
+
static tagName: string;
|
|
8
|
+
static className: string;
|
|
9
|
+
mentionData: any;
|
|
10
|
+
static create(data: any): HTMLElement;
|
|
11
|
+
static value(domNode: HTMLElement): Record<string, any>;
|
|
12
|
+
constructor(scroll: TypeScroll, domNode: any, data: any);
|
|
13
|
+
value(): any;
|
|
14
|
+
remove(): void;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -1,54 +1,53 @@
|
|
|
1
1
|
import { default as Quill } from 'quill';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
private
|
|
23
|
-
private readonly
|
|
24
|
-
private
|
|
25
|
-
private
|
|
26
|
-
private
|
|
27
|
-
private
|
|
28
|
-
private
|
|
29
|
-
private
|
|
30
|
-
private
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
2
|
+
export interface MentionOption {
|
|
3
|
+
containerClass?: string;
|
|
4
|
+
defaultLink?: string;
|
|
5
|
+
itemActiveClass?: string;
|
|
6
|
+
itemKey: string;
|
|
7
|
+
itemClass?: string;
|
|
8
|
+
listClass?: string;
|
|
9
|
+
listHideClass?: string;
|
|
10
|
+
maxHeight?: number;
|
|
11
|
+
mentionChar?: string;
|
|
12
|
+
remove?: (data: any) => void;
|
|
13
|
+
renderMentionItem?: (data: any) => string | HTMLElement;
|
|
14
|
+
renderMentionText?: (data: any) => string | HTMLElement;
|
|
15
|
+
search?: (term: string) => Promise<any[]> | any[];
|
|
16
|
+
searchKey: string;
|
|
17
|
+
select?: (data: any) => void;
|
|
18
|
+
target?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class Mention {
|
|
21
|
+
private quill;
|
|
22
|
+
private readonly options;
|
|
23
|
+
private readonly mentionListEL;
|
|
24
|
+
private activeMentionIndex;
|
|
25
|
+
private latestMentionList;
|
|
26
|
+
private latestMentionCharPos;
|
|
27
|
+
private latestCaretPos;
|
|
28
|
+
private searchTerm;
|
|
29
|
+
private needInsertBr;
|
|
30
|
+
private readonly defaultOptions;
|
|
31
|
+
static register(): void;
|
|
32
|
+
constructor(quill: Quill, options: MentionOption);
|
|
33
|
+
on(eventName: any, callback: any): void;
|
|
34
|
+
getMentionItemIndex(itemEl: Element): unknown;
|
|
35
|
+
handleTextChange: (_delta: any, _oldDelta: any, source: any) => void;
|
|
36
|
+
handleMouseClick(_itemEl: HTMLLIElement, index: number): void;
|
|
37
|
+
handleMouseEnter(_itemEl: HTMLLIElement, index: number): void;
|
|
38
|
+
handleArrowUpKey: () => boolean;
|
|
39
|
+
handleArrowDownKey: () => boolean;
|
|
40
|
+
handleEnterKey: () => boolean;
|
|
41
|
+
handleEscapeKey: () => boolean;
|
|
42
|
+
getActiveMentionItem(): Element;
|
|
43
|
+
isOpen(): boolean;
|
|
44
|
+
searchMentionListByTerm(term: string): Promise<void>;
|
|
45
|
+
showMentionList(mentionList: any[]): void;
|
|
46
|
+
hideMentionList(): void;
|
|
47
|
+
setMentionListPos(): void;
|
|
48
|
+
render(mentionList: any[]): void;
|
|
49
|
+
highlightMentionItem(index: number): void;
|
|
50
|
+
scrollIntoView(node: Element): void;
|
|
51
|
+
selectMentionItem(index?: number, isClick?: boolean): void;
|
|
52
|
+
insertMentionBlot(activeMentionItem: any, isClick?: boolean): void;
|
|
53
|
+
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { default as Quill } from 'quill';
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
2
|
+
export declare function getBackgroundConfig(quill: Quill | null): false | object;
|
|
3
|
+
export declare function getLineConfig(quill: Quill | null): false | object;
|
|
4
|
+
export declare function getResizeConfig(quill: Quill | null): boolean;
|
|
5
|
+
export declare function getThemeConfig(quill: Quill | null): string;
|
|
6
|
+
export declare function getAllConfigs(quill: Quill | null): {
|
|
7
|
+
backgroundConfig: false | object;
|
|
8
|
+
resizeConfig: boolean;
|
|
9
|
+
lineConfig: false | object;
|
|
10
|
+
themeConfig: string;
|
|
11
|
+
deps?: any;
|
|
12
|
+
};
|