@livetiles/reach-plugin-types 0.5.0-preview.507 → 0.5.0-preview.509

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 +46 -17
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -5725,7 +5725,7 @@ declare module "libs/reach/ui/common/src/reach-2/BaseDialog" {
5725
5725
  export interface BaseDialogProps {
5726
5726
  triggerButton: HTMLButtonElement | JSX.Element;
5727
5727
  isOpen?: boolean;
5728
- title?: string | JSX.Element;
5728
+ title?: string;
5729
5729
  type?: DialogType;
5730
5730
  isBlocking?: boolean;
5731
5731
  onDismiss?: (event?: MouseEvent<HTMLButtonElement>) => void;
@@ -5765,6 +5765,11 @@ declare module "libs/reach/ui/common/src/reach-2/utils" {
5765
5765
  breakpoints: number[];
5766
5766
  };
5767
5767
  }
5768
+ declare module "libs/reach/ui/common/src/reach-2/MobileInlineModal" {
5769
+ import { FC } from 'react';
5770
+ import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/BaseDialog";
5771
+ export const MobileInlineModal: FC<BaseDialogProps>;
5772
+ }
5768
5773
  declare module "libs/reach/ui/common/src/reach-2/Panel" {
5769
5774
  import { FC } from 'react';
5770
5775
  import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/BaseDialog";
@@ -7862,6 +7867,32 @@ declare module "libs/reach/feature/content/src/comments/LegacyCommentDisplay" {
7862
7867
  }
7863
7868
  export const LegacyCommentDisplay: FC<Props>;
7864
7869
  }
7870
+ declare module "libs/reach/feature/content/src/comments/ThreadContext" {
7871
+ import { FC, Dispatch, SetStateAction } from 'react';
7872
+ export const ThreadContext: import("react").Context<{
7873
+ setActiveThreadId: (threadId: string) => unknown;
7874
+ activeThreadId: string;
7875
+ hasMoreUnreadReplies?: boolean;
7876
+ setHasMoreUnreadReplies?: Dispatch<SetStateAction<boolean>>;
7877
+ }>;
7878
+ export const ThreadContextProvider: FC;
7879
+ }
7880
+ declare module "libs/reach/feature/content/src/comments/useCommentsPageLoader" {
7881
+ import { Comment, ConversationScope, ItemResourceTypes, PaginatedList } from "libs/reach/util/common/src/index";
7882
+ type isLoadingType = boolean;
7883
+ type hasNextPageType = boolean;
7884
+ type loadNextPageType = () => unknown;
7885
+ type setCommentsType = (updateComments: (prevComments: Comment[]) => Comment[]) => unknown;
7886
+ type hasMoreUnreadCommentsType = boolean;
7887
+ export function useCommentsPageLoader(type: ItemResourceTypes, scope: ConversationScope, itemId: string, pageSize: number, initialPageSize: number, initialComments?: PaginatedList<Comment>, preventLoading?: boolean, threadId?: string, shouldNotRefreshUserDetails?: boolean): [
7888
+ Comment[],
7889
+ isLoadingType,
7890
+ hasNextPageType,
7891
+ loadNextPageType,
7892
+ setCommentsType,
7893
+ hasMoreUnreadCommentsType
7894
+ ];
7895
+ }
7865
7896
  declare module "libs/reach/feature/content/src/comments/index" {
7866
7897
  export * from "libs/reach/feature/content/src/comments/ContentDisplay";
7867
7898
  export * from "libs/reach/feature/content/src/comments/FollowComments";
@@ -7877,6 +7908,7 @@ declare module "libs/reach/feature/content/src/comments/index" {
7877
7908
  export * from "libs/reach/feature/content/src/comments/EditCommentWithAttachments";
7878
7909
  export * from "libs/reach/feature/content/src/comments/RichCommentInputWithAttachmentList";
7879
7910
  export * from "libs/reach/feature/content/src/comments/CommentInput";
7911
+ export * from "libs/reach/feature/content/src/comments/useCommentsPageLoader";
7880
7912
  }
7881
7913
  declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
7882
7914
  import { FC } from 'react';
@@ -8785,16 +8817,6 @@ declare module "libs/reach/feature/content/src/common/hooks/usePageViewTracker"
8785
8817
  }
8786
8818
  export function usePageViewTracker(basePath: ItemResourceTypes | string, itemId: string, viewType?: PageViewType): void;
8787
8819
  }
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
8820
  declare module "libs/reach/feature/content/src/comments/CommentWithReplies" {
8799
8821
  import { Account, Comment, ConversationScope, ItemResourceTypes, PaginatedList } from "libs/reach/util/common/src/index";
8800
8822
  import { FC } from 'react';
@@ -8867,10 +8889,7 @@ declare module "libs/reach/feature/content/src/comments/CreateCommentWithAttachm
8867
8889
  }
8868
8890
  declare module "libs/reach/feature/content/src/comments/PagedCommentsSection" {
8869
8891
  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";
8892
+ import { Account, Comment, ConversationScope, ItemResourceTypes, PaginatedList } from "libs/reach/util/common/src/index";
8874
8893
  type Props = {
8875
8894
  mentionSearchHandler: (text: string, postGroupId?: string) => Promise<Account[]>;
8876
8895
  type: ItemResourceTypes;
@@ -10622,12 +10641,22 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentDisplay"
10622
10641
  comment: Comment;
10623
10642
  }>;
10624
10643
  }
10625
- declare module "libs/reach/feature/content/src/reach-2/comments/index" {
10626
- export * from "libs/reach/feature/content/src/reach-2/comments/CommentDisplay";
10644
+ declare module "libs/reach/feature/content/src/reach-2/comments/CommentsList" {
10645
+ import { FC } from 'react';
10646
+ import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
10647
+ export const CommentsList: FC<{
10648
+ itemResourceType: ItemResourceTypes;
10649
+ scope: ConversationScope;
10650
+ itemId: string;
10651
+ }>;
10627
10652
  }
10628
10653
  declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton" {
10629
10654
  import { FC } from 'react';
10655
+ import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
10630
10656
  export const CommentButton: FC<{
10657
+ itemResourceType: ItemResourceTypes;
10658
+ scope: ConversationScope;
10659
+ itemId: string;
10631
10660
  commentCount?: number;
10632
10661
  isVertical?: boolean;
10633
10662
  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.509",
8
8
  "dependencies": {}
9
9
  }