@atlaskit/editor-plugin-layout 5.2.1 → 5.3.0

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,25 @@
1
1
  # @atlaskit/editor-plugin-layout
2
2
 
3
+ ## 5.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`687c1b8fa7801`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/687c1b8fa7801) -
8
+ EDITOR-1566 bump adf-schema + update validator
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 5.2.2
15
+
16
+ ### Patch Changes
17
+
18
+ - [`b878645133984`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b878645133984) -
19
+ [ux] Adds revised ranks to use in Turn into menu. It will group the headings together at the top
20
+ of the menu.
21
+ - Updated dependencies
22
+
3
23
  ## 5.2.1
4
24
 
5
25
  ### Patch Changes
@@ -67,7 +67,7 @@ var layoutPlugin = exports.layoutPlugin = function layoutPlugin(_ref) {
67
67
  parent: {
68
68
  type: 'block-menu-section',
69
69
  key: _blockMenu.FORMAT_MENU_ITEM.key,
70
- rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_LAYOUT_MENU_ITEM.key]
70
+ rank: (0, _platformFeatureFlags.fg)('platform_editor_block_menu_format_rank_revised') ? _blockMenu.FORMAT_NESTED_MENU_RANK_REVISED[_blockMenu.FORMAT_LAYOUT_MENU_ITEM.key] : _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_LAYOUT_MENU_ITEM.key]
71
71
  },
72
72
  component: (0, _LayoutBlockMenuItem.createLayoutBlockMenuItem)(api)
73
73
  }]);
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { layoutColumn, layoutSection, layoutColumnWithLocalId, layoutSectionWithLocalId } from '@atlaskit/adf-schema';
3
3
  import { layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId } from '@atlaskit/adf-schema/schema';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
- import { FORMAT_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
5
+ import { FORMAT_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED } from '@atlaskit/editor-common/block-menu';
6
6
  import { layoutMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
7
7
  import { IconFiveColumnLayout, IconFourColumnLayout, IconLayout, IconOneColumnLayout, IconThreeColumnLayout, IconTwoColumnLayout } from '@atlaskit/editor-common/quick-insert';
8
8
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
@@ -60,7 +60,7 @@ export const layoutPlugin = ({
60
60
  parent: {
61
61
  type: 'block-menu-section',
62
62
  key: FORMAT_MENU_ITEM.key,
63
- rank: FORMAT_NESTED_MENU_RANK[FORMAT_LAYOUT_MENU_ITEM.key]
63
+ rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_LAYOUT_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_LAYOUT_MENU_ITEM.key]
64
64
  },
65
65
  component: createLayoutBlockMenuItem(api)
66
66
  }]);
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { layoutColumn, layoutSection, layoutColumnWithLocalId, layoutSectionWithLocalId } from '@atlaskit/adf-schema';
3
3
  import { layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId } from '@atlaskit/adf-schema/schema';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
- import { FORMAT_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
5
+ import { FORMAT_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED } from '@atlaskit/editor-common/block-menu';
6
6
  import { layoutMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
7
7
  import { IconFiveColumnLayout, IconFourColumnLayout, IconLayout, IconOneColumnLayout, IconThreeColumnLayout, IconTwoColumnLayout } from '@atlaskit/editor-common/quick-insert';
8
8
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
@@ -61,7 +61,7 @@ export var layoutPlugin = function layoutPlugin(_ref) {
61
61
  parent: {
62
62
  type: 'block-menu-section',
63
63
  key: FORMAT_MENU_ITEM.key,
64
- rank: FORMAT_NESTED_MENU_RANK[FORMAT_LAYOUT_MENU_ITEM.key]
64
+ rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_LAYOUT_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_LAYOUT_MENU_ITEM.key]
65
65
  },
66
66
  component: createLayoutBlockMenuItem(api)
67
67
  }]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "5.2.1",
3
+ "version": "5.3.0",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,9 +29,9 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^51.1.2",
33
- "@atlaskit/editor-plugin-analytics": "^5.2.0",
34
- "@atlaskit/editor-plugin-block-menu": "^3.1.0",
32
+ "@atlaskit/adf-schema": "^51.2.0",
33
+ "@atlaskit/editor-plugin-analytics": "^5.3.0",
34
+ "@atlaskit/editor-plugin-block-menu": "^3.2.0",
35
35
  "@atlaskit/editor-plugin-decorations": "^5.0.0",
36
36
  "@atlaskit/editor-plugin-editor-disabled": "^5.0.0",
37
37
  "@atlaskit/editor-plugin-guideline": "^5.0.0",
@@ -41,16 +41,16 @@
41
41
  "@atlaskit/editor-prosemirror": "7.0.0",
42
42
  "@atlaskit/editor-shared-styles": "^3.6.0",
43
43
  "@atlaskit/editor-toolbar": "^0.9.0",
44
- "@atlaskit/icon": "^28.1.0",
44
+ "@atlaskit/icon": "^28.3.0",
45
45
  "@atlaskit/icon-lab": "^5.7.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
- "@atlaskit/tmp-editor-statsig": "^12.21.0",
47
+ "@atlaskit/tmp-editor-statsig": "^12.30.0",
48
48
  "@atlaskit/tokens": "^6.3.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^109.6.0",
53
+ "@atlaskit/editor-common": "^109.16.0",
54
54
  "react": "^18.2.0",
55
55
  "react-intl-next": "npm:react-intl@^5.18.1"
56
56
  },
@@ -107,6 +107,9 @@
107
107
  },
108
108
  "platform_editor_adf_with_localid": {
109
109
  "type": "boolean"
110
+ },
111
+ "platform_editor_block_menu_format_rank_revised": {
112
+ "type": "boolean"
110
113
  }
111
114
  }
112
115
  }