@atlaskit/editor-plugin-table 7.19.9 → 7.19.10

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.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#118104](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/118104)
8
+ [`700333187f53a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/700333187f53a) -
9
+ Remove feature flag where cmd+A selects the table rather than the document.
10
+
3
11
  ## 7.19.9
4
12
 
5
13
  ### Patch Changes
@@ -7,7 +7,6 @@ exports.default = void 0;
7
7
  exports.tableSelectionKeymapPlugin = tableSelectionKeymapPlugin;
8
8
  var _keymaps = require("@atlaskit/editor-common/keymaps");
9
9
  var _keymap = require("@atlaskit/editor-prosemirror/keymap");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
10
  var _selection = require("../commands/selection");
12
11
  function tableSelectionKeymapPlugin(editorSelectionAPI) {
13
12
  var list = {};
@@ -16,9 +15,7 @@ function tableSelectionKeymapPlugin(editorSelectionAPI) {
16
15
  (0, _keymaps.bindKeymapArrayWithCommand)(_keymaps.selectColumn, (0, _selection.selectColumns)(editorSelectionAPI)(true), list);
17
16
  (0, _keymaps.bindKeymapArrayWithCommand)(_keymaps.selectRow, (0, _selection.selectRows)(editorSelectionAPI)(true), list);
18
17
  (0, _keymaps.bindKeymapWithCommand)(_keymaps.shiftArrowUp.common, (0, _selection.shiftArrowUpFromTable)(editorSelectionAPI)(), list);
19
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.table.cmd-a-select-table')) {
20
- (0, _keymaps.bindKeymapWithCommand)(_keymaps.selectTable.common, (0, _selection.modASelectTable)(editorSelectionAPI)(), list);
21
- }
18
+ (0, _keymaps.bindKeymapWithCommand)(_keymaps.selectTable.common, (0, _selection.modASelectTable)(editorSelectionAPI)(), list);
22
19
  return (0, _keymap.keymap)(list);
23
20
  }
24
21
  var _default = exports.default = tableSelectionKeymapPlugin;
@@ -1,6 +1,5 @@
1
1
  import { bindKeymapArrayWithCommand, bindKeymapWithCommand, moveLeft, moveRight, selectColumn, selectRow, selectTable, shiftArrowUp } from '@atlaskit/editor-common/keymaps';
2
2
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
3
  import { arrowLeftFromTable, arrowRightFromTable, modASelectTable, selectColumns, selectRows, shiftArrowUpFromTable } from '../commands/selection';
5
4
  export function tableSelectionKeymapPlugin(editorSelectionAPI) {
6
5
  const list = {};
@@ -9,9 +8,7 @@ export function tableSelectionKeymapPlugin(editorSelectionAPI) {
9
8
  bindKeymapArrayWithCommand(selectColumn, selectColumns(editorSelectionAPI)(true), list);
10
9
  bindKeymapArrayWithCommand(selectRow, selectRows(editorSelectionAPI)(true), list);
11
10
  bindKeymapWithCommand(shiftArrowUp.common, shiftArrowUpFromTable(editorSelectionAPI)(), list);
12
- if (getBooleanFF('platform.editor.table.cmd-a-select-table')) {
13
- bindKeymapWithCommand(selectTable.common, modASelectTable(editorSelectionAPI)(), list);
14
- }
11
+ bindKeymapWithCommand(selectTable.common, modASelectTable(editorSelectionAPI)(), list);
15
12
  return keymap(list);
16
13
  }
17
14
  export default tableSelectionKeymapPlugin;
@@ -1,6 +1,5 @@
1
1
  import { bindKeymapArrayWithCommand, bindKeymapWithCommand, moveLeft, moveRight, selectColumn, selectRow, selectTable, shiftArrowUp } from '@atlaskit/editor-common/keymaps';
2
2
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
3
  import { arrowLeftFromTable, arrowRightFromTable, modASelectTable, selectColumns, selectRows, shiftArrowUpFromTable } from '../commands/selection';
5
4
  export function tableSelectionKeymapPlugin(editorSelectionAPI) {
6
5
  var list = {};
@@ -9,9 +8,7 @@ export function tableSelectionKeymapPlugin(editorSelectionAPI) {
9
8
  bindKeymapArrayWithCommand(selectColumn, selectColumns(editorSelectionAPI)(true), list);
10
9
  bindKeymapArrayWithCommand(selectRow, selectRows(editorSelectionAPI)(true), list);
11
10
  bindKeymapWithCommand(shiftArrowUp.common, shiftArrowUpFromTable(editorSelectionAPI)(), list);
12
- if (getBooleanFF('platform.editor.table.cmd-a-select-table')) {
13
- bindKeymapWithCommand(selectTable.common, modASelectTable(editorSelectionAPI)(), list);
14
- }
11
+ bindKeymapWithCommand(selectTable.common, modASelectTable(editorSelectionAPI)(), list);
15
12
  return keymap(list);
16
13
  }
17
14
  export default tableSelectionKeymapPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "7.19.9",
3
+ "version": "7.19.10",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/adf-schema": "^39.0.3",
32
32
  "@atlaskit/button": "^18.2.0",
33
33
  "@atlaskit/custom-steps": "^0.4.0",
34
- "@atlaskit/editor-common": "^84.2.0",
34
+ "@atlaskit/editor-common": "^84.3.0",
35
35
  "@atlaskit/editor-palette": "1.6.0",
36
36
  "@atlaskit/editor-plugin-accessibility-utils": "^1.1.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.4.0",
@@ -108,9 +108,6 @@
108
108
  "platform.editor.transform-slice-for-nested-expand": {
109
109
  "type": "boolean"
110
110
  },
111
- "platform.editor.table.cmd-a-select-table": {
112
- "type": "boolean"
113
- },
114
111
  "platform.editor.table.use-shared-state-hook": {
115
112
  "type": "boolean"
116
113
  },
@@ -11,7 +11,6 @@ import {
11
11
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
12
12
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
13
13
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
14
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
15
14
 
16
15
  import {
17
16
  arrowLeftFromTable,
@@ -38,9 +37,7 @@ export function tableSelectionKeymapPlugin(
38
37
 
39
38
  bindKeymapWithCommand(shiftArrowUp.common!, shiftArrowUpFromTable(editorSelectionAPI)(), list);
40
39
 
41
- if (getBooleanFF('platform.editor.table.cmd-a-select-table')) {
42
- bindKeymapWithCommand(selectTable.common!, modASelectTable(editorSelectionAPI)(), list);
43
- }
40
+ bindKeymapWithCommand(selectTable.common!, modASelectTable(editorSelectionAPI)(), list);
44
41
 
45
42
  return keymap(list) as SafePlugin;
46
43
  }