@atlaskit/editor-plugin-table 7.19.4 → 7.19.5
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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 7.19.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#116281](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116281)
|
|
8
|
+
[`62fb11ef85308`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/62fb11ef85308) -
|
|
9
|
+
Cleanup table LD FF insert-last-column-btn-stays-in-place
|
|
10
|
+
|
|
3
11
|
## 7.19.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -15,7 +15,6 @@ var _state5 = require("@atlaskit/editor-prosemirror/state");
|
|
|
15
15
|
var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
|
|
16
16
|
var _tableMap = require("@atlaskit/editor-tables/table-map");
|
|
17
17
|
var _utils2 = require("@atlaskit/editor-tables/utils");
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
18
|
var _commands = require("./commands");
|
|
20
19
|
var _pluginFactory = require("./pm-plugins/drag-and-drop/plugin-factory");
|
|
21
20
|
var _pluginFactory2 = require("./pm-plugins/plugin-factory");
|
|
@@ -149,9 +148,6 @@ var handleMouseOver = exports.handleMouseOver = function handleMouseOver(view, m
|
|
|
149
148
|
return false;
|
|
150
149
|
};
|
|
151
150
|
var handleMouseUp = exports.handleMouseUp = function handleMouseUp(view, mouseEvent) {
|
|
152
|
-
if (!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.table.insert-last-column-btn-stays-in-place')) {
|
|
153
|
-
return false;
|
|
154
|
-
}
|
|
155
151
|
if (!(mouseEvent instanceof MouseEvent)) {
|
|
156
152
|
return false;
|
|
157
153
|
}
|
|
@@ -5,7 +5,6 @@ import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
5
5
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
6
6
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
7
7
|
import { cellAround, findCellRectClosestToPos, findTable, getSelectionRect, removeTable } from '@atlaskit/editor-tables/utils';
|
|
8
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { addResizeHandleDecorations, clearHoverSelection, hideInsertColumnOrRowButton, hideResizeHandleLine, hoverCell, hoverColumns, selectColumn, setEditorFocus, setTableHovered, showInsertColumnButton, showInsertRowButton, showResizeHandleLine } from './commands';
|
|
10
9
|
import { getPluginState as getDragDropPluginState } from './pm-plugins/drag-and-drop/plugin-factory';
|
|
11
10
|
import { getPluginState } from './pm-plugins/plugin-factory';
|
|
@@ -137,9 +136,6 @@ export const handleMouseOver = (view, mouseEvent) => {
|
|
|
137
136
|
return false;
|
|
138
137
|
};
|
|
139
138
|
export const handleMouseUp = (view, mouseEvent) => {
|
|
140
|
-
if (!getBooleanFF('platform.editor.table.insert-last-column-btn-stays-in-place')) {
|
|
141
|
-
return false;
|
|
142
|
-
}
|
|
143
139
|
if (!(mouseEvent instanceof MouseEvent)) {
|
|
144
140
|
return false;
|
|
145
141
|
}
|
|
@@ -6,7 +6,6 @@ import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
6
6
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
7
7
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
8
8
|
import { cellAround, findCellRectClosestToPos, findTable, getSelectionRect, removeTable } from '@atlaskit/editor-tables/utils';
|
|
9
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { addResizeHandleDecorations, clearHoverSelection, hideInsertColumnOrRowButton, hideResizeHandleLine, hoverCell, hoverColumns, selectColumn, setEditorFocus, setTableHovered, showInsertColumnButton, showInsertRowButton, showResizeHandleLine } from './commands';
|
|
11
10
|
import { getPluginState as getDragDropPluginState } from './pm-plugins/drag-and-drop/plugin-factory';
|
|
12
11
|
import { getPluginState } from './pm-plugins/plugin-factory';
|
|
@@ -140,9 +139,6 @@ export var handleMouseOver = function handleMouseOver(view, mouseEvent) {
|
|
|
140
139
|
return false;
|
|
141
140
|
};
|
|
142
141
|
export var handleMouseUp = function handleMouseUp(view, mouseEvent) {
|
|
143
|
-
if (!getBooleanFF('platform.editor.table.insert-last-column-btn-stays-in-place')) {
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
142
|
if (!(mouseEvent instanceof MouseEvent)) {
|
|
147
143
|
return false;
|
|
148
144
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "7.19.
|
|
3
|
+
"version": "7.19.5",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -102,9 +102,6 @@
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
"platform-feature-flags": {
|
|
105
|
-
"platform.editor.table.insert-last-column-btn-stays-in-place": {
|
|
106
|
-
"type": "boolean"
|
|
107
|
-
},
|
|
108
105
|
"platform.editor.table.drag-move-options-logic-update_fp7xw": {
|
|
109
106
|
"type": "boolean"
|
|
110
107
|
},
|
package/src/event-handlers.ts
CHANGED
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
getSelectionRect,
|
|
23
23
|
removeTable,
|
|
24
24
|
} from '@atlaskit/editor-tables/utils';
|
|
25
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
26
25
|
|
|
27
26
|
import {
|
|
28
27
|
addResizeHandleDecorations,
|
|
@@ -226,10 +225,6 @@ export const handleMouseOver = (view: EditorView, mouseEvent: Event): boolean =>
|
|
|
226
225
|
};
|
|
227
226
|
|
|
228
227
|
export const handleMouseUp = (view: EditorView, mouseEvent: Event): boolean => {
|
|
229
|
-
if (!getBooleanFF('platform.editor.table.insert-last-column-btn-stays-in-place')) {
|
|
230
|
-
return false;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
228
|
if (!(mouseEvent instanceof MouseEvent)) {
|
|
234
229
|
return false;
|
|
235
230
|
}
|