Files
klz-cables.com/.pnpm-store/v10/files/1d/cb81a4d1ae5c718e92d5217c76a55e47e9d3c05113f3827c0b82213a2e823227d92aa92c6b8033529c77bd603d1b06317f5ff13d69f8ea42dd83f55ff7afa4
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

36 lines
1.5 KiB
Plaintext

import type { ClientCollectionConfig, Data, FormState, TypeWithID } from 'payload';
export type DocumentDrawerContextProps = {
readonly clearDoc?: () => void;
readonly drawerSlug: string;
readonly onDelete?: (args: {
collectionConfig?: ClientCollectionConfig;
id: string;
}) => Promise<void> | void;
readonly onDuplicate?: (args: {
collectionConfig?: ClientCollectionConfig;
doc: TypeWithID;
}) => Promise<void> | void;
readonly onRestore?: (args: {
collectionConfig?: ClientCollectionConfig;
id: string;
}) => Promise<void> | void;
readonly onSave?: (args: {
collectionConfig?: ClientCollectionConfig;
/**
* If you want to pass additional data to the onSuccess callback, you can use this context object.
*
* @experimental This property is experimental and may change in the future. Use at your own risk.
*/
context?: Record<string, unknown>;
doc: TypeWithID;
operation: 'create' | 'update';
result: Data;
}) => Promise<FormState | void> | void;
};
export type DocumentDrawerContextType = {} & DocumentDrawerContextProps;
export declare const DocumentDrawerCallbacksContext: import("react").Context<DocumentDrawerContextProps>;
export declare const DocumentDrawerContextProvider: React.FC<{
children: React.ReactNode;
} & DocumentDrawerContextProps>;
export declare const useDocumentDrawerContext: () => DocumentDrawerContextType;
//# sourceMappingURL=Provider.d.ts.map