@adia-ai/web-modules 0.6.29 → 0.6.31

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,30 @@
1
1
  # Changelog — @adia-ai/web-modules
2
2
 
3
+ ## [0.6.31] — 2026-05-23
4
+
5
+ ### Fixed — `admin-shell.examples` taming CSS inlined (docs site render fix)
6
+
7
+ - **`shell/admin-shell/admin-shell.examples.html`** — the docs router at `/site/components/admin-shell` loads this `.examples.html` directly (via `template: "doc"` in `site/sitemap.json`); it does NOT load the wrapper `admin-shell.html` with its inline `<style>` block. Net effect: the `.sidebar-gallery`, `.shell-states`, `.ad-switcher`, `.ad-menu`, `.ad-brand-logo` classes were never styled on the docs site, so the demo `<admin-shell>` instances rendered with their default `position:fixed` full-viewport layout — overlapping the docs page chrome. Fix: inline the taming CSS (~110 lines from `admin-shell.html` lines 42-151) into `admin-shell.examples.html` at the top. Matches the precedent set by `editor-shell.examples.html` + `responsive-shell-sidebar.examples.html` which both inline demo-specific CSS. Not tarball-affecting (`!shell/**/*.examples.html` exclusion in `files:`) — docs-surface only, but `ui-kit.exe.xyz/site/components/admin-shell` reflects the fix.
8
+
9
+ ### Documentation — README CDN example uses canonical hierarchy
10
+
11
+ - **`README.md`** — the CDN "Kitchen-sink one-tag setup" example replaced the broken stub `<admin-sidebar><!-- nav --></admin-sidebar>` with the full canonical hierarchy: `<admin-sidebar slot="leading" resizable collapsible>` containing `<admin-topbar slot="header"><span slot="heading">My App</span></admin-topbar>` + `<section-ui><nav-ui><nav-item-ui icon="…" text="…"/></nav-ui></section-ui>` + `<div data-resize></div>`; `<admin-content>` containing `<admin-topbar>` (breadcrumb) + `<admin-scroll><admin-page><admin-page-header><header><div><h1>+<div data-actions></div></div><p></header></admin-page-header><admin-page-body><button-ui/></admin-page-body></admin-page></admin-scroll></admin-content>`. Trailing HTML comment block teaches the canonical rules inline: `<nav-ui>+<nav-item-ui>` for sidebar nav (NOT `<menu-ui>`), `<admin-topbar slot="header">` inside `<admin-sidebar>`, `<admin-statusbar slot="footer">` inside `<admin-sidebar>`, `<admin-scroll>` wraps `<admin-page>` inside `<admin-content>`, `<admin-page-header>` wraps an inner `<header>` with `<div><h1>+<div data-actions></div></div><p>` (add `data-flush` on `<header>` to drop bottom border). README ships in npm tarball — consumers reading via npmjs.com see the canonical pattern.
12
+
13
+ ## [0.6.30] — 2026-05-23
14
+
15
+ ### Added — JS bundles + `./everything` kitchen-sink export (CDN / CodePen)
16
+
17
+ - **Five new JS bundles** under `dist/`: `dist/everything.min.js` (kitchen-sink — primitives + a2ui-runtime + all 4 shells, 734 KB raw / ~250 KB gzipped — **the CodePen-target bundle**), plus four per-shell variants (`dist/shell/admin-shell.min.js`, `dist/chat/chat-shell.min.js`, `dist/editor/editor-shell.min.js`, `dist/simple/simple-shell.min.js`).
18
+ - **Five new exports**: `./everything` → kitchen-sink path; `./shell/admin-shell/js-bundled`, `./chat/chat-shell/js-bundled`, `./editor/editor-shell/js-bundled`, `./simple/simple-shell/js-bundled` → per-shell paths. Existing cluster exports (`./shell`, `./chat`, etc.) unchanged.
19
+ - Per-shell JS bundles assume `@adia-ai/web-components` JS is loaded first (small surface, ~6KB each except chat-shell which inlines chat-thread + composer ~230 KB). Kitchen-sink `everything.min.js` is self-contained.
20
+ - **Pick ONE JS bundle path per page** — mixing causes `customElements.define` to throw "name already defined". The kitchen-sink path is the CodePen choice.
21
+
22
+ ### Documentation — README CDN section + AI-agent discoverability
23
+
24
+ - **README.md** grows two new sections: "CDN (no bundler)" with the bundle URLs + size table + choice tree, and "Using with AI agents" pointing at the `adia-ui-kit` skill.
25
+ - New site doc: [`/site/getting-started/cdn-usage`](https://ui-kit.exe.xyz/site/getting-started/cdn-usage) — full CodePen template + worked examples.
26
+ - New `examples/codepen.html` — working CDN template in the repo (drop-in copy-paste for demos).
27
+
3
28
  ## [0.6.29] — 2026-05-23
4
29
 
5
30
  ### Added — `dist/<cluster>/<shell>.min.css` rolled-up CDN-ready bundles (4 shells)
package/README.md CHANGED
@@ -11,6 +11,98 @@ consumers install only what they need.
11
11
  npm install @adia-ai/web-modules @adia-ai/web-components
12
12
  ```
13
13
 
14
+ ## CDN — no bundler (CodePen, marketing pages, static HTML)
15
+
16
+ Since **v0.6.30**, both this package and `@adia-ai/web-components` ship pre-flattened + minified bundles under `dist/` that work via jsdelivr/unpkg with zero build tooling.
17
+
18
+ **Kitchen-sink one-tag setup (CodePen / demos / drop-into-any-HTML):**
19
+
20
+ ```html
21
+ <!-- CSS: all primitives + the shell tier you use -->
22
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adia-ai/web-components@0.6.30/dist/web-components.min.css">
23
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.6.30/dist/shell/admin-shell.min.css">
24
+
25
+ <!-- JS: everything in one bundle (primitives + all 4 shells + a2ui-runtime; ~190 KB gzipped) -->
26
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.6.30/dist/everything.min.js"></script>
27
+
28
+ <admin-shell mode="rounded borderless">
29
+ <admin-sidebar slot="leading" resizable collapsible>
30
+ <admin-topbar slot="header">
31
+ <span slot="heading">My App</span>
32
+ </admin-topbar>
33
+ <section-ui>
34
+ <nav-ui>
35
+ <nav-item-ui icon="house" text="Home" selected></nav-item-ui>
36
+ <nav-item-ui icon="gear" text="Settings"></nav-item-ui>
37
+ </nav-ui>
38
+ </section-ui>
39
+ <div data-resize></div>
40
+ </admin-sidebar>
41
+ <admin-content>
42
+ <admin-topbar>
43
+ <breadcrumb-ui><span>Dashboard</span></breadcrumb-ui>
44
+ </admin-topbar>
45
+ <admin-scroll>
46
+ <admin-page>
47
+ <admin-page-header>
48
+ <header>
49
+ <div>
50
+ <h1>Dashboard</h1>
51
+ <div data-actions>
52
+ <button-ui text="Share" variant="outline" size="sm"></button-ui>
53
+ </div>
54
+ </div>
55
+ <p>Welcome back.</p>
56
+ </header>
57
+ </admin-page-header>
58
+ <admin-page-body>
59
+ <button-ui variant="primary" text="Click me"></button-ui>
60
+ </admin-page-body>
61
+ </admin-page>
62
+ </admin-scroll>
63
+ </admin-content>
64
+ </admin-shell>
65
+
66
+ <!--
67
+ Canonical admin-shell hierarchy (matches ui-kit.exe.xyz/site/index.html):
68
+ - <nav-ui> + <nav-item-ui> is THE primitive pair for sidebar navigation.
69
+ - <menu-ui> / <menu-item-ui> are for popover action menus (dropdowns), NOT for nav.
70
+ - <admin-topbar slot="header"> goes inside <admin-sidebar> (workspace switcher / brand).
71
+ - <admin-statusbar slot="footer"> goes inside <admin-sidebar> (user switcher / sign-in).
72
+ - <admin-scroll> wraps <admin-page> inside <admin-content>.
73
+ - <admin-page-header> wraps an inner <header> with <div><h1>+<div data-actions></div></div><p>.
74
+ The <div data-actions> slot is right-aligned for page-level action buttons.
75
+ Use <header data-flush> to drop the bottom border.
76
+ Reference: https://ui-kit.exe.xyz/site/examples/admin-dashboard +
77
+ https://github.com/adiahealth/gen-ui-kit/blob/main/site/templates/settings.html
78
+ -->
79
+ ```
80
+
81
+ **Per-shell setup (advanced — only one shell tier loaded):**
82
+
83
+ ```html
84
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@adia-ai/web-components@0.6.30/dist/web-components.min.js"></script>
85
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.6.30/dist/shell/admin-shell.min.js"></script>
86
+ ```
87
+
88
+ | Bundle | Path | Gzipped | Contents | When to use |
89
+ |---|---|---|---|---|
90
+ | **Everything** | `/dist/everything.min.js` | **~250 KB** | All primitives + a2ui-runtime + all 4 shells | **CodePen / one-tag demos** |
91
+ | Admin shell | `/dist/shell/admin-shell.min.js` | ~6 KB | Shell registration; needs `web-components.min.js` first | Admin app, no chat/editor |
92
+ | Chat shell | `/dist/chat/chat-shell.min.js` | ~230 KB | Includes chat-thread/composer | Chat surface |
93
+ | Editor shell | `/dist/editor/editor-shell.min.js` | ~6 KB | Shell registration; needs primitives first | Editor surface |
94
+ | Simple shell | `/dist/simple/simple-shell.min.js` | ~5.6 KB | Shell registration; needs primitives first | Settings / forms |
95
+
96
+ **Pick ONE bundle path.** Mixing `everything.min.js` with a separate `web-components.min.js` causes `customElements.define` to throw "name already defined". For CodePen the kitchen-sink path is correct.
97
+
98
+ **npm-installed consumers stay on the existing cluster exports** (`./shell`, `./chat`, etc.). The new `*/bundled` (CSS) and `*/js-bundled` + `./everything` (JS) exports are additive — only consumers without a bundler need them.
99
+
100
+ See the [CDN usage guide](https://ui-kit.exe.xyz/site/cdn-usage) for a full CodePen template + worked examples.
101
+
102
+ ### Using with AI agents
103
+
104
+ When composing UI with an AI coding agent (Claude Code / Cursor / Windsurf / Claude Desktop), load the **`adia-ui-kit` skill** in the harness — it encodes the 95-primitive catalog, composition patterns for all shells (admin / chat / editor / simple), and the Plan-Execute-Verify discipline that renders the composed surface in a real demo to verify intent. Skill lives at [`.agents/skills/adia-ui-kit/`](https://github.com/adiahealth/gen-ui-kit/tree/main/.agents/skills/adia-ui-kit) in the repo.
105
+
14
106
  `@adia-ai/web-components` is **always required** (modules compose primitives at runtime). Two additional peer dependencies are declared but **only needed for specific clusters**:
15
107
 
16
108
  | Peer dependency | Required when you use |
@@ -120,7 +212,7 @@ hunt for it:
120
212
  Future clusters on the strategic horizon: `data` (kanban, filters,
121
213
  table-toolbar), `agent` (agent-trace, reasoning panels).
122
214
 
123
- See [`bespoke-shell-children` skill](../../.agents/skills/bespoke-shell-children/SKILL.md) for the canonical decomposition recipe used by all three families.
215
+ See [`adia-ui-authoring` skill, `references/shell-patterns.md`](../../.agents/skills/adia-ui-authoring/references/shell-patterns.md) (absorbed `bespoke-shell-children`) for the canonical decomposition recipe used by all three families.
124
216
 
125
217
  ## Quick start
126
218
 
@@ -244,7 +336,7 @@ All `<*-shell>` hosts are **behavior-only orchestrators** — they reflect state
244
336
  - **JS-bearing children** carry `connected()`/`disconnected()` lifecycle for interactive behavior (`admin-sidebar` resize, `admin-command` palette, `chat-thread` streaming scroll, `editor-canvas` zoom, etc.).
245
337
  - **CSS-only children** (no `.js` file — only `.yaml` + `.css` + `.a2ui.json`) declare slot intent for the host's styling system to attach against. Don't author a `.js` for these; the host handles their behavior via attribute selectors.
246
338
 
247
- The decomposition recipe (when to JS-bearing vs CSS-only, how to namespace state attributes, slot vocabulary conventions) is captured in the [`bespoke-shell-children` skill](../../.agents/skills/bespoke-shell-children/SKILL.md).
339
+ The decomposition recipe (when to JS-bearing vs CSS-only, how to namespace state attributes, slot vocabulary conventions) is captured in the [`adia-ui-authoring` skill, `references/shell-patterns.md`](../../.agents/skills/adia-ui-authoring/references/shell-patterns.md) (absorbed `bespoke-shell-children`).
248
340
 
249
341
  ## License
250
342