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

64 lines
2.2 KiB
Plaintext

import type { CollectionPreferences, FilterOptionsResult, ListQuery, SanitizedCollectionConfig } from 'payload';
import type React from 'react';
import type { HTMLAttributes } from 'react';
import type { ListDrawerContextProps } from './Provider.js';
/**
* @internal - this may change in a minor release
*/
export type RenderListServerFnArgs = {
collectionSlug: string;
disableActions?: boolean;
disableBulkDelete?: boolean;
disableBulkEdit?: boolean;
disableQueryPresets?: boolean;
drawerSlug?: string;
enableRowSelections: boolean;
overrideEntityVisibility?: boolean;
query: ListQuery;
redirectAfterDelete?: boolean;
redirectAfterDuplicate?: boolean;
};
/**
* @internal - this may change in a minor release
*/
export type RenderListServerFnReturnType = {
List: React.ReactNode;
preferences: CollectionPreferences;
};
export type ListDrawerProps = {
readonly allowCreate?: boolean;
readonly collectionSlugs: SanitizedCollectionConfig['slug'][];
readonly disableQueryPresets?: boolean;
readonly drawerSlug?: string;
readonly enableRowSelections?: boolean;
readonly filterOptions?: FilterOptionsResult;
readonly overrideEntityVisibility?: boolean;
readonly selectedCollection?: string;
} & ListDrawerContextProps;
export type ListTogglerProps = {
children?: React.ReactNode;
className?: string;
disabled?: boolean;
drawerSlug?: string;
} & HTMLAttributes<HTMLButtonElement>;
export type UseListDrawer = (args: {
collectionSlugs?: SanitizedCollectionConfig['slug'][];
filterOptions?: FilterOptionsResult;
overrideEntityVisibility?: boolean;
selectedCollection?: SanitizedCollectionConfig['slug'];
uploads?: boolean;
}) => [
React.FC<Omit<ListDrawerProps, 'collectionSlugs'>>,
React.FC<Omit<ListTogglerProps, 'drawerSlug'>>,
{
closeDrawer: () => void;
collectionSlugs: SanitizedCollectionConfig['slug'][];
drawerDepth: number;
drawerSlug: string;
isDrawerOpen: boolean;
openDrawer: () => void;
setCollectionSlugs: React.Dispatch<React.SetStateAction<SanitizedCollectionConfig['slug'][]>>;
toggleDrawer: () => void;
}
];
//# sourceMappingURL=types.d.ts.map