@replyke/core 7.0.0-beta.92 → 7.0.0-beta.93
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/app-notifications/useAppNotificationsActions.d.ts +9 -8
- package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.js.map +1 -1
- package/dist/cjs/hooks/auth/useRequestPasswordReset.d.ts +4 -1
- package/dist/cjs/hooks/collections/useCollectionsActions.d.ts +7 -6
- package/dist/cjs/hooks/collections/useCollectionsActions.js.map +1 -1
- package/dist/cjs/hooks/collections/useIsEntitySaved.d.ts +3 -2
- package/dist/cjs/hooks/collections/useIsEntitySaved.js.map +1 -1
- package/dist/cjs/hooks/comments/useDeleteComment.d.ts +1 -1
- package/dist/cjs/hooks/comments/useFetchComment.d.ts +1 -1
- package/dist/cjs/hooks/comments/useFetchCommentByForeignId.d.ts +1 -1
- package/dist/cjs/hooks/comments/useReplies.d.ts +5 -3
- package/dist/cjs/hooks/comments/useReplies.js.map +1 -1
- package/dist/cjs/hooks/comments/useUpdateComment.d.ts +1 -1
- package/dist/cjs/hooks/crypto/useSignTestingJwt.d.ts +1 -1
- package/dist/cjs/hooks/entities/useDeleteEntity.d.ts +1 -1
- package/dist/cjs/hooks/entities/useFetchEntity.d.ts +1 -1
- package/dist/cjs/hooks/entities/useFetchEntityByForeignId.d.ts +1 -1
- package/dist/cjs/hooks/entities/useFetchEntityByShortId.d.ts +1 -1
- package/dist/cjs/hooks/entities/useIncrementEntityViews.d.ts +1 -1
- package/dist/cjs/hooks/entities/usePublishDraft.d.ts +1 -1
- package/dist/cjs/hooks/entity-lists/useEntityListActions.d.ts +6 -5
- package/dist/cjs/hooks/entity-lists/useEntityListActions.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useConnectionManager.d.ts +3 -2
- package/dist/cjs/hooks/relationships/connections/useConnectionManager.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowers.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowersByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowersCountByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowing.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowingByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowingCountByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFollowManager.d.ts +3 -2
- package/dist/cjs/hooks/relationships/follows/useFollowManager.js.map +1 -1
- package/dist/cjs/hooks/reports/useCreateReport.d.ts +1 -1
- package/dist/cjs/hooks/reports/useFetchModeratedReports.d.ts +1 -1
- package/dist/cjs/hooks/reports/useHandleSpaceCommentReport.d.ts +1 -1
- package/dist/cjs/hooks/reports/useHandleSpaceEntityReport.d.ts +1 -1
- package/dist/cjs/hooks/spaces/rules/useCreateRule.d.ts +1 -1
- package/dist/cjs/hooks/spaces/rules/useDeleteRule.d.ts +1 -1
- package/dist/cjs/hooks/spaces/rules/useFetchManyRules.d.ts +1 -1
- package/dist/cjs/hooks/spaces/rules/useFetchRule.d.ts +1 -1
- package/dist/cjs/hooks/spaces/rules/useReorderRules.d.ts +1 -1
- package/dist/cjs/hooks/spaces/rules/useUpdateRule.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useApproveMember.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useCheckMyMembership.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useCheckSlugAvailability.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useDeclineMember.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useDeleteSpace.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpace.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceBreadcrumb.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceChildren.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceMembers.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceTeam.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useJoinSpace.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useLeaveSpace.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useModerateSpaceComment.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useModerateSpaceEntity.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useRemoveMember.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useUpdateMemberRole.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useUpdateSpace.d.ts +1 -1
- package/dist/cjs/hooks/storage/useUploadImage.d.ts +3 -2
- package/dist/cjs/hooks/storage/useUploadImage.js.map +1 -1
- package/dist/cjs/hooks/users/useCheckUsernameAvailability.d.ts +1 -1
- package/dist/cjs/hooks/users/useFetchUser.d.ts +1 -1
- package/dist/cjs/hooks/users/useFetchUserByForeignId.d.ts +1 -1
- package/dist/cjs/hooks/users/useFetchUserByUsername.d.ts +1 -1
- package/dist/cjs/hooks/users/useFetchUserSuggestions.d.ts +1 -1
- package/dist/cjs/hooks/users/useMentions.d.ts +3 -2
- package/dist/cjs/hooks/users/useMentions.js.map +1 -1
- package/dist/cjs/hooks/utils/useGetMetadata.d.ts +1 -1
- package/dist/esm/hooks/app-notifications/useAppNotificationsActions.d.ts +9 -8
- package/dist/esm/hooks/app-notifications/useAppNotificationsActions.js.map +1 -1
- package/dist/esm/hooks/auth/useRequestPasswordReset.d.ts +4 -1
- package/dist/esm/hooks/collections/useCollectionsActions.d.ts +7 -6
- package/dist/esm/hooks/collections/useCollectionsActions.js.map +1 -1
- package/dist/esm/hooks/collections/useIsEntitySaved.d.ts +3 -2
- package/dist/esm/hooks/collections/useIsEntitySaved.js.map +1 -1
- package/dist/esm/hooks/comments/useDeleteComment.d.ts +1 -1
- package/dist/esm/hooks/comments/useFetchComment.d.ts +1 -1
- package/dist/esm/hooks/comments/useFetchCommentByForeignId.d.ts +1 -1
- package/dist/esm/hooks/comments/useReplies.d.ts +5 -3
- package/dist/esm/hooks/comments/useReplies.js.map +1 -1
- package/dist/esm/hooks/comments/useUpdateComment.d.ts +1 -1
- package/dist/esm/hooks/crypto/useSignTestingJwt.d.ts +1 -1
- package/dist/esm/hooks/entities/useDeleteEntity.d.ts +1 -1
- package/dist/esm/hooks/entities/useFetchEntity.d.ts +1 -1
- package/dist/esm/hooks/entities/useFetchEntityByForeignId.d.ts +1 -1
- package/dist/esm/hooks/entities/useFetchEntityByShortId.d.ts +1 -1
- package/dist/esm/hooks/entities/useIncrementEntityViews.d.ts +1 -1
- package/dist/esm/hooks/entities/usePublishDraft.d.ts +1 -1
- package/dist/esm/hooks/entity-lists/useEntityListActions.d.ts +6 -5
- package/dist/esm/hooks/entity-lists/useEntityListActions.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useConnectionManager.d.ts +3 -2
- package/dist/esm/hooks/relationships/connections/useConnectionManager.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowers.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowersByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowersCountByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowing.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowingByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowingCountByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFollowManager.d.ts +3 -2
- package/dist/esm/hooks/relationships/follows/useFollowManager.js.map +1 -1
- package/dist/esm/hooks/reports/useCreateReport.d.ts +1 -1
- package/dist/esm/hooks/reports/useFetchModeratedReports.d.ts +1 -1
- package/dist/esm/hooks/reports/useHandleSpaceCommentReport.d.ts +1 -1
- package/dist/esm/hooks/reports/useHandleSpaceEntityReport.d.ts +1 -1
- package/dist/esm/hooks/spaces/rules/useCreateRule.d.ts +1 -1
- package/dist/esm/hooks/spaces/rules/useDeleteRule.d.ts +1 -1
- package/dist/esm/hooks/spaces/rules/useFetchManyRules.d.ts +1 -1
- package/dist/esm/hooks/spaces/rules/useFetchRule.d.ts +1 -1
- package/dist/esm/hooks/spaces/rules/useReorderRules.d.ts +1 -1
- package/dist/esm/hooks/spaces/rules/useUpdateRule.d.ts +1 -1
- package/dist/esm/hooks/spaces/useApproveMember.d.ts +1 -1
- package/dist/esm/hooks/spaces/useCheckMyMembership.d.ts +1 -1
- package/dist/esm/hooks/spaces/useCheckSlugAvailability.d.ts +1 -1
- package/dist/esm/hooks/spaces/useDeclineMember.d.ts +1 -1
- package/dist/esm/hooks/spaces/useDeleteSpace.d.ts +1 -1
- package/dist/esm/hooks/spaces/useFetchSpace.d.ts +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceBreadcrumb.d.ts +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceByShortId.d.ts +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceBySlug.d.ts +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceChildren.d.ts +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceMembers.d.ts +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceTeam.d.ts +1 -1
- package/dist/esm/hooks/spaces/useJoinSpace.d.ts +1 -1
- package/dist/esm/hooks/spaces/useLeaveSpace.d.ts +1 -1
- package/dist/esm/hooks/spaces/useModerateSpaceComment.d.ts +1 -1
- package/dist/esm/hooks/spaces/useModerateSpaceEntity.d.ts +1 -1
- package/dist/esm/hooks/spaces/useRemoveMember.d.ts +1 -1
- package/dist/esm/hooks/spaces/useUpdateMemberRole.d.ts +1 -1
- package/dist/esm/hooks/spaces/useUpdateSpace.d.ts +1 -1
- package/dist/esm/hooks/storage/useUploadImage.d.ts +3 -2
- package/dist/esm/hooks/storage/useUploadImage.js.map +1 -1
- package/dist/esm/hooks/users/useCheckUsernameAvailability.d.ts +1 -1
- package/dist/esm/hooks/users/useFetchUser.d.ts +1 -1
- package/dist/esm/hooks/users/useFetchUserByForeignId.d.ts +1 -1
- package/dist/esm/hooks/users/useFetchUserByUsername.d.ts +1 -1
- package/dist/esm/hooks/users/useFetchUserSuggestions.d.ts +1 -1
- package/dist/esm/hooks/users/useMentions.d.ts +3 -2
- package/dist/esm/hooks/users/useMentions.js.map +1 -1
- package/dist/esm/hooks/utils/useGetMetadata.d.ts +1 -1
- package/package.json +1 -1
|
@@ -9,5 +9,5 @@ export interface FetchFollowingParams {
|
|
|
9
9
|
page?: number;
|
|
10
10
|
limit?: number;
|
|
11
11
|
}
|
|
12
|
-
declare function useFetchFollowing(): (
|
|
12
|
+
declare function useFetchFollowing(): (params?: FetchFollowingParams) => Promise<PaginatedResponse<FollowingWithFollowInfo>>;
|
|
13
13
|
export default useFetchFollowing;
|
|
@@ -10,5 +10,5 @@ export interface FetchFollowingByUserIdParams {
|
|
|
10
10
|
page?: number;
|
|
11
11
|
limit?: number;
|
|
12
12
|
}
|
|
13
|
-
declare function useFetchFollowingByUserId(): (
|
|
13
|
+
declare function useFetchFollowingByUserId(): (params: FetchFollowingByUserIdParams) => Promise<PaginatedResponse<FollowingWithFollowInfo>>;
|
|
14
14
|
export default useFetchFollowingByUserId;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface FetchFollowingCountByUserIdProps {
|
|
2
2
|
userId: string;
|
|
3
3
|
}
|
|
4
|
-
declare function useFetchFollowingCountByUserId(): (
|
|
4
|
+
declare function useFetchFollowingCountByUserId(): (props: FetchFollowingCountByUserIdProps) => Promise<{
|
|
5
5
|
count: number;
|
|
6
6
|
}>;
|
|
7
7
|
export default useFetchFollowingCountByUserId;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export interface UseFollowToggleProps {
|
|
2
2
|
userId: string;
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
export interface UseFollowManagerValues {
|
|
5
5
|
isFollowing: boolean | null;
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
toggleFollow: () => Promise<void>;
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
|
+
declare function useFollowManager({ userId }: UseFollowToggleProps): UseFollowManagerValues;
|
|
9
10
|
export default useFollowManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFollowManager.js","sourceRoot":"","sources":["../../../../../src/hooks/relationships/follows/useFollowManager.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,OAAO,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"useFollowManager.js","sourceRoot":"","sources":["../../../../../src/hooks/relationships/follows/useFollowManager.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAYzC,SAAS,gBAAgB,CAAC,EAAgC;IAA1D,iBAkDC;QAlD2B,MAAM,YAAA;IACxB,IAAA,IAAI,GAAK,OAAO,EAAE,KAAd,CAAe;IAErB,IAAA,KAAgC,QAAQ,CAAiB,IAAI,CAAC,EAA7D,WAAW,QAAA,EAAE,cAAc,QAAkC,CAAC;IAC/D,IAAA,KAA4B,QAAQ,CAAC,IAAI,C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C;;;;;oBAGvB,OAAO,CAAC,KAAK,CAAC,iCAAiC,EAAE,OAAK,CAAC,CAAC;;;;;SAE3D,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,oBAAoB,CAAC,CAAC,CAAC;IAEvE,OAAO;QACL,WAAW,aAAA;QACX,SAAS,WAAA;QACT,YAAY,cAAA;KACb,CAAC;AACJ,CAAC;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -18,5 +18,5 @@ export interface CreateEntityReportProps {
|
|
|
18
18
|
reason: ReportReasonKey;
|
|
19
19
|
details?: string;
|
|
20
20
|
}
|
|
21
|
-
declare function useCreateReport({ type }: UseCreateReportProps): (
|
|
21
|
+
declare function useCreateReport({ type }: UseCreateReportProps): ((props: CreateCommentReportProps) => Promise<void>) | ((props: CreateEntityReportProps) => Promise<void>);
|
|
22
22
|
export default useCreateReport;
|
|
@@ -56,5 +56,5 @@ export interface Report {
|
|
|
56
56
|
* limit: 20
|
|
57
57
|
* });
|
|
58
58
|
*/
|
|
59
|
-
declare function useFetchModeratedReports(): (
|
|
59
|
+
declare function useFetchModeratedReports(): (params: FetchModeratedReportsParams) => Promise<PaginatedResponse<Report>>;
|
|
60
60
|
export default useFetchModeratedReports;
|
|
@@ -26,5 +26,5 @@ export interface HandleReportResponse {
|
|
|
26
26
|
* summary: "Removed inappropriate comment"
|
|
27
27
|
* });
|
|
28
28
|
*/
|
|
29
|
-
declare function useHandleSpaceCommentReport(): (
|
|
29
|
+
declare function useHandleSpaceCommentReport(): (params: HandleSpaceCommentReportParams) => Promise<HandleReportResponse>;
|
|
30
30
|
export default useHandleSpaceCommentReport;
|
|
@@ -28,5 +28,5 @@ export interface HandleReportResponse {
|
|
|
28
28
|
* reason: "Spamming"
|
|
29
29
|
* });
|
|
30
30
|
*/
|
|
31
|
-
declare function useHandleSpaceEntityReport(): (
|
|
31
|
+
declare function useHandleSpaceEntityReport(): (params: HandleSpaceEntityReportParams) => Promise<HandleReportResponse>;
|
|
32
32
|
export default useHandleSpaceEntityReport;
|
|
@@ -4,5 +4,5 @@ export interface CreateRuleProps {
|
|
|
4
4
|
title: string;
|
|
5
5
|
description?: string | null;
|
|
6
6
|
}
|
|
7
|
-
declare function useCreateRule(): (
|
|
7
|
+
declare function useCreateRule(): (props: CreateRuleProps) => Promise<Rule>;
|
|
8
8
|
export default useCreateRule;
|
|
@@ -3,5 +3,5 @@ export interface DeleteRuleProps {
|
|
|
3
3
|
spaceId: string;
|
|
4
4
|
ruleId: string;
|
|
5
5
|
}
|
|
6
|
-
declare function useDeleteRule(): (
|
|
6
|
+
declare function useDeleteRule(): (props: DeleteRuleProps) => Promise<DeleteRuleResponse>;
|
|
7
7
|
export default useDeleteRule;
|
|
@@ -2,5 +2,5 @@ import { FetchManyRulesResponse } from "../../../interfaces/models/Rule";
|
|
|
2
2
|
export interface FetchManyRulesProps {
|
|
3
3
|
spaceId: string;
|
|
4
4
|
}
|
|
5
|
-
declare function useFetchManyRules(): (
|
|
5
|
+
declare function useFetchManyRules(): (props: FetchManyRulesProps) => Promise<FetchManyRulesResponse>;
|
|
6
6
|
export default useFetchManyRules;
|
|
@@ -3,5 +3,5 @@ export interface FetchRuleProps {
|
|
|
3
3
|
spaceId: string;
|
|
4
4
|
ruleId: string;
|
|
5
5
|
}
|
|
6
|
-
declare function useFetchRule(): (
|
|
6
|
+
declare function useFetchRule(): (props: FetchRuleProps) => Promise<Rule>;
|
|
7
7
|
export default useFetchRule;
|
|
@@ -3,5 +3,5 @@ export interface ReorderRulesProps {
|
|
|
3
3
|
spaceId: string;
|
|
4
4
|
ruleIds: string[];
|
|
5
5
|
}
|
|
6
|
-
declare function useReorderRules(): (
|
|
6
|
+
declare function useReorderRules(): (props: ReorderRulesProps) => Promise<Rule[]>;
|
|
7
7
|
export default useReorderRules;
|
|
@@ -7,5 +7,5 @@ export interface UpdateRuleProps {
|
|
|
7
7
|
description: string | null;
|
|
8
8
|
}>;
|
|
9
9
|
}
|
|
10
|
-
declare function useUpdateRule(): (
|
|
10
|
+
declare function useUpdateRule(): (props: UpdateRuleProps) => Promise<Rule>;
|
|
11
11
|
export default useUpdateRule;
|
|
@@ -3,5 +3,5 @@ export interface ApproveMemberProps {
|
|
|
3
3
|
spaceId: string;
|
|
4
4
|
memberId: string;
|
|
5
5
|
}
|
|
6
|
-
declare function useApproveMember(): (
|
|
6
|
+
declare function useApproveMember(): (props: ApproveMemberProps) => Promise<ApproveMemberResponse>;
|
|
7
7
|
export default useApproveMember;
|
|
@@ -2,5 +2,5 @@ import { CheckMyMembershipResponse } from "../../interfaces/models/Space";
|
|
|
2
2
|
export interface CheckMyMembershipProps {
|
|
3
3
|
spaceId: string;
|
|
4
4
|
}
|
|
5
|
-
declare function useCheckMyMembership(): (
|
|
5
|
+
declare function useCheckMyMembership(): (props: CheckMyMembershipProps) => Promise<CheckMyMembershipResponse>;
|
|
6
6
|
export default useCheckMyMembership;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface CheckSlugAvailabilityProps {
|
|
2
2
|
slug: string;
|
|
3
3
|
}
|
|
4
|
-
declare function useCheckSlugAvailability(): (
|
|
4
|
+
declare function useCheckSlugAvailability(): (props: CheckSlugAvailabilityProps) => Promise<{
|
|
5
5
|
available: boolean;
|
|
6
6
|
}>;
|
|
7
7
|
export default useCheckSlugAvailability;
|
|
@@ -3,5 +3,5 @@ export interface DeclineMemberProps {
|
|
|
3
3
|
spaceId: string;
|
|
4
4
|
memberId: string;
|
|
5
5
|
}
|
|
6
|
-
declare function useDeclineMember(): (
|
|
6
|
+
declare function useDeclineMember(): (props: DeclineMemberProps) => Promise<DeclineMemberResponse>;
|
|
7
7
|
export default useDeclineMember;
|
|
@@ -2,5 +2,5 @@ import { DeleteSpaceResponse } from "../../interfaces/models/Space";
|
|
|
2
2
|
export interface DeleteSpaceProps {
|
|
3
3
|
spaceId: string;
|
|
4
4
|
}
|
|
5
|
-
declare function useDeleteSpace(): (
|
|
5
|
+
declare function useDeleteSpace(): (props: DeleteSpaceProps) => Promise<DeleteSpaceResponse>;
|
|
6
6
|
export default useDeleteSpace;
|
|
@@ -3,5 +3,5 @@ export interface FetchSpaceProps {
|
|
|
3
3
|
spaceId: string;
|
|
4
4
|
include?: SpaceIncludeParam;
|
|
5
5
|
}
|
|
6
|
-
declare function useFetchSpace(): (
|
|
6
|
+
declare function useFetchSpace(): (props: FetchSpaceProps) => Promise<SpaceDetailed>;
|
|
7
7
|
export default useFetchSpace;
|
|
@@ -2,5 +2,5 @@ import { SpaceBreadcrumb } from "../../interfaces/SpaceBreadcrumb";
|
|
|
2
2
|
export interface FetchSpaceBreadcrumbProps {
|
|
3
3
|
spaceId: string;
|
|
4
4
|
}
|
|
5
|
-
declare function useFetchSpaceBreadcrumb(): (
|
|
5
|
+
declare function useFetchSpaceBreadcrumb(): (props: FetchSpaceBreadcrumbProps) => Promise<SpaceBreadcrumb>;
|
|
6
6
|
export default useFetchSpaceBreadcrumb;
|
|
@@ -3,5 +3,5 @@ export interface FetchSpaceByShortIdProps {
|
|
|
3
3
|
shortId: string;
|
|
4
4
|
include?: SpaceIncludeParam;
|
|
5
5
|
}
|
|
6
|
-
declare function useFetchSpaceByShortId(): (
|
|
6
|
+
declare function useFetchSpaceByShortId(): (props: FetchSpaceByShortIdProps) => Promise<SpaceDetailed>;
|
|
7
7
|
export default useFetchSpaceByShortId;
|
|
@@ -3,5 +3,5 @@ export interface FetchSpaceBySlugProps {
|
|
|
3
3
|
slug: string;
|
|
4
4
|
include?: SpaceIncludeParam;
|
|
5
5
|
}
|
|
6
|
-
declare function useFetchSpaceBySlug(): (
|
|
6
|
+
declare function useFetchSpaceBySlug(): (props: FetchSpaceBySlugProps) => Promise<SpaceDetailed>;
|
|
7
7
|
export default useFetchSpaceBySlug;
|
|
@@ -6,5 +6,5 @@ export interface FetchSpaceChildrenProps {
|
|
|
6
6
|
limit?: number;
|
|
7
7
|
include?: SpaceIncludeParam;
|
|
8
8
|
}
|
|
9
|
-
declare function useFetchSpaceChildren(): (
|
|
9
|
+
declare function useFetchSpaceChildren(): (props: FetchSpaceChildrenProps) => Promise<PaginatedResponse<Space>>;
|
|
10
10
|
export default useFetchSpaceChildren;
|
|
@@ -6,5 +6,5 @@ export interface FetchSpaceMembersProps {
|
|
|
6
6
|
role?: SpaceMemberRole;
|
|
7
7
|
status?: SpaceMemberStatus;
|
|
8
8
|
}
|
|
9
|
-
declare function useFetchSpaceMembers(): (
|
|
9
|
+
declare function useFetchSpaceMembers(): (props: FetchSpaceMembersProps) => Promise<SpaceMembersResponse>;
|
|
10
10
|
export default useFetchSpaceMembers;
|
|
@@ -2,5 +2,5 @@ import { SpaceTeamResponse } from "../../interfaces/models/SpaceMember";
|
|
|
2
2
|
export interface FetchSpaceTeamProps {
|
|
3
3
|
spaceId: string;
|
|
4
4
|
}
|
|
5
|
-
declare function useFetchSpaceTeam(): (
|
|
5
|
+
declare function useFetchSpaceTeam(): (props: FetchSpaceTeamProps) => Promise<SpaceTeamResponse>;
|
|
6
6
|
export default useFetchSpaceTeam;
|
|
@@ -2,5 +2,5 @@ import { JoinSpaceResponse } from "../../interfaces/models/Space";
|
|
|
2
2
|
export interface JoinSpaceProps {
|
|
3
3
|
spaceId: string;
|
|
4
4
|
}
|
|
5
|
-
declare function useJoinSpace(): (
|
|
5
|
+
declare function useJoinSpace(): (props: JoinSpaceProps) => Promise<JoinSpaceResponse>;
|
|
6
6
|
export default useJoinSpace;
|
|
@@ -2,5 +2,5 @@ import { LeaveSpaceResponse } from "../../interfaces/models/Space";
|
|
|
2
2
|
export interface LeaveSpaceProps {
|
|
3
3
|
spaceId: string;
|
|
4
4
|
}
|
|
5
|
-
declare function useLeaveSpace(): (
|
|
5
|
+
declare function useLeaveSpace(): (props: LeaveSpaceProps) => Promise<LeaveSpaceResponse>;
|
|
6
6
|
export default useLeaveSpace;
|
|
@@ -22,5 +22,5 @@ interface ModerateResponse {
|
|
|
22
22
|
* reason: "Spam content"
|
|
23
23
|
* });
|
|
24
24
|
*/
|
|
25
|
-
declare function useModerateSpaceComment(): (
|
|
25
|
+
declare function useModerateSpaceComment(): (props: ModerateSpaceCommentProps) => Promise<ModerateResponse>;
|
|
26
26
|
export default useModerateSpaceComment;
|
|
@@ -22,5 +22,5 @@ interface ModerateResponse {
|
|
|
22
22
|
* reason: "Violates community guidelines"
|
|
23
23
|
* });
|
|
24
24
|
*/
|
|
25
|
-
declare function useModerateSpaceEntity(): (
|
|
25
|
+
declare function useModerateSpaceEntity(): (props: ModerateSpaceEntityProps) => Promise<ModerateResponse>;
|
|
26
26
|
export default useModerateSpaceEntity;
|
|
@@ -5,5 +5,5 @@ export interface RemoveMemberProps {
|
|
|
5
5
|
interface RemoveMemberResponse {
|
|
6
6
|
message: string;
|
|
7
7
|
}
|
|
8
|
-
declare function useRemoveMember(): (
|
|
8
|
+
declare function useRemoveMember(): (props: RemoveMemberProps) => Promise<RemoveMemberResponse>;
|
|
9
9
|
export default useRemoveMember;
|
|
@@ -5,5 +5,5 @@ export interface UpdateMemberRoleProps {
|
|
|
5
5
|
memberId: string;
|
|
6
6
|
role: SpaceMemberRole;
|
|
7
7
|
}
|
|
8
|
-
declare function useUpdateMemberRole(): (
|
|
8
|
+
declare function useUpdateMemberRole(): (props: UpdateMemberRoleProps) => Promise<UpdateMemberRoleResponse>;
|
|
9
9
|
export default useUpdateMemberRole;
|
|
@@ -18,5 +18,5 @@ export interface UpdateSpaceProps {
|
|
|
18
18
|
metadata: Record<string, any>;
|
|
19
19
|
}>;
|
|
20
20
|
}
|
|
21
|
-
declare function useUpdateSpace(): (
|
|
21
|
+
declare function useUpdateSpace(): (props: UpdateSpaceProps) => Promise<SpaceDetailed>;
|
|
22
22
|
export default useUpdateSpace;
|
|
@@ -6,9 +6,10 @@ interface RNFile {
|
|
|
6
6
|
type?: string;
|
|
7
7
|
}
|
|
8
8
|
type UniversalFile = BrowserFile | RNFile;
|
|
9
|
-
|
|
9
|
+
export interface UseUploadImageValues {
|
|
10
10
|
uploadImage: (file: UniversalFile, options: UploadImageOptions) => Promise<Image>;
|
|
11
11
|
uploading: boolean;
|
|
12
12
|
progress: number;
|
|
13
|
-
}
|
|
13
|
+
}
|
|
14
|
+
declare function useUploadImage(): UseUploadImageValues;
|
|
14
15
|
export default useUploadImage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUploadImage.js","sourceRoot":"","sources":["../../../../src/hooks/storage/useUploadImage.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAGhD,gEAAgE;AAChE,SAAS,aAAa,CAAC,IAAmB;IACxC,OAAO,OAAO,IAAI,KAAK,WAAW,IAAI,IAAI,YAAY,IAAI,CAAC;AAC7D,CAAC;
|
|
1
|
+
{"version":3,"file":"useUploadImage.js","sourceRoot":"","sources":["../../../../src/hooks/storage/useUploadImage.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAGhD,gEAAgE;AAChE,SAAS,aAAa,CAAC,IAAmB;IACxC,OAAO,OAAO,IAAI,KAAK,WAAW,IAAI,IAAI,YAAY,IAAI,CAAC;AAC7D,CAAC;AAkBD,SAAS,cAAc;IAAvB,iBAyHC;IAxHC,IAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IACxB,IAAA,SAAS,GAAK,UAAU,EAAE,UAAjB,CAAkB;IAC7B,IAAA,KAA4B,QAAQ,CAAC,KAAK,CAAC,EAA1C,SAAS,QAAA,EAAE,YAAY,QAAmB,CAAC;IAC5C,IAAA,KAA0B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EACD,CAAC,SAAS,EAAE,KAAK,CAAC,CACnB,CAAC;IAEF,OAAO;QACL,WAAW,aAAA;QACX,SAAS,WAAA;QACT,QAAQ,UAAA;KACT,CAAC;AACJ,CAAC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface CheckUsernameAvailabilityProps {
|
|
2
2
|
username: string;
|
|
3
3
|
}
|
|
4
|
-
declare function useCheckUsernameAvailability(): (
|
|
4
|
+
declare function useCheckUsernameAvailability(): (props: CheckUsernameAvailabilityProps) => Promise<{
|
|
5
5
|
available: boolean;
|
|
6
6
|
}>;
|
|
7
7
|
export default useCheckUsernameAvailability;
|
|
@@ -3,5 +3,5 @@ export interface FetchUserProps {
|
|
|
3
3
|
userId: string;
|
|
4
4
|
include?: UserIncludeParam;
|
|
5
5
|
}
|
|
6
|
-
declare function useFetchUser(): (
|
|
6
|
+
declare function useFetchUser(): (props: FetchUserProps) => Promise<User>;
|
|
7
7
|
export default useFetchUser;
|
|
@@ -3,5 +3,5 @@ export interface FetchUserByForeignIdProps {
|
|
|
3
3
|
foreignId: string;
|
|
4
4
|
include?: UserIncludeParam;
|
|
5
5
|
}
|
|
6
|
-
declare function useFetchUserByForeignId(): (
|
|
6
|
+
declare function useFetchUserByForeignId(): (props: FetchUserByForeignIdProps) => Promise<User>;
|
|
7
7
|
export default useFetchUserByForeignId;
|
|
@@ -3,5 +3,5 @@ export interface FetchUserByUsernameProps {
|
|
|
3
3
|
username: string;
|
|
4
4
|
include?: UserIncludeParam;
|
|
5
5
|
}
|
|
6
|
-
declare function useFetchUserByUsername(): (
|
|
6
|
+
declare function useFetchUserByUsername(): (props: FetchUserByUsernameProps) => Promise<User>;
|
|
7
7
|
export default useFetchUserByUsername;
|
|
@@ -2,5 +2,5 @@ import { User } from "../../interfaces/models/User";
|
|
|
2
2
|
export interface FetchUserSuggestionsProps {
|
|
3
3
|
query: string;
|
|
4
4
|
}
|
|
5
|
-
declare function useFetchUserSuggestions(): (
|
|
5
|
+
declare function useFetchUserSuggestions(): (props: FetchUserSuggestionsProps) => Promise<User[]>;
|
|
6
6
|
export default useFetchUserSuggestions;
|
|
@@ -7,7 +7,7 @@ export interface UseMentionsProps {
|
|
|
7
7
|
cursorPosition: number;
|
|
8
8
|
isSelectionActive: boolean;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
export interface UseMentionsValues {
|
|
11
11
|
isMentionActive: boolean;
|
|
12
12
|
loading: boolean;
|
|
13
13
|
mentionSuggestions: User[];
|
|
@@ -15,5 +15,6 @@ declare const useMentions: ({ content, setContent, focus, cursorPosition, isSele
|
|
|
15
15
|
mentions: Mention[];
|
|
16
16
|
addMention: (user: User) => void;
|
|
17
17
|
resetMentions: () => void;
|
|
18
|
-
}
|
|
18
|
+
}
|
|
19
|
+
declare const useMentions: ({ content, setContent, focus, cursorPosition, isSelectionActive, }: UseMentionsProps) => UseMentionsValues;
|
|
19
20
|
export default useMentions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMentions.js","sourceRoot":"","sources":["../../../../src/hooks/users/useMentions.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAGjE,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"useMentions.js","sourceRoot":"","sources":["../../../../src/hooks/users/useMentions.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAGjE,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,WAAW,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C;YACtB,kBAAkB,CAAC,KAAK,CAAC,CAAC;YAC1B,qBAAqB,CAAC,EAAE,CAAC,CAAC;YAC1B,eAAe,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;QAED,4DAA4D;QAC5D,OAAO;YACL,IAAI,gBAAgB,CAAC,OAAO,EAAE,CAAC;gBAC7B,YAAY,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;YACzC,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE;QACD,cAAc;QACd,iBAAiB;QACjB,6BAA6B;QAC7B,OAAO;KACR,CAAC,CAAC;IAEH,OAAO;QACL,eAAe,iBAAA;QACf,OAAO,EAAE,YAAY;QACrB,kBAAkB,oBAAA;QAClB,kBAAkB,oBAAA;QAClB,QAAQ,UAAA;QACR,UAAU,YAAA;QACV,aAAa,eAAA;KACd,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -2,5 +2,5 @@ import { UrlMetadata } from "../../interfaces/UrlMetadata";
|
|
|
2
2
|
export interface GetMetadataProps {
|
|
3
3
|
url: string;
|
|
4
4
|
}
|
|
5
|
-
declare function useGetMetadata(): (
|
|
5
|
+
declare function useGetMetadata(): (props: GetMetadataProps) => Promise<UrlMetadata>;
|
|
6
6
|
export default useGetMetadata;
|