tiptop-editor 1.0.16 → 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/dist/extensions/emoji/TiptopEmoji.d.ts +2 -0
- package/dist/extensions/emoji/TiptopEmojiList.d.ts +7 -0
- package/dist/extensions/emoji/TiptopEmojiSuggestion.d.ts +17 -0
- package/dist/extensions/slashCommand/SlashCommandList.d.ts +2 -7
- package/dist/tiptop-editor.css +1 -1
- package/dist/tiptop-editor.es.js +2239 -2149
- package/dist/tiptop-editor.umd.js +11 -11
- package/dist/types.d.ts +5 -0
- package/package.json +7 -1
|
@@ -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<
|
|
5
|
+
} & import('react').RefAttributes<KeyDownRef>>;
|
|
11
6
|
export default SlashCommandList;
|