mirror of
https://github.com/moumen-soliman/uitripled
synced 2026-04-21 13:37:20 +00:00
47 lines
920 B
TypeScript
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;
|
|
};
|