@atlaskit/editor-plugin-text-color 6.3.19 → 6.3.20
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,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 6.3.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`840338033507a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/840338033507a) -
|
|
8
|
+
Migrating custom icons behind feature flag.
|
|
9
|
+
|
|
3
10
|
## 6.3.19
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -8,6 +8,8 @@ exports.EditorTextColorIcon = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _base = _interopRequireDefault(require("@atlaskit/icon/base"));
|
|
11
|
+
var _textStyle = _interopRequireDefault(require("@atlaskit/icon/core/text-style"));
|
|
12
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
13
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
12
14
|
// Ignored via go/ees005
|
|
13
15
|
// eslint-disable-next-line import/no-named-as-default
|
|
@@ -29,7 +31,10 @@ var textColorGlyph = function textColorGlyph(props) {
|
|
|
29
31
|
);
|
|
30
32
|
};
|
|
31
33
|
var EditorTextColorIcon = exports.EditorTextColorIcon = function EditorTextColorIcon() {
|
|
32
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
34
|
+
return (0, _platformFeatureFlags.fg)('platform-custom-icon-migration') ? /*#__PURE__*/_react.default.createElement(_textStyle.default, {
|
|
35
|
+
label: "",
|
|
36
|
+
spacing: "spacious"
|
|
37
|
+
}) : /*#__PURE__*/_react.default.createElement(_base.default, {
|
|
33
38
|
glyph: textColorGlyph,
|
|
34
39
|
label: ""
|
|
35
40
|
});
|
|
@@ -5,6 +5,8 @@ import React from 'react';
|
|
|
5
5
|
// Ignored via go/ees005
|
|
6
6
|
// eslint-disable-next-line import/no-named-as-default
|
|
7
7
|
import Icon from '@atlaskit/icon/base';
|
|
8
|
+
import TextStyleIcon from '@atlaskit/icon/core/text-style';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
10
|
const textColorGlyph = props =>
|
|
9
11
|
/*#__PURE__*/
|
|
10
12
|
// Ignored via go/ees005
|
|
@@ -19,7 +21,10 @@ React.createElement("svg", _extends({}, props, {
|
|
|
19
21
|
fillRule: "evenodd"
|
|
20
22
|
}));
|
|
21
23
|
export const EditorTextColorIcon = () => {
|
|
22
|
-
return /*#__PURE__*/React.createElement(
|
|
24
|
+
return fg('platform-custom-icon-migration') ? /*#__PURE__*/React.createElement(TextStyleIcon, {
|
|
25
|
+
label: "",
|
|
26
|
+
spacing: "spacious"
|
|
27
|
+
}) : /*#__PURE__*/React.createElement(Icon, {
|
|
23
28
|
glyph: textColorGlyph,
|
|
24
29
|
label: ""
|
|
25
30
|
});
|
|
@@ -5,6 +5,8 @@ import React from 'react';
|
|
|
5
5
|
// Ignored via go/ees005
|
|
6
6
|
// eslint-disable-next-line import/no-named-as-default
|
|
7
7
|
import Icon from '@atlaskit/icon/base';
|
|
8
|
+
import TextStyleIcon from '@atlaskit/icon/core/text-style';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
10
|
var textColorGlyph = function textColorGlyph(props) {
|
|
9
11
|
return (
|
|
10
12
|
/*#__PURE__*/
|
|
@@ -22,7 +24,10 @@ var textColorGlyph = function textColorGlyph(props) {
|
|
|
22
24
|
);
|
|
23
25
|
};
|
|
24
26
|
export var EditorTextColorIcon = function EditorTextColorIcon() {
|
|
25
|
-
return /*#__PURE__*/React.createElement(
|
|
27
|
+
return fg('platform-custom-icon-migration') ? /*#__PURE__*/React.createElement(TextStyleIcon, {
|
|
28
|
+
label: "",
|
|
29
|
+
spacing: "spacious"
|
|
30
|
+
}) : /*#__PURE__*/React.createElement(Icon, {
|
|
26
31
|
glyph: textColorGlyph,
|
|
27
32
|
label: ""
|
|
28
33
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.20",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -110,6 +110,9 @@
|
|
|
110
110
|
},
|
|
111
111
|
"platform_editor_toolbar_aifc_patch_8": {
|
|
112
112
|
"type": "boolean"
|
|
113
|
+
},
|
|
114
|
+
"platform-custom-icon-migration": {
|
|
115
|
+
"type": "boolean"
|
|
113
116
|
}
|
|
114
117
|
}
|
|
115
118
|
}
|