Open History to see the last commit
1export const LARGE_TEXT_MAX_BYTES = 256 * 1024 * 1024;
2export const LARGE_TEXT_MAX_ROWS = 5_000_000;
3export const LARGE_TEXT_MAX_COLUMNS = 1024;
4export const PREVIEW_PAGE_ROWS = 32;
5export type TextPreviewRequest =
6 | { type: "open"; src?: string; text?: string; sizeBytes?: number; delimiter: "," | "\t" | null }
7 | { type: "page"; index: number }
8 | { type: "copy" };
9export type TextPreviewResult =
10 | { type: "meta"; count: number; columns: number; complete: boolean; sizeBytes?: number }
11 | { type: "page"; index: number; rows: string[][] }
12 | { type: "copy"; text: string }
13 | { type: "error"; operation: TextPreviewRequest["type"]; message: string };