@atlaskit/editor-plugin-list 7.2.2 → 7.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 +20 -0
- package/dist/cjs/ui/index.js +3 -2
- package/dist/es2019/ui/index.js +4 -3
- package/dist/esm/ui/index.js +4 -3
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-list
|
|
2
2
|
|
|
3
|
+
## 7.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
|
+
## 7.2.3
|
|
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
|
## 7.2.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getListComponents = void 0;
|
|
7
7
|
var _blockMenu = require("@atlaskit/editor-common/block-menu");
|
|
8
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
9
|
var _BulletedListBlockMenuItem = require("./BulletedListBlockMenuItem");
|
|
9
10
|
var _NumberedListBlockMenuItem = require("./NumberedListBlockMenuItem");
|
|
10
11
|
var getListComponents = exports.getListComponents = function getListComponents(api) {
|
|
@@ -14,7 +15,7 @@ var getListComponents = exports.getListComponents = function getListComponents(a
|
|
|
14
15
|
parent: {
|
|
15
16
|
type: 'block-menu-section',
|
|
16
17
|
key: 'nested-menu-format-section-primary',
|
|
17
|
-
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_BULLETED_LIST_MENU_ITEM.key]
|
|
18
|
+
rank: (0, _platformFeatureFlags.fg)('platform_editor_block_menu_format_rank_revised') ? _blockMenu.FORMAT_NESTED_MENU_RANK_REVISED[_blockMenu.FORMAT_BULLETED_LIST_MENU_ITEM.key] : _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_BULLETED_LIST_MENU_ITEM.key]
|
|
18
19
|
},
|
|
19
20
|
component: (0, _BulletedListBlockMenuItem.createBulletedListBlockMenuItem)({
|
|
20
21
|
api: api
|
|
@@ -25,7 +26,7 @@ var getListComponents = exports.getListComponents = function getListComponents(a
|
|
|
25
26
|
parent: {
|
|
26
27
|
type: 'block-menu-section',
|
|
27
28
|
key: 'nested-menu-format-section-primary',
|
|
28
|
-
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_NUMBERED_LIST_MENU_ITEM.key]
|
|
29
|
+
rank: (0, _platformFeatureFlags.fg)('platform_editor_block_menu_format_rank_revised') ? _blockMenu.FORMAT_NESTED_MENU_RANK_REVISED[_blockMenu.FORMAT_NUMBERED_LIST_MENU_ITEM.key] : _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_NUMBERED_LIST_MENU_ITEM.key]
|
|
29
30
|
},
|
|
30
31
|
component: (0, _NumberedListBlockMenuItem.createNumberedListBlockMenuItem)({
|
|
31
32
|
api: api
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NUMBERED_LIST_MENU_ITEM } from '@atlaskit/editor-common/block-menu';
|
|
1
|
+
import { FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED, FORMAT_NUMBERED_LIST_MENU_ITEM } from '@atlaskit/editor-common/block-menu';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import { createBulletedListBlockMenuItem } from './BulletedListBlockMenuItem';
|
|
3
4
|
import { createNumberedListBlockMenuItem } from './NumberedListBlockMenuItem';
|
|
4
5
|
export const getListComponents = api => {
|
|
@@ -8,7 +9,7 @@ export const getListComponents = api => {
|
|
|
8
9
|
parent: {
|
|
9
10
|
type: 'block-menu-section',
|
|
10
11
|
key: 'nested-menu-format-section-primary',
|
|
11
|
-
rank: FORMAT_NESTED_MENU_RANK[FORMAT_BULLETED_LIST_MENU_ITEM.key]
|
|
12
|
+
rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_BULLETED_LIST_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_BULLETED_LIST_MENU_ITEM.key]
|
|
12
13
|
},
|
|
13
14
|
component: createBulletedListBlockMenuItem({
|
|
14
15
|
api
|
|
@@ -19,7 +20,7 @@ export const getListComponents = api => {
|
|
|
19
20
|
parent: {
|
|
20
21
|
type: 'block-menu-section',
|
|
21
22
|
key: 'nested-menu-format-section-primary',
|
|
22
|
-
rank: FORMAT_NESTED_MENU_RANK[FORMAT_NUMBERED_LIST_MENU_ITEM.key]
|
|
23
|
+
rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_NUMBERED_LIST_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_NUMBERED_LIST_MENU_ITEM.key]
|
|
23
24
|
},
|
|
24
25
|
component: createNumberedListBlockMenuItem({
|
|
25
26
|
api
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NUMBERED_LIST_MENU_ITEM } from '@atlaskit/editor-common/block-menu';
|
|
1
|
+
import { FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED, FORMAT_NUMBERED_LIST_MENU_ITEM } from '@atlaskit/editor-common/block-menu';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import { createBulletedListBlockMenuItem } from './BulletedListBlockMenuItem';
|
|
3
4
|
import { createNumberedListBlockMenuItem } from './NumberedListBlockMenuItem';
|
|
4
5
|
export var getListComponents = function getListComponents(api) {
|
|
@@ -8,7 +9,7 @@ export var getListComponents = function getListComponents(api) {
|
|
|
8
9
|
parent: {
|
|
9
10
|
type: 'block-menu-section',
|
|
10
11
|
key: 'nested-menu-format-section-primary',
|
|
11
|
-
rank: FORMAT_NESTED_MENU_RANK[FORMAT_BULLETED_LIST_MENU_ITEM.key]
|
|
12
|
+
rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_BULLETED_LIST_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_BULLETED_LIST_MENU_ITEM.key]
|
|
12
13
|
},
|
|
13
14
|
component: createBulletedListBlockMenuItem({
|
|
14
15
|
api: api
|
|
@@ -19,7 +20,7 @@ export var getListComponents = function getListComponents(api) {
|
|
|
19
20
|
parent: {
|
|
20
21
|
type: 'block-menu-section',
|
|
21
22
|
key: 'nested-menu-format-section-primary',
|
|
22
|
-
rank: FORMAT_NESTED_MENU_RANK[FORMAT_NUMBERED_LIST_MENU_ITEM.key]
|
|
23
|
+
rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_NUMBERED_LIST_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_NUMBERED_LIST_MENU_ITEM.key]
|
|
23
24
|
},
|
|
24
25
|
component: createNumberedListBlockMenuItem({
|
|
25
26
|
api: api
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-list",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "List plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"atlaskit:src": "src/index.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/adf-schema": "^51.
|
|
31
|
-
"@atlaskit/editor-plugin-analytics": "^5.
|
|
30
|
+
"@atlaskit/adf-schema": "^51.2.0",
|
|
31
|
+
"@atlaskit/editor-plugin-analytics": "^5.3.0",
|
|
32
32
|
"@atlaskit/editor-plugin-block-menu": "^3.2.0",
|
|
33
33
|
"@atlaskit/editor-plugin-feature-flags": "^4.0.0",
|
|
34
34
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
35
35
|
"@atlaskit/editor-toolbar": "^0.9.0",
|
|
36
|
-
"@atlaskit/icon": "^28.
|
|
36
|
+
"@atlaskit/icon": "^28.3.0",
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
38
|
"@atlaskit/prosemirror-input-rules": "^3.4.0",
|
|
39
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
39
|
+
"@atlaskit/tmp-editor-statsig": "^12.30.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@atlaskit/editor-common": "^109.
|
|
43
|
+
"@atlaskit/editor-common": "^109.16.0",
|
|
44
44
|
"react": "^18.2.0",
|
|
45
45
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
46
46
|
},
|
|
@@ -85,6 +85,9 @@
|
|
|
85
85
|
},
|
|
86
86
|
"platform_editor_adf_with_localid": {
|
|
87
87
|
"type": "boolean"
|
|
88
|
+
},
|
|
89
|
+
"platform_editor_block_menu_format_rank_revised": {
|
|
90
|
+
"type": "boolean"
|
|
88
91
|
}
|
|
89
92
|
},
|
|
90
93
|
"stricter": {
|