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

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 +128 -39
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -6512,7 +6512,10 @@ declare module "libs/reach/ui/common/src/reach-2/inputs/OTPInput" {
6512
6512
  declare module "libs/reach/ui/common/src/reach-2/inputs/SearchInput" {
6513
6513
  import { FC } from 'react';
6514
6514
  import { IInputProps } from "libs/reach/ui/common/src/reach-2/inputs/Input";
6515
- const SearchInput: FC<Omit<IInputProps, 'leftIcon' | 'rightIcon'>>;
6515
+ interface ISearchInputProps extends Omit<IInputProps, 'leftIcon' | 'rightIcon'> {
6516
+ onBackClick?: () => void;
6517
+ }
6518
+ const SearchInput: FC<ISearchInputProps>;
6516
6519
  export default SearchInput;
6517
6520
  }
6518
6521
  declare module "libs/reach/ui/common/src/reach-2/inputs/Textarea" {
@@ -6705,6 +6708,7 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/MobileInlineModal" {
6705
6708
  footer?: JSX.Element;
6706
6709
  hideHeader?: boolean;
6707
6710
  leaveAnimation?: AnimationBuilder;
6711
+ onPresent?: () => void;
6708
6712
  };
6709
6713
  export const MobileInlineModal: FC<MobileInlineModalProps>;
6710
6714
  }
@@ -11757,6 +11761,20 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/ButtonWithMenu" {
11757
11761
  const ButtonWithMenu: FC<ButtonWithMenuProps>;
11758
11762
  export default ButtonWithMenu;
11759
11763
  }
11764
+ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/BaseLikeButton" {
11765
+ import { FC } from 'react';
11766
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
11767
+ export const BaseLikeButton: FC<{
11768
+ itemId: string;
11769
+ itemType: ItemResourceTypes;
11770
+ isLiked?: boolean;
11771
+ likeCount?: number;
11772
+ disabled?: boolean;
11773
+ onLike?: (isNowLiked: boolean) => void;
11774
+ isVertical?: boolean;
11775
+ className?: string;
11776
+ }>;
11777
+ }
11760
11778
  declare module "libs/reach/feature/content/src/reach-2/common/feedback/ItemFeedbackMetadataContextProvider" {
11761
11779
  import { FeedbackSettings, ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
11762
11780
  import { FC } from 'react';
@@ -11790,16 +11808,16 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/Bookmark
11790
11808
  export const BookmarkButton: FC<BookmarkListItemProps>;
11791
11809
  }
11792
11810
  declare module "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor" {
11793
- import { FC } from 'react';
11794
11811
  import { Editor } from '@tiptap/react';
11812
+ import { FC } from 'react';
11795
11813
  export interface CommentRichTextEditorStyles {
11796
- minHeight?: number;
11797
11814
  maxHeight?: number;
11815
+ minHeight?: number;
11798
11816
  }
11799
11817
  const CommentRichTextEditor: FC<{
11818
+ className?: string;
11800
11819
  editor: Editor;
11801
11820
  styles?: CommentRichTextEditorStyles;
11802
- className?: string;
11803
11821
  }>;
11804
11822
  export default CommentRichTextEditor;
11805
11823
  }
@@ -12194,20 +12212,6 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentHeader" {
12194
12212
  readOnly?: boolean;
12195
12213
  }>;
