tobogganSe connecter

library

Prebuilt pebble components: drop-in custom elements, no compiler needed

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Dernier runAucun
0Étoiles
0Forks
2Issues

packages/toaster: <pebble-toaster>, the toboggan/toki toast element converged

The union of the two iterations' tested behavior, on pebble: announceToast/
toastError dispatching the window "toast" CustomEvent (htmx's HX-Trigger
dialect, identical in both), the byte-identical reducers (add/remove/dismiss/
hover/expand; MAX_VISIBLE 3, MAX_TOASTS 10, duration clamped 1000-60000ms,
default 5000), the per-card expiry/exit lifetime streams (EXIT_MS 300),
aria-live=polite region with role=alert error cards as the assertive
channel, and the full test suites ported to happy-dom plus queue-cap,
double-install and dev-diagnostic coverage.

Incompatibilities resolved:
- tag: toboggan-toaster vs toki-toaster -> pebble-toaster (locked decision)
- structural classes: toboggan's bare .stack/.overflow/.content/.message/
  .close/.progress vs toki's namespaced .toaster-* set -> toki's namespaced
  set (collision-safe for a light-DOM drop-in), plus part="" hooks
- card state markers: toboggan's data-kind/data-exit attributes vs toki's
  toast-<type>/toast-exit classes -> BOTH carried, and the sheet styles
  both selector schemes
- aria-labels: toboggan's i18n str() vs toki's literals -> literals
  ("Notifications", "Dismiss notification"); the library has no strings
  module
- imports: pebble vs @toki/ui -> @pebble/pebble
- unknown runtime toast types passed through in both iterations -> now
  normalized to "info" in toastFromDetail, with a DEV warning; duration
  clamping and a second connected instance warn in DEV too (the local
  dev.ts __DEV__ fold; release folds the strings out)

Size: 8513 B gz (delta 4493 over the 4020 floor); budget 9800.

olivier · il y a 3 sem. · 899f399db0d746521f75d20387fcf51a8d8da3e1

Parents c442f02

12 fichiers modifiés, 1014 ajouts, 0 suppressions