@atlaskit/editor-plugin-block-controls 9.0.23 → 9.0.25

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 (76) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/es2019/ui/drag-handle.js +0 -1
  3. package/dist/es2019/ui/drop-target.js +0 -1
  4. package/dist/es2019/ui/inline-drop-target.js +0 -1
  5. package/dist/es2019/ui/quick-insert-button.js +0 -1
  6. package/dist/esm/ui/drag-handle.js +0 -1
  7. package/dist/esm/ui/drop-target.js +0 -1
  8. package/dist/esm/ui/inline-drop-target.js +0 -1
  9. package/dist/esm/ui/quick-insert-button.js +0 -1
  10. package/dist/types/editor-commands/move-node.d.ts +2 -3
  11. package/dist/types/editor-commands/utils/move-node-utils.d.ts +1 -1
  12. package/dist/types/pm-plugins/decorations-anchor.d.ts +2 -1
  13. package/dist/types/pm-plugins/decorations-drag-handle.d.ts +5 -4
  14. package/dist/types/pm-plugins/decorations-drop-target-active.d.ts +2 -2
  15. package/dist/types/pm-plugins/decorations-drop-target.d.ts +6 -5
  16. package/dist/types/pm-plugins/decorations-quick-insert-button.d.ts +5 -4
  17. package/dist/types/pm-plugins/handle-mouse-over.d.ts +3 -3
  18. package/dist/types/pm-plugins/interaction-tracking/handle-key-down.d.ts +1 -1
  19. package/dist/types/pm-plugins/keymap.d.ts +2 -2
  20. package/dist/types/pm-plugins/main.d.ts +1 -1
  21. package/dist/types/pm-plugins/quick-insert-calculate-position.d.ts +2 -2
  22. package/dist/types/pm-plugins/utils/analytics.d.ts +2 -2
  23. package/dist/types/pm-plugins/utils/anchor-utils.d.ts +1 -1
  24. package/dist/types/pm-plugins/utils/check-fragment.d.ts +1 -1
  25. package/dist/types/pm-plugins/utils/check-media-layout.d.ts +1 -1
  26. package/dist/types/pm-plugins/utils/drag-handle-positions.d.ts +1 -1
  27. package/dist/types/pm-plugins/utils/getNestedNodePosition.d.ts +1 -1
  28. package/dist/types/pm-plugins/utils/getSelection.d.ts +3 -2
  29. package/dist/types/pm-plugins/utils/inline-drop-target.d.ts +1 -1
  30. package/dist/types/pm-plugins/utils/marks.d.ts +1 -1
  31. package/dist/types/pm-plugins/utils/remove-from-source.d.ts +2 -2
  32. package/dist/types/pm-plugins/utils/selection.d.ts +2 -1
  33. package/dist/types/pm-plugins/utils/update-column-widths.d.ts +2 -2
  34. package/dist/types/pm-plugins/utils/update-selection.d.ts +1 -1
  35. package/dist/types/pm-plugins/utils/validation.d.ts +1 -1
  36. package/dist/types/pm-plugins/vanilla-quick-insert.d.ts +2 -2
  37. package/dist/types/ui/drag-handle.d.ts +2 -2
  38. package/dist/types/ui/drop-target-layout.d.ts +2 -2
  39. package/dist/types/ui/drop-target.d.ts +2 -2
  40. package/dist/types/ui/inline-drop-target.d.ts +2 -2
  41. package/dist/types/ui/quick-insert-button.d.ts +2 -2
  42. package/dist/types/ui/utils/anchor-name.d.ts +1 -1
  43. package/dist/types-ts4.5/editor-commands/move-node.d.ts +2 -3
  44. package/dist/types-ts4.5/editor-commands/utils/move-node-utils.d.ts +1 -1
  45. package/dist/types-ts4.5/pm-plugins/decorations-anchor.d.ts +2 -1
  46. package/dist/types-ts4.5/pm-plugins/decorations-drag-handle.d.ts +5 -4
  47. package/dist/types-ts4.5/pm-plugins/decorations-drop-target-active.d.ts +2 -2
  48. package/dist/types-ts4.5/pm-plugins/decorations-drop-target.d.ts +6 -5
  49. package/dist/types-ts4.5/pm-plugins/decorations-quick-insert-button.d.ts +5 -4
  50. package/dist/types-ts4.5/pm-plugins/handle-mouse-over.d.ts +3 -3
  51. package/dist/types-ts4.5/pm-plugins/interaction-tracking/handle-key-down.d.ts +1 -1
  52. package/dist/types-ts4.5/pm-plugins/keymap.d.ts +2 -2
  53. package/dist/types-ts4.5/pm-plugins/main.d.ts +1 -1
  54. package/dist/types-ts4.5/pm-plugins/quick-insert-calculate-position.d.ts +2 -2
  55. package/dist/types-ts4.5/pm-plugins/utils/analytics.d.ts +2 -2
  56. package/dist/types-ts4.5/pm-plugins/utils/anchor-utils.d.ts +1 -1
  57. package/dist/types-ts4.5/pm-plugins/utils/check-fragment.d.ts +1 -1
  58. package/dist/types-ts4.5/pm-plugins/utils/check-media-layout.d.ts +1 -1
  59. package/dist/types-ts4.5/pm-plugins/utils/drag-handle-positions.d.ts +1 -1
  60. package/dist/types-ts4.5/pm-plugins/utils/getNestedNodePosition.d.ts +1 -1
  61. package/dist/types-ts4.5/pm-plugins/utils/getSelection.d.ts +3 -2
  62. package/dist/types-ts4.5/pm-plugins/utils/inline-drop-target.d.ts +1 -1
  63. package/dist/types-ts4.5/pm-plugins/utils/marks.d.ts +1 -1
  64. package/dist/types-ts4.5/pm-plugins/utils/remove-from-source.d.ts +2 -2
  65. package/dist/types-ts4.5/pm-plugins/utils/selection.d.ts +2 -1
  66. package/dist/types-ts4.5/pm-plugins/utils/update-column-widths.d.ts +2 -2
  67. package/dist/types-ts4.5/pm-plugins/utils/update-selection.d.ts +1 -1
  68. package/dist/types-ts4.5/pm-plugins/utils/validation.d.ts +1 -1
  69. package/dist/types-ts4.5/pm-plugins/vanilla-quick-insert.d.ts +2 -2
  70. package/dist/types-ts4.5/ui/drag-handle.d.ts +2 -2
  71. package/dist/types-ts4.5/ui/drop-target-layout.d.ts +2 -2
  72. package/dist/types-ts4.5/ui/drop-target.d.ts +2 -2
  73. package/dist/types-ts4.5/ui/inline-drop-target.d.ts +2 -2
  74. package/dist/types-ts4.5/ui/quick-insert-button.d.ts +2 -2
  75. package/dist/types-ts4.5/ui/utils/anchor-name.d.ts +1 -1
  76. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 9.0.25
