@@ -9,24 +9,31 @@ import {
99import type { Suggestion , ToolButtonData } from "@defs/UI" ;
1010import type { NodeModel } from "@defs/Node" ;
1111
12- import { useNodeFactoryContext } from "@utils/nodeFactory" ;
13- import { useNodeSystemContext } from "@utils/nodeSystem" ;
14- import { useNodeHistoryContext } from "@utils/nodeHistory" ;
15- import { usePromptContext } from "@utils/prompt" ;
16- import { usePaletteContext } from "@utils/palette" ;
17- import { useVariablesContext } from "@utils/variables" ;
1812import { loadProject , saveProject } from "@utils/engineTools" ;
1913import { packProject } from "@utils/packerTools" ;
20- import { backupProject , getRestoredProject , isDesktop } from "@utils/desktopTools" ;
2114import { saveData } from "@utils/persistentTools" ;
22- import { useUnsavedChangesContext } from "@utils/unsavedChanges" ;
15+
16+ import {
17+ backupProject ,
18+ getRestoredProject ,
19+ isDesktop ,
20+ } from "@utils/desktopTools" ;
21+
2322import {
2423 getBreadcrumb ,
2524 getWindowTools ,
2625 loadExistingId ,
2726 updatePaletteRegistry ,
2827} from "@utils/projectTools" ;
2928
29+ import { useNodeFactoryContext } from "@contexts/nodeFactory" ;
30+ import { useNodeSystemContext } from "@contexts/nodeSystem" ;
31+ import { useNodeHistoryContext } from "@contexts/nodeHistory" ;
32+ import { usePromptContext } from "@contexts/prompt" ;
33+ import { usePaletteContext } from "@contexts/palette" ;
34+ import { useVariablesContext } from "@contexts/variables" ;
35+ import { useUnsavedChangesContext } from "@contexts/unsavedChanges" ;
36+
3037const createAppDataContext = ( ) => {
3138 const AppDataContext = createContext < {
3239 projectId : string | null ;
0 commit comments