@adia-ai/web-modules 0.7.10 → 0.7.12

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,17 @@
1
1
  # Changelog — @adia-ai/web-modules
2
2
 
3
+ ## [0.7.12] — 2026-06-04
4
+
5
+ ### Changed
6
+ - **`data-theme` → `theme` rename reaches the shell demos + CSS** — the repo-wide, pre-1.0 token-attribute rename (see `@adia-ai/web-components`'s `[Unreleased]`). Any `data-theme="…"` in a shell surface (billing/, chat/, dashboard/, editor/, feedback/, runtime/, settings/, simple/) is now `theme="…"`.
7
+ - **`web-modules.sheet.js` constructable twin** co-emitted beside `dist/web-modules.min.css` (exposed as the `./css/sheet` export), in lockstep with the web-components `.sheet.js` twin work. CDN bundle rebuilt.
8
+
9
+ ## [0.7.11] — 2026-06-04
10
+
11
+ ### Changed
12
+ - **`<embed-shell>` now extends `UIElement` + composes the `resizable` trait.** The draft shell (shipped 0.7.10) now extends `UIElement` so `traits="resizable"` applies — drag any edge/corner to resize the embedded surface — with a full `.examples.html` demo + `.test.js` regression suite + the docs sitemap entry. Still `status: draft` (contract not yet frozen). Files: `shell/embed-shell/{embed-shell.js,embed-shell.css,embed-shell.examples.html,embed-shell.test.js}`.
13
+ - **CDN bundle rebuilt** — `dist/everything.min.js` + `dist/web-modules.min.css` regenerated to carry the `<embed-shell>` `resizable` wiring into the kitchen-sink + CSS bundles.
14
+
3
15
  ## [0.7.10] — 2026-06-03
4
16
 
5
17
  ### Added
@@ -612,10 +624,6 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
612
624
  Scope: composite custom elements organized by cluster (shell, chat,
613
625
  editor, runtime today; data, agent, admin on the strategic horizon).
614
626
  Built from `@adia-ai/web-components` primitives.
615
- ## [Unreleased]
616
-
617
- _No pending changes._
618
-
619
627
  ## [0.6.4] - 2026-05-18
620
628
 
621
629
  ### v0.6.4 — Lockstep ride-along
@@ -984,7 +992,7 @@ Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry — `^0.4
984
992
 
985
993
  ### Added
986
994
 
987
- - **`<theme-panel>` module — new `theme/` cluster.** Module-tier appearance-preferences control surface. Owns the three knobs of the AdiaUI theming contract: `[data-theme]` named themes (8 built-in slugs + tolerant for custom), `--a-density` / `--a-radius-k` parametric overrides, and `color-scheme` light/dark switching, plus optional `localStorage` persistence behind a small attribute API ([`packages/web-modules/theme/theme-panel/`](./theme/theme-panel/)). Reflected state — `[active-theme]`, `[active-scheme]`, `[active-density]`, `[active-radius]` — lets external CSS / JS react via `:has(theme-panel[active-scheme="dark"])` patterns without listening to events. One `theme-change` event per user-visible change (source ∈ `theme | slider | preset | scheme | reset | programmatic`). Attribute API: `[themes="slug1 slug2…"]` (override default 8), `[parametric]` (renders density + radius sliders), `[presets]` (renders compact / reset / spacious preset row), `[scheme-toggle]` (renders inline light/dark toggle — absorbs the legacy standalone `#theme-toggle` button per OD-002=A). 23 unit tests. Promoted from the ~30-line inline `#theme-panel` block + ~90 LOC of controller wiring previously duplicated in `site/index.html` and `playgrounds/admin-shell/`. Spec: [`docs/specs/theme-panel-module.md`](../../docs/specs/theme-panel-module.md). Plan: [`docs/plans/theme-panel-module-2026-05-11.md`](../../docs/plans/theme-panel-module-2026-05-11.md). Commits `63d9deb4` (module Phase 1) + `a35d3131` (site consumer migration Phase 2; site.js −90 LOC + index.html −27 inline lines) + `c844aef4` (admin-shell playground consumer migration Phase 3; contents.html −25 lines + contents.js −48 LOC).
995
+ - **`<theme-panel>` module — new `theme/` cluster.** Module-tier appearance-preferences control surface. Owns the three knobs of the AdiaUI theming contract: `[theme]` named themes (8 built-in slugs + tolerant for custom), `--a-density` / `--a-radius-k` parametric overrides, and `color-scheme` light/dark switching, plus optional `localStorage` persistence behind a small attribute API ([`packages/web-modules/theme/theme-panel/`](./theme/theme-panel/)). Reflected state — `[active-theme]`, `[active-scheme]`, `[active-density]`, `[active-radius]` — lets external CSS / JS react via `:has(theme-panel[active-scheme="dark"])` patterns without listening to events. One `theme-change` event per user-visible change (source ∈ `theme | slider | preset | scheme | reset | programmatic`). Attribute API: `[themes="slug1 slug2…"]` (override default 8), `[parametric]` (renders density + radius sliders), `[presets]` (renders compact / reset / spacious preset row), `[scheme-toggle]` (renders inline light/dark toggle — absorbs the legacy standalone `#theme-toggle` button per OD-002=A). 23 unit tests. Promoted from the ~30-line inline `#theme-panel` block + ~90 LOC of controller wiring previously duplicated in `site/index.html` and `playgrounds/admin-shell/`. Spec: [`docs/specs/theme-panel-module.md`](../../docs/specs/theme-panel-module.md). Plan: [`docs/plans/theme-panel-module-2026-05-11.md`](../../docs/plans/theme-panel-module-2026-05-11.md). Commits `63d9deb4` (module Phase 1) + `a35d3131` (site consumer migration Phase 2; site.js −90 LOC + index.html −27 inline lines) + `c844aef4` (admin-shell playground consumer migration Phase 3; contents.html −25 lines + contents.js −48 LOC).
988
996
  - **New subpath export `@adia-ai/web-modules/theme`** — consumers wanting just this cluster can `import '@adia-ai/web-modules/theme'` instead of the full barrel. `package.json` `exports` / `files` / `sideEffects` updated.
989
997
 
990
998
  ### Fixed
package/README.md CHANGED
@@ -207,7 +207,7 @@ elements with state-as-attribute semantics) per [ADR-0023](../../.brain/adrs/002
207
207
  | `chat` | `<chat-shell>` | `<chat-thread>`, `<chat-composer>`, `<chat-sidebar>` (JS-bearing); `<chat-empty>`, `<chat-header>`, `<chat-status>` (CSS-only); 6 children total | Conversational surface — streaming messages, composer with `[disabled]` propagation, scroll-to-bottom thread, `[streaming]` reflected. |
208
208
  | `editor` | `<editor-shell>` | `<editor-toolbar>`, `<editor-canvas>`, `<editor-sidebar>` (JS-bearing); `<editor-statusbar>`, `<editor-canvas-empty>` (CSS-only); 5 children total | Design-tool surface — toolbar with `[full-screen]`, central canvas with `[focused]`/`[empty]`, sidebar wraps `<pane-ui resizable>` for delegation. |
209
209
  | `runtime` | `<gen-root>`, `<a2ui-root>` | — | Render roots that turn JSON or gen-UI intents into live DOM. |
210
- | `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). |
210
+ | `theme` | — (controls-only) | `<theme-panel>` (JS-bearing); 1 child total | Appearance-preferences control surface — `[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). |
211
211
 
212
212
  ### Cross-package convenience subpaths
213
213
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * `<chat-composer-ui>` — Module-tier chat composer wrapper — replaces legacy <chat-input-ui
2
+ * `<chat-composer>` — Module-tier chat composer wrapper — replaces legacy <chat-input-ui
3
3
  data-chat-input> direct child of <chat-shell> per ADR-0023.
4
4
  Forwards submit events as 'composer-submit', propagates [disabled]
5
5
  to the inner input, provides slot vocabulary for future composer
@@ -1,5 +1,5 @@
1
1
  /**
2
- * `<chat-shell-ui>` — Behavior-only chat orchestrator (LLM-streaming module). Canonical
2
+ * `<chat-shell>` — Behavior-only chat orchestrator (LLM-streaming module). Canonical
3
3
  authoring shape uses cluster-namespaced bespoke children —
4
4
  <chat-thread> as the message scroll surface (containing <chat-empty>
5
5
  as the empty-state slot), <chat-composer> wrapping the input
@@ -1,5 +1,5 @@
1
1
  /**
2
- * `<chat-sidebar-ui>` — Module-tier chat-cluster sidebar — owns resize, snap-to-collapsed,
2
+ * `<chat-sidebar>` — Module-tier chat-cluster sidebar — owns resize, snap-to-collapsed,
3
3
  persistence, and the [collapsed] reflected attribute. Sits inside
4
4
  <chat-shell> as slot="leading" (conversation history rail) or
5
5
  slot="trailing" (artifacts/citations panel). Mirrors the admin-sidebar
@@ -1,5 +1,5 @@
1
1
  /**
2
- * `<chat-thread-ui>` — Module-tier chat message thread container — replaces legacy
2
+ * `<chat-thread>` — Module-tier chat message thread container — replaces legacy
3
3
  <section data-chat-messages> per ADR-0023. Owns scroll-to-bottom
4
4
  on new message (with user-scroll-up suspension), [streaming] and
5
5
  [empty] reflected attributes, and a stable target for the host's