@atlaskit/editor-plugin-block-menu 7.0.0 → 7.0.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/ui/block-menu.js +11 -2
  3. package/dist/cjs/ui/copy-link.js +2 -0
  4. package/dist/cjs/ui/delete-button.js +2 -0
  5. package/dist/cjs/ui/move-down.js +2 -0
  6. package/dist/cjs/ui/move-up.js +2 -0
  7. package/dist/es2019/ui/block-menu.js +11 -2
  8. package/dist/es2019/ui/copy-link.js +2 -0
  9. package/dist/es2019/ui/delete-button.js +2 -0
  10. package/dist/es2019/ui/move-down.js +2 -0
  11. package/dist/es2019/ui/move-up.js +2 -0
  12. package/dist/esm/ui/block-menu.js +11 -2
  13. package/dist/esm/ui/copy-link.js +2 -0
  14. package/dist/esm/ui/delete-button.js +2 -0
  15. package/dist/esm/ui/move-down.js +2 -0
  16. package/dist/esm/ui/move-up.js +2 -0
  17. package/dist/types/editor-commands/transforms/container-transforms.d.ts +5 -4
  18. package/dist/types/editor-commands/transforms/layout-transforms.d.ts +3 -2
  19. package/dist/types/pm-plugins/experiences/block-menu-experiences.d.ts +1 -1
  20. package/dist/types/pm-plugins/main.d.ts +1 -1
  21. package/dist/types/ui/block-menu.d.ts +3 -3
  22. package/dist/types/ui/copy-link.d.ts +2 -2
  23. package/dist/types/ui/delete-button.d.ts +2 -2
  24. package/dist/types/ui/move-down.d.ts +2 -2
  25. package/dist/types/ui/move-up.d.ts +2 -2
  26. package/dist/types-ts4.5/editor-commands/transforms/container-transforms.d.ts +5 -4
  27. package/dist/types-ts4.5/editor-commands/transforms/layout-transforms.d.ts +3 -2
  28. package/dist/types-ts4.5/pm-plugins/experiences/block-menu-experiences.d.ts +1 -1
  29. package/dist/types-ts4.5/pm-plugins/main.d.ts +1 -1
  30. package/dist/types-ts4.5/ui/block-menu.d.ts +3 -3
  31. package/dist/types-ts4.5/ui/copy-link.d.ts +2 -2
  32. package/dist/types-ts4.5/ui/delete-button.d.ts +2 -2
  33. package/dist/types-ts4.5/ui/move-down.d.ts +2 -2
  34. package/dist/types-ts4.5/ui/move-up.d.ts +2 -2
  35. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugin-block-menu
2
2
 
3
+ ## 7.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 7.0.0
4
10
 
5
11
  ### Patch Changes
@@ -154,7 +154,13 @@ var BlockMenu = function BlockMenu(_ref3) {
154
154
  }
155
155
  setMenuHeight(((_popupRef$current = popupRef.current) === null || _popupRef$current === void 0 ? void 0 : _popupRef$current.clientHeight) || FALLBACK_MENU_HEIGHT);
156
156
  }, [isMenuOpen]);
157
- var hasFocus = (_ref4 = (editorView === null || editorView === void 0 ? void 0 : editorView.hasFocus()) || document.activeElement === targetHandleRef || popupRef.current && (popupRef.current.contains(document.activeElement) || popupRef.current === document.activeElement)) !== null && _ref4 !== void 0 ? _ref4 : false;
157
+ var hasFocus = (_ref4 = (editorView === null || editorView === void 0 ? void 0 : editorView.hasFocus()) ||
158
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
159
+ document.activeElement === targetHandleRef || popupRef.current && (
160
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
161
+ popupRef.current.contains(document.activeElement) ||
162
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
163
+ popupRef.current === document.activeElement)) !== null && _ref4 !== void 0 ? _ref4 : false;
158
164
  var selectedByShortcutOrDragHandle = !!isSelectedViaDragHandle || !!openedViaKeyboard;
159
165
 
