@hyperframes/studio 0.8.208 → 0.8.210
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-5dRdMVOq.js → hyperframes-player-DUpxahTX.js} +1 -1
- package/dist/assets/{index-ZqyQ91pm.js → index-B4dcZZAm.js} +1 -1
- package/dist/assets/{index-Bu3mJUU2.js → index-CtrcjpbM.js} +5 -5
- package/dist/assets/{index-CYbvOVp-.css → index-RUPGNyct.css} +1 -1
- package/dist/{chunk-HPIJDMWG.js → chunk-7SREYKIC.js} +0 -5
- package/dist/index.html +2 -2
- package/dist/index.js +2 -2
- package/dist/player.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +8 -8
- package/src/components/nle/NLEPreview.test.ts +9 -0
- package/src/components/nle/NLEPreview.tsx +1 -1
- package/src/player/components/Player.test.ts +10 -0
- package/src/player/components/Player.tsx +0 -12
- package/src/player/components/clipPeakMap.test.ts +13 -0
- package/src/styles/hex-baseline.json +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/studio",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.210",
|
|
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.
|
|
64
|
-
"@hyperframes/parsers": "0.8.
|
|
65
|
-
"@hyperframes/
|
|
66
|
-
"@hyperframes/shader-transitions": "0.8.
|
|
67
|
-
"@hyperframes/
|
|
68
|
-
"@hyperframes/studio-server": "0.8.
|
|
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"
|
|
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.210"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"react": "19",
|
|
@@ -215,6 +215,15 @@ describe("NLEPreview", () => {
|
|
|
215
215
|
globalThis.ResizeObserver = originalResizeObserver;
|
|
216
216
|
});
|
|
217
217
|
|
|
218
|
+
it("draws the canvas boundary on the preview stage", () => {
|
|
219
|
+
const view = renderPreview();
|
|
220
|
+
|
|
221
|
+
expect(view.stage.className).toContain(
|
|
222
|
+
"shadow-[0_0_0_1px_rgba(255,255,255,0.08),0_4px_32px_rgba(0,0,0,0.7)]",
|
|
223
|
+
);
|
|
224
|
+
view.cleanup();
|
|
225
|
+
});
|
|
226
|
+
|
|
218
227
|
it("pans the preview with middle mouse drag", () => {
|
|
219
228
|
const view = renderPreview();
|
|
220
229
|
const target = document.createElement("div");
|
|
@@ -506,7 +506,7 @@ export const NLEPreview = memo(function NLEPreview({
|
|
|
506
506
|
>
|
|
507
507
|
<div
|
|
508
508
|
ref={stageRef}
|
|
509
|
-
className="relative shrink-0 pointer-events-auto"
|
|
509
|
+
className="relative shrink-0 pointer-events-auto shadow-[0_0_0_1px_rgba(255,255,255,0.08),0_4px_32px_rgba(0,0,0,0.7)]"
|
|
510
510
|
style={{
|
|
511
511
|
width: `${stageSize.width}px`,
|
|
512
512
|
height: `${stageSize.height}px`,
|
|
@@ -24,6 +24,7 @@ class TestHyperframesPlayer extends HTMLElement {
|
|
|
24
24
|
|
|
25
25
|
constructor() {
|
|
26
26
|
super();
|
|
27
|
+
this.attachShadow({ mode: "open" });
|
|
27
28
|
|
|
28
29
|
const addIframeListener = this.iframeElement.addEventListener.bind(this.iframeElement);
|
|
29
30
|
this.iframeElement.addEventListener = ((type, listener, options) => {
|
|
@@ -438,6 +439,15 @@ describe("ready to show", () => {
|
|
|
438
439
|
});
|
|
439
440
|
});
|
|
440
441
|
|
|
442
|
+
describe("preview canvas chrome", () => {
|
|
443
|
+
it("does not paint Studio chrome on the scaled composition iframe", async () => {
|
|
444
|
+
const { player } = await mountPlayer();
|
|
445
|
+
const injectedStyles = Array.from(player.shadowRoot?.querySelectorAll("style") ?? []);
|
|
446
|
+
|
|
447
|
+
expect(injectedStyles.some((style) => style.textContent?.includes("box-shadow"))).toBe(false);
|
|
448
|
+
});
|
|
449
|
+
});
|
|
450
|
+
|
|
441
451
|
describe("composition loading overlay", () => {
|
|
442
452
|
it("shows while the composition is loading", () => {
|
|
443
453
|
expect(shouldShowCompositionLoadingOverlay(true)).toBe(true);
|
|
@@ -346,18 +346,6 @@ export const Player = forwardRef<HTMLIFrameElement, PlayerProps>(
|
|
|
346
346
|
player.setAttribute("src", src);
|
|
347
347
|
container.appendChild(player);
|
|
348
348
|
|
|
349
|
-
// Inject pasteboard shadow: let the shadow around the canvas bleed
|
|
350
|
-
// into the surrounding pasteboard area (overflow: visible on the container)
|
|
351
|
-
// and add a subtle outline + drop-shadow so the canvas boundary reads
|
|
352
|
-
// against the gray pasteboard, consistent with professional editors.
|
|
353
|
-
if (player.shadowRoot) {
|
|
354
|
-
const pasteboardStyle = document.createElement("style");
|
|
355
|
-
pasteboardStyle.textContent =
|
|
356
|
-
".hfp-container{overflow:visible}" +
|
|
357
|
-
".hfp-iframe{box-shadow:0 0 0 1px rgba(255,255,255,0.08),0 4px 32px rgba(0,0,0,.7)}";
|
|
358
|
-
player.shadowRoot.appendChild(pasteboardStyle);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
349
|
enableInteractiveIframe(player);
|
|
362
350
|
|
|
363
351
|
cleanup = () => {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @vitest-environment jsdom
|
|
2
|
+
import { expect, it } from "vitest";
|
|
3
|
+
import { clipPeaksUrl } from "./clipPeakMap";
|
|
4
|
+
import { resolveMediaPreviewUrl } from "./thumbnailUtils";
|
|
5
|
+
|
|
6
|
+
it("a root-path clip, read back from preview as its project-relative src, keeps its peaks and preview URLs", () => {
|
|
7
|
+
// studio-server's preview serves `src="/assets/vo-1.mp3"` as `src="assets/vo-1.mp3"`.
|
|
8
|
+
expect(clipPeaksUrl("assets/vo-1.mp3", "demo")).toBe("/api/projects/demo/peaks/assets/vo-1.mp3");
|
|
9
|
+
expect(clipPeaksUrl("assets/vo-1.mp3", "demo")).toBe(clipPeaksUrl("/assets/vo-1.mp3", "demo"));
|
|
10
|
+
expect(resolveMediaPreviewUrl("assets/vo-1.mp3", "demo")).toBe(
|
|
11
|
+
"/api/projects/demo/preview/assets/vo-1.mp3",
|
|
12
|
+
);
|
|
13
|
+
});
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"packages/studio/src/player/components/AudioWaveform.tsx": 2,
|
|
43
43
|
"packages/studio/src/player/components/BeatStrip.tsx": 6,
|
|
44
44
|
"packages/studio/src/player/components/CompositionThumbnail.tsx": 2,
|
|
45
|
-
"packages/studio/src/player/components/Player.tsx": 2,
|
|
46
45
|
"packages/studio/src/player/components/PlayerControls.tsx": 1,
|
|
47
46
|
"packages/studio/src/player/components/SpeedMenu.tsx": 2,
|
|
48
47
|
"packages/studio/src/styles/components.css": 48,
|