@rodrigodagostino/svelte-draggable-drawer 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
const rootState = setDrawerRootState();
|
|
22
22
|
|
|
23
|
-
$effect(() => {
|
|
23
|
+
$effect.pre(() => {
|
|
24
24
|
rootState.props = {
|
|
25
25
|
ref,
|
|
26
26
|
range,
|
|
@@ -157,11 +157,6 @@
|
|
|
157
157
|
}
|
|
158
158
|
</script>
|
|
159
159
|
|
|
160
|
-
<pre style="position: fixed; top: 2rem; left: 2rem;">
|
|
161
|
-
<code>activeSnapPoint: {JSON.stringify(rootState.activeSnapPoint)}</code>
|
|
162
|
-
<code>isOpen: {JSON.stringify(isOpen)}</code>
|
|
163
|
-
</pre>
|
|
164
|
-
|
|
165
160
|
<div class={classes} data-drag-state={rootState.dragState} onpointerdown={handlePointerDown}>
|
|
166
161
|
{@render children?.()}
|
|
167
162
|
</div>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rodrigodagostino/svelte-draggable-drawer",
|
|
3
3
|
"description": "Create accessible, draggable drawers in Svelte, with keyboard, mouse, and touch support.",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.2",
|
|
5
5
|
"author": "Rodrigo D’Agostino <rodrigo.dagostino@proton.me>",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"draggable",
|