@replyke/core 5.1.6-beta.2 → 5.1.6-beta.20
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/dist/cjs/config/useAxiosPrivate.js +2 -2
- package/dist/cjs/config/useAxiosPrivate.js.map +1 -1
- package/dist/cjs/context/index.d.ts +0 -1
- package/dist/cjs/context/index.js +1 -5
- package/dist/cjs/context/index.js.map +1 -1
- package/dist/cjs/helpers/addNotificationsMessages.js +4 -0
- package/dist/cjs/helpers/addNotificationsMessages.js.map +1 -1
- package/dist/cjs/hooks/app-notifications/index.d.ts +3 -0
- package/dist/cjs/hooks/app-notifications/index.js +12 -0
- package/dist/cjs/hooks/app-notifications/index.js.map +1 -0
- package/dist/{esm/hooks/app-notifications-redux/useAppNotificationsRedux.d.ts → cjs/hooks/app-notifications/useAppNotifications.d.ts} +4 -4
- package/dist/cjs/hooks/{app-notifications-redux/useAppNotificationsRedux.js → app-notifications/useAppNotifications.js} +7 -7
- package/dist/cjs/hooks/app-notifications/useAppNotifications.js.map +1 -0
- package/dist/{esm/hooks/app-notifications-redux/useAppNotificationsActionsRedux.d.ts → cjs/hooks/app-notifications/useAppNotificationsActions.d.ts} +2 -2
- package/dist/cjs/hooks/{app-notifications-redux/useAppNotificationsActionsRedux.js → app-notifications/useAppNotificationsActions.js} +6 -6
- package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.js.map +1 -0
- package/dist/cjs/hooks/auth/index.d.ts +1 -0
- package/dist/cjs/hooks/auth/index.js +9 -0
- package/dist/cjs/hooks/auth/index.js.map +1 -0
- package/dist/{esm/hooks/auth-redux/useAuthRedux.d.ts → cjs/hooks/auth/useAuth.d.ts} +2 -2
- package/dist/cjs/hooks/{auth-redux/useAuthRedux.js → auth/useAuth.js} +3 -3
- package/dist/cjs/hooks/auth/useAuth.js.map +1 -0
- package/dist/cjs/hooks/comments/useCommentSectionData.js +3 -2
- package/dist/cjs/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/cjs/hooks/comments/useCommentVotes.js +2 -2
- package/dist/cjs/hooks/comments/useCommentVotes.js.map +1 -1
- package/dist/cjs/hooks/comments/useCreateComment.js +2 -2
- package/dist/cjs/hooks/comments/useCreateComment.js.map +1 -1
- package/dist/cjs/hooks/entities/index.d.ts +1 -3
- package/dist/cjs/hooks/entities/index.js +2 -6
- package/dist/cjs/hooks/entities/index.js.map +1 -1
- package/dist/cjs/hooks/entities/useEntityData.js +3 -8
- package/dist/cjs/hooks/entities/useEntityData.js.map +1 -1
- package/dist/cjs/hooks/entities/useEntityVotes.js +2 -2
- package/dist/cjs/hooks/entities/useEntityVotes.js.map +1 -1
- package/dist/cjs/hooks/entity-lists/index.d.ts +4 -0
- package/dist/cjs/hooks/entity-lists/index.js +11 -0
- package/dist/cjs/hooks/entity-lists/index.js.map +1 -0
- package/dist/cjs/hooks/entity-lists/useEntityList.d.ts +53 -0
- package/dist/cjs/hooks/entity-lists/useEntityList.js +354 -0
- package/dist/cjs/hooks/entity-lists/useEntityList.js.map +1 -0
- package/dist/cjs/hooks/entity-lists/useEntityListActions.d.ts +51 -0
- package/dist/cjs/hooks/entity-lists/useEntityListActions.js +201 -0
- package/dist/cjs/hooks/entity-lists/useEntityListActions.js.map +1 -0
- package/dist/cjs/hooks/entity-lists/useInfusedData.js.map +1 -0
- package/dist/cjs/hooks/lists/index.d.ts +3 -0
- package/dist/cjs/hooks/lists/index.js +14 -0
- package/dist/cjs/hooks/lists/index.js.map +1 -0
- package/dist/cjs/hooks/lists/useIsEntitySaved.d.ts +5 -0
- package/dist/cjs/hooks/{entities/useFetchManyEntities.js → lists/useIsEntitySaved.js} +18 -28
- package/dist/cjs/hooks/lists/useIsEntitySaved.js.map +1 -0
- package/dist/cjs/hooks/{lists-redux/useListsRedux.d.ts → lists/useLists.d.ts} +4 -4
- package/dist/cjs/hooks/{lists-redux/useListsRedux.js → lists/useLists.js} +13 -13
- package/dist/cjs/hooks/lists/useLists.js.map +1 -0
- package/dist/cjs/hooks/{lists-redux/useListsActionsRedux.d.ts → lists/useListsActions.d.ts} +2 -2
- package/dist/cjs/hooks/{lists-redux/useListsActionsRedux.js → lists/useListsActions.js} +4 -4
- package/dist/cjs/hooks/lists/useListsActions.js.map +1 -0
- package/dist/cjs/hooks/reports/useCreateReport.js +2 -2
- package/dist/cjs/hooks/reports/useCreateReport.js.map +1 -1
- package/dist/cjs/hooks/user/index.d.ts +2 -0
- package/dist/cjs/hooks/user/index.js +12 -0
- package/dist/cjs/hooks/user/index.js.map +1 -0
- package/dist/cjs/hooks/{user-redux/useUserRedux.d.ts → user/useUser.d.ts} +4 -4
- package/dist/cjs/hooks/{user-redux/useUserRedux.js → user/useUser.js} +5 -5
- package/dist/cjs/hooks/user/useUser.js.map +1 -0
- package/dist/cjs/hooks/{user-redux/useUserActionsRedux.d.ts → user/useUserActions.d.ts} +2 -2
- package/dist/cjs/hooks/{user-redux/useUserActionsRedux.js → user/useUserActions.js} +4 -4
- package/dist/cjs/hooks/user/useUserActions.js.map +1 -0
- package/dist/cjs/hooks/users/follows/useFetchFollow.js +2 -2
- package/dist/cjs/hooks/users/follows/useFetchFollow.js.map +1 -1
- package/dist/cjs/hooks/users/follows/useUnfollowUser.js +2 -2
- package/dist/cjs/hooks/users/follows/useUnfollowUser.js.map +1 -1
- package/dist/cjs/hooks/users/index.js +0 -3
- package/dist/cjs/hooks/users/index.js.map +1 -1
- package/dist/cjs/index.d.ts +9 -8
- package/dist/cjs/index.js +26 -18
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/models/AppNotification.d.ts +12 -2
- package/dist/cjs/interfaces/models/Comment.d.ts +1 -0
- package/dist/cjs/interfaces/models/Entity.d.ts +1 -0
- package/dist/cjs/store/api/appNotificationsApi.d.ts +121 -121
- package/dist/cjs/store/api/baseApi.d.ts +1 -1
- package/dist/cjs/store/api/baseApi.js +4 -3
- package/dist/cjs/store/api/baseApi.js.map +1 -1
- package/dist/cjs/store/api/entityListsApi.d.ts +1719 -0
- package/dist/cjs/store/api/entityListsApi.js +201 -0
- package/dist/cjs/store/api/entityListsApi.js.map +1 -0
- package/dist/cjs/store/api/index.d.ts +1 -0
- package/dist/cjs/store/api/index.js +2 -1
- package/dist/cjs/store/api/index.js.map +1 -1
- package/dist/cjs/store/api/listsApi.d.ts +166 -166
- package/dist/cjs/store/api/userApi.d.ts +3 -3
- package/dist/cjs/store/api/userApi.js +1 -1
- package/dist/cjs/store/api/userApi.js.map +1 -1
- package/dist/cjs/store/index.d.ts +6 -4
- package/dist/cjs/store/index.js +2 -1
- package/dist/cjs/store/index.js.map +1 -1
- package/dist/cjs/store/middleware.js +3 -2
- package/dist/cjs/store/middleware.js.map +1 -1
- package/dist/cjs/store/rootReducer.d.ts +4 -2
- package/dist/cjs/store/rootReducer.js +2 -0
- package/dist/cjs/store/rootReducer.js.map +1 -1
- package/dist/cjs/store/slices/entityListsSlice.d.ts +363 -0
- package/dist/cjs/store/slices/entityListsSlice.js +295 -0
- package/dist/cjs/store/slices/entityListsSlice.js.map +1 -0
- package/dist/cjs/store/slices/index.d.ts +0 -1
- package/dist/cjs/store/slices/index.js +2 -18
- package/dist/cjs/store/slices/index.js.map +1 -1
- package/dist/cjs/store/slices/listsSlice.d.ts +17 -10
- package/dist/cjs/store/slices/listsSlice.js +108 -109
- package/dist/cjs/store/slices/listsSlice.js.map +1 -1
- package/dist/cjs/utils/env.d.ts +19 -0
- package/dist/cjs/utils/env.js +102 -0
- package/dist/cjs/utils/env.js.map +1 -0
- package/dist/cjs/utils/keywordHelpers.d.ts +30 -0
- package/dist/cjs/utils/keywordHelpers.js +101 -0
- package/dist/cjs/utils/keywordHelpers.js.map +1 -0
- package/dist/esm/config/useAxiosPrivate.js +2 -2
- package/dist/esm/config/useAxiosPrivate.js.map +1 -1
- package/dist/esm/context/index.d.ts +0 -1
- package/dist/esm/context/index.js +0 -3
- package/dist/esm/context/index.js.map +1 -1
- package/dist/esm/helpers/addNotificationsMessages.js +4 -0
- package/dist/esm/helpers/addNotificationsMessages.js.map +1 -1
- package/dist/esm/hooks/app-notifications/index.d.ts +3 -0
- package/dist/esm/hooks/app-notifications/index.js +4 -0
- package/dist/esm/hooks/app-notifications/index.js.map +1 -0
- package/dist/{cjs/hooks/app-notifications-redux/useAppNotificationsRedux.d.ts → esm/hooks/app-notifications/useAppNotifications.d.ts} +4 -4
- package/dist/esm/hooks/{app-notifications-redux/useAppNotificationsRedux.js → app-notifications/useAppNotifications.js} +7 -7
- package/dist/esm/hooks/app-notifications/useAppNotifications.js.map +1 -0
- package/dist/{cjs/hooks/app-notifications-redux/useAppNotificationsActionsRedux.d.ts → esm/hooks/app-notifications/useAppNotificationsActions.d.ts} +2 -2
- package/dist/esm/hooks/{app-notifications-redux/useAppNotificationsActionsRedux.js → app-notifications/useAppNotificationsActions.js} +5 -5
- package/dist/esm/hooks/app-notifications/useAppNotificationsActions.js.map +1 -0
- package/dist/esm/hooks/auth/index.d.ts +1 -0
- package/dist/esm/hooks/auth/index.js +2 -0
- package/dist/esm/hooks/auth/index.js.map +1 -0
- package/dist/{cjs/hooks/auth-redux/useAuthRedux.d.ts → esm/hooks/auth/useAuth.d.ts} +2 -2
- package/dist/esm/hooks/{auth-redux/useAuthRedux.js → auth/useAuth.js} +2 -2
- package/dist/esm/hooks/auth/useAuth.js.map +1 -0
- package/dist/esm/hooks/comments/useCommentSectionData.js +3 -2
- package/dist/esm/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/esm/hooks/comments/useCommentVotes.js +2 -2
- package/dist/esm/hooks/comments/useCommentVotes.js.map +1 -1
- package/dist/esm/hooks/comments/useCreateComment.js +2 -2
- package/dist/esm/hooks/comments/useCreateComment.js.map +1 -1
- package/dist/esm/hooks/entities/index.d.ts +1 -3
- package/dist/esm/hooks/entities/index.js +1 -3
- package/dist/esm/hooks/entities/index.js.map +1 -1
- package/dist/esm/hooks/entities/useEntityData.js +3 -8
- package/dist/esm/hooks/entities/useEntityData.js.map +1 -1
- package/dist/esm/hooks/entities/useEntityVotes.js +2 -2
- package/dist/esm/hooks/entities/useEntityVotes.js.map +1 -1
- package/dist/esm/hooks/entity-lists/index.d.ts +4 -0
- package/dist/esm/hooks/entity-lists/index.js +3 -0
- package/dist/esm/hooks/entity-lists/index.js.map +1 -0
- package/dist/esm/hooks/entity-lists/useEntityList.d.ts +53 -0
- package/dist/esm/hooks/entity-lists/useEntityList.js +349 -0
- package/dist/esm/hooks/entity-lists/useEntityList.js.map +1 -0
- package/dist/esm/hooks/entity-lists/useEntityListActions.d.ts +51 -0
- package/dist/esm/hooks/entity-lists/useEntityListActions.js +195 -0
- package/dist/esm/hooks/entity-lists/useEntityListActions.js.map +1 -0
- package/dist/esm/hooks/entity-lists/useInfusedData.js.map +1 -0
- package/dist/esm/hooks/lists/index.d.ts +3 -0
- package/dist/esm/hooks/lists/index.js +5 -0
- package/dist/esm/hooks/lists/index.js.map +1 -0
- package/dist/esm/hooks/lists/useIsEntitySaved.d.ts +5 -0
- package/dist/esm/hooks/{entities/useFetchManyEntities.js → lists/useIsEntitySaved.js} +19 -29
- package/dist/esm/hooks/lists/useIsEntitySaved.js.map +1 -0
- package/dist/esm/hooks/{lists-redux/useListsRedux.d.ts → lists/useLists.d.ts} +4 -4
- package/dist/esm/hooks/{lists-redux/useListsRedux.js → lists/useLists.js} +14 -14
- package/dist/esm/hooks/lists/useLists.js.map +1 -0
- package/dist/esm/hooks/{lists-redux/useListsActionsRedux.d.ts → lists/useListsActions.d.ts} +2 -2
- package/dist/esm/hooks/{lists-redux/useListsActionsRedux.js → lists/useListsActions.js} +3 -3
- package/dist/esm/hooks/lists/useListsActions.js.map +1 -0
- package/dist/esm/hooks/reports/useCreateReport.js +2 -2
- package/dist/esm/hooks/reports/useCreateReport.js.map +1 -1
- package/dist/esm/hooks/user/index.d.ts +2 -0
- package/dist/esm/hooks/user/index.js +4 -0
- package/dist/esm/hooks/user/index.js.map +1 -0
- package/dist/esm/hooks/{user-redux/useUserRedux.d.ts → user/useUser.d.ts} +4 -4
- package/dist/esm/hooks/{user-redux/useUserRedux.js → user/useUser.js} +5 -5
- package/dist/esm/hooks/user/useUser.js.map +1 -0
- package/dist/esm/hooks/{user-redux/useUserActionsRedux.d.ts → user/useUserActions.d.ts} +2 -2
- package/dist/esm/hooks/{user-redux/useUserActionsRedux.js → user/useUserActions.js} +3 -3
- package/dist/esm/hooks/user/useUserActions.js.map +1 -0
- package/dist/esm/hooks/users/follows/useFetchFollow.js +2 -2
- package/dist/esm/hooks/users/follows/useFetchFollow.js.map +1 -1
- package/dist/esm/hooks/users/follows/useUnfollowUser.js +2 -2
- package/dist/esm/hooks/users/follows/useUnfollowUser.js.map +1 -1
- package/dist/esm/hooks/users/index.js +0 -3
- package/dist/esm/hooks/users/index.js.map +1 -1
- package/dist/esm/index.d.ts +9 -8
- package/dist/esm/index.js +11 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/models/AppNotification.d.ts +12 -2
- package/dist/esm/interfaces/models/Comment.d.ts +1 -0
- package/dist/esm/interfaces/models/Entity.d.ts +1 -0
- package/dist/esm/store/api/appNotificationsApi.d.ts +121 -121
- package/dist/esm/store/api/baseApi.d.ts +1 -1
- package/dist/esm/store/api/baseApi.js +4 -3
- package/dist/esm/store/api/baseApi.js.map +1 -1
- package/dist/esm/store/api/entityListsApi.d.ts +1719 -0
- package/dist/esm/store/api/entityListsApi.js +198 -0
- package/dist/esm/store/api/entityListsApi.js.map +1 -0
- package/dist/esm/store/api/index.d.ts +1 -0
- package/dist/esm/store/api/index.js +2 -1
- package/dist/esm/store/api/index.js.map +1 -1
- package/dist/esm/store/api/listsApi.d.ts +166 -166
- package/dist/esm/store/api/userApi.d.ts +3 -3
- package/dist/esm/store/api/userApi.js +1 -1
- package/dist/esm/store/api/userApi.js.map +1 -1
- package/dist/esm/store/index.d.ts +6 -4
- package/dist/esm/store/index.js +2 -1
- package/dist/esm/store/index.js.map +1 -1
- package/dist/esm/store/middleware.js +3 -2
- package/dist/esm/store/middleware.js.map +1 -1
- package/dist/esm/store/rootReducer.d.ts +4 -2
- package/dist/esm/store/rootReducer.js +2 -0
- package/dist/esm/store/rootReducer.js.map +1 -1
- package/dist/esm/store/slices/entityListsSlice.d.ts +363 -0
- package/dist/esm/store/slices/entityListsSlice.js +292 -0
- package/dist/esm/store/slices/entityListsSlice.js.map +1 -0
- package/dist/esm/store/slices/index.d.ts +0 -1
- package/dist/esm/store/slices/index.js +3 -3
- package/dist/esm/store/slices/index.js.map +1 -1
- package/dist/esm/store/slices/listsSlice.d.ts +17 -10
- package/dist/esm/store/slices/listsSlice.js +104 -106
- package/dist/esm/store/slices/listsSlice.js.map +1 -1
- package/dist/esm/utils/env.d.ts +19 -0
- package/dist/esm/utils/env.js +96 -0
- package/dist/esm/utils/env.js.map +1 -0
- package/dist/esm/utils/keywordHelpers.d.ts +30 -0
- package/dist/esm/utils/keywordHelpers.js +98 -0
- package/dist/esm/utils/keywordHelpers.js.map +1 -0
- package/package.json +1 -1
- package/dist/cjs/context/entity-list-context.d.ts +0 -9
- package/dist/cjs/context/entity-list-context.js +0 -28
- package/dist/cjs/context/entity-list-context.js.map +0 -1
- package/dist/cjs/hooks/app-notifications-redux/index.d.ts +0 -3
- package/dist/cjs/hooks/app-notifications-redux/index.js +0 -12
- package/dist/cjs/hooks/app-notifications-redux/index.js.map +0 -1
- package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsActionsRedux.js.map +0 -1
- package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsRedux.js.map +0 -1
- package/dist/cjs/hooks/auth-redux/index.d.ts +0 -2
- package/dist/cjs/hooks/auth-redux/index.js +0 -11
- package/dist/cjs/hooks/auth-redux/index.js.map +0 -1
- package/dist/cjs/hooks/auth-redux/useAuthRedux.js.map +0 -1
- package/dist/cjs/hooks/auth-redux/useUserRedux.d.ts +0 -6
- package/dist/cjs/hooks/auth-redux/useUserRedux.js +0 -20
- package/dist/cjs/hooks/auth-redux/useUserRedux.js.map +0 -1
- package/dist/cjs/hooks/entities/useEntityList.d.ts +0 -2
- package/dist/cjs/hooks/entities/useEntityList.js +0 -9
- package/dist/cjs/hooks/entities/useEntityList.js.map +0 -1
- package/dist/cjs/hooks/entities/useEntityListData.d.ts +0 -78
- package/dist/cjs/hooks/entities/useEntityListData.js +0 -394
- package/dist/cjs/hooks/entities/useEntityListData.js.map +0 -1
- package/dist/cjs/hooks/entities/useFetchManyEntities.d.ts +0 -25
- package/dist/cjs/hooks/entities/useFetchManyEntities.js.map +0 -1
- package/dist/cjs/hooks/entities/useInfusedData.js.map +0 -1
- package/dist/cjs/hooks/lists-redux/index.d.ts +0 -2
- package/dist/cjs/hooks/lists-redux/index.js +0 -12
- package/dist/cjs/hooks/lists-redux/index.js.map +0 -1
- package/dist/cjs/hooks/lists-redux/useListsActionsRedux.js.map +0 -1
- package/dist/cjs/hooks/lists-redux/useListsRedux.js.map +0 -1
- package/dist/cjs/hooks/user-redux/index.d.ts +0 -2
- package/dist/cjs/hooks/user-redux/index.js +0 -12
- package/dist/cjs/hooks/user-redux/index.js.map +0 -1
- package/dist/cjs/hooks/user-redux/useUserActionsRedux.js.map +0 -1
- package/dist/cjs/hooks/user-redux/useUserRedux.js.map +0 -1
- package/dist/esm/context/entity-list-context.d.ts +0 -9
- package/dist/esm/context/entity-list-context.js +0 -21
- package/dist/esm/context/entity-list-context.js.map +0 -1
- package/dist/esm/hooks/app-notifications-redux/index.d.ts +0 -3
- package/dist/esm/hooks/app-notifications-redux/index.js +0 -4
- package/dist/esm/hooks/app-notifications-redux/index.js.map +0 -1
- package/dist/esm/hooks/app-notifications-redux/useAppNotificationsActionsRedux.js.map +0 -1
- package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.js.map +0 -1
- package/dist/esm/hooks/auth-redux/index.d.ts +0 -2
- package/dist/esm/hooks/auth-redux/index.js +0 -3
- package/dist/esm/hooks/auth-redux/index.js.map +0 -1
- package/dist/esm/hooks/auth-redux/useAuthRedux.js.map +0 -1
- package/dist/esm/hooks/auth-redux/useUserRedux.d.ts +0 -6
- package/dist/esm/hooks/auth-redux/useUserRedux.js +0 -17
- package/dist/esm/hooks/auth-redux/useUserRedux.js.map +0 -1
- package/dist/esm/hooks/entities/useEntityList.d.ts +0 -2
- package/dist/esm/hooks/entities/useEntityList.js +0 -6
- package/dist/esm/hooks/entities/useEntityList.js.map +0 -1
- package/dist/esm/hooks/entities/useEntityListData.d.ts +0 -78
- package/dist/esm/hooks/entities/useEntityListData.js +0 -389
- package/dist/esm/hooks/entities/useEntityListData.js.map +0 -1
- package/dist/esm/hooks/entities/useFetchManyEntities.d.ts +0 -25
- package/dist/esm/hooks/entities/useFetchManyEntities.js.map +0 -1
- package/dist/esm/hooks/entities/useInfusedData.js.map +0 -1
- package/dist/esm/hooks/lists-redux/index.d.ts +0 -2
- package/dist/esm/hooks/lists-redux/index.js +0 -4
- package/dist/esm/hooks/lists-redux/index.js.map +0 -1
- package/dist/esm/hooks/lists-redux/useListsActionsRedux.js.map +0 -1
- package/dist/esm/hooks/lists-redux/useListsRedux.js.map +0 -1
- package/dist/esm/hooks/user-redux/index.d.ts +0 -2
- package/dist/esm/hooks/user-redux/index.js +0 -4
- package/dist/esm/hooks/user-redux/index.js.map +0 -1
- package/dist/esm/hooks/user-redux/useUserActionsRedux.js.map +0 -1
- package/dist/esm/hooks/user-redux/useUserRedux.js.map +0 -1
- /package/dist/cjs/hooks/{entities → entity-lists}/useInfusedData.d.ts +0 -0
- /package/dist/cjs/hooks/{entities → entity-lists}/useInfusedData.js +0 -0
- /package/dist/esm/hooks/{entities → entity-lists}/useInfusedData.d.ts +0 -0
- /package/dist/esm/hooks/{entities → entity-lists}/useInfusedData.js +0 -0
|
@@ -36,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.useUserActions = useUserActions;
|
|
40
40
|
var react_1 = require("react");
|
|
41
41
|
var react_redux_1 = require("react-redux");
|
|
42
42
|
var userSlice_1 = require("../../store/slices/userSlice");
|
|
@@ -45,7 +45,7 @@ var userApi_1 = require("../../store/api/userApi");
|
|
|
45
45
|
* Redux-powered hook that provides current user management actions
|
|
46
46
|
* Focused on current user operations only
|
|
47
47
|
*/
|
|
48
|
-
function
|
|
48
|
+
function useUserActions() {
|
|
49
49
|
var _this = this;
|
|
50
50
|
var dispatch = (0, react_redux_1.useDispatch)();
|
|
51
51
|
// RTK Query mutations for current user
|
|
@@ -121,5 +121,5 @@ function useUserActionsRedux() {
|
|
|
121
121
|
clearError: clearUserError,
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
exports.default =
|
|
125
|
-
//# sourceMappingURL=
|
|
124
|
+
exports.default = useUserActions;
|
|
125
|
+
//# sourceMappingURL=useUserActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUserActions.js","sourceRoot":"","sources":["../../../../src/hooks/user/useUserActions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,wCAiFC;AArGD,+BAAoC;AACpC,2CAA0C;AAE1C,0DAOsC;AACtC,mDAGiC;AAEjC;;;GAGG;AACH,SAAgB,cAAc;IAA9B,iBAiFC;IAhFC,IAAM,QAAQ,GAAG,IAAA,yBAAW,GAAe,CAAC;IAE5C,uCAAuC;IAChC,IAAA,kBAAkB,GAAI,IAAA,+BAAqB,GAAE,GAA3B,CAA4B;IAErD,+BAA+B;IAC/B,IAAM,aAAa,GAAG,IAAA,mBAAW,EAAC,UAAC,IAAS;QAC1C,QAAQ,CAAC,IAAA,mBAAO,EAAC,IAAI,CAAC,CAAC,CAAC;QACxB,QAAQ,CAAC,IAAA,sBAAU,GAAE,CAAC,CAAC;IACzB,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,IAAM,eAAe,GAAG,IAAA,mBAAW,EAAC;QAClC,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AAC,KAAK,CAAC,CAAC,CAAC;;;;;SAEhC,EACD,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAC/B,CAAC;IAEF,kEAAkE;IAClE,iBAAiB;IACjB,4BAA4B;IAC5B,mCAAmC;IACnC,4BAA4B;IAE5B,yBAAyB;IACzB,IAAM,cAAc,GAAG,IAAA,mBAAW,EAAC;QACjC,QAAQ,CAAC,IAAA,sBAAU,GAAE,CAAC,CAAC;IACzB,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO;QACL,+BAA+B;QAC/B,OAAO,EAAE,aAAa;QACtB,SAAS,EAAE,eAAe;QAE1B,0BAA0B;QAC1B,UAAU,YAAA;QAEV,iBAAiB;QACjB,UAAU,EAAE,cAAc;KAC3B,CAAC;AACJ,CAAC;AAED,kBAAe,cAAc,CAAC"}
|
|
@@ -42,12 +42,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
var react_1 = require("react");
|
|
43
43
|
var useAxiosPrivate_1 = __importDefault(require("../../../config/useAxiosPrivate"));
|
|
44
44
|
var useProject_1 = __importDefault(require("../../projects/useProject"));
|
|
45
|
-
var
|
|
45
|
+
var user_1 = require("../../user");
|
|
46
46
|
function useFetchFollow() {
|
|
47
47
|
var _this = this;
|
|
48
48
|
var axios = (0, useAxiosPrivate_1.default)();
|
|
49
49
|
var projectId = (0, useProject_1.default)().projectId;
|
|
50
|
-
var user = (0,
|
|
50
|
+
var user = (0, user_1.useUser)().user;
|
|
51
51
|
var fetchFollow = (0, react_1.useCallback)(function (props) { return __awaiter(_this, void 0, void 0, function () {
|
|
52
52
|
var userId, response;
|
|
53
53
|
return __generator(this, function (_a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchFollow.js","sourceRoot":"","sources":["../../../../../src/hooks/users/follows/useFetchFollow.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;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O,WAAW,CAAC;AACrB,CAAC;AAED,kBAAe,cAAc,CAAC"}
|
|
@@ -42,12 +42,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
var react_1 = require("react");
|
|
43
43
|
var useAxiosPrivate_1 = __importDefault(require("../../../config/useAxiosPrivate"));
|
|
44
44
|
var useProject_1 = __importDefault(require("../../projects/useProject"));
|
|
45
|
-
var
|
|
45
|
+
var user_1 = require("../../user");
|
|
46
46
|
function useUnfollowUser() {
|
|
47
47
|
var _this = this;
|
|
48
48
|
var axios = (0, useAxiosPrivate_1.default)();
|
|
49
49
|
var projectId = (0, useProject_1.default)().projectId;
|
|
50
|
-
var user = (0,
|
|
50
|
+
var user = (0, user_1.useUser)().user;
|
|
51
51
|
var unfollowUser = (0, react_1.useCallback)(function (props) { return __awaiter(_this, void 0, void 0, function () {
|
|
52
52
|
var userId;
|
|
53
53
|
return __generator(this, function (_a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUnfollowUser.js","sourceRoot":"","sources":["../../../../../src/hooks/users/follows/useUnfollowUser.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,oFAA8D;AAC9D,yEAAmD;AACnD
|
|
1
|
+
{"version":3,"file":"useUnfollowUser.js","sourceRoot":"","sources":["../../../../../src/hooks/users/follows/useUnfollowUser.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,oFAA8D;AAC9D,yEAAmD;AACnD,mCAAqC;AAErC,SAAS,eAAe;IAAxB,iBAgCC;IA/BC,IAAM,KAAK,GAAG,IAAA,yBAAe,GAAE,CAAC;IACxB,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAC3B,IAAA,IAAI,GAAK,IAAA,cAAO,GAAE,KAAd,CAAe;IAE3B,IAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,UAAO,KAAyB;;;;;oBACtB,MAAM,GAAK,KAAK,OAAV,CAAW;oBACzB,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,IAAI,EAAE,CAAC;wBACV,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,MAAM,EAAE,CAAC;wBACZ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAED,IAAI,MAAM,KAAK,IAAI,CAAC,EAAE,EAAE,CAAC;wBACvB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;oBACrD,CAAC;oBAED,qBAAM,KAAK,CAAC,MAAM,CAAC,WAAI,SAAS,oBAAU,MAAM,YAAS,EAAE;4BACzD,eAAe,EAAE,IAAI;yBACtB,CAAC,EAAA;;oBAFF,SAEE,CAAC;;;;SACJ,EACD,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,CACzB,CAAC;IAEF,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -4,9 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.useUnfollowUser = exports.useFollowUser = exports.useFetchFollow = exports.useUpdateUser = exports.useMentions = exports.useFetchUserSuggestions = exports.useCheckUsernameAvailability = exports.useFetchUserFollowingCount = exports.useFetchUserFollowersCount = exports.useFetchUserByForeignId = exports.useFetchUser = void 0;
|
|
7
|
-
// Legacy hooks moved to legacy folder
|
|
8
|
-
// export { default as useUser } from "./useUser";
|
|
9
|
-
// export { default as useUserData } from "./useUserData";
|
|
10
7
|
var useFetchUser_1 = require("./useFetchUser");
|
|
11
8
|
Object.defineProperty(exports, "useFetchUser", { enumerable: true, get: function () { return __importDefault(useFetchUser_1).default; } });
|
|
12
9
|
var useFetchUserByForeignId_1 = require("./useFetchUserByForeignId");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/users/index.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/users/index.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB;AAChC,qEAA+E;AAAtE,mJAAA,OAAO,OAA2B;AAC3C,2EAAqF;AAA5E,yJAAA,OAAO,OAA8B;AAC9C,2EAAqF;AAA5E,yJAAA,OAAO,OAA8B;AAC9C,+EAAyF;AAAhF,6JAAA,OAAO,OAAgC;AAChD,qEAA+E;AAAtE,mJAAA,OAAO,OAA2B;AAC3C,6CAAuD;AAA9C,2HAAA,OAAO,OAAe;AAC/B,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB;AAEjC,qCAA2E;AAAlE,yGAAA,cAAc,OAAA;AAAE,wGAAA,aAAa,OAAA;AAAE,0GAAA,eAAe,OAAA"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
export { handleError } from "./utils/handleError";
|
|
2
|
+
export { keywordHelpers } from "./utils/keywordHelpers";
|
|
2
3
|
export { safeMergeStyleProps } from "./helpers/safeMergeStyleProps";
|
|
3
4
|
export { getUserName } from "./helpers/getUserName";
|
|
4
5
|
export { default as getPublicFileUrl } from "./helpers/getPublicFileUrl";
|
|
6
|
+
export { isDevelopment, isProduction, getApiBaseUrl, getEnvVar, } from "./utils/env";
|
|
5
7
|
export { reportReasons } from "./constants/reportReasons";
|
|
6
8
|
export type { ReportReasonKey } from "./constants/reportReasons";
|
|
7
|
-
export { ReplykeProvider,
|
|
8
|
-
ReplykeStoreProvider, // Advanced: standalone Redux provider
|
|
9
|
-
EntityListProvider, EntityProvider, CommentSectionProvider, } from "./context";
|
|
9
|
+
export { ReplykeProvider, EntityProvider, CommentSectionProvider, } from "./context";
|
|
10
10
|
export { useProject, useProjectData } from "./hooks/projects";
|
|
11
11
|
export { useSignTestingJwt } from "./hooks/crypto";
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export { useEntity, useEntityData, useCreateEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useUpdateEntity, useEntityVotes, useDeleteEntity,
|
|
12
|
+
export { useAuth, type UseAuthValues } from "./hooks/auth";
|
|
13
|
+
export { useUser, useUserActions, type UseUserProps, type UseUserValues, } from "./hooks/user";
|
|
14
|
+
export { useAppNotifications, useAppNotificationsActions, type UseAppNotificationsProps, type UseAppNotificationsValues, } from "./hooks/app-notifications";
|
|
15
|
+
export { useLists, useListsActions, useIsEntitySaved, type UseListsProps, type UseListsValues, } from "./hooks/lists";
|
|
16
|
+
export { useEntity, useEntityData, useCreateEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useUpdateEntity, useEntityVotes, useDeleteEntity, useInfusedData, } from "./hooks/entities";
|
|
17
|
+
export { useEntityList, useEntityListActions, type UseEntityListProps, type UseEntityListValues, type EntityListFilters, type EntityListFetchOptions, } from "./hooks/entity-lists";
|
|
17
18
|
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment, useCommentVotes, useDeleteComment, useEntityComments, useProfileComments, } from "./hooks/comments";
|
|
18
19
|
export { useFetchUser, useFetchUserByForeignId, useFetchUserFollowersCount, useFetchUserFollowingCount, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, useUpdateUser, useFetchFollow, useFollowUser, useUnfollowUser, } from "./hooks/users";
|
|
19
20
|
export { useCreateReport } from "./hooks/reports";
|
package/dist/cjs/index.js
CHANGED
|
@@ -36,25 +36,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.AppNotification = exports.useUploadFile = exports.useGetMetadata = exports.useCreateReport = exports.useUnfollowUser = exports.useFollowUser = exports.useFetchFollow = exports.useUpdateUser = exports.useMentions = void 0;
|
|
39
|
+
exports.useFetchUserByForeignId = exports.useFetchUser = exports.useProfileComments = exports.useEntityComments = exports.useDeleteComment = exports.useCommentVotes = exports.useUpdateComment = exports.useReplies = exports.useFetchCommentByForeignId = exports.useFetchComment = exports.useFetchManyComments = exports.useCreateComment = exports.useCommentSectionData = exports.useCommentSection = exports.useEntityListActions = exports.useEntityList = exports.useInfusedData = exports.useDeleteEntity = exports.useEntityVotes = exports.useUpdateEntity = exports.useFetchEntityByShortId = exports.useFetchEntityByForeignId = exports.useFetchEntity = exports.useCreateEntity = exports.useEntityData = exports.useEntity = exports.useIsEntitySaved = exports.useListsActions = exports.useLists = exports.useAppNotificationsActions = exports.useAppNotifications = exports.useUserActions = exports.useUser = exports.useAuth = exports.useSignTestingJwt = exports.useProjectData = exports.useProject = exports.CommentSectionProvider = exports.EntityProvider = exports.ReplykeProvider = exports.reportReasons = exports.getEnvVar = exports.getApiBaseUrl = exports.isProduction = exports.isDevelopment = exports.getPublicFileUrl = exports.getUserName = exports.safeMergeStyleProps = exports.keywordHelpers = exports.handleError = void 0;
|
|
40
|
+
exports.AppNotification = exports.useUploadFile = exports.useGetMetadata = exports.useCreateReport = exports.useUnfollowUser = exports.useFollowUser = exports.useFetchFollow = exports.useUpdateUser = exports.useMentions = exports.useFetchUserSuggestions = exports.useCheckUsernameAvailability = exports.useFetchUserFollowingCount = exports.useFetchUserFollowersCount = void 0;
|
|
41
41
|
// Helpers & Utilities
|
|
42
42
|
var handleError_1 = require("./utils/handleError");
|
|
43
43
|
Object.defineProperty(exports, "handleError", { enumerable: true, get: function () { return handleError_1.handleError; } });
|
|
44
|
+
var keywordHelpers_1 = require("./utils/keywordHelpers");
|
|
45
|
+
Object.defineProperty(exports, "keywordHelpers", { enumerable: true, get: function () { return keywordHelpers_1.keywordHelpers; } });
|
|
44
46
|
var safeMergeStyleProps_1 = require("./helpers/safeMergeStyleProps");
|
|
45
47
|
Object.defineProperty(exports, "safeMergeStyleProps", { enumerable: true, get: function () { return safeMergeStyleProps_1.safeMergeStyleProps; } });
|
|
46
48
|
var getUserName_1 = require("./helpers/getUserName");
|
|
47
49
|
Object.defineProperty(exports, "getUserName", { enumerable: true, get: function () { return getUserName_1.getUserName; } });
|
|
48
50
|
var getPublicFileUrl_1 = require("./helpers/getPublicFileUrl");
|
|
49
51
|
Object.defineProperty(exports, "getPublicFileUrl", { enumerable: true, get: function () { return __importDefault(getPublicFileUrl_1).default; } });
|
|
52
|
+
var env_1 = require("./utils/env");
|
|
53
|
+
Object.defineProperty(exports, "isDevelopment", { enumerable: true, get: function () { return env_1.isDevelopment; } });
|
|
54
|
+
Object.defineProperty(exports, "isProduction", { enumerable: true, get: function () { return env_1.isProduction; } });
|
|
55
|
+
Object.defineProperty(exports, "getApiBaseUrl", { enumerable: true, get: function () { return env_1.getApiBaseUrl; } });
|
|
56
|
+
Object.defineProperty(exports, "getEnvVar", { enumerable: true, get: function () { return env_1.getEnvVar; } });
|
|
50
57
|
// Constants
|
|
51
58
|
var reportReasons_1 = require("./constants/reportReasons");
|
|
52
59
|
Object.defineProperty(exports, "reportReasons", { enumerable: true, get: function () { return reportReasons_1.reportReasons; } });
|
|
53
60
|
// Context providers (Redux-powered by default)
|
|
54
61
|
var context_1 = require("./context");
|
|
55
62
|
Object.defineProperty(exports, "ReplykeProvider", { enumerable: true, get: function () { return context_1.ReplykeProvider; } });
|
|
56
|
-
Object.defineProperty(exports, "ReplykeStoreProvider", { enumerable: true, get: function () { return context_1.ReplykeStoreProvider; } });
|
|
57
|
-
Object.defineProperty(exports, "EntityListProvider", { enumerable: true, get: function () { return context_1.EntityListProvider; } });
|
|
58
63
|
Object.defineProperty(exports, "EntityProvider", { enumerable: true, get: function () { return context_1.EntityProvider; } });
|
|
59
64
|
Object.defineProperty(exports, "CommentSectionProvider", { enumerable: true, get: function () { return context_1.CommentSectionProvider; } });
|
|
60
65
|
// -- projects
|
|
@@ -65,20 +70,21 @@ Object.defineProperty(exports, "useProjectData", { enumerable: true, get: functi
|
|
|
65
70
|
var crypto_1 = require("./hooks/crypto");
|
|
66
71
|
Object.defineProperty(exports, "useSignTestingJwt", { enumerable: true, get: function () { return crypto_1.useSignTestingJwt; } });
|
|
67
72
|
// -- authentication (Redux-powered)
|
|
68
|
-
var
|
|
69
|
-
Object.defineProperty(exports, "
|
|
73
|
+
var auth_1 = require("./hooks/auth");
|
|
74
|
+
Object.defineProperty(exports, "useAuth", { enumerable: true, get: function () { return auth_1.useAuth; } });
|
|
75
|
+
// -- (current) user (Redux-powered)
|
|
76
|
+
var user_1 = require("./hooks/user");
|
|
77
|
+
Object.defineProperty(exports, "useUser", { enumerable: true, get: function () { return user_1.useUser; } });
|
|
78
|
+
Object.defineProperty(exports, "useUserActions", { enumerable: true, get: function () { return user_1.useUserActions; } });
|
|
70
79
|
// -- app notifications (Redux-powered)
|
|
71
|
-
var
|
|
72
|
-
Object.defineProperty(exports, "
|
|
73
|
-
Object.defineProperty(exports, "
|
|
80
|
+
var app_notifications_1 = require("./hooks/app-notifications");
|
|
81
|
+
Object.defineProperty(exports, "useAppNotifications", { enumerable: true, get: function () { return app_notifications_1.useAppNotifications; } });
|
|
82
|
+
Object.defineProperty(exports, "useAppNotificationsActions", { enumerable: true, get: function () { return app_notifications_1.useAppNotificationsActions; } });
|
|
74
83
|
// -- lists (Redux-powered)
|
|
75
|
-
var
|
|
76
|
-
Object.defineProperty(exports, "
|
|
77
|
-
Object.defineProperty(exports, "
|
|
78
|
-
|
|
79
|
-
var user_redux_1 = require("./hooks/user-redux");
|
|
80
|
-
Object.defineProperty(exports, "useUserRedux", { enumerable: true, get: function () { return user_redux_1.useUserRedux; } });
|
|
81
|
-
Object.defineProperty(exports, "useUserActionsRedux", { enumerable: true, get: function () { return user_redux_1.useUserActionsRedux; } });
|
|
84
|
+
var lists_1 = require("./hooks/lists");
|
|
85
|
+
Object.defineProperty(exports, "useLists", { enumerable: true, get: function () { return lists_1.useLists; } });
|
|
86
|
+
Object.defineProperty(exports, "useListsActions", { enumerable: true, get: function () { return lists_1.useListsActions; } });
|
|
87
|
+
Object.defineProperty(exports, "useIsEntitySaved", { enumerable: true, get: function () { return lists_1.useIsEntitySaved; } });
|
|
82
88
|
// -- entities
|
|
83
89
|
var entities_1 = require("./hooks/entities");
|
|
84
90
|
Object.defineProperty(exports, "useEntity", { enumerable: true, get: function () { return entities_1.useEntity; } });
|
|
@@ -90,9 +96,11 @@ Object.defineProperty(exports, "useFetchEntityByShortId", { enumerable: true, ge
|
|
|
90
96
|
Object.defineProperty(exports, "useUpdateEntity", { enumerable: true, get: function () { return entities_1.useUpdateEntity; } });
|
|
91
97
|
Object.defineProperty(exports, "useEntityVotes", { enumerable: true, get: function () { return entities_1.useEntityVotes; } });
|
|
92
98
|
Object.defineProperty(exports, "useDeleteEntity", { enumerable: true, get: function () { return entities_1.useDeleteEntity; } });
|
|
93
|
-
Object.defineProperty(exports, "useEntityList", { enumerable: true, get: function () { return entities_1.useEntityList; } });
|
|
94
|
-
Object.defineProperty(exports, "useEntityListData", { enumerable: true, get: function () { return entities_1.useEntityListData; } });
|
|
95
99
|
Object.defineProperty(exports, "useInfusedData", { enumerable: true, get: function () { return entities_1.useInfusedData; } });
|
|
100
|
+
// -- entity lists (Redux-powered)
|
|
101
|
+
var entity_lists_1 = require("./hooks/entity-lists");
|
|
102
|
+
Object.defineProperty(exports, "useEntityList", { enumerable: true, get: function () { return entity_lists_1.useEntityList; } });
|
|
103
|
+
Object.defineProperty(exports, "useEntityListActions", { enumerable: true, get: function () { return entity_lists_1.useEntityListActions; } });
|
|
96
104
|
// -- comments
|
|
97
105
|
var comments_1 = require("./hooks/comments");
|
|
98
106
|
Object.defineProperty(exports, "useCommentSection", { enumerable: true, get: function () { return comments_1.useCommentSection; } });
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,mDAAkD;AAAzC,0GAAA,WAAW,OAAA;AACpB,qEAAoE;AAA3D,0HAAA,mBAAmB,OAAA;AAC5B,qDAAoD;AAA3C,0GAAA,WAAW,OAAA;AACpB,+DAAyE;AAAhE,qIAAA,OAAO,OAAoB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,mDAAkD;AAAzC,0GAAA,WAAW,OAAA;AACpB,yDAAwD;AAA/C,gHAAA,cAAc,OAAA;AACvB,qEAAoE;AAA3D,0HAAA,mBAAmB,OAAA;AAC5B,qDAAoD;AAA3C,0GAAA,WAAW,OAAA;AACpB,+DAAyE;AAAhE,qIAAA,OAAO,OAAoB;AACpC,mCAKqB;AAJnB,oGAAA,aAAa,OAAA;AACb,mGAAA,YAAY,OAAA;AACZ,oGAAA,aAAa,OAAA;AACb,gGAAA,SAAS,OAAA;AAGX,YAAY;AACZ,2DAA0D;AAAjD,8GAAA,aAAa,OAAA;AAGtB,+CAA+C;AAC/C,qCAImB;AAHjB,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,iHAAA,sBAAsB,OAAA;AAGxB,cAAc;AACd,6CAA8D;AAArD,sGAAA,UAAU,OAAA;AAAE,0GAAA,cAAc,OAAA;AAEnC,YAAY;AACZ,yCAAmD;AAA1C,2GAAA,iBAAiB,OAAA;AAE1B,oCAAoC;AACpC,qCAA2D;AAAlD,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AAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,sGAAA,aAAa,OAAA;AACb,wGAAA,eAAe,OAAA;AAGjB,aAAa;AACb,2CAAkD;AAAzC,0GAAA,eAAe,OAAA;AAExB,aAAa;AACb,uCAA+C;AAAtC,uGAAA,cAAc,OAAA;AAEvB,aAAa;AACb,2CAAgD;AAAvC,wGAAA,aAAa,OAAA;AAKtB,uFAAuE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type AppNotificationType = "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "new-follow";
|
|
1
|
+
type AppNotificationType = "system" | "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "new-follow";
|
|
2
2
|
interface BaseAppNotification {
|
|
3
3
|
id: string;
|
|
4
4
|
userId: string;
|
|
@@ -9,6 +9,16 @@ interface BaseAppNotification {
|
|
|
9
9
|
content?: string;
|
|
10
10
|
createdAt: string;
|
|
11
11
|
}
|
|
12
|
+
export interface SystemNotification extends BaseAppNotification {
|
|
13
|
+
type: "system";
|
|
14
|
+
action: string;
|
|
15
|
+
metadata: {
|
|
16
|
+
buttonData: {
|
|
17
|
+
text: string;
|
|
18
|
+
url: string;
|
|
19
|
+
} | null;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
12
22
|
export interface EntityCommentNotification extends BaseAppNotification {
|
|
13
23
|
type: "entity-comment";
|
|
14
24
|
action: "open-comment";
|
|
@@ -113,7 +123,7 @@ export interface NewFollowNotification extends BaseAppNotification {
|
|
|
113
123
|
initiatorAvatar: string | null | undefined;
|
|
114
124
|
};
|
|
115
125
|
}
|
|
116
|
-
export type UnifiedAppNotification = EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification;
|
|
126
|
+
export type UnifiedAppNotification = SystemNotification | EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification;
|
|
117
127
|
export type NotificationTemplate = {
|
|
118
128
|
title?: string;
|
|
119
129
|
content?: string;
|