@atlaskit/editor-plugin-list 18.1.6 → 18.1.7
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/ui/index.js +9 -4
- package/dist/es2019/ui/index.js +10 -5
- package/dist/esm/ui/index.js +10 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-list
|
|
2
2
|
|
|
3
|
+
## 18.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`68342e8a23fec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/68342e8a23fec) -
|
|
8
|
+
Group text transforms under the renamed Text formatting section in the block menu behind the
|
|
9
|
+
`platform_editor_block_menu_small_text` experiment.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 18.1.6
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -5,18 +5,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getListComponents = void 0;
|
|
7
7
|
var _blockMenu = require("@atlaskit/editor-common/block-menu");
|
|
8
|
+
var _rank = require("@atlaskit/editor-common/block-menu/rank");
|
|
9
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
8
10
|
var _BulletedListBlockMenuItem = require("./BulletedListBlockMenuItem");
|
|
9
11
|
var _NumberedListBlockMenuItem = require("./NumberedListBlockMenuItem");
|
|
10
12
|
var BULLET_LIST_NODE_NAME = 'bulletList';
|
|
11
13
|
var ORDERED_LIST_NODE_NAME = 'orderedList';
|
|
12
14
|
var getListComponents = exports.getListComponents = function getListComponents(api) {
|
|
15
|
+
var isSmallTextExperimentEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_block_menu_small_text');
|
|
16
|
+
var parentKey = isSmallTextExperimentEnabled ? _blockMenu.TRANSFORM_HEADINGS_MENU_SECTION.key : _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION.key;
|
|
17
|
+
var rank = isSmallTextExperimentEnabled ? _rank.TRANSFORM_TEXT_FORMATTING_MENU_SECTION_RANK : _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION_RANK;
|
|
13
18
|
return [{
|
|
14
19
|
type: 'block-menu-item',
|
|
15
20
|
key: _blockMenu.TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM.key,
|
|
16
21
|
parent: {
|
|
17
22
|
type: 'block-menu-section',
|
|
18
|
-
key:
|
|
19
|
-
rank:
|
|
23
|
+
key: parentKey,
|
|
24
|
+
rank: rank[_blockMenu.TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM.key]
|
|
20
25
|
},
|
|
21
26
|
component: (0, _BulletedListBlockMenuItem.createBulletedListBlockMenuItem)({
|
|
22
27
|
api: api
|
|
@@ -30,8 +35,8 @@ var getListComponents = exports.getListComponents = function getListComponents(a
|
|
|
30
35
|
key: _blockMenu.TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM.key,
|
|
31
36
|
parent: {
|
|
32
37
|
type: 'block-menu-section',
|
|
33
|
-
key:
|
|
34
|
-
rank:
|
|
38
|
+
key: parentKey,
|
|
39
|
+
rank: rank[_blockMenu.TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM.key]
|
|
35
40
|
},
|
|
36
41
|
component: (0, _NumberedListBlockMenuItem.createNumberedListBlockMenuItem)({
|
|
37
42
|
api: api
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
1
|
+
import { TRANSFORM_HEADINGS_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
2
|
+
import { TRANSFORM_TEXT_FORMATTING_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu/rank';
|
|
3
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
2
4
|
import { createBulletedListBlockMenuItem } from './BulletedListBlockMenuItem';
|
|
3
5
|
import { createNumberedListBlockMenuItem } from './NumberedListBlockMenuItem';
|
|
4
6
|
const BULLET_LIST_NODE_NAME = 'bulletList';
|
|
5
7
|
const ORDERED_LIST_NODE_NAME = 'orderedList';
|
|
6
8
|
export const getListComponents = api => {
|
|
9
|
+
const isSmallTextExperimentEnabled = isExperimentEnabled('platform_editor_block_menu_small_text');
|
|
10
|
+
const parentKey = isSmallTextExperimentEnabled ? TRANSFORM_HEADINGS_MENU_SECTION.key : TRANSFORM_STRUCTURE_MENU_SECTION.key;
|
|
11
|
+
const rank = isSmallTextExperimentEnabled ? TRANSFORM_TEXT_FORMATTING_MENU_SECTION_RANK : TRANSFORM_STRUCTURE_MENU_SECTION_RANK;
|
|
7
12
|
return [{
|
|
8
13
|
type: 'block-menu-item',
|
|
9
14
|
key: TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM.key,
|
|
10
15
|
parent: {
|
|
11
16
|
type: 'block-menu-section',
|
|
12
|
-
key:
|
|
13
|
-
rank:
|
|
17
|
+
key: parentKey,
|
|
18
|
+
rank: rank[TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM.key]
|
|
14
19
|
},
|
|
15
20
|
component: createBulletedListBlockMenuItem({
|
|
16
21
|
api
|
|
@@ -24,8 +29,8 @@ export const getListComponents = api => {
|
|
|
24
29
|
key: TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM.key,
|
|
25
30
|
parent: {
|
|
26
31
|
type: 'block-menu-section',
|
|
27
|
-
key:
|
|
28
|
-
rank:
|
|
32
|
+
key: parentKey,
|
|
33
|
+
rank: rank[TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM.key]
|
|
29
34
|
},
|
|
30
35
|
component: createNumberedListBlockMenuItem({
|
|
31
36
|
api
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
1
|
+
import { TRANSFORM_HEADINGS_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
2
|
+
import { TRANSFORM_TEXT_FORMATTING_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu/rank';
|
|
3
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
2
4
|
import { createBulletedListBlockMenuItem } from './BulletedListBlockMenuItem';
|
|
3
5
|
import { createNumberedListBlockMenuItem } from './NumberedListBlockMenuItem';
|
|
4
6
|
var BULLET_LIST_NODE_NAME = 'bulletList';
|
|
5
7
|
var ORDERED_LIST_NODE_NAME = 'orderedList';
|
|
6
8
|
export var getListComponents = function getListComponents(api) {
|
|
9
|
+
var isSmallTextExperimentEnabled = isExperimentEnabled('platform_editor_block_menu_small_text');
|
|
10
|
+
var parentKey = isSmallTextExperimentEnabled ? TRANSFORM_HEADINGS_MENU_SECTION.key : TRANSFORM_STRUCTURE_MENU_SECTION.key;
|
|
11
|
+
var rank = isSmallTextExperimentEnabled ? TRANSFORM_TEXT_FORMATTING_MENU_SECTION_RANK : TRANSFORM_STRUCTURE_MENU_SECTION_RANK;
|
|
7
12
|
return [{
|
|
8
13
|
type: 'block-menu-item',
|
|
9
14
|
key: TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM.key,
|
|
10
15
|
parent: {
|
|
11
16
|
type: 'block-menu-section',
|
|
12
|
-
key:
|
|
13
|
-
rank:
|
|
17
|
+
key: parentKey,
|
|
18
|
+
rank: rank[TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM.key]
|
|
14
19
|
},
|
|
15
20
|
component: createBulletedListBlockMenuItem({
|
|
16
21
|
api: api
|
|
@@ -24,8 +29,8 @@ export var getListComponents = function getListComponents(api) {
|
|
|
24
29
|
key: TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM.key,
|
|
25
30
|
parent: {
|
|
26
31
|
type: 'block-menu-section',
|
|
27
|
-
key:
|
|
28
|
-
rank:
|
|
32
|
+
key: parentKey,
|
|
33
|
+
rank: rank[TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM.key]
|
|
29
34
|
},
|
|
30
35
|
component: createNumberedListBlockMenuItem({
|
|
31
36
|
api: api
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-list",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.7",
|
|
4
4
|
"description": "List plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"atlaskit:src": "src/index.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@atlaskit/adf-schema": "^57.
|
|
22
|
+
"@atlaskit/adf-schema": "^57.3.0",
|
|
23
23
|
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
24
24
|
"@atlaskit/editor-plugin-block-menu": "^15.1.0",
|
|
25
25
|
"@atlaskit/editor-plugin-feature-flags": "^15.1.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@babel/runtime": "^7.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@atlaskit/editor-common": "^120.
|
|
40
|
+
"@atlaskit/editor-common": "^120.15.0",
|
|
41
41
|
"react": "^18.2.0 || ^19.2.0",
|
|
42
42
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
43
43
|
},
|