hyperframes 0.8.202 → 0.8.203
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-YC7QXNDO.js → add-HVWZZBVO.js} +15 -13
- package/dist/{animatedGifPrep-SFHFVFFE.js → animatedGifPrep-7SQD4XQY.js} +11 -9
- package/dist/api.js +23 -21
- package/dist/{asset-5E5BQ6BR.js → asset-H2D5ENJ6.js} +4 -3
- package/dist/{assetCataloger-F6YSU3H6.js → assetCataloger-PIRQXMHM.js} +11 -9
- package/dist/{audio-UZKBYVZ5.js → audio-F6TTYCGR.js} +21 -19
- package/dist/{auth-5DWW5DMO.js → auth-HK5IYSNR.js} +1 -1
- package/dist/{autoUpdate-D6HTQGOE.js → autoUpdate-DQMCXE6X.js} +2 -2
- package/dist/{backgroundChecks-FW4MBBK2.js → backgroundChecks-Y466WV7Y.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-DXD5THWY.js → batchRender-PGJELR2B.js} +8 -6
- package/dist/{beats-WRF4CRL7.js → beats-AD2IJGBZ.js} +13 -11
- package/dist/{benchmark-NDCR2AAG.js → benchmark-B564OTLO.js} +12 -10
- package/dist/{browser-KSG6M66G.js → browser-B7BELTLZ.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-GJ2UYZ6E.js → bundleWithLocalizedFonts-INYZKCJN.js} +4 -4
- package/dist/{capture-DTF47QX3.js → capture-LKV2HS5Q.js} +2 -2
- package/dist/{capture-FRVDEVPB.js → capture-VMJVXQJ2.js} +14 -12
- package/dist/{captureCompositionFrame-IC3MEOJR.js → captureCompositionFrame-L2W6KSAL.js} +16 -15
- package/dist/{catalog-TX3BMPOA.js → catalog-5ETWOAL2.js} +15 -13
- package/dist/{catch-up-YMVIJI2W.js → catch-up-3RWU3BRJ.js} +4 -4
- package/dist/{check-2LBOZR6Z.js → check-KD57MC5Z.js} +40 -39
- package/dist/{checkBrowser-56C73ZNX.js → checkBrowser-R72NYI4S.js} +36 -33
- package/dist/{chunk-Z4PSJSDF.js → chunk-2G6EI3WQ.js} +3 -3
- package/dist/chunk-2RY2LWAA.js +3466 -0
- package/dist/{chunk-KFJMWPZT.js → chunk-32SIPBON.js} +1 -1
- package/dist/{chunk-FWS2ZWV6.js → chunk-35KHQKEX.js} +5 -5
- package/dist/{chunk-B7CYKBXQ.js → chunk-3CISA3OS.js} +1 -1
- package/dist/{chunk-DMZ3SCCU.js → chunk-3NUFUEAX.js} +140 -31
- package/dist/{chunk-JCS7WFRM.js → chunk-3YZ2ESXP.js} +5 -6
- package/dist/chunk-42DLVZNO.js +3983 -0
- package/dist/{chunk-COHU6S2X.js → chunk-4GV742H2.js} +2 -2
- package/dist/{chunk-RFZJGC6V.js → chunk-5GFNMC2F.js} +2 -2
- package/dist/{chunk-CFUCHO4T.js → chunk-6MUI2H6P.js} +1 -1
- package/dist/{chunk-REUZB3HL.js → chunk-7RQXBL4L.js} +8 -8
- package/dist/{chunk-B22YBW5W.js → chunk-7SNVSO4A.js} +1 -1
- package/dist/{chunk-QZTFCWG7.js → chunk-AII6P2TC.js} +1 -1
- package/dist/{chunk-REFMKHRE.js → chunk-B7MRZJOW.js} +9 -9
- package/dist/{chunk-QGB5DECO.js → chunk-BD3LJRJT.js} +1 -1
- package/dist/{chunk-PLL6VC4F.js → chunk-CAHZZOEC.js} +1 -1
- package/dist/{chunk-J3CZK6PI.js → chunk-CFFPH6D3.js} +1 -1
- package/dist/{chunk-JNBHYUEU.js → chunk-CTNWZASM.js} +5 -5
- package/dist/{chunk-BU6XD7H2.js → chunk-DO2OTFCJ.js} +2 -2
- package/dist/{chunk-AQVLMH5C.js → chunk-DZZ6VHPY.js} +1 -1
- package/dist/{chunk-I64A5P5H.js → chunk-E3LRVXM2.js} +3 -3
- package/dist/{chunk-LMRTEJYY.js → chunk-EUFBE5BW.js} +2 -2
- package/dist/{chunk-QXQ74PYD.js → chunk-FE72SB2F.js} +2 -2
- package/dist/chunk-FR7YBU3H.js +179 -0
- package/dist/{chunk-LEQU6P6H.js → chunk-FRXPZCEP.js} +7 -3
- package/dist/{chunk-B2OUZUY5.js → chunk-FTARAZAL.js} +1 -1
- package/dist/{chunk-5KPZ4QAS.js → chunk-GOPGJXEQ.js} +7 -7
- package/dist/{chunk-3HTXEXQ6.js → chunk-GOWNPWCJ.js} +1 -1
- package/dist/{chunk-SDYDNHEE.js → chunk-GWTIFRF5.js} +262 -3711
- package/dist/{chunk-BUIJG2BQ.js → chunk-GX4CEJCX.js} +3 -3
- package/dist/{chunk-NZEASM7M.js → chunk-H6NXL4VB.js} +1 -1
- package/dist/{chunk-IB6ICAI7.js → chunk-HAKKV3SY.js} +22 -13
- package/dist/{chunk-QDEZ7LRH.js → chunk-HO2N4UWV.js} +2 -2
- package/dist/{chunk-NT3L4IMM.js → chunk-HOQNNE3I.js} +1 -1
- package/dist/{chunk-73BGPSUW.js → chunk-HYMW42OE.js} +3 -3
- package/dist/{chunk-CV32PRH3.js → chunk-IDASYE4U.js} +5 -3
- package/dist/{chunk-VOKI2HSE.js → chunk-IREQUN2P.js} +1 -1
- package/dist/{chunk-BIV4FVEN.js → chunk-JEFIEL6S.js} +1 -1
- package/dist/{chunk-PYS6IKKM.js → chunk-JKUVH7BF.js} +1 -1
- package/dist/{chunk-IKX2UHEM.js → chunk-JVWPKIVV.js} +13 -13
- package/dist/{chunk-75KIZWAD.js → chunk-KBCV6BHL.js} +5 -5
- package/dist/{chunk-CL6ZTNQH.js → chunk-KWQWEY6F.js} +121 -41
- package/dist/{chunk-PH5PJY5Z.js → chunk-ML7IPYOC.js} +2 -2
- package/dist/{chunk-SQNPFWFM.js → chunk-MPGJNUML.js} +2 -2
- package/dist/{chunk-4OPDZMV6.js → chunk-ND5ELD7A.js} +1 -1
- package/dist/{chunk-GZCACSED.js → chunk-OKRH4JU3.js} +1 -1
- package/dist/{chunk-MO4VKSFT.js → chunk-OKZZWUZN.js} +1 -1
- package/dist/{chunk-6BNTGNGD.js → chunk-PBNWRWKA.js} +1 -1
- package/dist/{chunk-PZIWSVMO.js → chunk-PLGGKTCB.js} +5 -1
- package/dist/{chunk-ABTBAQDB.js → chunk-Q6B7MFTU.js} +1 -1
- package/dist/{chunk-CXTXB2LZ.js → chunk-R36C6H32.js} +1 -1
- package/dist/{chunk-UI7YYCN2.js → chunk-RUVO77RK.js} +3 -3
- package/dist/{chunk-V6MTGX7B.js → chunk-RWHMKGJA.js} +3 -3
- package/dist/{chunk-L5IKISP2.js → chunk-RZAPLMVM.js} +3 -3
- package/dist/{chunk-E3F5L6AB.js → chunk-SVVAUJPL.js} +4 -83
- package/dist/{chunk-WAXBJLV6.js → chunk-TMIX2WQL.js} +3 -3
- package/dist/{chunk-UMGDRGF5.js → chunk-TRDUMOUW.js} +3 -3
- package/dist/{chunk-AQLRXGNN.js → chunk-TT6HSBYK.js} +5 -5
- package/dist/{chunk-DYDFCX4L.js → chunk-TVC4EI2W.js} +1 -1
- package/dist/{chunk-7KGCJQGS.js → chunk-TZKMAQOY.js} +2 -2
- package/dist/{chunk-7J4GQHSG.js → chunk-UNBGZQZ6.js} +21 -18
- package/dist/{chunk-RNLJJDGE.js → chunk-UVV2DKZR.js} +2 -2
- package/dist/{chunk-24PUQCZO.js → chunk-VI7GBPF6.js} +2 -2
- package/dist/{chunk-TOFL5P27.js → chunk-VL5ES6ZM.js} +6 -6
- package/dist/{chunk-ANH7DV34.js → chunk-VYFMJ2HM.js} +23 -20
- package/dist/{chunk-OJDOYHPQ.js → chunk-WGZOPGHX.js} +1 -1
- package/dist/{chunk-MS4BAXOQ.js → chunk-X5PKA5KH.js} +2 -2
- package/dist/{chunk-EPZXTQOO.js → chunk-YJKSLCKV.js} +5 -5
- package/dist/{chunk-PI256PSW.js → chunk-YOLS2E5P.js} +149 -23
- package/dist/{chunk-442JNXRM.js → chunk-ZBAF6L74.js} +1 -1
- package/dist/{clean-LFPT6GNS.js → clean-7OBS6NMK.js} +20 -18
- package/dist/cli.js +53 -53
- package/dist/{cloud-XX5XB277.js → cloud-JFL6IMUV.js} +4 -4
- package/dist/{cloudrun-ANWC6QGV.js → cloudrun-GHA4FXS3.js} +10 -8
- package/dist/{compare-CISKXIRF.js → compare-UFTPPNLD.js} +31 -30
- package/dist/{compiler-XYZMBTYR.js → compiler-6LUGBYWD.js} +8 -6
- package/dist/{component-D4JJIDOC.js → component-4W3MT53Y.js} +5 -4
- package/dist/{compositions-UGRTLUBT.js → compositions-63M4AHPA.js} +18 -16
- package/dist/{delete-TPH7N5PK.js → delete-XCSORSYR.js} +2 -2
- package/dist/{deploy-ZUXLAVVX.js → deploy-JUC2BVCE.js} +1 -1
- package/dist/{deterministicFonts-NQ6KL66D.js → deterministicFonts-HQYCUUAL.js} +5 -3
- package/dist/{dist-TFHABY7N.js → dist-6JMYDD7F.js} +4 -3
- package/dist/{dist-UXLDRI4D.js → dist-SOMNYPEE.js} +10 -4
- package/dist/{doctor-LVOS4EDV.js → doctor-LZ5KMUGS.js} +15 -13
- package/dist/{dom-37K6YOH4.js → dom-VFHEO7VM.js} +3 -2
- package/dist/{events-FIWA6UBT.js → events-DSJDLP3V.js} +3 -3
- package/dist/{events-UHIKJIWA.js → events-XN26WXN3.js} +2 -2
- package/dist/{feedback-SPOCVRKJ.js → feedback-VZZT77OU.js} +11 -9
- package/dist/{ffmpeg-7SDXE5P5.js → ffmpeg-TU5BPXP6.js} +11 -9
- package/dist/{figma-ONGILUUE.js → figma-BYBMKBNS.js} +3 -3
- package/dist/fontLocalizeCli.js +15 -13
- package/dist/{get-W7ADZ5XS.js → get-JAKXQVNF.js} +2 -2
- package/dist/{gpuPolicy-GETTDB3G.js → gpuPolicy-A6BRKFTK.js} +11 -9
- package/dist/{grade-compare-YIIQJNL3.js → grade-compare-6TLS63GE.js} +32 -31
- package/dist/{help-HSKEDFT6.js → help-WMABNXSF.js} +1 -1
- package/dist/{history-JS6QALDS.js → history-PNOTK4KM.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +65 -65
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-BIIA6M7Q.js → info-457IZRNA.js} +14 -12
- package/dist/{init-TGDKBWUY.js → init-QNOPZRQJ.js} +32 -30
- package/dist/{inspect-MVMUFUHY.js → inspect-4PECXE65.js} +32 -31
- package/dist/inspection.js +2088 -0
- package/dist/{installer-HITNNXHY.js → installer-K6VCZN74.js} +8 -6
- package/dist/{keyframes-XJ7DUUBW.js → keyframes-KBR4RHQO.js} +12 -11
- package/dist/{lambda-4C7APDR5.js → lambda-FSC3XJOQ.js} +11 -9
- package/dist/{layout-O3LEAM7S.js → layout-PFXAKL65.js} +32 -31
- package/dist/{lint-72FKMBD2.js → lint-MR7WHCBO.js} +10 -9
- package/dist/{lintProject-Q36Y3AHA.js → lintProject-4IVYXS5J.js} +4 -3
- package/dist/{list-YUK5VA2D.js → list-OCSE7GSX.js} +2 -2
- package/dist/live-LAHBXVK2.js +4165 -0
- package/dist/{login-TXBDKLOH.js → login-M4L3MHVL.js} +4 -4
- package/dist/{manager-APB2JLSH.js → manager-G6G2WQU3.js} +12 -10
- package/dist/{media-treatment-GMP4JL46.js → media-treatment-6ATFI5M2.js} +18 -16
- package/dist/{models-DW22WMQ5.js → models-NPSWNLVS.js} +15 -13
- package/dist/{motionShot-UQJVQT76.js → motionShot-HVPC2V7Q.js} +19 -18
- package/dist/{normalize-FASIPBUM.js → normalize-QJVXFMWO.js} +3 -2
- package/dist/{normalize-audio-4KYSZBWI.js → normalize-audio-YEEAY2TB.js} +13 -11
- package/dist/{open-HNYN6VM2.js → open-6LSE4QDQ.js} +15 -13
- package/dist/{parakeetRunner-SJ2QW77R.js → parakeetRunner-HMDK2MEQ.js} +16 -14
- package/dist/{pipeline-MG2W6NIW.js → pipeline-GQV2DL2T.js} +12 -10
- package/dist/{play-ZQ6RNKIE.js → play-NORPMDGV.js} +23 -21
- package/dist/{preflight-HSQEJNA2.js → preflight-SDPP63GU.js} +12 -10
- package/dist/{present-7M3W5E3Q.js → present-BVPAEHE6.js} +19 -17
- package/dist/{preview-TT5Z6JK6.js → preview-C762R2VY.js} +22 -20
- package/dist/{producer-B2Y4IKZS.js → producer-XXFVYAW6.js} +1 -1
- package/dist/{projectConfig-VZVY6ZZP.js → projectConfig-72HEHSHM.js} +10 -8
- package/dist/{publication-SRAYE6LT.js → publication-QOK2NB7H.js} +6 -4
- package/dist/{publish-3QMV3Q7B.js → publish-OVCPM2R4.js} +14 -12
- package/dist/{remove-background-5GA2S5OI.js → remove-background-BK7G24LO.js} +13 -11
- package/dist/{render-W3VX647V.js → render-3RV5ZZHB.js} +10 -8
- package/dist/{render-WRLXYVSQ.js → render-BA4DJGH2.js} +34 -32
- package/dist/{render-LN24E3OI.js → render-KCRWPUSH.js} +20 -18
- package/dist/{render-batch-C73ELOQ7.js → render-batch-EKMNALAK.js} +10 -8
- package/dist/renderSetupWorker.js +4 -3
- package/dist/{resolver-ALD2ZELQ.js → resolver-ZQAEKX2N.js} +8 -6
- package/dist/{sherpa-AHD5UPU3.js → sherpa-UPEEZCVJ.js} +15 -13
- package/dist/{skills-WYJGVMR5.js → skills-EBCABDEA.js} +5 -5
- package/dist/{skillsUpdateCheck-OHEGRQ2N.js → skillsUpdateCheck-2TBQ3R7X.js} +3 -3
- package/dist/{snapshot-S6CGQACZ.js → snapshot-KRDQ6UFY.js} +37 -36
- package/dist/{src-DAW4JYSR.js → src-FMPMLWOE.js} +10 -8
- package/dist/{src-I6WD5SMQ.js → src-HODRARUH.js} +16 -14
- package/dist/{staticProjectServer-3BFEACQ6.js → staticProjectServer-NBWPYBIH.js} +20 -19
- package/dist/studio/assets/{hyperframes-player-DnrkDR-_.js → hyperframes-player-C3pgGOtp.js} +1 -1
- package/dist/studio/assets/{index-WFQeAouT.js → index-5EFQxr70.js} +1 -1
- package/dist/studio/assets/{index-BhFxhBMA.js → index-BbcMyD3j.js} +120 -120
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-2O6R4CM5.js → studio-api-BOV2DTPC.js} +13 -11
- package/dist/{studioServer-6ZSAJBVY.js → studioServer-TSKSIQC3.js} +51 -50
- package/dist/{telemetry-WFLPGSUG.js → telemetry-RLKGEBGR.js} +3 -3
- package/dist/{timeline-BZJH266Q.js → timeline-ADFTKSNX.js} +24 -22
- package/dist/{tokens-5TX42ZMQ.js → tokens-2NKS4KAO.js} +4 -3
- package/dist/{transcribe-WPFFLNTS.js → transcribe-63XQBLF3.js} +14 -12
- package/dist/{transcribe-IEYR46HB.js → transcribe-AHNMYPY4.js} +21 -19
- package/dist/{updateCheck-TESZGKRJ.js → updateCheck-XDYXIVKF.js} +2 -2
- package/dist/{upgrade-3EW4MYS7.js → upgrade-GK2RSMPV.js} +2 -2
- package/dist/{urlDownloader-JULHEBLS.js → urlDownloader-X2B7NQSQ.js} +10 -8
- package/dist/{validate-RSJPGXUZ.js → validate-UN4RB6KN.js} +26 -25
- package/dist/{video-TW4TSAM4.js → video-QRWQLU5O.js} +11 -9
- package/dist/warmCheck.js +40 -39
- package/package.json +2 -2
- package/dist/chunk-QTGKDF7D.js +0 -3983
|
@@ -4,12 +4,12 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
ensureDOMParser
|
|
9
|
+
} from "./chunk-ZBAF6L74.js";
|
|
7
10
|
import {
|
|
8
11
|
errorBox
|
|
9
12
|
} from "./chunk-K2FLNJVB.js";
|
|
10
|
-
import {
|
|
11
|
-
ensureDOMParser
|
|
12
|
-
} from "./chunk-442JNXRM.js";
|
|
13
13
|
import {
|
|
14
14
|
failCommand
|
|
15
15
|
} from "./chunk-JVBRJMOP.js";
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
formatVariableValidationIssue,
|
|
21
21
|
validateVariables
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FRXPZCEP.js";
|
|
23
23
|
import {
|
|
24
24
|
extractCompositionMetadata
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SVVAUJPL.js";
|
|
26
26
|
|
|
27
27
|
// src/utils/variables.ts
|
|
28
28
|
import { readFileSync } from "fs";
|
|
@@ -7,19 +7,19 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ambiguousIssue,
|
|
9
9
|
loadBrowserScript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VYFMJ2HM.js";
|
|
11
11
|
import {
|
|
12
12
|
auditClipDurations,
|
|
13
13
|
shouldIgnoreHttpError,
|
|
14
14
|
shouldIgnoreRequestFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JVWPKIVV.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TT6HSBYK.js";
|
|
19
19
|
import {
|
|
20
20
|
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
21
21
|
STUDIO_PREVIEW_MARK_META
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HAKKV3SY.js";
|
|
23
23
|
import {
|
|
24
24
|
artifactDirectory,
|
|
25
25
|
finishSnapshotRun
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
proxyVariantFor,
|
|
32
32
|
resolveProxies,
|
|
33
33
|
scanProjectMediaCodecMap
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-KWQWEY6F.js";
|
|
35
35
|
import {
|
|
36
36
|
AUDIT_SEEK_OPTIONS,
|
|
37
37
|
DEFAULT_ZOOM_PADDING_PX,
|
|
@@ -45,21 +45,21 @@ import {
|
|
|
45
45
|
seekCompositionTimeline,
|
|
46
46
|
seekInPage,
|
|
47
47
|
waitForPreferredSeekTarget
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-B7MRZJOW.js";
|
|
49
49
|
import {
|
|
50
50
|
BrowserCleanupError,
|
|
51
51
|
closeManagedBrowser,
|
|
52
52
|
onStopSignal
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-IREQUN2P.js";
|
|
54
54
|
import {
|
|
55
55
|
findStageProxyBox
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-3YZ2ESXP.js";
|
|
57
57
|
import {
|
|
58
58
|
resolveAutoProxy
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-ND5ELD7A.js";
|
|
60
60
|
import {
|
|
61
61
|
injectTagsAtHeadStart
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-42DLVZNO.js";
|
|
63
63
|
import {
|
|
64
64
|
normalizeErrorMessage
|
|
65
65
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -198,6 +198,69 @@ import { existsSync, mkdirSync, writeFileSync } from "fs";
|
|
|
198
198
|
import os from "os";
|
|
199
199
|
import { join, resolve as resolve2 } from "path";
|
|
200
200
|
|
|
201
|
+
// src/utils/checkFindingInspect.ts
|
|
202
|
+
import { realpathSync } from "fs";
|
|
203
|
+
var runnerFor = (page) => ({
|
|
204
|
+
run: (fn, arg) => page.evaluate(fn, arg)
|
|
205
|
+
});
|
|
206
|
+
async function prepareFindingInspector(projectDir, bundle) {
|
|
207
|
+
let live;
|
|
208
|
+
try {
|
|
209
|
+
const { fingerprint, prepareLiveInspection } = await import("./live-LAHBXVK2.js");
|
|
210
|
+
const project = realpathSync(projectDir);
|
|
211
|
+
const sourceVersion = fingerprint(project);
|
|
212
|
+
const provenance = [];
|
|
213
|
+
const reads = /* @__PURE__ */ new Set();
|
|
214
|
+
const html = await bundle({
|
|
215
|
+
scriptProvenance: (script) => provenance.push(script),
|
|
216
|
+
onRead: (path) => reads.add(path)
|
|
217
|
+
});
|
|
218
|
+
live = prepareLiveInspection(project, html, provenance, sourceVersion, [...reads]);
|
|
219
|
+
} catch (error) {
|
|
220
|
+
return failedInspector(error);
|
|
221
|
+
}
|
|
222
|
+
let failure;
|
|
223
|
+
return {
|
|
224
|
+
html: live.html,
|
|
225
|
+
async ready(server) {
|
|
226
|
+
try {
|
|
227
|
+
live.finalizeDocument(await servedIndexHtml(server));
|
|
228
|
+
} catch (error) {
|
|
229
|
+
failure = error;
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
async inspect(page, target) {
|
|
233
|
+
if (failure !== void 0) return { error: normalizeErrorMessage(failure) };
|
|
234
|
+
try {
|
|
235
|
+
const report = await live.inspect(runnerFor(page), {
|
|
236
|
+
targets: [target],
|
|
237
|
+
descendants: false
|
|
238
|
+
});
|
|
239
|
+
if ("selector" in target && report.results.some((result) => result.candidates.length + result.candidatesOmitted > 1)) {
|
|
240
|
+
return { error: `ambiguous_selector: ${target.selector} matches multiple elements` };
|
|
241
|
+
}
|
|
242
|
+
return report;
|
|
243
|
+
} catch (error) {
|
|
244
|
+
return { error: normalizeErrorMessage(error) };
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
function failedInspector(error) {
|
|
250
|
+
const inspect = { error: normalizeErrorMessage(error) };
|
|
251
|
+
return { ready: async () => {
|
|
252
|
+
}, inspect: async () => inspect };
|
|
253
|
+
}
|
|
254
|
+
async function servedIndexHtml(server) {
|
|
255
|
+
if (server.answer) {
|
|
256
|
+
const response2 = await server.answer({ method: "GET", path: "/", headers: {} });
|
|
257
|
+
return response2.body.toString("utf8");
|
|
258
|
+
}
|
|
259
|
+
const response = await fetch(server.url);
|
|
260
|
+
if (!response.ok) throw new Error(`check server answered ${response.status} for its page`);
|
|
261
|
+
return response.text();
|
|
262
|
+
}
|
|
263
|
+
|
|
201
264
|
// src/utils/gsapTweenTails.ts
|
|
202
265
|
var TWEEN_TAIL_WINDOW = 0.25;
|
|
203
266
|
function findTweenTails(records) {
|
|
@@ -510,9 +573,12 @@ function proxyFailedDraft(message) {
|
|
|
510
573
|
return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
|
|
511
574
|
}
|
|
512
575
|
async function loadCheckHtmlWithDeferredMedia(dir) {
|
|
513
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
576
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-INYZKCJN.js");
|
|
577
|
+
return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
|
|
578
|
+
}
|
|
579
|
+
function withCapturePreviewMark(html) {
|
|
514
580
|
return injectTagsAtHeadStart(
|
|
515
|
-
|
|
581
|
+
html,
|
|
516
582
|
`<meta name="${STUDIO_PREVIEW_MARK_META}" content="${STUDIO_PREVIEW_CAPTURE_MODE}">`
|
|
517
583
|
);
|
|
518
584
|
}
|
|
@@ -569,7 +635,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
569
635
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
570
636
|
}));
|
|
571
637
|
const launchSettleMs = Date.now() - launchSettleStart;
|
|
572
|
-
const { analyzeClipMediaFit } = await import("./src-
|
|
638
|
+
const { analyzeClipMediaFit } = await import("./src-FMPMLWOE.js");
|
|
573
639
|
for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
|
|
574
640
|
drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
|
|
575
641
|
}
|
|
@@ -686,7 +752,62 @@ function mergeHelperDrafts(primary, helper) {
|
|
|
686
752
|
}
|
|
687
753
|
async function captureFindingCrops(project, options, requests, deadline) {
|
|
688
754
|
if (requests.length === 0) return [];
|
|
689
|
-
|
|
755
|
+
return withFindingCapturePage(project, options, deadline, "crops", async (page, snapshotDir) => {
|
|
756
|
+
const written = [];
|
|
757
|
+
for (const request of requests) {
|
|
758
|
+
await seekCompositionTimeline(page, request.time, SCREENSHOT_SEEK_OPTIONS);
|
|
759
|
+
const canvas = await page.evaluate(() => ({
|
|
760
|
+
width: window.innerWidth,
|
|
761
|
+
height: window.innerHeight
|
|
762
|
+
}));
|
|
763
|
+
const region = padCropRegion(request.bbox, canvas, DEFAULT_ZOOM_PADDING_PX);
|
|
764
|
+
const buffer = await captureRegionCrop(page, region, DEFAULT_ZOOM_SCALE);
|
|
765
|
+
writeFileSync(join(snapshotDir, request.filename), buffer);
|
|
766
|
+
written.push(join(snapshotDir, request.filename));
|
|
767
|
+
}
|
|
768
|
+
return written;
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
async function captureFindingFrames(project, options, requests, deadline) {
|
|
772
|
+
if (requests.length === 0) return { written: [], inspected: [] };
|
|
773
|
+
const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
|
|
774
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-INYZKCJN.js");
|
|
775
|
+
return withCapturePreviewMark(
|
|
776
|
+
await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
|
|
777
|
+
);
|
|
778
|
+
}) : void 0;
|
|
779
|
+
deadline?.signal.throwIfAborted();
|
|
780
|
+
return withFindingCapturePage(
|
|
781
|
+
project,
|
|
782
|
+
options,
|
|
783
|
+
deadline,
|
|
784
|
+
"frames",
|
|
785
|
+
async (page, snapshotDir, server) => {
|
|
786
|
+
await inspector?.ready(server);
|
|
787
|
+
deadline?.signal.throwIfAborted();
|
|
788
|
+
const written = [];
|
|
789
|
+
const inspected = [];
|
|
790
|
+
for (const request of requests) {
|
|
791
|
+
deadline?.enter("frames");
|
|
792
|
+
await seekCompositionTimeline(page, request.time, SCREENSHOT_SEEK_OPTIONS);
|
|
793
|
+
const buffer = await page.screenshot({ type: "png", optimizeForSpeed: true });
|
|
794
|
+
writeFileSync(join(snapshotDir, request.filename), buffer);
|
|
795
|
+
written.push(join(snapshotDir, request.filename));
|
|
796
|
+
if (!inspector) continue;
|
|
797
|
+
for (const target of request.inspect ?? []) {
|
|
798
|
+
deadline?.enter("frames");
|
|
799
|
+
const inspect = await inspector.inspect(page, target);
|
|
800
|
+
deadline?.signal.throwIfAborted();
|
|
801
|
+
inspected.push({ time: request.time, target, inspect });
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
return { written, inspected };
|
|
805
|
+
},
|
|
806
|
+
inspector?.html
|
|
807
|
+
);
|
|
808
|
+
}
|
|
809
|
+
async function withFindingCapturePage(project, options, deadline, what, capture, pageHtml) {
|
|
810
|
+
const html = pageHtml ?? await loadCheckHtmlWithDeferredMedia(project.dir);
|
|
690
811
|
const server = await serveStaticProjectHtml(
|
|
691
812
|
project.dir,
|
|
692
813
|
html,
|
|
@@ -695,36 +816,23 @@ async function captureFindingCrops(project, options, requests, deadline) {
|
|
|
695
816
|
options.autoProxy
|
|
696
817
|
);
|
|
697
818
|
let chromeBrowser;
|
|
698
|
-
const written = [];
|
|
699
819
|
let failure = { kind: "none" };
|
|
700
820
|
try {
|
|
701
821
|
const session = await openSettledCompositionPage(html, server.url, {
|
|
702
822
|
navigationTimeoutMs: options.timeout,
|
|
703
823
|
renderReadyTimeoutMs: options.timeout,
|
|
704
|
-
renderReadyWarningSuffix:
|
|
824
|
+
renderReadyWarningSuffix: `capturing finding ${what}`,
|
|
705
825
|
signal: deadline?.signal,
|
|
706
826
|
onBrowser: deadline?.ownBrowser,
|
|
707
827
|
onBrowserReady: deadline?.start,
|
|
708
|
-
beforeNavigate: (
|
|
828
|
+
beforeNavigate: (page) => deadline?.preparePage(page),
|
|
709
829
|
browserGpuMode: options.browserGpuMode ?? resolveCliChromeGpuMode()
|
|
710
830
|
});
|
|
711
831
|
chromeBrowser = session.browser;
|
|
712
|
-
|
|
713
|
-
await waitForPreferredSeekTarget(page);
|
|
832
|
+
await waitForPreferredSeekTarget(session.page);
|
|
714
833
|
const snapshotDir = checkSnapshotDirectory(project.dir);
|
|
715
834
|
mkdirSync(snapshotDir, { recursive: true });
|
|
716
|
-
|
|
717
|
-
await seekCompositionTimeline(page, request.time, SCREENSHOT_SEEK_OPTIONS);
|
|
718
|
-
const canvas = await page.evaluate(() => ({
|
|
719
|
-
width: window.innerWidth,
|
|
720
|
-
height: window.innerHeight
|
|
721
|
-
}));
|
|
722
|
-
const region = padCropRegion(request.bbox, canvas, DEFAULT_ZOOM_PADDING_PX);
|
|
723
|
-
const buffer = await captureRegionCrop(page, region, DEFAULT_ZOOM_SCALE);
|
|
724
|
-
writeFileSync(join(snapshotDir, request.filename), buffer);
|
|
725
|
-
written.push(join(snapshotDir, request.filename));
|
|
726
|
-
}
|
|
727
|
-
return written;
|
|
835
|
+
return await capture(session.page, snapshotDir, server);
|
|
728
836
|
} catch (error) {
|
|
729
837
|
failure = { kind: "failed", error };
|
|
730
838
|
throw error;
|
|
@@ -1930,6 +2038,7 @@ export {
|
|
|
1930
2038
|
samplingBrowserCount,
|
|
1931
2039
|
mergeHelperDrafts,
|
|
1932
2040
|
captureFindingCrops,
|
|
2041
|
+
captureFindingFrames,
|
|
1933
2042
|
keepBrokenImageAborts,
|
|
1934
2043
|
dropFailedProxyEchoes,
|
|
1935
2044
|
createPageDriver,
|
|
@@ -4,12 +4,12 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
ensureDOMParser
|
|
9
|
-
} from "./chunk-442JNXRM.js";
|
|
10
7
|
import {
|
|
11
8
|
quantizePreviewProxyBox
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FRXPZCEP.js";
|
|
10
|
+
import {
|
|
11
|
+
parseHTML
|
|
12
|
+
} from "./chunk-GWTIFRF5.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/compositionViewport.ts
|
|
15
15
|
var DEFAULT_VIEWPORT = { width: 1920, height: 1080 };
|
|
@@ -21,8 +21,7 @@ function parseViewportDimension(value) {
|
|
|
21
21
|
return Math.min(parsed, MAX_VIEWPORT_DIMENSION);
|
|
22
22
|
}
|
|
23
23
|
function findCompositionDimensions(html) {
|
|
24
|
-
|
|
25
|
-
const doc = new DOMParser().parseFromString(html, "text/html");
|
|
24
|
+
const { document: doc } = parseHTML(html);
|
|
26
25
|
const root = doc.querySelector("[data-composition-id][data-width][data-height]");
|
|
27
26
|
if (!root) return null;
|
|
28
27
|
const width = parseViewportDimension(root.getAttribute("data-width"));
|