@atlaskit/editor-plugin-block-controls 1.9.0 → 1.10.0

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.
@@ -2,6 +2,9 @@ export declare const DRAG_HANDLE_HEIGHT = 24;
2
2
  export declare const DRAG_HANDLE_WIDTH = 12;
3
3
  export declare const DRAG_HANDLE_BORDER_RADIUS = 4;
4
4
  export declare const DRAG_HANDLE_ZINDEX: number;
5
+ export declare const DRAG_HANDLE_DEFAULT_GAP = 8;
6
+ export declare const DRAG_HANDLE_MAX_GAP = 12;
7
+ export declare const DRAG_HANDLE_MAX_WIDTH_PLUS_GAP: number;
5
8
  export declare const DRAG_HANDLE_DIVIDER_TOP_ADJUSTMENT: number;
6
9
  export declare const dragHandleGap: (nodeType: string) => 8 | 12;
7
10
  export declare const topPositionAdjustment: (nodeType: string) => number;
@@ -2,9 +2,9 @@ import { jsx } from '@emotion/react';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { BlockControlsPlugin } from '../types';
5
- export declare const DropTarget: ({ api, index, prevNode, nextNode, }: {
5
+ export declare const DropTarget: ({ api, id, prevNode, nextNode, }: {
6
6
  api: ExtractInjectionAPI<BlockControlsPlugin> | undefined;
7
- index: number;
7
+ id: number;
8
8
  prevNode?: PMNode | undefined;
9
9
  nextNode?: PMNode | undefined;
10
10
  }) => jsx.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^40.3.0",
35
- "@atlaskit/editor-common": "^86.8.0",
35
+ "@atlaskit/editor-common": "^87.0.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.6.0",
37
37
  "@atlaskit/editor-plugin-editor-disabled": "^1.2.0",
38
38
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
@@ -169,6 +169,9 @@
169
169
  },
170
170
  "platform_editor_element_drag_and_drop_ed_24372": {
171
171
  "type": "boolean"
172
+ },
173
+ "platform_editor_elements_dnd_nested": {
174
+ "type": "boolean"
172
175
  }
173
176
  }
174
177
  }