Skip to content

v1.3.2

Choose a tag to compare

@github-actions github-actions released this 04 Nov 06:06
db352dc

Overview

🔧 Bug Fixes

  • Carousel: autoplay stays stopped until play() is called again (#1128)
  • Carousel: a drag keeps the slide under the pointer until release (#1135)
  • Carousel: hovering pauses autoplay until the pointer leaves (#1132)
  • Carousel: expose the viewport element (#1133)
  • components: injected contexts report a live size (#1142)
  • Progress: an unlabeled bar has an accessible name (#1129)
  • createQueue: ticket.unregister() clears its timer and advances the queue (#1139)
  • createRegistry: survivors of a removal carry canonical indexes by the end of the batch or the next tick (#1144)
  • createRegistry: keep sync effects and bounds consistent across register, unregister, clear, batch, move, seek and dispose (#1144)
  • createSelection: tickets moved between registries act on the registry that onboards them (#1141)
  • Tour: flip the card when the preferred side does not fit (#1145)

Patch Changes

  • #1128 ba9aefc Thanks @johnleider! - fix(Carousel): autoplay stays stopped until play() is called again

    Moving keyboard focus into the carousel, or dragging a slide, stops rotation. It does not start again on its own. While rotation is running, the slide announcement region is silent. The default accessible name is "Slides".

  • #1135 b687a1f Thanks @johnleider! - fix(Carousel): a drag keeps the slide under the pointer until release

    The track no longer snaps onto the nearest slide while the pointer button is still down.

  • #1132 b14720d Thanks @johnleider! - fix(Carousel): hovering pauses autoplay until the pointer leaves

    Hovering the slides, arrows, dots, or progress pauses rotation and leaving resumes it. A play button in the root still starts rotation while the pointer is on it. A Stop press, a pause() call, or keyboard focus inside the carousel keeps it from resuming.

  • #1133 abf8ee6 Thanks @johnleider! - fix(Carousel): expose the viewport element

    Carousel.Viewport exposes its scroll element, so a template ref can listen for scrollend.

  • #1142 5fd4c0a Thanks @johnleider! - fix(components): injected contexts report a live size

    The context injected by Tabs.Root, Radio.Group, Progress.Root, Slider.Root, Locale, and Theme now reports the current number of registered items instead of the count when the root mounted. Rating.Root follows its size and half props.

  • #1129 3e64c98 Thanks @johnleider! - fix(Progress): an unlabeled bar has an accessible name

    A bar with no Progress.Label and no ariaLabel is named "Loading" (locale key Progress.label). A visible label or ariaLabel still wins.

  • #1139 3ed4743 Thanks @johnleider! - fix(createQueue): ticket.unregister() clears its timer and advances the queue

    Calling unregister() on a queue ticket now matches dismiss() and queue.unregister(id): the ticket's timeout is cleared and the next ticket starts its countdown immediately instead of waiting for the removed ticket's timer to fire.

  • #1144 9e97c28 Thanks @johnleider! - fix(createRegistry): survivors of a removal carry canonical indexes by the end of the batch or the next tick

    Removing a ticket from a registry whose tickets carry explicit values left the remaining tickets' index stale until the next position-based call. The registry now reindexes survivors at the end of the enclosing batch() and, outside a batch, before the next tick. createSortable move/swap/reorder and createKanban transfer read canonical positions in the same tick as a sibling removal.

  • #1144 9e97c28 Thanks @johnleider! - fix(createRegistry): keep sync effects and bounds consistent across register, unregister, clear, batch, move, seek and dispose

    • In reactive: true mode a sync effect that fires on register, unregister, offboard or clear now reads keys(), values(), entries() and browse() that already reflect the mutation, never a removed id or a missing new one.
    • A listener that opens its own batch() during end-of-batch dispatch no longer suppresses the outer batch's iteration notification, so templates iterating the registry pick up the registration.
    • move() and seek() truncate a fractional index and clamp it to the valid range; Infinity targets the last position, -Infinity and NaN the first. A fractional move() no longer throws and leaves the order inconsistent.
    • dispose() dispatches clear:registry before dropping listeners, so a useProxyRegistry snapshot empties when its registry is disposed. Listeners are dropped even when one of them throws, and a dispose() call made from inside a listener is ignored.
  • #1141 3f52e94 Thanks @johnleider! - fix(createSelection): tickets moved between registries act on the registry that onboards them

    A ticket moved with destination.onboard(source.offboard(ids)) now selects, unselects and toggles in the destination. Patching an existing ticket with upsert keeps its unregister bound to the registry that holds it.

  • #1145 7be81d6 Thanks @johnleider! - fix(Tour): flip the card when the preferred side does not fit (#1145)

    The card moves to the opposite side when the preferred side does not fit. The activator scrolls with room for the open card.