@adia-ai/web-modules 0.7.12 → 0.7.13

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,16 @@
1
1
  # Changelog — @adia-ai/web-modules
2
2
 
3
+ ## [0.7.13] — 2026-06-06
4
+
5
+ ### Fixed
6
+ - **`./css/sheet` subpath export now resolves TS types.** Same fix as `@adia-ai/web-components` — added `web-modules.sheet.d.ts` + the `types` condition + the `.d.ts` to `files[]`.
7
+
8
+ ### Added
9
+ - **`<embed-shell>` `/with-css` companion** (ADR-0030) — `import '@adia-ai/web-modules/shell/embed-shell/with-css'` registers the element + mounts its CSS in one line; completes the 5-shell `/with-css` family (was the lone shell missing it). (check:with-css-pairing.)
10
+
11
+ ### Docs
12
+ - README CDN snippets refreshed: `@0.6` → `@0.7`.
13
+
3
14
  ## [0.7.12] — 2026-06-04
4
15
 
5
16
  ### Changed
@@ -967,7 +978,7 @@ import '@adia-ai/web-modules/theme/theme-panel.css';
967
978
  "./theme/*.css": "./theme/*/*.css"
968
979
  ```
969
980
 
970
- The pattern key `./<cluster>/*.css` captures the element name; the value's two `*` are both substituted with the captured name, resolving `<cluster>/<elem>.css` requests to `<cluster>/<elem>/<elem>.css` on disk. Existing JS subpath exports (`./<cluster>/*` → `./<cluster>/*/*.js`) are preserved unchanged — both can coexist because `.css` requests don't collide with bare-name `.js` requests. Driven by [consumer feedback](/Users/kimba/Projects/adia/color-app/docs/outbound/FEEDBACK-adia-packages.md) from Design Tokens Studio (claim #6, the only fully-correct item in their 8-claim audit).
981
+ The pattern key `./<cluster>/*.css` captures the element name; the value's two `*` are both substituted with the captured name, resolving `<cluster>/<elem>.css` requests to `<cluster>/<elem>/<elem>.css` on disk. Existing JS subpath exports (`./<cluster>/*` → `./<cluster>/*/*.js`) are preserved unchanged — both can coexist because `.css` requests don't collide with bare-name `.js` requests. Driven by consumer feedback from Design Tokens Studio (claim #6, the only fully-correct item in their 8-claim audit).
971
982
 
972
983
  ### Documentation
973
984
 
@@ -978,7 +989,7 @@ The pattern key `./<cluster>/*.css` captures the element name; the value's two `
978
989
 
979
990
  Lockstep PATCH cut alongside `@adia-ai/web-components@0.4.4` (14 yaml gap closures from corpus simplification arc), `@adia-ai/a2ui-runtime@0.4.4` (registry expansion +27 web-modules + renderer kebab-case fix), `@adia-ai/a2ui-compose@0.4.4` (composition-library rename + transpiler `<a>` → Link), `@adia-ai/a2ui-corpus@0.4.4` (corpus simplification arc §36–§51), `@adia-ai/a2ui-mcp@0.4.4` (`get_fragment` tool retirement). Source byte-identical to v0.4.3.
980
991
 
981
- Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry — `^0.4.0` covers `0.4.x` under semver). See root [CHANGELOG.md `## [0.4.4]`](../../../CHANGELOG.md) for the cut narrative.
992
+ Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry — `^0.4.0` covers `0.4.x` under semver). See root [CHANGELOG.md `## [0.4.4]`](../../CHANGELOG.md) for the cut narrative.
982
993
  ## [0.4.3] - 2026-05-11
983
994
 
984
995
  ### Documentation
@@ -1129,7 +1140,7 @@ Legacy authoring shapes (`<section data-chat-messages>`, `<chat-input-ui data-ch
1129
1140
  Legacy authoring shapes (`<aside data-sidebar="leading">`, `<dialog data-command>`, `<div data-resize>`, `[data-sidebar-toggle]`, `<aside-ui slot="leading">`) all still work identically. Mixed markup (some bespoke, some legacy) renders the same. Migration is opt-in.
1130
1141
  ## [0.3.3] - 2026-05-07
1131
1142
 
1132
- **Lockstep cut.** All 9 published `@adia-ai/*` packages now share version `0.3.3`, governed by [`docs/specs/package-architecture.md` § 15](../../../docs/specs/package-architecture.md#15-versioning-policy).
1143
+ **Lockstep cut.** All 9 published `@adia-ai/*` packages now share version `0.3.3`, governed by [`docs/specs/package-architecture.md` § 15](../../docs/specs/package-architecture.md#15-versioning-policy).
1133
1144
 
1134
1145
  ### Changed
1135
1146
 
@@ -1142,7 +1153,7 @@ Legacy authoring shapes (`<aside data-sidebar="leading">`, `<dialog data-command
1142
1153
  ## [0.3.2] - 2026-05-06
1143
1154
 
1144
1155
  **9-package lockstep patch cut to v0.3.2.** All lockstep members share
1145
- one version per [`docs/specs/package-architecture.md` § 15](../../../docs/specs/package-architecture.md#15-versioning-policy).
1156
+ one version per [`docs/specs/package-architecture.md` § 15](../../docs/specs/package-architecture.md#15-versioning-policy).
1146
1157
  Internal `@adia-ai/*` dep ranges unchanged at `^0.3.0`.
1147
1158
 
1148
1159
  ### No source changes
@@ -1226,7 +1237,7 @@ _Nothing yet._
1226
1237
 
1227
1238
  **Lockstep cut.** All 8 published `@adia-ai/*` packages bump
1228
1239
  0.2.2 → 0.2.3 per
1229
- [`docs/specs/package-architecture.md` § 15](../../../docs/specs/package-architecture.md#15-versioning-policy).
1240
+ [`docs/specs/package-architecture.md` § 15](../../docs/specs/package-architecture.md#15-versioning-policy).
1230
1241
  Patch cut — no breaking changes.
1231
1242
 
1232
1243
  ### Changed
package/README.md CHANGED
@@ -19,11 +19,11 @@ Since **v0.6.30**, both this package and `@adia-ai/web-components` ship pre-flat
19
19
 
20
20
  ```html
21
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/dist/web-components.min.css">
23
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.6/dist/shell/admin-shell.min.css">
22
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adia-ai/web-components@0.7/dist/web-components.min.css">
23
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.7/dist/shell/admin-shell.min.css">
24
24
 
25
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/dist/everything.min.js"></script>
26
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.7/dist/everything.min.js"></script>
27
27
 
28
28
  <admin-shell mode="rounded borderless">
29
29
  <admin-sidebar slot="leading" resizable collapsible>
@@ -81,8 +81,8 @@ Since **v0.6.30**, both this package and `@adia-ai/web-components` ship pre-flat
81
81
  **Per-shell setup (advanced — only one shell tier loaded):**
82
82
 
83
83
  ```html
84
- <script type="module" src="https://cdn.jsdelivr.net/npm/@adia-ai/web-components@0.6/dist/web-components.min.js"></script>
85
- <script type="module" src="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.6/dist/shell/admin-shell.min.js"></script>
84
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@adia-ai/web-components@0.7/dist/web-components.min.js"></script>
85
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.7/dist/shell/admin-shell.min.js"></script>
86
86
  ```
87
87
 
88
88
  | Bundle | Path | Gzipped | Contents | When to use |
@@ -96,13 +96,13 @@ Since **v0.6.30**, both this package and `@adia-ai/web-components` ship pre-flat
96
96
  **Each shell needs its matching CSS** (the kitchen-sink example above loads only `admin-shell.min.css`). Mirror the JS path — swap the shell tier:
97
97
 
98
98
  ```html
99
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.6/dist/shell/admin-shell.min.css">
100
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.6/dist/chat/chat-shell.min.css">
101
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.6/dist/editor/editor-shell.min.css">
102
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.6/dist/simple/simple-shell.min.css">
99
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.7/dist/shell/admin-shell.min.css">
100
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.7/dist/chat/chat-shell.min.css">
101
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.7/dist/editor/editor-shell.min.css">
102
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@adia-ai/web-modules@0.7/dist/simple/simple-shell.min.css">
103
103
  ```
104
104
 
105
- The `@0.6` range tracks the latest `0.6.x` patch (won't jump to a breaking `0.7`); pin an exact version (e.g. `@0.6.45`) for reproducible builds.
105
+ The `@0.7` range tracks the latest `0.6.x` patch (won't jump to a breaking `0.8`); pin an exact version (e.g. `@0.7.13`) for reproducible builds.
106
106
 
107
107
  **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.
108
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adia-ai/web-modules",
3
- "version": "0.7.12",
3
+ "version": "0.7.13",
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": {
@@ -14,6 +14,7 @@
14
14
  "default": "./dist/web-modules.min.css"
15
15
  },
16
16
  "./css/sheet": {
17
+ "types": "./web-modules.sheet.d.ts",
17
18
  "import": "./dist/web-modules.sheet.js",
18
19
  "default": "./dist/web-modules.sheet.js"
19
20
  },
@@ -260,6 +261,7 @@
260
261
  "!generative/**/*.html",
