update dependencies & fix keyhandler
This commit is contained in:
@@ -13,19 +13,19 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-auto": "^3.3.1",
|
||||
"@sveltejs/kit": "^2.12.1",
|
||||
"@typescript-eslint/eslint-plugin": "^8.18.1",
|
||||
"@typescript-eslint/parser": "^8.18.1",
|
||||
"@sveltejs/kit": "^2.15.2",
|
||||
"@typescript-eslint/eslint-plugin": "^8.19.1",
|
||||
"@typescript-eslint/parser": "^8.19.1",
|
||||
"eslint": "^8.53.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-svelte": "^2.46.1",
|
||||
"prettier": "^3.4.2",
|
||||
"prettier-plugin-svelte": "^3.3.2",
|
||||
"svelte": "^5.14.4",
|
||||
"svelte-check": "^4.1.1",
|
||||
"svelte": "^5.17.1",
|
||||
"svelte-check": "^4.1.3",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.7.2",
|
||||
"vite": "^6.0.3"
|
||||
"typescript": "^5.7.3",
|
||||
"vite": "^6.0.7"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MarkerType } from '@xyflow/svelte';
|
||||
export default {
|
||||
flowProps: {
|
||||
fitView: true,
|
||||
multiSelectionKey: ['Meta', 's'],
|
||||
nodes: [
|
||||
{
|
||||
id: '1',
|
||||
|
||||
@@ -13,3 +13,4 @@
|
||||
<SvelteFlowProvider>
|
||||
<Flow flowConfig={data.flowConfig} />
|
||||
</SvelteFlowProvider>
|
||||
w
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
|
||||
import '@xyflow/svelte/dist/style.css';
|
||||
|
||||
interface Props {
|
||||
flowConfig: FlowConfig;
|
||||
}
|
||||
|
||||
let { flowConfig }: Props = $props();
|
||||
let { flowConfig }: { flowConfig: FlowConfig } = $props();
|
||||
|
||||
// Create writables here so it is easier to create test cases
|
||||
let nodes = $state.raw(flowConfig.flowProps?.nodes ?? []);
|
||||
|
||||
Reference in New Issue
Block a user