@atlaskit/editor-plugin-table 27.1.4 → 27.1.5
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 +10 -0
- package/dist/cjs/nodeviews/ExternalDropTargets.js +2 -2
- package/dist/cjs/nodeviews/TableComponent.js +1 -1
- package/dist/cjs/nodeviews/TableContainer.js +3 -3
- package/dist/cjs/nodeviews/TableRow.js +4 -4
- package/dist/cjs/nodeviews/TableRowNativeStickyWithFallback.js +5 -5
- package/dist/cjs/pm-plugins/commands/insert.js +2 -2
- package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +4 -4
- package/dist/cjs/pm-plugins/drag-and-drop/utils/monitor.js +2 -2
- package/dist/cjs/pm-plugins/utils/paste.js +2 -2
- package/dist/cjs/tablePlugin.js +11 -11
- package/dist/cjs/ui/ColumnResizeWidget/index.js +2 -2
- package/dist/cjs/ui/DragHandle/index.js +3 -3
- package/dist/cjs/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +3 -2
- package/dist/cjs/ui/FloatingContextualButton/styles.js +2 -2
- package/dist/cjs/ui/FloatingDragMenu/DropdownMenu.js +4 -3
- package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +3 -3
- package/dist/cjs/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.js +4 -4
- package/dist/cjs/ui/TableFloatingColumnControls/index.js +2 -2
- package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +2 -2
- package/dist/cjs/ui/TableFloatingControls/RowDropTarget/index.js +4 -4
- package/dist/cjs/ui/TableMenu/cell/getCellMenuComponents.js +2 -2
- package/dist/cjs/ui/TableMenu/column/getColumnMenuComponents.js +2 -2
- package/dist/cjs/ui/TableMenu/column/items/SortDecreasingItem.js +4 -4
- package/dist/cjs/ui/TableMenu/column/items/SortIncreasingItem.js +4 -4
- package/dist/cjs/ui/TableMenu/row/getRowMenuComponents.js +2 -2
- package/dist/cjs/ui/TableMenu/shared/getSharedItems.js +2 -2
- package/dist/cjs/ui/TableMenu/shared/selection.js +2 -2
- package/dist/cjs/ui/common-styles.js +2 -2
- package/dist/cjs/ui/quick-insert/insertTableFromQuickInsert.js +2 -2
- package/dist/es2019/nodeviews/ExternalDropTargets.js +1 -1
- package/dist/es2019/nodeviews/TableComponent.js +1 -1
- package/dist/es2019/nodeviews/TableContainer.js +1 -1
- package/dist/es2019/nodeviews/TableRow.js +1 -1
- package/dist/es2019/nodeviews/TableRowNativeStickyWithFallback.js +1 -1
- package/dist/es2019/pm-plugins/commands/insert.js +1 -1
- package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +2 -2
- package/dist/es2019/pm-plugins/drag-and-drop/utils/monitor.js +1 -1
- package/dist/es2019/pm-plugins/utils/paste.js +1 -1
- package/dist/es2019/tablePlugin.js +1 -1
- package/dist/es2019/ui/ColumnResizeWidget/index.js +1 -1
- package/dist/es2019/ui/DragHandle/index.js +2 -2
- package/dist/es2019/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
- package/dist/es2019/ui/FloatingContextualButton/styles.js +1 -1
- package/dist/es2019/ui/FloatingDragMenu/DropdownMenu.js +2 -1
- package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +1 -1
- package/dist/es2019/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.js +2 -2
- package/dist/es2019/ui/TableFloatingColumnControls/index.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/RowDropTarget/index.js +2 -2
- package/dist/es2019/ui/TableMenu/cell/getCellMenuComponents.js +1 -1
- package/dist/es2019/ui/TableMenu/column/getColumnMenuComponents.js +1 -1
- package/dist/es2019/ui/TableMenu/column/items/SortDecreasingItem.js +2 -2
- package/dist/es2019/ui/TableMenu/column/items/SortIncreasingItem.js +2 -2
- package/dist/es2019/ui/TableMenu/row/getRowMenuComponents.js +1 -1
- package/dist/es2019/ui/TableMenu/shared/getSharedItems.js +1 -1
- package/dist/es2019/ui/TableMenu/shared/selection.js +1 -1
- package/dist/es2019/ui/common-styles.js +1 -1
- package/dist/es2019/ui/quick-insert/insertTableFromQuickInsert.js +1 -1
- package/dist/esm/nodeviews/ExternalDropTargets.js +1 -1
- package/dist/esm/nodeviews/TableComponent.js +1 -1
- package/dist/esm/nodeviews/TableContainer.js +1 -1
- package/dist/esm/nodeviews/TableRow.js +1 -1
- package/dist/esm/nodeviews/TableRowNativeStickyWithFallback.js +1 -1
- package/dist/esm/pm-plugins/commands/insert.js +1 -1
- package/dist/esm/pm-plugins/drag-and-drop/plugin.js +2 -2
- package/dist/esm/pm-plugins/drag-and-drop/utils/monitor.js +1 -1
- package/dist/esm/pm-plugins/utils/paste.js +1 -1
- package/dist/esm/tablePlugin.js +1 -1
- package/dist/esm/ui/ColumnResizeWidget/index.js +1 -1
- package/dist/esm/ui/DragHandle/index.js +2 -2
- package/dist/esm/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
- package/dist/esm/ui/FloatingContextualButton/styles.js +1 -1
- package/dist/esm/ui/FloatingDragMenu/DropdownMenu.js +2 -1
- package/dist/esm/ui/FloatingInsertButton/InsertButton.js +1 -1
- package/dist/esm/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.js +2 -2
- package/dist/esm/ui/TableFloatingColumnControls/index.js +1 -1
- package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +1 -1
- package/dist/esm/ui/TableFloatingControls/RowDropTarget/index.js +2 -2
- package/dist/esm/ui/TableMenu/cell/getCellMenuComponents.js +1 -1
- package/dist/esm/ui/TableMenu/column/getColumnMenuComponents.js +1 -1
- package/dist/esm/ui/TableMenu/column/items/SortDecreasingItem.js +2 -2
- package/dist/esm/ui/TableMenu/column/items/SortIncreasingItem.js +2 -2
- package/dist/esm/ui/TableMenu/row/getRowMenuComponents.js +1 -1
- package/dist/esm/ui/TableMenu/shared/getSharedItems.js +1 -1
- package/dist/esm/ui/TableMenu/shared/selection.js +1 -1
- package/dist/esm/ui/common-styles.js +1 -1
- package/dist/esm/ui/quick-insert/insertTableFromQuickInsert.js +1 -1
- package/dist/types/pm-plugins/drag-and-drop/utils/monitor.d.ts +1 -1
- package/dist/types/pm-plugins/utils/analytics.d.ts +5 -5
- package/dist/types/pm-plugins/view-mode-sort/utils.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { getParentOfTypeCount, getPositionAfterTopParentNodeOfType } from '@atlaskit/editor-common/nesting';
|
|
3
3
|
import { hasParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
6
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
7
7
|
import { pluginKey as sizeSelectorPluginKey } from '../../pm-plugins/table-size-selector';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useEffect, useState } from 'react';
|
|
3
3
|
import { tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
4
|
-
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element
|
|
4
|
+
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
5
5
|
import { getColumnsWidths } from '../pm-plugins/utils/column-controls';
|
|
6
6
|
import { dropTargetExtendedWidth, dropTargetsZIndex } from '../ui/consts';
|
|
7
7
|
import { ColumnDropTarget } from '../ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget';
|
|
@@ -26,7 +26,7 @@ import { isTableInContentMode } from '@atlaskit/editor-common/table';
|
|
|
26
26
|
import { isValidPosition } from '@atlaskit/editor-common/utils';
|
|
27
27
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
28
28
|
import { isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
29
|
-
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
29
|
+
import { combine } from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
30
30
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
31
31
|
import { autoSizeTable, clearHoverSelection, setTableRef } from '../pm-plugins/commands';
|
|
32
32
|
import { autoScrollerFactory } from '../pm-plugins/drag-and-drop/utils/autoscrollers';
|
|
@@ -6,7 +6,7 @@ import { CHANGE_ALIGNMENT_REASON, INPUT_METHOD } from '@atlaskit/editor-common/a
|
|
|
6
6
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
7
7
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
8
8
|
import { akEditorDefaultLayoutWidth, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout, akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
12
|
import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../pm-plugins/commands/commands-with-analytics';
|
|
@@ -12,7 +12,7 @@ import { getParentOfTypeCount } from '@atlaskit/editor-common/nesting';
|
|
|
12
12
|
import { nodeVisibilityManager } from '@atlaskit/editor-common/node-visibility';
|
|
13
13
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
14
14
|
import { findParentNodeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
17
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
18
18
|
import { pluginKey as tablePluginKey } from '../pm-plugins/plugin-key';
|
|
@@ -14,7 +14,7 @@ import { nodeVisibilityManager } from '@atlaskit/editor-common/node-visibility';
|
|
|
14
14
|
import { tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
15
15
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
16
16
|
import { findParentNodeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
19
|
import { INITIAL_STATIC_VIEWPORT_HEIGHT } from '../pm-plugins/editor-content-area-height';
|
|
20
20
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
@@ -9,7 +9,7 @@ import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
9
9
|
import { hasParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
10
10
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
11
11
|
import { addColumnAt as addColumnAtPMUtils, addRowAt, findTable, selectedRect } from '@atlaskit/editor-tables/utils';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
14
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
15
15
|
import { updateRowOrColumnMovedTransform } from '../analytics/commands';
|
|
@@ -5,8 +5,8 @@ import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
|
5
5
|
import { getCellsInRow, getSelectedCellInfo } from '@atlaskit/editor-tables/utils';
|
|
6
6
|
import { insm } from '@atlaskit/insm';
|
|
7
7
|
import { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
|
8
|
-
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
9
|
-
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element
|
|
8
|
+
import { combine } from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
9
|
+
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { closeActiveTableMenu } from '../commands/active-table-menu';
|
|
12
12
|
import { getPluginState as getTablePluginState } from '../plugin-factory';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
2
|
+
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge/extract-closest-edge';
|
|
3
3
|
import { getDragBehaviour } from './getDragBehaviour';
|
|
4
4
|
export var getDraggableDataFromEvent = function getDraggableDataFromEvent(_ref) {
|
|
5
5
|
var _extractClosestEdge;
|
|
@@ -7,7 +7,7 @@ import { flatmap, mapChildren, mapSlice } from '@atlaskit/editor-common/utils';
|
|
|
7
7
|
import { Slice, Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import { flatten, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
9
9
|
import { CellSelection } from '@atlaskit/editor-tables';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
11
|
import { getPluginState } from '../plugin-factory';
|
|
12
12
|
|
|
13
13
|
// lifts up the content of each cell, returning an array of nodes
|
package/dist/esm/tablePlugin.js
CHANGED
|
@@ -15,7 +15,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
15
15
|
import { hasParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
16
16
|
import { tableEditing } from '@atlaskit/editor-tables/pm-plugins';
|
|
17
17
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
18
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
19
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
20
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
21
21
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -8,7 +8,7 @@ import { jsx } from '@emotion/react';
|
|
|
8
8
|
import { useIntl } from 'react-intl';
|
|
9
9
|
import { startColumnResizing, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
10
10
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
11
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
11
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
12
12
|
import { TableCssClassName } from '../../types';
|
|
13
13
|
export var ColumnResizeWidget = function ColumnResizeWidget(_ref) {
|
|
14
14
|
var startIndex = _ref.startIndex,
|
|
@@ -12,8 +12,8 @@ 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 { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
|
-
import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element
|
|
16
|
-
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/
|
|
15
|
+
import { draggable } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
16
|
+
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/utils/set-custom-native-drag-preview';
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
18
|
import { closeActiveTableMenu } from '../../pm-plugins/commands/active-table-menu';
|
|
19
19
|
import { getPluginState as getDnDPluginState } from '../../pm-plugins/drag-and-drop/plugin-factory';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import
|
|
7
|
+
import ButtonGroup from '@atlaskit/button/button-group';
|
|
8
8
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator } from '@atlaskit/editor-common/ui';
|
|
9
9
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
10
10
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
5
|
import { contextualMenuTriggerSize } from '../consts';
|
|
6
6
|
|
|
@@ -6,7 +6,8 @@ import { DropList, Popup } from '@atlaskit/editor-common/ui';
|
|
|
6
6
|
import { ArrowKeyNavigationProvider, ArrowKeyNavigationType, DropdownMenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
7
7
|
import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
8
8
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
9
|
-
import
|
|
9
|
+
import MenuGroup from '@atlaskit/menu/menu-group';
|
|
10
|
+
import Section from '@atlaskit/menu/section';
|
|
10
11
|
import { dragMenuDropdownWidth } from '../consts';
|
|
11
12
|
var DropListWithOutsideClickTargetRef = function DropListWithOutsideClickTargetRef(props) {
|
|
12
13
|
var setOutsideClickTargetRef = React.useContext(OutsideClickTargetRefContext);
|
|
@@ -9,7 +9,7 @@ import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
|
9
9
|
import { tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { closestElement } from '@atlaskit/editor-common/utils';
|
|
11
11
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
12
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
12
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
13
|
import { TableCssClassName as ClassName } from '../../types';
|
|
14
14
|
import { tableToolbarSize } from '../consts';
|
|
15
15
|
var getInsertLineHeight = function getInsertLineHeight(tableRef, hasStickyHeaders) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
|
-
import { attachClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
3
|
-
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/element
|
|
2
|
+
import { attachClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge/attach-closest-edge';
|
|
3
|
+
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
4
4
|
import { getDragBehaviour } from '../../../pm-plugins/drag-and-drop/utils/getDragBehaviour';
|
|
5
5
|
export var ColumnDropTarget = function ColumnDropTarget(_ref) {
|
|
6
6
|
var index = _ref.index,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
3
|
-
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element
|
|
3
|
+
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
4
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
5
|
import { getColumnsWidths, getColumnsWidthsWithMergedCells } from '../../pm-plugins/utils/column-controls';
|
|
6
6
|
import { containsHeaderColumn } from '../../pm-plugins/utils/nodes';
|
|
@@ -6,7 +6,7 @@ import { ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD, TABLE_ACTION } from '@atlaski
|
|
|
6
6
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
7
7
|
import { CellSelection } from '@atlaskit/editor-tables';
|
|
8
8
|
import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
9
|
-
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element
|
|
9
|
+
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { clearHoverSelection, toggleActiveTableMenu } from '../../../pm-plugins/commands';
|
|
12
12
|
import { toggleDragMenuWithAnalytics } from '../../../pm-plugins/drag-and-drop/commands-with-analytics';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
|
-
import { attachClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
3
|
-
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/element
|
|
2
|
+
import { attachClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge/attach-closest-edge';
|
|
3
|
+
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
4
4
|
import { getDragBehaviour } from '../../../pm-plugins/drag-and-drop/utils/getDragBehaviour';
|
|
5
5
|
var RowDropTarget = function RowDropTarget(_ref) {
|
|
6
6
|
var index = _ref.index,
|
|
@@ -4,7 +4,7 @@ import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
|
4
4
|
import AlignPositionBottomIcon from '@atlaskit/icon-lab/core/align-position-bottom';
|
|
5
5
|
import AlignPositionCenterVerticalIcon from '@atlaskit/icon-lab/core/align-position-center-vertical';
|
|
6
6
|
import AlignPositionTopIcon from '@atlaskit/icon-lab/core/align-position-top';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { MergeCellsItem } from './items/MergeCellsItem';
|
|
9
9
|
import { SplitCellItem } from './items/SplitCellItem';
|
|
10
10
|
import { VerticalAlignDropdownItem } from './items/VerticalAlignDropdownItem';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { AddColumnLeftItem } from './items/AddColumnLeftItem';
|
|
5
5
|
import { AddColumnRightItem } from './items/AddColumnRightItem';
|
|
6
6
|
import { ColumnBackgroundSection } from './items/ColumnBackgroundSection';
|
|
@@ -9,10 +9,10 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
9
9
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
10
10
|
import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
11
11
|
import { InformationCircleIcon, SortDescendingIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
14
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
15
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
16
16
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
17
17
|
import { sortColumnWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
18
18
|
import { useTableMenuContext } from '../../shared/TableMenuContext';
|
|
@@ -9,10 +9,10 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
9
9
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
10
10
|
import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
11
11
|
import { InformationCircleIcon, SortAscendingIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
14
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
15
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
16
16
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
17
17
|
import { sortColumnWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
18
18
|
import { useTableMenuContext } from '../../shared/TableMenuContext';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { AddRowAboveItem } from './items/AddRowAboveItem';
|
|
5
5
|
import { AddRowBelowItem } from './items/AddRowBelowItem';
|
|
6
6
|
import { DeleteRowItem } from './items/DeleteRowItem';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
import { CELL_ACTION_SECTION, CELL_ADD_SECTION, CELL_DANGER_SECTION, CELL_ACTION_SECTION_RANK, CELL_ADD_SECTION_RANK, CELL_DANGER_SECTION_RANK } from '../cell/keys';
|
|
4
4
|
import { AddColumnRightItem } from '../column/items/AddColumnRightItem';
|
|
5
5
|
import { DeleteColumnItem } from '../column/items/DeleteColumnItem';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { findCellRectClosestToPos, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Resolve the table `Rect` for the current selection. Falls back to the closest cell's rect
|
|
@@ -14,7 +14,7 @@ import { akEditorSelectedNodeClassName, akEditorSmallZIndex, akEditorStickyHeade
|
|
|
14
14
|
import { akEditorTableContainerBg } from '@atlaskit/editor-shared-styles/consts';
|
|
15
15
|
import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
16
16
|
import { hideNativeBrowserTextSelectionStyles } from '@atlaskit/editor-shared-styles/selection';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
20
|
import { SORTING_ICON_CLASS_NAME } from '../pm-plugins/view-mode-sort/consts';
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { getParentOfTypeCount, getPositionAfterTopParentNodeOfType } from '@atlaskit/editor-common/nesting';
|
|
6
6
|
import { hasParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
9
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
10
10
|
import { pluginKey as sizeSelectorPluginKey } from '../../pm-plugins/table-size-selector';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ElementEventBasePayload } from '@atlaskit/pragmatic-drag-and-drop/element
|
|
1
|
+
import type { ElementEventBasePayload } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
2
2
|
import type { DraggableData } from '../../../types';
|
|
3
3
|
export declare const getDraggableDataFromEvent: ({ location, source, }: ElementEventBasePayload) => DraggableData | undefined;
|
|
@@ -12,11 +12,11 @@ export declare function getSelectedTableInfo(selection: Selection): {
|
|
|
12
12
|
totalRowCount: number;
|
|
13
13
|
};
|
|
14
14
|
export declare function getSelectedCellInfo(selection: Selection): {
|
|
15
|
-
totalRowCount: number;
|
|
16
|
-
totalColumnCount: number;
|
|
17
15
|
horizontalCells: number;
|
|
18
|
-
verticalCells: number;
|
|
19
16
|
totalCells: number;
|
|
17
|
+
totalColumnCount: number;
|
|
18
|
+
totalRowCount: number;
|
|
19
|
+
verticalCells: number;
|
|
20
20
|
};
|
|
21
21
|
export declare const withEditorAnalyticsAPI: (payload: AnalyticsEventPayload | AnalyticsEventPayloadCallback) => (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => HigherOrderCommand;
|
|
22
22
|
interface UseMeasureFramerateConfig {
|
|
@@ -40,9 +40,9 @@ export declare const generateResizeFrameRatePayloads: (props: {
|
|
|
40
40
|
* Measures the framerate of a component over a given time period.
|
|
41
41
|
*/
|
|
42
42
|
export declare const useMeasureFramerate: (config?: UseMeasureFramerateConfig) => {
|
|
43
|
-
startMeasure: () => void;
|
|
44
|
-
endMeasure: () => number[];
|
|
45
43
|
countFrames: () => void;
|
|
44
|
+
endMeasure: () => number[];
|
|
45
|
+
startMeasure: () => void;
|
|
46
46
|
};
|
|
47
47
|
export declare const getWidthInfoPayload: (editorView: EditorView, editorWidth: number) => TableEventPayload | undefined;
|
|
48
48
|
export declare const getHeightInfoPayload: (editorView: EditorView) => TableEventPayload | undefined;
|
|
@@ -6,6 +6,6 @@ export declare const unsort: (oldOrder: {
|
|
|
6
6
|
}[], tableElement: HTMLElement) => void;
|
|
7
7
|
export declare const toggleSort: (view: EditorView, event: Event, pluginState: TableSortMeta) => void;
|
|
8
8
|
export declare const getTableElements: (tableId: string) => {
|
|
9
|
-
tbody: Element | null | undefined;
|
|
10
9
|
rows: NodeListOf<Element> | undefined;
|
|
10
|
+
tbody: Element | null | undefined;
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "27.1.
|
|
3
|
+
"version": "27.1.5",
|
|
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
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^15.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-content-insertion": "^15.0.0",
|
|
31
31
|
"@atlaskit/editor-plugin-editor-viewmode": "^17.0.0",
|
|
32
|
-
"@atlaskit/editor-plugin-extension": "18.0.
|
|
32
|
+
"@atlaskit/editor-plugin-extension": "18.0.14",
|
|
33
33
|
"@atlaskit/editor-plugin-guideline": "^15.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-interaction": "^26.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-limited-mode": "^12.0.0",
|