hyperframes 0.8.204 → 0.8.206
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-HBFVYKGU.js → add-FFMNAJXJ.js} +12 -12
- package/dist/{animatedGifPrep-VBUKGEZ6.js → animatedGifPrep-BIIIIVWL.js} +16 -10
- package/dist/api.js +18 -18
- package/dist/{asset-OVLMJY4S.js → asset-IPUHGZSL.js} +2 -2
- package/dist/{assetCataloger-K4INCLFU.js → assetCataloger-M5FWXLAJ.js} +8 -8
- package/dist/{audio-JHW3HLHK.js → audio-VYWWM4DB.js} +19 -16
- package/dist/{auth-RH67KQMZ.js → auth-GZQZCUPL.js} +1 -1
- package/dist/{autoUpdate-JYR2RW5Z.js → autoUpdate-GJUDDLLO.js} +2 -2
- package/dist/{backgroundChecks-DPHRM4HJ.js → backgroundChecks-BTMSW34Z.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-JFUWZR3M.js → batchRender-LI2BJRGO.js} +4 -4
- package/dist/{beats-AWAFZGOT.js → beats-H73CSYT4.js} +11 -11
- package/dist/{benchmark-VQCCULJ2.js → benchmark-XT3A5REC.js} +14 -12
- package/dist/{browser-TT5L7D32.js → browser-VIOK66YK.js} +5 -5
- package/dist/{bundleWithLocalizedFonts-EHXEP5ZL.js → bundleWithLocalizedFonts-PFRVWYOO.js} +2 -2
- package/dist/{capture-Y7TGR3BI.js → capture-252WNPCD.js} +2 -2
- package/dist/{capture-5CM2P6CB.js → capture-KKD5GMAF.js} +20 -20
- package/dist/{captureCompositionFrame-LIT6U6C4.js → captureCompositionFrame-YLYVGNN2.js} +13 -13
- package/dist/{catalog-WZN2XB7D.js → catalog-6IJGNN3T.js} +12 -12
- package/dist/{catch-up-WZMQUW5H.js → catch-up-BFW7Z35W.js} +4 -4
- package/dist/{check-YVJCDCJS.js → check-XUWBZASR.js} +40 -38
- package/dist/checkAudio-2NRR3VHQ.js +201 -0
- package/dist/{checkBrowser-7V2DGDVD.js → checkBrowser-JW74KWTF.js} +33 -32
- package/dist/{chunk-IDASYE4U.js → chunk-2MLMO25E.js} +8 -5
- package/dist/{chunk-TBSYUEB7.js → chunk-2RT7MXFL.js} +1 -1
- package/dist/{chunk-7RB4I2E6.js → chunk-2S263R6D.js} +19 -7
- package/dist/{chunk-YLGRZSH4.js → chunk-36QE3P6B.js} +1 -1
- package/dist/{chunk-3GPDAE3D.js → chunk-3B2DBUQX.js} +1 -1
- package/dist/{chunk-UKXF4IPA.js → chunk-3CS6QYL7.js} +5 -5
- package/dist/{chunk-KOBPUFCN.js → chunk-3R6SXPHD.js} +2 -2
- package/dist/{chunk-US6JSQ2L.js → chunk-42KN6I6A.js} +2 -2
- package/dist/{chunk-LTGTN2TH.js → chunk-4CY5RXXC.js} +1 -1
- package/dist/{chunk-TQH7BF7K.js → chunk-4DGLKB2H.js} +1 -1
- package/dist/{chunk-DQBY7FRR.js → chunk-543U46OR.js} +4 -1
- package/dist/{chunk-D3EZHD2D.js → chunk-5QKJPCQ4.js} +2 -2
- package/dist/{chunk-IJ6RY4CH.js → chunk-63DGZRZP.js} +1 -1
- package/dist/{chunk-DRDG46KK.js → chunk-6ZFDNEMY.js} +14 -14
- package/dist/{chunk-LN5EJMSC.js → chunk-7SXL476O.js} +30 -20
- package/dist/{chunk-2756LXGY.js → chunk-AAX2A7LQ.js} +1 -1
- package/dist/{chunk-DTV3VHFE.js → chunk-AEC4T4IF.js} +4 -4
- package/dist/{chunk-4HJMZI4H.js → chunk-AJSU6KGS.js} +13 -13
- package/dist/{chunk-S35XO2ZA.js → chunk-AXEEZKIL.js} +2 -2
- package/dist/{chunk-KLIKCX6Q.js → chunk-AYH5ANVS.js} +7 -1
- package/dist/{chunk-ZBDVKLIU.js → chunk-BBUK6A7Q.js} +5 -5
- package/dist/{chunk-NJT6SZGL.js → chunk-CIHW6VM2.js} +1 -1
- package/dist/{chunk-EF7R5EBJ.js → chunk-CMDVJP4T.js} +10 -10
- package/dist/{chunk-VCBZOU7U.js → chunk-CNVHMLPI.js} +1 -1
- package/dist/{chunk-RFCLI6TW.js → chunk-CPSGXAYD.js} +3 -3
- package/dist/{chunk-54FO6TN7.js → chunk-CZYS6UKP.js} +83 -78
- package/dist/{chunk-5UW7WCHQ.js → chunk-DEVZJ4AL.js} +10 -9
- package/dist/{chunk-TCI4MUT6.js → chunk-DZG565OO.js} +1 -1
- package/dist/{chunk-D5CAZ7R4.js → chunk-E2ZZSDDQ.js} +2 -2
- package/dist/{chunk-TAYZSNYS.js → chunk-FJW757TF.js} +1 -1
- package/dist/{chunk-LVMJXO45.js → chunk-FMWACL3L.js} +1 -1
- package/dist/{chunk-54K7HW46.js → chunk-FNNGQ3DB.js} +2 -2
- package/dist/{chunk-AQS3MMEQ.js → chunk-FULMZCDW.js} +13 -43
- package/dist/chunk-G6QDFWDN.js +355 -0
- package/dist/{chunk-QB4K2EWI.js → chunk-G6W55MTX.js} +1 -1
- package/dist/{chunk-WM7GOKEP.js → chunk-GAV56VJL.js} +2 -2
- package/dist/{chunk-4CR23IYU.js → chunk-H4JO7VSI.js} +7 -6
- package/dist/{chunk-6RLP6RDE.js → chunk-HEP5XMXV.js} +1 -1
- package/dist/{chunk-23RPCDGE.js → chunk-HJAJ6W4V.js} +2 -2
- package/dist/chunk-KLIPVNCO.js +4824 -0
- package/dist/{chunk-YIN2JAZE.js → chunk-L5MFWGGU.js} +62 -65
- package/dist/{chunk-WMCGD4XL.js → chunk-MFHYBSJC.js} +58 -828
- package/dist/{chunk-LFGJWOVA.js → chunk-MNNK7RV5.js} +11 -8
- package/dist/{chunk-EUFBE5BW.js → chunk-N7ZMDVAK.js} +1 -1
- package/dist/{chunk-X7XICOVM.js → chunk-NNLQTG3M.js} +1 -1
- package/dist/{chunk-TNOERLC6.js → chunk-NVLPW3DG.js} +17 -9
- package/dist/{chunk-SVVAUJPL.js → chunk-OFRRUYBA.js} +1 -1
- package/dist/{chunk-WLD4PX3P.js → chunk-OZUAVHFE.js} +18 -3
- package/dist/{chunk-QCQDUQVJ.js → chunk-PNKLOMHQ.js} +2 -2
- package/dist/{chunk-QZ4HQQYS.js → chunk-PQYWYBEQ.js} +1 -1
- package/dist/{chunk-VC3BMKYO.js → chunk-QL4ZYSIB.js} +3 -3
- package/dist/{chunk-N3EJG2X4.js → chunk-QVTCXN42.js} +3 -3
- package/dist/{chunk-Y63CT2ZC.js → chunk-RDDVQSNQ.js} +124 -37
- package/dist/{chunk-WXAQT63P.js → chunk-RW4DMP2Y.js} +4 -4
- package/dist/{chunk-5RJSWYWL.js → chunk-SFYLZX5C.js} +1 -1
- package/dist/{chunk-YU53JSUZ.js → chunk-T6SD37JZ.js} +1 -1
- package/dist/chunk-TQBQYO4L.js +55 -0
- package/dist/{chunk-MSH2F7VW.js → chunk-TSJVPPXT.js} +1 -1
- package/dist/{chunk-7PRESGFT.js → chunk-UMUVGNOH.js} +3 -3
- package/dist/{chunk-6KZY5RSV.js → chunk-VDVVQNTK.js} +2 -2
- package/dist/{chunk-XX5U64F2.js → chunk-VEA7Z4PZ.js} +4 -3
- package/dist/{chunk-QWATUGUX.js → chunk-VHVSBOZH.js} +3 -3
- package/dist/{chunk-65VFH2UV.js → chunk-VW2LVMKB.js} +19 -9
- package/dist/{chunk-DBF6LLXB.js → chunk-WHD5IAHI.js} +1 -1
- package/dist/{chunk-OPFG563D.js → chunk-WYB3VKLK.js} +2 -2
- package/dist/{chunk-34VLVDOU.js → chunk-X5HHHFTX.js} +3 -3
- package/dist/{chunk-BL4U6U52.js → chunk-X7A7C4JS.js} +70 -7
- package/dist/chunk-X7RXXBYM.js +29 -0
- package/dist/{chunk-GGEA5EHR.js → chunk-XOM3XTJ4.js} +1 -1
- package/dist/{chunk-HBDQGIQA.js → chunk-Z3XXLTVB.js} +2 -2
- package/dist/{chunk-ERUINDRT.js → chunk-ZF3R2IPC.js} +184 -183
- package/dist/{chunk-CXZDIWMK.js → chunk-ZNAOBFU5.js} +1 -1
- package/dist/{chunk-AII6P2TC.js → chunk-ZTEKVSZ6.js} +1 -1
- package/dist/{clean-3JE2KYTC.js → clean-N5VSKUVS.js} +20 -20
- package/dist/cli.js +82 -60
- package/dist/{cloud-Z54BHP6G.js → cloud-74NF5FXC.js} +4 -4
- package/dist/{cloudrun-4CPQLU5M.js → cloudrun-7UOH335V.js} +6 -6
- package/dist/{compare-AQMLMTFD.js → compare-AY2LS2TZ.js} +33 -33
- package/dist/{compiler-LIJYMSEL.js → compiler-4MHMC777.js} +14 -10
- package/dist/{component-ZH37EIYB.js → component-CFWQOAZI.js} +3 -3
- package/dist/{compositions-DF2FM6YD.js → compositions-DXLJTDSP.js} +14 -14
- package/dist/{delete-A3NSK2HH.js → delete-GB4MS7LM.js} +2 -2
- package/dist/{deploy-6RC2DXPQ.js → deploy-NXD3Q3KD.js} +4 -4
- package/dist/{deterministicFonts-HQYCUUAL.js → deterministicFonts-775YXAQ2.js} +2 -2
- package/dist/{dist-VSIT3UAX.js → dist-3ZJMZU75.js} +11 -3
- package/dist/{dist-6JMYDD7F.js → dist-ZY6IFESG.js} +2 -2
- package/dist/docs/examples.md +31 -7
- package/dist/{doctor-RILK4ATO.js → doctor-CVY2XXKS.js} +14 -14
- package/dist/{events-SL434XAY.js → events-RYQYEWBV.js} +2 -2
- package/dist/{events-B5EKVEPW.js → events-T3CLIYRG.js} +3 -3
- package/dist/{feedback-S4PC6VAR.js → feedback-K5ZMMLTA.js} +8 -8
- package/dist/{ffmpeg-XSDPPZCU.js → ffmpeg-UNDAJ2IC.js} +9 -9
- package/dist/{figma-MV2L6E2Z.js → figma-MYYCX635.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -12
- package/dist/{get-ID3Y3PCN.js → get-JVIDYMVP.js} +2 -2
- package/dist/{gpuPolicy-2LRMQOAD.js → gpuPolicy-KEX7GDRJ.js} +8 -8
- package/dist/{grade-compare-NV3TKIOO.js → grade-compare-QEF6VASJ.js} +31 -31
- package/dist/{gsapParser-IEUSLYDJ.js → gsapParser-3H7ON3DO.js} +1 -1
- package/dist/heifImagePrep-A3ZPVQGU.js +53 -0
- package/dist/{help-ZPT23LZ3.js → help-XPPSLIRY.js} +1 -1
- package/dist/{history-MZGDX3TR.js → history-OFOPRD27.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +66 -64
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +16 -16
- package/dist/{info-FIZ4A54H.js → info-7RF6FQX5.js} +8 -8
- package/dist/{init-WX4MNPL2.js → init-NTIXWA3D.js} +32 -35
- package/dist/{inspect-R5KWWKNJ.js → inspect-MYMCV5E7.js} +31 -30
- package/dist/inspection.js +4 -4
- package/dist/{installer-CTV5FKYQ.js → installer-PYJIJ3PJ.js} +5 -5
- package/dist/{keyframes-FAJY5RK5.js → keyframes-UJ52PYE4.js} +6 -6
- package/dist/{lambda-3MCC2ZH7.js → lambda-SBNUYEQE.js} +8 -8
- package/dist/{layout-3RTVYRRN.js → layout-IOMCOABO.js} +31 -30
- package/dist/{lint-ZDCVL7K4.js → lint-AQWHHMPS.js} +8 -8
- package/dist/{lintProject-4IVYXS5J.js → lintProject-5A4SCW3S.js} +2 -2
- package/dist/{list-SBCXW2UT.js → list-WKAJ5SP3.js} +2 -2
- package/dist/{login-VQ2LQ2YG.js → login-3ZDK5JOA.js} +4 -4
- package/dist/{manager-F34TSFV6.js → manager-F2YREC5X.js} +2 -2
- package/dist/{manager-ZRF6UXUM.js → manager-QYFYWZOK.js} +10 -10
- package/dist/{media-treatment-MFIP7Q4G.js → media-treatment-4OLWVHUY.js} +15 -15
- package/dist/{models-OU36YZCT.js → models-MR55FAUX.js} +14 -14
- package/dist/{motionShot-SHDUG7YR.js → motionShot-DC47S7BT.js} +17 -17
- package/dist/{normalize-audio-7RTPEV7Y.js → normalize-audio-M2TK4NG5.js} +8 -8
- package/dist/{open-HT4RG32S.js → open-YXWBWTKL.js} +15 -14
- package/dist/{parakeetRunner-DOVPZDCH.js → parakeetRunner-J6QR3GTG.js} +15 -15
- package/dist/{pipeline-NIVQ6E2G.js → pipeline-7MJ5H4SW.js} +10 -10
- package/dist/{play-HPX5SIRQ.js → play-S562STR4.js} +34 -24
- package/dist/{preflight-TNYC7EIS.js → preflight-QWGXMISC.js} +11 -11
- package/dist/{present-QSOIMURR.js → present-PGOHZT3L.js} +30 -20
- package/dist/{preview-WDO53XKK.js → preview-JU75H4QN.js} +32 -29
- package/dist/{producer-G27KP3IY.js → producer-H66OMZLW.js} +1 -1
- package/dist/{projectConfig-CP722RCM.js → projectConfig-COSP24YT.js} +7 -7
- package/dist/{publication-LCWVBLDN.js → publication-J3XYHPGB.js} +3 -3
- package/dist/{publish-BIY6LEZ2.js → publish-7GCCEPJZ.js} +11 -11
- package/dist/{remove-background-NPLZGLZ3.js → remove-background-WRCGIU32.js} +11 -11
- package/dist/{render-J57LAXB5.js → render-5J5PP3UK.js} +21 -21
- package/dist/{render-IHNAZXA2.js → render-QS3YJCBR.js} +6 -6
- package/dist/{render-HHUGUKG6.js → render-VUVTK2JM.js} +36 -36
- package/dist/{render-batch-FK26OQ5E.js → render-batch-Q2LQ3D4P.js} +6 -6
- package/dist/renderSetupWorker.js +5 -5
- package/dist/{resolver-FWJXO6DY.js → resolver-QCBWPRSC.js} +5 -5
- package/dist/{sherpa-BXFJU5EP.js → sherpa-IZ22SC5W.js} +14 -14
- package/dist/skills/hyperframes/references/types/launch.md +12 -2
- package/dist/skills/media-use/references/memory.md +4 -0
- package/dist/skills/media-use/scripts/lib/prefs-store.concurrent.test.mjs +173 -0
- package/dist/skills/media-use/scripts/lib/prefs-store.mjs +46 -28
- package/dist/skills/media-use/scripts/lib/prefs-store.test.mjs +56 -0
- package/dist/{skills-7XS4HZBC.js → skills-3RFMPMJA.js} +5 -5
- package/dist/{skillsUpdateCheck-MGU5KLR4.js → skillsUpdateCheck-DWBFVUBT.js} +3 -3
- package/dist/{snapshot-O2PMEMKH.js → snapshot-5PHA43DK.js} +54 -41
- package/dist/{src-Q4R2YPKA.js → src-36BQVJL3.js} +17 -11
- package/dist/{src-OQRG6BT7.js → src-4YJKYMNF.js} +11 -7
- package/dist/{staticProjectServer-6OY4VMO6.js → staticProjectServer-3XFB76XS.js} +18 -18
- package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +478 -0
- package/dist/studio/assets/{index-DpxSurnJ.js → index-BNuxGFZK.js} +1 -1
- package/dist/studio/assets/{index-DmST2bTJ.js → index-CwreIGoq.js} +132 -132
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-YSUTKHV7.js → studio-api-WL6EZ4KE.js} +11 -11
- package/dist/{studioSelectionClient-IUUPKUHZ.js → studioSelectionClient-D6VMGTKQ.js} +1 -1
- package/dist/{studioServer-APGEQIW5.js → studioServer-ZS5RA6U3.js} +66 -56
- package/dist/{telemetry-3B6EA5IU.js → telemetry-W3LRO3TB.js} +3 -3
- package/dist/{timeline-QWM6JS4B.js → timeline-BDO5DYWP.js} +19 -19
- package/dist/{tokens-TKLSP3OQ.js → tokens-47CEMYFV.js} +2 -2
- package/dist/{transcribe-XOPMHJLJ.js → transcribe-GEPVJO3A.js} +19 -19
- package/dist/{transcribe-PODOCWCC.js → transcribe-XF3NL6JI.js} +13 -13
- package/dist/{tts-5I2AJNLM.js → tts-QM4RFE7U.js} +1 -1
- package/dist/{updateCheck-RO6FPYMZ.js → updateCheck-BON6ZFYP.js} +2 -2
- package/dist/{upgrade-EVNIL5TZ.js → upgrade-KIF5Z4J3.js} +2 -2
- package/dist/{urlDownloader-F5HYFRA6.js → urlDownloader-UDRHVUWR.js} +7 -7
- package/dist/{validate-NXLFCHGG.js → validate-2OPSQT3W.js} +24 -24
- package/dist/{video-ECV2OIQN.js → video-ECWXMY4F.js} +8 -8
- package/dist/warmCheck.js +40 -38
- package/package.json +1 -1
- package/dist/chunk-YRQPU7SV.js +0 -3983
- package/dist/studio/assets/hyperframes-player-CttA4PW7.js +0 -478
- package/dist/{synthesize-PKTB5ATG.js → synthesize-QCRP3NI7.js} +4 -4
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
|
|
8
|
+
// src/utils/checkFindings.ts
|
|
9
|
+
var SEVERITY = { info: 0, warning: 1, error: 2 };
|
|
10
|
+
function findingAtRoot(code, severity, message, sourceFile) {
|
|
11
|
+
return {
|
|
12
|
+
code,
|
|
13
|
+
severity,
|
|
14
|
+
message,
|
|
15
|
+
selector: "[data-composition-id]",
|
|
16
|
+
dataAttributes: {},
|
|
17
|
+
sourceFile,
|
|
18
|
+
bbox: { x: 0, y: 0, width: 0, height: 0 },
|
|
19
|
+
time: 0
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function findingElementKey(finding) {
|
|
23
|
+
return JSON.stringify([finding.sourceFile, finding.selector]);
|
|
24
|
+
}
|
|
25
|
+
function groupSampledFindings(findings, compareEvidence = () => 0) {
|
|
26
|
+
const groups = /* @__PURE__ */ new Map();
|
|
27
|
+
for (const finding of findings) {
|
|
28
|
+
const key = JSON.stringify([findingElementKey(finding), finding.code]);
|
|
29
|
+
const times = finding.times ?? [finding.time];
|
|
30
|
+
const group = groups.get(key);
|
|
31
|
+
if (!group) {
|
|
32
|
+
groups.set(key, { finding, times: new Set(times) });
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
for (const time of times) group.times.add(time);
|
|
36
|
+
const severity = SEVERITY[finding.severity] - SEVERITY[group.finding.severity];
|
|
37
|
+
if (severity > 0 || severity === 0 && compareEvidence(finding, group.finding) > 0) {
|
|
38
|
+
group.finding = finding;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return [...groups.values()].map(({ finding, times }) => ({
|
|
42
|
+
...finding,
|
|
43
|
+
times: [...times].sort((a, b) => a - b)
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
function formatFindingTimes(finding) {
|
|
47
|
+
return `t=${(finding.times ?? [finding.time]).join(", ")}s`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
findingAtRoot,
|
|
52
|
+
findingElementKey,
|
|
53
|
+
groupSampledFindings,
|
|
54
|
+
formatFindingTimes
|
|
55
|
+
};
|
|
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
|
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
if (err instanceof Error) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { trackCommandFailure } = await import("./events-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-T3CLIYRG.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FMWACL3L.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FJW757TF.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2MLMO25E.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
MAX_AUDIO_GAIN_DB,
|
|
12
12
|
formatAudioGain,
|
|
13
13
|
isAudibleVideoElement
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KLIPVNCO.js";
|
|
15
15
|
import {
|
|
16
16
|
decodeAuthoredAttribute
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OFRRUYBA.js";
|
|
18
18
|
import {
|
|
19
19
|
findFfBinary
|
|
20
20
|
} from "./chunk-VAS6HQX3.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-2ST4WAFY.js";
|
|
13
13
|
import {
|
|
14
14
|
createProjectConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WHD5IAHI.js";
|
|
16
16
|
import {
|
|
17
17
|
isHyperframesProject
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VW2LVMKB.js";
|
|
19
19
|
|
|
20
20
|
// src/utils/desktopApp.ts
|
|
21
21
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -28,7 +28,8 @@ var APP_NAMES = ["HyperFrames", "HyperFrames Canary"];
|
|
|
28
28
|
var STUDIO_PAGE = "https://hyperframes.dev/studio";
|
|
29
29
|
var DOWNLOADS = {
|
|
30
30
|
darwin: `${STUDIO_PAGE}/download`,
|
|
31
|
-
linux: `${STUDIO_PAGE}/download?os=linux
|
|
31
|
+
linux: `${STUDIO_PAGE}/download?os=linux`,
|
|
32
|
+
win32: `${STUDIO_PAGE}/download?os=windows`
|
|
32
33
|
};
|
|
33
34
|
var desktopDownloadUrl = (platform = process.platform) => DOWNLOADS[platform] ?? null;
|
|
34
35
|
var downloadHint = (url) => `Keep editing by chatting with Framey in the HyperFrames desktop app \u2192 ${url}`;
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FMWACL3L.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FJW757TF.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-ZTZA4UWZ.js";
|
|
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
|
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
86
|
import("./system-YD4AW5ZX.js"),
|
|
87
|
-
import("./ffmpeg-
|
|
87
|
+
import("./ffmpeg-UNDAJ2IC.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
90
90
|
const parts = [
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parseStrictFiniteTimingNumber,
|
|
10
10
|
resolveNaturalMediaTimelineDuration,
|
|
11
11
|
resolveTimedImageDurationSeconds
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KLIPVNCO.js";
|
|
13
13
|
import {
|
|
14
14
|
CANVAS_DIMENSIONS,
|
|
15
15
|
isCompositionElement,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
isTextElement,
|
|
18
18
|
keyframesToGsapAnimations,
|
|
19
19
|
serializeGsapAnimations
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OFRRUYBA.js";
|
|
21
21
|
import {
|
|
22
22
|
COMPOSITION_ATTRIBUTES,
|
|
23
23
|
MEDIA_START_BASIS_ATTR,
|
|
@@ -479,6 +479,12 @@ function richTextHtml(content) {
|
|
|
479
479
|
return result.join("");
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
+
// ../core/dist/runtime/mediaClock.js
|
|
483
|
+
var MEDIA_ELEMENT_LEAD_SECONDS = 1e-5;
|
|
484
|
+
function mediaElementTime(sourceSeconds) {
|
|
485
|
+
return sourceSeconds + MEDIA_ELEMENT_LEAD_SECONDS;
|
|
486
|
+
}
|
|
487
|
+
|
|
482
488
|
// ../core/dist/generators/hyperframes.js
|
|
483
489
|
function escapeHtmlAttributeValue(value) {
|
|
484
490
|
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
@@ -619,7 +625,8 @@ function generateGsapTimelineScript(elements, totalDuration, options = {}) {
|
|
|
619
625
|
if (animations && animations.length > 0) {
|
|
620
626
|
const allAnimations = [...animations, ...keyframeAnimations];
|
|
621
627
|
gsapScript = serializeGsapAnimations(allAnimations, "tl", {
|
|
622
|
-
includeMediaSync: hasMedia
|
|
628
|
+
includeMediaSync: hasMedia,
|
|
629
|
+
mediaElementLeadSeconds: MEDIA_ELEMENT_LEAD_SECONDS
|
|
623
630
|
});
|
|
624
631
|
const prependAnimations = [initialPositionSets, visibilityAnimations].filter(Boolean).join("\n");
|
|
625
632
|
if (prependAnimations) {
|
|
@@ -631,7 +638,8 @@ ${prependAnimations}`);
|
|
|
631
638
|
}
|
|
632
639
|
} else if (keyframeAnimations.length > 0) {
|
|
633
640
|
gsapScript = serializeGsapAnimations(keyframeAnimations, "tl", {
|
|
634
|
-
includeMediaSync: hasMedia
|
|
641
|
+
includeMediaSync: hasMedia,
|
|
642
|
+
mediaElementLeadSeconds: MEDIA_ELEMENT_LEAD_SECONDS
|
|
635
643
|
});
|
|
636
644
|
const prependAnimations = [initialPositionSets, visibilityAnimations].filter(Boolean).join("\n");
|
|
637
645
|
if (prependAnimations) {
|
|
@@ -954,7 +962,7 @@ function generateDefaultGsapAnimations(elements, totalDuration, stageZoomKeyfram
|
|
|
954
962
|
const mediaTime = time - start;
|
|
955
963
|
if (time >= start && time < end) {
|
|
956
964
|
if (Math.abs(media.currentTime - mediaTime) > 0.1) {
|
|
957
|
-
media.currentTime = mediaTime;
|
|
965
|
+
media.currentTime = mediaTime + ${MEDIA_ELEMENT_LEAD_SECONDS};
|
|
958
966
|
}
|
|
959
967
|
if (media.paused && !tl.paused()) {
|
|
960
968
|
media.play().catch(function() {});
|
|
@@ -4560,14 +4568,14 @@ function createRuntimeStartTimeResolver(params) {
|
|
|
4560
4568
|
durationCache.set(element, resolved);
|
|
4561
4569
|
return resolved;
|
|
4562
4570
|
};
|
|
4563
|
-
const
|
|
4571
|
+
const COMPOSITION_HOST_SELECTOR = "[data-composition-src], [data-composition-id], [data-composition-file]";
|
|
4572
|
+
const isCompositionHost = (element) => element.matches(COMPOSITION_HOST_SELECTOR);
|
|
4564
4573
|
const inheritedTimingHost = (element) => {
|
|
4565
|
-
|
|
4566
|
-
if (!parent || !element.hasAttribute("data-composition-id"))
|
|
4574
|
+
if (!element.hasAttribute("data-composition-id"))
|
|
4567
4575
|
return null;
|
|
4568
4576
|
if (parseStartExpression(element.getAttribute("data-start")))
|
|
4569
4577
|
return null;
|
|
4570
|
-
return
|
|
4578
|
+
return element.parentElement?.closest(`[data-start], ${COMPOSITION_HOST_SELECTOR}`) ?? null;
|
|
4571
4579
|
};
|
|
4572
4580
|
const resolveCompositionOrigin = (compositionRoot, fallback) => compositionOriginSeconds(resolveStartForElementInternal(compositionRoot, fallback), inheritedTimingHost(compositionRoot) ?? compositionRoot);
|
|
4573
4581
|
const resolveHostOffsetForElement = (element, fallback) => {
|
|
@@ -5632,6 +5640,8 @@ export {
|
|
|
5632
5640
|
isAllowedHtmlAttribute,
|
|
5633
5641
|
isSafeAttributeValue,
|
|
5634
5642
|
sanitizeRichTextChildren,
|
|
5643
|
+
MEDIA_ELEMENT_LEAD_SECONDS,
|
|
5644
|
+
mediaElementTime,
|
|
5635
5645
|
generateHyperframesStyles,
|
|
5636
5646
|
generateGsapTimelineScript,
|
|
5637
5647
|
generateHyperframesHtml,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
} from "./chunk-ELP5QZWL.js";
|
|
17
17
|
import {
|
|
18
18
|
rewriteSrcsetUrls
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KLIPVNCO.js";
|
|
20
20
|
import {
|
|
21
21
|
decodeUrlPathVariants,
|
|
22
22
|
encodeUrlPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OFRRUYBA.js";
|
|
24
24
|
import {
|
|
25
25
|
CSS_URL_RE,
|
|
26
26
|
isNonRelativeUrl,
|
|
@@ -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-FNNGQ3DB.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-2RT7MXFL.js";
|
|
18
18
|
import {
|
|
19
19
|
findFFmpeg,
|
|
20
20
|
findFFprobe,
|
|
21
21
|
getFFmpegInstallHint
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-5QKJPCQ4.js";
|
|
23
23
|
import {
|
|
24
24
|
findWavChunk
|
|
25
25
|
} from "./chunk-UOFAE5RF.js";
|
|
@@ -63,8 +63,59 @@ function renderSetupFailureFrom(stderr) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
// src/utils/cancellableProcess.ts
|
|
66
|
-
import { spawn } from "child_process";
|
|
66
|
+
import { spawn as spawn2 } from "child_process";
|
|
67
|
+
import { StringDecoder } from "string_decoder";
|
|
67
68
|
import { fileURLToPath } from "url";
|
|
69
|
+
|
|
70
|
+
// src/utils/childReaper.ts
|
|
71
|
+
import { spawn } from "child_process";
|
|
72
|
+
var REAPER = `const held = new Map();
|
|
73
|
+
let rest = "";
|
|
74
|
+
const kill = (pid, group) => {
|
|
75
|
+
try {
|
|
76
|
+
if (process.platform === "win32")
|
|
77
|
+
require("node:child_process").spawnSync("taskkill", ["/PID", pid, "/T", "/F"], { windowsHide: true, timeout: 10000 });
|
|
78
|
+
else process.kill(group ? -Number(pid) : Number(pid), "SIGKILL");
|
|
79
|
+
} catch {}
|
|
80
|
+
};
|
|
81
|
+
process.stdin.on("data", (data) => {
|
|
82
|
+
const lines = (rest + data).split("\\n");
|
|
83
|
+
rest = lines.pop();
|
|
84
|
+
for (const [op, pid, group] of lines.map((line) => line.split(" ")))
|
|
85
|
+
op === "+" ? held.set(pid, group === "g") : held.delete(pid);
|
|
86
|
+
});
|
|
87
|
+
const done = () => {
|
|
88
|
+
for (const [pid, group] of held) kill(pid, group);
|
|
89
|
+
process.exit(0);
|
|
90
|
+
};
|
|
91
|
+
process.stdin.on("end", done);
|
|
92
|
+
process.stdin.on("error", done);`;
|
|
93
|
+
var reaper;
|
|
94
|
+
function lifeline() {
|
|
95
|
+
if (!reaper) {
|
|
96
|
+
reaper = spawn(process.execPath, ["-e", REAPER], {
|
|
97
|
+
detached: true,
|
|
98
|
+
stdio: ["pipe", "ignore", "ignore"],
|
|
99
|
+
windowsHide: true
|
|
100
|
+
});
|
|
101
|
+
reaper.on("error", () => {
|
|
102
|
+
});
|
|
103
|
+
reaper.stdin?.on("error", () => {
|
|
104
|
+
});
|
|
105
|
+
reaper.unref();
|
|
106
|
+
reaper.stdin?.unref?.();
|
|
107
|
+
}
|
|
108
|
+
return reaper.stdin;
|
|
109
|
+
}
|
|
110
|
+
function killWithThisProcess(pid, group) {
|
|
111
|
+
const stdin = lifeline();
|
|
112
|
+
stdin?.write(`+ ${pid} ${group ? "g" : "p"}
|
|
113
|
+
`);
|
|
114
|
+
return () => void stdin?.write(`- ${pid}
|
|
115
|
+
`);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// src/utils/cancellableProcess.ts
|
|
68
119
|
var CancellableProcessError = class extends Error {
|
|
69
120
|
code;
|
|
70
121
|
status;
|
|
@@ -97,14 +148,18 @@ function runCancellableProcess(command, args, options = {}) {
|
|
|
97
148
|
windowsHide: true,
|
|
98
149
|
detached
|
|
99
150
|
};
|
|
100
|
-
child =
|
|
151
|
+
child = spawn2(command, [...args], spawnOptions);
|
|
101
152
|
} catch (error) {
|
|
102
153
|
reject(error);
|
|
103
154
|
return;
|
|
104
155
|
}
|
|
156
|
+
const release = child.pid ? killWithThisProcess(child.pid, detached) : void 0;
|
|
105
157
|
if (child.pid) options.onSpawn?.(child.pid);
|
|
106
158
|
let stdout = "";
|
|
107
159
|
let stderr = "";
|
|
160
|
+
const stdoutDecoder = new StringDecoder("utf8");
|
|
161
|
+
const stderrDecoder = new StringDecoder("utf8");
|
|
162
|
+
let outputBytes = 0;
|
|
108
163
|
let settled = false;
|
|
109
164
|
let terminationReason;
|
|
110
165
|
let terminationSignal;
|
|
@@ -137,21 +192,29 @@ function runCancellableProcess(command, args, options = {}) {
|
|
|
137
192
|
};
|
|
138
193
|
const onAbort = () => terminate(signal?.reason ?? new Error("Operation aborted"));
|
|
139
194
|
child.stdout?.on("data", (chunk) => {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
195
|
+
const decoded = typeof chunk === "string" ? chunk : stdoutDecoder.write(chunk);
|
|
196
|
+
stdout += decoded;
|
|
197
|
+
options.onStdout?.(decoded);
|
|
198
|
+
outputBytes += typeof chunk === "string" ? Buffer.byteLength(chunk) : chunk.length;
|
|
199
|
+
if (outputBytes > maxBufferBytes) {
|
|
143
200
|
terminate(new Error(`Process output exceeded ${maxBufferBytes} bytes`), "ENOBUFS");
|
|
144
201
|
}
|
|
145
202
|
});
|
|
146
203
|
child.stderr?.on("data", (chunk) => {
|
|
147
|
-
stderr += chunk.
|
|
148
|
-
|
|
204
|
+
stderr += typeof chunk === "string" ? chunk : stderrDecoder.write(chunk);
|
|
205
|
+
outputBytes += typeof chunk === "string" ? Buffer.byteLength(chunk) : chunk.length;
|
|
206
|
+
if (outputBytes > maxBufferBytes) {
|
|
149
207
|
terminate(new Error(`Process output exceeded ${maxBufferBytes} bytes`), "ENOBUFS");
|
|
150
208
|
}
|
|
151
209
|
});
|
|
152
210
|
child.once("error", (error) => void finishReject(error));
|
|
153
211
|
child.once("close", async (status, closeSignal) => {
|
|
212
|
+
release?.();
|
|
154
213
|
if (settled) return;
|
|
214
|
+
const trailingStdout = stdoutDecoder.end();
|
|
215
|
+
stdout += trailingStdout;
|
|
216
|
+
if (trailingStdout) options.onStdout?.(trailingStdout);
|
|
217
|
+
stderr += stderrDecoder.end();
|
|
155
218
|
if (terminationTask) terminationSignal = await terminationTask.catch(() => terminationSignal);
|
|
156
219
|
if (settled) return;
|
|
157
220
|
settled = true;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
loadProducer
|
|
9
|
+
} from "./chunk-CNVHMLPI.js";
|
|
10
|
+
import {
|
|
11
|
+
resolveProjectRelativeSrc
|
|
12
|
+
} from "./chunk-PBNWRWKA.js";
|
|
13
|
+
|
|
14
|
+
// src/utils/projectMedia.ts
|
|
15
|
+
async function collectProjectMedia(projectDir) {
|
|
16
|
+
const { bundleToSingleHtml } = await import("./compiler-4MHMC777.js");
|
|
17
|
+
const html = await bundleToSingleHtml(projectDir);
|
|
18
|
+
const producer = await loadProducer();
|
|
19
|
+
if (!producer.collectRenderMedia) throw new Error("Render media collector unavailable");
|
|
20
|
+
return { ...producer.collectRenderMedia(html), html };
|
|
21
|
+
}
|
|
22
|
+
function mediaPath(src, projectDir) {
|
|
23
|
+
return /^https?:\/\//i.test(src) ? src : resolveProjectRelativeSrc(src, projectDir, projectDir);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
collectProjectMedia,
|
|
28
|
+
mediaPath
|
|
29
|
+
};
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4DGLKB2H.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
15
|
} from "./chunk-GMECXFAN.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VW2LVMKB.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot
|
|
21
21
|
} from "./chunk-OFQWTKPW.js";
|