@livetiles/reach-plugin-types 0.5.0-preview.1045 → 0.5.0-preview.1046

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 +123 -38
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -11757,6 +11757,20 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/ButtonWithMenu" {
11757
11757
  const ButtonWithMenu: FC<ButtonWithMenuProps>;
11758
11758
  export default ButtonWithMenu;
11759
11759
  }
11760
+ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/BaseLikeButton" {
11761
+ import { FC } from 'react';
11762
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
11763
+ export const BaseLikeButton: FC<{
11764
+ itemId: string;
11765
+ itemType: ItemResourceTypes;
11766
+ isLiked?: boolean;
11767
+ likeCount?: number;
11768
+ disabled?: boolean;
11769
+ onLike?: (isNowLiked: boolean) => void;
11770
+ isVertical?: boolean;
11771
+ className?: string;
11772
+ }>;
11773
+ }
11760
11774
  declare module "libs/reach/feature/content/src/reach-2/common/feedback/ItemFeedbackMetadataContextProvider" {
11761
11775
  import { FeedbackSettings, ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
11762
11776
  import { FC } from 'react';
@@ -11790,16 +11804,16 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/Bookmark
11790
11804
  export const BookmarkButton: FC<BookmarkListItemProps>;
11791
11805
  }
11792
11806
  declare module "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor" {
11793
- import { FC } from 'react';
11794
11807
  import { Editor } from '@tiptap/react';
11808
+ import { FC } from 'react';
11795
11809
  export interface CommentRichTextEditorStyles {
11796
- minHeight?: number;
11797
11810
  maxHeight?: number;
11811
+ minHeight?: number;
11798
11812
  }
11799
11813
  const CommentRichTextEditor: FC<{
11814
+ className?: string;
11800
11815
  editor: Editor;
11801
11816
  styles?: CommentRichTextEditorStyles;
11802
- className?: string;
11803
11817
  }>;
11804
11818
  export default CommentRichTextEditor;
11805
11819
  }
@@ -12194,20 +12208,6 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentHeader" {
12194
12208
  readOnly?: boolean;
12195
12209
  }>;
12196
12210
  }
12197
- declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/BaseLikeButton" {
12198
- import { FC } from 'react';
12199
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
12200
- export const BaseLikeButton: FC<{
12201
- itemId: string;
12202
- itemType: ItemResourceTypes;
12203
- isLiked?: boolean;
12204
- likeCount?: number;
12205
- disabled?: boolean;
12206
- onLike?: (isNowLiked: boolean) => void;
12207
- isVertical?: boolean;
12208
- className?: string;
12209
- }>;
12210
- }
12211
12211
  declare module "libs/reach/feature/content/src/reach-2/comments/CommentLikeButton" {
12212
12212
  import { FC } from 'react';
12213
12213
  export const CommentLikeButton: FC<{
@@ -12500,63 +12500,146 @@ declare module "libs/reach/feature/content/src/reach-2/comments/index" {
12500
12500
  export * from "libs/reach/feature/content/src/reach-2/comments/useCommentsQuery";
12501
12501
  export * from "libs/reach/feature/content/src/reach-2/comments/useTransformedCommentContent";
12502
12502
  }
12503
- declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/components/Footer" {
12503
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/utils" {
12504
+ export enum TextStylingOptions {
12505
+ EmojiOverlay = 0,
12506
+ MentionOverlay = 1,
12507
+ None = 2,
12508
+ TextFormatting = 3
12509
+ }
12510
+ export const ExpandCollapseEffect: (isCollapsed: boolean, maxHeight: number) => import("styled-components").FlattenSimpleInterpolation;
12511
+ }
12512
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditorFooter" {
12504
12513
  import { FC } from 'react';
12505
- import { TextStylingOptions } from "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditor";
12506
- interface IFooterProps {
12514
+ import { TextStylingOptions } from "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/utils";
12515
+ interface ICommentEditorFooterProps {
12507
12516
  editorCharacterLimit: number;
12508
12517
  getCharacterCount: () => number;
12518
+ isCollapsed: boolean;
12519
+ isSaving?: boolean;
12509
12520
  onSave: () => void;
12510
12521
  onClickButton: (option: TextStylingOptions) => void;
12511
12522
  shouldShowTextFormatting: boolean;
12512
12523
  showTextStylingOptions: TextStylingOptions;
12513
12524
  }
12514
- const Footer: FC<IFooterProps>;
12515
- export default Footer;
12525
+ const CommentEditorFooter: FC<ICommentEditorFooterProps>;
12526
+ export default CommentEditorFooter;
12516
12527
  }
12517
- declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/components/Header" {
12528
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditorHeader" {
12518
12529
  import { FC } from 'react';
12519
- const Header: FC;
12520
- export default Header;
12530
+ interface ICommentEditorHeaderProps {
12531
+ isCollapsed: boolean;
12532
+ onCancel: () => void;
12533
+ }
12534
+ const CommentEditorHeader: FC<ICommentEditorHeaderProps>;
12535
+ export default CommentEditorHeader;
12521
12536
  }
