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
45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
import type { TFunction } from '@payloadcms/translations';
|
|
import type { ClientBlock, ClientField, FormStateWithoutComponents } from 'payload';
|
|
export type ClipboardCopyBlocksSchema = {
|
|
schemaBlocks: ClientBlock[];
|
|
};
|
|
export type ClipboardCopyBlocksData = {
|
|
blocks: ClientBlock[];
|
|
type: 'blocks';
|
|
};
|
|
export type ClipboardCopyFieldsSchema = {
|
|
schemaFields: ClientField[];
|
|
};
|
|
export type ClipboardCopyFieldsData = {
|
|
fields: ClientField[];
|
|
type: 'array';
|
|
};
|
|
export type ClipboardCopyData = {
|
|
path: string;
|
|
rowIndex?: number;
|
|
} & (ClipboardCopyBlocksData | ClipboardCopyFieldsData);
|
|
export type ClipboardCopyActionArgs = {
|
|
getDataToCopy: () => FormStateWithoutComponents;
|
|
t: TFunction;
|
|
} & ClipboardCopyData;
|
|
export type ClipboardPasteData = {
|
|
data: FormStateWithoutComponents;
|
|
path: string;
|
|
rowIndex?: number;
|
|
} & (ClipboardCopyBlocksData | ClipboardCopyFieldsData);
|
|
export type OnPasteFn = (data: ClipboardPasteData) => void;
|
|
export type ClipboardPasteActionArgs = {
|
|
onPaste: OnPasteFn;
|
|
path: string;
|
|
t: TFunction;
|
|
} & (ClipboardCopyBlocksSchema | ClipboardCopyFieldsSchema);
|
|
export type ClipboardPasteActionValidateArgs = {
|
|
fieldPath: string;
|
|
} & ({
|
|
schemaBlocks: ClientBlock[];
|
|
type: 'blocks';
|
|
} | {
|
|
schemaFields: ClientField[];
|
|
type: 'array';
|
|
}) & ClipboardPasteData;
|
|
//# sourceMappingURL=types.d.ts.map |