hyperframes 0.8.194 → 0.8.196
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/{add-47UAIWY4.js → add-JC7CRYAY.js} +12 -12
- package/dist/{animatedGifPrep-TFSQZWK6.js → animatedGifPrep-5GSLZQUS.js} +7 -7
- package/dist/api.js +15 -15
- package/dist/{asset-AU7PZHXA.js → asset-MM3F46VS.js} +2 -2
- package/dist/{assetCataloger-HC5N6WPT.js → assetCataloger-G2ZIBRML.js} +7 -7
- package/dist/{audio-7AWMZWBM.js → audio-TTZ4OR5A.js} +13 -13
- package/dist/{auth-GXH3QNDJ.js → auth-TFOUDLSS.js} +1 -1
- package/dist/{autoUpdate-GVGP5O2I.js → autoUpdate-EIHQFY7Y.js} +2 -2
- package/dist/{backgroundChecks-IUJM2Q35.js → backgroundChecks-SXRES7MW.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-3XS2Y2Y4.js → batchRender-GH2HQQKN.js} +4 -4
- package/dist/{beats-U64B4S7Z.js → beats-VYH72TGV.js} +9 -9
- package/dist/{benchmark-2YUPAI76.js → benchmark-72KJLRAY.js} +9 -9
- package/dist/{browser-DBFH7KXM.js → browser-3O7SAXSC.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-XWL7KSQJ.js → bundleWithLocalizedFonts-CJL3HHSF.js} +2 -2
- package/dist/{capture-YWH7BPBI.js → capture-H33B5WVR.js} +10 -10
- package/dist/{capture-E4VW75NM.js → capture-NQAJRPLR.js} +2 -2
- package/dist/{captureCompositionFrame-IG6S2OHG.js → captureCompositionFrame-HPIRZNGK.js} +12 -12
- package/dist/{catalog-LZIZLZ34.js → catalog-KMNTCN55.js} +12 -12
- package/dist/{catch-up-ZVNPIACY.js → catch-up-Q367WUGC.js} +4 -4
- package/dist/{check-EKEOD4UM.js → check-NQIN7ZQW.js} +36 -36
- package/dist/{checkBrowser-MYH6HPHH.js → checkBrowser-IECG4M6A.js} +31 -31
- package/dist/{chunk-K2VXPQKC.js → chunk-2TU4OKIR.js} +173 -20
- package/dist/{chunk-F3B7CE3Q.js → chunk-3OKZJYA7.js} +27 -18
- package/dist/{chunk-VHIBBDEI.js → chunk-3VI6DSO6.js} +1 -1
- package/dist/{chunk-37IHQVNQ.js → chunk-4VOUQCY6.js} +1 -1
- package/dist/{chunk-KDEV5RIE.js → chunk-5MPWOFWO.js} +1 -1
- package/dist/{chunk-MO6RTNYD.js → chunk-62DVCRMX.js} +1 -1
- package/dist/{chunk-54PZ2EQZ.js → chunk-6RNGEUL3.js} +1 -1
- package/dist/{chunk-Y3BT27Y7.js → chunk-DHSNTPEW.js} +1 -1
- package/dist/{chunk-CEUBYYVJ.js → chunk-DMGXJRXV.js} +2 -2
- package/dist/{chunk-CEZH4AQT.js → chunk-DMMYNEAF.js} +1 -1
- package/dist/{chunk-2AJU7PZ6.js → chunk-DTGW7DU3.js} +1 -1
- package/dist/{chunk-ST35C4K6.js → chunk-DY53XJ3P.js} +1 -1
- package/dist/{chunk-XYGULBFV.js → chunk-E7NEF2SC.js} +1 -1
- package/dist/{chunk-4FVNEXSV.js → chunk-E7S6OJFP.js} +3 -3
- package/dist/{chunk-3S3CXF4W.js → chunk-EWXXMXNE.js} +2 -2
- package/dist/{chunk-HPGQPRHY.js → chunk-FHRZK527.js} +1 -1
- package/dist/{chunk-ROEW726S.js → chunk-FMTJ4I6I.js} +1 -1
- package/dist/{chunk-MGSNFWGR.js → chunk-GHNIESBY.js} +2 -2
- package/dist/{chunk-QJQTWTM7.js → chunk-I452OMM7.js} +1 -1
- package/dist/{chunk-FUA22HO4.js → chunk-I7BLPFXV.js} +1 -1
- package/dist/{chunk-LMIDZIW2.js → chunk-IHGQEF3Z.js} +47 -16
- package/dist/{chunk-Q4HKC3O7.js → chunk-IO5NBG26.js} +3 -3
- package/dist/{chunk-GAFEU6AB.js → chunk-IYSIQ4GX.js} +10 -8
- package/dist/{chunk-4VSV56F2.js → chunk-JCBZI47W.js} +1 -1
- package/dist/{chunk-452UK7E7.js → chunk-JI7J3FTM.js} +2 -2
- package/dist/{chunk-PXK3ICU6.js → chunk-JL2PX5P2.js} +1 -1
- package/dist/{chunk-RZWJJCI7.js → chunk-KCFKFKCU.js} +2 -2
- package/dist/{chunk-RUPGFW5B.js → chunk-KLOMOKJC.js} +6 -6
- package/dist/{chunk-3OSBSUN3.js → chunk-L7UPBREN.js} +18 -18
- package/dist/{chunk-M2VXARYK.js → chunk-LP6SFIWQ.js} +1 -1
- package/dist/{chunk-MCFPMUMT.js → chunk-MK6FWMMF.js} +2 -2
- package/dist/chunk-MXT76SSV.js +3901 -0
- package/dist/{chunk-VPON6DF2.js → chunk-MYVC3XTH.js} +5 -5
- package/dist/{chunk-BYADARIC.js → chunk-NCSX7WNM.js} +2 -2
- package/dist/{chunk-N3M3IU6S.js → chunk-NTMKBXWW.js} +1 -1
- package/dist/{chunk-O2ILONGK.js → chunk-PBHFZXYP.js} +9 -9
- package/dist/{chunk-OJNNKHAZ.js → chunk-PGDWNIOK.js} +7 -2
- package/dist/{chunk-LZ4WPR3B.js → chunk-PTRDO7J4.js} +2 -2
- package/dist/{chunk-4PIPQPCW.js → chunk-QK2MZ2SF.js} +11 -8
- package/dist/{chunk-NVVIFW3C.js → chunk-QSJUDSIC.js} +9 -9
- package/dist/{chunk-2OYYNKJ4.js → chunk-QXPZGDTI.js} +1 -1
- package/dist/{chunk-TDYKVJTU.js → chunk-RASESH32.js} +34 -21
- package/dist/{chunk-DT3JESJ6.js → chunk-REOE2ZEO.js} +1 -1
- package/dist/{chunk-HG5ECUOR.js → chunk-REPDGLLY.js} +5 -5
- package/dist/{chunk-ST4SHO3S.js → chunk-RP7QRLSK.js} +1 -1
- package/dist/{chunk-HCLBM2LQ.js → chunk-TGHMJIHK.js} +2 -2
- package/dist/{chunk-N33FO44R.js → chunk-TR7CDEU7.js} +1 -1
- package/dist/{chunk-PEHST4UY.js → chunk-TWHNETZP.js} +3 -3
- package/dist/{chunk-DVQDBWQG.js → chunk-UPPAKDU3.js} +3 -3
- package/dist/{chunk-EB3XXHNO.js → chunk-VAS2EQRM.js} +2 -2
- package/dist/{chunk-LOGKDQ3G.js → chunk-VFDLKZJZ.js} +3 -3
- package/dist/{chunk-JVTWX5G3.js → chunk-VKFHSZYS.js} +27 -2
- package/dist/{chunk-CZNSLFYD.js → chunk-VLVQQJOX.js} +14 -7
- package/dist/{chunk-POFJH2IS.js → chunk-W226NPSC.js} +1 -1
- package/dist/{chunk-52YJKWV3.js → chunk-WFHA6WC3.js} +20 -4
- package/dist/{chunk-BK5YCT54.js → chunk-WJJ6TPC7.js} +3 -3
- package/dist/{chunk-JXTPNUSO.js → chunk-XJDMYIUI.js} +102 -57
- package/dist/{chunk-SNECH6QA.js → chunk-XLVUQGSA.js} +1 -1
- package/dist/{chunk-B7RJV74O.js → chunk-XOTUPVIF.js} +4 -0
- package/dist/{chunk-4GMDL4N5.js → chunk-XZE3IBMV.js} +1 -1
- package/dist/{chunk-B3GG3HJB.js → chunk-YU22E6SG.js} +1 -1
- package/dist/{chunk-EY7GKVPS.js → chunk-Z43NJYG2.js} +2 -2
- package/dist/{chunk-JU4T4VAA.js → chunk-ZKIHZDNI.js} +4 -4
- package/dist/{chunk-HQD7ODQB.js → chunk-ZSREWHNW.js} +5 -5
- package/dist/{clean-NS2SDRK7.js → clean-HINDVP2J.js} +17 -17
- package/dist/cli.js +53 -53
- package/dist/{cloud-K4XQPWTY.js → cloud-TPFDYW6D.js} +4 -4
- package/dist/{cloudrun-BKOKXTXV.js → cloudrun-XI4YKOBA.js} +6 -6
- package/dist/commands/layout-audit.browser.js +1 -1
- package/dist/{compare-ZAV773OL.js → compare-I7GD7WNG.js} +28 -28
- package/dist/{compiler-CWHFCE3H.js → compiler-K7SH7OZQ.js} +4 -4
- package/dist/{component-OXA2ZWX3.js → component-FRH7UFTP.js} +3 -3
- package/dist/{compositions-NKRVWCPE.js → compositions-UQCJ7BG7.js} +11 -11
- package/dist/{delete-HZ2LBCLC.js → delete-OTDM7JOD.js} +2 -2
- package/dist/{deploy-FNDTZFF7.js → deploy-L6JEPE2A.js} +1 -1
- package/dist/{deterministicFonts-RADD3BSX.js → deterministicFonts-RMA7GDJC.js} +2 -2
- package/dist/{dist-2YTN2UGY.js → dist-FQBHBBKC.js} +3 -3
- package/dist/{dist-7OCZHNLY.js → dist-VRGIE57H.js} +1 -1
- package/dist/{doctor-6QWJGO5P.js → doctor-RY44RTJD.js} +11 -11
- package/dist/{events-HTHOBIUN.js → events-ALOHDCL3.js} +3 -3
- package/dist/{events-MBKHVGXX.js → events-JSL7JIXP.js} +2 -2
- package/dist/{feedback-X5QWTLEX.js → feedback-FSICK4WO.js} +8 -8
- package/dist/{ffmpeg-7GESJCCT.js → ffmpeg-FG7VOQTN.js} +7 -7
- package/dist/{figma-SXOHFVJI.js → figma-CN2672XS.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/{get-T2HI5FCK.js → get-C3OPJMWR.js} +2 -2
- package/dist/{gpuPolicy-5FABKW5G.js → gpuPolicy-AJX7YIAS.js} +7 -7
- package/dist/{grade-compare-JATGHA6Q.js → grade-compare-WQHSPAHD.js} +29 -29
- package/dist/{help-G6CIKCGS.js → help-E3MX427C.js} +1 -1
- package/dist/{history-CSJUHYTD.js → history-FYLXZMI4.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +61 -61
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-MTTUMW2C.js → info-OMF7O3KA.js} +8 -8
- package/dist/{init-LJYNI5EK.js → init-K3GNFQLD.js} +27 -27
- package/dist/{inspect-HGDM2VJE.js → inspect-GYOEV66Q.js} +29 -29
- package/dist/{installer-3XHURUDG.js → installer-6X4VLDTC.js} +5 -5
- package/dist/{keyframes-MSU7N53X.js → keyframes-IPXUT4QI.js} +6 -6
- package/dist/{lambda-2I2TIUSD.js → lambda-ZGMXIDJV.js} +8 -8
- package/dist/{layout-KWOXZMN7.js → layout-QVTB5SUJ.js} +29 -29
- package/dist/{lint-N53TLHFG.js → lint-V2I27FUE.js} +7 -7
- package/dist/{lintProject-EOUZA4EG.js → lintProject-ESAJKFOX.js} +1 -1
- package/dist/{list-SHYPQC7U.js → list-J5MFX5NA.js} +2 -2
- package/dist/{login-TEB6PA3Y.js → login-ZRCLBPMK.js} +4 -4
- package/dist/{manager-PLRSZH5G.js → manager-GLJVKITP.js} +8 -8
- package/dist/{media-treatment-XTUKMIGE.js → media-treatment-HVGN5S4H.js} +13 -13
- package/dist/{models-4WKAPP2L.js → models-4WEGIBNZ.js} +11 -11
- package/dist/{motionShot-PTKB4ILH.js → motionShot-B3I4ZE73.js} +15 -15
- package/dist/{normalize-audio-3NG326I2.js → normalize-audio-QIERL4II.js} +6 -6
- package/dist/{open-6S2LMF7R.js → open-ALXHG55R.js} +12 -12
- package/dist/{parakeetRunner-OEI35DVO.js → parakeetRunner-ESAELH2V.js} +12 -12
- package/dist/{pipeline-543FUKH4.js → pipeline-QK6KHDQ3.js} +8 -8
- package/dist/{play-ETEGHP3B.js → play-XBIN4KMI.js} +20 -20
- package/dist/{preflight-Y5IYUF2T.js → preflight-D6VLCMOJ.js} +8 -8
- package/dist/{present-ZRSLMJ6J.js → present-DQ45WV7Q.js} +16 -16
- package/dist/{preview-CEJ3SVTY.js → preview-CIAZ646P.js} +18 -18
- package/dist/{producer-JFVFIV26.js → producer-T3FJ6HZE.js} +1 -1
- package/dist/{projectConfig-7EK3BS72.js → projectConfig-WFGZJAYZ.js} +7 -7
- package/dist/{publication-Y54GYFMV.js → publication-GWNKRVXZ.js} +3 -3
- package/dist/{publish-S3UJTPCV.js → publish-LIAAGUNA.js} +10 -10
- package/dist/{remove-background-YTATNQSI.js → remove-background-HRFJZJHF.js} +9 -9
- package/dist/{render-WNIG4B3J.js → render-3C5LHQ3P.js} +6 -6
- package/dist/{render-IIPXMSBO.js → render-RWW4LGKJ.js} +29 -29
- package/dist/{render-RN3W6YL4.js → render-SMFKECFA.js} +15 -15
- package/dist/{render-batch-OYS3UQDB.js → render-batch-7UH2F7N4.js} +6 -6
- package/dist/renderSetupWorker.js +1 -1
- package/dist/{resolver-OVCXVEDX.js → resolver-4ZFA36XZ.js} +5 -5
- package/dist/{sherpa-NCSFD7S3.js → sherpa-NRSAFFIL.js} +11 -11
- package/dist/skills/media-use/scripts/lib/recipe-store.mjs +1 -0
- package/dist/skills/media-use/scripts/lib/recipe-store.test.mjs +24 -0
- package/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +2 -2
- package/dist/{skills-IUV3K3X7.js → skills-6ZUYEX75.js} +5 -5
- package/dist/{skillsUpdateCheck-NACBXMWW.js → skillsUpdateCheck-G2NSDI6O.js} +3 -3
- package/dist/{snapshot-7S5USJ2I.js → snapshot-ZJBRKRHZ.js} +33 -33
- package/dist/{src-CAR6PHI4.js → src-CZHSSXXF.js} +9 -9
- package/dist/{src-HITT6NWG.js → src-GIB5BUZZ.js} +6 -6
- package/dist/{staticProjectServer-QR6VZBPT.js → staticProjectServer-Q3BHJE7H.js} +17 -17
- package/dist/studio/assets/{hyperframes-player-DLOUZUct.js → hyperframes-player-DG3nZ1bE.js} +1 -1
- package/dist/studio/assets/{index-CAQ7OcNJ.js → index-BS2__aBb.js} +134 -134
- package/dist/studio/assets/{index-D9kA6JUX.js → index-C1r59TIq.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-HVNOJILH.js → studio-api-QB4YAV5Q.js} +10 -10
- package/dist/{studioServer-3BG5FRJL.js → studioServer-O6T4J75T.js} +89 -49
- package/dist/{telemetry-PET2GFQG.js → telemetry-IKTCBFN5.js} +3 -3
- package/dist/{timeline-PVIC2Z5K.js → timeline-J2D5R53C.js} +18 -18
- package/dist/{tokens-4N46PWSF.js → tokens-2D2TFXGD.js} +2 -2
- package/dist/{transcribe-2DVBS7MH.js → transcribe-HGD5MUPC.js} +16 -16
- package/dist/{transcribe-IDC7JTM4.js → transcribe-JX23YVIR.js} +10 -10
- package/dist/{updateCheck-QRDVXU7I.js → updateCheck-S56I5SDE.js} +2 -2
- package/dist/{upgrade-5CNE3TBH.js → upgrade-A4LUB5SH.js} +2 -2
- package/dist/{urlDownloader-P2I25DFC.js → urlDownloader-ENNZJ7EM.js} +6 -6
- package/dist/{validate-CLR5PEOV.js → validate-IGVFY5CJ.js} +23 -23
- package/dist/vendor/npm/gsap@3.15.0/dist/CustomEase.min.js +11 -0
- package/dist/vendor/npm/gsap@3.15.0/dist/MotionPathPlugin.min.js +11 -0
- package/dist/vendor/npm/gsap@3.15.0/dist/gsap.min.js +11 -0
- package/dist/{video-3CKZZBOB.js → video-HFXVZURT.js} +7 -7
- package/dist/warmCheck.js +36 -36
- package/package.json +2 -2
- package/dist/chunk-2D5WP2NI.js +0 -3901
|
@@ -6,23 +6,23 @@ 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-RP7QRLSK.js";
|
|
10
10
|
import {
|
|
11
11
|
installPageFunctionGuard,
|
|
12
12
|
resolveCliChromeGpuMode,
|
|
13
13
|
seekCompositionTimeline,
|
|
14
14
|
waitForRuntimeReady
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PBHFZXYP.js";
|
|
16
16
|
import {
|
|
17
17
|
launchManagedBrowser,
|
|
18
18
|
resolveManagedGpuMode
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DMMYNEAF.js";
|
|
20
20
|
import {
|
|
21
21
|
pageNavigationTimeoutMs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TWHNETZP.js";
|
|
23
23
|
import {
|
|
24
24
|
resolveCompositionViewportFromHtml
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-3VI6DSO6.js";
|
|
26
26
|
import {
|
|
27
27
|
defineCommand
|
|
28
28
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -35,14 +35,14 @@ import {
|
|
|
35
35
|
} from "./chunk-ZTZA4UWZ.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveNaturalMediaTimelineDuration
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-MXT76SSV.js";
|
|
39
39
|
import {
|
|
40
40
|
decodeWellFormedEscapes
|
|
41
41
|
} from "./chunk-BSQ7XANM.js";
|
|
42
42
|
import {
|
|
43
43
|
printDeprecationNotice,
|
|
44
44
|
withMeta
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-XLVUQGSA.js";
|
|
46
46
|
import {
|
|
47
47
|
normalizeErrorMessage
|
|
48
48
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -115,21 +115,30 @@ async function auditClipDurations(page, analyzeClipMediaFit, extraWaitMs) {
|
|
|
115
115
|
document.querySelectorAll("audio[data-duration]")
|
|
116
116
|
);
|
|
117
117
|
const deadline = Date.now() + maxWaitMs;
|
|
118
|
+
const reads = /* @__PURE__ */ new Map();
|
|
118
119
|
await Promise.all(
|
|
119
120
|
nodes.map((el) => {
|
|
120
121
|
if (Number.isFinite(el.duration) && el.duration > 0) return Promise.resolve();
|
|
122
|
+
const probe = new Audio();
|
|
123
|
+
probe.preload = "metadata";
|
|
124
|
+
probe.src = el.currentSrc || el.src || el.querySelector("source")?.src || "";
|
|
125
|
+
reads.set(el, probe);
|
|
121
126
|
return new Promise((resolve) => {
|
|
122
127
|
const cleanup = () => {
|
|
123
|
-
el
|
|
124
|
-
|
|
128
|
+
for (const target of [el, probe]) {
|
|
129
|
+
target.removeEventListener("loadedmetadata", onReady);
|
|
130
|
+
target.removeEventListener("error", onReady);
|
|
131
|
+
}
|
|
125
132
|
clearTimeout(timer);
|
|
126
133
|
};
|
|
127
134
|
const onReady = () => {
|
|
128
135
|
cleanup();
|
|
129
136
|
resolve();
|
|
130
137
|
};
|
|
131
|
-
|
|
132
|
-
|
|
138
|
+
for (const target of [el, probe]) {
|
|
139
|
+
target.addEventListener("loadedmetadata", onReady, { once: true });
|
|
140
|
+
target.addEventListener("error", onReady, { once: true });
|
|
141
|
+
}
|
|
133
142
|
const timer = setTimeout(onReady, Math.max(0, deadline - Date.now()));
|
|
134
143
|
});
|
|
135
144
|
})
|
|
@@ -148,7 +157,7 @@ async function auditClipDurations(page, analyzeClipMediaFit, extraWaitMs) {
|
|
|
148
157
|
"data-playback-rate": el.getAttribute("data-playback-rate"),
|
|
149
158
|
"data-automation": el.getAttribute("data-automation")
|
|
150
159
|
},
|
|
151
|
-
duration: el.duration,
|
|
160
|
+
duration: Number.isFinite(el.duration) ? el.duration : reads.get(el)?.duration ?? Number.NaN,
|
|
152
161
|
loop: el.loop || el.getAttribute("data-loop") === "true"
|
|
153
162
|
});
|
|
154
163
|
}
|
|
@@ -239,7 +248,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
239
248
|
async function localizeRemoteAssets(html) {
|
|
240
249
|
let dir;
|
|
241
250
|
try {
|
|
242
|
-
const { loadProducer } = await import("./producer-
|
|
251
|
+
const { loadProducer } = await import("./producer-T3FJ6HZE.js");
|
|
243
252
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
244
253
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
245
254
|
const assetDir = dir;
|
|
@@ -260,10 +269,10 @@ async function localizeRemoteAssets(html) {
|
|
|
260
269
|
}
|
|
261
270
|
async function validateInBrowser(project, opts) {
|
|
262
271
|
const projectDir = project.dir;
|
|
263
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
272
|
+
const { bundleToSingleHtml } = await import("./compiler-K7SH7OZQ.js");
|
|
264
273
|
const { ensureBrowser } = await import("./manager-COSJVRAE.js");
|
|
265
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
266
|
-
const { lintProject } = await import("./lintProject-
|
|
274
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-Q3BHJE7H.js");
|
|
275
|
+
const { lintProject } = await import("./lintProject-ESAJKFOX.js");
|
|
267
276
|
const lintResult = await lintProject(projectDir);
|
|
268
277
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
269
278
|
const html = await bundleToSingleHtml(projectDir);
|
|
@@ -284,9 +293,9 @@ async function validateInBrowser(project, opts) {
|
|
|
284
293
|
try {
|
|
285
294
|
const browser = await ensureBrowser();
|
|
286
295
|
const puppeteer = await import("puppeteer-core");
|
|
287
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
296
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-GIB5BUZZ.js");
|
|
288
297
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
289
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
298
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-AJX7YIAS.js");
|
|
290
299
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
291
300
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
292
301
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-2ST4WAFY.js";
|
|
13
13
|
import {
|
|
14
14
|
createProjectConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YU22E6SG.js";
|
|
16
16
|
import {
|
|
17
17
|
isHyperframesProject
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VKFHSZYS.js";
|
|
19
19
|
|
|
20
20
|
// src/utils/desktopApp.ts
|
|
21
21
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -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-Z43NJYG2.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
VALID_CANVAS_RESOLUTIONS,
|
|
9
9
|
resolveResolutionFlagPair
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XOTUPVIF.js";
|
|
11
11
|
|
|
12
12
|
// src/utils/parseOutputResolution.ts
|
|
13
13
|
function parseOutputResolutionFlag(raw, options) {
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W226NPSC.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6RNGEUL3.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2TU4OKIR.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NTMKBXWW.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-IKTCBFN5.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WFHA6WC3.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-GIB5BUZZ.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -7,19 +7,23 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ambiguousIssue,
|
|
9
9
|
loadBrowserScript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QSJUDSIC.js";
|
|
11
11
|
import {
|
|
12
12
|
auditClipDurations,
|
|
13
13
|
shouldIgnoreHttpError,
|
|
14
14
|
shouldIgnoreRequestFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3OKZJYA7.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MYVC3XTH.js";
|
|
19
|
+
import {
|
|
20
|
+
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
21
|
+
STUDIO_PREVIEW_MARK_META
|
|
22
|
+
} from "./chunk-XJDMYIUI.js";
|
|
19
23
|
import {
|
|
20
24
|
artifactDirectory,
|
|
21
25
|
finishSnapshotRun
|
|
22
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PGDWNIOK.js";
|
|
23
27
|
import {
|
|
24
28
|
FfmpegUnavailableError,
|
|
25
29
|
decideMediaProxyEligibility,
|
|
@@ -27,7 +31,7 @@ import {
|
|
|
27
31
|
proxyVariantFor,
|
|
28
32
|
resolveProxies,
|
|
29
33
|
scanProjectMediaCodecMap
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-MK6FWMMF.js";
|
|
31
35
|
import {
|
|
32
36
|
AUDIT_SEEK_OPTIONS,
|
|
33
37
|
DEFAULT_ZOOM_PADDING_PX,
|
|
@@ -41,17 +45,20 @@ import {
|
|
|
41
45
|
seekCompositionTimeline,
|
|
42
46
|
seekInPage,
|
|
43
47
|
waitForPreferredSeekTarget
|
|
44
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-PBHFZXYP.js";
|
|
45
49
|
import {
|
|
46
50
|
BrowserCleanupError,
|
|
47
51
|
closeManagedBrowser
|
|
48
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-DMMYNEAF.js";
|
|
49
53
|
import {
|
|
50
54
|
findStageProxyBox
|
|
51
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-3VI6DSO6.js";
|
|
52
56
|
import {
|
|
53
57
|
resolveAutoProxy
|
|
54
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-YU22E6SG.js";
|
|
59
|
+
import {
|
|
60
|
+
injectTagsAtHeadStart
|
|
61
|
+
} from "./chunk-MXT76SSV.js";
|
|
55
62
|
import {
|
|
56
63
|
normalizeErrorMessage
|
|
57
64
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -388,9 +395,15 @@ function proxyCached(projectDir, source) {
|
|
|
388
395
|
function proxyFailedDraft(message) {
|
|
389
396
|
return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
|
|
390
397
|
}
|
|
398
|
+
async function loadCheckHtml(dir) {
|
|
399
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-CJL3HHSF.js");
|
|
400
|
+
return injectTagsAtHeadStart(
|
|
401
|
+
await bundleWithLocalizedFonts(dir),
|
|
402
|
+
`<meta name="${STUDIO_PREVIEW_MARK_META}" content="${STUDIO_PREVIEW_CAPTURE_MODE}">`
|
|
403
|
+
);
|
|
404
|
+
}
|
|
391
405
|
async function runBrowserCheck(project, options, motion, runGrid, deadline, prelaunched) {
|
|
392
|
-
const
|
|
393
|
-
const html = await bundleWithLocalizedFonts(project.dir);
|
|
406
|
+
const html = await loadCheckHtml(project.dir);
|
|
394
407
|
deadline?.enter("copies");
|
|
395
408
|
const { findings: drafts, failedPaths } = await preResolveHostileMediaProxies(
|
|
396
409
|
project.dir,
|
|
@@ -442,7 +455,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
442
455
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
443
456
|
}));
|
|
444
457
|
const launchSettleMs = Date.now() - launchSettleStart;
|
|
445
|
-
const { analyzeClipMediaFit } = await import("./src-
|
|
458
|
+
const { analyzeClipMediaFit } = await import("./src-GIB5BUZZ.js");
|
|
446
459
|
for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
|
|
447
460
|
drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
|
|
448
461
|
}
|
|
@@ -559,8 +572,7 @@ function mergeHelperDrafts(primary, helper) {
|
|
|
559
572
|
}
|
|
560
573
|
async function captureFindingCrops(project, options, requests, deadline) {
|
|
561
574
|
if (requests.length === 0) return [];
|
|
562
|
-
const
|
|
563
|
-
const html = await bundleWithLocalizedFonts(project.dir);
|
|
575
|
+
const html = await loadCheckHtml(project.dir);
|
|
564
576
|
const server = await serveStaticProjectHtml(
|
|
565
577
|
project.dir,
|
|
566
578
|
html,
|
|
@@ -786,8 +798,27 @@ function wireNetworkListeners(page, drafts, clock) {
|
|
|
786
798
|
});
|
|
787
799
|
});
|
|
788
800
|
}
|
|
801
|
+
function failWhenPageDies(page, driver) {
|
|
802
|
+
const dead = new Promise((_, reject) => {
|
|
803
|
+
page.on(
|
|
804
|
+
"error",
|
|
805
|
+
(error) => reject(new Error(`The page crashed: ${normalizeErrorMessage(error)}`))
|
|
806
|
+
);
|
|
807
|
+
page.on("close", () => reject(new Error("The page closed before the check finished")));
|
|
808
|
+
});
|
|
809
|
+
dead.catch(() => void 0);
|
|
810
|
+
return Object.fromEntries(
|
|
811
|
+
Object.entries(driver).map(([name, member]) => [
|
|
812
|
+
name,
|
|
813
|
+
typeof member === "function" ? (...args) => {
|
|
814
|
+
const result = Reflect.apply(member, driver, args);
|
|
815
|
+
return result instanceof Promise ? Promise.race([result, dead]) : result;
|
|
816
|
+
} : member
|
|
817
|
+
])
|
|
818
|
+
);
|
|
819
|
+
}
|
|
789
820
|
function createPageDriver(page, clock = createRuntimeClock(), sampleLog) {
|
|
790
|
-
return {
|
|
821
|
+
return failWhenPageDies(page, {
|
|
791
822
|
initialize: (contrast) => injectAuditScripts(page, contrast),
|
|
792
823
|
markSamples: (phase) => {
|
|
793
824
|
if (!sampleLog) return;
|
|
@@ -836,7 +867,7 @@ function createPageDriver(page, clock = createRuntimeClock(), sampleLog) {
|
|
|
836
867
|
collectContrast: (time, annotations) => collectContrast(page, time, annotations),
|
|
837
868
|
collectCraftFrame: (time) => collectCraftFrame(page, time),
|
|
838
869
|
collectCraftFilm: () => collectCraftFilm(page)
|
|
839
|
-
};
|
|
870
|
+
});
|
|
840
871
|
}
|
|
841
872
|
async function collectCraftFrame(page, time) {
|
|
842
873
|
const raw = await page.evaluate(() => {
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
stoppedByCancelSignal
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JCBZI47W.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_MODEL,
|
|
12
12
|
ensureModel,
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
hasFFmpeg,
|
|
15
15
|
pinnedWhisperModel,
|
|
16
16
|
sha256File
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DHSNTPEW.js";
|
|
18
18
|
import {
|
|
19
19
|
findFFmpeg,
|
|
20
20
|
findFFprobe,
|
|
21
21
|
getFFmpegInstallHint
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-E7NEF2SC.js";
|
|
23
23
|
import {
|
|
24
24
|
findWavChunk
|
|
25
25
|
} from "./chunk-UOFAE5RF.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
stripEmbeddedRuntimeScripts,
|
|
40
40
|
styleElementsFor,
|
|
41
41
|
warnUnknownEnumValues
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-MXT76SSV.js";
|
|
43
43
|
import {
|
|
44
44
|
cssVariableName
|
|
45
45
|
} from "./chunk-VC76R6W2.js";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
} from "./chunk-OFQWTKPW.js";
|
|
50
50
|
import {
|
|
51
51
|
lintHyperframeHtml
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-2TU4OKIR.js";
|
|
53
53
|
import {
|
|
54
54
|
checkSubCompositionUsability,
|
|
55
55
|
resolveSubCompositionContent
|
|
@@ -2368,7 +2368,7 @@ function rebaseEntryAuthoredAssetPaths(document, sourceDir, projectDir) {
|
|
|
2368
2368
|
el.setAttribute(HF_COLOR_GRADING_ATTR, rebaseColorGradingLutPath(value, sourceDir, projectDir));
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
|
-
function inlineCssFile(css, cssFileDir, projectDir,
|
|
2371
|
+
function inlineCssFile(css, cssFileDir, projectDir, activeImports) {
|
|
2372
2372
|
const { result: strippedCss, restore: restoreComments } = withCommentsStripped(css, (s) => s);
|
|
2373
2373
|
const importPlaceholders = [];
|
|
2374
2374
|
const withPlaceholders = strippedCss.replace(CSS_IMPORT_RE, (full, _q1, urlPath, _q2, barePath, mediaQuery) => {
|
|
@@ -2378,13 +2378,14 @@ function inlineCssFile(css, cssFileDir, projectDir, visited = /* @__PURE__ */ ne
|
|
|
2378
2378
|
const resolved = resolve2(cssFileDir, decodedUrlPath(importPath));
|
|
2379
2379
|
if (!isSafePath(projectDir, resolved))
|
|
2380
2380
|
return full;
|
|
2381
|
-
if (
|
|
2381
|
+
if (activeImports.has(resolved))
|
|
2382
2382
|
return "";
|
|
2383
2383
|
const content = safeReadFile(resolved);
|
|
2384
2384
|
if (content == null)
|
|
2385
2385
|
return full;
|
|
2386
|
-
|
|
2387
|
-
const inlined = inlineCssFile(content, dirname(resolved), projectDir,
|
|
2386
|
+
activeImports.add(resolved);
|
|
2387
|
+
const inlined = inlineCssFile(content, dirname(resolved), projectDir, activeImports);
|
|
2388
|
+
activeImports.delete(resolved);
|
|
2388
2389
|
const trimmedMedia = (mediaQuery || "").trim();
|
|
2389
2390
|
const block = trimmedMedia ? `@media ${trimmedMedia} {
|
|
2390
2391
|
${inlined}
|
|
@@ -2516,7 +2517,8 @@ function createAssetInliner(resolveProjectPath, inlineAssets) {
|
|
|
2516
2517
|
return null;
|
|
2517
2518
|
}
|
|
2518
2519
|
inlinedChars += asset.dataUrl.length;
|
|
2519
|
-
|
|
2520
|
+
const hashIdx = suffix.indexOf("#");
|
|
2521
|
+
return hashIdx < 0 ? asset.dataUrl : `${asset.dataUrl}${suffix.slice(hashIdx)}`;
|
|
2520
2522
|
};
|
|
2521
2523
|
}
|
|
2522
2524
|
function isExternalSvgFragmentUse(el, attr, urlValue) {
|
|
@@ -3003,7 +3005,7 @@ async function bundleProject(projectDir, options) {
|
|
|
3003
3005
|
if (value !== null)
|
|
3004
3006
|
style.setAttribute(name, value);
|
|
3005
3007
|
}
|
|
3006
|
-
style.textContent = inlineCssFile(css, dirname(cssPath), projectDir);
|
|
3008
|
+
style.textContent = inlineCssFile(css, dirname(cssPath), projectDir, /* @__PURE__ */ new Set([cssPath]));
|
|
3007
3009
|
el.replaceWith(style);
|
|
3008
3010
|
}
|
|
3009
3011
|
const rootScripts = options?.sceneParts ? [
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
isHttpUrl,
|
|
10
10
|
renameWithRetry,
|
|
11
11
|
runFfmpeg
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WFHA6WC3.js";
|
|
13
13
|
import {
|
|
14
14
|
parseAnimatedGifMetadata
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VKFHSZYS.js";
|
|
16
16
|
import {
|
|
17
17
|
parseHTML
|
|
18
18
|
} from "./chunk-SDYDNHEE.js";
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
formatVariableValidationIssue,
|
|
21
21
|
validateVariables
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VKFHSZYS.js";
|
|
23
23
|
import {
|
|
24
24
|
extractCompositionMetadata
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XOTUPVIF.js";
|
|
26
26
|
|
|
27
27
|
// src/utils/variables.ts
|
|
28
28
|
import { readFileSync } from "fs";
|
|
@@ -14,33 +14,33 @@ import {
|
|
|
14
14
|
} from "./chunk-6JR2XUEE.js";
|
|
15
15
|
import {
|
|
16
16
|
readCompositionFps
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-I7BLPFXV.js";
|
|
18
18
|
import {
|
|
19
19
|
HF_AUDIO_GROUP_ATTR,
|
|
20
20
|
extractAudioMetadata,
|
|
21
21
|
extractMediaMetadata
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WFHA6WC3.js";
|
|
23
23
|
import {
|
|
24
24
|
byStart,
|
|
25
25
|
fpsToNumber,
|
|
26
26
|
parseFpsWithDefault
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-VKFHSZYS.js";
|
|
28
28
|
import {
|
|
29
29
|
HF_AUDIO_AUTOMATION_ATTR,
|
|
30
30
|
HF_AUDIO_FX_ATTR,
|
|
31
31
|
parseAudioFxChain,
|
|
32
32
|
parseAutomation,
|
|
33
33
|
resolveAutomation
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-MXT76SSV.js";
|
|
35
35
|
import {
|
|
36
36
|
isSubCompositionHost,
|
|
37
37
|
topLevelElements,
|
|
38
38
|
trackKindOf
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XOTUPVIF.js";
|
|
40
40
|
import {
|
|
41
41
|
resolveReferencedDuration,
|
|
42
42
|
resolveReferencedStart
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-2TU4OKIR.js";
|
|
44
44
|
import {
|
|
45
45
|
resolveAuthoredAssetFile
|
|
46
46
|
} from "./chunk-6BNTGNGD.js";
|