@livetiles/reach-plugin-types 0.5.0-preview.506 → 0.5.0-preview.508
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 +42 -16
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -7862,6 +7862,32 @@ declare module "libs/reach/feature/content/src/comments/LegacyCommentDisplay" {
|
|
|
7862
7862
|
}
|
|
7863
7863
|
export const LegacyCommentDisplay: FC<Props>;
|
|
7864
7864
|
}
|
|
7865
|
+
declare module "libs/reach/feature/content/src/comments/ThreadContext" {
|
|
7866
|
+
import { FC, Dispatch, SetStateAction } from 'react';
|
|
7867
|
+
export const ThreadContext: import("react").Context<{
|
|
7868
|
+
setActiveThreadId: (threadId: string) => unknown;
|
|
7869
|
+
activeThreadId: string;
|
|
7870
|
+
hasMoreUnreadReplies?: boolean;
|
|
7871
|
+
setHasMoreUnreadReplies?: Dispatch<SetStateAction<boolean>>;
|
|
7872
|
+
}>;
|
|
7873
|
+
export const ThreadContextProvider: FC;
|
|
7874
|
+
}
|
|
7875
|
+
declare module "libs/reach/feature/content/src/comments/useCommentsPageLoader" {
|
|
7876
|
+
import { Comment, ConversationScope, ItemResourceTypes, PaginatedList } from "libs/reach/util/common/src/index";
|
|
7877
|
+
type isLoadingType = boolean;
|
|
7878
|
+
type hasNextPageType = boolean;
|
|
7879
|
+
type loadNextPageType = () => unknown;
|
|
7880
|
+
type setCommentsType = (updateComments: (prevComments: Comment[]) => Comment[]) => unknown;
|
|
7881
|
+
type hasMoreUnreadCommentsType = boolean;
|
|
7882
|
+
export function useCommentsPageLoader(type: ItemResourceTypes, scope: ConversationScope, itemId: string, pageSize: number, initialPageSize: number, initialComments?: PaginatedList<Comment>, preventLoading?: boolean, threadId?: string, shouldNotRefreshUserDetails?: boolean): [
|
|
7883
|
+
Comment[],
|
|
7884
|
+
isLoadingType,
|
|
7885
|
+
hasNextPageType,
|
|
7886
|
+
loadNextPageType,
|
|
7887
|
+
setCommentsType,
|
|
7888
|
+
hasMoreUnreadCommentsType
|
|
7889
|
+
];
|
|
7890
|
+
}
|
|
7865
7891
|
declare module "libs/reach/feature/content/src/comments/index" {
|
|
7866
7892
|
export * from "libs/reach/feature/content/src/comments/ContentDisplay";
|
|
7867
7893
|
export * from "libs/reach/feature/content/src/comments/FollowComments";
|
|
@@ -7877,6 +7903,7 @@ declare module "libs/reach/feature/content/src/comments/index" {
|
|
|
7877
7903
|
export * from "libs/reach/feature/content/src/comments/EditCommentWithAttachments";
|
|
7878
7904
|
export * from "libs/reach/feature/content/src/comments/RichCommentInputWithAttachmentList";
|
|
7879
7905
|
export * from "libs/reach/feature/content/src/comments/CommentInput";
|
|
7906
|
+
export * from "libs/reach/feature/content/src/comments/useCommentsPageLoader";
|
|
7880
7907
|
}
|
|
7881
7908
|
declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
|
|
7882
7909
|
import { FC } from 'react';
|
|
@@ -8785,16 +8812,6 @@ declare module "libs/reach/feature/content/src/common/hooks/usePageViewTracker"
|
|
|
8785
8812
|
}
|
|
8786
8813
|
export function usePageViewTracker(basePath: ItemResourceTypes | string, itemId: string, viewType?: PageViewType): void;
|
|
8787
8814
|
}
|
|
8788
|
-
declare module "libs/reach/feature/content/src/comments/ThreadContext" {
|
|
8789
|
-
import { FC, Dispatch, SetStateAction } from 'react';
|
|
8790
|
-
export const ThreadContext: import("react").Context<{
|
|
8791
|
-
setActiveThreadId: (threadId: string) => unknown;
|
|
8792
|
-
activeThreadId: string;
|
|
8793
|
-
hasMoreUnreadReplies?: boolean;
|
|
8794
|
-
setHasMoreUnreadReplies?: Dispatch<SetStateAction<boolean>>;
|
|
8795
|
-
}>;
|
|
8796
|
-
export const ThreadContextProvider: FC;
|
|
8797
|
-
}
|
|
8798
8815
|
declare module "libs/reach/feature/content/src/comments/CommentWithReplies" {
|
|
8799
8816
|
import { Account, Comment, ConversationScope, ItemResourceTypes, PaginatedList } from "libs/reach/util/common/src/index";
|
|
8800
8817
|
import { FC } from 'react';
|
|
@@ -8867,10 +8884,7 @@ declare module "libs/reach/feature/content/src/comments/CreateCommentWithAttachm
|
|
|
8867
8884
|
}
|
|
8868
8885
|
declare module "libs/reach/feature/content/src/comments/PagedCommentsSection" {
|
|
8869
8886
|
import { FC, ReactNode } from 'react';
|
|
8870
|
-
import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
|
|
8871
|
-
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8872
|
-
import { Account } from "libs/reach/util/common/src/index";
|
|
8873
|
-
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
8887
|
+
import { Account, Comment, ConversationScope, ItemResourceTypes, PaginatedList } from "libs/reach/util/common/src/index";
|
|
8874
8888
|
type Props = {
|
|
8875
8889
|
mentionSearchHandler: (text: string, postGroupId?: string) => Promise<Account[]>;
|
|
8876
8890
|
type: ItemResourceTypes;
|
|
@@ -10589,6 +10603,7 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/BaseLike
|
|
|
10589
10603
|
disabled?: boolean;
|
|
10590
10604
|
onLike?: (isNowLiked: boolean) => void;
|
|
10591
10605
|
isVertical?: boolean;
|
|
10606
|
+
className?: string;
|
|
10592
10607
|
}>;
|
|
10593
10608
|
}
|
|
10594
10609
|
declare module "libs/reach/feature/content/src/reach-2/comments/CommentLikeButton" {
|
|
@@ -10621,12 +10636,22 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentDisplay"
|
|
|
10621
10636
|
comment: Comment;
|
|
10622
10637
|
}>;
|
|
10623
10638
|
}
|
|
10624
|
-
declare module "libs/reach/feature/content/src/reach-2/comments/
|
|
10625
|
-
|
|
10639
|
+
declare module "libs/reach/feature/content/src/reach-2/comments/CommentsList" {
|
|
10640
|
+
import { FC } from 'react';
|
|
10641
|
+
import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
10642
|
+
export const CommentsList: FC<{
|
|
10643
|
+
itemResourceType: ItemResourceTypes;
|
|
10644
|
+
scope: ConversationScope;
|
|
10645
|
+
itemId: string;
|
|
10646
|
+
}>;
|
|
10626
10647
|
}
|
|
10627
10648
|
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton" {
|
|
10628
10649
|
import { FC } from 'react';
|
|
10650
|
+
import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
10629
10651
|
export const CommentButton: FC<{
|
|
10652
|
+
itemResourceType: ItemResourceTypes;
|
|
10653
|
+
scope: ConversationScope;
|
|
10654
|
+
itemId: string;
|
|
10630
10655
|
commentCount?: number;
|
|
10631
10656
|
isVertical?: boolean;
|
|
10632
10657
|
className?: string;
|
|
@@ -10639,6 +10664,7 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ItemLike
|
|
|
10639
10664
|
item: PublishableItem;
|
|
10640
10665
|
itemType: ItemResourceTypes;
|
|
10641
10666
|
isVertical?: boolean;
|
|
10667
|
+
className?: string;
|
|
10642
10668
|
}>;
|
|
10643
10669
|
}
|
|
10644
10670
|
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButton" {
|