@amityco/react-native-social-uikit 4.0.2-f1fd1fbd.0 → 4.1.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 (269) hide show
  1. package/lib/commonjs/core/assets/icons/index.js +8 -0
  2. package/lib/commonjs/core/assets/icons/index.js.map +1 -1
  3. package/lib/commonjs/core/assets/icons/visitorLimit.js +26 -0
  4. package/lib/commonjs/core/assets/icons/visitorLimit.js.map +1 -0
  5. package/lib/commonjs/core/constants/index.js +11 -1
  6. package/lib/commonjs/core/constants/index.js.map +1 -1
  7. package/lib/commonjs/core/hooks/useAuth.js +6 -2
  8. package/lib/commonjs/core/hooks/useAuth.js.map +1 -1
  9. package/lib/commonjs/core/providers/AmityUIKitProvider.js.map +1 -1
  10. package/lib/commonjs/core/providers/AuthProvider.js +44 -21
  11. package/lib/commonjs/core/providers/AuthProvider.js.map +1 -1
  12. package/lib/commonjs/core/routes/AmityUIKitNavigator.js +23 -1
  13. package/lib/commonjs/core/routes/AmityUIKitNavigator.js.map +1 -1
  14. package/lib/commonjs/social/components/PollContent/PollOption.js +12 -12
  15. package/lib/commonjs/social/components/PollContent/PollOption.js.map +1 -1
  16. package/lib/commonjs/social/components/PostMenu/index.js +9 -2
  17. package/lib/commonjs/social/components/PostMenu/index.js.map +1 -1
  18. package/lib/commonjs/social/components/Social/CommentList/CommentList.js +6 -1
  19. package/lib/commonjs/social/components/Social/CommentList/CommentList.js.map +1 -1
  20. package/lib/commonjs/social/components/Social/CommentListItem/CommentListItem.js +24 -6
  21. package/lib/commonjs/social/components/Social/CommentListItem/CommentListItem.js.map +1 -1
  22. package/lib/commonjs/social/components/Social/CommentListItem/styles.js +3 -2
  23. package/lib/commonjs/social/components/Social/CommentListItem/styles.js.map +1 -1
  24. package/lib/commonjs/social/components/legacy/Social/ReplyCommentList/index.js +14 -2
  25. package/lib/commonjs/social/components/legacy/Social/ReplyCommentList/index.js.map +1 -1
  26. package/lib/commonjs/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js +6 -1
  27. package/lib/commonjs/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js.map +1 -1
  28. package/lib/commonjs/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js +17 -3
  29. package/lib/commonjs/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js.map +1 -1
  30. package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/index.js +17 -3
  31. package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/index.js.map +1 -1
  32. package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/styles.js +8 -0
  33. package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/styles.js.map +1 -1
  34. package/lib/commonjs/social/features/feed/components/TopNavigation/TopNavigation.js +5 -1
  35. package/lib/commonjs/social/features/feed/components/TopNavigation/TopNavigation.js.map +1 -1
  36. package/lib/commonjs/social/features/livestream/Player/Player.js +9 -6
  37. package/lib/commonjs/social/features/livestream/Player/Player.js.map +1 -1
  38. package/lib/commonjs/social/features/post/Detail/index.js +6 -2
  39. package/lib/commonjs/social/features/post/Detail/index.js.map +1 -1
  40. package/lib/commonjs/social/features/post/components/EngagementActions/Components/DetailStyle.js +16 -10
  41. package/lib/commonjs/social/features/post/components/EngagementActions/Components/DetailStyle.js.map +1 -1
  42. package/lib/commonjs/social/features/post/components/EngagementActions/Components/FeedStyle.js +17 -9
  43. package/lib/commonjs/social/features/post/components/EngagementActions/Components/FeedStyle.js.map +1 -1
  44. package/lib/commonjs/social/features/story/View/components/AmityViewStoryItem.js +19 -21
  45. package/lib/commonjs/social/features/story/View/components/AmityViewStoryItem.js.map +1 -1
  46. package/lib/commonjs/social/features/user/Profile/components/Header/hooks/useHeader.js +28 -19
  47. package/lib/commonjs/social/features/user/Profile/components/Header/hooks/useHeader.js.map +1 -1
  48. package/lib/commonjs/social/features/user/Profile/components/Header/styles.js +2 -0
  49. package/lib/commonjs/social/features/user/Profile/components/Header/styles.js.map +1 -1
  50. package/lib/commonjs/social/features/user/Profile/elements/Menu/hooks/useMenu.js +15 -4
  51. package/lib/commonjs/social/features/user/Profile/elements/Menu/hooks/useMenu.js.map +1 -1
  52. package/lib/commonjs/social/features/visitor/UsageLimit/UsageLimit.js +46 -0
  53. package/lib/commonjs/social/features/visitor/UsageLimit/UsageLimit.js.map +1 -0
  54. package/lib/commonjs/social/features/visitor/UsageLimit/hooks/index.js +13 -0
  55. package/lib/commonjs/social/features/visitor/UsageLimit/hooks/index.js.map +1 -0
  56. package/lib/commonjs/social/features/visitor/UsageLimit/hooks/useUsageLimit.js +54 -0
  57. package/lib/commonjs/social/features/visitor/UsageLimit/hooks/useUsageLimit.js.map +1 -0
  58. package/lib/commonjs/social/features/visitor/UsageLimit/index.js +13 -0
  59. package/lib/commonjs/social/features/visitor/UsageLimit/index.js.map +1 -0
  60. package/lib/commonjs/social/features/visitor/UsageLimit/styles.js +52 -0
  61. package/lib/commonjs/social/features/visitor/UsageLimit/styles.js.map +1 -0
  62. package/lib/commonjs/social/hooks/index.js +22 -0
  63. package/lib/commonjs/social/hooks/index.js.map +1 -1
  64. package/lib/commonjs/social/hooks/useGlobalBehavior.js +44 -0
  65. package/lib/commonjs/social/hooks/useGlobalBehavior.js.map +1 -0
  66. package/lib/commonjs/social/hooks/useInteractionBehavior.js +50 -0
  67. package/lib/commonjs/social/hooks/useInteractionBehavior.js.map +1 -0
  68. package/lib/commonjs/social/hooks/usePostPermission.js +4 -2
  69. package/lib/commonjs/social/hooks/usePostPermission.js.map +1 -1
  70. package/lib/commonjs/social/hooks/useStoryPermission.js +3 -2
  71. package/lib/commonjs/social/hooks/useStoryPermission.js.map +1 -1
  72. package/lib/commonjs/social/providers/BehaviourProvider.js +1 -0
  73. package/lib/commonjs/social/providers/BehaviourProvider.js.map +1 -1
  74. package/lib/commonjs/social/screens/CommunityProfile/components/Header/Header.js +9 -2
  75. package/lib/commonjs/social/screens/CommunityProfile/components/Header/Header.js.map +1 -1
  76. package/lib/commonjs/social/screens/SocialHomePage/index.js +14 -6
  77. package/lib/commonjs/social/screens/SocialHomePage/index.js.map +1 -1
  78. package/lib/commonjs/social/screens/VisitorUsageLimit/VisitorUsageLimit.js +11 -0
  79. package/lib/commonjs/social/screens/VisitorUsageLimit/VisitorUsageLimit.js.map +1 -0
  80. package/lib/commonjs/social/screens/VisitorUsageLimit/index.js +13 -0
  81. package/lib/commonjs/social/screens/VisitorUsageLimit/index.js.map +1 -0
  82. package/lib/module/core/assets/icons/index.js +1 -0
  83. package/lib/module/core/assets/icons/index.js.map +1 -1
  84. package/lib/module/core/assets/icons/visitorLimit.js +19 -0
  85. package/lib/module/core/assets/icons/visitorLimit.js.map +1 -0
  86. package/lib/module/core/constants/index.js +10 -0
  87. package/lib/module/core/constants/index.js.map +1 -1
  88. package/lib/module/core/hooks/useAuth.js +6 -2
  89. package/lib/module/core/hooks/useAuth.js.map +1 -1
  90. package/lib/module/core/providers/AmityUIKitProvider.js.map +1 -1
  91. package/lib/module/core/providers/AuthProvider.js +44 -21
  92. package/lib/module/core/providers/AuthProvider.js.map +1 -1
  93. package/lib/module/core/routes/AmityUIKitNavigator.js +23 -1
  94. package/lib/module/core/routes/AmityUIKitNavigator.js.map +1 -1
  95. package/lib/module/social/components/PollContent/PollOption.js +12 -12
  96. package/lib/module/social/components/PollContent/PollOption.js.map +1 -1
  97. package/lib/module/social/components/PostMenu/index.js +10 -3
  98. package/lib/module/social/components/PostMenu/index.js.map +1 -1
  99. package/lib/module/social/components/Social/CommentList/CommentList.js +6 -1
  100. package/lib/module/social/components/Social/CommentList/CommentList.js.map +1 -1
  101. package/lib/module/social/components/Social/CommentListItem/CommentListItem.js +24 -6
  102. package/lib/module/social/components/Social/CommentListItem/CommentListItem.js.map +1 -1
  103. package/lib/module/social/components/Social/CommentListItem/styles.js +3 -2
  104. package/lib/module/social/components/Social/CommentListItem/styles.js.map +1 -1
  105. package/lib/module/social/components/legacy/Social/ReplyCommentList/index.js +14 -2
  106. package/lib/module/social/components/legacy/Social/ReplyCommentList/index.js.map +1 -1
  107. package/lib/module/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js +7 -2
  108. package/lib/module/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js.map +1 -1
  109. package/lib/module/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js +18 -4
  110. package/lib/module/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js.map +1 -1
  111. package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/index.js +17 -3
  112. package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/index.js.map +1 -1
  113. package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/styles.js +8 -0
  114. package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/styles.js.map +1 -1
  115. package/lib/module/social/features/feed/components/TopNavigation/TopNavigation.js +5 -1
  116. package/lib/module/social/features/feed/components/TopNavigation/TopNavigation.js.map +1 -1
  117. package/lib/module/social/features/livestream/Player/Player.js +9 -6
  118. package/lib/module/social/features/livestream/Player/Player.js.map +1 -1
  119. package/lib/module/social/features/post/Detail/index.js +6 -2
  120. package/lib/module/social/features/post/Detail/index.js.map +1 -1
  121. package/lib/module/social/features/post/components/EngagementActions/Components/DetailStyle.js +17 -11
  122. package/lib/module/social/features/post/components/EngagementActions/Components/DetailStyle.js.map +1 -1
  123. package/lib/module/social/features/post/components/EngagementActions/Components/FeedStyle.js +18 -10
  124. package/lib/module/social/features/post/components/EngagementActions/Components/FeedStyle.js.map +1 -1
  125. package/lib/module/social/features/story/View/components/AmityViewStoryItem.js +20 -22
  126. package/lib/module/social/features/story/View/components/AmityViewStoryItem.js.map +1 -1
  127. package/lib/module/social/features/user/Profile/components/Header/hooks/useHeader.js +29 -20
  128. package/lib/module/social/features/user/Profile/components/Header/hooks/useHeader.js.map +1 -1
  129. package/lib/module/social/features/user/Profile/components/Header/styles.js +2 -0
  130. package/lib/module/social/features/user/Profile/components/Header/styles.js.map +1 -1
  131. package/lib/module/social/features/user/Profile/elements/Menu/hooks/useMenu.js +16 -4
  132. package/lib/module/social/features/user/Profile/elements/Menu/hooks/useMenu.js.map +1 -1
  133. package/lib/module/social/features/visitor/UsageLimit/UsageLimit.js +40 -0
  134. package/lib/module/social/features/visitor/UsageLimit/UsageLimit.js.map +1 -0
  135. package/lib/module/social/features/visitor/UsageLimit/hooks/index.js +2 -0
  136. package/lib/module/social/features/visitor/UsageLimit/hooks/index.js.map +1 -0
  137. package/lib/module/social/features/visitor/UsageLimit/hooks/useUsageLimit.js +47 -0
  138. package/lib/module/social/features/visitor/UsageLimit/hooks/useUsageLimit.js.map +1 -0
  139. package/lib/module/social/features/visitor/UsageLimit/index.js +2 -0
  140. package/lib/module/social/features/visitor/UsageLimit/index.js.map +1 -0
  141. package/lib/module/social/features/visitor/UsageLimit/styles.js +45 -0
  142. package/lib/module/social/features/visitor/UsageLimit/styles.js.map +1 -0
  143. package/lib/module/social/hooks/index.js +2 -0
  144. package/lib/module/social/hooks/index.js.map +1 -1
  145. package/lib/module/social/hooks/useGlobalBehavior.js +36 -0
  146. package/lib/module/social/hooks/useGlobalBehavior.js.map +1 -0
  147. package/lib/module/social/hooks/useInteractionBehavior.js +43 -0
  148. package/lib/module/social/hooks/useInteractionBehavior.js.map +1 -0
  149. package/lib/module/social/hooks/usePostPermission.js +4 -2
  150. package/lib/module/social/hooks/usePostPermission.js.map +1 -1
  151. package/lib/module/social/hooks/useStoryPermission.js +3 -2
  152. package/lib/module/social/hooks/useStoryPermission.js.map +1 -1
  153. package/lib/module/social/providers/BehaviourProvider.js +1 -0
  154. package/lib/module/social/providers/BehaviourProvider.js.map +1 -1
  155. package/lib/module/social/screens/CommunityProfile/components/Header/Header.js +10 -3
  156. package/lib/module/social/screens/CommunityProfile/components/Header/Header.js.map +1 -1
  157. package/lib/module/social/screens/SocialHomePage/index.js +15 -7
  158. package/lib/module/social/screens/SocialHomePage/index.js.map +1 -1
  159. package/lib/module/social/screens/VisitorUsageLimit/VisitorUsageLimit.js +5 -0
  160. package/lib/module/social/screens/VisitorUsageLimit/VisitorUsageLimit.js.map +1 -0
  161. package/lib/module/social/screens/VisitorUsageLimit/index.js +2 -0
  162. package/lib/module/social/screens/VisitorUsageLimit/index.js.map +1 -0
  163. package/lib/typescript/core/assets/icons/index.d.ts +1 -0
  164. package/lib/typescript/core/assets/icons/index.d.ts.map +1 -1
  165. package/lib/typescript/core/assets/icons/visitorLimit.d.ts +3 -0
  166. package/lib/typescript/core/assets/icons/visitorLimit.d.ts.map +1 -0
  167. package/lib/typescript/core/constants/index.d.ts +10 -0
  168. package/lib/typescript/core/constants/index.d.ts.map +1 -1
  169. package/lib/typescript/core/hooks/useAuth.d.ts.map +1 -1
  170. package/lib/typescript/core/providers/AmityUIKitProvider.d.ts +2 -1
  171. package/lib/typescript/core/providers/AmityUIKitProvider.d.ts.map +1 -1
  172. package/lib/typescript/core/providers/AuthProvider.d.ts.map +1 -1
  173. package/lib/typescript/core/routes/AmityUIKitNavigator.d.ts.map +1 -1
  174. package/lib/typescript/core/types/auth.d.ts +2 -0
  175. package/lib/typescript/core/types/auth.d.ts.map +1 -1
  176. package/lib/typescript/core/types/behaviour.d.ts +6 -0
  177. package/lib/typescript/core/types/behaviour.d.ts.map +1 -1
  178. package/lib/typescript/social/components/PollContent/PollOption.d.ts.map +1 -1
  179. package/lib/typescript/social/components/PostMenu/index.d.ts.map +1 -1
  180. package/lib/typescript/social/components/Social/CommentList/CommentList.d.ts.map +1 -1
  181. package/lib/typescript/social/components/Social/CommentListItem/CommentListItem.d.ts.map +1 -1
  182. package/lib/typescript/social/components/Social/CommentListItem/styles.d.ts +2 -1
  183. package/lib/typescript/social/components/Social/CommentListItem/styles.d.ts.map +1 -1
  184. package/lib/typescript/social/components/legacy/Social/ReplyCommentList/index.d.ts.map +1 -1
  185. package/lib/typescript/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.d.ts.map +1 -1
  186. package/lib/typescript/social/features/comment/components/PostComment/CommentListItem/CommentListItem.d.ts.map +1 -1
  187. package/lib/typescript/social/features/comment/components/PostComment/ReplyCommentList/index.d.ts.map +1 -1
  188. package/lib/typescript/social/features/comment/components/PostComment/ReplyCommentList/styles.d.ts +8 -0
  189. package/lib/typescript/social/features/comment/components/PostComment/ReplyCommentList/styles.d.ts.map +1 -1
  190. package/lib/typescript/social/features/feed/components/TopNavigation/TopNavigation.d.ts.map +1 -1
  191. package/lib/typescript/social/features/livestream/Player/Player.d.ts.map +1 -1
  192. package/lib/typescript/social/features/post/Detail/index.d.ts.map +1 -1
  193. package/lib/typescript/social/features/post/components/EngagementActions/Components/DetailStyle.d.ts.map +1 -1
  194. package/lib/typescript/social/features/post/components/EngagementActions/Components/FeedStyle.d.ts.map +1 -1
  195. package/lib/typescript/social/features/story/View/components/AmityViewStoryItem.d.ts.map +1 -1
  196. package/lib/typescript/social/features/user/Profile/components/Header/hooks/useHeader.d.ts +2 -0
  197. package/lib/typescript/social/features/user/Profile/components/Header/hooks/useHeader.d.ts.map +1 -1
  198. package/lib/typescript/social/features/user/Profile/components/Header/styles.d.ts +2 -0
  199. package/lib/typescript/social/features/user/Profile/components/Header/styles.d.ts.map +1 -1
  200. package/lib/typescript/social/features/user/Profile/elements/Menu/hooks/useMenu.d.ts.map +1 -1
  201. package/lib/typescript/social/features/visitor/UsageLimit/UsageLimit.d.ts +2 -0
  202. package/lib/typescript/social/features/visitor/UsageLimit/UsageLimit.d.ts.map +1 -0
  203. package/lib/typescript/social/features/visitor/UsageLimit/hooks/index.d.ts +2 -0
  204. package/lib/typescript/social/features/visitor/UsageLimit/hooks/index.d.ts.map +1 -0
  205. package/lib/typescript/social/features/visitor/UsageLimit/hooks/useUsageLimit.d.ts +40 -0
  206. package/lib/typescript/social/features/visitor/UsageLimit/hooks/useUsageLimit.d.ts.map +1 -0
  207. package/lib/typescript/social/features/visitor/UsageLimit/index.d.ts +2 -0
  208. package/lib/typescript/social/features/visitor/UsageLimit/index.d.ts.map +1 -0
  209. package/lib/typescript/social/features/visitor/UsageLimit/styles.d.ts +40 -0
  210. package/lib/typescript/social/features/visitor/UsageLimit/styles.d.ts.map +1 -0
  211. package/lib/typescript/social/hooks/index.d.ts +2 -0
  212. package/lib/typescript/social/hooks/index.d.ts.map +1 -1
  213. package/lib/typescript/social/hooks/useGlobalBehavior.d.ts +16 -0
  214. package/lib/typescript/social/hooks/useGlobalBehavior.d.ts.map +1 -0
  215. package/lib/typescript/social/hooks/useInteractionBehavior.d.ts +11 -0
  216. package/lib/typescript/social/hooks/useInteractionBehavior.d.ts.map +1 -0
  217. package/lib/typescript/social/hooks/usePostPermission.d.ts.map +1 -1
  218. package/lib/typescript/social/hooks/useStoryPermission.d.ts.map +1 -1
  219. package/lib/typescript/social/providers/BehaviourProvider.d.ts.map +1 -1
  220. package/lib/typescript/social/screens/CommunityProfile/components/Header/Header.d.ts.map +1 -1
  221. package/lib/typescript/social/screens/SocialHomePage/index.d.ts.map +1 -1
  222. package/lib/typescript/social/screens/VisitorUsageLimit/VisitorUsageLimit.d.ts +2 -0
  223. package/lib/typescript/social/screens/VisitorUsageLimit/VisitorUsageLimit.d.ts.map +1 -0
  224. package/lib/typescript/social/screens/VisitorUsageLimit/index.d.ts +2 -0
  225. package/lib/typescript/social/screens/VisitorUsageLimit/index.d.ts.map +1 -0
  226. package/package.json +3 -3
  227. package/src/core/assets/icons/index.ts +1 -0
  228. package/src/core/assets/icons/visitorLimit.tsx +19 -0
  229. package/src/core/constants/index.ts +15 -0
  230. package/src/core/hooks/useAuth.ts +4 -0
  231. package/src/core/providers/AmityUIKitProvider.tsx +2 -1
  232. package/src/core/providers/AuthProvider.tsx +35 -11
  233. package/src/core/routes/AmityUIKitNavigator.tsx +26 -1
  234. package/src/core/types/auth.ts +2 -0
  235. package/src/core/types/behaviour.ts +6 -0
  236. package/src/social/components/PollContent/PollOption.tsx +13 -19
  237. package/src/social/components/PostMenu/index.tsx +6 -3
  238. package/src/social/components/Social/CommentList/CommentList.tsx +4 -1
  239. package/src/social/components/Social/CommentListItem/CommentListItem.tsx +69 -55
  240. package/src/social/components/Social/CommentListItem/styles.ts +2 -1
  241. package/src/social/components/legacy/Social/ReplyCommentList/index.tsx +15 -5
  242. package/src/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.tsx +10 -2
  243. package/src/social/features/comment/components/PostComment/CommentListItem/CommentListItem.tsx +17 -10
  244. package/src/social/features/comment/components/PostComment/ReplyCommentList/index.tsx +15 -5
  245. package/src/social/features/comment/components/PostComment/ReplyCommentList/styles.ts +8 -0
  246. package/src/social/features/feed/components/TopNavigation/TopNavigation.tsx +3 -1
  247. package/src/social/features/livestream/Player/Player.tsx +10 -7
  248. package/src/social/features/post/Detail/index.tsx +5 -2
  249. package/src/social/features/post/components/EngagementActions/Components/DetailStyle.tsx +19 -14
  250. package/src/social/features/post/components/EngagementActions/Components/FeedStyle.tsx +20 -12
  251. package/src/social/features/story/View/components/AmityViewStoryItem.tsx +21 -22
  252. package/src/social/features/user/Profile/components/Header/hooks/useHeader.ts +27 -20
  253. package/src/social/features/user/Profile/components/Header/styles.ts +2 -0
  254. package/src/social/features/user/Profile/elements/Menu/hooks/useMenu.ts +16 -4
  255. package/src/social/features/visitor/UsageLimit/UsageLimit.tsx +43 -0
  256. package/src/social/features/visitor/UsageLimit/hooks/index.ts +1 -0
  257. package/src/social/features/visitor/UsageLimit/hooks/useUsageLimit.ts +46 -0
  258. package/src/social/features/visitor/UsageLimit/index.ts +1 -0
  259. package/src/social/features/visitor/UsageLimit/styles.ts +45 -0
  260. package/src/social/hooks/index.ts +2 -0
  261. package/src/social/hooks/useGlobalBehavior.ts +33 -0
  262. package/src/social/hooks/useInteractionBehavior.ts +47 -0
  263. package/src/social/hooks/usePostPermission.ts +3 -1
  264. package/src/social/hooks/useStoryPermission.ts +8 -6
  265. package/src/social/providers/BehaviourProvider.tsx +1 -0
  266. package/src/social/screens/CommunityProfile/components/Header/Header.tsx +8 -2
  267. package/src/social/screens/SocialHomePage/index.tsx +33 -16
  268. package/src/social/screens/VisitorUsageLimit/VisitorUsageLimit.tsx +5 -0
  269. package/src/social/screens/VisitorUsageLimit/index.ts +1 -0
