@amityco/react-native-social-uikit 4.0.0-b511cc3d.0 → 4.0.0-d2b8337.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/lib/commonjs/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js +1 -1
- package/lib/commonjs/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js.map +1 -1
- 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 +5 -14
- package/lib/commonjs/components/PostTypeChoiceModal/PostTypeChoiceModal.js.map +1 -1
- package/lib/commonjs/components/PostTypeChoiceModal/style.js +2 -1
- package/lib/commonjs/components/PostTypeChoiceModal/style.js.map +1 -1
- package/lib/commonjs/components/Social/PostList/index.js +3 -1
- 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/index.js +0 -6
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/providers/file-provider.js +38 -19
- package/lib/commonjs/providers/file-provider.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 +6 -3
- package/lib/commonjs/screens/LivestreamPlayer/index.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/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js +9 -11
- package/lib/commonjs/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js +1 -2
- package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Elements/ButtonWithIconElement/styles.js +2 -3
- package/lib/commonjs/v4/PublicApi/Elements/ButtonWithIconElement/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js +25 -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 +68 -206
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js +3 -71
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js +124 -150
- package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js +1 -2
- package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityPostComposerPage/AmityPostComposerPage.js +37 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityPostComposerPage/AmityPostComposerPage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.js +54 -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/toast.js +6 -6
- package/lib/commonjs/v4/assets/icons/toast.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 +22 -25
- package/lib/commonjs/v4/component/LoadingImage/index.js.map +1 -1
- package/lib/commonjs/v4/component/LoadingImage/styles.js +19 -2
- package/lib/commonjs/v4/component/LoadingImage/styles.js.map +1 -1
- package/lib/commonjs/v4/component/LoadingVideo/index.js +12 -6
- package/lib/commonjs/v4/component/LoadingVideo/index.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/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/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/enum/livestreamStatus.js +13 -0
- package/lib/commonjs/v4/enum/livestreamStatus.js.map +1 -0
- package/lib/commonjs/v4/hook/index.js +0 -22
- package/lib/commonjs/v4/hook/index.js.map +1 -1
- package/lib/commonjs/v4/hook/useCustomRankingGlobalFeed.js +3 -1
- package/lib/commonjs/v4/hook/useCustomRankingGlobalFeed.js.map +1 -1
- package/lib/commonjs/v4/index.js +0 -7
- package/lib/commonjs/v4/index.js.map +1 -1
- package/lib/commonjs/v4/stores/slices/toast.js +1 -4
- package/lib/commonjs/v4/stores/slices/toast.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/MediaSection/index.js +3 -3
- package/lib/module/components/MediaSection/index.js.map +1 -1
- package/lib/module/components/PostTypeChoiceModal/PostTypeChoiceModal.js +8 -15
- package/lib/module/components/PostTypeChoiceModal/PostTypeChoiceModal.js.map +1 -1
- package/lib/module/components/PostTypeChoiceModal/style.js +2 -1
- package/lib/module/components/PostTypeChoiceModal/style.js.map +1 -1
- package/lib/module/components/Social/PostList/index.js +3 -1
- 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/index.js +6 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/providers/file-provider.js +38 -19
- package/lib/module/providers/file-provider.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 +8 -4
- package/lib/module/screens/LivestreamPlayer/index.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/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js +9 -11
- package/lib/module/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js +1 -2
- package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js.map +1 -1
- package/lib/module/v4/PublicApi/Elements/ButtonWithIconElement/styles.js +2 -3
- package/lib/module/v4/PublicApi/Elements/ButtonWithIconElement/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js +26 -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 +72 -211
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js +3 -71
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js +126 -152
- package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js +1 -2
- package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityPostComposerPage/AmityPostComposerPage.js +37 -1
- package/lib/module/v4/PublicApi/Pages/AmityPostComposerPage/AmityPostComposerPage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.js +54 -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/toast.js +6 -6
- package/lib/module/v4/assets/icons/toast.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 +22 -24
- package/lib/module/v4/component/LoadingImage/index.js.map +1 -1
- package/lib/module/v4/component/LoadingImage/styles.js +19 -2
- package/lib/module/v4/component/LoadingImage/styles.js.map +1 -1
- package/lib/module/v4/component/LoadingVideo/index.js +12 -6
- package/lib/module/v4/component/LoadingVideo/index.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/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/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/enum/livestreamStatus.js +7 -0
- package/lib/module/v4/enum/livestreamStatus.js.map +1 -0
- package/lib/module/v4/hook/index.js +0 -2
- package/lib/module/v4/hook/index.js.map +1 -1
- package/lib/module/v4/hook/useCustomRankingGlobalFeed.js +3 -1
- package/lib/module/v4/hook/useCustomRankingGlobalFeed.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/stores/slices/toast.js +1 -4
- package/lib/module/v4/stores/slices/toast.js.map +1 -1
- package/lib/typescript/src/components/MediaSection/index.d.ts.map +1 -1
- package/lib/typescript/src/components/PostTypeChoiceModal/style.d.ts +2 -1
- package/lib/typescript/src/components/PostTypeChoiceModal/style.d.ts.map +1 -1
- package/lib/typescript/src/components/Social/PostList/index.d.ts +3 -1
- 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/index.d.ts +2 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/providers/file-provider.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/util/postTypeChecker.d.ts +1 -1
- package/lib/typescript/src/util/postTypeChecker.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.d.ts +3 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Elements/ButtonWithIconElement/styles.d.ts +0 -1
- package/lib/typescript/src/v4/PublicApi/Elements/ButtonWithIconElement/styles.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/styles.d.ts +2 -70
- 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 +0 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityPostComposerPage/AmityPostComposerPage.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/toast.d.ts +3 -3
- package/lib/typescript/src/v4/assets/icons/toast.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 +2 -1
- package/lib/typescript/src/v4/component/LoadingImage/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/LoadingImage/styles.d.ts +21 -0
- package/lib/typescript/src/v4/component/LoadingImage/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/LoadingVideo/index.d.ts +2 -1
- package/lib/typescript/src/v4/component/LoadingVideo/index.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/PostContent/index.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/enum/livestreamStatus.d.ts +7 -0
- package/lib/typescript/src/v4/enum/livestreamStatus.d.ts.map +1 -0
- package/lib/typescript/src/v4/hook/index.d.ts +0 -2
- package/lib/typescript/src/v4/hook/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/hook/usePendingPostQuery.d.ts +0 -3
- package/lib/typescript/src/v4/hook/usePendingPostQuery.d.ts.map +1 -1
- package/lib/typescript/src/v4/index.d.ts +0 -1
- package/lib/typescript/src/v4/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/routes/RouteParamList.d.ts +1 -1
- package/lib/typescript/src/v4/routes/RouteParamList.d.ts.map +1 -1
- package/lib/typescript/src/v4/stores/slices/toast.d.ts +0 -1
- package/lib/typescript/src/v4/stores/slices/toast.d.ts.map +1 -1
- package/package.json +3 -6
- package/src/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.tsx +1 -1
- package/src/components/MediaSection/index.tsx +6 -4
- package/src/components/PostTypeChoiceModal/PostTypeChoiceModal.tsx +15 -15
- package/src/components/PostTypeChoiceModal/style.ts +2 -1
- package/src/components/Social/PostList/index.tsx +4 -1
- package/src/components/Toast/Toast.tsx +1 -0
- package/src/index.tsx +2 -2
- package/src/providers/file-provider.tsx +42 -20
- package/src/screens/CreateLivestream/CreateLivestream.tsx +17 -17
- package/src/screens/LivestreamPlayer/index.tsx +15 -9
- package/src/svg/svg-xml-list.ts +7 -1
- package/src/util/postTypeChecker.ts +1 -1
- package/src/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.tsx +10 -10
- package/src/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.tsx +1 -1
- package/src/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.tsx +1 -1
- package/src/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.tsx +1 -1
- package/src/v4/PublicApi/Elements/ButtonWithIconElement/styles.ts +2 -3
- package/src/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.tsx +25 -24
- package/src/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.ts +2 -2
- package/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.tsx +89 -241
- package/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.ts +3 -72
- package/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.tsx +154 -200
- package/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.ts +0 -2
- package/src/v4/PublicApi/Pages/AmityPostComposerPage/AmityPostComposerPage.tsx +46 -0
- package/src/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.tsx +122 -57
- package/src/v4/PublicApi/Pages/AmityViewStoryPage/styles.ts +23 -1
- package/src/v4/assets/icons/toast.tsx +12 -9
- 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 -21
- package/src/v4/component/LoadingImage/index.tsx +28 -25
- package/src/v4/component/LoadingImage/styles.ts +17 -0
- package/src/v4/component/LoadingVideo/index.tsx +13 -7
- package/src/v4/component/MyStories/StoryCircleItem.tsx +19 -12
- package/src/v4/component/MyStories/styles.ts +5 -0
- package/src/v4/component/PostContent/index.tsx +8 -6
- package/src/v4/component/PostMenu/index.tsx +2 -2
- package/src/v4/component/Toast/index.tsx +1 -1
- package/src/v4/component/Toast/styles.ts +2 -2
- package/src/v4/enum/livestreamStatus.ts +6 -0
- package/src/v4/hook/index.ts +0 -2
- package/src/v4/hook/useCustomRankingGlobalFeed.ts +1 -1
- package/src/v4/index.tsx +1 -1
- package/src/v4/routes/RouteParamList.tsx +1 -1
- package/src/v4/stores/slices/toast.ts +0 -5
- package/uikit.config.json +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js +0 -50
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js.map +0 -1
- package/lib/commonjs/v4/enum/roomStatus.js +0 -14
- package/lib/commonjs/v4/enum/roomStatus.js.map +0 -1
- package/lib/commonjs/v4/hook/usePostSubscription.js +0 -38
- package/lib/commonjs/v4/hook/usePostSubscription.js.map +0 -1
- package/lib/commonjs/v4/hook/useRoomSubscription.js +0 -22
- package/lib/commonjs/v4/hook/useRoomSubscription.js.map +0 -1
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js +0 -42
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js.map +0 -1
- package/lib/module/v4/enum/roomStatus.js +0 -8
- package/lib/module/v4/enum/roomStatus.js.map +0 -1
- package/lib/module/v4/hook/usePostSubscription.js +0 -31
- package/lib/module/v4/hook/usePostSubscription.js.map +0 -1
- package/lib/module/v4/hook/useRoomSubscription.js +0 -15
- package/lib/module/v4/hook/useRoomSubscription.js.map +0 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.d.ts +0 -8
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.d.ts.map +0 -1
- package/lib/typescript/src/v4/enum/roomStatus.d.ts +0 -8
- package/lib/typescript/src/v4/enum/roomStatus.d.ts.map +0 -1
- package/lib/typescript/src/v4/hook/usePostSubscription.d.ts +0 -4
- package/lib/typescript/src/v4/hook/usePostSubscription.d.ts.map +0 -1
- package/lib/typescript/src/v4/hook/useRoomSubscription.d.ts +0 -4
- package/lib/typescript/src/v4/hook/useRoomSubscription.d.ts.map +0 -1
- package/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.tsx +0 -48
- package/src/v4/enum/roomStatus.ts +0 -7
- package/src/v4/hook/usePostSubscription.ts +0 -34
- package/src/v4/hook/useRoomSubscription.ts +0 -19
|
@@ -9,7 +9,7 @@ import React, { memo, useEffect, useRef, useState } from 'react';
|
|
|
9
9
|
import { SvgXml } from 'react-native-svg';
|
|
10
10
|
import CreatePostChooseTargetModal from '../CreatePostChooseTargetModal/CreatePostChooseTargetModal';
|
|
11
11
|
import {
|
|
12
|
-
livestreamIcon,
|
|
12
|
+
// livestreamIcon,
|
|
13
13
|
pollIcon,
|
|
14
14
|
postIconOutlined,
|
|
15
15
|
} from '../../svg/svg-xml-list';
|
|
@@ -124,14 +124,25 @@ const PostTypeChoiceModal = () => {
|
|
|
124
124
|
>
|
|
125
125
|
<Pressable onPress={closeModal} style={styles.modalContainer}>
|
|
126
126
|
<Animated.View style={[styles.modalContent, modalStyle]}>
|
|
127
|
+
{/* <TouchableOpacity
|
|
128
|
+
onPress={() => onChooseType('livestream')}
|
|
129
|
+
style={styles.modalRow}
|
|
130
|
+
>
|
|
131
|
+
<SvgXml
|
|
132
|
+
xml={livestreamIcon(theme.colors.base)}
|
|
133
|
+
width="28"
|
|
134
|
+
height="28"
|
|
135
|
+
/>
|
|
136
|
+
<Text style={styles.postText}>Livestream</Text>
|
|
137
|
+
</TouchableOpacity> */}
|
|
127
138
|
<TouchableOpacity
|
|
128
139
|
onPress={() => onChooseType('post')}
|
|
129
140
|
style={styles.modalRow}
|
|
130
141
|
>
|
|
131
142
|
<SvgXml
|
|
132
143
|
xml={postIconOutlined(theme.colors.base)}
|
|
133
|
-
width="
|
|
134
|
-
height="
|
|
144
|
+
width="28"
|
|
145
|
+
height="28"
|
|
135
146
|
/>
|
|
136
147
|
<Text style={styles.postText}>Post</Text>
|
|
137
148
|
</TouchableOpacity>
|
|
@@ -139,20 +150,9 @@ const PostTypeChoiceModal = () => {
|
|
|
139
150
|
onPress={() => onChooseType('poll')}
|
|
140
151
|
style={styles.modalRow}
|
|
141
152
|
>
|
|
142
|
-
<SvgXml xml={pollIcon(theme.colors.base)} width="
|
|
153
|
+
<SvgXml xml={pollIcon(theme.colors.base)} width="28" height="28" />
|
|
143
154
|
<Text style={styles.postText}>Poll</Text>
|
|
144
155
|
</TouchableOpacity>
|
|
145
|
-
<TouchableOpacity
|
|
146
|
-
onPress={() => onChooseType('livestream')}
|
|
147
|
-
style={styles.modalRow}
|
|
148
|
-
>
|
|
149
|
-
<SvgXml
|
|
150
|
-
xml={livestreamIcon(theme.colors.base)}
|
|
151
|
-
width="24"
|
|
152
|
-
height="24"
|
|
153
|
-
/>
|
|
154
|
-
<Text style={styles.postText}>Livestream</Text>
|
|
155
|
-
</TouchableOpacity>
|
|
156
156
|
<CreatePostChooseTargetModal
|
|
157
157
|
visible={createPostModalVisible}
|
|
158
158
|
onClose={closeCreatePostModal}
|
|
@@ -67,7 +67,7 @@ export interface IPost {
|
|
|
67
67
|
export interface IPostList {
|
|
68
68
|
onDelete?: (postId: string) => void;
|
|
69
69
|
onChange?: (postDetail: Amity.Post<any>) => void;
|
|
70
|
-
postDetail: Amity.Post<any
|
|
70
|
+
postDetail: Amity.Post<any> & { structureType?: string };
|
|
71
71
|
postIndex?: number;
|
|
72
72
|
isGlobalfeed?: boolean;
|
|
73
73
|
}
|
|
@@ -124,6 +124,7 @@ export default function PostList({
|
|
|
124
124
|
children: childrenPosts = [],
|
|
125
125
|
editedAt,
|
|
126
126
|
metadata,
|
|
127
|
+
structureType,
|
|
127
128
|
} = postDetail ?? {};
|
|
128
129
|
const mentionPosition = metadata?.mentioned;
|
|
129
130
|
|
|
@@ -411,6 +412,8 @@ export default function PostList({
|
|
|
411
412
|
});
|
|
412
413
|
};
|
|
413
414
|
|
|
415
|
+
if (structureType === 'liveStream') return null;
|
|
416
|
+
|
|
414
417
|
return (
|
|
415
418
|
<View key={postId} style={styles.postWrap}>
|
|
416
419
|
<View style={styles.headerSection}>
|
package/src/index.tsx
CHANGED
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
AmityAllCategoriesPage,
|
|
64
64
|
AmityCommunitiesByCategoryPage,
|
|
65
65
|
AmityCommunityProfilePage as CommunityProfilePage,
|
|
66
|
-
AmityCreateLivestreamPage,
|
|
66
|
+
// AmityCreateLivestreamPage,
|
|
67
67
|
AmityLivestreamPostTargetSelectionPage,
|
|
68
68
|
AmityLivestreamTerminatedPage,
|
|
69
69
|
AmityLivestreamPlayerPage,
|
|
@@ -162,7 +162,7 @@ export {
|
|
|
162
162
|
AmityAllCategoriesPage,
|
|
163
163
|
AmityCommunitiesByCategoryPage,
|
|
164
164
|
CommunityProfilePage,
|
|
165
|
-
AmityCreateLivestreamPage,
|
|
165
|
+
// AmityCreateLivestreamPage,
|
|
166
166
|
AmityLivestreamPostTargetSelectionPage,
|
|
167
167
|
AmityLivestreamTerminatedPage,
|
|
168
168
|
AmityLivestreamPlayerPage,
|
|
@@ -38,29 +38,51 @@ export async function uploadImageFile(
|
|
|
38
38
|
perCentCallback?: (percent: number) => void
|
|
39
39
|
): Promise<Amity.File<'image'>[]> {
|
|
40
40
|
return await new Promise(async (resolve, reject) => {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
try {
|
|
42
|
+
const formData = new FormData();
|
|
43
|
+
const parts = filePath.split('/');
|
|
44
|
+
const fileName = parts[parts.length - 1];
|
|
45
|
+
const fileType = Platform.OS === 'ios' ? 'image/jpeg' : 'image/jpg';
|
|
46
|
+
const uri =
|
|
47
|
+
Platform.OS === 'android' ? filePath : filePath.replace('file://', '');
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
formData.append('files', {
|
|
50
|
+
name: fileName,
|
|
51
|
+
type: fileType,
|
|
52
|
+
uri: uri,
|
|
53
|
+
});
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
const { data: file } = await FileRepository.uploadImage(
|
|
56
|
+
formData,
|
|
57
|
+
(percent) => {
|
|
58
|
+
perCentCallback && perCentCallback(percent);
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
if (file) {
|
|
63
|
+
resolve(file);
|
|
64
|
+
} else {
|
|
65
|
+
reject({ message: 'Upload failed - no file data returned' });
|
|
66
|
+
}
|
|
67
|
+
} catch (error: any) {
|
|
68
|
+
if (
|
|
69
|
+
error?.message?.includes('INVALID_IMAGE') ||
|
|
70
|
+
error?.message?.includes('Inappropriate')
|
|
71
|
+
) {
|
|
72
|
+
reject({
|
|
73
|
+
message: 'Inappropriate image',
|
|
74
|
+
details: 'Please choose a different image to upload.',
|
|
75
|
+
code: 'INVALID_IMAGE',
|
|
76
|
+
});
|
|
77
|
+
} else {
|
|
78
|
+
reject({
|
|
79
|
+
message: 'Upload failed',
|
|
80
|
+
details:
|
|
81
|
+
error?.message ||
|
|
82
|
+
"We couldn't complete your upload. Please try again.",
|
|
83
|
+
originalError: error,
|
|
84
|
+
});
|
|
58
85
|
}
|
|
59
|
-
);
|
|
60
|
-
if (file) {
|
|
61
|
-
resolve(file);
|
|
62
|
-
} else {
|
|
63
|
-
reject('Upload error');
|
|
64
86
|
}
|
|
65
87
|
});
|
|
66
88
|
}
|
|
@@ -16,7 +16,7 @@ import { useStyles } from './styles';
|
|
|
16
16
|
import useImagePicker from '../../../src/hooks/useImagePicker';
|
|
17
17
|
import { uploadImageFile } from '../../../src/providers/file-provider';
|
|
18
18
|
|
|
19
|
-
import {
|
|
19
|
+
import { StreamRepository, PostRepository } from '@amityco/ts-sdk-react-native';
|
|
20
20
|
import BottomSheet, { BottomSheetMethods } from '@devvie/bottom-sheet';
|
|
21
21
|
|
|
22
22
|
// import {
|
|
@@ -55,7 +55,7 @@ const CreateLivestream = ({ navigation, route }) => {
|
|
|
55
55
|
|
|
56
56
|
const [title, setTitle] = useState<string>('');
|
|
57
57
|
const [description, setDescription] = useState<string>('');
|
|
58
|
-
const [
|
|
58
|
+
const [stream, setStream] = useState<Amity.Stream | null>(null);
|
|
59
59
|
const [isLive, setIsLive] = useState<boolean>(false);
|
|
60
60
|
const [timer] = useState<number | null>(null);
|
|
61
61
|
|
|
@@ -141,16 +141,16 @@ const CreateLivestream = ({ navigation, route }) => {
|
|
|
141
141
|
}, []);
|
|
142
142
|
|
|
143
143
|
const createStreamPost = useCallback(
|
|
144
|
-
(
|
|
144
|
+
(newStream: Amity.Stream) => {
|
|
145
145
|
const params = {
|
|
146
146
|
targetId,
|
|
147
147
|
targetType,
|
|
148
|
-
dataType: '
|
|
148
|
+
dataType: 'liveStream' as Amity.PostContentType,
|
|
149
149
|
data: {
|
|
150
|
-
text: `${
|
|
151
|
-
|
|
150
|
+
text: `${newStream.title}${
|
|
151
|
+
newStream.description ? `\n\n${newStream.description}` : ''
|
|
152
152
|
}`,
|
|
153
|
-
|
|
153
|
+
streamId: newStream.streamId,
|
|
154
154
|
},
|
|
155
155
|
};
|
|
156
156
|
|
|
@@ -168,18 +168,18 @@ const CreateLivestream = ({ navigation, route }) => {
|
|
|
168
168
|
|
|
169
169
|
if (imageUri) fileId = await uploadFile(imageUri);
|
|
170
170
|
|
|
171
|
-
const { data:
|
|
171
|
+
const { data: newStream } = await StreamRepository.createStream({
|
|
172
172
|
title,
|
|
173
173
|
description: description || undefined,
|
|
174
174
|
thumbnailFileId: fileId,
|
|
175
175
|
});
|
|
176
176
|
|
|
177
|
-
if (
|
|
178
|
-
const { data: newPost } = await createStreamPost(
|
|
179
|
-
|
|
177
|
+
if (newStream) {
|
|
178
|
+
const { data: newPost } = await createStreamPost(newStream);
|
|
179
|
+
setStream(newStream);
|
|
180
180
|
setPost(newPost);
|
|
181
181
|
|
|
182
|
-
streamRef?.current.startPublish(
|
|
182
|
+
streamRef?.current.startPublish(newStream.streamId);
|
|
183
183
|
}
|
|
184
184
|
} else emptyTitleAlert();
|
|
185
185
|
}, [title, description, createStreamPost, imageUri, uploadFile]);
|
|
@@ -193,17 +193,17 @@ const CreateLivestream = ({ navigation, route }) => {
|
|
|
193
193
|
// };
|
|
194
194
|
|
|
195
195
|
const onStopStream = useCallback(async () => {
|
|
196
|
-
if (
|
|
196
|
+
if (stream) {
|
|
197
197
|
setIsEnding(true);
|
|
198
198
|
try {
|
|
199
|
-
await
|
|
199
|
+
await StreamRepository.disposeStream(stream.streamId);
|
|
200
200
|
} catch (e) {
|
|
201
|
-
console.log('
|
|
201
|
+
console.log('disposeStream error', e);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
streamRef?.current.stopPublish();
|
|
205
205
|
setIsLive(false);
|
|
206
|
-
|
|
206
|
+
setStream(null);
|
|
207
207
|
setTitle(undefined);
|
|
208
208
|
setDescription(undefined);
|
|
209
209
|
setTime(0);
|
|
@@ -214,7 +214,7 @@ const CreateLivestream = ({ navigation, route }) => {
|
|
|
214
214
|
postId: post.postId,
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
}, [
|
|
217
|
+
}, [stream, timer, post, navigation]);
|
|
218
218
|
|
|
219
219
|
const onSwitchCamera = () => {
|
|
220
220
|
streamRef?.current.switchCamera();
|
|
@@ -7,11 +7,14 @@ import {
|
|
|
7
7
|
} from 'react-native';
|
|
8
8
|
import { useStyles } from './styles';
|
|
9
9
|
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
// import { AmityStreamPlayer } from '@amityco/video-player-react-native';
|
|
12
|
+
|
|
10
13
|
import LivestreamEndedView from '../../v4/component/LivestreamContent/LivestreamEndedThumbnail';
|
|
11
14
|
import { Animated } from 'react-native';
|
|
12
15
|
import { SvgXml } from 'react-native-svg';
|
|
13
16
|
import { closeIcon, playIcon, stopIcon } from '../../svg/svg-xml-list';
|
|
14
|
-
import {
|
|
17
|
+
import { StreamRepository } from '@amityco/ts-sdk-react-native';
|
|
15
18
|
|
|
16
19
|
const LiveStreamPlayer = ({ navigation, route }) => {
|
|
17
20
|
const ref = useRef<any>(null);
|
|
@@ -21,9 +24,9 @@ const LiveStreamPlayer = ({ navigation, route }) => {
|
|
|
21
24
|
|
|
22
25
|
const [isPlaying, setIsPlaying] = useState(true);
|
|
23
26
|
|
|
24
|
-
const {
|
|
27
|
+
const { streamId } = route.params;
|
|
25
28
|
|
|
26
|
-
const [livestream, setLivestream] = useState<Amity.
|
|
29
|
+
const [livestream, setLivestream] = useState<Amity.Stream>();
|
|
27
30
|
|
|
28
31
|
const onClosePlayer = () => {
|
|
29
32
|
navigation.goBack();
|
|
@@ -56,12 +59,15 @@ const LiveStreamPlayer = ({ navigation, route }) => {
|
|
|
56
59
|
|
|
57
60
|
useEffect(() => {
|
|
58
61
|
const getLivestream = () => {
|
|
59
|
-
return
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
return StreamRepository.getStreamById(
|
|
63
|
+
streamId,
|
|
64
|
+
({ data, loading, error }) => {
|
|
65
|
+
if (error) console.error('Error fetching livestream', error);
|
|
66
|
+
if (!loading && data) {
|
|
67
|
+
setLivestream({ ...data });
|
|
68
|
+
}
|
|
63
69
|
}
|
|
64
|
-
|
|
70
|
+
);
|
|
65
71
|
};
|
|
66
72
|
|
|
67
73
|
const unsubscribe = getLivestream();
|
|
@@ -69,7 +75,7 @@ const LiveStreamPlayer = ({ navigation, route }) => {
|
|
|
69
75
|
return () => {
|
|
70
76
|
unsubscribe();
|
|
71
77
|
};
|
|
72
|
-
}, [
|
|
78
|
+
}, [streamId]);
|
|
73
79
|
|
|
74
80
|
return (
|
|
75
81
|
<View style={styles.container}>
|
package/src/svg/svg-xml-list.ts
CHANGED
|
@@ -396,7 +396,7 @@ export const editThumbnailIcon = (
|
|
|
396
396
|
export const livestreamIcon = (
|
|
397
397
|
color: string = '#292B32'
|
|
398
398
|
) => `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
399
|
-
<path d="M8.41406 8.
|
|
399
|
+
<path d="M8.41406 8.80469L8.02734 8.41797C7.92188 8.3125 7.78125 8.24219 7.64062 8.24219C7.46484 8.24219 7.28906 8.3125 7.18359 8.45312C6.30469 9.47266 5.8125 10.8086 5.8125 12.25C5.8125 13.7266 6.30469 15.0625 7.18359 16.082C7.28906 16.2227 7.46484 16.293 7.64062 16.293C7.78125 16.293 7.92188 16.2227 8.02734 16.1172L8.41406 15.7305C8.51953 15.625 8.58984 15.5195 8.58984 15.3438C8.58984 15.2383 8.55469 15.0977 8.48438 15.0273C7.85156 14.2539 7.5 13.3047 7.5 12.2852C7.5 11.2305 7.85156 10.2812 8.48438 9.50781C8.55469 9.4375 8.58984 9.29688 8.58984 9.19141C8.58984 9.01562 8.51953 8.91016 8.41406 8.80469ZM5.63672 6.0625L5.25 5.67578C5.14453 5.57031 5.00391 5.53516 4.82812 5.53516C4.65234 5.53516 4.51172 5.60547 4.40625 5.71094C2.75391 7.50391 1.875 9.82422 1.875 12.25C1.875 14.7109 2.75391 16.9961 4.40625 18.8242C4.51172 18.9297 4.65234 19.0352 4.82812 19.0352C5.00391 19.0352 5.14453 18.9648 5.25 18.8594L5.63672 18.4727C5.84766 18.2617 5.84766 17.9453 5.63672 17.6992C4.33594 16.2578 3.5625 14.3594 3.5625 12.2852C3.5625 10.1758 4.33594 8.27734 5.63672 6.83594C5.84766 6.58984 5.84766 6.27344 5.63672 6.0625ZM19.5586 5.71094C19.4531 5.60547 19.3125 5.5 19.1367 5.5C18.9609 5.5 18.8203 5.57031 18.75 5.67578L18.3281 6.0625C18.1172 6.27344 18.1172 6.58984 18.3281 6.83594C19.6289 8.27734 20.4023 10.1758 20.4023 12.25C20.4023 14.3594 19.6289 16.2578 18.3281 17.6992C18.1172 17.9453 18.1172 18.2617 18.3281 18.4727L18.75 18.8594C18.8203 18.9648 18.9609 19 19.1367 19C19.3125 19 19.4531 18.9297 19.5586 18.8242C21.2109 16.9961 22.125 14.7109 22.125 12.25C22.125 9.82422 21.2109 7.50391 19.5586 5.71094ZM12 10.2812C10.9102 10.2812 10.0312 11.1953 10.0312 12.25C10.0312 13.3398 10.9102 14.2188 12 14.2188C13.0547 14.2188 13.9688 13.3398 13.9688 12.25C13.9688 11.1953 13.0547 10.2812 12 10.2812ZM15.9375 8.41797L15.5508 8.80469C15.4453 8.91016 15.375 9.01562 15.375 9.19141C15.375 9.29688 15.4102 9.4375 15.4805 9.50781C16.1133 10.2812 16.4648 11.2305 16.4648 12.25C16.4648 13.3047 16.1133 14.2539 15.4805 15.0273C15.4102 15.0977 15.375 15.2383 15.375 15.3438C15.375 15.5195 15.4453 15.625 15.5508 15.7305L15.9375 16.1172C16.043 16.2227 16.1836 16.293 16.3242 16.293C16.5 16.293 16.6758 16.2227 16.7812 16.082C17.6602 15.0625 18.1523 13.7266 18.1523 12.2852C18.1523 10.8086 17.6602 9.47266 16.7812 8.45312C16.6758 8.3125 16.5 8.24219 16.3242 8.24219C16.1836 8.24219 16.043 8.3125 15.9375 8.41797Z" fill=${color}/>
|
|
400
400
|
</svg>
|
|
401
401
|
`;
|
|
402
402
|
|
|
@@ -429,3 +429,9 @@ export const infoIcon = (
|
|
|
429
429
|
): string => `<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
430
430
|
<path d="M8 2.25006C4.25 2.25006 1.25 5.28131 1.25 9.00006C1.25 12.7501 4.25 15.7501 8 15.7501C11.7188 15.7501 14.75 12.7501 14.75 9.00006C14.75 5.28131 11.6875 2.25006 8 2.25006ZM8 1.25006C12.25 1.25006 15.75 4.75006 15.75 9.00006C15.75 13.2813 12.25 16.7501 8 16.7501C3.71875 16.7501 0.25 13.2813 0.25 9.00006C0.25 4.75006 3.71875 1.25006 8 1.25006ZM6.875 12.0001H7.25V8.25006H6.875C6.65625 8.25006 6.5 8.09381 6.5 7.87506V7.62506C6.5 7.43756 6.65625 7.25006 6.875 7.25006H8.375C8.5625 7.25006 8.75 7.43756 8.75 7.62506V12.0001H9.125C9.3125 12.0001 9.5 12.1876 9.5 12.3751V12.6251C9.5 12.8438 9.3125 13.0001 9.125 13.0001H6.875C6.65625 13.0001 6.5 12.8438 6.5 12.6251V12.3751C6.5 12.1876 6.65625 12.0001 6.875 12.0001ZM8 4.50006C8.53125 4.50006 9 4.96881 9 5.50006C9 6.06256 8.53125 6.50006 8 6.50006C7.4375 6.50006 7 6.06256 7 5.50006C7 4.96881 7.4375 4.50006 8 4.50006Z" fill="${color}"/>
|
|
431
431
|
</svg>`;
|
|
432
|
+
export const errorIcon = (
|
|
433
|
+
color: string = '#fff'
|
|
434
|
+
): string => `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
435
|
+
<circle cx="8" cy="8" r="7.25" fill="#FA4D30" stroke="#fff" strokeWidth="1.5"></circle>
|
|
436
|
+
<path d="M9.25 10.75C9.25 11.453 8.687 12 8 12c-.703 0-1.25-.547-1.25-1.25 0-.688.547-1.25 1.25-1.25.688 0 1.25.563 1.25 1.25zM6.89 4.406A.378.378 0 017.267 4h1.453c.219 0 .39.188.375.406l-.203 4.25A.387.387 0 018.516 9H7.469a.387.387 0 01-.375-.344l-.203-4.25z" fill="${color}"/>
|
|
437
|
+
</svg>`;
|
package/src/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.tsx
CHANGED
|
@@ -62,14 +62,14 @@ const AmityCreatePostMenuComponent = ({
|
|
|
62
62
|
navigation.navigate('PollTargetSelection');
|
|
63
63
|
},
|
|
64
64
|
|
|
65
|
-
[AmityPostTargetSelectionPageType.livestream]: () => {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
},
|
|
65
|
+
// [AmityPostTargetSelectionPageType.livestream]: () => {
|
|
66
|
+
// if (
|
|
67
|
+
// AmityCreatePostMenuComponentBehavior.goToSelectLivestreamPostTargetPage
|
|
68
|
+
// ) {
|
|
69
|
+
// AmityCreatePostMenuComponentBehavior.goToSelectLivestreamPostTargetPage();
|
|
70
|
+
// }
|
|
71
|
+
// navigation.navigate('LivestreamPostTargetSelection');
|
|
72
|
+
// },
|
|
73
73
|
};
|
|
74
74
|
postTypeHandlers[postType]?.();
|
|
75
75
|
},
|
|
@@ -100,14 +100,14 @@ const AmityCreatePostMenuComponent = ({
|
|
|
100
100
|
elementId={ElementID.create_poll_button}
|
|
101
101
|
onClick={() => onPressCreatePost(AmityPostTargetSelectionPageType.poll)}
|
|
102
102
|
/>
|
|
103
|
-
<ButtonWithIconElement
|
|
103
|
+
{/* <ButtonWithIconElement
|
|
104
104
|
pageId={pageId}
|
|
105
105
|
componentId={componentId}
|
|
106
106
|
elementId={ElementID.create_livestream_button}
|
|
107
107
|
onClick={() =>
|
|
108
108
|
onPressCreatePost(AmityPostTargetSelectionPageType.livestream)
|
|
109
109
|
}
|
|
110
|
-
/>
|
|
110
|
+
/> */}
|
|
111
111
|
</View>
|
|
112
112
|
);
|
|
113
113
|
};
|
|
@@ -34,7 +34,7 @@ import AnnouncementBadge from '../../../../v4/elements/AnnouncementBadge';
|
|
|
34
34
|
import { Typography } from '../../../../v4/component/Typography/Typography';
|
|
35
35
|
|
|
36
36
|
type AmityPostContentComponentProps = {
|
|
37
|
-
post: Amity.Post;
|
|
37
|
+
post: Amity.Post & { structureType?: string };
|
|
38
38
|
pageId?: PageID;
|
|
39
39
|
AmityPostContentComponentStyle?: AmityPostContentComponentStyleEnum;
|
|
40
40
|
isCommunityNameShown?: boolean;
|
package/src/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.tsx
CHANGED
|
@@ -46,7 +46,7 @@ const DetailStyle: FC<AmityPostEngagementActionsSubComponentType> = ({
|
|
|
46
46
|
);
|
|
47
47
|
setPostData(data);
|
|
48
48
|
setTotalReactions(data.reactionsCount);
|
|
49
|
-
setIsLike(data
|
|
49
|
+
setIsLike(data.myReactions?.length > 0);
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
return () => {
|
package/src/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.tsx
CHANGED
|
@@ -54,7 +54,7 @@ const FeedStyle: FC<AmityPostEngagementActionsSubComponentType> = ({
|
|
|
54
54
|
if (!error && !loading) {
|
|
55
55
|
setPostData(data);
|
|
56
56
|
setTotalReactions(data.reactionsCount);
|
|
57
|
-
setIsLike(data.myReactions
|
|
57
|
+
setIsLike(data.myReactions.length > 0);
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
return () => unsubscribeRef?.current && unsubscribeRef?.current();
|
|
@@ -6,7 +6,6 @@ export const useStyle = (themeStyle: MyMD3Theme) => {
|
|
|
6
6
|
container: {
|
|
7
7
|
display: 'flex',
|
|
8
8
|
flexDirection: 'row',
|
|
9
|
-
alignItems: 'center',
|
|
10
9
|
width: 200,
|
|
11
10
|
paddingTop: 12,
|
|
12
11
|
paddingBottom: 12,
|
|
@@ -14,8 +13,8 @@ export const useStyle = (themeStyle: MyMD3Theme) => {
|
|
|
14
13
|
gap: 12,
|
|
15
14
|
},
|
|
16
15
|
icon: {
|
|
17
|
-
width:
|
|
18
|
-
height:
|
|
16
|
+
width: 20,
|
|
17
|
+
height: 20,
|
|
19
18
|
tintColor: themeStyle.colors.base,
|
|
20
19
|
},
|
|
21
20
|
label: {
|
|
@@ -35,7 +35,8 @@ import { RootStackParamList } from '../../../routes/RouteParamList';
|
|
|
35
35
|
import CommunityCreatePostButton from '../../../elements/CommunityCreatePostButton/CommunityCreatePostButton';
|
|
36
36
|
import { SvgXml } from 'react-native-svg';
|
|
37
37
|
import { useBehaviour } from '../../../../v4/providers/BehaviourProvider';
|
|
38
|
-
|
|
38
|
+
|
|
39
|
+
import { poll, post, story } from '../../../../v4/assets/icons';
|
|
39
40
|
import { RouteProp, useNavigation, useRoute } from '@react-navigation/native';
|
|
40
41
|
|
|
41
42
|
import { useTheme } from 'react-native-paper';
|
|
@@ -264,7 +265,7 @@ function CommunityProfileActions({ pageId, communityId, styles }) {
|
|
|
264
265
|
AmityPostTargetSelectionPageBehavior,
|
|
265
266
|
AmityPollTargetSelectionPageBehavior,
|
|
266
267
|
AmityStoryTargetSelectionPageBehavior,
|
|
267
|
-
AmityLivestreamPostTargetSelectionPageBehavior,
|
|
268
|
+
// AmityLivestreamPostTargetSelectionPageBehavior,
|
|
268
269
|
} = useBehaviour();
|
|
269
270
|
const navigation =
|
|
270
271
|
useNavigation<
|
|
@@ -310,26 +311,26 @@ function CommunityProfileActions({ pageId, communityId, styles }) {
|
|
|
310
311
|
});
|
|
311
312
|
};
|
|
312
313
|
|
|
313
|
-
const handleCreateLivestream = () => {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
};
|
|
314
|
+
// const handleCreateLivestream = () => {
|
|
315
|
+
// closeBottomSheet();
|
|
316
|
+
|
|
317
|
+
// if (
|
|
318
|
+
// AmityLivestreamPostTargetSelectionPageBehavior.goToCreateLivestreamPage
|
|
319
|
+
// ) {
|
|
320
|
+
// return AmityLivestreamPostTargetSelectionPageBehavior.goToCreateLivestreamPage(
|
|
321
|
+
// {
|
|
322
|
+
// targetId: communityId,
|
|
323
|
+
// targetType: 'community',
|
|
324
|
+
// targetName: community?.displayName,
|
|
325
|
+
// }
|
|
326
|
+
// );
|
|
327
|
+
// }
|
|
328
|
+
// navigation.navigate('CreateLivestream', {
|
|
329
|
+
// targetId: communityId,
|
|
330
|
+
// targetType: 'community',
|
|
331
|
+
// targetName: community?.displayName,
|
|
332
|
+
// });
|
|
333
|
+
// };
|
|
333
334
|
|
|
334
335
|
const handleCreatePoll = () => {
|
|
335
336
|
closeBottomSheet();
|
|
@@ -397,7 +398,7 @@ function CommunityProfileActions({ pageId, communityId, styles }) {
|
|
|
397
398
|
<SvgXml width={24} height={24} xml={poll()} color={colors.base} />
|
|
398
399
|
<Text style={styles.bottomSheetOptionText}>Poll</Text>
|
|
399
400
|
</TouchableOpacity>
|
|
400
|
-
<TouchableOpacity
|
|
401
|
+
{/* <TouchableOpacity
|
|
401
402
|
onPress={handleCreateLivestream}
|
|
402
403
|
style={styles.bottomSheetOption}
|
|
403
404
|
>
|
|
@@ -408,7 +409,7 @@ function CommunityProfileActions({ pageId, communityId, styles }) {
|
|
|
408
409
|
color={colors.base}
|
|
409
410
|
/>
|
|
410
411
|
<Text style={styles.bottomSheetOptionText}>Livestream</Text>
|
|
411
|
-
</TouchableOpacity>
|
|
412
|
+
</TouchableOpacity> */}
|
|
412
413
|
</Animated.View>
|
|
413
414
|
</Pressable>
|
|
414
415
|
</Modal>
|
|
@@ -41,7 +41,7 @@ export const useStyles = (theme: MyMD3Theme) => {
|
|
|
41
41
|
backgroundColor: theme.colors.background,
|
|
42
42
|
borderTopLeftRadius: 20,
|
|
43
43
|
borderTopRightRadius: 20,
|
|
44
|
-
|
|
44
|
+
padding: 10,
|
|
45
45
|
minHeight: 200,
|
|
46
46
|
paddingBottom: insets.bottom + 10,
|
|
47
47
|
},
|
|
@@ -57,7 +57,7 @@ export const useStyles = (theme: MyMD3Theme) => {
|
|
|
57
57
|
flexDirection: 'row',
|
|
58
58
|
alignItems: 'center',
|
|
59
59
|
paddingVertical: 16,
|
|
60
|
-
paddingHorizontal:
|
|
60
|
+
paddingHorizontal: 16,
|
|
61
61
|
},
|
|
62
62
|
bottomSheetOptionText: {
|
|
63
63
|
fontSize: 16,
|