@atlaskit/editor-plugin-expand 6.2.2 → 6.2.3
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 +9 -0
- package/dist/cjs/legacyExpand/plugin.js +2 -1
- package/dist/cjs/singlePlayerExpand/plugin.js +1 -1
- package/dist/es2019/legacyExpand/plugin.js +3 -2
- package/dist/es2019/singlePlayerExpand/plugin.js +2 -2
- package/dist/esm/legacyExpand/plugin.js +3 -2
- package/dist/esm/singlePlayerExpand/plugin.js +2 -2
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 6.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b878645133984`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b878645133984) -
|
|
8
|
+
[ux] Adds revised ranks to use in Turn into menu. It will group the headings together at the top
|
|
9
|
+
of the menu.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 6.2.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -12,6 +12,7 @@ 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");
|
|
15
16
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
16
17
|
var _ExpandBlockMenuItem = require("../ui/ExpandBlockMenuItem");
|
|
17
18
|
var _commands = require("./commands");
|
|
@@ -33,7 +34,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
|
|
|
33
34
|
parent: {
|
|
34
35
|
type: 'block-menu-section',
|
|
35
36
|
key: _blockMenu.FORMAT_MENU_ITEM.key,
|
|
36
|
-
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_EXPAND_MENU_ITEM.key]
|
|
37
|
+
rank: (0, _platformFeatureFlags.fg)('platform_editor_block_menu_format_rank_revised') ? _blockMenu.FORMAT_NESTED_MENU_RANK_REVISED[_blockMenu.FORMAT_EXPAND_MENU_ITEM.key] : _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_EXPAND_MENU_ITEM.key]
|
|
37
38
|
},
|
|
38
39
|
component: (0, _ExpandBlockMenuItem.createExpandBlockMenuItem)(api)
|
|
39
40
|
}]);
|
|
@@ -33,7 +33,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
|
|
|
33
33
|
parent: {
|
|
34
34
|
type: 'block-menu-section',
|
|
35
35
|
key: _blockMenu.FORMAT_MENU_ITEM.key,
|
|
36
|
-
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_EXPAND_MENU_ITEM.key]
|
|
36
|
+
rank: (0, _platformFeatureFlags.fg)('platform_editor_block_menu_format_rank_revised') ? _blockMenu.FORMAT_NESTED_MENU_RANK_REVISED[_blockMenu.FORMAT_EXPAND_MENU_ITEM.key] : _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_EXPAND_MENU_ITEM.key]
|
|
37
37
|
},
|
|
38
38
|
component: (0, _ExpandBlockMenuItem.createExpandBlockMenuItem)(api)
|
|
39
39
|
}]);
|
|
@@ -1,10 +1,11 @@
|
|
|
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 { FORMAT_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
|
|
4
|
+
import { FORMAT_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED } 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';
|
|
8
9
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
9
10
|
import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
|
|
10
11
|
import { createExpandNode, insertExpand, insertExpandWithInputMethod, toggleExpandWithMatch } from './commands';
|
|
@@ -27,7 +28,7 @@ export let expandPlugin = ({
|
|
|
27
28
|
parent: {
|
|
28
29
|
type: 'block-menu-section',
|
|
29
30
|
key: FORMAT_MENU_ITEM.key,
|
|
30
|
-
rank: FORMAT_NESTED_MENU_RANK[FORMAT_EXPAND_MENU_ITEM.key]
|
|
31
|
+
rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_EXPAND_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_EXPAND_MENU_ITEM.key]
|
|
31
32
|
},
|
|
32
33
|
component: createExpandBlockMenuItem(api)
|
|
33
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 { FORMAT_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
|
|
4
|
+
import { FORMAT_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED } 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';
|
|
@@ -27,7 +27,7 @@ export let expandPlugin = ({
|
|
|
27
27
|
parent: {
|
|
28
28
|
type: 'block-menu-section',
|
|
29
29
|
key: FORMAT_MENU_ITEM.key,
|
|
30
|
-
rank: FORMAT_NESTED_MENU_RANK[FORMAT_EXPAND_MENU_ITEM.key]
|
|
30
|
+
rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_EXPAND_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_EXPAND_MENU_ITEM.key]
|
|
31
31
|
},
|
|
32
32
|
component: createExpandBlockMenuItem(api)
|
|
33
33
|
}]);
|
|
@@ -1,10 +1,11 @@
|
|
|
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 { FORMAT_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
|
|
4
|
+
import { FORMAT_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED } 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';
|
|
8
9
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
9
10
|
import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
|
|
10
11
|
import { createExpandNode, insertExpand, insertExpandWithInputMethod, toggleExpandWithMatch as _toggleExpandWithMatch } from './commands';
|
|
@@ -27,7 +28,7 @@ export var expandPlugin = function expandPlugin(_ref) {
|
|
|
27
28
|
parent: {
|
|
28
29
|
type: 'block-menu-section',
|
|
29
30
|
key: FORMAT_MENU_ITEM.key,
|
|
30
|
-
rank: FORMAT_NESTED_MENU_RANK[FORMAT_EXPAND_MENU_ITEM.key]
|
|
31
|
+
rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_EXPAND_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_EXPAND_MENU_ITEM.key]
|
|
31
32
|
},
|
|
32
33
|
component: createExpandBlockMenuItem(api)
|
|
33
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 { FORMAT_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
|
|
4
|
+
import { FORMAT_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED } 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';
|
|
@@ -27,7 +27,7 @@ export var expandPlugin = function expandPlugin(_ref) {
|
|
|
27
27
|
parent: {
|
|
28
28
|
type: 'block-menu-section',
|
|
29
29
|
key: FORMAT_MENU_ITEM.key,
|
|
30
|
-
rank: FORMAT_NESTED_MENU_RANK[FORMAT_EXPAND_MENU_ITEM.key]
|
|
30
|
+
rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_EXPAND_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_EXPAND_MENU_ITEM.key]
|
|
31
31
|
},
|
|
32
32
|
component: createExpandBlockMenuItem(api)
|
|
33
33
|
}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.3",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/icon": "^28.2.0",
|
|
47
47
|
"@atlaskit/icon-lab": "^5.7.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^12.28.0",
|
|
50
50
|
"@atlaskit/tokens": "^6.3.0",
|
|
51
51
|
"@atlaskit/tooltip": "^20.4.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
@@ -116,6 +116,9 @@
|
|
|
116
116
|
},
|
|
117
117
|
"platform_editor_adf_with_localid": {
|
|
118
118
|
"type": "boolean"
|
|
119
|
+
},
|
|
120
|
+
"platform_editor_block_menu_format_rank_revised": {
|
|
121
|
+
"type": "boolean"
|
|
119
122
|
}
|
|
120
123
|
}
|
|
121
124
|
}
|