@atlaskit/editor-plugin-text-color 15.0.10 → 15.1.1
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,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 15.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 15.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`d96f86ff344b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d96f86ff344b8) -
|
|
14
|
+
Use @atlaskit/platform-feature-experiments directly for
|
|
15
|
+
platform_editor_vc90_transition_expand_icon, platform_editor_add_image_editing,
|
|
16
|
+
platform_editor_ai_multi_format_streaming, platform_editor_default_toolbar_state,
|
|
17
|
+
platform_editor_early_exit_return_draft, platform_editor_fix_focus_MediaInsertPicker,
|
|
18
|
+
platform_editor_fix_table_move_shortcut, platform_editor_menu_radius_update,
|
|
19
|
+
platform_editor_react19_migration, and show_mentions_in_suggest_reply.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 15.0.10
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -14,6 +14,7 @@ var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
|
14
14
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
15
15
|
var _editorPalette = require("@atlaskit/editor-palette");
|
|
16
16
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
17
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
17
18
|
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
18
19
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
20
|
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); }
|
|
@@ -63,7 +64,7 @@ var useTextColorHighlightMenuStateOld = function useTextColorHighlightMenuStateO
|
|
|
63
64
|
};
|
|
64
65
|
};
|
|
65
66
|
var useTextColorHighlightMenuState = (0, _platformFeatureFlagsReact.conditionalHooksFactory)(function () {
|
|
66
|
-
return (0,
|
|
67
|
+
return (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_default_toolbar_state');
|
|
67
68
|
}, useTextColorHighlightMenuStateNew, useTextColorHighlightMenuStateOld);
|
|
68
69
|
var TextColorHighlightMenu = exports.TextColorHighlightMenu = function TextColorHighlightMenu(_ref) {
|
|
69
70
|
var _api$textColor2;
|
|
@@ -7,6 +7,7 @@ import { SelectedTextColorProvider } from '@atlaskit/editor-common/ui-color';
|
|
|
7
7
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
8
8
|
import { hexToEditorTextPaletteColor, hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
9
9
|
import { TextColorIcon, ToolbarColorSwatch, ToolbarDropdownMenu, ToolbarDropdownMenuProvider, ToolbarTooltip, useToolbarUI } from '@atlaskit/editor-toolbar';
|
|
10
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
11
|
import { conditionalHooksFactory } from '@atlaskit/platform-feature-flags-react';
|
|
11
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
13
|
const getIconColor = (textColor, defaultColor, highlightColor) => {
|
|
@@ -54,7 +55,7 @@ const useTextColorHighlightMenuStateOld = api => {
|
|
|
54
55
|
highlightColor
|
|
55
56
|
};
|
|
56
57
|
};
|
|
57
|
-
const useTextColorHighlightMenuState = conditionalHooksFactory(() =>
|
|
58
|
+
const useTextColorHighlightMenuState = conditionalHooksFactory(() => isExperimentEnabled('platform_editor_default_toolbar_state'), useTextColorHighlightMenuStateNew, useTextColorHighlightMenuStateOld);
|
|
58
59
|
export const TextColorHighlightMenu = ({
|
|
59
60
|
children,
|
|
60
61
|
api
|
|
@@ -7,6 +7,7 @@ import { SelectedTextColorProvider } from '@atlaskit/editor-common/ui-color';
|
|
|
7
7
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
8
8
|
import { hexToEditorTextPaletteColor, hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
9
9
|
import { TextColorIcon, ToolbarColorSwatch, ToolbarDropdownMenu, ToolbarDropdownMenuProvider, ToolbarTooltip, useToolbarUI } from '@atlaskit/editor-toolbar';
|
|
10
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
11
|
import { conditionalHooksFactory } from '@atlaskit/platform-feature-flags-react';
|
|
11
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
13
|
var getIconColor = function getIconColor(textColor, defaultColor, highlightColor) {
|
|
@@ -55,7 +56,7 @@ var useTextColorHighlightMenuStateOld = function useTextColorHighlightMenuStateO
|
|
|
55
56
|
};
|
|
56
57
|
};
|
|
57
58
|
var useTextColorHighlightMenuState = conditionalHooksFactory(function () {
|
|
58
|
-
return
|
|
59
|
+
return isExperimentEnabled('platform_editor_default_toolbar_state');
|
|
59
60
|
}, useTextColorHighlightMenuStateNew, useTextColorHighlightMenuStateOld);
|
|
60
61
|
export var TextColorHighlightMenu = function TextColorHighlightMenu(_ref) {
|
|
61
62
|
var _api$textColor2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.1.1",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^57.0.0",
|
|
25
|
-
"@atlaskit/button": "^25.
|
|
25
|
+
"@atlaskit/button": "^25.2.0",
|
|
26
26
|
"@atlaskit/css": "^1.0.0",
|
|
27
27
|
"@atlaskit/editor-palette": "^3.4.0",
|
|
28
28
|
"@atlaskit/editor-plugin-analytics": "^15.0.0",
|
|
@@ -33,21 +33,22 @@
|
|
|
33
33
|
"@atlaskit/editor-plugin-toolbar": "^12.0.0",
|
|
34
34
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
35
35
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
36
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
36
|
+
"@atlaskit/editor-toolbar": "^2.6.0",
|
|
37
37
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
38
|
-
"@atlaskit/heading": "^7.
|
|
39
|
-
"@atlaskit/icon": "^37.
|
|
40
|
-
"@atlaskit/icon-lab": "^7.
|
|
38
|
+
"@atlaskit/heading": "^7.1.0",
|
|
39
|
+
"@atlaskit/icon": "^37.5.0",
|
|
40
|
+
"@atlaskit/icon-lab": "^7.7.0",
|
|
41
|
+
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
41
42
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
42
43
|
"@atlaskit/platform-feature-flags-react": "^1.1.0",
|
|
43
|
-
"@atlaskit/primitives": "^22.
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
-
"@atlaskit/tokens": "^16.
|
|
44
|
+
"@atlaskit/primitives": "^22.4.0",
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^158.0.0",
|
|
46
|
+
"@atlaskit/tokens": "^16.8.0",
|
|
46
47
|
"@babel/runtime": "^7.0.0",
|
|
47
48
|
"@emotion/react": "^11.7.1"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
50
|
-
"@atlaskit/editor-common": "^119.
|
|
51
|
+
"@atlaskit/editor-common": "^119.16.0",
|
|
51
52
|
"react": "^18.2.0 || ^19.2.0",
|
|
52
53
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
53
54
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|