@atlaskit/editor-plugin-table 23.4.2 → 24.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/dist/cjs/nodeviews/TableCell.js +4 -27
- package/dist/cjs/nodeviews/TableComponent.js +1 -1
- package/dist/cjs/nodeviews/rounded-table-edges.js +168 -0
- package/dist/cjs/nodeviews/table.js +16 -67
- package/dist/cjs/pm-plugins/table-resizing/utils/dom.js +16 -1
- package/dist/cjs/ui/TableFloatingControls/index.js +1 -17
- package/dist/cjs/ui/common-styles.js +1 -1
- package/dist/es2019/nodeviews/TableCell.js +4 -27
- package/dist/es2019/nodeviews/TableComponent.js +2 -2
- package/dist/es2019/nodeviews/rounded-table-edges.js +150 -0
- package/dist/es2019/nodeviews/table.js +14 -61
- package/dist/es2019/pm-plugins/table-resizing/utils/dom.js +15 -0
- package/dist/es2019/ui/TableFloatingControls/index.js +1 -17
- package/dist/es2019/ui/common-styles.js +14 -0
- package/dist/esm/nodeviews/TableCell.js +4 -27
- package/dist/esm/nodeviews/TableComponent.js +2 -2
- package/dist/esm/nodeviews/rounded-table-edges.js +161 -0
- package/dist/esm/nodeviews/table.js +16 -67
- package/dist/esm/pm-plugins/table-resizing/utils/dom.js +15 -0
- package/dist/esm/ui/TableFloatingControls/index.js +1 -17
- package/dist/esm/ui/common-styles.js +1 -1
- package/dist/types/nodeviews/TableCell.d.ts +0 -5
- package/dist/types/nodeviews/rounded-table-edges.d.ts +26 -0
- package/dist/types/nodeviews/table.d.ts +1 -2
- package/dist/types/pm-plugins/table-resizing/utils/dom.d.ts +4 -0
- package/dist/types/ui/FloatingContextualButton/index.d.ts +0 -1
- package/dist/types/ui/TableFloatingControls/index.d.ts +1 -1
- package/package.json +38 -46
- package/table-plugin/package.json +1 -8
- package/table-plugin-type/package.json +1 -8
- package/types/package.json +1 -8
- package/ui/common-styles/package.json +1 -8
- package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -125
- package/dist/cjs/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -52
- package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -124
- package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -110
- package/dist/es2019/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -47
- package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -101
- package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -116
- package/dist/esm/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -45
- package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -115
- package/dist/types/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +0 -6
- package/dist/types/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +0 -20
- package/dist/types/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +0 -19
- package/dist/types-ts4.5/entry-points/table-plugin-type.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/table-plugin.d.ts +0 -6
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/ui-common-styles.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -7
- package/dist/types-ts4.5/nodeviews/ExternalDropTargets.d.ts +0 -9
- package/dist/types-ts4.5/nodeviews/OverflowShadowsObserver.d.ts +0 -26
- package/dist/types-ts4.5/nodeviews/TableCell.d.ts +0 -24
- package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +0 -48
- package/dist/types-ts4.5/nodeviews/TableComponentWithSharedState.d.ts +0 -30
- package/dist/types-ts4.5/nodeviews/TableContainer.d.ts +0 -48
- package/dist/types-ts4.5/nodeviews/TableNodeViewBase.d.ts +0 -18
- package/dist/types-ts4.5/nodeviews/TableResizer.d.ts +0 -36
- package/dist/types-ts4.5/nodeviews/TableRow.d.ts +0 -68
- package/dist/types-ts4.5/nodeviews/TableRowNativeStickyWithFallback.d.ts +0 -89
- package/dist/types-ts4.5/nodeviews/TableStickyScrollbar.d.ts +0 -23
- package/dist/types-ts4.5/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +0 -9
- package/dist/types-ts4.5/nodeviews/__mocks__/OverridableMock.d.ts +0 -9
- package/dist/types-ts4.5/nodeviews/table-container-styles.d.ts +0 -5
- package/dist/types-ts4.5/nodeviews/table-node-views.d.ts +0 -30
- package/dist/types-ts4.5/nodeviews/table.d.ts +0 -48
- package/dist/types-ts4.5/nodeviews/toDOM.d.ts +0 -17
- package/dist/types-ts4.5/nodeviews/types.d.ts +0 -33
- package/dist/types-ts4.5/nodeviews/update-overflow-shadows.d.ts +0 -1
- package/dist/types-ts4.5/pm-plugins/active-cell-highlight/plugin.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/analytics/actions.d.ts +0 -18
- package/dist/types-ts4.5/pm-plugins/analytics/commands.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/analytics/plugin-factory.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/analytics/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/analytics/plugin.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/analytics/reducer.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/analytics/types.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/analytics/utils/moved-event.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/commands/active-table-menu.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/commands/clear.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/commands/collapse.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/commands/column-resize.d.ts +0 -34
- package/dist/types-ts4.5/pm-plugins/commands/commands-with-analytics.d.ts +0 -33
- package/dist/types-ts4.5/pm-plugins/commands/delete.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/commands/display-mode.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/commands/go-to-next-cell.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/commands/hover.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/commands/index.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/commands/insert.d.ts +0 -54
- package/dist/types-ts4.5/pm-plugins/commands/misc.d.ts +0 -47
- package/dist/types-ts4.5/pm-plugins/commands/referentiality.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/commands/selection.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/commands/sort.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/commands/split-cell.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/commands/toggle.d.ts +0 -12
- package/dist/types-ts4.5/pm-plugins/create-plugin-config.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/decorations/plugin.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/decorations/utils/column-controls.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/decorations/utils/column-resizing.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/decorations/utils/compose-decorations.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/decorations/utils/types.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/default-table-selection.d.ts +0 -16
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/actions.d.ts +0 -28
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands-with-analytics.d.ts +0 -13
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/consts.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin-factory.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/reducer.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/types.d.ts +0 -14
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/getDragBehaviour.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/monitor.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/editor-content-area-height.d.ts +0 -12
- package/dist/types-ts4.5/pm-plugins/handlers.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/keymap.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/main.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/plugin-factory.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/reducer.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +0 -13
- package/dist/types-ts4.5/pm-plugins/sticky-headers/commands.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin-state.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/sticky-headers/types.d.ts +0 -17
- package/dist/types-ts4.5/pm-plugins/sticky-headers/util.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/table-analytics.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/table-anchor-names/plugin.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/table-local-id.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/table-resizing/commands.d.ts +0 -20
- package/dist/types-ts4.5/pm-plugins/table-resizing/event-handlers.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-factory.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/table-resizing/plugin.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/table-resizing/reducer.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/colgroup.d.ts +0 -26
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/column-state.d.ts +0 -14
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/consts.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/content-width.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/dom.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/misc.d.ts +0 -69
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-column.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-logic.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-state.d.ts +0 -28
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/scale-table.d.ts +0 -20
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/types.d.ts +0 -23
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/unit-to-number.d.ts +0 -1
- package/dist/types-ts4.5/pm-plugins/table-selection-keymap.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/table-size-selector.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/table-width-in-comment-fix.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/table-width.d.ts +0 -17
- package/dist/types-ts4.5/pm-plugins/transforms/column-width.d.ts +0 -25
- package/dist/types-ts4.5/pm-plugins/transforms/content-mode.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/transforms/delete-columns.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/transforms/delete-rows.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/transforms/fix-tables.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/transforms/merge.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/transforms/replace-table.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/transforms/split.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/transforms/table-transform-utils.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/utils/alignment.d.ts +0 -14
- package/dist/types-ts4.5/pm-plugins/utils/analytics.d.ts +0 -49
- package/dist/types-ts4.5/pm-plugins/utils/collapse.d.ts +0 -31
- package/dist/types-ts4.5/pm-plugins/utils/column-controls.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/utils/create.d.ts +0 -15
- package/dist/types-ts4.5/pm-plugins/utils/decoration.d.ts +0 -19
- package/dist/types-ts4.5/pm-plugins/utils/dom.d.ts +0 -42
- package/dist/types-ts4.5/pm-plugins/utils/drag-menu.d.ts +0 -19
- package/dist/types-ts4.5/pm-plugins/utils/get-allow-add-column-custom-step.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/utils/guidelines.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/utils/merged-cells.d.ts +0 -25
- package/dist/types-ts4.5/pm-plugins/utils/nodes.d.ts +0 -30
- package/dist/types-ts4.5/pm-plugins/utils/paste.d.ts +0 -16
- package/dist/types-ts4.5/pm-plugins/utils/row-controls.d.ts +0 -15
- package/dist/types-ts4.5/pm-plugins/utils/selection.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/utils/snapping.d.ts +0 -17
- package/dist/types-ts4.5/pm-plugins/utils/sticky-header.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/utils/table.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/apply-measured-width-to-all-tables.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/apply-measured-width-to-selected-table.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/is-content-mode-supported.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/measure-table-with-auto-layout.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/constants.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/distribute-column-widths.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/run-smart-adjust.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/utils/update-plugin-state-decorations.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/consts.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/index.d.ts +0 -21
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/types.d.ts +0 -22
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/utils.d.ts +0 -11
- package/dist/types-ts4.5/tablePlugin.d.ts +0 -7
- package/dist/types-ts4.5/tablePluginType.d.ts +0 -81
- package/dist/types-ts4.5/types/index.d.ts +0 -544
- package/dist/types-ts4.5/ui/ColumnResizeWidget/index.d.ts +0 -12
- package/dist/types-ts4.5/ui/ContentComponent.d.ts +0 -18
- package/dist/types-ts4.5/ui/DragHandle/HandleIconComponent.d.ts +0 -8
- package/dist/types-ts4.5/ui/DragHandle/index.d.ts +0 -29
- package/dist/types-ts4.5/ui/DragPreview/index.d.ts +0 -7
- package/dist/types-ts4.5/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.d.ts +0 -13
- package/dist/types-ts4.5/ui/FloatingContextualButton/FixedButton.d.ts +0 -22
- package/dist/types-ts4.5/ui/FloatingContextualButton/index.d.ts +0 -22
- package/dist/types-ts4.5/ui/FloatingContextualButton/styles.d.ts +0 -3
- package/dist/types-ts4.5/ui/FloatingContextualMenu/CellMenuPopup.d.ts +0 -14
- package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +0 -63
- package/dist/types-ts4.5/ui/FloatingContextualMenu/index.d.ts +0 -24
- package/dist/types-ts4.5/ui/FloatingContextualMenu/styles.d.ts +0 -3
- package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +0 -14
- package/dist/types-ts4.5/ui/FloatingDeleteButton/getPopUpOptions.d.ts +0 -10
- package/dist/types-ts4.5/ui/FloatingDeleteButton/index.d.ts +0 -55
- package/dist/types-ts4.5/ui/FloatingDeleteButton/types.d.ts +0 -2
- package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +0 -41
- package/dist/types-ts4.5/ui/FloatingDragMenu/DropdownMenu.d.ts +0 -36
- package/dist/types-ts4.5/ui/FloatingDragMenu/index.d.ts +0 -36
- package/dist/types-ts4.5/ui/FloatingDragMenu/styles.d.ts +0 -4
- package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +0 -18
- package/dist/types-ts4.5/ui/FloatingInsertButton/getPopupOptions.d.ts +0 -4
- package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +0 -40
- package/dist/types-ts4.5/ui/FloatingTableMenu/index.d.ts +0 -23
- package/dist/types-ts4.5/ui/FloatingToolbarLabel/FloatingToolbarLabel.d.ts +0 -16
- package/dist/types-ts4.5/ui/SizeSelector/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +0 -24
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.d.ts +0 -10
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/index.d.ts +0 -33
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +0 -6
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +0 -15
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/types.d.ts +0 -11
- package/dist/types-ts4.5/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +0 -20
- package/dist/types-ts4.5/ui/TableFloatingControls/NumberColumn/index.d.ts +0 -22
- package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +0 -19
- package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/DragControls.d.ts +0 -25
- package/dist/types-ts4.5/ui/TableFloatingControls/RowDropTarget/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +0 -37
- package/dist/types-ts4.5/ui/TableFullWidthLabel/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/TableMenu/cell/getCellMenuComponents.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/cell/items/MergeCellsItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/cell/items/SplitCellItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/cell/items/VerticalAlignDropdownItem.d.ts +0 -12
- package/dist/types-ts4.5/ui/TableMenu/cell/items/VerticalAlignNestedMenu.d.ts +0 -4
- package/dist/types-ts4.5/ui/TableMenu/cell/items/verticalAlignUtils.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/cell/keys.d.ts +0 -16
- package/dist/types-ts4.5/ui/TableMenu/column/getColumnMenuComponents.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/AddColumnLeftItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/AddColumnRightItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/ColumnBackgroundSection.d.ts +0 -11
- package/dist/types-ts4.5/ui/TableMenu/column/items/ColumnToggleSection.d.ts +0 -10
- package/dist/types-ts4.5/ui/TableMenu/column/items/DeleteColumnItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/DistributeColumnsItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/HeaderColumnToggleItem.d.ts +0 -16
- package/dist/types-ts4.5/ui/TableMenu/column/items/MoveColumnLeftItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/MoveColumnRightItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/SortDecreasingItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/items/SortIncreasingItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/column/keys.d.ts +0 -22
- package/dist/types-ts4.5/ui/TableMenu/row/getRowMenuComponents.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/AddRowAboveItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/AddRowBelowItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/DeleteRowItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/HeaderRowToggleItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/MoveRowDownItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/MoveRowUpItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/items/NumberedRowsToggleItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/row/keys.d.ts +0 -18
- package/dist/types-ts4.5/ui/TableMenu/shared/TableMenu.d.ts +0 -11
- package/dist/types-ts4.5/ui/TableMenu/shared/TableMenuContext.d.ts +0 -16
- package/dist/types-ts4.5/ui/TableMenu/shared/consts.d.ts +0 -4
- package/dist/types-ts4.5/ui/TableMenu/shared/getSharedItems.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/shared/getTableMenuComponents.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/shared/items/BackgroundColorItem.d.ts +0 -7
- package/dist/types-ts4.5/ui/TableMenu/shared/items/ClearCellsItem.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/shared/keys.d.ts +0 -3
- package/dist/types-ts4.5/ui/TableMenu/shared/types.d.ts +0 -4
- package/dist/types-ts4.5/ui/common-styles.d.ts +0 -14
- package/dist/types-ts4.5/ui/consts.d.ts +0 -69
- package/dist/types-ts4.5/ui/event-handlers.d.ts +0 -20
- package/dist/types-ts4.5/ui/global-styles.d.ts +0 -11
- package/dist/types-ts4.5/ui/hooks/useInternalTablePluginStateSelector.d.ts +0 -22
- package/dist/types-ts4.5/ui/icons/AddColLeftIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/AddColRightIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/AddRowAboveIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/AddRowBelowIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/DragHandleDisabledIcon.d.ts +0 -6
- package/dist/types-ts4.5/ui/icons/DragHandleIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/DragInMotionIcon.d.ts +0 -6
- package/dist/types-ts4.5/ui/icons/MergeCellsIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/MinimisedHandle.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/SortingIconWrapper.d.ts +0 -10
- package/dist/types-ts4.5/ui/icons/SplitCellIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/rounded-table-styles.d.ts +0 -2
- package/dist/types-ts4.5/ui/toolbar.d.ts +0 -11
- package/dist/types-ts4.5/ui/ui-styles.d.ts +0 -21
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
4
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
-
import React, { Component } from 'react';
|
|
10
|
-
import classnames from 'classnames';
|
|
11
|
-
import { injectIntl } from 'react-intl';
|
|
12
|
-
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
13
|
-
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
14
|
-
import { findTable, isTableSelected, selectTable } from '@atlaskit/editor-tables/utils';
|
|
15
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
|
-
import { clearHoverSelection, hoverTable } from '../../../pm-plugins/commands';
|
|
17
|
-
import { TableCssClassName as ClassName } from '../../../types';
|
|
18
|
-
// Ignored via go/ees005
|
|
19
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components, @typescript-eslint/no-explicit-any
|
|
20
|
-
var CornerControlComponent = /*#__PURE__*/function (_Component) {
|
|
21
|
-
function CornerControlComponent() {
|
|
22
|
-
var _this;
|
|
23
|
-
_classCallCheck(this, CornerControlComponent);
|
|
24
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
25
|
-
args[_key] = arguments[_key];
|
|
26
|
-
}
|
|
27
|
-
_this = _callSuper(this, CornerControlComponent, [].concat(args));
|
|
28
|
-
_defineProperty(_this, "isActive", function () {
|
|
29
|
-
var _this$props = _this.props,
|
|
30
|
-
editorView = _this$props.editorView,
|
|
31
|
-
hoveredRows = _this$props.hoveredRows,
|
|
32
|
-
isResizing = _this$props.isResizing;
|
|
33
|
-
var selection = editorView.state.selection;
|
|
34
|
-
var table = findTable(selection);
|
|
35
|
-
if (!table) {
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
return isTableSelected(selection) || hoveredRows && hoveredRows.length === TableMap.get(table.node).height && !isResizing;
|
|
39
|
-
});
|
|
40
|
-
_defineProperty(_this, "clearHoverSelection", function () {
|
|
41
|
-
var _this$props$editorVie = _this.props.editorView,
|
|
42
|
-
state = _this$props$editorVie.state,
|
|
43
|
-
dispatch = _this$props$editorVie.dispatch;
|
|
44
|
-
clearHoverSelection()(state, dispatch);
|
|
45
|
-
});
|
|
46
|
-
_defineProperty(_this, "selectTable", function () {
|
|
47
|
-
var _this$props$editorVie2 = _this.props.editorView,
|
|
48
|
-
state = _this$props$editorVie2.state,
|
|
49
|
-
dispatch = _this$props$editorVie2.dispatch;
|
|
50
|
-
dispatch(selectTable(state.tr).setMeta('addToHistory', false));
|
|
51
|
-
});
|
|
52
|
-
_defineProperty(_this, "hoverTable", function () {
|
|
53
|
-
var _this$props$editorVie3 = _this.props.editorView,
|
|
54
|
-
state = _this$props$editorVie3.state,
|
|
55
|
-
dispatch = _this$props$editorVie3.dispatch;
|
|
56
|
-
hoverTable()(state, dispatch);
|
|
57
|
-
});
|
|
58
|
-
return _this;
|
|
59
|
-
}
|
|
60
|
-
_inherits(CornerControlComponent, _Component);
|
|
61
|
-
return _createClass(CornerControlComponent, [{
|
|
62
|
-
key: "render",
|
|
63
|
-
value: function render() {
|
|
64
|
-
var _this$props2 = this.props,
|
|
65
|
-
isInDanger = _this$props2.isInDanger,
|
|
66
|
-
tableRef = _this$props2.tableRef,
|
|
67
|
-
isHeaderColumnEnabled = _this$props2.isHeaderColumnEnabled,
|
|
68
|
-
isHeaderRowEnabled = _this$props2.isHeaderRowEnabled,
|
|
69
|
-
formatMessage = _this$props2.intl.formatMessage;
|
|
70
|
-
if (!tableRef) {
|
|
71
|
-
return null;
|
|
72
|
-
}
|
|
73
|
-
var isActive = this.isActive();
|
|
74
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
75
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
76
|
-
className: classnames(ClassName.CORNER_CONTROLS, {
|
|
77
|
-
active: isActive,
|
|
78
|
-
sticky: this.props.stickyTop !== undefined
|
|
79
|
-
}),
|
|
80
|
-
style: {
|
|
81
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
82
|
-
top: this.props.stickyTop !== undefined ? "0px" : undefined
|
|
83
|
-
},
|
|
84
|
-
contentEditable: false
|
|
85
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
86
|
-
"aria-label": formatMessage(messages.cornerControl),
|
|
87
|
-
type: "button"
|
|
88
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
89
|
-
,
|
|
90
|
-
className: classnames(ClassName.CONTROLS_CORNER_BUTTON, {
|
|
91
|
-
danger: isActive && isInDanger
|
|
92
|
-
}),
|
|
93
|
-
onClick: this.selectTable,
|
|
94
|
-
onMouseOver: this.hoverTable,
|
|
95
|
-
onMouseOut: this.clearHoverSelection,
|
|
96
|
-
onFocus: expValEquals('platform_editor_table_a11y_eslint_fix', 'isEnabled', true) ? this.hoverTable : undefined,
|
|
97
|
-
onBlur: expValEquals('platform_editor_table_a11y_eslint_fix', 'isEnabled', true) ? this.clearHoverSelection : undefined
|
|
98
|
-
}), !isHeaderRowEnabled &&
|
|
99
|
-
/*#__PURE__*/
|
|
100
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
101
|
-
React.createElement("div", {
|
|
102
|
-
className: ClassName.CORNER_CONTROLS_INSERT_ROW_MARKER
|
|
103
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
104
|
-
className: ClassName.CONTROLS_INSERT_MARKER
|
|
105
|
-
})), !isHeaderColumnEnabled &&
|
|
106
|
-
/*#__PURE__*/
|
|
107
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
108
|
-
React.createElement("div", {
|
|
109
|
-
className: ClassName.CORNER_CONTROLS_INSERT_COLUMN_MARKER
|
|
110
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
111
|
-
className: ClassName.CONTROLS_INSERT_MARKER
|
|
112
|
-
})));
|
|
113
|
-
}
|
|
114
|
-
}]);
|
|
115
|
-
}(Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
116
|
-
export var CornerControls = injectIntl(CornerControlComponent);
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
3
|
-
import { CornerControls } from './CornerControls/ClassicCornerControls';
|
|
4
|
-
import { RowControls } from './RowControls/ClassicControls';
|
|
5
|
-
export var FloatingControlsWithSelection = function FloatingControlsWithSelection(_ref) {
|
|
6
|
-
var editorView = _ref.editorView,
|
|
7
|
-
tableRef = _ref.tableRef,
|
|
8
|
-
isInDanger = _ref.isInDanger,
|
|
9
|
-
isResizing = _ref.isResizing,
|
|
10
|
-
isHeaderRowEnabled = _ref.isHeaderRowEnabled,
|
|
11
|
-
isHeaderColumnEnabled = _ref.isHeaderColumnEnabled,
|
|
12
|
-
hoveredRows = _ref.hoveredRows,
|
|
13
|
-
stickyTop = _ref.stickyTop,
|
|
14
|
-
hoverRows = _ref.hoverRows,
|
|
15
|
-
selectRow = _ref.selectRow,
|
|
16
|
-
tableActive = _ref.tableActive,
|
|
17
|
-
api = _ref.api;
|
|
18
|
-
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['selection'], function (states) {
|
|
19
|
-
var _states$selectionStat;
|
|
20
|
-
return {
|
|
21
|
-
selection: (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection
|
|
22
|
-
};
|
|
23
|
-
}),
|
|
24
|
-
selection = _useSharedPluginState.selection;
|
|
25
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CornerControls, {
|
|
26
|
-
editorView: editorView,
|
|
27
|
-
tableRef: tableRef,
|
|
28
|
-
isInDanger: isInDanger,
|
|
29
|
-
isResizing: isResizing,
|
|
30
|
-
isHeaderRowEnabled: isHeaderRowEnabled,
|
|
31
|
-
isHeaderColumnEnabled: isHeaderColumnEnabled,
|
|
32
|
-
hoveredRows: hoveredRows,
|
|
33
|
-
stickyTop: tableActive ? stickyTop : undefined
|
|
34
|
-
}), /*#__PURE__*/React.createElement(RowControls, {
|
|
35
|
-
selection: selection,
|
|
36
|
-
editorView: editorView,
|
|
37
|
-
tableRef: tableRef,
|
|
38
|
-
hoverRows: hoverRows,
|
|
39
|
-
hoveredRows: hoveredRows,
|
|
40
|
-
isInDanger: isInDanger,
|
|
41
|
-
isResizing: isResizing,
|
|
42
|
-
selectRow: selectRow,
|
|
43
|
-
stickyTop: tableActive ? stickyTop : undefined
|
|
44
|
-
}));
|
|
45
|
-
};
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
4
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
-
import React, { Component } from 'react';
|
|
10
|
-
import { injectIntl } from 'react-intl';
|
|
11
|
-
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
12
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
|
-
import { clearHoverSelection } from '../../../pm-plugins/commands';
|
|
14
|
-
import { getRowClassNames, getRowHeights, getRowsParams } from '../../../pm-plugins/utils/row-controls';
|
|
15
|
-
import { TableCssClassName as ClassName } from '../../../types';
|
|
16
|
-
import { tableControlsSpacing, tableToolbarSize } from '../../consts';
|
|
17
|
-
// Ignored via go/ees005
|
|
18
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
19
|
-
var RowControlsComponent = /*#__PURE__*/function (_Component) {
|
|
20
|
-
function RowControlsComponent() {
|
|
21
|
-
var _this;
|
|
22
|
-
_classCallCheck(this, RowControlsComponent);
|
|
23
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
24
|
-
args[_key] = arguments[_key];
|
|
25
|
-
}
|
|
26
|
-
_this = _callSuper(this, RowControlsComponent, [].concat(args));
|
|
27
|
-
_defineProperty(_this, "clearHoverSelection", function () {
|
|
28
|
-
var _this$props$editorVie = _this.props.editorView,
|
|
29
|
-
state = _this$props$editorVie.state,
|
|
30
|
-
dispatch = _this$props$editorVie.dispatch;
|
|
31
|
-
clearHoverSelection()(state, dispatch);
|
|
32
|
-
});
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
_inherits(RowControlsComponent, _Component);
|
|
36
|
-
return _createClass(RowControlsComponent, [{
|
|
37
|
-
key: "render",
|
|
38
|
-
value: function render() {
|
|
39
|
-
var _this2 = this;
|
|
40
|
-
var _this$props = this.props,
|
|
41
|
-
editorView = _this$props.editorView,
|
|
42
|
-
tableRef = _this$props.tableRef,
|
|
43
|
-
hoveredRows = _this$props.hoveredRows,
|
|
44
|
-
isInDanger = _this$props.isInDanger,
|
|
45
|
-
isResizing = _this$props.isResizing,
|
|
46
|
-
formatMessage = _this$props.intl.formatMessage,
|
|
47
|
-
selectionState = _this$props.selection;
|
|
48
|
-
if (!tableRef) {
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
var selection = editorView.state.selection;
|
|
52
|
-
var rowHeights = getRowHeights(tableRef);
|
|
53
|
-
var rowsParams = getRowsParams(rowHeights);
|
|
54
|
-
var firstRow = tableRef.querySelector('tr');
|
|
55
|
-
var hasHeaderRow = firstRow ? firstRow.getAttribute('data-header-row') : false;
|
|
56
|
-
return (
|
|
57
|
-
/*#__PURE__*/
|
|
58
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
59
|
-
React.createElement("div", {
|
|
60
|
-
className: ClassName.ROW_CONTROLS
|
|
61
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
62
|
-
className: ClassName.ROW_CONTROLS_INNER
|
|
63
|
-
}, rowsParams.map(function (_ref, index) {
|
|
64
|
-
var startIndex = _ref.startIndex,
|
|
65
|
-
endIndex = _ref.endIndex,
|
|
66
|
-
height = _ref.height;
|
|
67
|
-
// if previous row was header row, add its height to our margin
|
|
68
|
-
var marginTop = -1;
|
|
69
|
-
if (index === 1 && hasHeaderRow && _this2.props.stickyTop !== undefined) {
|
|
70
|
-
marginTop += rowHeights[index - 1] + tableToolbarSize;
|
|
71
|
-
}
|
|
72
|
-
var thisRowSticky = _this2.props.stickyTop !== undefined && index === 0 && hasHeaderRow;
|
|
73
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
74
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
75
|
-
className: "".concat(ClassName.ROW_CONTROLS_BUTTON_WRAP, " ").concat(getRowClassNames(startIndex, selectionState || selection, hoveredRows, isInDanger, isResizing), " ").concat(thisRowSticky ? 'sticky' : ''),
|
|
76
|
-
key: startIndex,
|
|
77
|
-
style: {
|
|
78
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
79
|
-
height: height,
|
|
80
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
81
|
-
marginTop: "".concat(marginTop, "px"),
|
|
82
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
83
|
-
top: thisRowSticky ? "3px" : undefined,
|
|
84
|
-
// 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
|
|
85
|
-
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
|
|
86
|
-
"".concat(tableControlsSpacing - 2, "px") : undefined
|
|
87
|
-
}
|
|
88
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
89
|
-
"aria-label": formatMessage(messages.rowControl),
|
|
90
|
-
type: "button"
|
|
91
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
92
|
-
,
|
|
93
|
-
className: "".concat(ClassName.ROW_CONTROLS_BUTTON, " ").concat(ClassName.CONTROLS_BUTTON),
|
|
94
|
-
onClick: function onClick(event) {
|
|
95
|
-
return _this2.props.selectRow(startIndex, event.shiftKey);
|
|
96
|
-
},
|
|
97
|
-
onMouseOver: function onMouseOver() {
|
|
98
|
-
return _this2.props.hoverRows([startIndex]);
|
|
99
|
-
},
|
|
100
|
-
onFocus: expValEquals('platform_editor_table_a11y_eslint_fix', 'isEnabled', true) ? function () {
|
|
101
|
-
return _this2.props.hoverRows([startIndex]);
|
|
102
|
-
} : undefined,
|
|
103
|
-
onMouseOut: _this2.clearHoverSelection,
|
|
104
|
-
onBlur: expValEquals('platform_editor_table_a11y_eslint_fix', 'isEnabled', true) ? _this2.clearHoverSelection : undefined,
|
|
105
|
-
"data-start-index": startIndex,
|
|
106
|
-
"data-end-index": endIndex
|
|
107
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
108
|
-
className: ClassName.CONTROLS_INSERT_MARKER
|
|
109
|
-
}));
|
|
110
|
-
})))
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
}]);
|
|
114
|
-
}(Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
115
|
-
export var RowControls = injectIntl(RowControlsComponent);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { CornerControlProps } from './types';
|
|
4
|
-
export declare const CornerControls: React.FC<WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
|
|
5
|
-
WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps>;
|
|
6
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { TablePlugin } from '../../tablePluginType';
|
|
5
|
-
type FloatingControlsWithSelectionProps = {
|
|
6
|
-
api?: ExtractInjectionAPI<TablePlugin>;
|
|
7
|
-
editorView: EditorView;
|
|
8
|
-
hoveredRows?: number[];
|
|
9
|
-
hoverRows: (rows: number[]) => void;
|
|
10
|
-
isHeaderColumnEnabled?: boolean;
|
|
11
|
-
isHeaderRowEnabled?: boolean;
|
|
12
|
-
isInDanger?: boolean;
|
|
13
|
-
isResizing?: boolean;
|
|
14
|
-
selectRow: (row: number, expand: boolean) => void;
|
|
15
|
-
stickyTop?: number;
|
|
16
|
-
tableActive: boolean;
|
|
17
|
-
tableRef: HTMLTableElement;
|
|
18
|
-
};
|
|
19
|
-
export declare const FloatingControlsWithSelection: ({ editorView, tableRef, isInDanger, isResizing, isHeaderRowEnabled, isHeaderColumnEnabled, hoveredRows, stickyTop, hoverRows, selectRow, tableActive, api, }: FloatingControlsWithSelectionProps) => React.JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
export interface Props {
|
|
6
|
-
editorView: EditorView;
|
|
7
|
-
hoveredRows?: number[];
|
|
8
|
-
hoverRows: (rows: number[], danger?: boolean) => void;
|
|
9
|
-
insertRowButtonIndex?: number;
|
|
10
|
-
isInDanger?: boolean;
|
|
11
|
-
isResizing?: boolean;
|
|
12
|
-
selection?: Selection;
|
|
13
|
-
selectRow: (row: number, expand: boolean) => void;
|
|
14
|
-
stickyTop?: number;
|
|
15
|
-
tableRef: HTMLTableElement;
|
|
16
|
-
}
|
|
17
|
-
export declare const RowControls: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
18
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
19
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { TablePlugin, TablePluginOptions, TablePluginDependencies, TablePluginActions, TablePluginCommands, } from '../tablePluginType';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { RESIZE_HANDLE_AREA_DECORATION_GAP, ShadowEvent, TableCssClassName, TableDecorations, } from '../types/index';
|
|
2
|
-
export type { ActiveTableMenu, AlignmentOptions, Cell, CellColumnPositioning, CellHoverMeta, CellTransform, ColumnResizingPluginAction, ColumnResizingPluginState, DraggableBehaviour, DraggableData, DraggableSourceData, DraggableTargetData, DraggableType, HandleTypes, InsertRowMethods, InsertRowOptions, InvalidNodeAttr, MessageDescriptor, PermittedLayoutsDescriptor, PluginConfig, PluginInjectionAPI, PluginInjectionAPIWithA11y, ReportInvalidNodeAttrs, RowInsertPosition, TableDirection, TablePluginAction, TablePluginState, TableSharedState, TableSharedStateInternal, ToolbarMenuConfig, ToolbarMenuContext, ToolbarMenuState, WidthToWidest, } from '../types/index';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { baseTableStyles, insertColumnButtonOffset, tableCommentEditorStyles, tableFullPageEditorStyles, tableRowHeight, tableStyles, } from '../ui/common-styles';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
/**
|
|
3
|
-
* @private
|
|
4
|
-
* @deprecated Use {@link tablePlugin} instead.
|
|
5
|
-
*/
|
|
6
|
-
default as tablesPlugin, default as tablePlugin, } from './tablePlugin';
|
|
7
|
-
export type { TablePlugin, TablePluginOptions, TablePluginDependencies, TablePluginActions, TablePluginCommands, } from './tablePluginType';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
export declare const ExternalDropTargets: ({ editorView, node, getScrollOffset, getTableWrapperWidth, }: {
|
|
5
|
-
editorView: EditorView;
|
|
6
|
-
getScrollOffset: () => number;
|
|
7
|
-
getTableWrapperWidth: () => number;
|
|
8
|
-
node?: PMNode;
|
|
9
|
-
}) => React.JSX.Element | null;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ShadowEvent } from '../types';
|
|
2
|
-
export declare class OverflowShadowsObserver {
|
|
3
|
-
private tableIntersectionObserver?;
|
|
4
|
-
private updateShadowState;
|
|
5
|
-
private table;
|
|
6
|
-
private wrapper;
|
|
7
|
-
private leftShadowSentinel;
|
|
8
|
-
private rightShadowSentinel;
|
|
9
|
-
private shadowsObserved;
|
|
10
|
-
private isSticky;
|
|
11
|
-
private stickyRowHeight;
|
|
12
|
-
constructor(updateShadowState: (shadowKey: ShadowEvent, value: boolean) => void, table: HTMLElement, wrapper: HTMLDivElement);
|
|
13
|
-
private init;
|
|
14
|
-
private updateStickyShadowsHeightIfChanged;
|
|
15
|
-
private getStickyCell;
|
|
16
|
-
observeShadowSentinels: (isSticky?: boolean) => void;
|
|
17
|
-
/**
|
|
18
|
-
* Takes a heightStyle if it can be computed in a less expensive manner,
|
|
19
|
-
* e.g. bounds on an IntersectionObserverEntry, otherwise proceed with
|
|
20
|
-
* reading it from sticky cell
|
|
21
|
-
*/
|
|
22
|
-
updateStickyShadows: ((stickyRowHeight?: number) => void) & {
|
|
23
|
-
cancel(): void;
|
|
24
|
-
};
|
|
25
|
-
dispose(): void;
|
|
26
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import TableNodeView from './TableNodeViewBase';
|
|
6
|
-
export default class TableCell extends TableNodeView<HTMLElement> implements NodeView {
|
|
7
|
-
private delayHandle;
|
|
8
|
-
/** Cached edge state to avoid redundant DOM writes. */
|
|
9
|
-
private prevReachesTop;
|
|
10
|
-
private prevReachesBottom;
|
|
11
|
-
private prevReachesLeft;
|
|
12
|
-
private prevReachesRight;
|
|
13
|
-
constructor(node: PMNode, view: EditorView, getPos: () => number | undefined, eventDispatcher: EventDispatcher, editorAnalyticsAPI: EditorAnalyticsAPI | undefined);
|
|
14
|
-
destroy: () => void;
|
|
15
|
-
update(node: PMNode): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Detects whether this cell visually reaches the bottom or right edge of the table
|
|
18
|
-
* (accounting for rowspan/colspan) and sets data attributes so CSS can apply
|
|
19
|
-
* rounded corners and transparent borders to merged cells that span to the table edges.
|
|
20
|
-
*/
|
|
21
|
-
private updateTableEdgeAttrs;
|
|
22
|
-
private setDataAttr;
|
|
23
|
-
private updateNodeView;
|
|
24
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IntlShape, WithIntlProps } from 'react-intl';
|
|
3
|
-
import type { TableColumnOrdering } from '@atlaskit/custom-steps';
|
|
4
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
6
|
-
import type { EditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
|
-
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
9
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
-
import type { CellHoverMeta, PluginInjectionAPI } from '../types';
|
|
11
|
-
import type { TableOptions } from './types';
|
|
12
|
-
interface ComponentProps {
|
|
13
|
-
allowColumnResizing?: boolean;
|
|
14
|
-
allowControls?: boolean;
|
|
15
|
-
allowFixedColumnWidthOption?: boolean;
|
|
16
|
-
allowTableAlignment?: boolean;
|
|
17
|
-
allowTableResizing?: boolean;
|
|
18
|
-
containerWidth: EditorContainerWidth;
|
|
19
|
-
contentDOM: (node: HTMLElement | null) => void;
|
|
20
|
-
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
21
|
-
eventDispatcher: EventDispatcher;
|
|
22
|
-
getEditorFeatureFlags: GetEditorFeatureFlags;
|
|
23
|
-
getNode: () => PmNode;
|
|
24
|
-
getPos: () => number | undefined;
|
|
25
|
-
hoveredCell?: CellHoverMeta;
|
|
26
|
-
hoveredRows?: number[];
|
|
27
|
-
intl: IntlShape;
|
|
28
|
-
isDragAndDropEnabled?: boolean;
|
|
29
|
-
isHeaderColumnEnabled: boolean;
|
|
30
|
-
isHeaderRowEnabled: boolean;
|
|
31
|
-
isInDanger?: boolean;
|
|
32
|
-
isMediaFullscreen?: boolean;
|
|
33
|
-
isResizing?: boolean;
|
|
34
|
-
isTableHovered?: boolean;
|
|
35
|
-
isTableScalingEnabled?: boolean;
|
|
36
|
-
isWholeTableInDanger?: boolean;
|
|
37
|
-
limitedMode?: boolean;
|
|
38
|
-
options?: TableOptions;
|
|
39
|
-
ordering?: TableColumnOrdering;
|
|
40
|
-
pluginInjectionApi?: PluginInjectionAPI;
|
|
41
|
-
selection?: Selection;
|
|
42
|
-
tableActive: boolean;
|
|
43
|
-
view: EditorView;
|
|
44
|
-
}
|
|
45
|
-
declare const _default_1: React.FC<WithIntlProps<ComponentProps>> & {
|
|
46
|
-
WrappedComponent: React.ComponentType<ComponentProps>;
|
|
47
|
-
};
|
|
48
|
-
export default _default_1;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type { GetEditorFeatureFlags, getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import type { PluginInjectionAPI } from '../types';
|
|
8
|
-
import type { TableOptions } from './types';
|
|
9
|
-
type ForwardRef = (node: HTMLElement | null) => any;
|
|
10
|
-
type TableComponentWithSharedStateProps = {
|
|
11
|
-
allowColumnResizing?: boolean;
|
|
12
|
-
allowControls?: boolean;
|
|
13
|
-
allowFixedColumnWidthOption?: boolean;
|
|
14
|
-
allowTableAlignment?: boolean;
|
|
15
|
-
allowTableResizing?: boolean;
|
|
16
|
-
api?: PluginInjectionAPI;
|
|
17
|
-
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
18
|
-
eventDispatcher: EventDispatcher;
|
|
19
|
-
forwardRef: ForwardRef;
|
|
20
|
-
getEditorFeatureFlags: GetEditorFeatureFlags;
|
|
21
|
-
getNode: () => PmNode;
|
|
22
|
-
getPos: getPosHandlerNode;
|
|
23
|
-
options?: TableOptions;
|
|
24
|
-
view: EditorView;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Use useSharedPluginState to control re-renders from plugin dependencies
|
|
28
|
-
*/
|
|
29
|
-
export declare const TableComponentWithSharedState: ({ view, options, getNode, dispatchAnalyticsEvent, api, getEditorFeatureFlags, eventDispatcher, allowColumnResizing, allowControls, getPos, forwardRef, allowTableAlignment, allowTableResizing, allowFixedColumnWidthOption, }: TableComponentWithSharedStateProps) => React.JSX.Element;
|
|
30
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { EditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
-
import type { PluginInjectionAPI } from '../types';
|
|
7
|
-
type ResizableTableContainerProps = {
|
|
8
|
-
allowFixedColumnWidthOption?: boolean;
|
|
9
|
-
className: string;
|
|
10
|
-
containerWidth: number;
|
|
11
|
-
editorView: EditorView;
|
|
12
|
-
getPos: () => number | undefined;
|
|
13
|
-
isChromelessEditor?: boolean;
|
|
14
|
-
isCommentEditor?: boolean;
|
|
15
|
-
isResizing?: boolean;
|
|
16
|
-
isTableAlignmentEnabled?: boolean;
|
|
17
|
-
isTableScalingEnabled?: boolean;
|
|
18
|
-
isWholeTableInDanger?: boolean;
|
|
19
|
-
lineLength: number | undefined;
|
|
20
|
-
node: PMNode;
|
|
21
|
-
pluginInjectionApi?: PluginInjectionAPI;
|
|
22
|
-
shouldUseIncreasedScalingPercent?: boolean;
|
|
23
|
-
tableRef: HTMLTableElement;
|
|
24
|
-
tableWrapperHeight?: number;
|
|
25
|
-
};
|
|
26
|
-
export declare const ResizableTableContainer: React.MemoExoticComponent<({ children, className, node, containerWidth, lineLength, editorView, getPos, tableRef, isResizing, pluginInjectionApi, tableWrapperHeight, isWholeTableInDanger, isTableScalingEnabled, allowFixedColumnWidthOption, isTableAlignmentEnabled, shouldUseIncreasedScalingPercent, isCommentEditor, isChromelessEditor, }: PropsWithChildren<ResizableTableContainerProps>) => React.JSX.Element>;
|
|
27
|
-
type TableContainerProps = {
|
|
28
|
-
allowFixedColumnWidthOption?: boolean;
|
|
29
|
-
className: string;
|
|
30
|
-
containerWidth: EditorContainerWidth;
|
|
31
|
-
editorView: EditorView;
|
|
32
|
-
getPos: () => number | undefined;
|
|
33
|
-
isChromelessEditor?: boolean;
|
|
34
|
-
isCommentEditor?: boolean;
|
|
35
|
-
isNested: boolean;
|
|
36
|
-
isResizing?: boolean;
|
|
37
|
-
isTableAlignmentEnabled?: boolean;
|
|
38
|
-
isTableResizingEnabled: boolean | undefined;
|
|
39
|
-
isTableScalingEnabled?: boolean;
|
|
40
|
-
isWholeTableInDanger?: boolean;
|
|
41
|
-
node: PMNode;
|
|
42
|
-
pluginInjectionApi?: PluginInjectionAPI;
|
|
43
|
-
shouldUseIncreasedScalingPercent?: boolean;
|
|
44
|
-
tableRef: HTMLTableElement;
|
|
45
|
-
tableWrapperHeight?: number;
|
|
46
|
-
};
|
|
47
|
-
export declare const TableContainer: ({ children, node, className, containerWidth: { width: editorWidth, lineLength }, editorView, getPos, tableRef, isNested, tableWrapperHeight, isResizing, pluginInjectionApi, isWholeTableInDanger, isTableResizingEnabled, isTableScalingEnabled, allowFixedColumnWidthOption, isTableAlignmentEnabled, shouldUseIncreasedScalingPercent, isCommentEditor, isChromelessEditor, }: PropsWithChildren<TableContainerProps>) => React.JSX.Element;
|
|
48
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
export default abstract class TableNodeView<T extends HTMLElement> implements NodeView {
|
|
5
|
-
protected node: PmNode;
|
|
6
|
-
protected readonly view: EditorView;
|
|
7
|
-
protected readonly getPos: () => number | undefined;
|
|
8
|
-
protected readonly eventDispatcher: EventDispatcher;
|
|
9
|
-
/**
|
|
10
|
-
* @constructor
|
|
11
|
-
*/
|
|
12
|
-
constructor(node: PmNode, view: EditorView, getPos: () => number | undefined, eventDispatcher: EventDispatcher);
|
|
13
|
-
/**
|
|
14
|
-
* Variables
|
|
15
|
-
*/
|
|
16
|
-
dom: T;
|
|
17
|
-
contentDOM: T;
|
|
18
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { TableEventPayload } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type { GuidelineConfig } from '@atlaskit/editor-common/guideline';
|
|
5
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
-
import type { PluginInjectionAPI } from '../types';
|
|
9
|
-
interface TableResizerProps {
|
|
10
|
-
allowFixedColumnWidthOption?: boolean;
|
|
11
|
-
attachAnalyticsEvent: (payload: TableEventPayload) => ((tr: Transaction) => boolean) | undefined;
|
|
12
|
-
containerWidth: number;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
displayGapCursor: (toggle: boolean) => boolean;
|
|
15
|
-
displayGuideline: (guideline: GuidelineConfig[]) => boolean;
|
|
16
|
-
editorView: EditorView;
|
|
17
|
-
getPos: () => number | undefined;
|
|
18
|
-
isChromelessEditor?: boolean;
|
|
19
|
-
isCommentEditor?: boolean;
|
|
20
|
-
isFullWidthModeEnabled?: boolean;
|
|
21
|
-
isTableAlignmentEnabled?: boolean;
|
|
22
|
-
isTableScalingEnabled?: boolean;
|
|
23
|
-
isWholeTableInDanger?: boolean;
|
|
24
|
-
lineLength: number;
|
|
25
|
-
maxWidth: number | string;
|
|
26
|
-
node: PMNode;
|
|
27
|
-
onResizeStart?: () => void;
|
|
28
|
-
onResizeStop?: () => void;
|
|
29
|
-
pluginInjectionApi?: PluginInjectionAPI;
|
|
30
|
-
shouldUseIncreasedScalingPercent?: boolean;
|
|
31
|
-
tableRef: HTMLTableElement;
|
|
32
|
-
updateWidth: (width: number) => void;
|
|
33
|
-
width: number;
|
|
34
|
-
}
|
|
35
|
-
export declare const TableResizer: ({ children, width, maxWidth, containerWidth, lineLength, updateWidth, onResizeStop, onResizeStart, editorView, getPos, node, tableRef, displayGuideline, attachAnalyticsEvent, displayGapCursor, isTableScalingEnabled, allowFixedColumnWidthOption, isTableAlignmentEnabled, isWholeTableInDanger, shouldUseIncreasedScalingPercent, pluginInjectionApi, isFullWidthModeEnabled, isCommentEditor, isChromelessEditor, disabled, }: PropsWithChildren<TableResizerProps>) => React.JSX.Element;
|
|
36
|
-
export {};
|