@takazudo/zdtp 0.2.3 → 0.3.1
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 +24 -0
- package/README.md +81 -10
- 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/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 +2348 -2189
- 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 +109 -32
- 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 +41 -8
- package/dist/utils/design-token-serde.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/tweak-state-DSJa5csL.js +0 -624
|
@@ -42,6 +42,8 @@
|
|
|
42
42
|
import type { ColorRef, ColorScheme } from '../config/color-schemes';
|
|
43
43
|
import type { TokenDef } from '../tokens/manifest';
|
|
44
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';
|
|
45
47
|
import { type TabOverrides } from '../apply/tier-resolver';
|
|
46
48
|
export type { BaseRoleKey, ColorClusterDataConfig } from '../config/cluster-config';
|
|
47
49
|
export { resolvePaletteCssVar } from '../config/cluster-config';
|
|
@@ -57,18 +59,28 @@ export type { TabOverrides } from '../apply/tier-resolver';
|
|
|
57
59
|
*
|
|
58
60
|
* **Lazy derivation**
|
|
59
61
|
*
|
|
60
|
-
* Each helper reads `getPanelConfig()` on every call so a
|
|
61
|
-
* call that lands *after* this module is imported still
|
|
62
|
-
* the panel hits. Capturing the values at module load
|
|
63
|
-
* 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.
|
|
64
76
|
*/
|
|
65
|
-
export declare function getStorageKeyV1(): string;
|
|
66
|
-
export declare function getStorageKeyV2(): string;
|
|
67
|
-
export declare function getStorageKeyV3(): string;
|
|
68
|
-
export declare function getOpenKey(): string;
|
|
69
|
-
export declare function getPositionKey(): string;
|
|
70
|
-
export declare function getSizeKey(): string;
|
|
71
|
-
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;
|
|
72
84
|
export interface PanelPosition {
|
|
73
85
|
top: number;
|
|
74
86
|
left: number;
|
|
@@ -92,8 +104,8 @@ export declare const DEFAULT_POSITION: PanelPosition;
|
|
|
92
104
|
* tests get the centered position.
|
|
93
105
|
*/
|
|
94
106
|
export declare function defaultPosition(): PanelPosition;
|
|
95
|
-
export declare function loadPosition(): PanelPosition;
|
|
96
|
-
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;
|
|
97
109
|
/** Keep at least VISIBLE_MIN px of the panel on-screen so the user can grab it back. */
|
|
98
110
|
export declare const VISIBLE_MIN = 60;
|
|
99
111
|
export interface PanelSize {
|
|
@@ -125,8 +137,8 @@ export declare function defaultSize(): PanelSize;
|
|
|
125
137
|
* from rendering off-screen when reopened on a 1080p laptop.
|
|
126
138
|
*/
|
|
127
139
|
export declare function clampSize(width: number, height: number): PanelSize;
|
|
128
|
-
export declare function loadSize(): PanelSize;
|
|
129
|
-
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;
|
|
130
142
|
/**
|
|
131
143
|
* User-chosen tab-grid density. Three discrete stops exposed as integers so a
|
|
132
144
|
* native `<input type="range">` slider can read/write directly:
|
|
@@ -142,8 +154,8 @@ export declare function saveSize(size: PanelSize): void;
|
|
|
142
154
|
export type PanelDensity = 0 | 1 | 2;
|
|
143
155
|
export declare const DEFAULT_DENSITY: PanelDensity;
|
|
144
156
|
export declare function densityToGridMin(density: PanelDensity): string;
|
|
145
|
-
export declare function loadDensity(): PanelDensity;
|
|
146
|
-
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;
|
|
147
159
|
export declare function clampPosition(top: number, left: number, panelWidth: number, _panelHeight: number): PanelPosition;
|
|
148
160
|
/**
|
|
149
161
|
* Upstream re-highlights every `<pre>` on the page when the Shiki theme
|
|
@@ -205,7 +217,7 @@ export declare function emptyOverrides(): TokenOverrides;
|
|
|
205
217
|
* Resolve the active primary color cluster from the panel config's tabs.
|
|
206
218
|
* Returns the stub cluster when no color tab is configured.
|
|
207
219
|
*/
|
|
208
|
-
export declare function getActivePrimaryCluster(cfg?:
|
|
220
|
+
export declare function getActivePrimaryCluster(cfg?: PanelConfig): ColorClusterDataConfig;
|
|
209
221
|
/**
|
|
210
222
|
* Produce a fresh `ColorTweakState` for a secondary color cluster.
|
|
211
223
|
* Generalises the no-scheme seed path: the palette length, semantic
|
|
@@ -228,12 +240,24 @@ export declare function getActivePrimaryCluster(cfg?: import("..").PanelConfig):
|
|
|
228
240
|
export declare function initSecondaryDefaults(cluster: ColorClusterDataConfig): ColorTweakState;
|
|
229
241
|
/**
|
|
230
242
|
* Convenience helper used by `panel.tsx` and tests: seed a fresh secondary
|
|
231
|
-
* `ColorTweakState` from the
|
|
243
|
+
* `ColorTweakState` from the panel config's secondary cluster.
|
|
232
244
|
* Returns `undefined` when the host opted out of the secondary cluster
|
|
233
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.
|
|
234
250
|
*/
|
|
235
|
-
export declare function initSecondaryFromConfig(): ColorTweakState | undefined;
|
|
251
|
+
export declare function initSecondaryFromConfig(cfg?: PanelConfig): ColorTweakState | undefined;
|
|
236
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
|
+
*/
|
|
237
261
|
export declare function setCssVar(name: string, value: string): void;
|
|
238
262
|
/**
|
|
239
263
|
* Resolve a `ColorRef` to a palette index. If it's already a number, use it.
|
|
@@ -246,8 +270,14 @@ export declare function colorRefToIndex(ref: ColorRef | undefined, palette: stri
|
|
|
246
270
|
* light/dark mode. Reads `panelSettings` from the cluster so a
|
|
247
271
|
* host-supplied cluster can declare its own scheme + light/dark pairing
|
|
248
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.
|
|
249
279
|
*/
|
|
250
|
-
export declare function getActiveSchemeName(cluster?: ColorClusterDataConfig): string;
|
|
280
|
+
export declare function getActiveSchemeName(cluster?: ColorClusterDataConfig, cfg?: PanelConfig): string;
|
|
251
281
|
/**
|
|
252
282
|
* Initialise a `ColorTweakState` from the active color scheme for the given
|
|
253
283
|
* cluster. Defaults to the host's primary cluster (derived from the color
|
|
@@ -264,7 +294,7 @@ export declare function initColorFromSchemeData(scheme: ColorScheme, cluster?: C
|
|
|
264
294
|
export declare function resolveMapping(mapping: number | 'bg' | 'fg', palette: string[], bgIndex: number, fgIndex: number): string;
|
|
265
295
|
export declare function safeIndex(index: number, len: number): number;
|
|
266
296
|
/** Apply a single `ColorTweakState` to the DOM using the given cluster config. */
|
|
267
|
-
export declare function applyColorState(state: ColorTweakState, cluster?: ColorClusterDataConfig): void;
|
|
297
|
+
export declare function applyColorState(state: ColorTweakState, cluster?: ColorClusterDataConfig, sink?: ApplySink): void;
|
|
268
298
|
/**
|
|
269
299
|
* Apply a `TokenOverrides` map for a given manifest — writes inline
|
|
270
300
|
* `--css-var: value` on `:root` for every overridden token, and removes the
|
|
@@ -274,7 +304,7 @@ export declare function applyColorState(state: ColorTweakState, cluster?: ColorC
|
|
|
274
304
|
* Read-only tokens are skipped in both directions: they are informational rows
|
|
275
305
|
* in the UI and are never written to storage.
|
|
276
306
|
*/
|
|
277
|
-
export declare function applyTokenOverrides(tokens: readonly TokenDef[], overrides: TokenOverrides): void;
|
|
307
|
+
export declare function applyTokenOverrides(tokens: readonly TokenDef[], overrides: TokenOverrides, sink?: ApplySink): void;
|
|
278
308
|
/**
|
|
279
309
|
* Apply the full unified `TweakState` — primary color cluster + token
|
|
280
310
|
* overrides + optional secondary cluster.
|
|
@@ -282,18 +312,53 @@ export declare function applyTokenOverrides(tokens: readonly TokenDef[], overrid
|
|
|
282
312
|
* Tab configs AND the primary color cluster are read from `panelConfig`
|
|
283
313
|
* at call time so a host that calls `configurePanel` before mount sees its
|
|
284
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).
|
|
285
319
|
*/
|
|
286
|
-
export declare function applyFullState(state: TweakState): void;
|
|
320
|
+
export declare function applyFullState(state: TweakState, cfg?: PanelConfig): void;
|
|
287
321
|
/**
|
|
288
|
-
* Strip
|
|
289
|
-
*
|
|
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`.
|
|
290
330
|
*
|
|
291
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
|
|
292
352
|
* subset; the default wipes both the primary and secondary clusters so a
|
|
293
353
|
* panel-level reset leaves no stale inline overrides on `:root` regardless
|
|
294
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.
|
|
295
360
|
*/
|
|
296
|
-
export declare function clearAppliedStyles(clusters?: readonly ColorClusterDataConfig[]): void;
|
|
361
|
+
export declare function clearAppliedStyles(clusters?: readonly ColorClusterDataConfig[], cfg?: PanelConfig): void;
|
|
297
362
|
/**
|
|
298
363
|
* Test-friendly migration entry point. Reads from a provided storage (defaults
|
|
299
364
|
* to `localStorage`) and returns the loaded+migrated `TweakState`, or `null`
|
|
@@ -341,9 +406,21 @@ export interface StorageLike {
|
|
|
341
406
|
* labels), so this migration only applies to the typography slice.
|
|
342
407
|
*/
|
|
343
408
|
export declare const ZDTP_LEGACY_TYPOGRAPHY_RENAME_MAP: Readonly<Record<string, string | null>>;
|
|
344
|
-
export declare function loadPersistedState(storage?: StorageLike, colorDefaults?: ColorTweakState, cluster?: ColorClusterDataConfig): TweakState | null;
|
|
345
|
-
/**
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
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;
|
|
349
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;
|
|
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,kBAAkB,GAAG,sBAAsB,CAAC;AAKxD,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAM3D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,eAAe,CAAC,GAAG,GAAE,WAA8B,GAAG,MAAM,CAE3E;AAED,wBAAgB,eAAe,CAAC,GAAG,GAAE,WAA8B,GAAG,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;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");
|