@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/dist/panel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../src/panel.tsx"],"names":[],"mappings":"AAeA,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAkG/B;;;;;;;;;;;GAWG;AACH,UAAU,0BAA0B;IAClC,cAAc,CAAC,EAAE,WAAW,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,cAAc,EAAE,kBAAkB,GACnC,GAAE,0BAA+B,
|
|
1
|
+
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../src/panel.tsx"],"names":[],"mappings":"AAeA,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAkG/B;;;;;;;;;;;GAWG;AACH,UAAU,0BAA0B;IAClC,cAAc,CAAC,EAAE,WAAW,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,cAAc,EAAE,kBAAkB,GACnC,GAAE,0BAA+B,gCAouBjC;AAED,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/testing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r, c as i, f as _, h as n, i as g, b as R, a as p } from "./panel-config-
|
|
2
|
-
import { g as l, a as y, l as O } from "./tweak-state-
|
|
1
|
+
import { _ as r, c as i, f as _, h as n, i as g, b as R, a as p } from "./panel-config-066BPYJD.js";
|
|
2
|
+
import { g as l, a as y, l as O } from "./tweak-state-Do5gj6Nw.js";
|
|
3
3
|
import { F as K, G as E, a as S, S as u } from "./manifest-DCReQE0k.js";
|
|
4
4
|
async function s(a, e) {
|
|
5
5
|
await a.fill(e), await a.dispatchEvent("input");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as d, r as w, d as ne, b as oe, f as re, j as se, i as ie, k as O, h as ae, l as ce, m as fe } from "./panel-config-
|
|
1
|
+
import { g as d, r as w, d as ne, b as oe, f as re, j as se, i as ie, k as O, h as ae, l as ce, m as fe } from "./panel-config-066BPYJD.js";
|
|
2
2
|
class h extends Error {
|
|
3
3
|
constructor(t) {
|
|
4
4
|
super(t), this.name = "TierResolverError", Object.setPrototypeOf(this, h.prototype);
|
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
* }
|
|
41
41
|
* ```
|
|
42
42
|
*
|
|
43
|
+
* Host-coined GENERIC tabs (any configured tab whose id is not one of the
|
|
44
|
+
* dedicated slices `color` / `color-secondary` / `spacing` / `font` / `size`)
|
|
45
|
+
* round-trip the same way as spacing/size: their overrides live in
|
|
46
|
+
* `state.tabs[id]` (the v3 envelope) and serialize under `tabs[id].raw`,
|
|
47
|
+
* cssVar-keyed (issue #363). The apply path (`applyFullState`) already consumes
|
|
48
|
+
* `state.tabs`; serialize + deserialize make Export/Load symmetric with it.
|
|
49
|
+
*
|
|
43
50
|
* Key decisions (issue #74):
|
|
44
51
|
* - cssVar-keyed leaves for portability across host id renames.
|
|
45
52
|
* - Tier-2 ref values are stored as the literal `var(--tier1-cssvar)` CSS
|
|
@@ -121,7 +128,14 @@ export interface DesignTokenJson {
|
|
|
121
128
|
* For color semantic: values are palette-index integers.
|
|
122
129
|
*/
|
|
123
130
|
export type V2TierMap = Record<string, string | number>;
|
|
124
|
-
/**
|
|
131
|
+
/**
|
|
132
|
+
* Per-tab overrides in v2 format. Keyed nominally by tier id — but only the
|
|
133
|
+
* `color` tab uses real tier ids (`palette` / `semantic`). Every other tab
|
|
134
|
+
* (spacing / font / size AND host-coined generic tabs) uses the single synthetic
|
|
135
|
+
* external key `raw` regardless of its internal tier ids; the cssVar leaves under
|
|
136
|
+
* `raw` carry the identity, so the external JSON never depends on a tab's
|
|
137
|
+
* internal tier structure.
|
|
138
|
+
*/
|
|
125
139
|
export type V2TabEntry = Record<string, V2TierMap>;
|
|
126
140
|
/** v2 external JSON document shape. */
|
|
127
141
|
export interface DesignTokenJsonV2 {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-token-serde.d.ts","sourceRoot":"","sources":["../../src/utils/design-token-serde.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"design-token-serde.d.ts","sourceRoot":"","sources":["../../src/utils/design-token-serde.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAgC,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEtG,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAsF1E,iEAAiE;AACjE,eAAO,MAAM,SAAS,0BAA0B,CAAC;AAEjD,iFAAiF;AACjF,eAAO,MAAM,SAAS,0BAA0B,CAAC;AAWjD;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,GAAE,WAA8B,GAAG,MAAM,CAEhF;AAMD,wEAAwE;AACxE,KAAK,cAAc,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,WAAW,wBAAwB;IACvC,EAAE,CAAC,EAAE,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