@amityco/ui-kit-open-source 4.11.3 → 4.13.0
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/esm/index.css +1 -1
- package/dist/esm/index.js +757 -756
- package/dist/index.css +1 -1
- package/dist/index.d.mts +158 -59
- package/dist/index.d.ts +158 -59
- package/dist/index.js +864 -856
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
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;
|
|
@@ -61,6 +62,12 @@ type DefaultConfig = {
|
|
|
61
62
|
type NetworkConfig = {
|
|
62
63
|
config: DefaultConfig;
|
|
63
64
|
};
|
|
65
|
+
declare const enum UserAccessTypes {
|
|
66
|
+
ALL = "all",
|
|
67
|
+
SIGNED_IN_USER_ONLY = "singed_in_user_only",
|
|
68
|
+
NONE = "none"
|
|
69
|
+
}
|
|
70
|
+
type UserAccess = `${UserAccessTypes}`;
|
|
64
71
|
interface Config {
|
|
65
72
|
preferred_theme?: 'light' | 'dark' | 'default';
|
|
66
73
|
theme?: {
|
|
@@ -69,11 +76,37 @@ interface Config {
|
|
|
69
76
|
};
|
|
70
77
|
excludes?: string[];
|
|
71
78
|
message_reactions?: AmityReactionType[];
|
|
79
|
+
social_reactions?: AmityReactionType[];
|
|
72
80
|
customizations?: {
|
|
73
81
|
[key: string]: GetConfigReturnValue;
|
|
74
82
|
};
|
|
83
|
+
feature_flags?: {
|
|
84
|
+
post?: {
|
|
85
|
+
clip?: {
|
|
86
|
+
can_create: UserAccess;
|
|
87
|
+
can_view_tab: UserAccess;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
75
91
|
}
|
|
76
92
|
|
|
93
|
+
interface PostDetailPageProps {
|
|
94
|
+
id: string;
|
|
95
|
+
hideTarget?: boolean;
|
|
96
|
+
category?: AmityPostCategory;
|
|
97
|
+
commentId?: string;
|
|
98
|
+
parentId?: string;
|
|
99
|
+
posts?: Amity.Post<'clip' | 'video'>[];
|
|
100
|
+
selectedReplyComment?: Amity.Comment;
|
|
101
|
+
showReplyCommentAt?: string;
|
|
102
|
+
keyword?: string;
|
|
103
|
+
isFromCommentClick?: boolean;
|
|
104
|
+
}
|
|
105
|
+
interface GoToPostDetailPageParams extends Omit<PostDetailPageProps, 'id'> {
|
|
106
|
+
postId: string;
|
|
107
|
+
}
|
|
108
|
+
declare function PostDetailPage({ id, hideTarget, category, commentId, parentId, posts, selectedReplyComment, showReplyCommentAt, keyword, isFromCommentClick, }: PostDetailPageProps): React.JSX.Element | null;
|
|
109
|
+
|
|
77
110
|
declare enum AmityPostContentComponentStyle {
|
|
78
111
|
FEED = "feed",
|
|
79
112
|
DETAIL = "detail"
|
|
@@ -86,8 +119,9 @@ declare enum AmityPostCategory {
|
|
|
86
119
|
}
|
|
87
120
|
interface PostContentProps {
|
|
88
121
|
post: Amity.Post;
|
|
89
|
-
onClick?: () => void;
|
|
122
|
+
onClick?: (context?: Pick<PostDetailPageProps, 'commentId' | 'selectedReplyComment' | 'parentId' | 'showReplyCommentAt' | 'isFromCommentClick'>) => void;
|
|
90
123
|
onPostDeleted?: (post: Amity.Post) => void;
|
|
124
|
+
onPollPostDeleted?: (post: Amity.Post) => void;
|
|
91
125
|
style: AmityPostContentComponentStyle;
|
|
92
126
|
category: AmityPostCategory;
|
|
93
127
|
hideMenu?: boolean;
|
|
@@ -96,8 +130,11 @@ interface PostContentProps {
|
|
|
96
130
|
disabledContent?: boolean;
|
|
97
131
|
isGlobalFeaturePost?: boolean;
|
|
98
132
|
className?: string;
|
|
133
|
+
keyword?: string;
|
|
134
|
+
isSearchPost?: boolean;
|
|
135
|
+
expandAllContent?: boolean;
|
|
99
136
|
}
|
|
100
|
-
declare const PostContent: ({ pageId, post, onClick, onPostDeleted, category, hideMenu, hideTarget, style, disabledContent, isGlobalFeaturePost, className, }: PostContentProps) => React.JSX.Element;
|
|
137
|
+
declare const PostContent: ({ pageId, post, onClick, onPostDeleted, onPollPostDeleted, category, hideMenu, hideTarget, style, disabledContent, isGlobalFeaturePost, className, keyword, isSearchPost, expandAllContent, }: PostContentProps) => React.JSX.Element;
|
|
101
138
|
|
|
102
139
|
type MemberCommunitySetup = {
|
|
103
140
|
userId: string;
|
|
@@ -163,11 +200,7 @@ interface PageBehavior {
|
|
|
163
200
|
}) => void;
|
|
164
201
|
};
|
|
165
202
|
AmityGlobalFeedComponentBehavior?: {
|
|
166
|
-
goToPostDetailPage?: (context:
|
|
167
|
-
postId: string;
|
|
168
|
-
hideTarget?: boolean;
|
|
169
|
-
category?: AmityPostCategory;
|
|
170
|
-
}) => void;
|
|
203
|
+
goToPostDetailPage?: (context: GoToPostDetailPageParams) => void;
|
|
171
204
|
goToViewStoryPage?: (context: {
|
|
172
205
|
targetId: string;
|
|
173
206
|
targetType: Amity.StoryTargetType;
|
|
@@ -185,6 +218,9 @@ interface PageBehavior {
|
|
|
185
218
|
targetType?: 'community' | 'user';
|
|
186
219
|
targetId?: string;
|
|
187
220
|
}) => void;
|
|
221
|
+
goToSocialGlobalSearchPage?: (context: {
|
|
222
|
+
keyword: string;
|
|
223
|
+
}) => void;
|
|
188
224
|
};
|
|
189
225
|
AmityPostContentComponentBehavior?: {
|
|
190
226
|
goToCommunityProfilePage?: (context: {
|
|
@@ -199,7 +235,14 @@ interface PageBehavior {
|
|
|
199
235
|
isClipPost?: boolean;
|
|
200
236
|
}) => void;
|
|
201
237
|
};
|
|
202
|
-
AmitySocialGlobalSearchPageBehavior?:
|
|
238
|
+
AmitySocialGlobalSearchPageBehavior?: {
|
|
239
|
+
goToPostDetailPage?: (context: {
|
|
240
|
+
postId: string;
|
|
241
|
+
hideTarget?: boolean;
|
|
242
|
+
category?: AmityPostCategory;
|
|
243
|
+
keyword?: string;
|
|
244
|
+
}) => void;
|
|
245
|
+
};
|
|
203
246
|
AmityCommunitySearchResultComponentBehavior?: {
|
|
204
247
|
goToCommunityProfilePage?: (context: {
|
|
205
248
|
communityId: string;
|
|
@@ -257,11 +300,7 @@ interface PageBehavior {
|
|
|
257
300
|
post?: Amity.Post;
|
|
258
301
|
isClipPost?: boolean;
|
|
259
302
|
}): void;
|
|
260
|
-
goToPostDetailPage?(context:
|
|
261
|
-
postId: string;
|
|
262
|
-
hideTarget?: boolean;
|
|
263
|
-
category?: AmityPostCategory;
|
|
264
|
-
}): void;
|
|
303
|
+
goToPostDetailPage?(context: GoToPostDetailPageParams): void;
|
|
265
304
|
goToStoryCreationPage?(context: {
|
|
266
305
|
targetId: string | null;
|
|
267
306
|
targetType: Amity.StoryTargetType;
|
|
@@ -290,6 +329,7 @@ interface PageBehavior {
|
|
|
290
329
|
goToPollPostComposerPage?(context: {
|
|
291
330
|
targetId: string | null;
|
|
292
331
|
targetType: 'community' | 'user';
|
|
332
|
+
pollType?: 'text' | 'image';
|
|
293
333
|
}): void;
|
|
294
334
|
goToPendingRequestPage?(context: {
|
|
295
335
|
community: Amity.Community;
|
|
@@ -369,9 +409,7 @@ interface PageBehavior {
|
|
|
369
409
|
}) => void;
|
|
370
410
|
};
|
|
371
411
|
AmityUserFeedComponentBehavior?: {
|
|
372
|
-
goToPostDetailPage?(context:
|
|
373
|
-
postId: string;
|
|
374
|
-
}): void;
|
|
412
|
+
goToPostDetailPage?(context: GoToPostDetailPageParams): void;
|
|
375
413
|
};
|
|
376
414
|
AmityUserProfilePageBehavior?: {
|
|
377
415
|
goToEditUserPage?(context: {
|
|
@@ -420,18 +458,16 @@ interface PageBehavior {
|
|
|
420
458
|
goToPollPostComposerPage?(context: {
|
|
421
459
|
targetId: string | null;
|
|
422
460
|
targetType: 'community' | 'user';
|
|
461
|
+
pollType?: 'text' | 'image';
|
|
423
462
|
}): void;
|
|
424
463
|
};
|
|
425
464
|
AmityNotificationTrayPageBehavior?: {
|
|
426
465
|
goToCommunityProfilePage?(context: {
|
|
427
466
|
communityId: string;
|
|
428
467
|
}): void;
|
|
429
|
-
goToPostDetailPage?(context:
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
category?: AmityPostCategory;
|
|
433
|
-
commentId?: string;
|
|
434
|
-
parentId?: string;
|
|
468
|
+
goToPostDetailPage?(context: GoToPostDetailPageParams): void;
|
|
469
|
+
goToUserProfilePage?(context: {
|
|
470
|
+
userId: string;
|
|
435
471
|
}): void;
|
|
436
472
|
};
|
|
437
473
|
AmityDraftClipPageBehavior?: {
|
|
@@ -447,14 +483,7 @@ interface PageBehavior {
|
|
|
447
483
|
goToSelectClipPostTargetPage?(context: {
|
|
448
484
|
isClipPost: boolean;
|
|
449
485
|
}): void;
|
|
450
|
-
goToPostDetailPage?(context:
|
|
451
|
-
postId: string;
|
|
452
|
-
hideTarget?: boolean;
|
|
453
|
-
category?: AmityPostCategory;
|
|
454
|
-
commentId?: string;
|
|
455
|
-
parentId?: string;
|
|
456
|
-
posts?: Amity.Post<'clip' | 'video'>[];
|
|
457
|
-
}): void;
|
|
486
|
+
goToPostDetailPage?(context: GoToPostDetailPageParams): void;
|
|
458
487
|
goToUserProfilePage?(context: {
|
|
459
488
|
userId: string;
|
|
460
489
|
}): void;
|
|
@@ -462,6 +491,11 @@ interface PageBehavior {
|
|
|
462
491
|
communityId: string;
|
|
463
492
|
}): void;
|
|
464
493
|
};
|
|
494
|
+
AmityGlobalBehavior: {
|
|
495
|
+
handleGuestUserAction?(): void;
|
|
496
|
+
handleNonMemberAction?(): void;
|
|
497
|
+
handleNonFollowerAction?(): void;
|
|
498
|
+
};
|
|
465
499
|
}
|
|
466
500
|
|
|
467
501
|
type AmityUIKitConfig = Config;
|
|
@@ -477,7 +511,7 @@ interface AmityUIKitProviderProps {
|
|
|
477
511
|
mqtt?: string;
|
|
478
512
|
upload?: string;
|
|
479
513
|
};
|
|
480
|
-
userId
|
|
514
|
+
userId?: string;
|
|
481
515
|
displayName?: string;
|
|
482
516
|
postRendererConfig?: any;
|
|
483
517
|
theme?: Record<string, unknown>;
|
|
@@ -503,6 +537,12 @@ interface AmityUIKitProviderProps {
|
|
|
503
537
|
onConnected?: () => void;
|
|
504
538
|
onDisconnected?: () => void;
|
|
505
539
|
getAuthToken?: () => Promise<string>;
|
|
540
|
+
authSignatureExpiresAt?: string;
|
|
541
|
+
getAuthSignature?: ({ deviceId, authSignatureExpiresAt, }: {
|
|
542
|
+
deviceId: string;
|
|
543
|
+
authSignatureExpiresAt: string;
|
|
544
|
+
}) => Promise<string>;
|
|
545
|
+
isBotUser?: boolean;
|
|
506
546
|
configs?: AmityUIKitConfig;
|
|
507
547
|
activeRoute?: AmityRoute;
|
|
508
548
|
onRouteChange?: (route: AmityRoute) => void;
|
|
@@ -697,6 +737,20 @@ interface SessionHandler {
|
|
|
697
737
|
*/
|
|
698
738
|
sessionWillRenewAccessToken(renewal: Amity.AccessTokenRenewal): void;
|
|
699
739
|
}
|
|
740
|
+
/**
|
|
741
|
+
* Interface for the registerDevice parameters.
|
|
742
|
+
*/
|
|
743
|
+
interface RegisterDeviceParams {
|
|
744
|
+
userId?: string;
|
|
745
|
+
displayName?: string;
|
|
746
|
+
sessionHandler: SessionHandler;
|
|
747
|
+
authToken?: string;
|
|
748
|
+
authSignatureParams?: Amity.ConnectClientAsVisitorParams;
|
|
749
|
+
onConnectionStatusChange?: (state: Amity.SessionStates) => void;
|
|
750
|
+
onConnected?: () => void;
|
|
751
|
+
onDisconnected?: () => void;
|
|
752
|
+
onGlobalBanned?: (payload: Amity.UserPayload) => void;
|
|
753
|
+
}
|
|
700
754
|
/**
|
|
701
755
|
* Manages the Amity SDK client and authentication state.
|
|
702
756
|
*/
|
|
@@ -709,6 +763,8 @@ declare class AmityUIKitManager {
|
|
|
709
763
|
private onConnectionStatusChange?;
|
|
710
764
|
private onConnected?;
|
|
711
765
|
private onDisconnected?;
|
|
766
|
+
private globalBannedUnsubscribe?;
|
|
767
|
+
private onGlobalBanned?;
|
|
712
768
|
/**
|
|
713
769
|
* Private constructor to prevent direct instantiation.
|
|
714
770
|
*/
|
|
@@ -728,15 +784,9 @@ declare class AmityUIKitManager {
|
|
|
728
784
|
}): void;
|
|
729
785
|
/**
|
|
730
786
|
* Registers a device with the Amity SDK and handles the login process.
|
|
731
|
-
* @param
|
|
732
|
-
* @param displayName - The display name of the user.
|
|
733
|
-
* @param sessionHandler - The session handler for access token renewal.
|
|
734
|
-
* @param authToken - The authentication token to be used for login.
|
|
735
|
-
* @param onConnectionStatusChange - The callback function for connection status changes.
|
|
736
|
-
* @param onConnected - The callback function to be called when connected.
|
|
737
|
-
* @param onDisconnected - The callback function to be called when disconnected.
|
|
787
|
+
* @param params - The parameters object containing all registration options.
|
|
738
788
|
*/
|
|
739
|
-
static registerDevice(userId
|
|
789
|
+
static registerDevice({ userId, displayName, sessionHandler, authToken, authSignatureParams, onConnectionStatusChange, onConnected, onDisconnected, onGlobalBanned, }: RegisterDeviceParams): Promise<void>;
|
|
740
790
|
/**
|
|
741
791
|
* Sets the AmityClient instance to be used by the AmityUIKitManager.
|
|
742
792
|
* This method is useful when sharing the AmityClient instance between different parts of the application.
|
|
@@ -827,8 +877,9 @@ interface ReactionListProps$1 {
|
|
|
827
877
|
pageId: string;
|
|
828
878
|
referenceId: string;
|
|
829
879
|
referenceType: Amity.ReactableType;
|
|
880
|
+
customReferenceType?: string;
|
|
830
881
|
}
|
|
831
|
-
declare const ReactionList: ({ pageId, referenceId, referenceType }: ReactionListProps$1) => React.JSX.Element | null;
|
|
882
|
+
declare const ReactionList: ({ pageId, referenceId, referenceType, customReferenceType, }: ReactionListProps$1) => React.JSX.Element | null;
|
|
832
883
|
|
|
833
884
|
interface ReactionListProps {
|
|
834
885
|
referenceId: string;
|
|
@@ -912,17 +963,9 @@ declare function SelectPostTargetPage({ isClipPost }: {
|
|
|
912
963
|
|
|
913
964
|
declare function MyCommunitiesSearchPage(): React.JSX.Element;
|
|
914
965
|
|
|
915
|
-
declare function SocialGlobalSearchPage(
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
id: string;
|
|
919
|
-
hideTarget?: boolean;
|
|
920
|
-
category?: AmityPostCategory;
|
|
921
|
-
commentId?: string;
|
|
922
|
-
parentId?: string;
|
|
923
|
-
posts?: Amity.Post<'clip' | 'video'>[];
|
|
924
|
-
}
|
|
925
|
-
declare function PostDetailPage({ id, hideTarget, category, commentId, parentId, posts, }: PostDetailPageProps): React.JSX.Element | null;
|
|
966
|
+
declare function SocialGlobalSearchPage({ keyword }: {
|
|
967
|
+
keyword?: string;
|
|
968
|
+
}): React.JSX.Element;
|
|
926
969
|
|
|
927
970
|
type UserProfilePageProps = {
|
|
928
971
|
userId: string;
|
|
@@ -951,6 +994,13 @@ interface CommunityAddMemberPageProps {
|
|
|
951
994
|
}
|
|
952
995
|
declare const CommunityAddMemberPage: ({ member, closePopup, communityId, onAddedAction, }: CommunityAddMemberPageProps) => React.JSX.Element;
|
|
953
996
|
|
|
997
|
+
type CommunityInviteMemberPageProps = {
|
|
998
|
+
communityId?: string;
|
|
999
|
+
users?: Amity.User[];
|
|
1000
|
+
onSubmit?: (userId: string[]) => void;
|
|
1001
|
+
};
|
|
1002
|
+
declare const CommunityInviteMemberPage: (props: CommunityInviteMemberPageProps) => React.JSX.Element;
|
|
1003
|
+
|
|
954
1004
|
interface CommunityProfileProps {
|
|
955
1005
|
communityId: string;
|
|
956
1006
|
page?: number;
|
|
@@ -982,11 +1032,17 @@ type CommunityMembershipPageProps = {
|
|
|
982
1032
|
};
|
|
983
1033
|
declare const CommunityMembershipPage: ({ community }: CommunityMembershipPageProps) => React.JSX.Element;
|
|
984
1034
|
|
|
1035
|
+
type CommunityPendingInvitationPageProps = {
|
|
1036
|
+
community: Amity.Community;
|
|
1037
|
+
};
|
|
1038
|
+
declare function CommunityPendingInvitationPage(props: CommunityPendingInvitationPageProps): React.JSX.Element;
|
|
1039
|
+
|
|
985
1040
|
type PollPostComposerPageProps = {
|
|
986
1041
|
targetId: string | null;
|
|
987
1042
|
targetType: 'community' | 'user';
|
|
1043
|
+
pollType?: 'text' | 'image';
|
|
988
1044
|
};
|
|
989
|
-
declare const PollPostComposerPage: ({ targetId, targetType }: PollPostComposerPageProps) => React.JSX.Element;
|
|
1045
|
+
declare const PollPostComposerPage: ({ targetId, targetType, pollType, }: PollPostComposerPageProps) => React.JSX.Element;
|
|
990
1046
|
|
|
991
1047
|
declare function PollTargetSelectionPage(): React.JSX.Element;
|
|
992
1048
|
|
|
@@ -999,12 +1055,17 @@ declare function CommunitiesByCategoryPage({ categoryId }: CommunitiesByCategory
|
|
|
999
1055
|
|
|
1000
1056
|
type LiveStreamPlayerPageProps = {
|
|
1001
1057
|
post: Amity.Post;
|
|
1002
|
-
goToDetailPage?: () => void;
|
|
1058
|
+
goToDetailPage?: (context?: GoToPostDetailPageParams) => void;
|
|
1003
1059
|
};
|
|
1004
1060
|
declare function LiveStreamPlayerPage({ post, goToDetailPage }: LiveStreamPlayerPageProps): React.JSX.Element;
|
|
1005
1061
|
|
|
1006
1062
|
declare function LivestreamTerminatedPage(): React.JSX.Element;
|
|
1007
1063
|
|
|
1064
|
+
type PendingRequestPageProps = {
|
|
1065
|
+
community: Amity.Community;
|
|
1066
|
+
};
|
|
1067
|
+
declare const PendingRequestPage: ({ community }: PendingRequestPageProps) => React.JSX.Element | null;
|
|
1068
|
+
|
|
1008
1069
|
type DraftClipPageProps = {
|
|
1009
1070
|
targetId: string | null;
|
|
1010
1071
|
targetType: 'community' | 'user';
|
|
@@ -1025,7 +1086,7 @@ type CommentTrayProps = {
|
|
|
1025
1086
|
referenceId: string;
|
|
1026
1087
|
community: Amity.Community;
|
|
1027
1088
|
shouldAllowCreation?: boolean;
|
|
1028
|
-
shouldAllowInteraction
|
|
1089
|
+
shouldAllowInteraction?: boolean;
|
|
1029
1090
|
referenceType: Amity.CommentReferenceType;
|
|
1030
1091
|
};
|
|
1031
1092
|
declare const CommentTray: ({ referenceId, pageId, referenceType, shouldAllowCreation, shouldAllowInteraction, community, }: CommentTrayProps) => React.JSX.Element;
|
|
@@ -1091,8 +1152,9 @@ type TopSearchBarProps = {
|
|
|
1091
1152
|
onFocus?: () => void;
|
|
1092
1153
|
hasCancelButton?: boolean;
|
|
1093
1154
|
search: (keyword: string) => void;
|
|
1155
|
+
initialValue?: string;
|
|
1094
1156
|
};
|
|
1095
|
-
declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, }: TopSearchBarProps): React.JSX.Element | null;
|
|
1157
|
+
declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initialValue, }: TopSearchBarProps): React.JSX.Element | null;
|
|
1096
1158
|
|
|
1097
1159
|
interface MyCommunitiesProps {
|
|
1098
1160
|
pageId?: string;
|
|
@@ -1176,24 +1238,61 @@ declare const UserProfileHeader: React.FC<UserProfileHeaderProps>;
|
|
|
1176
1238
|
interface UserFeedProps {
|
|
1177
1239
|
userId: string;
|
|
1178
1240
|
pageId?: string;
|
|
1241
|
+
feedSources?: FeedSourceEnum[];
|
|
1242
|
+
followStatus?: Amity.FollowStatus['status'] | null;
|
|
1179
1243
|
}
|
|
1180
|
-
declare const UserFeed: ({ pageId, userId }: UserFeedProps) => React.JSX.Element;
|
|
1244
|
+
declare const UserFeed: ({ pageId, userId, feedSources, followStatus }: UserFeedProps) => React.JSX.Element;
|
|
1181
1245
|
|
|
1182
1246
|
interface UserImageFeedProps {
|
|
1183
1247
|
userId: string;
|
|
1184
1248
|
pageId?: string;
|
|
1249
|
+
feedSources?: FeedSourceEnum[];
|
|
1250
|
+
followStatus?: Amity.FollowStatus['status'] | null;
|
|
1185
1251
|
}
|
|
1186
|
-
declare const UserImageFeed: ({ pageId, userId }: UserImageFeedProps) => React.JSX.Element;
|
|
1252
|
+
declare const UserImageFeed: ({ pageId, userId, feedSources, followStatus, }: UserImageFeedProps) => React.JSX.Element;
|
|
1187
1253
|
|
|
1188
1254
|
interface UserVideoFeedProps {
|
|
1189
1255
|
userId: string;
|
|
1190
1256
|
pageId?: string;
|
|
1257
|
+
feedSources?: FeedSourceEnum[];
|
|
1258
|
+
followStatus?: Amity.FollowStatus['status'] | null;
|
|
1191
1259
|
}
|
|
1192
|
-
declare const UserVideoFeed: ({ pageId, userId }: UserVideoFeedProps) => React.JSX.Element;
|
|
1260
|
+
declare const UserVideoFeed: ({ pageId, userId, feedSources, followStatus, }: UserVideoFeedProps) => React.JSX.Element;
|
|
1193
1261
|
|
|
1194
1262
|
type ExploreProps = {
|
|
1195
1263
|
pageId?: string;
|
|
1196
1264
|
};
|
|
1197
1265
|
declare const Explore: ({ pageId }: ExploreProps) => React.JSX.Element;
|
|
1198
1266
|
|
|
1199
|
-
|
|
1267
|
+
type InvitationBannerProps = {
|
|
1268
|
+
pageId?: string;
|
|
1269
|
+
community: Amity.Community;
|
|
1270
|
+
removeInvitation?: () => void;
|
|
1271
|
+
invitation?: Amity.Invitation;
|
|
1272
|
+
};
|
|
1273
|
+
declare function InvitationBanner({ community, pageId, removeInvitation, invitation: $invitation, }: InvitationBannerProps): React.JSX.Element;
|
|
1274
|
+
|
|
1275
|
+
type InvitationSectionProps = {
|
|
1276
|
+
pageId?: string;
|
|
1277
|
+
onClose?: () => void;
|
|
1278
|
+
invitations: Amity.Invitation[];
|
|
1279
|
+
};
|
|
1280
|
+
declare const InvitationSection: ({ onClose, pageId, invitations, }: InvitationSectionProps) => React.JSX.Element | null;
|
|
1281
|
+
|
|
1282
|
+
type PendingPostListProps = {
|
|
1283
|
+
pageId?: string;
|
|
1284
|
+
reviewingPosts: Amity.Post[];
|
|
1285
|
+
canReviewCommunityPosts?: boolean;
|
|
1286
|
+
refresh?: () => void;
|
|
1287
|
+
};
|
|
1288
|
+
declare const PendingPostList: ({ pageId, reviewingPosts, canReviewCommunityPosts, refresh, }: PendingPostListProps) => React.JSX.Element;
|
|
1289
|
+
|
|
1290
|
+
type JoinRequestContentProps = {
|
|
1291
|
+
pageId?: string;
|
|
1292
|
+
joinRequests: Amity.JoinRequest[] | null;
|
|
1293
|
+
isLoading: boolean;
|
|
1294
|
+
refresh?: () => void;
|
|
1295
|
+
};
|
|
1296
|
+
declare const JoinRequestContent: ({ pageId, joinRequests, isLoading, refresh, }: JoinRequestContentProps) => React.JSX.Element;
|
|
1297
|
+
|
|
1298
|
+
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 };
|