@atlaskit/editor-plugin-highlight 11.0.12 → 11.0.13
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-highlight
|
|
2
2
|
|
|
3
|
+
## 11.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`94d24f07a0482`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/94d24f07a0482) -
|
|
8
|
+
[ux] [EDITOR-7451] keep color palette open after applying text or highlight changes or clearing
|
|
9
|
+
the text color
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 11.0.12
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -23,6 +23,7 @@ var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
|
23
23
|
var _checkMark = _interopRequireDefault(require("@atlaskit/icon/core/check-mark"));
|
|
24
24
|
var _textStyle = _interopRequireDefault(require("@atlaskit/icon/core/text-style"));
|
|
25
25
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
26
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
26
27
|
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); }
|
|
27
28
|
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; }
|
|
28
29
|
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) { (0, _defineProperty2.default)(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; }
|
|
@@ -64,7 +65,9 @@ function HighlightColorMenuItem(_ref2) {
|
|
|
64
65
|
color: color,
|
|
65
66
|
inputMethod: (0, _toolbar.getInputMethodFromParentKeys)(parents)
|
|
66
67
|
}));
|
|
67
|
-
|
|
68
|
+
if (!(0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true)) {
|
|
69
|
+
closeMenu === null || closeMenu === void 0 || closeMenu(event);
|
|
70
|
+
}
|
|
68
71
|
}
|
|
69
72
|
}, [api, closeMenu, parents]);
|
|
70
73
|
var colorPalette = (0, _react.useMemo)(function () {
|
|
@@ -14,6 +14,7 @@ import Heading from '@atlaskit/heading';
|
|
|
14
14
|
import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
|
|
15
15
|
import Icon from '@atlaskit/icon/core/text-style';
|
|
16
16
|
import { Stack, Box } from '@atlaskit/primitives/compiled';
|
|
17
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
18
|
const styles = {
|
|
18
19
|
container: "_zulp12x7 _19pkpxbi",
|
|
19
20
|
removeHighlightButton: "_2rko12b0 _195gv77o _189ee4h9 _1dqonqa1 _1h6d1l7x",
|
|
@@ -55,7 +56,9 @@ export function HighlightColorMenuItem({
|
|
|
55
56
|
color,
|
|
56
57
|
inputMethod: getInputMethodFromParentKeys(parents)
|
|
57
58
|
}));
|
|
58
|
-
|
|
59
|
+
if (!expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true)) {
|
|
60
|
+
closeMenu === null || closeMenu === void 0 ? void 0 : closeMenu(event);
|
|
61
|
+
}
|
|
59
62
|
}
|
|
60
63
|
}, [api, closeMenu, parents]);
|
|
61
64
|
const colorPalette = useMemo(() => {
|
|
@@ -17,6 +17,7 @@ import Heading from '@atlaskit/heading';
|
|
|
17
17
|
import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
|
|
18
18
|
import Icon from '@atlaskit/icon/core/text-style';
|
|
19
19
|
import { Stack, Box } from '@atlaskit/primitives/compiled';
|
|
20
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
21
|
var styles = {
|
|
21
22
|
container: "_zulp12x7 _19pkpxbi",
|
|
22
23
|
removeHighlightButton: "_2rko12b0 _195gv77o _189ee4h9 _1dqonqa1 _1h6d1l7x",
|
|
@@ -55,7 +56,9 @@ export function HighlightColorMenuItem(_ref2) {
|
|
|
55
56
|
color: color,
|
|
56
57
|
inputMethod: getInputMethodFromParentKeys(parents)
|
|
57
58
|
}));
|
|
58
|
-
|
|
59
|
+
if (!expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true)) {
|
|
60
|
+
closeMenu === null || closeMenu === void 0 || closeMenu(event);
|
|
61
|
+
}
|
|
59
62
|
}
|
|
60
63
|
}, [api, closeMenu, parents]);
|
|
61
64
|
var colorPalette = useMemo(function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.13",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
],
|
|
33
33
|
"atlaskit:src": "src/index.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^
|
|
35
|
+
"@atlaskit/adf-schema": "^54.0.0",
|
|
36
36
|
"@atlaskit/css": "^0.19.0",
|
|
37
37
|
"@atlaskit/editor-palette": "^2.2.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^11.0.0",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"@atlaskit/icon": "^35.4.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
51
|
"@atlaskit/primitives": "^19.0.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^99.0.0",
|
|
53
53
|
"@atlaskit/tokens": "^13.3.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@atlaskit/editor-common": "^115.
|
|
58
|
+
"@atlaskit/editor-common": "^115.13.0",
|
|
59
59
|
"react": "^18.2.0",
|
|
60
60
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
61
61
|
},
|