@livetiles/reach-plugin-types 0.5.0-preview.733 → 0.5.0-preview.734

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 +45 -2
  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";
@@ -10466,9 +10468,30 @@ declare module "libs/reach/feature/content/src/reach-2/comments/extensions/Emoji
10466
10468
  import { Extension } from '@tiptap/react';
10467
10469
  export const EmojiExtension: Extension<any, any>;
10468
10470
  }
10471
+ declare module "libs/reach/feature/content/src/reach-2/comments/common/MentionSuggestions" {
10472
+ import { FC } from 'react';
10473
+ import { Account } from "libs/reach/util/common/src/index";
10474
+ interface MentionSuggestionsProps {
10475
+ items: Account[];
10476
+ selectSuggestion: (index: number, suggestion: Account) => void;
10477
+ isSuggestionSelected?: (index: number, suggestion: Account) => boolean;
10478
+ className?: string;
10479
+ }
10480
+ export const MentionSuggestions: FC<MentionSuggestionsProps>;
10481
+ }
10469
10482
  declare module "libs/reach/feature/content/src/reach-2/comments/extensions/MentionExtension" {
10470
10483
  import { MutableRefObject } from 'react';
10471
10484
  import { Account } from "libs/reach/util/common/src/index";
10485
+ module '@tiptap/core' {
10486
+ interface Commands<ReturnType> {
10487
+ customExtension: {
10488
+ addMention: (props: {
10489
+ id: string;
10490
+ label: string;
10491
+ }) => ReturnType;
10492
+ };
10493
+ }
10494
+ }
10472
10495
  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
10496
  }
10474
10497
  declare module "libs/reach/feature/content/src/reach-2/comments/extensions/SuggestionsPopover" {
@@ -10527,11 +10550,31 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditorOve
10527
10550
  import { FC } from 'react';
10528
10551
  import 'emoji-mart/css/emoji-mart.css';
10529
10552
  export const CommentEditorOverlay: FC<{
10530
- onCloseOverlay?: () => void;
10531
- onEmojiSelect?: (emoji: string) => void;
10553
+ isOpen?: boolean;
10554
+ onCloseOverlay: () => void;
10555
+ overlayContent?: (onCloseOverlay: () => void) => JSX.Element;
10532
10556
  className?: string;
10533
10557
  }>;
10534
10558
  }
10559
+ declare module "libs/reach/feature/content/src/reach-2/comments/editors/EmojiEditor" {
10560
+ import { FC } from 'react';
10561
+ export const EmojiEditor: FC<{
10562
+ onEmojiSelect: (emoji: string) => void;
10563
+ onCloseOverlay?: () => void;
10564
+ }>;
10565
+ }
10566
+ declare module "libs/reach/feature/content/src/reach-2/comments/editors/MentionsEditor" {
10567
+ import { FC } from 'react';
10568
+ import { Account } from "libs/reach/util/common/src/index";
10569
+ export const MentionsEditor: FC<{
10570
+ mentionSearchHandler: (searchText: string) => Promise<Account[]>;
10571
+ onMentionSelect: (mention: {
10572
+ id: string;
10573
+ label: string;
10574
+ }) => void;
10575
+ onCloseOverlay: () => void;
10576
+ }>;
10577
+ }
10535
10578
  declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditor" {
10536
10579
  import { FC } from 'react';
10537
10580
  import { Comment } from "libs/reach/util/common/src/index";
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.733",
7
+ "version": "0.5.0-preview.734",
8
8
  "dependencies": {}
9
9
  }