@atlaskit/editor-plugin-find-replace 9.0.0 → 10.0.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,30 @@
1
1
  # @atlaskit/editor-plugin-find-replace
2
2
 
3
+ ## 10.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
14
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
15
+
16
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
17
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
18
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
19
+
20
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
21
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
22
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 9.0.0
4
29
 
5
30
  ### Patch Changes
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
  var _react2 = require("@emotion/react");
16
16
  var _debounce = _interopRequireDefault(require("lodash/debounce"));
17
17
  var _rafSchd = _interopRequireDefault(require("raf-schd"));
18
- var _reactIntlNext = require("react-intl-next");
18
+ var _reactIntl = require("react-intl");
19
19
  var _analytics = require("@atlaskit/editor-common/analytics");
20
20
  var _messages = require("@atlaskit/editor-common/messages");
21
21
  var _form = require("@atlaskit/form");
@@ -265,5 +265,5 @@ var Find = /*#__PURE__*/function (_React$Component) {
265
265
  }
266
266
  }]);
267
267
  }(_react.default.Component); // eslint-disable-next-line @typescript-eslint/ban-types
268
- var _default_1 = (0, _reactIntlNext.injectIntl)(Find);
268
+ var _default_1 = (0, _reactIntl.injectIntl)(Find);
269
269
  var _default = exports.default = _default_1;
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _analytics = require("@atlaskit/editor-common/analytics");
12
12
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
13
13
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
@@ -79,5 +79,5 @@ var FindReplaceDropdown = function FindReplaceDropdown(props) {
79
79
  };
80
80
 
81
81
  // eslint-disable-next-line @typescript-eslint/ban-types
82
- var _default_1 = (0, _reactIntlNext.injectIntl)(FindReplaceDropdown);
82
+ var _default_1 = (0, _reactIntl.injectIntl)(FindReplaceDropdown);
83
83
  var _default = exports.default = _default_1;
@@ -15,7 +15,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
15
15
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
16
16
  var _react = _interopRequireDefault(require("react"));
17
17
  var _react2 = require("@emotion/react");
18
- var _reactIntlNext = require("react-intl-next");
18
+ var _reactIntl = require("react-intl");
19
19
  var _analytics = require("@atlaskit/editor-common/analytics");
20
20
  var _keymaps = require("@atlaskit/editor-common/keymaps");
21
21
  var _messages = require("@atlaskit/editor-common/messages");
@@ -204,5 +204,5 @@ var FindReplaceToolbarButton = /*#__PURE__*/function (_React$PureComponent) {
204
204
  }
205
205
  }]);
206
206
  }(_react.default.PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
207
- var _default_1 = (0, _reactIntlNext.injectIntl)(FindReplaceToolbarButton);
207
+ var _default_1 = (0, _reactIntl.injectIntl)(FindReplaceToolbarButton);
208
208
  var _default = exports.default = _default_1;
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.default = void 0;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
- var _reactIntlNext = require("react-intl-next");
11
+ var _reactIntl = require("react-intl");
12
12
  var _new = _interopRequireDefault(require("@atlaskit/button/new"));
13
13
  var _analytics = require("@atlaskit/editor-common/analytics");
14
14
  var _messages = require("@atlaskit/editor-common/messages");
@@ -281,5 +281,5 @@ var Replace = function Replace(_ref) {
281
281
  };
282
282
 
283
283
  // eslint-disable-next-line @typescript-eslint/ban-types
284
- var _default_1 = (0, _reactIntlNext.injectIntl)(Replace);
284
+ var _default_1 = (0, _reactIntl.injectIntl)(Replace);
285
285
  var _default = exports.default = _default_1;
@@ -10,7 +10,7 @@ import React from 'react';
10
10
  import { jsx } from '@emotion/react';
11
11
  import debounce from 'lodash/debounce';
12
12
  import rafSchd from 'raf-schd';
13
- import { injectIntl } from 'react-intl-next';
13
+ import { injectIntl } from 'react-intl';
14
14
  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';
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import { injectIntl } from 'react-intl-next';
3
+ import { injectIntl } from 'react-intl';
4
4
  import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { ArrowKeyNavigationType, Dropdown } from '@atlaskit/editor-common/ui-menu';
6
6
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
@@ -9,7 +9,7 @@ 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 { css, jsx } from '@emotion/react';
12
- import { injectIntl } from 'react-intl-next';
12
+ import { injectIntl } from 'react-intl';
13
13
  import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
14
14
  import { findKeymapByDescription, getAriaKeyshortcuts, tooltip, ToolTipContent } from '@atlaskit/editor-common/keymaps';
15
15
  import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useRef, useEffect } from 'react';
2
- import { injectIntl } from 'react-intl-next';
2
+ import { injectIntl } from 'react-intl';
3
3
  import Button from '@atlaskit/button/new';
4
4
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
@@ -17,7 +17,7 @@ import React from 'react';
17
17
  import { jsx } from '@emotion/react';
18
18
  import debounce from 'lodash/debounce';
19
19
  import rafSchd from 'raf-schd';
20
- import { injectIntl } from 'react-intl-next';
20
+ import { injectIntl } from 'react-intl';
21
21
  import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
22
22
  import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
