@atlaskit/editor-plugin-find-replace 1.6.0 → 1.6.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,18 @@
1
1
  # @atlaskit/editor-plugin-find-replace
2
2
 
3
+ ## 1.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`46b889c01d03e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/46b889c01d03e) -
8
+ [ux] Clean up Reaact 18 Feature Flags
9
+
10
+ ## 1.6.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 1.6.0
4
17
 
5
18
  ### Minor Changes
@@ -21,7 +21,6 @@ var _analytics = require("@atlaskit/editor-common/analytics");
21
21
  var _messages = require("@atlaskit/editor-common/messages");
22
22
  var _form = require("@atlaskit/form");
23
23
  var _keyboard = _interopRequireDefault(require("@atlaskit/icon/glyph/emoji/keyboard"));
24
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
25
24
  var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
26
25
  var _FindReplaceTooltipButton = require("./FindReplaceTooltipButton");
27
26
  var _styles = require("./styles");
@@ -179,24 +178,13 @@ var Find = /*#__PURE__*/function (_React$Component) {
179
178
  if (this.props.findText === ((_this$state2 = this.state) === null || _this$state2 === void 0 ? void 0 : _this$state2.localFindText)) {
180
179
  this.focusFindTextfield();
181
180
  }
182
- if ((0, _platformFeatureFlags.fg)('react_18_find_replace_concurrent_mode')) {
183
- if (this.props.findText !== prevProps.findText && this.props.shouldFocus) {
184
- this.syncFindText(function () {
185
- // focus after input is synced if find text provided
186
- if (_this3.props.findText) {
187
- _this3.focusFindTextfield();
188
- }
189
- });
190
- }
191
- } else {
192
- if (this.props.findText !== prevProps.findText) {
193
- this.syncFindText(function () {
194
- // focus after input is synced if find text provided
195
- if (_this3.props.findText) {
196
- _this3.focusFindTextfield();
197
- }
198
- });
199
- }
181
+ if (this.props.findText !== prevProps.findText && this.props.shouldFocus) {
182
+ this.syncFindText(function () {
183
+ // focus after input is synced if find text provided
184
+ if (_this3.props.findText) {
185
+ _this3.focusFindTextfield();
186
+ }
187
+ });
200
188
  }
201
189
  }
202
190
  }, {
@@ -15,7 +15,6 @@ import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
15
15
  import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
16
16
  import { Label } from '@atlaskit/form';
17
17
  import MatchCaseIcon from '@atlaskit/icon/glyph/emoji/keyboard';
18
- import { fg } from '@atlaskit/platform-feature-flags';
19
18
  import Textfield from '@atlaskit/textfield';
20
19
  import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
21
20
  import { afterInputSection, countStyles, countStylesAlternateStyles, matchCaseSection, sectionWrapperStyles, sectionWrapperStylesAlternate, textFieldWrapper } from './styles';
@@ -161,24 +160,13 @@ class Find extends React.Component {
161
160
  if (this.props.findText === ((_this$state2 = this.state) === null || _this$state2 === void 0 ? void 0 : _this$state2.localFindText)) {
162
161
  this.focusFindTextfield();
163
162
  }
164
- if (fg('react_18_find_replace_concurrent_mode')) {
165
- if (this.props.findText !== prevProps.findText && this.props.shouldFocus) {
166
- this.syncFindText(() => {
167
- // focus after input is synced if find text provided
168
- if (this.props.findText) {
169
- this.focusFindTextfield();
170
- }
171
- });
172
- }
173
- } else {
174
- if (this.props.findText !== prevProps.findText) {
175
- this.syncFindText(() => {
176
- // focus after input is synced if find text provided
177
- if (this.props.findText) {
178
- this.focusFindTextfield();
179
- }
180
- });
181
- }
163
+ if (this.props.findText !== prevProps.findText && this.props.shouldFocus) {
164
+ this.syncFindText(() => {
165
+ // focus after input is synced if find text provided
166
+ if (this.props.findText) {
167
+ this.focusFindTextfield();
168
+ }
169
+ });
182
170
  }
183
171
  }
184
172
  componentWillUnmount() {
@@ -23,7 +23,6 @@ import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
23
23
  import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
24
24
  import { Label } from '@atlaskit/form';
25
25
  import MatchCaseIcon from '@atlaskit/icon/glyph/emoji/keyboard';
26
- import { fg } from '@atlaskit/platform-feature-flags';
27
26
  import Textfield from '@atlaskit/textfield';
28
27
  import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
29
28
  import { afterInputSection, countStyles, countStylesAlternateStyles, matchCaseSection, sectionWrapperStyles, sectionWrapperStylesAlternate, textFieldWrapper } from './styles';
@@ -176,24 +175,13 @@ var Find = /*#__PURE__*/function (_React$Component) {
176
175
  if (this.props.findText === ((_this$state2 = this.state) === null || _this$state2 === void 0 ? void 0 : _this$state2.localFindText)) {
177
176
  this.focusFindTextfield();
178
177
  }
179
- if (fg('react_18_find_replace_concurrent_mode')) {
180
- if (this.props.findText !== prevProps.findText && this.props.shouldFocus) {
181
- this.syncFindText(function () {
182
- // focus after input is synced if find text provided
183
- if (_this3.props.findText) {
184
- _this3.focusFindTextfield();
185
- }
186
- });
187
- }
188
- } else {
189
- if (this.props.findText !== prevProps.findText) {
190
- this.syncFindText(function () {
191
- // focus after input is synced if find text provided
192
- if (_this3.props.findText) {
193
- _this3.focusFindTextfield();
194
- }
195
- });
196
- }
178
+ if (this.props.findText !== prevProps.findText && this.props.shouldFocus) {
179
+ this.syncFindText(function () {
180
+ // focus after input is synced if find text provided
181
+ if (_this3.props.findText) {
182
+ _this3.focusFindTextfield();
183
+ }
184
+ });
197
185
  }
198
186
  }
199
187
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-find-replace",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,20 +34,19 @@
34
34
  "./styles": "./src/styles.ts"
35
35
  },
36
36
  "dependencies": {
37
- "@atlaskit/button": "^19.1.0",
38
- "@atlaskit/editor-common": "^87.3.0",
39
- "@atlaskit/editor-plugin-analytics": "^1.6.0",
37
+ "@atlaskit/button": "^19.2.0",
38
+ "@atlaskit/editor-common": "^87.9.0",
39
+ "@atlaskit/editor-plugin-analytics": "^1.7.0",
40
40
  "@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
41
41
  "@atlaskit/editor-prosemirror": "5.0.1",
42
42
  "@atlaskit/editor-shared-styles": "^2.13.0",
43
- "@atlaskit/form": "^10.4.0",
44
- "@atlaskit/icon": "^22.9.0",
45
- "@atlaskit/platform-feature-flags": "^0.3.0",
46
- "@atlaskit/primitives": "^11.1.0",
47
- "@atlaskit/textfield": "^6.4.0",
48
- "@atlaskit/theme": "^12.11.0",
49
- "@atlaskit/tokens": "^1.56.0",
50
- "@atlaskit/tooltip": "^18.5.0",
43
+ "@atlaskit/form": "^10.5.0",
44
+ "@atlaskit/icon": "^22.12.0",
45
+ "@atlaskit/primitives": "^12.0.0",
46
+ "@atlaskit/textfield": "^6.5.0",
47
+ "@atlaskit/theme": "^12.12.0",
48
+ "@atlaskit/tokens": "^1.58.0",
49
+ "@atlaskit/tooltip": "^18.7.0",
51
50
  "@babel/runtime": "^7.0.0",
52
51
  "@emotion/react": "^11.7.1",
53
52
  "lodash": "^4.17.21",
@@ -55,8 +54,8 @@
55
54
  },
56
55
  "devDependencies": {
57
56
  "@af/visual-regression": "*",
58
- "@atlaskit/editor-plugin-block-type": "^3.11.0",
59
- "@atlaskit/editor-plugin-text-formatting": "^1.12.0",
57
+ "@atlaskit/editor-plugin-block-type": "^3.12.0",
58
+ "@atlaskit/editor-plugin-text-formatting": "^1.13.0",
60
59
  "@testing-library/react": "^12.1.5",
61
60
  "@testing-library/user-event": "^14.4.3",
62
61
  "mockdate": "^3.0.5",
@@ -106,10 +105,5 @@
106
105
  "@atlaskit/editor-plugin-analytics"
107
106
  ]
108
107
  }
109
- },
110
- "platform-feature-flags": {
111
- "react_18_find_replace_concurrent_mode": {
112
- "type": "boolean"
113
- }
114
108
  }
115
109
  }