@atlaskit/editor-plugin-table 23.4.1 → 23.4.3
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/CHANGELOG.md +14 -0
- package/dist/cjs/ui/TableFloatingControls/index.js +1 -17
- package/dist/es2019/ui/TableFloatingControls/index.js +1 -17
- package/dist/esm/ui/TableFloatingControls/index.js +1 -17
- package/dist/types/ui/FloatingContextualButton/index.d.ts +0 -1
- package/dist/types/ui/TableFloatingControls/index.d.ts +1 -1
- package/package.json +4 -4
- package/table-plugin/package.json +1 -8
- package/table-plugin-type/package.json +1 -8
- package/types/package.json +1 -8
- package/ui/common-styles/package.json +1 -8
- package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -125
- package/dist/cjs/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -52
- package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -124
- package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -110
- package/dist/es2019/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -47
- package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -101
- package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -116
- package/dist/esm/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -45
- package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -115
- package/dist/types/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +0 -6
- package/dist/types/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +0 -20
- package/dist/types/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +0 -19
- package/dist/types-ts4.5/entry-points/table-plugin-type.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/table-plugin.d.ts +0 -6
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/ui-common-styles.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -7
- package/dist/types-ts4.5/nodeviews/ExternalDropTargets.d.ts +0 -9
- package/dist/types-ts4.5/nodeviews/OverflowShadowsObserver.d.ts +0 -26
- package/dist/types-ts4.5/nodeviews/TableCell.d.ts +0 -24
- package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +0 -48
- package/dist/types-ts4.5/nodeviews/TableComponentWithSharedState.d.ts +0 -30
- package/dist/types-ts4.5/nodeviews/TableContainer.d.ts +0 -48
- package/dist/types-ts4.5/nodeviews/TableNodeViewBase.d.ts +0 -18
- package/dist/types-ts4.5/nodeviews/TableResizer.d.ts +0 -36
- package/dist/types-ts4.5/nodeviews/TableRow.d.ts +0 -68
- package/dist/types-ts4.5/nodeviews/TableRowNativeStickyWithFallback.d.ts +0 -89
- package/dist/types-ts4.5/nodeviews/TableStickyScrollbar.d.ts +0 -23
- package/dist/types-ts4.5/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +0 -9
- package/dist/types-ts4.5/nodeviews/__mocks__/OverridableMock.d.ts +0 -9
- package/dist/types-ts4.5/nodeviews/table-container-styles.d.ts +0 -5
- package/dist/types-ts4.5/nodeviews/table-node-views.d.ts +0 -30
- package/dist/types-ts4.5/nodeviews/table.d.ts +0 -48
- package/dist/types-ts4.5/nodeviews/toDOM.d.ts +0 -17
- package/dist/types-ts4.5/nodeviews/types.d.ts +0 -33
- package/dist/types-ts4.5/nodeviews/update-overflow-shadows.d.ts +0 -1
- package/dist/types-ts4.5/pm-plugins/active-cell-highlight/plugin.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/analytics/actions.d.ts +0 -18
- package/dist/types-ts4.5/pm-plugins/analytics/commands.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/analytics/plugin-factory.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/analytics/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/analytics/plugin.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/analytics/reducer.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/analytics/types.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/analytics/utils/moved-event.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/commands/active-table-menu.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/commands/clear.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/commands/collapse.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/commands/column-resize.d.ts +0 -34
- package/dist/types-ts4.5/pm-plugins/commands/commands-with-analytics.d.ts +0 -33
- package/dist/types-ts4.5/pm-plugins/commands/delete.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/commands/display-mode.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/commands/go-to-next-cell.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/commands/hover.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/commands/index.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/commands/insert.d.ts +0 -54
- package/dist/types-ts4.5/pm-plugins/commands/misc.d.ts +0 -47
- package/dist/types-ts4.5/pm-plugins/commands/referentiality.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/commands/selection.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/commands/sort.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/commands/split-cell.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/commands/toggle.d.ts +0 -12
- package/dist/types-ts4.5/pm-plugins/create-plugin-config.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/decorations/plugin.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/decorations/utils/column-controls.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/decorations/utils/column-resizing.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/decorations/utils/compose-decorations.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/decorations/utils/types.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/default-table-selection.d.ts +0 -16
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/actions.d.ts +0 -28
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands-with-analytics.d.ts +0 -13
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/consts.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin-factory.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/reducer.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/types.d.ts +0 -14
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/getDragBehaviour.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/monitor.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/editor-content-area-height.d.ts +0 -12
- package/dist/types-ts4.5/pm-plugins/handlers.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/keymap.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/main.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/plugin-factory.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/reducer.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +0 -13
- package/dist/types-ts4.5/pm-plugins/sticky-headers/commands.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin-state.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/sticky-headers/types.d.ts +0 -17
- package/dist/types-ts4.5/pm-plugins/sticky-headers/util.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/table-analytics.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/table-anchor-names/plugin.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/table-local-id.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/table-resizing/commands.d.ts +0 -20
- package/dist/types-ts4.5/pm-plugins/table-resizing/event-handlers.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-factory.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/table-resizing/plugin.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/table-resizing/reducer.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/colgroup.d.ts +0 -26
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/column-state.d.ts +0 -14
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/consts.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/content-width.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/dom.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/misc.d.ts +0 -69
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-column.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-logic.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-state.d.ts +0 -28
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/scale-table.d.ts +0 -20
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/types.d.ts +0 -23
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/unit-to-number.d.ts +0 -1
- package/dist/types-ts4.5/pm-plugins/table-selection-keymap.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/table-size-selector.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/table-width-in-comment-fix.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/table-width.d.ts +0 -17
- package/dist/types-ts4.5/pm-plugins/transforms/column-width.d.ts +0 -25
- package/dist/types-ts4.5/pm-plugins/transforms/content-mode.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/transforms/delete-columns.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/transforms/delete-rows.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/transforms/fix-tables.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/transforms/merge.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/transforms/replace-table.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/transforms/split.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/transforms/table-transform-utils.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/utils/alignment.d.ts +0 -14
- package/dist/types-ts4.5/pm-plugins/utils/analytics.d.ts +0 -49
- package/dist/types-ts4.5/pm-plugins/utils/collapse.d.ts +0 -31
- package/dist/types-ts4.5/pm-plugins/utils/column-controls.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/utils/create.d.ts +0 -15
- package/dist/types-ts4.5/pm-plugins/utils/decoration.d.ts +0 -19
- package/dist/types-ts4.5/pm-plugins/utils/dom.d.ts +0 -42
- package/dist/types-ts4.5/pm-plugins/utils/drag-menu.d.ts +0 -19
- package/dist/types-ts4.5/pm-plugins/utils/get-allow-add-column-custom-step.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/utils/guidelines.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/utils/merged-cells.d.ts +0 -25
- package/dist/types-ts4.5/pm-plugins/utils/nodes.d.ts +0 -30
- package/dist/types-ts4.5/pm-plugins/utils/paste.d.ts +0 -16
- package/dist/types-ts4.5/pm-plugins/utils/row-controls.d.ts +0 -15
- package/dist/types-ts4.5/pm-plugins/utils/selection.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/utils/snapping.d.ts +0 -17
- package/dist/types-ts4.5/pm-plugins/utils/sticky-header.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/utils/table.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/apply-measured-width-to-all-tables.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/apply-measured-width-to-selected-table.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/is-content-mode-supported.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/measure-table-with-auto-layout.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/constants.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/distribute-column-widths.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/run-smart-adjust.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/utils/update-plugin-state-decorations.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/consts.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/index.d.ts +0 -21
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/types.d.ts +0 -22
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/utils.d.ts +0 -11
- package/dist/types-ts4.5/tablePlugin.d.ts +0 -7
- package/dist/types-ts4.5/tablePluginType.d.ts +0 -81
- package/dist/types-ts4.5/types/index.d.ts +0 -544
- package/dist/types-ts4.5/ui/ColumnResizeWidget/index.d.ts +0 -12
- package/dist/types-ts4.5/ui/ContentComponent.d.ts +0 -18
- package/dist/types-ts4.5/ui/DragHandle/HandleIconComponent.d.ts +0 -8
- package/dist/types-ts4.5/ui/DragHandle/index.d.ts +0 -29
- package/dist/types-ts4.5/ui/DragPreview/index.d.ts +0 -7
- package/dist/types-ts4.5/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.d.ts +0 -13
- package/dist/types-ts4.5/ui/FloatingContextualButton/FixedButton.d.ts +0 -22
- package/dist/types-ts4.5/ui/FloatingContextualButton/index.d.ts +0 -22
- package/dist/types-ts4.5/ui/FloatingContextualButton/styles.d.ts +0 -3
- package/dist/types-ts4.5/ui/FloatingContextualMenu/CellMenuPopup.d.ts +0 -14
- package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +0 -63
- package/dist/types-ts4.5/ui/FloatingContextualMenu/index.d.ts +0 -24
- package/dist/types-ts4.5/ui/FloatingContextualMenu/styles.d.ts +0 -3
- package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +0 -14
- package/dist/types-ts4.5/ui/FloatingDeleteButton/getPopUpOptions.d.ts +0 -10
- package/dist/types-ts4.5/ui/FloatingDeleteButton/index.d.ts +0 -55
- package/dist/types-ts4.5/ui/FloatingDeleteButton/types.d.ts +0 -2
- package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +0 -41
- package/dist/types-ts4.5/ui/FloatingDragMenu/DropdownMenu.d.ts +0 -36
- package/dist/types-ts4.5/ui/FloatingDragMenu/index.d.ts +0 -36
- package/dist/types-ts4.5/ui/FloatingDragMenu/styles.d.ts +0 -4
- package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +0 -18
- package/dist/types-ts4.5/ui/FloatingInsertButton/getPopupOptions.d.ts +0 -4
- package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +0 -40
- package/dist/types-ts4.5/ui/FloatingTableMenu/index.d.ts +0 -23
- package/dist/types-ts4.5/ui/FloatingToolbarLabel/FloatingToolbarLabel.d.ts +0 -16
- package/dist/types-ts4.5/ui/SizeSelector/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +0 -24
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.d.ts +0 -10
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/index.d.ts +0 -33
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +0 -6
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +0 -15
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/types.d.ts +0 -11
- package/dist/types-ts4.5/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +0 -20
- package/dist/types-ts4.5/ui/TableFloatingControls/NumberColumn/index.d.ts +0 -22
- package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +0 -19
- package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/DragControls.d.ts +0 -25
- package/dist/types-ts4.5/ui/TableFloatingControls/RowDropTarget/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +0 -37
- package/dist/types-ts4.5/ui/TableFullWidthLabel/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/TableMenu/cell/getCellMenuComponents.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/cell/items/MergeCellsItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/cell/items/SplitCellItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/cell/items/VerticalAlignDropdownItem.d.ts +0 -12
- package/dist/types-ts4.5/ui/TableMenu/cell/items/VerticalAlignNestedMenu.d.ts +0 -4
- package/dist/types-ts4.5/ui/TableMenu/cell/items/verticalAlignUtils.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/cell/keys.d.ts +0 -16
- package/dist/types-ts4.5/ui/TableMenu/column/getColumnMenuComponents.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/AddColumnLeftItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/AddColumnRightItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/ColumnBackgroundSection.d.ts +0 -11
- package/dist/types-ts4.5/ui/TableMenu/column/items/ColumnToggleSection.d.ts +0 -10
- package/dist/types-ts4.5/ui/TableMenu/column/items/DeleteColumnItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/DistributeColumnsItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/HeaderColumnToggleItem.d.ts +0 -16
- package/dist/types-ts4.5/ui/TableMenu/column/items/MoveColumnLeftItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/MoveColumnRightItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/SortDecreasingItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/SortIncreasingItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/keys.d.ts +0 -22
- package/dist/types-ts4.5/ui/TableMenu/row/getRowMenuComponents.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/AddRowAboveItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/AddRowBelowItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/DeleteRowItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/HeaderRowToggleItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/MoveRowDownItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/MoveRowUpItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/NumberedRowsToggleItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/keys.d.ts +0 -18
- package/dist/types-ts4.5/ui/TableMenu/shared/TableMenu.d.ts +0 -11
- package/dist/types-ts4.5/ui/TableMenu/shared/TableMenuContext.d.ts +0 -16
- package/dist/types-ts4.5/ui/TableMenu/shared/consts.d.ts +0 -4
- package/dist/types-ts4.5/ui/TableMenu/shared/getSharedItems.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/shared/getTableMenuComponents.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/shared/items/BackgroundColorItem.d.ts +0 -7
- package/dist/types-ts4.5/ui/TableMenu/shared/items/ClearCellsItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/shared/keys.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/shared/types.d.ts +0 -4
- package/dist/types-ts4.5/ui/common-styles.d.ts +0 -14
- package/dist/types-ts4.5/ui/consts.d.ts +0 -69
- package/dist/types-ts4.5/ui/event-handlers.d.ts +0 -20
- package/dist/types-ts4.5/ui/global-styles.d.ts +0 -11
- package/dist/types-ts4.5/ui/hooks/useInternalTablePluginStateSelector.d.ts +0 -22
- package/dist/types-ts4.5/ui/icons/AddColLeftIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/AddColRightIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/AddRowAboveIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/AddRowBelowIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/DragHandleDisabledIcon.d.ts +0 -6
- package/dist/types-ts4.5/ui/icons/DragHandleIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/DragInMotionIcon.d.ts +0 -6
- package/dist/types-ts4.5/ui/icons/MergeCellsIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/MinimisedHandle.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/SortingIconWrapper.d.ts +0 -10
- package/dist/types-ts4.5/ui/icons/SplitCellIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/rounded-table-styles.d.ts +0 -2
- package/dist/types-ts4.5/ui/toolbar.d.ts +0 -11
- package/dist/types-ts4.5/ui/ui-styles.d.ts +0 -21
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { ActiveTableMenu, PluginInjectionAPI } from '../../types';
|
|
3
|
-
export declare const closeActiveTableMenu: (api?: PluginInjectionAPI | null) => EditorCommand;
|
|
4
|
-
export declare const toggleActiveTableMenu: (activeTableMenu: Exclude<ActiveTableMenu, {
|
|
5
|
-
type: "none";
|
|
6
|
-
}>, currentActiveTableMenu: ActiveTableMenu | undefined, api?: PluginInjectionAPI | null) => EditorCommand;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl/src/types';
|
|
2
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
|
-
import type { Command, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
|
|
5
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
-
import type { Direction } from '@atlaskit/editor-tables/types';
|
|
7
|
-
import type { PluginInjectionAPI } from '../../types';
|
|
8
|
-
export declare const initiateKeyboardColumnResizing: ({ ariaNotify, getIntl, nodeViewPortalProviderAPI, }: {
|
|
9
|
-
ariaNotify?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
|
|
10
|
-
getIntl?: () => IntlShape;
|
|
11
|
-
nodeViewPortalProviderAPI: PortalProviderAPI;
|
|
12
|
-
}) => Command;
|
|
13
|
-
export declare const activateNextResizeArea: ({ direction, ariaNotify, getIntl, nodeViewPortalProviderAPI, }: {
|
|
14
|
-
ariaNotify?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
|
|
15
|
-
direction: Direction;
|
|
16
|
-
getIntl?: () => IntlShape;
|
|
17
|
-
nodeViewPortalProviderAPI: PortalProviderAPI;
|
|
18
|
-
}) => Command;
|
|
19
|
-
export declare const changeColumnWidthByStep: ({ stepSize, getEditorContainerWidth, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor, ariaNotify, api, getIntl, }: {
|
|
20
|
-
api: PluginInjectionAPI | undefined | null;
|
|
21
|
-
ariaNotify?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
|
|
22
|
-
getEditorContainerWidth: GetEditorContainerWidth;
|
|
23
|
-
getIntl?: () => IntlShape;
|
|
24
|
-
isCommentEditor: boolean;
|
|
25
|
-
isTableFixedColumnWidthsOptionEnabled: boolean;
|
|
26
|
-
isTableScalingEnabled: boolean;
|
|
27
|
-
originalTr?: Transaction;
|
|
28
|
-
stepSize: number;
|
|
29
|
-
}) => Command;
|
|
30
|
-
export declare const stopKeyboardColumnResizing: ({ ariaNotify, getIntl, originalTr, }: {
|
|
31
|
-
ariaNotify?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
|
|
32
|
-
getIntl?: () => IntlShape;
|
|
33
|
-
originalTr?: Transaction;
|
|
34
|
-
}) => Command;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl/src/types';
|
|
2
|
-
import type { TableLayout } from '@atlaskit/adf-schema';
|
|
3
|
-
import type { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
4
|
-
import type { CHANGE_ALIGNMENT_REASON, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import type { Command, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
8
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
|
-
import type { Rect } from '@atlaskit/editor-tables/table-map';
|
|
10
|
-
import type { AlignmentOptions, InsertRowMethods, InsertRowOptions, PluginInjectionAPI, RowInsertPosition } from '../../types';
|
|
11
|
-
import type { ResizeStateWithAnalytics } from '../table-resizing/utils/types';
|
|
12
|
-
export declare const emptyMultipleCellsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, targetCellPosition?: number) => Command;
|
|
13
|
-
export declare const mergeCellsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | null | undefined) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB) => Command;
|
|
14
|
-
export declare const splitCellWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB) => Command;
|
|
15
|
-
export declare const setColorWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, cellColor: string, editorView?: EditorView | null) => Command;
|
|
16
|
-
export declare const addRowAroundSelection: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (side: RowInsertPosition) => Command;
|
|
17
|
-
export declare const insertRowWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: InsertRowMethods, options: InsertRowOptions) => Command;
|
|
18
|
-
export declare const changeColumnWidthByStepWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, api: PluginInjectionAPI | undefined | null) => (stepSize: number, getEditorContainerWidth: GetEditorContainerWidth, isTableScalingEnabled: boolean, isTableFixedColumnWidthsOptionEnabled: boolean, isCommentEditor: boolean, inputMethod: INPUT_METHOD.SHORTCUT, ariaNotify?: (message: string) => void, getIntl?: () => IntlShape) => Command;
|
|
19
|
-
export declare const insertColumnWithAnalytics: (api: PluginInjectionAPI | undefined | null, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, position: number) => Command;
|
|
20
|
-
export declare const deleteRowsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TABLE_CONTEXT_MENU, rect: Rect, isHeaderRowRequired: boolean) => Command;
|
|
21
|
-
export declare const deleteColumnsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TABLE_CONTEXT_MENU, rect: Rect) => Command;
|
|
22
|
-
export declare const deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => Command;
|
|
23
|
-
export declare const deleteTableWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
|
|
24
|
-
export declare const deleteTableIfSelectedWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.KEYBOARD) => Command;
|
|
25
|
-
export declare const toggleHeaderRowWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
|
|
26
|
-
export declare const toggleHeaderColumnWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
|
|
27
|
-
export declare const toggleNumberColumnWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
|
|
28
|
-
export declare const sortColumnWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, columnIndex: number, sortOrder: SortOrder) => Command;
|
|
29
|
-
export declare const distributeColumnsWidthsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, api: PluginInjectionAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, { resizeState, table, attributes }: ResizeStateWithAnalytics) => Command;
|
|
30
|
-
export declare const wrapTableInExpandWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
|
|
31
|
-
export declare const toggleFixedColumnWidthsOptionAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, inputMethod: INPUT_METHOD.FLOATING_TB) => Command;
|
|
32
|
-
export declare const setTableAlignmentWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isCommentEditor: boolean) => (newAlignment: AlignmentOptions, previousAlignment: TableLayout, inputMethod: INPUT_METHOD.FLOATING_TB, reason: CHANGE_ALIGNMENT_REASON) => Command;
|
|
33
|
-
export declare const setTableAlignmentWithTableContentWithPosWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (newAlignment: AlignmentOptions, previousAlignment: AlignmentOptions | null, tableNodeWithPos: NodeWithPos, inputMethod: INPUT_METHOD.AUTO, reason: CHANGE_ALIGNMENT_REASON) => Command;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { Rect } from '@atlaskit/editor-tables/table-map';
|
|
3
|
-
import type { PluginInjectionAPI } from '../../types';
|
|
4
|
-
export declare const deleteColumnsCommand: (rect: Rect, api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => Command;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl/src/types';
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { Direction } from '@atlaskit/editor-tables/types';
|
|
5
|
-
export declare const goToNextCell: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, ariaNotify?: (message: string) => void, getIntl?: () => IntlShape) => (direction: Direction) => Command;
|
|
6
|
-
/**
|
|
7
|
-
* Moves the cursor vertically from a NodeSelection within a table cell.
|
|
8
|
-
* - If content exists above/below within the cell, lets ProseMirror handle it.
|
|
9
|
-
* - Otherwise, moves to the next cell (down to start, up to last line).
|
|
10
|
-
*/
|
|
11
|
-
export declare const goToNextCellVertical: (direction: Direction) => Command;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { CellColumnPositioning } from '../../types';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
-
export declare const hoverMergedCells: () => Command;
|
|
4
|
-
export declare const hoverColumns: (hoveredColumns: number[], isInDanger?: boolean) => Command;
|
|
5
|
-
export declare const hoverRows: (hoveredRows: number[], isInDanger?: boolean) => Command;
|
|
6
|
-
export declare const hoverTable: (isInDanger?: boolean, isSelected?: boolean) => Command;
|
|
7
|
-
export declare const clearHoverSelection: () => Command;
|
|
8
|
-
export declare const showResizeHandleLine: (cellColumnPositioning: CellColumnPositioning) => Command;
|
|
9
|
-
export declare const hideResizeHandleLine: () => Command;
|
|
10
|
-
export declare const setTableHovered: (hovered: boolean) => Command;
|
|
11
|
-
export declare const hoverCell: (rowIndex?: number, colIndex?: number) => Command;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { hoverColumns, hoverRows, hoverTable, hoverCell, hoverMergedCells, clearHoverSelection, showResizeHandleLine, hideResizeHandleLine, setTableHovered, } from './hover';
|
|
2
|
-
export { insertColumn, insertRow, createTable } from './insert';
|
|
3
|
-
export { getNextLayout, toggleContextualMenu, toggleHeaderColumn, toggleHeaderRow, toggleNumberColumn, toggleTableLayout, } from './toggle';
|
|
4
|
-
export { closeActiveTableMenu, toggleActiveTableMenu } from './active-table-menu';
|
|
5
|
-
export { clearMultipleCells } from './clear';
|
|
6
|
-
export { autoSizeTable, convertFirstRowToHeader, deleteTable, hideInsertColumnOrRowButton, moveCursorBackward, selectColumn, selectColumns, selectRow, selectRows, setCellAttr, setEditorFocus, setMultipleCellAttrs, setMultipleCellAttrsEditorCommand, setTableRef, showInsertColumnButton, showInsertRowButton, transformSliceToAddTableHeaders, triggerUnlessTableHeader, addBoldInEmptyHeaderCells, addResizeHandleDecorations, updateWidthToWidest, setFocusToCellMenu, } from './misc';
|
|
7
|
-
export { sortByColumn } from './sort';
|
|
8
|
-
export { goToNextCell } from './go-to-next-cell';
|
|
9
|
-
export { removeDescendantNodes } from './referentiality';
|
|
10
|
-
export { setTableDisplayMode } from './display-mode';
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { AnalyticsEventPayload, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { Command, EditorCommand } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
-
import type { PluginInjectionAPI } from '../../types';
|
|
7
|
-
type InsertTableWithNestingSupportCommand = (options: {
|
|
8
|
-
createTableProps?: {
|
|
9
|
-
colsCount?: number;
|
|
10
|
-
rowsCount?: number;
|
|
11
|
-
};
|
|
12
|
-
isChromelessEditor?: boolean;
|
|
13
|
-
isCommentEditor?: boolean;
|
|
14
|
-
isFullWidthModeEnabled?: boolean;
|
|
15
|
-
isMaxWidthModeEnabled?: boolean;
|
|
16
|
-
isTableAlignmentEnabled?: boolean;
|
|
17
|
-
isTableResizingEnabled?: boolean;
|
|
18
|
-
isTableScalingEnabled?: boolean;
|
|
19
|
-
}, api: PluginInjectionAPI | undefined | null, analyticsPayload?: AnalyticsEventPayload) => EditorCommand;
|
|
20
|
-
export declare function addColumnAt(api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean): (column: number, allowAddColumnCustomStep: boolean | undefined, view: EditorView | undefined) => (tr: Transaction) => Transaction;
|
|
21
|
-
export declare const addColumnBefore: (api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => Command;
|
|
22
|
-
export declare const addColumnAfter: (api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => Command;
|
|
23
|
-
export declare const insertColumn: (api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => (column: number) => Command;
|
|
24
|
-
export declare const insertRow: (row: number, moveCursorToTheNewRow: boolean) => Command;
|
|
25
|
-
/**
|
|
26
|
-
* @private
|
|
27
|
-
* @deprecated This function is deprecated - please use insertTableWithNestingSupport instead.
|
|
28
|
-
* (To be removed with feature gate: `platform_editor_use_nested_table_pm_nodes`)
|
|
29
|
-
*/
|
|
30
|
-
export declare const createTable: (isTableScalingEnabled?: boolean, isTableAlignmentEnabled?: boolean, isFullWidthModeEnabled?: boolean, isMaxWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined | null, isCommentEditor?: boolean, isChromelessEditor?: boolean, isTableResizingEnabled?: boolean) => Command;
|
|
31
|
-
/**
|
|
32
|
-
* @private
|
|
33
|
-
* @deprecated This function is deprecated - please use insertTableWithNestingSupport instead.
|
|
34
|
-
* (To be removed with feature gate: `platform_editor_use_nested_table_pm_nodes`)
|
|
35
|
-
*/
|
|
36
|
-
export declare const insertTableWithSize: (isFullWidthModeEnabled?: boolean, isMaxWidthModeEnabled?: boolean, isTableScalingEnabled?: boolean, isTableAlignmentEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, isCommentEditor?: boolean, isChromelessEditor?: boolean) => (rowsCount: number, colsCount: number, inputMethod?: INPUT_METHOD.PICKER) => EditorCommand;
|
|
37
|
-
/**
|
|
38
|
-
* Unified command to insert a new table into the editor.
|
|
39
|
-
*
|
|
40
|
-
* @param {object} options - Configuration options for table insertion.
|
|
41
|
-
* @param {boolean} [options.isTableScalingEnabled=false] - Flag to enable table scaling.
|
|
42
|
-
* @param {boolean} [options.isTableAlignmentEnabled=false] - Flag to enable table alignment.
|
|
43
|
-
* @param {boolean} [options.isFullWidthModeEnabled=false] - Flag to enable full-width mode for the table.
|
|
44
|
-
* @param {boolean} [options.isCommentEditor=false] - Flag to indicate if the editor is in comment mode.
|
|
45
|
-
* @param {boolean} [options.isChromelessEditor=false] - Flag to indicate if the editor is chromeless.
|
|
46
|
-
* @param {boolean} [options.isTableResizingEnabled=false] - Flag to enable table resizing.
|
|
47
|
-
* @param {object} [options.createTableProps={}] - Additional properties for table creation, including table size.
|
|
48
|
-
* @param {object} api - PluginInjectinoApi object for content insertion commands.
|
|
49
|
-
* @param {object} analyticsPayload - Payload for analytics tracking.
|
|
50
|
-
*
|
|
51
|
-
* @returns {Function} A function that takes a transaction and inserts a table.
|
|
52
|
-
*/
|
|
53
|
-
export declare const insertTableWithNestingSupport: InsertTableWithNestingSupportCommand;
|
|
54
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { TableLayout } from '@atlaskit/adf-schema';
|
|
2
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
|
-
import type { Command, EditorCommand } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { Node as PMNode, Schema, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
-
import type { ContentNodeWithPos, NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
7
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
-
import type { WidthToWidest } from '../../types';
|
|
9
|
-
export declare const setEditorFocus: (editorHasFocus: boolean) => Command;
|
|
10
|
-
export declare const setTableRef: (ref?: HTMLTableElement) => Command;
|
|
11
|
-
export declare const setCellAttr: (name: string, value: any) => Command;
|
|
12
|
-
export declare const triggerUnlessTableHeader: (command: Command) => Command;
|
|
13
|
-
export declare const transformSliceRemoveCellBackgroundColor: (slice: Slice, schema: Schema) => Slice;
|
|
14
|
-
export declare const transformSliceToFixDarkModeDefaultBackgroundColor: (slice: Slice, schema: Schema) => Slice;
|
|
15
|
-
export declare const transformSliceToAddTableHeaders: (slice: Slice, schema: Schema) => Slice;
|
|
16
|
-
export declare const transformSliceToRemoveColumnsWidths: (slice: Slice, schema: Schema) => Slice;
|
|
17
|
-
export declare const countCellsInSlice: (slice: Slice, schema: Schema, type?: "row" | "column") => number;
|
|
18
|
-
export declare const getTableSelectionType: (selection: Selection) => "row" | "column" | undefined;
|
|
19
|
-
export declare const getTableElementMoveTypeBySlice: (slice: Slice, state: EditorState) => "row" | "column" | undefined;
|
|
20
|
-
export declare const isInsideFirstCellOfRowOrColumn: (selection: Selection, type?: "row" | "column") => boolean;
|
|
21
|
-
export declare const deleteTable: Command;
|
|
22
|
-
export declare const deleteTableIfSelected: Command;
|
|
23
|
-
export declare const convertFirstRowToHeader: (schema: Schema) => (tr: Transaction) => Transaction;
|
|
24
|
-
export declare const moveCursorBackward: Command;
|
|
25
|
-
export declare const setMultipleCellAttrs: (attrs: object, editorView?: EditorView | null) => Command;
|
|
26
|
-
/**
|
|
27
|
-
* EditorCommand variant of `setMultipleCellAttrs`.
|
|
28
|
-
*/
|
|
29
|
-
export declare const setMultipleCellAttrsEditorCommand: (attrs: object, targetCellPosition?: number) => EditorCommand;
|
|
30
|
-
export declare const selectColumn: (column: number, expand?: boolean, triggeredByKeyboard?: boolean) => Command;
|
|
31
|
-
export declare const selectColumns: (columnIndexes: number[]) => Command;
|
|
32
|
-
export declare const selectRow: (row: number, expand?: boolean, triggeredByKeyboard?: boolean) => Command;
|
|
33
|
-
export declare const selectRows: (rowIndexes: number[]) => Command;
|
|
34
|
-
export declare const showInsertColumnButton: (columnIndex: number) => Command;
|
|
35
|
-
export declare const showInsertRowButton: (rowIndex: number) => Command;
|
|
36
|
-
export declare const hideInsertColumnOrRowButton: () => Command;
|
|
37
|
-
export declare const addResizeHandleDecorations: (rowIndex: number, columnIndex: number, includeTooltip: boolean, nodeViewPortalProviderAPI: PortalProviderAPI, isKeyboardResize?: boolean) => Command;
|
|
38
|
-
export declare const updateResizeHandleDecorations: (nodeViewPortalProviderAPI: PortalProviderAPI, rowIndex?: number, columnIndex?: number, includeTooltip?: boolean) => Command;
|
|
39
|
-
export declare const removeResizeHandleDecorations: () => Command;
|
|
40
|
-
export declare const autoSizeTable: (view: EditorView, node: PMNode, table: HTMLTableElement, basePos: number | undefined, opts: {
|
|
41
|
-
containerWidth: number;
|
|
42
|
-
}) => boolean;
|
|
43
|
-
export declare const addBoldInEmptyHeaderCells: (tableCellHeader: ContentNodeWithPos) => Command;
|
|
44
|
-
export declare const updateWidthToWidest: (widthToWidest: WidthToWidest) => Command;
|
|
45
|
-
export declare const setTableAlignment: (newAlignment: TableLayout, isCommentEditor: boolean) => EditorCommand;
|
|
46
|
-
export declare const setTableAlignmentWithTableContentWithPos: (newAlignment: TableLayout, tableNodeWithPos: NodeWithPos) => EditorCommand;
|
|
47
|
-
export declare const setFocusToCellMenu: (isCellMenuOpenByKeyboard?: boolean, originalTr?: Transaction) => Command;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl/src/types';
|
|
2
|
-
import type { Command, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
|
|
4
|
-
import type tablePlugin from '../../tablePlugin';
|
|
5
|
-
export declare const arrowLeftFromTable: (editorSelectionAPI: ExtractInjectionAPI<typeof tablePlugin>["selection"] | undefined) => () => Command;
|
|
6
|
-
export declare const arrowRightFromTable: (editorSelectionAPI: ExtractInjectionAPI<typeof tablePlugin>["selection"] | undefined) => () => Command;
|
|
7
|
-
export declare const selectColumns: (editorSelectionAPI: ExtractInjectionAPI<typeof tablePlugin>["selection"] | undefined, ariaNotify?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void, getIntl?: () => IntlShape) => (triggeredByKeyboard?: boolean) => Command;
|
|
8
|
-
export declare const selectRows: (editorSelectionAPI: ExtractInjectionAPI<typeof tablePlugin>["selection"] | undefined, ariaNotify?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void, getIntl?: () => IntlShape) => (triggeredByKeyboard?: boolean) => Command;
|
|
9
|
-
export declare const shiftArrowUpFromTable: (editorSelectionAPI: ExtractInjectionAPI<typeof tablePlugin>["selection"] | undefined) => () => Command;
|
|
10
|
-
export declare const modASelectTable: (editorSelectionAPI: ExtractInjectionAPI<typeof tablePlugin>["selection"] | undefined) => () => Command;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export declare const canSplitCellSelection: (selection: Selection) => boolean;
|
|
4
|
-
/**
|
|
5
|
-
* We need to split cell keeping the right type of cell given current table configuration.
|
|
6
|
-
* We are using editor-tables splitCellWithType that allows you to choose what cell type should be.
|
|
7
|
-
*/
|
|
8
|
-
export declare const splitCell: Command;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { TableLayout } from '@atlaskit/adf-schema';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
-
/**
|
|
4
|
-
* Table layout toggle logic
|
|
5
|
-
* default -> wide -> full-width -> default
|
|
6
|
-
*/
|
|
7
|
-
export declare const getNextLayout: (currentLayout: TableLayout) => "default" | "wide" | "full-width";
|
|
8
|
-
export declare const toggleHeaderRow: Command;
|
|
9
|
-
export declare const toggleHeaderColumn: Command;
|
|
10
|
-
export declare const toggleNumberColumn: Command;
|
|
11
|
-
export declare const toggleTableLayout: Command;
|
|
12
|
-
export declare const toggleContextualMenu: () => Command;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { EditorState, ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
export declare const pluginKey: PluginKey;
|
|
6
|
-
export declare const getDecorations: (state: EditorState) => DecorationSet;
|
|
7
|
-
export declare const handleDocOrSelectionChanged: (tr: Transaction | ReadonlyTransaction, decorationSet: DecorationSet, oldState: EditorState, newState: EditorState) => DecorationSet;
|
|
8
|
-
export declare const createPlugin: () => SafePlugin<DecorationSet>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
import type { DecorationTransformer, DecorationTransformerParams } from './types';
|
|
3
|
-
export declare const maybeUpdateColumnControlsSelectedDecoration: DecorationTransformer;
|
|
4
|
-
export declare const buildColumnControlsDecorations: ({ decorationSet, tr, }: DecorationTransformerParams) => DecorationSet;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
|
-
import type { DecorationTransformer } from './types';
|
|
4
|
-
export declare const buildColumnResizingDecorations: (rowEndIndex: number, columnEndIndex: number, includeTooltip: boolean, getIntl: () => IntlShape, nodeViewPortalProviderAPI: PortalProviderAPI) => DecorationTransformer;
|
|
5
|
-
export declare const clearColumnResizingDecorations: () => DecorationTransformer;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
export type DecorationTransformer = (params: DecorationTransformerParams) => DecorationSet;
|
|
4
|
-
export type DecorationTransformerParams = {
|
|
5
|
-
decorationSet: DecorationSet;
|
|
6
|
-
tr: Transaction | ReadonlyTransaction;
|
|
7
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const defaultTableSelection: {
|
|
2
|
-
hoveredColumns: never[];
|
|
3
|
-
hoveredRows: never[];
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Creating a separate object for hoveredCell so it doesn't get defaulted when `handleDocOrSelectionChanged` runs.
|
|
7
|
-
*
|
|
8
|
-
* It is safe to persist this value as it gets removed when the mouse cursor leaves the table, so no need to remove it
|
|
9
|
-
* when doc changes.
|
|
10
|
-
*/
|
|
11
|
-
export declare const defaultHoveredCell: {
|
|
12
|
-
hoveredCell: {
|
|
13
|
-
rowIndex: undefined;
|
|
14
|
-
colIndex: undefined;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
import type { TableDirection } from '../../types';
|
|
3
|
-
import type { DropTargetType } from './consts';
|
|
4
|
-
interface DragAndDropAction<T, D> {
|
|
5
|
-
data: D;
|
|
6
|
-
type: T;
|
|
7
|
-
}
|
|
8
|
-
export declare const DragAndDropActionType: {
|
|
9
|
-
readonly SET_DROP_TARGET: "SET_DROP_TARGET";
|
|
10
|
-
readonly CLEAR_DROP_TARGET: "CLEAR_DROP_TARGET";
|
|
11
|
-
readonly TOGGLE_DRAG_MENU: "TOGGLE_DRAG_MENU";
|
|
12
|
-
};
|
|
13
|
-
type DragAndDropSetDropTargetAction = DragAndDropAction<typeof DragAndDropActionType.SET_DROP_TARGET, {
|
|
14
|
-
decorationSet: DecorationSet;
|
|
15
|
-
index: number;
|
|
16
|
-
type: DropTargetType;
|
|
17
|
-
}>;
|
|
18
|
-
type DragAndDropClearDropTargetAction = DragAndDropAction<typeof DragAndDropActionType.CLEAR_DROP_TARGET, {
|
|
19
|
-
decorationSet: DecorationSet;
|
|
20
|
-
}>;
|
|
21
|
-
type DragAndDropToggleDragMenuAction = DragAndDropAction<typeof DragAndDropActionType.TOGGLE_DRAG_MENU, {
|
|
22
|
-
direction: TableDirection;
|
|
23
|
-
index: number;
|
|
24
|
-
isDragMenuOpen: boolean;
|
|
25
|
-
isKeyboardModeActive: boolean;
|
|
26
|
-
}>;
|
|
27
|
-
export type DragAndDropPluginAction = DragAndDropSetDropTargetAction | DragAndDropClearDropTargetAction | DragAndDropToggleDragMenuAction;
|
|
28
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl/src/types';
|
|
2
|
-
import { INPUT_METHOD, TABLE_STATUS } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
|
|
6
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import type { DraggableData, DraggableType, TableDirection } from '../../types';
|
|
8
|
-
import type { TriggerType } from './types';
|
|
9
|
-
export declare const clearDropTargetWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.DRAG_AND_DROP, sourceType: DraggableType, sourceIndexes: number[] | undefined, status: TABLE_STATUS.CANCELLED | TABLE_STATUS.INVALID, tr?: Transaction) => Command;
|
|
10
|
-
export declare const moveSourceWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, ariaNotify?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void, getIntl?: () => IntlShape) => (inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.SHORTCUT, sourceType: DraggableType, sourceIndexes: number[], targetIndex: number, tr?: Transaction) => Command;
|
|
11
|
-
export declare const moveSourceWithAnalyticsViaShortcut: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, ariaNotify?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void, getIntl?: () => IntlShape) => (sourceType: DraggableType, direction: DraggableData["direction"]) => Command;
|
|
12
|
-
export declare const cloneSourceWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.SHORTCUT, sourceType: DraggableType, sourceIndexes: number[], targetIndex: number, targetDirection: "start" | "end", tr?: Transaction) => Command;
|
|
13
|
-
export declare const toggleDragMenuWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (isDragMenuOpen: boolean | undefined, direction?: TableDirection, index?: number, trigger?: TriggerType) => Command;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { DraggableType, TableDirection } from '../../types';
|
|
3
|
-
import { DropTargetType } from './consts';
|
|
4
|
-
import type { TriggerType } from './types';
|
|
5
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
6
|
-
export declare const setDropTarget: (type: DropTargetType, index: number, hasMergedCells: boolean, tr?: Transaction) => Command;
|
|
7
|
-
export declare const clearDropTarget: (tr?: Transaction) => Command;
|
|
8
|
-
export declare const moveSource: (sourceType: DraggableType, sourceIndexes: number[], targetIndex: number, tr?: Transaction) => Command;
|
|
9
|
-
export declare const toggleDragMenu: (isDragMenuOpen: boolean | undefined, direction?: TableDirection, index?: number, trigger?: TriggerType) => Command;
|
|
10
|
-
export declare const cloneSource: (sourceType: DraggableType, sourceIndexes: number[], targetIndex: number, targetDirection: "start" | "end", tr?: Transaction) => Command;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { DragAndDropPluginAction } from './actions';
|
|
5
|
-
import type { DragAndDropPluginState } from './types';
|
|
6
|
-
export declare const createPluginState: (dispatch: Dispatch, initialState: DragAndDropPluginState | ((state: EditorState) => DragAndDropPluginState)) => SafeStateField<DragAndDropPluginState>;
|
|
7
|
-
export declare const createCommand: <A = DragAndDropPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
8
|
-
export declare const getPluginState: (state: EditorState) => DragAndDropPluginState;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type { TablePlugin } from '../../tablePluginType';
|
|
6
|
-
import type { DragAndDropPluginState } from './types';
|
|
7
|
-
export declare const createPlugin: (dispatch: Dispatch, editorAnalyticsAPI?: EditorAnalyticsAPI, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, isCommentEditor?: boolean, api?: ExtractInjectionAPI<TablePlugin>) => SafePlugin<DragAndDropPluginState>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
import type { TableDirection } from '../../types';
|
|
3
|
-
import type { DropTargetType } from './consts';
|
|
4
|
-
export interface DragAndDropPluginState {
|
|
5
|
-
decorationSet: DecorationSet;
|
|
6
|
-
dragMenuDirection?: TableDirection;
|
|
7
|
-
dragMenuIndex: number;
|
|
8
|
-
dropTargetIndex: number;
|
|
9
|
-
dropTargetType: DropTargetType;
|
|
10
|
-
isDragging: boolean;
|
|
11
|
-
isDragMenuOpen: boolean;
|
|
12
|
-
isKeyboardModeActive: boolean;
|
|
13
|
-
}
|
|
14
|
-
export type TriggerType = 'mouse' | 'keyboard';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { CleanupFn } from '@atlaskit/pragmatic-drag-and-drop/types';
|
|
3
|
-
type AutoScrollerFactory = {
|
|
4
|
-
getNode: () => PmNode;
|
|
5
|
-
tableWrapper: HTMLElement;
|
|
6
|
-
};
|
|
7
|
-
export declare const autoScrollerFactory: ({ tableWrapper, getNode, }: AutoScrollerFactory) => CleanupFn[];
|
|
8
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ElementEventBasePayload } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
2
|
-
import type { DraggableData } from '../../../types';
|
|
3
|
-
export declare const getDraggableDataFromEvent: ({ location, source, }: ElementEventBasePayload) => DraggableData | undefined;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
type EditorContentAreaHeightPluginState = {
|
|
4
|
-
height: number;
|
|
5
|
-
};
|
|
6
|
-
export declare const pluginKey: PluginKey<EditorContentAreaHeightPluginState>;
|
|
7
|
-
export declare const INITIAL_STATIC_VIEWPORT_HEIGHT = 1200;
|
|
8
|
-
export declare const EDITOR_CONTENT_AREA_REGION_CLASSNAME = ".ak-editor-content-area-region";
|
|
9
|
-
declare const createPlugin: () => SafePlugin<{
|
|
10
|
-
height: number;
|
|
11
|
-
}>;
|
|
12
|
-
export { createPlugin };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { TablePluginState } from '../types';
|
|
3
|
-
export declare const handleDocOrSelectionChanged: (tr: Transaction | ReadonlyTransaction, pluginState: TablePluginState) => TablePluginState;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl/src/types';
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
|
-
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
|
-
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
6
|
-
import type { PluginInjectionAPI, PluginInjectionAPIWithA11y } from '../types';
|
|
7
|
-
export declare function keymapPlugin(getEditorContainerWidth: GetEditorContainerWidth, api: PluginInjectionAPI | undefined | null, nodeViewPortalProviderAPI: PortalProviderAPI, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isTableScalingEnabled?: boolean, isTableAlignmentEnabled?: boolean, isFullWidthEnabled?: boolean, pluginInjectionApi?: PluginInjectionAPIWithA11y, getIntl?: () => IntlShape, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, isTableResizingEnabled?: boolean): SafePlugin;
|
|
8
|
-
export default keymapPlugin;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { DispatchAnalyticsEvent, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
5
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
|
-
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { PluginConfig, PluginInjectionAPI, TablePluginState } from '../types';
|
|
8
|
-
export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, nodeViewPortalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean) => SafePlugin<TablePluginState>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { TablePluginState, TablePluginAction } from '../types';
|
|
5
|
-
export declare const createPluginState: (dispatch: Dispatch, initialState: TablePluginState | ((state: EditorState) => TablePluginState)) => SafeStateField<TablePluginState>;
|
|
6
|
-
export declare const createCommand: <A = TablePluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
7
|
-
export declare const getPluginState: (state: EditorState) => TablePluginState;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fix an issue that composition text replacement in Safari removes empty nodes during text composition text deletion.
|
|
3
|
-
* https://github.com/ProseMirror/prosemirror/issues/934
|
|
4
|
-
* We will remove this plugin when Webkit fix the problem itself.
|
|
5
|
-
*/
|
|
6
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
|
-
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
-
interface SafariDeleteCompositionTextIssueWorkaroundPluginState {
|
|
9
|
-
decorations: DecorationSet;
|
|
10
|
-
renderSpan: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare const createPlugin: () => SafePlugin<SafariDeleteCompositionTextIssueWorkaroundPluginState>;
|
|
13
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { StickyPluginAction, StickyPluginState } from './types';
|
|
5
|
-
declare const createPluginState: (dispatch: Dispatch, initialState: StickyPluginState | ((state: EditorState) => StickyPluginState)) => SafeStateField<StickyPluginState>;
|
|
6
|
-
declare const createCommand: <A = StickyPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
7
|
-
export { createPluginState, createCommand };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import type { StickyPluginState } from './types';
|
|
4
|
-
export declare const createPlugin: (dispatch: Dispatch, initialState?: () => never[]) => SafePlugin<StickyPluginState>;
|