@atlaskit/editor-plugin-selection-toolbar 9.1.19 → 11.0.0

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-selection-toolbar
2
2
 
3
+ ## 11.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
8
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
9
+
10
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
11
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
12
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
13
+
14
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
15
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
16
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
22
+ ## 10.0.0
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 9.1.19
4
29
 
5
30
  ### Patch Changes
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.PinButton = 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 _messages = require("@atlaskit/editor-common/messages");
11
11
  var _toolbar = require("@atlaskit/editor-common/toolbar");
12
12
  var _editorToolbar = require("@atlaskit/editor-toolbar");
13
13
  var PinButton = exports.PinButton = function PinButton(_ref) {
14
14
  var api = _ref.api;
15
- var intl = (0, _reactIntlNext.useIntl)();
15
+ var intl = (0, _reactIntl.useIntl)();
16
16
  var message = intl.formatMessage(_messages.selectionToolbarMessages.toolbarPositionPinedAtTop);
17
17
  var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
18
18
  isDisabled = _useEditorToolbar.isOffline;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.PinMenuItem = 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 _messages = require("@atlaskit/editor-common/messages");
11
11
  var _toolbar = require("@atlaskit/editor-common/toolbar");
12
12
  var _editorToolbar = require("@atlaskit/editor-toolbar");
@@ -31,7 +31,7 @@ var usePluginState = function usePluginState(_api) {
31
31
  var PinMenuItem = exports.PinMenuItem = function PinMenuItem(_ref) {
32
32
  var api = _ref.api,
33
33
  disablePin = _ref.disablePin;
34
- var intl = (0, _reactIntlNext.useIntl)();
34
+ var intl = (0, _reactIntl.useIntl)();
35
35
  var _usePluginState = usePluginState(api),
36
36
  editorViewMode = _usePluginState.editorViewMode,
37
37
  editorToolbarDockingPreference = _usePluginState.editorToolbarDockingPreference,
@@ -10,7 +10,7 @@ exports.PrimaryToolbarComponent = void 0;
10
10
  require("./PrimaryToolbarComponent.compiled.css");
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
- var _reactIntlNext = require("react-intl-next");
13
+ var _reactIntl = require("react-intl");
14
14
  var _messages = require("@atlaskit/editor-common/messages");
15
15
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
16
16
  var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
@@ -28,7 +28,7 @@ var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = function Primary
28
28
  var _api$userPreferences, _api$selectionToolbar;
29
29
  var api = _ref.api,
30
30
  disabled = _ref.disabled;
31
- var intl = (0, _reactIntlNext.useIntl)();
31
+ var intl = (0, _reactIntl.useIntl)();
32
32
  var mode = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'connectivity.mode');
33
33
  var isOffline = (0, _editorPluginConnectivity.isOfflineMode)(mode);
34
34
  var isDockedToTop = (0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin') ? (api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition) === 'top' : (api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar.sharedState.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'top';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
4
4
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
5
5
  import { PinnedIcon, ToolbarButton, ToolbarTooltip } from '@atlaskit/editor-toolbar';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
4
4
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
5
5
  import { PinIcon, PinnedIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
@@ -2,7 +2,7 @@
2
2
  import "./PrimaryToolbarComponent.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { useIntl } from 'react-intl-next';
5
+ import { useIntl } from 'react-intl';
6
6
  import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
7
7
  import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
8
8
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
4
4
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
5
5
  import { PinnedIcon, ToolbarButton, ToolbarTooltip } from '@atlaskit/editor-toolbar';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
4
4
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
5
5
  import { PinIcon, PinnedIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
@@ -2,7 +2,7 @@
2
2
  import "./PrimaryToolbarComponent.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { useIntl } from 'react-intl-next';
5
+ import { useIntl } from 'react-intl';
6
6
  import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
7
7
  import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
8
8
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  * @jsxFrag
5
5
  */
6
- import type { IntlShape } from 'react-intl-next';
6
+ import type { IntlShape } from 'react-intl';
7
7
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
8
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
9
9
  import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
@@ -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 { Command, FloatingToolbarItem } from '@atlaskit/editor-common/types';
4
4
  import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  * @jsxFrag
5
5
  */
6
- import type { IntlShape } from 'react-intl-next';
6
+ import type { IntlShape } from 'react-intl';
7
7
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
8
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
9
9
  import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
@@ -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 { Command, FloatingToolbarItem } from '@atlaskit/editor-common/types';
4
4
  import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-toolbar",
3
- "version": "9.1.19",
3
+ "version": "11.0.0",
4
4
  "description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,34 +30,35 @@
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
32
  "@atlaskit/css": "^0.19.0",
33
- "@atlaskit/editor-plugin-analytics": "^8.0.0",
34
- "@atlaskit/editor-plugin-block-controls": "^9.1.0",
35
- "@atlaskit/editor-plugin-connectivity": "^8.0.0",
36
- "@atlaskit/editor-plugin-editor-viewmode": "^10.0.0",
37
- "@atlaskit/editor-plugin-primary-toolbar": "^9.0.0",
38
- "@atlaskit/editor-plugin-toolbar": "^5.1.0",
39
- "@atlaskit/editor-plugin-user-intent": "^6.0.0",
40
- "@atlaskit/editor-plugin-user-preferences": "^6.0.0",
33
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
34
+ "@atlaskit/editor-plugin-block-controls": "^11.0.0",
35
+ "@atlaskit/editor-plugin-connectivity": "^10.0.0",
36
+ "@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
37
+ "@atlaskit/editor-plugin-primary-toolbar": "^11.0.0",
38
+ "@atlaskit/editor-plugin-toolbar": "^7.0.0",
39
+ "@atlaskit/editor-plugin-user-intent": "^8.0.0",
40
+ "@atlaskit/editor-plugin-user-preferences": "^8.0.0",
41
41
  "@atlaskit/editor-prosemirror": "^7.3.0",
42
- "@atlaskit/editor-toolbar": "^0.20.0",
42
+ "@atlaskit/editor-toolbar": "^1.0.0",
43
43
  "@atlaskit/editor-toolbar-model": "^0.4.0",
44
- "@atlaskit/icon": "^34.1.0",
44
+ "@atlaskit/icon": "^34.2.0",
45
45
  "@atlaskit/icon-lab": "^6.5.0",
46
- "@atlaskit/menu": "^8.4.0",
46
+ "@atlaskit/menu": "^8.5.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/tmp-editor-statsig": "^62.0.0",
48
+ "@atlaskit/tmp-editor-statsig": "^62.4.0",
49
49
  "@atlaskit/tokens": "^13.0.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "bind-event-listener": "^3.0.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^112.21.0",
54
+ "@atlaskit/editor-common": "^114.0.0",
55
55
  "react": "^18.2.0",
56
56
  "react-dom": "^18.2.0",
57
- "react-intl-next": "npm:react-intl@^5.18.1"
57
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@testing-library/react": "^16.3.0",
61
+ "react-intl": "^6.6.2",
61
62
  "wait-for-expect": "^1.2.0"
62
63
  },
63
64
  "techstack": {