Dev #6

Merged
sandrodach merged 6 commits from dev into main 2026-10-26 18:54:23 +01:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit 53e1ba322d - Show all commits

No files matched your search

@@ -449,7 +449,8 @@ export const WorkspaceView: React.FC<WorkspaceViewProps> = ({
} catch {} } catch {}
}; };
const handleBlockFocus = (blockId?: string) => { const handleBlockFocus = (blockIdOrEvent?: string | React.FocusEvent<any>) => {
const blockId = typeof blockIdOrEvent === 'string' ? blockIdOrEvent : undefined;
isEditorFocusedRef.current = true; isEditorFocusedRef.current = true;
if (idleUnlockTimerRef.current) { if (idleUnlockTimerRef.current) {
clearTimeout(idleUnlockTimerRef.current); clearTimeout(idleUnlockTimerRef.current);
+3
View File
@@ -157,12 +157,15 @@ export type BlockType = 'h1' | 'h2' | 'h3' | 'paragraph' | 'todo' | 'bullet' | '
export interface DocumentBlock { export interface DocumentBlock {
id: string; id: string;
docId?: string;
type: BlockType; type: BlockType;
content: string; content: string;
checked?: boolean; checked?: boolean;
lang?: string; lang?: string;
level?: number; level?: number;
collapsed?: boolean; collapsed?: boolean;
sortOrder?: number;
updatedAt?: string;
} }
export interface DocBlocksPatchRequest { export interface DocBlocksPatchRequest {