@amityco/react-native-social-uikit 4.0.0-93c391d.0 → 4.0.0-9b57f0b0.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.
Files changed (306) hide show
  1. package/lib/commonjs/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js +1 -1
  2. package/lib/commonjs/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js.map +1 -1
  3. package/lib/commonjs/components/MediaSection/index.js +3 -3
  4. package/lib/commonjs/components/MediaSection/index.js.map +1 -1
  5. package/lib/commonjs/components/PostTypeChoiceModal/PostTypeChoiceModal.js +14 -5
  6. package/lib/commonjs/components/PostTypeChoiceModal/PostTypeChoiceModal.js.map +1 -1
  7. package/lib/commonjs/components/PostTypeChoiceModal/style.js +1 -2
  8. package/lib/commonjs/components/PostTypeChoiceModal/style.js.map +1 -1
  9. package/lib/commonjs/components/Social/PostList/index.js +1 -3
  10. package/lib/commonjs/components/Social/PostList/index.js.map +1 -1
  11. package/lib/commonjs/components/Toast/Toast.js +1 -2
  12. package/lib/commonjs/components/Toast/Toast.js.map +1 -1
  13. package/lib/commonjs/index.js +6 -0
  14. package/lib/commonjs/index.js.map +1 -1
  15. package/lib/commonjs/providers/file-provider.js +19 -38
  16. package/lib/commonjs/providers/file-provider.js.map +1 -1
  17. package/lib/commonjs/screens/CreateLivestream/CreateLivestream.js +16 -16
  18. package/lib/commonjs/screens/CreateLivestream/CreateLivestream.js.map +1 -1
  19. package/lib/commonjs/screens/LivestreamPlayer/index.js +3 -6
  20. package/lib/commonjs/screens/LivestreamPlayer/index.js.map +1 -1
  21. package/lib/commonjs/svg/svg-xml-list.js +2 -7
  22. package/lib/commonjs/svg/svg-xml-list.js.map +1 -1
  23. package/lib/commonjs/util/postTypeChecker.js.map +1 -1
  24. package/lib/commonjs/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js +11 -9
  25. package/lib/commonjs/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js.map +1 -1
  26. package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js +1 -1
  27. package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js.map +1 -1
  28. package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js +2 -1
  29. package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js.map +1 -1
  30. package/lib/commonjs/v4/PublicApi/Elements/ButtonWithIconElement/styles.js +3 -2
  31. package/lib/commonjs/v4/PublicApi/Elements/ButtonWithIconElement/styles.js.map +1 -1
  32. package/lib/commonjs/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js +28 -25
  33. package/lib/commonjs/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js.map +1 -1
  34. package/lib/commonjs/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.js +2 -2
  35. package/lib/commonjs/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.js.map +1 -1
  36. package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js +217 -68
  37. package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js.map +1 -1
  38. package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js +50 -0
  39. package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js.map +1 -0
  40. package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js +71 -3
  41. package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js.map +1 -1
  42. package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js +150 -124
  43. package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js.map +1 -1
  44. package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js +2 -1
  45. package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js.map +1 -1
  46. package/lib/commonjs/v4/PublicApi/Pages/AmityPostComposerPage/AmityPostComposerPage.js +1 -37
  47. package/lib/commonjs/v4/PublicApi/Pages/AmityPostComposerPage/AmityPostComposerPage.js.map +1 -1
  48. package/lib/commonjs/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.js +21 -54
  49. package/lib/commonjs/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.js.map +1 -1
  50. package/lib/commonjs/v4/PublicApi/Pages/AmityViewStoryPage/styles.js +2 -24
  51. package/lib/commonjs/v4/PublicApi/Pages/AmityViewStoryPage/styles.js.map +1 -1
  52. package/lib/commonjs/v4/assets/icons/toast.js +6 -6
  53. package/lib/commonjs/v4/assets/icons/toast.js.map +1 -1
  54. package/lib/commonjs/v4/component/CommunityStories/index.js +4 -9
  55. package/lib/commonjs/v4/component/CommunityStories/index.js.map +1 -1
  56. package/lib/commonjs/v4/component/CommunityStories/styles.js +2 -7
  57. package/lib/commonjs/v4/component/CommunityStories/styles.js.map +1 -1
  58. package/lib/commonjs/v4/component/LivestreamContent/index.js +12 -12
  59. package/lib/commonjs/v4/component/LivestreamContent/index.js.map +1 -1
  60. package/lib/commonjs/v4/component/LoadingImage/index.js +22 -21
  61. package/lib/commonjs/v4/component/LoadingImage/index.js.map +1 -1
  62. package/lib/commonjs/v4/component/LoadingImage/styles.js +2 -19
  63. package/lib/commonjs/v4/component/LoadingImage/styles.js.map +1 -1
  64. package/lib/commonjs/v4/component/LoadingVideo/index.js +3 -11
  65. package/lib/commonjs/v4/component/LoadingVideo/index.js.map +1 -1
  66. package/lib/commonjs/v4/component/MyStories/StoryCircleItem.js +4 -11
  67. package/lib/commonjs/v4/component/MyStories/StoryCircleItem.js.map +1 -1
  68. package/lib/commonjs/v4/component/MyStories/styles.js +0 -5
  69. package/lib/commonjs/v4/component/MyStories/styles.js.map +1 -1
  70. package/lib/commonjs/v4/component/PostContent/index.js +4 -4
  71. package/lib/commonjs/v4/component/PostContent/index.js.map +1 -1
  72. package/lib/commonjs/v4/component/PostMenu/index.js +2 -2
  73. package/lib/commonjs/v4/component/PostMenu/index.js.map +1 -1
  74. package/lib/commonjs/v4/component/Toast/index.js +4 -4
  75. package/lib/commonjs/v4/component/Toast/index.js.map +1 -1
  76. package/lib/commonjs/v4/component/Toast/styles.js +2 -2
  77. package/lib/commonjs/v4/component/Toast/styles.js.map +1 -1
  78. package/lib/commonjs/v4/enum/roomStatus.js +14 -0
  79. package/lib/commonjs/v4/enum/roomStatus.js.map +1 -0
  80. package/lib/commonjs/v4/hook/index.js +22 -0
  81. package/lib/commonjs/v4/hook/index.js.map +1 -1
  82. package/lib/commonjs/v4/hook/useCustomRankingGlobalFeed.js +1 -3
  83. package/lib/commonjs/v4/hook/useCustomRankingGlobalFeed.js.map +1 -1
  84. package/lib/commonjs/v4/hook/usePostSubscription.js +38 -0
  85. package/lib/commonjs/v4/hook/usePostSubscription.js.map +1 -0
  86. package/lib/commonjs/v4/hook/useRoomSubscription.js +22 -0
  87. package/lib/commonjs/v4/hook/useRoomSubscription.js.map +1 -0
  88. package/lib/commonjs/v4/index.js +7 -0
  89. package/lib/commonjs/v4/index.js.map +1 -1
  90. package/lib/commonjs/v4/stores/slices/toast.js +4 -1
  91. package/lib/commonjs/v4/stores/slices/toast.js.map +1 -1
  92. package/lib/module/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js +1 -1
  93. package/lib/module/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js.map +1 -1
  94. package/lib/module/components/MediaSection/index.js +3 -3
  95. package/lib/module/components/MediaSection/index.js.map +1 -1
  96. package/lib/module/components/PostTypeChoiceModal/PostTypeChoiceModal.js +15 -8
  97. package/lib/module/components/PostTypeChoiceModal/PostTypeChoiceModal.js.map +1 -1
  98. package/lib/module/components/PostTypeChoiceModal/style.js +1 -2
  99. package/lib/module/components/PostTypeChoiceModal/style.js.map +1 -1
  100. package/lib/module/components/Social/PostList/index.js +1 -3
  101. package/lib/module/components/Social/PostList/index.js.map +1 -1
  102. package/lib/module/components/Toast/Toast.js +1 -2
  103. package/lib/module/components/Toast/Toast.js.map +1 -1
  104. package/lib/module/index.js +2 -6
  105. package/lib/module/index.js.map +1 -1
  106. package/lib/module/providers/file-provider.js +19 -38
  107. package/lib/module/providers/file-provider.js.map +1 -1
  108. package/lib/module/screens/CreateLivestream/CreateLivestream.js +17 -17
  109. package/lib/module/screens/CreateLivestream/CreateLivestream.js.map +1 -1
  110. package/lib/module/screens/LivestreamPlayer/index.js +4 -8
  111. package/lib/module/screens/LivestreamPlayer/index.js.map +1 -1
  112. package/lib/module/svg/svg-xml-list.js +1 -5
  113. package/lib/module/svg/svg-xml-list.js.map +1 -1
  114. package/lib/module/util/postTypeChecker.js.map +1 -1
  115. package/lib/module/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js +11 -9
  116. package/lib/module/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js.map +1 -1
  117. package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js +1 -1
  118. package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js.map +1 -1
  119. package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js +2 -1
  120. package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js.map +1 -1
  121. package/lib/module/v4/PublicApi/Elements/ButtonWithIconElement/styles.js +3 -2
  122. package/lib/module/v4/PublicApi/Elements/ButtonWithIconElement/styles.js.map +1 -1
  123. package/lib/module/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js +29 -26
  124. package/lib/module/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js.map +1 -1
  125. package/lib/module/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.js +2 -2
  126. package/lib/module/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.js.map +1 -1
  127. package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js +222 -72
  128. package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js.map +1 -1
  129. package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js +42 -0
  130. package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js.map +1 -0
  131. package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js +71 -3
  132. package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js.map +1 -1
  133. package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js +152 -126
  134. package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js.map +1 -1
  135. package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js +2 -1
  136. package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js.map +1 -1
  137. package/lib/module/v4/PublicApi/Pages/AmityPostComposerPage/AmityPostComposerPage.js +1 -37
  138. package/lib/module/v4/PublicApi/Pages/AmityPostComposerPage/AmityPostComposerPage.js.map +1 -1
  139. package/lib/module/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.js +21 -54
  140. package/lib/module/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.js.map +1 -1
  141. package/lib/module/v4/PublicApi/Pages/AmityViewStoryPage/styles.js +2 -24
  142. package/lib/module/v4/PublicApi/Pages/AmityViewStoryPage/styles.js.map +1 -1
  143. package/lib/module/v4/assets/icons/toast.js +6 -6
  144. package/lib/module/v4/assets/icons/toast.js.map +1 -1
  145. package/lib/module/v4/component/CommunityStories/index.js +5 -10
  146. package/lib/module/v4/component/CommunityStories/index.js.map +1 -1
  147. package/lib/module/v4/component/CommunityStories/styles.js +2 -7
  148. package/lib/module/v4/component/CommunityStories/styles.js.map +1 -1
  149. package/lib/module/v4/component/LivestreamContent/index.js +13 -13
  150. package/lib/module/v4/component/LivestreamContent/index.js.map +1 -1
  151. package/lib/module/v4/component/LoadingImage/index.js +21 -21
  152. package/lib/module/v4/component/LoadingImage/index.js.map +1 -1
  153. package/lib/module/v4/component/LoadingImage/styles.js +2 -19
  154. package/lib/module/v4/component/LoadingImage/styles.js.map +1 -1
  155. package/lib/module/v4/component/LoadingVideo/index.js +3 -11
  156. package/lib/module/v4/component/LoadingVideo/index.js.map +1 -1
  157. package/lib/module/v4/component/MyStories/StoryCircleItem.js +6 -13
  158. package/lib/module/v4/component/MyStories/StoryCircleItem.js.map +1 -1
  159. package/lib/module/v4/component/MyStories/styles.js +0 -5
  160. package/lib/module/v4/component/MyStories/styles.js.map +1 -1
  161. package/lib/module/v4/component/PostContent/index.js +4 -4
  162. package/lib/module/v4/component/PostContent/index.js.map +1 -1
  163. package/lib/module/v4/component/PostMenu/index.js +2 -2
  164. package/lib/module/v4/component/PostMenu/index.js.map +1 -1
  165. package/lib/module/v4/component/Toast/index.js +4 -4
  166. package/lib/module/v4/component/Toast/index.js.map +1 -1
  167. package/lib/module/v4/component/Toast/styles.js +2 -2
  168. package/lib/module/v4/component/Toast/styles.js.map +1 -1
  169. package/lib/module/v4/enum/roomStatus.js +8 -0
  170. package/lib/module/v4/enum/roomStatus.js.map +1 -0
  171. package/lib/module/v4/hook/index.js +2 -0
  172. package/lib/module/v4/hook/index.js.map +1 -1
  173. package/lib/module/v4/hook/useCustomRankingGlobalFeed.js +1 -3
  174. package/lib/module/v4/hook/useCustomRankingGlobalFeed.js.map +1 -1
  175. package/lib/module/v4/hook/usePostSubscription.js +31 -0
  176. package/lib/module/v4/hook/usePostSubscription.js.map +1 -0
  177. package/lib/module/v4/hook/useRoomSubscription.js +15 -0
  178. package/lib/module/v4/hook/useRoomSubscription.js.map +1 -0
  179. package/lib/module/v4/index.js +1 -1
  180. package/lib/module/v4/index.js.map +1 -1
  181. package/lib/module/v4/stores/slices/toast.js +4 -1
  182. package/lib/module/v4/stores/slices/toast.js.map +1 -1
  183. package/lib/typescript/src/components/MediaSection/index.d.ts.map +1 -1
  184. package/lib/typescript/src/components/PostTypeChoiceModal/style.d.ts +1 -2
  185. package/lib/typescript/src/components/PostTypeChoiceModal/style.d.ts.map +1 -1
  186. package/lib/typescript/src/components/Social/PostList/index.d.ts +1 -3
  187. package/lib/typescript/src/components/Social/PostList/index.d.ts.map +1 -1
  188. package/lib/typescript/src/components/Toast/Toast.d.ts.map +1 -1
  189. package/lib/typescript/src/index.d.ts +2 -2
  190. package/lib/typescript/src/index.d.ts.map +1 -1
  191. package/lib/typescript/src/providers/file-provider.d.ts.map +1 -1
  192. package/lib/typescript/src/screens/LivestreamPlayer/index.d.ts.map +1 -1
  193. package/lib/typescript/src/svg/svg-xml-list.d.ts +0 -1
  194. package/lib/typescript/src/svg/svg-xml-list.d.ts.map +1 -1
  195. package/lib/typescript/src/util/postTypeChecker.d.ts +1 -1
  196. package/lib/typescript/src/util/postTypeChecker.d.ts.map +1 -1
  197. package/lib/typescript/src/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.d.ts +1 -3
  198. package/lib/typescript/src/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.d.ts.map +1 -1
  199. package/lib/typescript/src/v4/PublicApi/Elements/ButtonWithIconElement/styles.d.ts +1 -0
  200. package/lib/typescript/src/v4/PublicApi/Elements/ButtonWithIconElement/styles.d.ts.map +1 -1
  201. package/lib/typescript/src/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.d.ts.map +1 -1
  202. package/lib/typescript/src/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.d.ts +1 -1
  203. package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.d.ts.map +1 -1
  204. package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.d.ts +8 -0
  205. package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.d.ts.map +1 -0
  206. package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.d.ts +70 -2
  207. package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.d.ts.map +1 -1
  208. package/lib/typescript/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.d.ts.map +1 -1
  209. package/lib/typescript/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.d.ts +1 -0
  210. package/lib/typescript/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.d.ts.map +1 -1
  211. package/lib/typescript/src/v4/PublicApi/Pages/AmityPostComposerPage/AmityPostComposerPage.d.ts.map +1 -1
  212. package/lib/typescript/src/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.d.ts.map +1 -1
  213. package/lib/typescript/src/v4/PublicApi/Pages/AmityViewStoryPage/styles.d.ts +0 -22
  214. package/lib/typescript/src/v4/PublicApi/Pages/AmityViewStoryPage/styles.d.ts.map +1 -1
  215. package/lib/typescript/src/v4/assets/icons/toast.d.ts +3 -3
  216. package/lib/typescript/src/v4/assets/icons/toast.d.ts.map +1 -1
  217. package/lib/typescript/src/v4/component/CommunityStories/index.d.ts.map +1 -1
  218. package/lib/typescript/src/v4/component/CommunityStories/styles.d.ts +0 -5
  219. package/lib/typescript/src/v4/component/CommunityStories/styles.d.ts.map +1 -1
  220. package/lib/typescript/src/v4/component/LivestreamContent/index.d.ts +1 -1
  221. package/lib/typescript/src/v4/component/LivestreamContent/index.d.ts.map +1 -1
  222. package/lib/typescript/src/v4/component/LoadingImage/index.d.ts +1 -2
  223. package/lib/typescript/src/v4/component/LoadingImage/index.d.ts.map +1 -1
  224. package/lib/typescript/src/v4/component/LoadingImage/styles.d.ts +0 -21
  225. package/lib/typescript/src/v4/component/LoadingImage/styles.d.ts.map +1 -1
  226. package/lib/typescript/src/v4/component/LoadingVideo/index.d.ts +1 -2
  227. package/lib/typescript/src/v4/component/LoadingVideo/index.d.ts.map +1 -1
  228. package/lib/typescript/src/v4/component/MyStories/StoryCircleItem.d.ts.map +1 -1
  229. package/lib/typescript/src/v4/component/MyStories/styles.d.ts +0 -5
  230. package/lib/typescript/src/v4/component/MyStories/styles.d.ts.map +1 -1
  231. package/lib/typescript/src/v4/component/PostContent/index.d.ts.map +1 -1
  232. package/lib/typescript/src/v4/component/Toast/styles.d.ts +1 -1
  233. package/lib/typescript/src/v4/component/Toast/styles.d.ts.map +1 -1
  234. package/lib/typescript/src/v4/enum/roomStatus.d.ts +8 -0
  235. package/lib/typescript/src/v4/enum/roomStatus.d.ts.map +1 -0
  236. package/lib/typescript/src/v4/hook/index.d.ts +2 -0
  237. package/lib/typescript/src/v4/hook/index.d.ts.map +1 -1
  238. package/lib/typescript/src/v4/hook/usePendingPostQuery.d.ts +3 -0
  239. package/lib/typescript/src/v4/hook/usePendingPostQuery.d.ts.map +1 -1
  240. package/lib/typescript/src/v4/hook/usePostSubscription.d.ts +4 -0
  241. package/lib/typescript/src/v4/hook/usePostSubscription.d.ts.map +1 -0
  242. package/lib/typescript/src/v4/hook/useRoomSubscription.d.ts +4 -0
  243. package/lib/typescript/src/v4/hook/useRoomSubscription.d.ts.map +1 -0
  244. package/lib/typescript/src/v4/index.d.ts +1 -0
  245. package/lib/typescript/src/v4/index.d.ts.map +1 -1
  246. package/lib/typescript/src/v4/routes/RouteParamList.d.ts +1 -1
  247. package/lib/typescript/src/v4/routes/RouteParamList.d.ts.map +1 -1
  248. package/lib/typescript/src/v4/stores/slices/toast.d.ts +1 -0
  249. package/lib/typescript/src/v4/stores/slices/toast.d.ts.map +1 -1
  250. package/package.json +6 -3
  251. package/src/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.tsx +1 -1
  252. package/src/components/MediaSection/index.tsx +4 -6
  253. package/src/components/PostTypeChoiceModal/PostTypeChoiceModal.tsx +15 -15
  254. package/src/components/PostTypeChoiceModal/style.ts +1 -2
  255. package/src/components/Social/PostList/index.tsx +1 -4
  256. package/src/components/Toast/Toast.tsx +0 -1
  257. package/src/index.tsx +2 -2
  258. package/src/providers/file-provider.tsx +20 -42
  259. package/src/screens/CreateLivestream/CreateLivestream.tsx +17 -17
  260. package/src/screens/LivestreamPlayer/index.tsx +9 -15
  261. package/src/svg/svg-xml-list.ts +1 -7
  262. package/src/util/postTypeChecker.ts +1 -1
  263. package/src/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.tsx +10 -10
  264. package/src/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.tsx +1 -1
  265. package/src/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.tsx +1 -1
  266. package/src/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.tsx +1 -1
  267. package/src/v4/PublicApi/Elements/ButtonWithIconElement/styles.ts +3 -2
  268. package/src/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.tsx +24 -25
  269. package/src/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.ts +2 -2
  270. package/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.tsx +255 -89
  271. package/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.tsx +48 -0
  272. package/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.ts +72 -3
  273. package/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.tsx +205 -154
  274. package/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.ts +2 -0
  275. package/src/v4/PublicApi/Pages/AmityPostComposerPage/AmityPostComposerPage.tsx +0 -46
  276. package/src/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.tsx +57 -122
  277. package/src/v4/PublicApi/Pages/AmityViewStoryPage/styles.ts +1 -23
  278. package/src/v4/assets/icons/toast.tsx +9 -12
  279. package/src/v4/component/CommunityStories/index.tsx +17 -26
  280. package/src/v4/component/CommunityStories/styles.ts +2 -7
  281. package/src/v4/component/LivestreamContent/index.tsx +21 -22
  282. package/src/v4/component/LoadingImage/index.tsx +22 -28
  283. package/src/v4/component/LoadingImage/styles.ts +0 -17
  284. package/src/v4/component/LoadingVideo/index.tsx +3 -12
  285. package/src/v4/component/MyStories/StoryCircleItem.tsx +12 -19
  286. package/src/v4/component/MyStories/styles.ts +0 -5
  287. package/src/v4/component/PostContent/index.tsx +6 -8
  288. package/src/v4/component/PostMenu/index.tsx +2 -2
  289. package/src/v4/component/Toast/index.tsx +1 -1
  290. package/src/v4/component/Toast/styles.ts +2 -2
  291. package/src/v4/enum/roomStatus.ts +7 -0
  292. package/src/v4/hook/index.ts +2 -0
  293. package/src/v4/hook/useCustomRankingGlobalFeed.ts +1 -1
  294. package/src/v4/hook/usePostSubscription.ts +34 -0
  295. package/src/v4/hook/useRoomSubscription.ts +19 -0
  296. package/src/v4/index.tsx +1 -1
  297. package/src/v4/routes/RouteParamList.tsx +1 -1
  298. package/src/v4/stores/slices/toast.ts +5 -0
  299. package/uikit.config.json +1 -1
  300. package/lib/commonjs/v4/enum/livestreamStatus.js +0 -13
  301. package/lib/commonjs/v4/enum/livestreamStatus.js.map +0 -1
  302. package/lib/module/v4/enum/livestreamStatus.js +0 -7
  303. package/lib/module/v4/enum/livestreamStatus.js.map +0 -1
  304. package/lib/typescript/src/v4/enum/livestreamStatus.d.ts +0 -7
  305. package/lib/typescript/src/v4/enum/livestreamStatus.d.ts.map +0 -1
  306. package/src/v4/enum/livestreamStatus.ts +0 -6
