@reqvire-org/ads 0.5.5 → 0.5.7

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.
@@ -200,7 +200,10 @@ a recipe never creates a state machine.
200
200
  drawn on the box while the input has keyboard focus. The input's part,
201
201
  declared right before the box, takes `drawnBy: "<the box's part>"`: it takes
202
202
  no room and lies, invisible, over the box at the box's frame size, so pointer
203
- and keyboard still reach the real input. A part rendered once per list item
203
+ and keyboard still reach the real input. A field inside a box that looks like
204
+ the field (a composer's rounded box around its textarea) shows its focus on
205
+ the box: the box's root takes `focus: { within: ".the-field" }` and the field
206
+ part `focus: { shownBy: "container" }`; never a square ring inside the box. A part rendered once per list item
204
207
  (`tabs.map(…)`) is declared `repeat: true`: every instance takes the part's
205
208
  construction, and `extent: "fill"` shares the row among them. A visual part may sit
206
209
  inside such a part: the owner reads it by its name (`recipe.parts.<name>`,
@@ -200,7 +200,10 @@ a recipe never creates a state machine.
200
200
  drawn on the box while the input has keyboard focus. The input's part,
201
201
  declared right before the box, takes `drawnBy: "<the box's part>"`: it takes
202
202
  no room and lies, invisible, over the box at the box's frame size, so pointer
203
- and keyboard still reach the real input. A part rendered once per list item
203
+ and keyboard still reach the real input. A field inside a box that looks like
204
+ the field (a composer's rounded box around its textarea) shows its focus on
205
+ the box: the box's root takes `focus: { within: ".the-field" }` and the field
206
+ part `focus: { shownBy: "container" }`; never a square ring inside the box. A part rendered once per list item
204
207
  (`tabs.map(…)`) is declared `repeat: true`: every instance takes the part's
205
208
  construction, and `extent: "fill"` shares the row among them. A visual part may sit
206
209
  inside such a part: the owner reads it by its name (`recipe.parts.<name>`,
@@ -200,7 +200,10 @@ a recipe never creates a state machine.
200
200
  drawn on the box while the input has keyboard focus. The input's part,
201
201
  declared right before the box, takes `drawnBy: "<the box's part>"`: it takes
202
202
  no room and lies, invisible, over the box at the box's frame size, so pointer
203
- and keyboard still reach the real input. A part rendered once per list item
203
+ and keyboard still reach the real input. A field inside a box that looks like
204
+ the field (a composer's rounded box around its textarea) shows its focus on
205
+ the box: the box's root takes `focus: { within: ".the-field" }` and the field
206
+ part `focus: { shownBy: "container" }`; never a square ring inside the box. A part rendered once per list item
204
207
  (`tabs.map(…)`) is declared `repeat: true`: every instance takes the part's
205
208
  construction, and `extent: "fill"` shares the row among them. A visual part may sit
206
209
  inside such a part: the owner reads it by its name (`recipe.parts.<name>`,
@@ -44,8 +44,9 @@ function quantityReading(grammar, read) {
44
44
  return VALID;
45
45
  }
46
46
  case "exact": {
47
- const zeroLength = read.type === "number" && read.value === 0 && grammar.types.includes("length");
48
- if (!grammar.types.includes(read.type) && !zeroLength)
47
+ if (read.type === "number" && read.value === 0 && grammar.types.includes("length") && !grammar.types.includes("number"))
48
+ return { kind: "invalid", reason: "a unitless 0 is invalid inside calc(), where ADS composes lengths: write 0px" };
49
+ if (!grammar.types.includes(read.type))
49
50
  return { kind: "invalid", reason: `it is a ${read.type}, not a ${typeList(grammar.types)}` };
50
51
  if (grammar.integer && !Number.isInteger(read.value))
51
52
  return { kind: "invalid", reason: `${read.value} is not an integer` };
package/docs/CHANGELOG.md CHANGED
@@ -1,59 +1,94 @@
1
1
  # Changelog
2
2
 
3
- ## 0.5.5
3
+ ## 0.5.7
4
4
 
5
5
  <!-- ads-local-tests:start -->
6
- Local verification: **2145/2145 passed** with `bun run test`.
7
- Tested commit: `a1b9127dfe6de83db6fabc20e94d4417592c6a13`; Bun 1.4.4.
8
- Completed 2026-11-23T20:28:21.165Z (1386 seconds).
6
+ Hot patch: the unit and integration groups; the browser group was not run.
7
+ Local verification: **1837/1837 passed** with `bun run test:hotpatch`.
8
+ Tested commit: `cca999f569740c85f48dd4d5e7dbc1865d574eea`; Bun 1.4.4.
9
+ Completed 2026-11-24T00:55:50.418Z (1243 seconds).
9
10
 
10
11
  <!-- ads-local-test-proof
11
12
  {
12
13
  "schema": 3,
13
- "version": "0.5.5",
14
- "commit": "a1b9127dfe6de83db6fabc20e94d4417592c6a13",
15
- "sourceSha256": "8f973fc1c8979432b1a17460cf6afc9224738200e9453c9a74dd5a80a4049bc9",
16
- "command": "bun run test",
14
+ "version": "0.5.7",
15
+ "commit": "cca999f569740c85f48dd4d5e7dbc1865d574eea",
16
+ "sourceSha256": "c3f0a8e0f1c23ee650ab2b700898de246414d595d743e7ce9cb0377ae753ccd0",
17
+ "command": "bun run test:hotpatch",
18
+ "scope": "hotpatch",
17
19
  "result": "pass",
18
- "tests": 2145,
19
- "pass": 2145,
20
+ "tests": 1837,
21
+ "pass": 1837,
20
22
  "fail": 0,
21
23
  "skipped": 0,
22
24
  "groups": [
23
25
  {
24
26
  "name": "unit",
25
- "tests": 838,
26
- "pass": 838,
27
+ "tests": 841,
28
+ "pass": 841,
27
29
  "fail": 0,
28
30
  "skipped": 0,
29
- "reportSha256": "52885ba2e12add744abc6582e516ac140cb747e7c01f567d68fe99f6afdf3b71"
31
+ "reportSha256": "5b97a4e1c85fc51f04172469a6f77d08ec7a70e183611e01cc6b7e5398074962"
30
32
  },
31
33
  {
32
34
  "name": "integration",
33
- "tests": 987,
34
- "pass": 987,
35
- "fail": 0,
36
- "skipped": 0,
37
- "reportSha256": "ccba44f357a6492ebc1f2584517bc15c6f2fc39d27ff2b33f8c188c634abc6e8"
38
- },
39
- {
40
- "name": "browser",
41
- "tests": 320,
42
- "pass": 320,
35
+ "tests": 996,
36
+ "pass": 996,
43
37
  "fail": 0,
44
38
  "skipped": 0,
45
- "reportSha256": "d699857990e68caf361135bde7a3f3620f1d99977d2bdcd005445ce7571cda75"
39
+ "reportSha256": "a39854e2549b1a324f75348c6a2094976fcb3f521133c09374b8226ebc7cffcb"
46
40
  }
47
41
  ],
48
42
  "testOverrides": {},
49
43
  "bun": "1.4.4",
50
- "completedAt": "2026-11-23T20:28:21.165Z",
51
- "durationMs": 1385759,
52
- "logSha256": "106e7bdbd0235b8f6e9da4b654d341f505f5476eb588b0605bfcb047c1fe5316"
44
+ "completedAt": "2026-11-24T00:55:50.418Z",
45
+ "durationMs": 1242673,
46
+ "logSha256": "de38fe3e329fd2a9695d32d31ad5c65188a07e974ec23e624dcd9b880b2df32b"
53
47
  }
54
48
  -->
55
49
  <!-- ads-local-tests:end -->
56
50
 
51
+ - **A value beside its action no longer breaks words.** In a wrapping row an `extent: "fill"` part keeps its longest
52
+ word: it shrinks beside the other items down to that, and below it the row wraps (the action drops under the text
53
+ on a phone or with enlarged text, and stays beside it on a desktop). Truncating text and parts with their own frame
54
+ keep the zero minimum.
55
+ - **Focus around a field.** A box shows its field's keyboard focus: `focus: { within: ".field" }` on its root draws the
56
+ focus profile's outline around the whole box while that field has keyboard focus, and the field, `focus: { shownBy:
57
+ "container" }`, draws none of its own (a composer's rounded box instead of a square ring inside it). A field that
58
+ gives up its outline with no box showing it fails (`source/focus-unshown`).
59
+ - **A native button that is its own recipe's root keeps its look.** Its parent no longer resets it (the parent's
60
+ `.parent > .part` reset outranked the button's own fill, ring and colour); its own construction resets it.
61
+ - **End alignment:** a row whose content stops short of its end (a window's bar of dots and a title) is not
62
+ compared: its content ends ragged, as text does.
63
+ - **A length token written as a bare `0` fails.** Inside `calc()`, where ADS composes spacing and sizes, a unitless 0
64
+ made the whole value invalid without notice; a length role states its unit (`0px`).
65
+ - **Settings that do nothing are reviewed:** `textAlign` or block wrapping on a text part rendered as an inline
66
+ element with no box of its own (`review/text-layout-inline`), and a composite's text profile on a root with no text
67
+ parts (`review/text-profile-unreached`).
68
+ - **A measured popover fades out where it was.** Its measured position is the element's own, not only its open
69
+ state's: a closing tooltip no longer jumps to the viewport's corner while it fades.
70
+ - **Showcase:** scenario containers at a fixed width or height keep their 1 px rule (they showed a thick black
71
+ border in projects' previews); measured specimen sections keep their item spacing.
72
+
73
+ ## 0.5.6
74
+
75
+ - **Gap gutters work.** A spatial profile with a gap gutter (`gutters: { cards: { gap } }`) failed as "Undefined or
76
+ cyclic spatial token 0": the grid facts read its absent cell insets as a token.
77
+ - **A block-start modal card** keeps the layer profile's `edgeGap` from the top and its `viewportMargin` at the
78
+ sides, and **an open card keeps the page's scrollbar room** (`scrollbar-gutter: stable`, keyed to the card), so
79
+ the page behind it does not shift.
80
+ - **A press scale under several states.** The motion profile's scale endpoint may apply under more than one root
81
+ state (a play button that grows on hover and on keyboard focus).
82
+ - **End alignment:** a rule only above or below a block (a hairline under a window's bar) is a divider, not the
83
+ block's edge; the block lines up by where its content ends.
84
+ - **Native controls:** a rounded field without a border lost the browser's border reset, because its corner radius
85
+ read as a border the construction draws.
86
+ - **Showcase:** every token sample is held to its card (a large inset, gap or length is drawn at the card's size); a
87
+ control size shorter than a line of text draws its bar without a label; the artwork catalogue draws each size at
88
+ the asset's own width, so a wordmark is as wide as its shape.
89
+
90
+ ## 0.5.5
91
+
57
92
  ### Fixed
58
93
 
59
94
  - **A drawing picked by state.** `const glyph = open ? closeGlyph : arrowGlyph` drawn with `glyph.source` was refused
package/docs/LANGUAGE.md CHANGED
@@ -241,6 +241,8 @@ them all.
241
241
  | `at: { <condition>: { frame: { rules?, corners? } } }` | region root with a `frame` | under the named condition of the root's spatial profile (`@media (width < bound)`), only the border and corner writes that differ: a divider that is the block-end edge when wide and the inline-start edge when narrow | a condition the spatial profile does not name (`construction/condition-unknown`); `rules` under the condition without `rules` on the frame; more than one condition |
242
242
  | `accessibility: { boundary: "visible-label" \| "boundary-on-interaction", reason }` | control part (`frame: "control"`, a text-like input, textarea or select) | nothing: its border contrast error becomes the review item `boundary-identified-otherwise`; acceptance enforces human approval | another kind, a reason outside 20–300 characters (`accessibility-declaration-invalid`); another part (`accessibility-declaration-unsupported`); an approver, date or other field (`field-unsupported`) |
243
243
  | `focus: { of: "<sibling part>" }` | region part | the nearest focus profile's outline on this part while the named part of the same parent has keyboard focus (`<parent>:has(> <control>:focus-visible) > <part>`): the drawn box of a checkbox, radio or switch whose native `<input>` is visually hidden. The owner keeps the native control focusable and in the same parent | `of` names the part itself or no part of the same parent (`spec/value-invalid`) |
244
+ | `focus: { within: ".field" }` | root | the nearest focus profile's outline on the root while the named field inside it has keyboard focus (`&:has(.field:focus-visible)`): a composer's box around its textarea. Only that field's focus: a button inside the box shows its own | anything but one class selector (`spec/value-invalid`) |
245
+ | `focus: { shownBy: "container" }` | region part (a text field) | no focus outline of its own: the root around it names it with `focus: { within }` and draws the indicator around the whole field | no root of the same component shows it (`source/focus-unshown`: its keyboard focus would be invisible) |
244
246
  | `drawnBy: "<sibling part>"` | region part holding a native control | the native control (a checkbox's `<input>`) is drawn by the named part: `position: absolute`, the drawing part's frame `inlineSize` and `blockSize`, no margin, `opacity: 0`, laid over that part, so it takes no room in the row and pointer and keyboard still reach the real control. Its states still reach the drawing part (`:has(> .input:checked)`) | the named part is not declared right after it, does not show its focus (`focus: { of }`) (`spec/value-invalid`), or its frame states no `inlineSize` or `blockSize` (`profile-field-missing`) |
245
247
  | `repeat: true` | region part (not a vector) | nothing of its own: the part's element renders once per item of a list (`tabs.map(…)`), any number of times (at least once when `required`), each instance taking the part's construction (`extent: "fill"` shares the row among them); a repeated `frame: "control"` part neighbours its own next instance, so their hit areas and spacing are checked across the gap | with `drawnBy` or `focus`, or named by another part's (`spec/value-invalid`); without it, a mapped part (`part-missing-or-repeated`) |
246
248
  | `kind: "component"` | region part | a public component placed with the part's marker (`<Heading className="ds-content-heading" …/>`), as a grid cell is: its interior is its owner's, so the part states placement only (`required`, `repeat`, `extent`, `at`, `spaceBefore`, `spaceAfter`) | any other field (`spec/field-unsupported`); a forwarded `className` that carries a recipe (`source/foreign-interior`) |
@@ -710,11 +712,15 @@ recipe({
710
712
  owner's sheet. It keeps no room for the hidden scrollbar: a sheet at the
711
713
  inline end would stop short of the viewport's edge.
712
714
  - **Modal card** (`element: "dialog"`; `edge: "center" | "block-start"`): the
713
- same `<dialog>`, a card centred in the viewport, or centred inline at the
714
- layer profile's `viewport-margin` below the top. It keeps that margin from
715
- every viewport edge (`max-inline-size`, `max-block-size: calc(100dvh - 2 ×
716
- margin)`) with its frame's size within it, and `motion: "fade"` fades it and
717
- its backdrop in. A close control in its corner is a layer of a layered part.
715
+ same `<dialog>`, a card centred in the viewport, or centred inline below the
716
+ top. A centred card keeps the layer profile's `viewport-margin` from every
717
+ viewport edge; a block-start card keeps its `edge-gap` from the top and the
718
+ bottom (the margin when it declares none) and the margin at the sides
719
+ (`max-inline-size`, `max-block-size: calc(100dvh - 2 × gap)`), with its
720
+ frame's size within it. While a card is open the page keeps its scrollbar's
721
+ room (`scrollbar-gutter: stable`), so it does not shift under the scroll lock;
722
+ an edge sheet does not, as it reaches the viewport's edge. `motion: "fade"`
723
+ fades the card and its backdrop in. A close control in its corner is a layer of a layered part.
718
724
  A zoom view that grows an image from its place sets a measured `translate`
719
725
  and a measured `scale` (`{ type: "scale", property: "scale" }`, unitless
720
726
  factors per axis) on the image and animates them with their `motion`.
package/docs/RULES.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <!-- Generated by scripts/sync-rule-reference.mjs from src/ads-errors.mts and src/finding-rules.mts. Do not edit: run `bun run sync:rule-reference`. -->
4
4
 
5
- Every rule ADS reports, under its rule group: 447 rules in 18 groups. A finding names its rule as a code,
5
+ Every rule ADS reports, under its rule group: 450 rules in 18 groups. A finding names its rule as a code,
6
6
  `<domain>/<kind>`; the `check/<rule>` codes are the rules `ads check`, `ads validate`, the render audit and acceptance
7
7
  report by their plain name (`check/a11y-reflow` is the finding `a11y-reflow`).
8
8
 
@@ -20,10 +20,10 @@ Fix findings in group order: earlier groups are often the cause of later ones. T
20
20
  | 3 | [boundary](#boundary) | 30 | violated | Code reaches across an ownership or production/development boundary. | Move the code to its owner or pass the value through public props. Do not add an exception or widen the boundary. |
21
21
  | 4 | [design-bypass](#design-bypass) | 20 | violated | Styling or design values are supplied outside the design language. | Take the value from a profile, token or recipe instead of writing it in place. |
22
22
  | 5 | [structure-mismatch](#structure-mismatch) | 47 | violated | Rendered markup does not match what its declaration promises. | Make the markup match the declaration: each declared part, cell and binding exactly once, in the declared order. Change the declaration only if it is wrong. |
23
- | 6 | [accessibility-semantics](#accessibility-semantics) | 43 | violated | Owned markup or motion lacks required accessible semantics: a text alternative, an accessible name, keyboard access or reduced motion. | Add the missing semantics in the owning component (alt, aria-label, a native control, a reduced-motion value); do not suppress the check. |
23
+ | 6 | [accessibility-semantics](#accessibility-semantics) | 44 | violated | Owned markup or motion lacks required accessible semantics: a text alternative, an accessible name, keyboard access or reduced motion. | Add the missing semantics in the owning component (alt, aria-label, a native control, a reduced-motion value); do not suppress the check. |
24
24
  | 7 | [project-files](#project-files) | 6 | violated | A required project file or declaration is missing, empty, undocumented or unused. | Add or complete the file the rule names (README, license, theme or brand values), or remove what nothing uses. |
25
25
  | 8 | [wrong-value](#wrong-value) | 74 | violated | A value has the wrong kind, role or range for where it is used. | Choose one of the allowed values the error lists. |
26
- | 9 | [conflict](#conflict) | 45 | violated | Two definitions claim the same thing, or a definition depends on itself. | Keep exactly one source of truth and remove or derive the other. |
26
+ | 9 | [conflict](#conflict) | 47 | violated | Two definitions claim the same thing, or a definition depends on itself. | Keep exactly one source of truth and remove or derive the other. |
27
27
  | 10 | [unanalyzable](#unanalyzable) | 45 | unprovable | ADS cannot prove the rule holds; the design itself may be fine. | Rewrite into a form ADS can follow (literal unions, const records, typed props, JSX) without changing rendered behavior. |
28
28
  | 11 | [unsupported](#unsupported) | 17 | unprovable | The construct is valid design that ADS does not support yet. | Use a supported alternative. If none fits, report the gap rather than working around the checks. |
29
29
  | 12 | [rendered-check](#rendered-check) | 13 | violated | The rendered result breaks an accessibility, layout, contrast or performance requirement. | Inspect the failing scenario in its audit result or capture, then fix the owning style or markup; do not change the scenario to hide it. |
@@ -263,6 +263,7 @@ Owned markup or motion lacks required accessible semantics: a text alternative,
263
263
  | `source/clamp-on-control` | error | A clamp (`lines`) cuts text off for sighted readers: never on a control or a form label (a button, label, legend, summary, select, option or text field) or on text inside one, whose text says what the control does. | Let the control's text wrap (remove `lines` and `wrap: "truncate"`), shorten the text, or clamp a description outside the control. | `ads://guides/recipes`, `ads://guides/accessibility` |
264
264
  | `source/control-name-missing` | error | A control without a text part in some reachable choice is named on its root by a non-empty `aria-label`, `aria-labelledby` or `title` in that choice (WCAG 2.2 4.1.2). Application text counts as a name, as it counts as content in a text part. | Set `aria-label` (or `aria-labelledby`) on the control's root to its name in every choice that renders only artwork, for example from the label prop the visible text would show. | `ads://guides/recipes`, `ads://guides/accessibility` |
265
265
  | `source/document-lang-missing` | error | The document pattern (`element: "document"`) renders `<html>` with its language (`lang`, WCAG 3.1.1), from a required prop. | Give the pattern a required `language` prop and render `<html lang={language}>`. | `ads://guides/recipes`, `ads://guides/accessibility` |
266
+ | `source/focus-unshown` | error | Focus stays visible (WCAG 2.2 2.4.7). A field that shows no outline of its own (`focus: { shownBy: "container" }`) is shown by a container in the same component whose root names it: `focus: { within: ".field" }` draws the focus profile's outline around the whole field while it has keyboard focus. | Give the box around the field `focus: { within: "<the field's class>" }`, or remove `shownBy` so the field draws its own outline. | `ads://guides/recipes`, `ads://guides/accessibility` |
266
267
  | `source/form-state-colour-only` | error | A field's error state (`[data-user-invalid]`, `[data-invalid]`, `[aria-invalid="true"]`) and its autofill state (`[data-autofill]`) are not shown by colour alone (WCAG 1.4.1): some element's treatment under the state adds a cue that is not a hue: an edge or ring (`boxShadow`), a pattern (`backgroundImage`) or a border that appears (`borderStyle: "solid"`). | Give the state's surface a ring or edge (`boxShadow` with an inset ring token, such as `--shadow-invalid`) on the control, or another non-hue cue; colour changes may stay beside it. | `ads://guides/forms`, `ads://guides/recipes`, `ads://guides/accessibility` |
267
268
  | `source/image-alt-missing` | error | Every `<img>` an owner renders states its text alternative (WCAG 2.2 1.1.1): content media and any other image, as artwork images do; decorative images state it as empty. | Set `alt` to the text alternative (for content media, a prop the caller fills), or `alt=""` when the image is decorative. | `ads://guides/accessibility` |
268
269
  | `source/layer-name-missing` | error | A dialog, and a popover with `role="dialog"`, has an accessible name from `aria-label` or `aria-labelledby`. | Label the layer root with `aria-labelledby` (its visible title's id) or `aria-label`. | `ads://guides/recipes`, `ads://guides/accessibility` |
@@ -408,6 +409,8 @@ Two definitions claim the same thing, or a definition depends on itself. Keep ex
408
409
  | `review/counter-unreset` | review | A CSS counter a construction shows (`content: { counter \| counters }`) or counts (`counter: { increment }`) is reset by some recipe of the design system (`counter: { reset }`), or is the browser's own `list-item`. Without a reset the browser starts an implicit counter at each element that counts, so every item shows 1. Listed for review, since a page may reset it outside the design system. | Reset it on the element that contains the counted ones (`counter: { reset: "<name>" }` on the list or the flow), or count with `list-item`. | `ads://guides/recipes` |
409
410
  | `review/hover-geometry-shift` | review | Geometry an element in flow takes under `:hover` (another frame or spacing profile, a part that opens) moves what follows it whenever the pointer passes over it. ADS accepts it as the designer's choice and lists it for review; a layer of a layered parent draws over its neighbours instead and is not listed. | Keep it when the movement is wanted (a pile that spreads and pushes what follows). Otherwise draw the change over its neighbours: a layer of a layered parent, an outset backdrop, or a translate or scale effect, which move nothing else. | `ads://guides/recipes`, `ads://guides/layout` |
410
411
  | `review/optional-cell-row` | review | A grid cell that may be absent (`required: false`) and is pinned to a row (`row`) leaves that row empty whenever it is absent: the row's track and the gaps around it stay. ADS accepts it as the designer's choice and lists it for review. | Keep it when the empty row is wanted. Otherwise place the cell in auto rows (omit `row`), so the cells after it move up when it is absent. | `ads://guides/recipes` |
412
+ | `review/text-layout-inline` | review | Text alignment and block wrapping (`textAlign`, `wrap: "truncate" \| "balance" \| "pretty"`) apply to a block of text: on a part rendered as an inline element (a <span>, <a>, <code>) that has no arrangement or box of its own, they change nothing. | Render the part as a block element (a <p> or <div>), give it an arrangement or a box, or set the alignment on the block that holds it. | `ads://guides/recipes` |
413
+ | `review/text-profile-unreached` | review | A composite's text profile styles its text parts (and a root that binds its own `text`): on a root with neither, it reaches no element. | Declare the text as a `kind: "text"` part, bind `text` on the root, or remove the text profile from the composite. | `ads://guides/recipes` |
411
414
  | `source/document-duplicate` | error | A design system has at most one document pattern (`element: "document"`): it is the page's `<html>`. | Keep one document pattern and give the other owner a root of its own. | `ads://guides/recipes` |
412
415
  | `source/end-misaligned` | error | Blocks stacked in one column end their content on one line: a block's content ends where its frame's inline end padding (and, for a grid, its gutter's end inset) puts it, and a block that ends a few pixels to a gutter away from its siblings is not on their grid or gutter (a header whose actions end past the sections below). Text ends ragged and is not compared; a block further than 64px off is taken as deliberately narrower. | Put the block on the same tracks and gutter as its siblings, or give its frame the inline end padding that ends its content on their line. | `ads://guides/recipes`, `ads://guides/layout` |
413
416
  | `source/glyph-grid-mixed` | error | Every asset a reference binding can receive shares one grid (viewBox, optical center and minimum drawn height), so one construction draws them all. | Draw the glyphs on one viewBox with one optical center, or accept them through separate props or owners. | `ads://guides/pictograms` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reqvire-org/ads",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "type": "module",
5
5
  "description": "A design system your agent can see and shape. Your components. Your look. Your code.",
6
6
  "repository": {
@@ -32,6 +32,7 @@
32
32
  "lint:tool": "bun run check:skill-references && bun run check:rule-reference && bun run check:guard && bun run typecheck:tool && oxlint --deny-warnings src preview-client showcase-client mcp-explorer tests/unit tests/integration tests/browser tests/helpers scripts/benchmarks/analysis scripts/build-ads-tool.mjs scripts/linaria-processor-bundle.mjs scripts/typescript-dist.ts scripts/playground.mjs scripts/showcase-ui.mjs scripts/pack-ads-tool.mjs scripts/sync-skill-references.mjs scripts/sync-rule-reference.mjs scripts/local-test-proof.mjs",
33
33
  "lint:style": "biome lint --config-path=biome.css.json .",
34
34
  "test": "make test-groups",
35
+ "test:hotpatch": "make test-hotpatch",
35
36
  "test:grid": "bun run build && bun test --parallel=1 --reporter=dots",
36
37
  "test:analysis": "bun run build && bun test --parallel=1 tests/unit/analysis-*.test.mjs tests/integration/analysis-*.test.mjs tests/integration/native-analysis.test.mjs tests/integration/unit-contracts.test.mjs",
37
38
  "test:unit": "bun run build && bun run test:unit:run",
@@ -49,6 +50,7 @@
49
50
  "ads": "bun dist/cli.mjs",
50
51
  "prepack": "bun run build",
51
52
  "release:verify": "bun scripts/sync-skill-references.mjs --check && bun scripts/local-test-proof.mjs",
53
+ "release:verify:hotpatch": "bun scripts/sync-skill-references.mjs --check && bun scripts/local-test-proof.mjs --hotpatch",
52
54
  "release:proof": "bun scripts/local-test-proof.mjs --check",
53
55
  "dev:ui": "bun scripts/showcase-ui.mjs showcase",
54
56
  "check:ui": "bun scripts/showcase-ui.mjs validate",