261
262
  "index.js",
262
263
  "css-module.d.ts",
264
+ "web-modules.sheet.d.ts",
263
265
  "README.md",
264
266
  "CHANGELOG.md"
265
267
  ],
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Type declarations for `embed-shell/with-css` — opt-in CSS-bundled companion.
3
+ *
4
+ * Side-effect-only module. Importing this registers the `<embed-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 './embed-shell.js';
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Opt-in `/with-css` companion for <embed-shell>.
3
+ *
4
+ * Side-effect-only module. Importing this:
5
+ * 1. Loads `./embed-shell.js` (registers the `<embed-shell>` custom element)
6
+ * 2. Side-effect-imports `./embed-shell.css` (mounts the shell's layout CSS)
7
+ *
8
+ * Consumer-facing entry point:
9
+ * import '@adia-ai/web-modules/shell/embed-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/embed-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 './embed-shell.js';
19
+ import './embed-shell.css';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Type declarations for the `@adia-ai/web-modules/css/sheet` subpath — the
3
+ * constructable-`CSSStyleSheet` twin of `web-modules.min.css` (byte-identical to the
4
+ * CDN bundle), adopted via `document.adoptedStyleSheets`.
5
+ */
6
+ export function constructSheet(): CSSStyleSheet | null;
7
+ export default constructSheet;