@mkbabb/keyframes.js 4.1.0 → 4.2.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/README.md +397 -65
- package/dist/{animate-12YQKwyY.js → animate-WjeAtXAe.js} +2 -2
- package/dist/{animations-CcAWdZlW.js → animations-WlZvjmDT.js} +2 -2
- package/dist/{draw-svg-DwAa5cbU.js → draw-svg-Dm9f0vTl.js} +1 -1
- package/dist/{engine-Cj0T6OIH.js → engine-Gk4Q7ltr.js} +180 -148
- package/dist/keyframes.d.ts +84 -23
- package/dist/keyframes.js +7 -7
- package/dist/{motion-path-683GcEZK.js → motion-path-DQ73oD2j.js} +1 -1
- package/dist/{springTimingFunction-cMJnhbug.js → springTimingFunction-DMb11kBe.js} +1 -1
- package/dist/{timeline-BHz0o8dZ.js → timeline-CPT7qUV1.js} +12 -11
- package/package.json +93 -10
package/dist/keyframes.d.ts
CHANGED
|
@@ -284,8 +284,9 @@ declare class Animation_2<V extends Vars = any> {
|
|
|
284
284
|
* (F.W4 S3 — so the single-frame path can alias `flatVars` with no copy).
|
|
285
285
|
*/
|
|
286
286
|
private processFrame;
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
/** SYNC unless `delay > 0` — then a thenable resolving after the sleep. */
|
|
288
|
+
onStart(): Promise<void> | undefined;
|
|
289
|
+
onEnd(): void;
|
|
289
290
|
/**
|
|
290
291
|
* Advance the playhead to absolute clock `t` (a rAF timestamp, NOT a
|
|
291
292
|
* delta). Lazily runs `onStart` on the first call, reconciles the
|
|
@@ -293,13 +294,22 @@ declare class Animation_2<V extends Vars = any> {
|
|
|
293
294
|
* duration. This is the DRIVER-layer advance — the one meaning of the
|
|
294
295
|
* absolute-clock step, distinct from the `tickDt(dt)` stepper surface
|
|
295
296
|
* the rest of the engine canonicalized to.
|
|
297
|
+
*
|
|
298
|
+
* SYNC on the steady path (J.W6 S1 — the F.W5 held half, landed): every
|
|
299
|
+
* post-start frame returns a plain number (no per-frame promise+microtask
|
|
300
|
+
* hop); a thenable ONLY when the FIRST tick awaits the genuinely-async
|
|
301
|
+
* delay sleep. Ordering locked by proof:event-ordering.
|
|
296
302
|
*/
|
|
297
|
-
advanceTo(t: number): Promise<number>;
|
|
303
|
+
advanceTo(t: number): number | Promise<number>;
|
|
304
|
+
/** The post-start advance body — pause clock, local time, iteration end. */
|
|
305
|
+
private _advance;
|
|
298
306
|
/**
|
|
299
307
|
* One frame of the standalone rAF play path, driven by the shared
|
|
300
308
|
* `RAFPlayback.loop`. Returns whether the loop should continue.
|
|
301
309
|
*/
|
|
302
310
|
private _frame;
|
|
311
|
+
/** The post-advance render half of `_frame` — paint, or settle on done. */
|
|
312
|
+
private _renderFrame;
|
|
303
313
|
private _resolvePlay;
|
|
304
314
|
/** Internal rAF-based play loop — loop ownership rides `this.playback`. */
|
|
305
315
|
private _playRAF;
|
|
@@ -454,6 +464,14 @@ export declare interface AnimationFrame<V extends Vars> {
|
|
|
454
464
|
|
|
455
465
|
export declare class AnimationGroup<V extends Vars> {
|
|
456
466
|
animations: AnimationGroupObject<V>;
|
|
467
|
+
/**
|
|
468
|
+
* The group's composite transform. Defaults to a real no-op at the FIELD
|
|
469
|
+
* (I.W0 S3) — NOT a lying definite-assignment assertion. A childless or
|
|
470
|
+
* pre-`parse()` group (e.g. the empty HOME backdrop) composites nothing,
|
|
471
|
+
* so `transformFramesGrouped` calls a harmless no-op instead of throwing
|
|
472
|
+
* `this.transform is not a function` (B1/E1). The constructor overrides
|
|
473
|
+
* this with the first child's transform when one exists.
|
|
474
|
+
*/
|
|
457
475
|
transform: TransformFunction<V>;
|
|
458
476
|
superKey: string | undefined;
|
|
459
477
|
paused: boolean;
|
|
@@ -561,12 +579,17 @@ export declare class AnimationGroup<V extends Vars> {
|
|
|
561
579
|
*/
|
|
562
580
|
setChildTime(nameOrAnim: string | Animation_2<V>, t: number): this;
|
|
563
581
|
/**
|
|
564
|
-
* Advance all child animations to absolute clock `t`.
|
|
565
|
-
*
|
|
566
|
-
*
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
582
|
+
* Advance all child animations to absolute clock `t`. SYNC on the steady
|
|
583
|
+
* path (J.W6 S1): children that all step synchronously advance the group
|
|
584
|
+
* with no per-frame `Promise.all`/microtask hop; a thenable only on a
|
|
585
|
+
* genuinely-async child or the over-`YIELD_BATCH` yield path.
|
|
586
|
+
*/
|
|
587
|
+
advanceTo(t: number): this | Promise<this>;
|
|
588
|
+
/** Batched advance — yield to the main thread between batches. */
|
|
589
|
+
private _advanceBatched;
|
|
590
|
+
/** The post-advance tail — `onEnd` once the render marked done. */
|
|
591
|
+
private _endAdvance;
|
|
592
|
+
/** Advance one slice — `undefined` iff every child stepped sync. */
|
|
570
593
|
private _advanceSlice;
|
|
571
594
|
/**
|
|
572
595
|
* One frame of the group's draw loop, driven by the shared
|
|
@@ -575,6 +598,8 @@ export declare class AnimationGroup<V extends Vars> {
|
|
|
575
598
|
* Returns whether the loop should continue.
|
|
576
599
|
*/
|
|
577
600
|
private _frame;
|
|
601
|
+
/** The post-advance render half of `_frame` — composite, or settle. */
|
|
602
|
+
private _renderFrame;
|
|
578
603
|
private _resolvePlay;
|
|
579
604
|
/**
|
|
580
605
|
* Start the animation group. Returns a promise that resolves
|
|
@@ -696,6 +721,19 @@ export declare interface AnimationLayerConfig {
|
|
|
696
721
|
properties?: Set<string>;
|
|
697
722
|
}
|
|
698
723
|
|
|
724
|
+
/** Thrown when an animation option receives malformed (non-undefined) input. */
|
|
725
|
+
export declare class AnimationOptionError extends Error {
|
|
726
|
+
readonly option: string;
|
|
727
|
+
readonly value: unknown;
|
|
728
|
+
/**
|
|
729
|
+
* Stable structured reason for programmatic consumers — branch on this,
|
|
730
|
+
* never on the human message. Carried only by the two named rows
|
|
731
|
+
* ({@link AnimationOptionErrorCode}); undefined otherwise.
|
|
732
|
+
*/
|
|
733
|
+
readonly code?: AnimationOptionErrorCode;
|
|
734
|
+
constructor(option: string, value: unknown, reason: string, code?: AnimationOptionErrorCode);
|
|
735
|
+
}
|
|
736
|
+
|
|
699
737
|
/**
|
|
700
738
|
* Typed option-validation errors — the fail-explicit seam.
|
|
701
739
|
*
|
|
@@ -709,12 +747,19 @@ export declare interface AnimationLayerConfig {
|
|
|
709
747
|
*
|
|
710
748
|
* Value.js-free: light modules import these without touching the boundary.
|
|
711
749
|
*/
|
|
712
|
-
/**
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
750
|
+
/**
|
|
751
|
+
* The stable, machine-branchable reasons a typed option error can carry
|
|
752
|
+
* (J.W1 S8, K3-internal). EXACTLY the two engine-internal rows the
|
|
753
|
+
* ingestion lane folds into J.W1 — a structured `code` ON the typed throw,
|
|
754
|
+
* NOT a diagnostics channel (the full `Diagnostic[]` surface stays a K.W0
|
|
755
|
+
* seed item):
|
|
756
|
+
*
|
|
757
|
+
* - `EMPTY_PARSE` — a blank/whitespace-only keyframe selector reached the
|
|
758
|
+
* compile seam (the H-A2 "......" class, named).
|
|
759
|
+
* - `UNKNOWN_TIMING_FN` — a present-but-unresolvable timing function (not a
|
|
760
|
+
* callable, a registry name, or a cubic-bezier()/steps() literal).
|
|
761
|
+
*/
|
|
762
|
+
declare type AnimationOptionErrorCode = "EMPTY_PARSE" | "UNKNOWN_TIMING_FN";
|
|
718
763
|
|
|
719
764
|
export declare type AnimationOptions = {
|
|
720
765
|
duration: number;
|
|
@@ -1289,7 +1334,6 @@ declare class FrameCompiler<V extends Vars = any> {
|
|
|
1289
1334
|
* invariant — G.W19 / the `6e29236` lock), without poking a private field.
|
|
1290
1335
|
*/
|
|
1291
1336
|
get options(): AnimationOptions;
|
|
1292
|
-
convertFrameStart(frame: TemplateAnimationFrame<V>): TemplateAnimationFrame<V>;
|
|
1293
1337
|
addFrame<K extends V>(start: number | string | ValueUnit<number>, vars: Partial<K>, transform?: TransformFunction<K>, timingFunction?: InputAnimationOptions["timingFunction"]): void;
|
|
1294
1338
|
createFrame(startIx: number, endIx: number): AnimationFrame<V>;
|
|
1295
1339
|
/**
|
|
@@ -1709,10 +1753,12 @@ declare const pulse: (options?: InputAnimationOptions) => CSSKeyframesAnimation<
|
|
|
1709
1753
|
* - {@link drive} — settle-based dt loop over a {@link Tickable}
|
|
1710
1754
|
* (`SmoothProgress`, `SpringProgress`): steps until the stepper settles,
|
|
1711
1755
|
* auto-stopping; idempotent so target re-seats can re-arm it.
|
|
1712
|
-
* - {@link loop} — self-rescheduling frame loop over
|
|
1756
|
+
* - {@link loop} — self-rescheduling frame loop over a maybe-async callback
|
|
1713
1757
|
* (`Animation`, `AnimationGroup`, the WAAPI shadow tick): the callback
|
|
1714
|
-
* returns `true` to continue;
|
|
1715
|
-
*
|
|
1758
|
+
* returns `true` to continue; a thenable result defers rescheduling until
|
|
1759
|
+
* it resolves, so a slow async frame never double-schedules, while a
|
|
1760
|
+
* sync frame (the steady `Animation`/group `_frame`, J.W6 S1) reschedules
|
|
1761
|
+
* inline on the sync fast-path.
|
|
1716
1762
|
*
|
|
1717
1763
|
* Because all three ride one core, none can diverge — the generation guard
|
|
1718
1764
|
* that makes `loop` safe against a `stop()` + restart mid-frame protects
|
|
@@ -1722,6 +1768,21 @@ declare const pulse: (options?: InputAnimationOptions) => CSSKeyframesAnimation<
|
|
|
1722
1768
|
* `SpringProgress` `_startLoop`/`_stopLoop` byte-siblings, the
|
|
1723
1769
|
* `AnimationGroup` draw loop, `Animation._playRAF`, and the WAAPI shadow
|
|
1724
1770
|
* loop — all delegate here. No other module owns a rAF handle.
|
|
1771
|
+
*
|
|
1772
|
+
* BIND-PROOF BY CONSTRUCTION (I.W1 S1). The public control surface —
|
|
1773
|
+
* `play`/`drive`/`loop`/`stop` — is declared as ARROW CLASS-FIELDS, not
|
|
1774
|
+
* prototype methods, so each captures `this` at construction. A consumer can
|
|
1775
|
+
* `const { stop } = playback`, pass `playback.stop` straight as a callback, or
|
|
1776
|
+
* call `playback.stop()` as a member — ALL THREE are safe, forever, because the
|
|
1777
|
+
* receiver can never be dropped. This closes the entire unbound-method crash
|
|
1778
|
+
* class at the engine seam (the `this._gen++` throw a free-standing `stop()`
|
|
1779
|
+
* used to raise inside a Vue reactive flush — `rootcause-rc-dfa-gen.md`):
|
|
1780
|
+
* binding correctness lives ONCE here, never re-asserted per call site. The
|
|
1781
|
+
* arrow fields move these four methods onto the INSTANCE rather than the
|
|
1782
|
+
* prototype — a per-instance allocation accepted because `RAFPlayback`
|
|
1783
|
+
* instances are FEW and long-lived (one per scene/animation). The private
|
|
1784
|
+
* `_run`/`_cleanup` stay prototype methods: they are only ever reached as
|
|
1785
|
+
* `this._run(…)` internally, never extracted as values, so they need no bind.
|
|
1725
1786
|
*/
|
|
1726
1787
|
export declare class RAFPlayback {
|
|
1727
1788
|
private _rafId;
|
|
@@ -1762,14 +1823,14 @@ export declare class RAFPlayback {
|
|
|
1762
1823
|
* `onTick(1)` fires once, no rAF loop is spawned, and the promise
|
|
1763
1824
|
* resolves on the next microtask.
|
|
1764
1825
|
*/
|
|
1765
|
-
play(duration: number, onTick: (progress: number) => void, options?: RAFPlaybackOptions)
|
|
1826
|
+
play: (duration: number, onTick: (progress: number) => void, options?: RAFPlaybackOptions) => Promise<void>;
|
|
1766
1827
|
/**
|
|
1767
1828
|
* Drive a {@link Tickable}'s dt-stepper once per frame until it
|
|
1768
1829
|
* settles, invoking `onFrame` after each step. Idempotent — a call
|
|
1769
1830
|
* while the loop is already running is a no-op, so consumers re-arm
|
|
1770
1831
|
* freely on every target re-seat. The loop auto-stops on settle.
|
|
1771
1832
|
*/
|
|
1772
|
-
drive(tickable: Tickable, onFrame?: () => void)
|
|
1833
|
+
drive: (tickable: Tickable, onFrame?: () => void) => void;
|
|
1773
1834
|
/**
|
|
1774
1835
|
* Self-rescheduling frame loop over an async callback. `cb(now)`
|
|
1775
1836
|
* returns `true` to continue; the next frame is scheduled only after
|
|
@@ -1777,9 +1838,9 @@ export declare class RAFPlayback {
|
|
|
1777
1838
|
* between frames halts the loop — the in-flight callback finishes,
|
|
1778
1839
|
* no further frame is scheduled.
|
|
1779
1840
|
*/
|
|
1780
|
-
loop(cb: (now: number) => boolean | Promise<boolean>)
|
|
1841
|
+
loop: (cb: (now: number) => boolean | Promise<boolean>) => void;
|
|
1781
1842
|
/** Cancel a running playback. A pending play promise resolves immediately. */
|
|
1782
|
-
stop()
|
|
1843
|
+
stop: () => void;
|
|
1783
1844
|
private _cleanup;
|
|
1784
1845
|
}
|
|
1785
1846
|
|
package/dist/keyframes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, g as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, t as f, u as p } from "./timeline-
|
|
2
|
-
import { n as m, r as h, t as g } from "./springTimingFunction-
|
|
1
|
+
import { a as e, c as t, d as n, g as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, t as f, u as p } from "./timeline-CPT7qUV1.js";
|
|
2
|
+
import { n as m, r as h, t as g } from "./springTimingFunction-DMb11kBe.js";
|
|
3
3
|
//#region src/animation/numeric.ts
|
|
4
4
|
var _ = class {
|
|
5
5
|
keyframes;
|
|
@@ -445,11 +445,11 @@ var I = class {
|
|
|
445
445
|
}
|
|
446
446
|
}, L = () => typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches, R = async () => {
|
|
447
447
|
let [e, t, n, r, i] = await Promise.all([
|
|
448
|
-
import("./engine-
|
|
449
|
-
import("./animate-
|
|
450
|
-
import("./motion-path-
|
|
451
|
-
import("./draw-svg-
|
|
452
|
-
import("./animations-
|
|
448
|
+
import("./engine-Gk4Q7ltr.js"),
|
|
449
|
+
import("./animate-WjeAtXAe.js"),
|
|
450
|
+
import("./motion-path-DQ73oD2j.js"),
|
|
451
|
+
import("./draw-svg-Dm9f0vTl.js"),
|
|
452
|
+
import("./animations-WlZvjmDT.js")
|
|
453
453
|
]);
|
|
454
454
|
return Object.assign({
|
|
455
455
|
animate: t.animate,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e, o as t, s as n } from "./timeline-
|
|
1
|
+
import { c as e, o as t, s as n } from "./timeline-CPT7qUV1.js";
|
|
2
2
|
//#region src/animation/spring.ts
|
|
3
3
|
function r(t) {
|
|
4
4
|
let { visualDuration: n, duration: r, bounce: a = 0, ...o } = t, s = n ?? r ?? i.response, c = 1 - e(a, -1, 1);
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
var e = (e) => typeof e == "string" ? JSON.stringify(e) : typeof e == "function" ? `[function ${e.name || "anonymous"}]` : String(e), t = class extends Error {
|
|
3
3
|
option;
|
|
4
4
|
value;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
code;
|
|
6
|
+
constructor(t, n, r, i) {
|
|
7
|
+
super(`Invalid value for animation option "${t}": ${e(n)} — ${r}`), this.name = "AnimationOptionError", this.option = t, this.value = n, i !== void 0 && (this.code = i);
|
|
7
8
|
}
|
|
8
9
|
}, n = class extends Error {
|
|
9
10
|
easingName;
|
|
@@ -25,7 +26,7 @@ var i = (e) => typeof e == "function" ? { fn: e } : e, a = /^(linear|ease|ease-i
|
|
|
25
26
|
async function c(e) {
|
|
26
27
|
let t;
|
|
27
28
|
try {
|
|
28
|
-
t = await import("./engine-
|
|
29
|
+
t = await import("./engine-Gk4Q7ltr.js");
|
|
29
30
|
} catch (t) {
|
|
30
31
|
throw Error(`keyframes: the engine chunk failed to load while resolving easing "${e}" — the easing registry is unreachable.`, { cause: t });
|
|
31
32
|
}
|
|
@@ -107,7 +108,7 @@ var S = class {
|
|
|
107
108
|
};
|
|
108
109
|
this._rafId = m(r);
|
|
109
110
|
}
|
|
110
|
-
play(e, t, n) {
|
|
111
|
+
play = (e, t, n) => {
|
|
111
112
|
if (e <= 0) throw Error("RAFPlayback.play() requires a duration > 0.");
|
|
112
113
|
return this.stop(), x(n?.respectReducedMotion, () => (t(1), Promise.resolve()), () => new Promise((n) => {
|
|
113
114
|
this._resolve = n, this._startTime = void 0, this._run((n) => {
|
|
@@ -116,19 +117,19 @@ var S = class {
|
|
|
116
117
|
return t(r), r < 1;
|
|
117
118
|
});
|
|
118
119
|
}));
|
|
119
|
-
}
|
|
120
|
-
drive(e, t) {
|
|
120
|
+
};
|
|
121
|
+
drive = (e, t) => {
|
|
121
122
|
this._rafId === null && (this._lastFrameT = 0, this._run((n) => {
|
|
122
123
|
let r = this._lastFrameT ? n - this._lastFrameT : 16.667;
|
|
123
124
|
return this._lastFrameT = n, e.tickDt(r), t?.(), !e.settled;
|
|
124
125
|
}));
|
|
125
|
-
}
|
|
126
|
-
loop(e) {
|
|
126
|
+
};
|
|
127
|
+
loop = (e) => {
|
|
127
128
|
this.stop(), this._run(e);
|
|
128
|
-
}
|
|
129
|
-
stop() {
|
|
129
|
+
};
|
|
130
|
+
stop = () => {
|
|
130
131
|
this._gen++, this._rafId !== null && h(this._rafId), this._cleanup();
|
|
131
|
-
}
|
|
132
|
+
};
|
|
132
133
|
_cleanup() {
|
|
133
134
|
this._rafId = null, this._startTime = void 0, this._lastFrameT = 0;
|
|
134
135
|
let e = this._resolve;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mkbabb/keyframes.js",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Create keyframe animations for anything in JavaScript; specify your keyframes in standards-complaint CSS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
|
-
"dist"
|
|
29
|
+
"dist",
|
|
30
|
+
"!dist/gh-pages",
|
|
31
|
+
"!dist/_*"
|
|
30
32
|
],
|
|
31
33
|
"scripts": {
|
|
32
34
|
"prepare": "npm run build:lib",
|
|
@@ -39,7 +41,8 @@
|
|
|
39
41
|
"build:watch": "vite build --watch --mode production",
|
|
40
42
|
"gh-pages": "vite build --mode gh-pages",
|
|
41
43
|
"proof:boundary": "node scripts/proof-boundary.mjs",
|
|
42
|
-
"proof:
|
|
44
|
+
"proof:published-surface": "node scripts/proof-published-surface.mjs",
|
|
45
|
+
"proof:readme-runs": "node scripts/proof-readme-runs.mjs",
|
|
43
46
|
"proof:deps-current": "node scripts/proof-deps-current.mjs",
|
|
44
47
|
"proof:repin-witness": "node scripts/proof-repin-witness.mjs",
|
|
45
48
|
"proof:dogfood": "node scripts/proof-dogfood.mjs",
|
|
@@ -59,6 +62,7 @@
|
|
|
59
62
|
"proof:orchestration": "node scripts/proof-orchestration.mjs",
|
|
60
63
|
"proof:interp-fastprops": "node --allow-natives-syntax scripts/proof-interp-fastprops.mjs && vitest run test/interp-fastprops.test.ts",
|
|
61
64
|
"proof:sync-step": "vitest run test/sync-step.test.ts",
|
|
65
|
+
"proof:event-ordering": "vitest run test/event-ordering.test.ts",
|
|
62
66
|
"proof:roundtrip-easing": "vitest run test/roundtrip-easing.test.ts",
|
|
63
67
|
"proof:adapter-capture": "vitest run test/adapter-capture.test.ts",
|
|
64
68
|
"proof:motion-path": "node scripts/proof-motion-path.mjs && vitest run test/motion-path.test.ts",
|
|
@@ -71,12 +75,90 @@
|
|
|
71
75
|
"proof:orbital-rotate3d": "node scripts/proof-orbital-rotate3d.mjs && vitest run test/orbital-rotate3d.test.ts",
|
|
72
76
|
"proof:asset-store-singleton": "vitest run test/asset-store-singleton.test.ts",
|
|
73
77
|
"proof:scene-raf-leak": "vitest run test/scene-raf-leak.test.ts",
|
|
78
|
+
"proof:scene-contract-identity": "vitest run test/scene-contract-identity.test.ts",
|
|
79
|
+
"proof:group-snapshot-identity": "vitest run test/group-snapshot-identity.test.ts",
|
|
74
80
|
"proof:resize-tracks": "vitest run test/resize-tracks.test.ts",
|
|
75
81
|
"proof:computed-real-dom": "node scripts/proof-computed-real-dom.mjs",
|
|
76
82
|
"proof:demo-usability": "node scripts/proof-demo-usability.mjs",
|
|
83
|
+
"proof:demo-smoke": "node scripts/demo-smoke.mjs",
|
|
84
|
+
"proof:occlusion": "node scripts/occlusion-gate.mjs",
|
|
85
|
+
"proof:lighthouse-a11y": "node scripts/lighthouse-gate.mjs",
|
|
86
|
+
"proof:live-session": "node scripts/proof-live-session.mjs",
|
|
87
|
+
"proof:live-session-mobile": "node scripts/proof-live-session-mobile.mjs",
|
|
88
|
+
"proof:appearance-suffusion": "node scripts/proof-appearance-suffusion.mjs",
|
|
89
|
+
"proof:gate-is-runtime": "node scripts/proof-gate-is-runtime.mjs",
|
|
90
|
+
"proof:engine-no-throw-on-play": "node scripts/proof-engine-no-throw-on-play.mjs",
|
|
91
|
+
"proof:subject-animates": "node scripts/proof-subject-animates.mjs",
|
|
92
|
+
"proof:amiga-subject-is-pivot": "node scripts/proof-amiga-subject-is-pivot.mjs",
|
|
93
|
+
"proof:icon-paint-live": "node scripts/proof-icon-paint-live.mjs",
|
|
94
|
+
"proof:specular-absent-at-rest": "node scripts/proof-specular-absent-at-rest.mjs",
|
|
95
|
+
"proof:demo-fonts": "node scripts/proof-demo-fonts.mjs",
|
|
96
|
+
"proof:drag-gesture": "node scripts/proof-drag-gesture.mjs",
|
|
97
|
+
"proof:perf-frame-budget": "node scripts/proof-perf-frame-budget.mjs",
|
|
98
|
+
"proof:easing-editor-live": "node scripts/proof-easing-editor-live.mjs",
|
|
99
|
+
"proof:fsm-suspend-resume-live": "node scripts/proof-fsm-suspend-resume-live.mjs",
|
|
100
|
+
"proof:visual-lock": "node scripts/proof-visual-lock.mjs",
|
|
101
|
+
"proof:browser": "node scripts/proof-browser.mjs",
|
|
102
|
+
"proof:scene-machine-irrefragable": "node scripts/proof-scene-machine-irrefragable.mjs",
|
|
103
|
+
"proof:drawer-spring": "node scripts/proof-drawer-spring.mjs",
|
|
104
|
+
"proof:scene-control-dfa": "node scripts/proof-scene-control-dfa.mjs && vitest run test/control-surface-dfa.test.ts",
|
|
105
|
+
"proof:scene-transition-perf": "node scripts/proof-scene-transition-perf.mjs",
|
|
106
|
+
"proof:control-surface-single-writer": "node scripts/proof-control-surface-single-writer.mjs",
|
|
107
|
+
"proof:sheet-reopen-scroll": "node scripts/proof-sheet-reopen-scroll.mjs",
|
|
108
|
+
"proof:dock-popover-opens": "node scripts/proof-dock-popover-opens.mjs",
|
|
109
|
+
"proof:single-toggle": "node scripts/proof-single-toggle.mjs",
|
|
110
|
+
"proof:single-column-pack": "node scripts/proof-single-column-pack.mjs",
|
|
111
|
+
"proof:label-subgrid": "node scripts/proof-label-subgrid.mjs",
|
|
112
|
+
"proof:timeline-rail-width": "node scripts/proof-timeline-rail-width.mjs",
|
|
113
|
+
"proof:demo-shell-grid": "node scripts/proof-demo-shell-grid.mjs",
|
|
114
|
+
"proof:stage-not-clipped": "node scripts/proof-stage-not-clipped.mjs",
|
|
115
|
+
"proof:cartoon-shadow-unclipped": "node scripts/proof-cartoon-shadow-unclipped.mjs",
|
|
116
|
+
"proof:no-deprecated-guard": "node scripts/proof-no-deprecated-guard.mjs",
|
|
117
|
+
"proof:single-writer": "node scripts/proof-single-writer.mjs",
|
|
118
|
+
"proof:composable-encapsulation": "node scripts/proof-composable-encapsulation.mjs",
|
|
119
|
+
"proof:demo-no-oversize": "node scripts/proof-demo-no-oversize.mjs",
|
|
120
|
+
"proof:no-brittle-selector": "node scripts/proof-no-brittle-selector.mjs",
|
|
121
|
+
"proof:no-dup-utility": "node scripts/proof-no-dup-utility.mjs",
|
|
122
|
+
"proof:cartoon-is-panel-depth": "node scripts/proof-cartoon-is-panel-depth.mjs",
|
|
123
|
+
"proof:glass-and-cartoon": "node scripts/proof-glass-and-cartoon.mjs",
|
|
124
|
+
"proof:phi-leaf-zero": "node scripts/proof-phi-leaf-zero.mjs",
|
|
125
|
+
"proof:icon-idiom": "node scripts/proof-icon-idiom.mjs",
|
|
126
|
+
"proof:styling-idioms": "node scripts/proof-styling-idioms.mjs",
|
|
127
|
+
"proof:scene-parity": "node scripts/proof-scene-parity.mjs",
|
|
128
|
+
"proof:typing-dots": "node scripts/proof-typing-dots.mjs",
|
|
129
|
+
"proof:dogfood-hero": "node scripts/proof-dogfood-hero.mjs",
|
|
130
|
+
"proof:easing-canvas-bounded": "node scripts/proof-easing-canvas-bounded.mjs",
|
|
131
|
+
"proof:scene-uses-standard-ribbon": "node scripts/proof-scene-uses-standard-ribbon.mjs",
|
|
132
|
+
"proof:easing-sidebar-normalized": "node scripts/proof-easing-sidebar-normalized.mjs",
|
|
133
|
+
"proof:easing-sidebar-minimal": "node scripts/proof-easing-sidebar-minimal.mjs",
|
|
134
|
+
"proof:easing-stage-is-ball": "node scripts/proof-easing-stage-is-ball.mjs",
|
|
135
|
+
"proof:scene-card-rounded": "node scripts/proof-scene-card-rounded.mjs",
|
|
136
|
+
"proof:stage-glass-card": "node scripts/proof-stage-glass-card.mjs",
|
|
137
|
+
"proof:card-rounded-primitive": "node scripts/proof-card-rounded-primitive.mjs",
|
|
138
|
+
"proof:stage-within-docks": "node scripts/proof-stage-within-docks.mjs",
|
|
139
|
+
"proof:mobile-single-page": "node scripts/proof-mobile-single-page.mjs",
|
|
140
|
+
"proof:dock-zorder": "node scripts/proof-dock-zorder.mjs",
|
|
141
|
+
"proof:bezier-no-scroll": "node scripts/proof-bezier-no-scroll.mjs",
|
|
142
|
+
"proof:bezier-single-card": "node scripts/proof-bezier-single-card.mjs",
|
|
143
|
+
"proof:bezier-grown": "node scripts/proof-bezier-grown.mjs",
|
|
144
|
+
"proof:pp-logo-svg": "node scripts/proof-pp-logo-svg.mjs",
|
|
145
|
+
"proof:darkmode-row-toggle": "node scripts/proof-darkmode-row-toggle.mjs",
|
|
146
|
+
"proof:idle-fade": "node scripts/proof-idle-fade.mjs",
|
|
147
|
+
"proof:scene-perf-budget": "node scripts/proof-scene-perf-budget.mjs && vitest run test/amiga-sphere-spin.test.ts",
|
|
148
|
+
"proof:hero-rung": "node scripts/proof-hero-rung.mjs",
|
|
149
|
+
"proof:hero-balance": "node scripts/proof-hero-balance.mjs",
|
|
150
|
+
"proof:hero-cls": "node scripts/proof-hero-cls.mjs",
|
|
77
151
|
"proof:cohesion": "vitest run test/boundary-cohesion.test.ts",
|
|
152
|
+
"proof:sequence-rows-draggable": "node scripts/proof-sequence-rows-draggable.mjs",
|
|
153
|
+
"proof:motion-path-editable": "node scripts/proof-motion-path-editable.mjs",
|
|
154
|
+
"proof:motion-path-copy": "node scripts/proof-motion-path-copy.mjs",
|
|
155
|
+
"proof:easter-egg": "node scripts/proof-easter-egg.mjs",
|
|
78
156
|
"proof:ci-coverage": "node scripts/proof-ci-coverage.mjs",
|
|
79
|
-
"proof:
|
|
157
|
+
"proof:manifest-sourced": "node scripts/proof-manifest-sourced.mjs",
|
|
158
|
+
"proof:chronic-closure": "node scripts/proof-chronic-closure.mjs",
|
|
159
|
+
"proof:correctness": "npm run proof:engine-no-throw-on-play && npm run proof:subject-animates && npm run proof:fsm-suspend-resume-live && npm run proof:easing-editor-live && npm run proof:amiga-subject-is-pivot && npm run proof:drag-gesture && npm run proof:control-surface-single-writer && npm run proof:sheet-reopen-scroll && npm run proof:perf-frame-budget && npm run proof:icon-paint-live && npm run proof:specular-absent-at-rest && npm run proof:demo-fonts && npm run proof:live-session && npm run proof:live-session-mobile && npm run proof:appearance-suffusion",
|
|
160
|
+
"proof:hygiene": "npm run proof:deps-current && npm run proof:repin-witness && npm run proof:boundary && npm run proof:dogfood && npm run proof:engine && npm run proof:decomposition && npm run proof:no-deprecated-guard && npm run proof:single-writer && npm run proof:composable-encapsulation && npm run proof:demo-no-oversize && npm run proof:no-brittle-selector && npm run proof:no-dup-utility && npm run proof:demo-smoke && npm run proof:occlusion && npm run proof:cartoon-is-panel-depth && npm run proof:glass-and-cartoon && npm run proof:dock-popover-opens && npm run proof:single-toggle && npm run proof:darkmode-row-toggle && npm run proof:idle-fade && npm run proof:single-column-pack && npm run proof:label-subgrid && npm run proof:timeline-rail-width && npm run proof:demo-shell-grid && npm run proof:stage-not-clipped && npm run proof:cartoon-shadow-unclipped && npm run proof:scene-machine-irrefragable && npm run proof:scene-control-dfa && npm run proof:scene-transition-perf && npm run proof:dock-zorder && npm run proof:drawer-spring && npm run proof:idioms && npm run proof:phi-leaf-zero && npm run proof:icon-idiom && npm run proof:styling-idioms && npm run proof:scene-parity && npm run proof:sequence-rows-draggable && npm run proof:motion-path-editable && npm run proof:motion-path-copy && npm run proof:easter-egg && npm run proof:typing-dots && npm run proof:dogfood-hero && npm run proof:easing-canvas-bounded && npm run proof:scene-uses-standard-ribbon && npm run proof:easing-sidebar-normalized && npm run proof:easing-sidebar-minimal && npm run proof:easing-stage-is-ball && npm run proof:scene-card-rounded && npm run proof:stage-glass-card && npm run proof:card-rounded-primitive && npm run proof:stage-within-docks && npm run proof:mobile-single-page && npm run proof:bezier-no-scroll && npm run proof:bezier-single-card && npm run proof:bezier-grown && npm run proof:pp-logo-svg && npm run proof:scene-perf-budget && npm run proof:hero-rung && npm run proof:hero-balance && npm run proof:hero-cls && npm run proof:brittleness && npm run proof:demo-elevate && npm run proof:modern-web && npm run proof:zero-alloc && npm run proof:engine-correctness && npm run proof:standalone-zero-alloc && npm run proof:compile-deterministic && npm run proof:platform-adopt && npm run proof:orchestration && npm run proof:interp-fastprops && npm run proof:sync-step && npm run proof:roundtrip-easing && npm run proof:adapter-capture && npm run proof:motion-path && npm run proof:blend && npm run proof:drawsvg && npm run proof:finished && npm run proof:adopt-compiled && npm run proof:interpolate-anything && npm run proof:roundtrip-fidelity && npm run proof:orbital-rotate3d && npm run proof:asset-store-singleton && npm run proof:scene-raf-leak && npm run proof:scene-contract-identity && npm run proof:group-snapshot-identity && npm run proof:resize-tracks && npm run proof:cohesion && npm run proof:visual-lock && npm run proof:demo-usability && npm run proof:computed-real-dom && npm run proof:lighthouse-a11y && npm run proof:lighthouse-mobile && npm run proof:published-surface && npm run proof:readme-runs && npm run proof:event-ordering && npm run proof:manifest-sourced && npm run proof:bench-runs && npm run proof:gate-is-runtime && npm run proof:chronic-closure && npm run proof:ci-coverage && vitest run",
|
|
161
|
+
"proof:all": "npm run proof:correctness && npm run proof:hygiene",
|
|
80
162
|
"test": "vitest",
|
|
81
163
|
"bench": "vitest bench"
|
|
82
164
|
},
|
|
@@ -84,23 +166,20 @@
|
|
|
84
166
|
"type": "git",
|
|
85
167
|
"url": "git+https://github.com/mkbabb/keyframes.js.git"
|
|
86
168
|
},
|
|
87
|
-
"author": "",
|
|
169
|
+
"author": "Mike Babb <mike@babb.dev>",
|
|
88
170
|
"engines": {
|
|
89
171
|
"node": ">=22"
|
|
90
172
|
},
|
|
91
|
-
"peerDependencies": {
|
|
92
|
-
"vue": "^3.5.0"
|
|
93
|
-
},
|
|
94
173
|
"bugs": {
|
|
95
174
|
"url": "https://github.com/mkbabb/keyframes.js/issues"
|
|
96
175
|
},
|
|
97
176
|
"homepage": "https://github.com/mkbabb/keyframes.js#readme",
|
|
98
177
|
"dependencies": {
|
|
99
178
|
"@mkbabb/parse-that": "^0.9.0",
|
|
100
|
-
"@mkbabb/value.js": "^0.11.
|
|
179
|
+
"@mkbabb/value.js": "^0.11.2"
|
|
101
180
|
},
|
|
102
181
|
"optionalDependencies": {
|
|
103
|
-
"@mkbabb/glass-ui": "
|
|
182
|
+
"@mkbabb/glass-ui": "~3.11.2"
|
|
104
183
|
},
|
|
105
184
|
"devDependencies": {
|
|
106
185
|
"@iconify-json/radix-icons": "^1.2.6",
|
|
@@ -123,6 +202,8 @@
|
|
|
123
202
|
"jsdom": "^29.1.1",
|
|
124
203
|
"monaco-editor": "^0.55.1",
|
|
125
204
|
"monaco-themes": "^0.4.8",
|
|
205
|
+
"pixelmatch": "^7.2.0",
|
|
206
|
+
"pngjs": "^7.0.0",
|
|
126
207
|
"prettier": "^3.8.3",
|
|
127
208
|
"prettier-plugin-classnames": "^0.10.2",
|
|
128
209
|
"prettier-plugin-merge": "^0.10.1",
|
|
@@ -140,10 +221,12 @@
|
|
|
140
221
|
"vee-validate": "^4.15.1",
|
|
141
222
|
"vite": "^8.0.16",
|
|
142
223
|
"vite-plugin-dts": "^5.0.2",
|
|
224
|
+
"vite-svg-loader": "^5.1.0",
|
|
143
225
|
"vitest": "^4.1.8",
|
|
144
226
|
"vue": "^3.5.35",
|
|
145
227
|
"vue-router": "^5.1.0",
|
|
146
228
|
"vue-sonner": "^2.0.9",
|
|
229
|
+
"yaml": "^2.9.0",
|
|
147
230
|
"zod": "^3.25.76"
|
|
148
231
|
}
|
|
149
232
|
}
|