@atlaskit/editor-plugin-table 9.1.2 → 9.2.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/afm-post-office/tsconfig.json +99 -0
  3. package/dist/cjs/nodeviews/TableComponent.js +5 -5
  4. package/dist/cjs/nodeviews/TableComponentWithSharedState.js +6 -4
  5. package/dist/cjs/nodeviews/table.js +1 -2
  6. package/dist/cjs/tablePlugin.js +1 -0
  7. package/dist/cjs/ui/DragHandle/index.js +55 -6
  8. package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +17 -2
  9. package/dist/cjs/ui/TableFloatingColumnControls/index.js +1 -2
  10. package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +60 -7
  11. package/dist/cjs/ui/TableFloatingControls/index.js +24 -4
  12. package/dist/cjs/ui/common-styles.js +1 -2
  13. package/dist/es2019/nodeviews/TableComponent.js +5 -5
  14. package/dist/es2019/nodeviews/TableComponentWithSharedState.js +6 -4
  15. package/dist/es2019/nodeviews/table.js +1 -2
  16. package/dist/es2019/tablePlugin.js +1 -0
  17. package/dist/es2019/ui/DragHandle/index.js +57 -6
  18. package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +18 -3
  19. package/dist/es2019/ui/TableFloatingColumnControls/index.js +1 -2
  20. package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +62 -7
  21. package/dist/es2019/ui/TableFloatingControls/index.js +25 -5
  22. package/dist/es2019/ui/common-styles.js +1 -2
  23. package/dist/esm/nodeviews/TableComponent.js +5 -5
  24. package/dist/esm/nodeviews/TableComponentWithSharedState.js +6 -4
  25. package/dist/esm/nodeviews/table.js +1 -2
  26. package/dist/esm/tablePlugin.js +1 -0
  27. package/dist/esm/ui/DragHandle/index.js +54 -5
  28. package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +18 -3
  29. package/dist/esm/ui/TableFloatingColumnControls/index.js +1 -2
  30. package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +60 -7
  31. package/dist/esm/ui/TableFloatingControls/index.js +25 -5
  32. package/dist/esm/ui/common-styles.js +1 -2
  33. package/dist/types/nodeviews/TableComponent.d.ts +3 -1
  34. package/dist/types/tablePluginType.d.ts +21 -18
  35. package/dist/types/types/index.d.ts +1 -1
  36. package/dist/types/ui/DragHandle/index.d.ts +21 -0
  37. package/dist/types/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +4 -81
  38. package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +6 -160
  39. package/dist/types/ui/TableFloatingControls/RowControls/DragControls.d.ts +8 -5
  40. package/dist/types/ui/TableFloatingControls/index.d.ts +3 -80
  41. package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +3 -1
  42. package/dist/types-ts4.5/tablePluginType.d.ts +21 -18
  43. package/dist/types-ts4.5/types/index.d.ts +1 -1
  44. package/dist/types-ts4.5/ui/DragHandle/index.d.ts +21 -0
  45. package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +4 -102
  46. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +6 -202
  47. package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/DragControls.d.ts +8 -5
  48. package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +3 -101
  49. package/package.json +8 -5
  50. package/src/nodeviews/TableComponent.tsx +9 -7
  51. package/src/nodeviews/TableComponentWithSharedState.tsx +4 -2
  52. package/src/nodeviews/table.tsx +1 -2
  53. package/src/tablePlugin.tsx +1 -0
  54. package/src/tablePluginType.ts +28 -22
  55. package/src/types/index.ts +1 -0
  56. package/src/ui/DragHandle/index.tsx +67 -2
  57. package/src/ui/TableFloatingColumnControls/ColumnControls/index.tsx +38 -19
  58. package/src/ui/TableFloatingColumnControls/index.tsx +2 -5
  59. package/src/ui/TableFloatingControls/RowControls/DragControls.tsx +86 -25
  60. package/src/ui/TableFloatingControls/index.tsx +54 -27
  61. package/src/ui/common-styles.ts +1 -2