@@ -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.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}/>
399
+ <path d="M8.41406 8.80469C8.51953 8.91016 8.58984 9.01562 8.58984 9.19141C8.58984 9.29688 8.55469 9.4375 8.48438 9.50781C7.85156 10.2812 7.5 11.2305 7.5 12.2852C7.5 13.3047 7.85156 14.2539 8.48438 15.0273C8.55469 15.0977 8.58984 15.2383 8.58984 15.3438C8.58984 15.5195 8.51953 15.625 8.41406 15.7305L8.02734 16.1172C7.92188 16.2227 7.78125 16.293 7.64062 16.293C7.46484 16.293 7.28906 16.2227 7.18359 16.082C6.30469 15.0625 5.8125 13.7266 5.8125 12.25C5.8125 10.8086 6.30469 9.47266 7.18359 8.45312C7.28906 8.3125 7.46484 8.24219 7.64062 8.24219C7.78125 8.24219 7.92188 8.3125 8.02734 8.41797L8.41406 8.80469ZM5.63672 6.0625C5.84766 6.27344 5.84766 6.58984 5.63672 6.83594C4.33594 8.27734 3.5625 10.1758 3.5625 12.2852C3.5625 14.3594 4.33594 16.2578 5.63672 17.6992C5.84766 17.9453 5.84766 18.2617 5.63672 18.4727L5.25 18.8594C5.14453 18.9648 5.00391 19.0352 4.82812 19.0352C4.65234 19.0352 4.51172 18.9297 4.40625 18.8242C2.75391 16.9961 1.875 14.7109 1.875 12.25C1.875 9.82422 2.75391 7.50391 4.40625 5.71094C4.51172 5.60547 4.65234 5.53516 4.82812 5.53516C5.00391 5.53516 5.14453 5.57031 5.25 5.67578L5.63672 6.0625ZM19.5586 5.71094C21.2109 7.50391 22.125 9.82422 22.125 12.25C22.125 14.7109 21.2109 16.9961 19.5586 18.8242C19.4531 18.9297 19.3125 19 19.1367 19C18.9609 19 18.8203 18.9648 18.75 18.8594L18.3281 18.4727C18.1172 18.2617 18.1172 17.9453 18.3281 17.6992C19.6289 16.2578 20.4023 14.3594 20.4023 12.25C20.4023 10.1758 19.6289 8.27734 18.3281 6.83594C18.1172 6.58984 18.1172 6.27344 18.3281 6.0625L18.75 5.67578C18.8203 5.57031 18.9609 5.5 19.1367 5.5C19.3125 5.5 19.4531 5.60547 19.5586 5.71094ZM12 10.2812C13.0547 10.2812 13.9688 11.1953 13.9688 12.25C13.9688 13.3398 13.0547 14.2188 12 14.2188C10.9102 14.2188 10.0312 13.3398 10.0312 12.25C10.0312 11.1953 10.9102 10.2812 12 10.2812ZM15.9375 8.41797C16.043 8.3125 16.1836 8.24219 16.3242 8.24219C16.5 8.24219 16.6758 8.3125 16.7812 8.45312C17.6602 9.47266 18.1523 10.8086 18.1523 12.2852C18.1523 13.7266 17.6602 15.0625 16.7812 16.082C16.6758 16.2227 16.5 16.293 16.3242 16.293C16.1836 16.293 16.043 16.2227 15.9375 16.1172L15.5508 15.7305C15.4453 15.625 15.375 15.5195 15.375 15.3438C15.375 15.2383 15.4102 15.0977 15.4805 15.0273C16.1133 14.2539 16.4648 13.3047 16.4648 12.25C16.4648 11.2305 16.1133 10.2812 15.4805 9.50781C15.4102 9.4375 15.375 9.29688 15.375 9.19141C15.375 9.01562 15.4453 8.91016 15.5508 8.80469L15.9375 8.41797Z" fill=${color}/>
400
400
  </svg>
