@atlaskit/editor-plugin-code-block 8.1.13 → 8.1.15
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 8.1.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 8.1.14
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`56c0427b2ab20`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/56c0427b2ab20) -
|
|
14
|
+
[ux] Use new IA for block menu items.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 8.1.13
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -33,11 +33,11 @@ var codeBlockPlugin = function codeBlockPlugin(_ref) {
|
|
|
33
33
|
var _api$blockMenu;
|
|
34
34
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
35
35
|
type: 'block-menu-item',
|
|
36
|
-
key: _blockMenu.
|
|
36
|
+
key: _blockMenu.TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM.key,
|
|
37
37
|
parent: {
|
|
38
38
|
type: 'block-menu-section',
|
|
39
|
-
key: _blockMenu.
|
|
40
|
-
rank: _blockMenu.
|
|
39
|
+
key: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION.key,
|
|
40
|
+
rank: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION_RANK[_blockMenu.TRANSFORM_STRUCTURE_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 {
|
|
4
|
+
import { TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } 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';
|
|
@@ -24,11 +24,11 @@ const codeBlockPlugin = ({
|
|
|
24
24
|
var _api$blockMenu;
|
|
25
25
|
api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
26
26
|
type: 'block-menu-item',
|
|
27
|
-
key:
|
|
27
|
+
key: TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM.key,
|
|
28
28
|
parent: {
|
|
29
29
|
type: 'block-menu-section',
|
|
30
|
-
key:
|
|
31
|
-
rank:
|
|
30
|
+
key: TRANSFORM_STRUCTURE_MENU_SECTION.key,
|
|
31
|
+
rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_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 {
|
|
7
|
+
import { TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } 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';
|
|
@@ -26,11 +26,11 @@ var codeBlockPlugin = function codeBlockPlugin(_ref) {
|
|
|
26
26
|
var _api$blockMenu;
|
|
27
27
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
28
28
|
type: 'block-menu-item',
|
|
29
|
-
key:
|
|
29
|
+
key: TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM.key,
|
|
30
30
|
parent: {
|
|
31
31
|
type: 'block-menu-section',
|
|
32
|
-
key:
|
|
33
|
-
rank:
|
|
32
|
+
key: TRANSFORM_STRUCTURE_MENU_SECTION.key,
|
|
33
|
+
rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_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": "8.1.
|
|
3
|
+
"version": "8.1.15",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@atlaskit/icon": "^29.0.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^14.0.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@atlaskit/editor-common": "^110.
|
|
50
|
+
"@atlaskit/editor-common": "^110.36.0",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
53
53
|
},
|