@replyke/core 7.0.0-beta.3 → 7.0.0-beta.30
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/hooks/auth/useAuth.d.ts +1 -1
- package/dist/cjs/hooks/auth/useAuth.js +2 -2
- package/dist/cjs/hooks/auth/useAuth.js.map +1 -1
- package/dist/cjs/hooks/collections/index.d.ts +4 -0
- package/dist/cjs/hooks/collections/index.js +16 -0
- package/dist/cjs/hooks/collections/index.js.map +1 -0
- package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.d.ts +21 -0
- package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.js +209 -0
- package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.js.map +1 -0
- package/dist/cjs/hooks/collections/useCollections.d.ts +43 -0
- package/dist/cjs/hooks/collections/useCollections.js +277 -0
- package/dist/cjs/hooks/collections/useCollections.js.map +1 -0
- package/dist/cjs/hooks/collections/useCollectionsActions.d.ts +21 -0
- package/dist/cjs/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +112 -118
- package/dist/cjs/hooks/collections/useCollectionsActions.js.map +1 -0
- package/dist/cjs/hooks/{lists → collections}/useIsEntitySaved.d.ts +2 -2
- package/dist/cjs/hooks/{lists → collections}/useIsEntitySaved.js +3 -3
- package/dist/cjs/hooks/collections/useIsEntitySaved.js.map +1 -0
- package/dist/cjs/hooks/comments/index.d.ts +2 -2
- package/dist/cjs/hooks/comments/index.js +3 -5
- package/dist/cjs/hooks/comments/index.js.map +1 -1
- package/dist/cjs/hooks/comments/useCommentSectionData.js +34 -11
- package/dist/cjs/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/cjs/hooks/comments/useEntityComments.d.ts +2 -1
- package/dist/cjs/hooks/comments/useEntityComments.js +2 -1
- package/dist/cjs/hooks/comments/useEntityComments.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchComment.d.ts +3 -4
- package/dist/cjs/hooks/comments/useFetchComment.js +7 -5
- package/dist/cjs/hooks/comments/useFetchComment.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchCommentByForeignId.d.ts +3 -4
- package/dist/cjs/hooks/comments/useFetchCommentByForeignId.js +9 -6
- package/dist/cjs/hooks/comments/useFetchCommentByForeignId.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchManyComments.d.ts +2 -2
- package/dist/cjs/hooks/comments/useFetchManyComments.js +5 -7
- package/dist/cjs/hooks/comments/useFetchManyComments.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchManyCommentsWrapper.d.ts +21 -0
- package/dist/cjs/hooks/comments/{useProfileComments.js → useFetchManyCommentsWrapper.js} +40 -18
- package/dist/cjs/hooks/comments/useFetchManyCommentsWrapper.js.map +1 -0
- package/dist/cjs/hooks/comments/useReplies.js +1 -0
- package/dist/cjs/hooks/comments/useReplies.js.map +1 -1
- package/dist/cjs/hooks/entities/index.d.ts +2 -5
- package/dist/cjs/hooks/entities/index.js +3 -11
- package/dist/cjs/hooks/entities/index.js.map +1 -1
- package/dist/cjs/hooks/entities/useCreateEntity.d.ts +27 -0
- package/dist/cjs/hooks/entities/useCreateEntity.js +88 -15
- package/dist/cjs/hooks/entities/useCreateEntity.js.map +1 -1
- package/dist/cjs/hooks/entities/useEntityData.d.ts +0 -6
- package/dist/cjs/hooks/entities/useEntityData.js +0 -19
- package/dist/cjs/hooks/entities/useEntityData.js.map +1 -1
- package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.d.ts +41 -0
- package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js +241 -0
- package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -0
- package/dist/cjs/hooks/entity-lists/index.d.ts +1 -1
- package/dist/cjs/hooks/entity-lists/useEntityList.d.ts +2 -2
- package/dist/cjs/hooks/entity-lists/useEntityList.js +45 -17
- package/dist/cjs/hooks/entity-lists/useEntityList.js.map +1 -1
- package/dist/cjs/hooks/entity-lists/useEntityListActions.d.ts +6 -3
- package/dist/cjs/hooks/entity-lists/useEntityListActions.js +3 -0
- package/dist/cjs/hooks/entity-lists/useEntityListActions.js.map +1 -1
- package/dist/cjs/hooks/reactions/index.d.ts +10 -0
- package/dist/cjs/hooks/reactions/index.js +21 -0
- package/dist/cjs/hooks/reactions/index.js.map +1 -0
- package/dist/cjs/hooks/reactions/useAddReaction.d.ts +9 -0
- package/dist/cjs/hooks/{comments/useUpvoteComment.js → reactions/useAddReaction.js} +19 -13
- package/dist/cjs/hooks/reactions/useAddReaction.js.map +1 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactions.d.ts +10 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactions.js +84 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactions.js.map +1 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.d.ts +17 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.js +170 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.js.map +1 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactions.d.ts +10 -0
- package/dist/cjs/hooks/{entities/useDownvoteEntity.js → reactions/useFetchEntityReactions.js} +26 -13
- package/dist/cjs/hooks/reactions/useFetchEntityReactions.js.map +1 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.d.ts +17 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.js +170 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.js.map +1 -0
- package/dist/cjs/hooks/reactions/useReactionToggle.d.ts +19 -0
- package/dist/cjs/hooks/reactions/useReactionToggle.js +146 -0
- package/dist/cjs/hooks/reactions/useReactionToggle.js.map +1 -0
- package/dist/cjs/hooks/reactions/useRemoveReaction.d.ts +7 -0
- package/dist/cjs/hooks/{comments/useRemoveCommentDownvote.js → reactions/useRemoveReaction.js} +16 -13
- package/dist/cjs/hooks/reactions/useRemoveReaction.js.map +1 -0
- package/dist/cjs/hooks/space-lists/useSpaceList.js +1 -1
- package/dist/cjs/hooks/space-lists/useSpaceList.js.map +1 -1
- package/dist/cjs/hooks/spaces/index.d.ts +1 -0
- package/dist/cjs/hooks/spaces/index.js +3 -1
- package/dist/cjs/hooks/spaces/index.js.map +1 -1
- package/dist/cjs/hooks/spaces/useCheckMyMembership.d.ts +5 -0
- package/dist/cjs/hooks/{comments/useDownvoteComment.js → spaces/useCheckMyMembership.js} +14 -14
- package/dist/cjs/hooks/spaces/useCheckMyMembership.js.map +1 -0
- package/dist/cjs/hooks/storage/index.d.ts +1 -0
- package/dist/cjs/hooks/storage/index.js +3 -1
- package/dist/cjs/hooks/storage/index.js.map +1 -1
- package/dist/cjs/hooks/storage/useUploadFile.d.ts +12 -1
- package/dist/cjs/hooks/storage/useUploadFile.js +22 -8
- package/dist/cjs/hooks/storage/useUploadFile.js.map +1 -1
- package/dist/cjs/hooks/storage/useUploadImage.d.ts +14 -0
- package/dist/cjs/hooks/storage/useUploadImage.js +161 -0
- package/dist/cjs/hooks/storage/useUploadImage.js.map +1 -0
- package/dist/cjs/hooks/users/index.d.ts +1 -0
- package/dist/cjs/hooks/users/index.js +3 -1
- package/dist/cjs/hooks/users/index.js.map +1 -1
- package/dist/cjs/hooks/users/useFetchUserByUsername.d.ts +5 -0
- package/dist/cjs/hooks/{comments/useRemoveCommentUpvote.js → users/useFetchUserByUsername.js} +14 -13
- package/dist/cjs/hooks/users/useFetchUserByUsername.js.map +1 -0
- package/dist/cjs/index.d.ts +12 -9
- package/dist/cjs/index.js +22 -15
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/models/{List.d.ts → Collection.d.ts} +2 -4
- package/dist/cjs/interfaces/models/Collection.js +3 -0
- package/dist/cjs/interfaces/models/Collection.js.map +1 -0
- package/dist/cjs/interfaces/models/Comment.d.ts +8 -1
- package/dist/cjs/interfaces/models/Entity.d.ts +44 -1
- package/dist/cjs/interfaces/models/Image.d.ts +35 -0
- package/dist/cjs/interfaces/models/{List.js → Image.js} +1 -1
- package/dist/cjs/interfaces/models/Image.js.map +1 -0
- package/dist/cjs/interfaces/models/Reaction.d.ts +23 -0
- package/dist/cjs/interfaces/models/Reaction.js +3 -0
- package/dist/cjs/interfaces/models/Reaction.js.map +1 -0
- package/dist/cjs/interfaces/models/Space.d.ts +13 -0
- package/dist/cjs/store/api/appNotificationsApi.d.ts +181 -181
- package/dist/cjs/store/api/baseApi.d.ts +1 -1
- package/dist/cjs/store/api/baseApi.js +2 -1
- package/dist/cjs/store/api/baseApi.js.map +1 -1
- package/dist/cjs/store/api/collectionsApi.d.ts +4541 -0
- package/dist/cjs/store/api/collectionsApi.js +244 -0
- package/dist/cjs/store/api/collectionsApi.js.map +1 -0
- package/dist/cjs/store/api/entityListsApi.d.ts +111 -110
- package/dist/cjs/store/api/entityListsApi.js +13 -8
- package/dist/cjs/store/api/entityListsApi.js.map +1 -1
- package/dist/cjs/store/api/index.d.ts +1 -1
- package/dist/cjs/store/api/index.js +2 -2
- package/dist/cjs/store/api/index.js.map +1 -1
- package/dist/cjs/store/api/spacesApi.d.ts +950 -950
- package/dist/cjs/store/api/userApi.d.ts +3 -3
- package/dist/cjs/store/index.d.ts +4 -4
- package/dist/cjs/store/rootReducer.d.ts +4 -4
- package/dist/cjs/store/rootReducer.js +2 -2
- package/dist/cjs/store/rootReducer.js.map +1 -1
- package/dist/cjs/store/slices/authSlice.d.ts +1 -3
- package/dist/cjs/store/slices/authSlice.js +3 -9
- package/dist/cjs/store/slices/authSlice.js.map +1 -1
- package/dist/cjs/store/slices/authThunks.js +0 -3
- package/dist/cjs/store/slices/authThunks.js.map +1 -1
- package/dist/cjs/store/slices/collectionsSlice.d.ts +427 -0
- package/dist/cjs/store/slices/collectionsSlice.js +211 -0
- package/dist/cjs/store/slices/collectionsSlice.js.map +1 -0
- package/dist/cjs/store/slices/entityListsSlice.d.ts +704 -63
- package/dist/cjs/store/slices/entityListsSlice.js +45 -21
- package/dist/cjs/store/slices/entityListsSlice.js.map +1 -1
- package/dist/cjs/store/slices/spaceListsSlice.d.ts +1 -1
- package/dist/esm/hooks/auth/useAuth.d.ts +1 -1
- package/dist/esm/hooks/auth/useAuth.js +3 -3
- package/dist/esm/hooks/auth/useAuth.js.map +1 -1
- package/dist/esm/hooks/collections/index.d.ts +4 -0
- package/dist/esm/hooks/collections/index.js +6 -0
- package/dist/esm/hooks/collections/index.js.map +1 -0
- package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.d.ts +21 -0
- package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.js +204 -0
- package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.js.map +1 -0
- package/dist/esm/hooks/collections/useCollections.d.ts +43 -0
- package/dist/esm/hooks/collections/useCollections.js +272 -0
- package/dist/esm/hooks/collections/useCollections.js.map +1 -0
- package/dist/esm/hooks/collections/useCollectionsActions.d.ts +21 -0
- package/dist/esm/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +103 -109
- package/dist/esm/hooks/collections/useCollectionsActions.js.map +1 -0
- package/dist/esm/hooks/{lists → collections}/useIsEntitySaved.d.ts +2 -2
- package/dist/esm/hooks/{lists → collections}/useIsEntitySaved.js +3 -3
- package/dist/esm/hooks/collections/useIsEntitySaved.js.map +1 -0
- package/dist/esm/hooks/comments/index.d.ts +2 -2
- package/dist/esm/hooks/comments/index.js +1 -2
- package/dist/esm/hooks/comments/index.js.map +1 -1
- package/dist/esm/hooks/comments/useCommentSectionData.js +34 -11
- package/dist/esm/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/esm/hooks/comments/useEntityComments.d.ts +2 -1
- package/dist/esm/hooks/comments/useEntityComments.js +2 -1
- package/dist/esm/hooks/comments/useEntityComments.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchComment.d.ts +3 -4
- package/dist/esm/hooks/comments/useFetchComment.js +7 -5
- package/dist/esm/hooks/comments/useFetchComment.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchCommentByForeignId.d.ts +3 -4
- package/dist/esm/hooks/comments/useFetchCommentByForeignId.js +9 -6
- package/dist/esm/hooks/comments/useFetchCommentByForeignId.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchManyComments.d.ts +2 -2
- package/dist/esm/hooks/comments/useFetchManyComments.js +5 -7
- package/dist/esm/hooks/comments/useFetchManyComments.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchManyCommentsWrapper.d.ts +21 -0
- package/dist/esm/hooks/comments/{useProfileComments.js → useFetchManyCommentsWrapper.js} +40 -18
- package/dist/esm/hooks/comments/useFetchManyCommentsWrapper.js.map +1 -0
- package/dist/esm/hooks/comments/useReplies.js +1 -0
- package/dist/esm/hooks/comments/useReplies.js.map +1 -1
- package/dist/esm/hooks/entities/index.d.ts +2 -5
- package/dist/esm/hooks/entities/index.js +1 -5
- package/dist/esm/hooks/entities/index.js.map +1 -1
- package/dist/esm/hooks/entities/useCreateEntity.d.ts +27 -0
- package/dist/esm/hooks/entities/useCreateEntity.js +88 -15
- package/dist/esm/hooks/entities/useCreateEntity.js.map +1 -1
- package/dist/esm/hooks/entities/useEntityData.d.ts +0 -6
- package/dist/esm/hooks/entities/useEntityData.js +0 -19
- package/dist/esm/hooks/entities/useEntityData.js.map +1 -1
- package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.d.ts +41 -0
- package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js +236 -0
- package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -0
- package/dist/esm/hooks/entity-lists/index.d.ts +1 -1
- package/dist/esm/hooks/entity-lists/useEntityList.d.ts +2 -2
- package/dist/esm/hooks/entity-lists/useEntityList.js +46 -18
- package/dist/esm/hooks/entity-lists/useEntityList.js.map +1 -1
- package/dist/esm/hooks/entity-lists/useEntityListActions.d.ts +6 -3
- package/dist/esm/hooks/entity-lists/useEntityListActions.js +3 -0
- package/dist/esm/hooks/entity-lists/useEntityListActions.js.map +1 -1
- package/dist/esm/hooks/reactions/index.d.ts +10 -0
- package/dist/esm/hooks/reactions/index.js +8 -0
- package/dist/esm/hooks/reactions/index.js.map +1 -0
- package/dist/esm/hooks/reactions/useAddReaction.d.ts +9 -0
- package/dist/esm/hooks/{comments/useUpvoteComment.js → reactions/useAddReaction.js} +19 -13
- package/dist/esm/hooks/reactions/useAddReaction.js.map +1 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactions.d.ts +10 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactions.js +79 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactions.js.map +1 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.d.ts +17 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.js +165 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.js.map +1 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactions.d.ts +10 -0
- package/dist/esm/hooks/{entities/useDownvoteEntity.js → reactions/useFetchEntityReactions.js} +26 -13
- package/dist/esm/hooks/reactions/useFetchEntityReactions.js.map +1 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.d.ts +17 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.js +165 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.js.map +1 -0
- package/dist/esm/hooks/reactions/useReactionToggle.d.ts +19 -0
- package/dist/esm/hooks/reactions/useReactionToggle.js +141 -0
- package/dist/esm/hooks/reactions/useReactionToggle.js.map +1 -0
- package/dist/esm/hooks/reactions/useRemoveReaction.d.ts +7 -0
- package/dist/esm/hooks/{comments/useRemoveCommentDownvote.js → reactions/useRemoveReaction.js} +16 -13
- package/dist/esm/hooks/reactions/useRemoveReaction.js.map +1 -0
- package/dist/esm/hooks/space-lists/useSpaceList.js +1 -1
- package/dist/esm/hooks/space-lists/useSpaceList.js.map +1 -1
- package/dist/esm/hooks/spaces/index.d.ts +1 -0
- package/dist/esm/hooks/spaces/index.js +1 -0
- package/dist/esm/hooks/spaces/index.js.map +1 -1
- package/dist/esm/hooks/spaces/useCheckMyMembership.d.ts +5 -0
- package/dist/esm/hooks/{comments/useDownvoteComment.js → spaces/useCheckMyMembership.js} +14 -14
- package/dist/esm/hooks/spaces/useCheckMyMembership.js.map +1 -0
- package/dist/esm/hooks/storage/index.d.ts +1 -0
- package/dist/esm/hooks/storage/index.js +1 -0
- package/dist/esm/hooks/storage/index.js.map +1 -1
- package/dist/esm/hooks/storage/useUploadFile.d.ts +12 -1
- package/dist/esm/hooks/storage/useUploadFile.js +22 -8
- package/dist/esm/hooks/storage/useUploadFile.js.map +1 -1
- package/dist/esm/hooks/storage/useUploadImage.d.ts +14 -0
- package/dist/esm/hooks/storage/useUploadImage.js +156 -0
- package/dist/esm/hooks/storage/useUploadImage.js.map +1 -0
- package/dist/esm/hooks/users/index.d.ts +1 -0
- package/dist/esm/hooks/users/index.js +1 -0
- package/dist/esm/hooks/users/index.js.map +1 -1
- package/dist/esm/hooks/users/useFetchUserByUsername.d.ts +5 -0
- package/dist/esm/hooks/{comments/useRemoveCommentUpvote.js → users/useFetchUserByUsername.js} +14 -13
- package/dist/esm/hooks/users/useFetchUserByUsername.js.map +1 -0
- package/dist/esm/index.d.ts +12 -9
- package/dist/esm/index.js +8 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/models/{List.d.ts → Collection.d.ts} +2 -4
- package/dist/esm/interfaces/models/Collection.js +2 -0
- package/dist/esm/interfaces/models/Collection.js.map +1 -0
- package/dist/esm/interfaces/models/Comment.d.ts +8 -1
- package/dist/esm/interfaces/models/Entity.d.ts +44 -1
- package/dist/esm/interfaces/models/Image.d.ts +35 -0
- package/dist/esm/interfaces/models/Image.js +2 -0
- package/dist/esm/interfaces/models/Image.js.map +1 -0
- package/dist/esm/interfaces/models/Reaction.d.ts +23 -0
- package/dist/esm/interfaces/models/Reaction.js +2 -0
- package/dist/esm/interfaces/models/Reaction.js.map +1 -0
- package/dist/esm/interfaces/models/Space.d.ts +13 -0
- package/dist/esm/store/api/appNotificationsApi.d.ts +181 -181
- package/dist/esm/store/api/baseApi.d.ts +1 -1
- package/dist/esm/store/api/baseApi.js +2 -1
- package/dist/esm/store/api/baseApi.js.map +1 -1
- package/dist/esm/store/api/collectionsApi.d.ts +4541 -0
- package/dist/esm/store/api/collectionsApi.js +241 -0
- package/dist/esm/store/api/collectionsApi.js.map +1 -0
- package/dist/esm/store/api/entityListsApi.d.ts +111 -110
- package/dist/esm/store/api/entityListsApi.js +13 -8
- package/dist/esm/store/api/entityListsApi.js.map +1 -1
- package/dist/esm/store/api/index.d.ts +1 -1
- package/dist/esm/store/api/index.js +2 -2
- package/dist/esm/store/api/index.js.map +1 -1
- package/dist/esm/store/api/spacesApi.d.ts +950 -950
- package/dist/esm/store/api/userApi.d.ts +3 -3
- package/dist/esm/store/index.d.ts +4 -4
- package/dist/esm/store/rootReducer.d.ts +4 -4
- package/dist/esm/store/rootReducer.js +2 -2
- package/dist/esm/store/rootReducer.js.map +1 -1
- package/dist/esm/store/slices/authSlice.d.ts +1 -3
- package/dist/esm/store/slices/authSlice.js +2 -7
- package/dist/esm/store/slices/authSlice.js.map +1 -1
- package/dist/esm/store/slices/authThunks.js +1 -4
- package/dist/esm/store/slices/authThunks.js.map +1 -1
- package/dist/esm/store/slices/collectionsSlice.d.ts +427 -0
- package/dist/esm/store/slices/collectionsSlice.js +202 -0
- package/dist/esm/store/slices/collectionsSlice.js.map +1 -0
- package/dist/esm/store/slices/entityListsSlice.d.ts +704 -63
- package/dist/esm/store/slices/entityListsSlice.js +44 -20
- package/dist/esm/store/slices/entityListsSlice.js.map +1 -1
- package/dist/esm/store/slices/spaceListsSlice.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/hooks/comments/useCommentVotes.d.ts +0 -11
- package/dist/cjs/hooks/comments/useCommentVotes.js +0 -234
- package/dist/cjs/hooks/comments/useCommentVotes.js.map +0 -1
- package/dist/cjs/hooks/comments/useDownvoteComment.d.ts +0 -5
- package/dist/cjs/hooks/comments/useDownvoteComment.js.map +0 -1
- package/dist/cjs/hooks/comments/useProfileComments.d.ts +0 -18
- package/dist/cjs/hooks/comments/useProfileComments.js.map +0 -1
- package/dist/cjs/hooks/comments/useRemoveCommentDownvote.d.ts +0 -5
- package/dist/cjs/hooks/comments/useRemoveCommentDownvote.js.map +0 -1
- package/dist/cjs/hooks/comments/useRemoveCommentUpvote.d.ts +0 -5
- package/dist/cjs/hooks/comments/useRemoveCommentUpvote.js.map +0 -1
- package/dist/cjs/hooks/comments/useUpvoteComment.d.ts +0 -5
- package/dist/cjs/hooks/comments/useUpvoteComment.js.map +0 -1
- package/dist/cjs/hooks/entities/useDownvoteEntity.d.ts +0 -5
- package/dist/cjs/hooks/entities/useDownvoteEntity.js.map +0 -1
- package/dist/cjs/hooks/entities/useEntityVotes.d.ts +0 -11
- package/dist/cjs/hooks/entities/useEntityVotes.js +0 -241
- package/dist/cjs/hooks/entities/useEntityVotes.js.map +0 -1
- package/dist/cjs/hooks/entities/useRemoveEntityDownvote.d.ts +0 -5
- package/dist/cjs/hooks/entities/useRemoveEntityDownvote.js +0 -71
- package/dist/cjs/hooks/entities/useRemoveEntityDownvote.js.map +0 -1
- package/dist/cjs/hooks/entities/useRemoveEntityUpvote.d.ts +0 -5
- package/dist/cjs/hooks/entities/useRemoveEntityUpvote.js +0 -71
- package/dist/cjs/hooks/entities/useRemoveEntityUpvote.js.map +0 -1
- package/dist/cjs/hooks/entities/useUpvoteEntity.d.ts +0 -5
- package/dist/cjs/hooks/entities/useUpvoteEntity.js +0 -71
- package/dist/cjs/hooks/entities/useUpvoteEntity.js.map +0 -1
- package/dist/cjs/hooks/lists/index.d.ts +0 -3
- package/dist/cjs/hooks/lists/index.js +0 -14
- package/dist/cjs/hooks/lists/index.js.map +0 -1
- package/dist/cjs/hooks/lists/useIsEntitySaved.js.map +0 -1
- package/dist/cjs/hooks/lists/useLists.d.ts +0 -36
- package/dist/cjs/hooks/lists/useLists.js +0 -239
- package/dist/cjs/hooks/lists/useLists.js.map +0 -1
- package/dist/cjs/hooks/lists/useListsActions.d.ts +0 -21
- package/dist/cjs/hooks/lists/useListsActions.js.map +0 -1
- package/dist/cjs/interfaces/models/List.js.map +0 -1
- package/dist/cjs/store/api/listsApi.d.ts +0 -3564
- package/dist/cjs/store/api/listsApi.js +0 -288
- package/dist/cjs/store/api/listsApi.js.map +0 -1
- package/dist/cjs/store/slices/listsSlice.d.ts +0 -1911
- package/dist/cjs/store/slices/listsSlice.js +0 -211
- package/dist/cjs/store/slices/listsSlice.js.map +0 -1
- package/dist/esm/hooks/comments/useCommentVotes.d.ts +0 -11
- package/dist/esm/hooks/comments/useCommentVotes.js +0 -229
- package/dist/esm/hooks/comments/useCommentVotes.js.map +0 -1
- package/dist/esm/hooks/comments/useDownvoteComment.d.ts +0 -5
- package/dist/esm/hooks/comments/useDownvoteComment.js.map +0 -1
- package/dist/esm/hooks/comments/useProfileComments.d.ts +0 -18
- package/dist/esm/hooks/comments/useProfileComments.js.map +0 -1
- package/dist/esm/hooks/comments/useRemoveCommentDownvote.d.ts +0 -5
- package/dist/esm/hooks/comments/useRemoveCommentDownvote.js.map +0 -1
- package/dist/esm/hooks/comments/useRemoveCommentUpvote.d.ts +0 -5
- package/dist/esm/hooks/comments/useRemoveCommentUpvote.js.map +0 -1
- package/dist/esm/hooks/comments/useUpvoteComment.d.ts +0 -5
- package/dist/esm/hooks/comments/useUpvoteComment.js.map +0 -1
- package/dist/esm/hooks/entities/useDownvoteEntity.d.ts +0 -5
- package/dist/esm/hooks/entities/useDownvoteEntity.js.map +0 -1
- package/dist/esm/hooks/entities/useEntityVotes.d.ts +0 -11
- package/dist/esm/hooks/entities/useEntityVotes.js +0 -236
- package/dist/esm/hooks/entities/useEntityVotes.js.map +0 -1
- package/dist/esm/hooks/entities/useRemoveEntityDownvote.d.ts +0 -5
- package/dist/esm/hooks/entities/useRemoveEntityDownvote.js +0 -66
- package/dist/esm/hooks/entities/useRemoveEntityDownvote.js.map +0 -1
- package/dist/esm/hooks/entities/useRemoveEntityUpvote.d.ts +0 -5
- package/dist/esm/hooks/entities/useRemoveEntityUpvote.js +0 -66
- package/dist/esm/hooks/entities/useRemoveEntityUpvote.js.map +0 -1
- package/dist/esm/hooks/entities/useUpvoteEntity.d.ts +0 -5
- package/dist/esm/hooks/entities/useUpvoteEntity.js +0 -66
- package/dist/esm/hooks/entities/useUpvoteEntity.js.map +0 -1
- package/dist/esm/hooks/lists/index.d.ts +0 -3
- package/dist/esm/hooks/lists/index.js +0 -5
- package/dist/esm/hooks/lists/index.js.map +0 -1
- package/dist/esm/hooks/lists/useIsEntitySaved.js.map +0 -1
- package/dist/esm/hooks/lists/useLists.d.ts +0 -36
- package/dist/esm/hooks/lists/useLists.js +0 -234
- package/dist/esm/hooks/lists/useLists.js.map +0 -1
- package/dist/esm/hooks/lists/useListsActions.d.ts +0 -21
- package/dist/esm/hooks/lists/useListsActions.js.map +0 -1
- package/dist/esm/interfaces/models/List.js +0 -2
- package/dist/esm/interfaces/models/List.js.map +0 -1
- package/dist/esm/store/api/listsApi.d.ts +0 -3564
- package/dist/esm/store/api/listsApi.js +0 -285
- package/dist/esm/store/api/listsApi.js.map +0 -1
- package/dist/esm/store/slices/listsSlice.d.ts +0 -1911
- package/dist/esm/store/slices/listsSlice.js +0 -202
- package/dist/esm/store/slices/listsSlice.js.map +0 -1
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
+
import type { Collection } from "../../interfaces/models/Collection";
|
|
3
|
+
export interface CollectionsState {
|
|
4
|
+
collectionsById: {
|
|
5
|
+
[collectionId: string]: Collection;
|
|
6
|
+
};
|
|
7
|
+
subcollectionsMap: {
|
|
8
|
+
[parentId: string]: string[];
|
|
9
|
+
};
|
|
10
|
+
currentCollectionId: string | null;
|
|
11
|
+
collectionHistory: string[];
|
|
12
|
+
loading: boolean;
|
|
13
|
+
currentProjectId?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const collectionsSlice: import("@reduxjs/toolkit").Slice<CollectionsState, {
|
|
16
|
+
setProjectContext: (state: {
|
|
17
|
+
collectionsById: {
|
|
18
|
+
[x: string]: {
|
|
19
|
+
id: string;
|
|
20
|
+
projectId: string;
|
|
21
|
+
userId: string;
|
|
22
|
+
parentId: string | null;
|
|
23
|
+
name: string;
|
|
24
|
+
entityCount?: number | undefined;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
subcollectionsMap: {
|
|
30
|
+
[x: string]: string[];
|
|
31
|
+
};
|
|
32
|
+
currentCollectionId: string | null;
|
|
33
|
+
collectionHistory: string[];
|
|
34
|
+
loading: boolean;
|
|
35
|
+
currentProjectId?: string | undefined;
|
|
36
|
+
}, action: PayloadAction<string>) => void;
|
|
37
|
+
setLoading: (state: {
|
|
38
|
+
collectionsById: {
|
|
39
|
+
[x: string]: {
|
|
40
|
+
id: string;
|
|
41
|
+
projectId: string;
|
|
42
|
+
userId: string;
|
|
43
|
+
parentId: string | null;
|
|
44
|
+
name: string;
|
|
45
|
+
entityCount?: number | undefined;
|
|
46
|
+
createdAt: Date;
|
|
47
|
+
updatedAt: Date;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
subcollectionsMap: {
|
|
51
|
+
[x: string]: string[];
|
|
52
|
+
};
|
|
53
|
+
currentCollectionId: string | null;
|
|
54
|
+
collectionHistory: string[];
|
|
55
|
+
loading: boolean;
|
|
56
|
+
currentProjectId?: string | undefined;
|
|
57
|
+
}, action: PayloadAction<boolean>) => void;
|
|
58
|
+
openCollection: (state: {
|
|
59
|
+
collectionsById: {
|
|
60
|
+
[x: string]: {
|
|
61
|
+
id: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
userId: string;
|
|
64
|
+
parentId: string | null;
|
|
65
|
+
name: string;
|
|
66
|
+
entityCount?: number | undefined;
|
|
67
|
+
createdAt: Date;
|
|
68
|
+
updatedAt: Date;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
subcollectionsMap: {
|
|
72
|
+
[x: string]: string[];
|
|
73
|
+
};
|
|
74
|
+
currentCollectionId: string | null;
|
|
75
|
+
collectionHistory: string[];
|
|
76
|
+
loading: boolean;
|
|
77
|
+
currentProjectId?: string | undefined;
|
|
78
|
+
}, action: PayloadAction<Collection>) => void;
|
|
79
|
+
goBack: (state: {
|
|
80
|
+
collectionsById: {
|
|
81
|
+
[x: string]: {
|
|
82
|
+
id: string;
|
|
83
|
+
projectId: string;
|
|
84
|
+
userId: string;
|
|
85
|
+
parentId: string | null;
|
|
86
|
+
name: string;
|
|
87
|
+
entityCount?: number | undefined;
|
|
88
|
+
createdAt: Date;
|
|
89
|
+
updatedAt: Date;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
subcollectionsMap: {
|
|
93
|
+
[x: string]: string[];
|
|
94
|
+
};
|
|
95
|
+
currentCollectionId: string | null;
|
|
96
|
+
collectionHistory: string[];
|
|
97
|
+
loading: boolean;
|
|
98
|
+
currentProjectId?: string | undefined;
|
|
99
|
+
}) => void;
|
|
100
|
+
goToRoot: (state: {
|
|
101
|
+
collectionsById: {
|
|
102
|
+
[x: string]: {
|
|
103
|
+
id: string;
|
|
104
|
+
projectId: string;
|
|
105
|
+
userId: string;
|
|
106
|
+
parentId: string | null;
|
|
107
|
+
name: string;
|
|
108
|
+
entityCount?: number | undefined;
|
|
109
|
+
createdAt: Date;
|
|
110
|
+
updatedAt: Date;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
subcollectionsMap: {
|
|
114
|
+
[x: string]: string[];
|
|
115
|
+
};
|
|
116
|
+
currentCollectionId: string | null;
|
|
117
|
+
collectionHistory: string[];
|
|
118
|
+
loading: boolean;
|
|
119
|
+
currentProjectId?: string | undefined;
|
|
120
|
+
}) => void;
|
|
121
|
+
setCurrentCollection: (state: {
|
|
122
|
+
collectionsById: {
|
|
123
|
+
[x: string]: {
|
|
124
|
+
id: string;
|
|
125
|
+
projectId: string;
|
|
126
|
+
userId: string;
|
|
127
|
+
parentId: string | null;
|
|
128
|
+
name: string;
|
|
129
|
+
entityCount?: number | undefined;
|
|
130
|
+
createdAt: Date;
|
|
131
|
+
updatedAt: Date;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
subcollectionsMap: {
|
|
135
|
+
[x: string]: string[];
|
|
136
|
+
};
|
|
137
|
+
currentCollectionId: string | null;
|
|
138
|
+
collectionHistory: string[];
|
|
139
|
+
loading: boolean;
|
|
140
|
+
currentProjectId?: string | undefined;
|
|
141
|
+
}, action: PayloadAction<Collection | null>) => void;
|
|
142
|
+
setSubCollections: (state: {
|
|
143
|
+
collectionsById: {
|
|
144
|
+
[x: string]: {
|
|
145
|
+
id: string;
|
|
146
|
+
projectId: string;
|
|
147
|
+
userId: string;
|
|
148
|
+
parentId: string | null;
|
|
149
|
+
name: string;
|
|
150
|
+
entityCount?: number | undefined;
|
|
151
|
+
createdAt: Date;
|
|
152
|
+
updatedAt: Date;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
subcollectionsMap: {
|
|
156
|
+
[x: string]: string[];
|
|
157
|
+
};
|
|
158
|
+
currentCollectionId: string | null;
|
|
159
|
+
collectionHistory: string[];
|
|
160
|
+
loading: boolean;
|
|
161
|
+
currentProjectId?: string | undefined;
|
|
162
|
+
}, action: PayloadAction<{
|
|
163
|
+
collections: Collection[];
|
|
164
|
+
parentCollectionId: string;
|
|
165
|
+
}>) => void;
|
|
166
|
+
updateCurrentCollection: (state: {
|
|
167
|
+
collectionsById: {
|
|
168
|
+
[x: string]: {
|
|
169
|
+
id: string;
|
|
170
|
+
projectId: string;
|
|
171
|
+
userId: string;
|
|
172
|
+
parentId: string | null;
|
|
173
|
+
name: string;
|
|
174
|
+
entityCount?: number | undefined;
|
|
175
|
+
createdAt: Date;
|
|
176
|
+
updatedAt: Date;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
subcollectionsMap: {
|
|
180
|
+
[x: string]: string[];
|
|
181
|
+
};
|
|
182
|
+
currentCollectionId: string | null;
|
|
183
|
+
collectionHistory: string[];
|
|
184
|
+
loading: boolean;
|
|
185
|
+
currentProjectId?: string | undefined;
|
|
186
|
+
}, action: PayloadAction<Collection>) => void;
|
|
187
|
+
updateCollectionInSubCollections: (state: {
|
|
188
|
+
collectionsById: {
|
|
189
|
+
[x: string]: {
|
|
190
|
+
id: string;
|
|
191
|
+
projectId: string;
|
|
192
|
+
userId: string;
|
|
193
|
+
parentId: string | null;
|
|
194
|
+
name: string;
|
|
195
|
+
entityCount?: number | undefined;
|
|
196
|
+
createdAt: Date;
|
|
197
|
+
updatedAt: Date;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
subcollectionsMap: {
|
|
201
|
+
[x: string]: string[];
|
|
202
|
+
};
|
|
203
|
+
currentCollectionId: string | null;
|
|
204
|
+
collectionHistory: string[];
|
|
205
|
+
loading: boolean;
|
|
206
|
+
currentProjectId?: string | undefined;
|
|
207
|
+
}, action: PayloadAction<Collection>) => void;
|
|
208
|
+
addNewCollectionAndNavigate: (state: {
|
|
209
|
+
collectionsById: {
|
|
210
|
+
[x: string]: {
|
|
211
|
+
id: string;
|
|
212
|
+
projectId: string;
|
|
213
|
+
userId: string;
|
|
214
|
+
parentId: string | null;
|
|
215
|
+
name: string;
|
|
216
|
+
entityCount?: number | undefined;
|
|
217
|
+
createdAt: Date;
|
|
218
|
+
updatedAt: Date;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
subcollectionsMap: {
|
|
222
|
+
[x: string]: string[];
|
|
223
|
+
};
|
|
224
|
+
currentCollectionId: string | null;
|
|
225
|
+
collectionHistory: string[];
|
|
226
|
+
loading: boolean;
|
|
227
|
+
currentProjectId?: string | undefined;
|
|
228
|
+
}, action: PayloadAction<Collection>) => void;
|
|
229
|
+
removeCollectionFromSubCollections: (state: {
|
|
230
|
+
collectionsById: {
|
|
231
|
+
[x: string]: {
|
|
232
|
+
id: string;
|
|
233
|
+
projectId: string;
|
|
234
|
+
userId: string;
|
|
235
|
+
parentId: string | null;
|
|
236
|
+
name: string;
|
|
237
|
+
entityCount?: number | undefined;
|
|
238
|
+
createdAt: Date;
|
|
239
|
+
updatedAt: Date;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
subcollectionsMap: {
|
|
243
|
+
[x: string]: string[];
|
|
244
|
+
};
|
|
245
|
+
currentCollectionId: string | null;
|
|
246
|
+
collectionHistory: string[];
|
|
247
|
+
loading: boolean;
|
|
248
|
+
currentProjectId?: string | undefined;
|
|
249
|
+
}, action: PayloadAction<string>) => void;
|
|
250
|
+
handleCollectionDeletion: (state: {
|
|
251
|
+
collectionsById: {
|
|
252
|
+
[x: string]: {
|
|
253
|
+
id: string;
|
|
254
|
+
projectId: string;
|
|
255
|
+
userId: string;
|
|
256
|
+
parentId: string | null;
|
|
257
|
+
name: string;
|
|
258
|
+
entityCount?: number | undefined;
|
|
259
|
+
createdAt: Date;
|
|
260
|
+
updatedAt: Date;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
subcollectionsMap: {
|
|
264
|
+
[x: string]: string[];
|
|
265
|
+
};
|
|
266
|
+
currentCollectionId: string | null;
|
|
267
|
+
collectionHistory: string[];
|
|
268
|
+
loading: boolean;
|
|
269
|
+
currentProjectId?: string | undefined;
|
|
270
|
+
}, action: PayloadAction<{
|
|
271
|
+
collectionId: string;
|
|
272
|
+
parentId?: string | null;
|
|
273
|
+
}>) => void;
|
|
274
|
+
resetCollections: (state: {
|
|
275
|
+
collectionsById: {
|
|
276
|
+
[x: string]: {
|
|
277
|
+
id: string;
|
|
278
|
+
projectId: string;
|
|
279
|
+
userId: string;
|
|
280
|
+
parentId: string | null;
|
|
281
|
+
name: string;
|
|
282
|
+
entityCount?: number | undefined;
|
|
283
|
+
createdAt: Date;
|
|
284
|
+
updatedAt: Date;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
subcollectionsMap: {
|
|
288
|
+
[x: string]: string[];
|
|
289
|
+
};
|
|
290
|
+
currentCollectionId: string | null;
|
|
291
|
+
collectionHistory: string[];
|
|
292
|
+
loading: boolean;
|
|
293
|
+
currentProjectId?: string | undefined;
|
|
294
|
+
}) => void;
|
|
295
|
+
handleError: (state: {
|
|
296
|
+
collectionsById: {
|
|
297
|
+
[x: string]: {
|
|
298
|
+
id: string;
|
|
299
|
+
projectId: string;
|
|
300
|
+
userId: string;
|
|
301
|
+
parentId: string | null;
|
|
302
|
+
name: string;
|
|
303
|
+
entityCount?: number | undefined;
|
|
304
|
+
createdAt: Date;
|
|
305
|
+
updatedAt: Date;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
subcollectionsMap: {
|
|
309
|
+
[x: string]: string[];
|
|
310
|
+
};
|
|
311
|
+
currentCollectionId: string | null;
|
|
312
|
+
collectionHistory: string[];
|
|
313
|
+
loading: boolean;
|
|
314
|
+
currentProjectId?: string | undefined;
|
|
315
|
+
}) => void;
|
|
316
|
+
}, "collections", "collections", import("@reduxjs/toolkit").SliceSelectors<CollectionsState>>;
|
|
317
|
+
export declare const setProjectContext: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "collections/setProjectContext">, setLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "collections/setLoading">, openCollection: import("@reduxjs/toolkit").ActionCreatorWithPayload<Collection, "collections/openCollection">, goBack: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"collections/goBack">, goToRoot: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"collections/goToRoot">, setCurrentCollection: import("@reduxjs/toolkit").ActionCreatorWithPayload<Collection | null, "collections/setCurrentCollection">, setSubCollections: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
318
|
+
collections: Collection[];
|
|
319
|
+
parentCollectionId: string;
|
|
320
|
+
}, "collections/setSubCollections">, updateCurrentCollection: import("@reduxjs/toolkit").ActionCreatorWithPayload<Collection, "collections/updateCurrentCollection">, updateCollectionInSubCollections: import("@reduxjs/toolkit").ActionCreatorWithPayload<Collection, "collections/updateCollectionInSubCollections">, addNewCollectionAndNavigate: import("@reduxjs/toolkit").ActionCreatorWithPayload<Collection, "collections/addNewCollectionAndNavigate">, removeCollectionFromSubCollections: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "collections/removeCollectionFromSubCollections">, handleCollectionDeletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
321
|
+
collectionId: string;
|
|
322
|
+
parentId?: string | null;
|
|
323
|
+
}, "collections/handleCollectionDeletion">, resetCollections: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"collections/resetCollections">, handleError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"collections/handleError">;
|
|
324
|
+
declare const _default: import("@reduxjs/toolkit").Reducer<CollectionsState>;
|
|
325
|
+
export default _default;
|
|
326
|
+
export declare const selectCurrentCollection: (state: {
|
|
327
|
+
collections: CollectionsState;
|
|
328
|
+
}) => Collection | null;
|
|
329
|
+
export declare const selectSubCollections: ((state: {
|
|
330
|
+
collections: CollectionsState;
|
|
331
|
+
} & {
|
|
332
|
+
collections: CollectionsState;
|
|
333
|
+
} & {
|
|
334
|
+
collections: CollectionsState;
|
|
335
|
+
}) => Collection[]) & {
|
|
336
|
+
clearCache: () => void;
|
|
337
|
+
resultsCount: () => number;
|
|
338
|
+
resetResultsCount: () => void;
|
|
339
|
+
} & {
|
|
340
|
+
resultFunc: (resultFuncArgs_0: string | null, resultFuncArgs_1: {
|
|
341
|
+
[parentId: string]: string[];
|
|
342
|
+
}, resultFuncArgs_2: {
|
|
343
|
+
[collectionId: string]: Collection;
|
|
344
|
+
}) => Collection[];
|
|
345
|
+
memoizedResultFunc: ((resultFuncArgs_0: string | null, resultFuncArgs_1: {
|
|
346
|
+
[parentId: string]: string[];
|
|
347
|
+
}, resultFuncArgs_2: {
|
|
348
|
+
[collectionId: string]: Collection;
|
|
349
|
+
}) => Collection[]) & {
|
|
350
|
+
clearCache: () => void;
|
|
351
|
+
resultsCount: () => number;
|
|
352
|
+
resetResultsCount: () => void;
|
|
353
|
+
};
|
|
354
|
+
lastResult: () => Collection[];
|
|
355
|
+
dependencies: [(state: {
|
|
356
|
+
collections: CollectionsState;
|
|
357
|
+
}) => string | null, (state: {
|
|
358
|
+
collections: CollectionsState;
|
|
359
|
+
}) => {
|
|
360
|
+
[parentId: string]: string[];
|
|
361
|
+
}, (state: {
|
|
362
|
+
collections: CollectionsState;
|
|
363
|
+
}) => {
|
|
364
|
+
[collectionId: string]: Collection;
|
|
365
|
+
}];
|
|
366
|
+
recomputations: () => number;
|
|
367
|
+
resetRecomputations: () => void;
|
|
368
|
+
dependencyRecomputations: () => number;
|
|
369
|
+
resetDependencyRecomputations: () => void;
|
|
370
|
+
} & {
|
|
371
|
+
memoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
|
|
372
|
+
argsMemoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
|
|
373
|
+
};
|
|
374
|
+
export declare const selectCollectionsLoading: (state: {
|
|
375
|
+
collections: CollectionsState;
|
|
376
|
+
}) => boolean;
|
|
377
|
+
export declare const selectCollectionHistory: ((state: {
|
|
378
|
+
collections: CollectionsState;
|
|
379
|
+
} & {
|
|
380
|
+
collections: CollectionsState;
|
|
381
|
+
}) => Collection[]) & {
|
|
382
|
+
clearCache: () => void;
|
|
383
|
+
resultsCount: () => number;
|
|
384
|
+
resetResultsCount: () => void;
|
|
385
|
+
} & {
|
|
386
|
+
resultFunc: (resultFuncArgs_0: string[], resultFuncArgs_1: {
|
|
387
|
+
[collectionId: string]: Collection;
|
|
388
|
+
}) => Collection[];
|
|
389
|
+
memoizedResultFunc: ((resultFuncArgs_0: string[], resultFuncArgs_1: {
|
|
390
|
+
[collectionId: string]: Collection;
|
|
391
|
+
}) => Collection[]) & {
|
|
392
|
+
clearCache: () => void;
|
|
393
|
+
resultsCount: () => number;
|
|
394
|
+
resetResultsCount: () => void;
|
|
395
|
+
};
|
|
396
|
+
lastResult: () => Collection[];
|
|
397
|
+
dependencies: [(state: {
|
|
398
|
+
collections: CollectionsState;
|
|
399
|
+
}) => string[], (state: {
|
|
400
|
+
collections: CollectionsState;
|
|
401
|
+
}) => {
|
|
402
|
+
[collectionId: string]: Collection;
|
|
403
|
+
}];
|
|
404
|
+
recomputations: () => number;
|
|
405
|
+
resetRecomputations: () => void;
|
|
406
|
+
dependencyRecomputations: () => number;
|
|
407
|
+
resetDependencyRecomputations: () => void;
|
|
408
|
+
} & {
|
|
409
|
+
memoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
|
|
410
|
+
argsMemoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
|
|
411
|
+
};
|
|
412
|
+
export declare const selectSubCollectionsMap: (state: {
|
|
413
|
+
collections: CollectionsState;
|
|
414
|
+
}) => {
|
|
415
|
+
[parentId: string]: string[];
|
|
416
|
+
};
|
|
417
|
+
export declare const selectCollectionsById: (state: {
|
|
418
|
+
collections: CollectionsState;
|
|
419
|
+
}) => {
|
|
420
|
+
[collectionId: string]: Collection;
|
|
421
|
+
};
|
|
422
|
+
export declare const selectCurrentProjectId: (state: {
|
|
423
|
+
collections: CollectionsState;
|
|
424
|
+
}) => string | undefined;
|
|
425
|
+
export declare const selectCurrentCollectionId: (state: {
|
|
426
|
+
collections: CollectionsState;
|
|
427
|
+
}) => string | null;
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.selectCurrentCollectionId = exports.selectCurrentProjectId = exports.selectCollectionsById = exports.selectSubCollectionsMap = exports.selectCollectionHistory = exports.selectCollectionsLoading = exports.selectSubCollections = exports.selectCurrentCollection = exports.handleError = exports.resetCollections = exports.handleCollectionDeletion = exports.removeCollectionFromSubCollections = exports.addNewCollectionAndNavigate = exports.updateCollectionInSubCollections = exports.updateCurrentCollection = exports.setSubCollections = exports.setCurrentCollection = exports.goToRoot = exports.goBack = exports.openCollection = exports.setLoading = exports.setProjectContext = exports.collectionsSlice = void 0;
|
|
5
|
+
var toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
// Initial state
|
|
7
|
+
var initialState = {
|
|
8
|
+
collectionsById: {},
|
|
9
|
+
subcollectionsMap: {},
|
|
10
|
+
currentCollectionId: null,
|
|
11
|
+
collectionHistory: [],
|
|
12
|
+
loading: false,
|
|
13
|
+
currentProjectId: undefined,
|
|
14
|
+
};
|
|
15
|
+
// Create the slice
|
|
16
|
+
exports.collectionsSlice = (0, toolkit_1.createSlice)({
|
|
17
|
+
name: "collections",
|
|
18
|
+
initialState: initialState,
|
|
19
|
+
reducers: {
|
|
20
|
+
// Set the current project context
|
|
21
|
+
setProjectContext: function (state, action) {
|
|
22
|
+
state.currentProjectId = action.payload;
|
|
23
|
+
},
|
|
24
|
+
// Set loading state
|
|
25
|
+
setLoading: function (state, action) {
|
|
26
|
+
state.loading = action.payload;
|
|
27
|
+
},
|
|
28
|
+
// Navigation actions
|
|
29
|
+
openCollection: function (state, action) {
|
|
30
|
+
var collection = action.payload;
|
|
31
|
+
// Store the collection if not already stored
|
|
32
|
+
if (!state.collectionsById[collection.id]) {
|
|
33
|
+
state.collectionsById[collection.id] = collection;
|
|
34
|
+
}
|
|
35
|
+
// Push current collection ID to history stack before opening new one
|
|
36
|
+
if (state.currentCollectionId) {
|
|
37
|
+
state.collectionHistory.push(state.currentCollectionId);
|
|
38
|
+
}
|
|
39
|
+
// Set new current collection ID
|
|
40
|
+
state.currentCollectionId = collection.id;
|
|
41
|
+
},
|
|
42
|
+
goBack: function (state) {
|
|
43
|
+
if (state.collectionHistory.length === 0)
|
|
44
|
+
return;
|
|
45
|
+
var previousCollectionId = state.collectionHistory.pop();
|
|
46
|
+
if (!previousCollectionId)
|
|
47
|
+
return;
|
|
48
|
+
state.currentCollectionId = previousCollectionId;
|
|
49
|
+
},
|
|
50
|
+
goToRoot: function (state) {
|
|
51
|
+
if (state.collectionHistory.length === 0)
|
|
52
|
+
return;
|
|
53
|
+
var rootCollectionId = state.collectionHistory[0];
|
|
54
|
+
state.collectionHistory = [];
|
|
55
|
+
state.currentCollectionId = rootCollectionId;
|
|
56
|
+
},
|
|
57
|
+
// Set current collection (for initial root collection fetch)
|
|
58
|
+
setCurrentCollection: function (state, action) {
|
|
59
|
+
var collection = action.payload;
|
|
60
|
+
if (collection) {
|
|
61
|
+
state.collectionsById[collection.id] = collection;
|
|
62
|
+
state.currentCollectionId = collection.id;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
state.currentCollectionId = null;
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
// Set sub-collections and update mapping
|
|
69
|
+
setSubCollections: function (state, action) {
|
|
70
|
+
var _a = action.payload, collections = _a.collections, parentCollectionId = _a.parentCollectionId;
|
|
71
|
+
// Store all collections in collectionsById
|
|
72
|
+
collections.forEach(function (collection) {
|
|
73
|
+
state.collectionsById[collection.id] = collection;
|
|
74
|
+
});
|
|
75
|
+
// Update parent-child mapping
|
|
76
|
+
state.subcollectionsMap[parentCollectionId] = collections.map(function (collection) { return collection.id; });
|
|
77
|
+
},
|
|
78
|
+
// Update current collection (for entity add/remove operations)
|
|
79
|
+
updateCurrentCollection: function (state, action) {
|
|
80
|
+
var updatedCollection = action.payload;
|
|
81
|
+
// Update in collectionsById (single source of truth)
|
|
82
|
+
state.collectionsById[updatedCollection.id] = updatedCollection;
|
|
83
|
+
},
|
|
84
|
+
// Update a collection (now just updates in collectionsById)
|
|
85
|
+
updateCollectionInSubCollections: function (state, action) {
|
|
86
|
+
var updatedCollection = action.payload;
|
|
87
|
+
// Update in collectionsById (single source of truth)
|
|
88
|
+
state.collectionsById[updatedCollection.id] = updatedCollection;
|
|
89
|
+
},
|
|
90
|
+
// Add new collection to sub-collections and navigate to it
|
|
91
|
+
addNewCollectionAndNavigate: function (state, action) {
|
|
92
|
+
var newCollection = action.payload;
|
|
93
|
+
if (!state.currentCollectionId)
|
|
94
|
+
return;
|
|
95
|
+
// Store the new collection
|
|
96
|
+
state.collectionsById[newCollection.id] = newCollection;
|
|
97
|
+
// Push current collection ID to history
|
|
98
|
+
state.collectionHistory.push(state.currentCollectionId);
|
|
99
|
+
// Set new collection as current
|
|
100
|
+
state.currentCollectionId = newCollection.id;
|
|
101
|
+
// Update parent-child mapping
|
|
102
|
+
if (newCollection.parentId) {
|
|
103
|
+
if (!state.subcollectionsMap[newCollection.parentId]) {
|
|
104
|
+
state.subcollectionsMap[newCollection.parentId] = [];
|
|
105
|
+
}
|
|
106
|
+
if (!state.subcollectionsMap[newCollection.parentId].includes(newCollection.id)) {
|
|
107
|
+
state.subcollectionsMap[newCollection.parentId].push(newCollection.id);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
// Remove collection from sub-collections and storage
|
|
112
|
+
removeCollectionFromSubCollections: function (state, action) {
|
|
113
|
+
var collectionId = action.payload;
|
|
114
|
+
// Remove from collectionsById
|
|
115
|
+
delete state.collectionsById[collectionId];
|
|
116
|
+
// Remove from all parent-child mappings
|
|
117
|
+
Object.keys(state.subcollectionsMap).forEach(function (parentId) {
|
|
118
|
+
state.subcollectionsMap[parentId] = state.subcollectionsMap[parentId].filter(function (id) { return id !== collectionId; });
|
|
119
|
+
});
|
|
120
|
+
// Remove its own sub-collections mapping if it exists
|
|
121
|
+
delete state.subcollectionsMap[collectionId];
|
|
122
|
+
},
|
|
123
|
+
// Handle collection deletion
|
|
124
|
+
handleCollectionDeletion: function (state, action) {
|
|
125
|
+
var _a = action.payload, collectionId = _a.collectionId, parentId = _a.parentId;
|
|
126
|
+
// Remove from parent-child mapping
|
|
127
|
+
if (parentId && state.subcollectionsMap[parentId]) {
|
|
128
|
+
state.subcollectionsMap[parentId] = state.subcollectionsMap[parentId].filter(function (id) { return id !== collectionId; });
|
|
129
|
+
}
|
|
130
|
+
// Remove from collectionsById
|
|
131
|
+
delete state.collectionsById[collectionId];
|
|
132
|
+
// Remove its own sub-collections mapping
|
|
133
|
+
delete state.subcollectionsMap[collectionId];
|
|
134
|
+
// If deleted collection is current collection, go back
|
|
135
|
+
if (state.currentCollectionId === collectionId) {
|
|
136
|
+
if (state.collectionHistory.length === 0) {
|
|
137
|
+
state.currentCollectionId = null;
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
var previousCollectionId = state.collectionHistory.pop();
|
|
141
|
+
if (!previousCollectionId) {
|
|
142
|
+
state.currentCollectionId = null;
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
state.currentCollectionId = previousCollectionId;
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
// Reset all collections data
|
|
149
|
+
resetCollections: function (state) {
|
|
150
|
+
state.collectionsById = {};
|
|
151
|
+
state.subcollectionsMap = {};
|
|
152
|
+
state.currentCollectionId = null;
|
|
153
|
+
state.collectionHistory = [];
|
|
154
|
+
state.loading = false;
|
|
155
|
+
},
|
|
156
|
+
// Handle errors by stopping loading
|
|
157
|
+
handleError: function (state) {
|
|
158
|
+
state.loading = false;
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
});
|
|
162
|
+
// Export actions
|
|
163
|
+
exports.setProjectContext = (_a = exports.collectionsSlice.actions, _a.setProjectContext), exports.setLoading = _a.setLoading, exports.openCollection = _a.openCollection, exports.goBack = _a.goBack, exports.goToRoot = _a.goToRoot, exports.setCurrentCollection = _a.setCurrentCollection, exports.setSubCollections = _a.setSubCollections, exports.updateCurrentCollection = _a.updateCurrentCollection, exports.updateCollectionInSubCollections = _a.updateCollectionInSubCollections, exports.addNewCollectionAndNavigate = _a.addNewCollectionAndNavigate, exports.removeCollectionFromSubCollections = _a.removeCollectionFromSubCollections, exports.handleCollectionDeletion = _a.handleCollectionDeletion, exports.resetCollections = _a.resetCollections, exports.handleError = _a.handleError;
|
|
164
|
+
// Export reducer
|
|
165
|
+
exports.default = exports.collectionsSlice.reducer;
|
|
166
|
+
// Selectors
|
|
167
|
+
var selectCurrentCollection = function (state) {
|
|
168
|
+
var _a = state.collections, currentCollectionId = _a.currentCollectionId, collectionsById = _a.collectionsById;
|
|
169
|
+
return currentCollectionId ? collectionsById[currentCollectionId] || null : null;
|
|
170
|
+
};
|
|
171
|
+
exports.selectCurrentCollection = selectCurrentCollection;
|
|
172
|
+
exports.selectSubCollections = (0, toolkit_1.createSelector)([function (state) { return state.collections.currentCollectionId; },
|
|
173
|
+
function (state) { return state.collections.subcollectionsMap; },
|
|
174
|
+
function (state) { return state.collections.collectionsById; }], function (currentCollectionId, subcollectionsMap, collectionsById) {
|
|
175
|
+
if (!currentCollectionId || !subcollectionsMap[currentCollectionId]) {
|
|
176
|
+
return [];
|
|
177
|
+
}
|
|
178
|
+
return subcollectionsMap[currentCollectionId]
|
|
179
|
+
.map(function (collectionId) { return collectionsById[collectionId]; })
|
|
180
|
+
.filter(Boolean); // Remove any undefined entries
|
|
181
|
+
});
|
|
182
|
+
var selectCollectionsLoading = function (state) {
|
|
183
|
+
return state.collections.loading;
|
|
184
|
+
};
|
|
185
|
+
exports.selectCollectionsLoading = selectCollectionsLoading;
|
|
186
|
+
exports.selectCollectionHistory = (0, toolkit_1.createSelector)([function (state) { return state.collections.collectionHistory; },
|
|
187
|
+
function (state) { return state.collections.collectionsById; }], function (collectionHistory, collectionsById) {
|
|
188
|
+
return collectionHistory
|
|
189
|
+
.map(function (collectionId) { return collectionsById[collectionId]; })
|
|
190
|
+
.filter(Boolean); // Remove any undefined entries
|
|
191
|
+
});
|
|
192
|
+
// New selector for the sub-collections mapping
|
|
193
|
+
var selectSubCollectionsMap = function (state) {
|
|
194
|
+
return state.collections.subcollectionsMap;
|
|
195
|
+
};
|
|
196
|
+
exports.selectSubCollectionsMap = selectSubCollectionsMap;
|
|
197
|
+
// New selector for all collections
|
|
198
|
+
var selectCollectionsById = function (state) {
|
|
199
|
+
return state.collections.collectionsById;
|
|
200
|
+
};
|
|
201
|
+
exports.selectCollectionsById = selectCollectionsById;
|
|
202
|
+
var selectCurrentProjectId = function (state) {
|
|
203
|
+
return state.collections.currentProjectId;
|
|
204
|
+
};
|
|
205
|
+
exports.selectCurrentProjectId = selectCurrentProjectId;
|
|
206
|
+
// New selector for current collection ID
|
|
207
|
+
var selectCurrentCollectionId = function (state) {
|
|
208
|
+
return state.collections.currentCollectionId;
|
|
209
|
+
};
|
|
210
|
+
exports.selectCurrentCollectionId = selectCurrentCollectionId;
|
|
211
|
+
//# sourceMappingURL=collectionsSlice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collectionsSlice.js","sourceRoot":"","sources":["../../../../src/store/slices/collectionsSlice.ts"],"names":[],"mappings":";;;;AAAA,4CAA8E;AAwB9E,gBAAgB;AAChB,IAAM,YAAY,GAAqB;IACrC,eAAe,EAAE,EAAE;IACnB,iBAAiB,EAAE,EAAE;IACrB,mBAAmB,EAAE,IAAI;IACzB,iBAAiB,EAAE,EAAE;IACrB,OAAO,EAAE,KAAK;IACd,gBAAgB,EAAE,SAAS;CAC5B,CAAC;AAEF,mBAAmB;AACN,QAAA,gBAAgB,GAAG,IAAA,qBAAW,EAAC;IAC1C,IAAI,EAAE,aAAa;IACnB,YAAY,cAAA;IACZ,QAAQ,EAAE;QACR,kCAAkC;QAClC,iBAAiB,EAAE,UAAC,KAAK,EAAE,MAA6B;YACtD,KAAK,CAAC,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC;QAC1C,CAAC;QAED,oBAAoB;QACpB,UAAU,EAAE,UAAC,KAAK,EAAE,MAA8B;YAChD,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QACjC,CAAC;QAED,qBAAqB;QACrB,cAAc,EAAE,UAAC,KAAK,EAAE,MAAiC;YACvD,IAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC;YAElC,6CAA6C;YAC7C,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;gBAC1C,KAAK,CAAC,eAAe,CAAC,UAA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