@atlaskit/editor-plugin-block-controls 27.0.3 → 27.0.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 +12 -0
- package/dist/cjs/editor-commands/handle-key-down-with-preserved-selection.js +2 -2
- package/dist/cjs/editor-commands/move-node-with-block-menu.js +5 -5
- package/dist/cjs/editor-commands/move-node.js +23 -22
- package/dist/cjs/editor-commands/move-to-layout.js +11 -11
- package/dist/cjs/pm-plugins/handle-mouse-down.js +2 -2
- package/dist/cjs/pm-plugins/handle-mouse-over.js +2 -2
- package/dist/cjs/pm-plugins/keymap.js +5 -5
- package/dist/cjs/pm-plugins/main.js +20 -20
- package/dist/cjs/pm-plugins/selection-preservation/pm-plugin.js +2 -2
- package/dist/cjs/pm-plugins/sparse-surfaces-view.js +2 -2
- package/dist/cjs/pm-plugins/utils/analytics.js +10 -10
- package/dist/cjs/pm-plugins/utils/drag-handle-positions.js +3 -3
- package/dist/cjs/pm-plugins/utils/expand-and-update-selection.js +4 -3
- package/dist/cjs/pm-plugins/utils/getSelection.js +4 -3
- package/dist/cjs/pm-plugins/utils/selection.js +4 -3
- package/dist/cjs/pm-plugins/utils/update-selection.js +2 -1
- package/dist/cjs/pm-plugins/vanilla-quick-insert.js +4 -4
- package/dist/cjs/ui/block-controls-left-surfaces.js +4 -4
- package/dist/cjs/ui/block-controls-right-surfaces.js +4 -4
- package/dist/cjs/ui/block-controls-surface-drag-handle.js +10 -10
- package/dist/cjs/ui/consts.js +6 -6
- package/dist/cjs/ui/drag-handle.js +74 -73
- package/dist/cjs/ui/drop-target-layout.js +3 -3
- package/dist/cjs/ui/drop-target.js +2 -2
- package/dist/cjs/ui/global-styles.js +32 -31
- package/dist/cjs/ui/inline-drop-target.js +2 -2
- package/dist/cjs/ui/quick-insert-button.js +16 -16
- package/dist/cjs/ui/use-block-controls-surface-drag-source.js +7 -7
- package/dist/cjs/ui/utils/get-node-content-element.js +3 -3
- package/dist/cjs/ui/visibility-container.js +4 -4
- package/dist/es2019/editor-commands/handle-key-down-with-preserved-selection.js +1 -1
- package/dist/es2019/editor-commands/move-node-with-block-menu.js +2 -2
- package/dist/es2019/editor-commands/move-node.js +5 -4
- package/dist/es2019/editor-commands/move-to-layout.js +2 -2
- package/dist/es2019/pm-plugins/handle-mouse-down.js +1 -1
- package/dist/es2019/pm-plugins/handle-mouse-over.js +1 -1
- package/dist/es2019/pm-plugins/keymap.js +1 -1
- package/dist/es2019/pm-plugins/main.js +4 -4
- package/dist/es2019/pm-plugins/selection-preservation/pm-plugin.js +1 -1
- package/dist/es2019/pm-plugins/sparse-surfaces-view.js +1 -1
- package/dist/es2019/pm-plugins/utils/analytics.js +1 -1
- package/dist/es2019/pm-plugins/utils/drag-handle-positions.js +1 -1
- package/dist/es2019/pm-plugins/utils/expand-and-update-selection.js +3 -2
- package/dist/es2019/pm-plugins/utils/getSelection.js +3 -2
- package/dist/es2019/pm-plugins/utils/selection.js +3 -2
- package/dist/es2019/pm-plugins/utils/update-selection.js +2 -1
- package/dist/es2019/pm-plugins/vanilla-quick-insert.js +2 -2
- package/dist/es2019/ui/block-controls-left-surfaces.js +2 -2
- package/dist/es2019/ui/block-controls-right-surfaces.js +2 -2
- package/dist/es2019/ui/block-controls-surface-drag-handle.js +3 -3
- package/dist/es2019/ui/consts.js +2 -2
- package/dist/es2019/ui/drag-handle.js +6 -5
- package/dist/es2019/ui/drop-target-layout.js +1 -1
- package/dist/es2019/ui/drop-target.js +1 -1
- package/dist/es2019/ui/global-styles.js +5 -4
- package/dist/es2019/ui/inline-drop-target.js +1 -1
- package/dist/es2019/ui/quick-insert-button.js +4 -4
- package/dist/es2019/ui/use-block-controls-surface-drag-source.js +1 -1
- package/dist/es2019/ui/utils/get-node-content-element.js +1 -1
- package/dist/es2019/ui/visibility-container.js +2 -2
- package/dist/esm/editor-commands/handle-key-down-with-preserved-selection.js +1 -1
- package/dist/esm/editor-commands/move-node-with-block-menu.js +2 -2
- package/dist/esm/editor-commands/move-node.js +5 -4
- package/dist/esm/editor-commands/move-to-layout.js +2 -2
- package/dist/esm/pm-plugins/handle-mouse-down.js +1 -1
- package/dist/esm/pm-plugins/handle-mouse-over.js +1 -1
- package/dist/esm/pm-plugins/keymap.js +1 -1
- package/dist/esm/pm-plugins/main.js +4 -4
- package/dist/esm/pm-plugins/selection-preservation/pm-plugin.js +1 -1
- package/dist/esm/pm-plugins/sparse-surfaces-view.js +1 -1
- package/dist/esm/pm-plugins/utils/analytics.js +1 -1
- package/dist/esm/pm-plugins/utils/drag-handle-positions.js +1 -1
- package/dist/esm/pm-plugins/utils/expand-and-update-selection.js +3 -2
- package/dist/esm/pm-plugins/utils/getSelection.js +3 -2
- package/dist/esm/pm-plugins/utils/selection.js +3 -2
- package/dist/esm/pm-plugins/utils/update-selection.js +2 -1
- package/dist/esm/pm-plugins/vanilla-quick-insert.js +2 -2
- package/dist/esm/ui/block-controls-left-surfaces.js +2 -2
- package/dist/esm/ui/block-controls-right-surfaces.js +2 -2
- package/dist/esm/ui/block-controls-surface-drag-handle.js +3 -3
- package/dist/esm/ui/consts.js +2 -2
- package/dist/esm/ui/drag-handle.js +6 -5
- package/dist/esm/ui/drop-target-layout.js +1 -1
- package/dist/esm/ui/drop-target.js +1 -1
- package/dist/esm/ui/global-styles.js +5 -4
- package/dist/esm/ui/inline-drop-target.js +1 -1
- package/dist/esm/ui/quick-insert-button.js +4 -4
- package/dist/esm/ui/use-block-controls-surface-drag-source.js +1 -1
- package/dist/esm/ui/utils/get-node-content-element.js +1 -1
- package/dist/esm/ui/visibility-container.js +2 -2
- package/dist/types/blockControlsPluginType.d.ts +19 -17
- package/dist/types/editor-commands/handle-key-down-with-preserved-selection.d.ts +2 -1
- package/dist/types/editor-commands/map-preserved-selection.d.ts +1 -1
- package/dist/types/editor-commands/move-node-with-block-menu.d.ts +3 -2
- package/dist/types/editor-commands/move-node.d.ts +4 -1
- package/dist/types/editor-commands/move-to-layout.d.ts +2 -1
- package/dist/types/editor-commands/show-drag-handle.d.ts +2 -1
- package/dist/types/pm-plugins/decorations-common.d.ts +1 -1
- package/dist/types/pm-plugins/decorations-drag-handle.d.ts +2 -2
- package/dist/types/pm-plugins/decorations-drop-target-active.d.ts +2 -2
- package/dist/types/pm-plugins/decorations-drop-target.d.ts +2 -2
- package/dist/types/pm-plugins/decorations-quick-insert-button.d.ts +2 -2
- package/dist/types/pm-plugins/handle-mouse-down.d.ts +1 -1
- package/dist/types/pm-plugins/handle-mouse-over.d.ts +1 -1
- package/dist/types/pm-plugins/handle-sparse-hover-target.d.ts +1 -1
- package/dist/types/pm-plugins/interaction-tracking/handle-mouse-move.d.ts +1 -1
- package/dist/types/pm-plugins/interaction-tracking/pm-plugin.d.ts +1 -1
- package/dist/types/pm-plugins/keymap.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/pm-plugins/selection-preservation/editor-commands.d.ts +1 -1
- package/dist/types/pm-plugins/selection-preservation/pm-plugin.d.ts +1 -1
- package/dist/types/pm-plugins/sparse-surfaces-view.d.ts +1 -1
- package/dist/types/pm-plugins/sparse-surfaces.d.ts +1 -1
- package/dist/types/pm-plugins/utils/analytics.d.ts +1 -1
- package/dist/types/pm-plugins/utils/collapsed-heading.d.ts +1 -1
- package/dist/types/pm-plugins/utils/expand-and-update-selection.d.ts +1 -1
- package/dist/types/pm-plugins/utils/getSelection.d.ts +1 -1
- package/dist/types/pm-plugins/utils/selection.d.ts +2 -2
- package/dist/types/pm-plugins/vanilla-quick-insert.d.ts +1 -1
- package/dist/types/ui/block-controls-left-surface.d.ts +1 -1
- package/dist/types/ui/block-controls-left-surfaces.d.ts +1 -1
- package/dist/types/ui/block-controls-right-surface.d.ts +1 -1
- package/dist/types/ui/block-controls-right-surfaces.d.ts +1 -1
- package/dist/types/ui/block-controls-surface-drag-handle-registration.d.ts +1 -1
- package/dist/types/ui/block-controls-surface-drag-handle.d.ts +1 -1
- package/dist/types/ui/drag-handle.d.ts +1 -1
- package/dist/types/ui/drop-target-layout.d.ts +1 -1
- package/dist/types/ui/drop-target.d.ts +1 -1
- package/dist/types/ui/global-styles.d.ts +1 -1
- package/dist/types/ui/quick-insert-button.d.ts +1 -1
- package/dist/types/ui/use-block-controls-surface-drag-source.d.ts +1 -1
- package/dist/types/ui/utils/editor-commands.d.ts +1 -1
- package/dist/types/ui/visibility-container.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { convertToInlineCss } from '@atlaskit/editor-common/
|
|
2
|
-
import {
|
|
1
|
+
import { convertToInlineCss } from '@atlaskit/editor-common/css-helper';
|
|
2
|
+
import { messages } from '@atlaskit/editor-common/messages/block-controls';
|
|
3
3
|
import { VanillaTooltip } from '@atlaskit/editor-common/vanilla-tooltip';
|
|
4
4
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -5,8 +5,8 @@ import { bind } from 'bind-event-listener';
|
|
|
5
5
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
6
6
|
import { BLOCK_CONTROL_UI_CONTEXT } from '@atlaskit/editor-common/block-controls/block-control-ui-context';
|
|
7
7
|
import { BLOCK_CONTROLS_LEFT_SURFACE } from '@atlaskit/editor-common/block-controls/surface-keys';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { isCSSAnchorSupported } from '@atlaskit/editor-common/styles/native-anchor';
|
|
9
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
10
10
|
import { createSurfaceContext } from '@atlaskit/editor-ui-control-model/create-surface-context';
|
|
11
11
|
import { getNodeTypeWithLevel } from '../pm-plugins/decorations-common';
|
|
12
12
|
import { BlockControlsLeftSurface } from './block-controls-left-surface';
|
|
@@ -5,8 +5,8 @@ import { bind } from 'bind-event-listener';
|
|
|
5
5
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
6
6
|
import { BLOCK_CONTROL_UI_CONTEXT } from '@atlaskit/editor-common/block-controls/block-control-ui-context';
|
|
7
7
|
import { BLOCK_CONTROLS_RIGHT_SURFACE } from '@atlaskit/editor-common/block-controls/surface-keys';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { isCSSAnchorSupported } from '@atlaskit/editor-common/styles/native-anchor';
|
|
9
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
10
10
|
import { createSurfaceContext } from '@atlaskit/editor-ui-control-model/create-surface-context';
|
|
11
11
|
import { getNodeTypeWithLevel } from '../pm-plugins/decorations-common';
|
|
12
12
|
import { BlockControlsRightSurface } from './block-controls-right-surface';
|
|
@@ -7,13 +7,13 @@ import { useIntl } from 'react-intl';
|
|
|
7
7
|
|
|
8
8
|
// oxlint-disable-next-line typescript/consistent-type-imports -- jsx is the runtime factory for the classic JSX pragma above.
|
|
9
9
|
|
|
10
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
10
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
11
11
|
import { BLOCK_CONTROL_UI_CONTEXT } from '@atlaskit/editor-common/block-controls/block-control-ui-context';
|
|
12
12
|
import { surfaceDragHandleElementStore } from '@atlaskit/editor-common/block-controls/surface-drag-handle-element';
|
|
13
13
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
14
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
15
14
|
import { TooltipContentWithMultipleShortcuts } from '@atlaskit/editor-common/keymaps';
|
|
16
|
-
import { blockControlsMessages } from '@atlaskit/editor-common/messages';
|
|
15
|
+
import { messages as blockControlsMessages } from '@atlaskit/editor-common/messages/block-controls';
|
|
16
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
17
17
|
import DragHandleVerticalIcon from '@atlaskit/icon/core/drag-handle-vertical';
|
|
18
18
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
19
19
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
package/dist/es2019/ui/consts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles';
|
|
1
|
+
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles/drag-handle';
|
|
2
2
|
import { breakoutResizableNodes as breakoutResizableNodesNew, getBreakoutResizableNodes } from '@atlaskit/editor-common/utils';
|
|
3
|
-
import { akEditorUnitZIndex, akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles';
|
|
3
|
+
import { akEditorUnitZIndex, akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
4
4
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
6
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -8,14 +8,15 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { bind } from 'bind-event-listener';
|
|
10
10
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
11
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
11
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
12
12
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
13
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
14
13
|
import { dragToMoveDown, dragToMoveLeft, dragToMoveRight, dragToMoveUp, getAriaKeyshortcuts, TooltipContentWithMultipleShortcuts } from '@atlaskit/editor-common/keymaps';
|
|
15
|
-
import { blockControlsMessages } from '@atlaskit/editor-common/messages';
|
|
16
|
-
import { DRAG_HANDLE_WIDTH
|
|
14
|
+
import { messages as blockControlsMessages } from '@atlaskit/editor-common/messages/block-controls';
|
|
15
|
+
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles/drag-handle';
|
|
16
|
+
import { tableControlsSpacing } from '@atlaskit/editor-common/styles/table';
|
|
17
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
17
18
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
18
|
-
import { akEditorFullPageNarrowBreakout, akEditorTableToolbarSize, relativeSizeToBaseFontSize } from '@atlaskit/editor-shared-styles/
|
|
19
|
+
import { akEditorFullPageNarrowBreakout, akEditorTableToolbarSize, relativeSizeToBaseFontSize } from '@atlaskit/editor-shared-styles/constants';
|
|
19
20
|
import DragHandleVerticalIcon from '@atlaskit/icon/core/drag-handle-vertical';
|
|
20
21
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
21
22
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -6,7 +6,7 @@ import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } fr
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { layoutBreakpointWidth } from '@atlaskit/editor-shared-styles';
|
|
9
|
+
import { layoutBreakpointWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
10
10
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
11
11
|
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
12
12
|
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
@@ -6,7 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
6
6
|
import { Fragment, useEffect, useMemo, useRef, useState } from 'react';
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/
|
|
9
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
10
10
|
import { getBaseNodeTypeName } from '@atlaskit/editor-common/utils/node-type-utils';
|
|
11
11
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
12
|
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
6
|
import { css, Global, jsx } from '@emotion/react';
|
|
7
|
-
import {
|
|
8
|
-
import { ANCHOR_VARIABLE_NAME,
|
|
7
|
+
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles/drag-handle';
|
|
8
|
+
import { ANCHOR_VARIABLE_NAME, isCSSAnchorSupported } from '@atlaskit/editor-common/styles/native-anchor';
|
|
9
9
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
11
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace/whitespace';
|
|
12
|
+
import { akEditorBreakoutPadding, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorFullPageNarrowBreakout, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced } from '@atlaskit/editor-shared-styles/constants';
|
|
12
13
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
14
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
|
-
import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles';
|
|
11
|
+
import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles/constants';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
13
|
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
14
14
|
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
@@ -7,13 +7,13 @@ import React, { useCallback, useEffect, useState } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { bind } from 'bind-event-listener';
|
|
10
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
11
10
|
import { ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
12
|
-
import {
|
|
13
|
-
import { tableControlsSpacing } from '@atlaskit/editor-common/styles';
|
|
11
|
+
import { messages } from '@atlaskit/editor-common/messages/block-controls';
|
|
12
|
+
import { tableControlsSpacing } from '@atlaskit/editor-common/styles/table';
|
|
13
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
14
14
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
15
15
|
import { findParentNode, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
16
|
-
import { relativeSizeToBaseFontSize } from '@atlaskit/editor-shared-styles';
|
|
16
|
+
import { relativeSizeToBaseFontSize } from '@atlaskit/editor-shared-styles/constants';
|
|
17
17
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
18
18
|
import AddIcon from '@atlaskit/icon/core/add';
|
|
19
19
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
3
|
import { startMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
4
4
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resizerItemClassName } from '@atlaskit/editor-common/styles';
|
|
1
|
+
import { resizerItemClassName } from '@atlaskit/editor-common/styles/resizer';
|
|
2
2
|
const INNER_CONTAINER_SELECTORS = {
|
|
3
3
|
blockCard: '.datasourceView-content-inner-wrap',
|
|
4
4
|
bodiedExtension: '.extension-container[data-layout]',
|
|
@@ -6,8 +6,8 @@ import React, { useEffect, useRef, useState } from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/
|
|
10
|
-
import { akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
9
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
10
|
+
import { akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
12
12
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
13
13
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { deleteSelectedRange } from '@atlaskit/editor-common/selection';
|
|
1
|
+
import { deleteSelectedRange } from '@atlaskit/editor-common/selection/utils';
|
|
2
2
|
import { stopPreservingSelection } from '../pm-plugins/selection-preservation/editor-commands';
|
|
3
3
|
var getKeyboardEventInfo = function getKeyboardEventInfo(event) {
|
|
4
4
|
var key = event.key.toLowerCase();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
import { DIRECTION } from '@atlaskit/editor-common/types';
|
|
4
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
|
+
import { DIRECTION } from '@atlaskit/editor-common/types/block-controls';
|
|
6
6
|
import { key } from '../pm-plugins/main';
|
|
7
7
|
import { mapPreservedSelection } from '../pm-plugins/utils/selection';
|
|
8
8
|
import { moveNode } from './move-node';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
5
|
import { expandedState } from '@atlaskit/editor-common/expand';
|
|
6
|
-
import { blockControlsMessages } from '@atlaskit/editor-common/messages';
|
|
7
|
-
import { expandSelectionBounds
|
|
6
|
+
import { messages as blockControlsMessages } from '@atlaskit/editor-common/messages/block-controls';
|
|
7
|
+
import { expandSelectionBounds } from '@atlaskit/editor-common/selection';
|
|
8
|
+
import { GapCursorSelection } from '@atlaskit/editor-common/selection/gap-cursor/selection';
|
|
8
9
|
import { transformSliceNestedExpandToExpand } from '@atlaskit/editor-common/transforms';
|
|
9
|
-
import { DIRECTION } from '@atlaskit/editor-common/types';
|
|
10
|
+
import { DIRECTION } from '@atlaskit/editor-common/types/block-controls';
|
|
10
11
|
import { isEmptyParagraph } from '@atlaskit/editor-common/utils';
|
|
11
12
|
import { isNodeTypeValidChildOf, getBaseNodeTypeName } from '@atlaskit/editor-common/utils/node-type-utils';
|
|
12
13
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
1
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
3
3
|
import { Fragment, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DRAG_HANDLE_SELECTOR } from '@atlaskit/editor-common/styles';
|
|
1
|
+
import { DRAG_HANDLE_SELECTOR } from '@atlaskit/editor-common/styles/drag-handle';
|
|
2
2
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
3
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
4
|
export var handleMouseDown = function handleMouseDown(api) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import memoizeOne from 'memoize-one';
|
|
3
|
-
import { isMultiBlockSelection } from '@atlaskit/editor-common/selection';
|
|
3
|
+
import { isMultiBlockSelection } from '@atlaskit/editor-common/selection/utils';
|
|
4
4
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { bindKeymapWithCommand, dragToMoveDown, dragToMoveLeft, dragToMoveRight, dragToMoveUp, showElementDragHandle } from '@atlaskit/editor-common/keymaps';
|
|
2
|
-
import { DIRECTION } from '@atlaskit/editor-common/types';
|
|
2
|
+
import { DIRECTION } from '@atlaskit/editor-common/types/block-controls';
|
|
3
3
|
import { keydownHandler } from '@atlaskit/editor-prosemirror/keymap';
|
|
4
4
|
import { moveNodeViaShortcut } from '../editor-commands/move-node';
|
|
5
5
|
import { showDragHandleAtSelection } from '../editor-commands/show-drag-handle';
|
|
@@ -6,14 +6,14 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
import rafSchedule from 'raf-schd';
|
|
8
8
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
9
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
9
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
10
10
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
11
|
-
import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor';
|
|
11
|
+
import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor-provider';
|
|
12
12
|
import { isMeasuring, startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
13
13
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
14
|
-
import { DRAG_HANDLE_SELECTOR } from '@atlaskit/editor-common/styles';
|
|
14
|
+
import { DRAG_HANDLE_SELECTOR } from '@atlaskit/editor-common/styles/drag-handle';
|
|
15
15
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
16
|
-
import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui';
|
|
16
|
+
import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui-toolbar';
|
|
17
17
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils';
|
|
18
18
|
import { PluginKey, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
19
19
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { bind } from 'bind-event-listener';
|
|
5
5
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
6
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
|
-
import { DRAG_HANDLE_SELECTOR } from '@atlaskit/editor-common/styles';
|
|
7
|
+
import { DRAG_HANDLE_SELECTOR } from '@atlaskit/editor-common/styles/drag-handle';
|
|
8
8
|
import { key } from '../main';
|
|
9
9
|
import { createPreservedSelection, mapPreservedSelection } from '../utils/selection';
|
|
10
10
|
import { stopPreservingSelection } from './editor-commands';
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import { BLOCK_CONTROLS_LEFT_SURFACE, BLOCK_CONTROLS_RIGHT_SURFACE } from '@atlaskit/editor-common/block-controls/surface-keys';
|
|
6
|
-
import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor';
|
|
6
|
+
import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor-provider';
|
|
7
7
|
import { resolveSurface } from '@atlaskit/editor-ui-control-model/surface-renderer';
|
|
8
8
|
import { createSurfaceAnchorDecorations } from './decorations-surface-anchor';
|
|
9
9
|
import { key as blockControlsKey } from './main';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
3
|
export var attachMoveNodeAnalytics = function attachMoveNodeAnalytics(tr, inputMethod, fromDepth, fromNodeTypes, toDepth, toNodeType, isSameParent, api, hasSelectedMultipleNodes) {
|
|
4
4
|
var _api$analytics;
|
|
5
5
|
return api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 ? void 0 : _api$analytics.attachAnalyticsEvent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import memoizeOne from 'memoize-one';
|
|
3
|
-
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles';
|
|
3
|
+
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles/drag-handle';
|
|
4
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
6
|
import { DRAG_HANDLE_DIVIDER_TOP_ADJUSTMENT, DRAG_HANDLE_H1_TOP_ADJUSTMENT, DRAG_HANDLE_H2_TOP_ADJUSTMENT, DRAG_HANDLE_H4_TOP_ADJUSTMENT, DRAG_HANDLE_H5_TOP_ADJUSTMENT, DRAG_HANDLE_H6_TOP_ADJUSTMENT, DRAG_HANDLE_HEIGHT, DRAG_HANDLE_PARAGRAPH_SMALL_TOP_ADJUSTMENT, DRAG_HANDLE_PARAGRAPH_TOP_ADJUSTMENT, dragHandleGap } from '../../ui/consts';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { selectNodeAtPos } from '@atlaskit/editor-common/node-selection';
|
|
2
|
-
import {
|
|
2
|
+
import { isMultiBlockRange } from '@atlaskit/editor-common/selection';
|
|
3
|
+
import { expandToBlockRange } from '@atlaskit/editor-common/selection/utils';
|
|
3
4
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import { selectTableClosestToPos } from '@atlaskit/editor-tables/
|
|
5
|
+
import { selectTableClosestToPos } from '@atlaskit/editor-tables/select-table-closest-to-pos';
|
|
5
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
7
|
import { selectNode } from './getSelection';
|
|
7
8
|
import { adjustSelectionBoundsForEdgePositions } from './selection';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { getNodeSelectionForPos, selectNodeAtPos } from '@atlaskit/editor-common/node-selection';
|
|
2
|
-
import {
|
|
2
|
+
import { Side } from '@atlaskit/editor-common/selection';
|
|
3
|
+
import { GapCursorSelection } from '@atlaskit/editor-common/selection/gap-cursor/selection';
|
|
3
4
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
4
5
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
5
6
|
import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
6
|
-
import { selectTableClosestToPos } from '@atlaskit/editor-tables/
|
|
7
|
+
import { selectTableClosestToPos } from '@atlaskit/editor-tables/select-table-closest-to-pos';
|
|
7
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
9
|
export var getInlineNodePos = function getInlineNodePos(doc, start, nodeSize) {
|
|
9
10
|
var $startPos = doc.resolve(start);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META } from '@atlaskit/editor-common/block-type';
|
|
2
|
-
import {
|
|
2
|
+
import { isMultiBlockRange } from '@atlaskit/editor-common/selection';
|
|
3
|
+
import { expandToBlockRange } from '@atlaskit/editor-common/selection/utils';
|
|
3
4
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import { getTableSelectionClosesToPos } from '@atlaskit/editor-tables/
|
|
5
|
+
import { getTableSelectionClosesToPos } from '@atlaskit/editor-tables/get-table-selection-closes-to-pos';
|
|
5
6
|
import { getBlockControlsMeta, key } from '../main';
|
|
6
7
|
import { newGetSelection } from './getSelection';
|
|
7
8
|
export var getMultiSelectionIfPosInside = function getMultiSelectionIfPosInside(api, pos, tr) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Side } from '@atlaskit/editor-common/selection';
|
|
2
|
+
import { GapCursorSelection } from '@atlaskit/editor-common/selection/gap-cursor/selection';
|
|
2
3
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
4
|
import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
4
5
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { convertToInlineCss } from '@atlaskit/editor-common/
|
|
5
|
-
import {
|
|
4
|
+
import { convertToInlineCss } from '@atlaskit/editor-common/css-helper';
|
|
5
|
+
import { messages } from '@atlaskit/editor-common/messages/block-controls';
|
|
6
6
|
import { VanillaTooltip } from '@atlaskit/editor-common/vanilla-tooltip';
|
|
7
7
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -12,8 +12,8 @@ import { bind } from 'bind-event-listener';
|
|
|
12
12
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
13
13
|
import { BLOCK_CONTROL_UI_CONTEXT } from '@atlaskit/editor-common/block-controls/block-control-ui-context';
|
|
14
14
|
import { BLOCK_CONTROLS_LEFT_SURFACE } from '@atlaskit/editor-common/block-controls/surface-keys';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { isCSSAnchorSupported } from '@atlaskit/editor-common/styles/native-anchor';
|
|
16
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
17
17
|
import { createSurfaceContext } from '@atlaskit/editor-ui-control-model/create-surface-context';
|
|
18
18
|
import { getNodeTypeWithLevel } from '../pm-plugins/decorations-common';
|
|
19
19
|
import { BlockControlsLeftSurface } from './block-controls-left-surface';
|
|
@@ -12,8 +12,8 @@ import { bind } from 'bind-event-listener';
|
|
|
12
12
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
13
13
|
import { BLOCK_CONTROL_UI_CONTEXT } from '@atlaskit/editor-common/block-controls/block-control-ui-context';
|
|
14
14
|
import { BLOCK_CONTROLS_RIGHT_SURFACE } from '@atlaskit/editor-common/block-controls/surface-keys';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { isCSSAnchorSupported } from '@atlaskit/editor-common/styles/native-anchor';
|
|
16
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
17
17
|
import { createSurfaceContext } from '@atlaskit/editor-ui-control-model/create-surface-context';
|
|
18
18
|
import { getNodeTypeWithLevel } from '../pm-plugins/decorations-common';
|
|
19
19
|
import { BlockControlsRightSurface } from './block-controls-right-surface';
|
|
@@ -8,13 +8,13 @@ import { useIntl } from 'react-intl';
|
|
|
8
8
|
|
|
9
9
|
// oxlint-disable-next-line typescript/consistent-type-imports -- jsx is the runtime factory for the classic JSX pragma above.
|
|
10
10
|
|
|
11
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
11
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
12
12
|
import { BLOCK_CONTROL_UI_CONTEXT } from '@atlaskit/editor-common/block-controls/block-control-ui-context';
|
|
13
13
|
import { surfaceDragHandleElementStore } from '@atlaskit/editor-common/block-controls/surface-drag-handle-element';
|
|
14
14
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
15
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
16
15
|
import { TooltipContentWithMultipleShortcuts } from '@atlaskit/editor-common/keymaps';
|
|
17
|
-
import { blockControlsMessages } from '@atlaskit/editor-common/messages';
|
|
16
|
+
import { messages as blockControlsMessages } from '@atlaskit/editor-common/messages/block-controls';
|
|
17
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
18
18
|
import DragHandleVerticalIcon from '@atlaskit/icon/core/drag-handle-vertical';
|
|
19
19
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
20
20
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
package/dist/esm/ui/consts.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
var _dropTargetMarginMap;
|
|
4
|
-
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles';
|
|
4
|
+
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles/drag-handle';
|
|
5
5
|
import { breakoutResizableNodes as breakoutResizableNodesNew, getBreakoutResizableNodes } from '@atlaskit/editor-common/utils';
|
|
6
|
-
import { akEditorUnitZIndex, akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles';
|
|
6
|
+
import { akEditorUnitZIndex, akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
7
7
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
8
8
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -13,14 +13,15 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
|
13
13
|
import { css, jsx } from '@emotion/react';
|
|
14
14
|
import { bind } from 'bind-event-listener';
|
|
15
15
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
16
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
16
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
17
17
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
18
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
19
18
|
import { dragToMoveDown, dragToMoveLeft, dragToMoveRight, dragToMoveUp, getAriaKeyshortcuts, TooltipContentWithMultipleShortcuts } from '@atlaskit/editor-common/keymaps';
|
|
20
|
-
import { blockControlsMessages } from '@atlaskit/editor-common/messages';
|
|
21
|
-
import { DRAG_HANDLE_WIDTH
|
|
19
|
+
import { messages as blockControlsMessages } from '@atlaskit/editor-common/messages/block-controls';
|
|
20
|
+
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles/drag-handle';
|
|
21
|
+
import { tableControlsSpacing } from '@atlaskit/editor-common/styles/table';
|
|
22
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
22
23
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
23
|
-
import { akEditorFullPageNarrowBreakout, akEditorTableToolbarSize, relativeSizeToBaseFontSize } from '@atlaskit/editor-shared-styles/
|
|
24
|
+
import { akEditorFullPageNarrowBreakout, akEditorTableToolbarSize, relativeSizeToBaseFontSize } from '@atlaskit/editor-shared-styles/constants';
|
|
24
25
|
import DragHandleVerticalIcon from '@atlaskit/icon/core/drag-handle-vertical';
|
|
25
26
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
26
27
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -8,7 +8,7 @@ import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } fr
|
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
|
-
import { layoutBreakpointWidth } from '@atlaskit/editor-shared-styles';
|
|
11
|
+
import { layoutBreakpointWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
13
|
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
14
14
|
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
@@ -8,7 +8,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
8
8
|
import { Fragment, useEffect, useMemo, useRef, useState } from 'react';
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/
|
|
11
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
12
12
|
import { getBaseNodeTypeName } from '@atlaskit/editor-common/utils/node-type-utils';
|
|
13
13
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
14
14
|
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
@@ -5,11 +5,12 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
*/
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
7
7
|
import { css, Global, jsx } from '@emotion/react';
|
|
8
|
-
import {
|
|
9
|
-
import { ANCHOR_VARIABLE_NAME,
|
|
8
|
+
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles/drag-handle';
|
|
9
|
+
import { ANCHOR_VARIABLE_NAME, isCSSAnchorSupported } from '@atlaskit/editor-common/styles/native-anchor';
|
|
10
10
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
12
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace/whitespace';
|
|
13
|
+
import { akEditorBreakoutPadding, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorFullPageNarrowBreakout, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced } from '@atlaskit/editor-shared-styles/constants';
|
|
13
14
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
14
15
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
15
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -10,7 +10,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
10
10
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
|
-
import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles';
|
|
13
|
+
import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles/constants';
|
|
14
14
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
15
|
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
16
16
|
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
@@ -11,13 +11,13 @@ import React, { useCallback, useEffect, useState } from 'react';
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
13
|
import { bind } from 'bind-event-listener';
|
|
14
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
15
14
|
import { ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
16
|
-
import {
|
|
17
|
-
import { tableControlsSpacing } from '@atlaskit/editor-common/styles';
|
|
15
|
+
import { messages } from '@atlaskit/editor-common/messages/block-controls';
|
|
16
|
+
import { tableControlsSpacing } from '@atlaskit/editor-common/styles/table';
|
|
17
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
18
18
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
19
19
|
import { findParentNode, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
20
|
-
import { relativeSizeToBaseFontSize } from '@atlaskit/editor-shared-styles';
|
|
20
|
+
import { relativeSizeToBaseFontSize } from '@atlaskit/editor-shared-styles/constants';
|
|
21
21
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
22
22
|
import AddIcon from '@atlaskit/icon/core/add';
|
|
23
23
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
3
|
import { startMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
4
4
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resizerItemClassName } from '@atlaskit/editor-common/styles';
|
|
1
|
+
import { resizerItemClassName } from '@atlaskit/editor-common/styles/resizer';
|
|
2
2
|
var INNER_CONTAINER_SELECTORS = {
|
|
3
3
|
blockCard: '.datasourceView-content-inner-wrap',
|
|
4
4
|
bodiedExtension: '.extension-container[data-layout]',
|
|
@@ -8,8 +8,8 @@ import React, { useEffect, useRef, useState } from 'react';
|
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/
|
|
12
|
-
import { akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
11
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
12
|
+
import { akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
14
14
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
15
15
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|