@atlaskit/editor-plugin-text-formatting 1.15.0 → 1.15.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
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-formatting
|
|
2
2
|
|
|
3
|
+
## 1.15.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#153539](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/153539)
|
|
8
|
+
[`451e5c3fb608e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/451e5c3fb608e) -
|
|
9
|
+
[ux] Fix text formatting more button on primary toolbar in small screen when
|
|
10
|
+
`platform-visual-refresh-icons` is on
|
|
11
|
+
|
|
12
|
+
## 1.15.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#152510](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152510)
|
|
17
|
+
[`dcf9edde7ac7b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dcf9edde7ac7b) -
|
|
18
|
+
bump adf-schema to 42.0.1
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 1.15.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -10,6 +10,7 @@ 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
12
|
var _showMoreHorizontalEditorMore = _interopRequireDefault(require("@atlaskit/icon/utility/migration/show-more-horizontal--editor-more"));
|
|
13
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
14
|
/**
|
|
14
15
|
* @jsxRuntime classic
|
|
15
16
|
* @jsx jsx
|
|
@@ -17,6 +18,12 @@ var _showMoreHorizontalEditorMore = _interopRequireDefault(require("@atlaskit/ic
|
|
|
17
18
|
|
|
18
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
20
|
|
|
21
|
+
var MoreIconStyle = (0, _react2.css)({
|
|
22
|
+
display: 'flex',
|
|
23
|
+
alignItems: 'center',
|
|
24
|
+
height: "var(--ds-space-300, 24px)",
|
|
25
|
+
padding: "0 ".concat("var(--ds-space-025, 2px)")
|
|
26
|
+
});
|
|
20
27
|
var MoreButton = exports.MoreButton = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
21
28
|
var label = _ref.label,
|
|
22
29
|
ariaExpanded = _ref['aria-expanded'],
|
|
@@ -35,7 +42,7 @@ var MoreButton = exports.MoreButton = /*#__PURE__*/_react.default.memo(function
|
|
|
35
42
|
iconBefore:
|
|
36
43
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
37
44
|
(0, _react2.jsx)("div", {
|
|
38
|
-
css: _styles.triggerWrapperStyles
|
|
45
|
+
css: (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? MoreIconStyle : _styles.triggerWrapperStyles
|
|
39
46
|
}, (0, _react2.jsx)(_showMoreHorizontalEditorMore.default, {
|
|
40
47
|
label: "",
|
|
41
48
|
color: "currentColor"
|
|
@@ -5,10 +5,17 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { jsx } from '@emotion/react';
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { triggerWrapperStyles } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
11
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/utility/migration/show-more-horizontal--editor-more';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
const MoreIconStyle = css({
|
|
14
|
+
display: 'flex',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
height: "var(--ds-space-300, 24px)",
|
|
17
|
+
padding: `0 ${"var(--ds-space-025, 2px)"}`
|
|
18
|
+
});
|
|
12
19
|
export const MoreButton = /*#__PURE__*/React.memo(({
|
|
13
20
|
label,
|
|
14
21
|
'aria-expanded': ariaExpanded,
|
|
@@ -28,7 +35,7 @@ export const MoreButton = /*#__PURE__*/React.memo(({
|
|
|
28
35
|
iconBefore:
|
|
29
36
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
30
37
|
jsx("div", {
|
|
31
|
-
css: triggerWrapperStyles
|
|
38
|
+
css: fg('platform-visual-refresh-icons') ? MoreIconStyle : triggerWrapperStyles
|
|
32
39
|
}, jsx(ShowMoreHorizontalIcon, {
|
|
33
40
|
label: "",
|
|
34
41
|
color: "currentColor"
|
|
@@ -5,10 +5,17 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { jsx } from '@emotion/react';
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { triggerWrapperStyles } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
11
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/utility/migration/show-more-horizontal--editor-more';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
var MoreIconStyle = css({
|
|
14
|
+
display: 'flex',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
height: "var(--ds-space-300, 24px)",
|
|
17
|
+
padding: "0 ".concat("var(--ds-space-025, 2px)")
|
|
18
|
+
});
|
|
12
19
|
export var MoreButton = /*#__PURE__*/React.memo(function (_ref) {
|
|
13
20
|
var label = _ref.label,
|
|
14
21
|
ariaExpanded = _ref['aria-expanded'],
|
|
@@ -27,7 +34,7 @@ export var MoreButton = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
27
34
|
iconBefore:
|
|
28
35
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
29
36
|
jsx("div", {
|
|
30
|
-
css: triggerWrapperStyles
|
|
37
|
+
css: fg('platform-visual-refresh-icons') ? MoreIconStyle : triggerWrapperStyles
|
|
31
38
|
}, jsx(ShowMoreHorizontalIcon, {
|
|
32
39
|
label: "",
|
|
33
40
|
color: "currentColor"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.2",
|
|
4
4
|
"description": "Text-formatting 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/adf-schema": "^
|
|
35
|
-
"@atlaskit/editor-common": "^93.
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
34
|
+
"@atlaskit/adf-schema": "^42.0.2",
|
|
35
|
+
"@atlaskit/editor-common": "^93.6.0",
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
37
37
|
"@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^3.0.0",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"@atlaskit/icon": "^22.22.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
43
43
|
"@atlaskit/prosemirror-input-rules": "^3.2.0",
|
|
44
|
+
"@atlaskit/tokens": "^2.0.0",
|
|
44
45
|
"@babel/runtime": "^7.0.0",
|
|
45
46
|
"@emotion/react": "^11.7.1",
|
|
46
47
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -91,6 +92,9 @@
|
|
|
91
92
|
"platform-feature-flags": {
|
|
92
93
|
"platform_editor_toolbar_responsive_fixes": {
|
|
93
94
|
"type": "boolean"
|
|
95
|
+
},
|
|
96
|
+
"platform-visual-refresh-icons": {
|
|
97
|
+
"type": "boolean"
|
|
94
98
|
}
|
|
95
99
|
}
|
|
96
100
|
}
|