@amityco/ulta-ui-kit 4.0.0-beta.4 → 4.0.0-beta01
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/dist/CircularStd-Black-EL754VZN.eot +0 -0
- package/dist/CircularStd-Black-M6FYDJME.woff2 +0 -0
- package/dist/CircularStd-Black-PNLLRW5C.woff +0 -0
- package/dist/CircularStd-Black-YMQQKCA3.ttf +0 -0
- package/dist/CircularStd-BlackItalic-BWOJUVN3.ttf +0 -0
- package/dist/CircularStd-BlackItalic-G62XUQUP.woff2 +0 -0
- package/dist/CircularStd-BlackItalic-MBNBDZUU.eot +0 -0
- package/dist/CircularStd-BlackItalic-NVQVXG5L.woff +0 -0
- package/dist/CircularStd-Bold-3YZD2D54.woff +0 -0
- package/dist/CircularStd-Bold-OBIX2X7G.woff2 +0 -0
- package/dist/CircularStd-Bold-QHAMEMSL.eot +0 -0
- package/dist/CircularStd-Bold-UGQNNLCJ.ttf +0 -0
- package/dist/CircularStd-BoldItalic-53VUNMNP.ttf +0 -0
- package/dist/CircularStd-BoldItalic-7MYBAB7V.woff2 +0 -0
- package/dist/CircularStd-BoldItalic-A6ZIS4PA.eot +0 -0
- package/dist/CircularStd-BoldItalic-S4EXYNAA.woff +0 -0
- package/dist/CircularStd-Medium-27RJ4G7E.woff +0 -0
- package/dist/CircularStd-Medium-CYDQT5MI.eot +0 -0
- package/dist/CircularStd-Medium-MVVUHW3Z.woff2 +0 -0
- package/dist/CircularStd-Medium-TPGRKUIA.ttf +0 -0
- package/dist/CircularStd-MediumItalic-6VIHMKHS.woff +0 -0
- package/dist/CircularStd-MediumItalic-MGFTUSP5.woff2 +0 -0
- package/dist/CircularStd-MediumItalic-PWSPA5NY.ttf +0 -0
- package/dist/CircularStd-MediumItalic-QZO45QYZ.eot +0 -0
- package/dist/CircularStd-Normal-M6DP55C4.otf +0 -0
- package/dist/esm/CircularStd-Black-EL754VZN.eot +0 -0
- package/dist/esm/CircularStd-Black-M6FYDJME.woff2 +0 -0
- package/dist/esm/CircularStd-Black-PNLLRW5C.woff +0 -0
- package/dist/esm/CircularStd-Black-YMQQKCA3.ttf +0 -0
- package/dist/esm/CircularStd-BlackItalic-BWOJUVN3.ttf +0 -0
- package/dist/esm/CircularStd-BlackItalic-G62XUQUP.woff2 +0 -0
- package/dist/esm/CircularStd-BlackItalic-MBNBDZUU.eot +0 -0
- package/dist/esm/CircularStd-BlackItalic-NVQVXG5L.woff +0 -0
- package/dist/esm/CircularStd-Bold-3YZD2D54.woff +0 -0
- package/dist/esm/CircularStd-Bold-OBIX2X7G.woff2 +0 -0
- package/dist/esm/CircularStd-Bold-QHAMEMSL.eot +0 -0
- package/dist/esm/CircularStd-Bold-UGQNNLCJ.ttf +0 -0
- package/dist/esm/CircularStd-BoldItalic-53VUNMNP.ttf +0 -0
- package/dist/esm/CircularStd-BoldItalic-7MYBAB7V.woff2 +0 -0
- package/dist/esm/CircularStd-BoldItalic-A6ZIS4PA.eot +0 -0
- package/dist/esm/CircularStd-BoldItalic-S4EXYNAA.woff +0 -0
- package/dist/esm/CircularStd-Medium-27RJ4G7E.woff +0 -0
- package/dist/esm/CircularStd-Medium-CYDQT5MI.eot +0 -0
- package/dist/esm/CircularStd-Medium-MVVUHW3Z.woff2 +0 -0
- package/dist/esm/CircularStd-Medium-TPGRKUIA.ttf +0 -0
- package/dist/esm/CircularStd-MediumItalic-6VIHMKHS.woff +0 -0
- package/dist/esm/CircularStd-MediumItalic-MGFTUSP5.woff2 +0 -0
- package/dist/esm/CircularStd-MediumItalic-PWSPA5NY.ttf +0 -0
- package/dist/esm/CircularStd-MediumItalic-QZO45QYZ.eot +0 -0
- package/dist/esm/CircularStd-Normal-M6DP55C4.otf +0 -0
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +814 -1020
- package/dist/index.css +1 -1
- package/dist/index.d.mts +815 -121
- package/dist/index.d.ts +815 -121
- package/dist/index.js +943 -1089
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +23 -7
- package/readme.md +192 -10
- package/dist/CircularStd-Book-X7C7G6T7.ttf +0 -0
- package/dist/CommunityProfile-JIUJNMSV.png +0 -0
- package/dist/Horn-GYFFMDHO.png +0 -0
- package/dist/QA-MV537B72.png +0 -0
- package/dist/esm/CircularStd-Book-X7C7G6T7.ttf +0 -0
- package/dist/esm/CommunityProfile-JIUJNMSV.png +0 -0
- package/dist/esm/Horn-GYFFMDHO.png +0 -0
- package/dist/esm/QA-MV537B72.png +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,32 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
3
4
|
import * as styled_components from 'styled-components';
|
|
5
|
+
import { AnalyticsSourceTypeEnum, FeedSourceEnum } from '@amityco/ts-sdk';
|
|
4
6
|
|
|
5
7
|
type AmityReactionType = {
|
|
6
8
|
name: string;
|
|
7
9
|
image: string;
|
|
8
10
|
};
|
|
9
11
|
|
|
10
|
-
type
|
|
12
|
+
type IconConfiguration = {
|
|
13
|
+
icon?: string;
|
|
14
|
+
image?: string;
|
|
15
|
+
};
|
|
16
|
+
type TextConfiguration = {
|
|
17
|
+
text?: string;
|
|
18
|
+
};
|
|
19
|
+
type CustomConfiguration = {
|
|
20
|
+
[key: string]: string | undefined | boolean | Array<string> | number | Record<string, unknown>;
|
|
21
|
+
};
|
|
22
|
+
type ThemeConfiguration = {
|
|
23
|
+
preferred_theme?: 'light' | 'dark' | 'default';
|
|
24
|
+
theme?: {
|
|
25
|
+
light?: Partial<Theme['light']>;
|
|
26
|
+
dark?: Partial<Theme['dark']>;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type ConfigurableThemeValue = {
|
|
11
30
|
primary_color: string;
|
|
12
31
|
secondary_color: string;
|
|
13
32
|
secondary_shade1_color: string;
|
|
@@ -25,16 +44,31 @@ type ThemeValue = {
|
|
|
25
44
|
base_inverse_color: string;
|
|
26
45
|
};
|
|
27
46
|
type Theme = {
|
|
28
|
-
light:
|
|
29
|
-
dark:
|
|
47
|
+
light: ConfigurableThemeValue;
|
|
48
|
+
dark: ConfigurableThemeValue;
|
|
30
49
|
};
|
|
31
|
-
type
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
50
|
+
type GetConfigReturnValue = IconConfiguration & TextConfiguration & ThemeConfiguration & CustomConfiguration;
|
|
51
|
+
type DefaultConfig = {
|
|
52
|
+
preferred_theme: 'light' | 'dark' | 'default';
|
|
53
|
+
theme: {
|
|
54
|
+
light: Theme['light'];
|
|
55
|
+
dark: Theme['dark'];
|
|
56
|
+
};
|
|
57
|
+
excludes: string[];
|
|
58
|
+
customizations?: {
|
|
59
|
+
[key: string]: GetConfigReturnValue;
|
|
36
60
|
};
|
|
37
61
|
};
|
|
62
|
+
|
|
63
|
+
type NetworkConfig = {
|
|
64
|
+
config: DefaultConfig;
|
|
65
|
+
};
|
|
66
|
+
declare const enum UserAccessTypes {
|
|
67
|
+
ALL = "all",
|
|
68
|
+
SIGNED_IN_USER_ONLY = "singed_in_user_only",
|
|
69
|
+
NONE = "none"
|
|
70
|
+
}
|
|
71
|
+
type UserAccess = `${UserAccessTypes}`;
|
|
38
72
|
interface Config {
|
|
39
73
|
preferred_theme?: 'light' | 'dark' | 'default';
|
|
40
74
|
theme?: {
|
|
@@ -43,24 +77,43 @@ interface Config {
|
|
|
43
77
|
};
|
|
44
78
|
excludes?: string[];
|
|
45
79
|
message_reactions?: AmityReactionType[];
|
|
80
|
+
social_reactions?: AmityReactionType[];
|
|
46
81
|
customizations?: {
|
|
47
|
-
[key: string]:
|
|
82
|
+
[key: string]: GetConfigReturnValue;
|
|
83
|
+
};
|
|
84
|
+
feature_flags?: {
|
|
85
|
+
post?: {
|
|
86
|
+
clip?: {
|
|
87
|
+
can_create: UserAccess;
|
|
88
|
+
can_view_tab: UserAccess;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
48
91
|
};
|
|
49
92
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
93
|
+
|
|
94
|
+
interface PostDetailPageProps {
|
|
95
|
+
id: string;
|
|
96
|
+
hideTarget?: boolean;
|
|
97
|
+
category?: AmityPostCategory;
|
|
98
|
+
commentId?: string;
|
|
99
|
+
rootId?: string;
|
|
100
|
+
parentId?: string;
|
|
101
|
+
posts?: Amity.Post<'clip' | 'video'>[];
|
|
102
|
+
selectedReplyComment?: Amity.Comment;
|
|
103
|
+
showReplyCommentAt?: string;
|
|
104
|
+
keyword?: string;
|
|
105
|
+
isFromCommentClick?: boolean;
|
|
106
|
+
eventCreatorId?: Amity.Event['userId'];
|
|
107
|
+
}
|
|
108
|
+
interface GoToPostDetailPageParams extends Omit<PostDetailPageProps, 'id'> {
|
|
109
|
+
postId: string;
|
|
110
|
+
}
|
|
111
|
+
declare function PostDetailPage({ id, hideTarget, category, commentId, rootId, parentId, posts, selectedReplyComment, showReplyCommentAt, keyword, isFromCommentClick, eventCreatorId, }: PostDetailPageProps): react_jsx_runtime.JSX.Element | null;
|
|
60
112
|
|
|
61
113
|
declare enum AmityPostContentComponentStyle {
|
|
62
114
|
FEED = "feed",
|
|
63
|
-
DETAIL = "detail"
|
|
115
|
+
DETAIL = "detail",
|
|
116
|
+
SEARCH = "search"
|
|
64
117
|
}
|
|
65
118
|
declare enum AmityPostCategory {
|
|
66
119
|
GENERAL = "general",
|
|
@@ -70,24 +123,201 @@ declare enum AmityPostCategory {
|
|
|
70
123
|
}
|
|
71
124
|
interface PostContentProps {
|
|
72
125
|
post: Amity.Post;
|
|
73
|
-
onClick?: () => void;
|
|
126
|
+
onClick?: (context?: Pick<PostDetailPageProps, 'commentId' | 'selectedReplyComment' | 'parentId' | 'showReplyCommentAt' | 'isFromCommentClick'>) => void;
|
|
74
127
|
onPostDeleted?: (post: Amity.Post) => void;
|
|
128
|
+
onPollPostDeleted?: (post: Amity.Post) => void;
|
|
75
129
|
style: AmityPostContentComponentStyle;
|
|
76
130
|
category: AmityPostCategory;
|
|
77
131
|
hideMenu?: boolean;
|
|
78
132
|
hideTarget?: boolean;
|
|
79
133
|
pageId?: string;
|
|
134
|
+
disabledContent?: boolean;
|
|
135
|
+
isSearchPost?: boolean;
|
|
136
|
+
keyword?: string;
|
|
137
|
+
isGlobalFeaturePost?: boolean;
|
|
138
|
+
className?: string;
|
|
139
|
+
expandAllContent?: boolean;
|
|
140
|
+
eventCreatorId?: Amity.Event['userId'];
|
|
141
|
+
}
|
|
142
|
+
declare const PostContent: ({ pageId, post, onClick, onPostDeleted, onPollPostDeleted, category, hideMenu, hideTarget, style, disabledContent, isGlobalFeaturePost, className, keyword, isSearchPost, expandAllContent, eventCreatorId, }: PostContentProps) => react_jsx_runtime.JSX.Element;
|
|
143
|
+
|
|
144
|
+
declare enum EventSetupMode {
|
|
145
|
+
CREATE = "create",
|
|
146
|
+
EDIT = "edit"
|
|
147
|
+
}
|
|
148
|
+
type CreateEventOptions = {
|
|
149
|
+
targetId: string;
|
|
150
|
+
targetName: string;
|
|
151
|
+
mode: EventSetupMode.CREATE;
|
|
152
|
+
};
|
|
153
|
+
type EditEventOptions = {
|
|
154
|
+
event: Amity.Event;
|
|
155
|
+
mode: EventSetupMode.EDIT;
|
|
156
|
+
};
|
|
157
|
+
type EventSetupProps = CreateEventOptions | EditEventOptions;
|
|
158
|
+
|
|
159
|
+
type UpcomingEventsProps = {
|
|
160
|
+
fromExplore?: boolean;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
type EventDetailProps = {
|
|
164
|
+
eventId: string;
|
|
165
|
+
pop?: number;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
type EventInfoProps = {
|
|
169
|
+
pageId: string;
|
|
170
|
+
event: Amity.Event;
|
|
171
|
+
};
|
|
172
|
+
declare function EventInfo({ pageId, event }: EventInfoProps): react_jsx_runtime.JSX.Element | null;
|
|
173
|
+
|
|
174
|
+
type EventAttendeesProps = {
|
|
175
|
+
event: Amity.Event;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
type CommunityMediaFeedProps = {
|
|
179
|
+
pageId?: string;
|
|
180
|
+
communityId: string;
|
|
181
|
+
};
|
|
182
|
+
declare const CommunityMediaFeed: ({ pageId, communityId }: CommunityMediaFeedProps) => react_jsx_runtime.JSX.Element;
|
|
183
|
+
|
|
184
|
+
type CommunityEventFeedProps = {
|
|
185
|
+
pageId?: string;
|
|
186
|
+
communityId: string;
|
|
187
|
+
};
|
|
188
|
+
declare const CommunityEventFeed: ({ pageId, communityId }: CommunityEventFeedProps) => react_jsx_runtime.JSX.Element | null;
|
|
189
|
+
|
|
190
|
+
interface LivestreamChatMessageComposerProps {
|
|
191
|
+
channelId?: Amity.Channel['channelId'];
|
|
192
|
+
disabled?: boolean;
|
|
193
|
+
pageId?: string;
|
|
194
|
+
community?: Amity.Community | null;
|
|
195
|
+
isPendingPost?: boolean;
|
|
196
|
+
isPlayer?: boolean;
|
|
80
197
|
}
|
|
81
|
-
declare const
|
|
198
|
+
declare const LivestreamChatMessageComposer: ({ pageId, channelId, disabled, community, isPendingPost, isPlayer, }: LivestreamChatMessageComposerProps) => react_jsx_runtime.JSX.Element;
|
|
199
|
+
|
|
200
|
+
type CreateLivestreamPageProps = {
|
|
201
|
+
targetType: 'community' | 'user';
|
|
202
|
+
targetId: string | null;
|
|
203
|
+
event?: Amity.Event;
|
|
204
|
+
};
|
|
205
|
+
declare function CreateLivestreamPage({ targetType: initialTargetType, targetId: initialTargetId, event, }: CreateLivestreamPageProps): react_jsx_runtime.JSX.Element;
|
|
206
|
+
|
|
207
|
+
type LiveStreamPlayerPageProps = {
|
|
208
|
+
post?: Amity.Post;
|
|
209
|
+
goToDetailPage?: (context?: GoToPostDetailPageParams) => void;
|
|
210
|
+
roomId?: string;
|
|
211
|
+
};
|
|
212
|
+
declare function LiveStreamPlayerPage({ post, roomId, goToDetailPage }: LiveStreamPlayerPageProps): react_jsx_runtime.JSX.Element;
|
|
213
|
+
|
|
214
|
+
type SelectedTarget = {
|
|
215
|
+
targetId: string | null;
|
|
216
|
+
targetType: Amity.PostTargetType;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
declare function LivestreamTargetSelectionPage({ onPressTarget, }: {
|
|
220
|
+
onPressTarget?: (params: SelectedTarget) => void;
|
|
221
|
+
}): react_jsx_runtime.JSX.Element;
|
|
222
|
+
|
|
223
|
+
declare function LiveStreamBannedPage(): react_jsx_runtime.JSX.Element;
|
|
224
|
+
|
|
225
|
+
declare function LivestreamTerminatedPage(): react_jsx_runtime.JSX.Element;
|
|
226
|
+
|
|
227
|
+
declare function LivestreamUnsupportedPage(): react_jsx_runtime.JSX.Element;
|
|
228
|
+
|
|
229
|
+
declare const enum DisplayModeEnum {
|
|
230
|
+
DESKTOP = "desktop",
|
|
231
|
+
MOBILE = "mobile"
|
|
232
|
+
}
|
|
233
|
+
type DisplayMode = `${DisplayModeEnum}`;
|
|
234
|
+
declare const enum ProductTagListRenderModeEnum {
|
|
235
|
+
POST = "post",
|
|
236
|
+
LIVESTREAM = "livestream",
|
|
237
|
+
IMAGE = "image",
|
|
238
|
+
VIDEO = "video"
|
|
239
|
+
}
|
|
240
|
+
type ProductTagListRenderMode = `${ProductTagListRenderModeEnum}`;
|
|
241
|
+
declare const enum LayoutVariantEnum {
|
|
242
|
+
LIST = "list",
|
|
243
|
+
CARD = "card"
|
|
244
|
+
}
|
|
245
|
+
type LayoutVariant = `${LayoutVariantEnum}`;
|
|
246
|
+
|
|
247
|
+
type RenderModeEnum = 'livestream' | 'playback';
|
|
248
|
+
|
|
249
|
+
type ProductTagSelectionMode = 'create' | 'edit' | 'livestream';
|
|
250
|
+
interface ProductTagSelectionProps {
|
|
251
|
+
selectedProductTags?: Amity.ProductTag[];
|
|
252
|
+
onTagChanges: (tags: Amity.ProductTag[]) => void;
|
|
253
|
+
onUpdateProductTags?: (tags: Amity.ProductTag[]) => Promise<Amity.ProductTag[] | undefined> | void;
|
|
254
|
+
displayMode?: DisplayMode;
|
|
255
|
+
mode?: ProductTagSelectionMode;
|
|
256
|
+
onDone?: () => void;
|
|
257
|
+
onClose?: (selectedProducts?: Amity.ProductTag[], hasChanges?: boolean) => void;
|
|
258
|
+
pageId?: string;
|
|
259
|
+
maxCount?: number;
|
|
260
|
+
isFromManageTagList?: boolean;
|
|
261
|
+
pinnedProductId?: string;
|
|
262
|
+
onPinnedProductIdChange?: (pinnedProductId: string | undefined) => void;
|
|
263
|
+
renderMode?: RenderModeEnum;
|
|
264
|
+
isShowSearch?: boolean;
|
|
265
|
+
isHost?: boolean;
|
|
266
|
+
onRemoveProduct?: (productTag: Amity.ProductTag) => void;
|
|
267
|
+
remainingLimit?: number;
|
|
268
|
+
taggedProductIds?: string[];
|
|
269
|
+
}
|
|
270
|
+
declare function ProductTagSelection({ selectedProductTags, onTagChanges, onUpdateProductTags, displayMode, mode, onDone, onClose, pageId, maxCount, isFromManageTagList, pinnedProductId, onPinnedProductIdChange, renderMode, isShowSearch, isHost, onRemoveProduct, remainingLimit, taggedProductIds, }: ProductTagSelectionProps): react_jsx_runtime.JSX.Element | null;
|
|
271
|
+
|
|
272
|
+
interface ManageProductTagListProps {
|
|
273
|
+
productTags?: Amity.MediaProductTag[];
|
|
274
|
+
onProductTagsChange?: (tags: Amity.ProductTag[]) => void;
|
|
275
|
+
onUpdateProductTags?: (tags: Amity.ProductTag[]) => Promise<Amity.ProductTag[] | undefined> | void;
|
|
276
|
+
onRemove?: (productTag: Amity.ProductTag) => void;
|
|
277
|
+
pageId?: string;
|
|
278
|
+
onClose: (tags: Amity.ProductTag[], pinnedProductId: string) => void;
|
|
279
|
+
maxCount?: number;
|
|
280
|
+
pinnedProductId?: string;
|
|
281
|
+
onPinnedProductIdChange?: (pinnedProductId: string | undefined) => void;
|
|
282
|
+
isPinning?: boolean;
|
|
283
|
+
isUnpinning?: boolean;
|
|
284
|
+
renderMode?: RenderModeEnum;
|
|
285
|
+
isHost?: boolean;
|
|
286
|
+
sourceType?: AnalyticsSourceTypeEnum;
|
|
287
|
+
sourceId: string;
|
|
288
|
+
}
|
|
289
|
+
declare function ManageProductTagList({ productTags: initialProductTags, onProductTagsChange, onUpdateProductTags, onRemove, pageId, onClose, maxCount, pinnedProductId, onPinnedProductIdChange, isPinning, isUnpinning, renderMode, isHost, sourceType, sourceId, }: ManageProductTagListProps): react_jsx_runtime.JSX.Element;
|
|
290
|
+
|
|
291
|
+
interface ProductTagListProps {
|
|
292
|
+
pageId?: string;
|
|
293
|
+
productTags: Amity.ProductTag[];
|
|
294
|
+
displayMode?: DisplayMode;
|
|
295
|
+
onClose?: () => void;
|
|
296
|
+
renderMode?: ProductTagListRenderMode;
|
|
297
|
+
layout?: LayoutVariant;
|
|
298
|
+
pinnedProductId?: string;
|
|
299
|
+
sourceId?: string;
|
|
300
|
+
}
|
|
301
|
+
declare function ProductTagList({ productTags, displayMode, pageId, onClose, renderMode, layout, pinnedProductId, sourceId, }: ProductTagListProps): react_jsx_runtime.JSX.Element | null;
|
|
82
302
|
|
|
83
303
|
type MemberCommunitySetup = {
|
|
84
304
|
userId: string;
|
|
85
305
|
displayName: string;
|
|
306
|
+
isBrand: boolean;
|
|
86
307
|
};
|
|
87
308
|
declare enum AmityCommunitySetupPageMode {
|
|
88
309
|
CREATE = "create",
|
|
89
310
|
EDIT = "edit"
|
|
90
311
|
}
|
|
312
|
+
interface CommunitySetupEditOptions {
|
|
313
|
+
mode: AmityCommunitySetupPageMode.EDIT;
|
|
314
|
+
community: Amity.Community;
|
|
315
|
+
}
|
|
316
|
+
interface CommunitySetupCreateOptions {
|
|
317
|
+
mode: AmityCommunitySetupPageMode.CREATE;
|
|
318
|
+
}
|
|
319
|
+
type CommunitySetupPageProps = CommunitySetupCreateOptions | CommunitySetupEditOptions;
|
|
320
|
+
declare const CommunitySetupPage: (props: CommunitySetupPageProps) => react_jsx_runtime.JSX.Element;
|
|
91
321
|
|
|
92
322
|
declare enum Mode {
|
|
93
323
|
CREATE = "create",
|
|
@@ -96,20 +326,33 @@ declare enum Mode {
|
|
|
96
326
|
interface AmityPostComposerEditOptions {
|
|
97
327
|
mode: Mode.EDIT;
|
|
98
328
|
post: Amity.Post;
|
|
329
|
+
isClipPost?: boolean;
|
|
99
330
|
}
|
|
100
331
|
interface AmityPostComposerCreateOptions {
|
|
101
332
|
mode: Mode.CREATE;
|
|
102
333
|
targetId: string | null;
|
|
103
334
|
targetType: 'community' | 'user';
|
|
104
335
|
community?: Amity.Community;
|
|
336
|
+
isClipPost?: boolean;
|
|
337
|
+
targetName?: string;
|
|
105
338
|
}
|
|
106
339
|
type PostComposerPageProps = AmityPostComposerCreateOptions | AmityPostComposerEditOptions;
|
|
107
|
-
declare function PostComposerPage(props: PostComposerPageProps):
|
|
340
|
+
declare function PostComposerPage(props: PostComposerPageProps): react_jsx_runtime.JSX.Element;
|
|
341
|
+
|
|
342
|
+
type UpcomingEventsPageProps = UpcomingEventsProps;
|
|
343
|
+
declare function UpcomingEventsPage({ fromExplore }: UpcomingEventsPageProps): react_jsx_runtime.JSX.Element;
|
|
108
344
|
|
|
109
345
|
declare const enum UserRelationshipPageTabs {
|
|
110
346
|
FOLLOWING = "following",
|
|
111
347
|
FOLLOWER = "followers"
|
|
112
348
|
}
|
|
349
|
+
type UserRelationshipPageProps = {
|
|
350
|
+
userId: string;
|
|
351
|
+
selectedTab: UserRelationshipPageTabs;
|
|
352
|
+
};
|
|
353
|
+
declare const UserRelationshipPage: FC<UserRelationshipPageProps>;
|
|
354
|
+
|
|
355
|
+
type NotificationAlignment = 'fullscreen' | 'withSidebar' | 'fixed' | 'live-chat' | 'livestreamWithChat';
|
|
113
356
|
|
|
114
357
|
interface PageBehavior {
|
|
115
358
|
AmityStoryViewPageBehavior?: {
|
|
@@ -120,11 +363,15 @@ interface PageBehavior {
|
|
|
120
363
|
closeAction?(): void;
|
|
121
364
|
};
|
|
122
365
|
onClickHyperLink?(): void;
|
|
123
|
-
AmitySocialHomePageBehavior?:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
366
|
+
AmitySocialHomePageBehavior?: {
|
|
367
|
+
goToNotificationTrayPage?: () => void;
|
|
368
|
+
goToClipFeedPage?: (context: {
|
|
369
|
+
currentPostId?: string;
|
|
370
|
+
postIndex?: number;
|
|
127
371
|
}) => void;
|
|
372
|
+
};
|
|
373
|
+
AmityGlobalFeedComponentBehavior?: {
|
|
374
|
+
goToPostDetailPage?: (context: GoToPostDetailPageParams) => void;
|
|
128
375
|
goToViewStoryPage?: (context: {
|
|
129
376
|
targetId: string;
|
|
130
377
|
targetType: Amity.StoryTargetType;
|
|
@@ -135,7 +382,17 @@ interface PageBehavior {
|
|
|
135
382
|
mode: AmityCommunitySetupPageMode;
|
|
136
383
|
}): void;
|
|
137
384
|
};
|
|
138
|
-
AmityPostDetailPageBehavior?:
|
|
385
|
+
AmityPostDetailPageBehavior?: {
|
|
386
|
+
goToClipFeedPage?: (context: {
|
|
387
|
+
currentPostId?: string;
|
|
388
|
+
postIndex?: number;
|
|
389
|
+
targetType?: 'community' | 'user';
|
|
390
|
+
targetId?: string;
|
|
391
|
+
}) => void;
|
|
392
|
+
goToSocialGlobalSearchPage?: (context: {
|
|
393
|
+
keyword: string;
|
|
394
|
+
}) => void;
|
|
395
|
+
};
|
|
139
396
|
AmityPostContentComponentBehavior?: {
|
|
140
397
|
goToCommunityProfilePage?: (context: {
|
|
141
398
|
communityId: string;
|
|
@@ -146,9 +403,17 @@ interface PageBehavior {
|
|
|
146
403
|
goToPostComposerPage?: (context: {
|
|
147
404
|
mode: Mode.EDIT;
|
|
148
405
|
post: Amity.Post;
|
|
406
|
+
isClipPost?: boolean;
|
|
407
|
+
}) => void;
|
|
408
|
+
};
|
|
409
|
+
AmitySocialGlobalSearchPageBehavior?: {
|
|
410
|
+
goToPostDetailPage?: (context: {
|
|
411
|
+
postId: string;
|
|
412
|
+
hideTarget?: boolean;
|
|
413
|
+
category?: AmityPostCategory;
|
|
414
|
+
keyword?: string;
|
|
149
415
|
}) => void;
|
|
150
416
|
};
|
|
151
|
-
AmitySocialGlobalSearchPageBehavior?: Record<string, unknown>;
|
|
152
417
|
AmityCommunitySearchResultComponentBehavior?: {
|
|
153
418
|
goToCommunityProfilePage?: (context: {
|
|
154
419
|
communityId: string;
|
|
@@ -161,7 +426,13 @@ interface PageBehavior {
|
|
|
161
426
|
};
|
|
162
427
|
AmityCreatePostMenuComponentBehavior?: {
|
|
163
428
|
goToSelectPostTargetPage?(): void;
|
|
429
|
+
goToSelectClipPostTargetPage?(context: {
|
|
430
|
+
isClipPost: boolean;
|
|
431
|
+
}): void;
|
|
164
432
|
goToStoryTargetSelectionPage?(): void;
|
|
433
|
+
goToSelectPollPostTargetPage?(): void;
|
|
434
|
+
goToLivestreamUnsupportedPage?(): void;
|
|
435
|
+
goToSelectEventTargetPage?(): void;
|
|
165
436
|
};
|
|
166
437
|
AmityPostTargetSelectionPage?: {
|
|
167
438
|
goToPostComposerPage?: (context: {
|
|
@@ -170,6 +441,11 @@ interface PageBehavior {
|
|
|
170
441
|
targetType: 'community' | 'user';
|
|
171
442
|
community?: Amity.Community;
|
|
172
443
|
}) => void;
|
|
444
|
+
goToDraftClipPage?: (context: {
|
|
445
|
+
targetId: string | null;
|
|
446
|
+
targetType: 'community' | 'user';
|
|
447
|
+
community?: Amity.Community;
|
|
448
|
+
}) => void;
|
|
173
449
|
};
|
|
174
450
|
AmityStoryTargetSelectionPage?: {
|
|
175
451
|
goToStoryCreationPage?(context: {
|
|
@@ -195,12 +471,9 @@ interface PageBehavior {
|
|
|
195
471
|
targetType: 'community' | 'user';
|
|
196
472
|
community?: Amity.Community;
|
|
197
473
|
post?: Amity.Post;
|
|
474
|
+
isClipPost?: boolean;
|
|
198
475
|
}): void;
|
|
199
|
-
goToPostDetailPage?(context:
|
|
200
|
-
postId: string;
|
|
201
|
-
hideTarget?: boolean;
|
|
202
|
-
category?: AmityPostCategory;
|
|
203
|
-
}): void;
|
|
476
|
+
goToPostDetailPage?(context: GoToPostDetailPageParams): void;
|
|
204
477
|
goToStoryCreationPage?(context: {
|
|
205
478
|
targetId: string | null;
|
|
206
479
|
targetType: Amity.StoryTargetType;
|
|
@@ -226,6 +499,26 @@ interface PageBehavior {
|
|
|
226
499
|
goToMembershipPage?(context: {
|
|
227
500
|
community: Amity.Community;
|
|
228
501
|
}): void;
|
|
502
|
+
goToPollPostComposerPage?(context: {
|
|
503
|
+
targetId: string | null;
|
|
504
|
+
targetType: 'community' | 'user';
|
|
505
|
+
pollType?: 'text' | 'image';
|
|
506
|
+
}): void;
|
|
507
|
+
goToPendingRequestPage?(context: {
|
|
508
|
+
community: Amity.Community;
|
|
509
|
+
}): void;
|
|
510
|
+
goToDraftClipPage?(context: {
|
|
511
|
+
targetId: string | null;
|
|
512
|
+
targetType: 'community' | 'user';
|
|
513
|
+
community?: Amity.Community;
|
|
514
|
+
}): void;
|
|
515
|
+
goToClipFeedPage?: (context: {
|
|
516
|
+
currentPostId?: string;
|
|
517
|
+
postIndex?: number;
|
|
518
|
+
targetType?: 'community' | 'user';
|
|
519
|
+
targetId?: string;
|
|
520
|
+
}) => void;
|
|
521
|
+
goToEventSetupPage?(context: EventSetupProps): void;
|
|
229
522
|
};
|
|
230
523
|
AmitySocialHomeTopNavigationComponentBehavior?: {
|
|
231
524
|
goToCreateCommunityPage?(context: {
|
|
@@ -241,6 +534,10 @@ interface PageBehavior {
|
|
|
241
534
|
communityId?: string;
|
|
242
535
|
onAddedAction?: (userId: string[]) => void;
|
|
243
536
|
}): void;
|
|
537
|
+
goToInviteMemberPage?(context: {
|
|
538
|
+
communityId?: string;
|
|
539
|
+
onSubmit?: (userId: string[]) => void;
|
|
540
|
+
}): void;
|
|
244
541
|
};
|
|
245
542
|
AmityCommunitySettingPageBehavior?: {
|
|
246
543
|
goToEditCommunityPage?(context: {
|
|
@@ -250,6 +547,9 @@ interface PageBehavior {
|
|
|
250
547
|
goToMembershipPage?(context: {
|
|
251
548
|
community: Amity.Community;
|
|
252
549
|
}): void;
|
|
550
|
+
goToPendingInvitationPage?(context: {
|
|
551
|
+
community: Amity.Community;
|
|
552
|
+
}): void;
|
|
253
553
|
goToPostPermissionPage?(context: {
|
|
254
554
|
community: Amity.Community;
|
|
255
555
|
}): void;
|
|
@@ -258,7 +558,7 @@ interface PageBehavior {
|
|
|
258
558
|
}): void;
|
|
259
559
|
goToSocialHomePage?(): void;
|
|
260
560
|
};
|
|
261
|
-
|
|
561
|
+
AmityCommunityMembershipPageBehavior?: {
|
|
262
562
|
goToAddMemberPage?(context: {
|
|
263
563
|
members?: MemberCommunitySetup[];
|
|
264
564
|
communityId?: string;
|
|
@@ -267,11 +567,23 @@ interface PageBehavior {
|
|
|
267
567
|
goToUserProfilePage?: (context: {
|
|
268
568
|
userId: string;
|
|
269
569
|
}) => void;
|
|
570
|
+
goToInviteMemberPage?(context: {
|
|
571
|
+
communityId?: string;
|
|
572
|
+
onSubmit?: (userId: string[]) => void;
|
|
573
|
+
}): void;
|
|
574
|
+
};
|
|
575
|
+
AmityCommunityPendingInvitationPageBehavior?: {
|
|
576
|
+
goToUserProfilePage?: (context: {
|
|
577
|
+
userId: string;
|
|
578
|
+
}) => void;
|
|
579
|
+
};
|
|
580
|
+
AmityCommunityInviteMemberPageBehavior?: {
|
|
581
|
+
goToUserProfilePage?: (context: {
|
|
582
|
+
userId: string;
|
|
583
|
+
}) => void;
|
|
270
584
|
};
|
|
271
585
|
AmityUserFeedComponentBehavior?: {
|
|
272
|
-
goToPostDetailPage?(context:
|
|
273
|
-
postId: string;
|
|
274
|
-
}): void;
|
|
586
|
+
goToPostDetailPage?(context: GoToPostDetailPageParams): void;
|
|
275
587
|
};
|
|
276
588
|
AmityUserProfilePageBehavior?: {
|
|
277
589
|
goToEditUserPage?(context: {
|
|
@@ -280,50 +592,184 @@ interface PageBehavior {
|
|
|
280
592
|
goToBlockedUsersPage?(): void;
|
|
281
593
|
goToPostComposerPage?(context: {
|
|
282
594
|
userId: string;
|
|
595
|
+
isClipPost?: boolean;
|
|
596
|
+
}): void;
|
|
597
|
+
goToDraftClipPage?(context: {
|
|
598
|
+
targetId: string | null;
|
|
599
|
+
targetType: 'community' | 'user';
|
|
600
|
+
community?: Amity.Community;
|
|
283
601
|
}): void;
|
|
602
|
+
goToClipFeedPage?: (context: {
|
|
603
|
+
currentPostId?: string;
|
|
604
|
+
postIndex?: number;
|
|
605
|
+
targetType?: 'community' | 'user';
|
|
606
|
+
targetId?: string;
|
|
607
|
+
}) => void;
|
|
284
608
|
};
|
|
285
|
-
AmityUserProfileHeaderComponentBehavior
|
|
609
|
+
AmityUserProfileHeaderComponentBehavior?: {
|
|
286
610
|
goToUserRelationshipPage?(context: {
|
|
287
611
|
userId: string;
|
|
288
612
|
selectedTab: UserRelationshipPageTabs;
|
|
289
613
|
}): void;
|
|
290
614
|
goToPendingFollowRequestPage?(): void;
|
|
291
615
|
};
|
|
292
|
-
AmityUserRelationshipPageBehavior
|
|
616
|
+
AmityUserRelationshipPageBehavior?: {
|
|
293
617
|
goToUserProfilePage?(context: {
|
|
294
618
|
userId: string;
|
|
295
619
|
}): void;
|
|
296
620
|
};
|
|
297
|
-
AmityUserPendingFollowRequestsPageBehavior
|
|
621
|
+
AmityUserPendingFollowRequestsPageBehavior?: {
|
|
298
622
|
goToUserProfilePage?(context: {
|
|
299
623
|
userId: string;
|
|
300
624
|
}): void;
|
|
301
625
|
};
|
|
302
|
-
AmityBlockedUsersPageBehavior
|
|
626
|
+
AmityBlockedUsersPageBehavior?: {
|
|
627
|
+
goToUserProfilePage?(context: {
|
|
628
|
+
userId: string;
|
|
629
|
+
}): void;
|
|
630
|
+
};
|
|
631
|
+
AmityPollTargetSelectionPageBehavior?: {
|
|
632
|
+
goToPollPostComposerPage?(context: {
|
|
633
|
+
targetId: string | null;
|
|
634
|
+
targetType: 'community' | 'user';
|
|
635
|
+
pollType?: 'text' | 'image';
|
|
636
|
+
}): void;
|
|
637
|
+
};
|
|
638
|
+
AmityNotificationTrayPageBehavior?: {
|
|
639
|
+
goToCommunityProfilePage?(context: {
|
|
640
|
+
communityId: string;
|
|
641
|
+
}): void;
|
|
642
|
+
goToPostDetailPage?(context: GoToPostDetailPageParams): void;
|
|
643
|
+
goToUserProfilePage?(context: {
|
|
644
|
+
userId: string;
|
|
645
|
+
}): void;
|
|
646
|
+
goToEventDetailPage?(context: EventDetailProps): void;
|
|
647
|
+
goToLivestreamPlayerPage?(context: LiveStreamPlayerPageProps): void;
|
|
648
|
+
goToEditProfilePage?(): void;
|
|
649
|
+
};
|
|
650
|
+
AmityDraftClipPageBehavior?: {
|
|
651
|
+
goToPostComposerPage?(context: {
|
|
652
|
+
mode: Mode.CREATE;
|
|
653
|
+
targetId: string | null;
|
|
654
|
+
targetType: 'community' | 'user';
|
|
655
|
+
community?: Amity.Community;
|
|
656
|
+
isClipPost?: boolean;
|
|
657
|
+
}): void;
|
|
658
|
+
};
|
|
659
|
+
AmityClipFeedPageBehavior?: {
|
|
660
|
+
goToSelectClipPostTargetPage?(context: {
|
|
661
|
+
isClipPost: boolean;
|
|
662
|
+
}): void;
|
|
663
|
+
goToPostDetailPage?(context: GoToPostDetailPageParams): void;
|
|
664
|
+
goToUserProfilePage?(context: {
|
|
665
|
+
userId: string;
|
|
666
|
+
}): void;
|
|
667
|
+
goToCommunityProfilePage?(context: {
|
|
668
|
+
communityId: string;
|
|
669
|
+
}): void;
|
|
670
|
+
};
|
|
671
|
+
AmityGlobalBehavior?: {
|
|
672
|
+
handleVisitorUserAction?(context: {
|
|
673
|
+
alignment: NotificationAlignment;
|
|
674
|
+
}): void;
|
|
675
|
+
handleNonMemberAction?(context: {
|
|
676
|
+
alignment: NotificationAlignment;
|
|
677
|
+
}): void;
|
|
678
|
+
handleNonFollowerAction?(context: {
|
|
679
|
+
alignment: NotificationAlignment;
|
|
680
|
+
}): void;
|
|
681
|
+
onPostProductTagClick?(context: {
|
|
682
|
+
product: Amity.Product;
|
|
683
|
+
}): void;
|
|
684
|
+
onLivestreamProductTagClick?(context: {
|
|
685
|
+
product: Amity.Product;
|
|
686
|
+
}): void;
|
|
687
|
+
};
|
|
688
|
+
AmityEventTargetSelectionPageBehavior?: {
|
|
689
|
+
goToEventSetupPage?(context: EventSetupProps): void;
|
|
690
|
+
};
|
|
691
|
+
AmityMyCommunitiesComponentBehavior?: {
|
|
692
|
+
goToCommunitySetupPage?(context: {
|
|
693
|
+
mode: AmityCommunitySetupPageMode;
|
|
694
|
+
}): void;
|
|
695
|
+
};
|
|
696
|
+
AmityExploreEventFeedComponentBehavior?: {
|
|
697
|
+
goToUpcomingEventsPage?(context: UpcomingEventsPageProps): void;
|
|
698
|
+
};
|
|
699
|
+
AmityMyEventFeedComponentBehavior?: {
|
|
700
|
+
goToUpcomingEventsPage?(context: UpcomingEventsPageProps): void;
|
|
701
|
+
goToPastEventsPage?(): void;
|
|
702
|
+
};
|
|
703
|
+
AmityEventDetailPageBehavior?: {
|
|
704
|
+
goToCommunityProfilePage?(context: {
|
|
705
|
+
communityId: string;
|
|
706
|
+
}): void;
|
|
707
|
+
goToPostDetailPage?(context: GoToPostDetailPageParams): void;
|
|
708
|
+
goToEventSetupPage?(context: EventSetupProps): void;
|
|
709
|
+
goToCreateLivestreamPage?(context: CreateLivestreamPageProps): void;
|
|
710
|
+
goToPostComposerPage?(context: {
|
|
711
|
+
mode: Mode.CREATE;
|
|
712
|
+
targetName?: string;
|
|
713
|
+
targetId: string | null;
|
|
714
|
+
targetType: 'community' | 'user';
|
|
715
|
+
community?: Amity.Community;
|
|
716
|
+
}): void;
|
|
717
|
+
goToPollPostComposerPage?(context: {
|
|
718
|
+
targetId: string | null;
|
|
719
|
+
targetType: 'community' | 'user';
|
|
720
|
+
pollType?: 'text' | 'image';
|
|
721
|
+
}): void;
|
|
722
|
+
goToEventAttendeesPage?(context: {
|
|
723
|
+
event: Amity.Event;
|
|
724
|
+
}): void;
|
|
725
|
+
goToUserProfilePage?(context: {
|
|
726
|
+
userId: string;
|
|
727
|
+
}): void;
|
|
728
|
+
};
|
|
729
|
+
AmityEventSetupPageBehavior?: {
|
|
730
|
+
goToEventDetailPage?(context: EventDetailProps): void;
|
|
731
|
+
};
|
|
732
|
+
AmityEventAttendeesPageBehavior?: {
|
|
303
733
|
goToUserProfilePage?(context: {
|
|
304
734
|
userId: string;
|
|
305
735
|
}): void;
|
|
306
736
|
};
|
|
307
737
|
}
|
|
308
738
|
|
|
739
|
+
type OptionalFeature = 'event' | 'clipFeed' | 'livestream' | 'multipleReaction' | 'addLinkToText';
|
|
309
740
|
interface UltaConfigContextProps {
|
|
310
741
|
faqCommunityId: string;
|
|
311
742
|
newsCommunityId: string;
|
|
312
743
|
privacyAndPolicyUrl: string;
|
|
744
|
+
faqCommunityIconUrl?: string;
|
|
745
|
+
newsCommunityIconUrl?: string;
|
|
313
746
|
termsAndConditionsUrl: string;
|
|
314
747
|
allowUpdateDisplayName?: boolean;
|
|
315
748
|
defaultTab?: 'explore' | 'newsfeed';
|
|
749
|
+
contactSupportUrl: string;
|
|
750
|
+
enabledFeatures?: OptionalFeature[];
|
|
751
|
+
deeplink?: {
|
|
752
|
+
origin?: string;
|
|
753
|
+
groupQueryString?: string;
|
|
754
|
+
postQueryString?: string;
|
|
755
|
+
userQueryString?: string;
|
|
756
|
+
};
|
|
316
757
|
}
|
|
317
758
|
|
|
318
759
|
type AmityUIKitConfig = Config;
|
|
760
|
+
type AmityRoute = {
|
|
761
|
+
route: string;
|
|
762
|
+
id?: string;
|
|
763
|
+
};
|
|
319
764
|
interface AmityUIKitProviderProps {
|
|
320
765
|
apiKey: string;
|
|
321
766
|
apiRegion: string;
|
|
322
767
|
apiEndpoint?: {
|
|
323
768
|
http?: string;
|
|
324
769
|
mqtt?: string;
|
|
770
|
+
upload?: string;
|
|
325
771
|
};
|
|
326
|
-
userId
|
|
772
|
+
userId?: string;
|
|
327
773
|
displayName?: string;
|
|
328
774
|
postRendererConfig?: any;
|
|
329
775
|
theme?: Record<string, unknown>;
|
|
@@ -349,8 +795,19 @@ interface AmityUIKitProviderProps {
|
|
|
349
795
|
onConnected?: () => void;
|
|
350
796
|
onDisconnected?: () => void;
|
|
351
797
|
getAuthToken?: () => Promise<string>;
|
|
798
|
+
authSignatureExpiresAt?: string;
|
|
799
|
+
getAuthSignature?: ({ deviceId, authSignatureExpiresAt, }: {
|
|
800
|
+
deviceId: string;
|
|
801
|
+
authSignatureExpiresAt: string;
|
|
802
|
+
}) => Promise<string>;
|
|
803
|
+
isBotUser?: boolean;
|
|
352
804
|
configs?: AmityUIKitConfig;
|
|
805
|
+
activeRoute?: AmityRoute;
|
|
353
806
|
ultaConfig: UltaConfigContextProps;
|
|
807
|
+
onRouteChange?: (route: string) => void;
|
|
808
|
+
seoOptimizationEnabled?: boolean;
|
|
809
|
+
syncNetworkConfig?: boolean;
|
|
810
|
+
onEmptyNavigationStack?: () => void;
|
|
354
811
|
}
|
|
355
812
|
declare const AmityUIKitProvider: React.FC<AmityUIKitProviderProps>;
|
|
356
813
|
|
|
@@ -365,9 +822,9 @@ interface FeedProps {
|
|
|
365
822
|
readonly?: boolean;
|
|
366
823
|
isHiddenProfile?: boolean;
|
|
367
824
|
}
|
|
368
|
-
declare const _default$2: React.MemoExoticComponent<(props: FeedProps) =>
|
|
825
|
+
declare const _default$2: React.MemoExoticComponent<(props: FeedProps) => react_jsx_runtime.JSX.Element>;
|
|
369
826
|
|
|
370
|
-
declare const Application: () =>
|
|
827
|
+
declare const Application: () => react_jsx_runtime.JSX.Element;
|
|
371
828
|
|
|
372
829
|
type PartialChannel = Pick<Amity.Channel, 'channelId' | 'type'>;
|
|
373
830
|
declare const ChatApplication: ({ membershipFilter, defaultChannelId, onMemberSelect, onChannelSelect, onAddNewChannel, onEditChatMember, }: {
|
|
@@ -380,7 +837,12 @@ declare const ChatApplication: ({ membershipFilter, defaultChannelId, onMemberSe
|
|
|
380
837
|
channel: Amity.Channel;
|
|
381
838
|
members: Amity.Membership<'channel'>[];
|
|
382
839
|
}) => void) | undefined;
|
|
383
|
-
}) =>
|
|
840
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
841
|
+
|
|
842
|
+
type PageRendererProps = {
|
|
843
|
+
children: React.JSX.Element;
|
|
844
|
+
};
|
|
845
|
+
declare const PageRenderer: ({ children }: PageRendererProps) => react_jsx_runtime.JSX.Element | null;
|
|
384
846
|
|
|
385
847
|
declare const addChatMembers: (channelId: string, userIds: string[]) => Promise<boolean>;
|
|
386
848
|
|
|
@@ -413,7 +875,7 @@ type AmityDraftStoryPageProps = {
|
|
|
413
875
|
targetType: Amity.StoryTargetType;
|
|
414
876
|
mediaType?: AmityStoryMediaType$1;
|
|
415
877
|
};
|
|
416
|
-
declare const AmityDraftStoryPage: (props: AmityDraftStoryPageProps) =>
|
|
878
|
+
declare const AmityDraftStoryPage: (props: AmityDraftStoryPageProps) => react_jsx_runtime.JSX.Element;
|
|
417
879
|
|
|
418
880
|
type Page = {
|
|
419
881
|
type: PageTypes.Explore | PageTypes.NewsFeed;
|
|
@@ -487,7 +949,7 @@ interface AvatarProps {
|
|
|
487
949
|
loading?: boolean;
|
|
488
950
|
backgroundImage?: string | null;
|
|
489
951
|
}
|
|
490
|
-
declare const _default$1: (props: AvatarProps) =>
|
|
952
|
+
declare const _default$1: (props: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
491
953
|
|
|
492
954
|
declare const PostContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<{
|
|
493
955
|
className?: string | undefined;
|
|
@@ -495,7 +957,7 @@ declare const PostContainer: styled_components_dist_types.IStyledComponentBase<"
|
|
|
495
957
|
}, never>> & string & Omit<({ className, ...props }: {
|
|
496
958
|
className?: string | undefined;
|
|
497
959
|
children?: ReactNode;
|
|
498
|
-
}) =>
|
|
960
|
+
}) => react_jsx_runtime.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
499
961
|
|
|
500
962
|
type Mentioned = {
|
|
501
963
|
userId: string;
|
|
@@ -510,7 +972,7 @@ interface EngagementBarProps {
|
|
|
510
972
|
readonly?: boolean;
|
|
511
973
|
}
|
|
512
974
|
|
|
513
|
-
declare const _default: React.MemoExoticComponent<(props: EngagementBarProps) =>
|
|
975
|
+
declare const _default: React.MemoExoticComponent<(props: EngagementBarProps) => react_jsx_runtime.JSX.Element>;
|
|
514
976
|
|
|
515
977
|
interface CommentTextProps {
|
|
516
978
|
text?: string;
|
|
@@ -518,7 +980,7 @@ interface CommentTextProps {
|
|
|
518
980
|
mentionees?: Mentioned[];
|
|
519
981
|
maxLines?: number;
|
|
520
982
|
}
|
|
521
|
-
declare const CommentText: ({ text, className, mentionees, maxLines, }: CommentTextProps) =>
|
|
983
|
+
declare const CommentText: ({ text, className, mentionees, maxLines, }: CommentTextProps) => react_jsx_runtime.JSX.Element | null;
|
|
522
984
|
|
|
523
985
|
declare const useSDK: () => {
|
|
524
986
|
client?: Amity.Client | null | undefined;
|
|
@@ -536,6 +998,21 @@ interface SessionHandler {
|
|
|
536
998
|
*/
|
|
537
999
|
sessionWillRenewAccessToken(renewal: Amity.AccessTokenRenewal): void;
|
|
538
1000
|
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Interface for the registerDevice parameters.
|
|
1003
|
+
*/
|
|
1004
|
+
interface RegisterDeviceParams {
|
|
1005
|
+
userId?: string;
|
|
1006
|
+
displayName?: string;
|
|
1007
|
+
sessionHandler: SessionHandler;
|
|
1008
|
+
authToken?: string;
|
|
1009
|
+
authSignatureParams?: Amity.ConnectClientAsVisitorParams;
|
|
1010
|
+
onConnectionStatusChange?: (state: Amity.SessionStates) => void;
|
|
1011
|
+
onConnected?: () => void;
|
|
1012
|
+
onDisconnected?: () => void;
|
|
1013
|
+
onGlobalBanned?: (payload: Amity.UserPayload) => void;
|
|
1014
|
+
onUserDeleted?: (payload: Amity.UserPayload) => void;
|
|
1015
|
+
}
|
|
539
1016
|
/**
|
|
540
1017
|
* Manages the Amity SDK client and authentication state.
|
|
541
1018
|
*/
|
|
@@ -548,6 +1025,9 @@ declare class AmityUIKitManager {
|
|
|
548
1025
|
private onConnectionStatusChange?;
|
|
549
1026
|
private onConnected?;
|
|
550
1027
|
private onDisconnected?;
|
|
1028
|
+
private globalBannedUnsubscribe?;
|
|
1029
|
+
private onGlobalBanned?;
|
|
1030
|
+
private onUserDeleted?;
|
|
551
1031
|
/**
|
|
552
1032
|
* Private constructor to prevent direct instantiation.
|
|
553
1033
|
*/
|
|
@@ -563,18 +1043,13 @@ declare class AmityUIKitManager {
|
|
|
563
1043
|
http?: string;
|
|
564
1044
|
mqtt?: string;
|
|
565
1045
|
};
|
|
1046
|
+
seoOptimizationEnabled?: boolean;
|
|
566
1047
|
}): void;
|
|
567
1048
|
/**
|
|
568
1049
|
* Registers a device with the Amity SDK and handles the login process.
|
|
569
|
-
* @param
|
|
570
|
-
* @param displayName - The display name of the user.
|
|
571
|
-
* @param sessionHandler - The session handler for access token renewal.
|
|
572
|
-
* @param authToken - The authentication token to be used for login.
|
|
573
|
-
* @param onConnectionStatusChange - The callback function for connection status changes.
|
|
574
|
-
* @param onConnected - The callback function to be called when connected.
|
|
575
|
-
* @param onDisconnected - The callback function to be called when disconnected.
|
|
1050
|
+
* @param params - The parameters object containing all registration options.
|
|
576
1051
|
*/
|
|
577
|
-
static registerDevice(userId
|
|
1052
|
+
static registerDevice({ userId, displayName, sessionHandler, authToken, authSignatureParams, onConnectionStatusChange, onConnected, onDisconnected, onGlobalBanned, onUserDeleted, }: RegisterDeviceParams): Promise<void>;
|
|
578
1053
|
/**
|
|
579
1054
|
* Sets the AmityClient instance to be used by the AmityUIKitManager.
|
|
580
1055
|
* This method is useful when sharing the AmityClient instance between different parts of the application.
|
|
@@ -602,6 +1077,7 @@ declare class AmityUIKitManager {
|
|
|
602
1077
|
* @returns True if the client is connected, false otherwise.
|
|
603
1078
|
*/
|
|
604
1079
|
isClientConnected(): boolean;
|
|
1080
|
+
static syncNetworkConfig(): Promise<NetworkConfig>;
|
|
605
1081
|
}
|
|
606
1082
|
|
|
607
1083
|
interface ChatHeaderProps {
|
|
@@ -609,14 +1085,14 @@ interface ChatHeaderProps {
|
|
|
609
1085
|
pageId?: string;
|
|
610
1086
|
componentId?: string;
|
|
611
1087
|
}
|
|
612
|
-
declare const ChatHeader: ({ channel, pageId }: ChatHeaderProps) =>
|
|
1088
|
+
declare const ChatHeader: ({ channel, pageId }: ChatHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
613
1089
|
|
|
614
1090
|
interface AmityLiveChatMessageListProps {
|
|
615
1091
|
pageId?: string;
|
|
616
1092
|
channel: Amity.Channel;
|
|
617
1093
|
replyMessage: (message: Amity.Message<'text'>) => void;
|
|
618
1094
|
}
|
|
619
|
-
declare const MessageList: ({ pageId, channel, replyMessage, }: AmityLiveChatMessageListProps) =>
|
|
1095
|
+
declare const MessageList: ({ pageId, channel, replyMessage, }: AmityLiveChatMessageListProps) => react_jsx_runtime.JSX.Element;
|
|
620
1096
|
|
|
621
1097
|
type ComposeActionTypes = {
|
|
622
1098
|
replyMessage?: Amity.Message;
|
|
@@ -624,24 +1100,24 @@ type ComposeActionTypes = {
|
|
|
624
1100
|
clearReplyMessage?: () => void;
|
|
625
1101
|
clearMention?: () => void;
|
|
626
1102
|
};
|
|
1103
|
+
|
|
627
1104
|
interface MessageComposerProps {
|
|
628
1105
|
channel: Amity.Channel;
|
|
629
|
-
composeAction
|
|
630
|
-
suggestionRef?: RefObject<HTMLDivElement>;
|
|
1106
|
+
composeAction?: ComposeActionTypes;
|
|
631
1107
|
disabled?: boolean;
|
|
632
1108
|
pageId?: string;
|
|
633
1109
|
}
|
|
634
|
-
declare const MessageComposer: ({ pageId, channel, composeAction
|
|
1110
|
+
declare const MessageComposer: ({ pageId, channel, composeAction }: MessageComposerProps) => react_jsx_runtime.JSX.Element;
|
|
635
1111
|
|
|
636
1112
|
declare const MessageReactionPreview: ({ message, onClick, }: {
|
|
637
1113
|
message: Amity.Message;
|
|
638
1114
|
onClick?: (() => void) | undefined;
|
|
639
|
-
}) =>
|
|
1115
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
640
1116
|
|
|
641
1117
|
declare const MessageReactionPicker: ({ message, onSelectReaction, }: {
|
|
642
1118
|
message: Amity.Message;
|
|
643
1119
|
onSelectReaction: (reactionName: string) => void;
|
|
644
|
-
}) =>
|
|
1120
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
645
1121
|
|
|
646
1122
|
interface MessageQuickReactionProps {
|
|
647
1123
|
pageId?: string;
|
|
@@ -649,7 +1125,7 @@ interface MessageQuickReactionProps {
|
|
|
649
1125
|
message: Amity.Message;
|
|
650
1126
|
onSelectReaction?: () => void;
|
|
651
1127
|
}
|
|
652
|
-
declare const MessageQuickReaction: ({ pageId, componentId, message, onSelectReaction, }: MessageQuickReactionProps) =>
|
|
1128
|
+
declare const MessageQuickReaction: ({ pageId, componentId, message, onSelectReaction, }: MessageQuickReactionProps) => react_jsx_runtime.JSX.Element;
|
|
653
1129
|
|
|
654
1130
|
type MessageActionType = {
|
|
655
1131
|
onCopy?: () => void;
|
|
@@ -664,8 +1140,9 @@ interface ReactionListProps$1 {
|
|
|
664
1140
|
pageId: string;
|
|
665
1141
|
referenceId: string;
|
|
666
1142
|
referenceType: Amity.ReactableType;
|
|
1143
|
+
customReferenceType?: string;
|
|
667
1144
|
}
|
|
668
|
-
declare const ReactionList: ({ pageId, referenceId, referenceType }: ReactionListProps$1) =>
|
|
1145
|
+
declare const ReactionList: ({ pageId, referenceId, referenceType, customReferenceType, }: ReactionListProps$1) => react_jsx_runtime.JSX.Element | null;
|
|
669
1146
|
|
|
670
1147
|
interface ReactionListProps {
|
|
671
1148
|
referenceId: string;
|
|
@@ -675,7 +1152,7 @@ interface ReactionListProps {
|
|
|
675
1152
|
interface LiveChatProps {
|
|
676
1153
|
channelId: Amity.Channel['channelId'];
|
|
677
1154
|
}
|
|
678
|
-
declare const LiveChat: ({ channelId }: LiveChatProps) =>
|
|
1155
|
+
declare const LiveChat: ({ channelId }: LiveChatProps) => react_jsx_runtime.JSX.Element | null;
|
|
679
1156
|
|
|
680
1157
|
type AmityStoryMediaType = {
|
|
681
1158
|
type: 'image';
|
|
@@ -730,28 +1207,31 @@ interface AmityViewStoryPageProps {
|
|
|
730
1207
|
}
|
|
731
1208
|
declare const ViewStoryPage: React.FC<AmityViewStoryPageProps>;
|
|
732
1209
|
|
|
733
|
-
declare function StoryTargetSelectionPage():
|
|
734
|
-
|
|
735
|
-
declare function SocialHomePage(): React.JSX.Element;
|
|
1210
|
+
declare function StoryTargetSelectionPage(): react_jsx_runtime.JSX.Element;
|
|
736
1211
|
|
|
737
|
-
declare
|
|
1212
|
+
declare enum HomePageTab {
|
|
1213
|
+
Newsfeed = "Newsfeed",
|
|
1214
|
+
Explore = "Explore",
|
|
1215
|
+
Profile = "Profile",
|
|
1216
|
+
MyCommunities = "My communities",
|
|
1217
|
+
Clips = "Clips",
|
|
1218
|
+
Communities = "Communities",
|
|
1219
|
+
Events = "Events"
|
|
1220
|
+
}
|
|
738
1221
|
|
|
739
|
-
declare function
|
|
1222
|
+
declare function SocialHomePage({ activeTab: initialActiveTab }: {
|
|
1223
|
+
activeTab?: HomePageTab;
|
|
1224
|
+
}): react_jsx_runtime.JSX.Element;
|
|
740
1225
|
|
|
741
|
-
declare function
|
|
1226
|
+
declare function SelectPostTargetPage({ isClipPost }: {
|
|
1227
|
+
isClipPost?: boolean;
|
|
1228
|
+
}): react_jsx_runtime.JSX.Element;
|
|
742
1229
|
|
|
743
|
-
|
|
744
|
-
id: string;
|
|
745
|
-
hideTarget?: boolean;
|
|
746
|
-
category?: AmityPostCategory;
|
|
747
|
-
}
|
|
748
|
-
declare function PostDetailPage({ id, hideTarget, category }: PostDetailPageProps): React.JSX.Element;
|
|
1230
|
+
declare function MyCommunitiesSearchPage(): react_jsx_runtime.JSX.Element;
|
|
749
1231
|
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
}
|
|
754
|
-
declare const CommunityProfilePage: React.FC<CommunityProfileProps>;
|
|
1232
|
+
declare function SocialGlobalSearchPage({ keyword }: {
|
|
1233
|
+
keyword?: string;
|
|
1234
|
+
}): react_jsx_runtime.JSX.Element;
|
|
755
1235
|
|
|
756
1236
|
type UserProfilePageProps = {
|
|
757
1237
|
userId: string;
|
|
@@ -764,15 +1244,124 @@ interface EditUserProfilePageProps {
|
|
|
764
1244
|
}
|
|
765
1245
|
declare const EditUserProfilePage: React.FC<EditUserProfilePageProps>;
|
|
766
1246
|
|
|
767
|
-
|
|
768
|
-
|
|
1247
|
+
declare const BlockedUserPage: () => react_jsx_runtime.JSX.Element;
|
|
1248
|
+
|
|
1249
|
+
declare const UserPendingFollowRequestPage: () => react_jsx_runtime.JSX.Element;
|
|
1250
|
+
|
|
1251
|
+
interface CommunityAddCategoryPageProps {
|
|
1252
|
+
category?: Amity.Category[];
|
|
1253
|
+
}
|
|
1254
|
+
declare const CommunityAddCategoryPage: ({ category }: CommunityAddCategoryPageProps) => react_jsx_runtime.JSX.Element;
|
|
1255
|
+
|
|
1256
|
+
interface CommunityAddMemberPageProps {
|
|
1257
|
+
member?: MemberCommunitySetup[];
|
|
1258
|
+
communityId?: string;
|
|
1259
|
+
closePopup?: () => void;
|
|
1260
|
+
onAddedAction?: (userId: string[]) => void;
|
|
1261
|
+
}
|
|
1262
|
+
declare const CommunityAddMemberPage: ({ member, closePopup, communityId, onAddedAction, }: CommunityAddMemberPageProps) => react_jsx_runtime.JSX.Element;
|
|
1263
|
+
|
|
1264
|
+
type CommunityInviteMemberPageProps = {
|
|
1265
|
+
communityId?: string;
|
|
1266
|
+
users?: Amity.User[];
|
|
1267
|
+
onSubmit?: (userId: string[]) => void;
|
|
1268
|
+
};
|
|
1269
|
+
declare const CommunityInviteMemberPage: (props: CommunityInviteMemberPageProps) => react_jsx_runtime.JSX.Element;
|
|
1270
|
+
|
|
1271
|
+
interface CommunityProfileProps {
|
|
1272
|
+
communityId: string;
|
|
1273
|
+
page?: number;
|
|
1274
|
+
}
|
|
1275
|
+
declare const CommunityProfilePage: React.FC<CommunityProfileProps>;
|
|
1276
|
+
|
|
1277
|
+
type CommunitySettingPageProps = {
|
|
1278
|
+
community: Amity.Community;
|
|
1279
|
+
};
|
|
1280
|
+
declare const CommunitySettingPage: ({ community }: CommunitySettingPageProps) => react_jsx_runtime.JSX.Element;
|
|
1281
|
+
|
|
1282
|
+
type CommunityPostPermissionPageProps = {
|
|
1283
|
+
community: Amity.Community;
|
|
1284
|
+
};
|
|
1285
|
+
declare const CommunityPostPermissionPage: ({ community }: CommunityPostPermissionPageProps) => react_jsx_runtime.JSX.Element;
|
|
1286
|
+
|
|
1287
|
+
type CommunityStorySettingPageProps = {
|
|
1288
|
+
community: Amity.Community;
|
|
1289
|
+
};
|
|
1290
|
+
declare const CommunityStorySettingPage: ({ community }: CommunityStorySettingPageProps) => react_jsx_runtime.JSX.Element;
|
|
1291
|
+
|
|
1292
|
+
type PendingPostsPageProps = {
|
|
1293
|
+
communityId: string;
|
|
1294
|
+
};
|
|
1295
|
+
declare const PendingPostsPage: ({ communityId }: PendingPostsPageProps) => react_jsx_runtime.JSX.Element;
|
|
1296
|
+
|
|
1297
|
+
type CommunityMembershipPageProps = {
|
|
1298
|
+
community: Amity.Community;
|
|
1299
|
+
};
|
|
1300
|
+
declare const CommunityMembershipPage: ({ community }: CommunityMembershipPageProps) => react_jsx_runtime.JSX.Element;
|
|
1301
|
+
|
|
1302
|
+
type CommunityPendingInvitationPageProps = {
|
|
1303
|
+
community: Amity.Community;
|
|
1304
|
+
};
|
|
1305
|
+
declare function CommunityPendingInvitationPage(props: CommunityPendingInvitationPageProps): react_jsx_runtime.JSX.Element;
|
|
1306
|
+
|
|
1307
|
+
type PollPostComposerPageProps = {
|
|
1308
|
+
targetId: string | null;
|
|
1309
|
+
targetType: 'community' | 'user';
|
|
1310
|
+
pollType?: 'text' | 'image';
|
|
1311
|
+
};
|
|
1312
|
+
declare const PollPostComposerPage: ({ targetId, targetType, pollType, }: PollPostComposerPageProps) => react_jsx_runtime.JSX.Element;
|
|
1313
|
+
|
|
1314
|
+
declare function PollTargetSelectionPage(): react_jsx_runtime.JSX.Element;
|
|
1315
|
+
|
|
1316
|
+
declare function AllCategoriesPage(): react_jsx_runtime.JSX.Element;
|
|
1317
|
+
|
|
1318
|
+
interface CommunitiesByCategoryPageProps {
|
|
1319
|
+
categoryId: string;
|
|
1320
|
+
}
|
|
1321
|
+
declare function CommunitiesByCategoryPage({ categoryId }: CommunitiesByCategoryPageProps): react_jsx_runtime.JSX.Element;
|
|
1322
|
+
|
|
1323
|
+
type PendingRequestPageProps = {
|
|
1324
|
+
community: Amity.Community;
|
|
1325
|
+
};
|
|
1326
|
+
declare const PendingRequestPage: ({ community }: PendingRequestPageProps) => react_jsx_runtime.JSX.Element | null;
|
|
1327
|
+
|
|
1328
|
+
type DraftClipPageProps = {
|
|
1329
|
+
targetId: string | null;
|
|
1330
|
+
targetType: 'community' | 'user';
|
|
1331
|
+
community?: Amity.Community;
|
|
1332
|
+
};
|
|
1333
|
+
declare const DraftClipPage: ({ targetId, targetType, community }: DraftClipPageProps) => react_jsx_runtime.JSX.Element;
|
|
1334
|
+
|
|
1335
|
+
type ClipFeedPageProps = {
|
|
1336
|
+
currentPostId?: string;
|
|
1337
|
+
postIndex?: number;
|
|
1338
|
+
targetType?: 'community' | 'user';
|
|
1339
|
+
targetId?: string;
|
|
1340
|
+
};
|
|
1341
|
+
declare const ClipFeedPage: ({ currentPostId, postIndex, targetType, targetId, }: ClipFeedPageProps) => react_jsx_runtime.JSX.Element;
|
|
1342
|
+
|
|
1343
|
+
declare function EventTargetSelectionPage(): react_jsx_runtime.JSX.Element;
|
|
1344
|
+
|
|
1345
|
+
declare const EventSetupPage: (props: EventSetupProps) => react_jsx_runtime.JSX.Element;
|
|
1346
|
+
|
|
1347
|
+
declare function PastEventsPage(): react_jsx_runtime.JSX.Element;
|
|
1348
|
+
|
|
1349
|
+
type EventDetailPageProps = EventDetailProps;
|
|
1350
|
+
declare function EventDetailPage(props: EventDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
1351
|
+
|
|
1352
|
+
type EventAttendeesPageProps = EventAttendeesProps;
|
|
1353
|
+
declare function EventAttendeesPage({ event }: EventAttendeesPageProps): react_jsx_runtime.JSX.Element;
|
|
1354
|
+
|
|
1355
|
+
type CommentTrayProps = {
|
|
1356
|
+
pageId?: string;
|
|
769
1357
|
referenceId: string;
|
|
770
1358
|
community: Amity.Community;
|
|
771
|
-
shouldAllowInteraction: boolean;
|
|
772
1359
|
shouldAllowCreation?: boolean;
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
1360
|
+
shouldAllowInteraction?: boolean;
|
|
1361
|
+
referenceType: Amity.CommentReferenceType;
|
|
1362
|
+
commentCount?: number;
|
|
1363
|
+
};
|
|
1364
|
+
declare const CommentTray: ({ referenceId, pageId, referenceType, shouldAllowCreation, shouldAllowInteraction, community, commentCount, }: CommentTrayProps) => react_jsx_runtime.JSX.Element;
|
|
776
1365
|
|
|
777
1366
|
type StoryTabProps = ({
|
|
778
1367
|
type: 'communityFeed';
|
|
@@ -784,40 +1373,45 @@ type StoryTabProps = ({
|
|
|
784
1373
|
};
|
|
785
1374
|
declare const StoryTab: React.FC<StoryTabProps>;
|
|
786
1375
|
|
|
787
|
-
|
|
1376
|
+
type CreatePostMenuProps = {
|
|
788
1377
|
pageId: string;
|
|
789
|
-
}
|
|
790
|
-
declare function CreatePostMenu({ pageId }: CreatePostMenuProps):
|
|
1378
|
+
};
|
|
1379
|
+
declare function CreatePostMenu({ pageId }: CreatePostMenuProps): react_jsx_runtime.JSX.Element;
|
|
791
1380
|
|
|
792
1381
|
interface MediaAttachmentProps {
|
|
793
1382
|
pageId: string;
|
|
794
1383
|
uploadLoading?: boolean;
|
|
1384
|
+
sourceId?: string;
|
|
795
1385
|
isVisibleCamera: boolean;
|
|
796
1386
|
isVisibleImage: boolean;
|
|
797
1387
|
isVisibleVideo: boolean;
|
|
798
|
-
|
|
799
|
-
|
|
1388
|
+
totalMedia?: number;
|
|
1389
|
+
productTags?: Amity.ProductTag[];
|
|
1390
|
+
onVideoFileChange?: (files: File[], fileType?: string) => void;
|
|
1391
|
+
onImageFileChange?: (files: File[], fileType?: string) => void;
|
|
800
1392
|
}
|
|
801
|
-
declare function MediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps):
|
|
1393
|
+
declare function MediaAttachment({ pageId, sourceId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, productTags, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps): react_jsx_runtime.JSX.Element | null;
|
|
802
1394
|
|
|
803
1395
|
interface DetailedMediaAttachmentProps {
|
|
804
1396
|
pageId: string;
|
|
805
1397
|
isVisibleCamera: boolean;
|
|
806
1398
|
isVisibleImage: boolean;
|
|
807
1399
|
isVisibleVideo: boolean;
|
|
1400
|
+
totalMedia?: number;
|
|
808
1401
|
onVideoFileChange?: (files: File[]) => void;
|
|
809
1402
|
onImageFileChange?: (files: File[]) => void;
|
|
810
1403
|
}
|
|
811
|
-
declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps):
|
|
1404
|
+
declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): react_jsx_runtime.JSX.Element | null;
|
|
812
1405
|
|
|
813
1406
|
type UserSearchResultProps = {
|
|
814
1407
|
pageId?: string;
|
|
1408
|
+
keyword: string;
|
|
815
1409
|
isLoading: boolean;
|
|
816
1410
|
onLoadMore: () => void;
|
|
817
1411
|
userCollection: Amity.User[];
|
|
818
1412
|
onClosePopover?: () => void;
|
|
819
1413
|
};
|
|
820
|
-
declare const UserSearchResult: ({ isLoading, onLoadMore, pageId, onClosePopover, userCollection, }: UserSearchResultProps) =>
|
|
1414
|
+
declare const UserSearchResult: ({ keyword, isLoading, onLoadMore, pageId, onClosePopover, userCollection, }: UserSearchResultProps) => react_jsx_runtime.JSX.Element;
|
|
821
1415
|
|
|
822
1416
|
type CommunitySearchResultProps = {
|
|
823
1417
|
pageId?: string;
|
|
@@ -826,54 +1420,56 @@ type CommunitySearchResultProps = {
|
|
|
826
1420
|
showJoinButton?: boolean;
|
|
827
1421
|
onClosePopover?: () => void;
|
|
828
1422
|
communityCollection: Amity.Community[];
|
|
1423
|
+
isEmptyGroup?: boolean;
|
|
1424
|
+
keyword?: string;
|
|
1425
|
+
onExploreGroups?: () => void;
|
|
829
1426
|
};
|
|
830
|
-
declare const CommunitySearchResult: ({ isLoading, onLoadMore, pageId, onClosePopover, showJoinButton, communityCollection, }: CommunitySearchResultProps) =>
|
|
1427
|
+
declare const CommunitySearchResult: ({ isLoading, onLoadMore, pageId, onClosePopover, showJoinButton, communityCollection, isEmptyGroup, keyword, onExploreGroups, }: CommunitySearchResultProps) => react_jsx_runtime.JSX.Element;
|
|
831
1428
|
|
|
832
1429
|
type TopSearchBarProps = {
|
|
833
1430
|
pageId?: string;
|
|
834
1431
|
onFocus?: () => void;
|
|
1432
|
+
hasCancelButton?: boolean;
|
|
835
1433
|
search: (keyword: string) => void;
|
|
1434
|
+
initialValue?: string;
|
|
1435
|
+
onCloseSearch?: () => void;
|
|
836
1436
|
};
|
|
837
|
-
declare function TopSearchBar({ pageId, search, onFocus }: TopSearchBarProps):
|
|
1437
|
+
declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initialValue, onCloseSearch, }: TopSearchBarProps): react_jsx_runtime.JSX.Element | null;
|
|
838
1438
|
|
|
839
|
-
|
|
1439
|
+
type MyCommunitiesProps = {
|
|
840
1440
|
pageId?: string;
|
|
841
|
-
|
|
842
|
-
|
|
1441
|
+
onExploreGroups?: () => void;
|
|
1442
|
+
};
|
|
1443
|
+
declare const MyCommunities: ({ pageId, onExploreGroups }: MyCommunitiesProps) => react_jsx_runtime.JSX.Element;
|
|
843
1444
|
|
|
844
1445
|
interface GlobalFeedProps {
|
|
845
1446
|
pageId?: string;
|
|
1447
|
+
isLoading: boolean;
|
|
846
1448
|
componentId?: string;
|
|
847
1449
|
items: Array<Amity.Post | Amity.Ad>;
|
|
848
|
-
|
|
1450
|
+
globalFeaturedPosts?: Array<Amity.PinnedPost>;
|
|
1451
|
+
isGlobalFeaturedPostsLoading?: boolean;
|
|
849
1452
|
onFeedReachBottom: () => void;
|
|
850
1453
|
onPostDeleted?: (post: Amity.Post) => void;
|
|
851
1454
|
}
|
|
852
|
-
declare const GlobalFeed: ({ pageId, componentId, items, isLoading, onFeedReachBottom, onPostDeleted, }: GlobalFeedProps) =>
|
|
1455
|
+
declare const GlobalFeed: ({ pageId, componentId, items, isLoading, globalFeaturedPosts, isGlobalFeaturedPostsLoading, onFeedReachBottom, onPostDeleted, }: GlobalFeedProps) => react_jsx_runtime.JSX.Element;
|
|
853
1456
|
|
|
854
1457
|
interface EmptyNewsfeedProps {
|
|
855
1458
|
pageId?: string;
|
|
856
1459
|
}
|
|
857
|
-
declare function EmptyNewsfeed({ pageId }: EmptyNewsfeedProps):
|
|
1460
|
+
declare function EmptyNewsfeed({ pageId }: EmptyNewsfeedProps): react_jsx_runtime.JSX.Element | null;
|
|
858
1461
|
|
|
859
1462
|
type NewsfeedProps = {
|
|
860
1463
|
pageId?: string;
|
|
861
1464
|
};
|
|
862
|
-
declare const Newsfeed: ({ pageId }: NewsfeedProps) =>
|
|
863
|
-
|
|
864
|
-
declare enum HomePageTab {
|
|
865
|
-
Newsfeed = "Newsfeed",
|
|
866
|
-
Explore = "Explore",
|
|
867
|
-
Profile = "Profile",
|
|
868
|
-
MyCommunities = "My communities"
|
|
869
|
-
}
|
|
1465
|
+
declare const Newsfeed: ({ pageId }: NewsfeedProps) => react_jsx_runtime.JSX.Element;
|
|
870
1466
|
|
|
871
1467
|
interface TopNavigationProps {
|
|
872
1468
|
pageId?: string;
|
|
873
1469
|
selectedTab?: HomePageTab;
|
|
874
1470
|
onClickPostCreationButton?: () => void;
|
|
875
1471
|
}
|
|
876
|
-
declare function TopNavigation({ pageId, selectedTab, onClickPostCreationButton, }: TopNavigationProps):
|
|
1472
|
+
declare function TopNavigation({ pageId, selectedTab, onClickPostCreationButton, }: TopNavigationProps): react_jsx_runtime.JSX.Element | null;
|
|
877
1473
|
|
|
878
1474
|
interface CommunityProfileHeaderProps {
|
|
879
1475
|
pageId?: string;
|
|
@@ -887,11 +1483,109 @@ interface CommunityFeedProps {
|
|
|
887
1483
|
communityId: string;
|
|
888
1484
|
pageId?: string;
|
|
889
1485
|
}
|
|
890
|
-
declare const CommunityFeed: ({ pageId, communityId }: CommunityFeedProps) =>
|
|
1486
|
+
declare const CommunityFeed: ({ pageId, communityId }: CommunityFeedProps) => react_jsx_runtime.JSX.Element | null;
|
|
891
1487
|
|
|
892
1488
|
interface CommunityPinnedPostProps {
|
|
893
1489
|
communityId?: string;
|
|
894
1490
|
}
|
|
895
|
-
declare const CommunityPinnedPost: ({ communityId }: CommunityPinnedPostProps) =>
|
|
1491
|
+
declare const CommunityPinnedPost: ({ communityId }: CommunityPinnedPostProps) => react_jsx_runtime.JSX.Element;
|
|
1492
|
+
|
|
1493
|
+
type CommunityImageFeedProps = {
|
|
1494
|
+
pageId?: string;
|
|
1495
|
+
communityId: string;
|
|
1496
|
+
};
|
|
1497
|
+
declare const CommunityImageFeed: ({ pageId, communityId }: CommunityImageFeedProps) => react_jsx_runtime.JSX.Element | null;
|
|
1498
|
+
|
|
1499
|
+
type CommunityVideoFeedProps = {
|
|
1500
|
+
pageId?: string;
|
|
1501
|
+
communityId: string;
|
|
1502
|
+
};
|
|
1503
|
+
declare const CommunityVideoFeed: ({ pageId, communityId }: CommunityVideoFeedProps) => react_jsx_runtime.JSX.Element | null;
|
|
1504
|
+
|
|
1505
|
+
type PendingPostContentProps = {
|
|
1506
|
+
pageId?: string;
|
|
1507
|
+
post?: Amity.Post;
|
|
1508
|
+
canReviewCommunityPosts?: boolean;
|
|
1509
|
+
refresh?: () => void;
|
|
1510
|
+
};
|
|
1511
|
+
declare const PendingPostContent: ({ pageId, post: initialPost, canReviewCommunityPosts, refresh, }: PendingPostContentProps) => react_jsx_runtime.JSX.Element | null;
|
|
1512
|
+
|
|
1513
|
+
interface UserProfileHeaderProps {
|
|
1514
|
+
user?: Amity.User | null;
|
|
1515
|
+
pageId?: string;
|
|
1516
|
+
menuOptions?: React.ReactNode | null;
|
|
1517
|
+
isShowBackButton?: boolean;
|
|
1518
|
+
}
|
|
1519
|
+
declare const UserProfileHeader: React.FC<UserProfileHeaderProps>;
|
|
1520
|
+
|
|
1521
|
+
interface UserFeedProps {
|
|
1522
|
+
userId: string;
|
|
1523
|
+
pageId?: string;
|
|
1524
|
+
feedSources?: FeedSourceEnum[];
|
|
1525
|
+
followStatus?: Amity.FollowStatus['status'] | null;
|
|
1526
|
+
}
|
|
1527
|
+
declare const UserFeed: ({ pageId, userId, feedSources, followStatus }: UserFeedProps) => react_jsx_runtime.JSX.Element;
|
|
1528
|
+
|
|
1529
|
+
interface UserImageFeedProps {
|
|
1530
|
+
userId: string;
|
|
1531
|
+
pageId?: string;
|
|
1532
|
+
feedSources?: FeedSourceEnum[];
|
|
1533
|
+
followStatus?: Amity.FollowStatus['status'] | null;
|
|
1534
|
+
}
|
|
1535
|
+
declare const UserImageFeed: ({ pageId, userId, feedSources, followStatus, }: UserImageFeedProps) => react_jsx_runtime.JSX.Element;
|
|
1536
|
+
|
|
1537
|
+
interface UserVideoFeedProps {
|
|
1538
|
+
userId: string;
|
|
1539
|
+
pageId?: string;
|
|
1540
|
+
feedSources?: FeedSourceEnum[];
|
|
1541
|
+
followStatus?: Amity.FollowStatus['status'] | null;
|
|
1542
|
+
}
|
|
1543
|
+
declare const UserVideoFeed: ({ pageId, userId, feedSources, followStatus, }: UserVideoFeedProps) => react_jsx_runtime.JSX.Element;
|
|
1544
|
+
|
|
1545
|
+
type ExploreProps = {
|
|
1546
|
+
pageId?: string;
|
|
1547
|
+
};
|
|
1548
|
+
declare const Explore: ({ pageId }: ExploreProps) => react_jsx_runtime.JSX.Element;
|
|
1549
|
+
|
|
1550
|
+
type InvitationBannerProps = {
|
|
1551
|
+
pageId?: string;
|
|
1552
|
+
community: Amity.Community;
|
|
1553
|
+
removeInvitation?: () => void;
|
|
1554
|
+
invitation?: Amity.Invitation;
|
|
1555
|
+
};
|
|
1556
|
+
declare function InvitationBanner({ community, pageId, removeInvitation, invitation: $invitation, }: InvitationBannerProps): react_jsx_runtime.JSX.Element;
|
|
1557
|
+
|
|
1558
|
+
type InvitationSectionProps = {
|
|
1559
|
+
pageId?: string;
|
|
1560
|
+
onClose?: () => void;
|
|
1561
|
+
invitations: Amity.Invitation[];
|
|
1562
|
+
};
|
|
1563
|
+
declare const InvitationSection: ({ onClose, pageId, invitations, }: InvitationSectionProps) => react_jsx_runtime.JSX.Element | null;
|
|
1564
|
+
|
|
1565
|
+
type PendingPostListProps = {
|
|
1566
|
+
pageId?: string;
|
|
1567
|
+
reviewingPosts: Amity.Post[];
|
|
1568
|
+
canReviewCommunityPosts?: boolean;
|
|
1569
|
+
refresh?: () => void;
|
|
1570
|
+
};
|
|
1571
|
+
declare const PendingPostList: ({ pageId, reviewingPosts, canReviewCommunityPosts, refresh, }: PendingPostListProps) => react_jsx_runtime.JSX.Element;
|
|
1572
|
+
|
|
1573
|
+
type JoinRequestContentProps = {
|
|
1574
|
+
pageId?: string;
|
|
1575
|
+
joinRequests: Amity.JoinRequest[] | null;
|
|
1576
|
+
isLoading: boolean;
|
|
1577
|
+
refresh?: () => void;
|
|
1578
|
+
};
|
|
1579
|
+
declare const JoinRequestContent: ({ pageId, joinRequests, isLoading, refresh, }: JoinRequestContentProps) => react_jsx_runtime.JSX.Element;
|
|
1580
|
+
|
|
1581
|
+
type ExploreEventProps = {
|
|
1582
|
+
pageId?: string;
|
|
1583
|
+
};
|
|
1584
|
+
declare function ExploreEvent({ pageId }: ExploreEventProps): react_jsx_runtime.JSX.Element | null;
|
|
1585
|
+
|
|
1586
|
+
type MyEventsProps = {
|
|
1587
|
+
pageId?: string;
|
|
1588
|
+
};
|
|
1589
|
+
declare function MyEvents({ pageId }: MyEventsProps): react_jsx_runtime.JSX.Element | null;
|
|
896
1590
|
|
|
897
|
-
export { _default$1 as AmityAvatar, CommentTray as AmityCommentTrayComponent, CommunityFeed as AmityCommunityFeedComponent, CommunityHeader as AmityCommunityHeaderComponent, CommunityPinnedPost as AmityCommunityPinnedPostComponent, CommunityProfilePage as AmityCommunityProfilePage, CommunitySearchResult as AmityCommunitySearchResultComponent, CreatePostMenu as AmityCreatePostMenuComponent, DetailedMediaAttachment as AmityDetailedMediaAttachmentComponent, AmityDraftStoryPage, EditUserProfilePage as AmityEditUserProfilePage, EmptyNewsfeed as AmityEmptyNewsFeedComponent, CommentText as AmityExpandableText, GlobalFeed as AmityGlobalFeedComponent, ChatHeader as AmityLiveChatHeader, MessageComposer as AmityLiveChatMessageComposeBar, MessageList as AmityLiveChatMessageList, MessageQuickReaction as AmityLiveChatMessageQuickReaction, MessageReactionPicker as AmityLiveChatMessageReactionPicker, MessageReactionPreview as AmityLiveChatMessageReactionPreview, LiveChat as AmityLiveChatPage, MediaAttachment as AmityMediaAttachmentComponent, type MessageActionType as AmityMessageActionType, MyCommunities as AmityMyCommunitiesComponent, MyCommunitiesSearchPage as AmityMyCommunitiesSearchPage, Newsfeed as AmityNewsFeedComponent, PostComposerPage as AmityPostComposerPage, PostContainer as AmityPostContainer, PostContent as AmityPostContentComponent, PostDetailPage as AmityPostDetailPage, _default as AmityPostEngagementBar, SelectPostTargetPage as AmityPostTargetSelectionPage, ReactionList as AmityReactionListComponent, type ReactionListProps as AmityReactionListProps, SocialGlobalSearchPage as AmitySocialGlobalSearchPage, SocialHomePage as AmitySocialHomePage, HomePageTab as AmitySocialHomePageTab, TopNavigation as AmitySocialHomeTopNavigationComponent, StoryPreview as AmityStoryPreview, StoryPreviewThumbnail as AmityStoryPreviewThumbnail, StoryTab as AmityStoryTabComponent, StoryTargetSelectionPage as AmityStoryTargetSelectionPage, TopSearchBar as AmityTopSearchBarComponent, AmityUIKitManager, ChatApplication as AmityUiKitChat, _default$2 as AmityUiKitFeed, AmityUIKitProvider as AmityUiKitProvider, Application as AmityUiKitSocial, UserProfilePage as AmityUserProfilePage, UserSearchResult as AmityUserSearchResultComponent, ViewStoryPage as AmityViewStoryPage, addChatMembers as amityAddChatMembers, removeChatMembers as amityRemoveChatMembers, useNavigation as useAmityNavigation, useSDK as useAmitySDK, useUser as useAmityUser };
|
|
1591
|
+
export { AllCategoriesPage as AmityAllCategoriesPage, _default$1 as AmityAvatar, BlockedUserPage as AmityBlockedUserPage, ClipFeedPage as AmityClipFeedPage, CommentTray as AmityCommentTrayComponent, CommunitiesByCategoryPage as AmityCommunitiesByCategoryPage, CommunityAddCategoryPage as AmityCommunityAddCategoryPage, CommunityAddMemberPage as AmityCommunityAddMemberPage, CommunityEventFeed as AmityCommunityEventFeedComponent, CommunityFeed as AmityCommunityFeedComponent, CommunityHeader as AmityCommunityHeaderComponent, CommunityImageFeed as AmityCommunityImageFeedComponent, CommunityInviteMemberPage as AmityCommunityInviteMemberPage, CommunityMediaFeed as AmityCommunityMediaFeedComponent, CommunityMembershipPage as AmityCommunityMembershipPage, CommunityPendingInvitationPage as AmityCommunityPendingInvitationPage, CommunityPinnedPost as AmityCommunityPinnedPostComponent, CommunityPostPermissionPage as AmityCommunityPostPermissionPage, CommunityProfilePage as AmityCommunityProfilePage, CommunitySearchResult as AmityCommunitySearchResultComponent, CommunitySettingPage as AmityCommunitySettingPage, CommunitySetupPage as AmityCommunitySetupPage, AmityCommunitySetupPageMode, CommunityStorySettingPage as AmityCommunityStorySettingPage, CommunityVideoFeed as AmityCommunityVideoFeedComponent, CreateLivestreamPage as AmityCreateLivestreamPage, CreatePostMenu as AmityCreatePostMenuComponent, DetailedMediaAttachment as AmityDetailedMediaAttachmentComponent, DraftClipPage as AmityDraftClipPage, AmityDraftStoryPage, EditUserProfilePage as AmityEditUserProfilePage, EmptyNewsfeed as AmityEmptyNewsFeedComponent, EventAttendeesPage as AmityEventAttendeesPage, EventDetailPage as AmityEventDetailPage, EventInfo as AmityEventInfoComponent, EventSetupPage as AmityEventSetupPage, EventSetupMode as AmityEventSetupPageMode, EventTargetSelectionPage as AmityEventTargetSelectionPage, CommentText as AmityExpandableText, Explore as AmityExploreComponent, ExploreEvent as AmityExploreEventFeedComponent, GlobalFeed as AmityGlobalFeedComponent, InvitationBanner as AmityInvitationBannerComponent, InvitationSection as AmityInvitationSectionComponent, JoinRequestContent as AmityJoinRequestContentComponent, ChatHeader as AmityLiveChatHeader, MessageComposer as AmityLiveChatMessageComposeBar, MessageList as AmityLiveChatMessageList, MessageQuickReaction as AmityLiveChatMessageQuickReaction, MessageReactionPicker as AmityLiveChatMessageReactionPicker, MessageReactionPreview as AmityLiveChatMessageReactionPreview, LiveChat as AmityLiveChatPage, LiveStreamBannedPage as AmityLiveStreamBannedPage, LiveStreamPlayerPage as AmityLiveStreamPlayerPage, LivestreamChatMessageComposer as AmityLivestreamChatMessageComposerComponent, LivestreamTargetSelectionPage as AmityLivestreamTargetSelectionPage, LivestreamTerminatedPage as AmityLivestreamTerminatedPage, LivestreamUnsupportedPage as AmityLivestreamUnsupportedPage, ManageProductTagList as AmityManageProductTagListComponent, MediaAttachment as AmityMediaAttachmentComponent, type MessageActionType as AmityMessageActionType, MyCommunities as AmityMyCommunitiesComponent, MyCommunitiesSearchPage as AmityMyCommunitiesSearchPage, MyEvents as AmityMyEventFeedComponent, Newsfeed as AmityNewsFeedComponent, PageRenderer as AmityPageRenderer, PastEventsPage as AmityPastEventsPage, PendingPostContent as AmityPendingPostContentComponent, PendingPostList as AmityPendingPostListComponent, PendingPostsPage as AmityPendingPostsPage, PendingRequestPage as AmityPendingRequestPage, PollPostComposerPage as AmityPollPostComposerPage, PollTargetSelectionPage as AmityPollTargetSelectionPage, PostComposerPage as AmityPostComposerPage, PostContainer as AmityPostContainer, PostContent as AmityPostContentComponent, PostDetailPage as AmityPostDetailPage, _default as AmityPostEngagementBar, SelectPostTargetPage as AmityPostTargetSelectionPage, ProductTagList as AmityProductTagListComponent, ProductTagSelection as AmityProductTagSelectionComponent, ReactionList as AmityReactionListComponent, type ReactionListProps as AmityReactionListProps, SocialGlobalSearchPage as AmitySocialGlobalSearchPage, SocialHomePage as AmitySocialHomePage, HomePageTab as AmitySocialHomePageTab, TopNavigation as AmitySocialHomeTopNavigationComponent, StoryPreview as AmityStoryPreview, StoryPreviewThumbnail as AmityStoryPreviewThumbnail, StoryTab as AmityStoryTabComponent, StoryTargetSelectionPage as AmityStoryTargetSelectionPage, TopSearchBar as AmityTopSearchBarComponent, AmityUIKitManager, ChatApplication as AmityUiKitChat, _default$2 as AmityUiKitFeed, AmityUIKitProvider as AmityUiKitProvider, Application as AmityUiKitSocial, UpcomingEventsPage as AmityUpcomingEventsPage, UserFeed as AmityUserFeedComponent, UserImageFeed as AmityUserImageFeedComponent, UserPendingFollowRequestPage as AmityUserPendingFollowRequestPage, UserProfileHeader as AmityUserProfileHeaderComponent, UserProfilePage as AmityUserProfilePage, UserRelationshipPage as AmityUserRelationshipPage, UserRelationshipPageTabs as AmityUserRelationshipPageTabs, UserSearchResult as AmityUserSearchResultComponent, UserVideoFeed as AmityUserVideoFeedComponent, ViewStoryPage as AmityViewStoryPage, addChatMembers as amityAddChatMembers, removeChatMembers as amityRemoveChatMembers, useNavigation as useAmityNavigation, useSDK as useAmitySDK, useUser as useAmityUser };
|