@atlaskit/editor-plugin-layout 5.2.0 → 5.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 +15 -0
- package/dist/cjs/layoutPlugin.js +1 -1
- package/dist/es2019/layoutPlugin.js +2 -2
- package/dist/esm/layoutPlugin.js +2 -2
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-layout
|
|
2
2
|
|
|
3
|
+
## 5.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
|
+
## 5.2.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 5.2.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/dist/cjs/layoutPlugin.js
CHANGED
|
@@ -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
|
}]);
|
package/dist/esm/layoutPlugin.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"description": "Layout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/adf-schema": "^51.1.2",
|
|
33
33
|
"@atlaskit/editor-plugin-analytics": "^5.2.0",
|
|
34
|
-
"@atlaskit/editor-plugin-block-menu": "^3.
|
|
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",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"@atlaskit/editor-plugin-width": "^6.0.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
43
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
44
|
-
"@atlaskit/icon": "^28.
|
|
43
|
+
"@atlaskit/editor-toolbar": "^0.9.0",
|
|
44
|
+
"@atlaskit/icon": "^28.2.0",
|
|
45
45
|
"@atlaskit/icon-lab": "^5.7.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^12.28.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.
|
|
53
|
+
"@atlaskit/editor-common": "^109.11.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
|
}
|