uitripled/types/builder.ts
2025-11-17 04:03:42 +02:00

47 lines
920 B
TypeScript

import { Component } from "./index";
export type TextContentEntry = {
original: string;
value: string;
};
export type BuilderComponent = {
id: string;
animationId: string;
animation: Component;
textContent?: Record<string, TextContentEntry>;
};
export type BuilderProjectPage = {
id: string;
name: string;
slug: string;
components: BuilderComponent[];
};
export type SavedProjectComponent = {
id: string;
animationId: string;
textContent?: Record<string, TextContentEntry>;
};
export type SavedProjectPage = {
id: string;
name: string;
slug: string;
components: SavedProjectComponent[];
code?: string;
};
export type SavedProject = {
name: string;
uuid?: string;
deploymentSlug?: string;
pages?: SavedProjectPage[];
entryPageId?: string;
components?: SavedProjectComponent[];
code?: string;
savedAt: string;
deploymentId?: string;
deploymentUrl?: string;
};