@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as y, jsxs as K, Fragment as kt } from "preact/jsx-runtime";
|
|
2
2
|
import { useEffect as P, useState as Y, useRef as O, useMemo as J, useCallback as X } from "preact/hooks";
|
|
3
|
-
import { b as ft, p as wt, u as ht, a as Ne, A as bt, Z as gt } from "./index-
|
|
4
|
-
import { g as vt, m as j } from "./panel-config-
|
|
3
|
+
import { b as ft, p as wt, u as ht, a as Ne, A as bt, Z as gt } from "./index-DWs1XPfy.js";
|
|
4
|
+
import { g as vt, m as j } from "./panel-config-Crn5QJGy.js";
|
|
5
5
|
const xt = (e, o) => {
|
|
6
6
|
const t = new Array(e.length + o.length);
|
|
7
7
|
for (let r = 0; r < e.length; r++)
|
package/dist/index.d.ts
CHANGED
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
* picks the desired open state on first paint instead of relying on a
|
|
34
34
|
* racy post-render toggle event.
|
|
35
35
|
*/
|
|
36
|
-
|
|
37
|
-
import { type PanelConfig } from
|
|
36
|
+
|
|
37
|
+
import { type PanelConfig } from "./config/panel-config.js";
|
|
38
38
|
/**
|
|
39
39
|
* Test-only: snapshot of the mounted-shell slot registry (prefix -> ordinal).
|
|
40
40
|
* A copy, so a test cannot mutate the live registry through it.
|
|
@@ -51,8 +51,8 @@ export declare function __claimSpawnSlotForTests(cfg: PanelConfig): number;
|
|
|
51
51
|
* map is the whole teardown.
|
|
52
52
|
*/
|
|
53
53
|
export declare function __resetSpawnSlotsForTests(): void;
|
|
54
|
-
export { configurePanel, setPanelColorPresets } from
|
|
55
|
-
export type { PanelConfig, PanelInstanceHandle, ApplySink } from
|
|
54
|
+
export { assertValidPanelConfig, configurePanel, setPanelColorPresets } from "./config/panel-config.js";
|
|
55
|
+
export type { PanelConfig, PanelInstanceHandle, ApplySink } from "./config/panel-config.js";
|
|
56
56
|
/**
|
|
57
57
|
* Internal-test-only accessor that returns this panel-module bundle's view of
|
|
58
58
|
* the active panel config singleton. Paired with the Astro host adapter's
|
|
@@ -68,16 +68,16 @@ export type { PanelConfig, PanelInstanceHandle, ApplySink } from './config/panel
|
|
|
68
68
|
* documented public API.
|
|
69
69
|
*/
|
|
70
70
|
export declare function __panelConfigForTest(): PanelConfig;
|
|
71
|
-
export type { ColorClusterConfig } from
|
|
72
|
-
export { ZDTP_LEGACY_TYPOGRAPHY_RENAME_MAP } from
|
|
73
|
-
export type { ColorScheme, ColorRef } from
|
|
74
|
-
export type { TokenManifest, TokenDef } from
|
|
75
|
-
export type { TierValueKind, PillSpec, TierItem, TierConfig, TabConfig, ColorClusterExtras, NotesExtras, } from
|
|
76
|
-
export { isLengthKind, isNumberKind, isSelectKind, isTextKind, isColorKind, isCursorKind, isContentKind, isMaskImageKind, } from
|
|
77
|
-
export type { TweakState } from
|
|
78
|
-
export { emptyOverrides } from
|
|
79
|
-
export { SCHEMA_V1, SCHEMA_V2, SCHEMA_V3, } from
|
|
80
|
-
export { getClusterDefaultMode, resolvePerModeLiteral, resolveSemanticPreviewColor, } from
|
|
71
|
+
export type { ColorClusterConfig } from "./state/tweak-state.js";
|
|
72
|
+
export { ZDTP_LEGACY_TYPOGRAPHY_RENAME_MAP } from "./state/tweak-state.js";
|
|
73
|
+
export type { ColorScheme, ColorRef } from "./config/color-schemes.js";
|
|
74
|
+
export type { TokenManifest, TokenDef } from "./tokens/manifest.js";
|
|
75
|
+
export type { TierValueKind, PillSpec, TierItem, TierConfig, TabConfig, ColorClusterExtras, NotesExtras, } from "./tokens/tier-model.js";
|
|
76
|
+
export { isLengthKind, isNumberKind, isSelectKind, isTextKind, isColorKind, isCursorKind, isContentKind, isMaskImageKind, } from "./tokens/tier-model.js";
|
|
77
|
+
export type { TweakState } from "./state/tweak-state.js";
|
|
78
|
+
export { emptyOverrides } from "./state/tweak-state.js";
|
|
79
|
+
export { SCHEMA_V1, SCHEMA_V2, SCHEMA_V3, } from "./utils/design-token-serde.js";
|
|
80
|
+
export { getClusterDefaultMode, resolvePerModeLiteral, resolveSemanticPreviewColor, } from "./state/tweak-state.js";
|
|
81
81
|
export declare function showDesignTokenPanel(): void;
|
|
82
82
|
export declare function hideDesignTokenPanel(): void;
|
|
83
83
|
export declare function toggleDesignPanel(): void;
|
package/dist/index.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import "preact/jsx-runtime";
|
|
2
2
|
import "preact";
|
|
3
|
-
import { S as i, c as n, d as l, _ as d, e as _, f as p, g as m, h as g, i as P, j as S, k as
|
|
4
|
-
import { Z as
|
|
5
|
-
import {
|
|
6
|
-
import "./autoload-state-
|
|
3
|
+
import { S as i, c as n, d as l, _ as d, e as _, f as p, g as m, h as g, i as P, j as S, k as C, l as A, m as T, n as u, o as c, q as f, r as K, s as M, t as w, v as F, w as v, x, y as E, z as h, B as y } from "./index-DWs1XPfy.js";
|
|
4
|
+
import { Z as b, a2 as k, x as H, w as L, a5 as V } from "./tweak-state-Dzr5kDhX.js";
|
|
5
|
+
import { b as Y, c as B, s as G } from "./panel-config-Crn5QJGy.js";
|
|
6
|
+
import "./autoload-state-CGnis85c.js";
|
|
7
7
|
import "./constants.js";
|
|
8
8
|
export {
|
|
9
9
|
i as SCHEMA_V1,
|
|
10
10
|
n as SCHEMA_V2,
|
|
11
11
|
l as SCHEMA_V3,
|
|
12
|
-
|
|
12
|
+
b as ZDTP_LEGACY_TYPOGRAPHY_RENAME_MAP,
|
|
13
13
|
d as __claimSpawnSlotForTests,
|
|
14
14
|
_ as __mountedSpawnSlotsForTests,
|
|
15
15
|
p as __panelConfigForTest,
|
|
16
16
|
m as __reapplyFromStorageForTests,
|
|
17
17
|
g as __resetInstanceBindingsForTests,
|
|
18
18
|
P as __resetSpawnSlotsForTests,
|
|
19
|
-
Y as
|
|
19
|
+
Y as assertValidPanelConfig,
|
|
20
|
+
B as configurePanel,
|
|
20
21
|
S as disableAutoload,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
k as emptyOverrides,
|
|
23
|
+
C as enableAutoload,
|
|
24
|
+
H as getClusterDefaultMode,
|
|
25
|
+
A as hideDesignTokenPanel,
|
|
25
26
|
T as isColorKind,
|
|
26
27
|
u as isContentKind,
|
|
27
28
|
c as isCursorKind,
|
|
@@ -31,10 +32,10 @@ export {
|
|
|
31
32
|
w as isSelectKind,
|
|
32
33
|
F as isTextKind,
|
|
33
34
|
v as reapplyPersistedOverrides,
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
L as resolvePerModeLiteral,
|
|
36
|
+
V as resolveSemanticPreviewColor,
|
|
36
37
|
x as setLifecycleAdapter,
|
|
37
|
-
|
|
38
|
+
G as setPanelColorPresets,
|
|
38
39
|
E as shouldAutoload,
|
|
39
40
|
h as showDesignTokenPanel,
|
|
40
41
|
y as toggleDesignPanel
|