Skip to content

Commit

Permalink
fix: add codemirror/state as direct dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
heypoom committed Dec 16, 2023
1 parent 126894a commit f779f0a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
2 changes: 2 additions & 0 deletions canvas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"@codemirror/autocomplete": "^6.11.1",
"@codemirror/commands": "^6.3.2",
"@codemirror/language": "^6.9.3",
"@codemirror/state": "^6.3.3",
"@codemirror/view": "^6.22.3",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0",
"@iconify/react": "^4.1.1",
Expand Down
26 changes: 10 additions & 16 deletions canvas/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion canvas/src/canvas/components/SlashCommand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export function SlashCommand() {
return
}

const position = flow.project(cursor)
const position = flow.screenToFlowPosition(cursor)

const ok = run(command, { input, position })
if (ok) hide()
Expand Down
2 changes: 1 addition & 1 deletion canvas/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2015", "ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"module": "ES2020",
"skipLibCheck": true,

/* Bundler mode */
Expand Down

0 comments on commit f779f0a

Please sign in to comment.