@worktile/theia 16.0.0 → 16.1.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/conversion-hint/conversion-hint.component.d.ts +2 -2
- package/components/inline-toolbar/inline-toolbar.component.d.ts +3 -2
- package/components/plugin-menu/plugin-menu.component.d.ts +7 -5
- package/components/template/template.component.d.ts +2 -2
- package/components/toolbar/toolbar.component.d.ts +3 -3
- package/components/toolbar-dropdown/toolbar-dropdown.component.d.ts +2 -2
- package/components/toolbar-group/toolbar-group.component.d.ts +5 -4
- package/core/toolbar-item/base-toolbar-item.d.ts +5 -4
- package/core/utils/plugin-menu.d.ts +2 -2
- package/editor.module.d.ts +2 -2
- package/esm2022/components/conversion-hint/conversion-hint.component.mjs +1 -1
- package/esm2022/components/inline-toolbar/inline-toolbar.component.mjs +1 -1
- package/esm2022/components/plugin-menu/plugin-menu.component.mjs +19 -6
- package/esm2022/components/template/template.component.mjs +1 -1
- package/esm2022/components/toolbar/toolbar.component.mjs +2 -2
- package/esm2022/components/toolbar-dropdown/toolbar-dropdown.component.mjs +1 -1
- package/esm2022/components/toolbar-group/toolbar-group.component.mjs +1 -1
- package/esm2022/constants/auto-format-rules.mjs +1 -1
- package/esm2022/constants/plugin-menu.mjs +2 -5
- package/esm2022/core/toolbar-item/base-toolbar-item.mjs +1 -1
- package/esm2022/core/utils/combine-plugins.mjs +1 -1
- package/esm2022/core/utils/plugin-menu.mjs +1 -1
- package/esm2022/custom-types.mjs +1 -1
- package/esm2022/editor.module.mjs +4 -4
- package/esm2022/interfaces/auto-format.mjs +1 -1
- package/esm2022/interfaces/editor.mjs +1 -1
- package/esm2022/interfaces/image.mjs +1 -1
- package/esm2022/interfaces/plugins/plugin-menu.mjs +1 -1
- package/esm2022/interfaces/plugins/with-override.mjs +1 -1
- package/esm2022/interfaces/reset-block-type-plugin-options.mjs +1 -1
- package/esm2022/interfaces/toolbar.mjs +1 -1
- package/esm2022/interfaces/view-base.mjs +1 -1
- package/esm2022/pipes.mjs +17 -1
- package/esm2022/plugins/align/align.editor.mjs +2 -2
- package/esm2022/plugins/align/align.plugin.mjs +1 -1
- package/esm2022/plugins/autoformat/autoformat.plugin.mjs +1 -1
- package/esm2022/plugins/autoformat/transforms/auto-format-block.mjs +2 -2
- package/esm2022/plugins/autoformat/transforms/auto-format-inline.mjs +1 -1
- package/esm2022/plugins/blockquote/blockquote.component.mjs +1 -1
- package/esm2022/plugins/blockquote/blockquote.editor.mjs +5 -2
- package/esm2022/plugins/blockquote/blockquote.plugin.mjs +3 -3
- package/esm2022/plugins/code/code.component.mjs +1 -1
- package/esm2022/plugins/code/code.editor.mjs +1 -1
- package/esm2022/plugins/code/code.plugin.mjs +1 -1
- package/esm2022/plugins/color/color.editor.mjs +1 -1
- package/esm2022/plugins/common/block-card.plugin.mjs +1 -1
- package/esm2022/plugins/common/common.plugin.mjs +1 -1
- package/esm2022/plugins/common/get-fragment.plugin.mjs +1 -1
- package/esm2022/plugins/common/history.plugin.mjs +1 -1
- package/esm2022/plugins/common/insert-data-by-invalid-type.mjs +1 -1
- package/esm2022/plugins/common/move-selection.plugin.mjs +1 -1
- package/esm2022/plugins/common/remove-empty.plugin.mjs +1 -1
- package/esm2022/plugins/common/remove-void.plugin.mjs +1 -1
- package/esm2022/plugins/common/reset-type.plugin.mjs +1 -1
- package/esm2022/plugins/common/transforms.plugin.mjs +1 -1
- package/esm2022/plugins/deserialize/deserialize-html.plugin.mjs +3 -3
- package/esm2022/plugins/deserialize/deserialize-md.plugin.mjs +2 -2
- package/esm2022/plugins/font-size/font-size.editor.mjs +1 -1
- package/esm2022/plugins/heading/heading.editor.mjs +3 -3
- package/esm2022/plugins/heading/heading.plugin.mjs +1 -1
- package/esm2022/plugins/hr/hr.component.mjs +1 -1
- package/esm2022/plugins/hr/hr.editor.mjs +2 -2
- package/esm2022/plugins/hr/hr.plugin.mjs +1 -1
- package/esm2022/plugins/image/image.component.mjs +20 -4
- package/esm2022/plugins/image/image.editor.mjs +2 -2
- package/esm2022/plugins/indent/indent.editor.mjs +7 -7
- package/esm2022/plugins/indent/indent.plugin.mjs +1 -1
- package/esm2022/plugins/indent/on-keydown-indent.mjs +2 -2
- package/esm2022/plugins/inline-code/inline-code.component.mjs +1 -1
- package/esm2022/plugins/inline-code/inline-code.editor.mjs +3 -3
- package/esm2022/plugins/inline-code/inline-code.plugin.mjs +1 -1
- package/esm2022/plugins/link/edit/link-edit.component.mjs +1 -1
- package/esm2022/plugins/link/link.component.mjs +2 -2
- package/esm2022/plugins/link/link.editor.mjs +3 -3
- package/esm2022/plugins/link/link.plugin.mjs +1 -1
- package/esm2022/plugins/list/components/bulleted-list.component.mjs +1 -1
- package/esm2022/plugins/list/components/list-item.component.mjs +1 -1
- package/esm2022/plugins/list/components/numbered-list.component.mjs +1 -1
- package/esm2022/plugins/list/list.editor.mjs +8 -8
- package/esm2022/plugins/list/list.plugin.mjs +2 -2
- package/esm2022/plugins/list/normalizers/get-list-normalizer.mjs +1 -1
- package/esm2022/plugins/list/normalizers/normalize-list-item.mjs +1 -1
- package/esm2022/plugins/list/normalizers/normalize-no.mjs +1 -1
- package/esm2022/plugins/list/on-key-down-list.mjs +1 -1
- package/esm2022/plugins/list/queries/get-list-item-entry.mjs +2 -2
- package/esm2022/plugins/list/queries/get-start-list-item.mjs +1 -1
- package/esm2022/plugins/list/queries/has-list-in-list-item.mjs +1 -1
- package/esm2022/plugins/list/queries/is-in-list.mjs +2 -2
- package/esm2022/plugins/list/queries/is-list-nested.mjs +1 -1
- package/esm2022/plugins/list/queries/is-list.mjs +1 -1
- package/esm2022/plugins/list/queries/is-node-type-list.mjs +1 -1
- package/esm2022/plugins/list/queries/is-selection-at-list-item-start.mjs +2 -2
- package/esm2022/plugins/list/queries/is-selection-in-same-list-item.mjs +1 -1
- package/esm2022/plugins/list/queries/is-single-list-item.mjs +1 -1
- package/esm2022/plugins/list/transforms/insert-list-data.mjs +2 -2
- package/esm2022/plugins/list/transforms/insert-list-item.mjs +6 -5
- package/esm2022/plugins/list/transforms/move-list-item-down.mjs +1 -1
- package/esm2022/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.mjs +1 -1
- package/esm2022/plugins/list/transforms/move-list-item-sublist-items-to-list.mjs +1 -1
- package/esm2022/plugins/list/transforms/move-list-item-up.mjs +4 -4
- package/esm2022/plugins/list/transforms/unwrap-list.mjs +2 -2
- package/esm2022/plugins/mark/mark.editor.mjs +1 -1
- package/esm2022/plugins/mark/mark.plugin.mjs +1 -1
- package/esm2022/plugins/mention/mention.editor.mjs +1 -1
- package/esm2022/plugins/mention/mention.plugin.mjs +3 -3
- package/esm2022/plugins/node-id/node-id.plugin.mjs +1 -1
- package/esm2022/plugins/normalizers/insert-paragraph-nodes.mjs +1 -1
- package/esm2022/plugins/normalizers/remove-empty-nodes.mjs +1 -1
- package/esm2022/plugins/normalizers/trailing-node.plugin.mjs +1 -1
- package/esm2022/plugins/paint-format/paint-format.editor.mjs +1 -1
- package/esm2022/plugins/quick-insert/components/quick-insert.component.mjs +1 -1
- package/esm2022/plugins/quick-insert/quick-insert.editor.mjs +1 -1
- package/esm2022/plugins/quick-insert/quick-insert.plugin.mjs +1 -1
- package/esm2022/plugins/table/components/insert-mark/insert-mark.component.mjs +1 -1
- package/esm2022/plugins/table/components/table.component.mjs +1 -1
- package/esm2022/plugins/table/components/td/td.component.mjs +1 -1
- package/esm2022/plugins/table/components/toolbar/table-options.component.mjs +1 -1
- package/esm2022/plugins/table/components/toolbar/table-toolbar.component.mjs +1 -1
- package/esm2022/plugins/table/table.editor.mjs +3 -3
- package/esm2022/plugins/table/table.plugin.mjs +3 -3
- package/esm2022/plugins/table/table.store.mjs +1 -1
- package/esm2022/plugins/table/table.types.mjs +1 -1
- package/esm2022/plugins/table/transforms/clear-cell.mjs +1 -1
- package/esm2022/plugins/table/transforms/clear-table-node.mjs +1 -1
- package/esm2022/plugins/table/transforms/insert-column.mjs +2 -2
- package/esm2022/plugins/table/transforms/insert-row.mjs +1 -1
- package/esm2022/plugins/table/transforms/insert-table.mjs +1 -1
- package/esm2022/plugins/table/transforms/remove-column.mjs +1 -1
- package/esm2022/plugins/table/transforms/remove-row.mjs +1 -1
- package/esm2022/plugins/table/transforms/remove-table.mjs +1 -1
- package/esm2022/plugins/table/utils/calc-anchor-position.mjs +1 -1
- package/esm2022/plugins/table/utils/cell-position.mjs +1 -1
- package/esm2022/plugins/table/utils/create-table-position.mjs +1 -1
- package/esm2022/plugins/table/utils/get-min-max-cell-index.mjs +1 -1
- package/esm2022/plugins/table/utils/get-select-cell-node.mjs +1 -1
- package/esm2022/plugins/table/utils/handle-cell.mjs +2 -2
- package/esm2022/plugins/table/utils/is-range-in-table.mjs +1 -1
- package/esm2022/plugins/table/utils/is-selection-in-table.mjs +1 -1
- package/esm2022/plugins/table/utils/merge-cell.mjs +2 -2
- package/esm2022/plugins/table/utils/set-menu-cell-invisibility.mjs +1 -1
- package/esm2022/plugins/table/utils/split-cell.mjs +2 -2
- package/esm2022/plugins/table/utils/table-entry.mjs +1 -1
- package/esm2022/plugins/todo-item/todo-item.component.mjs +2 -2
- package/esm2022/plugins/todo-item/todo-item.editor.mjs +1 -1
- package/esm2022/plugins/todo-item/todo-item.plugin.mjs +5 -5
- package/esm2022/plugins/vertical-align/toolbar-item.component.mjs +1 -1
- package/esm2022/queries/anchor-block-entry.mjs +2 -2
- package/esm2022/queries/anchor-block.mjs +1 -1
- package/esm2022/queries/anchor-inline-entry.mjs +1 -1
- package/esm2022/queries/find-descendant.mjs +1 -1
- package/esm2022/queries/find-node.mjs +1 -1
- package/esm2022/queries/get-above-by-type.mjs +2 -2
- package/esm2022/queries/get-above.mjs +1 -1
- package/esm2022/queries/get-anchor-block-entry.mjs +2 -2
- package/esm2022/queries/get-block-above.mjs +2 -2
- package/esm2022/queries/get-block-card-above.mjs +2 -2
- package/esm2022/queries/get-block-card-cursor.mjs +1 -1
- package/esm2022/queries/get-container-blocks.mjs +1 -1
- package/esm2022/queries/get-insert-elements-path.mjs +2 -2
- package/esm2022/queries/get-last-node.mjs +1 -1
- package/esm2022/queries/get-node.mjs +1 -1
- package/esm2022/queries/get-nodes-by-type.mjs +2 -2
- package/esm2022/queries/get-nodes.mjs +1 -1
- package/esm2022/queries/get-parent.mjs +1 -1
- package/esm2022/queries/get-plain-text.mjs +1 -1
- package/esm2022/queries/get-plugin-by-toolbar.mjs +1 -1
- package/esm2022/queries/get-point-before.mjs +1 -1
- package/esm2022/queries/get-point-from-location.mjs +1 -1
- package/esm2022/queries/get-rang-from-block-start.mjs +1 -1
- package/esm2022/queries/get-range-before.mjs +1 -1
- package/esm2022/queries/get-selection-marks.mjs +1 -1
- package/esm2022/queries/get-selection-nodes-by-type.mjs +1 -1
- package/esm2022/queries/get-text.mjs +1 -1
- package/esm2022/queries/get-toolbar-disabled.mjs +1 -1
- package/esm2022/queries/is-across-blocks.mjs +1 -1
- package/esm2022/queries/is-ancestor-empty.mjs +1 -1
- package/esm2022/queries/is-block-above-empty.mjs +1 -1
- package/esm2022/queries/is-block-active.mjs +2 -2
- package/esm2022/queries/is-block-card-cursor.mjs +1 -1
- package/esm2022/queries/is-block-text-empty-after-selection.mjs +1 -1
- package/esm2022/queries/is-contain-nested-type.mjs +3 -3
- package/esm2022/queries/is-container-type.mjs +1 -1
- package/esm2022/queries/is-empty-content-filter.mjs +1 -1
- package/esm2022/queries/is-empty-content.mjs +1 -1
- package/esm2022/queries/is-empty-paragraph-by-path.mjs +1 -1
- package/esm2022/queries/is-empty-paragraph.mjs +1 -1
- package/esm2022/queries/is-global-collapsed.mjs +1 -1
- package/esm2022/queries/is-include-types.mjs +1 -1
- package/esm2022/queries/is-node-type-in.mjs +1 -1
- package/esm2022/queries/is-node-type.mjs +1 -1
- package/esm2022/queries/is-paragraph.mjs +2 -2
- package/esm2022/queries/is-range-across-blocks.mjs +1 -1
- package/esm2022/queries/is-start.mjs +1 -1
- package/esm2022/queries/some-node.mjs +1 -1
- package/esm2022/shortcuts/index.mjs +1 -1
- package/esm2022/shortcuts/mark.mjs +1 -1
- package/esm2022/test/utils/with-plugin.mjs +6 -3
- package/esm2022/transforms/clear-marks.mjs +1 -1
- package/esm2022/transforms/close-conversion-hint.mjs +1 -1
- package/esm2022/transforms/delete-element.mjs +1 -1
- package/esm2022/transforms/handle-continual-delete-backward.mjs +2 -2
- package/esm2022/transforms/handle-continual-insert-break.mjs +2 -2
- package/esm2022/transforms/insert-elements.mjs +2 -2
- package/esm2022/transforms/insert-paragraph.mjs +1 -1
- package/esm2022/transforms/move-children.mjs +1 -1
- package/esm2022/transforms/on-keydown-reset-block-type.mjs +3 -2
- package/esm2022/transforms/set-end-selection.mjs +1 -1
- package/esm2022/transforms/set-marks.mjs +1 -1
- package/esm2022/transforms/set-node.mjs +1 -1
- package/esm2022/transforms/un-hang-range.mjs +1 -1
- package/esm2022/transforms/un-wrap.mjs +2 -2
- package/esm2022/transforms/unwrap-nodes-by-type.mjs +2 -2
- package/esm2022/utils/auto-focus.mjs +1 -1
- package/esm2022/utils/copy-node.mjs +1 -1
- package/esm2022/utils/create-empty-paragraph.mjs +12 -3
- package/esm2022/utils/dom.mjs +1 -1
- package/esm2022/utils/editor-uuid.mjs +1 -1
- package/esm2022/utils/fragment.mjs +2 -2
- package/esm2022/utils/get-editable-element-height.mjs +1 -1
- package/esm2022/utils/get-toolbar-class.mjs +1 -1
- package/esm2022/utils/index.mjs +1 -2
- package/esm2022/utils/insert-data-by-invalid-type.mjs +2 -2
- package/esm2022/utils/is-clean-empty-paragraph.mjs +1 -1
- package/esm2022/utils/is-inline.mjs +2 -2
- package/esm2022/utils/match.mjs +1 -1
- package/esm2022/utils/merge-element-options.mjs +2 -2
- package/esm2022/utils/scroll-into-view.mjs +1 -1
- package/fesm2022/worktile-theia.mjs +128 -93
- package/fesm2022/worktile-theia.mjs.map +1 -1
- package/interfaces/auto-format.d.ts +5 -5
- package/interfaces/editor.d.ts +3 -3
- package/interfaces/image.d.ts +1 -0
- package/interfaces/plugins/plugin-menu.d.ts +6 -6
- 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 +2 -3
- package/package.json +4 -4
- package/pipes.d.ts +8 -3
- package/plugins/align/align.editor.d.ts +4 -4
- package/plugins/align/align.plugin.d.ts +1 -2
- package/plugins/autoformat/autoformat.plugin.d.ts +1 -2
- package/plugins/autoformat/transforms/auto-format-block.d.ts +4 -5
- 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 +1 -2
- package/plugins/code/code.component.d.ts +3 -2
- package/plugins/code/code.editor.d.ts +3 -3
- package/plugins/code/code.plugin.d.ts +1 -2
- package/plugins/color/color.editor.d.ts +3 -3
- package/plugins/common/block-card.plugin.d.ts +1 -2
- package/plugins/common/common.plugin.d.ts +1 -2
- package/plugins/common/get-fragment.plugin.d.ts +1 -2
- package/plugins/common/history.plugin.d.ts +6 -6
- package/plugins/common/insert-data-by-invalid-type.d.ts +1 -2
- package/plugins/common/move-selection.plugin.d.ts +1 -2
- package/plugins/common/remove-empty.plugin.d.ts +1 -2
- package/plugins/common/remove-void.plugin.d.ts +1 -2
- package/plugins/common/reset-type.plugin.d.ts +1 -2
- package/plugins/common/transforms.plugin.d.ts +1 -2
- package/plugins/deserialize/deserialize-html.plugin.d.ts +1 -2
- package/plugins/deserialize/deserialize-md.plugin.d.ts +1 -2
- package/plugins/font-size/font-size.editor.d.ts +4 -3
- package/plugins/heading/heading.editor.d.ts +4 -3
- 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 +1 -2
- package/plugins/image/image.component.d.ts +5 -2
- package/plugins/image/image.component.scss +22 -0
- package/plugins/image/image.editor.d.ts +7 -8
- package/plugins/indent/indent.editor.d.ts +4 -3
- package/plugins/indent/indent.plugin.d.ts +1 -2
- package/plugins/indent/on-keydown-indent.d.ts +2 -2
- package/plugins/inline-code/inline-code.component.d.ts +3 -2
- package/plugins/inline-code/inline-code.editor.d.ts +5 -6
- package/plugins/inline-code/inline-code.plugin.d.ts +1 -2
- package/plugins/link/edit/link-edit.component.d.ts +2 -3
- package/plugins/link/link.component.d.ts +3 -2
- package/plugins/link/link.editor.d.ts +5 -5
- package/plugins/link/link.plugin.d.ts +1 -2
- package/plugins/list/components/bulleted-list.component.d.ts +3 -2
- package/plugins/list/components/list-item.component.d.ts +3 -3
- package/plugins/list/components/numbered-list.component.d.ts +3 -2
- package/plugins/list/list.editor.d.ts +9 -11
- package/plugins/list/list.plugin.d.ts +1 -2
- package/plugins/list/normalizers/get-list-normalizer.d.ts +2 -3
- package/plugins/list/normalizers/normalize-list-item.d.ts +2 -3
- package/plugins/list/normalizers/normalize-no.d.ts +2 -3
- package/plugins/list/on-key-down-list.d.ts +2 -2
- package/plugins/list/queries/get-list-item-entry.d.ts +2 -3
- package/plugins/list/queries/get-start-list-item.d.ts +2 -2
- package/plugins/list/queries/has-list-in-list-item.d.ts +4 -5
- package/plugins/list/queries/is-in-list.d.ts +2 -3
- package/plugins/list/queries/is-list-nested.d.ts +2 -3
- package/plugins/list/queries/is-list.d.ts +2 -2
- package/plugins/list/queries/is-node-type-list.d.ts +1 -2
- 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 +3 -5
- package/plugins/list/transforms/insert-list-item.d.ts +2 -2
- package/plugins/list/transforms/move-list-item-down.d.ts +2 -3
- package/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.d.ts +2 -3
- package/plugins/list/transforms/move-list-item-sublist-items-to-list.d.ts +2 -3
- package/plugins/list/transforms/move-list-item-up.d.ts +2 -3
- package/plugins/list/transforms/unwrap-list.d.ts +2 -2
- package/plugins/mark/mark.editor.d.ts +2 -3
- package/plugins/mark/mark.plugin.d.ts +1 -2
- package/plugins/mention/mention.plugin.d.ts +1 -2
- package/plugins/node-id/node-id.plugin.d.ts +2 -2
- package/plugins/normalizers/insert-paragraph-nodes.d.ts +1 -2
- package/plugins/normalizers/trailing-node.plugin.d.ts +2 -2
- package/plugins/quick-insert/components/quick-insert.component.d.ts +2 -2
- 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 +2 -2
- package/plugins/table/components/table.component.d.ts +3 -2
- package/plugins/table/components/td/td.component.d.ts +2 -2
- package/plugins/table/components/toolbar/table-options.component.d.ts +2 -2
- package/plugins/table/components/toolbar/table-toolbar.component.d.ts +2 -2
- 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 +3 -4
- package/plugins/table/transforms/clear-cell.d.ts +2 -3
- package/plugins/table/transforms/clear-table-node.d.ts +2 -2
- package/plugins/table/transforms/insert-column.d.ts +4 -5
- package/plugins/table/transforms/insert-row.d.ts +2 -2
- package/plugins/table/transforms/insert-table.d.ts +2 -3
- 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 +2 -3
- 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 +2 -3
- package/plugins/table/utils/is-range-in-table.d.ts +2 -3
- package/plugins/table/utils/is-selection-in-table.d.ts +3 -3
- package/plugins/table/utils/merge-cell.d.ts +5 -6
- 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 +3 -2
- package/plugins/todo-item/todo-item.editor.d.ts +3 -3
- package/plugins/todo-item/todo-item.plugin.d.ts +1 -2
- package/plugins/vertical-align/toolbar-item.component.d.ts +3 -2
- package/queries/anchor-block-entry.d.ts +2 -4
- package/queries/anchor-block.d.ts +2 -3
- package/queries/anchor-inline-entry.d.ts +2 -3
- package/queries/find-descendant.d.ts +2 -3
- package/queries/find-node.d.ts +3 -3
- package/queries/get-above-by-type.d.ts +3 -2
- package/queries/get-above.d.ts +3 -3
- package/queries/get-anchor-block-entry.d.ts +2 -4
- 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 +2 -3
- package/queries/get-node.d.ts +2 -3
- package/queries/get-nodes-by-type.d.ts +3 -2
- package/queries/get-nodes.d.ts +3 -2
- 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 +3 -2
- package/queries/get-point-before.d.ts +2 -3
- package/queries/get-point-from-location.d.ts +2 -3
- package/queries/get-rang-from-block-start.d.ts +3 -2
- package/queries/get-range-before.d.ts +2 -3
- package/queries/get-selection-marks.d.ts +2 -2
- package/queries/get-selection-nodes-by-type.d.ts +2 -3
- package/queries/get-text.d.ts +2 -3
- package/queries/get-toolbar-disabled.d.ts +3 -2
- package/queries/is-across-blocks.d.ts +2 -3
- package/queries/is-ancestor-empty.d.ts +2 -3
- 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 +2 -3
- package/queries/is-empty-content-filter.d.ts +2 -2
- package/queries/is-empty-paragraph-by-path.d.ts +2 -3
- package/queries/is-empty-paragraph.d.ts +4 -6
- 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 +3 -2
- package/queries/is-paragraph.d.ts +2 -2
- package/queries/is-range-across-blocks.d.ts +3 -3
- package/queries/is-start.d.ts +2 -3
- package/queries/some-node.d.ts +2 -3
- package/shortcuts/index.d.ts +2 -2
- package/shortcuts/mark.d.ts +2 -2
- package/transforms/clear-marks.d.ts +2 -2
- package/transforms/close-conversion-hint.d.ts +2 -2
- package/transforms/delete-element.d.ts +2 -3
- package/transforms/handle-continual-delete-backward.d.ts +3 -4
- package/transforms/handle-continual-insert-break.d.ts +3 -3
- package/transforms/insert-elements.d.ts +2 -3
- package/transforms/insert-paragraph.d.ts +2 -3
- package/transforms/move-children.d.ts +2 -3
- 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 +2 -3
- package/transforms/set-node.d.ts +2 -3
- package/transforms/un-hang-range.d.ts +2 -3
- package/transforms/un-wrap.d.ts +2 -2
- package/transforms/unwrap-nodes-by-type.d.ts +3 -2
- package/utils/auto-focus.d.ts +2 -2
- package/utils/copy-node.d.ts +3 -5
- package/utils/dom.d.ts +2 -2
- package/utils/editor-uuid.d.ts +3 -3
- package/utils/fragment.d.ts +5 -7
- package/utils/get-editable-element-height.d.ts +2 -2
- package/utils/get-toolbar-class.d.ts +2 -2
- package/utils/index.d.ts +0 -1
- package/utils/is-clean-empty-paragraph.d.ts +3 -4
- package/utils/is-inline.d.ts +2 -3
- 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/esm2022/test/utils/with-editor.mjs +0 -8
- package/esm2022/utils/create-paragraph.mjs +0 -14
- package/test/utils/with-editor.d.ts +0 -2
- package/utils/create-paragraph.d.ts +0 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ThyPopoverRef } from 'ngx-tethys/popover';
|
|
3
|
+
import { Editor } from 'slate';
|
|
3
4
|
import { TableDropdownOption } from '../../table.types';
|
|
4
|
-
import { TheEditor } from '../../../../interfaces';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class TheTableOptionsComponent implements OnInit {
|
|
7
7
|
private popoverRef;
|
|
8
|
-
editor:
|
|
8
|
+
editor: Editor;
|
|
9
9
|
tableDropdownList: TableDropdownOption[];
|
|
10
10
|
constructor(popoverRef: ThyPopoverRef<TheTableOptionsComponent>);
|
|
11
11
|
ngOnInit(): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
|
|
3
|
+
import { Editor } from 'slate';
|
|
3
4
|
import { TableStore } from '../../table.store';
|
|
4
5
|
import { MenuEntity } from '../../table.types';
|
|
5
|
-
import { TheEditor } from '../../../../interfaces';
|
|
6
6
|
import { TableElement } from '../../../..//custom-types';
|
|
7
7
|
import { Subscription } from 'rxjs';
|
|
8
8
|
import { ThyNotifyService } from 'ngx-tethys/notify';
|
|
@@ -19,7 +19,7 @@ export declare class TheTableToolbarComponent implements OnInit, OnDestroy {
|
|
|
19
19
|
tableChangeSubscriber: Subscription;
|
|
20
20
|
tableStore: TableStore;
|
|
21
21
|
tableElement: TableElement;
|
|
22
|
-
get editor():
|
|
22
|
+
get editor(): Editor;
|
|
23
23
|
cellMenuList: MenuEntity[];
|
|
24
24
|
get hasDivider(): boolean;
|
|
25
25
|
get tableOptions(): import("../../../../interfaces").ThePluginOption<{}>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { NodeEntry, Path, Range, Location } from 'slate';
|
|
1
|
+
import { Editor, NodeEntry, Path, Range, Location } from 'slate';
|
|
2
2
|
import { TableOptions } from './table.types';
|
|
3
3
|
import { Alignment, Indents, VerticalAlignment } from '../../constants';
|
|
4
4
|
import { TheEditor } from '../../interfaces';
|
|
5
5
|
import { CustomElement, TableElement } from '../../custom-types';
|
|
6
6
|
export declare const TableEditor: {
|
|
7
|
-
insertTable(editor:
|
|
8
|
-
insertColumn(editor:
|
|
9
|
-
insertRow(editor:
|
|
10
|
-
removeTable(editor:
|
|
11
|
-
removeRow(editor:
|
|
12
|
-
removeColumn(editor:
|
|
13
|
-
clearCell(editor:
|
|
14
|
-
isActive(editor:
|
|
15
|
-
getSelectedCells(editor:
|
|
16
|
-
setAlign(editor:
|
|
7
|
+
insertTable(editor: Editor, optionsParam?: TableOptions): void;
|
|
8
|
+
insertColumn(editor: Editor, count?: number, at?: number, optionsParam?: TableOptions): void;
|
|
9
|
+
insertRow(editor: Editor, count?: number, at?: number, optionsParam?: TableOptions): void;
|
|
10
|
+
removeTable(editor: Editor, optionsParam?: TableOptions): void;
|
|
11
|
+
removeRow(editor: Editor, rowIndex?: number, optionsParam?: TableOptions): void;
|
|
12
|
+
removeColumn(editor: Editor, colIndex?: number, optionsParam?: TableOptions): void;
|
|
13
|
+
clearCell(editor: Editor, nodeEntry?: NodeEntry<CustomElement>, optionsParam?: TableOptions): void;
|
|
14
|
+
isActive(editor: Editor): boolean;
|
|
15
|
+
getSelectedCells(editor: Editor): import("./table.types").CellPosition[];
|
|
16
|
+
setAlign(editor: Editor, alignment: Alignment): boolean;
|
|
17
17
|
setVerticalAlign(editor: TheEditor, alignment: VerticalAlignment): boolean;
|
|
18
18
|
isVerticalAlignActive(editor: TheEditor, alignment: VerticalAlignment): boolean;
|
|
19
19
|
toggleMark(editor: TheEditor, isActive: boolean, format: string | string[], value?: string | number | boolean): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { Editor } from 'slate';
|
|
3
3
|
import { TablePosition } from './utils';
|
|
4
4
|
import { ColorType } from '../../constants/color-select';
|
|
5
5
|
import { CellPosition } from './table.types';
|
|
@@ -15,7 +15,7 @@ export declare class TableStore {
|
|
|
15
15
|
dangerousColumnsIndex: number[];
|
|
16
16
|
dangerousRowsIndex: number[];
|
|
17
17
|
isSelectedTable: boolean;
|
|
18
|
-
editor:
|
|
18
|
+
editor: Editor;
|
|
19
19
|
isFullscreen: boolean;
|
|
20
20
|
anchorCellPath: number[];
|
|
21
21
|
focusCellPath: number[];
|
|
@@ -31,19 +31,19 @@ export declare class TableStore {
|
|
|
31
31
|
maxCol: number;
|
|
32
32
|
get dangerousCells(): CellPosition[];
|
|
33
33
|
constructor();
|
|
34
|
-
initEditor(editor:
|
|
34
|
+
initEditor(editor: Editor): void;
|
|
35
35
|
getSelectedCellPositions(): CellPosition[];
|
|
36
36
|
publishDangerousCells(value: CellPosition[]): void;
|
|
37
37
|
setSelectedColumnsAndRowIndex(): void;
|
|
38
38
|
setSelectedCells(cells: CellPosition[], pos: TablePosition): void;
|
|
39
|
-
selectRow(editor:
|
|
40
|
-
selectColumn(editor:
|
|
41
|
-
selectTable(editor:
|
|
42
|
-
selectCellStart(cell: HTMLTableCellElement, editor:
|
|
43
|
-
selectCells(editor:
|
|
39
|
+
selectRow(editor: Editor, index: number): void;
|
|
40
|
+
selectColumn(editor: Editor, index: number): void;
|
|
41
|
+
selectTable(editor: Editor): void;
|
|
42
|
+
selectCellStart(cell: HTMLTableCellElement, editor: Editor): void;
|
|
43
|
+
selectCells(editor: Editor): void;
|
|
44
44
|
selectFirstCell(): void;
|
|
45
|
-
selectCell(cell: HTMLTableCellElement, editor:
|
|
46
|
-
selectCellOngoing(cell: HTMLTableCellElement, editor:
|
|
45
|
+
selectCell(cell: HTMLTableCellElement, editor: Editor): void;
|
|
46
|
+
selectCellOngoing(cell: HTMLTableCellElement, editor: Editor): void;
|
|
47
47
|
clearSelectedCells(): void;
|
|
48
48
|
clearLastFocusPath(): void;
|
|
49
49
|
selectedCellsChange(): Observable<TableCellElement[]>;
|
|
@@ -51,7 +51,7 @@ export declare class TableStore {
|
|
|
51
51
|
changeCells(): void;
|
|
52
52
|
emitTableChange(): void;
|
|
53
53
|
tableChange(): Observable<void>;
|
|
54
|
-
selectCellEnd(editor:
|
|
54
|
+
selectCellEnd(editor: Editor): void;
|
|
55
55
|
dangerousCellsChange(): Observable<CellPosition[]>;
|
|
56
56
|
setDangerousCells(): void;
|
|
57
57
|
clearDangerousCells(): void;
|
|
@@ -70,7 +70,7 @@ export declare class TableStore {
|
|
|
70
70
|
* @param editor 编辑器对象
|
|
71
71
|
* @param cell 单元格元素
|
|
72
72
|
*/
|
|
73
|
-
areaSelectionStart(cell: HTMLTableCellElement, editor:
|
|
73
|
+
areaSelectionStart(cell: HTMLTableCellElement, editor: Editor): void;
|
|
74
74
|
/**
|
|
75
75
|
* 设置区域选择的单元格
|
|
76
76
|
* @param cellElement 单元格元素
|
|
@@ -3,8 +3,7 @@ import { ComponentType } from 'slate-angular';
|
|
|
3
3
|
import { TheBaseElementComponent } from '../../interfaces/view-base';
|
|
4
4
|
import { ElementKinds } from '../../constants/node-types';
|
|
5
5
|
import type { TheTableComponent } from './components/table.component';
|
|
6
|
-
import { Element } from 'slate';
|
|
7
|
-
import { TheEditor } from '../../interfaces';
|
|
6
|
+
import { Editor, Element } from 'slate';
|
|
8
7
|
import { Observable } from 'rxjs';
|
|
9
8
|
export declare const THE_TABLE_COMPONENT_TOKEN: InjectionToken<ComponentType<TheTableComponent>>;
|
|
10
9
|
export declare const HEADER_CELL_CLASS = "the-header-cell";
|
|
@@ -60,8 +59,8 @@ export interface ThePluginTableOption {
|
|
|
60
59
|
freezeColumnHeader?: boolean;
|
|
61
60
|
freezeRowHeader?: boolean;
|
|
62
61
|
showFullscreen?: boolean;
|
|
63
|
-
setFullscreen?: (editor:
|
|
64
|
-
fullscreenAction?: (editor:
|
|
62
|
+
setFullscreen?: (editor: Editor, event: MouseEvent, element: Element) => void;
|
|
63
|
+
fullscreenAction?: (editor: Editor) => Observable<{
|
|
65
64
|
element: Element | undefined;
|
|
66
65
|
state: FullscreenState;
|
|
67
66
|
}>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { NodeEntry, Element } from 'slate';
|
|
2
|
-
import { TheEditor } from '../../../interfaces';
|
|
1
|
+
import { NodeEntry, Editor, Element } from 'slate';
|
|
3
2
|
import { TableOptions } from '../table.types';
|
|
4
3
|
/**
|
|
5
4
|
* Clear the content of the given cell
|
|
6
5
|
*/
|
|
7
|
-
export declare function clearCell(opts: TableOptions, editor:
|
|
6
|
+
export declare function clearCell(opts: TableOptions, editor: Editor, cellEntry: NodeEntry<Element>): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
2
|
import { TableOptions } from '../table.types';
|
|
3
3
|
/**
|
|
4
4
|
* Clear the content of the given node
|
|
5
5
|
*/
|
|
6
|
-
export declare function clearTableNode(opts: TableOptions, editor:
|
|
6
|
+
export declare function clearTableNode(opts: TableOptions, editor: Editor, isTopToBot?: boolean): void;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { NodeEntry } from 'slate';
|
|
2
|
-
import { TheEditor } from '../../../interfaces';
|
|
3
|
-
import { TableCellElement, TableElement } from '../../../custom-types';
|
|
1
|
+
import { Editor, NodeEntry } from 'slate';
|
|
4
2
|
import { TableOptions } from '../table.types';
|
|
3
|
+
import { TableCellElement, TableElement } from '../../../custom-types';
|
|
5
4
|
/**
|
|
6
5
|
* Insert a new column in current table
|
|
7
6
|
*/
|
|
8
|
-
export declare function insertColumn(opts: TableOptions, editor:
|
|
7
|
+
export declare function insertColumn(opts: TableOptions, editor: Editor, count?: number, at?: number, // Column index
|
|
9
8
|
getCell?: (column: number, row: number) => TableCellElement): void;
|
|
10
9
|
/**
|
|
11
10
|
* Insert new column in the row
|
|
12
11
|
*/
|
|
13
|
-
export declare function insertColumnAtRow(opts: TableOptions, editor:
|
|
12
|
+
export declare function insertColumnAtRow(opts: TableOptions, editor: Editor, count: number, tableEntry: NodeEntry<TableElement>, rowIndex: number, columnIndex: number, getCell?: (column: number, row: number) => TableCellElement): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
2
|
import { TableOptions } from '../table.types';
|
|
3
3
|
/**
|
|
4
4
|
* Insert a new row in current table
|
|
5
5
|
*/
|
|
6
|
-
export declare function insertRow(opts: TableOptions, editor:
|
|
6
|
+
export declare function insertRow(opts: TableOptions, editor: Editor, count?: number, at?: number): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Node } from 'slate';
|
|
2
|
-
import { TheEditor } from '../../../interfaces';
|
|
1
|
+
import { Editor, Node } from 'slate';
|
|
3
2
|
import { TableOptions } from '../table.types';
|
|
4
3
|
/**
|
|
5
4
|
* Insert a new table
|
|
6
5
|
*/
|
|
7
|
-
export declare function insertTable(opts: TableOptions, editor:
|
|
6
|
+
export declare function insertTable(opts: TableOptions, editor: Editor, rows?: number, columns?: number, getCellContent?: (column: number, row: number) => Node[]): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
2
|
import { TableOptions } from '../table.types';
|
|
3
|
-
export declare function removeColumn(opts: TableOptions, editor:
|
|
3
|
+
export declare function removeColumn(opts: TableOptions, editor: Editor, selectColIndex?: number): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
2
|
import { TableOptions } from '../table.types';
|
|
3
|
-
export declare function removeRow(opts: TableOptions, editor:
|
|
3
|
+
export declare function removeRow(opts: TableOptions, editor: Editor, selectRowIndex?: number): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
2
|
import { TableOptions } from '../table.types';
|
|
3
|
-
export declare function removeTable(opts: TableOptions, editor:
|
|
3
|
+
export declare function removeTable(opts: TableOptions, editor: Editor): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function calculateAnchorPositionInCell(editor:
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
|
+
export declare function calculateAnchorPositionInCell(editor: Editor): {
|
|
3
3
|
isFirstLine: boolean;
|
|
4
4
|
isLastLine: boolean;
|
|
5
5
|
anchorBlockPath: import("slate").Path;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
2
|
import { TableCellElement } from '../../../custom-types';
|
|
3
3
|
import { CellPosition } from '../table.types';
|
|
4
4
|
/**
|
|
@@ -7,14 +7,14 @@ import { CellPosition } from '../table.types';
|
|
|
7
7
|
* @param selectedCellPositions 选中的单元格位置数组
|
|
8
8
|
* @returns 是否选中了所有的单元格
|
|
9
9
|
*/
|
|
10
|
-
export declare const isSelectedAllCell: (editor:
|
|
10
|
+
export declare const isSelectedAllCell: (editor: Editor, selectedCellPositions: CellPosition[]) => boolean;
|
|
11
11
|
/**
|
|
12
12
|
* 获取选中的单元格位置数组
|
|
13
13
|
* @param editor 编辑器对象
|
|
14
14
|
* @param selectedCells 选中的单元格
|
|
15
15
|
* @returns 选中的单元格位置
|
|
16
16
|
*/
|
|
17
|
-
export declare const getSelectedCellPositions: (editor:
|
|
17
|
+
export declare const getSelectedCellPositions: (editor: Editor, selectedCells: TableCellElement[]) => {
|
|
18
18
|
row: number;
|
|
19
19
|
col: number;
|
|
20
20
|
}[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Path } from 'slate';
|
|
2
|
-
import { TheEditor } from '../../../interfaces';
|
|
1
|
+
import { Editor, Path } from 'slate';
|
|
3
2
|
import { TablePosition } from './table-position';
|
|
4
|
-
export declare const createTablePosition: (editor:
|
|
3
|
+
export declare const createTablePosition: (editor: Editor, path?: Path) => TablePosition;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
2
|
import { TableElement } from '../../../custom-types';
|
|
3
3
|
import { CellPosition } from '../table.types';
|
|
4
|
-
export declare const getMinAndMaxCellIndex: (editor:
|
|
4
|
+
export declare const getMinAndMaxCellIndex: (editor: Editor, selectedCellPositions: CellPosition[], maxRow: number, maxCol: number, minRow: number, minCol: number, table: TableElement) => {
|
|
5
5
|
minRow: number;
|
|
6
6
|
maxRow: number;
|
|
7
7
|
minCol: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
2
|
import { CellPosition } from '../table.types';
|
|
3
|
-
export declare function getSelectCellNode(editor:
|
|
3
|
+
export declare function getSelectCellNode(editor: Editor, selectedCells: CellPosition[]): {
|
|
4
4
|
node: import("@worktile/theia").TableCellElement;
|
|
5
5
|
row: number;
|
|
6
6
|
col: number;
|
|
7
7
|
}[];
|
|
8
|
-
export declare function focusCell(editor:
|
|
8
|
+
export declare function focusCell(editor: Editor, path: number[]): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CellPosition } from '../table.types';
|
|
2
|
-
import { Path } from 'slate';
|
|
3
|
-
import { TheEditor } from '../../../interfaces';
|
|
2
|
+
import { Editor, Path } from 'slate';
|
|
4
3
|
import { Indents } from '../../../constants';
|
|
5
4
|
import { CustomElement } from '../../../custom-types';
|
|
6
5
|
export declare function sortCell(cells: CellPosition[]): void;
|
|
7
|
-
export declare function setCellIndent(editor:
|
|
6
|
+
export declare function setCellIndent(editor: Editor, indentType: Indents, child: CustomElement, at: Path): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Range } from 'slate';
|
|
2
|
-
import { TheEditor } from '../../../interfaces';
|
|
1
|
+
import { Editor, Range } from 'slate';
|
|
3
2
|
import { TableOptions } from '../table.types';
|
|
4
3
|
/**
|
|
5
4
|
* True if the given range is inside one table
|
|
6
5
|
*/
|
|
7
|
-
export declare function isRangeInTable(opts: TableOptions, editor:
|
|
6
|
+
export declare function isRangeInTable(opts: TableOptions, editor: Editor, range: Range): boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
2
|
import { CellPosition, TableOptions } from '../table.types';
|
|
3
3
|
/**
|
|
4
4
|
* Is the selection in a table
|
|
5
5
|
*/
|
|
6
|
-
export declare function isSelectionInTable(opts: TableOptions, editor:
|
|
6
|
+
export declare function isSelectionInTable(opts: TableOptions, editor: Editor): boolean;
|
|
7
7
|
/**
|
|
8
8
|
* Whether the cells passed in can form a rectangle
|
|
9
9
|
* @param editor
|
|
10
10
|
* @param cells
|
|
11
11
|
* @returns boolean
|
|
12
12
|
*/
|
|
13
|
-
export declare function isRectangularInTableCells(editor:
|
|
13
|
+
export declare function isRectangularInTableCells(editor: Editor, cells: CellPosition[]): boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Path } from 'slate';
|
|
2
|
-
import { TheEditor } from '../../../interfaces';
|
|
1
|
+
import { Path, Editor } from 'slate';
|
|
3
2
|
import { TableCellElement } from '../../../custom-types';
|
|
4
3
|
import { CellPosition } from '../table.types';
|
|
5
4
|
export interface SelectedCellInfo {
|
|
@@ -8,7 +7,7 @@ export interface SelectedCellInfo {
|
|
|
8
7
|
node: TableCellElement;
|
|
9
8
|
maxRowSpan?: number;
|
|
10
9
|
}
|
|
11
|
-
export declare function isSelectedCellMerged(editor:
|
|
10
|
+
export declare function isSelectedCellMerged(editor: Editor): boolean;
|
|
12
11
|
export declare function getLeftCellDict(selectCellNodes: SelectedCellInfo[]): {
|
|
13
12
|
[key: string]: SelectedCellInfo;
|
|
14
13
|
};
|
|
@@ -18,6 +17,6 @@ export declare function calculateCellSpan(selectCellNodes: SelectedCellInfo[], l
|
|
|
18
17
|
rowspan: number;
|
|
19
18
|
colspan: number;
|
|
20
19
|
};
|
|
21
|
-
export declare function mergeCell(editor:
|
|
22
|
-
export declare function mergeCellContent(editor:
|
|
23
|
-
export declare function getCellPositionsBeforeMerge(editor:
|
|
20
|
+
export declare function mergeCell(editor: Editor, selectedCells: CellPosition[]): void;
|
|
21
|
+
export declare function mergeCellContent(editor: Editor, leftTopCellPath: Path, cellPath: Path): void;
|
|
22
|
+
export declare function getCellPositionsBeforeMerge(editor: Editor, { row, col }: CellPosition): CellPosition[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
2
|
import { MenuEntity, CellPosition } from '../table.types';
|
|
3
|
-
export declare function setCellMenuVisibility(editor:
|
|
3
|
+
export declare function setCellMenuVisibility(editor: Editor, menuList: MenuEntity[], tableInfo: {
|
|
4
4
|
selectedCellPositions: CellPosition[];
|
|
5
5
|
isFullscreen?: boolean;
|
|
6
6
|
isSelectedTable?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
2
|
import { TableCellElement, TableElement } from '../../../custom-types';
|
|
3
|
-
export declare function splitCell(editor:
|
|
4
|
-
export declare function resetTableCell(editor:
|
|
3
|
+
export declare function splitCell(editor: Editor): import("@worktile/theia").TheEditor;
|
|
4
|
+
export declare function resetTableCell(editor: Editor, table: TableElement, cell: TableCellElement, cellRow: number, cellCol: number): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getTableEntry: (editor:
|
|
3
|
-
export declare const getTablePath: (editor:
|
|
4
|
-
export declare const getTable: (editor:
|
|
5
|
-
export declare const getSelectedCell: (editor:
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
|
+
export declare const getTableEntry: (editor: Editor) => import("slate").NodeEntry<import("@worktile/theia").TableElement>;
|
|
3
|
+
export declare const getTablePath: (editor: Editor) => import("slate").Path;
|
|
4
|
+
export declare const getTable: (editor: Editor) => import("@worktile/theia").TableElement;
|
|
5
|
+
export declare const getSelectedCell: (editor: Editor) => import("@worktile/theia").TableCellElement;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ElementRef, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Editor } from 'slate';
|
|
3
|
+
import { TheBaseElementComponent } from '../../interfaces';
|
|
3
4
|
import { TodoItemElement } from '../../custom-types';
|
|
4
5
|
import { TheContextService } from '../../services/context.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TheTodoItemComponent extends TheBaseElementComponent<TodoItemElement,
|
|
7
|
+
export declare class TheTodoItemComponent extends TheBaseElementComponent<TodoItemElement, Editor> implements OnInit {
|
|
7
8
|
elementRef: ElementRef;
|
|
8
9
|
cdr: ChangeDetectorRef;
|
|
9
10
|
private ctxService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
2
|
export declare const TodoItemEditor: {
|
|
3
|
-
isActive(editor:
|
|
4
|
-
insertTodoItem(editor:
|
|
3
|
+
isActive(editor: Editor): boolean;
|
|
4
|
+
insertTodoItem(editor: Editor): void;
|
|
5
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TheEditor } from '../../interfaces';
|
|
2
1
|
export interface TodoItemPluginOptions {
|
|
3
2
|
editableWithReadonly?: boolean;
|
|
4
3
|
}
|
|
5
|
-
export declare const withTodoItem: <T extends TheEditor>(editor: T) => T;
|
|
4
|
+
export declare const withTodoItem: <T extends import("../../interfaces").TheEditor>(editor: T) => T;
|
|
6
5
|
export declare const createTodoItemPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, TodoItemPluginOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, TodoItemPluginOptions>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ElementRef, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
|
|
3
|
-
import {
|
|
3
|
+
import { Editor } from 'slate';
|
|
4
4
|
import { TheBaseToolbarDropdown } from '../../core/toolbar-item/base-toolbar-item';
|
|
5
|
+
import { ToolbarItem } from '../../interfaces';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class TheVerticalToolbarItemComponent extends TheBaseToolbarDropdown implements OnInit {
|
|
7
8
|
elementRef: ElementRef;
|
|
@@ -14,7 +15,7 @@ export declare class TheVerticalToolbarItemComponent extends TheBaseToolbarDropd
|
|
|
14
15
|
handleDocumentMouseDown(event: MouseEvent): void;
|
|
15
16
|
constructor(elementRef: ElementRef, thyPopover: ThyPopover, viewContainerRef: ViewContainerRef);
|
|
16
17
|
ngOnInit(): void;
|
|
17
|
-
menusActive(editor:
|
|
18
|
+
menusActive(editor: Editor): ToolbarItem;
|
|
18
19
|
execute(event: MouseEvent): void;
|
|
19
20
|
itemMousedown(event: MouseEvent, item: ToolbarItem): void;
|
|
20
21
|
openPopover(): void;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { NodeEntry, Path, Point } from 'slate';
|
|
2
|
-
|
|
3
|
-
import { CustomElement } from '../custom-types';
|
|
4
|
-
export declare const anchorBlockEntry: (editor: TheEditor, at?: Path | Point) => NodeEntry<CustomElement> | undefined;
|
|
1
|
+
import { Editor, NodeEntry, Path, Point, Element } from 'slate';
|
|
2
|
+
export declare const anchorBlockEntry: (editor: Editor, at?: Path | Point) => NodeEntry<Element> | undefined;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const anchorBlock: (editor: TheEditor) => CustomElement;
|
|
1
|
+
import { Editor, Element } from 'slate';
|
|
2
|
+
export declare const anchorBlock: (editor: Editor) => Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const anchorInlineEntry: (editor: TheEditor) => import("slate").NodeEntry<CustomElement>;
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
|
+
export declare const anchorInlineEntry: (editor: Editor) => import("slate").NodeEntry<import("@worktile/theia").CustomElement>;
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
* Iterate through all of the nodes in the editor and return the first match. If
|
|
3
3
|
* no match is found, return undefined.
|
|
4
4
|
*/
|
|
5
|
-
import { Node, NodeEntry } from 'slate';
|
|
6
|
-
import { TheEditor } from '../interfaces';
|
|
5
|
+
import { Editor, Node, NodeEntry } from 'slate';
|
|
7
6
|
import { FindNodeOptions } from './find-node';
|
|
8
7
|
/**
|
|
9
8
|
* Get the first descendant node matching the condition.
|
|
10
9
|
*/
|
|
11
|
-
export declare const findDescendant: <T extends Node = Node>(editor:
|
|
10
|
+
export declare const findDescendant: <T extends Node = Node>(editor: Editor, options: FindNodeOptions<T>) => NodeEntry<T>;
|
package/queries/find-node.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Iterate through all of the nodes in the editor and return the first match. If
|
|
3
3
|
* no match is found, return undefined.
|
|
4
4
|
*/
|
|
5
|
-
import { Location, Node, NodeEntry, Span } from 'slate';
|
|
6
|
-
import { MatchOptions
|
|
5
|
+
import { Editor, Location, Node, NodeEntry, Span } from 'slate';
|
|
6
|
+
import { MatchOptions } from '../interfaces';
|
|
7
7
|
export type FindNodeOptions<T extends Node = Node> = {
|
|
8
8
|
at?: Location | Span;
|
|
9
9
|
reverse?: boolean;
|
|
@@ -12,4 +12,4 @@ export type FindNodeOptions<T extends Node = Node> = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Find node matching the condition.
|
|
14
14
|
*/
|
|
15
|
-
export declare const findNode: <T extends Node = Node>(editor:
|
|
15
|
+
export declare const findNode: <T extends Node = Node>(editor: Editor, options: FindNodeOptions<T>) => NodeEntry<T>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
|
+
import { EditorAboveOptions } from '../interfaces';
|
|
2
3
|
/**
|
|
3
4
|
* Get the block above a location (default: selection) by type.
|
|
4
5
|
*/
|
|
5
|
-
export declare const getAboveByType: (editor:
|
|
6
|
+
export declare const getAboveByType: (editor: Editor, types: string[] | string, options?: Omit<EditorAboveOptions, 'match'>) => import("slate").NodeEntry<import("slate").Ancestor>;
|
package/queries/get-above.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ancestor } from 'slate';
|
|
2
|
-
import { EditorAboveOptions
|
|
1
|
+
import { Ancestor, Editor } from 'slate';
|
|
2
|
+
import { EditorAboveOptions } from '../interfaces';
|
|
3
3
|
/**
|
|
4
4
|
* Get node above a location (default: selection).
|
|
5
5
|
*/
|
|
6
|
-
export declare const getAbove: <T = Ancestor>(editor:
|
|
6
|
+
export declare const getAbove: <T = Ancestor>(editor: Editor, options?: EditorAboveOptions<T>) => import("slate").NodeEntry<Ancestor>;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { NodeEntry, Path, Point } from 'slate';
|
|
2
|
-
|
|
3
|
-
import { CustomElement } from '../custom-types';
|
|
4
|
-
export declare const getAnchorBlockEntry: (editor: TheEditor, at?: Path | Point) => NodeEntry<CustomElement>;
|
|
1
|
+
import { Editor, NodeEntry, Path, Point } from 'slate';
|
|
2
|
+
export declare const getAnchorBlockEntry: (editor: Editor, at?: Path | Point) => NodeEntry<import("@worktile/theia").CustomElement>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Ancestor, NodeEntry } from 'slate';
|
|
2
|
-
import { EditorAboveOptions
|
|
1
|
+
import { Ancestor, Editor, NodeEntry } from 'slate';
|
|
2
|
+
import { EditorAboveOptions } from '../interfaces';
|
|
3
3
|
/**
|
|
4
4
|
* Get the block above a location (default: selection).
|
|
5
5
|
* If not found, return the editor entry.
|
|
6
6
|
*/
|
|
7
|
-
export declare const getBlockAbove: (editor:
|
|
7
|
+
export declare const getBlockAbove: (editor: Editor, options?: Omit<EditorAboveOptions, 'match'>) => NodeEntry<Ancestor>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Ancestor, NodeEntry } from 'slate';
|
|
2
|
-
import { EditorAboveOptions
|
|
1
|
+
import { Ancestor, Editor, NodeEntry } from 'slate';
|
|
2
|
+
import { EditorAboveOptions } from '../interfaces/editor';
|
|
3
3
|
/**
|
|
4
4
|
* Get the block above a location (default: selection).
|
|
5
5
|
* If not found, return the editor entry.
|
|
6
6
|
*/
|
|
7
|
-
export declare const getBlockCardAbove: (editor:
|
|
7
|
+
export declare const getBlockCardAbove: (editor: Editor, options?: Omit<EditorAboveOptions, 'match'>) => NodeEntry<Ancestor>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getBlockCardCenterCursor: (editor:
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
|
+
export declare const getBlockCardCenterCursor: (editor: Editor) => import("slate").BasePoint;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getContainerBlocks: (editor:
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
|
+
export declare const getContainerBlocks: (editor: Editor) => (import("../constants/node-types").ElementKinds.image | import("../constants/node-types").ElementKinds.paragraph | import("../constants/node-types").ElementKinds.heading_1 | import("../constants/node-types").ElementKinds.heading_2 | import("../constants/node-types").ElementKinds.heading_3 | import("../constants/node-types").ElementKinds.heading_4 | import("../constants/node-types").ElementKinds.heading_5 | import("../constants/node-types").ElementKinds.heading_6 | import("../constants/node-types").ElementKinds.numberedList | import("../constants/node-types").ElementKinds.bulletedList | import("../constants/node-types").ElementKinds.listItem | import("../constants/node-types").ElementKinds.checkItem | import("../constants/node-types").ElementKinds.table | import("../constants/node-types").ElementKinds.tableRow | import("../constants/node-types").ElementKinds.tableCell | import("../constants/node-types").ElementKinds.code | import("../constants/node-types").ElementKinds.blockquote | import("../constants/node-types").ElementKinds.hr | import("../constants/node-types").ElementKinds.link | import("../constants/node-types").ElementKinds.inlineCode)[];
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { Node, NodeEntry } from 'slate';
|
|
2
|
-
|
|
3
|
-
export declare const getLastNode: (editor: TheEditor, level: number) => NodeEntry<Node>;
|
|
1
|
+
import { Editor, Node, NodeEntry } from 'slate';
|
|
2
|
+
export declare const getLastNode: (editor: Editor, level: number) => NodeEntry<Node>;
|
package/queries/get-node.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { Node, Path } from 'slate';
|
|
2
|
-
|
|
3
|
-
export declare const getNode: (editor: TheEditor, path: Path) => Node;
|
|
1
|
+
import { Editor, Node, Path } from 'slate';
|
|
2
|
+
export declare const getNode: (editor: Editor, path: Path) => Node;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from 'slate';
|
|
2
|
+
import { EditorNodesOptions } from '../interfaces';
|
|
2
3
|
/**
|
|
3
4
|
* Get the nodes with a type included in `types` at a location (default: selection).
|
|
4
5
|
*/
|
|
5
|
-
export declare const getNodesByType: (editor:
|
|
6
|
+
export declare const getNodesByType: (editor: Editor, types: string[] | string, options?: Omit<EditorNodesOptions, 'match'>) => Generator<import("slate").NodeEntry<import("slate").Node>, void, undefined>;
|