@atlaskit/editor-plugin-toolbar-lists-indentation 1.9.0 → 1.9.2
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 +15 -0
- package/dist/cjs/ui/Toolbar.js +6 -1
- package/dist/es2019/ui/Toolbar.js +6 -1
- package/dist/esm/ui/Toolbar.js +6 -1
- package/package.json +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar-lists-indentation
|
|
2
2
|
|
|
3
|
+
## 1.9.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#125353](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/125353)
|
|
8
|
+
[`77847728bf617`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/77847728bf617) -
|
|
9
|
+
Migrate icons in Editor primary toolbar
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 1.9.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.9.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -12,10 +12,12 @@ var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
|
12
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
13
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
14
14
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
15
|
+
var _bulletedListEditorBulletList = _interopRequireDefault(require("@atlaskit/icon/core/migration/bulleted-list--editor-bullet-list"));
|
|
15
16
|
var _bulletList = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/bullet-list"));
|
|
16
17
|
var _indent = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/indent"));
|
|
17
18
|
var _numberList = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/number-list"));
|
|
18
19
|
var _outdent = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/outdent"));
|
|
20
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
21
|
/**
|
|
20
22
|
* @jsxRuntime classic
|
|
21
23
|
* @jsx jsx
|
|
@@ -85,7 +87,10 @@ function Toolbar(props) {
|
|
|
85
87
|
description: labelUnorderedList,
|
|
86
88
|
keymap: _keymaps.toggleBulletList
|
|
87
89
|
}),
|
|
88
|
-
iconBefore: (0, _react2.jsx)(
|
|
90
|
+
iconBefore: (0, _platformFeatureFlags.fg)('platform_editor_migration_icon_and_typography') ? (0, _react2.jsx)(_bulletedListEditorBulletList.default, {
|
|
91
|
+
label: "",
|
|
92
|
+
color: "currentColor"
|
|
93
|
+
}) : (0, _react2.jsx)(_bulletList.default, {
|
|
89
94
|
label: ""
|
|
90
95
|
})
|
|
91
96
|
}), (0, _react2.jsx)(_uiMenu.ToolbarButton, {
|
|
@@ -11,10 +11,12 @@ import { getAriaKeyshortcuts, toggleBulletList as toggleBulletListKeymap, indent
|
|
|
11
11
|
import { indentationMessages, listMessages as messages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { buttonGroupStyle, separatorStyles } from '@atlaskit/editor-common/styles';
|
|
13
13
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
14
|
+
import BulletedListIcon from '@atlaskit/icon/core/migration/bulleted-list--editor-bullet-list';
|
|
14
15
|
import BulletListIcon from '@atlaskit/icon/glyph/editor/bullet-list';
|
|
15
16
|
import IndentIcon from '@atlaskit/icon/glyph/editor/indent';
|
|
16
17
|
import NumberListIcon from '@atlaskit/icon/glyph/editor/number-list';
|
|
17
18
|
import OutdentIcon from '@atlaskit/icon/glyph/editor/outdent';
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
20
|
export function Toolbar(props) {
|
|
19
21
|
const {
|
|
20
22
|
formatMessage
|
|
@@ -76,7 +78,10 @@ export function Toolbar(props) {
|
|
|
76
78
|
description: labelUnorderedList,
|
|
77
79
|
keymap: toggleBulletListKeymap
|
|
78
80
|
}),
|
|
79
|
-
iconBefore: jsx(
|
|
81
|
+
iconBefore: fg('platform_editor_migration_icon_and_typography') ? jsx(BulletedListIcon, {
|
|
82
|
+
label: "",
|
|
83
|
+
color: "currentColor"
|
|
84
|
+
}) : jsx(BulletListIcon, {
|
|
80
85
|
label: ""
|
|
81
86
|
})
|
|
82
87
|
}), jsx(ToolbarButton, {
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -11,10 +11,12 @@ import { getAriaKeyshortcuts, toggleBulletList as toggleBulletListKeymap, indent
|
|
|
11
11
|
import { indentationMessages, listMessages as messages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { buttonGroupStyle, separatorStyles } from '@atlaskit/editor-common/styles';
|
|
13
13
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
14
|
+
import BulletedListIcon from '@atlaskit/icon/core/migration/bulleted-list--editor-bullet-list';
|
|
14
15
|
import BulletListIcon from '@atlaskit/icon/glyph/editor/bullet-list';
|
|
15
16
|
import IndentIcon from '@atlaskit/icon/glyph/editor/indent';
|
|
16
17
|
import NumberListIcon from '@atlaskit/icon/glyph/editor/number-list';
|
|
17
18
|
import OutdentIcon from '@atlaskit/icon/glyph/editor/outdent';
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
20
|
export function Toolbar(props) {
|
|
19
21
|
var _useIntl = useIntl(),
|
|
20
22
|
formatMessage = _useIntl.formatMessage;
|
|
@@ -77,7 +79,10 @@ export function Toolbar(props) {
|
|
|
77
79
|
description: labelUnorderedList,
|
|
78
80
|
keymap: toggleBulletListKeymap
|
|
79
81
|
}),
|
|
80
|
-
iconBefore: jsx(
|
|
82
|
+
iconBefore: fg('platform_editor_migration_icon_and_typography') ? jsx(BulletedListIcon, {
|
|
83
|
+
label: "",
|
|
84
|
+
color: "currentColor"
|
|
85
|
+
}) : jsx(BulletListIcon, {
|
|
81
86
|
label: ""
|
|
82
87
|
})
|
|
83
88
|
}), jsx(ToolbarButton, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^87.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.6.0",
|
|
38
38
|
"@atlaskit/editor-plugin-block-type": "^3.10.0",
|
|
39
39
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^2.3.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
45
45
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
46
|
-
"@atlaskit/icon": "^22.
|
|
46
|
+
"@atlaskit/icon": "^22.8.0",
|
|
47
|
+
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
47
48
|
"@babel/runtime": "^7.0.0",
|
|
48
49
|
"@emotion/react": "^11.7.1"
|
|
49
50
|
},
|
|
@@ -97,5 +98,10 @@
|
|
|
97
98
|
"import-no-extraneous-disable-for-examples-and-docs"
|
|
98
99
|
]
|
|
99
100
|
}
|
|
101
|
+
},
|
|
102
|
+
"platform-feature-flags": {
|
|
103
|
+
"platform_editor_migration_icon_and_typography": {
|
|
104
|
+
"type": "boolean"
|
|
105
|
+
}
|
|
100
106
|
}
|
|
101
107
|
}
|