@atlaskit/reactions 22.5.2 → 22.5.4
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 +75 -63
- package/dist/cjs/MockReactionsClient.js +12 -17
- package/dist/cjs/analytics/index.js +130 -8
- package/dist/cjs/client/ReactionServiceClient.js +4 -5
- package/dist/cjs/components/Counter/Counter.js +11 -15
- package/dist/cjs/components/Counter/index.js +1 -7
- package/dist/cjs/components/Counter/styles.js +6 -10
- package/dist/cjs/components/EmojiButton/EmojiButton.js +9 -13
- package/dist/cjs/components/EmojiButton/styles.js +3 -4
- package/dist/cjs/components/FlashAnimation/FlashAnimation.js +5 -10
- package/dist/cjs/components/FlashAnimation/styles.js +4 -7
- package/dist/cjs/components/Reaction/Reaction.js +15 -16
- package/dist/cjs/components/Reaction/styles.js +9 -13
- package/dist/cjs/components/ReactionDialog/ReactionView.js +4 -5
- package/dist/cjs/components/ReactionDialog/ReactionsDialog.js +10 -11
- package/dist/cjs/components/ReactionDialog/ReactionsList.js +2 -3
- package/dist/cjs/components/ReactionDialog/styles.js +21 -30
- package/dist/cjs/components/ReactionPicker/ReactionPicker.js +20 -23
- package/dist/cjs/components/ReactionPicker/RepositionOnUpdate.js +2 -3
- package/dist/cjs/components/ReactionPicker/styles.js +7 -11
- package/dist/cjs/components/ReactionTooltip/ReactionTooltip.js +12 -16
- package/dist/cjs/components/ReactionTooltip/styles.js +6 -11
- package/dist/cjs/components/Reactions/Reactions.js +26 -30
- package/dist/cjs/components/Reactions/styles.js +9 -12
- package/dist/cjs/components/Selector/Selector.js +10 -12
- package/dist/cjs/components/Selector/index.js +1 -7
- package/dist/cjs/components/Selector/styles.js +6 -11
- package/dist/cjs/components/ShowMore/ShowMore.js +11 -17
- package/dist/cjs/components/ShowMore/styles.js +7 -10
- package/dist/cjs/components/Trigger/Trigger.js +6 -12
- package/dist/cjs/components/Trigger/styles.js +6 -8
- package/dist/cjs/components/UfoErrorBoundary/UfoErrorBoundary.js +2 -3
- package/dist/cjs/containers/ConnectedReactionPicker/ConnectedReactionPicker.js +4 -5
- package/dist/cjs/containers/ConnectedReactionsView/ConnectedReactionsView.js +5 -8
- package/dist/cjs/containers/index.js +13 -21
- package/dist/cjs/hooks/useFocusTrap.js +2 -3
- package/dist/cjs/i18n/cs.js +2 -3
- package/dist/cjs/i18n/da.js +2 -3
- package/dist/cjs/i18n/de.js +2 -3
- package/dist/cjs/i18n/en.js +2 -3
- package/dist/cjs/i18n/en_GB.js +2 -3
- package/dist/cjs/i18n/en_ZZ.js +2 -3
- package/dist/cjs/i18n/es.js +2 -3
- package/dist/cjs/i18n/et.js +2 -3
- package/dist/cjs/i18n/fi.js +2 -3
- package/dist/cjs/i18n/fr.js +2 -3
- package/dist/cjs/i18n/hu.js +2 -3
- package/dist/cjs/i18n/is.js +2 -3
- package/dist/cjs/i18n/it.js +2 -3
- package/dist/cjs/i18n/ja.js +2 -3
- package/dist/cjs/i18n/ko.js +2 -3
- package/dist/cjs/i18n/languages.js +2 -3
- package/dist/cjs/i18n/nb.js +2 -3
- package/dist/cjs/i18n/nl.js +2 -3
- package/dist/cjs/i18n/pl.js +2 -3
- package/dist/cjs/i18n/pt_BR.js +2 -3
- package/dist/cjs/i18n/pt_PT.js +2 -3
- package/dist/cjs/i18n/ro.js +2 -3
- package/dist/cjs/i18n/ru.js +2 -3
- package/dist/cjs/i18n/sk.js +2 -3
- package/dist/cjs/i18n/sv.js +2 -3
- package/dist/cjs/i18n/th.js +2 -3
- package/dist/cjs/i18n/tr.js +2 -3
- package/dist/cjs/i18n/uk.js +2 -3
- package/dist/cjs/i18n/vi.js +2 -3
- package/dist/cjs/i18n/zh.js +2 -3
- package/dist/cjs/i18n/zh_TW.js +2 -3
- package/dist/cjs/index.js +28 -15
- package/dist/cjs/shared/constants.js +7 -14
- package/dist/cjs/shared/i18n.js +2 -3
- package/dist/cjs/shared/utils.js +5 -9
- package/dist/cjs/store/MemoryReactionsStore.js +31 -37
- package/dist/cjs/store/ReactionConsumer.js +2 -3
- package/dist/cjs/store/utils.js +9 -16
- package/dist/cjs/types/reaction.js +2 -3
- package/dist/cjs/ufo/index.js +92 -0
- package/dist/es2019/MockReactionsClient.js +2 -2
- package/dist/es2019/analytics/index.js +95 -4
- package/dist/es2019/components/Counter/Counter.js +6 -6
- package/dist/es2019/components/Counter/index.js +1 -3
- package/dist/es2019/components/Counter/styles.js +1 -1
- package/dist/es2019/components/EmojiButton/EmojiButton.js +6 -5
- package/dist/es2019/components/EmojiButton/styles.js +1 -1
- package/dist/es2019/components/FlashAnimation/FlashAnimation.js +2 -2
- package/dist/es2019/components/Reaction/Reaction.js +13 -12
- package/dist/es2019/components/Reaction/styles.js +2 -2
- package/dist/es2019/components/ReactionDialog/ReactionView.js +2 -2
- package/dist/es2019/components/ReactionDialog/ReactionsDialog.js +5 -4
- package/dist/es2019/components/ReactionDialog/styles.js +10 -9
- package/dist/es2019/components/ReactionPicker/ReactionPicker.js +13 -13
- package/dist/es2019/components/ReactionPicker/styles.js +2 -2
- package/dist/es2019/components/ReactionTooltip/ReactionTooltip.js +9 -8
- package/dist/es2019/components/Reactions/Reactions.js +21 -21
- package/dist/es2019/components/Reactions/styles.js +5 -5
- package/dist/es2019/components/Selector/Selector.js +7 -7
- package/dist/es2019/components/Selector/index.js +1 -3
- package/dist/es2019/components/ShowMore/ShowMore.js +7 -7
- package/dist/es2019/components/ShowMore/styles.js +3 -3
- package/dist/es2019/components/Trigger/Trigger.js +2 -2
- package/dist/es2019/components/Trigger/styles.js +1 -1
- package/dist/es2019/containers/ConnectedReactionPicker/ConnectedReactionPicker.js +2 -2
- package/dist/es2019/containers/index.js +2 -2
- package/dist/es2019/index.js +27 -5
- package/dist/es2019/store/MemoryReactionsStore.js +21 -23
- package/dist/esm/MockReactionsClient.js +4 -4
- package/dist/esm/analytics/index.js +127 -4
- package/dist/esm/client/ReactionServiceClient.js +2 -2
- package/dist/esm/components/Counter/Counter.js +6 -6
- package/dist/esm/components/Counter/index.js +1 -3
- package/dist/esm/components/Counter/styles.js +1 -1
- package/dist/esm/components/EmojiButton/EmojiButton.js +6 -5
- package/dist/esm/components/EmojiButton/styles.js +1 -1
- package/dist/esm/components/FlashAnimation/FlashAnimation.js +2 -2
- package/dist/esm/components/Reaction/Reaction.js +13 -12
- package/dist/esm/components/Reaction/styles.js +2 -2
- package/dist/esm/components/ReactionDialog/ReactionView.js +2 -2
- package/dist/esm/components/ReactionDialog/ReactionsDialog.js +7 -6
- package/dist/esm/components/ReactionDialog/styles.js +10 -9
- package/dist/esm/components/ReactionPicker/ReactionPicker.js +16 -16
- package/dist/esm/components/ReactionPicker/styles.js +2 -2
- package/dist/esm/components/ReactionTooltip/ReactionTooltip.js +9 -8
- package/dist/esm/components/Reactions/Reactions.js +21 -21
- package/dist/esm/components/Reactions/styles.js +5 -5
- package/dist/esm/components/Selector/Selector.js +7 -7
- package/dist/esm/components/Selector/index.js +1 -3
- package/dist/esm/components/ShowMore/ShowMore.js +7 -7
- package/dist/esm/components/ShowMore/styles.js +3 -3
- package/dist/esm/components/Trigger/Trigger.js +2 -2
- package/dist/esm/components/Trigger/styles.js +3 -3
- package/dist/esm/containers/ConnectedReactionPicker/ConnectedReactionPicker.js +2 -2
- package/dist/esm/containers/ConnectedReactionsView/ConnectedReactionsView.js +1 -1
- package/dist/esm/containers/index.js +2 -2
- package/dist/esm/index.js +27 -5
- package/dist/esm/store/MemoryReactionsStore.js +23 -25
- package/dist/esm/store/utils.js +2 -2
- package/dist/types/analytics/index.d.ts +121 -2
- package/dist/types/components/Counter/index.d.ts +0 -1
- package/dist/types/components/ReactionPicker/ReactionPicker.d.ts +1 -1
- package/dist/types/components/Reactions/styles.d.ts +1 -1
- package/dist/types/components/Selector/Selector.d.ts +1 -1
- package/dist/types/components/Selector/index.d.ts +0 -1
- package/dist/types/containers/index.d.ts +2 -2
- package/dist/types/index.d.ts +24 -3
- package/dist/types/store/MemoryReactionsStore.d.ts +6 -6
- package/dist/types-ts4.5/analytics/index.d.ts +121 -2
- package/dist/types-ts4.5/components/Counter/index.d.ts +0 -1
- package/dist/types-ts4.5/components/ReactionPicker/ReactionPicker.d.ts +1 -1
- package/dist/types-ts4.5/components/Reactions/styles.d.ts +1 -1
- package/dist/types-ts4.5/components/Selector/Selector.d.ts +1 -1
- package/dist/types-ts4.5/components/Selector/index.d.ts +0 -1
- package/dist/types-ts4.5/containers/index.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +24 -3
- package/dist/types-ts4.5/store/MemoryReactionsStore.d.ts +6 -6
- package/package.json +9 -10
- package/report.api.md +494 -0
- package/tmp/api-report-tmp.d.ts +398 -0
- package/dist/cjs/analytics/analytics.js +0 -149
- package/dist/cjs/analytics/ufo.js +0 -103
- package/dist/cjs/hooks/index.js +0 -12
- package/dist/cjs/shared/index.js +0 -15
- package/dist/es2019/analytics/analytics.js +0 -95
- package/dist/es2019/hooks/index.js +0 -1
- package/dist/es2019/shared/index.js +0 -6
- package/dist/esm/analytics/analytics.js +0 -127
- package/dist/esm/hooks/index.js +0 -1
- package/dist/esm/shared/index.js +0 -6
- package/dist/types/analytics/analytics.d.ts +0 -121
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/shared/index.d.ts +0 -3
- package/dist/types-ts4.5/analytics/analytics.d.ts +0 -121
- package/dist/types-ts4.5/hooks/index.d.ts +0 -1
- package/dist/types-ts4.5/shared/index.d.ts +0 -3
- /package/dist/es2019/{analytics/ufo.js → ufo/index.js} +0 -0
- /package/dist/esm/{analytics/ufo.js → ufo/index.js} +0 -0
- /package/dist/types/{analytics/ufo.d.ts → ufo/index.d.ts} +0 -0
- /package/dist/types-ts4.5/{analytics/ufo.d.ts → ufo/index.d.ts} +0 -0
|
@@ -1,2 +1,121 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import { EventType } from '@atlaskit/analytics-gas-types';
|
|
3
|
+
import { ReactionSummary, ReactionSource } from '../types';
|
|
4
|
+
export type PreviousState = 'new' | 'existingNotReacted' | 'existingReacted';
|
|
5
|
+
/**
|
|
6
|
+
* TODO: move to utility package?
|
|
7
|
+
* A random sampling function
|
|
8
|
+
* sampling algorithm is from @atlassian/jira-coinflip at https://stash.atlassian.com/projects/JIRACLOUD/repos/jira-frontend/browse/src/packages/platform/app-framework/coinflip/src/index.tsx
|
|
9
|
+
* E.g. isSampled(2) will pass 50% of the time
|
|
10
|
+
* @param rate The chance that it will pass (1 in <rate> times)
|
|
11
|
+
* @returns bool, if it passes or not
|
|
12
|
+
*/
|
|
13
|
+
export declare const isSampled: (rate: number) => boolean;
|
|
14
|
+
export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
|
|
15
|
+
export declare const createAndFireSafe: <U extends any[], T extends (...args: U) => AnalyticsEventPayload>(createAnalyticsEvent: CreateUIAnalyticsEvent | void, creator: T, ...args: U) => void;
|
|
16
|
+
export declare const createRestSucceededEvent: (actionSubject: string) => {
|
|
17
|
+
action: string;
|
|
18
|
+
actionSubject: string;
|
|
19
|
+
eventType: EventType;
|
|
20
|
+
actionSubjectId: string | undefined;
|
|
21
|
+
attributes: {
|
|
22
|
+
packageName: string;
|
|
23
|
+
packageVersion: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const createRestFailedEvent: (actionSubject: string, errorCode?: number) => {
|
|
27
|
+
action: string;
|
|
28
|
+
actionSubject: string;
|
|
29
|
+
eventType: EventType;
|
|
30
|
+
actionSubjectId: string | undefined;
|
|
31
|
+
attributes: {
|
|
32
|
+
packageName: string;
|
|
33
|
+
packageVersion: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const createReactionsRenderedEvent: (startTime: number) => {
|
|
37
|
+
action: string;
|
|
38
|
+
actionSubject: string;
|
|
39
|
+
eventType: EventType;
|
|
40
|
+
actionSubjectId: string | undefined;
|
|
41
|
+
attributes: {
|
|
42
|
+
packageName: string;
|
|
43
|
+
packageVersion: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const createPickerButtonClickedEvent: (reactionEmojiCount: number) => {
|
|
47
|
+
action: string;
|
|
48
|
+
actionSubject: string;
|
|
49
|
+
eventType: EventType;
|
|
50
|
+
actionSubjectId: string | undefined;
|
|
51
|
+
attributes: {
|
|
52
|
+
packageName: string;
|
|
53
|
+
packageVersion: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const createPickerCancelledEvent: (startTime?: number) => {
|
|
57
|
+
action: string;
|
|
58
|
+
actionSubject: string;
|
|
59
|
+
eventType: EventType;
|
|
60
|
+
actionSubjectId: string | undefined;
|
|
61
|
+
attributes: {
|
|
62
|
+
packageName: string;
|
|
63
|
+
packageVersion: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare const createPickerMoreClickedEvent: (startTime?: number) => {
|
|
67
|
+
action: string;
|
|
68
|
+
actionSubject: string;
|
|
69
|
+
eventType: EventType;
|
|
70
|
+
actionSubjectId: string | undefined;
|
|
71
|
+
attributes: {
|
|
72
|
+
packageName: string;
|
|
73
|
+
packageVersion: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export declare const createReactionSelectionEvent: (source: ReactionSource, emojiId: string, reaction?: ReactionSummary, startTime?: number) => {
|
|
77
|
+
action: string;
|
|
78
|
+
actionSubject: string;
|
|
79
|
+
eventType: EventType;
|
|
80
|
+
actionSubjectId: string | undefined;
|
|
81
|
+
attributes: {
|
|
82
|
+
packageName: string;
|
|
83
|
+
packageVersion: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export declare const createReactionHoveredEvent: (startTime?: number) => {
|
|
87
|
+
action: string;
|
|
88
|
+
actionSubject: string;
|
|
89
|
+
eventType: EventType;
|
|
90
|
+
actionSubjectId: string | undefined;
|
|
91
|
+
attributes: {
|
|
92
|
+
packageName: string;
|
|
93
|
+
packageVersion: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export declare const createReactionFocusedEvent: (startTime?: number) => {
|
|
97
|
+
action: string;
|
|
98
|
+
actionSubject: string;
|
|
99
|
+
eventType: EventType;
|
|
100
|
+
actionSubjectId: string | undefined;
|
|
101
|
+
attributes: {
|
|
102
|
+
packageName: string;
|
|
103
|
+
packageVersion: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export declare const createReactionClickedEvent: (added: boolean, emojiId: string) => {
|
|
107
|
+
action: string;
|
|
108
|
+
actionSubject: string;
|
|
109
|
+
eventType: EventType;
|
|
110
|
+
actionSubjectId: string | undefined;
|
|
111
|
+
attributes: {
|
|
112
|
+
packageName: string;
|
|
113
|
+
packageVersion: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Used for store failure metadata for analytics
|
|
118
|
+
* @param error The error could be a service error with {code, reason} or an Error
|
|
119
|
+
* @returns any
|
|
120
|
+
*/
|
|
121
|
+
export declare const extractErrorInfo: (error: any) => any;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PickerSize } from '@atlaskit/emoji/types';
|
|
4
4
|
import { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
5
|
+
import { ReactionSource } from '../../types';
|
|
5
6
|
import { SelectorProps } from '../Selector';
|
|
6
7
|
import { TriggerProps } from '../Trigger';
|
|
7
|
-
import { ReactionSource } from '../../types';
|
|
8
8
|
/**
|
|
9
9
|
* Test id for wrapper ReactionPicker div
|
|
10
10
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const reactionPickerStyle: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const seeWhoReactedStyle: import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -24,7 +24,7 @@ export interface SelectorProps {
|
|
|
24
24
|
*/
|
|
25
25
|
onMoreClick?: React.MouseEventHandler<HTMLElement>;
|
|
26
26
|
/**
|
|
27
|
-
* Optional emojis shown for user to select from when the reaction add button is clicked (defaults to pre-defined list of emojis {@link
|
|
27
|
+
* Optional emojis shown for user to select from when the reaction add button is clicked (defaults to pre-defined list of emojis {@link DefaultReactions})
|
|
28
28
|
*/
|
|
29
29
|
pickerQuickReactionEmojiIds?: EmojiId[];
|
|
30
30
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { ConnectedReactionPicker, type ConnectedReactionPickerProps, } from './ConnectedReactionPicker';
|
|
2
|
+
export { ConnectedReactionsView, type ConnectedReactionsViewProps, } from './ConnectedReactionsView';
|
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentName, ExperienceName } from './ufo';
|
|
2
2
|
export { ReactionServiceClient } from './client';
|
|
3
|
-
export type { Client as ReactionClient, Request as ReactionRequest, Store as ReactionsStore, StorePropInput, State, onDialogSelectReactionChange, } from './types';
|
|
4
|
-
export { constants } from './shared';
|
|
5
3
|
export { Reaction, ReactionPicker, Reactions } from './components';
|
|
6
4
|
export { ConnectedReactionPicker, ConnectedReactionsView } from './containers';
|
|
7
5
|
export { MemoryReactionsStore, ReactionConsumer } from './store';
|
|
6
|
+
export type { Client as ReactionClient, Request as ReactionRequest, Store as ReactionsStore, StorePropInput, State, onDialogSelectReactionChange, } from './types';
|
|
7
|
+
export declare const constants: {
|
|
8
|
+
DefaultReactions: import("@atlaskit/emoji").EmojiId[];
|
|
9
|
+
DefaultReactionsByShortName: Map<string, import("@atlaskit/emoji").EmojiId>;
|
|
10
|
+
ExtendedReactions: import("@atlaskit/emoji").EmojiId[];
|
|
11
|
+
ExtendedReactionsByShortName: Map<string, import("@atlaskit/emoji").EmojiId>;
|
|
12
|
+
NUMBER_OF_REACTIONS_TO_DISPLAY: number;
|
|
13
|
+
SAMPLING_RATE_REACTIONS_RENDERED_EXP: number;
|
|
14
|
+
TOOLTIP_USERS_LIMIT: number;
|
|
15
|
+
};
|
|
16
|
+
export declare const UFO: {
|
|
17
|
+
ComponentName: typeof ComponentName;
|
|
18
|
+
ExperienceName: typeof ExperienceName;
|
|
19
|
+
PickerRender: import("@atlaskit/ufo").UFOExperience;
|
|
20
|
+
ReactionsAdd: import("@atlaskit/ufo").ConcurrentExperience;
|
|
21
|
+
ReactionDetailsFetch: import("@atlaskit/ufo").ConcurrentExperience;
|
|
22
|
+
ReactionDialogClosed: import("@atlaskit/ufo").UFOExperience;
|
|
23
|
+
ReactionDialogOpened: import("@atlaskit/ufo").UFOExperience;
|
|
24
|
+
ReactionDialogSelectedReactionChanged: import("@atlaskit/ufo").UFOExperience;
|
|
25
|
+
ReactionsRemove: import("@atlaskit/ufo").ConcurrentExperience;
|
|
26
|
+
ReactionsRendered: import("@atlaskit/ufo").ConcurrentExperience;
|
|
27
|
+
sampledReactionsRendered: (instanceId: string) => import("@atlaskit/emoji").WithSamplingUFOExperience;
|
|
28
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import
|
|
2
|
+
import { type Client, type OnChangeCallback, type State, type Store } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Set of all available UFO experiences relating to reaction element
|
|
5
5
|
*/
|
|
@@ -28,7 +28,7 @@ interface StoreMetadata {
|
|
|
28
28
|
subproduct?: string;
|
|
29
29
|
[k: string]: any;
|
|
30
30
|
}
|
|
31
|
-
export declare class MemoryReactionsStore implements
|
|
31
|
+
export declare class MemoryReactionsStore implements Store {
|
|
32
32
|
private client;
|
|
33
33
|
private state;
|
|
34
34
|
private metadata;
|
|
@@ -38,7 +38,7 @@ export declare class MemoryReactionsStore implements Types.Store {
|
|
|
38
38
|
* default initial store data
|
|
39
39
|
*/
|
|
40
40
|
private initialState;
|
|
41
|
-
constructor(client:
|
|
41
|
+
constructor(client: Client, state?: State, metadata?: StoreMetadata);
|
|
42
42
|
/**
|
|
43
43
|
* Update the store state data with a new data
|
|
44
44
|
* @param newState new store data
|
|
@@ -87,8 +87,8 @@ export declare class MemoryReactionsStore implements Types.Store {
|
|
|
87
87
|
toggleReaction: (containerAri: string, ari: string, emojiId: string) => void;
|
|
88
88
|
addReaction: (containerAri: string, ari: string, emojiId: string) => void;
|
|
89
89
|
getDetailedReaction: (containerAri: string, ari: string, emojiId: string) => void;
|
|
90
|
-
getState: () =>
|
|
91
|
-
onChange: (callback:
|
|
92
|
-
removeOnChangeListener: (toRemove:
|
|
90
|
+
getState: () => State;
|
|
91
|
+
onChange: (callback: OnChangeCallback) => void;
|
|
92
|
+
removeOnChangeListener: (toRemove: OnChangeCallback) => void;
|
|
93
93
|
}
|
|
94
94
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "22.5.
|
|
3
|
+
"version": "22.5.4",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
36
36
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
38
|
-
"@atlaskit/avatar": "^21.
|
|
39
|
-
"@atlaskit/button": "^16.
|
|
40
|
-
"@atlaskit/emoji": "^67.
|
|
38
|
+
"@atlaskit/avatar": "^21.4.0",
|
|
39
|
+
"@atlaskit/button": "^16.12.0",
|
|
40
|
+
"@atlaskit/emoji": "^67.5.0",
|
|
41
41
|
"@atlaskit/icon": "^21.12.0",
|
|
42
|
-
"@atlaskit/modal-dialog": "^12.
|
|
43
|
-
"@atlaskit/motion": "^1.
|
|
42
|
+
"@atlaskit/modal-dialog": "^12.8.0",
|
|
43
|
+
"@atlaskit/motion": "^1.5.0",
|
|
44
44
|
"@atlaskit/popper": "^5.5.0",
|
|
45
|
-
"@atlaskit/spinner": "^15.
|
|
45
|
+
"@atlaskit/spinner": "^15.6.0",
|
|
46
46
|
"@atlaskit/tabs": "^13.4.0",
|
|
47
|
-
"@atlaskit/theme": "^12.
|
|
48
|
-
"@atlaskit/tokens": "^1.
|
|
47
|
+
"@atlaskit/theme": "^12.6.0",
|
|
48
|
+
"@atlaskit/tokens": "^1.28.0",
|
|
49
49
|
"@atlaskit/tooltip": "^17.8.0",
|
|
50
50
|
"@atlaskit/ufo": "^0.2.0",
|
|
51
51
|
"@atlaskit/util-service-support": "^6.2.0",
|
|
@@ -60,7 +60,6 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
63
|
-
"@atlaskit/tooltip": "^17.8.0",
|
|
64
63
|
"@atlaskit/util-data-test": "^17.8.0",
|
|
65
64
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
66
65
|
"@emotion/jest": "^11.8.0",
|