@livetiles/reach-plugin-types 0.5.0-preview.680 → 0.5.0-preview.682
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +5 -7
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -10508,6 +10508,7 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentCreator"
|
|
|
10508
10508
|
onToggleEditor?: (showEditor: boolean) => void;
|
|
10509
10509
|
alwaysShowCommentEditor?: boolean;
|
|
10510
10510
|
isMobile?: boolean;
|
|
10511
|
+
isReadOnly?: boolean;
|
|
10511
10512
|
className?: string;
|
|
10512
10513
|
}>;
|
|
10513
10514
|
}
|
|
@@ -10525,12 +10526,12 @@ declare module "libs/reach/feature/content/src/reach-2/comments/useCommentsQuery
|
|
|
10525
10526
|
};
|
|
10526
10527
|
};
|
|
10527
10528
|
export function useCommentsQuery<TItem extends Comment = Comment>(parentItemId: string, pageSize?: number, repliesPageSize?: number): {
|
|
10529
|
+
data: InfiniteData<CommentQueryResult<CommentWithReplies<TItem>>>;
|
|
10528
10530
|
updateCommentFromState: (commentId: string, updateFn: (item: CommentWithReplies<TItem>) => CommentWithReplies<TItem>) => void;
|
|
10529
10531
|
removeCommentFromState: (commentId: string) => void;
|
|
10530
10532
|
addCommentToState: (newComment: CommentWithReplies<TItem>) => void;
|
|
10531
10533
|
addCommentReplyToState: (threadId: string, newCommentReply: Comment) => void;
|
|
10532
10534
|
updateCommentReplyFromState: (threadId: string, commentReplyId: string, updateFn: (item: Comment) => Comment) => void;
|
|
10533
|
-
data: undefined;
|
|
10534
10535
|
error: unknown;
|
|
10535
10536
|
isError: true;
|
|
10536
10537
|
isLoading: false;
|
|
@@ -10562,12 +10563,12 @@ declare module "libs/reach/feature/content/src/reach-2/comments/useCommentsQuery
|
|
|
10562
10563
|
remove: () => void;
|
|
10563
10564
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
10564
10565
|
} | {
|
|
10566
|
+
data: InfiniteData<CommentQueryResult<CommentWithReplies<TItem>>>;
|
|
10565
10567
|
updateCommentFromState: (commentId: string, updateFn: (item: CommentWithReplies<TItem>) => CommentWithReplies<TItem>) => void;
|
|
10566
10568
|
removeCommentFromState: (commentId: string) => void;
|
|
10567
10569
|
addCommentToState: (newComment: CommentWithReplies<TItem>) => void;
|
|
10568
10570
|
addCommentReplyToState: (threadId: string, newCommentReply: Comment) => void;
|
|
10569
10571
|
updateCommentReplyFromState: (threadId: string, commentReplyId: string, updateFn: (item: Comment) => Comment) => void;
|
|
10570
|
-
data: undefined;
|
|
10571
10572
|
error: null;
|
|
10572
10573
|
isError: false;
|
|
10573
10574
|
isLoading: true;
|
|
@@ -10599,12 +10600,12 @@ declare module "libs/reach/feature/content/src/reach-2/comments/useCommentsQuery
|
|
|
10599
10600
|
remove: () => void;
|
|
10600
10601
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
10601
10602
|
} | {
|
|
10603
|
+
data: InfiniteData<CommentQueryResult<CommentWithReplies<TItem>>>;
|
|
10602
10604
|
updateCommentFromState: (commentId: string, updateFn: (item: CommentWithReplies<TItem>) => CommentWithReplies<TItem>) => void;
|
|
10603
10605
|
removeCommentFromState: (commentId: string) => void;
|
|
10604
10606
|
addCommentToState: (newComment: CommentWithReplies<TItem>) => void;
|
|
10605
10607
|
addCommentReplyToState: (threadId: string, newCommentReply: Comment) => void;
|
|
10606
10608
|
updateCommentReplyFromState: (threadId: string, commentReplyId: string, updateFn: (item: Comment) => Comment) => void;
|
|
10607
|
-
data: InfiniteData<CommentQueryResult<CommentWithReplies<TItem>>>;
|
|
10608
10609
|
error: unknown;
|
|
10609
10610
|
isError: true;
|
|
10610
10611
|
isLoading: false;
|
|
@@ -10636,12 +10637,12 @@ declare module "libs/reach/feature/content/src/reach-2/comments/useCommentsQuery
|
|
|
10636
10637
|
remove: () => void;
|
|
10637
10638
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
10638
10639
|
} | {
|
|
10640
|
+
data: InfiniteData<CommentQueryResult<CommentWithReplies<TItem>>>;
|
|
10639
10641
|
updateCommentFromState: (commentId: string, updateFn: (item: CommentWithReplies<TItem>) => CommentWithReplies<TItem>) => void;
|
|
10640
10642
|
removeCommentFromState: (commentId: string) => void;
|
|
10641
10643
|
addCommentToState: (newComment: CommentWithReplies<TItem>) => void;
|
|
10642
10644
|
addCommentReplyToState: (threadId: string, newCommentReply: Comment) => void;
|
|
10643
10645
|
updateCommentReplyFromState: (threadId: string, commentReplyId: string, updateFn: (item: Comment) => Comment) => void;
|
|
10644
|
-
data: InfiniteData<CommentQueryResult<CommentWithReplies<TItem>>>;
|
|
10645
10646
|
error: null;
|
|
10646
10647
|
isError: false;
|
|
10647
10648
|
isLoading: false;
|
|
@@ -10791,9 +10792,6 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentListItem"
|
|
|
10791
10792
|
declare module "libs/reach/feature/content/src/reach-2/comments/CommentSkeletonListItem" {
|
|
10792
10793
|
import { FC } from 'react';
|
|
10793
10794
|
export const CommentSkeletonListItem: FC;
|
|
10794
|
-
export const StyledSkeleton: import("styled-components").StyledComponent<FC<{
|
|
10795
|
-
className?: string;
|
|
10796
|
-
}>, import("styled-components").DefaultTheme, {}, never>;
|
|
10797
10795
|
}
|
|
10798
10796
|
declare module "libs/reach/feature/content/src/reach-2/comments/CommentsList" {
|
|
10799
10797
|
import { FC } from 'react';
|