@amityco/ulta-ui-kit 2.0.6 → 3.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/3VW64HDT-LYCE6SQJ.js +8 -0
- package/dist/CircularStd-Black-EL754VZN.eot +0 -0
- package/dist/CircularStd-BlackItalic-MBNBDZUU.eot +0 -0
- package/dist/CircularStd-Bold-QHAMEMSL.eot +0 -0
- package/dist/CircularStd-BoldItalic-A6ZIS4PA.eot +0 -0
- package/dist/CircularStd-Medium-CYDQT5MI.eot +0 -0
- package/dist/CircularStd-MediumItalic-QZO45QYZ.eot +0 -0
- package/dist/CircularStd-Normal-M6DP55C4.otf +0 -0
- package/dist/J3FDRF32-M7MNUPOJ.js +8 -0
- package/dist/chunk-DE5GFHYC.js +72 -0
- package/dist/chunk-LJEBBGQM.js +1344 -0
- package/dist/esm/3VW64HDT-LYCE6SQJ.js +6 -0
- package/dist/esm/CircularStd-Black-EL754VZN.eot +0 -0
- package/dist/esm/CircularStd-BlackItalic-MBNBDZUU.eot +0 -0
- package/dist/esm/CircularStd-Bold-QHAMEMSL.eot +0 -0
- package/dist/esm/CircularStd-BoldItalic-A6ZIS4PA.eot +0 -0
- package/dist/esm/CircularStd-Medium-CYDQT5MI.eot +0 -0
- package/dist/esm/CircularStd-MediumItalic-QZO45QYZ.eot +0 -0
- package/dist/esm/CircularStd-Normal-M6DP55C4.otf +0 -0
- package/dist/esm/J3FDRF32-M7MNUPOJ.js +6 -0
- package/dist/esm/chunk-DE5GFHYC.js +3 -0
- package/dist/esm/chunk-LJEBBGQM.js +1335 -0
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +788 -1016
- package/dist/index.css +1 -1
- package/dist/index.d.mts +435 -78
- package/dist/index.d.ts +435 -78
- package/dist/index.js +896 -1089
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +18 -10
- package/dist/CircularStd-Book-QH24MWNT.woff2 +0 -0
- package/dist/CircularStd-Book-WO57ECZG.woff +0 -0
- package/dist/CircularStd-Book-X7C7G6T7.ttf +0 -0
- package/dist/CircularStd-BookItalic-FKVXO6VC.woff +0 -0
- package/dist/CircularStd-BookItalic-JMRK2M3F.ttf +0 -0
- package/dist/CircularStd-BookItalic-N7R5KSUJ.woff2 +0 -0
- package/dist/esm/CircularStd-Book-QH24MWNT.woff2 +0 -0
- package/dist/esm/CircularStd-Book-WO57ECZG.woff +0 -0
- package/dist/esm/CircularStd-Book-X7C7G6T7.ttf +0 -0
- package/dist/esm/CircularStd-BookItalic-FKVXO6VC.woff +0 -0
- package/dist/esm/CircularStd-BookItalic-JMRK2M3F.ttf +0 -0
- package/dist/esm/CircularStd-BookItalic-N7R5KSUJ.woff2 +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,31 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
|
2
2
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
3
3
|
import * as styled_components from 'styled-components';
|
|
4
|
+
import { FeedSourceEnum } from '@amityco/ts-sdk';
|
|
4
5
|
|
|
5
6
|
type AmityReactionType = {
|
|
6
7
|
name: string;
|
|
7
8
|
image: string;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
|
-
type
|
|
11
|
+
type IconConfiguration = {
|
|
12
|
+
icon?: string;
|
|
13
|
+
image?: string;
|
|
14
|
+
};
|
|
15
|
+
type TextConfiguration = {
|
|
16
|
+
text?: string;
|
|
17
|
+
};
|
|
18
|
+
type CustomConfiguration = {
|
|
19
|
+
[key: string]: string | undefined | boolean | Array<string> | number | Record<string, unknown>;
|
|
20
|
+
};
|
|
21
|
+
type ThemeConfiguration = {
|
|
22
|
+
preferred_theme?: 'light' | 'dark' | 'default';
|
|
23
|
+
theme?: {
|
|
24
|
+
light?: Partial<Theme['light']>;
|
|
25
|
+
dark?: Partial<Theme['dark']>;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type ConfigurableThemeValue = {
|
|
11
29
|
primary_color: string;
|
|
12
30
|
secondary_color: string;
|
|
13
31
|
secondary_shade1_color: string;
|
|
@@ -25,16 +43,25 @@ type ThemeValue = {
|
|
|
25
43
|
base_inverse_color: string;
|
|
26
44
|
};
|
|
27
45
|
type Theme = {
|
|
28
|
-
light:
|
|
29
|
-
dark:
|
|
46
|
+
light: ConfigurableThemeValue;
|
|
47
|
+
dark: ConfigurableThemeValue;
|
|
30
48
|
};
|
|
31
|
-
type
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
49
|
+
type GetConfigReturnValue = IconConfiguration & TextConfiguration & ThemeConfiguration & CustomConfiguration;
|
|
50
|
+
type DefaultConfig = {
|
|
51
|
+
preferred_theme: 'light' | 'dark' | 'default';
|
|
52
|
+
theme: {
|
|
53
|
+
light: Theme['light'];
|
|
54
|
+
dark: Theme['dark'];
|
|
55
|
+
};
|
|
56
|
+
excludes: string[];
|
|
57
|
+
customizations?: {
|
|
58
|
+
[key: string]: GetConfigReturnValue;
|
|
36
59
|
};
|
|
37
60
|
};
|
|
61
|
+
|
|
62
|
+
type NetworkConfig = {
|
|
63
|
+
config: DefaultConfig;
|
|
64
|
+
};
|
|
38
65
|
interface Config {
|
|
39
66
|
preferred_theme?: 'light' | 'dark' | 'default';
|
|
40
67
|
theme?: {
|
|
@@ -44,19 +71,25 @@ interface Config {
|
|
|
44
71
|
excludes?: string[];
|
|
45
72
|
message_reactions?: AmityReactionType[];
|
|
46
73
|
customizations?: {
|
|
47
|
-
[key: string]:
|
|
74
|
+
[key: string]: GetConfigReturnValue;
|
|
48
75
|
};
|
|
49
76
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
77
|
+
|
|
78
|
+
interface PostDetailPageProps {
|
|
79
|
+
id: string;
|
|
80
|
+
hideTarget?: boolean;
|
|
81
|
+
category?: AmityPostCategory;
|
|
82
|
+
commentId?: string;
|
|
83
|
+
parentId?: string;
|
|
84
|
+
posts?: Amity.Post<'clip' | 'video'>[];
|
|
85
|
+
selectedReplyComment?: Amity.Comment;
|
|
86
|
+
showReplyCommentAt?: string;
|
|
87
|
+
keyword?: string;
|
|
88
|
+
}
|
|
89
|
+
interface GoToPostDetailPageParams extends Omit<PostDetailPageProps, 'id'> {
|
|
90
|
+
postId: string;
|
|
91
|
+
}
|
|
92
|
+
declare function PostDetailPage({ id, hideTarget, category, commentId, parentId, posts, selectedReplyComment, showReplyCommentAt, keyword, }: PostDetailPageProps): React.JSX.Element | null;
|
|
60
93
|
|
|
61
94
|
declare enum AmityPostContentComponentStyle {
|
|
62
95
|
FEED = "feed",
|
|
@@ -71,8 +104,9 @@ declare enum AmityPostCategory {
|
|
|
71
104
|
}
|
|
72
105
|
interface PostContentProps {
|
|
73
106
|
post: Amity.Post;
|
|
74
|
-
onClick?: () => void;
|
|
107
|
+
onClick?: (context?: Pick<PostDetailPageProps, 'commentId' | 'selectedReplyComment' | 'parentId' | 'showReplyCommentAt'>) => void;
|
|
75
108
|
onPostDeleted?: (post: Amity.Post) => void;
|
|
109
|
+
onPollPostDeleted?: (post: Amity.Post) => void;
|
|
76
110
|
style: AmityPostContentComponentStyle;
|
|
77
111
|
category: AmityPostCategory;
|
|
78
112
|
hideMenu?: boolean;
|
|
@@ -82,8 +116,9 @@ interface PostContentProps {
|
|
|
82
116
|
isSearchPost?: boolean;
|
|
83
117
|
keyword?: string;
|
|
84
118
|
isGlobalFeaturePost?: boolean;
|
|
119
|
+
className?: string;
|
|
85
120
|
}
|
|
86
|
-
declare const PostContent: ({ pageId, post
|
|
121
|
+
declare const PostContent: ({ pageId, post, onClick, onPostDeleted, onPollPostDeleted, category, hideMenu, hideTarget, style, disabledContent, isSearchPost, keyword, isGlobalFeaturePost, className, }: PostContentProps) => React.JSX.Element;
|
|
87
122
|
|
|
88
123
|
type MemberCommunitySetup = {
|
|
89
124
|
userId: string;
|
|
@@ -93,6 +128,15 @@ declare enum AmityCommunitySetupPageMode {
|
|
|
93
128
|
CREATE = "create",
|
|
94
129
|
EDIT = "edit"
|
|
95
130
|
}
|
|
131
|
+
interface CommunitySetupEditOptions {
|
|
132
|
+
mode: AmityCommunitySetupPageMode.EDIT;
|
|
133
|
+
community: Amity.Community;
|
|
134
|
+
}
|
|
135
|
+
interface CommunitySetupCreateOptions {
|
|
136
|
+
mode: AmityCommunitySetupPageMode.CREATE;
|
|
137
|
+
}
|
|
138
|
+
type CommunitySetupPageProps = CommunitySetupCreateOptions | CommunitySetupEditOptions;
|
|
139
|
+
declare const CommunitySetupPage: (props: CommunitySetupPageProps) => React.JSX.Element;
|
|
96
140
|
|
|
97
141
|
declare enum Mode {
|
|
98
142
|
CREATE = "create",
|
|
@@ -101,12 +145,14 @@ declare enum Mode {
|
|
|
101
145
|
interface AmityPostComposerEditOptions {
|
|
102
146
|
mode: Mode.EDIT;
|
|
103
147
|
post: Amity.Post;
|
|
148
|
+
isClipPost?: boolean;
|
|
104
149
|
}
|
|
105
150
|
interface AmityPostComposerCreateOptions {
|
|
106
151
|
mode: Mode.CREATE;
|
|
107
152
|
targetId: string | null;
|
|
108
153
|
targetType: 'community' | 'user';
|
|
109
154
|
community?: Amity.Community;
|
|
155
|
+
isClipPost?: boolean;
|
|
110
156
|
}
|
|
111
157
|
type PostComposerPageProps = AmityPostComposerCreateOptions | AmityPostComposerEditOptions;
|
|
112
158
|
declare function PostComposerPage(props: PostComposerPageProps): React.JSX.Element;
|
|
@@ -115,6 +161,11 @@ declare const enum UserRelationshipPageTabs {
|
|
|
115
161
|
FOLLOWING = "following",
|
|
116
162
|
FOLLOWER = "followers"
|
|
117
163
|
}
|
|
164
|
+
type UserRelationshipPageProps = {
|
|
165
|
+
userId: string;
|
|
166
|
+
selectedTab: UserRelationshipPageTabs;
|
|
167
|
+
};
|
|
168
|
+
declare const UserRelationshipPage: FC<UserRelationshipPageProps>;
|
|
118
169
|
|
|
119
170
|
interface PageBehavior {
|
|
120
171
|
AmityStoryViewPageBehavior?: {
|
|
@@ -125,13 +176,15 @@ interface PageBehavior {
|
|
|
125
176
|
closeAction?(): void;
|
|
126
177
|
};
|
|
127
178
|
onClickHyperLink?(): void;
|
|
128
|
-
AmitySocialHomePageBehavior?:
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
category?: AmityPostCategory;
|
|
179
|
+
AmitySocialHomePageBehavior?: {
|
|
180
|
+
goToNotificationTrayPage?: () => void;
|
|
181
|
+
goToClipFeedPage?: (context: {
|
|
182
|
+
currentPostId?: string;
|
|
183
|
+
postIndex?: number;
|
|
134
184
|
}) => void;
|
|
185
|
+
};
|
|
186
|
+
AmityGlobalFeedComponentBehavior?: {
|
|
187
|
+
goToPostDetailPage?: (context: GoToPostDetailPageParams) => void;
|
|
135
188
|
goToViewStoryPage?: (context: {
|
|
136
189
|
targetId: string;
|
|
137
190
|
targetType: Amity.StoryTargetType;
|
|
@@ -142,7 +195,17 @@ interface PageBehavior {
|
|
|
142
195
|
mode: AmityCommunitySetupPageMode;
|
|
143
196
|
}): void;
|
|
144
197
|
};
|
|
145
|
-
AmityPostDetailPageBehavior?:
|
|
198
|
+
AmityPostDetailPageBehavior?: {
|
|
199
|
+
goToClipFeedPage?: (context: {
|
|
200
|
+
currentPostId?: string;
|
|
201
|
+
postIndex?: number;
|
|
202
|
+
targetType?: 'community' | 'user';
|
|
203
|
+
targetId?: string;
|
|
204
|
+
}) => void;
|
|
205
|
+
goToSocialGlobalSearchPage?: (context: {
|
|
206
|
+
keyword: string;
|
|
207
|
+
}) => void;
|
|
208
|
+
};
|
|
146
209
|
AmityPostContentComponentBehavior?: {
|
|
147
210
|
goToCommunityProfilePage?: (context: {
|
|
148
211
|
communityId: string;
|
|
@@ -153,9 +216,17 @@ interface PageBehavior {
|
|
|
153
216
|
goToPostComposerPage?: (context: {
|
|
154
217
|
mode: Mode.EDIT;
|
|
155
218
|
post: Amity.Post;
|
|
219
|
+
isClipPost?: boolean;
|
|
220
|
+
}) => void;
|
|
221
|
+
};
|
|
222
|
+
AmitySocialGlobalSearchPageBehavior?: {
|
|
223
|
+
goToPostDetailPage?: (context: {
|
|
224
|
+
postId: string;
|
|
225
|
+
hideTarget?: boolean;
|
|
226
|
+
category?: AmityPostCategory;
|
|
227
|
+
keyword?: string;
|
|
156
228
|
}) => void;
|
|
157
229
|
};
|
|
158
|
-
AmitySocialGlobalSearchPageBehavior?: Record<string, unknown>;
|
|
159
230
|
AmityCommunitySearchResultComponentBehavior?: {
|
|
160
231
|
goToCommunityProfilePage?: (context: {
|
|
161
232
|
communityId: string;
|
|
@@ -168,6 +239,9 @@ interface PageBehavior {
|
|
|
168
239
|
};
|
|
169
240
|
AmityCreatePostMenuComponentBehavior?: {
|
|
170
241
|
goToSelectPostTargetPage?(): void;
|
|
242
|
+
goToSelectClipPostTargetPage?(context: {
|
|
243
|
+
isClipPost: boolean;
|
|
244
|
+
}): void;
|
|
171
245
|
goToStoryTargetSelectionPage?(): void;
|
|
172
246
|
goToSelectPollPostTargetPage?(): void;
|
|
173
247
|
};
|
|
@@ -178,6 +252,11 @@ interface PageBehavior {
|
|
|
178
252
|
targetType: 'community' | 'user';
|
|
179
253
|
community?: Amity.Community;
|
|
180
254
|
}) => void;
|
|
255
|
+
goToDraftClipPage?: (context: {
|
|
256
|
+
targetId: string | null;
|
|
257
|
+
targetType: 'community' | 'user';
|
|
258
|
+
community?: Amity.Community;
|
|
259
|
+
}) => void;
|
|
181
260
|
};
|
|
182
261
|
AmityStoryTargetSelectionPage?: {
|
|
183
262
|
goToStoryCreationPage?(context: {
|
|
@@ -203,12 +282,9 @@ interface PageBehavior {
|
|
|
203
282
|
targetType: 'community' | 'user';
|
|
204
283
|
community?: Amity.Community;
|
|
205
284
|
post?: Amity.Post;
|
|
285
|
+
isClipPost?: boolean;
|
|
206
286
|
}): void;
|
|
207
|
-
goToPostDetailPage?(context:
|
|
208
|
-
postId: string;
|
|
209
|
-
hideTarget?: boolean;
|
|
210
|
-
category?: AmityPostCategory;
|
|
211
|
-
}): void;
|
|
287
|
+
goToPostDetailPage?(context: GoToPostDetailPageParams): void;
|
|
212
288
|
goToStoryCreationPage?(context: {
|
|
213
289
|
targetId: string | null;
|
|
214
290
|
targetType: Amity.StoryTargetType;
|
|
@@ -237,7 +313,22 @@ interface PageBehavior {
|
|
|
237
313
|
goToPollPostComposerPage?(context: {
|
|
238
314
|
targetId: string | null;
|
|
239
315
|
targetType: 'community' | 'user';
|
|
316
|
+
pollType?: 'text' | 'image';
|
|
317
|
+
}): void;
|
|
318
|
+
goToPendingRequestPage?(context: {
|
|
319
|
+
community: Amity.Community;
|
|
320
|
+
}): void;
|
|
321
|
+
goToDraftClipPage?(context: {
|
|
322
|
+
targetId: string | null;
|
|
323
|
+
targetType: 'community' | 'user';
|
|
324
|
+
community?: Amity.Community;
|
|
240
325
|
}): void;
|
|
326
|
+
goToClipFeedPage?: (context: {
|
|
327
|
+
currentPostId?: string;
|
|
328
|
+
postIndex?: number;
|
|
329
|
+
targetType?: 'community' | 'user';
|
|
330
|
+
targetId?: string;
|
|
331
|
+
}) => void;
|
|
241
332
|
};
|
|
242
333
|
AmitySocialHomeTopNavigationComponentBehavior?: {
|
|
243
334
|
goToCreateCommunityPage?(context: {
|
|
@@ -253,6 +344,10 @@ interface PageBehavior {
|
|
|
253
344
|
communityId?: string;
|
|
254
345
|
onAddedAction?: (userId: string[]) => void;
|
|
255
346
|
}): void;
|
|
347
|
+
goToInviteMemberPage?(context: {
|
|
348
|
+
communityId?: string;
|
|
349
|
+
onSubmit?: (userId: string[]) => void;
|
|
350
|
+
}): void;
|
|
256
351
|
};
|
|
257
352
|
AmityCommunitySettingPageBehavior?: {
|
|
258
353
|
goToEditCommunityPage?(context: {
|
|
@@ -262,6 +357,9 @@ interface PageBehavior {
|
|
|
262
357
|
goToMembershipPage?(context: {
|
|
263
358
|
community: Amity.Community;
|
|
264
359
|
}): void;
|
|
360
|
+
goToPendingInvitationPage?(context: {
|
|
361
|
+
community: Amity.Community;
|
|
362
|
+
}): void;
|
|
265
363
|
goToPostPermissionPage?(context: {
|
|
266
364
|
community: Amity.Community;
|
|
267
365
|
}): void;
|
|
@@ -270,7 +368,7 @@ interface PageBehavior {
|
|
|
270
368
|
}): void;
|
|
271
369
|
goToSocialHomePage?(): void;
|
|
272
370
|
};
|
|
273
|
-
|
|
371
|
+
AmityCommunityMembershipPageBehavior?: {
|
|
274
372
|
goToAddMemberPage?(context: {
|
|
275
373
|
members?: MemberCommunitySetup[];
|
|
276
374
|
communityId?: string;
|
|
@@ -279,11 +377,23 @@ interface PageBehavior {
|
|
|
279
377
|
goToUserProfilePage?: (context: {
|
|
280
378
|
userId: string;
|
|
281
379
|
}) => void;
|
|
380
|
+
goToInviteMemberPage?(context: {
|
|
381
|
+
communityId?: string;
|
|
382
|
+
onSubmit?: (userId: string[]) => void;
|
|
383
|
+
}): void;
|
|
384
|
+
};
|
|
385
|
+
AmityCommunityPendingInvitationPageBehavior?: {
|
|
386
|
+
goToUserProfilePage?: (context: {
|
|
387
|
+
userId: string;
|
|
388
|
+
}) => void;
|
|
389
|
+
};
|
|
390
|
+
AmityCommunityInviteMemberPageBehavior?: {
|
|
391
|
+
goToUserProfilePage?: (context: {
|
|
392
|
+
userId: string;
|
|
393
|
+
}) => void;
|
|
282
394
|
};
|
|
283
395
|
AmityUserFeedComponentBehavior?: {
|
|
284
|
-
goToPostDetailPage?(context:
|
|
285
|
-
postId: string;
|
|
286
|
-
}): void;
|
|
396
|
+
goToPostDetailPage?(context: GoToPostDetailPageParams): void;
|
|
287
397
|
};
|
|
288
398
|
AmityUserProfilePageBehavior?: {
|
|
289
399
|
goToEditUserPage?(context: {
|
|
@@ -292,26 +402,38 @@ interface PageBehavior {
|
|
|
292
402
|
goToBlockedUsersPage?(): void;
|
|
293
403
|
goToPostComposerPage?(context: {
|
|
294
404
|
userId: string;
|
|
405
|
+
isClipPost?: boolean;
|
|
406
|
+
}): void;
|
|
407
|
+
goToDraftClipPage?(context: {
|
|
408
|
+
targetId: string | null;
|
|
409
|
+
targetType: 'community' | 'user';
|
|
410
|
+
community?: Amity.Community;
|
|
295
411
|
}): void;
|
|
412
|
+
goToClipFeedPage?: (context: {
|
|
413
|
+
currentPostId?: string;
|
|
414
|
+
postIndex?: number;
|
|
415
|
+
targetType?: 'community' | 'user';
|
|
416
|
+
targetId?: string;
|
|
417
|
+
}) => void;
|
|
296
418
|
};
|
|
297
|
-
AmityUserProfileHeaderComponentBehavior
|
|
419
|
+
AmityUserProfileHeaderComponentBehavior?: {
|
|
298
420
|
goToUserRelationshipPage?(context: {
|
|
299
421
|
userId: string;
|
|
300
422
|
selectedTab: UserRelationshipPageTabs;
|
|
301
423
|
}): void;
|
|
302
424
|
goToPendingFollowRequestPage?(): void;
|
|
303
425
|
};
|
|
304
|
-
AmityUserRelationshipPageBehavior
|
|
426
|
+
AmityUserRelationshipPageBehavior?: {
|
|
305
427
|
goToUserProfilePage?(context: {
|
|
306
428
|
userId: string;
|
|
307
429
|
}): void;
|
|
308
430
|
};
|
|
309
|
-
AmityUserPendingFollowRequestsPageBehavior
|
|
431
|
+
AmityUserPendingFollowRequestsPageBehavior?: {
|
|
310
432
|
goToUserProfilePage?(context: {
|
|
311
433
|
userId: string;
|
|
312
434
|
}): void;
|
|
313
435
|
};
|
|
314
|
-
AmityBlockedUsersPageBehavior
|
|
436
|
+
AmityBlockedUsersPageBehavior?: {
|
|
315
437
|
goToUserProfilePage?(context: {
|
|
316
438
|
userId: string;
|
|
317
439
|
}): void;
|
|
@@ -320,6 +442,37 @@ interface PageBehavior {
|
|
|
320
442
|
goToPollPostComposerPage?(context: {
|
|
321
443
|
targetId: string | null;
|
|
322
444
|
targetType: 'community' | 'user';
|
|
445
|
+
pollType?: 'text' | 'image';
|
|
446
|
+
}): void;
|
|
447
|
+
};
|
|
448
|
+
AmityNotificationTrayPageBehavior?: {
|
|
449
|
+
goToCommunityProfilePage?(context: {
|
|
450
|
+
communityId: string;
|
|
451
|
+
}): void;
|
|
452
|
+
goToPostDetailPage?(context: GoToPostDetailPageParams): void;
|
|
453
|
+
goToUserProfilePage?(context: {
|
|
454
|
+
userId: string;
|
|
455
|
+
}): void;
|
|
456
|
+
};
|
|
457
|
+
AmityDraftClipPageBehavior?: {
|
|
458
|
+
goToPostComposerPage?(context: {
|
|
459
|
+
mode: Mode.CREATE;
|
|
460
|
+
targetId: string | null;
|
|
461
|
+
targetType: 'community' | 'user';
|
|
462
|
+
community?: Amity.Community;
|
|
463
|
+
isClipPost?: boolean;
|
|
464
|
+
}): void;
|
|
465
|
+
};
|
|
466
|
+
AmityClipFeedPageBehavior?: {
|
|
467
|
+
goToSelectClipPostTargetPage?(context: {
|
|
468
|
+
isClipPost: boolean;
|
|
469
|
+
}): void;
|
|
470
|
+
goToPostDetailPage?(context: GoToPostDetailPageParams): void;
|
|
471
|
+
goToUserProfilePage?(context: {
|
|
472
|
+
userId: string;
|
|
473
|
+
}): void;
|
|
474
|
+
goToCommunityProfilePage?(context: {
|
|
475
|
+
communityId: string;
|
|
323
476
|
}): void;
|
|
324
477
|
};
|
|
325
478
|
}
|
|
@@ -333,6 +486,7 @@ interface UltaConfigContextProps {
|
|
|
333
486
|
termsAndConditionsUrl: string;
|
|
334
487
|
allowUpdateDisplayName?: boolean;
|
|
335
488
|
defaultTab?: 'explore' | 'newsfeed';
|
|
489
|
+
contactSupportUrl: string;
|
|
336
490
|
deeplink?: {
|
|
337
491
|
origin?: string;
|
|
338
492
|
groupQueryString?: string;
|
|
@@ -348,6 +502,7 @@ interface AmityUIKitProviderProps {
|
|
|
348
502
|
apiEndpoint?: {
|
|
349
503
|
http?: string;
|
|
350
504
|
mqtt?: string;
|
|
505
|
+
upload?: string;
|
|
351
506
|
};
|
|
352
507
|
userId: string;
|
|
353
508
|
displayName?: string;
|
|
@@ -378,6 +533,8 @@ interface AmityUIKitProviderProps {
|
|
|
378
533
|
configs?: AmityUIKitConfig;
|
|
379
534
|
ultaConfig: UltaConfigContextProps;
|
|
380
535
|
onRouteChange?: (route: string) => void;
|
|
536
|
+
seoOptimizationEnabled?: boolean;
|
|
537
|
+
syncNetworkConfig?: boolean;
|
|
381
538
|
}
|
|
382
539
|
declare const AmityUIKitProvider: React.FC<AmityUIKitProviderProps>;
|
|
383
540
|
|
|
@@ -409,6 +566,11 @@ declare const ChatApplication: ({ membershipFilter, defaultChannelId, onMemberSe
|
|
|
409
566
|
}) => void) | undefined;
|
|
410
567
|
}) => React.JSX.Element;
|
|
411
568
|
|
|
569
|
+
type PageRendererProps = {
|
|
570
|
+
children: React.JSX.Element;
|
|
571
|
+
};
|
|
572
|
+
declare const PageRenderer: ({ children }: PageRendererProps) => React.JSX.Element | null;
|
|
573
|
+
|
|
412
574
|
declare const addChatMembers: (channelId: string, userIds: string[]) => Promise<boolean>;
|
|
413
575
|
|
|
414
576
|
declare const removeChatMembers: (channelId: string, userIds: string[]) => Promise<boolean>;
|
|
@@ -575,6 +737,8 @@ declare class AmityUIKitManager {
|
|
|
575
737
|
private onConnectionStatusChange?;
|
|
576
738
|
private onConnected?;
|
|
577
739
|
private onDisconnected?;
|
|
740
|
+
private globalBannedUnsubscribe?;
|
|
741
|
+
private onGlobalBanned?;
|
|
578
742
|
/**
|
|
579
743
|
* Private constructor to prevent direct instantiation.
|
|
580
744
|
*/
|
|
@@ -590,6 +754,7 @@ declare class AmityUIKitManager {
|
|
|
590
754
|
http?: string;
|
|
591
755
|
mqtt?: string;
|
|
592
756
|
};
|
|
757
|
+
seoOptimizationEnabled?: boolean;
|
|
593
758
|
}): void;
|
|
594
759
|
/**
|
|
595
760
|
* Registers a device with the Amity SDK and handles the login process.
|
|
@@ -601,7 +766,7 @@ declare class AmityUIKitManager {
|
|
|
601
766
|
* @param onConnected - The callback function to be called when connected.
|
|
602
767
|
* @param onDisconnected - The callback function to be called when disconnected.
|
|
603
768
|
*/
|
|
604
|
-
static registerDevice(userId: string, sessionHandler: SessionHandler, displayName?: string, authToken?: string, onConnectionStatusChange?: (state: Amity.SessionStates) => void, onConnected?: () => void, onDisconnected?: () => void): Promise<void>;
|
|
769
|
+
static registerDevice(userId: string, sessionHandler: SessionHandler, displayName?: string, authToken?: string, onConnectionStatusChange?: (state: Amity.SessionStates) => void, onConnected?: () => void, onDisconnected?: () => void, onGlobalBanned?: (payload: Amity.UserPayload) => void): Promise<void>;
|
|
605
770
|
/**
|
|
606
771
|
* Sets the AmityClient instance to be used by the AmityUIKitManager.
|
|
607
772
|
* This method is useful when sharing the AmityClient instance between different parts of the application.
|
|
@@ -629,6 +794,7 @@ declare class AmityUIKitManager {
|
|
|
629
794
|
* @returns True if the client is connected, false otherwise.
|
|
630
795
|
*/
|
|
631
796
|
isClientConnected(): boolean;
|
|
797
|
+
static syncNetworkConfig(): Promise<NetworkConfig>;
|
|
632
798
|
}
|
|
633
799
|
|
|
634
800
|
interface ChatHeaderProps {
|
|
@@ -651,14 +817,14 @@ type ComposeActionTypes = {
|
|
|
651
817
|
clearReplyMessage?: () => void;
|
|
652
818
|
clearMention?: () => void;
|
|
653
819
|
};
|
|
820
|
+
|
|
654
821
|
interface MessageComposerProps {
|
|
655
822
|
channel: Amity.Channel;
|
|
656
|
-
composeAction
|
|
657
|
-
suggestionRef?: RefObject<HTMLDivElement>;
|
|
823
|
+
composeAction?: ComposeActionTypes;
|
|
658
824
|
disabled?: boolean;
|
|
659
825
|
pageId?: string;
|
|
660
826
|
}
|
|
661
|
-
declare const MessageComposer: ({ pageId, channel, composeAction
|
|
827
|
+
declare const MessageComposer: ({ pageId, channel, composeAction }: MessageComposerProps) => React.JSX.Element;
|
|
662
828
|
|
|
663
829
|
declare const MessageReactionPreview: ({ message, onClick, }: {
|
|
664
830
|
message: Amity.Message;
|
|
@@ -702,7 +868,7 @@ interface ReactionListProps {
|
|
|
702
868
|
interface LiveChatProps {
|
|
703
869
|
channelId: Amity.Channel['channelId'];
|
|
704
870
|
}
|
|
705
|
-
declare const LiveChat: ({ channelId }: LiveChatProps) => React.JSX.Element;
|
|
871
|
+
declare const LiveChat: ({ channelId }: LiveChatProps) => React.JSX.Element | null;
|
|
706
872
|
|
|
707
873
|
type AmityStoryMediaType = {
|
|
708
874
|
type: 'image';
|
|
@@ -759,20 +925,62 @@ declare const ViewStoryPage: React.FC<AmityViewStoryPageProps>;
|
|
|
759
925
|
|
|
760
926
|
declare function StoryTargetSelectionPage(): React.JSX.Element;
|
|
761
927
|
|
|
762
|
-
declare
|
|
928
|
+
declare enum HomePageTab {
|
|
929
|
+
Newsfeed = "Newsfeed",
|
|
930
|
+
Explore = "Explore",
|
|
931
|
+
Profile = "Profile",
|
|
932
|
+
MyCommunities = "My communities",
|
|
933
|
+
Clips = "Clips"
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
declare function SocialHomePage({ activeTab: initialActiveTab }: {
|
|
937
|
+
activeTab?: HomePageTab;
|
|
938
|
+
}): React.JSX.Element;
|
|
763
939
|
|
|
764
|
-
declare function SelectPostTargetPage(
|
|
940
|
+
declare function SelectPostTargetPage({ isClipPost }: {
|
|
941
|
+
isClipPost?: boolean;
|
|
942
|
+
}): React.JSX.Element;
|
|
765
943
|
|
|
766
944
|
declare function MyCommunitiesSearchPage(): React.JSX.Element;
|
|
767
945
|
|
|
768
|
-
declare function SocialGlobalSearchPage(
|
|
946
|
+
declare function SocialGlobalSearchPage({ keyword }: {
|
|
947
|
+
keyword?: string;
|
|
948
|
+
}): React.JSX.Element;
|
|
769
949
|
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
950
|
+
type UserProfilePageProps = {
|
|
951
|
+
userId: string;
|
|
952
|
+
isShowBackButton?: boolean;
|
|
953
|
+
};
|
|
954
|
+
declare const UserProfilePage: React.FC<UserProfilePageProps>;
|
|
955
|
+
|
|
956
|
+
interface EditUserProfilePageProps {
|
|
957
|
+
userId: string;
|
|
958
|
+
}
|
|
959
|
+
declare const EditUserProfilePage: React.FC<EditUserProfilePageProps>;
|
|
960
|
+
|
|
961
|
+
declare const BlockedUserPage: () => React.JSX.Element;
|
|
962
|
+
|
|
963
|
+
declare const UserPendingFollowRequestPage: () => React.JSX.Element;
|
|
964
|
+
|
|
965
|
+
interface CommunityAddCategoryPageProps {
|
|
966
|
+
category?: Amity.Category[];
|
|
967
|
+
}
|
|
968
|
+
declare const CommunityAddCategoryPage: ({ category }: CommunityAddCategoryPageProps) => React.JSX.Element;
|
|
969
|
+
|
|
970
|
+
interface CommunityAddMemberPageProps {
|
|
971
|
+
member?: MemberCommunitySetup[];
|
|
972
|
+
communityId?: string;
|
|
973
|
+
closePopup?: () => void;
|
|
974
|
+
onAddedAction?: (userId: string[]) => void;
|
|
774
975
|
}
|
|
775
|
-
declare
|
|
976
|
+
declare const CommunityAddMemberPage: ({ member, closePopup, communityId, onAddedAction, }: CommunityAddMemberPageProps) => React.JSX.Element;
|
|
977
|
+
|
|
978
|
+
type CommunityInviteMemberPageProps = {
|
|
979
|
+
communityId?: string;
|
|
980
|
+
users?: Amity.User[];
|
|
981
|
+
onSubmit?: (userId: string[]) => void;
|
|
982
|
+
};
|
|
983
|
+
declare const CommunityInviteMemberPage: (props: CommunityInviteMemberPageProps) => React.JSX.Element;
|
|
776
984
|
|
|
777
985
|
interface CommunityProfileProps {
|
|
778
986
|
communityId: string;
|
|
@@ -780,16 +988,79 @@ interface CommunityProfileProps {
|
|
|
780
988
|
}
|
|
781
989
|
declare const CommunityProfilePage: React.FC<CommunityProfileProps>;
|
|
782
990
|
|
|
783
|
-
type
|
|
784
|
-
|
|
785
|
-
isShowBackButton?: boolean;
|
|
991
|
+
type CommunitySettingPageProps = {
|
|
992
|
+
community: Amity.Community;
|
|
786
993
|
};
|
|
787
|
-
declare const
|
|
994
|
+
declare const CommunitySettingPage: ({ community }: CommunitySettingPageProps) => React.JSX.Element;
|
|
788
995
|
|
|
789
|
-
|
|
790
|
-
|
|
996
|
+
type CommunityPostPermissionPageProps = {
|
|
997
|
+
community: Amity.Community;
|
|
998
|
+
};
|
|
999
|
+
declare const CommunityPostPermissionPage: ({ community }: CommunityPostPermissionPageProps) => React.JSX.Element;
|
|
1000
|
+
|
|
1001
|
+
type CommunityStorySettingPageProps = {
|
|
1002
|
+
community: Amity.Community;
|
|
1003
|
+
};
|
|
1004
|
+
declare const CommunityStorySettingPage: ({ community }: CommunityStorySettingPageProps) => React.JSX.Element;
|
|
1005
|
+
|
|
1006
|
+
type PendingPostsPageProps = {
|
|
1007
|
+
communityId: string;
|
|
1008
|
+
};
|
|
1009
|
+
declare const PendingPostsPage: ({ communityId }: PendingPostsPageProps) => React.JSX.Element;
|
|
1010
|
+
|
|
1011
|
+
type CommunityMembershipPageProps = {
|
|
1012
|
+
community: Amity.Community;
|
|
1013
|
+
};
|
|
1014
|
+
declare const CommunityMembershipPage: ({ community }: CommunityMembershipPageProps) => React.JSX.Element;
|
|
1015
|
+
|
|
1016
|
+
type CommunityPendingInvitationPageProps = {
|
|
1017
|
+
community: Amity.Community;
|
|
1018
|
+
};
|
|
1019
|
+
declare function CommunityPendingInvitationPage(props: CommunityPendingInvitationPageProps): React.JSX.Element;
|
|
1020
|
+
|
|
1021
|
+
type PollPostComposerPageProps = {
|
|
1022
|
+
targetId: string | null;
|
|
1023
|
+
targetType: 'community' | 'user';
|
|
1024
|
+
pollType?: 'text' | 'image';
|
|
1025
|
+
};
|
|
1026
|
+
declare const PollPostComposerPage: ({ targetId, targetType, pollType, }: PollPostComposerPageProps) => React.JSX.Element;
|
|
1027
|
+
|
|
1028
|
+
declare function PollTargetSelectionPage(): React.JSX.Element;
|
|
1029
|
+
|
|
1030
|
+
declare function AllCategoriesPage(): React.JSX.Element;
|
|
1031
|
+
|
|
1032
|
+
interface CommunitiesByCategoryPageProps {
|
|
1033
|
+
categoryId: string;
|
|
791
1034
|
}
|
|
792
|
-
declare
|
|
1035
|
+
declare function CommunitiesByCategoryPage({ categoryId }: CommunitiesByCategoryPageProps): React.JSX.Element;
|
|
1036
|
+
|
|
1037
|
+
type LiveStreamPlayerPageProps = {
|
|
1038
|
+
post: Amity.Post;
|
|
1039
|
+
goToDetailPage?: (context?: GoToPostDetailPageParams) => void;
|
|
1040
|
+
};
|
|
1041
|
+
declare function LiveStreamPlayerPage({ post, goToDetailPage }: LiveStreamPlayerPageProps): React.JSX.Element;
|
|
1042
|
+
|
|
1043
|
+
declare function LivestreamTerminatedPage(): React.JSX.Element;
|
|
1044
|
+
|
|
1045
|
+
type PendingRequestPageProps = {
|
|
1046
|
+
community: Amity.Community;
|
|
1047
|
+
};
|
|
1048
|
+
declare const PendingRequestPage: ({ community }: PendingRequestPageProps) => React.JSX.Element | null;
|
|
1049
|
+
|
|
1050
|
+
type DraftClipPageProps = {
|
|
1051
|
+
targetId: string | null;
|
|
1052
|
+
targetType: 'community' | 'user';
|
|
1053
|
+
community?: Amity.Community;
|
|
1054
|
+
};
|
|
1055
|
+
declare const DraftClipPage: ({ targetId, targetType, community }: DraftClipPageProps) => React.JSX.Element;
|
|
1056
|
+
|
|
1057
|
+
type ClipFeedPageProps = {
|
|
1058
|
+
currentPostId?: string;
|
|
1059
|
+
postIndex?: number;
|
|
1060
|
+
targetType?: 'community' | 'user';
|
|
1061
|
+
targetId?: string;
|
|
1062
|
+
};
|
|
1063
|
+
declare const ClipFeedPage: ({ currentPostId, postIndex, targetType, targetId, }: ClipFeedPageProps) => React.JSX.Element;
|
|
793
1064
|
|
|
794
1065
|
type CommentTrayProps = {
|
|
795
1066
|
pageId?: string;
|
|
@@ -822,20 +1093,22 @@ interface MediaAttachmentProps {
|
|
|
822
1093
|
isVisibleCamera: boolean;
|
|
823
1094
|
isVisibleImage: boolean;
|
|
824
1095
|
isVisibleVideo: boolean;
|
|
825
|
-
|
|
826
|
-
|
|
1096
|
+
totalMedia?: number;
|
|
1097
|
+
onVideoFileChange?: (files: File[], fileType?: string) => void;
|
|
1098
|
+
onImageFileChange?: (files: File[], fileType?: string) => void;
|
|
827
1099
|
}
|
|
828
|
-
declare function MediaAttachment({ pageId, uploadLoading, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps): React.JSX.Element | null;
|
|
1100
|
+
declare function MediaAttachment({ pageId, uploadLoading, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps): React.JSX.Element | null;
|
|
829
1101
|
|
|
830
1102
|
interface DetailedMediaAttachmentProps {
|
|
831
1103
|
pageId: string;
|
|
832
1104
|
isVisibleCamera: boolean;
|
|
833
1105
|
isVisibleImage: boolean;
|
|
834
1106
|
isVisibleVideo: boolean;
|
|
1107
|
+
totalMedia?: number;
|
|
835
1108
|
onVideoFileChange?: (files: File[]) => void;
|
|
836
1109
|
onImageFileChange?: (files: File[]) => void;
|
|
837
1110
|
}
|
|
838
|
-
declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): React.JSX.Element | null;
|
|
1111
|
+
declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): React.JSX.Element | null;
|
|
839
1112
|
|
|
840
1113
|
type UserSearchResultProps = {
|
|
841
1114
|
pageId?: string;
|
|
@@ -862,9 +1135,11 @@ declare const CommunitySearchResult: ({ isLoading, onLoadMore, pageId, onClosePo
|
|
|
862
1135
|
type TopSearchBarProps = {
|
|
863
1136
|
pageId?: string;
|
|
864
1137
|
onFocus?: () => void;
|
|
1138
|
+
hasCancelButton?: boolean;
|
|
865
1139
|
search: (keyword: string) => void;
|
|
1140
|
+
initialValue?: string;
|
|
866
1141
|
};
|
|
867
|
-
declare function TopSearchBar({ pageId, search, onFocus }: TopSearchBarProps): React.JSX.Element | null;
|
|
1142
|
+
declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initialValue, }: TopSearchBarProps): React.JSX.Element | null;
|
|
868
1143
|
|
|
869
1144
|
interface MyCommunitiesProps {
|
|
870
1145
|
pageId?: string;
|
|
@@ -876,11 +1151,12 @@ interface GlobalFeedProps {
|
|
|
876
1151
|
isLoading: boolean;
|
|
877
1152
|
componentId?: string;
|
|
878
1153
|
items: Array<Amity.Post | Amity.Ad>;
|
|
1154
|
+
globalFeaturedPosts?: Array<Amity.PinnedPost>;
|
|
1155
|
+
isGlobalFeaturedPostsLoading?: boolean;
|
|
879
1156
|
onFeedReachBottom: () => void;
|
|
880
|
-
globalFeaturedPosts: Amity.Post[];
|
|
881
1157
|
onPostDeleted?: (post: Amity.Post) => void;
|
|
882
1158
|
}
|
|
883
|
-
declare const GlobalFeed: ({ pageId, componentId, items, isLoading, onFeedReachBottom, onPostDeleted,
|
|
1159
|
+
declare const GlobalFeed: ({ pageId, componentId, items, isLoading, globalFeaturedPosts, isGlobalFeaturedPostsLoading, onFeedReachBottom, onPostDeleted, }: GlobalFeedProps) => React.JSX.Element;
|
|
884
1160
|
|
|
885
1161
|
interface EmptyNewsfeedProps {
|
|
886
1162
|
pageId?: string;
|
|
@@ -892,13 +1168,6 @@ type NewsfeedProps = {
|
|
|
892
1168
|
};
|
|
893
1169
|
declare const Newsfeed: ({ pageId }: NewsfeedProps) => React.JSX.Element;
|
|
894
1170
|
|
|
895
|
-
declare enum HomePageTab {
|
|
896
|
-
Newsfeed = "Newsfeed",
|
|
897
|
-
Explore = "Explore",
|
|
898
|
-
Profile = "Profile",
|
|
899
|
-
MyCommunities = "My communities"
|
|
900
|
-
}
|
|
901
|
-
|
|
902
1171
|
interface TopNavigationProps {
|
|
903
1172
|
pageId?: string;
|
|
904
1173
|
selectedTab?: HomePageTab;
|
|
@@ -925,4 +1194,92 @@ interface CommunityPinnedPostProps {
|
|
|
925
1194
|
}
|
|
926
1195
|
declare const CommunityPinnedPost: ({ communityId }: CommunityPinnedPostProps) => React.JSX.Element;
|
|
927
1196
|
|
|
928
|
-
|
|
1197
|
+
type CommunityImageFeedProps = {
|
|
1198
|
+
pageId?: string;
|
|
1199
|
+
communityId: string;
|
|
1200
|
+
};
|
|
1201
|
+
declare const CommunityImageFeed: ({ pageId, communityId }: CommunityImageFeedProps) => React.JSX.Element | null;
|
|
1202
|
+
|
|
1203
|
+
type CommunityVideoFeedProps = {
|
|
1204
|
+
pageId?: string;
|
|
1205
|
+
communityId: string;
|
|
1206
|
+
};
|
|
1207
|
+
declare const CommunityVideoFeed: ({ pageId, communityId }: CommunityVideoFeedProps) => React.JSX.Element | null;
|
|
1208
|
+
|
|
1209
|
+
type PendingPostContentProps = {
|
|
1210
|
+
pageId?: string;
|
|
1211
|
+
post?: Amity.Post;
|
|
1212
|
+
canReviewCommunityPosts?: boolean;
|
|
1213
|
+
refresh?: () => void;
|
|
1214
|
+
};
|
|
1215
|
+
declare const PendingPostContent: ({ pageId, post: initialPost, canReviewCommunityPosts, refresh, }: PendingPostContentProps) => React.JSX.Element | null;
|
|
1216
|
+
|
|
1217
|
+
interface UserProfileHeaderProps {
|
|
1218
|
+
user?: Amity.User | null;
|
|
1219
|
+
pageId?: string;
|
|
1220
|
+
menuOptions?: React.ReactNode | null;
|
|
1221
|
+
isShowBackButton?: boolean;
|
|
1222
|
+
}
|
|
1223
|
+
declare const UserProfileHeader: React.FC<UserProfileHeaderProps>;
|
|
1224
|
+
|
|
1225
|
+
interface UserFeedProps {
|
|
1226
|
+
userId: string;
|
|
1227
|
+
pageId?: string;
|
|
1228
|
+
feedSources?: FeedSourceEnum[];
|
|
1229
|
+
followStatus?: Amity.FollowStatus['status'] | null;
|
|
1230
|
+
}
|
|
1231
|
+
declare const UserFeed: ({ pageId, userId, feedSources, followStatus }: UserFeedProps) => React.JSX.Element;
|
|
1232
|
+
|
|
1233
|
+
interface UserImageFeedProps {
|
|
1234
|
+
userId: string;
|
|
1235
|
+
pageId?: string;
|
|
1236
|
+
feedSources?: FeedSourceEnum[];
|
|
1237
|
+
followStatus?: Amity.FollowStatus['status'] | null;
|
|
1238
|
+
}
|
|
1239
|
+
declare const UserImageFeed: ({ pageId, userId, feedSources, followStatus, }: UserImageFeedProps) => React.JSX.Element;
|
|
1240
|
+
|
|
1241
|
+
interface UserVideoFeedProps {
|
|
1242
|
+
userId: string;
|
|
1243
|
+
pageId?: string;
|
|
1244
|
+
feedSources?: FeedSourceEnum[];
|
|
1245
|
+
followStatus?: Amity.FollowStatus['status'] | null;
|
|
1246
|
+
}
|
|
1247
|
+
declare const UserVideoFeed: ({ pageId, userId, feedSources, followStatus, }: UserVideoFeedProps) => React.JSX.Element;
|
|
1248
|
+
|
|
1249
|
+
type ExploreProps = {
|
|
1250
|
+
pageId?: string;
|
|
1251
|
+
};
|
|
1252
|
+
declare const Explore: ({ pageId }: ExploreProps) => React.JSX.Element;
|
|
1253
|
+
|
|
1254
|
+
type InvitationBannerProps = {
|
|
1255
|
+
pageId?: string;
|
|
1256
|
+
community: Amity.Community;
|
|
1257
|
+
removeInvitation?: () => void;
|
|
1258
|
+
invitation?: Amity.Invitation;
|
|
1259
|
+
};
|
|
1260
|
+
declare function InvitationBanner({ community, pageId, removeInvitation, invitation: $invitation, }: InvitationBannerProps): React.JSX.Element;
|
|
1261
|
+
|
|
1262
|
+
type InvitationSectionProps = {
|
|
1263
|
+
pageId?: string;
|
|
1264
|
+
onClose?: () => void;
|
|
1265
|
+
invitations: Amity.Invitation[];
|
|
1266
|
+
};
|
|
1267
|
+
declare const InvitationSection: ({ onClose, pageId, invitations, }: InvitationSectionProps) => React.JSX.Element | null;
|
|
1268
|
+
|
|
1269
|
+
type PendingPostListProps = {
|
|
1270
|
+
pageId?: string;
|
|
1271
|
+
reviewingPosts: Amity.Post[];
|
|
1272
|
+
canReviewCommunityPosts?: boolean;
|
|
1273
|
+
refresh?: () => void;
|
|
1274
|
+
};
|
|
1275
|
+
declare const PendingPostList: ({ pageId, reviewingPosts, canReviewCommunityPosts, refresh, }: PendingPostListProps) => React.JSX.Element;
|
|
1276
|
+
|
|
1277
|
+
type JoinRequestContentProps = {
|
|
1278
|
+
pageId?: string;
|
|
1279
|
+
joinRequests: Amity.JoinRequest[] | null;
|
|
1280
|
+
isLoading: boolean;
|
|
1281
|
+
refresh?: () => void;
|
|
1282
|
+
};
|
|
1283
|
+
declare const JoinRequestContent: ({ pageId, joinRequests, isLoading, refresh, }: JoinRequestContentProps) => React.JSX.Element;
|
|
1284
|
+
|
|
1285
|
+
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, CommunityFeed as AmityCommunityFeedComponent, CommunityHeader as AmityCommunityHeaderComponent, CommunityImageFeed as AmityCommunityImageFeedComponent, CommunityInviteMemberPage as AmityCommunityInviteMemberPage, 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, CreatePostMenu as AmityCreatePostMenuComponent, DetailedMediaAttachment as AmityDetailedMediaAttachmentComponent, DraftClipPage as AmityDraftClipPage, AmityDraftStoryPage, EditUserProfilePage as AmityEditUserProfilePage, EmptyNewsfeed as AmityEmptyNewsFeedComponent, CommentText as AmityExpandableText, Explore as AmityExploreComponent, 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, LiveStreamPlayerPage as AmityLiveStreamPlayerPage, LivestreamTerminatedPage as AmityLivestreamTerminatedPage, MediaAttachment as AmityMediaAttachmentComponent, type MessageActionType as AmityMessageActionType, MyCommunities as AmityMyCommunitiesComponent, MyCommunitiesSearchPage as AmityMyCommunitiesSearchPage, Newsfeed as AmityNewsFeedComponent, PageRenderer as AmityPageRenderer, 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, 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, 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 };
|