@atlaskit/editor-plugin-text-formatting 6.1.18 → 7.1.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 +17 -0
- package/dist/cjs/ui/Toolbar/dropdown-toolbar-button.js +2 -5
- package/dist/cjs/ui/Toolbar/index.js +1 -6
- package/dist/cjs/ui/Toolbar/more-button.js +1 -3
- package/dist/cjs/ui/Toolbar/single-toolbar-buttons.js +1 -6
- package/dist/es2019/ui/Toolbar/dropdown-toolbar-button.js +3 -6
- package/dist/es2019/ui/Toolbar/index.js +2 -7
- package/dist/es2019/ui/Toolbar/more-button.js +1 -3
- package/dist/es2019/ui/Toolbar/single-toolbar-buttons.js +2 -7
- package/dist/esm/ui/Toolbar/dropdown-toolbar-button.js +3 -6
- package/dist/esm/ui/Toolbar/index.js +2 -7
- package/dist/esm/ui/Toolbar/more-button.js +1 -3
- package/dist/esm/ui/Toolbar/single-toolbar-buttons.js +2 -7
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-formatting
|
|
2
2
|
|
|
3
|
+
## 7.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`00e69e0b7c839`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/00e69e0b7c839) -
|
|
8
|
+
Clean up and removal of the `platform-visual-refresh-icons` feature flag.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 7.0.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 6.1.18
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -11,7 +11,6 @@ var _styles = require("@atlaskit/editor-common/styles");
|
|
|
11
11
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
12
12
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
|
|
13
13
|
var _textItalic = _interopRequireDefault(require("@atlaskit/icon/core/text-italic"));
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _types = require("./types");
|
|
16
15
|
/**
|
|
17
16
|
* @jsxRuntime classic
|
|
@@ -47,11 +46,9 @@ var DropdownToolbarButton = exports.DropdownToolbarButton = function DropdownToo
|
|
|
47
46
|
onClick: onClick,
|
|
48
47
|
onKeyDown: onKeyDown,
|
|
49
48
|
iconBefore: (0, _react2.jsx)("div", {
|
|
50
|
-
css:
|
|
49
|
+
css:
|
|
51
50
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
52
|
-
_styles.triggerWrapperStylesWithPadding
|
|
53
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
54
|
-
_styles.triggerWrapperStyles,
|
|
51
|
+
_styles.triggerWrapperStylesWithPadding,
|
|
55
52
|
"data-testid": activeIconName ? "editor-toolbar__".concat(activeIconName) : undefined
|
|
56
53
|
}, iconBefore ? iconBefore : (0, _react2.jsx)(_textItalic.default, {
|
|
57
54
|
color: "currentColor",
|
|
@@ -15,7 +15,6 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
15
15
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
16
16
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
17
17
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
18
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
20
19
|
var _utils = require("../../editor-commands/utils");
|
|
21
20
|
var _dropdownMenu = require("./dropdown-menu");
|
|
@@ -145,12 +144,8 @@ var ToolbarFormatting = function ToolbarFormatting(_ref) {
|
|
|
145
144
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
146
145
|
(0, _react2.jsx)("span", {
|
|
147
146
|
css:
|
|
148
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
149
|
-
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ?
|
|
150
147
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
151
|
-
_styles.buttonGroupStyle
|
|
152
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
153
|
-
_styles.buttonGroupStyleBeforeVisualRefresh
|
|
148
|
+
_styles.buttonGroupStyle
|
|
154
149
|
}, (0, _react2.jsx)("div", {
|
|
155
150
|
role: "group"
|
|
156
151
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -7,10 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.MoreButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
|
-
var _styles = require("@atlaskit/editor-common/styles");
|
|
11
10
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
12
11
|
var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
12
|
/**
|
|
15
13
|
* @jsxRuntime classic
|
|
16
14
|
* @jsx jsx
|
|
@@ -41,7 +39,7 @@ var MoreButton = exports.MoreButton = /*#__PURE__*/_react.default.memo(function
|
|
|
41
39
|
iconBefore:
|
|
42
40
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
43
41
|
(0, _react2.jsx)("div", {
|
|
44
|
-
css:
|
|
42
|
+
css: MoreIconStyle
|
|
45
43
|
}, (0, _react2.jsx)(_showMoreHorizontal.default, {
|
|
46
44
|
label: "",
|
|
47
45
|
color: "currentColor",
|
|
@@ -9,7 +9,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
11
11
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
13
|
/**
|
|
15
14
|
* @jsxRuntime classic
|
|
@@ -32,12 +31,8 @@ var SingleToolbarButtons = exports.SingleToolbarButtons = /*#__PURE__*/_react.de
|
|
|
32
31
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
33
32
|
(0, _react2.jsx)("span", {
|
|
34
33
|
css:
|
|
35
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
36
|
-
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ?
|
|
37
34
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
38
|
-
_styles.buttonGroupStyle
|
|
39
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
40
|
-
_styles.buttonGroupStyleBeforeVisualRefresh
|
|
35
|
+
_styles.buttonGroupStyle
|
|
41
36
|
}, items.map(function (item) {
|
|
42
37
|
var _item$ariaLabel;
|
|
43
38
|
return (0, _react2.jsx)(_uiMenu.ToolbarButton, {
|
|
@@ -6,11 +6,10 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
|
-
import { expandIconContainerStyle,
|
|
9
|
+
import { expandIconContainerStyle, triggerWrapperStylesWithPadding, disableBlueBorderStyles } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
11
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
12
12
|
import ItalicIcon from '@atlaskit/icon/core/text-italic';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
import { ToolbarType } from './types';
|
|
15
14
|
export const DropdownToolbarButton = ({
|
|
16
15
|
label,
|
|
@@ -40,11 +39,9 @@ export const DropdownToolbarButton = ({
|
|
|
40
39
|
onClick: onClick,
|
|
41
40
|
onKeyDown: onKeyDown,
|
|
42
41
|
iconBefore: jsx("div", {
|
|
43
|
-
css:
|
|
42
|
+
css:
|
|
44
43
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
45
|
-
triggerWrapperStylesWithPadding
|
|
46
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
47
|
-
triggerWrapperStyles,
|
|
44
|
+
triggerWrapperStylesWithPadding,
|
|
48
45
|
"data-testid": activeIconName ? `editor-toolbar__${activeIconName}` : undefined
|
|
49
46
|
}, iconBefore ? iconBefore : jsx(ItalicIcon, {
|
|
50
47
|
color: "currentColor",
|
|
@@ -9,9 +9,8 @@ import { jsx } from '@emotion/react';
|
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
10
|
import { usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
11
11
|
import { toolbarMessages } from '@atlaskit/editor-common/messages';
|
|
12
|
-
import { buttonGroupStyle,
|
|
12
|
+
import { buttonGroupStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
13
13
|
import { Announcer } from '@atlaskit/editor-common/ui';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
15
|
import { compareItemsArrays, isArrayContainsContent } from '../../editor-commands/utils';
|
|
17
16
|
import { FormattingTextDropdownMenu } from './dropdown-menu';
|
|
@@ -134,12 +133,8 @@ const ToolbarFormatting = ({
|
|
|
134
133
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
135
134
|
jsx("span", {
|
|
136
135
|
css:
|
|
137
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
138
|
-
fg('platform-visual-refresh-icons') ?
|
|
139
136
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
140
|
-
buttonGroupStyle
|
|
141
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
142
|
-
buttonGroupStyleBeforeVisualRefresh
|
|
137
|
+
buttonGroupStyle
|
|
143
138
|
}, jsx("div", {
|
|
144
139
|
role: "group"
|
|
145
140
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -6,10 +6,8 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { triggerWrapperStyles } from '@atlaskit/editor-common/styles';
|
|
10
9
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
10
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
11
|
const MoreIconStyle = css({
|
|
14
12
|
display: 'flex',
|
|
15
13
|
alignItems: 'center',
|
|
@@ -34,7 +32,7 @@ export const MoreButton = /*#__PURE__*/React.memo(({
|
|
|
34
32
|
iconBefore:
|
|
35
33
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
36
34
|
jsx("div", {
|
|
37
|
-
css:
|
|
35
|
+
css: MoreIconStyle
|
|
38
36
|
}, jsx(ShowMoreHorizontalIcon, {
|
|
39
37
|
label: "",
|
|
40
38
|
color: "currentColor",
|
|
@@ -6,9 +6,8 @@ import React, { useCallback } from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
|
-
import { buttonGroupStyle
|
|
9
|
+
import { buttonGroupStyle } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
export const SingleToolbarButtons = /*#__PURE__*/React.memo(({
|
|
13
12
|
items,
|
|
14
13
|
isReducedSpacing,
|
|
@@ -24,12 +23,8 @@ export const SingleToolbarButtons = /*#__PURE__*/React.memo(({
|
|
|
24
23
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
24
|
jsx("span", {
|
|
26
25
|
css:
|
|
27
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
28
|
-
fg('platform-visual-refresh-icons') ?
|
|
29
26
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
30
|
-
buttonGroupStyle
|
|
31
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
32
|
-
buttonGroupStyleBeforeVisualRefresh
|
|
27
|
+
buttonGroupStyle
|
|
33
28
|
}, items.map(item => {
|
|
34
29
|
var _item$ariaLabel;
|
|
35
30
|
return jsx(ToolbarButton, {
|
|
@@ -6,11 +6,10 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
|
-
import { expandIconContainerStyle,
|
|
9
|
+
import { expandIconContainerStyle, triggerWrapperStylesWithPadding, disableBlueBorderStyles } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
11
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
12
12
|
import ItalicIcon from '@atlaskit/icon/core/text-italic';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
import { ToolbarType } from './types';
|
|
15
14
|
export var DropdownToolbarButton = function DropdownToolbarButton(_ref) {
|
|
16
15
|
var label = _ref.label,
|
|
@@ -39,11 +38,9 @@ export var DropdownToolbarButton = function DropdownToolbarButton(_ref) {
|
|
|
39
38
|
onClick: onClick,
|
|
40
39
|
onKeyDown: onKeyDown,
|
|
41
40
|
iconBefore: jsx("div", {
|
|
42
|
-
css:
|
|
41
|
+
css:
|
|
43
42
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
44
|
-
triggerWrapperStylesWithPadding
|
|
45
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
46
|
-
triggerWrapperStyles,
|
|
43
|
+
triggerWrapperStylesWithPadding,
|
|
47
44
|
"data-testid": activeIconName ? "editor-toolbar__".concat(activeIconName) : undefined
|
|
48
45
|
}, iconBefore ? iconBefore : jsx(ItalicIcon, {
|
|
49
46
|
color: "currentColor",
|
|
@@ -13,9 +13,8 @@ import { jsx } from '@emotion/react';
|
|
|
13
13
|
import { injectIntl } from 'react-intl-next';
|
|
14
14
|
import { usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
15
15
|
import { toolbarMessages } from '@atlaskit/editor-common/messages';
|
|
16
|
-
import { buttonGroupStyle,
|
|
16
|
+
import { buttonGroupStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
17
17
|
import { Announcer } from '@atlaskit/editor-common/ui';
|
|
18
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
19
|
import { compareItemsArrays, isArrayContainsContent } from '../../editor-commands/utils';
|
|
21
20
|
import { FormattingTextDropdownMenu } from './dropdown-menu';
|
|
@@ -139,12 +138,8 @@ var ToolbarFormatting = function ToolbarFormatting(_ref) {
|
|
|
139
138
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
140
139
|
jsx("span", {
|
|
141
140
|
css:
|
|
142
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
143
|
-
fg('platform-visual-refresh-icons') ?
|
|
144
141
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
145
|
-
buttonGroupStyle
|
|
146
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
147
|
-
buttonGroupStyleBeforeVisualRefresh
|
|
142
|
+
buttonGroupStyle
|
|
148
143
|
}, jsx("div", {
|
|
149
144
|
role: "group"
|
|
150
145
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -6,10 +6,8 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { triggerWrapperStyles } from '@atlaskit/editor-common/styles';
|
|
10
9
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
10
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
11
|
var MoreIconStyle = css({
|
|
14
12
|
display: 'flex',
|
|
15
13
|
alignItems: 'center',
|
|
@@ -33,7 +31,7 @@ export var MoreButton = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
33
31
|
iconBefore:
|
|
34
32
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
35
33
|
jsx("div", {
|
|
36
|
-
css:
|
|
34
|
+
css: MoreIconStyle
|
|
37
35
|
}, jsx(ShowMoreHorizontalIcon, {
|
|
38
36
|
label: "",
|
|
39
37
|
color: "currentColor",
|
|
@@ -6,9 +6,8 @@ import React, { useCallback } from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
|
-
import { buttonGroupStyle
|
|
9
|
+
import { buttonGroupStyle } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
export var SingleToolbarButtons = /*#__PURE__*/React.memo(function (_ref) {
|
|
13
12
|
var items = _ref.items,
|
|
14
13
|
isReducedSpacing = _ref.isReducedSpacing,
|
|
@@ -23,12 +22,8 @@ export var SingleToolbarButtons = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
23
22
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
24
23
|
jsx("span", {
|
|
25
24
|
css:
|
|
26
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
27
|
-
fg('platform-visual-refresh-icons') ?
|
|
28
25
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
29
|
-
buttonGroupStyle
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
31
|
-
buttonGroupStyleBeforeVisualRefresh
|
|
26
|
+
buttonGroupStyle
|
|
32
27
|
}, items.map(function (item) {
|
|
33
28
|
var _item$ariaLabel;
|
|
34
29
|
return jsx(ToolbarButton, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/adf-schema": "^51.5.0",
|
|
33
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
34
|
-
"@atlaskit/editor-plugin-base": "^
|
|
35
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
36
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^
|
|
37
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
33
|
+
"@atlaskit/editor-plugin-analytics": "^7.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-base": "^8.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^8.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^8.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-toolbar": "^4.0.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
40
40
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"@atlaskit/icon": "^29.3.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^16.3.0",
|
|
47
47
|
"@atlaskit/tokens": "^9.0.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|
|
50
50
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^
|
|
53
|
+
"@atlaskit/editor-common": "^111.1.0",
|
|
54
54
|
"react": "^18.2.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|