hyperframes 0.8.144 → 0.8.145
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/README.md +3 -2
- package/dist/{add-CWRTVGDB.js → add-B6OUH46W.js} +11 -11
- package/dist/{animatedGifPrep-JTOHIWI4.js → animatedGifPrep-MIWRDJIO.js} +5 -5
- package/dist/{asset-KU2Z4UFM.js → asset-XJ2B2PU3.js} +2 -2
- package/dist/{assetCataloger-3CS2P7PA.js → assetCataloger-A5ZLSCMZ.js} +2 -2
- package/dist/{auth-IDSOIQWG.js → auth-5HOVCZMV.js} +1 -1
- package/dist/{autoUpdate-373B4BA2.js → autoUpdate-WVNL5K3D.js} +2 -2
- package/dist/{backgroundChecks-53Q3NAMG.js → backgroundChecks-IGF54SFH.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-UKZA6BME.js → batchRender-T6JEGCQV.js} +3 -3
- package/dist/{beats-N5JGEOFR.js → beats-37T6Y6QP.js} +10 -10
- package/dist/{benchmark-CUN3LN4V.js → benchmark-ZVVLOWPP.js} +8 -8
- package/dist/{browser-NCZT5AP6.js → browser-4SSJOLH4.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-FWC7PE2D.js → bundleWithLocalizedFonts-XWK423QP.js} +2 -2
- package/dist/{capture-YLS32UHT.js → capture-2SF7YP57.js} +2 -2
- package/dist/{capture-QBLG3VJR.js → capture-KZXOPBMO.js} +8 -8
- package/dist/{catalog-HIWNAFHW.js → catalog-NLD4A2C6.js} +11 -11
- package/dist/{catch-up-HGS7KIAC.js → catch-up-4BSRN6IR.js} +4 -4
- package/dist/{check-FH6UYYLO.js → check-IA44QQWM.js} +28 -28
- package/dist/{checkBrowser-RNWNOMCZ.js → checkBrowser-VM35KZMW.js} +27 -27
- package/dist/{chunk-2DA2BBNY.js → chunk-3IBMBNYY.js} +1 -1
- package/dist/{chunk-F2SMS24Q.js → chunk-3KU3PFDW.js} +50 -80
- package/dist/{chunk-5WADG7PR.js → chunk-4ORLNTET.js} +1 -1
- package/dist/{chunk-NV4RXIQ7.js → chunk-4QWD6JYN.js} +2 -2
- package/dist/{chunk-A53CBD24.js → chunk-5NRXZGKK.js} +9 -9
- package/dist/{chunk-YJXHMIZA.js → chunk-5WVW7P23.js} +1 -1
- package/dist/{chunk-LFX2HEYP.js → chunk-6LGNTUZN.js} +7 -7
- package/dist/{chunk-7SDCIWHQ.js → chunk-ADF3X6GM.js} +2 -2
- package/dist/{chunk-WJB7WI4J.js → chunk-AUWHD7RA.js} +1 -1
- package/dist/{chunk-4OC7MQNB.js → chunk-BFACGEII.js} +2 -2
- package/dist/{chunk-AUBOF2PN.js → chunk-BIAC7IJT.js} +1 -1
- package/dist/{chunk-JEHFZQYT.js → chunk-CFUXNBWH.js} +1 -1
- package/dist/{chunk-Y6UPYWJS.js → chunk-DWUKJQTO.js} +2 -2
- package/dist/{chunk-NOPBBSLA.js → chunk-EPE2HRJK.js} +9 -9
- package/dist/{chunk-MXNDKDFT.js → chunk-FBCULCAL.js} +1 -1
- package/dist/{chunk-OUSLVRO4.js → chunk-FDT6KQV4.js} +75 -5
- package/dist/{chunk-GZM2EFOE.js → chunk-FXJJCPPB.js} +1 -1
- package/dist/{chunk-VYSUZEJG.js → chunk-GBGJ7A3D.js} +3 -3
- package/dist/{chunk-L5TUCXWR.js → chunk-GEMJYBRU.js} +2 -2
- package/dist/{chunk-4LAR447G.js → chunk-GMAJB2P6.js} +1 -1
- package/dist/{chunk-OIDN7G42.js → chunk-GRY3PN3K.js} +2 -2
- package/dist/{chunk-XGFHYAYN.js → chunk-GXJEGZL2.js} +23 -17
- package/dist/{chunk-GEWKFRFI.js → chunk-HB7FJOY4.js} +1 -1
- package/dist/{chunk-RG3QWWIE.js → chunk-ICKDMTLA.js} +1 -1
- package/dist/{chunk-EX6C672Y.js → chunk-IHTRYDFN.js} +1 -1
- package/dist/{chunk-ZOA2SC4P.js → chunk-KIFHYXPB.js} +2 -2
- package/dist/{chunk-I5KY7EZP.js → chunk-LAFJSYDL.js} +1 -1
- package/dist/{chunk-5HJ343GH.js → chunk-OB5MJR4W.js} +1 -1
- package/dist/{chunk-3XTEXWNN.js → chunk-OTHDVXOJ.js} +1 -1
- package/dist/{chunk-P6WH6QTV.js → chunk-PLR7Z6TC.js} +1 -1
- package/dist/{chunk-RI53TS2Y.js → chunk-QLSM7K5S.js} +2 -2
- package/dist/{chunk-7RAYSCYT.js → chunk-R42WWQVB.js} +1 -1
- package/dist/{chunk-SLCFKB3Y.js → chunk-U5QY7KTN.js} +5 -5
- package/dist/{chunk-5VMR4WBS.js → chunk-UXO2L7HJ.js} +98 -40
- package/dist/{chunk-LC3RQURJ.js → chunk-VHFEMFYL.js} +2 -2
- package/dist/{chunk-3VYNNWVA.js → chunk-VRW6EBHV.js} +1 -1
- package/dist/{chunk-KFKZ3ISO.js → chunk-XBX4QJP7.js} +1 -1
- package/dist/{chunk-54QISXOC.js → chunk-XIHCMVMG.js} +2 -2
- package/dist/{chunk-XU5GGV6R.js → chunk-ZF7SXQJ7.js} +1 -1
- package/dist/{chunk-RVFEDAUV.js → chunk-ZIYZ77MR.js} +3 -3
- package/dist/{chunk-YUAXFWSQ.js → chunk-ZSVUAVMT.js} +2 -2
- package/dist/{clean-KPX27IKJ.js → clean-RDKJB5FK.js} +11 -11
- package/dist/cli.js +52 -52
- package/dist/{cloud-P7DAOISN.js → cloud-QVPVVNCW.js} +4 -4
- package/dist/{cloudrun-XM56TBOH.js → cloudrun-3RE2UCQG.js} +3 -3
- package/dist/{compare-F6YAFZZM.js → compare-LEDOY7MO.js} +22 -22
- package/dist/{compiler-JZ4GNFMG.js → compiler-F54OZZPM.js} +6 -2
- package/dist/{component-3CFOGIQA.js → component-N42M67WY.js} +3 -3
- package/dist/{compositions-CPCMWF24.js → compositions-VB2J2LZI.js} +9 -9
- package/dist/{delete-GYVKOKB6.js → delete-Q6RWMJ4Z.js} +2 -2
- package/dist/{dist-YPWQDWJ4.js → dist-Q4BI5A73.js} +2 -2
- package/dist/{doctor-GWI3B6JT.js → doctor-JMMUHDRV.js} +7 -7
- package/dist/{events-V2QFN4YM.js → events-6ZBSIBE5.js} +2 -2
- package/dist/{events-BRRUDPPT.js → events-RGUAHIBW.js} +3 -3
- package/dist/{feedback-CXMD7FWL.js → feedback-FIID6MZW.js} +6 -6
- package/dist/{figma-YABDWD66.js → figma-BL3JJC36.js} +3 -3
- package/dist/fontLocalizeCli.js +7 -7
- package/dist/{get-L2SOQKHX.js → get-P46GS7S6.js} +2 -2
- package/dist/{gpuPolicy-NBJNWHYS.js → gpuPolicy-AQ2BPLBK.js} +5 -5
- package/dist/{grade-compare-STXQPKYQ.js → grade-compare-GDCWU7ZZ.js} +22 -22
- package/dist/{help-4H6BSFLB.js → help-HJR3RWFG.js} +1 -1
- package/dist/{history-4IQOLTHJ.js → history-GGO5AWJB.js} +5 -5
- package/dist/hyperframe-runtime.js +53 -53
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +53 -53
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-2CZOTNBC.js → info-3GFWUBJC.js} +7 -7
- package/dist/{init-6BXK42VS.js → init-36OPU2ZG.js} +20 -20
- package/dist/{inspect-VKU47TBH.js → inspect-F2HEL5ON.js} +23 -23
- package/dist/{installer-T2BSSUDY.js → installer-NI6P6GC4.js} +4 -4
- package/dist/{keyframes-IEYVHRPI.js → keyframes-7OY3LMAZ.js} +6 -6
- package/dist/{lambda-TIKG25CK.js → lambda-6GJIWNJ3.js} +4 -4
- package/dist/{layout-XOI4PT7A.js → layout-FTMLNL5A.js} +23 -23
- package/dist/{lint-DWCMVIX5.js → lint-U6POHUON.js} +6 -6
- package/dist/{list-7GXKG5QM.js → list-IP5KI5Q2.js} +2 -2
- package/dist/{login-BQ5L2UHX.js → login-4VWTVPHG.js} +4 -4
- package/dist/{media-treatment-IFB7OSZ3.js → media-treatment-XGV44AGV.js} +12 -9
- package/dist/{models-TY4PJ545.js → models-UCXB6UR5.js} +8 -8
- package/dist/{motionShot-WXMFHICW.js → motionShot-WPVNBXKA.js} +11 -11
- package/dist/{normalize-audio-RFD776HQ.js → normalize-audio-TYJ3UEHO.js} +4 -4
- package/dist/{open-7IXXGO2E.js → open-HENOLVB2.js} +4 -4
- package/dist/{parakeetRunner-IHLYYMTZ.js → parakeetRunner-VFQ6WFTD.js} +7 -7
- package/dist/{pipeline-TXKPLL2U.js → pipeline-6WPSC3H4.js} +5 -5
- package/dist/{play-J2KP64UK.js → play-OI53WNUM.js} +16 -16
- package/dist/{present-MHHNRVRA.js → present-NGMEQ4NO.js} +12 -12
- package/dist/{preview-CONUOFFQ.js → preview-VT2HWRWZ.js} +15 -15
- package/dist/{producer-ZI46K7HH.js → producer-7TYEAUF7.js} +1 -1
- package/dist/{projectConfig-FGGVG5MV.js → projectConfig-B2AF5DXY.js} +6 -6
- package/dist/{publication-TXFBMW6B.js → publication-2PANQVC6.js} +2 -2
- package/dist/{publish-YZSPBFRD.js → publish-O5OL42BG.js} +7 -7
- package/dist/{remove-background-4ATVLHLG.js → remove-background-T2JM6UVP.js} +6 -6
- package/dist/{render-6FBYLYGJ.js → render-OLPKOJRU.js} +8 -8
- package/dist/{render-GFW5BPES.js → render-W7OFXDOJ.js} +3 -3
- package/dist/{render-MH4IUPWB.js → render-Z253WHBK.js} +18 -18
- package/dist/{render-batch-XUCZ2PUJ.js → render-batch-46IIBFKL.js} +3 -3
- package/dist/{renderCancellation-XF7M7IUP.js → renderCancellation-QTZOCDJ2.js} +5 -5
- package/dist/{resolver-W7AYCQGS.js → resolver-J2PL5FVJ.js} +4 -4
- package/dist/{sherpa-LDUB5NLY.js → sherpa-ZF42V3RN.js} +7 -7
- package/dist/skills/hyperframes/scripts/lib/frame-packets-core.mjs +2 -20
- package/dist/skills/hyperframes/scripts/lib/main-module.mjs +13 -0
- package/dist/skills/hyperframes/scripts/lib/main-module.test.mjs +51 -0
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +4 -3
- package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +5 -1
- package/dist/skills/hyperframes-cli/SKILL.md +2 -0
- package/dist/skills/media-use/audio/scripts/heygen-voice.mjs +2 -2
- package/dist/skills/media-use/audio/scripts/lib/main-module.mjs +13 -0
- package/dist/skills/media-use/scripts/lib/cube-validate.mjs +2 -3
- package/dist/skills/media-use/scripts/lib/main-module.mjs +13 -0
- package/dist/{skills-VENERS5X.js → skills-ACDOO3PX.js} +5 -5
- package/dist/{skillsUpdateCheck-UXFYTACG.js → skillsUpdateCheck-L5OXVVPU.js} +3 -3
- package/dist/{snapshot-C6T74HTI.js → snapshot-UUVNZOW5.js} +23 -23
- package/dist/{src-VUJ2FUFK.js → src-BSLKXEGX.js} +6 -4
- package/dist/{src-FS5RSVEI.js → src-KS3AWFGT.js} +6 -6
- package/dist/{staticProjectServer-V2RZ4DWD.js → staticProjectServer-2TTVGPQH.js} +12 -12
- package/dist/studio/assets/{hyperframes-player-Bw_jIaSX.js → hyperframes-player-DZ5JrMDg.js} +1 -1
- package/dist/studio/assets/{index-DyH9dT7b.js → index-BOs6C0aZ.js} +1 -1
- package/dist/studio/assets/{index-Cj7W_c7p.js → index-BqFRhNZa.js} +1 -1
- package/dist/studio/assets/{index-BVM9NuWl.js → index-D8W0a0Z9.js} +131 -131
- package/dist/studio/{chunk-3GHTHPZD.js → chunk-6JY3MTIX.js} +101 -2
- package/dist/studio/{chunk-G3EDKRZH.js → chunk-NZPJUZKT.js} +99 -3
- package/dist/studio/{chunk-PEAKCOUW.js → chunk-TP6D3U37.js} +3 -100
- package/dist/studio/{domEditingLayers-PYST4G45.js → domEditingLayers-PTP2ICGM.js} +3 -3
- package/dist/studio/index.d.ts +8 -5
- package/dist/studio/index.html +1 -1
- package/dist/studio/index.js +410 -429
- package/dist/studio/player.js +2 -2
- package/dist/{studio-api-TQE7KWKO.js → studio-api-WYWF7XRC.js} +6 -6
- package/dist/{studioServer-CYKSQK7L.js → studioServer-3FG4YTP7.js} +37 -35
- package/dist/{telemetry-A23PPRD6.js → telemetry-PAOOB4T4.js} +3 -3
- package/dist/{timeline-T3QSGT3A.js → timeline-JIIJKKPC.js} +12 -12
- package/dist/{tokens-RT5HWA6C.js → tokens-3QRAM75Z.js} +2 -2
- package/dist/{transcribe-FOLNOC5G.js → transcribe-QSBP5MUG.js} +7 -7
- package/dist/{transcribe-HCF64LQK.js → transcribe-SZB6UMXE.js} +6 -6
- package/dist/{updateCheck-27PIP3AA.js → updateCheck-V3DSB26K.js} +2 -2
- package/dist/{upgrade-TVGXBUPJ.js → upgrade-L5GISOEV.js} +2 -2
- package/dist/{urlDownloader-KBLBJKRL.js → urlDownloader-52FERT4X.js} +4 -4
- package/dist/{validate-ZMYGK4QI.js → validate-HVVLX7KO.js} +17 -17
- package/dist/{video-AVE5GIGM.js → video-MEOWRMFG.js} +5 -5
- package/package.json +1 -1
- package/dist/studio/chunk-3GHTHPZD.js.map +0 -1
- package/dist/studio/chunk-EEXSYY5F.js.map +0 -1
- package/dist/studio/chunk-G3EDKRZH.js.map +0 -1
- package/dist/studio/chunk-PEAKCOUW.js.map +0 -1
- package/dist/studio/chunk-PZ5AY32C.js.map +0 -1
- package/dist/studio/chunk-Y2OHHNM2.js.map +0 -1
- package/dist/studio/domEditingLayers-PYST4G45.js.map +0 -1
- package/dist/studio/index.css.map +0 -1
- package/dist/studio/index.js.map +0 -1
- package/dist/studio/player.js.map +0 -1
- package/dist/studio/styles/tailwind-preset.js.map +0 -1
- package/dist/studio/ui.js.map +0 -1
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.8.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.8.
|
|
9
|
+
var VERSION = true ? "0.8.145" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.8.145" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GXJEGZL2.js";
|
|
10
10
|
import {
|
|
11
11
|
injectTagsAtHeadStart
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AUWHD7RA.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/compositionServer.ts
|
|
15
15
|
import { createHash } from "crypto";
|
|
@@ -6,20 +6,20 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XBX4QJP7.js";
|
|
10
10
|
import {
|
|
11
11
|
installPageFunctionGuard,
|
|
12
12
|
resolveCliChromeGpuMode,
|
|
13
13
|
seekCompositionTimeline,
|
|
14
14
|
waitForRuntimeReady
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U5QY7KTN.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveCompositionViewportFromHtml
|
|
18
18
|
} from "./chunk-FH7WODJH.js";
|
|
19
19
|
import {
|
|
20
20
|
launchManagedBrowser,
|
|
21
21
|
resolveManagedGpuMode
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4ORLNTET.js";
|
|
23
23
|
import {
|
|
24
24
|
defineCommand
|
|
25
25
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
printDeprecationNotice,
|
|
35
35
|
withMeta
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-PLR7Z6TC.js";
|
|
37
37
|
import {
|
|
38
38
|
normalizeErrorMessage
|
|
39
39
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -228,7 +228,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
228
228
|
async function localizeRemoteAssets(html) {
|
|
229
229
|
let dir;
|
|
230
230
|
try {
|
|
231
|
-
const { loadProducer } = await import("./producer-
|
|
231
|
+
const { loadProducer } = await import("./producer-7TYEAUF7.js");
|
|
232
232
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
233
233
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
234
234
|
const assetDir = dir;
|
|
@@ -249,9 +249,9 @@ async function localizeRemoteAssets(html) {
|
|
|
249
249
|
}
|
|
250
250
|
async function validateInBrowser(project, opts) {
|
|
251
251
|
const projectDir = project.dir;
|
|
252
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
252
|
+
const { bundleToSingleHtml } = await import("./compiler-F54OZZPM.js");
|
|
253
253
|
const { ensureBrowser } = await import("./manager-BPSR6D3V.js");
|
|
254
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
254
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-2TTVGPQH.js");
|
|
255
255
|
const { lintProject } = await import("./lintProject-UBZ3TDHU.js");
|
|
256
256
|
const lintResult = await lintProject(projectDir);
|
|
257
257
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
@@ -273,9 +273,9 @@ async function validateInBrowser(project, opts) {
|
|
|
273
273
|
try {
|
|
274
274
|
const browser = await ensureBrowser();
|
|
275
275
|
const puppeteer = await import("puppeteer-core");
|
|
276
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
276
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-BSLKXEGX.js");
|
|
277
277
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
278
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
278
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-AQ2BPLBK.js");
|
|
279
279
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
280
280
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
281
281
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
stripEmbeddedRuntimeScripts,
|
|
39
39
|
styleElementsFor,
|
|
40
40
|
warnUnknownEnumValues
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-AUWHD7RA.js";
|
|
42
42
|
import {
|
|
43
43
|
cssVariableName
|
|
44
44
|
} from "./chunk-VC76R6W2.js";
|
|
@@ -267,6 +267,66 @@ function sanitizeCssValue(value) {
|
|
|
267
267
|
import { AsyncLocalStorage } from "async_hooks";
|
|
268
268
|
import { readFileSync, existsSync, statSync } from "fs";
|
|
269
269
|
import { resolve as resolve2, relative, dirname, isAbsolute, sep } from "path";
|
|
270
|
+
|
|
271
|
+
// ../core/dist/compiler/standaloneEntry.js
|
|
272
|
+
function isTemplateEntry(html) {
|
|
273
|
+
return html.trimStart().startsWith("<template");
|
|
274
|
+
}
|
|
275
|
+
function normalizeCompositionSrcPath(srcPath) {
|
|
276
|
+
return srcPath.replace(/\\/g, "/").replace(/^\.\//, "");
|
|
277
|
+
}
|
|
278
|
+
function readSceneRootDuration(entryHtml) {
|
|
279
|
+
if (!entryHtml)
|
|
280
|
+
return null;
|
|
281
|
+
const { document } = parseHTML(entryHtml);
|
|
282
|
+
const template = document.querySelector("template");
|
|
283
|
+
const scope = template ? parseHTML(template.innerHTML).document : document;
|
|
284
|
+
const root = scope.querySelector("[data-composition-id]");
|
|
285
|
+
return root?.getAttribute("data-duration") ?? null;
|
|
286
|
+
}
|
|
287
|
+
function createStandaloneEntryRenderClone(root, host, sceneDuration) {
|
|
288
|
+
const hostClone = host.cloneNode(true);
|
|
289
|
+
hostClone.setAttribute("data-start", "0");
|
|
290
|
+
if (root === host)
|
|
291
|
+
return hostClone;
|
|
292
|
+
const rootClone = root.cloneNode(false);
|
|
293
|
+
if (sceneDuration != null) {
|
|
294
|
+
rootClone.setAttribute("data-duration", sceneDuration);
|
|
295
|
+
} else {
|
|
296
|
+
rootClone.removeAttribute("data-duration");
|
|
297
|
+
}
|
|
298
|
+
rootClone.appendChild(hostClone);
|
|
299
|
+
return rootClone;
|
|
300
|
+
}
|
|
301
|
+
function replaceBodyWithRenderClone(body, renderClone) {
|
|
302
|
+
const libraries = Array.from(body.children).filter((child) => child.tagName === "SCRIPT" && child.hasAttribute("src"));
|
|
303
|
+
while (body.firstChild) {
|
|
304
|
+
body.removeChild(body.firstChild);
|
|
305
|
+
}
|
|
306
|
+
for (const library of libraries)
|
|
307
|
+
body.appendChild(library);
|
|
308
|
+
body.appendChild(renderClone);
|
|
309
|
+
}
|
|
310
|
+
function extractStandaloneEntryFromIndex(indexHtml, entryFile, entryHtml) {
|
|
311
|
+
const normalizedEntryFile = normalizeCompositionSrcPath(entryFile);
|
|
312
|
+
const { document } = parseHTML(indexHtml);
|
|
313
|
+
const body = document.querySelector("body");
|
|
314
|
+
if (!body)
|
|
315
|
+
return null;
|
|
316
|
+
const hosts = Array.from(document.querySelectorAll("[data-composition-src]"));
|
|
317
|
+
const host = hosts.find((candidate) => normalizeCompositionSrcPath(candidate.getAttribute("data-composition-src") || "") === normalizedEntryFile);
|
|
318
|
+
if (!host)
|
|
319
|
+
return null;
|
|
320
|
+
const root = Array.from(body.children).find((candidate) => candidate.hasAttribute("data-composition-id")) ?? null;
|
|
321
|
+
if (!root)
|
|
322
|
+
return null;
|
|
323
|
+
const sceneDuration = readSceneRootDuration(entryHtml) ?? host.getAttribute("data-duration");
|
|
324
|
+
const renderClone = createStandaloneEntryRenderClone(root, host, sceneDuration);
|
|
325
|
+
replaceBodyWithRenderClone(body, renderClone);
|
|
326
|
+
return document.toString();
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// ../core/dist/compiler/htmlBundler.js
|
|
270
330
|
import { transformSync } from "esbuild";
|
|
271
331
|
|
|
272
332
|
// ../core/dist/generated/svg-selector-aliases-inline.js
|
|
@@ -2460,23 +2520,31 @@ function bundleToSingleHtml(projectDir, options) {
|
|
|
2460
2520
|
const bundle = () => bundleProject(projectDir, options);
|
|
2461
2521
|
return options?.onRead ? bundleReads.run(options.onRead, bundle) : bundle();
|
|
2462
2522
|
}
|
|
2523
|
+
function readMountedSceneShell(projectDir, entryFile, entryHtml) {
|
|
2524
|
+
if (!isTemplateEntry(entryHtml))
|
|
2525
|
+
return null;
|
|
2526
|
+
const indexHtml = safeReadFile(resolve2(projectDir, "index.html"));
|
|
2527
|
+
return indexHtml === null ? null : extractStandaloneEntryFromIndex(indexHtml, entryFile, entryHtml);
|
|
2528
|
+
}
|
|
2463
2529
|
async function bundleProject(projectDir, options) {
|
|
2464
2530
|
const entryFile = options?.entryFile ?? "index.html";
|
|
2465
2531
|
const indexPath = resolveWithinProject(projectDir, entryFile);
|
|
2466
2532
|
if (!indexPath || !existsSync(indexPath)) {
|
|
2467
2533
|
throw new Error(`${entryFile} not found in project directory`);
|
|
2468
2534
|
}
|
|
2469
|
-
|
|
2535
|
+
noteRead(indexPath);
|
|
2536
|
+
const entryHtml = readFileSync(indexPath, "utf-8");
|
|
2537
|
+
const mountedShell = readMountedSceneShell(projectDir, entryFile, entryHtml);
|
|
2538
|
+
const sourceDir = mountedShell ? projectDir : dirname(indexPath);
|
|
2470
2539
|
const resolveEntryPath = (relativePath) => {
|
|
2471
2540
|
const resolved = resolve2(sourceDir, relativePath);
|
|
2472
2541
|
return isSafePath(projectDir, resolved) ? resolved : null;
|
|
2473
2542
|
};
|
|
2474
2543
|
const resolveEntryUrl = (url) => resolveEntryPath(decodedUrlPath(url));
|
|
2475
2544
|
const readSource = options?.stampHfIds ? ensureHfIds : (html) => html;
|
|
2476
|
-
|
|
2477
|
-
const rawHtml = readSource(readFileSync(indexPath, "utf-8"));
|
|
2545
|
+
const rawHtml = readSource(mountedShell ?? entryHtml);
|
|
2478
2546
|
const compiled = await compileHtml(rawHtml, sourceDir, options?.probeMediaDuration);
|
|
2479
|
-
if (options?.staticGuard !== false) {
|
|
2547
|
+
if (options?.staticGuard !== false && !mountedShell) {
|
|
2480
2548
|
const staticGuard = await validateHyperframeHtmlContract(compiled);
|
|
2481
2549
|
if (!staticGuard.isValid) {
|
|
2482
2550
|
console.warn(`[StaticGuard] Invalid HyperFrame contract: ${staticGuard.missingKeys.join("; ")}`);
|
|
@@ -3017,6 +3085,8 @@ export {
|
|
|
3017
3085
|
ensureExternalScriptTag,
|
|
3018
3086
|
emitMountedModuleScripts,
|
|
3019
3087
|
FLATTENED_INNER_ROOT_STRIP_ATTRS,
|
|
3088
|
+
isTemplateEntry,
|
|
3089
|
+
extractStandaloneEntryFromIndex,
|
|
3020
3090
|
scopeCssToComposition,
|
|
3021
3091
|
wrapScopedCompositionScript,
|
|
3022
3092
|
buildVariablesByCompScript,
|
|
@@ -32,18 +32,18 @@ import {
|
|
|
32
32
|
} from "./chunk-S3S4TGEH.js";
|
|
33
33
|
import {
|
|
34
34
|
resolveExtractCacheDir
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-UXO2L7HJ.js";
|
|
36
36
|
import {
|
|
37
37
|
getUpdateMeta,
|
|
38
38
|
withMeta
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PLR7Z6TC.js";
|
|
40
40
|
import {
|
|
41
41
|
CONFIG_PATH,
|
|
42
42
|
withFileLock
|
|
43
43
|
} from "./chunk-XUXGIA7H.js";
|
|
44
44
|
import {
|
|
45
45
|
VERSION
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-BFACGEII.js";
|
|
47
47
|
import {
|
|
48
48
|
normalizeErrorMessage
|
|
49
49
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
getPreparedWavDurationSeconds,
|
|
22
22
|
prepareWav
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OTHDVXOJ.js";
|
|
24
24
|
import {
|
|
25
25
|
emitWords
|
|
26
26
|
} from "./chunk-6IHWCZ3W.js";
|
|
27
27
|
import {
|
|
28
28
|
stoppedByCancelSignal
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-FBCULCAL.js";
|
|
30
30
|
import {
|
|
31
31
|
PARAKEET_MODEL_LABEL,
|
|
32
32
|
SHERPA_ERROR_PREFIX,
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BFACGEII.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
DEFAULT_VP9_CPU_USED,
|
|
9
9
|
isHttpUrl,
|
|
10
10
|
runFfmpeg
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UXO2L7HJ.js";
|
|
12
12
|
import {
|
|
13
13
|
parseAnimatedGifMetadata
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VRW6EBHV.js";
|
|
15
15
|
import {
|
|
16
16
|
parseHTML
|
|
17
17
|
} from "./chunk-SDYDNHEE.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
splitElementInHtml,
|
|
22
22
|
unwrapElementsFromHtml,
|
|
23
23
|
wrapElementsInHtml
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5WVW7P23.js";
|
|
25
25
|
import {
|
|
26
26
|
MAX_WINDOW_IDLE_MS,
|
|
27
27
|
STUDIO_SIGNATURE_MANIFEST_PATHS,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
scanProjectMediaCodecMap,
|
|
66
66
|
shouldPrewarmProxy,
|
|
67
67
|
waitForProxy
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-KIFHYXPB.js";
|
|
69
69
|
import {
|
|
70
70
|
STUDIO_MOTION_PATH,
|
|
71
71
|
createStudioMotionRenderBodyScript,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
} from "./chunk-TJSTGSAW.js";
|
|
99
99
|
import {
|
|
100
100
|
addScenePartsManifest
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-FDT6KQV4.js";
|
|
102
102
|
import {
|
|
103
103
|
ensureHfIds
|
|
104
104
|
} from "./chunk-NE55C6S5.js";
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
parseFps,
|
|
112
112
|
parsePreviewProxyBox,
|
|
113
113
|
sameInstant
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-VRW6EBHV.js";
|
|
115
115
|
import {
|
|
116
116
|
AFTER_FONTS_SCRIPT_TYPE,
|
|
117
117
|
RUNTIME_BOOTSTRAP_ATTR,
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
resolveRateSpec,
|
|
126
126
|
sourceTimeAt,
|
|
127
127
|
stripEmbeddedRuntimeScripts
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-AUWHD7RA.js";
|
|
129
129
|
import {
|
|
130
130
|
HTML_ATTRIBUTE_ENTITIES,
|
|
131
131
|
MagicString,
|
|
@@ -300,7 +300,7 @@ function clearElementScreenshotIsolation() {
|
|
|
300
300
|
page.__hfThumbnailFaded = [];
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
// ../studio-server/dist/chunk-
|
|
303
|
+
// ../studio-server/dist/chunk-WE5JQ6V7.js
|
|
304
304
|
import { resolve } from "path";
|
|
305
305
|
function isAutoProxyEnabled(adapter) {
|
|
306
306
|
return adapter.autoProxy !== false;
|
|
@@ -4430,16 +4430,7 @@ function applyFileMutations(projectDir, mutations, requestToken, writeFile = (pa
|
|
|
4430
4430
|
}
|
|
4431
4431
|
return results;
|
|
4432
4432
|
} catch (error) {
|
|
4433
|
-
const rollbackErrors =
|
|
4434
|
-
for (const mutation of attempted.reverse()) {
|
|
4435
|
-
try {
|
|
4436
|
-
if (!mutation.written || readFileSync4(mutation.absPath, "utf-8") === mutation.after)
|
|
4437
|
-
writeFile(mutation.absPath, mutation.before, "utf-8");
|
|
4438
|
-
clearFileWriteReceipt(mutation.absPath, mutation.version, mutation.writeToken);
|
|
4439
|
-
} catch (rollbackError) {
|
|
4440
|
-
rollbackErrors.push(rollbackError);
|
|
4441
|
-
}
|
|
4442
|
-
}
|
|
4433
|
+
const rollbackErrors = rollBack(attempted, writeFile);
|
|
4443
4434
|
if (rollbackErrors.length > 0) {
|
|
4444
4435
|
throw new AggregateError(
|
|
4445
4436
|
[error, ...rollbackErrors],
|
|
@@ -4449,6 +4440,20 @@ function applyFileMutations(projectDir, mutations, requestToken, writeFile = (pa
|
|
|
4449
4440
|
throw error;
|
|
4450
4441
|
}
|
|
4451
4442
|
}
|
|
4443
|
+
function rollBack(attempted, writeFile) {
|
|
4444
|
+
const errors = [];
|
|
4445
|
+
for (const mutation of attempted.reverse()) {
|
|
4446
|
+
try {
|
|
4447
|
+
const current = readFileSync4(mutation.absPath, "utf-8");
|
|
4448
|
+
if (mutation.written ? current === mutation.after : current !== mutation.before)
|
|
4449
|
+
writeFile(mutation.absPath, mutation.before, "utf-8");
|
|
4450
|
+
clearFileWriteReceipt(mutation.absPath, mutation.version, mutation.writeToken);
|
|
4451
|
+
} catch (rollbackError) {
|
|
4452
|
+
errors.push(rollbackError);
|
|
4453
|
+
}
|
|
4454
|
+
}
|
|
4455
|
+
return errors;
|
|
4456
|
+
}
|
|
4452
4457
|
function applyOneMutation(projectDir, mutation, requestToken, writeFile, attempted) {
|
|
4453
4458
|
const current = readFileSync4(mutation.absPath, "utf-8");
|
|
4454
4459
|
assertExpectedVersion(mutation, current);
|
|
@@ -5441,7 +5446,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5441
5446
|
let block = extractGsapScriptBlock(html);
|
|
5442
5447
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5443
5448
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5444
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5449
|
+
const { GSAP_CDN } = await import("./dist-Q4BI5A73.js");
|
|
5445
5450
|
const bootstrap = [
|
|
5446
5451
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5447
5452
|
"<script>",
|
|
@@ -7963,6 +7968,7 @@ function registerRenderRoutes(api, adapter) {
|
|
|
7963
7968
|
outputResolution,
|
|
7964
7969
|
composition,
|
|
7965
7970
|
variables,
|
|
7971
|
+
useGpu: body.gpu === true && format === "mp4",
|
|
7966
7972
|
distinctId: typeof body.telemetryDistinctId === "string" ? body.telemetryDistinctId : void 0,
|
|
7967
7973
|
telemetryOptOut: body.telemetryOptOut === true
|
|
7968
7974
|
});
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
formatPreviewProxyBox,
|
|
10
10
|
hdrToSdrToneMapFilter,
|
|
11
11
|
parseFirstFrameColour
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VRW6EBHV.js";
|
|
13
13
|
import {
|
|
14
14
|
decodeAuthoredAttribute,
|
|
15
15
|
scanHtmlOpeningTags
|
|
@@ -336,7 +336,7 @@ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
|
|
|
336
336
|
return map;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
// ../studio-server/dist/chunk-
|
|
339
|
+
// ../studio-server/dist/chunk-2VZGTTEG.js
|
|
340
340
|
import { spawn } from "child_process";
|
|
341
341
|
import { createHash, randomUUID } from "crypto";
|
|
342
342
|
import { existsSync as existsSync2, renameSync, statSync as statSync2, unlinkSync as unlinkSync2, utimesSync } from "fs";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3IBMBNYY.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
|
|
|
229
229
|
rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
const { trackFigmaImport } = await import("./telemetry-
|
|
232
|
+
const { trackFigmaImport } = await import("./telemetry-PAOOB4T4.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -10,19 +10,19 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
launchManagedBrowser,
|
|
12
12
|
resolveManagedGpuMode
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4ORLNTET.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveDiagnosticNavigationTimeoutMs,
|
|
16
16
|
windowsChromeCrashRemediation
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FXJJCPPB.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveLocalBrowserGpuMode,
|
|
20
20
|
resolveLocalWebGpu
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ADF3X6GM.js";
|
|
22
22
|
import {
|
|
23
23
|
assertWebGpuAdapterAvailable,
|
|
24
24
|
compositionRequiresWebGpu
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UXO2L7HJ.js";
|
|
26
26
|
import {
|
|
27
27
|
normalizeErrorMessage
|
|
28
28
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -104,7 +104,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
104
104
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-BPSR6D3V.js");
|
|
105
105
|
const browser = await ensureBrowser();
|
|
106
106
|
const puppeteer = await import("puppeteer-core");
|
|
107
|
-
const { buildChromeArgs } = await import("./src-
|
|
107
|
+
const { buildChromeArgs } = await import("./src-BSLKXEGX.js");
|
|
108
108
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
109
109
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
110
110
|
let softwareWebGpu = false;
|