@livetiles/reach-plugin-types 0.5.0-preview.601 → 0.5.0-preview.604

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 +5 -5
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -10880,7 +10880,7 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditor" {
10880
10880
  import { FC } from 'react';
10881
10881
  import { Comment } from "libs/reach/util/common/src/index";
10882
10882
  interface BaseCommentEditorProps {
10883
- onSave: (newContent: string, clearContent: () => void) => void;
10883
+ onSave: (newContent: string) => Promise<void>;
10884
10884
  onCancel?: () => void;
10885
10885
  comment?: Comment;
10886
10886
  isReadOnly?: boolean;
@@ -10897,15 +10897,15 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditor" {
10897
10897
  triggerButton?: JSX.Element | HTMLButtonElement;
10898
10898
  }>;
10899
10899
  }
10900
- declare module "libs/reach/feature/content/src/reach-2/comments/CreateCommentButton" {
10900
+ declare module "libs/reach/feature/content/src/reach-2/comments/CommentCreator" {
10901
10901
  import { FC } from 'react';
10902
10902
  import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
10903
- export const CreateCommentButton: FC<{
10903
+ export const CommentCreator: FC<{
10904
10904
  parentItemId: string;
10905
10905
  scope: ConversationScope;
10906
- onCommentAdded?: (newComment: Comment, clearContent: () => void) => Promise<void>;
10906
+ onCommentAdded: (newComment: Comment) => Promise<void>;
10907
10907
  onToggleEditor?: (showEditor: boolean) => void;
10908
- showCommentEditor?: boolean;
10908
+ alwaysShowCommentEditor?: boolean;
10909
10909
  isMobile?: boolean;
10910
10910
  className?: string;
10911
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.601",
7
+ "version": "0.5.0-preview.604",
8
8
  "dependencies": {}
9
9
  }