@hyperframes/studio 0.8.202 → 0.8.204
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-DnrkDR-_.js → hyperframes-player-CttA4PW7.js} +1 -1
- package/dist/assets/{index-BhFxhBMA.js → index-DmST2bTJ.js} +120 -120
- package/dist/assets/{index-WFQeAouT.js → index-DpxSurnJ.js} +1 -1
- package/dist/{chunk-J6T4KD7Y.js → chunk-2YCKGJFD.js} +98 -0
- package/dist/{chunk-HZDCMUG4.js → chunk-Z5NKM57J.js} +2 -2
- package/dist/{domEditingLayers-SMVA3FEW.js → domEditingLayers-WMDSHU5P.js} +1 -1
- package/dist/index.d.ts +60 -2
- package/dist/index.html +1 -1
- package/dist/index.js +431 -380
- package/dist/player.js +1 -1
- package/package.json +8 -8
- package/src/components/editor/domEditingLayers.test.ts +38 -0
- package/src/components/editor/domEditingLayers.ts +2 -2
- package/src/index.ts +7 -0
- package/src/player/hooks/previewMessageRouter.test.ts +82 -0
- package/src/player/hooks/previewMessageRouter.ts +32 -1
- package/src/player/hooks/usePreviewQualityForwarding.test.tsx +63 -0
- package/src/player/hooks/usePreviewQualityForwarding.ts +24 -0
- package/src/player/hooks/useTimelinePlayer.ts +4 -1
- package/src/player/store/playerStore.ts +3 -2
- package/src/player/store/previewQualitySlice.test.ts +72 -0
- package/src/player/store/previewQualitySlice.ts +156 -0
- package/src/utils/studioUiPreferences.test.ts +9 -0
- package/src/utils/studioUiPreferences.ts +5 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isPreviewQuality, type PreviewQuality } from "@hyperframes/core/preview-quality";
|
|
1
2
|
import type { SerializedDockview } from "dockview-react";
|
|
2
3
|
import { parseDockLayout } from "../components/dock/dockLayoutSchema";
|
|
3
4
|
|
|
@@ -7,6 +8,7 @@ export type StudioTheme = "light" | "dark";
|
|
|
7
8
|
export interface StudioUiPreferences {
|
|
8
9
|
timelineVisible?: boolean;
|
|
9
10
|
playbackRate?: number;
|
|
11
|
+
previewQuality?: PreviewQuality;
|
|
10
12
|
audioMuted?: boolean;
|
|
11
13
|
audioVolume?: number;
|
|
12
14
|
thumbnailMode?: "adaptive" | "hidden";
|
|
@@ -84,6 +86,9 @@ function readStorage(storage: Storage | null, key: string): StudioUiPreferences
|
|
|
84
86
|
if (typeof parsed.playbackRate === "number" && Number.isFinite(parsed.playbackRate)) {
|
|
85
87
|
preferences.playbackRate = parsed.playbackRate;
|
|
86
88
|
}
|
|
89
|
+
if (isPreviewQuality(parsed.previewQuality)) {
|
|
90
|
+
preferences.previewQuality = parsed.previewQuality;
|
|
91
|
+
}
|
|
87
92
|
if (typeof parsed.audioMuted === "boolean") {
|
|
88
93
|
preferences.audioMuted = parsed.audioMuted;
|
|
89
94
|
}
|