@atlaskit/editor-plugin-table 10.9.20 → 10.9.22

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/nodeviews/TableComponentWithSharedState.js +91 -78
  3. package/dist/cjs/nodeviews/TableContainer.js +41 -37
  4. package/dist/cjs/nodeviews/TableResizer.js +15 -11
  5. package/dist/cjs/pm-plugins/main.js +4 -12
  6. package/dist/cjs/tablePlugin.js +22 -12
  7. package/dist/cjs/ui/ContentComponent.js +40 -65
  8. package/dist/cjs/ui/DragHandle/index.js +19 -17
  9. package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +14 -11
  10. package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +14 -10
  11. package/dist/cjs/ui/TableFloatingControls/FloatingControlsWithSelection.js +14 -10
  12. package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +14 -10
  13. package/dist/cjs/ui/global-styles.js +14 -10
  14. package/dist/cjs/ui/icons/SortingIconWrapper.js +14 -11
  15. package/dist/es2019/nodeviews/TableComponentWithSharedState.js +92 -78
  16. package/dist/es2019/nodeviews/TableContainer.js +44 -39
  17. package/dist/es2019/nodeviews/TableResizer.js +17 -12
  18. package/dist/es2019/pm-plugins/main.js +4 -12
  19. package/dist/es2019/tablePlugin.js +24 -13
  20. package/dist/es2019/ui/ContentComponent.js +41 -66
  21. package/dist/es2019/ui/DragHandle/index.js +21 -18
  22. package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +16 -12
  23. package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +16 -11
  24. package/dist/es2019/ui/TableFloatingControls/FloatingControlsWithSelection.js +16 -11
  25. package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +16 -11
  26. package/dist/es2019/ui/global-styles.js +16 -11
  27. package/dist/es2019/ui/icons/SortingIconWrapper.js +16 -12
  28. package/dist/esm/nodeviews/TableComponentWithSharedState.js +92 -79
  29. package/dist/esm/nodeviews/TableContainer.js +42 -38
  30. package/dist/esm/nodeviews/TableResizer.js +16 -12
  31. package/dist/esm/pm-plugins/main.js +4 -12
  32. package/dist/esm/tablePlugin.js +23 -13
  33. package/dist/esm/ui/ContentComponent.js +41 -66
  34. package/dist/esm/ui/DragHandle/index.js +20 -18
  35. package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +15 -12
  36. package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +15 -11
  37. package/dist/esm/ui/TableFloatingControls/FloatingControlsWithSelection.js +15 -11
  38. package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +15 -11
  39. package/dist/esm/ui/global-styles.js +15 -11
  40. package/dist/esm/ui/icons/SortingIconWrapper.js +15 -12
  41. package/dist/types/types/index.d.ts +2 -0
  42. package/dist/types/ui/ContentComponent.d.ts +2 -1
  43. package/dist/types/ui/hooks/useInternalTablePluginStateSelector.d.ts +1 -1
  44. package/dist/types-ts4.5/types/index.d.ts +2 -0
  45. package/dist/types-ts4.5/ui/ContentComponent.d.ts +2 -1
  46. package/dist/types-ts4.5/ui/hooks/useInternalTablePluginStateSelector.d.ts +1 -1
  47. package/package.json +4 -7
  48. package/src/nodeviews/TableComponentWithSharedState.tsx +97 -125
  49. package/src/nodeviews/TableContainer.tsx +59 -67
  50. package/src/nodeviews/TableResizer.tsx +21 -17
  51. package/src/pm-plugins/main.ts +5 -13
  52. package/src/tablePlugin.tsx +30 -13
  53. package/src/types/index.ts +2 -0
  54. package/src/ui/ContentComponent.tsx +59 -65
  55. package/src/ui/DragHandle/index.tsx +24 -24
  56. package/src/ui/TableFloatingColumnControls/ColumnControls/index.tsx +20 -13
  57. package/src/ui/TableFloatingControls/CornerControls/DragCornerControls.tsx +20 -12
  58. package/src/ui/TableFloatingControls/FloatingControlsWithSelection.tsx +20 -13
  59. package/src/ui/TableFloatingControls/RowControls/DragControls.tsx +20 -13
  60. package/src/ui/global-styles.tsx +20 -13
  61. package/src/ui/icons/SortingIconWrapper.tsx +20 -14
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
- import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
2
+ import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
3
3
  import { ErrorBoundary } from '@atlaskit/editor-common/error-boundary';
4
+ import { getDomRefFromSelection } from '@atlaskit/editor-common/get-dom-ref-from-selection';
5
+ import { ResizerBreakoutModeLabel } from '@atlaskit/editor-common/resizer';
4
6
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
5
7
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
8
  import FloatingContextualButton from './FloatingContextualButton';
@@ -13,9 +15,10 @@ import FloatingInsertButton from './FloatingInsertButton';
13
15
  import { FloatingToolbarLabel } from './FloatingToolbarLabel/FloatingToolbarLabel';
14
16
  import { GlobalStylesWrapper } from './global-styles';
15
17
  import { useInternalTablePluginStateSelector } from './hooks/useInternalTablePluginStateSelector';
