tiptop-editor 1.0.15 → 1.0.17

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/README.md CHANGED
@@ -50,7 +50,7 @@ The Tiptop component takes as props all the props from the `UseEditorOptions` fr
50
50
  Anyway, to use the package, just pass your props to `editorOptions` and you're good to go. Customize the Tiptop component will the props you want, as if you were using *EditorContent and passing props to the editor*.
51
51
  ```tsx
52
52
  <TiptopEditor editorOptions={{
53
- immediatelyRender: false
53
+ immediatelyRender: false // If using SSR (ex. a NextJS project) otherwise you can omit it
54
54
  content: '<p>I am the Tiptop Editor</p>'
55
55
  ... // Other props
56
56
  }}
@@ -0,0 +1,2 @@
1
+ declare const TiptopEmoji: import('@tiptap/core').Node<import('@tiptap/extension-emoji').EmojiOptions, import('@tiptap/extension-emoji').EmojiStorage>;
2
+ export default TiptopEmoji;
@@ -0,0 +1,7 @@
1
+ import { KeyDownRef } from '../../types';
2
+ import { EmojiItem } from '@tiptap/extension-emoji';
3
+ declare const EmojiList: import('react').ForwardRefExoticComponent<{
4
+ items: EmojiItem[];
5
+ command: (item: EmojiItem) => void;
6
+ } & import('react').RefAttributes<KeyDownRef>>;
7
+ export default EmojiList;
@@ -0,0 +1,17 @@
1
+ import { Editor } from '@tiptap/core';
2
+ import { SuggestionKeyDownProps, SuggestionProps } from '@tiptap/suggestion';
3
+ import { EmojiItem } from '@tiptap/extension-emoji';
4
+ declare const _default: {
5
+ allowSpaces: boolean;
6
+ items: ({ editor, query }: {
7
+ editor: Editor;
8
+ query: string;
9
+ }) => EmojiItem[];
10
+ render: () => {
11
+ onStart: (props: SuggestionProps) => void;
12
+ onUpdate(props: SuggestionProps): void;
13
+ onKeyDown(props: SuggestionKeyDownProps): boolean;
14
+ onExit(): void;
15
+ };
16
+ };
17
+ export default _default;
@@ -1,11 +1,6 @@
1
- import { SlashCommandGroupProps, SlashCommandGroupCommandsProps } from '../../types';
2
- export interface SlashCommandListRef {
3
- onKeyDown: (props: {
4
- event: KeyboardEvent;
5
- }) => boolean;
6
- }
1
+ import { SlashCommandGroupProps, SlashCommandGroupCommandsProps, KeyDownRef } from '../../types';
7
2
  declare const SlashCommandList: import('react').ForwardRefExoticComponent<{
8
3
  items: SlashCommandGroupProps[];
9
4
  command: (item: SlashCommandGroupCommandsProps) => void;
10
- } & import('react').RefAttributes<SlashCommandListRef>>;
5
+ } & import('react').RefAttributes<KeyDownRef>>;
11
6
  export default SlashCommandList;