@atlaskit/editor-plugin-table 7.28.11 → 7.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/cjs/ui/TableFloatingControls/index.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/index.js +1 -1
- package/dist/esm/ui/TableFloatingControls/index.js +1 -1
- package/dist/types/plugin.d.ts +1 -0
- package/dist/types/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +1 -0
- package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +2 -0
- package/dist/types/ui/TableFloatingControls/index.d.ts +1 -0
- package/dist/types-ts4.5/plugin.d.ts +1 -0
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +2 -0
- package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +1 -0
- package/package.json +9 -9
- package/src/plugin.tsx +1 -0
- package/src/ui/TableFloatingControls/index.tsx +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 7.29.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#151938](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151938)
|
|
8
|
+
[`91b5768ef0c7c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/91b5768ef0c7c) -
|
|
9
|
+
[ux] ED-25203 refactor image previewer outside of floating toolbar
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 7.29.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#151190](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151190)
|
|
17
|
+
[`a3723b1cdede2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a3723b1cdede2) -
|
|
18
|
+
[ux] [ED-25037] this change bumps @atlaskit/adf-schema from 40.9.0 to 40.9.4 which makes the
|
|
19
|
+
blockquote selectable, adds missing marks to the PM node spec and fixes a bug that converted
|
|
20
|
+
pasted external images to media groups.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- [`275ff635a350f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/275ff635a350f) -
|
|
25
|
+
[ux] Disable drag corner controls /w selection when nested dnd enabled
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 7.28.11
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -85,7 +85,7 @@ var TableFloatingControls = exports.TableFloatingControls = function TableFloati
|
|
|
85
85
|
var wrapperClassName = isDragAndDropEnabled ? isChromelessEditor ? _types.TableCssClassName.DRAG_ROW_CONTROLS_WRAPPER + ' ' + _types.TableCssClassName.TABLE_CHROMELESS : _types.TableCssClassName.DRAG_ROW_CONTROLS_WRAPPER : _types.TableCssClassName.ROW_CONTROLS_WRAPPER;
|
|
86
86
|
var tablePos = (_findTable = (0, _utils.findTable)(editorView.state.selection)) === null || _findTable === void 0 ? void 0 : _findTable.pos;
|
|
87
87
|
var isNested = tablePos !== undefined && (0, _nodes.isTableNested)(editorView.state, tablePos);
|
|
88
|
-
var shouldShowCornerControls = !(featureFlagsState !== null && featureFlagsState !== void 0 && featureFlagsState.elementDragAndDrop) || isNested;
|
|
88
|
+
var shouldShowCornerControls = !(featureFlagsState !== null && featureFlagsState !== void 0 && featureFlagsState.elementDragAndDrop) || isNested && !(0, _experiments.editorExperiment)('nested-dnd', true);
|
|
89
89
|
return (
|
|
90
90
|
/*#__PURE__*/
|
|
91
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -85,7 +85,7 @@ export const TableFloatingControls = ({
|
|
|
85
85
|
const wrapperClassName = isDragAndDropEnabled ? isChromelessEditor ? ClassName.DRAG_ROW_CONTROLS_WRAPPER + ' ' + ClassName.TABLE_CHROMELESS : ClassName.DRAG_ROW_CONTROLS_WRAPPER : ClassName.ROW_CONTROLS_WRAPPER;
|
|
86
86
|
const tablePos = (_findTable = findTable(editorView.state.selection)) === null || _findTable === void 0 ? void 0 : _findTable.pos;
|
|
87
87
|
const isNested = tablePos !== undefined && isTableNested(editorView.state, tablePos);
|
|
88
|
-
const shouldShowCornerControls = !(featureFlagsState !== null && featureFlagsState !== void 0 && featureFlagsState.elementDragAndDrop) || isNested;
|
|
88
|
+
const shouldShowCornerControls = !(featureFlagsState !== null && featureFlagsState !== void 0 && featureFlagsState.elementDragAndDrop) || isNested && !editorExperiment('nested-dnd', true);
|
|
89
89
|
return (
|
|
90
90
|
/*#__PURE__*/
|
|
91
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -75,7 +75,7 @@ export var TableFloatingControls = function TableFloatingControls(_ref) {
|
|
|
75
75
|
var wrapperClassName = isDragAndDropEnabled ? isChromelessEditor ? ClassName.DRAG_ROW_CONTROLS_WRAPPER + ' ' + ClassName.TABLE_CHROMELESS : ClassName.DRAG_ROW_CONTROLS_WRAPPER : ClassName.ROW_CONTROLS_WRAPPER;
|
|
76
76
|
var tablePos = (_findTable = findTable(editorView.state.selection)) === null || _findTable === void 0 ? void 0 : _findTable.pos;
|
|
77
77
|
var isNested = tablePos !== undefined && isTableNested(editorView.state, tablePos);
|
|
78
|
-
var shouldShowCornerControls = !(featureFlagsState !== null && featureFlagsState !== void 0 && featureFlagsState.elementDragAndDrop) || isNested;
|
|
78
|
+
var shouldShowCornerControls = !(featureFlagsState !== null && featureFlagsState !== void 0 && featureFlagsState.elementDragAndDrop) || isNested && !editorExperiment('nested-dnd', true);
|
|
79
79
|
return (
|
|
80
80
|
/*#__PURE__*/
|
|
81
81
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
89
89
|
dependencies: any;
|
|
90
90
|
sharedState: any;
|
|
91
91
|
actions: any;
|
|
92
|
+
commands: any;
|
|
92
93
|
}, any>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
93
94
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
94
95
|
dependencies: [];
|
|
@@ -70,6 +70,7 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
70
70
|
dependencies: any;
|
|
71
71
|
sharedState: any;
|
|
72
72
|
actions: any;
|
|
73
|
+
commands: any;
|
|
73
74
|
}, any>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
74
75
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
75
76
|
dependencies: [];
|
|
@@ -156,6 +157,7 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
156
157
|
dependencies: any;
|
|
157
158
|
sharedState: any;
|
|
158
159
|
actions: any;
|
|
160
|
+
commands: any;
|
|
159
161
|
}, any>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
160
162
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
161
163
|
dependencies: [];
|
|
@@ -99,6 +99,7 @@ export declare const TableFloatingControls: ({ editorView, tableRef, tableNode,
|
|
|
99
99
|
dependencies: any;
|
|
100
100
|
sharedState: any;
|
|
101
101
|
actions: any;
|
|
102
|
+
commands: any;
|
|
102
103
|
}, any>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
103
104
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
104
105
|
dependencies: [];
|
|
@@ -106,6 +106,7 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
106
106
|
dependencies: any;
|
|
107
107
|
sharedState: any;
|
|
108
108
|
actions: any;
|
|
109
|
+
commands: any;
|
|
109
110
|
}, any>>,
|
|
110
111
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
111
112
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -87,6 +87,7 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
87
87
|
dependencies: any;
|
|
88
88
|
sharedState: any;
|
|
89
89
|
actions: any;
|
|
90
|
+
commands: any;
|
|
90
91
|
}, any>>,
|
|
91
92
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
92
93
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -194,6 +195,7 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
194
195
|
dependencies: any;
|
|
195
196
|
sharedState: any;
|
|
196
197
|
actions: any;
|
|
198
|
+
commands: any;
|
|
197
199
|
}, any>>,
|
|
198
200
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
199
201
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -116,6 +116,7 @@ export declare const TableFloatingControls: ({ editorView, tableRef, tableNode,
|
|
|
116
116
|
dependencies: any;
|
|
117
117
|
sharedState: any;
|
|
118
118
|
actions: any;
|
|
119
|
+
commands: any;
|
|
119
120
|
}, any>>,
|
|
120
121
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
121
122
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.29.1",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"runReact18": true
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/adf-schema": "^40.9.
|
|
30
|
+
"@atlaskit/adf-schema": "^40.9.4",
|
|
31
31
|
"@atlaskit/button": "^20.2.0",
|
|
32
|
-
"@atlaskit/custom-steps": "^0.
|
|
33
|
-
"@atlaskit/editor-common": "^93.
|
|
32
|
+
"@atlaskit/custom-steps": "^0.8.0",
|
|
33
|
+
"@atlaskit/editor-common": "^93.4.0",
|
|
34
34
|
"@atlaskit/editor-palette": "1.6.1",
|
|
35
35
|
"@atlaskit/editor-plugin-accessibility-utils": "^1.2.0",
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
37
|
-
"@atlaskit/editor-plugin-batch-attribute-updates": "1.0
|
|
38
|
-
"@atlaskit/editor-plugin-content-insertion": "^1.
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
37
|
+
"@atlaskit/editor-plugin-batch-attribute-updates": "1.1.0",
|
|
38
|
+
"@atlaskit/editor-plugin-content-insertion": "^1.9.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-guideline": "^1.2.0",
|
|
41
41
|
"@atlaskit/editor-plugin-selection": "^1.4.0",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^1.4.0",
|
|
51
51
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
52
52
|
"@atlaskit/primitives": "^12.2.0",
|
|
53
|
-
"@atlaskit/theme": "^13.
|
|
54
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
53
|
+
"@atlaskit/theme": "^13.1.0",
|
|
54
|
+
"@atlaskit/tmp-editor-statsig": "^2.4.0",
|
|
55
55
|
"@atlaskit/toggle": "^13.4.0",
|
|
56
56
|
"@atlaskit/tokens": "^2.0.0",
|
|
57
57
|
"@atlaskit/tooltip": "^18.8.0",
|
package/src/plugin.tsx
CHANGED
|
@@ -135,7 +135,8 @@ export const TableFloatingControls = ({
|
|
|
135
135
|
|
|
136
136
|
const tablePos = findTable(editorView.state.selection)?.pos;
|
|
137
137
|
const isNested = tablePos !== undefined && isTableNested(editorView.state, tablePos!);
|
|
138
|
-
const shouldShowCornerControls =
|
|
138
|
+
const shouldShowCornerControls =
|
|
139
|
+
!featureFlagsState?.elementDragAndDrop || (isNested && !editorExperiment('nested-dnd', true));
|
|
139
140
|
|
|
140
141
|
return (
|
|
141
142
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|