@atlaskit/editor-plugin-find-replace 7.0.1 → 7.0.2

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,13 @@
1
1
  # @atlaskit/editor-plugin-find-replace
2
2
 
3
+ ## 7.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`034a10bed9524`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/034a10bed9524) -
8
+ [ED-29732] clean up FG platform_editor_a11y_find_replace_focus_fix
9
+ - Updated dependencies
10
+
3
11
  ## 7.0.1
4
12
 
5
13
  ### Patch Changes
@@ -21,7 +21,6 @@ var _messages = require("@atlaskit/editor-common/messages");
21
21
  var _form = require("@atlaskit/form");
22
22
  var _textLetterCase = _interopRequireDefault(require("@atlaskit/icon-lab/core/text-letter-case"));
23
23
  var _textStyle = _interopRequireDefault(require("@atlaskit/icon/core/text-style"));
24
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
25
24
  var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
26
25
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
27
26
  var _FindReplaceTooltipButton = require("./FindReplaceTooltipButton");
@@ -104,7 +103,7 @@ var Find = /*#__PURE__*/function (_React$Component) {
104
103
  (0, _defineProperty2.default)(_this, "handleFindKeyUp", function () {
105
104
  _this.handleFindKeyDownThrottled.cancel();
106
105
  });
107
- (0, _defineProperty2.default)(_this, "handleFindNextClick", function (ref) {
106
+ (0, _defineProperty2.default)(_this, "handleFindNextClick", function () {
108
107
  if (_this.isComposing) {
109
108
  return;
110
109
  }
@@ -112,7 +111,7 @@ var Find = /*#__PURE__*/function (_React$Component) {
112
111
  triggerMethod: _analytics.TRIGGER_METHOD.BUTTON
113
112
  });
114
113
  });
115
- (0, _defineProperty2.default)(_this, "handleFindPrevClick", function (ref) {
114
+ (0, _defineProperty2.default)(_this, "handleFindPrevClick", function () {
116
115
  if (_this.isComposing) {
117
116
  return;
118
117
  }
@@ -133,7 +132,7 @@ var Find = /*#__PURE__*/function (_React$Component) {
133
132
  triggerMethod: _analytics.TRIGGER_METHOD.BUTTON
134
133
  });
135
134
  });
136
- (0, _defineProperty2.default)(_this, "handleMatchCaseClick", function (buttonRef) {
135
+ (0, _defineProperty2.default)(_this, "handleMatchCaseClick", function () {
137
136
  if (_this.props.onToggleMatchCase) {
138
137
  _this.props.onToggleMatchCase();
139
138
  _this.props.onFind(_this.props.findText);
@@ -169,14 +168,10 @@ var Find = /*#__PURE__*/function (_React$Component) {
169
168
 
170
169
  // focus initially on dialog mount if there is no find text provided
171
170
  if (!this.props.findText) {
172
- if ((0, _platformFeatureFlags.fg)('platform_editor_a11y_find_replace_focus_fix')) {
173
- // Wait for findTextfieldRef to become available then focus
174
- setTimeout(function () {
175
- _this2.focusFindTextfield();
176
- }, 100);
177
- } else {
178
- this.focusFindTextfield();
179
- }
171
+ // Wait for findTextfieldRef to become available then focus
172
+ setTimeout(function () {
173
+ _this2.focusFindTextfield();
174
+ }, 100);
180
175
  }
181
176
  this.syncFindText(function () {
182
177
  // focus after input is synced if find text provided
@@ -16,7 +16,6 @@ import { findReplaceMessages as messages } from '@atlaskit/editor-common/message
16
16
  import { Label } from '@atlaskit/form';
17
17
  import TextLetterCaseIcon from '@atlaskit/icon-lab/core/text-letter-case';
18
18
  import MatchCaseIcon from '@atlaskit/icon/core/text-style';
19
- import { fg } from '@atlaskit/platform-feature-flags';
20
19
  import Textfield from '@atlaskit/textfield';
21
20
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
22
21
  import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
@@ -92,7 +91,7 @@ class Find extends React.Component {
92
91
  _defineProperty(this, "handleFindKeyUp", () => {
93
92
  this.handleFindKeyDownThrottled.cancel();
94
93
  });
95
- _defineProperty(this, "handleFindNextClick", ref => {
94
+ _defineProperty(this, "handleFindNextClick", () => {
96
95
  if (this.isComposing) {
97
96
  return;
98
97
  }
@@ -100,7 +99,7 @@ class Find extends React.Component {
100
99
  triggerMethod: TRIGGER_METHOD.BUTTON
101
100
  });
102
101
  });
103
- _defineProperty(this, "handleFindPrevClick", ref => {
102
+ _defineProperty(this, "handleFindPrevClick", () => {
104
103
  if (this.isComposing) {
105
104
  return;
106
105
  }
@@ -121,7 +120,7 @@ class Find extends React.Component {
121
120
  triggerMethod: TRIGGER_METHOD.BUTTON
122
121
  });
123
122
  });
124
- _defineProperty(this, "handleMatchCaseClick", buttonRef => {
123
+ _defineProperty(this, "handleMatchCaseClick", () => {
125
124
  if (this.props.onToggleMatchCase) {
126
125
  this.props.onToggleMatchCase();
127
126
  this.props.onFind(this.props.findText);
@@ -156,14 +155,10 @@ class Find extends React.Component {
156
155
 
157
156
  // focus initially on dialog mount if there is no find text provided
158
157
  if (!this.props.findText) {
159
- if (fg('platform_editor_a11y_find_replace_focus_fix')) {
160
- // Wait for findTextfieldRef to become available then focus
161
- setTimeout(() => {
162
- this.focusFindTextfield();
163
- }, 100);
164
- } else {
158
+ // Wait for findTextfieldRef to become available then focus
159
+ setTimeout(() => {
165
160
  this.focusFindTextfield();
166
- }
161
+ }, 100);
167
162
  }
168
163
  this.syncFindText(() => {
169
164
  // focus after input is synced if find text provided
@@ -23,7 +23,6 @@ import { findReplaceMessages as messages } from '@atlaskit/editor-common/message
23
23
  import { Label } from '@atlaskit/form';
24
24
  import TextLetterCaseIcon from '@atlaskit/icon-lab/core/text-letter-case';
25
25
  import MatchCaseIcon from '@atlaskit/icon/core/text-style';
26
- import { fg } from '@atlaskit/platform-feature-flags';
27
26
  import Textfield from '@atlaskit/textfield';
28
27
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
29
28
  import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
@@ -101,7 +100,7 @@ var Find = /*#__PURE__*/function (_React$Component) {
101
100
  _defineProperty(_this, "handleFindKeyUp", function () {
102
101
  _this.handleFindKeyDownThrottled.cancel();
103
102
  });
104
- _defineProperty(_this, "handleFindNextClick", function (ref) {
103
+ _defineProperty(_this, "handleFindNextClick", function () {
105
104
  if (_this.isComposing) {
106
105
  return;
107
106
  }
@@ -109,7 +108,7 @@ var Find = /*#__PURE__*/function (_React$Component) {
109
108
  triggerMethod: TRIGGER_METHOD.BUTTON
110
109
  });
111
110
  });
112
- _defineProperty(_this, "handleFindPrevClick", function (ref) {
111
+ _defineProperty(_this, "handleFindPrevClick", function () {
113
112
  if (_this.isComposing) {
114
113
  return;
115
114
  }
@@ -130,7 +129,7 @@ var Find = /*#__PURE__*/function (_React$Component) {
130
129
  triggerMethod: TRIGGER_METHOD.BUTTON
131
130
  });
132
131
  });
133
- _defineProperty(_this, "handleMatchCaseClick", function (buttonRef) {
132
+ _defineProperty(_this, "handleMatchCaseClick", function () {
134
133
  if (_this.props.onToggleMatchCase) {
135
134
  _this.props.onToggleMatchCase();
136
135
  _this.props.onFind(_this.props.findText);
@@ -166,14 +165,10 @@ var Find = /*#__PURE__*/function (_React$Component) {
166
165
 
167
166
  // focus initially on dialog mount if there is no find text provided
168
167
  if (!this.props.findText) {
169
- if (fg('platform_editor_a11y_find_replace_focus_fix')) {
170
- // Wait for findTextfieldRef to become available then focus
171
- setTimeout(function () {
172
- _this2.focusFindTextfield();
173
- }, 100);
174
- } else {
175
- this.focusFindTextfield();
176
- }
168
+ // Wait for findTextfieldRef to become available then focus
169
+ setTimeout(function () {
170
+ _this2.focusFindTextfield();
171
+ }, 100);
177
172
  }
178
173
  this.syncFindText(function () {
179
174
  // focus after input is synced if find text provided
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-find-replace",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,23 +30,23 @@
30
30
  "dependencies": {
31
31
  "@atlaskit/button": "^23.9.0",
32
32
  "@atlaskit/editor-plugin-analytics": "^7.0.0",
33
- "@atlaskit/editor-plugin-card": "^12.0.0",
33
+ "@atlaskit/editor-plugin-card": "^12.1.0",
34
34
  "@atlaskit/editor-plugin-expand": "^8.0.0",
35
35
  "@atlaskit/editor-plugin-mentions": "^9.0.0",
36
36
  "@atlaskit/editor-plugin-primary-toolbar": "^8.0.0",
37
37
  "@atlaskit/editor-prosemirror": "^7.2.0",
38
38
  "@atlaskit/editor-shared-styles": "^3.10.0",
39
- "@atlaskit/form": "^15.2.0",
40
- "@atlaskit/icon": "^29.3.0",
41
- "@atlaskit/icon-lab": "^5.13.0",
39
+ "@atlaskit/form": "^15.3.0",
40
+ "@atlaskit/icon": "^29.4.0",
41
+ "@atlaskit/icon-lab": "^5.14.0",
42
42
  "@atlaskit/mention": "^24.4.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/primitives": "^17.0.0",
45
45
  "@atlaskit/textfield": "^8.2.0",
46
46
  "@atlaskit/theme": "^21.0.0",
47
- "@atlaskit/tmp-editor-statsig": "^16.3.0",
48
- "@atlaskit/tokens": "^9.0.0",
49
- "@atlaskit/tooltip": "^20.11.0",
47
+ "@atlaskit/tmp-editor-statsig": "^16.11.0",
48
+ "@atlaskit/tokens": "^9.1.0",
49
+ "@atlaskit/tooltip": "^20.12.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
52
52
  "classnames": "^2.2.5",
@@ -61,7 +61,7 @@
61
61
  "react-dom": "^18.2.0"
62
62
  },
63
63
  "peerDependencies": {
64
- "@atlaskit/editor-common": "^111.0.0",
64
+ "@atlaskit/editor-common": "^111.7.0",
65
65
  "react": "^18.2.0",
66
66
  "react-intl-next": "npm:react-intl@^5.18.1"
67
67
  },
@@ -112,9 +112,6 @@
112
112
  "platform_editor_toolbar_responsive_fixes": {
113
113
  "type": "boolean"
114
114
  },
115
- "platform_editor_a11y_find_replace_focus_fix": {
116
- "type": "boolean"
117
- },
118
115
  "platform_editor_dec_a11y_fixes": {
119
116
  "type": "boolean"
120
117
  }