@atlaskit/editor-plugin-table 38.0.9 → 39.0.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,25 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 39.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 39.0.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 38.0.10
16
+
17
+ ### Patch Changes
18
+
19
+ - [`027fc864d2aaa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/027fc864d2aaa) -
20
+ Clean up feature gate `platform_editor_table_menu_updates_patch_1`
21
+ - Updated dependencies
22
+
3
23
  ## 38.0.9
4
24
 
5
25
  ### Patch Changes
@@ -18,7 +18,6 @@ var _getSelectionRect = require("@atlaskit/editor-tables/utils/get-selection-rec
18
18
  var _informationCircleIcon = require("@atlaskit/editor-toolbar/information-circle-icon");
19
19
  var _sortDescendingIcon = require("@atlaskit/editor-toolbar/sort-descending-icon");
20
20
  var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
21
- var _fg = require("@atlaskit/platform-feature-flags/fg");
22
21
  var _compiled = require("@atlaskit/primitives/compiled");
23
22
  var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
24
23
  var _commands = require("../../../../pm-plugins/commands");
@@ -53,7 +52,7 @@ var SortDecreasingItem = exports.SortDecreasingItem = function SortDecreasingIte
53
52
  // When the table has merged cells, the item remains interactive but is rendered
54
53
  // with a disabled-looking label and leading icon, alongside an enabled info icon
55
54
  // that surfaces why sorting is unavailable.
56
- if (hasMergedCellsInTable && (0, _fg.fg)('platform_editor_table_menu_updates_patch_1')) {
55
+ if (hasMergedCellsInTable) {
57
56
  return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItem.ToolbarDropdownItem, {
58
57
  elemBefore: /*#__PURE__*/_react.default.createElement(_sortDescendingIcon.SortDescendingIcon, {
59
58
  label: "",
@@ -79,7 +78,6 @@ var SortDecreasingItem = exports.SortDecreasingItem = function SortDecreasingIte
79
78
  }
80
79
  return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItem.ToolbarDropdownItem, {
81
80
  onClick: handleClick,
82
- isDisabled: Boolean(tableMenuContext === null || tableMenuContext === void 0 ? void 0 : tableMenuContext.hasMergedCellsInTable),
83
81
  elemBefore: /*#__PURE__*/_react.default.createElement(_sortDescendingIcon.SortDescendingIcon, {
84
82
  label: "",
85
83
  size: "small"
@@ -18,7 +18,6 @@ var _getSelectionRect = require("@atlaskit/editor-tables/utils/get-selection-rec
18
18
  var _informationCircleIcon = require("@atlaskit/editor-toolbar/information-circle-icon");
19
19
  var _sortAscendingIcon = require("@atlaskit/editor-toolbar/sort-ascending-icon");
20
20
  var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
21
- var _fg = require("@atlaskit/platform-feature-flags/fg");
22
21
  var _compiled = require("@atlaskit/primitives/compiled");
23
22
  var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
24
23
  var _commands = require("../../../../pm-plugins/commands");
@@ -53,7 +52,7 @@ var SortIncreasingItem = exports.SortIncreasingItem = function SortIncreasingIte
53
52
  // When the table has merged cells, the item remains interactive but is rendered
54
53
  // with a disabled-looking label and leading icon, alongside an enabled info icon
55
54
  // that surfaces why sorting is unavailable.
56
- if (hasMergedCellsInTable && (0, _fg.fg)('platform_editor_table_menu_updates_patch_1')) {
55
+ if (hasMergedCellsInTable) {
57
56
  return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItem.ToolbarDropdownItem, {
58
57
  elemBefore: /*#__PURE__*/_react.default.createElement(_sortAscendingIcon.SortAscendingIcon, {
59
58
  label: "",
@@ -79,7 +78,6 @@ var SortIncreasingItem = exports.SortIncreasingItem = function SortIncreasingIte
79
78
  }
80
79
  return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItem.ToolbarDropdownItem, {
81
80
  onClick: handleClick,
82
- isDisabled: Boolean(tableMenuContext === null || tableMenuContext === void 0 ? void 0 : tableMenuContext.hasMergedCellsInTable),
83
81
  elemBefore: /*#__PURE__*/_react.default.createElement(_sortAscendingIcon.SortAscendingIcon, {
84
82
  label: "",
85
83
  size: "small"
@@ -11,7 +11,6 @@ import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-re
11
11
  import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circle-icon';
12
12
  import { SortDescendingIcon } from '@atlaskit/editor-toolbar/sort-descending-icon';
13
13
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
14
- import { fg } from '@atlaskit/platform-feature-flags/fg';
15
14
  import { Box, Text } from '@atlaskit/primitives/compiled';
16
15
  import Tooltip from '@atlaskit/tooltip/Tooltip';
17
16
  import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
@@ -49,7 +48,7 @@ export const SortDecreasingItem = ({
49
48
  // When the table has merged cells, the item remains interactive but is rendered
50
49
  // with a disabled-looking label and leading icon, alongside an enabled info icon
51
50
  // that surfaces why sorting is unavailable.
52
- if (hasMergedCellsInTable && fg('platform_editor_table_menu_updates_patch_1')) {
51
+ if (hasMergedCellsInTable) {
53
52
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
54
53
  elemBefore: /*#__PURE__*/React.createElement(SortDescendingIcon, {
55
54
  label: "",
@@ -73,7 +72,6 @@ export const SortDecreasingItem = ({
73
72
  }
74
73
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
75
74
  onClick: handleClick,
76
- isDisabled: Boolean(tableMenuContext === null || tableMenuContext === void 0 ? void 0 : tableMenuContext.hasMergedCellsInTable),
77
75
  elemBefore: /*#__PURE__*/React.createElement(SortDescendingIcon, {
78
76
  label: "",
79
77
  size: "small"
@@ -11,7 +11,6 @@ import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-re
11
11
  import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circle-icon';
12
12
  import { SortAscendingIcon } from '@atlaskit/editor-toolbar/sort-ascending-icon';
13
13
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
14
- import { fg } from '@atlaskit/platform-feature-flags/fg';
15
14
  import { Box, Text } from '@atlaskit/primitives/compiled';
16
15
  import Tooltip from '@atlaskit/tooltip/Tooltip';
17
16
  import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
@@ -49,7 +48,7 @@ export const SortIncreasingItem = ({
49
48
  // When the table has merged cells, the item remains interactive but is rendered
50
49
  // with a disabled-looking label and leading icon, alongside an enabled info icon
51
50
  // that surfaces why sorting is unavailable.
52
- if (hasMergedCellsInTable && fg('platform_editor_table_menu_updates_patch_1')) {
51
+ if (hasMergedCellsInTable) {
53
52
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
54
53
  elemBefore: /*#__PURE__*/React.createElement(SortAscendingIcon, {
55
54
  label: "",
@@ -73,7 +72,6 @@ export const SortIncreasingItem = ({
73
72
  }
74
73
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
75
74
  onClick: handleClick,
76
- isDisabled: Boolean(tableMenuContext === null || tableMenuContext === void 0 ? void 0 : tableMenuContext.hasMergedCellsInTable),
77
75
  elemBefore: /*#__PURE__*/React.createElement(SortAscendingIcon, {
78
76
  label: "",
79
77
  size: "small"
@@ -11,7 +11,6 @@ import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-re
11
11
  import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circle-icon';
12
12
  import { SortDescendingIcon } from '@atlaskit/editor-toolbar/sort-descending-icon';
13
13
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
14
- import { fg } from '@atlaskit/platform-feature-flags/fg';
15
14
  import { Box, Text } from '@atlaskit/primitives/compiled';
16
15
  import Tooltip from '@atlaskit/tooltip/Tooltip';
17
16
  import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
@@ -46,7 +45,7 @@ export var SortDecreasingItem = function SortDecreasingItem(_ref) {
46
45
  // When the table has merged cells, the item remains interactive but is rendered
47
46
  // with a disabled-looking label and leading icon, alongside an enabled info icon
48
47
  // that surfaces why sorting is unavailable.
49
- if (hasMergedCellsInTable && fg('platform_editor_table_menu_updates_patch_1')) {
48
+ if (hasMergedCellsInTable) {
50
49
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
51
50
  elemBefore: /*#__PURE__*/React.createElement(SortDescendingIcon, {
52
51
  label: "",
@@ -72,7 +71,6 @@ export var SortDecreasingItem = function SortDecreasingItem(_ref) {
72
71
  }
73
72
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
74
73
  onClick: handleClick,
75
- isDisabled: Boolean(tableMenuContext === null || tableMenuContext === void 0 ? void 0 : tableMenuContext.hasMergedCellsInTable),
76
74
  elemBefore: /*#__PURE__*/React.createElement(SortDescendingIcon, {
77
75
  label: "",
78
76
  size: "small"
@@ -11,7 +11,6 @@ import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-re
11
11
  import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circle-icon';
12
12
  import { SortAscendingIcon } from '@atlaskit/editor-toolbar/sort-ascending-icon';
13
13
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
14
- import { fg } from '@atlaskit/platform-feature-flags/fg';
15
14
  import { Box, Text } from '@atlaskit/primitives/compiled';
16
15
  import Tooltip from '@atlaskit/tooltip/Tooltip';
17
16
  import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
@@ -46,7 +45,7 @@ export var SortIncreasingItem = function SortIncreasingItem(_ref) {
46
45
  // When the table has merged cells, the item remains interactive but is rendered
47
46
  // with a disabled-looking label and leading icon, alongside an enabled info icon
48
47
  // that surfaces why sorting is unavailable.
49
- if (hasMergedCellsInTable && fg('platform_editor_table_menu_updates_patch_1')) {
48
+ if (hasMergedCellsInTable) {
50
49
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
51
50
  elemBefore: /*#__PURE__*/React.createElement(SortAscendingIcon, {
52
51
  label: "",
@@ -72,7 +71,6 @@ export var SortIncreasingItem = function SortIncreasingItem(_ref) {
72
71
  }
73
72
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
74
73
  onClick: handleClick,
75
- isDisabled: Boolean(tableMenuContext === null || tableMenuContext === void 0 ? void 0 : tableMenuContext.hasMergedCellsInTable),
76
74
  elemBefore: /*#__PURE__*/React.createElement(SortAscendingIcon, {
77
75
  label: "",
78
76
  size: "small"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "38.0.9",
3
+ "version": "39.0.1",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,20 +24,20 @@
24
24
  "@atlaskit/button": "^25.4.0",
25
25
  "@atlaskit/custom-steps": "^1.1.0",
26
26
  "@atlaskit/editor-palette": "^3.5.0",
27
- "@atlaskit/editor-plugin-accessibility-utils": "^26.0.0",
28
- "@atlaskit/editor-plugin-analytics": "^26.0.0",
29
- "@atlaskit/editor-plugin-batch-attribute-updates": "^26.0.0",
30
- "@atlaskit/editor-plugin-content-insertion": "^26.0.0",
31
- "@atlaskit/editor-plugin-editor-viewmode": "^28.0.0",
32
- "@atlaskit/editor-plugin-extension": "29.0.7",
33
- "@atlaskit/editor-plugin-guideline": "^26.0.0",
34
- "@atlaskit/editor-plugin-interaction": "^40.0.0",
35
- "@atlaskit/editor-plugin-limited-mode": "^23.0.0",
36
- "@atlaskit/editor-plugin-selection": "^26.0.0",
37
- "@atlaskit/editor-plugin-toolbar": "^23.0.0",
38
- "@atlaskit/editor-plugin-ui-control-registry": "^20.0.0",
39
- "@atlaskit/editor-plugin-user-intent": "^24.0.0",
40
- "@atlaskit/editor-plugin-width": "^27.0.0",
27
+ "@atlaskit/editor-plugin-accessibility-utils": "^27.0.0",
28
+ "@atlaskit/editor-plugin-analytics": "^27.0.0",
29
+ "@atlaskit/editor-plugin-batch-attribute-updates": "^27.0.0",
30
+ "@atlaskit/editor-plugin-content-insertion": "^27.0.0",
31
+ "@atlaskit/editor-plugin-editor-viewmode": "^29.0.0",
32
+ "@atlaskit/editor-plugin-extension": "30.0.1",
33
+ "@atlaskit/editor-plugin-guideline": "^27.0.0",
34
+ "@atlaskit/editor-plugin-interaction": "^41.0.0",
35
+ "@atlaskit/editor-plugin-limited-mode": "^24.0.0",
36
+ "@atlaskit/editor-plugin-selection": "^27.0.0",
37
+ "@atlaskit/editor-plugin-toolbar": "^24.0.0",
38
+ "@atlaskit/editor-plugin-ui-control-registry": "^21.0.0",
39
+ "@atlaskit/editor-plugin-user-intent": "^25.0.0",
40
+ "@atlaskit/editor-plugin-width": "^28.0.0",
41
41
  "@atlaskit/editor-prosemirror": "^9.0.0",
42
42
  "@atlaskit/editor-shared-styles": "^4.4.0",
43
43
  "@atlaskit/editor-tables": "^3.2.0",
@@ -53,9 +53,9 @@
53
53
  "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.2.0",
54
54
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^3.0.0",
55
55
  "@atlaskit/primitives": "^22.5.0",
56
- "@atlaskit/tmp-editor-statsig": "^234.0.0",
56
+ "@atlaskit/tmp-editor-statsig": "^235.0.0",
57
57
  "@atlaskit/toggle": "^17.3.0",
58
- "@atlaskit/tokens": "^20.4.0",
58
+ "@atlaskit/tokens": "^20.5.0",
59
59
  "@atlaskit/tooltip": "^24.4.0",
60
60
  "@babel/runtime": "^7.0.0",
61
61
  "@compiled/react": "^1.0.2",
@@ -68,7 +68,7 @@
68
68
  "uuid": "^11.1.1"
69
69
  },
70
70
  "peerDependencies": {
71
- "@atlaskit/editor-common": "^130.5.0",
71
+ "@atlaskit/editor-common": "^131.0.0",
72
72
  "react": "^18.2.0 || ^19.2.0",
73
73
  "react-dom": "^18.2.0 || ^19.2.0",
74
74
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -96,9 +96,6 @@
96
96
  "platform_editor_ai_show_diff_patch_2": {
97
97
  "type": "boolean"
98
98
  },
99
- "platform_editor_table_menu_updates_patch_1": {
100
- "type": "boolean"
101
- },
102
99
  "platform_editor_table_view_mode_scaling_fix": {
103
100
  "type": "boolean"
104
101
  },