@atlaskit/editor-plugin-avatar-group 4.0.3 → 4.1.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,27 @@
1
1
  # @atlaskit/editor-plugin-avatar-group
2
2
 
3
+ ## 4.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#190588](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/190588)
8
+ [`b22e308cfd320`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b22e308cfd320) -
9
+ Replace experiment key platform_editor_useSharedPluginStateSelector with
10
+ platform_editor_useSharedPluginStateWithSelector
11
+ - Updated dependencies
12
+
13
+ ## 4.1.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#189314](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/189314)
18
+ [`22c6251496010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/22c6251496010) -
19
+ Exported missing types that were already being inferred from existing exports
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+
3
25
  ## 4.0.3
4
26
 
5
27
  ### Patch 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 _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
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, _experiments.editorExperiment)('platform_editor_usesharedpluginstateselector', false)) {
57
+ if (!collabEditState && (0, _expValEquals.expValEquals)('platform_editor_usesharedpluginstatewithselector', 'isEnabled', false)) {
58
58
  return null;
59
59
  }
60
- if (!isInitialised && (0, _experiments.editorExperiment)('platform_editor_usesharedpluginstateselector', true)) {
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 { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
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 && editorExperiment('platform_editor_usesharedpluginstateselector', false)) {
55
+ if (!collabEditState && expValEquals('platform_editor_usesharedpluginstatewithselector', 'isEnabled', false)) {
56
56
  return null;
57
57
  }
58
- if (!isInitialised && editorExperiment('platform_editor_usesharedpluginstateselector', true)) {
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 { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
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 && editorExperiment('platform_editor_usesharedpluginstateselector', false)) {
50
+ if (!collabEditState && expValEquals('platform_editor_usesharedpluginstatewithselector', 'isEnabled', false)) {
51
51
  return null;
52
52
  }
53
- if (!isInitialised && editorExperiment('platform_editor_usesharedpluginstateselector', true)) {
53
+ if (!isInitialised && expValEquals('platform_editor_usesharedpluginstatewithselector', 'isEnabled', true)) {
54
54
  return null;
55
55
  }
56
56
  return /*#__PURE__*/React.createElement(Avatars, {
@@ -1,2 +1,2 @@
1
- export type { AvatarGroupPlugin, AvatarGroupPluginOptions } from './avatarGroupPluginType';
1
+ export type { AvatarGroupPlugin, AvatarGroupPluginOptions, AvatarGroupPluginDependencies, } from './avatarGroupPluginType';
2
2
  export { avatarGroupPlugin } from './avatarGroupPlugin';
@@ -1,2 +1,2 @@
1
- export type { AvatarGroupPlugin, AvatarGroupPluginOptions } from './avatarGroupPluginType';
1
+ export type { AvatarGroupPlugin, AvatarGroupPluginOptions, AvatarGroupPluginDependencies, } from './avatarGroupPluginType';
2
2
  export { avatarGroupPlugin } from './avatarGroupPlugin';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-avatar-group",
3
- "version": "4.0.3",
3
+ "version": "4.1.1",
4
4
  "description": "Avatar Group plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,23 +37,23 @@
37
37
  "dependencies": {
38
38
  "@atlaskit/avatar-group": "^12.1.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^3.0.0",
40
- "@atlaskit/editor-plugin-collab-edit": "^4.0.0",
40
+ "@atlaskit/editor-plugin-collab-edit": "^4.1.0",
41
41
  "@atlaskit/editor-plugin-feature-flags": "^2.0.0",
42
- "@atlaskit/editor-plugin-primary-toolbar": "^4.0.0",
42
+ "@atlaskit/editor-plugin-primary-toolbar": "^4.1.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
- "@atlaskit/editor-shared-styles": "^3.4.0",
45
- "@atlaskit/icon": "^27.3.0",
44
+ "@atlaskit/editor-shared-styles": "^3.5.0",
45
+ "@atlaskit/icon": "^27.7.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/theme": "^19.0.0",
48
- "@atlaskit/tmp-editor-statsig": "^9.1.0",
49
- "@atlaskit/tokens": "^5.4.0",
48
+ "@atlaskit/tmp-editor-statsig": "^9.14.0",
49
+ "@atlaskit/tokens": "^5.6.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.7.0",
56
+ "@atlaskit/editor-common": "^107.12.0",
57
57
  "react": "^18.2.0"
58
58
  },
59
59
  "devDependencies": {