Use more granular imports

This commit is contained in:
Sergey Garin 2024-06-22 19:31:44 +03:00
parent 2edd2c16d9
commit 1a0d089af2
3 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import { useGraphStore, type NodeId } from '@/stores/graph'
import { Ast } from '@/util/ast'
import { isAstId, type AstId } from '@/util/ast/abstract.ts'
import { Vec2 } from '@/util/data/vec2'
import { toast } from 'enso-dashboard'
import { toast } from 'enso-dashboard/Toast'
const graph = useGraphStore()
const selection = injectGraphSelection(true)

View File

@ -1,5 +1,5 @@
import type { ResultError } from '@/util/data/result'
import { toast, type ToastKind, type ToastOptions } from 'enso-dashboard'
import { toast, type ToastKind, type ToastOptions } from 'enso-dashboard/Toast'
import { uuidv4 } from 'lib0/random'
import { onScopeDispose } from 'vue'

View File

@ -8,6 +8,7 @@
"#/*": "./src/*"
},
"exports": {
"./Toast": "./src/components/Toast/index.ts",
".": "./src/index.tsx",
"./tailwind.config": "./tailwind.config.js",
"./src/platform": "./src/platform.ts",