@atlaskit/reactions 21.8.0 → 21.8.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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +4 -13
- package/dist/types-ts4.0/MockReactionsClient.d.ts +0 -23
- package/dist/types-ts4.0/analytics/analytics.d.ts +0 -102
- package/dist/types-ts4.0/analytics/constants.d.ts +0 -1
- package/dist/types-ts4.0/analytics/index.d.ts +0 -2
- package/dist/types-ts4.0/analytics/ufo.d.ts +0 -40
- package/dist/types-ts4.0/client/ReactionServiceClient.d.ts +0 -35
- package/dist/types-ts4.0/client/index.d.ts +0 -1
- package/dist/types-ts4.0/components/Counter/Counter.d.ts +0 -45
- package/dist/types-ts4.0/components/Counter/index.d.ts +0 -3
- package/dist/types-ts4.0/components/Counter/styles.d.ts +0 -3
- package/dist/types-ts4.0/components/EmojiButton/EmojiButton.d.ts +0 -22
- package/dist/types-ts4.0/components/EmojiButton/index.d.ts +0 -2
- package/dist/types-ts4.0/components/EmojiButton/styles.d.ts +0 -1
- package/dist/types-ts4.0/components/FlashAnimation/FlashAnimation.d.ts +0 -20
- package/dist/types-ts4.0/components/FlashAnimation/index.d.ts +0 -2
- package/dist/types-ts4.0/components/FlashAnimation/styles.d.ts +0 -5
- package/dist/types-ts4.0/components/Reaction/Reaction.d.ts +0 -38
- package/dist/types-ts4.0/components/Reaction/index.d.ts +0 -2
- package/dist/types-ts4.0/components/Reaction/styles.d.ts +0 -10
- package/dist/types-ts4.0/components/ReactionPicker/ReactionPicker.d.ts +0 -50
- package/dist/types-ts4.0/components/ReactionPicker/index.d.ts +0 -2
- package/dist/types-ts4.0/components/ReactionPicker/styles.d.ts +0 -3
- package/dist/types-ts4.0/components/ReactionTooltip/ReactionTooltip.d.ts +0 -22
- package/dist/types-ts4.0/components/ReactionTooltip/index.d.ts +0 -2
- package/dist/types-ts4.0/components/ReactionTooltip/styles.d.ts +0 -4
- package/dist/types-ts4.0/components/Reactions/Reactions.d.ts +0 -57
- package/dist/types-ts4.0/components/Reactions/index.d.ts +0 -2
- package/dist/types-ts4.0/components/Reactions/styles.d.ts +0 -2
- package/dist/types-ts4.0/components/Selector/Selector.d.ts +0 -34
- package/dist/types-ts4.0/components/Selector/index.d.ts +0 -3
- package/dist/types-ts4.0/components/Selector/styles.d.ts +0 -12
- package/dist/types-ts4.0/components/ShowMore/ShowMore.d.ts +0 -35
- package/dist/types-ts4.0/components/ShowMore/index.d.ts +0 -2
- package/dist/types-ts4.0/components/ShowMore/styles.d.ts +0 -3
- package/dist/types-ts4.0/components/Trigger/Trigger.d.ts +0 -35
- package/dist/types-ts4.0/components/Trigger/index.d.ts +0 -2
- package/dist/types-ts4.0/components/Trigger/styles.d.ts +0 -5
- package/dist/types-ts4.0/components/UfoErrorBoundary/UfoErrorBoundary.d.ts +0 -16
- package/dist/types-ts4.0/components/UfoErrorBoundary/index.d.ts +0 -2
- package/dist/types-ts4.0/components/index.d.ts +0 -8
- package/dist/types-ts4.0/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +0 -27
- package/dist/types-ts4.0/containers/ConnectedReactionPicker/index.d.ts +0 -2
- package/dist/types-ts4.0/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +0 -52
- package/dist/types-ts4.0/containers/ConnectedReactionsView/index.d.ts +0 -2
- package/dist/types-ts4.0/containers/index.d.ts +0 -2
- package/dist/types-ts4.0/hooks/index.d.ts +0 -1
- package/dist/types-ts4.0/hooks/useClickAway.d.ts +0 -9
- package/dist/types-ts4.0/i18n/cs.d.ts +0 -13
- package/dist/types-ts4.0/i18n/da.d.ts +0 -13
- package/dist/types-ts4.0/i18n/de.d.ts +0 -13
- package/dist/types-ts4.0/i18n/en.d.ts +0 -7
- package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -7
- package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -13
- package/dist/types-ts4.0/i18n/es.d.ts +0 -13
- package/dist/types-ts4.0/i18n/et.d.ts +0 -12
- package/dist/types-ts4.0/i18n/fi.d.ts +0 -13
- package/dist/types-ts4.0/i18n/fr.d.ts +0 -13
- package/dist/types-ts4.0/i18n/hu.d.ts +0 -13
- package/dist/types-ts4.0/i18n/index.d.ts +0 -35
- package/dist/types-ts4.0/i18n/is.d.ts +0 -6
- package/dist/types-ts4.0/i18n/it.d.ts +0 -13
- package/dist/types-ts4.0/i18n/ja.d.ts +0 -13
- package/dist/types-ts4.0/i18n/ko.d.ts +0 -13
- package/dist/types-ts4.0/i18n/languages.d.ts +0 -27
- package/dist/types-ts4.0/i18n/nb.d.ts +0 -13
- package/dist/types-ts4.0/i18n/nl.d.ts +0 -13
- package/dist/types-ts4.0/i18n/pl.d.ts +0 -13
- package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -13
- package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -12
- package/dist/types-ts4.0/i18n/ro.d.ts +0 -6
- package/dist/types-ts4.0/i18n/ru.d.ts +0 -13
- package/dist/types-ts4.0/i18n/sk.d.ts +0 -12
- package/dist/types-ts4.0/i18n/sv.d.ts +0 -13
- package/dist/types-ts4.0/i18n/th.d.ts +0 -13
- package/dist/types-ts4.0/i18n/tr.d.ts +0 -13
- package/dist/types-ts4.0/i18n/uk.d.ts +0 -13
- package/dist/types-ts4.0/i18n/vi.d.ts +0 -13
- package/dist/types-ts4.0/i18n/zh.d.ts +0 -13
- package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -13
- package/dist/types-ts4.0/index.d.ts +0 -7
- package/dist/types-ts4.0/shared/constants.d.ts +0 -21
- package/dist/types-ts4.0/shared/i18n.d.ts +0 -32
- package/dist/types-ts4.0/shared/index.d.ts +0 -3
- package/dist/types-ts4.0/shared/utils.d.ts +0 -11
- package/dist/types-ts4.0/store/MemoryReactionsStore.d.ts +0 -94
- package/dist/types-ts4.0/store/ReactionConsumer.d.ts +0 -57
- package/dist/types-ts4.0/store/batched.d.ts +0 -2
- package/dist/types-ts4.0/store/index.d.ts +0 -3
- package/dist/types-ts4.0/store/utils.d.ts +0 -11
- package/dist/types-ts4.0/types/Actions.d.ts +0 -27
- package/dist/types-ts4.0/types/Updater.d.ts +0 -1
- package/dist/types-ts4.0/types/User.d.ts +0 -10
- package/dist/types-ts4.0/types/client.d.ts +0 -38
- package/dist/types-ts4.0/types/index.d.ts +0 -7
- package/dist/types-ts4.0/types/reaction.d.ts +0 -100
- package/dist/types-ts4.0/types/store.d.ts +0 -63
package/CHANGELOG.md
CHANGED
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "21.8.
|
|
3
|
+
"version": "21.8.1",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,14 +12,6 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"typesVersions": {
|
|
16
|
-
">=4.0 <4.5": {
|
|
17
|
-
"*": [
|
|
18
|
-
"dist/types-ts4.0/*",
|
|
19
|
-
"dist/types-ts4.0/index.d.ts"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
15
|
"atlaskit:src": "src/index.ts",
|
|
24
16
|
"atlassian": {
|
|
25
17
|
"team": "TWP Collaboration Platform",
|
|
@@ -43,7 +35,7 @@
|
|
|
43
35
|
"@atlaskit/motion": "^1.3.0",
|
|
44
36
|
"@atlaskit/popper": "^5.0.0",
|
|
45
37
|
"@atlaskit/theme": "^12.2.0",
|
|
46
|
-
"@atlaskit/tokens": "^0.
|
|
38
|
+
"@atlaskit/tokens": "^0.11.0",
|
|
47
39
|
"@atlaskit/tooltip": "^17.6.0",
|
|
48
40
|
"@atlaskit/ufo": "^0.1.0",
|
|
49
41
|
"@atlaskit/util-service-support": "^6.1.0",
|
|
@@ -62,7 +54,7 @@
|
|
|
62
54
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
63
55
|
"@atlaskit/section-message": "^6.3.0",
|
|
64
56
|
"@atlaskit/tooltip": "^17.6.0",
|
|
65
|
-
"@atlaskit/util-data-test": "^17.
|
|
57
|
+
"@atlaskit/util-data-test": "^17.6.0",
|
|
66
58
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
67
59
|
"@atlassian/ufo": "^0.1.0",
|
|
68
60
|
"@emotion/jest": "^11.8.0",
|
|
@@ -71,7 +63,6 @@
|
|
|
71
63
|
"@testing-library/react": "^12.1.5",
|
|
72
64
|
"@testing-library/react-hooks": "^8.0.1",
|
|
73
65
|
"@testing-library/user-event": "^14.4.3",
|
|
74
|
-
"@types/webpack-dev-server": "^3.11.2",
|
|
75
66
|
"dotenv": "^8.2.0",
|
|
76
67
|
"enzyme": "^3.10.0",
|
|
77
68
|
"enzyme-adapter-react-16": "^1.15.1",
|
|
@@ -81,7 +72,7 @@
|
|
|
81
72
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
82
73
|
"typescript": "4.5.5",
|
|
83
74
|
"wait-for-expect": "^1.2.0",
|
|
84
|
-
"webpack-dev-server": "^
|
|
75
|
+
"webpack-dev-server": "^4.11.1"
|
|
85
76
|
},
|
|
86
77
|
"keywords": [
|
|
87
78
|
"fabric",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Reactions, Client, ReactionSummary } from './types';
|
|
2
|
-
export declare const containerAri = "ari:cloud:owner:demo-cloud-id:container/1";
|
|
3
|
-
export declare const ari = "ari:cloud:owner:demo-cloud-id:item/1";
|
|
4
|
-
export declare const getReactionSummary: (shortName: string, count: number, reacted: boolean) => ReactionSummary;
|
|
5
|
-
export declare const getUser: (id: string, displayName: string) => {
|
|
6
|
-
id: string;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const mockData: {
|
|
10
|
-
[key: string]: ReactionSummary[];
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Mocked version of the client to fetch user information
|
|
14
|
-
*/
|
|
15
|
-
export declare class MockReactionsClient implements Client {
|
|
16
|
-
private delay;
|
|
17
|
-
constructor(delay?: number);
|
|
18
|
-
private delayPromise;
|
|
19
|
-
getReactions(containerAri: string, aris: string[]): Promise<Reactions>;
|
|
20
|
-
getDetailedReaction(containerAri: string, ari: string, emojiId: string): Promise<ReactionSummary>;
|
|
21
|
-
addReaction(containerAri: string, ari: string, emojiId: string): Promise<ReactionSummary[]>;
|
|
22
|
-
deleteReaction(containerAri: string, ari: string, emojiId: string): Promise<ReactionSummary[]>;
|
|
23
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { EventType } from '@atlaskit/analytics-gas-types';
|
|
3
|
-
import { ReactionSummary, ReactionSource } from '../types';
|
|
4
|
-
export declare type PreviousState = 'new' | 'existingNotReacted' | 'existingReacted';
|
|
5
|
-
export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
|
|
6
|
-
export declare const createAndFireSafe: <U extends any[], T extends (...args: U) => AnalyticsEventPayload>(createAnalyticsEvent: CreateUIAnalyticsEvent | void, creator: T, ...args: U) => void;
|
|
7
|
-
export declare const createRestSucceededEvent: (actionSubject: string) => {
|
|
8
|
-
action: string;
|
|
9
|
-
actionSubject: string;
|
|
10
|
-
eventType: EventType;
|
|
11
|
-
actionSubjectId: string | undefined;
|
|
12
|
-
attributes: {
|
|
13
|
-
packageName: any;
|
|
14
|
-
packageVersion: any;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare const createRestFailedEvent: (actionSubject: string, errorCode?: number | undefined) => {
|
|
18
|
-
action: string;
|
|
19
|
-
actionSubject: string;
|
|
20
|
-
eventType: EventType;
|
|
21
|
-
actionSubjectId: string | undefined;
|
|
22
|
-
attributes: {
|
|
23
|
-
packageName: any;
|
|
24
|
-
packageVersion: any;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export declare const createReactionsRenderedEvent: (startTime: number) => {
|
|
28
|
-
action: string;
|
|
29
|
-
actionSubject: string;
|
|
30
|
-
eventType: EventType;
|
|
31
|
-
actionSubjectId: string | undefined;
|
|
32
|
-
attributes: {
|
|
33
|
-
packageName: any;
|
|
34
|
-
packageVersion: any;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export declare const createPickerButtonClickedEvent: (reactionEmojiCount: number) => {
|
|
38
|
-
action: string;
|
|
39
|
-
actionSubject: string;
|
|
40
|
-
eventType: EventType;
|
|
41
|
-
actionSubjectId: string | undefined;
|
|
42
|
-
attributes: {
|
|
43
|
-
packageName: any;
|
|
44
|
-
packageVersion: any;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export declare const createPickerCancelledEvent: (startTime?: number | undefined) => {
|
|
48
|
-
action: string;
|
|
49
|
-
actionSubject: string;
|
|
50
|
-
eventType: EventType;
|
|
51
|
-
actionSubjectId: string | undefined;
|
|
52
|
-
attributes: {
|
|
53
|
-
packageName: any;
|
|
54
|
-
packageVersion: any;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
export declare const createPickerMoreClickedEvent: (startTime?: number | undefined) => {
|
|
58
|
-
action: string;
|
|
59
|
-
actionSubject: string;
|
|
60
|
-
eventType: EventType;
|
|
61
|
-
actionSubjectId: string | undefined;
|
|
62
|
-
attributes: {
|
|
63
|
-
packageName: any;
|
|
64
|
-
packageVersion: any;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
export declare const createReactionSelectionEvent: (source: ReactionSource, emojiId: string, reaction?: ReactionSummary | undefined, startTime?: number | undefined) => {
|
|
68
|
-
action: string;
|
|
69
|
-
actionSubject: string;
|
|
70
|
-
eventType: EventType;
|
|
71
|
-
actionSubjectId: string | undefined;
|
|
72
|
-
attributes: {
|
|
73
|
-
packageName: any;
|
|
74
|
-
packageVersion: any;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
export declare const createReactionHoveredEvent: (startTime?: number | undefined) => {
|
|
78
|
-
action: string;
|
|
79
|
-
actionSubject: string;
|
|
80
|
-
eventType: EventType;
|
|
81
|
-
actionSubjectId: string | undefined;
|
|
82
|
-
attributes: {
|
|
83
|
-
packageName: any;
|
|
84
|
-
packageVersion: any;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
export declare const createReactionClickedEvent: (added: boolean, emojiId: string) => {
|
|
88
|
-
action: string;
|
|
89
|
-
actionSubject: string;
|
|
90
|
-
eventType: EventType;
|
|
91
|
-
actionSubjectId: string | undefined;
|
|
92
|
-
attributes: {
|
|
93
|
-
packageName: any;
|
|
94
|
-
packageVersion: any;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Used for store failure metadata for analytics
|
|
99
|
-
* @param error The error could be a service error with {code, reason} or an Error
|
|
100
|
-
* @returns any
|
|
101
|
-
*/
|
|
102
|
-
export declare const extractErrorInfo: (error: any) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SAMPLING_RATE_REACTIONS_RENDERED_EXP = 0.02;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ConcurrentExperience, UFOExperience } from '@atlaskit/ufo';
|
|
2
|
-
/**
|
|
3
|
-
* Types of experiences
|
|
4
|
-
*/
|
|
5
|
-
export declare enum ExperienceName {
|
|
6
|
-
REACTIONS_RENDERED = "reactions-rendered",
|
|
7
|
-
PICKER_OPENED = "reactions-picker-opened",
|
|
8
|
-
REACTION_ADDED = "reaction-added",
|
|
9
|
-
REACTION_REMOVED = "reaction-removed",
|
|
10
|
-
REACTION_DETAILS_FETCHED = "reaction-details-fetched"
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* UFO types of components been instrumented
|
|
14
|
-
*/
|
|
15
|
-
export declare enum ComponentName {
|
|
16
|
-
PICKER_RENDERED = "reactions-picker",
|
|
17
|
-
REACTIONS = "reactions-list",
|
|
18
|
-
REACTION_ITEM = "reaction-item"
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Experience when the emoji picker is opened
|
|
22
|
-
*/
|
|
23
|
-
export declare const PickerRender: UFOExperience;
|
|
24
|
-
/**
|
|
25
|
-
* Experience when the list of reactions gets rendered
|
|
26
|
-
*/
|
|
27
|
-
export declare const ReactionsRendered: ConcurrentExperience;
|
|
28
|
-
/**
|
|
29
|
-
* Experience when a reaction emoji gets added
|
|
30
|
-
*/
|
|
31
|
-
export declare const ReactionsAdd: ConcurrentExperience;
|
|
32
|
-
/**
|
|
33
|
-
* Experience when a reaction details gets fetched
|
|
34
|
-
*/
|
|
35
|
-
export declare const ReactionDetailsFetch: ConcurrentExperience;
|
|
36
|
-
/**
|
|
37
|
-
* Experience when a reaction emoji gets removed/decrement
|
|
38
|
-
*/
|
|
39
|
-
export declare const ReactionsRemove: ConcurrentExperience;
|
|
40
|
-
export declare const sampledReactionsRendered: (instanceId: string) => import("@atlaskit/emoji").WithSamplingUFOExperience;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Reactions, ReactionSummary, Client } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Utility class to retrieve/modify all actions on reactions collection
|
|
4
|
-
*/
|
|
5
|
-
export declare class ReactionServiceClient implements Client {
|
|
6
|
-
/**
|
|
7
|
-
* oAuth token
|
|
8
|
-
*/
|
|
9
|
-
private sessionToken?;
|
|
10
|
-
/**
|
|
11
|
-
* API config
|
|
12
|
-
*/
|
|
13
|
-
private serviceConfig;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @param baseUrl base domain url
|
|
17
|
-
* @param sessionToken oAuth token for reactions emoji services
|
|
18
|
-
*/
|
|
19
|
-
constructor(baseUrl: string, sessionToken?: string);
|
|
20
|
-
/**
|
|
21
|
-
* Get http headers for the "fetch" request
|
|
22
|
-
* @param hasBody
|
|
23
|
-
*/
|
|
24
|
-
private getHeaders;
|
|
25
|
-
/**
|
|
26
|
-
* Send a request to remote service
|
|
27
|
-
* @param path endpoint api url
|
|
28
|
-
* @param options Optional custom params
|
|
29
|
-
*/
|
|
30
|
-
private requestService;
|
|
31
|
-
getReactions(containerAri: string, aris: string[]): Promise<Reactions>;
|
|
32
|
-
getDetailedReaction(containerAri: string, ari: string, emojiId: string): Promise<ReactionSummary>;
|
|
33
|
-
addReaction(containerAri: string, ari: string, emojiId: string, metadata?: Record<string, any>): Promise<ReactionSummary[]>;
|
|
34
|
-
deleteReaction(containerAri: string, ari: string, emojiId: string, metadata?: Record<string, any>): Promise<ReactionSummary[]>;
|
|
35
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ReactionServiceClient } from './ReactionServiceClient';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* Test id for component top level div
|
|
5
|
-
*/
|
|
6
|
-
export declare const RENDER_COMPONENT_WRAPPER = "counter-wrapper";
|
|
7
|
-
/**
|
|
8
|
-
* Test id for wrapper div of the counter inside the slider
|
|
9
|
-
*/
|
|
10
|
-
export declare const RENDER_COUNTER_TESTID = "counter-container";
|
|
11
|
-
/**
|
|
12
|
-
* Counter label value wrapper div
|
|
13
|
-
*/
|
|
14
|
-
export declare const RENDER_LABEL_TESTID = "counter_label_wrapper";
|
|
15
|
-
export interface CounterProps {
|
|
16
|
-
/**
|
|
17
|
-
* Count of emoji been selected
|
|
18
|
-
*/
|
|
19
|
-
value: number;
|
|
20
|
-
/**
|
|
21
|
-
* Has the emoji been selected by given user (defaults to false)
|
|
22
|
-
*/
|
|
23
|
-
highlight?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Max threshold of selections to show before having a label (defaults to 1000)
|
|
26
|
-
*/
|
|
27
|
-
limit?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Label to show when the value surpasses the limit value (defaults to "1k+")
|
|
30
|
-
*/
|
|
31
|
-
overLimitLabel?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Optional wrapper class name
|
|
34
|
-
*/
|
|
35
|
-
className?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Duration in ms of how long the motion will take (defaults to "mediumDurationMs" from '@atlaskit/motion')
|
|
38
|
-
*/
|
|
39
|
-
animationDuration?: number;
|
|
40
|
-
}
|
|
41
|
-
export declare const getLabel: (value: number, overLimitLabel?: string | undefined, limit?: number | undefined) => string;
|
|
42
|
-
/**
|
|
43
|
-
* Display reaction count next to the emoji button
|
|
44
|
-
*/
|
|
45
|
-
export declare const Counter: React.FC<CounterProps>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { EmojiId, OnEmojiEvent, EmojiProvider } from '@atlaskit/emoji';
|
|
4
|
-
export declare const RENDER_BUTTON_TESTID = "button-emoji-id";
|
|
5
|
-
export interface EmojiButtonProps {
|
|
6
|
-
/**
|
|
7
|
-
* identifier info for a given emoji
|
|
8
|
-
*/
|
|
9
|
-
emojiId: EmojiId;
|
|
10
|
-
/**
|
|
11
|
-
* Async provider to fetch the emoji
|
|
12
|
-
*/
|
|
13
|
-
emojiProvider: Promise<EmojiProvider>;
|
|
14
|
-
/**
|
|
15
|
-
* Event handler when a new emoji is selected
|
|
16
|
-
*/
|
|
17
|
-
onClick: OnEmojiEvent;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* custom button to render the custom emoji selector inside the reaction picker
|
|
21
|
-
*/
|
|
22
|
-
export declare const EmojiButton: React.FC<EmojiButtonProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const emojiButtonStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface FlashAnimationProps {
|
|
4
|
-
/**
|
|
5
|
-
* Optional wrapper div class anme
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Show custom animation or render as standard without animation (defaults to false)
|
|
10
|
-
*/
|
|
11
|
-
flash?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Test id for wrapper FlashAnimation div
|
|
15
|
-
*/
|
|
16
|
-
export declare const RENDER_FLASHANIMATION_TESTID = "flash-animation";
|
|
17
|
-
/**
|
|
18
|
-
* Flash animation background component. See Reaction component for usage.
|
|
19
|
-
*/
|
|
20
|
-
export declare const FlashAnimation: React.FC<FlashAnimationProps>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { keyframes } from '@emotion/react';
|
|
3
|
-
export declare const flashAnimation: typeof keyframes;
|
|
4
|
-
export declare const containerStyle: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const flashStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { EmojiProvider } from '@atlaskit/emoji';
|
|
4
|
-
import { ReactionSummary, ReactionClick, ReactionMouseEnter } from '../../types';
|
|
5
|
-
/**
|
|
6
|
-
* Test id for Reaction item wrapper div
|
|
7
|
-
*/
|
|
8
|
-
export declare const RENDER_REACTION_TESTID = "render_reaction_wrapper";
|
|
9
|
-
export interface ReactionProps {
|
|
10
|
-
/**
|
|
11
|
-
* Data for the reaction
|
|
12
|
-
*/
|
|
13
|
-
reaction: ReactionSummary;
|
|
14
|
-
/**
|
|
15
|
-
* Provider for loading emojis
|
|
16
|
-
*/
|
|
17
|
-
emojiProvider: Promise<EmojiProvider>;
|
|
18
|
-
/**
|
|
19
|
-
* event handler when the emoji button is clicked
|
|
20
|
-
*/
|
|
21
|
-
onClick: ReactionClick;
|
|
22
|
-
/**
|
|
23
|
-
* Optional wrapper reaction <button /> class name
|
|
24
|
-
*/
|
|
25
|
-
className?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Optional event when the mouse cursor hovers over the reaction
|
|
28
|
-
*/
|
|
29
|
-
onMouseEnter?: ReactionMouseEnter;
|
|
30
|
-
/**
|
|
31
|
-
* Show custom animation or render as standard without animation (defaults to false)
|
|
32
|
-
*/
|
|
33
|
-
flash?: boolean;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Render an emoji reaction button
|
|
37
|
-
*/
|
|
38
|
-
export declare const Reaction: React.FC<ReactionProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Styling Note:
|
|
3
|
-
* Padding and line height are set within the child components
|
|
4
|
-
* of FlashAnimation b/c it otherwise throws off the flash styling
|
|
5
|
-
*/
|
|
6
|
-
export declare const emojiStyle: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const reactionStyle: import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const reactedStyle: import("@emotion/react").SerializedStyles;
|
|
9
|
-
export declare const flashHeight: number;
|
|
10
|
-
export declare const flashStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
4
|
-
import { SelectorProps } from '../Selector';
|
|
5
|
-
import { TriggerProps } from '../Trigger';
|
|
6
|
-
import { ReactionSource } from '../../types';
|
|
7
|
-
/**
|
|
8
|
-
* Test id for wrapper ReactionPicker div
|
|
9
|
-
*/
|
|
10
|
-
export declare const RENDER_REACTIONPICKER_TESTID = "reactionPicker-testid";
|
|
11
|
-
export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickReactionEmojiIds'>, Partial<Pick<TriggerProps, 'tooltipContent' | 'miniMode'>> {
|
|
12
|
-
/**
|
|
13
|
-
* Provider for loading emojis
|
|
14
|
-
*/
|
|
15
|
-
emojiProvider: Promise<EmojiProvider>;
|
|
16
|
-
/**
|
|
17
|
-
* Event callback when an emoji button is selected
|
|
18
|
-
* @param emojiId emoji unique id
|
|
19
|
-
* @param source source where the reaction was picked (either the initial default reactions or the custom reactions picker)
|
|
20
|
-
*/
|
|
21
|
-
onSelection: (emojiId: string, source: ReactionSource) => void;
|
|
22
|
-
/**
|
|
23
|
-
* Optional class name
|
|
24
|
-
*/
|
|
25
|
-
className?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Optional Show the "more emoji" selector icon for choosing emoji beyond the default list of emojis (defaults to false)
|
|
28
|
-
*/
|
|
29
|
-
allowAllEmojis?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Enable/Disable the button to be clickable (defaults to false)
|
|
32
|
-
*/
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Optional event handler when the emoji picker is opened
|
|
36
|
-
*/
|
|
37
|
-
onOpen?: () => void;
|
|
38
|
-
/**
|
|
39
|
-
* Optional event handler when the emoji picker is clicked outside and closed
|
|
40
|
-
*/
|
|
41
|
-
onCancel?: () => void;
|
|
42
|
-
/**
|
|
43
|
-
* Optional event handler when the custom emoji picker icon is selected
|
|
44
|
-
*/
|
|
45
|
-
onShowMore?: () => void;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Picker component for adding reactions
|
|
49
|
-
*/
|
|
50
|
-
export declare const ReactionPicker: React.FC<ReactionPickerProps>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ReactionSummary } from '../../types';
|
|
4
|
-
/**
|
|
5
|
-
* Test id for wrapper ReactionTooltip div
|
|
6
|
-
*/
|
|
7
|
-
export declare const RENDER_REACTIONTOOLTIP_TESTID = "render-reactionTooltip";
|
|
8
|
-
export interface ReactionTooltipProps {
|
|
9
|
-
/**
|
|
10
|
-
* Optional name for the reaction emoji
|
|
11
|
-
*/
|
|
12
|
-
emojiName?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Info on the emoji reaction to render
|
|
15
|
-
*/
|
|
16
|
-
reaction: ReactionSummary;
|
|
17
|
-
/**
|
|
18
|
-
* Optional Max users to show in the displayed tooltip (defaults to 5)
|
|
19
|
-
*/
|
|
20
|
-
maxReactions?: number;
|
|
21
|
-
}
|
|
22
|
-
export declare const ReactionTooltip: React.FC<ReactionTooltipProps>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const verticalMargin = 5;
|
|
2
|
-
export declare const tooltipStyle: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const emojiNameStyle: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const footerStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import { ReactionStatus, ReactionClick, ReactionSummary, QuickReactionEmojiSummary } from '../../types';
|
|
5
|
-
import { ReactionPickerProps } from '../ReactionPicker';
|
|
6
|
-
import { SelectorProps } from '../Selector';
|
|
7
|
-
/**
|
|
8
|
-
* Test id for wrapper Reactions div
|
|
9
|
-
*/
|
|
10
|
-
export declare const RENDER_REACTIONS_TESTID = "render-reactions";
|
|
11
|
-
export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmojis' | 'emojiProvider'>, Pick<SelectorProps, 'pickerQuickReactionEmojiIds'> {
|
|
12
|
-
/**
|
|
13
|
-
* event handler to fetching the reactions
|
|
14
|
-
*/
|
|
15
|
-
loadReaction: () => void;
|
|
16
|
-
/**
|
|
17
|
-
* Event callback when an emoji button is selected
|
|
18
|
-
*/
|
|
19
|
-
onSelection: (emojiId: string) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Optional list of reactions to render (defaults to empty list)
|
|
22
|
-
*/
|
|
23
|
-
reactions?: ReactionSummary[];
|
|
24
|
-
/**
|
|
25
|
-
* Condition for the reaction list status while been fetched
|
|
26
|
-
*/
|
|
27
|
-
status: ReactionStatus;
|
|
28
|
-
/**
|
|
29
|
-
* event handler when the emoji button is clicked
|
|
30
|
-
*/
|
|
31
|
-
onReactionClick: ReactionClick;
|
|
32
|
-
/**
|
|
33
|
-
* Optional emoji reactions list to show custom animation or render as standard (key => emoji string "id", value => true/false to show custom animation)
|
|
34
|
-
*/
|
|
35
|
-
flash?: Record<string, boolean>;
|
|
36
|
-
/**
|
|
37
|
-
* Optional event when the mouse cursor hovers over the reaction
|
|
38
|
-
* @param emojiId hovered reaction emoji id
|
|
39
|
-
*/
|
|
40
|
-
onReactionHover?: (emojiId: string) => void;
|
|
41
|
-
/**
|
|
42
|
-
* Optional error message to show when unable to display the reaction emoji
|
|
43
|
-
*/
|
|
44
|
-
errorMessage?: string;
|
|
45
|
-
/**
|
|
46
|
-
* quickReactionEmojis are emojis that will be shown in the the primary view even if the reaction count is zero
|
|
47
|
-
*/
|
|
48
|
-
quickReactionEmojis?: QuickReactionEmojiSummary;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Get content of the tooltip
|
|
52
|
-
*/
|
|
53
|
-
export declare function getTooltip(status: ReactionStatus, errorMessage?: string): string | jsx.JSX.Element | null;
|
|
54
|
-
/**
|
|
55
|
-
* Renders list of reactions
|
|
56
|
-
*/
|
|
57
|
-
export declare const Reactions: React.FC<ReactionsProps>;
|