@worktile/theia 15.3.2 → 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/constants/default.d.ts +1 -1
- 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/{esm2020 → esm2022}/constants/default.mjs +2 -2
- 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 +398 -389
- 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/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,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Path } from 'slate';
|
|
2
2
|
import { Alignment, LayoutTypes } from '../../constants';
|
|
3
3
|
import { ImageElement } from '../../custom-types';
|
|
4
|
+
import { TheEditor } from '../../interfaces';
|
|
4
5
|
export declare const ImageEditor: {
|
|
5
|
-
openUpload(editor:
|
|
6
|
-
insertImages(editor:
|
|
7
|
-
handleBase64ImageElement(editor:
|
|
8
|
-
verifyImage(editor:
|
|
9
|
-
isImageActive(editor:
|
|
10
|
-
setImageNode(editor:
|
|
6
|
+
openUpload(editor: TheEditor): void;
|
|
7
|
+
insertImages(editor: TheEditor, imageFiles: FileList | File[]): void;
|
|
8
|
+
handleBase64ImageElement(editor: TheEditor, image: ImageElement): void;
|
|
9
|
+
verifyImage(editor: TheEditor, image: File): boolean;
|
|
10
|
+
isImageActive(editor: TheEditor): boolean;
|
|
11
|
+
setImageNode(editor: TheEditor, path: Path, partial: {
|
|
11
12
|
layout?: LayoutTypes;
|
|
12
13
|
align?: Alignment;
|
|
13
14
|
}): void;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Editor, Element } from 'slate';
|
|
2
1
|
import { TheEditor } from '../../interfaces';
|
|
3
|
-
import { CustomElementKinds } from '../../custom-types';
|
|
2
|
+
import { CustomElement, CustomElementKinds } from '../../custom-types';
|
|
4
3
|
export declare const IndentEditor: {
|
|
5
4
|
getAllowedTypes(editor: TheEditor): (import("../../constants").ElementKinds.image | import("../../constants").ElementKinds.paragraph | import("../../constants").ElementKinds.heading_1 | import("../../constants").ElementKinds.heading_2 | import("../../constants").ElementKinds.heading_3 | import("../../constants").ElementKinds.heading_4 | import("../../constants").ElementKinds.heading_5 | import("../../constants").ElementKinds.heading_6 | import("../../constants").ElementKinds.numberedList | import("../../constants").ElementKinds.bulletedList | import("../../constants").ElementKinds.listItem | import("../../constants").ElementKinds.checkItem | import("../../constants").ElementKinds.table | import("../../constants").ElementKinds.tableRow | import("../../constants").ElementKinds.tableCell | import("../../constants").ElementKinds.code | import("../../constants").ElementKinds.blockquote | import("../../constants").ElementKinds.hr | import("../../constants").ElementKinds.link | import("../../constants").ElementKinds.inlineCode)[];
|
|
6
5
|
setIndent(editor: TheEditor): void;
|
|
7
|
-
cancelIndent(editor:
|
|
6
|
+
cancelIndent(editor: TheEditor): void;
|
|
8
7
|
setTextIndent(editor: TheEditor, kinds: CustomElementKinds[], textIndent: number): void;
|
|
9
|
-
cancelTextIntent(editor: TheEditor, event: KeyboardEvent, anchorBlock:
|
|
8
|
+
cancelTextIntent(editor: TheEditor, event: KeyboardEvent, anchorBlock: CustomElement, kinds: CustomElementKinds[]): boolean;
|
|
10
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CustomElementKinds } from '../../custom-types';
|
|
2
|
+
import { TheEditor } from '../../interfaces';
|
|
2
3
|
export interface IndentPluginOptions {
|
|
3
4
|
maxIndent?: number;
|
|
4
5
|
allowedTypes?: CustomElementKinds[];
|
|
5
6
|
disableIndentTypes?: CustomElementKinds[];
|
|
6
7
|
}
|
|
7
|
-
export declare const withIndent: <T extends
|
|
8
|
+
export declare const withIndent: <T extends TheEditor>(editor: T) => T;
|
|
8
9
|
export declare const createIndentPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, IndentPluginOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, IndentPluginOptions>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Editor } from 'slate';
|
|
2
1
|
import { CustomElementKinds } from '../../custom-types';
|
|
3
|
-
|
|
2
|
+
import { TheEditor } from '../../interfaces';
|
|
3
|
+
export declare const onKeydownTextIndent: (editor: TheEditor, event: KeyboardEvent, kinds: CustomElementKinds[], textIndentDisabled: CustomElementKinds[]) => boolean;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Editor } from 'slate';
|
|
2
1
|
import { InlineCodeElement } from '../../custom-types';
|
|
3
|
-
import { TheBaseElementComponent } from '../../interfaces';
|
|
2
|
+
import { TheBaseElementComponent, TheEditor } from '../../interfaces';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TheInlineCodeComponent extends TheBaseElementComponent<InlineCodeElement,
|
|
4
|
+
export declare class TheInlineCodeComponent extends TheBaseElementComponent<InlineCodeElement, TheEditor> {
|
|
6
5
|
inlineChromiumBugfix: string;
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheInlineCodeComponent, never>;
|
|
8
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<TheInlineCodeComponent, "span[theInlineCode]", never, {}, {}, never, never, false, never>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Path } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../interfaces';
|
|
2
3
|
export declare const InlineCodeEditor: {
|
|
3
|
-
toggleInlineCode(editor:
|
|
4
|
-
wrapInlineCode(editor:
|
|
5
|
-
unwrapInlineCode(editor:
|
|
6
|
-
isInlineCodeActive(editor:
|
|
4
|
+
toggleInlineCode(editor: TheEditor, text?: string): void;
|
|
5
|
+
wrapInlineCode(editor: TheEditor, text?: string): void;
|
|
6
|
+
unwrapInlineCode(editor: TheEditor): void;
|
|
7
|
+
isInlineCodeActive(editor: TheEditor, path?: Path): boolean;
|
|
7
8
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withInlineCode: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createInlineCodePlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ThyPopoverRef } from 'ngx-tethys/popover';
|
|
3
|
-
import { Range, Node
|
|
3
|
+
import { Range, Node } from 'slate';
|
|
4
|
+
import { TheEditor } from '../../../interfaces';
|
|
4
5
|
import { LinkTags } from '../link.types';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class TheLinkEditComponent implements OnInit {
|
|
@@ -11,7 +12,7 @@ export declare class TheLinkEditComponent implements OnInit {
|
|
|
11
12
|
link: string;
|
|
12
13
|
text: string;
|
|
13
14
|
originSelection: Range;
|
|
14
|
-
editor:
|
|
15
|
+
editor: TheEditor;
|
|
15
16
|
originLink: string;
|
|
16
17
|
originText: string;
|
|
17
18
|
validatorConfig: {
|
|
@@ -31,5 +32,5 @@ export declare class TheLinkEditComponent implements OnInit {
|
|
|
31
32
|
closePopover(type?: string): void;
|
|
32
33
|
applyLink(form: any): void;
|
|
33
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheLinkEditComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TheLinkEditComponent, "the-link-edit", never, { "tag": "tag"; "node": "node"; "link": "link"; "text": "text"; "originSelection": "originSelection"; }, {}, never, never, false, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheLinkEditComponent, "the-link-edit", never, { "tag": { "alias": "tag"; "required": false; }; "node": { "alias": "node"; "required": false; }; "link": { "alias": "link"; "required": false; }; "text": { "alias": "text"; "required": false; }; "originSelection": { "alias": "originSelection"; "required": false; }; }, {}, never, never, false, never>;
|
|
35
36
|
}
|
|
@@ -11,5 +11,5 @@ export declare class TheLinkHoverComponent implements OnInit {
|
|
|
11
11
|
editLink(event: MouseEvent): void;
|
|
12
12
|
removeLink(event: MouseEvent): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheLinkHoverComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TheLinkHoverComponent, "the-link-hover", never, { "link": "link"; "dom": "dom"; "editHandle": "editHandle"; "deleteHandle": "deleteHandle"; }, {}, never, never, false, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheLinkHoverComponent, "the-link-hover", never, { "link": { "alias": "link"; "required": false; }; "dom": { "alias": "dom"; "required": false; }; "editHandle": { "alias": "editHandle"; "required": false; }; "deleteHandle": { "alias": "deleteHandle"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
15
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
2
|
import { OnInit, ElementRef, OnDestroy, ChangeDetectorRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
|
|
4
|
-
import { Editor } from 'slate';
|
|
5
4
|
import { LinkElement } from '../../custom-types';
|
|
6
|
-
import { TheBaseElementComponent } from '../../interfaces';
|
|
5
|
+
import { TheBaseElementComponent, TheEditor } from '../../interfaces';
|
|
7
6
|
import { LinkTags } from './link.types';
|
|
8
7
|
import { SlateElementContext } from 'slate-angular';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class TheBaseLinkComponent extends TheBaseElementComponent<LinkElement,
|
|
9
|
+
export declare class TheBaseLinkComponent extends TheBaseElementComponent<LinkElement, TheEditor> implements OnInit, OnDestroy {
|
|
11
10
|
elementRef: ElementRef;
|
|
12
11
|
cdr: ChangeDetectorRef;
|
|
13
12
|
private thyPopover;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
2
|
export declare const LinkEditor: {
|
|
3
|
-
insertLink(editor:
|
|
4
|
-
isLinkActive(editor:
|
|
5
|
-
wrapLink(editor:
|
|
6
|
-
unwrapLink(editor:
|
|
3
|
+
insertLink(editor: TheEditor): void;
|
|
4
|
+
isLinkActive(editor: TheEditor): boolean;
|
|
5
|
+
wrapLink(editor: TheEditor, text: string, url: string): void;
|
|
6
|
+
unwrapLink(editor: TheEditor): void;
|
|
7
7
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare const withLink: <T extends TheEditor>(editor: T) => T;
|
|
2
3
|
export declare const createLinkPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { OnInit, ElementRef, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { Editor } from 'slate';
|
|
3
2
|
import { BulletedListElement } from '../../../custom-types';
|
|
4
|
-
import { TheBaseElementComponent } from '../../../interfaces';
|
|
3
|
+
import { TheBaseElementComponent, TheEditor } from '../../../interfaces';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TheBulletedListComponent extends TheBaseElementComponent<BulletedListElement,
|
|
5
|
+
export declare class TheBulletedListComponent extends TheBaseElementComponent<BulletedListElement, TheEditor> implements OnInit, OnDestroy {
|
|
7
6
|
elementRef: ElementRef;
|
|
8
7
|
cdr: ChangeDetectorRef;
|
|
9
8
|
get level(): number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit, ElementRef, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { TheBaseElementComponent, TheEditor } from '../../../interfaces';
|
|
3
|
+
import { ListItemElement } from '../../../custom-types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TheListItemComponent extends TheBaseElementComponent<
|
|
5
|
+
export declare class TheListItemComponent extends TheBaseElementComponent<ListItemElement, TheEditor> implements OnInit, OnDestroy {
|
|
6
6
|
elementRef: ElementRef;
|
|
7
7
|
cdr: ChangeDetectorRef;
|
|
8
8
|
fontSizeClass: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { OnInit, ElementRef, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { Editor } from 'slate';
|
|
3
2
|
import { NumberedListElement } from '../../../custom-types';
|
|
4
|
-
import { TheBaseElementComponent } from '../../../interfaces';
|
|
3
|
+
import { TheBaseElementComponent, TheEditor } from '../../../interfaces';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TheNumberedListComponent extends TheBaseElementComponent<NumberedListElement,
|
|
5
|
+
export declare class TheNumberedListComponent extends TheBaseElementComponent<NumberedListElement, TheEditor> implements OnInit, OnDestroy {
|
|
7
6
|
elementRef: ElementRef;
|
|
8
7
|
cdr: ChangeDetectorRef;
|
|
9
8
|
get start(): number;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { Node
|
|
1
|
+
import { Node } from 'slate';
|
|
2
2
|
import { ElementKinds } from '../../constants/node-types';
|
|
3
|
+
import { CustomElement } from '../../custom-types';
|
|
4
|
+
import { TheEditor } from '../../interfaces';
|
|
3
5
|
export declare const ListEditor: {
|
|
4
|
-
isList(editor:
|
|
5
|
-
toggleList(editor:
|
|
6
|
-
unwrapList(editor:
|
|
7
|
-
wrapList(editor:
|
|
8
|
-
isActive(editor:
|
|
9
|
-
getActiveList(editor:
|
|
10
|
-
buildListItem(editor:
|
|
11
|
-
buildInsertDataChildren(node:
|
|
6
|
+
isList(editor: TheEditor, element: CustomElement, type: ElementKinds.bulletedList | ElementKinds.numberedList): boolean;
|
|
7
|
+
toggleList(editor: TheEditor, type: ElementKinds.bulletedList | ElementKinds.numberedList, startIndex?: number): void;
|
|
8
|
+
unwrapList(editor: TheEditor): void;
|
|
9
|
+
wrapList(editor: TheEditor, type: ElementKinds.bulletedList | ElementKinds.numberedList): void;
|
|
10
|
+
isActive(editor: TheEditor, type: ElementKinds.bulletedList | ElementKinds.numberedList): boolean;
|
|
11
|
+
getActiveList(editor: TheEditor): import("slate").NodeEntry<Node>;
|
|
12
|
+
buildListItem(editor: TheEditor): void;
|
|
13
|
+
buildInsertDataChildren(node: CustomElement): any;
|
|
12
14
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { WithListOptions } from './types';
|
|
2
|
-
|
|
2
|
+
import { TheEditor } from '../../interfaces';
|
|
3
|
+
export declare const withList: <T extends TheEditor>(editor: T) => T;
|
|
3
4
|
export declare const createListPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, WithListOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, WithListOptions>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NodeEntry } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
3
|
import { ListNormalizerOptions } from '../types';
|
|
3
4
|
/**
|
|
4
5
|
* Normalize list node to force the ul>li>p+ul structure.
|
|
5
6
|
*/
|
|
6
|
-
export declare const getListNormalizer: (editor:
|
|
7
|
+
export declare const getListNormalizer: (editor: TheEditor, { validLiChildrenTypes }: ListNormalizerOptions) => ([node, path]: NodeEntry<import("slate").Node>) => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NodeEntry } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
3
|
import { ListItemElement } from '../../../custom-types';
|
|
3
|
-
export declare const normalizeListItem: (editor:
|
|
4
|
+
export declare const normalizeListItem: (editor: TheEditor, { nodeEntry }: {
|
|
4
5
|
nodeEntry: NodeEntry<ListItemElement>;
|
|
5
6
|
}) => boolean;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Node, NodeEntry } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
3
|
+
export declare const normalizeNo: (editor: TheEditor, nodeEntry: NodeEntry<Node>) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function onKeyDownList(e: KeyboardEvent, editor:
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
|
+
export declare function onKeyDownList(e: KeyboardEvent, editor: TheEditor): boolean;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Location } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
3
|
/**
|
|
3
4
|
* 如果at(默认= selection)位于ul> li> p中,则返回li和ul节点条目。
|
|
4
5
|
*/
|
|
5
|
-
export declare const getListItemEntry: (editor:
|
|
6
|
+
export declare const getListItemEntry: (editor: TheEditor, { at }?: {
|
|
6
7
|
at?: Location | null;
|
|
7
8
|
}) => {
|
|
8
9
|
list: import("slate").NodeEntry<import("slate").Ancestor>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomElement } from '../../../custom-types';
|
|
2
2
|
/**
|
|
3
3
|
* 获取 List 中 ListItems,过滤掉空列表嵌套
|
|
4
4
|
* @param node
|
|
5
5
|
* @param initialValue
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
export declare const getStartListItem: (node:
|
|
8
|
+
export declare const getStartListItem: (node: CustomElement[], initialValue?: CustomElement[]) => CustomElement[];
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { Ancestor
|
|
1
|
+
import { Ancestor } from 'slate';
|
|
2
|
+
import { CustomElement } from '../../../custom-types';
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
*/
|
|
5
|
-
export declare const hasListInListItem: (listItemNode: Ancestor |
|
|
6
|
+
export declare const hasListInListItem: (listItemNode: Ancestor | CustomElement) => CustomElement;
|
|
6
7
|
/**
|
|
7
8
|
* p + ul/ol structure
|
|
8
9
|
* @param listItemNode
|
|
9
10
|
*/
|
|
10
|
-
export declare const hasStableListInListItem: (listItemNode: Ancestor |
|
|
11
|
+
export declare const hasStableListInListItem: (listItemNode: Ancestor | CustomElement) => CustomElement;
|
|
11
12
|
/**
|
|
12
13
|
* li + p structure
|
|
13
14
|
* @param listItemNode
|
|
14
15
|
*/
|
|
15
|
-
export declare const hasStableListItem: (listItemNode: Ancestor |
|
|
16
|
+
export declare const hasStableListItem: (listItemNode: Ancestor | CustomElement) => boolean;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Path, Point, Range } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
3
|
+
export declare const isInList: (editor: TheEditor, at?: Path | Range | Point | null) => boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Path } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
3
|
/**
|
|
3
4
|
* Is the list nested, i.e. its parent is a list item.
|
|
4
5
|
*/
|
|
5
|
-
export declare const isListNested: (editor:
|
|
6
|
+
export declare const isListNested: (editor: TheEditor, listPath: Path, options?: any) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const isList: (n:
|
|
1
|
+
import { CustomElement } from '../../../custom-types';
|
|
2
|
+
export declare const isList: (n: CustomElement) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
/**
|
|
3
3
|
* Is the selection focus at the start of its parent block.
|
|
4
4
|
*/
|
|
5
|
-
export declare const isSelectionAtListItemStart: (editor:
|
|
5
|
+
export declare const isSelectionAtListItemStart: (editor: TheEditor) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
/**
|
|
3
3
|
* Is the selection in same li
|
|
4
4
|
*/
|
|
5
|
-
export declare const isSelectionInSameListItem: (editor:
|
|
5
|
+
export declare const isSelectionInSameListItem: (editor: TheEditor) => boolean;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { NodeEntry, Ancestor
|
|
1
|
+
import { NodeEntry, Ancestor } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
3
|
+
import { CustomElement } from '../../../custom-types';
|
|
2
4
|
export interface InsertListDataOptions {
|
|
3
5
|
/**
|
|
4
6
|
* 要粘贴的list数据
|
|
5
7
|
*/
|
|
6
|
-
fromList:
|
|
8
|
+
fromList: CustomElement;
|
|
7
9
|
/**
|
|
8
10
|
* 粘贴list数据至此
|
|
9
11
|
*/
|
|
10
12
|
toListItemEntry: NodeEntry<Ancestor>;
|
|
11
13
|
}
|
|
12
|
-
export declare const insertListData: (editor:
|
|
14
|
+
export declare const insertListData: (editor: TheEditor, { fromList, toListItemEntry }: InsertListDataOptions) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
/**
|
|
3
3
|
* Insert list item if selection in li>p.
|
|
4
4
|
*/
|
|
5
|
-
export declare const insertListItem: (editor:
|
|
5
|
+
export declare const insertListItem: (editor: TheEditor) => boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Ancestor,
|
|
1
|
+
import { Ancestor, NodeEntry } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
3
|
export interface MoveListItemDownOptions {
|
|
3
4
|
list: NodeEntry<Ancestor>;
|
|
4
5
|
listItem: NodeEntry<Ancestor>;
|
|
5
6
|
}
|
|
6
|
-
export declare const moveListItemDown: (editor:
|
|
7
|
+
export declare const moveListItemDown: (editor: TheEditor, { list, listItem }: MoveListItemDownOptions) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Ancestor,
|
|
1
|
+
import { Ancestor, NodeEntry } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
3
|
export interface MoveListItemSublistItemsToListItemSublistOptions {
|
|
3
4
|
/**
|
|
4
5
|
* The list item to merge.
|
|
@@ -17,4 +18,4 @@ export interface MoveListItemSublistItemsToListItemSublistOptions {
|
|
|
17
18
|
* Move fromListItem sublist list items to the end of `toListItem` sublist.
|
|
18
19
|
* If there is no `toListItem` sublist, insert one.
|
|
19
20
|
*/
|
|
20
|
-
export declare const moveListItemSublistItemsToListItemSublist: (editor:
|
|
21
|
+
export declare const moveListItemSublistItemsToListItemSublist: (editor: TheEditor, { fromListItem, toListItem, start }: MoveListItemSublistItemsToListItemSublistOptions, options?: any) => number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Ancestor,
|
|
1
|
+
import { Ancestor, NodeEntry } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
3
|
export interface MergeListItemIntoListOptions {
|
|
3
4
|
/**
|
|
4
5
|
* 该节点的子列表的列表项将被移动。
|
|
@@ -16,4 +17,4 @@ export interface MergeListItemIntoListOptions {
|
|
|
16
17
|
/**
|
|
17
18
|
* 将 fromListItem 子列表的列表项移到 toList
|
|
18
19
|
*/
|
|
19
|
-
export declare const moveListItemSublistItemsToList: (editor:
|
|
20
|
+
export declare const moveListItemSublistItemsToList: (editor: TheEditor, { fromListItem, toList, location }: MergeListItemIntoListOptions) => number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Ancestor,
|
|
1
|
+
import { Ancestor, NodeEntry } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
3
|
export interface MoveListItemUpOptions {
|
|
3
4
|
list: NodeEntry<Ancestor>;
|
|
4
5
|
listItem: NodeEntry<Ancestor>;
|
|
@@ -7,4 +8,4 @@ export interface MoveListItemUpOptions {
|
|
|
7
8
|
* 将列表项移到其父项旁边。
|
|
8
9
|
* 父项应为列表项。
|
|
9
10
|
*/
|
|
10
|
-
export declare const moveListItemUp: (editor:
|
|
11
|
+
export declare const moveListItemUp: (editor: TheEditor, { list, listItem }: MoveListItemUpOptions, options?: any) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const unwrapList: (editor:
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
|
+
export declare const unwrapList: (editor: TheEditor) => void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Editor } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../interfaces';
|
|
2
3
|
export interface MarkEditor extends Editor {
|
|
3
4
|
removeMark: (key: string, shouldChange?: boolean) => void;
|
|
4
5
|
}
|
|
5
6
|
export declare const MarkEditor: {
|
|
6
|
-
isMarkActive(editor:
|
|
7
|
-
toggleMark(editor:
|
|
7
|
+
isMarkActive(editor: TheEditor, format: any): boolean;
|
|
8
|
+
toggleMark(editor: TheEditor, format: any): void;
|
|
8
9
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
1
2
|
import { MarkEditor } from './mark.editor';
|
|
2
|
-
export declare const withMark: <T extends
|
|
3
|
+
export declare const withMark: <T extends TheEditor & MarkEditor>(editor: T) => T;
|
|
3
4
|
export declare const createMarkPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
1
2
|
import { MentionPluginOptions } from './mention.type';
|
|
2
|
-
export declare const withMention: <T extends
|
|
3
|
+
export declare const withMention: <T extends TheEditor>(editor: T) => T;
|
|
3
4
|
export declare const createMentionPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, MentionPluginOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, MentionPluginOptions>;
|
|
@@ -8,5 +8,5 @@ export declare abstract class TheBaseSuggestion {
|
|
|
8
8
|
abstract getSearchResult(keywords: string): void;
|
|
9
9
|
abstract selectMention<T>(event: T): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheBaseSuggestion, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TheBaseSuggestion, never, never, { "editor": "editor"; "type": "type"; "keywords": "keywords"; }, {}, never, never, false, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TheBaseSuggestion, never, never, { "editor": { "alias": "editor"; "required": false; }; "type": { "alias": "type"; "required": false; }; "keywords": { "alias": "keywords"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { QueryOptions } from '../../interfaces';
|
|
1
|
+
import { QueryOptions, TheEditor } from '../../interfaces';
|
|
2
2
|
export interface WithNodeIDProps extends QueryOptions {
|
|
3
3
|
idKey?: string;
|
|
4
4
|
idCreator?: () => void;
|
|
5
5
|
filterText?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const withNodeID: <T extends
|
|
7
|
+
export declare const withNodeID: <T extends TheEditor>(e: T) => T;
|
|
8
8
|
export declare const createNodeIDPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, WithNodeIDProps>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, WithNodeIDProps>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
1
2
|
import { CustomElementKinds } from '../../custom-types';
|
|
2
3
|
import { TransformEditor } from '../common/transforms.plugin';
|
|
3
4
|
export interface InsertParagraphNodesOptions {
|
|
4
5
|
types: CustomElementKinds[];
|
|
5
6
|
}
|
|
6
|
-
export declare const withInsertParagraphNodes: <T extends
|
|
7
|
+
export declare const withInsertParagraphNodes: <T extends TheEditor & TransformEditor>(editor: T) => T;
|
|
7
8
|
export declare const createInsertParagraphNodesPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, InsertParagraphNodesOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, InsertParagraphNodesOptions>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { QueryOptions } from '../../interfaces';
|
|
1
|
+
import { QueryOptions, TheEditor } from '../../interfaces';
|
|
2
2
|
import { TransformEditor } from '../common/transforms.plugin';
|
|
3
3
|
import { CustomElementKinds } from '../../custom-types';
|
|
4
4
|
export interface WithTrailingNode extends QueryOptions {
|
|
5
5
|
type?: CustomElementKinds;
|
|
6
6
|
level?: number;
|
|
7
7
|
}
|
|
8
|
-
export declare const withTrailingNode: <T extends
|
|
8
|
+
export declare const withTrailingNode: <T extends TheEditor & TransformEditor>(editor: T) => T;
|
|
9
9
|
export declare const createTrailingNodePlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ElementRef, Renderer2, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TheQuickInsertComponent implements OnInit {
|
|
5
5
|
private renderer;
|
|
6
6
|
private elementRef;
|
|
7
7
|
private cdr;
|
|
8
8
|
className: string;
|
|
9
|
-
editor:
|
|
9
|
+
editor: TheEditor;
|
|
10
10
|
isVisible: boolean;
|
|
11
11
|
defaultIconName: string;
|
|
12
12
|
iconNameFill: string;
|
|
@@ -25,5 +25,5 @@ export declare class TheQuickInsertComponent implements OnInit {
|
|
|
25
25
|
mouseLeave(event: MouseEvent): void;
|
|
26
26
|
handleClick(event: MouseEvent): void;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheQuickInsertComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TheQuickInsertComponent, "[theQuickInsert]", never, { "editor": "editor"; "isVisible": "isVisible"; }, {}, never, never, false, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheQuickInsertComponent, "[theQuickInsert]", never, { "editor": { "alias": "editor"; "required": false; }; "isVisible": { "alias": "isVisible"; "required": false; }; }, {}, never, never, false, never>;
|
|
29
29
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ThyPopoverRef } from 'ngx-tethys/popover';
|
|
2
|
-
import {
|
|
2
|
+
import { TheEditor } from '../../interfaces';
|
|
3
3
|
import { ThePluginMenuComponent } from '../../components/plugin-menu/plugin-menu.component';
|
|
4
4
|
export declare const QuickInsertEditor: {
|
|
5
|
-
openMenu(editor:
|
|
6
|
-
updateKeywords(editor:
|
|
7
|
-
updatePluginMenuRef(editor:
|
|
8
|
-
closeMenu(editor:
|
|
9
|
-
isOpenedMenu(editor:
|
|
5
|
+
openMenu(editor: TheEditor): ThyPopoverRef<ThePluginMenuComponent, unknown, unknown>;
|
|
6
|
+
updateKeywords(editor: TheEditor, keywords: string): void;
|
|
7
|
+
updatePluginMenuRef(editor: TheEditor, pluginMenuRef: ThyPopoverRef<any> | null): void;
|
|
8
|
+
closeMenu(editor: TheEditor): void;
|
|
9
|
+
isOpenedMenu(editor: TheEditor): boolean;
|
|
10
10
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Editor } from 'slate';
|
|
2
1
|
import { ElementKinds } from '../../constants';
|
|
2
|
+
import { TheEditor } from '../../interfaces';
|
|
3
3
|
import { CustomElementKinds } from '../../custom-types';
|
|
4
4
|
export interface QuickInsertPluginOptions {
|
|
5
5
|
hotkey?: string;
|
|
6
6
|
disabledPlus?: boolean;
|
|
7
7
|
allowHotkeyInTypes?: CustomElementKinds[];
|
|
8
8
|
}
|
|
9
|
-
export declare const withQuickInsert: <T extends
|
|
9
|
+
export declare const withQuickInsert: <T extends TheEditor>(editor: T) => T;
|
|
10
10
|
export declare const createQuickInsertPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, QuickInsertPluginOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, QuickInsertPluginOptions>;
|
|
11
|
-
export declare const allowOpenInsertMenu: (editor:
|
|
11
|
+
export declare const allowOpenInsertMenu: (editor: TheEditor, allowTypes: ElementKinds[]) => boolean;
|