refactor: change TTD persistence to iDB (#10662)

refactor: change ttd persistence to iDB
This commit is contained in:
David Luzar
2026-01-16 15:10:00 +01:00
committed by GitHub
parent 24a6941861
commit 5a73b9a363
9 changed files with 256 additions and 103 deletions
+3
View File
@@ -11,6 +11,8 @@ import { safelyParseJSON } from "@excalidraw/common";
import type { ExcalidrawImperativeAPI } from "@excalidraw/excalidraw/types";
import { TTDIndexedDBAdapter } from "../data/TTDStorage";
export const AIComponents = ({
excalidrawAPI,
}: {
@@ -116,6 +118,7 @@ export const AIComponents = ({
return result;
}}
persistenceAdapter={TTDIndexedDBAdapter}
/>
</>
);