@hyperframes/studio 0.6.3 → 0.6.4
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/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
6
6
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
7
7
|
<title>HyperFrames Studio</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DsnMQhJc.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-DMJCfYoN.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/studio",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"@phosphor-icons/react": "^2.1.10",
|
|
33
33
|
"codemirror": "^6.0.1",
|
|
34
34
|
"motion": "^12.38.0",
|
|
35
|
-
"@hyperframes/core": "0.6.
|
|
36
|
-
"@hyperframes/player": "0.6.
|
|
35
|
+
"@hyperframes/core": "0.6.4",
|
|
36
|
+
"@hyperframes/player": "0.6.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/react": "19",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"vite": "^6.4.2",
|
|
48
48
|
"vitest": "^3.2.4",
|
|
49
49
|
"zustand": "^5.0.0",
|
|
50
|
-
"@hyperframes/producer": "0.6.
|
|
50
|
+
"@hyperframes/producer": "0.6.4"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": "19",
|
|
@@ -103,13 +103,6 @@ export const LayersPanel = memo(function LayersPanel() {
|
|
|
103
103
|
}
|
|
104
104
|
}, [compositionLoading, collectLayers]);
|
|
105
105
|
|
|
106
|
-
useEffect(() => {
|
|
107
|
-
const ref = hoverSeekTimerRef;
|
|
108
|
-
return () => {
|
|
109
|
-
if (ref.current) clearTimeout(ref.current);
|
|
110
|
-
};
|
|
111
|
-
}, []);
|
|
112
|
-
|
|
113
106
|
const resolveSelection = useCallback(
|
|
114
107
|
(layer: DomEditLayerItem) =>
|
|
115
108
|
resolveDomEditSelection(layer.element, {
|
|
@@ -120,8 +113,6 @@ export const LayersPanel = memo(function LayersPanel() {
|
|
|
120
113
|
[activeCompPath, isMasterView],
|
|
121
114
|
);
|
|
122
115
|
|
|
123
|
-
const hoverSeekTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
124
|
-
|
|
125
116
|
const seekToLayer = useCallback(
|
|
126
117
|
(layer: DomEditLayerItem) => {
|
|
127
118
|
const selection = resolveSelection(layer);
|
|
@@ -169,17 +160,13 @@ export const LayersPanel = memo(function LayersPanel() {
|
|
|
169
160
|
const handleLayerHover = useCallback(
|
|
170
161
|
(layer: DomEditLayerItem | null) => {
|
|
171
162
|
if (!layer) {
|
|
172
|
-
if (hoverSeekTimerRef.current) clearTimeout(hoverSeekTimerRef.current);
|
|
173
163
|
updateDomEditHoverSelection(null);
|
|
174
164
|
return;
|
|
175
165
|
}
|
|
176
166
|
const selection = resolveSelection(layer);
|
|
177
167
|
updateDomEditHoverSelection(selection);
|
|
178
|
-
// Debounce hover seeks so brushing past items doesn't thrash the player
|
|
179
|
-
if (hoverSeekTimerRef.current) clearTimeout(hoverSeekTimerRef.current);
|
|
180
|
-
hoverSeekTimerRef.current = setTimeout(() => seekToLayer(layer), 300);
|
|
181
168
|
},
|
|
182
|
-
[resolveSelection, updateDomEditHoverSelection
|
|
169
|
+
[resolveSelection, updateDomEditHoverSelection],
|
|
183
170
|
);
|
|
184
171
|
|
|
185
172
|
const toggleCollapse = useCallback((key: string, e: React.MouseEvent) => {
|