@atlaskit/editor-plugin-table 7.9.0 → 7.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/commands/column-resize.js +18 -6
- package/dist/cjs/nodeviews/TableComponent.js +11 -3
- package/dist/cjs/utils/index.js +12 -0
- package/dist/cjs/utils/nodes.js +6 -1
- package/dist/cjs/utils/table.js +34 -1
- package/dist/es2019/commands/column-resize.js +18 -6
- package/dist/es2019/nodeviews/TableComponent.js +12 -4
- package/dist/es2019/utils/index.js +2 -2
- package/dist/es2019/utils/nodes.js +5 -0
- package/dist/es2019/utils/table.js +36 -1
- package/dist/esm/commands/column-resize.js +18 -6
- package/dist/esm/nodeviews/TableComponent.js +12 -4
- package/dist/esm/utils/index.js +2 -2
- package/dist/esm/utils/nodes.js +5 -0
- package/dist/esm/utils/table.js +33 -0
- package/dist/types/commands/column-resize.d.ts +5 -4
- package/dist/types/nodeviews/TableComponent.d.ts +6 -54
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +16 -20
- package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +32 -40
- package/dist/types/ui/TableFloatingControls/index.d.ts +16 -20
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/nodes.d.ts +1 -0
- package/dist/types/utils/table.d.ts +3 -0
- package/dist/types-ts4.5/commands/column-resize.d.ts +5 -4
- package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +6 -54
- package/dist/types-ts4.5/plugin.d.ts +1 -1
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +16 -20
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +32 -40
- package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +16 -20
- package/dist/types-ts4.5/utils/index.d.ts +2 -2
- package/dist/types-ts4.5/utils/nodes.d.ts +1 -0
- package/dist/types-ts4.5/utils/table.d.ts +3 -0
- package/package.json +1 -1
- package/src/commands/column-resize.ts +31 -8
- package/src/nodeviews/TableComponent.tsx +21 -6
- package/src/plugin.tsx +1 -1
- package/src/utils/index.ts +2 -1
- package/src/utils/nodes.ts +10 -0
- package/src/utils/table.ts +36 -0
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
3
|
import type { TableColumnOrdering } from '@atlaskit/custom-steps';
|
|
3
4
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
4
5
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
6
|
import type { EditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
6
7
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
-
import type { RowStickyState, StickyPluginState } from '../pm-plugins/sticky-headers';
|
|
9
9
|
import type { CellHoverMeta, PluginInjectionAPI } from '../types';
|
|
10
|
-
import { ShadowEvent } from '../types';
|
|
11
10
|
import type { TableOptions } from './types';
|
|
12
11
|
export interface ComponentProps {
|
|
13
12
|
view: EditorView;
|
|
@@ -30,61 +29,14 @@ export interface ComponentProps {
|
|
|
30
29
|
getEditorFeatureFlags: GetEditorFeatureFlags;
|
|
31
30
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
32
31
|
pluginInjectionApi?: PluginInjectionAPI;
|
|
32
|
+
intl: IntlShape;
|
|
33
33
|
isInDanger?: boolean;
|
|
34
34
|
hoveredRows?: number[];
|
|
35
35
|
hoveredCell?: CellHoverMeta;
|
|
36
36
|
isTableHovered?: boolean;
|
|
37
37
|
isWholeTableInDanger?: boolean;
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
[ShadowEvent.SHOW_BEFORE_SHADOW]: boolean;
|
|
44
|
-
[ShadowEvent.SHOW_AFTER_SHADOW]: boolean;
|
|
45
|
-
tableWrapperWidth?: number;
|
|
46
|
-
tableWrapperHeight?: number;
|
|
47
|
-
}
|
|
48
|
-
declare class TableComponent extends React.Component<ComponentProps, TableState> {
|
|
49
|
-
static displayName: string;
|
|
50
|
-
state: TableState;
|
|
51
|
-
private wrapper?;
|
|
52
|
-
private table?;
|
|
53
|
-
private node;
|
|
54
|
-
private containerWidth?;
|
|
55
|
-
private wasResizing?;
|
|
56
|
-
private tableNodeWidth?;
|
|
57
|
-
private layoutSize?;
|
|
58
|
-
private overflowShadowsObserver?;
|
|
59
|
-
private stickyScrollbar?;
|
|
60
|
-
private isInitialOverflowSent;
|
|
61
|
-
private initialOverflowCaptureTimerId?;
|
|
62
|
-
private resizeObserver?;
|
|
63
|
-
private dragAndDropCleanupFn?;
|
|
64
|
-
constructor(props: ComponentProps);
|
|
65
|
-
componentDidMount(): void;
|
|
66
|
-
componentWillUnmount(): void;
|
|
67
|
-
handleColgroupUpdates(force?: boolean): void;
|
|
68
|
-
componentDidUpdate(_: any, prevState: TableState): void;
|
|
69
|
-
private updateShadowState;
|
|
70
|
-
private createShadowSentinels;
|
|
71
|
-
private observeTable;
|
|
72
|
-
onStickyState: (state: StickyPluginState) => void;
|
|
73
|
-
prevTableState: any;
|
|
74
|
-
render(): JSX.Element;
|
|
75
|
-
private handleScroll;
|
|
76
|
-
private handleTableResizing;
|
|
77
|
-
private scaleTable;
|
|
78
|
-
private setTimerToSendInitialOverflowCaptured;
|
|
79
|
-
private handleAutoSize;
|
|
80
|
-
private handleWindowResize;
|
|
81
|
-
private getParentNodeWidth;
|
|
82
|
-
private updateParentWidth;
|
|
83
|
-
private tableNodeLayoutSize;
|
|
84
|
-
private scaleTableDebounced;
|
|
85
|
-
private handleTableResizingDebounced;
|
|
86
|
-
private handleScrollDebounced;
|
|
87
|
-
private handleAutoSizeDebounced;
|
|
88
|
-
private handleWindowResizeDebounced;
|
|
89
|
-
}
|
|
90
|
-
export default TableComponent;
|
|
39
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<ComponentProps>> & {
|
|
40
|
+
WrappedComponent: React.ComponentType<ComponentProps>;
|
|
41
|
+
};
|
|
42
|
+
export default _default;
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -36,12 +36,12 @@ export type TablePlugin = NextEditorPlugin<'table', {
|
|
|
36
36
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: INPUT_METHOD.PICKER) => EditorCommand;
|
|
37
37
|
};
|
|
38
38
|
dependencies: [
|
|
39
|
-
OptionalPlugin<AccessibilityUtilsPlugin>,
|
|
40
39
|
AnalyticsPlugin,
|
|
41
40
|
ContentInsertionPlugin,
|
|
42
41
|
WidthPlugin,
|
|
43
42
|
GuidelinePlugin,
|
|
44
43
|
SelectionPlugin,
|
|
44
|
+
OptionalPlugin<AccessibilityUtilsPlugin>,
|
|
45
45
|
OptionalPlugin<MediaPlugin>,
|
|
46
46
|
OptionalPlugin<EditorViewModePlugin>
|
|
47
47
|
];
|
|
@@ -30,15 +30,7 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
30
30
|
commands: {
|
|
31
31
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
32
32
|
};
|
|
33
|
-
dependencies: [import("@atlaskit/editor-common/types").
|
|
34
|
-
dependencies: [];
|
|
35
|
-
actions: {
|
|
36
|
-
ariaNotify: (message: string) => void;
|
|
37
|
-
};
|
|
38
|
-
sharedState: {
|
|
39
|
-
message: string;
|
|
40
|
-
};
|
|
41
|
-
}, undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
33
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
42
34
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
43
35
|
sharedState: {
|
|
44
36
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -82,7 +74,13 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
82
74
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
83
75
|
};
|
|
84
76
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
85
|
-
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
77
|
+
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
78
|
+
dependencies: [];
|
|
79
|
+
actions: {
|
|
80
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
81
|
+
};
|
|
82
|
+
sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
|
|
83
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
86
84
|
pluginConfiguration: any;
|
|
87
85
|
dependencies: any;
|
|
88
86
|
sharedState: any;
|
|
@@ -132,15 +130,7 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
132
130
|
}, {
|
|
133
131
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
134
132
|
} | undefined>>];
|
|
135
|
-
}, import("../../../plugin").TablePluginOptions | undefined>, import("@atlaskit/editor-common/types").
|
|
136
|
-
dependencies: [];
|
|
137
|
-
actions: {
|
|
138
|
-
ariaNotify: (message: string) => void;
|
|
139
|
-
};
|
|
140
|
-
sharedState: {
|
|
141
|
-
message: string;
|
|
142
|
-
};
|
|
143
|
-
}, undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
133
|
+
}, import("../../../plugin").TablePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
144
134
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
145
135
|
sharedState: {
|
|
146
136
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -184,7 +174,13 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
184
174
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
185
175
|
};
|
|
186
176
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
187
|
-
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
177
|
+
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
178
|
+
dependencies: [];
|
|
179
|
+
actions: {
|
|
180
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
181
|
+
};
|
|
182
|
+
sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
|
|
183
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
188
184
|
pluginConfiguration: any;
|
|
189
185
|
dependencies: any;
|
|
190
186
|
sharedState: any;
|
|
@@ -11,15 +11,7 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
11
11
|
commands: {
|
|
12
12
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
13
13
|
};
|
|
14
|
-
dependencies: [import("@atlaskit/editor-common/types").
|
|
15
|
-
dependencies: [];
|
|
16
|
-
actions: {
|
|
17
|
-
ariaNotify: (message: string) => void;
|
|
18
|
-
};
|
|
19
|
-
sharedState: {
|
|
20
|
-
message: string;
|
|
21
|
-
};
|
|
22
|
-
}, undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
14
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
23
15
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
24
16
|
sharedState: {
|
|
25
17
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -63,7 +55,13 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
63
55
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
64
56
|
};
|
|
65
57
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
66
|
-
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
58
|
+
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
59
|
+
dependencies: [];
|
|
60
|
+
actions: {
|
|
61
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
62
|
+
};
|
|
63
|
+
sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
|
|
64
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
67
65
|
pluginConfiguration: any;
|
|
68
66
|
dependencies: any;
|
|
69
67
|
sharedState: any;
|
|
@@ -113,15 +111,7 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
113
111
|
}, {
|
|
114
112
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
115
113
|
} | undefined>>];
|
|
116
|
-
}, import("../../../plugin").TablePluginOptions | undefined>, import("@atlaskit/editor-common/types").
|
|
117
|
-
dependencies: [];
|
|
118
|
-
actions: {
|
|
119
|
-
ariaNotify: (message: string) => void;
|
|
120
|
-
};
|
|
121
|
-
sharedState: {
|
|
122
|
-
message: string;
|
|
123
|
-
};
|
|
124
|
-
}, undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
114
|
+
}, import("../../../plugin").TablePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
125
115
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
126
116
|
sharedState: {
|
|
127
117
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -165,7 +155,13 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
165
155
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
166
156
|
};
|
|
167
157
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
168
|
-
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
158
|
+
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
159
|
+
dependencies: [];
|
|
160
|
+
actions: {
|
|
161
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
162
|
+
};
|
|
163
|
+
sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
|
|
164
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
169
165
|
pluginConfiguration: any;
|
|
170
166
|
dependencies: any;
|
|
171
167
|
sharedState: any;
|
|
@@ -226,15 +222,7 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
226
222
|
commands: {
|
|
227
223
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
228
224
|
};
|
|
229
|
-
dependencies: [import("@atlaskit/editor-common/types").
|
|
230
|
-
dependencies: [];
|
|
231
|
-
actions: {
|
|
232
|
-
ariaNotify: (message: string) => void;
|
|
233
|
-
};
|
|
234
|
-
sharedState: {
|
|
235
|
-
message: string;
|
|
236
|
-
};
|
|
237
|
-
}, undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
225
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
238
226
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
239
227
|
sharedState: {
|
|
240
228
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -278,7 +266,13 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
278
266
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
279
267
|
};
|
|
280
268
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
281
|
-
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
269
|
+
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
270
|
+
dependencies: [];
|
|
271
|
+
actions: {
|
|
272
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
273
|
+
};
|
|
274
|
+
sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
|
|
275
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
282
276
|
pluginConfiguration: any;
|
|
283
277
|
dependencies: any;
|
|
284
278
|
sharedState: any;
|
|
@@ -328,15 +322,7 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
328
322
|
}, {
|
|
329
323
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
330
324
|
} | undefined>>];
|
|
331
|
-
}, import("../../../plugin").TablePluginOptions | undefined>, import("@atlaskit/editor-common/types").
|
|
332
|
-
dependencies: [];
|
|
333
|
-
actions: {
|
|
334
|
-
ariaNotify: (message: string) => void;
|
|
335
|
-
};
|
|
336
|
-
sharedState: {
|
|
337
|
-
message: string;
|
|
338
|
-
};
|
|
339
|
-
}, undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
325
|
+
}, import("../../../plugin").TablePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
340
326
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
341
327
|
sharedState: {
|
|
342
328
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -380,7 +366,13 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
380
366
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
381
367
|
};
|
|
382
368
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
383
|
-
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
369
|
+
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
370
|
+
dependencies: [];
|
|
371
|
+
actions: {
|
|
372
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
373
|
+
};
|
|
374
|
+
sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
|
|
375
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
384
376
|
pluginConfiguration: any;
|
|
385
377
|
dependencies: any;
|
|
386
378
|
sharedState: any;
|
|
@@ -39,15 +39,7 @@ export declare const TableFloatingControls: ({ editorView, tableRef, tableNode,
|
|
|
39
39
|
commands: {
|
|
40
40
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
41
41
|
};
|
|
42
|
-
dependencies: [import("@atlaskit/editor-common/types").
|
|
43
|
-
dependencies: [];
|
|
44
|
-
actions: {
|
|
45
|
-
ariaNotify: (message: string) => void;
|
|
46
|
-
};
|
|
47
|
-
sharedState: {
|
|
48
|
-
message: string;
|
|
49
|
-
};
|
|
50
|
-
}, undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
42
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
51
43
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
52
44
|
sharedState: {
|
|
53
45
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -91,7 +83,13 @@ export declare const TableFloatingControls: ({ editorView, tableRef, tableNode,
|
|
|
91
83
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
92
84
|
};
|
|
93
85
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
94
|
-
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
86
|
+
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
87
|
+
dependencies: [];
|
|
88
|
+
actions: {
|
|
89
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
90
|
+
};
|
|
91
|
+
sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
|
|
92
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
95
93
|
pluginConfiguration: any;
|
|
96
94
|
dependencies: any;
|
|
97
95
|
sharedState: any;
|
|
@@ -141,15 +139,7 @@ export declare const TableFloatingControls: ({ editorView, tableRef, tableNode,
|
|
|
141
139
|
}, {
|
|
142
140
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
143
141
|
} | undefined>>];
|
|
144
|
-
}, import("../../plugin").TablePluginOptions | undefined>, import("@atlaskit/editor-common/types").
|
|
145
|
-
dependencies: [];
|
|
146
|
-
actions: {
|
|
147
|
-
ariaNotify: (message: string) => void;
|
|
148
|
-
};
|
|
149
|
-
sharedState: {
|
|
150
|
-
message: string;
|
|
151
|
-
};
|
|
152
|
-
}, undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
142
|
+
}, import("../../plugin").TablePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
153
143
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
154
144
|
sharedState: {
|
|
155
145
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -193,7 +183,13 @@ export declare const TableFloatingControls: ({ editorView, tableRef, tableNode,
|
|
|
193
183
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
194
184
|
};
|
|
195
185
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
196
|
-
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
186
|
+
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
187
|
+
dependencies: [];
|
|
188
|
+
actions: {
|
|
189
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
190
|
+
};
|
|
191
|
+
sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
|
|
192
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
197
193
|
pluginConfiguration: any;
|
|
198
194
|
dependencies: any;
|
|
199
195
|
sharedState: any;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { getSelectedColumnIndexes, getSelectedRowIndexes, normalizeSelection, isSelectionUpdated, } from './selection';
|
|
2
2
|
export { findControlsHoverDecoration, createControlsHoverDecoration, createColumnControlsDecoration, createColumnSelectedDecoration, createCellHoverDecoration, updateDecorations, createResizeHandleDecoration, createColumnInsertLine, createColumnLineResize, createRowInsertLine, } from './decoration';
|
|
3
|
-
export { isIsolating, containsHeaderColumn, containsHeaderRow, checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled, getTableWidth, tablesHaveDifferentColumnWidths, tablesHaveDifferentNoOfColumns, isTableNested, anyChildCellMergedAcrossRow, supportedHeaderRow, } from './nodes';
|
|
3
|
+
export { isIsolating, containsHeaderColumn, containsHeaderRow, checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled, getTableWidth, tablesHaveDifferentColumnWidths, tablesHaveDifferentNoOfColumns, tablesHaveDifferentNoOfRows, isTableNested, anyChildCellMergedAcrossRow, supportedHeaderRow, } from './nodes';
|
|
4
4
|
export { unwrapContentFromTable, removeTableFromFirstChild, removeTableFromLastChild, transformSliceToRemoveOpenTable, transformSliceToCorrectEmptyTableCells, transformSliceToFixHardBreakProblemOnCopyFromCell, } from './paste';
|
|
5
5
|
export { isCell, isCornerButton, isInsertRowButton, isColumnControlsDecorations, isTableControlsButton, isTableContainerOrWrapper, isRowControlsButton, isDragRowControlsButton, isDragColumnFloatingInsertDot, isDragRowFloatingInsertDot, isDragCornerButton, getColumnOrRowIndex, getMousePositionHorizontalRelativeByElement, getMousePositionVerticalRelativeByElement, isResizeHandleDecoration, hasResizeHandler, findNearestCellIndexToPoint, } from './dom';
|
|
6
6
|
export { convertHTMLCellIndexToColumnIndex, getColumnsWidths, isColumnDeleteButtonVisible, getColumnDeleteButtonParams, getColumnClassNames, getColumnIndexMappedToColumnIndexInFirstRow, } from './column-controls';
|
|
7
7
|
export { getRowHeights, isRowDeleteButtonVisible, getRowDeleteButtonParams, getRowsParams, getRowClassNames, copyPreviousRow, } from './row-controls';
|
|
8
8
|
export type { RowParams } from './row-controls';
|
|
9
9
|
export { getSelectedTableInfo, getSelectedCellInfo } from './analytics';
|
|
10
|
-
export { getMergedCellsPositions } from './table';
|
|
10
|
+
export { getMergedCellsPositions, getAssistiveMessage } from './table';
|
|
11
11
|
export { updatePluginStateDecorations } from './update-plugin-state-decorations';
|
|
12
12
|
export { hasMergedCellsInColumn, hasMergedCellsInRow, hasMergedCellsInBetween, hasMergedCellsInSelection, findDuplicatePosition, checkEdgeHasMergedCells, } from './merged-cells';
|
|
13
13
|
export { createTableWithWidth } from './create';
|
|
@@ -9,6 +9,7 @@ export declare const checkIfNumberColumnEnabled: (selection: Selection) => boole
|
|
|
9
9
|
export declare const getTableWidth: (node: PmNode) => number;
|
|
10
10
|
export declare const tablesHaveDifferentColumnWidths: (currentTable: PmNode, previousTable: PmNode) => boolean;
|
|
11
11
|
export declare const tablesHaveDifferentNoOfColumns: (currentTable: PmNode, previousTable: PmNode) => boolean;
|
|
12
|
+
export declare const tablesHaveDifferentNoOfRows: (currentTable: PmNode, previousTable: PmNode) => boolean;
|
|
12
13
|
export declare const isTableNested: (state: EditorState, tablePos?: number) => boolean;
|
|
13
14
|
export declare const anyChildCellMergedAcrossRow: (node: PmNode) => boolean;
|
|
14
15
|
/**
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
|
+
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
1
3
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
4
|
import type { Rect } from '@atlaskit/editor-tables/table-map';
|
|
3
5
|
export declare const getMergedCellsPositions: (tr: Transaction) => number[];
|
|
4
6
|
export declare const colsToRect: (cols: Array<number>, noOfRows: number) => Rect;
|
|
7
|
+
export declare const getAssistiveMessage: (prevTableNode: PmNode, currentTableNode: PmNode, intl: IntlShape) => string;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next/src/types';
|
|
2
2
|
import type { Command, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
|
|
3
4
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
import type { Direction } from '@atlaskit/editor-tables/types';
|
|
5
6
|
export declare const initiateKeyboardColumnResizing: ({ ariaNotify, getIntl, }: {
|
|
6
|
-
ariaNotify?: ((message: string) => void) | undefined;
|
|
7
|
+
ariaNotify?: ((message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void) | undefined;
|
|
7
8
|
getIntl?: (() => IntlShape) | undefined;
|
|
8
9
|
}) => Command;
|
|
9
10
|
export declare const activateNextResizeArea: ({ direction, ariaNotify, getIntl, }: {
|
|
10
11
|
direction: Direction;
|
|
11
|
-
ariaNotify?: ((message: string) => void) | undefined;
|
|
12
|
+
ariaNotify?: ((message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void) | undefined;
|
|
12
13
|
getIntl?: (() => IntlShape) | undefined;
|
|
13
14
|
}) => Command;
|
|
14
15
|
export declare const changeColumnWidthByStep: ({ stepSize, getEditorContainerWidth, isTableScalingEnabled, ariaNotify, getIntl, }: {
|
|
15
16
|
stepSize: number;
|
|
16
17
|
getEditorContainerWidth: GetEditorContainerWidth;
|
|
17
18
|
isTableScalingEnabled: boolean;
|
|
18
|
-
ariaNotify?: ((message: string) => void) | undefined;
|
|
19
|
+
ariaNotify?: ((message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void) | undefined;
|
|
19
20
|
getIntl?: (() => IntlShape) | undefined;
|
|
20
21
|
originalTr?: Transaction | undefined;
|
|
21
22
|
}) => Command;
|
|
22
23
|
export declare const stopKeyboardColumnResizing: ({ ariaNotify, getIntl, originalTr, }: {
|
|
23
|
-
ariaNotify?: ((message: string) => void) | undefined;
|
|
24
|
+
ariaNotify?: ((message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void) | undefined;
|
|
24
25
|
getIntl?: (() => IntlShape) | undefined;
|
|
25
26
|
originalTr?: Transaction | undefined;
|
|
26
27
|
}) => Command;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
3
|
import type { TableColumnOrdering } from '@atlaskit/custom-steps';
|
|
3
4
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
4
5
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
6
|
import type { EditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
6
7
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
-
import type { RowStickyState, StickyPluginState } from '../pm-plugins/sticky-headers';
|
|
9
9
|
import type { CellHoverMeta, PluginInjectionAPI } from '../types';
|
|
10
|
-
import { ShadowEvent } from '../types';
|
|
11
10
|
import type { TableOptions } from './types';
|
|
12
11
|
export interface ComponentProps {
|
|
13
12
|
view: EditorView;
|
|
@@ -30,61 +29,14 @@ export interface ComponentProps {
|
|
|
30
29
|
getEditorFeatureFlags: GetEditorFeatureFlags;
|
|
31
30
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
32
31
|
pluginInjectionApi?: PluginInjectionAPI;
|
|
32
|
+
intl: IntlShape;
|
|
33
33
|
isInDanger?: boolean;
|
|
34
34
|
hoveredRows?: number[];
|
|
35
35
|
hoveredCell?: CellHoverMeta;
|
|
36
36
|
isTableHovered?: boolean;
|
|
37
37
|
isWholeTableInDanger?: boolean;
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
[ShadowEvent.SHOW_BEFORE_SHADOW]: boolean;
|
|
44
|
-
[ShadowEvent.SHOW_AFTER_SHADOW]: boolean;
|
|
45
|
-
tableWrapperWidth?: number;
|
|
46
|
-
tableWrapperHeight?: number;
|
|
47
|
-
}
|
|
48
|
-
declare class TableComponent extends React.Component<ComponentProps, TableState> {
|
|
49
|
-
static displayName: string;
|
|
50
|
-
state: TableState;
|
|
51
|
-
private wrapper?;
|
|
52
|
-
private table?;
|
|
53
|
-
private node;
|
|
54
|
-
private containerWidth?;
|
|
55
|
-
private wasResizing?;
|
|
56
|
-
private tableNodeWidth?;
|
|
57
|
-
private layoutSize?;
|
|
58
|
-
private overflowShadowsObserver?;
|
|
59
|
-
private stickyScrollbar?;
|
|
60
|
-
private isInitialOverflowSent;
|
|
61
|
-
private initialOverflowCaptureTimerId?;
|
|
62
|
-
private resizeObserver?;
|
|
63
|
-
private dragAndDropCleanupFn?;
|
|
64
|
-
constructor(props: ComponentProps);
|
|
65
|
-
componentDidMount(): void;
|
|
66
|
-
componentWillUnmount(): void;
|
|
67
|
-
handleColgroupUpdates(force?: boolean): void;
|
|
68
|
-
componentDidUpdate(_: any, prevState: TableState): void;
|
|
69
|
-
private updateShadowState;
|
|
70
|
-
private createShadowSentinels;
|
|
71
|
-
private observeTable;
|
|
72
|
-
onStickyState: (state: StickyPluginState) => void;
|
|
73
|
-
prevTableState: any;
|
|
74
|
-
render(): JSX.Element;
|
|
75
|
-
private handleScroll;
|
|
76
|
-
private handleTableResizing;
|
|
77
|
-
private scaleTable;
|
|
78
|
-
private setTimerToSendInitialOverflowCaptured;
|
|
79
|
-
private handleAutoSize;
|
|
80
|
-
private handleWindowResize;
|
|
81
|
-
private getParentNodeWidth;
|
|
82
|
-
private updateParentWidth;
|
|
83
|
-
private tableNodeLayoutSize;
|
|
84
|
-
private scaleTableDebounced;
|
|
85
|
-
private handleTableResizingDebounced;
|
|
86
|
-
private handleScrollDebounced;
|
|
87
|
-
private handleAutoSizeDebounced;
|
|
88
|
-
private handleWindowResizeDebounced;
|
|
89
|
-
}
|
|
90
|
-
export default TableComponent;
|
|
39
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<ComponentProps>> & {
|
|
40
|
+
WrappedComponent: React.ComponentType<ComponentProps>;
|
|
41
|
+
};
|
|
42
|
+
export default _default;
|
|
@@ -36,12 +36,12 @@ export type TablePlugin = NextEditorPlugin<'table', {
|
|
|
36
36
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: INPUT_METHOD.PICKER) => EditorCommand;
|
|
37
37
|
};
|
|
38
38
|
dependencies: [
|
|
39
|
-
OptionalPlugin<AccessibilityUtilsPlugin>,
|
|
40
39
|
AnalyticsPlugin,
|
|
41
40
|
ContentInsertionPlugin,
|
|
42
41
|
WidthPlugin,
|
|
43
42
|
GuidelinePlugin,
|
|
44
43
|
SelectionPlugin,
|
|
44
|
+
OptionalPlugin<AccessibilityUtilsPlugin>,
|
|
45
45
|
OptionalPlugin<MediaPlugin>,
|
|
46
46
|
OptionalPlugin<EditorViewModePlugin>
|
|
47
47
|
];
|
|
@@ -32,16 +32,6 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
32
32
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
33
33
|
};
|
|
34
34
|
dependencies: [
|
|
35
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
36
|
-
dependencies: [
|
|
37
|
-
];
|
|
38
|
-
actions: {
|
|
39
|
-
ariaNotify: (message: string) => void;
|
|
40
|
-
};
|
|
41
|
-
sharedState: {
|
|
42
|
-
message: string;
|
|
43
|
-
};
|
|
44
|
-
}, undefined>>,
|
|
45
35
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
46
36
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
47
37
|
sharedState: {
|
|
@@ -99,6 +89,14 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
99
89
|
};
|
|
100
90
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
101
91
|
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>,
|
|
92
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
93
|
+
dependencies: [
|
|
94
|
+
];
|
|
95
|
+
actions: {
|
|
96
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
97
|
+
};
|
|
98
|
+
sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
|
|
99
|
+
}, undefined>>,
|
|
102
100
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
103
101
|
pluginConfiguration: any;
|
|
104
102
|
dependencies: any;
|
|
@@ -159,16 +157,6 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
159
157
|
} | undefined>>
|
|
160
158
|
];
|
|
161
159
|
}, import("../../../plugin").TablePluginOptions | undefined>,
|
|
162
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
163
|
-
dependencies: [
|
|
164
|
-
];
|
|
165
|
-
actions: {
|
|
166
|
-
ariaNotify: (message: string) => void;
|
|
167
|
-
};
|
|
168
|
-
sharedState: {
|
|
169
|
-
message: string;
|
|
170
|
-
};
|
|
171
|
-
}, undefined>>,
|
|
172
160
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
173
161
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
174
162
|
sharedState: {
|
|
@@ -226,6 +214,14 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
226
214
|
};
|
|
227
215
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
228
216
|
}, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>,
|
|
217
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
218
|
+
dependencies: [
|
|
219
|
+
];
|
|
220
|
+
actions: {
|
|
221
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
222
|
+
};
|
|
223
|
+
sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
|
|
224
|
+
}, undefined>>,
|
|
229
225
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
230
226
|
pluginConfiguration: any;
|
|
231
227
|
dependencies: any;
|