Files
klz-cables.com/.pnpm-store/v10/files/d7/a5866e989fb1f6c16b60cffdca57ad47ef0a0ee31b3f8437a1c18adccafd25b38b39106c41052f7bd18b8ecdc19ba4f8a6f5690789147965aaf9db608ddcc2
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

52 lines
2.1 KiB
Plaintext

import type { CollectionSlug, JsonObject } from 'payload';
import React from 'react';
import { type InitialForms } from './FormsManager/index.js';
export type BulkUploadProps = {
readonly children: React.ReactNode;
};
export declare function BulkUploadDrawer(): React.JSX.Element;
export type BulkUploadContext = {
collectionSlug: CollectionSlug;
drawerSlug: string;
initialFiles: FileList;
/**
* Like initialFiles, but allows manually providing initial form state or the form ID for each file
*/
initialForms: InitialForms;
maxFiles: number;
onCancel: () => void;
onSuccess: (uploadedForms: Array<{
collectionSlug: CollectionSlug;
doc: JsonObject;
/**
* ID of the form that created this document
*/
formID: string;
}>, errorCount: number) => void;
/**
* An array of collection slugs that can be selected in the collection dropdown (if applicable)
* @default null - collection cannot be selected
*/
selectableCollections?: null | string[];
setCollectionSlug: (slug: string) => void;
setInitialFiles: (files: FileList) => void;
setInitialForms: (forms: ((forms: InitialForms | undefined) => InitialForms | undefined) | InitialForms) => void;
setMaxFiles: (maxFiles: number) => void;
setOnCancel: (onCancel: BulkUploadContext['onCancel']) => void;
setOnSuccess: (onSuccess: BulkUploadContext['onSuccess']) => void;
/**
* Set the collections that can be selected in the collection dropdown (if applicable)
*
* @default null - collection cannot be selected
*/
setSelectableCollections: (collections: null | string[]) => void;
setSuccessfullyUploaded: (successfullyUploaded: boolean) => void;
successfullyUploaded: boolean;
};
export declare function BulkUploadProvider({ children, drawerSlugPrefix, }: {
readonly children: React.ReactNode;
readonly drawerSlugPrefix?: string;
}): React.JSX.Element;
export declare const useBulkUpload: () => BulkUploadContext;
export declare function useBulkUploadDrawerSlug(): string;
//# sourceMappingURL=index.d.ts.map