@uinstinct/svelte-wheel-picker 0.1.16 → 0.1.18

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.
@@ -271,7 +271,7 @@
271
271
  <div style:transform="translateY({physics.offset}px)">
272
272
  {#if infinite}
273
273
  <!-- Before-ghosts: reversed so options[N-1] appears just above real section (Pitfall 3) -->
274
- {#each [...options].reverse() as option, g}
274
+ {#each [...options].reverse() as option, g (option.value)}
275
275
  {@const scale = cylindrical
276
276
  ? cylindricalScaleY(g - options.length, physics.offset, optionItemHeight, visibleCount)
277
277
  : undefined}
@@ -296,7 +296,7 @@
296
296
  {/if}
297
297
 
298
298
  <!-- Real items section -->
299
- {#each options as option, i}
299
+ {#each options as option, i (option.value)}
300
300
  {@const scale = cylindrical
301
301
  ? cylindricalScaleY(i, physics.offset, optionItemHeight, visibleCount)
302
302
  : undefined}
@@ -322,7 +322,7 @@
322
322
 
323
323
  {#if infinite}
324
324
  <!-- After-ghosts: same order as real items -->
325
- {#each options as option, j}
325
+ {#each options as option, j (option.value)}
326
326
  {@const scale = cylindrical
327
327
  ? cylindricalScaleY(options.length + j, physics.offset, optionItemHeight, visibleCount)
328
328
  : undefined}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uinstinct/svelte-wheel-picker",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "type": "module",
5
5
  "description": "iOS-style wheel picker for Svelte 5 with inertia scrolling, infinite loop, and keyboard navigation",
6
6
  "license": "MIT",
@@ -42,6 +42,7 @@
42
42
  "@sveltejs/package": "2.5.7",
43
43
  "@sveltejs/vite-plugin-svelte": "7.0.0",
44
44
  "@vitest/browser-playwright": "4.1.0",
45
+ "playwright": "1.58.2",
45
46
  "eslint": "10.1.0",
46
47
  "eslint-plugin-svelte": "3.16.0",
47
48
  "globals": "17.4.0",