@adia-ai/web-modules 0.6.7 → 0.6.9
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 +13 -0
- package/README.md +26 -1
- package/chat/chat-shell/chat-shell.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog — @adia-ai/web-modules
|
|
2
2
|
|
|
3
|
+
## [0.6.9] — 2026-05-21
|
|
4
|
+
|
|
5
|
+
### Documentation
|
|
6
|
+
- **`README.md` — new "Cross-package convenience subpaths" subsection.** Documents the `generative` cross-package subpath (`@adia-ai/web-modules/generative`) that re-exports generative-UI primitives from `@adia-ai/a2ui-runtime`. Surfaces a doc-path that previously required reading the package.json `exports` map to discover. Closes claims-ui FEEDBACK-08 (`generative` subpath was undocumented; per-cluster Clusters table at `README.md:71-79` already covered the 5 internal clusters but did not list cross-package convenience subpaths).
|
|
7
|
+
|
|
8
|
+
## [0.6.8] — 2026-05-20
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **`chat/chat-shell/chat-shell.js` — monorepo-absolute import broke the full barrel (claims-ui F-001, P0).** A single line at `chat-shell.js:4` imported `'/packages/web-components/components/code/code.js'`. The leading-`/` form resolves inside the AdiaUI monorepo (Vite roots at workspace) but breaks the full `@adia-ai/web-modules` barrel for every npm consumer with `Module not found`. Every sibling file in `web-modules/` (10 hits across chat/editor/theme/shell) used the correct `../../../web-components/...` relative form; this one line was the outlier and shipped across multiple releases. Fix: 1-char rewrite to the sibling pattern. Consumers using only the per-cluster subpaths (`@adia-ai/web-modules/shell`, `/chat`, `/editor`) were not affected; this fix restores the full-barrel `import '@adia-ai/web-modules'` entry point.
|
|
12
|
+
|
|
13
|
+
### Docs
|
|
14
|
+
- **README.md — ⚠️ Required CSS callouts (claims-ui F-006).** Added prominent warnings above the §Import: CSS and §Quick start sections naming the four shell tags (`admin-shell`, `chat-shell`, `editor-shell`, `simple-shell`) and describing the unstyled-stacked-divs failure mode that follows from forgetting the per-cluster CSS import. The CSS imports were already listed in both sections, but at the same volume as the JS imports — these callouts shift signal weight, not content. Paired with the new skill §CSSPolicy section (skill v2.4.2) which codifies the normative explicit-CSS-import policy uniformly across primitives + shells.
|
|
15
|
+
|
|
3
16
|
## [0.6.7] — 2026-05-19
|
|
4
17
|
|
|
5
18
|
### Added
|
package/README.md
CHANGED
|
@@ -35,6 +35,16 @@ import '@adia-ai/web-modules/runtime'; // gen-root + a2ui-root
|
|
|
35
35
|
|
|
36
36
|
## Import: CSS (since v0.4.5)
|
|
37
37
|
|
|
38
|
+
> ⚠️ **Required — shell layouts depend on this CSS.** Shell JS modules
|
|
39
|
+
> (`admin-shell`, `chat-shell`, `editor-shell`, `simple-shell`) do **not**
|
|
40
|
+
> self-import their layout CSS. Omitting the matching `*.css` import for
|
|
41
|
+
> any shell you use renders that shell as **unstyled stacked `<div>`
|
|
42
|
+
> elements** with no console error — sidebars stack above content,
|
|
43
|
+
> topbar/statusbar fall off the viewport grid, nothing throws. This is
|
|
44
|
+
> the #1 cold-start silent-failure mode reported by external consumers.
|
|
45
|
+
> If your shell looks like a vertical list of blocks, you missed a line
|
|
46
|
+
> below.
|
|
47
|
+
|
|
38
48
|
CSS imports use the package specifier — the package's `exports` map resolves `.css` requests to the per-element stylesheet on disk:
|
|
39
49
|
|
|
40
50
|
```js
|
|
@@ -68,6 +78,17 @@ elements with state-as-attribute semantics) per [ADR-0023](../../.brain/adrs/002
|
|
|
68
78
|
| `runtime` | `<gen-root>`, `<a2ui-root>` | — | Render roots that turn JSON or gen-UI intents into live DOM. |
|
|
69
79
|
| `theme` | — (controls-only) | `<theme-panel>` (JS-bearing); 1 child total | Appearance-preferences control surface — `[data-theme]` named themes, `--a-density` / `--a-radius-k` parametric overrides, `color-scheme` light/dark, opt-in `[persist]`. Drops into any consumer's `<popover-ui slot="content">` topbar. Spec: [`docs/specs/theme-panel-module.md`](../../docs/specs/theme-panel-module.md). |
|
|
70
80
|
|
|
81
|
+
### Cross-package convenience subpaths
|
|
82
|
+
|
|
83
|
+
`generative` is not a web-modules cluster — it's a convenience barrel
|
|
84
|
+
that pulls in two `@adia-ai/web-components` primitives needed by every
|
|
85
|
+
generative-UI surface. Subpath listed here so consumers don't have to
|
|
86
|
+
hunt for it:
|
|
87
|
+
|
|
88
|
+
| Subpath | Registers | Notes |
|
|
89
|
+
|---|---|---|
|
|
90
|
+
| `@adia-ai/web-modules/generative` | `<canvas-ui>`, `<a2ui-root>` | Cross-package — these live in `@adia-ai/web-components` but compose so frequently for generative UI that we ship the registration barrel here. Per ADR-0027, primitives that compose cross-package are not in the default catalog barrel; `generative` is the explicit opt-in. |
|
|
91
|
+
|
|
71
92
|
Future clusters on the strategic horizon: `data` (kanban, filters,
|
|
72
93
|
table-toolbar), `agent` (agent-trace, reasoning panels).
|
|
73
94
|
|
|
@@ -77,6 +98,10 @@ See [`bespoke-shell-children` skill](../../.agents/skills/bespoke-shell-children
|
|
|
77
98
|
|
|
78
99
|
ESM-only — bundlers (Vite, esbuild, webpack 5+, Rollup) resolve `import` statements for both `.js` and `.css`; in plain HTML, use `<script type="module">` for JS and `<link>` for CSS.
|
|
79
100
|
|
|
101
|
+
> ⚠️ **Both JS AND CSS imports are required per cluster.** Importing only
|
|
102
|
+
> the JS gives you registered tags but no layout. See [Import: CSS](#import-css-since-v045)
|
|
103
|
+
> above for the failure mode.
|
|
104
|
+
|
|
80
105
|
```js
|
|
81
106
|
// JS — register every primitive + the clusters you compose with
|
|
82
107
|
import '@adia-ai/web-components'; // primitives + nav family
|
|
@@ -86,7 +111,7 @@ import '@adia-ai/web-modules/editor'; // editor-shell + bespoke children
|
|
|
86
111
|
import '@adia-ai/web-modules/runtime'; // gen-root, a2ui-root (needs @adia-ai/a2ui-runtime)
|
|
87
112
|
import '@adia-ai/web-modules/theme'; // theme-panel (appearance prefs)
|
|
88
113
|
|
|
89
|
-
// CSS — one stylesheet per cluster you use
|
|
114
|
+
// CSS — one stylesheet per cluster you use (REQUIRED — see callout above)
|
|
90
115
|
import '@adia-ai/web-components/css'; // every primitive's CSS
|
|
91
116
|
import '@adia-ai/web-modules/shell/admin-shell.css';
|
|
92
117
|
import '@adia-ai/web-modules/chat/chat-shell.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UIElement } from '../../../web-components/core/element.js';
|
|
2
2
|
import { renderMarkdown } from '../../../web-components/core/markdown.js';
|
|
3
3
|
import { streamChat } from '../../../llm/index.js';
|
|
4
|
-
import '
|
|
4
|
+
import '../../../web-components/components/code/code.js';
|
|
5
5
|
|
|
6
6
|
function escapeHTML(s) {
|
|
7
7
|
return s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/web-modules",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"description": "AdiaUI composite custom elements \u2014 shell, chat, editor, runtime clusters built from @adia-ai/web-components primitives. Subpath exports per cluster.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|