@atlaskit/editor-plugin-table 10.12.3 → 10.12.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,23 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 10.12.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#172640](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172640)
8
+ [`903534ec3c2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/903534ec3c2df) -
9
+ Clean up platform_editor_controls_table_picker
10
+ - [#172583](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172583)
11
+ [`40f387a0c0962`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/40f387a0c0962) -
12
+ Clean up platform_editor_controls_patch_2
13
+ - Updated dependencies
14
+
15
+ ## 10.12.4
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 10.12.3
4
22
 
5
23
  ### Patch Changes
@@ -110,7 +110,7 @@ var tablePlugin = function tablePlugin(_ref) {
110
110
  options === null || options === void 0 ? void 0 : options.isCommentEditor));
111
111
  var isTableSelectorEnabled =
112
112
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
113
- !(options !== null && options !== void 0 && options.isChromelessEditor) && !(options !== null && options !== void 0 && options.isCommentEditor) && (options === null || options === void 0 || (_options$getEditorFea2 = options.getEditorFeatureFlags) === null || _options$getEditorFea2 === void 0 ? void 0 : _options$getEditorFea2.call(options).tableSelector) && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_table_picker');
113
+ !(options !== null && options !== void 0 && options.isChromelessEditor) && !(options !== null && options !== void 0 && options.isCommentEditor) && (options === null || options === void 0 || (_options$getEditorFea2 = options.getEditorFeatureFlags) === null || _options$getEditorFea2 === void 0 ? void 0 : _options$getEditorFea2.call(options).tableSelector) && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1');
114
114
  return {
115
115
  name: 'table',
116
116
  // Use getSharedState to store fullWidthEnabled and wasFullWidthModeEnabled to guarantee access
@@ -38,7 +38,6 @@ var _tableRowAddBelow = _interopRequireDefault(require("@atlaskit/icon/core/tabl
38
38
  var _tableRowDelete = _interopRequireDefault(require("@atlaskit/icon/core/table-row-delete"));
39
39
  var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/cross-circle"));
40
40
  var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
41
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
42
41
  var _primitives = require("@atlaskit/primitives");
43
42
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
44
43
  var _commands = require("../../pm-plugins/commands");
@@ -485,7 +484,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
485
484
  (_items$0$items = items[0].items).push.apply(_items$0$items, (0, _toConsumableArray2.default)(mergeSplitCellItems));
486
485
  items[1].items.push(insertColumnItem);
487
486
  items[1].items.push(insertRowItem);
488
- if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_2')) {
487
+ if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
489
488
  items[1].items.push(_this.newDistributeColumnsItem());
490
489
  }
491
490
  items[1].items.push(clearCellsItem);
@@ -494,8 +494,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(getE
494
494
  onBlur: (0, _commands.clearHoverSelection)()
495
495
  };
496
496
  };
497
- var shouldGroupWithoutSeparators = (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6');
498
-
497
+ var shouldGroupWithoutSeparators = (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1');
499
498
  // testId is required to show focus on trigger button on ESC key press
500
499
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
501
500
  var overflowDropdownTestId = (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_8') ? 'table-overflow-dropdown-trigger' : undefined;
@@ -649,7 +648,7 @@ var getColumnSettingItems = function getColumnSettingItems(editorState, editorVi
649
648
  disabled: !wouldChange
650
649
  });
651
650
  }
652
- if (items.length !== 0 && (!(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') || !(0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6'))) {
651
+ if (items.length !== 0 && !(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
653
652
  items.push({
654
653
  type: 'separator'
655
654
  });
@@ -99,7 +99,7 @@ const tablePlugin = ({
99
99
  options === null || options === void 0 ? void 0 : options.isCommentEditor));
100
100
  const isTableSelectorEnabled =
101
101
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
102
- !(options !== null && options !== void 0 && options.isChromelessEditor) && !(options !== null && options !== void 0 && options.isCommentEditor) && (options === null || options === void 0 ? void 0 : (_options$getEditorFea2 = options.getEditorFeatureFlags) === null || _options$getEditorFea2 === void 0 ? void 0 : _options$getEditorFea2.call(options).tableSelector) && editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_table_picker');
102
+ !(options !== null && options !== void 0 && options.isChromelessEditor) && !(options !== null && options !== void 0 && options.isCommentEditor) && (options === null || options === void 0 ? void 0 : (_options$getEditorFea2 = options.getEditorFeatureFlags) === null || _options$getEditorFea2 === void 0 ? void 0 : _options$getEditorFea2.call(options).tableSelector) && editorExperiment('platform_editor_controls', 'variant1');
103
103
  return {
104
104
  name: 'table',
105
105
  // Use getSharedState to store fullWidthEnabled and wasFullWidthModeEnabled to guarantee access
@@ -30,7 +30,6 @@ import TableRowAddBelowIcon from '@atlaskit/icon/core/table-row-add-below';
30
30
  import TableRowDeleteIcon from '@atlaskit/icon/core/table-row-delete';
31
31
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
32
32
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
33
- import { fg } from '@atlaskit/platform-feature-flags';
34
33
  import { Box, xcss } from '@atlaskit/primitives';
35
34
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
36
35
  import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, setFocusToCellMenu, toggleContextualMenu } from '../../pm-plugins/commands';
@@ -522,7 +521,7 @@ export class ContextualMenu extends Component {
522
521
  items[0].items.push(...mergeSplitCellItems);
523
522
  items[1].items.push(insertColumnItem);
524
523
  items[1].items.push(insertRowItem);
525
- if (editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_2')) {
524
+ if (editorExperiment('platform_editor_controls', 'variant1')) {
526
525
  items[1].items.push(this.newDistributeColumnsItem());
527
526
  }
528
527
  items[1].items.push(clearCellsItem);
@@ -464,8 +464,7 @@ export const getToolbarConfig = (getEditorContainerWidth, api, editorAnalyticsAP
464
464
  onFocus: hoverTable(isInDanger, isSelected),
465
465
  onBlur: clearHoverSelection()
466
466
  });
467
- const shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_6');
468
-
467
+ const shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1');
469
468
  // testId is required to show focus on trigger button on ESC key press
470
469
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
471
470
  const overflowDropdownTestId = fg('platform_editor_controls_patch_8') ? 'table-overflow-dropdown-trigger' : undefined;
@@ -605,7 +604,7 @@ const getColumnSettingItems = (editorState, editorView, {
605
604
  disabled: !wouldChange
606
605
  });
607
606
  }
608
- if (items.length !== 0 && (!editorExperiment('platform_editor_controls', 'variant1') || !fg('platform_editor_controls_patch_6'))) {
607
+ if (items.length !== 0 && !editorExperiment('platform_editor_controls', 'variant1')) {
609
608
  items.push({
610
609
  type: 'separator'
611
610
  });
@@ -102,7 +102,7 @@ var tablePlugin = function tablePlugin(_ref) {
102
102
  options === null || options === void 0 ? void 0 : options.isCommentEditor));
103
103
  var isTableSelectorEnabled =
104
104
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
105
- !(options !== null && options !== void 0 && options.isChromelessEditor) && !(options !== null && options !== void 0 && options.isCommentEditor) && (options === null || options === void 0 || (_options$getEditorFea2 = options.getEditorFeatureFlags) === null || _options$getEditorFea2 === void 0 ? void 0 : _options$getEditorFea2.call(options).tableSelector) && editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_table_picker');
105
+ !(options !== null && options !== void 0 && options.isChromelessEditor) && !(options !== null && options !== void 0 && options.isCommentEditor) && (options === null || options === void 0 || (_options$getEditorFea2 = options.getEditorFeatureFlags) === null || _options$getEditorFea2 === void 0 ? void 0 : _options$getEditorFea2.call(options).tableSelector) && editorExperiment('platform_editor_controls', 'variant1');
106
106
  return {
107
107
  name: 'table',
108
108
  // Use getSharedState to store fullWidthEnabled and wasFullWidthModeEnabled to guarantee access
@@ -40,7 +40,6 @@ import TableRowAddBelowIcon from '@atlaskit/icon/core/table-row-add-below';
40
40
  import TableRowDeleteIcon from '@atlaskit/icon/core/table-row-delete';
41
41
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
42
42
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
43
- import { fg } from '@atlaskit/platform-feature-flags';
44
43
  import { Box, xcss } from '@atlaskit/primitives';
45
44
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
46
45
  import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, setFocusToCellMenu, toggleContextualMenu } from '../../pm-plugins/commands';
@@ -479,7 +478,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
479
478
  (_items$0$items = items[0].items).push.apply(_items$0$items, _toConsumableArray(mergeSplitCellItems));
480
479
  items[1].items.push(insertColumnItem);
481
480
  items[1].items.push(insertRowItem);
482
- if (editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_2')) {
481
+ if (editorExperiment('platform_editor_controls', 'variant1')) {
483
482
  items[1].items.push(_this.newDistributeColumnsItem());
484
483
  }
485
484
  items[1].items.push(clearCellsItem);
@@ -487,8 +487,7 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
487
487
  onBlur: clearHoverSelection()
488
488
  };
489
489
  };
490
- var shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_6');
491
-
490
+ var shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1');
492
491
  // testId is required to show focus on trigger button on ESC key press
493
492
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
494
493
  var overflowDropdownTestId = fg('platform_editor_controls_patch_8') ? 'table-overflow-dropdown-trigger' : undefined;
@@ -642,7 +641,7 @@ var getColumnSettingItems = function getColumnSettingItems(editorState, editorVi
642
641
  disabled: !wouldChange
643
642
  });
644
643
  }
645
- if (items.length !== 0 && (!editorExperiment('platform_editor_controls', 'variant1') || !fg('platform_editor_controls_patch_6'))) {
644
+ if (items.length !== 0 && !editorExperiment('platform_editor_controls', 'variant1')) {
646
645
  items.push({
647
646
  type: 'separator'
648
647
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "10.12.3",
3
+ "version": "10.12.5",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,14 +32,14 @@
32
32
  "@atlaskit/adf-schema": "^47.6.0",
33
33
  "@atlaskit/button": "^23.2.0",
34
34
  "@atlaskit/custom-steps": "^0.11.0",
35
- "@atlaskit/editor-common": "^106.9.0",
35
+ "@atlaskit/editor-common": "^107.0.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
37
37
  "@atlaskit/editor-plugin-accessibility-utils": "^2.0.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
39
39
  "@atlaskit/editor-plugin-batch-attribute-updates": "^2.1.0",
40
40
  "@atlaskit/editor-plugin-content-insertion": "^2.1.0",
41
41
  "@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
42
- "@atlaskit/editor-plugin-extension": "5.5.7",
42
+ "@atlaskit/editor-plugin-extension": "5.5.9",
43
43
  "@atlaskit/editor-plugin-guideline": "^2.0.0",
44
44
  "@atlaskit/editor-plugin-interaction": "^2.0.0",
45
45
  "@atlaskit/editor-plugin-selection": "^2.2.0",
@@ -53,11 +53,11 @@
53
53
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
54
54
  "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
55
55
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
56
- "@atlaskit/primitives": "^14.8.0",
56
+ "@atlaskit/primitives": "^14.9.0",
57
57
  "@atlaskit/theme": "^18.0.0",
58
- "@atlaskit/tmp-editor-statsig": "^7.1.0",
58
+ "@atlaskit/tmp-editor-statsig": "^7.2.0",
59
59
  "@atlaskit/toggle": "^15.0.0",
60
- "@atlaskit/tokens": "^5.2.0",
60
+ "@atlaskit/tokens": "^5.3.0",
61
61
  "@atlaskit/tooltip": "^20.3.0",
62
62
  "@babel/runtime": "^7.0.0",
63
63
  "@emotion/react": "^11.7.1",
@@ -184,24 +184,15 @@
184
184
  "platform_editor_number_column_sticky_header_broken": {
185
185
  "type": "boolean"
186
186
  },
187
- "platform_editor_controls_patch_2": {
188
- "type": "boolean"
189
- },
190
187
  "platform_editor_controls_patch_4": {
191
188
  "type": "boolean"
192
189
  },
193
190
  "platform_editor_tables_table_selector": {
194
191
  "type": "boolean"
195
192
  },
196
- "platform_editor_controls_table_picker": {
197
- "type": "boolean"
198
- },
199
193
  "platform_editor_remove_slow_table_transactions": {
200
194
  "type": "boolean"
201
195
  },
202
- "platform_editor_controls_patch_6": {
203
- "type": "boolean"
204
- },
205
196
  "platform_editor_fix_table_resizing_undo": {
206
197
  "type": "boolean"
207
198
  },
@@ -143,8 +143,7 @@ const tablePlugin: TablePlugin = ({ config: options, api }) => {
143
143
  !options?.isChromelessEditor &&
144
144
  !options?.isCommentEditor &&
145
145
  options?.getEditorFeatureFlags?.().tableSelector &&
146
- editorExperiment('platform_editor_controls', 'variant1') &&
147
- fg('platform_editor_controls_table_picker');
146
+ editorExperiment('platform_editor_controls', 'variant1');
148
147
 
149
148
  return {
150
149
  name: 'table',
@@ -53,7 +53,6 @@ import TableRowAddBelowIcon from '@atlaskit/icon/core/table-row-add-below';
53
53
  import TableRowDeleteIcon from '@atlaskit/icon/core/table-row-delete';
54
54
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
55
55
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
56
- import { fg } from '@atlaskit/platform-feature-flags';
57
56
  import { Box, xcss } from '@atlaskit/primitives';
58
57
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
59
58
 
@@ -664,10 +663,7 @@ export class ContextualMenu extends Component<Props & WrappedComponentProps, Sta
664
663
  items[0].items.push(...mergeSplitCellItems);
665
664
  items[1].items.push(insertColumnItem);
666
665
  items[1].items.push(insertRowItem);
667
- if (
668
- editorExperiment('platform_editor_controls', 'variant1') &&
669
- fg('platform_editor_controls_patch_2')
670
- ) {
666
+ if (editorExperiment('platform_editor_controls', 'variant1')) {
671
667
  items[1].items.push(this.newDistributeColumnsItem());
672
668
  }
673
669
  items[1].items.push(clearCellsItem);
@@ -672,10 +672,7 @@ export const getToolbarConfig =
672
672
  onBlur: clearHoverSelection(),
673
673
  });
674
674
 
675
- const shouldGroupWithoutSeparators =
676
- editorExperiment('platform_editor_controls', 'variant1') &&
677
- fg('platform_editor_controls_patch_6');
678
-
675
+ const shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1');
679
676
  // testId is required to show focus on trigger button on ESC key press
680
677
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
681
678
  const overflowDropdownTestId = fg('platform_editor_controls_patch_8')
@@ -919,11 +916,7 @@ const getColumnSettingItems = (
919
916
  });
920
917
  }
921
918
 
922
- if (
923
- items.length !== 0 &&
924
- (!editorExperiment('platform_editor_controls', 'variant1') ||
925
- !fg('platform_editor_controls_patch_6'))
926
- ) {
919
+ if (items.length !== 0 && !editorExperiment('platform_editor_controls', 'variant1')) {
927
920
  items.push({
928
921
  type: 'separator',
929
922
  });