@amityco/react-native-social-uikit 4.0.0-3dd1feab.0 → 4.0.0-3e7b2eb7.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/README.md +1 -1
- package/lib/commonjs/components/AddMembersModal/index.js +2 -1
- package/lib/commonjs/components/AddMembersModal/index.js.map +1 -1
- package/lib/commonjs/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js +1 -1
- package/lib/commonjs/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js.map +1 -1
- package/lib/commonjs/components/ErrorBoundary/ErrorBoundary.js +77 -0
- package/lib/commonjs/components/ErrorBoundary/ErrorBoundary.js.map +1 -0
- package/lib/commonjs/components/ErrorBoundary/index.js +20 -0
- package/lib/commonjs/components/ErrorBoundary/index.js.map +1 -0
- package/lib/commonjs/components/MediaSection/index.js +3 -3
- package/lib/commonjs/components/MediaSection/index.js.map +1 -1
- package/lib/commonjs/components/PostTypeChoiceModal/PostTypeChoiceModal.js +14 -5
- package/lib/commonjs/components/PostTypeChoiceModal/PostTypeChoiceModal.js.map +1 -1
- package/lib/commonjs/components/PostTypeChoiceModal/style.js +1 -2
- package/lib/commonjs/components/PostTypeChoiceModal/style.js.map +1 -1
- package/lib/commonjs/components/Social/PostList/index.js +8 -5
- package/lib/commonjs/components/Social/PostList/index.js.map +1 -1
- package/lib/commonjs/components/Toast/Toast.js +2 -1
- package/lib/commonjs/components/Toast/Toast.js.map +1 -1
- package/lib/commonjs/hooks/useAuth.js +4 -2
- package/lib/commonjs/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/hooks/useSearch.js +2 -1
- package/lib/commonjs/hooks/useSearch.js.map +1 -1
- package/lib/commonjs/index.js +13 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/providers/Social/communities-sdk.js +2 -1
- package/lib/commonjs/providers/Social/communities-sdk.js.map +1 -1
- package/lib/commonjs/providers/amity-ui-kit-provider.js +4 -2
- package/lib/commonjs/providers/amity-ui-kit-provider.js.map +1 -1
- package/lib/commonjs/providers/auth-provider.js +20 -11
- package/lib/commonjs/providers/auth-provider.js.map +1 -1
- package/lib/commonjs/redux/slices/globalfeedSlice.js +20 -7
- package/lib/commonjs/redux/slices/globalfeedSlice.js.map +1 -1
- package/lib/commonjs/screens/CommunitySearch/index.js +2 -1
- package/lib/commonjs/screens/CommunitySearch/index.js.map +1 -1
- package/lib/commonjs/screens/CreateLivestream/CreateLivestream.js +16 -16
- package/lib/commonjs/screens/CreateLivestream/CreateLivestream.js.map +1 -1
- package/lib/commonjs/screens/LivestreamPlayer/index.js +3 -6
- package/lib/commonjs/screens/LivestreamPlayer/index.js.map +1 -1
- package/lib/commonjs/snippet/AmityGlobalFeedComponent.js +6 -1
- package/lib/commonjs/snippet/AmityGlobalFeedComponent.js.map +1 -1
- package/lib/commonjs/svg/svg-xml-list.js +7 -2
- package/lib/commonjs/svg/svg-xml-list.js.map +1 -1
- package/lib/commonjs/util/postTypeChecker.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityCommunityHeaderComponent/AmityCommunityHeaderComponent.js +3 -3
- package/lib/commonjs/v4/PublicApi/Components/AmityCommunityHeaderComponent/AmityCommunityHeaderComponent.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js +43 -25
- package/lib/commonjs/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityGlobalFeedComponent/AmityGlobalFeedComponent.js +19 -14
- package/lib/commonjs/v4/PublicApi/Components/AmityGlobalFeedComponent/AmityGlobalFeedComponent.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityNewsFeedComponent/AmityNewsFeedComponent.js +23 -3
- package/lib/commonjs/v4/PublicApi/Components/AmityNewsFeedComponent/AmityNewsFeedComponent.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/AmityPostCommentComponent.js +12 -30
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/AmityPostCommentComponent.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/CommentListItem.js +22 -9
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/CommentListItem.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.js +4 -3
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.js +14 -13
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.js +8 -10
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.js +2 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js +2 -2
- package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js +3 -2
- package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityRecommenedCommunityComponent/RecommenedCommunityItems/RecommenedCommunityItems.js +8 -23
- package/lib/commonjs/v4/PublicApi/Components/AmityRecommenedCommunityComponent/RecommenedCommunityItems/RecommenedCommunityItems.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Elements/ButtonWithIconElement/styles.js +3 -2
- package/lib/commonjs/v4/PublicApi/Elements/ButtonWithIconElement/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Elements/CommonElements/AvatarElement.js +16 -9
- package/lib/commonjs/v4/PublicApi/Elements/CommonElements/AvatarElement.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js +41 -28
- package/lib/commonjs/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.js +2 -2
- package/lib/commonjs/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js +231 -76
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js +50 -0
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js.map +1 -0
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js +71 -3
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js +113 -124
- package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js +3 -2
- package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.js +21 -2
- package/lib/commonjs/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmitySocialGlobalSearchPage/AmitySocialGlobalSearchPage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmitySocialHomePage/AmitySocialHomePage.js +21 -29
- package/lib/commonjs/v4/PublicApi/Pages/AmitySocialHomePage/AmitySocialHomePage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityUserProfilePage/AmityUserProfilePage.js +17 -6
- package/lib/commonjs/v4/PublicApi/Pages/AmityUserProfilePage/AmityUserProfilePage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.js +55 -21
- package/lib/commonjs/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityViewStoryPage/styles.js +24 -2
- package/lib/commonjs/v4/PublicApi/Pages/AmityViewStoryPage/styles.js.map +1 -1
- package/lib/commonjs/v4/assets/icons/lock.js +6 -4
- package/lib/commonjs/v4/assets/icons/lock.js.map +1 -1
- package/lib/commonjs/v4/assets/icons/poll.js +2 -2
- package/lib/commonjs/v4/assets/icons/toast.js +6 -6
- package/lib/commonjs/v4/assets/icons/toast.js.map +1 -1
- package/lib/commonjs/v4/component/Avatar/Avatar.js +5 -3
- package/lib/commonjs/v4/component/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/v4/component/CommunityRowItem/CommunityRowItem.js +5 -4
- package/lib/commonjs/v4/component/CommunityRowItem/CommunityRowItem.js.map +1 -1
- package/lib/commonjs/v4/component/CommunitySearchResult/CommunitySearchResult.js +1 -1
- package/lib/commonjs/v4/component/CommunitySearchResult/CommunitySearchResult.js.map +1 -1
- package/lib/commonjs/v4/component/CommunityStories/index.js +9 -4
- package/lib/commonjs/v4/component/CommunityStories/index.js.map +1 -1
- package/lib/commonjs/v4/component/CommunityStories/styles.js +7 -2
- package/lib/commonjs/v4/component/CommunityStories/styles.js.map +1 -1
- package/lib/commonjs/v4/component/LivestreamContent/index.js +12 -12
- package/lib/commonjs/v4/component/LivestreamContent/index.js.map +1 -1
- package/lib/commonjs/v4/component/LoadingImage/index.js +1 -3
- package/lib/commonjs/v4/component/LoadingImage/index.js.map +1 -1
- package/lib/commonjs/v4/component/LoadingVideo/index.js +1 -3
- package/lib/commonjs/v4/component/LoadingVideo/index.js.map +1 -1
- package/lib/commonjs/v4/component/MyAvatar/MyAvatar.js +9 -6
- package/lib/commonjs/v4/component/MyAvatar/MyAvatar.js.map +1 -1
- package/lib/commonjs/v4/component/MyStories/StoryCircleItem.js +11 -4
- package/lib/commonjs/v4/component/MyStories/StoryCircleItem.js.map +1 -1
- package/lib/commonjs/v4/component/MyStories/styles.js +5 -0
- package/lib/commonjs/v4/component/MyStories/styles.js.map +1 -1
- package/lib/commonjs/v4/component/PollContent/PollResults.js +15 -6
- package/lib/commonjs/v4/component/PollContent/PollResults.js.map +1 -1
- package/lib/commonjs/v4/component/PostContent/index.js +4 -4
- package/lib/commonjs/v4/component/PostContent/index.js.map +1 -1
- package/lib/commonjs/v4/component/PostMenu/index.js +2 -2
- package/lib/commonjs/v4/component/PostMenu/index.js.map +1 -1
- package/lib/commonjs/v4/component/RenderTextWithMention/RenderTextWithMention.js +16 -9
- package/lib/commonjs/v4/component/RenderTextWithMention/RenderTextWithMention.js.map +1 -1
- package/lib/commonjs/v4/component/SearchResultItem/SearchResultItem.js +1 -0
- package/lib/commonjs/v4/component/SearchResultItem/SearchResultItem.js.map +1 -1
- package/lib/commonjs/v4/component/Social/CommentList/CommentList.js +24 -15
- package/lib/commonjs/v4/component/Social/CommentList/CommentList.js.map +1 -1
- package/lib/commonjs/v4/component/Social/CommentList/styles.js +12 -0
- package/lib/commonjs/v4/component/Social/CommentList/styles.js.map +1 -1
- package/lib/commonjs/v4/component/Social/CommentListItem/CommentListItem.js +3 -2
- package/lib/commonjs/v4/component/Social/CommentListItem/CommentListItem.js.map +1 -1
- package/lib/commonjs/v4/component/TargetSelectionPage/TargetItem/TargetItem.js +4 -2
- package/lib/commonjs/v4/component/TargetSelectionPage/TargetItem/TargetItem.js.map +1 -1
- package/lib/commonjs/v4/component/TargetSelectionPage/TargetSelectionPage.js +22 -2
- package/lib/commonjs/v4/component/TargetSelectionPage/TargetSelectionPage.js.map +1 -1
- package/lib/commonjs/v4/component/Toast/index.js +4 -4
- package/lib/commonjs/v4/component/Toast/index.js.map +1 -1
- package/lib/commonjs/v4/component/Toast/styles.js +2 -2
- package/lib/commonjs/v4/component/Toast/styles.js.map +1 -1
- package/lib/commonjs/v4/constants/index.js +4 -2
- package/lib/commonjs/v4/constants/index.js.map +1 -1
- package/lib/commonjs/v4/elements/CommunityCreatePostButton/CommunityCreatePostButton.js +1 -1
- package/lib/commonjs/v4/elements/CommunityCreatePostButton/CommunityCreatePostButton.js.map +1 -1
- package/lib/commonjs/v4/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js +8 -3
- package/lib/commonjs/v4/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js.map +1 -1
- package/lib/commonjs/v4/elements/CommunityRowImage/CommunityRowImage.js +4 -32
- package/lib/commonjs/v4/elements/CommunityRowImage/CommunityRowImage.js.map +1 -1
- package/lib/commonjs/v4/engine/AssetDownloader.js +2 -1
- package/lib/commonjs/v4/engine/AssetDownloader.js.map +1 -1
- package/lib/commonjs/v4/enum/roomStatus.js +16 -0
- package/lib/commonjs/v4/enum/roomStatus.js.map +1 -0
- package/lib/commonjs/v4/features/community/AddMember/hooks/useAddMember.js +3 -1
- package/lib/commonjs/v4/features/community/AddMember/hooks/useAddMember.js.map +1 -1
- package/lib/commonjs/v4/features/community/Membership/components/MemberItem/MemberItem.js +2 -1
- package/lib/commonjs/v4/features/community/Membership/components/MemberItem/MemberItem.js.map +1 -1
- package/lib/commonjs/v4/features/community/Setting/hooks/useCommunitySetting.js +6 -3
- package/lib/commonjs/v4/features/community/Setting/hooks/useCommunitySetting.js.map +1 -1
- package/lib/commonjs/v4/{component/CommunityCategoryChips/CommunityCategoryChips.js → features/feed/components/CommunityCategories/CommunityCategories.js} +19 -21
- package/lib/commonjs/v4/features/feed/components/CommunityCategories/CommunityCategories.js.map +1 -0
- package/lib/commonjs/v4/features/feed/components/CommunityCategories/index.js +13 -0
- package/lib/commonjs/v4/features/feed/components/CommunityCategories/index.js.map +1 -0
- package/lib/commonjs/v4/{component/CommunityCategoryChips → features/feed/components/CommunityCategories}/styles.js +7 -2
- package/lib/commonjs/v4/features/feed/components/CommunityCategories/styles.js.map +1 -0
- package/lib/commonjs/v4/features/feed/components/index.js +17 -0
- package/lib/commonjs/v4/features/feed/components/index.js.map +1 -0
- package/lib/commonjs/v4/features/feed/elements/CommunityCategory/CommunityCategory.js +42 -0
- package/lib/commonjs/v4/features/feed/elements/CommunityCategory/CommunityCategory.js.map +1 -0
- package/lib/commonjs/v4/features/feed/elements/CommunityCategory/index.js +13 -0
- package/lib/commonjs/v4/features/feed/elements/CommunityCategory/index.js.map +1 -0
- package/lib/commonjs/v4/features/feed/elements/CommunityCategory/styles.js +29 -0
- package/lib/commonjs/v4/features/feed/elements/CommunityCategory/styles.js.map +1 -0
- package/lib/commonjs/v4/features/feed/elements/index.js +17 -0
- package/lib/commonjs/v4/features/feed/elements/index.js.map +1 -0
- package/lib/commonjs/v4/features/room/hooks/useRoom.js +26 -0
- package/lib/commonjs/v4/features/room/hooks/useRoom.js.map +1 -0
- package/lib/commonjs/v4/hook/index.js +22 -0
- package/lib/commonjs/v4/hook/index.js.map +1 -1
- package/lib/commonjs/v4/hook/useAmityGlobalSearchViewModel.js +2 -1
- package/lib/commonjs/v4/hook/useAmityGlobalSearchViewModel.js.map +1 -1
- package/lib/commonjs/v4/hook/useCustomRankingGlobalFeed.js +40 -40
- package/lib/commonjs/v4/hook/useCustomRankingGlobalFeed.js.map +1 -1
- package/lib/commonjs/v4/hook/usePaginator.js +36 -24
- package/lib/commonjs/v4/hook/usePaginator.js.map +1 -1
- package/lib/commonjs/v4/hook/usePostPermission.js +38 -0
- package/lib/commonjs/v4/hook/usePostPermission.js.map +1 -0
- package/lib/commonjs/v4/hook/usePostSubscription.js +38 -0
- package/lib/commonjs/v4/hook/usePostSubscription.js.map +1 -0
- package/lib/commonjs/v4/hook/useRoomSubscription.js +22 -0
- package/lib/commonjs/v4/hook/useRoomSubscription.js.map +1 -0
- package/lib/commonjs/v4/hook/useSearch.js +2 -1
- package/lib/commonjs/v4/hook/useSearch.js.map +1 -1
- package/lib/commonjs/v4/index.js +7 -0
- package/lib/commonjs/v4/index.js.map +1 -1
- package/lib/commonjs/v4/routes/AmityPageRenderer.js +5 -0
- package/lib/commonjs/v4/routes/AmityPageRenderer.js.map +1 -1
- package/lib/commonjs/v4/routes/AmitySocialUIKitV4Navigator.js +5 -1
- package/lib/commonjs/v4/routes/AmitySocialUIKitV4Navigator.js.map +1 -1
- package/lib/commonjs/v4/screen/FollowerList/Components/FollowerListItem.js +1 -1
- package/lib/commonjs/v4/screen/FollowerList/Components/FollowerListItem.js.map +1 -1
- package/lib/commonjs/v4/screen/GlobalBan/GlobalBan.js +42 -0
- package/lib/commonjs/v4/screen/GlobalBan/GlobalBan.js.map +1 -0
- package/lib/commonjs/v4/screen/GlobalBan/index.js +13 -0
- package/lib/commonjs/v4/screen/GlobalBan/index.js.map +1 -0
- package/lib/commonjs/v4/screen/GlobalBan/styles.js +46 -0
- package/lib/commonjs/v4/screen/GlobalBan/styles.js.map +1 -0
- package/lib/commonjs/v4/screen/PostDetail/index.js +3 -2
- package/lib/commonjs/v4/screen/PostDetail/index.js.map +1 -1
- package/lib/commonjs/v4/stores/slices/toast.js +4 -1
- package/lib/commonjs/v4/stores/slices/toast.js.map +1 -1
- package/lib/module/components/AddMembersModal/index.js +3 -2
- package/lib/module/components/AddMembersModal/index.js.map +1 -1
- package/lib/module/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js +1 -1
- package/lib/module/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js.map +1 -1
- package/lib/module/components/ErrorBoundary/ErrorBoundary.js +69 -0
- package/lib/module/components/ErrorBoundary/ErrorBoundary.js.map +1 -0
- package/lib/module/components/ErrorBoundary/index.js +3 -0
- package/lib/module/components/ErrorBoundary/index.js.map +1 -0
- package/lib/module/components/MediaSection/index.js +3 -3
- package/lib/module/components/MediaSection/index.js.map +1 -1
- package/lib/module/components/PostTypeChoiceModal/PostTypeChoiceModal.js +15 -8
- package/lib/module/components/PostTypeChoiceModal/PostTypeChoiceModal.js.map +1 -1
- package/lib/module/components/PostTypeChoiceModal/style.js +1 -2
- package/lib/module/components/PostTypeChoiceModal/style.js.map +1 -1
- package/lib/module/components/Social/PostList/index.js +8 -5
- package/lib/module/components/Social/PostList/index.js.map +1 -1
- package/lib/module/components/Toast/Toast.js +2 -1
- package/lib/module/components/Toast/Toast.js.map +1 -1
- package/lib/module/hooks/useAuth.js +4 -2
- package/lib/module/hooks/useAuth.js.map +1 -1
- package/lib/module/hooks/useSearch.js +3 -2
- package/lib/module/hooks/useSearch.js.map +1 -1
- package/lib/module/index.js +3 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/providers/Social/communities-sdk.js +2 -1
- package/lib/module/providers/Social/communities-sdk.js.map +1 -1
- package/lib/module/providers/amity-ui-kit-provider.js +4 -2
- package/lib/module/providers/amity-ui-kit-provider.js.map +1 -1
- package/lib/module/providers/auth-provider.js +20 -11
- package/lib/module/providers/auth-provider.js.map +1 -1
- package/lib/module/redux/slices/globalfeedSlice.js +20 -7
- package/lib/module/redux/slices/globalfeedSlice.js.map +1 -1
- package/lib/module/screens/CommunitySearch/index.js +3 -2
- package/lib/module/screens/CommunitySearch/index.js.map +1 -1
- package/lib/module/screens/CreateLivestream/CreateLivestream.js +17 -17
- package/lib/module/screens/CreateLivestream/CreateLivestream.js.map +1 -1
- package/lib/module/screens/LivestreamPlayer/index.js +4 -8
- package/lib/module/screens/LivestreamPlayer/index.js.map +1 -1
- package/lib/module/snippet/AmityGlobalFeedComponent.js +6 -1
- package/lib/module/snippet/AmityGlobalFeedComponent.js.map +1 -1
- package/lib/module/svg/svg-xml-list.js +5 -1
- package/lib/module/svg/svg-xml-list.js.map +1 -1
- package/lib/module/util/postTypeChecker.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityCommunityHeaderComponent/AmityCommunityHeaderComponent.js +3 -3
- package/lib/module/v4/PublicApi/Components/AmityCommunityHeaderComponent/AmityCommunityHeaderComponent.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js +44 -26
- package/lib/module/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityGlobalFeedComponent/AmityGlobalFeedComponent.js +21 -16
- package/lib/module/v4/PublicApi/Components/AmityGlobalFeedComponent/AmityGlobalFeedComponent.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityNewsFeedComponent/AmityNewsFeedComponent.js +23 -3
- package/lib/module/v4/PublicApi/Components/AmityNewsFeedComponent/AmityNewsFeedComponent.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/AmityPostCommentComponent.js +12 -30
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/AmityPostCommentComponent.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/CommentListItem.js +22 -9
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/CommentListItem.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.js +4 -3
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.js +14 -13
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.js +8 -10
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.js +2 -1
- package/lib/module/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js +2 -2
- package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js +3 -2
- package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityRecommenedCommunityComponent/RecommenedCommunityItems/RecommenedCommunityItems.js +9 -23
- package/lib/module/v4/PublicApi/Components/AmityRecommenedCommunityComponent/RecommenedCommunityItems/RecommenedCommunityItems.js.map +1 -1
- package/lib/module/v4/PublicApi/Elements/ButtonWithIconElement/styles.js +3 -2
- package/lib/module/v4/PublicApi/Elements/ButtonWithIconElement/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Elements/CommonElements/AvatarElement.js +16 -9
- package/lib/module/v4/PublicApi/Elements/CommonElements/AvatarElement.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js +42 -29
- package/lib/module/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.js +2 -2
- package/lib/module/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js +236 -80
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js +42 -0
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js.map +1 -0
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js +71 -3
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js +115 -126
- package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js +3 -2
- package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.js +21 -2
- package/lib/module/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmitySocialGlobalSearchPage/AmitySocialGlobalSearchPage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmitySocialHomePage/AmitySocialHomePage.js +23 -31
- package/lib/module/v4/PublicApi/Pages/AmitySocialHomePage/AmitySocialHomePage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityUserProfilePage/AmityUserProfilePage.js +17 -6
- package/lib/module/v4/PublicApi/Pages/AmityUserProfilePage/AmityUserProfilePage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.js +55 -21
- package/lib/module/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityViewStoryPage/styles.js +24 -2
- package/lib/module/v4/PublicApi/Pages/AmityViewStoryPage/styles.js.map +1 -1
- package/lib/module/v4/assets/icons/lock.js +6 -4
- package/lib/module/v4/assets/icons/lock.js.map +1 -1
- package/lib/module/v4/assets/icons/poll.js +2 -2
- package/lib/module/v4/assets/icons/toast.js +6 -6
- package/lib/module/v4/assets/icons/toast.js.map +1 -1
- package/lib/module/v4/component/Avatar/Avatar.js +5 -3
- package/lib/module/v4/component/Avatar/Avatar.js.map +1 -1
- package/lib/module/v4/component/CommunityRowItem/CommunityRowItem.js +5 -4
- package/lib/module/v4/component/CommunityRowItem/CommunityRowItem.js.map +1 -1
- package/lib/module/v4/component/CommunitySearchResult/CommunitySearchResult.js +1 -1
- package/lib/module/v4/component/CommunitySearchResult/CommunitySearchResult.js.map +1 -1
- package/lib/module/v4/component/CommunityStories/index.js +10 -5
- package/lib/module/v4/component/CommunityStories/index.js.map +1 -1
- package/lib/module/v4/component/CommunityStories/styles.js +7 -2
- package/lib/module/v4/component/CommunityStories/styles.js.map +1 -1
- package/lib/module/v4/component/LivestreamContent/index.js +13 -13
- package/lib/module/v4/component/LivestreamContent/index.js.map +1 -1
- package/lib/module/v4/component/LoadingImage/index.js +1 -3
- package/lib/module/v4/component/LoadingImage/index.js.map +1 -1
- package/lib/module/v4/component/LoadingVideo/index.js +1 -3
- package/lib/module/v4/component/LoadingVideo/index.js.map +1 -1
- package/lib/module/v4/component/MyAvatar/MyAvatar.js +9 -6
- package/lib/module/v4/component/MyAvatar/MyAvatar.js.map +1 -1
- package/lib/module/v4/component/MyStories/StoryCircleItem.js +13 -6
- package/lib/module/v4/component/MyStories/StoryCircleItem.js.map +1 -1
- package/lib/module/v4/component/MyStories/styles.js +5 -0
- package/lib/module/v4/component/MyStories/styles.js.map +1 -1
- package/lib/module/v4/component/PollContent/PollResults.js +15 -6
- package/lib/module/v4/component/PollContent/PollResults.js.map +1 -1
- package/lib/module/v4/component/PostContent/index.js +4 -4
- package/lib/module/v4/component/PostContent/index.js.map +1 -1
- package/lib/module/v4/component/PostMenu/index.js +2 -2
- package/lib/module/v4/component/PostMenu/index.js.map +1 -1
- package/lib/module/v4/component/RenderTextWithMention/RenderTextWithMention.js +17 -10
- package/lib/module/v4/component/RenderTextWithMention/RenderTextWithMention.js.map +1 -1
- package/lib/module/v4/component/SearchResultItem/SearchResultItem.js +1 -0
- package/lib/module/v4/component/SearchResultItem/SearchResultItem.js.map +1 -1
- package/lib/module/v4/component/Social/CommentList/CommentList.js +24 -15
- package/lib/module/v4/component/Social/CommentList/CommentList.js.map +1 -1
- package/lib/module/v4/component/Social/CommentList/styles.js +12 -0
- package/lib/module/v4/component/Social/CommentList/styles.js.map +1 -1
- package/lib/module/v4/component/Social/CommentListItem/CommentListItem.js +3 -2
- package/lib/module/v4/component/Social/CommentListItem/CommentListItem.js.map +1 -1
- package/lib/module/v4/component/TargetSelectionPage/TargetItem/TargetItem.js +4 -2
- package/lib/module/v4/component/TargetSelectionPage/TargetItem/TargetItem.js.map +1 -1
- package/lib/module/v4/component/TargetSelectionPage/TargetSelectionPage.js +22 -2
- package/lib/module/v4/component/TargetSelectionPage/TargetSelectionPage.js.map +1 -1
- package/lib/module/v4/component/Toast/index.js +4 -4
- package/lib/module/v4/component/Toast/index.js.map +1 -1
- package/lib/module/v4/component/Toast/styles.js +2 -2
- package/lib/module/v4/component/Toast/styles.js.map +1 -1
- package/lib/module/v4/constants/index.js +3 -1
- package/lib/module/v4/constants/index.js.map +1 -1
- package/lib/module/v4/elements/CommunityCreatePostButton/CommunityCreatePostButton.js +1 -1
- package/lib/module/v4/elements/CommunityCreatePostButton/CommunityCreatePostButton.js.map +1 -1
- package/lib/module/v4/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js +8 -3
- package/lib/module/v4/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js.map +1 -1
- package/lib/module/v4/elements/CommunityRowImage/CommunityRowImage.js +6 -34
- package/lib/module/v4/elements/CommunityRowImage/CommunityRowImage.js.map +1 -1
- package/lib/module/v4/engine/AssetDownloader.js +2 -1
- package/lib/module/v4/engine/AssetDownloader.js.map +1 -1
- package/lib/module/v4/enum/roomStatus.js +10 -0
- package/lib/module/v4/enum/roomStatus.js.map +1 -0
- package/lib/module/v4/features/community/AddMember/hooks/useAddMember.js +3 -1
- package/lib/module/v4/features/community/AddMember/hooks/useAddMember.js.map +1 -1
- package/lib/module/v4/features/community/Membership/components/MemberItem/MemberItem.js +2 -1
- package/lib/module/v4/features/community/Membership/components/MemberItem/MemberItem.js.map +1 -1
- package/lib/module/v4/features/community/Setting/hooks/useCommunitySetting.js +6 -3
- package/lib/module/v4/features/community/Setting/hooks/useCommunitySetting.js.map +1 -1
- package/lib/module/v4/{component/CommunityCategoryChips/CommunityCategoryChips.js → features/feed/components/CommunityCategories/CommunityCategories.js} +18 -19
- package/lib/module/v4/features/feed/components/CommunityCategories/CommunityCategories.js.map +1 -0
- package/lib/module/v4/features/feed/components/CommunityCategories/index.js +2 -0
- package/lib/module/v4/features/feed/components/CommunityCategories/index.js.map +1 -0
- package/lib/module/v4/{component/CommunityCategoryChips → features/feed/components/CommunityCategories}/styles.js +7 -2
- package/lib/module/v4/features/feed/components/CommunityCategories/styles.js.map +1 -0
- package/lib/module/v4/features/feed/components/index.js +2 -0
- package/lib/module/v4/features/feed/components/index.js.map +1 -0
- package/lib/module/v4/features/feed/elements/CommunityCategory/CommunityCategory.js +35 -0
- package/lib/module/v4/features/feed/elements/CommunityCategory/CommunityCategory.js.map +1 -0
- package/lib/module/v4/features/feed/elements/CommunityCategory/index.js +2 -0
- package/lib/module/v4/features/feed/elements/CommunityCategory/index.js.map +1 -0
- package/lib/module/v4/features/feed/elements/CommunityCategory/styles.js +22 -0
- package/lib/module/v4/features/feed/elements/CommunityCategory/styles.js.map +1 -0
- package/lib/module/v4/features/feed/elements/index.js +2 -0
- package/lib/module/v4/features/feed/elements/index.js.map +1 -0
- package/lib/module/v4/features/room/hooks/useRoom.js +20 -0
- package/lib/module/v4/features/room/hooks/useRoom.js.map +1 -0
- package/lib/module/v4/hook/index.js +2 -0
- package/lib/module/v4/hook/index.js.map +1 -1
- package/lib/module/v4/hook/useAmityGlobalSearchViewModel.js +3 -2
- package/lib/module/v4/hook/useAmityGlobalSearchViewModel.js.map +1 -1
- package/lib/module/v4/hook/useCustomRankingGlobalFeed.js +41 -41
- package/lib/module/v4/hook/useCustomRankingGlobalFeed.js.map +1 -1
- package/lib/module/v4/hook/usePaginator.js +37 -25
- package/lib/module/v4/hook/usePaginator.js.map +1 -1
- package/lib/module/v4/hook/usePostPermission.js +31 -0
- package/lib/module/v4/hook/usePostPermission.js.map +1 -0
- package/lib/module/v4/hook/usePostSubscription.js +31 -0
- package/lib/module/v4/hook/usePostSubscription.js.map +1 -0
- package/lib/module/v4/hook/useRoomSubscription.js +15 -0
- package/lib/module/v4/hook/useRoomSubscription.js.map +1 -0
- package/lib/module/v4/hook/useSearch.js +3 -2
- package/lib/module/v4/hook/useSearch.js.map +1 -1
- package/lib/module/v4/index.js +1 -1
- package/lib/module/v4/index.js.map +1 -1
- package/lib/module/v4/routes/AmityPageRenderer.js +5 -0
- package/lib/module/v4/routes/AmityPageRenderer.js.map +1 -1
- package/lib/module/v4/routes/AmitySocialUIKitV4Navigator.js +5 -1
- package/lib/module/v4/routes/AmitySocialUIKitV4Navigator.js.map +1 -1
- package/lib/module/v4/screen/FollowerList/Components/FollowerListItem.js +1 -1
- package/lib/module/v4/screen/FollowerList/Components/FollowerListItem.js.map +1 -1
- package/lib/module/v4/screen/GlobalBan/GlobalBan.js +35 -0
- package/lib/module/v4/screen/GlobalBan/GlobalBan.js.map +1 -0
- package/lib/module/v4/screen/GlobalBan/index.js +2 -0
- package/lib/module/v4/screen/GlobalBan/index.js.map +1 -0
- package/lib/module/v4/screen/GlobalBan/styles.js +39 -0
- package/lib/module/v4/screen/GlobalBan/styles.js.map +1 -0
- package/lib/module/v4/screen/PostDetail/index.js +3 -2
- package/lib/module/v4/screen/PostDetail/index.js.map +1 -1
- package/lib/module/v4/stores/slices/toast.js +4 -1
- package/lib/module/v4/stores/slices/toast.js.map +1 -1
- package/lib/typescript/src/components/AddMembersModal/index.d.ts.map +1 -1
- package/lib/typescript/src/components/ErrorBoundary/ErrorBoundary.d.ts +20 -0
- package/lib/typescript/src/components/ErrorBoundary/ErrorBoundary.d.ts.map +1 -0
- package/lib/typescript/src/components/ErrorBoundary/index.d.ts +3 -0
- package/lib/typescript/src/components/ErrorBoundary/index.d.ts.map +1 -0
- package/lib/typescript/src/components/MediaSection/index.d.ts.map +1 -1
- package/lib/typescript/src/components/PollSection/usePoll.d.ts +1 -1
- package/lib/typescript/src/components/PostTypeChoiceModal/style.d.ts +1 -2
- package/lib/typescript/src/components/PostTypeChoiceModal/style.d.ts.map +1 -1
- package/lib/typescript/src/components/Social/PostList/index.d.ts +1 -3
- package/lib/typescript/src/components/Social/PostList/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Toast/Toast.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useSearch.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/providers/amity-ui-kit-provider.d.ts.map +1 -1
- package/lib/typescript/src/providers/auth-provider.d.ts.map +1 -1
- package/lib/typescript/src/redux/slices/globalfeedSlice.d.ts.map +1 -1
- package/lib/typescript/src/screens/CommunitySearch/index.d.ts.map +1 -1
- package/lib/typescript/src/screens/LivestreamPlayer/index.d.ts.map +1 -1
- package/lib/typescript/src/svg/svg-xml-list.d.ts +1 -0
- package/lib/typescript/src/svg/svg-xml-list.d.ts.map +1 -1
- package/lib/typescript/src/types/auth.interface.d.ts +1 -0
- package/lib/typescript/src/types/auth.interface.d.ts.map +1 -1
- package/lib/typescript/src/types/user.interface.d.ts +1 -0
- package/lib/typescript/src/types/user.interface.d.ts.map +1 -1
- package/lib/typescript/src/util/postTypeChecker.d.ts +1 -1
- package/lib/typescript/src/util/postTypeChecker.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityGlobalFeedComponent/AmityGlobalFeedComponent.d.ts +4 -0
- package/lib/typescript/src/v4/PublicApi/Components/AmityGlobalFeedComponent/AmityGlobalFeedComponent.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityNewsFeedComponent/AmityNewsFeedComponent.d.ts +1 -0
- package/lib/typescript/src/v4/PublicApi/Components/AmityNewsFeedComponent/AmityNewsFeedComponent.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/AmityPostCommentComponent.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/CommentListItem.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.d.ts +1 -0
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.d.ts +1 -2
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.d.ts +3 -5
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.d.ts +1 -3
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityRecommenedCommunityComponent/RecommenedCommunityItems/RecommenedCommunityItems.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Elements/ButtonWithIconElement/styles.d.ts +1 -0
- package/lib/typescript/src/v4/PublicApi/Elements/ButtonWithIconElement/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Elements/CommonElements/AvatarElement.d.ts +1 -0
- package/lib/typescript/src/v4/PublicApi/Elements/CommonElements/AvatarElement.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.d.ts +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.d.ts +8 -0
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.d.ts.map +1 -0
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.d.ts +70 -2
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.d.ts +1 -0
- package/lib/typescript/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.d.ts +1 -0
- package/lib/typescript/src/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmitySocialGlobalSearchPage/AmitySocialGlobalSearchPage.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmitySocialHomePage/AmitySocialHomePage.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityUserProfilePage/AmityUserProfilePage.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityViewStoryPage/styles.d.ts +22 -0
- package/lib/typescript/src/v4/PublicApi/Pages/AmityViewStoryPage/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/assets/icons/lock.d.ts +1 -1
- package/lib/typescript/src/v4/assets/icons/lock.d.ts.map +1 -1
- package/lib/typescript/src/v4/assets/icons/toast.d.ts +3 -3
- package/lib/typescript/src/v4/assets/icons/toast.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/Avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/CommunitySearchResult/CommunitySearchResult.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/CommunityStories/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/CommunityStories/styles.d.ts +5 -0
- package/lib/typescript/src/v4/component/CommunityStories/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/LivestreamContent/index.d.ts +1 -1
- package/lib/typescript/src/v4/component/LivestreamContent/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/LoadingImage/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/LoadingVideo/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/MyAvatar/MyAvatar.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/MyStories/StoryCircleItem.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/MyStories/styles.d.ts +5 -0
- package/lib/typescript/src/v4/component/MyStories/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/PollContent/PollResults.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/PostContent/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/RenderTextWithMention/RenderTextWithMention.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/SearchResultItem/SearchResultItem.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/Social/CommentList/CommentList.d.ts +1 -0
- package/lib/typescript/src/v4/component/Social/CommentList/CommentList.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/Social/CommentList/styles.d.ts +12 -0
- package/lib/typescript/src/v4/component/Social/CommentList/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/Social/CommentListItem/CommentListItem.d.ts +2 -1
- package/lib/typescript/src/v4/component/Social/CommentListItem/CommentListItem.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/TargetSelectionPage/TargetItem/TargetItem.d.ts +2 -1
- package/lib/typescript/src/v4/component/TargetSelectionPage/TargetItem/TargetItem.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/TargetSelectionPage/TargetSelectionPage.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/Toast/styles.d.ts +1 -1
- package/lib/typescript/src/v4/component/Toast/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/constants/index.d.ts +2 -0
- package/lib/typescript/src/v4/constants/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.d.ts.map +1 -1
- package/lib/typescript/src/v4/elements/CommunityRowImage/CommunityRowImage.d.ts +1 -1
- package/lib/typescript/src/v4/elements/CommunityRowImage/CommunityRowImage.d.ts.map +1 -1
- package/lib/typescript/src/v4/enum/roomStatus.d.ts +10 -0
- package/lib/typescript/src/v4/enum/roomStatus.d.ts.map +1 -0
- package/lib/typescript/src/v4/features/community/AddMember/hooks/useAddMember.d.ts.map +1 -1
- package/lib/typescript/src/v4/features/community/Membership/components/MemberItem/MemberItem.d.ts.map +1 -1
- package/lib/typescript/src/v4/features/community/Setting/hooks/useCommunitySetting.d.ts.map +1 -1
- package/lib/typescript/src/v4/features/feed/components/CommunityCategories/CommunityCategories.d.ts +12 -0
- package/lib/typescript/src/v4/features/feed/components/CommunityCategories/CommunityCategories.d.ts.map +1 -0
- package/lib/typescript/src/v4/features/feed/components/CommunityCategories/index.d.ts +2 -0
- package/lib/typescript/src/v4/features/feed/components/CommunityCategories/index.d.ts.map +1 -0
- package/lib/typescript/src/v4/features/feed/components/CommunityCategories/styles.d.ts +30 -0
- package/lib/typescript/src/v4/features/feed/components/CommunityCategories/styles.d.ts.map +1 -0
- package/lib/typescript/src/v4/features/feed/components/index.d.ts +2 -0
- package/lib/typescript/src/v4/features/feed/components/index.d.ts.map +1 -0
- package/lib/typescript/src/v4/features/feed/elements/CommunityCategory/CommunityCategory.d.ts +12 -0
- package/lib/typescript/src/v4/features/feed/elements/CommunityCategory/CommunityCategory.d.ts.map +1 -0
- package/lib/typescript/src/v4/features/feed/elements/CommunityCategory/index.d.ts +2 -0
- package/lib/typescript/src/v4/features/feed/elements/CommunityCategory/index.d.ts.map +1 -0
- package/lib/typescript/src/v4/features/feed/elements/CommunityCategory/styles.d.ts +17 -0
- package/lib/typescript/src/v4/features/feed/elements/CommunityCategory/styles.d.ts.map +1 -0
- package/lib/typescript/src/v4/features/feed/elements/index.d.ts +2 -0
- package/lib/typescript/src/v4/features/feed/elements/index.d.ts.map +1 -0
- package/lib/typescript/src/v4/features/room/hooks/useRoom.d.ts +2 -0
- package/lib/typescript/src/v4/features/room/hooks/useRoom.d.ts.map +1 -0
- package/lib/typescript/src/v4/hook/index.d.ts +2 -0
- package/lib/typescript/src/v4/hook/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/hook/useAmityGlobalSearchViewModel.d.ts.map +1 -1
- package/lib/typescript/src/v4/hook/useCustomRankingGlobalFeed.d.ts +6 -1
- package/lib/typescript/src/v4/hook/useCustomRankingGlobalFeed.d.ts.map +1 -1
- package/lib/typescript/src/v4/hook/usePaginator.d.ts.map +1 -1
- package/lib/typescript/src/v4/hook/usePendingPostQuery.d.ts +1 -35
- package/lib/typescript/src/v4/hook/usePendingPostQuery.d.ts.map +1 -1
- package/lib/typescript/src/v4/hook/usePoll.d.ts +1 -1
- package/lib/typescript/src/v4/hook/usePostPermission.d.ts +6 -0
- package/lib/typescript/src/v4/hook/usePostPermission.d.ts.map +1 -0
- package/lib/typescript/src/v4/hook/usePostSubscription.d.ts +4 -0
- package/lib/typescript/src/v4/hook/usePostSubscription.d.ts.map +1 -0
- package/lib/typescript/src/v4/hook/useRoomSubscription.d.ts +4 -0
- package/lib/typescript/src/v4/hook/useRoomSubscription.d.ts.map +1 -0
- package/lib/typescript/src/v4/hook/useSearch.d.ts.map +1 -1
- package/lib/typescript/src/v4/index.d.ts +1 -0
- package/lib/typescript/src/v4/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/routes/AmityPageRenderer.d.ts.map +1 -1
- package/lib/typescript/src/v4/routes/AmitySocialUIKitV4Navigator.d.ts.map +1 -1
- package/lib/typescript/src/v4/routes/RouteParamList.d.ts +2 -1
- package/lib/typescript/src/v4/routes/RouteParamList.d.ts.map +1 -1
- package/lib/typescript/src/v4/screen/GlobalBan/GlobalBan.d.ts +3 -0
- package/lib/typescript/src/v4/screen/GlobalBan/GlobalBan.d.ts.map +1 -0
- package/lib/typescript/src/v4/screen/GlobalBan/index.d.ts +2 -0
- package/lib/typescript/src/v4/screen/GlobalBan/index.d.ts.map +1 -0
- package/lib/typescript/src/v4/screen/GlobalBan/styles.d.ts +34 -0
- package/lib/typescript/src/v4/screen/GlobalBan/styles.d.ts.map +1 -0
- package/lib/typescript/src/v4/screen/PostDetail/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/stores/slices/toast.d.ts +1 -0
- package/lib/typescript/src/v4/stores/slices/toast.d.ts.map +1 -1
- package/package.json +10 -4
- package/src/components/AddMembersModal/index.tsx +9 -2
- package/src/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.tsx +1 -1
- package/src/components/ErrorBoundary/ErrorBoundary.tsx +84 -0
- package/src/components/ErrorBoundary/index.ts +2 -0
- package/src/components/MediaSection/index.tsx +4 -6
- package/src/components/PostTypeChoiceModal/PostTypeChoiceModal.tsx +15 -15
- package/src/components/PostTypeChoiceModal/style.ts +1 -2
- package/src/components/Social/PostList/index.tsx +8 -6
- package/src/components/Toast/Toast.tsx +1 -0
- package/src/hooks/useAuth.ts +2 -0
- package/src/hooks/useSearch.ts +6 -1
- package/src/index.tsx +4 -2
- package/src/providers/Social/communities-sdk.ts +1 -1
- package/src/providers/amity-ui-kit-provider.tsx +33 -27
- package/src/providers/auth-provider.tsx +17 -7
- package/src/redux/slices/globalfeedSlice.ts +26 -16
- package/src/screens/CommunitySearch/index.tsx +6 -1
- package/src/screens/CreateLivestream/CreateLivestream.tsx +17 -17
- package/src/screens/LivestreamPlayer/index.tsx +9 -15
- package/src/snippet/AmityGlobalFeedComponent.tsx +6 -1
- package/src/svg/svg-xml-list.ts +7 -1
- package/src/types/auth.interface.ts +1 -0
- package/src/types/user.interface.ts +1 -0
- package/src/util/postTypeChecker.ts +1 -1
- package/src/v4/PublicApi/Components/AmityCommunityHeaderComponent/AmityCommunityHeaderComponent.tsx +3 -3
- package/src/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.tsx +47 -31
- package/src/v4/PublicApi/Components/AmityGlobalFeedComponent/AmityGlobalFeedComponent.tsx +33 -22
- package/src/v4/PublicApi/Components/AmityNewsFeedComponent/AmityNewsFeedComponent.tsx +27 -2
- package/src/v4/PublicApi/Components/AmityPostCommentComponent/AmityPostCommentComponent.tsx +31 -45
- package/src/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/CommentListItem.tsx +39 -15
- package/src/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.ts +3 -2
- package/src/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.tsx +38 -23
- package/src/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.ts +5 -7
- package/src/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.tsx +2 -1
- package/src/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.tsx +3 -3
- package/src/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.tsx +2 -2
- package/src/v4/PublicApi/Components/AmityRecommenedCommunityComponent/RecommenedCommunityItems/RecommenedCommunityItems.tsx +8 -24
- package/src/v4/PublicApi/Elements/ButtonWithIconElement/styles.ts +3 -2
- package/src/v4/PublicApi/Elements/CommonElements/AvatarElement.tsx +23 -10
- package/src/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.tsx +37 -28
- package/src/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.ts +2 -2
- package/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.tsx +273 -101
- package/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.tsx +48 -0
- package/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.ts +72 -3
- package/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.tsx +150 -155
- package/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.ts +3 -1
- package/src/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.tsx +20 -1
- package/src/v4/PublicApi/Pages/AmitySocialGlobalSearchPage/AmitySocialGlobalSearchPage.tsx +0 -1
- package/src/v4/PublicApi/Pages/AmitySocialHomePage/AmitySocialHomePage.tsx +27 -33
- package/src/v4/PublicApi/Pages/AmityUserProfilePage/AmityUserProfilePage.tsx +24 -7
- package/src/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.tsx +123 -57
- package/src/v4/PublicApi/Pages/AmityViewStoryPage/styles.ts +23 -1
- package/src/v4/assets/icons/lock.tsx +7 -6
- package/src/v4/assets/icons/poll.tsx +2 -2
- package/src/v4/assets/icons/toast.tsx +12 -9
- package/src/v4/component/Avatar/Avatar.tsx +5 -2
- package/src/v4/component/CommunityRowItem/CommunityRowItem.tsx +4 -4
- package/src/v4/component/CommunitySearchResult/CommunitySearchResult.tsx +3 -1
- package/src/v4/component/CommunityStories/index.tsx +26 -17
- package/src/v4/component/CommunityStories/styles.ts +7 -2
- package/src/v4/component/LivestreamContent/index.tsx +22 -22
- package/src/v4/component/LoadingImage/index.tsx +1 -4
- package/src/v4/component/LoadingVideo/index.tsx +1 -4
- package/src/v4/component/MyAvatar/MyAvatar.tsx +12 -6
- package/src/v4/component/MyStories/StoryCircleItem.tsx +19 -12
- package/src/v4/component/MyStories/styles.ts +5 -0
- package/src/v4/component/PollContent/PollResults.tsx +17 -11
- package/src/v4/component/PostContent/index.tsx +6 -8
- package/src/v4/component/PostMenu/index.tsx +2 -2
- package/src/v4/component/RenderTextWithMention/RenderTextWithMention.tsx +16 -10
- package/src/v4/component/SearchResultItem/SearchResultItem.tsx +3 -0
- package/src/v4/component/Social/CommentList/CommentList.tsx +69 -56
- package/src/v4/component/Social/CommentList/styles.ts +12 -0
- package/src/v4/component/Social/CommentListItem/CommentListItem.tsx +3 -1
- package/src/v4/component/TargetSelectionPage/TargetItem/TargetItem.tsx +3 -0
- package/src/v4/component/TargetSelectionPage/TargetSelectionPage.tsx +23 -1
- package/src/v4/component/Toast/index.tsx +1 -1
- package/src/v4/component/Toast/styles.ts +2 -2
- package/src/v4/constants/index.ts +4 -0
- package/src/v4/elements/CommunityCreatePostButton/CommunityCreatePostButton.tsx +1 -1
- package/src/v4/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.tsx +6 -2
- package/src/v4/elements/CommunityRowImage/CommunityRowImage.tsx +7 -34
- package/src/v4/engine/AssetDownloader.ts +1 -1
- package/src/v4/enum/roomStatus.ts +9 -0
- package/src/v4/features/community/AddMember/hooks/useAddMember.ts +2 -0
- package/src/v4/features/community/Membership/components/MemberItem/MemberItem.tsx +1 -0
- package/src/v4/features/community/Setting/hooks/useCommunitySetting.ts +4 -2
- package/src/v4/{component/CommunityCategoryChips/CommunityCategoryChips.tsx → features/feed/components/CommunityCategories/CommunityCategories.tsx} +20 -22
- package/src/v4/features/feed/components/CommunityCategories/index.ts +1 -0
- package/src/v4/{component/CommunityCategoryChips → features/feed/components/CommunityCategories}/styles.ts +4 -2
- package/src/v4/features/feed/components/index.ts +1 -0
- package/src/v4/features/feed/elements/CommunityCategory/CommunityCategory.tsx +45 -0
- package/src/v4/features/feed/elements/CommunityCategory/index.ts +1 -0
- package/src/v4/features/feed/elements/CommunityCategory/styles.ts +20 -0
- package/src/v4/features/feed/elements/index.ts +1 -0
- package/src/v4/features/room/hooks/useRoom.ts +20 -0
- package/src/v4/hook/index.ts +2 -0
- package/src/v4/hook/useAmityGlobalSearchViewModel.ts +6 -1
- package/src/v4/hook/useCustomRankingGlobalFeed.ts +55 -46
- package/src/v4/hook/usePaginator.ts +60 -31
- package/src/v4/hook/usePostPermission.ts +46 -0
- package/src/v4/hook/usePostSubscription.ts +34 -0
- package/src/v4/hook/useRoomSubscription.ts +19 -0
- package/src/v4/hook/useSearch.ts +6 -1
- package/src/v4/index.tsx +1 -1
- package/src/v4/routes/AmityPageRenderer.tsx +6 -0
- package/src/v4/routes/AmitySocialUIKitV4Navigator.tsx +6 -1
- package/src/v4/routes/RouteParamList.tsx +2 -1
- package/src/v4/screen/FollowerList/Components/FollowerListItem.tsx +1 -1
- package/src/v4/screen/GlobalBan/GlobalBan.tsx +38 -0
- package/src/v4/screen/GlobalBan/index.ts +1 -0
- package/src/v4/screen/GlobalBan/styles.ts +39 -0
- package/src/v4/screen/PostDetail/index.tsx +1 -0
- package/src/v4/stores/slices/toast.ts +5 -0
- package/uikit.config.json +1 -1
- package/lib/commonjs/v4/component/CommunityCategoryChips/CommunityCategoryChip/CommunityCategoryChip.js +0 -38
- package/lib/commonjs/v4/component/CommunityCategoryChips/CommunityCategoryChip/CommunityCategoryChip.js.map +0 -1
- package/lib/commonjs/v4/component/CommunityCategoryChips/CommunityCategoryChips.js.map +0 -1
- package/lib/commonjs/v4/component/CommunityCategoryChips/styles.js.map +0 -1
- package/lib/commonjs/v4/elements/CommunityCatetory/CommunityCategory.js +0 -38
- package/lib/commonjs/v4/elements/CommunityCatetory/CommunityCategory.js.map +0 -1
- package/lib/commonjs/v4/enum/livestreamStatus.js +0 -13
- package/lib/commonjs/v4/enum/livestreamStatus.js.map +0 -1
- package/lib/module/v4/component/CommunityCategoryChips/CommunityCategoryChip/CommunityCategoryChip.js +0 -30
- package/lib/module/v4/component/CommunityCategoryChips/CommunityCategoryChip/CommunityCategoryChip.js.map +0 -1
- package/lib/module/v4/component/CommunityCategoryChips/CommunityCategoryChips.js.map +0 -1
- package/lib/module/v4/component/CommunityCategoryChips/styles.js.map +0 -1
- package/lib/module/v4/elements/CommunityCatetory/CommunityCategory.js +0 -31
- package/lib/module/v4/elements/CommunityCatetory/CommunityCategory.js.map +0 -1
- package/lib/module/v4/enum/livestreamStatus.js +0 -7
- package/lib/module/v4/enum/livestreamStatus.js.map +0 -1
- package/lib/typescript/src/v4/component/CommunityCategoryChips/CommunityCategoryChip/CommunityCategoryChip.d.ts +0 -11
- package/lib/typescript/src/v4/component/CommunityCategoryChips/CommunityCategoryChip/CommunityCategoryChip.d.ts.map +0 -1
- package/lib/typescript/src/v4/component/CommunityCategoryChips/CommunityCategoryChips.d.ts +0 -11
- package/lib/typescript/src/v4/component/CommunityCategoryChips/CommunityCategoryChips.d.ts.map +0 -1
- package/lib/typescript/src/v4/component/CommunityCategoryChips/styles.d.ts +0 -27
- package/lib/typescript/src/v4/component/CommunityCategoryChips/styles.d.ts.map +0 -1
- package/lib/typescript/src/v4/elements/CommunityCatetory/CommunityCategory.d.ts +0 -12
- package/lib/typescript/src/v4/elements/CommunityCatetory/CommunityCategory.d.ts.map +0 -1
- package/lib/typescript/src/v4/enum/livestreamStatus.d.ts +0 -7
- package/lib/typescript/src/v4/enum/livestreamStatus.d.ts.map +0 -1
- package/src/v4/component/CommunityCategoryChips/CommunityCategoryChip/CommunityCategoryChip.tsx +0 -47
- package/src/v4/elements/CommunityCatetory/CommunityCategory.tsx +0 -41
- package/src/v4/enum/livestreamStatus.ts +0 -6
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
ImageStyle,
|
|
8
8
|
} from 'react-native';
|
|
9
9
|
import React, { useEffect, useState, useCallback, Fragment } from 'react';
|
|
10
|
-
import { FileRepository,
|
|
10
|
+
import { FileRepository, RoomRepository } from '@amityco/ts-sdk-react-native';
|
|
11
11
|
import { useStyles } from './styles';
|
|
12
12
|
import { useNavigation } from '@react-navigation/native';
|
|
13
13
|
import { SvgXml } from 'react-native-svg';
|
|
14
14
|
import type { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
|
15
15
|
import { play } from '../../assets/icons';
|
|
16
16
|
import { Typography } from '../Typography/Typography';
|
|
17
|
-
import {
|
|
17
|
+
import { RoomStatus } from '../../enum/roomStatus';
|
|
18
18
|
import LiveStreamEndThumbnail from './LivestreamEndedThumbnail';
|
|
19
19
|
import LiveStreamIdleThumbnail from './LivestreamIdleThumbnail';
|
|
20
20
|
import RenderTextWithMention from '../RenderTextWithMention/RenderTextWithMention';
|
|
@@ -22,14 +22,14 @@ import { RootStackParamList } from '../../routes/RouteParamList';
|
|
|
22
22
|
import LiveStreamTerminatedThumbnail from './LivestreamTerminatedThumbnail';
|
|
23
23
|
|
|
24
24
|
interface ILivestreamContent {
|
|
25
|
-
|
|
25
|
+
roomId: Amity.Room['roomId'];
|
|
26
26
|
onPressPost: () => void;
|
|
27
27
|
post: Amity.Post;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
const LivestreamContent: React.FC<ILivestreamContent> = ({
|
|
31
31
|
post,
|
|
32
|
-
|
|
32
|
+
roomId,
|
|
33
33
|
onPressPost,
|
|
34
34
|
}) => {
|
|
35
35
|
const { styles, theme } = useStyles();
|
|
@@ -39,18 +39,18 @@ const LivestreamContent: React.FC<ILivestreamContent> = ({
|
|
|
39
39
|
>();
|
|
40
40
|
|
|
41
41
|
const [error, setError] = useState<boolean>(false);
|
|
42
|
-
const [livestream, setLivestream] = useState<Amity.
|
|
42
|
+
const [livestream, setLivestream] = useState<Amity.Room>();
|
|
43
43
|
const [thumbnailUrl, setThumbnailUrl] = useState<ImageSourcePropType>();
|
|
44
44
|
const [isUpcoming, setIsUpcoming] = useState<boolean>(false);
|
|
45
45
|
|
|
46
46
|
const onPlayLivestream = useCallback(() => {
|
|
47
47
|
navigation.navigate('LivestreamPlayer', {
|
|
48
48
|
post,
|
|
49
|
-
|
|
49
|
+
roomId: livestream.roomId,
|
|
50
50
|
});
|
|
51
51
|
}, [livestream, navigation, post]);
|
|
52
52
|
|
|
53
|
-
const getLivestreamThumbnail = async (currentStream: Amity.
|
|
53
|
+
const getLivestreamThumbnail = async (currentStream: Amity.Room) => {
|
|
54
54
|
const defaultThumbnail = require('../../assets/images/livestream.png');
|
|
55
55
|
|
|
56
56
|
if (currentStream.thumbnailFileId) {
|
|
@@ -71,8 +71,8 @@ const LivestreamContent: React.FC<ILivestreamContent> = ({
|
|
|
71
71
|
|
|
72
72
|
useEffect(() => {
|
|
73
73
|
setIsUpcoming(true);
|
|
74
|
-
const unsubscribe =
|
|
75
|
-
|
|
74
|
+
const unsubscribe = RoomRepository.getRoom(
|
|
75
|
+
roomId,
|
|
76
76
|
({ data, loading, error: streamError }) => {
|
|
77
77
|
if (streamError) setError(!!streamError);
|
|
78
78
|
if (!loading && data) {
|
|
@@ -86,13 +86,13 @@ const LivestreamContent: React.FC<ILivestreamContent> = ({
|
|
|
86
86
|
return () => {
|
|
87
87
|
unsubscribe();
|
|
88
88
|
};
|
|
89
|
-
}, [
|
|
89
|
+
}, [roomId]);
|
|
90
90
|
|
|
91
91
|
if (!livestream) return null;
|
|
92
92
|
|
|
93
93
|
if (error || livestream?.isDeleted) {
|
|
94
94
|
return (
|
|
95
|
-
<View key={livestream.
|
|
95
|
+
<View key={livestream.roomId} style={styles.container}>
|
|
96
96
|
<LiveStreamIdleThumbnail />
|
|
97
97
|
</View>
|
|
98
98
|
);
|
|
@@ -102,12 +102,12 @@ const LivestreamContent: React.FC<ILivestreamContent> = ({
|
|
|
102
102
|
livestream?.moderation?.terminateLabels &&
|
|
103
103
|
livestream?.moderation?.terminateLabels?.length > 0;
|
|
104
104
|
const isLiveOrEnded =
|
|
105
|
-
livestream?.status ===
|
|
106
|
-
livestream?.status ===
|
|
105
|
+
livestream?.status === RoomStatus.live ||
|
|
106
|
+
livestream?.status === RoomStatus.ended;
|
|
107
107
|
|
|
108
108
|
if (isTerminated && isLiveOrEnded) {
|
|
109
109
|
return (
|
|
110
|
-
<View key={livestream.
|
|
110
|
+
<View key={livestream.roomId} style={styles.container}>
|
|
111
111
|
<LiveStreamTerminatedThumbnail />
|
|
112
112
|
</View>
|
|
113
113
|
);
|
|
@@ -129,7 +129,7 @@ const LivestreamContent: React.FC<ILivestreamContent> = ({
|
|
|
129
129
|
)}
|
|
130
130
|
</Pressable>
|
|
131
131
|
<View style={styles.container}>
|
|
132
|
-
{(livestream.status ===
|
|
132
|
+
{(livestream.status === RoomStatus.idle || isUpcoming) &&
|
|
133
133
|
thumbnailUrl && (
|
|
134
134
|
<View style={styles.content}>
|
|
135
135
|
<Image
|
|
@@ -144,12 +144,11 @@ const LivestreamContent: React.FC<ILivestreamContent> = ({
|
|
|
144
144
|
</View>
|
|
145
145
|
)}
|
|
146
146
|
|
|
147
|
-
{livestream.status ===
|
|
148
|
-
<LiveStreamEndThumbnail />
|
|
149
|
-
)}
|
|
147
|
+
{livestream.status === RoomStatus.ended && <LiveStreamEndThumbnail />}
|
|
150
148
|
|
|
151
|
-
{(livestream.status ===
|
|
152
|
-
livestream.status ===
|
|
149
|
+
{(livestream.status === RoomStatus.live ||
|
|
150
|
+
livestream.status === RoomStatus.recorded ||
|
|
151
|
+
livestream.status === RoomStatus.waitingReconnect) &&
|
|
153
152
|
thumbnailUrl &&
|
|
154
153
|
!isUpcoming && (
|
|
155
154
|
<View style={styles.content}>
|
|
@@ -157,14 +156,15 @@ const LivestreamContent: React.FC<ILivestreamContent> = ({
|
|
|
157
156
|
source={thumbnailUrl}
|
|
158
157
|
style={styles.streamImageCover as ImageStyle}
|
|
159
158
|
/>
|
|
160
|
-
{livestream.status ===
|
|
159
|
+
{(livestream.status === RoomStatus.live ||
|
|
160
|
+
livestream.status === RoomStatus.waitingReconnect) && (
|
|
161
161
|
<View style={styles.streamStatusLive}>
|
|
162
162
|
<Typography.CaptionBold style={styles.streamStatusText}>
|
|
163
163
|
LIVE
|
|
164
164
|
</Typography.CaptionBold>
|
|
165
165
|
</View>
|
|
166
166
|
)}
|
|
167
|
-
{livestream.status ===
|
|
167
|
+
{livestream.status === RoomStatus.recorded && (
|
|
168
168
|
<View style={styles.streamStatusRecorded}>
|
|
169
169
|
<Typography.CaptionBold style={styles.streamStatusText}>
|
|
170
170
|
RECORDED
|
|
@@ -8,8 +8,6 @@ import {
|
|
|
8
8
|
} from '../../../providers/file-provider';
|
|
9
9
|
import { closeIcon, toastIcon } from '../../../svg/svg-xml-list';
|
|
10
10
|
import { useStyles } from './styles';
|
|
11
|
-
import { useTheme } from 'react-native-paper';
|
|
12
|
-
import type { MyMD3Theme } from '../../../providers/amity-ui-kit-provider';
|
|
13
11
|
|
|
14
12
|
interface OverlayImageProps {
|
|
15
13
|
source: string;
|
|
@@ -43,7 +41,6 @@ const LoadingImage = ({
|
|
|
43
41
|
postId,
|
|
44
42
|
setIsUploading,
|
|
45
43
|
}: OverlayImageProps) => {
|
|
46
|
-
const theme = useTheme() as MyMD3Theme;
|
|
47
44
|
const [loading, setLoading] = useState(true);
|
|
48
45
|
const [progress, setProgress] = useState(0);
|
|
49
46
|
const [isProcess, setIsProcess] = useState<boolean>(false);
|
|
@@ -168,7 +165,7 @@ const LoadingImage = ({
|
|
|
168
165
|
disabled={(loading || isProcess) && !isUploadError}
|
|
169
166
|
onPress={handleDelete}
|
|
170
167
|
>
|
|
171
|
-
<SvgXml xml={closeIcon(
|
|
168
|
+
<SvgXml xml={closeIcon('white')} width="12" height="12" />
|
|
172
169
|
</TouchableOpacity>
|
|
173
170
|
</View>
|
|
174
171
|
);
|
|
@@ -18,8 +18,6 @@ import { useStyles } from './styles';
|
|
|
18
18
|
import Video from 'react-native-video';
|
|
19
19
|
import { useNavigation } from '@react-navigation/native';
|
|
20
20
|
import type { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
|
21
|
-
import { useTheme } from 'react-native-paper';
|
|
22
|
-
import type { MyMD3Theme } from '../../../providers/amity-ui-kit-provider';
|
|
23
21
|
import uiSlice from '../../../redux/slices/uiSlice';
|
|
24
22
|
import { createVideoThumbnail } from 'react-native-compressor';
|
|
25
23
|
import { useUIKitDispatch } from '../../../redux/store';
|
|
@@ -61,7 +59,6 @@ const LoadingVideo = ({
|
|
|
61
59
|
postId,
|
|
62
60
|
setIsUploading,
|
|
63
61
|
}: OverlayImageProps) => {
|
|
64
|
-
const theme = useTheme() as MyMD3Theme;
|
|
65
62
|
const dispatch = useUIKitDispatch();
|
|
66
63
|
const { showToastMessage } = uiSlice.actions;
|
|
67
64
|
const [loading, setLoading] = useState(true);
|
|
@@ -228,7 +225,7 @@ const LoadingVideo = ({
|
|
|
228
225
|
disabled={(loading || isProcess) && !isUploadError}
|
|
229
226
|
onPress={handleDelete}
|
|
230
227
|
>
|
|
231
|
-
<SvgXml xml={closeIcon(
|
|
228
|
+
<SvgXml xml={closeIcon('white')} width="12" height="12" />
|
|
232
229
|
</TouchableOpacity>
|
|
233
230
|
)}
|
|
234
231
|
</View>
|
|
@@ -15,13 +15,19 @@ const MyAvatar: FC<MyAvatarProp> = (props) => {
|
|
|
15
15
|
|
|
16
16
|
useEffect(() => {
|
|
17
17
|
UserRepository.getUser(myId, async ({ data, loading, error }) => {
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
setAvatarUrl(avatar ?? defaultAvatarUri);
|
|
18
|
+
if (loading || error || !data) return;
|
|
19
|
+
|
|
20
|
+
if (data.avatarCustomUrl) {
|
|
21
|
+
setAvatarUrl(data.avatarCustomUrl);
|
|
22
|
+
return;
|
|
24
23
|
}
|
|
24
|
+
|
|
25
|
+
const avatar = await getImage({
|
|
26
|
+
fileId: data.avatarFileId,
|
|
27
|
+
imageSize: ImageSizeState.small,
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
setAvatarUrl(avatar ?? defaultAvatarUri);
|
|
25
31
|
});
|
|
26
32
|
}, [getImage, myId]);
|
|
27
33
|
|
|
@@ -2,12 +2,13 @@ import { Image, Text, TouchableOpacity, View } from 'react-native';
|
|
|
2
2
|
import React, { FC, useEffect, useState } from 'react';
|
|
3
3
|
import { SvgXml } from 'react-native-svg';
|
|
4
4
|
import {
|
|
5
|
+
errorIcon,
|
|
5
6
|
officialIcon,
|
|
6
7
|
privateIcon,
|
|
7
8
|
storyRing,
|
|
8
9
|
} from '../../../svg/svg-xml-list';
|
|
9
10
|
import { ComponentID, ElementID, ImageSizeState, PageID } from '../../enum';
|
|
10
|
-
import { useFile } from '../../hook';
|
|
11
|
+
import { useFile, useStoryPermission } from '../../hook';
|
|
11
12
|
import useConfig from '../../hook/useConfig';
|
|
12
13
|
import { useStyles } from './styles';
|
|
13
14
|
import { CommunityRepository } from '@amityco/ts-sdk-react-native';
|
|
@@ -26,18 +27,20 @@ const StoryCircleItem: FC<IStoryCircleItem> = ({
|
|
|
26
27
|
const theme = useTheme() as MyMD3Theme;
|
|
27
28
|
const [avatarUrl, setAvatarUrl] = useState(null);
|
|
28
29
|
const [communityData, setCommunityData] = useState<Amity.Community>(null);
|
|
30
|
+
const hasStoryPermission = useStoryPermission(storyTarget.targetId);
|
|
29
31
|
const { getImage } = useFile();
|
|
30
32
|
const { getUiKitConfig } = useConfig();
|
|
31
33
|
const styles = useStyles();
|
|
32
|
-
const storyRingColor: string[] =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
const storyRingColor: string[] =
|
|
35
|
+
hasStoryPermission && storyTarget?.failedStoriesCount > 0
|
|
36
|
+
? ['#DE1029', '#DE1029']
|
|
37
|
+
: storyTarget?.hasUnseen
|
|
38
|
+
? (getUiKitConfig({
|
|
39
|
+
page: PageID.StoryPage,
|
|
40
|
+
component: ComponentID.StoryTab,
|
|
41
|
+
element: ElementID.StoryRing,
|
|
42
|
+
})?.progress_color as string[]) ?? ['#e2e2e2', '#e2e2e2']
|
|
43
|
+
: ['#e2e2e2', '#e2e2e2'];
|
|
41
44
|
|
|
42
45
|
useEffect(() => {
|
|
43
46
|
if (storyTarget.targetType !== 'community') return;
|
|
@@ -80,12 +83,16 @@ const StoryCircleItem: FC<IStoryCircleItem> = ({
|
|
|
80
83
|
height={68}
|
|
81
84
|
xml={storyRing(storyRingColor[0], storyRingColor[1])}
|
|
82
85
|
/>
|
|
83
|
-
{
|
|
86
|
+
{hasStoryPermission && storyTarget?.failedStoriesCount > 0 ? (
|
|
87
|
+
<View style={styles.errorIcon}>
|
|
88
|
+
<SvgXml width={16} height={16} xml={errorIcon()} />
|
|
89
|
+
</View>
|
|
90
|
+
) : communityData?.isOfficial ? (
|
|
84
91
|
<SvgXml
|
|
85
92
|
style={styles.officialIcon}
|
|
86
93
|
xml={officialIcon(theme.colors.primary)}
|
|
87
94
|
/>
|
|
88
|
-
)}
|
|
95
|
+
) : null}
|
|
89
96
|
<View style={styles.textRow}>
|
|
90
97
|
{!communityData?.isPublic && (
|
|
91
98
|
<SvgXml width={17} height={17} xml={privateIcon(theme.colors.base)} />
|
|
@@ -26,18 +26,23 @@ export function PollResults({ options, totalVotes }: PollResultsProps) {
|
|
|
26
26
|
100
|
|
27
27
|
).toFixed(2);
|
|
28
28
|
|
|
29
|
-
const voteBy = (option: Amity.PollAnswer) => {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
return
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
const voteBy = (option: Amity.PollAnswer): string => {
|
|
30
|
+
const { voteCount, isVotedByUser } = option;
|
|
31
|
+
|
|
32
|
+
if (voteCount === 0) return 'No votes';
|
|
33
|
+
|
|
34
|
+
if (isVotedByUser) {
|
|
35
|
+
const otherVotes = voteCount - 1;
|
|
36
|
+
if (otherVotes === 0) return 'Voted by you';
|
|
37
|
+
|
|
38
|
+
const formattedCount = formatVoteCount(otherVotes);
|
|
39
|
+
const plural = otherVotes > 1 ? 's' : '';
|
|
40
|
+
return `Voted by ${formattedCount} participant${plural} and you`;
|
|
39
41
|
}
|
|
40
|
-
|
|
42
|
+
|
|
43
|
+
const formattedCount = formatVoteCount(voteCount);
|
|
44
|
+
const plural = voteCount > 1 ? 's' : '';
|
|
45
|
+
return `Voted by ${formattedCount} participant${plural}`;
|
|
41
46
|
};
|
|
42
47
|
|
|
43
48
|
return (
|
|
@@ -75,6 +80,7 @@ export function PollResults({ options, totalVotes }: PollResultsProps) {
|
|
|
75
80
|
targetType="user"
|
|
76
81
|
style={styles.optionAvatar}
|
|
77
82
|
avatarId={user?.avatarFileId}
|
|
83
|
+
avatarCustomUrl={user?.avatarCustomUrl}
|
|
78
84
|
elementID={ElementID.WildCardElement}
|
|
79
85
|
/>
|
|
80
86
|
)}
|
|
@@ -43,9 +43,7 @@ const PostContent: React.FC<IPostContent> = ({
|
|
|
43
43
|
const [imagePosts, setImagePosts] = useState<string[]>([]);
|
|
44
44
|
const [videoPosts, setVideoPosts] = useState<IVideoPost[]>([]);
|
|
45
45
|
const [pollIds, setPollIds] = useState<{ pollId: string }[]>([]);
|
|
46
|
-
const [livestreamId, setLivestreamId] = useState<Amity.
|
|
47
|
-
[]
|
|
48
|
-
);
|
|
46
|
+
const [livestreamId, setLivestreamId] = useState<Amity.Room['roomId'][]>([]);
|
|
49
47
|
|
|
50
48
|
const [imagePostsFullSize, setImagePostsFullSize] = useState<MediaUri[]>([]);
|
|
51
49
|
const [videoPostsFullSize, setVideoPostsFullSize] = useState<MediaUri[]>([]);
|
|
@@ -96,7 +94,7 @@ const PostContent: React.FC<IPostContent> = ({
|
|
|
96
94
|
const images: string[] = [];
|
|
97
95
|
const videos: IVideoPost[] = [];
|
|
98
96
|
const polls: { pollId: string }[] = [];
|
|
99
|
-
const livestreams: Amity.
|
|
97
|
+
const livestreams: Amity.Room['roomId'][] = [];
|
|
100
98
|
|
|
101
99
|
response.forEach((item) => {
|
|
102
100
|
if (item?.dataType === 'image' && item?.data?.fileId) {
|
|
@@ -119,9 +117,9 @@ const PostContent: React.FC<IPostContent> = ({
|
|
|
119
117
|
if (!polls.some((poll) => poll.pollId === item.data.pollId)) {
|
|
120
118
|
polls.push(item.data);
|
|
121
119
|
}
|
|
122
|
-
} else if (item?.dataType === '
|
|
123
|
-
if (!livestreams.includes(item.data.
|
|
124
|
-
livestreams.push(item.data.
|
|
120
|
+
} else if (item?.dataType === 'room') {
|
|
121
|
+
if (!livestreams.includes(item.data.roomId)) {
|
|
122
|
+
livestreams.push(item.data.roomId);
|
|
125
123
|
}
|
|
126
124
|
}
|
|
127
125
|
});
|
|
@@ -344,7 +342,7 @@ const PostContent: React.FC<IPostContent> = ({
|
|
|
344
342
|
<LivestreamContent
|
|
345
343
|
post={post}
|
|
346
344
|
onPressPost={onPressPost}
|
|
347
|
-
|
|
345
|
+
roomId={livestreamId[0]}
|
|
348
346
|
/>
|
|
349
347
|
) : (
|
|
350
348
|
renderMediaPosts()
|
|
@@ -255,7 +255,7 @@ export function PostMenu({ pageId, componentId, post }: PostMenuProps) {
|
|
|
255
255
|
],
|
|
256
256
|
},
|
|
257
257
|
(post?.creator?.userId === myId || isIAmModerator) &&
|
|
258
|
-
((childrenPost?.dataType !== '
|
|
258
|
+
((childrenPost?.dataType !== 'room' &&
|
|
259
259
|
childrenPost?.dataType !== 'poll') ||
|
|
260
260
|
(childrenPost?.dataType === 'poll' &&
|
|
261
261
|
pollData?.status === 'open')) &&
|
|
@@ -280,7 +280,7 @@ export function PostMenu({ pageId, componentId, post }: PostMenuProps) {
|
|
|
280
280
|
</TouchableOpacity>
|
|
281
281
|
)}
|
|
282
282
|
{post?.creator?.userId === myId &&
|
|
283
|
-
childrenPost?.dataType !== '
|
|
283
|
+
childrenPost?.dataType !== 'room' &&
|
|
284
284
|
childrenPost?.dataType !== 'poll' && (
|
|
285
285
|
<TouchableOpacity
|
|
286
286
|
onPress={goToEditPost}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Text, Linking } from 'react-native';
|
|
1
|
+
import { Text, Linking, TouchableOpacity } from 'react-native';
|
|
2
2
|
import { useStyles } from './styles';
|
|
3
3
|
import React, { memo, useCallback } from 'react';
|
|
4
4
|
import { useNavigation } from '@react-navigation/native';
|
|
@@ -6,6 +6,7 @@ import { IMentionPosition } from '../../types/type';
|
|
|
6
6
|
import { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
|
7
7
|
import { RootStackParamList } from '../../routes/RouteParamList';
|
|
8
8
|
import ReadMore from '@fawazahmed/react-native-read-more';
|
|
9
|
+
import { URL_REGEX } from '../../../v4/constants';
|
|
9
10
|
|
|
10
11
|
interface IrenderTextWithMention {
|
|
11
12
|
mentionPositionArr: IMentionPosition[];
|
|
@@ -28,10 +29,9 @@ const RenderTextWithMention: React.FC<IrenderTextWithMention> = ({
|
|
|
28
29
|
const navigation =
|
|
29
30
|
useNavigation() as NativeStackNavigationProp<RootStackParamList>;
|
|
30
31
|
const linkArr = useCallback((text: string): LinkInfo[] => {
|
|
31
|
-
const urlRegex = /(https?:\/\/|www\.)[^\s]+/g;
|
|
32
32
|
const links: LinkInfo[] = [];
|
|
33
33
|
let match;
|
|
34
|
-
while ((match =
|
|
34
|
+
while ((match = URL_REGEX.exec(text)) !== null) {
|
|
35
35
|
links.push({
|
|
36
36
|
link: match[0],
|
|
37
37
|
index: match.index,
|
|
@@ -54,8 +54,14 @@ const RenderTextWithMention: React.FC<IrenderTextWithMention> = ({
|
|
|
54
54
|
},
|
|
55
55
|
[navigation]
|
|
56
56
|
);
|
|
57
|
-
const handleLinkClick = useCallback((url: string) => {
|
|
58
|
-
|
|
57
|
+
const handleLinkClick = useCallback(async (url: string) => {
|
|
58
|
+
try {
|
|
59
|
+
const hasProtocol = /^(https?|ftp|mailto):/.test(url);
|
|
60
|
+
const formattedUrl = hasProtocol ? url : `https://${url}`;
|
|
61
|
+
await Linking.openURL(formattedUrl);
|
|
62
|
+
} catch (error) {
|
|
63
|
+
console.warn('Failed to open URL:', error);
|
|
64
|
+
}
|
|
59
65
|
}, []);
|
|
60
66
|
|
|
61
67
|
const handleOnClick = useCallback(
|
|
@@ -88,14 +94,14 @@ const RenderTextWithMention: React.FC<IrenderTextWithMention> = ({
|
|
|
88
94
|
const nonHighlightedText = textPost.slice(currentPosition, index);
|
|
89
95
|
// Add highlighted text
|
|
90
96
|
const highlightedText = (
|
|
91
|
-
<
|
|
92
|
-
selectable
|
|
97
|
+
<TouchableOpacity
|
|
93
98
|
onPress={() => handleOnClick(link, userId)}
|
|
94
99
|
key={`highlighted-${i}`}
|
|
95
|
-
style={styles.mentionText}
|
|
96
100
|
>
|
|
97
|
-
{
|
|
98
|
-
|
|
101
|
+
<Text style={styles.mentionText} selectable>
|
|
102
|
+
{textPost.slice(index, index + length)}
|
|
103
|
+
</Text>
|
|
104
|
+
</TouchableOpacity>
|
|
99
105
|
);
|
|
100
106
|
|
|
101
107
|
// Update currentPosition for the next iteration
|
|
@@ -91,6 +91,9 @@ const SearchResultItem: FC<SearchResultItemType> = ({
|
|
|
91
91
|
pageID={pageId}
|
|
92
92
|
componentID={componentId}
|
|
93
93
|
elementID={ElementID.community_avatar}
|
|
94
|
+
avatarCustomUrl={
|
|
95
|
+
searchType === TabName.Users ? item?.avatarCustomUrl : undefined
|
|
96
|
+
}
|
|
94
97
|
targetType={searchType === TabName.Communities ? 'community' : 'user'}
|
|
95
98
|
/>
|
|
96
99
|
<View style={styles.profileInfoContainer}>
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
} from 'react-native';
|
|
10
10
|
import React, { FC, useEffect, useState, useRef, memo } from 'react';
|
|
11
11
|
import { UserInterface, IMentionPosition } from '../../../../types';
|
|
12
|
-
import { getAmityUser } from '../../../../providers/user-provider';
|
|
13
12
|
import { CommentRepository } from '@amityco/ts-sdk-react-native';
|
|
14
13
|
import CommentListItem from '../CommentListItem/CommentListItem';
|
|
15
14
|
import {
|
|
@@ -30,6 +29,8 @@ import useMention from '../../../hook/useMention';
|
|
|
30
29
|
import { replaceTriggerValues } from 'react-native-controlled-mentions';
|
|
31
30
|
import MyAvatar from '../../MyAvatar/MyAvatar';
|
|
32
31
|
import { useToast } from '../../../../v4/stores/slices/toast';
|
|
32
|
+
import { Typography } from '../../Typography/Typography';
|
|
33
|
+
import { lock } from '../../../../v4/assets/icons';
|
|
33
34
|
|
|
34
35
|
interface ICommentListProp {
|
|
35
36
|
postId: string;
|
|
@@ -37,6 +38,7 @@ interface ICommentListProp {
|
|
|
37
38
|
disabledInteraction?: boolean;
|
|
38
39
|
onNavigate?: () => void;
|
|
39
40
|
withAvatar?: boolean;
|
|
41
|
+
disabledComment?: boolean;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
interface IComment {
|
|
@@ -64,6 +66,7 @@ const CommentList: FC<ICommentListProp> = ({
|
|
|
64
66
|
disabledInteraction,
|
|
65
67
|
onNavigate,
|
|
66
68
|
withAvatar,
|
|
69
|
+
disabledComment,
|
|
67
70
|
}) => {
|
|
68
71
|
const styles = useStyles();
|
|
69
72
|
const theme = useTheme() as MyMD3Theme;
|
|
@@ -103,10 +106,10 @@ const CommentList: FC<ICommentListProp> = ({
|
|
|
103
106
|
referenceType: postType,
|
|
104
107
|
limit: commentListLimit,
|
|
105
108
|
},
|
|
106
|
-
|
|
109
|
+
({ error, loading, data, hasNextPage, onNextPage }) => {
|
|
107
110
|
if (error) return;
|
|
108
111
|
if (!loading) {
|
|
109
|
-
data && data.length > 0 &&
|
|
112
|
+
data && data.length > 0 && queryComment(data);
|
|
110
113
|
onNextPageRef.current = hasNextPage ? onNextPage : null;
|
|
111
114
|
}
|
|
112
115
|
}
|
|
@@ -129,34 +132,31 @@ const CommentList: FC<ICommentListProp> = ({
|
|
|
129
132
|
}, [inputMessage]);
|
|
130
133
|
|
|
131
134
|
const queryComment = async (comments: Amity.InternalComment[]) => {
|
|
132
|
-
const formattedCommentList =
|
|
133
|
-
|
|
134
|
-
const { userObject } = await getAmityUser(item.userId);
|
|
135
|
-
let formattedUserObject: UserInterface;
|
|
135
|
+
const formattedCommentList = comments.map((item: Amity.Comment) => {
|
|
136
|
+
let formattedUserObject: UserInterface;
|
|
136
137
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
formattedUserObject = {
|
|
139
|
+
userId: item?.creator?.userId,
|
|
140
|
+
displayName: item?.creator?.displayName,
|
|
141
|
+
avatarFileId: item?.creator?.avatarFileId,
|
|
142
|
+
};
|
|
142
143
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
);
|
|
144
|
+
return {
|
|
145
|
+
commentId: item.commentId,
|
|
146
|
+
data: item.data as Record<string, any>,
|
|
147
|
+
dataType: item.dataType || 'text',
|
|
148
|
+
myReactions: item.myReactions as string[],
|
|
149
|
+
reactions: item.reactions as Record<string, number>,
|
|
150
|
+
user: formattedUserObject as UserInterface,
|
|
151
|
+
updatedAt: item.updatedAt,
|
|
152
|
+
editedAt: item.editedAt,
|
|
153
|
+
createdAt: item.createdAt,
|
|
154
|
+
childrenComment: item.children,
|
|
155
|
+
childrenNumber: item.childrenNumber,
|
|
156
|
+
referenceId: item.referenceId,
|
|
157
|
+
mentionPosition: item?.metadata?.mentioned ?? [],
|
|
158
|
+
};
|
|
159
|
+
});
|
|
160
160
|
setCommentList([...formattedCommentList]);
|
|
161
161
|
};
|
|
162
162
|
|
|
@@ -251,35 +251,47 @@ const CommentList: FC<ICommentListProp> = ({
|
|
|
251
251
|
</TouchableOpacity>
|
|
252
252
|
</View>
|
|
253
253
|
)}
|
|
254
|
-
{!disabledInteraction &&
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
254
|
+
{!disabledInteraction &&
|
|
255
|
+
(disabledComment ? (
|
|
256
|
+
<View style={styles.disabledCommentWrap}>
|
|
257
|
+
<SvgXml
|
|
258
|
+
width={20}
|
|
259
|
+
height={20}
|
|
260
|
+
xml={lock()}
|
|
261
|
+
color={theme.colors.baseShade2}
|
|
262
|
+
/>
|
|
263
|
+
<Typography.Body style={styles.disabledCommentText}>
|
|
264
|
+
Comments are disabled for this story
|
|
265
|
+
</Typography.Body>
|
|
264
266
|
</View>
|
|
265
|
-
|
|
266
|
-
<
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
267
|
+
) : (
|
|
268
|
+
<View style={styles.inputWrap}>
|
|
269
|
+
{withAvatar && <MyAvatar />}
|
|
270
|
+
<View style={styles.inputContainer}>
|
|
271
|
+
{renderInput({
|
|
272
|
+
multiline: true,
|
|
273
|
+
style: styles.textInput,
|
|
274
|
+
placeholder: 'Say something nice...',
|
|
275
|
+
placeholderTextColor: theme.colors.baseShade3,
|
|
276
|
+
})}
|
|
277
|
+
</View>
|
|
278
|
+
<TouchableOpacity
|
|
279
|
+
disabled={inputMessage.length > 0 ? false : true}
|
|
280
|
+
onPress={handleSend}
|
|
281
|
+
style={styles.postBtn}
|
|
277
282
|
>
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
+
<Text
|
|
284
|
+
style={
|
|
285
|
+
inputMessage.length > 0
|
|
286
|
+
? styles.postBtnText
|
|
287
|
+
: styles.postDisabledBtn
|
|
288
|
+
}
|
|
289
|
+
>
|
|
290
|
+
Post
|
|
291
|
+
</Text>
|
|
292
|
+
</TouchableOpacity>
|
|
293
|
+
</View>
|
|
294
|
+
))}
|
|
283
295
|
</KeyboardAvoidingView>
|
|
284
296
|
);
|
|
285
297
|
};
|
|
@@ -299,6 +311,7 @@ const CommentList: FC<ICommentListProp> = ({
|
|
|
299
311
|
commentDetail={item}
|
|
300
312
|
onClickReply={handleClickReply}
|
|
301
313
|
postType={postType}
|
|
314
|
+
disabledComment={disabledComment}
|
|
302
315
|
disabledInteraction={disabledInteraction}
|
|
303
316
|
onNavigate={onNavigate}
|
|
304
317
|
/>
|