change: split file into viewer and download

This commit is contained in:
Julian Krauser 2025-02-19 13:38:24 +01:00
parent 8e4a52adb7
commit 75025e81da
7 changed files with 203 additions and 12 deletions

View file

@ -43,8 +43,18 @@ export interface DynamicZoneFileDownload extends Struct.ComponentSchema {
displayName: "Datei-Download";
};
attributes: {
enable_download: Schema.Attribute.Boolean & Schema.Attribute.Required & Schema.Attribute.DefaultTo<true>;
file: Schema.Attribute.Media<"files" | "images"> & Schema.Attribute.Required;
file: Schema.Attribute.Media<"images" | "videos" | "audios" | "files"> & Schema.Attribute.Required;
};
}
export interface DynamicZoneFileViewer extends Struct.ComponentSchema {
collectionName: "components_dynamic_zone_file_viewer";
info: {
description: "";
displayName: "Datei-Anzeige";
};
attributes: {
file: Schema.Attribute.Media<"images" | "videos" | "audios" | "files"> & Schema.Attribute.Required;
};
}
@ -243,6 +253,7 @@ declare module "@strapi/strapi" {
"dynamic-zone.dual-column-text": DynamicZoneDualColumnText;
"dynamic-zone.embedding": DynamicZoneEmbedding;
"dynamic-zone.file-download": DynamicZoneFileDownload;
"dynamic-zone.file-viewer": DynamicZoneFileViewer;
"dynamic-zone.full-image": DynamicZoneFullImage;
"dynamic-zone.full-text": DynamicZoneFullText;
"dynamic-zone.gallery": DynamicZoneGallery;