@takazudo/zudo-sg 0.6.0 → 0.8.0

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
@@ -4,6 +4,47 @@ All notable changes to `@takazudo/zudo-sg` are documented in this file.
4
4
 
5
5
  The format is based on Keep a Changelog, and release notes are generated from the changelog MDX pages.
6
6
 
7
+ ## [0.8.0] - 2026-10-28
8
+
9
+ This release moves the engine onto zdtp 0.9, which renders with zfb's
10
+ zudo-react runtime instead of Preact. The engine's public API is unchanged.
11
+ Hosts upgrade by moving their zdtp and zudo-doc installs to the new peer
12
+ floors.
13
+
14
+ ### Breaking Changes
15
+
16
+ - The `@takazudo/zdtp` peer is now ^0.9.0 (was ^0.8.7). zdtp 0.8 hosts are no
17
+ longer supported.
18
+ - The `@takazudo/zudo-doc` peer is now ^9.1.0 (was ^9.0.0).
19
+
20
+ ### Other Changes
21
+
22
+ - The token dashboard adapter mounts through zdtp's `mountTokenDashboard` on
23
+ the host's zudo-react runtime. The engine no longer depends on `preact`, so
24
+ a host's install graph needs no Preact at all.
25
+ - The packed-install verifier proves the host graph is Preact-free and that
26
+ the host, the engine and zdtp share one `@takazudo/zfb`. Its Chromium
27
+ fallback also finds newer Playwright builds unpacked to `chrome-linux64/`.
28
+ - The README install line and peer list follow the new floors.
29
+
30
+ ## [0.7.0] - 2026-10-27
31
+
32
+ This release moves the engine onto zudo-doc 9. The engine's public API is
33
+ unchanged. Hosts upgrade by moving their zudo-doc, zfb and zdtp installs to the
34
+ new peer floors.
35
+
36
+ ### Breaking Changes
37
+
38
+ - The `@takazudo/zudo-doc` peer is now ^9.0.0 (was ^8.1.0). zudo-doc 9 makes
39
+ Graphite the default theme pack when `themePack` is omitted; hosts that want
40
+ to keep the Classic look set `themePack: "default"` explicitly.
41
+ - The `@takazudo/zfb` peer is now ^5.1.5 (was ^5.1.2) and the `@takazudo/zdtp`
42
+ peer is now ^0.8.7 (was ^0.8.6).
43
+
44
+ ### Other Changes
45
+
46
+ - The README install line and peer list follow the new floors.
47
+
7
48
  ## [0.6.0] - 2026-10-25
8
49
 
9
50
  This release moves the engine onto the zfb 5 and zudo-doc 8 toolchain. The
package/README.md CHANGED
@@ -98,9 +98,9 @@ inside detail-page iframes.
98
98
 
99
99
  Module-mode stories use zfb's zudo-react runtime. Hosts using another
100
100
  framework can use descriptor mode with an external preview document; see the
101
- ADR's "Framework scope" decision. The `/tokens` dashboard is the one renderer
102
- exception: its opaque adapter mounts zdtp's Preact widget internally, with
103
- Preact installed as an engine dependency rather than a host peer.
101
+ ADR's "Framework scope" decision. The `/tokens` dashboard mounts zdtp's
102
+ zudo-react widget through an engine-owned adapter, sharing the host's
103
+ `@takazudo/zfb` runtime; neither the engine nor the host depends on Preact.
104
104
 
105
105
  ## Quick start with the initializer
106
106
 
@@ -132,15 +132,16 @@ output as drift and never writes it.
132
132
  ## Installation
133
133
 
134
134
  ```sh
135
- pnpm add @takazudo/zudo-sg@latest @takazudo/zfb@^5.1.2 @takazudo/zfb-md-wasm@^5.1.2 @takazudo/zfb-runtime@^5.1.2 @takazudo/zudo-doc@^8.1.0 @takazudo/zdtp@^0.8.6 diff@^8.0.4 katex@^0.19.0 zod@^4.3.6
135
+ pnpm add @takazudo/zudo-sg@latest @takazudo/zfb@^5.1.5 @takazudo/zfb-md-wasm@^5.1.5 @takazudo/zfb-runtime@^5.1.5 @takazudo/zudo-doc@^9.1.0 @takazudo/zdtp@^0.9.0 diff@^8.0.4 katex@^0.19.0 zod@^4.3.6
136
136
  ```
137
137
 
138
- The engine peers are `@takazudo/zfb ^5.1.2`, `@takazudo/zudo-doc ^8.1.0`,
139
- and `@takazudo/zdtp ^0.8.6`. zfb 5 and zudo-doc 8 require Node.js 24, and
138
+ The engine peers are `@takazudo/zfb ^5.1.5`, `@takazudo/zudo-doc ^9.1.0`,
139
+ and `@takazudo/zdtp ^0.9.0`. zfb 5 and zudo-doc 9 require Node.js 24, and
140
140
  zudo-doc requires KaTeX `^0.18.2 || ^0.19.0`. The former zudo-doc 6.2.0 /
