@atlaskit/editor-plugin-find-replace 6.1.7 → 6.2.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,24 @@
1
1
  # @atlaskit/editor-plugin-find-replace
2
2
 
3
+ ## 6.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`06de6cb74b477`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/06de6cb74b477) -
8
+ [ux] [ENGHEALTH-47507] internationalise strings behind feature gate platform_editor_dec_a11y_fixes
9
+ - Updated dependencies
10
+
11
+ ## 6.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`762b79e21f96a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/762b79e21f96a) -
16
+ Migrated and cleaned up legacy iconography usage.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 6.1.7
4
23
 
5
24
  ### Patch Changes
@@ -141,11 +141,9 @@ var Find = /*#__PURE__*/function (_React$Component) {
141
141
  });
142
142
  (0, _defineProperty2.default)(_this, "matchCaseIconEle", function (iconProps) {
143
143
  return (0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? (0, _react2.jsx)(_textLetterCase.default, {
144
- LEGACY_size: 'small',
145
144
  label: iconProps.label,
146
145
  size: "small"
147
146
  }) : (0, _react2.jsx)(_textStyle.default, {
148
- LEGACY_size: 'small',
149
147
  label: _this.matchCase
150
148
  });
151
149
  });
@@ -13,6 +13,8 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
13
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _react2 = require("@emotion/react");
16
+ var _messages = require("@atlaskit/editor-common/messages");
17
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
18
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
19
  var _Find = _interopRequireDefault(require("./Find"));
18
20
  var _Replace = _interopRequireDefault(require("./Replace"));
@@ -77,13 +79,12 @@ var FindReplace = /*#__PURE__*/function (_React$PureComponent) {
77
79
  dispatchAnalyticsEvent = _this$props.dispatchAnalyticsEvent,
78
80
  allowMatchCase = _this$props.allowMatchCase,
79
81
  shouldMatchCase = _this$props.shouldMatchCase,
80
- onToggleMatchCase = _this$props.onToggleMatchCase;
82
+ onToggleMatchCase = _this$props.onToggleMatchCase,
83
+ intl = _this$props.intl;
81
84
  var focusToolbarButton = this.props.focusToolbarButton || function () {};
82
85
  return (0, _react2.jsx)("div", {
83
- role: 'dialog'
84
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
85
- ,
86
- "aria-label": 'Find and Replace',
86
+ role: 'dialog',
87
+ "aria-label": (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? intl === null || intl === void 0 ? void 0 : intl.formatMessage(_messages.findReplaceMessages.findReplaceDialogAriaLabel) : 'Find and Replace',
87
88
  "aria-modal": false,
88
89
  ref: this.modalRef
89
90
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
@@ -129,11 +129,9 @@ class Find extends React.Component {
129
129
  });
130
130
  _defineProperty(this, "matchCaseIconEle", iconProps => {
131
131
  return expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? jsx(TextLetterCaseIcon, {
132
- LEGACY_size: 'small',
133
132
  label: iconProps.label,
134
133
  size: "small"
135
134
  }) : jsx(MatchCaseIcon, {
136
- LEGACY_size: 'small',
137
135
  label: this.matchCase
138
136
  });
139
137
  });
@@ -9,6 +9,8 @@ import React from 'react';
9
9
 
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
11
  import { jsx } from '@emotion/react';
12
+ import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
13
+ import { fg } from '@atlaskit/platform-feature-flags';
12
14
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
15
  import Find from './Find';
14
16
  import Replace from './Replace';
@@ -62,14 +64,13 @@ class FindReplace extends React.PureComponent {
62
64
  dispatchAnalyticsEvent,
63
65
  allowMatchCase,
64
66
  shouldMatchCase,
65
- onToggleMatchCase
67
+ onToggleMatchCase,
68
+ intl
66
69
  } = this.props;
67
70
  const focusToolbarButton = this.props.focusToolbarButton || (() => {});
68
71
  return jsx("div", {
69
- role: 'dialog'
70
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
71
- ,
72
- "aria-label": 'Find and Replace',
72
+ role: 'dialog',
73
+ "aria-label": fg('platform_editor_dec_a11y_fixes') ? intl === null || intl === void 0 ? void 0 : intl.formatMessage(messages.findReplaceDialogAriaLabel) : 'Find and Replace',
73
74
  "aria-modal": false,
74
75
  ref: this.modalRef
75
76
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
@@ -138,11 +138,9 @@ var Find = /*#__PURE__*/function (_React$Component) {
138
138
  });
139
139
  _defineProperty(_this, "matchCaseIconEle", function (iconProps) {
140
140
  return expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? jsx(TextLetterCaseIcon, {
141
- LEGACY_size: 'small',
142
141
  label: iconProps.label,
143
142
  size: "small"
144
143
  }) : jsx(MatchCaseIcon, {
145
- LEGACY_size: 'small',
146
144
  label: _this.matchCase
147
145
  });
148
146
  });
@@ -16,6 +16,8 @@ import React from 'react';
16
16
 
17
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
18
  import { jsx } from '@emotion/react';
19
+ import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
20
+ import { fg } from '@atlaskit/platform-feature-flags';
19
21
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
20
22
  import Find from './Find';
21
23
  import Replace from './Replace';
@@ -75,13 +77,12 @@ var FindReplace = /*#__PURE__*/function (_React$PureComponent) {
75
77
  dispatchAnalyticsEvent = _this$props.dispatchAnalyticsEvent,
76
78
  allowMatchCase = _this$props.allowMatchCase,
77
79
  shouldMatchCase = _this$props.shouldMatchCase,
78
- onToggleMatchCase = _this$props.onToggleMatchCase;
80
+ onToggleMatchCase = _this$props.onToggleMatchCase,
81
+ intl = _this$props.intl;
79
82
  var focusToolbarButton = this.props.focusToolbarButton || function () {};
80
83
  return jsx("div", {
81
- role: 'dialog'
82
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
83
- ,
84
- "aria-label": 'Find and Replace',
84
+ role: 'dialog',
85
+ "aria-label": fg('platform_editor_dec_a11y_fixes') ? intl === null || intl === void 0 ? void 0 : intl.formatMessage(messages.findReplaceDialogAriaLabel) : 'Find and Replace',
85
86
  "aria-modal": false,
86
87
  ref: this.modalRef
87
88
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import { jsx } from '@emotion/react';
7
+ import type { IntlShape } from 'react-intl-next';
7
8
  import type { DispatchAnalyticsEvent, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
8
9
  import type { MatchCaseProps } from '../types';
9
10
  export type FindReplaceProps = {
@@ -15,6 +16,7 @@ export type FindReplaceProps = {
15
16
  dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
16
17
  findText?: string;
17
18
  focusToolbarButton?: () => void;
19
+ intl?: IntlShape;
18
20
  isReplaceable?: boolean;
19
21
  onCancel: ({ triggerMethod, }: {
20
22
  triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import { jsx } from '@emotion/react';
7
+ import type { IntlShape } from 'react-intl-next';
7
8
  import type { DispatchAnalyticsEvent, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
8
9
  import type { MatchCaseProps } from '../types';
9
10
  export type FindReplaceProps = {
@@ -15,6 +16,7 @@ export type FindReplaceProps = {
15
16
  dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
16
17
  findText?: string;
17
18
  focusToolbarButton?: () => void;
19
+ intl?: IntlShape;
18
20
  isReplaceable?: boolean;
19
21
  onCancel: ({ triggerMethod, }: {
20
22
  triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-find-replace",
3
- "version": "6.1.7",
3
+ "version": "6.2.1",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -28,24 +28,24 @@
28
28
  ],
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
- "@atlaskit/button": "^23.7.0",
31
+ "@atlaskit/button": "^23.8.0",
32
32
  "@atlaskit/editor-plugin-analytics": "^6.2.0",
33
33
  "@atlaskit/editor-plugin-card": "^11.5.0",
34
- "@atlaskit/editor-plugin-expand": "^7.4.0",
34
+ "@atlaskit/editor-plugin-expand": "^7.5.0",
35
35
  "@atlaskit/editor-plugin-mentions": "^8.2.0",
36
36
  "@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
37
37
  "@atlaskit/editor-prosemirror": "^7.2.0",
38
38
  "@atlaskit/editor-shared-styles": "^3.10.0",
39
- "@atlaskit/form": "^15.0.0",
40
- "@atlaskit/icon": "^29.1.0",
41
- "@atlaskit/icon-lab": "^5.12.0",
39
+ "@atlaskit/form": "^15.1.0",
40
+ "@atlaskit/icon": "^29.3.0",
41
+ "@atlaskit/icon-lab": "^5.13.0",
42
42
  "@atlaskit/mention": "^24.4.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/primitives": "^16.4.0",
45
45
  "@atlaskit/textfield": "^8.2.0",
46
46
  "@atlaskit/theme": "^21.0.0",
47
- "@atlaskit/tmp-editor-statsig": "^15.12.0",
48
- "@atlaskit/tokens": "^8.5.0",
47
+ "@atlaskit/tmp-editor-statsig": "^15.15.0",
48
+ "@atlaskit/tokens": "^8.6.0",
49
49
  "@atlaskit/tooltip": "^20.11.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
@@ -61,7 +61,7 @@
61
61
  "react-dom": "^18.2.0"
62
62
  },
63
63
  "peerDependencies": {
64
- "@atlaskit/editor-common": "^110.44.0",
64
+ "@atlaskit/editor-common": "^110.46.0",
65
65
  "react": "^18.2.0",
66
66
  "react-intl-next": "npm:react-intl@^5.18.1"
67
67
  },
@@ -114,6 +114,9 @@
114
114
  },
115
115
  "platform_editor_a11y_find_replace_focus_fix": {
116
116
  "type": "boolean"
117
+ },
118
+ "platform_editor_dec_a11y_fixes": {
119
+ "type": "boolean"
117
120
  }
118
121
  }
119
122
  }