160
166
  // Use conditional hook based on feature flag
@@ -261,4 +267,7 @@ var BlockMenu = function BlockMenu(_ref3) {
261
267
  setRef: setRef
262
268
  })));
263
269
  };
264
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(BlockMenu);
270
+
271
+ // eslint-disable-next-line @typescript-eslint/ban-types
272
+ var _default_1 = (0, _reactIntlNext.injectIntl)(BlockMenu);
273
+ var _default = exports.default = _default_1;
@@ -112,4 +112,6 @@ var CopyLinkDropdownItemContent = function CopyLinkDropdownItemContent(_ref) {
112
112
  testId: _blockMenu.BLOCK_MENU_ACTION_TEST_ID.COPY_LINK
113
113
  }, formatMessage(message));
114
114
  };
115
+
116
+ // eslint-disable-next-line @typescript-eslint/ban-types
115
117
  var CopyLinkDropdownItem = exports.CopyLinkDropdownItem = (0, _reactIntlNext.injectIntl)(CopyLinkDropdownItemContent);
@@ -120,4 +120,6 @@ var DeleteDropdownItemContent = function DeleteDropdownItemContent(_ref) {
120
120
  color: "color.text.danger"
121
121
  }, formatMessage(_messages.blockMenuMessages.deleteBlock))));
122
122
  };
123
+
124
+ // eslint-disable-next-line @typescript-eslint/ban-types
123
125
  var DeleteDropdownItem = exports.DeleteDropdownItem = (0, _reactIntlNext.injectIntl)(DeleteDropdownItemContent);
@@ -84,4 +84,6 @@ var MoveDownDropdownItemContent = function MoveDownDropdownItemContent(_ref) {
84
84
  testId: _blockMenu.BLOCK_MENU_ACTION_TEST_ID.MOVE_DOWN
85
85
  }, formatMessage(_messages.blockMenuMessages.moveDownBlock));
86
86
  };
87
+
88
+ // eslint-disable-next-line @typescript-eslint/ban-types
87
89
  var MoveDownDropdownItem = exports.MoveDownDropdownItem = (0, _reactIntlNext.injectIntl)(MoveDownDropdownItemContent);
@@ -82,4 +82,6 @@ var MoveUpDropdownItemContent = function MoveUpDropdownItemContent(_ref) {
82
82
  testId: _blockMenu.BLOCK_MENU_ACTION_TEST_ID.MOVE_UP
83
83
  }, formatMessage(_messages.blockMenuMessages.moveUpBlock));
84
84
  };
85
+
86
+ // eslint-disable-next-line @typescript-eslint/ban-types
85
87
  var MoveUpDropdownItem = exports.MoveUpDropdownItem = (0, _reactIntlNext.injectIntl)(MoveUpDropdownItemContent);
@@ -145,7 +145,13 @@ const BlockMenu = ({
145
145
  }
146
146
  setMenuHeight(((_popupRef$current = popupRef.current) === null || _popupRef$current === void 0 ? void 0 : _popupRef$current.clientHeight) || FALLBACK_MENU_HEIGHT);
147
147
  }, [isMenuOpen]);
148
- const hasFocus = (_ref = (editorView === null || editorView === void 0 ? void 0 : editorView.hasFocus()) || document.activeElement === targetHandleRef || popupRef.current && (popupRef.current.contains(document.activeElement) || popupRef.current === document.activeElement)) !== null && _ref !== void 0 ? _ref : false;
148
+ const hasFocus = (_ref = (editorView === null || editorView === void 0 ? void 0 : editorView.hasFocus()) ||
149
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
150
+ document.activeElement === targetHandleRef || popupRef.current && (
151
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
152
+ popupRef.current.contains(document.activeElement) ||
153
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
154
+ popupRef.current === document.activeElement)) !== null && _ref !== void 0 ? _ref : false;
149
155
  const selectedByShortcutOrDragHandle = !!isSelectedViaDragHandle || !!openedViaKeyboard;
150
156
 
151
157
  // Use conditional hook based on feature flag
