@takazudo/zdtp 0.2.2 → 0.3.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 +27 -0
- package/README.md +91 -9
- package/dist/apply-modal.d.ts +10 -0
- package/dist/apply-modal.d.ts.map +1 -1
- package/dist/astro/host-adapter.js +36 -38
- package/dist/astro/index.js +1 -1
- package/dist/config/color-schemes.d.ts +6 -1
- package/dist/config/color-schemes.d.ts.map +1 -1
- package/dist/config/panel-config.d.ts +247 -27
- package/dist/config/panel-config.d.ts.map +1 -1
- package/dist/export-modal.d.ts +9 -1
- package/dist/export-modal.d.ts.map +1 -1
- package/dist/import-modal.d.ts +9 -1
- package/dist/import-modal.d.ts.map +1 -1
- package/dist/index.d.ts +11 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2351 -2243
- package/dist/{panel-config-DP2_P7dD.js → panel-config-BOyB8Egg.js} +197 -118
- package/dist/panel.d.ts +17 -1
- package/dist/panel.d.ts.map +1 -1
- package/dist/state/persist.d.ts +12 -1
- package/dist/state/persist.d.ts.map +1 -1
- package/dist/state/tweak-state.d.ts +115 -33
- package/dist/state/tweak-state.d.ts.map +1 -1
- package/dist/testing.js +2 -2
- package/dist/tweak-state-DMwBHPow.js +730 -0
- package/dist/utils/design-token-serde.d.ts +26 -7
- package/dist/utils/design-token-serde.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/tweak-state-DSJa5csL.js +0 -624
|
@@ -32,11 +32,18 @@
|
|
|
32
32
|
* The `shikiTheme` field stays on the state + persist envelope so JSON
|
|
33
33
|
* round-tripping with external exports is seamless; the UI hides it and
|
|
34
34
|
* `applyShikiTheme` is a no-op. Removing the field would churn the serde
|
|
35
|
-
* format for no real benefit.
|
|
35
|
+
* format for no real benefit. It stays *required* on the hydrated state —
|
|
36
|
+
* constructors and hydrators always default it (from the scheme / cluster
|
|
37
|
+
* default, or backfilled from defaults), and `TweakState` is re-exported, so
|
|
38
|
+
* keeping it required avoids widening the public `state.color.shikiTheme` type.
|
|
39
|
+
* Only the input `ColorScheme.shikiTheme` is optional (#342), so hosts may omit
|
|
40
|
+
* it on their scheme maps.
|
|
36
41
|
*/
|
|
37
42
|
import type { ColorRef, ColorScheme } from '../config/color-schemes';
|
|
38
43
|
import type { TokenDef } from '../tokens/manifest';
|
|
39
44
|
import { type ColorClusterDataConfig } from '../config/cluster-config';
|
|
45
|
+
import { type ApplySink, type PanelConfig } from '../config/panel-config';
|
|
46
|
+
export type { ApplySink } from '../config/panel-config';
|
|
40
47
|
import { type TabOverrides } from '../apply/tier-resolver';
|
|
41
48
|
export type { BaseRoleKey, ColorClusterDataConfig } from '../config/cluster-config';
|
|
42
49
|
export { resolvePaletteCssVar } from '../config/cluster-config';
|
|
@@ -52,18 +59,28 @@ export type { TabOverrides } from '../apply/tier-resolver';
|
|
|
52
59
|
*
|
|
53
60
|
* **Lazy derivation**
|
|
54
61
|
*
|
|
55
|
-
* Each helper reads `getPanelConfig()` on every call so a
|
|
56
|
-
* call that lands *after* this module is imported still
|
|
57
|
-
* the panel hits. Capturing the values at module load
|
|
58
|
-
* before the host has a chance to configure.
|
|
62
|
+
* Each helper reads `getPanelConfig()` on every call by default so a
|
|
63
|
+
* `configurePanel` call that lands *after* this module is imported still
|
|
64
|
+
* influences the keys the panel hits. Capturing the values at module load
|
|
65
|
+
* would freeze them before the host has a chance to configure.
|
|
66
|
+
*
|
|
67
|
+
* **Per-instance derivation (multi-instance, #353 Z1)**
|
|
68
|
+
*
|
|
69
|
+
* Each accessor takes an OPTIONAL `cfg: PanelConfig`. Passing it derives the
|
|
70
|
+
* key for THAT instance instead of the default (active) instance — the seam
|
|
71
|
+
* Z2/Z3 use to scope storage, mount, and apply to a specific panel instance.
|
|
72
|
+
* Omitting it preserves the historical single-panel behaviour (resolve the
|
|
73
|
+
* default instance via `getPanelConfig()`). Storage keys are a pure function of
|
|
74
|
+
* `cfg.storagePrefix`, so two instances with distinct prefixes derive fully
|
|
75
|
+
* independent keys.
|
|
59
76
|
*/
|
|
60
|
-
export declare function getStorageKeyV1(): string;
|
|
61
|
-
export declare function getStorageKeyV2(): string;
|
|
62
|
-
export declare function getStorageKeyV3(): string;
|
|
63
|
-
export declare function getOpenKey(): string;
|
|
64
|
-
export declare function getPositionKey(): string;
|
|
65
|
-
export declare function getSizeKey(): string;
|
|
66
|
-
export declare function getDensityKey(): string;
|
|
77
|
+
export declare function getStorageKeyV1(cfg?: PanelConfig): string;
|
|
78
|
+
export declare function getStorageKeyV2(cfg?: PanelConfig): string;
|
|
79
|
+
export declare function getStorageKeyV3(cfg?: PanelConfig): string;
|
|
80
|
+
export declare function getOpenKey(cfg?: PanelConfig): string;
|
|
81
|
+
export declare function getPositionKey(cfg?: PanelConfig): string;
|
|
82
|
+
export declare function getSizeKey(cfg?: PanelConfig): string;
|
|
83
|
+
export declare function getDensityKey(cfg?: PanelConfig): string;
|
|
67
84
|
export interface PanelPosition {
|
|
68
85
|
top: number;
|
|
69
86
|
left: number;
|
|
@@ -87,8 +104,8 @@ export declare const DEFAULT_POSITION: PanelPosition;
|
|
|
87
104
|
* tests get the centered position.
|
|
88
105
|
*/
|
|
89
106
|
export declare function defaultPosition(): PanelPosition;
|
|
90
|
-
export declare function loadPosition(): PanelPosition;
|
|
91
|
-
export declare function savePosition(pos: PanelPosition): void;
|
|
107
|
+
export declare function loadPosition(cfg?: PanelConfig): PanelPosition;
|
|
108
|
+
export declare function savePosition(pos: PanelPosition, cfg?: PanelConfig): void;
|
|
92
109
|
/** Keep at least VISIBLE_MIN px of the panel on-screen so the user can grab it back. */
|
|
93
110
|
export declare const VISIBLE_MIN = 60;
|
|
94
111
|
export interface PanelSize {
|
|
@@ -120,8 +137,8 @@ export declare function defaultSize(): PanelSize;
|
|
|
120
137
|
* from rendering off-screen when reopened on a 1080p laptop.
|
|
121
138
|
*/
|
|
122
139
|
export declare function clampSize(width: number, height: number): PanelSize;
|
|
123
|
-
export declare function loadSize(): PanelSize;
|
|
124
|
-
export declare function saveSize(size: PanelSize): void;
|
|
140
|
+
export declare function loadSize(cfg?: PanelConfig): PanelSize;
|
|
141
|
+
export declare function saveSize(size: PanelSize, cfg?: PanelConfig): void;
|
|
125
142
|
/**
|
|
126
143
|
* User-chosen tab-grid density. Three discrete stops exposed as integers so a
|
|
127
144
|
* native `<input type="range">` slider can read/write directly:
|
|
@@ -137,8 +154,8 @@ export declare function saveSize(size: PanelSize): void;
|
|
|
137
154
|
export type PanelDensity = 0 | 1 | 2;
|
|
138
155
|
export declare const DEFAULT_DENSITY: PanelDensity;
|
|
139
156
|
export declare function densityToGridMin(density: PanelDensity): string;
|
|
140
|
-
export declare function loadDensity(): PanelDensity;
|
|
141
|
-
export declare function saveDensity(density: PanelDensity): void;
|
|
157
|
+
export declare function loadDensity(cfg?: PanelConfig): PanelDensity;
|
|
158
|
+
export declare function saveDensity(density: PanelDensity, cfg?: PanelConfig): void;
|
|
142
159
|
export declare function clampPosition(top: number, left: number, panelWidth: number, _panelHeight: number): PanelPosition;
|
|
143
160
|
/**
|
|
144
161
|
* Upstream re-highlights every `<pre>` on the page when the Shiki theme
|
|
@@ -200,7 +217,7 @@ export declare function emptyOverrides(): TokenOverrides;
|
|
|
200
217
|
* Resolve the active primary color cluster from the panel config's tabs.
|
|
201
218
|
* Returns the stub cluster when no color tab is configured.
|
|
202
219
|
*/
|
|
203
|
-
export declare function getActivePrimaryCluster(cfg?:
|
|
220
|
+
export declare function getActivePrimaryCluster(cfg?: PanelConfig): ColorClusterDataConfig;
|
|
204
221
|
/**
|
|
205
222
|
* Produce a fresh `ColorTweakState` for a secondary color cluster.
|
|
206
223
|
* Generalises the no-scheme seed path: the palette length, semantic
|
|
@@ -223,12 +240,24 @@ export declare function getActivePrimaryCluster(cfg?: import("..").PanelConfig):
|
|
|
223
240
|
export declare function initSecondaryDefaults(cluster: ColorClusterDataConfig): ColorTweakState;
|
|
224
241
|
/**
|
|
225
242
|
* Convenience helper used by `panel.tsx` and tests: seed a fresh secondary
|
|
226
|
-
* `ColorTweakState` from the
|
|
243
|
+
* `ColorTweakState` from the panel config's secondary cluster.
|
|
227
244
|
* Returns `undefined` when the host opted out of the secondary cluster
|
|
228
245
|
* (`secondaryColorCluster: null` or omitted).
|
|
246
|
+
*
|
|
247
|
+
* `cfg` scopes the secondary-cluster lookup to a specific panel instance
|
|
248
|
+
* (multi-instance, #357). Omitting it resolves the default instance, preserving
|
|
249
|
+
* the single-panel path.
|
|
229
250
|
*/
|
|
230
|
-
export declare function initSecondaryFromConfig(): ColorTweakState | undefined;
|
|
251
|
+
export declare function initSecondaryFromConfig(cfg?: PanelConfig): ColorTweakState | undefined;
|
|
231
252
|
export declare function cssColorToHex(color: string): string;
|
|
253
|
+
/**
|
|
254
|
+
* Write a single CSS custom property to `document.documentElement`.
|
|
255
|
+
*
|
|
256
|
+
* The sink-aware write path bypasses this helper entirely: sink callers
|
|
257
|
+
* collect all pairs into a batch and call `sink.apply(pairs)` directly.
|
|
258
|
+
* This helper is used only by the default (no-sink) path in the `else`
|
|
259
|
+
* branches of `applyColorState`, `applyTabOverridesFlat`, etc.
|
|
260
|
+
*/
|
|
232
261
|
export declare function setCssVar(name: string, value: string): void;
|
|
233
262
|
/**
|
|
234
263
|
* Resolve a `ColorRef` to a palette index. If it's already a number, use it.
|
|
@@ -241,8 +270,14 @@ export declare function colorRefToIndex(ref: ColorRef | undefined, palette: stri
|
|
|
241
270
|
* light/dark mode. Reads `panelSettings` from the cluster so a
|
|
242
271
|
* host-supplied cluster can declare its own scheme + light/dark pairing
|
|
243
272
|
* without editing the panel package.
|
|
273
|
+
*
|
|
274
|
+
* When `cfg` is supplied AND it has an `applySink`, this instance is a
|
|
275
|
+
* "sink instance" — it does NOT read the host's `data-theme` attribute
|
|
276
|
+
* (which belongs to the host's document, not to this instance). Instead it
|
|
277
|
+
* falls back to the panel's own `colorScheme` setting so it picks the
|
|
278
|
+
* correct default scheme and a scheme switch touches only its own overrides.
|
|
244
279
|
*/
|
|
245
|
-
export declare function getActiveSchemeName(cluster?: ColorClusterDataConfig): string;
|
|
280
|
+
export declare function getActiveSchemeName(cluster?: ColorClusterDataConfig, cfg?: PanelConfig): string;
|
|
246
281
|
/**
|
|
247
282
|
* Initialise a `ColorTweakState` from the active color scheme for the given
|
|
248
283
|
* cluster. Defaults to the host's primary cluster (derived from the color
|
|
@@ -259,7 +294,7 @@ export declare function initColorFromSchemeData(scheme: ColorScheme, cluster?: C
|
|
|
259
294
|
export declare function resolveMapping(mapping: number | 'bg' | 'fg', palette: string[], bgIndex: number, fgIndex: number): string;
|
|
260
295
|
export declare function safeIndex(index: number, len: number): number;
|
|
261
296
|
/** Apply a single `ColorTweakState` to the DOM using the given cluster config. */
|
|
262
|
-
export declare function applyColorState(state: ColorTweakState, cluster?: ColorClusterDataConfig): void;
|
|
297
|
+
export declare function applyColorState(state: ColorTweakState, cluster?: ColorClusterDataConfig, sink?: ApplySink): void;
|
|
263
298
|
/**
|
|
264
299
|
* Apply a `TokenOverrides` map for a given manifest — writes inline
|
|
265
300
|
* `--css-var: value` on `:root` for every overridden token, and removes the
|
|
@@ -269,7 +304,7 @@ export declare function applyColorState(state: ColorTweakState, cluster?: ColorC
|
|
|
269
304
|
* Read-only tokens are skipped in both directions: they are informational rows
|
|
270
305
|
* in the UI and are never written to storage.
|
|
271
306
|
*/
|
|
272
|
-
export declare function applyTokenOverrides(tokens: readonly TokenDef[], overrides: TokenOverrides): void;
|
|
307
|
+
export declare function applyTokenOverrides(tokens: readonly TokenDef[], overrides: TokenOverrides, sink?: ApplySink): void;
|
|
273
308
|
/**
|
|
274
309
|
* Apply the full unified `TweakState` — primary color cluster + token
|
|
275
310
|
* overrides + optional secondary cluster.
|
|
@@ -277,18 +312,53 @@ export declare function applyTokenOverrides(tokens: readonly TokenDef[], overrid
|
|
|
277
312
|
* Tab configs AND the primary color cluster are read from `panelConfig`
|
|
278
313
|
* at call time so a host that calls `configurePanel` before mount sees its
|
|
279
314
|
* own data driving the apply pass.
|
|
315
|
+
*
|
|
316
|
+
* When `cfg` is supplied its `applySink` (if any) is used to route all
|
|
317
|
+
* CSS-var writes for this instance. Omitting `cfg` uses the default active
|
|
318
|
+
* config (single-panel path, unchanged behavior).
|
|
280
319
|
*/
|
|
281
|
-
export declare function applyFullState(state: TweakState): void;
|
|
320
|
+
export declare function applyFullState(state: TweakState, cfg?: PanelConfig): void;
|
|
282
321
|
/**
|
|
283
|
-
* Strip
|
|
284
|
-
*
|
|
322
|
+
* Strip the inline CSS variables written by the color cluster(s) only —
|
|
323
|
+
* palette slots, base roles, and semantic vars. Spacing / typography / size
|
|
324
|
+
* tab vars are left untouched.
|
|
325
|
+
*
|
|
326
|
+
* This is the scheme-change clear path. A host light/dark toggle re-seeds the
|
|
327
|
+
* absolute color palette from the new scheme, but the user's spacing /
|
|
328
|
+
* typography / size tweaks are scheme-independent and must survive the toggle
|
|
329
|
+
* (#347). For a full panel-level reset (Reset / Apply) use `clearAppliedStyles`.
|
|
285
330
|
*
|
|
286
331
|
* Accepts an optional list of clusters so callers can scope the wipe to a
|
|
332
|
+
* subset; the default covers both the primary and secondary clusters.
|
|
333
|
+
*
|
|
334
|
+
* When `sink` is supplied, clears are routed through it instead of
|
|
335
|
+
* `document.documentElement`.
|
|
336
|
+
*
|
|
337
|
+
* `cfg` scopes the clear to a specific panel instance (multi-instance, #357):
|
|
338
|
+
* when supplied AND no explicit `clusters` / `sink` are given, the default
|
|
339
|
+
* cluster wipe set is derived from `cfg`'s tabs and clears route through
|
|
340
|
+
* `cfg.applySink`. An explicitly-passed `clusters` or `sink` still wins, so the
|
|
341
|
+
* historical `(clusters, sink)` call shape (e.g. the scheme-change path before
|
|
342
|
+
* #357, and existing tests) is unchanged. Omitting all three preserves the
|
|
343
|
+
* single-panel default-instance behaviour.
|
|
344
|
+
*/
|
|
345
|
+
export declare function clearAppliedColorStyles(clusters?: readonly ColorClusterDataConfig[], sink?: ApplySink, cfg?: PanelConfig): void;
|
|
346
|
+
/**
|
|
347
|
+
* Strip ALL tweak-applied inline CSS variables — color clusters AND every
|
|
348
|
+
* spacing / typography / size tab var — so the stylesheet-provided values from
|
|
349
|
+
* the active scheme take effect again.
|
|
350
|
+
*
|
|
351
|
+
* Accepts an optional list of clusters so callers can scope the color wipe to a
|
|
287
352
|
* subset; the default wipes both the primary and secondary clusters so a
|
|
288
353
|
* panel-level reset leaves no stale inline overrides on `:root` regardless
|
|
289
354
|
* of which cluster was last edited.
|
|
355
|
+
*
|
|
356
|
+
* When `cfg` is supplied its `applySink` (if any) routes the clear through the
|
|
357
|
+
* sink with the FULL token-name set for this instance (not just dirty vars).
|
|
358
|
+
* This satisfies the Reset contract: the sink `clear` receives every var the
|
|
359
|
+
* instance can own, so the sink's target element is completely clean.
|
|
290
360
|
*/
|
|
291
|
-
export declare function clearAppliedStyles(clusters?: readonly ColorClusterDataConfig[]): void;
|
|
361
|
+
export declare function clearAppliedStyles(clusters?: readonly ColorClusterDataConfig[], cfg?: PanelConfig): void;
|
|
292
362
|
/**
|
|
293
363
|
* Test-friendly migration entry point. Reads from a provided storage (defaults
|
|
294
364
|
* to `localStorage`) and returns the loaded+migrated `TweakState`, or `null`
|
|
@@ -336,9 +406,21 @@ export interface StorageLike {
|
|
|
336
406
|
* labels), so this migration only applies to the typography slice.
|
|
337
407
|
*/
|
|
338
408
|
export declare const ZDTP_LEGACY_TYPOGRAPHY_RENAME_MAP: Readonly<Record<string, string | null>>;
|
|
339
|
-
export declare function loadPersistedState(storage?: StorageLike, colorDefaults?: ColorTweakState, cluster?: ColorClusterDataConfig): TweakState | null;
|
|
340
|
-
/**
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
409
|
+
export declare function loadPersistedState(storage?: StorageLike, colorDefaults?: ColorTweakState, cluster?: ColorClusterDataConfig, cfg?: PanelConfig): TweakState | null;
|
|
410
|
+
/**
|
|
411
|
+
* Persist the full `TweakState` to v3.
|
|
412
|
+
*
|
|
413
|
+
* `cfg` scopes the storage key to a specific panel instance (multi-instance,
|
|
414
|
+
* #357). Omitting it resolves the default instance via `getPanelConfig()`,
|
|
415
|
+
* preserving the single-panel path.
|
|
416
|
+
*/
|
|
417
|
+
export declare function savePersistedState(state: TweakState, storage?: StorageLike, cfg?: PanelConfig): void;
|
|
418
|
+
/**
|
|
419
|
+
* Remove v3 (and lingering v2/v1) keys.
|
|
420
|
+
*
|
|
421
|
+
* `cfg` scopes the cleared keys to a specific panel instance (multi-instance,
|
|
422
|
+
* #357). Omitting it resolves the default instance via `getPanelConfig()`,
|
|
423
|
+
* preserving the single-panel path.
|
|
424
|
+
*/
|
|
425
|
+
export declare function clearPersistedState(storage?: StorageLike, cfg?: PanelConfig): void;
|
|
344
426
|
//# sourceMappingURL=tweak-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tweak-state.d.ts","sourceRoot":"","sources":["../../src/state/tweak-state.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"tweak-state.d.ts","sourceRoot":"","sources":["../../src/state/tweak-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAEL,KAAK,sBAAsB,EAE5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAUL,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,wBAAwB,CAAC;AAIhC,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,wBAAwB,CAAC;AAMhC,YAAY,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,MAAM,MAAM,kB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AaG;AACH,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,iCAAiC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CASrF,CAAC;AA2KF,wBAAgB,kBAAkB,CAChC,OAAO,GAAE,WAA0B,EACnC,aAAa,CAAC,EAAE,eAAe,EAC/B,OAAO,GAAE,sBAAkD,EAC3D,GAAG,GAAE,WAA8B,GAClC,UAAU,GAAG,IAAI,CAgHnB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,UAAU,EACjB,OAAO,GAAE,WAA0B,EACnC,GAAG,GAAE,WAA8B,QAOpC;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,GAAE,WAA0B,EACnC,GAAG,GAAE,WAA8B,QAiBpC"}
|
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-BOyB8Egg.js";
|
|
2
|
+
import { g as l, a as y, l as O } from "./tweak-state-DMwBHPow.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");
|