@atlaskit/editor-plugin-table 17.3.30 → 17.3.32

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,19 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 17.3.32
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 17.3.31
10
+
11
+ ### Patch Changes
12
+
13
+ - [`715d7c4db3977`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/715d7c4db3977) -
14
+ [EDITOR-4953] clean up platform_editor_table_cell_colour_change experiment
15
+ - Updated dependencies
16
+
3
17
  ## 17.3.30
4
18
 
5
19
  ### Patch Changes
@@ -14,7 +14,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
14
14
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
15
15
  var _tableMap = require("@atlaskit/editor-tables/table-map");
16
16
  var _utils2 = require("@atlaskit/editor-tables/utils");
17
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
18
17
  var _types = require("../../types");
19
18
  var _plugin = require("../decorations/plugin");
20
19
  var _columnResizing = require("../decorations/utils/column-resizing");
@@ -362,16 +361,8 @@ var setMultipleCellAttrs = exports.setMultipleCellAttrs = function setMultipleCe
362
361
  }
363
362
  if (tr.docChanged && cursorPos !== undefined) {
364
363
  if (dispatch) {
365
- if ((0, _expValEquals.expValEquals)('platform_editor_table_cell_colour_change', 'isEnabled', true)) {
366
- editorView === null || editorView === void 0 || editorView.focus();
367
- dispatch(tr);
368
- } else {
369
- if (cursorPos !== undefined) {
370
- editorView === null || editorView === void 0 || editorView.focus();
371
- tr.setSelection(new _state.TextSelection(tr.doc.resolve(cursorPos)));
372
- }
373
- dispatch(tr);
374
- }
364
+ editorView === null || editorView === void 0 || editorView.focus();
365
+ dispatch(tr);
375
366
  }
376
367
  return true;
377
368
  }
@@ -25,7 +25,6 @@ var _utils2 = require("@atlaskit/editor-tables/utils");
25
25
  var _paintBucket = _interopRequireDefault(require("@atlaskit/icon/core/paint-bucket"));
26
26
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
27
27
  var _primitives = require("@atlaskit/primitives");
28
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
29
28
  var _toggle = _interopRequireDefault(require("@atlaskit/toggle"));
30
29
  var _commands = require("../../pm-plugins/commands");
31
30
  var _commandsWithAnalytics = require("../../pm-plugins/commands/commands-with-analytics");
@@ -470,10 +469,8 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
470
469
  if (shouldCloseMenu(state)) {
471
470
  if (target && focusTarget === 'handle') {
472
471
  target === null || target === void 0 || target.focus();
473
- } else if ((0, _expValEquals.expValEquals)('platform_editor_table_cell_colour_change', 'isEnabled', true)) {
474
- editorView.focus();
475
472
  } else {
476
- editorView.dom.focus();
473
+ editorView.focus();
477
474
  }
478
475
  (0, _commands2.toggleDragMenu)(false, direction, index)(state, dispatch);
479
476
  }
@@ -5,7 +5,6 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
5
5
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
6
6
  import { TableMap } from '@atlaskit/editor-tables/table-map';
7
7
  import { findCellClosestToPos, findTable, getCellsInColumn, getCellsInRow, getSelectionRect, isSelectionType, isTableSelected, removeTable, selectColumns as selectColumnsTransform, selectColumn as selectColumnTransform, selectionCell, selectRows as selectRowsTransform, selectRow as selectRowTransform, setCellAttrs } from '@atlaskit/editor-tables/utils';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  import { TableCssClassName as ClassName, TableDecorations } from '../../types';
10
9
  import { getDecorations } from '../decorations/plugin';
11
10
  import { buildColumnResizingDecorations, clearColumnResizingDecorations } from '../decorations/utils/column-resizing';
@@ -374,16 +373,8 @@ export const setMultipleCellAttrs = (attrs, editorView) => (state, dispatch) =>
374
373
  }
375
374
  if (tr.docChanged && cursorPos !== undefined) {
376
375
  if (dispatch) {
377
- if (expValEquals('platform_editor_table_cell_colour_change', 'isEnabled', true)) {
378
- editorView === null || editorView === void 0 ? void 0 : editorView.focus();
379
- dispatch(tr);
380
- } else {
381
- if (cursorPos !== undefined) {
382
- editorView === null || editorView === void 0 ? void 0 : editorView.focus();
383
- tr.setSelection(new TextSelection(tr.doc.resolve(cursorPos)));
384
- }
385
- dispatch(tr);
386
- }
376
+ editorView === null || editorView === void 0 ? void 0 : editorView.focus();
377
+ dispatch(tr);
387
378
  }
388
379
  return true;
389
380
  }
@@ -24,7 +24,6 @@ import PaintBucketIcon from '@atlaskit/icon/core/paint-bucket';
24
24
  import { fg } from '@atlaskit/platform-feature-flags';
25
25
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
26
26
  import { Box, xcss } from '@atlaskit/primitives';
27
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
28
27
  import Toggle from '@atlaskit/toggle';
29
28
  import { clearHoverSelection, hoverColumns, hoverRows } from '../../pm-plugins/commands';
30
29
  import { setColorWithAnalytics, toggleHeaderColumnWithAnalytics, toggleHeaderRowWithAnalytics, toggleNumberColumnWithAnalytics } from '../../pm-plugins/commands/commands-with-analytics';