@@ -29,26 +29,29 @@ type MediaPlugin = NextEditorPlugin<'media', {
29
29
  actions: any;
30
30
  commands: any;
31
31
  }>;
32
+ export type TablePluginActions = {
33
+ insertTable: InsertTableAction;
34
+ };
35
+ export type TablePluginCommands = {
36
+ insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: INPUT_METHOD.PICKER) => EditorCommand;
37
+ };
38
+ export type TablePluginDependencies = [
39
+ AnalyticsPlugin,
40
+ ContentInsertionPlugin,
41
+ WidthPlugin,
42
+ SelectionPlugin,
43
+ OptionalPlugin<GuidelinePlugin>,
44
+ OptionalPlugin<BatchAttributeUpdatesPlugin>,
45
+ OptionalPlugin<AccessibilityUtilsPlugin>,
46
+ OptionalPlugin<MediaPlugin>,
47
+ OptionalPlugin<EditorViewModePlugin>,
48
+ OptionalPlugin<FeatureFlagsPlugin>
49
+ ];
32
50
  export type TablePlugin = NextEditorPlugin<'table', {
33
51
  pluginConfiguration: TablePluginOptions | undefined;
34
- actions: {
35
- insertTable: InsertTableAction;
36
- };
52
+ actions: TablePluginActions;
37
53
  sharedState?: TableSharedState;
38
- commands: {
39
- insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: INPUT_METHOD.PICKER) => EditorCommand;
40
- };
41
- dependencies: [
42
- AnalyticsPlugin,
43
- ContentInsertionPlugin,
44
- WidthPlugin,
45
- SelectionPlugin,
46
- OptionalPlugin<GuidelinePlugin>,
47
- OptionalPlugin<BatchAttributeUpdatesPlugin>,
48
- OptionalPlugin<AccessibilityUtilsPlugin>,
49
- OptionalPlugin<MediaPlugin>,
50
- OptionalPlugin<EditorViewModePlugin>,
51
- OptionalPlugin<FeatureFlagsPlugin>
52
- ];
54
+ commands: TablePluginCommands;
55
+ dependencies: TablePluginDependencies;
53
56
  }>;
54
57
  export {};
@@ -33,7 +33,7 @@ export type PluginInjectionAPIWithA11y = ExtractInjectionAPI<TablePlugin> & {
33
33
  };
34
34
  };
35
35
  };