@@ -253,4 +259,7 @@ const BlockMenu = ({
253
259
  setRef: setRef
254
260
  })));
255
261
  };
256
- export default injectIntl(BlockMenu);
262
+
263
+ // eslint-disable-next-line @typescript-eslint/ban-types
264
+ const _default_1 = injectIntl(BlockMenu);
265
+ export default _default_1;
@@ -111,4 +111,6 @@ const CopyLinkDropdownItemContent = ({
111
111
  testId: BLOCK_MENU_ACTION_TEST_ID.COPY_LINK
112
112
  }, formatMessage(message));
113
113
  };
114
+
115
+ // eslint-disable-next-line @typescript-eslint/ban-types
114
116
  export const CopyLinkDropdownItem = injectIntl(CopyLinkDropdownItemContent);
@@ -116,4 +116,6 @@ const DeleteDropdownItemContent = ({
116
116
  color: "color.text.danger"
117
117
  }, formatMessage(blockMenuMessages.deleteBlock))));
118
118
  };
119
+
120
+ // eslint-disable-next-line @typescript-eslint/ban-types
119
121
  export const DeleteDropdownItem = injectIntl(DeleteDropdownItemContent);
@@ -81,4 +81,6 @@ const MoveDownDropdownItemContent = ({
81
81
  testId: BLOCK_MENU_ACTION_TEST_ID.MOVE_DOWN
82
82
  }, formatMessage(messages.moveDownBlock));
83
83
  };
84
+
85
+ // eslint-disable-next-line @typescript-eslint/ban-types
84
86
  export const MoveDownDropdownItem = injectIntl(MoveDownDropdownItemContent);
@@ -79,4 +79,6 @@ const MoveUpDropdownItemContent = ({
79
79
  testId: BLOCK_MENU_ACTION_TEST_ID.MOVE_UP
80
80
  }, formatMessage(messages.moveUpBlock));
81
81
  };
82
+
83
+ // eslint-disable-next-line @typescript-eslint/ban-types
82
84
  export const MoveUpDropdownItem = injectIntl(MoveUpDropdownItemContent);
@@ -145,7 +145,13 @@ var BlockMenu = function BlockMenu(_ref3) {
145
145
  }
146
146
  setMenuHeight(((_popupRef$current = popupRef.current) === null || _popupRef$current === void 0 ? void 0 : _popupRef$current.clientHeight) || FALLBACK_MENU_HEIGHT);
147
147
  }, [isMenuOpen]);
148
- var hasFocus = (_ref4 = (editorView === null || editorView === void 0 ? void 0 : editorView.hasFocus()) || document.activeElement === targetHandleRef || popupRef.current && (popupRef.current.contains(document.activeElement) || popupRef.current === document.activeElement)) !== null && _ref4 !== void 0 ? _ref4 : false;
148
+ var hasFocus = (_ref4 = (editorView === null || editorView === void 0 ? void 0 : editorView.hasFocus()) ||
149
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
150
+ document.activeElement === targetHandleRef || popupRef.current && (
151
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
152
+ popupRef.current.contains(document.activeElement) ||
153
+ // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
154
+ popupRef.current === document.activeElement)) !== null && _ref4 !== void 0 ? _ref4 : false;
149
155
  var selectedByShortcutOrDragHandle = !!isSelectedViaDragHandle || !!openedViaKeyboard;
150
156
 
151
157
  // Use conditional hook based on feature flag
@@ -252,4 +258,7 @@ var BlockMenu = function BlockMenu(_ref3) {
252
258
  setRef: setRef
253
259
  })));
254
260
  };
255
- export default injectIntl(BlockMenu);
261
+
262
+ // eslint-disable-next-line @typescript-eslint/ban-types
263
+ var _default_1 = injectIntl(BlockMenu);
264
+ export default _default_1;
@@ -103,4 +103,6 @@ var CopyLinkDropdownItemContent = function CopyLinkDropdownItemContent(_ref) {
103
103
  testId: BLOCK_MENU_ACTION_TEST_ID.COPY_LINK
104
104
  }, formatMessage(message));
