@livetiles/reach-plugin-types 0.5.0-preview.507 → 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.
Files changed (2) hide show
  1. package/lib/index.d.ts +40 -16
  2. 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;
@@ -10622,12 +10636,22 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentDisplay"
10622
10636
  comment: Comment;
10623
10637
  }>;
10624
10638
  }
10625
- declare module "libs/reach/feature/content/src/reach-2/comments/index" {
10626
- export * from "libs/reach/feature/content/src/reach-2/comments/CommentDisplay";
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
+ }>;
10627
10647
  }
10628
10648
  declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton" {
10629
10649
  import { FC } from 'react';
10650
+ import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
10630
10651
  export const CommentButton: FC<{
10652
+ itemResourceType: ItemResourceTypes;
10653
+ scope: ConversationScope;
10654
+ itemId: string;
10631
10655
  commentCount?: number;
10632
10656
  isVertical?: boolean;
10633
10657
  className?: string;
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.507",
7
+ "version": "0.5.0-preview.508",
8
8
  "dependencies": {}
9
9
  }