@takazudo/zudo-sg 0.8.2 → 0.9.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,44 @@ 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.9.0] - 2026-11-10
8
+
9
+ This release moves the engine onto zfb 6 and zudo-doc 10. The engine's public
10
+ API is unchanged. Hosts upgrade by moving their zfb, zudo-doc, and zdtp
11
+ installs to the new peer floors.
12
+
13
+ ### Breaking Changes
14
+
15
+ - The `@takazudo/zfb` peer is now ^6.0.1 (was ^5.2.2). zfb 5 hosts are no
16
+ longer supported. zfb 6 bundles with Rolldown only, so `ZFB_BUNDLER`,
17
+ `ZFB_ROLLDOWN_PROTOTYPE`, and `ZFB_ESBUILD_BIN` must stay unset.
18
+ - The `@takazudo/zudo-doc` peer is now ^10.0.0 (was ^9.1.4). zudo-doc 9 hosts
19
+ are no longer supported. `themePack: "default"` is now an alias for
20
+ Graphite, and Classic is `themePack: "classic"`.
21
+ - The `@takazudo/zdtp` peer is now ^0.9.3 (was ^0.9.0).
22
+
23
+ ### Bug Fixes
24
+
25
+ - Token dashboards follow the active theme pack's preview colors when that
26
+ pack ships a stylesheet, so a Graphite page and its dashboards share one
27
+ background. zudo-doc 10 also scopes the preview panel mount id to the
28
+ active pack (`storagePrefix--pack`).
29
+
30
+ ### Other Changes
31
+
32
+ - The README install line and peer list follow the new floors.
33
+
34
+ ## [0.8.3] - 2026-11-07
35
+
36
+ A patch release that moves the engine's tested zudo-doc peer floor to the
37
+ current release. No engine code changed.
38
+
39
+ ### Other Changes
40
+
41
+ - The `@takazudo/zudo-doc` peer is now ^9.1.4 (was ^9.1.3). zudo-doc 9.1.4 has
42
+ no package-specific changes; its peers on the zfb 5.2.2 family and zdtp are
43
+ unchanged.
44
+
7
45
  ## [0.8.2] - 2026-11-06
8
46
 
9
47
  A patch release that moves the engine's tested peer floors to the current
