@atlaskit/editor-plugin-block-controls 8.4.4 → 8.5.1

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.
@@ -30,6 +30,14 @@ export declare const QUICK_INSERT_DIMENSIONS: {
30
30
  height: number;
31
31
  };
32
32
  export declare const QUICK_INSERT_LEFT_OFFSET = 16;
33
+ export declare const REMIX_BUTTON_HEIGHT = 24;
34
+ export declare const REMIX_BUTTON_WIDTH = 24;
35
+ export declare const REMIX_BUTTON_DIMENSIONS: {
36
+ width: number;
37
+ height: number;
38
+ };
39
+ /** Extra offset to the right for the right-side Remix button (px) */
40
+ export declare const REMIX_BUTTON_RIGHT_OFFSET = 55;
33
41
  export declare const dragHandleGap: (nodeType: string, parentNodeType?: string) => number;
34
42
  export declare const rootElementGap: (nodeType: string) => number;
35
43
  export declare const getNestedNodeLeftPaddingMargin: (nodeType?: string) => "8px" | "16px" | "20px" | "24px" | "28px" | "40px";
@@ -0,0 +1,17 @@
1
+ import { jsx } from '@emotion/react';
2
+ import type { IntlShape } from 'react-intl-next';
3
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
+ import type { BlockControlsPlugin } from '../blockControlsPluginType';
6
+ type RemixButtonProps = {
7
+ anchorName: string;
8
+ api: ExtractInjectionAPI<BlockControlsPlugin>;
9
+ formatMessage: IntlShape['formatMessage'];
10
+ getPos: () => number | undefined;
11
+ nodeType: string;
12
+ rootAnchorName?: string;
13
+ rootNodeType: string;
14
+ view: EditorView;
15
+ };
16
+ export declare const RemixButton: ({ view, api, getPos, anchorName, rootAnchorName, rootNodeType, }: RemixButtonProps) => jsx.JSX.Element;
17
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "8.4.4",
3
+ "version": "8.5.1",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,6 +30,7 @@
30
30
  "dependencies": {
31
31
  "@atlaskit/adf-schema": "^51.5.0",
32
32
  "@atlaskit/browser-apis": "^0.0.1",
33
+ "@atlaskit/button": "^23.9.0",
33
34
  "@atlaskit/editor-plugin-accessibility-utils": "^7.0.0",
34
35
  "@atlaskit/editor-plugin-analytics": "^7.0.0",
35
36
  "@atlaskit/editor-plugin-editor-disabled": "^7.0.0",
@@ -47,6 +48,7 @@
47
48
  "@atlaskit/editor-shared-styles": "^3.10.0",
48
49
  "@atlaskit/editor-tables": "^2.9.0",
49
50
  "@atlaskit/icon": "^31.0.0",
51
+ "@atlaskit/icon-lab": "^5.16.0",
50
52
  "@atlaskit/link": "^3.3.0",
51
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
52
54
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
@@ -54,7 +56,7 @@
54
56
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
55
57
  "@atlaskit/primitives": "^18.0.0",
56
58
  "@atlaskit/theme": "^21.0.0",
57
- "@atlaskit/tmp-editor-statsig": "^29.0.0",
59
+ "@atlaskit/tmp-editor-statsig": "^29.5.0",
58
60
  "@atlaskit/tokens": "^11.0.0",
59
61
  "@atlaskit/tooltip": "^20.14.0",
60
62
  "@babel/runtime": "^7.0.0",
@@ -65,7 +67,7 @@
65
67
  "uuid": "^3.1.0"
66
68
  },
67
69
  "peerDependencies": {
68
- "@atlaskit/editor-common": "^111.16.0",
70
+ "@atlaskit/editor-common": "^111.19.0",
69
71
  "react": "^18.2.0",
70
72
  "react-dom": "^18.2.0",
71
73
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -145,9 +147,6 @@
145
147
  "platform_editor_native_anchor_patch_2": {
146
148
  "type": "boolean"
147
149
  },
148
- "platform_synced_block_patch_2": {
149
- "type": "boolean"
150
- },
151
150
  "platform_editor_selection_sync_fix": {
152
151
  "type": "boolean"
153
152
  }