@adia-ai/web-modules 0.6.9 → 0.6.11
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 +20 -1
- package/chat/chat-shell/with-css.d.ts +13 -0
- package/chat/chat-shell/with-css.js +16 -0
- package/editor/editor-shell/with-css.d.ts +13 -0
- package/editor/editor-shell/with-css.js +16 -0
- package/package.json +21 -1
- package/shell/admin-shell/with-css.d.ts +13 -0
- package/shell/admin-shell/with-css.js +19 -0
- package/simple/simple-shell/with-css.d.ts +13 -0
- package/simple/simple-shell/with-css.js +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog — @adia-ai/web-modules
|
|
2
2
|
|
|
3
|
+
## [0.6.11] — 2026-05-20
|
|
4
|
+
|
|
5
|
+
### Maintenance
|
|
6
|
+
- **Lockstep version bump only.** No source changes in this package; bumped to maintain the 9-package version coherence enforced by `scripts/release/check-lockstep.mjs`. Substantive v0.6.11 work shipped in `@adia-ai/web-components` (`<canvas-ui>` `.d.ts` hand-author covering 9 imperative runtime methods, claims-ui-v2 inbound FB-02 finding 2 closure) and `adia-ui-kit` skill v2.8.0 bundled feedback close (FB-01, FB-02 findings 1+3, FB-03; graduated `/with-css` opt-in docs + `ADIA_TICKETS_DIR` central-inbound workflow).
|
|
7
|
+
|
|
8
|
+
## [0.6.10] — 2026-05-21
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **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):
|
|
12
|
+
```js
|
|
13
|
+
// Default subpath — unchanged (explicit-import contract; tree-shake friendly)
|
|
14
|
+
import '@adia-ai/web-modules/shell/admin-shell';
|
|
15
|
+
import '@adia-ai/web-modules/shell/admin-shell.css';
|
|
16
|
+
|
|
17
|
+
// Opt-in /with-css companion — one import, JS + CSS bundled
|
|
18
|
+
import '@adia-ai/web-modules/shell/admin-shell/with-css';
|
|
19
|
+
```
|
|
20
|
+
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.
|
|
21
|
+
|
|
3
22
|
## [0.6.9] — 2026-05-21
|
|
4
23
|
|
|
5
24
|
### Documentation
|
|
@@ -593,7 +612,7 @@ This is a **minor cut on top of v0.2.5 with one BREAKING install change**: `@adi
|
|
|
593
612
|
### Changed
|
|
594
613
|
|
|
595
614
|
- **`<chat-shell>` chat-input now imports `streamChat` from `@adia-ai/llm`** instead of `@adia-ai/a2ui-compose/llm`. No behavior change at the chat-shell API surface (same `provider`/`model`/`messages` props, same chunk-stream events). Internal — but consumer-visible because `peerDependencies` changed.
|
|
596
|
-
- **Proxy mode now works correctly.** When `<chat-shell>` is configured with `proxy-url="/api/chat"` (or any proxy URL), the request body now includes `provider` so the proxy routes to the right upstream. Previously, OpenAI/Gemini requests through proxy mode silently routed to Anthropic and 404'd. The `Authorization: Bearer
|
|
615
|
+
- **Proxy mode now works correctly.** When `<chat-shell>` is configured with `proxy-url="/api/chat"` (or any proxy URL), the request body now includes `provider` so the proxy routes to the right upstream. Previously, OpenAI/Gemini requests through proxy mode silently routed to Anthropic and 404'd. The `Authorization: Bearer *** header that appeared in proxy-mode requests (when `apiKey` was absent) is also gone.
|
|
597
616
|
- `peerDependencies["@adia-ai/llm"]`: NEW, `^0.3.0`.
|
|
598
617
|
- `peerDependencies["@adia-ai/web-components"]`: `^0.2.0` → `^0.3.0`.
|
|
599
618
|
- `peerDependencies["@adia-ai/a2ui-utils"]` removed; replaced by `peerDependencies["@adia-ai/a2ui-runtime"]: ^0.3.0` (rename + bump).
|
|
@@ -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.
|
|
3
|
+
"version": "0.6.11",
|
|
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';
|