@worktile/theia 15.3.3 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/contextmenu/contextmenu.component.d.ts +1 -1
- package/components/conversion-hint/conversion-hint.component.d.ts +3 -3
- package/components/inline-toolbar/inline-toolbar.component.d.ts +3 -4
- package/components/listbox/listbox.d.ts +3 -3
- package/components/plugin-menu/plugin-menu.component.d.ts +4 -3
- package/components/table-select/table-select.component.d.ts +1 -1
- package/components/template/template.component.d.ts +2 -2
- package/components/toolbar/toolbar.component.d.ts +4 -4
- package/components/toolbar-dropdown/toolbar-dropdown.component.d.ts +2 -2
- package/components/toolbar-group/toolbar-group.component.d.ts +5 -6
- package/core/toolbar-item/base-toolbar-item.d.ts +6 -7
- package/core/utils/plugin-menu.d.ts +2 -2
- package/editor.component.d.ts +1 -1
- package/editor.module.d.ts +1 -1
- package/{esm2020 → esm2022}/components/action/prevent-default.mjs +4 -4
- package/{esm2020 → esm2022}/components/column-resize/column-resize-notifier.mjs +4 -4
- package/{esm2020 → esm2022}/components/column-resize/column-resize.directive.mjs +4 -4
- package/{esm2020 → esm2022}/components/column-resize/column-resize.module.mjs +9 -9
- package/{esm2020 → esm2022}/components/column-resize/event-dispatcher.mjs +4 -4
- package/{esm2020 → esm2022}/components/column-resize/overlay-handle.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/column-resize/resizing.store.mjs +4 -4
- package/{esm2020 → esm2022}/components/contextmenu/contextmenu.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/conversion-hint/conversion-hint.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/element/element.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/inline-toolbar/inline-toolbar.component.mjs +6 -6
- package/esm2022/components/listbox/listbox.mjs +375 -0
- package/esm2022/components/plugin-menu/plugin-menu.component.mjs +191 -0
- package/{esm2020 → esm2022}/components/table-select/table-select.component.mjs +4 -4
- package/esm2022/components/template/template.component.mjs +62 -0
- package/{esm2020 → esm2022}/components/text/text.component.mjs +4 -4
- package/esm2022/components/toolbar/toolbar.component.mjs +266 -0
- package/esm2022/components/toolbar-dropdown/toolbar-dropdown.component.mjs +144 -0
- package/esm2022/components/toolbar-group/toolbar-group.component.mjs +122 -0
- package/{esm2020 → esm2022}/components/toolbar-item/toolbar-item.component.mjs +6 -6
- package/esm2022/constants/auto-format-rules.mjs +167 -0
- package/esm2022/constants/plugin-menu.mjs +328 -0
- package/esm2022/core/toolbar-item/base-toolbar-item.mjs +87 -0
- package/{esm2020 → esm2022}/core/utils/combine-plugins.mjs +1 -1
- package/esm2022/core/utils/plugin-menu.mjs +33 -0
- package/esm2022/custom-types.mjs +2 -0
- package/{esm2020 → esm2022}/editor.component.mjs +11 -11
- package/esm2022/editor.module.mjs +254 -0
- package/esm2022/interfaces/auto-format.mjs +2 -0
- package/esm2022/interfaces/editor.mjs +25 -0
- package/esm2022/interfaces/plugins/plugin-menu.mjs +19 -0
- package/esm2022/interfaces/plugins/with-override.mjs +2 -0
- package/esm2022/interfaces/reset-block-type-plugin-options.mjs +2 -0
- package/esm2022/interfaces/toolbar.mjs +12 -0
- package/{esm2020 → esm2022}/interfaces/view-base.mjs +4 -4
- package/esm2022/pipes.mjs +42 -0
- package/esm2022/plugins/align/align.editor.mjs +43 -0
- package/esm2022/plugins/align/align.plugin.mjs +64 -0
- package/{esm2020 → esm2022}/plugins/autoformat/autoformat.plugin.mjs +1 -1
- package/esm2022/plugins/autoformat/transforms/auto-format-block.mjs +14 -0
- package/esm2022/plugins/autoformat/transforms/auto-format-inline.mjs +78 -0
- package/esm2022/plugins/blockquote/blockquote.component.mjs +21 -0
- package/esm2022/plugins/blockquote/blockquote.editor.mjs +17 -0
- package/esm2022/plugins/blockquote/blockquote.plugin.mjs +85 -0
- package/{esm2020 → esm2022}/plugins/code/code.component.mjs +4 -4
- package/esm2022/plugins/code/code.editor.mjs +48 -0
- package/{esm2020 → esm2022}/plugins/code/code.plugin.mjs +1 -1
- package/esm2022/plugins/color/color.editor.mjs +27 -0
- package/{esm2020 → esm2022}/plugins/color/toolbar-item.component.mjs +4 -4
- package/{esm2020 → esm2022}/plugins/common/block-card.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/common/common.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/common/get-fragment.plugin.mjs +1 -1
- package/esm2022/plugins/common/history.plugin.mjs +31 -0
- package/{esm2020 → esm2022}/plugins/common/insert-data-by-invalid-type.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/common/move-selection.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/common/remove-empty.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/common/remove-void.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/common/reset-type.plugin.mjs +1 -1
- package/esm2022/plugins/common/transforms.plugin.mjs +18 -0
- package/esm2022/plugins/deserialize/deserialize-html.plugin.mjs +53 -0
- package/esm2022/plugins/deserialize/deserialize-md.plugin.mjs +130 -0
- package/esm2022/plugins/font-size/font-size.editor.mjs +98 -0
- package/esm2022/plugins/heading/heading.editor.mjs +54 -0
- package/esm2022/plugins/heading/heading.plugin.mjs +136 -0
- package/{esm2020 → esm2022}/plugins/hr/hr.component.mjs +6 -6
- package/esm2022/plugins/hr/hr.editor.mjs +16 -0
- package/esm2022/plugins/hr/hr.plugin.mjs +56 -0
- package/esm2022/plugins/image/image.component.mjs +420 -0
- package/esm2022/plugins/image/image.editor.mjs +81 -0
- package/esm2022/plugins/indent/indent.editor.mjs +78 -0
- package/{esm2020 → esm2022}/plugins/indent/indent.plugin.mjs +1 -1
- package/esm2022/plugins/indent/on-keydown-indent.mjs +59 -0
- package/esm2022/plugins/inline-code/inline-code.component.mjs +26 -0
- package/esm2022/plugins/inline-code/inline-code.editor.mjs +48 -0
- package/esm2022/plugins/inline-code/inline-code.plugin.mjs +66 -0
- package/esm2022/plugins/link/edit/link-edit.component.mjs +103 -0
- package/{esm2020 → esm2022}/plugins/link/hover/link-hover.component.mjs +4 -4
- package/esm2022/plugins/link/link.component.mjs +167 -0
- package/esm2022/plugins/link/link.editor.mjs +66 -0
- package/{esm2020 → esm2022}/plugins/link/link.plugin.mjs +1 -1
- package/esm2022/plugins/list/components/bulleted-list.component.mjs +33 -0
- package/esm2022/plugins/list/components/list-item.component.mjs +93 -0
- package/esm2022/plugins/list/components/numbered-list.component.mjs +39 -0
- package/esm2022/plugins/list/list.editor.mjs +126 -0
- package/esm2022/plugins/list/list.plugin.mjs +312 -0
- package/esm2022/plugins/list/normalizers/get-list-normalizer.mjs +39 -0
- package/esm2022/plugins/list/normalizers/normalize-list-item.mjs +18 -0
- package/esm2022/plugins/list/normalizers/normalize-no.mjs +43 -0
- package/esm2022/plugins/list/on-key-down-list.mjs +33 -0
- package/esm2022/plugins/list/queries/get-list-item-entry.mjs +28 -0
- package/esm2022/plugins/list/queries/get-start-list-item.mjs +27 -0
- package/esm2022/plugins/list/queries/has-list-in-list-item.mjs +27 -0
- package/esm2022/plugins/list/queries/is-in-list.mjs +6 -0
- package/esm2022/plugins/list/queries/is-list-nested.mjs +10 -0
- package/esm2022/plugins/list/queries/is-list.mjs +5 -0
- package/{esm2020 → esm2022}/plugins/list/queries/is-node-type-list.mjs +1 -1
- package/esm2022/plugins/list/queries/is-selection-at-list-item-start.mjs +13 -0
- package/esm2022/plugins/list/queries/is-selection-in-same-list-item.mjs +17 -0
- package/{esm2020 → esm2022}/plugins/list/queries/is-single-list-item.mjs +1 -1
- package/esm2022/plugins/list/transforms/insert-list-data.mjs +72 -0
- package/esm2022/plugins/list/transforms/insert-list-item.mjs +72 -0
- package/esm2022/plugins/list/transforms/move-list-item-down.mjs +41 -0
- package/esm2022/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.mjs +43 -0
- package/esm2022/plugins/list/transforms/move-list-item-sublist-items-to-list.mjs +30 -0
- package/esm2022/plugins/list/transforms/move-list-item-up.mjs +78 -0
- package/esm2022/plugins/list/transforms/unwrap-list.mjs +10 -0
- package/esm2022/plugins/mark/mark.editor.mjs +28 -0
- package/{esm2020 → esm2022}/plugins/mark/mark.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/mention/mention.editor.mjs +1 -1
- package/esm2022/plugins/mention/mention.plugin.mjs +91 -0
- package/{esm2020 → esm2022}/plugins/mention/suggestion.component.mjs +4 -4
- package/{esm2020 → esm2022}/plugins/node-id/node-id.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/normalizers/insert-paragraph-nodes.mjs +1 -1
- package/esm2022/plugins/normalizers/remove-empty-nodes.mjs +18 -0
- package/{esm2020 → esm2022}/plugins/normalizers/trailing-node.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/paint-format/paint-format.editor.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/quick-insert/components/quick-insert.component.mjs +4 -4
- package/esm2022/plugins/quick-insert/quick-insert.editor.mjs +68 -0
- package/esm2022/plugins/quick-insert/quick-insert.plugin.mjs +104 -0
- package/esm2022/plugins/table/components/insert-mark/insert-mark.component.mjs +104 -0
- package/{esm2020 → esm2022}/plugins/table/components/row/row.component.mjs +6 -6
- package/{esm2020 → esm2022}/plugins/table/components/table.component.mjs +16 -16
- package/{esm2020 → esm2022}/plugins/table/components/td/td.component.mjs +4 -4
- package/{esm2020 → esm2022}/plugins/table/components/toolbar/table-options.component.mjs +6 -6
- package/esm2022/plugins/table/components/toolbar/table-toolbar.component.mjs +189 -0
- package/esm2022/plugins/table/table.editor.mjs +209 -0
- package/{esm2020 → esm2022}/plugins/table/table.pipe.mjs +7 -7
- package/esm2022/plugins/table/table.plugin.mjs +544 -0
- package/{esm2020 → esm2022}/plugins/table/table.service.mjs +4 -4
- package/esm2022/plugins/table/table.store.mjs +426 -0
- package/esm2022/plugins/table/table.types.mjs +60 -0
- package/{esm2020 → esm2022}/plugins/table/toolbar-item.component.mjs +6 -6
- package/esm2022/plugins/table/transforms/clear-cell.mjs +14 -0
- package/esm2022/plugins/table/transforms/clear-table-node.mjs +27 -0
- package/esm2022/plugins/table/transforms/insert-column.mjs +69 -0
- package/esm2022/plugins/table/transforms/insert-row.mjs +50 -0
- package/esm2022/plugins/table/transforms/insert-table.mjs +15 -0
- package/esm2022/plugins/table/transforms/remove-column.mjs +51 -0
- package/esm2022/plugins/table/transforms/remove-row.mjs +48 -0
- package/esm2022/plugins/table/transforms/remove-table.mjs +49 -0
- package/esm2022/plugins/table/utils/calc-anchor-position.mjs +25 -0
- package/esm2022/plugins/table/utils/cell-position.mjs +60 -0
- package/esm2022/plugins/table/utils/create-table-position.mjs +10 -0
- package/esm2022/plugins/table/utils/get-min-max-cell-index.mjs +69 -0
- package/esm2022/plugins/table/utils/get-select-cell-node.mjs +23 -0
- package/esm2022/plugins/table/utils/handle-cell.mjs +25 -0
- package/esm2022/plugins/table/utils/is-range-in-table.mjs +16 -0
- package/esm2022/plugins/table/utils/is-selection-in-table.mjs +51 -0
- package/esm2022/plugins/table/utils/merge-cell.mjs +108 -0
- package/esm2022/plugins/table/utils/set-menu-cell-invisibility.mjs +45 -0
- package/esm2022/plugins/table/utils/split-cell.mjs +29 -0
- package/esm2022/plugins/table/utils/table-entry.mjs +21 -0
- package/{esm2020 → esm2022}/plugins/todo-item/todo-item.component.mjs +7 -7
- package/esm2022/plugins/todo-item/todo-item.editor.mjs +32 -0
- package/esm2022/plugins/todo-item/todo-item.plugin.mjs +93 -0
- package/esm2022/plugins/vertical-align/toolbar-item.component.mjs +83 -0
- package/esm2022/queries/anchor-block-entry.mjs +13 -0
- package/esm2022/queries/anchor-block.mjs +6 -0
- package/esm2022/queries/anchor-inline-entry.mjs +10 -0
- package/{esm2020 → esm2022}/queries/find-descendant.mjs +1 -1
- package/esm2022/queries/find-node.mjs +45 -0
- package/esm2022/queries/get-above-by-type.mjs +14 -0
- package/esm2022/queries/get-above.mjs +9 -0
- package/esm2022/queries/get-anchor-block-entry.mjs +8 -0
- package/esm2022/queries/get-block-above.mjs +10 -0
- package/esm2022/queries/get-block-card-above.mjs +10 -0
- package/esm2022/queries/get-block-card-cursor.mjs +5 -0
- package/esm2022/queries/get-container-blocks.mjs +12 -0
- package/esm2022/queries/get-insert-elements-path.mjs +44 -0
- package/{esm2020 → esm2022}/queries/get-last-node.mjs +1 -1
- package/esm2022/queries/get-node.mjs +10 -0
- package/esm2022/queries/get-nodes-by-type.mjs +15 -0
- package/esm2022/queries/get-nodes.mjs +7 -0
- package/esm2022/queries/get-parent.mjs +12 -0
- package/esm2022/queries/get-plain-text.mjs +16 -0
- package/esm2022/queries/get-plugin-by-toolbar.mjs +13 -0
- package/{esm2020 → esm2022}/queries/get-point-before.mjs +1 -1
- package/esm2022/queries/get-point-from-location.mjs +15 -0
- package/esm2022/queries/get-rang-from-block-start.mjs +16 -0
- package/esm2022/queries/get-range-before.mjs +17 -0
- package/{esm2020 → esm2022}/queries/get-selection-marks.mjs +1 -1
- package/esm2022/queries/get-selection-nodes-by-type.mjs +30 -0
- package/esm2022/queries/get-text.mjs +9 -0
- package/esm2022/queries/get-toolbar-disabled.mjs +13 -0
- package/esm2022/queries/is-across-blocks.mjs +7 -0
- package/esm2022/queries/is-ancestor-empty.mjs +6 -0
- package/esm2022/queries/is-block-above-empty.mjs +11 -0
- package/esm2022/queries/is-block-active.mjs +8 -0
- package/esm2022/queries/is-block-card-cursor.mjs +4 -0
- package/{esm2020 → esm2022}/queries/is-block-text-empty-after-selection.mjs +1 -1
- package/esm2022/queries/is-contain-nested-type.mjs +29 -0
- package/esm2022/queries/is-container-type.mjs +3 -0
- package/esm2022/queries/is-empty-content-filter.mjs +23 -0
- package/{esm2020 → esm2022}/queries/is-empty-content.mjs +1 -1
- package/esm2022/queries/is-empty-paragraph-by-path.mjs +7 -0
- package/esm2022/queries/is-empty-paragraph.mjs +28 -0
- package/esm2022/queries/is-global-collapsed.mjs +5 -0
- package/esm2022/queries/is-include-types.mjs +12 -0
- package/esm2022/queries/is-node-type-in.mjs +9 -0
- package/esm2022/queries/is-node-type.mjs +15 -0
- package/esm2022/queries/is-paragraph.mjs +9 -0
- package/esm2022/queries/is-range-across-blocks.mjs +22 -0
- package/esm2022/queries/is-start.mjs +6 -0
- package/esm2022/queries/some-node.mjs +9 -0
- package/{esm2020 → esm2022}/services/context.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/table-contextmenu.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/toolbar.service.mjs +4 -4
- package/{esm2020 → esm2022}/shortcuts/index.mjs +1 -1
- package/esm2022/shortcuts/mark.mjs +25 -0
- package/esm2022/test/utils/with-editor.mjs +8 -0
- package/esm2022/test/utils/with-plugin.mjs +8 -0
- package/{esm2020 → esm2022}/transforms/clear-marks.mjs +1 -1
- package/esm2022/transforms/close-conversion-hint.mjs +8 -0
- package/{esm2020 → esm2022}/transforms/delete-element.mjs +1 -1
- package/esm2022/transforms/handle-continual-delete-backward.mjs +18 -0
- package/esm2022/transforms/handle-continual-insert-break.mjs +20 -0
- package/esm2022/transforms/insert-elements.mjs +38 -0
- package/esm2022/transforms/insert-paragraph.mjs +6 -0
- package/esm2022/transforms/move-children.mjs +22 -0
- package/esm2022/transforms/on-keydown-reset-block-type.mjs +22 -0
- package/{esm2020 → esm2022}/transforms/set-end-selection.mjs +1 -1
- package/esm2022/transforms/set-marks.mjs +9 -0
- package/esm2022/transforms/set-node.mjs +6 -0
- package/esm2022/transforms/un-hang-range.mjs +11 -0
- package/esm2022/transforms/un-wrap.mjs +12 -0
- package/esm2022/transforms/unwrap-nodes-by-type.mjs +14 -0
- package/{esm2020 → esm2022}/utils/auto-focus.mjs +1 -1
- package/esm2022/utils/copy-node.mjs +32 -0
- package/esm2022/utils/create-empty-paragraph.mjs +5 -0
- package/esm2022/utils/create-paragraph.mjs +14 -0
- package/{esm2020 → esm2022}/utils/dom.mjs +1 -1
- package/esm2022/utils/editor-uuid.mjs +8 -0
- package/esm2022/utils/fragment.mjs +74 -0
- package/esm2022/utils/get-editable-element-height.mjs +6 -0
- package/esm2022/utils/get-toolbar-class.mjs +6 -0
- package/esm2022/utils/index.mjs +20 -0
- package/esm2022/utils/insert-data-by-invalid-type.mjs +62 -0
- package/esm2022/utils/is-clean-empty-paragraph.mjs +37 -0
- package/esm2022/utils/is-inline.mjs +9 -0
- package/{esm2020 → esm2022}/utils/match.mjs +1 -1
- package/esm2022/utils/merge-element-options.mjs +19 -0
- package/esm2022/utils/scroll-into-view.mjs +38 -0
- package/{fesm2020 → fesm2022}/worktile-theia.mjs +397 -388
- package/fesm2022/worktile-theia.mjs.map +1 -0
- package/interfaces/auto-format.d.ts +5 -5
- package/interfaces/editor.d.ts +8 -6
- package/interfaces/plugins/plugin-menu.d.ts +5 -5
- package/interfaces/plugins/with-override.d.ts +2 -2
- package/interfaces/reset-block-type-plugin-options.d.ts +3 -3
- package/interfaces/toolbar.d.ts +5 -5
- package/interfaces/view-base.d.ts +3 -2
- package/package.json +11 -17
- package/pipes.d.ts +3 -3
- package/plugins/align/align.editor.d.ts +4 -4
- package/plugins/align/align.plugin.d.ts +2 -1
- package/plugins/autoformat/autoformat.plugin.d.ts +2 -1
- package/plugins/autoformat/transforms/auto-format-block.d.ts +5 -4
- package/plugins/autoformat/transforms/auto-format-inline.d.ts +2 -2
- package/plugins/blockquote/blockquote.component.d.ts +3 -3
- package/plugins/blockquote/blockquote.editor.d.ts +2 -2
- package/plugins/blockquote/blockquote.plugin.d.ts +2 -1
- package/plugins/code/code.component.d.ts +2 -3
- package/plugins/code/code.editor.d.ts +3 -3
- package/plugins/code/code.plugin.d.ts +2 -1
- package/plugins/color/color.editor.d.ts +3 -3
- package/plugins/common/block-card.plugin.d.ts +2 -1
- package/plugins/common/common.plugin.d.ts +2 -1
- package/plugins/common/get-fragment.plugin.d.ts +2 -1
- package/plugins/common/history.plugin.d.ts +6 -6
- package/plugins/common/insert-data-by-invalid-type.d.ts +2 -1
- package/plugins/common/move-selection.plugin.d.ts +2 -1
- package/plugins/common/remove-empty.plugin.d.ts +2 -1
- package/plugins/common/remove-void.plugin.d.ts +2 -1
- package/plugins/common/reset-type.plugin.d.ts +2 -1
- package/plugins/common/transforms.plugin.d.ts +2 -1
- package/plugins/deserialize/deserialize-html.plugin.d.ts +2 -1
- package/plugins/deserialize/deserialize-md.plugin.d.ts +2 -1
- package/plugins/font-size/font-size.editor.d.ts +3 -4
- package/plugins/heading/heading.editor.d.ts +3 -4
- package/plugins/heading/heading.plugin.d.ts +2 -2
- package/plugins/hr/hr.component.d.ts +3 -3
- package/plugins/hr/hr.editor.d.ts +3 -3
- package/plugins/hr/hr.plugin.d.ts +2 -1
- package/plugins/image/image.component.d.ts +2 -3
- package/plugins/image/image.editor.d.ts +8 -7
- package/plugins/indent/indent.editor.d.ts +3 -4
- package/plugins/indent/indent.plugin.d.ts +2 -1
- package/plugins/indent/on-keydown-indent.d.ts +2 -2
- package/plugins/inline-code/inline-code.component.d.ts +2 -3
- package/plugins/inline-code/inline-code.editor.d.ts +6 -5
- package/plugins/inline-code/inline-code.plugin.d.ts +2 -1
- package/plugins/link/edit/link-edit.component.d.ts +4 -3
- package/plugins/link/hover/link-hover.component.d.ts +1 -1
- package/plugins/link/link.component.d.ts +2 -3
- package/plugins/link/link.editor.d.ts +5 -5
- package/plugins/link/link.plugin.d.ts +2 -1
- package/plugins/list/components/bulleted-list.component.d.ts +2 -3
- package/plugins/list/components/list-item.component.d.ts +3 -3
- package/plugins/list/components/numbered-list.component.d.ts +2 -3
- package/plugins/list/list.editor.d.ts +11 -9
- package/plugins/list/list.plugin.d.ts +2 -1
- package/plugins/list/normalizers/get-list-normalizer.d.ts +3 -2
- package/plugins/list/normalizers/normalize-list-item.d.ts +3 -2
- package/plugins/list/normalizers/normalize-no.d.ts +3 -2
- package/plugins/list/on-key-down-list.d.ts +2 -2
- package/plugins/list/queries/get-list-item-entry.d.ts +3 -2
- package/plugins/list/queries/get-start-list-item.d.ts +2 -2
- package/plugins/list/queries/has-list-in-list-item.d.ts +5 -4
- package/plugins/list/queries/is-in-list.d.ts +3 -2
- package/plugins/list/queries/is-list-nested.d.ts +3 -2
- package/plugins/list/queries/is-list.d.ts +2 -2
- package/plugins/list/queries/is-node-type-list.d.ts +2 -1
- package/plugins/list/queries/is-selection-at-list-item-start.d.ts +2 -2
- package/plugins/list/queries/is-selection-in-same-list-item.d.ts +2 -2
- package/plugins/list/transforms/insert-list-data.d.ts +5 -3
- package/plugins/list/transforms/insert-list-item.d.ts +2 -2
- package/plugins/list/transforms/move-list-item-down.d.ts +3 -2
- package/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.d.ts +3 -2
- package/plugins/list/transforms/move-list-item-sublist-items-to-list.d.ts +3 -2
- package/plugins/list/transforms/move-list-item-up.d.ts +3 -2
- package/plugins/list/transforms/unwrap-list.d.ts +2 -2
- package/plugins/mark/mark.editor.d.ts +3 -2
- package/plugins/mark/mark.plugin.d.ts +2 -1
- package/plugins/mention/mention.plugin.d.ts +2 -1
- package/plugins/mention/suggestion.component.d.ts +1 -1
- package/plugins/node-id/node-id.plugin.d.ts +2 -2
- package/plugins/normalizers/insert-paragraph-nodes.d.ts +2 -1
- package/plugins/normalizers/trailing-node.plugin.d.ts +2 -2
- package/plugins/quick-insert/components/quick-insert.component.d.ts +3 -3
- package/plugins/quick-insert/quick-insert.editor.d.ts +6 -6
- package/plugins/quick-insert/quick-insert.plugin.d.ts +3 -3
- package/plugins/table/components/insert-mark/insert-mark.component.d.ts +3 -3
- package/plugins/table/components/table.component.d.ts +2 -3
- package/plugins/table/components/td/td.component.d.ts +2 -2
- package/plugins/table/components/toolbar/table-options.component.d.ts +3 -3
- package/plugins/table/components/toolbar/table-toolbar.component.d.ts +3 -3
- package/plugins/table/table.editor.d.ts +11 -11
- package/plugins/table/table.store.d.ts +12 -12
- package/plugins/table/table.types.d.ts +4 -3
- package/plugins/table/transforms/clear-cell.d.ts +3 -2
- package/plugins/table/transforms/clear-table-node.d.ts +2 -2
- package/plugins/table/transforms/insert-column.d.ts +5 -4
- package/plugins/table/transforms/insert-row.d.ts +2 -2
- package/plugins/table/transforms/insert-table.d.ts +3 -2
- package/plugins/table/transforms/remove-column.d.ts +2 -2
- package/plugins/table/transforms/remove-row.d.ts +2 -2
- package/plugins/table/transforms/remove-table.d.ts +2 -2
- package/plugins/table/utils/calc-anchor-position.d.ts +2 -2
- package/plugins/table/utils/cell-position.d.ts +3 -3
- package/plugins/table/utils/create-table-position.d.ts +3 -2
- package/plugins/table/utils/get-min-max-cell-index.d.ts +2 -2
- package/plugins/table/utils/get-select-cell-node.d.ts +3 -3
- package/plugins/table/utils/handle-cell.d.ts +3 -2
- package/plugins/table/utils/is-range-in-table.d.ts +3 -2
- package/plugins/table/utils/is-selection-in-table.d.ts +3 -3
- package/plugins/table/utils/merge-cell.d.ts +6 -5
- package/plugins/table/utils/set-menu-cell-invisibility.d.ts +2 -2
- package/plugins/table/utils/split-cell.d.ts +3 -3
- package/plugins/table/utils/table-entry.d.ts +5 -5
- package/plugins/todo-item/todo-item.component.d.ts +2 -3
- package/plugins/todo-item/todo-item.editor.d.ts +3 -3
- package/plugins/todo-item/todo-item.plugin.d.ts +2 -1
- package/plugins/vertical-align/toolbar-item.component.d.ts +2 -3
- package/queries/anchor-block-entry.d.ts +4 -2
- package/queries/anchor-block.d.ts +3 -2
- package/queries/anchor-inline-entry.d.ts +3 -2
- package/queries/find-descendant.d.ts +3 -2
- package/queries/find-node.d.ts +3 -3
- package/queries/get-above-by-type.d.ts +2 -3
- package/queries/get-above.d.ts +3 -3
- package/queries/get-anchor-block-entry.d.ts +4 -2
- package/queries/get-block-above.d.ts +3 -3
- package/queries/get-block-card-above.d.ts +3 -3
- package/queries/get-block-card-cursor.d.ts +2 -2
- package/queries/get-container-blocks.d.ts +2 -2
- package/queries/get-last-node.d.ts +3 -2
- package/queries/get-node.d.ts +3 -2
- package/queries/get-nodes-by-type.d.ts +2 -3
- package/queries/get-nodes.d.ts +2 -3
- package/queries/get-parent.d.ts +3 -3
- package/queries/get-plain-text.d.ts +2 -2
- package/queries/get-plugin-by-toolbar.d.ts +2 -3
- package/queries/get-point-before.d.ts +3 -2
- package/queries/get-point-from-location.d.ts +3 -2
- package/queries/get-rang-from-block-start.d.ts +2 -3
- package/queries/get-range-before.d.ts +3 -2
- package/queries/get-selection-marks.d.ts +2 -2
- package/queries/get-selection-nodes-by-type.d.ts +3 -2
- package/queries/get-text.d.ts +3 -2
- package/queries/get-toolbar-disabled.d.ts +2 -3
- package/queries/is-across-blocks.d.ts +3 -2
- package/queries/is-ancestor-empty.d.ts +3 -2
- package/queries/is-block-above-empty.d.ts +2 -2
- package/queries/is-block-active.d.ts +2 -2
- package/queries/is-block-card-cursor.d.ts +2 -2
- package/queries/is-block-text-empty-after-selection.d.ts +2 -2
- package/queries/is-contain-nested-type.d.ts +2 -2
- package/queries/is-container-type.d.ts +3 -2
- package/queries/is-empty-content-filter.d.ts +2 -2
- package/queries/is-empty-paragraph-by-path.d.ts +3 -2
- package/queries/is-empty-paragraph.d.ts +6 -4
- package/queries/is-global-collapsed.d.ts +2 -2
- package/queries/is-include-types.d.ts +2 -2
- package/queries/is-node-type-in.d.ts +2 -3
- package/queries/is-paragraph.d.ts +2 -2
- package/queries/is-range-across-blocks.d.ts +3 -3
- package/queries/is-start.d.ts +3 -2
- package/queries/some-node.d.ts +3 -2
- package/shortcuts/index.d.ts +2 -2
- package/shortcuts/mark.d.ts +2 -2
- package/test/utils/with-editor.d.ts +2 -0
- package/transforms/clear-marks.d.ts +2 -2
- package/transforms/close-conversion-hint.d.ts +2 -2
- package/transforms/delete-element.d.ts +3 -2
- package/transforms/handle-continual-delete-backward.d.ts +4 -3
- package/transforms/handle-continual-insert-break.d.ts +3 -3
- package/transforms/insert-elements.d.ts +3 -2
- package/transforms/insert-paragraph.d.ts +3 -2
- package/transforms/move-children.d.ts +3 -2
- package/transforms/on-keydown-reset-block-type.d.ts +2 -2
- package/transforms/set-end-selection.d.ts +2 -2
- package/transforms/set-marks.d.ts +3 -2
- package/transforms/set-node.d.ts +3 -2
- package/transforms/un-hang-range.d.ts +3 -2
- package/transforms/un-wrap.d.ts +2 -2
- package/transforms/unwrap-nodes-by-type.d.ts +2 -3
- package/utils/auto-focus.d.ts +2 -2
- package/utils/copy-node.d.ts +5 -3
- package/utils/create-paragraph.d.ts +2 -0
- package/utils/dom.d.ts +2 -2
- package/utils/editor-uuid.d.ts +3 -3
- package/utils/fragment.d.ts +7 -5
- package/utils/get-editable-element-height.d.ts +2 -2
- package/utils/get-toolbar-class.d.ts +2 -2
- package/utils/index.d.ts +1 -0
- package/utils/is-clean-empty-paragraph.d.ts +4 -3
- package/utils/is-inline.d.ts +3 -2
- package/utils/match.d.ts +2 -2
- package/utils/merge-element-options.d.ts +1 -1
- package/utils/scroll-into-view.d.ts +2 -2
- package/esm2020/components/listbox/listbox.mjs +0 -375
- package/esm2020/components/plugin-menu/plugin-menu.component.mjs +0 -191
- package/esm2020/components/template/template.component.mjs +0 -62
- package/esm2020/components/toolbar/toolbar.component.mjs +0 -266
- package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +0 -144
- package/esm2020/components/toolbar-group/toolbar-group.component.mjs +0 -122
- package/esm2020/constants/auto-format-rules.mjs +0 -167
- package/esm2020/constants/plugin-menu.mjs +0 -325
- package/esm2020/core/toolbar-item/base-toolbar-item.mjs +0 -87
- package/esm2020/core/utils/plugin-menu.mjs +0 -33
- package/esm2020/custom-types.mjs +0 -2
- package/esm2020/editor.module.mjs +0 -254
- package/esm2020/interfaces/auto-format.mjs +0 -2
- package/esm2020/interfaces/editor.mjs +0 -25
- package/esm2020/interfaces/plugins/plugin-menu.mjs +0 -19
- package/esm2020/interfaces/plugins/with-override.mjs +0 -2
- package/esm2020/interfaces/reset-block-type-plugin-options.mjs +0 -2
- package/esm2020/interfaces/toolbar.mjs +0 -12
- package/esm2020/pipes.mjs +0 -42
- package/esm2020/plugins/align/align.editor.mjs +0 -43
- package/esm2020/plugins/align/align.plugin.mjs +0 -64
- package/esm2020/plugins/autoformat/transforms/auto-format-block.mjs +0 -14
- package/esm2020/plugins/autoformat/transforms/auto-format-inline.mjs +0 -78
- package/esm2020/plugins/blockquote/blockquote.component.mjs +0 -21
- package/esm2020/plugins/blockquote/blockquote.editor.mjs +0 -20
- package/esm2020/plugins/blockquote/blockquote.plugin.mjs +0 -85
- package/esm2020/plugins/code/code.editor.mjs +0 -48
- package/esm2020/plugins/color/color.editor.mjs +0 -27
- package/esm2020/plugins/common/history.plugin.mjs +0 -31
- package/esm2020/plugins/common/transforms.plugin.mjs +0 -18
- package/esm2020/plugins/deserialize/deserialize-html.plugin.mjs +0 -53
- package/esm2020/plugins/deserialize/deserialize-md.plugin.mjs +0 -130
- package/esm2020/plugins/font-size/font-size.editor.mjs +0 -98
- package/esm2020/plugins/heading/heading.editor.mjs +0 -54
- package/esm2020/plugins/heading/heading.plugin.mjs +0 -136
- package/esm2020/plugins/hr/hr.editor.mjs +0 -16
- package/esm2020/plugins/hr/hr.plugin.mjs +0 -56
- package/esm2020/plugins/image/image.component.mjs +0 -420
- package/esm2020/plugins/image/image.editor.mjs +0 -81
- package/esm2020/plugins/indent/indent.editor.mjs +0 -78
- package/esm2020/plugins/indent/on-keydown-indent.mjs +0 -59
- package/esm2020/plugins/inline-code/inline-code.component.mjs +0 -26
- package/esm2020/plugins/inline-code/inline-code.editor.mjs +0 -48
- package/esm2020/plugins/inline-code/inline-code.plugin.mjs +0 -66
- package/esm2020/plugins/link/edit/link-edit.component.mjs +0 -103
- package/esm2020/plugins/link/link.component.mjs +0 -167
- package/esm2020/plugins/link/link.editor.mjs +0 -66
- package/esm2020/plugins/list/components/bulleted-list.component.mjs +0 -33
- package/esm2020/plugins/list/components/list-item.component.mjs +0 -93
- package/esm2020/plugins/list/components/numbered-list.component.mjs +0 -39
- package/esm2020/plugins/list/list.editor.mjs +0 -126
- package/esm2020/plugins/list/list.plugin.mjs +0 -312
- package/esm2020/plugins/list/normalizers/get-list-normalizer.mjs +0 -39
- package/esm2020/plugins/list/normalizers/normalize-list-item.mjs +0 -18
- package/esm2020/plugins/list/normalizers/normalize-no.mjs +0 -43
- package/esm2020/plugins/list/on-key-down-list.mjs +0 -33
- package/esm2020/plugins/list/queries/get-list-item-entry.mjs +0 -28
- package/esm2020/plugins/list/queries/get-start-list-item.mjs +0 -27
- package/esm2020/plugins/list/queries/has-list-in-list-item.mjs +0 -27
- package/esm2020/plugins/list/queries/is-in-list.mjs +0 -6
- package/esm2020/plugins/list/queries/is-list-nested.mjs +0 -10
- package/esm2020/plugins/list/queries/is-list.mjs +0 -5
- package/esm2020/plugins/list/queries/is-selection-at-list-item-start.mjs +0 -13
- package/esm2020/plugins/list/queries/is-selection-in-same-list-item.mjs +0 -17
- package/esm2020/plugins/list/transforms/insert-list-data.mjs +0 -72
- package/esm2020/plugins/list/transforms/insert-list-item.mjs +0 -73
- package/esm2020/plugins/list/transforms/move-list-item-down.mjs +0 -41
- package/esm2020/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.mjs +0 -43
- package/esm2020/plugins/list/transforms/move-list-item-sublist-items-to-list.mjs +0 -30
- package/esm2020/plugins/list/transforms/move-list-item-up.mjs +0 -78
- package/esm2020/plugins/list/transforms/unwrap-list.mjs +0 -10
- package/esm2020/plugins/mark/mark.editor.mjs +0 -28
- package/esm2020/plugins/mention/mention.plugin.mjs +0 -91
- package/esm2020/plugins/normalizers/remove-empty-nodes.mjs +0 -18
- package/esm2020/plugins/quick-insert/quick-insert.editor.mjs +0 -68
- package/esm2020/plugins/quick-insert/quick-insert.plugin.mjs +0 -104
- package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +0 -104
- package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +0 -189
- package/esm2020/plugins/table/table.editor.mjs +0 -209
- package/esm2020/plugins/table/table.plugin.mjs +0 -544
- package/esm2020/plugins/table/table.store.mjs +0 -426
- package/esm2020/plugins/table/table.types.mjs +0 -60
- package/esm2020/plugins/table/transforms/clear-cell.mjs +0 -14
- package/esm2020/plugins/table/transforms/clear-table-node.mjs +0 -27
- package/esm2020/plugins/table/transforms/insert-column.mjs +0 -69
- package/esm2020/plugins/table/transforms/insert-row.mjs +0 -50
- package/esm2020/plugins/table/transforms/insert-table.mjs +0 -15
- package/esm2020/plugins/table/transforms/remove-column.mjs +0 -51
- package/esm2020/plugins/table/transforms/remove-row.mjs +0 -48
- package/esm2020/plugins/table/transforms/remove-table.mjs +0 -49
- package/esm2020/plugins/table/utils/calc-anchor-position.mjs +0 -25
- package/esm2020/plugins/table/utils/cell-position.mjs +0 -60
- package/esm2020/plugins/table/utils/create-table-position.mjs +0 -10
- package/esm2020/plugins/table/utils/get-min-max-cell-index.mjs +0 -69
- package/esm2020/plugins/table/utils/get-select-cell-node.mjs +0 -23
- package/esm2020/plugins/table/utils/handle-cell.mjs +0 -25
- package/esm2020/plugins/table/utils/is-range-in-table.mjs +0 -16
- package/esm2020/plugins/table/utils/is-selection-in-table.mjs +0 -51
- package/esm2020/plugins/table/utils/merge-cell.mjs +0 -108
- package/esm2020/plugins/table/utils/set-menu-cell-invisibility.mjs +0 -45
- package/esm2020/plugins/table/utils/split-cell.mjs +0 -29
- package/esm2020/plugins/table/utils/table-entry.mjs +0 -21
- package/esm2020/plugins/todo-item/todo-item.editor.mjs +0 -32
- package/esm2020/plugins/todo-item/todo-item.plugin.mjs +0 -93
- package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +0 -83
- package/esm2020/queries/anchor-block-entry.mjs +0 -13
- package/esm2020/queries/anchor-block.mjs +0 -6
- package/esm2020/queries/anchor-inline-entry.mjs +0 -10
- package/esm2020/queries/find-node.mjs +0 -45
- package/esm2020/queries/get-above-by-type.mjs +0 -14
- package/esm2020/queries/get-above.mjs +0 -9
- package/esm2020/queries/get-anchor-block-entry.mjs +0 -8
- package/esm2020/queries/get-block-above.mjs +0 -10
- package/esm2020/queries/get-block-card-above.mjs +0 -10
- package/esm2020/queries/get-block-card-cursor.mjs +0 -5
- package/esm2020/queries/get-container-blocks.mjs +0 -12
- package/esm2020/queries/get-insert-elements-path.mjs +0 -44
- package/esm2020/queries/get-node.mjs +0 -10
- package/esm2020/queries/get-nodes-by-type.mjs +0 -15
- package/esm2020/queries/get-nodes.mjs +0 -7
- package/esm2020/queries/get-parent.mjs +0 -12
- package/esm2020/queries/get-plain-text.mjs +0 -16
- package/esm2020/queries/get-plugin-by-toolbar.mjs +0 -13
- package/esm2020/queries/get-point-from-location.mjs +0 -15
- package/esm2020/queries/get-rang-from-block-start.mjs +0 -16
- package/esm2020/queries/get-range-before.mjs +0 -17
- package/esm2020/queries/get-selection-nodes-by-type.mjs +0 -30
- package/esm2020/queries/get-text.mjs +0 -9
- package/esm2020/queries/get-toolbar-disabled.mjs +0 -13
- package/esm2020/queries/is-across-blocks.mjs +0 -7
- package/esm2020/queries/is-ancestor-empty.mjs +0 -6
- package/esm2020/queries/is-block-above-empty.mjs +0 -11
- package/esm2020/queries/is-block-active.mjs +0 -8
- package/esm2020/queries/is-block-card-cursor.mjs +0 -4
- package/esm2020/queries/is-contain-nested-type.mjs +0 -29
- package/esm2020/queries/is-container-type.mjs +0 -3
- package/esm2020/queries/is-empty-content-filter.mjs +0 -23
- package/esm2020/queries/is-empty-paragraph-by-path.mjs +0 -7
- package/esm2020/queries/is-empty-paragraph.mjs +0 -28
- package/esm2020/queries/is-global-collapsed.mjs +0 -5
- package/esm2020/queries/is-include-types.mjs +0 -12
- package/esm2020/queries/is-node-type-in.mjs +0 -9
- package/esm2020/queries/is-node-type.mjs +0 -15
- package/esm2020/queries/is-paragraph.mjs +0 -9
- package/esm2020/queries/is-range-across-blocks.mjs +0 -22
- package/esm2020/queries/is-start.mjs +0 -6
- package/esm2020/queries/some-node.mjs +0 -9
- package/esm2020/shortcuts/mark.mjs +0 -25
- package/esm2020/test/utils/with-plugin.mjs +0 -11
- package/esm2020/transforms/close-conversion-hint.mjs +0 -8
- package/esm2020/transforms/handle-continual-delete-backward.mjs +0 -18
- package/esm2020/transforms/handle-continual-insert-break.mjs +0 -20
- package/esm2020/transforms/insert-elements.mjs +0 -38
- package/esm2020/transforms/insert-paragraph.mjs +0 -6
- package/esm2020/transforms/move-children.mjs +0 -22
- package/esm2020/transforms/on-keydown-reset-block-type.mjs +0 -23
- package/esm2020/transforms/set-marks.mjs +0 -9
- package/esm2020/transforms/set-node.mjs +0 -6
- package/esm2020/transforms/un-hang-range.mjs +0 -11
- package/esm2020/transforms/un-wrap.mjs +0 -12
- package/esm2020/transforms/unwrap-nodes-by-type.mjs +0 -14
- package/esm2020/utils/copy-node.mjs +0 -32
- package/esm2020/utils/create-empty-paragraph.mjs +0 -14
- package/esm2020/utils/editor-uuid.mjs +0 -8
- package/esm2020/utils/fragment.mjs +0 -74
- package/esm2020/utils/get-editable-element-height.mjs +0 -6
- package/esm2020/utils/get-toolbar-class.mjs +0 -6
- package/esm2020/utils/index.mjs +0 -19
- package/esm2020/utils/insert-data-by-invalid-type.mjs +0 -62
- package/esm2020/utils/is-clean-empty-paragraph.mjs +0 -37
- package/esm2020/utils/is-inline.mjs +0 -9
- package/esm2020/utils/merge-element-options.mjs +0 -19
- package/esm2020/utils/scroll-into-view.mjs +0 -38
- package/fesm2015/worktile-theia.mjs +0 -16674
- package/fesm2015/worktile-theia.mjs.map +0 -1
- package/fesm2020/worktile-theia.mjs.map +0 -1
- /package/{esm2020 → esm2022}/components/column-resize/resize-ref.mjs +0 -0
- /package/{esm2020 → esm2022}/components/column-resize/selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/components/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/listbox/listbox.type.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/code.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/color-select.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/default.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/error.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/index.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/node-types.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/selector.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/toolbar.mjs +0 -0
- /package/{esm2020 → esm2022}/core/create-plugin.mjs +0 -0
- /package/{esm2020 → esm2022}/core/create-toolbar.mjs +0 -0
- /package/{esm2020 → esm2022}/core/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/flatten-deep-plugins.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/get-plugin-options.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/get-plugin.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/get-plugins.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/merge-array.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/merge-deep-plugins.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/merge-options.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/nested-structure-by-key.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/plugins-by-key.mjs +0 -0
- /package/{esm2020 → esm2022}/core/with-theia.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/element.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/image.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/index.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/plugins/index.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/plugins/no-infer.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/plugins/plugin-key.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/plugins/plugins.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/upload.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/utility/index.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/utility/nested-structure-by-key.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/utility/override-by-key.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/utility/types.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/valid-children-types.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/color/color.plugin.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/image/image.plugin.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/index.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/link/link.types.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/list/queries/get-list-item-sublist.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/list/queries/get-list-types.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/list/types.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/mention/index.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/mention/mention.type.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/soft-break/soft-break.plugin.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/soft-break/soft-break.types.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/transforms/index.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/add-columns.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/calc-span.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/calculate-table.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/create-cell.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/create-row.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/create-table.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/get-grid-columns.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/is-header-row.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/is-legal-table.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/is-virtual-key.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/next-path.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/normalize-table.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/remove-columns.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/remove-row-column.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/set-cells-background-color.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/set-node-options.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/table-position.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/vertical-align/vertical-align.editor.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/find-path.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/get-directly-parent.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/get-last-child-path.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/get-next-sibling-nodes.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/get-previous-path.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/index.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/is-ancestor.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/is-collapsed.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/is-descendant.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/is-first-child.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/is-point-at-root.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/is-range-at-root.mjs +0 -0
- /package/{esm2020 → esm2022}/test/index.mjs +0 -0
- /package/{esm2020 → esm2022}/transforms/apply-deep-to-nodes.mjs +0 -0
- /package/{esm2020 → esm2022}/transforms/index.mjs +0 -0
- /package/{esm2020 → esm2022}/transforms/merge-deep-to-nodes.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/blob.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/cast-array.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/color-picker.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/common.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/data-transform.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/id-creator.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/lodash.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/refocus.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/weak-maps.mjs +0 -0
- /package/{esm2020 → esm2022}/worktile-theia.mjs +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from './editor';
|
|
2
2
|
export interface AutoFormatRule {
|
|
3
3
|
/**
|
|
4
4
|
* Triggering character to autoformat. Default is space.
|
|
@@ -12,7 +12,7 @@ export interface AutoFormatRule {
|
|
|
12
12
|
* One or more markup that should be before the triggering character to autoformat.
|
|
13
13
|
*/
|
|
14
14
|
markup?: string | string[];
|
|
15
|
-
match?: (editor:
|
|
15
|
+
match?: (editor: TheEditor, markup: string | string[]) => any;
|
|
16
16
|
/**
|
|
17
17
|
* Lookup for a range between two strings before a location.
|
|
18
18
|
*/
|
|
@@ -21,11 +21,11 @@ export interface AutoFormatRule {
|
|
|
21
21
|
* Function called before formatting.
|
|
22
22
|
* Generally used to reset the selected block.
|
|
23
23
|
*/
|
|
24
|
-
preFormat?: (editor:
|
|
24
|
+
preFormat?: (editor: TheEditor) => void;
|
|
25
25
|
/**
|
|
26
26
|
* Custom formatting function.
|
|
27
27
|
*/
|
|
28
|
-
format?: (editor:
|
|
28
|
+
format?: (editor: TheEditor, markup: string | string[]) => void;
|
|
29
29
|
/**
|
|
30
30
|
* - block (default) – set/insert block. Should be used with `markup`.
|
|
31
31
|
* - inline – insert mark between markups. Should be used with `between`.
|
|
@@ -54,7 +54,7 @@ export interface AutoFormatRule {
|
|
|
54
54
|
/**
|
|
55
55
|
* Query to allow autoformat.
|
|
56
56
|
*/
|
|
57
|
-
query?: (editor:
|
|
57
|
+
query?: (editor: TheEditor, rule: Omit<AutoFormatRule, 'query'>) => boolean;
|
|
58
58
|
}
|
|
59
59
|
export interface WithAutoFormatOptions {
|
|
60
60
|
/**
|
package/interfaces/editor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { Ancestor, Range, Path, Point, Node, Span, NodeEntry,
|
|
2
|
+
import { Ancestor, Range, Path, Point, Node, Span, NodeEntry, Element, Text } from 'slate';
|
|
3
3
|
import { AngularEditor, SlatePlaceholder, ViewType } from 'slate-angular';
|
|
4
4
|
import { HistoryEditor } from 'slate-history';
|
|
5
5
|
import { ElementOptionsInfo } from './valid-children-types';
|
|
@@ -28,6 +28,7 @@ export declare const TheEditor: {
|
|
|
28
28
|
findKey(editor: AngularEditor, node: Node): import("slate-angular").Key;
|
|
29
29
|
onError(errorData: import("slate-angular").SlateError): void;
|
|
30
30
|
findPath(editor: AngularEditor, node: Node): Path;
|
|
31
|
+
isNodeInEditor(editor: AngularEditor, node: Node): boolean;
|
|
31
32
|
findDocumentOrShadowRoot(editor: AngularEditor): Document | ShadowRoot;
|
|
32
33
|
isFocused(editor: AngularEditor): boolean;
|
|
33
34
|
isReadonly(editor: AngularEditor): boolean;
|
|
@@ -43,20 +44,21 @@ export declare const TheEditor: {
|
|
|
43
44
|
insertTextData(editor: AngularEditor, data: DataTransfer): boolean;
|
|
44
45
|
onKeydown(editor: AngularEditor, data: KeyboardEvent): void;
|
|
45
46
|
onClick(editor: AngularEditor, data: MouseEvent): void;
|
|
46
|
-
setFragmentData(editor: AngularEditor, data: DataTransfer, originEvent?: "
|
|
47
|
+
setFragmentData(editor: AngularEditor, data: DataTransfer, originEvent?: "drag" | "copy" | "cut"): void;
|
|
47
48
|
deleteCutData(editor: AngularEditor): void;
|
|
48
49
|
toDOMNode(editor: AngularEditor, node: Node): HTMLElement;
|
|
49
50
|
toDOMPoint(editor: AngularEditor, point: import("slate").BasePoint): import("slate-angular").DOMPoint;
|
|
50
51
|
toDOMRange(editor: AngularEditor, range: import("slate").BaseRange): globalThis.Range;
|
|
51
52
|
toSlateNode(editor: AngularEditor, domNode: globalThis.Node): Node;
|
|
52
53
|
findEventRange(editor: AngularEditor, event: any): import("slate").BaseRange;
|
|
54
|
+
isLeafInEditor(editor: AngularEditor, leafNode: globalThis.Element): boolean;
|
|
53
55
|
toSlatePoint(editor: AngularEditor, domPoint: import("slate-angular").DOMPoint): import("slate").BasePoint;
|
|
54
|
-
toSlateRange(editor: AngularEditor, domRange:
|
|
56
|
+
toSlateRange(editor: AngularEditor, domRange: Selection | globalThis.Range | StaticRange): import("slate").BaseRange;
|
|
55
57
|
isLeafBlock(editor: AngularEditor, node: Node): boolean;
|
|
56
58
|
isBlockCardLeftCursor(editor: AngularEditor): boolean;
|
|
57
59
|
isBlockCardRightCursor(editor: AngularEditor): boolean;
|
|
58
60
|
getCardCursorNode(editor: AngularEditor, blockCardNode: Node, options: {
|
|
59
|
-
direction: "
|
|
61
|
+
direction: "left" | "right" | "center";
|
|
60
62
|
}): ChildNode;
|
|
61
63
|
toSlateCardEntry(editor: AngularEditor, node: globalThis.Node): NodeEntry<Node>;
|
|
62
64
|
moveBlockCard(editor: AngularEditor, blockCardNode: Node, options: {
|
|
@@ -101,8 +103,8 @@ export interface TheOptions {
|
|
|
101
103
|
menu?: ThePluginMenuItemConfig[];
|
|
102
104
|
disablePlugins?: string[];
|
|
103
105
|
extraElementOptions?: ElementOptionsInfo[];
|
|
104
|
-
neededScrollIntoView?: (e:
|
|
105
|
-
placeholderDecorate?: (e:
|
|
106
|
+
neededScrollIntoView?: (e: TheEditor) => boolean;
|
|
107
|
+
placeholderDecorate?: (e: TheEditor) => SlatePlaceholder[];
|
|
106
108
|
}
|
|
107
109
|
export type NodeMatch<T = Node> = Predicate<T>;
|
|
108
110
|
export interface MatchOptions<T = Node> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../editor';
|
|
2
2
|
import { ThePluginMenuItemType } from '../../constants';
|
|
3
3
|
export type ThePluginMenuItemKey = string;
|
|
4
4
|
export interface ThePluginMenuItem {
|
|
@@ -11,10 +11,10 @@ export interface ThePluginMenuItem {
|
|
|
11
11
|
keywords?: string;
|
|
12
12
|
children?: Array<ThePluginMenuItem | 'divider'>;
|
|
13
13
|
displayKey?: string;
|
|
14
|
-
execute?: (editor:
|
|
15
|
-
active?: (editor:
|
|
16
|
-
isDisabled?: (editor:
|
|
17
|
-
isHidden?: (editor:
|
|
14
|
+
execute?: (editor: TheEditor) => void;
|
|
15
|
+
active?: (editor: TheEditor) => boolean | string;
|
|
16
|
+
isDisabled?: (editor: TheEditor) => boolean;
|
|
17
|
+
isHidden?: (editor: TheEditor) => boolean;
|
|
18
18
|
}
|
|
19
19
|
export interface ThePluginMenuGroup {
|
|
20
20
|
groupName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Editor } from 'slate';
|
|
2
1
|
import { WithThePlugin } from './plugins';
|
|
2
|
+
import { TheEditor } from '../editor';
|
|
3
3
|
/**
|
|
4
4
|
* theia 插件覆盖了 `editor` 方法。
|
|
5
5
|
* 命名约定是 `with*`。
|
|
6
6
|
*/
|
|
7
|
-
export type WithOverride<T = {}, P = {}> = (editor:
|
|
7
|
+
export type WithOverride<T = {}, P = {}> = (editor: TheEditor, plugin: WithThePlugin<T, P>) => TheEditor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from './editor';
|
|
2
2
|
export interface ResetBlockTypePluginRule {
|
|
3
3
|
/**
|
|
4
4
|
* Node types where the rule applies.
|
|
@@ -8,7 +8,7 @@ export interface ResetBlockTypePluginRule {
|
|
|
8
8
|
/**
|
|
9
9
|
* Additional condition to the rule.
|
|
10
10
|
*/
|
|
11
|
-
predicate: (editor:
|
|
11
|
+
predicate: (editor: TheEditor) => boolean;
|
|
12
12
|
/**
|
|
13
13
|
* Set node to this default type when resetting.
|
|
14
14
|
*/
|
|
@@ -16,7 +16,7 @@ export interface ResetBlockTypePluginRule {
|
|
|
16
16
|
/**
|
|
17
17
|
* Callback called when resetting.
|
|
18
18
|
*/
|
|
19
|
-
onReset?: (editor:
|
|
19
|
+
onReset?: (editor: TheEditor) => void;
|
|
20
20
|
}
|
|
21
21
|
export interface ResetBlockTypePluginOptions {
|
|
22
22
|
rules: ResetBlockTypePluginRule[];
|
package/interfaces/toolbar.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType } from '@angular/cdk/portal';
|
|
2
|
-
import {
|
|
2
|
+
import { TheEditor } from './editor';
|
|
3
3
|
import { ElementKinds, MarkTypes, DropdownMode } from '../constants';
|
|
4
4
|
import { PluginKey } from './plugins';
|
|
5
5
|
export type ToolbarKey = MarkTypes | ElementKinds | string;
|
|
@@ -19,10 +19,10 @@ export type ToolbarDefinition = {
|
|
|
19
19
|
interface ToolbarItemBase {
|
|
20
20
|
key: ToolbarKey;
|
|
21
21
|
pluginKey?: PluginKey;
|
|
22
|
-
execute?: (editor:
|
|
23
|
-
active?: (editor:
|
|
24
|
-
disable?: (editor:
|
|
25
|
-
transformToolbar?: (editor:
|
|
22
|
+
execute?: (editor: TheEditor) => void;
|
|
23
|
+
active?: (editor: TheEditor) => boolean | string;
|
|
24
|
+
disable?: (editor: TheEditor) => boolean;
|
|
25
|
+
transformToolbar?: (editor: TheEditor) => ToolbarDefinition | void;
|
|
26
26
|
styles?: {
|
|
27
27
|
[key: string]: string;
|
|
28
28
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { BaseElementComponent } from 'slate-angular';
|
|
3
|
-
import {
|
|
3
|
+
import { TheEditor } from './editor';
|
|
4
|
+
import { CustomElement } from '../custom-types';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TheBaseElementComponent<T extends
|
|
6
|
+
export declare class TheBaseElementComponent<T extends CustomElement = CustomElement, K extends TheEditor = TheEditor> extends BaseElementComponent<T, K> implements OnInit {
|
|
6
7
|
onContextChange(): void;
|
|
7
8
|
ngOnInit(): void;
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheBaseElementComponent<any, any>, never>;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktile/theia",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "theia editor",
|
|
5
|
-
"author": "
|
|
5
|
+
"author": "Maple13 <mr_daijc@163.com>",
|
|
6
6
|
"homepage": "https://github.com/atinc/theia#readme",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"repository": {
|
|
@@ -13,11 +13,9 @@
|
|
|
13
13
|
".": {
|
|
14
14
|
"sass": "./styles/index.scss",
|
|
15
15
|
"types": "./index.d.ts",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"node": "./fesm2015/worktile-theia.mjs",
|
|
20
|
-
"default": "./fesm2020/worktile-theia.mjs"
|
|
16
|
+
"esm2022": "./esm2022/worktile-theia.mjs",
|
|
17
|
+
"esm": "./esm2022/worktile-theia.mjs",
|
|
18
|
+
"default": "./fesm2022/worktile-theia.mjs"
|
|
21
19
|
},
|
|
22
20
|
"./styles/index": {
|
|
23
21
|
"sass": "./styles/index.scss"
|
|
@@ -33,7 +31,7 @@
|
|
|
33
31
|
"url": "https://github.com/atinc/theia/issues"
|
|
34
32
|
},
|
|
35
33
|
"dependencies": {
|
|
36
|
-
"tslib": "^2.
|
|
34
|
+
"tslib": "^2.6.0",
|
|
37
35
|
"slate-history": "^0.66.0",
|
|
38
36
|
"is-hotkey": "^0.1.6",
|
|
39
37
|
"is-url": "^1.2.4",
|
|
@@ -42,18 +40,14 @@
|
|
|
42
40
|
"peerDependencies": {
|
|
43
41
|
"is-hotkey": "^0.1.6",
|
|
44
42
|
"date-fns": ">= 2.6.0",
|
|
45
|
-
"slate-angular": "^
|
|
43
|
+
"slate-angular": "^16.0.0",
|
|
46
44
|
"slate": ">= 0.63.0",
|
|
47
|
-
"ngx-tethys": "^
|
|
48
|
-
"ng-codemirror": "^
|
|
45
|
+
"ngx-tethys": "^16.0.0-next.2",
|
|
46
|
+
"ng-codemirror": "^16.0.0-next.0",
|
|
49
47
|
"lodash": "3.10.1",
|
|
50
|
-
"@angular/core": "^
|
|
48
|
+
"@angular/core": "^16.2.1"
|
|
51
49
|
},
|
|
52
|
-
"module": "
|
|
53
|
-
"es2020": "fesm2020/worktile-theia.mjs",
|
|
54
|
-
"esm2020": "esm2020/worktile-theia.mjs",
|
|
55
|
-
"fesm2020": "fesm2020/worktile-theia.mjs",
|
|
56
|
-
"fesm2015": "fesm2015/worktile-theia.mjs",
|
|
50
|
+
"module": "fesm2022/worktile-theia.mjs",
|
|
57
51
|
"typings": "index.d.ts",
|
|
58
52
|
"sideEffects": false
|
|
59
53
|
}
|
package/pipes.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Element } from 'slate';
|
|
3
2
|
import { Alignment } from './constants/node-types';
|
|
3
|
+
import { CustomElement } from './custom-types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ElementStylePipe implements PipeTransform {
|
|
6
|
-
transform(element:
|
|
6
|
+
transform(element: CustomElement, align?: Alignment): {
|
|
7
7
|
[key: string]: string;
|
|
8
8
|
};
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementStylePipe, never>;
|
|
10
10
|
static ɵpipe: i0.ɵɵPipeDeclaration<ElementStylePipe, "elementStyle", false>;
|
|
11
11
|
}
|
|
12
12
|
export declare class ElementClassPipe implements PipeTransform {
|
|
13
|
-
transform(element:
|
|
13
|
+
transform(element: CustomElement): string;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementClassPipe, never>;
|
|
15
15
|
static ɵpipe: i0.ɵɵPipeDeclaration<ElementClassPipe, "elementClass", false>;
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
2
|
import { Alignment } from '../../constants';
|
|
3
3
|
export declare const AlignEditor: {
|
|
4
|
-
isActive(editor:
|
|
5
|
-
isDisabled(editor:
|
|
6
|
-
setAlign(editor:
|
|
4
|
+
isActive(editor: TheEditor, alignment: Alignment): boolean;
|
|
5
|
+
isDisabled(editor: TheEditor): boolean;
|
|
6
|
+
setAlign(editor: TheEditor, alignment: Alignment): void;
|
|
7
7
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withAlign: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createAlignPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AutoFormatRule } from '../../interfaces/auto-format';
|
|
2
|
+
import { TheEditor } from '../../interfaces';
|
|
2
3
|
export interface AutoFormatOptions {
|
|
3
4
|
autoFormatRules?: AutoFormatRule[];
|
|
4
5
|
}
|
|
5
|
-
export declare const withAutoFormat: <T extends
|
|
6
|
+
export declare const withAutoFormat: <T extends TheEditor>(editor: T) => T;
|
|
6
7
|
export declare const createAutoFormatPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, AutoFormatOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, AutoFormatOptions>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Location } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
3
|
+
export declare const autoFormatBlock: (editor: TheEditor, type: string, at: Location, { preFormat, format }: {
|
|
4
|
+
preFormat?: (editor: TheEditor) => void;
|
|
5
|
+
format?: (editor: TheEditor, markups?: string[]) => void;
|
|
5
6
|
}, markups?: string[]) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Editor } from 'slate';
|
|
2
1
|
import { MarkEditor } from '../../../plugins/mark/mark.editor';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
3
3
|
export declare const autoFormatInline: (editor: MarkEditor, { type, between, markup, ignoreTrim, format }: {
|
|
4
4
|
type: string;
|
|
5
5
|
between?: string[];
|
|
6
6
|
markup?: string;
|
|
7
7
|
ignoreTrim?: boolean;
|
|
8
|
-
format?: (editor:
|
|
8
|
+
format?: (editor: TheEditor, markup?: string) => void;
|
|
9
9
|
}) => boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { TheBaseElementComponent, TheEditor } from '../../interfaces';
|
|
3
|
+
import { CustomElement } from '../../custom-types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TheBlockquoteComponent extends TheBaseElementComponent<
|
|
5
|
+
export declare class TheBlockquoteComponent extends TheBaseElementComponent<CustomElement, TheEditor> {
|
|
6
6
|
elementRef: ElementRef;
|
|
7
7
|
cdr: ChangeDetectorRef;
|
|
8
8
|
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withBlockquote: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createBlockquotePlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -5,14 +5,13 @@ import { ThyNotifyService } from 'ngx-tethys/notify';
|
|
|
5
5
|
import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
|
|
6
6
|
import { ThyResizeEvent } from 'ngx-tethys/resizable';
|
|
7
7
|
import { Subject } from 'rxjs';
|
|
8
|
-
import { Editor } from 'slate';
|
|
9
8
|
import { TheToolbarDropdownComponent } from '../../components/toolbar-dropdown/toolbar-dropdown.component';
|
|
10
9
|
import { DropdownMode } from '../../constants';
|
|
11
10
|
import { CodeElement } from '../../custom-types';
|
|
12
|
-
import { DefaultToolbarItem, TheBaseElementComponent, TheModeConfig } from '../../interfaces';
|
|
11
|
+
import { DefaultToolbarItem, TheBaseElementComponent, TheModeConfig, TheEditor } from '../../interfaces';
|
|
13
12
|
import { TheContextService } from '../../services/context.service';
|
|
14
13
|
import * as i0 from "@angular/core";
|
|
15
|
-
export declare class TheCodeComponent extends TheBaseElementComponent<CodeElement,
|
|
14
|
+
export declare class TheCodeComponent extends TheBaseElementComponent<CodeElement, TheEditor> implements OnInit, AfterViewInit, OnDestroy {
|
|
16
15
|
elementRef: ElementRef;
|
|
17
16
|
cdr: ChangeDetectorRef;
|
|
18
17
|
private thyNotifyService;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Editor } from 'slate';
|
|
2
1
|
import { CodeElement } from '../../custom-types';
|
|
2
|
+
import { TheEditor } from '../../interfaces';
|
|
3
3
|
export declare const CodeEditor: {
|
|
4
|
-
setCodeAttribute(editor:
|
|
4
|
+
setCodeAttribute(editor: TheEditor, element: CodeElement, value: {
|
|
5
5
|
[key: string]: unknown;
|
|
6
6
|
}): void;
|
|
7
|
-
insertCode(editor:
|
|
7
|
+
insertCode(editor: TheEditor): void;
|
|
8
8
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withCode: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createCodePlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
2
|
import { ColorType } from '../../constants/color-select';
|
|
3
3
|
import { MarkTypes } from '../../constants/node-types';
|
|
4
4
|
export declare const ColorEditor: {
|
|
5
|
-
getActiveColor(editor:
|
|
6
|
-
setColor(editor:
|
|
5
|
+
getActiveColor(editor: TheEditor, type: MarkTypes.color | MarkTypes.backgroundColor): string;
|
|
6
|
+
setColor(editor: TheEditor, color: ColorType, type: MarkTypes.color | MarkTypes.backgroundColor): void;
|
|
7
7
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withBlockCard: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createBlockCardPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withInternalCommon: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createCommonPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CustomElementKinds } from '../../custom-types';
|
|
2
|
+
import { TheEditor } from '../../interfaces';
|
|
2
3
|
export interface GetFragmentPluginOptions {
|
|
3
4
|
types?: CustomElementKinds[];
|
|
4
5
|
}
|
|
5
|
-
export declare const withGetFragment: <T extends
|
|
6
|
+
export declare const withGetFragment: <T extends TheEditor>(editor: T) => T;
|
|
6
7
|
export declare const createGetFragmentPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, GetFragmentPluginOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, GetFragmentPluginOptions>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const UNDOING: WeakMap<
|
|
3
|
-
export declare const REDOING: WeakMap<
|
|
4
|
-
export declare const withTheHistory: <T extends
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const UNDOING: WeakMap<TheEditor, boolean>;
|
|
3
|
+
export declare const REDOING: WeakMap<TheEditor, boolean>;
|
|
4
|
+
export declare const withTheHistory: <T extends TheEditor>(editor: T) => T;
|
|
5
5
|
export declare const TheHistoryEditor: {
|
|
6
|
-
isUndoing(editor:
|
|
7
|
-
isRedoing(editor:
|
|
6
|
+
isUndoing(editor: TheEditor): boolean | undefined;
|
|
7
|
+
isRedoing(editor: TheEditor): boolean | undefined;
|
|
8
8
|
};
|
|
9
9
|
export declare const createTheHistoryPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withInsertDataByInvalidType: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createInsertDataByInvalidTypePlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withMoveSelection: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createMoveSelectionPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withRemoveEmpty: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createRemoveEmptyPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withRemoveVoid: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createRemoveVoidPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withResetType: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createResetTypePlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Transforms } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../interfaces';
|
|
2
3
|
type Params = Parameters<typeof Transforms.insertNodes>;
|
|
3
4
|
export interface TransformEditor {
|
|
4
5
|
insertNodes: (nodes: Params[1], options?: Params[2]) => void;
|
|
5
6
|
}
|
|
6
|
-
export declare const withTransforms: <T extends
|
|
7
|
+
export declare const withTransforms: <T extends TheEditor>(editor: T) => T & TransformEditor;
|
|
7
8
|
export declare const createTransformsPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
8
9
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withDeserializeHTML: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createDeserializeHTMLPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withDeserializeMd: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createDeserializeMdPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Editor } from 'slate';
|
|
2
1
|
import { FontSizes } from '../../constants';
|
|
3
2
|
import { TheEditor } from '../../interfaces';
|
|
4
3
|
export declare const FontSizeEditor: {
|
|
5
4
|
setFontSize(editor: TheEditor, size: FontSizes): void;
|
|
6
|
-
setFontSizeMark(editor:
|
|
7
|
-
unsetFontSize(editor:
|
|
8
|
-
isFontSizeActive(editor:
|
|
5
|
+
setFontSizeMark(editor: TheEditor, size: FontSizes): void;
|
|
6
|
+
unsetFontSize(editor: TheEditor, size: FontSizes): void;
|
|
7
|
+
isFontSizeActive(editor: TheEditor, size: FontSizes): boolean;
|
|
9
8
|
};
|
|
10
9
|
export declare const createFontSizePlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { HeadingElementKinds, ThePlugin } from '../../interfaces';
|
|
1
|
+
import { HeadingElementKinds, TheEditor, ThePlugin } from '../../interfaces';
|
|
3
2
|
import type { HeadingPluginOptions } from './heading.plugin';
|
|
4
3
|
export declare const headingOptions: HeadingPluginOptions;
|
|
5
4
|
export declare const HeadingEditor: {
|
|
6
|
-
setHeading(editor:
|
|
7
|
-
isHeadingActive(editor:
|
|
5
|
+
setHeading(editor: TheEditor, heading: HeadingElementKinds): void;
|
|
6
|
+
isHeadingActive(editor: TheEditor, heading: HeadingElementKinds): boolean;
|
|
8
7
|
headingPlugins(): ThePlugin<{}, {}>[];
|
|
9
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomElementKinds } from '../../custom-types';
|
|
2
|
-
import { ThePluginBaseOption } from '../../interfaces';
|
|
2
|
+
import { TheEditor, ThePluginBaseOption } from '../../interfaces';
|
|
3
3
|
export type HeadingPluginOptions = {
|
|
4
4
|
cleanupTypes: CustomElementKinds[];
|
|
5
5
|
} & ThePluginBaseOption;
|
|
6
|
-
export declare const withHeading: <T extends
|
|
6
|
+
export declare const withHeading: <T extends TheEditor>(editor: T) => T;
|
|
7
7
|
export declare const createHeadingPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, HeadingPluginOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, HeadingPluginOptions>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ElementRef, ChangeDetectorRef, AfterViewInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { TheBaseElementComponent } from '../../interfaces';
|
|
2
|
+
import { CustomElement } from '../../custom-types';
|
|
3
|
+
import { TheBaseElementComponent, TheEditor } from '../../interfaces';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TheHrComponent extends TheBaseElementComponent<
|
|
5
|
+
export declare class TheHrComponent extends TheBaseElementComponent<CustomElement, TheEditor> implements AfterViewInit {
|
|
6
6
|
elementRef: ElementRef;
|
|
7
7
|
cdr: ChangeDetectorRef;
|
|
8
8
|
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
2
|
export declare const HrEditor: {
|
|
3
|
-
insertHr(editor:
|
|
4
|
-
isHrActive(editor:
|
|
3
|
+
insertHr(editor: TheEditor): void;
|
|
4
|
+
isHrActive(editor: TheEditor): boolean;
|
|
5
5
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withHr: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createHrPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
2
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { ThyPopover } from 'ngx-tethys/popover';
|
|
4
|
-
import { Editor } from 'slate';
|
|
5
4
|
import { BeforeContextChange, SlateElementContext } from 'slate-angular';
|
|
6
5
|
import { Alignment, LayoutTypes } from '../../constants/node-types';
|
|
7
6
|
import { ImageElement } from '../../custom-types';
|
|
8
|
-
import { TheBaseElementComponent } from '../../interfaces';
|
|
7
|
+
import { TheBaseElementComponent, TheEditor } from '../../interfaces';
|
|
9
8
|
import { ImageEntry, LayoutOption, TheImageUploaderService } from '../../interfaces/image';
|
|
10
9
|
import { TheContextService } from '../../services/context.service';
|
|
11
10
|
import { ThyImageDirective, ThyImageGroupComponent } from 'ngx-tethys/image';
|
|
12
11
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class TheImageComponent extends TheBaseElementComponent<ImageElement,
|
|
12
|
+
export declare class TheImageComponent extends TheBaseElementComponent<ImageElement, TheEditor> implements OnInit, OnDestroy, AfterViewInit, BeforeContextChange<SlateElementContext> {
|
|
14
13
|
elementRef: ElementRef;
|
|
15
14
|
private imageUploaderService;
|
|
16
15
|
cdr: ChangeDetectorRef;
|