@atlaskit/editor-plugin-table 7.17.8 → 7.17.9

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,14 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 7.17.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#110582](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110582)
8
+ [`8846a40609a0e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8846a40609a0e) -
9
+ remove platform.editor.a11y-table-floating-toolbar-dropdown-menu_zkb33 ff
10
+ - Updated dependencies
11
+
3
12
  ## 7.17.8
4
13
 
5
14
  ### Patch Changes
@@ -27,7 +27,6 @@ var _alignImageLeft = _interopRequireDefault(require("@atlaskit/icon/glyph/edito
27
27
  var _layoutThreeEqual = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/layout-three-equal"));
28
28
  var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
29
29
  var _preferences = _interopRequireDefault(require("@atlaskit/icon/glyph/preferences"));
30
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
31
30
  var _commands = require("./commands");
32
31
  var _commandsWithAnalytics = require("./commands-with-analytics");
33
32
  var _pluginFactory = require("./pm-plugins/plugin-factory");
@@ -48,7 +47,7 @@ var getToolbarMenuConfig = exports.getToolbarMenuConfig = function getToolbarMen
48
47
  var formatMessage = _ref.formatMessage;
49
48
  var isTableScalingWithFixedColumnWidthsOptionShown = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
50
49
  var areTableColumnWidthsFixed = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
51
- var optionItem = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-table-floating-toolbar-dropdown-menu_zkb33') ? 'item-checkbox' : 'item';
50
+ var optionItem = 'item-checkbox';
52
51
  var options = [{
53
52
  id: 'editor.table.lockColumnWidths',
54
53
  title: formatMessage(_messages.tableMessages.lockColumnWidths),
@@ -19,7 +19,6 @@ import EditorAlignImageLeft from '@atlaskit/icon/glyph/editor/align-image-left';
19
19
  import DistributeColumnIcon from '@atlaskit/icon/glyph/editor/layout-three-equal';
20
20
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
21
21
  import TableOptionsIcon from '@atlaskit/icon/glyph/preferences';
22
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
23
22
  import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, hoverTable, removeDescendantNodes } from './commands';
24
23
  import { deleteColumnsWithAnalytics, deleteRowsWithAnalytics, deleteTableWithAnalytics, distributeColumnsWidthsWithAnalytics, emptyMultipleCellsWithAnalytics, insertColumnWithAnalytics, insertRowWithAnalytics, mergeCellsWithAnalytics, setColorWithAnalytics, setTableAlignmentWithAnalytics, sortColumnWithAnalytics, splitCellWithAnalytics, toggleFixedColumnWidthsOptionAnalytics, toggleHeaderColumnWithAnalytics, toggleHeaderRowWithAnalytics, toggleNumberColumnWithAnalytics, wrapTableInExpandWithAnalytics } from './commands-with-analytics';
25
24
  import { getPluginState } from './pm-plugins/plugin-factory';
@@ -35,7 +34,7 @@ import { normaliseAlignment } from './utils/alignment';
35
34
  export const getToolbarMenuConfig = (config, state, {
36
35
  formatMessage
37
36
  }, editorAnalyticsAPI, isTableScalingWithFixedColumnWidthsOptionShown = false, areTableColumnWidthsFixed = false) => {
38
- const optionItem = getBooleanFF('platform.editor.a11y-table-floating-toolbar-dropdown-menu_zkb33') ? 'item-checkbox' : 'item';
37
+ const optionItem = 'item-checkbox';
39
38
  const options = [{
40
39
  id: 'editor.table.lockColumnWidths',
41
40
  title: formatMessage(messages.lockColumnWidths),
@@ -23,7 +23,6 @@ import EditorAlignImageLeft from '@atlaskit/icon/glyph/editor/align-image-left';
23
23
  import DistributeColumnIcon from '@atlaskit/icon/glyph/editor/layout-three-equal';
24
24
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
25
25
  import TableOptionsIcon from '@atlaskit/icon/glyph/preferences';
26
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
27
26
  import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, hoverTable, removeDescendantNodes } from './commands';
28
27
  import { deleteColumnsWithAnalytics, deleteRowsWithAnalytics, deleteTableWithAnalytics, distributeColumnsWidthsWithAnalytics, emptyMultipleCellsWithAnalytics, insertColumnWithAnalytics, insertRowWithAnalytics, mergeCellsWithAnalytics, setColorWithAnalytics, setTableAlignmentWithAnalytics, sortColumnWithAnalytics, splitCellWithAnalytics, toggleFixedColumnWidthsOptionAnalytics, toggleHeaderColumnWithAnalytics, toggleHeaderRowWithAnalytics, toggleNumberColumnWithAnalytics, wrapTableInExpandWithAnalytics } from './commands-with-analytics';
29
28
  import { getPluginState } from './pm-plugins/plugin-factory';
@@ -40,7 +39,7 @@ export var getToolbarMenuConfig = function getToolbarMenuConfig(config, state, _
40
39
  var formatMessage = _ref.formatMessage;
41
40
  var isTableScalingWithFixedColumnWidthsOptionShown = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
42
41
  var areTableColumnWidthsFixed = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
43
- var optionItem = getBooleanFF('platform.editor.a11y-table-floating-toolbar-dropdown-menu_zkb33') ? 'item-checkbox' : 'item';
42
+ var optionItem = 'item-checkbox';
44
43
  var options = [{
45
44
  id: 'editor.table.lockColumnWidths',
46
45
  title: formatMessage(messages.lockColumnWidths),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "7.17.8",
3
+ "version": "7.17.9",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -50,7 +50,7 @@
50
50
  "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^1.3.0",
51
51
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
52
52
  "@atlaskit/primitives": "^8.0.0",
53
- "@atlaskit/theme": "^12.10.0",
53
+ "@atlaskit/theme": "^12.11.0",
54
54
  "@atlaskit/toggle": "^13.2.0",
55
55
  "@atlaskit/tokens": "^1.51.0",
56
56
  "@atlaskit/tooltip": "^18.5.0",
@@ -126,9 +126,6 @@
126
126
  "platform.editor.table.use-shared-state-hook": {
127
127
  "type": "boolean"
128
128
  },
129
- "platform.editor.a11y-table-floating-toolbar-dropdown-menu_zkb33": {
130
- "type": "boolean"
131
- },
132
129
  "platform.editor.table.use-increased-scaling-percent": {
133
130
  "type": "boolean"
134
131
  },
package/src/toolbar.tsx CHANGED
@@ -47,7 +47,6 @@ import EditorAlignImageLeft from '@atlaskit/icon/glyph/editor/align-image-left';
47
47
  import DistributeColumnIcon from '@atlaskit/icon/glyph/editor/layout-three-equal';
48
48
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
49
49
  import TableOptionsIcon from '@atlaskit/icon/glyph/preferences';
50
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
51
50
 
52
51
  import {
53
52
  clearHoverSelection,
@@ -108,11 +107,7 @@ export const getToolbarMenuConfig = (
108
107
  isTableScalingWithFixedColumnWidthsOptionShown = false,
109
108
  areTableColumnWidthsFixed = false,
110
109
  ): FloatingToolbarItem<Command> => {
111
- const optionItem: typeOption = getBooleanFF(
112
- 'platform.editor.a11y-table-floating-toolbar-dropdown-menu_zkb33',
113
- )
114
- ? 'item-checkbox'
115
- : 'item';
110
+ const optionItem: typeOption = 'item-checkbox';
116
111
 
117
112
  const options = [
118
113
  {