@atlaskit/editor-plugin-floating-toolbar 11.0.0 → 12.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-floating-toolbar
2
2
 
3
+ ## 12.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 12.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
  ## 11.0.0
4
29
 
5
30
  ### Patch Changes
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.ConfirmationModal = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _reactIntlNext = require("react-intl-next");
9
+ var _reactIntl = require("react-intl");
10
10
  var _modalDialog = require("@atlaskit/modal-dialog");
11
11
  var _CheckboxModal = require("./CheckboxModal");
12
12
  var _SimpleModal = require("./SimpleModal");
@@ -26,4 +26,4 @@ var ConfirmationModalImpl = function ConfirmationModalImpl(props) {
26
26
  };
27
27
 
28
28
  // eslint-disable-next-line @typescript-eslint/ban-types
29
- var ConfirmationModal = exports.ConfirmationModal = (0, _reactIntlNext.injectIntl)(ConfirmationModalImpl);
29
+ var ConfirmationModal = exports.ConfirmationModal = (0, _reactIntl.injectIntl)(ConfirmationModalImpl);
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.menuItemDimensions = exports.itemSpacing = exports.default = void 0;
7
7
  var _react = require("react");
8
8
  var _react2 = require("@emotion/react");
9
- var _reactIntlNext = require("react-intl-next");
9
+ var _reactIntl = require("react-intl");
10
10
  var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
11
11
  var _menu = require("@atlaskit/menu");
12
12
  /**
@@ -123,5 +123,5 @@ var Dropdown = /*#__PURE__*/(0, _react.memo)(function (props) {
123
123
  });
124
124
  }));
125
125
  });
126
- var _default_1 = (0, _reactIntlNext.injectIntl)(Dropdown);
126
+ var _default_1 = (0, _reactIntl.injectIntl)(Dropdown);
127
127
  var _default = exports.default = _default_1;
@@ -16,7 +16,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
17
  var _react = _interopRequireWildcard(require("react"));
18
18
  var _react2 = require("@emotion/react");
19
- var _reactIntlNext = require("react-intl-next");
19
+ var _reactIntl = require("react-intl");
20
20
  var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
21
21
  var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
22
22
  var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
@@ -779,5 +779,5 @@ var Toolbar = /*#__PURE__*/function (_Component) {
779
779
  }
780
780
  }]);
781
781
  }(_react.Component); // eslint-disable-next-line @typescript-eslint/ban-types
782
- var _default_1 = (0, _reactIntlNext.injectIntl)(Toolbar);
782
+ var _default_1 = (0, _reactIntl.injectIntl)(Toolbar);
783
783
  var _default = exports.default = _default_1;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { injectIntl } from 'react-intl-next';
2
+ import { injectIntl } from 'react-intl';
3
3
  import { ModalTransition } from '@atlaskit/modal-dialog';
4
4
  import { CheckboxModal } from './CheckboxModal';
5
5
  import { SimpleModal } from './SimpleModal';
@@ -7,7 +7,7 @@ import { memo } from 'react';
7
7
  import { css, jsx } from '@emotion/react';
8
8
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
9
9
 
10
- import { injectIntl } from 'react-intl-next';
10
+ import { injectIntl } from 'react-intl';
11
11
  import { DropdownMenuItem, DropdownSeparator } from '@atlaskit/editor-common/floating-toolbar';
12
12
  import { HeadingItem } from '@atlaskit/menu';
