Files
klz-cables.com/.pnpm-store/v10/files/b7/24c3fd2e0aa795cc15bff02ad94a0f579f37e8fd984eab34eac02658fe86eac8f571f95067e418a5df92c5ba99d6ec85304bbbd350203b43cb0cd9bd5f74e3
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

41 lines
1.7 KiB
Plaintext

import type { Data, DocumentSlots, FormState, SanitizedDocumentPermissions, UploadEdits } from 'payload';
import React from 'react';
import type { State } from './reducer.js';
type FormsManagerContext = {
readonly activeIndex: State['activeIndex'];
readonly addFiles: (filelist: FileList) => Promise<void>;
readonly bulkUpdateForm: (updatedFields: Record<string, unknown>, afterStateUpdate?: () => void) => Promise<void>;
readonly collectionSlug: string;
readonly docPermissions?: SanitizedDocumentPermissions;
readonly documentSlots: DocumentSlots;
readonly forms: State['forms'];
getFormDataRef: React.RefObject<() => Data>;
readonly hasPublishPermission: boolean;
readonly hasSavePermission: boolean;
readonly hasSubmitted: boolean;
readonly isInitializing: boolean;
readonly removeFile: (index: number) => void;
readonly resetUploadEdits?: () => void;
readonly saveAllDocs: ({ overrides }?: {
overrides?: Record<string, unknown>;
}) => Promise<void>;
readonly setActiveIndex: (index: number) => void;
readonly setFormTotalErrorCount: ({ errorCount, index, }: {
errorCount: number;
index: number;
}) => void;
readonly totalErrorCount?: number;
readonly updateUploadEdits: (args: UploadEdits) => void;
};
export type InitialForms = Array<{
file: File;
formID?: string;
initialState?: FormState | null;
}>;
type FormsManagerProps = {
readonly children: React.ReactNode;
};
export declare function FormsManagerProvider({ children }: FormsManagerProps): React.JSX.Element;
export declare function useFormsManager(): FormsManagerContext;
export {};
//# sourceMappingURL=index.d.ts.map