@atlaskit/editor-plugin-table 7.11.0 → 7.11.2
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/table-selection-keymap.js +1 -3
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +1 -2
- package/dist/es2019/pm-plugins/table-selection-keymap.js +1 -3
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +1 -2
- package/dist/esm/pm-plugins/table-selection-keymap.js +1 -3
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +1 -2
- package/package.json +4 -10
- package/src/pm-plugins/table-selection-keymap.ts +5 -7
- package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +1 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 7.11.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#95258](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95258) [`f40514ef08e3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f40514ef08e3) - Cleanup feature flag to allow grouping with editor dropdown menu.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 7.11.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#95351](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95351) [`23a6facb3598`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/23a6facb3598) - Remove feature flag for shift arrow up selection in a table.
|
|
15
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901) [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) - [ED-23097] Bump ADF schema to version 35.12.1
|
|
16
|
+
|
|
3
17
|
## 7.11.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -15,9 +15,7 @@ function tableSelectionKeymapPlugin(editorSelectionAPI) {
|
|
|
15
15
|
(0, _keymaps.bindKeymapWithCommand)(_keymaps.moveLeft.common, (0, _selection.arrowLeftFromTable)(editorSelectionAPI)(), list);
|
|
16
16
|
(0, _keymaps.bindKeymapArrayWithCommand)(_keymaps.selectColumn, (0, _selection.selectColumns)(editorSelectionAPI)(true), list);
|
|
17
17
|
(0, _keymaps.bindKeymapArrayWithCommand)(_keymaps.selectRow, (0, _selection.selectRows)(editorSelectionAPI)(true), list);
|
|
18
|
-
|
|
19
|
-
(0, _keymaps.bindKeymapWithCommand)(_keymaps.shiftArrowUp.common, (0, _selection.shiftArrowUpFromTable)(editorSelectionAPI)(), list);
|
|
20
|
-
}
|
|
18
|
+
(0, _keymaps.bindKeymapWithCommand)(_keymaps.shiftArrowUp.common, (0, _selection.shiftArrowUpFromTable)(editorSelectionAPI)(), list);
|
|
21
19
|
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.table.cmd-a-select-table')) {
|
|
22
20
|
(0, _keymaps.bindKeymapWithCommand)(_keymaps.selectTable.common, (0, _selection.modASelectTable)(editorSelectionAPI)(), list);
|
|
23
21
|
}
|
|
@@ -30,7 +30,6 @@ var _utils2 = require("@atlaskit/editor-tables/utils");
|
|
|
30
30
|
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/cross-circle"));
|
|
31
31
|
var _backgroundColor = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/background-color"));
|
|
32
32
|
var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
|
|
33
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
34
33
|
var _commands = require("../../commands");
|
|
35
34
|
var _commandsWithAnalytics = require("../../commands-with-analytics");
|
|
36
35
|
var _pluginFactory = require("../../pm-plugins/plugin-factory");
|
|
@@ -543,7 +542,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
543
542
|
fitWidth: isDragAndDropEnabled ? _consts.contextualMenuDropdownWidthDnD : _consts.contextualMenuDropdownWidth,
|
|
544
543
|
boundariesElement: boundariesElement,
|
|
545
544
|
offset: offset,
|
|
546
|
-
section: isDragAndDropEnabled
|
|
545
|
+
section: isDragAndDropEnabled ? {
|
|
547
546
|
hasSeparator: true
|
|
548
547
|
} : undefined
|
|
549
548
|
}));
|
|
@@ -8,9 +8,7 @@ export function tableSelectionKeymapPlugin(editorSelectionAPI) {
|
|
|
8
8
|
bindKeymapWithCommand(moveLeft.common, arrowLeftFromTable(editorSelectionAPI)(), list);
|
|
9
9
|
bindKeymapArrayWithCommand(selectColumn, selectColumns(editorSelectionAPI)(true), list);
|
|
10
10
|
bindKeymapArrayWithCommand(selectRow, selectRows(editorSelectionAPI)(true), list);
|
|
11
|
-
|
|
12
|
-
bindKeymapWithCommand(shiftArrowUp.common, shiftArrowUpFromTable(editorSelectionAPI)(), list);
|
|
13
|
-
}
|
|
11
|
+
bindKeymapWithCommand(shiftArrowUp.common, shiftArrowUpFromTable(editorSelectionAPI)(), list);
|
|
14
12
|
if (getBooleanFF('platform.editor.table.cmd-a-select-table')) {
|
|
15
13
|
bindKeymapWithCommand(selectTable.common, modASelectTable(editorSelectionAPI)(), list);
|
|
16
14
|
}
|
|
@@ -18,7 +18,6 @@ import { splitCell } from '@atlaskit/editor-tables/utils';
|
|
|
18
18
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
19
19
|
import EditorBackgroundColorIcon from '@atlaskit/icon/glyph/editor/background-color';
|
|
20
20
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
21
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
22
21
|
import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, toggleContextualMenu } from '../../commands';
|
|
23
22
|
import { deleteColumnsWithAnalytics, deleteRowsWithAnalytics, distributeColumnsWidthsWithAnalytics, emptyMultipleCellsWithAnalytics, insertColumnWithAnalytics, insertRowWithAnalytics, mergeCellsWithAnalytics, setColorWithAnalytics, sortColumnWithAnalytics, splitCellWithAnalytics } from '../../commands-with-analytics';
|
|
24
23
|
import { getPluginState } from '../../pm-plugins/plugin-factory';
|
|
@@ -591,7 +590,7 @@ export class ContextualMenu extends Component {
|
|
|
591
590
|
fitWidth: isDragAndDropEnabled ? contextualMenuDropdownWidthDnD : contextualMenuDropdownWidth,
|
|
592
591
|
boundariesElement: boundariesElement,
|
|
593
592
|
offset: offset,
|
|
594
|
-
section: isDragAndDropEnabled
|
|
593
|
+
section: isDragAndDropEnabled ? {
|
|
595
594
|
hasSeparator: true
|
|
596
595
|
} : undefined
|
|
597
596
|
}));
|
|
@@ -8,9 +8,7 @@ export function tableSelectionKeymapPlugin(editorSelectionAPI) {
|
|
|
8
8
|
bindKeymapWithCommand(moveLeft.common, arrowLeftFromTable(editorSelectionAPI)(), list);
|
|
9
9
|
bindKeymapArrayWithCommand(selectColumn, selectColumns(editorSelectionAPI)(true), list);
|
|
10
10
|
bindKeymapArrayWithCommand(selectRow, selectRows(editorSelectionAPI)(true), list);
|
|
11
|
-
|
|
12
|
-
bindKeymapWithCommand(shiftArrowUp.common, shiftArrowUpFromTable(editorSelectionAPI)(), list);
|
|
13
|
-
}
|
|
11
|
+
bindKeymapWithCommand(shiftArrowUp.common, shiftArrowUpFromTable(editorSelectionAPI)(), list);
|
|
14
12
|
if (getBooleanFF('platform.editor.table.cmd-a-select-table')) {
|
|
15
13
|
bindKeymapWithCommand(selectTable.common, modASelectTable(editorSelectionAPI)(), list);
|
|
16
14
|
}
|
|
@@ -29,7 +29,6 @@ import { splitCell } from '@atlaskit/editor-tables/utils';
|
|
|
29
29
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
30
30
|
import EditorBackgroundColorIcon from '@atlaskit/icon/glyph/editor/background-color';
|
|
31
31
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
32
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
33
32
|
import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, toggleContextualMenu } from '../../commands';
|
|
34
33
|
import { deleteColumnsWithAnalytics, deleteRowsWithAnalytics, distributeColumnsWidthsWithAnalytics, emptyMultipleCellsWithAnalytics, insertColumnWithAnalytics, insertRowWithAnalytics, mergeCellsWithAnalytics, setColorWithAnalytics, sortColumnWithAnalytics, splitCellWithAnalytics } from '../../commands-with-analytics';
|
|
35
34
|
import { getPluginState } from '../../pm-plugins/plugin-factory';
|
|
@@ -538,7 +537,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
538
537
|
fitWidth: isDragAndDropEnabled ? contextualMenuDropdownWidthDnD : contextualMenuDropdownWidth,
|
|
539
538
|
boundariesElement: boundariesElement,
|
|
540
539
|
offset: offset,
|
|
541
|
-
section: isDragAndDropEnabled
|
|
540
|
+
section: isDragAndDropEnabled ? {
|
|
542
541
|
hasSeparator: true
|
|
543
542
|
} : undefined
|
|
544
543
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "7.11.
|
|
3
|
+
"version": "7.11.2",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"runReact18": false
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/adf-schema": "^35.
|
|
31
|
+
"@atlaskit/adf-schema": "^35.12.1",
|
|
32
32
|
"@atlaskit/custom-steps": "^0.1.0",
|
|
33
33
|
"@atlaskit/editor-common": "^78.36.0",
|
|
34
34
|
"@atlaskit/editor-palette": "1.5.3",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@atlaskit/menu": "^2.2.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
48
48
|
"@atlaskit/pragmatic-drag-and-drop": "^1.1.0",
|
|
49
|
-
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^1.
|
|
49
|
+
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^1.3.0",
|
|
50
50
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
51
|
-
"@atlaskit/primitives": "^5.
|
|
51
|
+
"@atlaskit/primitives": "^5.7.0",
|
|
52
52
|
"@atlaskit/theme": "^12.7.0",
|
|
53
53
|
"@atlaskit/toggle": "^13.0.0",
|
|
54
54
|
"@atlaskit/tokens": "^1.44.0",
|
|
@@ -112,15 +112,9 @@
|
|
|
112
112
|
"platform.editor.table.drag-move-options-logic-update_fp7xw": {
|
|
113
113
|
"type": "boolean"
|
|
114
114
|
},
|
|
115
|
-
"platform.editor.table.shift-arrowup-fix": {
|
|
116
|
-
"type": "boolean"
|
|
117
|
-
},
|
|
118
115
|
"platform.editor.a11y-table-resizing_uapcv": {
|
|
119
116
|
"type": "boolean"
|
|
120
117
|
},
|
|
121
|
-
"platform.editor.menu.group-items": {
|
|
122
|
-
"type": "boolean"
|
|
123
|
-
},
|
|
124
118
|
"platform.editor.a11y-column-resizing_emcvz": {
|
|
125
119
|
"type": "boolean"
|
|
126
120
|
},
|
|
@@ -54,13 +54,11 @@ export function tableSelectionKeymapPlugin(
|
|
|
54
54
|
list,
|
|
55
55
|
);
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
);
|
|
63
|
-
}
|
|
57
|
+
bindKeymapWithCommand(
|
|
58
|
+
shiftArrowUp.common!,
|
|
59
|
+
shiftArrowUpFromTable(editorSelectionAPI)(),
|
|
60
|
+
list,
|
|
61
|
+
);
|
|
64
62
|
|
|
65
63
|
if (getBooleanFF('platform.editor.table.cmd-a-select-table')) {
|
|
66
64
|
bindKeymapWithCommand(
|
|
@@ -46,7 +46,6 @@ import { splitCell } from '@atlaskit/editor-tables/utils';
|
|
|
46
46
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
47
47
|
import EditorBackgroundColorIcon from '@atlaskit/icon/glyph/editor/background-color';
|
|
48
48
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
49
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
50
49
|
|
|
51
50
|
import {
|
|
52
51
|
clearHoverSelection,
|
|
@@ -157,12 +156,7 @@ export class ContextualMenu extends Component<
|
|
|
157
156
|
}
|
|
158
157
|
boundariesElement={boundariesElement}
|
|
159
158
|
offset={offset}
|
|
160
|
-
section={
|
|
161
|
-
isDragAndDropEnabled &&
|
|
162
|
-
getBooleanFF('platform.editor.menu.group-items')
|
|
163
|
-
? { hasSeparator: true }
|
|
164
|
-
: undefined
|
|
165
|
-
}
|
|
159
|
+
section={isDragAndDropEnabled ? { hasSeparator: true } : undefined}
|
|
166
160
|
/>
|
|
167
161
|
</div>
|
|
168
162
|
);
|