105
105
  };
106
+
107
+ // eslint-disable-next-line @typescript-eslint/ban-types
106
108
  export var CopyLinkDropdownItem = injectIntl(CopyLinkDropdownItemContent);
@@ -111,4 +111,6 @@ var DeleteDropdownItemContent = function DeleteDropdownItemContent(_ref) {
111
111
  color: "color.text.danger"
112
112
  }, formatMessage(blockMenuMessages.deleteBlock))));
113
113
  };
114
+
115
+ // eslint-disable-next-line @typescript-eslint/ban-types
114
116
  export var DeleteDropdownItem = injectIntl(DeleteDropdownItemContent);
@@ -75,4 +75,6 @@ var MoveDownDropdownItemContent = function MoveDownDropdownItemContent(_ref) {
75
75
  testId: BLOCK_MENU_ACTION_TEST_ID.MOVE_DOWN
76
76
  }, formatMessage(messages.moveDownBlock));
77
77
  };
78
+
79
+ // eslint-disable-next-line @typescript-eslint/ban-types
78
80
  export var MoveDownDropdownItem = injectIntl(MoveDownDropdownItemContent);
@@ -73,4 +73,6 @@ var MoveUpDropdownItemContent = function MoveUpDropdownItemContent(_ref) {
73
73
  testId: BLOCK_MENU_ACTION_TEST_ID.MOVE_UP
74
74
  }, formatMessage(messages.moveUpBlock));
75
75
  };
76
+
77
+ // eslint-disable-next-line @typescript-eslint/ban-types
76
78
  export var MoveUpDropdownItem = injectIntl(MoveUpDropdownItemContent);
@@ -1,9 +1,10 @@
1
1
  import type { TransformContext } from '@atlaskit/editor-common/transforms';
2
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
3
  import type { TransformFunction } from './types';
3
4
  /**
4
5
  * Transform selection to container type
5
6
  */
6
- export declare const transformToContainer: ({ tr, sourceNode, targetNodeType, targetAttrs, }: TransformContext) => import("prosemirror-state").Transaction | null;
7
+ export declare const transformToContainer: ({ tr, sourceNode, targetNodeType, targetAttrs, }: TransformContext) => Transaction | null;
7
8
  /**
8
9
  * Transform container nodes (panel, expand, blockquote)
9
10
  */
@@ -11,9 +12,9 @@ export declare const transformContainerNode: TransformFunction;
11
12
  /**
12
13
  * Unwrap container node and convert content to block type
13
14
  */
14
- export declare const unwrapAndConvertToBlockType: (context: TransformContext) => import("prosemirror-state").Transaction;
15
+ export declare const unwrapAndConvertToBlockType: (context: TransformContext) => Transaction;
15
16
  /**
16
17
  * Unwrap container node and convert content to list
17
18
  */
18
- export declare const unwrapAndConvertToList: ({ tr, sourceNode, sourcePos, targetNodeType, targetAttrs, }: TransformContext) => import("prosemirror-state").Transaction | null;
19
- export declare const transformBetweenContainerTypes: (context: TransformContext) => import("prosemirror-state").Transaction;
19
+ export declare const unwrapAndConvertToList: ({ tr, sourceNode, sourcePos, targetNodeType, targetAttrs, }: TransformContext) => Transaction | null;
20
+ export declare const transformBetweenContainerTypes: (context: TransformContext) => Transaction;
@@ -1,6 +1,7 @@
1
1
  import type { TransformContext } from '@atlaskit/editor-common/transforms';
2
2
  import type { Mark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import { type Schema } from '@atlaskit/editor-prosemirror/model';
4
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
4
5
  export declare const createDefaultLayoutSection: (schema: Schema, content: PMNode, marks?: readonly Mark[]) => PMNode;
5
- export declare const convertToLayout: (context: TransformContext) => import("prosemirror-state").Transaction;
6
- export declare const transformLayoutNode: (context: TransformContext) => import("prosemirror-state").Transaction;
6
+ export declare const convertToLayout: (context: TransformContext) => Transaction;
7
+ export declare const transformLayoutNode: (context: TransformContext) => Transaction;
@@ -6,5 +6,5 @@ type ExperienceOptions = {
6
6
  popupsMountPoint?: HTMLElement;
7
7
  };
8
8
  };
