Files
klz-cables.com/.pnpm-store/v10/files/47/7db4749c663d43f284c9942b3ced77401839fbb38ca8143a66d89500df5d071bc535d8e94415f1cb5f2e3dc48d44acb4684ac784e1e05ce69c3b707bfe5078
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

72 lines
2.3 KiB
Plaintext

import type { ClientCollectionConfig, ViewTypes, Where } from 'payload';
import React from 'react';
import './index.scss';
export type Props = {
collection: ClientCollectionConfig;
/**
* When multiple DeleteMany components are rendered on the page, this will differentiate them.
*/
modalPrefix?: string;
/**
* When multiple PublishMany components are rendered on the page, this will differentiate them.
*/
title?: string;
viewType?: ViewTypes;
};
export declare const DeleteMany: React.FC<Props>;
type AfterDeleteResult = {
[relationTo: string]: {
deletedCount: number;
errors: unknown[];
ids: (number | string)[];
totalCount: number;
};
};
type DeleteMany_v4Props = {
/**
* A callback function to be called after the delete request is completed.
*/
afterDelete?: (result: AfterDeleteResult) => void;
/**
* When multiple DeleteMany components are rendered on the page, this will differentiate them.
*/
modalPrefix?: string;
/**
* Optionally pass a search string to filter the documents to be deleted.
*
* This is intentionally passed as a prop so modals could pass in their own
* search string that may not be stored in the URL.
*/
search?: string;
/**
* An object containing the relationTo as the key and an object with the following properties:
* - all: boolean
* - totalCount: number
* - ids: (string | number)[]
*/
selections: {
[relationTo: string]: {
all?: boolean;
ids?: (number | string)[];
totalCount?: number;
};
};
trash?: boolean;
viewType?: ViewTypes;
/**
* Optionally pass a where clause to filter the documents to be deleted.
* This will be ignored if multiple relations are selected.
*
* This is intentionally passed as a prop so modals could pass in their own
* where clause that may not be stored in the URL.
*/
where?: Where;
};
/**
* Handles polymorphic document delete operations.
*
* If you are deleting monomorphic documents, shape your `selections` to match the polymorphic structure.
*/
export declare function DeleteMany_v4({ afterDelete, modalPrefix, search, selections, trash, viewType, where, }: DeleteMany_v4Props): React.JSX.Element;
export {};
//# sourceMappingURL=index.d.ts.map