@amityco/react-native-social-uikit 4.0.0 → 4.0.1-324acbfd.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 +30 -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 +46 -16
- package/lib/commonjs/core/providers/AuthProvider.js.map +1 -1
- package/lib/commonjs/core/routes/AmityPageRenderer.js +5 -1
- package/lib/commonjs/core/routes/AmityPageRenderer.js.map +1 -1
- package/lib/commonjs/core/routes/AmityUIKitNavigator.js +42 -1
- package/lib/commonjs/core/routes/AmityUIKitNavigator.js.map +1 -1
- package/lib/commonjs/index.js +12 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/social/components/Social/CommentList/CommentList.js +7 -1
- package/lib/commonjs/social/components/Social/CommentList/CommentList.js.map +1 -1
- package/lib/commonjs/social/components/Social/CommentListItem/CommentListItem.js +16 -3
- package/lib/commonjs/social/components/Social/CommentListItem/CommentListItem.js.map +1 -1
- package/lib/commonjs/social/components/legacy/Social/ReplyCommentList/index.js +12 -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/enums/enumUIKitID.js +2 -0
- package/lib/commonjs/social/enums/enumUIKitID.js.map +1 -1
- package/lib/commonjs/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js +15 -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 +12 -2
- package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/index.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/post/Detail/index.js +8 -2
- package/lib/commonjs/social/features/post/Detail/index.js.map +1 -1
- package/lib/commonjs/social/features/post/components/Content/Content.js +5 -1
- package/lib/commonjs/social/features/post/components/Content/Content.js.map +1 -1
- package/lib/commonjs/social/features/post/components/EngagementActions/Components/DetailStyle.js +9 -1
- 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 +9 -1
- package/lib/commonjs/social/features/post/components/EngagementActions/Components/FeedStyle.js.map +1 -1
- package/lib/commonjs/social/features/user/CreateProfile/CreateProfile.js +114 -0
- package/lib/commonjs/social/features/user/CreateProfile/CreateProfile.js.map +1 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/ImageUpload/ImageUpload.js +78 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/ImageUpload/ImageUpload.js.map +1 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/ImageUpload/index.js +13 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/ImageUpload/index.js.map +1 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/ImageUpload/styles.js +51 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/ImageUpload/styles.js.map +1 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/TopBar/TopBar.js +34 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/TopBar/TopBar.js.map +1 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/TopBar/index.js +13 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/TopBar/index.js.map +1 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/TopBar/styles.js +37 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/TopBar/styles.js.map +1 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/index.js +28 -0
- package/lib/commonjs/social/features/user/CreateProfile/components/index.js.map +1 -0
- package/lib/commonjs/social/features/user/CreateProfile/hooks/index.js +17 -0
- package/lib/commonjs/social/features/user/CreateProfile/hooks/index.js.map +1 -0
- package/lib/commonjs/social/features/user/CreateProfile/hooks/useCreateProfile.js +194 -0
- package/lib/commonjs/social/features/user/CreateProfile/hooks/useCreateProfile.js.map +1 -0
- package/lib/commonjs/social/features/user/CreateProfile/index.js +13 -0
- package/lib/commonjs/social/features/user/CreateProfile/index.js.map +1 -0
- package/lib/commonjs/social/features/user/CreateProfile/styles.js +40 -0
- package/lib/commonjs/social/features/user/CreateProfile/styles.js.map +1 -0
- package/lib/commonjs/social/features/user/Profile/components/Header/hooks/useHeader.js +6 -1
- package/lib/commonjs/social/features/user/Profile/components/Header/hooks/useHeader.js.map +1 -1
- package/lib/commonjs/social/hooks/index.js +11 -0
- package/lib/commonjs/social/hooks/index.js.map +1 -1
- package/lib/commonjs/social/hooks/useGlobalBehavior.js +53 -0
- package/lib/commonjs/social/hooks/useGlobalBehavior.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/index.js +13 -0
- package/lib/commonjs/social/index.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/CreateUserProfile/CreateUserProfile.js +20 -0
- package/lib/commonjs/social/screens/CreateUserProfile/CreateUserProfile.js.map +1 -0
- package/lib/commonjs/social/screens/CreateUserProfile/index.js +13 -0
- package/lib/commonjs/social/screens/CreateUserProfile/index.js.map +1 -0
- package/lib/commonjs/social/screens/SocialHomePage/index.js +22 -7
- package/lib/commonjs/social/screens/SocialHomePage/index.js.map +1 -1
- package/lib/commonjs/social/screens/VisitorUsageLimit/VisitorUsageLimit.js +78 -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/commonjs/social/screens/VisitorUsageLimit/styles.js +50 -0
- package/lib/commonjs/social/screens/VisitorUsageLimit/styles.js.map +1 -0
- package/lib/commonjs/social/screens/index.js +11 -0
- package/lib/commonjs/social/screens/index.js.map +1 -1
- 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 +23 -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 +46 -16
- package/lib/module/core/providers/AuthProvider.js.map +1 -1
- package/lib/module/core/routes/AmityPageRenderer.js +5 -1
- package/lib/module/core/routes/AmityPageRenderer.js.map +1 -1
- package/lib/module/core/routes/AmityUIKitNavigator.js +42 -1
- package/lib/module/core/routes/AmityUIKitNavigator.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/social/components/Social/CommentList/CommentList.js +7 -1
- package/lib/module/social/components/Social/CommentList/CommentList.js.map +1 -1
- package/lib/module/social/components/Social/CommentListItem/CommentListItem.js +16 -3
- package/lib/module/social/components/Social/CommentListItem/CommentListItem.js.map +1 -1
- package/lib/module/social/components/legacy/Social/ReplyCommentList/index.js +12 -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/enums/enumUIKitID.js +2 -0
- package/lib/module/social/enums/enumUIKitID.js.map +1 -1
- package/lib/module/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js +16 -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 +12 -2
- package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/index.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/post/Detail/index.js +8 -2
- package/lib/module/social/features/post/Detail/index.js.map +1 -1
- package/lib/module/social/features/post/components/Content/Content.js +5 -1
- package/lib/module/social/features/post/components/Content/Content.js.map +1 -1
- package/lib/module/social/features/post/components/EngagementActions/Components/DetailStyle.js +10 -2
- 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 +10 -2
- package/lib/module/social/features/post/components/EngagementActions/Components/FeedStyle.js.map +1 -1
- package/lib/module/social/features/user/CreateProfile/CreateProfile.js +107 -0
- package/lib/module/social/features/user/CreateProfile/CreateProfile.js.map +1 -0
- package/lib/module/social/features/user/CreateProfile/components/ImageUpload/ImageUpload.js +72 -0
- package/lib/module/social/features/user/CreateProfile/components/ImageUpload/ImageUpload.js.map +1 -0
- package/lib/module/social/features/user/CreateProfile/components/ImageUpload/index.js +2 -0
- package/lib/module/social/features/user/CreateProfile/components/ImageUpload/index.js.map +1 -0
- package/lib/module/social/features/user/CreateProfile/components/ImageUpload/styles.js +44 -0
- package/lib/module/social/features/user/CreateProfile/components/ImageUpload/styles.js.map +1 -0
- package/lib/module/social/features/user/CreateProfile/components/TopBar/TopBar.js +27 -0
- package/lib/module/social/features/user/CreateProfile/components/TopBar/TopBar.js.map +1 -0
- package/lib/module/social/features/user/CreateProfile/components/TopBar/index.js +2 -0
- package/lib/module/social/features/user/CreateProfile/components/TopBar/index.js.map +1 -0
- package/lib/module/social/features/user/CreateProfile/components/TopBar/styles.js +30 -0
- package/lib/module/social/features/user/CreateProfile/components/TopBar/styles.js.map +1 -0
- package/lib/module/social/features/user/CreateProfile/components/index.js +3 -0
- package/lib/module/social/features/user/CreateProfile/components/index.js.map +1 -0
- package/lib/module/social/features/user/CreateProfile/hooks/index.js +2 -0
- package/lib/module/social/features/user/CreateProfile/hooks/index.js.map +1 -0
- package/lib/module/social/features/user/CreateProfile/hooks/useCreateProfile.js +187 -0
- package/lib/module/social/features/user/CreateProfile/hooks/useCreateProfile.js.map +1 -0
- package/lib/module/social/features/user/CreateProfile/index.js +2 -0
- package/lib/module/social/features/user/CreateProfile/index.js.map +1 -0
- package/lib/module/social/features/user/CreateProfile/styles.js +33 -0
- package/lib/module/social/features/user/CreateProfile/styles.js.map +1 -0
- package/lib/module/social/features/user/Profile/components/Header/hooks/useHeader.js +7 -2
- package/lib/module/social/features/user/Profile/components/Header/hooks/useHeader.js.map +1 -1
- package/lib/module/social/hooks/index.js +1 -0
- package/lib/module/social/hooks/index.js.map +1 -1
- package/lib/module/social/hooks/useGlobalBehavior.js +45 -0
- package/lib/module/social/hooks/useGlobalBehavior.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/index.js +2 -1
- package/lib/module/social/index.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/CreateUserProfile/CreateUserProfile.js +14 -0
- package/lib/module/social/screens/CreateUserProfile/CreateUserProfile.js.map +1 -0
- package/lib/module/social/screens/CreateUserProfile/index.js +2 -0
- package/lib/module/social/screens/CreateUserProfile/index.js.map +1 -0
- package/lib/module/social/screens/SocialHomePage/index.js +23 -8
- package/lib/module/social/screens/SocialHomePage/index.js.map +1 -1
- package/lib/module/social/screens/VisitorUsageLimit/VisitorUsageLimit.js +72 -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/module/social/screens/VisitorUsageLimit/styles.js +43 -0
- package/lib/module/social/screens/VisitorUsageLimit/styles.js.map +1 -0
- package/lib/module/social/screens/index.js +1 -0
- package/lib/module/social/screens/index.js.map +1 -1
- 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 +8 -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/AmityPageRenderer.d.ts.map +1 -1
- package/lib/typescript/core/routes/AmityUIKitNavigator.d.ts.map +1 -1
- package/lib/typescript/core/routes/RouteParamList.d.ts +1 -0
- package/lib/typescript/core/routes/RouteParamList.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 +18 -0
- package/lib/typescript/core/types/behaviour.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -2
- package/lib/typescript/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/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/enums/enumUIKitID.d.ts +2 -0
- package/lib/typescript/social/enums/enumUIKitID.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/feed/components/TopNavigation/TopNavigation.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/Content/Content.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/user/CreateProfile/CreateProfile.d.ts +28 -0
- package/lib/typescript/social/features/user/CreateProfile/CreateProfile.d.ts.map +1 -0
- package/lib/typescript/social/features/user/CreateProfile/components/ImageUpload/ImageUpload.d.ts +9 -0
- package/lib/typescript/social/features/user/CreateProfile/components/ImageUpload/ImageUpload.d.ts.map +1 -0
- package/lib/typescript/social/features/user/CreateProfile/components/ImageUpload/index.d.ts +2 -0
- package/lib/typescript/social/features/user/CreateProfile/components/ImageUpload/index.d.ts.map +1 -0
- package/lib/typescript/social/features/user/CreateProfile/components/ImageUpload/styles.d.ts +39 -0
- package/lib/typescript/social/features/user/CreateProfile/components/ImageUpload/styles.d.ts.map +1 -0
- package/lib/typescript/social/features/user/CreateProfile/components/TopBar/TopBar.d.ts +7 -0
- package/lib/typescript/social/features/user/CreateProfile/components/TopBar/TopBar.d.ts.map +1 -0
- package/lib/typescript/social/features/user/CreateProfile/components/TopBar/index.d.ts +2 -0
- package/lib/typescript/social/features/user/CreateProfile/components/TopBar/index.d.ts.map +1 -0
- package/lib/typescript/social/features/user/CreateProfile/components/TopBar/styles.d.ts +25 -0
- package/lib/typescript/social/features/user/CreateProfile/components/TopBar/styles.d.ts.map +1 -0
- package/lib/typescript/social/features/user/CreateProfile/components/index.d.ts +3 -0
- package/lib/typescript/social/features/user/CreateProfile/components/index.d.ts.map +1 -0
- package/lib/typescript/social/features/user/CreateProfile/hooks/index.d.ts +2 -0
- package/lib/typescript/social/features/user/CreateProfile/hooks/index.d.ts.map +1 -0
- package/lib/typescript/social/features/user/CreateProfile/hooks/useCreateProfile.d.ts +74 -0
- package/lib/typescript/social/features/user/CreateProfile/hooks/useCreateProfile.d.ts.map +1 -0
- package/lib/typescript/social/features/user/CreateProfile/index.d.ts +3 -0
- package/lib/typescript/social/features/user/CreateProfile/index.d.ts.map +1 -0
- package/lib/typescript/social/features/user/CreateProfile/styles.d.ts +28 -0
- package/lib/typescript/social/features/user/CreateProfile/styles.d.ts.map +1 -0
- package/lib/typescript/social/features/user/Profile/components/Header/hooks/useHeader.d.ts.map +1 -1
- package/lib/typescript/social/hooks/index.d.ts +1 -0
- package/lib/typescript/social/hooks/index.d.ts.map +1 -1
- package/lib/typescript/social/hooks/useGlobalBehavior.d.ts +23 -0
- package/lib/typescript/social/hooks/useGlobalBehavior.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/index.d.ts +2 -1
- package/lib/typescript/social/index.d.ts.map +1 -1
- package/lib/typescript/social/providers/BehaviourProvider.d.ts.map +1 -1
- package/lib/typescript/social/screens/CreateUserProfile/CreateUserProfile.d.ts +7 -0
- package/lib/typescript/social/screens/CreateUserProfile/CreateUserProfile.d.ts.map +1 -0
- package/lib/typescript/social/screens/CreateUserProfile/index.d.ts +3 -0
- package/lib/typescript/social/screens/CreateUserProfile/index.d.ts.map +1 -0
- 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/lib/typescript/social/screens/VisitorUsageLimit/styles.d.ts +38 -0
- package/lib/typescript/social/screens/VisitorUsageLimit/styles.d.ts.map +1 -0
- package/lib/typescript/social/screens/index.d.ts +1 -0
- package/lib/typescript/social/screens/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/core/assets/icons/index.ts +1 -0
- package/src/core/assets/icons/visitorLimit.tsx +23 -0
- package/src/core/constants/index.ts +12 -0
- package/src/core/hooks/useAuth.ts +4 -0
- package/src/core/providers/AmityUIKitProvider.tsx +2 -1
- package/src/core/providers/AuthProvider.tsx +41 -12
- package/src/core/routes/AmityPageRenderer.tsx +11 -0
- package/src/core/routes/AmityUIKitNavigator.tsx +38 -1
- package/src/core/routes/RouteParamList.tsx +4 -0
- package/src/core/types/auth.ts +2 -0
- package/src/core/types/behaviour.ts +18 -0
- package/src/index.tsx +4 -0
- package/src/social/components/Social/CommentList/CommentList.tsx +5 -1
- package/src/social/components/Social/CommentListItem/CommentListItem.tsx +19 -12
- package/src/social/components/legacy/Social/ReplyCommentList/index.tsx +17 -11
- package/src/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.tsx +10 -2
- package/src/social/enums/enumUIKitID.ts +2 -0
- package/src/social/features/comment/components/PostComment/CommentListItem/CommentListItem.tsx +22 -16
- package/src/social/features/comment/components/PostComment/ReplyCommentList/index.tsx +17 -11
- package/src/social/features/feed/components/TopNavigation/TopNavigation.tsx +3 -1
- package/src/social/features/post/Detail/index.tsx +6 -2
- package/src/social/features/post/components/Content/Content.tsx +7 -4
- package/src/social/features/post/components/EngagementActions/Components/DetailStyle.tsx +7 -2
- package/src/social/features/post/components/EngagementActions/Components/FeedStyle.tsx +7 -2
- package/src/social/features/user/CreateProfile/CreateProfile.tsx +121 -0
- package/src/social/features/user/CreateProfile/components/ImageUpload/ImageUpload.tsx +85 -0
- package/src/social/features/user/CreateProfile/components/ImageUpload/index.ts +1 -0
- package/src/social/features/user/CreateProfile/components/ImageUpload/styles.ts +44 -0
- package/src/social/features/user/CreateProfile/components/TopBar/TopBar.tsx +30 -0
- package/src/social/features/user/CreateProfile/components/TopBar/index.ts +1 -0
- package/src/social/features/user/CreateProfile/components/TopBar/styles.ts +30 -0
- package/src/social/features/user/CreateProfile/components/index.ts +2 -0
- package/src/social/features/user/CreateProfile/hooks/index.ts +1 -0
- package/src/social/features/user/CreateProfile/hooks/useCreateProfile.ts +186 -0
- package/src/social/features/user/CreateProfile/index.ts +2 -0
- package/src/social/features/user/CreateProfile/styles.ts +33 -0
- package/src/social/features/user/Profile/components/Header/hooks/useHeader.ts +5 -2
- package/src/social/hooks/index.ts +1 -0
- package/src/social/hooks/useGlobalBehavior.ts +39 -0
- package/src/social/hooks/usePostPermission.ts +3 -1
- package/src/social/hooks/useStoryPermission.ts +8 -6
- package/src/social/index.tsx +2 -0
- package/src/social/providers/BehaviourProvider.tsx +1 -0
- package/src/social/screens/CreateUserProfile/CreateUserProfile.tsx +19 -0
- package/src/social/screens/CreateUserProfile/index.ts +2 -0
- package/src/social/screens/SocialHomePage/index.tsx +36 -13
- package/src/social/screens/VisitorUsageLimit/VisitorUsageLimit.tsx +78 -0
- package/src/social/screens/VisitorUsageLimit/index.ts +1 -0
- package/src/social/screens/VisitorUsageLimit/styles.ts +43 -0
- package/src/social/screens/index.ts +1 -0
- package/uikit.config.json +17 -0
package/lib/commonjs/social/features/post/components/EngagementActions/Components/FeedStyle.js
CHANGED
|
@@ -37,6 +37,9 @@ const FeedStyle = ({
|
|
|
37
37
|
const {
|
|
38
38
|
AmityGlobalFeedComponentBehavior
|
|
39
39
|
} = (0, _BehaviourProvider.useBehaviour)();
|
|
40
|
+
const {
|
|
41
|
+
handleGlobalBehavior
|
|
42
|
+
} = (0, _hooks.useGlobalBehavior)();
|
|
40
43
|
const navigation = (0, _native.useNavigation)();
|
|
41
44
|
const [postData, setPostData] = (0, _react.useState)(null);
|
|
42
45
|
const [isLike, setIsLike] = (0, _react.useState)(false);
|
|
@@ -81,6 +84,11 @@ const FeedStyle = ({
|
|
|
81
84
|
console.log(error);
|
|
82
85
|
}
|
|
83
86
|
}, [isLike, postData, postId]);
|
|
87
|
+
const onPressReaction = (0, _react.useCallback)(() => {
|
|
88
|
+
handleGlobalBehavior({
|
|
89
|
+
defaultBehavior: addReactionToPost
|
|
90
|
+
});
|
|
91
|
+
}, [addReactionToPost, handleGlobalBehavior]);
|
|
84
92
|
const onPressComment = (0, _react.useCallback)(() => {
|
|
85
93
|
if (AmityGlobalFeedComponentBehavior.goToPostDetailPage) {
|
|
86
94
|
return AmityGlobalFeedComponentBehavior.goToPostDetailPage();
|
|
@@ -102,7 +110,7 @@ const FeedStyle = ({
|
|
|
102
110
|
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
103
111
|
style: styles.row
|
|
104
112
|
}, /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
105
|
-
onPress:
|
|
113
|
+
onPress: onPressReaction,
|
|
106
114
|
style: styles.likeBtn
|
|
107
115
|
}, isLike ? /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
|
|
108
116
|
xml: (0, _xml.likeReaction)(themeStyles.colors.background),
|
package/lib/commonjs/social/features/post/components/EngagementActions/Components/FeedStyle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_react","_tsSdkReactNative","_styles","_hooks","_enums","_reactNativeSvg","_xml","_feed","_native","_LikeButtonIconElement","_interopRequireDefault","_CommentButtonIconElement","_BehaviourProvider","_number","_usePostShareAction","_ShareButton","e","__esModule","default","FeedStyle","community","postId","pageId","componentId","themeStyles","useAmityComponent","PageID","post_detail_page","ComponentID","post_content","styles","useStyles","AmityGlobalFeedComponentBehavior","useBehaviour","navigation","useNavigation","postData","setPostData","useState","isLike","setIsLike","totalReactions","setTotalReactions","unsubscribeRef","useRef","shareLink","handleSharePress","usePostShareAction","useEffect","PostRepository","getPost","error","loading","data","_data$myReactions","reactionsCount","myReactions","length","current","addReactionToPost","useCallback","subscribeTopic","getPostTopic","SubscriptionLevels","POST","prev","removePostReaction","addPostReaction","console","log","onPressComment","goToPostDetailPage","navigate","isJoined","React","createElement","View","style","actionSection","Text","btnText","Pressable","onPress","row","TouchableOpacity","likeBtn","SvgXml","xml","likeReaction","colors","background","width","height","pageID","componentID","resizeMode","likedText","formatNumber","commentBtn","localCommentCount","ShareButton","_default","exports","memo"],"sourceRoot":"../../../../../../../../src","sources":["social/features/post/components/EngagementActions/Components/FeedStyle.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AAMA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,IAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AAIA,IAAAS,OAAA,GAAAT,OAAA;AAGA,IAAAU,sBAAA,GAAAC,sBAAA,CAAAX,OAAA;AACA,IAAAY,yBAAA,GAAAD,sBAAA,CAAAX,OAAA;AACA,IAAAa,kBAAA,GAAAb,OAAA;AACA,IAAAc,OAAA,GAAAd,OAAA;AACA,IAAAe,mBAAA,GAAAf,OAAA;AACA,IAAAgB,YAAA,GAAAhB,OAAA;AAAkE,SAAAW,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElE,MAAMG,SAAyD,GAAGA,CAAC;EACjEC,SAAS;EACTC,MAAM;EACNC,MAAM;EACNC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAY,CAAC,GAAG,IAAAC,wBAAiB,EAAC;IACxCH,MAAM,EAAEI,aAAM,CAACC,gBAAgB;IAC/BJ,WAAW,EAAEK,kBAAW,CAACC;EAC3B,CAAC,CAAC;EACF,MAAMC,MAAM,GAAG,IAAAC,iBAAS,EAACP,WAAW,CAAC;EACrC,MAAM;IAAEQ;EAAiC,CAAC,GAAG,IAAAC,+BAAY,EAAC,CAAC;EAC3D,MAAMC,UAAU,GACd,IAAAC,qBAAa,EAAgD,CAAC;EAChE,MAAM,CAACC,QAAQ,EAAEC,WAAW,CAAC,GAAG,IAAAC,eAAQ,EAAa,IAAI,CAAC;EAC1D,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAG,IAAAF,eAAQ,EAAC,KAAK,CAAC;EAC3C,MAAM,CAACG,cAAc,EAAEC,iBAAiB,CAAC,GAAG,IAAAJ,eAAQ,EAAC,CAAC,CAAC;EACvD,MAAMK,cAAc,GAAG,IAAAC,aAAM,EAAa,IAAI,CAAC;EAE/C,MAAM;IAAEC,SAAS;IAAEC;EAAiB,CAAC,GAAG,IAAAC,sCAAkB,EAAC;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_react","_tsSdkReactNative","_styles","_hooks","_enums","_reactNativeSvg","_xml","_feed","_native","_LikeButtonIconElement","_interopRequireDefault","_CommentButtonIconElement","_BehaviourProvider","_number","_usePostShareAction","_ShareButton","e","__esModule","default","FeedStyle","community","postId","pageId","componentId","themeStyles","useAmityComponent","PageID","post_detail_page","ComponentID","post_content","styles","useStyles","AmityGlobalFeedComponentBehavior","useBehaviour","handleGlobalBehavior","useGlobalBehavior","navigation","useNavigation","postData","setPostData","useState","isLike","setIsLike","totalReactions","setTotalReactions","unsubscribeRef","useRef","shareLink","handleSharePress","usePostShareAction","useEffect","PostRepository","getPost","error","loading","data","_data$myReactions","reactionsCount","myReactions","length","current","addReactionToPost","useCallback","subscribeTopic","getPostTopic","SubscriptionLevels","POST","prev","removePostReaction","addPostReaction","console","log","onPressReaction","defaultBehavior","onPressComment","goToPostDetailPage","navigate","isJoined","React","createElement","View","style","actionSection","Text","btnText","Pressable","onPress","row","TouchableOpacity","likeBtn","SvgXml","xml","likeReaction","colors","background","width","height","pageID","componentID","resizeMode","likedText","formatNumber","commentBtn","localCommentCount","ShareButton","_default","exports","memo"],"sourceRoot":"../../../../../../../../src","sources":["social/features/post/components/EngagementActions/Components/FeedStyle.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AAMA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,IAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AAIA,IAAAS,OAAA,GAAAT,OAAA;AAGA,IAAAU,sBAAA,GAAAC,sBAAA,CAAAX,OAAA;AACA,IAAAY,yBAAA,GAAAD,sBAAA,CAAAX,OAAA;AACA,IAAAa,kBAAA,GAAAb,OAAA;AACA,IAAAc,OAAA,GAAAd,OAAA;AACA,IAAAe,mBAAA,GAAAf,OAAA;AACA,IAAAgB,YAAA,GAAAhB,OAAA;AAAkE,SAAAW,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,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";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CreateProfile = CreateProfile;
|
|
7
|
+
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactHookForm = require("react-hook-form");
|
|
10
|
+
var _components = require("./components");
|
|
11
|
+
var _hooks = require("./hooks");
|
|
12
|
+
var _FormInput = _interopRequireDefault(require("../../../components/FormInput"));
|
|
13
|
+
var _constants = require("../../../../core/constants");
|
|
14
|
+
var _enums = require("../../../enums");
|
|
15
|
+
var _ActionButton = _interopRequireDefault(require("../../../elements/ActionButton"));
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
function CreateProfile({
|
|
18
|
+
userId,
|
|
19
|
+
authToken,
|
|
20
|
+
onCreated,
|
|
21
|
+
onCancel
|
|
22
|
+
}) {
|
|
23
|
+
const {
|
|
24
|
+
styles,
|
|
25
|
+
control,
|
|
26
|
+
onSubmit,
|
|
27
|
+
isValid,
|
|
28
|
+
isSubmitting,
|
|
29
|
+
handleSubmit,
|
|
30
|
+
accessibilityId
|
|
31
|
+
} = (0, _hooks.useCreateProfile)({
|
|
32
|
+
userId,
|
|
33
|
+
authToken,
|
|
34
|
+
onCreated
|
|
35
|
+
});
|
|
36
|
+
return /*#__PURE__*/React.createElement(_reactNativeSafeAreaContext.SafeAreaView, {
|
|
37
|
+
testID: accessibilityId,
|
|
38
|
+
style: styles.container
|
|
39
|
+
}, /*#__PURE__*/React.createElement(_components.TopBar, {
|
|
40
|
+
onCancel: onCancel,
|
|
41
|
+
disabled: isSubmitting
|
|
42
|
+
}), /*#__PURE__*/React.createElement(_reactNative.KeyboardAvoidingView, {
|
|
43
|
+
style: styles.keyboardAvoidingView,
|
|
44
|
+
behavior: _reactNative.Platform.OS === 'ios' ? 'padding' : 'height'
|
|
45
|
+
}, /*#__PURE__*/React.createElement(_reactNative.ScrollView, {
|
|
46
|
+
contentContainerStyle: styles.contentContainer
|
|
47
|
+
}, /*#__PURE__*/React.createElement(_reactHookForm.Controller, {
|
|
48
|
+
name: "image",
|
|
49
|
+
control: control,
|
|
50
|
+
render: ({
|
|
51
|
+
field: {
|
|
52
|
+
onChange,
|
|
53
|
+
value
|
|
54
|
+
}
|
|
55
|
+
}) => /*#__PURE__*/React.createElement(_components.ImageUpload, {
|
|
56
|
+
value: value,
|
|
57
|
+
onChange: onChange,
|
|
58
|
+
disabled: isSubmitting
|
|
59
|
+
})
|
|
60
|
+
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
61
|
+
style: styles.inputContainer
|
|
62
|
+
}, /*#__PURE__*/React.createElement(_reactHookForm.Controller, {
|
|
63
|
+
name: "displayName",
|
|
64
|
+
control: control,
|
|
65
|
+
render: ({
|
|
66
|
+
field: {
|
|
67
|
+
onChange,
|
|
68
|
+
onBlur,
|
|
69
|
+
value
|
|
70
|
+
}
|
|
71
|
+
}) => /*#__PURE__*/React.createElement(_FormInput.default, {
|
|
72
|
+
value: value,
|
|
73
|
+
onBlur: onBlur,
|
|
74
|
+
multiline: false,
|
|
75
|
+
editable: !isSubmitting,
|
|
76
|
+
onChangeText: onChange,
|
|
77
|
+
placeholder: "Username",
|
|
78
|
+
pageId: _enums.PageID.create_user_profile_page,
|
|
79
|
+
maxLength: _constants.CHARACTER_LIMIT.USER_DISPLAY_NAME,
|
|
80
|
+
elementId: _enums.ElementID.user_display_name_title
|
|
81
|
+
})
|
|
82
|
+
})), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
83
|
+
style: styles.inputContainer
|
|
84
|
+
}, /*#__PURE__*/React.createElement(_reactHookForm.Controller, {
|
|
85
|
+
name: "description",
|
|
86
|
+
control: control,
|
|
87
|
+
render: ({
|
|
88
|
+
field: {
|
|
89
|
+
onChange,
|
|
90
|
+
onBlur,
|
|
91
|
+
value
|
|
92
|
+
}
|
|
93
|
+
}) => /*#__PURE__*/React.createElement(_FormInput.default, {
|
|
94
|
+
optional: true,
|
|
95
|
+
multiline: true,
|
|
96
|
+
value: value,
|
|
97
|
+
onBlur: onBlur,
|
|
98
|
+
editable: !isSubmitting,
|
|
99
|
+
onChangeText: onChange,
|
|
100
|
+
placeholder: "Write something about yourself",
|
|
101
|
+
pageId: _enums.PageID.create_user_profile_page,
|
|
102
|
+
elementId: _enums.ElementID.user_about_title,
|
|
103
|
+
maxLength: _constants.CHARACTER_LIMIT.USER_DESCRIPTION
|
|
104
|
+
})
|
|
105
|
+
}))), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
106
|
+
style: styles.submitButtonContainer
|
|
107
|
+
}, /*#__PURE__*/React.createElement(_ActionButton.default, {
|
|
108
|
+
onPress: handleSubmit(onSubmit),
|
|
109
|
+
pageId: _enums.PageID.create_user_profile_page,
|
|
110
|
+
elementId: _enums.ElementID.create_user_profile_button,
|
|
111
|
+
disabled: !isValid || isSubmitting
|
|
112
|
+
}))));
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=CreateProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeSafeAreaContext","require","_reactNative","_reactHookForm","_components","_hooks","_FormInput","_interopRequireDefault","_constants","_enums","_ActionButton","e","__esModule","default","CreateProfile","userId","authToken","onCreated","onCancel","styles","control","onSubmit","isValid","isSubmitting","handleSubmit","accessibilityId","useCreateProfile","React","createElement","SafeAreaView","testID","style","container","TopBar","disabled","KeyboardAvoidingView","keyboardAvoidingView","behavior","Platform","OS","ScrollView","contentContainerStyle","contentContainer","Controller","name","render","field","onChange","value","ImageUpload","View","inputContainer","onBlur","multiline","editable","onChangeText","placeholder","pageId","PageID","create_user_profile_page","maxLength","CHARACTER_LIMIT","USER_DISPLAY_NAME","elementId","ElementID","user_display_name_title","optional","user_about_title","USER_DESCRIPTION","submitButtonContainer","onPress","create_user_profile_button"],"sourceRoot":"../../../../../../src","sources":["social/features/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,aAAa;IAClBxB,OAAO,EAAEA,OAAQ;IACjByB,MAAM,EAAEA,CAAC;MAAEC,KAAK,EAAE;QAAEC,QAAQ;QAAEK,MAAM;QAAEJ;MAAM;IAAE,CAAC,kBAC7CrB,KAAA,CAAAC,aAAA,CAACtB,UAAA,CAAAO,OAAS;MACRqD,QAAQ;MACRb,SAAS;MACTL,KAAK,EAAEA,KAAM;MACbI,MAAM,EAAEA,MAAO;MACfE,QAAQ,EAAE,CAAC/B,YAAa;MACxBgC,YAAY,EAAER,QAAS;MACvBS,WAAW,EAAC,gCAAgC;MAC5CC,MAAM,EAAEC,aAAM,CAACC,wBAAyB;MACxCI,SAAS,EAAEC,gBAAS,CAACG,gBAAiB;MACtCP,SAAS,EAAEC,0BAAe,CAACO;IAAiB,CAC7C;EACD,CACH,CACG,CACI,CAAC,eACbzC,KAAA,CAAAC,aAAA,CAAC1B,YAAA,CAAAgD,IAAI;IAACnB,KAAK,EAAEZ,MAAM,CAACkD;EAAsB,gBACxC1C,KAAA,CAAAC,aAAA,CAAClB,aAAA,CAAAG,OAAY;IACXyD,OAAO,EAAE9C,YAAY,CAACH,QAAQ,CAAE;IAChCoC,MAAM,EAAEC,aAAM,CAACC,wBAAyB;IACxCI,SAAS,EAAEC,gBAAS,CAACO,0BAA2B;IAChDrC,QAAQ,EAAE,CAACZ,OAAO,IAAIC;EAAa,CACpC,CACG,CACc,CACV,CAAC;AAEnB","ignoreList":[]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ImageUpload = ImageUpload;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _reactNativeImagePicker = require("react-native-image-picker");
|
|
9
|
+
var _styles = require("./styles");
|
|
10
|
+
var _reactNativeSvg = require("react-native-svg");
|
|
11
|
+
var _icons = require("../../../../../../core/assets/icons");
|
|
12
|
+
var _utils = require("../../../../../utils");
|
|
13
|
+
var _components = require("../../../../../components");
|
|
14
|
+
var _Typography = require("../../../../../../core/components/Typography/Typography");
|
|
15
|
+
// Pick-only: a visitor session is read-only, so the avatar can't be uploaded
|
|
16
|
+
// here. We hold the local image uri and the page uploads it after Client.login.
|
|
17
|
+
function ImageUpload({
|
|
18
|
+
value,
|
|
19
|
+
onChange,
|
|
20
|
+
disabled
|
|
21
|
+
}) {
|
|
22
|
+
const {
|
|
23
|
+
styles,
|
|
24
|
+
theme
|
|
25
|
+
} = (0, _styles.useStyles)();
|
|
26
|
+
const onPickImage = async () => {
|
|
27
|
+
const result = await (0, _reactNativeImagePicker.launchImageLibrary)({
|
|
28
|
+
mediaType: 'photo',
|
|
29
|
+
selectionLimit: 1,
|
|
30
|
+
includeBase64: false,
|
|
31
|
+
quality: 1
|
|
32
|
+
});
|
|
33
|
+
if (result.didCancel || !result.assets || result.assets.length === 0) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const asset = result.assets[0];
|
|
37
|
+
if (!(0, _utils.isValidImageType)(asset === null || asset === void 0 ? void 0 : asset.type)) {
|
|
38
|
+
_reactNative.Alert.alert('Unsupported image type', 'Please upload a PNG or JPG image.', [{
|
|
39
|
+
text: 'OK'
|
|
40
|
+
}]);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (asset !== null && asset !== void 0 && asset.uri) {
|
|
44
|
+
onChange({
|
|
45
|
+
uri: asset.uri
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
50
|
+
style: [styles.container, disabled && styles.disabled]
|
|
51
|
+
}, /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
52
|
+
hitSlop: 0.8,
|
|
53
|
+
activeOpacity: 0.7,
|
|
54
|
+
disabled: disabled,
|
|
55
|
+
style: styles.imageContainer,
|
|
56
|
+
onPress: onPickImage
|
|
57
|
+
}, /*#__PURE__*/React.createElement(_components.Avatar.User, {
|
|
58
|
+
uri: value === null || value === void 0 ? void 0 : value.uri,
|
|
59
|
+
viewable: false,
|
|
60
|
+
userId: "",
|
|
61
|
+
imageStyle: styles.image,
|
|
62
|
+
shouldRedirectToUserProfile: false
|
|
63
|
+
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
64
|
+
style: styles.iconContainer
|
|
65
|
+
}, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
|
|
66
|
+
width: 24,
|
|
67
|
+
height: 24,
|
|
68
|
+
xml: (0, _icons.camera)(),
|
|
69
|
+
color: theme.colors.white
|
|
70
|
+
}))), /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
71
|
+
activeOpacity: 0.7,
|
|
72
|
+
disabled: disabled,
|
|
73
|
+
onPress: onPickImage
|
|
74
|
+
}, /*#__PURE__*/React.createElement(_Typography.Typography.BodyBold, {
|
|
75
|
+
style: styles.choosePhotoLabel
|
|
76
|
+
}, "Choose a photo")));
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=ImageUpload.js.map
|
package/lib/commonjs/social/features/user/CreateProfile/components/ImageUpload/ImageUpload.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativeImagePicker","_styles","_reactNativeSvg","_icons","_utils","_components","_Typography","ImageUpload","value","onChange","disabled","styles","theme","useStyles","onPickImage","result","launchImageLibrary","mediaType","selectionLimit","includeBase64","quality","didCancel","assets","length","asset","isValidImageType","type","Alert","alert","text","uri","React","createElement","View","style","container","TouchableOpacity","hitSlop","activeOpacity","imageContainer","onPress","Avatar","User","viewable","userId","imageStyle","image","shouldRedirectToUserProfile","iconContainer","SvgXml","width","height","xml","camera","color","colors","white","Typography","BodyBold","choosePhotoLabel"],"sourceRoot":"../../../../../../../../src","sources":["social/features/user/CreateProfile/components/ImageUpload/ImageUpload.tsx"],"mappings":";;;;;;AAAA,IAAAA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
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ImageUpload", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _ImageUpload.ImageUpload;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _ImageUpload = require("./ImageUpload");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_ImageUpload","require"],"sourceRoot":"../../../../../../../../src","sources":["social/features/user/CreateProfile/components/ImageUpload/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useStyles = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _reactNativePaper = require("react-native-paper");
|
|
9
|
+
const useStyles = () => {
|
|
10
|
+
const theme = (0, _reactNativePaper.useTheme)();
|
|
11
|
+
const styles = _reactNative.StyleSheet.create({
|
|
12
|
+
container: {
|
|
13
|
+
gap: 8,
|
|
14
|
+
flexDirection: 'column',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
justifyContent: 'center'
|
|
17
|
+
},
|
|
18
|
+
choosePhotoLabel: {
|
|
19
|
+
color: theme.colors.primary
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
opacity: 0.5
|
|
23
|
+
},
|
|
24
|
+
imageContainer: {
|
|
25
|
+
width: 64,
|
|
26
|
+
height: 64,
|
|
27
|
+
borderRadius: 100,
|
|
28
|
+
position: 'relative'
|
|
29
|
+
},
|
|
30
|
+
image: {
|
|
31
|
+
width: '100%',
|
|
32
|
+
height: '100%',
|
|
33
|
+
borderRadius: 100,
|
|
34
|
+
objectFit: 'cover'
|
|
35
|
+
},
|
|
36
|
+
iconContainer: {
|
|
37
|
+
inset: 0,
|
|
38
|
+
zIndex: 10,
|
|
39
|
+
padding: 20,
|
|
40
|
+
borderRadius: 100,
|
|
41
|
+
position: 'absolute',
|
|
42
|
+
backgroundColor: theme.colors.transparentBlack
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
return {
|
|
46
|
+
styles,
|
|
47
|
+
theme
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
exports.useStyles = useStyles;
|
|
51
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativePaper","useStyles","theme","useTheme","styles","StyleSheet","create","container","gap","flexDirection","alignItems","justifyContent","choosePhotoLabel","color","colors","primary","disabled","opacity","imageContainer","width","height","borderRadius","position","image","objectFit","iconContainer","inset","zIndex","padding","backgroundColor","transparentBlack","exports"],"sourceRoot":"../../../../../../../../src","sources":["social/features/user/CreateProfile/components/ImageUpload/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAGO,MAAME,SAAS,GAAGA,CAAA,KAAM;EAC7B,MAAMC,KAAK,GAAG,IAAAC,0BAAQ,EAAa,CAAC;EAEpC,MAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;IAC/BC,SAAS,EAAE;MACTC,GAAG,EAAE,CAAC;MACNC,aAAa,EAAE,QAAQ;MACvBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE;IAClB,CAAC;IACDC,gBAAgB,EAAE;MAChBC,KAAK,EAAEX,KAAK,CAACY,MAAM,CAACC;IACtB,CAAC;IACDC,QAAQ,EAAE;MACRC,OAAO,EAAE;IACX,CAAC;IACDC,cAAc,EAAE;MACdC,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE,EAAE;MACVC,YAAY,EAAE,GAAG;MACjBC,QAAQ,EAAE;IACZ,CAAC;IACDC,KAAK,EAAE;MACLJ,KAAK,EAAE,MAAM;MACbC,MAAM,EAAE,MAAM;MACdC,YAAY,EAAE,GAAG;MACjBG,SAAS,EAAE;IACb,CAAC;IACDC,aAAa,EAAE;MACbC,KAAK,EAAE,CAAC;MACRC,MAAM,EAAE,EAAE;MACVC,OAAO,EAAE,EAAE;MACXP,YAAY,EAAE,GAAG;MACjBC,QAAQ,EAAE,UAAU;MACpBO,eAAe,EAAE3B,KAAK,CAACY,MAAM,CAACgB;IAChC;EACF,CAAC,CAAC;EAEF,OAAO;IAAE1B,MAAM;IAAEF;EAAM,CAAC;AAC1B,CAAC;AAAC6B,OAAA,CAAA9B,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TopBar = TopBar;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _styles = require("./styles");
|
|
9
|
+
var _BackButton = _interopRequireDefault(require("../../../../../elements/BackButton"));
|
|
10
|
+
var _elements = require("../../../../../elements");
|
|
11
|
+
var _enums = require("../../../../../enums");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function TopBar({
|
|
14
|
+
onCancel,
|
|
15
|
+
disabled
|
|
16
|
+
}) {
|
|
17
|
+
const {
|
|
18
|
+
styles
|
|
19
|
+
} = (0, _styles.useStyles)();
|
|
20
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
21
|
+
style: styles.container
|
|
22
|
+
}, /*#__PURE__*/React.createElement(_BackButton.default, {
|
|
23
|
+
disabled: disabled,
|
|
24
|
+
pageId: _enums.PageID.create_user_profile_page,
|
|
25
|
+
onPress: onCancel
|
|
26
|
+
}), /*#__PURE__*/React.createElement(_elements.Title, {
|
|
27
|
+
style: styles.title,
|
|
28
|
+
pageId: _enums.PageID.create_user_profile_page,
|
|
29
|
+
elementId: _enums.ElementID.title
|
|
30
|
+
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
31
|
+
style: styles.dummy
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=TopBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_styles","_BackButton","_interopRequireDefault","_elements","_enums","e","__esModule","default","TopBar","onCancel","disabled","styles","useStyles","React","createElement","View","style","container","pageId","PageID","create_user_profile_page","onPress","Title","title","elementId","ElementID","dummy"],"sourceRoot":"../../../../../../../../src","sources":["social/features/user/CreateProfile/components/TopBar/TopBar.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAAyD,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAOlD,SAASG,MAAMA,CAAC;EAAEC,QAAQ;EAAEC;AAAsB,CAAC,EAAE;EAC1D,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,iBAAS,EAAC,CAAC;EAE9B,oBACEC,KAAA,CAAAC,aAAA,CAAChB,YAAA,CAAAiB,IAAI;IAACC,KAAK,EAAEL,MAAM,CAACM;EAAU,gBAC5BJ,KAAA,CAAAC,aAAA,CAACb,WAAA,CAAAM,OAAU;IACTG,QAAQ,EAAEA,QAAS;IACnBQ,MAAM,EAAEC,aAAM,CAACC,wBAAyB;IACxCC,OAAO,EAAEZ;EAAS,CACnB,CAAC,eACFI,KAAA,CAAAC,aAAA,CAACX,SAAA,CAAAmB,KAAK;IACJN,KAAK,EAAEL,MAAM,CAACY,KAAM;IACpBL,MAAM,EAAEC,aAAM,CAACC,wBAAyB;IACxCI,SAAS,EAAEC,gBAAS,CAACF;EAAM,CAC5B,CAAC,eACFV,KAAA,CAAAC,aAAA,CAAChB,YAAA,CAAAiB,IAAI;IAACC,KAAK,EAAEL,MAAM,CAACe;EAAM,CAAE,CACxB,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "TopBar", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _TopBar.TopBar;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _TopBar = require("./TopBar");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_TopBar","require"],"sourceRoot":"../../../../../../../../src","sources":["social/features/user/CreateProfile/components/TopBar/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useStyles = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _reactNativePaper = require("react-native-paper");
|
|
9
|
+
const useStyles = () => {
|
|
10
|
+
const theme = (0, _reactNativePaper.useTheme)();
|
|
11
|
+
const styles = _reactNative.StyleSheet.create({
|
|
12
|
+
container: {
|
|
13
|
+
gap: 8,
|
|
14
|
+
paddingVertical: 16,
|
|
15
|
+
flexDirection: 'row',
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
paddingHorizontal: 12,
|
|
18
|
+
justifyContent: 'space-between',
|
|
19
|
+
backgroundColor: theme.colors.background
|
|
20
|
+
},
|
|
21
|
+
title: {
|
|
22
|
+
flex: 1,
|
|
23
|
+
textAlign: 'center',
|
|
24
|
+
color: theme.colors.base
|
|
25
|
+
},
|
|
26
|
+
dummy: {
|
|
27
|
+
width: 24,
|
|
28
|
+
height: 24
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return {
|
|
32
|
+
styles,
|
|
33
|
+
theme
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
exports.useStyles = useStyles;
|
|
37
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativePaper","useStyles","theme","useTheme","styles","StyleSheet","create","container","gap","paddingVertical","flexDirection","alignItems","paddingHorizontal","justifyContent","backgroundColor","colors","background","title","flex","textAlign","color","base","dummy","width","height","exports"],"sourceRoot":"../../../../../../../../src","sources":["social/features/user/CreateProfile/components/TopBar/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AAEO,MAAME,SAAS,GAAGA,CAAA,KAAM;EAC7B,MAAMC,KAAK,GAAG,IAAAC,0BAAQ,EAAa,CAAC;EAEpC,MAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;IAC/BC,SAAS,EAAE;MACTC,GAAG,EAAE,CAAC;MACNC,eAAe,EAAE,EAAE;MACnBC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE,QAAQ;MACpBC,iBAAiB,EAAE,EAAE;MACrBC,cAAc,EAAE,eAAe;MAC/BC,eAAe,EAAEZ,KAAK,CAACa,MAAM,CAACC;IAChC,CAAC;IACDC,KAAK,EAAE;MACLC,IAAI,EAAE,CAAC;MACPC,SAAS,EAAE,QAAQ;MACnBC,KAAK,EAAElB,KAAK,CAACa,MAAM,CAACM;IACtB,CAAC;IACDC,KAAK,EAAE;MACLC,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE;IACV;EACF,CAAC,CAAC;EAEF,OAAO;IAAEpB,MAAM;IAAEF;EAAM,CAAC;AAC1B,CAAC;AAACuB,OAAA,CAAAxB,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _ImageUpload = require("./ImageUpload");
|
|
7
|
+
Object.keys(_ImageUpload).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _ImageUpload[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _ImageUpload[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _TopBar = require("./TopBar");
|
|
18
|
+
Object.keys(_TopBar).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _TopBar[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _TopBar[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_ImageUpload","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_TopBar"],"sourceRoot":"../../../../../../../src","sources":["social/features/user/CreateProfile/components/index.ts"],"mappings":";;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,YAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,YAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,YAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _useCreateProfile = require("./useCreateProfile");
|
|
7
|
+
Object.keys(_useCreateProfile).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _useCreateProfile[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _useCreateProfile[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_useCreateProfile","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../../../src","sources":["social/features/user/CreateProfile/hooks/index.ts"],"mappings":";;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,iBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,iBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,iBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|