36
- export type TableSharedStateInternal = Pick<TablePluginState, 'isFullWidthModeEnabled' | 'wasFullWidthModeEnabled' | 'isHeaderRowEnabled' | 'isHeaderColumnEnabled' | 'ordering' | 'isInDanger' | 'hoveredRows' | 'hoveredCell' | 'isTableHovered' | 'tableNode' | 'widthToWidest'> & {
36
+ export type TableSharedStateInternal = Pick<TablePluginState, 'isFullWidthModeEnabled' | 'wasFullWidthModeEnabled' | 'isHeaderRowEnabled' | 'isHeaderColumnEnabled' | 'ordering' | 'isInDanger' | 'hoveredRows' | 'hoveredColumns' | 'hoveredCell' | 'isTableHovered' | 'tableNode' | 'widthToWidest'> & {
37
37
  isResizing: boolean;
38
38
  isTableResizing?: boolean;
39
39
  isWholeTableInDanger?: boolean;
@@ -20,8 +20,29 @@ type DragHandleProps = {
20
20
  toggleDragMenu?: (trigger: TriggerType, event?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
21
21
  editorView: EditorView;
22
22
  isDragMenuTarget: boolean;
23
+ hoveredColumns?: number[];
24
+ hoveredRows?: number[];
23
25
  };
24
26
  export declare const DragHandle: React.FC<import("react-intl-next").WithIntlProps<DragHandleProps & WrappedComponentProps>> & {
25
27
  WrappedComponent: React.ComponentType<DragHandleProps & WrappedComponentProps>;
26
28
  };
29
+ export declare const DragHandleWithSharedState: React.FC<import("react-intl-next").WithIntlProps<DragHandleProps & {
30
+ api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"table", {
31
+ pluginConfiguration: import("../../tablePluginType").TablePluginOptions | undefined;
32
+ actions: import("../../tablePluginType").TablePluginActions;
33
+ sharedState?: import("../../types").TableSharedState | undefined;
34
+ commands: import("../../tablePluginType").TablePluginCommands;
35
+ dependencies: import("../../tablePluginType").TablePluginDependencies;
36
+ }> | undefined;
37
+ } & WrappedComponentProps>> & {
38
+ WrappedComponent: React.ComponentType<DragHandleProps & {
39
+ api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"table", {
40
+ pluginConfiguration: import("../../tablePluginType").TablePluginOptions | undefined;
41
+ actions: import("../../tablePluginType").TablePluginActions;
42
+ sharedState?: import("../../types").TableSharedState | undefined;
43
+ commands: import("../../tablePluginType").TablePluginCommands;
44
+ dependencies: import("../../tablePluginType").TablePluginDependencies;
45
+ }> | undefined;
46
+ } & WrappedComponentProps>;
47
+ };
27
48
  export {};
@@ -20,90 +20,13 @@ interface ColumnControlsProps {
20
20
  isDragging?: boolean;
21
21
  getScrollOffset?: () => number;
22
22
  }
23
- export declare const ColumnControls: ({ editorView, tableActive, tableRef, hoveredCell, stickyTop, localId, isInDanger, rowHeights, colWidths, hasHeaderColumn, isTableHovered, tableContainerWidth, isNumberColumnEnabled, isDragging, getScrollOffset, api, }: ColumnControlsProps & {
23
+ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hoveredCell, stickyTop, localId, isInDanger, rowHeights, colWidths, isTableHovered, tableContainerWidth, isNumberColumnEnabled, isDragging, getScrollOffset, api, }: ColumnControlsProps & {
24
24
  api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"table", {
25
25
  pluginConfiguration: import("../../../tablePluginType").TablePluginOptions | undefined;
26
- actions: {
27
- insertTable: (analyticsPayload: import("@atlaskit/editor-common/analytics").AnalyticsEventPayload) => import("@atlaskit/editor-common/types").Command;
28
- };
26
+ actions: import("../../../tablePluginType").TablePluginActions;
29
27
  sharedState?: import("../../../types").TableSharedState | undefined;
30
- commands: {
31
- insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
32
- };
33
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
34
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
35
- sharedState: {
36
- createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
37
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
38
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
39
- };
40
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
41
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
42
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
43
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
44
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
45
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contentInsertion", {
46
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
47
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
48
- sharedState: {
49
- createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
50
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
51
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
52
- };
53
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
54
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
55
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
56
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
57
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
58
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>];
59
- } & import("@atlaskit/editor-plugin-content-insertion").InsertNodeAPI, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
60
- sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
61
- }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
62
- pluginConfiguration: import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined;
63
- actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
64
- commands: {
65
- displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
66
- };
67
- sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
68
- }, import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
69
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
70
- sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
71
- }, undefined>];
72
- sharedState: import("@atlaskit/editor-common/guideline").GuidelinePluginState | null;
73
- actions: {
74
- displayGuideline: import("@atlaskit/editor-common/guideline").DisplayGuideline;
75
- };
76
- }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"batchAttributeUpdates", {
77
- actions: {
78
- batchSteps: import("@atlaskit/editor-plugin-batch-attribute-updates").BatchStepsAction;
79
- };
80
- }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
81
- dependencies: [];
82
- actions: {
83
- ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
84
- };
85
- sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
86
- }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
87
- pluginConfiguration: any;
88
- dependencies: any;
89
- sharedState: any;
90
- actions: any;
91
- commands: any;
92
- }, any>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
93
- sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
94
- dependencies: [];
95
- pluginConfiguration?: {
96
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
97
- } | undefined;
98
- commands: {
99
- updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
100
- };
101
- }, {
102
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
103
- } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
104
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
105
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
106
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
28
+ commands: import("../../../tablePluginType").TablePluginCommands;
29
+ dependencies: import("../../../tablePluginType").TablePluginDependencies;
107
30
  }> | undefined;
