Add versioned design profile releases
This commit is contained in:
@@ -3,6 +3,7 @@ import type { NodedcTheme } from "@nodedc/ui-core";
|
||||
export const applicationManifestSchemaVersion = "0.1.0" as const;
|
||||
|
||||
export type ApplicationDraftStatus = "draft";
|
||||
export type DesignProfileStatus = "draft" | "published";
|
||||
|
||||
export interface ApplicationPageManifest {
|
||||
id: string;
|
||||
@@ -33,6 +34,7 @@ export interface ApplicationManifestV01 {
|
||||
designProfile: {
|
||||
id: string;
|
||||
version: string;
|
||||
status: DesignProfileStatus;
|
||||
theme: NodedcTheme;
|
||||
};
|
||||
pages: ApplicationPageManifest[];
|
||||
@@ -60,8 +62,18 @@ export interface DesignProfileSummary {
|
||||
id: string;
|
||||
name: string;
|
||||
version: string;
|
||||
status: DesignProfileStatus;
|
||||
theme: NodedcTheme;
|
||||
updatedAt: string;
|
||||
versions: DesignProfileVersionSummary[];
|
||||
latestPublishedVersion: string | null;
|
||||
}
|
||||
|
||||
export interface DesignProfileVersionSummary {
|
||||
version: string;
|
||||
status: DesignProfileStatus;
|
||||
theme: NodedcTheme;
|
||||
publishedAt?: string;
|
||||
}
|
||||
|
||||
export type ApplicationDraftSaveState = "idle" | "loading" | "saving" | "saved" | "error";
|
||||
|
||||
Reference in New Issue
Block a user