@takazudo/zdtp 0.5.2 → 0.6.0
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 +25 -0
- package/PORTABLE-CONTRACT.md +18 -0
- package/dist/apply/build-apply-overrides.d.ts +2 -2
- package/dist/apply/last-applied.d.ts +1 -1
- package/dist/apply/reconcile-applied.d.ts +2 -2
- package/dist/apply/route-tokens-to-files.d.ts +1 -1
- package/dist/apply/tier-resolver.d.ts +1 -1
- package/dist/apply-modal.d.ts +2 -2
- package/dist/astro/host-adapter.js +3 -3
- package/dist/astro/index.d.ts +8 -8
- package/dist/astro/index.js +1 -1
- package/dist/{autoload-state-BI4-9A58.js → autoload-state-CGnis85c.js} +1 -1
- package/dist/bulk/bulk-actions.d.ts +3 -3
- package/dist/bulk/index.d.ts +2 -2
- package/dist/chain/index.d.ts +2 -2
- package/dist/chain/token-chain-context.d.ts +3 -3
- package/dist/chain/token-chain-popover.d.ts +2 -2
- package/dist/changed/contribution.d.ts +5 -5
- package/dist/changed/footer-content.d.ts +4 -4
- package/dist/changed/index.d.ts +4 -4
- package/dist/components/color-picker/color-field.d.ts +1 -1
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/palette-chart/index.d.ts +2 -2
- package/dist/components/palette-chart/palette-chart.d.ts +4 -4
- package/dist/config/cluster-config.d.ts +4 -4
- package/dist/config/color-scheme-utils.d.ts +1 -1
- package/dist/config/panel-config.d.ts +5 -5
- package/dist/controls/tier-ref-selector.d.ts +1 -1
- package/dist/dom-tweaker/dom-tweaker-diff-action-link.d.ts +1 -1
- package/dist/dom-tweaker/dom-tweaker-orchestrator.d.ts +1 -1
- package/dist/dom-tweaker/dom-tweaker-state.d.ts +1 -1
- package/dist/dom-tweaker/lazy/class-editor-popup.d.ts +1 -1
- package/dist/dom-tweaker/lazy/diff-export-modal.d.ts +1 -1
- package/dist/dom-tweaker/lazy/index.d.ts +2 -2
- package/dist/element-inspect/element-inspect-context.d.ts +1 -1
- package/dist/element-inspect/element-inspect-orchestrator.d.ts +3 -3
- package/dist/element-inspect/element-inspect-overlay.d.ts +1 -1
- package/dist/element-inspect/find-tokens-for-element.d.ts +1 -1
- package/dist/element-inspect/index.d.ts +8 -8
- package/dist/element-path/element-path-state.d.ts +1 -1
- package/dist/element-path/index.d.ts +7 -7
- package/dist/export-modal.d.ts +2 -2
- package/dist/highlight/highlight-orchestrator.d.ts +2 -2
- package/dist/highlight/highlight-state.d.ts +1 -1
- package/dist/highlight/highlight-toggle-button.d.ts +2 -2
- package/dist/history/buttons.d.ts +1 -1
- package/dist/history/index.d.ts +3 -3
- package/dist/history/rail.d.ts +2 -2
- package/dist/history/snapshots.d.ts +2 -2
- package/dist/import-modal.d.ts +2 -2
- package/dist/{index-ChsJ5u4d.js → index-DWs1XPfy.js} +993 -993
- package/dist/{index-CAQf4HKm.js → index-LYsbHWcy.js} +2 -2
- package/dist/index.d.ts +14 -14
- package/dist/index.js +14 -13
- package/dist/{panel-config-CqbuB0nh.js → panel-config-Crn5QJGy.js} +243 -208
- package/dist/panel.d.ts +2 -2
- package/dist/picker/index.d.ts +4 -4
- package/dist/search/command-palette.d.ts +3 -3
- package/dist/search/contribution.d.ts +1 -1
- package/dist/search/index.d.ts +4 -4
- package/dist/search/match-bar.d.ts +1 -1
- package/dist/search/token-search.d.ts +3 -3
- package/dist/server/create-apply-handler.d.ts +2 -2
- package/dist/server/index.d.ts +6 -6
- package/dist/shell/dock-mode-switch.d.ts +1 -1
- package/dist/shell/regions.d.ts +1 -1
- package/dist/shell/tab-bar.d.ts +1 -1
- package/dist/shell/tab-overflow-popover.d.ts +1 -1
- package/dist/specimen/on-page-specimen.d.ts +3 -3
- package/dist/specimen/preview-glyphs.d.ts +1 -1
- package/dist/specimen/specimen-state.d.ts +1 -1
- package/dist/specimen/specimen-tab-body.d.ts +5 -5
- package/dist/specimen/specimen-toolbar.d.ts +1 -1
- package/dist/specimen/specimen-values.d.ts +1 -1
- package/dist/state/autoload-state.d.ts +1 -1
- package/dist/state/history.d.ts +1 -1
- package/dist/state/persist.d.ts +3 -3
- package/dist/state/transaction.d.ts +3 -3
- package/dist/state/tweak-state.d.ts +12 -12
- package/dist/tabs/_generic-item-editor.d.ts +1 -1
- package/dist/tabs/color-tab.d.ts +6 -6
- package/dist/tabs/flat/flat-tab.d.ts +5 -5
- package/dist/tabs/flat/index.d.ts +8 -8
- package/dist/tabs/flat/scroll-to-token-row.d.ts +1 -1
- package/dist/tabs/flat/tier-section.d.ts +3 -3
- package/dist/tabs/flat/token-controller.d.ts +1 -1
- package/dist/tabs/flat/token-row.d.ts +2 -2
- package/dist/tabs/flat/types.d.ts +1 -1
- package/dist/tabs/font-tab.d.ts +6 -6
- package/dist/tabs/generic-tab.d.ts +4 -4
- package/dist/tabs/notes-tab.d.ts +1 -1
- package/dist/tabs/palette/palette-check-view.d.ts +3 -3
- package/dist/tabs/palette/palette-edit-view.d.ts +3 -3
- package/dist/tabs/palette/palette-readout.d.ts +1 -1
- package/dist/tabs/palette/palette-tab.d.ts +3 -3
- package/dist/tabs/size-tab.d.ts +5 -5
- package/dist/tabs/spacing-tab.d.ts +5 -5
- package/dist/testing.d.ts +6 -6
- package/dist/testing.js +16 -15
- package/dist/tokens/tier-model.d.ts +2 -2
- package/dist/{tweak-state-c53KtLHq.js → tweak-state-Dzr5kDhX.js} +210 -207
- package/dist/utils/color-oklch.d.ts +2 -2
- package/dist/utils/design-token-serde.d.ts +2 -2
- package/dist/utils/token-diff.d.ts +3 -3
- package/dist/utils/token-graph.d.ts +4 -4
- package/dist/utils/token-index.d.ts +2 -2
- package/package.json +4 -4
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* OKLCH CSS gradient browser baseline: Chromium 111+ / Safari 16+ / Firefox 113+.
|
|
10
10
|
* Consumers targeting older browsers should clamp to sRGB before emitting CSS.
|
|
11
11
|
*/
|
|
12
|
-
import type { Hsla } from
|
|
13
|
-
export type { Hsla } from
|
|
12
|
+
import type { Hsla } from "./color-hsla.js";
|
|
13
|
+
export type { Hsla } from "./color-hsla.js";
|
|
14
14
|
/** All four components use the panel's 0–100 scale for alpha. */
|
|
15
15
|
export interface Oklcha {
|
|
16
16
|
l: number;
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
*
|
|
84
84
|
* Read-only manifest tokens are skipped in both directions.
|
|
85
85
|
*/
|
|
86
|
-
import type { ColorTweakState, TweakState } from
|
|
87
|
-
import { type PanelConfig } from
|
|
86
|
+
import type { ColorTweakState, TweakState } from "../state/tweak-state.js";
|
|
87
|
+
import { type PanelConfig } from "../config/panel-config.js";
|
|
88
88
|
/** The canonical v2 schema identifier emitted by serialize() when every
|
|
89
89
|
* semantic mapping is a plain palette-index integer. */
|
|
90
90
|
export declare const SCHEMA_V2 = "zudo-design-tokens/v2";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Canonical UI-facing changed-token evaluation and revert helpers. */
|
|
2
|
-
import type { PanelConfig } from
|
|
3
|
-
import type { ColorTweakState, SemanticValue, TweakState } from
|
|
4
|
-
import { type TokenAddress, type TokenIndexEntry } from
|
|
2
|
+
import type { PanelConfig } from "../config/panel-config.js";
|
|
3
|
+
import type { ColorTweakState, SemanticValue, TweakState } from "../state/tweak-state.js";
|
|
4
|
+
import { type TokenAddress, type TokenIndexEntry } from "./token-index.js";
|
|
5
5
|
export type ColorBaseline = ColorTweakState | {
|
|
6
6
|
color: ColorTweakState;
|
|
7
7
|
secondary?: ColorTweakState;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** State-aware token dependency graph. References are address-based, never cssVar-based. */
|
|
2
|
-
import type { PanelConfig } from
|
|
3
|
-
import type { TweakState } from
|
|
4
|
-
import { type ColorBaseline } from
|
|
5
|
-
import { type TokenAddress, type TokenIndexEntry } from
|
|
2
|
+
import type { PanelConfig } from "../config/panel-config.js";
|
|
3
|
+
import type { TweakState } from "../state/tweak-state.js";
|
|
4
|
+
import { type ColorBaseline } from "./token-diff.js";
|
|
5
|
+
import { type TokenAddress, type TokenIndexEntry } from "./token-index.js";
|
|
6
6
|
export type ResolutionHop = {
|
|
7
7
|
kind: 'token';
|
|
8
8
|
address: TokenAddress;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Pure, manifest-ordered token index with collision-safe stable addresses. */
|
|
2
|
-
import type { PanelConfig } from
|
|
3
|
-
import type { SemanticValue, TierValueKind } from
|
|
2
|
+
import type { PanelConfig } from "../config/panel-config.js";
|
|
3
|
+
import type { SemanticValue, TierValueKind } from "../tokens/tier-model.js";
|
|
4
4
|
export interface TokenAddress {
|
|
5
5
|
tabId: string;
|
|
6
6
|
tierId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takazudo/zdtp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Dynamic design-token tweak panel — host-config-driven, framework-agnostic Preact UI.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -108,10 +108,10 @@
|
|
|
108
108
|
"oxlint": "^1.0.0"
|
|
109
109
|
},
|
|
110
110
|
"scripts": {
|
|
111
|
-
"build": "vite build && tsc -p tsconfig.build.json && node scripts/copy-astro-assets.mjs && chmod +x dist/bin/server.js && node scripts/check-exports.mjs",
|
|
111
|
+
"build": "vite build && tsc -p tsconfig.build.json && node scripts/normalize-declarations.mjs && node scripts/copy-astro-assets.mjs && chmod +x dist/bin/server.js && node scripts/check-exports.mjs",
|
|
112
112
|
"// prepublishOnly": "build-only gate. The full test suite needs Playwright Chromium (browser tests) and is run upstream in ci.yml on every PR and main push, not at publish time.",
|
|
113
|
-
"test": "vitest run",
|
|
114
|
-
"test:unit": "vitest run --project node",
|
|
113
|
+
"test": "node --test scripts/normalize-declarations.test.mjs && vitest run",
|
|
114
|
+
"test:unit": "node --test scripts/normalize-declarations.test.mjs && vitest run --project node",
|
|
115
115
|
"test:browser": "vitest run --project browser",
|
|
116
116
|
"test:unit:watch": "vitest --project node",
|
|
117
117
|
"test:watch": "vitest",
|