@livetiles/reach-plugin-types 0.5.0-preview.580 → 0.5.0-preview.582

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 +224 -80
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3855,6 +3855,7 @@ declare module "libs/reach/util/common/src/reach-2/NewUserExperienceContext" {
3855
3855
  declare module "libs/reach/util/common/src/reach-2/GlobalStyles" {
3856
3856
  import { FC } from 'react';
3857
3857
  export const GlobalApp2Styles: FC;
3858
+ export const BorderStyles: import("styled-components").FlattenSimpleInterpolation;
3858
3859
  }
3859
3860
  declare module "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogglingControls" {
3860
3861
  export function usePageScrollDirectionForTogglingControls(disableOnLargeScreen?: boolean, maximumAllowedScreenWidth?: number, upThreshold?: number, downThreshold?: number): boolean;
@@ -4070,16 +4071,14 @@ declare module "libs/reach/ui/common/src/HighlightBubble" {
4070
4071
  declare module "libs/reach/ui/common/src/EditorHighlight" {
4071
4072
  import { FC } from 'react';
4072
4073
  interface Props {
4073
- isActive: boolean;
4074
4074
  readOnly: boolean;
4075
4075
  onClick: () => void;
4076
+ tooltipResourceKey?: string;
4076
4077
  className?: string;
4077
4078
  }
4078
- export const EditorHighlight: FC<Props & {
4079
- tooltipResourceKey?: string;
4080
- }>;
4079
+ export const EditorHighlight: FC<Props>;
4081
4080
  export const ChannelsEditorBubble: FC<Props & {
4082
- tooltipResourceKey?: string;
4081
+ isActive: boolean;
4083
4082
  }>;
4084
4083
  }
4085
4084
  declare module "libs/reach/ui/common/src/IconButton" {
@@ -4760,6 +4759,17 @@ declare module "libs/reach/ui/common/src/common/animations/OpacityAnimation" {
4760
4759
  }
4761
4760
  export const OpacityAnimation: FC<AnimationProps>;
4762
4761
  }
4762
+ declare module "libs/reach/ui/common/src/common/animations/HeightEaseAnimation" {
4763
+ import { CSSProperties, FC } from 'react';
4764
+ interface AnimationProps {
4765
+ finalHeight: string | number;
4766
+ enterDuration?: number;
4767
+ leaveDuration?: number;
4768
+ style?: CSSProperties;
4769
+ className?: string;
4770
+ }
4771
+ export const HeightEaseAnimation: FC<AnimationProps>;
4772
+ }
4763
4773
  declare module "libs/reach/ui/common/src/common/buttons/AutoTranslateButton" {
4764
4774
  import { FC } from 'react';
4765
4775
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
@@ -5509,6 +5519,7 @@ declare module "libs/reach/ui/common/src/common/index" {
5509
5519
  export * from "libs/reach/ui/common/src/common/Utils";
5510
5520
  export * from "libs/reach/ui/common/src/common/VerificationStatusIcon";
5511
5521
  export * from "libs/reach/ui/common/src/common/animations/OpacityAnimation";
5522
+ export * from "libs/reach/ui/common/src/common/animations/HeightEaseAnimation";
5512
5523
  export * from "libs/reach/ui/common/src/common/buttons/ActionButton";
5513
5524
  export * from "libs/reach/ui/common/src/common/buttons/AutoTranslateButton";
5514
5525
  export * from "libs/reach/ui/common/src/common/buttons/ChoiceGroup";
@@ -5669,10 +5680,18 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
5669
5680
  export { ReactComponent as NotificationIcon } from './assets/bell.svg';
5670
5681
  export { ReactComponent as NotificationActiveIcon } from './assets/bell-active.svg';
5671
5682
  export { ReactComponent as AddIcon } from './assets/add.svg';
5683
+ export { ReactComponent as AddFilledIcon } from './assets/add-filled.svg';
5672
5684
  export { ReactComponent as MenuIcon } from './assets/menu.svg';
5673
5685
  export { ReactComponent as MessagingIcon } from './assets/messaging.svg';
5674
5686
  export { ReactComponent as BackIcon } from './assets/back.svg';
5675
5687
  export { ReactComponent as ConversationsIcon } from './assets/conversations.svg';
5688
+ export { ReactComponent as TextFormat } from './assets/textFormat.svg';
5689
+ export { ReactComponent as TextFormatBold } from './assets/textFormatBold.svg';
5690
+ export { ReactComponent as TextFormatItalic } from './assets/textFormatItalic.svg';
5691
+ export { ReactComponent as TextFormatBulletedList } from './assets/textFormatBulletedList.svg';
5692
+ export { ReactComponent as TextFormatOrderedList } from './assets/textFormatOrderedList.svg';
5693
+ export { ReactComponent as CancelIcon } from './assets/cancel.svg';
5694
+ export { ReactComponent as EditIcon } from './assets/edit.svg';
5676
5695
  }
5677
5696
  declare module "libs/reach/ui/common/src/reach-2/icons/index" {
5678
5697
  export * from "libs/reach/ui/common/src/reach-2/icons/Icons";
@@ -5693,19 +5712,18 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/BaseButton" {
5693
5712
  icon?: JSX.Element;
5694
5713
  disabled?: boolean;
5695
5714
  onClick?: MouseEventHandler<HTMLButtonElement>;
5715
+ domIdentifier?: string;
5696
5716
  className?: string;
5697
5717
  }
5698
5718
  export const BaseButton: import("react").ForwardRefExoticComponent<BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
5699
5719
  export const BaseButtonStyle: import("styled-components").FlattenSimpleInterpolation;
5700
5720
  }
5701
5721
  declare module "libs/reach/ui/common/src/reach-2/buttons/StandardButtons" {
5702
- import { FC } from 'react';
5703
- import { BaseButtonProps } from "libs/reach/ui/common/src/reach-2/buttons/BaseButton";
5704
- export const OutlinedButton: FC<BaseButtonProps>;
5705
- export const PrimaryButton: FC<BaseButtonProps>;
5706
- export const SecondaryButton: FC<BaseButtonProps>;
5707
- export const TertiaryButton: FC<BaseButtonProps>;
5708
- export const TextButton: FC<BaseButtonProps>;
5722
+ export const OutlinedButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("libs/reach/ui/common/src/reach-2/buttons/BaseButton").BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
5723
+ export const PrimaryButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("libs/reach/ui/common/src/reach-2/buttons/BaseButton").BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
5724
+ export const SecondaryButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("libs/reach/ui/common/src/reach-2/buttons/BaseButton").BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
5725
+ export const TertiaryButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("libs/reach/ui/common/src/reach-2/buttons/BaseButton").BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
5726
+ export const TextButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("libs/reach/ui/common/src/reach-2/buttons/BaseButton").BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
5709
5727
  }
5710
5728
  declare module "libs/reach/ui/common/src/reach-2/buttons/IconActionButton" {
5711
5729
  import { MouseEvent, SVGProps } from 'react';
@@ -5746,6 +5764,29 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/BackButton" {
5746
5764
  className?: string;
5747
5765
  }>;
5748
5766
  }
5767
+ declare module "libs/reach/ui/common/src/reach-2/buttons/BaseIconicButton" {
5768
+ import { MouseEventHandler, SVGProps } from 'react';
5769
+ export type BaseIconicButtonSizeType = 'Default' | 'Small' | 'Large';
5770
+ export interface BaseIconicButtonProps {
5771
+ defaultSVG: SVGProps<SVGElement>;
5772
+ hoveredSVG?: SVGProps<SVGElement>;
5773
+ buttonSize?: BaseIconicButtonSizeType;
5774
+ disabled?: boolean;
5775
+ onClick?: MouseEventHandler<HTMLButtonElement>;
5776
+ className?: string;
5777
+ }
5778
+ export const BaseIconicButton: import("react").ForwardRefExoticComponent<BaseIconicButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
5779
+ }
5780
+ declare module "libs/reach/ui/common/src/reach-2/buttons/IconicButtons" {
5781
+ import { FC } from 'react';
5782
+ import { BaseIconicButtonProps } from "libs/reach/ui/common/src/reach-2/buttons/BaseIconicButton";
5783
+ export const PrimaryIconicButton: FC<BaseIconicButtonProps & {
5784
+ isSelected?: boolean;
5785
+ }>;
5786
+ export const SecondaryIconicButton: FC<BaseIconicButtonProps & {
5787
+ isSelected?: boolean;
5788
+ }>;
5789
+ }
5749
5790
  declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
5750
5791
  export * from "libs/reach/ui/common/src/reach-2/buttons/StandardButtons";
5751
5792
  export * from "libs/reach/ui/common/src/reach-2/buttons/ContentActionButton";
@@ -5753,6 +5794,7 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
5753
5794
  export * from "libs/reach/ui/common/src/reach-2/buttons/IconNavLink";
5754
5795
  export * from "libs/reach/ui/common/src/reach-2/buttons/BackButton";
5755
5796
  export { BaseButtonStyle } from "libs/reach/ui/common/src/reach-2/buttons/BaseButton";
5797
+ export * from "libs/reach/ui/common/src/reach-2/buttons/IconicButtons";
5756
5798
  }
5757
5799
  declare module "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog" {
5758
5800
  import { FC, MouseEvent } from 'react';
@@ -5761,7 +5803,7 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog" {
5761
5803
  close = 1
5762
5804
  }
5763
5805
  export interface BaseDialogProps {
5764
- triggerButton: HTMLButtonElement | JSX.Element;
5806
+ triggerButton?: HTMLButtonElement | JSX.Element;
5765
5807
  isOpen?: boolean;
5766
5808
  title?: string;
5767
5809
  type?: DialogType;
@@ -5792,6 +5834,7 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/MobileInlineModal" {
5792
5834
  export type MobileInlineModalProps = BaseDialogProps & {
5793
5835
  enterAnimation?: AnimationBuilder;
5794
5836
  leaveAnimation?: AnimationBuilder;
5837
+ hideHeader?: boolean;
5795
5838
  };
5796
5839
  export const MobileInlineModal: FC<MobileInlineModalProps>;
5797
5840
  }
@@ -5800,18 +5843,6 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/Panel" {
5800
5843
  import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
5801
5844
  export const Panel: FC<BaseDialogProps>;
5802
5845
  }