108
31
  }) => JSX.Element;
109
32
  export {};
@@ -4,173 +4,19 @@ import type { CornerControlProps } from './types';
4
4
  export declare const DragCornerControlsWithSelection: React.FC<import("react-intl-next").WithIntlProps<CornerControlProps & WrappedComponentProps & {
5
5
  api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"table", {
6
6
  pluginConfiguration: import("../../../tablePluginType").TablePluginOptions | undefined;
7
- actions: {
8
- insertTable: (analyticsPayload: import("@atlaskit/editor-common/analytics").AnalyticsEventPayload) => import("@atlaskit/editor-common/types").Command;
9
- };
7
+ actions: import("../../../tablePluginType").TablePluginActions;
10
8
  sharedState?: import("../../../types").TableSharedState | undefined;
11
- commands: {
12
- insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
13
- };
14
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
15
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
16
- sharedState: {
17
- createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
18
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
19
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
20
- };
21
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
22
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
23
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
24
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
25
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
26
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contentInsertion", {
27
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
28
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
29
- sharedState: {
30
- createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
31
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
32
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
33
- };
34
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
35
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
36
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
37
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
38
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
39
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>];
40
- } & import("@atlaskit/editor-plugin-content-insertion").InsertNodeAPI, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
41
- sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
42
- }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
43
- pluginConfiguration: import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined;
44
- actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
45
- commands: {
46
- displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
47
- };
48
- sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
49
- }, import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
50
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
51
- sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
52
- }, undefined>];
53
- sharedState: import("@atlaskit/editor-common/guideline").GuidelinePluginState | null;
54
- actions: {
55
- displayGuideline: import("@atlaskit/editor-common/guideline").DisplayGuideline;
56
- };
57
- }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"batchAttributeUpdates", {
58
- actions: {
59
- batchSteps: import("@atlaskit/editor-plugin-batch-attribute-updates").BatchStepsAction;
60
- };
61
- }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
62
- dependencies: [];
63
- actions: {
64
- ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
65
- };
66
- sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
67
- }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
68
- pluginConfiguration: any;
69
- dependencies: any;
70
- sharedState: any;
71
- actions: any;
72
- commands: any;
73
- }, any>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
74
- sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
75
- dependencies: [];
76
- pluginConfiguration?: {
77
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
78
- } | undefined;
79
- commands: {
80
- updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
81
- };
82
- }, {
83
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
84
- } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
85
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
86
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
87
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
9
+ commands: import("../../../tablePluginType").TablePluginCommands;
10
+ dependencies: import("../../../tablePluginType").TablePluginDependencies;
88
11
  }> | undefined;
