@atlaskit/editor-plugin-avatar-group 4.1.0 → 4.1.2
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,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-avatar-group
|
|
2
2
|
|
|
3
|
+
## 4.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 4.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#190588](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/190588)
|
|
14
|
+
[`b22e308cfd320`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b22e308cfd320) -
|
|
15
|
+
Replace experiment key platform_editor_useSharedPluginStateSelector with
|
|
16
|
+
platform_editor_useSharedPluginStateWithSelector
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 4.1.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
11
11
|
var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
|
|
12
|
-
var
|
|
12
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
13
|
var _avatars = require("./avatars");
|
|
14
14
|
var _inviteToEdit = require("./invite-to-edit");
|
|
15
15
|
var useAvatarsWithPluginState = (0, _hooks.sharedPluginStateHookMigratorFactory)(function (api) {
|
|
@@ -54,10 +54,10 @@ var AvatarsWithPluginState = function AvatarsWithPluginState(props) {
|
|
|
54
54
|
activeParticipants = _useAvatarsWithPlugin.activeParticipants,
|
|
55
55
|
isInitialised = _useAvatarsWithPlugin.isInitialised,
|
|
56
56
|
collabEditState = _useAvatarsWithPlugin.collabEditState;
|
|
57
|
-
if (!collabEditState && (0,
|
|
57
|
+
if (!collabEditState && (0, _expValEquals.expValEquals)('platform_editor_usesharedpluginstatewithselector', 'isEnabled', false)) {
|
|
58
58
|
return null;
|
|
59
59
|
}
|
|
60
|
-
if (!isInitialised && (0,
|
|
60
|
+
if (!isInitialised && (0, _expValEquals.expValEquals)('platform_editor_usesharedpluginstatewithselector', 'isEnabled', true)) {
|
|
61
61
|
return null;
|
|
62
62
|
}
|
|
63
63
|
return /*#__PURE__*/_react.default.createElement(_avatars.Avatars, {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import { sharedPluginStateHookMigratorFactory, useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import messages from '@atlaskit/editor-common/messages';
|
|
5
|
-
import {
|
|
5
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
6
|
import { Avatars } from './avatars';
|
|
7
7
|
import { InviteToEditButton } from './invite-to-edit';
|
|
8
8
|
const useAvatarsWithPluginState = sharedPluginStateHookMigratorFactory(api => {
|
|
@@ -52,10 +52,10 @@ const AvatarsWithPluginState = props => {
|
|
|
52
52
|
isInitialised,
|
|
53
53
|
collabEditState
|
|
54
54
|
} = useAvatarsWithPluginState(editorAPI);
|
|
55
|
-
if (!collabEditState &&
|
|
55
|
+
if (!collabEditState && expValEquals('platform_editor_usesharedpluginstatewithselector', 'isEnabled', false)) {
|
|
56
56
|
return null;
|
|
57
57
|
}
|
|
58
|
-
if (!isInitialised &&
|
|
58
|
+
if (!isInitialised && expValEquals('platform_editor_usesharedpluginstatewithselector', 'isEnabled', true)) {
|
|
59
59
|
return null;
|
|
60
60
|
}
|
|
61
61
|
return /*#__PURE__*/React.createElement(Avatars, {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import { sharedPluginStateHookMigratorFactory, useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import messages from '@atlaskit/editor-common/messages';
|
|
5
|
-
import {
|
|
5
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
6
|
import { Avatars } from './avatars';
|
|
7
7
|
import { InviteToEditButton } from './invite-to-edit';
|
|
8
8
|
var useAvatarsWithPluginState = sharedPluginStateHookMigratorFactory(function (api) {
|
|
@@ -47,10 +47,10 @@ var AvatarsWithPluginState = function AvatarsWithPluginState(props) {
|
|
|
47
47
|
activeParticipants = _useAvatarsWithPlugin.activeParticipants,
|
|
48
48
|
isInitialised = _useAvatarsWithPlugin.isInitialised,
|
|
49
49
|
collabEditState = _useAvatarsWithPlugin.collabEditState;
|
|
50
|
-
if (!collabEditState &&
|
|
50
|
+
if (!collabEditState && expValEquals('platform_editor_usesharedpluginstatewithselector', 'isEnabled', false)) {
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
|
-
if (!isInitialised &&
|
|
53
|
+
if (!isInitialised && expValEquals('platform_editor_usesharedpluginstatewithselector', 'isEnabled', true)) {
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
56
|
return /*#__PURE__*/React.createElement(Avatars, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-avatar-group",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"description": "Avatar Group plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
"@atlaskit/editor-plugin-primary-toolbar": "^4.1.0",
|
|
43
43
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
44
44
|
"@atlaskit/editor-shared-styles": "^3.5.0",
|
|
45
|
-
"@atlaskit/icon": "^27.
|
|
45
|
+
"@atlaskit/icon": "^27.9.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/theme": "^19.0.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
49
|
-
"@atlaskit/tokens": "^
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^9.22.0",
|
|
49
|
+
"@atlaskit/tokens": "^6.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"memoize-one": "^6.0.0",
|
|
53
53
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@atlaskit/editor-common": "^107.
|
|
56
|
+
"@atlaskit/editor-common": "^107.16.0",
|
|
57
57
|
"react": "^18.2.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|