@mkbabb/keyframes.js 6.0.0 → 6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mkbabb/keyframes.js",
3
- "version": "6.0.0",
3
+ "version": "6.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": [
@@ -34,21 +34,23 @@
34
34
  ],
35
35
  "scripts": {
36
36
  "prepare": "npm run build:lib",
37
- "check": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
37
+ "check": "vue-tsc --noEmit -p tsconfig.json && vue-tsc --noEmit -p tsconfig.test.json && npm run proof:structure",
38
38
  "check:lib": "tsc --noEmit -p tsconfig.lib.json",
39
39
  "dev": "vite",
40
40
  "build": "npm run build:lib",
41
41
  "build:lib": "vite build --mode production",
42
42
  "build:watch": "vite build --watch --mode production",
43
43
  "gh-pages": "vite build --mode gh-pages",
44
- "lint": "depcruise src",
44
+ "lint": "depcruise --config .dependency-cruiser.cjs src demo && eslint demo",
45
45
  "test": "vitest",
46
46
  "test:lib": "vitest run --project library",
47
+ "test:demo": "vitest run --project demo",
47
48
  "bench": "vitest bench",
48
49
  "bench:color-fidelity": "vitest run test/engine/color-fidelity.test.ts && node scripts/color-fidelity-harness.mjs",
49
50
  "gen:agent-surface": "node scripts/gen-agent-surface.mjs",
51
+ "proof:structure": "node scripts/gates/structure/index.mjs",
50
52
  "proof:publish": "node scripts/gates/surface/index.mjs",
51
- "proof:owner-golden": "node scripts/gates/visual/index.mjs",
53
+ "review:owner-golden": "node scripts/gates/visual/index.mjs",
52
54
  "demo:correctness": "node scripts/run-demo-roster.mjs",
53
55
  "audit:lighthouse": "node scripts/observe/lighthouse.mjs",
54
56
  "release:changelog": "node scripts/release/changelog.mjs"
@@ -66,28 +68,30 @@
66
68
  },
67
69
  "homepage": "https://github.com/mkbabb/keyframes.js#readme",
68
70
  "dependencies": {
69
- "@mkbabb/value.js": "4.0.0"
71
+ "@mkbabb/value.js": "4.2.0"
70
72
  },
71
73
  "devDependencies": {
72
74
  "@iconify-json/radix-icons": "^1.2.6",
73
75
  "@iconify/vue": "^5.0.1",
74
76
  "@lucide/vue": "^1.17.0",
75
77
  "@microsoft/api-extractor": "^7.58.7",
78
+ "@mkbabb/glass-ui": "10.1.3",
76
79
  "@tailwindcss/postcss": "^4.3.0",
77
80
  "@types/node": "^22.20.0",
78
81
  "@types/three": "^0.184.1",
82
+ "@typescript-eslint/parser": "^8.70.0",
79
83
  "@vitejs/plugin-vue": "^6.0.7",
84
+ "@vue/test-utils": "^2.5.1",
80
85
  "@vueuse/core": "^14.3.0",
81
86
  "class-variance-authority": "^0.7.1",
82
87
  "clsx": "^2.1.1",
83
88
  "dependency-cruiser": "^18.0.0",
89
+ "eslint": "^10.10.0",
90
+ "eslint-plugin-vue": "^10.11.0",
84
91
  "fast-check": "^4.8.0",
85
92
  "gl-matrix": "^3.4.4",
86
- "highlight.js": "^11.11.1",
87
- "html2canvas": "^1.4.1",
88
93
  "jsdom": "^29.1.1",
89
94
  "monaco-editor": "^0.55.1",
90
- "monaco-themes": "^0.4.8",
91
95
  "pixelmatch": "^7.2.0",
92
96
  "pngjs": "^7.0.0",
93
97
  "prettier": "^3.8.3",
@@ -107,8 +111,9 @@
107
111
  "vite-svg-loader": "^5.1.0",
108
112
  "vitest": "^4.1.8",
109
113
  "vue": "^3.5.35",
114
+ "vue-eslint-parser": "^10.4.1",
110
115
  "vue-router": "^5.1.0",
111
- "vue-sonner": "^2.0.9",
116
+ "vue-tsc": "^3.3.11",
112
117
  "yaml": "^2.9.0"
113
118
  }
114
119
  }
@@ -1,79 +0,0 @@
1
- import { CubicBezier as e, bezierPresets as t, easing as n, linearEasing as r, steppedEase as i } from "@mkbabb/value.js/easing";
2
- import { parseTimingFunction as a } from "@mkbabb/value.js/css";
3
- //#region src/animation/compile/easing/easing-registry.ts
4
- var o = [
5
- "easeOutCubic",
6
- "easeInOutSine",
7
- "easeInOutCubic",
8
- "easeInOutQuad",
9
- "easeInOutExpo",
10
- "easeInOutCirc",
11
- "easeOutExpo",
12
- "smoothStep3",
13
- "easeInBounce"
14
- ], s = [
15
- ...Object.keys(t),
16
- "ease-in-bounce",
17
- ...o
18
- ].map((e) => {
19
- let t = n(e);
20
- if (!t.ok) throw Error(`value.js rejected its own easing ${JSON.stringify(e)}: ${t.error.code}`);
21
- return [e, t.value];
22
- }), c = new Map(s), l = (e) => {
23
- let t = e.flatMap(({ output: e, input: t }) => t.length === 2 ? [{
24
- output: e,
25
- input: t[0]
26
- }, {
27
- output: e,
28
- input: t[1]
29
- }] : [{
30
- output: e,
31
- input: t[0]
32
- }]);
33
- t[0].input ??= 0, t[t.length - 1].input ??= 1;
34
- let n = t[0].input;
35
- for (let e = 1; e < t.length; e++) {
36
- let r = t[e].input;
37
- r !== void 0 && (t[e].input = Math.max(n, r), n = t[e].input);
38
- }
39
- for (let e = 0; e < t.length - 1;) {
40
- let n = e + 1;
41
- for (; t[n].input === void 0;) n++;
42
- let r = t[e].input, i = t[n].input;
43
- for (let a = e + 1; a < n; a++) t[a].input = r + (i - r) * (a - e) / (n - e);
44
- e = n;
45
- }
46
- return t;
47
- }, u = (t) => {
48
- switch (t.kind) {
49
- case "keyword": {
50
- let e = n(t.name);
51
- if (e.ok) return e.value;
52
- throw TypeError(`Invalid timing function: ${e.error.code}.`);
53
- }
54
- case "cubic-bezier": {
55
- let n = e(t.x1, t.y1, t.x2, t.y2);
56
- if (n.ok) return n.value;
57
- throw TypeError(`Invalid cubic-bezier(): ${n.error.code}.`);
58
- }
59
- case "steps": {
60
- let e = i(t.count, t.position);
61
- if (e.ok) return e.value;
62
- throw TypeError(`Invalid steps(): ${e.error.code}.`);
63
- }
64
- case "linear-function": {
65
- let e = r(l(t.stops));
66
- if (e.ok) return e.value;
67
- throw TypeError(`Invalid linear(): ${e.error.code}.`);
68
- }
69
- }
70
- }, d = (e) => {
71
- if (typeof e != "string") return e;
72
- let t = a(e);
73
- if (t.ok) return u(t.value);
74
- let n = c.get(e);
75
- if (n !== void 0) return n;
76
- throw TypeError(`Unknown timing function "${e}".`);
77
- };
78
- //#endregion
79
- export { s as n, d as t };