12522
- declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/components/Main" {
12537
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditorMain" {
12523
12538
  import { Account } from "libs/reach/util/common/src/index";
12524
12539
  import { Editor } from '@tiptap/react';
12525
12540
  import { FC } from 'react';
12526
- import { TextStylingOptions } from "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditor";
12527
- interface IMainProps {
12541
+ import { TextStylingOptions } from "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/utils";
12542
+ interface ICommentEditorMainProps {
12528
12543
  editor: Editor;
12529
12544
  getMentionsSearchHandler: (searchText: string) => Promise<Account[]>;
12545
+ isCollapsed: boolean;
12530
12546
  setShowTextStylingOptions: (option: TextStylingOptions) => void;
12531
12547
  shouldShowOverlay: boolean;
12532
12548
  shouldShowTextFormatting: boolean;
12533
12549
  showTextStylingOptions: TextStylingOptions;
12534
12550
  }
12535
- const Main: FC<IMainProps>;
12536
- export default Main;
12551
+ const CommentEditorMain: FC<ICommentEditorMainProps>;
12552
+ export default CommentEditorMain;
12537
12553
  }
12538
12554
  declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditor" {
12539
12555
  import { Comment } from "libs/reach/util/common/src/index";
12540
12556
  import { FC } from 'react';
12541
- export enum TextStylingOptions {
12542
- None = 0,
12543
- EmojiOverlay = 1,
12544
- MentionOverlay = 2,
12545
- TextFormatting = 3
12546
- }
12547
12557
  interface ICommentEditorProps {
12548
- className?: string;
12549
12558
  comment?: Comment;
12559
+ isCollapsed?: boolean;
12560
+ isSaving?: boolean;
12561
+ onCancel?: () => void;
12562
+ onFocus?: () => void;
12563
+ onSave: (newContent: {
12564
+ content?: string;
12565
+ formattedContent?: string;
12566
+ }, clearContent: () => void) => Promise<void>;
12550
12567
  parentItemId: string;
12551
12568
  placeholder?: string;
12552
12569
  }
12553
12570
  const CommentEditor: FC<ICommentEditorProps>;
12554
12571
  export default CommentEditor;
12555
12572
  }