@@ -460,10 +459,8 @@ const DragMenu = /*#__PURE__*/React.memo(({
460
459
  if (shouldCloseMenu(state)) {
461
460
  if (target && focusTarget === 'handle') {
462
461
  target === null || target === void 0 ? void 0 : target.focus();
463
- } else if (expValEquals('platform_editor_table_cell_colour_change', 'isEnabled', true)) {
464
- editorView.focus();
465
462
  } else {
466
- editorView.dom.focus();
463
+ editorView.focus();
467
464
  }
468
465
  toggleDragMenu(false, direction, index)(state, dispatch);
469
466
  }
@@ -9,7 +9,6 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
9
9
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
10
10
  import { TableMap } from '@atlaskit/editor-tables/table-map';
11
11
  import { findCellClosestToPos, findTable, getCellsInColumn, getCellsInRow, getSelectionRect, isSelectionType, isTableSelected, removeTable, selectColumns as selectColumnsTransform, selectColumn as selectColumnTransform, selectionCell, selectRows as selectRowsTransform, selectRow as selectRowTransform, setCellAttrs } from '@atlaskit/editor-tables/utils';
12
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
12
  import { TableCssClassName as ClassName, TableDecorations } from '../../types';
14
13
  import { getDecorations } from '../decorations/plugin';
15
14
  import { buildColumnResizingDecorations, clearColumnResizingDecorations } from '../decorations/utils/column-resizing';
@@ -355,16 +354,8 @@ export var setMultipleCellAttrs = function setMultipleCellAttrs(attrs, editorVie
355
354
  }
356
355
  if (tr.docChanged && cursorPos !== undefined) {
357
356
  if (dispatch) {
358
- if (expValEquals('platform_editor_table_cell_colour_change', 'isEnabled', true)) {
359
- editorView === null || editorView === void 0 || editorView.focus();
360
- dispatch(tr);
361
- } else {
362
- if (cursorPos !== undefined) {
363
- editorView === null || editorView === void 0 || editorView.focus();
364
- tr.setSelection(new TextSelection(tr.doc.resolve(cursorPos)));
365
- }
366
- dispatch(tr);
367
- }
357
+ editorView === null || editorView === void 0 || editorView.focus();
358
+ dispatch(tr);
368
359
  }
369
360
  return true;
370
361
  }
@@ -26,7 +26,6 @@ import PaintBucketIcon from '@atlaskit/icon/core/paint-bucket';
26
26
  import { fg } from '@atlaskit/platform-feature-flags';
27
27
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
28
28
  import { Box, xcss } from '@atlaskit/primitives';
29
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
30
29
  import Toggle from '@atlaskit/toggle';
31
30
  import { clearHoverSelection, hoverColumns, hoverRows } from '../../pm-plugins/commands';
32
31
  import { setColorWithAnalytics, toggleHeaderColumnWithAnalytics, toggleHeaderRowWithAnalytics, toggleNumberColumnWithAnalytics } from '../../pm-plugins/commands/commands-with-analytics';
@@ -459,10 +458,8 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
459
458
  if (shouldCloseMenu(state)) {
460
459
  if (target && focusTarget === 'handle') {
461
460
  target === null || target === void 0 || target.focus();
462
- } else if (expValEquals('platform_editor_table_cell_colour_change', 'isEnabled', true)) {
463
- editorView.focus();
464
461
  } else {
465
- editorView.dom.focus();
462
+ editorView.focus();
466
463
  }
467
464
  toggleDragMenu(false, direction, index)(state, dispatch);
468
465
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "17.3.30",
3
+ "version": "17.3.32",
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
  "singleton": true
29
29
  },
30
30
  "dependencies": {
31
- "@atlaskit/adf-schema": "^52.0.0",
31
+ "@atlaskit/adf-schema": "^52.1.0",
32
32
  "@atlaskit/button": "^23.9.0",
33
33
  "@atlaskit/custom-steps": "^0.16.0",
34
34
  "@atlaskit/editor-palette": "^2.1.0",
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/editor-plugin-batch-attribute-updates": "^7.0.0",
38
38
  "@atlaskit/editor-plugin-content-insertion": "^7.0.0",
39
39
  "@atlaskit/editor-plugin-editor-viewmode": "^9.0.0",
40
- "@atlaskit/editor-plugin-extension": "10.1.12",
40
+ "@atlaskit/editor-plugin-extension": "10.1.14",
41
41
  "@atlaskit/editor-plugin-guideline": "^7.0.0",
42
42
  "@atlaskit/editor-plugin-interaction": "^14.0.0",
43
43
  "@atlaskit/editor-plugin-limited-mode": "^4.0.0",
@@ -57,7 +57,7 @@
57
57
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
58
58
  "@atlaskit/primitives": "^18.0.0",
59
59
  "@atlaskit/theme": "^21.0.0",
60
- "@atlaskit/tmp-editor-statsig": "^31.2.0",
60
+ "@atlaskit/tmp-editor-statsig": "^32.3.0",
61
61
  "@atlaskit/toggle": "^15.2.0",
62
62
  "@atlaskit/tokens": "^11.0.0",
63
63
  "@atlaskit/tooltip": "^20.14.0",