18
+ import { SizeSelector } from './SizeSelector';
16
19
  import { FullWidthDisplay } from './TableFullWidthLabel';
17
20
  var ContentComponentInternal = function ContentComponentInternal(_ref) {
18
- var _api$analytics, _api$accessibilityUti;
21
+ var _api$analytics, _api$accessibilityUti, _api$analytics2;
19
22
  var api = _ref.api,
20
23
  editorView = _ref.editorView,
21
24
  dispatchAnalyticsEvent = _ref.dispatchAnalyticsEvent,
@@ -23,75 +26,36 @@ var ContentComponentInternal = function ContentComponentInternal(_ref) {
23
26
  popupsMountPoint = _ref.popupsMountPoint,
24
27
  popupsBoundariesElement = _ref.popupsBoundariesElement,
25
28
  popupsScrollableElement = _ref.popupsScrollableElement,
29
+ isTableSelectorEnabled = _ref.isTableSelectorEnabled,
26
30
  defaultGetEditorContainerWidth = _ref.defaultGetEditorContainerWidth,
27
31
  defaultGetEditorFeatureFlags = _ref.defaultGetEditorFeatureFlags;
28
32
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
29
33
  var ariaNotifyPlugin = api === null || api === void 0 || (_api$accessibilityUti = api.accessibilityUtils) === null || _api$accessibilityUti === void 0 ? void 0 : _api$accessibilityUti.actions.ariaNotify;
30
- var resizingTableLocalId = useInternalTablePluginStateSelector(api, 'resizingTableLocalId', {
31
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
32
- });
33
- var resizingTableRef = useInternalTablePluginStateSelector(api, 'resizingTableRef', {
34
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
35
- });
36
- var isTableResizing = useInternalTablePluginStateSelector(api, 'isTableResizing', {
37
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
38
- });
39
- var isResizing = useInternalTablePluginStateSelector(api, 'isResizing', {
40
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
41
- });
42
- var widthToWidest = useInternalTablePluginStateSelector(api, 'widthToWidest', {
43
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
44
- });
45
- var tableNode = useInternalTablePluginStateSelector(api, 'tableNode', {
46
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
47
- });
48
- var targetCellPosition = useInternalTablePluginStateSelector(api, 'targetCellPosition', {
49
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
50
- });
51
- var isContextualMenuOpen = useInternalTablePluginStateSelector(api, 'isContextualMenuOpen', {
52
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
53
- });
54
- var tableRef = useInternalTablePluginStateSelector(api, 'tableRef', {
55
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
56
- });
57
- var pluginConfig = useInternalTablePluginStateSelector(api, 'pluginConfig', {
58
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
59
- });
60
- var insertColumnButtonIndex = useInternalTablePluginStateSelector(api, 'insertColumnButtonIndex', {
61
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
62
- });
63
- var insertRowButtonIndex = useInternalTablePluginStateSelector(api, 'insertRowButtonIndex', {
64
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
65
- });
66
- var isHeaderColumnEnabled = useInternalTablePluginStateSelector(api, 'isHeaderColumnEnabled', {
67
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
68
- });
69
- var isHeaderRowEnabled = useInternalTablePluginStateSelector(api, 'isHeaderRowEnabled', {
70
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
71
- });
72
- var isDragAndDropEnabled = useInternalTablePluginStateSelector(api, 'isDragAndDropEnabled', {
73
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
74
- });
75
- var tableWrapperTarget = useInternalTablePluginStateSelector(api, 'tableWrapperTarget', {
76
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
77
- });
78
- var isCellMenuOpenByKeyboard = useInternalTablePluginStateSelector(api, 'isCellMenuOpenByKeyboard', {
79
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
80
- });
34
+ var resizingTableLocalId = useInternalTablePluginStateSelector(api, 'resizingTableLocalId');
35
+ var resizingTableRef = useInternalTablePluginStateSelector(api, 'resizingTableRef');
36
+ var isTableResizing = useInternalTablePluginStateSelector(api, 'isTableResizing');
37
+ var isResizing = useInternalTablePluginStateSelector(api, 'isResizing');
38
+ var widthToWidest = useInternalTablePluginStateSelector(api, 'widthToWidest');
39
+ var tableNode = useInternalTablePluginStateSelector(api, 'tableNode');
40
+ var targetCellPosition = useInternalTablePluginStateSelector(api, 'targetCellPosition');
41
+ var isContextualMenuOpen = useInternalTablePluginStateSelector(api, 'isContextualMenuOpen');
42
+ var tableRef = useInternalTablePluginStateSelector(api, 'tableRef');
43
+ var pluginConfig = useInternalTablePluginStateSelector(api, 'pluginConfig');
44
+ var insertColumnButtonIndex = useInternalTablePluginStateSelector(api, 'insertColumnButtonIndex');
45
+ var insertRowButtonIndex = useInternalTablePluginStateSelector(api, 'insertRowButtonIndex');
46
+ var isHeaderColumnEnabled = useInternalTablePluginStateSelector(api, 'isHeaderColumnEnabled');
47
+ var isHeaderRowEnabled = useInternalTablePluginStateSelector(api, 'isHeaderRowEnabled');
48
+ var isDragAndDropEnabled = useInternalTablePluginStateSelector(api, 'isDragAndDropEnabled');
49
+ var tableWrapperTarget = useInternalTablePluginStateSelector(api, 'tableWrapperTarget');
50
+ var isCellMenuOpenByKeyboard = useInternalTablePluginStateSelector(api, 'isCellMenuOpenByKeyboard');
81
51
  var _ref2 = pluginConfig !== null && pluginConfig !== void 0 ? pluginConfig : {},
82
52
  allowControls = _ref2.allowControls;
83
- var stickyHeader = useInternalTablePluginStateSelector(api, 'stickyHeader', {
84
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
85
- });
86
- var dragMenuDirection = useInternalTablePluginStateSelector(api, 'dragMenuDirection', {
87
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
88
- });
89
- var dragMenuIndex = useInternalTablePluginStateSelector(api, 'dragMenuIndex', {
90
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
91
- });
92
- var isDragMenuOpen = useInternalTablePluginStateSelector(api, 'isDragMenuOpen', {
93
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
94
- });
53
+ var stickyHeader = useInternalTablePluginStateSelector(api, 'stickyHeader');
54
+ var dragMenuDirection = useInternalTablePluginStateSelector(api, 'dragMenuDirection');
55
+ var dragMenuIndex = useInternalTablePluginStateSelector(api, 'dragMenuIndex');
56
+ var isDragMenuOpen = useInternalTablePluginStateSelector(api, 'isDragMenuOpen');
57
+ var isSizeSelectorOpen = useInternalTablePluginStateSelector(api, 'isSizeSelectorOpen');
58
+ var sizeSelectorTargetRef = useInternalTablePluginStateSelector(api, 'sizeSelectorTargetRef');
95
59
  return /*#__PURE__*/React.createElement(React.Fragment, null, targetCellPosition && (tableRef || isCellMenuOpenByKeyboard) && !isResizing && options && options.allowContextualMenu && /*#__PURE__*/React.createElement(FloatingContextualButton, {
96
60
  isNumberColumnEnabled: tableNode && tableNode.attrs.isNumberColumnEnabled,
97
61
  editorView: editorView,
@@ -170,13 +134,22 @@ var ContentComponentInternal = function ContentComponentInternal(_ref) {
170
134
  api: api
171
135
  }), ((options === null || options === void 0 ? void 0 : options.isTableScalingEnabled) || (options === null || options === void 0 ? void 0 : options.tableOptions.allowTableResizing) && options.isCommentEditor) && isTableResizing && widthToWidest && resizingTableLocalId && resizingTableRef && widthToWidest[resizingTableLocalId] && /*#__PURE__*/React.createElement(FloatingToolbarLabel, {
172
136
  target: resizingTableRef,
173
- content: /*#__PURE__*/React.createElement(FullWidthDisplay, null),
137
+ content: editorExperiment('single_column_layouts', true) ? /*#__PURE__*/React.createElement(ResizerBreakoutModeLabel, {
138
+ layout: "full-width"
139
+ }) : /*#__PURE__*/React.createElement(FullWidthDisplay, null),
174
140
  alignX: 'center',
175
141
  alignY: 'bottom',
176
142
  stick: true,
177
143
  forcePlacement: true,
178
144
  zIndex: akEditorFloatingPanelZIndex,
179
145
  offset: [0, 10]
146
+ }), isTableSelectorEnabled && isSizeSelectorOpen && /*#__PURE__*/React.createElement(SizeSelector, {
147
+ api: api,
148
+ isOpenedByKeyboard: false,
149
+ popupsMountPoint: popupsMountPoint,
150
+ target: sizeSelectorTargetRef !== null && sizeSelectorTargetRef !== void 0 ? sizeSelectorTargetRef : getDomRefFromSelection(editorView, ACTION_SUBJECT_ID.PICKER_TABLE_SIZE, api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions),
151
+ popupsBoundariesElement: popupsBoundariesElement,
152
+ popupsScrollableElement: popupsScrollableElement
180
153
  }));
181
154
  };
182
155
  export var ContentComponent = function ContentComponent(_ref3) {
@@ -188,6 +161,7 @@ export var ContentComponent = function ContentComponent(_ref3) {
188
161
  popupsMountPoint = _ref3.popupsMountPoint,
189
162
  popupsBoundariesElement = _ref3.popupsBoundariesElement,
190
163
  popupsScrollableElement = _ref3.popupsScrollableElement,
164
+ isTableSelectorEnabled = _ref3.isTableSelectorEnabled,
191
165
  defaultGetEditorContainerWidth = _ref3.defaultGetEditorContainerWidth,
192
166
  defaultGetEditorFeatureFlags = _ref3.defaultGetEditorFeatureFlags;
193
167
  return /*#__PURE__*/React.createElement(ErrorBoundary, {
@@ -206,6 +180,7 @@ export var ContentComponent = function ContentComponent(_ref3) {
206
180
  popupsMountPoint: popupsMountPoint,
207
181
  popupsBoundariesElement: popupsBoundariesElement,
208
182
  popupsScrollableElement: popupsScrollableElement,
183
+ isTableSelectorEnabled: isTableSelectorEnabled,
209
184
  defaultGetEditorContainerWidth: defaultGetEditorContainerWidth,
210
185
  defaultGetEditorFeatureFlags: defaultGetEditorFeatureFlags
211
186
  }));
@@ -7,13 +7,12 @@ import classnames from 'classnames';
7
7
  import ReactDOM from 'react-dom';
8
8
  import { injectIntl } from 'react-intl-next';
9
9
  import { browser } from '@atlaskit/editor-common/browser';
10
- import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
10
+ import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
11
11
  import { tableMessages as messages } from '@atlaskit/editor-common/messages';
12
12
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
13
13
  import { findTable, TableMap } from '@atlaskit/editor-tables';
14
14
  import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
15
15
  import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
16
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
17
16
  import { getPluginState as getDnDPluginState } from '../../pm-plugins/drag-and-drop/plugin-factory';
18
17
  import { getPluginState } from '../../pm-plugins/plugin-factory';
19
18
  import { findDuplicatePosition, hasMergedCellsInSelection } from '../../pm-plugins/utils/merged-cells';
@@ -245,6 +244,22 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
245
244
  height: previewHeight
246
245
  }), previewContainer));
