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:
2025-12-17 13:48:51 +08:00
commit 8ca7efcf6d
28 changed files with 4412 additions and 0 deletions

15
typings.d.ts vendored Normal file
View 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>;
}
}
}