component formatting and types
This commit is contained in:
parent
c2a7d15eeb
commit
ce745c06e5
60 changed files with 464 additions and 301 deletions
10
types/component/dynamic-zone/columnImageText.ts
Normal file
10
types/component/dynamic-zone/columnImageText.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import type ContentField from "../../field/content";
|
||||
import type BaseComponent from "../baseComponent";
|
||||
import type BaseFile from "../baseFile";
|
||||
|
||||
export default interface DynamicZoneColumnImageText extends BaseComponent {
|
||||
__component: "dynamic-zone.column-image-text";
|
||||
text: ContentField;
|
||||
image_left: boolean;
|
||||
image: BaseFile;
|
||||
}
|
8
types/component/dynamic-zone/dualColumnText.ts
Normal file
8
types/component/dynamic-zone/dualColumnText.ts
Normal file
|
@ -0,0 +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: ContentField;
|
||||
right_side: ContentField;
|
||||
}
|
6
types/component/dynamic-zone/embedding.ts
Normal file
6
types/component/dynamic-zone/embedding.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import type BaseComponent from "../baseComponent";
|
||||
|
||||
export default interface DynamicZoneEmbedding extends BaseComponent {
|
||||
__component: "dynamic-zone.embedding";
|
||||
link: string;
|
||||
}
|
8
types/component/dynamic-zone/fileDownload.ts
Normal file
8
types/component/dynamic-zone/fileDownload.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import type BaseComponent from "../baseComponent";
|
||||
import type BaseFile from "../baseFile";
|
||||
|
||||
export default interface DynamicZoneFileDownload extends BaseComponent {
|
||||
__component: "dynamic-zone.file-download";
|
||||
enable_download: boolean;
|
||||
file: BaseFile;
|
||||
}
|
7
types/component/dynamic-zone/fullImage.ts
Normal file
7
types/component/dynamic-zone/fullImage.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import type BaseComponent from "../baseComponent";
|
||||
import type BaseFile from "../baseFile";
|
||||
|
||||
export default interface DynamicZoneFullImage extends BaseComponent {
|
||||
__component: "dynamic-zone.full-image";
|
||||
image: BaseFile;
|
||||
}
|
7
types/component/dynamic-zone/fullText.ts
Normal file
7
types/component/dynamic-zone/fullText.ts
Normal file
|
@ -0,0 +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: ContentField;
|
||||
}
|
7
types/component/dynamic-zone/gallery.ts
Normal file
7
types/component/dynamic-zone/gallery.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import type BaseComponent from "../baseComponent";
|
||||
import type BaseFile from "../baseFile";
|
||||
|
||||
export default interface DynamicZoneGallery extends BaseComponent {
|
||||
__component: "dynamic-zone.gallery";
|
||||
images: Array<BaseFile>;
|
||||
}
|
7
types/component/dynamic-zone/section.ts
Normal file
7
types/component/dynamic-zone/section.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import type BaseComponent from "../baseComponent";
|
||||
|
||||
export default interface DynamicZoneSection extends BaseComponent {
|
||||
__component: "dynamic-zone.section";
|
||||
title: string;
|
||||
description: string;
|
||||
}
|
5
types/component/dynamic-zone/spacer.ts
Normal file
5
types/component/dynamic-zone/spacer.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
import type BaseComponent from "../baseComponent";
|
||||
|
||||
export default interface DynamicZoneSpacer extends BaseComponent {
|
||||
__component: "dynamic-zone.spacer";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue