@atlaskit/editor-plugin-mentions 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 +25 -0
- package/dist/cjs/mentionsPlugin.js +2 -2
- package/dist/cjs/ui/InviteItem/InviteItemWithEmailDomain.js +3 -3
- package/dist/cjs/ui/InviteItem/index.js +3 -3
- package/dist/cjs/ui/ToolbarMention/index.js +2 -2
- package/dist/es2019/mentionsPlugin.js +1 -1
- package/dist/es2019/ui/InviteItem/InviteItemWithEmailDomain.js +1 -1
- package/dist/es2019/ui/InviteItem/index.js +1 -1
- package/dist/es2019/ui/ToolbarMention/index.js +1 -1
- package/dist/esm/mentionsPlugin.js +1 -1
- package/dist/esm/ui/InviteItem/InviteItemWithEmailDomain.js +1 -1
- package/dist/esm/ui/InviteItem/index.js +1 -1
- package/dist/esm/ui/ToolbarMention/index.js +1 -1
- package/dist/types/ui/InviteItem/InviteItemWithEmailDomain.d.ts +1 -1
- package/dist/types/ui/InviteItem/index.d.ts +1 -1
- package/dist/types/ui/ToolbarMention/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/InviteItem/InviteItemWithEmailDomain.d.ts +1 -1
- package/dist/types-ts4.5/ui/InviteItem/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/ToolbarMention/index.d.ts +1 -1
- package/package.json +11 -10
- package/report.api.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
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
|
|
@@ -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
|
|
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,
|
|
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;
|
|
@@ -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
|
|
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(
|
|
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,
|
|
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
|
|
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(
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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';
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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';
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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": "
|
|
3
|
+
"version": "12.0.1",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/adf-schema": "^52.5.0",
|
|
33
33
|
"@atlaskit/css": "^0.19.0",
|
|
34
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
35
|
-
"@atlaskit/editor-plugin-base": "^
|
|
36
|
-
"@atlaskit/editor-plugin-context-identifier": "^
|
|
37
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
38
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
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
40
|
"@atlaskit/icon": "^34.2.0",
|
|
41
41
|
"@atlaskit/insm": "^0.4.0",
|
|
@@ -44,9 +44,9 @@
|
|
|
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": "^25.
|
|
47
|
+
"@atlaskit/profilecard": "^25.1.0",
|
|
48
48
|
"@atlaskit/theme": "^23.1.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^63.0.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": "^
|
|
59
|
+
"@atlaskit/editor-common": "^114.2.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
|
-
"react-intl
|
|
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": {
|