@atlaskit/editor-plugin-text-color 12.1.1 → 12.1.3
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 12.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6f7b6c498b07c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6f7b6c498b07c) -
|
|
8
|
+
[EDITOR-7591] Align the no-color highlight palette tile icon with the updated transparent
|
|
9
|
+
highlight styling for the experiment `platform_editor_lovability_text_bg_color`.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 12.1.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 12.1.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -25,6 +25,7 @@ var _editorPalette = require("@atlaskit/editor-palette");
|
|
|
25
25
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
26
26
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
27
27
|
var _textStyle = _interopRequireDefault(require("@atlaskit/icon/core/text-style"));
|
|
28
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
28
29
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
29
30
|
var _changeColor = require("../../pm-plugins/commands/change-color");
|
|
30
31
|
var _inputType = require("../../pm-plugins/utils/inputType");
|
|
@@ -143,7 +144,7 @@ var ToolbarTextColor = exports.ToolbarTextColor = /*#__PURE__*/function (_React$
|
|
|
143
144
|
disabled = _this$props.disabled,
|
|
144
145
|
pluginInjectionApi = _this$props.pluginInjectionApi;
|
|
145
146
|
var palette = pluginState.palette;
|
|
146
|
-
var isNewColorPaletteEnabled = (0,
|
|
147
|
+
var isNewColorPaletteEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
147
148
|
var colorPickerColumns = isNewColorPaletteEnabled ? 10 : undefined;
|
|
148
149
|
var fitWidth;
|
|
149
150
|
if (document.body.clientWidth <= 740) {
|
|
@@ -18,6 +18,7 @@ import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette';
|
|
|
18
18
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
19
19
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
20
20
|
import TextStyleIcon from '@atlaskit/icon/core/text-style';
|
|
21
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
22
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
22
23
|
import { changeColor as changeColorWithAnalytics } from '../../pm-plugins/commands/change-color';
|
|
23
24
|
import { getInputMethod } from '../../pm-plugins/utils/inputType';
|
|
@@ -124,7 +125,7 @@ export class ToolbarTextColor extends React.Component {
|
|
|
124
125
|
pluginInjectionApi
|
|
125
126
|
} = this.props;
|
|
126
127
|
const palette = pluginState.palette;
|
|
127
|
-
const isNewColorPaletteEnabled =
|
|
128
|
+
const isNewColorPaletteEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
128
129
|
const colorPickerColumns = isNewColorPaletteEnabled ? 10 : undefined;
|
|
129
130
|
let fitWidth;
|
|
130
131
|
if (document.body.clientWidth <= 740) {
|
|
@@ -28,6 +28,7 @@ import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette';
|
|
|
28
28
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
29
29
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
30
30
|
import TextStyleIcon from '@atlaskit/icon/core/text-style';
|
|
31
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
31
32
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
32
33
|
import { changeColor as changeColorWithAnalytics } from '../../pm-plugins/commands/change-color';
|
|
33
34
|
import { getInputMethod } from '../../pm-plugins/utils/inputType';
|
|
@@ -139,7 +140,7 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
|
|
|
139
140
|
disabled = _this$props.disabled,
|
|
140
141
|
pluginInjectionApi = _this$props.pluginInjectionApi;
|
|
141
142
|
var palette = pluginState.palette;
|
|
142
|
-
var isNewColorPaletteEnabled =
|
|
143
|
+
var isNewColorPaletteEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
143
144
|
var colorPickerColumns = isNewColorPaletteEnabled ? 10 : undefined;
|
|
144
145
|
var fitWidth;
|
|
145
146
|
if (document.body.clientWidth <= 740) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.3",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^
|
|
25
|
-
"@atlaskit/button": "^24.
|
|
24
|
+
"@atlaskit/adf-schema": "^56.0.0",
|
|
25
|
+
"@atlaskit/button": "^24.1.0",
|
|
26
26
|
"@atlaskit/css": "^1.0.0",
|
|
27
27
|
"@atlaskit/editor-palette": "^3.1.0",
|
|
28
28
|
"@atlaskit/editor-plugin-analytics": "^12.0.0",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags-react": "^1.0.0",
|
|
43
43
|
"@atlaskit/primitives": "^20.0.0",
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^108.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^108.4.0",
|
|
45
45
|
"@atlaskit/tokens": "^14.0.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"@emotion/react": "^11.7.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@atlaskit/editor-common": "^116.
|
|
50
|
+
"@atlaskit/editor-common": "^116.4.0",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-dom": "^18.2.0",
|
|
53
53
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|