content text and dynamic zone components

This commit is contained in:
Julian Krauser 2024-11-03 13:13:36 +01:00
parent 44b55d9bbb
commit 3df3ba4ebc
22 changed files with 202 additions and 24 deletions

View file

@ -1,9 +1,10 @@
import type ContentField from "../field/content";
import type BaseComponent from "./baseComponent";
import type BaseImage from "./baseImage";
export default interface DynamicZoneColumnImageText extends BaseComponent {
__component: "dynamic-zone.column-image-text";
text: Array<{ type: string; children: Array<{ type: string; text: string }> }>;
text: ContentField;
image_left: boolean;
image: BaseImage;
}

View file

@ -1,7 +1,8 @@
import type ContentField from "../field/content";
import type BaseComponent from "./baseComponent";
export default interface DynamicZoneDualColumnText extends BaseComponent {
__component: "dynamic-zone.dual-column-text";
left_side: Array<{ type: string; children: Array<{ type: string; text: string }> }>;
right_side: Array<{ type: string; children: Array<{ type: string; text: string }> }>;
left_side: ContentField;
right_side: ContentField;
}

View file

@ -1,6 +1,7 @@
import type ContentField from "../field/content";
import type BaseComponent from "./baseComponent";
export default interface DynamicZoneFullText extends BaseComponent {
__component: "dynamic-zone.full-text";
text: Array<{ type: string; children: Array<{ type: string; text: string }> }>;
text: ContentField;
}