@livetiles/reach-plugin-types 0.5.0-preview.596 → 0.5.0-preview.598

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 +6 -2
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -10826,6 +10826,7 @@ declare module "libs/reach/feature/content/src/reach-2/comments/RichTextEditor"
10826
10826
  import { Editor } from '@tiptap/react';
10827
10827
  export const RichTextEditor: FC<{
10828
10828
  editor: Editor;
10829
+ isCollapsed?: boolean;
10829
10830
  className?: string;
10830
10831
  }>;
10831
10832
  }
@@ -10837,11 +10838,12 @@ declare module "libs/reach/feature/content/src/reach-2/comments/EnhancedRichText
10837
10838
  export const EnhancedRichTextEditor: FC<{
10838
10839
  initialContent: string;
10839
10840
  isReadOnly?: boolean;
10840
- header?: JSX.Element;
10841
+ header?: (clearContent: () => void) => JSX.Element;
10841
10842
  main: (editor: Editor) => JSX.Element;
10842
10843
  footer?: (content: string | null, clearContent: () => void, getCharacterCount: () => number) => JSX.Element;
10843
10844
  placeholder?: string;
10844
10845
  onCreate?: (editor: IEditor) => void;
10846
+ onFocus?: (editor: IEditor) => void;
10845
10847
  autofocus?: FocusPosition;
10846
10848
  className?: string;
10847
10849
  }>;
@@ -10879,7 +10881,7 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditor" {
10879
10881
  import { Comment } from "libs/reach/util/common/src/index";
10880
10882
  interface BaseCommentEditorProps {
10881
10883
  onSave: (newContent: string, clearContent: () => void) => void;
10882
- onCancel: () => void;
10884
+ onCancel?: () => void;
10883
10885
  comment?: Comment;
10884
10886
  isReadOnly?: boolean;
10885
10887
  className?: string;
@@ -10887,6 +10889,7 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditor" {
10887
10889
  export interface CommentEditorProps extends BaseCommentEditorProps {
10888
10890
  title?: string;
10889
10891
  autofocus?: boolean;
10892
+ isCollapsed?: boolean;
10890
10893
  }
10891
10894
  export const CommentEditor: FC<CommentEditorProps>;
10892
10895
  export const MobileCommentEditor: FC<BaseCommentEditorProps & {
@@ -10902,6 +10905,7 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CreateCommentBut
10902
10905
  scope: ConversationScope;
10903
10906
  onCommentAdded?: (newComment: Comment, clearContent: () => void) => Promise<void>;
10904
10907
  onToggleEditor?: (showEditor: boolean) => void;
10908
+ showCommentEditor?: boolean;
10905
10909
  isMobile?: boolean;
10906
10910
  className?: string;
10907
10911
  }>;
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.596",
7
+ "version": "0.5.0-preview.598",
8
8
  "dependencies": {}
9
9
  }