@amityco/ui-kit-open-source 4.3.0 → 4.4.1

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/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import React, { ReactNode, RefObject } from 'react';
1
+ import React, { FC, ReactNode, RefObject } 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
4
 
@@ -91,6 +91,15 @@ declare enum AmityCommunitySetupPageMode {
91
91
  CREATE = "create",
92
92
  EDIT = "edit"
93
93
  }
94
+ interface CommunitySetupEditOptions {
95
+ mode: AmityCommunitySetupPageMode.EDIT;
96
+ community: Amity.Community;
97
+ }
98
+ interface CommunitySetupCreateOptions {
99
+ mode: AmityCommunitySetupPageMode.CREATE;
100
+ }
101
+ type CommunitySetupPageProps = CommunitySetupCreateOptions | CommunitySetupEditOptions;
102
+ declare const CommunitySetupPage: (props: CommunitySetupPageProps) => React.JSX.Element;
94
103
 
95
104
  declare enum Mode {
96
105
  CREATE = "create",
@@ -113,6 +122,11 @@ declare const enum UserRelationshipPageTabs {
113
122
  FOLLOWING = "following",
114
123
  FOLLOWER = "followers"
115
124
  }
125
+ type UserRelationshipPageProps = {
126
+ userId: string;
127
+ selectedTab: UserRelationshipPageTabs;
128
+ };
129
+ declare const UserRelationshipPage: FC<UserRelationshipPageProps>;
116
130
 
117
131
  interface PageBehavior {
118
132
  AmityStoryViewPageBehavior?: {
@@ -268,7 +282,7 @@ interface PageBehavior {
268
282
  }): void;
269
283
  goToSocialHomePage?(): void;
270
284
  };
271
- AmityCommunityMembershipPage?: {
285
+ AmityCommunityMembershipPageBehavior?: {
272
286
  goToAddMemberPage?(context: {
273
287
  members?: MemberCommunitySetup[];
274
288
  communityId?: string;
@@ -292,24 +306,24 @@ interface PageBehavior {
292
306
  userId: string;
293
307
  }): void;
294
308
  };
295
- AmityUserProfileHeaderComponentBehavior: {
309
+ AmityUserProfileHeaderComponentBehavior?: {
296
310
  goToUserRelationshipPage?(context: {
297
311
  userId: string;
298
312
  selectedTab: UserRelationshipPageTabs;
299
313
  }): void;
300
314
  goToPendingFollowRequestPage?(): void;
301
315
  };
302
- AmityUserRelationshipPageBehavior: {
316
+ AmityUserRelationshipPageBehavior?: {
303
317
  goToUserProfilePage?(context: {
304
318
  userId: string;
305
319
  }): void;
306
320
  };
307
- AmityUserPendingFollowRequestsPageBehavior: {
321
+ AmityUserPendingFollowRequestsPageBehavior?: {
308
322
  goToUserProfilePage?(context: {
309
323
  userId: string;
310
324
  }): void;
311
325
  };
312
- AmityBlockedUsersPageBehavior: {
326
+ AmityBlockedUsersPageBehavior?: {
313
327
  goToUserProfilePage?(context: {
314
328
  userId: string;
315
329
  }): void;
@@ -760,12 +774,6 @@ interface PostDetailPageProps {
760
774
  }
761
775
  declare function PostDetailPage({ id, hideTarget, category }: PostDetailPageProps): React.JSX.Element;
762
776
 
763
- interface CommunityProfileProps {
764
- communityId: string;
765
- page?: number;
766
- }
767
- declare const CommunityProfilePage: React.FC<CommunityProfileProps>;
768
-
769
777
  type UserProfilePageProps = {
770
778
  userId: string;
771
779
  };
@@ -776,6 +784,77 @@ interface EditUserProfilePageProps {
776
784
  }
777
785
  declare const EditUserProfilePage: React.FC<EditUserProfilePageProps>;
778
786
 
787
+ declare const BlockedUserPage: () => React.JSX.Element;
788
+
789
+ declare const UserPendingFollowRequestPage: () => React.JSX.Element;
790
+
791
+ interface CommunityAddCategoryPageProps {
792
+ category?: Amity.Category[];
793
+ }
794
+ declare const CommunityAddCategoryPage: ({ category }: CommunityAddCategoryPageProps) => React.JSX.Element;
795
+
796
+ interface CommunityAddMemberPageProps {
797
+ member?: MemberCommunitySetup[];
798
+ communityId?: string;
799
+ closePopup?: () => void;
800
+ onAddedAction?: (userId: string[]) => void;
801
+ }
802
+ declare const CommunityAddMemberPage: ({ member, closePopup, communityId, onAddedAction, }: CommunityAddMemberPageProps) => React.JSX.Element;
803
+
804
+ interface CommunityProfileProps {
805
+ communityId: string;
806
+ page?: number;
807
+ }
808
+ declare const CommunityProfilePage: React.FC<CommunityProfileProps>;
809
+
810
+ type CommunitySettingPageProps = {
811
+ community: Amity.Community;
812
+ };
813
+ declare const CommunitySettingPage: ({ community }: CommunitySettingPageProps) => React.JSX.Element;
814
+
815
+ type CommunityPostPermissionPageProps = {
816
+ community: Amity.Community;
817
+ };
818
+ declare const CommunityPostPermissionPage: ({ community }: CommunityPostPermissionPageProps) => React.JSX.Element;
819
+
820
+ type CommunityStorySettingPageProps = {
821
+ community: Amity.Community;
822
+ };
823
+ declare const CommunityStorySettingPage: ({ community }: CommunityStorySettingPageProps) => React.JSX.Element;
824
+
825
+ type PendingPostsPageProps = {
826
+ communityId: string;
827
+ };
828
+ declare const PendingPostsPage: ({ communityId }: PendingPostsPageProps) => React.JSX.Element;
829
+
830
+ type CommunityMembershipPageProps = {
831
+ community: Amity.Community;
832
+ };
833
+ declare const CommunityMembershipPage: ({ community }: CommunityMembershipPageProps) => React.JSX.Element;
834
+
835
+ type PollPostComposerPageProps = {
836
+ targetId: string | null;
837
+ targetType: 'community' | 'user';
838
+ };
839
+ declare const PollPostComposerPage: ({ targetId, targetType }: PollPostComposerPageProps) => React.JSX.Element;
840
+
841
+ declare function PollTargetSelectionPage(): React.JSX.Element;
842
+
843
+ declare function AllCategoriesPage(): React.JSX.Element;
844
+
845
+ interface CommunitiesByCategoryPageProps {
846
+ categoryId: string;
847
+ }
848
+ declare function CommunitiesByCategoryPage({ categoryId }: CommunitiesByCategoryPageProps): React.JSX.Element;
849
+
850
+ type LiveStreamPlayerPageProps = {
851
+ post: Amity.Post;
852
+ goToDetailPage?: () => void;
853
+ };
854
+ declare function LiveStreamPlayerPage({ post, goToDetailPage }: LiveStreamPlayerPageProps): React.JSX.Element;
855
+
856
+ declare function LivestreamTerminatedPage(): React.JSX.Element;
857
+
779
858
  type CommentTrayProps = {
780
859
  pageId?: string;
781
860
  referenceId: string;
@@ -803,24 +882,25 @@ declare function CreatePostMenu({ pageId }: CreatePostMenuProps): React.JSX.Elem
803
882
 
804
883
  interface MediaAttachmentProps {
805
884
  pageId: string;
806
- uploadLoading?: boolean;
807
885
  isVisibleCamera: boolean;
808
886
  isVisibleImage: boolean;
809
887
  isVisibleVideo: boolean;
810
- onVideoFileChange?: (files: File[]) => void;
811
- onImageFileChange?: (files: File[]) => void;
888
+ totalMedia?: number;
889
+ onVideoFileChange?: (files: File[], fileType?: string) => void;
890
+ onImageFileChange?: (files: File[], fileType?: string) => void;
812
891
  }
813
- declare function MediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps): React.JSX.Element | null;
892
+ declare function MediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps): React.JSX.Element | null;
814
893
 
815
894
  interface DetailedMediaAttachmentProps {
816
895
  pageId: string;
817
896
  isVisibleCamera: boolean;
818
897
  isVisibleImage: boolean;
819
898
  isVisibleVideo: boolean;
899
+ totalMedia?: number;
820
900
  onVideoFileChange?: (files: File[]) => void;
821
901
  onImageFileChange?: (files: File[]) => void;
822
902
  }
823
- declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): React.JSX.Element | null;
903
+ declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): React.JSX.Element | null;
824
904
 
825
905
  type UserSearchResultProps = {
826
906
  pageId?: string;
@@ -857,11 +937,13 @@ interface GlobalFeedProps {
857
937
  pageId?: string;
858
938
  componentId?: string;
859
939
  items: Array<Amity.Post | Amity.Ad>;
940
+ globalFeaturedPosts?: Array<Amity.Post>;
860
941
  isLoading: boolean;
942
+ isGlobalFeaturedPostsLoading?: boolean;
861
943
  onFeedReachBottom: () => void;
862
944
  onPostDeleted?: (post: Amity.Post) => void;
863
945
  }
864
- declare const GlobalFeed: ({ pageId, componentId, items, isLoading, onFeedReachBottom, onPostDeleted, }: GlobalFeedProps) => React.JSX.Element;
946
+ declare const GlobalFeed: ({ pageId, componentId, items, isLoading, globalFeaturedPosts, isGlobalFeaturedPostsLoading, onFeedReachBottom, onPostDeleted, }: GlobalFeedProps) => React.JSX.Element;
865
947
 
866
948
  interface EmptyNewsfeedProps {
867
949
  pageId?: string;
@@ -905,4 +987,53 @@ interface CommunityPinnedPostProps {
905
987
  }
906
988
  declare const CommunityPinnedPost: ({ communityId }: CommunityPinnedPostProps) => React.JSX.Element;
907
989
 
908
- 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 };
990
+ type CommunityImageFeedProps = {
991
+ pageId?: string;
992
+ communityId: string;
993
+ };
994
+ declare const CommunityImageFeed: ({ pageId, communityId }: CommunityImageFeedProps) => React.JSX.Element | null;
995
+
996
+ type CommunityVideoFeedProps = {
997
+ pageId?: string;
998
+ communityId: string;
999
+ };
1000
+ declare const CommunityVideoFeed: ({ pageId, communityId }: CommunityVideoFeedProps) => React.JSX.Element | null;
1001
+
1002
+ type PendingPostContentProps = {
1003
+ pageId?: string;
1004
+ post?: Amity.Post;
1005
+ canReviewCommunityPosts?: boolean;
1006
+ refresh?: () => void;
1007
+ };
1008
+ declare const PendingPostContent: ({ pageId, post: initialPost, canReviewCommunityPosts, refresh, }: PendingPostContentProps) => React.JSX.Element;
1009
+
1010
+ interface UserProfileHeaderProps {
1011
+ user?: Amity.User | null;
1012
+ pageId?: string;
1013
+ }
1014
+ declare const UserProfileHeader: React.FC<UserProfileHeaderProps>;
1015
+
1016
+ interface UserFeedProps {
1017
+ userId: string;
1018
+ pageId?: string;
1019
+ }
1020
+ declare const UserFeed: ({ pageId, userId }: UserFeedProps) => React.JSX.Element;
1021
+
1022
+ interface UserImageFeedProps {
1023
+ userId: string;
1024
+ pageId?: string;
1025
+ }
1026
+ declare const UserImageFeed: ({ pageId, userId }: UserImageFeedProps) => React.JSX.Element;
1027
+
1028
+ interface UserVideoFeedProps {
1029
+ userId: string;
1030
+ pageId?: string;
1031
+ }
1032
+ declare const UserVideoFeed: ({ pageId, userId }: UserVideoFeedProps) => React.JSX.Element;
1033
+
1034
+ type ExploreProps = {
1035
+ pageId?: string;
1036
+ };
1037
+ declare const Explore: ({ pageId }: ExploreProps) => React.JSX.Element;
1038
+
1039
+ export { AllCategoriesPage as AmityAllCategoriesPage, _default$1 as AmityAvatar, BlockedUserPage as AmityBlockedUserPage, CommentTray as AmityCommentTrayComponent, CommunitiesByCategoryPage as AmityCommunitiesByCategoryPage, CommunityAddCategoryPage as AmityCommunityAddCategoryPage, CommunityAddMemberPage as AmityCommunityAddMemberPage, CommunityFeed as AmityCommunityFeedComponent, CommunityHeader as AmityCommunityHeaderComponent, CommunityImageFeed as AmityCommunityImageFeedComponent, CommunityMembershipPage as AmityCommunityMembershipPage, 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, AmityDraftStoryPage, EditUserProfilePage as AmityEditUserProfilePage, EmptyNewsfeed as AmityEmptyNewsFeedComponent, CommentText as AmityExpandableText, Explore as AmityExploreComponent, GlobalFeed as AmityGlobalFeedComponent, 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, PendingPostContent as AmityPendingPostContentComponent, PendingPostsPage as AmityPendingPostsPage, 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 };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React, { ReactNode, RefObject } from 'react';
1
+ import React, { FC, ReactNode, RefObject } 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
4
 
@@ -91,6 +91,15 @@ declare enum AmityCommunitySetupPageMode {
91
91
  CREATE = "create",
92
92
  EDIT = "edit"
93
93
  }
94
+ interface CommunitySetupEditOptions {
95
+ mode: AmityCommunitySetupPageMode.EDIT;
96
+ community: Amity.Community;
97
+ }
98
+ interface CommunitySetupCreateOptions {
99
+ mode: AmityCommunitySetupPageMode.CREATE;
100
+ }
101
+ type CommunitySetupPageProps = CommunitySetupCreateOptions | CommunitySetupEditOptions;
102
+ declare const CommunitySetupPage: (props: CommunitySetupPageProps) => React.JSX.Element;
94
103
 
95
104
  declare enum Mode {
96
105
  CREATE = "create",
@@ -113,6 +122,11 @@ declare const enum UserRelationshipPageTabs {
113
122
  FOLLOWING = "following",
114
123
  FOLLOWER = "followers"
115
124
  }
125
+ type UserRelationshipPageProps = {
126
+ userId: string;
127
+ selectedTab: UserRelationshipPageTabs;
128
+ };
129
+ declare const UserRelationshipPage: FC<UserRelationshipPageProps>;
116
130
 
117
131
  interface PageBehavior {
118
132
  AmityStoryViewPageBehavior?: {
@@ -268,7 +282,7 @@ interface PageBehavior {
268
282
  }): void;
269
283
  goToSocialHomePage?(): void;
270
284
  };
271
- AmityCommunityMembershipPage?: {
285
+ AmityCommunityMembershipPageBehavior?: {
272
286
  goToAddMemberPage?(context: {
273
287
  members?: MemberCommunitySetup[];
274
288
  communityId?: string;
@@ -292,24 +306,24 @@ interface PageBehavior {
292
306
  userId: string;
293
307
  }): void;
294
308
  };
295
- AmityUserProfileHeaderComponentBehavior: {
309
+ AmityUserProfileHeaderComponentBehavior?: {
296
310
  goToUserRelationshipPage?(context: {
297
311
  userId: string;
298
312
  selectedTab: UserRelationshipPageTabs;
299
313
  }): void;
300
314
  goToPendingFollowRequestPage?(): void;
301
315
  };
302
- AmityUserRelationshipPageBehavior: {
316
+ AmityUserRelationshipPageBehavior?: {
303
317
  goToUserProfilePage?(context: {
304
318
  userId: string;
305
319
  }): void;
306
320
  };
307
- AmityUserPendingFollowRequestsPageBehavior: {
321
+ AmityUserPendingFollowRequestsPageBehavior?: {
308
322
  goToUserProfilePage?(context: {
309
323
  userId: string;
310
324
  }): void;
311
325
  };
312
- AmityBlockedUsersPageBehavior: {
326
+ AmityBlockedUsersPageBehavior?: {
313
327
  goToUserProfilePage?(context: {
314
328
  userId: string;
315
329
  }): void;
@@ -760,12 +774,6 @@ interface PostDetailPageProps {
760
774
  }
761
775
  declare function PostDetailPage({ id, hideTarget, category }: PostDetailPageProps): React.JSX.Element;
762
776
 
763
- interface CommunityProfileProps {
764
- communityId: string;
765
- page?: number;
766
- }
767
- declare const CommunityProfilePage: React.FC<CommunityProfileProps>;
768
-
769
777
  type UserProfilePageProps = {
770
778
  userId: string;
771
779
  };
@@ -776,6 +784,77 @@ interface EditUserProfilePageProps {
776
784
  }
777
785
  declare const EditUserProfilePage: React.FC<EditUserProfilePageProps>;
778
786
 
787
+ declare const BlockedUserPage: () => React.JSX.Element;
788
+
789
+ declare const UserPendingFollowRequestPage: () => React.JSX.Element;
790
+
791
+ interface CommunityAddCategoryPageProps {
792
+ category?: Amity.Category[];
793
+ }
794
+ declare const CommunityAddCategoryPage: ({ category }: CommunityAddCategoryPageProps) => React.JSX.Element;
795
+
796
+ interface CommunityAddMemberPageProps {
797
+ member?: MemberCommunitySetup[];
798
+ communityId?: string;
799
+ closePopup?: () => void;
800
+ onAddedAction?: (userId: string[]) => void;
801
+ }
802
+ declare const CommunityAddMemberPage: ({ member, closePopup, communityId, onAddedAction, }: CommunityAddMemberPageProps) => React.JSX.Element;
803
+
804
+ interface CommunityProfileProps {
805
+ communityId: string;
806
+ page?: number;
807
+ }
808
+ declare const CommunityProfilePage: React.FC<CommunityProfileProps>;
809
+
810
+ type CommunitySettingPageProps = {
811
+ community: Amity.Community;
812
+ };
813
+ declare const CommunitySettingPage: ({ community }: CommunitySettingPageProps) => React.JSX.Element;
814
+
815
+ type CommunityPostPermissionPageProps = {
816
+ community: Amity.Community;
817
+ };
818
+ declare const CommunityPostPermissionPage: ({ community }: CommunityPostPermissionPageProps) => React.JSX.Element;
819
+
820
+ type CommunityStorySettingPageProps = {
821
+ community: Amity.Community;
822
+ };
823
+ declare const CommunityStorySettingPage: ({ community }: CommunityStorySettingPageProps) => React.JSX.Element;
824
+
825
+ type PendingPostsPageProps = {
826
+ communityId: string;
827
+ };
828
+ declare const PendingPostsPage: ({ communityId }: PendingPostsPageProps) => React.JSX.Element;
829
+
830
+ type CommunityMembershipPageProps = {
831
+ community: Amity.Community;
832
+ };
833
+ declare const CommunityMembershipPage: ({ community }: CommunityMembershipPageProps) => React.JSX.Element;
834
+
835
+ type PollPostComposerPageProps = {
836
+ targetId: string | null;
837
+ targetType: 'community' | 'user';
838
+ };
839
+ declare const PollPostComposerPage: ({ targetId, targetType }: PollPostComposerPageProps) => React.JSX.Element;
840
+
841
+ declare function PollTargetSelectionPage(): React.JSX.Element;
842
+
843
+ declare function AllCategoriesPage(): React.JSX.Element;
844
+
845
+ interface CommunitiesByCategoryPageProps {
846
+ categoryId: string;
847
+ }
848
+ declare function CommunitiesByCategoryPage({ categoryId }: CommunitiesByCategoryPageProps): React.JSX.Element;
849
+
850
+ type LiveStreamPlayerPageProps = {
851
+ post: Amity.Post;
852
+ goToDetailPage?: () => void;
853
+ };
854
+ declare function LiveStreamPlayerPage({ post, goToDetailPage }: LiveStreamPlayerPageProps): React.JSX.Element;
855
+
856
+ declare function LivestreamTerminatedPage(): React.JSX.Element;
857
+
779
858
  type CommentTrayProps = {
780
859
  pageId?: string;
781
860
  referenceId: string;
@@ -803,24 +882,25 @@ declare function CreatePostMenu({ pageId }: CreatePostMenuProps): React.JSX.Elem
803
882
 
804
883
  interface MediaAttachmentProps {
805
884
  pageId: string;
806
- uploadLoading?: boolean;
807
885
  isVisibleCamera: boolean;
808
886
  isVisibleImage: boolean;
809
887
  isVisibleVideo: boolean;
810
- onVideoFileChange?: (files: File[]) => void;
811
- onImageFileChange?: (files: File[]) => void;
888
+ totalMedia?: number;
889
+ onVideoFileChange?: (files: File[], fileType?: string) => void;
890
+ onImageFileChange?: (files: File[], fileType?: string) => void;
812
891
  }
813
- declare function MediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps): React.JSX.Element | null;
892
+ declare function MediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps): React.JSX.Element | null;
814
893
 
815
894
  interface DetailedMediaAttachmentProps {
816
895
  pageId: string;
817
896
  isVisibleCamera: boolean;
818
897
  isVisibleImage: boolean;
819
898
  isVisibleVideo: boolean;
899
+ totalMedia?: number;
820
900
  onVideoFileChange?: (files: File[]) => void;
821
901
  onImageFileChange?: (files: File[]) => void;
822
902
  }
823
- declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): React.JSX.Element | null;
903
+ declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): React.JSX.Element | null;
824
904
 
825
905
  type UserSearchResultProps = {
826
906
  pageId?: string;
@@ -857,11 +937,13 @@ interface GlobalFeedProps {
857
937
  pageId?: string;
858
938
  componentId?: string;
859
939
  items: Array<Amity.Post | Amity.Ad>;
940
+ globalFeaturedPosts?: Array<Amity.Post>;
860
941
  isLoading: boolean;
942
+ isGlobalFeaturedPostsLoading?: boolean;
861
943
  onFeedReachBottom: () => void;
862
944
  onPostDeleted?: (post: Amity.Post) => void;
863
945
  }
864
- declare const GlobalFeed: ({ pageId, componentId, items, isLoading, onFeedReachBottom, onPostDeleted, }: GlobalFeedProps) => React.JSX.Element;
946
+ declare const GlobalFeed: ({ pageId, componentId, items, isLoading, globalFeaturedPosts, isGlobalFeaturedPostsLoading, onFeedReachBottom, onPostDeleted, }: GlobalFeedProps) => React.JSX.Element;
865
947
 
866
948
  interface EmptyNewsfeedProps {
867
949
  pageId?: string;
@@ -905,4 +987,53 @@ interface CommunityPinnedPostProps {
905
987
  }
906
988
  declare const CommunityPinnedPost: ({ communityId }: CommunityPinnedPostProps) => React.JSX.Element;
907
989
 
908
- 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 };
990
+ type CommunityImageFeedProps = {
991
+ pageId?: string;
992
+ communityId: string;
993
+ };
994
+ declare const CommunityImageFeed: ({ pageId, communityId }: CommunityImageFeedProps) => React.JSX.Element | null;
995
+
996
+ type CommunityVideoFeedProps = {
997
+ pageId?: string;
998
+ communityId: string;
999
+ };
1000
+ declare const CommunityVideoFeed: ({ pageId, communityId }: CommunityVideoFeedProps) => React.JSX.Element | null;
1001
+
1002
+ type PendingPostContentProps = {
1003
+ pageId?: string;
1004
+ post?: Amity.Post;
1005
+ canReviewCommunityPosts?: boolean;
1006
+ refresh?: () => void;
1007
+ };
1008
+ declare const PendingPostContent: ({ pageId, post: initialPost, canReviewCommunityPosts, refresh, }: PendingPostContentProps) => React.JSX.Element;
1009
+
1010
+ interface UserProfileHeaderProps {
1011
+ user?: Amity.User | null;
1012
+ pageId?: string;
1013
+ }
1014
+ declare const UserProfileHeader: React.FC<UserProfileHeaderProps>;
1015
+
1016
+ interface UserFeedProps {
1017
+ userId: string;
1018
+ pageId?: string;
1019
+ }
1020
+ declare const UserFeed: ({ pageId, userId }: UserFeedProps) => React.JSX.Element;
1021
+
1022
+ interface UserImageFeedProps {
1023
+ userId: string;
1024
+ pageId?: string;
1025
+ }
1026
+ declare const UserImageFeed: ({ pageId, userId }: UserImageFeedProps) => React.JSX.Element;
1027
+
1028
+ interface UserVideoFeedProps {
1029
+ userId: string;
1030
+ pageId?: string;
1031
+ }
1032
+ declare const UserVideoFeed: ({ pageId, userId }: UserVideoFeedProps) => React.JSX.Element;
1033
+
1034
+ type ExploreProps = {
1035
+ pageId?: string;
1036
+ };
1037
+ declare const Explore: ({ pageId }: ExploreProps) => React.JSX.Element;
1038
+
1039
+ export { AllCategoriesPage as AmityAllCategoriesPage, _default$1 as AmityAvatar, BlockedUserPage as AmityBlockedUserPage, CommentTray as AmityCommentTrayComponent, CommunitiesByCategoryPage as AmityCommunitiesByCategoryPage, CommunityAddCategoryPage as AmityCommunityAddCategoryPage, CommunityAddMemberPage as AmityCommunityAddMemberPage, CommunityFeed as AmityCommunityFeedComponent, CommunityHeader as AmityCommunityHeaderComponent, CommunityImageFeed as AmityCommunityImageFeedComponent, CommunityMembershipPage as AmityCommunityMembershipPage, 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, AmityDraftStoryPage, EditUserProfilePage as AmityEditUserProfilePage, EmptyNewsfeed as AmityEmptyNewsFeedComponent, CommentText as AmityExpandableText, Explore as AmityExploreComponent, GlobalFeed as AmityGlobalFeedComponent, 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, PendingPostContent as AmityPendingPostContentComponent, PendingPostsPage as AmityPendingPostsPage, 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 };