@atlaskit/editor-plugin-block-controls 2.13.28 → 2.13.29
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 +8 -0
- package/dist/cjs/{plugin.js → blockControlsPlugin.js} +3 -3
- package/dist/cjs/{commands → editor-commands}/move-node.js +5 -5
- package/dist/cjs/{commands → editor-commands}/move-to-layout.js +4 -4
- package/dist/cjs/{commands → editor-commands}/show-drag-handle.js +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/pm-plugins/decorations-anchor.js +1 -1
- package/dist/cjs/pm-plugins/decorations-drop-target.js +9 -9
- package/dist/cjs/pm-plugins/handle-mouse-over.js +1 -1
- package/dist/cjs/pm-plugins/keymap.js +3 -3
- package/dist/cjs/pm-plugins/main.js +5 -5
- package/dist/cjs/{consts.js → pm-plugins/utils/consts.js} +1 -1
- package/dist/cjs/{utils → pm-plugins/utils}/drag-handle-positions.js +1 -1
- package/dist/cjs/{utils → pm-plugins/utils}/inline-drop-target.js +1 -1
- package/dist/cjs/{utils → pm-plugins/utils}/remove-from-source.js +1 -1
- package/dist/cjs/{utils → pm-plugins/utils}/update-column-widths.js +1 -1
- package/dist/cjs/{utils → pm-plugins/utils}/validation.js +1 -1
- package/dist/cjs/ui/drag-handle.js +3 -3
- package/dist/cjs/ui/drop-target-layout.js +3 -3
- package/dist/cjs/ui/drop-target-v2.js +5 -5
- package/dist/cjs/ui/drop-target.js +2 -2
- package/dist/cjs/ui/inline-drop-target.js +4 -4
- package/dist/es2019/{plugin.js → blockControlsPlugin.js} +3 -3
- package/dist/es2019/{commands → editor-commands}/move-node.js +5 -5
- package/dist/es2019/{commands → editor-commands}/move-to-layout.js +4 -4
- package/dist/es2019/{commands → editor-commands}/show-drag-handle.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/pm-plugins/decorations-anchor.js +1 -1
- package/dist/es2019/pm-plugins/decorations-drop-target.js +4 -4
- package/dist/es2019/pm-plugins/handle-mouse-over.js +1 -1
- package/dist/es2019/pm-plugins/keymap.js +3 -3
- package/dist/es2019/pm-plugins/main.js +5 -5
- package/dist/es2019/{consts.js → pm-plugins/utils/consts.js} +1 -1
- package/dist/es2019/{utils → pm-plugins/utils}/drag-handle-positions.js +1 -1
- package/dist/es2019/{utils → pm-plugins/utils}/inline-drop-target.js +1 -1
- package/dist/es2019/{utils → pm-plugins/utils}/remove-from-source.js +1 -1
- package/dist/es2019/{utils → pm-plugins/utils}/update-column-widths.js +1 -1
- package/dist/es2019/{utils → pm-plugins/utils}/validation.js +1 -1
- package/dist/es2019/ui/drag-handle.js +3 -3
- package/dist/es2019/ui/drop-target-layout.js +3 -3
- package/dist/es2019/ui/drop-target-v2.js +5 -5
- package/dist/es2019/ui/drop-target.js +2 -2
- package/dist/es2019/ui/inline-drop-target.js +4 -4
- package/dist/esm/{plugin.js → blockControlsPlugin.js} +3 -3
- package/dist/esm/{commands → editor-commands}/move-node.js +5 -5
- package/dist/esm/{commands → editor-commands}/move-to-layout.js +4 -4
- package/dist/esm/{commands → editor-commands}/show-drag-handle.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/pm-plugins/decorations-anchor.js +1 -1
- package/dist/esm/pm-plugins/decorations-drop-target.js +4 -4
- package/dist/esm/pm-plugins/handle-mouse-over.js +1 -1
- package/dist/esm/pm-plugins/keymap.js +3 -3
- package/dist/esm/pm-plugins/main.js +5 -5
- package/dist/esm/{consts.js → pm-plugins/utils/consts.js} +1 -1
- package/dist/esm/{utils → pm-plugins/utils}/drag-handle-positions.js +1 -1
- package/dist/esm/{utils → pm-plugins/utils}/inline-drop-target.js +1 -1
- package/dist/esm/{utils → pm-plugins/utils}/remove-from-source.js +1 -1
- package/dist/esm/{utils → pm-plugins/utils}/update-column-widths.js +1 -1
- package/dist/esm/{utils → pm-plugins/utils}/validation.js +1 -1
- package/dist/esm/ui/drag-handle.js +3 -3
- package/dist/esm/ui/drop-target-layout.js +3 -3
- package/dist/esm/ui/drop-target-v2.js +5 -5
- package/dist/esm/ui/drop-target.js +2 -2
- package/dist/esm/ui/inline-drop-target.js +4 -4
- package/dist/types/blockControlsPlugin.d.ts +2 -0
- package/dist/types/{commands → editor-commands}/move-node.d.ts +2 -2
- package/dist/types/{commands → editor-commands}/move-to-layout.d.ts +1 -1
- package/dist/types/{commands → editor-commands}/show-drag-handle.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/pm-plugins/decorations-drag-handle.d.ts +1 -1
- package/dist/types/pm-plugins/decorations-drop-target.d.ts +2 -2
- package/dist/types/pm-plugins/handle-mouse-over.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/{utils → pm-plugins/utils}/active-anchor-tracker.d.ts +1 -1
- package/dist/types/{consts.d.ts → pm-plugins/utils/consts.d.ts} +1 -1
- package/dist/{types-ts4.5 → types/pm-plugins}/utils/inline-drop-target.d.ts +1 -1
- package/dist/types/ui/drag-handle-menu.d.ts +1 -1
- package/dist/types/ui/drag-handle.d.ts +1 -1
- package/dist/types/ui/drop-target-layout.d.ts +2 -2
- package/dist/types/ui/drop-target-v2.d.ts +1 -1
- package/dist/types/ui/drop-target.d.ts +1 -1
- package/dist/types/ui/inline-drop-target.d.ts +1 -1
- package/dist/types-ts4.5/blockControlsPlugin.d.ts +2 -0
- package/dist/types-ts4.5/{commands → editor-commands}/move-node.d.ts +2 -2
- package/dist/types-ts4.5/{commands → editor-commands}/move-to-layout.d.ts +1 -1
- package/dist/types-ts4.5/{commands → editor-commands}/show-drag-handle.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/decorations-drag-handle.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/decorations-drop-target.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/handle-mouse-over.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/keymap.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/{utils → pm-plugins/utils}/active-anchor-tracker.d.ts +1 -1
- package/dist/types-ts4.5/{consts.d.ts → pm-plugins/utils/consts.d.ts} +1 -1
- package/dist/{types → types-ts4.5/pm-plugins}/utils/inline-drop-target.d.ts +1 -1
- package/dist/types-ts4.5/ui/drag-handle-menu.d.ts +1 -1
- package/dist/types-ts4.5/ui/drag-handle.d.ts +1 -1
- package/dist/types-ts4.5/ui/drop-target-layout.d.ts +2 -2
- package/dist/types-ts4.5/ui/drop-target-v2.d.ts +1 -1
- package/dist/types-ts4.5/ui/drop-target.d.ts +1 -1
- package/dist/types-ts4.5/ui/inline-drop-target.d.ts +1 -1
- package/package.json +7 -4
- package/dist/types/plugin.d.ts +0 -2
- package/dist/types-ts4.5/plugin.d.ts +0 -2
- /package/dist/cjs/{types.js → blockControlsPluginType.js} +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/active-anchor-tracker.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/advanced-layouts-flags.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/anchor-utils.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/check-media-layout.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/drag-target-debug.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/getNestedNodePosition.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/getSelection.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/index.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/transactions.js +0 -0
- /package/dist/es2019/{types.js → blockControlsPluginType.js} +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/active-anchor-tracker.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/advanced-layouts-flags.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/anchor-utils.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/check-media-layout.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/drag-target-debug.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/getNestedNodePosition.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/getSelection.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/index.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/transactions.js +0 -0
- /package/dist/esm/{types.js → blockControlsPluginType.js} +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/active-anchor-tracker.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/advanced-layouts-flags.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/anchor-utils.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/check-media-layout.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/drag-target-debug.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/getNestedNodePosition.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/getSelection.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/index.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/transactions.js +0 -0
- /package/dist/types/{types.d.ts → blockControlsPluginType.d.ts} +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/advanced-layouts-flags.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/anchor-utils.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/check-media-layout.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/drag-handle-positions.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/drag-target-debug.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/getNestedNodePosition.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/getSelection.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/index.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/remove-from-source.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/transactions.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/update-column-widths.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/validation.d.ts +0 -0
- /package/dist/types-ts4.5/{types.d.ts → blockControlsPluginType.d.ts} +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/advanced-layouts-flags.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/anchor-utils.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/check-media-layout.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/drag-handle-positions.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/drag-target-debug.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/getNestedNodePosition.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/getSelection.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/index.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/remove-from-source.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/transactions.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/update-column-widths.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/validation.d.ts +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { type ActiveNode } from '
|
|
2
|
+
import { type ActiveNode } from '../../blockControlsPluginType';
|
|
3
3
|
export declare const shouldAllowInlineDropTarget: (isNested: boolean, node?: PMNode, isSameLayout?: boolean, activeNode?: ActiveNode) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { BlockControlsPlugin } from '../
|
|
3
|
+
import type { BlockControlsPlugin } from '../blockControlsPluginType';
|
|
4
4
|
export declare const DragHandleMenu: ({ api, }: {
|
|
5
5
|
api: ExtractInjectionAPI<BlockControlsPlugin> | undefined;
|
|
6
6
|
}) => JSX.Element | null;
|
|
@@ -2,7 +2,7 @@ import { jsx } from '@emotion/react';
|
|
|
2
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
|
-
import type { BlockControlsPlugin, HandleOptions } from '../
|
|
5
|
+
import type { BlockControlsPlugin, HandleOptions } from '../blockControlsPluginType';
|
|
6
6
|
export declare const DragHandle: ({ view, api, formatMessage, getPos, anchorName, nodeType, handleOptions, isTopLevelNode, }: {
|
|
7
7
|
view: EditorView;
|
|
8
8
|
api: ExtractInjectionAPI<BlockControlsPlugin> | undefined;
|
|
@@ -2,8 +2,8 @@ import { jsx } from '@emotion/react';
|
|
|
2
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
|
-
import type { BlockControlsPlugin } from '../
|
|
6
|
-
import { type AnchorRectCache } from '../utils/anchor-utils';
|
|
5
|
+
import type { BlockControlsPlugin } from '../blockControlsPluginType';
|
|
6
|
+
import { type AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
|
|
7
7
|
export type DropTargetLayoutProps = {
|
|
8
8
|
api: ExtractInjectionAPI<BlockControlsPlugin> | undefined;
|
|
9
9
|
getPos: () => number | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { type AnchorRectCache } from '../utils/anchor-utils';
|
|
2
|
+
import { type AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
|
|
3
3
|
import { type DropTargetProps } from './drop-target';
|
|
4
4
|
export declare const EDITOR_BLOCK_CONTROLS_DROP_INDICATOR_OFFSET = "--editor-block-controls-drop-indicator-offset";
|
|
5
5
|
export declare const EDITOR_BLOCK_CONTROLS_DROP_INDICATOR_GAP = "--editor-block-controls-drop-indicator-gap";
|
|
@@ -2,7 +2,7 @@ import { jsx } from '@emotion/react';
|
|
|
2
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
|
-
import type { BlockControlsPlugin } from '../
|
|
5
|
+
import type { BlockControlsPlugin } from '../blockControlsPluginType';
|
|
6
6
|
export type DropTargetStyle = 'default' | 'remainingHeight';
|
|
7
7
|
export type DropTargetProps = {
|
|
8
8
|
api: ExtractInjectionAPI<BlockControlsPlugin> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { type AnchorRectCache } from '../utils/anchor-utils';
|
|
2
|
+
import { type AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
|
|
3
3
|
import { type DropTargetProps } from './drop-target';
|
|
4
4
|
export declare const InlineDropTarget: ({ api, nextNode, position, anchorRectCache, getPos, }: DropTargetProps & {
|
|
5
5
|
anchorRectCache?: AnchorRectCache | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.29",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
34
|
-
"@atlaskit/editor-common": "^95.
|
|
34
|
+
"@atlaskit/editor-common": "^95.10.0",
|
|
35
35
|
"@atlaskit/editor-plugin-accessibility-utils": "^1.2.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
|
|
38
38
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
39
39
|
"@atlaskit/editor-plugin-quick-insert": "^1.7.0",
|
|
40
40
|
"@atlaskit/editor-plugin-width": "^1.3.0",
|
|
41
|
-
"@atlaskit/editor-prosemirror": "6.
|
|
41
|
+
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
43
43
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
44
|
-
"@atlaskit/icon": "^22.
|
|
44
|
+
"@atlaskit/icon": "^22.28.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
46
46
|
"@atlaskit/pragmatic-drag-and-drop": "^1.4.0",
|
|
47
47
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^1.4.0",
|
|
@@ -70,6 +70,9 @@
|
|
|
70
70
|
],
|
|
71
71
|
"circular-dependencies": [
|
|
72
72
|
"file-and-folder-level"
|
|
73
|
+
],
|
|
74
|
+
"code-structure": [
|
|
75
|
+
"editor-plugin"
|
|
73
76
|
]
|
|
74
77
|
},
|
|
75
78
|
"@repo/internal": {
|
package/dist/types/plugin.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|