@atlaskit/editor-plugin-text-color 7.2.2 → 7.2.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 +16 -0
- package/dist/cjs/ui/TextColorHighlightMenu.js +1 -2
- package/dist/cjs/ui/toolbar-components.js +3 -3
- package/dist/es2019/ui/TextColorHighlightMenu.js +1 -2
- package/dist/es2019/ui/toolbar-components.js +2 -2
- package/dist/esm/ui/TextColorHighlightMenu.js +1 -2
- package/dist/esm/ui/toolbar-components.js +3 -3
- package/package.json +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 7.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9041ec452a104`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9041ec452a104) -
|
|
8
|
+
[EDITOR-4515] clean up fg platform_editor_toolbar_aifc_patch_7
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 7.2.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`ee5135bafb31d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee5135bafb31d) -
|
|
16
|
+
[EDITOR-4495] clean up platform_editor_toolbar_aifc_patch_4
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 7.2.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -15,7 +15,6 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
15
15
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
16
16
|
var _editorPalette = require("@atlaskit/editor-palette");
|
|
17
17
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
20
19
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
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 +62,7 @@ var TextColorHighlightMenu = exports.TextColorHighlightMenu = function TextColor
|
|
|
63
62
|
}, [api === null || api === void 0 || (_api$textColor2 = api.textColor) === null || _api$textColor2 === void 0 ? void 0 : _api$textColor2.commands, api === null || api === void 0 ? void 0 : api.core.actions]);
|
|
64
63
|
(0, _react.useEffect)(function () {
|
|
65
64
|
return function () {
|
|
66
|
-
if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true)
|
|
65
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true)) {
|
|
67
66
|
if (isPaletteOpen) {
|
|
68
67
|
setIsPaletteOpen(false);
|
|
69
68
|
}
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.getToolbarComponents = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
12
12
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -55,7 +55,7 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
55
55
|
parents: parents
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
})
|
|
58
|
+
}), _objectSpread(_objectSpread({}, _toolbar.CLEAR_COLOR_MENU_ITEM), {}, {
|
|
59
59
|
parents: [_objectSpread(_objectSpread({}, _toolbar.TEXT_COLOR_HIGHLIGHT_MENU_SECTION), {}, {
|
|
60
60
|
rank: _toolbar.TEXT_COLOR_HIGHLIGHT_MENU_SECTION_RANK[_toolbar.CLEAR_COLOR_MENU_ITEM.key]
|
|
61
61
|
})],
|
|
@@ -66,5 +66,5 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
66
66
|
parents: parents
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
})]
|
|
69
|
+
})];
|
|
70
70
|
};
|
|
@@ -8,7 +8,6 @@ import { textColorMessages as messages } from '@atlaskit/editor-common/messages'
|
|
|
8
8
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
9
9
|
import { hexToEditorTextPaletteColor, hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
10
10
|
import { TextColorIcon, ToolbarColorSwatch, ToolbarDropdownMenu, ToolbarDropdownMenuProvider, ToolbarTooltip, useToolbarUI } from '@atlaskit/editor-toolbar';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
13
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
13
|
const styles = {
|
|
@@ -59,7 +58,7 @@ export const TextColorHighlightMenu = ({
|
|
|
59
58
|
}, [api === null || api === void 0 ? void 0 : (_api$textColor2 = api.textColor) === null || _api$textColor2 === void 0 ? void 0 : _api$textColor2.commands, api === null || api === void 0 ? void 0 : api.core.actions]);
|
|
60
59
|
useEffect(() => {
|
|
61
60
|
return () => {
|
|
62
|
-
if (expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true)
|
|
61
|
+
if (expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true)) {
|
|
63
62
|
if (isPaletteOpen) {
|
|
64
63
|
setIsPaletteOpen(false);
|
|
65
64
|
}
|
|
@@ -50,7 +50,7 @@ export const getToolbarComponents = api => {
|
|
|
50
50
|
api: api,
|
|
51
51
|
parents: parents
|
|
52
52
|
})
|
|
53
|
-
},
|
|
53
|
+
}, {
|
|
54
54
|
...CLEAR_COLOR_MENU_ITEM,
|
|
55
55
|
parents: [{
|
|
56
56
|
...TEXT_COLOR_HIGHLIGHT_MENU_SECTION,
|
|
@@ -64,5 +64,5 @@ export const getToolbarComponents = api => {
|
|
|
64
64
|
parents: parents
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
}]
|
|
67
|
+
}];
|
|
68
68
|
};
|
|
@@ -8,7 +8,6 @@ import { textColorMessages as messages } from '@atlaskit/editor-common/messages'
|
|
|
8
8
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
9
9
|
import { hexToEditorTextPaletteColor, hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
10
10
|
import { TextColorIcon, ToolbarColorSwatch, ToolbarDropdownMenu, ToolbarDropdownMenuProvider, ToolbarTooltip, useToolbarUI } from '@atlaskit/editor-toolbar';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
13
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
13
|
var styles = {
|
|
@@ -55,7 +54,7 @@ export var TextColorHighlightMenu = function TextColorHighlightMenu(_ref) {
|
|
|
55
54
|
}, [api === null || api === void 0 || (_api$textColor2 = api.textColor) === null || _api$textColor2 === void 0 ? void 0 : _api$textColor2.commands, api === null || api === void 0 ? void 0 : api.core.actions]);
|
|
56
55
|
useEffect(function () {
|
|
57
56
|
return function () {
|
|
58
|
-
if (expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true)
|
|
57
|
+
if (expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true)) {
|
|
59
58
|
if (isPaletteOpen) {
|
|
60
59
|
setIsPaletteOpen(false);
|
|
61
60
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import React from 'react';
|
|
@@ -48,7 +48,7 @@ export var getToolbarComponents = function getToolbarComponents(api) {
|
|
|
48
48
|
parents: parents
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
})
|
|
51
|
+
}), _objectSpread(_objectSpread({}, CLEAR_COLOR_MENU_ITEM), {}, {
|
|
52
52
|
parents: [_objectSpread(_objectSpread({}, TEXT_COLOR_HIGHLIGHT_MENU_SECTION), {}, {
|
|
53
53
|
rank: TEXT_COLOR_HIGHLIGHT_MENU_SECTION_RANK[CLEAR_COLOR_MENU_ITEM.key]
|
|
54
54
|
})],
|
|
@@ -59,5 +59,5 @@ export var getToolbarComponents = function getToolbarComponents(api) {
|
|
|
59
59
|
parents: parents
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
})]
|
|
62
|
+
})];
|
|
63
63
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.4",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,21 +34,21 @@
|
|
|
34
34
|
"@atlaskit/css": "^0.19.0",
|
|
35
35
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^7.0.0",
|
|
37
|
-
"@atlaskit/editor-plugin-highlight": "^7.
|
|
37
|
+
"@atlaskit/editor-plugin-highlight": "^7.3.0",
|
|
38
38
|
"@atlaskit/editor-plugin-primary-toolbar": "^8.0.0",
|
|
39
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^8.
|
|
40
|
-
"@atlaskit/editor-plugin-toolbar": "^4.
|
|
39
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^8.1.0",
|
|
40
|
+
"@atlaskit/editor-plugin-toolbar": "^4.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
43
43
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
44
44
|
"@atlaskit/editor-toolbar-model": "^0.3.0",
|
|
45
45
|
"@atlaskit/heading": "^5.2.0",
|
|
46
|
-
"@atlaskit/icon": "^
|
|
46
|
+
"@atlaskit/icon": "^30.0.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/primitives": "^17.1.0",
|
|
49
49
|
"@atlaskit/theme": "^21.0.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
51
|
-
"@atlaskit/tokens": "^10.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^16.30.0",
|
|
51
|
+
"@atlaskit/tokens": "^10.1.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1"
|
|
54
54
|
},
|
|
@@ -105,9 +105,6 @@
|
|
|
105
105
|
"platform-visual-refresh-icons": {
|
|
106
106
|
"type": "boolean"
|
|
107
107
|
},
|
|
108
|
-
"platform_editor_toolbar_aifc_patch_7": {
|
|
109
|
-
"type": "boolean"
|
|
110
|
-
},
|
|
111
108
|
"platform_editor_toolbar_aifc_text_color_config": {
|
|
112
109
|
"type": "boolean"
|
|
113
110
|
}
|