Skip to content

v0.13.0 — keyboard shortcuts + SearchPalette

Choose a tag to compare

@httpassoca httpassoca released this 12 Jul 14:56
· 59 commits to main since this release
c1b1e9a

Added

  • SearchPalette (DS-0133) — Cmd/Ctrl+K search & command palette: native <dialog> modal combobox (APG pattern), grouped generic items, router-native href navigation, snippets for row/empty/footer.
  • Keyboard shortcuts (DS-0135 epic):
    • shortcuts registry singleton + {@attach shortcut(...)} — tinykeys-style grammar (mod+k, comma alternatives), guarded single window listener, focus-scope conflict tiers, SSR-safe.
    • WCAG 2.1.4 built in: setEnabled/remap, global enabled/characterKeys switches, serializable overrides.
    • Kbd — display-only key-cap chip (glyph/label, platform prop).
    • ShortcutsHelp — the "?" overlay rendering live registry state; editable mode ships a complete remap/disable settings UI.
    • /keyboard docs guide: "Making your site keyboard-friendly with dssoca".
  • Switch labelHidden prop.

Changed (pre-1.0 minor)

  • Peer dependency: svelte@^5.29.0 (was ^5.0.0) — attachments.
  • Topbar & SearchPalette register mod+k through the registry and it now fires on the platform modifier only (Ctrl+K no longer triggers on macOS). Restore the old reach: shortcuts.remap('ss:topbar-command', 'mod+k, ctrl+k').

Full details in CHANGELOG.md.