@amityco/react-native-social-uikit 4.1.1-b58e7e9.0 → 4.1.1-bcb7944e.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 (278) hide show
  1. package/README.md +7 -0
  2. package/lib/commonjs/core/assets/icons/post.js +1 -1
  3. package/lib/commonjs/core/assets/icons/post.js.map +1 -1
  4. package/lib/commonjs/core/assets/icons/story.js +1 -1
  5. package/lib/commonjs/core/assets/icons/story.js.map +1 -1
  6. package/lib/commonjs/core/assets/icons/xml.js +69 -1
  7. package/lib/commonjs/core/assets/icons/xml.js.map +1 -1
  8. package/lib/commonjs/core/hooks/usePostByIds.js +38 -0
  9. package/lib/commonjs/core/hooks/usePostByIds.js.map +1 -0
  10. package/lib/commonjs/core/legacy/file.js +145 -62
  11. package/lib/commonjs/core/legacy/file.js.map +1 -1
  12. package/lib/commonjs/core/stores/slices/feedSlice.js +3 -0
  13. package/lib/commonjs/core/stores/slices/feedSlice.js.map +1 -1
  14. package/lib/commonjs/core/stores/slices/globalfeedSlice.js +5 -0
  15. package/lib/commonjs/core/stores/slices/globalfeedSlice.js.map +1 -1
  16. package/lib/commonjs/core/stores/slices/localVideoThumbnailSlice.js +46 -0
  17. package/lib/commonjs/core/stores/slices/localVideoThumbnailSlice.js.map +1 -0
  18. package/lib/commonjs/core/stores/slices/uiSlice.js +5 -1
  19. package/lib/commonjs/core/stores/slices/uiSlice.js.map +1 -1
  20. package/lib/commonjs/core/stores/store/index.js +3 -1
  21. package/lib/commonjs/core/stores/store/index.js.map +1 -1
  22. package/lib/commonjs/social/components/LoadingImage/index.js +76 -14
  23. package/lib/commonjs/social/components/LoadingImage/index.js.map +1 -1
  24. package/lib/commonjs/social/components/LoadingImage/styles.js +12 -3
  25. package/lib/commonjs/social/components/LoadingImage/styles.js.map +1 -1
  26. package/lib/commonjs/social/components/LoadingVideo/index.js +98 -18
  27. package/lib/commonjs/social/components/LoadingVideo/index.js.map +1 -1
  28. package/lib/commonjs/social/components/LoadingVideo/styles.js +18 -5
  29. package/lib/commonjs/social/components/LoadingVideo/styles.js.map +1 -1
  30. package/lib/commonjs/social/components/MediaViewer/MediaViewer.js +266 -0
  31. package/lib/commonjs/social/components/MediaViewer/MediaViewer.js.map +1 -0
  32. package/lib/commonjs/social/components/MediaViewer/index.js +13 -0
  33. package/lib/commonjs/social/components/MediaViewer/index.js.map +1 -0
  34. package/lib/commonjs/social/components/MediaViewer/styles.js +126 -0
  35. package/lib/commonjs/social/components/MediaViewer/styles.js.map +1 -0
  36. package/lib/commonjs/social/components/PostContent/index.js +80 -146
  37. package/lib/commonjs/social/components/PostContent/index.js.map +1 -1
  38. package/lib/commonjs/social/components/SelectedMediaComponent/SelectedMediaComponent.js +239 -0
  39. package/lib/commonjs/social/components/SelectedMediaComponent/SelectedMediaComponent.js.map +1 -0
  40. package/lib/commonjs/social/components/SelectedMediaComponent/index.js +13 -0
  41. package/lib/commonjs/social/components/SelectedMediaComponent/index.js.map +1 -0
  42. package/lib/commonjs/social/components/SelectedMediaComponent/styles.js +43 -0
  43. package/lib/commonjs/social/components/SelectedMediaComponent/styles.js.map +1 -0
  44. package/lib/commonjs/social/components/legacy/LoadingVideo/index.js +17 -6
  45. package/lib/commonjs/social/components/legacy/LoadingVideo/index.js.map +1 -1
  46. package/lib/commonjs/social/constants/index.js +11 -0
  47. package/lib/commonjs/social/constants/index.js.map +1 -0
  48. package/lib/commonjs/social/elements/PostMediaElement/PostMediaElement.js +342 -0
  49. package/lib/commonjs/social/elements/PostMediaElement/PostMediaElement.js.map +1 -0
  50. package/lib/commonjs/social/elements/PostMediaElement/index.js +13 -0
  51. package/lib/commonjs/social/elements/PostMediaElement/index.js.map +1 -0
  52. package/lib/commonjs/social/elements/PostMediaElement/styles.js +124 -0
  53. package/lib/commonjs/social/elements/PostMediaElement/styles.js.map +1 -0
  54. package/lib/commonjs/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.js +11 -5
  55. package/lib/commonjs/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.js.map +1 -1
  56. package/lib/commonjs/social/features/feed/components/NewsFeed/NewsFeed.js +14 -0
  57. package/lib/commonjs/social/features/feed/components/NewsFeed/NewsFeed.js.map +1 -1
  58. package/lib/commonjs/social/features/post/Composer/PostComposer.js +273 -154
  59. package/lib/commonjs/social/features/post/Composer/PostComposer.js.map +1 -1
  60. package/lib/commonjs/social/features/post/components/DetailedMediaAttachment/DetailedMediaAttachment.js +17 -7
  61. package/lib/commonjs/social/features/post/components/DetailedMediaAttachment/DetailedMediaAttachment.js.map +1 -1
  62. package/lib/commonjs/social/features/post/components/MediaAttachment/MediaAttachment.js +17 -7
  63. package/lib/commonjs/social/features/post/components/MediaAttachment/MediaAttachment.js.map +1 -1
  64. package/lib/commonjs/social/hooks/index.js +11 -0
  65. package/lib/commonjs/social/hooks/index.js.map +1 -1
  66. package/lib/commonjs/social/hooks/useCommunities.js +5 -3
  67. package/lib/commonjs/social/hooks/useCommunities.js.map +1 -1
  68. package/lib/commonjs/social/hooks/useCommunityPermission.js +43 -0
  69. package/lib/commonjs/social/hooks/useCommunityPermission.js.map +1 -0
  70. package/lib/commonjs/social/hooks/useCustomRankingGlobalFeed.js +10 -1
  71. package/lib/commonjs/social/hooks/useCustomRankingGlobalFeed.js.map +1 -1
  72. package/lib/commonjs/social/hooks/useFile.js +11 -0
  73. package/lib/commonjs/social/hooks/useFile.js.map +1 -1
  74. package/lib/commonjs/social/screens/CommunityProfile/components/Header/Header.js +18 -7
  75. package/lib/commonjs/social/screens/CommunityProfile/components/Header/Header.js.map +1 -1
  76. package/lib/commonjs/social/utils/getFrameRatio.js +52 -0
  77. package/lib/commonjs/social/utils/getFrameRatio.js.map +1 -0
  78. package/lib/commonjs/social/utils/getIndicatorConfig.js +59 -0
  79. package/lib/commonjs/social/utils/getIndicatorConfig.js.map +1 -0
  80. package/lib/commonjs/social/utils/mediaAttachments.js +150 -0
  81. package/lib/commonjs/social/utils/mediaAttachments.js.map +1 -0
  82. package/lib/commonjs/social/utils/postChildren.js +72 -0
  83. package/lib/commonjs/social/utils/postChildren.js.map +1 -0
  84. package/lib/module/core/assets/icons/post.js +1 -1
  85. package/lib/module/core/assets/icons/post.js.map +1 -1
  86. package/lib/module/core/assets/icons/story.js +1 -1
  87. package/lib/module/core/assets/icons/story.js.map +1 -1
  88. package/lib/module/core/assets/icons/xml.js +61 -0
  89. package/lib/module/core/assets/icons/xml.js.map +1 -1
  90. package/lib/module/core/hooks/usePostByIds.js +32 -0
  91. package/lib/module/core/hooks/usePostByIds.js.map +1 -0
  92. package/lib/module/core/legacy/file.js +145 -62
  93. package/lib/module/core/legacy/file.js.map +1 -1
  94. package/lib/module/core/stores/slices/feedSlice.js +3 -0
  95. package/lib/module/core/stores/slices/feedSlice.js.map +1 -1
  96. package/lib/module/core/stores/slices/globalfeedSlice.js +5 -0
  97. package/lib/module/core/stores/slices/globalfeedSlice.js.map +1 -1
  98. package/lib/module/core/stores/slices/localVideoThumbnailSlice.js +41 -0
  99. package/lib/module/core/stores/slices/localVideoThumbnailSlice.js.map +1 -0
  100. package/lib/module/core/stores/slices/uiSlice.js +5 -1
  101. package/lib/module/core/stores/slices/uiSlice.js.map +1 -1
  102. package/lib/module/core/stores/store/index.js +3 -1
  103. package/lib/module/core/stores/store/index.js.map +1 -1
  104. package/lib/module/social/components/LoadingImage/index.js +77 -16
  105. package/lib/module/social/components/LoadingImage/index.js.map +1 -1
  106. package/lib/module/social/components/LoadingImage/styles.js +12 -3
  107. package/lib/module/social/components/LoadingImage/styles.js.map +1 -1
  108. package/lib/module/social/components/LoadingVideo/index.js +99 -19
  109. package/lib/module/social/components/LoadingVideo/index.js.map +1 -1
  110. package/lib/module/social/components/LoadingVideo/styles.js +18 -5
  111. package/lib/module/social/components/LoadingVideo/styles.js.map +1 -1
  112. package/lib/module/social/components/MediaViewer/MediaViewer.js +259 -0
  113. package/lib/module/social/components/MediaViewer/MediaViewer.js.map +1 -0
  114. package/lib/module/social/components/MediaViewer/index.js +2 -0
  115. package/lib/module/social/components/MediaViewer/index.js.map +1 -0
  116. package/lib/module/social/components/MediaViewer/styles.js +119 -0
  117. package/lib/module/social/components/MediaViewer/styles.js.map +1 -0
  118. package/lib/module/social/components/PostContent/index.js +82 -148
  119. package/lib/module/social/components/PostContent/index.js.map +1 -1
  120. package/lib/module/social/components/SelectedMediaComponent/SelectedMediaComponent.js +233 -0
  121. package/lib/module/social/components/SelectedMediaComponent/SelectedMediaComponent.js.map +1 -0
  122. package/lib/module/social/components/SelectedMediaComponent/index.js +2 -0
  123. package/lib/module/social/components/SelectedMediaComponent/index.js.map +1 -0
  124. package/lib/module/social/components/SelectedMediaComponent/styles.js +36 -0
  125. package/lib/module/social/components/SelectedMediaComponent/styles.js.map +1 -0
  126. package/lib/module/social/components/legacy/LoadingVideo/index.js +17 -6
  127. package/lib/module/social/components/legacy/LoadingVideo/index.js.map +1 -1
  128. package/lib/module/social/constants/index.js +5 -0
  129. package/lib/module/social/constants/index.js.map +1 -0
  130. package/lib/module/social/elements/PostMediaElement/PostMediaElement.js +335 -0
  131. package/lib/module/social/elements/PostMediaElement/PostMediaElement.js.map +1 -0
  132. package/lib/module/social/elements/PostMediaElement/index.js +2 -0
  133. package/lib/module/social/elements/PostMediaElement/index.js.map +1 -0
  134. package/lib/module/social/elements/PostMediaElement/styles.js +117 -0
  135. package/lib/module/social/elements/PostMediaElement/styles.js.map +1 -0
  136. package/lib/module/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.js +12 -6
  137. package/lib/module/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.js.map +1 -1
  138. package/lib/module/social/features/feed/components/NewsFeed/NewsFeed.js +15 -1
  139. package/lib/module/social/features/feed/components/NewsFeed/NewsFeed.js.map +1 -1
  140. package/lib/module/social/features/post/Composer/PostComposer.js +278 -160
  141. package/lib/module/social/features/post/Composer/PostComposer.js.map +1 -1
  142. package/lib/module/social/features/post/components/DetailedMediaAttachment/DetailedMediaAttachment.js +17 -7
  143. package/lib/module/social/features/post/components/DetailedMediaAttachment/DetailedMediaAttachment.js.map +1 -1
  144. package/lib/module/social/features/post/components/MediaAttachment/MediaAttachment.js +17 -7
  145. package/lib/module/social/features/post/components/MediaAttachment/MediaAttachment.js.map +1 -1
  146. package/lib/module/social/hooks/index.js +1 -0
  147. package/lib/module/social/hooks/index.js.map +1 -1
  148. package/lib/module/social/hooks/useCommunities.js +5 -3
  149. package/lib/module/social/hooks/useCommunities.js.map +1 -1
  150. package/lib/module/social/hooks/useCommunityPermission.js +37 -0
  151. package/lib/module/social/hooks/useCommunityPermission.js.map +1 -0
  152. package/lib/module/social/hooks/useCustomRankingGlobalFeed.js +10 -1
  153. package/lib/module/social/hooks/useCustomRankingGlobalFeed.js.map +1 -1
  154. package/lib/module/social/hooks/useFile.js +11 -0
  155. package/lib/module/social/hooks/useFile.js.map +1 -1
  156. package/lib/module/social/screens/CommunityProfile/components/Header/Header.js +19 -8
  157. package/lib/module/social/screens/CommunityProfile/components/Header/Header.js.map +1 -1
  158. package/lib/module/social/utils/getFrameRatio.js +44 -0
  159. package/lib/module/social/utils/getFrameRatio.js.map +1 -0
  160. package/lib/module/social/utils/getIndicatorConfig.js +53 -0
  161. package/lib/module/social/utils/getIndicatorConfig.js.map +1 -0
  162. package/lib/module/social/utils/mediaAttachments.js +139 -0
  163. package/lib/module/social/utils/mediaAttachments.js.map +1 -0
  164. package/lib/module/social/utils/postChildren.js +66 -0
  165. package/lib/module/social/utils/postChildren.js.map +1 -0
  166. package/lib/typescript/core/assets/icons/xml.d.ts +8 -0
  167. package/lib/typescript/core/assets/icons/xml.d.ts.map +1 -1
  168. package/lib/typescript/core/hooks/usePostByIds.d.ts +8 -0
  169. package/lib/typescript/core/hooks/usePostByIds.d.ts.map +1 -0
  170. package/lib/typescript/core/legacy/file.d.ts +32 -0
  171. package/lib/typescript/core/legacy/file.d.ts.map +1 -1
  172. package/lib/typescript/core/stores/slices/feedSlice.d.ts.map +1 -1
  173. package/lib/typescript/core/stores/slices/globalfeedSlice.d.ts.map +1 -1
  174. package/lib/typescript/core/stores/slices/localVideoThumbnailSlice.d.ts +35 -0
  175. package/lib/typescript/core/stores/slices/localVideoThumbnailSlice.d.ts.map +1 -0
  176. package/lib/typescript/core/stores/slices/uiSlice.d.ts +5 -0
  177. package/lib/typescript/core/stores/slices/uiSlice.d.ts.map +1 -1
  178. package/lib/typescript/core/stores/store/index.d.ts.map +1 -1
  179. package/lib/typescript/core/types/mention.d.ts +34 -0
  180. package/lib/typescript/core/types/mention.d.ts.map +1 -1
  181. package/lib/typescript/social/components/LoadingImage/index.d.ts +9 -2
  182. package/lib/typescript/social/components/LoadingImage/index.d.ts.map +1 -1
  183. package/lib/typescript/social/components/LoadingImage/styles.d.ts +4 -0
  184. package/lib/typescript/social/components/LoadingImage/styles.d.ts.map +1 -1
  185. package/lib/typescript/social/components/LoadingVideo/index.d.ts +10 -2
  186. package/lib/typescript/social/components/LoadingVideo/index.d.ts.map +1 -1
  187. package/lib/typescript/social/components/LoadingVideo/styles.d.ts +5 -0
  188. package/lib/typescript/social/components/LoadingVideo/styles.d.ts.map +1 -1
  189. package/lib/typescript/social/components/MediaViewer/MediaViewer.d.ts +17 -0
  190. package/lib/typescript/social/components/MediaViewer/MediaViewer.d.ts.map +1 -0
  191. package/lib/typescript/social/components/MediaViewer/index.d.ts +3 -0
  192. package/lib/typescript/social/components/MediaViewer/index.d.ts.map +1 -0
  193. package/lib/typescript/social/components/MediaViewer/styles.d.ts +100 -0
  194. package/lib/typescript/social/components/MediaViewer/styles.d.ts.map +1 -0
  195. package/lib/typescript/social/components/PostContent/index.d.ts.map +1 -1
  196. package/lib/typescript/social/components/SelectedMediaComponent/SelectedMediaComponent.d.ts +12 -0
  197. package/lib/typescript/social/components/SelectedMediaComponent/SelectedMediaComponent.d.ts.map +1 -0
  198. package/lib/typescript/social/components/SelectedMediaComponent/index.d.ts +3 -0
  199. package/lib/typescript/social/components/SelectedMediaComponent/index.d.ts.map +1 -0
  200. package/lib/typescript/social/components/SelectedMediaComponent/styles.d.ts +25 -0
  201. package/lib/typescript/social/components/SelectedMediaComponent/styles.d.ts.map +1 -0
  202. package/lib/typescript/social/components/legacy/LoadingVideo/index.d.ts.map +1 -1
  203. package/lib/typescript/social/constants/index.d.ts +4 -0
  204. package/lib/typescript/social/constants/index.d.ts.map +1 -0
  205. package/lib/typescript/social/elements/PostMediaElement/PostMediaElement.d.ts +15 -0
  206. package/lib/typescript/social/elements/PostMediaElement/PostMediaElement.d.ts.map +1 -0
  207. package/lib/typescript/social/elements/PostMediaElement/index.d.ts +3 -0
  208. package/lib/typescript/social/elements/PostMediaElement/index.d.ts.map +1 -0
  209. package/lib/typescript/social/elements/PostMediaElement/styles.d.ts +92 -0
  210. package/lib/typescript/social/elements/PostMediaElement/styles.d.ts.map +1 -0
  211. package/lib/typescript/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.d.ts.map +1 -1
  212. package/lib/typescript/social/features/feed/components/NewsFeed/NewsFeed.d.ts.map +1 -1
  213. package/lib/typescript/social/features/post/Composer/PostComposer.d.ts.map +1 -1
  214. package/lib/typescript/social/features/post/components/DetailedMediaAttachment/DetailedMediaAttachment.d.ts +3 -0
  215. package/lib/typescript/social/features/post/components/DetailedMediaAttachment/DetailedMediaAttachment.d.ts.map +1 -1
  216. package/lib/typescript/social/features/post/components/MediaAttachment/MediaAttachment.d.ts +3 -0
  217. package/lib/typescript/social/features/post/components/MediaAttachment/MediaAttachment.d.ts.map +1 -1
  218. package/lib/typescript/social/hooks/index.d.ts +1 -0
  219. package/lib/typescript/social/hooks/index.d.ts.map +1 -1
  220. package/lib/typescript/social/hooks/useCommunities.d.ts +2 -1
  221. package/lib/typescript/social/hooks/useCommunities.d.ts.map +1 -1
  222. package/lib/typescript/social/hooks/useCommunityPermission.d.ts +14 -0
  223. package/lib/typescript/social/hooks/useCommunityPermission.d.ts.map +1 -0
  224. package/lib/typescript/social/hooks/useCustomRankingGlobalFeed.d.ts.map +1 -1
  225. package/lib/typescript/social/hooks/useFile.d.ts +11 -0
  226. package/lib/typescript/social/hooks/useFile.d.ts.map +1 -1
  227. package/lib/typescript/social/screens/CommunityProfile/components/Header/Header.d.ts.map +1 -1
  228. package/lib/typescript/social/utils/getFrameRatio.d.ts +21 -0
  229. package/lib/typescript/social/utils/getFrameRatio.d.ts.map +1 -0
  230. package/lib/typescript/social/utils/getIndicatorConfig.d.ts +11 -0
  231. package/lib/typescript/social/utils/getIndicatorConfig.d.ts.map +1 -0
  232. package/lib/typescript/social/utils/mediaAttachments.d.ts +91 -0
  233. package/lib/typescript/social/utils/mediaAttachments.d.ts.map +1 -0
  234. package/lib/typescript/social/utils/postChildren.d.ts +38 -0
  235. package/lib/typescript/social/utils/postChildren.d.ts.map +1 -0
  236. package/package.json +3 -3
  237. package/src/core/assets/icons/post.tsx +1 -1
  238. package/src/core/assets/icons/story.tsx +1 -1
  239. package/src/core/assets/icons/xml.ts +75 -0
  240. package/src/core/hooks/usePostByIds.ts +33 -0
  241. package/src/core/legacy/file.tsx +169 -84
  242. package/src/core/stores/slices/feedSlice.ts +3 -0
  243. package/src/core/stores/slices/globalfeedSlice.ts +5 -0
  244. package/src/core/stores/slices/localVideoThumbnailSlice.ts +58 -0
  245. package/src/core/stores/slices/uiSlice.ts +8 -0
  246. package/src/core/stores/store/index.ts +2 -0
  247. package/src/core/types/mention.ts +34 -0
  248. package/src/social/components/LoadingImage/index.tsx +93 -14
  249. package/src/social/components/LoadingImage/styles.ts +12 -3
  250. package/src/social/components/LoadingVideo/index.tsx +135 -21
  251. package/src/social/components/LoadingVideo/styles.ts +17 -4
  252. package/src/social/components/MediaViewer/MediaViewer.tsx +383 -0
  253. package/src/social/components/MediaViewer/index.tsx +2 -0
  254. package/src/social/components/MediaViewer/styles.ts +117 -0
  255. package/src/social/components/PostContent/index.tsx +86 -191
  256. package/src/social/components/SelectedMediaComponent/SelectedMediaComponent.tsx +292 -0
  257. package/src/social/components/SelectedMediaComponent/index.ts +2 -0
  258. package/src/social/components/SelectedMediaComponent/styles.ts +38 -0
  259. package/src/social/components/legacy/LoadingVideo/index.tsx +26 -15
  260. package/src/social/constants/index.ts +4 -0
  261. package/src/social/elements/PostMediaElement/PostMediaElement.tsx +428 -0
  262. package/src/social/elements/PostMediaElement/index.tsx +5 -0
  263. package/src/social/elements/PostMediaElement/styles.ts +106 -0
  264. package/src/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.tsx +11 -6
  265. package/src/social/features/feed/components/NewsFeed/NewsFeed.tsx +16 -1
  266. package/src/social/features/post/Composer/PostComposer.tsx +366 -183
  267. package/src/social/features/post/components/DetailedMediaAttachment/DetailedMediaAttachment.tsx +10 -3
  268. package/src/social/features/post/components/MediaAttachment/MediaAttachment.tsx +14 -3
  269. package/src/social/hooks/index.ts +1 -0
  270. package/src/social/hooks/useCommunities.ts +4 -2
  271. package/src/social/hooks/useCommunityPermission.ts +40 -0
  272. package/src/social/hooks/useCustomRankingGlobalFeed.ts +8 -1
  273. package/src/social/hooks/useFile.ts +11 -0
  274. package/src/social/screens/CommunityProfile/components/Header/Header.tsx +19 -10
  275. package/src/social/utils/getFrameRatio.ts +42 -0
  276. package/src/social/utils/getIndicatorConfig.ts +62 -0
  277. package/src/social/utils/mediaAttachments.ts +158 -0
  278. package/src/social/utils/postChildren.ts +85 -0
