@livetiles/reach-plugin-types 0.5.0-preview.591 → 0.5.0-preview.593

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 +12 -5
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -6094,7 +6094,7 @@ declare module "libs/reach/feature/content/src/comments/useCommentApi" {
6094
6094
  deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
6095
6095
  deleteEditorComment: (itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
6096
6096
  toggleCommentLike: (commentId: string, isLiked: boolean) => Promise<unknown>;
6097
- updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) => Promise<import("restful.js").MemberResponse<unknown>>;
6097
+ updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) => Promise<Comment>;
6098
6098
  onCommentCreated$: import("rxjs").Observable<string>;
6099
6099
  };
6100
6100
  }
@@ -10877,14 +10877,21 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentFormattin
10877
10877
  declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditor" {
10878
10878
  import { FC } from 'react';
10879
10879
  import { Comment } from "libs/reach/util/common/src/index";
10880
- export const CommentEditor: FC<{
10881
- comment?: Comment;
10882
- isReadOnly?: boolean;
10880
+ interface BaseCommentEditorProps {
10883
10881
  onSave: (newContent: string, clearContent: () => void) => void;
10884
10882
  onCancel: () => void;
10883
+ comment?: Comment;
10884
+ isReadOnly?: boolean;
10885
+ className?: string;
10886
+ }
10887
+ export interface CommentEditorProps extends BaseCommentEditorProps {
10885
10888
  title?: string;
10886
10889
  autofocus?: boolean;
10887
- className?: string;
10890
+ }
10891
+ export const CommentEditor: FC<CommentEditorProps>;
10892
+ export const MobileCommentEditor: FC<BaseCommentEditorProps & {
10893
+ isOpen?: boolean;
10894
+ triggerButton?: JSX.Element | HTMLButtonElement;
10888
10895
  }>;
10889
10896
  }
10890
10897
  declare module "libs/reach/feature/content/src/reach-2/comments/CreateCommentButton" {
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.591",
7
+ "version": "0.5.0-preview.593",
8
8
  "dependencies": {}
9
9
  }