4
+
5
+ ### Patch Changes
6
+
7
+ - [`12e112a137d5f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/12e112a137d5f) -
8
+ Clean up platform_editor_table_fw_numcol_overflow_fix feature flag
9
+
10
+ ## 9.0.24
11
+
12
+ ### Patch Changes
13
+
14
+ - [`88a7ee0806123`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/88a7ee0806123) -
15
+ Mechanical type-import autofix for block, layout, and control packages.
16
+ - Updated dependencies
17
+
3
18
  ## 9.0.23
4
19
 
5
20
  ### Patch Changes
@@ -2,7 +2,6 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
-
6
5
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
7
6
 
8
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
@@ -4,7 +4,6 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  * @jsx jsx
5
5
  */
6
6
  import { Fragment, useEffect, useMemo, useRef, useState } from 'react';
7
-
8
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
9
8
  import { css, jsx } from '@emotion/react';
10
9
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
@@ -5,7 +5,6 @@
5
5
  * @jsx jsx
6
6
  */
7
7
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
8
-
9
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
10
9
  import { css, jsx } from '@emotion/react';
11
10
  import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles';
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import React, { useCallback, useEffect, useState } from 'react';
7
-
8
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
9
8
  import { css, jsx } from '@emotion/react';
10
9
  import { bind } from 'bind-event-listener';
@@ -7,7 +7,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  * @jsxRuntime classic
8
8
  * @jsx jsx
9
9
  */
10
-
11
10
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
12
11
 
13
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
@@ -6,7 +6,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
6
6
  * @jsx jsx
7
7
  */
8
8
  import { Fragment, useEffect, useMemo, useRef, useState } from 'react';
9
-
10
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
11
10
  import { css, jsx } from '@emotion/react';
12
11
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
@@ -7,7 +7,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
7
7
  * @jsx jsx
8
8
  */
9
9
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
10
-
11
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
12
11
  import { css, jsx } from '@emotion/react';
13
12
  import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles';
@@ -8,7 +8,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
8
8
  */
9
9
 
10
10
  import React, { useCallback, useEffect, useState } from 'react';
11
-
12
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
13
12
  import { css, jsx } from '@emotion/react';
14
13
  import { bind } from 'bind-event-listener';
@@ -1,6 +1,5 @@
1
- import { type IntlShape } from 'react-intl-next';
2
- import type { Command, EditorCommand, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import { DIRECTION } from '@atlaskit/editor-common/types';
1
+ import type { IntlShape } from 'react-intl-next';
2
+ import { type Command, type EditorCommand, type ExtractInjectionAPI, DIRECTION } from '@atlaskit/editor-common/types';
4
3
  import type { BlockControlsPlugin, MoveNodeMethod } from '../blockControlsPluginType';
5
4
  export declare const moveNodeViaShortcut: (api: ExtractInjectionAPI<BlockControlsPlugin> | undefined, direction: DIRECTION, formatMessage?: IntlShape["formatMessage"]) => Command;
6
5
  export declare const moveNode: (api?: ExtractInjectionAPI<BlockControlsPlugin>) => (start: number, to: number, inputMethod?: MoveNodeMethod, formatMessage?: IntlShape["formatMessage"]) => EditorCommand;
@@ -1,5 +1,5 @@
1
1
  import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
- import { type Selection, type Transaction } from '@atlaskit/editor-prosemirror/state';
2
+ import type { Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
3
3
  /**
4
4
  * Gets the current node position and bounds from the selection using the preserved selection logic.
5
5
  * This ensures consistency with how the block controls plugin handles selection boundaries.
@@ -1,6 +1,7 @@
1
1
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
- import { Decoration, type DecorationSet } from '@atlaskit/editor-prosemirror/view';
3
+ import { Decoration } from '@atlaskit/editor-prosemirror/view';
4
+ import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
5
  export declare const IGNORE_NODES_NEXT: string[];
5
6
  export declare const IGNORE_NODE_DESCENDANTS_ADVANCED_LAYOUT: string[];
6
7
  export declare const shouldDescendIntoNode: (node: PMNode) => boolean;
@@ -1,10 +1,11 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
- import { type EditorState } from '@atlaskit/editor-prosemirror/state';
5
- import { Decoration, type DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
+ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
+ import { Decoration } from '@atlaskit/editor-prosemirror/view';
6
+ import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
7
  import type { BlockControlsPlugin, HandleOptions } from '../blockControlsPluginType';
7
- import { type AnchorRectCache } from './utils/anchor-utils';
8
+ import type { AnchorRectCache } from './utils/anchor-utils';
8
9
  export declare const emptyParagraphNodeDecorations: () => Decoration;
9
10
  export declare const findHandleDec: (decorations: DecorationSet, from?: number, to?: number) => Decoration[];
10
11
  type DragHandleDecorationParams = {
@@ -1,9 +1,9 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
6
- import { type Decoration } from '@atlaskit/editor-prosemirror/view';
6
+ import type { Decoration } from '@atlaskit/editor-prosemirror/view';
7
7
  import type { ActiveDropTargetNode, ActiveNode, BlockControlsPlugin } from '../blockControlsPluginType';
8
8
  import type { AnchorRectCache } from './utils/anchor-utils';
9
9
  export declare const canMoveNodeOrSliceToPos: (state: EditorState, node: PMNode, parent: PMNode, index: number, $toPos: ResolvedPos, activeNode?: ActiveNode) => boolean | null;
@@ -1,12 +1,13 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
- import { Decoration, type DecorationSet } from '@atlaskit/editor-prosemirror/view';
5
+ import { Decoration } from '@atlaskit/editor-prosemirror/view';
6
+ import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
7
  import type { ActiveNode, BlockControlsPlugin } from '../blockControlsPluginType';
7
- import { type DropTargetProps } from '../ui/drop-target';
8
- import { type DropTargetLayoutProps } from '../ui/drop-target-layout';
9
- import { type AnchorRectCache } from './utils/anchor-utils';
8
+ import type { DropTargetProps } from '../ui/drop-target';
9
+ import type { DropTargetLayoutProps } from '../ui/drop-target-layout';
10
+ import type { AnchorRectCache } from './utils/anchor-utils';
10
11
  /**
11
12
  * Find drop target decorations in the pos range between from and to
12
13
  * @param decorations
@@ -1,10 +1,11 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
- import { type EditorState } from '@atlaskit/editor-prosemirror/state';
5
- import { Decoration, type DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
+ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
+ import { Decoration } from '@atlaskit/editor-prosemirror/view';
6
+ import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
7
  import type { BlockControlsPlugin } from '../blockControlsPluginType';
7
- import { type AnchorRectCache } from './utils/anchor-utils';
8
+ import type { AnchorRectCache } from './utils/anchor-utils';
8
9
  export declare const findQuickInsertInsertButtonDecoration: (decorations: DecorationSet, from?: number, to?: number) => Decoration[];
9
10
  type QuickInsertButtonDecorationParams = {
10
11
  anchorName: string;
@@ -1,4 +1,4 @@
1
- import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import { type BlockControlsPlugin } from '../blockControlsPluginType';
1
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
+ import type { BlockControlsPlugin } from '../blockControlsPluginType';
4
4
  export declare const handleMouseOver: (view: EditorView, event: Event, api: ExtractInjectionAPI<BlockControlsPlugin> | undefined) => false | undefined;
@@ -1,2 +1,2 @@
1
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
1
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
2
  export declare const handleKeyDown: (view: EditorView, event: KeyboardEvent) => boolean;
@@ -1,5 +1,5 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
3
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { BlockControlsPlugin } from '../blockControlsPluginType';
5
5
  export declare const boundKeydownHandler: (api?: ExtractInjectionAPI<BlockControlsPlugin>, formatMessage?: IntlShape['formatMessage']) => (view: EditorView, event: KeyboardEvent) => boolean;
@@ -1,4 +1,4 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
@@ -1,6 +1,6 @@
1
- import { type CSSProperties } from 'react';
1
+ import type { CSSProperties } from 'react';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import { type AnchorRectCache } from './utils/anchor-utils';
3
+ import type { AnchorRectCache } from './utils/anchor-utils';
4
4
  export declare const calculatePosition: ({ rootAnchorName, anchorName, view, getPos, rootNodeType, macroInteractionUpdates, anchorRectCache, }: {
5
5
  anchorName: string;
6
6
  anchorRectCache: AnchorRectCache | undefined;
@@ -1,6 +1,6 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import { type Transaction } from '@atlaskit/editor-prosemirror/state';
3
- import { type BlockControlsPlugin } from '../../blockControlsPluginType';
2
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
+ import type { BlockControlsPlugin } from '../../blockControlsPluginType';
4
4
  export declare const attachMoveNodeAnalytics: (tr: Transaction, inputMethod: string, fromDepth: number, fromNodeType: string, toDepth?: number, toNodeType?: string, isSameParent?: boolean, api?: ExtractInjectionAPI<BlockControlsPlugin>, fromNodeTypes?: string, hasSelectedMultipleNodes?: boolean) => boolean | undefined;
5
5
  export declare const fireInsertLayoutAnalytics: (tr: Transaction, api?: ExtractInjectionAPI<BlockControlsPlugin>, nodeTypes?: string, hasSelectedMultipleNodes?: boolean, columnCount?: number) => void;
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { type MemoizedFn } from 'memoize-one';
1
+ import type { MemoizedFn } from 'memoize-one';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  export declare const isAnchorSupported: MemoizedFn<() => boolean>;
4
4
  type RectInfo = {
@@ -1,4 +1,4 @@
1
- import { type Fragment } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Fragment } from '@atlaskit/editor-prosemirror/model';
2
2
  /**
3
3
  * Check if the fragment has only one node of the specified type
4
4
  */
@@ -1,2 +1,2 @@
1
- import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare const isWrappedMedia: (node?: PMNode) => boolean;
@@ -1,4 +1,4 @@
1
- import { type AnchorRectCache } from './anchor-utils';
1
+ import type { AnchorRectCache } from './anchor-utils';
2
2
  export declare const getTopPosition: (dom: HTMLElement | null, type?: string) => string;
3
3
  export declare const getLeftPosition: (dom: HTMLElement | null, type: string, innerContainer?: HTMLElement | null, macroInteractionUpdates?: boolean, parentType?: string) => string;
4
4
  export declare const getNodeHeight: (dom: HTMLElement | null, anchor: string, anchorRectCache?: AnchorRectCache) => number | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { ResolvedPos, Schema } from '@atlaskit/editor-prosemirror/model';
2
- import { type Selection } from '@atlaskit/editor-prosemirror/state';
2
+ import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
3
  export declare const getNestedNodePosition: ({ selection, schema, resolve, }: {
4
4
  resolve: (pos: number) => ResolvedPos;
5
5
  schema: Schema;
@@ -1,6 +1,7 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import { type Node as PMNode, type ResolvedPos } from '@atlaskit/editor-prosemirror/model';
3
- import { type EditorState, NodeSelection, type Selection, TextSelection, type Transaction } from '@atlaskit/editor-prosemirror/state';
2
+ import type { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
3
+ import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
4
+ import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
4
5
  import type { BlockControlsPlugin } from '../../blockControlsPluginType';
5
6
  export declare const getInlineNodePos: (doc: PMNode, start: number, nodeSize: number) => {
6
7
  inlineNodeEndPos: number;
@@ -1,5 +1,5 @@
1
1
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import { type ActiveNode } from '../../blockControlsPluginType';
2
+ import type { ActiveNode } from '../../blockControlsPluginType';
3
3
  export declare const shouldAllowInlineDropTarget: (isNested: boolean, node?: PMNode,
4
4
  /**
5
5
  * Is the active node in the same layout as the target node
@@ -1,5 +1,5 @@
1
1
  import type { Mark } from '@atlaskit/editor-prosemirror/model';
2
- import { type EditorState } from '@atlaskit/editor-prosemirror/state';
2
+ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  /**
4
4
  * Remove this when platform_editor_clean_up_widget_mark_logic is cleaned up.
5
5
  *
@@ -1,3 +1,3 @@
1
- import { type ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
- import { type Transaction } from '@atlaskit/editor-prosemirror/state';
1
+ import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
3
  export declare const removeFromSource: (tr: Transaction, $from: ResolvedPos, to?: number) => Transaction;
@@ -1,6 +1,7 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
2
  import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
3
- import { NodeSelection, TextSelection, type ReadonlyTransaction, type Selection, type Transaction } from '@atlaskit/editor-prosemirror/state';
3
+ import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
4
+ import type { ReadonlyTransaction, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
4
5
  import type { CellSelection } from '@atlaskit/editor-tables';
5
6
  import type { BlockControlsPlugin } from '../../blockControlsPluginType';
6
7
  export declare const getMultiSelectionIfPosInside: (api: ExtractInjectionAPI<BlockControlsPlugin>, pos: number, tr?: Transaction) => {
@@ -1,5 +1,5 @@
1
- import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import { type Transaction } from '@atlaskit/editor-prosemirror/state';
1
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
3
  export declare const updateColumnWidths: (tr: Transaction, layoutNode: PMNode, layoutNodePos: number, childCount: number) => {
4
4
  newColumnWidth: number;
5
5
  tr: Transaction;
@@ -1,4 +1,4 @@
1
- import { type Transaction } from '@atlaskit/editor-prosemirror/state';
1
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
2
  import { Step } from '@atlaskit/editor-prosemirror/transform';
3
3
  export declare const getInsertLayoutStep: (tr: Transaction) => Step | undefined;
4
4
  export declare const updateSelection: (tr: Transaction, to: number, insertAtRight?: boolean) => Transaction;
@@ -1,4 +1,4 @@
1
- import { type MemoizedFn } from 'memoize-one';
1
+ import type { MemoizedFn } from 'memoize-one';
2
2
  import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { NodeType, Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
4
4
  export declare const isInsideTable: (nodeType: NodeType) => Boolean;
@@ -1,8 +1,8 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { BlockControlsPlugin } from '../blockControlsPluginType';
5
- import { type AnchorRectCache } from './utils/anchor-utils';
5
+ import type { AnchorRectCache } from './utils/anchor-utils';
6
6
  type VanillaQuickInsertProps = {
7
7
  anchorName: string;
8
8
  anchorRectCache?: AnchorRectCache;
@@ -1,9 +1,9 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import type { IntlShape } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { BlockControlsPlugin, HandleOptions } from '../blockControlsPluginType';
6
- import { type AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
6
+ import type { AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
7
7
  type DragHandleProps = {
8
8
  anchorName: string;
9
9
  anchorRectCache?: AnchorRectCache;
@@ -1,9 +1,9 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import type { IntlShape } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { BlockControlsPlugin } from '../blockControlsPluginType';
6
- import { type AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
6
+ import type { AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
7
7
  export type DropTargetLayoutProps = {
8
8
  api: ExtractInjectionAPI<BlockControlsPlugin> | undefined;
9
9
  formatMessage?: IntlShape['formatMessage'];
@@ -1,9 +1,9 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import type { IntlShape } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { BlockControlsPlugin } from '../blockControlsPluginType';
6
- import { type AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
6
+ import type { AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
7
7
  export declare const EDITOR_BLOCK_CONTROLS_DROP_INDICATOR_OFFSET = "--editor-block-controls-drop-indicator-offset";
8
8
  export declare const EDITOR_BLOCK_CONTROLS_DROP_INDICATOR_GAP = "--editor-block-controls-drop-indicator-gap";
9
9
  export type DropTargetStyle = 'default' | 'remainingHeight';
@@ -1,6 +1,6 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { type AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
3
- import { type DropTargetProps } from './drop-target';
2
+ import type { AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
3
+ import type { DropTargetProps } from './drop-target';
4
4
  export declare const InlineDropTarget: ({ api, nextNode, position, anchorRectCache, getPos, }: DropTargetProps & {
5
5
  anchorRectCache?: AnchorRectCache;
6
6
  position: "left" | "right";
@@ -3,11 +3,11 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
- import { type IntlShape } from 'react-intl-next';
6
+ import type { IntlShape } from 'react-intl-next';
7
7
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
8
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
9
9
  import type { BlockControlsPlugin } from '../blockControlsPluginType';
10
- import { type AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
10
+ import type { AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
11
11
  type Props = {
12
12
  anchorName: string;
13
13
  anchorRectCache?: AnchorRectCache;
@@ -1,4 +1,4 @@
1
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
1
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
2
  type RefreshAnchorNameParams = {
3
3
  anchorName?: string;
4
4
  getPos: () => number | undefined;
@@ -1,6 +1,5 @@
1
- import { type IntlShape } from 'react-intl-next';
2
- import type { Command, EditorCommand, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import { DIRECTION } from '@atlaskit/editor-common/types';
1
+ import type { IntlShape } from 'react-intl-next';
2
+ import { type Command, type EditorCommand, type ExtractInjectionAPI, DIRECTION } from '@atlaskit/editor-common/types';
4
3
  import type { BlockControlsPlugin, MoveNodeMethod } from '../blockControlsPluginType';
5
4
  export declare const moveNodeViaShortcut: (api: ExtractInjectionAPI<BlockControlsPlugin> | undefined, direction: DIRECTION, formatMessage?: IntlShape["formatMessage"]) => Command;
6
5
  export declare const moveNode: (api?: ExtractInjectionAPI<BlockControlsPlugin>) => (start: number, to: number, inputMethod?: MoveNodeMethod, formatMessage?: IntlShape["formatMessage"]) => EditorCommand;
@@ -1,5 +1,5 @@
1
1
  import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
- import { type Selection, type Transaction } from '@atlaskit/editor-prosemirror/state';
2
+ import type { Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
3
3
  /**
4
4
  * Gets the current node position and bounds from the selection using the preserved selection logic.
5
5
  * This ensures consistency with how the block controls plugin handles selection boundaries.
@@ -1,6 +1,7 @@
1
1
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
- import { Decoration, type DecorationSet } from '@atlaskit/editor-prosemirror/view';
3
+ import { Decoration } from '@atlaskit/editor-prosemirror/view';
4
+ import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
5
  export declare const IGNORE_NODES_NEXT: string[];
5
6
  export declare const IGNORE_NODE_DESCENDANTS_ADVANCED_LAYOUT: string[];
6
7
  export declare const shouldDescendIntoNode: (node: PMNode) => boolean;
@@ -1,10 +1,11 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
- import { type EditorState } from '@atlaskit/editor-prosemirror/state';
5
- import { Decoration, type DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
+ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
+ import { Decoration } from '@atlaskit/editor-prosemirror/view';
6
+ import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
7
  import type { BlockControlsPlugin, HandleOptions } from '../blockControlsPluginType';
7
- import { type AnchorRectCache } from './utils/anchor-utils';
8
+ import type { AnchorRectCache } from './utils/anchor-utils';
8
9
  export declare const emptyParagraphNodeDecorations: () => Decoration;
9
10
  export declare const findHandleDec: (decorations: DecorationSet, from?: number, to?: number) => Decoration[];
10
11
  type DragHandleDecorationParams = {
@@ -1,9 +1,9 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
6
- import { type Decoration } from '@atlaskit/editor-prosemirror/view';
6
+ import type { Decoration } from '@atlaskit/editor-prosemirror/view';
7
7
  import type { ActiveDropTargetNode, ActiveNode, BlockControlsPlugin } from '../blockControlsPluginType';
8
8
  import type { AnchorRectCache } from './utils/anchor-utils';
9
9
  export declare const canMoveNodeOrSliceToPos: (state: EditorState, node: PMNode, parent: PMNode, index: number, $toPos: ResolvedPos, activeNode?: ActiveNode) => boolean | null;
@@ -1,12 +1,13 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
- import { Decoration, type DecorationSet } from '@atlaskit/editor-prosemirror/view';
5
+ import { Decoration } from '@atlaskit/editor-prosemirror/view';
6
+ import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
7
  import type { ActiveNode, BlockControlsPlugin } from '../blockControlsPluginType';
7
- import { type DropTargetProps } from '../ui/drop-target';
8
- import { type DropTargetLayoutProps } from '../ui/drop-target-layout';
9
- import { type AnchorRectCache } from './utils/anchor-utils';
8
+ import type { DropTargetProps } from '../ui/drop-target';
9
+ import type { DropTargetLayoutProps } from '../ui/drop-target-layout';
10
+ import type { AnchorRectCache } from './utils/anchor-utils';
10
11
  /**
11
12
  * Find drop target decorations in the pos range between from and to
12
13
  * @param decorations
@@ -1,10 +1,11 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
- import { type EditorState } from '@atlaskit/editor-prosemirror/state';
5
- import { Decoration, type DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
+ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
+ import { Decoration } from '@atlaskit/editor-prosemirror/view';
6
+ import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
7
  import type { BlockControlsPlugin } from '../blockControlsPluginType';
7
- import { type AnchorRectCache } from './utils/anchor-utils';
8
+ import type { AnchorRectCache } from './utils/anchor-utils';
8
9
  export declare const findQuickInsertInsertButtonDecoration: (decorations: DecorationSet, from?: number, to?: number) => Decoration[];
9
10
  type QuickInsertButtonDecorationParams = {
10
11
  anchorName: string;
@@ -1,4 +1,4 @@
1
- import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import { type BlockControlsPlugin } from '../blockControlsPluginType';
1
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
+ import type { BlockControlsPlugin } from '../blockControlsPluginType';
4
4
  export declare const handleMouseOver: (view: EditorView, event: Event, api: ExtractInjectionAPI<BlockControlsPlugin> | undefined) => false | undefined;
@@ -1,2 +1,2 @@
1
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
1
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
2
  export declare const handleKeyDown: (view: EditorView, event: KeyboardEvent) => boolean;
@@ -1,5 +1,5 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
3
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { BlockControlsPlugin } from '../blockControlsPluginType';
5
5
  export declare const boundKeydownHandler: (api?: ExtractInjectionAPI<BlockControlsPlugin>, formatMessage?: IntlShape['formatMessage']) => (view: EditorView, event: KeyboardEvent) => boolean;
@@ -1,4 +1,4 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
@@ -1,6 +1,6 @@
1
- import { type CSSProperties } from 'react';
1
+ import type { CSSProperties } from 'react';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import { type AnchorRectCache } from './utils/anchor-utils';
3
+ import type { AnchorRectCache } from './utils/anchor-utils';
4
4
  export declare const calculatePosition: ({ rootAnchorName, anchorName, view, getPos, rootNodeType, macroInteractionUpdates, anchorRectCache, }: {
5
5
  anchorName: string;
6
6
  anchorRectCache: AnchorRectCache | undefined;
@@ -1,6 +1,6 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import { type Transaction } from '@atlaskit/editor-prosemirror/state';
3
- import { type BlockControlsPlugin } from '../../blockControlsPluginType';
2
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
+ import type { BlockControlsPlugin } from '../../blockControlsPluginType';
4
4
  export declare const attachMoveNodeAnalytics: (tr: Transaction, inputMethod: string, fromDepth: number, fromNodeType: string, toDepth?: number, toNodeType?: string, isSameParent?: boolean, api?: ExtractInjectionAPI<BlockControlsPlugin>, fromNodeTypes?: string, hasSelectedMultipleNodes?: boolean) => boolean | undefined;
5
5
  export declare const fireInsertLayoutAnalytics: (tr: Transaction, api?: ExtractInjectionAPI<BlockControlsPlugin>, nodeTypes?: string, hasSelectedMultipleNodes?: boolean, columnCount?: number) => void;
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { type MemoizedFn } from 'memoize-one';
1
+ import type { MemoizedFn } from 'memoize-one';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  export declare const isAnchorSupported: MemoizedFn<() => boolean>;
4
4
  type RectInfo = {
@@ -1,4 +1,4 @@
1
- import { type Fragment } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Fragment } from '@atlaskit/editor-prosemirror/model';
2
2
  /**
3
3
  * Check if the fragment has only one node of the specified type
4
4
  */
@@ -1,2 +1,2 @@
1
- import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare const isWrappedMedia: (node?: PMNode) => boolean;
@@ -1,4 +1,4 @@
1
- import { type AnchorRectCache } from './anchor-utils';
1
+ import type { AnchorRectCache } from './anchor-utils';
2
2
  export declare const getTopPosition: (dom: HTMLElement | null, type?: string) => string;
3
3
  export declare const getLeftPosition: (dom: HTMLElement | null, type: string, innerContainer?: HTMLElement | null, macroInteractionUpdates?: boolean, parentType?: string) => string;
4
4
  export declare const getNodeHeight: (dom: HTMLElement | null, anchor: string, anchorRectCache?: AnchorRectCache) => number | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { ResolvedPos, Schema } from '@atlaskit/editor-prosemirror/model';
2
- import { type Selection } from '@atlaskit/editor-prosemirror/state';
2
+ import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
3
  export declare const getNestedNodePosition: ({ selection, schema, resolve, }: {
4
4
  resolve: (pos: number) => ResolvedPos;
5
5
  schema: Schema;
@@ -1,6 +1,7 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import { type Node as PMNode, type ResolvedPos } from '@atlaskit/editor-prosemirror/model';
3
- import { type EditorState, NodeSelection, type Selection, TextSelection, type Transaction } from '@atlaskit/editor-prosemirror/state';
2
+ import type { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
3
+ import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
4
+ import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
4
5
  import type { BlockControlsPlugin } from '../../blockControlsPluginType';
5
6
  export declare const getInlineNodePos: (doc: PMNode, start: number, nodeSize: number) => {
6
7
  inlineNodeEndPos: number;
@@ -1,5 +1,5 @@
1
1
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import { type ActiveNode } from '../../blockControlsPluginType';
2
+ import type { ActiveNode } from '../../blockControlsPluginType';
3
3
  export declare const shouldAllowInlineDropTarget: (isNested: boolean, node?: PMNode,
4
4
  /**
5
5
  * Is the active node in the same layout as the target node
@@ -1,5 +1,5 @@
1
1
  import type { Mark } from '@atlaskit/editor-prosemirror/model';
2
- import { type EditorState } from '@atlaskit/editor-prosemirror/state';
2
+ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  /**
4
4
  * Remove this when platform_editor_clean_up_widget_mark_logic is cleaned up.
5
5
  *
@@ -1,3 +1,3 @@
1
- import { type ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
- import { type Transaction } from '@atlaskit/editor-prosemirror/state';
1
+ import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
3
  export declare const removeFromSource: (tr: Transaction, $from: ResolvedPos, to?: number) => Transaction;
@@ -1,6 +1,7 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
2
  import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
3
- import { NodeSelection, TextSelection, type ReadonlyTransaction, type Selection, type Transaction } from '@atlaskit/editor-prosemirror/state';
3
+ import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
4
+ import type { ReadonlyTransaction, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
4
5
  import type { CellSelection } from '@atlaskit/editor-tables';
5
6
  import type { BlockControlsPlugin } from '../../blockControlsPluginType';
6
7
  export declare const getMultiSelectionIfPosInside: (api: ExtractInjectionAPI<BlockControlsPlugin>, pos: number, tr?: Transaction) => {
@@ -1,5 +1,5 @@
1
- import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import { type Transaction } from '@atlaskit/editor-prosemirror/state';
1
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
3
  export declare const updateColumnWidths: (tr: Transaction, layoutNode: PMNode, layoutNodePos: number, childCount: number) => {
4
4
  newColumnWidth: number;
5
5
  tr: Transaction;
@@ -1,4 +1,4 @@
1
- import { type Transaction } from '@atlaskit/editor-prosemirror/state';
1
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
2
  import { Step } from '@atlaskit/editor-prosemirror/transform';
3
3
  export declare const getInsertLayoutStep: (tr: Transaction) => Step | undefined;
4
4
  export declare const updateSelection: (tr: Transaction, to: number, insertAtRight?: boolean) => Transaction;
@@ -1,4 +1,4 @@
1
- import { type MemoizedFn } from 'memoize-one';
1
+ import type { MemoizedFn } from 'memoize-one';
2
2
  import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { NodeType, Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
4
4
  export declare const isInsideTable: (nodeType: NodeType) => Boolean;
@@ -1,8 +1,8 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { BlockControlsPlugin } from '../blockControlsPluginType';
5
- import { type AnchorRectCache } from './utils/anchor-utils';
5
+ import type { AnchorRectCache } from './utils/anchor-utils';
6
6
  type VanillaQuickInsertProps = {
7
7
  anchorName: string;
8
8
  anchorRectCache?: AnchorRectCache;
@@ -1,9 +1,9 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import type { IntlShape } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { BlockControlsPlugin, HandleOptions } from '../blockControlsPluginType';
6
- import { type AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
6
+ import type { AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
7
7
  type DragHandleProps = {
8
8
  anchorName: string;
9
9
  anchorRectCache?: AnchorRectCache;
@@ -1,9 +1,9 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import type { IntlShape } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { BlockControlsPlugin } from '../blockControlsPluginType';
6
- import { type AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
6
+ import type { AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
7
7
  export type DropTargetLayoutProps = {
8
8
  api: ExtractInjectionAPI<BlockControlsPlugin> | undefined;
9
9
  formatMessage?: IntlShape['formatMessage'];
@@ -1,9 +1,9 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import type { IntlShape } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { BlockControlsPlugin } from '../blockControlsPluginType';
6
- import { type AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
6
+ import type { AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
7
7
  export declare const EDITOR_BLOCK_CONTROLS_DROP_INDICATOR_OFFSET = "--editor-block-controls-drop-indicator-offset";
8
8
  export declare const EDITOR_BLOCK_CONTROLS_DROP_INDICATOR_GAP = "--editor-block-controls-drop-indicator-gap";
9
9
  export type DropTargetStyle = 'default' | 'remainingHeight';
@@ -1,6 +1,6 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { type AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
3
- import { type DropTargetProps } from './drop-target';
2
+ import type { AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
3
+ import type { DropTargetProps } from './drop-target';
4
4
  export declare const InlineDropTarget: ({ api, nextNode, position, anchorRectCache, getPos, }: DropTargetProps & {
5
5
  anchorRectCache?: AnchorRectCache;
6
6
  position: "left" | "right";
@@ -3,11 +3,11 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
- import { type IntlShape } from 'react-intl-next';
6
+ import type { IntlShape } from 'react-intl-next';
7
7
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
8
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
9
9
  import type { BlockControlsPlugin } from '../blockControlsPluginType';
10
- import { type AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
10
+ import type { AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
11
11
  type Props = {
12
12
  anchorName: string;
13
13
  anchorRectCache?: AnchorRectCache;
@@ -1,4 +1,4 @@
1
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
1
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
2
  type RefreshAnchorNameParams = {
3
3
  anchorName?: string;
4
4
  getPos: () => number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "9.0.23",
3
+ "version": "9.0.25",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -56,8 +56,8 @@
56
56
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
57
57
  "@atlaskit/primitives": "^18.1.0",
58
58
  "@atlaskit/theme": "^22.0.0",
59
- "@atlaskit/tmp-editor-statsig": "^47.0.0",
60
- "@atlaskit/tokens": "^11.3.0",
59
+ "@atlaskit/tmp-editor-statsig": "^48.2.0",
60
+ "@atlaskit/tokens": "^11.4.0",
61
61
  "@atlaskit/tooltip": "^21.0.0",
62
62
  "@babel/runtime": "^7.0.0",
63
63
  "@emotion/react": "^11.7.1",
@@ -67,7 +67,7 @@
67
67
  "uuid": "^3.1.0"
68
68
  },
69
69
  "peerDependencies": {
70
- "@atlaskit/editor-common": "^112.10.0",
70
+ "@atlaskit/editor-common": "^112.12.0",
71
71
  "react": "^18.2.0",
72
72
  "react-dom": "^18.2.0",
73
73
  "react-intl-next": "npm:react-intl@^5.18.1"