@livetiles/reach-plugin-types 0.5.0-preview.733 → 0.5.0-preview.735
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 +57 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5320,6 +5320,8 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
|
|
|
5320
5320
|
export { ReactComponent as Loading } from './assets/loading.svg';
|
|
5321
5321
|
export { ReactComponent as EmojiIcon } from './assets/emoji.svg';
|
|
5322
5322
|
export { ReactComponent as EmojiActiveIcon } from './assets/emoji_active.svg';
|
|
5323
|
+
export { ReactComponent as MentionIcon } from './assets/mention.svg';
|
|
5324
|
+
export { ReactComponent as MentionActiveIcon } from './assets/mention_active.svg';
|
|
5323
5325
|
}
|
|
5324
5326
|
declare module "libs/reach/ui/common/src/reach-2/icons/index" {
|
|
5325
5327
|
export * from "libs/reach/ui/common/src/reach-2/icons/Icons";
|
|
@@ -5517,6 +5519,17 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/ConfirmationDialog" {
|
|
|
5517
5519
|
description?: string;
|
|
5518
5520
|
}>;
|
|
5519
5521
|
}
|
|
5522
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/BasePopover" {
|
|
5523
|
+
import { FC } from 'react';
|
|
5524
|
+
export interface BasePopoverProps {
|
|
5525
|
+
isOpen?: boolean;
|
|
5526
|
+
onOpenChange?: (open: boolean) => void;
|
|
5527
|
+
trigger?: JSX.Element;
|
|
5528
|
+
anchor?: JSX.Element;
|
|
5529
|
+
className?: string;
|
|
5530
|
+
}
|
|
5531
|
+
export const BasePopover: FC<BasePopoverProps>;
|
|
5532
|
+
}
|
|
5520
5533
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/index" {
|
|
5521
5534
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/Dialog";
|
|
5522
5535
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/Panel";
|
|
@@ -5525,6 +5538,7 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/index" {
|
|
|
5525
5538
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/Modal";
|
|
5526
5539
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/MobileInlineModal";
|
|
5527
5540
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/ConfirmationDialog";
|
|
5541
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/BasePopover";
|
|
5528
5542
|
}
|
|
5529
5543
|
declare module "libs/reach/ui/common/src/reach-2/progress/Skeleton" {
|
|
5530
5544
|
import { FC } from 'react';
|
|
@@ -10466,9 +10480,30 @@ declare module "libs/reach/feature/content/src/reach-2/comments/extensions/Emoji
|
|
|
10466
10480
|
import { Extension } from '@tiptap/react';
|
|
10467
10481
|
export const EmojiExtension: Extension<any, any>;
|
|
10468
10482
|
}
|
|
10483
|
+
declare module "libs/reach/feature/content/src/reach-2/comments/common/MentionSuggestions" {
|
|
10484
|
+
import { FC } from 'react';
|
|
10485
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
10486
|
+
interface MentionSuggestionsProps {
|
|
10487
|
+
items: Account[];
|
|
10488
|
+
selectSuggestion: (index: number, suggestion: Account) => void;
|
|
10489
|
+
isSuggestionSelected?: (index: number, suggestion: Account) => boolean;
|
|
10490
|
+
className?: string;
|
|
10491
|
+
}
|
|
10492
|
+
export const MentionSuggestions: FC<MentionSuggestionsProps>;
|
|
10493
|
+
}
|
|
10469
10494
|
declare module "libs/reach/feature/content/src/reach-2/comments/extensions/MentionExtension" {
|
|
10470
10495
|
import { MutableRefObject } from 'react';
|
|
10471
10496
|
import { Account } from "libs/reach/util/common/src/index";
|
|
10497
|
+
module '@tiptap/core' {
|
|
10498
|
+
interface Commands<ReturnType> {
|
|
10499
|
+
customExtension: {
|
|
10500
|
+
addMention: (props: {
|
|
10501
|
+
id: string;
|
|
10502
|
+
label: string;
|
|
10503
|
+
}) => ReturnType;
|
|
10504
|
+
};
|
|
10505
|
+
}
|
|
10506
|
+
}
|
|
10472
10507
|
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>;
|
|
10473
10508
|
}
|
|
10474
10509
|
declare module "libs/reach/feature/content/src/reach-2/comments/extensions/SuggestionsPopover" {
|
|
@@ -10527,11 +10562,31 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditorOve
|
|
|
10527
10562
|
import { FC } from 'react';
|
|
10528
10563
|
import 'emoji-mart/css/emoji-mart.css';
|
|
10529
10564
|
export const CommentEditorOverlay: FC<{
|
|
10530
|
-
|
|
10531
|
-
|
|
10565
|
+
isOpen?: boolean;
|
|
10566
|
+
onCloseOverlay: () => void;
|
|
10567
|
+
overlayContent?: (onCloseOverlay: () => void) => JSX.Element;
|
|
10532
10568
|
className?: string;
|
|
10533
10569
|
}>;
|
|
10534
10570
|
}
|
|
10571
|
+
declare module "libs/reach/feature/content/src/reach-2/comments/editors/EmojiEditor" {
|
|
10572
|
+
import { FC } from 'react';
|
|
10573
|
+
export const EmojiEditor: FC<{
|
|
10574
|
+
onEmojiSelect: (emoji: string) => void;
|
|
10575
|
+
onCloseOverlay?: () => void;
|
|
10576
|
+
}>;
|
|
10577
|
+
}
|
|
10578
|
+
declare module "libs/reach/feature/content/src/reach-2/comments/editors/MentionsEditor" {
|
|
10579
|
+
import { FC } from 'react';
|
|
10580
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
10581
|
+
export const MentionsEditor: FC<{
|
|
10582
|
+
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
10583
|
+
onMentionSelect: (mention: {
|
|
10584
|
+
id: string;
|
|
10585
|
+
label: string;
|
|
10586
|
+
}) => void;
|
|
10587
|
+
onCloseOverlay: () => void;
|
|
10588
|
+
}>;
|
|
10589
|
+
}
|
|
10535
10590
|
declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditor" {
|
|
10536
10591
|
import { FC } from 'react';
|
|
10537
10592
|
import { Comment } from "libs/reach/util/common/src/index";
|