Hiyve Components - v1.0.0
    Preparing search index...

    Callback signatures for library mode file operations. These are used when FileCacheProvider is in standalone/library mode (i.e., files prop is provided instead of using HiyveProvider).

    interface LibraryModeCallbacks {
        onCreateFolder?: (name: string, parentPath: string) => Promise<boolean>;
        onDeleteFile?: (fileId: string) => Promise<boolean>;
        onDeleteFolder?: (path: string) => Promise<boolean>;
        onGetFileUrl?: (file: FileEntry) => Promise<string | null>;
        onMoveFile?: (fileId: string, newPath: string) => Promise<boolean>;
        onRefresh?: () => void;
        onRenameFile?: (fileId: string, newName: string) => Promise<boolean>;
        onShareFile?: (files: FileEntry[], userIds: string[]) => Promise<boolean>;
        onUploadFile?: (file: File, location: string) => Promise<FileEntry | null>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    onCreateFolder?: (name: string, parentPath: string) => Promise<boolean>

    Create a folder at the given path

    onDeleteFile?: (fileId: string) => Promise<boolean>

    Delete a file by ID

    onDeleteFolder?: (path: string) => Promise<boolean>

    Delete a folder at the given path

    onGetFileUrl?: (file: FileEntry) => Promise<string | null>

    Get a URL for viewing/downloading a file

    onMoveFile?: (fileId: string, newPath: string) => Promise<boolean>

    Move a file to a new location

    onRefresh?: () => void

    Refresh the file list (called after mutations)

    onRenameFile?: (fileId: string, newName: string) => Promise<boolean>

    Rename a file

    onShareFile?: (files: FileEntry[], userIds: string[]) => Promise<boolean>

    Share files with specified users

    onUploadFile?: (file: File, location: string) => Promise<FileEntry | null>

    Upload a file to the given location