@adia-ai/web-modules 0.6.7 → 0.6.8

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog — @adia-ai/web-modules
2
2
 
3
+ ## [0.6.8] — 2026-05-20
4
+
5
+ ### Fixed
6
+ - **`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.
7
+
8
+ ### Docs
9
+ - **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.
10
+
3
11
  ## [0.6.7] — 2026-05-19
4
12
 
5
13
  ### 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
@@ -77,6 +87,10 @@ See [`bespoke-shell-children` skill](../../.agents/skills/bespoke-shell-children
77
87
 
78
88
  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
89
 
90
+ > ⚠️ **Both JS AND CSS imports are required per cluster.** Importing only
91
+ > the JS gives you registered tags but no layout. See [Import: CSS](#import-css-since-v045)
92
+ > above for the failure mode.
93
+
80
94
  ```js
81
95
  // JS — register every primitive + the clusters you compose with
82
96
  import '@adia-ai/web-components'; // primitives + nav family
@@ -86,7 +100,7 @@ import '@adia-ai/web-modules/editor'; // editor-shell + bespoke children
86
100
  import '@adia-ai/web-modules/runtime'; // gen-root, a2ui-root (needs @adia-ai/a2ui-runtime)
87
101
  import '@adia-ai/web-modules/theme'; // theme-panel (appearance prefs)
88
102
 
89
- // CSS — one stylesheet per cluster you use
103
+ // CSS — one stylesheet per cluster you use (REQUIRED — see callout above)
90
104
  import '@adia-ai/web-components/css'; // every primitive's CSS
91
105
  import '@adia-ai/web-modules/shell/admin-shell.css';
92
106
  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 '/packages/web-components/components/code/code.js';
4
+ import '../../../web-components/components/code/code.js';
5
5
 
6
6
  function escapeHTML(s) {
7
7
  return s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adia-ai/web-modules",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
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": {