diff --git a/.changeset/wheel-component.md b/.changeset/wheel-component.md deleted file mode 100644 index ac1899e..0000000 --- a/.changeset/wheel-component.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'react-raffle-picker': minor ---- - -Add `` — a spinning wheel that lands on the winner the root -picks. Segments come from `items` or the `min`/`max` range (override with -`segments`), and `pointer`, `colors`, `turns`, `spinDuration` and `size` control -the look and the throw. It needs no stylesheet: geometry is inline, rotation is -driven by rAF, and the landing is a single transition, so nothing re-renders -mid-spin. Honours `prefers-reduced-motion` by jumping straight to the result. - -Also exposes `total` and `valueAt(position)` on the raffle context, so custom UIs -can enumerate the draw pool without knowing whether the root is in items or -numeric mode. Both are additive. diff --git a/CHANGELOG.md b/CHANGELOG.md index d73e511..cace909 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # react-raffle-picker +## 0.4.0 + +### Minor Changes + +- 285d263: Add `` — a spinning wheel that lands on the winner the root + picks. Segments come from `items` or the `min`/`max` range (override with + `segments`), and `pointer`, `colors`, `turns`, `spinDuration` and `size` control + the look and the throw. It needs no stylesheet: geometry is inline, rotation is + driven by rAF, and the landing is a single transition, so nothing re-renders + mid-spin. Honours `prefers-reduced-motion` by jumping straight to the result. + + Also exposes `total` and `valueAt(position)` on the raffle context, so custom UIs + can enumerate the draw pool without knowing whether the root is in items or + numeric mode. Both are additive. + ## 0.3.2 ### Patch Changes diff --git a/package.json b/package.json index b5be954..c0f0412 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-raffle-picker", - "version": "0.3.2", + "version": "0.4.0", "description": "React random picker: draw a random winner or number with slot-machine, reel and countdown animations. Headless, typed, zero-dependency.", "type": "module", "publishConfig": {