Files
klz-cables.com/.pnpm-store/v10/files/ed/48c8eb528695a8646c097cc3cd300735a104fa91233727a049e346c955d6e79f0949deb9e2e706b99f5419329ddd50a53bfd0ae62c2ee11879a5c7f6e5a399
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

65 lines
2.4 KiB
Plaintext

import type { SanitizedCollectionConfig } from '../../../collections/config/types.js';
import type { ValidationFieldError } from '../../../errors/index.js';
import type { SanitizedGlobalConfig } from '../../../globals/config/types.js';
import type { RequestContext } from '../../../index.js';
import type { JsonObject, Operation, PayloadRequest } from '../../../types/index.js';
import type { Field, TabAsField } from '../../config/types.js';
type Args = {
/**
* Data of the nearest parent block. If no parent block exists, this will be the `undefined`
*/
blockData?: JsonObject;
collection: null | SanitizedCollectionConfig;
context: RequestContext;
data: JsonObject;
/**
* The original data (not modified by any hooks)
*/
doc: JsonObject;
/**
* The original data with locales (not modified by any hooks)
*/
docWithLocales: JsonObject;
errors: ValidationFieldError[];
/**
* Built up labels of parent fields
*
* @example "Group Field > Tab Field > Text Field"
*/
fieldLabelPath: string;
fields: (Field | TabAsField)[];
global: null | SanitizedGlobalConfig;
id?: number | string;
mergeLocaleActions: (() => Promise<void> | void)[];
operation: Operation;
overrideAccess: boolean;
parentIndexPath: string;
/**
* @todo make required in v4.0
*/
parentIsLocalized?: boolean;
parentPath: string;
parentSchemaPath: string;
req: PayloadRequest;
siblingData: JsonObject;
/**
* The original siblingData (not modified by any hooks)
*/
siblingDoc: JsonObject;
/**
* The original siblingData with locales (not modified by any hooks)
*/
siblingDocWithLocales: JsonObject;
skipValidation?: boolean;
};
/**
* This function is responsible for the following actions, in order:
* - Run condition
* - Execute field hooks
* - Validate data
* - Transform data for storage
* - Unflatten locales. The input `data` is the normal document for one locale. The output result will become the document with locales.
*/
export declare const traverseFields: ({ id, blockData, collection, context, data, doc, docWithLocales, errors, fieldLabelPath, fields, global, mergeLocaleActions, operation, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, req, siblingData, siblingDoc, siblingDocWithLocales, skipValidation, }: Args) => Promise<void>;
export {};
//# sourceMappingURL=traverseFields.d.ts.map