hyperframes 0.8.189 → 0.8.191
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-TIKUM2YX.js → add-S2ZQYG52.js} +11 -11
- package/dist/{animatedGifPrep-25X4G5IE.js → animatedGifPrep-3JA2CQ3U.js} +6 -6
- package/dist/api.js +14 -14
- package/dist/{asset-TPKLIP4R.js → asset-2CNTAPOC.js} +2 -2
- package/dist/{assetCataloger-PQAIV3FI.js → assetCataloger-5HXLXL7C.js} +6 -6
- package/dist/{audio-6RLPKB5X.js → audio-DZTSYHXS.js} +12 -12
- package/dist/{auth-O7QSTP6Y.js → auth-GX3M6TJ4.js} +1 -1
- package/dist/{autoUpdate-TIEJODP7.js → autoUpdate-EDIWE4Z5.js} +2 -2
- package/dist/{backgroundChecks-K2AXYDYG.js → backgroundChecks-VPUPJ7UI.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-ORVWYJAH.js → batchRender-JHIIDBJR.js} +3 -3
- package/dist/{beats-2VTB2ATR.js → beats-PZRVTRYW.js} +4 -4
- package/dist/{benchmark-NLNBL6YR.js → benchmark-22UFDW2N.js} +8 -8
- package/dist/{browser-M5UV6VJB.js → browser-VRDWYIUM.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-EDD2XDS2.js → bundleWithLocalizedFonts-23QDKFSN.js} +2 -2
- package/dist/{capture-WHWEE5FE.js → capture-NFCBXHDE.js} +2 -2
- package/dist/{capture-JSYVNFKO.js → capture-TOCLXYMJ.js} +9 -9
- package/dist/{captureCompositionFrame-JANGQCIA.js → captureCompositionFrame-BEM6MF7F.js} +13 -11
- package/dist/{catalog-MPOOKNSZ.js → catalog-NXS35KM7.js} +11 -11
- package/dist/{catch-up-6KZV3UMZ.js → catch-up-6WJBUI2C.js} +4 -4
- package/dist/{check-G273NWK7.js → check-WVEBMWN5.js} +33 -33
- package/dist/{checkBrowser-G53E2ZQI.js → checkBrowser-RT45HJ36.js} +28 -28
- package/dist/{chunk-ZPMF6GAQ.js → chunk-2WNVHZHA.js} +11 -7
- package/dist/{chunk-TSFA2Y5C.js → chunk-3NRB7YXW.js} +3 -2
- package/dist/{chunk-44TJOEH5.js → chunk-3WJT2JCX.js} +32 -25
- package/dist/{chunk-VRQU564T.js → chunk-3XI7MIZB.js} +1 -1
- package/dist/{chunk-AYBKDHYD.js → chunk-7A65UCMI.js} +1 -1
- package/dist/{chunk-HUG47UEE.js → chunk-7FF36MAD.js} +1 -1
- package/dist/{chunk-6RA4TWGV.js → chunk-7LUJE3II.js} +1 -1
- package/dist/{chunk-GWYMAII7.js → chunk-7NKJS5KM.js} +1 -1
- package/dist/{chunk-37EPEFXM.js → chunk-7ZJEQY7Q.js} +1 -1
- package/dist/{chunk-AQ3L7DVB.js → chunk-ALEF2F5N.js} +2 -2
- package/dist/{chunk-74Y43RJZ.js → chunk-AQB5M53R.js} +3 -3
- package/dist/{chunk-M6FHSQZ3.js → chunk-BFFLKQVB.js} +3 -3
- package/dist/{chunk-CTF7BYCV.js → chunk-CINKQY6M.js} +3 -3
- package/dist/{chunk-BZQLTNMB.js → chunk-COETAXRN.js} +1 -1
- package/dist/{chunk-SGFMCNLY.js → chunk-COWQITWP.js} +1 -1
- package/dist/{chunk-3X6LH25W.js → chunk-CXMXJEVY.js} +1 -1
- package/dist/{chunk-NDBWI7OA.js → chunk-DOOSC34Z.js} +5 -5
- package/dist/{chunk-F45HHA3M.js → chunk-EFCKV7MY.js} +1 -1
- package/dist/{chunk-R5FS7GFU.js → chunk-FBDOHH3Q.js} +1 -1
- package/dist/{chunk-3OLOVRWS.js → chunk-GLG5JWLI.js} +1 -1
- package/dist/{chunk-WYCFMNU3.js → chunk-GM3WIOO6.js} +1 -1
- package/dist/{chunk-FJF5JBYU.js → chunk-HYW6HTAK.js} +1 -1
- package/dist/{chunk-KS4HMJJD.js → chunk-JGTRVG32.js} +1 -1
- package/dist/{chunk-Z2BW2WJS.js → chunk-JJJCFKMF.js} +1 -1
- package/dist/{chunk-4DZ3HBKF.js → chunk-JOLZ3BSL.js} +1 -1
- package/dist/{chunk-IFXOMIBP.js → chunk-JTPHFYZI.js} +3 -3
- package/dist/{chunk-TREMHDWT.js → chunk-JYSSPQDT.js} +56 -21
- package/dist/{chunk-OHXHBMF4.js → chunk-KAC2WR7P.js} +1 -1
- package/dist/{chunk-JZDVIDFH.js → chunk-KGMHMYWI.js} +2 -2
- package/dist/{chunk-2CYM34M7.js → chunk-KHCTBZGJ.js} +3 -3
- package/dist/{chunk-TPTQHOXU.js → chunk-KV72BP7O.js} +9 -9
- package/dist/{chunk-5HJJEHGE.js → chunk-LBNEH6IQ.js} +1 -1
- package/dist/chunk-LM265QNK.js +3896 -0
- package/dist/{chunk-ASZ4IQB4.js → chunk-MSM6VRQ4.js} +2 -2
- package/dist/{chunk-GBT7P3OQ.js → chunk-NJGTNWQY.js} +5 -5
- package/dist/{chunk-HXM2ISEK.js → chunk-NMDUSCCE.js} +377 -233
- package/dist/{chunk-5544QB3U.js → chunk-OV6KHXLX.js} +1 -1
- package/dist/{chunk-QYQ2EYOI.js → chunk-RE3EEBWC.js} +3 -3
- package/dist/{chunk-XJVXROOL.js → chunk-RQBB7PYT.js} +2 -2
- package/dist/{chunk-TFUAKV6O.js → chunk-RWYUK7LM.js} +1 -1
- package/dist/{chunk-JIPUWKLA.js → chunk-SMEF3TRJ.js} +26 -14
- package/dist/{chunk-CSYSEPWL.js → chunk-T5YF32WV.js} +5 -5
- package/dist/{chunk-B634ZCY2.js → chunk-TADJOIFW.js} +1 -1
- package/dist/{chunk-IPEP346Y.js → chunk-TFGO5YMI.js} +1 -1
- package/dist/{chunk-HQIFMCQN.js → chunk-TFMZ4RKM.js} +85 -38
- package/dist/{chunk-565X6Q4X.js → chunk-TJKE4EYX.js} +16 -8
- package/dist/{chunk-WMJJCHVQ.js → chunk-TRZVS6TL.js} +2 -2
- package/dist/{chunk-NSJ5HD6A.js → chunk-U5GTDAQL.js} +5 -5
- package/dist/{chunk-4QFKGRTB.js → chunk-UNR3P7IF.js} +2 -2
- package/dist/{chunk-SMF6YAUL.js → chunk-VYQYVYQ5.js} +2 -2
- package/dist/{chunk-T37XXYRK.js → chunk-W3CS2KFV.js} +1 -1
- package/dist/{chunk-KLWUB37U.js → chunk-WHAEJX26.js} +7 -7
- package/dist/{chunk-ANYBRVPF.js → chunk-WJEVUPVD.js} +1 -1
- package/dist/{chunk-QMFI4N7J.js → chunk-WQ3X5OH4.js} +1 -1
- package/dist/{chunk-HNMDLKA4.js → chunk-WY3TQ2PT.js} +1 -1
- package/dist/{chunk-B52BJM5K.js → chunk-XMSQRDAK.js} +2 -2
- package/dist/{chunk-E7TI5PAQ.js → chunk-XWOCXIKR.js} +1 -1
- package/dist/{chunk-E676Y7AY.js → chunk-ZHKUIC7X.js} +42 -14
- package/dist/{clean-PS4VYGQ6.js → clean-3VIU2BSK.js} +14 -14
- package/dist/cli.js +53 -53
- package/dist/{cloud-E47CE5VQ.js → cloud-NA3J4XW2.js} +4 -4
- package/dist/{cloudrun-3J4SQBXE.js → cloudrun-4MHOF7UT.js} +4 -4
- package/dist/commands/layout-audit.browser.js +64 -3
- package/dist/{compare-EAKHXBDO.js → compare-ZR7XRPPT.js} +29 -26
- package/dist/{compiler-23MT6CX6.js → compiler-MA2ELZPG.js} +3 -3
- package/dist/{component-QBOXYJJS.js → component-ZJSOPUAM.js} +3 -3
- package/dist/{compositions-QC3EO3MJ.js → compositions-WA5V2SHF.js} +10 -10
- package/dist/{delete-TXEOLPC6.js → delete-UC427UEA.js} +2 -2
- package/dist/{deploy-3B3WJ6PM.js → deploy-B5UO4UIK.js} +1 -1
- package/dist/{dist-F4UJFK4S.js → dist-BPK37SAB.js} +2 -2
- package/dist/{dist-JH32CBQL.js → dist-XGPSPKKP.js} +1 -1
- package/dist/docs/rendering.md +2 -2
- package/dist/{doctor-2CRFH4B3.js → doctor-ZERCTKEK.js} +10 -10
- package/dist/{events-GUIOSBIB.js → events-CNIXB2QK.js} +3 -3
- package/dist/{events-KVTX3QFV.js → events-DCOZQERS.js} +2 -2
- package/dist/{feedback-VQIOSTIB.js → feedback-YBD5ITTY.js} +6 -6
- package/dist/{ffmpeg-BPCZGXFW.js → ffmpeg-V4BBFDTG.js} +6 -6
- package/dist/{figma-QIOKCH26.js → figma-Z45ZYVGE.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{get-TU45SNXF.js → get-23NXQWCD.js} +2 -2
- package/dist/{gpuPolicy-AWAJBGYY.js → gpuPolicy-H6ABHVEB.js} +6 -6
- package/dist/{grade-compare-LDNUXX3Q.js → grade-compare-ZPX2G3UV.js} +26 -26
- package/dist/{help-YUCHJKKL.js → help-EP4CDPLO.js} +1 -1
- package/dist/{history-MMHFUMIG.js → history-E5OSXO74.js} +6 -6
- 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-HBHOFSC2.js → info-2HHGSW5H.js} +7 -7
- package/dist/{init-3E4GUXIZ.js → init-ENEG6RZT.js} +26 -26
- package/dist/{inspect-YNUPJVIH.js → inspect-PVQK4E2A.js} +26 -26
- package/dist/{installer-WLCRP33K.js → installer-YGGLEOSF.js} +4 -4
- package/dist/{keyframes-Z47GHCGO.js → keyframes-UWSYS2SL.js} +6 -6
- package/dist/{lambda-CA4PEUO2.js → lambda-L3LPXC2M.js} +7 -7
- package/dist/{layout-YPV6PIKF.js → layout-JVL4QREC.js} +26 -26
- package/dist/{lint-3AVVQ74A.js → lint-JXQ72DDB.js} +7 -7
- package/dist/{lintProject-XM3DLUKG.js → lintProject-F7IC7WY4.js} +1 -1
- package/dist/{list-JH52Y735.js → list-UFMLM3VV.js} +2 -2
- package/dist/{login-G7NPJUAW.js → login-CKGMWQJN.js} +4 -4
- package/dist/{manager-2LSMMZY4.js → manager-U6OP3EXB.js} +7 -7
- package/dist/{media-treatment-BVMMD5EN.js → media-treatment-MFMEWCDY.js} +12 -12
- package/dist/{models-P3TNRVRV.js → models-QA3TJ75Y.js} +10 -10
- package/dist/{motionShot-LK62QHNE.js → motionShot-NV2OPJHD.js} +14 -14
- package/dist/{normalize-audio-Y7BAQ7AR.js → normalize-audio-JWJRUKK2.js} +4 -4
- package/dist/{open-CCFFLAT7.js → open-PTJNDRER.js} +11 -11
- package/dist/{parakeetRunner-N2BWSOSD.js → parakeetRunner-B5FCWWOO.js} +11 -11
- package/dist/{pipeline-3VT2DQGU.js → pipeline-N26NA6ZG.js} +7 -7
- package/dist/{play-G4I5IFHO.js → play-45D6X6TV.js} +17 -17
- package/dist/{preflight-2KU2QLCZ.js → preflight-MFOHPUOI.js} +7 -7
- package/dist/{present-EJ7XHGQO.js → present-IFBUDI4D.js} +13 -13
- package/dist/{preview-O23BYFAY.js → preview-MQRLXQOV.js} +18 -17
- package/dist/{producer-UJQVLKLP.js → producer-2QG7HLAW.js} +1 -1
- package/dist/{projectConfig-QFVIBT37.js → projectConfig-I4FTZXHB.js} +6 -6
- package/dist/{publication-4UYGFB2X.js → publication-3GOFXCGU.js} +2 -2
- package/dist/{publish-MHLVJLCR.js → publish-3B2TZCFH.js} +8 -8
- package/dist/{remove-background-N7AHTZWP.js → remove-background-RK4BJDBF.js} +8 -8
- package/dist/{render-6HQV4LZJ.js → render-BV6FWFX3.js} +7 -6
- package/dist/{render-EI2ODKOP.js → render-PW3XGS7B.js} +28 -28
- package/dist/{render-CDATEVDJ.js → render-SJ4HFPFU.js} +13 -13
- package/dist/{render-batch-F7HMC7XH.js → render-batch-GKX54O6N.js} +7 -6
- package/dist/renderSetupWorker.js +1 -1
- package/dist/{resolver-63DB5JCY.js → resolver-RQJ7CNXD.js} +4 -4
- package/dist/{sherpa-AK3MTPL3.js → sherpa-XZPG7QFF.js} +10 -10
- package/dist/{sites-5PWHAMEG.js → sites-Q2S3DZY4.js} +2 -1
- package/dist/skills/hyperframes/references/captions.md +1 -1
- package/dist/skills/hyperframes/references/motion.md +1 -1
- package/dist/skills/hyperframes-cli/references/cloudrun.md +1 -1
- package/dist/skills/hyperframes-cli/references/lambda.md +1 -1
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +2 -2
- package/dist/skills/hyperframes-cli/references/preview-render.md +1 -1
- package/dist/skills/hyperframes-cli/references/upgrade-info-misc.md +0 -8
- package/dist/skills/media-use/audio/references/transcribe.md +2 -2
- package/dist/skills/media-use/references/audio.md +1 -1
- package/dist/{skills-EVIDL7PV.js → skills-EYLB2V6F.js} +5 -5
- package/dist/{skillsUpdateCheck-YCNJYDJO.js → skillsUpdateCheck-TE6K5ROM.js} +3 -3
- package/dist/{snapshot-WSYZKR3C.js → snapshot-FE4T3SCN.js} +48 -33
- package/dist/{src-KTD6WTEV.js → src-SEJ7LNNB.js} +7 -7
- package/dist/{src-YNXBU4ZQ.js → src-ZOXSEJCD.js} +5 -5
- package/dist/{staticProjectServer-D2D3BKBP.js → staticProjectServer-LSVIRDRO.js} +14 -14
- package/dist/studio/assets/{hyperframes-player-CkK8Zijf.js → hyperframes-player-Bv9hQ3v7.js} +1 -1
- package/dist/studio/assets/index-CBO8uz7-.css +1 -0
- package/dist/studio/assets/{index-B2JcCaRF.js → index-D_QqfWhx.js} +133 -132
- package/dist/studio/assets/{index-ATnRoBug.js → index-Df14bh-L.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-3ZGQPE5J.js → studio-api-SL2Z76NU.js} +7 -7
- package/dist/{studioServer-VWM4J7ZP.js → studioServer-BADWVIHU.js} +44 -44
- package/dist/{telemetry-BEVI64BB.js → telemetry-RN6VYEID.js} +3 -3
- package/dist/{timeline-P57FUXJQ.js → timeline-JBTCIPLU.js} +15 -15
- package/dist/{tokens-OUQY6LPD.js → tokens-A7V7UHNK.js} +2 -2
- package/dist/{transcribe-CK66VIU4.js → transcribe-E4BOSNM4.js} +9 -9
- package/dist/{transcribe-QUPX67KC.js → transcribe-NTUCJGFI.js} +16 -16
- package/dist/{updateCheck-XZ43CH3L.js → updateCheck-M7UAYLUR.js} +2 -2
- package/dist/{upgrade-7QQNGI7I.js → upgrade-A2COSIMB.js} +2 -2
- package/dist/{urlDownloader-ESAEL6YX.js → urlDownloader-MBSQYART.js} +5 -5
- package/dist/{validate-5GZ6KFRU.js → validate-NODZYBHY.js} +20 -20
- package/dist/{video-AQNVR6PE.js → video-LBCUUYK7.js} +6 -6
- package/dist/warmCheck.js +33 -33
- package/package.json +1 -1
- package/dist/chunk-BPX7LZG6.js +0 -3896
- package/dist/studio/assets/index-CESvLzz0.css +0 -1
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-AQB5M53R.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RWYUK7LM.js";
|
|
28
28
|
import {
|
|
29
29
|
verifies
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7LUJE3II.js";
|
|
31
31
|
import {
|
|
32
32
|
PARAKEET_MODEL_LABEL,
|
|
33
33
|
SHERPA_ERROR_PREFIX,
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TFGO5YMI.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-W3CS2KFV.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3NRB7YXW.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TADJOIFW.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-ZTZA4UWZ.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NMDUSCCE.js";
|
|
33
33
|
import {
|
|
34
34
|
getAvailableMemoryMb,
|
|
35
35
|
getFreeDiskMb,
|
|
@@ -39,14 +39,14 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
getUpdateMeta,
|
|
41
41
|
withMeta
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KAC2WR7P.js";
|
|
43
43
|
import {
|
|
44
44
|
CONFIG_PATH,
|
|
45
45
|
withFileLock
|
|
46
46
|
} from "./chunk-XUXGIA7H.js";
|
|
47
47
|
import {
|
|
48
48
|
VERSION
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-MSM6VRQ4.js";
|
|
50
50
|
import {
|
|
51
51
|
normalizeErrorMessage
|
|
52
52
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -232,7 +232,7 @@ function checkEnvironment() {
|
|
|
232
232
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
233
233
|
}
|
|
234
234
|
async function checkWhisper() {
|
|
235
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
235
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-U6OP3EXB.js");
|
|
236
236
|
const result = findWhisper();
|
|
237
237
|
if (result) {
|
|
238
238
|
return { ok: true, detail: result.executablePath };
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
shouldTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W3CS2KFV.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
findFFmpeg,
|
|
16
16
|
findFFprobe,
|
|
17
17
|
getFFmpegInstallHint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GLG5JWLI.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_VP9_CPU_USED,
|
|
21
21
|
SDR_RGB_TO_BT709_FILTER,
|
|
22
22
|
SDR_RGB_TO_TAGGED_BT709_FILTER,
|
|
23
23
|
renderProvenanceArgs
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NMDUSCCE.js";
|
|
25
25
|
|
|
26
26
|
// src/background-removal/pipeline.ts
|
|
27
27
|
import { spawn } from "child_process";
|
|
@@ -262,7 +262,7 @@ function inferInputKind(inputPath) {
|
|
|
262
262
|
}
|
|
263
263
|
async function probeMedia(inputPath) {
|
|
264
264
|
const isImage = inferInputKind(inputPath) === "image";
|
|
265
|
-
const engine = await import("./src-
|
|
265
|
+
const engine = await import("./src-ZOXSEJCD.js");
|
|
266
266
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
267
267
|
if (isImage) {
|
|
268
268
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -8,31 +8,31 @@ import {
|
|
|
8
8
|
launchManagedBrowser,
|
|
9
9
|
resolveManagedGpuMode,
|
|
10
10
|
rethrowAfterBrowserCleanup
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WY3TQ2PT.js";
|
|
12
12
|
import {
|
|
13
13
|
gotoWhenSent
|
|
14
14
|
} from "./chunk-MOEGCMKI.js";
|
|
15
15
|
import {
|
|
16
16
|
pageNavigationTimeoutMs,
|
|
17
17
|
windowsChromeCrashRemediation
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TJKE4EYX.js";
|
|
19
19
|
import {
|
|
20
20
|
oneProcessOverPipe
|
|
21
21
|
} from "./chunk-DKPNNYBZ.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveCompositionViewportFromHtml
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-COWQITWP.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveLocalBrowserGpuMode,
|
|
27
27
|
resolveLocalWebGpu
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XMSQRDAK.js";
|
|
29
29
|
import {
|
|
30
30
|
c
|
|
31
31
|
} from "./chunk-ZTZA4UWZ.js";
|
|
32
32
|
import {
|
|
33
33
|
assertWebGpuAdapterAvailable,
|
|
34
34
|
compositionRequiresWebGpu
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NMDUSCCE.js";
|
|
36
36
|
import {
|
|
37
37
|
normalizeErrorMessage
|
|
38
38
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -49,10 +49,12 @@ var AUDIT_SEEK_OPTIONS = {
|
|
|
49
49
|
animationFrameSettle: "double",
|
|
50
50
|
waitForFontsMs: 500
|
|
51
51
|
};
|
|
52
|
+
var SCREENSHOT_IMAGE_WAIT_MS = 3e3;
|
|
52
53
|
var SCREENSHOT_SEEK_OPTIONS = {
|
|
53
54
|
...AUDIT_SEEK_OPTIONS,
|
|
54
|
-
waitForImagesMs:
|
|
55
|
+
waitForImagesMs: SCREENSHOT_IMAGE_WAIT_MS
|
|
55
56
|
};
|
|
57
|
+
var ALL_IMAGES_SETTLED = { pending: [], failed: [] };
|
|
56
58
|
var DENSE_GEOMETRY_SEEK_OPTIONS = {
|
|
57
59
|
...AUDIT_SEEK_OPTIONS,
|
|
58
60
|
animationFrameSettle: "none",
|
|
@@ -138,7 +140,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
138
140
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
139
141
|
});
|
|
140
142
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
141
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
143
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-ZOXSEJCD.js");
|
|
142
144
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
143
145
|
await waitForImagesReady(
|
|
144
146
|
page,
|
|
@@ -187,7 +189,7 @@ async function installPageFunctionGuard(page) {
|
|
|
187
189
|
async function openSettledCompositionPage(html, url, options) {
|
|
188
190
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
189
191
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
190
|
-
const answer = (await import("./staticProjectServer-
|
|
192
|
+
const answer = (await import("./staticProjectServer-LSVIRDRO.js")).inProcessAnswer(url);
|
|
191
193
|
const noListen = answer !== void 0;
|
|
192
194
|
let chromeBrowser;
|
|
193
195
|
try {
|
|
@@ -198,7 +200,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
198
200
|
options.onBrowserReady?.();
|
|
199
201
|
const page = await chromeBrowser.newPage();
|
|
200
202
|
await installPageFunctionGuard(page);
|
|
201
|
-
const { installMediaRenderIdBridge } = await import("./src-
|
|
203
|
+
const { installMediaRenderIdBridge } = await import("./src-ZOXSEJCD.js");
|
|
202
204
|
await installMediaRenderIdBridge(page);
|
|
203
205
|
await page.setViewport(viewport);
|
|
204
206
|
if (answer) await answerPageInProcess(page, url, answer);
|
|
@@ -217,7 +219,7 @@ async function launchCompositionBrowser(html, noListen, options) {
|
|
|
217
219
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-UHWEKPXC.js");
|
|
218
220
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
219
221
|
const puppeteer = await import("puppeteer-core");
|
|
220
|
-
const { buildChromeArgs } = await import("./src-
|
|
222
|
+
const { buildChromeArgs } = await import("./src-ZOXSEJCD.js");
|
|
221
223
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
222
224
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
223
225
|
let softwareWebGpu = false;
|
|
@@ -400,11 +402,12 @@ async function settleCompositionSeek(page, options = {}) {
|
|
|
400
402
|
if (waitForFontsMs > 0) {
|
|
401
403
|
await waitForCompositionFonts(page, waitForFontsMs, animationFrameSettle === "double" ? 2 : 1);
|
|
402
404
|
}
|
|
403
|
-
|
|
405
|
+
const images = options.waitForImagesMs ? await waitForCompositionImages(page, options.waitForImagesMs) : ALL_IMAGES_SETTLED;
|
|
404
406
|
if (options.settleMs !== void 0) {
|
|
405
407
|
const settleMs = Math.max(0, options.settleMs);
|
|
406
408
|
await new Promise((resolveSettle) => setTimeout(resolveSettle, settleMs));
|
|
407
409
|
}
|
|
410
|
+
return images;
|
|
408
411
|
}
|
|
409
412
|
async function waitForPreferredSeekTarget(page, timeoutMs = PREFERRED_SEEK_TARGET_WAIT_MS) {
|
|
410
413
|
if (!page.waitForFunction) return;
|
|
@@ -423,19 +426,50 @@ async function waitForPreferredSeekTarget(page, timeoutMs = PREFERRED_SEEK_TARGE
|
|
|
423
426
|
}
|
|
424
427
|
}
|
|
425
428
|
async function waitForCompositionImages(page, timeoutMs) {
|
|
426
|
-
await page.evaluate(
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
}))
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
429
|
+
const unsettled = await page.evaluate(
|
|
430
|
+
// fallow-ignore-next-line complexity
|
|
431
|
+
async (ms) => {
|
|
432
|
+
const layers = /* @__PURE__ */ new Map();
|
|
433
|
+
const add = (src, image) => {
|
|
434
|
+
if (src && !layers.has(src)) layers.set(src, image ?? Object.assign(new Image(), { src }));
|
|
435
|
+
};
|
|
436
|
+
const absolute = (href) => new URL(href, document.baseURI).href;
|
|
437
|
+
for (const element of document.querySelectorAll("*")) {
|
|
438
|
+
const style = getComputedStyle(element);
|
|
439
|
+
if (style.display === "none" || style.visibility === "hidden") continue;
|
|
440
|
+
if (element instanceof HTMLImageElement) add(element.currentSrc || element.src, element);
|
|
441
|
+
if (element instanceof SVGImageElement && element.href.baseVal) {
|
|
442
|
+
add(absolute(element.href.baseVal));
|
|
443
|
+
}
|
|
444
|
+
for (const match of style.backgroundImage.matchAll(
|
|
445
|
+
/url\(\s*(?:"([^"]*)"|'([^']*)'|([^)]*))\s*\)/g
|
|
446
|
+
)) {
|
|
447
|
+
const href = match[1] ?? match[2] ?? match[3];
|
|
448
|
+
if (href) add(absolute(href));
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
const state = /* @__PURE__ */ new Map();
|
|
452
|
+
const decodes = [...layers].map(([src, image]) => {
|
|
453
|
+
state.set(src, "pending");
|
|
454
|
+
return image.decode().then(
|
|
455
|
+
() => void state.set(src, "ready"),
|
|
456
|
+
() => void state.set(src, "failed")
|
|
457
|
+
);
|
|
435
458
|
});
|
|
436
|
-
|
|
459
|
+
let timer;
|
|
460
|
+
await Promise.race([
|
|
461
|
+
Promise.all(decodes),
|
|
462
|
+
new Promise((resolveWait) => {
|
|
463
|
+
timer = setTimeout(resolveWait, ms);
|
|
464
|
+
})
|
|
465
|
+
]);
|
|
466
|
+
clearTimeout(timer);
|
|
467
|
+
const named = (want) => [...state].filter(([, value]) => value === want).map(([src]) => src.startsWith("data:") ? `${src.slice(0, 40)}...` : src);
|
|
468
|
+
return { pending: named("pending"), failed: named("failed") };
|
|
469
|
+
},
|
|
437
470
|
timeoutMs
|
|
438
471
|
);
|
|
472
|
+
return unsettled;
|
|
439
473
|
}
|
|
440
474
|
async function waitForCompositionFonts(page, timeoutMs, frames = 1) {
|
|
441
475
|
await page.evaluate(
|
|
@@ -560,6 +594,7 @@ async function answerPageInProcess(page, url, answer) {
|
|
|
560
594
|
|
|
561
595
|
export {
|
|
562
596
|
AUDIT_SEEK_OPTIONS,
|
|
597
|
+
SCREENSHOT_IMAGE_WAIT_MS,
|
|
563
598
|
SCREENSHOT_SEEK_OPTIONS,
|
|
564
599
|
DENSE_GEOMETRY_SEEK_OPTIONS,
|
|
565
600
|
prelaunchCompositionBrowser,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XWOCXIKR.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-RN6VYEID.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
isAllowedHtmlAttribute,
|
|
12
12
|
isSafeAttributeValue,
|
|
13
13
|
sanitizeRichTextChildren
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GM3WIOO6.js";
|
|
15
15
|
import {
|
|
16
16
|
EXCLUDED_TAGS,
|
|
17
17
|
ensureHfIds,
|
|
18
18
|
mintHfId,
|
|
19
19
|
walkCompositionDescendants
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VYQYVYQ5.js";
|
|
21
21
|
import {
|
|
22
22
|
decodedUrlPath,
|
|
23
23
|
removeElementWithGsapCascade
|
|
24
24
|
} from "./chunk-B2A56S5C.js";
|
|
25
25
|
import {
|
|
26
26
|
require_dist
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3NRB7YXW.js";
|
|
28
28
|
import {
|
|
29
29
|
readClipTiming,
|
|
30
30
|
writeClipTiming
|
|
@@ -6,27 +6,27 @@ 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-7ZJEQY7Q.js";
|
|
10
10
|
import {
|
|
11
11
|
serveStaticProjectHtml
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-T5YF32WV.js";
|
|
13
13
|
import {
|
|
14
14
|
AUDIT_SEEK_OPTIONS,
|
|
15
15
|
installPageFunctionGuard,
|
|
16
16
|
seekCompositionTimeline,
|
|
17
17
|
waitForCompositionFonts,
|
|
18
18
|
waitForRuntimeReady
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JYSSPQDT.js";
|
|
20
20
|
import {
|
|
21
21
|
launchManagedBrowser,
|
|
22
22
|
resolveManagedGpuMode
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WY3TQ2PT.js";
|
|
24
24
|
import {
|
|
25
25
|
gotoWhenSent
|
|
26
26
|
} from "./chunk-MOEGCMKI.js";
|
|
27
27
|
import {
|
|
28
28
|
pageNavigationTimeoutMs
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-TJKE4EYX.js";
|
|
30
30
|
import {
|
|
31
31
|
defineCommand
|
|
32
32
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
import {
|
|
41
41
|
printDeprecationNotice,
|
|
42
42
|
withMeta
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-KAC2WR7P.js";
|
|
44
44
|
import {
|
|
45
45
|
normalizeErrorMessage
|
|
46
46
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -715,7 +715,7 @@ async function collectTweenBoundaries(page) {
|
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
717
|
async function bundleProjectHtml(projectDir) {
|
|
718
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
718
|
+
const { bundleToSingleHtml } = await import("./compiler-MA2ELZPG.js");
|
|
719
719
|
return bundleToSingleHtml(projectDir);
|
|
720
720
|
}
|
|
721
721
|
async function alignViewportToComposition(page, url) {
|
|
@@ -734,13 +734,13 @@ async function alignViewportToComposition(page, url) {
|
|
|
734
734
|
async function runLayoutAudit(projectDir, opts) {
|
|
735
735
|
const { ensureBrowser } = await import("./manager-UHWEKPXC.js");
|
|
736
736
|
const puppeteer = await import("puppeteer-core");
|
|
737
|
-
const { buildChromeArgs } = await import("./src-
|
|
737
|
+
const { buildChromeArgs } = await import("./src-ZOXSEJCD.js");
|
|
738
738
|
const {
|
|
739
739
|
assertWebGpuAdapterAvailable,
|
|
740
740
|
compositionRequiresWebGpu,
|
|
741
741
|
resolveLocalBrowserGpuMode,
|
|
742
742
|
resolveLocalWebGpu
|
|
743
|
-
} = await import("./gpuPolicy-
|
|
743
|
+
} = await import("./gpuPolicy-H6ABHVEB.js");
|
|
744
744
|
const html = await bundleProjectHtml(projectDir);
|
|
745
745
|
const server = await serveStaticProjectHtml(
|
|
746
746
|
projectDir,
|