@atlaskit/editor-plugin-expand 7.4.7 → 7.4.9
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 +14 -0
- package/dist/cjs/legacyExpand/plugin.js +3 -3
- package/dist/cjs/singlePlayerExpand/plugin.js +3 -3
- package/dist/es2019/legacyExpand/plugin.js +4 -4
- package/dist/es2019/singlePlayerExpand/plugin.js +4 -4
- package/dist/esm/legacyExpand/plugin.js +4 -4
- package/dist/esm/singlePlayerExpand/plugin.js +4 -4
- package/package.json +4 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 7.4.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 7.4.8
|
|
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
|
## 7.4.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -30,11 +30,11 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
|
|
|
30
30
|
var _api$blockMenu;
|
|
31
31
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
32
32
|
type: 'block-menu-item',
|
|
33
|
-
key: _blockMenu.
|
|
33
|
+
key: _blockMenu.TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM.key,
|
|
34
34
|
parent: {
|
|
35
35
|
type: 'block-menu-section',
|
|
36
|
-
key: _blockMenu.
|
|
37
|
-
rank: _blockMenu.
|
|
36
|
+
key: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION.key,
|
|
37
|
+
rank: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION_RANK[_blockMenu.TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM.key]
|
|
38
38
|
},
|
|
39
39
|
component: (0, _ExpandBlockMenuItem.createExpandBlockMenuItem)(api)
|
|
40
40
|
}]);
|
|
@@ -30,11 +30,11 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
|
|
|
30
30
|
var _api$blockMenu;
|
|
31
31
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
32
32
|
type: 'block-menu-item',
|
|
33
|
-
key: _blockMenu.
|
|
33
|
+
key: _blockMenu.TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM.key,
|
|
34
34
|
parent: {
|
|
35
35
|
type: 'block-menu-section',
|
|
36
|
-
key: _blockMenu.
|
|
37
|
-
rank: _blockMenu.
|
|
36
|
+
key: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION.key,
|
|
37
|
+
rank: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION_RANK[_blockMenu.TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM.key]
|
|
38
38
|
},
|
|
39
39
|
component: (0, _ExpandBlockMenuItem.createExpandBlockMenuItem)(api)
|
|
40
40
|
}]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { expandWithNestedExpand, nestedExpand } 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_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
5
5
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { IconExpand } from '@atlaskit/editor-common/quick-insert';
|
|
7
7
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
@@ -24,11 +24,11 @@ export let expandPlugin = ({
|
|
|
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_EXPAND_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_EXPAND_MENU_ITEM.key]
|
|
32
32
|
},
|
|
33
33
|
component: createExpandBlockMenuItem(api)
|
|
34
34
|
}]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { expandWithNestedExpand, expandWithNestedExpandLocalId, nestedExpand, nestedExpandWithLocalId } 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_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
5
5
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { IconExpand } from '@atlaskit/editor-common/quick-insert';
|
|
7
7
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
@@ -24,11 +24,11 @@ export let expandPlugin = ({
|
|
|
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_EXPAND_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_EXPAND_MENU_ITEM.key]
|
|
32
32
|
},
|
|
33
33
|
component: createExpandBlockMenuItem(api)
|
|
34
34
|
}]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { expandWithNestedExpand, nestedExpand } 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_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
5
5
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { IconExpand } from '@atlaskit/editor-common/quick-insert';
|
|
7
7
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
@@ -24,11 +24,11 @@ export var expandPlugin = function expandPlugin(_ref) {
|
|
|
24
24
|
var _api$blockMenu;
|
|
25
25
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
26
26
|
type: 'block-menu-item',
|
|
27
|
-
key:
|
|
27
|
+
key: TRANSFORM_STRUCTURE_EXPAND_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_EXPAND_MENU_ITEM.key]
|
|
32
32
|
},
|
|
33
33
|
component: createExpandBlockMenuItem(api)
|
|
34
34
|
}]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { expandWithNestedExpand, expandWithNestedExpandLocalId, nestedExpand, nestedExpandWithLocalId } 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_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
5
5
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { IconExpand } from '@atlaskit/editor-common/quick-insert';
|
|
7
7
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
@@ -24,11 +24,11 @@ export var expandPlugin = function expandPlugin(_ref) {
|
|
|
24
24
|
var _api$blockMenu;
|
|
25
25
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
26
26
|
type: 'block-menu-item',
|
|
27
|
-
key:
|
|
27
|
+
key: TRANSFORM_STRUCTURE_EXPAND_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_EXPAND_MENU_ITEM.key]
|
|
32
32
|
},
|
|
33
33
|
component: createExpandBlockMenuItem(api)
|
|
34
34
|
}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.9",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@atlaskit/icon-lab": "^5.12.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
50
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
52
|
-
"@atlaskit/tokens": "^8.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^14.0.0",
|
|
52
|
+
"@atlaskit/tokens": "^8.4.0",
|
|
53
53
|
"@atlaskit/tooltip": "^20.10.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1",
|
|
@@ -57,19 +57,12 @@
|
|
|
57
57
|
"w3c-keyname": "^2.1.8"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^110.
|
|
60
|
+
"@atlaskit/editor-common": "^110.36.0",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0",
|
|
63
63
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@atlaskit/analytics-next": "^11.1.0",
|
|
67
|
-
"@atlaskit/editor-plugin-content-insertion": "^6.0.0",
|
|
68
|
-
"@atlaskit/editor-plugin-guideline": "^6.0.0",
|
|
69
|
-
"@atlaskit/editor-plugin-quick-insert": "^6.0.0",
|
|
70
|
-
"@atlaskit/editor-plugin-table": "^15.4.0",
|
|
71
|
-
"@atlaskit/editor-plugin-type-ahead": "^6.5.0",
|
|
72
|
-
"@atlaskit/editor-plugin-width": "^7.0.0",
|
|
73
66
|
"@testing-library/react": "^13.4.0",
|
|
74
67
|
"react-test-renderer": "^18.2.0"
|
|
75
68
|
},
|