@atlaskit/editor-plugin-avatar-group 9.0.6 → 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 +25 -0
- package/dist/cjs/ui/AvatarGroupPluginWrapper.js +2 -2
- package/dist/cjs/ui/avatars-with-plugin-state.js +2 -2
- package/dist/cjs/ui/avatars.js +2 -2
- package/dist/es2019/ui/AvatarGroupPluginWrapper.js +1 -1
- package/dist/es2019/ui/avatars-with-plugin-state.js +1 -1
- package/dist/es2019/ui/avatars.js +1 -1
- package/dist/esm/ui/AvatarGroupPluginWrapper.js +1 -1
- package/dist/esm/ui/avatars-with-plugin-state.js +1 -1
- package/dist/esm/ui/avatars.js +1 -1
- package/dist/types/ui/avatars-with-plugin-state.d.ts +1 -1
- package/dist/types/ui/to-avatar.d.ts +1 -1
- package/dist/types-ts4.5/ui/avatars-with-plugin-state.d.ts +1 -1
- package/dist/types-ts4.5/ui/to-avatar.d.ts +1 -1
- package/package.json +14 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-avatar-group
|
|
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.0.6
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
|
-
var
|
|
10
|
+
var _reactIntl = require("react-intl");
|
|
11
11
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
12
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
13
|
var _avatarsWithPluginState = _interopRequireDefault(require("./avatars-with-plugin-state"));
|
|
@@ -37,7 +37,7 @@ var toolbarButtonWrapperFullWidth = (0, _react2.css)(toolbarButtonWrapper, {
|
|
|
37
37
|
var AvatarGroupPluginWrapper = function AvatarGroupPluginWrapper(props) {
|
|
38
38
|
var dispatchAnalyticsEvent = props.dispatchAnalyticsEvent,
|
|
39
39
|
featureFlags = props.featureFlags;
|
|
40
|
-
var intl = (0,
|
|
40
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
41
41
|
(0, _react.useEffect)(function () {
|
|
42
42
|
if (!dispatchAnalyticsEvent) {
|
|
43
43
|
return;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
11
11
|
var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
|
|
12
12
|
var _avatars = require("./avatars");
|
|
@@ -50,5 +50,5 @@ var AvatarsWithPluginState = function AvatarsWithPluginState(props) {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
53
|
-
var _default_1 = (0,
|
|
53
|
+
var _default_1 = (0, _reactIntl.injectIntl)(AvatarsWithPluginState);
|
|
54
54
|
var _default = exports.default = _default_1;
|
package/dist/cjs/ui/avatars.js
CHANGED
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.Avatars = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
|
-
var
|
|
10
|
+
var _reactIntl = require("react-intl");
|
|
11
11
|
var _avatarGroup = _interopRequireDefault(require("@atlaskit/avatar-group"));
|
|
12
12
|
var _analytics2 = require("@atlaskit/editor-common/analytics");
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
@@ -45,7 +45,7 @@ var Avatars = exports.Avatars = /*#__PURE__*/_react.default.memo(function (props
|
|
|
45
45
|
var sessionId = props.sessionId,
|
|
46
46
|
featureFlags = props.featureFlags,
|
|
47
47
|
editorAPI = props.editorAPI;
|
|
48
|
-
var intl = (0,
|
|
48
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
49
49
|
// .slice() turns ReadonlyArray<CollabParticipant> into a mutable CollabParticipant[]
|
|
50
50
|
var participants = (_props$participants = props.participants) === null || _props$participants === void 0 || (_props$participants = _props$participants.toArray()) === null || _props$participants === void 0 ? void 0 : _props$participants.slice();
|
|
51
51
|
if (!participants) {
|
|
@@ -6,7 +6,7 @@ import { useEffect } from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { useIntl } from 'react-intl
|
|
9
|
+
import { useIntl } from 'react-intl';
|
|
10
10
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
11
11
|
import { avatarGroupMessages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import AvatarsWithPluginState from './avatars-with-plugin-state';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import messages from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { Avatars } from './avatars';
|
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
|
-
import { useIntl } from 'react-intl
|
|
10
|
+
import { useIntl } from 'react-intl';
|
|
11
11
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
12
12
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
13
13
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -6,7 +6,7 @@ import { useEffect } from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { useIntl } from 'react-intl
|
|
9
|
+
import { useIntl } from 'react-intl';
|
|
10
10
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
11
11
|
import { avatarGroupMessages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import AvatarsWithPluginState from './avatars-with-plugin-state';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import messages from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { Avatars } from './avatars';
|
package/dist/esm/ui/avatars.js
CHANGED
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
|
-
import { useIntl } from 'react-intl
|
|
10
|
+
import { useIntl } from 'react-intl';
|
|
11
11
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
12
12
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
13
13
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -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 { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { CollabInviteToEditProps } from '@atlaskit/editor-common/collab';
|
|
5
5
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MemoizedFn } from 'memoize-one';
|
|
2
|
-
import type { IntlShape } from 'react-intl
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
3
3
|
import type { AvatarProps } from '@atlaskit/avatar-group';
|
|
4
4
|
import type { CollabParticipant } from '@atlaskit/editor-common/collab';
|
|
5
5
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
@@ -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 { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { CollabInviteToEditProps } from '@atlaskit/editor-common/collab';
|
|
5
5
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MemoizedFn } from 'memoize-one';
|
|
2
|
-
import type { IntlShape } from 'react-intl
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
3
3
|
import type { AvatarProps } from '@atlaskit/avatar-group';
|
|
4
4
|
import type { CollabParticipant } from '@atlaskit/editor-common/collab';
|
|
5
5
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-avatar-group",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Avatar Group plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,24 +32,24 @@
|
|
|
32
32
|
],
|
|
33
33
|
"atlaskit:src": "src/index.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/avatar-group": "^12.
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
37
|
-
"@atlaskit/editor-plugin-collab-edit": "^
|
|
38
|
-
"@atlaskit/editor-plugin-feature-flags": "^
|
|
39
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
35
|
+
"@atlaskit/avatar-group": "^12.7.0",
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^10.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-collab-edit": "^11.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-feature-flags": "^9.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^11.0.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
41
41
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
42
|
-
"@atlaskit/icon": "^34.
|
|
42
|
+
"@atlaskit/icon": "^34.2.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/tokens": "^13.0.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@emotion/react": "^11.7.1",
|
|
47
|
-
"memoize-one": "^6.0.0"
|
|
48
|
-
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
47
|
+
"memoize-one": "^6.0.0"
|
|
49
48
|
},
|
|
50
49
|
"peerDependencies": {
|
|
51
|
-
"@atlaskit/editor-common": "^
|
|
52
|
-
"react": "^18.2.0"
|
|
50
|
+
"@atlaskit/editor-common": "^114.0.0",
|
|
51
|
+
"react": "^18.2.0",
|
|
52
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
53
53
|
},
|
|
54
54
|
"techstack": {
|
|
55
55
|
"@atlassian/frontend": {
|
|
@@ -96,5 +96,8 @@
|
|
|
96
96
|
"platform_ally_avatar_button_fix": {
|
|
97
97
|
"type": "boolean"
|
|
98
98
|
}
|
|
99
|
+
},
|
|
100
|
+
"devDependencies": {
|
|
101
|
+
"react-intl": "^6.6.2"
|
|
99
102
|
}
|
|
100
103
|
}
|