89
12
  }>> & {
90
13
  WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps & {
91
14
  api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"table", {
92
15
  pluginConfiguration: import("../../../tablePluginType").TablePluginOptions | undefined;
93
- actions: {
94
- insertTable: (analyticsPayload: import("@atlaskit/editor-common/analytics").AnalyticsEventPayload) => import("@atlaskit/editor-common/types").Command;
95
- };
16
+ actions: import("../../../tablePluginType").TablePluginActions;
96
17
  sharedState?: import("../../../types").TableSharedState | undefined;
97
- commands: {
98
- insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
99
- };
100
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
101
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
102
- sharedState: {
103
- createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
104
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
105
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
106
- };
107
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
108
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
109
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
110
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
111
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
112
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contentInsertion", {
113
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
114
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
115
- sharedState: {
116
- createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
117
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
118
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
119
- };
120
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
121
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
122
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
123
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
124
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
125
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>];
126
- } & import("@atlaskit/editor-plugin-content-insertion").InsertNodeAPI, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
127
- sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
128
- }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
129
- pluginConfiguration: import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined;
130
- actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
131
- commands: {
132
- displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
133
- };
134
- sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
135
- }, import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
136
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
137
- sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
138
- }, undefined>];
139
- sharedState: import("@atlaskit/editor-common/guideline").GuidelinePluginState | null;
140
- actions: {
141
- displayGuideline: import("@atlaskit/editor-common/guideline").DisplayGuideline;
142
- };
143
- }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"batchAttributeUpdates", {
144
- actions: {
145
- batchSteps: import("@atlaskit/editor-plugin-batch-attribute-updates").BatchStepsAction;
146
- };
147
- }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
148
- dependencies: [];
149
- actions: {
150
- ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
151
- };
152
- sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
153
- }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
154
- pluginConfiguration: any;
155
- dependencies: any;
156
- sharedState: any;
157
- actions: any;
158
- commands: any;
159
- }, any>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
160
- sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
161
- dependencies: [];
162
- pluginConfiguration?: {
163
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
164
- } | undefined;
165
- commands: {
166
- updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
167
- };
168
- }, {
169
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
170
- } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
171
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
172
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
173
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
18
+ commands: import("../../../tablePluginType").TablePluginCommands;
19
+ dependencies: import("../../../tablePluginType").TablePluginDependencies;
174
20
  }> | undefined;
175
21
  }>;
176
22
  };
@@ -1,7 +1,9 @@
1
- import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
1
+ /// <reference types="react" />
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
4
+ import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
+ import type { TablePlugin } from '../../../tablePluginType';
5
7
  import type { CellHoverMeta } from '../../../types';
6
8
  type DragControlsProps = {
7
9
  editorView: EditorView;
@@ -17,8 +19,9 @@ type DragControlsProps = {
17
19
  selectRow: (row: number, expand: boolean) => void;
18
20
  selectRows: (rowIndexes: number[]) => void;
19
21
  updateCellHoverLocation: (rowIndex: number) => void;
22
+ api?: ExtractInjectionAPI<TablePlugin>;
23
+ selection?: Selection;
20
24
  };
21
- export declare const DragControls: React.FC<import("react-intl-next").WithIntlProps<DragControlsProps & WrappedComponentProps>> & {
22
- WrappedComponent: React.ComponentType<DragControlsProps & WrappedComponentProps>;
23
- };
25
+ export declare const DragControls: ({ tableRef, tableNode, tableWidth, hoveredCell, tableActive, editorView, isInDanger, isResizing, isTableHovered, hoverRows, selectRow, selectRows, updateCellHoverLocation, api, selection, }: DragControlsProps) => JSX.Element | null;
26
+ export declare const DragControlsWithSelection: ({ editorView, tableRef, tableNode, tableWidth, tableActive, hoveredCell, isInDanger, isTableHovered, isResizing, hoverRows, selectRow, selectRows, updateCellHoverLocation, api, }: Exclude<DragControlsProps, 'selection'>) => JSX.Element;
24
27
  export {};
@@ -33,87 +33,10 @@ interface TableFloatingControlsProps {
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?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"table", {
35
35
  pluginConfiguration: import("../../tablePluginType").TablePluginOptions | undefined;
36
- actions: {
37
- insertTable: (analyticsPayload: import("@atlaskit/editor-common/analytics").AnalyticsEventPayload) => import("@atlaskit/editor-common/types").Command;
38
- };
36
+ actions: import("../../tablePluginType").TablePluginActions;
39
37
  sharedState?: import("../../types").TableSharedState | undefined;
40
- commands: {
41
- insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
42
- };
43
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
44
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
45
- sharedState: {
46
- createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
47
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
48
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
49
- };
50
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
51
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
52
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
53
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
54
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
55
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contentInsertion", {
56
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
57
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
58
- sharedState: {
59
- createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
60
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
61
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
62
- };
63
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
64
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
65
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
66
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
67
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
68
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>];
69
- } & import("@atlaskit/editor-plugin-content-insertion").InsertNodeAPI, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
70
- sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
71
- }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
72
- pluginConfiguration: import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined;
73
- actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
74
- commands: {
75
- displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
76
- };
77
- sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
78
- }, import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
79
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
80
- sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
81
- }, undefined>];
82
- sharedState: import("@atlaskit/editor-common/guideline").GuidelinePluginState | null;
83
- actions: {
84
- displayGuideline: import("@atlaskit/editor-common/guideline").DisplayGuideline;
85
- };
86
- }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"batchAttributeUpdates", {
87
- actions: {
88
- batchSteps: import("@atlaskit/editor-plugin-batch-attribute-updates").BatchStepsAction;
89
- };
90
- }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
91
- dependencies: [];
92
- actions: {
93
- ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
94
- };
95
- sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
96
- }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
97
- pluginConfiguration: any;
98
- dependencies: any;
99
- sharedState: any;
100
- actions: any;
101
- commands: any;
102
- }, any>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
103
- sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
104
- dependencies: [];
105
- pluginConfiguration?: {
106
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
107
- } | undefined;
108
- commands: {
109
- updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
110
- };
111
- }, {
112
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
113
- } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
114
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
115
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
116
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
38
+ commands: import("../../tablePluginType").TablePluginCommands;
39
+ dependencies: import("../../tablePluginType").TablePluginDependencies;
117
40
  }> | undefined;
