@atlaskit/editor-plugin-text-color 4.0.3 → 4.0.4
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 4.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`555ac8f256674`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/555ac8f256674) -
|
|
8
|
+
Update menu item icon size to small, tweak paddings and font styles
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 4.0.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* TextColorMenuItem.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
5
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
6
|
Object.defineProperty(exports, "__esModule", {
|
|
6
7
|
value: true
|
|
@@ -16,7 +17,9 @@ var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
|
16
17
|
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
17
18
|
var _editorPalette = require("@atlaskit/editor-palette");
|
|
18
19
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
20
|
+
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
19
21
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
23
|
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); }
|
|
21
24
|
var styles = {
|
|
22
25
|
container: "_zulp12x7"
|
|
@@ -60,7 +63,9 @@ function TextColorMenuItem(_ref) {
|
|
|
60
63
|
return /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
|
|
61
64
|
xcss: styles.container,
|
|
62
65
|
testId: "text-color-menu-item"
|
|
63
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
66
|
+
}, (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
67
|
+
size: "xxsmall"
|
|
68
|
+
}, formatMessage(_messages.textColorMessages.textColorTooltip)) : /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
64
69
|
weight: "bold"
|
|
65
70
|
}, formatMessage(_messages.textColorMessages.textColorTooltip)), /*#__PURE__*/_react.default.createElement(_editorToolbar.ColorPalette, {
|
|
66
71
|
onClick: function onClick(color) {
|
|
@@ -9,7 +9,9 @@ import { getInputMethodFromParentKeys, useEditorToolbar } from '@atlaskit/editor
|
|
|
9
9
|
import { textPaletteTooltipMessages } from '@atlaskit/editor-common/ui-color';
|
|
10
10
|
import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette';
|
|
11
11
|
import { ColorPalette, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
12
|
+
import Heading from '@atlaskit/heading';
|
|
12
13
|
import { Stack, Text } from '@atlaskit/primitives/compiled';
|
|
14
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
15
|
const styles = {
|
|
14
16
|
container: "_zulp12x7"
|
|
15
17
|
};
|
|
@@ -57,7 +59,9 @@ export function TextColorMenuItem({
|
|
|
57
59
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
58
60
|
xcss: styles.container,
|
|
59
61
|
testId: "text-color-menu-item"
|
|
60
|
-
}, /*#__PURE__*/React.createElement(
|
|
62
|
+
}, expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(Heading, {
|
|
63
|
+
size: "xxsmall"
|
|
64
|
+
}, formatMessage(messages.textColorTooltip)) : /*#__PURE__*/React.createElement(Text, {
|
|
61
65
|
weight: "bold"
|
|
62
66
|
}, formatMessage(messages.textColorTooltip)), /*#__PURE__*/React.createElement(ColorPalette, {
|
|
63
67
|
onClick: color => {
|
|
@@ -9,7 +9,9 @@ import { getInputMethodFromParentKeys, useEditorToolbar } from '@atlaskit/editor
|
|
|
9
9
|
import { textPaletteTooltipMessages } from '@atlaskit/editor-common/ui-color';
|
|
10
10
|
import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette';
|
|
11
11
|
import { ColorPalette, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
12
|
+
import Heading from '@atlaskit/heading';
|
|
12
13
|
import { Stack, Text } from '@atlaskit/primitives/compiled';
|
|
14
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
15
|
var styles = {
|
|
14
16
|
container: "_zulp12x7"
|
|
15
17
|
};
|
|
@@ -52,7 +54,9 @@ export function TextColorMenuItem(_ref) {
|
|
|
52
54
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
53
55
|
xcss: styles.container,
|
|
54
56
|
testId: "text-color-menu-item"
|
|
55
|
-
}, /*#__PURE__*/React.createElement(
|
|
57
|
+
}, expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(Heading, {
|
|
58
|
+
size: "xxsmall"
|
|
59
|
+
}, formatMessage(messages.textColorTooltip)) : /*#__PURE__*/React.createElement(Text, {
|
|
56
60
|
weight: "bold"
|
|
57
61
|
}, formatMessage(messages.textColorTooltip)), /*#__PURE__*/React.createElement(ColorPalette, {
|
|
58
62
|
onClick: function onClick(color) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
43
43
|
"@atlaskit/editor-toolbar": "^0.8.0",
|
|
44
44
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
45
|
+
"@atlaskit/heading": "^5.2.0",
|
|
45
46
|
"@atlaskit/icon": "^28.1.0",
|
|
46
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
48
|
"@atlaskit/primitives": "^14.13.0",
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"@emotion/react": "^11.7.1"
|
|
53
54
|
},
|
|
54
55
|
"peerDependencies": {
|
|
55
|
-
"@atlaskit/editor-common": "^108.
|
|
56
|
+
"@atlaskit/editor-common": "^108.5.0",
|
|
56
57
|
"react": "^18.2.0",
|
|
57
58
|
"react-dom": "^18.2.0",
|
|
58
59
|
"react-intl-next": "npm:react-intl@^5.18.1"
|