@atlaskit/editor-plugin-block-menu 0.0.11 → 0.0.12

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/editor-plugin-block-menu
2
2
 
3
+ ## 0.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2d45ff8531e21`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2d45ff8531e21) -
8
+ Update move up and down registration and move blockMenuPlugin up in the fullPagePreset.
9
+
3
10
  ## 0.0.11
4
11
 
5
12
  ### Patch Changes
@@ -18,10 +18,6 @@ var _deleteButton = require("./delete-button");
18
18
  var _moveDown = require("./move-down");
19
19
  var _moveUp = require("./move-up");
20
20
  var getMoveUpMoveDownMenuComponents = function getMoveUpMoveDownMenuComponents(api) {
21
- var _api$blockControls;
22
- if (!(api !== null && api !== void 0 && (_api$blockControls = api.blockControls) !== null && _api$blockControls !== void 0 && _api$blockControls.commands.moveNode)) {
23
- return [];
24
- }
25
21
  return [{
26
22
  type: 'block-menu-item',
27
23
  key: 'block-menu-item-move-up',
@@ -10,10 +10,6 @@ import { DeleteDropdownItem } from './delete-button';
10
10
  import { MoveDownDropdownItem } from './move-down';
11
11
  import { MoveUpDropdownItem } from './move-up';
12
12
  const getMoveUpMoveDownMenuComponents = api => {
13
- var _api$blockControls;
14
- if (!(api !== null && api !== void 0 && (_api$blockControls = api.blockControls) !== null && _api$blockControls !== void 0 && _api$blockControls.commands.moveNode)) {
15
- return [];
16
- }
17
13
  return [{
18
14
  type: 'block-menu-item',
19
15
  key: 'block-menu-item-move-up',
@@ -11,10 +11,6 @@ import { DeleteDropdownItem } from './delete-button';
11
11
  import { MoveDownDropdownItem } from './move-down';
12
12
  import { MoveUpDropdownItem } from './move-up';
13
13
  var getMoveUpMoveDownMenuComponents = function getMoveUpMoveDownMenuComponents(api) {
14
- var _api$blockControls;
15
- if (!(api !== null && api !== void 0 && (_api$blockControls = api.blockControls) !== null && _api$blockControls !== void 0 && _api$blockControls.commands.moveNode)) {
16
- return [];
17
- }
18
14
  return [{
19
15
  type: 'block-menu-item',
20
16
  key: 'block-menu-item-move-up',
@@ -3,7 +3,7 @@ import type { 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
- api: ExtractInjectionAPI<BlockMenuPlugin>;
6
+ api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
7
  };
8
8
  export declare const MoveDownDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
@@ -3,7 +3,7 @@ import type { 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
- api: ExtractInjectionAPI<BlockMenuPlugin>;
6
+ api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
7
  };
8
8
  export declare const MoveUpDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
@@ -3,7 +3,7 @@ import type { 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
- api: ExtractInjectionAPI<BlockMenuPlugin>;
6
+ api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
7
  };
8
8
  export declare const MoveDownDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
@@ -3,7 +3,7 @@ import type { 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
- api: ExtractInjectionAPI<BlockMenuPlugin>;
6
+ api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
7
  };
8
8
  export declare const MoveUpDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -48,7 +48,7 @@
48
48
  "@babel/runtime": "^7.0.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@atlaskit/editor-common": "^107.29.0",
51
+ "@atlaskit/editor-common": "^107.31.0",
52
52
  "react": "^18.2.0",
53
53
  "react-intl-next": "npm:react-intl@^5.18.1"
54
54
  },