12196
12214
  }
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
12215
  declare module "libs/reach/feature/content/src/reach-2/comments/CommentLikeButton" {
12212
12216
  import { FC } from 'react';
12213
12217
  export const CommentLikeButton: FC<{
@@ -12500,63 +12504,146 @@ declare module "libs/reach/feature/content/src/reach-2/comments/index" {
12500
12504
  export * from "libs/reach/feature/content/src/reach-2/comments/useCommentsQuery";
12501
12505
  export * from "libs/reach/feature/content/src/reach-2/comments/useTransformedCommentContent";
12502
12506
  }
12503
- declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/components/Footer" {
12507
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/utils" {
12508
+ export enum TextStylingOptions {
12509
+ EmojiOverlay = 0,
12510
+ MentionOverlay = 1,
12511
+ None = 2,
12512
+ TextFormatting = 3
12513
+ }
12514
+ export const ExpandCollapseEffect: (isCollapsed: boolean, maxHeight: number) => import("styled-components").FlattenSimpleInterpolation;
12515
+ }
12516
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditorFooter" {
12504
12517
  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 {
12518
+ import { TextStylingOptions } from "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/utils";
12519
+ interface ICommentEditorFooterProps {
12507
12520
  editorCharacterLimit: number;
12508
12521
  getCharacterCount: () => number;
12522
+ isCollapsed: boolean;
12523
+ isSaving?: boolean;
12509
12524
  onSave: () => void;
12510
12525
  onClickButton: (option: TextStylingOptions) => void;
12511
12526
  shouldShowTextFormatting: boolean;
12512
12527
  showTextStylingOptions: TextStylingOptions;
12513
12528
  }
12514
- const Footer: FC<IFooterProps>;
12515
- export default Footer;
12529
+ const CommentEditorFooter: FC<ICommentEditorFooterProps>;
12530
+ export default CommentEditorFooter;
12516
12531
  }
12517
- declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/components/Header" {
12532
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditorHeader" {
12518
12533
  import { FC } from 'react';
12519
- const Header: FC;
12520
- export default Header;
12534
+ interface ICommentEditorHeaderProps {
12535
+ isCollapsed: boolean;
12536
+ onCancel: () => void;
12537
+ }
12538
+ const CommentEditorHeader: FC<ICommentEditorHeaderProps>;
12539
+ export default CommentEditorHeader;
12521
12540
  }
12522
- declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/components/Main" {
12541
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditorMain" {
12523
12542
  import { Account } from "libs/reach/util/common/src/index";
12524
12543
  import { Editor } from '@tiptap/react';
12525
12544
  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 {
12545
+ import { TextStylingOptions } from "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/utils";
12546
+ interface ICommentEditorMainProps {
12528
12547
  editor: Editor;
12529
12548
  getMentionsSearchHandler: (searchText: string) => Promise<Account[]>;
12549
+ isCollapsed: boolean;
12530
12550
  setShowTextStylingOptions: (option: TextStylingOptions) => void;
12531
12551
  shouldShowOverlay: boolean;
12532
12552
  shouldShowTextFormatting: boolean;
12533
12553
  showTextStylingOptions: TextStylingOptions;
12534
12554
  }
12535
- const Main: FC<IMainProps>;
12536
- export default Main;
12555
+ const CommentEditorMain: FC<ICommentEditorMainProps>;
12556
+ export default CommentEditorMain;
12537
12557
  }
12538
12558
  declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditor" {
12539
12559
  import { Comment } from "libs/reach/util/common/src/index";
12540
12560
  import { FC } from 'react';
12541
- export enum TextStylingOptions {
12542
- None = 0,
12543
- EmojiOverlay = 1,
12544
- MentionOverlay = 2,
12545
- TextFormatting = 3
12546
- }
12547
12561
  interface ICommentEditorProps {
12548
- className?: string;
12549
12562
  comment?: Comment;
12563
+ isCollapsed?: boolean;
12564
+ isSaving?: boolean;
12565
+ onCancel?: () => void;
12566
+ onFocus?: () => void;
12567
+ onSave: (newContent: {
12568
+ content?: string;
12569
+ formattedContent?: string;
12570
+ }, clearContent: () => void) => Promise<void>;
12550
12571
  parentItemId: string;
12551
12572
  placeholder?: string;
12552
12573
  }
12553
12574
  const CommentEditor: FC<ICommentEditorProps>;
12554
12575
  export default CommentEditor;
12555
12576
  }
