@atlaskit/editor-plugin-table 12.3.0 → 12.3.2
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 +16 -0
- package/dist/cjs/nodeviews/TableContainer.js +9 -7
- package/dist/cjs/nodeviews/table.js +5 -0
- package/dist/cjs/nodeviews/toDOM.js +5 -2
- package/dist/es2019/nodeviews/TableContainer.js +9 -7
- package/dist/es2019/nodeviews/table.js +5 -0
- package/dist/es2019/nodeviews/toDOM.js +5 -1
- package/dist/esm/nodeviews/TableContainer.js +9 -7
- package/dist/esm/nodeviews/table.js +5 -0
- package/dist/esm/nodeviews/toDOM.js +5 -2
- 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 +5 -5
|
@@ -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>;
|
|
@@ -6,21 +6,21 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
6
6
|
import type { TablePlugin } from '../../../tablePluginType';
|
|
7
7
|
import type { CellHoverMeta } from '../../../types';
|
|
8
8
|
type DragControlsProps = {
|
|
9
|
+
api?: ExtractInjectionAPI<TablePlugin>;
|
|
9
10
|
editorView: EditorView;
|
|
10
|
-
tableRef: HTMLTableElement;
|
|
11
|
-
tableNode?: PmNode;
|
|
12
|
-
tableWidth: number;
|
|
13
|
-
tableActive?: boolean;
|
|
14
11
|
hoveredCell?: CellHoverMeta;
|
|
12
|
+
hoverRows: (rows: number[], danger?: boolean) => void;
|
|
15
13
|
isInDanger?: boolean;
|
|
16
|
-
isTableHovered?: boolean;
|
|
17
14
|
isResizing?: boolean;
|
|
18
|
-
|
|
15
|
+
isTableHovered?: boolean;
|
|
16
|
+
selection?: Selection;
|
|
19
17
|
selectRow: (row: number, expand: boolean) => void;
|
|
20
18
|
selectRows: (rowIndexes: number[]) => void;
|
|
19
|
+
tableActive?: boolean;
|
|
20
|
+
tableNode?: PmNode;
|
|
21
|
+
tableRef: HTMLTableElement;
|
|
22
|
+
tableWidth: number;
|
|
21
23
|
updateCellHoverLocation: (rowIndex: number) => void;
|
|
22
|
-
api?: ExtractInjectionAPI<TablePlugin>;
|
|
23
|
-
selection?: Selection;
|
|
24
24
|
};
|
|
25
25
|
export declare const DragControls: ({ tableRef, tableNode, tableWidth, hoveredCell, tableActive, editorView, isInDanger, isResizing, isTableHovered, hoverRows, selectRow, selectRows, updateCellHoverLocation, api, selection, }: DragControlsProps) => React.JSX.Element | null;
|
|
26
26
|
export declare const DragControlsWithSelection: ({ editorView, tableRef, tableNode, tableWidth, tableActive, hoveredCell, isInDanger, isTableHovered, isResizing, hoverRows, selectRow, selectRows, updateCellHoverLocation, api, }: Exclude<DragControlsProps, "selection">) => React.JSX.Element;
|
|
@@ -9,26 +9,26 @@ import type { TablePlugin } from '../../tablePluginType';
|
|
|
9
9
|
import type { CellHoverMeta } from '../../types';
|
|
10
10
|
interface TableFloatingControlsProps {
|
|
11
11
|
editorView: EditorView;
|
|
12
|
-
selection?: Selection;
|
|
13
|
-
tableRef?: HTMLTableElement;
|
|
14
|
-
tableNode?: PmNode;
|
|
15
|
-
tableActive?: boolean;
|
|
16
|
-
isInDanger?: boolean;
|
|
17
|
-
isTableHovered?: boolean;
|
|
18
|
-
isResizing?: boolean;
|
|
19
|
-
isHeaderRowEnabled?: boolean;
|
|
20
|
-
isHeaderColumnEnabled?: boolean;
|
|
21
|
-
isNumberColumnEnabled?: boolean;
|
|
22
|
-
isDragAndDropEnabled?: boolean;
|
|
23
12
|
hasHeaderRow?: boolean;
|
|
24
13
|
headerRowHeight?: number;
|
|
25
|
-
hoveredRows?: number[];
|
|
26
14
|
hoveredCell?: CellHoverMeta;
|
|
15
|
+
hoveredRows?: number[];
|
|
16
|
+
insertRowButtonIndex?: number;
|
|
17
|
+
isChromelessEditor?: boolean;
|
|
18
|
+
isDragAndDropEnabled?: boolean;
|
|
19
|
+
isHeaderColumnEnabled?: boolean;
|
|
20
|
+
isHeaderRowEnabled?: boolean;
|
|
21
|
+
isInDanger?: boolean;
|
|
22
|
+
isNumberColumnEnabled?: boolean;
|
|
23
|
+
isResizing?: boolean;
|
|
24
|
+
isTableHovered?: boolean;
|
|
27
25
|
ordering?: TableColumnOrdering;
|
|
26
|
+
selection?: Selection;
|
|
28
27
|
stickyHeader?: RowStickyState;
|
|
29
|
-
|
|
28
|
+
tableActive?: boolean;
|
|
29
|
+
tableNode?: PmNode;
|
|
30
|
+
tableRef?: HTMLTableElement;
|
|
30
31
|
tableWrapperWidth?: number;
|
|
31
|
-
isChromelessEditor?: boolean;
|
|
32
32
|
}
|
|
33
33
|
export declare const TableFloatingControls: ({ editorView, tableRef, tableNode, isInDanger, isResizing, isNumberColumnEnabled, isHeaderRowEnabled, isHeaderColumnEnabled, tableActive, hasHeaderRow, hoveredRows, stickyHeader, isDragAndDropEnabled, hoveredCell, isTableHovered, tableWrapperWidth, api, isChromelessEditor, }: TableFloatingControlsProps & {
|
|
34
34
|
api?: ExtractInjectionAPI<TablePlugin>;
|
|
@@ -6,7 +6,7 @@ import { jsx } from '@emotion/react';
|
|
|
6
6
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
7
|
import type { PluginInjectionAPI } from '../types';
|
|
8
8
|
export declare const GlobalStylesWrapper: ({ featureFlags, isDragAndDropEnabledOption, api, }: {
|
|
9
|
+
api?: PluginInjectionAPI;
|
|
9
10
|
featureFlags: FeatureFlags | undefined;
|
|
10
11
|
isDragAndDropEnabledOption?: boolean;
|
|
11
|
-
api?: PluginInjectionAPI;
|
|
12
12
|
}) => jsx.JSX.Element;
|
|
@@ -3,7 +3,7 @@ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
export declare const ExternalDropTargets: ({ editorView, node, getScrollOffset, getTableWrapperWidth, }: {
|
|
5
5
|
editorView: EditorView;
|
|
6
|
-
node?: PMNode;
|
|
7
6
|
getScrollOffset: () => number;
|
|
8
7
|
getTableWrapperWidth: () => number;
|
|
8
|
+
node?: PMNode;
|
|
9
9
|
}) => React.JSX.Element | null;
|
|
@@ -10,36 +10,36 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
10
10
|
import type { CellHoverMeta, PluginInjectionAPI } from '../types';
|
|
11
11
|
import type { TableOptions } from './types';
|
|
12
12
|
interface ComponentProps {
|
|
13
|
-
view: EditorView;
|
|
14
|
-
getNode: () => PmNode;
|
|
15
13
|
allowColumnResizing?: boolean;
|
|
16
|
-
eventDispatcher: EventDispatcher;
|
|
17
|
-
getPos: () => number | undefined;
|
|
18
|
-
options?: TableOptions;
|
|
19
|
-
contentDOM: (node: HTMLElement | null) => void;
|
|
20
|
-
containerWidth: EditorContainerWidth;
|
|
21
14
|
allowControls?: boolean;
|
|
22
|
-
allowTableResizing?: boolean;
|
|
23
15
|
allowTableAlignment?: boolean;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
isDragAndDropEnabled?: boolean;
|
|
28
|
-
isTableScalingEnabled?: boolean;
|
|
29
|
-
tableActive: boolean;
|
|
30
|
-
ordering?: TableColumnOrdering;
|
|
31
|
-
isResizing?: boolean;
|
|
32
|
-
getEditorFeatureFlags: GetEditorFeatureFlags;
|
|
16
|
+
allowTableResizing?: boolean;
|
|
17
|
+
containerWidth: EditorContainerWidth;
|
|
18
|
+
contentDOM: (node: HTMLElement | null) => void;
|
|
33
19
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
34
|
-
|
|
20
|
+
eventDispatcher: EventDispatcher;
|
|
21
|
+
getEditorFeatureFlags: GetEditorFeatureFlags;
|
|
22
|
+
getNode: () => PmNode;
|
|
23
|
+
getPos: () => number | undefined;
|
|
24
|
+
hoveredCell?: CellHoverMeta;
|
|
25
|
+
hoveredRows?: number[];
|
|
35
26
|
intl: IntlShape;
|
|
27
|
+
isDragAndDropEnabled?: boolean;
|
|
28
|
+
isHeaderColumnEnabled: boolean;
|
|
29
|
+
isHeaderRowEnabled: boolean;
|
|
36
30
|
isInDanger?: boolean;
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
isMediaFullscreen?: boolean;
|
|
32
|
+
isResizing?: boolean;
|
|
39
33
|
isTableHovered?: boolean;
|
|
34
|
+
isTableScalingEnabled?: boolean;
|
|
40
35
|
isWholeTableInDanger?: boolean;
|
|
41
|
-
selection?: Selection;
|
|
42
36
|
limitedMode?: boolean;
|
|
37
|
+
options?: TableOptions;
|
|
38
|
+
ordering?: TableColumnOrdering;
|
|
39
|
+
pluginInjectionApi?: PluginInjectionAPI;
|
|
40
|
+
selection?: Selection;
|
|
41
|
+
tableActive: boolean;
|
|
42
|
+
view: EditorView;
|
|
43
43
|
}
|
|
44
44
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<ComponentProps>> & {
|
|
45
45
|
WrappedComponent: React.ComponentType<ComponentProps>;
|
|
@@ -8,19 +8,19 @@ import type { PluginInjectionAPI } from '../types';
|
|
|
8
8
|
import type { TableOptions } from './types';
|
|
9
9
|
type ForwardRef = (node: HTMLElement | null) => any;
|
|
10
10
|
type TableComponentWithSharedStateProps = {
|
|
11
|
-
view: EditorView;
|
|
12
|
-
options?: TableOptions;
|
|
13
|
-
getNode: () => PmNode;
|
|
14
|
-
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
15
|
-
getEditorFeatureFlags: GetEditorFeatureFlags;
|
|
16
|
-
api?: PluginInjectionAPI;
|
|
17
|
-
eventDispatcher: EventDispatcher;
|
|
18
|
-
forwardRef: ForwardRef;
|
|
19
|
-
getPos: getPosHandlerNode;
|
|
20
11
|
allowColumnResizing?: boolean;
|
|
21
12
|
allowControls?: boolean;
|
|
22
13
|
allowTableAlignment?: boolean;
|
|
23
14
|
allowTableResizing?: boolean;
|
|
15
|
+
api?: PluginInjectionAPI;
|
|
16
|
+
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
17
|
+
eventDispatcher: EventDispatcher;
|
|
18
|
+
forwardRef: ForwardRef;
|
|
19
|
+
getEditorFeatureFlags: GetEditorFeatureFlags;
|
|
20
|
+
getNode: () => PmNode;
|
|
21
|
+
getPos: getPosHandlerNode;
|
|
22
|
+
options?: TableOptions;
|
|
23
|
+
view: EditorView;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* Use useSharedPluginState to control re-renders from plugin dependencies
|