5803
- declare module "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheetWithStackedChildren" {
5804
- import { FC, ReactNode } from 'react';
5805
- export interface ModalBottomSheetWithStackedChildrenProps {
5806
- addNewLayer: (children: (closeCurrentLayer: () => void) => ReactNode, onDismiss: (() => void) | undefined, initialBreakpoint: number) => void;
5807
- closeCurrentLayer: () => void;
5808
- closeAllLayers: () => void;
5809
- }
5810
- export const StackedChildrenContext: import("react").Context<ModalBottomSheetWithStackedChildrenProps>;
5811
- export const ModalBottomSheetWithStackedChildren: FC<{
5812
- className?: string;
5813
- }>;
5814
- }
5815
5846
  declare module "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheet" {
5816
5847
  import { ReactNode } from 'react';
5817
5848
  export interface ModalBottomSheetProps {
@@ -5825,6 +5856,18 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheet" {
5825
5856
  }
5826
5857
  export const ModalBottomSheet: import("react").ForwardRefExoticComponent<ModalBottomSheetProps & import("react").RefAttributes<HTMLIonModalElement>>;
5827
5858
  }
5859
+ declare module "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheetWithStackedChildren" {
5860
+ import { FC, ReactNode } from 'react';
5861
+ export interface ModalBottomSheetWithStackedChildrenProps {
5862
+ addNewLayer: (children: (closeCurrentLayer: () => void) => ReactNode, onDismiss: (() => void) | undefined, initialBreakpoint: number) => void;
5863
+ closeCurrentLayer: () => void;
5864
+ closeAllLayers: () => void;
5865
+ }
5866
+ export const StackedChildrenContext: import("react").Context<ModalBottomSheetWithStackedChildrenProps>;
5867
+ export const ModalBottomSheetWithStackedChildren: FC<{
5868
+ className?: string;
5869
+ }>;
5870
+ }
5828
5871
  declare module "libs/reach/ui/common/src/reach-2/surfaces/Modal" {
5829
5872
  import { FC } from 'react';
5830
5873
  import { ModalBottomSheetProps } from "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheet";
@@ -5832,16 +5875,27 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/Modal" {
5832
5875
  interface ModalProps extends DialogProps, Omit<ModalBottomSheetProps, 'children'> {
5833
5876
  onDismiss: () => void;
5834
5877
  ref?: any;
5835
- triggerButton: HTMLButtonElement | JSX.Element;
5836
5878
  }
5837
5879
  export const Modal: FC<ModalProps>;
5838
5880
  }