9
- export declare const getBlockMenuExperiencesPlugin: ({ refs, dispatchAnalyticsEvent, }: ExperienceOptions) => SafePlugin<any>;
9
+ export declare const getBlockMenuExperiencesPlugin: ({ refs, dispatchAnalyticsEvent, }: ExperienceOptions) => SafePlugin;
10
10
  export {};
@@ -2,7 +2,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { BlockMenuPlugin, FLAG_ID } from '../blockMenuPluginType';
5
- export declare const blockMenuPluginKey: PluginKey<any>;
5
+ export declare const blockMenuPluginKey: PluginKey;
6
6
  type BlockMenuPluginState = {
7
7
  showFlag: FLAG_ID | false;
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } 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 { BlockMenuPlugin } from '../blockMenuPluginType';
@@ -10,7 +10,7 @@ export type BlockMenuProps = {
10
10
  mountTo?: HTMLElement;
11
11
  scrollableElement?: HTMLElement;
12
12
  };
13
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<BlockMenuProps & WrappedComponentProps>> & {
13
+ declare const _default_1: React.FC<WithIntlProps<BlockMenuProps & WrappedComponentProps>> & {
14
14
  WrappedComponent: React.ComponentType<BlockMenuProps & WrappedComponentProps>;
15
15
  };
16
- export default _default;
16
+ export default _default_1;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin, BlockMenuPluginOptions } from '../blockMenuPluginType';
5
5
  type Props = {
6
6
  api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
7
  config: BlockMenuPluginOptions | undefined;
8
8
  };
9
- export declare const CopyLinkDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
+ export declare const CopyLinkDropdownItem: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
10
10
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
12
  export {};
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
5
  type Props = {
6
6
  api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
7
  } & WrappedComponentProps;
8
- export declare const DeleteDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
8
+ export declare const DeleteDropdownItem: React.FC<WithIntlProps<Props>> & {
9
9
  WrappedComponent: React.ComponentType<Props>;
10
10
  };
11
11
  export {};
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
5
  type Props = {
6
6
  api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
7
  };
8
- export declare const MoveDownDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ export declare const MoveDownDropdownItem: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
10
  };
11
11
  export {};
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
5
  type Props = {
6
6
  api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
7
  };
8
- export declare const MoveUpDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ export declare const MoveUpDropdownItem: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
10
  };
11
11
  export {};
@@ -1,9 +1,10 @@
1
1
  import type { TransformContext } from '@atlaskit/editor-common/transforms';
2
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
3
  import type { TransformFunction } from './types';
3
4
  /**
4
5
  * Transform selection to container type
5
6
  */
6
- export declare const transformToContainer: ({ tr, sourceNode, targetNodeType, targetAttrs, }: TransformContext) => import("prosemirror-state").Transaction | null;
7
+ export declare const transformToContainer: ({ tr, sourceNode, targetNodeType, targetAttrs, }: TransformContext) => Transaction | null;
7
8
  /**
8
9
  * Transform container nodes (panel, expand, blockquote)
9
10
  */
@@ -11,9 +12,9 @@ export declare const transformContainerNode: TransformFunction;
11
12
  /**
12
13
  * Unwrap container node and convert content to block type
13
14
  */
14
- export declare const unwrapAndConvertToBlockType: (context: TransformContext) => import("prosemirror-state").Transaction;
15
+ export declare const unwrapAndConvertToBlockType: (context: TransformContext) => Transaction;
15
16
  /**
16
17
  * Unwrap container node and convert content to list
17
18
  */
