@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/assets/{hyperframes-player-DUpxahTX.js → hyperframes-player-DHfuW7Lt.js} +1 -1
- package/dist/assets/{index-CtrcjpbM.js → index-CWgIsKzV.js} +123 -123
- package/dist/assets/{index-B4dcZZAm.js → index-CkjUY33q.js} +1 -1
- package/dist/{chunk-7SREYKIC.js → chunk-HD6NXWGI.js} +6 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.html +1 -1
- package/dist/index.js +488 -240
- package/dist/player.js +1 -1
- package/package.json +8 -8
- package/src/components/DesktopGuideCard.tsx +1 -1
- package/src/hooks/usePersistentEditHistory.test.ts +7 -3
- package/src/player/components/VideoThumbnail.tsx +6 -0
- package/src/player/hooks/previewMessageRouter.test.ts +4 -0
- package/src/player/lib/mediaFetch.test.ts +572 -0
- package/src/player/lib/mediaFetch.ts +139 -26
- package/src/player/lib/thumbnailFrameCache.ts +69 -0
- package/src/player/lib/thumbnailPlaybackHold.test.ts +86 -0
- package/src/player/lib/thumbnailPlaybackHold.ts +15 -0
- package/src/player/lib/thumbnailScheduler.test.ts +49 -0
- package/src/player/lib/thumbnailScheduler.ts +22 -6
- package/src/player/lib/thumbnailSourcePool.ts +163 -0
- package/src/player/lib/thumbnailVideoDecoder.test.ts +492 -8
- package/src/player/lib/thumbnailVideoDecoder.ts +67 -75
- package/src/player/lib/timelineViewportBudgets.test.ts +1 -0
- package/src/player/lib/timelineViewportBudgets.ts +4 -0
- package/src/player/store/previewQualitySlice.ts +11 -0
package/dist/player.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/studio",
|
|
3
|
-
"version": "0.8.
|
|
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/
|
|
64
|
-
"@hyperframes/
|
|
65
|
-
"@hyperframes/player": "0.8.
|
|
66
|
-
"@hyperframes/
|
|
67
|
-
"@hyperframes/
|
|
68
|
-
"@hyperframes/studio-server": "0.8.
|
|
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.
|
|
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.
|
|
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
|
|
321
|
-
|
|
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
|
|
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 });
|