12577
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-display/CommentDisplayContent" {
12578
+ import { FC } from 'react';
12579
+ interface ICommentContentProps {
12580
+ content: string;
12581
+ formattedContent: string;
12582
+ }
12583
+ const CommentContent: FC<ICommentContentProps>;
12584
+ export default CommentContent;
12585
+ }
12586
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-display/CommentDisplayHeader" {
12587
+ import { Account } from "libs/reach/util/common/src/index";
12588
+ import { FC } from 'react';
12589
+ interface ICommentHeaderProps {
12590
+ modifiedTime: string;
12591
+ onDelete: () => void;
12592
+ onEdit: () => void;
12593
+ receivedDateTime: string;
12594
+ sender: Account;
12595
+ }
12596
+ const CommentHeader: FC<ICommentHeaderProps>;
12597
+ export default CommentHeader;
12598
+ }
12599
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-display/CommentDisplayMetaData" {
12600
+ import { Comment } from "libs/reach/util/common/src/index";
12601
+ import { FC } from 'react';
12602
+ interface ICommentMetadataProps {
12603
+ comment: Comment;
12604
+ onReply: () => void;
12605
+ }
12606
+ const CommentMetadata: FC<ICommentMetadataProps>;
12607
+ export default CommentMetadata;
12608
+ }
12609
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-display/CommentDisplay" {
12610
+ import { Comment } from "libs/reach/util/common/src/index";
12611
+ import { FC } from 'react';
12612
+ interface ICommentDisplayProps {
12613
+ comment: Comment;
12614
+ onEdit: () => void;
12615
+ onDelete: () => void;
12616
+ onReply: () => void;
12617
+ }
12618
+ const CommentDisplay: FC<ICommentDisplayProps>;
12619
+ export default CommentDisplay;
12620
+ }
12621
+ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentListItem" {
12622
+ import { CommentWithReplies } from "libs/reach/feature/content/src/index";
12623
+ import { Comment } from "libs/reach/util/common/src/index";
12624
+ import { FC } from 'react';
12625
+ interface CommentItemProps {
12626
+ comment: CommentWithReplies;
12627
+ isEditMode: boolean;
12628
+ isSaving: boolean;
12629
+ onCommentDeleted: (comment: Comment) => Promise<void>;
12630
+ onCommentUpdated: (comment: Comment, newContent: {
12631
+ content?: string;
12632
+ formattedContent?: string;
12633
+ }) => Promise<void>;
12634
+ onEdit: (isEditMode?: boolean) => void;
12635
+ onReply: () => void;
12636
+ parentItemId: string;
12637
+ }
12638
+ const CommentListItem: FC<CommentItemProps>;
12639
+ export default CommentListItem;
12640
+ }
12556
12641
  declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentsList" {
12557
12642
  import { FC } from 'react';
12558
12643
  interface ICommentsListProps {
12559
12644
  itemId: string;
12645
+ refetchItem: (itemId: string) => Promise<void>;
12646
+ totalComments: number;
12560
12647
  }
12561
12648
  const CommentsList: FC<ICommentsListProps>;
12562
12649
  export default CommentsList;
@@ -12564,8 +12651,8 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
12564
12651
  declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/Footer" {
12565
12652
  import { PostStreamItem } from "libs/reach/feature/content/src/stream/index";
12566
12653
  interface IFooterProps {
12567
- commentCount?: number;
12568
12654
  item: PostStreamItem;
12655
+ refetchItem: (itemId: string) => Promise<void>;
12569
12656
  }
12570
12657
  const Footer: React.FC<IFooterProps>;
12571
12658
  export default Footer;
@@ -12597,6 +12684,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
12597
12684
  interface IPublicationCardProps {
12598
12685
  item: PostStreamItem;
12599
12686
  onEdit: () => void;
12687
+ refetchItem: (itemId: string) => Promise<void>;
12600
12688
  refreshList: () => Promise<void>;
12601
12689
  }
12602
12690
  const PublicationCard: React.FC<IPublicationCardProps>;
@@ -12645,6 +12733,7 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareBut
12645
12733
  export const ShareButton: import("react").ForwardRefExoticComponent<IShareButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
12646
12734
  }
12647
12735
  declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/index" {
12736
+ export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/BaseLikeButton";
12648
12737
  export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/BookmarkButton";
12649
12738
  export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton";
12650
12739
  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.1047",
8
8
  "dependencies": {}
9
9
  }