mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 00:39:47 +08:00
Add rich text and learning blocks, media uploads, page trees, and revisioned notebook storage. Present AI suggestions at their target blocks with durable accept and dismiss actions. Unify saved outputs as Favorites with typed expandable blocks, stable source links, atomic batch insertion, nesting, dragging, and undo/redo. Validation: 99 frontend tests and 99 backend tests pass in an isolated snapshot, along with TypeScript, scoped ESLint, dependency architecture, and locale parity checks.
62 lines
1.0 KiB
TypeScript
62 lines
1.0 KiB
TypeScript
export const basicPreviewKinds = [
|
|
'paragraph',
|
|
'heading',
|
|
'heading_2',
|
|
'heading_3',
|
|
'heading_4',
|
|
'bullet_list',
|
|
'numbered_list',
|
|
'check_list',
|
|
'toggle_list',
|
|
'quote',
|
|
'table',
|
|
'divider',
|
|
'code_block',
|
|
] as const
|
|
|
|
export const blockPreviewKinds = [
|
|
...basicPreviewKinds,
|
|
'ai',
|
|
'source',
|
|
'favorite',
|
|
'callout',
|
|
'pageLink',
|
|
'image',
|
|
'video',
|
|
'audio',
|
|
'file',
|
|
'bookmark',
|
|
'embed',
|
|
'htmlEmbed',
|
|
'task_table',
|
|
'task_board',
|
|
'task_list',
|
|
'toc',
|
|
'math',
|
|
'toggle_heading_1',
|
|
'toggle_heading_2',
|
|
'toggle_heading_3',
|
|
'columns_2',
|
|
'columns_3',
|
|
'columns_4',
|
|
'columns_5',
|
|
'date',
|
|
'inlineMath',
|
|
'mermaid',
|
|
'quiz',
|
|
'flashcards',
|
|
'timeline',
|
|
'research',
|
|
'task',
|
|
'animation',
|
|
'concept_map',
|
|
'geogebra',
|
|
'generated_image',
|
|
'podcast',
|
|
] as const
|
|
|
|
export type BlockPreviewKind = (typeof blockPreviewKinds)[number]
|
|
export function isBasicPreviewKind(key: string): key is (typeof basicPreviewKinds)[number] {
|
|
return (basicPreviewKinds as readonly string[]).includes(key)
|
|
}
|