247
246
  };
247
+ var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
248
+ var hoveredColumns = useInternalTablePluginStateSelector(api, 'hoveredColumns');
249
+ var hoveredRows = useInternalTablePluginStateSelector(api, 'hoveredRows');
250
+ return {
251
+ hoveredColumns: hoveredColumns,
252
+ hoveredRows: hoveredRows
253
+ };
254
+ }, function (api) {
255
+ var _useSharedPluginState = useSharedPluginState(api, ['table']),
256
+ tableState = _useSharedPluginState.tableState;
257
+ var tableStateInternal = tableState;
258
+ return {
259
+ hoveredColumns: tableStateInternal === null || tableStateInternal === void 0 ? void 0 : tableStateInternal.hoveredColumns,
260
+ hoveredRows: tableStateInternal === null || tableStateInternal === void 0 ? void 0 : tableStateInternal.hoveredRows
261
+ };
262
+ });
248
263
  var DragHandleComponentWithSharedState = function DragHandleComponentWithSharedState(_ref5) {
249
264
  var isDragMenuTarget = _ref5.isDragMenuTarget,
250
265
  tableLocalId = _ref5.tableLocalId,
@@ -262,22 +277,9 @@ var DragHandleComponentWithSharedState = function DragHandleComponentWithSharedS
262
277
  editorView = _ref5.editorView,
263
278
  intl = _ref5.intl,
264
279
  api = _ref5.api;
265
- var _ref6 = useSharedPluginState(api, ['table'], {
266
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', true)
267
- }),
268
- tableState = _ref6.tableState;
269
-
270
- // hoveredColumns
271
- var hoveredColumnsSelector = useInternalTablePluginStateSelector(api, 'hoveredColumns', {
272
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
273
- });
274
- var hoveredColumns = editorExperiment('platform_editor_usesharedpluginstateselector', true) ? hoveredColumnsSelector : tableState === null || tableState === void 0 ? void 0 : tableState.hoveredColumns;
275
-
276
- // hoveredRows
277
- var hoveredRowsSelector = useInternalTablePluginStateSelector(api, 'hoveredRows', {
278
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
279
- });
280
- var hoveredRows = editorExperiment('platform_editor_usesharedpluginstateselector', true) ? hoveredRowsSelector : tableState === null || tableState === void 0 ? void 0 : tableState.hoveredRows;
280
+ var _useSharedState = useSharedState(api),
281
+ hoveredColumns = _useSharedState.hoveredColumns,
282
+ hoveredRows = _useSharedState.hoveredRows;
281
283
  return /*#__PURE__*/React.createElement(DragHandleComponent, {
282
284
  isDragMenuTarget: isDragMenuTarget,
283
285
  tableLocalId: tableLocalId,
@@ -1,14 +1,13 @@
1
1
  /* eslint-disable @atlaskit/design-system/prefer-primitives */
2
2
 
3
3
  import React, { useCallback, useMemo, useRef } from 'react';
4
- import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
4
+ import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
5
5
  import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
6
6
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
7
7
  import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
8
8
  import { CellSelection } from '@atlaskit/editor-tables';
9
9
  import { getSelectionRect } from '@atlaskit/editor-tables/utils';
10
10
  import { fg } from '@atlaskit/platform-feature-flags';
11
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
12
11
  import { clearHoverSelection, hoverCell, hoverColumns, selectColumn, selectColumns } from '../../../pm-plugins/commands';
13
12
  import { toggleDragMenu } from '../../../pm-plugins/drag-and-drop/commands';
14
13
  import { getRowsParams } from '../../../pm-plugins/utils/row-controls';
@@ -25,6 +24,18 @@ var getSelectedColumns = function getSelectedColumns(selection) {
25
24
  }
26
25
  return [];
27
26
  };
27
+ var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
28
+ var selection = useSharedPluginStateSelector(api, 'selection.selection');
29
+ return {
30
+ selection: selection
31
+ };
32
+ }, function (api) {
33
+ var _useSharedPluginState = useSharedPluginState(api, ['selection']),
34
+ selectionState = _useSharedPluginState.selectionState;
35
+ return {
36
+ selection: selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection
37
+ };
38
+ });
28
39
  export var ColumnControls = function ColumnControls(_ref) {
29
40
  var _colWidths$map$join;
30
41
  var editorView = _ref.editorView,
@@ -43,16 +54,8 @@ export var ColumnControls = function ColumnControls(_ref) {
43
54
  getScrollOffset = _ref.getScrollOffset,
44
55
  api = _ref.api;
45
56
  var columnControlsRef = useRef(null);
46
-
47
- // selection
48
- var _useSharedPluginState = useSharedPluginState(api, ['selection'], {
49
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', true)
50
- }),
51
- selectionState = _useSharedPluginState.selectionState;
52
- var selectionsSelector = useSharedPluginStateSelector(api, 'selection.selection', {
53
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
54
- });
55
- var selection = editorExperiment('platform_editor_usesharedpluginstateselector', true) ? selectionsSelector : selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection;
57
+ var _useSharedState = useSharedState(api),
58
+ selection = _useSharedState.selection;
56
59
  var widths = (_colWidths$map$join = colWidths === null || colWidths === void 0 ? void 0 : colWidths.map(function (width) {
57
60
  return (
58
61
  // when there is sticky header, a `margin-right: -1px` applied to `tr.sticky th` so it causes colWidths to be 1px wider
@@ -1,11 +1,10 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import classnames from 'classnames';
3
3
  import { injectIntl } from 'react-intl-next';
4
- import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
4
+ import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
5
5
  import { tableMessages as messages } from '@atlaskit/editor-common/messages';
6
6
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
7
7
  import { findTable, isTableSelected, selectTable } from '@atlaskit/editor-tables/utils';
8
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
9
8
  import { clearHoverSelection } from '../../../pm-plugins/commands';
10
9
  import { TableCssClassName as ClassName } from '../../../types';
11
10
  var DragCornerControlsComponent = function DragCornerControlsComponent(_ref) {
@@ -51,21 +50,26 @@ var DragCornerControlsComponent = function DragCornerControlsComponent(_ref) {
51
50
  className: ClassName.DRAG_CORNER_BUTTON_INNER
52
51
  }));
53
52
  };
53
+ var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
54
+ var selectionsSelector = useSharedPluginStateSelector(api, 'selection.selection');
55
+ return {
56
+ selection: selectionsSelector
57
+ };
58
+ }, function (api) {
59
+ var _useSharedPluginState = useSharedPluginState(api, ['selection']),
60
+ selectionState = _useSharedPluginState.selectionState;
61
+ return {
62
+ selection: selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection
63
+ };
64
+ });
54
65
  var DragCornerControlsComponentWithSelection = function DragCornerControlsComponentWithSelection(_ref2) {
55
66
  var editorView = _ref2.editorView,
56
67
  isInDanger = _ref2.isInDanger,
57
68
  isResizing = _ref2.isResizing,
58
69
  formatMessage = _ref2.intl.formatMessage,
59
70
  api = _ref2.api;
60
- // selection
61
- var _useSharedPluginState = useSharedPluginState(api, ['selection'], {
62
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', true)
63
- }),
64
- selectionState = _useSharedPluginState.selectionState;
65
- var selectionsSelector = useSharedPluginStateSelector(api, 'selection.selection', {
66
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
67
- });
68
- var selection = editorExperiment('platform_editor_usesharedpluginstateselector', true) ? selectionsSelector : selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection;
71
+ var _useSharedState = useSharedState(api),
72
+ selection = _useSharedState.selection;
69
73
  var handleOnClick = function handleOnClick() {
70
74
  var state = editorView.state,
71
75
  dispatch = editorView.dispatch;
@@ -1,9 +1,20 @@
1
1
  import React from 'react';
2
- import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
2
+ import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
3
3
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
4
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
5
4
  import { CornerControls } from './CornerControls/ClassicCornerControls';
6
5
  import { RowControls } from './RowControls/ClassicControls';
6
+ var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
7
+ var selectionsSelector = useSharedPluginStateSelector(api, 'selection.selection');
8
+ return {
9
+ selection: selectionsSelector
10
+ };
11
+ }, function (api) {
12
+ var _useSharedPluginState = useSharedPluginState(api, ['selection']),
13
+ selectionState = _useSharedPluginState.selectionState;
14
+ return {
15
+ selection: selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection
16
+ };
17
+ });
7
18
  export var FloatingControlsWithSelection = function FloatingControlsWithSelection(_ref) {
8
19
  var editorView = _ref.editorView,
9
20
  tableRef = _ref.tableRef,
@@ -17,15 +28,8 @@ export var FloatingControlsWithSelection = function FloatingControlsWithSelectio
17
28
  selectRow = _ref.selectRow,
18
29
  tableActive = _ref.tableActive,
19
30
  api = _ref.api;
20
- // selection
21
- var _useSharedPluginState = useSharedPluginState(api, ['selection'], {
22
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', true)
23
- }),
24
- selectionState = _useSharedPluginState.selectionState;
25
- var selectionsSelector = useSharedPluginStateSelector(api, 'selection.selection', {
26
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
27
- });
28
- var selection = editorExperiment('platform_editor_usesharedpluginstateselector', true) ? selectionsSelector : selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection;
31
+ var _useSharedState = useSharedState(api),
32
+ selection = _useSharedState.selection;
29
33
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CornerControls, {
30
34
  editorView: editorView,
31
35
  tableRef: tableRef,
@@ -2,13 +2,12 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  /* eslint-disable @atlaskit/design-system/prefer-primitives */
3
3
 
4
4
  import React, { Fragment, useCallback, useEffect, useMemo, useState } from 'react';
5
- import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
5
+ import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
6
6
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
7
7
  import { CellSelection } from '@atlaskit/editor-tables';
8
8
  import { getSelectionRect } from '@atlaskit/editor-tables/utils';
9
9
  import { fg } from '@atlaskit/platform-feature-flags';
10
10
  import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
11
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
12
11
  import { clearHoverSelection } from '../../../pm-plugins/commands';
13
12
  import { toggleDragMenu } from '../../../pm-plugins/drag-and-drop/commands';
14
13
  import { getPluginState as getTablePluginState } from '../../../pm-plugins/plugin-factory';
@@ -279,6 +278,18 @@ export var DragControls = function DragControls(_ref) {
279
278
  }), rowHandles())
280
279
  );
281
280
  };
