@atlaskit/editor-plugin-table 7.17.10 → 7.18.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 +18 -0
- package/afm-jira/tsconfig.json +93 -0
- package/dist/types/commands-with-analytics.d.ts +2 -2
- package/dist/types/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -71
- package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +4 -142
- package/dist/types/ui/TableFloatingControls/index.d.ts +2 -71
- package/dist/types/utils/drag-menu.d.ts +1 -1
- package/dist/types-ts4.5/commands-with-analytics.d.ts +2 -2
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +98 -188
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +104 -284
- package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +98 -188
- package/dist/types-ts4.5/utils/drag-menu.d.ts +1 -1
- package/package.json +8 -8
- package/src/commands-with-analytics.ts +2 -2
- package/src/nodeviews/TableResizer.tsx +8 -2
- package/src/utils/drag-menu.ts +1 -1
|
@@ -30,195 +30,105 @@ export interface TableFloatingControlsProps {
|
|
|
30
30
|
tableWrapperWidth?: number;
|
|
31
31
|
}
|
|
32
32
|
export declare const TableFloatingControls: ({ editorView, tableRef, tableNode, isInDanger, isResizing, isNumberColumnEnabled, isHeaderRowEnabled, isHeaderColumnEnabled, tableActive, hasHeaderRow, hoveredRows, stickyHeader, isDragAndDropEnabled, hoveredCell, isTableHovered, tableWrapperWidth, api, }: TableFloatingControlsProps & {
|
|
33
|
-
api?: import("@atlaskit/editor-common/types").
|
|
34
|
-
import("
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
import("@atlaskit/editor-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
import("@atlaskit/editor-common/types").
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
import("@atlaskit/editor-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
import("@atlaskit/editor-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
import("@atlaskit/editor-common/types").
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
import("@atlaskit/editor-common/types").
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
import("@atlaskit/editor-common/types").
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
import("@atlaskit/editor-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
import("@atlaskit/editor-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
pluginConfiguration?: {
|
|
120
|
-
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
121
|
-
} | undefined;
|
|
122
|
-
commands: {
|
|
123
|
-
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
124
|
-
};
|
|
125
|
-
}, {
|
|
33
|
+
api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"table", {
|
|
34
|
+
pluginConfiguration: import("../../plugin").TablePluginOptions | undefined;
|
|
35
|
+
actions: {
|
|
36
|
+
insertTable: (analyticsPayload: import("@atlaskit/editor-common/analytics").AnalyticsEventPayload) => import("@atlaskit/editor-common/types").Command;
|
|
37
|
+
};
|
|
38
|
+
sharedState?: import("../../types").TableSharedState | undefined;
|
|
39
|
+
commands: {
|
|
40
|
+
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
41
|
+
};
|
|
42
|
+
dependencies: [
|
|
43
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
44
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
45
|
+
sharedState: {
|
|
46
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
47
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
48
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
49
|
+
};
|
|
50
|
+
dependencies: [
|
|
51
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
52
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
53
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
54
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
55
|
+
];
|
|
56
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
57
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>,
|
|
58
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contentInsertion", {
|
|
59
|
+
actions: import("@atlaskit/editor-plugin-content-insertion").InsertNodeAPI;
|
|
60
|
+
dependencies: [
|
|
61
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
62
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
63
|
+
sharedState: {
|
|
64
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
65
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
66
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
67
|
+
};
|
|
68
|
+
dependencies: [
|
|
69
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
70
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
71
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
72
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
73
|
+
];
|
|
74
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
75
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>
|
|
76
|
+
];
|
|
77
|
+
}, undefined>,
|
|
78
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
79
|
+
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
80
|
+
}, undefined>,
|
|
81
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
82
|
+
dependencies: [
|
|
83
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
84
|
+
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
85
|
+
}, undefined>
|
|
86
|
+
];
|
|
87
|
+
sharedState: import("@atlaskit/editor-common/guideline").GuidelinePluginState | null;
|
|
88
|
+
actions: {
|
|
89
|
+
displayGuideline: import("@atlaskit/editor-common/guideline").DisplayGuideline;
|
|
90
|
+
};
|
|
91
|
+
}, undefined>,
|
|
92
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
93
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined;
|
|
94
|
+
actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
|
|
95
|
+
commands: {
|
|
96
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
97
|
+
};
|
|
98
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
99
|
+
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>,
|
|
100
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
101
|
+
dependencies: [
|
|
102
|
+
];
|
|
103
|
+
actions: {
|
|
104
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
105
|
+
};
|
|
106
|
+
sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
|
|
107
|
+
}, undefined>>,
|
|
108
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
109
|
+
pluginConfiguration: any;
|
|
110
|
+
dependencies: any;
|
|
111
|
+
sharedState: any;
|
|
112
|
+
actions: any;
|
|
113
|
+
}, any>>,
|
|
114
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
115
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
116
|
+
dependencies: [
|
|
117
|
+
];
|
|
118
|
+
pluginConfiguration?: {
|
|
126
119
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
127
|
-
} | undefined
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
];
|
|
133
|
-
}, import("../../plugin").TablePluginOptions | undefined>,
|
|
134
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
135
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
136
|
-
sharedState: {
|
|
137
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
138
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
139
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
140
|
-
};
|
|
141
|
-
dependencies: [
|
|
142
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
143
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
144
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
145
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
146
|
-
];
|
|
147
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
148
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>,
|
|
149
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contentInsertion", {
|
|
150
|
-
actions: import("@atlaskit/editor-plugin-content-insertion").InsertNodeAPI;
|
|
151
|
-
dependencies: [
|
|
152
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
153
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
154
|
-
sharedState: {
|
|
155
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
156
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
157
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
158
|
-
};
|
|
159
|
-
dependencies: [
|
|
160
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
161
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
162
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
163
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
164
|
-
];
|
|
165
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
166
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>
|
|
167
|
-
];
|
|
168
|
-
}, undefined>,
|
|
169
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
170
|
-
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
171
|
-
}, undefined>,
|
|
172
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
173
|
-
dependencies: [
|
|
174
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
175
|
-
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
176
|
-
}, undefined>
|
|
177
|
-
];
|
|
178
|
-
sharedState: import("@atlaskit/editor-common/guideline").GuidelinePluginState | null;
|
|
179
|
-
actions: {
|
|
180
|
-
displayGuideline: import("@atlaskit/editor-common/guideline").DisplayGuideline;
|
|
181
|
-
};
|
|
182
|
-
}, undefined>,
|
|
183
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
184
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined;
|
|
185
|
-
actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
|
|
186
|
-
commands: {
|
|
187
|
-
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
188
|
-
};
|
|
189
|
-
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
190
|
-
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>,
|
|
191
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
192
|
-
dependencies: [
|
|
193
|
-
];
|
|
194
|
-
actions: {
|
|
195
|
-
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
196
|
-
};
|
|
197
|
-
sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
|
|
198
|
-
}, undefined>>,
|
|
199
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
200
|
-
pluginConfiguration: any;
|
|
201
|
-
dependencies: any;
|
|
202
|
-
sharedState: any;
|
|
203
|
-
actions: any;
|
|
204
|
-
}, any>>,
|
|
205
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
206
|
-
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
207
|
-
dependencies: [
|
|
208
|
-
];
|
|
209
|
-
pluginConfiguration?: {
|
|
120
|
+
} | undefined;
|
|
121
|
+
commands: {
|
|
122
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
123
|
+
};
|
|
124
|
+
}, {
|
|
210
125
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
211
|
-
} | undefined
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
219
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
220
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
221
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
222
|
-
]> | undefined;
|
|
126
|
+
} | undefined>>,
|
|
127
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
128
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
129
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
130
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
131
|
+
];
|
|
132
|
+
}> | undefined;
|
|
223
133
|
}) => JSX.Element | null;
|
|
224
134
|
export default TableFloatingControls;
|
|
@@ -8,7 +8,7 @@ import type { DraggableData, DraggableType, TableDirection } from '../types';
|
|
|
8
8
|
export declare const getTargetIndex: (selectedIndexes: number[], direction: DraggableData['direction']) => number;
|
|
9
9
|
export declare const canMove: (sourceType: DraggableType, direction: DraggableData['direction'], totalItemsOfSourceTypeCount: number, selection: Selection, selectionRect?: Rect) => boolean;
|
|
10
10
|
export type DragMenuOptionIdType = 'add_row_above' | 'add_row_below' | 'add_column_left' | 'add_column_right' | 'distribute_columns' | 'clear_cells' | 'delete_row' | 'delete_column' | 'move_column_left' | 'move_column_right' | 'move_row_up' | 'move_row_down' | 'sort_column_asc' | 'sort_column_desc';
|
|
11
|
-
export interface DragMenuConfig extends DropdownOptionT<Command> {
|
|
11
|
+
export interface DragMenuConfig extends Omit<DropdownOptionT<Command>, 'icon'> {
|
|
12
12
|
id: DragMenuOptionIdType;
|
|
13
13
|
icon?: React.ComponentType<React.PropsWithChildren<IconProps>>;
|
|
14
14
|
keymap?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.18.1",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"runReact18": false
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/adf-schema": "^
|
|
31
|
+
"@atlaskit/adf-schema": "^37.0.0",
|
|
32
32
|
"@atlaskit/button": "^18.0.0",
|
|
33
|
-
"@atlaskit/custom-steps": "^0.
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
33
|
+
"@atlaskit/custom-steps": "^0.3.0",
|
|
34
|
+
"@atlaskit/editor-common": "^83.0.0",
|
|
35
35
|
"@atlaskit/editor-palette": "1.6.0",
|
|
36
36
|
"@atlaskit/editor-plugin-accessibility-utils": "^1.1.0",
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
38
|
-
"@atlaskit/editor-plugin-content-insertion": "^1.
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^1.3.0",
|
|
38
|
+
"@atlaskit/editor-plugin-content-insertion": "^1.3.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-guideline": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-selection": "^1.2.0",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"@atlaskit/pragmatic-drag-and-drop": "^1.1.0",
|
|
50
50
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^1.3.0",
|
|
51
51
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
52
|
-
"@atlaskit/primitives": "^8.
|
|
52
|
+
"@atlaskit/primitives": "^8.2.0",
|
|
53
53
|
"@atlaskit/theme": "^12.11.0",
|
|
54
54
|
"@atlaskit/toggle": "^13.2.0",
|
|
55
|
-
"@atlaskit/tokens": "^1.
|
|
55
|
+
"@atlaskit/tokens": "^1.53.0",
|
|
56
56
|
"@atlaskit/tooltip": "^18.5.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"@emotion/react": "^11.7.1",
|
|
@@ -15,9 +15,9 @@ import type { AnalyticsEventPayload, EditorAnalyticsAPI } from '@atlaskit/editor
|
|
|
15
15
|
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
16
16
|
import { type CHANGE_ALIGNMENT_REASON } from '@atlaskit/editor-common/src/analytics/types/table-events';
|
|
17
17
|
import type { Command, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
18
|
-
import { type NodeWithPos } from '@atlaskit/editor-prosemirror/dist/types/utils';
|
|
19
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/dist/types/view';
|
|
20
18
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
19
|
+
import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
20
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
21
21
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
22
22
|
import { type Rect, TableMap } from '@atlaskit/editor-tables/table-map';
|
|
23
23
|
import {
|
|
@@ -20,7 +20,7 @@ import { ResizerNext } from '@atlaskit/editor-common/resizer';
|
|
|
20
20
|
import { browser } from '@atlaskit/editor-common/utils';
|
|
21
21
|
import { chainCommands } from '@atlaskit/editor-prosemirror/commands';
|
|
22
22
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
23
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
23
|
+
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
24
24
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
25
25
|
import { akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles';
|
|
26
26
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
@@ -288,7 +288,13 @@ export const TableResizer = ({
|
|
|
288
288
|
);
|
|
289
289
|
|
|
290
290
|
const switchToCenterAlignment = useCallback(
|
|
291
|
-
(
|
|
291
|
+
(
|
|
292
|
+
pos: number,
|
|
293
|
+
node: PMNode,
|
|
294
|
+
newWidth: any,
|
|
295
|
+
state: EditorState,
|
|
296
|
+
dispatch: ((tr: Transaction) => void) | undefined,
|
|
297
|
+
) => {
|
|
292
298
|
if (
|
|
293
299
|
isTableAlignmentEnabled &&
|
|
294
300
|
node &&
|
package/src/utils/drag-menu.ts
CHANGED
|
@@ -138,7 +138,7 @@ export type DragMenuOptionIdType =
|
|
|
138
138
|
| 'sort_column_asc'
|
|
139
139
|
| 'sort_column_desc';
|
|
140
140
|
|
|
141
|
-
export interface DragMenuConfig extends DropdownOptionT<Command> {
|
|
141
|
+
export interface DragMenuConfig extends Omit<DropdownOptionT<Command>, 'icon'> {
|
|
142
142
|
id: DragMenuOptionIdType;
|
|
143
143
|
icon?: React.ComponentType<React.PropsWithChildren<IconProps>>;
|
|
144
144
|
keymap?: string;
|