@atlaskit/editor-plugin-table 10.7.0 → 10.7.1

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.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#139216](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139216)
8
+ [`e8f596d2b1910`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8f596d2b1910) -
9
+ [ux] Cleaned up platform_editor_controls_patch_1 FG
10
+ - Updated dependencies
11
+
3
12
  ## 10.7.0
4
13
 
5
14
  ### Minor Changes
@@ -487,12 +487,12 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(getE
487
487
  };
488
488
  var isNestedTable = (0, _platformFeatureFlags.fg)('platform_editor_use_nested_table_pm_nodes') && (0, _nesting.isSelectionTableNestedInTable)(state);
489
489
  var hoverTableProps = function hoverTableProps(isInDanger, isSelected) {
490
- return (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_1') ? {
490
+ return {
491
491
  onMouseEnter: (0, _commands.hoverTable)(isInDanger, isSelected),
492
492
  onMouseLeave: (0, _commands.clearHoverSelection)(),
493
493
  onFocus: (0, _commands.hoverTable)(isInDanger, isSelected),
494
494
  onBlur: (0, _commands.clearHoverSelection)()
495
- } : undefined;
495
+ };
496
496
  };
497
497
  return {
498
498
  title: toolbarTitle,
@@ -457,12 +457,12 @@ export const getToolbarConfig = (getEditorContainerWidth, api, editorAnalyticsAP
457
457
  }]
458
458
  };
459
459
  const isNestedTable = fg('platform_editor_use_nested_table_pm_nodes') && isSelectionTableNestedInTable(state);
460
- const hoverTableProps = (isInDanger, isSelected) => fg('platform_editor_controls_patch_1') ? {
460
+ const hoverTableProps = (isInDanger, isSelected) => ({
461
461
  onMouseEnter: hoverTable(isInDanger, isSelected),
462
462
  onMouseLeave: clearHoverSelection(),
463
463
  onFocus: hoverTable(isInDanger, isSelected),
464
464
  onBlur: clearHoverSelection()
465
- } : undefined;
465
+ });
466
466
  return {
467
467
  title: toolbarTitle,
468
468
  getDomRef,
@@ -479,12 +479,12 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
479
479
  };
480
480
  var isNestedTable = fg('platform_editor_use_nested_table_pm_nodes') && isSelectionTableNestedInTable(state);
481
481
  var hoverTableProps = function hoverTableProps(isInDanger, isSelected) {
482
- return fg('platform_editor_controls_patch_1') ? {
482
+ return {
483
483
  onMouseEnter: hoverTable(isInDanger, isSelected),
484
484
  onMouseLeave: clearHoverSelection(),
485
485
  onFocus: hoverTable(isInDanger, isSelected),
486
486
  onBlur: clearHoverSelection()
487
- } : undefined;
487
+ };
488
488
  };
489
489
  return {
490
490
  title: toolbarTitle,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "10.7.0",
3
+ "version": "10.7.1",
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": "^3.1.0",
42
- "@atlaskit/editor-plugin-extension": "5.2.3",
42
+ "@atlaskit/editor-plugin-extension": "5.2.4",
43
43
  "@atlaskit/editor-plugin-guideline": "^2.0.0",
44
44
  "@atlaskit/editor-plugin-selection": "^2.1.0",
45
45
  "@atlaskit/editor-plugin-width": "^3.0.0",
@@ -192,9 +192,6 @@
192
192
  "platform_editor_nested_tables_cellselection_paste": {
193
193
  "type": "boolean"
194
194
  },
195
- "platform_editor_controls_patch_1": {
196
- "type": "boolean"
197
- },
198
195
  "platform_editor_number_column_sticky_header_broken": {
199
196
  "type": "boolean"
200
197
  },
@@ -665,15 +665,12 @@ export const getToolbarConfig =
665
665
  const isNestedTable =
666
666
  fg('platform_editor_use_nested_table_pm_nodes') && isSelectionTableNestedInTable(state);
667
667
 
668
- const hoverTableProps = (isInDanger?: boolean, isSelected?: boolean) =>
669
- fg('platform_editor_controls_patch_1')
670
- ? {
671
- onMouseEnter: hoverTable(isInDanger, isSelected),
672
- onMouseLeave: clearHoverSelection(),
673
- onFocus: hoverTable(isInDanger, isSelected),
674
- onBlur: clearHoverSelection(),
675
- }
676
- : undefined;
668
+ const hoverTableProps = (isInDanger?: boolean, isSelected?: boolean) => ({
669
+ onMouseEnter: hoverTable(isInDanger, isSelected),
670
+ onMouseLeave: clearHoverSelection(),
671
+ onFocus: hoverTable(isInDanger, isSelected),
672
+ onBlur: clearHoverSelection(),
673
+ });
677
674
 
678
675
  return {
679
676
  title: toolbarTitle,