@livetiles/reach-plugin-types 0.5.0-preview.1077 → 0.5.0-preview.1079

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 +41 -11
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -6174,6 +6174,7 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
6174
6174
  export { ReactComponent as ChevronDownIcon } from './assets/chevronDown.svg';
6175
6175
  export { ReactComponent as ChevronLeftIcon } from './assets/chevronLeft.svg';
6176
6176
  export { ReactComponent as ChevronRightIcon } from './assets/chevronRight.svg';
6177
+ export { ReactComponent as CircleDividerIcon } from './assets/circle-divider.svg';
6177
6178
  export { ReactComponent as CloseActiveIcon } from './assets/close-active.svg';
6178
6179
  export { ReactComponent as CloseIcon } from './assets/close.svg';
6179
6180
  export { ReactComponent as CollapseIcon } from './assets/collapse.svg';
@@ -12634,17 +12635,25 @@ declare module "libs/reach/feature/content/src/reach-2/comments/index" {
12634
12635
  export * from "libs/reach/feature/content/src/reach-2/comments/CommentDisplay";
12635
12636
  export * from "libs/reach/feature/content/src/reach-2/comments/CommentEditorOverlay";
12636
12637
  export * from "libs/reach/feature/content/src/reach-2/comments/CommentFormattingToolbar";
12638
+ export * from "libs/reach/feature/content/src/reach-2/comments/CommentSkeletonListItem";
12637
12639
  export * from "libs/reach/feature/content/src/reach-2/comments/CommentsList";
12638
12640
  export * from "libs/reach/feature/content/src/reach-2/comments/useCommentsQuery";
12639
12641
  export * from "libs/reach/feature/content/src/reach-2/comments/useTransformedCommentContent";
12640
12642
  }
12641
12643
  declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/utils" {
12644
+ import { Comment } from "libs/reach/util/common/src/index";
12642
12645
  export enum TextStylingOptions {
12643
12646
  EmojiOverlay = 0,
12644
12647
  MentionOverlay = 1,
12645
12648
  None = 2,
12646
12649
  TextFormatting = 3
12647
12650
  }
12651
+ export type CommentType = Comment & {
12652
+ isNewComment?: boolean;
12653
+ };
12654
+ export type ReplyType = Comment & {
12655
+ isNewReply?: boolean;
12656
+ };
12648
12657
  export const ExpandCollapseEffect: (isCollapsed: boolean, maxHeight: number) => import("styled-components").FlattenSimpleInterpolation;
12649
12658
  }
12650
12659
  declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditorFooter" {
@@ -12736,6 +12745,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
12736
12745
  interface ICommentMetadataProps {
12737
12746
  comment: Comment;
12738
12747
  onReply: () => void;
12748
+ totalReplies: number;
12739
12749
  }
12740
12750
  const CommentMetadata: FC<ICommentMetadataProps>;
12741
12751
  export default CommentMetadata;
@@ -12747,40 +12757,60 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
12747
12757
  comment: Comment;
12748
12758
  onEdit: () => void;
12749
12759
  onDelete: () => void;
12750
- onReply: () => void;
12760
+ onReply?: () => void;
12761
+ totalReplies: number;
12751
12762
  }
12752
12763
  const CommentDisplay: FC<ICommentDisplayProps>;
12753
12764
  export default CommentDisplay;
12754
12765
  }
12766
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentListItemReplies" {
12767
+ import { Comment, PaginatedList } from "libs/reach/util/common/src/index";
12768
+ import { FC } from 'react';
12769
+ interface ICommentListItemRepliesProps {
12770
+ initialReplies: PaginatedList<Comment>;
12771
+ isCollapsed: boolean;
12772
+ parentItemId: string;
12773
+ refetchComments: () => void;
12774
+ threadId: string;
12775
+ totalReplies: number;
12776
+ }
12777
+ const CommentListItemReplies: FC<ICommentListItemRepliesProps>;
12778
+ export default CommentListItemReplies;
12779
+ }
12755
12780
  declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentListItem" {
12756
- import { CommentWithReplies } from "libs/reach/feature/content/src/index";
12757
- import { Comment } from "libs/reach/util/common/src/index";
12781
+ import { Comment, PaginatedList } from "libs/reach/util/common/src/index";
12758
12782
  import { FC } from 'react';
12759
- interface CommentItemProps {
12783
+ import { CommentWithReplies } from "libs/reach/feature/content/src/reach-2/comments/index";
12784
+ interface ICommentListItemProps {
12760
12785
  comment: CommentWithReplies;
12786
+ initialReplies: PaginatedList<Comment>;
12787
+ isCollapsed: boolean;
12761
12788
  isEditMode: boolean;
12789
+ isReplyMode: boolean;
12762
12790
  isSaving: boolean;
12763
12791
  onCommentDeleted: (comment: Comment) => Promise<void>;
12764
12792
  onCommentUpdated: (comment: Comment, newContent: {
12765
12793
  content?: string;
12766
12794
  formattedContent?: string;
12767
12795
  }) => Promise<void>;
12768
- onEdit: (isEditMode?: boolean) => void;
12769
- onReply: () => void;
12796
+ onEdit: (isEditMode: boolean) => void;
12797
+ onReply: (isReplyMode: boolean) => void;
12770
12798
  parentItemId: string;
12799
+ refetchComments: () => void;
12800
+ totalReplies: number;
12771
12801
  }
12772
- const CommentListItem: FC<CommentItemProps>;
12802
+ const CommentListItem: FC<ICommentListItemProps>;
12773
12803
  export default CommentListItem;
12774
12804
  }
12775
- declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentsList" {
12805
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentList" {
12776
12806
  import { FC } from 'react';
12777
- interface ICommentsListProps {
12807
+ interface ICommentListProps {
12778
12808
  itemId: string;
12779
12809
  refetchItem: (itemId: string) => Promise<void>;
12780
12810
  totalComments: number;
12781
12811
  }
12782
- const CommentsList: FC<ICommentsListProps>;
12783
- export default CommentsList;
12812
+ const CommentList: FC<ICommentListProps>;
12813
+ export default CommentList;
12784
12814
  }
12785
12815
  declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/Footer" {
12786
12816
  import { PostStreamItem } from "libs/reach/feature/content/src/stream/index";
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.1077",
7
+ "version": "0.5.0-preview.1079",
8
8
  "dependencies": {}
9
9
  }