feat: remove ai token settings

This commit is contained in:
dwelle 2024-07-08 17:07:58 +02:00
parent 148b895f46
commit eb62a9612d
19 changed files with 273 additions and 565 deletions

View file

@ -294,14 +294,6 @@ export interface AppState {
openDialog:
| null
| { name: "imageExport" | "help" | "jsonExport" }
| {
name: "settings";
source:
| "tool" // when magicframe tool is selected
| "generation" // when magicframe generate button is clicked
| "settings"; // when AI settings dialog is explicitly invoked
tab: "text-to-diagram" | "diagram-to-code";
}
| { name: "ttd"; tab: "text-to-diagram" | "mermaid" }
| { name: "commandPalette" };
/**
@ -615,6 +607,8 @@ export type AppClassProperties = {
insertEmbeddableElement: App["insertEmbeddableElement"];
onMagicframeToolSelect: App["onMagicframeToolSelect"];
getName: App["getName"];
setPlugins: App["setPlugins"];
plugins: App["plugins"];
};
export type PointerDownState = Readonly<{
@ -795,3 +789,8 @@ export type EmbedsValidationStatus = Map<
>;
export type ElementsPendingErasure = Set<ExcalidrawElement["id"]>;
export type GenerateDiagramToCode = (props: {
frame: ExcalidrawMagicFrameElement;
children: readonly ExcalidrawElement[];
}) => MaybePromise<{ html: string }>;