@livetiles/reach-plugin-types 0.5.0-preview.882 → 0.5.0-preview.883

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 +60 -46
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -10681,6 +10681,46 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditorOve
10681
10681
  className?: string;
10682
10682
  }>;
10683
10683
  }
10684
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/common/EmojiPicker" {
10685
+ import { FC } from 'react';
10686
+ import { BaseEmoji } from 'emoji-mart';
10687
+ const EmojiPicker: FC<{
10688
+ onSelect: (emoji: BaseEmoji) => void;
10689
+ }>;
10690
+ export default EmojiPicker;
10691
+ }
10692
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/editors/EmojiEditor" {
10693
+ import { FC } from 'react';
10694
+ import 'emoji-mart/css/emoji-mart.css';
10695
+ export const EmojiEditor: FC<{
10696
+ onEmojiSelect: (emoji: string) => void;
10697
+ onCloseOverlay?: () => void;
10698
+ }>;
10699
+ }
10700
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/common/MentionSuggestions" {
10701
+ import { FC } from 'react';
10702
+ import { Account } from "libs/reach/util/common/src/index";
10703
+ interface MentionSuggestionsProps {
10704
+ items: Account[];
10705
+ selectSuggestion: (index: number, suggestion: Account) => void;
10706
+ isSuggestionSelected?: (index: number, suggestion: Account) => boolean;
10707
+ isLoading?: boolean;
10708
+ className?: string;
10709
+ }
10710
+ export const MentionSuggestions: FC<MentionSuggestionsProps>;
10711
+ }
10712
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/editors/MentionsEditor" {
10713
+ import { FC } from 'react';
10714
+ import { Account } from "libs/reach/util/common/src/index";
10715
+ export const MentionsEditor: FC<{
10716
+ mentionSearchHandler: (searchText: string) => Promise<Account[]>;
10717
+ onMentionSelect: (mention: {
10718
+ id: string;
10719
+ label: string;
10720
+ }) => void;
10721
+ onCloseOverlay: () => void;
10722
+ }>;
10723
+ }
10684
10724
  declare module "libs/reach/feature/content/src/reach-2/common/editor/common/SuggestionsPopover" {
10685
10725
  interface MentionsWithSuggestionsPopoverProps {
10686
10726
  suggestionsPosition: Partial<DOMRect> | null;
@@ -10697,18 +10737,6 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/extensions/
10697
10737
  const EmojiExtension: Extension<any, any>;
10698
10738
  export default EmojiExtension;
10699
10739
  }
10700
- declare module "libs/reach/feature/content/src/reach-2/common/editor/common/MentionSuggestions" {
10701
- import { FC } from 'react';
10702
- import { Account } from "libs/reach/util/common/src/index";
10703
- interface MentionSuggestionsProps {
10704
- items: Account[];
10705
- selectSuggestion: (index: number, suggestion: Account) => void;
10706
- isSuggestionSelected?: (index: number, suggestion: Account) => boolean;
10707
- isLoading?: boolean;
10708
- className?: string;
10709
- }
10710
- export const MentionSuggestions: FC<MentionSuggestionsProps>;
10711
- }
10712
10740
  declare module "libs/reach/feature/content/src/reach-2/common/editor/extensions/MentionExtension" {
10713
10741
  import { MutableRefObject } from 'react';
10714
10742
  import { Account } from "libs/reach/util/common/src/index";
@@ -10771,46 +10799,19 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRic
10771
10799
  const _default: import("react").ForwardRefExoticComponent<EnhancedRichTextEditorProps & import("react").RefAttributes<EnhancedRichTextEditorContentRef>>;
10772
10800
  export default _default;
10773
10801
  }
10774
- declare module "libs/reach/feature/content/src/reach-2/common/editor/common/EmojiPicker" {
10775
- import { FC } from 'react';
10776
- import { BaseEmoji } from 'emoji-mart';
10777
- const EmojiPicker: FC<{
10778
- onSelect: (emoji: BaseEmoji) => void;
10779
- }>;
10780
- export default EmojiPicker;
10781
- }
10782
- declare module "libs/reach/feature/content/src/reach-2/common/editor/editors/EmojiEditor" {
10783
- import { FC } from 'react';
10784
- import 'emoji-mart/css/emoji-mart.css';
10785
- export const EmojiEditor: FC<{
10786
- onEmojiSelect: (emoji: string) => void;
10787
- onCloseOverlay?: () => void;
10788
- }>;
10789
- }
10790
- declare module "libs/reach/feature/content/src/reach-2/common/editor/editors/MentionsEditor" {
10791
- import { FC } from 'react';
10792
- import { Account } from "libs/reach/util/common/src/index";
10793
- export const MentionsEditor: FC<{
10794
- mentionSearchHandler: (searchText: string) => Promise<Account[]>;
10795
- onMentionSelect: (mention: {
10796
- id: string;
10797
- label: string;
10798
- }) => void;
10799
- onCloseOverlay: () => void;
10800
- }>;
10801
- }
10802
- declare module "libs/reach/feature/content/src/reach-2/common/editor/RichTextEditor" {
10802
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor" {
10803
10803
  import { FC } from 'react';
10804
10804
  import { Editor } from '@tiptap/react';
10805
- export interface RichTextEditorStyles {
10805
+ export interface CommentRichTextEditorStyles {
10806
10806
  minHeight?: number;
10807
10807
  maxHeight?: number;
10808
10808
  }
10809
- export const RichTextEditor: FC<{
10809
+ const CommentRichTextEditor: FC<{
10810
10810
  editor: Editor;
10811
- styles?: RichTextEditorStyles;
10811
+ styles?: CommentRichTextEditorStyles;
10812
10812
  className?: string;
10813
10813
  }>;
10814
+ export default CommentRichTextEditor;
10814
10815
  }
10815
10816
  declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditor" {
10816
10817
  import { FC } from 'react';
@@ -11338,10 +11339,23 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/news/inde
11338
11339
  export * from "libs/reach/feature/content/src/reach-2/common/snippets/news/NewsCardContextMenu";
11339
11340
  export * from "libs/reach/feature/content/src/reach-2/common/snippets/news/ImageAndTextNewsItemCard";
11340
11341
  }
11342
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor" {
11343
+ import { Editor } from '@tiptap/react';
11344
+ import { FC } from 'react';
11345
+ interface IContentRichTextEditor {
11346
+ className?: string;
11347
+ editor: Editor;
11348
+ hidePlaceholder?: boolean;
11349
+ }
11350
+ const ContentRichTextEditor: FC<IContentRichTextEditor>;
11351
+ export default ContentRichTextEditor;
11352
+ }
11341
11353
  declare module "libs/reach/feature/content/src/reach-2/common/editor/index" {
11354
+ export { default as CommentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
11355
+ export * from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
11356
+ export { default as ContentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor";
11342
11357
  export { default as EnhancedRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
11343
11358
  export * from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
11344
- export * from "libs/reach/feature/content/src/reach-2/common/editor/RichTextEditor";
11345
11359
  }
11346
11360
  declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/Footer" {
11347
11361
  import { PostStreamItem } from "libs/reach/feature/content/src/stream/index";
@@ -11357,7 +11371,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
11357
11371
  interface AddMediaModalProps {
11358
11372
  isOpen?: boolean;
11359
11373
  item: PostStreamItem;
11360
- onDelete: () => void;
11374
+ onDelete: () => Promise<void>;
11361
11375
  onDismiss: () => void;
11362
11376
  }
11363
11377
  const DeletePublicationModal: FC<AddMediaModalProps>;
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.882",
7
+ "version": "0.5.0-preview.883",
8
8
  "dependencies": {}
9
9
  }