File tree Expand file tree Collapse file tree 5 files changed +15
-16
lines changed
packages/paneforge/src/lib Expand file tree Collapse file tree 5 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " paneforge " : patch
3+ ---
4+
5+ replace ` useId ` with ` $props.id() `
Original file line number Diff line number Diff line change 22 import { box , mergeProps } from " svelte-toolbelt" ;
33 import type { PaneGroupProps } from " ./types.js" ;
44 import { noop } from " $lib/internal/helpers.js" ;
5- import { useId } from " $lib/internal/utils/useId.js" ;
65 import { defaultStorage , PaneGroupState } from " $lib/paneforge.svelte.js" ;
76
7+ const uid = $props .id ();
8+
89 let {
910 autoSaveId = null ,
1011 direction,
11- id = useId () ,
12+ id = uid ,
1213 keyboardResizeBy = null ,
1314 onLayoutChange = noop ,
1415 storage = defaultStorage ,
1920 }: PaneGroupProps = $props ();
2021
2122 const paneGroupState = PaneGroupState .create ({
22- id: box .with (() => id ?? useId () ),
23+ id: box .with (() => id ?? uid ),
2324 ref: box .with (
2425 () => ref ,
2526 (v ) => (ref = v )
Original file line number Diff line number Diff line change 22 import { box , mergeProps } from " svelte-toolbelt" ;
33 import type { PaneResizerProps } from " ./types.js" ;
44 import { noop } from " $lib/internal/helpers.js" ;
5- import { useId } from " $lib/internal/utils/useId.js" ;
65 import { PaneResizerState } from " $lib/paneforge.svelte.js" ;
76
7+ const uid = $props .id ();
8+
89 let {
9- id = useId () ,
10+ id = uid ,
1011 ref = $bindable (null ),
1112 disabled = false ,
1213 onDraggingChange = noop ,
Original file line number Diff line number Diff line change 22 import { box , mergeProps } from " svelte-toolbelt" ;
33 import type { PaneProps } from " ./types.js" ;
44 import { noop } from " $lib/internal/helpers.js" ;
5- import { useId } from " $lib/internal/utils/useId.js" ;
65 import { PaneState } from " $lib/paneforge.svelte.js" ;
76
7+ const uid = $props .id ();
8+
89 let {
9- id = useId () ,
10+ id = uid ,
1011 ref = $bindable (null ),
1112 collapsedSize,
1213 collapsible,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments