@atlaskit/editor-plugin-find-replace 1.4.3 → 1.5.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,26 @@
1
1
  # @atlaskit/editor-plugin-find-replace
2
2
 
3
+ ## 1.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#124134](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124134)
8
+ [`80147d04d87b6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/80147d04d87b6) -
9
+ Fix bug in React 18 concurrent mode where find input swallows characters
10
+ - Updated dependencies
11
+
12
+ ## 1.5.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#124209](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124209)
17
+ [`8aa1792f12ed3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8aa1792f12ed3) -
18
+ bump @atlaskit/editor-prosemirror to 5.0.0, bump @atlaskit/adf-schema to 40.1.0
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 1.4.3
4
25
 
5
26
  ### Patch Changes
@@ -21,11 +21,15 @@ 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");
24
25
  var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
25
26
  var _FindReplaceTooltipButton = require("./FindReplaceTooltipButton");
26
27
  var _styles = require("./styles");
27
28
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
28
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
29
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */ /**
30
+ * @jsxRuntime classic
31
+ * @jsx jsx
32
+ */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
29
33
  var FIND_DEBOUNCE_MS = exports.FIND_DEBOUNCE_MS = 100;
30
34
  // eslint-disable-next-line @repo/internal/react/no-class-components
31
35
  var Find = /*#__PURE__*/function (_React$Component) {
@@ -175,13 +179,24 @@ var Find = /*#__PURE__*/function (_React$Component) {
175
179
  if (this.props.findText === ((_this$state2 = this.state) === null || _this$state2 === void 0 ? void 0 : _this$state2.localFindText)) {
176
180
  this.focusFindTextfield();
177
181
  }
178
- if (this.props.findText !== prevProps.findText) {
179
- this.syncFindText(function () {
180
- // focus after input is synced if find text provided
181
- if (_this3.props.findText) {
182
- _this3.focusFindTextfield();
183
- }
184
- });
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
+ }
185
200
  }
186
201
  }
