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
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
import type { ClientFieldSchemaMap, Data, DocumentPreferences, Field, FieldSchemaMap, FieldState, FormState, Operation, PayloadRequest, SanitizedFieldPermissions } from 'payload';
|
|
export type RenderFieldArgs = {
|
|
clientFieldSchemaMap?: ClientFieldSchemaMap;
|
|
collectionSlug: string;
|
|
data: Data;
|
|
fieldConfig: Field;
|
|
fieldSchemaMap: FieldSchemaMap;
|
|
fieldState: FieldState;
|
|
/**
|
|
* If set to true, it will force creating a clientField based on the passed fieldConfig instead of pulling
|
|
* the client field from the clientFieldSchemaMap. This is useful if the passed fieldConfig differs from the one in the schema map,
|
|
* e.g. when calling the render-field server function and passing a field config override.
|
|
*/
|
|
forceCreateClientField?: boolean;
|
|
formState: FormState;
|
|
id?: number | string;
|
|
indexPath: string;
|
|
lastRenderedPath: string;
|
|
mockRSCs?: boolean;
|
|
operation: Operation;
|
|
parentPath: string;
|
|
parentSchemaPath: string;
|
|
path: string;
|
|
permissions: SanitizedFieldPermissions;
|
|
preferences: DocumentPreferences;
|
|
previousFieldState: FieldState;
|
|
readOnly?: boolean;
|
|
renderAllFields: boolean;
|
|
req: PayloadRequest;
|
|
schemaPath: string;
|
|
siblingData: Data;
|
|
};
|
|
export type RenderFieldMethod = (args: RenderFieldArgs) => void;
|
|
//# sourceMappingURL=types.d.ts.map |