@adia-ai/web-modules 0.6.8 → 0.6.10

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,24 @@
1
1
  # Changelog — @adia-ai/web-modules
2
2
 
3
+ ## [0.6.10] — 2026-05-21
4
+
5
+ ### Added
6
+ - **4 shell `/with-css` opt-in companion subpaths (claims-ui FB-06 closure, P0 UX).** Closes the cold-start UX cliff originally surfaced by claims-ui FEEDBACK-06 (consumer imports `<admin-shell>` JS, forgets the matching CSS import, sees unstyled stacked `<div>` elements with no error). The CSS-policy review at `.brain/notes/claims-ui-css-policy-answer-2026-05-20.md` confirmed the explicit-import contract is correct AS A DEFAULT (preserves tree-shake, gives cascade control + theme layering, predictable across Vite versions); this slice ships the named carve-out. Consumer-facing API (new — v0.6.10):
7
+ ```js
8
+ // Default subpath — unchanged (explicit-import contract; tree-shake friendly)
9
+ import '@adia-ai/web-modules/shell/admin-shell';
10
+ import '@adia-ai/web-modules/shell/admin-shell.css';
11
+
12
+ // Opt-in /with-css companion — one import, JS + CSS bundled
13
+ import '@adia-ai/web-modules/shell/admin-shell/with-css';
14
+ ```
15
+ Available for all 4 shells: `shell/admin-shell`, `chat/chat-shell`, `editor/editor-shell`, `simple/simple-shell`. Each `with-css.js` module is a 2-import side-effect-only file (`import './<shell>.js'; import './<shell>.css';`). Exports map gains 4 new cluster-specific subpath patterns (`./shell/*/with-css`, `./chat/*/with-css`, `./editor/*/with-css`, `./simple/*/with-css`) — each with `types` / `import` / `default` conditions, so TypeScript consumers get parity-typing across both forms. Paired CI gate `check:with-css-pairing` (regression block at PR time): every shell with paired `.js` + `.css` must have a canonical 2-import `with-css.js` companion AND a matching exports-map entry. Architectural rationale: ADR-0030 (`.brain/adrs/0030-shell-with-css-opt-in-carve-out.md`) — single named carve-out, default policy intact, no behavior change for existing consumers. Skill v2.7.0 ride-along documents the opt-in form in §CSSPolicy + §Setup.
16
+
17
+ ## [0.6.9] — 2026-05-21
18
+
19
+ ### Documentation
20
+ - **`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).
21
+
3
22
  ## [0.6.8] — 2026-05-20
4
23
 
5
24
  ### Fixed
package/README.md CHANGED
@@ -78,6 +78,17 @@ elements with state-as-attribute semantics) per [ADR-0023](../../.brain/adrs/002
78
78
  | `runtime` | `<gen-root>`, `<a2ui-root>` | — | Render roots that turn JSON or gen-UI intents into live DOM. |
79
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). |
80
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
+
81
92
  Future clusters on the strategic horizon: `data` (kanban, filters,
82
93
  table-toolbar), `agent` (agent-trace, reasoning panels).
83
94
 
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Type declarations for `chat-shell/with-css` — opt-in CSS-bundled companion.
3
+ *
4
+ * Side-effect-only module. Importing this registers the `<chat-shell>`
5
+ * custom element AND side-effect-imports its layout CSS.
6
+ *
7
+ * Per ADR-0030 (shell `/with-css` opt-in carve-out, v0.6.10). The
8
+ * canonical class type is re-exported here so consumers using the
9
+ * `/with-css` companion don't lose typing parity with the default
10
+ * subpath.
11
+ */
12
+
13
+ export * from './chat-shell.js';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Opt-in `/with-css` companion for <chat-shell>.
3
+ *
4
+ * Side-effect-only module. Importing this:
5
+ * 1. Loads `./chat-shell.js` (registers the `<chat-shell>` custom element)
6
+ * 2. Side-effect-imports `./chat-shell.css` (mounts the shell's layout CSS)
7
+ *
8
+ * Consumer-facing entry point:
9
+ * import '@adia-ai/web-modules/chat/chat-shell/with-css';
10
+ *
11
+ * Explicit CSS-policy carve-out per ADR-0030. See sibling file
12
+ * `packages/web-modules/shell/admin-shell/with-css.js` for the full
13
+ * rationale.
14
+ */
15
+ import './chat-shell.js';
16
+ import './chat-shell.css';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Type declarations for `editor-shell/with-css` — opt-in CSS-bundled companion.
3
+ *
4
+ * Side-effect-only module. Importing this registers the `<editor-shell>`
5
+ * custom element AND side-effect-imports its layout CSS.
6
+ *
7
+ * Per ADR-0030 (shell `/with-css` opt-in carve-out, v0.6.10). The
8
+ * canonical class type is re-exported here so consumers using the
9
+ * `/with-css` companion don't lose typing parity with the default
10
+ * subpath.
11
+ */
12
+
13
+ export * from './editor-shell.js';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Opt-in `/with-css` companion for <editor-shell>.
3
+ *
4
+ * Side-effect-only module. Importing this:
5
+ * 1. Loads `./editor-shell.js` (registers the `<editor-shell>` custom element)
6
+ * 2. Side-effect-imports `./editor-shell.css` (mounts the shell's layout CSS)
7
+ *
8
+ * Consumer-facing entry point:
9
+ * import '@adia-ai/web-modules/editor/editor-shell/with-css';
10
+ *
11
+ * Explicit CSS-policy carve-out per ADR-0030. See sibling file
12
+ * `packages/web-modules/shell/admin-shell/with-css.js` for the full
13
+ * rationale.
14
+ */
15
+ import './editor-shell.js';
16
+ import './editor-shell.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adia-ai/web-modules",
3
- "version": "0.6.8",
3
+ "version": "0.6.10",
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": {
@@ -19,6 +19,11 @@
19
19
  "import": "./shell/*/*.js",
20
20
  "default": "./shell/*/*.js"
21
21
  },
22
+ "./shell/*/with-css": {
23
+ "types": "./shell/*/with-css.d.ts",
24
+ "import": "./shell/*/with-css.js",
25
+ "default": "./shell/*/with-css.js"
26
+ },
22
27
  "./shell/*.css": "./shell/*/*.css",
23
28
  "./shell/*/*.css": "./shell/*/*.css",
24
29
  "./shell/*/css/*.css": "./shell/*/css/*.css",
@@ -32,6 +37,11 @@
32
37
  "import": "./chat/*/*.js",
33
38
  "default": "./chat/*/*.js"
34
39
  },
40
+ "./chat/*/with-css": {
41
+ "types": "./chat/*/with-css.d.ts",
42
+ "import": "./chat/*/with-css.js",
43
+ "default": "./chat/*/with-css.js"
44
+ },
35
45
  "./chat/*.css": "./chat/*/*.css",
36
46
  "./chat/*/*.css": "./chat/*/*.css",
37
47
  "./chat/*/css/*.css": "./chat/*/css/*.css",
@@ -50,6 +60,11 @@
50
60
  "import": "./editor/*/*.js",
51
61
  "default": "./editor/*/*.js"
52
62
  },
63
+ "./editor/*/with-css": {
64
+ "types": "./editor/*/with-css.d.ts",
65
+ "import": "./editor/*/with-css.js",
66
+ "default": "./editor/*/with-css.js"
67
+ },
53
68
  "./editor/*.css": "./editor/*/*.css",
54
69
  "./editor/*/*.css": "./editor/*/*.css",
55
70
  "./editor/*/css/*.css": "./editor/*/css/*.css",
@@ -63,6 +78,11 @@
63
78
  "import": "./simple/*/*.js",
64
79
  "default": "./simple/*/*.js"
65
80
  },
81
+ "./simple/*/with-css": {
82
+ "types": "./simple/*/with-css.d.ts",
83
+ "import": "./simple/*/with-css.js",
84
+ "default": "./simple/*/with-css.js"
85
+ },
66
86
  "./simple/*.css": "./simple/*/*.css",
67
87
  "./simple/*/*.css": "./simple/*/*.css",
68
88
  "./simple/*/css/*.css": "./simple/*/css/*.css",
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Type declarations for `admin-shell/with-css` — opt-in CSS-bundled companion.
3
+ *
4
+ * Side-effect-only module. Importing this registers the `<admin-shell>`
5
+ * custom element AND side-effect-imports its layout CSS.
6
+ *
7
+ * Per ADR-0030 (shell `/with-css` opt-in carve-out, v0.6.10). The
8
+ * canonical class type is re-exported here so consumers using the
9
+ * `/with-css` companion don't lose typing parity with the default
10
+ * subpath.
11
+ */
12
+
13
+ export * from './admin-shell.js';
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Opt-in `/with-css` companion for <admin-shell>.
3
+ *
4
+ * Side-effect-only module. Importing this:
5
+ * 1. Loads `./admin-shell.js` (registers the `<admin-shell>` custom element)
6
+ * 2. Side-effect-imports `./admin-shell.css` (mounts the shell's layout CSS)
7
+ *
8
+ * Consumer-facing entry point:
9
+ * import '@adia-ai/web-modules/shell/admin-shell/with-css';
10
+ *
11
+ * This is the explicit CSS-policy carve-out documented in ADR-0030. The
12
+ * default subpath (`@adia-ai/web-modules/shell/admin-shell`) preserves
13
+ * the explicit-import contract; this `/with-css` companion is the named
14
+ * opt-in for consumers who prefer one-line cold-start over tree-shake.
15
+ *
16
+ * Pairs verified at CI by `scripts/release/check-with-css-pairing.mjs`.
17
+ */
18
+ import './admin-shell.js';
19
+ import './admin-shell.css';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Type declarations for `simple-shell/with-css` — opt-in CSS-bundled companion.
3
+ *
4
+ * Side-effect-only module. Importing this registers the `<simple-shell>`
5
+ * custom element AND side-effect-imports its layout CSS.
6
+ *
7
+ * Per ADR-0030 (shell `/with-css` opt-in carve-out, v0.6.10). The
8
+ * canonical class type is re-exported here so consumers using the
9
+ * `/with-css` companion don't lose typing parity with the default
10
+ * subpath.
11
+ */
12
+
13
+ export * from './simple-shell.js';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Opt-in `/with-css` companion for <simple-shell>.
3
+ *
4
+ * Side-effect-only module. Importing this:
5
+ * 1. Loads `./simple-shell.js` (registers the `<simple-shell>` custom element)
6
+ * 2. Side-effect-imports `./simple-shell.css` (mounts the shell's layout CSS)
7
+ *
8
+ * Consumer-facing entry point:
9
+ * import '@adia-ai/web-modules/simple/simple-shell/with-css';
10
+ *
11
+ * Explicit CSS-policy carve-out per ADR-0030. See sibling file
12
+ * `packages/web-modules/shell/admin-shell/with-css.js` for the full
13
+ * rationale.
14
+ */
15
+ import './simple-shell.js';
16
+ import './simple-shell.css';