@takazudo/zdtp 0.5.1 → 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.
Files changed (109) hide show
  1. package/CHANGELOG.md +55 -1
  2. package/PORTABLE-CONTRACT.md +84 -1
  3. package/dist/apply/build-apply-overrides.d.ts +2 -2
  4. package/dist/apply/last-applied.d.ts +1 -1
  5. package/dist/apply/reconcile-applied.d.ts +2 -2
  6. package/dist/apply/route-tokens-to-files.d.ts +1 -1
  7. package/dist/apply/tier-resolver.d.ts +1 -1
  8. package/dist/apply-modal.d.ts +2 -2
  9. package/dist/astro/host-adapter.js +3 -3
  10. package/dist/astro/index.d.ts +8 -8
  11. package/dist/astro/index.js +1 -1
  12. package/dist/{autoload-state-BI4-9A58.js → autoload-state-CGnis85c.js} +1 -1
  13. package/dist/bulk/bulk-actions.d.ts +3 -3
  14. package/dist/bulk/index.d.ts +2 -2
  15. package/dist/chain/index.d.ts +2 -2
  16. package/dist/chain/token-chain-context.d.ts +3 -3
  17. package/dist/chain/token-chain-popover.d.ts +2 -2
  18. package/dist/changed/contribution.d.ts +5 -5
  19. package/dist/changed/footer-content.d.ts +4 -4
  20. package/dist/changed/index.d.ts +4 -4
  21. package/dist/components/color-picker/color-field.d.ts +1 -1
  22. package/dist/components/color-picker/index.d.ts +2 -2
  23. package/dist/components/palette-chart/index.d.ts +2 -2
  24. package/dist/components/palette-chart/palette-chart.d.ts +4 -4
  25. package/dist/config/cluster-config.d.ts +4 -4
  26. package/dist/config/color-scheme-utils.d.ts +1 -1
  27. package/dist/config/panel-config.d.ts +5 -5
  28. package/dist/controls/actions-menu-popover.d.ts +4 -0
  29. package/dist/controls/role-button.d.ts +4 -1
  30. package/dist/controls/tier-ref-selector.d.ts +1 -1
  31. package/dist/dom-tweaker/dom-tweaker-diff-action-link.d.ts +1 -1
  32. package/dist/dom-tweaker/dom-tweaker-orchestrator.d.ts +1 -1
  33. package/dist/dom-tweaker/dom-tweaker-state.d.ts +1 -1
  34. package/dist/dom-tweaker/lazy/class-editor-popup.d.ts +1 -1
  35. package/dist/dom-tweaker/lazy/diff-export-modal.d.ts +1 -1
  36. package/dist/dom-tweaker/lazy/index.d.ts +2 -2
  37. package/dist/element-inspect/element-inspect-context.d.ts +1 -1
  38. package/dist/element-inspect/element-inspect-orchestrator.d.ts +3 -3
  39. package/dist/element-inspect/element-inspect-overlay.d.ts +1 -1
  40. package/dist/element-inspect/find-tokens-for-element.d.ts +1 -1
  41. package/dist/element-inspect/index.d.ts +8 -8
  42. package/dist/element-path/element-path-state.d.ts +1 -1
  43. package/dist/element-path/index.d.ts +7 -7
  44. package/dist/export-modal.d.ts +2 -2
  45. package/dist/highlight/highlight-orchestrator.d.ts +2 -2
  46. package/dist/highlight/highlight-state.d.ts +1 -1
  47. package/dist/highlight/highlight-toggle-button.d.ts +2 -2
  48. package/dist/history/buttons.d.ts +1 -1
  49. package/dist/history/index.d.ts +3 -3
  50. package/dist/history/rail.d.ts +2 -2
  51. package/dist/history/snapshots.d.ts +2 -2
  52. package/dist/import-modal.d.ts +2 -2
  53. package/dist/{index-D4NR_eYT.js → index-DWs1XPfy.js} +1250 -1245
  54. package/dist/{index-RLAXfjv2.js → index-LYsbHWcy.js} +2 -2
  55. package/dist/index.d.ts +14 -14
  56. package/dist/index.js +14 -13
  57. package/dist/{panel-config-CqbuB0nh.js → panel-config-Crn5QJGy.js} +243 -208
  58. package/dist/panel.d.ts +2 -2
  59. package/dist/picker/index.d.ts +4 -4
  60. package/dist/search/command-palette.d.ts +3 -3
  61. package/dist/search/contribution.d.ts +1 -1
  62. package/dist/search/index.d.ts +4 -4
  63. package/dist/search/match-bar.d.ts +1 -1
  64. package/dist/search/token-search.d.ts +3 -3
  65. package/dist/server/create-apply-handler.d.ts +2 -2
  66. package/dist/server/index.d.ts +6 -6
  67. package/dist/shell/dock-mode-switch.d.ts +1 -1
  68. package/dist/shell/regions.d.ts +1 -1
  69. package/dist/shell/tab-bar.d.ts +1 -1
  70. package/dist/shell/tab-overflow-popover.d.ts +1 -1
  71. package/dist/specimen/on-page-specimen.d.ts +3 -3
  72. package/dist/specimen/preview-glyphs.d.ts +1 -1
  73. package/dist/specimen/specimen-state.d.ts +1 -1
  74. package/dist/specimen/specimen-tab-body.d.ts +5 -5
  75. package/dist/specimen/specimen-toolbar.d.ts +1 -1
  76. package/dist/specimen/specimen-values.d.ts +1 -1
  77. package/dist/state/autoload-state.d.ts +1 -1
  78. package/dist/state/history.d.ts +1 -1
  79. package/dist/state/persist.d.ts +3 -3
  80. package/dist/state/transaction.d.ts +3 -3
  81. package/dist/state/tweak-state.d.ts +12 -12
  82. package/dist/tabs/_generic-item-editor.d.ts +1 -1
  83. package/dist/tabs/color-tab.d.ts +6 -6
  84. package/dist/tabs/flat/flat-tab.d.ts +5 -5
  85. package/dist/tabs/flat/index.d.ts +8 -8
  86. package/dist/tabs/flat/scroll-to-token-row.d.ts +1 -1
  87. package/dist/tabs/flat/tier-section.d.ts +3 -3
  88. package/dist/tabs/flat/token-controller.d.ts +1 -1
  89. package/dist/tabs/flat/token-row.d.ts +2 -2
  90. package/dist/tabs/flat/types.d.ts +1 -1
  91. package/dist/tabs/font-tab.d.ts +6 -6
  92. package/dist/tabs/generic-tab.d.ts +4 -4
  93. package/dist/tabs/notes-tab.d.ts +1 -1
  94. package/dist/tabs/palette/palette-check-view.d.ts +3 -3
  95. package/dist/tabs/palette/palette-edit-view.d.ts +3 -3
  96. package/dist/tabs/palette/palette-readout.d.ts +1 -1
  97. package/dist/tabs/palette/palette-tab.d.ts +3 -3
  98. package/dist/tabs/size-tab.d.ts +5 -5
  99. package/dist/tabs/spacing-tab.d.ts +5 -5
  100. package/dist/testing.d.ts +6 -6
  101. package/dist/testing.js +16 -15
  102. package/dist/tokens/tier-model.d.ts +2 -2
  103. package/dist/{tweak-state-c53KtLHq.js → tweak-state-Dzr5kDhX.js} +210 -207
  104. package/dist/utils/color-oklch.d.ts +2 -2
  105. package/dist/utils/design-token-serde.d.ts +2 -2
  106. package/dist/utils/token-diff.d.ts +3 -3
  107. package/dist/utils/token-graph.d.ts +4 -4
  108. package/dist/utils/token-index.d.ts +2 -2
  109. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  import type { JSX } from 'preact';
