@atlaskit/editor-plugin-expand 7.4.6 → 7.4.8
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 +16 -0
- package/dist/cjs/legacyExpand/plugin.js +3 -4
- package/dist/cjs/singlePlayerExpand/plugin.js +3 -3
- package/dist/es2019/legacyExpand/plugin.js +4 -5
- package/dist/es2019/singlePlayerExpand/plugin.js +4 -4
- package/dist/esm/legacyExpand/plugin.js +4 -5
- package/dist/esm/singlePlayerExpand/plugin.js +4 -4
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 7.4.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`56c0427b2ab20`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/56c0427b2ab20) -
|
|
8
|
+
[ux] Use new IA for block menu items.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 7.4.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`43d1dfc88c1de`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/43d1dfc88c1de) -
|
|
16
|
+
Clean up platform_editor_block_menu_format_rank_revised
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 7.4.6
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -12,7 +12,6 @@ var _blockMenu = require("@atlaskit/editor-common/block-menu");
|
|
|
12
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
13
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
14
14
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
17
16
|
var _toggleExpandRange = require("../editor-commands/toggleExpandRange");
|
|
18
17
|
var _ExpandBlockMenuItem = require("../ui/ExpandBlockMenuItem");
|
|
@@ -31,11 +30,11 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
|
|
|
31
30
|
var _api$blockMenu;
|
|
32
31
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
33
32
|
type: 'block-menu-item',
|
|
34
|
-
key: _blockMenu.
|
|
33
|
+
key: _blockMenu.TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM.key,
|
|
35
34
|
parent: {
|
|
36
35
|
type: 'block-menu-section',
|
|
37
|
-
key: _blockMenu.
|
|
38
|
-
rank:
|
|
36
|
+
key: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION.key,
|
|
37
|
+
rank: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION_RANK[_blockMenu.TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM.key]
|
|
39
38
|
},
|
|
40
39
|
component: (0, _ExpandBlockMenuItem.createExpandBlockMenuItem)(api)
|
|
41
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:
|
|
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,11 +1,10 @@
|
|
|
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';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
10
9
|
import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
|
|
11
10
|
import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
|
|
@@ -25,11 +24,11 @@ export let expandPlugin = ({
|
|
|
25
24
|
var _api$blockMenu;
|
|
26
25
|
api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
27
26
|
type: 'block-menu-item',
|
|
28
|
-
key:
|
|
27
|
+
key: TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM.key,
|
|
29
28
|
parent: {
|
|
30
29
|
type: 'block-menu-section',
|
|
31
|
-
key:
|
|
32
|
-
rank:
|
|
30
|
+
key: TRANSFORM_STRUCTURE_MENU_SECTION.key,
|
|
31
|
+
rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM.key]
|
|
33
32
|
},
|
|
34
33
|
component: createExpandBlockMenuItem(api)
|
|
35
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,11 +1,10 @@
|
|
|
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';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
10
9
|
import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
|
|
11
10
|
import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
|
|
@@ -25,11 +24,11 @@ export var expandPlugin = function expandPlugin(_ref) {
|
|
|
25
24
|
var _api$blockMenu;
|
|
26
25
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
27
26
|
type: 'block-menu-item',
|
|
28
|
-
key:
|
|
27
|
+
key: TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM.key,
|
|
29
28
|
parent: {
|
|
30
29
|
type: 'block-menu-section',
|
|
31
|
-
key:
|
|
32
|
-
rank:
|
|
30
|
+
key: TRANSFORM_STRUCTURE_MENU_SECTION.key,
|
|
31
|
+
rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM.key]
|
|
33
32
|
},
|
|
34
33
|
component: createExpandBlockMenuItem(api)
|
|
35
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.8",
|
|
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": "^13.
|
|
52
|
-
"@atlaskit/tokens": "^8.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^13.44.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,7 +57,7 @@
|
|
|
57
57
|
"w3c-keyname": "^2.1.8"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^110.
|
|
60
|
+
"@atlaskit/editor-common": "^110.35.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"
|
|
@@ -115,9 +115,6 @@
|
|
|
115
115
|
},
|
|
116
116
|
"platform_editor_adf_with_localid": {
|
|
117
117
|
"type": "boolean"
|
|
118
|
-
},
|
|
119
|
-
"platform_editor_block_menu_format_rank_revised": {
|
|
120
|
-
"type": "boolean"
|
|
121
118
|
}
|
|
122
119
|
}
|
|
123
120
|
}
|