experiment: better web picker using @pierre/tree (#31208)

This commit is contained in:
Luke Parker 2026-06-16 17:43:23 +02:00 committed by GitHub
commit 88f5b9a90e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 1297 additions and 211 deletions

View file

@ -55,6 +55,9 @@ type PlatformBase = {
onFile: (file: File) => Promise<unknown>,
): Promise<void>
/** Resolve the native source path for a desktop File. */
getPathForFile?(file: File): string
/** Open a native save file picker dialog (desktop only) */
saveFilePickerDialog?(opts?: SaveFilePickerOptions): Promise<string | null>

View file

@ -33,6 +33,7 @@ export interface ImageAttachmentPart {
type: "image"
id: string
filename: string
sourcePath?: string
mime: string
dataUrl: string
}