@tonycodes-ui/mortar 0.23.0 → 0.24.0
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.md +2 -2
- package/DESIGN.md +1 -0
- package/catalog.json +292 -290
- package/cli/audit.mjs +143 -2
- package/dist/agent-data.json +1 -1
- package/dist/auth.d.ts +2 -0
- package/dist/feedback.d.ts +1 -0
- package/docs/agents.md +1 -0
- package/docs/auth-flows.md +1 -1
- package/package.json +1 -1
- package/src/auth.tsx +2 -0
- package/src/feedback.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Mortar follows [semantic versioning](https://semver.org/). Before 1.0, a minor release may contain breaking changes, and it says so. Each release is published from its `v<version>` tag to [npmjs.com](https://www.npmjs.com/package/@tonycodes-ui/mortar) with npm provenance. Its GitHub release carries the exact archive and a `provenance.json` with the commit and SHA-512 integrity.
|
|
4
4
|
|
|
5
|
-
## 0.
|
|
5
|
+
## 0.24.0 (2026-11-09)
|
|
6
6
|
|
|
7
7
|
### Added
|
|
8
8
|
|
|
9
|
-
- **`mortar audit`
|
|
9
|
+
- **`mortar audit` flags block elements in phrasing-only slots** (`invalid-phrasing`, [#102](https://github.com/tonycodes/mortar/issues/102)). `Banner` `children` and `AuthLayout` `description` are rendered inside a `<p>`, so a nested `<div>`, `<p>`, heading or similar is invalid HTML. Contracts list these as `phrasingSlots` and say they are phrasing-only; the audit reports obvious block JSX in them. Keep announcements and auth descriptions as text, links or emphasis; use `Section` for full marketing blocks.
|
|
10
10
|
|
|
11
11
|
## 0.11.0 (2026-10-20)
|
|
12
12
|
|
package/DESIGN.md
CHANGED
|
@@ -45,6 +45,7 @@ Every component follows these rules. New props must fit them, and the code revie
|
|
|
45
45
|
- **Component marker.** The root element of every exported component carries `data-m-component="<ExportName>"`, set through `componentRoot()` in `src/internal.tsx`. The root is the outermost element the component renders. A dialog marks its dialog root, which is portalled to the document body and exists only while open. A component that renders sibling elements marks the first one it always renders (SaveBar's status message). When one component renders another as its root, the root carries the outer name (SearchDialog, not CommandPalette). ThemeProvider marks its wrapper only with `scope="container"`; with the default document scope it renders no element of its own. Nested components keep their own markers. The marker is for tests and consumers to find components, never for consumer styles. Its one selector in the kit is internal: Prose styles stop at a nested component root, so a utility class such as `m-4` inside prose keeps its prose styles.
|
|
46
46
|
- **Data attributes.** A boolean attribute appears only when true (`data-x="true"`). An enum attribute is omitted for the default value. Styles select on these attributes, never on text or `aria-label`.
|
|
47
47
|
- **Icons and decoration.** Shared icons come from `src/icons.tsx` and are `aria-hidden`. Decorative glyphs such as arrows are hidden from assistive technology, and their meaning is carried by text.
|
|
48
|
+
- **Phrasing slots.** Some props are rendered inside a `<p>` and accept phrasing content only (text, links, emphasis): `Banner` `children` and `AuthLayout` `description`. Block elements (`div`, nested `p`, headings, lists) are invalid HTML there. Contracts list these as `phrasingSlots`; `mortar audit` reports obvious block JSX in them (`invalid-phrasing`). For a full section, use `Section` instead of stuffing blocks into a banner.
|
|
48
49
|
|
|
49
50
|
## Composing flows
|
|
50
51
|
|