Files
klz-cables.com/.pnpm-store/v10/files/23/266a8763c9cfbba3afcaf2f5f0330daf21dd6c09291825c7978c90fca68cf2bb482fed6318e3e3c5d9f3b229cd688737318d17993bc3dd7f06a1355d1a2ba0
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

39 lines
1.4 KiB
Plaintext

import type { ClientCollectionConfig, ListQuery, PaginatedDocs, Sort, Where } from 'payload';
type ContextHandlers = {
handlePageChange?: (page: number) => Promise<void>;
handlePerPageChange?: (limit: number) => Promise<void>;
handleSearchChange?: (search: string) => Promise<void>;
handleSortChange?: (sort: string) => Promise<void>;
handleWhereChange?: (where: Where) => Promise<void>;
};
export type OnListQueryChange = (query: ListQuery) => void;
export type ListQueryProps = {
readonly children: React.ReactNode;
readonly collectionSlug?: ClientCollectionConfig['slug'];
readonly data: PaginatedDocs | undefined;
readonly modifySearchParams?: boolean;
readonly onQueryChange?: OnListQueryChange;
readonly orderableFieldName?: string;
/**
* @deprecated
*/
readonly preferenceKey?: string;
readonly query?: ListQuery;
};
export type IListQueryContext = {
collectionSlug: ClientCollectionConfig['slug'];
data: ListQueryProps['data'];
defaultLimit?: number;
defaultSort?: Sort;
/**
* @experimental This prop is subject to change. Use at your own risk.
*/
isGroupingBy: boolean;
modified: boolean;
orderableFieldName?: string;
query: ListQuery;
refineListData: (args: ListQuery, setModified?: boolean) => Promise<void>;
setModified: (modified: boolean) => void;
} & ContextHandlers;
export {};
//# sourceMappingURL=types.d.ts.map