Files
klz-cables.com/.pnpm-store/v10/files/fe/965f5b8cdfb259825bfb52aeebd0c54accc9cb14479106a234aced023f5c2283991f1fdda33c159cdcf9b4ed6eeef8b93897a47ab2d7ec25a8c6e652599651
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
2.4 KiB
Plaintext

import type { I18nClient } from '@payloadcms/translations';
import type { SanitizedCollectionConfig } from '../../collections/config/types.js';
import type { ArrayFieldClient, BlocksFieldClient, CheckboxFieldClient, ClientField, CodeFieldClient, DateFieldClient, EmailFieldClient, Field, GroupFieldClient, JSONFieldClient, NumberFieldClient, PointFieldClient, RadioFieldClient, RelationshipFieldClient, SelectFieldClient, TextareaFieldClient, TextFieldClient, UploadFieldClient } from '../../fields/config/types.js';
import type { Payload } from '../../types/index.js';
import type { ViewTypes } from '../types.js';
export type RowData = Record<string, any>;
export type DefaultCellComponentProps<TField extends ClientField = ClientField, TCellData = undefined> = {
readonly cellData: TCellData extends undefined ? TField extends RelationshipFieldClient ? number | Record<string, any> | string : TField extends NumberFieldClient ? TField['hasMany'] extends true ? number[] : number : TField extends TextFieldClient ? TField['hasMany'] extends true ? string[] : string : TField extends CodeFieldClient | EmailFieldClient | JSONFieldClient | RadioFieldClient | TextareaFieldClient ? string : TField extends BlocksFieldClient ? {
[key: string]: any;
blockType: string;
}[] : TField extends CheckboxFieldClient ? boolean : TField extends DateFieldClient ? Date | number | string : TField extends GroupFieldClient ? Record<string, any> : TField extends UploadFieldClient ? File | string : TField extends ArrayFieldClient ? Record<string, unknown>[] : TField extends SelectFieldClient ? TField['hasMany'] extends true ? string[] : string : TField extends PointFieldClient ? {
x: number;
y: number;
} : any : TCellData;
className?: string;
collectionSlug: SanitizedCollectionConfig['slug'];
columnIndex?: number;
customCellProps?: Record<string, any>;
field: TField;
link?: boolean;
linkURL?: string;
onClick?: (args: {
cellData: unknown;
collectionSlug: SanitizedCollectionConfig['slug'];
rowData: RowData;
}) => void;
rowData: RowData;
viewType?: ViewTypes;
};
export type DefaultServerCellComponentProps<TField extends ClientField = ClientField, TCellData = any> = {
collectionConfig: SanitizedCollectionConfig;
field: Field;
i18n: I18nClient;
payload: Payload;
} & Omit<DefaultCellComponentProps<TField, TCellData>, 'field'>;
//# sourceMappingURL=Cell.d.ts.map