@@ -20,6 +20,10 @@ const useStyles = () => {
20
20
  height: width / 3 - 16,
21
21
  margin: 3
22
22
  },
23
+ carouselContainer: {
24
+ width: '100%',
25
+ height: '100%'
26
+ },
23
27
  image: {
24
28
  width: '100%',
25
29
  height: '100%',
@@ -48,11 +52,20 @@ const useStyles = () => {
48
52
  },
49
53
  closeButton: {
50
54
  position: 'absolute',
51
- top: 7,
52
- right: 7,
53
- padding: 7,
54
- backgroundColor: 'rgba(255, 255, 255, 0.4)',
55
- borderRadius: 72
55
+ // Matched to the web UIKit's remove button, which is 20px of icon inside
56
+ // 4px of padding at an 8px offset. The old 12/7 pair came to nearly the
57
+ // same 26dp outer size but filled only 46% of the circle with the glyph
58
+ // against web's 71%, so it read as a heavy black disc with a tiny cross
59
+ // in it.
60
+ top: 8,
61
+ right: 8,
62
+ padding: 4,
63
+ // Matches LoadingImage exactly: the icon is closeIcon('white') in both,
64
+ // so the white scrim this used to carry left a white-on-white button
65
+ // that all but disappeared over a light frame.
66
+ backgroundColor: 'rgba(0, 0, 0, 0.4)',
67
+ borderRadius: 72,
68
+ zIndex: 10
56
69
  },
57
70
  playButton: {
58
71
  width: 100,
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","useStyles","width","useWindowDimensions","StyleSheet","create","container","flex","height","margin","image3XContainer","image","resizeMode","borderRadius","backgroundColor","overlay","position","top","left","transform","translateX","translateY","progressBar","marginVertical","loadingImage","opacity","loadedImage","closeButton","right","padding","playButton","zIndex","exports"],"sourceRoot":"../../../../../src","sources":["social/components/LoadingVideo/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEO,MAAMC,SAAS,GAAGA,CAAA,KAAM;EAC7B,MAAM;IAAEC;EAAM,CAAC,GAAG,IAAAC,gCAAmB,EAAC,CAAC;EACvC,OAAOC,uBAAU,CAACC,MAAM,CAAC;IACvBC,SAAS,EAAE;MACTC,IAAI,EAAE,CAAC;MACPC,MAAM,EAAEN,KAAK,GAAG,EAAE;MAClBO,MAAM,EAAE;IACV,CAAC;IACDC,gBAAgB,EAAE;MAChBR,KAAK,EAAEA,KAAK,GAAG,CAAC,GAAG,EAAE;MACrBM,MAAM,EAAEN,KAAK,GAAG,CAAC,GAAG,EAAE;MACtBO,MAAM,EAAE;IACV,CAAC;IACDE,KAAK,EAAE;MACLT,KAAK,EAAE,MAAM;MACbM,MAAM,EAAE,MAAM;MACdI,UAAU,EAAE,OAAO;MACnBC,YAAY,EAAE,CAAC;MACfC,eAAe,EAAE;IACnB,CAAC;IACDC,OAAO,EAAE;MACPC,QAAQ,EAAE,UAAU;MACpBC,GAAG,EAAE,KAAK;MACVC,IAAI,EAAE,KAAK;MACXC,SAAS,EAAE,CAAC;QAAEC,UAAU,EAAE,CAAC;MAAG,CAAC,EAAE;QAAEC,UAAU,EAAE,CAAC;MAAG,CAAC;IACtD,CAAC;IACDC,WAAW,EAAE;MACXC,cAAc,EAAE;IAClB,CAAC;IACDC,YAAY,EAAE;MACZC,OAAO,EAAE;IACX,CAAC;IACDC,WAAW,EAAE;MACXD,OAAO,EAAE;IACX,CAAC;IACDE,WAAW,EAAE;MACXX,QAAQ,EAAE,UAAU;MACpBC,GAAG,EAAE,CAAC;MACNW,KAAK,EAAE,CAAC;MACRC,OAAO,EAAE,CAAC;MACVf,eAAe,EAAE,0BAA0B;MAC3CD,YAAY,EAAE;IAChB,CAAC;IACDiB,UAAU,EAAE;MACV5B,KAAK,EAAE,GAAG;MACVM,MAAM,EAAE,GAAG;MACXK,YAAY,EAAE,EAAE;MAChBG,QAAQ,EAAE,UAAU;MACpBC,GAAG,EAAE,KAAK;MACVC,IAAI,EAAE,KAAK;MACXC,SAAS,EAAE,CAAC;QAAEC,UAAU,EAAE,CAAC;MAAG,CAAC,EAAE;QAAEC,UAAU,EAAE,CAAC;MAAG,CAAC,CAAC;MACrDU,MAAM,EAAE;IACV;EACF,CAAC,CAAC;AACJ,CAAC;AAACC,OAAA,CAAA/B,SAAA,GAAAA,SAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","useStyles","width","useWindowDimensions","StyleSheet","create","container","flex","height","margin","image3XContainer","carouselContainer","image","resizeMode","borderRadius","backgroundColor","overlay","position","top","left","transform","translateX","translateY","progressBar","marginVertical","loadingImage","opacity","loadedImage","closeButton","right","padding","zIndex","playButton","exports"],"sourceRoot":"../../../../../src","sources":["social/components/LoadingVideo/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEO,MAAMC,SAAS,GAAGA,CAAA,KAAM;EAC7B,MAAM;IAAEC;EAAM,CAAC,GAAG,IAAAC,gCAAmB,EAAC,CAAC;EACvC,OAAO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AAE,KAAK;MACVC,IAAI,EAAE,KAAK;MACXC,SAAS,EAAE,CAAC;QAAEC,UAAU,EAAE,CAAC;MAAG,CAAC,EAAE;QAAEC,UAAU,EAAE,CAAC;MAAG,CAAC,CAAC;MACrDS,MAAM,EAAE;IACV;EACF,CAAC,CAAC;AACJ,CAAC;AAACE,OAAA,CAAAhC,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -0,0 +1,266 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.MediaViewer = MediaViewer;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeVideo = _interopRequireDefault(require("react-native-video"));
10
+ var _reactNativeSvg = require("react-native-svg");
11
+ var _xml = require("../../../core/assets/icons/xml");
12
+ var _styles = require("./styles");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
15
+ const CONTROLS_AUTO_HIDE_MS = 3000;
16
+ function formatTime(seconds) {
17
+ if (!Number.isFinite(seconds) || seconds < 0) return '0:00';
18
+ const total = Math.floor(seconds);
19
+ const mins = Math.floor(total / 60);
20
+ const secs = total % 60;
21
+ return `${mins}:${secs.toString().padStart(2, '0')}`;
22
+ }
23
+ function MediaViewer({
24
+ visible,
25
+ items,
26
+ initialIndex,
27
+ onClose
28
+ }) {
29
+ var _items$current;
30
+ const {
31
+ styles
32
+ } = (0, _styles.useStyles)();
33
+ const {
34
+ width
35
+ } = (0, _reactNative.useWindowDimensions)();
36
+ const listRef = (0, _react.useRef)(null);
37
+ const videoRef = (0, _react.useRef)(null);
38
+ const [current, setCurrent] = (0, _react.useState)(initialIndex);
39
+ // The sound setting belongs to the viewing session, not to one frame: the
40
+ // first video opens unmuted and swiping carries whatever the viewer last
41
+ // chose. Re-defaulting each new frame to muted meant a swipe silenced a
42
+ // session the viewer never muted, since opening unmuted is a default rather
43
+ // than an explicit choice.
44
+ const [muted, setMuted] = (0, _react.useState)(false);
45
+
46
+ // --- playback controls (ported from web VideoPlayerControls) ---
47
+ const [userPaused, setUserPaused] = (0, _react.useState)(false);
48
+ const [progress, setProgress] = (0, _react.useState)(0);
49
+ const [duration, setDuration] = (0, _react.useState)(0);
50
+ const [scrubbing, setScrubbing] = (0, _react.useState)(false);
51
+ const [controlsVisible, setControlsVisible] = (0, _react.useState)(true);
52
+ const [trackWidth, setTrackWidth] = (0, _react.useState)(0);
53
+ const hideTimer = (0, _react.useRef)(null);
54
+ const clearHideTimer = (0, _react.useCallback)(() => {
55
+ if (hideTimer.current) {
56
+ clearTimeout(hideTimer.current);
57
+ hideTimer.current = null;
58
+ }
59
+ }, []);
60
+ const scheduleHide = (0, _react.useCallback)(() => {
61
+ clearHideTimer();
62
+ hideTimer.current = setTimeout(() => setControlsVisible(false), CONTROLS_AUTO_HIDE_MS);
63
+ }, [clearHideTimer]);
64
+ const revealControls = (0, _react.useCallback)(() => {
65
+ setControlsVisible(true);
66
+ scheduleHide();
67
+ }, [scheduleHide]);
68
+ const resetPlayback = (0, _react.useCallback)(() => {
69
+ setUserPaused(false);
70
+ setProgress(0);
71
+ setDuration(0);
72
+ setScrubbing(false);
73
+ }, []);
74
+ (0, _react.useEffect)(() => {
75
+ if (!visible) {
76
+ clearHideTimer();
77
+ return;
78
+ }
79
+ setCurrent(initialIndex);
80
+ setMuted(false);
81
+ resetPlayback();
82
+ revealControls();
83
+ }, [visible, initialIndex, resetPlayback, revealControls, clearHideTimer]);
84
+ const onMomentumScrollEnd = (0, _react.useCallback)(e => {
85
+ if (!width) return;
86
+ const idx = Math.round(e.nativeEvent.contentOffset.x / width);
87
+ if (idx !== current) {
88
+ setCurrent(idx);
89
+ resetPlayback();
90
+ revealControls();
91
+ }
92
+ }, [width, current, resetPlayback, revealControls]);
93
+ const toggleMute = (0, _react.useCallback)(() => {
94
+ setMuted(prev => !prev);
95
+ revealControls();
96
+ }, [revealControls]);
97
+ const togglePlay = (0, _react.useCallback)(() => {
98
+ setUserPaused(p => !p);
99
+ revealControls();
100
+ }, [revealControls]);
101
+ const onLoad = (0, _react.useCallback)(data => {
102
+ setDuration(data.duration ?? 0);
103
+ }, []);
104
+ const onProgress = (0, _react.useCallback)(data => {
105
+ if (!scrubbing) setProgress(data.currentTime);
106
+ }, [scrubbing]);
107
+ const seekToX = (0, _react.useCallback)(locationX => {
108
+ if (trackWidth <= 0 || duration <= 0) return;
109
+ const ratio = Math.max(0, Math.min(1, locationX / trackWidth));
110
+ setProgress(ratio * duration);
111
+ }, [trackWidth, duration]);
112
+
113
+ // Scrubber: a horizontal drag inside a horizontal pager. We claim the gesture
114
+ // and disable FlatList scroll while scrubbing so the two don't fight.
115
+ const panResponder = (0, _react.useMemo)(() => _reactNative.PanResponder.create({
116
+ onStartShouldSetPanResponder: () => true,
117
+ onMoveShouldSetPanResponder: () => true,
118
+ onPanResponderGrant: e => {
119
+ setScrubbing(true);
120
+ clearHideTimer();
121
+ setControlsVisible(true);
122
+ seekToX(e.nativeEvent.locationX);
123
+ },
124
+ onPanResponderMove: e => {
125
+ seekToX(e.nativeEvent.locationX);
126
+ },
127
+ onPanResponderRelease: e => {
128
+ var _videoRef$current;
129
+ const ratio = trackWidth > 0 ? Math.max(0, Math.min(1, e.nativeEvent.locationX / trackWidth)) : 0;
130
+ const target = ratio * (duration || 0);
131
+ (_videoRef$current = videoRef.current) === null || _videoRef$current === void 0 || _videoRef$current.seek(target);
132
+ setProgress(target);
133
+ setScrubbing(false);
134
+ scheduleHide();
135
+ },
136
+ onPanResponderTerminate: () => {
137
+ setScrubbing(false);
138
+ scheduleHide();
139
+ }
140
+ }), [seekToX, clearHideTimer, scheduleHide, trackWidth, duration]);
141
+ const onTrackLayout = (0, _react.useCallback)(e => {
142
+ setTrackWidth(e.nativeEvent.layout.width);
143
+ }, []);
144
+
145
+ // The control overlay must live INSIDE the page (a descendant of the pager),
146
+ // so horizontal drags on the tap-target are reclaimed by the FlatList's
147
+ // native scroll — a container-level sibling overlay would swallow swipes.
148
+ const renderControls = (0, _react.useCallback)(() => {
149
+ const progressPct = duration > 0 ? Math.max(0, Math.min(1, progress / duration)) : 0;
150
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
151
+ style: _reactNative.StyleSheet.absoluteFill,
152
+ pointerEvents: "box-none"
153
+ }, /*#__PURE__*/React.createElement(_reactNative.Pressable, {
154
+ style: _reactNative.StyleSheet.absoluteFill,
155
+ onPress: () => controlsVisible ? setControlsVisible(false) : revealControls()
156
+ }), controlsVisible && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_reactNative.View, {
157
+ style: styles.centerControls,
158
+ pointerEvents: "box-none"
159
+ }, /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
160
+ style: styles.centerBtn,
161
+ onPress: togglePlay
162
+ }, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
163
+ xml: userPaused ? (0, _xml.playControlIcon)('#FFFFFF') : (0, _xml.pauseControlIcon)('#FFFFFF'),
164
+ width: 24,
165
+ height: 24
166
+ }))), /*#__PURE__*/React.createElement(_reactNative.View, {
167
+ style: styles.controlBar,
168
+ pointerEvents: "box-none"
169
+ }, /*#__PURE__*/React.createElement(_reactNative.Text, {
170
+ style: styles.controlTime
171
+ }, formatTime(progress), " / ", formatTime(duration)), /*#__PURE__*/React.createElement(_reactNative.View, _extends({
172
+ style: styles.progressTrack,
173
+ onLayout: onTrackLayout
174
+ }, panResponder.panHandlers), /*#__PURE__*/React.createElement(_reactNative.View, {
175
+ style: styles.progressBg
176
+ }), /*#__PURE__*/React.createElement(_reactNative.View, {
177
+ style: [styles.progressFill, {
178
+ width: `${progressPct * 100}%`
179
+ }]
180
+ })))));
181
+ }, [styles, controlsVisible, setControlsVisible, revealControls, togglePlay, userPaused, progress, duration, onTrackLayout, panResponder]);
182
+ const renderItem = (0, _react.useCallback)(({
183
+ item,
184
+ index
185
+ }) => /*#__PURE__*/React.createElement(_reactNative.View, {
186
+ style: [styles.page, {
187
+ width
188
+ }]
189
+ }, item.type === 'video' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_reactNative.View, {
190
+ style: styles.media,
191
+ pointerEvents: "none"
192
+ }, /*#__PURE__*/React.createElement(_reactNativeVideo.default, {
193
+ ref: index === current ? videoRef : undefined,
194
+ source: item.videoType ? {
195
+ uri: item.uri,
196
+ type: item.videoType
197
+ } : {
198
+ uri: item.uri
199
+ },
200
+ style: styles.media,
201
+ resizeMode: "contain",
202
+ paused: index !== current || !visible || userPaused
203
+ // Only the frame on screen may be audible. `paused` alone is
204
+ // not a reliable gag on an off-screen native player, so an
205
+ // unmuted session must not leave a neighbouring frame able to
206
+ // emit sound.
207
+ ,
208
+ muted: muted || index !== current,
209
+ repeat: true,
210
+ playInBackground: false,
211
+ playWhenInactive: false,
212
+ onLoad: index === current ? onLoad : undefined,
213
+ onProgress: index === current ? onProgress : undefined
214
+ })), index === current && renderControls()) : /*#__PURE__*/React.createElement(_reactNative.Image, {
215
+ source: {
216
+ uri: item.uri
217
+ },
218
+ style: styles.media,
219
+ resizeMode: "contain"
220
+ })), [styles, width, current, muted, visible, userPaused, onLoad, onProgress, renderControls]);
221
+ const currentIsVideo = ((_items$current = items[current]) === null || _items$current === void 0 ? void 0 : _items$current.type) === 'video';
222
+ return /*#__PURE__*/React.createElement(_reactNative.Modal, {
223
+ visible: visible,
224
+ transparent: true,
225
+ animationType: "fade",
226
+ onRequestClose: () => onClose(current)
227
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
228
+ style: styles.container
229
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
230
+ style: styles.header
231
+ }, /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
232
+ style: styles.headerBtn,
233
+ onPress: () => onClose(current)
234
+ }, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
235
+ xml: (0, _xml.clearIcon)('white'),
236
+ width: 28,
237
+ height: 28
238
+ })), /*#__PURE__*/React.createElement(_reactNative.Text, {
239
+ style: styles.counter
240
+ }, current + 1, "/", items.length), /*#__PURE__*/React.createElement(_reactNative.View, {
241
+ style: styles.headerBtn__right
242
+ }, currentIsVideo && /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
243
+ onPress: toggleMute
244
+ }, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
245
+ xml: muted ? (0, _xml.soundOffIcon)('#FFFFFF') : (0, _xml.soundOnIcon)('#FFFFFF'),
246
+ width: 24,
247
+ height: 24
248
+ })))), /*#__PURE__*/React.createElement(_reactNative.FlatList, {
249
+ ref: listRef,
250
+ data: items,
251
+ horizontal: true,
252
+ pagingEnabled: true,
253
+ scrollEnabled: !scrubbing,
254
+ showsHorizontalScrollIndicator: false,
255
+ keyExtractor: (it, i) => `${it.uri}-${i}`,
256
+ renderItem: renderItem,
257
+ getItemLayout: (_, index) => ({
258
+ length: width,
259
+ offset: width * index,
260
+ index
261
+ }),
262
+ initialScrollIndex: initialIndex,
263
+ onMomentumScrollEnd: onMomentumScrollEnd
264
+ })));
265
+ }
266
+ //# sourceMappingURL=MediaViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_reactNativeVideo","_interopRequireDefault","_reactNativeSvg","_xml","_styles","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","CONTROLS_AUTO_HIDE_MS","formatTime","seconds","Number","isFinite","total","Math","floor","mins","secs","toString","padStart","MediaViewer","visible","items","initialIndex","onClose","_items$current","styles","useStyles","width","useWindowDimensions","listRef","useRef","videoRef","current","setCurrent","useState","muted","setMuted","userPaused","setUserPaused","progress","setProgress","duration","setDuration","scrubbing","setScrubbing","controlsVisible","setControlsVisible","trackWidth","setTrackWidth","hideTimer","clearHideTimer","useCallback","clearTimeout","scheduleHide","setTimeout","revealControls","resetPlayback","useEffect","onMomentumScrollEnd","idx","round","nativeEvent","contentOffset","x","toggleMute","prev","togglePlay","p","onLoad","data","onProgress","currentTime","seekToX","locationX","ratio","max","min","panResponder","useMemo","PanResponder","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponder","onPanResponderGrant","onPanResponderMove","onPanResponderRelease","_videoRef$current","target","seek","onPanResponderTerminate","onTrackLayout","layout","renderControls","progressPct","React","createElement","View","style","StyleSheet","absoluteFill","pointerEvents","Pressable","onPress","Fragment","centerControls","TouchableOpacity","centerBtn","SvgXml","xml","playControlIcon","pauseControlIcon","height","controlBar","Text","controlTime","progressTrack","onLayout","panHandlers","progressBg","progressFill","renderItem","item","index","page","type","media","ref","undefined","source","videoType","uri","resizeMode","paused","repeat","playInBackground","playWhenInactive","Image","currentIsVideo","Modal","transparent","animationType","onRequestClose","container","header","headerBtn","clearIcon","counter","headerBtn__right","soundOffIcon","soundOnIcon","FlatList","horizontal","pagingEnabled","scrollEnabled","showsHorizontalScrollIndicator","keyExtractor","it","i","getItemLayout","_","offset","initialScrollIndex"],"sourceRoot":"../../../../../src","sources":["social/components/MediaViewer/MediaViewer.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAkBA,IAAAE,iBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAKA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAOA,IAAAM,OAAA,GAAAN,OAAA;AAAqC,SAAAG,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ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ACZkI,UAAU;IACVC,aAAa;IACbC,aAAa,EAAE,CAAC9G,SAAU;IAC1B+G,8BAA8B,EAAE,KAAM;IACtCC,YAAY,EAAEA,CAACC,EAAE,EAAEC,CAAC,KAAK,GAAGD,EAAE,CAAC1B,GAAG,IAAI2B,CAAC,EAAG;IAC1CrC,UAAU,EAAEA,UAAW;IACvBsC,aAAa,EAAEA,CAACC,CAAC,EAAErC,KAAK,MAAM;MAC5BzH,MAAM,EAAE0B,KAAK;MACbqI,MAAM,EAAErI,KAAK,GAAG+F,KAAK;MACrBA;IACF,CAAC,CAAE;IACHuC,kBAAkB,EAAE3I,YAAa;IACjCoC,mBAAmB,EAAEA;EAAoB,CAC1C,CACG,CACD,CAAC;AAEZ","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "MediaViewer", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _MediaViewer.MediaViewer;
10
+ }
11
+ });
12
+ var _MediaViewer = require("./MediaViewer");
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_MediaViewer","require"],"sourceRoot":"../../../../../src","sources":["social/components/MediaViewer/index.tsx"],"mappings":";;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA","ignoreList":[]}
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useStyles = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _reactNativePaper = require("react-native-paper");
9
+ var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
10
+ const useStyles = () => {
11
+ const theme = (0, _reactNativePaper.useTheme)();
12
+ const {
13
+ top
14
+ } = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
15
+ const styles = _reactNative.StyleSheet.create({
16
+ container: {
17
+ flex: 1,
18
+ backgroundColor: '#000000'
19
+ },
20
+ header: {
21
+ flexDirection: 'row',
22
+ alignItems: 'center',
23
+ justifyContent: 'space-between',
24
+ paddingHorizontal: 16,
25
+ // The viewer is a full-screen Modal, so its own content starts at y=0
26
+ // with nothing above it — the 56pt header sat under the notch / Dynamic
27
+ // Island and the close button could not be tapped at all. Inset the
28
+ // header instead of the container so the media itself still fills the
29
+ // screen behind it.
30
+ paddingTop: top,
31
+ height: 56 + top,
32
+ zIndex: 2
33
+ },
34
+ headerBtn: {
35
+ minWidth: 44,
36
+ height: 44,
37
+ alignItems: 'flex-start',
38
+ justifyContent: 'center'
39
+ },
40
+ headerBtn__right: {
41
+ minWidth: 44,
42
+ height: 44,
43
+ alignItems: 'flex-end',
44
+ justifyContent: 'center'
45
+ },
46
+ counter: {
47
+ color: '#FFFFFF',
48
+ fontSize: 14,
49
+ fontWeight: '600'
50
+ },
51
+ muteGlyph: {
52
+ fontSize: 20
53
+ },
54
+ page: {
55
+ flex: 1,
56
+ alignItems: 'center',
57
+ justifyContent: 'center'
58
+ },
59
+ media: {
60
+ width: '100%',
61
+ height: '100%'
62
+ },
63
+ // --- video control bar (ported from web VideoPlayerControls) ---
64
+ controlBar: {
65
+ position: 'absolute',
66
+ left: 0,
67
+ right: 0,
68
+ bottom: 0,
69
+ paddingHorizontal: 16,
70
+ paddingBottom: 24,
71
+ paddingTop: 12,
72
+ zIndex: 3
73
+ },
74
+ controlTime: {
75
+ color: '#FFFFFF',
76
+ fontSize: 12,
77
+ fontWeight: '600',
78
+ marginBottom: 8
79
+ },
80
+ progressTrack: {
81
+ height: 24,
82
+ justifyContent: 'center'
83
+ },
84
+ progressBg: {
85
+ height: 4,
86
+ borderRadius: 2,
87
+ backgroundColor: 'rgba(255, 255, 255, 0.3)'
88
+ },
89
+ progressFill: {
90
+ position: 'absolute',
91
+ left: 0,
92
+ height: 4,
93
+ borderRadius: 2,
94
+ backgroundColor: '#FFFFFF'
95
+ },
96
+ // Centered play/pause + skip row (web .mobileControlsRow: top/left 50%,
97
+ // translate -50%, gap 2rem).
98
+ centerControls: {
99
+ position: 'absolute',
100
+ top: 0,
101
+ left: 0,
102
+ right: 0,
103
+ bottom: 0,
104
+ flexDirection: 'row',
105
+ alignItems: 'center',
106
+ justifyContent: 'center'
107
+ },
108
+ // Circular translucent-black button (web .playButton/.skipButton: 2.5rem,
109
+ // border-radius 50%, transparent-black bg). 32px gap between buttons.
110
+ centerBtn: {
111
+ width: 40,
112
+ height: 40,
113
+ borderRadius: 20,
114
+ backgroundColor: 'rgba(0, 0, 0, 0.5)',
115
+ alignItems: 'center',
116
+ justifyContent: 'center',
117
+ marginHorizontal: 16
118
+ }
119
+ });
120
+ return {
121
+ styles,
122
+ theme
123
+ };
124
+ };
125
+ exports.useStyles = useStyles;
126
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_reactNativePaper","_reactNativeSafeAreaContext","useStyles","theme","useTheme","top","useSafeAreaInsets","styles","StyleSheet","create","container","flex","backgroundColor","header","flexDirection","alignItems","justifyContent","paddingHorizontal","paddingTop","height","zIndex","headerBtn","minWidth","headerBtn__right","counter","color","fontSize","fontWeight","muteGlyph","page","media","width","controlBar","position","left","right","bottom","paddingBottom","controlTime","marginBottom","progressTrack","progressBg","borderRadius","progressFill","centerControls","centerBtn","marginHorizontal","exports"],"sourceRoot":"../../../../../src","sources":["social/components/MediaViewer/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,2BAAA,GAAAF,OAAA;AAGO,MAAMG,SAAS,GAAGA,CAAA,KAAM;EAC7B,MAAMC,KAAK,GAAG,IAAAC,0BAAQ,EAAa,CAAC;EACpC,MAAM;IAAEC;EAAI,CAAC,GAAG,IAAAC,6CAAiB,EAAC,CAAC;EAEnC,MAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;IAC/BC,SAAS,EAAE;MACTC,IAAI,EAA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