@atlaskit/editor-plugin-code-block 7.2.1 → 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
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
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.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
|
## 7.2.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -37,7 +37,7 @@ var codeBlockPlugin = function codeBlockPlugin(_ref) {
|
|
|
37
37
|
parent: {
|
|
38
38
|
type: 'block-menu-section',
|
|
39
39
|
key: _blockMenu.FORMAT_MENU_ITEM.key,
|
|
40
|
-
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_CODE_BLOCK_MENU_ITEM.key]
|
|
40
|
+
rank: (0, _platformFeatureFlags.fg)('platform_editor_block_menu_format_rank_revised') ? _blockMenu.FORMAT_NESTED_MENU_RANK_REVISED[_blockMenu.FORMAT_CODE_BLOCK_MENU_ITEM.key] : _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_CODE_BLOCK_MENU_ITEM.key]
|
|
41
41
|
},
|
|
42
42
|
component: (0, _CodeBlockMenuItem.createCodeBlockMenuItem)(api)
|
|
43
43
|
}]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { codeBlock, codeBlockWithLocalId } 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_CODE_BLOCK_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
|
|
4
|
+
import { FORMAT_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED } from '@atlaskit/editor-common/block-menu';
|
|
5
5
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { IconCode } from '@atlaskit/editor-common/quick-insert';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -28,7 +28,7 @@ const codeBlockPlugin = ({
|
|
|
28
28
|
parent: {
|
|
29
29
|
type: 'block-menu-section',
|
|
30
30
|
key: FORMAT_MENU_ITEM.key,
|
|
31
|
-
rank: FORMAT_NESTED_MENU_RANK[FORMAT_CODE_BLOCK_MENU_ITEM.key]
|
|
31
|
+
rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_CODE_BLOCK_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_CODE_BLOCK_MENU_ITEM.key]
|
|
32
32
|
},
|
|
33
33
|
component: createCodeBlockMenuItem(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 { codeBlock, codeBlockWithLocalId } 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_CODE_BLOCK_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
|
|
7
|
+
import { FORMAT_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED } from '@atlaskit/editor-common/block-menu';
|
|
8
8
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
9
9
|
import { IconCode } from '@atlaskit/editor-common/quick-insert';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -30,7 +30,7 @@ var codeBlockPlugin = function codeBlockPlugin(_ref) {
|
|
|
30
30
|
parent: {
|
|
31
31
|
type: 'block-menu-section',
|
|
32
32
|
key: FORMAT_MENU_ITEM.key,
|
|
33
|
-
rank: FORMAT_NESTED_MENU_RANK[FORMAT_CODE_BLOCK_MENU_ITEM.key]
|
|
33
|
+
rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_CODE_BLOCK_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_CODE_BLOCK_MENU_ITEM.key]
|
|
34
34
|
},
|
|
35
35
|
component: createCodeBlockMenuItem(api)
|
|
36
36
|
}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"atlaskit:src": "src/index.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/adf-schema": "^51.
|
|
30
|
+
"@atlaskit/adf-schema": "^51.2.0",
|
|
31
31
|
"@atlaskit/code": "^17.2.0",
|
|
32
|
-
"@atlaskit/editor-plugin-analytics": "^5.
|
|
33
|
-
"@atlaskit/editor-plugin-block-menu": "^3.
|
|
32
|
+
"@atlaskit/editor-plugin-analytics": "^5.3.0",
|
|
33
|
+
"@atlaskit/editor-plugin-block-menu": "^3.2.0",
|
|
34
34
|
"@atlaskit/editor-plugin-composition": "^4.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-decorations": "^5.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-editor-disabled": "^5.0.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@atlaskit/editor-plugin-toolbar": "^2.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
42
|
"@atlaskit/editor-toolbar": "^0.9.0",
|
|
43
|
-
"@atlaskit/icon": "^28.
|
|
43
|
+
"@atlaskit/icon": "^28.3.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/prosemirror-input-rules": "^3.4.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^12.30.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@atlaskit/editor-common": "^109.
|
|
50
|
+
"@atlaskit/editor-common": "^109.16.0",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
53
53
|
},
|
|
@@ -104,6 +104,9 @@
|
|
|
104
104
|
},
|
|
105
105
|
"platform_editor_adf_with_localid": {
|
|
106
106
|
"type": "boolean"
|
|
107
|
+
},
|
|
108
|
+
"platform_editor_block_menu_format_rank_revised": {
|
|
109
|
+
"type": "boolean"
|
|
107
110
|
}
|
|
108
111
|
}
|
|
109
112
|
}
|