@atlaskit/editor-plugin-highlight 7.2.1 → 7.3.0
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,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-highlight
|
|
2
2
|
|
|
3
|
+
## 7.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ee5135bafb31d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee5135bafb31d) -
|
|
8
|
+
[EDITOR-4495] clean up platform_editor_toolbar_aifc_patch_4
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 7.2.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -13,7 +13,6 @@ var React = _react;
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _reactIntlNext = require("react-intl-next");
|
|
16
|
-
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
17
16
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
18
17
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
19
18
|
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
@@ -23,9 +22,7 @@ var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
|
23
22
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
24
23
|
var _checkMark = _interopRequireDefault(require("@atlaskit/icon/core/check-mark"));
|
|
25
24
|
var _textStyle = _interopRequireDefault(require("@atlaskit/icon/core/text-style"));
|
|
26
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
27
25
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
28
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
29
26
|
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); }
|
|
30
27
|
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; }
|
|
31
28
|
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; }
|
|
@@ -99,15 +96,5 @@ function HighlightColorMenuItem(_ref2) {
|
|
|
99
96
|
palette: colorPalette || [],
|
|
100
97
|
hexToPaletteColor: _editorPalette.hexToEditorTextBackgroundPaletteColor
|
|
101
98
|
}
|
|
102
|
-
})
|
|
103
|
-
className: (0, _runtime.ax)([styles.removeHighlightButton])
|
|
104
|
-
}, /*#__PURE__*/React.createElement(_new.default, {
|
|
105
|
-
shouldFitContainer: true,
|
|
106
|
-
appearance: "subtle",
|
|
107
|
-
onClick: function onClick(event) {
|
|
108
|
-
return handleHighlightColorChange(_uiColor.REMOVE_HIGHLIGHT_COLOR, event);
|
|
109
|
-
}
|
|
110
|
-
}, /*#__PURE__*/React.createElement(_compiled.Text, {
|
|
111
|
-
weight: "medium"
|
|
112
|
-
}, (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? formatMessage(_messages.highlightMessages.removeHighlight) : 'Remove highlight'))));
|
|
99
|
+
}));
|
|
113
100
|
}
|
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useCallback, useMemo } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl-next';
|
|
7
|
-
import Button from '@atlaskit/button/new';
|
|
8
7
|
import { highlightMessages as messages } from '@atlaskit/editor-common/messages';
|
|
9
8
|
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
10
9
|
import { REMOVE_HIGHLIGHT_COLOR, highlightColorPaletteNext } from '@atlaskit/editor-common/ui-color';
|
|
@@ -14,9 +13,7 @@ import { ColorPalette, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
|
14
13
|
import Heading from '@atlaskit/heading';
|
|
15
14
|
import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
|
|
16
15
|
import Icon from '@atlaskit/icon/core/text-style';
|
|
17
|
-
import {
|
|
18
|
-
import { Stack, Text, Box } from '@atlaskit/primitives/compiled';
|
|
19
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
|
+
import { Stack, Box } from '@atlaskit/primitives/compiled';
|
|
20
17
|
const styles = {
|
|
21
18
|
container: "_zulp12x7 _19pkpxbi",
|
|
22
19
|
removeHighlightButton: "_2rko12b0 _195gv77o _189ee4h9 _1dqonqa1 _1h6d1l7x",
|
|
@@ -85,13 +82,5 @@ export function HighlightColorMenuItem({
|
|
|
85
82
|
palette: colorPalette || [],
|
|
86
83
|
hexToPaletteColor: hexToEditorTextBackgroundPaletteColor
|
|
87
84
|
}
|
|
88
|
-
})
|
|
89
|
-
className: ax([styles.removeHighlightButton])
|
|
90
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
91
|
-
shouldFitContainer: true,
|
|
92
|
-
appearance: "subtle",
|
|
93
|
-
onClick: event => handleHighlightColorChange(REMOVE_HIGHLIGHT_COLOR, event)
|
|
94
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
95
|
-
weight: "medium"
|
|
96
|
-
}, fg('platform_editor_dec_a11y_fixes') ? formatMessage(messages.removeHighlight) : 'Remove highlight'))));
|
|
85
|
+
}));
|
|
97
86
|
}
|
|
@@ -7,7 +7,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
7
7
|
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; }
|
|
8
8
|
import { useCallback, useMemo } from 'react';
|
|
9
9
|
import { useIntl } from 'react-intl-next';
|
|
10
|
-
import Button from '@atlaskit/button/new';
|
|
11
10
|
import { highlightMessages as messages } from '@atlaskit/editor-common/messages';
|
|
12
11
|
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
13
12
|
import { REMOVE_HIGHLIGHT_COLOR, highlightColorPaletteNext } from '@atlaskit/editor-common/ui-color';
|
|
@@ -17,9 +16,7 @@ import { ColorPalette, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
|
17
16
|
import Heading from '@atlaskit/heading';
|
|
18
17
|
import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
|
|
19
18
|
import Icon from '@atlaskit/icon/core/text-style';
|
|
20
|
-
import {
|
|
21
|
-
import { Stack, Text, Box } from '@atlaskit/primitives/compiled';
|
|
22
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
|
+
import { Stack, Box } from '@atlaskit/primitives/compiled';
|
|
23
20
|
var styles = {
|
|
24
21
|
container: "_zulp12x7 _19pkpxbi",
|
|
25
22
|
removeHighlightButton: "_2rko12b0 _195gv77o _189ee4h9 _1dqonqa1 _1h6d1l7x",
|
|
@@ -90,15 +87,5 @@ export function HighlightColorMenuItem(_ref2) {
|
|
|
90
87
|
palette: colorPalette || [],
|
|
91
88
|
hexToPaletteColor: hexToEditorTextBackgroundPaletteColor
|
|
92
89
|
}
|
|
93
|
-
})
|
|
94
|
-
className: ax([styles.removeHighlightButton])
|
|
95
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
96
|
-
shouldFitContainer: true,
|
|
97
|
-
appearance: "subtle",
|
|
98
|
-
onClick: function onClick(event) {
|
|
99
|
-
return handleHighlightColorChange(REMOVE_HIGHLIGHT_COLOR, event);
|
|
100
|
-
}
|
|
101
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
102
|
-
weight: "medium"
|
|
103
|
-
}, fg('platform_editor_dec_a11y_fixes') ? formatMessage(messages.removeHighlight) : 'Remove highlight'))));
|
|
90
|
+
}));
|
|
104
91
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"atlaskit:src": "src/index.ts",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/adf-schema": "^51.5.0",
|
|
36
|
-
"@atlaskit/button": "^23.9.0",
|
|
37
36
|
"@atlaskit/css": "^0.19.0",
|
|
38
37
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
39
38
|
"@atlaskit/editor-plugin-analytics": "^7.0.0",
|
|
@@ -50,7 +49,7 @@
|
|
|
50
49
|
"@atlaskit/icon": "^29.4.0",
|
|
51
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
52
51
|
"@atlaskit/primitives": "^17.1.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^16.25.0",
|
|
54
53
|
"@atlaskit/tokens": "^10.0.0",
|
|
55
54
|
"@babel/runtime": "^7.0.0",
|
|
56
55
|
"@emotion/react": "^11.7.1"
|