-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
47 lines (43 loc) · 1.17 KB
/
types.ts
File metadata and controls
47 lines (43 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export type ImageSize = '512px' | '1K' | '2K' | '4K';
export type AspectRatio = '1:1' | '2:3' | '3:2' | '3:4' | '4:3' | '4:5' | '5:4' | '9:16' | '16:9' | '21:9';
export type InputMode = 'url' | 'text' | 'file';
export interface Source {
url: string;
title?: string;
}
export interface ProcessedData {
summary: string;
mermaidCode: string;
sources?: Source[];
}
export interface Branding {
id: string;
name: string;
prompt: string;
}
export interface AppState {
url: string;
textContent: string;
imagePreview: string | null;
fileData: { data: string; mimeType: string } | null;
fileName: string | null;
fileSize: number | null;
inputMode: InputMode;
loading: boolean;
error: string | null;
data: ProcessedData | null;
summaryImageUrl: string | null;
mindmapImageUrl: string | null;
summaryDriveUrl: string | null;
mindmapDriveUrl: string | null;
isGeneratingSummaryImage: boolean;
isGeneratingMindmapImage: boolean;
isImprovingSummaryImage: boolean;
isImprovingMindmapImage: boolean;
imageSize: ImageSize;
aspectRatio: AspectRatio;
showRawMermaid: boolean;
// Branding state
brandings: Branding[];
selectedBrandingId: string;
}