@@ -1 +1 @@
1
- {"version":3,"file":"CommentListItem.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/comment/components/PostComment/CommentListItem/CommentListItem.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AA+BtC,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,QAAQ,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/D,QAAQ,EAAE,KAAK,CAAC,oBAAoB,CAAC;IACrC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;oJASE,YAAY;AA2df,wBAAqC"}
1
+ {"version":3,"file":"CommentListItem.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/comment/components/PostComment/CommentListItem/CommentListItem.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AA+BtC,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,QAAQ,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/D,QAAQ,EAAE,KAAK,CAAC,oBAAoB,CAAC;IACrC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;oJASE,YAAY;AAkef,wBAAqC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/comment/components/PostComment/ReplyCommentList/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAgBlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAYhE,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;sGAME,iBAAiB;AAuUpB,wBAAsC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/comment/components/PostComment/ReplyCommentList/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAiBlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAYhE,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;sGAME,iBAAiB;AAgVpB,wBAAsC"}
@@ -1,4 +1,12 @@
1
1
  export declare const useStyles: () => {
2
+ handleBar: {
3
+ alignSelf: "center";
4
+ width: number;
5
+ backgroundColor: string;
6
+ height: number;
7
+ marginVertical: number;
8
+ borderRadius: number;
9
+ };
2
10
  commentWrap: {
3
11
  backgroundColor: string;
4
12
  paddingHorizontal: number;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/comment/components/PostComment/ReplyCommentList/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqKrB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/comment/components/PostComment/ReplyCommentList/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6KrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TopNavigation.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/features/feed/components/TopNavigation/TopNavigation.tsx"],"names":[],"mappings":"AAkBA,KAAK,yCAAyC,GAAG;IAC/C,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;;AAoLF,wBAA2D"}
1
+ {"version":3,"file":"TopNavigation.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/features/feed/components/TopNavigation/TopNavigation.tsx"],"names":[],"mappings":"AAmBA,KAAK,yCAAyC,GAAG;IAC/C,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;;AAqLF,wBAA2D"}
@@ -1 +1 @@
1
- {"version":3,"file":"Player.d.ts","sourceRoot":"","sources":["../../../../../../src/social/features/livestream/Player/Player.tsx"],"names":[],"mappings":"AAgCA,iBAAS,yBAAyB,4CAqRjC;AAED,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"Player.d.ts","sourceRoot":"","sources":["../../../../../../src/social/features/livestream/Player/Player.tsx"],"names":[],"mappings":"AAgCA,iBAAS,yBAAyB,4CAwRjC;AAED,eAAe,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/social/features/post/Detail/index.tsx"],"names":[],"mappings":"AAgCA,OAAO,EACL,iBAAiB,EAElB,MAAM,+CAA+C,CAAC;AAuBvD,KAAK,uBAAuB,GAAG;IAC7B,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;;AAuWF,wBAAyC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/social/features/post/Detail/index.tsx"],"names":[],"mappings":"AAgCA,OAAO,EACL,iBAAiB,EAElB,MAAM,+CAA+C,CAAC;AAwBvD,KAAK,uBAAuB,GAAG;IAC7B,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;;AAyWF,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DetailStyle.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/post/components/EngagementActions/Components/DetailStyle.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,0CAA0C,EAAE,MAAM,QAAQ,CAAC;;AAsLpE,wBAAiC"}
1
+ {"version":3,"file":"DetailStyle.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/post/components/EngagementActions/Components/DetailStyle.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,0CAA0C,EAAE,MAAM,QAAQ,CAAC;;AA2LpE,wBAAiC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FeedStyle.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/post/components/EngagementActions/Components/FeedStyle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,0CAA0C,EAAE,MAAM,QAAQ,CAAC;;AAmJpE,wBAA+B"}
1
+ {"version":3,"file":"FeedStyle.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/post/components/EngagementActions/Components/FeedStyle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,0CAA0C,EAAE,MAAM,QAAQ,CAAC;;AA2JpE,wBAA+B"}
@@ -1 +1 @@
1
- {"version":3,"file":"AmityViewStoryItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/features/story/View/components/AmityViewStoryItem.tsx"],"names":[],"mappings":"AAmCA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAejE,UAAU,mBAAmB;IAC3B,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,4BAA4B,EAAE,OAAO,CAAC;IACtC,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED,UAAU,UAAW,SAAQ,KAAK,CAAC,KAAK;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;;AAsmBD,wBAAwC"}
1
+ {"version":3,"file":"AmityViewStoryItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/features/story/View/components/AmityViewStoryItem.tsx"],"names":[],"mappings":"AAuCA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAgBjE,UAAU,mBAAmB;IAC3B,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,4BAA4B,EAAE,OAAO,CAAC;IACtC,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED,UAAU,UAAW,SAAQ,KAAK,CAAC,KAAK;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;;AAgmBD,wBAAwC"}
@@ -35,6 +35,8 @@ export declare function useHeader(user?: Amity.User): {
35
35
  };