141
141
  Node.js 22 option was retired with zfb 5. `@takazudo/zdtp` is required:
142
142
  the injected `/tokens` route loads its dashboard through the engine-owned
143
- opaque Preact adapter. Preact is a regular engine dependency, not a host peer. The
143
+ adapter, which calls zdtp's `mountTokenDashboard` on the host's
144
+ zudo-react runtime. The engine has no Preact dependency. The
144
145
  `@takazudo/zfb-md-wasm`, `@takazudo/zfb-runtime`, `diff`, `katex`, and `zod`
145
146
  entries are prerequisites inherited from zfb/zudo-doc; zudo-doc's published
146
147
  route dist imports `diff` and `katex` even when those features are disabled
@@ -217,7 +218,7 @@ control. Any non-empty host navigation stays authoritative; set
217
218
  `chromeDefaults: false` in the second argument to keep an intentionally empty
218
219
  header. The engine requires `packageOwnedRoutes: true` on the host (its
219
220
  routes import zudo-doc's route-context virtual modules). On the engine's zfb
220
- peer floor (5.1.2) nothing else is needed: `zfb dev` seeds its island
221
+ peer floor (5.1.5) nothing else is needed: `zfb dev` seeds its island
221
222
  scanner from the injected routes. `@takazudo/zudo-sg/islands` remains
222
223
  exported as a side-effect module that statically imports every engine
223
224
  island — importing it once from a host `pages/` file is optional and
@@ -325,7 +326,7 @@ The public leaf modules `@takazudo/zudo-sg/preview/external-runtime` and
325
326
  validators. They can be imported in Node/SSR without a browser. React,
326
327
  ReactDOM, fixture loaders and component closures belong only in the host's
327
328
  separately built same-origin preview document. The engine shell and catalog
328
- stay zudo-react; the opaque Preact/zdtp adapter remains independent.
329
+ stay zudo-react, and so does the zdtp dashboard adapter.
329
330
 
330
331
  These contracts are additive. `preview/messages` remains import-free and
331
332
  continues accepting legacy messages with no `v` and current `v: 1` messages.
@@ -1,2 +1,2 @@
1
- import { type TokenDashboardProps } from "@takazudo/zdtp/dashboard";
1
+ import { type TokenDashboardProps } from "@takazudo/zdtp/dashboard/client";
2
2
  export declare function mountDashboard(host: HTMLElement, props: TokenDashboardProps): () => void;
@@ -1,8 +1,7 @@
1
- import { h, render } from "preact";
2
- import { TokenDashboard } from "@takazudo/zdtp/dashboard";
1
+ import { mountTokenDashboard } from "@takazudo/zdtp/dashboard/client";
3
2
  function mountDashboard(host, props) {
4
- render(h(TokenDashboard, props), host);
5
- return () => render(null, host);
3
+ const handle = mountTokenDashboard(host, props);
4
+ return () => handle.dispose();
6
5
  }
7
6
  export {
8
7
  mountDashboard
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/zudo-sg",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "description": "zudo-sg styleguide engine — story registry, catalog routes and preview machinery for zfb + zudo-doc hosts.",
6
6
  "license": "MIT",
@@ -154,18 +154,17 @@
154
154
  "@codemirror/state": "^6.7.6",
155
155
  "@codemirror/view": "^6.43.14",
156
156
  "@lezer/highlight": "^1.2.5",
157
- "postcss": "^8.5.28",
158
- "preact": "^10.29.1"
157
+ "postcss": "^8.5.28"
159
158
  },
160
159
  "peerDependencies": {
161
- "@takazudo/zfb": "^5.1.2",
162
- "@takazudo/zdtp": "^0.8.6",
163
- "@takazudo/zudo-doc": "^8.1.0"
160
+ "@takazudo/zfb": "^5.1.5",
161
+ "@takazudo/zdtp": "^0.9.0",
162
+ "@takazudo/zudo-doc": "^9.1.0"
164
163
  },
165
164
  "devDependencies": {
166
- "@takazudo/zdtp": "0.8.6",
167
- "@takazudo/zfb": "5.1.2",
168
- "@takazudo/zudo-doc": "8.1.0",
165
+ "@takazudo/zdtp": "0.9.0",
166
+ "@takazudo/zfb": "5.1.5",
167
+ "@takazudo/zudo-doc": "9.1.0",
169
168
  "@testing-library/jest-dom": "^7.0.1",
170
169
  "@types/culori": "^4.0.1",
171
170
  "@types/node": "^22.20.5",