118
41
  }) => JSX.Element | null;
119
42
  export default TableFloatingControls;
@@ -5,6 +5,7 @@ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
5
5
  import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
6
6
  import type { EditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
7
7
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
8
+ import type { Selection } from '@atlaskit/editor-prosemirror/state';
8
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
9
10
  import type { CellHoverMeta, PluginInjectionAPI } from '../types';
10
11
  import type { TableOptions } from './types';
@@ -17,7 +18,7 @@ interface ComponentProps {
17
18
  options?: TableOptions;
18
19
  contentDOM: (node: HTMLElement | null) => void;
19
20
  containerWidth: EditorContainerWidth;
20
- allowControls: boolean;
21
+ allowControls?: boolean;
21
22
  allowTableResizing?: boolean;
22
23
  allowTableAlignment?: boolean;
23
24
  isHeaderRowEnabled: boolean;
@@ -37,6 +38,7 @@ interface ComponentProps {
37
38
  hoveredCell?: CellHoverMeta;
38
39
  isTableHovered?: boolean;
39
40
  isWholeTableInDanger?: boolean;
41
+ selection?: Selection;
40
42
  }
41
43
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<ComponentProps>> & {
42
44
  WrappedComponent: React.ComponentType<ComponentProps>;
@@ -29,26 +29,29 @@ type MediaPlugin = NextEditorPlugin<'media', {
29
29
  actions: any;
30
30
  commands: any;
31
31
  }>;
32
+ export type TablePluginActions = {
33
+ insertTable: InsertTableAction;
34
+ };
35
+ export type TablePluginCommands = {
36
+ insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: INPUT_METHOD.PICKER) => EditorCommand;
37
+ };
38
+ export type TablePluginDependencies = [
39
+ AnalyticsPlugin,
40
+ ContentInsertionPlugin,
41
+ WidthPlugin,
42
+ SelectionPlugin,
43
+ OptionalPlugin<GuidelinePlugin>,
44
+ OptionalPlugin<BatchAttributeUpdatesPlugin>,
45
+ OptionalPlugin<AccessibilityUtilsPlugin>,
46
+ OptionalPlugin<MediaPlugin>,
47
+ OptionalPlugin<EditorViewModePlugin>,
48
+ OptionalPlugin<FeatureFlagsPlugin>
49
+ ];
32
50
  export type TablePlugin = NextEditorPlugin<'table', {
33
51
  pluginConfiguration: TablePluginOptions | undefined;
34
- actions: {
35
- insertTable: InsertTableAction;
36
- };
52
+ actions: TablePluginActions;
37
53
  sharedState?: TableSharedState;
38
- commands: {
39
- insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: INPUT_METHOD.PICKER) => EditorCommand;
40
- };
41
- dependencies: [
42
- AnalyticsPlugin,
43
- ContentInsertionPlugin,
44
- WidthPlugin,
45
- SelectionPlugin,
46
- OptionalPlugin<GuidelinePlugin>,
47
- OptionalPlugin<BatchAttributeUpdatesPlugin>,
48
- OptionalPlugin<AccessibilityUtilsPlugin>,
49
- OptionalPlugin<MediaPlugin>,
50
- OptionalPlugin<EditorViewModePlugin>,
51
- OptionalPlugin<FeatureFlagsPlugin>
52
- ];
54
+ commands: TablePluginCommands;
55
+ dependencies: TablePluginDependencies;
53
56
  }>;
54
57
  export {};
@@ -33,7 +33,7 @@ export type PluginInjectionAPIWithA11y = ExtractInjectionAPI<TablePlugin> & {
33
33
  };
34
34
  };
