@takazudo/zudo-sg 0.8.0 → 0.8.1
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 +18 -0
- package/README.md +2 -2
- package/dist/token-dashboard/token-dashboard-mount.js +17 -7
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ 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.1] - 2026-10-30
|
|
8
|
+
|
|
9
|
+
A patch release that makes token dashboard failures easier to diagnose and
|
|
10
|
+
picks up the zudo-doc 9.1.1 fix.
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- The token dashboard now tells an adapter import failure apart from a mount
|
|
15
|
+
failure. An import failure still shows "Unable to load declared token
|
|
16
|
+
defaults"; a mount failure clears any partial DOM and shows its own message.
|
|
17
|
+
Both log the underlying error to the console instead of discarding it.
|
|
18
|
+
|
|
19
|
+
### Other Changes
|
|
20
|
+
|
|
21
|
+
- The `@takazudo/zudo-doc` peer is now ^9.1.1 (was ^9.1.0), picking up the
|
|
22
|
+
9.1.1 fix for the `categoryMatch` regression with dash satellite
|
|
23
|
+
directories.
|
|
24
|
+
|
|
7
25
|
## [0.8.0] - 2026-10-28
|
|
8
26
|
|
|
9
27
|
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.1.5 @takazudo/zfb-md-wasm@^5.1.5 @takazudo/zfb-runtime@^5.1.5 @takazudo/zudo-doc@^9.1.
|
|
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.1 @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.5`, `@takazudo/zudo-doc ^9.1.
|
|
138
|
+
The engine peers are `@takazudo/zfb ^5.1.5`, `@takazudo/zudo-doc ^9.1.1`,
|
|
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:
|
|
@@ -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.1",
|
|
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",
|
|
@@ -159,12 +159,12 @@
|
|
|
159
159
|
"peerDependencies": {
|
|
160
160
|
"@takazudo/zfb": "^5.1.5",
|
|
161
161
|
"@takazudo/zdtp": "^0.9.0",
|
|
162
|
-
"@takazudo/zudo-doc": "^9.1.
|
|
162
|
+
"@takazudo/zudo-doc": "^9.1.1"
|
|
163
163
|
},
|
|
164
164
|
"devDependencies": {
|
|
165
165
|
"@takazudo/zdtp": "0.9.0",
|
|
166
166
|
"@takazudo/zfb": "5.1.5",
|
|
167
|
-
"@takazudo/zudo-doc": "9.1.
|
|
167
|
+
"@takazudo/zudo-doc": "9.1.1",
|
|
168
168
|
"@testing-library/jest-dom": "^7.0.1",
|
|
169
169
|
"@types/culori": "^4.0.1",
|
|
170
170
|
"@types/node": "^22.20.5",
|