@takazudo/zdtp 0.3.0 → 0.3.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 +16 -0
- package/dist/astro/host-adapter.js +2 -2
- package/dist/astro/index.js +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1180 -1117
- package/dist/{panel-config-BOyB8Egg.js → panel-config-066BPYJD.js} +2 -2
- package/dist/panel.d.ts.map +1 -1
- package/dist/testing.js +2 -2
- package/dist/{tweak-state-DMwBHPow.js → tweak-state-Do5gj6Nw.js} +1 -1
- package/dist/utils/design-token-serde.d.ts +15 -1
- package/dist/utils/design-token-serde.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.2
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **Mount the real config on the toggle window event for single-instance non-Astro hosts.** The 0.3.0 multi-instance refactor binds the default instance's `toggle-design-token-panel` listener eagerly at module init, closed over the empty `DEFAULT_PANEL_CONFIG`; the post-`configurePanel()` rebind no-oped for the already-bound prefix, so window-event hosts mounted an empty-body panel (toolbar shell, no tabs). The toggle handler now re-resolves the instance config by prefix at dispatch time (falling back to the active instance for the reserved default event), and `panel.tsx`'s `tabConfigById` tracks `[instanceConfig]` so the tab-body dispatch map never goes stale. The console API was unaffected, so only non-Astro window-event hosts regressed. ([#370](https://github.com/Takazudo/zudo-design-token-panel/issues/370))
|
|
8
|
+
|
|
9
|
+
- **Dedupe the reserved toggle event across listeners.** When a custom-prefix host opts into the reserved `toggle-design-token-panel` name via `config.toggleEvent`, both the eager default listener and the instance's own listener fired on one dispatch and resolved to the same instance — toggling it twice (open, then immediately close). The handler now dedupes per dispatch by resolved instance id carried on the shared Event object, so the panel opens exactly once. ([#371](https://github.com/Takazudo/zudo-design-token-panel/pull/371))
|
|
10
|
+
|
|
11
|
+
## 0.3.1
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **Round-trip generic (custom-id) tab overrides through Export/Load.** The design-token serde only handled the four dedicated slices (color/spacing/font/size); overrides for host-coined generic (custom-id) tabs lived in `state.tabs` and were applied live but silently dropped from Export, so Load-from-JSON could not restore them. `serialize()` now emits each non-reserved configured tab's overrides under `tabs[id].raw` (cssVar-keyed) and `deserializeV2()` reads them back into `state.tabs[id]` via a tier-aware reverse lookup — symmetric with the existing apply path. ([#363](https://github.com/Takazudo/zudo-design-token-panel/issues/363))
|
|
16
|
+
|
|
17
|
+
- **Skip the bin integration test suite when `dist/bin/server.js` is absent.** `server.integration.test.ts` spawns the built bin and previously threw in `beforeAll` when it was missing, failing the `node` vitest project on a fresh checkout (before a build). It now gates the suite with `describe.skipIf` on build presence (with a console warning) instead of hard-failing; CI builds before testing, so the suite still runs there. ([#360](https://github.com/Takazudo/zudo-design-token-panel/issues/360))
|
|
18
|
+
|
|
3
19
|
## 0.3.0
|
|
4
20
|
|
|
5
21
|
### Features
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as f, g as c, a as p, b as h, d as m, e as w } from "../panel-config-
|
|
2
|
-
import { Z as P } from "../tweak-state-
|
|
1
|
+
import { c as f, g as c, a as p, b as h, d as m, e as w } from "../panel-config-066BPYJD.js";
|
|
2
|
+
import { Z as P } from "../tweak-state-Do5gj6Nw.js";
|
|
3
3
|
const i = "tokenpanel-config";
|
|
4
4
|
function y() {
|
|
5
5
|
if (typeof document > "u")
|
package/dist/astro/index.js
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AASH,OAAO,oBAAoB,CAAC;AAc5B,OAAO,EAUL,KAAK,WAAW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