18
- export declare const unwrapAndConvertToList: ({ tr, sourceNode, sourcePos, targetNodeType, targetAttrs, }: TransformContext) => import("prosemirror-state").Transaction | null;
19
- export declare const transformBetweenContainerTypes: (context: TransformContext) => import("prosemirror-state").Transaction;
19
+ export declare const unwrapAndConvertToList: ({ tr, sourceNode, sourcePos, targetNodeType, targetAttrs, }: TransformContext) => Transaction | null;
20
+ export declare const transformBetweenContainerTypes: (context: TransformContext) => Transaction;
@@ -1,6 +1,7 @@
1
1
  import type { TransformContext } from '@atlaskit/editor-common/transforms';
2
2
  import type { Mark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import { type Schema } from '@atlaskit/editor-prosemirror/model';
4
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
4
5
  export declare const createDefaultLayoutSection: (schema: Schema, content: PMNode, marks?: readonly Mark[]) => PMNode;
5
- export declare const convertToLayout: (context: TransformContext) => import("prosemirror-state").Transaction;
6
- export declare const transformLayoutNode: (context: TransformContext) => import("prosemirror-state").Transaction;
6
+ export declare const convertToLayout: (context: TransformContext) => Transaction;
7
+ export declare const transformLayoutNode: (context: TransformContext) => Transaction;
@@ -6,5 +6,5 @@ type ExperienceOptions = {
6
6
  popupsMountPoint?: HTMLElement;
7
7
  };
8
8
  };
9
- export declare const getBlockMenuExperiencesPlugin: ({ refs, dispatchAnalyticsEvent, }: ExperienceOptions) => SafePlugin<any>;
9
+ export declare const getBlockMenuExperiencesPlugin: ({ refs, dispatchAnalyticsEvent, }: ExperienceOptions) => SafePlugin;
10
10
  export {};
@@ -2,7 +2,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { BlockMenuPlugin, FLAG_ID } from '../blockMenuPluginType';
5
- export declare const blockMenuPluginKey: PluginKey<any>;
5
+ export declare const blockMenuPluginKey: PluginKey;
6
6
  type BlockMenuPluginState = {
7
7
  showFlag: FLAG_ID | false;
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } 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 { BlockMenuPlugin } from '../blockMenuPluginType';
@@ -10,7 +10,7 @@ export type BlockMenuProps = {
10
10
  mountTo?: HTMLElement;
11
11
  scrollableElement?: HTMLElement;
12
12
  };
13
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<BlockMenuProps & WrappedComponentProps>> & {
13
+ declare const _default_1: React.FC<WithIntlProps<BlockMenuProps & WrappedComponentProps>> & {
14
14
  WrappedComponent: React.ComponentType<BlockMenuProps & WrappedComponentProps>;
15
15
  };
16
- export default _default;
16
+ export default _default_1;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin, BlockMenuPluginOptions } from '../blockMenuPluginType';
5
5
  type Props = {
6
6
  api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
7
  config: BlockMenuPluginOptions | undefined;
8
8
  };
9
- export declare const CopyLinkDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
+ export declare const CopyLinkDropdownItem: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
10
10
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
12
  export {};
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
5
  type Props = {
6
6
  api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
7
  } & WrappedComponentProps;
8
- export declare const DeleteDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
8
+ export declare const DeleteDropdownItem: React.FC<WithIntlProps<Props>> & {
9
9
  WrappedComponent: React.ComponentType<Props>;
10
10
  };
11
11
  export {};
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
5
  type Props = {
6
6
  api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
7
  };
8
- export declare const MoveDownDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ export declare const MoveDownDropdownItem: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
10
  };
11
11
  export {};
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
5
  type Props = {
6
6
  api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
7
  };
8
- export declare const MoveUpDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ export declare const MoveUpDropdownItem: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
10
  };
11
11
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/primitives": "^18.0.0",
46
46
  "@atlaskit/prosemirror-history": "^0.2.0",
47
- "@atlaskit/tmp-editor-statsig": "^35.10.0",
47
+ "@atlaskit/tmp-editor-statsig": "^36.0.0",
48
48
  "@atlaskit/tokens": "^11.1.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "bind-event-listener": "^3.0.0"