@amityco/react-native-social-uikit 4.0.0 → 4.0.1-03923ef4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/core/assets/icons/index.js +8 -0
- package/lib/commonjs/core/assets/icons/index.js.map +1 -1
- package/lib/commonjs/core/assets/icons/visitorLimit.js +26 -0
- package/lib/commonjs/core/assets/icons/visitorLimit.js.map +1 -0
- package/lib/commonjs/core/constants/index.js +11 -1
- package/lib/commonjs/core/constants/index.js.map +1 -1
- package/lib/commonjs/core/hooks/useAuth.js +6 -2
- package/lib/commonjs/core/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/core/providers/AmityUIKitProvider.js.map +1 -1
- package/lib/commonjs/core/providers/AuthProvider.js +40 -16
- package/lib/commonjs/core/providers/AuthProvider.js.map +1 -1
- package/lib/commonjs/core/routes/AmityUIKitNavigator.js +23 -1
- package/lib/commonjs/core/routes/AmityUIKitNavigator.js.map +1 -1
- package/lib/commonjs/social/components/PollContent/PollOption.js +12 -12
- package/lib/commonjs/social/components/PollContent/PollOption.js.map +1 -1
- package/lib/commonjs/social/components/PostMenu/index.js +9 -2
- package/lib/commonjs/social/components/PostMenu/index.js.map +1 -1
- package/lib/commonjs/social/components/Social/CommentList/CommentList.js +6 -1
- package/lib/commonjs/social/components/Social/CommentList/CommentList.js.map +1 -1
- package/lib/commonjs/social/components/Social/CommentListItem/CommentListItem.js +24 -6
- package/lib/commonjs/social/components/Social/CommentListItem/CommentListItem.js.map +1 -1
- package/lib/commonjs/social/components/Social/CommentListItem/styles.js +3 -2
- package/lib/commonjs/social/components/Social/CommentListItem/styles.js.map +1 -1
- package/lib/commonjs/social/components/legacy/Social/ReplyCommentList/index.js +14 -2
- package/lib/commonjs/social/components/legacy/Social/ReplyCommentList/index.js.map +1 -1
- package/lib/commonjs/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js +6 -1
- package/lib/commonjs/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js.map +1 -1
- package/lib/commonjs/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js +17 -3
- package/lib/commonjs/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js.map +1 -1
- package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/index.js +17 -3
- package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/index.js.map +1 -1
- package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/styles.js +8 -0
- package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/styles.js.map +1 -1
- package/lib/commonjs/social/features/feed/components/TopNavigation/TopNavigation.js +5 -1
- package/lib/commonjs/social/features/feed/components/TopNavigation/TopNavigation.js.map +1 -1
- package/lib/commonjs/social/features/livestream/Player/Player.js +9 -6
- package/lib/commonjs/social/features/livestream/Player/Player.js.map +1 -1
- package/lib/commonjs/social/features/post/Detail/index.js +6 -2
- package/lib/commonjs/social/features/post/Detail/index.js.map +1 -1
- package/lib/commonjs/social/features/post/components/EngagementActions/Components/DetailStyle.js +16 -10
- package/lib/commonjs/social/features/post/components/EngagementActions/Components/DetailStyle.js.map +1 -1
- package/lib/commonjs/social/features/post/components/EngagementActions/Components/FeedStyle.js +17 -9
- package/lib/commonjs/social/features/post/components/EngagementActions/Components/FeedStyle.js.map +1 -1
- package/lib/commonjs/social/features/story/View/components/AmityViewStoryItem.js +19 -21
- package/lib/commonjs/social/features/story/View/components/AmityViewStoryItem.js.map +1 -1
- package/lib/commonjs/social/features/user/Profile/components/Header/hooks/useHeader.js +28 -19
- package/lib/commonjs/social/features/user/Profile/components/Header/hooks/useHeader.js.map +1 -1
- package/lib/commonjs/social/features/user/Profile/components/Header/styles.js +2 -0
- package/lib/commonjs/social/features/user/Profile/components/Header/styles.js.map +1 -1
- package/lib/commonjs/social/features/user/Profile/elements/Menu/hooks/useMenu.js +15 -4
- package/lib/commonjs/social/features/user/Profile/elements/Menu/hooks/useMenu.js.map +1 -1
- package/lib/commonjs/social/features/visitor/UsageLimit/UsageLimit.js +46 -0
- package/lib/commonjs/social/features/visitor/UsageLimit/UsageLimit.js.map +1 -0
- package/lib/commonjs/social/features/visitor/UsageLimit/hooks/index.js +13 -0
- package/lib/commonjs/social/features/visitor/UsageLimit/hooks/index.js.map +1 -0
- package/lib/commonjs/social/features/visitor/UsageLimit/hooks/useUsageLimit.js +54 -0
- package/lib/commonjs/social/features/visitor/UsageLimit/hooks/useUsageLimit.js.map +1 -0
- package/lib/commonjs/social/features/visitor/UsageLimit/index.js +13 -0
- package/lib/commonjs/social/features/visitor/UsageLimit/index.js.map +1 -0
- package/lib/commonjs/social/features/visitor/UsageLimit/styles.js +52 -0
- package/lib/commonjs/social/features/visitor/UsageLimit/styles.js.map +1 -0
- package/lib/commonjs/social/hooks/index.js +22 -0
- package/lib/commonjs/social/hooks/index.js.map +1 -1
- package/lib/commonjs/social/hooks/useGlobalBehavior.js +44 -0
- package/lib/commonjs/social/hooks/useGlobalBehavior.js.map +1 -0
- package/lib/commonjs/social/hooks/useInteractionBehavior.js +50 -0
- package/lib/commonjs/social/hooks/useInteractionBehavior.js.map +1 -0
- package/lib/commonjs/social/hooks/usePostPermission.js +4 -2
- package/lib/commonjs/social/hooks/usePostPermission.js.map +1 -1
- package/lib/commonjs/social/hooks/useStoryPermission.js +3 -2
- package/lib/commonjs/social/hooks/useStoryPermission.js.map +1 -1
- package/lib/commonjs/social/providers/BehaviourProvider.js +1 -0
- package/lib/commonjs/social/providers/BehaviourProvider.js.map +1 -1
- package/lib/commonjs/social/screens/CommunityProfile/components/Header/Header.js +9 -2
- package/lib/commonjs/social/screens/CommunityProfile/components/Header/Header.js.map +1 -1
- package/lib/commonjs/social/screens/SocialHomePage/index.js +14 -6
- package/lib/commonjs/social/screens/SocialHomePage/index.js.map +1 -1
- package/lib/commonjs/social/screens/VisitorUsageLimit/VisitorUsageLimit.js +11 -0
- package/lib/commonjs/social/screens/VisitorUsageLimit/VisitorUsageLimit.js.map +1 -0
- package/lib/commonjs/social/screens/VisitorUsageLimit/index.js +13 -0
- package/lib/commonjs/social/screens/VisitorUsageLimit/index.js.map +1 -0
- package/lib/module/core/assets/icons/index.js +1 -0
- package/lib/module/core/assets/icons/index.js.map +1 -1
- package/lib/module/core/assets/icons/visitorLimit.js +19 -0
- package/lib/module/core/assets/icons/visitorLimit.js.map +1 -0
- package/lib/module/core/constants/index.js +10 -0
- package/lib/module/core/constants/index.js.map +1 -1
- package/lib/module/core/hooks/useAuth.js +6 -2
- package/lib/module/core/hooks/useAuth.js.map +1 -1
- package/lib/module/core/providers/AmityUIKitProvider.js.map +1 -1
- package/lib/module/core/providers/AuthProvider.js +40 -16
- package/lib/module/core/providers/AuthProvider.js.map +1 -1
- package/lib/module/core/routes/AmityUIKitNavigator.js +23 -1
- package/lib/module/core/routes/AmityUIKitNavigator.js.map +1 -1
- package/lib/module/social/components/PollContent/PollOption.js +12 -12
- package/lib/module/social/components/PollContent/PollOption.js.map +1 -1
- package/lib/module/social/components/PostMenu/index.js +10 -3
- package/lib/module/social/components/PostMenu/index.js.map +1 -1
- package/lib/module/social/components/Social/CommentList/CommentList.js +6 -1
- package/lib/module/social/components/Social/CommentList/CommentList.js.map +1 -1
- package/lib/module/social/components/Social/CommentListItem/CommentListItem.js +24 -6
- package/lib/module/social/components/Social/CommentListItem/CommentListItem.js.map +1 -1
- package/lib/module/social/components/Social/CommentListItem/styles.js +3 -2
- package/lib/module/social/components/Social/CommentListItem/styles.js.map +1 -1
- package/lib/module/social/components/legacy/Social/ReplyCommentList/index.js +14 -2
- package/lib/module/social/components/legacy/Social/ReplyCommentList/index.js.map +1 -1
- package/lib/module/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js +7 -2
- package/lib/module/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js.map +1 -1
- package/lib/module/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js +18 -4
- package/lib/module/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js.map +1 -1
- package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/index.js +17 -3
- package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/index.js.map +1 -1
- package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/styles.js +8 -0
- package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/styles.js.map +1 -1
- package/lib/module/social/features/feed/components/TopNavigation/TopNavigation.js +5 -1
- package/lib/module/social/features/feed/components/TopNavigation/TopNavigation.js.map +1 -1
- package/lib/module/social/features/livestream/Player/Player.js +9 -6
- package/lib/module/social/features/livestream/Player/Player.js.map +1 -1
- package/lib/module/social/features/post/Detail/index.js +6 -2
- package/lib/module/social/features/post/Detail/index.js.map +1 -1
- package/lib/module/social/features/post/components/EngagementActions/Components/DetailStyle.js +17 -11
- package/lib/module/social/features/post/components/EngagementActions/Components/DetailStyle.js.map +1 -1
- package/lib/module/social/features/post/components/EngagementActions/Components/FeedStyle.js +18 -10
- package/lib/module/social/features/post/components/EngagementActions/Components/FeedStyle.js.map +1 -1
- package/lib/module/social/features/story/View/components/AmityViewStoryItem.js +20 -22
- package/lib/module/social/features/story/View/components/AmityViewStoryItem.js.map +1 -1
- package/lib/module/social/features/user/Profile/components/Header/hooks/useHeader.js +29 -20
- package/lib/module/social/features/user/Profile/components/Header/hooks/useHeader.js.map +1 -1
- package/lib/module/social/features/user/Profile/components/Header/styles.js +2 -0
- package/lib/module/social/features/user/Profile/components/Header/styles.js.map +1 -1
- package/lib/module/social/features/user/Profile/elements/Menu/hooks/useMenu.js +16 -4
- package/lib/module/social/features/user/Profile/elements/Menu/hooks/useMenu.js.map +1 -1
- package/lib/module/social/features/visitor/UsageLimit/UsageLimit.js +40 -0
- package/lib/module/social/features/visitor/UsageLimit/UsageLimit.js.map +1 -0
- package/lib/module/social/features/visitor/UsageLimit/hooks/index.js +2 -0
- package/lib/module/social/features/visitor/UsageLimit/hooks/index.js.map +1 -0
- package/lib/module/social/features/visitor/UsageLimit/hooks/useUsageLimit.js +47 -0
- package/lib/module/social/features/visitor/UsageLimit/hooks/useUsageLimit.js.map +1 -0
- package/lib/module/social/features/visitor/UsageLimit/index.js +2 -0
- package/lib/module/social/features/visitor/UsageLimit/index.js.map +1 -0
- package/lib/module/social/features/visitor/UsageLimit/styles.js +45 -0
- package/lib/module/social/features/visitor/UsageLimit/styles.js.map +1 -0
- package/lib/module/social/hooks/index.js +2 -0
- package/lib/module/social/hooks/index.js.map +1 -1
- package/lib/module/social/hooks/useGlobalBehavior.js +36 -0
- package/lib/module/social/hooks/useGlobalBehavior.js.map +1 -0
- package/lib/module/social/hooks/useInteractionBehavior.js +43 -0
- package/lib/module/social/hooks/useInteractionBehavior.js.map +1 -0
- package/lib/module/social/hooks/usePostPermission.js +4 -2
- package/lib/module/social/hooks/usePostPermission.js.map +1 -1
- package/lib/module/social/hooks/useStoryPermission.js +3 -2
- package/lib/module/social/hooks/useStoryPermission.js.map +1 -1
- package/lib/module/social/providers/BehaviourProvider.js +1 -0
- package/lib/module/social/providers/BehaviourProvider.js.map +1 -1
- package/lib/module/social/screens/CommunityProfile/components/Header/Header.js +10 -3
- package/lib/module/social/screens/CommunityProfile/components/Header/Header.js.map +1 -1
- package/lib/module/social/screens/SocialHomePage/index.js +15 -7
- package/lib/module/social/screens/SocialHomePage/index.js.map +1 -1
- package/lib/module/social/screens/VisitorUsageLimit/VisitorUsageLimit.js +5 -0
- package/lib/module/social/screens/VisitorUsageLimit/VisitorUsageLimit.js.map +1 -0
- package/lib/module/social/screens/VisitorUsageLimit/index.js +2 -0
- package/lib/module/social/screens/VisitorUsageLimit/index.js.map +1 -0
- package/lib/typescript/core/assets/icons/index.d.ts +1 -0
- package/lib/typescript/core/assets/icons/index.d.ts.map +1 -1
- package/lib/typescript/core/assets/icons/visitorLimit.d.ts +3 -0
- package/lib/typescript/core/assets/icons/visitorLimit.d.ts.map +1 -0
- package/lib/typescript/core/constants/index.d.ts +10 -0
- package/lib/typescript/core/constants/index.d.ts.map +1 -1
- package/lib/typescript/core/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/core/providers/AmityUIKitProvider.d.ts +2 -1
- package/lib/typescript/core/providers/AmityUIKitProvider.d.ts.map +1 -1
- package/lib/typescript/core/providers/AuthProvider.d.ts.map +1 -1
- package/lib/typescript/core/routes/AmityUIKitNavigator.d.ts.map +1 -1
- package/lib/typescript/core/types/auth.d.ts +2 -0
- package/lib/typescript/core/types/auth.d.ts.map +1 -1
- package/lib/typescript/core/types/behaviour.d.ts +6 -0
- package/lib/typescript/core/types/behaviour.d.ts.map +1 -1
- package/lib/typescript/social/components/PollContent/PollOption.d.ts.map +1 -1
- package/lib/typescript/social/components/PostMenu/index.d.ts.map +1 -1
- package/lib/typescript/social/components/Social/CommentList/CommentList.d.ts.map +1 -1
- package/lib/typescript/social/components/Social/CommentListItem/CommentListItem.d.ts.map +1 -1
- package/lib/typescript/social/components/Social/CommentListItem/styles.d.ts +2 -1
- package/lib/typescript/social/components/Social/CommentListItem/styles.d.ts.map +1 -1
- package/lib/typescript/social/components/legacy/Social/ReplyCommentList/index.d.ts.map +1 -1
- package/lib/typescript/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.d.ts.map +1 -1
- package/lib/typescript/social/features/comment/components/PostComment/CommentListItem/CommentListItem.d.ts.map +1 -1
- package/lib/typescript/social/features/comment/components/PostComment/ReplyCommentList/index.d.ts.map +1 -1
- package/lib/typescript/social/features/comment/components/PostComment/ReplyCommentList/styles.d.ts +8 -0
- package/lib/typescript/social/features/comment/components/PostComment/ReplyCommentList/styles.d.ts.map +1 -1
- package/lib/typescript/social/features/feed/components/TopNavigation/TopNavigation.d.ts.map +1 -1
- package/lib/typescript/social/features/livestream/Player/Player.d.ts.map +1 -1
- package/lib/typescript/social/features/post/Detail/index.d.ts.map +1 -1
- package/lib/typescript/social/features/post/components/EngagementActions/Components/DetailStyle.d.ts.map +1 -1
- package/lib/typescript/social/features/post/components/EngagementActions/Components/FeedStyle.d.ts.map +1 -1
- package/lib/typescript/social/features/story/View/components/AmityViewStoryItem.d.ts.map +1 -1
- package/lib/typescript/social/features/user/Profile/components/Header/hooks/useHeader.d.ts +2 -0
- package/lib/typescript/social/features/user/Profile/components/Header/hooks/useHeader.d.ts.map +1 -1
- package/lib/typescript/social/features/user/Profile/components/Header/styles.d.ts +2 -0
- package/lib/typescript/social/features/user/Profile/components/Header/styles.d.ts.map +1 -1
- package/lib/typescript/social/features/user/Profile/elements/Menu/hooks/useMenu.d.ts.map +1 -1
- package/lib/typescript/social/features/visitor/UsageLimit/UsageLimit.d.ts +2 -0
- package/lib/typescript/social/features/visitor/UsageLimit/UsageLimit.d.ts.map +1 -0
- package/lib/typescript/social/features/visitor/UsageLimit/hooks/index.d.ts +2 -0
- package/lib/typescript/social/features/visitor/UsageLimit/hooks/index.d.ts.map +1 -0
- package/lib/typescript/social/features/visitor/UsageLimit/hooks/useUsageLimit.d.ts +40 -0
- package/lib/typescript/social/features/visitor/UsageLimit/hooks/useUsageLimit.d.ts.map +1 -0
- package/lib/typescript/social/features/visitor/UsageLimit/index.d.ts +2 -0
- package/lib/typescript/social/features/visitor/UsageLimit/index.d.ts.map +1 -0
- package/lib/typescript/social/features/visitor/UsageLimit/styles.d.ts +40 -0
- package/lib/typescript/social/features/visitor/UsageLimit/styles.d.ts.map +1 -0
- package/lib/typescript/social/hooks/index.d.ts +2 -0
- package/lib/typescript/social/hooks/index.d.ts.map +1 -1
- package/lib/typescript/social/hooks/useGlobalBehavior.d.ts +16 -0
- package/lib/typescript/social/hooks/useGlobalBehavior.d.ts.map +1 -0
- package/lib/typescript/social/hooks/useInteractionBehavior.d.ts +11 -0
- package/lib/typescript/social/hooks/useInteractionBehavior.d.ts.map +1 -0
- package/lib/typescript/social/hooks/usePostPermission.d.ts.map +1 -1
- package/lib/typescript/social/hooks/useStoryPermission.d.ts.map +1 -1
- package/lib/typescript/social/providers/BehaviourProvider.d.ts.map +1 -1
- package/lib/typescript/social/screens/CommunityProfile/components/Header/Header.d.ts.map +1 -1
- package/lib/typescript/social/screens/SocialHomePage/index.d.ts.map +1 -1
- package/lib/typescript/social/screens/VisitorUsageLimit/VisitorUsageLimit.d.ts +2 -0
- package/lib/typescript/social/screens/VisitorUsageLimit/VisitorUsageLimit.d.ts.map +1 -0
- package/lib/typescript/social/screens/VisitorUsageLimit/index.d.ts +2 -0
- package/lib/typescript/social/screens/VisitorUsageLimit/index.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/core/assets/icons/index.ts +1 -0
- package/src/core/assets/icons/visitorLimit.tsx +19 -0
- package/src/core/constants/index.ts +15 -0
- package/src/core/hooks/useAuth.ts +4 -0
- package/src/core/providers/AmityUIKitProvider.tsx +2 -1
- package/src/core/providers/AuthProvider.tsx +35 -11
- package/src/core/routes/AmityUIKitNavigator.tsx +26 -1
- package/src/core/types/auth.ts +2 -0
- package/src/core/types/behaviour.ts +6 -0
- package/src/social/components/PollContent/PollOption.tsx +13 -19
- package/src/social/components/PostMenu/index.tsx +6 -3
- package/src/social/components/Social/CommentList/CommentList.tsx +4 -1
- package/src/social/components/Social/CommentListItem/CommentListItem.tsx +69 -55
- package/src/social/components/Social/CommentListItem/styles.ts +2 -1
- package/src/social/components/legacy/Social/ReplyCommentList/index.tsx +15 -5
- package/src/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.tsx +10 -2
- package/src/social/features/comment/components/PostComment/CommentListItem/CommentListItem.tsx +17 -10
- package/src/social/features/comment/components/PostComment/ReplyCommentList/index.tsx +15 -5
- package/src/social/features/comment/components/PostComment/ReplyCommentList/styles.ts +8 -0
- package/src/social/features/feed/components/TopNavigation/TopNavigation.tsx +3 -1
- package/src/social/features/livestream/Player/Player.tsx +10 -7
- package/src/social/features/post/Detail/index.tsx +5 -2
- package/src/social/features/post/components/EngagementActions/Components/DetailStyle.tsx +19 -14
- package/src/social/features/post/components/EngagementActions/Components/FeedStyle.tsx +20 -12
- package/src/social/features/story/View/components/AmityViewStoryItem.tsx +21 -22
- package/src/social/features/user/Profile/components/Header/hooks/useHeader.ts +27 -20
- package/src/social/features/user/Profile/components/Header/styles.ts +2 -0
- package/src/social/features/user/Profile/elements/Menu/hooks/useMenu.ts +16 -4
- package/src/social/features/visitor/UsageLimit/UsageLimit.tsx +43 -0
- package/src/social/features/visitor/UsageLimit/hooks/index.ts +1 -0
- package/src/social/features/visitor/UsageLimit/hooks/useUsageLimit.ts +46 -0
- package/src/social/features/visitor/UsageLimit/index.ts +1 -0
- package/src/social/features/visitor/UsageLimit/styles.ts +45 -0
- package/src/social/hooks/index.ts +2 -0
- package/src/social/hooks/useGlobalBehavior.ts +33 -0
- package/src/social/hooks/useInteractionBehavior.ts +47 -0
- package/src/social/hooks/usePostPermission.ts +3 -1
- package/src/social/hooks/useStoryPermission.ts +8 -6
- package/src/social/providers/BehaviourProvider.tsx +1 -0
- package/src/social/screens/CommunityProfile/components/Header/Header.tsx +8 -2
- package/src/social/screens/SocialHomePage/index.tsx +30 -15
- package/src/social/screens/VisitorUsageLimit/VisitorUsageLimit.tsx +5 -0
- package/src/social/screens/VisitorUsageLimit/index.ts +1 -0
|
@@ -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;
|
|
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"}
|
package/lib/typescript/social/features/comment/components/PostComment/ReplyCommentList/styles.d.ts
CHANGED
|
@@ -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
|
|
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":"
|
|
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,
|
|
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;
|
|
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;;
|
|
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;;
|
|
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":"
|
|
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"}
|
package/lib/typescript/social/features/user/Profile/components/Header/hooks/useHeader.d.ts.map
CHANGED
|
@@ -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
|
|
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"}
|
|
@@ -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
|
|
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":"
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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,
|
|
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;;
|
|
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,
|
|
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;
|
|
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;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/screens/SocialHomePage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;;AAoI/B,wBAA+C"}
|
|
@@ -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 @@
|
|
|
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.0",
|
|
3
|
+
"version": "4.0.1-03923ef4.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.
|
|
60
|
+
"@amityco/ts-sdk-react-native": "7.22.1-f15e84ea.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.
|
|
122
|
+
"@amityco/ts-sdk-react-native": "7.22.1-f15e84ea.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
|
-
|
|
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,29 +69,44 @@ 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
|
-
|
|
71
|
-
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
const unsubscribe = Client.onVisitorUsageLimitReached(() => {
|
|
78
|
+
setIsVisitorUsageLimitReached(true);
|
|
79
|
+
});
|
|
72
80
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
displayName: displayName,
|
|
81
|
+
return () => {
|
|
82
|
+
unsubscribe();
|
|
76
83
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
84
|
+
}, []);
|
|
85
|
+
|
|
86
|
+
const handleConnect = useCallback(async () => {
|
|
80
87
|
try {
|
|
81
|
-
|
|
82
|
-
|
|
88
|
+
if (userId) {
|
|
89
|
+
let loginParam: Amity.ConnectClientParams = {
|
|
90
|
+
userId: userId,
|
|
91
|
+
displayName: displayName,
|
|
92
|
+
};
|
|
93
|
+
if (authToken?.length > 0) {
|
|
94
|
+
loginParam = { ...loginParam, authToken: authToken };
|
|
95
|
+
}
|
|
96
|
+
const response = await Client.login(loginParam, sessionHandler);
|
|
97
|
+
if (!response) return;
|
|
98
|
+
} else {
|
|
99
|
+
const response = await Client.loginAsVisitor({ sessionHandler });
|
|
100
|
+
if (!response) return;
|
|
101
|
+
}
|
|
83
102
|
} catch (err) {
|
|
84
103
|
if (err?.message?.includes(ERROR_CODE.GLOBAL_BAN)) {
|
|
85
104
|
setIsGlobalBan(true);
|
|
86
105
|
}
|
|
87
106
|
}
|
|
88
107
|
|
|
89
|
-
|
|
108
|
+
// Visitors/bots are GET-only with no MQTT — skip push registration for them.
|
|
109
|
+
if (fcmToken && userId) {
|
|
90
110
|
try {
|
|
91
111
|
await Client.registerPushNotification(fcmToken);
|
|
92
112
|
} catch (err) {
|
|
@@ -110,7 +130,9 @@ export const AuthContextProvider: FC<IAmityUIkitProvider> = ({
|
|
|
110
130
|
setLoading(false);
|
|
111
131
|
}
|
|
112
132
|
};
|
|
133
|
+
|
|
113
134
|
useEffect(() => {
|
|
135
|
+
setIsVisitorUsageLimitReached(false);
|
|
114
136
|
login();
|
|
115
137
|
}, [userId]);
|
|
116
138
|
|
|
@@ -138,6 +160,8 @@ export const AuthContextProvider: FC<IAmityUIkitProvider> = ({
|
|
|
138
160
|
sessionState,
|
|
139
161
|
apiRegion: apiRegion.toLowerCase(),
|
|
140
162
|
isGlobalBan,
|
|
163
|
+
isVisitorUsageLimitReached,
|
|
164
|
+
isVisitorOrBot,
|
|
141
165
|
}}
|
|
142
166
|
>
|
|
143
167
|
{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}>
|
package/src/core/types/auth.ts
CHANGED
|
@@ -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
|
};
|