@atlaskit/editor-plugin-toolbar-lists-indentation 1.12.1 → 1.12.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 +8 -0
- package/dist/cjs/ui/Toolbar.js +12 -6
- package/dist/es2019/ui/Toolbar.js +9 -3
- package/dist/esm/ui/Toolbar.js +9 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar-lists-indentation
|
|
2
2
|
|
|
3
|
+
## 1.12.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#135500](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/135500)
|
|
8
|
+
[`d97d77c47b7cb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d97d77c47b7cb) -
|
|
9
|
+
[ux] Migrate new ADS icons on Editor primary toolbar
|
|
10
|
+
|
|
3
11
|
## 1.12.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -13,9 +13,9 @@ 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
15
|
var _listBulletedEditorBulletList = _interopRequireDefault(require("@atlaskit/icon/core/migration/list-bulleted--editor-bullet-list"));
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
16
|
+
var _listNumberedEditorNumberList = _interopRequireDefault(require("@atlaskit/icon/core/migration/list-numbered--editor-number-list"));
|
|
17
|
+
var _textIndentLeftEditorOutdent = _interopRequireDefault(require("@atlaskit/icon/core/migration/text-indent-left--editor-outdent"));
|
|
18
|
+
var _textIndentRightEditorIndent = _interopRequireDefault(require("@atlaskit/icon/core/migration/text-indent-right--editor-indent"));
|
|
19
19
|
/**
|
|
20
20
|
* @jsxRuntime classic
|
|
21
21
|
* @jsx jsx
|
|
@@ -104,7 +104,9 @@ function Toolbar(props) {
|
|
|
104
104
|
description: labelOrderedList,
|
|
105
105
|
keymap: _keymaps.toggleOrderedList
|
|
106
106
|
}),
|
|
107
|
-
iconBefore: (0, _react2.jsx)(
|
|
107
|
+
iconBefore: (0, _react2.jsx)(_listNumberedEditorNumberList.default, {
|
|
108
|
+
color: "currentColor",
|
|
109
|
+
spacing: "spacious",
|
|
108
110
|
label: ""
|
|
109
111
|
})
|
|
110
112
|
}), showIndentationButtons && (0, _react2.jsx)(_uiMenu.ToolbarButton, {
|
|
@@ -113,7 +115,9 @@ function Toolbar(props) {
|
|
|
113
115
|
ref: outdentButtonRef,
|
|
114
116
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
115
117
|
onClick: handleOnItemActivated('outdent'),
|
|
116
|
-
iconBefore: (0, _react2.jsx)(
|
|
118
|
+
iconBefore: (0, _react2.jsx)(_textIndentLeftEditorOutdent.default, {
|
|
119
|
+
color: "currentColor",
|
|
120
|
+
spacing: "spacious",
|
|
117
121
|
label: ""
|
|
118
122
|
}),
|
|
119
123
|
disabled: outdentDisabled || disabled,
|
|
@@ -129,7 +133,9 @@ function Toolbar(props) {
|
|
|
129
133
|
ref: indentButtonRef,
|
|
130
134
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
131
135
|
onClick: handleOnItemActivated('indent'),
|
|
132
|
-
iconBefore: (0, _react2.jsx)(
|
|
136
|
+
iconBefore: (0, _react2.jsx)(_textIndentRightEditorIndent.default, {
|
|
137
|
+
color: "currentColor",
|
|
138
|
+
spacing: "spacious",
|
|
133
139
|
label: ""
|
|
134
140
|
}),
|
|
135
141
|
disabled: indentDisabled || disabled,
|
|
@@ -12,9 +12,9 @@ import { indentationMessages, listMessages as messages } from '@atlaskit/editor-
|
|
|
12
12
|
import { buttonGroupStyle, separatorStyles } from '@atlaskit/editor-common/styles';
|
|
13
13
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
14
14
|
import BulletedListIcon from '@atlaskit/icon/core/migration/list-bulleted--editor-bullet-list';
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
15
|
+
import NumberListIcon from '@atlaskit/icon/core/migration/list-numbered--editor-number-list';
|
|
16
|
+
import OutdentIcon from '@atlaskit/icon/core/migration/text-indent-left--editor-outdent';
|
|
17
|
+
import IndentIcon from '@atlaskit/icon/core/migration/text-indent-right--editor-indent';
|
|
18
18
|
export function Toolbar(props) {
|
|
19
19
|
const {
|
|
20
20
|
formatMessage
|
|
@@ -96,6 +96,8 @@ export function Toolbar(props) {
|
|
|
96
96
|
keymap: toggleOrderedListKeymap
|
|
97
97
|
}),
|
|
98
98
|
iconBefore: jsx(NumberListIcon, {
|
|
99
|
+
color: "currentColor",
|
|
100
|
+
spacing: "spacious",
|
|
99
101
|
label: ""
|
|
100
102
|
})
|
|
101
103
|
}), showIndentationButtons && jsx(ToolbarButton, {
|
|
@@ -105,6 +107,8 @@ export function Toolbar(props) {
|
|
|
105
107
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
106
108
|
onClick: handleOnItemActivated('outdent'),
|
|
107
109
|
iconBefore: jsx(OutdentIcon, {
|
|
110
|
+
color: "currentColor",
|
|
111
|
+
spacing: "spacious",
|
|
108
112
|
label: ""
|
|
109
113
|
}),
|
|
110
114
|
disabled: outdentDisabled || disabled,
|
|
@@ -121,6 +125,8 @@ export function Toolbar(props) {
|
|
|
121
125
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
122
126
|
onClick: handleOnItemActivated('indent'),
|
|
123
127
|
iconBefore: jsx(IndentIcon, {
|
|
128
|
+
color: "currentColor",
|
|
129
|
+
spacing: "spacious",
|
|
124
130
|
label: ""
|
|
125
131
|
}),
|
|
126
132
|
disabled: indentDisabled || disabled,
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -12,9 +12,9 @@ import { indentationMessages, listMessages as messages } from '@atlaskit/editor-
|
|
|
12
12
|
import { buttonGroupStyle, separatorStyles } from '@atlaskit/editor-common/styles';
|
|
13
13
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
14
14
|
import BulletedListIcon from '@atlaskit/icon/core/migration/list-bulleted--editor-bullet-list';
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
15
|
+
import NumberListIcon from '@atlaskit/icon/core/migration/list-numbered--editor-number-list';
|
|
16
|
+
import OutdentIcon from '@atlaskit/icon/core/migration/text-indent-left--editor-outdent';
|
|
17
|
+
import IndentIcon from '@atlaskit/icon/core/migration/text-indent-right--editor-indent';
|
|
18
18
|
export function Toolbar(props) {
|
|
19
19
|
var _useIntl = useIntl(),
|
|
20
20
|
formatMessage = _useIntl.formatMessage;
|
|
@@ -97,6 +97,8 @@ export function Toolbar(props) {
|
|
|
97
97
|
keymap: toggleOrderedListKeymap
|
|
98
98
|
}),
|
|
99
99
|
iconBefore: jsx(NumberListIcon, {
|
|
100
|
+
color: "currentColor",
|
|
101
|
+
spacing: "spacious",
|
|
100
102
|
label: ""
|
|
101
103
|
})
|
|
102
104
|
}), showIndentationButtons && jsx(ToolbarButton, {
|
|
@@ -106,6 +108,8 @@ export function Toolbar(props) {
|
|
|
106
108
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
107
109
|
onClick: handleOnItemActivated('outdent'),
|
|
108
110
|
iconBefore: jsx(OutdentIcon, {
|
|
111
|
+
color: "currentColor",
|
|
112
|
+
spacing: "spacious",
|
|
109
113
|
label: ""
|
|
110
114
|
}),
|
|
111
115
|
disabled: outdentDisabled || disabled,
|
|
@@ -122,6 +126,8 @@ export function Toolbar(props) {
|
|
|
122
126
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
123
127
|
onClick: handleOnItemActivated('indent'),
|
|
124
128
|
iconBefore: jsx(IndentIcon, {
|
|
129
|
+
color: "currentColor",
|
|
130
|
+
spacing: "spacious",
|
|
125
131
|
label: ""
|
|
126
132
|
}),
|
|
127
133
|
disabled: indentDisabled || disabled,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.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": "^88.
|
|
36
|
+
"@atlaskit/editor-common": "^88.5.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
38
38
|
"@atlaskit/editor-plugin-block-type": "^3.14.0",
|
|
39
39
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|