@atlaskit/editor-plugin-table 22.2.8 → 22.2.10
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 +14 -0
- package/dist/cjs/pm-plugins/analytics/plugin-factory.js +4 -4
- package/dist/cjs/pm-plugins/decorations/utils/column-resizing.js +11 -26
- package/dist/cjs/pm-plugins/drag-and-drop/plugin-factory.js +19 -19
- package/dist/cjs/pm-plugins/plugin-factory.js +30 -30
- package/dist/cjs/pm-plugins/sticky-headers/plugin-state.js +16 -16
- package/dist/cjs/pm-plugins/utils/decoration.js +4 -65
- package/dist/cjs/types/index.js +0 -2
- package/dist/cjs/ui/common-styles.js +1 -1
- package/dist/es2019/pm-plugins/analytics/plugin-factory.js +4 -5
- package/dist/es2019/pm-plugins/decorations/utils/column-resizing.js +3 -9
- package/dist/es2019/pm-plugins/drag-and-drop/plugin-factory.js +6 -9
- package/dist/es2019/pm-plugins/plugin-factory.js +5 -6
- package/dist/es2019/pm-plugins/sticky-headers/plugin-state.js +3 -4
- package/dist/es2019/pm-plugins/utils/decoration.js +4 -65
- package/dist/es2019/types/index.js +0 -2
- package/dist/es2019/ui/common-styles.js +0 -4
- package/dist/esm/pm-plugins/analytics/plugin-factory.js +4 -5
- package/dist/esm/pm-plugins/decorations/utils/column-resizing.js +11 -25
- package/dist/esm/pm-plugins/drag-and-drop/plugin-factory.js +19 -20
- package/dist/esm/pm-plugins/plugin-factory.js +30 -31
- package/dist/esm/pm-plugins/sticky-headers/plugin-state.js +16 -16
- package/dist/esm/pm-plugins/utils/decoration.js +4 -65
- package/dist/esm/types/index.js +0 -2
- package/dist/esm/ui/common-styles.js +1 -1
- package/dist/types/pm-plugins/analytics/plugin-factory.d.ts +8 -1
- package/dist/types/pm-plugins/drag-and-drop/plugin-factory.d.ts +8 -1
- package/dist/types/pm-plugins/plugin-factory.d.ts +7 -1
- package/dist/types/pm-plugins/sticky-headers/plugin-state.d.ts +5 -1
- package/dist/types/pm-plugins/table-width-in-comment-fix.d.ts +1 -3
- package/dist/types/pm-plugins/table-width.d.ts +1 -5
- package/dist/types/pm-plugins/utils/decoration.d.ts +1 -1
- package/dist/types/pm-plugins/view-mode-sort/index.d.ts +4 -2
- package/dist/types/types/index.d.ts +74 -76
- package/dist/types/ui/FloatingContextualButton/index.d.ts +1 -2
- package/dist/types/ui/FloatingContextualMenu/index.d.ts +1 -6
- package/dist/types-ts4.5/pm-plugins/analytics/plugin-factory.d.ts +8 -1
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin-factory.d.ts +8 -1
- package/dist/types-ts4.5/pm-plugins/plugin-factory.d.ts +7 -1
- package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin-state.d.ts +5 -1
- package/dist/types-ts4.5/pm-plugins/table-width-in-comment-fix.d.ts +1 -3
- package/dist/types-ts4.5/pm-plugins/table-width.d.ts +1 -5
- package/dist/types-ts4.5/pm-plugins/utils/decoration.d.ts +1 -4
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/index.d.ts +5 -3
- package/dist/types-ts4.5/types/index.d.ts +74 -76
- package/dist/types-ts4.5/ui/FloatingContextualButton/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/FloatingContextualMenu/index.d.ts +1 -6
- package/package.json +4 -4
|
@@ -316,121 +316,101 @@ export declare enum TableDecorations {
|
|
|
316
316
|
COLUMN_RESIZING_HANDLE_WIDGET = "COLUMN_RESIZING_HANDLE_WIDGET",
|
|
317
317
|
COLUMN_RESIZING_HANDLE_LINE = "COLUMN_RESIZING_HANDLE_LINE",
|
|
318
318
|
COLUMN_INSERT_LINE = "COLUMN_INSERT_LINE",
|
|
319
|
-
ROW_INSERT_LINE = "ROW_INSERT_LINE"
|
|
320
|
-
LAST_CELL_ELEMENT = "LAST_CELL_ELEMENT"
|
|
319
|
+
ROW_INSERT_LINE = "ROW_INSERT_LINE"
|
|
321
320
|
}
|
|
322
321
|
export declare const TableCssClassName: {
|
|
323
322
|
/** Classic controls */
|
|
324
323
|
COLUMN_CONTROLS: string;
|
|
325
324
|
COLUMN_CONTROLS_DECORATIONS: string;
|
|
326
325
|
COLUMN_SELECTED: string;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
326
|
+
CONTEXTUAL_MENU_BUTTON: string;
|
|
327
|
+
CONTEXTUAL_MENU_BUTTON_FIXED: string;
|
|
328
|
+
CONTEXTUAL_MENU_BUTTON_WRAP: string;
|
|
329
|
+
CONTEXTUAL_MENU_ICON: string;
|
|
330
|
+
CONTEXTUAL_MENU_ICON_SMALL: string;
|
|
331
|
+
CONTEXTUAL_SUBMENU: string;
|
|
332
332
|
CONTROLS_BUTTON: string;
|
|
333
333
|
CONTROLS_BUTTON_ICON: string;
|
|
334
|
+
CONTROLS_BUTTON_OVERLAY: string;
|
|
335
|
+
CONTROLS_CORNER_BUTTON: string;
|
|
336
|
+
CONTROLS_DELETE_BUTTON: string;
|
|
337
|
+
CONTROLS_DELETE_BUTTON_WRAP: string;
|
|
338
|
+
CONTROLS_FLOATING_BUTTON_COLUMN: string;
|
|
339
|
+
CONTROLS_FLOATING_BUTTON_ROW: string;
|
|
334
340
|
CONTROLS_INSERT_BUTTON: string;
|
|
335
341
|
CONTROLS_INSERT_BUTTON_INNER: string;
|
|
336
342
|
CONTROLS_INSERT_BUTTON_WRAP: string;
|
|
343
|
+
CONTROLS_INSERT_COLUMN: string;
|
|
337
344
|
CONTROLS_INSERT_LINE: string;
|
|
338
|
-
CONTROLS_BUTTON_OVERLAY: string;
|
|
339
|
-
DRAG_CONTROLS_INSERT_BUTTON: string;
|
|
340
|
-
DRAG_CONTROLS_INSERT_BUTTON_INNER: string;
|
|
341
|
-
DRAG_CONTROLS_INSERT_BUTTON_INNER_COLUMN: string;
|
|
342
|
-
DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW: string;
|
|
343
|
-
DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW_CHROMELESS: string;
|
|
344
|
-
DRAG_CONTROLS_INSERT_BUTTON_WRAP: string;
|
|
345
345
|
CONTROLS_INSERT_MARKER: string;
|
|
346
|
-
CONTROLS_INSERT_COLUMN: string;
|
|
347
346
|
CONTROLS_INSERT_ROW: string;
|
|
348
|
-
CONTROLS_DELETE_BUTTON_WRAP: string;
|
|
349
|
-
CONTROLS_DELETE_BUTTON: string;
|
|
350
|
-
CONTROLS_FLOATING_BUTTON_COLUMN: string;
|
|
351
|
-
CONTROLS_FLOATING_BUTTON_ROW: string;
|
|
352
347
|
CORNER_CONTROLS: string;
|
|
353
|
-
CORNER_CONTROLS_INSERT_ROW_MARKER: string;
|
|
354
348
|
CORNER_CONTROLS_INSERT_COLUMN_MARKER: string;
|
|
355
|
-
|
|
356
|
-
/** drag and drop controls */
|
|
357
|
-
DRAG_ROW_CONTROLS_WRAPPER: string;
|
|
358
|
-
DRAG_ROW_CONTROLS: string;
|
|
359
|
-
DRAG_ROW_FLOATING_INSERT_DOT_WRAPPER: string;
|
|
360
|
-
DRAG_ROW_FLOATING_INSERT_DOT: string;
|
|
361
|
-
DRAG_ROW_FLOATING_DRAG_HANDLE: string;
|
|
349
|
+
CORNER_CONTROLS_INSERT_ROW_MARKER: string;
|
|
362
350
|
DRAG_COLUMN_CONTROLS: string;
|
|
363
|
-
|
|
364
|
-
DRAG_COLUMN_FLOATING_INSERT_DOT: string;
|
|
351
|
+
DRAG_COLUMN_CONTROLS_INNER: string;
|
|
365
352
|
DRAG_COLUMN_CONTROLS_WRAPPER: string;
|
|
366
353
|
DRAG_COLUMN_DROP_TARGET_CONTROLS: string;
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
354
|
+
DRAG_COLUMN_FLOATING_INSERT_DOT: string;
|
|
355
|
+
DRAG_COLUMN_FLOATING_INSERT_DOT_WRAPPER: string;
|
|
356
|
+
DRAG_CONTROLS_INSERT_BUTTON: string;
|
|
357
|
+
DRAG_CONTROLS_INSERT_BUTTON_INNER: string;
|
|
358
|
+
DRAG_CONTROLS_INSERT_BUTTON_INNER_COLUMN: string;
|
|
359
|
+
DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW: string;
|
|
360
|
+
DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW_CHROMELESS: string;
|
|
361
|
+
DRAG_CONTROLS_INSERT_BUTTON_WRAP: string;
|
|
370
362
|
DRAG_CORNER_BUTTON: string;
|
|
371
363
|
DRAG_CORNER_BUTTON_INNER: string;
|
|
372
|
-
|
|
373
|
-
|
|
364
|
+
DRAG_HANDLE_BUTTON_CLICKABLE_ZONE: string;
|
|
365
|
+
DRAG_HANDLE_BUTTON_CONTAINER: string;
|
|
374
366
|
/** disabled classes */
|
|
375
367
|
DRAG_HANDLE_DISABLED: string;
|
|
376
368
|
/** minimised handle class */
|
|
377
369
|
DRAG_HANDLE_MINIMISED: string;
|
|
370
|
+
DRAG_ROW_CONTROLS: string;
|
|
371
|
+
/** drag and drop controls */
|
|
372
|
+
DRAG_ROW_CONTROLS_WRAPPER: string;
|
|
373
|
+
DRAG_ROW_FLOATING_DRAG_HANDLE: string;
|
|
374
|
+
DRAG_ROW_FLOATING_INSERT_DOT: string;
|
|
375
|
+
DRAG_ROW_FLOATING_INSERT_DOT_WRAPPER: string;
|
|
378
376
|
DRAG_SUBMENU: string;
|
|
379
377
|
DRAG_SUBMENU_ICON: string;
|
|
380
|
-
/** Other classes */
|
|
381
|
-
NUMBERED_COLUMN: string;
|
|
382
|
-
NUMBERED_COLUMN_BUTTON: string;
|
|
383
|
-
NUMBERED_COLUMN_BUTTON_DISABLED: string;
|
|
384
|
-
HOVERED_COLUMN: string;
|
|
385
|
-
HOVERED_ROW: string;
|
|
386
|
-
HOVERED_TABLE: string;
|
|
387
|
-
HOVERED_NO_HIGHLIGHT: string;
|
|
388
378
|
HOVERED_CELL: string;
|
|
389
|
-
HOVERED_CELL_IN_DANGER: string;
|
|
390
379
|
HOVERED_CELL_ACTIVE: string;
|
|
380
|
+
HOVERED_CELL_IN_DANGER: string;
|
|
391
381
|
HOVERED_CELL_WARNING: string;
|
|
382
|
+
HOVERED_COLUMN: string;
|
|
392
383
|
HOVERED_DELETE_BUTTON: string;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
384
|
+
HOVERED_NO_HIGHLIGHT: string;
|
|
385
|
+
HOVERED_ROW: string;
|
|
386
|
+
HOVERED_TABLE: string;
|
|
396
387
|
IS_RESIZING: string;
|
|
397
|
-
RESIZE_HANDLE_DECORATION: string;
|
|
398
|
-
CONTEXTUAL_SUBMENU: string;
|
|
399
|
-
CONTEXTUAL_MENU_BUTTON_WRAP: string;
|
|
400
|
-
CONTEXTUAL_MENU_BUTTON: string;
|
|
401
|
-
CONTEXTUAL_MENU_BUTTON_FIXED: string;
|
|
402
|
-
CONTEXTUAL_MENU_ICON: string;
|
|
403
|
-
CONTEXTUAL_MENU_ICON_SMALL: string;
|
|
404
|
-
SELECTED_CELL: string;
|
|
405
|
-
NODEVIEW_WRAPPER: string;
|
|
406
|
-
TABLE_SELECTED: string;
|
|
407
|
-
TABLE_CELL: 'pm-table-cell-content-wrap';
|
|
408
|
-
TABLE_HEADER_CELL: 'pm-table-header-content-wrap';
|
|
409
|
-
TABLE_STICKY: string;
|
|
410
|
-
TABLE_CHROMELESS: string;
|
|
411
|
-
TOP_LEFT_CELL: string;
|
|
412
|
-
LAST_ITEM_IN_CELL: string;
|
|
413
|
-
WITH_COLUMN_INSERT_LINE: string;
|
|
414
|
-
WITH_COLUMN_INSERT_LINE_INACTIVE: string;
|
|
415
|
-
WITH_FIRST_COLUMN_INSERT_LINE: string;
|
|
416
|
-
WITH_FIRST_COLUMN_INSERT_LINE_INACTIVE: string;
|
|
417
|
-
WITH_LAST_COLUMN_INSERT_LINE: string;
|
|
418
|
-
WITH_LAST_COLUMN_INSERT_LINE_INACTIVE: string;
|
|
419
|
-
WITH_RESIZE_LINE: string;
|
|
420
|
-
WITH_RESIZE_LINE_LAST_COLUMN: string;
|
|
421
|
-
WITH_DRAG_RESIZE_LINE: string;
|
|
422
|
-
WITH_DRAG_RESIZE_LINE_LAST_COLUMN: string;
|
|
423
|
-
WITH_ROW_INSERT_LINE: string;
|
|
424
|
-
WITH_ROW_INSERT_LINE_INACTIVE: string;
|
|
425
|
-
WITH_LAST_ROW_INSERT_LINE: string;
|
|
426
|
-
WITH_LAST_ROW_INSERT_LINE_INACTIVE: string;
|
|
427
388
|
NATIVE_STICKY: string;
|
|
428
389
|
NATIVE_STICKY_ACTIVE: string;
|
|
390
|
+
/** nested tables classes */
|
|
391
|
+
NESTED_TABLE_WITH_CONTROLS: string;
|
|
429
392
|
NO_OVERFLOW: string;
|
|
393
|
+
NODEVIEW_WRAPPER: string;
|
|
394
|
+
/** Other classes */
|
|
395
|
+
NUMBERED_COLUMN: string;
|
|
396
|
+
NUMBERED_COLUMN_BUTTON: string;
|
|
397
|
+
NUMBERED_COLUMN_BUTTON_DISABLED: string;
|
|
398
|
+
RESIZE_CURSOR: string;
|
|
399
|
+
RESIZE_HANDLE_DECORATION: string;
|
|
400
|
+
RESIZING_PLUGIN: string;
|
|
401
|
+
ROW_CONTROLS: string;
|
|
402
|
+
ROW_CONTROLS_BUTTON: string;
|
|
403
|
+
ROW_CONTROLS_BUTTON_WRAP: string;
|
|
404
|
+
ROW_CONTROLS_INNER: string;
|
|
405
|
+
ROW_CONTROLS_WRAPPER: string;
|
|
406
|
+
SELECTED_CELL: string;
|
|
407
|
+
TABLE_CELL: 'pm-table-cell-content-wrap';
|
|
430
408
|
TABLE_CELL_NODEVIEW_CONTENT_DOM: 'pm-table-cell-nodeview-content-dom';
|
|
431
409
|
TABLE_CELL_WRAPPER: 'pm-table-cell-content-wrap';
|
|
410
|
+
TABLE_CHROMELESS: string;
|
|
432
411
|
TABLE_COLUMN_CONTROLS_DECORATIONS: 'pm-table-column-controls-decoration';
|
|
433
412
|
TABLE_CONTAINER: 'pm-table-container';
|
|
413
|
+
TABLE_HEADER_CELL: 'pm-table-header-content-wrap';
|
|
434
414
|
TABLE_HEADER_CELL_WRAPPER: 'pm-table-header-content-wrap';
|
|
435
415
|
TABLE_LEFT_BORDER: 'pm-table-left-border';
|
|
436
416
|
TABLE_LEFT_SHADOW: 'pm-table-with-left-shadow';
|
|
@@ -441,8 +421,10 @@ export declare const TableCssClassName: {
|
|
|
441
421
|
TABLE_RIGHT_SHADOW: 'pm-table-with-right-shadow';
|
|
442
422
|
TABLE_ROW_CONTROLS_WRAPPER: 'pm-table-row-controls-wrapper';
|
|
443
423
|
TABLE_SCROLL_INLINE_SHADOW: 'pm-table-scroll-inline-shadow';
|
|
424
|
+
TABLE_SELECTED: string;
|
|
444
425
|
TABLE_SHADOW_SENTINEL_LEFT: 'pm-table-shadow-sentinel-left';
|
|
445
426
|
TABLE_SHADOW_SENTINEL_RIGHT: 'pm-table-shadow-sentinel-right';
|
|
427
|
+
TABLE_STICKY: string;
|
|
446
428
|
TABLE_STICKY_SCROLLBAR_CONTAINER: 'pm-table-sticky-scrollbar-container';
|
|
447
429
|
TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: 'pm-table-sticky-scrollbar-sentinel-bottom';
|
|
448
430
|
TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: 'pm-table-sticky-scrollbar-sentinel-top';
|
|
@@ -451,6 +433,22 @@ export declare const TableCssClassName: {
|
|
|
451
433
|
TABLE_STICKY_SHADOW: 'pm-table-sticky-shadow';
|
|
452
434
|
TABLE_STICKY_WRAPPER: 'pm-table-sticky-wrapper';
|
|
453
435
|
TABLE_VIEW_CONTENT_WRAP: 'tableView-content-wrap';
|
|
436
|
+
TOP_LEFT_CELL: string;
|
|
437
|
+
WITH_COLUMN_INSERT_LINE: string;
|
|
438
|
+
WITH_COLUMN_INSERT_LINE_INACTIVE: string;
|
|
439
|
+
WITH_CONTROLS: string;
|
|
440
|
+
WITH_DRAG_RESIZE_LINE: string;
|
|
441
|
+
WITH_DRAG_RESIZE_LINE_LAST_COLUMN: string;
|
|
442
|
+
WITH_FIRST_COLUMN_INSERT_LINE: string;
|
|
443
|
+
WITH_FIRST_COLUMN_INSERT_LINE_INACTIVE: string;
|
|
444
|
+
WITH_LAST_COLUMN_INSERT_LINE: string;
|
|
445
|
+
WITH_LAST_COLUMN_INSERT_LINE_INACTIVE: string;
|
|
446
|
+
WITH_LAST_ROW_INSERT_LINE: string;
|
|
447
|
+
WITH_LAST_ROW_INSERT_LINE_INACTIVE: string;
|
|
448
|
+
WITH_RESIZE_LINE: string;
|
|
449
|
+
WITH_RESIZE_LINE_LAST_COLUMN: string;
|
|
450
|
+
WITH_ROW_INSERT_LINE: string;
|
|
451
|
+
WITH_ROW_INSERT_LINE_INACTIVE: string;
|
|
454
452
|
};
|
|
455
453
|
export interface ToolbarMenuConfig {
|
|
456
454
|
allowCollapse?: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx } from '@emotion/react';
|
|
2
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -18,4 +17,4 @@ export interface Props {
|
|
|
18
17
|
tableWrapper?: HTMLElement;
|
|
19
18
|
targetCellPosition: number;
|
|
20
19
|
}
|
|
21
|
-
export default function (props: Props):
|
|
20
|
+
export default function (props: Props): JSX.Element;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
1
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
7
2
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
8
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -24,7 +19,7 @@ interface Props {
|
|
|
24
19
|
targetCellPosition?: number;
|
|
25
20
|
}
|
|
26
21
|
declare const FloatingContextualMenu: {
|
|
27
|
-
({ mountPoint, boundariesElement, scrollableElement, editorView, isOpen, pluginConfig, editorAnalyticsAPI, getEditorContainerWidth, getEditorFeatureFlags, isCellMenuOpenByKeyboard, isCommentEditor, api, isDragMenuOpen, }: Props):
|
|
22
|
+
({ mountPoint, boundariesElement, scrollableElement, editorView, isOpen, pluginConfig, editorAnalyticsAPI, getEditorContainerWidth, getEditorFeatureFlags, isCellMenuOpenByKeyboard, isCommentEditor, api, isDragMenuOpen, }: Props): JSX.Element | null;
|
|
28
23
|
displayName: string;
|
|
29
24
|
};
|
|
30
25
|
export default FloatingContextualMenu;
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import type { AnalyticPluginAction } from './actions';
|
|
5
|
+
import type { AnalyticPluginState } from './types';
|
|
6
|
+
export declare const createPluginState: (dispatch: Dispatch, initialState: AnalyticPluginState | ((state: EditorState) => AnalyticPluginState)) => SafeStateField<AnalyticPluginState>;
|
|
7
|
+
export declare const createCommand: <A = AnalyticPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
8
|
+
export declare const getPluginState: (state: EditorState) => AnalyticPluginState;
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import type { DragAndDropPluginAction } from './actions';
|
|
5
|
+
import type { DragAndDropPluginState } from './types';
|
|
6
|
+
export declare const createPluginState: (dispatch: Dispatch, initialState: DragAndDropPluginState | ((state: EditorState) => DragAndDropPluginState)) => SafeStateField<DragAndDropPluginState>;
|
|
7
|
+
export declare const createCommand: <A = DragAndDropPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
8
|
+
export declare const getPluginState: (state: EditorState) => DragAndDropPluginState;
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import type { TablePluginState, TablePluginAction } from '../types';
|
|
5
|
+
export declare const createPluginState: (dispatch: Dispatch, initialState: TablePluginState | ((state: EditorState) => TablePluginState)) => SafeStateField<TablePluginState>;
|
|
6
|
+
export declare const createCommand: <A = TablePluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
7
|
+
export declare const getPluginState: (state: EditorState) => TablePluginState;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
1
4
|
import type { StickyPluginAction, StickyPluginState } from './types';
|
|
2
|
-
declare const createPluginState: (dispatch:
|
|
5
|
+
declare const createPluginState: (dispatch: Dispatch, initialState: StickyPluginState | ((state: EditorState) => StickyPluginState)) => SafeStateField<StickyPluginState>;
|
|
6
|
+
declare const createCommand: <A = StickyPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
3
7
|
export { createPluginState, createCommand };
|
|
@@ -5,7 +5,5 @@ type TableWidthInCommentFixPluginState = {
|
|
|
5
5
|
documentHasLoadedOnce: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare const pluginKey: PluginKey<TableWidthInCommentFixPluginState>;
|
|
8
|
-
declare const createPlugin: (dispatch: Dispatch, isTableAlignmentEnabled: boolean) => SafePlugin<
|
|
9
|
-
documentHasLoadedOnce: boolean;
|
|
10
|
-
}>;
|
|
8
|
+
declare const createPlugin: (dispatch: Dispatch, isTableAlignmentEnabled: boolean) => SafePlugin<TableWidthInCommentFixPluginState>;
|
|
11
9
|
export { createPlugin };
|
|
@@ -13,9 +13,5 @@ type TableWidthPluginState = {
|
|
|
13
13
|
tableRef: HTMLTableElement | null;
|
|
14
14
|
};
|
|
15
15
|
export declare const pluginKey: PluginKey<TableWidthPluginState>;
|
|
16
|
-
declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent, fullWidthEnabled: boolean, maxWidthEnabled: boolean, isTableScalingEnabled: boolean, isTableAlignmentEnabled: boolean, isCommentEditor: boolean) => SafePlugin<
|
|
17
|
-
resizing: boolean;
|
|
18
|
-
tableLocalId: string;
|
|
19
|
-
tableRef: null;
|
|
20
|
-
}>;
|
|
16
|
+
declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent, fullWidthEnabled: boolean, maxWidthEnabled: boolean, isTableScalingEnabled: boolean, isTableAlignmentEnabled: boolean, isCommentEditor: boolean) => SafePlugin<TableWidthPluginState>;
|
|
21
17
|
export { createPlugin };
|
|
@@ -13,10 +13,7 @@ export declare const createControlsHoverDecoration: (cells: Cell[], type: "row"
|
|
|
13
13
|
export declare const createColumnSelectedDecoration: (tr: Transaction | ReadonlyTransaction) => Decoration[];
|
|
14
14
|
export declare const createColumnControlsDecoration: (selection: Selection) => Decoration[];
|
|
15
15
|
export declare const updateDecorations: (node: PmNode, decorationSet: DecorationSet, decorations: Decoration[], key: TableDecorations) => DecorationSet;
|
|
16
|
-
export declare const createResizeHandleDecoration: (tr: Transaction | ReadonlyTransaction, rowIndexTarget: number, columnEndIndexTarget: Omit<CellColumnPositioning, "left">, includeTooltip: boolean | undefined, getIntl: () => IntlShape, nodeViewPortalProviderAPI: PortalProviderAPI) => [
|
|
17
|
-
Decoration[],
|
|
18
|
-
Decoration[]
|
|
19
|
-
];
|
|
16
|
+
export declare const createResizeHandleDecoration: (tr: Transaction | ReadonlyTransaction, rowIndexTarget: number, columnEndIndexTarget: Omit<CellColumnPositioning, "left">, includeTooltip: boolean | undefined, getIntl: () => IntlShape, nodeViewPortalProviderAPI: PortalProviderAPI) => Decoration[];
|
|
20
17
|
export declare const createColumnLineResize: (selection: Selection, cellColumnPositioning: Omit<CellColumnPositioning, "left">) => Decoration[];
|
|
21
18
|
export declare const createColumnInsertLine: (columnIndex: number, selection: Selection, hasMergedCells: boolean) => Decoration[];
|
|
22
19
|
export declare const createRowInsertLine: (rowIndex: number, selection: Selection, hasMergedCells: boolean) => Decoration[];
|
|
@@ -6,14 +6,16 @@
|
|
|
6
6
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
7
7
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
8
8
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
|
+
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
9
10
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
10
11
|
import type tablePlugin from '../../tablePlugin';
|
|
12
|
+
import type { TableSortMeta } from './types';
|
|
11
13
|
export declare const createPlugin: (api: ExtractInjectionAPI<typeof tablePlugin>, nodeViewPortalProviderAPI: PortalProviderAPI) => SafePlugin<{
|
|
12
|
-
decorations: DecorationSet;
|
|
13
14
|
allTables: [
|
|
14
15
|
string,
|
|
15
|
-
|
|
16
|
+
Node,
|
|
16
17
|
number
|
|
17
18
|
][];
|
|
18
|
-
|
|
19
|
+
decorations: DecorationSet;
|
|
20
|
+
sort: TableSortMeta;
|
|
19
21
|
}>;
|
|
@@ -316,121 +316,101 @@ export declare enum TableDecorations {
|
|
|
316
316
|
COLUMN_RESIZING_HANDLE_WIDGET = "COLUMN_RESIZING_HANDLE_WIDGET",
|
|
317
317
|
COLUMN_RESIZING_HANDLE_LINE = "COLUMN_RESIZING_HANDLE_LINE",
|
|
318
318
|
COLUMN_INSERT_LINE = "COLUMN_INSERT_LINE",
|
|
319
|
-
ROW_INSERT_LINE = "ROW_INSERT_LINE"
|
|
320
|
-
LAST_CELL_ELEMENT = "LAST_CELL_ELEMENT"
|
|
319
|
+
ROW_INSERT_LINE = "ROW_INSERT_LINE"
|
|
321
320
|
}
|
|
322
321
|
export declare const TableCssClassName: {
|
|
323
322
|
/** Classic controls */
|
|
324
323
|
COLUMN_CONTROLS: string;
|
|
325
324
|
COLUMN_CONTROLS_DECORATIONS: string;
|
|
326
325
|
COLUMN_SELECTED: string;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
326
|
+
CONTEXTUAL_MENU_BUTTON: string;
|
|
327
|
+
CONTEXTUAL_MENU_BUTTON_FIXED: string;
|
|
328
|
+
CONTEXTUAL_MENU_BUTTON_WRAP: string;
|
|
329
|
+
CONTEXTUAL_MENU_ICON: string;
|
|
330
|
+
CONTEXTUAL_MENU_ICON_SMALL: string;
|
|
331
|
+
CONTEXTUAL_SUBMENU: string;
|
|
332
332
|
CONTROLS_BUTTON: string;
|
|
333
333
|
CONTROLS_BUTTON_ICON: string;
|
|
334
|
+
CONTROLS_BUTTON_OVERLAY: string;
|
|
335
|
+
CONTROLS_CORNER_BUTTON: string;
|
|
336
|
+
CONTROLS_DELETE_BUTTON: string;
|
|
337
|
+
CONTROLS_DELETE_BUTTON_WRAP: string;
|
|
338
|
+
CONTROLS_FLOATING_BUTTON_COLUMN: string;
|
|
339
|
+
CONTROLS_FLOATING_BUTTON_ROW: string;
|
|
334
340
|
CONTROLS_INSERT_BUTTON: string;
|
|
335
341
|
CONTROLS_INSERT_BUTTON_INNER: string;
|
|
336
342
|
CONTROLS_INSERT_BUTTON_WRAP: string;
|
|
343
|
+
CONTROLS_INSERT_COLUMN: string;
|
|
337
344
|
CONTROLS_INSERT_LINE: string;
|
|
338
|
-
CONTROLS_BUTTON_OVERLAY: string;
|
|
339
|
-
DRAG_CONTROLS_INSERT_BUTTON: string;
|
|
340
|
-
DRAG_CONTROLS_INSERT_BUTTON_INNER: string;
|
|
341
|
-
DRAG_CONTROLS_INSERT_BUTTON_INNER_COLUMN: string;
|
|
342
|
-
DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW: string;
|
|
343
|
-
DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW_CHROMELESS: string;
|
|
344
|
-
DRAG_CONTROLS_INSERT_BUTTON_WRAP: string;
|
|
345
345
|
CONTROLS_INSERT_MARKER: string;
|
|
346
|
-
CONTROLS_INSERT_COLUMN: string;
|
|
347
346
|
CONTROLS_INSERT_ROW: string;
|
|
348
|
-
CONTROLS_DELETE_BUTTON_WRAP: string;
|
|
349
|
-
CONTROLS_DELETE_BUTTON: string;
|
|
350
|
-
CONTROLS_FLOATING_BUTTON_COLUMN: string;
|
|
351
|
-
CONTROLS_FLOATING_BUTTON_ROW: string;
|
|
352
347
|
CORNER_CONTROLS: string;
|
|
353
|
-
CORNER_CONTROLS_INSERT_ROW_MARKER: string;
|
|
354
348
|
CORNER_CONTROLS_INSERT_COLUMN_MARKER: string;
|
|
355
|
-
|
|
356
|
-
/** drag and drop controls */
|
|
357
|
-
DRAG_ROW_CONTROLS_WRAPPER: string;
|
|
358
|
-
DRAG_ROW_CONTROLS: string;
|
|
359
|
-
DRAG_ROW_FLOATING_INSERT_DOT_WRAPPER: string;
|
|
360
|
-
DRAG_ROW_FLOATING_INSERT_DOT: string;
|
|
361
|
-
DRAG_ROW_FLOATING_DRAG_HANDLE: string;
|
|
349
|
+
CORNER_CONTROLS_INSERT_ROW_MARKER: string;
|
|
362
350
|
DRAG_COLUMN_CONTROLS: string;
|
|
363
|
-
|
|
364
|
-
DRAG_COLUMN_FLOATING_INSERT_DOT: string;
|
|
351
|
+
DRAG_COLUMN_CONTROLS_INNER: string;
|
|
365
352
|
DRAG_COLUMN_CONTROLS_WRAPPER: string;
|
|
366
353
|
DRAG_COLUMN_DROP_TARGET_CONTROLS: string;
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
354
|
+
DRAG_COLUMN_FLOATING_INSERT_DOT: string;
|
|
355
|
+
DRAG_COLUMN_FLOATING_INSERT_DOT_WRAPPER: string;
|
|
356
|
+
DRAG_CONTROLS_INSERT_BUTTON: string;
|
|
357
|
+
DRAG_CONTROLS_INSERT_BUTTON_INNER: string;
|
|
358
|
+
DRAG_CONTROLS_INSERT_BUTTON_INNER_COLUMN: string;
|
|
359
|
+
DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW: string;
|
|
360
|
+
DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW_CHROMELESS: string;
|
|
361
|
+
DRAG_CONTROLS_INSERT_BUTTON_WRAP: string;
|
|
370
362
|
DRAG_CORNER_BUTTON: string;
|
|
371
363
|
DRAG_CORNER_BUTTON_INNER: string;
|
|
372
|
-
|
|
373
|
-
|
|
364
|
+
DRAG_HANDLE_BUTTON_CLICKABLE_ZONE: string;
|
|
365
|
+
DRAG_HANDLE_BUTTON_CONTAINER: string;
|
|
374
366
|
/** disabled classes */
|
|
375
367
|
DRAG_HANDLE_DISABLED: string;
|
|
376
368
|
/** minimised handle class */
|
|
377
369
|
DRAG_HANDLE_MINIMISED: string;
|
|
370
|
+
DRAG_ROW_CONTROLS: string;
|
|
371
|
+
/** drag and drop controls */
|
|
372
|
+
DRAG_ROW_CONTROLS_WRAPPER: string;
|
|
373
|
+
DRAG_ROW_FLOATING_DRAG_HANDLE: string;
|
|
374
|
+
DRAG_ROW_FLOATING_INSERT_DOT: string;
|
|
375
|
+
DRAG_ROW_FLOATING_INSERT_DOT_WRAPPER: string;
|
|
378
376
|
DRAG_SUBMENU: string;
|
|
379
377
|
DRAG_SUBMENU_ICON: string;
|
|
380
|
-
/** Other classes */
|
|
381
|
-
NUMBERED_COLUMN: string;
|
|
382
|
-
NUMBERED_COLUMN_BUTTON: string;
|
|
383
|
-
NUMBERED_COLUMN_BUTTON_DISABLED: string;
|
|
384
|
-
HOVERED_COLUMN: string;
|
|
385
|
-
HOVERED_ROW: string;
|
|
386
|
-
HOVERED_TABLE: string;
|
|
387
|
-
HOVERED_NO_HIGHLIGHT: string;
|
|
388
378
|
HOVERED_CELL: string;
|
|
389
|
-
HOVERED_CELL_IN_DANGER: string;
|
|
390
379
|
HOVERED_CELL_ACTIVE: string;
|
|
380
|
+
HOVERED_CELL_IN_DANGER: string;
|
|
391
381
|
HOVERED_CELL_WARNING: string;
|
|
382
|
+
HOVERED_COLUMN: string;
|
|
392
383
|
HOVERED_DELETE_BUTTON: string;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
384
|
+
HOVERED_NO_HIGHLIGHT: string;
|
|
385
|
+
HOVERED_ROW: string;
|
|
386
|
+
HOVERED_TABLE: string;
|
|
396
387
|
IS_RESIZING: string;
|
|
397
|
-
RESIZE_HANDLE_DECORATION: string;
|
|
398
|
-
CONTEXTUAL_SUBMENU: string;
|
|
399
|
-
CONTEXTUAL_MENU_BUTTON_WRAP: string;
|
|
400
|
-
CONTEXTUAL_MENU_BUTTON: string;
|
|
401
|
-
CONTEXTUAL_MENU_BUTTON_FIXED: string;
|
|
402
|
-
CONTEXTUAL_MENU_ICON: string;
|
|
403
|
-
CONTEXTUAL_MENU_ICON_SMALL: string;
|
|
404
|
-
SELECTED_CELL: string;
|
|
405
|
-
NODEVIEW_WRAPPER: string;
|
|
406
|
-
TABLE_SELECTED: string;
|
|
407
|
-
TABLE_CELL: 'pm-table-cell-content-wrap';
|
|
408
|
-
TABLE_HEADER_CELL: 'pm-table-header-content-wrap';
|
|
409
|
-
TABLE_STICKY: string;
|
|
410
|
-
TABLE_CHROMELESS: string;
|
|
411
|
-
TOP_LEFT_CELL: string;
|
|
412
|
-
LAST_ITEM_IN_CELL: string;
|
|
413
|
-
WITH_COLUMN_INSERT_LINE: string;
|
|
414
|
-
WITH_COLUMN_INSERT_LINE_INACTIVE: string;
|
|
415
|
-
WITH_FIRST_COLUMN_INSERT_LINE: string;
|
|
416
|
-
WITH_FIRST_COLUMN_INSERT_LINE_INACTIVE: string;
|
|
417
|
-
WITH_LAST_COLUMN_INSERT_LINE: string;
|
|
418
|
-
WITH_LAST_COLUMN_INSERT_LINE_INACTIVE: string;
|
|
419
|
-
WITH_RESIZE_LINE: string;
|
|
420
|
-
WITH_RESIZE_LINE_LAST_COLUMN: string;
|
|
421
|
-
WITH_DRAG_RESIZE_LINE: string;
|
|
422
|
-
WITH_DRAG_RESIZE_LINE_LAST_COLUMN: string;
|
|
423
|
-
WITH_ROW_INSERT_LINE: string;
|
|
424
|
-
WITH_ROW_INSERT_LINE_INACTIVE: string;
|
|
425
|
-
WITH_LAST_ROW_INSERT_LINE: string;
|
|
426
|
-
WITH_LAST_ROW_INSERT_LINE_INACTIVE: string;
|
|
427
388
|
NATIVE_STICKY: string;
|
|
428
389
|
NATIVE_STICKY_ACTIVE: string;
|
|
390
|
+
/** nested tables classes */
|
|
391
|
+
NESTED_TABLE_WITH_CONTROLS: string;
|
|
429
392
|
NO_OVERFLOW: string;
|
|
393
|
+
NODEVIEW_WRAPPER: string;
|
|
394
|
+
/** Other classes */
|
|
395
|
+
NUMBERED_COLUMN: string;
|
|
396
|
+
NUMBERED_COLUMN_BUTTON: string;
|
|
397
|
+
NUMBERED_COLUMN_BUTTON_DISABLED: string;
|
|
398
|
+
RESIZE_CURSOR: string;
|
|
399
|
+
RESIZE_HANDLE_DECORATION: string;
|
|
400
|
+
RESIZING_PLUGIN: string;
|
|
401
|
+
ROW_CONTROLS: string;
|
|
402
|
+
ROW_CONTROLS_BUTTON: string;
|
|
403
|
+
ROW_CONTROLS_BUTTON_WRAP: string;
|
|
404
|
+
ROW_CONTROLS_INNER: string;
|
|
405
|
+
ROW_CONTROLS_WRAPPER: string;
|
|
406
|
+
SELECTED_CELL: string;
|
|
407
|
+
TABLE_CELL: 'pm-table-cell-content-wrap';
|
|
430
408
|
TABLE_CELL_NODEVIEW_CONTENT_DOM: 'pm-table-cell-nodeview-content-dom';
|
|
431
409
|
TABLE_CELL_WRAPPER: 'pm-table-cell-content-wrap';
|
|
410
|
+
TABLE_CHROMELESS: string;
|
|
432
411
|
TABLE_COLUMN_CONTROLS_DECORATIONS: 'pm-table-column-controls-decoration';
|
|
433
412
|
TABLE_CONTAINER: 'pm-table-container';
|
|
413
|
+
TABLE_HEADER_CELL: 'pm-table-header-content-wrap';
|
|
434
414
|
TABLE_HEADER_CELL_WRAPPER: 'pm-table-header-content-wrap';
|
|
435
415
|
TABLE_LEFT_BORDER: 'pm-table-left-border';
|
|
436
416
|
TABLE_LEFT_SHADOW: 'pm-table-with-left-shadow';
|
|
@@ -441,8 +421,10 @@ export declare const TableCssClassName: {
|
|
|
441
421
|
TABLE_RIGHT_SHADOW: 'pm-table-with-right-shadow';
|
|
442
422
|
TABLE_ROW_CONTROLS_WRAPPER: 'pm-table-row-controls-wrapper';
|
|
443
423
|
TABLE_SCROLL_INLINE_SHADOW: 'pm-table-scroll-inline-shadow';
|
|
424
|
+
TABLE_SELECTED: string;
|
|
444
425
|
TABLE_SHADOW_SENTINEL_LEFT: 'pm-table-shadow-sentinel-left';
|
|
445
426
|
TABLE_SHADOW_SENTINEL_RIGHT: 'pm-table-shadow-sentinel-right';
|
|
427
|
+
TABLE_STICKY: string;
|
|
446
428
|
TABLE_STICKY_SCROLLBAR_CONTAINER: 'pm-table-sticky-scrollbar-container';
|
|
447
429
|
TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: 'pm-table-sticky-scrollbar-sentinel-bottom';
|
|
448
430
|
TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: 'pm-table-sticky-scrollbar-sentinel-top';
|
|
@@ -451,6 +433,22 @@ export declare const TableCssClassName: {
|
|
|
451
433
|
TABLE_STICKY_SHADOW: 'pm-table-sticky-shadow';
|
|
452
434
|
TABLE_STICKY_WRAPPER: 'pm-table-sticky-wrapper';
|
|
453
435
|
TABLE_VIEW_CONTENT_WRAP: 'tableView-content-wrap';
|
|
436
|
+
TOP_LEFT_CELL: string;
|
|
437
|
+
WITH_COLUMN_INSERT_LINE: string;
|
|
438
|
+
WITH_COLUMN_INSERT_LINE_INACTIVE: string;
|
|
439
|
+
WITH_CONTROLS: string;
|
|
440
|
+
WITH_DRAG_RESIZE_LINE: string;
|
|
441
|
+
WITH_DRAG_RESIZE_LINE_LAST_COLUMN: string;
|
|
442
|
+
WITH_FIRST_COLUMN_INSERT_LINE: string;
|
|
443
|
+
WITH_FIRST_COLUMN_INSERT_LINE_INACTIVE: string;
|
|
444
|
+
WITH_LAST_COLUMN_INSERT_LINE: string;
|
|
445
|
+
WITH_LAST_COLUMN_INSERT_LINE_INACTIVE: string;
|
|
446
|
+
WITH_LAST_ROW_INSERT_LINE: string;
|
|
447
|
+
WITH_LAST_ROW_INSERT_LINE_INACTIVE: string;
|
|
448
|
+
WITH_RESIZE_LINE: string;
|
|
449
|
+
WITH_RESIZE_LINE_LAST_COLUMN: string;
|
|
450
|
+
WITH_ROW_INSERT_LINE: string;
|
|
451
|
+
WITH_ROW_INSERT_LINE_INACTIVE: string;
|
|
454
452
|
};
|
|
455
453
|
export interface ToolbarMenuConfig {
|
|
456
454
|
allowCollapse?: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx } from '@emotion/react';
|
|
2
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -18,4 +17,4 @@ export interface Props {
|
|
|
18
17
|
tableWrapper?: HTMLElement;
|
|
19
18
|
targetCellPosition: number;
|
|
20
19
|
}
|
|
21
|
-
export default function (props: Props):
|
|
20
|
+
export default function (props: Props): JSX.Element;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
1
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
7
2
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
8
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -24,7 +19,7 @@ interface Props {
|
|
|
24
19
|
targetCellPosition?: number;
|
|
25
20
|
}
|
|
26
21
|
declare const FloatingContextualMenu: {
|
|
27
|
-
({ mountPoint, boundariesElement, scrollableElement, editorView, isOpen, pluginConfig, editorAnalyticsAPI, getEditorContainerWidth, getEditorFeatureFlags, isCellMenuOpenByKeyboard, isCommentEditor, api, isDragMenuOpen, }: Props):
|
|
22
|
+
({ mountPoint, boundariesElement, scrollableElement, editorView, isOpen, pluginConfig, editorAnalyticsAPI, getEditorContainerWidth, getEditorFeatureFlags, isCellMenuOpenByKeyboard, isCommentEditor, api, isDragMenuOpen, }: Props): JSX.Element | null;
|
|
28
23
|
displayName: string;
|
|
29
24
|
};
|
|
30
25
|
export default FloatingContextualMenu;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "22.2.
|
|
3
|
+
"version": "22.2.10",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^10.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-content-insertion": "^10.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-extension": "13.1.
|
|
40
|
+
"@atlaskit/editor-plugin-extension": "13.1.5",
|
|
41
41
|
"@atlaskit/editor-plugin-guideline": "^10.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-interaction": "^19.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-limited-mode": "^7.1.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
57
57
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
58
58
|
"@atlaskit/primitives": "^19.0.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^71.0.0",
|
|
60
60
|
"@atlaskit/toggle": "^15.6.0",
|
|
61
61
|
"@atlaskit/tokens": "^13.0.0",
|
|
62
62
|
"@atlaskit/tooltip": "^21.2.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"uuid": "^3.1.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@atlaskit/editor-common": "^114.
|
|
73
|
+
"@atlaskit/editor-common": "^114.13.0",
|
|
74
74
|
"react": "^18.2.0",
|
|
75
75
|
"react-dom": "^18.2.0",
|
|
76
76
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|