@hyperframes/studio 0.9.6 → 0.9.8

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.
@@ -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-DHPJjAUV.js"></script>
17
+ <script type="module" crossorigin src="/assets/index-CaOrmH_8.js"></script>
18
18
  <link rel="stylesheet" crossorigin href="/assets/index-RUPGNyct.css">
19
19
  </head>
20
20
  <body>
package/dist/index.js CHANGED
@@ -74,7 +74,7 @@ import {
74
74
  whileScriptWrites,
75
75
  writeStudioUiPreferences,
76
76
  zoomToSelectedClips
77
- } from "./chunk-LBXOFI5I.js";
77
+ } from "./chunk-NUS5R2HO.js";
78
78
  import {
79
79
  Button,
80
80
  ContextMenu,
package/dist/player.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Player
3
- } from "./chunk-LBXOFI5I.js";
3
+ } from "./chunk-NUS5R2HO.js";
4
4
  import "./chunk-7HZGKFFU.js";
5
5
  import "./chunk-OGIOFEC7.js";
6
6
  import "./chunk-MLKGABMK.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/studio",
3
- "version": "0.9.6",
3
+ "version": "0.9.8",
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/core": "0.9.6",
64
- "@hyperframes/parsers": "0.9.6",
65
- "@hyperframes/shader-transitions": "0.9.6",
66
- "@hyperframes/studio-server": "0.9.6",
67
- "@hyperframes/player": "0.9.6",
68
- "@hyperframes/sdk": "0.9.6"
63
+ "@hyperframes/core": "0.9.8",
64
+ "@hyperframes/parsers": "0.9.8",
65
+ "@hyperframes/sdk": "0.9.8",
66
+ "@hyperframes/player": "0.9.8",
67
+ "@hyperframes/studio-server": "0.9.8",
68
+ "@hyperframes/shader-transitions": "0.9.8"
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.6"
85
+ "@hyperframes/producer": "0.9.8"
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;