Skip to content

Commit e19d38a

Browse files
committed
chore: update deps
1 parent cd05903 commit e19d38a

108 files changed

Lines changed: 2477 additions & 1963 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
build: pnpm run ci:build
1717
# The Build step above already produced a fresh dist/ for this exact
18-
# checkout, so skip `test`'s own `build && vitest` running plain
18+
# checkout, so skip `test`'s own `build && vitest` - running plain
1919
# vitest halves the number of full-monorepo `turbo run build` passes
2020
# per job, which is where the flaky Windows native-toolchain crash
2121
# (see scripts/ci-retry.ts) shows up.

AGENTS.md

Lines changed: 40 additions & 40 deletions
Large diffs are not rendered by default.

alias.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export const alias = {
121121
'@devframes/plugin-assets': p('assets/src/index.ts'),
122122
}
123123

124-
// update tsconfig.base.json CSS aliases exist for Vite resolution only;
124+
// update tsconfig.base.json - CSS aliases exist for Vite resolution only;
125125
// TypeScript resolves `*.css` side-effect imports through ambient shims.
126126
const raw = fs.readFileSync(join(root, 'tsconfig.base.json'), 'utf-8').trim()
127127
const tsconfig = JSON.parse(raw)

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export function devframeNav(prefix = ''): DefaultTheme.NavItem[] {
128128
text: 'Guide',
129129
items: [
130130
...guideItems(prefix),
131-
{ text: 'Examples', items: examplesItems(prefix) },
131+
{ text: 'Examples', link: `${prefix}/examples/` },
132132
],
133133
},
134134
{

examples/a11y-messages-playground/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A11y × Messages Playground
22

33
A focused hub playground for testing **[`@devframes/plugin-a11y`](../../plugins/a11y)**
4-
alongside **[`@devframes/plugin-messages`](../../plugins/messages)** and, above
4+
alongside **[`@devframes/plugin-messages`](../../plugins/messages)** - and, above
55
all, the **message → dock navigation** they share.
66

77
Where [`vite-devframe-hub`](../vite-devframe-hub) mounts every
@@ -25,27 +25,27 @@ URL.
2525

2626
The window is split in two:
2727

28-
- **Left App under test.** A tiny client-side-routed app whose every route is
28+
- **Left - App under test.** A tiny client-side-routed app whose every route is
2929
broken on purpose:
30-
- `/` a missing `alt`, an icon-only button, an empty link, a skipped heading
30+
- `/` - a missing `alt`, an icon-only button, an empty link, a skipped heading
3131
level
32-
- `/images` a gallery of `alt`-less images
33-
- `/forms` inputs and a select with no labels
34-
- `/contrast` low-contrast text and a custom control with no accessible name
35-
- **Right Devtools.** The **A11y Inspector** and **Messages** docks.
32+
- `/images` - a gallery of `alt`-less images
33+
- `/forms` - inputs and a select with no labels
34+
- `/contrast` - low-contrast text and a custom control with no accessible name
35+
- **Right - Devtools.** The **A11y Inspector** and **Messages** docks.
3636

3737
## What to try
3838

39-
1. **Live scanning** open the **A11y Inspector**. It scans the left pane on
39+
1. **Live scanning** - open the **A11y Inspector**. It scans the left pane on
4040
load; the Dashboard shows the totals and severity breakdown.
41-
2. **Route tracking** click the route tabs in the app under test (`Home`,
41+
2. **Route tracking** - click the route tabs in the app under test (`Home`,
4242
`Images`, `Forms`, `Contrast`). Each navigation is a `history.pushState`,
43-
which the agent patches the Violations tab accrues one group per route.
44-
3. **Select + highlight** hover a violation to ring the element in the page;
43+
which the agent patches - the Violations tab accrues one group per route.
44+
3. **Select + highlight** - hover a violation to ring the element in the page;
4545
tick a violation's checkbox to highlight all its elements with numbered
4646
badges, then hit **Generate fix prompts** in the nav for a paste-ready AI
4747
prompt covering everything you selected.
48-
4. **Message → dock navigation** *(the headline)* open the **Messages** dock.
48+
4. **Message → dock navigation** *(the headline)* - open the **Messages** dock.
4949
Each scan mirrors a summary entry plus one entry per violated rule, and every
5050
entry carries a navigation action. Select an entry and click **View in a11y
5151
inspector** (or **Open a11y dashboard**): the hub switches the focused dock to
@@ -54,7 +54,7 @@ The window is split in two:
5454

5555
## How it's wired
5656

57-
`src/a11y-messages-playground.ts` is the whole host a ~120-line Vite plugin
57+
`src/a11y-messages-playground.ts` is the whole host - a ~120-line Vite plugin
5858
that runs `@devframes/hub` in the dev server, mounts the two plugins as docks,
5959
and attaches the a11y agent as the a11y dock's `clientScript`:
6060

@@ -72,13 +72,13 @@ a11yMessagesPlayground({
7272
scans the app under test) and renders the dock rail from `devframe:docks` shared
7373
state. The navigation itself rides existing hub primitives: the messages panel
7474
calls `hub:docks:activate`, the hub broadcasts it, and the client host switches
75-
the focused dock the same path a manual dock click takes.
75+
the focused dock - the same path a manual dock click takes.
7676

7777
## Files
7878

7979
| File | Role |
8080
|---|---|
81-
| `src/a11y-messages-playground.ts` | The Vite host hub context, static + connection-meta mounts, side-car WS, instance-registry registration |
81+
| `src/a11y-messages-playground.ts` | The Vite host - hub context, static + connection-meta mounts, side-car WS, instance-registry registration |
8282
| `vite.config.ts` | Mounts a11y + messages; attaches the a11y agent as its dock's `clientScript` |
8383
| `src/client/main.ts` | Boots the client host, renders the dock rail + iframe stage |
8484
| `src/client/app-under-test.ts` | The intentionally-broken, multi-route app the agent scans |

examples/a11y-messages-playground/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ <h1 class="m0 flex items-center gap-1.5 shrink-0 text-sm font-semibold select-no
4242
</header>
4343

4444
<div class="grid grid-cols-[1fr_1.1fr] min-h-0 flex-1">
45-
<!-- Left: the app under test plain page content the a11y agent scans -->
45+
<!-- Left: the app under test - plain page content the a11y agent scans -->
4646
<section class="min-w-0 of-auto border-r border-base p5">
4747
<p class="mt0 mb3 text-[0.68rem] uppercase tracking-wider color-muted">App under test</p>
4848
<div id="app-under-test"></div>
4949
</section>
5050

51-
<!-- Right: the devtools a11y + messages docks -->
51+
<!-- Right: the devtools - a11y + messages docks -->
5252
<div class="grid grid-cols-[210px_1fr] min-w-0 min-h-0">
5353
<aside class="flex flex-col gap-0.5 of-auto border-r border-base bg-secondary p2">
5454
<h2 class="px2 py1 text-[0.68rem] uppercase tracking-wider color-muted">Docks</h2>

examples/a11y-messages-playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "0.8.2",
55
"private": true,
6-
"description": "A focused hub playground that pairs @devframes/plugin-a11y with @devframes/plugin-messages over an intentionally-broken, multi-route app under test — for exercising a11y scanning, route tracking, and message→dock navigation.",
6+
"description": "Hub playground that pairs the a11y and messages plugins over a demo app full of accessibility issues.",
77
"homepage": "https://github.com/devframes/devframe/tree/main/examples/a11y-messages-playground",
88
"scripts": {
99
"dev": "pnpm -C ../.. run build && vite --host",

examples/a11y-messages-playground/src/a11y-messages-playground.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ export interface A11yMessagesPlaygroundOptions {
1616
devframes?: DevframeDefinition[]
1717
/**
1818
* Per-dock client scripts, keyed by devframe id. Attached to the mounted
19-
* iframe dock so the hub client runtime imports them into the host page
19+
* iframe dock so the hub client runtime imports them into the host page -
2020
* this is how the a11y inspector's in-page agent gets into the page it scans.
2121
*/
2222
clientScripts?: Record<string, ClientScriptEntry>
2323
}
2424

2525
/**
26-
* A tiny Vite plugin that runs `@devframes/hub` inside the Vite dev server
26+
* A tiny Vite plugin that runs `@devframes/hub` inside the Vite dev server -
2727
* the same shape as `examples/hub-vite`, trimmed to the two plugins this
2828
* playground pairs (a11y + messages). One `initHub()` call assembles the whole
2929
* hub: it mounts each devframe as a dock (attaching the a11y agent as its
@@ -45,7 +45,7 @@ export function a11yMessagesPlayground(options: A11yMessagesPlaygroundOptions =
4545
},
4646

4747
async configureServer(server: ViteDevServer) {
48-
// Vite re-invokes `configureServer` on restart tear the old hub down so
48+
// Vite re-invokes `configureServer` on restart - tear the old hub down so
4949
// we don't leak the WS port or leave a ghost registry record behind.
5050
await hub?.close().catch(() => {})
5151

examples/a11y-messages-playground/src/client/app-under-test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The "app under test": an intentionally-inaccessible, client-side-routed mini
22
// app the a11y agent scans. Each route seeds a different family of axe
3-
// violations, and navigating between them (History API pushState which the
3+
// violations, and navigating between them (History API pushState - which the
44
// a11y agent patches) exercises the inspector's per-route tracking.
55
//
66
// Keep the chrome (the route nav) accessible so the deliberate violations stay
@@ -9,7 +9,7 @@
99
interface Route {
1010
path: string
1111
label: string
12-
/** What the route is designed to make axe flag shown as a hint. */
12+
/** What the route is designed to make axe flag - shown as a hint. */
1313
hint: string
1414
render: () => string
1515
}
@@ -70,7 +70,7 @@ const ROUTES: Route[] = [
7070
render: () => `
7171
<h1 style="color:#b8b8b8;background:#ffffff">Low-contrast heading</h1>
7272
<p style="color:#a9a9a9;background:#ffffff">
73-
This paragraph sets light grey text on a white background well below
73+
This paragraph sets light grey text on a white background - well below
7474
the WCAG AA contrast ratio for body text.
7575
</p>
7676
<span style="color:#f0c419;background:#ffffff;padding:4px 8px">

examples/a11y-messages-playground/src/client/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ function isIframeDock(d: DevframeDockEntry): d is DevframeDockEntry & { type: 'i
3232
async function main() {
3333
setStatus('Connecting…')
3434

35-
// The app under test renders immediately it's plain page content the a11y
35+
// The app under test renders immediately - it's plain page content the a11y
3636
// agent (imported below as the a11y dock's client script) will scan.
3737
mountAppUnderTest(appEl)
3838

3939
const rpc = await connectDevframe({ baseURL: HUB_BASE })
4040
setStatus(`Connected · backend=${rpc.connectionMeta.backend}`, 'ready')
4141

4242
// Boot the hub client runtime: it publishes the shared client context and
43-
// imports each dock's client script into this page here, the a11y agent,
43+
// imports each dock's client script into this page - here, the a11y agent,
4444
// which then scans this document live and mirrors findings into the messages
4545
// feed. The rail below reads the same `devframe:docks` shared state.
4646
const host = await createDevframeClientHost({ rpc })

0 commit comments

Comments
 (0)