35
35
  };
36
- export type TableSharedStateInternal = Pick<TablePluginState, 'isFullWidthModeEnabled' | 'wasFullWidthModeEnabled' | 'isHeaderRowEnabled' | 'isHeaderColumnEnabled' | 'ordering' | 'isInDanger' | 'hoveredRows' | 'hoveredCell' | 'isTableHovered' | 'tableNode' | 'widthToWidest'> & {
36
+ export type TableSharedStateInternal = Pick<TablePluginState, 'isFullWidthModeEnabled' | 'wasFullWidthModeEnabled' | 'isHeaderRowEnabled' | 'isHeaderColumnEnabled' | 'ordering' | 'isInDanger' | 'hoveredRows' | 'hoveredColumns' | 'hoveredCell' | 'isTableHovered' | 'tableNode' | 'widthToWidest'> & {
37
37
  isResizing: boolean;
38
38
  isTableResizing?: boolean;
39
39
  isWholeTableInDanger?: boolean;
@@ -20,8 +20,29 @@ type DragHandleProps = {
20
20
  toggleDragMenu?: (trigger: TriggerType, event?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
21
21
  editorView: EditorView;
22
22
  isDragMenuTarget: boolean;
23
+ hoveredColumns?: number[];
24
+ hoveredRows?: number[];
23
25
  };
24
26
  export declare const DragHandle: React.FC<import("react-intl-next").WithIntlProps<DragHandleProps & WrappedComponentProps>> & {
25
27
  WrappedComponent: React.ComponentType<DragHandleProps & WrappedComponentProps>;
26
28
  };
29
+ export declare const DragHandleWithSharedState: React.FC<import("react-intl-next").WithIntlProps<DragHandleProps & {
30
+ api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"table", {
31
+ pluginConfiguration: import("../../tablePluginType").TablePluginOptions | undefined;
32
+ actions: import("../../tablePluginType").TablePluginActions;
33
+ sharedState?: import("../../types").TableSharedState | undefined;
34
+ commands: import("../../tablePluginType").TablePluginCommands;
35
+ dependencies: import("../../tablePluginType").TablePluginDependencies;
36
+ }> | undefined;
37
+ } & WrappedComponentProps>> & {
38
+ WrappedComponent: React.ComponentType<DragHandleProps & {
39
+ api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"table", {
40
+ pluginConfiguration: import("../../tablePluginType").TablePluginOptions | undefined;
41
+ actions: import("../../tablePluginType").TablePluginActions;
42
+ sharedState?: import("../../types").TableSharedState | undefined;
43
+ commands: import("../../tablePluginType").TablePluginCommands;
44
+ dependencies: import("../../tablePluginType").TablePluginDependencies;
45
+ }> | undefined;
46
+ } & WrappedComponentProps>;
47
+ };
27
48
  export {};