Make derivedWarning an error and bind store instances

This commit is contained in:
peterkogo
2025-04-14 10:54:29 +02:00
parent 74c2e0778b
commit c7dea22853
15 changed files with 131 additions and 141 deletions
@@ -11,7 +11,7 @@
import type { SvelteFlowStore } from '$lib/store/types';
let {
store,
store = $bindable(),
type,
containerStyle = '',
style = '',
@@ -10,7 +10,7 @@
const {
edge,
store,
store = $bindable(),
onedgeclick,
onedgecontextmenu,
onedgepointerenter,
@@ -11,7 +11,7 @@
import { useSvelteFlow } from '$lib/hooks/useSvelteFlow.svelte';
let {
store,
store = $bindable(),
selectionKey = 'Shift',
multiSelectionKey = isMacOs() ? 'Meta' : 'Control',
deleteKey = 'Backspace',
@@ -7,7 +7,7 @@
import type { NodeSelectionProps } from './types';
let {
store,
store = $bindable(),
onnodedrag,
onnodedragstart,
onnodedragstop,
@@ -10,7 +10,7 @@
import type { NodeEvents } from '$lib/types';
let {
store,
store = $bindable(),
node,
resizeObserver,
nodeClickDistance,