@atlaskit/editor-plugin-table 23.4.2 → 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 +8 -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 +3 -3
- 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,15 +0,0 @@
|
|
|
1
|
-
import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
export declare const createTableWithWidth: ({ isTableScalingEnabled, isTableAlignmentEnabled, isFullWidthModeEnabled, isMaxWidthModeEnabled, isCommentEditor, isChromelessEditor, isTableResizingEnabled, isNestedTable, createTableProps, }: {
|
|
3
|
-
createTableProps?: {
|
|
4
|
-
colsCount?: number;
|
|
5
|
-
rowsCount?: number;
|
|
6
|
-
};
|
|
7
|
-
isChromelessEditor?: boolean;
|
|
8
|
-
isCommentEditor?: boolean;
|
|
9
|
-
isFullWidthModeEnabled?: boolean;
|
|
10
|
-
isMaxWidthModeEnabled?: boolean;
|
|
11
|
-
isNestedTable?: boolean;
|
|
12
|
-
isTableAlignmentEnabled?: boolean;
|
|
13
|
-
isTableResizingEnabled?: boolean;
|
|
14
|
-
isTableScalingEnabled?: boolean;
|
|
15
|
-
}) => (schema: Schema) => Node;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
|
-
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import type { ReadonlyTransaction, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
-
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import type { Cell, CellColumnPositioning } from '../../types';
|
|
8
|
-
import { TableDecorations } from '../../types';
|
|
9
|
-
export declare const findColumnControlSelectedDecoration: (decorationSet: DecorationSet) => Decoration[];
|
|
10
|
-
export declare const findControlsHoverDecoration: (decorationSet: DecorationSet) => Decoration[];
|
|
11
|
-
export declare const createCellHoverDecoration: (cells: Cell[]) => Decoration[];
|
|
12
|
-
export declare const createControlsHoverDecoration: (cells: Cell[], type: "row" | "column" | "table", tr: Transaction | ReadonlyTransaction, hoveredIndexes: number[], danger?: boolean, selected?: boolean) => Decoration[];
|
|
13
|
-
export declare const createColumnSelectedDecoration: (tr: Transaction | ReadonlyTransaction) => Decoration[];
|
|
14
|
-
export declare const createColumnControlsDecoration: (selection: Selection) => Decoration[];
|
|
15
|
-
export declare const updateDecorations: (node: PmNode, decorationSet: DecorationSet, decorations: Decoration[], key: TableDecorations) => DecorationSet;
|
|
16
|
-
export declare const createResizeHandleDecoration: (tr: Transaction | ReadonlyTransaction, rowIndexTarget: number, columnEndIndexTarget: Omit<CellColumnPositioning, "left">, includeTooltip: boolean | undefined, getIntl: () => IntlShape, nodeViewPortalProviderAPI: PortalProviderAPI) => Decoration[];
|
|
17
|
-
export declare const createColumnLineResize: (selection: Selection, cellColumnPositioning: Omit<CellColumnPositioning, "left">) => Decoration[];
|
|
18
|
-
export declare const createColumnInsertLine: (columnIndex: number, selection: Selection, hasMergedCells: boolean) => Decoration[];
|
|
19
|
-
export declare const createRowInsertLine: (rowIndex: number, selection: Selection, hasMergedCells: boolean) => Decoration[];
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export declare const isCell: (node: HTMLElement | null) => boolean;
|
|
2
|
-
export declare const isCornerButton: (node: HTMLElement | null) => boolean;
|
|
3
|
-
export declare const isInsertRowButton: (node: HTMLElement | null) => boolean | HTMLElement | null;
|
|
4
|
-
export declare const getColumnOrRowIndex: (target: HTMLElement) => [
|
|
5
|
-
number,
|
|
6
|
-
number
|
|
7
|
-
];
|
|
8
|
-
export declare const isColumnControlsDecorations: (node: HTMLElement | null) => boolean;
|
|
9
|
-
export declare const isRowControlsButton: (node: HTMLElement | null) => boolean;
|
|
10
|
-
export declare const isResizeHandleDecoration: (node: HTMLElement | null) => boolean;
|
|
11
|
-
export declare const isTableControlsButton: (node: HTMLElement | null) => boolean;
|
|
12
|
-
export declare const isTableContainerOrWrapper: (node: HTMLElement | null) => boolean;
|
|
13
|
-
/** drag-and-drop classes */
|
|
14
|
-
export declare const isDragRowFloatingInsertDot: (node: HTMLElement | null) => boolean;
|
|
15
|
-
export declare const isDragColumnFloatingInsertDot: (node: HTMLElement | null) => boolean;
|
|
16
|
-
export declare const isDragCornerButton: (node: HTMLElement | null) => boolean;
|
|
17
|
-
/**
|
|
18
|
-
* This can be used with mouse events to determine the left/right side of the target the pointer is closest too.
|
|
19
|
-
*
|
|
20
|
-
* WARNING: This metod reads properties which can trigger a reflow; use this wisely.
|
|
21
|
-
*
|
|
22
|
-
* @param mouseEvent
|
|
23
|
-
* @param gapInPixels
|
|
24
|
-
* @returns
|
|
25
|
-
*/
|
|
26
|
-
export declare const getMousePositionHorizontalRelativeByElement: (mouseEvent: MouseEvent, offsetX: number, gapInPixels?: number) => "left" | "right" | null;
|
|
27
|
-
export declare const getMousePositionVerticalRelativeByElement: (mouseEvent: MouseEvent) => "top" | "bottom" | null;
|
|
28
|
-
export declare const hasResizeHandler: ({ columnEndIndexTarget, target, }: {
|
|
29
|
-
columnEndIndexTarget: number;
|
|
30
|
-
target: HTMLElement;
|
|
31
|
-
}) => boolean;
|
|
32
|
-
export type TableDOMElements = {
|
|
33
|
-
table: HTMLTableElement;
|
|
34
|
-
wrapper: HTMLDivElement;
|
|
35
|
-
};
|
|
36
|
-
export declare const getTree: (tr: HTMLTableRowElement) => TableDOMElements | null;
|
|
37
|
-
export declare const getTop: (element: HTMLElement | Window | undefined) => number;
|
|
38
|
-
export declare const findNearestCellIndexToPoint: (x: number, y: number) => {
|
|
39
|
-
col: number;
|
|
40
|
-
row: number;
|
|
41
|
-
} | undefined;
|
|
42
|
-
export declare const areAllRectsZero: (entry: IntersectionObserverEntry) => boolean;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { Command, DropdownOptionT, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
|
|
5
|
-
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import type { Rect, TableMap } from '@atlaskit/editor-tables/table-map';
|
|
8
|
-
import type { NewIconProps, IconProps } from '@atlaskit/icon/types';
|
|
9
|
-
import type { DraggableData, DraggableType, PluginInjectionAPI, TableDirection } from '../../types';
|
|
10
|
-
export declare const getTargetIndex: (selectedIndexes: number[], direction: DraggableData["direction"]) => number;
|
|
11
|
-
export declare const canMove: (sourceType: DraggableType, direction: DraggableData["direction"], totalItemsOfSourceTypeCount: number, selection: Selection, selectionRect?: Rect) => boolean;
|
|
12
|
-
export type DragMenuOptionIdType = 'add_row_above' | 'add_row_below' | 'add_column_left' | 'add_column_right' | 'distribute_columns' | 'clear_cells' | 'delete_row' | 'delete_column' | 'move_column_left' | 'move_column_right' | 'move_row_up' | 'move_row_down' | 'sort_column_asc' | 'sort_column_desc';
|
|
13
|
-
export interface DragMenuConfig extends Omit<DropdownOptionT<Command>, 'icon'> {
|
|
14
|
-
icon?: React.ComponentType<React.PropsWithChildren<NewIconProps>>;
|
|
15
|
-
iconFallback?: React.ComponentType<React.PropsWithChildren<IconProps>>;
|
|
16
|
-
id: DragMenuOptionIdType;
|
|
17
|
-
keymap?: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const getDragMenuConfig: (direction: TableDirection, getEditorContainerWidth: GetEditorContainerWidth, hasMergedCellsInTable: boolean, editorView: EditorView, api: PluginInjectionAPI | undefined | null, tableMap?: TableMap, index?: number, targetCellPosition?: number, selectionRect?: Rect, editorAnalyticsAPI?: EditorAnalyticsAPI, isHeaderRowRequired?: boolean, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, ariaNotifyPlugin?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void, isCommentEditor?: boolean, isColumnSortingEnabled?: boolean) => DragMenuConfig[];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { GuidelineConfig } from '@atlaskit/editor-common/guideline';
|
|
2
|
-
import type { GuidelineExcludeConfig } from './snapping';
|
|
3
|
-
export declare const defaultGuidelines: GuidelineConfig[];
|
|
4
|
-
export declare const PRESERVE_TABLE_GUIDELINES_LENGTH_OFFSET = -1;
|
|
5
|
-
export declare const defaultGuidelinesForPreserveTable: (lengthOffset: number, editorContainerWidth: number, exclude?: GuidelineExcludeConfig) => GuidelineConfig[];
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { TableMap } from '@atlaskit/editor-tables';
|
|
3
|
-
type MergeType = 'row' | 'column';
|
|
4
|
-
export declare const hasMergedCellsInBetween: (indexes: number[], type: MergeType) => (selection: Selection) => boolean;
|
|
5
|
-
export declare const hasMergedCellsWithColumnNextToColumnIndex: (colIndex: number, selection: Selection) => boolean;
|
|
6
|
-
export declare const hasMergedCellsWithRowNextToRowIndex: (rowIndex: number, // logical row index in the table. It starts at 0 and goes up to tableMap.height - 1.
|
|
7
|
-
selection: Selection) => boolean;
|
|
8
|
-
export declare const hasMergedCellsInSelection: (indexes: number[], type: MergeType) => (selection: Selection) => boolean;
|
|
9
|
-
/**
|
|
10
|
-
* this check the selection has merged cells with previous/next col or row.
|
|
11
|
-
*
|
|
12
|
-
* @param indexes - this get the indexes of the selection,e.g. [0,1] for selecting first two rows or columns.
|
|
13
|
-
* @param tableMap - this return a TableMap object.
|
|
14
|
-
* @param direction - check selection is selected by row or column
|
|
15
|
-
* @returns boolean
|
|
16
|
-
*/
|
|
17
|
-
export declare const checkEdgeHasMergedCells: (indexes: number[], tableMap: TableMap, direction: "row" | "column") => boolean;
|
|
18
|
-
/**
|
|
19
|
-
* this function will find the duplicate position in the array(table map position array).
|
|
20
|
-
*
|
|
21
|
-
* @param array this usually be the array including positions of the table map.
|
|
22
|
-
* @returns []
|
|
23
|
-
*/
|
|
24
|
-
export declare const findDuplicatePosition: (array: number[]) => number[];
|
|
25
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export declare const isIsolating: (node: PmNode) => boolean;
|
|
4
|
-
export declare const containsHeaderColumn: (table: PmNode) => boolean;
|
|
5
|
-
export declare const containsHeaderRow: (table: PmNode) => boolean;
|
|
6
|
-
export declare const checkIfHeaderColumnEnabled: (selection: Selection) => boolean;
|
|
7
|
-
export declare const checkIfHeaderRowEnabled: (selection: Selection) => boolean;
|
|
8
|
-
export declare const checkIfNumberColumnEnabled: (selection: Selection) => boolean;
|
|
9
|
-
export declare const getTableWidth: (node: PmNode) => number;
|
|
10
|
-
export declare const tablesHaveDifferentColumnWidths: (currentTable: PmNode, previousTable: PmNode) => boolean;
|
|
11
|
-
export declare const tablesHaveDifferentNoOfColumns: (currentTable: PmNode, previousTable: PmNode) => boolean;
|
|
12
|
-
export declare const tablesHaveDifferentNoOfRows: (currentTable: PmNode, previousTable: PmNode) => boolean;
|
|
13
|
-
export declare const isTableNested: (state: EditorState, tablePos?: number) => boolean;
|
|
14
|
-
export declare const isTableNestedInMoreThanOneNode: (state: EditorState, tablePos?: number) => boolean;
|
|
15
|
-
/**
|
|
16
|
-
* True when the table sits under a bodiedSyncBlock ancestor.
|
|
17
|
-
* Used to prefer DOM-measured wrapper width over getParentNodeWidth() for stable scaling.
|
|
18
|
-
*/
|
|
19
|
-
export declare const isTableNestedUnderBodiedSyncBlock: (state: EditorState, tablePos: number) => boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Check if a given node is a header row with this definition:
|
|
22
|
-
* - all children are tableHeader cells
|
|
23
|
-
* - no table cells have been merged with other table row cells (rowspan > 1)
|
|
24
|
-
* - no table cells have been merged with other table column cells (colspan > 1),
|
|
25
|
-
* (colspan check gated behind platform_editor_fix_sticky_header_malfunction)
|
|
26
|
-
*
|
|
27
|
-
* @param node ProseMirror node
|
|
28
|
-
* @returns boolean if it meets definition
|
|
29
|
-
*/
|
|
30
|
-
export declare const supportedHeaderRow: (node: PmNode) => boolean;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type Schema, Slice, Fragment, type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export declare const unwrapContentFromTable: (maybeTable: PMNode) => PMNode | PMNode[];
|
|
4
|
-
export declare const removeTableFromFirstChild: (node: PMNode, i: number) => PMNode | PMNode[];
|
|
5
|
-
export declare const removeTableFromLastChild: (node: PMNode, i: number, fragment: Fragment) => PMNode | PMNode[];
|
|
6
|
-
export declare const transformSliceToRemoveNestedTables: (slice: Slice, schema: Schema, selection: Selection) => Slice;
|
|
7
|
-
/**
|
|
8
|
-
* When we copy from a table cell with a hardBreak at the end,
|
|
9
|
-
* the slice generated will come with a hardBreak outside of the table.
|
|
10
|
-
* This code will look for that pattern and fix it.
|
|
11
|
-
*/
|
|
12
|
-
export declare const transformSliceToFixHardBreakProblemOnCopyFromCell: (slice: Slice, schema: Schema) => Slice;
|
|
13
|
-
export declare const transformSliceToRemoveOpenTable: (slice: Slice, schema: Schema) => Slice;
|
|
14
|
-
export declare const transformSliceToCorrectEmptyTableCells: (slice: Slice, schema: Schema) => Slice;
|
|
15
|
-
export declare function isHeaderRowRequired(state: EditorState): boolean | undefined;
|
|
16
|
-
export declare const transformSliceTableLayoutDefaultToCenter: (slice: Slice, schema: Schema) => Slice;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export interface RowParams {
|
|
4
|
-
endIndex: number;
|
|
5
|
-
height: number;
|
|
6
|
-
startIndex: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const getRowHeights: (tableRef: HTMLTableElement) => number[];
|
|
9
|
-
export declare const getRowDeleteButtonParams: (rowsHeights: Array<number | undefined>, selection: Selection, offsetTop?: number) => {
|
|
10
|
-
indexes: number[];
|
|
11
|
-
top: number;
|
|
12
|
-
} | null;
|
|
13
|
-
export declare const getRowsParams: (rowsHeights: Array<number | undefined>) => RowParams[];
|
|
14
|
-
export declare const getRowClassNames: (index: number, selection: Selection, hoveredRows?: number[], isInDanger?: boolean, isResizing?: boolean) => string;
|
|
15
|
-
export declare const copyPreviousRow: (schema: Schema) => (insertNewRowIndex: number) => (tr: Transaction) => Transaction;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { GuidelineConfig } from '@atlaskit/editor-common/guideline';
|
|
2
|
-
export declare const calculateDefaultSnappings: (lengthOffset?: number) => number[];
|
|
3
|
-
export type GuidelineExcludeConfig = {
|
|
4
|
-
breakoutPoints: boolean;
|
|
5
|
-
innerGuidelines: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const calculateDefaultTablePreserveSnappings: (lengthOffset?: number, editorContainerWidth?: number, exclude?: GuidelineExcludeConfig) => number[];
|
|
8
|
-
export declare const defaultSnappingWidths: number[];
|
|
9
|
-
export declare const PRESERVE_TABLE_SNAPPING_LENGTH_OFFSET = 0;
|
|
10
|
-
export declare const defaultTablePreserveSnappingWidths: (lengthOffset: number, editorContainerWidth: number, exclude?: GuidelineExcludeConfig) => number[];
|
|
11
|
-
/**
|
|
12
|
-
* Returns keys of guidelines that are closest to the table and within the snapGap
|
|
13
|
-
*/
|
|
14
|
-
export declare const findClosestSnap: (currentWidth: number, snapWidths: number[], guidelines: GuidelineConfig[], snapGap?: number, tolerance?: number) => {
|
|
15
|
-
gap: number;
|
|
16
|
-
keys: string[];
|
|
17
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
export declare const getMergedCellsPositions: (tr: Transaction) => number[];
|
|
5
|
-
export declare const getAssistiveMessage: (prevTableNode: PmNode, currentTableNode: PmNode, intl: IntlShape) => string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
import type { PluginInjectionAPI } from '../../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Iterates all top-level tables in the document, and for those in content mode,
|
|
5
|
-
* measures rendered column widths and sets colwidth + table width attributes
|
|
6
|
-
* in a single batched transaction.
|
|
7
|
-
*/
|
|
8
|
-
export declare const applyMeasuredWidthToAllTables: (view: EditorView, pluginInjectionApi?: PluginInjectionAPI) => void;
|
package/dist/types-ts4.5/pm-plugins/utils/tableMode/apply-measured-width-to-selected-table.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
import type { PluginInjectionAPI } from '../../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Used to measure a selected table width with it's content being laid out natively by the browser
|
|
5
|
-
*/
|
|
6
|
-
export declare const applyMeasuredWidthToSelectedTable: (view: EditorView, api?: PluginInjectionAPI) => void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
type ContentModePluginOptions = {
|
|
2
|
-
allowColumnResizing: boolean;
|
|
3
|
-
allowTableResizing: boolean;
|
|
4
|
-
isFullPageEditor: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const isContentModeSupported: ({ allowColumnResizing, allowTableResizing, isFullPageEditor, }: ContentModePluginOptions) => boolean;
|
|
7
|
-
export {};
|
package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/distribute-column-widths.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const sumWidths: (widths: Array<number>) => number;
|
|
2
|
-
/**
|
|
3
|
-
* Clamps each desired width to `[tableCellMinWidth, MAX × evenShare]`. Greedy
|
|
4
|
-
* columns (paragraphs) hit the ceiling and wrap; small columns stay at their
|
|
5
|
-
* natural width. Leftover canvas budget grows ceiling-hitters up to their
|
|
6
|
-
* desired; overflow reclaims from ceiling-hitters only.
|
|
7
|
-
*/
|
|
8
|
-
export declare const distributeByEvenShareRatio: (desiredWidths: Array<number>, editorContainerWidth: number) => Array<number>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type TableMeasurement } from '../../../transforms/content-mode';
|
|
2
|
-
export declare const restoreResizerContainer: (resizerContainer: HTMLElement | undefined | null) => void;
|
|
3
|
-
/**
|
|
4
|
-
* Smart-adjust: measure unconstrained max-content per column, then clamp via
|
|
5
|
-
* `distributeByEvenShareRatio`.
|
|
6
|
-
*/
|
|
7
|
-
export declare const runSmartAdjust: (tableRef: HTMLTableElement, resizerContainer: HTMLElement | undefined | null, resizerItem: HTMLElement | undefined | null, editorContainerWidthFromApi: number | undefined) => TableMeasurement;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type { TableDecorations } from '../../types';
|
|
4
|
-
export declare const updatePluginStateDecorations: (state: EditorState, decorations: Decoration[], key: TableDecorations) => DecorationSet;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This plugin allows sorting of table nodes in the Editor without modifying the underlying ProseMirror document.
|
|
3
|
-
* Instead of making changes to the ProseMirror document, the plugin sorts the table rows in the DOM. This allows the sorting to be
|
|
4
|
-
* visible to the user without affecting the document's content.
|
|
5
|
-
*/
|
|
6
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
7
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
8
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
|
-
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
10
|
-
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
11
|
-
import type tablePlugin from '../../tablePlugin';
|
|
12
|
-
import type { TableSortMeta } from './types';
|
|
13
|
-
export declare const createPlugin: (api: ExtractInjectionAPI<typeof tablePlugin>, nodeViewPortalProviderAPI: PortalProviderAPI) => SafePlugin<{
|
|
14
|
-
allTables: [
|
|
15
|
-
string,
|
|
16
|
-
Node,
|
|
17
|
-
number
|
|
18
|
-
][];
|
|
19
|
-
decorations: DecorationSet;
|
|
20
|
-
sort: TableSortMeta;
|
|
21
|
-
}>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { SortOrder } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
export type TableSortMeta = Record<string, {
|
|
5
|
-
direction: SortOrder;
|
|
6
|
-
index: number;
|
|
7
|
-
order: {
|
|
8
|
-
index: number;
|
|
9
|
-
value: number;
|
|
10
|
-
}[];
|
|
11
|
-
}>;
|
|
12
|
-
export interface ViewModeSortPluginState {
|
|
13
|
-
allTables: HoverTableMeta[];
|
|
14
|
-
decorations: DecorationSet;
|
|
15
|
-
sort: TableSortMeta;
|
|
16
|
-
}
|
|
17
|
-
type HoverTableMeta = [
|
|
18
|
-
string,
|
|
19
|
-
PMNode,
|
|
20
|
-
number
|
|
21
|
-
];
|
|
22
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
import type { TableSortMeta } from './types';
|
|
3
|
-
export declare const unsort: (oldOrder: {
|
|
4
|
-
index: number;
|
|
5
|
-
value: number;
|
|
6
|
-
}[], tableElement: HTMLElement) => void;
|
|
7
|
-
export declare const toggleSort: (view: EditorView, event: Event, pluginState: TableSortMeta) => void;
|
|
8
|
-
export declare const getTableElements: (tableId: string) => {
|
|
9
|
-
tbody: Element | null | undefined;
|
|
10
|
-
rows: NodeListOf<Element> | undefined;
|
|
11
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import type { AnalyticsEventPayload, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { Command, EditorCommand, GetEditorFeatureFlags, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { AccessibilityUtilsPlugin } from '@atlaskit/editor-plugin-accessibility-utils';
|
|
4
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
-
import type { BatchAttributeUpdatesPlugin } from '@atlaskit/editor-plugin-batch-attribute-updates';
|
|
6
|
-
import type { ContentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
7
|
-
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
8
|
-
import type { ExtensionPlugin } from '@atlaskit/editor-plugin-extension';
|
|
9
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
10
|
-
import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
11
|
-
import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
|
|
12
|
-
import type { LimitedModePlugin } from '@atlaskit/editor-plugin-limited-mode';
|
|
13
|
-
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
14
|
-
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
15
|
-
import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control-registry';
|
|
16
|
-
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
17
|
-
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
18
|
-
import type { PluginConfig, TableSharedState } from './types';
|
|
19
|
-
export interface TablePluginOptions {
|
|
20
|
-
allowContextualMenu?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Enables the fixed column width option.
|
|
23
|
-
* When enabled, users can choose to apply fixed widths to table columns and these widths won't scale with viewport changes.
|
|
24
|
-
* Note: This feature requires ADF schema changes to be supported.
|
|
25
|
-
*/
|
|
26
|
-
allowFixedColumnWidthOption?: boolean;
|
|
27
|
-
fullWidthEnabled?: boolean;
|
|
28
|
-
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
29
|
-
isChromelessEditor?: boolean;
|
|
30
|
-
isCommentEditor?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-49683 Internal documentation for deprecation (no external access)}
|
|
33
|
-
* Deprecating this prop to enable table scaling by default
|
|
34
|
-
* See {@link https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6312469305/Deprecating+legacy+table+controls} for rollout plan
|
|
35
|
-
**/
|
|
36
|
-
isTableScalingEnabled?: boolean;
|
|
37
|
-
maxWidthEnabled?: boolean;
|
|
38
|
-
tableOptions: PluginConfig;
|
|
39
|
-
wasFullWidthEnabled?: boolean;
|
|
40
|
-
wasMaxWidthEnabled?: boolean;
|
|
41
|
-
}
|
|
42
|
-
type InsertTableAction = (analyticsPayload: AnalyticsEventPayload) => Command;
|
|
43
|
-
type MediaPlugin = NextEditorPlugin<'media', {
|
|
44
|
-
actions: any;
|
|
45
|
-
commands: any;
|
|
46
|
-
dependencies: any;
|
|
47
|
-
pluginConfiguration: any;
|
|
48
|
-
sharedState: any;
|
|
49
|
-
}>;
|
|
50
|
-
export type TablePluginActions = {
|
|
51
|
-
insertTable: InsertTableAction;
|
|
52
|
-
};
|
|
53
|
-
export type TablePluginCommands = {
|
|
54
|
-
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: INPUT_METHOD.PICKER) => EditorCommand;
|
|
55
|
-
};
|
|
56
|
-
export type TablePluginDependencies = [
|
|
57
|
-
AnalyticsPlugin,
|
|
58
|
-
ContentInsertionPlugin,
|
|
59
|
-
WidthPlugin,
|
|
60
|
-
SelectionPlugin,
|
|
61
|
-
OptionalPlugin<LimitedModePlugin>,
|
|
62
|
-
OptionalPlugin<GuidelinePlugin>,
|
|
63
|
-
OptionalPlugin<BatchAttributeUpdatesPlugin>,
|
|
64
|
-
OptionalPlugin<AccessibilityUtilsPlugin>,
|
|
65
|
-
OptionalPlugin<MediaPlugin>,
|
|
66
|
-
OptionalPlugin<EditorViewModePlugin>,
|
|
67
|
-
OptionalPlugin<FeatureFlagsPlugin>,
|
|
68
|
-
OptionalPlugin<ExtensionPlugin>,
|
|
69
|
-
OptionalPlugin<InteractionPlugin>,
|
|
70
|
-
OptionalPlugin<UserIntentPlugin>,
|
|
71
|
-
OptionalPlugin<ToolbarPlugin>,
|
|
72
|
-
OptionalPlugin<UiControlRegistryPlugin>
|
|
73
|
-
];
|
|
74
|
-
export type TablePlugin = NextEditorPlugin<'table', {
|
|
75
|
-
actions: TablePluginActions;
|
|
76
|
-
commands: TablePluginCommands;
|
|
77
|
-
dependencies: TablePluginDependencies;
|
|
78
|
-
pluginConfiguration: TablePluginOptions | undefined;
|
|
79
|
-
sharedState?: TableSharedState;
|
|
80
|
-
}>;
|
|
81
|
-
export {};
|