base admin

This commit is contained in:
hamid zarghami
2026-06-03 12:24:32 +03:30
parent 76f3e1bf6e
commit 3bfd5fd1eb
16 changed files with 374 additions and 3 deletions
@@ -38,6 +38,7 @@ type ViewerDataPage = {
borderRadius?: number;
imageUrl?: string;
videoUrl?: string;
audioUrl?: string;
linkUrl?: string;
rotation?: number;
opacity?: number;
@@ -129,6 +130,10 @@ export function transformViewerDataToPages(data: ViewerData): PageData[] {
baseObject.videoUrl = obj.videoUrl;
}
if (obj.type === "audio" && obj.audioUrl) {
baseObject.audioUrl = obj.audioUrl;
}
if (obj.type === "link" && obj.linkUrl) {
baseObject.linkUrl = obj.linkUrl;
}