401
401
  `;
402
402
 
@@ -429,9 +429,3 @@ 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>`;
@@ -8,7 +8,7 @@ export const isTextPost = (
8
8
 
9
9
  export const isStreamPost = (
10
10
  post?: Amity.Post | null
11
- ): post is Amity.Post<'liveStream'> => {
11
+ ): post is Amity.Post<'room'> => {
12
12
  return !!(
13
13
  post &&
14
14
  post.data &&
@@ -62,14 +62,14 @@ const AmityCreatePostMenuComponent = ({
62
62
  navigation.navigate('PollTargetSelection');
63
63
  },
64
64
 
65
- // [AmityPostTargetSelectionPageType.livestream]: () => {
66
- // if (
67
- // AmityCreatePostMenuComponentBehavior.goToSelectLivestreamPostTargetPage
68
- // ) {
69
- // AmityCreatePostMenuComponentBehavior.goToSelectLivestreamPostTargetPage();
70
- // }
71
- // navigation.navigate('LivestreamPostTargetSelection');
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 & { structureType?: string };
37
+ post: Amity.Post;
38
38
  pageId?: PageID;
39
39
  AmityPostContentComponentStyle?: AmityPostContentComponentStyleEnum;
40
40
  isCommunityNameShown?: boolean;
@@ -46,7 +46,7 @@ const DetailStyle: FC<AmityPostEngagementActionsSubComponentType> = ({
46
46
  );
47
47
  setPostData(data);
48
48
  setTotalReactions(data.reactionsCount);
49
- setIsLike(data.myReactions?.length > 0);
49
+ setIsLike(data?.myReactions?.length > 0);
50
50
  }
51
51
  });
52
52
  return () => {
@@ -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.length > 0);
57
+ setIsLike(data.myReactions?.length > 0);
58
58
  }
59
59
  });
