@atlaskit/reactions 22.5.7 → 22.5.8
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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.confluence.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"composite": true,
|
|
7
|
+
"outDir": "../dist",
|
|
8
|
+
"rootDir": "../",
|
|
9
|
+
"baseUrl": "../"
|
|
10
|
+
},
|
|
11
|
+
"include": [
|
|
12
|
+
"../src/**/*.ts",
|
|
13
|
+
"../src/**/*.tsx"
|
|
14
|
+
],
|
|
15
|
+
"exclude": [
|
|
16
|
+
"../src/**/__tests__/*",
|
|
17
|
+
"../src/**/*.test.*",
|
|
18
|
+
"../src/**/test.*"
|
|
19
|
+
],
|
|
20
|
+
"references": [
|
|
21
|
+
{
|
|
22
|
+
"path": "../../../analytics/analytics-gas-types/afm-cc/tsconfig.json"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"path": "../../../analytics/analytics-namespaced-context/afm-cc/tsconfig.json"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"path": "../../../analytics/analytics-next/afm-cc/tsconfig.json"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"path": "../../../design-system/avatar/afm-cc/tsconfig.json"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "../../../design-system/button/afm-cc/tsconfig.json"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"path": "../../emoji/afm-cc/tsconfig.json"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"path": "../../../design-system/icon/afm-cc/tsconfig.json"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"path": "../../../design-system/modal-dialog/afm-cc/tsconfig.json"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"path": "../../../design-system/motion/afm-cc/tsconfig.json"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"path": "../../../design-system/popper/afm-cc/tsconfig.json"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"path": "../../../design-system/spinner/afm-cc/tsconfig.json"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"path": "../../../design-system/tabs/afm-cc/tsconfig.json"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"path": "../../../design-system/theme/afm-cc/tsconfig.json"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"path": "../../../design-system/tokens/afm-cc/tsconfig.json"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"path": "../../../design-system/tooltip/afm-cc/tsconfig.json"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"path": "../../../data/ufo-external/afm-cc/tsconfig.json"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"path": "../../util-service-support/afm-cc/tsconfig.json"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
@@ -11,7 +11,7 @@ var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
|
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
var packageName = "@atlaskit/reactions";
|
|
14
|
-
var packageVersion = "22.5.
|
|
14
|
+
var packageVersion = "22.5.8";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
3
3
|
const packageName = "@atlaskit/reactions";
|
|
4
|
-
const packageVersion = "22.5.
|
|
4
|
+
const packageVersion = "22.5.8";
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
7
7
|
* A random sampling function
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
5
5
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
6
6
|
var packageName = "@atlaskit/reactions";
|
|
7
|
-
var packageVersion = "22.5.
|
|
7
|
+
var packageVersion = "22.5.8";
|
|
8
8
|
/**
|
|
9
9
|
* TODO: move to utility package?
|
|
10
10
|
* A random sampling function
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "22.5.
|
|
3
|
+
"version": "22.5.8",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
38
38
|
"@atlaskit/avatar": "^21.4.0",
|
|
39
|
-
"@atlaskit/button": "^
|
|
39
|
+
"@atlaskit/button": "^17.0.0",
|
|
40
40
|
"@atlaskit/emoji": "^67.6.0",
|
|
41
41
|
"@atlaskit/icon": "^22.0.0",
|
|
42
|
-
"@atlaskit/modal-dialog": "^12.
|
|
42
|
+
"@atlaskit/modal-dialog": "^12.10.0",
|
|
43
43
|
"@atlaskit/motion": "^1.5.0",
|
|
44
44
|
"@atlaskit/popper": "^5.5.0",
|
|
45
45
|
"@atlaskit/spinner": "^16.0.0",
|
|
46
46
|
"@atlaskit/tabs": "^14.0.0",
|
|
47
47
|
"@atlaskit/theme": "^12.6.0",
|
|
48
|
-
"@atlaskit/tokens": "^1.
|
|
48
|
+
"@atlaskit/tokens": "^1.30.0",
|
|
49
49
|
"@atlaskit/tooltip": "^18.0.0",
|
|
50
50
|
"@atlaskit/ufo": "^0.2.0",
|
|
51
51
|
"@atlaskit/util-service-support": "^6.2.0",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,398 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/reactions"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
|
-
import { AnalyticsEvent } from '@atlaskit/analytics-next';
|
|
10
|
-
import { AriaAttributes } from 'react';
|
|
11
|
-
import { ConcurrentExperience } from '@atlaskit/ufo';
|
|
12
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
13
|
-
import { EmojiId } from '@atlaskit/emoji/types';
|
|
14
|
-
import { EmojiId as EmojiId_2 } from '@atlaskit/emoji';
|
|
15
|
-
import { EmojiProvider } from '@atlaskit/emoji';
|
|
16
|
-
import { EmojiProvider as EmojiProvider_2 } from '@atlaskit/emoji/resource';
|
|
17
|
-
import { OnCloseHandler } from '@atlaskit/modal-dialog';
|
|
18
|
-
import { OnEmojiEvent } from '@atlaskit/emoji/types';
|
|
19
|
-
import { PickerSize } from '@atlaskit/emoji/types';
|
|
20
|
-
import { default as React_2 } from 'react';
|
|
21
|
-
import { UFOExperience } from '@atlaskit/ufo';
|
|
22
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
23
|
-
import { WithSamplingUFOExperience } from '@atlaskit/emoji';
|
|
24
|
-
|
|
25
|
-
// @public (undocumented)
|
|
26
|
-
type Actions = {
|
|
27
|
-
getReactions: (containerId: string, aris: string) => void;
|
|
28
|
-
toggleReaction: ReactionAction;
|
|
29
|
-
addReaction: ReactionAction;
|
|
30
|
-
getDetailedReaction: ReactionAction;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
// @public
|
|
34
|
-
enum ComponentName {
|
|
35
|
-
// (undocumented)
|
|
36
|
-
PICKER_RENDERED = "reactions-picker",
|
|
37
|
-
// (undocumented)
|
|
38
|
-
REACTION_DIALOG = "reaction-dialog",
|
|
39
|
-
// (undocumented)
|
|
40
|
-
REACTION_ITEM = "reaction-item",
|
|
41
|
-
// (undocumented)
|
|
42
|
-
REACTIONS = "reactions-list"
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// @public
|
|
46
|
-
export const ConnectedReactionPicker: React_2.FC<ConnectedReactionPickerProps>;
|
|
47
|
-
|
|
48
|
-
// @public (undocumented)
|
|
49
|
-
interface ConnectedReactionPickerProps extends Omit<ReactionPickerProps, 'onSelection'> {
|
|
50
|
-
ari: string;
|
|
51
|
-
containerAri: string;
|
|
52
|
-
store: StorePropInput;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// @public (undocumented)
|
|
56
|
-
export const ConnectedReactionsView: React_2.FC<ConnectedReactionsViewProps>;
|
|
57
|
-
|
|
58
|
-
// @public (undocumented)
|
|
59
|
-
interface ConnectedReactionsViewProps extends Pick<ReactionsProps, 'allowAllEmojis' | 'allowUserDialog' | 'emojiPickerSize' | 'emojiProvider' | 'miniMode' | 'onDialogCloseCallback' | 'onDialogOpenCallback' | 'onDialogSelectReactionCallback' | 'quickReactionEmojis'>, Pick<ReactionPickerProps, 'pickerQuickReactionEmojiIds'> {
|
|
60
|
-
ari: string;
|
|
61
|
-
containerAri: string;
|
|
62
|
-
store: StorePropInput;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// @public (undocumented)
|
|
66
|
-
export const constants: {
|
|
67
|
-
DefaultReactions: EmojiId_2[];
|
|
68
|
-
DefaultReactionsByShortName: Map<string, EmojiId_2>;
|
|
69
|
-
ExtendedReactions: EmojiId_2[];
|
|
70
|
-
ExtendedReactionsByShortName: Map<string, EmojiId_2>;
|
|
71
|
-
NUMBER_OF_REACTIONS_TO_DISPLAY: number;
|
|
72
|
-
SAMPLING_RATE_REACTIONS_RENDERED_EXP: number;
|
|
73
|
-
TOOLTIP_USERS_LIMIT: number;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
// @public
|
|
77
|
-
enum ExperienceName {
|
|
78
|
-
// (undocumented)
|
|
79
|
-
PICKER_OPENED = "reactions-picker-opened",
|
|
80
|
-
// (undocumented)
|
|
81
|
-
REACTION_ADDED = "reaction-added",
|
|
82
|
-
// (undocumented)
|
|
83
|
-
REACTION_DETAILS_FETCHED = "reaction-details-fetched",
|
|
84
|
-
// (undocumented)
|
|
85
|
-
REACTION_DIALOG_CLOSED = "reaction-dialog-closed",
|
|
86
|
-
// (undocumented)
|
|
87
|
-
REACTION_DIALOG_OPENED = "reaction-dialog-opened",
|
|
88
|
-
// (undocumented)
|
|
89
|
-
REACTION_DIALOG_SELECTED_REACTION_CHANGED = "reaction-dialog-selected-reaction-changed",
|
|
90
|
-
// (undocumented)
|
|
91
|
-
REACTION_REMOVED = "reaction-removed",
|
|
92
|
-
// (undocumented)
|
|
93
|
-
REACTIONS_RENDERED = "reactions-rendered"
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// @public (undocumented)
|
|
97
|
-
export class MemoryReactionsStore implements ReactionsStore {
|
|
98
|
-
constructor(client: ReactionClient, state?: State, metadata?: StoreMetadata);
|
|
99
|
-
// (undocumented)
|
|
100
|
-
addReaction: (containerAri: string, ari: string, emojiId: string) => void;
|
|
101
|
-
// (undocumented)
|
|
102
|
-
getDetailedReaction: (containerAri: string, ari: string, emojiId: string) => void;
|
|
103
|
-
// (undocumented)
|
|
104
|
-
getReactions: (key: string, ...args: string[]) => void;
|
|
105
|
-
// (undocumented)
|
|
106
|
-
getState: () => State;
|
|
107
|
-
// (undocumented)
|
|
108
|
-
onChange: (callback: OnChangeCallback) => void;
|
|
109
|
-
// (undocumented)
|
|
110
|
-
removeOnChangeListener: (toRemove: OnChangeCallback) => void;
|
|
111
|
-
// (undocumented)
|
|
112
|
-
setCreateAnalyticsEvent: (createAnalyticsEvent?: CreateUIAnalyticsEvent) => void;
|
|
113
|
-
// (undocumented)
|
|
114
|
-
toggleReaction: (containerAri: string, ari: string, emojiId: string) => void;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// @public
|
|
118
|
-
type OnChangeCallback = (state: State) => void;
|
|
119
|
-
|
|
120
|
-
// @public
|
|
121
|
-
export type onDialogSelectReactionChange = (emojiId: string, analyticsEvent: UIAnalyticsEvent) => void;
|
|
122
|
-
|
|
123
|
-
// @public
|
|
124
|
-
type ProfilePicture = {
|
|
125
|
-
path: string;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
// @public
|
|
129
|
-
interface QuickReactionEmojiSummary {
|
|
130
|
-
ari: string;
|
|
131
|
-
containerAri: string;
|
|
132
|
-
emojiIds: string[];
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// @public
|
|
136
|
-
type ReactioConsumerProps<PropsFromState, PropsFromActions> = {
|
|
137
|
-
mapStateToProps?: (state: State) => PropsFromState;
|
|
138
|
-
mapActionsToProps?: (actions: Actions) => PropsFromActions;
|
|
139
|
-
children: (props: PropsFromState & PropsFromActions) => React_2.ReactNode;
|
|
140
|
-
store: StorePropInput;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
// @public
|
|
144
|
-
export const Reaction: React_2.FC<ReactionProps>;
|
|
145
|
-
|
|
146
|
-
// @public
|
|
147
|
-
type ReactionAction = (containerAri: string, ari: string, emojiId: string) => void;
|
|
148
|
-
|
|
149
|
-
// @public
|
|
150
|
-
type ReactionClick = (id: string, event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
151
|
-
|
|
152
|
-
// @public (undocumented)
|
|
153
|
-
export interface ReactionClient {
|
|
154
|
-
addReaction: ReactionRequest<ReactionSummary[]>;
|
|
155
|
-
deleteReaction: ReactionRequest<ReactionSummary[]>;
|
|
156
|
-
getDetailedReaction: ReactionRequest<ReactionSummary>;
|
|
157
|
-
getReactions(containerAri: string, aris: string[]): Promise<Reactions_2>;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
// @public @deprecated
|
|
161
|
-
export class ReactionConsumer<PropsFromState, PropsFromActions> extends React_2.PureComponent<ReactioConsumerProps<PropsFromState, PropsFromActions>, ReactionConsumerState> {
|
|
162
|
-
constructor(props: ReactioConsumerProps<PropsFromState, PropsFromActions>);
|
|
163
|
-
// (undocumented)
|
|
164
|
-
componentDidMount(): void;
|
|
165
|
-
// (undocumented)
|
|
166
|
-
componentWillUnmount(): Promise<void>;
|
|
167
|
-
// (undocumented)
|
|
168
|
-
render(): React_2.ReactNode;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
// @public
|
|
172
|
-
type ReactionConsumerState = {
|
|
173
|
-
store?: ReactionsStore;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
// @public
|
|
177
|
-
type ReactionFocused = (emojiId: string, event?: React.FocusEvent<any>) => void;
|
|
178
|
-
|
|
179
|
-
// @public
|
|
180
|
-
type ReactionMouseEnter = (emojiId: string, event?: React.MouseEvent<any>) => void;
|
|
181
|
-
|
|
182
|
-
// @public
|
|
183
|
-
export const ReactionPicker: React_2.FC<ReactionPickerProps>;
|
|
184
|
-
|
|
185
|
-
// @public (undocumented)
|
|
186
|
-
interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickReactionEmojiIds'>, Partial<Pick<TriggerProps, 'miniMode' | 'tooltipContent'>> {
|
|
187
|
-
allowAllEmojis?: boolean;
|
|
188
|
-
className?: string;
|
|
189
|
-
disabled?: boolean;
|
|
190
|
-
emojiPickerSize?: PickerSize;
|
|
191
|
-
emojiProvider: Promise<EmojiProvider_2>;
|
|
192
|
-
onCancel?: () => void;
|
|
193
|
-
onOpen?: () => void;
|
|
194
|
-
onSelection: (emojiId: string, source: ReactionSource) => void;
|
|
195
|
-
onShowMore?: () => void;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// @public (undocumented)
|
|
199
|
-
interface ReactionProps extends Pick<ReactionTooltipProps, 'allowUserDialog'> {
|
|
200
|
-
className?: string;
|
|
201
|
-
emojiProvider: Promise<EmojiProvider>;
|
|
202
|
-
flash?: boolean;
|
|
203
|
-
handleUserListClick?: (emojiId: string) => void;
|
|
204
|
-
onClick: ReactionClick;
|
|
205
|
-
onFocused?: ReactionFocused;
|
|
206
|
-
onMouseEnter?: ReactionMouseEnter;
|
|
207
|
-
reaction: ReactionSummary;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
// @public (undocumented)
|
|
211
|
-
export type ReactionRequest<T> = (
|
|
212
|
-
ari: string,
|
|
213
|
-
containerAri: string,
|
|
214
|
-
emojiId: string,
|
|
215
|
-
metadata?: Record<string, any>) => Promise<T>;
|
|
216
|
-
|
|
217
|
-
// @public
|
|
218
|
-
export const Reactions: React_2.FC<ReactionsProps>;
|
|
219
|
-
|
|
220
|
-
// @public
|
|
221
|
-
type Reactions_2 = Record<string, ReactionSummary[]>;
|
|
222
|
-
|
|
223
|
-
// @public (undocumented)
|
|
224
|
-
type ReactionsError = {
|
|
225
|
-
readonly status: ReactionStatus.error;
|
|
226
|
-
readonly message: string;
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
// @public
|
|
230
|
-
export class ReactionServiceClient implements ReactionClient {
|
|
231
|
-
constructor(baseUrl: string, sessionToken?: string);
|
|
232
|
-
// (undocumented)
|
|
233
|
-
addReaction(containerAri: string, ari: string, emojiId: string, metadata?: Record<string, any>): Promise<ReactionSummary[]>;
|
|
234
|
-
// (undocumented)
|
|
235
|
-
deleteReaction(containerAri: string, ari: string, emojiId: string, metadata?: Record<string, any>): Promise<ReactionSummary[]>;
|
|
236
|
-
// (undocumented)
|
|
237
|
-
getDetailedReaction(containerAri: string, ari: string, emojiId: string): Promise<ReactionSummary>;
|
|
238
|
-
// (undocumented)
|
|
239
|
-
getReactions(containerAri: string, aris: string[]): Promise<Reactions_2>;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
// @public (undocumented)
|
|
243
|
-
type ReactionsLoading = {
|
|
244
|
-
readonly status: ReactionStatus.loading;
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
// @public (undocumented)
|
|
248
|
-
type ReactionsNotLoaded = {
|
|
249
|
-
readonly status: ReactionStatus.notLoaded;
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
// @public
|
|
253
|
-
type ReactionSource = 'emojiPicker' | 'quickSelector';
|
|
254
|
-
|
|
255
|
-
// @public (undocumented)
|
|
256
|
-
interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmojis' | 'emojiPickerSize' | 'emojiProvider' | 'miniMode'>, Pick<SelectorProps, 'pickerQuickReactionEmojiIds'>, Pick<ReactionProps, 'allowUserDialog'> {
|
|
257
|
-
errorMessage?: string;
|
|
258
|
-
flash?: Record<string, boolean>;
|
|
259
|
-
getReactionDetails?: (emojiId: string) => void;
|
|
260
|
-
loadReaction: () => void;
|
|
261
|
-
onDialogCloseCallback?: OnCloseHandler;
|
|
262
|
-
onDialogOpenCallback?: (emojiId: string, source?: string) => void;
|
|
263
|
-
onDialogSelectReactionCallback?: onDialogSelectReactionChange;
|
|
264
|
-
onReactionClick: ReactionClick;
|
|
265
|
-
// @deprecated (undocumented)
|
|
266
|
-
onReactionHover?: (emojiId: string) => void;
|
|
267
|
-
onSelection: (emojiId: string) => void;
|
|
268
|
-
quickReactionEmojis?: QuickReactionEmojiSummary;
|
|
269
|
-
reactions?: ReactionSummary[];
|
|
270
|
-
status: ReactionStatus;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
// @public (undocumented)
|
|
274
|
-
type ReactionsReadyState = {
|
|
275
|
-
readonly status: ReactionStatus.ready;
|
|
276
|
-
readonly reactions: ReactionSummary[];
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
// @public
|
|
280
|
-
type ReactionsState = ReactionsError | ReactionsLoading | ReactionsNotLoaded | ReactionsReadyState;
|
|
281
|
-
|
|
282
|
-
// @public
|
|
283
|
-
export interface ReactionsStore extends Actions, StoreProps {
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
// @public
|
|
287
|
-
enum ReactionStatus {
|
|
288
|
-
// (undocumented)
|
|
289
|
-
disabled = "DISABLED",
|
|
290
|
-
// (undocumented)
|
|
291
|
-
error = "ERROR",
|
|
292
|
-
// (undocumented)
|
|
293
|
-
loading = "LOADING",
|
|
294
|
-
// (undocumented)
|
|
295
|
-
notLoaded = "NOT_LOADED",
|
|
296
|
-
// (undocumented)
|
|
297
|
-
ready = "READY"
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
// @public
|
|
301
|
-
interface ReactionSummary {
|
|
302
|
-
ari: string;
|
|
303
|
-
containerAri: string;
|
|
304
|
-
count: number;
|
|
305
|
-
emojiId: string;
|
|
306
|
-
// @deprecated (undocumented)
|
|
307
|
-
optimisticallyUpdated?: boolean;
|
|
308
|
-
reacted: boolean;
|
|
309
|
-
users?: User[];
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
// @public (undocumented)
|
|
313
|
-
interface ReactionTooltipProps {
|
|
314
|
-
allowUserDialog?: boolean;
|
|
315
|
-
emojiName?: string;
|
|
316
|
-
handleUserListClick?: (emojiId: string) => void;
|
|
317
|
-
isEnabled?: boolean;
|
|
318
|
-
maxReactions?: number;
|
|
319
|
-
reaction: ReactionSummary;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
// @public (undocumented)
|
|
323
|
-
interface SelectorProps {
|
|
324
|
-
emojiProvider: Promise<EmojiProvider_2>;
|
|
325
|
-
onMoreClick?: React_2.MouseEventHandler<HTMLElement>;
|
|
326
|
-
onSelection: OnEmojiEvent;
|
|
327
|
-
pickerQuickReactionEmojiIds?: EmojiId[];
|
|
328
|
-
showMore?: boolean;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
// @public
|
|
332
|
-
export type State = {
|
|
333
|
-
reactions: {
|
|
334
|
-
[key: string]: ReactionsState;
|
|
335
|
-
};
|
|
336
|
-
flash: {
|
|
337
|
-
[key: string]: {
|
|
338
|
-
[emojiId: string]: boolean;
|
|
339
|
-
};
|
|
340
|
-
};
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
// @public
|
|
344
|
-
interface StoreMetadata {
|
|
345
|
-
// (undocumented)
|
|
346
|
-
[k: string]: any;
|
|
347
|
-
// (undocumented)
|
|
348
|
-
subproduct?: string;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
// @public
|
|
352
|
-
export type StorePropInput = Promise<ReactionsStore> | ReactionsStore;
|
|
353
|
-
|
|
354
|
-
// @public
|
|
355
|
-
interface StoreProps {
|
|
356
|
-
getState: () => State;
|
|
357
|
-
// @deprecated
|
|
358
|
-
onChange: (callback: OnChangeCallback) => void;
|
|
359
|
-
// @deprecated
|
|
360
|
-
removeOnChangeListener: (callback: OnChangeCallback) => void;
|
|
361
|
-
// @deprecated
|
|
362
|
-
setCreateAnalyticsEvent?: (createAnalyticsEvent: CreateUIAnalyticsEvent) => void;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
// @public (undocumented)
|
|
366
|
-
interface TriggerProps {
|
|
367
|
-
ariaAttributes?: AriaAttributes;
|
|
368
|
-
disabled?: boolean;
|
|
369
|
-
miniMode?: boolean;
|
|
370
|
-
onClick?: (e: React_2.MouseEvent<HTMLElement>, analyticsEvent: AnalyticsEvent) => void;
|
|
371
|
-
tooltipContent: React_2.ReactNode;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
// @public (undocumented)
|
|
375
|
-
export const UFO: {
|
|
376
|
-
ComponentName: typeof ComponentName;
|
|
377
|
-
ExperienceName: typeof ExperienceName;
|
|
378
|
-
PickerRender: UFOExperience;
|
|
379
|
-
ReactionsAdd: ConcurrentExperience;
|
|
380
|
-
ReactionDetailsFetch: ConcurrentExperience;
|
|
381
|
-
ReactionDialogClosed: UFOExperience;
|
|
382
|
-
ReactionDialogOpened: UFOExperience;
|
|
383
|
-
ReactionDialogSelectedReactionChanged: UFOExperience;
|
|
384
|
-
ReactionsRemove: ConcurrentExperience;
|
|
385
|
-
ReactionsRendered: ConcurrentExperience;
|
|
386
|
-
sampledReactionsRendered: (instanceId: string) => WithSamplingUFOExperience;
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
// @public (undocumented)
|
|
390
|
-
interface User {
|
|
391
|
-
displayName: string;
|
|
392
|
-
id: string;
|
|
393
|
-
profilePicture?: ProfilePicture;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
// (No @packageDocumentation comment for this package)
|
|
397
|
-
|
|
398
|
-
```
|