36
36
  hiddenText: {
37
37
  position: "absolute";
38
+ left: number;
39
+ right: number;
38
40
  opacity: number;
39
41
  };
40
42
  seeMore: {
@@ -1 +1 @@
1
- {"version":3,"file":"useHeader.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/social/features/user/Profile/components/Header/hooks/useHeader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAW9D,wBAAgB,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAuEhB,eAAe;;aAVjC,MAAM;cACL,MAAM;;;kCA4BuB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiDzD"}
1
+ {"version":3,"file":"useHeader.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/social/features/user/Profile/components/Header/hooks/useHeader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAW9D,wBAAgB,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA0EhB,eAAe;;aAVjC,MAAM;cACL,MAAM;;;kCA4BuB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqDzD"}
@@ -39,6 +39,8 @@ export declare const useStyles: (params?: StyleParams) => {
39
39
  };
40
40
  hiddenText: {
41
41
  position: "absolute";
42
+ left: number;
43
+ right: number;
42
44
  opacity: number;
43
45
  };
44
46
  seeMore: {
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/user/Profile/components/Header/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qDAAqD,CAAC;AAEjF,KAAK,WAAW,GAAG;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,SAAQ,WAIP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEF,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/user/Profile/components/Header/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qDAAqD,CAAC;AAEjF,KAAK,WAAW,GAAG;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,SAAQ,WAIP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMenu.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/social/features/user/Profile/elements/Menu/hooks/useMenu.ts"],"names":[],"mappings":"AAoBA,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;EAwH7D"}
1
+ {"version":3,"file":"useMenu.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/social/features/user/Profile/elements/Menu/hooks/useMenu.ts"],"names":[],"mappings":"AAqBA,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;EAmI7D"}
@@ -0,0 +1,2 @@
1
+ export declare function UsageLimit(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=UsageLimit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UsageLimit.d.ts","sourceRoot":"","sources":["../../../../../../src/social/features/visitor/UsageLimit/UsageLimit.tsx"],"names":[],"mappings":"AAQA,wBAAgB,UAAU,4CAkCzB"}
@@ -0,0 +1,2 @@
1
+ export { useUsageLimit } from './useUsageLimit';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/features/visitor/UsageLimit/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,40 @@
1
+ export declare const useUsageLimit: () => {
2
+ styles: {
3
+ container: {
4
+ flex: number;
5
+ backgroundColor: string;
6
+ };
7
+ contentContainer: {
8
+ flex: number;
9
+ alignItems: "center";
10
+ paddingHorizontal: number;
11
+ flexDirection: "column";
12
+ justifyContent: "center";
13
+ };
14
+ icon: {
15
+ marginBottom: number;
16
+ };
17
+ title: {
18
+ maxWidth: number;
19
+ textAlign: "center";
20
+ color: string;
21
+ };
22
+ subtitle: {
23
+ maxWidth: number;
24
+ textAlign: "center";
25
+ color: string;
26
+ };
27
+ signInButton: {
28
+ marginTop: number;
29
+ borderRadius: number;
30
+ paddingVertical: number;
31
+ paddingHorizontal: number;
32
+ };
33
+ signInText: {
34
+ color: string;
35
+ };
36
+ };
37
+ theme: import("../../../../../core/providers/AmityUIKitProvider").MyMD3Theme;
38
+ onPressSignIn: () => void;
39
+ };
40
+ //# sourceMappingURL=useUsageLimit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUsageLimit.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/features/visitor/UsageLimit/hooks/useUsageLimit.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { UsageLimit } from './UsageLimit';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/social/features/visitor/UsageLimit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { MyMD3Theme } from '../../../../core/providers/AmityUIKitProvider';
2
+ export declare const useStyles: () => {
3
+ styles: {
4
+ container: {
5
+ flex: number;
6
+ backgroundColor: string;
7
+ };
8
+ contentContainer: {
9
+ flex: number;
10
+ alignItems: "center";
11
+ paddingHorizontal: number;
12
+ flexDirection: "column";
13
+ justifyContent: "center";
14
+ };
15
+ icon: {
16
+ marginBottom: number;
17
+ };
18
+ title: {
19
+ maxWidth: number;
20
+ textAlign: "center";
21
+ color: string;
22
+ };
23
+ subtitle: {
24
+ maxWidth: number;
25
+ textAlign: "center";
26
+ color: string;
27
+ };
28
+ signInButton: {
29
+ marginTop: number;
30
+ borderRadius: number;
31
+ paddingVertical: number;
32
+ paddingHorizontal: number;
33
+ };
34
+ signInText: {
35
+ color: string;
36
+ };
37
+ };
38
+ theme: MyMD3Theme;
39
+ };
40
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/social/features/visitor/UsageLimit/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAEhF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCrB,CAAC"}
@@ -35,4 +35,6 @@ export * from './usePostSubscription';
35
35
  export * from './useRoomSubscription';
36
36
  export * from './queries/useFlagPost';
37
37
  export * from './queries/useClosePoll';
38
+ export * from './useGlobalBehavior';
39
+ export * from './useInteractionBehavior';
38
40
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uDAAuD,CAAC;AACtE,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uDAAuD,CAAC;AACtE,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,16 @@
1
+ export declare const useGlobalBehavior: () => {
2
+ handleGlobalBehavior: ({ defaultBehavior }: {
3
+ defaultBehavior?: () => void;
4
+ }) => void | {
5
+ payload: {
6
+ visible?: boolean;
7
+ message: string;
8
+ type: "failed" | "success" | "informative" | "loading";
9
+ duration?: number;
10
+ bottomPosition?: number;
11
+ };
12
+ type: "toast/showToast";
13
+ };
14
+ isVisitorOrBot: boolean;
15
+ };
16
+ //# sourceMappingURL=useGlobalBehavior.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGlobalBehavior.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/useGlobalBehavior.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,iBAAiB;gDAMJ;QAAE,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE;;;;;;;;;;;CAiBzD,CAAC"}
@@ -0,0 +1,11 @@
1
+ type HandleInteractionParams = {
2
+ defaultBehavior?: () => void;
3
+ allowNonMember?: boolean;
4
+ isJoined?: boolean;
5
+ };
6
+ export declare const useInteractionBehavior: () => {
7
+ handleInteraction: ({ defaultBehavior, allowNonMember, isJoined, }: HandleInteractionParams) => void;
8
+ isVisitorOrBot: boolean;
9
+ };
10
+ export {};
11
+ //# sourceMappingURL=useInteractionBehavior.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInteractionBehavior.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/useInteractionBehavior.ts"],"names":[],"mappings":"AASA,KAAK,uBAAuB,GAAG;IAC7B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,sBAAsB;wEAU5B,uBAAuB;;CAqB7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePostPermission.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/usePostPermission.ts"],"names":[],"mappings":"AASA,KAAK,uBAAuB,GAAG;IAC7B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,EAAE,uBAAuB,WAiCvE"}
1
+ {"version":3,"file":"usePostPermission.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/usePostPermission.ts"],"names":[],"mappings":"AASA,KAAK,uBAAuB,GAAG;IAC7B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,EAAE,uBAAuB,WAmCvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"useStoryPermission.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/useStoryPermission.ts"],"names":[],"mappings":"AAKA,wBAAgB,kBAAkB,CAAC,WAAW,CAAC,EAAE,MAAM;;EActD"}
1
+ {"version":3,"file":"useStoryPermission.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/useStoryPermission.ts"],"names":[],"mappings":"AAKA,wBAAgB,kBAAkB,CAAC,WAAW,CAAC,EAAE,MAAM;;EAgBtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"BehaviourProvider.d.ts","sourceRoot":"","sources":["../../../../src/social/providers/BehaviourProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsC,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAIxD,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,iBAAiB,GAAI,0BAG/B,uBAAuB,4CA4CzB,CAAC;AAEF,eAAO,MAAM,YAAY,kBAMxB,CAAC"}
1
+ {"version":3,"file":"BehaviourProvider.d.ts","sourceRoot":"","sources":["../../../../src/social/providers/BehaviourProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsC,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAIxD,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,iBAAiB,GAAI,0BAG/B,uBAAuB,4CA6CzB,CAAC;AAEF,eAAO,MAAM,YAAY,kBAMxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/screens/CommunityProfile/components/Header/Header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAe,MAAM,EAAE,MAAM,mBAAmB,CAAC;AA0BxD,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,kCAAkC,GAAG;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;;AAiKF,wBAAmD"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/screens/CommunityProfile/components/Header/Header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAe,MAAM,EAAE,MAAM,mBAAmB,CAAC;AA2BxD,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,kCAAkC,GAAG;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;;AAsKF,wBAAmD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/screens/SocialHomePage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;;AAgI/B,wBAA+C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/screens/SocialHomePage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;;AAiJ/B,wBAA+C"}
@@ -0,0 +1,2 @@
1
+ export declare function VisitorUsageLimit(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=VisitorUsageLimit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisitorUsageLimit.d.ts","sourceRoot":"","sources":["../../../../../src/social/screens/VisitorUsageLimit/VisitorUsageLimit.tsx"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,4CAEhC"}
@@ -0,0 +1,2 @@
1
+ export { VisitorUsageLimit } from './VisitorUsageLimit';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/screens/VisitorUsageLimit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/react-native-social-uikit",
3
- "version": "4.0.2-f1fd1fbd.0",
3
+ "version": "4.1.0",
4
4
  "description": "Social UIKit",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -57,7 +57,7 @@
57
57
  "registry": "https://registry.npmjs.org/"
58
58
  },
59
59
  "devDependencies": {
60
- "@amityco/ts-sdk-react-native": "7.18.1-72bd324a.0",
60
+ "@amityco/ts-sdk-react-native": "^7.23.0",
61
61
  "@babel/plugin-transform-export-namespace-from": "^7.27.1",
62
62
  "@commitlint/config-conventional": "^17.0.2",
63
63
  "@evilmartians/lefthook": "^1.2.2",
@@ -119,7 +119,7 @@
119
119
  "@types/react": "^19.1.0"
120
120
  },
121
121
  "peerDependencies": {
122
- "@amityco/ts-sdk-react-native": "7.18.1-72bd324a.0",
122
+ "@amityco/ts-sdk-react-native": "^7.23.0",
123
123
  "@livekit/react-native": "^2.9.6",
124
124
  "@livekit/react-native-webrtc": "^137.0.2",
125
125
  "@react-native-async-storage/async-storage": "^1.19.3",
@@ -34,6 +34,7 @@ export { default as pause } from './pause';
34
34
  export { default as resume } from './resume';
35
35
  export { default as terminated } from './terminated';
36
36
  export { default as warning } from './warning';
37
+ export { default as visitorLimit } from './visitorLimit';
37
38
  export { default as ban } from './ban';
38
39
  export { default as arrowLeft } from './arrowLeft';
39
40
  export { default as poll } from './poll';
@@ -0,0 +1,19 @@
1
+ export const icon = () => `<svg
2
+ width="100%"
3
+ height="100%"
4
+ viewBox="0 0 60 40"
5
+ fill="none"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ >
8
+ <path
9
+ d="M57.5 0C58.8542 0 60 1.14583 60 2.5V37.5C60 38.9583 58.8542 40 57.5 40H5C2.1875 40 0 37.8125 0 35V5.83333C0 4.47917 1.04167 3.33333 2.5 3.33333H6.66667V2.5C6.66667 1.14583 7.70833 0 9.16667 0H57.5ZM3.33333 35C3.33333 35.9375 4.0625 36.6667 5 36.6667C5.83333 36.6667 6.66667 35.9375 6.66667 35V6.66667H3.33333V35ZM56.6667 36.6667V3.33333H10V35V35.1042C10 35.5208 9.79167 36.25 9.6875 36.6667H56.6667Z"
10
+ fill="currentColor"
11
+ />
12
+ <path
13
+ d="M36.0494 25.4322C36.0494 26.8211 34.9383 27.9013 33.5803 27.9013C32.1914 27.9013 31.1111 26.8211 31.1111 25.4322C31.1111 24.0742 32.1914 22.9631 33.5803 22.9631C34.9383 22.9631 36.0494 24.0742 36.0494 25.4322ZM31.3889 12.9013C31.358 12.4692 31.6975 12.0989 32.1296 12.0989H35C35.4321 12.0989 35.7716 12.4692 35.7407 12.9013L35.3395 21.2964C35.3086 21.6668 34.9691 21.9754 34.5988 21.9754H32.5309C32.1605 21.9754 31.821 21.6668 31.7901 21.2964L31.3889 12.9013Z"
14
+ fill="currentColor"
15
+ />
16
+ </svg>
17
+ `;
18
+
19
+ export default icon;
@@ -88,11 +88,26 @@ export const ERROR_CODE = {
88
88
  ONLY_ONE_MODERATOR: '400317',
89
89
  ONLY_ONE_MEMBER: '400318',
90
90
  GLOBAL_BAN: '400312',
91
+ VISITOR_USAGE_LIMIT_EXCEEDED: '400323',
91
92
  INVALID_IMAGE:
92
93
  'Amity SDK (500000): Image uploading failed: Request has invalid image format',
93
94
  DISPLAY_NAME_UPDATE: '400301',
94
95
  };
95
96
 
97
+ export const VISITOR_USAGE_LIMIT_MESSAGE = {
98
+ TITLE: "You've reached your daily limit.",
99
+ SUBTITLE: 'Create an account or sign in to keep exploring the community.',
100
+ SIGN_IN: 'Sign in',
101
+ TOAST: 'Create an account or sign in to continue.',
102
+ };
103
+
104
+ export const VISITOR_USER_ACTION_TOAST =
105
+ 'Create an account or sign in to continue.';
106
+
107
+ export const NON_MEMBER_ACTION_TOAST = 'Join community to interact.';
108
+
109
+ export const VISITOR_TOAST_DURATION = 3000;
110
+
96
111
  export const COMMENT_ERROR_MESSAGE = {
97
112
  BLOCKED_WORD:
98
113
  'Your comment contains inappropriate word. Please review and delete it.',
@@ -14,6 +14,8 @@ const useAuth = (): AuthContextInterface => {
14
14
  sessionState,
15
15
  apiRegion,
16
16
  isGlobalBan,
17
+ isVisitorUsageLimitReached,
18
+ isVisitorOrBot,
17
19
  } = useContext(AuthContext);
18
20
 
19
21
  return {
@@ -26,6 +28,8 @@ const useAuth = (): AuthContextInterface => {
26
28
  sessionState,
27
29
  apiRegion,
28
30
  isGlobalBan,
31
+ isVisitorUsageLimitReached,
32
+ isVisitorOrBot,
29
33
  };
30
34
  };
31
35
 
@@ -21,7 +21,8 @@ import { ErrorBoundary } from '../components/ErrorBoundary';
21
21
 
22
22
  export type CusTomTheme = typeof DefaultTheme;
23
23
  export interface IAmityUIkitProvider {
24
- userId: string;
24
+ /** Omit to connect as a visitor (read-only session). */
25
+ userId?: string;
25
26
  displayName?: string;
26
27
  apiKey: string;
27
28
  apiRegion?: string;
@@ -24,6 +24,8 @@ export const AuthContext = createContext<AuthContextInterface>({
24
24
  authToken: '',
25
25
  fcmToken: undefined,
26
26
  isGlobalBan: false,
27
+ isVisitorUsageLimitReached: false,
28
+ isVisitorOrBot: false,
27
29
  });
28
30
 
29
31
  export const AuthContextProvider: FC<IAmityUIkitProvider> = ({
@@ -44,6 +46,9 @@ export const AuthContextProvider: FC<IAmityUIkitProvider> = ({
44
46
  apiEndpoint: { http: apiEndpoint },
45
47
  });
46
48
  const [isGlobalBan, setIsGlobalBan] = useState(false);
49
+ const [isVisitorUsageLimitReached, setIsVisitorUsageLimitReached] =
50
+ useState(false);
51
+ const [isVisitorOrBot, setIsVisitorOrBot] = useState(false);
47
52
 
48
53
  const sessionHandler: Amity.SessionHandler = {
49
54
  sessionWillRenewAccessToken(renewal) {
@@ -64,28 +69,43 @@ export const AuthContextProvider: FC<IAmityUIkitProvider> = ({
64
69
  if (sessionState === 'established') {
65
70
  setIsConnected(true);
66
71
  onSdkReady();
72
+ setIsVisitorOrBot(Client.getCurrentUserType() !== 'signed-in');
67
73
  }
68
74
  }, [sessionState]);
69
75
 
70
- const handleConnect = useCallback(async () => {
71
- let loginParam;
76
+ useEffect(() => {
77
+ const unsubscribe = Client.onVisitorUsageLimitReached(() => {
78
+ setIsVisitorUsageLimitReached(true);
79
+ });
72
80
 
73
- // Spec: omit displayName entirely when blank — do not substitute userId
74
- loginParam = { userId: userId };
75
- if (displayName) loginParam = { ...loginParam, displayName };
76
- if (authToken?.length > 0) {
77
- loginParam = { ...loginParam, authToken: authToken };
78
- }
81
+ return () => {
82
+ unsubscribe();
83
+ };
84
+ }, []);
85
+
86
+ const handleConnect = useCallback(async () => {
79
87
  try {
80
- const response = await Client.login(loginParam, sessionHandler);
81
- if (!response) return;
88
+ if (userId) {
89
+ // Spec: omit displayName entirely when blank — do not substitute userId
90
+ let loginParam: Amity.ConnectClientParams = { userId: userId };
91
+ if (displayName) loginParam = { ...loginParam, displayName };
92
+ if (authToken?.length > 0) {
93
+ loginParam = { ...loginParam, authToken: authToken };
94
+ }
95
+ const response = await Client.login(loginParam, sessionHandler);
96
+ if (!response) return;
97
+ } else {
98
+ const response = await Client.loginAsVisitor({ sessionHandler });
99
+ if (!response) return;
100
+ }
82
101
  } catch (err) {
83
102
  if (err?.message?.includes(ERROR_CODE.GLOBAL_BAN)) {
84
103
  setIsGlobalBan(true);
85
104
  }
86
105
  }
87
106
 
88
- if (fcmToken) {
107
+ // Visitors/bots are GET-only with no MQTT — skip push registration for them.
108
+ if (fcmToken && userId) {
89
109
  try {
90
110
  await Client.registerPushNotification(fcmToken);
91
111
  } catch (err) {
@@ -109,7 +129,9 @@ export const AuthContextProvider: FC<IAmityUIkitProvider> = ({
109
129
  setLoading(false);
110
130
  }
111
131
  };
132
+
112
133
  useEffect(() => {
134
+ setIsVisitorUsageLimitReached(false);
113
135
  login();
114
136
  }, [userId]);
115
137
 
@@ -137,6 +159,8 @@ export const AuthContextProvider: FC<IAmityUIkitProvider> = ({
137
159
  sessionState,
138
160
  apiRegion: apiRegion.toLowerCase(),
139
161
  isGlobalBan,
162
+ isVisitorUsageLimitReached,
163
+ isVisitorOrBot,
140
164
  }}
141
165
  >
142
166
  {children}
@@ -1,3 +1,4 @@
1
+ import { useEffect, useRef } from 'react';
1
2
  import {
2
3
  NavigationContainer,
3
4
  NavigationIndependentTree,
@@ -43,6 +44,8 @@ import { CommunityStoriesNotificationSettingScreen } from '../../social/screens/
43
44
  import { CommunityLivestreamsNotificationSettingScreen } from '../../social/screens/CommunityLivestreamsNotificationSetting';
44
45
  import CommunityPendingRequest from '../../social/screens/CommunityPendingRequest';
45
46
  import { GlobalBan } from '../../social/screens/GlobalBan';
47
+ import { VisitorUsageLimit } from '../../social/screens/VisitorUsageLimit';
48
+ import { useBehaviour } from '../../social/providers/BehaviourProvider';
46
49
  import {
47
50
  ImageViewerScreen,
48
51
  VideoPlayerScreen,
@@ -60,10 +63,32 @@ const Stack = createNativeStackNavigator<
60
63
 
61
64
  export default function AmitySocialUIKitV4Navigator() {
62
65
  const theme = useTheme<MyMD3Theme>();
63
- const { isGlobalBan } = useAuth();
66
+ const { isGlobalBan, isVisitorUsageLimitReached } = useAuth();
67
+ const { AmityGlobalBehaviour } = useBehaviour();
68
+
69
+ const handleVisitorUsageLimitReached =
70
+ AmityGlobalBehaviour?.handleVisitorUsageLimitReached;
71
+
72
+ const hasHandledUsageLimit = useRef(false);
73
+
74
+ useEffect(() => {
75
+ if (!isVisitorUsageLimitReached) {
76
+ hasHandledUsageLimit.current = false;
77
+ return;
78
+ }
79
+
80
+ if (handleVisitorUsageLimitReached && !hasHandledUsageLimit.current) {
81
+ hasHandledUsageLimit.current = true;
82
+ handleVisitorUsageLimitReached();
83
+ }
84
+ }, [isVisitorUsageLimitReached, handleVisitorUsageLimitReached]);
64
85
 
65
86
  if (isGlobalBan) return <GlobalBan />;
66
87
 
88
+ if (isVisitorUsageLimitReached && !handleVisitorUsageLimitReached) {
89
+ return <VisitorUsageLimit />;
90
+ }
91
+
67
92
  return (
68
93
  <NavigationIndependentTree>
69
94
  <NavigationContainer ref={navigationRef} onReady={onNavigationReady}>
@@ -10,4 +10,6 @@ export type AuthContextInterface = {
10
10
  authToken?: string;
11
11
  fcmToken?: string;
12
12
  isGlobalBan: boolean;
13
+ isVisitorUsageLimitReached: boolean;
14
+ isVisitorOrBot: boolean;
13
15
  };
@@ -17,6 +17,12 @@ export type CommunitySettingPageContext = {
17
17
  };
18
18
 
19
19
  export interface IBehaviour {
20
+ AmityGlobalBehaviour?: {
21
+ handleVisitorUserAction?: () => void;
22
+ handleNonMemberAction?: () => void;
23
+ handleVisitorUsageLimitReached?: () => void;
24
+ handleVisitorUsageLimitSignIn?: () => void;
25
+ };
20
26
  AmitySocialHomePageBehaviour?: {
21
27
  onChooseTab?: (arg?: string) => void;
22
28
  };