@hyperframes/studio 0.8.210 → 0.8.212

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/player.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Player
3
- } from "./chunk-7SREYKIC.js";
3
+ } from "./chunk-HD6NXWGI.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.8.210",
3
+ "version": "0.8.212",
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.8.210",
64
- "@hyperframes/parsers": "0.8.210",
65
- "@hyperframes/player": "0.8.210",
66
- "@hyperframes/shader-transitions": "0.8.210",
67
- "@hyperframes/sdk": "0.8.210",
68
- "@hyperframes/studio-server": "0.8.210"
63
+ "@hyperframes/parsers": "0.8.212",
64
+ "@hyperframes/core": "0.8.212",
65
+ "@hyperframes/player": "0.8.212",
66
+ "@hyperframes/sdk": "0.8.212",
67
+ "@hyperframes/shader-transitions": "0.8.212",
68
+ "@hyperframes/studio-server": "0.8.212"
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.8.210"
85
+ "@hyperframes/producer": "0.8.212"
86
86
  },
87
87
  "peerDependencies": {
88
88
  "react": "19",
@@ -168,7 +168,7 @@ function DownloadStep({ progress, onDownload }: CardProps) {
168
168
  if (!progress.downloaded && !installed)
169
169
  return (
170
170
  <Step n={1} state={NOW} title={`Download HyperFrames for ${where}`}>
171
- <p className={NOTE}>Free. Opens hyperframes.dev in a new tab.</p>
171
+ <p className={NOTE}>Free. Opens hyperframes.studio in a new tab.</p>
172
172
  <Button
173
173
  variant="primary"
174
174
  className="mt-2"
@@ -317,8 +317,12 @@ it("refuses a second press whose edit is undone once an edit was made after the
317
317
  return run;
318
318
  };
319
319
  const press = () => hook().undo({ readFile, claimedAfter: atKey, serialize });
320
- const presses = Promise.all([press(), press()]);
321
- await vi.waitFor(() => expect(file()).toBe("B"));
320
+ const firstPress = press();
321
+ const secondPress = press();
322
+ // The first press must be over, not only its file written: the undo's closing sweep would take card.html
323
+ // into the undo, and the claim below would then hold nothing.
324
+ const first = await act(() => firstPress);
325
+ expect(file()).toBe("B");
322
326
  writeFileSync(join(dir, "card.html"), "Y");
323
327
  await act(() =>
324
328
  hook().recordEdit({
@@ -328,7 +332,7 @@ it("refuses a second press whose edit is undone once an edit was made after the
328
332
  );
329
333
 
330
334
  open();
331
- const [first, second] = await act(() => presses);
335
+ const second = await act(() => secondPress);
332
336
 
333
337
  expect(first).toMatchObject({ ok: true, label: "Undid: Moved Card" });
334
338
  expect(second).toMatchObject({ ok: false, reason: "content-mismatch" });
@@ -3,10 +3,13 @@ import { useThumbnailLease } from "../../hooks/useThumbnailLease";
3
3
  import { useThumbnailStripSize } from "../../hooks/useThumbnailStripSize";
4
4
  import {
5
5
  createThumbnailKey,
6
+ thumbnailScheduler,
6
7
  type ThumbnailPriority,
7
8
  type ThumbnailSnapshot,
8
9
  } from "../lib/thumbnailScheduler";
10
+ import { bindThumbnailPlaybackHold } from "../lib/thumbnailPlaybackHold";
9
11
  import { decodeVideoThumbnail } from "../lib/thumbnailVideoDecoder";
12
+ import { usePlayerStore } from "../store/playerStore";
10
13
  import { ThumbnailTiles } from "./ThumbnailTiles";
11
14
  import {
12
15
  computeThumbnailStrip,
@@ -15,6 +18,9 @@ import {
15
18
  } from "./thumbnailUtils";
16
19
  import { useValueAtRest } from "./timelineMotion";
17
20
 
21
+ const unbindPlaybackHold = bindThumbnailPlaybackHold(usePlayerStore, thumbnailScheduler);
22
+ import.meta.hot?.dispose(unbindPlaybackHold);
23
+
18
24
  interface VideoThumbnailProps {
19
25
  videoSrc: string;
20
26
  label: string;
@@ -95,6 +95,10 @@ describe("preview quality messages", () => {
95
95
  choppy: true,
96
96
  fps: 18,
97
97
  worstFrameMs: 90,
98
+ skippedShare: 0.1,
99
+ waitingShare: 0.4,
100
+ gapP50Ms: 17,
101
+ gapP95Ms: 66,
98
102
  mode: "play",
99
103
  };
100
104
  routeMessage({ source: "hf-preview", type: "preview-health", health });