@atlaskit/editor-plugin-table 15.3.13 → 15.3.14

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
+ ## 15.3.14
4
+
5
+ ### Patch Changes
6
+
7
+ - [`21ffffe31e25a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/21ffffe31e25a) -
8
+ Cleaned platform_editor_fix_table_resizing_undo FG.
9
+ - Updated dependencies
10
+
3
11
  ## 15.3.13
4
12
 
5
13
  ### Patch Changes
@@ -257,11 +257,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
257
257
  )(state.tr);
258
258
  if (!isUserTriggered) {
259
259
  (0, _collab.tintDirtyTransaction)(tr);
260
- if ((0, _platformFeatureFlags.fg)('platform_editor_fix_table_resizing_undo')) {
261
- // Avoid adding this transaction separately to the history as these are automatic updates
262
- // as a consequence of another action
263
- tr.setMeta('addToHistory', false);
264
- }
260
+ // Avoid adding this transaction separately to the history as these are automatic updates
261
+ // as a consequence of another action
262
+ tr.setMeta('addToHistory', false);
265
263
  }
266
264
  dispatch(tr);
267
265
  });
@@ -223,11 +223,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
223
223
  )(state.tr);
224
224
  if (!isUserTriggered) {
225
225
  (0, _collab.tintDirtyTransaction)(tr);
226
- if ((0, _platformFeatureFlags.fg)('platform_editor_fix_table_resizing_undo')) {
227
- // Avoid adding this transaction separately to the history as these are automatic updates
228
- // as a consequence of another action
229
- tr.setMeta('addToHistory', false);
230
- }
226
+ // Avoid adding this transaction separately to the history as these are automatic updates
227
+ // as a consequence of another action
228
+ tr.setMeta('addToHistory', false);
231
229
  }
232
230
  dispatch(tr);
233
231
  });
@@ -10,7 +10,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
10
10
  var _nodeWidth = require("@atlaskit/editor-common/node-width");
11
11
  var _styles = require("@atlaskit/editor-common/styles");
12
12
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _columnWidth = require("../../transforms/column-width");
15
14
  var _nodes = require("../../utils/nodes");
16
15
  var _misc = require("../utils/misc");
@@ -178,9 +177,6 @@ var scaleTable = exports.scaleTable = function scaleTable(tableRef, options, dom
178
177
  }
179
178
  if (resizeState) {
180
179
  tr = (0, _columnWidth.updateColumnWidths)(resizeState, node, start, api)(tr);
181
- if (!(0, _platformFeatureFlags.fg)('platform_editor_fix_table_resizing_undo')) {
182
- tr.setMeta('addToHistory', false);
183
- }
184
180
  if (tr.docChanged) {
185
181
  tr.setMeta('scrollIntoView', false);
186
182
  // TODO: ED-8995 - We need to do this check to reduce the number of race conditions when working with tables.
@@ -252,11 +252,9 @@ class TableComponent extends React.Component {
252
252
  )(state.tr);
253
253
  if (!isUserTriggered) {
254
254
  tintDirtyTransaction(tr);
255
- if (fg('platform_editor_fix_table_resizing_undo')) {
256
- // Avoid adding this transaction separately to the history as these are automatic updates
257
- // as a consequence of another action
258
- tr.setMeta('addToHistory', false);
259
- }
255
+ // Avoid adding this transaction separately to the history as these are automatic updates
256
+ // as a consequence of another action
257
+ tr.setMeta('addToHistory', false);
260
258
  }
261
259
  dispatch(tr);
262
260
  });
@@ -209,11 +209,9 @@ class TableComponent extends React.Component {
209
209
  )(state.tr);
210
210
  if (!isUserTriggered) {
211
211
  tintDirtyTransaction(tr);
212
- if (fg('platform_editor_fix_table_resizing_undo')) {
213
- // Avoid adding this transaction separately to the history as these are automatic updates
214
- // as a consequence of another action
215
- tr.setMeta('addToHistory', false);
216
- }
212
+ // Avoid adding this transaction separately to the history as these are automatic updates
213
+ // as a consequence of another action
214
+ tr.setMeta('addToHistory', false);
217
215
  }
218
216
  dispatch(tr);
219
217
  });
@@ -1,7 +1,6 @@
1
1
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
2
2
  import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
3
3
  import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
4
  import { updateColumnWidths } from '../../transforms/column-width';
6
5
  import { getTableWidth } from '../../utils/nodes';
7
6
  import { getLayoutSize } from '../utils/misc';
@@ -164,9 +163,6 @@ export const scaleTable = (tableRef, options, domAtPos, api, isTableScalingEnabl
164
163
  }
165
164
  if (resizeState) {
166
165
  tr = updateColumnWidths(resizeState, node, start, api)(tr);
167
- if (!fg('platform_editor_fix_table_resizing_undo')) {
168
- tr.setMeta('addToHistory', false);
169
- }
170
166
  if (tr.docChanged) {
171
167
  tr.setMeta('scrollIntoView', false);
172
168
  // TODO: ED-8995 - We need to do this check to reduce the number of race conditions when working with tables.
@@ -251,11 +251,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
251
251
  )(state.tr);
252
252
  if (!isUserTriggered) {
253
253
  tintDirtyTransaction(tr);
254
- if (fg('platform_editor_fix_table_resizing_undo')) {
255
- // Avoid adding this transaction separately to the history as these are automatic updates
256
- // as a consequence of another action
257
- tr.setMeta('addToHistory', false);
258
- }
254
+ // Avoid adding this transaction separately to the history as these are automatic updates
255
+ // as a consequence of another action
256
+ tr.setMeta('addToHistory', false);
259
257
  }
260
258
  dispatch(tr);
261
259
  });
@@ -217,11 +217,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
217
217
  )(state.tr);
218
218
  if (!isUserTriggered) {
219
219
  tintDirtyTransaction(tr);
220
- if (fg('platform_editor_fix_table_resizing_undo')) {
221
- // Avoid adding this transaction separately to the history as these are automatic updates
222
- // as a consequence of another action
223
- tr.setMeta('addToHistory', false);
224
- }
220
+ // Avoid adding this transaction separately to the history as these are automatic updates
221
+ // as a consequence of another action
222
+ tr.setMeta('addToHistory', false);
225
223
  }
226
224
  dispatch(tr);
227
225
  });
@@ -4,7 +4,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
5
5
  import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
6
6
  import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import { updateColumnWidths } from '../../transforms/column-width';
9
8
  import { getTableWidth } from '../../utils/nodes';
10
9
  import { getLayoutSize } from '../utils/misc';
@@ -170,9 +169,6 @@ export var scaleTable = function scaleTable(tableRef, options, domAtPos, api) {
170
169
  }
171
170
  if (resizeState) {
172
171
  tr = updateColumnWidths(resizeState, node, start, api)(tr);
173
- if (!fg('platform_editor_fix_table_resizing_undo')) {
174
- tr.setMeta('addToHistory', false);
175
- }
176
172
  if (tr.docChanged) {
177
173
  tr.setMeta('scrollIntoView', false);
178
174
  // TODO: ED-8995 - We need to do this check to reduce the number of race conditions when working with tables.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "15.3.13",
3
+ "version": "15.3.14",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@atlaskit/adf-schema": "^51.3.2",
32
- "@atlaskit/button": "^23.5.0",
32
+ "@atlaskit/button": "^23.6.0",
33
33
  "@atlaskit/custom-steps": "^0.16.0",
34
34
  "@atlaskit/editor-palette": "^2.1.0",
35
35
  "@atlaskit/editor-plugin-accessibility-utils": "^6.0.0",
@@ -37,9 +37,9 @@
37
37
  "@atlaskit/editor-plugin-batch-attribute-updates": "^6.1.0",
38
38
  "@atlaskit/editor-plugin-content-insertion": "^6.0.0",
39
39
  "@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
40
- "@atlaskit/editor-plugin-extension": "9.2.0",
40
+ "@atlaskit/editor-plugin-extension": "9.2.1",
41
41
  "@atlaskit/editor-plugin-guideline": "^6.0.0",
42
- "@atlaskit/editor-plugin-interaction": "^9.0.0",
42
+ "@atlaskit/editor-plugin-interaction": "^10.0.0",
43
43
  "@atlaskit/editor-plugin-limited-mode": "^3.1.0",
44
44
  "@atlaskit/editor-plugin-selection": "^6.1.0",
45
45
  "@atlaskit/editor-plugin-toolbar": "^3.4.0",
@@ -59,10 +59,10 @@
59
59
  "@atlaskit/primitives": "^16.1.0",
60
60
  "@atlaskit/react-ufo": "^4.14.0",
61
61
  "@atlaskit/theme": "^21.0.0",
62
- "@atlaskit/tmp-editor-statsig": "^13.31.0",
62
+ "@atlaskit/tmp-editor-statsig": "^13.32.0",
63
63
  "@atlaskit/toggle": "^15.1.0",
64
- "@atlaskit/tokens": "^7.1.0",
65
- "@atlaskit/tooltip": "^20.7.0",
64
+ "@atlaskit/tokens": "^8.0.0",
65
+ "@atlaskit/tooltip": "^20.8.0",
66
66
  "@babel/runtime": "^7.0.0",
67
67
  "@emotion/react": "^11.7.1",
68
68
  "classnames": "^2.2.5",
@@ -127,9 +127,6 @@
127
127
  "platform_editor_tables_table_selector": {
128
128
  "type": "boolean"
129
129
  },
130
- "platform_editor_fix_table_resizing_undo": {
131
- "type": "boolean"
132
- },
133
130
  "platform_editor_table_fw_numcol_overflow_fix": {
134
131
  "type": "boolean"
135
132
  },