60
60
  return () => unsubscribeRef?.current && unsubscribeRef?.current();
@@ -6,6 +6,7 @@ export const useStyle = (themeStyle: MyMD3Theme) => {
6
6
  container: {
7
7
  display: 'flex',
8
8
  flexDirection: 'row',
9
+ alignItems: 'center',
9
10
  width: 200,
10
11
  paddingTop: 12,
11
12
  paddingBottom: 12,
@@ -13,8 +14,8 @@ export const useStyle = (themeStyle: MyMD3Theme) => {
13
14
  gap: 12,
14
15
  },
15
16
  icon: {
16
- width: 20,
17
- height: 20,
17
+ width: 24,
18
+ height: 24,
18
19
  tintColor: themeStyle.colors.base,
19
20
  },
20
21
  label: {
@@ -35,8 +35,7 @@ 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
-
39
- import { poll, post, story } from '../../../../v4/assets/icons';
38
+ import { livestream, poll, post, story } from '../../../../v4/assets/icons';
40
39
  import { RouteProp, useNavigation, useRoute } from '@react-navigation/native';
41
40
 
42
41
  import { useTheme } from 'react-native-paper';
@@ -265,7 +264,7 @@ function CommunityProfileActions({ pageId, communityId, styles }) {
265
264
  AmityPostTargetSelectionPageBehavior,
266
265
  AmityPollTargetSelectionPageBehavior,
267
266
  AmityStoryTargetSelectionPageBehavior,
268
- // AmityLivestreamPostTargetSelectionPageBehavior,
267
+ AmityLivestreamPostTargetSelectionPageBehavior,
269
268
  } = useBehaviour();
270
269
  const navigation =
271
270
  useNavigation<
@@ -311,26 +310,26 @@ function CommunityProfileActions({ pageId, communityId, styles }) {
311
310
  });
312
311
  };
313
312
 
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
- // };
313
+ const handleCreateLivestream = () => {
314
+ closeBottomSheet();
315
+
316
+ if (
317
+ AmityLivestreamPostTargetSelectionPageBehavior.goToCreateLivestreamPage
318
+ ) {
319
+ return AmityLivestreamPostTargetSelectionPageBehavior.goToCreateLivestreamPage(
320
+ {
321
+ targetId: communityId,
322
+ targetType: 'community',
323
+ targetName: community?.displayName,
324
+ }
325
+ );
326
+ }
327
+ navigation.navigate('CreateLivestream', {
328
+ targetId: communityId,
329
+ targetType: 'community',
330
+ targetName: community?.displayName,
331
+ });
332
+ };
334
333
 
335
334
  const handleCreatePoll = () => {
336
335
  closeBottomSheet();
@@ -398,7 +397,7 @@ function CommunityProfileActions({ pageId, communityId, styles }) {
398
397
  <SvgXml width={24} height={24} xml={poll()} color={colors.base} />
399
398
  <Text style={styles.bottomSheetOptionText}>Poll</Text>
400
399
  </TouchableOpacity>
401
- {/* <TouchableOpacity
400
+ <TouchableOpacity
402
401
  onPress={handleCreateLivestream}
403
402
  style={styles.bottomSheetOption}
404
403
  >
@@ -409,7 +408,7 @@ function CommunityProfileActions({ pageId, communityId, styles }) {
409
408
  color={colors.base}
410
409
  />
411
410
  <Text style={styles.bottomSheetOptionText}>Livestream</Text>
412
- </TouchableOpacity> */}
411
+ </TouchableOpacity>
413
412
  </Animated.View>
414
413
  </Pressable>
415
414
  </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
- padding: 10,
44
+ paddingHorizontal: 16,
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: 16,
60
+ paddingHorizontal: 0,
61
61
  },
62
62
  bottomSheetOptionText: {
63
63
  fontSize: 16,