@atlaskit/editor-plugin-expand 6.2.2 → 6.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 +20 -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 +12 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 6.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
|
+
## 6.2.3
|
|
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
|
## 6.2.2
|
|
4
24
|
|
|
5
25
|
### 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.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,24 +29,24 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^51.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.2.0",
|
|
33
33
|
"@atlaskit/button": "^23.4.0",
|
|
34
|
-
"@atlaskit/editor-plugin-analytics": "^5.
|
|
34
|
+
"@atlaskit/editor-plugin-analytics": "^5.3.0",
|
|
35
35
|
"@atlaskit/editor-plugin-block-menu": "^3.2.0",
|
|
36
36
|
"@atlaskit/editor-plugin-decorations": "^5.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-disabled": "^5.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-editor-viewmode": "^7.0.0",
|
|
39
|
-
"@atlaskit/editor-plugin-local-id": "^3.
|
|
39
|
+
"@atlaskit/editor-plugin-local-id": "^3.3.0",
|
|
40
40
|
"@atlaskit/editor-plugin-selection": "^5.0.0",
|
|
41
41
|
"@atlaskit/editor-plugin-selection-marker": "^5.0.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
43
43
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
44
44
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
45
45
|
"@atlaskit/editor-toolbar": "^0.9.0",
|
|
46
|
-
"@atlaskit/icon": "^28.
|
|
46
|
+
"@atlaskit/icon": "^28.3.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.30.0",
|
|
50
50
|
"@atlaskit/tokens": "^6.3.0",
|
|
51
51
|
"@atlaskit/tooltip": "^20.4.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"w3c-keyname": "^2.1.8"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@atlaskit/editor-common": "^109.
|
|
58
|
+
"@atlaskit/editor-common": "^109.16.0",
|
|
59
59
|
"react": "^18.2.0",
|
|
60
60
|
"react-dom": "^18.2.0",
|
|
61
61
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"@atlaskit/editor-plugin-content-insertion": "^5.0.0",
|
|
66
66
|
"@atlaskit/editor-plugin-guideline": "^5.0.0",
|
|
67
67
|
"@atlaskit/editor-plugin-quick-insert": "^5.0.0",
|
|
68
|
-
"@atlaskit/editor-plugin-table": "^14.
|
|
69
|
-
"@atlaskit/editor-plugin-type-ahead": "^5.
|
|
68
|
+
"@atlaskit/editor-plugin-table": "^14.3.0",
|
|
69
|
+
"@atlaskit/editor-plugin-type-ahead": "^5.3.0",
|
|
70
70
|
"@atlaskit/editor-plugin-width": "^6.0.0",
|
|
71
71
|
"@testing-library/react": "^13.4.0",
|
|
72
72
|
"react-test-renderer": "^18.2.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
|
}
|