@atlaskit/editor-plugin-block-menu 0.0.15 → 0.0.16

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,13 @@
1
1
  # @atlaskit/editor-plugin-block-menu
2
2
 
3
+ ## 0.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [`1ab3eb4c56ebb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1ab3eb4c56ebb) -
8
+ [ux] ED-28581: Registered components for block type and list plugins
9
+ - Updated dependencies
10
+
3
11
  ## 0.0.15
4
12
 
5
13
  ### Patch Changes
@@ -84,20 +84,20 @@ var getFormatMenuComponents = function getFormatMenuComponents() {
84
84
  children = _ref2.children;
85
85
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, null, children);
86
86
  }
87
- }];
88
- };
89
- var getBlockMenuComponents = exports.getBlockMenuComponents = function getBlockMenuComponents(_ref3) {
90
- var api = _ref3.api,
91
- config = _ref3.config;
92
- return [].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_editor_block_menu_format') ? getFormatMenuComponents() : []), [{
87
+ }, {
93
88
  type: 'block-menu-section',
94
89
  key: 'block-menu-section-primary',
95
90
  rank: 100,
96
- component: function component(_ref4) {
97
- var children = _ref4.children;
91
+ component: function component(_ref3) {
92
+ var children = _ref3.children;
98
93
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, null, children);
99
94
  }
100
- }, {
95
+ }];
96
+ };
97
+ var getBlockMenuComponents = exports.getBlockMenuComponents = function getBlockMenuComponents(_ref4) {
98
+ var api = _ref4.api,
99
+ config = _ref4.config;
100
+ return [].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_editor_block_menu_format') ? getFormatMenuComponents() : []), [{
101
101
  type: 'block-menu-section',
102
102
  key: 'block-menu-section-copy',
103
103
  rank: 200,
@@ -72,13 +72,7 @@ const getFormatMenuComponents = () => {
72
72
  }) => {
73
73
  return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, null, children);
74
74
  }
75
- }];
76
- };
77
- export const getBlockMenuComponents = ({
78
- api,
79
- config
80
- }) => {
81
- return [...(fg('platform_editor_block_menu_format') ? getFormatMenuComponents() : []), {
75
+ }, {
82
76
  type: 'block-menu-section',
83
77
  key: 'block-menu-section-primary',
84
78
  rank: 100,
@@ -87,7 +81,13 @@ export const getBlockMenuComponents = ({
87
81
  }) => {
88
82
  return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, null, children);
89
83
  }
90
- }, {
84
+ }];
85
+ };
86
+ export const getBlockMenuComponents = ({
87
+ api,
88
+ config
89
+ }) => {
90
+ return [...(fg('platform_editor_block_menu_format') ? getFormatMenuComponents() : []), {
91
91
  type: 'block-menu-section',
92
92
  key: 'block-menu-section-copy',
93
93
  rank: 200,
@@ -77,20 +77,20 @@ var getFormatMenuComponents = function getFormatMenuComponents() {
77
77
  children = _ref2.children;
78
78
  return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, null, children);
79
79
  }
80
- }];
81
- };
82
- export var getBlockMenuComponents = function getBlockMenuComponents(_ref3) {
83
- var api = _ref3.api,
84
- config = _ref3.config;
85
- return [].concat(_toConsumableArray(fg('platform_editor_block_menu_format') ? getFormatMenuComponents() : []), [{
80
+ }, {
86
81
  type: 'block-menu-section',
87
82
  key: 'block-menu-section-primary',
88
83
  rank: 100,
89
- component: function component(_ref4) {
90
- var children = _ref4.children;
84
+ component: function component(_ref3) {
85
+ var children = _ref3.children;
91
86
  return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, null, children);
92
87
  }
93
- }, {
88
+ }];
89
+ };
90
+ export var getBlockMenuComponents = function getBlockMenuComponents(_ref4) {
91
+ var api = _ref4.api,
92
+ config = _ref4.config;
93
+ return [].concat(_toConsumableArray(fg('platform_editor_block_menu_format') ? getFormatMenuComponents() : []), [{
94
94
  type: 'block-menu-section',
95
95
  key: 'block-menu-section-copy',
96
96
  rank: 200,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",