@hyperframes/studio 0.9.5 → 0.9.7
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/dist/assets/hyperframes-player-CQLtM2zB.js +565 -0
- package/dist/assets/{index-BohL7wdo.js → index-CKnGNPHF.js} +1 -1
- package/dist/assets/{index-CTbhykVD.js → index-CdWK2GVp.js} +101 -101
- package/dist/{chunk-LBXOFI5I.js → chunk-NUS5R2HO.js} +2 -0
- package/dist/index.html +1 -1
- package/dist/index.js +1 -1
- package/dist/player.js +1 -1
- package/package.json +8 -8
- package/src/player/components/Player.test.ts +7 -0
- package/src/player/components/Player.tsx +3 -0
- package/dist/assets/hyperframes-player-Cum4k6V2.js +0 -478
|
@@ -1785,6 +1785,7 @@ function sceneSwapFor(iframe) {
|
|
|
1785
1785
|
// src/player/components/Player.tsx
|
|
1786
1786
|
import { forwardRef, useEffect as useEffect2, useRef, useState } from "react";
|
|
1787
1787
|
import { isLottieAnimationLoaded } from "@hyperframes/core/runtime/lottie-readiness";
|
|
1788
|
+
import { installAcceleratedCanvasTracker } from "@hyperframes/core/page-motion-blur";
|
|
1788
1789
|
|
|
1789
1790
|
// src/hooks/useMountEffect.ts
|
|
1790
1791
|
import { useEffect } from "react";
|
|
@@ -1819,6 +1820,7 @@ function loadPlayerModule() {
|
|
|
1819
1820
|
}
|
|
1820
1821
|
if (typeof window !== "undefined") void loadPlayerModule().catch(() => {
|
|
1821
1822
|
});
|
|
1823
|
+
if (typeof window !== "undefined") installAcceleratedCanvasTracker();
|
|
1822
1824
|
var MEDIA_HAVE_FUTURE_DATA = 3;
|
|
1823
1825
|
var MEDIA_NETWORK_NO_SOURCE = 3;
|
|
1824
1826
|
function isRecord3(value) {
|
package/dist/index.html
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
document.documentElement.dataset.theme = "paper";
|
|
15
15
|
}
|
|
16
16
|
</script>
|
|
17
|
-
<script type="module" crossorigin src="/assets/index-
|
|
17
|
+
<script type="module" crossorigin src="/assets/index-CdWK2GVp.js"></script>
|
|
18
18
|
<link rel="stylesheet" crossorigin href="/assets/index-RUPGNyct.css">
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
package/dist/index.js
CHANGED
package/dist/player.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/studio",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"dockview-react": "8.3.1",
|
|
61
61
|
"gsap": "^3.13.0",
|
|
62
62
|
"mediabunny": "^1.45.3",
|
|
63
|
-
"@hyperframes/
|
|
64
|
-
"@hyperframes/
|
|
65
|
-
"@hyperframes/
|
|
66
|
-
"@hyperframes/
|
|
67
|
-
"@hyperframes/
|
|
68
|
-
"@hyperframes/
|
|
63
|
+
"@hyperframes/core": "0.9.7",
|
|
64
|
+
"@hyperframes/parsers": "0.9.7",
|
|
65
|
+
"@hyperframes/player": "0.9.7",
|
|
66
|
+
"@hyperframes/shader-transitions": "0.9.7",
|
|
67
|
+
"@hyperframes/studio-server": "0.9.7",
|
|
68
|
+
"@hyperframes/sdk": "0.9.7"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@tailwindcss/vite": "^4.3.3",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"vite": "^6.4.2",
|
|
83
83
|
"vitest": "^4.1.11",
|
|
84
84
|
"zustand": "^5.0.0",
|
|
85
|
-
"@hyperframes/producer": "0.9.
|
|
85
|
+
"@hyperframes/producer": "0.9.7"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"react": "19",
|
|
@@ -526,3 +526,10 @@ describe("composition loading overlay", () => {
|
|
|
526
526
|
iframe.remove();
|
|
527
527
|
});
|
|
528
528
|
});
|
|
529
|
+
|
|
530
|
+
describe("accelerated canvases", () => {
|
|
531
|
+
it("are tracked in Studio's window, whose prototype a preview canvas gets when Studio reaches it first", () => {
|
|
532
|
+
expect("__hfAccelTracked" in HTMLCanvasElement.prototype.getContext).toBe(true);
|
|
533
|
+
expect(Reflect.get(window, "__hfAcceleratedCanvases")).toBeInstanceOf(WeakSet);
|
|
534
|
+
});
|
|
535
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { buildProjectApiPath } from "../../utils/projectRouting";
|
|
2
2
|
import { forwardRef, useEffect, useRef, useState } from "react";
|
|
3
3
|
import { isLottieAnimationLoaded } from "@hyperframes/core/runtime/lottie-readiness";
|
|
4
|
+
import { installAcceleratedCanvasTracker } from "@hyperframes/core/page-motion-blur";
|
|
4
5
|
import { useMountEffect } from "../../hooks/useMountEffect";
|
|
5
6
|
import { applyPreviewVariablesToUrl } from "../../hooks/previewVariablesStore";
|
|
6
7
|
import { HyperframesLoader } from "../../components/ui";
|
|
@@ -25,6 +26,8 @@ export function loadPlayerModule(): Promise<unknown> {
|
|
|
25
26
|
|
|
26
27
|
if (typeof window !== "undefined") void loadPlayerModule().catch(() => {});
|
|
27
28
|
|
|
29
|
+
if (typeof window !== "undefined") installAcceleratedCanvasTracker();
|
|
30
|
+
|
|
28
31
|
interface PlayerProps {
|
|
29
32
|
projectId?: string;
|
|
30
33
|
directUrl?: string;
|