12573
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-display/CommentDisplayContent" {
12574
+ import { FC } from 'react';
12575
+ interface ICommentContentProps {
12576
+ content: string;
12577
+ formattedContent: string;
12578
+ }
12579
+ const CommentContent: FC<ICommentContentProps>;
12580
+ export default CommentContent;
12581
+ }
12582
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-display/CommentDisplayHeader" {
12583
+ import { Account } from "libs/reach/util/common/src/index";
12584
+ import { FC } from 'react';
12585
+ interface ICommentHeaderProps {
12586
+ modifiedTime: string;
12587
+ onDelete: () => void;
12588
+ onEdit: () => void;
12589
+ receivedDateTime: string;
12590
+ sender: Account;
12591
+ }
12592
+ const CommentHeader: FC<ICommentHeaderProps>;
12593
+ export default CommentHeader;
12594
+ }
12595
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-display/CommentDisplayMetaData" {
12596
+ import { Comment } from "libs/reach/util/common/src/index";
12597
+ import { FC } from 'react';
12598
+ interface ICommentMetadataProps {
12599
+ comment: Comment;
12600
+ onReply: () => void;
12601
+ }
12602
+ const CommentMetadata: FC<ICommentMetadataProps>;
12603
+ export default CommentMetadata;
12604
+ }
12605
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-display/CommentDisplay" {
12606
+ import { Comment } from "libs/reach/util/common/src/index";
12607
+ import { FC } from 'react';
12608
+ interface ICommentDisplayProps {
12609
+ comment: Comment;
12610
+ onEdit: () => void;
12611
+ onDelete: () => void;
12612
+ onReply: () => void;
12613
+ }
12614
+ const CommentDisplay: FC<ICommentDisplayProps>;
12615
+ export default CommentDisplay;
12616
+ }
12617
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentListItem" {
12618
+ import { CommentWithReplies } from "libs/reach/feature/content/src/index";
12619
+ import { Comment } from "libs/reach/util/common/src/index";
12620
+ import { FC } from 'react';
12621
+ interface CommentItemProps {
12622
+ comment: CommentWithReplies;
12623
+ isEditMode: boolean;
12624
+ isSaving: boolean;
12625
+ onCommentDeleted: (comment: Comment) => Promise<void>;
12626
+ onCommentUpdated: (comment: Comment, newContent: {
12627
+ content?: string;
12628
+ formattedContent?: string;
12629
+ }) => Promise<void>;
12630
+ onEdit: (isEditMode?: boolean) => void;
12631
+ onReply: () => void;
12632
+ parentItemId: string;
12633
+ }
12634
+ const CommentListItem: FC<CommentItemProps>;
12635
+ export default CommentListItem;
12636
+ }
12556
12637
  declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentsList" {
12557
12638
  import { FC } from 'react';
12558
12639
  interface ICommentsListProps {
12559
12640
  itemId: string;
12641
+ refetchItem: (itemId: string) => Promise<void>;
12642
+ totalComments: number;
12560
12643
  }
12561
12644
  const CommentsList: FC<ICommentsListProps>;
12562
12645
  export default CommentsList;
@@ -12564,8 +12647,8 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
12564
12647
  declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/Footer" {
12565
12648
  import { PostStreamItem } from "libs/reach/feature/content/src/stream/index";
12566
12649
  interface IFooterProps {
12567
- commentCount?: number;
12568
12650
  item: PostStreamItem;
12651
+ refetchItem: (itemId: string) => Promise<void>;
12569
12652
  }
12570
12653
  const Footer: React.FC<IFooterProps>;
12571
12654
  export default Footer;
@@ -12597,6 +12680,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
12597
12680
  interface IPublicationCardProps {
12598
12681
  item: PostStreamItem;
12599
12682
  onEdit: () => void;
12683
+ refetchItem: (itemId: string) => Promise<void>;
12600
12684
  refreshList: () => Promise<void>;
12601
12685
  }
12602
12686
  const PublicationCard: React.FC<IPublicationCardProps>;
@@ -12645,6 +12729,7 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareBut
12645
12729
  export const ShareButton: import("react").ForwardRefExoticComponent<IShareButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
12646
12730
  }
12647
12731
  declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/index" {
12732
+ export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/BaseLikeButton";
12648
12733
  export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/BookmarkButton";
12649
12734
  export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton";
12650
12735
  export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ItemLikeButton";
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.1045",
7
+ "version": "0.5.0-preview.1046",
8
8
  "dependencies": {}
9
9
  }