Preview: richtext-blocks.ts
Size: 1.33 KB
/var/www/nea-dev-frontend.wpress.dk/httpdocs/src/interfaces/richtext-blocks.ts
export interface RichTextBlocks {
blocks?: Block[];
}
export interface Block {
name?: Name;
attributes?: BlockAttributes;
innerBlocks?: BlockInnerBlock[];
}
export interface BlockAttributes {
content?: string;
dropCap?: boolean;
level?: number;
id?: number;
width?: number;
height?: number | string;
aspectRatio?: string;
sizeSlug?: string;
linkDestination?: string;
align?: string;
url?: string;
alt?: string;
opacity?: string;
style?: Style;
ordered?: boolean;
values?: string;
}
export interface Style {
typography?: Typography;
}
export interface Typography {
textDecoration?: string;
}
export interface BlockInnerBlock {
content: string;
ordered: boolean;
name?: string;
attributes?: PurpleAttributes;
innerBlocks?: PurpleInnerBlock[];
}
export interface PurpleAttributes {
content?: string;
}
export interface PurpleInnerBlock {
name?: Name;
attributes?: FluffyAttributes;
innerBlocks?: FluffyInnerBlock[];
}
export interface FluffyAttributes {
ordered?: boolean;
values?: string;
}
export interface FluffyInnerBlock {
name?: string;
attributes?: PurpleAttributes;
}
export enum Name {
CoreHeading = 'core/heading',
CoreImage = 'core/image',
CoreList = 'core/list',
CoreParagraph = 'core/paragraph',
CoreSeparator = 'core/separator',
CoreSpacer = 'core/spacer',
}
Directory Contents
Dirs: 0 × Files: 7