Files
klz-cables.com/.pnpm-store/v10/files/f4/5d0e00e9e1958bfe17a0a4d66a76e8a17b43ab9ba5045820aa870b3e8073f069488b0b037704054f224b10c6bd14b330d6e96ae927c93d9fe4a8848a3ea348
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

34 lines
1.1 KiB
Plaintext

import type { Where } from 'payload';
import React from 'react';
export declare enum SelectAllStatus {
AllAvailable = "allAvailable",
AllInPage = "allInPage",
None = "none",
Some = "some"
}
type SelectionContext = {
count: number;
disableBulkDelete?: boolean;
disableBulkEdit?: boolean;
getQueryParams: (additionalParams?: Where) => string;
getSelectedIds: () => (number | string)[];
selectAll: SelectAllStatus;
selected: Map<number | string, boolean>;
selectedIDs: (number | string)[];
setSelection: (id: number | string) => void;
/**
* Selects all rows on the current page within the current query.
* If `allAvailable` is true, does not select specific IDs so that the query itself affects all rows across all pages.
*/
toggleAll: (allAvailable?: boolean) => void;
totalDocs: number;
};
type Props = {
readonly children: React.ReactNode;
readonly docs: any[];
readonly totalDocs: number;
};
export declare const SelectionProvider: React.FC<Props>;
export declare const useSelection: () => SelectionContext;
export {};
//# sourceMappingURL=index.d.ts.map