@sdxc/kit 2026.11.22 → 2026.11.25
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
CHANGED
|
@@ -2213,3 +2213,23 @@
|
|
|
2213
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
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
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."}
|
|
2216
|
+
{"release":"2026.11.24","package":"@sdxc/kit","type":"fix","breaking":false,"title":"Give apps from sdxc create the palette @sdxc/ui colors from","body":"`@sdxc/ui/theme.css` derives every semantic token (`--ui-neutral-bg-tint`,\n`--ui-brand-fg` and the rest) from a raw palette,\n`--ui-color-{neutral,brand,danger,warning,success}-{50..950}`, that the app\ndeclares. The `app` template declared none, so every `@sdxc/ui` surface in a\nnew app (menus, dialogs, buttons) rendered with transparent backgrounds and\nempty colors.\n\nA new app now starts with `resources/css/colors.css`, the five eleven-step\nscales with an untinted grey neutral and a plain blue brand, and\n`resources/layouts/document.tsx` imports it between the reset and the theme.\nEdit that file to set the app's colors.\n\nAn app created with an earlier `sdxc create` must add the palette itself:\ncopy `resources/css/colors.css` from a new app (or declare the 55\n`--ui-color-*` steps in a stylesheet of its own) and import it in the\ndocument layout after the reset and before the theme:"}
|
|
2217
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"fix","breaking":false,"title":"Draw the next-line indicator clear of the quick menu","body":"The next-line indicator sat in the textbox's bottom corner, the same spot\nthe quick menu's last button takes, so the bouncing arrow covered the\n\"Extras\" label in the default player. It now sits in the textbox's top\ncorner, opposite the name plate.\n\nIts position is the new `--novel-next-inset` theme variable (default\n`2.4cqh 1.6cqw auto auto`), so a game with its own layout can place it\nelsewhere:\n\n css({ \"--novel-next-inset\": \"auto 1.6cqw 1.2cqh auto\" })\n\nNothing to change unless a game styled the indicator's position itself."}
|
|
2218
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"fix","breaking":false,"title":"Open Memories at the newest line","body":"Memories listed every line read from the start of the story and opened\nscrolled to the top, so a reader looking for what just happened scrolled\npast the whole playthrough first. It now scrolls the box it sits in, such\nas the Extras dialog's body, to the end once its lines load, where the\nnewest ones are.\n\nA title screen that renders `<Memories>` inside its own scrolling dialog\ngets the same behavior when the screen mounts; render it only while the\ndialog is open so the box has a size to scroll. Nothing else to change."}
|
|
2219
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"fix","breaking":false,"title":"Keep the player's text and art from being selected","body":"Clicking through lines quickly, or dragging across the player, selected the\ntextbox, the names and the sprites, painting the whole stage in the\nbrowser's selection color. Only the stage itself turned selection off, and\nSafari needs the prefixed property. The player root now sets\n`user-select: none` and `-webkit-user-select: none`, so nothing in it\nselects; the backlog and the library screens still turn text selection back\non for their lines.\n\nNothing to change."}
|
|
2220
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Group chapters into arcs by nesting a chapter in a chapter","body":"A `chapter()` declared inside another `chapter()` now makes the outer one\nits arc, so a long story can group its chapters (\"First Year\" holding\nchapters 1-12) and the library screens show that grouping. Before, the\ninner chapter silently replaced the outer one and the grouping was lost.\n\n let story = scenes({\n y1: chapter({\n title: \"years.y1\",\n scenes: { ch01: chapter({ title: \"chapters.ch01\", scenes: { s1: scene() } }) },\n }),\n });\n\n story.y1.ch01.s1.chapter;\n // { name: \"y1.ch01\", title: \"chapters.ch01\", arc: { name: \"y1\", title: \"years.y1\" } }\n\n- `ChapterInfo` gains an optional `arc` (`ArcInfo`: `name` and `title`),\n plain data like the rest, so the `chapter` event and `chapterOf()` carry\n it. Only the nearest enclosing chapter is the arc; scenes an arc declares\n outside its chapters keep the arc as their chapter.\n- The chapter's own name still drives the `chapter` event, the persistent\n `chapters` record and chapter replays.\n- `readLibrary()` answers `arcs` (`LibraryArc[]`): the chapters grouped by\n arc, reached once one of its chapters is. A story without arcs has one\n group whose `arc` is `null`.\n- `ChapterSelect`, `SceneReplay` and `Memories` head each arc's chapters\n with its title in a `section[data-arc]` (with `data-reached`); an arc\n with no reached chapter shows the locked label.\n- `explore()` and the devtools' missing-message report check arc titles.\n\nStories without nested chapters render and play exactly as before;\nconsumers need not act."}
|
|
2221
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Turn auto mode off when the reader leaves the tab","body":"NovelPlayer now turns auto mode off when the page becomes hidden, such as when\nthe reader switches tabs or minimizes the window. Before, auto mode kept\nadvancing lines nobody was reading. The quick menu's Auto button shows auto as\noff, and the reader turns it back on when they return.\n\nNo action is needed: every player gets this, including one given a custom auto\nbehavior through `behaviors.auto`, which is switched off through its `toggle()`."}
|
|
2222
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Autosave when the reader leaves the tab","body":"NovelPlayer now asks its autosave behavior for a save when the page becomes\nhidden, such as when the reader switches tabs or minimizes the window. The\ndefault AutosaveModel saves into the autosave slot when lines have shown since\nits last save, so a reader whose browser closes or discards the tab resumes from\nthe line they left instead of up to 20 lines earlier. The save reaches your\n`novel:save` listener like every other autosave.\n\nA custom autosave behavior opts in by implementing the new optional `leave()`\nmethod, which the player calls when the reader leaves:\n\n class ChapterAutosave extends TypedEventTarget<AutosaveBehavior.EventMap> implements AutosaveBehavior {\n readonly slot = AUTO_SLOT;\n chapter(): void { this.dispatchEvent(new Event(\"save\")); }\n line(): void {}\n leave(): void { this.dispatchEvent(new Event(\"save\")); }\n }\n\nBehaviors without `leave()` keep working unchanged."}
|
|
2223
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"feat","breaking":true,"title":"Declare arcs with arc() instead of nesting chapters","body":"Arcs now have their own declaration. `arc({ title, chapters })` groups\nchapters, and a chapter holds scenes and groups of scenes alone, so the\nshape of a story is visible in its declaration:\n\n import { arc, chapter, scene, scenes } from \"@sdxc/novel\";\n\n export default scenes({\n arc1: arc({\n title: \"arcs.first\",\n chapters: {\n ch1: chapter({ title: \"chapters.one\", scenes: { s1: scene(), s2: scene() } }),\n },\n }),\n });\n\n story.arc1.ch1.s1.name; // \"arc1.ch1.s1\"\n story.arc1.ch1.s1.chapter;\n // { name: \"arc1.ch1\", title: \"chapters.one\", arc: { name: \"arc1\", title: \"arcs.first\" } }\n\nA chapter declared inside a chapter no longer makes the outer one an arc,\nand it is now a type error, as is a scene placed directly in an arc. What\nthe library screens read is unchanged: `ChapterInfo.arc` (`ArcInfo`),\n`readLibrary()`'s `arcs`, and the `data-arc` sections of `ChapterSelect`,\n`SceneReplay` and `Memories`. New exports: `arc`, `ArcLeaf`,\n`ArcChapters` and `ChapterTree` (what a chapter's `scenes` takes).\n\nMigration, for a story that grouped chapters by nesting them:\n\n1. Replace each outer `chapter()` with `arc()` and rename its `scenes`\n to `chapters`.\n\n Before:\n\n y1: chapter({\n title: \"years.y1\",\n scenes: { ch01: chapter({ title: \"chapters.ch01\", scenes: { s1: scene() } }) },\n }),\n\n After:\n\n y1: arc({\n title: \"years.y1\",\n chapters: { ch01: chapter({ title: \"chapters.ch01\", scenes: { s1: scene() } }) },\n }),\n\n2. Move any scene the outer chapter declared outside its inner chapters\n into a chapter of its own (or out of the arc); an arc holds chapters\n alone.\n\nScene names keep their arc key (`y1.ch01.s1`), so saves, the seen-line\nrecord and the persistent `chapters` record keep working. Stories that\nnever nested chapters need no change."}
|
|
2224
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Clear the stage of every character with ctx.clear()","body":"Scenes gain `ctx.clear()`, which takes every character off stage at once.\nIt takes the same optional transition as `exit`, and each character\nleaves with it, so the frame animates everyone leaving together. Use it\nat the end of a chapter so the next one starts on an empty stage:\n\n export default createScene(SCENES.ch1.farewell, (ctx) => [\n ctx.say(CAST.mika, \"farewell.bye\"),\n ctx.clear({ transition: \"fade\" }),\n ctx.goto(SCENES.ch2.morning),\n ]);\n\nClearing an empty stage records no exit. `check()` treats every column as\nfree after a `clear`, so a character entering where another stood before\nit is not reported as a shared slot. The directive's data type is\nexported as `ClearDirective`.\n\nThis adds a directive; existing stories need no change."}
|
|
2225
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"feat","breaking":true,"title":"Keep characters unnamed until the story introduces them","body":"A character's name no longer shows from their first line. The textbox and\nthe backlog show an unknown-name label (`\"???\"` by default) in its place\nuntil a scene runs `ctx.introduce(character)`; from the next line on, the\nreal name shows. Characters the reader already knows (the player, their\nfamily) are declared `known: true` and are named from the start:\n\n let CAST = cast({\n you: character({ name: \"cast.you\", known: true }),\n mika: character({ name: \"cast.mika\", sprites: { smile: \"/mika/smile.webp\" } }),\n });\n\n export default createScene(SCENES.opening, (ctx) => [\n ctx.say(CAST.mika, \"opening.hello\"), // \"???\"\n ctx.introduce(CAST.mika),\n ctx.say(CAST.mika, \"opening.name\"), // \"Mika\"\n ]);\n\n- The introduced characters live in the play's state as\n `GameState.introduced` (their ids), so saves, loads and rollbacks show\n names exactly as the play did. A save from before this change loads\n with nobody introduced.\n- Every line frame's `Speaker` carries `introduced`, and backlog entries\n keep it, so the backlog names each line's speakers as that line showed\n them.\n- The label is `unknownName` in `NovelLabels`, replaced through the\n player's `labels` prop like any other: `labels={{ unknownName: \"?\" }}`.\n- `check()` warns with `known-introduced` when a scene introduces a\n character declared `known`.\n- New exports: `IntroduceDirective`; `CharacterOptions` takes `known`,\n and `CharacterLeaf`/`CharacterDeclaration` carry it.\n- Memories and the library's `sceneLines()` name every speaker, since\n they list lines the reader has already read.\n- A replay starts with nobody introduced, as a new play does.\n\nMigration:\n\n1. Mark every character whose name should show from the first line\n `known: true`. To keep a story behaving exactly as before, mark them\n all.\n\n Before:\n\n you: character({ name: \"cast.you\" }),\n\n After:\n\n you: character({ name: \"cast.you\", known: true }),\n\n2. For any other character, add `ctx.introduce(character)` where the\n story reveals their name.\n\n3. Code that builds a `Speaker` or a `GameState` by hand (a test stub,\n a fixture) adds the new fields.\n\n Before:\n\n { id: \"mika\", name: \"cast.mika\" }\n\n After:\n\n { id: \"mika\", name: \"cast.mika\", introduced: true }\n\n4. A custom name plate that renders `speaker.name` should render the\n unknown-name label when `speaker.introduced` is `false`:"}
|
|
2226
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Keep saves, settings and unlocks in localStorage","body":"`@sdxc/novel/storage/local-storage` exports `LocalStorageStore`, which keeps\nwhat a web novel must survive a reload (saves, settings and the persistent\nrecord of lines read, endings and unlocks) in the browser's `localStorage`.\n`read()` answers the player's `saves`, `settings` and `start` props, and the\n`sync()` mixin stores every `novel:save`, `novel:settings` and the novel's\n`persist` from then on, replacing the storage code an app wrote by hand:\n\n```tsx\nimport { LocalStorageStore } from \"@sdxc/novel/storage/local-storage\";\n\nlet storage = new LocalStorageStore({ prefix: \"cafe\" });\n\n<NovelPlayer.Default novel={novel} {...storage.read()} mix={storage.sync()} />\n```\n\nKeys are `<prefix>:saves`, `<prefix>:settings` and `<prefix>:persistent`\n(`prefix` defaults to `\"novel\"`). Every access is guarded, so a private\nwindow, a full quota or blocked site data reads as nothing stored and a\nwrite (`putSave`, `putSettings`, `putPersistent`) answers `false` while the\nnovel keeps playing; `clear()` removes all three. Read it once your entry\nruns in the browser, since a server render has no storage."}
|
|
2227
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Open a novel on a title screen with NovelPlayer.Title","body":"`NovelPlayer.Title` (also exported as `Title`) is the screen a novel opens\non: the novel's heading over the author's art, New game, Continue from the\nnewest save (shown only when a save exists), the library screens and the\nsettings screen, each in a modal dialog. It starts nothing itself: New game,\nContinue and a chapter or scene pick dispatch a bubbling `novel:start`\n(`NovelStartEvent`) carrying the `StartOptions` to mount a player with, built\non its `start` prop, and a changed setting dispatches `novel:settings`.\n\n`NovelPlayer.Default` takes `titleScreen` to open on it and swap to the play\nthe reader starts, with the settings changed on the title; without the prop\nit plays at once, as before:\n\n```tsx\n<NovelPlayer.Default\n\tnovel={novel}\n\tsaves={saves}\n\tstart={{ persistent }}\n\ttitleScreen={{ heading: \"The Café\", art: <img src={keyArt} alt=\"\" /> }}\n/>\n```\n\n`screens` (or the title's children) picks the library screens, by default\n`ChapterSelect`, `Gallery` and `Memories`. Every style is a\n`--novel-title-*` theme variable listed in `NOVEL_THEME_VARIABLES`, and the\nnew labels `newGame`, `continue` and `titleMenu` translate through `labels`.\n`SettingsScreen` now also renders outside a player when given a `settings`\nmodel, with optional `id` and `labels` props."}
|
|
2228
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Give the title screen a background, a logo, a footer and decoratable buttons","body":"`NovelPlayer.Title` and `NovelPlayer.Default`'s `titleScreen` now take:\n\n- `background`: full-bleed behind everything; an `<img>`, `<picture>` or\n `<video>` covers the screen through `--novel-title-background-filter` and\n `--novel-title-background-position`. Without it the screen shows the\n `--novel-title-background` variable.\n- `art`: a foreground illustration such as a portrait, anchored at\n `--novel-title-art-inset` (bottom right by default) with\n `--novel-title-art-block-size` (95% of the height), keeping its ratio,\n through `--novel-title-art-filter`. It is hidden from assistive technology\n unless the element carries alt text.\n- `footer`: drawn under the menu in the same column, for a disclaimer or\n credits, styled by `--novel-title-footer-*`.\n- A logo as `heading`: an `<img>`, `<svg>` or `<picture>` scales within\n `--novel-title-logo-max-inline-size` and `--novel-title-logo-max-block-size`\n through `--novel-title-logo-filter`, and its alt text names the heading.\n\nContinue now shows the save it resumes, its scene title and when it was\nsaved in the reader's locale, styled by `--novel-title-detail-*`. The same\nsummary is exported as `SaveSummary`, which the save slots use.\n\nEvery part carries a `data-novel-title-*` attribute (`heading`, `menu`,\n`button` with `data-action`, `label`, `detail`, `footer`, `background`,\n`art`), buttons are positioned and take `--novel-title-button-font-family`,\n`-font-weight`, `-letter-spacing`, `-text-transform`, `-font-variant`,\n`-shadow` and `-hover-shadow`, so the title's own `mix` decorates them:\n\n```tsx\n<NovelPlayer.Title\n\tnovel={novel}\n\theading={<img src={logo} alt=\"The Café\" />}\n\tbackground={<img src={backdrop} alt=\"\" />}\n\tart={<img src={portrait} alt=\"\" />}\n\tfooter=\"A fan work.\"\n\tmix={css({\n\t\t\"& [data-novel-title-button]::before\": {\n\t\t\tcontent: '\"◆\"',\n\t\t\tposition: \"absolute\",\n\t\t\tinsetInlineStart: \"-0.5em\",\n\t\t},\n\t})}\n/>\n```\n\n`art` used to fill the screen behind the menu; pass that image as\n`background` instead."}
|
|
2229
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Name everyone the reader has met when replaying a scene or chapter","body":"Persistent data now records every character a play introduces, in a new\n`introduced` list of character ids. `ctx.introduce(character)` adds the id the\nfirst time a normal play reaches it, and the novel emits `persist` with the\nupdated record as it does for unlocks. Replays never add to it.\n\nA replay (`novel.start({ replay: \"scene\" | \"chapter\", persistent })`) starts\nwith every character in `persistent.introduced` already named, so revisiting a\nscene from the chapter list no longer shows \"???\" for someone the reader knows.\nA character no play has introduced yet keeps the unknown label until the\nreplay reaches their `introduce`. Normal plays still start with no one\nintroduced and keep their own `GameState.introduced`, so a new game reveals\nnames as before.\n\n novel.on(\"persist\", (persistent) => {\n persistent.introduced; // [\"ren\", \"mika\"]\n });\n\nReplaying the scene that introduces a character shows the name from its first\nline, before the line that reveals it.\n\nStored persistent records without `introduced` load with an empty list, so no\nmigration is needed. `DevTools.reset({ introduced: true })` clears the list,\nand `reset()` with no options now clears it too. An extension whose lasting\nslice is named `introduced` now clashes with the record's own field and must\nbe renamed."}
|
|
2230
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Return to the title screen when a play ends","body":"`NovelPlayer.Default` with a `titleScreen` now brings the reader back to the\ntitle instead of only offering \"Play again\". The ending screen still shows\nthe ending's name over the stage, and its button reads \"Back to title\"\n(`labels.backToTitle`, `data-novel-back-to-title`). A chapter or scene replay\nstarted from the title returns there too, whether the reader picks End replay\nor the replay reaches its bound.\n\nThe title it returns to reflects the play: Continue resumes the newest save,\nautosaves included, and the library screens show the chapters, images, music\nand endings the play unlocked. Settings changed during the play carry over.\nWithout `titleScreen`, the ending still offers Play again as before.\n\n <NovelPlayer.Default\n novel={novel}\n {...storage.read()}\n mix={storage.sync()}\n titleScreen={{ heading: \"The Café\" }}\n />\n\nA player you compose yourself opts in with the new `returnsToTitle` prop: the\nending's button and the end of a replay with no play to resume then dispatch\n`novel:title` (`NovelTitleEvent`), carrying the play's persistent data, for you\nto show `NovelPlayer.Title` again. The player context gains `returnsToTitle`\nand `toTitle()`.\n\n <NovelPlayer\n novel={novel}\n start={start}\n returnsToTitle\n mix={on(\"novel:title\", (event) => showTitle(event.persistent))}\n >\n …\n </NovelPlayer>\n\nNo action is needed for existing players."}
|
|
2231
|
+
{"release":"2026.11.24","package":"@sdxc/novel","type":"docs","breaking":false,"title":"Document that replays name every character met in any play","body":"The README now covers the persistent `introduced` list: replays name every character a normal play introduced, `Persistent` lists the field, `DevTools.reset()` accepts `introduced`, and an extension's lasting slice cannot be named `introduced`. This changes documentation only; consumers need not act."}
|
|
2232
|
+
{"release":"2026.11.24","package":"@sdxc/raster","type":"feat","breaking":false,"title":"Paint a fill with an image through imagePattern","body":"A fill can now paint with an image. imagePattern takes decoded RGBA pixels, the shape\n@sdxc/png's decode returns, and an optional affine transform that places the image's pixels\non the canvas. It samples bilinearly and repeats the edge pixels past the image, so filling a\nrounded path draws a screenshot with rounded corners:\n\n import { decode } from \"@sdxc/png\";\n import { Canvas, imagePattern, Path } from \"@sdxc/raster\";\n\n let image = await decode(bytes);\n if (image.status === \"success\") {\n canvas.fillPath(\n Path.roundedRect(600, 120, 720, 450, 18),\n imagePattern({ image: image.data, transform: [1, 0, 0, 1, 600, 120] }),\n );\n }\n\nExisting paints and drawing calls are unchanged."}
|
|
2233
|
+
{"release":"2026.11.24","package":"@sdxc/seo","type":"fix","breaking":false,"title":"Write the card image's alt text for X as well","body":"Before: Seo.Meta wrote og.imageAlt only as og:image:alt, which X does not read, so a card\nshared there had no description for screen-reader users. After: the same text is also written as\ntwitter:image:alt whenever the card has an image. Consumers that already pass og.imageAlt get the\nextra tag with no change; nothing else in the output changes."}
|
|
2234
|
+
{"release":"2026.11.25","package":"@sdxc/novel","type":"feat","breaking":false,"title":"Describe the cast and show it on a Characters screen","body":"`character()` takes a `description` message key, and a new `Characters`\nlibrary screen lists the cast beside the chosen character's portrait, name,\ndescription and every look the stage drew them in:\n\n export const CAST = cast({\n mika: character({\n name: \"cast.mika\",\n description: \"cast.mikaAbout\",\n sprites: { smile: \"/mika/smile.webp\", sad: \"/mika/sad.webp\" },\n }),\n });\n\n <NovelPlayer.Extras>\n <Gallery />\n <Characters />\n </NovelPlayer.Extras>\n\nA character shows as the `unknownName` label, and cannot be picked, until\nthey are `known` or a play introduces them. A sprite stays a locked\nplaceholder until the stage draws the character in it once, in any\nplaythrough; a layered character lists each combination of variants the\nstage drew. Its dialog is wider than the other library screens'.\n\n`NovelPlayer.Default` offers the screen in its Extras menu, and\n`NovelPlayer.Title` adds it to its default screens (Chapters, Gallery,\nCharacters, Memories). When the player offers the screen, a named speaker's\nname on the textbox is a button that opens it on them, through the new\n`showCharacter(id)` on the player context (`character` reads the id it asked\nfor).\n\n`Persistent.unlocked` gains `sprites`, the looks the stage drew, keyed\n`<character>:<sprite>` or `<character>:<layer>=<variant>,…`; stored data\nwithout it reads as none seen. `NovelLibrary` gains `characters`, and\n`NovelLabels` gains `characters` and `characterLooks`. A custom title that\npasses its own screens is unchanged; one relying on the defaults now shows a\nCharacters button."}
|
|
2235
|
+
{"release":"2026.11.25","package":"@sdxc/workers-cache","type":"fix","breaking":false,"title":"Downgrade session-bearing requests without throwing in development","body":"Before: in development (`NODE_ENV=development`, or a request to a local host), the\n`@sdxc/workers-cache` middleware threw `UnsafeCachePolicyError` whenever a page that\ndeclared a public policy, or a targeted CDN lifetime, was requested with a session. A\ndeveloper signed in to their own app saw an error overlay over every public page.\n\nAfter: only a declared response that carries its own `Set-Cookie` throws in development.\nA request that brings a session is downgraded to `private, no-store` and logged as\n`cache.downgraded` (reason `session-with-public-policy` or\n`session-with-shared-targeted-policy`), the same way it always was in production, so the\npage renders uncached for the signed-in visitor.\n\nProduction behavior is unchanged and consumers need no action. Code that caught\n`UnsafeCachePolicyError` in development to detect a session refusal should read the\n`cache.downgraded` log field instead."}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdxc/kit",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.25",
|
|
4
4
|
"description": "The sdxc command line: start a Remix v3 app, generate its files, copy UI components into it and upgrade it",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"remix": "3.2.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "e5f087f34f529f1dcf943b6b99d850de8091dd52",
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
package/templates/app/README.md
CHANGED
|
@@ -59,6 +59,7 @@ Claude Code at it. `sdxc upgrade` keeps its sdxc section current; add your own r
|
|
|
59
59
|
| `app/commands/` | Commands for `sdxc run` |
|
|
60
60
|
| `app/initializers/` | The one instance of each service: database, mailer, router… |
|
|
61
61
|
| `resources/` | Layouts, components and translations (`resources/locales/`) |
|
|
62
|
+
| `resources/css/` | `colors.css`, the app's palette for `@sdxc/ui` |
|
|
62
63
|
| `database/migrations/` | SQL migrations |
|
|
63
64
|
| `database/seed.ts` | The rows `sdxc run db seed` writes into the local database |
|
|
64
65
|
| `config/` | Site settings, security policy, security.txt, API problems |
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The app's colors: the raw `--ui-color-{scale}-{step}` palette every
|
|
3
|
+
* `@sdxc/ui` semantic token (`--ui-neutral-bg-tint`, `--ui-brand-fg` …) and
|
|
4
|
+
* so every component takes its color from. The theme reads these scales from
|
|
5
|
+
* the app, so this file is where the app sets them: change a scale here and
|
|
6
|
+
* every surface, border and control follows.
|
|
7
|
+
*
|
|
8
|
+
* The document imports it after `@sdxc/ui/reset.css` and before
|
|
9
|
+
* `@sdxc/ui/theme.css`, the order the cascade needs. All five scales share
|
|
10
|
+
* one lightness ramp (50 lightest -> 950 darkest), so a badge, a button and
|
|
11
|
+
* a border line up at the same step; only hue and chroma vary. Neutral is an
|
|
12
|
+
* untinted grey and brand a plain blue, a starting point for the app's own
|
|
13
|
+
* hues, and chroma stays inside the sRGB gamut so each value renders as
|
|
14
|
+
* declared.
|
|
15
|
+
*/
|
|
16
|
+
:root {
|
|
17
|
+
--ui-color-neutral-50: oklch(0.98 0 0);
|
|
18
|
+
--ui-color-neutral-100: oklch(0.96 0 0);
|
|
19
|
+
--ui-color-neutral-200: oklch(0.91 0 0);
|
|
20
|
+
--ui-color-neutral-300: oklch(0.83 0 0);
|
|
21
|
+
--ui-color-neutral-400: oklch(0.73 0 0);
|
|
22
|
+
--ui-color-neutral-500: oklch(0.62 0 0);
|
|
23
|
+
--ui-color-neutral-600: oklch(0.52 0 0);
|
|
24
|
+
--ui-color-neutral-700: oklch(0.42 0 0);
|
|
25
|
+
--ui-color-neutral-800: oklch(0.32 0 0);
|
|
26
|
+
--ui-color-neutral-900: oklch(0.24 0 0);
|
|
27
|
+
--ui-color-neutral-950: oklch(0.16 0 0);
|
|
28
|
+
|
|
29
|
+
--ui-color-brand-50: oklch(0.98 0.012 250);
|
|
30
|
+
--ui-color-brand-100: oklch(0.96 0.03 250);
|
|
31
|
+
--ui-color-brand-200: oklch(0.91 0.06 250);
|
|
32
|
+
--ui-color-brand-300: oklch(0.83 0.1 250);
|
|
33
|
+
--ui-color-brand-400: oklch(0.73 0.14 250);
|
|
34
|
+
--ui-color-brand-500: oklch(0.62 0.17 250);
|
|
35
|
+
--ui-color-brand-600: oklch(0.52 0.19 250);
|
|
36
|
+
--ui-color-brand-700: oklch(0.42 0.16 250);
|
|
37
|
+
--ui-color-brand-800: oklch(0.32 0.12 250);
|
|
38
|
+
--ui-color-brand-900: oklch(0.24 0.09 250);
|
|
39
|
+
--ui-color-brand-950: oklch(0.16 0.06 250);
|
|
40
|
+
|
|
41
|
+
--ui-color-danger-50: oklch(0.98 0.02 25);
|
|
42
|
+
--ui-color-danger-100: oklch(0.96 0.05 25);
|
|
43
|
+
--ui-color-danger-200: oklch(0.91 0.09 25);
|
|
44
|
+
--ui-color-danger-300: oklch(0.83 0.13 25);
|
|
45
|
+
--ui-color-danger-400: oklch(0.73 0.16 25);
|
|
46
|
+
--ui-color-danger-500: oklch(0.62 0.18 25);
|
|
47
|
+
--ui-color-danger-600: oklch(0.52 0.18 25);
|
|
48
|
+
--ui-color-danger-700: oklch(0.42 0.16 25);
|
|
49
|
+
--ui-color-danger-800: oklch(0.32 0.13 25);
|
|
50
|
+
--ui-color-danger-900: oklch(0.24 0.09 25);
|
|
51
|
+
--ui-color-danger-950: oklch(0.16 0.06 25);
|
|
52
|
+
|
|
53
|
+
--ui-color-warning-50: oklch(0.98 0.02 85);
|
|
54
|
+
--ui-color-warning-100: oklch(0.96 0.05 85);
|
|
55
|
+
--ui-color-warning-200: oklch(0.91 0.08 85);
|
|
56
|
+
--ui-color-warning-300: oklch(0.83 0.12 85);
|
|
57
|
+
--ui-color-warning-400: oklch(0.73 0.15 85);
|
|
58
|
+
--ui-color-warning-500: oklch(0.62 0.16 85);
|
|
59
|
+
--ui-color-warning-600: oklch(0.52 0.16 85);
|
|
60
|
+
--ui-color-warning-700: oklch(0.42 0.14 85);
|
|
61
|
+
--ui-color-warning-800: oklch(0.32 0.11 85);
|
|
62
|
+
--ui-color-warning-900: oklch(0.24 0.08 85);
|
|
63
|
+
--ui-color-warning-950: oklch(0.16 0.05 85);
|
|
64
|
+
|
|
65
|
+
--ui-color-success-50: oklch(0.98 0.02 152);
|
|
66
|
+
--ui-color-success-100: oklch(0.96 0.05 152);
|
|
67
|
+
--ui-color-success-200: oklch(0.91 0.09 152);
|
|
68
|
+
--ui-color-success-300: oklch(0.83 0.13 152);
|
|
69
|
+
--ui-color-success-400: oklch(0.73 0.16 152);
|
|
70
|
+
--ui-color-success-500: oklch(0.62 0.15 152);
|
|
71
|
+
--ui-color-success-600: oklch(0.52 0.126 152);
|
|
72
|
+
--ui-color-success-700: oklch(0.42 0.1 152);
|
|
73
|
+
--ui-color-success-800: oklch(0.32 0.076 152);
|
|
74
|
+
--ui-color-success-900: oklch(0.24 0.057 152);
|
|
75
|
+
--ui-color-success-950: oklch(0.16 0.038 152);
|
|
76
|
+
}
|