feat: add AI command suggestions extension for Tiptap editor
- Implemented Commands plugin to handle command suggestions triggered by '@' character. - Created suggestion configuration to filter and render command items. - Added various command items including date, time, formatting, templates, and task management commands. - Introduced CSS styles for the Tiptap editor to enhance UI. - Configured TypeScript settings and Vite build for the project.
This commit is contained in:
15
typings.d.ts
vendored
Normal file
15
typings.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
||||
|
||||
interface KvMdEditorProps extends HTMLAttributes<HTMLElement> {
|
||||
markdown?: string;
|
||||
placeholder?: string;
|
||||
}
|
||||
|
||||
declare module 'react' {
|
||||
namespace JSX {
|
||||
interface IntrinsicElements {
|
||||
'kv-template': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
||||
'kv-md-editor': DetailedHTMLProps<KvMdEditorProps, HTMLElement>;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user