@livetiles/reach-plugin-types 0.5.0-preview.896 → 0.5.0-preview.897

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 +7 -9
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -10765,8 +10765,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/extensions/
10765
10765
  }
10766
10766
  declare module "libs/reach/feature/content/src/reach-2/common/editor/extensions/ShortcutExtension" {
10767
10767
  import { Extension } from '@tiptap/react';
10768
- import { Editor } from '@tiptap/core';
10769
- const ShortcutExtension: (shortcuts?: string[], onShortcut?: (editor: Editor, shortcut: string) => void) => Extension<any, any>;
10768
+ const ShortcutExtension: (shortcuts?: string[], onShortcut?: (shortcut: string) => void) => Extension<any, any>;
10770
10769
  export default ShortcutExtension;
10771
10770
  }
10772
10771
  declare module "libs/reach/feature/content/src/reach-2/common/editor/extensions/index" {
@@ -10777,8 +10776,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/extensions/
10777
10776
  }
10778
10777
  declare module "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor" {
10779
10778
  import { Account } from "libs/reach/util/common/src/index";
10780
- import { FocusPosition, Editor as IEditor } from '@tiptap/core';
10781
- import { Editor } from '@tiptap/react';
10779
+ import { Editor, FocusPosition } from '@tiptap/react';
10782
10780
  export const editorCharacterLimit = 1000;
10783
10781
  export interface EnhancedRichTextEditorContent {
10784
10782
  content?: string;
@@ -10787,7 +10785,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRic
10787
10785
  export interface EnhancedRichTextEditorRef {
10788
10786
  getContent: () => EnhancedRichTextEditorContent;
10789
10787
  getContentRef: () => React.MutableRefObject<HTMLDivElement>;
10790
- getEditor: () => IEditor;
10788
+ getEditor: () => Editor;
10791
10789
  }
10792
10790
  interface EnhancedRichTextEditorProps {
10793
10791
  autofocus?: FocusPosition;
@@ -10799,11 +10797,11 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRic
10799
10797
  isReadOnly?: boolean;
10800
10798
  main: (editor: Editor) => JSX.Element;
10801
10799
  mentionSearchHandler?: (searchText: string) => Promise<Account[]>;
10802
- onCreate?: (editor: IEditor) => void;
10803
- onFocus?: (editor: IEditor) => void;
10804
- onShortcut?: (editor: IEditor, shortcut: string) => void;
10800
+ onCreate?: (editor: Editor) => void;
10801
+ onFocus?: (editor: Editor) => void;
10802
+ onShortcut?: (shortcut: string) => void;
10805
10803
  onUpdate?: (content: EnhancedRichTextEditorContent) => void;
10806
- onTransaction?: (editor: IEditor) => void;
10804
+ onTransaction?: (editor: Editor) => void;
10807
10805
  placeholder?: string;
10808
10806
  shortcuts?: string[];
10809
10807
  useHardBreak?: boolean;
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.896",
7
+ "version": "0.5.0-preview.897",
8
8
  "dependencies": {}
9
9
  }