281
+ var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
282
+ var selectionsSelector = useSharedPluginStateSelector(api, 'selection.selection');
283
+ return {
284
+ selection: selectionsSelector
285
+ };
286
+ }, function (api) {
287
+ var _useSharedPluginState = useSharedPluginState(api, ['selection']),
288
+ selectionState = _useSharedPluginState.selectionState;
289
+ return {
290
+ selection: selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection
291
+ };
292
+ });
282
293
  export var DragControlsWithSelection = function DragControlsWithSelection(_ref5) {
283
294
  var editorView = _ref5.editorView,
284
295
  tableRef = _ref5.tableRef,
@@ -294,15 +305,8 @@ export var DragControlsWithSelection = function DragControlsWithSelection(_ref5)
294
305
  selectRows = _ref5.selectRows,
295
306
  updateCellHoverLocation = _ref5.updateCellHoverLocation,
296
307
  api = _ref5.api;
297
- // selection
298
- var _useSharedPluginState = useSharedPluginState(api, ['selection'], {
299
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', true)
300
- }),
301
- selectionState = _useSharedPluginState.selectionState;
302
- var selectionsSelector = useSharedPluginStateSelector(api, 'selection.selection', {
303
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
304
- });
305
- var selection = editorExperiment('platform_editor_usesharedpluginstateselector', true) ? selectionsSelector : selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection;
308
+ var _useSharedState = useSharedState(api),
309
+ selection = _useSharedState.selection;
306
310
  return /*#__PURE__*/React.createElement(DragControls, {
307
311
  editorView: editorView,
308
312
  tableRef: tableRef,
@@ -4,23 +4,27 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { Global, jsx } from '@emotion/react';
7
- import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
7
+ import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
8
8
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
9
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
9
  import { tableStyles } from './common-styles';
10
+ var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
11
+ var mode = useSharedPluginStateSelector(api, 'editorViewMode.mode');
12
+ return {
13
+ mode: mode
14
+ };
15
+ }, function (api) {
16
+ var _useSharedPluginState = useSharedPluginState(api, ['editorViewMode']),
17
+ editorViewModeState = _useSharedPluginState.editorViewModeState;
18
+ return {
19
+ mode: editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode
20
+ };
21
+ });
11
22
  export var GlobalStylesWrapper = function GlobalStylesWrapper(_ref) {
12
23
  var featureFlags = _ref.featureFlags,
13
24
  isDragAndDropEnabledOption = _ref.isDragAndDropEnabledOption,
14
25
  api = _ref.api;
15
- // mode
16
- var _useSharedPluginState = useSharedPluginState(api, ['editorViewMode'], {
17
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', true)
18
- }),
19
- editorViewModeState = _useSharedPluginState.editorViewModeState;
20
- var modeSelector = useSharedPluginStateSelector(api, 'editorViewMode.mode', {
21
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
22
- });
23
- var mode = editorExperiment('platform_editor_usesharedpluginstateselector', true) ? modeSelector : editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode;
26
+ var _useSharedState = useSharedState(api),
27
+ mode = _useSharedState.mode;
24
28
  var isLivePageViewMode = mode === 'view';
25
29
  return jsx(Global, {
26
30
  styles: tableStyles({
@@ -1,19 +1,22 @@
1
1
  import React from 'react';
2
- import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
2
+ import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
3
3
  import { SortingIcon } from '@atlaskit/editor-common/table';
4
4
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
5
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
- export var SortingIconWrapper = function SortingIconWrapper(props) {
7
- var _useSharedPluginState = useSharedPluginState(props.api, ['editorViewMode'], {
8
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', true)
9
- }),
5
+ var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
6
+ var mode = useSharedPluginStateSelector(api, 'editorViewMode.mode');
7
+ return {
8
+ mode: mode
9
+ };
10
+ }, function (api) {
11
+ var _useSharedPluginState = useSharedPluginState(api, ['editorViewMode']),
10
12
  editorViewModeState = _useSharedPluginState.editorViewModeState;
11
-
12
- // mode
13
- var modeSelector = useSharedPluginStateSelector(props.api, 'editorViewMode.mode', {
14
- disabled: editorExperiment('platform_editor_usesharedpluginstateselector', false)
15
- });
16
- var mode = editorExperiment('platform_editor_usesharedpluginstateselector', true) ? modeSelector : editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode;
13
+ return {
14
+ mode: editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode
15
+ };
16
+ });
17
+ export var SortingIconWrapper = function SortingIconWrapper(props) {
18
+ var _useSharedState = useSharedState(props.api),
19
+ mode = _useSharedState.mode;
17
20
  if (mode === 'edit') {
18
21
  return null;
19
22
  }
@@ -44,6 +44,8 @@ export type TableSharedStateInternal = Pick<TablePluginState, 'isFullWidthModeEn
44
44
  dragMenuDirection?: TableDirection;
45
45
  dragMenuIndex?: number;
46
46
  isDragMenuOpen?: boolean;
47
+ isSizeSelectorOpen?: boolean;
48
+ sizeSelectorTargetRef?: HTMLElement;
47
49
  };
48
50
  export type TableSharedState = Pick<TablePluginState, 'isFullWidthModeEnabled' | 'wasFullWidthModeEnabled'>;
49
51
  export type AlignmentOptions = 'center' | 'align-start';
@@ -11,7 +11,8 @@ export type ContentComponentProps = {
11
11
  popupsMountPoint?: HTMLElement;
12
12
  popupsBoundariesElement?: HTMLElement;
13
13
  popupsScrollableElement?: HTMLElement;
14
+ isTableSelectorEnabled: boolean | undefined;
14
15
  defaultGetEditorContainerWidth: GetEditorContainerWidth;
15
16
  defaultGetEditorFeatureFlags: GetEditorFeatureFlags;
16
17
  };
17
- export declare const ContentComponent: ({ api, editorView, dispatchAnalyticsEvent, options, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, defaultGetEditorContainerWidth, defaultGetEditorFeatureFlags, }: ContentComponentProps) => React.JSX.Element;
18
+ export declare const ContentComponent: ({ api, editorView, dispatchAnalyticsEvent, options, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, isTableSelectorEnabled, defaultGetEditorContainerWidth, defaultGetEditorFeatureFlags, }: ContentComponentProps) => React.JSX.Element;
@@ -16,5 +16,5 @@ type Options = {
16
16
  * @param key Key of TableSharedStateInternal to select
17
17
  * @returns
18
18
  */
19
- export declare const useInternalTablePluginStateSelector: <K extends "isFullWidthModeEnabled" | "wasFullWidthModeEnabled" | "isHeaderRowEnabled" | "isHeaderColumnEnabled" | "ordering" | "isInDanger" | "hoveredRows" | "hoveredColumns" | "hoveredCell" | "isTableHovered" | "tableNode" | "widthToWidest" | "tableRef" | "tablePos" | "targetCellPosition" | "isContextualMenuOpen" | "pluginConfig" | "insertColumnButtonIndex" | "insertRowButtonIndex" | "isDragAndDropEnabled" | "tableWrapperTarget" | "isCellMenuOpenByKeyboard" | "isWholeTableInDanger" | "isDragMenuOpen" | "dragMenuDirection" | "dragMenuIndex" | "isResizing" | "isTableResizing" | "resizingTableRef" | "resizingTableLocalId" | "stickyHeader">(api: ExtractInjectionAPI<TablePlugin> | undefined, key: K, options?: Options) => TableSharedStateInternal[K] | undefined;
19
+ export declare const useInternalTablePluginStateSelector: <K extends "isFullWidthModeEnabled" | "wasFullWidthModeEnabled" | "isHeaderRowEnabled" | "isHeaderColumnEnabled" | "ordering" | "isInDanger" | "hoveredRows" | "hoveredColumns" | "hoveredCell" | "isTableHovered" | "tableNode" | "widthToWidest" | "tableRef" | "tablePos" | "targetCellPosition" | "isContextualMenuOpen" | "pluginConfig" | "insertColumnButtonIndex" | "insertRowButtonIndex" | "isDragAndDropEnabled" | "tableWrapperTarget" | "isCellMenuOpenByKeyboard" | "isWholeTableInDanger" | "isDragMenuOpen" | "dragMenuDirection" | "dragMenuIndex" | "isResizing" | "isTableResizing" | "resizingTableRef" | "resizingTableLocalId" | "stickyHeader" | "isSizeSelectorOpen" | "sizeSelectorTargetRef">(api: ExtractInjectionAPI<TablePlugin> | undefined, key: K, options?: Options) => TableSharedStateInternal[K] | undefined;
20
20
  export {};
@@ -44,6 +44,8 @@ export type TableSharedStateInternal = Pick<TablePluginState, 'isFullWidthModeEn
44
44
  dragMenuDirection?: TableDirection;
45
45
  dragMenuIndex?: number;
46
46
  isDragMenuOpen?: boolean;
47
+ isSizeSelectorOpen?: boolean;
48
+ sizeSelectorTargetRef?: HTMLElement;
47
49
  };
48
50
  export type TableSharedState = Pick<TablePluginState, 'isFullWidthModeEnabled' | 'wasFullWidthModeEnabled'>;
49
51
  export type AlignmentOptions = 'center' | 'align-start';
@@ -11,7 +11,8 @@ export type ContentComponentProps = {
11
11
  popupsMountPoint?: HTMLElement;
12
12
  popupsBoundariesElement?: HTMLElement;
13
13
  popupsScrollableElement?: HTMLElement;
14
+ isTableSelectorEnabled: boolean | undefined;
14
15
  defaultGetEditorContainerWidth: GetEditorContainerWidth;
15
16
  defaultGetEditorFeatureFlags: GetEditorFeatureFlags;
16
17
  };
17
- export declare const ContentComponent: ({ api, editorView, dispatchAnalyticsEvent, options, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, defaultGetEditorContainerWidth, defaultGetEditorFeatureFlags, }: ContentComponentProps) => React.JSX.Element;
18
+ export declare const ContentComponent: ({ api, editorView, dispatchAnalyticsEvent, options, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, isTableSelectorEnabled, defaultGetEditorContainerWidth, defaultGetEditorFeatureFlags, }: ContentComponentProps) => React.JSX.Element;
@@ -16,5 +16,5 @@ type Options = {
16
16
  * @param key Key of TableSharedStateInternal to select
17
17
  * @returns
18
18
  */
19
- export declare const useInternalTablePluginStateSelector: <K extends "isFullWidthModeEnabled" | "wasFullWidthModeEnabled" | "isHeaderRowEnabled" | "isHeaderColumnEnabled" | "ordering" | "isInDanger" | "hoveredRows" | "hoveredColumns" | "hoveredCell" | "isTableHovered" | "tableNode" | "widthToWidest" | "tableRef" | "tablePos" | "targetCellPosition" | "isContextualMenuOpen" | "pluginConfig" | "insertColumnButtonIndex" | "insertRowButtonIndex" | "isDragAndDropEnabled" | "tableWrapperTarget" | "isCellMenuOpenByKeyboard" | "isWholeTableInDanger" | "isDragMenuOpen" | "dragMenuDirection" | "dragMenuIndex" | "isResizing" | "isTableResizing" | "resizingTableRef" | "resizingTableLocalId" | "stickyHeader">(api: ExtractInjectionAPI<TablePlugin> | undefined, key: K, options?: Options) => TableSharedStateInternal[K] | undefined;
19
+ export declare const useInternalTablePluginStateSelector: <K extends "isFullWidthModeEnabled" | "wasFullWidthModeEnabled" | "isHeaderRowEnabled" | "isHeaderColumnEnabled" | "ordering" | "isInDanger" | "hoveredRows" | "hoveredColumns" | "hoveredCell" | "isTableHovered" | "tableNode" | "widthToWidest" | "tableRef" | "tablePos" | "targetCellPosition" | "isContextualMenuOpen" | "pluginConfig" | "insertColumnButtonIndex" | "insertRowButtonIndex" | "isDragAndDropEnabled" | "tableWrapperTarget" | "isCellMenuOpenByKeyboard" | "isWholeTableInDanger" | "isDragMenuOpen" | "dragMenuDirection" | "dragMenuIndex" | "isResizing" | "isTableResizing" | "resizingTableRef" | "resizingTableLocalId" | "stickyHeader" | "isSizeSelectorOpen" | "sizeSelectorTargetRef">(api: ExtractInjectionAPI<TablePlugin> | undefined, key: K, options?: Options) => TableSharedStateInternal[K] | undefined;
20
20
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "10.9.20",
3
+ "version": "10.9.22",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,10 +32,10 @@
32
32
  "@atlaskit/adf-schema": "^47.6.0",
33
33
  "@atlaskit/button": "^23.0.0",
34
34
  "@atlaskit/custom-steps": "^0.11.0",
35
- "@atlaskit/editor-common": "^105.0.0",
35
+ "@atlaskit/editor-common": "^105.2.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
37
37
  "@atlaskit/editor-plugin-accessibility-utils": "^2.0.0",
38
- "@atlaskit/editor-plugin-analytics": "^2.2.0",
38
+ "@atlaskit/editor-plugin-analytics": "^2.3.0",
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",
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
55
55
  "@atlaskit/primitives": "^14.7.0",
56
56
  "@atlaskit/theme": "^18.0.0",
57
- "@atlaskit/tmp-editor-statsig": "^4.19.0",
57
+ "@atlaskit/tmp-editor-statsig": "^4.21.0",
58
58
  "@atlaskit/toggle": "^15.0.0",
59
59
  "@atlaskit/tokens": "^4.8.0",
60
60
  "@atlaskit/tooltip": "^20.0.0",
@@ -144,9 +144,6 @@
144
144
  "platform_editor_nested_tables_view_mode_sort": {
145
145
  "type": "boolean"
146
146
  },
147
- "platform_editor_nested_tables_bodied_extension_fix": {
148
- "type": "boolean"
149
- },
150
147
  "platform_editor_nested_table_drag_controls": {
151
148
  "type": "boolean"
152
149
  },