@atlaskit/editor-plugin-table 10.12.11 → 10.12.12

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
+ ## 10.12.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [#177647](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/177647)
8
+ [`422759e00f33d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/422759e00f33d) -
9
+ ED-28282 Clean up platform_editor_fix_table_width_inline_comment
10
+ - Updated dependencies
11
+
3
12
  ## 10.12.11
4
13
 
5
14
  ### Patch Changes
@@ -45,7 +45,7 @@ var tableAttributes = function tableAttributes(node) {
45
45
  };
46
46
  };
47
47
  var getInlineWidth = function getInlineWidth(node, options, state, pos, allowTableResizing) {
48
- if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor && (0, _platformFeatureFlags.fg)('platform_editor_fix_table_width_inline_comment') || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
48
+ if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
49
49
  return;
50
50
  }
51
51
 
@@ -373,7 +373,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(getE
373
373
  var isTableScalingEnabled = (options === null || options === void 0 ? void 0 : options.isTableScalingEnabled) || false;
374
374
  var nodeType = state.schema.nodes.table;
375
375
  var toolbarTitle = 'Table floating controls';
376
- if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_4')) {
376
+ if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
377
377
  var _api$editorViewMode;
378
378
  var isDragHandleMenuOpened = false;
379
379
  var isTableRowOrColumnDragged = false;
@@ -28,7 +28,7 @@ const tableAttributes = node => {
28
28
  };
29
29
  };
30
30
  const getInlineWidth = (node, options, state, pos, allowTableResizing) => {
31
- if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor && fg('platform_editor_fix_table_width_inline_comment') || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
31
+ if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
32
32
  return;
33
33
  }
34
34
 
@@ -353,7 +353,7 @@ export const getToolbarConfig = (getEditorContainerWidth, api, editorAnalyticsAP
353
353
  const isTableScalingEnabled = (options === null || options === void 0 ? void 0 : options.isTableScalingEnabled) || false;
354
354
  const nodeType = state.schema.nodes.table;
355
355
  const toolbarTitle = 'Table floating controls';
356
- if (editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_4')) {
356
+ if (editorExperiment('platform_editor_controls', 'variant1')) {
357
357
  var _api$editorViewMode, _api$editorViewMode$s;
358
358
  let isDragHandleMenuOpened = false;
359
359
  let isTableRowOrColumnDragged = false;
@@ -38,7 +38,7 @@ var tableAttributes = function tableAttributes(node) {
38
38
  };
39
39
  };
40
40
  var getInlineWidth = function getInlineWidth(node, options, state, pos, allowTableResizing) {
41
- if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor && fg('platform_editor_fix_table_width_inline_comment') || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
41
+ if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
42
42
  return;
43
43
  }
44
44
 
@@ -366,7 +366,7 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
366
366
  var isTableScalingEnabled = (options === null || options === void 0 ? void 0 : options.isTableScalingEnabled) || false;
367
367
  var nodeType = state.schema.nodes.table;
368
368
  var toolbarTitle = 'Table floating controls';
369
- if (editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_4')) {
369
+ if (editorExperiment('platform_editor_controls', 'variant1')) {
370
370
  var _api$editorViewMode;
371
371
  var isDragHandleMenuOpened = false;
372
372
  var isTableRowOrColumnDragged = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "10.12.11",
3
+ "version": "10.12.12",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
56
56
  "@atlaskit/primitives": "^14.9.0",
57
57
  "@atlaskit/theme": "^18.0.0",
58
- "@atlaskit/tmp-editor-statsig": "^8.2.0",
58
+ "@atlaskit/tmp-editor-statsig": "^8.3.0",
59
59
  "@atlaskit/toggle": "^15.0.0",
60
60
  "@atlaskit/tokens": "^5.4.0",
61
61
  "@atlaskit/tooltip": "^20.3.0",
@@ -178,9 +178,6 @@
178
178
  "platform_editor_number_column_sticky_header_broken": {
179
179
  "type": "boolean"
180
180
  },
181
- "platform_editor_controls_patch_4": {
182
- "type": "boolean"
183
- },
184
181
  "platform_editor_tables_table_selector": {
185
182
  "type": "boolean"
186
183
  },
@@ -193,9 +190,6 @@
193
190
  "platform_editor_table_drag_menu_flickers_fix": {
194
191
  "type": "boolean"
195
192
  },
196
- "platform_editor_fix_table_width_inline_comment": {
197
- "type": "boolean"
198
- },
199
193
  "platform_editor_table_last_col_drag_handle_fix": {
200
194
  "type": "boolean"
201
195
  },
@@ -60,9 +60,7 @@ const getInlineWidth = (
60
60
  allowTableResizing?: boolean,
61
61
  ): number | undefined => {
62
62
  if (
63
- (!node.attrs.width &&
64
- options?.isChromelessEditor &&
65
- fg('platform_editor_fix_table_width_inline_comment')) ||
63
+ (!node.attrs.width && options?.isChromelessEditor) ||
66
64
  (!node.attrs.width && options?.isCommentEditor && allowTableResizing)
67
65
  ) {
68
66
  return;
@@ -494,10 +494,7 @@ export const getToolbarConfig =
494
494
  const nodeType = state.schema.nodes.table;
495
495
  const toolbarTitle = 'Table floating controls';
496
496
 
497
- if (
498
- editorExperiment('platform_editor_controls', 'variant1') &&
499
- fg('platform_editor_controls_patch_4')
500
- ) {
497
+ if (editorExperiment('platform_editor_controls', 'variant1')) {
501
498
  let isDragHandleMenuOpened = false;
502
499
  let isTableRowOrColumnDragged = false;
503
500
  if (options?.dragAndDropEnabled) {