Files
klz-cables.com/.pnpm-store/v10/files/b4/587e42dc9e69b5f7a4b232b13e62b7615aacaa59dee669ed75a32d35391dcf225e23c409a488563640d70638ba99cff50d8114cbdc47e7331199330bf6bfbb
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

48 lines
1.8 KiB
Plaintext

import type { AdminViewServerProps, CollectionPreferences, CollectionSlug, CustomComponent, DocumentSubViewTypes, Payload, PayloadComponent, SanitizedCollectionConfig, SanitizedGlobalConfig, ViewTypes } from 'payload';
import type React from 'react';
export type ViewFromConfig = {
Component?: React.FC<AdminViewServerProps>;
payloadComponent?: PayloadComponent<AdminViewServerProps>;
};
type GetRouteDataResult = {
browseByFolderSlugs: CollectionSlug[];
collectionConfig?: SanitizedCollectionConfig;
DefaultView: ViewFromConfig;
documentSubViewType?: DocumentSubViewTypes;
globalConfig?: SanitizedGlobalConfig;
routeParams: {
collection?: string;
folderCollection?: string;
folderID?: number | string;
global?: string;
id?: number | string;
token?: string;
versionID?: number | string;
};
templateClassName: string;
templateType: 'default' | 'minimal';
viewActions?: CustomComponent[];
viewType?: ViewTypes;
};
type GetRouteDataArgs = {
adminRoute: string;
collectionConfig?: SanitizedCollectionConfig;
/**
* User preferences for a collection.
*
* These preferences are normally undefined
* unless the user is on the list view and the
* collection is folder enabled.
*/
collectionPreferences?: CollectionPreferences;
currentRoute: string;
globalConfig?: SanitizedGlobalConfig;
payload: Payload;
searchParams: {
[key: string]: string | string[];
};
segments: string[];
};
export declare const getRouteData: ({ adminRoute, collectionConfig, collectionPreferences, currentRoute, globalConfig, payload, segments, }: GetRouteDataArgs) => GetRouteDataResult;
export {};
//# sourceMappingURL=getRouteData.d.ts.map