@atlaskit/editor-plugin-highlight 6.3.19 → 7.0.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,21 @@
1
1
  # @atlaskit/editor-plugin-highlight
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ae731d9e5c7e0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ae731d9e5c7e0) -
8
+ ENGHEALTH-47538: Fix literal string a11y violation
9
+ - Updated dependencies
10
+
11
+ ## 6.3.20
12
+
13
+ ### Patch Changes
14
+
15
+ - [`3693402165994`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3693402165994) -
16
+ ENGHEALTH-47506: fix a11y lint warning
17
+ - Updated dependencies
18
+
3
19
  ## 6.3.19
4
20
 
5
21
  ### Patch Changes
@@ -23,6 +23,7 @@ var _editorToolbar = require("@atlaskit/editor-toolbar");
23
23
  var _heading = _interopRequireDefault(require("@atlaskit/heading"));
24
24
  var _checkMark = _interopRequireDefault(require("@atlaskit/icon/core/check-mark"));
25
25
  var _textStyle = _interopRequireDefault(require("@atlaskit/icon/core/text-style"));
26
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
26
27
  var _compiled = require("@atlaskit/primitives/compiled");
27
28
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
28
29
  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); }
@@ -109,5 +110,5 @@ function HighlightColorMenuItem(_ref2) {
109
110
  }
110
111
  }, /*#__PURE__*/React.createElement(_compiled.Text, {
111
112
  weight: "medium"
112
- }, "Remove highlight"))));
113
+ }, (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? formatMessage(_messages.highlightMessages.removeHighlight) : 'Remove highlight'))));
113
114
  }
@@ -38,7 +38,6 @@ var PaletteDropdown = exports.PaletteDropdown = function PaletteDropdown(props)
38
38
  colorPalette = _uiColor.highlightColorPalette.map(function (item) {
39
39
  if (item.label === 'Orange') {
40
40
  return _objectSpread(_objectSpread({}, item), {}, {
41
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
42
41
  label: 'Yellow',
43
42
  message: _uiColor.colorPaletteMessages.yellow
44
43
  });
@@ -14,6 +14,7 @@ import { ColorPalette, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
14
14
  import Heading from '@atlaskit/heading';
15
15
  import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
16
16
  import Icon from '@atlaskit/icon/core/text-style';
17
+ import { fg } from '@atlaskit/platform-feature-flags';
17
18
  import { Stack, Text, Box } from '@atlaskit/primitives/compiled';
18
19
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
19
20
  const styles = {
@@ -93,5 +94,5 @@ export function HighlightColorMenuItem({
93
94
  onClick: event => handleHighlightColorChange(REMOVE_HIGHLIGHT_COLOR, event)
94
95
  }, /*#__PURE__*/React.createElement(Text, {
95
96
  weight: "medium"
96
- }, "Remove highlight"))));
97
+ }, fg('platform_editor_dec_a11y_fixes') ? formatMessage(messages.removeHighlight) : 'Remove highlight'))));
97
98
  }
@@ -31,7 +31,6 @@ export const PaletteDropdown = props => {
31
31
  if (item.label === 'Orange') {
32
32
  return {
33
33
  ...item,
34
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
35
34
  label: 'Yellow',
36
35
  message: colorPaletteMessages.yellow
37
36
  };
@@ -17,6 +17,7 @@ import { ColorPalette, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
17
17
  import Heading from '@atlaskit/heading';
18
18
  import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
19
19
  import Icon from '@atlaskit/icon/core/text-style';
20
+ import { fg } from '@atlaskit/platform-feature-flags';
20
21
  import { Stack, Text, Box } from '@atlaskit/primitives/compiled';
21
22
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
22
23
  var styles = {
@@ -100,5 +101,5 @@ export function HighlightColorMenuItem(_ref2) {
100
101
  }
101
102
  }, /*#__PURE__*/React.createElement(Text, {
102
103
  weight: "medium"
103
- }, "Remove highlight"))));
104
+ }, fg('platform_editor_dec_a11y_fixes') ? formatMessage(messages.removeHighlight) : 'Remove highlight'))));
104
105
  }
@@ -31,7 +31,6 @@ export var PaletteDropdown = function PaletteDropdown(props) {
31
31
  colorPalette = highlightColorPalette.map(function (item) {
32
32
  if (item.label === 'Orange') {
33
33
  return _objectSpread(_objectSpread({}, item), {}, {
34
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
35
34
  label: 'Yellow',
36
35
  message: colorPaletteMessages.yellow
37
36
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-highlight",
3
- "version": "6.3.19",
3
+ "version": "7.0.0",
4
4
  "description": "Highlight plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,11 +36,11 @@
36
36
  "@atlaskit/button": "^23.9.0",
37
37
  "@atlaskit/css": "^0.19.0",
38
38
  "@atlaskit/editor-palette": "^2.1.0",
39
- "@atlaskit/editor-plugin-analytics": "^6.2.0",
40
- "@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
41
- "@atlaskit/editor-plugin-selection-toolbar": "^7.1.0",
42
- "@atlaskit/editor-plugin-text-formatting": "^6.1.0",
43
- "@atlaskit/editor-plugin-toolbar": "^3.4.0",
39
+ "@atlaskit/editor-plugin-analytics": "^7.0.0",
40
+ "@atlaskit/editor-plugin-primary-toolbar": "^8.0.0",
41
+ "@atlaskit/editor-plugin-selection-toolbar": "^8.0.0",
42
+ "@atlaskit/editor-plugin-text-formatting": "^7.0.0",
43
+ "@atlaskit/editor-plugin-toolbar": "^4.0.0",
44
44
  "@atlaskit/editor-prosemirror": "^7.2.0",
45
45
  "@atlaskit/editor-shared-styles": "^3.10.0",
46
46
  "@atlaskit/editor-tables": "^2.9.0",
@@ -50,13 +50,13 @@
50
50
  "@atlaskit/icon": "^29.3.0",
51
51
  "@atlaskit/platform-feature-flags": "^1.1.0",
52
52
  "@atlaskit/primitives": "^17.0.0",
53
- "@atlaskit/tmp-editor-statsig": "^16.0.0",
53
+ "@atlaskit/tmp-editor-statsig": "^16.3.0",
54
54
  "@atlaskit/tokens": "^9.0.0",
55
55
  "@babel/runtime": "^7.0.0",
56
56
  "@emotion/react": "^11.7.1"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^110.46.0",
59
+ "@atlaskit/editor-common": "^111.0.0",
60
60
  "react": "^18.2.0",
61
61
  "react-intl-next": "npm:react-intl@^5.18.1"
62
62
  },
@@ -114,6 +114,9 @@
114
114
  },
115
115
  "platform-visual-refresh-icons": {
116
116
  "type": "boolean"
117
+ },
118
+ "platform_editor_dec_a11y_fixes": {
119
+ "type": "boolean"
117
120
  }
118
121
  }
119
122
  }