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
33 lines
2.6 KiB
Plaintext
33 lines
2.6 KiB
Plaintext
import type React from 'react';
|
|
import type { MarkOptional } from 'ts-essentials';
|
|
import type { BlocksField, BlocksFieldClient } from '../../fields/config/types.js';
|
|
import type { BlocksFieldValidation } from '../../fields/validations.js';
|
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
type BlocksFieldClientWithoutType = MarkOptional<BlocksFieldClient, 'type'>;
|
|
type BlocksFieldBaseClientProps = {
|
|
readonly validate?: BlocksFieldValidation;
|
|
} & FieldPaths;
|
|
type BlocksFieldBaseServerProps = Pick<FieldPaths, 'path'>;
|
|
export type BlocksFieldClientProps = BlocksFieldBaseClientProps & ClientFieldBase<BlocksFieldClientWithoutType>;
|
|
export type BlocksFieldServerProps = BlocksFieldBaseServerProps & ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>;
|
|
export type BlocksFieldServerComponent = FieldServerComponent<BlocksField, BlocksFieldClientWithoutType, BlocksFieldBaseServerProps>;
|
|
export type BlocksFieldClientComponent = FieldClientComponent<BlocksFieldClientWithoutType, BlocksFieldBaseClientProps>;
|
|
export type BlocksFieldLabelServerComponent = FieldLabelServerComponent<BlocksField, BlocksFieldClientWithoutType>;
|
|
export type BlocksFieldLabelClientComponent = FieldLabelClientComponent<BlocksFieldClientWithoutType>;
|
|
type BlockRowLabelBase = {
|
|
blockType: string;
|
|
rowLabel: string;
|
|
rowNumber: number;
|
|
};
|
|
export type BlockRowLabelClientComponent = React.ComponentType<BlockRowLabelBase & ClientFieldBase<BlocksFieldClientWithoutType>>;
|
|
export type BlockRowLabelServerComponent = React.ComponentType<BlockRowLabelBase & ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>>;
|
|
export type BlocksFieldDescriptionServerComponent = FieldDescriptionServerComponent<BlocksField, BlocksFieldClientWithoutType>;
|
|
export type BlocksFieldDescriptionClientComponent = FieldDescriptionClientComponent<BlocksFieldClientWithoutType>;
|
|
export type BlocksFieldErrorServerComponent = FieldErrorServerComponent<BlocksField, BlocksFieldClientWithoutType>;
|
|
export type BlocksFieldErrorClientComponent = FieldErrorClientComponent<BlocksFieldClientWithoutType>;
|
|
export type BlocksFieldDiffServerComponent = FieldDiffServerComponent<BlocksField, BlocksFieldClient>;
|
|
export type BlocksFieldDiffClientComponent = FieldDiffClientComponent<BlocksFieldClient>;
|
|
export {};
|
|
//# sourceMappingURL=Blocks.d.ts.map |