@hyperframes/studio 0.8.78 → 0.8.79
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-BdnQGwG5.js → hyperframes-player-Bx_Kw4Ey.js} +3 -3
- package/dist/assets/{index-C_n__Uh3.js → index-CJP92F4-.js} +1 -1
- package/dist/assets/{index-CX_4MYbk.js → index-DBKySIo7.js} +187 -187
- package/dist/assets/{index-DdpuHaGN.js → index-ORZXYB0k.js} +1 -1
- package/dist/{chunk-5VANA2TG.js → chunk-I7XNAIOF.js} +2 -1
- package/dist/{domEditingLayers-IGPLTI5E.js → domEditingLayers-MHFDKAQ7.js} +2 -2
- package/dist/index.d.ts +22 -15
- package/dist/index.html +1 -1
- package/dist/index.js +452 -256
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/App.tsx +1 -0
- package/src/components/nle/useTimelineEditCallbacks.ts +8 -2
- package/src/hooks/timelineAudioGroupVolume.ts +21 -11
- package/src/hooks/timelineEditPermission.ts +47 -13
- package/src/hooks/timelineElementFxAttribute.ts +19 -13
- package/src/hooks/useClipboard.source.test.ts +340 -0
- package/src/hooks/useClipboard.ts +141 -62
- package/src/hooks/useElementPicker.test.ts +172 -0
- package/src/hooks/useElementPicker.ts +141 -93
- package/src/hooks/useFrameCapture.test.tsx +67 -0
- package/src/hooks/useFrameCapture.ts +18 -9
- package/src/hooks/usePersistentEditHistory.test.ts +2 -2
- package/src/hooks/usePersistentEditHistory.ts +2 -2
- package/src/hooks/useTimelineEditing.test.tsx +59 -0
- package/src/hooks/useTimelineEditing.ts +42 -33
- package/src/index.ts +1 -0
- package/src/player/components/Player.test.ts +5 -0
- package/src/player/components/Player.tsx +1 -0
- package/src/player/components/VideoThumbnail.test.tsx +13 -0
- package/src/player/components/VideoThumbnail.tsx +1 -1
- package/src/player/components/timelineCallbacks.ts +3 -2
- package/src/player/hooks/useTimelinePlayer.hiddenPause.test.ts +75 -0
- package/src/player/hooks/useTimelinePlayer.play.test.ts +36 -0
- package/src/player/hooks/useTimelinePlayer.ts +25 -28
- package/src/player/hooks/useTimelineSyncCallbacks.ts +12 -4
- package/src/player/lib/thumbnailVideoDecoder.test.ts +102 -6
- package/src/player/lib/thumbnailVideoDecoder.ts +20 -5
- package/src/utils/authoredSource.ts +92 -0
- package/src/utils/gsapSoftReload.test.ts +29 -0
- package/src/utils/gsapSoftReload.ts +3 -7
- /package/dist/{chunk-5VANA2TG.js.map → chunk-I7XNAIOF.js.map} +0 -0
- /package/dist/{domEditingLayers-IGPLTI5E.js.map → domEditingLayers-MHFDKAQ7.js.map} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { COLOR_GRADING_SOURCE_HIDDEN_ATTR } from "@hyperframes/core/color-grading";
|
|
2
|
+
import { findAuthoredElement, parseSavedSource } from "./authoredSource";
|
|
2
3
|
import { applyAuthoredInlineOpacity, readStampedAuthoredOpacity } from "./authoredOpacity";
|
|
3
4
|
|
|
4
5
|
type IframeWindow = Window & {
|
|
@@ -301,17 +302,12 @@ export function applySoftReload(
|
|
|
301
302
|
const findAuthoredSource = (el: HTMLElement): Element | null => {
|
|
302
303
|
if (authoredDoc === undefined) {
|
|
303
304
|
try {
|
|
304
|
-
authoredDoc = authoredHtml
|
|
305
|
-
? new DOMParser().parseFromString(authoredHtml, "text/html")
|
|
306
|
-
: null;
|
|
305
|
+
authoredDoc = authoredHtml ? parseSavedSource(authoredHtml) : null;
|
|
307
306
|
} catch {
|
|
308
307
|
authoredDoc = null;
|
|
309
308
|
}
|
|
310
309
|
}
|
|
311
|
-
|
|
312
|
-
const hfId = el.getAttribute("data-hf-id");
|
|
313
|
-
if (hfId) return authoredDoc.querySelector(`[data-hf-id="${hfId}"]`);
|
|
314
|
-
return el.id ? authoredDoc.getElementById(el.id) : null;
|
|
310
|
+
return authoredDoc ? findAuthoredElement(authoredDoc, el) : null;
|
|
315
311
|
};
|
|
316
312
|
const readAuthoredOpacity = (el: HTMLElement): string | null => {
|
|
317
313
|
const source = findAuthoredSource(el);
|
|
File without changes
|
|
File without changes
|