@atlaskit/editor-plugin-table 10.12.4 → 10.12.6

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.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.12.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#172640](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172640)
14
+ [`903534ec3c2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/903534ec3c2df) -
15
+ Clean up platform_editor_controls_table_picker
16
+ - [#172583](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172583)
17
+ [`40f387a0c0962`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/40f387a0c0962) -
18
+ Clean up platform_editor_controls_patch_2
19
+ - Updated dependencies
20
+
3
21
  ## 10.12.4
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);
@@ -497,7 +497,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(getE
497
497
  var shouldGroupWithoutSeparators = (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1');
498
498
  // testId is required to show focus on trigger button on ESC key press
499
499
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
500
- var overflowDropdownTestId = (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_8') ? 'table-overflow-dropdown-trigger' : undefined;
500
+ var overflowDropdownTestId = 'table-overflow-dropdown-trigger';
501
501
  var extensionState = api === null || api === void 0 || (_api$extension = api.extension) === null || _api$extension === void 0 || (_api$extension = _api$extension.sharedState) === null || _api$extension === void 0 ? void 0 : _api$extension.currentState();
502
502
  var extensionApi = api === null || api === void 0 || (_api$extension2 = api.extension) === null || _api$extension2 === void 0 ? void 0 : _api$extension2.actions.api();
503
503
  return {
@@ -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);
@@ -467,7 +467,7 @@ export const getToolbarConfig = (getEditorContainerWidth, api, editorAnalyticsAP
467
467
  const shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1');
468
468
  // testId is required to show focus on trigger button on ESC key press
469
469
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
470
- const overflowDropdownTestId = fg('platform_editor_controls_patch_8') ? 'table-overflow-dropdown-trigger' : undefined;
470
+ const overflowDropdownTestId = 'table-overflow-dropdown-trigger';
471
471
  const extensionState = api === null || api === void 0 ? void 0 : (_api$extension = api.extension) === null || _api$extension === void 0 ? void 0 : (_api$extension$shared = _api$extension.sharedState) === null || _api$extension$shared === void 0 ? void 0 : _api$extension$shared.currentState();
472
472
  const extensionApi = api === null || api === void 0 ? void 0 : (_api$extension2 = api.extension) === null || _api$extension2 === void 0 ? void 0 : _api$extension2.actions.api();
473
473
  return {
@@ -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);
@@ -490,7 +490,7 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
490
490
  var shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1');
491
491
  // testId is required to show focus on trigger button on ESC key press
492
492
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
493
- var overflowDropdownTestId = fg('platform_editor_controls_patch_8') ? 'table-overflow-dropdown-trigger' : undefined;
493
+ var overflowDropdownTestId = 'table-overflow-dropdown-trigger';
494
494
  var extensionState = api === null || api === void 0 || (_api$extension = api.extension) === null || _api$extension === void 0 || (_api$extension = _api$extension.sharedState) === null || _api$extension === void 0 ? void 0 : _api$extension.currentState();
495
495
  var extensionApi = api === null || api === void 0 || (_api$extension2 = api.extension) === null || _api$extension2 === void 0 ? void 0 : _api$extension2.actions.api();
496
496
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "10.12.4",
3
+ "version": "10.12.6",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,7 +39,7 @@
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.8",
42
+ "@atlaskit/editor-plugin-extension": "5.5.10",
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": "^8.0.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,18 +184,12 @@
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
  },
@@ -214,9 +208,6 @@
214
208
  "platform_editor_r18_fix_selection_resync": {
215
209
  "type": "boolean"
216
210
  },
217
- "platform_editor_controls_patch_8": {
218
- "type": "boolean"
219
- },
220
211
  "platform_editor_table_fw_numcol_overflow_fix": {
221
212
  "type": "boolean"
222
213
  },
@@ -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);
@@ -675,9 +675,8 @@ export const getToolbarConfig =
675
675
  const shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1');
676
676
  // testId is required to show focus on trigger button on ESC key press
677
677
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
678
- const overflowDropdownTestId = fg('platform_editor_controls_patch_8')
679
- ? 'table-overflow-dropdown-trigger'
680
- : undefined;
678
+ const overflowDropdownTestId = 'table-overflow-dropdown-trigger';
679
+
681
680
  const extensionState = api?.extension?.sharedState?.currentState();
682
681
  const extensionApi = api?.extension?.actions.api();
683
682