2
2
  /** Body-level mount used by the picker and the pinned inspect marker. */
3
- export { ELEMENT_INSPECT_PORTAL_MOUNT_ID } from '../highlight/find-elements';
3
+ export { ELEMENT_INSPECT_PORTAL_MOUNT_ID } from "../highlight/find-elements.js";
4
4
  /** Class hooks shared by the hover picker and the pinned overlay. */
5
5
  export declare const ELEMENT_INSPECT_PICKER_CLASS_NAMES: {
6
6
  readonly box: "tokenpanel-element-inspect-box";
@@ -1,4 +1,4 @@
1
- import type { TokenAddress, TokenIndex, TokenIndexEntry } from '../utils/token-index';
1
+ import type { TokenAddress, TokenIndex, TokenIndexEntry } from "../utils/token-index.js";
2
2
  export interface ElementTokenMatch {
3
3
  property: string;
4
4
  cssVar: string;
@@ -1,8 +1,8 @@
1
- export { findTokensForElement } from './find-tokens-for-element';
2
- export type { ElementTokenMatch, ElementTokenPropertyGroup, FindTokensForElementResult, } from './find-tokens-for-element';
3
- export { ElementInspectOrchestrator, type ElementInspectOrchestratorProps, } from './element-inspect-orchestrator';
4
- export { ElementInspectOverlay, ELEMENT_INSPECT_PORTAL_MOUNT_ID } from './element-inspect-overlay';
5
- export { ElementInspectToggleButton } from './element-inspect-toggle-button';
6
- export { ElementInspectView, type ElementInspectViewProps } from './element-inspect-view';
7
- export { ElementInspectContext, ELEMENT_INSPECT_TAB_ID, } from './element-inspect-context';
8
- export type { ElementInspectContextValue } from './element-inspect-context';
1
+ export { findTokensForElement } from "./find-tokens-for-element.js";
2
+ export type { ElementTokenMatch, ElementTokenPropertyGroup, FindTokensForElementResult, } from "./find-tokens-for-element.js";
3
+ export { ElementInspectOrchestrator, type ElementInspectOrchestratorProps, } from "./element-inspect-orchestrator.js";
4
+ export { ElementInspectOverlay, ELEMENT_INSPECT_PORTAL_MOUNT_ID } from "./element-inspect-overlay.js";
5
+ export { ElementInspectToggleButton } from "./element-inspect-toggle-button.js";
6
+ export { ElementInspectView, type ElementInspectViewProps } from "./element-inspect-view.js";
7
+ export { ElementInspectContext, ELEMENT_INSPECT_TAB_ID, } from "./element-inspect-context.js";
8
+ export type { ElementInspectContextValue } from "./element-inspect-context.js";
@@ -10,7 +10,7 @@
10
10
  * `panelConfig.storagePrefix` at call-time (never at module init) so a host's
11
11
  * `configurePanel({ storagePrefix })` is respected.
12
12
  */
13
- import type { PanelConfig } from '../config/panel-config';
13
+ import type { PanelConfig } from "../config/panel-config.js";
14
14
  /**
15
15
  * Load the persisted enabled flag from localStorage. Defaults to `false`
16
16
  * (inspect mode off) on any parse/access failure or when absent.
@@ -5,10 +5,10 @@
5
5
  * DevTools-style highlight, click to copy an annotated path block to the
6
6
  * clipboard) for precise human↔AI communication about the page.
7
7
  */
8
- export { ElementPathOrchestrator } from './element-path-orchestrator';
9
- export { ElementPathToggleButton } from './element-path-toggle-button';
10
- export { ElementPathContext } from './element-path-context';
11
- export type { ElementPathContextValue } from './element-path-context';
12
- export { buildElementPath, buildElementPathString, formatElementPath, buildUniqueSelector, buildBreadcrumb, } from './build-element-path';
13
- export type { ElementPathResult } from './build-element-path';
14
- export { loadElementPathEnabled, saveElementPathEnabled } from './element-path-state';
8
+ export { ElementPathOrchestrator } from "./element-path-orchestrator.js";
9
+ export { ElementPathToggleButton } from "./element-path-toggle-button.js";
10
+ export { ElementPathContext } from "./element-path-context.js";
11
+ export type { ElementPathContextValue } from "./element-path-context.js";
12
+ export { buildElementPath, buildElementPathString, formatElementPath, buildUniqueSelector, buildBreadcrumb, } from "./build-element-path.js";
13
+ export type { ElementPathResult } from "./build-element-path.js";
14
+ export { loadElementPathEnabled, saveElementPathEnabled } from "./element-path-state.js";
@@ -22,8 +22,8 @@
22
22
  * programmatic "Close" button) routes through `dialog.close()` so the native
23
23
  * `close` event — and thus `onClose` — fires exactly once per dismissal.
24
24
  */
25
- import { type ColorTweakState, type TweakState } from './state/tweak-state';
26
- import { type PanelConfig } from './config/panel-config';
25
+ import { type ColorTweakState, type TweakState } from "./state/tweak-state.js";
26
+ import { type PanelConfig } from "./config/panel-config.js";
27
27
  export interface ExportModalProps {
28
28
  onClose: () => void;
29
29
  /** Full unified tweak state — the modal serializes all four categories. */
@@ -14,8 +14,8 @@
14
14
  * overlay persists even when the panel is closed.
15
15
  */
16
16
  import type { ComponentChildren } from 'preact';
17
- import { type PanelConfig } from '../config/panel-config';
18
- import type { TierValueKind } from '../tokens/tier-model';
17
+ import { type PanelConfig } from "../config/panel-config.js";
18
+ import type { TierValueKind } from "../tokens/tier-model.js";
19
19
  type ProbeKind = 'color' | 'length' | 'number' | 'text' | 'easing' | 'cursor' | 'content' | 'mask-image';
20
20
  export declare function tierKindToProbeKind(t: TierValueKind | undefined): ProbeKind | undefined;
21
21
  export interface HighlightOrchestratorProps {
@@ -14,7 +14,7 @@
14
14
  * outlineWidth → localStorage (survives full page reload — user width setting kept)
15
15
  * active → sessionStorage (cleared on reload — inspection set is ephemeral)
16
16
  */
17
- import { type PanelConfig } from '../config/panel-config';
17
+ import { type PanelConfig } from "../config/panel-config.js";
18
18
  export interface HighlightSlotSpec {
19
19
  color: string;
20
20
  }
@@ -11,8 +11,8 @@
11
11
  * module.
12
12
  */
13
13
  import type { JSX } from 'preact';
14
- import type { HighlightState, HighlightSlotSpec } from './highlight-state';
15
- import type { TokenAddress } from '../utils/token-index';
14
+ import type { HighlightState, HighlightSlotSpec } from "./highlight-state.js";
15
+ import type { TokenAddress } from "../utils/token-index.js";
16
16
  export interface HighlightContextValue {
17
17
  state: HighlightState;
18
18
  toggle: (cssVar: string) => void;
@@ -1,4 +1,4 @@
1
- import type { TweakHistorySnapshot } from '../state/history';
1
+ import type { TweakHistorySnapshot } from "../state/history.js";
2
2
  export interface HistoryButtonProps {
3
3
  canUndo: boolean;
4
4
  onUndo: () => void;
@@ -1,3 +1,3 @@
1
- export { HistoryButtons, HistoryRedoButton, HistoryShortcuts, HistoryUndoButton, type HistoryButtonProps, type HistoryButtonsProps, type HistoryShortcutsProps, } from './buttons';
2
- export { HistoryRail, type HistoryRailProps } from './rail';
3
- export { clearSnapshots, getSnapshotKey, isSnapshotState, loadSnapshot, loadSnapshots, removeSnapshot, restoreSnapshotState, saveSnapshot, storageKey_snapshotA, storageKey_snapshotB, useSnapshots, type SnapshotRestoreResult, type SnapshotSlot, type SnapshotSlots, type TweakSnapshot, } from './snapshots';
1
+ export { HistoryButtons, HistoryRedoButton, HistoryShortcuts, HistoryUndoButton, type HistoryButtonProps, type HistoryButtonsProps, type HistoryShortcutsProps, } from "./buttons.js";
2
+ export { HistoryRail, type HistoryRailProps } from "./rail.js";
3
+ export { clearSnapshots, getSnapshotKey, isSnapshotState, loadSnapshot, loadSnapshots, removeSnapshot, restoreSnapshotState, saveSnapshot, storageKey_snapshotA, storageKey_snapshotB, useSnapshots, type SnapshotRestoreResult, type SnapshotSlot, type SnapshotSlots, type TweakSnapshot, } from "./snapshots.js";
@@ -1,5 +1,5 @@
1
- import type { TweakHistorySnapshot } from '../state/history';
2
- import type { SnapshotSlot, SnapshotSlots } from './snapshots';
1
+ import type { TweakHistorySnapshot } from "../state/history.js";
2
+ import type { SnapshotSlot, SnapshotSlots } from "./snapshots.js";
3
3
  export interface HistoryRailProps {
4
4
  history: TweakHistorySnapshot;
5
5
  snapshots: SnapshotSlots;
@@ -1,5 +1,5 @@
1
- import { storageKey_snapshotA, storageKey_snapshotB, type PanelConfig } from '../config/panel-config';
2
- import type { TweakState } from '../state/tweak-state';
1
+ import { storageKey_snapshotA, storageKey_snapshotB, type PanelConfig } from "../config/panel-config.js";
2
+ import type { TweakState } from "../state/tweak-state.js";
3
3
  export type SnapshotSlot = 'A' | 'B';
4
4
  export interface TweakSnapshot {
5
5
  state: TweakState;
@@ -20,8 +20,8 @@
20
20
  * programmatic "Close" button) routes through `dialog.close()` so the native
21
21
  * `close` event — and thus `onClose` — fires exactly once per dismissal.
22
22
  */
23
- import type { ColorTweakState, TweakState } from './state/tweak-state';
24
- import { type PanelConfig } from './config/panel-config';
23
+ import type { ColorTweakState, TweakState } from "./state/tweak-state.js";
24
+ import { type PanelConfig } from "./config/panel-config.js";
25
25
  export interface ImportModalProps {
26
26
  onClose: () => void;
27
27
  /** Called with the parsed state when the user hits "Load". The caller is