Files
klz-cables.com/.pnpm-store/v10/files/2a/be897b3542ed21e677b19ceb2ddc893cbbff834dc1e4be8dd707e49e18466790e233129a3a092a4b5d000d1a3fae4b5c8576ac9dcb81cc5229fb832cc82f51
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

89 lines
3.7 KiB
Plaintext

import type { ClientTranslationsObject } from '@payloadcms/translations';
import type { SanitizedPermissions } from '../../auth/index.js';
import type { ImportMap } from '../../bin/generateImportMap/index.js';
import type { SanitizedCollectionConfig } from '../../collections/config/types.js';
import type { ClientConfig } from '../../config/client.js';
import type { CustomComponent, Locale, MetaConfig, PayloadComponent, SanitizedConfig, ServerProps } from '../../config/types.js';
import type { SanitizedGlobalConfig } from '../../globals/config/types.js';
import type { PayloadRequest } from '../../types/index.js';
import type { LanguageOptions } from '../LanguageOptions.js';
import type { Data, StaticDescription } from '../types.js';
import type { DocumentSubViewTypes } from './document.js';
export type AdminViewConfig = {
Component: PayloadComponent;
/** Whether the path should be matched exactly or as a prefix */
exact?: boolean;
meta?: MetaConfig;
/**
* Any valid URL path or array of paths that [`path-to-regexp`](https://www.npmjs.com/package/path-to-regex) understands. Must begin with a forward slash (`/`).
*/
path?: `/${string}`;
sensitive?: boolean;
strict?: boolean;
};
export type AdminViewClientProps = {
browseByFolderSlugs?: SanitizedCollectionConfig['slug'][];
clientConfig: ClientConfig;
documentSubViewType?: DocumentSubViewTypes;
viewType: ViewTypes;
};
export type AdminViewServerPropsOnly = {
readonly clientConfig: ClientConfig;
readonly collectionConfig?: SanitizedCollectionConfig;
readonly disableActions?: boolean;
/**
* @todo remove `docID` here as it is already contained in `initPageResult`
*/
readonly docID?: number | string;
readonly folderID?: number | string;
readonly globalConfig?: SanitizedGlobalConfig;
readonly importMap: ImportMap;
readonly initialData?: Data;
readonly initPageResult: InitPageResult;
readonly params?: {
[key: string]: string | string[] | undefined;
};
readonly redirectAfterCreate?: boolean;
readonly redirectAfterDelete?: boolean;
readonly redirectAfterDuplicate?: boolean;
readonly redirectAfterRestore?: boolean;
readonly viewActions?: CustomComponent[];
} & ServerProps;
export type AdminViewServerProps = AdminViewClientProps & AdminViewServerPropsOnly;
/**
* @deprecated This should be removed in favor of direct props
*/
export type AdminViewComponent = PayloadComponent<AdminViewServerProps>;
export type VisibleEntities = {
collections: SanitizedCollectionConfig['slug'][];
globals: SanitizedGlobalConfig['slug'][];
};
export type InitPageResult = {
collectionConfig?: SanitizedCollectionConfig;
cookies: Map<string, string>;
docID?: number | string;
globalConfig?: SanitizedGlobalConfig;
languageOptions: LanguageOptions;
locale?: Locale;
permissions: SanitizedPermissions;
redirectTo?: string;
req: PayloadRequest;
translations: ClientTranslationsObject;
visibleEntities: VisibleEntities;
};
/**
* @todo This should be renamed to `ViewType` (singular)
*/
export type ViewTypes = 'account' | 'collection-folders' | 'createFirstUser' | 'dashboard' | 'document' | 'folders' | 'list' | 'reset' | 'trash' | 'verify' | 'version';
export type ServerPropsFromView = {
collectionConfig?: SanitizedConfig['collections'][number];
globalConfig?: SanitizedConfig['globals'][number];
viewActions: CustomComponent[];
};
export type ViewDescriptionClientProps = {
collectionSlug?: SanitizedCollectionConfig['slug'];
description: StaticDescription;
};
export type ViewDescriptionServerPropsOnly = {} & ServerProps;
export type ViewDescriptionServerProps = ViewDescriptionClientProps & ViewDescriptionServerPropsOnly;
//# sourceMappingURL=index.d.ts.map