@sdxc/kit 2026.11.18 → 2026.11.22
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.
- package/changelog.jsonl +108 -0
- package/dist/architecture/layers.d.ts +2 -2
- package/dist/architecture/layers.js +9 -2
- package/dist/pkg/catalog.js +6 -0
- package/dist/scaffold/index.js +52 -11
- package/dist/scaffold/render.d.ts +1 -1
- package/dist/scaffold/render.js +1 -1
- package/package.json +4 -4
- package/registry/ui/amount.json +16 -0
- package/registry/ui/autocomplete.json +19 -0
- package/registry/ui/carousel.json +4 -3
- package/registry/ui/letterbox.json +16 -0
- package/registry/ui/lightbox.json +17 -0
- package/registry/ui/media-grid.json +16 -0
- package/registry/ui/range-months.json +19 -0
- package/registry/ui/rating-input.json +18 -0
- package/registry/ui/rating.json +17 -0
- package/registry/ui/review-card.json +18 -0
- package/registry/ui/section-bar.json +18 -0
- package/registry/ui/step-indicator.json +16 -0
- package/templates/app/app/initializers/i18n.ts +10 -3
- package/templates/app/resources/locales/en.ts +15 -0
- package/templates/app/resources/locales/en.json +0 -10
package/changelog.jsonl
CHANGED
|
@@ -490,8 +490,10 @@
|
|
|
490
490
|
{"release":"2026.10.2","package":"@sdxc/duration","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
491
491
|
{"release":"2026.10.2","package":"@sdxc/email-address","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
492
492
|
{"release":"2026.10.2","package":"@sdxc/email-auth","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
493
|
+
{"release":"2026.10.2","package":"@sdxc/emoji","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
493
494
|
{"release":"2026.10.2","package":"@sdxc/epub","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
494
495
|
{"release":"2026.10.2","package":"@sdxc/expression","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
496
|
+
{"release":"2026.10.2","package":"@sdxc/facets","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
495
497
|
{"release":"2026.10.2","package":"@sdxc/feed","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
496
498
|
{"release":"2026.10.2","package":"@sdxc/file-storage-r2","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
497
499
|
{"release":"2026.10.2","package":"@sdxc/flags","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
@@ -541,8 +543,11 @@
|
|
|
541
543
|
{"release":"2026.10.2","package":"@sdxc/messaging","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
542
544
|
{"release":"2026.10.2","package":"@sdxc/microformats","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
543
545
|
{"release":"2026.10.2","package":"@sdxc/micropub","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
546
|
+
{"release":"2026.10.2","package":"@sdxc/money","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
547
|
+
{"release":"2026.10.2","package":"@sdxc/natural-dates","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
544
548
|
{"release":"2026.10.2","package":"@sdxc/newsletter","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
545
549
|
{"release":"2026.10.2","package":"@sdxc/no-www-middleware","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
550
|
+
{"release":"2026.10.2","package":"@sdxc/novel","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
546
551
|
{"release":"2026.10.2","package":"@sdxc/openapi","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
547
552
|
{"release":"2026.10.2","package":"@sdxc/openpgp","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
548
553
|
{"release":"2026.10.2","package":"@sdxc/opml","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
@@ -578,6 +583,7 @@
|
|
|
578
583
|
{"release":"2026.10.2","package":"@sdxc/spec","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
579
584
|
{"release":"2026.10.2","package":"@sdxc/strings","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
580
585
|
{"release":"2026.10.2","package":"@sdxc/structured-fields","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
586
|
+
{"release":"2026.10.2","package":"@sdxc/synth","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
581
587
|
{"release":"2026.10.2","package":"@sdxc/trace-context","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
582
588
|
{"release":"2026.10.2","package":"@sdxc/trailing-slash-middleware","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
583
589
|
{"release":"2026.10.2","package":"@sdxc/typeid","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
@@ -2105,3 +2111,105 @@
|
|
|
2105
2111
|
{"release":"2026.11.17","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add TitleHero to @sdxc/ui/video and ProfilePicker to @sdxc/ui/app","body":"`TitleHero` is a video title's hero: its art edge to edge behind the page,\nfaded into the page at its foot and toward the text, with `.Eyebrow`,\n`.Title` (level 1 or 2), `.Facts`, `.Rating`, `.Summary` and `.Actions`.\nSet `--ui-title-hero-offset` to a sticky top bar's height, so the art\nstarts at the window's edge while the text clears the bar. Set\n`--ui-title-hero-inset` to your page gutter. The art drifts in slightly and\nholds still under reduced motion.\n\n <TitleHero size=\"title\" art={<img src={art} alt=\"\" />} aria-labelledby=\"t\">\n <TitleHero.Eyebrow>Original</TitleHero.Eyebrow>\n <TitleHero.Title id=\"t\" level={1}>Tidewater</TitleHero.Title>\n <TitleHero.Facts><TitleHero.Rating>16+</TitleHero.Rating><span>2026</span></TitleHero.Facts>\n <TitleHero.Summary>A harbour town keeps one secret a season.</TitleHero.Summary>\n <TitleHero.Actions><LinkButton href=\"/watch/tidewater\">Play</LinkButton></TitleHero.Actions>\n </TitleHero>\n\n`ProfilePicker` is the \"who is using this?\" screen of an account several\npeople share. Each `.Profile` is a submit button with its own `formAction`,\nso one form around the picker posts the pick without script. `current`\nrings the profile in use."}
|
|
2106
2112
|
{"release":"2026.11.18","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add a stage layout to VideoPlayer for watching films and episodes","body":"`VideoPlayer` gains `layout=\"stage\"`. The page layout stays the default and\nis unchanged. A stage fills the box it is given with the picture: no frame,\nno side column, and the bar floating over the foot. While the video plays\nand the pointer rests for a moment, the bar and any overlay fade, and they\ncome back on any movement, press or key. On a stage, the page's keys drive\nthe player: Space or K plays and pauses, the arrows skip ten seconds, F\ngoes full screen and M mutes. Fields, menus and dialogs keep their own\nkeys.\n\nNew parts:\n\n- `VideoPlayer.Overlay`: content over the top of the screen, such as the\n way back and what is playing. It shows without script.\n- `VideoPlayer.Group align=\"start\" | \"center\" | \"end\"`: clusters bar\n controls. A centred group stays centred, draws its Play button larger,\n and takes its own row on a narrow player.\n- `VideoPlayer.Skip seconds={-10}`: steps back or forward.\n- `VideoPlayer.Mute`: turns the sound off and on (`aria-pressed`).\n- `VideoPlayer.Heading`: what is playing, centred in the bar.\n\n <div style=\"height: 100dvh\">\n <VideoPlayer layout=\"stage\" tone=\"theater\" duration={3000}>\n <VideoPlayer.Screen label=\"Lee Shore\" captionsLabel=\"English\" chaptersLabel=\"Chapters\">\n <VideoPlayer.Source src=\"/203.mp4\" type=\"video/mp4\" />\n <VideoPlayer.Overlay><a href=\"/title/tidewater\">Back</a></VideoPlayer.Overlay>\n <VideoPlayer.Controls label=\"Player controls\">\n <VideoPlayer.Progress label=\"Seek\" />\n <VideoPlayer.Group align=\"start\"><VideoPlayer.Time /></VideoPlayer.Group>\n <VideoPlayer.Group align=\"center\">\n <VideoPlayer.Skip seconds={-10} label=\"Back 10 seconds\" />\n <VideoPlayer.Play label=\"Play\" pauseLabel=\"Pause\" />\n <VideoPlayer.Skip seconds={10} label=\"Forward 10 seconds\" />\n </VideoPlayer.Group>\n <VideoPlayer.Group align=\"end\">\n <VideoPlayer.Mute label=\"Mute\" unmuteLabel=\"Unmute\" />\n <VideoPlayer.Fullscreen label=\"Full screen\" />\n </VideoPlayer.Group>\n </VideoPlayer.Controls>\n </VideoPlayer.Screen>\n </VideoPlayer>\n </div>\n\nBar icons now size through `--ui-video-player-icon-size`, which a stage\nsets larger. `VideoCard` also gains `badgePlacement=\"bottom\"`, which sets\nits badge at the foot of the art, clear of the watched bar. No consumer\naction is needed."}
|
|
2107
2113
|
{"release":"2026.11.18","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep VideoPlayer's control bar when a frame redraws the player","body":"Before: when a page swapped a `VideoPlayer` through a frame reload that\nreused its elements, the frame put back the server's markup. The browser's\nnative controls returned over a hidden custom bar, and a new set of\n`<source>`s never loaded, so the old file kept playing. This happened, for\nexample, when moving to the next episode in place.\n\nAfter: the player notices it was redrawn. It wires itself to the video it\nnow holds, puts the custom bar back, and reloads the video when its sources\nchanged. No consumer action is needed."}
|
|
2114
|
+
{"release":"2026.11.22","package":"@sdxc/dates","type":"feat","breaking":false,"title":"Expand repeating events in a time zone","body":"`expandRecurrence()` lists the occurrences of a repeating event that overlap a\nwindow. Each occurrence keeps the first one's wall-clock start time in the\nseries' zone, so a 09:00 New York meeting stays at 09:00 local across DST while\nits UTC instant moves by an hour, and each lasts as many elapsed milliseconds\nas the first.\n\n```ts\nimport { expandRecurrence } from \"@sdxc/dates\";\n\nlet occurrences = expandRecurrence(\n\t{ start: new Date(\"2026-03-02T14:00:00Z\"), end: new Date(\"2026-03-02T15:00:00Z\") },\n\t{ frequency: \"weekly\", weekdays: [1, 3], count: 10, exceptions: [\"2026-03-11\"] },\n\t{ start: new Date(\"2026-03-01T05:00:00Z\"), end: new Date(\"2026-04-01T04:00:00Z\") },\n\t\"America/New_York\",\n);\n// [{ start, end, index: 0 }, { start, end, index: 1 }, ...]\n```\n\nA rule repeats `\"daily\"`, `\"weekly\"`, `\"monthly\"` or `\"yearly\"` every\n`interval` periods, optionally on listed `weekdays` of each Monday-first week,\nand ends at `count` occurrences or after `until` (inclusive). `exceptions` are\nday keys to skip; they still count toward `count` and `index`, as RFC 5545\ncounts EXDATE. A monthly series on the 31st skips shorter months, a yearly one\non February 29th occurs only in leap years, a start time a spring-forward gap\nskips lands that much later, and one call steps through at most 10,000\nperiods. The `Recurrence`, `Occurrence`, `TimeSpan` and `Frequency` types are\nexported alongside it."}
|
|
2115
|
+
{"release":"2026.11.22","package":"@sdxc/dates","type":"feat","breaking":true,"title":"Remove expandRecurrence in favor of @sdxc/jscalendar","body":"`expandRecurrence` and its `Recurrence`, `Occurrence`, `TimeSpan` and `Frequency` types are gone from `@sdxc/dates`. Repeating events belong to the calendar packages: `@sdxc/jscalendar` expands RFC 8984 recurrence rules, and `@sdxc/icalendar` expands RRULEs. Both keep each repeat's wall-clock time in its zone across DST.\n\nTo migrate, describe the series as a JSCalendar Event and expand it with `occurrences`.\n\nBefore:\n\n import { expandRecurrence } from \"@sdxc/dates\";\n\n expandRecurrence(\n \t{ start: new Date(\"2026-03-02T14:00:00Z\"), end: new Date(\"2026-03-02T14:15:00Z\") },\n \t{ frequency: \"weekly\", weekdays: [1, 3], exceptions: [\"2026-03-11\"] },\n \t{ start: from, end: to },\n \t\"America/New_York\",\n );\n\nAfter:\n\n import { occurrences } from \"@sdxc/jscalendar/recurrence\";\n\n occurrences(\n \t{\n \t\t\"@type\": \"Event\",\n \t\tuid: \"standup\",\n \t\tstart: \"2026-03-02T09:00:00\",\n \t\ttimeZone: \"America/New_York\",\n \t\tduration: \"PT15M\",\n \t\trecurrenceRules: [{ frequency: \"weekly\", byDay: [{ day: \"mo\" }, { day: \"we\" }] }],\n \t\trecurrenceOverrides: { \"2026-03-11T09:00:00\": { excluded: true } },\n \t},\n \t{ from: from.getTime(), to: to.getTime() },\n );\n\nEach occurrence's `start` and `end` are epoch milliseconds, and the result is a `Result`."}
|
|
2116
|
+
{"release":"2026.11.22","package":"@sdxc/emoji","type":"feat","breaking":false,"title":"Ship shortcodes, markdown visitor, and picker UI","body":"Adds `@sdxc/emoji` with a multi-source Unicode catalog, `merge` /\n`replaceShortcodes` / `tokenize` / render helpers, a markdown walk\nvisitor, and Remix-way `EmojiPicker` / `EmojiSuggest` compounds plus\n`emojiInput` / `emojiPicker` mixins that dispatch `ui:emoji-pick`.\n\n```ts\nimport { replaceShortcodes } from \"@sdxc/emoji\";\nimport { shortcodes } from \"@sdxc/emoji/catalog\";\n\nreplaceShortcodes(\"Ship it :tada:\", shortcodes); // \"Ship it 🎉\"\n```\n\nImport `@sdxc/emoji/catalog` only when the built-in table is wanted;\npass a custom map (or overlay with `merge`) for Worker-light or\nworkspace emoji. `@sdxc/emoji/markdown` expands shortcodes while\nwalking a Markdown tree, and `@sdxc/emoji/ui` renders the picker and\ncolon-suggest against the same `--ui-*` theme `@sdxc/ui` loads.\nADR-197 records the design."}
|
|
2117
|
+
{"release":"2026.11.22","package":"@sdxc/emoji","type":"fix","breaking":false,"title":"Build the published package from src only","body":"The package's tsconfig included its catalog-building script, which sits outside `src`, so the publish build failed with TS6059 and wrote compiled copies of the script beside it. The build now compiles `src` alone, as every other package does, and produces the same `dist` files. No change for consumers."}
|
|
2118
|
+
{"release":"2026.11.22","package":"@sdxc/emoji","type":"fix","breaking":false,"title":"Leave URLs, paths and link text without emoticon swaps","body":"Before, `replaceShortcodes`, `tokenize` and the `emojis()` Markdown visitor\nfrom `@sdxc/emoji/markdown` turned an emoticon into an emoji wherever its\ncharacters appeared, so `https://example.com` rendered as\n`https😕/example.com`, and `C:/path` or `a:/b` broke the same way. The\nvisitor also rewrote the text of links.\n\nNow an emoticon expands only when whitespace or the start or end of the\ntext stands on both sides of it (`hmm :/` still becomes `hmm 😕`), and the\nvisitor leaves the text of bare URLs and `[text](url)` links as written,\nas it already did for inline code. `:shortcode:` tokens expand as before.\n\nConsumers need no change; text that went through these helpers simply\nkeeps its URLs and paths intact."}
|
|
2119
|
+
{"release":"2026.11.22","package":"@sdxc/facets","type":"feat","breaking":false,"title":"Add faceted filtering over in-memory records","body":"New package `@sdxc/facets`: one definition parses a URL's filters, writes them back,\nnarrows a list of records and counts every facet's options with the other facets\napplied (disjunctive counts), so a filter link and the number beside it always agree.\n\n import { createFacets } from \"@sdxc/facets\";\n import { isFailure } from \"@sdxc/result\";\n\n let posterFacets = createFacets<Poster>()\n .terms(\"color\", (poster) => poster.colors)\n .range(\"price\", (poster) => poster.price, { buckets: [0, 2500, 5000] })\n .toggle(\"inStock\", (poster) => poster.stock > 0);\n\n let filters = posterFacets.parse(url.searchParams);\n if (isFailure(filters)) return new Response(\"Bad Request\", { status: 400 });\n\n let { items, total, counts } = posterFacets.apply(posters, filters.data);\n let next = posterFacets.toggleTerm(filters.data, \"color\", \"ochre\");\n let href = `?${posterFacets.serialize(next, url.searchParams)}`;\n\n- Terms facets read repeated parameters (the shape a checkbox group submits); declared\n `values` set the display order and reject unknown values.\n- Range facets read `<name>_min` / `<name>_max`, filter `[min, max)` and count buckets,\n reporting the counted records' min and max for a slider.\n- Toggle facets read `1`/`true`/`on` and `0`/`false`/`off`.\n- `parse()` returns a `Result` failing with a `ValidationError` from `@sdxc/validate`\n that lists every malformed parameter.\n- `applied()` lists each active filter with the selection that removes it, for chip rows."}
|
|
2120
|
+
{"release":"2026.11.22","package":"@sdxc/i18n","type":"feat","breaking":false,"title":"Type translation values by the message they fill","body":"With a bundle declared `as const`, `t()` and `parts()` now type their `values` argument by the\nmessage at the key, not only the key itself:\n\n```ts\nimport { createI18n } from \"@sdxc/i18n\";\n\nconst en = {\n cart: { total: \"{$count :number} items\", empty: \"Your cart is empty\" },\n} as const;\n\nlet { t } = createI18n({ locale: \"en\", fallbackLanguage: \"en\", resources: { en } });\n\nt(\"cart.total\", { count: 3 }); // \"3 items\"\nt(\"cart.total\"); // type error: `count` is required\nt(\"cart.total\", { amount: 3 }); // type error: the message reads `count`\nt(\"cart.total\", { count: \"3\" }); // type error: `:number` takes number | bigint\nt(\"cart.empty\"); // a message without variables takes no values\n```\n\nParameters come from `MessageParams` in `@sdxc/messageformat`: placeholders, `.input`\ndeclarations, `.match` selectors and option values are read, `.local` names are not. A key\nunion takes values that satisfy every message it may name. The new `MessageValues<R, K>` type\nnames the values argument for a key, for wrappers that forward to `t`.\n\nBundles whose text widens to `string` (no `as const`, JSON imports, `Record<string, Messages>`)\nkeep accepting any values, and untyped translators (`Translate`, `I18n`, `createTranslator`,\n`ctx.intl`) are unchanged, so most apps need no change.\n\nCode that calls a translator built from an `as const` bundle may now report mistakes it\ncompiled with before. Fix the call, not the type:\n\n```ts\n// before: compiled, rendered \"{$count} items\"\nt(\"cart.total\", { amount: 3 });\n// after\nt(\"cart.total\", { count: 3 });\n\n// before: compiled, the values were ignored\nt(\"cart.empty\", { count: 3 });\n// after\nt(\"cart.empty\");\n```"}
|
|
2121
|
+
{"release":"2026.11.22","package":"@sdxc/i18n","type":"feat","breaking":false,"title":"Type every translator from one declared bundle","body":"An app now declares its fallback language's bundle once, by augmenting the new `I18nTypes`\ninterface, and every translator the package hands out checks keys and the values each message\nreads: `context.intl` from `@sdxc/i18n/middleware`, `ctx.intl` and `ctx.translate` from\n`@sdxc/i18n/middleware/cli`, `createTranslator`, `intl(handle)` and `Trans` from `@sdxc/i18n/ui`.\n\n```ts\n// locales/en.ts: `as const` keeps each text literal, so its variables can be read\nexport default { cart: { total: \"{$count :number} items\" } } as const;\n\n// locales/es.ts: the same keys, any text\nimport type { LocaleMessages } from \"@sdxc/i18n\";\nimport type en from \"./en.js\";\nexport default { cart: { total: \"{$count :number} artículos\" } } satisfies LocaleMessages<typeof en>;\n\n// app/initializers/i18n.ts\nimport type en from \"~/resources/locales/en\";\ndeclare module \"@sdxc/i18n\" {\n\tinterface I18nTypes {\n\t\tmessages: typeof en;\n\t}\n}\n\ncontext.intl.t(\"cart.total\", { count: 3 });\ncontext.intl.t(\"cart.totl\"); // type error: no such key\n<Trans i18nKey=\"cart.total\" />; // type error: `values` is required\n```\n\nNew exports from `@sdxc/i18n`:\n\n- `I18nTypes`, the interface an app augments with `messages: typeof en`.\n- `AppMessages`, the declared bundle, or `Messages` when none is declared. It is now the default\n bundle of `I18n`, `Translate` and `TranslateParts`.\n- `LocaleMessages<R>`, the shape another language's bundle satisfies: every key of the fallback\n bundle `R` and no other, each any string, so a missing or stale key fails to compile.\n\n`Trans` is generic over its `i18nKey`, so `values` is required and typed by the message's text\nonce a bundle is declared; `Trans.Props<K>` names those props.\n\nNothing changes for an app that does not augment `I18nTypes`: every translator keeps taking any\nkey and any values. An app that declares its bundle may see type errors at calls that pass a\nkey that does not exist or values the message does not read; each one is a call that rendered a\nraw key or a `{$name}` placeholder, so fix the call or the message rather than the type.\n`@sdxc/mail` templates pick the typing up through the app's existing\n`MailTypes { translate: ReturnType<typeof translate>[\"t\"] }` declaration."}
|
|
2122
|
+
{"release":"2026.11.22","package":"@sdxc/i18n","type":"feat","breaking":false,"title":"Name a bundle's subtrees and the keys under them","body":"Two new types let code that scopes a translator to one part of a bundle keep its keys and\nvalues checked:\n\n- `MessageAt<R, P>` is the message or subtree at a dotted path. A union of paths gives the\n union of their subtrees, so `MessageKey<MessageAt<R, P>>` is the keys every one of them shares.\n- `MessagePrefix<R>` is the union of every subtree's path, the prefixes a translator can be\n scoped to.\n\n```ts\nimport type { AppMessages, MessageAt, MessageKey, MessagePrefix, Messages, Translate } from \"@sdxc/i18n\";\n\nfunction withPrefix<P extends MessagePrefix<AppMessages>>(t: Translate, prefix: P) {\n\tlet translate = t as Translate<Messages>;\n\tlet prefixed: Translate<Messages> = (key, values) => translate(`${prefix}.${key}`, values);\n\treturn prefixed as Translate<MessageAt<AppMessages, P>>;\n}\n\nlet fields = withPrefix(ctx.intl.t, \"page.alerts.form.fields\");\nfields(\"name.label\"); // checked against page.alerts.form.fields.name.label\ntype IssueKey = MessageKey<MessageAt<AppMessages, \"page.alerts.form.issues\">>;\n```\n\nThis adds types only; nothing needs to change.","correctedIn":"2026.11.22"}
|
|
2123
|
+
{"release":"2026.11.22","package":"@sdxc/i18n","type":"feat","breaking":false,"title":"Pass markup options to the elements Trans splices in","body":"`Trans` from `@sdxc/i18n/ui` now passes a markup's options to whatever it renders for that\nmarkup. Before, `{#link href=$url}`, `{#speed rate=10}` and `{#pause ms=400/}` dropped their\noptions. Literal options arrive as strings and variable options as the values you pass, and the\n`u:id` option arrives as `id`. Variables read by options are already part of the typed `values`.\n\nAn element entry takes each option as a prop it does not set itself, so the element's own props\nwin. On an HTML element the options become plain attributes: strings, numbers and booleans pass\nas they are, other values pass as their `toString()`, and `on*` handlers, `key`, `mix`,\n`children` and raw-HTML props are never set.\n\n // \"See {#link href=$url}the docs{/link}\"\n <Trans i18nKey=\"help\" values={{ url: \"/docs\" }} components={{ link: <a class=\"docs\" /> }} />\n\nA `components` entry can now also be a component. It receives `Trans.MarkupProps`, which holds\nthe markup's `name`, its `options` and the enclosed `children`:\n\n function Pause(handle: Handle<Trans.MarkupProps>) {\n return () => <span data-pause={Number(handle.props.options.ms)} />;\n }\n <Trans i18nKey=\"story.wait\" components={{ pause: Pause }} />\n\nMarkup without options renders as it did, and existing `components` maps need no changes."}
|
|
2124
|
+
{"release":"2026.11.22","package":"@sdxc/kit","type":"fix","breaking":false,"title":"Register emoji among packages without a command line","body":"`@sdxc/emoji` ships no `bin`, so `sdxc pkg` and the package-bins catalog\ntest need it listed in `PACKAGES_WITHOUT_COMMAND_LINES`. Without that\nentry the root test fails as soon as the package directory exists.\n\nNo consumer action required."}
|
|
2125
|
+
{"release":"2026.11.22","package":"@sdxc/kit","type":"feat","breaking":false,"title":"List @sdxc/natural-dates among the packages sdxc pkg knows","body":"`sdxc pkg` now lists `@sdxc/natural-dates` among the published packages without a command line, so `sdxc pkg natural-dates` explains that there is nothing to run. Nothing else changes."}
|
|
2126
|
+
{"release":"2026.11.22","package":"@sdxc/kit","type":"fix","breaking":false,"title":"List @sdxc/facets, @sdxc/money and @sdxc/synth among the packages sdxc pkg knows","body":"`sdxc pkg` now knows `@sdxc/facets`, `@sdxc/money` and `@sdxc/synth` as published packages without a command line, so `sdxc pkg money` explains there is nothing to run instead of reporting an unknown package. Nothing else changes."}
|
|
2127
|
+
{"release":"2026.11.22","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Start apps with typed translations, and scaffold copy into TypeScript bundles","body":"A new app's English copy is now `resources/locales/en.ts`, declared `as const`, and its\n`app/initializers/i18n.ts` names that bundle to `@sdxc/i18n`, so every `ctx.intl.t()`,\n`translate(language).t()` and `<Trans>` checks the key and the values its message reads:\n\n```ts\n// resources/locales/en.ts\nexport default { home: { title: \"Welcome\" } } as const;\n\n// app/initializers/i18n.ts\ndeclare module \"@sdxc/i18n\" {\n\tinterface I18nTypes {\n\t\tmessages: typeof en;\n\t}\n}\n```\n\nAdd another language as a module that satisfies the English bundle's keys:\n\n```ts\nimport type { LocaleMessages } from \"@sdxc/i18n\";\nimport type en from \"~/resources/locales/en\";\n\nexport default { home: { title: \"Bienvenido\" } } satisfies LocaleMessages<typeof en>;\n```\n\n`sdxc scaffold` adds a resource's copy to every bundle in `resources/locales/`, a TypeScript\nmodule default-exporting an object as well as a JSON file, and still refuses one that already\nhas the resource's key. `sdxc doctor`'s `dependencies` check lets any layer import a message\nbundle, so an initializer reading `resources/locales/en.ts` is no longer reported as an outward\ndependency.\n\nAn existing app keeps working as it is. To adopt the typing, rename each JSON bundle to a `.ts`\nmodule exporting the same object, declare the English one `as const`, add the `I18nTypes` block\nto `app/initializers/i18n.ts`, type every other language `satisfies LocaleMessages<typeof en>`,\nand fix each call the type check then reports."}
|
|
2128
|
+
{"release":"2026.11.22","package":"@sdxc/kit","type":"feat","breaking":false,"title":"List @sdxc/novel among the packages sdxc pkg knows","body":"`sdxc pkg` now lists `@sdxc/novel` among the published packages without a command line, so `sdxc pkg novel` explains that there is nothing to run. Nothing else changes."}
|
|
2129
|
+
{"release":"2026.11.22","package":"@sdxc/messageformat","type":"feat","breaking":false,"title":"Read a message's parameters from its text","body":"`MessageParams<Source>` reads the values a MessageFormat 2 message needs from its source text\nas a string literal type, so code that holds a message's text can type-check the values it\npasses before formatting:\n\n```ts\nimport type { MessageParams } from \"@sdxc/messageformat\";\n\ntype Values = MessageParams<\"{$count :number} new posts by {$author}\">;\n// { count: number | bigint; author: string | number | bigint }\n\nlet ok: Values = { count: 3, author: \"Ana\" };\nlet wrong: Values = { count: \"3\", author: \"Ana\" }; // type error\n```\n\nEvery `{$name}` placeholder, `.input` declaration, `.match` selector and option value is a\nparameter; `.local` names are the message's own and are left out. Each is typed as the\ndefault functions accept it: `:number` and `:integer` take `number | bigint`, `:string` and an\nunannotated placeholder take `string | number | bigint`, and option values, markup options and\ncustom functions' operands take `unknown`. Markup names, escaped braces and quoted literals are\nnever read as parameters. A message without variables yields `{}`, and a `string` that is not\na literal yields `Record<string, unknown>`.\n\nThis adds a type only; formatting behaves as before and nothing needs to change."}
|
|
2130
|
+
{"release":"2026.11.22","package":"@sdxc/money","type":"feat","breaking":false,"title":"Add @sdxc/money for amounts in integer minor units","body":"A new package for money held as integer minor units (cents, pence, whole yen) with an ISO\n4217 code, so no amount ever passes through a float.\n\n- `currencyExponent`, `toMinor` and `toMajor` read each currency's precision from `Intl`.\n- `parseAmount` reads what a person typed with the locale's own decimal and grouping marks,\n and returns `null` for anything that is not an amount.\n- `allocate` splits a total into shares that add back to it exactly.\n- `percentOf` takes a tip, fee or tax line to the nearest minor unit.\n- `convert` changes currency at a rate, rounded to the target's precision.\n- `sumByCurrency` totals each currency apart.\n- `formatAmount` and `amountParts` write an amount with a true minus and an optional\n statement-style sign.\n\n import { allocate, formatAmount, parseAmount, percentOf } from \"@sdxc/money\";"}
|
|
2131
|
+
{"release":"2026.11.22","package":"@sdxc/money","type":"docs","breaking":false,"title":"Show each task on its own and add patterns for real jobs","body":"The README's Usage now walks through one task per example, smallest first: formatting an amount, reading typed text, splitting a total exactly, taking a percentage and converting, and totalling per currency. Four patterns follow: reading a price in a form handler with a 422 for bad input, splitting a bill with the tip, a net worth across currencies that rounds once per currency, and setting the cents smaller through `amountParts`. Every result shown was checked against the package. No code changes; consumers need not act."}
|
|
2132
|
+
{"release":"2026.11.22","package":"@sdxc/natural-dates","type":"feat","breaking":false,"title":"Find English date, time, duration and repeat phrases in text","body":"`@sdxc/natural-dates` is a new package. It reads the date and time phrases in a line of English, resolved against a clock and a time zone, and returns each one with the text range it came from. That makes it fit for quick-add boxes and live highlighting.\n\n import { find, strip } from \"@sdxc/natural-dates\";\n import { unwrap } from \"@sdxc/result\";\n\n let text = \"Lunch with Ana tomorrow 1pm for 45 minutes\";\n let found = unwrap(find(text, { now: new Date(), timeZone: \"Europe/Lisbon\" }));\n\n found.date; // \"2026-11-19\"\n found.start; // \"13:00\"\n found.end; // \"13:45\"\n strip(text, found.matches); // \"Lunch with Ana\"\n\nIt reads:\n- dates (tomorrow, next Friday, Dec 3, in 2 weeks, Dec 3-5)\n- times and ranges (1pm, 9:30–11, from 2 to 4)\n- durations (for 45 minutes)\n- all-day spans\n- repeats (every weekday, every other Tuesday until March, 6 times)\n\nA repeat comes back in the shape of a JSCalendar `RecurrenceRule`, and `toRRule` writes it as an iCalendar `RRULE`. Only an unknown time zone or an invalid `now` fails, with a `NaturalDatesError`; text without a phrase finds nothing."}
|
|
2133
|
+
{"release":"2026.11.22","package":"@sdxc/natural-dates","type":"fix","breaking":false,"title":"Read long runs of blank space in linear time","body":"`find` and `strip` used regular expressions that backtracked over long runs\nof whitespace: a repeat phrase followed by thousands of tabs, a weekday list\npadded with blanks, or a title ending in many stranded commas made `find`\nor `strip` take time quadratic in the input's length. Both now read such\ninput in linear time.\n\n`strip` also compares stranded words as whole words now. Before, a title\nthat opened with \"for\", \"on\", \"at\", \"from\" or \"by\" lost those letters\n(`strip` turned \"Format review tomorrow\" into \"mat review\"); now it keeps\nthe word (\"Format review\"). No action is needed from consumers."}
|
|
2134
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Declare scenes, a cast and assets, and play a novel as frames","body":"`@sdxc/novel` is a new package for visual novels written the way an app declares routes, jobs and emails: declarations hold data and types, each scene module returns a list of directives, and the novel maps scenes onto their modules and plays them.\n\nDeclare the story, type it once, and write a scene:\n\n import * as s from \"remix/data-schema\";\n import { assets, cast, character, createNovel, createScene, lazy, scene, scenes } from \"@sdxc/novel\";\n\n export const SCENES = scenes({ prologue: { opening: scene(), cafe: scene() } });\n export const CAST = cast({\n mika: character({ name: \"cast.mika\", sprites: { smile: \"/mika/smile.webp\" } }),\n });\n export const ASSETS = assets({ backgrounds: { cafe: \"/bg/cafe.webp\" } });\n\n declare module \"@sdxc/novel\" {\n interface NovelTypes { state: State; messages: typeof en; interactions: typeof INTERACTIONS }\n }\n\n export default createScene(SCENES.prologue.opening, (ctx) => [\n ctx.show(ASSETS.backgrounds.cafe, { transition: \"fade\" }),\n ctx.enter(CAST.mika, { at: \"left\", expression: \"smile\" }),\n ctx.say(CAST.mika, \"opening.hello\", (state) => ({ gold: state.gold })),\n ctx.choose({\n \"opening.stay\": [ctx.set(\"gold\", (gold) => gold + 5), ctx.goto(SCENES.prologue.cafe)],\n \"opening.leave\": [ctx.ending(\"endings.early\")],\n }),\n ]);\n\nMap the scenes and play. `start()` answers a `Result`; a play is an async generator of `line`, `choice`, `pause`, `custom` and `error` frames, each carrying the complete stage and audio, and every reply is built by the frame it answers:\n\n let novel = createNovel({ scenes: SCENES, cast: CAST, assets: ASSETS, state: STATE, initial: SCENES.prologue.opening });\n novel.map(SCENES.prologue.opening, lazy(() => import(\"./scenes/opening.js\")));\n\n let play = unwrap(novel.start({ from: saved }));\n let step = await play.next();\n while (!step.done) {\n let frame = step.value;\n if (frame.type === \"choice\") step = await play.next(frame.choose(frame.options[0].id));\n else if (frame.type === \"line\" || frame.type === \"pause\") step = await play.next(frame.advance());\n else break;\n }\n\n`play.state` is the play as JSON, anchored on the message key of the current stop so a save survives edits elsewhere in the scene; `novel.start({ from })` validates a save against the state schema before resuming it, and `play.rollback()` returns to the previous stop with the same values and random draws (100 stops by default, set with `createNovel({ rollback })`).\n\n`@sdxc/novel/test` adds `createTestPlay`, which drives a play by naming each reply:"}
|
|
2135
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":true,"title":"Rename a menu option's directives from then to do","body":"An option object passed to `ctx.choose()` now lists its directives under `do`.\nAn object with a `then` member is a thenable, which lint rules such as\n`unicorn/no-thenable` flag in every file that writes one; `do` carries no such\nhazard, so apps need no lint exception for their scenes.\n\nMigration: rename `then` to `do` in every option object. Options written as a\nplain array of directives are unchanged.\n\nBefore:\n\n ctx.choose({\n \"cafe.flirt\": {\n when: (state) => state.charm >= 50,\n visibility: \"disabled\",\n then: [ctx.set(\"affection.mika\", (value) => value + 10)],\n },\n \"cafe.leave\": [ctx.goto(scenes.cafe.leave)],\n });\n\nAfter:\n\n ctx.choose({\n \"cafe.flirt\": {\n when: (state) => state.charm >= 50,\n visibility: \"disabled\",\n do: [ctx.set(\"affection.mika\", (value) => value + 10)],\n },\n \"cafe.leave\": [ctx.goto(scenes.cafe.leave)],\n });\n\nCode that reads directive data (a `ChoiceOptionDirective` or a `WhenDirective`)\nreads the branch as `.do` instead of `.then`. Saves are unaffected."}
|
|
2136
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Version saves, keep persistent data, and emit typed events","body":"A novel now emits what its plays do, keeps data across playthroughs, and\nupgrades old saves.\n\nEvents: `novel.on(name, listener)` returns a function that removes the\nlistener, `novel.off()` removes one, and `novel.use(plugin)` installs a\nfunction that registers listeners. Listeners receive the payload and the play\nit fired for; one that throws or rejects is reported on `error` and the play\ncontinues.\n\n novel.on(\"save\", ({ slot, state }) => localStorage.setItem(`save:${slot}`, JSON.stringify(state)));\n novel.on(\"persist\", (persistent) => localStorage.setItem(\"persistent\", JSON.stringify(persistent)));\n novel.on(\"error\", (error) => reportError(error));\n novel.use(achievements);\n\nThe events are `scene`, `line`, `choice`, `ending`, `unlock`, `chapter`,\n`save` (from the new `play.save(slot)`), `persist` and `error`. `error` carries\na `NovelError` whose new `subject` (and `locale`) names what it is about: a\nmenu with no option to take, an asset or character the novel does not declare,\na message key missing from a catalog passed as `createNovel({ messages })`, a\njump to an unmapped scene, or a failing listener. The play continues past each\nof these, drawing the asset as written and carrying the key in place of the\nmissing text.\n\nPersistent data: `novel.start({ persistent })` takes the stored `Persistent`\nrecord (lines read with their values, options taken, endings, chapters, and\nunlocked images and music), validates it, updates it as the play runs, and\nemits the whole record on `persist`. `play.persistent` reads it, and callbacks\nreceive it as `tools.persistent`.\n\n let play = novel.start({ persistent: JSON.parse(localStorage.getItem(\"persistent\") ?? \"null\") });\n\nBehavior change: `frame.seen` and `option.chosen` now read this record, so\nthey mark lines and options from earlier playthroughs. A play started without\n`persistent` starts from empty data, as before.\n\nVersions: saves carry `version` (default 1, a save without one reads as 1),\nand `createNovel({ version, migrate })` upgrades older saves one step at a\ntime. A failing, missing or throwing step answers a `migration-failed` error\nfrom `start({ from })`.\n\n createNovel({\n ...declarations,\n version: 2,\n migrate: { 1: (game) => success({ ...game, state: { ...game.state, gold: game.state.coins } }) },\n });\n\nA save anchored on a pause, interaction or call whose count no longer exists\nafter an edit now resumes at the line it was counted from instead of the start\nof the scene.\n\nVoices: the `voice` option receives `locale` too. With\n`createNovel({ locales })`, or the locales of `messages`, it is asked once per\nlocale and the frame carries a map of locale to URL, which fits a voice folder\nper locale loaded with `import.meta.glob`:\n\n createNovel({\n ...declarations,\n locales: [\"en\", \"ja\"],\n voice: ({ speaker, key, locale }) => VOICES[`./voice/${locale}/${speaker}/${key}.ogg`],\n });\n\n`createTestPlay` takes `persistent` and gains `events` (every event the play\nemitted), `persistent` and `save()`."}
|
|
2137
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Check every scene statically and explore every path in tests","body":"`@sdxc/novel/test` gains `check()` and `explore()`.\n\n`check(novel)` reads every mapped scene's directives without playing them and\nanswers `{ ok, problems }`. Errors: a message key anchored twice in one scene,\na `goto` or `call` to a scene with no module, an asset or character the novel\ndoes not declare, a scene module that fails to load. Warnings: two characters\nin one column at once, a menu whose every option is conditional, a declared\nscene the initial scene never reaches.\n\n let report = await check(novel);\n expect(report.problems).toEqual([]);\n\n`explore(novel, options)` plays every enabled option of every menu from the\ninitial scene (or `scene`, with `state` and `persistent`), skipping a stop\nalready reached with the same state, so hubs and loops end. Custom\ninteractions are answered by `interactions`, a function per interaction\nreturning the outputs to try; one without an entry is reported as unexplored.\n`seeds` explores draws from several seeds, and `maxDepth` and `maxPaths` cap a\nbranchy story, with `capped` saying which cap was hit. The report lists every\nending with the shortest path found to it, dead-end menus, unexplored\ninteractions, errors such as unmapped jumps, scenes no path entered, missing\nassets, missing messages per locale (from `messages`, or the novel's own), and\nthe `check()` problems.\n\nEvery reported path replays in `createTestPlay` through the new `follow()`:"}
|
|
2138
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Play a novel in the browser with NovelPlayer","body":"`@sdxc/novel/ui` adds `NovelPlayer`, a `remix/component` player that owns a\nplay and renders each frame: a letterboxed 16:9 stage scaled with container\nquery units, characters placed in their columns with speaker focus, scenery\ntransitions as View Transitions, a typewriter textbox rendered through\n`Trans` (with `b`, `i`, `shake`, `speed` and `pause` markup), choice menus\nwith locked, chosen and timed options, sound captions, and a Web Audio mixer\nfor music, ambience, sounds and voices.\n\nIt also covers auto mode, skip (read text or all), the backlog with voice\nreplay, rollback, quick save and load, save and load slots with thumbnails,\nsettings (text speed, auto delay, skip mode, volumes, text size, a\ndyslexia-friendly font, self-voicing), hiding the interface, full screen,\nkeyboard, wheel, touch and gamepad input. Every part (`Stage`, `Textbox`,\n`ChoiceMenu`, `Backlog`, `SaveScreen`, `SettingsScreen`, `QuickMenu`,\n`AudioMixer`) is exported for a game that replaces one.\n\nRender it inside your own client entry, under an `IntlProvider`, and load\n`@sdxc/ui/theme.css` for the screens:\n\n import { NovelPlayer } from \"@sdxc/novel/ui\";\n\n export const Game = clientEntry(import.meta.url, function Game() {\n return () => (\n <NovelPlayer\n novel={novel}\n start={{ from: savedGame, persistent }}\n settings={storedSettings}\n onSettingsChange={(settings) => store(\"settings\", settings)}\n renderInteraction={Fishing}\n />\n );\n });\n\nSaves reach the novel's `save` event and the `onSave` prop; pass stored saves\nback through `saves`."}
|
|
2139
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Read a speed's rate and a pause's length from line markup","body":"Line markup in `@sdxc/novel/ui` now takes options. `{#speed rate=…}…{/speed}` types its text at\n`rate` times the reader's text speed, and `{#pause ms=…/}` holds the typewriter for `ms`\nmilliseconds. Without an option they behave as before: half speed, and a 400ms pause. Options may\nbe literals or message variables.\n\n // en.json: \"Well{#pause ms=800/}… {#speed rate=0.25}I suppose so.{/speed}\"\n <NovelPlayer novel={novel} />\n\nThe `markup` prop of `NovelPlayer`, `Textbox` and `Message` now also accepts markup components,\nwhich receive `Trans.MarkupProps` from `@sdxc/i18n/ui`:\n\n function Whisper(handle: Handle<Trans.MarkupProps>) {\n return () => <small data-volume={String(handle.props.options.volume)}>{handle.props.children}</small>;\n }\n <NovelPlayer novel={novel} markup={{ whisper: Whisper }} />\n\nExisting lines and `markup` maps need no changes."}
|
|
2140
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Render prefetch links and list the scenes a play can reach","body":"`novel.links(scene, { depth, locale })` reads the scene arrays and answers `<link>` descriptors\nfor a page's head: `preload` for the images and sounds the starting scene shows (`as=\"image\"`,\nor `as=\"fetch\"` with `crossorigin=\"anonymous\"` for sounds), and `prefetch` for its music and\nvoices and for every file of the scenes within `depth` jumps (1 by default). It imports the lazy\nscene modules on the way, so it is async. Each URL is listed once, `data:` URLs are left out, and\na localized file lists only the reader's locale when `locale` is given.\n\n let links = await novel.links(scenes.prologue.opening, { locale: \"en\" });\n // [{ rel: \"preload\", href: \"/assets/cafe-a1b2c3d4.webp\", as: \"image\" }, …]\n\n`novel.reachable(scene, { depth, locale })` answers the same scenes with their depth and their\nfiles (kind, id and URL), for a player to prefetch while a play runs; reaching a scene imports\nits module.\n\n for (let next of await novel.reachable(current, { locale })) {\n \tfor (let asset of next.assets) prefetch(asset.url);\n }\n\nThe `NovelLink`, `ReachedScene`, `ReachOptions` and `SceneAsset` types are exported."}
|
|
2141
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Add developer tools with scene jumps and hot reload","body":"`@sdxc/novel/dev` connects to a novel through its events. `createDevTools(novel, { restart })`\nfollows the running play, keeps an event log, and starts every edited play through `restart`,\nwhich hands the options to the app's player as its `start`. `NovelDevTools` renders it as a\npanel of native disclosures: the play's position and state, a jump to any mapped scene with state\nedited as JSON and checked against the state schema, persistent data with buttons that reset\nseen lines and unlocks, the scene graph as a flowchart, the event log, and `check()`'s problems\nwith the message keys each catalog lacks.\n\n import { createDevTools, NovelDevTools } from \"@sdxc/novel/dev\";\n\n let devtools = createDevTools(novel, { restart: (start) => remountPlayer(start) });\n <NovelDevTools devtools={devtools} />;\n\n`devtools.reload(modules)` swaps edited scene modules into the novel and, when the play stands in\none of them, restarts it from its own save, so it resumes on the same line (or at the scene's\nstart when that line was removed). Call it from Vite's hot module replacement:\n\n import.meta.hot?.accept([\"./scenes/opening.ts\"], (modules) => devtools.reload(modules));\n\n`devtools.jump(scene, state)`, `devtools.reset({ seen, unlocked, … })`, `devtools.graph()`,\n`devtools.problems()` and `toMermaid(graph)` work without the panel. The package now depends on\n`@sdxc/diagram`, which draws the flowchart. Import the entry in development builds only."}
|
|
2142
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Play offline through an opt-in service worker","body":"`@sdxc/novel/offline/worker` turns the app's own service worker script into a cache of the\nnovel's files, and `@sdxc/novel/offline` registers it from the page. The worker caches only the\nfiles the page declares and the scene module chunks `modules` names, as they are first fetched:\ncontent-hashed files (`/assets/<name>-<hash>.<ext>` by default, or the `immutable` rule) are\ncache-first, and every other file is fetched from the network first, with the cache as its\noffline fallback. It never answers a navigation, stores only whole `200` responses, deletes\nolder versions' caches on activation, and keeps an optional `budget` in bytes by evicting the\nleast recently used files.\n\n // sw.ts, built as its own entry and served from the game's scope\n import { serveOffline } from \"@sdxc/novel/offline/worker\";\n serveOffline({ version: BUILD_ID, budget: 200_000_000, modules: (url) => url.pathname.startsWith(\"/assets/scenes/\") });\n\n // the page\n import { registerOffline } from \"@sdxc/novel/offline\";\n await registerOffline(novel, { url: \"/sw.js\", type: \"module\", extra: Object.values(VOICES) });\n\n`registerOffline` sends every declared asset in every locale and every character image, plus\n`extra` URLs such as voice files, and sends them again when a new worker takes control.\n`offlineAssets(novel)` lists the same URLs, and the policy (`strategyFor`, `isHashed`, `evict`,\n`staleCaches`) and `OfflineCache` are exported for a worker that does more."}
|
|
2143
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Animate a character's exit the way the scene authors it","body":"A frame now says how characters left the stage. On the stop where `exit` took a character off,\n`frame.stage.exits` lists each one as it last stood (position, sprite or layers, images) with\n`transition` set to the exit's transition; the next frame no longer carries it, and a save never\ndoes.\n\n ctx.exit(cast.mika, { transition: \"slide\" });\n // the next frame: frame.stage.exits → [{ id: \"mika\", at: \"1/3\", images: […], transition: \"slide\" }]\n\n`Stage` in `@sdxc/novel/ui` draws those characters as leaving, with `data-exiting=\"true\"`, and the\nplayer waits for their animation before the line: `fade` fades out, `slide` slides toward the\nnearer edge of the stage, and any other name is a class an app animates.\n\n .vanish[data-exiting=\"true\"] { animation: vanish 400ms forwards; }\n\nBefore, every removed character faded out, whatever the scene said. Now an `exit` without a\ntransition takes the character off at once, as an `enter` without one puts it on. A scene that\nwants the old look writes `ctx.exit(character, { transition: \"fade\" })`. Skip mode and reduced\nmotion still remove characters at once."}
|
|
2144
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Add Memories, a gallery, a music room, endings, chapter select and scene replay","body":"`@sdxc/novel/ui` now ships the library screens, each reading the stored `Persistent` value and the\nscene arrays: `Memories` (read lines per reached scene, with their values, speakers and voice),\n`Gallery` (unlocked CGs in a lightbox, locked ones as placeholders), `MusicRoom` (unlocked tracks\nplayed through an `AudioMixer`), `EndingsList` (endings reached of every ending the scenes hold),\n`ChapterSelect` and `SceneReplay`. Each works alone, so a title screen can lay them out itself:\n\n <EndingsList novel={novel} persistent={loadPersistent()} />\n <SceneReplay novel={novel} persistent={loadPersistent()}\n onSelect={(scene) => setStart({ scene, replay: \"scene\", persistent: loadPersistent() })} />\n\n`NovelPlayer` lists them in a new Extras menu of the quick menu (`extras={false}` hides it, and\n`musicTitles` names the music room's tracks). Their words are new `labels` keys with English\ndefaults: `extras`, `memories`, `gallery`, `musicRoom`, `endings`, `chapterSelect`, `sceneReplay`,\n`loading`, `locked`, `unknownEnding`, `noMemories`, `play`, `stop` and `endReplay`.\n\n`novel.start()` takes a new `replay` option, `\"scene\"` or `\"chapter\"`. A replay finishes when a\n`goto` leaves the scene (or chapter) it started in, records only the lines it shows, and leaves\n`chosen`, `endings`, `chapters` and `unlocked` untouched, with their events silent. In\n`NovelPlayer`, chapter select and scene replay start replays that cannot save and offer an\n\"End replay\" button; when a replay ends the player resumes the interrupted play where it was.\n\n let replay = novel.start({ scene: scenes.prologue.opening, replay: \"scene\", persistent });\n\n`readLibrary(novel, persistent, locale)`, `sceneLines(directives)` and `endingKeys(directives)`\nexpose the data behind the screens for a custom one. Existing players need no changes."}
|
|
2145
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Prefetch the scenes within reach while a play runs","body":"`NovelPlayer` now prefetches as the play enters each scene: it asks `novel.reachable()` for the\nscenes one jump ahead (which imports their lazy modules) and warms their files without holding\nup the frame. Images are decoded, sounds and voices are decoded into the mixer, and music and\nambience get a `<link rel=\"prefetch\">` for the browser's cache. Each URL is fetched once, `data:`\nand `blob:` URLs are skipped, localized files follow the reader's locale, at most four files load\nat once, and skip mode prefetches nothing.\n\n <NovelPlayer novel={novel} prefetch={2} /> // look two jumps ahead\n <NovelPlayer novel={novel} prefetch={false} /> // turn it off\n\n`AudioMixer` gains `preload(url)`, which fetches and decodes a sound or voice ahead of its line.\nPlayers need no changes; prefetching is on by default."}
|
|
2146
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":true,"title":"Take the typewriter and the touch and focus helpers from @sdxc/ui","body":"The player now draws its stage on `Letterbox` from `@sdxc/ui`, types lines with\n`Typewriter` from `@sdxc/ui/utils` and moves focus and reads swipes with\n`moveFocus` and `swipeDirection` from there too. The player looks and behaves\nas before; `--novel-letterbox` and `--novel-stage-background` still colour the\nbars and the stage.\n\n`@sdxc/novel/ui` no longer exports `Typewriter`, `UNREVEALED_HIGHLIGHT`,\n`moveFocus` or `swipeDirection`. `gamepadActions` and `GamepadAction` stay, since\nthey hold the player's own button map. To migrate:\n\n1. Import the helpers from `@sdxc/ui/utils`.\n\n // before\n import { moveFocus, swipeDirection, Typewriter } from \"@sdxc/novel/ui\";\n // after\n import { moveFocus, swipeDirection, Typewriter } from \"@sdxc/ui/utils\";\n\n2. Replace `UNREVEALED_HIGHLIGHT` (`\"novel-unrevealed\"`) with `TYPEWRITER_HIGHLIGHT`\n (`\"ui-typewriter\"`), or paint the host with `typewriterText()` from\n `@sdxc/ui/styles`.\n\n // before\n css({ [`& ::highlight(${UNREVEALED_HIGHLIGHT})`]: { color: \"transparent\" } })\n // after\n typewriterText()\n\n3. Markup that holds or paces the typing uses the new attribute names. The\n built-in `{#pause/}` and `{#speed}` already emit them; a custom markup\n component that wrote the old ones changes:"}
|
|
2147
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"docs","breaking":false,"title":"Fix the README's client entry and start examples","body":"The README's player example now names its client entry with a module path string (`clientEntry(\"/app/game.tsx#Game\", …)`), and the saves example handles the `Result` that `novel.start()` answers instead of treating it as a play. No API changes."}
|
|
2148
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"docs","breaking":false,"title":"Document every export in the README","body":"The @sdxc/novel README now follows the standard package layout (installation, usage, API, patterns, versioning) and documents NovelPlayer with every prop, its keyboard, touch and gamepad controls and its settings and labels, along with every runtime export and public type of @sdxc/novel, /ui, /test, /dev, /offline and /offline/worker. This is a documentation change only; no consumer action is needed."}
|
|
2149
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":true,"title":"Dispatch player events and move input into mixins","body":"`NovelPlayer` from `@sdxc/novel/ui` no longer takes callbacks or wires its\nown input. Saves, settings changes and endings leave the player as typed,\nbubbling DOM events dispatched from its root element, so an app catches\nthem with `on()` on the player or any ancestor. Keyboard, touch, wheel and\ngamepad input are now three mixins a game applies to the player, and an\ninput left out does nothing; a click or tap on the stage still advances.\n\nNew exports:\n\n- `NovelSaveEvent` (`novel:save`, with `slot` and `state`),\n `NovelSettingsEvent` (`novel:settings`, with `settings`) and\n `NovelEndingEvent` (`novel:ending`, with `ending`), declared on\n `HTMLElementEventMap` so `on()` types them.\n- `keyboardControls(options?)`: the keymap, `KEYMAP` by default, with held\n Control skipping. Keys stand down while a dialog, field or button takes\n them.\n- `touchControls()`: a downward swipe opens the backlog, an upward one\n rolls back, the wheel rolls back and advances once per 300ms, and the\n host takes every touch gesture (`touch-action: none`).\n- `gamepadControls()`: standard-mapping gamepads, polled while connected.\n- `NovelPlayer.Context`: what `handle.context.get(NovelPlayer)` answers, the\n API the mixins drive the player through.\n\nMigration:\n\n1. Replace `onSave`, `onSettingsChange` and `onEnding` with listeners.\n\n Before:\n\n <NovelPlayer\n novel={novel}\n onSave={(slot, state) => store(slot, state)}\n onSettingsChange={(settings) => keep(settings)}\n onEnding={(ending) => credits(ending)}\n />\n\n After:\n\n <NovelPlayer\n novel={novel}\n mix={[\n on(\"novel:save\", (event) => store(event.slot, event.state)),\n on(\"novel:settings\", (event) => keep(event.settings)),\n on(\"novel:ending\", (event) => credits(event.ending)),\n ]}\n />\n\n2. Apply the controls the game wants; without them the player takes only\n clicks and taps on the stage.\n\n Before:\n\n <NovelPlayer novel={novel} />\n\n After:\n\n import { gamepadControls, keyboardControls, touchControls } from \"@sdxc/novel/ui\";\n\n <NovelPlayer\n novel={novel}\n mix={[keyboardControls(), touchControls(), gamepadControls()]}\n />\n\n3. A custom keymap is passed to the mixin:\n `keyboardControls({ keymap: { ...KEYMAP, x: \"auto\" } })`.\n\n4. `touch-action: none` now sits on the element `touchControls()` is\n applied to, the player's root above, instead of the stage."}
|
|
2150
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":true,"title":"Compose the player from parts that read its context","body":"`NovelPlayer` from `@sdxc/novel/ui` is now a provider: it owns the play,\nthe reader's behaviors, the mixer and prefetch, and renders only its root\nelement and its children. The interface is made of parts composed inside\nit, each reading the player through `handle.context.get(NovelPlayer)`, so\na game drops a part by leaving it out or writes its own on the same\ncontext. `NovelPlayer.Default` renders the classic layout with every part\nand the keyboard, touch and gamepad controls.\n\n <NovelPlayer novel={novel} mix={[keyboardControls(), touchControls()]}>\n <NovelPlayer.Stage>\n <NovelPlayer.Textbox />\n <NovelPlayer.Choices />\n <NovelPlayer.Interaction name=\"fishing\" component={Fishing} />\n <NovelPlayer.QuickMenu>\n <NovelPlayer.Extras>\n <Memories />\n <MusicRoom titles={titles} />\n </NovelPlayer.Extras>\n </NovelPlayer.QuickMenu>\n </NovelPlayer.Stage>\n <NovelPlayer.Backlog />\n <NovelPlayer.Saves slots={3} />\n <NovelPlayer.Settings />\n </NovelPlayer>\n\nParts: `NovelPlayer.Stage`, `.Textbox`, `.NamePlate`, `.Line`,\n`.NextIndicator`, `.Captions`, `.Choices`, `.Interaction`, `.QuickMenu`,\n`.Backlog`, `.Saves`, `.Settings`, `.Extras` and `.Default`. Each takes\n`mix`, the containers take children, and inner pieces keep their\n`data-novel-*` attributes. The same components are exported by name\n(`Stage`, `Textbox`, `NamePlate`, `Line`, `NextIndicator`, `Captions`,\n`ChoiceMenu`, `Interaction`, `QuickMenu`, `Backlog`, `SaveScreen`,\n`SettingsScreen`, `Extras`).\n\nThe context (`NovelPlayer.Context`) holds the play's state (`frame`,\n`phase`, `ending`, `error`, `hidden`, `replaying`, `persistent`, `labels`,\n`locale`, `ids`…), the behaviors, and the actions `answer`, `advance`,\n`rollback`, `save`, `load`, `setSettings`, `toggleAuto`, `toggleSkip`,\n`holdSkip`, `hide`, `toggleFullscreen`, `replay`, `endReplay`, `open` and\n`retry`.\n\nThe behaviors are headless classes extending `TypedEventTarget` that\ndispatch `change`, exported for custom parts and usable without a DOM:\n`RevealModel` (`player.typewriter`), `AutoModel` (`player.auto`),\n`SkipModel` (`player.skip`), `BacklogModel` (`player.backlog`), `SaveSlots`\n(`player.saves`), `SettingsModel` (`player.settings`) and `CountdownModel`\n(`player.countdown`); `AudioMixer` (`player.mixer`) and `Prefetcher`\n(`player.prefetcher`) are exposed as well. A custom textbox reveals a line\nby watching `player.typewriter` and calling `reveal()` once it shows it.\n\nEvery visual decision of the parts reads a `--novel-*` custom property\nwith a default, listed in the new `NOVEL_THEME_VARIABLES` export, so a\ngame restyles the player with variables instead of overriding rules,\nimages and image frames included:\n\n <NovelPlayer.Default\n novel={novel}\n mix={css({\n \"--novel-textbox-border-image-source\": \"url(/ui/frame.png)\",\n \"--novel-textbox-border-image-slice\": \"30 fill\",\n \"--novel-textbox-border-image-width\": \"24px\",\n \"--novel-next-content\": '\"▶\"',\n })}\n />\n\nThe extras screens (`Memories`, `Gallery`, `MusicRoom`, `EndingsList`,\n`ChapterSelect`, `SceneReplay`) still work alone with `novel` and\n`persistent`; inside a player both are optional and come from the\ncontext, chapter select and scene replay start replays, and Memories plays\nvoices through the player's mixer. The textbox gains a next-line indicator\nshown while a line waits for the reader.\n\nMigration:\n\n1. Render the parts, or `NovelPlayer.Default`, inside the player; a bare\n `NovelPlayer` draws nothing but its root.\n\n Before:\n\n <NovelPlayer novel={novel} settings={stored} mix={[keyboardControls()]} />\n\n After:\n\n <NovelPlayer.Default novel={novel} settings={stored} />\n\n2. Replace `renderInteraction` with one `NovelPlayer.Interaction` per\n interaction; its component's props are typed by the interaction.\n\n Before:\n\n function Fishing(handle: Handle<NovelPlayer.InteractionProps>) { … }\n <NovelPlayer novel={novel} renderInteraction={Fishing} />\n\n After:\n\n function Fishing(handle: Handle<Interaction.ComponentProps<\"fishing\">>) { … }\n <NovelPlayer.Default novel={novel}>\n <NovelPlayer.Interaction name=\"fishing\" component={Fishing} />\n </NovelPlayer.Default>\n\n3. Move `slots`, `focus`, `musicTitles` and `extras` onto parts in a\n composed layout.\n\n Before:\n\n <NovelPlayer novel={novel} slots={3} focus={false} musicTitles={titles} extras={false} />\n\n After:\n\n <NovelPlayer novel={novel}>\n <NovelPlayer.Stage focus={false}>…</NovelPlayer.Stage>\n <NovelPlayer.Saves slots={3} />\n </NovelPlayer>\n\n with `<MusicRoom titles={titles} />` inside `NovelPlayer.Extras`, or no\n `NovelPlayer.Extras` at all for no extras menu.\n\n4. The parts no longer take the props they read from the player. Before:\n `<Textbox frame={frame} typing textSpeed={40} onRevealed={next} />`,\n `<ChoiceMenu frame={frame} onChoose={choose} />`,\n `<QuickMenu auto={auto} skip={skip} dialogs={ids} onAction={run} labels={labels} />`,\n `<Backlog id=\"backlog\" entries={entries} labels={labels} />`,\n `<SaveScreen id=\"save\" mode=\"save\" slots={slots} saves={saves} locale=\"en\" onSelect={save} labels={labels} />`,\n `<SettingsScreen id=\"settings\" settings={settings} onChange={store} labels={labels} />`.\n After: `<Textbox />`, `<ChoiceMenu />`, `<QuickMenu />`, `<Backlog />`,\n `<SaveScreen slots={6} />` (both the save and the load dialogs) and\n `<SettingsScreen />`, rendered inside a `NovelPlayer`.\n\n5. `Stage` draws the player's frame inside a player; pass `stage` to draw\n a still stage, as before: `<Stage stage={stillStage(state.stage)} />`.\n Its `locale` is optional and defaults to the reader's.\n\n6. Removed types and moved exports: `NovelPlayer.InteractionProps` and\n `NovelPlayer.Interaction` (use `Interaction.ComponentProps` and\n `Interaction`), `NovelPlayer.LibraryProps` and\n `NovelPlayer.ScreenProps` (private now). `timeoutOption` and\n `QUICK_SLOT` keep their names and are exported from `@sdxc/novel/ui` as\n before; `BacklogEntry` too.\n\n7. `--novel-text-font` now defaults to `@sdxc/ui`'s `--ui-font-sans`\n instead of `inherit`; set it to `inherit` to keep the page's font."}
|
|
2151
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"fix","breaking":false,"title":"Export SchemaInput and keep private types private","body":"`SchemaInput` appears in public signatures of `@sdxc/novel`\n(`InteractionFrame.complete` and `SceneContext.custom`) but was not\nexported; it is now, so an app can name the input type of a schema:\n`import type { SchemaInput } from \"@sdxc/novel\"`.\n\n`NovelDevTools.SectionProps` from `@sdxc/novel/dev` described the\npanel's private sections and is no longer exported. Nothing in the public\nAPI took it, so no consumer needs to act.\n\nDocumentation only otherwise: the `lazy()` and `Novel.map()` examples use\na relative import path, and the `@sdxc/novel/offline/worker` module\ndescription names `declaredUrls()`."}
|
|
2152
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"docs","breaking":false,"title":"Document the composable player in the README","body":"The README now documents the player as a provider with parts: NovelPlayer and NovelPlayer.Default, the context a custom part reads with handle.context.get(NovelPlayer), the novel:save, novel:settings and novel:ending events, the keyboardControls(), touchControls() and gamepadControls() mixins, every part, the --novel-* theme variables and the headless behavior classes. Its usage examples and patterns use the new API. No consumer action is needed beyond the migration the player change itself describes."}
|
|
2153
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":true,"title":"Replace player behaviors, observe the play, and type interactions","body":"`@sdxc/novel/ui` makes the reader's behaviors replaceable, lets a behavior\nbuilt inside the player follow the play through events, and types\n`NovelPlayer.Interaction` from the app's `interactions()` map.\n\nReplaceable behaviors: each slot has an exported interface describing only\nwhat the player relies on (`RevealBehavior`, `AutoBehavior`, `SkipBehavior`,\n`BacklogBehavior`, `SavesBehavior`, `SettingsBehavior`, `CountdownBehavior`).\nThe built-in models implement them and stay the defaults. Pass your own\nthrough the new `behaviors` prop, read once at mount like `start`:\n\n <NovelPlayer novel={novel} behaviors={{ auto: new VoiceAwareAuto() }}>\n\n`AutoModel` gains an overridable `delay(line)`, so a subclass changes how\nlong a line stays: `class SlowAuto extends AutoModel { override delay(line) { return line.delay * 2; } }`.\nThe `settings` and `saves` props reach whichever behavior is in use,\na custom one included, through its `replace()`.\n\nObservable context: `NovelPlayer.Context` is now a `TypedEventTarget` that\ndispatches `frame`, `phase` and `ending` as soon as each changes, and it\nexposes the play's story state as `player.state`:\n\n class Pulse extends TypedEventTarget<{ change: Event }> {\n constructor(player: NovelPlayer.Context, signal: AbortSignal) {\n super();\n player.addEventListener(\"frame\", () => this.dispatchEvent(new Event(\"change\")), { signal });\n }\n }\n\nTyped interactions: `InteractionCompleteEvent` (`novel:complete`, bubbling)\ncarries an output typed by the declaration's output schema, and the\nInteraction part answers the current frame with it.\n\nMigration:\n\n1. Replace each `<NovelPlayer.Interaction name component>` with one part over\n your `interactions()` map and a children function. The function must\n return something for every interaction, so a switch that misses one fails\n to compile.\n\n Before:\n <NovelPlayer.Interaction name=\"fishing\" component={Fishing} />\n function Fishing(handle: Handle<Interaction.ComponentProps<\"fishing\">>) {\n ... handle.props.respond(handle.props.frame.complete({ caught }));\n }\n\n After:\n <NovelPlayer.Interaction interactions={INTERACTIONS}>\n {(frame) => {\n switch (frame.interaction) {\n case \"fishing\": return <Fishing input={frame.input} />;\n }\n }}\n </NovelPlayer.Interaction>\n function Fishing(handle: Handle<{ input: { difficulty: number } }>) {\n ... event.currentTarget.dispatchEvent(\n new InteractionCompleteEvent(INTERACTIONS.fishing, { caught }),\n );\n }\n\n `Interaction.ComponentProps`, the `respond` prop and the `InteractionName`\n type are gone; listen with `mix={on(\"novel:complete\", handler)}` where a\n component also needs the completion.\n\n2. Read the line's reveal as `player.reveal` instead of `player.typewriter`.\n\n Before: let reveal = handle.context.get(NovelPlayer).typewriter;\n After: let reveal = handle.context.get(NovelPlayer).reveal;\n\n3. The context's behaviors are typed by their interfaces (`AutoBehavior`\n and so on) instead of the classes. Code that reads a member outside the\n interface, such as `player.auto.set(true)` or `player.skip.toggled`,\n keeps a reference to its own instance passed through `behaviors`:"}
|
|
2154
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Extend scenes with story extensions","body":"A game can now add its own directives and its own saved state to every\nscene. Declare an extension with `extension(name, options)`: a slice of\nstate with a Standard Schema and an initial value, methods scenes call as\n`ctx.<name>.<method>(…)` that answer ordinary directives, and optional\nlisteners for the novel's events. Pass it to `createNovel({ extensions })`\nand declare the list in `NovelTypes` to type `ctx.<name>` and\n`state.<name>`:\n\n import { createNovel, extension } from \"@sdxc/novel\";\n import type { CharacterDeclaration } from \"@sdxc/novel\";\n import * as s from \"remix/data-schema\";\n\n export let affection = extension(\"affection\", {\n state: s.record(s.string(), s.number()),\n initial: {},\n directives: (ctx) => ({\n increase: (character: CharacterDeclaration, amount: number) =>\n ctx.update((value) => ({\n ...value,\n [character.id]: (value[character.id] ?? 0) + amount,\n })),\n }),\n on: { choice(event) { /* side effects only */ } },\n });\n\n export let extensions = [affection] as const;\n\n declare module \"@sdxc/novel\" {\n interface NovelTypes { extensions: typeof extensions }\n }\n\n export let novel = createNovel({ scenes, state: STATE, initial, extensions });\n\n // In a scene:\n ctx.affection.increase(cast.mika, 10),\n ctx.when((state) => (state.affection.mika ?? 0) >= 30, [ctx.goto(scenes.confession)]),\n\nThe slice lives in the play's state under the extension's name, so it is\nsaved, loaded, rolled back, explored and read by `createTestPlay` like the\nrest of the state, and `ctx.set(\"affection.mika\", 0)` reaches it too. It is\nvalidated by its own schema whenever a play starts or loads; a save made\nbefore the extension existed loads with its `initial` value, with no\nmigration. A method's directives are written with the scene directives plus\n`ctx.update(valueOrUpdater)` for its own slice, and their callbacks read the\napp's declared state and that slice. A scene that calls an extension the\nnovel lacks fails to load with a `load-failed` error. `createNovel` throws\nwhen two extensions share a name, or a name holds a dot or matches a\nbuilt-in directive.\n\n`NovelOptions.state` is now typed by the new `DeclaredState` (the state\ndeclared in `NovelTypes`) while `NovelState` adds each extension's slice;\napps without extensions see no change and need no action."}
|
|
2155
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"docs","breaking":false,"title":"Document story extensions and replaceable player behaviors","body":"Docs-only change with no consumer effect: the README now covers\n`extension()` and `createNovel({ extensions })`, the player's `behaviors`\nprop and behavior interfaces, the context's `frame`, `phase` and `ending`\nevents and `player.state`, and interactions drawn through one\n`NovelPlayer.Interaction` that completes with `InteractionCompleteEvent`;\nthe design record notes the decisions behind them."}
|
|
2156
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":true,"title":"Report library picks as cancelable DOM events","body":"The library screens no longer take callback props. A pick leaves as a typed, bubbling,\ncancelable DOM event, heard with `on()` in the component's `mix` or on any ancestor:\n\n- `novel:replay` (`NovelReplayEvent`, fields `scene` and `scope`) from `ChapterSelect`\n (`scope: \"chapter\"`) and `SceneReplay` (`scope: \"scene\"`)\n- `novel:replay-voice` (`NovelReplayVoiceEvent`, field `line`) from `Memories`\n\nBoth classes are exported from `@sdxc/novel/ui`. Inside a player the screens keep their\ndefaults: the replay starts, or the voice plays through the player's mixer, unless a listener\ncalls `event.preventDefault()`. Outside a player there is no default and the listener acts.\n\nMigration:\n\n1. `ChapterSelect` / `SceneReplay`: replace `onSelect` with a `novel:replay` listener, and take\n the replay scope from the event.\n\n Before:\n <ChapterSelect novel={novel} persistent={stored}\n onSelect={(scene) => play({ scene, replay: \"chapter\" })} />\n After:\n <ChapterSelect novel={novel} persistent={stored}\n mix={on(\"novel:replay\", (event) => play({ scene: event.scene, replay: event.scope }))} />\n\n Inside a player, a listener that replaced the default must now call `event.preventDefault()`\n to stop the built-in replay.\n\n2. `Memories`: replace `onReplayVoice` with `voices` plus a `novel:replay-voice` listener.\n Outside a player, voices are offered only with `voices`.\n\n Before:\n <Memories novel={novel} persistent={stored} onReplayVoice={(line) => play(line.voice)} />\n After:\n <Memories novel={novel} persistent={stored} voices\n mix={on(\"novel:replay-voice\", (event) => play(event.line.voice))} />\n\n3. `RangeSetting`: `onInput` is gone; `mix` lands on the slider's root, where the native `input`\n event of its `<input type=\"range\">` bubbles."}
|
|
2157
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"fix","breaking":false,"title":"Play remembered voices through Memories' own mixer outside a player","body":"Before: `Memories` offered a line's voice outside a player only when given the `voices` prop\n(added with the `novel:replay-voice` event), and then played nothing itself, leaving the voice\nto the listener.\n\nAfter: the `voices` prop is removed and a voiced line always offers its voice. A click\ndispatches the cancelable `novel:replay-voice` event, then plays the voice through the player's\nmixer inside a player, or outside one through an `AudioMixer` the screen makes on first use and\ndisposes when it unmounts, unless a listener called `event.preventDefault()`.\n\nConsumers that passed `voices` drop it:"}
|
|
2158
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":true,"title":"Name the interaction completion event novel:interaction:complete","body":"The event an interaction's component dispatches when it is done is now named\n`novel:interaction:complete`, so its name says which part of the player it belongs to. The\n`InteractionCompleteEvent` class keeps its name and payload (`interaction`, `output`), and\n`NovelPlayer.Interaction` answers the frame with it exactly as before.\n\nMigration: rename the event wherever you listen for it. Dispatching through\n`new InteractionCompleteEvent(...)` needs no change.\n\nBefore:\n\n <NovelPlayer.Default novel={novel} mix={on(\"novel:complete\", (event) => log(event.output))} />\n\nAfter:"}
|
|
2159
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Accept a Blob as an asset source","body":"Every asset kind in `@sdxc/novel` now takes a Blob wherever it took a URL:\nbackgrounds, images, character sprites and layers, music, ambience, sounds and\nvoices, and the files inside a per-locale map. A string is still a URL to load;\na Blob is a file the page already holds, such as audio the game renders in the\nbrowser or an image drawn with JavaScript, and it plays or draws without a fetch.\n\n import { encodeWav, renderSong } from \"@sdxc/synth\";\n\n export default assets({\n backgrounds: { cafe: \"/bg/cafe.webp\", sky: await canvas.convertToBlob() },\n music: { theme: new Blob([encodeWav(renderSong({ seed: \"cafe\" }))], { type: \"audio/wav\" }) },\n sounds: { chime: { src: { en: chimeEn, ja: \"/sfx/chime-ja.ogg\" }, caption: \"captions.chime\" } },\n });\n\nHow the player handles a Blob:\n\n- Images and streamed music or ambience use one object URL per Blob, made on\n first use and kept for the life of the page, so every replay reuses it.\n `resolveSource()` from `@sdxc/novel/ui` answers that URL for a Blob source.\n- Sounds and voices decode straight from the Blob's bytes.\n `AudioMixer.playVoice()` and `preload()` accept a Blob as well as a URL.\n- A server render of the stage draws a Blob image without `src`, and hydration\n sets its object URL.\n- Prefetching, `offlineAssets()` and `novel.links()` list only URLs, since a\n Blob has nothing to fetch.\n- Frames carry the declared Blob itself from stop to stop, and saves keep asset\n ids, which a loaded save re-resolves to the current declaration.\n\nExisting URL sources behave as before; no change is needed to keep them.","correctedIn":"2026.11.22"}
|
|
2160
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Pick a scene at runtime with goto.oneOf and notify from scenes","body":"Scenes can now pick one of several scenes at play time. `ctx.goto.oneOf(scenes, weight?)`\ncontinues in one candidate and `ctx.call.oneOf(scenes, weight?)` plays one and returns;\n`ctx.goto(scene)` and `ctx.call(scene)` work as before.\n\n ctx.goto.oneOf(\n [scenes.beachMika, scenes.libraryYuki, scenes.rainyDay],\n (scene, state, { random }) =>\n scene === scenes.libraryYuki ? state.affection.yuki >= 10 : true,\n );\n ctx.narrate(\"week.quiet\"); // runs when no candidate qualifies\n\n- The weight callback answers a number or a boolean: `true` counts as 1, while `false`, `0`\n and any number that is not positive and finite leave the scene out. Without a callback\n every candidate weighs 1.\n- The scene is drawn in proportion to its weight from the play's seeded stream, so a save,\n a reload or a rollback picks the same scene.\n- When no candidate qualifies, the play continues with the next directive, so a scene can\n fall through to a default. No `error` event is emitted.\n- `check()` reports every candidate without a module and counts every candidate as reachable.\n `novel.links()`/`novel.reachable()` prefetch every candidate, and the dev tools graph draws\n one edge per candidate.\n- `explore()` branches over every candidate a pick can take at that point. A pick with more\n than one candidate adds a `{ type: \"pick\", scene }` step to the path, after the reply whose\n run reached it, and `createTestPlay().follow(steps)` replays those steps.\n- A `call.oneOf` gets a counted anchor like `call`, so a save made inside the called scene\n returns after the pick.\n- Extension methods can return the new directives: `ctx.goto.oneOf(...)` works in an\n extension's `directives` builder.\n\nScenes can also notify without stopping the play. `ctx.notify(key, values?)` takes a message\nkey and its values, typed like `narrate`. When the play passes it, the novel emits `notify`\nwith `{ scene, key, values }`. Use it for an achievement toast:\n\n novel.on(\"notify\", ({ key, values }) => toast(t(key, values)));\n ctx.notify(\"achievements.firstDate\");\n\n- It is a side effect only and leaves the state unchanged.\n- A rollback or a load that lands past it does not emit it again.\n- It is emitted during skip, because the engine passes it like any other directive.\n- It is never emitted in a replay.\n- Extensions can return it beside their own state changes.\n- `check()` reports a `missing-message` error, scoped to a scene and a locale, for a\n notification key that one of the novel's catalogs lacks. `explore()` lists it under\n `missingMessages`, and the dev tools log the event and list its missing keys.\n\nType changes that can break consumers:\n- `Directive` gains `PickDirective` (`type: \"pick\"`) and `NotifyDirective` (`type: \"notify\"`).\n- `ExploreStep` gains `{ type: \"pick\"; scene: string }`.\n- `NovelEvents` gains `notify`.\n- `CheckProblem` gains `missing-message`.\n- An exhaustive `switch` over any of these needs the new cases.\n- `SceneDirectives[\"goto\"]` and `[\"call\"]` are now the callable `GotoBuilder` and\n `CallBuilder` types.\n- An extension can no longer be named `notify`, since that is now a built-in directive."}
|
|
2161
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Add autosave, notifications and read-line behaviors to the player","body":"`NovelPlayer` gains three behavior slots, each an interface with a built-in default that the\n`behaviors` prop replaces, and a new `NovelPlayer.Notifications` part, included in\n`NovelPlayer.Default`. Existing code keeps working unchanged;\nthe save screens now list one more slot.\n\nAutosave (`autosave`, `AutosaveBehavior`, default `AutosaveModel`): the play saves into\n`AUTO_SLOT` (\"auto\") when a chapter starts, a new game's first chapter included, and every\n20 lines. Saves go through the player's own save path, so they reach your `novel:save`\nlistener and the save screens like any other; a replay never autosaves. The save and load\nscreens list the autosave slot first, named by the new `autosave` label; it is load-only,\ndisabled on the save screen.\n\n <NovelPlayer.Default novel={novel} behaviors={{ autosave: new AutosaveModel({ every: 10 }) }}\n mix={on(\"novel:save\", (event) => store(event.slot, event.state))} />\n\nNotifications (`notifications`, `NotificationsBehavior`, default `NotificationsModel`): a queue\nof toasts fed by the novel's `unlock` (\"CG unlocked\", \"Track unlocked\"), `ending`\n(\"Ending 3/5\") and `notify` events (a scene's `ctx.notify(key, values)`, translated like a\nline), outside replays. `NovelPlayer.Notifications` shows them in a `popover=\"manual\"` element,\ndismisses each after `duration` (4000ms by default) and drops the entrance animation under\nreduced motion. Its look is the new `--novel-notification-*` theme variables, and the words are\nthe new `imageUnlocked`, `musicUnlocked`, `endingReached` and `notifications` labels. A game\nshows its own news, such as an achievement, from a scene or from code:\n\n ctx.notify(\"achievements.firstCatch\", { fish: 3 })\n player.notifications.push({ key: \"achievements.firstCatch\", values: { fish: 3 }, kind: \"achievement\" })\n player.notifications.push({ text: \"Achievement unlocked\", kind: \"achievement\" })\n\nRead lines (`read`, `ReadBehavior`, default `ReadModel`): whether the current line and each\nbacklog line had been read before, from the same persistent record skip's read-only mode\nfollows. The textbox, its line and backlog entries carry `data-novel-read` on read lines, and\n`--novel-read-color` (inherit by default) tints them:\n\n <NovelPlayer.Default novel={novel} mix={css({ \"--novel-read-color\": \"#b8b8d0\" })} />","correctedIn":"2026.11.22"}
|
|
2162
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Keep lasting data in story extensions","body":"A story extension can now keep data across playthroughs, such as achievements. Declare it with\n`persistent: { state, initial }` and write it with `ctx.remember(value | updater)`. Callbacks\nread it as `tools.persistent.<name>`, typed through `NovelTypes`. The per-play `state` and\n`initial` are now optional, so an extension can keep lasting data only:\n\n let achievements = extension(\"achievements\", {\n persistent: { state: s.array(s.string()), initial: [] },\n directives: (ctx) => ({\n unlock: (id: string, key: LineKey) => [\n ctx.remember((all) => (all.includes(id) ? all : [...all, id])),\n ctx.notify(key),\n ],\n ifUnlocked: (id: string, directives: Directive[]) =>\n ctx.when((_state, tools) => tools.persistent.achievements.includes(id), directives),\n }),\n });\n\n- The lasting slice sits under the extension's name in the persistent record that `persist`\n emits and that `novel.start({ persistent })`, `createTestPlay` and `explore` take.\n- A stored record without the slice, or one whose slice its schema refuses, reads as the\n extension's `initial` value. The rest of the record is kept.\n- `remember` validates the new value against the schema. A value the schema refuses is\n reported on `error` with code `invalid-state` and subject the extension's name, and the slice\n stays as it was.\n- Later directives of the same run read the new value. The play keeps it, and emits `persist`,\n once the run reaches its stop.\n- A rollback keeps the slice, like the rest of the persistent data. Passing a `remember` again\n after a rollback applies it again, so write updaters that give the same result when repeated.\n- A replay never changes the slice.\n- An extension without per-play state adds no slice to the state or to saves.\n- An extension that keeps lasting data cannot be named after a field of the persistent record\n (`seen`, `chosen`, `endings`, `chapters`, `unlocked`).\n\nType changes that can break consumers:\n- `Directive` gains `RememberDirective` (`type: \"remember\"`).\n- `PlayTools`, `StateCallback`, `ValuesInput`, `LineValues`, `SceneDirectives`, `ChoiceOption`\n and `ChoiceOptions` take a new last type parameter for the tools, with the current behavior\n as its default.\n- `Play.persistent`, `TestPlay.persistent` and the `persist` payload are typed\n `NovelPersistent`, which is `Persistent` plus the declared lasting slices.\n- `Extension` takes a fourth type parameter.\n- `Extension.state` may be `undefined`.\n- `ExtensionContext` takes a third type parameter and gains `remember`.\n- Code that reads `Extension[\"state\"]` as always present must handle `undefined`."}
|
|
2163
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"fix","breaking":false,"title":"Read extensions' lasting data before a play starts","body":"Before: `NovelPlayer`, and the library screens built on `readLibrary`, read the\npersistent data passed in `start.persistent` without the novel's extensions, so until\nthe play started, a part reading `player.persistent` saw no lasting slice (for example\nno `achievements`), and a stored slice was dropped from the screens' view.\n\nAfter: they read stored persistent data the way a play does, with every extension's\nlasting slice validated by its schema and filled with its `initial` value when absent.\nNothing to change in consumer code."}
|
|
2164
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"docs","breaking":false,"title":"Document Blob sources, runtime picks, lasting data and player conveniences","body":"The README now covers what recent releases added and corrects the interaction event name.\nNo code changes; nothing to change in consumer code.\n\n- Assets: a file may be a Blob beside a URL, played or drawn without a fetch, for example\n audio rendered with `@sdxc/synth`.\n- Scenes: `ctx.goto.oneOf` and `ctx.call.oneOf` with weights and fall-through, and\n `ctx.notify(key, values)` with the `notify` event.\n- Extensions: lasting data through `persistent: { state, initial }`, `ctx.remember` and\n `tools.persistent.<name>`, and extensions that keep lasting data only.\n- Player: the `autosave`, `notifications` and `read` behaviors (`AutosaveModel`, `AUTO_SLOT`,\n `NotificationsModel`, `ReadModel`), the `NovelPlayer.Notifications` part, the new labels,\n `data-novel-read`, and the `--novel-notification-*` and `--novel-read-color` variables.\n- Testing: `pick` steps in `explore()` paths and `missing-message` for notification keys.\n- The interaction completion event is listed under its current name,\n `novel:interaction:complete`.\n- New patterns: achievements kept as lasting extension data, and a day loop with\n `goto.oneOf`."}
|
|
2165
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":true,"title":"Declare save migrations as an ordered list","body":"`createNovel({ migrate })` now takes an array of steps run in order, and the\n`version` option is gone: a novel stamps its saves with `migrate.length + 1`.\nThe step at index `n` upgrades a version `n + 1` save. The version and the\nsteps can no longer disagree, so raising the version without a step, or\nleaving a gap between steps, is no longer possible.\n\nMigration steps:\n\n1. Remove the `version` option.\n2. Turn the `migrate` record into an array, in the order of its keys.\n\nBefore:\n\n createNovel({\n scenes, state, initial,\n version: 2,\n migrate: { 1: (save) => success({ ...save, state: { ...save.state, warmth: 0 } }) },\n });\n\nAfter:\n\n createNovel({\n scenes, state, initial,\n migrate: [(save) => success({ ...save, state: { ...save.state, warmth: 0 } })],\n });\n\nSaves already stamped keep working: a save without a version still reads as\nversion 1, and a save newer than the novel still fails with `migration-failed`."}
|
|
2166
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Play again from the ending screen","body":"The player's ending screen now has a Play again button, and four player bugs\nare fixed.\n\nNew:\n\n- `NovelPlayer.Default` (and any player rendering `NovelPlayer.Stage`) shows a\n Play again button under the ending's name. It calls the new context action\n `restart()`, which starts a new play from the novel's first scene and keeps\n persistent data, so read lines and reached endings stay recorded. Its label is\n `labels.playAgain`, and `--novel-ending-button-background`,\n `--novel-ending-button-color` and `--novel-ending-button-border` style it.\n\n let player = handle.context.get(NovelPlayer);\n <button mix={on(\"click\", () => void player.restart())}>Start over</button>\n\n- `play.stage` answers the stage as the play last left it, and the context's\n `stage` is what the stage part draws. The context also exposes `anchor`, the\n CSS anchor name on the player's root.\n\nFixed:\n\n- Staging between the last line and `ending` was never drawn: a character who\n exited before the ending stayed on stage under the ending's name. The ending\n now draws the stage the story finished on, exits fading out as usual.\n- Toasts were placed against the browser window, so an embedded player showed\n them over the page's header. They are now anchored to the player, and\n `--novel-notification-inset` measures from the player's edges (browsers\n without CSS anchor positioning keep the window corner).\n- Server-rendering the player on Cloudflare Workers threw \"Incorrect type for\n the 'signal' field on 'AddEventListenerOptions'\", because a server render's\n `handle.signal` is a stand-in that workerd refuses. Parts now register their\n listeners so the server render succeeds.\n- Under component hot reloading in development, the player threw\n \"context is not defined\" on its first step and never showed a line. It now\n starts normally.\n\nNo consumer action is needed; a custom ending screen can now call `restart()`."}
|
|
2167
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"fix","breaking":false,"title":"Publish quickMenuButton with a type declarations can name","body":"The package's declaration build failed with TS2883 because `quickMenuButton()`\nreturned an inferred type that named a type `remix/component` does not export.\nIt now returns `CSSMixinDescriptor`, the same value as before, so the package\nbuilds for publishing. Consumers have nothing to change."}
|
|
2168
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"fix","breaking":false,"title":"Never write prototype keys while copying play state","body":"Copying play state for each stop walks the saved state, which comes from\nstorage the app does not control, and wrote back every key it found. The copy\nnow leaves `__proto__`, `constructor` and `prototype` keys as `structuredClone`\ncopied them, so a crafted save can never reach a prototype. Before, such a save\nstill could not pollute anything, because the clone holds those keys as plain\nown properties; the guard makes that explicit and closes a code scanning alert.\nConsumers have nothing to change."}
|
|
2169
|
+
{"release":"2026.11.22","package":"@sdxc/novel","type":"fix","breaking":false,"title":"Guard prototype keys with checks code scanners recognize","body":"Copying play state already skipped the `__proto__`, `constructor` and\n`prototype` keys of a saved state, but through a lookup that CodeQL's\nprototype-pollution check does not treat as a guard, so the alert stayed\nopen. The copy now compares each key against those names directly.\n\nBehavior is unchanged: keys under those names keep the value\n`structuredClone` copied, and no prototype is ever written. Consumers do\nnot need to act."}
|
|
2170
|
+
{"release":"2026.11.22","package":"@sdxc/qr","type":"test","breaking":false,"title":"Load the patched jsQR decoder in memory so parallel test files share no file","body":"The QR round-trip and command-line tests read symbols back through a patched jsQR, which\nwas written to a shared file on disk and then required. Two test files loading it at once\ncould read the file while the other was rewriting it and get an empty module back. The\npatch is now evaluated in memory. No effect on consumers of @sdxc/qr."}
|
|
2171
|
+
{"release":"2026.11.22","package":"@sdxc/synth","type":"feat","breaking":false,"title":"Add @sdxc/synth, a deterministic synthesizer for scores and songs","body":"@sdxc/synth renders music to PCM and WAV, giving the same samples on every\nrun in a browser, a Worker or Node.\n\n- Write a Score by hand: tracks play notes (pitch, velocity, length in\n beats) on instruments. Each instrument mixes sine, triangle, saw, square\n and noise oscillators, with an ADSR envelope, a resonant filter and a\n pitch sweep. PRESETS covers pads, keys, basses, plucks, leads, bells,\n organ and drums.\n- Shape it with pattern, repeat, concat, shift, transpose and chordNotes,\n and with the pitch helpers noteNumber, frequency, chord, scaleNote and\n scaleChord.\n- Add effects per track or over the mix: delay timed in beats, reverb,\n drive and filters.\n- Render with renderScore and wrap the result with encodeWav.\n- generateSong turns a seed, style, key, mode and duration into an ordinary\n Score through the same API, and renderSong renders it in one step.\n\n import { PRESETS, encodeWav, renderScore } from \"@sdxc/synth\";"}
|
|
2172
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add DayStrip to @sdxc/ui/app for a scrolling strip of days","body":"DayStrip draws a row of days in a scroller of its own, each showing its short weekday, its number and an optional note under it, such as event dots or a bill's amount. A day with an `href` is a link. The current day fills with the brand colour and today wears a ring. Once hydrated, the strip scrolls the current day into view.\n\n import { DayStrip } from \"@sdxc/ui/app/day-strip\";\n\n <DayStrip\n \tlabel=\"November 2026\"\n \ttoday=\"2026-11-18\"\n \tdays={[\n \t\t{ date: \"2026-11-18\", href: \"?day=2026-11-18\", note: <Dot />, label: \"2 events\" },\n \t\t{ date: \"2026-11-19\", href: \"?day=2026-11-19\", current: true },\n \t]}\n />\n\nSet `--ui-day-strip-cell` to widen the cells (default `3rem`) for longer notes. The strip scrolls inside its own box, so it never widens a phone's page."}
|
|
2173
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add SectionBar, a sticky row of chips that follows a long page's sections","body":"@sdxc/ui/app gains SectionBar: a sticky row of chip links, one per section of a long page, such as a menu's categories. The links work as plain anchors. Once its island loads, the chip of the section under the bar is marked current (aria-current) and slides into view inside the row. At the page's end, the last section is marked.\n\n import { SectionBar } from \"@sdxc/ui/app\";\n\n <SectionBar\n id=\"menu-bar\"\n label=\"Menu categories\"\n top=\"4rem\"\n items={[{ id: \"tacos\", label: \"Tacos\", count: 3 }, { id: \"sides\", label: \"Sides\" }]}\n />\n\n`top` is where the bar sticks. Each section should set a scroll-margin-top of at least `top` plus SECTION_BAR_BLOCK_SIZE, so a jump lands below the bar. An app that hydrates package islands maps the specifier `@sdxc/ui/app/section-bar` in its browser entry."}
|
|
2174
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add ReelFeed, StoryViewer and StoryRing to @sdxc/ui/video","body":"Three new components in `@sdxc/ui/video` for apps built around short\nvideos and stories.\n\n`ReelFeed` is a full-height vertical feed with one video per screen.\nNative scroll snap moves it under the thumb. Its island (`ReelFeedSync`,\nmapped to `@sdxc/ui/video/reel-feed`):\n- preloads the next reel whole and the one after it as metadata only\n- plays the reel on screen and pauses the others\n- steps one reel per arrow key, Page key, `j`/`k` or wheel flick\n- keeps a long touch fling to one reel\n- with `followAddress`, puts each reel's address in the bar\n- prefetches the next reel's page, through `prefetchTarget` into a\n named frame and always as a document hint\n\n <ReelFeed label=\"Reels\" followAddress prefetchTarget=\"main\">\n {reels.map((reel, index) => (\n <ReelFeed.Item href={reel.href} label={reel.label}\n offset={index - current} loopAt={30}\n sources={[{ src: reel.webm, type: \"video/webm\" }]}\n backdrop={<Art />} labels={{ pause: \"Pause\" }}>\n <Caption reel={reel} />\n </ReelFeed.Item>\n ))}\n </ReelFeed>\n\n`reelPreload(offset)` returns the `preload` value a reel gets at a given\ndistance from the current one.\n\n`StoryViewer` is a full-screen story player. Its `.Group`s of timed\n`.Segment`s sit side by side on a horizontal snap track under progress\nbars. The tap zones are links, so it works without JavaScript.\n`StoryViewerSync` (`@sdxc/ui/video/story-viewer`):\n- advances when a bar fills\n- pauses on a hold, the pause button, Space or `k`\n- steps with the arrow keys\n- closes on a downward swipe or Escape by following the close link\n- keeps the address on the current segment\n\n`StoryRing` wraps a picture in a bright ring for an unseen story and a\nquiet one once seen (`seen`). It takes its size in rem.\n\nA browser entry that maps package islands by specifier should add\n`@sdxc/ui/video/reel-feed` and `@sdxc/ui/video/story-viewer`."}
|
|
2175
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add MapCanvas, a drawn map with price pins, routes and a moving marker","body":"`MapCanvas` is a map you draw yourself, with no tiles and no map library.\nCaller art, routes, markers and pins all place in one SVG viewBox, which the\nstage keeps by aspect ratio. A viewBox with an origin (`\"120 60 200 150\"`)\ncrops into one area of the same art, and pins outside it are not rendered.\n\n- `MapCanvas.Pin` is a price or icon pill whose tail tips onto its point. It\n renders as a link with `href`, otherwise as a button that passes through\n `popovertarget` or `commandfor`. `current` raises and inverts it.\n- `MapCanvas.Route` draws the travelled share (`done`, 0 to 1) solid and the\n rest dashed.\n- `MapCanvas.Marker` rides a path through CSS `offset-path`. Its position is\n `--ui-map-progress`, so a live island can move it with\n `el.style.setProperty`. It glides, and moves at once under reduced motion.\n- A `mapKey` on a pin pairs it with list rows. With `mapLink(key)` on a row,\n or one `<MapCanvasSync />` island for server-rendered rows carrying\n `data-map-key`, hovering or focusing a row lights its pin and the reverse."}
|
|
2176
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add Amount, Ledger, PaymentCard and StepIndicator for money screens","body":"Four components for apps that show money.\n\n`Amount` (`@sdxc/ui/app`) formats an amount given as integer minor units and an ISO 4217\ncode. `Intl` supplies the currency's own decimals, so yen has none and dinars have three.\nIt renders a `<data>` element whose `value` is the decimal figure, with tabular figures\nand a true minus. `sign=\"ledger\"` marks money in with a plus and the success tone and\nshows money out as a plain figure. `smallMinor` sets the decimals smaller for a headline\nbalance. `formatAmount()` and `currencyExponent()` give the same text for a title, a toast\nor an axis.\n\n <Amount value={-1299} currency=\"EUR\" locale=\"en-IE\" />\n <Amount value={4500} currency=\"GBP\" sign=\"ledger\" />\n formatAmount(128000, \"JPY\") // \"¥128,000\"\n\n`Ledger` (`@sdxc/ui/app`) groups money movements by day. Each `.Day` has a heading with its\ntotal, and the heading sticks while its rows scroll. Each `.Entry` is a row with a mark, a\nname, a detail, an amount and a line under it. With `href` the whole row is one link, and\n`current` marks the record that is open beside the list.\n\n <Ledger>\n <Ledger.Day title=\"Today\" total={<Amount value={-2340} currency=\"EUR\" />}>\n <Ledger.Entry title=\"Mercado Rua\" meta=\"Groceries\" href=\"?tx=4\"\n amount={<Amount value={-2340} currency=\"EUR\" sign=\"ledger\" />} />\n </Ledger.Day>\n </Ledger>\n\n`PaymentCard` (`@sdxc/ui/app`) draws a card face at the bank-card ratio. It shows the\nissuer's mark, a chip or a \"Virtual\" tag, the masked number with only its last four\ndigits, the holder, the expiry and the network word. Its type scales with its width. With\n`frozen` the face frosts over and the card's accessible name says it is frozen.\n\n <PaymentCard label=\"Everyday card ending 4821\" brand=\"Tuppence\" last4=\"4821\"\n holder=\"Noor Halvorsen\" expires=\"09/29\" network=\"debit\" frozen />\n\n`StepIndicator` (`@sdxc/ui`) shows where the reader is in a flow spread over several pages.\nIt is an ordered list in a named `nav`: done steps are checked and may link back, and the\ncurrent step carries `aria-current=\"step\"`. Under 24rem only the current step keeps its\nname."}
|
|
2177
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add RangeMonths, Lightbox, RatingBreakdown and PriceBreakdown","body":"Four components for booking and review screens.\n\n`RangeMonths` is a run of month grids for picking a stay's dates, or a single\ndate with `single`. Every day you can pick is a link you build, so picking\nworks without script: the first click sets the start, a later click sets the\nend, and prev/next links move the months. Booked days (`isUnavailable`) and\ndays outside `min`/`max` are not links, and a range never crosses a booked\nnight. `dayNote` puts a price or a dot under a day, and `today` is marked.\nPass `locale`, so the server and the browser print the same names.\n\n <RangeMonths month=\"2026-12\" months={2} start={checkin} end={checkout}\n today=\"2026-11-18\" min=\"2026-11-18\" locale=\"en-US\" label=\"Dates\"\n labels={{ previous: \"Previous month\", next: \"Next month\" }}\n isUnavailable={(day) => booked.has(day)}\n href={(next) => `?${new URLSearchParams(next)}`} />\n\n`Lightbox` is a full-screen photo viewer on `<dialog>`. `Lightbox.Trigger`\nopens it at a photo through `command=\"show-modal\"`. Slides scroll-snap, the\nstep links work without script, and the arrow keys and the \"n / N\" counter\nare added once the `@sdxc/ui/lightbox` island loads. `initial` renders it\nalready open at a photo, for an address such as `?photo=3`.\n\n <Lightbox.Trigger lightbox=\"photos\" index={2}><img src={src} alt=\"\" /></Lightbox.Trigger>\n <Lightbox id=\"photos\" label=\"Photos of Gullwing Cottage\" photos={photos} />\n\n`RatingBreakdown` shows a review score with groups of meter bars, per star or\nper category. `PriceBreakdown` is a receipt list of lines (`detail`, a\n`tone=\"discount\"` line, a named `<output>` an island can update) and a total,\nwith an optional `note`."}
|
|
2178
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add Autocomplete, a text field over a styled suggestion list","body":"`Autocomplete` is a \"Where to?\" box. Its suggestions are rows with an icon,\na label and a description. They filter as you type, with the match marked.\nArrow keys move through them, Enter or a click picks one without submitting\nthe form, and Escape closes the list. A second Escape clears the field.\n\nA pick fills the field and fires `change` and `autocomplete-select` with\n`{ value, label }`. With `valueName`, a hidden field also carries the picked\noption's value until the text is edited. Without script, the field uses a\nnative `<datalist>` of the same options. Load `@sdxc/ui/autocomplete` in the\nbrowser entry for its `AutocompleteSync` island. `variant=\"bare\"` drops the\nborder and focus ring, for a field inside a pill search bar."}
|
|
2179
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Let ReelFeed and StoryViewer step from links and sit inside a page","body":"`ReelFeed` takes a `controls` slot. An element in it marked\n`data-reel-step=\"1\"` or `\"-1\"`, such as a link to the next reel's page,\nsteps the feed in place once script runs. Without script it still follows\nits link.\n\n <ReelFeed label=\"Reels\" controls={\n <a href=\"/reels/next-id\" data-reel-step=\"1\" aria-label=\"Next reel\">↓</a>\n }>…</ReelFeed>\n\nBefore, both islands took the arrow keys from the whole page. Now a feed\ntakes them only from inside itself, or while it fills most of the window.\nA story viewer takes them only from inside itself, or while it covers the\nwindow.\n\n`StoryViewer` changes:\n- A page can show it inside a box by setting\n `--ui-story-viewer-position: absolute` and `--ui-story-viewer-height`.\n It focuses itself on load only when it covers the window.\n- On a narrow screen the card now fills the screen edge to edge.\n Before, it kept 9:16 with bars above and below.\n- Typing in a field inside it, such as a reply in `footer`, holds the\n story still until the field loses focus.\n- Pressing inside the footer no longer counts as a hold.\n\n`StoryRing` changes:\n- `size` also takes a CSS length, so a page can size the ring by\n breakpoint (`size=\"var(--ring)\"`).\n- Fixed: a seen ring could paint in the unseen colour when rings of other\n sizes were on the page. It now always paints quietly.\n\nNo consumer action is needed."}
|
|
2180
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":true,"title":"Move SectionBar from @sdxc/ui/app to the root @sdxc/ui","body":"SectionBar is a general component for any long page, not an app-shell one, so it now ships from the package root. Its island specifier changes with it.\n\nMigration:\n\n- Import it from the root or its own module:\n\n // before\n import { SectionBar, SECTION_BAR_BLOCK_SIZE } from \"@sdxc/ui/app\";\n import { SectionBar } from \"@sdxc/ui/app/section-bar\";\n // after\n import { SectionBar, SECTION_BAR_BLOCK_SIZE } from \"@sdxc/ui\";\n import { SectionBar } from \"@sdxc/ui/section-bar\";\n\n- In a browser entry that maps package islands, rename the key:"}
|
|
2181
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add @sdxc/ui/commerce for menus, carts and live order tracking","body":"A new namespace, @sdxc/ui/commerce, holds the pieces of ordering something to be delivered. Every piece renders on the server and works without script; its islands only add live pricing and live tracking.\n\n- MenuItemCard: an item on a menu. The whole card is a button that opens the item's dialog through Invoker Commands.\n- ItemOptionsDialog: a native dialog, a bottom sheet on a phone, holding the item, its option groups, a quantity and an add button that carries the running price.\n- OptionGroup: priced choices, radios for a required pick and checkboxes up to max for extras. Its OptionsLive island reprices the form live and stops a group at its limit.\n- CartLine and QuantityStepper: a cart's line, and a − count + control whose buttons are form posts. At one, − becomes a bin that posts zero.\n- OrderSteps and OrderLive: an order's status timeline, and an island that reads a text/plain stream of `<step> <progress 0–1> <minutes>` lines. It moves the steps, [data-order-headline], [data-order-eta] and any [data-map-marker] on the page.\n\n import { ItemOptionsDialog, MenuItemCard, OptionGroup } from \"@sdxc/ui/commerce\";\n\n <MenuItemCard dialog=\"item-tacos\" name=\"Al pastor trio\" price=\"$11.50\" />\n <ItemOptionsDialog id=\"item-tacos\" action=\"/cart/add\" title=\"Al pastor trio\"\n base={1150} currency=\"USD\" total=\"$11.50\" submitLabel=\"Add to cart\" closeLabel=\"Close\">\n <OptionGroup name=\"tortilla\" title=\"Tortilla\" required choices={choices} />\n </ItemOptionsDialog>\n\nAn app that hydrates package islands maps @sdxc/ui/commerce/option-group and @sdxc/ui/commerce/order-tracker in its browser entry."}
|
|
2182
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add Carousel dots, count and CarouselSync, and MediaGrid","body":"Carousel gains three pieces:\n\n- `Carousel.Dots`: one `--ui-goto` dot per slide, with the slide in view\n marked `aria-current`.\n- `Carousel.Count`: the position as `n / N`.\n- `CarouselSync`: an island placed anywhere inside the `Carousel` root.\n It runs the arrows, dots and count without the page writing an island\n around the viewport, and it marks the root `data-carousel-ready` while\n it runs.\n\n <Carousel aria-label=\"Photos\">\n <Carousel.Viewport id=\"photos\">…</Carousel.Viewport>\n <Carousel.Count viewport=\"photos\" total={3} />\n <Carousel.Dots commandfor=\"photos\" count={3} label={(i) => `Photo ${i + 1} of 3`} />\n <CarouselSync />\n </Carousel>\n\n`carouselControls()` and the new `carouselSync()` mixin also keep every\n`Carousel.Count` in step. `Carousel.Slide` now carries\n`data-carousel-slide`, so `--ui-goto` dots find their slides without the\npage adding that attribute.\n\n`MediaGrid` is new: square photo and video tiles as links, three to a row\nby default (`columns`), with a hairline gap set by `--ui-media-grid-gap`.\n`MediaGrid.Item` takes `tall` to stand two rows high, `badge` for a corner\nicon, and `overlay` for what shows on hover or focus.\n\n <MediaGrid label=\"Posts\">\n <MediaGrid.Item href=\"/p/1\" label=\"Bowls cooling\" badge={<LayersIcon />}>\n <img src=\"/p/1.jpg\" alt=\"\" />\n </MediaGrid.Item>\n </MediaGrid>\n\nA browser entry that maps package islands by specifier should add\n`@sdxc/ui/carousel`. No other consumer action is needed."}
|
|
2183
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add @sdxc/ui/audio with a track table, player bar, tiles and queue","body":"A new namespace holds the parts of a music app. They draw; your own player\ndrives them, so they work with any audio source.\n\n- TrackList: a track table. Each row's number turns into a play button that\n covers the row, and the playing row (aria-current=\"true\") shows an\n Equalizer. Album and \"Date added\" columns are optional, and a narrow box\n keeps only number, title and length.\n- MediaTile: an album, playlist or artist (shape=\"round\") as one link, with\n a play slot over the art outside the link.\n- PlayerBar: the bar along the foot of the window, with .Track, .Button\n (pressed, primary), .Seek and .Range, plus .Mini, its phone form.\n- QueueList: .Section and .Item for \"Now playing\" and \"Next up\".\n- Equalizer: the playing mark. It holds still inside any [data-audio-paused]\n ancestor.\n- createPlayQueue, nextInQueue, previousInQueue, toggleShuffle, cycleRepeat,\n jumpTo and upcoming: the play order as data. syncMediaSession hands the\n track and your commands to the system's media keys and lock screen.\n\n import { PlayerBar, TrackList, createPlayQueue } from \"@sdxc/ui/audio\";"}
|
|
2184
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"docs","breaking":false,"title":"List MapCanvas, RangeMonths, Lightbox, Autocomplete and the breakdowns","body":"The package README now names `MapCanvas` (with `MapCanvasSync` and the\n`mapLink`/`mapLinks` mixins), `RangeMonths`, `Lightbox`, `Autocomplete`,\n`RatingBreakdown` and `PriceBreakdown`, each with the island to load where it\nhas one. This changes documentation only; no consumer action is needed."}
|
|
2185
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add TimeGrid, MonthView, Agenda, FreeBusy and RouteDialog for calendars","body":"Five components in `@sdxc/ui/app` for building a calendar.\n\n`TimeGrid` draws day, multi-day or week columns of hours:\n- overlapping events sit side by side, and an event widens into free columns to its right\n- all-day and multi-day events share a lane at the top\n- each time zone gets its own column of hour labels\n- a now line keeps moving with the clock, and the grid opens scrolled to the working day\n\nPass `edit` and a drag across empty time posts the create form, while dragging an editable event or its bottom edge posts the move form. Alt+Arrow keys move the focused event, and Alt+Shift+Arrow keys change when it ends.\n\n import { TimeGrid } from \"@sdxc/ui/app/time-grid\";\n\n <TimeGrid\n \tid=\"week\"\n \tlabel=\"Week of November 16\"\n \tdays={[{ date: \"2026-11-16\" }, { date: \"2026-11-17\" }]}\n \tzones={[{ label: \"EST\", hours: estLabels }]}\n \tevents={[{ id: \"e1\", date: \"2026-11-16\", start: 540, end: 600, title: \"Standup\", editable: true }]}\n \tedit={{ move: { action: \"/events/move\" }, create: { action: \"/week\", method: \"get\" } }}\n \tlabels={{ allDay: \"All day\", now: \"Now\", moved: \"{title} moved to {time}\", resized: \"{title} now ends at {time}\" }}\n />\n\nEach submission adds `date`, `start` and `end` (minutes from the day's start), plus `id` for a move or resize.\n\n- `MonthView` lays out a month: multi-day events as bars, timed events as a dot and a time, and \"+N more\" once a day overflows `max`. A narrow container shows dots instead of titles.\n- `Agenda` lists events grouped by day. Each row is a link, a popover button or plain text.\n- `FreeBusy` compares people's busy blocks over one day, hatches the hours outside each person's working day, and draws the free `slots` everyone can make as bands across every row.\n- `RouteDialog` is a dialog whose open state lives in the address. The server renders it open, script lifts it into a modal, and closing it follows `closeHref`, so it works without script and survives a reload:\n\n <RouteDialog id=\"edit\" closeHref=\"/week\" closeLabel=\"Close\" aria-labelledby=\"edit-title\">\n \t<form method=\"post\" action=\"/events/42\">…</form>\n </RouteDialog>\n\nThe site has to load the `@sdxc/ui/app/time-grid` and `@sdxc/ui/app/route-dialog` islands in its browser entry."}
|
|
2186
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Fill a MapCanvas pin while its list row is hovered","body":"Before, a pin whose row was hovered or focused only grew a little and gained\na shadow, which was easy to miss among neighbouring pins. Now it also fills\nwith the solid neutral colour, the way a current pin does, so the stay a\nvisitor points at stands out on a crowded map. A current pin keeps its own\nlook. No consumer action is needed."}
|
|
2187
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add team chat pieces to @sdxc/ui/chat: MessageGroup, ReactionBar, TypingIndicator and composer helpers","body":"`@sdxc/ui/chat` now covers a team chat as well as an assistant chat:\n\n- `MessageGroup` lays out one person's run of messages flat: the first line\n carries the avatar, name and time, later lines show their time in the gutter\n on hover, and every line has an action bar (`MessageGroup.Actions`), an\n \"(edited)\" mark and a thread summary link (`MessageGroup.Thread`). `mentioned`\n and `current` tint a line.\n- `ReactionBar` draws emoji + count chips as submit buttons, pressed when the\n reader reacted, with `ReactionBar.Add` for an add-reaction control.\n- `TypingIndicator` is a polite status line with pulsing dots that keeps its\n height while empty; `typingLabel(names, labels)` words one, two or many typists.\n- `MentionMenu` opens a list of people when `@` starts a word in the composer,\n with arrow keys, Enter/Tab to insert and Escape to close. `mentionQuery` and\n `mentionMatches` are exported for custom triggers.\n- `ComposerFormat` adds bold, italic, strike, code, link, quote and list\n buttons (and Mod+B/I/E, Mod+Shift+X) that edit the composer's Markdown;\n `applyFormat` is the pure edit behind them.\n\nFor emoji, use the picker and `:name:` suggestions in `@sdxc/emoji/ui`.\n\n```tsx\nimport { Composer, ComposerFormat, MentionMenu, MessageGroup } from \"@sdxc/ui/chat\";\n\n<Composer method=\"post\" action=\"/messages\">\n\t<Composer.Input id=\"body\" name=\"text\" aria-label=\"Message\" />\n\t<MentionMenu people={people} labels={{ list: \"People\", empty: \"Nobody matches\" }} />\n\t<Composer.Toolbar>\n\t\t<ComposerFormat labels={{ bold: \"Bold\", italic: \"Italic\", strike: \"Strikethrough\", code: \"Code\", link: \"Link\", quote: \"Quote\", list: \"List\" }} />\n\t</Composer.Toolbar>\n</Composer>\n```\n\nFix: `composerSend` (and so `ComposerSubmit`) now leaves an Enter alone when\nanother listener already cancelled it. Before, Enter sent the message even\nwhile a suggestion list had claimed the key; no action is needed.","correctedIn":"2026.11.22"}
|
|
2188
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"test","breaking":false,"title":"Let the reel feed tests wait for a swipe to settle on a busy machine","body":"The shared helper the ReelFeed browser and touch tests use to wait for a\nreel to become active now allows four seconds, so a swipe's momentum\nscroll can settle when many browser tests run at once. This changes no\npublished code, and consumers need not act."}
|
|
2189
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"refactor","breaking":true,"title":"Move maps to @sdxc/ui/map and booking pieces to @sdxc/ui/travel","body":"Two new namespaces join `@sdxc/ui`, each exported as a barrel and per module.\n\n- `@sdxc/ui/map` holds `MapCanvas`, `MapCanvasSync` and the `mapLink` /\n `mapLinks` mixins.\n- `@sdxc/ui/travel` holds `PriceBreakdown` and `RatingBreakdown`.\n\nThey are no longer exported from the package root, from\n`@sdxc/ui/mixins`, or from their old per-module paths.\n\nMigration: change the imports. Nothing else about the components changes.\n\nBefore:\n\n import { MapCanvas, MapCanvasSync, mapLink } from \"@sdxc/ui\";\n import { MapCanvas } from \"@sdxc/ui/map-canvas\";\n import { mapLinks } from \"@sdxc/ui/mixins\";\n import { PriceBreakdown } from \"@sdxc/ui/price-breakdown\";\n import { RatingBreakdown } from \"@sdxc/ui/rating-breakdown\";\n\nAfter:\n\n import { MapCanvas, MapCanvasSync, mapLink, mapLinks } from \"@sdxc/ui/map\";\n import { MapCanvas } from \"@sdxc/ui/map/map-canvas\";\n import { PriceBreakdown, RatingBreakdown } from \"@sdxc/ui/travel\";\n\nIf your browser entry maps the island by specifier, rename\n`\"@sdxc/ui/map-canvas\"` to `\"@sdxc/ui/map/map-canvas\"`."}
|
|
2190
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"refactor","breaking":true,"title":"Move Amount to the package root, and Ledger and PaymentCard to @sdxc/ui/finance","body":"`Amount` is now a root component, so any namespace can use it, and it formats through\n`@sdxc/money`. `Ledger` and `PaymentCard` move to a new `@sdxc/ui/finance` namespace for\nbanking, budgeting and wallet screens. Their props and rendering are unchanged.\n\n`formatAmount` and `currencyExponent` are no longer exported from `@sdxc/ui`. Import them\nfrom `@sdxc/money`, which also parses typed amounts, splits and converts.\n\nMigration: change the imports.\n\nBefore:\n\n import { Amount, formatAmount, currencyExponent, Ledger, PaymentCard } from \"@sdxc/ui/app\";\n import { Amount } from \"@sdxc/ui/app/amount\";\n import { Ledger } from \"@sdxc/ui/app/ledger\";\n import { PaymentCard } from \"@sdxc/ui/app/payment-card\";\n\nAfter:"}
|
|
2191
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":true,"title":"Make reaction chips update in place with reactionSync(), and drop EmojiPicker from @sdxc/ui/chat","body":"`@sdxc/ui/chat` no longer ships its own emoji picker: `EmojiPicker`, `EMOJI`\nand `filterEmoji` are gone, so every app uses the one picker in\n`@sdxc/emoji/ui`, which also covers `:name:` suggestions and custom emoji.\n\nReactions can now update instantly. Put `reactionSync()` on one element that\nstays on the page; from then on pressing any `ReactionBar` chip flips it and its\ncount at once while its form posts in the background, a refused post puts it\nback, and a chip whose count reaches zero leaves the row. Dispatch a\n`ReactionAddEvent` on a row (for example from an emoji picker's pick) to add or\npress a reaction; a new chip is cloned from the row's `ReactionBar.Template`.\n\n```tsx\nimport { ReactionAddEvent, ReactionBar, reactionSync } from \"@sdxc/ui/chat\";\n\n<span hidden mix={[reactionSync()]} />\n<ReactionBar aria-label=\"Reactions\">\n\t<form method=\"post\" action=\"/messages/42/react\">\n\t\t<input type=\"hidden\" name=\"emoji\" value=\"🎉\" />\n\t\t<ReactionBar.Reaction emoji=\"🎉\" label=\"Party popper\" count={3} pressed />\n\t</form>\n\t<ReactionBar.Template>\n\t\t<form method=\"post\" action=\"/messages/42/react\">\n\t\t\t<input type=\"hidden\" name=\"emoji\" value=\"\" data-reaction-emoji />\n\t\t\t<ReactionBar.Reaction emoji=\"\" label=\"\" count={0} />\n\t\t</form>\n\t</ReactionBar.Template>\n</ReactionBar>\n\nbar.dispatchEvent(new ReactionAddEvent({ emoji: \"🚀\", label: \"Rocket\" }));\n```\n\nMigration:\n\n1. Replace `EmojiPicker` from `@sdxc/ui/chat` with `EmojiPicker` and\n `emojiPicker()` from `@sdxc/emoji/ui` (see that package's README).\n2. `ReactionBar.Reaction` takes a `label` (the emoji's name) instead of\n `aria-label`, and its own toggle field instead of `name`/`value`:\n\n Before:\n `<ReactionBar.Reaction name=\"on\" value={mine ? \"0\" : \"1\"} emoji=\"🎉\" count={3} pressed={mine} aria-label=\"Party popper, 3\" />`\n\n After:\n `<ReactionBar.Reaction emoji=\"🎉\" label=\"Party popper\" count={3} pressed={mine} />`\n\n It submits `on=1` to add and `on=0` to remove; pass\n `toggle={{ name, on, off }}` to change the field.\n3. A `ReactionBar` with no chips now hides itself, so render one on every\n message if a reaction may be added in place."}
|
|
2192
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":true,"title":"Move the calendar components to @sdxc/ui/schedule","body":"`TimeGrid`, `MonthView`, `Agenda`, `DayStrip` and `FreeBusy` now live in their own namespace, `@sdxc/ui/schedule`, together with the `layoutTimedItems` and `layoutSpanItems` placement helpers. `@sdxc/ui/app` no longer exports them. The root `Calendar` already answers at `@sdxc/ui/calendar`, so the namespace is `schedule`. `RouteDialog` stays in `@sdxc/ui/app`.\n\nTo migrate, change the import paths. Before:\n\n import { TimeGrid } from \"@sdxc/ui/app/time-grid\";\n import { DayStrip } from \"@sdxc/ui/app/day-strip\";\n import { MonthView, Agenda, FreeBusy } from \"@sdxc/ui/app\";\n\nAfter:\n\n import { TimeGrid } from \"@sdxc/ui/schedule/time-grid\";\n import { DayStrip } from \"@sdxc/ui/schedule/day-strip\";\n import { MonthView, Agenda, FreeBusy } from \"@sdxc/ui/schedule\";\n\nIf your browser entry maps package islands by specifier, rename `@sdxc/ui/app/time-grid` to `@sdxc/ui/schedule/time-grid` and `@sdxc/ui/app/day-strip` to `@sdxc/ui/schedule/day-strip`. The components themselves are unchanged."}
|
|
2193
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Catalogue @sdxc/ui/schedule with a Schedule section","body":"`@sdxc/ui/travel` gains the parts of booking a trip. Every choice is a form\nfield and every price or time arrives formatted, so a flow posts without\nscript and reads in the visitor's locale.\n\n- `FlightSegment` and `FlightRoute` show one leg: times, codes, a track with\n stop dots, and a \"+1\" day badge.\n- `FlightItinerary` summarises a journey over a native `<details>` holding its\n `.Segment`s and `.Layover`s.\n- `FlightOption` is a results row with badges, journeys, a price and a select\n action.\n- `FareOptions` lists fare classes as radio cards, with features marked\n included, not included or for a fee.\n- `FareCalendar` is a month of day links with each day's fare, the cheapest\n tinted. `variant=\"strip\"` shows a row of days around the selected one.\n- `SeatMap` is a fuselage of native seat radios under one `name`, with taken,\n extra-legroom and exit seats, and a `.Legend`.\n- `BoardingPass` is a wallet-style pass. `PassCode` draws its code-like art,\n which is deterministic and not a real QR code.\n- `CarOffer` is a rental car result card.\n- `PackageSavings` shows a bundle price beside its parts' separate prices.\n- `TripTimeline` shows a whole trip as `.Day`s of flight, stay, car, activity\n and note `.Item`s.\n\n <FareOptions legend=\"Fare\" name=\"fare\" statusLabels={{ yes: \"Included\", no: \"Not available\", fee: \"For a fee\" }}>\n <FareOptions.Option value=\"basic\" title=\"Basic\" price=\"$412\"\n features={[{ label: \"Carry-on bag\", included: \"fee\" }]} />\n </FareOptions>\n <SeatMap rows={rows} layout=\"ABC DEF\" name=\"seat\" label=\"Seats on LW 214\" labels={{ taken: \"Taken\" }} />","correctedIn":"2026.11.22"}
|
|
2194
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add GeoMap, a real map that renders on the server and runs MapLibre in the browser","body":"`GeoMap` in `@sdxc/ui/map` is a map placed by longitude and latitude. The\nserver draws it as SVG with HTML markers, so pins are links and zoom works\nwithout script. Once its island loads, `maplibre-gl` takes over the same\nmarkers for drag, wheel and pinch zoom.\n\n- `GeoMap.Marker` is a price or icon pin, linked to a list row by `mapKey`.\n Nearby markers group into cluster bubbles that zoom in.\n- `GeoMap.Popup` opens a card from its marker.\n- `GeoMap.Route` draws a path, the travelled part solid. A\n `GeoMap.RouteMarker` rides it through `--ui-map-progress`.\n- `GeoMap.Area` adds \"Search this area\": it writes the visible bounds into a\n form after the visitor moves the map.\n- The basemap is your own GeoJSON (land, water, parks, roads, place names),\n which needs no third-party host, or a MapLibre style URL with a light and\n a dark variant.\n\n`maplibre-gl` 6.17.0 is now an optional peer dependency. Install it only if\nyou use `GeoMap`, and pass its worker's URL as `workerUrl`. Without WebGL, the\nmap stays on its server render.\n\n import workerUrl from \"maplibre-gl/dist/maplibre-gl-worker.mjs?worker&url\";\n\n <GeoMap id=\"stays\" label=\"Stays\" center={[-31.2, 43.9]} zoom={10} workerUrl={workerUrl}\n basemap={{ kind: \"geojson\", data: region }} controls={[\"zoom\", \"fullscreen\"]}\n navigation={{ href: (view) => `?zoom=${view.zoom}¢er=${view.center.join(\",\")}` }}>\n <GeoMap.Marker at={[-31.18, 43.71]} label=\"$164\" href=\"/stay/gullwing\" mapKey=\"gullwing\" />\n </GeoMap>\n\nAllow `worker-src 'self'` in your CSP for the worker."}
|
|
2195
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Paint StepIndicator's markers and Ledger's focus ring in the theme's brand colour","body":"Before, `StepIndicator` read a brand token the theme does not define, so the done and\ncurrent markers fell back to the browser's link colour. `Ledger.Entry`'s focus ring fell\nback to the system highlight colour the same way. Both now read `--ui-brand-bg-solid`, so\nthey follow the theme.\n\nNothing to change in consumer code."}
|
|
2196
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add YearView to @sdxc/ui/schedule, and let TimeGrid swipe between ranges","body":"`YearView` draws a year as twelve small months that reflow from four columns to one. Every day links where `dayHref` says, and its dot grows heavier with the number of events in `counts`. Today is ringed and the `selected` day is filled.\n\n import { YearView } from \"@sdxc/ui/schedule/year-view\";\n\n <YearView\n \tyear={2026}\n \ttoday=\"2026-11-18\"\n \tcounts={{ \"2026-11-18\": 4 }}\n \tdayHref={(date) => `/day/${date}`}\n \tmonthHref={(month) => `/month/${month}`}\n \tlabels={{ count: \"{count} events\" }}\n />\n\n`TimeGrid` takes a new optional `pages={{ previous, next }}`. A quick horizontal swipe across the hours on a touch screen follows the matching link, and the columns slide with the finger meanwhile. A vertical stroke still scrolls, and a press on an editable event still drags it. Keep visible previous and next arrows beside the grid, since a swipe has no affordance. Grids without `pages` behave as before."}
|
|
2197
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"style","breaking":false,"title":"Format MonthView","body":"MonthView's source is reformatted to the repository's style. Nothing changes for consumers."}
|
|
2198
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Draw GeoMap on OpenFreeMap's free light and dark styles by default","body":"A `GeoMap` with no `basemap` now draws on OpenFreeMap's Positron style, and\non its Dark style when the page is dark. These are real vector maps that need\nno API key. The styles are exported as `OPEN_FREE_MAP`, so you can pass them\nexplicitly or swap in another MapLibre style pair.\n\n import { GeoMap, OPEN_FREE_MAP } from \"@sdxc/ui/map/map\";\n\n <GeoMap id=\"stays\" label=\"Stays\" center={[-25.67, 37.74]} zoom={11}\n basemap={OPEN_FREE_MAP} labels={labels} workerUrl={workerUrl} />\n\nPages that draw it must allow `https://tiles.openfreemap.org` in `connect-src`\nand `img-src` (plus `blob:` in `img-src`), and `blob:` in `worker-src`. A map\nthat passes its own `basemap` is unchanged."}
|
|
2199
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Let StepIndicator span its container and fill the line into the current step","body":"Before, the steps sat at the start of their container joined by short fixed lines, and the\nline leading into the current step stayed grey. Now the row spans its container: every\nstep after the first shares the width, and its line stretches across the gap. The line into\na step fills with the brand colour once the reader has reached that step, the current one\nincluded.\n\nNothing to change in consumer code. A container narrower than the steps' names still hides\nthe non-current names under 24rem."}
|
|
2200
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Start GeoMap's basemap credit folded behind its info button","body":"Before, a `GeoMap` drawn over a style basemap (OpenFreeMap by default) opened\nMapLibre's compact attribution on load. On a phone that line covered whatever\nfloated at the map's foot, such as a \"Show list\" button, until the first pan.\nNow the credit starts folded into its (i) button once the map is live, and a\ntap opens it. No consumer action is needed."}
|
|
2201
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"docs","breaking":false,"title":"Name OpenFreeMap as GeoMap's default basemap in the README","body":"The `@sdxc/ui` README now says `GeoMap` draws OpenFreeMap's light and dark\nstyles unless you pass `basemap`, and that pages showing it need the tile host\nin their content security policy. No consumer action is needed."}
|
|
2202
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Export the lightbox mixin and range-month helpers that Lightbox and RangeMonths use","body":"`lightboxControls` is now exported from `@sdxc/ui/mixins`, and the range-month date helpers (`nextSelection`, `rangePosition`, `firstUnavailableAfter`, `addDays`, `shiftMonth` and friends) from `@sdxc/ui/utils`. Before, `Lightbox` and `RangeMonths` imported modules the package did not publish, so copying either component with `sdxc ui` produced imports that could not resolve. Consumers need not act."}
|
|
2203
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add Rating, RatingInput and ReviewCard","body":"Three general pieces for reviews, in the root `@sdxc/ui`:\n\n- `Rating` draws stars with a partial fill, read as one sentence (\"4.4 out of 5 stars\"),\n with an optional count. The star colour comes from `--ui-rating-color`.\n- `RatingInput` is a fieldset of five star radios that works without script; arrow keys\n raise and lower the score in order.\n- `ReviewCard` lays out a review: author, stars, title, body, date, a verified mark,\n what was bought, media and a slot for a \"Helpful\" form.\n\n import { Rating, RatingInput, ReviewCard } from \"@sdxc/ui\";"}
|
|
2204
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add shop browsing, cart and checkout pieces to @sdxc/ui/commerce","body":"`@sdxc/ui/commerce` now covers a whole store, not only ordering for delivery. Every piece\nrenders on the server and works without script; islands only enhance.\n\nBrowsing:\n- `Price`: an amount with a struck compare-at price, \"Save N%\", \"From\" and an\n instalments line whose shares add up exactly.\n- `ProductCard`: a picture that crossfades to a second one on hover, swatch dots, a price,\n badges and a slot for a wishlist heart, with the whole card one link.\n- `VariantPicker` with `.Axis`, `.Swatch` and `.Choice` (pill or card): every option is a\n link to its variant. Give the picker a `target` frame and a pick swaps that frame in\n place, keeping the page's scroll and replacing the history entry.\n- `ProductGallery`: thumbnails beside a stage that zooms under the pointer\n (`zoomOnHover()`) and opens a root `Lightbox`; a swipeable strip with dots on phones.\n- `FacetFilters` with `.Group`, `.Check`, `.Toggle`, `.Range` and `.Applied`: a GET form of\n filters with counts, swatches, price buckets and removable chips. Once live it submits on\n change and leaves blank fields out of the address (`autoSubmit()`, `AutoSubmit`).\n- `SortSelect`: a sort menu that submits its form on change.\n\nCart and checkout:\n- `CartDrawer` and `CartDrawer.Trigger`: the bag in a drawer, opened by a link to the\n cart page that a small island upgrades to open the drawer.\n- `PromoCode`, `ShippingEstimate`, `OrderSummary` (collapsible on phones),\n `CheckoutLayout` and `FulfilmentNote` (\"Instant download\", \"Ships in 3–5 days\").\n- `QuestionList`: product questions with staff and buyer answers.\n\n`OrderSteps` steps take an optional `detail`, such as a scan time and place:\n\n import { OrderSteps, Price, VariantPicker } from \"@sdxc/ui/commerce\";"}
|
|
2205
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Draw commerce pieces with the theme's own neutral tokens","body":"`CartLine`, `QuantityStepper`, `OptionGroup`, `ItemOptionsDialog` and `MenuItemCard` read\n`--ui-neutral-bg-subtle`, `--ui-neutral-bg-muted`, `--ui-neutral-border-subtle` and\n`--ui-neutral-bg`, none of which the theme defines, so their tinted backgrounds, hairlines\nand button fills fell back to transparent. They now read `--ui-neutral-bg-tint`,\n`--ui-neutral-bg-tint-hover`, `--ui-neutral-border` and `--ui-bg`, and follow light and dark\nthemes. No consumer action is needed."}
|
|
2206
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep short time grid events readable and beside the next event","body":"Before, a short event in `TimeGrid` from `@sdxc/ui/schedule` squeezed its title, time and place into a block too small for them, clipping all three. A 15-minute event drew taller than its length and covered the event that started right after it.\n\nNow each event block shows only the lines its height fits, and each line stays whole. A block too short for two lines puts the time after the title on one line, and one too short for three drops its place. Layout counts every event as at least half an hour long, so a short event sits beside the next one instead of under it. Consumers don't need to change anything."}
|
|
2207
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Centre OptimisticToggle on its button while it has nothing to say","body":"Before, the empty live region after the button still took a slot in the\nform's row, so the form was a gap wider than its button. Lined up in a\ncolumn, as the like, comment and share actions over a video are, a toggle\nsat a few pixels off centre. The live region now leaves the row while it\nis empty and returns when a refusal fills it. A screen reader still hears\nthe refusal. Consumers need not act."}
|
|
2208
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Let ReelFeed play through on its own, loop forever, and keep its arrows live","body":"`ReelFeed` takes two new options:\n- `autoAdvance` moves on to the next reel when the one on screen reaches\n its `loopAt` length, the way a reels tab plays through.\n- `loop` runs on from the last reel to the first, by swipe, key, wheel,\n step control or `autoAdvance`, so the feed never ends. Its island adds\n an inert copy of the first reel after the last to do it.\n\n <ReelFeed label=\"Reels\" autoAdvance loop followAddress>…</ReelFeed>\n\nWithout either option every reel loops until the visitor moves, as before.\n\nFixed: a `data-reel-step` control was only as live as the page that drew\nit, so an up arrow drawn disabled on the first reel never came alive. The\nisland now points every step control at the neighbouring reel as the feed\nmoves, and marks it `aria-disabled` only at an end the feed can't pass.\nRender both arrows as links whatever reel the page opens on. No other\nconsumer action is needed."}
|
|
2209
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add Letterbox, a Typewriter and input helpers for gamepads and swipes","body":"`@sdxc/ui` gains a component and helpers that any page can use for fixed-ratio\nscreens, typed-out text and input beyond mouse and keyboard.\n\n`Letterbox` centres a fixed-ratio surface inside whatever box holds it and\npaints bars on the sides it leaves empty (`--ui-letterbox-bars`, black by\ndefault). The surface is a size container, so content sized in `cqw`/`cqh`\nscales with it; in a box without a height the frame takes its height from its\nwidth.\n\n import { Letterbox } from \"@sdxc/ui\";\n\n <Letterbox ratio={16 / 9}>\n <Letterbox.Surface mix={css({ fontSize: \"4cqh\" })}>Slide one</Letterbox.Surface>\n </Letterbox>\n\n`Typewriter` (from `@sdxc/ui/utils`) reveals an element's text character by\ncharacter through the `ui-typewriter` CSS highlight, leaving the DOM untouched,\nso the layout holds and a screen reader gets the whole text at once. Paint the\nhost with `typewriterText()` from `@sdxc/ui/styles`. Elements marked\n`data-typewriter-pause=\"300\"` hold the typing and `data-typewriter-speed=\"0.5\"`\nscales its speed.\n\n import { typewriterText } from \"@sdxc/ui/styles\";\n import { Typewriter } from \"@sdxc/ui/utils\";\n\n <p mix={[typewriterText()]}>Hello there.</p>\n let writer = new Typewriter(paragraph);\n writer.start(40);\n await writer.done;\n\nThree input helpers join `@sdxc/ui/utils`: `moveFocus(root, 1 | -1)` moves\nfocus through a container's visible, enabled controls with wraparound (for a\nD-pad or a remote), `gamepadPresses(previous, current)` returns the buttons\nthat went down between two gamepad polls, and `swipeDirection(dx, dy,\nthreshold?)` reads a pointer's travel as `\"up\" | \"down\" | \"left\" | \"right\"`, or\n`null` for a tap."}
|
|
2210
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Tint a SectionBar chip on hover","body":"Before, hovering a SectionBar chip set its background to `--ui-neutral-bg-subtle`, a token\nno theme defines, so the chip showed no hover background in either light or dark. It now\nuses `--ui-neutral-bg-tint`, the same subtle wash other neutral controls hover with.\nConsumers need not act."}
|
|
2211
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Land a looping ReelFeed on its first reel after a fast flick","body":"Before, a looping ReelFeed jumped back to its first reel as soon as the copy of that reel\nafter the last one came into view. A touch fling still running at that moment carried on\nfrom the top, so a fast flick past the last reel could settle on the second reel, and a\nfling that hit the end of the feed without a `scrollend` could leave it resting on the copy.\nThe feed now jumps once the scroll has come to rest, on `scrollend` or after 150ms without\nmovement, and ends any fling still running as it jumps. Consumers need not act."}
|
|
2212
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Reopen CommandPalette with an empty query right after a command runs","body":"Before, CommandPalette cleared its search field and refilled Recent only from the dialog's\n`close` event, which the browser queues to run later. Reopening the palette before that\nevent ran, such as pressing mod+k right after running a command, showed the old query with\nthe Recent group hidden. The palette now resets in the same step that closes it after a\ncommand or its shortcut, and still resets on Escape and other closes. Consumers need not act."}
|
|
2213
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Publish GeoMap's engine with its MapLibre stylesheet import typed","body":"Before, the 2026.11.21 release could not compile @sdxc/ui: the publish build\nrejected GeoMap's dynamic import of `maplibre-gl/dist/maplibre-gl.css` with\nTS2307, so no package from that day was published. The package now declares\nthat stylesheet as a module, and the build compiles. Runtime behavior is\nunchanged and consumers need no action."}
|
|
2214
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep a live LogViewer where the reader scrolled when lines arrive right after","body":"Before, a streaming LogViewer only learned the reader had scrolled up from the `scroll`\nevent, which the browser dispatches on the next frame. Lines that arrived in between pulled\nthe log back to its tail even though the reader had just left it. Now the viewer reads the\nscroll position just before appending each batch, so scrolling up always holds the view and\nshows \"Jump to latest\" instead. No action is needed from consumers."}
|
|
2215
|
+
{"release":"2026.11.22","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Let a RangeMonths stay calendar check out on the first taken night","body":"A calendar of nights, such as a hotel's, can now end a range on the morning another booking\nstarts. Pass `nights`, and once a start is picked, the first unavailable day after it still\nlinks as the end; the days past it stay unlinked as before.\n\n <RangeMonths\n nights\n isUnavailable={(day) => booked.has(day)}\n start={checkIn}\n href={href}\n …\n />\n\nWithout `nights`, a pending range still ends on the day before the first unavailable one."}
|
|
@@ -28,8 +28,8 @@ export declare const LAYER_ORDER: readonly Layer[];
|
|
|
28
28
|
export declare function layerOf(path: string): Layer | null;
|
|
29
29
|
/**
|
|
30
30
|
* Whether an import from `from` to `to` obeys the dependency rule. Unranked endpoints are left
|
|
31
|
-
* alone so config and packages stay free to import, any layer reads a declaration module
|
|
32
|
-
* an initializer reads the middleware its router's global chain lists.
|
|
31
|
+
* alone so config and packages stay free to import, any layer reads a declaration module or a
|
|
32
|
+
* message bundle, and an initializer reads the middleware its router's global chain lists.
|
|
33
33
|
*/
|
|
34
34
|
export declare function allowsDependency(from: string, to: string): boolean;
|
|
35
35
|
/** Whether `path` is a module that declares a runtime's jobs, commands, emails or MCP handlers. */
|
|
@@ -54,6 +54,11 @@ const DECLARATIONS = new Set([
|
|
|
54
54
|
"app/mcp/tools/index.ts",
|
|
55
55
|
"app/mcp/resources/index.ts",
|
|
56
56
|
]);
|
|
57
|
+
/**
|
|
58
|
+
* Where an app keeps its message bundles: data with no imports of their own, which the
|
|
59
|
+
* initializer that builds the translator and the code that types its keys both read.
|
|
60
|
+
*/
|
|
61
|
+
const LOCALES = "resources/locales/";
|
|
57
62
|
/** Where an app's own middleware lives, which the router initializer composes into its chain. */
|
|
58
63
|
const MIDDLEWARE = "app/http/middleware/";
|
|
59
64
|
/** Prefixes that assign a path to a layer, most specific first. */
|
|
@@ -88,14 +93,16 @@ export function layerOf(path) {
|
|
|
88
93
|
}
|
|
89
94
|
/**
|
|
90
95
|
* Whether an import from `from` to `to` obeys the dependency rule. Unranked endpoints are left
|
|
91
|
-
* alone so config and packages stay free to import, any layer reads a declaration module
|
|
92
|
-
* an initializer reads the middleware its router's global chain lists.
|
|
96
|
+
* alone so config and packages stay free to import, any layer reads a declaration module or a
|
|
97
|
+
* message bundle, and an initializer reads the middleware its router's global chain lists.
|
|
93
98
|
*/
|
|
94
99
|
export function allowsDependency(from, to) {
|
|
95
100
|
let source = layerOf(from);
|
|
96
101
|
let target = layerOf(to);
|
|
97
102
|
if (source === null || target === null || isDeclaration(to))
|
|
98
103
|
return true;
|
|
104
|
+
if (normalize(to).startsWith(LOCALES))
|
|
105
|
+
return true;
|
|
99
106
|
if (source === "initializers" && normalize(to).startsWith(MIDDLEWARE))
|
|
100
107
|
return true;
|
|
101
108
|
return LAYER_RANK[source] <= LAYER_RANK[target];
|