@atlaskit/editor-plugin-table 22.2.20 → 22.2.22
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 +16 -0
- package/dist/cjs/pm-plugins/main.js +0 -1
- package/dist/cjs/tablePlugin.js +0 -1
- package/dist/es2019/pm-plugins/main.js +0 -1
- package/dist/es2019/tablePlugin.js +0 -1
- package/dist/esm/pm-plugins/main.js +0 -1
- package/dist/esm/tablePlugin.js +0 -1
- package/dist/types/types/index.d.ts +1 -3
- package/dist/types-ts4.5/types/index.d.ts +1 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 22.2.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`dac35f970c524`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dac35f970c524) -
|
|
8
|
+
EDITOR-6293: Remove isDragAndDropEnabled from table plugin state and shared state types
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 22.2.21
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`967cff1c14097`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/967cff1c14097) -
|
|
16
|
+
Add isolatedDeclarations: true to tsconfig.app.json and tsconfig.dev.json
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 22.2.20
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -49,7 +49,6 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatchAnalytic
|
|
|
49
49
|
wasFullWidthModeEnabled: previousFullWidthModeEnabled,
|
|
50
50
|
isHeaderRowEnabled: !!pluginConfig.allowHeaderRow,
|
|
51
51
|
isHeaderColumnEnabled: false,
|
|
52
|
-
isDragAndDropEnabled: true,
|
|
53
52
|
isTableScalingEnabled: isTableScalingEnabled
|
|
54
53
|
}, _defaultTableSelection.defaultHoveredCell), _defaultTableSelection.defaultTableSelection), {}, {
|
|
55
54
|
getIntl: getIntl
|
package/dist/cjs/tablePlugin.js
CHANGED
|
@@ -139,7 +139,6 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
139
139
|
pluginConfig: tablePluginState.pluginConfig,
|
|
140
140
|
insertColumnButtonIndex: tablePluginState.insertColumnButtonIndex,
|
|
141
141
|
insertRowButtonIndex: tablePluginState.insertRowButtonIndex,
|
|
142
|
-
isDragAndDropEnabled: tablePluginState.isDragAndDropEnabled,
|
|
143
142
|
tableWrapperTarget: tablePluginState.tableWrapperTarget,
|
|
144
143
|
isCellMenuOpenByKeyboard: tablePluginState.isCellMenuOpenByKeyboard,
|
|
145
144
|
stickyHeader: stickyHeader,
|
|
@@ -39,7 +39,6 @@ export const createPlugin = (dispatchAnalyticsEvent, dispatch, portalProviderAPI
|
|
|
39
39
|
wasFullWidthModeEnabled: previousFullWidthModeEnabled,
|
|
40
40
|
isHeaderRowEnabled: !!pluginConfig.allowHeaderRow,
|
|
41
41
|
isHeaderColumnEnabled: false,
|
|
42
|
-
isDragAndDropEnabled: true,
|
|
43
42
|
isTableScalingEnabled: isTableScalingEnabled,
|
|
44
43
|
...defaultHoveredCell,
|
|
45
44
|
...defaultTableSelection,
|
|
@@ -127,7 +127,6 @@ const tablePlugin = ({
|
|
|
127
127
|
pluginConfig: tablePluginState.pluginConfig,
|
|
128
128
|
insertColumnButtonIndex: tablePluginState.insertColumnButtonIndex,
|
|
129
129
|
insertRowButtonIndex: tablePluginState.insertRowButtonIndex,
|
|
130
|
-
isDragAndDropEnabled: tablePluginState.isDragAndDropEnabled,
|
|
131
130
|
tableWrapperTarget: tablePluginState.tableWrapperTarget,
|
|
132
131
|
isCellMenuOpenByKeyboard: tablePluginState.isCellMenuOpenByKeyboard,
|
|
133
132
|
stickyHeader,
|
|
@@ -42,7 +42,6 @@ export var createPlugin = function createPlugin(dispatchAnalyticsEvent, dispatch
|
|
|
42
42
|
wasFullWidthModeEnabled: previousFullWidthModeEnabled,
|
|
43
43
|
isHeaderRowEnabled: !!pluginConfig.allowHeaderRow,
|
|
44
44
|
isHeaderColumnEnabled: false,
|
|
45
|
-
isDragAndDropEnabled: true,
|
|
46
45
|
isTableScalingEnabled: isTableScalingEnabled
|
|
47
46
|
}, defaultHoveredCell), defaultTableSelection), {}, {
|
|
48
47
|
getIntl: getIntl
|
package/dist/esm/tablePlugin.js
CHANGED
|
@@ -130,7 +130,6 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
130
130
|
pluginConfig: tablePluginState.pluginConfig,
|
|
131
131
|
insertColumnButtonIndex: tablePluginState.insertColumnButtonIndex,
|
|
132
132
|
insertRowButtonIndex: tablePluginState.insertRowButtonIndex,
|
|
133
|
-
isDragAndDropEnabled: tablePluginState.isDragAndDropEnabled,
|
|
134
133
|
tableWrapperTarget: tablePluginState.tableWrapperTarget,
|
|
135
134
|
isCellMenuOpenByKeyboard: tablePluginState.isCellMenuOpenByKeyboard,
|
|
136
135
|
stickyHeader: stickyHeader,
|
|
@@ -34,7 +34,7 @@ export type PluginInjectionAPIWithA11y = ExtractInjectionAPI<TablePlugin> & {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
export type TableSharedStateInternal = Pick<TablePluginState, 'isFullWidthModeEnabled' | 'isMaxWidthModeEnabled' | 'wasFullWidthModeEnabled' | 'wasMaxWidthModeEnabled' | 'isHeaderRowEnabled' | 'isHeaderColumnEnabled' | 'ordering' | 'isInDanger' | 'hoveredRows' | 'hoveredColumns' | 'hoveredCell' | 'isTableHovered' | 'tableNode' | 'widthToWidest' | 'tableRef' | 'tablePos' | 'targetCellPosition' | 'isContextualMenuOpen' | 'pluginConfig' | 'insertColumnButtonIndex' | 'insertRowButtonIndex' | '
|
|
37
|
+
export type TableSharedStateInternal = Pick<TablePluginState, 'isFullWidthModeEnabled' | 'isMaxWidthModeEnabled' | 'wasFullWidthModeEnabled' | 'wasMaxWidthModeEnabled' | 'isHeaderRowEnabled' | 'isHeaderColumnEnabled' | 'ordering' | 'isInDanger' | 'hoveredRows' | 'hoveredColumns' | 'hoveredCell' | 'isTableHovered' | 'tableNode' | 'widthToWidest' | 'tableRef' | 'tablePos' | 'targetCellPosition' | 'isContextualMenuOpen' | 'pluginConfig' | 'insertColumnButtonIndex' | 'insertRowButtonIndex' | 'tableWrapperTarget' | 'isCellMenuOpenByKeyboard'> & {
|
|
38
38
|
dragMenuDirection?: TableDirection;
|
|
39
39
|
dragMenuIndex?: number;
|
|
40
40
|
editorContentAreaHeight?: number;
|
|
@@ -98,7 +98,6 @@ export interface TablePluginState {
|
|
|
98
98
|
isChromelessEditor?: boolean;
|
|
99
99
|
isCommentEditor?: boolean;
|
|
100
100
|
isContextualMenuOpen?: boolean;
|
|
101
|
-
isDragAndDropEnabled?: boolean;
|
|
102
101
|
isFullWidthModeEnabled?: boolean;
|
|
103
102
|
isHeaderColumnEnabled: boolean;
|
|
104
103
|
isHeaderRowEnabled: boolean;
|
|
@@ -458,7 +457,6 @@ export interface ToolbarMenuConfig {
|
|
|
458
457
|
}
|
|
459
458
|
export interface ToolbarMenuState {
|
|
460
459
|
canCollapseTable?: boolean;
|
|
461
|
-
isDragAndDropEnabled?: boolean;
|
|
462
460
|
isHeaderColumnEnabled?: boolean;
|
|
463
461
|
isHeaderRowEnabled?: boolean;
|
|
464
462
|
isNumberColumnEnabled?: boolean;
|
|
@@ -34,7 +34,7 @@ export type PluginInjectionAPIWithA11y = ExtractInjectionAPI<TablePlugin> & {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
export type TableSharedStateInternal = Pick<TablePluginState, 'isFullWidthModeEnabled' | 'isMaxWidthModeEnabled' | 'wasFullWidthModeEnabled' | 'wasMaxWidthModeEnabled' | 'isHeaderRowEnabled' | 'isHeaderColumnEnabled' | 'ordering' | 'isInDanger' | 'hoveredRows' | 'hoveredColumns' | 'hoveredCell' | 'isTableHovered' | 'tableNode' | 'widthToWidest' | 'tableRef' | 'tablePos' | 'targetCellPosition' | 'isContextualMenuOpen' | 'pluginConfig' | 'insertColumnButtonIndex' | 'insertRowButtonIndex' | '
|
|
37
|
+
export type TableSharedStateInternal = Pick<TablePluginState, 'isFullWidthModeEnabled' | 'isMaxWidthModeEnabled' | 'wasFullWidthModeEnabled' | 'wasMaxWidthModeEnabled' | 'isHeaderRowEnabled' | 'isHeaderColumnEnabled' | 'ordering' | 'isInDanger' | 'hoveredRows' | 'hoveredColumns' | 'hoveredCell' | 'isTableHovered' | 'tableNode' | 'widthToWidest' | 'tableRef' | 'tablePos' | 'targetCellPosition' | 'isContextualMenuOpen' | 'pluginConfig' | 'insertColumnButtonIndex' | 'insertRowButtonIndex' | 'tableWrapperTarget' | 'isCellMenuOpenByKeyboard'> & {
|
|
38
38
|
dragMenuDirection?: TableDirection;
|
|
39
39
|
dragMenuIndex?: number;
|
|
40
40
|
editorContentAreaHeight?: number;
|
|
@@ -98,7 +98,6 @@ export interface TablePluginState {
|
|
|
98
98
|
isChromelessEditor?: boolean;
|
|
99
99
|
isCommentEditor?: boolean;
|
|
100
100
|
isContextualMenuOpen?: boolean;
|
|
101
|
-
isDragAndDropEnabled?: boolean;
|
|
102
101
|
isFullWidthModeEnabled?: boolean;
|
|
103
102
|
isHeaderColumnEnabled: boolean;
|
|
104
103
|
isHeaderRowEnabled: boolean;
|
|
@@ -458,7 +457,6 @@ export interface ToolbarMenuConfig {
|
|
|
458
457
|
}
|
|
459
458
|
export interface ToolbarMenuState {
|
|
460
459
|
canCollapseTable?: boolean;
|
|
461
|
-
isDragAndDropEnabled?: boolean;
|
|
462
460
|
isHeaderColumnEnabled?: boolean;
|
|
463
461
|
isHeaderRowEnabled?: boolean;
|
|
464
462
|
isNumberColumnEnabled?: boolean;
|
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.22",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"@atlaskit/editor-plugin-interaction": "^19.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-limited-mode": "^7.1.0",
|
|
44
44
|
"@atlaskit/editor-plugin-selection": "^10.0.0",
|
|
45
|
-
"@atlaskit/editor-plugin-toolbar": "^7.
|
|
45
|
+
"@atlaskit/editor-plugin-toolbar": "^7.1.0",
|
|
46
46
|
"@atlaskit/editor-plugin-user-intent": "^8.1.0",
|
|
47
47
|
"@atlaskit/editor-plugin-width": "^11.0.0",
|
|
48
48
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
49
49
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
50
50
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
51
|
-
"@atlaskit/icon": "^34.
|
|
51
|
+
"@atlaskit/icon": "^34.5.0",
|
|
52
52
|
"@atlaskit/insm": "^0.4.0",
|
|
53
53
|
"@atlaskit/menu": "^8.5.0",
|
|
54
54
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -56,10 +56,10 @@
|
|
|
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": "^77.
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^77.3.0",
|
|
60
60
|
"@atlaskit/toggle": "^15.6.0",
|
|
61
61
|
"@atlaskit/tokens": "^13.0.0",
|
|
62
|
-
"@atlaskit/tooltip": "^22.
|
|
62
|
+
"@atlaskit/tooltip": "^22.1.0",
|
|
63
63
|
"@babel/runtime": "^7.0.0",
|
|
64
64
|
"@emotion/react": "^11.7.1",
|
|
65
65
|
"bind-event-listener": "^3.0.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.26.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"
|