@atlaskit/editor-plugin-avatar-group 3.0.4 → 3.1.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 +19 -0
- package/dist/cjs/ui/invite-to-edit.js +2 -2
- package/dist/es2019/ui/invite-to-edit.js +2 -2
- package/dist/esm/ui/invite-to-edit.js +2 -2
- package/dist/types/avatarGroupPluginType.d.ts +2 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/ui/avatars-with-plugin-state.d.ts +2 -10
- package/dist/types/ui/to-avatar.d.ts +1 -5
- package/dist/types-ts4.5/avatarGroupPluginType.d.ts +2 -3
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/avatars-with-plugin-state.d.ts +2 -10
- package/dist/types-ts4.5/ui/to-avatar.d.ts +1 -5
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-avatar-group
|
|
2
2
|
|
|
3
|
+
## 3.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#139139](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139139)
|
|
8
|
+
[`7f6b665d778dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f6b665d778dd) -
|
|
9
|
+
[https://product-fabric.atlassian.net/browse/ED-27499](ED-27499) - the new
|
|
10
|
+
`@atlassian/confluence-presets` package with Confluence `full-page` preset is created
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 3.0.5
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 3.0.4
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -9,7 +9,7 @@ exports.InviteToEditButton = void 0;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
12
|
-
var
|
|
12
|
+
var _addEditorAdd = _interopRequireDefault(require("@atlaskit/icon/core/migration/add--editor-add"));
|
|
13
13
|
var _styles = require("./styles");
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -29,7 +29,7 @@ var InviteToEditButton = exports.InviteToEditButton = function InviteToEditButto
|
|
|
29
29
|
selected = props.selected,
|
|
30
30
|
title = props.title;
|
|
31
31
|
var iconBefore = _react.default.useMemo(function () {
|
|
32
|
-
return (0, _react2.jsx)(
|
|
32
|
+
return (0, _react2.jsx)(_addEditorAdd.default, {
|
|
33
33
|
label: title
|
|
34
34
|
});
|
|
35
35
|
}, [title]);
|
|
@@ -7,7 +7,7 @@ import React, { Fragment } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
10
|
-
import
|
|
10
|
+
import AddIcon from '@atlaskit/icon/core/migration/add--editor-add';
|
|
11
11
|
import { inviteTeamWrapperStyles } from './styles';
|
|
12
12
|
const ID = props => jsx(Fragment, null, props.children);
|
|
13
13
|
export const InviteToEditButton = props => {
|
|
@@ -17,7 +17,7 @@ export const InviteToEditButton = props => {
|
|
|
17
17
|
selected,
|
|
18
18
|
title
|
|
19
19
|
} = props;
|
|
20
|
-
const iconBefore = React.useMemo(() => jsx(
|
|
20
|
+
const iconBefore = React.useMemo(() => jsx(AddIcon, {
|
|
21
21
|
label: title
|
|
22
22
|
}), [title]);
|
|
23
23
|
if (!Component && !onClick) {
|
|
@@ -7,7 +7,7 @@ import React, { Fragment } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
10
|
-
import
|
|
10
|
+
import AddIcon from '@atlaskit/icon/core/migration/add--editor-add';
|
|
11
11
|
import { inviteTeamWrapperStyles } from './styles';
|
|
12
12
|
var ID = function ID(props) {
|
|
13
13
|
return jsx(Fragment, null, props.children);
|
|
@@ -18,7 +18,7 @@ export var InviteToEditButton = function InviteToEditButton(props) {
|
|
|
18
18
|
selected = props.selected,
|
|
19
19
|
title = props.title;
|
|
20
20
|
var iconBefore = React.useMemo(function () {
|
|
21
|
-
return jsx(
|
|
21
|
+
return jsx(AddIcon, {
|
|
22
22
|
label: title
|
|
23
23
|
});
|
|
24
24
|
}, [title]);
|
|
@@ -5,7 +5,7 @@ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
|
5
5
|
import type { CollabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
|
|
6
6
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
7
7
|
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
8
|
-
type
|
|
8
|
+
export type AvatarGroupPluginOptions = {
|
|
9
9
|
collabEdit?: CollabEditOptions;
|
|
10
10
|
takeFullWidth: boolean;
|
|
11
11
|
showAvatarGroup?: boolean;
|
|
@@ -17,10 +17,9 @@ export type AvatarGroupPluginDependencies = [
|
|
|
17
17
|
OptionalPlugin<PrimaryToolbarPlugin>
|
|
18
18
|
];
|
|
19
19
|
export type AvatarGroupPlugin = NextEditorPlugin<'avatarGroup', {
|
|
20
|
-
pluginConfiguration:
|
|
20
|
+
pluginConfiguration: AvatarGroupPluginOptions;
|
|
21
21
|
dependencies: AvatarGroupPluginDependencies;
|
|
22
22
|
actions: {
|
|
23
23
|
getToolbarItem: ({ inviteToEditHandler, isInviteToEditButtonSelected, inviteToEditComponent, }: CollabInviteToEditProps) => JSX.Element | null;
|
|
24
24
|
};
|
|
25
25
|
}>;
|
|
26
|
-
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { AvatarGroupPlugin } from './avatarGroupPluginType';
|
|
1
|
+
export type { AvatarGroupPlugin, AvatarGroupPluginOptions } from './avatarGroupPluginType';
|
|
2
2
|
export { avatarGroupPlugin } from './avatarGroupPlugin';
|
|
@@ -19,11 +19,7 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
19
19
|
featureFlags: FeatureFlags;
|
|
20
20
|
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
21
21
|
editorAPI: import("@atlaskit/editor-common/types").EditorInjectionAPI<"avatarGroup", {
|
|
22
|
-
pluginConfiguration:
|
|
23
|
-
collabEdit?: import("@atlaskit/editor-common/collab").CollabEditOptions | undefined;
|
|
24
|
-
takeFullWidth: boolean;
|
|
25
|
-
showAvatarGroup?: boolean | undefined;
|
|
26
|
-
};
|
|
22
|
+
pluginConfiguration: import("../avatarGroupPluginType").AvatarGroupPluginOptions;
|
|
27
23
|
dependencies: import("../avatarGroupPluginType").AvatarGroupPluginDependencies;
|
|
28
24
|
actions: {
|
|
29
25
|
getToolbarItem: ({ inviteToEditHandler, isInviteToEditButtonSelected, inviteToEditComponent, }: CollabInviteToEditProps) => JSX.Element | null;
|
|
@@ -36,11 +32,7 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
36
32
|
featureFlags: FeatureFlags;
|
|
37
33
|
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
38
34
|
editorAPI: import("@atlaskit/editor-common/types").EditorInjectionAPI<"avatarGroup", {
|
|
39
|
-
pluginConfiguration:
|
|
40
|
-
collabEdit?: import("@atlaskit/editor-common/collab").CollabEditOptions | undefined;
|
|
41
|
-
takeFullWidth: boolean;
|
|
42
|
-
showAvatarGroup?: boolean | undefined;
|
|
43
|
-
};
|
|
35
|
+
pluginConfiguration: import("../avatarGroupPluginType").AvatarGroupPluginOptions;
|
|
44
36
|
dependencies: import("../avatarGroupPluginType").AvatarGroupPluginDependencies;
|
|
45
37
|
actions: {
|
|
46
38
|
getToolbarItem: ({ inviteToEditHandler, isInviteToEditButtonSelected, inviteToEditComponent, }: CollabInviteToEditProps) => JSX.Element | null;
|
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
import type { AvatarProps } from '@atlaskit/avatar-group';
|
|
3
3
|
import type { CollabParticipant } from '@atlaskit/editor-common/collab';
|
|
4
4
|
declare const _default: import("memoize-one").MemoizedFn<(participant: CollabParticipant, api: import("@atlaskit/editor-common/types").EditorInjectionAPI<"avatarGroup", {
|
|
5
|
-
pluginConfiguration:
|
|
6
|
-
collabEdit?: import("@atlaskit/editor-common/collab").CollabEditOptions | undefined;
|
|
7
|
-
takeFullWidth: boolean;
|
|
8
|
-
showAvatarGroup?: boolean | undefined;
|
|
9
|
-
};
|
|
5
|
+
pluginConfiguration: import("../avatarGroupPluginType").AvatarGroupPluginOptions;
|
|
10
6
|
dependencies: import("../avatarGroupPluginType").AvatarGroupPluginDependencies;
|
|
11
7
|
actions: {
|
|
12
8
|
getToolbarItem: ({ inviteToEditHandler, isInviteToEditButtonSelected, inviteToEditComponent, }: import("@atlaskit/editor-common/collab").CollabInviteToEditProps) => JSX.Element | null;
|
|
@@ -5,7 +5,7 @@ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
|
5
5
|
import type { CollabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
|
|
6
6
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
7
7
|
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
8
|
-
type
|
|
8
|
+
export type AvatarGroupPluginOptions = {
|
|
9
9
|
collabEdit?: CollabEditOptions;
|
|
10
10
|
takeFullWidth: boolean;
|
|
11
11
|
showAvatarGroup?: boolean;
|
|
@@ -17,10 +17,9 @@ export type AvatarGroupPluginDependencies = [
|
|
|
17
17
|
OptionalPlugin<PrimaryToolbarPlugin>
|
|
18
18
|
];
|
|
19
19
|
export type AvatarGroupPlugin = NextEditorPlugin<'avatarGroup', {
|
|
20
|
-
pluginConfiguration:
|
|
20
|
+
pluginConfiguration: AvatarGroupPluginOptions;
|
|
21
21
|
dependencies: AvatarGroupPluginDependencies;
|
|
22
22
|
actions: {
|
|
23
23
|
getToolbarItem: ({ inviteToEditHandler, isInviteToEditButtonSelected, inviteToEditComponent, }: CollabInviteToEditProps) => JSX.Element | null;
|
|
24
24
|
};
|
|
25
25
|
}>;
|
|
26
|
-
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { AvatarGroupPlugin } from './avatarGroupPluginType';
|
|
1
|
+
export type { AvatarGroupPlugin, AvatarGroupPluginOptions } from './avatarGroupPluginType';
|
|
2
2
|
export { avatarGroupPlugin } from './avatarGroupPlugin';
|
|
@@ -19,11 +19,7 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
19
19
|
featureFlags: FeatureFlags;
|
|
20
20
|
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
21
21
|
editorAPI: import("@atlaskit/editor-common/types").EditorInjectionAPI<"avatarGroup", {
|
|
22
|
-
pluginConfiguration:
|
|
23
|
-
collabEdit?: import("@atlaskit/editor-common/collab").CollabEditOptions | undefined;
|
|
24
|
-
takeFullWidth: boolean;
|
|
25
|
-
showAvatarGroup?: boolean | undefined;
|
|
26
|
-
};
|
|
22
|
+
pluginConfiguration: import("../avatarGroupPluginType").AvatarGroupPluginOptions;
|
|
27
23
|
dependencies: import("../avatarGroupPluginType").AvatarGroupPluginDependencies;
|
|
28
24
|
actions: {
|
|
29
25
|
getToolbarItem: ({ inviteToEditHandler, isInviteToEditButtonSelected, inviteToEditComponent, }: CollabInviteToEditProps) => JSX.Element | null;
|
|
@@ -36,11 +32,7 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
36
32
|
featureFlags: FeatureFlags;
|
|
37
33
|
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
38
34
|
editorAPI: import("@atlaskit/editor-common/types").EditorInjectionAPI<"avatarGroup", {
|
|
39
|
-
pluginConfiguration:
|
|
40
|
-
collabEdit?: import("@atlaskit/editor-common/collab").CollabEditOptions | undefined;
|
|
41
|
-
takeFullWidth: boolean;
|
|
42
|
-
showAvatarGroup?: boolean | undefined;
|
|
43
|
-
};
|
|
35
|
+
pluginConfiguration: import("../avatarGroupPluginType").AvatarGroupPluginOptions;
|
|
44
36
|
dependencies: import("../avatarGroupPluginType").AvatarGroupPluginDependencies;
|
|
45
37
|
actions: {
|
|
46
38
|
getToolbarItem: ({ inviteToEditHandler, isInviteToEditButtonSelected, inviteToEditComponent, }: CollabInviteToEditProps) => JSX.Element | null;
|
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
import type { AvatarProps } from '@atlaskit/avatar-group';
|
|
3
3
|
import type { CollabParticipant } from '@atlaskit/editor-common/collab';
|
|
4
4
|
declare const _default: import("memoize-one").MemoizedFn<(participant: CollabParticipant, api: import("@atlaskit/editor-common/types").EditorInjectionAPI<"avatarGroup", {
|
|
5
|
-
pluginConfiguration:
|
|
6
|
-
collabEdit?: import("@atlaskit/editor-common/collab").CollabEditOptions | undefined;
|
|
7
|
-
takeFullWidth: boolean;
|
|
8
|
-
showAvatarGroup?: boolean | undefined;
|
|
9
|
-
};
|
|
5
|
+
pluginConfiguration: import("../avatarGroupPluginType").AvatarGroupPluginOptions;
|
|
10
6
|
dependencies: import("../avatarGroupPluginType").AvatarGroupPluginDependencies;
|
|
11
7
|
actions: {
|
|
12
8
|
getToolbarItem: ({ inviteToEditHandler, isInviteToEditButtonSelected, inviteToEditComponent, }: import("@atlaskit/editor-common/collab").CollabInviteToEditProps) => JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-avatar-group",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Avatar Group plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/avatar-group": "^12.0.0",
|
|
40
|
-
"@atlaskit/editor-common": "^
|
|
41
|
-
"@atlaskit/editor-plugin-analytics": "^2.
|
|
42
|
-
"@atlaskit/editor-plugin-collab-edit": "^3.
|
|
43
|
-
"@atlaskit/editor-plugin-feature-flags": "^1.
|
|
44
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^3.
|
|
40
|
+
"@atlaskit/editor-common": "^103.4.0",
|
|
41
|
+
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
42
|
+
"@atlaskit/editor-plugin-collab-edit": "^3.4.0",
|
|
43
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.4.0",
|
|
44
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
|
|
45
45
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
46
46
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
47
|
-
"@atlaskit/icon": "^25.
|
|
47
|
+
"@atlaskit/icon": "^25.5.0",
|
|
48
48
|
"@atlaskit/theme": "^18.0.0",
|
|
49
|
-
"@atlaskit/tokens": "^4.
|
|
49
|
+
"@atlaskit/tokens": "^4.7.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"memoize-one": "^6.0.0",
|