@atlaskit/editor-plugin-table 23.4.1 → 23.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/ui/TableFloatingControls/index.js +1 -17
- package/dist/es2019/ui/TableFloatingControls/index.js +1 -17
- package/dist/esm/ui/TableFloatingControls/index.js +1 -17
- package/dist/types/ui/FloatingContextualButton/index.d.ts +0 -1
- package/dist/types/ui/TableFloatingControls/index.d.ts +1 -1
- package/package.json +4 -4
- package/table-plugin/package.json +1 -8
- package/table-plugin-type/package.json +1 -8
- package/types/package.json +1 -8
- package/ui/common-styles/package.json +1 -8
- package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -125
- package/dist/cjs/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -52
- package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -124
- package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -110
- package/dist/es2019/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -47
- package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -101
- package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -116
- package/dist/esm/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -45
- package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -115
- package/dist/types/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +0 -6
- package/dist/types/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +0 -20
- package/dist/types/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +0 -19
- package/dist/types-ts4.5/entry-points/table-plugin-type.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/table-plugin.d.ts +0 -6
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/ui-common-styles.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -7
- package/dist/types-ts4.5/nodeviews/ExternalDropTargets.d.ts +0 -9
- package/dist/types-ts4.5/nodeviews/OverflowShadowsObserver.d.ts +0 -26
- package/dist/types-ts4.5/nodeviews/TableCell.d.ts +0 -24
- package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +0 -48
- package/dist/types-ts4.5/nodeviews/TableComponentWithSharedState.d.ts +0 -30
- package/dist/types-ts4.5/nodeviews/TableContainer.d.ts +0 -48
- package/dist/types-ts4.5/nodeviews/TableNodeViewBase.d.ts +0 -18
- package/dist/types-ts4.5/nodeviews/TableResizer.d.ts +0 -36
- package/dist/types-ts4.5/nodeviews/TableRow.d.ts +0 -68
- package/dist/types-ts4.5/nodeviews/TableRowNativeStickyWithFallback.d.ts +0 -89
- package/dist/types-ts4.5/nodeviews/TableStickyScrollbar.d.ts +0 -23
- package/dist/types-ts4.5/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +0 -9
- package/dist/types-ts4.5/nodeviews/__mocks__/OverridableMock.d.ts +0 -9
- package/dist/types-ts4.5/nodeviews/table-container-styles.d.ts +0 -5
- package/dist/types-ts4.5/nodeviews/table-node-views.d.ts +0 -30
- package/dist/types-ts4.5/nodeviews/table.d.ts +0 -48
- package/dist/types-ts4.5/nodeviews/toDOM.d.ts +0 -17
- package/dist/types-ts4.5/nodeviews/types.d.ts +0 -33
- package/dist/types-ts4.5/nodeviews/update-overflow-shadows.d.ts +0 -1
- package/dist/types-ts4.5/pm-plugins/active-cell-highlight/plugin.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/analytics/actions.d.ts +0 -18
- package/dist/types-ts4.5/pm-plugins/analytics/commands.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/analytics/plugin-factory.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/analytics/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/analytics/plugin.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/analytics/reducer.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/analytics/types.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/analytics/utils/moved-event.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/commands/active-table-menu.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/commands/clear.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/commands/collapse.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/commands/column-resize.d.ts +0 -34
- package/dist/types-ts4.5/pm-plugins/commands/commands-with-analytics.d.ts +0 -33
- package/dist/types-ts4.5/pm-plugins/commands/delete.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/commands/display-mode.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/commands/go-to-next-cell.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/commands/hover.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/commands/index.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/commands/insert.d.ts +0 -54
- package/dist/types-ts4.5/pm-plugins/commands/misc.d.ts +0 -47
- package/dist/types-ts4.5/pm-plugins/commands/referentiality.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/commands/selection.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/commands/sort.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/commands/split-cell.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/commands/toggle.d.ts +0 -12
- package/dist/types-ts4.5/pm-plugins/create-plugin-config.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/decorations/plugin.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/decorations/utils/column-controls.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/decorations/utils/column-resizing.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/decorations/utils/compose-decorations.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/decorations/utils/types.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/default-table-selection.d.ts +0 -16
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/actions.d.ts +0 -28
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands-with-analytics.d.ts +0 -13
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/consts.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin-factory.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/reducer.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/types.d.ts +0 -14
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/getDragBehaviour.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/monitor.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/editor-content-area-height.d.ts +0 -12
- package/dist/types-ts4.5/pm-plugins/handlers.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/keymap.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/main.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/plugin-factory.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/reducer.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +0 -13
- package/dist/types-ts4.5/pm-plugins/sticky-headers/commands.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin-state.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/sticky-headers/types.d.ts +0 -17
- package/dist/types-ts4.5/pm-plugins/sticky-headers/util.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/table-analytics.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/table-anchor-names/plugin.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/table-local-id.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/table-resizing/commands.d.ts +0 -20
- package/dist/types-ts4.5/pm-plugins/table-resizing/event-handlers.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-factory.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/table-resizing/plugin.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/table-resizing/reducer.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/colgroup.d.ts +0 -26
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/column-state.d.ts +0 -14
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/consts.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/content-width.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/dom.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/misc.d.ts +0 -69
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-column.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-logic.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-state.d.ts +0 -28
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/scale-table.d.ts +0 -20
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/types.d.ts +0 -23
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/unit-to-number.d.ts +0 -1
- package/dist/types-ts4.5/pm-plugins/table-selection-keymap.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/table-size-selector.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/table-width-in-comment-fix.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/table-width.d.ts +0 -17
- package/dist/types-ts4.5/pm-plugins/transforms/column-width.d.ts +0 -25
- package/dist/types-ts4.5/pm-plugins/transforms/content-mode.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/transforms/delete-columns.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/transforms/delete-rows.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/transforms/fix-tables.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/transforms/merge.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/transforms/replace-table.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/transforms/split.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/transforms/table-transform-utils.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/utils/alignment.d.ts +0 -14
- package/dist/types-ts4.5/pm-plugins/utils/analytics.d.ts +0 -49
- package/dist/types-ts4.5/pm-plugins/utils/collapse.d.ts +0 -31
- package/dist/types-ts4.5/pm-plugins/utils/column-controls.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/utils/create.d.ts +0 -15
- package/dist/types-ts4.5/pm-plugins/utils/decoration.d.ts +0 -19
- package/dist/types-ts4.5/pm-plugins/utils/dom.d.ts +0 -42
- package/dist/types-ts4.5/pm-plugins/utils/drag-menu.d.ts +0 -19
- package/dist/types-ts4.5/pm-plugins/utils/get-allow-add-column-custom-step.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/utils/guidelines.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/utils/merged-cells.d.ts +0 -25
- package/dist/types-ts4.5/pm-plugins/utils/nodes.d.ts +0 -30
- package/dist/types-ts4.5/pm-plugins/utils/paste.d.ts +0 -16
- package/dist/types-ts4.5/pm-plugins/utils/row-controls.d.ts +0 -15
- package/dist/types-ts4.5/pm-plugins/utils/selection.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/utils/snapping.d.ts +0 -17
- package/dist/types-ts4.5/pm-plugins/utils/sticky-header.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/utils/table.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/apply-measured-width-to-all-tables.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/apply-measured-width-to-selected-table.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/is-content-mode-supported.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/measure-table-with-auto-layout.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/constants.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/distribute-column-widths.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/run-smart-adjust.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/utils/update-plugin-state-decorations.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/consts.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/index.d.ts +0 -21
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/types.d.ts +0 -22
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/utils.d.ts +0 -11
- package/dist/types-ts4.5/tablePlugin.d.ts +0 -7
- package/dist/types-ts4.5/tablePluginType.d.ts +0 -81
- package/dist/types-ts4.5/types/index.d.ts +0 -544
- package/dist/types-ts4.5/ui/ColumnResizeWidget/index.d.ts +0 -12
- package/dist/types-ts4.5/ui/ContentComponent.d.ts +0 -18
- package/dist/types-ts4.5/ui/DragHandle/HandleIconComponent.d.ts +0 -8
- package/dist/types-ts4.5/ui/DragHandle/index.d.ts +0 -29
- package/dist/types-ts4.5/ui/DragPreview/index.d.ts +0 -7
- package/dist/types-ts4.5/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.d.ts +0 -13
- package/dist/types-ts4.5/ui/FloatingContextualButton/FixedButton.d.ts +0 -22
- package/dist/types-ts4.5/ui/FloatingContextualButton/index.d.ts +0 -22
- package/dist/types-ts4.5/ui/FloatingContextualButton/styles.d.ts +0 -3
- package/dist/types-ts4.5/ui/FloatingContextualMenu/CellMenuPopup.d.ts +0 -14
- package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +0 -63
- package/dist/types-ts4.5/ui/FloatingContextualMenu/index.d.ts +0 -24
- package/dist/types-ts4.5/ui/FloatingContextualMenu/styles.d.ts +0 -3
- package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +0 -14
- package/dist/types-ts4.5/ui/FloatingDeleteButton/getPopUpOptions.d.ts +0 -10
- package/dist/types-ts4.5/ui/FloatingDeleteButton/index.d.ts +0 -55
- package/dist/types-ts4.5/ui/FloatingDeleteButton/types.d.ts +0 -2
- package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +0 -41
- package/dist/types-ts4.5/ui/FloatingDragMenu/DropdownMenu.d.ts +0 -36
- package/dist/types-ts4.5/ui/FloatingDragMenu/index.d.ts +0 -36
- package/dist/types-ts4.5/ui/FloatingDragMenu/styles.d.ts +0 -4
- package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +0 -18
- package/dist/types-ts4.5/ui/FloatingInsertButton/getPopupOptions.d.ts +0 -4
- package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +0 -40
- package/dist/types-ts4.5/ui/FloatingTableMenu/index.d.ts +0 -23
- package/dist/types-ts4.5/ui/FloatingToolbarLabel/FloatingToolbarLabel.d.ts +0 -16
- package/dist/types-ts4.5/ui/SizeSelector/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +0 -24
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.d.ts +0 -10
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/index.d.ts +0 -33
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +0 -6
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +0 -15
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/types.d.ts +0 -11
- package/dist/types-ts4.5/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +0 -20
- package/dist/types-ts4.5/ui/TableFloatingControls/NumberColumn/index.d.ts +0 -22
- package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +0 -19
- package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/DragControls.d.ts +0 -25
- package/dist/types-ts4.5/ui/TableFloatingControls/RowDropTarget/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +0 -37
- package/dist/types-ts4.5/ui/TableFullWidthLabel/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/TableMenu/cell/getCellMenuComponents.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/cell/items/MergeCellsItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/cell/items/SplitCellItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/cell/items/VerticalAlignDropdownItem.d.ts +0 -12
- package/dist/types-ts4.5/ui/TableMenu/cell/items/VerticalAlignNestedMenu.d.ts +0 -4
- package/dist/types-ts4.5/ui/TableMenu/cell/items/verticalAlignUtils.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/cell/keys.d.ts +0 -16
- package/dist/types-ts4.5/ui/TableMenu/column/getColumnMenuComponents.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/AddColumnLeftItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/AddColumnRightItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/ColumnBackgroundSection.d.ts +0 -11
- package/dist/types-ts4.5/ui/TableMenu/column/items/ColumnToggleSection.d.ts +0 -10
- package/dist/types-ts4.5/ui/TableMenu/column/items/DeleteColumnItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/DistributeColumnsItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/HeaderColumnToggleItem.d.ts +0 -16
- package/dist/types-ts4.5/ui/TableMenu/column/items/MoveColumnLeftItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/MoveColumnRightItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/SortDecreasingItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/SortIncreasingItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/keys.d.ts +0 -22
- package/dist/types-ts4.5/ui/TableMenu/row/getRowMenuComponents.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/AddRowAboveItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/AddRowBelowItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/DeleteRowItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/HeaderRowToggleItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/MoveRowDownItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/MoveRowUpItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/NumberedRowsToggleItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/keys.d.ts +0 -18
- package/dist/types-ts4.5/ui/TableMenu/shared/TableMenu.d.ts +0 -11
- package/dist/types-ts4.5/ui/TableMenu/shared/TableMenuContext.d.ts +0 -16
- package/dist/types-ts4.5/ui/TableMenu/shared/consts.d.ts +0 -4
- package/dist/types-ts4.5/ui/TableMenu/shared/getSharedItems.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/shared/getTableMenuComponents.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/shared/items/BackgroundColorItem.d.ts +0 -7
- package/dist/types-ts4.5/ui/TableMenu/shared/items/ClearCellsItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/shared/keys.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/shared/types.d.ts +0 -4
- package/dist/types-ts4.5/ui/common-styles.d.ts +0 -14
- package/dist/types-ts4.5/ui/consts.d.ts +0 -69
- package/dist/types-ts4.5/ui/event-handlers.d.ts +0 -20
- package/dist/types-ts4.5/ui/global-styles.d.ts +0 -11
- package/dist/types-ts4.5/ui/hooks/useInternalTablePluginStateSelector.d.ts +0 -22
- package/dist/types-ts4.5/ui/icons/AddColLeftIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/AddColRightIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/AddRowAboveIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/AddRowBelowIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/DragHandleDisabledIcon.d.ts +0 -6
- package/dist/types-ts4.5/ui/icons/DragHandleIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/DragInMotionIcon.d.ts +0 -6
- package/dist/types-ts4.5/ui/icons/MergeCellsIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/MinimisedHandle.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/SortingIconWrapper.d.ts +0 -10
- package/dist/types-ts4.5/ui/icons/SplitCellIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/rounded-table-styles.d.ts +0 -2
- package/dist/types-ts4.5/ui/toolbar.d.ts +0 -11
- package/dist/types-ts4.5/ui/ui-styles.d.ts +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 23.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f9b309b6576a5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f9b309b6576a5) -
|
|
8
|
+
Remove legacy table controls which are not in use
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 23.4.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 23.4.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -15,7 +15,6 @@ var _commands = require("../../pm-plugins/commands");
|
|
|
15
15
|
var _nodes = require("../../pm-plugins/utils/nodes");
|
|
16
16
|
var _types = require("../../types");
|
|
17
17
|
var _DragCornerControls = require("./CornerControls/DragCornerControls");
|
|
18
|
-
var _FloatingControlsWithSelection = require("./FloatingControlsWithSelection");
|
|
19
18
|
var _NumberColumn = _interopRequireDefault(require("./NumberColumn"));
|
|
20
19
|
var _DragControls = require("./RowControls/DragControls");
|
|
21
20
|
/**
|
|
@@ -41,8 +40,6 @@ var TableFloatingControls = exports.TableFloatingControls = function TableFloati
|
|
|
41
40
|
isInDanger = _ref.isInDanger,
|
|
42
41
|
isResizing = _ref.isResizing,
|
|
43
42
|
isNumberColumnEnabled = _ref.isNumberColumnEnabled,
|
|
44
|
-
isHeaderRowEnabled = _ref.isHeaderRowEnabled,
|
|
45
|
-
isHeaderColumnEnabled = _ref.isHeaderColumnEnabled,
|
|
46
43
|
isDragAndDropEnabled = _ref.isDragAndDropEnabled,
|
|
47
44
|
tableActive = _ref.tableActive,
|
|
48
45
|
hasHeaderRow = _ref.hasHeaderRow,
|
|
@@ -125,7 +122,7 @@ var TableFloatingControls = exports.TableFloatingControls = function TableFloati
|
|
|
125
122
|
updateCellHoverLocation: updateCellHoverLocation,
|
|
126
123
|
stickyTop: stickyTop,
|
|
127
124
|
isDragAndDropEnabled: isDragAndDropEnabled
|
|
128
|
-
}) : null, tableActive && (0, _react2.jsx)(_react.Fragment, null,
|
|
125
|
+
}) : null, tableActive && (0, _react2.jsx)(_react.Fragment, null, shouldShowCornerControls && (0, _react2.jsx)(_DragCornerControls.DragCornerControlsWithSelection, {
|
|
129
126
|
editorView: editorView,
|
|
130
127
|
tableRef: tableRef,
|
|
131
128
|
isInDanger: isInDanger,
|
|
@@ -149,19 +146,6 @@ var TableFloatingControls = exports.TableFloatingControls = function TableFloati
|
|
|
149
146
|
selectRows: _selectRows,
|
|
150
147
|
updateCellHoverLocation: updateCellHoverLocation,
|
|
151
148
|
api: api
|
|
152
|
-
})) : (0, _react2.jsx)(_FloatingControlsWithSelection.FloatingControlsWithSelection, {
|
|
153
|
-
editorView: editorView,
|
|
154
|
-
tableRef: tableRef,
|
|
155
|
-
isInDanger: isInDanger,
|
|
156
|
-
isResizing: isResizing,
|
|
157
|
-
isHeaderRowEnabled: isHeaderRowEnabled,
|
|
158
|
-
isHeaderColumnEnabled: isHeaderColumnEnabled,
|
|
159
|
-
hoveredRows: hoveredRows,
|
|
160
|
-
stickyTop: tableActive ? stickyTop : undefined,
|
|
161
|
-
tableActive: tableActive,
|
|
162
|
-
hoverRows: _hoverRows,
|
|
163
|
-
selectRow: _selectRow,
|
|
164
|
-
api: api
|
|
165
149
|
}))));
|
|
166
150
|
};
|
|
167
151
|
var _default = exports.default = TableFloatingControls;
|
|
@@ -14,7 +14,6 @@ import { hoverCell, hoverRows, selectRow, selectRows } from '../../pm-plugins/co
|
|
|
14
14
|
import { isTableNested } from '../../pm-plugins/utils/nodes';
|
|
15
15
|
import { TableCssClassName as ClassName } from '../../types';
|
|
16
16
|
import { DragCornerControlsWithSelection } from './CornerControls/DragCornerControls';
|
|
17
|
-
import { FloatingControlsWithSelection } from './FloatingControlsWithSelection';
|
|
18
17
|
import NumberColumn from './NumberColumn';
|
|
19
18
|
import { DragControlsWithSelection } from './RowControls/DragControls';
|
|
20
19
|
const styles = css({
|
|
@@ -32,8 +31,6 @@ export const TableFloatingControls = ({
|
|
|
32
31
|
isInDanger,
|
|
33
32
|
isResizing,
|
|
34
33
|
isNumberColumnEnabled,
|
|
35
|
-
isHeaderRowEnabled,
|
|
36
|
-
isHeaderColumnEnabled,
|
|
37
34
|
isDragAndDropEnabled,
|
|
38
35
|
tableActive,
|
|
39
36
|
hasHeaderRow,
|
|
@@ -124,7 +121,7 @@ export const TableFloatingControls = ({
|
|
|
124
121
|
updateCellHoverLocation: updateCellHoverLocation,
|
|
125
122
|
stickyTop: stickyTop,
|
|
126
123
|
isDragAndDropEnabled: isDragAndDropEnabled
|
|
127
|
-
}) : null, tableActive && jsx(Fragment, null,
|
|
124
|
+
}) : null, tableActive && jsx(Fragment, null, shouldShowCornerControls && jsx(DragCornerControlsWithSelection, {
|
|
128
125
|
editorView: editorView,
|
|
129
126
|
tableRef: tableRef,
|
|
130
127
|
isInDanger: isInDanger,
|
|
@@ -148,19 +145,6 @@ export const TableFloatingControls = ({
|
|
|
148
145
|
selectRows: _selectRows,
|
|
149
146
|
updateCellHoverLocation: updateCellHoverLocation,
|
|
150
147
|
api: api
|
|
151
|
-
})) : jsx(FloatingControlsWithSelection, {
|
|
152
|
-
editorView: editorView,
|
|
153
|
-
tableRef: tableRef,
|
|
154
|
-
isInDanger: isInDanger,
|
|
155
|
-
isResizing: isResizing,
|
|
156
|
-
isHeaderRowEnabled: isHeaderRowEnabled,
|
|
157
|
-
isHeaderColumnEnabled: isHeaderColumnEnabled,
|
|
158
|
-
hoveredRows: hoveredRows,
|
|
159
|
-
stickyTop: tableActive ? stickyTop : undefined,
|
|
160
|
-
tableActive: tableActive,
|
|
161
|
-
hoverRows: _hoverRows,
|
|
162
|
-
selectRow: _selectRow,
|
|
163
|
-
api: api
|
|
164
148
|
}))));
|
|
165
149
|
};
|
|
166
150
|
export default TableFloatingControls;
|
|
@@ -14,7 +14,6 @@ import { hoverCell, hoverRows, selectRow, selectRows } from '../../pm-plugins/co
|
|
|
14
14
|
import { isTableNested } from '../../pm-plugins/utils/nodes';
|
|
15
15
|
import { TableCssClassName as ClassName } from '../../types';
|
|
16
16
|
import { DragCornerControlsWithSelection } from './CornerControls/DragCornerControls';
|
|
17
|
-
import { FloatingControlsWithSelection } from './FloatingControlsWithSelection';
|
|
18
17
|
import NumberColumn from './NumberColumn';
|
|
19
18
|
import { DragControlsWithSelection } from './RowControls/DragControls';
|
|
20
19
|
var styles = css({
|
|
@@ -33,8 +32,6 @@ export var TableFloatingControls = function TableFloatingControls(_ref) {
|
|
|
33
32
|
isInDanger = _ref.isInDanger,
|
|
34
33
|
isResizing = _ref.isResizing,
|
|
35
34
|
isNumberColumnEnabled = _ref.isNumberColumnEnabled,
|
|
36
|
-
isHeaderRowEnabled = _ref.isHeaderRowEnabled,
|
|
37
|
-
isHeaderColumnEnabled = _ref.isHeaderColumnEnabled,
|
|
38
35
|
isDragAndDropEnabled = _ref.isDragAndDropEnabled,
|
|
39
36
|
tableActive = _ref.tableActive,
|
|
40
37
|
hasHeaderRow = _ref.hasHeaderRow,
|
|
@@ -117,7 +114,7 @@ export var TableFloatingControls = function TableFloatingControls(_ref) {
|
|
|
117
114
|
updateCellHoverLocation: updateCellHoverLocation,
|
|
118
115
|
stickyTop: stickyTop,
|
|
119
116
|
isDragAndDropEnabled: isDragAndDropEnabled
|
|
120
|
-
}) : null, tableActive && jsx(Fragment, null,
|
|
117
|
+
}) : null, tableActive && jsx(Fragment, null, shouldShowCornerControls && jsx(DragCornerControlsWithSelection, {
|
|
121
118
|
editorView: editorView,
|
|
122
119
|
tableRef: tableRef,
|
|
123
120
|
isInDanger: isInDanger,
|
|
@@ -141,19 +138,6 @@ export var TableFloatingControls = function TableFloatingControls(_ref) {
|
|
|
141
138
|
selectRows: _selectRows,
|
|
142
139
|
updateCellHoverLocation: updateCellHoverLocation,
|
|
143
140
|
api: api
|
|
144
|
-
})) : jsx(FloatingControlsWithSelection, {
|
|
145
|
-
editorView: editorView,
|
|
146
|
-
tableRef: tableRef,
|
|
147
|
-
isInDanger: isInDanger,
|
|
148
|
-
isResizing: isResizing,
|
|
149
|
-
isHeaderRowEnabled: isHeaderRowEnabled,
|
|
150
|
-
isHeaderColumnEnabled: isHeaderColumnEnabled,
|
|
151
|
-
hoveredRows: hoveredRows,
|
|
152
|
-
stickyTop: tableActive ? stickyTop : undefined,
|
|
153
|
-
tableActive: tableActive,
|
|
154
|
-
hoverRows: _hoverRows,
|
|
155
|
-
selectRow: _selectRow,
|
|
156
|
-
api: api
|
|
157
141
|
}))));
|
|
158
142
|
};
|
|
159
143
|
export default TableFloatingControls;
|
|
@@ -31,7 +31,7 @@ interface TableFloatingControlsProps {
|
|
|
31
31
|
tableRef?: HTMLTableElement;
|
|
32
32
|
tableWrapperWidth?: number;
|
|
33
33
|
}
|
|
34
|
-
export declare const TableFloatingControls: ({ editorView, tableRef, tableNode, isInDanger, isResizing, isNumberColumnEnabled,
|
|
34
|
+
export declare const TableFloatingControls: ({ editorView, tableRef, tableNode, isInDanger, isResizing, isNumberColumnEnabled, isDragAndDropEnabled, tableActive, hasHeaderRow, hoveredRows, stickyHeader, hoveredCell, isTableHovered, tableWrapperWidth, api, isChromelessEditor, }: TableFloatingControlsProps & {
|
|
35
35
|
api?: ExtractInjectionAPI<TablePlugin>;
|
|
36
36
|
}) => jsx.JSX.Element | null;
|
|
37
37
|
export default TableFloatingControls;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "23.4.
|
|
3
|
+
"version": "23.4.3",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^11.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-content-insertion": "^11.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^13.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-extension": "14.1.
|
|
40
|
+
"@atlaskit/editor-plugin-extension": "14.1.15",
|
|
41
41
|
"@atlaskit/editor-plugin-guideline": "^11.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-interaction": "^20.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-limited-mode": "^8.0.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/editor-toolbar": "^1.10.0",
|
|
53
53
|
"@atlaskit/editor-ui-control-model": "^1.2.0",
|
|
54
54
|
"@atlaskit/icon": "^35.4.0",
|
|
55
|
-
"@atlaskit/icon-lab": "^6.
|
|
55
|
+
"@atlaskit/icon-lab": "^6.14.0",
|
|
56
56
|
"@atlaskit/insm": "^0.4.0",
|
|
57
57
|
"@atlaskit/menu": "^8.5.0",
|
|
58
58
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
61
61
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.2.0",
|
|
62
62
|
"@atlaskit/primitives": "^19.0.0",
|
|
63
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
63
|
+
"@atlaskit/tmp-editor-statsig": "^103.0.0",
|
|
64
64
|
"@atlaskit/toggle": "^16.1.0",
|
|
65
65
|
"@atlaskit/tokens": "^13.4.0",
|
|
66
66
|
"@atlaskit/tooltip": "^22.6.0",
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/table-plugin.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/table-plugin.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/table-plugin.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/table-plugin-type.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/table-plugin-type.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/table-plugin-type.d.ts"
|
|
17
10
|
}
|
package/types/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/types.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/types.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/types.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/entry-points/ui-common-styles.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/entry-points/ui-common-styles.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../../dist/types/entry-points/ui-common-styles.d.ts"
|
|
17
10
|
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.CornerControls = void 0;
|
|
9
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
13
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
16
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
-
var _reactIntl = require("react-intl");
|
|
18
|
-
var _messages = require("@atlaskit/editor-common/messages");
|
|
19
|
-
var _tableMap = require("@atlaskit/editor-tables/table-map");
|
|
20
|
-
var _utils = require("@atlaskit/editor-tables/utils");
|
|
21
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
22
|
-
var _commands = require("../../../pm-plugins/commands");
|
|
23
|
-
var _types = require("../../../types");
|
|
24
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
25
|
-
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
26
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
27
|
-
// Ignored via go/ees005
|
|
28
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components, @typescript-eslint/no-explicit-any
|
|
29
|
-
var CornerControlComponent = /*#__PURE__*/function (_Component) {
|
|
30
|
-
function CornerControlComponent() {
|
|
31
|
-
var _this;
|
|
32
|
-
(0, _classCallCheck2.default)(this, CornerControlComponent);
|
|
33
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
34
|
-
args[_key] = arguments[_key];
|
|
35
|
-
}
|
|
36
|
-
_this = _callSuper(this, CornerControlComponent, [].concat(args));
|
|
37
|
-
(0, _defineProperty2.default)(_this, "isActive", function () {
|
|
38
|
-
var _this$props = _this.props,
|
|
39
|
-
editorView = _this$props.editorView,
|
|
40
|
-
hoveredRows = _this$props.hoveredRows,
|
|
41
|
-
isResizing = _this$props.isResizing;
|
|
42
|
-
var selection = editorView.state.selection;
|
|
43
|
-
var table = (0, _utils.findTable)(selection);
|
|
44
|
-
if (!table) {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
return (0, _utils.isTableSelected)(selection) || hoveredRows && hoveredRows.length === _tableMap.TableMap.get(table.node).height && !isResizing;
|
|
48
|
-
});
|
|
49
|
-
(0, _defineProperty2.default)(_this, "clearHoverSelection", function () {
|
|
50
|
-
var _this$props$editorVie = _this.props.editorView,
|
|
51
|
-
state = _this$props$editorVie.state,
|
|
52
|
-
dispatch = _this$props$editorVie.dispatch;
|
|
53
|
-
(0, _commands.clearHoverSelection)()(state, dispatch);
|
|
54
|
-
});
|
|
55
|
-
(0, _defineProperty2.default)(_this, "selectTable", function () {
|
|
56
|
-
var _this$props$editorVie2 = _this.props.editorView,
|
|
57
|
-
state = _this$props$editorVie2.state,
|
|
58
|
-
dispatch = _this$props$editorVie2.dispatch;
|
|
59
|
-
dispatch((0, _utils.selectTable)(state.tr).setMeta('addToHistory', false));
|
|
60
|
-
});
|
|
61
|
-
(0, _defineProperty2.default)(_this, "hoverTable", function () {
|
|
62
|
-
var _this$props$editorVie3 = _this.props.editorView,
|
|
63
|
-
state = _this$props$editorVie3.state,
|
|
64
|
-
dispatch = _this$props$editorVie3.dispatch;
|
|
65
|
-
(0, _commands.hoverTable)()(state, dispatch);
|
|
66
|
-
});
|
|
67
|
-
return _this;
|
|
68
|
-
}
|
|
69
|
-
(0, _inherits2.default)(CornerControlComponent, _Component);
|
|
70
|
-
return (0, _createClass2.default)(CornerControlComponent, [{
|
|
71
|
-
key: "render",
|
|
72
|
-
value: function render() {
|
|
73
|
-
var _this$props2 = this.props,
|
|
74
|
-
isInDanger = _this$props2.isInDanger,
|
|
75
|
-
tableRef = _this$props2.tableRef,
|
|
76
|
-
isHeaderColumnEnabled = _this$props2.isHeaderColumnEnabled,
|
|
77
|
-
isHeaderRowEnabled = _this$props2.isHeaderRowEnabled,
|
|
78
|
-
formatMessage = _this$props2.intl.formatMessage;
|
|
79
|
-
if (!tableRef) {
|
|
80
|
-
return null;
|
|
81
|
-
}
|
|
82
|
-
var isActive = this.isActive();
|
|
83
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
84
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
85
|
-
className: (0, _classnames.default)(_types.TableCssClassName.CORNER_CONTROLS, {
|
|
86
|
-
active: isActive,
|
|
87
|
-
sticky: this.props.stickyTop !== undefined
|
|
88
|
-
}),
|
|
89
|
-
style: {
|
|
90
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
91
|
-
top: this.props.stickyTop !== undefined ? "0px" : undefined
|
|
92
|
-
},
|
|
93
|
-
contentEditable: false
|
|
94
|
-
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
95
|
-
"aria-label": formatMessage(_messages.tableMessages.cornerControl),
|
|
96
|
-
type: "button"
|
|
97
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
98
|
-
,
|
|
99
|
-
className: (0, _classnames.default)(_types.TableCssClassName.CONTROLS_CORNER_BUTTON, {
|
|
100
|
-
danger: isActive && isInDanger
|
|
101
|
-
}),
|
|
102
|
-
onClick: this.selectTable,
|
|
103
|
-
onMouseOver: this.hoverTable,
|
|
104
|
-
onMouseOut: this.clearHoverSelection,
|
|
105
|
-
onFocus: (0, _expValEquals.expValEquals)('platform_editor_table_a11y_eslint_fix', 'isEnabled', true) ? this.hoverTable : undefined,
|
|
106
|
-
onBlur: (0, _expValEquals.expValEquals)('platform_editor_table_a11y_eslint_fix', 'isEnabled', true) ? this.clearHoverSelection : undefined
|
|
107
|
-
}), !isHeaderRowEnabled &&
|
|
108
|
-
/*#__PURE__*/
|
|
109
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
110
|
-
_react.default.createElement("div", {
|
|
111
|
-
className: _types.TableCssClassName.CORNER_CONTROLS_INSERT_ROW_MARKER
|
|
112
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
113
|
-
className: _types.TableCssClassName.CONTROLS_INSERT_MARKER
|
|
114
|
-
})), !isHeaderColumnEnabled &&
|
|
115
|
-
/*#__PURE__*/
|
|
116
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
117
|
-
_react.default.createElement("div", {
|
|
118
|
-
className: _types.TableCssClassName.CORNER_CONTROLS_INSERT_COLUMN_MARKER
|
|
119
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
120
|
-
className: _types.TableCssClassName.CONTROLS_INSERT_MARKER
|
|
121
|
-
})));
|
|
122
|
-
}
|
|
123
|
-
}]);
|
|
124
|
-
}(_react.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
125
|
-
var CornerControls = exports.CornerControls = (0, _reactIntl.injectIntl)(CornerControlComponent);
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.FloatingControlsWithSelection = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
10
|
-
var _ClassicCornerControls = require("./CornerControls/ClassicCornerControls");
|
|
11
|
-
var _ClassicControls = require("./RowControls/ClassicControls");
|
|
12
|
-
var FloatingControlsWithSelection = exports.FloatingControlsWithSelection = function FloatingControlsWithSelection(_ref) {
|
|
13
|
-
var editorView = _ref.editorView,
|
|
14
|
-
tableRef = _ref.tableRef,
|
|
15
|
-
isInDanger = _ref.isInDanger,
|
|
16
|
-
isResizing = _ref.isResizing,
|
|
17
|
-
isHeaderRowEnabled = _ref.isHeaderRowEnabled,
|
|
18
|
-
isHeaderColumnEnabled = _ref.isHeaderColumnEnabled,
|
|
19
|
-
hoveredRows = _ref.hoveredRows,
|
|
20
|
-
stickyTop = _ref.stickyTop,
|
|
21
|
-
hoverRows = _ref.hoverRows,
|
|
22
|
-
selectRow = _ref.selectRow,
|
|
23
|
-
tableActive = _ref.tableActive,
|
|
24
|
-
api = _ref.api;
|
|
25
|
-
var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['selection'], function (states) {
|
|
26
|
-
var _states$selectionStat;
|
|
27
|
-
return {
|
|
28
|
-
selection: (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection
|
|
29
|
-
};
|
|
30
|
-
}),
|
|
31
|
-
selection = _useSharedPluginState.selection;
|
|
32
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ClassicCornerControls.CornerControls, {
|
|
33
|
-
editorView: editorView,
|
|
34
|
-
tableRef: tableRef,
|
|
35
|
-
isInDanger: isInDanger,
|
|
36
|
-
isResizing: isResizing,
|
|
37
|
-
isHeaderRowEnabled: isHeaderRowEnabled,
|
|
38
|
-
isHeaderColumnEnabled: isHeaderColumnEnabled,
|
|
39
|
-
hoveredRows: hoveredRows,
|
|
40
|
-
stickyTop: tableActive ? stickyTop : undefined
|
|
41
|
-
}), /*#__PURE__*/_react.default.createElement(_ClassicControls.RowControls, {
|
|
42
|
-
selection: selection,
|
|
43
|
-
editorView: editorView,
|
|
44
|
-
tableRef: tableRef,
|
|
45
|
-
hoverRows: hoverRows,
|
|
46
|
-
hoveredRows: hoveredRows,
|
|
47
|
-
isInDanger: isInDanger,
|
|
48
|
-
isResizing: isResizing,
|
|
49
|
-
selectRow: selectRow,
|
|
50
|
-
stickyTop: tableActive ? stickyTop : undefined
|
|
51
|
-
}));
|
|
52
|
-
};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.RowControls = void 0;
|
|
9
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
13
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
16
|
-
var _reactIntl = require("react-intl");
|
|
17
|
-
var _messages = require("@atlaskit/editor-common/messages");
|
|
18
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
|
-
var _commands = require("../../../pm-plugins/commands");
|
|
20
|
-
var _rowControls = require("../../../pm-plugins/utils/row-controls");
|
|
21
|
-
var _types = require("../../../types");
|
|
22
|
-
var _consts = require("../../consts");
|
|
23
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
24
|
-
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
25
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
|
-
// Ignored via go/ees005
|
|
27
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
28
|
-
var RowControlsComponent = /*#__PURE__*/function (_Component) {
|
|
29
|
-
function RowControlsComponent() {
|
|
30
|
-
var _this;
|
|
31
|
-
(0, _classCallCheck2.default)(this, RowControlsComponent);
|
|
32
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
33
|
-
args[_key] = arguments[_key];
|
|
34
|
-
}
|
|
35
|
-
_this = _callSuper(this, RowControlsComponent, [].concat(args));
|
|
36
|
-
(0, _defineProperty2.default)(_this, "clearHoverSelection", function () {
|
|
37
|
-
var _this$props$editorVie = _this.props.editorView,
|
|
38
|
-
state = _this$props$editorVie.state,
|
|
39
|
-
dispatch = _this$props$editorVie.dispatch;
|
|
40
|
-
(0, _commands.clearHoverSelection)()(state, dispatch);
|
|
41
|
-
});
|
|
42
|
-
return _this;
|
|
43
|
-
}
|
|
44
|
-
(0, _inherits2.default)(RowControlsComponent, _Component);
|
|
45
|
-
return (0, _createClass2.default)(RowControlsComponent, [{
|
|
46
|
-
key: "render",
|
|
47
|
-
value: function render() {
|
|
48
|
-
var _this2 = this;
|
|
49
|
-
var _this$props = this.props,
|
|
50
|
-
editorView = _this$props.editorView,
|
|
51
|
-
tableRef = _this$props.tableRef,
|
|
52
|
-
hoveredRows = _this$props.hoveredRows,
|
|
53
|
-
isInDanger = _this$props.isInDanger,
|
|
54
|
-
isResizing = _this$props.isResizing,
|
|
55
|
-
formatMessage = _this$props.intl.formatMessage,
|
|
56
|
-
selectionState = _this$props.selection;
|
|
57
|
-
if (!tableRef) {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
var selection = editorView.state.selection;
|
|
61
|
-
var rowHeights = (0, _rowControls.getRowHeights)(tableRef);
|
|
62
|
-
var rowsParams = (0, _rowControls.getRowsParams)(rowHeights);
|
|
63
|
-
var firstRow = tableRef.querySelector('tr');
|
|
64
|
-
var hasHeaderRow = firstRow ? firstRow.getAttribute('data-header-row') : false;
|
|
65
|
-
return (
|
|
66
|
-
/*#__PURE__*/
|
|
67
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
68
|
-
_react.default.createElement("div", {
|
|
69
|
-
className: _types.TableCssClassName.ROW_CONTROLS
|
|
70
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
71
|
-
className: _types.TableCssClassName.ROW_CONTROLS_INNER
|
|
72
|
-
}, rowsParams.map(function (_ref, index) {
|
|
73
|
-
var startIndex = _ref.startIndex,
|
|
74
|
-
endIndex = _ref.endIndex,
|
|
75
|
-
height = _ref.height;
|
|
76
|
-
// if previous row was header row, add its height to our margin
|
|
77
|
-
var marginTop = -1;
|
|
78
|
-
if (index === 1 && hasHeaderRow && _this2.props.stickyTop !== undefined) {
|
|
79
|
-
marginTop += rowHeights[index - 1] + _consts.tableToolbarSize;
|
|
80
|
-
}
|
|
81
|
-
var thisRowSticky = _this2.props.stickyTop !== undefined && index === 0 && hasHeaderRow;
|
|
82
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
83
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
84
|
-
className: "".concat(_types.TableCssClassName.ROW_CONTROLS_BUTTON_WRAP, " ").concat((0, _rowControls.getRowClassNames)(startIndex, selectionState || selection, hoveredRows, isInDanger, isResizing), " ").concat(thisRowSticky ? 'sticky' : ''),
|
|
85
|
-
key: startIndex,
|
|
86
|
-
style: {
|
|
87
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
88
|
-
height: height,
|
|
89
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
90
|
-
marginTop: "".concat(marginTop, "px"),
|
|
91
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
92
|
-
top: thisRowSticky ? "3px" : undefined,
|
|
93
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
94
|
-
paddingTop: thisRowSticky ? // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
95
|
-
"".concat(_consts.tableControlsSpacing - 2, "px") : undefined
|
|
96
|
-
}
|
|
97
|
-
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
98
|
-
"aria-label": formatMessage(_messages.tableMessages.rowControl),
|
|
99
|
-
type: "button"
|
|
100
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
101
|
-
,
|
|
102
|
-
className: "".concat(_types.TableCssClassName.ROW_CONTROLS_BUTTON, " ").concat(_types.TableCssClassName.CONTROLS_BUTTON),
|
|
103
|
-
onClick: function onClick(event) {
|
|
104
|
-
return _this2.props.selectRow(startIndex, event.shiftKey);
|
|
105
|
-
},
|
|
106
|
-
onMouseOver: function onMouseOver() {
|
|
107
|
-
return _this2.props.hoverRows([startIndex]);
|
|
108
|
-
},
|
|
109
|
-
onFocus: (0, _expValEquals.expValEquals)('platform_editor_table_a11y_eslint_fix', 'isEnabled', true) ? function () {
|
|
110
|
-
return _this2.props.hoverRows([startIndex]);
|
|
111
|
-
} : undefined,
|
|
112
|
-
onMouseOut: _this2.clearHoverSelection,
|
|
113
|
-
onBlur: (0, _expValEquals.expValEquals)('platform_editor_table_a11y_eslint_fix', 'isEnabled', true) ? _this2.clearHoverSelection : undefined,
|
|
114
|
-
"data-start-index": startIndex,
|
|
115
|
-
"data-end-index": endIndex
|
|
116
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
-
className: _types.TableCssClassName.CONTROLS_INSERT_MARKER
|
|
118
|
-
}));
|
|
119
|
-
})))
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
}]);
|
|
123
|
-
}(_react.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
124
|
-
var RowControls = exports.RowControls = (0, _reactIntl.injectIntl)(RowControlsComponent);
|