package/README.md CHANGED
@@ -132,11 +132,11 @@ 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.2.2 @takazudo/zfb-md-wasm@^5.2.2 @takazudo/zfb-runtime@^5.2.2 @takazudo/zudo-doc@^9.1.3 @takazudo/zdtp@^0.9.0 diff@^8.0.4 katex@^0.19.0 zod@^4.3.6
135
+ pnpm add @takazudo/zudo-sg@latest @takazudo/zfb@^6.0.1 @takazudo/zfb-md-wasm@^6.0.1 @takazudo/zfb-runtime@^6.0.1 @takazudo/zudo-doc@^10.0.0 @takazudo/zdtp@^0.9.3 diff@^8.0.4 katex@^0.19.0 zod@^4.3.6
136
136
  ```
137
137
 
138
- The engine peers are `@takazudo/zfb ^5.2.2`, `@takazudo/zudo-doc ^9.1.3`,
139
- and `@takazudo/zdtp ^0.9.0`. zfb 5 and zudo-doc 9 require Node.js 24, and
138
+ The engine peers are `@takazudo/zfb ^6.0.1`, `@takazudo/zudo-doc ^10.0.0`,
139
+ and `@takazudo/zdtp ^0.9.3`. zfb 6 and zudo-doc 10 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
@@ -218,7 +218,7 @@ control. Any non-empty host navigation stays authoritative; set
218
218
  `chromeDefaults: false` in the second argument to keep an intentionally empty
219
219
  header. The engine requires `packageOwnedRoutes: true` on the host (its
220
220
  routes import zudo-doc's route-context virtual modules). On the engine's zfb
221
- peer floor (5.2.2) nothing else is needed: `zfb dev` seeds its island
221
+ peer floor (6.0.1) nothing else is needed: `zfb dev` seeds its island
222
222
  scanner from the injected routes. `@takazudo/zudo-sg/islands` remains
223
223
  exported as a side-effect module that statically imports every engine
224
224
  island — importing it once from a host `pages/` file is optional and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/zudo-sg",
3
- "version": "0.8.2",
3
+ "version": "0.9.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",
@@ -157,14 +157,14 @@
157
157
  "postcss": "^8.5.28"
158
158
  },
159
159
  "peerDependencies": {
160
- "@takazudo/zfb": "^5.2.2",
161
- "@takazudo/zdtp": "^0.9.0",
162
- "@takazudo/zudo-doc": "^9.1.3"
160
+ "@takazudo/zfb": "^6.0.1",
161
+ "@takazudo/zdtp": "^0.9.3",
162
+ "@takazudo/zudo-doc": "^10.0.0"
163
163
  },
164
164
  "devDependencies": {
165
- "@takazudo/zdtp": "0.9.0",
166
- "@takazudo/zfb": "5.2.2",
167
- "@takazudo/zudo-doc": "9.1.3",
165
+ "@takazudo/zdtp": "0.9.3",
166
+ "@takazudo/zfb": "6.0.1",
167
+ "@takazudo/zudo-doc": "10.0.0",
168
168
  "@testing-library/jest-dom": "^7.0.1",
169
169
  "@types/culori": "^4.0.1",
170
170
  "@types/node": "^22.20.5",
@@ -5,7 +5,9 @@
5
5
 
6
6
  import type { JSX } from "@takazudo/zfb/zudo-react/jsx-runtime";
7
7
  import { Island } from "@takazudo/zfb";
8
+ import themePackCatalog from "@takazudo/zudo-doc/catalog";
8
9
  import { resolveRampRef } from "@takazudo/zudo-doc/color-scheme-utils";
10
+ import { resolveConfiguredThemePack } from "@takazudo/zudo-doc/theme-packs-registry";
9
11
  import { tokensManifest } from "virtual:zudo-sg-tokens";
10
12
  import { StyleguideLayout } from "@takazudo/zudo-sg/chrome";
11
13
  import { TOKENS_SLUG } from "@takazudo/zudo-sg/registry";
@@ -17,11 +19,30 @@ import { ctx } from "./_context.js";
17
19
  export const frontmatter = { title: "Design Tokens" };
18
20
 
19
21
  /**
20
- * Per-mode dashboard chrome colors resolved from the site's zudo-doc color
21
- * schemes (`--zdtp-dashboard-{light,dark}-{bg,fg}`); `undefined` when the
22
- * host passed no `colorSchemes` to the zudo-doc preset.
22
+ * Per-mode dashboard chrome colors (`--zdtp-dashboard-{light,dark}-{bg,fg}`).
23
+ *
24
+ * A theme pack with a stylesheet paints the page from its own palette, so the
25
+ * dashboards follow that pack's preview swatches. Classic (and a host with no
26
+ * pack stylesheet) keeps the color-scheme ramps. `undefined` when the host
27
+ * passed no `colorSchemes` and no styled pack is active.
23
28
  */
24
29
  function buildDashboardChromeStyle(): Record<string, string> | undefined {
30
+ const slug = resolveConfiguredThemePack({
31
+ themePack: settings.themePack,
32
+ colorMode: settings.colorMode,
33
+ customColorSchemes: Boolean(routeCtx.colorSchemes),
34
+ });
35
+ const pack = themePackCatalog.packs.find((entry) => entry.slug === slug);
36
+ if (pack?.hasStylesheet) {
37
+ const { light, dark } = pack.meta.preview;
38
+ return {
39
+ "--zdtp-dashboard-light-bg": light.bg,
40
+ "--zdtp-dashboard-light-fg": light.fg,
41
+ "--zdtp-dashboard-dark-bg": dark.bg,
42
+ "--zdtp-dashboard-dark-fg": dark.fg,
43
+ };
44
+ }
45
+
25
46
  const schemes = routeCtx.colorSchemes;
26
47
  if (!schemes) return undefined;
27
48
  const entries: Array<[string, string]> = [];