@takazudo/zudo-sg 0.8.0 → 0.8.2
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 +32 -0
- package/README.md +3 -3
- package/dist/token-dashboard/token-dashboard-mount.js +17 -7
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,38 @@ 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.2] - 2026-11-06
|
|
8
|
+
|
|
9
|
+
A patch release that moves the engine's tested peer floors to the current
|
|
10
|
+
zfb and zudo-doc releases. No engine code changed.
|
|
11
|
+
|
|
12
|
+
### Other Changes
|
|
13
|
+
|
|
14
|
+
- The `@takazudo/zfb` peer is now ^5.2.2 (was ^5.1.5). zfb 5.2.x includes the
|
|
15
|
+
5.2.2 client-router fixes: form submission now matches native browser
|
|
16
|
+
behavior (encoding, form ownership, controls that shadow form properties),
|
|
17
|
+
and SVG/xlink URLs resolve against the document base.
|
|
18
|
+
- The `@takazudo/zudo-doc` peer is now ^9.1.3 (was ^9.1.1). 9.1.3 requires
|
|
19
|
+
the zfb 5.2.2 family.
|
|
20
|
+
|
|
21
|
+
## [0.8.1] - 2026-10-30
|
|
22
|
+
|
|
23
|
+
A patch release that makes token dashboard failures easier to diagnose and
|
|
24
|
+
picks up the zudo-doc 9.1.1 fix.
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
- The token dashboard now tells an adapter import failure apart from a mount
|
|
29
|
+
failure. An import failure still shows "Unable to load declared token
|
|
30
|
+
defaults"; a mount failure clears any partial DOM and shows its own message.
|
|
31
|
+
Both log the underlying error to the console instead of discarding it.
|
|
32
|
+
|
|
33
|
+
### Other Changes
|
|
34
|
+
|
|
35
|
+
- The `@takazudo/zudo-doc` peer is now ^9.1.1 (was ^9.1.0), picking up the
|
|
36
|
+
9.1.1 fix for the `categoryMatch` regression with dash satellite
|
|
37
|
+
directories.
|
|
38
|
+
|
|
7
39
|
## [0.8.0] - 2026-10-28
|
|
8
40
|
|
|
9
41
|
This release moves the engine onto zdtp 0.9, which renders with zfb's
|
package/README.md
CHANGED
|
@@ -132,10 +132,10 @@ 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.
|
|
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
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
The engine peers are `@takazudo/zfb ^5.
|
|
138
|
+
The engine peers are `@takazudo/zfb ^5.2.2`, `@takazudo/zudo-doc ^9.1.3`,
|
|
139
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:
|
|
@@ -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.
|
|
221
|
+
peer floor (5.2.2) 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
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
import { jsx } from "@takazudo/zfb/zudo-react/jsx-runtime";
|
|
3
3
|
import { getScope } from "@takazudo/zfb/zudo-react";
|
|
4
4
|
import { buildDashboardPreviewOverrides } from "./ui-token-tabs.js";
|
|
5
|
+
function showFailure(host, message) {
|
|
6
|
+
host.replaceChildren();
|
|
7
|
+
host.setAttribute("role", "alert");
|
|
8
|
+
host.textContent = message;
|
|
9
|
+
}
|
|
5
10
|
function TokenDashboardMount({ manifest, ...props }) {
|
|
6
11
|
const ref = { current: null };
|
|
7
12
|
const scope = getScope();
|
|
@@ -11,14 +16,19 @@ function TokenDashboardMount({ manifest, ...props }) {
|
|
|
11
16
|
const host = ref.current;
|
|
12
17
|
void import("./token-dashboard-adapter.js").then(({ mountDashboard }) => {
|
|
13
18
|
if (!alive) return;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
try {
|
|
20
|
+
unmount = mountDashboard(host, {
|
|
21
|
+
...props,
|
|
22
|
+
previewOverrides: buildDashboardPreviewOverrides(manifest)
|
|
23
|
+
});
|
|
24
|
+
} catch (error) {
|
|
25
|
+
console.error("[zudo-sg] token dashboard failed to mount", error);
|
|
26
|
+
showFailure(host, "Unable to render the token dashboard. Reload to try again.");
|
|
27
|
+
}
|
|
28
|
+
}, (error) => {
|
|
19
29
|
if (!alive) return;
|
|
20
|
-
|
|
21
|
-
host
|
|
30
|
+
console.error("[zudo-sg] token dashboard adapter failed to load", error);
|
|
31
|
+
showFailure(host, "Unable to load declared token defaults. Reload to try again.");
|
|
22
32
|
});
|
|
23
33
|
return () => {
|
|
24
34
|
alive = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takazudo/zudo-sg",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
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.
|
|
160
|
+
"@takazudo/zfb": "^5.2.2",
|
|
161
161
|
"@takazudo/zdtp": "^0.9.0",
|
|
162
|
-
"@takazudo/zudo-doc": "^9.1.
|
|
162
|
+
"@takazudo/zudo-doc": "^9.1.3"
|
|
163
163
|
},
|
|
164
164
|
"devDependencies": {
|
|
165
165
|
"@takazudo/zdtp": "0.9.0",
|
|
166
|
-
"@takazudo/zfb": "5.
|
|
167
|
-
"@takazudo/zudo-doc": "9.1.
|
|
166
|
+
"@takazudo/zfb": "5.2.2",
|
|
167
|
+
"@takazudo/zudo-doc": "9.1.3",
|
|
168
168
|
"@testing-library/jest-dom": "^7.0.1",
|
|
169
169
|
"@types/culori": "^4.0.1",
|
|
170
170
|
"@types/node": "^22.20.5",
|