@atlaskit/editor-plugin-table 12.2.7 → 12.3.1
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 +19 -0
- package/dist/cjs/pm-plugins/view-mode-sort/index.js +1 -3
- package/dist/es2019/pm-plugins/view-mode-sort/index.js +1 -3
- package/dist/esm/pm-plugins/view-mode-sort/index.js +1 -3
- package/dist/types/nodeviews/ExternalDropTargets.d.ts +1 -1
- package/dist/types/nodeviews/TableComponent.d.ts +21 -21
- package/dist/types/nodeviews/TableComponentWithSharedState.d.ts +9 -9
- package/dist/types/nodeviews/TableContainer.d.ts +20 -20
- package/dist/types/nodeviews/TableResizer.d.ts +16 -16
- package/dist/types/nodeviews/TableRow.d.ts +1 -1
- package/dist/types/nodeviews/table-node-views.d.ts +4 -4
- package/dist/types/nodeviews/table.d.ts +2 -2
- package/dist/types/nodeviews/toDOM.d.ts +4 -4
- package/dist/types/nodeviews/types.d.ts +12 -12
- package/dist/types/pm-plugins/analytics/actions.d.ts +2 -2
- package/dist/types/pm-plugins/analytics/types.d.ts +2 -2
- package/dist/types/pm-plugins/commands/column-resize.d.ts +6 -6
- package/dist/types/pm-plugins/commands/insert.d.ts +7 -7
- package/dist/types/pm-plugins/drag-and-drop/actions.d.ts +4 -4
- package/dist/types/pm-plugins/drag-and-drop/types.d.ts +3 -3
- package/dist/types/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +1 -1
- package/dist/types/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +1 -1
- package/dist/types/pm-plugins/sticky-headers/types.d.ts +2 -2
- package/dist/types/pm-plugins/table-resizing/commands.d.ts +3 -3
- package/dist/types/pm-plugins/table-resizing/utils/column-state.d.ts +1 -1
- package/dist/types/pm-plugins/table-resizing/utils/misc.d.ts +3 -3
- package/dist/types/pm-plugins/table-resizing/utils/resize-state.d.ts +6 -6
- package/dist/types/pm-plugins/table-resizing/utils/scale-table.d.ts +6 -6
- package/dist/types/pm-plugins/table-resizing/utils/types.d.ts +8 -8
- package/dist/types/pm-plugins/utils/analytics.d.ts +2 -2
- package/dist/types/pm-plugins/utils/collapse.d.ts +3 -3
- package/dist/types/pm-plugins/utils/column-controls.d.ts +1 -1
- package/dist/types/pm-plugins/utils/create.d.ts +8 -8
- package/dist/types/pm-plugins/utils/dom.d.ts +2 -2
- package/dist/types/pm-plugins/utils/drag-menu.d.ts +1 -1
- package/dist/types/pm-plugins/utils/row-controls.d.ts +2 -2
- package/dist/types/pm-plugins/utils/snapping.d.ts +1 -1
- package/dist/types/pm-plugins/view-mode-sort/index.d.ts +1 -1
- package/dist/types/pm-plugins/view-mode-sort/types.d.ts +2 -2
- package/dist/types/tablePluginType.d.ts +10 -10
- package/dist/types/types/index.d.ts +99 -99
- package/dist/types/ui/ColumnResizeWidget/index.d.ts +1 -1
- package/dist/types/ui/ContentComponent.d.ts +5 -5
- package/dist/types/ui/DragHandle/HandleIconComponent.d.ts +1 -1
- package/dist/types/ui/DragHandle/index.d.ts +11 -11
- package/dist/types/ui/DragPreview/index.d.ts +1 -1
- package/dist/types/ui/FloatingContextualButton/FixedButton.d.ts +2 -2
- package/dist/types/ui/FloatingContextualButton/index.d.ts +7 -7
- package/dist/types/ui/FloatingContextualMenu/ContextualMenu.d.ts +10 -10
- package/dist/types/ui/FloatingContextualMenu/index.d.ts +8 -8
- package/dist/types/ui/FloatingDeleteButton/DeleteButton.d.ts +2 -2
- package/dist/types/ui/FloatingDeleteButton/getPopUpOptions.d.ts +1 -1
- package/dist/types/ui/FloatingDeleteButton/index.d.ts +9 -9
- package/dist/types/ui/FloatingDragMenu/DragMenu.d.ts +15 -15
- package/dist/types/ui/FloatingDragMenu/DropdownMenu.d.ts +14 -14
- package/dist/types/ui/FloatingDragMenu/index.d.ts +14 -14
- package/dist/types/ui/FloatingInsertButton/InsertButton.d.ts +3 -3
- package/dist/types/ui/FloatingInsertButton/index.d.ts +11 -11
- package/dist/types/ui/FloatingToolbarLabel/FloatingToolbarLabel.d.ts +4 -4
- package/dist/types/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +10 -10
- package/dist/types/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.d.ts +2 -2
- package/dist/types/ui/TableFloatingColumnControls/ColumnDropTargets/index.d.ts +4 -4
- package/dist/types/ui/TableFloatingColumnControls/index.d.ts +10 -10
- package/dist/types/ui/TableFloatingControls/CornerControls/types.d.ts +3 -3
- package/dist/types/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +7 -7
- package/dist/types/ui/TableFloatingControls/NumberColumn/index.d.ts +7 -7
- package/dist/types/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +5 -5
- package/dist/types/ui/TableFloatingControls/RowControls/DragControls.d.ts +8 -8
- package/dist/types/ui/TableFloatingControls/index.d.ts +14 -14
- package/dist/types/ui/global-styles.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/ExternalDropTargets.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +21 -21
- package/dist/types-ts4.5/nodeviews/TableComponentWithSharedState.d.ts +9 -9
- package/dist/types-ts4.5/nodeviews/TableContainer.d.ts +20 -20
- package/dist/types-ts4.5/nodeviews/TableResizer.d.ts +16 -16
- package/dist/types-ts4.5/nodeviews/TableRow.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/table-node-views.d.ts +4 -4
- package/dist/types-ts4.5/nodeviews/table.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/toDOM.d.ts +4 -4
- package/dist/types-ts4.5/nodeviews/types.d.ts +12 -12
- package/dist/types-ts4.5/pm-plugins/analytics/actions.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/analytics/types.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/commands/column-resize.d.ts +6 -6
- package/dist/types-ts4.5/pm-plugins/commands/insert.d.ts +7 -7
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/actions.d.ts +4 -4
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/types.d.ts +3 -3
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/sticky-headers/types.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/table-resizing/commands.d.ts +3 -3
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/column-state.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/misc.d.ts +3 -3
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-state.d.ts +6 -6
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/scale-table.d.ts +6 -6
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/types.d.ts +8 -8
- package/dist/types-ts4.5/pm-plugins/utils/analytics.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/utils/collapse.d.ts +3 -3
- package/dist/types-ts4.5/pm-plugins/utils/column-controls.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/utils/create.d.ts +8 -8
- package/dist/types-ts4.5/pm-plugins/utils/dom.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/utils/drag-menu.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/utils/row-controls.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/utils/snapping.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/index.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/types.d.ts +2 -2
- package/dist/types-ts4.5/tablePluginType.d.ts +10 -10
- package/dist/types-ts4.5/types/index.d.ts +99 -99
- package/dist/types-ts4.5/ui/ColumnResizeWidget/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/ContentComponent.d.ts +5 -5
- package/dist/types-ts4.5/ui/DragHandle/HandleIconComponent.d.ts +1 -1
- package/dist/types-ts4.5/ui/DragHandle/index.d.ts +11 -11
- package/dist/types-ts4.5/ui/DragPreview/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/FloatingContextualButton/FixedButton.d.ts +2 -2
- package/dist/types-ts4.5/ui/FloatingContextualButton/index.d.ts +7 -7
- package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +10 -10
- package/dist/types-ts4.5/ui/FloatingContextualMenu/index.d.ts +8 -8
- package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +2 -2
- package/dist/types-ts4.5/ui/FloatingDeleteButton/getPopUpOptions.d.ts +1 -1
- package/dist/types-ts4.5/ui/FloatingDeleteButton/index.d.ts +9 -9
- package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +15 -15
- package/dist/types-ts4.5/ui/FloatingDragMenu/DropdownMenu.d.ts +14 -14
- package/dist/types-ts4.5/ui/FloatingDragMenu/index.d.ts +14 -14
- package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +3 -3
- package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +11 -11
- package/dist/types-ts4.5/ui/FloatingToolbarLabel/FloatingToolbarLabel.d.ts +4 -4
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +10 -10
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.d.ts +2 -2
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/index.d.ts +4 -4
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/index.d.ts +10 -10
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/types.d.ts +3 -3
- package/dist/types-ts4.5/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +7 -7
- package/dist/types-ts4.5/ui/TableFloatingControls/NumberColumn/index.d.ts +7 -7
- package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +5 -5
- package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/DragControls.d.ts +8 -8
- package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +14 -14
- package/dist/types-ts4.5/ui/global-styles.d.ts +1 -1
- package/package.json +2 -2
|
@@ -5,14 +5,14 @@ import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
5
5
|
import { type TablePlugin, type TablePluginOptions } from '../tablePluginType';
|
|
6
6
|
export type ContentComponentProps = {
|
|
7
7
|
api: ExtractInjectionAPI<TablePlugin> | undefined;
|
|
8
|
-
|
|
8
|
+
defaultGetEditorContainerWidth: GetEditorContainerWidth;
|
|
9
|
+
defaultGetEditorFeatureFlags: GetEditorFeatureFlags;
|
|
9
10
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent | undefined;
|
|
11
|
+
editorView: EditorView;
|
|
12
|
+
isTableSelectorEnabled: boolean | undefined;
|
|
10
13
|
options?: TablePluginOptions;
|
|
11
|
-
popupsMountPoint?: HTMLElement;
|
|
12
14
|
popupsBoundariesElement?: HTMLElement;
|
|
15
|
+
popupsMountPoint?: HTMLElement;
|
|
13
16
|
popupsScrollableElement?: HTMLElement;
|
|
14
|
-
isTableSelectorEnabled: boolean | undefined;
|
|
15
|
-
defaultGetEditorContainerWidth: GetEditorContainerWidth;
|
|
16
|
-
defaultGetEditorFeatureFlags: GetEditorFeatureFlags;
|
|
17
17
|
};
|
|
18
18
|
export declare const ContentComponent: ({ api, editorView, dispatchAnalyticsEvent, options, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, isTableSelectorEnabled, defaultGetEditorContainerWidth, defaultGetEditorFeatureFlags, }: ContentComponentProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type HandleIconProps = {
|
|
3
3
|
forceDefaultHandle: boolean;
|
|
4
|
-
isHandleHovered: boolean;
|
|
5
4
|
hasMergedCells: boolean;
|
|
5
|
+
isHandleHovered: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare const HandleIconComponent: (props: HandleIconProps) => React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -8,22 +8,22 @@ import type { TablePlugin } from '../../tablePluginType';
|
|
|
8
8
|
import type { CellHoverMeta, TableDirection } from '../../types';
|
|
9
9
|
export type DragHandleAppearance = 'default' | 'selected' | 'disabled' | 'danger' | 'placeholder';
|
|
10
10
|
type DragHandleProps = {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
appearance?: DragHandleAppearance;
|
|
12
|
+
direction?: TableDirection;
|
|
13
|
+
editorView: EditorView;
|
|
13
14
|
forceDefaultHandle?: boolean;
|
|
14
|
-
previewWidth?: number;
|
|
15
|
-
previewHeight?: number;
|
|
16
15
|
hoveredCell?: CellHoverMeta;
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
hoveredColumns?: number[];
|
|
17
|
+
hoveredRows?: number[];
|
|
18
|
+
indexes: number[];
|
|
19
|
+
isDragMenuTarget: boolean;
|
|
19
20
|
onClick?: MouseEventHandler;
|
|
20
|
-
onMouseOver?: MouseEventHandler;
|
|
21
21
|
onMouseOut?: MouseEventHandler;
|
|
22
|
+
onMouseOver?: MouseEventHandler;
|
|
23
|
+
previewHeight?: number;
|
|
24
|
+
previewWidth?: number;
|
|
25
|
+
tableLocalId: string;
|
|
22
26
|
toggleDragMenu?: (trigger: TriggerType, event?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
23
|
-
editorView: EditorView;
|
|
24
|
-
isDragMenuTarget: boolean;
|
|
25
|
-
hoveredColumns?: number[];
|
|
26
|
-
hoveredRows?: number[];
|
|
27
27
|
};
|
|
28
28
|
export declare const DragHandle: React.FC<import("react-intl-next").WithIntlProps<DragHandleProps & WrappedComponentProps>> & {
|
|
29
29
|
WrappedComponent: React.ComponentType<DragHandleProps & WrappedComponentProps>;
|
|
@@ -2,13 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import type { RowStickyState } from '../../pm-plugins/sticky-headers/types';
|
|
3
3
|
interface Props {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
+
isContextualMenuOpen: boolean | undefined;
|
|
5
6
|
mountTo: HTMLElement;
|
|
6
7
|
offset: number;
|
|
7
8
|
stickyHeader: RowStickyState;
|
|
9
|
+
tableWrapper: HTMLElement;
|
|
8
10
|
targetCellPosition: number;
|
|
9
11
|
targetCellRef: HTMLElement;
|
|
10
|
-
tableWrapper: HTMLElement;
|
|
11
|
-
isContextualMenuOpen: boolean | undefined;
|
|
12
12
|
}
|
|
13
13
|
interface CalcLeftPosData {
|
|
14
14
|
buttonWidth: number;
|
|
@@ -4,17 +4,17 @@ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { RowStickyState } from '../../pm-plugins/sticky-headers/types';
|
|
6
6
|
export interface Props {
|
|
7
|
+
boundariesElement?: HTMLElement;
|
|
8
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
7
9
|
editorView: EditorView;
|
|
8
|
-
|
|
9
|
-
tableNode?: PMNode;
|
|
10
|
-
targetCellPosition: number;
|
|
10
|
+
isCellMenuOpenByKeyboard?: boolean;
|
|
11
11
|
isContextualMenuOpen?: boolean;
|
|
12
|
+
isNumberColumnEnabled?: boolean;
|
|
12
13
|
mountPoint?: HTMLElement;
|
|
13
|
-
boundariesElement?: HTMLElement;
|
|
14
14
|
scrollableElement?: HTMLElement;
|
|
15
|
-
isNumberColumnEnabled?: boolean;
|
|
16
15
|
stickyHeader?: RowStickyState;
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
tableNode?: PMNode;
|
|
17
|
+
tableWrapper?: HTMLElement;
|
|
18
|
+
targetCellPosition: number;
|
|
19
19
|
}
|
|
20
20
|
export default function (props: Props): jsx.JSX.Element;
|
|
@@ -11,26 +11,26 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
11
11
|
import type { Rect } from '@atlaskit/editor-tables/table-map';
|
|
12
12
|
import type { PluginInjectionAPI } from '../../types';
|
|
13
13
|
interface Props {
|
|
14
|
-
editorView: EditorView;
|
|
15
|
-
isOpen: boolean;
|
|
16
|
-
selectionRect: Rect;
|
|
17
|
-
targetCellPosition?: number;
|
|
18
|
-
mountPoint?: HTMLElement;
|
|
19
|
-
allowMergeCells?: boolean;
|
|
20
|
-
allowColumnSorting?: boolean;
|
|
21
14
|
allowBackgroundColor?: boolean;
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
allowColumnSorting?: boolean;
|
|
16
|
+
allowMergeCells?: boolean;
|
|
24
17
|
api: PluginInjectionAPI | undefined | null;
|
|
18
|
+
boundariesElement?: HTMLElement;
|
|
25
19
|
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
20
|
+
editorView: EditorView;
|
|
26
21
|
getEditorContainerWidth: GetEditorContainerWidth;
|
|
27
22
|
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
28
23
|
isCellMenuOpenByKeyboard?: boolean;
|
|
29
24
|
isCommentEditor?: boolean;
|
|
25
|
+
isOpen: boolean;
|
|
26
|
+
mountPoint?: HTMLElement;
|
|
27
|
+
offset?: Array<number>;
|
|
28
|
+
selectionRect: Rect;
|
|
29
|
+
targetCellPosition?: number;
|
|
30
30
|
}
|
|
31
31
|
interface State {
|
|
32
|
-
isSubmenuOpen: boolean;
|
|
33
32
|
isOpenAllowed: boolean;
|
|
33
|
+
isSubmenuOpen: boolean;
|
|
34
34
|
}
|
|
35
35
|
export declare class ContextualMenu extends Component<Props & WrappedComponentProps, State> {
|
|
36
36
|
state: State;
|
|
@@ -8,19 +8,19 @@ import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/e
|
|
|
8
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { PluginConfig, PluginInjectionAPI } from '../../types';
|
|
10
10
|
interface Props {
|
|
11
|
-
editorView: EditorView;
|
|
12
|
-
isOpen: boolean;
|
|
13
|
-
getEditorContainerWidth: GetEditorContainerWidth;
|
|
14
11
|
api: PluginInjectionAPI | undefined | null;
|
|
15
|
-
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
16
|
-
targetCellPosition?: number;
|
|
17
|
-
mountPoint?: HTMLElement;
|
|
18
12
|
boundariesElement?: HTMLElement;
|
|
19
|
-
scrollableElement?: HTMLElement;
|
|
20
|
-
pluginConfig?: PluginConfig;
|
|
21
13
|
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
14
|
+
editorView: EditorView;
|
|
15
|
+
getEditorContainerWidth: GetEditorContainerWidth;
|
|
16
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
22
17
|
isCellMenuOpenByKeyboard?: boolean;
|
|
23
18
|
isCommentEditor?: boolean;
|
|
19
|
+
isOpen: boolean;
|
|
20
|
+
mountPoint?: HTMLElement;
|
|
21
|
+
pluginConfig?: PluginConfig;
|
|
22
|
+
scrollableElement?: HTMLElement;
|
|
23
|
+
targetCellPosition?: number;
|
|
24
24
|
}
|
|
25
25
|
declare const FloatingContextualMenu: {
|
|
26
26
|
({ mountPoint, boundariesElement, scrollableElement, editorView, isOpen, pluginConfig, editorAnalyticsAPI, getEditorContainerWidth, getEditorFeatureFlags, isCellMenuOpenByKeyboard, isCommentEditor, api, }: Props): jsx.JSX.Element | null;
|
|
@@ -2,11 +2,11 @@ import type { SyntheticEvent } from 'react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { MessageDescriptor, WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
interface ButtonProps {
|
|
5
|
-
removeLabel: MessageDescriptor;
|
|
6
|
-
style?: object;
|
|
7
5
|
onClick?: (event: SyntheticEvent) => void;
|
|
8
6
|
onMouseEnter?: (event: SyntheticEvent) => void;
|
|
9
7
|
onMouseLeave?: (event: SyntheticEvent) => void;
|
|
8
|
+
removeLabel: MessageDescriptor;
|
|
9
|
+
style?: object;
|
|
10
10
|
}
|
|
11
11
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
|
|
@@ -2,9 +2,9 @@ import type { PopupProps } from '@atlaskit/editor-common/ui';
|
|
|
2
2
|
import type { CellSelectionType } from './types';
|
|
3
3
|
interface GetPopupOptions {
|
|
4
4
|
left: number;
|
|
5
|
-
top: number;
|
|
6
5
|
selectionType?: CellSelectionType;
|
|
7
6
|
tableWrapper: HTMLElement | null;
|
|
7
|
+
top: number;
|
|
8
8
|
}
|
|
9
9
|
export default function getPopupOptions({ left, top, selectionType, tableWrapper, }: GetPopupOptions): Partial<PopupProps>;
|
|
10
10
|
export {};
|
|
@@ -6,24 +6,24 @@ import type { RowStickyState } from '../../pm-plugins/sticky-headers/types';
|
|
|
6
6
|
import type { PluginInjectionAPI } from '../../types';
|
|
7
7
|
import type { CellSelectionType } from './types';
|
|
8
8
|
export interface Props {
|
|
9
|
-
editorView: EditorView;
|
|
10
|
-
selection: Selection;
|
|
11
9
|
api: PluginInjectionAPI | undefined | null;
|
|
12
|
-
tableRef?: HTMLTableElement;
|
|
13
|
-
mountPoint?: HTMLElement;
|
|
14
10
|
boundariesElement?: HTMLElement;
|
|
11
|
+
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
12
|
+
editorView: EditorView;
|
|
13
|
+
isNumberColumnEnabled?: boolean;
|
|
14
|
+
mountPoint?: HTMLElement;
|
|
15
15
|
scrollableElement?: HTMLElement;
|
|
16
|
+
selection: Selection;
|
|
16
17
|
stickyHeaders?: RowStickyState;
|
|
17
|
-
|
|
18
|
-
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
18
|
+
tableRef?: HTMLTableElement;
|
|
19
19
|
}
|
|
20
20
|
interface State {
|
|
21
|
-
selectionType?: CellSelectionType;
|
|
22
|
-
left: number;
|
|
23
|
-
top: number;
|
|
24
21
|
indexes: number[];
|
|
22
|
+
left: number;
|
|
25
23
|
position?: string;
|
|
26
24
|
scrollLeft: number;
|
|
25
|
+
selectionType?: CellSelectionType;
|
|
26
|
+
top: number;
|
|
27
27
|
}
|
|
28
28
|
declare class FloatingDeleteButton extends Component<Props, State> {
|
|
29
29
|
static displayName: string;
|
|
@@ -12,27 +12,27 @@ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
12
12
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
13
13
|
import type { PluginConfig, PluginInjectionAPI, TableDirection } from '../../types';
|
|
14
14
|
type DragMenuProps = {
|
|
15
|
-
direction?: TableDirection;
|
|
16
|
-
index?: number;
|
|
17
|
-
target?: Element;
|
|
18
|
-
tableNode?: PmNode;
|
|
19
|
-
editorView: EditorView;
|
|
20
|
-
isOpen?: boolean;
|
|
21
|
-
targetCellPosition?: number;
|
|
22
|
-
pluginConfig?: PluginConfig;
|
|
23
|
-
getEditorContainerWidth: GetEditorContainerWidth;
|
|
24
15
|
api: PluginInjectionAPI | undefined | null;
|
|
16
|
+
ariaNotifyPlugin?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
|
|
17
|
+
boundariesElement?: HTMLElement;
|
|
18
|
+
direction?: TableDirection;
|
|
25
19
|
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
26
|
-
|
|
20
|
+
editorView: EditorView;
|
|
27
21
|
fitHeight?: number;
|
|
22
|
+
fitWidth?: number;
|
|
23
|
+
getEditorContainerWidth: GetEditorContainerWidth;
|
|
24
|
+
index?: number;
|
|
25
|
+
isCommentEditor?: boolean;
|
|
26
|
+
isOpen?: boolean;
|
|
27
|
+
isTableFixedColumnWidthsOptionEnabled?: boolean;
|
|
28
|
+
isTableScalingEnabled?: boolean;
|
|
28
29
|
mountPoint?: HTMLElement;
|
|
29
|
-
|
|
30
|
+
pluginConfig?: PluginConfig;
|
|
30
31
|
scrollableElement?: HTMLElement;
|
|
31
|
-
isTableScalingEnabled?: boolean;
|
|
32
32
|
shouldUseIncreasedScalingPercent?: boolean;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
tableNode?: PmNode;
|
|
34
|
+
target?: Element;
|
|
35
|
+
targetCellPosition?: number;
|
|
36
36
|
};
|
|
37
37
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<DragMenuProps & WrappedComponentProps>> & {
|
|
38
38
|
WrappedComponent: React.ComponentType<DragMenuProps & WrappedComponentProps>;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
3
3
|
type DropdownMenuProps = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}>;
|
|
4
|
+
boundariesElement?: HTMLElement;
|
|
5
|
+
direction?: string;
|
|
7
6
|
/**
|
|
8
7
|
* use to toggle top level menu keyboard navigation and action keys
|
|
9
8
|
* e.g. should be false if submenu is rendered as a child to avoid multiple keydown handlers
|
|
10
9
|
*/
|
|
11
10
|
disableKeyboardHandling: boolean;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
fitHeight?: number;
|
|
12
|
+
fitWidth?: number;
|
|
13
|
+
handleClose: (focusTarget: 'editor' | 'handle') => void;
|
|
14
|
+
items: Array<{
|
|
15
|
+
items: MenuItem[];
|
|
16
|
+
}>;
|
|
17
|
+
mountPoint?: HTMLElement;
|
|
18
|
+
offset?: Array<number>;
|
|
16
19
|
onItemActivated?: (attrs: {
|
|
17
20
|
item: MenuItem;
|
|
18
21
|
shouldCloseMenu?: boolean;
|
|
19
22
|
}) => void;
|
|
20
|
-
handleClose: (focusTarget: 'editor' | 'handle') => void;
|
|
21
23
|
onMouseEnter: (attrs: {
|
|
22
24
|
item: MenuItem;
|
|
23
25
|
}) => void;
|
|
24
26
|
onMouseLeave: (attrs: {
|
|
25
27
|
item: MenuItem;
|
|
26
28
|
}) => void;
|
|
27
|
-
fitWidth?: number;
|
|
28
|
-
fitHeight?: number;
|
|
29
|
-
direction?: string;
|
|
30
|
-
offset?: Array<number>;
|
|
31
|
-
mountPoint?: HTMLElement;
|
|
32
|
-
boundariesElement?: HTMLElement;
|
|
33
29
|
scrollableElement?: HTMLElement;
|
|
30
|
+
section: {
|
|
31
|
+
hasSeparator?: boolean;
|
|
32
|
+
title?: string;
|
|
33
|
+
};
|
|
34
34
|
};
|
|
35
35
|
export declare const DropdownMenu: ({ items, section, disableKeyboardHandling, onItemActivated, handleClose, onMouseEnter, onMouseLeave, fitWidth, fitHeight, direction, mountPoint, boundariesElement, scrollableElement, }: DropdownMenuProps) => React.JSX.Element;
|
|
36
36
|
export {};
|
|
@@ -7,25 +7,25 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
7
7
|
import type { RowStickyState } from '../../pm-plugins/sticky-headers/types';
|
|
8
8
|
import type { PluginConfig, PluginInjectionAPI, TableDirection } from '../../types';
|
|
9
9
|
interface Props {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
tableRef?: HTMLTableElement;
|
|
13
|
-
tableNode?: PmNode;
|
|
14
|
-
mountPoint?: HTMLElement;
|
|
10
|
+
api: PluginInjectionAPI | undefined | null;
|
|
11
|
+
ariaNotifyPlugin?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
|
|
15
12
|
boundariesElement?: HTMLElement;
|
|
16
|
-
scrollableElement?: HTMLElement;
|
|
17
13
|
direction?: TableDirection;
|
|
18
|
-
index?: number;
|
|
19
|
-
targetCellPosition?: number;
|
|
20
|
-
getEditorContainerWidth: GetEditorContainerWidth;
|
|
21
|
-
api: PluginInjectionAPI | undefined | null;
|
|
22
14
|
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
isTableScalingEnabled?: boolean;
|
|
15
|
+
editorView: EditorView;
|
|
16
|
+
getEditorContainerWidth: GetEditorContainerWidth;
|
|
26
17
|
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
27
|
-
|
|
18
|
+
index?: number;
|
|
28
19
|
isCommentEditor?: boolean;
|
|
20
|
+
isOpen: boolean;
|
|
21
|
+
isTableScalingEnabled?: boolean;
|
|
22
|
+
mountPoint?: HTMLElement;
|
|
23
|
+
pluginConfig?: PluginConfig;
|
|
24
|
+
scrollableElement?: HTMLElement;
|
|
25
|
+
stickyHeaders?: RowStickyState;
|
|
26
|
+
tableNode?: PmNode;
|
|
27
|
+
tableRef?: HTMLTableElement;
|
|
28
|
+
targetCellPosition?: number;
|
|
29
29
|
}
|
|
30
30
|
declare const FloatingDragMenu: {
|
|
31
31
|
({ mountPoint, boundariesElement, scrollableElement, editorView, isOpen, tableNode, direction, index, targetCellPosition, getEditorContainerWidth, editorAnalyticsAPI, stickyHeaders, pluginConfig, isTableScalingEnabled, getEditorFeatureFlags, ariaNotifyPlugin, api, isCommentEditor, }: Props): React.JSX.Element | null;
|
|
@@ -3,11 +3,11 @@ import React from 'react';
|
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import type { TableDirection } from '../../types';
|
|
5
5
|
interface ButtonProps {
|
|
6
|
-
type: TableDirection;
|
|
7
|
-
tableRef: HTMLElement;
|
|
8
|
-
onMouseDown: (event: SyntheticEvent<HTMLButtonElement>) => void;
|
|
9
6
|
hasStickyHeaders: boolean;
|
|
10
7
|
isChromelessEditor?: boolean;
|
|
8
|
+
onMouseDown: (event: SyntheticEvent<HTMLButtonElement>) => void;
|
|
9
|
+
tableRef: HTMLElement;
|
|
10
|
+
type: TableDirection;
|
|
11
11
|
}
|
|
12
12
|
export declare const DragAndDropInsertButton: React.FC<import("react-intl-next").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
|
|
@@ -6,26 +6,26 @@ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
import type { PluginInjectionAPI } from '../../types';
|
|
8
8
|
export interface Props {
|
|
9
|
+
api: PluginInjectionAPI | undefined | null;
|
|
10
|
+
boundariesElement?: HTMLElement;
|
|
11
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
12
|
+
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
9
13
|
editorView: EditorView;
|
|
10
14
|
getEditorContainerWidth: GetEditorContainerWidth;
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
16
|
+
hasStickyHeaders?: boolean;
|
|
13
17
|
insertColumnButtonIndex?: number;
|
|
14
18
|
insertRowButtonIndex?: number;
|
|
19
|
+
isChromelessEditor?: boolean;
|
|
20
|
+
isCommentEditor?: boolean;
|
|
21
|
+
isDragAndDropEnabled?: boolean;
|
|
15
22
|
isHeaderColumnEnabled?: boolean;
|
|
16
23
|
isHeaderRowEnabled?: boolean;
|
|
17
|
-
isDragAndDropEnabled?: boolean;
|
|
18
24
|
isTableScalingEnabled?: boolean;
|
|
19
25
|
mountPoint?: HTMLElement;
|
|
20
|
-
boundariesElement?: HTMLElement;
|
|
21
26
|
scrollableElement?: HTMLElement;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
25
|
-
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
26
|
-
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
27
|
-
isChromelessEditor?: boolean;
|
|
28
|
-
isCommentEditor?: boolean;
|
|
27
|
+
tableNode?: PmNode;
|
|
28
|
+
tableRef?: HTMLElement;
|
|
29
29
|
}
|
|
30
30
|
export declare class FloatingInsertButton extends React.Component<Props & WrappedComponentProps, any> {
|
|
31
31
|
static displayName: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface Props {
|
|
3
|
-
target: HTMLElement;
|
|
4
|
-
content: React.ReactNode;
|
|
5
3
|
alignX?: 'left' | 'center' | 'right';
|
|
6
4
|
alignY?: 'top' | 'bottom' | 'start';
|
|
7
|
-
|
|
5
|
+
content: React.ReactNode;
|
|
8
6
|
forcePlacement?: boolean;
|
|
9
|
-
stick?: boolean;
|
|
10
7
|
offset?: [number, number];
|
|
8
|
+
stick?: boolean;
|
|
9
|
+
target: HTMLElement;
|
|
10
|
+
zIndex?: number;
|
|
11
11
|
}
|
|
12
12
|
export declare const FloatingToolbarLabel: React.MemoExoticComponent<(props: Props) => React.JSX.Element>;
|
|
13
13
|
export {};
|
|
@@ -4,21 +4,21 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
4
4
|
import type { TablePlugin } from '../../../tablePluginType';
|
|
5
5
|
import type { CellHoverMeta } from '../../../types';
|
|
6
6
|
interface ColumnControlsProps {
|
|
7
|
+
colWidths?: (number | undefined)[];
|
|
7
8
|
editorView: EditorView;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
tableRef: HTMLTableElement;
|
|
9
|
+
getScrollOffset?: () => number;
|
|
10
|
+
hasHeaderColumn?: boolean;
|
|
11
11
|
hoveredCell?: CellHoverMeta;
|
|
12
|
-
|
|
12
|
+
isDragging?: boolean;
|
|
13
|
+
isInDanger?: boolean;
|
|
14
|
+
isNumberColumnEnabled?: boolean;
|
|
15
|
+
isTableHovered?: boolean;
|
|
13
16
|
localId?: string;
|
|
14
17
|
rowHeights?: number[];
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
isTableHovered?: boolean;
|
|
18
|
+
stickyTop?: number;
|
|
19
|
+
tableActive?: boolean;
|
|
18
20
|
tableContainerWidth?: number;
|
|
19
|
-
|
|
20
|
-
isDragging?: boolean;
|
|
21
|
-
getScrollOffset?: () => number;
|
|
21
|
+
tableRef: HTMLTableElement;
|
|
22
22
|
}
|
|
23
23
|
export declare const ColumnControls: ({ editorView, tableActive, tableRef, hoveredCell, stickyTop, localId, isInDanger, rowHeights, colWidths, isTableHovered, tableContainerWidth, isNumberColumnEnabled, isDragging, getScrollOffset, api, }: ColumnControlsProps & {
|
|
24
24
|
api?: ExtractInjectionAPI<TablePlugin>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface Props {
|
|
3
|
+
height?: number;
|
|
3
4
|
index: number;
|
|
4
5
|
localId?: string;
|
|
5
|
-
width?: number;
|
|
6
|
-
height?: number;
|
|
7
6
|
marginTop?: number;
|
|
7
|
+
width?: number;
|
|
8
8
|
}
|
|
9
9
|
export declare const ColumnDropTarget: ({ index, localId, width, height, marginTop }: Props) => React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface Props {
|
|
3
|
-
tableRef: HTMLTableElement;
|
|
4
|
-
tableHeight?: number;
|
|
5
|
-
localId?: string;
|
|
6
3
|
colWidths?: (number | undefined)[];
|
|
7
|
-
isHeaderSticky?: boolean;
|
|
8
4
|
getScrollOffset?: () => number;
|
|
5
|
+
isHeaderSticky?: boolean;
|
|
6
|
+
localId?: string;
|
|
7
|
+
tableHeight?: number;
|
|
8
|
+
tableRef: HTMLTableElement;
|
|
9
9
|
}
|
|
10
10
|
export declare const ColumnDropTargets: ({ tableRef, tableHeight, localId, colWidths, isHeaderSticky, getScrollOffset, }: Props) => React.JSX.Element | null;
|
|
11
11
|
export {};
|
|
@@ -7,27 +7,27 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
7
7
|
import type { RowStickyState } from '../../pm-plugins/sticky-headers/types';
|
|
8
8
|
import type { CellHoverMeta, PluginInjectionAPI } from '../../types';
|
|
9
9
|
interface Props {
|
|
10
|
+
api?: PluginInjectionAPI;
|
|
10
11
|
editorView: EditorView;
|
|
11
12
|
getEditorFeatureFlags: GetEditorFeatureFlags;
|
|
12
|
-
selection?: Selection;
|
|
13
|
-
tableRef?: HTMLTableElement;
|
|
14
13
|
getNode: () => PmNode;
|
|
15
|
-
|
|
16
|
-
isInDanger?: boolean;
|
|
14
|
+
getScrollOffset?: () => number;
|
|
17
15
|
hasHeaderRow?: boolean;
|
|
18
16
|
headerRowHeight?: number;
|
|
19
|
-
hoveredRows?: number[];
|
|
20
17
|
hoveredCell?: CellHoverMeta;
|
|
18
|
+
hoveredRows?: number[];
|
|
19
|
+
isChromelessEditor?: boolean;
|
|
20
|
+
isInDanger?: boolean;
|
|
21
|
+
isNumberColumnEnabled?: boolean;
|
|
21
22
|
isResizing?: boolean;
|
|
23
|
+
isTableHovered?: boolean;
|
|
22
24
|
ordering?: TableColumnOrdering;
|
|
25
|
+
selection?: Selection;
|
|
23
26
|
stickyHeader?: RowStickyState;
|
|
24
|
-
|
|
27
|
+
tableActive?: boolean;
|
|
25
28
|
tableContainerWidth?: number;
|
|
26
|
-
|
|
27
|
-
getScrollOffset?: () => number;
|
|
29
|
+
tableRef?: HTMLTableElement;
|
|
28
30
|
tableWrapperHeight?: number;
|
|
29
|
-
api?: PluginInjectionAPI;
|
|
30
|
-
isChromelessEditor?: boolean;
|
|
31
31
|
}
|
|
32
32
|
declare const TableFloatingColumnControls: ({ editorView, tableRef, getNode, tableActive, hasHeaderRow, hoveredCell, isResizing, stickyHeader, selection, isInDanger, isTableHovered, tableContainerWidth, isNumberColumnEnabled, getScrollOffset, tableWrapperHeight, api, isChromelessEditor, }: Props) => React.JSX.Element | null;
|
|
33
33
|
export default TableFloatingColumnControls;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
export type CornerControlProps = {
|
|
3
3
|
editorView: EditorView;
|
|
4
|
-
tableRef?: HTMLTableElement;
|
|
5
|
-
isInDanger?: boolean;
|
|
6
|
-
isResizing?: boolean;
|
|
7
4
|
hoveredRows?: number[];
|
|
8
5
|
isHeaderColumnEnabled?: boolean;
|
|
9
6
|
isHeaderRowEnabled?: boolean;
|
|
7
|
+
isInDanger?: boolean;
|
|
8
|
+
isResizing?: boolean;
|
|
10
9
|
stickyTop?: number;
|
|
10
|
+
tableRef?: HTMLTableElement;
|
|
11
11
|
};
|
|
@@ -3,18 +3,18 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { TablePlugin } from '../../tablePluginType';
|
|
5
5
|
type FloatingControlsWithSelectionProps = {
|
|
6
|
+
api?: ExtractInjectionAPI<TablePlugin>;
|
|
6
7
|
editorView: EditorView;
|
|
7
|
-
tableRef: HTMLTableElement;
|
|
8
|
-
isInDanger?: boolean;
|
|
9
|
-
isResizing?: boolean;
|
|
10
|
-
isHeaderRowEnabled?: boolean;
|
|
11
|
-
isHeaderColumnEnabled?: boolean;
|
|
12
8
|
hoveredRows?: number[];
|
|
13
|
-
stickyTop?: number;
|
|
14
9
|
hoverRows: (rows: number[]) => void;
|
|
10
|
+
isHeaderColumnEnabled?: boolean;
|
|
11
|
+
isHeaderRowEnabled?: boolean;
|
|
12
|
+
isInDanger?: boolean;
|
|
13
|
+
isResizing?: boolean;
|
|
15
14
|
selectRow: (row: number, expand: boolean) => void;
|
|
15
|
+
stickyTop?: number;
|
|
16
16
|
tableActive: boolean;
|
|
17
|
-
|
|
17
|
+
tableRef: HTMLTableElement;
|
|
18
18
|
};
|
|
19
19
|
export declare const FloatingControlsWithSelection: ({ editorView, tableRef, isInDanger, isResizing, isHeaderRowEnabled, isHeaderColumnEnabled, hoveredRows, stickyTop, hoverRows, selectRow, tableActive, api, }: FloatingControlsWithSelectionProps) => React.JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -2,17 +2,17 @@ import React, { Component } from 'react';
|
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
interface Props {
|
|
4
4
|
editorView: EditorView;
|
|
5
|
-
tableRef: HTMLTableElement;
|
|
6
|
-
tableActive?: boolean;
|
|
7
|
-
hoverRows: (rows: number[], danger?: boolean) => void;
|
|
8
|
-
hoveredRows?: number[];
|
|
9
|
-
selectRow: (row: number, expand: boolean) => void;
|
|
10
|
-
updateCellHoverLocation: (rowIndex: number) => void;
|
|
11
5
|
hasHeaderRow?: boolean;
|
|
6
|
+
hoveredRows?: number[];
|
|
7
|
+
hoverRows: (rows: number[], danger?: boolean) => void;
|
|
8
|
+
isDragAndDropEnabled?: boolean;
|
|
12
9
|
isInDanger?: boolean;
|
|
13
10
|
isResizing?: boolean;
|
|
11
|
+
selectRow: (row: number, expand: boolean) => void;
|
|
14
12
|
stickyTop?: number;
|
|
15
|
-
|
|
13
|
+
tableActive?: boolean;
|
|
14
|
+
tableRef: HTMLTableElement;
|
|
15
|
+
updateCellHoverLocation: (rowIndex: number) => void;
|
|
16
16
|
}
|
|
17
17
|
export default class NumberColumn extends Component<Props, any> {
|
|
18
18
|
render(): React.JSX.Element;
|
|
@@ -4,15 +4,15 @@ import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
export interface Props {
|
|
6
6
|
editorView: EditorView;
|
|
7
|
-
tableRef: HTMLTableElement;
|
|
8
|
-
selectRow: (row: number, expand: boolean) => void;
|
|
9
|
-
hoverRows: (rows: number[], danger?: boolean) => void;
|
|
10
7
|
hoveredRows?: number[];
|
|
8
|
+
hoverRows: (rows: number[], danger?: boolean) => void;
|
|
9
|
+
insertRowButtonIndex?: number;
|
|
11
10
|
isInDanger?: boolean;
|
|
12
11
|
isResizing?: boolean;
|
|
13
|
-
insertRowButtonIndex?: number;
|
|
14
|
-
stickyTop?: number;
|
|
15
12
|
selection?: Selection;
|
|
13
|
+
selectRow: (row: number, expand: boolean) => void;
|
|
14
|
+
stickyTop?: number;
|
|
15
|
+
tableRef: HTMLTableElement;
|
|
16
16
|
}
|
|
17
17
|
export declare const RowControls: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
18
18
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|