@livetiles/reach-plugin-types 0.5.0-preview.857 → 0.5.0-preview.859

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 +13 -10
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -10706,30 +10706,32 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/extensions/
10706
10706
  export const SuggestionsPopover: import("react").ForwardRefExoticComponent<MentionsWithSuggestionsPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
10707
10707
  }
10708
10708
  declare module "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor" {
10709
- import { FC } from 'react';
10710
10709
  import { Editor } from '@tiptap/react';
10711
10710
  import { Editor as IEditor, FocusPosition } from '@tiptap/core';
10712
10711
  import { Account } from "libs/reach/util/common/src/index";
10713
10712
  export const editorCharacterLimit = 1000;
10714
- export const EnhancedRichTextEditor: FC<{
10713
+ interface EnhancedRichTextEditorContent {
10714
+ formattedContent?: string;
10715
+ content?: string;
10716
+ }
10717
+ export interface EnhancedRichTextEditorContentRef {
10718
+ getContent: () => EnhancedRichTextEditorContent;
10719
+ }
10720
+ interface EnhancedRichTextEditorProps {
10715
10721
  initialContent: string;
10716
10722
  isReadOnly?: boolean;
10717
10723
  header?: (clearContent: () => void) => JSX.Element;
10718
10724
  main: (editor: Editor) => JSX.Element;
10719
- footer?: (content: {
10720
- formattedContent?: string;
10721
- content?: string;
10722
- }, editor: Editor, clearContent: () => void, recoverContent: (content: {
10723
- formattedContent?: string;
10724
- content?: string;
10725
- }) => void, getCharacterCount: () => number) => JSX.Element;
10725
+ footer?: (content: EnhancedRichTextEditorContent, editor: Editor, clearContent: () => void, recoverContent: (content: EnhancedRichTextEditorContent) => void, getCharacterCount: () => number) => JSX.Element;
10726
10726
  placeholder?: string;
10727
10727
  onCreate?: (editor: IEditor) => void;
10728
10728
  onFocus?: (editor: IEditor) => void;
10729
10729
  autofocus?: FocusPosition;
10730
10730
  mentionSearchHandler?: (searchText: string) => Promise<Account[]>;
10731
10731
  className?: string;
10732
- }>;
10732
+ }
10733
+ const _default: import("react").ForwardRefExoticComponent<EnhancedRichTextEditorProps & import("react").RefAttributes<EnhancedRichTextEditorContentRef>>;
10734
+ export default _default;
10733
10735
  }
10734
10736
  declare module "libs/reach/feature/content/src/reach-2/common/editor/common/EmojiPicker" {
10735
10737
  import { FC } from 'react';
@@ -11308,6 +11310,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/index" {
11308
11310
  export * from "libs/reach/feature/content/src/reach-2/common/snippets/common/index";
11309
11311
  }
11310
11312
  declare module "libs/reach/feature/content/src/reach-2/common/editor/index" {
11313
+ export { default as EnhancedRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
11311
11314
  export * from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
11312
11315
  export * from "libs/reach/feature/content/src/reach-2/common/editor/RichTextEditor";
11313
11316
  }
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.857",
7
+ "version": "0.5.0-preview.859",
8
8
  "dependencies": {}
9
9
  }