@atlaskit/editor-plugin-table 12.3.2 → 12.3.3
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 +8 -0
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/types/pm-plugins/utils/drag-menu.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/utils/drag-menu.d.ts +2 -2
- package/package.json +6 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 12.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`85ac0fa76770e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/85ac0fa76770e) -
|
|
8
|
+
Cleaned up feature gate
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 12.3.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -88,7 +88,7 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatchAnalytic
|
|
|
88
88
|
})
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
if ((0, _coreUtils.isSSR)()
|
|
91
|
+
if ((0, _coreUtils.isSSR)()) {
|
|
92
92
|
return undefined;
|
|
93
93
|
}
|
|
94
94
|
return {
|
|
@@ -5,14 +5,14 @@ import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessib
|
|
|
5
5
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
import type { Rect, TableMap } from '@atlaskit/editor-tables/table-map';
|
|
8
|
-
import type { NewIconProps } from '@atlaskit/icon/types';
|
|
8
|
+
import type { NewIconProps, IconProps } from '@atlaskit/icon/types';
|
|
9
9
|
import type { DraggableData, DraggableType, PluginInjectionAPI, TableDirection } from '../../types';
|
|
10
10
|
export declare const getTargetIndex: (selectedIndexes: number[], direction: DraggableData["direction"]) => number;
|
|
11
11
|
export declare const canMove: (sourceType: DraggableType, direction: DraggableData["direction"], totalItemsOfSourceTypeCount: number, selection: Selection, selectionRect?: Rect) => boolean;
|
|
12
12
|
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';
|
|
13
13
|
export interface DragMenuConfig extends Omit<DropdownOptionT<Command>, 'icon'> {
|
|
14
14
|
icon?: React.ComponentType<React.PropsWithChildren<NewIconProps>>;
|
|
15
|
-
iconFallback?: React.ComponentType<React.PropsWithChildren<
|
|
15
|
+
iconFallback?: React.ComponentType<React.PropsWithChildren<IconProps>>;
|
|
16
16
|
id: DragMenuOptionIdType;
|
|
17
17
|
keymap?: string;
|
|
18
18
|
}
|
|
@@ -5,14 +5,14 @@ import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessib
|
|
|
5
5
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
import type { Rect, TableMap } from '@atlaskit/editor-tables/table-map';
|
|
8
|
-
import type { NewIconProps } from '@atlaskit/icon/types';
|
|
8
|
+
import type { NewIconProps, IconProps } from '@atlaskit/icon/types';
|
|
9
9
|
import type { DraggableData, DraggableType, PluginInjectionAPI, TableDirection } from '../../types';
|
|
10
10
|
export declare const getTargetIndex: (selectedIndexes: number[], direction: DraggableData["direction"]) => number;
|
|
11
11
|
export declare const canMove: (sourceType: DraggableType, direction: DraggableData["direction"], totalItemsOfSourceTypeCount: number, selection: Selection, selectionRect?: Rect) => boolean;
|
|
12
12
|
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';
|
|
13
13
|
export interface DragMenuConfig extends Omit<DropdownOptionT<Command>, 'icon'> {
|
|
14
14
|
icon?: React.ComponentType<React.PropsWithChildren<NewIconProps>>;
|
|
15
|
-
iconFallback?: React.ComponentType<React.PropsWithChildren<
|
|
15
|
+
iconFallback?: React.ComponentType<React.PropsWithChildren<IconProps>>;
|
|
16
16
|
id: DragMenuOptionIdType;
|
|
17
17
|
keymap?: string;
|
|
18
18
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "12.3.
|
|
3
|
+
"version": "12.3.3",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -47,19 +47,19 @@
|
|
|
47
47
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
50
|
-
"@atlaskit/icon": "^28.
|
|
50
|
+
"@atlaskit/icon": "^28.1.0",
|
|
51
51
|
"@atlaskit/menu": "^8.3.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
54
54
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
55
55
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
57
|
-
"@atlaskit/primitives": "^14.
|
|
58
|
-
"@atlaskit/react-ufo": "^4.
|
|
57
|
+
"@atlaskit/primitives": "^14.12.0",
|
|
58
|
+
"@atlaskit/react-ufo": "^4.5.0",
|
|
59
59
|
"@atlaskit/theme": "^19.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^11.8.0",
|
|
61
61
|
"@atlaskit/toggle": "^15.1.0",
|
|
62
|
-
"@atlaskit/tokens": "^6.
|
|
62
|
+
"@atlaskit/tokens": "^6.1.0",
|
|
63
63
|
"@atlaskit/tooltip": "^20.4.0",
|
|
64
64
|
"@babel/runtime": "^7.0.0",
|
|
65
65
|
"@emotion/react": "^11.7.1",
|
|
@@ -108,9 +108,6 @@
|
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
"platform-feature-flags": {
|
|
111
|
-
"platform_editor_table_fallback_to_dom_on_ssr": {
|
|
112
|
-
"type": "boolean"
|
|
113
|
-
},
|
|
114
111
|
"platform_editor_batch_steps_table": {
|
|
115
112
|
"type": "boolean"
|
|
116
113
|
},
|