@atlaskit/editor-plugin-table 23.4.2 → 24.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/CHANGELOG.md +36 -0
- package/dist/cjs/nodeviews/TableCell.js +4 -27
- package/dist/cjs/nodeviews/TableComponent.js +1 -1
- package/dist/cjs/nodeviews/rounded-table-edges.js +168 -0
- package/dist/cjs/nodeviews/table.js +16 -67
- package/dist/cjs/pm-plugins/table-resizing/utils/dom.js +16 -1
- package/dist/cjs/ui/TableFloatingControls/index.js +1 -17
- package/dist/cjs/ui/common-styles.js +1 -1
- package/dist/es2019/nodeviews/TableCell.js +4 -27
- package/dist/es2019/nodeviews/TableComponent.js +2 -2
- package/dist/es2019/nodeviews/rounded-table-edges.js +150 -0
- package/dist/es2019/nodeviews/table.js +14 -61
- package/dist/es2019/pm-plugins/table-resizing/utils/dom.js +15 -0
- package/dist/es2019/ui/TableFloatingControls/index.js +1 -17
- package/dist/es2019/ui/common-styles.js +14 -0
- package/dist/esm/nodeviews/TableCell.js +4 -27
- package/dist/esm/nodeviews/TableComponent.js +2 -2
- package/dist/esm/nodeviews/rounded-table-edges.js +161 -0
- package/dist/esm/nodeviews/table.js +16 -67
- package/dist/esm/pm-plugins/table-resizing/utils/dom.js +15 -0
- package/dist/esm/ui/TableFloatingControls/index.js +1 -17
- package/dist/esm/ui/common-styles.js +1 -1
- package/dist/types/nodeviews/TableCell.d.ts +0 -5
- package/dist/types/nodeviews/rounded-table-edges.d.ts +26 -0
- package/dist/types/nodeviews/table.d.ts +1 -2
- package/dist/types/pm-plugins/table-resizing/utils/dom.d.ts +4 -0
- package/dist/types/ui/FloatingContextualButton/index.d.ts +0 -1
- package/dist/types/ui/TableFloatingControls/index.d.ts +1 -1
- package/package.json +38 -46
- 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,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>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type RowStickyState = {
|
|
2
|
-
padding: number;
|
|
3
|
-
pos: number;
|
|
4
|
-
sticky: boolean;
|
|
5
|
-
top: number;
|
|
6
|
-
};
|
|
7
|
-
export type StickyPluginState = RowStickyState[];
|
|
8
|
-
type UpdateSticky = {
|
|
9
|
-
name: 'UPDATE';
|
|
10
|
-
state: RowStickyState;
|
|
11
|
-
};
|
|
12
|
-
type RemoveSticky = {
|
|
13
|
-
name: 'REMOVE';
|
|
14
|
-
pos: number;
|
|
15
|
-
};
|
|
16
|
-
export type StickyPluginAction = UpdateSticky | RemoveSticky;
|
|
17
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DispatchAnalyticsEvent } 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
|
-
export declare const META_KEYS: {
|
|
5
|
-
OVERFLOW_TRIGGER: string;
|
|
6
|
-
OVERFLOW_STATE_CHANGED: string;
|
|
7
|
-
};
|
|
8
|
-
declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent, tableResizingEnabled: boolean) => SafePlugin<{
|
|
9
|
-
lastTrigger: undefined;
|
|
10
|
-
}>;
|
|
11
|
-
export { createPlugin };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
export declare const pluginKey: PluginKey;
|
|
5
|
-
export declare const createPlugin: () => SafePlugin<DecorationSet>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
interface TableLocalIdPluginState {
|
|
4
|
-
parsedForLocalIds: boolean;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Ensures uniqueness of `localId`s on tables being created or edited
|
|
8
|
-
*/
|
|
9
|
-
declare const createPlugin: (dispatch: Dispatch) => SafePlugin<TableLocalIdPluginState>;
|
|
10
|
-
export { createPlugin };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
5
|
-
import type { PluginInjectionAPI } from '../../types';
|
|
6
|
-
import type { ResizeState } from './utils/types';
|
|
7
|
-
export declare const evenColumns: ({ resizeState, table, start, event, api, }: {
|
|
8
|
-
api: PluginInjectionAPI | undefined | null;
|
|
9
|
-
event: MouseEvent;
|
|
10
|
-
resizeState: ResizeState;
|
|
11
|
-
start: number;
|
|
12
|
-
table: PMNode;
|
|
13
|
-
}) => Command;
|
|
14
|
-
export declare const distributeColumnsWidths: (newResizeState: ResizeState, table: ContentNodeWithPos, api: PluginInjectionAPI | undefined | null) => Command;
|
|
15
|
-
export declare const setResizeHandlePos: (resizeHandlePos: number | null) => Command;
|
|
16
|
-
export declare const stopResizing: (tr?: Transaction) => Command;
|
|
17
|
-
export declare const setDragging: (dragging: {
|
|
18
|
-
startWidth: number;
|
|
19
|
-
startX: number;
|
|
20
|
-
} | null, tr?: Transaction) => Command;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
|
-
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import type { PluginInjectionAPI } from '../../types';
|
|
6
|
-
export declare const handleMouseDown: (view: EditorView, event: MouseEvent, localResizeHandlePos: number, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, isTableScalingEnabled: boolean, api: PluginInjectionAPI | undefined | null, nodeViewPortalProviderAPI: PortalProviderAPI, editorAnalyticsAPI?: EditorAnalyticsAPI, isCommentEditor?: boolean) => boolean;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { ColumnResizingPluginAction, ColumnResizingPluginState } from '../../types';
|
|
3
|
-
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
5
|
-
export declare const createCommand: <A = ColumnResizingPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
6
|
-
export declare const createPluginState: (dispatch: Dispatch, initialState: ColumnResizingPluginState | ((state: EditorState) => ColumnResizingPluginState)) => SafeStateField<ColumnResizingPluginState>;
|
|
7
|
-
export declare const getPluginState: (state: EditorState) => ColumnResizingPluginState;
|
|
@@ -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 type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
|
-
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
6
|
-
import type { ColumnResizingPluginState, PluginInjectionAPI } from '../../types';
|
|
7
|
-
export declare function createPlugin(dispatch: Dispatch<ColumnResizingPluginState>, { lastColumnResizable }: ColumnResizingPluginState, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, api: PluginInjectionAPI | undefined | null, nodeViewPortalProviderAPI: PortalProviderAPI, editorAnalyticsAPI?: EditorAnalyticsAPI, isTableScalingEnabled?: boolean, isCommentEditor?: boolean): SafePlugin<ColumnResizingPluginState>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
type Col = Array<string | {
|
|
3
|
-
[name: string]: string;
|
|
4
|
-
}>;
|
|
5
|
-
/**
|
|
6
|
-
* This ensures the combined width of the columns (and tbody) of table is always smaller or equal
|
|
7
|
-
* than the table and table wrapper elements. This is necessary as there is no longer
|
|
8
|
-
* padding on the .pm-table-wrapper, so all elements need to be the same width to avoid
|
|
9
|
-
* overflow.
|
|
10
|
-
*/
|
|
11
|
-
export declare const getColWidthFix: (colwidth: number, tableColumnCount: number) => number;
|
|
12
|
-
export declare const generateColgroupFromNode: (table: PmNode, isCommentEditor?: boolean, isChromelessEditor?: boolean, isNested?: boolean, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => Col[];
|
|
13
|
-
export declare const generateColgroup: (table: PmNode, tableRef?: HTMLElement, shouldUseIncreasedScalingPercent?: boolean, isCommentOrChromelessEditor?: boolean) => Col[];
|
|
14
|
-
export declare const insertColgroupFromNode: (tableRef: HTMLTableElement | null, table: PmNode, isTableScalingEnabled?: boolean, shouldRemove?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentOrChromelessEditor?: boolean) => HTMLCollection;
|
|
15
|
-
export declare const hasTableBeenResized: (table: PmNode) => boolean;
|
|
16
|
-
export declare const hasTableColumnBeenResized: (table: PmNode) => boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a table has all the column width set to tableCellMinWidth(48px) or null
|
|
19
|
-
*
|
|
20
|
-
* @param table
|
|
21
|
-
* @returns true if all column width is equal to tableCellMinWidth or null, false otherwise
|
|
22
|
-
*/
|
|
23
|
-
export declare const isMinCellWidthTable: (table: PmNode) => boolean;
|
|
24
|
-
export declare const getColgroupChildrenLength: (table: PmNode) => number;
|
|
25
|
-
export declare const getResizerMinWidth: (node: PmNode) => number;
|
|
26
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
export interface ColumnState {
|
|
3
|
-
index: number;
|
|
4
|
-
minWidth: number;
|
|
5
|
-
width: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const getColumnStateFromDOM: (cells: HTMLElement[], index: number, minWidth: number) => ColumnState;
|
|
8
|
-
export declare const getFreeSpace: (state: ColumnState) => number;
|
|
9
|
-
export declare const getCellsRefsInColumn: (columnIndex: number, table: PMNode, tableStart: number, domAtPos: (pos: number) => {
|
|
10
|
-
node: Node;
|
|
11
|
-
offset: number;
|
|
12
|
-
}) => HTMLElement[];
|
|
13
|
-
export declare const calculateColumnWidth: (cells: HTMLElement[], calculateColumnWidthCb: (css: CSSStyleDeclaration, cellRef: HTMLElement, colSpan: number) => number) => number;
|
|
14
|
-
export declare const addContainerLeftRightPadding: (amount: number, css: CSSStyleDeclaration) => number;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const COLUMN_MIN_WIDTH = 48;
|
|
2
|
-
export declare const TABLE_FULL_WIDTH = 1800;
|
|
3
|
-
export declare const TABLE_MAX_WIDTH = 4000;
|
|
4
|
-
export declare const FULL_WIDTH_EDITOR_CONTENT_WIDTH = 1800;
|
|
5
|
-
export declare const MAX_SCALING_PERCENT = 0.3;
|
|
6
|
-
export declare const MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION = 0.4;
|
|
7
|
-
export declare const TABLE_EDITOR_MARGIN = 76;
|
|
8
|
-
export declare const TABLE_OFFSET_IN_COMMENT_EDITOR: number;
|
|
9
|
-
export declare const RESIZE_HANDLE_SPACING = 12;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
export declare const updateControls: () => (state: EditorState) => void;
|
|
4
|
-
export declare const isClickNear: (event: MouseEvent, click: {
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
}) => boolean;
|
|
8
|
-
export declare const getResizeCellPos: (view: EditorView, event: MouseEvent) => number | null;
|
|
9
|
-
export declare const updateStickyMargins: (table: HTMLElement) => void;
|
|
10
|
-
export declare const syncStickyRowToTable: (tableRef?: HTMLElement | null) => void;
|
|
11
|
-
export declare const clearStickyCornerMaskPositions: (tableRef?: HTMLElement | null) => void;
|