@atlaskit/editor-plugin-block-type 10.2.13 → 10.2.14
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 +8 -0
- package/dist/cjs/ui/index.js +8 -9
- package/dist/es2019/ui/index.js +9 -10
- package/dist/esm/ui/index.js +9 -10
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
|
2
2
|
|
|
3
|
+
## 10.2.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`43d1dfc88c1de`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/43d1dfc88c1de) -
|
|
8
|
+
Clean up platform_editor_block_menu_format_rank_revised
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 10.2.13
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getBlockTypeComponents = void 0;
|
|
7
7
|
var _blockMenu = require("@atlaskit/editor-common/block-menu");
|
|
8
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
8
|
var _HeadingBlockMenuItem = require("./HeadingBlockMenuItem");
|
|
10
9
|
var _ParagraphBlockMenuItem = require("./ParagraphBlockMenuItem");
|
|
11
10
|
var _QuoteBlockMenuItem = require("./QuoteBlockMenuItem");
|
|
@@ -16,7 +15,7 @@ var getBlockTypeComponents = exports.getBlockTypeComponents = function getBlockT
|
|
|
16
15
|
parent: {
|
|
17
16
|
type: 'block-menu-section',
|
|
18
17
|
key: 'nested-menu-format-section-primary',
|
|
19
|
-
rank:
|
|
18
|
+
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_HEADING_1_MENU_ITEM.key]
|
|
20
19
|
},
|
|
21
20
|
component: (0, _HeadingBlockMenuItem.createHeadingBlockMenuItem)({
|
|
22
21
|
level: 1,
|
|
@@ -28,7 +27,7 @@ var getBlockTypeComponents = exports.getBlockTypeComponents = function getBlockT
|
|
|
28
27
|
parent: {
|
|
29
28
|
type: 'block-menu-section',
|
|
30
29
|
key: 'nested-menu-format-section-primary',
|
|
31
|
-
rank:
|
|
30
|
+
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_HEADING_2_MENU_ITEM.key]
|
|
32
31
|
},
|
|
33
32
|
component: (0, _HeadingBlockMenuItem.createHeadingBlockMenuItem)({
|
|
34
33
|
level: 2,
|
|
@@ -40,7 +39,7 @@ var getBlockTypeComponents = exports.getBlockTypeComponents = function getBlockT
|
|
|
40
39
|
parent: {
|
|
41
40
|
type: 'block-menu-section',
|
|
42
41
|
key: 'nested-menu-format-section-primary',
|
|
43
|
-
rank:
|
|
42
|
+
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_HEADING_3_MENU_ITEM.key]
|
|
44
43
|
},
|
|
45
44
|
component: (0, _HeadingBlockMenuItem.createHeadingBlockMenuItem)({
|
|
46
45
|
level: 3,
|
|
@@ -52,7 +51,7 @@ var getBlockTypeComponents = exports.getBlockTypeComponents = function getBlockT
|
|
|
52
51
|
parent: {
|
|
53
52
|
type: 'block-menu-section',
|
|
54
53
|
key: 'nested-menu-format-section-primary',
|
|
55
|
-
rank:
|
|
54
|
+
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_HEADING_4_MENU_ITEM.key]
|
|
56
55
|
},
|
|
57
56
|
component: (0, _HeadingBlockMenuItem.createHeadingBlockMenuItem)({
|
|
58
57
|
level: 4,
|
|
@@ -64,7 +63,7 @@ var getBlockTypeComponents = exports.getBlockTypeComponents = function getBlockT
|
|
|
64
63
|
parent: {
|
|
65
64
|
type: 'block-menu-section',
|
|
66
65
|
key: 'nested-menu-format-section-primary',
|
|
67
|
-
rank:
|
|
66
|
+
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_HEADING_5_MENU_ITEM.key]
|
|
68
67
|
},
|
|
69
68
|
component: (0, _HeadingBlockMenuItem.createHeadingBlockMenuItem)({
|
|
70
69
|
level: 5,
|
|
@@ -76,7 +75,7 @@ var getBlockTypeComponents = exports.getBlockTypeComponents = function getBlockT
|
|
|
76
75
|
parent: {
|
|
77
76
|
type: 'block-menu-section',
|
|
78
77
|
key: 'nested-menu-format-section-primary',
|
|
79
|
-
rank:
|
|
78
|
+
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_HEADING_6_MENU_ITEM.key]
|
|
80
79
|
},
|
|
81
80
|
component: (0, _HeadingBlockMenuItem.createHeadingBlockMenuItem)({
|
|
82
81
|
level: 6,
|
|
@@ -88,7 +87,7 @@ var getBlockTypeComponents = exports.getBlockTypeComponents = function getBlockT
|
|
|
88
87
|
parent: {
|
|
89
88
|
type: 'block-menu-section',
|
|
90
89
|
key: 'nested-menu-format-section-primary',
|
|
91
|
-
rank:
|
|
90
|
+
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_PARAGRAPH_MENU_ITEM.key]
|
|
92
91
|
},
|
|
93
92
|
component: (0, _ParagraphBlockMenuItem.createParagraphBlockMenuItem)({
|
|
94
93
|
api: api
|
|
@@ -99,7 +98,7 @@ var getBlockTypeComponents = exports.getBlockTypeComponents = function getBlockT
|
|
|
99
98
|
parent: {
|
|
100
99
|
type: 'block-menu-section',
|
|
101
100
|
key: 'nested-menu-format-section-primary',
|
|
102
|
-
rank:
|
|
101
|
+
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_QUOTE_MENU_ITEM.key]
|
|
103
102
|
},
|
|
104
103
|
component: (0, _QuoteBlockMenuItem.createQuoteBlockMenuItem)({
|
|
105
104
|
api: api
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_NESTED_MENU_RANK,
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
|
+
import { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM } from '@atlaskit/editor-common/block-menu';
|
|
3
2
|
import { createHeadingBlockMenuItem } from './HeadingBlockMenuItem';
|
|
4
3
|
import { createParagraphBlockMenuItem } from './ParagraphBlockMenuItem';
|
|
5
4
|
import { createQuoteBlockMenuItem } from './QuoteBlockMenuItem';
|
|
@@ -10,7 +9,7 @@ export const getBlockTypeComponents = api => {
|
|
|
10
9
|
parent: {
|
|
11
10
|
type: 'block-menu-section',
|
|
12
11
|
key: 'nested-menu-format-section-primary',
|
|
13
|
-
rank:
|
|
12
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_HEADING_1_MENU_ITEM.key]
|
|
14
13
|
},
|
|
15
14
|
component: createHeadingBlockMenuItem({
|
|
16
15
|
level: 1,
|
|
@@ -22,7 +21,7 @@ export const getBlockTypeComponents = api => {
|
|
|
22
21
|
parent: {
|
|
23
22
|
type: 'block-menu-section',
|
|
24
23
|
key: 'nested-menu-format-section-primary',
|
|
25
|
-
rank:
|
|
24
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_HEADING_2_MENU_ITEM.key]
|
|
26
25
|
},
|
|
27
26
|
component: createHeadingBlockMenuItem({
|
|
28
27
|
level: 2,
|
|
@@ -34,7 +33,7 @@ export const getBlockTypeComponents = api => {
|
|
|
34
33
|
parent: {
|
|
35
34
|
type: 'block-menu-section',
|
|
36
35
|
key: 'nested-menu-format-section-primary',
|
|
37
|
-
rank:
|
|
36
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_HEADING_3_MENU_ITEM.key]
|
|
38
37
|
},
|
|
39
38
|
component: createHeadingBlockMenuItem({
|
|
40
39
|
level: 3,
|
|
@@ -46,7 +45,7 @@ export const getBlockTypeComponents = api => {
|
|
|
46
45
|
parent: {
|
|
47
46
|
type: 'block-menu-section',
|
|
48
47
|
key: 'nested-menu-format-section-primary',
|
|
49
|
-
rank:
|
|
48
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_HEADING_4_MENU_ITEM.key]
|
|
50
49
|
},
|
|
51
50
|
component: createHeadingBlockMenuItem({
|
|
52
51
|
level: 4,
|
|
@@ -58,7 +57,7 @@ export const getBlockTypeComponents = api => {
|
|
|
58
57
|
parent: {
|
|
59
58
|
type: 'block-menu-section',
|
|
60
59
|
key: 'nested-menu-format-section-primary',
|
|
61
|
-
rank:
|
|
60
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_HEADING_5_MENU_ITEM.key]
|
|
62
61
|
},
|
|
63
62
|
component: createHeadingBlockMenuItem({
|
|
64
63
|
level: 5,
|
|
@@ -70,7 +69,7 @@ export const getBlockTypeComponents = api => {
|
|
|
70
69
|
parent: {
|
|
71
70
|
type: 'block-menu-section',
|
|
72
71
|
key: 'nested-menu-format-section-primary',
|
|
73
|
-
rank:
|
|
72
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_HEADING_6_MENU_ITEM.key]
|
|
74
73
|
},
|
|
75
74
|
component: createHeadingBlockMenuItem({
|
|
76
75
|
level: 6,
|
|
@@ -82,7 +81,7 @@ export const getBlockTypeComponents = api => {
|
|
|
82
81
|
parent: {
|
|
83
82
|
type: 'block-menu-section',
|
|
84
83
|
key: 'nested-menu-format-section-primary',
|
|
85
|
-
rank:
|
|
84
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_PARAGRAPH_MENU_ITEM.key]
|
|
86
85
|
},
|
|
87
86
|
component: createParagraphBlockMenuItem({
|
|
88
87
|
api
|
|
@@ -93,7 +92,7 @@ export const getBlockTypeComponents = api => {
|
|
|
93
92
|
parent: {
|
|
94
93
|
type: 'block-menu-section',
|
|
95
94
|
key: 'nested-menu-format-section-primary',
|
|
96
|
-
rank:
|
|
95
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_QUOTE_MENU_ITEM.key]
|
|
97
96
|
},
|
|
98
97
|
component: createQuoteBlockMenuItem({
|
|
99
98
|
api
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_NESTED_MENU_RANK,
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
|
+
import { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM } from '@atlaskit/editor-common/block-menu';
|
|
3
2
|
import { createHeadingBlockMenuItem } from './HeadingBlockMenuItem';
|
|
4
3
|
import { createParagraphBlockMenuItem } from './ParagraphBlockMenuItem';
|
|
5
4
|
import { createQuoteBlockMenuItem } from './QuoteBlockMenuItem';
|
|
@@ -10,7 +9,7 @@ export var getBlockTypeComponents = function getBlockTypeComponents(api) {
|
|
|
10
9
|
parent: {
|
|
11
10
|
type: 'block-menu-section',
|
|
12
11
|
key: 'nested-menu-format-section-primary',
|
|
13
|
-
rank:
|
|
12
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_HEADING_1_MENU_ITEM.key]
|
|
14
13
|
},
|
|
15
14
|
component: createHeadingBlockMenuItem({
|
|
16
15
|
level: 1,
|
|
@@ -22,7 +21,7 @@ export var getBlockTypeComponents = function getBlockTypeComponents(api) {
|
|
|
22
21
|
parent: {
|
|
23
22
|
type: 'block-menu-section',
|
|
24
23
|
key: 'nested-menu-format-section-primary',
|
|
25
|
-
rank:
|
|
24
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_HEADING_2_MENU_ITEM.key]
|
|
26
25
|
},
|
|
27
26
|
component: createHeadingBlockMenuItem({
|
|
28
27
|
level: 2,
|
|
@@ -34,7 +33,7 @@ export var getBlockTypeComponents = function getBlockTypeComponents(api) {
|
|
|
34
33
|
parent: {
|
|
35
34
|
type: 'block-menu-section',
|
|
36
35
|
key: 'nested-menu-format-section-primary',
|
|
37
|
-
rank:
|
|
36
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_HEADING_3_MENU_ITEM.key]
|
|
38
37
|
},
|
|
39
38
|
component: createHeadingBlockMenuItem({
|
|
40
39
|
level: 3,
|
|
@@ -46,7 +45,7 @@ export var getBlockTypeComponents = function getBlockTypeComponents(api) {
|
|
|
46
45
|
parent: {
|
|
47
46
|
type: 'block-menu-section',
|
|
48
47
|
key: 'nested-menu-format-section-primary',
|
|
49
|
-
rank:
|
|
48
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_HEADING_4_MENU_ITEM.key]
|
|
50
49
|
},
|
|
51
50
|
component: createHeadingBlockMenuItem({
|
|
52
51
|
level: 4,
|
|
@@ -58,7 +57,7 @@ export var getBlockTypeComponents = function getBlockTypeComponents(api) {
|
|
|
58
57
|
parent: {
|
|
59
58
|
type: 'block-menu-section',
|
|
60
59
|
key: 'nested-menu-format-section-primary',
|
|
61
|
-
rank:
|
|
60
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_HEADING_5_MENU_ITEM.key]
|
|
62
61
|
},
|
|
63
62
|
component: createHeadingBlockMenuItem({
|
|
64
63
|
level: 5,
|
|
@@ -70,7 +69,7 @@ export var getBlockTypeComponents = function getBlockTypeComponents(api) {
|
|
|
70
69
|
parent: {
|
|
71
70
|
type: 'block-menu-section',
|
|
72
71
|
key: 'nested-menu-format-section-primary',
|
|
73
|
-
rank:
|
|
72
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_HEADING_6_MENU_ITEM.key]
|
|
74
73
|
},
|
|
75
74
|
component: createHeadingBlockMenuItem({
|
|
76
75
|
level: 6,
|
|
@@ -82,7 +81,7 @@ export var getBlockTypeComponents = function getBlockTypeComponents(api) {
|
|
|
82
81
|
parent: {
|
|
83
82
|
type: 'block-menu-section',
|
|
84
83
|
key: 'nested-menu-format-section-primary',
|
|
85
|
-
rank:
|
|
84
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_PARAGRAPH_MENU_ITEM.key]
|
|
86
85
|
},
|
|
87
86
|
component: createParagraphBlockMenuItem({
|
|
88
87
|
api: api
|
|
@@ -93,7 +92,7 @@ export var getBlockTypeComponents = function getBlockTypeComponents(api) {
|
|
|
93
92
|
parent: {
|
|
94
93
|
type: 'block-menu-section',
|
|
95
94
|
key: 'nested-menu-format-section-primary',
|
|
96
|
-
rank:
|
|
95
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_QUOTE_MENU_ITEM.key]
|
|
97
96
|
},
|
|
98
97
|
component: createQuoteBlockMenuItem({
|
|
99
98
|
api: api
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.14",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
52
52
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
53
53
|
"@atlaskit/theme": "^21.0.0",
|
|
54
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
54
|
+
"@atlaskit/tmp-editor-statsig": "^13.43.0",
|
|
55
55
|
"@atlaskit/tokens": "^8.3.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|
|
57
57
|
"@emotion/react": "^11.7.1"
|
|
@@ -126,9 +126,6 @@
|
|
|
126
126
|
},
|
|
127
127
|
"platform_editor_heading_from_numpad": {
|
|
128
128
|
"type": "boolean"
|
|
129
|
-
},
|
|
130
|
-
"platform_editor_block_menu_format_rank_revised": {
|
|
131
|
-
"type": "boolean"
|
|
132
129
|
}
|
|
133
130
|
}
|
|
134
131
|
}
|