5881
+ declare module "libs/reach/ui/common/src/reach-2/surfaces/ConfirmationDialog" {
5882
+ import { FC } from 'react';
5883
+ import { DialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/Dialog";
5884
+ export const ConfirmationDialog: FC<Omit<DialogProps, 'onSave' | 'disableSave' | 'saveButtonLabel'> & {
5885
+ onConfirm?: () => void;
5886
+ confirmButtonLabel?: string;
5887
+ isDestructive?: boolean;
5888
+ description?: string;
5889
+ }>;
5890
+ }
5839
5891
  declare module "libs/reach/ui/common/src/reach-2/surfaces/index" {
5840
5892
  export * from "libs/reach/ui/common/src/reach-2/surfaces/Dialog";
5841
5893
  export * from "libs/reach/ui/common/src/reach-2/surfaces/Panel";
5842
5894
  export * from "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheetWithStackedChildren";
5843
5895
  export * from "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheet";
5844
5896
  export * from "libs/reach/ui/common/src/reach-2/surfaces/Modal";
5897
+ export * from "libs/reach/ui/common/src/reach-2/surfaces/MobileInlineModal";
5898
+ export * from "libs/reach/ui/common/src/reach-2/surfaces/ConfirmationDialog";
5845
5899
  }
5846
5900
  declare module "libs/reach/ui/common/src/reach-2/index" {
5847
5901
  export * from "libs/reach/ui/common/src/reach-2/Icon";
@@ -5868,16 +5922,33 @@ declare module "libs/reach/ui/common/src/index" {
5868
5922
  export * from "libs/reach/ui/common/src/ColorEditor";
5869
5923
  export * from "libs/reach/ui/common/src/reach-2/index";
5870
5924
  }
5925
+ declare module "libs/reach/feature/content/src/comments/CommentContentUtils" {
5926
+ import { Account } from "libs/reach/util/common/src/index";
5927
+ type Link = {
5928
+ url: string;
5929
+ label?: string;
5930
+ };
5931
+ export interface Match {
5932
+ fullMatch: string;
5933
+ isLineBreak: boolean;
5934
+ link: Link;
5935
+ mention: {
5936
+ name: string;
5937
+ id: string;
5938
+ };
5939
+ hashtag: string;
5940
+ }
5941
+ export function transformContent(content: string): (Match | string)[];
5942
+ export function constructUserMention(user: Account): string;
5943
+ }
5871
5944
  declare module "libs/reach/feature/content/src/comments/ContentDisplay" {
5872
5945
  import { FC } from 'react';
5873
- import { Account } from "libs/reach/util/common/src/index";
5874
5946
  export enum ContentDisplayHandler {
5875
5947
  Link = 0,
5876
5948
  Mention = 1,
5877
5949
  Hashtag = 2,
5878
5950
  LineBreak = 3
5879
5951
  }
5880
- export function constructUserMention(user: Account): string;
5881
5952
  export const ContentDisplay: FC<{
5882
5953
  content: string;
5883
5954
  handlers: ContentDisplayHandler[];
@@ -7953,13 +8024,16 @@ declare module "libs/reach/feature/content/src/comments/ThreadContext" {
7953
8024
  }
7954
8025
  declare module "libs/reach/feature/content/src/comments/useCommentsPageLoader" {
7955
8026
  import { Comment, ConversationScope, ItemResourceTypes, PaginatedList } from "libs/reach/util/common/src/index";
8027
+ type commentType = Comment & {
8028
+ isNewComment?: boolean;
8029
+ };
7956
8030
  type isLoadingType = boolean;
7957
8031
  type hasNextPageType = boolean;
7958
8032
  type loadNextPageType = () => unknown;
7959
- type setCommentsType = (updateComments: (prevComments: Comment[]) => Comment[]) => unknown;
8033
+ type setCommentsType = (updateComments: (prevComments: commentType[]) => commentType[]) => unknown;
7960
8034
  type hasMoreUnreadCommentsType = boolean;
7961
- export function useCommentsPageLoader(type: ItemResourceTypes, scope: ConversationScope, itemId: string, pageSize: number, initialPageSize: number, initialComments?: PaginatedList<Comment>, preventLoading?: boolean, threadId?: string, shouldNotRefreshUserDetails?: boolean, shouldNotReverseOrder?: boolean): [
7962
- Comment[],
8035
+ export function useCommentsPageLoader(type: ItemResourceTypes, scope: ConversationScope, itemId: string, pageSize: number, initialPageSize: number, initialComments?: PaginatedList<commentType>, preventLoading?: boolean, threadId?: string, shouldNotRefreshUserDetails?: boolean, shouldNotReverseOrder?: boolean): [
8036
+ commentType[],
7963
8037
  isLoadingType,
7964
8038
  hasNextPageType,
7965
8039
  loadNextPageType,
@@ -7983,6 +8057,7 @@ declare module "libs/reach/feature/content/src/comments/index" {
7983
8057
  export * from "libs/reach/feature/content/src/comments/RichCommentInputWithAttachmentList";
7984
8058
  export * from "libs/reach/feature/content/src/comments/CommentInput";
7985
8059
  export * from "libs/reach/feature/content/src/comments/useCommentsPageLoader";
8060
+ export * from "libs/reach/feature/content/src/comments/CommentContentUtils";
7986
8061
  }
7987
8062
  declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
7988
8063
  import { FC } from 'react';
@@ -10682,8 +10757,10 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/Bookmark
10682
10757
  declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ContextMenuButton" {
10683
10758
  import { FC } from 'react';
10684
10759
  export const ContextMenuButton: FC<{
10760
+ buttons: (dismiss: () => void) => JSX.Element;
10685
10761
  onDismiss?: () => void;
10686
10762
  size?: number;
10763
+ disabled?: boolean;
10687
10764
  className?: string;
10688
10765
  }>;
10689
10766
  }
@@ -10694,6 +10771,9 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentHeader" {
10694
10771
  sender: Account;
10695
10772
  receivedDateTime: string;
10696
10773
  modifiedTime?: string;
10774
+ onEdit?: () => void;
10775
+ onDelete?: () => void;
10776
+ readonly?: boolean;
10697
10777
  }>;
10698
10778
  }
10699
10779
  declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/BaseLikeButton" {
@@ -10725,10 +10805,35 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentMetadata"
10725
10805
  comment: Comment;
10726
10806
  }>;
10727
10807
  }
10808
+ declare module "libs/reach/feature/content/src/reach-2/comments/EnhancedRichTextEditor" {
10809
+ import { FC } from 'react';
10810
+ import { Editor } from '@tiptap/react';
10811
+ import { Editor as IEditor, FocusPosition } from '@tiptap/core';
10812
+ export const editorCharacterLimit = 1000;
10813
+ export const EnhancedRichTextEditor: FC<{
10814
+ initialContent: string;
10815
+ isReadOnly?: boolean;
10816
+ header?: JSX.Element;
10817
+ main: (editor: Editor) => JSX.Element;
10818
+ footer?: (content: string | null, clearContent: () => void) => JSX.Element;
10819
+ placeholder?: string;
10820
+ onCreate?: (editor: IEditor) => void;
10821
+ autofocus?: FocusPosition;
10822
+ className?: string;
10823
+ }>;
10824
+ }
10825
+ declare module "libs/reach/feature/content/src/reach-2/comments/RichTextEditor" {
10826
+ import { FC } from 'react';
10827
+ import { Editor } from '@tiptap/react';
10828
+ export const RichTextEditor: FC<{
10829
+ editor: Editor;
10830
+ hideCount?: boolean;
10831
+ className?: string;
10832
+ }>;
10833
+ }
10728
10834
  declare module "libs/reach/feature/content/src/reach-2/comments/CommentContent" {
10729
10835
  import { FC } from 'react';
10730
10836
  export const CommentContent: FC<{
10731
- domIdentifier: string;
10732
10837
  content: string;
10733
10838
  className?: string;
10734
10839
  }>;
@@ -10738,71 +10843,56 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentDisplay"
10738
10843
  import { Comment } from "libs/reach/util/common/src/index";
10739
10844
  export const CommentDisplay: FC<{
10740
10845
  comment: Comment;
10846
+ onEdit?: () => void;
10847
+ onDelete?: () => void;
10848
+ readonly?: boolean;
10849
+ className?: string;
10741
10850
  }>;
10742
10851
  }
10743
- declare module "libs/reach/feature/content/src/reach-2/comments/CommentsList" {
10744
- import { FC } from 'react';
10745
- import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
10746
- export const CommentsList: FC<{
10747
- itemResourceType: ItemResourceTypes;
10748
- scope: ConversationScope;
10749
- itemId: string;
10750
- }>;
10852
+ declare module "libs/reach/feature/content/src/reach-2/comments/useTransformedCommentContent" {
10853
+ export function useTransformedCommentContent(commentContent?: string): string;
10751
10854
  }
10752
- declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton" {
10855
+ declare module "libs/reach/feature/content/src/reach-2/comments/CommentFormattingToolbar" {
10753
10856
  import { FC } from 'react';
10754
- import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
10755
- export const CommentButton: FC<{
10756
- itemResourceType: ItemResourceTypes;
10757
- scope: ConversationScope;
10758
- itemId: string;
10759
- commentCount?: number;
10760
- isVertical?: boolean;
10761
- className?: string;
10857
+ import { Editor } from '@tiptap/react';
10858
+ export const CommentFormattingToolbar: FC<{
10859
+ editor: Editor;
10762
10860
  }>;
10763
10861
  }
10764
- declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ItemLikeButton" {
10862
+ declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditor" {
10765
10863
  import { FC } from 'react';
10766
- import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
10767
- export const ItemLikeButton: FC<{
10768
- item: PublishableItem;
10769
- itemType: ItemResourceTypes;
10770
- isVertical?: boolean;
10771
- className?: string;
10772
- }>;
10773
- }
10774
- declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButton" {
10775
- import { FC, SVGProps } from 'react';
10776
- export const ShareButton: FC<{
10777
- onClick: () => void;
10778
- secondarySVG?: SVGProps<SVGElement>;
10864
+ import { Comment } from "libs/reach/util/common/src/index";
10865
+ export const CommentEditor: FC<{
10866
+ comment?: Comment;
10867
+ isReadOnly?: boolean;
10868
+ onSave: (newContent: string, clearContent: () => void) => void;
10869
+ onCancel: () => void;
10870
+ title?: string;
10871
+ autofocus?: boolean;
10779
10872
  className?: string;
10780
10873
  }>;
10781
10874
  }
10782
- declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareLinkButton" {
10875
+ declare module "libs/reach/feature/content/src/reach-2/comments/CreateCommentButton" {
10783
10876
  import { FC } from 'react';
10784
- export const ShareLinkButton: FC<{
10785
- permalink: string;
10877
+ import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
10878
+ export const CreateCommentButton: FC<{
10879
+ parentItemId: string;
10880
+ scope: ConversationScope;
10881
+ onCommentAdded?: (newComment: Comment, clearContent: () => void) => Promise<void>;
10882
+ onToggleEditor?: (showEditor: boolean) => void;
10883
+ isMobile?: boolean;
10786
10884
  className?: string;
10787
10885
  }>;
10788
10886
  }
10789
- declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButtonWithCallout" {
10887
+ declare module "libs/reach/feature/content/src/reach-2/comments/CommentsList" {
10790
10888
  import { FC } from 'react';
10791
- export const ShareButtonWithCallout: FC<{
10792
- permalink: string;
10889
+ import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
10890
+ export const CommentsList: FC<{
10891
+ itemResourceType: ItemResourceTypes;
10892
+ scope: ConversationScope;
10893
+ itemId: string;
10793
10894
  }>;
10794
10895
  }
10795
- declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/index" {
10796
- export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/BookmarkButton";
10797
- export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton";
10798
- export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ItemLikeButton";
10799
- export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButton";
10800
- export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButtonWithCallout";
10801
- export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ContextMenuButton";
10802
- }
10803
- declare module "libs/reach/feature/content/src/reach-2/buttons/index" {
10804
- export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/index";
10805
- }
10806
10896
  declare module "libs/reach/feature/content/src/reach-2/common/detail/header/HeaderMetadata" {
10807
10897
  import { FC } from 'react';
10808
10898
  import { PublishableItem } from "libs/reach/util/common/src/index";
@@ -10828,6 +10918,21 @@ declare module "libs/reach/feature/content/src/reach-2/common/detail/ItemAuthorA
10828
10918
  hasMargin?: boolean;
10829
10919
  }, never>;
10830
10920
  }
10921
+ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareLinkButton" {
10922
+ import { FC } from 'react';
10923
+ export const ShareLinkButton: FC<{
10924
+ permalink: string;
10925
+ className?: string;
10926
+ }>;
10927
+ }
10928
+ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButton" {
10929
+ import { FC, SVGProps } from 'react';
10930
+ export const ShareButton: FC<{
10931
+ onClick: () => void;
10932
+ secondarySVG?: SVGProps<SVGElement>;
10933
+ className?: string;
10934
+ }>;
10935
+ }
10831
10936
  declare module "libs/reach/feature/content/src/reach-2/common/detail/DetailViewContextMenu" {
10832
10937
  import { FC } from 'react';
10833
10938
  export const DetailViewContextMenu: FC<{
@@ -10843,6 +10948,22 @@ declare module "libs/reach/feature/content/src/reach-2/common/detail/DetailViewF
10843
10948
  import { FC } from 'react';
10844
10949
  export const DetailViewFooter: FC;
10845
10950
  }
10951
+ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ItemLikeButton" {
10952
+ import { FC } from 'react';
10953
+ import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
10954
+ export const ItemLikeButton: FC<{
10955
+ item: PublishableItem;
10956
+ itemType: ItemResourceTypes;
10957
+ isVertical?: boolean;
10958
+ className?: string;
10959
+ }>;
10960
+ }
10961
+ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButtonWithCallout" {
10962
+ import { FC } from 'react';
10963
+ export const ShareButtonWithCallout: FC<{
10964
+ permalink: string;
10965
+ }>;
10966
+ }
10846
10967
  declare module "libs/reach/feature/content/src/reach-2/common/detail/DetailViewFeedbackButtons" {
10847
10968
  import { FC } from 'react';
10848
10969
  export const DetailViewFeedbackButtons: FC<{
@@ -10967,6 +11088,29 @@ declare module "libs/reach/feature/content/src/reach-2/common/index" {
10967
11088
  export * from "libs/reach/feature/content/src/reach-2/common/feedback/index";
10968
11089
  export * from "libs/reach/feature/content/src/reach-2/common/snippets/index";
10969
11090
  }
11091
+ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton" {
11092
+ import { FC } from 'react';
11093
+ import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
11094
+ export const CommentButton: FC<{
11095
+ itemResourceType: ItemResourceTypes;
11096
+ scope: ConversationScope;
11097
+ itemId: string;
11098
+ commentCount?: number;
11099
+ isVertical?: boolean;
11100
+ className?: string;
11101
+ }>;
11102
+ }
11103
+ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/index" {
11104
+ export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/BookmarkButton";
11105
+ export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton";
11106
+ export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ItemLikeButton";
11107
+ export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButton";
11108
+ export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButtonWithCallout";
11109
+ export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ContextMenuButton";
11110
+ }
11111
+ declare module "libs/reach/feature/content/src/reach-2/buttons/index" {
11112
+ export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/index";
11113
+ }
10970
11114
  declare module "libs/reach/feature/content/src/reach-2/index" {
10971
11115
  export * from "libs/reach/feature/content/src/reach-2/buttons/index";
10972
11116
  export * from "libs/reach/feature/content/src/reach-2/common/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.580",
7
+ "version": "0.5.0-preview.582",
8
8
  "dependencies": {}
9
9
  }