@atlaskit/editor-plugin-mentions 10.0.34 → 12.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-mentions
2
2
 
3
+ ## 12.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
+ ## 11.0.0
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 10.0.34
4
29
 
5
30
  ### Patch Changes
@@ -10,7 +10,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
- var _reactIntlNext = require("react-intl-next");
13
+ var _reactIntl = require("react-intl");
14
14
  var _uuid = _interopRequireDefault(require("uuid"));
15
15
  var _analytics = require("@atlaskit/editor-common/analytics");
16
16
  var _messages = require("@atlaskit/editor-common/messages");
@@ -51,7 +51,7 @@ function Component(_ref) {
51
51
  return mentionProvider;
52
52
  // eslint-disable-next-line react-hooks/exhaustive-deps
53
53
  }, []);
54
- var intl = (0, _reactIntlNext.useIntl)();
54
+ var intl = (0, _reactIntl.useIntl)();
55
55
  (0, _react.useEffect)(function () {
56
56
  mentionProviderMemo === null || mentionProviderMemo === void 0 || mentionProviderMemo.then(function (mentionProviderSync) {
57
57
  var _api$base;
@@ -23,7 +23,7 @@ var ACTIONS = exports.ACTIONS = {
23
23
  SET_PROVIDER: 'SET_PROVIDER'
24
24
  };
25
25
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
26
- var PACKAGE_VERSION = "10.0.33";
26
+ var PACKAGE_VERSION = "11.0.0";
27
27
  var setProvider = function setProvider(provider) {
28
28
  return function (state, dispatch) {
29
29
  if (dispatch) {
@@ -12,7 +12,7 @@ var _runtime = require("@compiled/react/runtime");
12
12
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
13
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
14
14
  var _react = _interopRequireWildcard(require("react"));
15
- var _reactIntlNext = require("react-intl-next");
15
+ var _reactIntl = require("react-intl");
16
16
  var _messages = require("@atlaskit/editor-common/messages");
17
17
  var _email = _interopRequireDefault(require("@atlaskit/icon/core/email"));
18
18
  var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
@@ -85,7 +85,7 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
85
85
  return intl.formatMessage(_messages.mentionMessages.inviteTeammateInvalidEmail);
86
86
  }
87
87
  if (userRole === 'admin') {
88
- return /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage
88
+ return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage
89
89
  // Ignored via go/ees005
90
90
  // eslint-disable-next-line react/jsx-props-no-spreading
91
91
  , (0, _extends2.default)({}, _messages.mentionMessages.inviteItemTitle, {
@@ -194,5 +194,5 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
194
194
  };
195
195
 
196
196
  // eslint-disable-next-line @typescript-eslint/ban-types
197
- var _default_1 = (0, _reactIntlNext.injectIntl)(InviteItemWithEmailDomain);
197
+ var _default_1 = (0, _reactIntl.injectIntl)(InviteItemWithEmailDomain);
198
198
  var _default = exports.default = _default_1;
@@ -11,7 +11,7 @@ require("./index.compiled.css");
11
11
  var _runtime = require("@compiled/react/runtime");
12
12
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
13
  var _react = _interopRequireWildcard(require("react"));
14
- var _reactIntlNext = require("react-intl-next");
14
+ var _reactIntl = require("react-intl");
15
15
  var _messages = require("@atlaskit/editor-common/messages");
16
16
  var _add = _interopRequireDefault(require("@atlaskit/icon/core/add"));
17
17
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -98,7 +98,7 @@ var InviteItem = function InviteItem(_ref) {
98
98
  })), /*#__PURE__*/_react.default.createElement("div", {
99
99
  "data-testid": "name-section",
100
100
  className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0dlk8 _syazazsu"])
101
- }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage
101
+ }, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage
102
102
  // Ignored via go/ees005
103
103
  // eslint-disable-next-line react/jsx-props-no-spreading
104
104
  , (0, _extends2.default)({}, _messages.mentionMessages.inviteItemTitle, {
@@ -114,5 +114,5 @@ var InviteItem = function InviteItem(_ref) {
114
114
  };
115
115
 
116
116
  // eslint-disable-next-line @typescript-eslint/ban-types
117
- var _default_1 = (0, _reactIntlNext.injectIntl)(InviteItem);
117
+ var _default_1 = (0, _reactIntl.injectIntl)(InviteItem);
118
118
  var _default = exports.default = _default_1;
@@ -13,7 +13,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
13
13
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
15
  var _react = _interopRequireWildcard(require("react"));
16
- var _reactIntlNext = require("react-intl-next");
16
+ var _reactIntl = require("react-intl");
17
17
  var _messages = require("@atlaskit/editor-common/messages");
18
18
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
19
19
  var _mention = _interopRequireDefault(require("@atlaskit/icon/core/mention"));
@@ -58,5 +58,5 @@ var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
58
58
  }
59
59
  }]);
60
60
  }(_react.PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
61
- var _default_1 = (0, _reactIntlNext.injectIntl)(ToolbarMention);
61
+ var _default_1 = (0, _reactIntl.injectIntl)(ToolbarMention);
62
62
  var _default = exports.default = _default_1;
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useMemo } from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
4
4
  import uuid from 'uuid';
5
5
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
@@ -12,7 +12,7 @@ export const ACTIONS = {
12
12
  SET_PROVIDER: 'SET_PROVIDER'
13
13
  };
14
14
  const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
15
- const PACKAGE_VERSION = "10.0.33";
15
+ const PACKAGE_VERSION = "11.0.0";
16
16
  const setProvider = provider => (state, dispatch) => {
17
17
  if (dispatch) {
18
18
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./InviteItemWithEmailDomain.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useCallback, useEffect, useRef, useState } from 'react';
6
- import { FormattedMessage, injectIntl } from 'react-intl-next';
6
+ import { FormattedMessage, injectIntl } from 'react-intl';
7
7
  import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
8
8
  import EmailIcon from '@atlaskit/icon/core/email';
9
9
  import StatusErrorIcon from '@atlaskit/icon/core/status-error';
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useCallback, useEffect } from 'react';
6
- import { FormattedMessage, injectIntl } from 'react-intl-next';
6
+ import { FormattedMessage, injectIntl } from 'react-intl';
7
7
  import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
8
8
  import AddIcon from '@atlaskit/icon/core/add';
9
9
  const mentionItemStyle = null;
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React, { PureComponent } from 'react';
3
- import { injectIntl } from 'react-intl-next';
3
+ import { injectIntl } from 'react-intl';
4
4
  import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
6
6
  import MentionIcon from '@atlaskit/icon/core/mention';
@@ -4,7 +4,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  import _regeneratorRuntime from "@babel/runtime/regenerator";
6
6
  import React, { useEffect, useMemo } from 'react';
7
- import { useIntl } from 'react-intl-next';
7
+ import { useIntl } from 'react-intl';
8
8
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
9
9
  import uuid from 'uuid';
10
10
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
@@ -15,7 +15,7 @@ export var ACTIONS = {
15
15
  SET_PROVIDER: 'SET_PROVIDER'
16
16
  };
17
17
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
18
- var PACKAGE_VERSION = "10.0.33";
18
+ var PACKAGE_VERSION = "11.0.0";
19
19
  var setProvider = function setProvider(provider) {
20
20
  return function (state, dispatch) {
21
21
  if (dispatch) {
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./InviteItemWithEmailDomain.compiled.css";
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import React, { useCallback, useEffect, useRef, useState } from 'react';
7
- import { FormattedMessage, injectIntl } from 'react-intl-next';
7
+ import { FormattedMessage, injectIntl } from 'react-intl';
8
8
  import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
9
9
  import EmailIcon from '@atlaskit/icon/core/email';
10
10
  import StatusErrorIcon from '@atlaskit/icon/core/status-error';
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useCallback, useEffect } from 'react';
6
- import { FormattedMessage, injectIntl } from 'react-intl-next';
6
+ import { FormattedMessage, injectIntl } from 'react-intl';
7
7
  import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
8
8
  import AddIcon from '@atlaskit/icon/core/add';
9
9
  var mentionItemStyle = null;
@@ -7,7 +7,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
7
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  import React, { PureComponent } from 'react';
10
- import { injectIntl } from 'react-intl-next';
10
+ import { injectIntl } from 'react-intl';
11
11
  import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
12
12
  import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
13
13
  import MentionIcon from '@atlaskit/icon/core/mention';
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { SyntheticEvent } from 'react';
7
7
  import React from 'react';
8
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
8
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
9
9
  import type { UserRole } from '@atlaskit/mention';
10
10
  import type { MentionDescription } from '@atlaskit/mention/resource';
11
11
  interface OnMentionEvent {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import type { SyntheticEvent } from 'react';
6
6
  import React from 'react';
7
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
7
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
8
8
  import type { UserRole } from '@atlaskit/mention';
9
9
  import type { MentionDescription } from '@atlaskit/mention/resource';
10
10
  interface OnMentionEvent {
@@ -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 { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  interface Props {
5
5
  editorView?: EditorView;
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { SyntheticEvent } from 'react';
7
7
  import React from 'react';
8
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
8
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
9
9
  import type { UserRole } from '@atlaskit/mention';
10
10
  import type { MentionDescription } from '@atlaskit/mention/resource';
11
11
  interface OnMentionEvent {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import type { SyntheticEvent } from 'react';
6
6
  import React from 'react';
7
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
7
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
8
8
  import type { UserRole } from '@atlaskit/mention';
9
9
  import type { MentionDescription } from '@atlaskit/mention/resource';
10
10
  interface OnMentionEvent {
@@ -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 { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  interface Props {
5
5
  editorView?: EditorView;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "10.0.34",
3
+ "version": "12.0.0",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,24 +29,24 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^52.4.0",
32
+ "@atlaskit/adf-schema": "^52.5.0",
33
33
  "@atlaskit/css": "^0.19.0",
34
- "@atlaskit/editor-plugin-analytics": "^8.0.0",
35
- "@atlaskit/editor-plugin-base": "^9.0.0",
36
- "@atlaskit/editor-plugin-context-identifier": "^8.0.0",
37
- "@atlaskit/editor-plugin-selection": "^8.0.0",
38
- "@atlaskit/editor-plugin-type-ahead": "^8.2.0",
34
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
35
+ "@atlaskit/editor-plugin-base": "^11.0.0",
36
+ "@atlaskit/editor-plugin-context-identifier": "^10.0.0",
37
+ "@atlaskit/editor-plugin-selection": "^10.0.0",
38
+ "@atlaskit/editor-plugin-type-ahead": "^10.0.0",
39
39
  "@atlaskit/editor-prosemirror": "^7.3.0",
40
- "@atlaskit/icon": "^34.1.0",
40
+ "@atlaskit/icon": "^34.2.0",
41
41
  "@atlaskit/insm": "^0.4.0",
42
42
  "@atlaskit/link": "^3.4.0",
43
43
  "@atlaskit/mention": "^25.0.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/popper": "^7.2.0",
46
46
  "@atlaskit/portal": "^5.4.0",
47
- "@atlaskit/profilecard": "^24.49.0",
48
- "@atlaskit/theme": "^23.0.0",
49
- "@atlaskit/tmp-editor-statsig": "^62.2.0",
47
+ "@atlaskit/profilecard": "^25.0.0",
48
+ "@atlaskit/theme": "^23.1.0",
49
+ "@atlaskit/tmp-editor-statsig": "^62.4.0",
50
50
  "@atlaskit/tokens": "^13.0.0",
51
51
  "@atlaskit/user-picker": "^12.0.0",
52
52
  "@babel/runtime": "^7.0.0",
@@ -56,13 +56,14 @@
56
56
  "uuid": "^3.1.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^112.21.0",
59
+ "@atlaskit/editor-common": "^114.0.0",
60
60
  "react": "^18.2.0",
61
61
  "react-dom": "^18.2.0",
62
- "react-intl-next": "npm:react-intl@^5.18.1"
62
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@testing-library/react": "^16.3.0",
66
+ "react-intl": "^6.6.2",
66
67
  "wait-for-expect": "^1.2.0"
67
68
  },
68
69
  "techstack": {
package/report.api.md CHANGED
@@ -86,7 +86,7 @@ export const mentionsPlugin: MentionsPlugin;
86
86
  {
87
87
  "react": "^16.8.0",
88
88
  "react-dom": "^16.8.0",
89
- "react-intl-next": "npm:react-intl@^5.18.1"
89
+ "react-intl": "npm:react-intl@^5.18.1"
90
90
  }
91
91
  ```
92
92