@atlaskit/editor-plugin-panel 7.2.0 → 7.2.2

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,20 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 7.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b878645133984`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b878645133984) -
8
+ [ux] Adds revised ranks to use in Turn into menu. It will group the headings together at the top
9
+ of the menu.
10
+ - Updated dependencies
11
+
12
+ ## 7.2.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 7.2.0
4
19
 
5
20
  ### Minor Changes
@@ -38,7 +38,7 @@ var panelPlugin = function panelPlugin(_ref) {
38
38
  parent: {
39
39
  type: 'block-menu-section',
40
40
  key: _blockMenu.FORMAT_MENU_ITEM.key,
41
- rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_PANEL_MENU_ITEM.key]
41
+ rank: (0, _platformFeatureFlags.fg)('platform_editor_block_menu_format_rank_revised') ? _blockMenu.FORMAT_NESTED_MENU_RANK_REVISED[_blockMenu.FORMAT_PANEL_MENU_ITEM.key] : _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_PANEL_MENU_ITEM.key]
42
42
  },
43
43
  component: (0, _panelBlockMenuItem.createPanelBlockMenuItem)(api)
44
44
  }]);
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { extendedPanel, extendedPanelWithLocalId, PanelType } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
- import { FORMAT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
4
+ import { FORMAT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED } from '@atlaskit/editor-common/block-menu';
5
5
  import { insertSelectedItem } from '@atlaskit/editor-common/insert';
6
6
  import { blockTypeMessages } from '@atlaskit/editor-common/messages';
7
7
  import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/quick-insert';
@@ -28,7 +28,7 @@ const panelPlugin = ({
28
28
  parent: {
29
29
  type: 'block-menu-section',
30
30
  key: FORMAT_MENU_ITEM.key,
31
- rank: FORMAT_NESTED_MENU_RANK[FORMAT_PANEL_MENU_ITEM.key]
31
+ rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_PANEL_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_PANEL_MENU_ITEM.key]
32
32
  },
33
33
  component: createPanelBlockMenuItem(api)
34
34
  }]);
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import React from 'react';
5
5
  import { extendedPanel, extendedPanelWithLocalId, PanelType } from '@atlaskit/adf-schema';
6
6
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
- import { FORMAT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
7
+ import { FORMAT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED } from '@atlaskit/editor-common/block-menu';
8
8
  import { insertSelectedItem } from '@atlaskit/editor-common/insert';
9
9
  import { blockTypeMessages } from '@atlaskit/editor-common/messages';
10
10
  import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/quick-insert';
@@ -31,7 +31,7 @@ var panelPlugin = function panelPlugin(_ref) {
31
31
  parent: {
32
32
  type: 'block-menu-section',
33
33
  key: FORMAT_MENU_ITEM.key,
34
- rank: FORMAT_NESTED_MENU_RANK[FORMAT_PANEL_MENU_ITEM.key]
34
+ rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_PANEL_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_PANEL_MENU_ITEM.key]
35
35
  },
36
36
  component: createPanelBlockMenuItem(api)
37
37
  }]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "7.2.0",
3
+ "version": "7.2.2",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,25 +30,25 @@
30
30
  "@atlaskit/adf-schema": "^51.1.2",
31
31
  "@atlaskit/editor-palette": "^2.1.0",
32
32
  "@atlaskit/editor-plugin-analytics": "^5.2.0",
33
- "@atlaskit/editor-plugin-block-menu": "^3.1.0",
33
+ "@atlaskit/editor-plugin-block-menu": "^3.2.0",
34
34
  "@atlaskit/editor-plugin-decorations": "^5.0.0",
35
35
  "@atlaskit/editor-plugin-emoji": "^6.2.0",
36
36
  "@atlaskit/editor-plugin-selection": "^5.0.0",
37
37
  "@atlaskit/editor-plugin-toolbar": "^2.1.0",
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.6.0",
40
- "@atlaskit/editor-toolbar": "^0.8.0",
40
+ "@atlaskit/editor-toolbar": "^0.9.0",
41
41
  "@atlaskit/emoji": "^69.5.0",
42
- "@atlaskit/icon": "^28.1.0",
42
+ "@atlaskit/icon": "^28.2.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/theme": "^21.0.0",
45
- "@atlaskit/tmp-editor-statsig": "^12.18.0",
45
+ "@atlaskit/tmp-editor-statsig": "^12.28.0",
46
46
  "@atlaskit/tokens": "^6.3.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "uuid": "^3.1.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@atlaskit/editor-common": "^109.5.0",
51
+ "@atlaskit/editor-common": "^109.11.0",
52
52
  "react": "^18.2.0",
53
53
  "react-dom": "^18.2.0",
54
54
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -95,6 +95,9 @@
95
95
  },
96
96
  "platform_editor_adf_with_localid": {
97
97
  "type": "boolean"
98
+ },
99
+ "platform_editor_block_menu_format_rank_revised": {
100
+ "type": "boolean"
98
101
  }
99
102
  },
100
103
  "stricter": {