Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/devtools-keyboard-walk.md

This file was deleted.

28 changes: 0 additions & 28 deletions .changeset/open-modal-owns-keys.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ui-playbook-dom-controls.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ui-playbook-keyboard-check.md

This file was deleted.

35 changes: 35 additions & 0 deletions packages/browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
# @typeonce/ritmo-browser

## 0.25.0

### Minor Changes

- cd6bb2e: **Breaking (a fix to 0.24's modal rule): `Keyboard.actions` leaves every key to the page while a modal dialog is open, wherever focus is.** In 0.24 a key was the page's only when its target was inside the modal. When a redraw deleted the focused button inside an open `<dialog>`, focus fell to `<body>` and the game took the keys again: Z and Space pressed game actions behind the menu, and Escape pressed the game's action and was `preventDefault`-ed, so the dialog did not close.

A modal is now open when the key's document holds a `<dialog>` opened with `showModal()`, or an `aria-modal="true"` element that is shown (`checkVisibility({ visibilityProperty: true, opacityProperty: true })`). An `aria-modal` element still in the page but closed (`hidden`, `display: none`, `visibility: hidden`, a closed popover, inside a closed `<dialog>`) leaves the keys with the game, and so does one fading out at `opacity: 0`. `Keyboard.presses` is unchanged.

What a game may need to change:

- An `aria-modal="true"` element left shown during play now takes every key. Hide it when its menu closes, or remove the attribute:

```ts
menu.hidden = true // or menu.hidePopover(), or menu.removeAttribute("aria-modal")
```

- A script that hides an `aria-modal` menu on Escape runs before a `window` host hears the key, so the game still gets that Escape. Prevent the key it handled:

```ts
document.addEventListener("keydown", (event) => {
if (event.key === "Escape" && menu.matches(":popover-open")) {
event.preventDefault()
menu.hidePopover()
}
})
```

- A game that merged a dialog's Escape with the game's Escape action (both arrived in one frame with focus on `<body>`) now gets only the dialog's.

### Patch Changes

- Updated dependencies [cd6bb2e]
- Updated dependencies [989049f]
- @typeonce/ritmo@0.25.0

## 0.24.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typeonce/ritmo-browser",
"version": "0.24.0",
"version": "0.25.0",
"description": "Browser fixed-step loop, keyboard, gamepad, pointer, and touch actions, merged input, local multiplayer, and input capture for Ritmo",
"author": "Sandro Maglione",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @typeonce/ritmo

## 0.25.0

### Patch Changes

- cd6bb2e: The `ritmo` skill's UI playbook (`ui-and-render.md`) gains two steps for DOM controls and menus: build each control once and update it in place, never rewriting a region that holds one, and give it a name a test can find; a menu that stops play is a modal (`showModal()` on a `<dialog>`, or an `aria-modal` element that moves focus in, keeps it there, and makes the page behind inert itself), whose `cancel` and `close` are intents, with a `popover="manual"` for a splash or wipe over it and a modal dialog of its own for a layer the player presses.
- 989049f: The `ritmo` skill's UI playbook (`ui-and-render.md`) checks a page with DOM controls with `ritmo-devtools keyboard`, on a route through every screen that shows them.

## 0.24.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typeonce/ritmo",
"version": "0.24.0",
"version": "0.25.0",
"description": "The agent-first, type-safe ECS runtime for TypeScript",
"author": "Sandro Maglione",
"license": "MIT",
Expand Down
13 changes: 13 additions & 0 deletions packages/devtools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @typeonce/ritmo-devtools

## 0.25.0

### Minor Changes

- 989049f: `ritmo-devtools keyboard [--url <url>] [--route <file>] [--json]` plays the game's page by keyboard in Chromium and fails on what breaks keyboard play: a menu open with focus outside it, Tab leaving an open menu, a control with no accessible name, Enter or Space not pressing the focused control, a press that drops focus to `<body>`, and a visible control the keyboard cannot reach. Each failure names the check, the screen, the control (role, name, selector), what was seen, and the fix; a check it cannot decide is printed as not checked, never as passed, and a screen on which nothing could be checked fails. Without `--url` it serves the working directory with the game's own Vite config. A route file lists the screens to visit and how to reach them (key presses, clicks, `waitFor` a named control, fixed waits); without one, the start page is the only screen. A loaded screen is walked as soon as it stops changing, and the real presses run on up to four pages at once, with any press that did not keep focus run again alone before it is reported. It presses controls for real to check focus, so a route marks what must not be pressed. It uses the optional `playwright` and `vite` peers `verify` already uses, at the same versions.

### Patch Changes

- Updated dependencies [cd6bb2e]
- Updated dependencies [989049f]
- @typeonce/ritmo@0.25.0
- @typeonce/ritmo-netcode@0.25.0

## 0.24.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typeonce/ritmo-devtools",
"version": "0.24.0",
"version": "0.25.0",
"description": "Headless debug sessions, trace history, text reports, replays, and fuzzing for Ritmo runtimes",
"author": "Sandro Maglione",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/src/internal/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
* `package.json` by `scripts/sync-version.ts` (run by \`pnpm version-packages\`)
* and checked by a test.
*/
export const libraryVersion = "0.24.0"
export const libraryVersion = "0.25.0"
8 changes: 8 additions & 0 deletions packages/math/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @typeonce/ritmo-math

## 0.25.0

### Patch Changes

- Updated dependencies [cd6bb2e]
- Updated dependencies [989049f]
- @typeonce/ritmo@0.25.0

## 0.24.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/math/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typeonce/ritmo-math",
"version": "0.24.0",
"version": "0.25.0",
"description": "The 2D helpers most Ritmo games would otherwise rewrite (vectors, angles, swept collision, flow field), plain data in and out, built on Ops so they replay the same on every engine",
"author": "Sandro Maglione",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/netcode/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @typeonce/ritmo-netcode

## 0.25.0

### Patch Changes

- Updated dependencies [cd6bb2e]
- Updated dependencies [989049f]
- @typeonce/ritmo@0.25.0

## 0.24.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/netcode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typeonce/ritmo-netcode",
"version": "0.24.0",
"version": "0.25.0",
"description": "Rollback and lockstep sessions over any transport for Ritmo: input timelines, checkpoint history, pacing, resync, and desync checks",
"author": "Sandro Maglione",
"license": "MIT",
Expand Down
4 changes: 4 additions & 0 deletions packages/oxlint-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @typeonce/oxlint-plugin-ritmo

## 0.25.0

No changes in this release.

## 0.24.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/oxlint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typeonce/oxlint-plugin-ritmo",
"version": "0.24.0",
"version": "0.25.0",
"description": "Oxlint rules for Ritmo games: deterministic, headless simulation code and checked runtime results",
"author": "Sandro Maglione",
"license": "MIT",
Expand Down
6 changes: 6 additions & 0 deletions packages/pixi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @typeonce/ritmo-pixi

## 0.25.0

### Patch Changes

- @typeonce/ritmo-render@0.25.0

## 0.24.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/pixi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typeonce/ritmo-pixi",
"version": "0.24.0",
"version": "0.25.0",
"description": "Pixi container adapter for Ritmo render-node registries",
"author": "Sandro Maglione",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/render/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @typeonce/ritmo-render

## 0.25.0

### Patch Changes

- Updated dependencies [cd6bb2e]
- Updated dependencies [989049f]
- @typeonce/ritmo@0.25.0

## 0.24.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/render/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typeonce/ritmo-render",
"version": "0.24.0",
"version": "0.25.0",
"description": "Renderer-agnostic entity-to-node mirroring for Ritmo",
"author": "Sandro Maglione",
"license": "MIT",
Expand Down
4 changes: 4 additions & 0 deletions packages/tools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @typeonce/ritmo-tools

## 0.25.0

No changes in this release.

## 0.24.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typeonce/ritmo-tools",
"version": "0.24.0",
"version": "0.25.0",
"description": "Asset tools for games made with Ritmo, for agents: fixes AI-made pixel art and animation sheets onto a true pixel grid and a palette, makes normal maps for art a game lights, keeps game sounds as JSON recipes, writes game music as JSON songs built around a hum, and draws pixel art effects as code, each with a review page for a person, pixel art included",
"author": "Sandro Maglione",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/src/internal/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
* `package.json` by `scripts/sync-version.ts` (run by `pnpm version-packages`)
* and checked by a test.
*/
export const toolsVersion = "0.24.0"
export const toolsVersion = "0.25.0"