@atlaskit/editor-plugin-toolbar-lists-indentation 1.14.7 → 1.14.9
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 +14 -0
- package/dist/cjs/ui/Toolbar.js +8 -1
- package/dist/cjs/ui/ToolbarDropdown.js +1 -1
- package/dist/es2019/ui/Toolbar.js +9 -2
- package/dist/es2019/ui/ToolbarDropdown.js +2 -2
- package/dist/esm/ui/Toolbar.js +9 -2
- package/dist/esm/ui/ToolbarDropdown.js +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar-lists-indentation
|
|
2
2
|
|
|
3
|
+
## 1.14.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#100162](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100162)
|
|
8
|
+
[`e80e57fc37719`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e80e57fc37719) -
|
|
9
|
+
[ux] ED-26089: Add 4px gap to main nav bar items
|
|
10
|
+
|
|
11
|
+
## 1.14.8
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 1.14.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -16,6 +16,7 @@ var _listBulletedEditorBulletList = _interopRequireDefault(require("@atlaskit/ic
|
|
|
16
16
|
var _listNumberedEditorNumberList = _interopRequireDefault(require("@atlaskit/icon/core/migration/list-numbered--editor-number-list"));
|
|
17
17
|
var _textIndentLeftEditorOutdent = _interopRequireDefault(require("@atlaskit/icon/core/migration/text-indent-left--editor-outdent"));
|
|
18
18
|
var _textIndentRightEditorIndent = _interopRequireDefault(require("@atlaskit/icon/core/migration/text-indent-right--editor-indent"));
|
|
19
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
20
|
/**
|
|
20
21
|
* @jsxRuntime classic
|
|
21
22
|
* @jsx jsx
|
|
@@ -67,7 +68,13 @@ function Toolbar(props) {
|
|
|
67
68
|
return (
|
|
68
69
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
69
70
|
(0, _react2.jsx)("span", {
|
|
70
|
-
css:
|
|
71
|
+
css:
|
|
72
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration, @atlaskit/platform/ensure-feature-flag-prefix
|
|
73
|
+
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ?
|
|
74
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
75
|
+
_styles.buttonGroupStyle :
|
|
76
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
77
|
+
_styles.buttonGroupStyleBeforeVisualRefresh
|
|
71
78
|
}, (0, _react2.jsx)("div", {
|
|
72
79
|
role: "group",
|
|
73
80
|
"aria-label": labelListsFormat
|
|
@@ -99,7 +99,7 @@ function ToolbarDropdown(props) {
|
|
|
99
99
|
}
|
|
100
100
|
}, (0, _react2.jsx)(_uiMenu.ToolbarButton, {
|
|
101
101
|
spacing: isReducedSpacing ? reducedSpacing : 'default',
|
|
102
|
-
selected: bulletListActive || orderedListActive,
|
|
102
|
+
selected: bulletListActive || orderedListActive || isDropdownOpen,
|
|
103
103
|
"aria-expanded": isDropdownOpen,
|
|
104
104
|
"aria-haspopup": true,
|
|
105
105
|
"aria-label": labelLists,
|
|
@@ -9,12 +9,13 @@ import { jsx } from '@emotion/react';
|
|
|
9
9
|
import { useIntl } from 'react-intl-next';
|
|
10
10
|
import { getAriaKeyshortcuts, toggleBulletList as toggleBulletListKeymap, indent as toggleIndentKeymap, toggleOrderedList as toggleOrderedListKeymap, outdent as toggleOutdentKeymap, tooltip, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
11
11
|
import { indentationMessages, listMessages as messages } from '@atlaskit/editor-common/messages';
|
|
12
|
-
import { buttonGroupStyle, separatorStyles } from '@atlaskit/editor-common/styles';
|
|
12
|
+
import { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, 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
15
|
import NumberListIcon from '@atlaskit/icon/core/migration/list-numbered--editor-number-list';
|
|
16
16
|
import OutdentIcon from '@atlaskit/icon/core/migration/text-indent-left--editor-outdent';
|
|
17
17
|
import IndentIcon from '@atlaskit/icon/core/migration/text-indent-right--editor-indent';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
19
|
export function Toolbar(props) {
|
|
19
20
|
const {
|
|
20
21
|
formatMessage
|
|
@@ -58,7 +59,13 @@ export function Toolbar(props) {
|
|
|
58
59
|
return (
|
|
59
60
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
60
61
|
jsx("span", {
|
|
61
|
-
css:
|
|
62
|
+
css:
|
|
63
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration, @atlaskit/platform/ensure-feature-flag-prefix
|
|
64
|
+
fg('platform-visual-refresh-icons') ?
|
|
65
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
66
|
+
buttonGroupStyle :
|
|
67
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
68
|
+
buttonGroupStyleBeforeVisualRefresh
|
|
62
69
|
}, jsx("div", {
|
|
63
70
|
role: "group",
|
|
64
71
|
"aria-label": labelListsFormat
|
|
@@ -87,7 +87,7 @@ export function ToolbarDropdown(props) {
|
|
|
87
87
|
}
|
|
88
88
|
}, jsx(ToolbarButton, {
|
|
89
89
|
spacing: isReducedSpacing ? reducedSpacing : 'default',
|
|
90
|
-
selected: bulletListActive || orderedListActive,
|
|
90
|
+
selected: bulletListActive || orderedListActive || isDropdownOpen,
|
|
91
91
|
"aria-expanded": isDropdownOpen,
|
|
92
92
|
"aria-haspopup": true,
|
|
93
93
|
"aria-label": labelLists,
|
|
@@ -127,7 +127,7 @@ function useItems(props) {
|
|
|
127
127
|
} = useIntl();
|
|
128
128
|
const labelUnorderedList = formatMessage(listMessages.unorderedList);
|
|
129
129
|
const labelOrderedList = formatMessage(listMessages.orderedList);
|
|
130
|
-
|
|
130
|
+
const items = [{
|
|
131
131
|
key: 'unorderedList',
|
|
132
132
|
content: labelUnorderedList,
|
|
133
133
|
value: {
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -9,12 +9,13 @@ import { jsx } from '@emotion/react';
|
|
|
9
9
|
import { useIntl } from 'react-intl-next';
|
|
10
10
|
import { getAriaKeyshortcuts, toggleBulletList as toggleBulletListKeymap, indent as toggleIndentKeymap, toggleOrderedList as toggleOrderedListKeymap, outdent as toggleOutdentKeymap, tooltip, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
11
11
|
import { indentationMessages, listMessages as messages } from '@atlaskit/editor-common/messages';
|
|
12
|
-
import { buttonGroupStyle, separatorStyles } from '@atlaskit/editor-common/styles';
|
|
12
|
+
import { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, 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
15
|
import NumberListIcon from '@atlaskit/icon/core/migration/list-numbered--editor-number-list';
|
|
16
16
|
import OutdentIcon from '@atlaskit/icon/core/migration/text-indent-left--editor-outdent';
|
|
17
17
|
import IndentIcon from '@atlaskit/icon/core/migration/text-indent-right--editor-indent';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
19
|
export function Toolbar(props) {
|
|
19
20
|
var _useIntl = useIntl(),
|
|
20
21
|
formatMessage = _useIntl.formatMessage;
|
|
@@ -59,7 +60,13 @@ export function Toolbar(props) {
|
|
|
59
60
|
return (
|
|
60
61
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
61
62
|
jsx("span", {
|
|
62
|
-
css:
|
|
63
|
+
css:
|
|
64
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration, @atlaskit/platform/ensure-feature-flag-prefix
|
|
65
|
+
fg('platform-visual-refresh-icons') ?
|
|
66
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
67
|
+
buttonGroupStyle :
|
|
68
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
69
|
+
buttonGroupStyleBeforeVisualRefresh
|
|
63
70
|
}, jsx("div", {
|
|
64
71
|
role: "group",
|
|
65
72
|
"aria-label": labelListsFormat
|
|
@@ -91,7 +91,7 @@ export function ToolbarDropdown(props) {
|
|
|
91
91
|
}
|
|
92
92
|
}, jsx(ToolbarButton, {
|
|
93
93
|
spacing: isReducedSpacing ? reducedSpacing : 'default',
|
|
94
|
-
selected: bulletListActive || orderedListActive,
|
|
94
|
+
selected: bulletListActive || orderedListActive || isDropdownOpen,
|
|
95
95
|
"aria-expanded": isDropdownOpen,
|
|
96
96
|
"aria-haspopup": true,
|
|
97
97
|
"aria-label": labelLists,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.9",
|
|
4
4
|
"description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^98.2.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
36
|
-
"@atlaskit/editor-plugin-block-type": "^4.
|
|
36
|
+
"@atlaskit/editor-plugin-block-type": "^4.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
38
38
|
"@atlaskit/editor-plugin-indentation": "^1.8.0",
|
|
39
39
|
"@atlaskit/editor-plugin-list": "^3.9.0",
|
|
@@ -41,9 +41,10 @@
|
|
|
41
41
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^2.12.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
43
43
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
44
|
-
"@atlaskit/icon": "^23.
|
|
44
|
+
"@atlaskit/icon": "^23.2.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^2.33.0",
|
|
47
|
+
"@atlaskit/tokens": "2.5.1",
|
|
47
48
|
"@babel/runtime": "^7.0.0",
|
|
48
49
|
"@emotion/react": "^11.7.1"
|
|
49
50
|
},
|