feat(editor): implement viewer mode for large documents, switching between 'plate' and 'monaco' editors based on document size

This commit is contained in:
Anish Sarkar 2026-06-05 14:23:18 +05:30
parent c2b8b3ac5e
commit cf8a2d0759
4 changed files with 100 additions and 71 deletions

View file

@ -44,6 +44,7 @@ export type EditorContent = {
content_size_bytes: number;
chunk_count: number;
truncated: boolean;
viewer_mode?: "plate" | "monaco";
};
// Same endpoint the UI hits when a user opens a document in the dashboard.