@livetiles/reach-plugin-types 0.5.0-preview.724 → 0.5.0-preview.726
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.
- package/lib/index.d.ts +16 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -10465,10 +10465,22 @@ declare module "libs/reach/feature/content/src/reach-2/comments/extensions/Emoji
|
|
|
10465
10465
|
import { Extension } from '@tiptap/react';
|
|
10466
10466
|
export const EmojiExtension: Extension<any, any>;
|
|
10467
10467
|
}
|
|
10468
|
+
declare module "libs/reach/feature/content/src/reach-2/comments/extensions/MentionExtension" {
|
|
10469
|
+
import { MutableRefObject } from 'react';
|
|
10470
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
10471
|
+
export const MentionExtension: (mentionSearchHandler: (searchText: string) => Promise<Account[]>, setSuggestionsPosition: (newPos: DOMRect | null) => void, suggestionsRef: MutableRefObject<HTMLDivElement>) => import("@tiptap/react").Node<import("@tiptap/extension-mention").MentionOptions, any>;
|
|
10472
|
+
}
|
|
10473
|
+
declare module "libs/reach/feature/content/src/reach-2/comments/extensions/SuggestionsPopover" {
|
|
10474
|
+
interface MentionsWithSuggestionsPopoverProps {
|
|
10475
|
+
suggestionsPosition: Partial<DOMRect> | null;
|
|
10476
|
+
}
|
|
10477
|
+
export const SuggestionsPopover: import("react").ForwardRefExoticComponent<MentionsWithSuggestionsPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10478
|
+
}
|
|
10468
10479
|
declare module "libs/reach/feature/content/src/reach-2/comments/EnhancedRichTextEditor" {
|
|
10469
10480
|
import { FC } from 'react';
|
|
10470
10481
|
import { Editor } from '@tiptap/react';
|
|
10471
10482
|
import { Editor as IEditor, FocusPosition } from '@tiptap/core';
|
|
10483
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
10472
10484
|
export const editorCharacterLimit = 1000;
|
|
10473
10485
|
export const EnhancedRichTextEditor: FC<{
|
|
10474
10486
|
initialContent: string;
|
|
@@ -10483,6 +10495,7 @@ declare module "libs/reach/feature/content/src/reach-2/comments/EnhancedRichText
|
|
|
10483
10495
|
onCreate?: (editor: IEditor) => void;
|
|
10484
10496
|
onFocus?: (editor: IEditor) => void;
|
|
10485
10497
|
autofocus?: FocusPosition;
|
|
10498
|
+
mentionSearchHandler?: (searchText: string) => Promise<Account[]>;
|
|
10486
10499
|
className?: string;
|
|
10487
10500
|
}>;
|
|
10488
10501
|
}
|
|
@@ -10526,6 +10539,7 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditor" {
|
|
|
10526
10539
|
formattedContent?: string;
|
|
10527
10540
|
content?: string;
|
|
10528
10541
|
}) => Promise<void>;
|
|
10542
|
+
parentItemId: string;
|
|
10529
10543
|
onCancel?: () => void;
|
|
10530
10544
|
comment?: Comment;
|
|
10531
10545
|
isReadOnly?: boolean;
|
|
@@ -10551,6 +10565,7 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentCreator"
|
|
|
10551
10565
|
formattedContent?: string;
|
|
10552
10566
|
content?: string;
|
|
10553
10567
|
}) => Promise<void>;
|
|
10568
|
+
parentItemId: string;
|
|
10554
10569
|
onToggleEditor?: (showEditor: boolean) => void;
|
|
10555
10570
|
alwaysShowCommentEditor?: boolean;
|
|
10556
10571
|
isMobile?: boolean;
|
|
@@ -10826,6 +10841,7 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentListItem"
|
|
|
10826
10841
|
import { Comment, ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
10827
10842
|
interface CommentItemProps {
|
|
10828
10843
|
comment: CommentWithReplies;
|
|
10844
|
+
parentItemId: string;
|
|
10829
10845
|
onCommentDeleted: () => Promise<void>;
|
|
10830
10846
|
onCommentUpdated: (comment: Comment, newContent: {
|
|
10831
10847
|
formattedContent?: string;
|
|
@@ -10835,7 +10851,6 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentListItem"
|
|
|
10835
10851
|
isMobile?: boolean;
|
|
10836
10852
|
}
|
|
10837
10853
|
export const CommentListItemWithReplies: FC<CommentItemProps & {
|
|
10838
|
-
parentItemId: string;
|
|
10839
10854
|
itemResourceType: ItemResourceTypes;
|
|
10840
10855
|
scope: ConversationScope;
|
|
10841
10856
|
onReplyCountChange?: (threadId: string, newReplyCount: number) => void;
|