@atlaskit/reactions 33.2.11 → 33.2.13
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 +14 -0
- package/afm-cc/tsconfig.json +2 -2
- package/afm-rovo-extension/tsconfig.json +105 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/types/components/Counter.d.ts +10 -10
- package/dist/types/components/EmojiButton.d.ts +4 -4
- package/dist/types/components/Reaction.d.ts +20 -20
- package/dist/types/components/ReactionButton.d.ts +9 -9
- package/dist/types/components/ReactionPicker.d.ts +34 -34
- package/dist/types/components/ReactionPickerNew.d.ts +41 -41
- package/dist/types/components/ReactionSummaryButton.d.ts +12 -12
- package/dist/types/components/ReactionSummaryView.d.ts +32 -32
- package/dist/types/components/ReactionTooltip.d.ts +14 -14
- package/dist/types/components/ReactionView.d.ts +4 -4
- package/dist/types/components/Reactions.d.ts +73 -73
- package/dist/types/components/ReactionsDialog.d.ts +10 -10
- package/dist/types/components/ReactionsDialogHeader.d.ts +5 -5
- package/dist/types/components/ReactionsList.d.ts +7 -7
- package/dist/types/components/RepositionOnUpdate.d.ts +2 -2
- package/dist/types/components/Selector.d.ts +8 -8
- package/dist/types/components/StaticReaction.d.ts +3 -3
- package/dist/types/components/Trigger.d.ts +27 -27
- package/dist/types/components/UfoErrorBoundary.d.ts +1 -1
- package/dist/types/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +4 -4
- package/dist/types/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +10 -10
- package/dist/types/hooks/useFocusTrap.d.ts +1 -1
- package/dist/types/store/MemoryReactionsStore.d.ts +1 -1
- package/dist/types/store/ReactionConsumer.d.ts +4 -4
- package/dist/types/types/Actions.d.ts +8 -8
- package/dist/types/types/User.d.ts +5 -5
- package/dist/types/types/client.d.ts +10 -10
- package/dist/types/types/index.d.ts +6 -6
- package/dist/types/types/reaction.d.ts +12 -12
- package/dist/types/types/store.d.ts +6 -6
- package/dist/types-ts4.5/components/Counter.d.ts +10 -10
- package/dist/types-ts4.5/components/EmojiButton.d.ts +4 -4
- package/dist/types-ts4.5/components/Reaction.d.ts +20 -20
- package/dist/types-ts4.5/components/ReactionButton.d.ts +9 -9
- package/dist/types-ts4.5/components/ReactionPicker.d.ts +34 -34
- package/dist/types-ts4.5/components/ReactionPickerNew.d.ts +41 -41
- package/dist/types-ts4.5/components/ReactionSummaryButton.d.ts +12 -12
- package/dist/types-ts4.5/components/ReactionSummaryView.d.ts +32 -32
- package/dist/types-ts4.5/components/ReactionTooltip.d.ts +14 -14
- package/dist/types-ts4.5/components/ReactionView.d.ts +4 -4
- package/dist/types-ts4.5/components/Reactions.d.ts +73 -73
- package/dist/types-ts4.5/components/ReactionsDialog.d.ts +10 -10
- package/dist/types-ts4.5/components/ReactionsDialogHeader.d.ts +5 -5
- package/dist/types-ts4.5/components/ReactionsList.d.ts +7 -7
- package/dist/types-ts4.5/components/RepositionOnUpdate.d.ts +2 -2
- package/dist/types-ts4.5/components/Selector.d.ts +8 -8
- package/dist/types-ts4.5/components/StaticReaction.d.ts +3 -3
- package/dist/types-ts4.5/components/Trigger.d.ts +27 -27
- package/dist/types-ts4.5/components/UfoErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +4 -4
- package/dist/types-ts4.5/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +10 -10
- package/dist/types-ts4.5/hooks/useFocusTrap.d.ts +1 -1
- package/dist/types-ts4.5/store/MemoryReactionsStore.d.ts +1 -1
- package/dist/types-ts4.5/store/ReactionConsumer.d.ts +4 -4
- package/dist/types-ts4.5/types/Actions.d.ts +8 -8
- package/dist/types-ts4.5/types/User.d.ts +5 -5
- package/dist/types-ts4.5/types/client.d.ts +10 -10
- package/dist/types-ts4.5/types/index.d.ts +6 -6
- package/dist/types-ts4.5/types/reaction.d.ts +12 -12
- package/dist/types-ts4.5/types/store.d.ts +6 -6
- package/package.json +5 -5
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export interface User {
|
|
2
|
-
|
|
3
|
-
* user id in system
|
|
4
|
-
*/
|
|
5
|
-
id: string;
|
|
2
|
+
accountId?: string;
|
|
6
3
|
/**
|
|
7
4
|
* name of user clicked on the reaction
|
|
8
5
|
*/
|
|
9
6
|
displayName: string;
|
|
7
|
+
/**
|
|
8
|
+
* user id in system
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
10
11
|
/**
|
|
11
12
|
* optional path to a user profile picture
|
|
12
13
|
*/
|
|
13
14
|
profilePicture?: ProfilePicture;
|
|
14
|
-
accountId?: string;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Type defining the path to a user profile picture
|
|
@@ -17,16 +17,6 @@ emojiId: string,
|
|
|
17
17
|
*/
|
|
18
18
|
metadata?: Record<string, any>) => Promise<T>;
|
|
19
19
|
export interface Client {
|
|
20
|
-
/**
|
|
21
|
-
* fetch reactions request handler
|
|
22
|
-
* @param containerAri container wrapper id
|
|
23
|
-
* @param aris container reaction assets unique ids
|
|
24
|
-
*/
|
|
25
|
-
getReactions(containerAri: string, aris: string[]): Promise<Reactions>;
|
|
26
|
-
/**
|
|
27
|
-
* Fetch details for a given reaction.
|
|
28
|
-
*/
|
|
29
|
-
getDetailedReaction: Request<ReactionSummary>;
|
|
30
20
|
/**
|
|
31
21
|
* Fetch request when adding a reaction to a container.
|
|
32
22
|
*/
|
|
@@ -35,4 +25,14 @@ export interface Client {
|
|
|
35
25
|
* Fetch request when removing a reaction from a container.
|
|
36
26
|
*/
|
|
37
27
|
deleteReaction: Request<ReactionSummary[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Fetch details for a given reaction.
|
|
30
|
+
*/
|
|
31
|
+
getDetailedReaction: Request<ReactionSummary>;
|
|
32
|
+
/**
|
|
33
|
+
* fetch reactions request handler
|
|
34
|
+
* @param containerAri container wrapper id
|
|
35
|
+
* @param aris container reaction assets unique ids
|
|
36
|
+
*/
|
|
37
|
+
getReactions(containerAri: string, aris: string[]): Promise<Reactions>;
|
|
38
38
|
}
|
|
@@ -8,18 +8,18 @@ export type { User } from './User';
|
|
|
8
8
|
export type { Store, StorePropInput, State, OnChangeCallback } from './store';
|
|
9
9
|
type TriggerPosition = 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end' | 'top-end' | 'top' | 'top-start' | 'right-end' | 'right' | 'right-start';
|
|
10
10
|
type ProfileCardWrapperProps = {
|
|
11
|
-
|
|
12
|
-
position?: TriggerPosition;
|
|
13
|
-
isAnonymous?: boolean;
|
|
11
|
+
ariaLabel?: string;
|
|
14
12
|
canViewProfile?: boolean;
|
|
15
13
|
children: ReactNode;
|
|
16
|
-
fullName?: string;
|
|
17
14
|
disabledAriaAttributes?: boolean;
|
|
18
|
-
|
|
15
|
+
fullName?: string;
|
|
16
|
+
isAnonymous?: boolean;
|
|
19
17
|
offset?: [
|
|
20
18
|
number,
|
|
21
19
|
number
|
|
22
20
|
];
|
|
23
|
-
|
|
21
|
+
onVisibilityChange?: (isVisible: boolean) => void;
|
|
22
|
+
position?: TriggerPosition;
|
|
23
|
+
userId?: string | null;
|
|
24
24
|
};
|
|
25
25
|
export type ProfileCardWrapper = React.ComponentType<ProfileCardWrapperProps>;
|
|
@@ -15,30 +15,30 @@ export interface ReactionSummary {
|
|
|
15
15
|
* the container for reactions/ari in the page
|
|
16
16
|
*/
|
|
17
17
|
containerAri: string;
|
|
18
|
-
/**
|
|
19
|
-
* unique Atlassian identifier for an emoji
|
|
20
|
-
*/
|
|
21
|
-
emojiId: string;
|
|
22
18
|
/**
|
|
23
19
|
* Number of selected count for the emoji
|
|
24
20
|
*/
|
|
25
21
|
count: number;
|
|
26
22
|
/**
|
|
27
|
-
*
|
|
23
|
+
* unique Atlassian identifier for an emoji
|
|
28
24
|
*/
|
|
29
|
-
|
|
25
|
+
emojiId: string;
|
|
30
26
|
/**
|
|
31
|
-
*
|
|
27
|
+
* A path to the emoji image, used for optimistic rendering.
|
|
32
28
|
*/
|
|
33
|
-
|
|
29
|
+
emojiPath?: string;
|
|
34
30
|
/**
|
|
35
31
|
* @deprecated Legacy content Not in use anymore
|
|
36
32
|
*/
|
|
37
33
|
optimisticallyUpdated?: boolean;
|
|
38
34
|
/**
|
|
39
|
-
*
|
|
35
|
+
* Has the current user selected the emoji or not
|
|
40
36
|
*/
|
|
41
|
-
|
|
37
|
+
reacted: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Users collection
|
|
40
|
+
*/
|
|
41
|
+
users?: User[];
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Metadata for composing a summary of emojis that will be shown in the the primary view even if the reaction count is zero
|
|
@@ -102,15 +102,15 @@ export declare enum ReactionStatus {
|
|
|
102
102
|
*/
|
|
103
103
|
export type ReactionsState = ReactionsNotLoaded | ReactionsLoading | ReactionsReadyState | ReactionsError;
|
|
104
104
|
export type ReactionsReadyState = {
|
|
105
|
-
readonly status: ReactionStatus.ready;
|
|
106
105
|
readonly reactions: ReactionSummary[];
|
|
106
|
+
readonly status: ReactionStatus.ready;
|
|
107
107
|
};
|
|
108
108
|
export type ReactionsLoading = {
|
|
109
109
|
readonly status: ReactionStatus.loading;
|
|
110
110
|
};
|
|
111
111
|
export type ReactionsError = {
|
|
112
|
-
readonly status: ReactionStatus.error;
|
|
113
112
|
readonly message: string;
|
|
113
|
+
readonly status: ReactionStatus.error;
|
|
114
114
|
};
|
|
115
115
|
export type ReactionsNotLoaded = {
|
|
116
116
|
readonly status: ReactionStatus.notLoaded;
|
|
@@ -46,12 +46,6 @@ export type StorePropInput = Store | Promise<Store>;
|
|
|
46
46
|
* store main structure
|
|
47
47
|
*/
|
|
48
48
|
export type State = {
|
|
49
|
-
/**
|
|
50
|
-
* collection of the different reactions (key => unique reaction id , value => state of the reaction)
|
|
51
|
-
*/
|
|
52
|
-
reactions: {
|
|
53
|
-
[key: string]: ReactionsState;
|
|
54
|
-
};
|
|
55
49
|
/**
|
|
56
50
|
* custom animation for given emojis as true|false (key => unique reaction id, value => collection of emojiIds and true|false to apply custom animation)
|
|
57
51
|
*/
|
|
@@ -68,4 +62,10 @@ export type State = {
|
|
|
68
62
|
[emojiId: string]: boolean;
|
|
69
63
|
};
|
|
70
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* collection of the different reactions (key => unique reaction id , value => state of the reaction)
|
|
67
|
+
*/
|
|
68
|
+
reactions: {
|
|
69
|
+
[key: string]: ReactionsState;
|
|
70
|
+
};
|
|
71
71
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "33.2.
|
|
3
|
+
"version": "33.2.13",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
37
37
|
"@atlaskit/avatar": "^25.1.0",
|
|
38
|
-
"@atlaskit/button": "^23.
|
|
38
|
+
"@atlaskit/button": "^23.4.0",
|
|
39
39
|
"@atlaskit/css": "^0.12.0",
|
|
40
|
-
"@atlaskit/emoji": "^69.
|
|
40
|
+
"@atlaskit/emoji": "^69.5.0",
|
|
41
41
|
"@atlaskit/heading": "^5.2.0",
|
|
42
|
-
"@atlaskit/icon": "^
|
|
42
|
+
"@atlaskit/icon": "^28.0.0",
|
|
43
43
|
"@atlaskit/link": "^3.2.0",
|
|
44
44
|
"@atlaskit/modal-dialog": "^14.3.0",
|
|
45
45
|
"@atlaskit/motion": "^5.3.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/popup": "^4.3.0",
|
|
50
50
|
"@atlaskit/portal": "^5.1.0",
|
|
51
51
|
"@atlaskit/primitives": "^14.11.0",
|
|
52
|
-
"@atlaskit/react-ufo": "^4.
|
|
52
|
+
"@atlaskit/react-ufo": "^4.4.0",
|
|
53
53
|
"@atlaskit/spinner": "^19.0.0",
|
|
54
54
|
"@atlaskit/tabs": "^18.1.0",
|
|
55
55
|
"@atlaskit/theme": "^19.0.0",
|