13
13
  export const menuItemDimensions = {
@@ -9,7 +9,7 @@ import React, { Component } 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 ButtonGroup from '@atlaskit/button/button-group';
14
14
  import { areSameItems, messages } from '@atlaskit/editor-common/floating-toolbar';
15
15
  import commonMessages from '@atlaskit/editor-common/messages';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { injectIntl } from 'react-intl-next';
2
+ import { injectIntl } from 'react-intl';
3
3
  import { ModalTransition } from '@atlaskit/modal-dialog';
4
4
  import { CheckboxModal } from './CheckboxModal';
5
5
  import { SimpleModal } from './SimpleModal';
@@ -7,7 +7,7 @@ import { memo } from 'react';
7
7
  import { css, jsx } from '@emotion/react';
8
8
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
9
9
 
10
- import { injectIntl } from 'react-intl-next';
10
+ import { injectIntl } from 'react-intl';
11
11
  import { DropdownMenuItem, DropdownSeparator } from '@atlaskit/editor-common/floating-toolbar';
12
12
  import { HeadingItem } from '@atlaskit/menu';
13
13
  export var menuItemDimensions = {
@@ -18,7 +18,7 @@ import React, { Component } 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 ButtonGroup from '@atlaskit/button/button-group';
23
23
  import { areSameItems, messages } from '@atlaskit/editor-common/floating-toolbar';
24
24
  import commonMessages from '@atlaskit/editor-common/messages';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { IntlShape } from 'react-intl-next';
2
+ import type { IntlShape } from 'react-intl';
3
3
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
5
  import type { ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarHandler, UiComponentFactoryParams } from '@atlaskit/editor-common/types';
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
4
  export declare const CheckboxModal: (props: ConfirmationDialogProps & WrappedComponentProps) => React.JSX.Element;
@@ -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 { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
4
  export declare const ConfirmationModal: React.FC<WithIntlProps<ConfirmationDialogProps & WrappedComponentProps>> & {
5
5
  WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps>;
@@ -1,5 +1,5 @@
1
1
  import type { ComponentType, FC } from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtensionAPI, ExtensionProvider } from '@atlaskit/editor-common/extensions';
4
4
  import type { DropdownOptionT, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { IntlShape } from 'react-intl-next';
2
+ import type { IntlShape } from 'react-intl';
3
3
  import type { Node } from '@atlaskit/editor-prosemirror/model';
4
4
  type ScrollButtonProps = {
5
5
  disabled: boolean;
@@ -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 { Node } from '@atlaskit/editor-prosemirror/model';
9
9
  interface ScrollButtonsProps {
10
10
  areAnyNewToolbarFlagsEnabled: boolean;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
4
  export declare const SimpleModal: (props: ConfirmationDialogProps & WrappedComponentProps) => React.JSX.Element;
@@ -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 { ExtensionProvider } from '@atlaskit/editor-common/extensions';
9
9
  import type { Item } from '@atlaskit/editor-common/floating-toolbar';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { IntlShape } from 'react-intl-next';
2
+ import type { IntlShape } from 'react-intl';
3
3
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
5
  import type { ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarHandler, UiComponentFactoryParams } from '@atlaskit/editor-common/types';
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
4
  export declare const CheckboxModal: (props: ConfirmationDialogProps & WrappedComponentProps) => React.JSX.Element;
@@ -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 { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
4
  export declare const ConfirmationModal: React.FC<WithIntlProps<ConfirmationDialogProps & WrappedComponentProps>> & {
5
5
  WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps>;
@@ -1,5 +1,5 @@
1
1
  import type { ComponentType, FC } from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtensionAPI, ExtensionProvider } from '@atlaskit/editor-common/extensions';
4
4
  import type { DropdownOptionT, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { IntlShape } from 'react-intl-next';
2
+ import type { IntlShape } from 'react-intl';
3
3
  import type { Node } from '@atlaskit/editor-prosemirror/model';
4
4
  type ScrollButtonProps = {
5
5
  disabled: boolean;
@@ -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 { Node } from '@atlaskit/editor-prosemirror/model';
9
9
  interface ScrollButtonsProps {
10
10
  areAnyNewToolbarFlagsEnabled: boolean;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
4
  export declare const SimpleModal: (props: ConfirmationDialogProps & WrappedComponentProps) => React.JSX.Element;
@@ -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 { ExtensionProvider } from '@atlaskit/editor-common/extensions';
9
9
  import type { Item } from '@atlaskit/editor-common/floating-toolbar';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "11.0.0",
3
+ "version": "12.0.1",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -25,16 +25,16 @@
25
25
  "@atlaskit/button": "^23.11.0",
26
26
  "@atlaskit/checkbox": "^17.3.0",
27
27
  "@atlaskit/editor-palette": "^2.1.0",
28
- "@atlaskit/editor-plugin-analytics": "^9.0.0",
29
- "@atlaskit/editor-plugin-context-panel": "^11.0.0",
30
- "@atlaskit/editor-plugin-copy-button": "^9.0.0",
31
- "@atlaskit/editor-plugin-decorations": "^9.0.0",
32
- "@atlaskit/editor-plugin-editor-disabled": "^9.0.0",
33
- "@atlaskit/editor-plugin-editor-viewmode": "^11.0.0",
34
- "@atlaskit/editor-plugin-emoji": "^10.0.0",
35
- "@atlaskit/editor-plugin-extension": "^12.0.0",
36
- "@atlaskit/editor-plugin-interaction": "^18.0.0",
37
- "@atlaskit/editor-plugin-user-intent": "^7.0.0",
28
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
29
+ "@atlaskit/editor-plugin-context-panel": "^12.0.0",
30
+ "@atlaskit/editor-plugin-copy-button": "^10.0.0",
31
+ "@atlaskit/editor-plugin-decorations": "^10.0.0",
32
+ "@atlaskit/editor-plugin-editor-disabled": "^10.0.0",
33
+ "@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
34
+ "@atlaskit/editor-plugin-emoji": "^11.0.0",
35
+ "@atlaskit/editor-plugin-extension": "^13.0.0",
36
+ "@atlaskit/editor-plugin-interaction": "^19.0.0",
37
+ "@atlaskit/editor-plugin-user-intent": "^8.0.0",
38
38
  "@atlaskit/editor-prosemirror": "^7.3.0",
39
39
  "@atlaskit/emoji": "^70.0.0",
40
40
  "@atlaskit/icon": "^34.2.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/primitives": "^19.0.0",
45
45
  "@atlaskit/select": "^21.10.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",
@@ -51,19 +51,20 @@
51
51
  "bind-event-listener": "^3.0.0",
52
52
  "lodash": "^4.17.21",
53
53
  "raf-schd": "^4.0.3",
54
- "react-intl-next": "npm:react-intl@^5.18.1",
55
54
  "react-loadable": "^5.1.0"
56
55
  },
57
56
  "peerDependencies": {
58
- "@atlaskit/editor-common": "^113.0.0",
57
+ "@atlaskit/editor-common": "^114.2.0",
59
58
  "react": "^18.2.0",
60
- "react-dom": "^18.2.0"
59
+ "react-dom": "^18.2.0",
60
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@testing-library/dom": "^10.1.0",
64
64
  "@testing-library/react": "^16.3.0",
65
65
  "@testing-library/user-event": "^14.4.3",
66
66
  "enzyme": "^3.10.0",
67
+ "react-intl": "^6.6.2",
67
68
  "wait-for-expect": "^1.2.0"
68
69
  },
69
70
  "techstack": {