@worktile/theia 16.4.0-next.9 → 17.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/action/prevent-default.d.ts +1 -1
- package/components/column-resize/column-resize.directive.d.ts +4 -4
- package/components/column-resize/overlay-handle.component.d.ts +3 -3
- package/components/contextmenu/contextmenu.component.d.ts +6 -6
- package/components/conversion-hint/conversion-hint.component.d.ts +3 -3
- package/components/element/element.component.d.ts +4 -4
- package/components/index.d.ts +12 -0
- package/components/inline-toolbar/inline-toolbar.component.d.ts +3 -3
- package/components/listbox/listbox.d.ts +3 -3
- package/components/plugin-menu/plugin-menu.component.d.ts +5 -9
- package/components/table-select/table-select.component.d.ts +4 -4
- package/components/template/template.component.d.ts +3 -3
- package/components/text/text.component.d.ts +3 -3
- package/components/toolbar/toolbar.component.d.ts +4 -4
- package/components/toolbar-dropdown/toolbar-dropdown.component.d.ts +3 -3
- package/components/toolbar-group/toolbar-group.component.d.ts +4 -4
- package/components/toolbar-item/toolbar-item.component.d.ts +4 -3
- package/constants/index.d.ts +1 -0
- package/constants/toolbar.d.ts +3 -3
- package/core/utils/flatten-deep-plugins.d.ts +1 -1
- package/core/utils/get-plugins.d.ts +1 -1
- package/core/utils/merge-deep-plugins.d.ts +1 -1
- package/core/utils/nested-structure-by-key.d.ts +1 -1
- package/core/utils/plugins-by-key.d.ts +1 -1
- package/editor.component.d.ts +5 -6
- package/esm2022/components/action/prevent-default.mjs +6 -5
- package/esm2022/components/column-resize/column-resize-notifier.mjs +3 -3
- package/esm2022/components/column-resize/column-resize.directive.mjs +8 -7
- package/esm2022/components/column-resize/event-dispatcher.mjs +5 -5
- package/esm2022/components/column-resize/overlay-handle.component.mjs +9 -8
- package/esm2022/components/column-resize/resizing.store.mjs +5 -5
- package/esm2022/components/contextmenu/contextmenu.component.mjs +39 -23
- package/esm2022/components/conversion-hint/conversion-hint.component.mjs +8 -8
- package/esm2022/components/element/element.component.mjs +12 -9
- package/esm2022/components/index.mjs +13 -1
- package/esm2022/components/inline-toolbar/inline-toolbar.component.mjs +12 -10
- package/esm2022/components/listbox/listbox.mjs +22 -19
- package/esm2022/components/plugin-menu/plugin-menu.component.mjs +48 -30
- package/esm2022/components/table-select/table-select.component.mjs +8 -8
- package/esm2022/components/template/template.component.mjs +10 -10
- package/esm2022/components/text/text.component.mjs +11 -9
- package/esm2022/components/toolbar/toolbar.component.mjs +18 -18
- package/esm2022/components/toolbar-dropdown/toolbar-dropdown.component.mjs +22 -11
- package/esm2022/components/toolbar-group/toolbar-group.component.mjs +11 -11
- package/esm2022/components/toolbar-item/toolbar-item.component.mjs +17 -11
- package/esm2022/constants/auto-format-rules.mjs +2 -2
- package/esm2022/constants/index.mjs +2 -1
- package/esm2022/constants/plugin-menu.mjs +1 -1
- package/esm2022/constants/toolbar.mjs +2 -2
- package/esm2022/core/create-toolbar.mjs +1 -1
- package/esm2022/core/toolbar-item/base-toolbar-item.mjs +8 -8
- package/esm2022/core/utils/combine-plugins.mjs +1 -1
- package/esm2022/core/utils/merge-array.mjs +1 -1
- package/esm2022/core/utils/merge-deep-plugins.mjs +1 -1
- package/esm2022/core/utils/merge-options.mjs +1 -1
- package/esm2022/core/utils/nested-structure-by-key.mjs +1 -1
- package/esm2022/core/utils/plugin-menu.mjs +1 -1
- package/esm2022/core/utils/plugins-by-key.mjs +1 -1
- package/esm2022/editor.component.mjs +48 -34
- package/esm2022/interfaces/plugins/plugin-menu.mjs +1 -1
- package/esm2022/interfaces/view-base.mjs +6 -6
- package/esm2022/pipes.mjs +16 -13
- package/esm2022/plugins/align/align.editor.mjs +2 -2
- package/esm2022/plugins/align/align.plugin.mjs +4 -4
- package/esm2022/plugins/autoformat/autoformat.plugin.mjs +7 -7
- package/esm2022/plugins/autoformat/transforms/auto-format-block.mjs +3 -3
- package/esm2022/plugins/autoformat/transforms/auto-format-inline.mjs +2 -2
- package/esm2022/plugins/blockquote/blockquote.component.mjs +11 -8
- package/esm2022/plugins/blockquote/blockquote.editor.mjs +3 -3
- package/esm2022/plugins/blockquote/blockquote.plugin.mjs +10 -11
- package/esm2022/plugins/code/code.component.mjs +42 -25
- package/esm2022/plugins/code/code.editor.mjs +6 -6
- package/esm2022/plugins/code/code.plugin.mjs +6 -7
- package/esm2022/plugins/color/color.editor.mjs +1 -1
- package/esm2022/plugins/color/color.plugin.mjs +4 -4
- package/esm2022/plugins/color/toolbar-item.component.mjs +18 -17
- package/esm2022/plugins/common/block-card.plugin.mjs +3 -3
- package/esm2022/plugins/common/common.plugin.mjs +2 -2
- package/esm2022/plugins/common/get-fragment.plugin.mjs +2 -2
- package/esm2022/plugins/common/insert-data-by-invalid-type.mjs +1 -1
- package/esm2022/plugins/common/move-selection.plugin.mjs +5 -7
- package/esm2022/plugins/common/remove-empty.plugin.mjs +9 -10
- package/esm2022/plugins/common/remove-void.plugin.mjs +5 -8
- package/esm2022/plugins/common/reset-type.plugin.mjs +2 -2
- package/esm2022/plugins/common/transforms.plugin.mjs +18 -0
- package/esm2022/plugins/deserialize/deserialize-html.plugin.mjs +1 -1
- package/esm2022/plugins/deserialize/deserialize-md.plugin.mjs +4 -4
- package/esm2022/plugins/font-size/font-size.editor.mjs +3 -3
- package/esm2022/plugins/heading/heading.editor.mjs +3 -3
- package/esm2022/plugins/heading/heading.plugin.mjs +2 -2
- package/esm2022/plugins/hr/hr.component.mjs +15 -13
- package/esm2022/plugins/hr/hr.editor.mjs +2 -2
- package/esm2022/plugins/hr/hr.plugin.mjs +4 -4
- package/esm2022/plugins/image/image.component.mjs +35 -22
- package/esm2022/plugins/image/image.editor.mjs +3 -3
- package/esm2022/plugins/image/image.plugin.mjs +5 -5
- package/esm2022/plugins/indent/indent.editor.mjs +4 -4
- package/esm2022/plugins/indent/indent.plugin.mjs +1 -1
- package/esm2022/plugins/indent/on-keydown-indent.mjs +1 -1
- package/esm2022/plugins/index.mjs +7 -5
- package/esm2022/plugins/inline-code/inline-code.component.mjs +13 -11
- package/esm2022/plugins/inline-code/inline-code.editor.mjs +1 -1
- package/esm2022/plugins/inline-code/inline-code.plugin.mjs +3 -3
- package/esm2022/plugins/link/edit/link-edit.component.mjs +24 -14
- package/esm2022/plugins/link/hover/link-hover.component.mjs +10 -10
- package/esm2022/plugins/link/link.component.mjs +27 -30
- package/esm2022/plugins/link/link.editor.mjs +5 -5
- package/esm2022/plugins/link/link.plugin.mjs +3 -3
- package/esm2022/plugins/list/components/bulleted-list.component.mjs +11 -8
- package/esm2022/plugins/list/components/list-item.component.mjs +12 -9
- package/esm2022/plugins/list/components/numbered-list.component.mjs +11 -8
- package/esm2022/plugins/list/list.editor.mjs +5 -7
- package/esm2022/plugins/list/list.plugin.mjs +12 -12
- package/esm2022/plugins/list/normalizers/get-list-normalizer.mjs +2 -2
- package/esm2022/plugins/list/normalizers/normalize-list-item.mjs +1 -1
- package/esm2022/plugins/list/normalizers/normalize-no.mjs +3 -3
- package/esm2022/plugins/list/on-key-down-list.mjs +2 -2
- package/esm2022/plugins/list/queries/get-list-item-entry.mjs +2 -2
- package/esm2022/plugins/list/queries/get-list-item-sublist.mjs +1 -1
- package/esm2022/plugins/list/queries/get-start-list-item.mjs +1 -1
- package/esm2022/plugins/list/queries/is-in-list.mjs +2 -2
- 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/transforms/insert-list-data.mjs +2 -2
- package/esm2022/plugins/list/transforms/insert-list-item.mjs +2 -2
- 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 +2 -2
- package/esm2022/plugins/list/transforms/move-list-item-sublist-items-to-list.mjs +2 -2
- package/esm2022/plugins/list/transforms/move-list-item-up.mjs +2 -2
- 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 +2 -2
- package/esm2022/plugins/mention/mention.plugin.mjs +1 -1
- package/esm2022/plugins/mention/suggestion.component.mjs +3 -3
- package/esm2022/plugins/node-id/node-id.plugin.mjs +3 -3
- package/esm2022/plugins/normalizers/insert-paragraph-nodes.mjs +4 -4
- package/esm2022/plugins/normalizers/remove-empty-nodes.mjs +1 -1
- package/esm2022/plugins/normalizers/trailing-node.plugin.mjs +4 -4
- package/esm2022/plugins/paint-format/paint-format.editor.mjs +3 -3
- package/esm2022/plugins/quick-insert/components/quick-insert.component.mjs +9 -9
- package/esm2022/plugins/quick-insert/quick-insert.editor.mjs +1 -1
- package/esm2022/plugins/quick-insert/quick-insert.plugin.mjs +4 -4
- package/esm2022/plugins/soft-break/soft-break.plugin.mjs +2 -2
- package/esm2022/plugins/table/components/insert-mark/insert-mark.component.mjs +11 -11
- package/esm2022/plugins/table/components/row/row.component.mjs +37 -57
- package/esm2022/plugins/table/components/table.component.mjs +268 -300
- package/esm2022/plugins/table/components/td/td.component.mjs +40 -31
- package/esm2022/plugins/table/components/toolbar/table-options.component.mjs +18 -15
- package/esm2022/plugins/table/components/toolbar/table-toolbar.component.mjs +25 -24
- package/esm2022/plugins/table/table.editor.mjs +6 -5
- package/esm2022/plugins/table/table.pipe.mjs +33 -40
- package/esm2022/plugins/table/table.plugin.mjs +15 -16
- package/esm2022/plugins/table/table.service.mjs +27 -15
- package/esm2022/plugins/table/table.store.mjs +5 -5
- package/esm2022/plugins/table/table.types.mjs +1 -2
- package/esm2022/plugins/table/toolbar-item.component.mjs +18 -16
- package/esm2022/plugins/table/transforms/clear-table-node.mjs +1 -1
- package/esm2022/plugins/table/transforms/insert-column.mjs +1 -1
- package/esm2022/plugins/table/transforms/insert-row.mjs +1 -1
- package/esm2022/plugins/table/transforms/insert-table.mjs +2 -2
- package/esm2022/plugins/table/transforms/move-selection-from-cell.mjs +2 -2
- 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/add-columns.mjs +1 -1
- package/esm2022/plugins/table/utils/calc-anchor-position.mjs +2 -2
- package/esm2022/plugins/table/utils/calc-span.mjs +1 -1
- package/esm2022/plugins/table/utils/calculate-table.mjs +10 -17
- package/esm2022/plugins/table/utils/cell-position.mjs +4 -1
- package/esm2022/plugins/table/utils/create-table-position.mjs +1 -1
- package/esm2022/plugins/table/utils/get-grid-columns.mjs +49 -6
- package/esm2022/plugins/table/utils/get-min-max-cell-index.mjs +1 -1
- package/esm2022/plugins/table/utils/get-next-cell.mjs +1 -1
- package/esm2022/plugins/table/utils/get-select-cell-node.mjs +1 -1
- package/esm2022/plugins/table/utils/handle-cell.mjs +4 -4
- package/esm2022/plugins/table/utils/is-header-row.mjs +2 -3
- package/esm2022/plugins/table/utils/is-legal-table.mjs +1 -11
- 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/normalize-table.mjs +1 -1
- package/esm2022/plugins/table/utils/remove-columns.mjs +1 -1
- package/esm2022/plugins/table/utils/remove-row-column.mjs +4 -3
- 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/table/utils/table-position.mjs +1 -11
- package/esm2022/plugins/todo-item/todo-item.component.mjs +17 -20
- package/esm2022/plugins/todo-item/todo-item.editor.mjs +2 -2
- package/esm2022/plugins/todo-item/todo-item.plugin.mjs +4 -4
- package/esm2022/plugins/vertical-align/toolbar-item.component.mjs +22 -12
- package/esm2022/plugins/vertical-align/vertical-align.editor.mjs +3 -3
- package/esm2022/public-api.mjs +4 -4
- package/esm2022/queries/anchor-block-entry.mjs +3 -3
- package/esm2022/queries/anchor-inline-entry.mjs +3 -3
- package/esm2022/queries/find-descendant.mjs +3 -3
- package/esm2022/queries/find-node.mjs +3 -3
- package/esm2022/queries/find-path.mjs +1 -1
- package/esm2022/queries/get-above-by-type.mjs +1 -1
- package/esm2022/queries/get-anchor-block-entry.mjs +3 -3
- package/esm2022/queries/get-block-above.mjs +3 -3
- package/esm2022/queries/get-insert-elements-path.mjs +3 -5
- package/esm2022/queries/get-last-node.mjs +1 -1
- package/esm2022/queries/get-next-sibling-nodes.mjs +1 -1
- package/esm2022/queries/get-node.mjs +1 -1
- package/esm2022/queries/get-nodes-by-type.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-toolbar-disabled.mjs +1 -1
- package/esm2022/queries/index.mjs +66 -3
- package/esm2022/queries/is-block-text-empty-after-selection.mjs +1 -1
- package/esm2022/queries/is-contain-nested-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.mjs +1 -1
- package/esm2022/queries/is-include-types.mjs +1 -1
- package/esm2022/queries/is-node-type.mjs +1 -1
- package/esm2022/services/context.service.mjs +10 -14
- package/esm2022/services/table-contextmenu.service.mjs +7 -7
- package/esm2022/services/toolbar.service.mjs +4 -4
- package/esm2022/shortcuts/mark.mjs +1 -1
- package/esm2022/test/basic/basic.component.mjs +57 -0
- package/esm2022/test/faker/data-transfer-faker.mjs +13 -0
- package/esm2022/test/faker/tethys-icon-faker.mjs +31 -0
- package/esm2022/test/index.mjs +7 -0
- package/esm2022/test/utils/mock-plugins.mjs +104 -0
- package/esm2022/test/utils/preset-config.mjs +17 -0
- package/esm2022/test/utils/with-plugin.mjs +11 -0
- package/esm2022/transforms/apply-deep-to-nodes.mjs +2 -2
- package/esm2022/transforms/clear-marks.mjs +1 -1
- package/esm2022/transforms/close-conversion-hint.mjs +1 -1
- package/esm2022/transforms/delete-element.mjs +2 -2
- package/esm2022/transforms/delete-node-by-type.mjs +2 -2
- package/esm2022/transforms/handle-continual-delete-backward.mjs +2 -2
- package/esm2022/transforms/handle-continual-insert-break.mjs +3 -3
- package/esm2022/transforms/index.mjs +22 -2
- package/esm2022/transforms/insert-elements.mjs +2 -2
- package/esm2022/transforms/move-children.mjs +4 -4
- package/esm2022/transforms/on-keydown-reset-block-type.mjs +2 -2
- package/esm2022/transforms/set-node-by-type.mjs +2 -2
- package/esm2022/transforms/set-node.mjs +2 -2
- package/esm2022/transforms/un-hang-range.mjs +1 -1
- package/esm2022/transforms/unwrap-nodes-by-type.mjs +1 -1
- package/esm2022/utils/auto-focus.mjs +2 -2
- package/esm2022/utils/blob.mjs +1 -1
- package/esm2022/utils/cast-array.mjs +1 -1
- package/esm2022/utils/color-picker.mjs +1 -1
- package/esm2022/utils/copy-node.mjs +1 -1
- package/esm2022/utils/data-transform.mjs +1 -1
- package/esm2022/utils/dom.mjs +1 -1
- package/esm2022/utils/fragment.mjs +3 -11
- package/esm2022/utils/id-creator.mjs +1 -1
- package/esm2022/utils/index.mjs +2 -1
- package/esm2022/utils/insert-data-by-invalid-type.mjs +2 -2
- package/esm2022/utils/is-clean-empty-paragraph.mjs +1 -1
- package/esm2022/utils/match.mjs +3 -3
- package/esm2022/utils/merge-element-options.mjs +1 -1
- package/esm2022/utils/refocus.mjs +2 -2
- package/esm2022/utils/scroll-into-view.mjs +1 -1
- package/esm2022/utils/update-popover-position.mjs +1 -1
- package/fesm2022/worktile-theia.mjs +7850 -7766
- package/fesm2022/worktile-theia.mjs.map +1 -1
- package/interfaces/editor.d.ts +7 -17
- package/interfaces/view-base.d.ts +3 -3
- package/package.json +8 -9
- package/pipes.d.ts +3 -3
- package/plugins/blockquote/blockquote.component.d.ts +5 -5
- package/plugins/code/code.component.d.ts +9 -8
- package/plugins/color/toolbar-item.component.d.ts +4 -4
- package/plugins/common/transforms.plugin.d.ts +8 -0
- package/plugins/hr/hr.component.d.ts +5 -5
- package/plugins/image/image.component.d.ts +10 -10
- package/plugins/indent/indent.editor.d.ts +1 -1
- package/plugins/inline-code/inline-code.component.d.ts +4 -4
- package/plugins/link/edit/link-edit.component.d.ts +5 -5
- package/plugins/link/hover/link-hover.component.d.ts +3 -3
- package/plugins/link/link.component.d.ts +11 -12
- package/plugins/list/components/bulleted-list.component.d.ts +5 -5
- package/plugins/list/components/list-item.component.d.ts +5 -5
- package/plugins/list/components/numbered-list.component.d.ts +5 -5
- package/plugins/list/normalizers/get-list-normalizer.d.ts +1 -1
- package/plugins/list/normalizers/normalize-no.d.ts +2 -2
- package/plugins/normalizers/insert-paragraph-nodes.d.ts +2 -1
- package/plugins/normalizers/trailing-node.plugin.d.ts +2 -1
- package/plugins/quick-insert/components/quick-insert.component.d.ts +3 -3
- package/plugins/soft-break/soft-break.plugin.d.ts +2 -1
- package/plugins/table/components/insert-mark/insert-mark.component.d.ts +5 -5
- package/plugins/table/components/row/row.component.d.ts +8 -13
- package/plugins/table/components/table.component.d.ts +18 -32
- package/plugins/table/components/table.component.scss +24 -37
- package/plugins/table/components/td/td.component.d.ts +15 -10
- package/plugins/table/components/toolbar/table-options.component.d.ts +4 -4
- package/plugins/table/components/toolbar/table-toolbar.component.d.ts +10 -9
- package/plugins/table/table.pipe.d.ts +5 -10
- package/plugins/table/table.types.d.ts +4 -5
- package/plugins/table/toolbar-item.component.d.ts +8 -8
- package/plugins/table/utils/calculate-table.d.ts +0 -1
- package/plugins/table/utils/get-grid-columns.d.ts +20 -1
- package/plugins/table/utils/handle-cell.d.ts +1 -1
- package/plugins/table/utils/is-header-row.d.ts +1 -1
- package/plugins/table/utils/is-legal-table.d.ts +0 -2
- package/plugins/table/utils/table-position.d.ts +1 -3
- package/plugins/todo-item/todo-item.component.d.ts +5 -7
- package/plugins/vertical-align/toolbar-item.component.d.ts +3 -3
- package/public-api.d.ts +3 -3
- package/queries/get-last-node.d.ts +2 -2
- package/queries/index.d.ts +81 -61
- package/queries/is-range-across-blocks.d.ts +1 -1
- package/services/table-contextmenu.service.d.ts +3 -3
- package/test/basic/basic.component.d.ts +13 -0
- package/test/faker/data-transfer-faker.d.ts +6 -0
- package/test/faker/tethys-icon-faker.d.ts +12 -0
- package/test/index.d.ts +6 -0
- package/test/utils/mock-plugins.d.ts +73 -0
- package/test/utils/preset-config.d.ts +2 -0
- package/test/utils/with-plugin.d.ts +3 -0
- package/transforms/index.d.ts +29 -17
- package/utils/index.d.ts +1 -0
- package/components/column-resize/column-resize.module.d.ts +0 -14
- package/editor.module.d.ts +0 -110
- package/esm2022/components/column-resize/column-resize.module.mjs +0 -33
- package/esm2022/editor.module.mjs +0 -254
- package/esm2022/queries/is-root-path.mjs +0 -2
- package/queries/is-root-path.d.ts +0 -2
package/interfaces/editor.d.ts
CHANGED
|
@@ -44,33 +44,23 @@ export declare const TheEditor: {
|
|
|
44
44
|
insertTextData(editor: AngularEditor, data: DataTransfer): boolean;
|
|
45
45
|
onKeydown(editor: AngularEditor, data: KeyboardEvent): void;
|
|
46
46
|
onClick(editor: AngularEditor, data: MouseEvent): void;
|
|
47
|
-
setFragmentData(editor: AngularEditor, data: DataTransfer, originEvent?: "
|
|
47
|
+
setFragmentData(editor: AngularEditor, data: DataTransfer, originEvent?: "copy" | "drag" | "cut"): void;
|
|
48
48
|
deleteCutData(editor: AngularEditor): void;
|
|
49
49
|
toDOMNode(editor: AngularEditor, node: Node): HTMLElement;
|
|
50
50
|
toDOMPoint(editor: AngularEditor, point: import("slate").BasePoint): import("slate-angular").DOMPoint;
|
|
51
51
|
toDOMRange(editor: AngularEditor, range: import("slate").BaseRange): globalThis.Range;
|
|
52
|
-
toSlateNode
|
|
53
|
-
suppressThrow: T;
|
|
54
|
-
}): T extends true ? Node : Node;
|
|
52
|
+
toSlateNode(editor: AngularEditor, domNode: globalThis.Node): Node;
|
|
55
53
|
findEventRange(editor: AngularEditor, event: any): import("slate").BaseRange;
|
|
56
|
-
isLeafInEditor(editor: AngularEditor, leafNode: globalThis.Element
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
toSlatePoint<T_1 extends boolean>(editor: AngularEditor, domPoint: import("slate-angular").DOMPoint, options: {
|
|
60
|
-
exactMatch?: boolean;
|
|
61
|
-
suppressThrow: T_1;
|
|
62
|
-
}): T_1 extends true ? import("slate").BasePoint : import("slate").BasePoint;
|
|
63
|
-
toSlateRange<T_2 extends boolean>(editor: AngularEditor, domRange: globalThis.Range | StaticRange | Selection, options?: {
|
|
64
|
-
exactMatch?: boolean;
|
|
65
|
-
suppressThrow: T_2;
|
|
66
|
-
}): T_2 extends true ? import("slate").BaseRange : import("slate").BaseRange;
|
|
54
|
+
isLeafInEditor(editor: AngularEditor, leafNode: globalThis.Element): boolean;
|
|
55
|
+
toSlatePoint(editor: AngularEditor, domPoint: import("slate-angular").DOMPoint): import("slate").BasePoint;
|
|
56
|
+
toSlateRange(editor: AngularEditor, domRange: globalThis.Range | Selection | StaticRange): import("slate").BaseRange;
|
|
67
57
|
isLeafBlock(editor: AngularEditor, node: Node): boolean;
|
|
68
58
|
isBlockCardLeftCursor(editor: AngularEditor): boolean;
|
|
69
59
|
isBlockCardRightCursor(editor: AngularEditor): boolean;
|
|
70
60
|
getCardCursorNode(editor: AngularEditor, blockCardNode: Node, options: {
|
|
71
|
-
direction: "
|
|
61
|
+
direction: "center" | "left" | "right";
|
|
72
62
|
}): ChildNode;
|
|
73
|
-
toSlateCardEntry(editor: AngularEditor, node: globalThis.Node): NodeEntry
|
|
63
|
+
toSlateCardEntry(editor: AngularEditor, node: globalThis.Node): NodeEntry;
|
|
74
64
|
moveBlockCard(editor: AngularEditor, blockCardNode: Node, options: {
|
|
75
65
|
direction: "left" | "right";
|
|
76
66
|
}): void;
|
|
@@ -2,9 +2,9 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { BaseElementComponent } from 'slate-angular';
|
|
3
3
|
import { Editor, Element } from 'slate';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class TheBaseElement<T extends Element = Element, K extends Editor = Editor> extends BaseElementComponent<T, K> implements OnInit {
|
|
6
6
|
onContextChange(): void;
|
|
7
7
|
ngOnInit(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheBaseElement<any, any>, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheBaseElement<any, any>, "TheBaseElement", never, {}, {}, never, never, false, never>;
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktile/theia",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "theia editor",
|
|
5
5
|
"author": "YanDong <nanianqiumo@foxmail.com>",
|
|
6
6
|
"homepage": "https://github.com/atinc/theia#readme",
|
|
7
|
-
"license": "
|
|
7
|
+
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/atinc/theia.git"
|
|
@@ -31,18 +31,17 @@
|
|
|
31
31
|
"url": "https://github.com/atinc/theia/issues"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"tslib": "^2.6.
|
|
34
|
+
"tslib": "^2.6.2",
|
|
35
35
|
"is-url": "^1.2.4",
|
|
36
36
|
"marked": "4.0.8"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@angular/core": "^
|
|
39
|
+
"@angular/core": "^17.2.4",
|
|
40
40
|
"date-fns": ">= 2.6.0",
|
|
41
|
-
"slate-angular": "
|
|
42
|
-
"slate": ">= 0.
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"ng-codemirror": "^16.0.0",
|
|
41
|
+
"slate-angular": "17.0.0",
|
|
42
|
+
"slate": ">= 0.72.8",
|
|
43
|
+
"ngx-tethys": "^17.0.0",
|
|
44
|
+
"ng-codemirror": "^17.0.0",
|
|
46
45
|
"lodash": "3.10.1",
|
|
47
46
|
"marked": "4.0.8"
|
|
48
47
|
},
|
package/pipes.d.ts
CHANGED
|
@@ -7,15 +7,15 @@ export declare class ElementStylePipe implements PipeTransform {
|
|
|
7
7
|
[key: string]: string;
|
|
8
8
|
};
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementStylePipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ElementStylePipe, "elementStyle",
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ElementStylePipe, "elementStyle", true>;
|
|
11
11
|
}
|
|
12
12
|
export declare class ElementClassPipe implements PipeTransform {
|
|
13
13
|
transform(element: Element): string;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementClassPipe, never>;
|
|
15
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ElementClassPipe, "elementClass",
|
|
15
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ElementClassPipe, "elementClass", true>;
|
|
16
16
|
}
|
|
17
17
|
export declare class PluginMenuPipe implements PipeTransform {
|
|
18
18
|
transform(icon: string | ((sceneKey?: string) => string), sceneKey?: string): string;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<PluginMenuPipe, never>;
|
|
20
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<PluginMenuPipe, "getMenuIcon",
|
|
20
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PluginMenuPipe, "getMenuIcon", true>;
|
|
21
21
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
2
|
import { Editor, Element } from 'slate';
|
|
3
|
-
import {
|
|
3
|
+
import { TheBaseElement } from '../../interfaces';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class TheBlockquote extends TheBaseElement<Element, Editor> {
|
|
6
6
|
elementRef: ElementRef;
|
|
7
7
|
cdr: ChangeDetectorRef;
|
|
8
8
|
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheBlockquote, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheBlockquote, "blockquote[theBlockquote]", never, {}, {}, never, never, true, never>;
|
|
11
11
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { CodeMirrorComponent } from 'ng-codemirror';
|
|
4
4
|
import { ThyNotifyService } from 'ngx-tethys/notify';
|
|
5
5
|
import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
|
|
6
6
|
import { ThyResizeEvent } from 'ngx-tethys/resizable';
|
|
7
7
|
import { Subject } from 'rxjs';
|
|
8
8
|
import { Editor } from 'slate';
|
|
9
|
-
import {
|
|
9
|
+
import { TheToolbarDropdown } from '../../components';
|
|
10
10
|
import { DropdownMode } from '../../constants';
|
|
11
11
|
import { CodeElement } from '../../custom-types';
|
|
12
|
-
import { DefaultToolbarItem,
|
|
12
|
+
import { DefaultToolbarItem, TheBaseElement } from '../../interfaces';
|
|
13
13
|
import { TheContextService } from '../../services/context.service';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
|
-
export declare class
|
|
15
|
+
export declare class TheCode extends TheBaseElement<CodeElement, Editor> implements OnInit, AfterViewInit, OnDestroy {
|
|
16
16
|
elementRef: ElementRef;
|
|
17
17
|
cdr: ChangeDetectorRef;
|
|
18
18
|
private thyNotifyService;
|
|
19
19
|
private contextService;
|
|
20
20
|
private ngZone;
|
|
21
21
|
private thyPopover;
|
|
22
|
+
private viewContainerRef;
|
|
22
23
|
private overlay;
|
|
23
24
|
startRenderCodemirror: boolean;
|
|
24
25
|
dropdownMode: typeof DropdownMode;
|
|
@@ -44,10 +45,10 @@ export declare class TheCodeComponent extends TheBaseElementComponent<CodeElemen
|
|
|
44
45
|
toolbarPopoverRef: ThyPopoverRef<any>;
|
|
45
46
|
toolbar: TemplateRef<any>;
|
|
46
47
|
codemirror: CodeMirrorComponent;
|
|
47
|
-
|
|
48
|
+
toolbarDropdown: TheToolbarDropdown;
|
|
48
49
|
get code(): string;
|
|
49
50
|
get isToolbarOpen(): boolean;
|
|
50
|
-
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, thyNotifyService: ThyNotifyService, contextService: TheContextService, ngZone: NgZone, thyPopover: ThyPopover, overlay: Overlay);
|
|
51
|
+
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, thyNotifyService: ThyNotifyService, contextService: TheContextService, ngZone: NgZone, thyPopover: ThyPopover, viewContainerRef: ViewContainerRef, overlay: Overlay);
|
|
51
52
|
onContextChange(): void;
|
|
52
53
|
ngOnInit(): void;
|
|
53
54
|
ngAfterViewInit(): void;
|
|
@@ -69,6 +70,6 @@ export declare class TheCodeComponent extends TheBaseElementComponent<CodeElemen
|
|
|
69
70
|
onEndResize(): void;
|
|
70
71
|
onChangeWrap(value: boolean): void;
|
|
71
72
|
ngOnDestroy(): void;
|
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheCode, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheCode, "div[theCode]", never, {}, {}, never, never, true, never>;
|
|
74
75
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { TheBaseToolbarItem } from '../../core
|
|
2
|
+
import { TheBaseToolbarItem } from '../../core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class TheColorToolbarItem extends TheBaseToolbarItem implements OnInit {
|
|
5
5
|
selectedColor: string;
|
|
6
6
|
get lastTextColor(): string;
|
|
7
7
|
get lastBackgroundColor(): string;
|
|
@@ -15,6 +15,6 @@ export declare class TheColorToolbarItemComponent extends TheBaseToolbarItem imp
|
|
|
15
15
|
selectColor(event: Event): void;
|
|
16
16
|
changeColor(color: string): void;
|
|
17
17
|
colorPanelClose(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheColorToolbarItem, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheColorToolbarItem, "the-color-toolbar-item", never, {}, {}, never, never, true, never>;
|
|
20
20
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Transforms } from 'slate';
|
|
2
|
+
type Params = Parameters<typeof Transforms.insertNodes>;
|
|
3
|
+
export interface TransformEditor {
|
|
4
|
+
insertNodes: (nodes: Params[1], options?: Params[2]) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const withTransforms: <T extends import("../../interfaces").TheEditor>(editor: T) => T & TransformEditor;
|
|
7
|
+
export declare const createTransformsPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
8
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
2
|
import { Editor, Element } from 'slate';
|
|
3
|
-
import {
|
|
3
|
+
import { TheBaseElement } from '../../interfaces';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class TheHr extends TheBaseElement<Element, Editor> implements AfterViewInit {
|
|
6
6
|
elementRef: ElementRef;
|
|
7
7
|
cdr: ChangeDetectorRef;
|
|
8
8
|
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
|
|
9
9
|
ngAfterViewInit(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheHr, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheHr, "the-hr, [theHr]", never, {}, {}, never, never, true, never>;
|
|
12
12
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, DestroyRef, ElementRef, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
3
|
-
import { ThyImageDirective,
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, DestroyRef, ElementRef, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { ThyImageDirective, ThyImageGroup } from 'ngx-tethys/image';
|
|
4
4
|
import { ThyPopover } from 'ngx-tethys/popover';
|
|
5
5
|
import { Editor } from 'slate';
|
|
6
6
|
import { BeforeContextChange, SlateElementContext } from 'slate-angular';
|
|
7
|
-
import { Alignment, LayoutTypes } from '../../constants
|
|
7
|
+
import { Alignment, LayoutTypes } from '../../constants';
|
|
8
8
|
import { ImageElement } from '../../custom-types';
|
|
9
|
-
import {
|
|
10
|
-
import { ImageEntry, LayoutOption, TheImageUploaderService } from '../../interfaces/image';
|
|
9
|
+
import { ImageEntry, LayoutOption, TheBaseElement, TheImageUploaderService } from '../../interfaces';
|
|
11
10
|
import { TheContextService } from '../../services/context.service';
|
|
12
11
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class
|
|
12
|
+
export declare class TheImage extends TheBaseElement<ImageElement, Editor> implements OnInit, OnDestroy, AfterViewInit, BeforeContextChange<SlateElementContext> {
|
|
14
13
|
elementRef: ElementRef;
|
|
15
14
|
cdr: ChangeDetectorRef;
|
|
16
|
-
imageGroupComponent:
|
|
15
|
+
imageGroupComponent: ThyImageGroup;
|
|
17
16
|
private imageUploaderService;
|
|
18
17
|
private theContextService;
|
|
19
18
|
private thyPopover;
|
|
20
19
|
private overlay;
|
|
20
|
+
private viewContainerRef;
|
|
21
21
|
private destroyRef;
|
|
22
22
|
naturalWidth: number;
|
|
23
23
|
naturalHeight: number;
|
|
@@ -43,7 +43,7 @@ export declare class TheImageComponent extends TheBaseElementComponent<ImageElem
|
|
|
43
43
|
img: ElementRef;
|
|
44
44
|
layoutToolbar: TemplateRef<any>;
|
|
45
45
|
imageDirective: ThyImageDirective;
|
|
46
|
-
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, imageGroupComponent:
|
|
46
|
+
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, imageGroupComponent: ThyImageGroup, imageUploaderService: TheImageUploaderService, theContextService: TheContextService, thyPopover: ThyPopover, overlay: Overlay, viewContainerRef: ViewContainerRef, destroyRef: DestroyRef);
|
|
47
47
|
beforeContextChange: (value: SlateElementContext<ImageElement>) => void;
|
|
48
48
|
ngOnInit(): void;
|
|
49
49
|
ngAfterViewInit(): void;
|
|
@@ -80,6 +80,6 @@ export declare class TheImageComponent extends TheBaseElementComponent<ImageElem
|
|
|
80
80
|
imageError(event: Event): void;
|
|
81
81
|
preventDefault(event: Event): void;
|
|
82
82
|
imageClick(): void;
|
|
83
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheImage, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheImage, "the-image, [theImage]", never, {}, {}, never, never, true, never>;
|
|
85
85
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Editor, Element } from 'slate';
|
|
2
|
-
import { TheEditor } from '../../interfaces';
|
|
3
2
|
import { CustomElementKinds } from '../../custom-types';
|
|
3
|
+
import { TheEditor } from '../../interfaces';
|
|
4
4
|
export declare const IndentEditor: {
|
|
5
5
|
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
6
|
setIndent(editor: TheEditor): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Editor } from 'slate';
|
|
2
2
|
import { InlineCodeElement } from '../../custom-types';
|
|
3
|
-
import {
|
|
3
|
+
import { TheBaseElement } from '../../interfaces';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class TheInlineCode extends TheBaseElement<InlineCodeElement, Editor> {
|
|
6
6
|
inlineChromiumBugfix: string;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheInlineCode, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheInlineCode, "span[theInlineCode]", never, {}, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ThyPopoverRef } from 'ngx-tethys/popover';
|
|
3
|
-
import {
|
|
4
|
-
import { LinkTags } from '../link.types';
|
|
3
|
+
import { Editor, Range } from 'slate';
|
|
5
4
|
import { LinkElement } from '../../../custom-types';
|
|
5
|
+
import { LinkTags } from '../link.types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class TheLinkEdit implements OnInit {
|
|
8
8
|
thyPopoverRef: ThyPopoverRef<any>;
|
|
9
9
|
className: string;
|
|
10
10
|
tag: LinkTags;
|
|
@@ -31,6 +31,6 @@ export declare class TheLinkEditComponent implements OnInit {
|
|
|
31
31
|
ngOnInit(): void;
|
|
32
32
|
closePopover(type?: string): void;
|
|
33
33
|
applyLink(form: any): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheLinkEdit, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheLinkEdit, "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, true, never>;
|
|
36
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class TheLinkHover implements OnInit {
|
|
4
4
|
link: string;
|
|
5
5
|
dom: HTMLElement;
|
|
6
6
|
editHandle: () => void;
|
|
@@ -10,6 +10,6 @@ export declare class TheLinkHoverComponent implements OnInit {
|
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
editLink(event: MouseEvent): void;
|
|
12
12
|
removeLink(event: MouseEvent): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheLinkHover, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheLinkHover, "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, true, never>;
|
|
15
15
|
}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
-
import {
|
|
2
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
|
|
4
4
|
import { Editor } from 'slate';
|
|
5
|
+
import { SlateElementContext } from 'slate-angular';
|
|
5
6
|
import { LinkElement } from '../../custom-types';
|
|
6
|
-
import {
|
|
7
|
+
import { TheBaseElement } from '../../interfaces';
|
|
7
8
|
import { LinkTags } from './link.types';
|
|
8
|
-
import { SlateElementContext } from 'slate-angular';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class
|
|
10
|
+
export declare class TheBaseLink extends TheBaseElement<LinkElement, Editor> implements OnInit, OnDestroy {
|
|
11
11
|
elementRef: ElementRef;
|
|
12
12
|
cdr: ChangeDetectorRef;
|
|
13
13
|
private thyPopover;
|
|
14
14
|
private overlay;
|
|
15
|
+
private viewContainerRef;
|
|
15
16
|
thyPopoverHoverRef: ThyPopoverRef<any>;
|
|
16
17
|
thyPopoverEditRef: ThyPopoverRef<any>;
|
|
17
18
|
get linkHoverOpened(): boolean;
|
|
18
19
|
get linkEditOpened(): boolean;
|
|
19
|
-
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, thyPopover: ThyPopover, overlay: Overlay);
|
|
20
|
+
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, thyPopover: ThyPopover, overlay: Overlay, viewContainerRef: ViewContainerRef);
|
|
20
21
|
ngOnInit(): void;
|
|
21
22
|
closeHoverPopover(): void;
|
|
22
23
|
beforeContextChange: (value: SlateElementContext) => void;
|
|
@@ -28,13 +29,11 @@ export declare class TheBaseLinkComponent extends TheBaseElementComponent<LinkEl
|
|
|
28
29
|
private internalOpenLinkEdit;
|
|
29
30
|
close(type?: string): void;
|
|
30
31
|
ngOnDestroy(): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheBaseLink, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheBaseLink, "ng-component", never, {}, {}, never, never, false, never>;
|
|
33
34
|
}
|
|
34
|
-
export declare class
|
|
35
|
-
outletParent: ElementRef;
|
|
36
|
-
getOutletParent: () => any;
|
|
35
|
+
export declare class TheLink extends TheBaseLink {
|
|
37
36
|
inlineChromiumBugfix: string;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheLink, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheLink, "a[theLink]", never, {}, {}, never, never, true, never>;
|
|
40
39
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Editor } from 'slate';
|
|
3
3
|
import { BulletedListElement } from '../../../custom-types';
|
|
4
|
-
import {
|
|
4
|
+
import { TheBaseElement } from '../../../interfaces';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class TheBulletedList extends TheBaseElement<BulletedListElement, Editor> implements OnInit, OnDestroy {
|
|
7
7
|
elementRef: ElementRef;
|
|
8
8
|
cdr: ChangeDetectorRef;
|
|
9
9
|
get level(): number;
|
|
10
10
|
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
|
|
11
11
|
ngOnInit(): void;
|
|
12
12
|
ngOnDestroy(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheBulletedList, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheBulletedList, "ul[theUl]", never, {}, {}, never, never, true, never>;
|
|
15
15
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Editor, Element } from 'slate';
|
|
3
|
-
import {
|
|
3
|
+
import { TheBaseElement } from '../../../interfaces';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class TheListItem extends TheBaseElement<Element, Editor> implements OnInit, OnDestroy {
|
|
6
6
|
elementRef: ElementRef;
|
|
7
7
|
cdr: ChangeDetectorRef;
|
|
8
8
|
fontSizeClass: string;
|
|
@@ -15,6 +15,6 @@ export declare class TheListItemComponent extends TheBaseElementComponent<Elemen
|
|
|
15
15
|
getStart(): number;
|
|
16
16
|
getLiIndex(): number;
|
|
17
17
|
addMultiDigit(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheListItem, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheListItem, "li[theLi]", never, {}, {}, never, never, true, never>;
|
|
20
20
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Editor } from 'slate';
|
|
3
3
|
import { NumberedListElement } from '../../../custom-types';
|
|
4
|
-
import {
|
|
4
|
+
import { TheBaseElement } from '../../../interfaces';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class TheNumberedList extends TheBaseElement<NumberedListElement, Editor> implements OnInit, OnDestroy {
|
|
7
7
|
elementRef: ElementRef;
|
|
8
8
|
cdr: ChangeDetectorRef;
|
|
9
9
|
get start(): number;
|
|
@@ -11,6 +11,6 @@ export declare class TheNumberedListComponent extends TheBaseElementComponent<Nu
|
|
|
11
11
|
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
|
|
12
12
|
ngOnInit(): void;
|
|
13
13
|
ngOnDestroy(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheNumberedList, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheNumberedList, "ol[theOl]", never, {}, {}, never, never, true, never>;
|
|
16
16
|
}
|
|
@@ -3,4 +3,4 @@ import { ListNormalizerOptions } from '../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Normalize list node to force the ul>li>p+ul structure.
|
|
5
5
|
*/
|
|
6
|
-
export declare const getListNormalizer: (editor: Editor, { validLiChildrenTypes }: ListNormalizerOptions) => ([node, path]: NodeEntry
|
|
6
|
+
export declare const getListNormalizer: (editor: Editor, { validLiChildrenTypes }: ListNormalizerOptions) => ([node, path]: NodeEntry) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Editor,
|
|
2
|
-
export declare const normalizeNo: (editor: Editor, nodeEntry: NodeEntry
|
|
1
|
+
import { Editor, NodeEntry } from 'slate';
|
|
2
|
+
export declare const normalizeNo: (editor: Editor, nodeEntry: NodeEntry) => boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CustomElementKinds } from '../../custom-types';
|
|
2
|
+
import { TransformEditor } from '../common/transforms.plugin';
|
|
2
3
|
export interface InsertParagraphNodesOptions {
|
|
3
4
|
types: CustomElementKinds[];
|
|
4
5
|
}
|
|
5
|
-
export declare const withInsertParagraphNodes: <T extends import("../../interfaces").TheEditor>(editor: T) => T;
|
|
6
|
+
export declare const withInsertParagraphNodes: <T extends import("../../interfaces").TheEditor & TransformEditor>(editor: T) => T;
|
|
6
7
|
export declare const createInsertParagraphNodesPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, InsertParagraphNodesOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, InsertParagraphNodesOptions>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { QueryOptions } from '../../interfaces';
|
|
2
|
+
import { TransformEditor } from '../common/transforms.plugin';
|
|
2
3
|
import { CustomElementKinds } from '../../custom-types';
|
|
3
4
|
export interface WithTrailingNode extends QueryOptions {
|
|
4
5
|
type?: CustomElementKinds;
|
|
5
6
|
level?: number;
|
|
6
7
|
}
|
|
7
|
-
export declare const withTrailingNode: <T extends import("../../interfaces").TheEditor>(editor: T) => T;
|
|
8
|
+
export declare const withTrailingNode: <T extends import("../../interfaces").TheEditor & TransformEditor>(editor: T) => T;
|
|
8
9
|
export declare const createTrailingNodePlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Editor } from 'slate';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class TheQuickInsert implements OnInit, OnChanges {
|
|
5
5
|
private renderer;
|
|
6
6
|
private elementRef;
|
|
7
7
|
private cdr;
|
|
@@ -25,6 +25,6 @@ export declare class TheQuickInsertComponent implements OnInit, OnChanges {
|
|
|
25
25
|
mouseEnter(event: MouseEvent): void;
|
|
26
26
|
mouseLeave(event: MouseEvent): void;
|
|
27
27
|
handleClick(event: MouseEvent): void;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheQuickInsert, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheQuickInsert, "[theQuickInsert]", never, { "editor": { "alias": "editor"; "required": false; }; "isVisible": { "alias": "isVisible"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
30
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TheEditor } from '../../interfaces';
|
|
2
|
+
import { TransformEditor } from '../common/transforms.plugin';
|
|
2
3
|
import { SoftBreakOnKeyDownOptions } from './soft-break.types';
|
|
3
|
-
export declare const withSoftBreak: <T extends TheEditor>(editor: T) => T;
|
|
4
|
+
export declare const withSoftBreak: <T extends TheEditor & TransformEditor>(editor: T) => T;
|
|
4
5
|
export declare const createSoftBreakPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, SoftBreakOnKeyDownOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, SoftBreakOnKeyDownOptions>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
2
3
|
import { Editor } from 'slate';
|
|
3
4
|
import { TableStore } from '../../table.store';
|
|
4
|
-
import { Subject } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class TheInsertMark implements OnInit, OnDestroy {
|
|
7
7
|
private cdr;
|
|
8
8
|
renderer2: Renderer2;
|
|
9
9
|
type: 'row' | 'column';
|
|
@@ -23,6 +23,6 @@ export declare class TheInsertMarkComponent implements OnInit, OnDestroy {
|
|
|
23
23
|
onMouseEnter(event: MouseEvent): void;
|
|
24
24
|
onMouseLeave(event: MouseEvent): void;
|
|
25
25
|
getLength(): string;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheInsertMark, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheInsertMark, "the-table-insert-mark", never, { "type": { "alias": "type"; "required": false; }; "at": { "alias": "at"; "required": false; }; "tableStore": { "alias": "tableStore"; "required": false; }; "parentElement": { "alias": "parentElement"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
28
|
}
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AfterContextChange } from 'slate-angular';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
3
2
|
import { TableRowElement } from '../../../../custom-types';
|
|
4
|
-
import {
|
|
3
|
+
import { TheBaseElement } from '../../../../interfaces/';
|
|
4
|
+
import { TablePosition } from '../../utils';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class TheTableRow extends TheBaseElement<TableRowElement> implements OnInit {
|
|
7
7
|
elementRef: ElementRef<HTMLElement>;
|
|
8
8
|
cdr: ChangeDetectorRef;
|
|
9
9
|
private renderer;
|
|
10
10
|
height: string;
|
|
11
11
|
numberedColumn: boolean;
|
|
12
12
|
rowNumber: number | string;
|
|
13
|
-
numberedColumnRef: ElementRef<HTMLElement>;
|
|
14
13
|
constructor(elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, renderer: Renderer2);
|
|
15
14
|
onContextChange(): void;
|
|
16
|
-
afterContextChange(): void;
|
|
17
15
|
ngOnInit(): void;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
updateNumberedColumnPosition(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TheTableRowComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TheTableRowComponent, "tr[theTableRow]", never, {}, {}, never, never, false, never>;
|
|
16
|
+
useHeight(): void;
|
|
17
|
+
setNumberColumn(ps: TablePosition, rowIndex: number): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheTableRow, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheTableRow, "tr[theTableRow]", never, {}, {}, never, never, true, never>;
|
|
25
20
|
}
|