23
23
  import { Label } from '@atlaskit/form';
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import { injectIntl } from 'react-intl-next';
3
+ import { injectIntl } from 'react-intl';
4
4
  import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { ArrowKeyNavigationType, Dropdown } from '@atlaskit/editor-common/ui-menu';
6
6
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
@@ -18,7 +18,7 @@ import React from 'react';
18
18
 
19
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
20
  import { css, jsx } from '@emotion/react';
21
- import { injectIntl } from 'react-intl-next';
21
+ import { injectIntl } from 'react-intl';
22
22
  import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
23
23
  import { findKeymapByDescription, getAriaKeyshortcuts, tooltip, ToolTipContent } from '@atlaskit/editor-common/keymaps';
24
24
  import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
@@ -1,6 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useState, useRef, useEffect } from 'react';
3
- import { injectIntl } from 'react-intl-next';
3
+ import { injectIntl } from 'react-intl';
4
4
  import Button from '@atlaskit/button/new';
5
5
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
6
6
  import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { Fragment, Node as PmNode, Slice } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { ReadonlyTransaction, Selection } from '@atlaskit/editor-prosemirror/state';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { DecorationSet, EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
6
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
7
  import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
8
8
  import type { MatchCaseProps } from '../types';
9
9
  export declare const FIND_DEBOUNCE_MS = 100;
@@ -4,7 +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
+ import type { IntlShape } from 'react-intl';
8
8
  import type { DispatchAnalyticsEvent, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
9
9
  import type { MatchCaseProps } from '../types';
10
10
  export type FindReplaceProps = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
3
3
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
4
4
  import type { FindReplaceProps } from './FindReplace';
5
5
  export interface FindReplaceDropdownProps extends Omit<FindReplaceProps, 'count'> {
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
6
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
7
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
8
8
  import type { FindReplaceProps } from './FindReplace';
9
9
  export interface FindReplaceToolbarButtonProps extends Omit<FindReplaceProps, 'count'> {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
4
4
  import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  export type ReplaceProps = {
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { Fragment, Node as PmNode, Slice } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { ReadonlyTransaction, Selection } from '@atlaskit/editor-prosemirror/state';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { DecorationSet, EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
6
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
7
  import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
8
8
  import type { MatchCaseProps } from '../types';
9
9
  export declare const FIND_DEBOUNCE_MS = 100;
@@ -4,7 +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
+ import type { IntlShape } from 'react-intl';
8
8
  import type { DispatchAnalyticsEvent, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
9
9
  import type { MatchCaseProps } from '../types';
10
10
  export type FindReplaceProps = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
3
3
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
4
4
  import type { FindReplaceProps } from './FindReplace';
5
5
  export interface FindReplaceDropdownProps extends Omit<FindReplaceProps, 'count'> {
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
6
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
7
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
8
8
  import type { FindReplaceProps } from './FindReplace';
9
9
  export interface FindReplaceToolbarButtonProps extends Omit<FindReplaceProps, 'count'> {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
4
4
  import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  export type ReplaceProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-find-replace",
3
- "version": "9.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,11 +29,11 @@
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
31
  "@atlaskit/button": "^23.11.0",
32
- "@atlaskit/editor-plugin-analytics": "^9.0.0",
33
- "@atlaskit/editor-plugin-card": "^15.0.0",
34
- "@atlaskit/editor-plugin-expand": "^10.0.0",
35
- "@atlaskit/editor-plugin-mentions": "^11.0.0",
36
- "@atlaskit/editor-plugin-primary-toolbar": "^10.0.0",
32
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
33
+ "@atlaskit/editor-plugin-card": "^16.0.0",
34
+ "@atlaskit/editor-plugin-expand": "^11.0.0",
35
+ "@atlaskit/editor-plugin-mentions": "^12.0.0",
36
+ "@atlaskit/editor-plugin-primary-toolbar": "^11.0.0",
37
37
  "@atlaskit/editor-prosemirror": "^7.3.0",
38
38
  "@atlaskit/editor-shared-styles": "^3.10.0",
39
39
  "@atlaskit/form": "^15.5.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/primitives": "^19.0.0",
45
45
  "@atlaskit/textfield": "^8.3.0",
46
- "@atlaskit/tmp-editor-statsig": "^62.4.0",
46
+ "@atlaskit/tmp-editor-statsig": "^63.0.0",
47
47
  "@atlaskit/tokens": "^13.0.0",
48
48
  "@atlaskit/tooltip": "^21.1.0",
49
49
  "@babel/runtime": "^7.0.0",
@@ -57,12 +57,13 @@
57
57
  "@testing-library/user-event": "^14.4.3",
58
58
  "mockdate": "^3.0.5",
59
59
  "raf-stub": "^2.0.1",
60
- "react-dom": "^18.2.0"
60
+ "react-dom": "^18.2.0",
61
+ "react-intl": "^6.6.2"
61
62
  },
62
63
  "peerDependencies": {
63
- "@atlaskit/editor-common": "^113.0.0",
64
+ "@atlaskit/editor-common": "^114.2.0",
64
65
  "react": "^18.2.0",
65
- "react-intl-next": "npm:react-intl@^5.18.1"
66
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
66
67
  },
67
68
  "techstack": {
68
69
  "@atlassian/frontend": {