@takazudo/zudo-sg 0.3.2 → 0.3.4
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 +14 -0
- package/README.md +3 -3
- package/package.json +9 -9
- package/styles.css +0 -30
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ 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.3.4] - 2026-09-24
|
|
8
|
+
|
|
9
|
+
This release aligns the engine's peer requirements with the tested zfb,
|
|
10
|
+
zudo-doc, and zdtp versions. It also updates the GitHub Actions dependencies
|
|
11
|
+
used by the publish workflow.
|
|
12
|
+
|
|
13
|
+
## [0.3.3] - 2026-09-23
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- Preserve a host's semantic colors in inline component thumbnails. The engine
|
|
18
|
+
no longer replaces them with demo-specific palette variables, so hosts with
|
|
19
|
+
their own palette names need no local stylesheet override.
|
|
20
|
+
|
|
7
21
|
## [0.3.2] - 2026-09-23
|
|
8
22
|
|
|
9
23
|
### Features
|
package/README.md
CHANGED
|
@@ -126,11 +126,11 @@ output as drift and never writes it.
|
|
|
126
126
|
## Installation
|
|
127
127
|
|
|
128
128
|
```sh
|
|
129
|
-
pnpm add @takazudo/zudo-sg@latest @takazudo/zfb@^2.20.
|
|
129
|
+
pnpm add @takazudo/zudo-sg@latest @takazudo/zfb@^2.20.2 @takazudo/zfb-md-wasm@^2.20.2 @takazudo/zfb-runtime@^2.20.2 @takazudo/zudo-doc@^5.27.0 @takazudo/zdtp@^0.8.2 diff@^8.0.4 katex@^0.16.38 preact@^10.29.8 preact-render-to-string@^6.6.6 tailwindcss@^4.2.0 zod@^4.3.6
|
|
130
130
|
```
|
|
131
131
|
|
|
132
|
-
The engine peers are `@takazudo/zfb ^2.20.
|
|
133
|
-
`@takazudo/zdtp ^0.8.
|
|
132
|
+
The engine peers are `@takazudo/zfb ^2.20.2`, `@takazudo/zudo-doc ^5.27.0`,
|
|
133
|
+
`@takazudo/zdtp ^0.8.2`, and `preact ^10.29.8`. `@takazudo/zdtp` is required:
|
|
134
134
|
the injected `/tokens` route imports its dashboard at build time. The
|
|
135
135
|
`@takazudo/zfb-md-wasm`, `@takazudo/zfb-runtime`, `diff`, `katex`, and `zod`
|
|
136
136
|
entries are prerequisites inherited from zfb/zudo-doc; zudo-doc's published
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takazudo/zudo-sg",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
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",
|
|
@@ -134,19 +134,19 @@
|
|
|
134
134
|
"@codemirror/theme-one-dark": "^6.0.0",
|
|
135
135
|
"@codemirror/view": "^6.0.0",
|
|
136
136
|
"postcss": "^8.5.28",
|
|
137
|
-
"@tailwindcss/node": "^4.
|
|
138
|
-
"@tailwindcss/oxide": "^4.
|
|
137
|
+
"@tailwindcss/node": "^4.3.3",
|
|
138
|
+
"@tailwindcss/oxide": "^4.3.3"
|
|
139
139
|
},
|
|
140
140
|
"peerDependencies": {
|
|
141
|
-
"@takazudo/zfb": "^2.20.
|
|
142
|
-
"@takazudo/zdtp": "^0.8.
|
|
143
|
-
"@takazudo/zudo-doc": "^5.
|
|
141
|
+
"@takazudo/zfb": "^2.20.2",
|
|
142
|
+
"@takazudo/zdtp": "^0.8.2",
|
|
143
|
+
"@takazudo/zudo-doc": "^5.27.0",
|
|
144
144
|
"preact": "^10.29.8"
|
|
145
145
|
},
|
|
146
146
|
"devDependencies": {
|
|
147
|
-
"@takazudo/zdtp": "0.8.
|
|
148
|
-
"@takazudo/zfb": "2.20.
|
|
149
|
-
"@takazudo/zudo-doc": "5.
|
|
147
|
+
"@takazudo/zdtp": "0.8.2",
|
|
148
|
+
"@takazudo/zfb": "2.20.2",
|
|
149
|
+
"@takazudo/zudo-doc": "5.27.0",
|
|
150
150
|
"@testing-library/jest-dom": "^6.9.1",
|
|
151
151
|
"@testing-library/preact": "^3.2.4",
|
|
152
152
|
"@types/culori": "^4.0.1",
|
package/styles.css
CHANGED
|
@@ -393,7 +393,6 @@
|
|
|
393
393
|
* overflows is top-anchored (`safe` falls back to `start`) and clipped, never
|
|
394
394
|
* cropped at both ends.
|
|
395
395
|
*
|
|
396
|
-
* PALETTE SCOPE — load-bearing, see the block on `.sg-thumb[data-sg-preview-scope]`.
|
|
397
396
|
* ========================================================================== */
|
|
398
397
|
|
|
399
398
|
:root {
|
|
@@ -465,35 +464,6 @@
|
|
|
465
464
|
pointer-events: none;
|
|
466
465
|
}
|
|
467
466
|
|
|
468
|
-
/* PALETTE SCOPE.
|
|
469
|
-
*
|
|
470
|
-
* A host `@theme` typically RE-ASSERTS the overlapping `--color-*` names to
|
|
471
|
-
* its own doc-chrome roles at `:root` (0,1,0), so a component rendered on a
|
|
472
|
-
* doc-chrome page would silently take the DOC palette instead of its own.
|
|
473
|
-
* This selector is (0,2,0) — class + attribute — so it wins over `:root`
|
|
474
|
-
* regardless of @import order, and is scoped to the thumbnail so the
|
|
475
|
-
* surrounding catalogue chrome keeps the doc palette.
|
|
476
|
-
*
|
|
477
|
-
* The declarations below are the canonical Tier-2 provider values (see
|
|
478
|
-
* packages/demo-ui/styles/colors.css) restored for exactly the names a host is
|
|
479
|
-
* likely to re-assert. The ui-only names a host does NOT typically re-assert
|
|
480
|
-
* (surface-2, rail-*, focus, on-accent, loading-scrim) already resolve to the
|
|
481
|
-
* ui palette and need no restore here. */
|
|
482
|
-
.sg-thumb[data-sg-preview-scope] {
|
|
483
|
-
--color-bg: light-dark(var(--palette-neutral-0), var(--palette-neutral-3));
|
|
484
|
-
--color-surface: light-dark(var(--palette-neutral-0), var(--palette-neutral-3));
|
|
485
|
-
--color-fg: light-dark(var(--palette-neutral-3), var(--palette-neutral-0));
|
|
486
|
-
--color-muted: light-dark(var(--palette-neutral-2), var(--palette-neutral-1));
|
|
487
|
-
--color-accent: light-dark(var(--palette-accent-2), var(--palette-accent-1));
|
|
488
|
-
--color-accent-hover: light-dark(var(--palette-accent-3), var(--palette-accent-0));
|
|
489
|
-
/* Restore the provider border after a host's doc-ramp re-assertion. */
|
|
490
|
-
--color-border: light-dark(var(--palette-neutral-1), var(--palette-neutral-2));
|
|
491
|
-
--color-success: light-dark(var(--palette-state-success), var(--palette-state-success-dark));
|
|
492
|
-
--color-danger: light-dark(var(--palette-state-danger), var(--palette-state-danger-dark));
|
|
493
|
-
--color-warning: light-dark(var(--palette-state-warning), var(--palette-state-warning-dark));
|
|
494
|
-
--color-info: light-dark(var(--palette-state-info), var(--palette-state-info-dark));
|
|
495
|
-
}
|
|
496
|
-
|
|
497
467
|
/* Bottom fade for a component taller than its slot. Painted in the slot's own
|
|
498
468
|
* background, so over the empty space under a component that fits it is
|
|
499
469
|
* invisible — no measurement needed to decide whether to show it. */
|