187
202
  }, {
@@ -18,7 +18,10 @@ var _Find = _interopRequireDefault(require("./Find"));
18
18
  var _Replace = _interopRequireDefault(require("./Replace"));
19
19
  var _styles = require("./styles");
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */ /* eslint-disable @atlaskit/design-system/prefer-primitives */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
21
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */ /* eslint-disable @atlaskit/design-system/prefer-primitives */ /**
22
+ * @jsxRuntime classic
23
+ * @jsx jsx
24
+ */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
25
  // eslint-disable-next-line @repo/internal/react/no-class-components
23
26
  var FindReplace = /*#__PURE__*/function (_React$PureComponent) {
24
27
  (0, _inherits2.default)(FindReplace, _React$PureComponent);
@@ -26,7 +26,10 @@ var _search = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/search
26
26
  var _FindReplace = _interopRequireDefault(require("./FindReplace"));
27
27
  var _templateObject;
28
28
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
29
- /** @jsx jsx */
29
+ /**
30
+ * @jsxRuntime classic
31
+ * @jsx jsx
32
+ */
30
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
31
34
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
32
35
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
@@ -29,7 +29,10 @@ var _styles = require("./styles");
29
29
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
30
30
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
31
31
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
32
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
32
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */ /**
33
+ * @jsxRuntime classic
34
+ * @jsx jsx
35
+ */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
33
36
  // eslint-disable-next-line @repo/internal/react/no-class-components
34
37
  var Replace = /*#__PURE__*/function (_React$PureComponent) {
35
38
  (0, _inherits2.default)(Replace, _React$PureComponent);
@@ -10,7 +10,10 @@ var _colors = require("@atlaskit/theme/colors");
10
10
  var _constants = require("@atlaskit/theme/constants");
11
11
  /* eslint-disable @atlaskit/design-system/no-nested-styles */
12
12
  /* eslint-disable @repo/internal/styles/no-exported-styles */
13
- /** @jsx jsx */
13
+ /**
14
+ * @jsxRuntime classic
15
+ * @jsx jsx
16
+ */
14
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
18
 
16
19
  var fontSize = (0, _constants.fontSize)();
@@ -1,6 +1,9 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
3
- /** @jsx jsx */
3
+ /**
4
+ * @jsxRuntime classic
5
+ * @jsx jsx
6
+ */
4
7
  import React from 'react';
5
8
 
6
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -12,6 +15,7 @@ import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
12
15
  import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
13
16
  import { Label } from '@atlaskit/form';
14
17
  import MatchCaseIcon from '@atlaskit/icon/glyph/emoji/keyboard';
18
+ import { fg } from '@atlaskit/platform-feature-flags';
15
19
  import Textfield from '@atlaskit/textfield';
16
20
  import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
17
21
  import { afterInputSection, countStyles, countStylesAlternateStyles, matchCaseSection, sectionWrapperStyles, sectionWrapperStylesAlternate, textFieldWrapper } from './styles';
@@ -157,13 +161,24 @@ class Find extends React.Component {
157
161
  if (this.props.findText === ((_this$state2 = this.state) === null || _this$state2 === void 0 ? void 0 : _this$state2.localFindText)) {
158
162
  this.focusFindTextfield();
159
163
  }
160
- if (this.props.findText !== prevProps.findText) {
161
- this.syncFindText(() => {
162
- // focus after input is synced if find text provided
163
- if (this.props.findText) {
164
- this.focusFindTextfield();
165
- }
166
- });
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
+ }
167
182
  }
168
183
  }
169
184
  componentWillUnmount() {
@@ -1,7 +1,10 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
3
3
  /* eslint-disable @atlaskit/design-system/prefer-primitives */
4
- /** @jsx jsx */
4
+ /**
5
+ * @jsxRuntime classic
6
+ * @jsx jsx
7
+ */
5
8
  import React from 'react';
6
9
 
7
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,7 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
4
- /** @jsx jsx */
4
+ /**
5
+ * @jsxRuntime classic
6
+ * @jsx jsx
7
+ */
5
8
  import React from 'react';
6
9
 
7
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,6 +1,9 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
3
- /** @jsx jsx */
3
+ /**
4
+ * @jsxRuntime classic
5
+ * @jsx jsx
6
+ */
4
7
  import React, { Fragment } from 'react';
5
8
 
6
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,6 +1,9 @@
1
1
  /* eslint-disable @atlaskit/design-system/no-nested-styles */
2
2
  /* eslint-disable @repo/internal/styles/no-exported-styles */
3
- /** @jsx jsx */
3
+ /**
4
+ * @jsxRuntime classic
5
+ * @jsx jsx
6
+ */
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
8
  import { css } from '@emotion/react';
6
9
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
@@ -8,7 +8,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
9
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
11
- /** @jsx jsx */
11
+ /**
12
+ * @jsxRuntime classic
13
+ * @jsx jsx
14
+ */
12
15
  import React from 'react';
13
16
 
14
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -20,6 +23,7 @@ import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
20
23
  import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
21
24
  import { Label } from '@atlaskit/form';
22
25
  import MatchCaseIcon from '@atlaskit/icon/glyph/emoji/keyboard';
26
+ import { fg } from '@atlaskit/platform-feature-flags';
23
27
  import Textfield from '@atlaskit/textfield';
24
28
  import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
25
29
  import { afterInputSection, countStyles, countStylesAlternateStyles, matchCaseSection, sectionWrapperStyles, sectionWrapperStylesAlternate, textFieldWrapper } from './styles';
@@ -172,13 +176,24 @@ var Find = /*#__PURE__*/function (_React$Component) {
172
176
  if (this.props.findText === ((_this$state2 = this.state) === null || _this$state2 === void 0 ? void 0 : _this$state2.localFindText)) {
173
177
  this.focusFindTextfield();
174
178
  }
175
- if (this.props.findText !== prevProps.findText) {
176
- this.syncFindText(function () {
177
- // focus after input is synced if find text provided
178
- if (_this3.props.findText) {
179
- _this3.focusFindTextfield();
180
- }
181
- });
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
+ }
182
197
  }
183
198
  }
184
199
  }, {
@@ -9,7 +9,10 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
9
9
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
11
11
  /* eslint-disable @atlaskit/design-system/prefer-primitives */
12
- /** @jsx jsx */
12
+ /**
13
+ * @jsxRuntime classic
14
+ * @jsx jsx
15
+ */
13
16
  import React from 'react';
14
17
 
15
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -11,7 +11,10 @@ var _templateObject;
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
12
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
13
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
14
- /** @jsx jsx */
14
+ /**
15
+ * @jsxRuntime classic
16
+ * @jsx jsx
17
+ */
15
18
  import React from 'react';
16
19
 
17
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -8,7 +8,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
9
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
11
- /** @jsx jsx */
11
+ /**
12
+ * @jsxRuntime classic
13
+ * @jsx jsx
14
+ */
12
15
  import React, { Fragment } from 'react';
13
16
 
14
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,6 +1,9 @@
1
1
  /* eslint-disable @atlaskit/design-system/no-nested-styles */
2
2
  /* eslint-disable @repo/internal/styles/no-exported-styles */
3
- /** @jsx jsx */
3
+ /**
4
+ * @jsxRuntime classic
5
+ * @jsx jsx
6
+ */
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
8
  import { css } from '@emotion/react';
6
9
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import { jsx } from '@emotion/react';
4
7
  import type { DispatchAnalyticsEvent, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import { jsx } from '@emotion/react';
4
7
  import type { DispatchAnalyticsEvent, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-find-replace",
3
- "version": "1.4.3",
3
+ "version": "1.5.1",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,15 +34,16 @@
34
34
  "./styles": "./src/styles.ts"
35
35
  },
36
36
  "dependencies": {
37
- "@atlaskit/button": "^19.0.0",
38
- "@atlaskit/editor-common": "^86.3.0",
39
- "@atlaskit/editor-plugin-analytics": "^1.4.0",
40
- "@atlaskit/editor-plugin-primary-toolbar": "^1.2.0",
41
- "@atlaskit/editor-prosemirror": "4.0.1",
37
+ "@atlaskit/button": "^19.1.0",
38
+ "@atlaskit/editor-common": "^87.0.0",
39
+ "@atlaskit/editor-plugin-analytics": "^1.6.0",
40
+ "@atlaskit/editor-plugin-primary-toolbar": "^1.3.0",
41
+ "@atlaskit/editor-prosemirror": "5.0.1",
42
42
  "@atlaskit/editor-shared-styles": "^2.13.0",
43
43
  "@atlaskit/form": "^10.4.0",
44
- "@atlaskit/icon": "^22.6.0",
45
- "@atlaskit/primitives": "^11.0.0",
44
+ "@atlaskit/icon": "^22.7.0",
45
+ "@atlaskit/platform-feature-flags": "^0.3.0",
46
+ "@atlaskit/primitives": "^11.1.0",
46
47
  "@atlaskit/textfield": "^6.4.0",
47
48
  "@atlaskit/theme": "^12.11.0",
48
49
  "@atlaskit/tokens": "^1.56.0",
@@ -54,8 +55,8 @@
54
55
  },
55
56
  "devDependencies": {
56
57
  "@af/visual-regression": "*",
57
- "@atlaskit/editor-plugin-block-type": "^3.8.0",
58
- "@atlaskit/editor-plugin-text-formatting": "^1.9.0",
58
+ "@atlaskit/editor-plugin-block-type": "^3.10.0",
59
+ "@atlaskit/editor-plugin-text-formatting": "^1.11.0",
59
60
  "@testing-library/react": "^12.1.5",
60
61
  "@testing-library/user-event": "^14.4.3",
61
62
  "mockdate": "^3.0.5",
@@ -105,5 +106,10 @@
105
106
  "@atlaskit/editor-plugin-analytics"
106
107
  ]
107
108
  }
109
+ },
110
+ "platform-feature-flags": {
111
+ "react_18_find_replace_concurrent_mode": {
112
+ "type": "boolean"
113
+ }
108
114
  }
109
115
  }