@amityco/ui-kit-open-source 4.2.1 → 4.4.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 +707 -708
- package/dist/esm/livestream-default-thumbnail-C6F5AP64.png +0 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +137 -19
- package/dist/index.d.ts +137 -19
- package/dist/index.js +807 -783
- package/dist/livestream-default-thumbnail-C6F5AP64.png +0 -0
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +9 -4
- package/README.md +0 -136
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
|
-
|
|
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,69 @@ 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
|
+
|
|
779
850
|
type CommentTrayProps = {
|
|
780
851
|
pageId?: string;
|
|
781
852
|
referenceId: string;
|
|
@@ -803,24 +874,25 @@ declare function CreatePostMenu({ pageId }: CreatePostMenuProps): React.JSX.Elem
|
|
|
803
874
|
|
|
804
875
|
interface MediaAttachmentProps {
|
|
805
876
|
pageId: string;
|
|
806
|
-
uploadLoading?: boolean;
|
|
807
877
|
isVisibleCamera: boolean;
|
|
808
878
|
isVisibleImage: boolean;
|
|
809
879
|
isVisibleVideo: boolean;
|
|
810
|
-
|
|
811
|
-
|
|
880
|
+
totalMedia?: number;
|
|
881
|
+
onVideoFileChange?: (files: File[], fileType?: string) => void;
|
|
882
|
+
onImageFileChange?: (files: File[], fileType?: string) => void;
|
|
812
883
|
}
|
|
813
|
-
declare function MediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps): React.JSX.Element | null;
|
|
884
|
+
declare function MediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps): React.JSX.Element | null;
|
|
814
885
|
|
|
815
886
|
interface DetailedMediaAttachmentProps {
|
|
816
887
|
pageId: string;
|
|
817
888
|
isVisibleCamera: boolean;
|
|
818
889
|
isVisibleImage: boolean;
|
|
819
890
|
isVisibleVideo: boolean;
|
|
891
|
+
totalMedia?: number;
|
|
820
892
|
onVideoFileChange?: (files: File[]) => void;
|
|
821
893
|
onImageFileChange?: (files: File[]) => void;
|
|
822
894
|
}
|
|
823
|
-
declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): React.JSX.Element | null;
|
|
895
|
+
declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): React.JSX.Element | null;
|
|
824
896
|
|
|
825
897
|
type UserSearchResultProps = {
|
|
826
898
|
pageId?: string;
|
|
@@ -857,11 +929,13 @@ interface GlobalFeedProps {
|
|
|
857
929
|
pageId?: string;
|
|
858
930
|
componentId?: string;
|
|
859
931
|
items: Array<Amity.Post | Amity.Ad>;
|
|
932
|
+
globalFeaturedPosts?: Array<Amity.Post>;
|
|
860
933
|
isLoading: boolean;
|
|
934
|
+
isGlobalFeaturedPostsLoading?: boolean;
|
|
861
935
|
onFeedReachBottom: () => void;
|
|
862
936
|
onPostDeleted?: (post: Amity.Post) => void;
|
|
863
937
|
}
|
|
864
|
-
declare const GlobalFeed: ({ pageId, componentId, items, isLoading, onFeedReachBottom, onPostDeleted, }: GlobalFeedProps) => React.JSX.Element;
|
|
938
|
+
declare const GlobalFeed: ({ pageId, componentId, items, isLoading, globalFeaturedPosts, isGlobalFeaturedPostsLoading, onFeedReachBottom, onPostDeleted, }: GlobalFeedProps) => React.JSX.Element;
|
|
865
939
|
|
|
866
940
|
interface EmptyNewsfeedProps {
|
|
867
941
|
pageId?: string;
|
|
@@ -905,4 +979,48 @@ interface CommunityPinnedPostProps {
|
|
|
905
979
|
}
|
|
906
980
|
declare const CommunityPinnedPost: ({ communityId }: CommunityPinnedPostProps) => React.JSX.Element;
|
|
907
981
|
|
|
908
|
-
|
|
982
|
+
type CommunityImageFeedProps = {
|
|
983
|
+
pageId?: string;
|
|
984
|
+
communityId: string;
|
|
985
|
+
};
|
|
986
|
+
declare const CommunityImageFeed: ({ pageId, communityId }: CommunityImageFeedProps) => React.JSX.Element | null;
|
|
987
|
+
|
|
988
|
+
type CommunityVideoFeedProps = {
|
|
989
|
+
pageId?: string;
|
|
990
|
+
communityId: string;
|
|
991
|
+
};
|
|
992
|
+
declare const CommunityVideoFeed: ({ pageId, communityId }: CommunityVideoFeedProps) => React.JSX.Element | null;
|
|
993
|
+
|
|
994
|
+
type PendingPostContentProps = {
|
|
995
|
+
pageId?: string;
|
|
996
|
+
post?: Amity.Post;
|
|
997
|
+
canReviewCommunityPosts?: boolean;
|
|
998
|
+
refresh?: () => void;
|
|
999
|
+
};
|
|
1000
|
+
declare const PendingPostContent: ({ pageId, post: initialPost, canReviewCommunityPosts, refresh, }: PendingPostContentProps) => React.JSX.Element;
|
|
1001
|
+
|
|
1002
|
+
interface UserProfileHeaderProps {
|
|
1003
|
+
user?: Amity.User | null;
|
|
1004
|
+
pageId?: string;
|
|
1005
|
+
}
|
|
1006
|
+
declare const UserProfileHeader: React.FC<UserProfileHeaderProps>;
|
|
1007
|
+
|
|
1008
|
+
interface UserFeedProps {
|
|
1009
|
+
userId: string;
|
|
1010
|
+
pageId?: string;
|
|
1011
|
+
}
|
|
1012
|
+
declare const UserFeed: ({ pageId, userId }: UserFeedProps) => React.JSX.Element;
|
|
1013
|
+
|
|
1014
|
+
interface UserImageFeedProps {
|
|
1015
|
+
userId: string;
|
|
1016
|
+
pageId?: string;
|
|
1017
|
+
}
|
|
1018
|
+
declare const UserImageFeed: ({ pageId, userId }: UserImageFeedProps) => React.JSX.Element;
|
|
1019
|
+
|
|
1020
|
+
interface UserVideoFeedProps {
|
|
1021
|
+
userId: string;
|
|
1022
|
+
pageId?: string;
|
|
1023
|
+
}
|
|
1024
|
+
declare const UserVideoFeed: ({ pageId, userId }: UserVideoFeedProps) => React.JSX.Element;
|
|
1025
|
+
|
|
1026
|
+
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, 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, 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
|
-
|
|
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,69 @@ 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
|
+
|
|
779
850
|
type CommentTrayProps = {
|
|
780
851
|
pageId?: string;
|
|
781
852
|
referenceId: string;
|
|
@@ -803,24 +874,25 @@ declare function CreatePostMenu({ pageId }: CreatePostMenuProps): React.JSX.Elem
|
|
|
803
874
|
|
|
804
875
|
interface MediaAttachmentProps {
|
|
805
876
|
pageId: string;
|
|
806
|
-
uploadLoading?: boolean;
|
|
807
877
|
isVisibleCamera: boolean;
|
|
808
878
|
isVisibleImage: boolean;
|
|
809
879
|
isVisibleVideo: boolean;
|
|
810
|
-
|
|
811
|
-
|
|
880
|
+
totalMedia?: number;
|
|
881
|
+
onVideoFileChange?: (files: File[], fileType?: string) => void;
|
|
882
|
+
onImageFileChange?: (files: File[], fileType?: string) => void;
|
|
812
883
|
}
|
|
813
|
-
declare function MediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps): React.JSX.Element | null;
|
|
884
|
+
declare function MediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps): React.JSX.Element | null;
|
|
814
885
|
|
|
815
886
|
interface DetailedMediaAttachmentProps {
|
|
816
887
|
pageId: string;
|
|
817
888
|
isVisibleCamera: boolean;
|
|
818
889
|
isVisibleImage: boolean;
|
|
819
890
|
isVisibleVideo: boolean;
|
|
891
|
+
totalMedia?: number;
|
|
820
892
|
onVideoFileChange?: (files: File[]) => void;
|
|
821
893
|
onImageFileChange?: (files: File[]) => void;
|
|
822
894
|
}
|
|
823
|
-
declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): React.JSX.Element | null;
|
|
895
|
+
declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): React.JSX.Element | null;
|
|
824
896
|
|
|
825
897
|
type UserSearchResultProps = {
|
|
826
898
|
pageId?: string;
|
|
@@ -857,11 +929,13 @@ interface GlobalFeedProps {
|
|
|
857
929
|
pageId?: string;
|
|
858
930
|
componentId?: string;
|
|
859
931
|
items: Array<Amity.Post | Amity.Ad>;
|
|
932
|
+
globalFeaturedPosts?: Array<Amity.Post>;
|
|
860
933
|
isLoading: boolean;
|
|
934
|
+
isGlobalFeaturedPostsLoading?: boolean;
|
|
861
935
|
onFeedReachBottom: () => void;
|
|
862
936
|
onPostDeleted?: (post: Amity.Post) => void;
|
|
863
937
|
}
|
|
864
|
-
declare const GlobalFeed: ({ pageId, componentId, items, isLoading, onFeedReachBottom, onPostDeleted, }: GlobalFeedProps) => React.JSX.Element;
|
|
938
|
+
declare const GlobalFeed: ({ pageId, componentId, items, isLoading, globalFeaturedPosts, isGlobalFeaturedPostsLoading, onFeedReachBottom, onPostDeleted, }: GlobalFeedProps) => React.JSX.Element;
|
|
865
939
|
|
|
866
940
|
interface EmptyNewsfeedProps {
|
|
867
941
|
pageId?: string;
|
|
@@ -905,4 +979,48 @@ interface CommunityPinnedPostProps {
|
|
|
905
979
|
}
|
|
906
980
|
declare const CommunityPinnedPost: ({ communityId }: CommunityPinnedPostProps) => React.JSX.Element;
|
|
907
981
|
|
|
908
|
-
|
|
982
|
+
type CommunityImageFeedProps = {
|
|
983
|
+
pageId?: string;
|
|
984
|
+
communityId: string;
|
|
985
|
+
};
|
|
986
|
+
declare const CommunityImageFeed: ({ pageId, communityId }: CommunityImageFeedProps) => React.JSX.Element | null;
|
|
987
|
+
|
|
988
|
+
type CommunityVideoFeedProps = {
|
|
989
|
+
pageId?: string;
|
|
990
|
+
communityId: string;
|
|
991
|
+
};
|
|
992
|
+
declare const CommunityVideoFeed: ({ pageId, communityId }: CommunityVideoFeedProps) => React.JSX.Element | null;
|
|
993
|
+
|
|
994
|
+
type PendingPostContentProps = {
|
|
995
|
+
pageId?: string;
|
|
996
|
+
post?: Amity.Post;
|
|
997
|
+
canReviewCommunityPosts?: boolean;
|
|
998
|
+
refresh?: () => void;
|
|
999
|
+
};
|
|
1000
|
+
declare const PendingPostContent: ({ pageId, post: initialPost, canReviewCommunityPosts, refresh, }: PendingPostContentProps) => React.JSX.Element;
|
|
1001
|
+
|
|
1002
|
+
interface UserProfileHeaderProps {
|
|
1003
|
+
user?: Amity.User | null;
|
|
1004
|
+
pageId?: string;
|
|
1005
|
+
}
|
|
1006
|
+
declare const UserProfileHeader: React.FC<UserProfileHeaderProps>;
|
|
1007
|
+
|
|
1008
|
+
interface UserFeedProps {
|
|
1009
|
+
userId: string;
|
|
1010
|
+
pageId?: string;
|
|
1011
|
+
}
|
|
1012
|
+
declare const UserFeed: ({ pageId, userId }: UserFeedProps) => React.JSX.Element;
|
|
1013
|
+
|
|
1014
|
+
interface UserImageFeedProps {
|
|
1015
|
+
userId: string;
|
|
1016
|
+
pageId?: string;
|
|
1017
|
+
}
|
|
1018
|
+
declare const UserImageFeed: ({ pageId, userId }: UserImageFeedProps) => React.JSX.Element;
|
|
1019
|
+
|
|
1020
|
+
interface UserVideoFeedProps {
|
|
1021
|
+
userId: string;
|
|
1022
|
+
pageId?: string;
|
|
1023
|
+
}
|
|
1024
|
+
declare const UserVideoFeed: ({ pageId, userId }: UserVideoFeedProps) => React.JSX.Element;
|
|
1025
|
+
|
|
1026
|
+
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, 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, 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 };
|