@atlaskit/editor-plugin-avatar-group 10.0.0 → 11.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,32 @@
1
1
  # @atlaskit/editor-plugin-avatar-group
2
2
 
3
+ ## 11.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fce03fe77247e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fce03fe77247e) -
8
+ Cleanup feature gate `platform_ally_avatar_button_fix`
9
+ - Updated dependencies
10
+
11
+ ## 11.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
16
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
17
+
18
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
19
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
20
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
21
+
22
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
23
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
24
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies
29
+
3
30
  ## 10.0.0
4
31
 
5
32
  ### 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 _reactIntlNext = require("react-intl-next");
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, _reactIntlNext.useIntl)();
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 _reactIntlNext = require("react-intl-next");
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, _reactIntlNext.injectIntl)(AvatarsWithPluginState);
53
+ var _default_1 = (0, _reactIntl.injectIntl)(AvatarsWithPluginState);
54
54
  var _default = exports.default = _default_1;
@@ -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 _reactIntlNext = require("react-intl-next");
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, _reactIntlNext.useIntl)();
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) {
@@ -9,11 +9,10 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _memoizeOne = _interopRequireDefault(require("memoize-one"));
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  var _coloredAvatarItem = require("./colored-avatar-item");
14
13
  var toAvatar = function toAvatar(participant, api, formatMessage) {
15
14
  return {
16
- name: participant.name || ((0, _platformFeatureFlags.fg)('platform_ally_avatar_button_fix') ? formatMessage(_messages.avatarGroupMessages.anonymousCollaborator) : ''),
15
+ name: participant.name || formatMessage(_messages.avatarGroupMessages.anonymousCollaborator),
17
16
  src: participant.avatar,
18
17
  size: 'medium',
19
18
  presence: /*#__PURE__*/_react.default.createElement(_coloredAvatarItem.ColoredAvatarItem, {
@@ -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-next';
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-next';
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-next';
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,10 +1,9 @@
1
1
  import React from 'react';
2
2
  import memoizeOne from 'memoize-one';
3
3
  import { avatarGroupMessages } from '@atlaskit/editor-common/messages';
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
4
  import { ColoredAvatarItem } from './colored-avatar-item';
6
5
  const toAvatar = (participant, api, formatMessage) => ({
7
- name: participant.name || (fg('platform_ally_avatar_button_fix') ? formatMessage(avatarGroupMessages.anonymousCollaborator) : ''),
6
+ name: participant.name || formatMessage(avatarGroupMessages.anonymousCollaborator),
8
7
  src: participant.avatar,
9
8
  size: 'medium',
10
9
  presence: /*#__PURE__*/React.createElement(ColoredAvatarItem, {
@@ -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-next';
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-next';
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-next';
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';
@@ -2,11 +2,10 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React from 'react';
3
3
  import memoizeOne from 'memoize-one';
4
4
  import { avatarGroupMessages } from '@atlaskit/editor-common/messages';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { ColoredAvatarItem } from './colored-avatar-item';
7
6
  var toAvatar = function toAvatar(participant, api, formatMessage) {
8
7
  return {
9
- name: participant.name || (fg('platform_ally_avatar_button_fix') ? formatMessage(avatarGroupMessages.anonymousCollaborator) : ''),
8
+ name: participant.name || formatMessage(avatarGroupMessages.anonymousCollaborator),
10
9
  src: participant.avatar,
11
10
  size: 'medium',
12
11
  presence: /*#__PURE__*/React.createElement(ColoredAvatarItem, {
@@ -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 { 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-next';
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-next';
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-next';
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": "10.0.0",
3
+ "version": "11.0.1",
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.7.0",
36
- "@atlaskit/editor-plugin-analytics": "^9.0.0",
37
- "@atlaskit/editor-plugin-collab-edit": "^10.0.0",
38
- "@atlaskit/editor-plugin-feature-flags": "^8.0.0",
39
- "@atlaskit/editor-plugin-primary-toolbar": "^10.0.0",
35
+ "@atlaskit/avatar-group": "^12.10.0",
36
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
37
+ "@atlaskit/editor-plugin-collab-edit": "^11.1.0",
38
+ "@atlaskit/editor-plugin-feature-flags": "^9.1.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.2.0",
42
+ "@atlaskit/icon": "^34.5.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": "^113.0.0",
52
- "react": "^18.2.0"
50
+ "@atlaskit/editor-common": "^114.30.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": {
@@ -92,9 +92,7 @@
92
92
  "checkDevDependencies": true
93
93
  }
94
94
  },
95
- "platform-feature-flags": {
96
- "platform_ally_avatar_button_fix": {
97
- "type": "boolean"
98
- }
95
+ "devDependencies": {
96
+ "react-intl": "^6.6.2"
99
97
  }
100
98
  }