@ignix-social/editor 0.1.0
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/LICENSE +190 -0
- package/NOTICE +54 -0
- package/README.md +23 -0
- package/bin/ignix-editor.mjs +8 -0
- package/package.json +53 -0
- package/patches/index.mjs +53 -0
- package/scripts/build-ffmpeg-macos.sh +35 -0
- package/scripts/build-whisper-macos.sh +21 -0
- package/scripts/vendor.mjs +41 -0
- package/skills/ignix-editor/SKILL.md +132 -0
- package/src/audio.mjs +31 -0
- package/src/binaries.json +46 -0
- package/src/binaries.mjs +83 -0
- package/src/cli.mjs +254 -0
- package/src/prepare.mjs +74 -0
- package/src/runtime/ignix-frame.js +92 -0
- package/src/transcribe.mjs +71 -0
- package/src/validate.mjs +71 -0
- package/templates/blank/index.html +41 -0
- package/vendor/hyperframes/README.md +181 -0
- package/vendor/hyperframes/UPSTREAM.json +12 -0
- package/vendor/hyperframes/bin/hyperframes-localize-fonts.mjs +12 -0
- package/vendor/hyperframes/bin/hyperframes.mjs +11 -0
- package/vendor/hyperframes/dist/add-LR3ZR2A5.js +79 -0
- package/vendor/hyperframes/dist/agentPromptGenerator-VIIPZCJ3.js +143 -0
- package/vendor/hyperframes/dist/animatedGifPrep-P2T6YM7Z.js +34 -0
- package/vendor/hyperframes/dist/asset-BE2DOV72.js +26 -0
- package/vendor/hyperframes/dist/assetCataloger-VBLPHX24.js +340 -0
- package/vendor/hyperframes/dist/auth-RCQB2ZT7.js +60 -0
- package/vendor/hyperframes/dist/autoUpdate-RJAX3DAZ.js +268 -0
- package/vendor/hyperframes/dist/backgroundChecks-H2LCUIMJ.js +61 -0
- package/vendor/hyperframes/dist/backgroundChecksWorker.js +26 -0
- package/vendor/hyperframes/dist/batchRender-FT7AP7XH.js +355 -0
- package/vendor/hyperframes/dist/beat-analyzer.global.js +338 -0
- package/vendor/hyperframes/dist/beats-Y2EOP72P.js +309 -0
- package/vendor/hyperframes/dist/benchmark-MZ7GY3JW.js +231 -0
- package/vendor/hyperframes/dist/browser-HUTAMRQE.js +237 -0
- package/vendor/hyperframes/dist/bundleWithLocalizedFonts-5QOPOB5D.js +52 -0
- package/vendor/hyperframes/dist/capture-RLZA6EMR.js +4079 -0
- package/vendor/hyperframes/dist/capture-SZZ4IYJK.js +290 -0
- package/vendor/hyperframes/dist/captureFile-LYOJOUIE.js +15 -0
- package/vendor/hyperframes/dist/captureTimeout-PA4FYWT5.js +27 -0
- package/vendor/hyperframes/dist/catalog-KYU55EWR.js +1001 -0
- package/vendor/hyperframes/dist/check-TCG4PXLR.js +1697 -0
- package/vendor/hyperframes/dist/checkBrowser-RPMO4OW5.js +1032 -0
- package/vendor/hyperframes/dist/chunk-2EAXUCCE.js +88 -0
- package/vendor/hyperframes/dist/chunk-2EGFTPWD.js +1077 -0
- package/vendor/hyperframes/dist/chunk-2PSPARWP.js +6058 -0
- package/vendor/hyperframes/dist/chunk-2YN64IN5.js +5747 -0
- package/vendor/hyperframes/dist/chunk-3GXQPCJC.js +682 -0
- package/vendor/hyperframes/dist/chunk-3ZP5DXE7.js +15 -0
- package/vendor/hyperframes/dist/chunk-4NWOGZZS.js +1990 -0
- package/vendor/hyperframes/dist/chunk-4PFZPP2N.js +587 -0
- package/vendor/hyperframes/dist/chunk-4THIAPBL.js +128 -0
- package/vendor/hyperframes/dist/chunk-4YYJOFKS.js +28 -0
- package/vendor/hyperframes/dist/chunk-54HJ63Q2.js +29 -0
- package/vendor/hyperframes/dist/chunk-5ETJX6WM.js +89 -0
- package/vendor/hyperframes/dist/chunk-5IAKAQA7.js +389 -0
- package/vendor/hyperframes/dist/chunk-5Z63TBTX.js +37 -0
- package/vendor/hyperframes/dist/chunk-6BEFEWFB.js +25 -0
- package/vendor/hyperframes/dist/chunk-6CSYCFQV.js +68 -0
- package/vendor/hyperframes/dist/chunk-6CTIGJY7.js +154 -0
- package/vendor/hyperframes/dist/chunk-7HG4BFIN.js +93 -0
- package/vendor/hyperframes/dist/chunk-7JZ4FXP2.js +118 -0
- package/vendor/hyperframes/dist/chunk-A2Z4Z4VL.js +2961 -0
- package/vendor/hyperframes/dist/chunk-AMKC3AXA.js +25 -0
- package/vendor/hyperframes/dist/chunk-AVUUN2XD.js +4847 -0
- package/vendor/hyperframes/dist/chunk-AWDFDFI3.js +46 -0
- package/vendor/hyperframes/dist/chunk-AWNBM3MZ.js +94 -0
- package/vendor/hyperframes/dist/chunk-BXCMXMJQ.js +73 -0
- package/vendor/hyperframes/dist/chunk-BZ56MTDX.js +6 -0
- package/vendor/hyperframes/dist/chunk-CFKU7HTK.js +171 -0
- package/vendor/hyperframes/dist/chunk-CWPVM2QV.js +308 -0
- package/vendor/hyperframes/dist/chunk-DPVXBVLL.js +31292 -0
- package/vendor/hyperframes/dist/chunk-DQBY7FRR.js +397 -0
- package/vendor/hyperframes/dist/chunk-E6RPWJVC.js +213 -0
- package/vendor/hyperframes/dist/chunk-EISRN4E6.js +294 -0
- package/vendor/hyperframes/dist/chunk-EOVYQ3IG.js +143 -0
- package/vendor/hyperframes/dist/chunk-F3WZGU7C.js +479 -0
- package/vendor/hyperframes/dist/chunk-FCSIGXXP.js +366 -0
- package/vendor/hyperframes/dist/chunk-FI4I7CME.js +56 -0
- package/vendor/hyperframes/dist/chunk-FLWXXDNS.js +15 -0
- package/vendor/hyperframes/dist/chunk-GK4AIFIH.js +11171 -0
- package/vendor/hyperframes/dist/chunk-GMECXFAN.js +57 -0
- package/vendor/hyperframes/dist/chunk-GULOKZLI.js +155 -0
- package/vendor/hyperframes/dist/chunk-H4YZZ2VQ.js +68 -0
- package/vendor/hyperframes/dist/chunk-H6QMKUYA.js +477 -0
- package/vendor/hyperframes/dist/chunk-HBBJFK6I.js +273 -0
- package/vendor/hyperframes/dist/chunk-HRUGC23L.js +212 -0
- package/vendor/hyperframes/dist/chunk-HVW7ABXD.js +19 -0
- package/vendor/hyperframes/dist/chunk-HW6OYASV.js +344 -0
- package/vendor/hyperframes/dist/chunk-HWKCIWQT.js +3578 -0
- package/vendor/hyperframes/dist/chunk-I465DBM6.js +1214 -0
- package/vendor/hyperframes/dist/chunk-IGLEPPTN.js +24 -0
- package/vendor/hyperframes/dist/chunk-IGNAAHS3.js +433 -0
- package/vendor/hyperframes/dist/chunk-IHFUKJOR.js +85 -0
- package/vendor/hyperframes/dist/chunk-IQ3OUQ5Z.js +213 -0
- package/vendor/hyperframes/dist/chunk-ISN5GRYI.js +20 -0
- package/vendor/hyperframes/dist/chunk-IUZFXWSV.js +446 -0
- package/vendor/hyperframes/dist/chunk-JH556Q42.js +647 -0
- package/vendor/hyperframes/dist/chunk-JTHMTOMQ.js +601 -0
- package/vendor/hyperframes/dist/chunk-K2EQN4VU.js +405 -0
- package/vendor/hyperframes/dist/chunk-K2FTXJYH.js +16044 -0
- package/vendor/hyperframes/dist/chunk-K4WIOZFP.js +32 -0
- package/vendor/hyperframes/dist/chunk-K4WKGXRC.js +18 -0
- package/vendor/hyperframes/dist/chunk-KBJUXVOJ.js +172 -0
- package/vendor/hyperframes/dist/chunk-KC5XXX3X.js +590 -0
- package/vendor/hyperframes/dist/chunk-KNU5COPB.js +29 -0
- package/vendor/hyperframes/dist/chunk-KZI44OPA.js +185 -0
- package/vendor/hyperframes/dist/chunk-L3YOGIPG.js +48 -0
- package/vendor/hyperframes/dist/chunk-LAOCA3MQ.js +189 -0
- package/vendor/hyperframes/dist/chunk-LCSMOLGX.js +312 -0
- package/vendor/hyperframes/dist/chunk-LFGJWOVA.js +61 -0
- package/vendor/hyperframes/dist/chunk-LHSR3M4M.js +498 -0
- package/vendor/hyperframes/dist/chunk-LYNI3FOL.js +123 -0
- package/vendor/hyperframes/dist/chunk-M2WBOQ2Q.js +54 -0
- package/vendor/hyperframes/dist/chunk-MRF4AMKD.js +104 -0
- package/vendor/hyperframes/dist/chunk-MWB3ZIFM.js +852 -0
- package/vendor/hyperframes/dist/chunk-NGKM64BP.js +39 -0
- package/vendor/hyperframes/dist/chunk-NXMYHJAL.js +43 -0
- package/vendor/hyperframes/dist/chunk-OAF4XJOW.js +192 -0
- package/vendor/hyperframes/dist/chunk-OFQWTKPW.js +117 -0
- package/vendor/hyperframes/dist/chunk-P6LJ4Y32.js +4662 -0
- package/vendor/hyperframes/dist/chunk-PBN6GBJE.js +108 -0
- package/vendor/hyperframes/dist/chunk-PDAMK4Q5.js +28 -0
- package/vendor/hyperframes/dist/chunk-PFCFR3KZ.js +20 -0
- package/vendor/hyperframes/dist/chunk-PJ3HDUCY.js +108 -0
- package/vendor/hyperframes/dist/chunk-PMRBLBUP.js +152 -0
- package/vendor/hyperframes/dist/chunk-PPQUYWTW.js +240 -0
- package/vendor/hyperframes/dist/chunk-Q5X2B5WT.js +29 -0
- package/vendor/hyperframes/dist/chunk-Q7IU7MOR.js +351 -0
- package/vendor/hyperframes/dist/chunk-QC4FJVLM.js +371 -0
- package/vendor/hyperframes/dist/chunk-QNYYOUU3.js +1318 -0
- package/vendor/hyperframes/dist/chunk-RDNNAKEP.js +161 -0
- package/vendor/hyperframes/dist/chunk-RMHUQGRK.js +657 -0
- package/vendor/hyperframes/dist/chunk-RQVDTPGD.js +6 -0
- package/vendor/hyperframes/dist/chunk-RVCWIIZ7.js +68 -0
- package/vendor/hyperframes/dist/chunk-S3D6GE5W.js +72 -0
- package/vendor/hyperframes/dist/chunk-S3S4TGEH.js +424 -0
- package/vendor/hyperframes/dist/chunk-S7NPLFWV.js +11395 -0
- package/vendor/hyperframes/dist/chunk-SHB5VDMH.js +51 -0
- package/vendor/hyperframes/dist/chunk-TCLGPL65.js +860 -0
- package/vendor/hyperframes/dist/chunk-THXFSPLV.js +40 -0
- package/vendor/hyperframes/dist/chunk-TJSTGSAW.js +354 -0
- package/vendor/hyperframes/dist/chunk-TQFG7HTI.js +1024 -0
- package/vendor/hyperframes/dist/chunk-TVCRUG2S.js +265 -0
- package/vendor/hyperframes/dist/chunk-TWWSYAKJ.js +24 -0
- package/vendor/hyperframes/dist/chunk-U7CZBDMV.js +27 -0
- package/vendor/hyperframes/dist/chunk-UEZXMWG3.js +139 -0
- package/vendor/hyperframes/dist/chunk-UYEZTK4U.js +61 -0
- package/vendor/hyperframes/dist/chunk-VC76R6W2.js +27 -0
- package/vendor/hyperframes/dist/chunk-VFCKXTBB.js +159 -0
- package/vendor/hyperframes/dist/chunk-VWG7OQKU.js +22 -0
- package/vendor/hyperframes/dist/chunk-VXVRPIJA.js +105 -0
- package/vendor/hyperframes/dist/chunk-WBLXWOYK.js +15 -0
- package/vendor/hyperframes/dist/chunk-WERLJGIC.js +20 -0
- package/vendor/hyperframes/dist/chunk-WMQNIQDJ.js +2057 -0
- package/vendor/hyperframes/dist/chunk-WPHMNO44.js +4528 -0
- package/vendor/hyperframes/dist/chunk-X5HWXQPU.js +113 -0
- package/vendor/hyperframes/dist/chunk-X7MTZ4T2.js +6 -0
- package/vendor/hyperframes/dist/chunk-XH4DSOS5.js +59 -0
- package/vendor/hyperframes/dist/chunk-XS4EJSKU.js +23 -0
- package/vendor/hyperframes/dist/chunk-XT5P4QMO.js +181 -0
- package/vendor/hyperframes/dist/chunk-XT7X6QCP.js +6 -0
- package/vendor/hyperframes/dist/chunk-XUHOIDKG.js +6 -0
- package/vendor/hyperframes/dist/chunk-XUXGIA7H.js +485 -0
- package/vendor/hyperframes/dist/chunk-XZABUQTX.js +113 -0
- package/vendor/hyperframes/dist/chunk-Y6W4DVPS.js +356 -0
- package/vendor/hyperframes/dist/chunk-YEIFI443.js +44 -0
- package/vendor/hyperframes/dist/chunk-YQZNILVH.js +375 -0
- package/vendor/hyperframes/dist/chunk-Z27A7NUB.js +65 -0
- package/vendor/hyperframes/dist/chunk-Z6B37SNM.js +3081 -0
- package/vendor/hyperframes/dist/chunk-ZJUKFZ2P.js +10954 -0
- package/vendor/hyperframes/dist/chunk-ZKDMAOFU.js +32 -0
- package/vendor/hyperframes/dist/chunk-ZMXUQLI2.js +17219 -0
- package/vendor/hyperframes/dist/chunk-ZTZ7NCJT.js +58 -0
- package/vendor/hyperframes/dist/chunk-ZTZA4UWZ.js +108 -0
- package/vendor/hyperframes/dist/clean-W57E5YQ3.js +293 -0
- package/vendor/hyperframes/dist/cli.js +495 -0
- package/vendor/hyperframes/dist/cloud-FFTJGZ24.js +70 -0
- package/vendor/hyperframes/dist/cloudrun-AJUTHUEA.js +763 -0
- package/vendor/hyperframes/dist/colors-HKWSZCGK.js +15 -0
- package/vendor/hyperframes/dist/commands/contrast-audit.browser.js +459 -0
- package/vendor/hyperframes/dist/commands/layout-audit.browser.js +2102 -0
- package/vendor/hyperframes/dist/commands/motion-sample.browser.js +74 -0
- package/vendor/hyperframes/dist/commands/motion-signature.browser.js +374 -0
- package/vendor/hyperframes/dist/compare-AYCTT55F.js +421 -0
- package/vendor/hyperframes/dist/compiler-QO36EXLS.js +121 -0
- package/vendor/hyperframes/dist/component-VFFR2O7T.js +176 -0
- package/vendor/hyperframes/dist/compositions-QTVN3U2A.js +228 -0
- package/vendor/hyperframes/dist/contactSheet-27SRU7A4.js +22 -0
- package/vendor/hyperframes/dist/delete-ZAKYCB7I.js +114 -0
- package/vendor/hyperframes/dist/deploy-MX76RZ36.js +101 -0
- package/vendor/hyperframes/dist/destroy-H2TZBYHH.js +42 -0
- package/vendor/hyperframes/dist/deterministicFonts-HAEMV4TM.js +50 -0
- package/vendor/hyperframes/dist/dist-EWXJGN63.js +129 -0
- package/vendor/hyperframes/dist/dist-FNNGCKFS.js +29 -0
- package/vendor/hyperframes/dist/dist-S3PJNPXQ.js +392 -0
- package/vendor/hyperframes/dist/docker/Dockerfile.render +65 -0
- package/vendor/hyperframes/dist/docs/compositions.md +67 -0
- package/vendor/hyperframes/dist/docs/data-attributes.md +27 -0
- package/vendor/hyperframes/dist/docs/examples.md +19 -0
- package/vendor/hyperframes/dist/docs/gsap.md +26 -0
- package/vendor/hyperframes/dist/docs/rendering.md +35 -0
- package/vendor/hyperframes/dist/docs/troubleshooting.md +29 -0
- package/vendor/hyperframes/dist/docs-QAPJEGLS.js +131 -0
- package/vendor/hyperframes/dist/doctor-AI7C3FON.js +67 -0
- package/vendor/hyperframes/dist/dom-IROKGVJI.js +14 -0
- package/vendor/hyperframes/dist/dotEnv-AECLXQSO.js +14 -0
- package/vendor/hyperframes/dist/events-7LALYNKZ.js +92 -0
- package/vendor/hyperframes/dist/events-FQY3HGKZ.js +88 -0
- package/vendor/hyperframes/dist/feedback-WCMDMSTK.js +472 -0
- package/vendor/hyperframes/dist/ffmpeg-QIUFEFTY.js +35 -0
- package/vendor/hyperframes/dist/figma-64WY462P.js +63 -0
- package/vendor/hyperframes/dist/fontData.generated-NXAOI4GH.js +13 -0
- package/vendor/hyperframes/dist/fontLocalizeCli.js +132 -0
- package/vendor/hyperframes/dist/get-FPOMJMZB.js +103 -0
- package/vendor/hyperframes/dist/gpuPolicy-2ZUZE5D6.js +38 -0
- package/vendor/hyperframes/dist/grade-compare-E2CKPST4.js +647 -0
- package/vendor/hyperframes/dist/gsapParser-DIYYX6JT.js +2846 -0
- package/vendor/hyperframes/dist/gsapParserAcorn-E3GEIRZB.js +28 -0
- package/vendor/hyperframes/dist/help-YRQIDDML.js +197 -0
- package/vendor/hyperframes/dist/history-PP5NDRV3.js +571 -0
- package/vendor/hyperframes/dist/hyperframe-runtime.js +1081 -0
- package/vendor/hyperframes/dist/hyperframe.manifest.json +22 -0
- package/vendor/hyperframes/dist/hyperframe.runtime.iife.js +1081 -0
- package/vendor/hyperframes/dist/hyperframes-player.global.js +474 -0
- package/vendor/hyperframes/dist/hyperframes-slideshow.global.js +149 -0
- package/vendor/hyperframes/dist/info-SEX3B7JL.js +153 -0
- package/vendor/hyperframes/dist/init-U3AKHO5B.js +1147 -0
- package/vendor/hyperframes/dist/inspect-Q3K6EDEK.js +97 -0
- package/vendor/hyperframes/dist/installer-K6O5WF44.js +37 -0
- package/vendor/hyperframes/dist/keyframes-DC64JCI3.js +2602 -0
- package/vendor/hyperframes/dist/lambda-D7UMN4DJ.js +451 -0
- package/vendor/hyperframes/dist/layout-XSPPDHOO.js +86 -0
- package/vendor/hyperframes/dist/lib-TPG2ZMAX.js +128 -0
- package/vendor/hyperframes/dist/lint-7DQZE7L3.js +164 -0
- package/vendor/hyperframes/dist/lintProject-OHBBM3DJ.js +27 -0
- package/vendor/hyperframes/dist/list-4K5MVDQX.js +162 -0
- package/vendor/hyperframes/dist/login-NTX4OWXL.js +377 -0
- package/vendor/hyperframes/dist/logout-Q654A3SI.js +100 -0
- package/vendor/hyperframes/dist/manager-67P2XFXQ.js +34 -0
- package/vendor/hyperframes/dist/manager-CT3D67CG.js +38 -0
- package/vendor/hyperframes/dist/manager-GFN75DM4.js +30 -0
- package/vendor/hyperframes/dist/media-treatment-5FYAOPNL.js +972 -0
- package/vendor/hyperframes/dist/media-use-4XXGABIL.js +113 -0
- package/vendor/hyperframes/dist/models-C4E4IWJD.js +137 -0
- package/vendor/hyperframes/dist/motionShot-S4MIGMT5.js +614 -0
- package/vendor/hyperframes/dist/normalize-O76AC4HE.js +333 -0
- package/vendor/hyperframes/dist/normalize-audio-CSFTXLXD.js +276 -0
- package/vendor/hyperframes/dist/open-2ZD6BHZG.js +115 -0
- package/vendor/hyperframes/dist/pipeline-TNGWUZQC.js +54 -0
- package/vendor/hyperframes/dist/play-CTMUXX6E.js +349 -0
- package/vendor/hyperframes/dist/policies-FSDZVS2E.js +292 -0
- package/vendor/hyperframes/dist/preflight-SMNV6RW2.js +45 -0
- package/vendor/hyperframes/dist/present-WQVHV5CR.js +350 -0
- package/vendor/hyperframes/dist/preview-JOJXTH75.js +1820 -0
- package/vendor/hyperframes/dist/producer-ECLEN5RP.js +13 -0
- package/vendor/hyperframes/dist/progress-FBIEEB7Y.js +73 -0
- package/vendor/hyperframes/dist/projectConfig-HYJMJ5BY.js +56 -0
- package/vendor/hyperframes/dist/publication-HQ5Y3KBM.js +29 -0
- package/vendor/hyperframes/dist/publish-VHDYQASC.js +430 -0
- package/vendor/hyperframes/dist/refresh-K24ETHMA.js +53 -0
- package/vendor/hyperframes/dist/remove-background-W2YX2NVH.js +253 -0
- package/vendor/hyperframes/dist/render-AO5VX3YI.js +177 -0
- package/vendor/hyperframes/dist/render-LNO62LEL.js +2367 -0
- package/vendor/hyperframes/dist/render-TTQI7TGN.js +796 -0
- package/vendor/hyperframes/dist/render-batch-YH7CTWNY.js +284 -0
- package/vendor/hyperframes/dist/renderCancellation-JPIHE47X.js +35 -0
- package/vendor/hyperframes/dist/renderSetupWorker.js +79 -0
- package/vendor/hyperframes/dist/resolver-IZ647GBZ.js +38 -0
- package/vendor/hyperframes/dist/runtimeVersion.js +18 -0
- package/vendor/hyperframes/dist/screenshotCapture-ECBTLCU6.js +179 -0
- package/vendor/hyperframes/dist/shaderTransitionWorker.js +44 -0
- package/vendor/hyperframes/dist/sherpa-KKLNW6U2.js +314 -0
- package/vendor/hyperframes/dist/sherpaWorker.js +77 -0
- package/vendor/hyperframes/dist/sites-TNVKZS73.js +52 -0
- package/vendor/hyperframes/dist/skill-ZHVLH7KX.js +15 -0
- package/vendor/hyperframes/dist/skills/hyperframes/SKILL.md +152 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/brief-contract.md +108 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/brief-format.md +72 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/capability-menu.md +47 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/frame-worker-core.md +80 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/intent-interview.md +73 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/pitch-round.md +40 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/plugin-installation.md +43 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/production-loop.md +26 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/review-loop.md +37 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/route-briefs.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/embedded-captions.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/faceless-explainer.md +12 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/general-video.md +12 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/motion-graphics.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/music-to-video.md +12 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/pr-to-video.md +28 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/product-launch-video.md +13 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/remotion-to-hyperframes.md +9 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/slideshow.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/talking-head-recut.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/script-format.md +52 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/skill-lifecycle.md +35 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/storyboard-format.md +99 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/subagent-dispatch.md +35 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/workflow-catalog.md +10 -0
- package/vendor/hyperframes/dist/skills/hyperframes/scripts/lib/frame-packets-core.mjs +194 -0
- package/vendor/hyperframes/dist/skills/hyperframes/scripts/plugin-cli.mjs +88 -0
- package/vendor/hyperframes/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +117 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/SKILL.md +189 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/beats.md +19 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/cloud.md +163 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/cloudrun.md +62 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/compare-and-batch.md +105 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/doctor-browser.md +57 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/init-and-scaffold.md +74 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/lambda.md +185 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +132 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/preview-render.md +193 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/upgrade-info-misc.md +134 -0
- package/vendor/hyperframes/dist/skills/media-use/SKILL.md +100 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/CREDITS.md +35 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/chime.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/click-soft.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/click.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/error.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/glitch-1.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/glitch-2.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/glitch-3.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/impact-bass-1.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/impact-bass-2.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/key-press.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/manifest.json +97 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/notification.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/ping.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/pop.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/riser.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/sparkle.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/typing.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/whoosh-cinematic.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/whoosh-short.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/whoosh.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/bgm.md +76 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/captions/authoring.md +163 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/captions/motion.md +87 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/captions/transcript-handling.md +97 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/remove-background.md +143 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/requirements.md +29 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/sfx.md +42 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/transcribe.md +52 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/tts-to-captions.md +35 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/tts.md +260 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/audio.mjs +311 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/audio.test.mjs +159 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +131 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/heygen-tts.mjs +122 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/heygen-tts.test.mjs +38 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/heygen-voice.mjs +98 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/heygen-voice.test.mjs +233 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/audio-meta.mjs +39 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/audio-meta.test.mjs +136 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/bgm-volume.mjs +4 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/bgm.mjs +257 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +74 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/concurrency.mjs +14 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/concurrency.test.mjs +41 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-auth.mjs +43 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-auth.py +52 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-auth.test.mjs +86 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-auth_test.py +90 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +122 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +243 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/heygen.mjs +197 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +185 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/media-record.mjs +114 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/media-record.test.mjs +205 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/python.mjs +77 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/python.test.mjs +136 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/sfx.mjs +165 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/sfx.test.mjs +121 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/tts.mjs +389 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/tts.spawn.test.mjs +158 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +230 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lyria-recipe.py +136 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/wait-bgm.mjs +175 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/wait-bgm.test.mjs +108 -0
- package/vendor/hyperframes/dist/skills/media-use/luts/README.md +28 -0
- package/vendor/hyperframes/dist/skills/media-use/luts/index.json +57 -0
- package/vendor/hyperframes/dist/skills/media-use/references/audio.md +20 -0
- package/vendor/hyperframes/dist/skills/media-use/references/grading.md +160 -0
- package/vendor/hyperframes/dist/skills/media-use/references/media-treatment-recipes.md +929 -0
- package/vendor/hyperframes/dist/skills/media-use/references/media-treatments.md +202 -0
- package/vendor/hyperframes/dist/skills/media-use/references/memory.md +37 -0
- package/vendor/hyperframes/dist/skills/media-use/references/meta.md +61 -0
- package/vendor/hyperframes/dist/skills/media-use/references/operations.md +327 -0
- package/vendor/hyperframes/dist/skills/media-use/references/resolve.md +150 -0
- package/vendor/hyperframes/dist/skills/media-use/references/setup-providers.md +80 -0
- package/vendor/hyperframes/dist/skills/media-use/references/telemetry-dashboard.md +49 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/audio-duck.mjs +113 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/compatibility.test.mjs +96 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/dither.mjs +328 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/dither.test.mjs +176 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/eval.mjs +369 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/adopt.mjs +128 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/adopt.test.mjs +95 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/bgm-provider.mjs +20 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/brand-provider.mjs +59 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +119 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +139 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cache.mjs +148 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/candidates.mjs +91 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/candidates.test.mjs +155 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/codex-provider.mjs +161 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/codex-provider.test.mjs +34 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/config-lock.d.mts +3 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/config-lock.mjs +45 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/config-lock.test.mjs +79 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/coverage.test.mjs +136 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cube-build.mjs +181 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cube-build.test.mjs +80 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cube-validate.mjs +198 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cube-validate.test.mjs +125 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cutlist.mjs +184 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cutlist.test.mjs +162 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/duck.mjs +95 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/duck.test.mjs +153 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/error-diffusion.mjs +230 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/error-diffusion.test.mjs +102 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/ff-binaries.mjs +37 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/freeze.mjs +72 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/freeze.test.mjs +138 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/grade-analyzer.mjs +265 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/grade-analyzer.test.mjs +285 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-cli.mjs +191 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-cli.test.mjs +301 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-search.mjs +45 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-search.test.mjs +49 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-video-provider.mjs +138 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-video-provider.test.mjs +435 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/image-provider.mjs +44 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/index-gen.mjs +63 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-media-search.mjs +32 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-models.mjs +318 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-models.test.mjs +220 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-run.mjs +78 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-run.test.mjs +121 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/logo-provider.mjs +244 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/logo-provider.test.mjs +298 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/ltx-video-provider.mjs +94 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +316 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/lut-preset-provider.mjs +271 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/lut-preset-provider.test.mjs +199 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/manifest.d.mts +19 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/manifest.mjs +279 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/manifest.test.mjs +397 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/match.mjs +47 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-fetch.mjs +85 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-fetch.test.mjs +197 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-home.mjs +20 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-home.test.mjs +61 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-search.d.mts +9 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-search.mjs +107 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/mflux-provider.mjs +128 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/mflux-provider.test.mjs +174 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/misses.mjs +49 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/misses.test.mjs +89 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/npx-sync.mjs +31 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/npx-sync.test.mjs +50 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/parakeet-words.mjs +27 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/parakeet-words.test.mjs +44 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/prefs-store.mjs +180 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/prefs-store.test.mjs +189 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/probe.mjs +41 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/probe.test.mjs +148 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/providers.mjs +5 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/recipe-store.mjs +367 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/recipe-store.test.mjs +367 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/registry.mjs +212 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/registry.test.mjs +262 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/search.mjs +24 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/search.test.mjs +32 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/specs.mjs +132 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/specs.test.mjs +157 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/stats.mjs +117 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/stats.test.mjs +165 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +21 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/telemetry.mjs +210 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/telemetry.test.mjs +437 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/test-home.test.mjs +10 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/transcriptCutFade.mjs +21 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/transcriptCutFade.test.mjs +33 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/tts-local-provider.mjs +94 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +72 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/usage.mjs +57 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/usage.test.mjs +54 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/voice-provider.mjs +57 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/voice-provider.test.mjs +46 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/words.mjs +18 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/prefs.mjs +70 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/recipe.mjs +103 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/resolve-plugin.test.mjs +62 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/resolve.mjs +1369 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/transcribe.mjs +194 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/transcribe.test.mjs +112 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/transcript-cut.mjs +270 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/transcript-cut.test.mjs +117 -0
- package/vendor/hyperframes/dist/skills-MJ2J4GEM.js +808 -0
- package/vendor/hyperframes/dist/skillsUpdateCheck-TKTYQN5R.js +26 -0
- package/vendor/hyperframes/dist/slideshow-EJ4IMY6P.js +24 -0
- package/vendor/hyperframes/dist/snapshot-KIVDUUMN.js +875 -0
- package/vendor/hyperframes/dist/src-6YQBJGWR.js +202 -0
- package/vendor/hyperframes/dist/src-PVYUYV3M.js +471 -0
- package/vendor/hyperframes/dist/state-KAXGHF77.js +26 -0
- package/vendor/hyperframes/dist/staticProjectServer-7EU666GS.js +49 -0
- package/vendor/hyperframes/dist/status-YM52BQ6S.js +311 -0
- package/vendor/hyperframes/dist/studio/assets/hyperframes-player-Cp8e_Zst.js +473 -0
- package/vendor/hyperframes/dist/studio/assets/index-BX3KHhGX.js +71 -0
- package/vendor/hyperframes/dist/studio/assets/index-CASEBNy2.js +1 -0
- package/vendor/hyperframes/dist/studio/assets/index-D11atkBt.css +1 -0
- package/vendor/hyperframes/dist/studio/assets/index-DMTt9nTf.js +531 -0
- package/vendor/hyperframes/dist/studio/assets/index-oE1pOdAy.js +399 -0
- package/vendor/hyperframes/dist/studio/chunk-5VSXRGIX.js +948 -0
- package/vendor/hyperframes/dist/studio/chunk-5VSXRGIX.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-7UQWVN52.js +938 -0
- package/vendor/hyperframes/dist/studio/chunk-7UQWVN52.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-EEXSYY5F.js +190 -0
- package/vendor/hyperframes/dist/studio/chunk-EEXSYY5F.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-FOEID72M.js +1441 -0
- package/vendor/hyperframes/dist/studio/chunk-FOEID72M.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-PZ5AY32C.js +10 -0
- package/vendor/hyperframes/dist/studio/chunk-PZ5AY32C.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-TDWGXBUT.js +1103 -0
- package/vendor/hyperframes/dist/studio/chunk-TDWGXBUT.js.map +1 -0
- package/vendor/hyperframes/dist/studio/domEditingLayers-IEVLO54Z.js +47 -0
- package/vendor/hyperframes/dist/studio/domEditingLayers-IEVLO54Z.js.map +1 -0
- package/vendor/hyperframes/dist/studio/favicon.svg +14 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/audio.svg +7 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/captions.svg +5 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/composition.svg +12 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/image.svg +18 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/music.svg +10 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/text.svg +3 -0
- package/vendor/hyperframes/dist/studio/index.css +165 -0
- package/vendor/hyperframes/dist/studio/index.css.map +1 -0
- package/vendor/hyperframes/dist/studio/index.d.ts +4296 -0
- package/vendor/hyperframes/dist/studio/index.html +23 -0
- package/vendor/hyperframes/dist/studio/index.js +99693 -0
- package/vendor/hyperframes/dist/studio/index.js.map +1 -0
- package/vendor/hyperframes/dist/studio/player.d.ts +30 -0
- package/vendor/hyperframes/dist/studio/player.js +10 -0
- package/vendor/hyperframes/dist/studio/player.js.map +1 -0
- package/vendor/hyperframes/dist/studio/styles/tailwind-preset.d.ts +39 -0
- package/vendor/hyperframes/dist/studio/styles/tailwind-preset.js +50 -0
- package/vendor/hyperframes/dist/studio/styles/tailwind-preset.js.map +1 -0
- package/vendor/hyperframes/dist/studio/styles.css +1 -0
- package/vendor/hyperframes/dist/studio/ui.d.ts +296 -0
- package/vendor/hyperframes/dist/studio/ui.js +66 -0
- package/vendor/hyperframes/dist/studio/ui.js.map +1 -0
- package/vendor/hyperframes/dist/studio-api-PNQZRPX5.js +136 -0
- package/vendor/hyperframes/dist/studioSelectionClient-IUUPKUHZ.js +25 -0
- package/vendor/hyperframes/dist/studioServer-UWRBPIOJ.js +1457 -0
- package/vendor/hyperframes/dist/synthesize-K62TIZWI.js +182 -0
- package/vendor/hyperframes/dist/system-EZYZNUFD.js +44 -0
- package/vendor/hyperframes/dist/telemetry-2YC4SGQU.js +144 -0
- package/vendor/hyperframes/dist/telemetry-QMYM4WME.js +95 -0
- package/vendor/hyperframes/dist/templates/_shared/AGENTS.md +107 -0
- package/vendor/hyperframes/dist/templates/_shared/CLAUDE.md +107 -0
- package/vendor/hyperframes/dist/templates/blank/index.html +55 -0
- package/vendor/hyperframes/dist/templates/from-file/index.html +75 -0
- package/vendor/hyperframes/dist/templates/warm-grain/compositions/captions.html +154 -0
- package/vendor/hyperframes/dist/templates/warm-grain/compositions/graphics.html +162 -0
- package/vendor/hyperframes/dist/templates/warm-grain/compositions/intro.html +87 -0
- package/vendor/hyperframes/dist/templates/warm-grain/index.html +264 -0
- package/vendor/hyperframes/dist/templates/warm-grain/registry-item.json +34 -0
- package/vendor/hyperframes/dist/timeline-77Z3BBQM.js +1377 -0
- package/vendor/hyperframes/dist/tokens-OBGTYE4Z.js +92 -0
- package/vendor/hyperframes/dist/transcribe-7NVFHCGA.js +387 -0
- package/vendor/hyperframes/dist/transcribe-BNSJRR4M.js +62 -0
- package/vendor/hyperframes/dist/tts-P3LIPIL5.js +234 -0
- package/vendor/hyperframes/dist/updateCheck-UDWIJ4ZQ.js +39 -0
- package/vendor/hyperframes/dist/upgrade-CT3CPO3E.js +231 -0
- package/vendor/hyperframes/dist/urlDownloader-H6WRI2UE.js +39 -0
- package/vendor/hyperframes/dist/usage-EC3KFUIJ.js +2139 -0
- package/vendor/hyperframes/dist/validate-65QDZJWZ.js +70 -0
- package/vendor/hyperframes/dist/video-FGSGKRSV.js +261 -0
- package/vendor/hyperframes/dist/workspaceBuildCheck-TOLGAI4T.js +133 -0
- package/vendor/hyperframes/package.json +80 -0
|
@@ -0,0 +1,938 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildElementLabel,
|
|
3
|
+
buildProjectApiPath,
|
|
4
|
+
buildStableSelector,
|
|
5
|
+
escapeCssString,
|
|
6
|
+
findClosestByAttribute,
|
|
7
|
+
getCompositionSourceMapRevision,
|
|
8
|
+
getCuratedComputedStyles,
|
|
9
|
+
getDataAttributes,
|
|
10
|
+
getInlineStyles,
|
|
11
|
+
getSelectorIndex,
|
|
12
|
+
getSourceFileForElement,
|
|
13
|
+
isAudibleVideoNode,
|
|
14
|
+
isEditableTextLeaf,
|
|
15
|
+
isElementVisibleThroughAncestors,
|
|
16
|
+
isHtmlElement,
|
|
17
|
+
normalizeTimelineCompositionSource,
|
|
18
|
+
parsePx,
|
|
19
|
+
querySelectorAllSafely,
|
|
20
|
+
withSelectorIndexPass
|
|
21
|
+
} from "./chunk-TDWGXBUT.js";
|
|
22
|
+
import {
|
|
23
|
+
__export
|
|
24
|
+
} from "./chunk-PZ5AY32C.js";
|
|
25
|
+
|
|
26
|
+
// src/components/editor/manualEditingAvailability.ts
|
|
27
|
+
var manualEditingAvailability_exports = {};
|
|
28
|
+
__export(manualEditingAvailability_exports, {
|
|
29
|
+
STUDIO_API_SAME_ORIGIN_CREDENTIALS: () => STUDIO_API_SAME_ORIGIN_CREDENTIALS,
|
|
30
|
+
STUDIO_FLAT_INSPECTOR_ENABLED: () => STUDIO_FLAT_INSPECTOR_ENABLED,
|
|
31
|
+
STUDIO_SDK_CUTOVER_ENABLED: () => STUDIO_SDK_CUTOVER_ENABLED,
|
|
32
|
+
STUDIO_SDK_CUTOVER_FAMILIES: () => STUDIO_SDK_CUTOVER_FAMILIES,
|
|
33
|
+
STUDIO_SDK_RESOLVER_SHADOW_ENABLED: () => STUDIO_SDK_RESOLVER_SHADOW_ENABLED,
|
|
34
|
+
resolveStudioBooleanEnvFlag: () => resolveStudioBooleanEnvFlag
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
// src/utils/sdkCutoverPolicy.ts
|
|
38
|
+
var STUDIO_SDK_OPERATION_FAMILIES = [
|
|
39
|
+
"dom",
|
|
40
|
+
"timing",
|
|
41
|
+
"gsap-animation",
|
|
42
|
+
"gsap-keyframe",
|
|
43
|
+
"lifecycle"
|
|
44
|
+
];
|
|
45
|
+
function resolveEnabledSdkFamilies(env2, masterEnabled) {
|
|
46
|
+
if (!masterEnabled) return /* @__PURE__ */ new Set();
|
|
47
|
+
const raw = env2["VITE_STUDIO_SDK_CUTOVER_FAMILIES"];
|
|
48
|
+
if (typeof raw !== "string" || raw.trim() === "") return new Set(STUDIO_SDK_OPERATION_FAMILIES);
|
|
49
|
+
const requested = raw.split(",").map((family) => family.trim()).filter(Boolean);
|
|
50
|
+
const known = new Set(STUDIO_SDK_OPERATION_FAMILIES);
|
|
51
|
+
const unknown = requested.filter((family) => !known.has(family));
|
|
52
|
+
if (unknown.length > 0) {
|
|
53
|
+
throw new Error(`Unknown Studio SDK cutover families: ${unknown.join(", ")}`);
|
|
54
|
+
}
|
|
55
|
+
return new Set(requested);
|
|
56
|
+
}
|
|
57
|
+
function isSdkFamilyEnabled(masterEnabled, configured, family) {
|
|
58
|
+
return masterEnabled && (configured?.has(family) ?? true);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// src/components/editor/manualEditingAvailability.ts
|
|
62
|
+
var TRUTHY_ENV_VALUES = /* @__PURE__ */ new Set(["1", "true", "yes", "on", "enabled"]);
|
|
63
|
+
var FALSY_ENV_VALUES = /* @__PURE__ */ new Set(["0", "false", "no", "off", "disabled"]);
|
|
64
|
+
function resolveStudioBooleanEnvFlag(env2, names, fallback) {
|
|
65
|
+
for (const name of names) {
|
|
66
|
+
const value = env2[name];
|
|
67
|
+
if (typeof value === "boolean") return value;
|
|
68
|
+
if (typeof value !== "string") continue;
|
|
69
|
+
const normalized = value.trim().toLowerCase();
|
|
70
|
+
if (!normalized) continue;
|
|
71
|
+
if (TRUTHY_ENV_VALUES.has(normalized)) return true;
|
|
72
|
+
if (FALSY_ENV_VALUES.has(normalized)) return false;
|
|
73
|
+
}
|
|
74
|
+
return fallback;
|
|
75
|
+
}
|
|
76
|
+
var runtimeEnv = typeof window !== "undefined" ? window.__HF_STUDIO_ENV__ ?? {} : {};
|
|
77
|
+
var env = { ...import.meta.env ?? {}, ...runtimeEnv };
|
|
78
|
+
var STUDIO_SDK_CUTOVER_ENABLED = resolveStudioBooleanEnvFlag(
|
|
79
|
+
env,
|
|
80
|
+
["VITE_STUDIO_SDK_CUTOVER_ENABLED"],
|
|
81
|
+
true
|
|
82
|
+
);
|
|
83
|
+
var STUDIO_SDK_CUTOVER_FAMILIES = resolveEnabledSdkFamilies(
|
|
84
|
+
env,
|
|
85
|
+
STUDIO_SDK_CUTOVER_ENABLED
|
|
86
|
+
);
|
|
87
|
+
var STUDIO_SDK_RESOLVER_SHADOW_ENABLED = resolveStudioBooleanEnvFlag(
|
|
88
|
+
env,
|
|
89
|
+
["VITE_STUDIO_SDK_RESOLVER_SHADOW_ENABLED"],
|
|
90
|
+
true
|
|
91
|
+
);
|
|
92
|
+
var STUDIO_FLAT_INSPECTOR_ENABLED = resolveStudioBooleanEnvFlag(
|
|
93
|
+
env,
|
|
94
|
+
["VITE_STUDIO_ENABLE_FLAT_INSPECTOR", "VITE_STUDIO_FLAT_INSPECTOR_ENABLED"],
|
|
95
|
+
true
|
|
96
|
+
);
|
|
97
|
+
var STUDIO_API_SAME_ORIGIN_CREDENTIALS = resolveStudioBooleanEnvFlag(
|
|
98
|
+
env,
|
|
99
|
+
["VITE_STUDIO_API_SAME_ORIGIN_CREDENTIALS"],
|
|
100
|
+
false
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
// src/utils/studioApiFetch.ts
|
|
104
|
+
var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]"]);
|
|
105
|
+
function studioApiCredentials() {
|
|
106
|
+
if (STUDIO_API_SAME_ORIGIN_CREDENTIALS) return "same-origin";
|
|
107
|
+
const host = globalThis.location?.hostname;
|
|
108
|
+
return !host || LOOPBACK_HOSTS.has(host) ? "omit" : "same-origin";
|
|
109
|
+
}
|
|
110
|
+
function studioApiFetch(input, init) {
|
|
111
|
+
return globalThis.fetch(input, { ...init, credentials: studioApiCredentials() });
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// src/components/editor/probeSourceElement.ts
|
|
115
|
+
function knownSourceAnswer(previous, element, sourceFile, target) {
|
|
116
|
+
if (!previous || previous.element !== element || previous.sourceFile !== sourceFile) return;
|
|
117
|
+
const same = previous.id === target.id && previous.hfId === target.hfId && previous.selector === target.selector && previous.selectorIndex === target.selectorIndex;
|
|
118
|
+
return same ? previous.existsInSource : void 0;
|
|
119
|
+
}
|
|
120
|
+
var pending = /* @__PURE__ */ new Map();
|
|
121
|
+
async function sendBatch(projectId, sourceFile, probes) {
|
|
122
|
+
let exists = [];
|
|
123
|
+
try {
|
|
124
|
+
const response = await studioApiFetch(
|
|
125
|
+
buildProjectApiPath(
|
|
126
|
+
projectId,
|
|
127
|
+
`/file-mutations/probe-elements/${encodeURIComponent(sourceFile)}`
|
|
128
|
+
),
|
|
129
|
+
{
|
|
130
|
+
method: "POST",
|
|
131
|
+
headers: { "Content-Type": "application/json" },
|
|
132
|
+
body: JSON.stringify({ targets: probes.map((probe) => probe.target) })
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
if (response.ok) {
|
|
136
|
+
const data = await response.json();
|
|
137
|
+
if (Array.isArray(data?.exists)) exists = data.exists;
|
|
138
|
+
}
|
|
139
|
+
} catch {
|
|
140
|
+
}
|
|
141
|
+
probes.forEach((probe, index) => probe.resolve(exists[index] !== false));
|
|
142
|
+
}
|
|
143
|
+
function probeSourceElement(projectId, sourceFile, target) {
|
|
144
|
+
return new Promise((resolve) => {
|
|
145
|
+
const key = `${projectId}\0${sourceFile}`;
|
|
146
|
+
let probes = pending.get(key);
|
|
147
|
+
if (!probes) {
|
|
148
|
+
const batch = [];
|
|
149
|
+
probes = batch;
|
|
150
|
+
pending.set(key, batch);
|
|
151
|
+
setTimeout(() => {
|
|
152
|
+
pending.delete(key);
|
|
153
|
+
void sendBatch(projectId, sourceFile, batch);
|
|
154
|
+
}, 0);
|
|
155
|
+
}
|
|
156
|
+
probes.push({ target, resolve });
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// src/components/editor/domEditingLayers.ts
|
|
161
|
+
import {
|
|
162
|
+
resolveEditingAffordances,
|
|
163
|
+
resolveEditingSections
|
|
164
|
+
} from "@hyperframes/core/editing";
|
|
165
|
+
|
|
166
|
+
// src/components/editor/domEditingGroups.ts
|
|
167
|
+
function groupScopedLayerRoots(root, activeGroupElement) {
|
|
168
|
+
const els = activeGroupElement?.isConnected ? Array.from(activeGroupElement.children) : [root];
|
|
169
|
+
return els.filter(isHtmlElement);
|
|
170
|
+
}
|
|
171
|
+
function resolveGroupCapture(startEl, activeGroupElement) {
|
|
172
|
+
const groups = [];
|
|
173
|
+
for (let n = startEl; n; n = n.parentElement) {
|
|
174
|
+
if (n.hasAttribute("data-hf-group")) groups.push(n);
|
|
175
|
+
}
|
|
176
|
+
const result = (() => {
|
|
177
|
+
if (!activeGroupElement) {
|
|
178
|
+
const outermost = groups[groups.length - 1];
|
|
179
|
+
return outermost ? { kind: "unit", element: outermost } : { kind: "child" };
|
|
180
|
+
}
|
|
181
|
+
const idx = groups.indexOf(activeGroupElement);
|
|
182
|
+
if (idx === -1) return { kind: "out-of-scope" };
|
|
183
|
+
const nestedInside = groups[idx - 1];
|
|
184
|
+
return nestedInside ? { kind: "unit", element: nestedInside } : { kind: "child" };
|
|
185
|
+
})();
|
|
186
|
+
return result;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// src/components/editor/domEditingElement.ts
|
|
190
|
+
function isElementComputedVisible(el, memo) {
|
|
191
|
+
return isElementVisibleThroughAncestors(el, memo);
|
|
192
|
+
}
|
|
193
|
+
var VISUAL_LEAF_TAGS = /* @__PURE__ */ new Set(["img", "video", "canvas", "svg", "audio"]);
|
|
194
|
+
function hasVisualPresence(el) {
|
|
195
|
+
const win = el.ownerDocument.defaultView;
|
|
196
|
+
if (!win) return false;
|
|
197
|
+
const cs = win.getComputedStyle(el);
|
|
198
|
+
if (cs.backgroundImage !== "none") return true;
|
|
199
|
+
if (cs.backgroundColor && cs.backgroundColor !== "transparent" && cs.backgroundColor !== "rgba(0, 0, 0, 0)")
|
|
200
|
+
return true;
|
|
201
|
+
if (cs.borderWidth && parseFloat(cs.borderWidth) > 0 && cs.borderStyle !== "none") return true;
|
|
202
|
+
if (cs.boxShadow && cs.boxShadow !== "none") return true;
|
|
203
|
+
return false;
|
|
204
|
+
}
|
|
205
|
+
function isEmptyVisualContainer(el) {
|
|
206
|
+
const tag = el.tagName.toLowerCase();
|
|
207
|
+
if (VISUAL_LEAF_TAGS.has(tag)) return false;
|
|
208
|
+
if (hasVisualPresence(el)) return false;
|
|
209
|
+
const { children } = el;
|
|
210
|
+
if (children.length === 0) {
|
|
211
|
+
return (el.textContent ?? "").trim().length === 0;
|
|
212
|
+
}
|
|
213
|
+
for (let i = 0; i < children.length; i += 1) {
|
|
214
|
+
const child = children[i];
|
|
215
|
+
if (!isHtmlElement(child)) continue;
|
|
216
|
+
if (VISUAL_LEAF_TAGS.has(child.tagName.toLowerCase())) return false;
|
|
217
|
+
if (isElementComputedVisible(child)) return false;
|
|
218
|
+
}
|
|
219
|
+
return true;
|
|
220
|
+
}
|
|
221
|
+
function hasRenderedBox(el) {
|
|
222
|
+
const rect = el.getBoundingClientRect();
|
|
223
|
+
if (rect.width <= 1 || rect.height <= 1) return false;
|
|
224
|
+
if (!isElementComputedVisible(el)) return false;
|
|
225
|
+
if (isEmptyVisualContainer(el)) return false;
|
|
226
|
+
return true;
|
|
227
|
+
}
|
|
228
|
+
var DOM_LAYER_IGNORED_TAGS = /* @__PURE__ */ new Set([
|
|
229
|
+
"base",
|
|
230
|
+
"br",
|
|
231
|
+
"canvas",
|
|
232
|
+
"link",
|
|
233
|
+
"meta",
|
|
234
|
+
"script",
|
|
235
|
+
"source",
|
|
236
|
+
"style",
|
|
237
|
+
"template",
|
|
238
|
+
"track",
|
|
239
|
+
"wbr"
|
|
240
|
+
]);
|
|
241
|
+
function isInspectableLayerElement(el) {
|
|
242
|
+
const tagName = el.tagName.toLowerCase();
|
|
243
|
+
if (DOM_LAYER_IGNORED_TAGS.has(tagName)) return false;
|
|
244
|
+
const computed = el.ownerDocument.defaultView?.getComputedStyle(el);
|
|
245
|
+
if (computed?.display === "none" || computed?.visibility === "hidden") return false;
|
|
246
|
+
return true;
|
|
247
|
+
}
|
|
248
|
+
function resolveLayerSelector(el) {
|
|
249
|
+
if (el.hasAttribute("data-composition-id")) return void 0;
|
|
250
|
+
return buildStableSelector(el);
|
|
251
|
+
}
|
|
252
|
+
function resolveDomLayerIdentity(el, activeCompositionPath) {
|
|
253
|
+
const selector = resolveLayerSelector(el);
|
|
254
|
+
if (!selector) return null;
|
|
255
|
+
const { sourceFile } = getSourceFileForElement(el, activeCompositionPath);
|
|
256
|
+
return {
|
|
257
|
+
id: el.id || void 0,
|
|
258
|
+
hfId: el.getAttribute("data-hf-id") || void 0,
|
|
259
|
+
selector,
|
|
260
|
+
selectorIndex: getSelectorIndex(
|
|
261
|
+
el.ownerDocument,
|
|
262
|
+
el,
|
|
263
|
+
selector,
|
|
264
|
+
sourceFile,
|
|
265
|
+
activeCompositionPath
|
|
266
|
+
),
|
|
267
|
+
sourceFile
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
function getDomLayerPatchTarget(el, activeCompositionPath) {
|
|
271
|
+
return isInspectableLayerElement(el) ? resolveDomLayerIdentity(el, activeCompositionPath) : null;
|
|
272
|
+
}
|
|
273
|
+
function isDomLayerElement(el) {
|
|
274
|
+
return isInspectableLayerElement(el) && resolveLayerSelector(el) !== void 0;
|
|
275
|
+
}
|
|
276
|
+
function getPreferredClipAncestor(startEl) {
|
|
277
|
+
let current = startEl;
|
|
278
|
+
while (current) {
|
|
279
|
+
if (current.classList.contains("clip")) {
|
|
280
|
+
const isCompositionHost = current.hasAttribute("data-composition-src") || current.hasAttribute("data-composition-file");
|
|
281
|
+
if (!isCompositionHost || current === startEl) return current;
|
|
282
|
+
}
|
|
283
|
+
current = current.parentElement;
|
|
284
|
+
}
|
|
285
|
+
return null;
|
|
286
|
+
}
|
|
287
|
+
function getSelectionCandidate(startEl, options) {
|
|
288
|
+
if (options.preferClipAncestor) {
|
|
289
|
+
const clipAncestor = getPreferredClipAncestor(startEl);
|
|
290
|
+
if (clipAncestor) {
|
|
291
|
+
return clipAncestor;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return startEl;
|
|
295
|
+
}
|
|
296
|
+
function resolveAllVisualDomEditTargets(elementsFromPoint, options) {
|
|
297
|
+
const raw = [];
|
|
298
|
+
for (const entry of elementsFromPoint) {
|
|
299
|
+
if (!isHtmlElement(entry)) continue;
|
|
300
|
+
if (hasRenderedBox(entry) && getDomLayerPatchTarget(entry, options.activeCompositionPath)) {
|
|
301
|
+
raw.push(entry);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
if (raw.length === 0) return [];
|
|
305
|
+
const layers = [];
|
|
306
|
+
let best = raw[0];
|
|
307
|
+
for (let i = 1; i < raw.length; i++) {
|
|
308
|
+
const el = raw[i];
|
|
309
|
+
if (best.contains(el)) {
|
|
310
|
+
best = el;
|
|
311
|
+
} else {
|
|
312
|
+
layers.push(best);
|
|
313
|
+
best = el;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
layers.push(best);
|
|
317
|
+
return layers;
|
|
318
|
+
}
|
|
319
|
+
function findElementForSelection(doc, selection, activeCompositionPath = null) {
|
|
320
|
+
const sourceMatches = (candidate) => isHtmlElement(candidate) && (!selection.sourceFile || getSourceFileForElement(candidate, activeCompositionPath).sourceFile === selection.sourceFile);
|
|
321
|
+
const findAll = (selector) => querySelectorAllSafely(doc, selector).filter(sourceMatches);
|
|
322
|
+
if (selection.hfId) {
|
|
323
|
+
const byHfId = findAll(`[data-hf-id="${escapeCssString(selection.hfId)}"]`)[0];
|
|
324
|
+
if (byHfId) return byHfId;
|
|
325
|
+
}
|
|
326
|
+
if (selection.id) {
|
|
327
|
+
const byId = findAll(`[id="${escapeCssString(selection.id)}"]`)[0];
|
|
328
|
+
if (byId) return byId;
|
|
329
|
+
}
|
|
330
|
+
if (!selection.selector) return null;
|
|
331
|
+
return findAll(selection.selector)[selection.selectorIndex ?? 0] ?? null;
|
|
332
|
+
}
|
|
333
|
+
function findPreviewNode(doc, el) {
|
|
334
|
+
if (!doc) return null;
|
|
335
|
+
if (el.element?.isConnected && el.element.ownerDocument === doc) return el.element;
|
|
336
|
+
return findElementForSelection(doc, el) ?? findElementForSelection(doc, { ...el, sourceFile: void 0 });
|
|
337
|
+
}
|
|
338
|
+
function findElementForTimelineElement(doc, element, options) {
|
|
339
|
+
const elementId = typeof element.id === "string" ? element.id : "";
|
|
340
|
+
const compositionSource = normalizeTimelineCompositionSource(element.compositionSrc) ?? options.compIdToSrc?.get(elementId);
|
|
341
|
+
const sourceFile = compositionSource ?? normalizeTimelineCompositionSource(element.sourceFile) ?? options.activeCompositionPath ?? "index.html";
|
|
342
|
+
const escapedElementId = escapeCssString(elementId);
|
|
343
|
+
const escapedCompositionSource = compositionSource ? escapeCssString(compositionSource) : null;
|
|
344
|
+
const selector = element.selector ?? (compositionSource ? `[data-composition-src="${escapedCompositionSource}"],[data-composition-file="${escapedCompositionSource}"],[data-composition-id="${escapedElementId}"]` : escapedElementId ? `[data-composition-id="${escapedElementId}"]` : void 0);
|
|
345
|
+
if (selector || element.domId) {
|
|
346
|
+
const targetElement = findElementForSelection(
|
|
347
|
+
doc,
|
|
348
|
+
{
|
|
349
|
+
id: element.domId ?? void 0,
|
|
350
|
+
selector,
|
|
351
|
+
selectorIndex: element.selectorIndex,
|
|
352
|
+
sourceFile
|
|
353
|
+
},
|
|
354
|
+
options.activeCompositionPath
|
|
355
|
+
);
|
|
356
|
+
if (targetElement) return targetElement;
|
|
357
|
+
}
|
|
358
|
+
const hasExplicitDomTarget = Boolean(element.domId || element.selector || compositionSource);
|
|
359
|
+
if (options.isMasterView || hasExplicitDomTarget || !options.activeCompositionPath) {
|
|
360
|
+
return null;
|
|
361
|
+
}
|
|
362
|
+
const root = doc.querySelector("[data-composition-id]");
|
|
363
|
+
if (!isHtmlElement(root)) return null;
|
|
364
|
+
return getSourceFileForElement(root, options.activeCompositionPath).sourceFile === sourceFile ? root : null;
|
|
365
|
+
}
|
|
366
|
+
function getDirectLayerChildren(el) {
|
|
367
|
+
return Array.from(el.children).filter(
|
|
368
|
+
(child) => isHtmlElement(child) && isDomLayerElement(child)
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
// src/components/editor/domEditingRootLayer.ts
|
|
373
|
+
var COMPOSITION_ROOT_LAYER_EPSILON_PX = 1;
|
|
374
|
+
function readPositiveDimension(value) {
|
|
375
|
+
if (!value) return null;
|
|
376
|
+
const parsed = Number.parseFloat(value);
|
|
377
|
+
return Number.isFinite(parsed) && parsed > 0 ? parsed : null;
|
|
378
|
+
}
|
|
379
|
+
function approximatelyEqual(a, b) {
|
|
380
|
+
return Math.abs(a - b) <= COMPOSITION_ROOT_LAYER_EPSILON_PX;
|
|
381
|
+
}
|
|
382
|
+
function getCompositionRootBounds(doc) {
|
|
383
|
+
const root = doc.querySelector("[data-composition-id]") ?? doc.documentElement ?? null;
|
|
384
|
+
const rootWidth = readPositiveDimension(root?.getAttribute("data-width") ?? null);
|
|
385
|
+
const rootHeight = readPositiveDimension(root?.getAttribute("data-height") ?? null);
|
|
386
|
+
if (!root || !rootWidth || !rootHeight) return null;
|
|
387
|
+
return { rect: root.getBoundingClientRect(), width: rootWidth, height: rootHeight };
|
|
388
|
+
}
|
|
389
|
+
function getRenderedLayerSize(element, computedStyles) {
|
|
390
|
+
const rect = element.getBoundingClientRect();
|
|
391
|
+
const width = rect.width || parsePx(computedStyles.width);
|
|
392
|
+
const height = rect.height || parsePx(computedStyles.height);
|
|
393
|
+
return width && height ? { width, height } : null;
|
|
394
|
+
}
|
|
395
|
+
function matchesCompositionRootBounds(elementRect, elementSize, rootBounds) {
|
|
396
|
+
return approximatelyEqual(elementRect.left, rootBounds.rect.left) && approximatelyEqual(elementRect.top, rootBounds.rect.top) && approximatelyEqual(elementSize.width, rootBounds.width) && approximatelyEqual(elementSize.height, rootBounds.height);
|
|
397
|
+
}
|
|
398
|
+
function isExplicitFullBleedLayer(computedStyles) {
|
|
399
|
+
return computedStyles.position === "absolute" || computedStyles.position === "fixed";
|
|
400
|
+
}
|
|
401
|
+
function isCompositionRootLayer(element, doc, computedStyles) {
|
|
402
|
+
if (element.parentElement !== doc.body) return false;
|
|
403
|
+
if (element.hasAttribute("data-hf-allow-root-edit")) return false;
|
|
404
|
+
if (isExplicitFullBleedLayer(computedStyles)) return false;
|
|
405
|
+
const rootBounds = getCompositionRootBounds(doc);
|
|
406
|
+
const elementSize = getRenderedLayerSize(element, computedStyles);
|
|
407
|
+
return Boolean(
|
|
408
|
+
rootBounds && elementSize && matchesCompositionRootBounds(element.getBoundingClientRect(), elementSize, rootBounds)
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
// src/components/editor/domEditLayerWalkCache.ts
|
|
413
|
+
var SELECTOR_IDENTITY_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
414
|
+
"id",
|
|
415
|
+
"class",
|
|
416
|
+
"data-hf-group",
|
|
417
|
+
"data-composition-id",
|
|
418
|
+
"data-composition-file",
|
|
419
|
+
"data-composition-src",
|
|
420
|
+
"data-hf-original-composition-id"
|
|
421
|
+
]);
|
|
422
|
+
var DOM_EDIT_LAYER_OBSERVER_INIT = {
|
|
423
|
+
attributes: true,
|
|
424
|
+
characterData: true,
|
|
425
|
+
childList: true,
|
|
426
|
+
subtree: true
|
|
427
|
+
};
|
|
428
|
+
var lastInlineVisibility = /* @__PURE__ */ new WeakMap();
|
|
429
|
+
function inlineVisibilityChanged(el) {
|
|
430
|
+
const next = el.style.visibility;
|
|
431
|
+
if (lastInlineVisibility.get(el) === next) return false;
|
|
432
|
+
lastInlineVisibility.set(el, next);
|
|
433
|
+
return true;
|
|
434
|
+
}
|
|
435
|
+
function createDomEditLayerWalkCache() {
|
|
436
|
+
let presence = /* @__PURE__ */ new WeakMap();
|
|
437
|
+
let identities = /* @__PURE__ */ new WeakMap();
|
|
438
|
+
let scope = null;
|
|
439
|
+
const invalidateAll = () => {
|
|
440
|
+
presence = /* @__PURE__ */ new WeakMap();
|
|
441
|
+
identities = /* @__PURE__ */ new WeakMap();
|
|
442
|
+
};
|
|
443
|
+
const drop = (el) => {
|
|
444
|
+
if (el) presence.delete(el);
|
|
445
|
+
};
|
|
446
|
+
const dropSubtree = (el) => {
|
|
447
|
+
for (const descendant of el.querySelectorAll("*")) {
|
|
448
|
+
if (isHtmlElement(descendant)) presence.delete(descendant);
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
const ingestOne = (record) => {
|
|
452
|
+
if (record.type === "childList") return false;
|
|
453
|
+
if (record.type === "characterData") {
|
|
454
|
+
for (let ancestor = record.target.parentElement; ancestor; ancestor = ancestor.parentElement) {
|
|
455
|
+
identities.delete(ancestor);
|
|
456
|
+
}
|
|
457
|
+
return true;
|
|
458
|
+
}
|
|
459
|
+
const target = record.target;
|
|
460
|
+
if (!isHtmlElement(target)) return true;
|
|
461
|
+
if (record.attributeName && SELECTOR_IDENTITY_ATTRIBUTES.has(record.attributeName))
|
|
462
|
+
return false;
|
|
463
|
+
drop(target);
|
|
464
|
+
drop(target.parentElement);
|
|
465
|
+
if (record.attributeName === "style" && inlineVisibilityChanged(target)) dropSubtree(target);
|
|
466
|
+
return true;
|
|
467
|
+
};
|
|
468
|
+
return {
|
|
469
|
+
beginWalk(activeCompositionPath) {
|
|
470
|
+
const nextScope = `${activeCompositionPath ?? ""}|${getCompositionSourceMapRevision()}`;
|
|
471
|
+
if (nextScope === scope) return;
|
|
472
|
+
scope = nextScope;
|
|
473
|
+
invalidateAll();
|
|
474
|
+
},
|
|
475
|
+
readInspectable(el, compute) {
|
|
476
|
+
const memo = presence.get(el) ?? {};
|
|
477
|
+
if (memo.inspectable === void 0) {
|
|
478
|
+
memo.inspectable = compute();
|
|
479
|
+
presence.set(el, memo);
|
|
480
|
+
}
|
|
481
|
+
return memo.inspectable;
|
|
482
|
+
},
|
|
483
|
+
readChildCount(el, compute) {
|
|
484
|
+
const memo = presence.get(el) ?? {};
|
|
485
|
+
if (memo.childCount === void 0) {
|
|
486
|
+
memo.childCount = compute();
|
|
487
|
+
presence.set(el, memo);
|
|
488
|
+
}
|
|
489
|
+
return memo.childCount;
|
|
490
|
+
},
|
|
491
|
+
readIdentity(el, compute) {
|
|
492
|
+
const memo = identities.get(el) ?? {};
|
|
493
|
+
if (memo.identity === void 0) {
|
|
494
|
+
memo.identity = compute();
|
|
495
|
+
identities.set(el, memo);
|
|
496
|
+
}
|
|
497
|
+
return memo.identity;
|
|
498
|
+
},
|
|
499
|
+
readLabel(el, compute) {
|
|
500
|
+
const memo = identities.get(el) ?? {};
|
|
501
|
+
if (memo.label === void 0) {
|
|
502
|
+
memo.label = compute();
|
|
503
|
+
identities.set(el, memo);
|
|
504
|
+
}
|
|
505
|
+
return memo.label;
|
|
506
|
+
},
|
|
507
|
+
ingest(records) {
|
|
508
|
+
for (const record of records) {
|
|
509
|
+
if (!ingestOne(record)) {
|
|
510
|
+
invalidateAll();
|
|
511
|
+
return;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
invalidateAll
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
function readDomEditLayerWalkEntry(el, activeCompositionPath, cache) {
|
|
519
|
+
const inspectable = cache ? cache.readInspectable(el, () => isInspectableLayerElement(el)) : isInspectableLayerElement(el);
|
|
520
|
+
if (!inspectable) return null;
|
|
521
|
+
const identity = () => resolveDomLayerIdentity(el, activeCompositionPath);
|
|
522
|
+
const target = cache ? cache.readIdentity(el, identity) : identity();
|
|
523
|
+
if (!target) return null;
|
|
524
|
+
const label = () => buildElementLabel(el);
|
|
525
|
+
const childCount = () => getDirectLayerChildren(el).length;
|
|
526
|
+
return {
|
|
527
|
+
target,
|
|
528
|
+
label: cache ? cache.readLabel(el, label) : label(),
|
|
529
|
+
childCount: cache ? cache.readChildCount(el, childCount) : childCount()
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
function drainPendingLayerMutations(observer, cache) {
|
|
533
|
+
if (!observer) return;
|
|
534
|
+
cache.ingest(observer.takeRecords());
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
// src/components/editor/domEditingLayers.ts
|
|
538
|
+
function sameTagChildIndex(el) {
|
|
539
|
+
let index = 0;
|
|
540
|
+
let sibling = el.previousElementSibling;
|
|
541
|
+
while (sibling) {
|
|
542
|
+
if (sibling.tagName === el.tagName) index += 1;
|
|
543
|
+
sibling = sibling.previousElementSibling;
|
|
544
|
+
}
|
|
545
|
+
return index;
|
|
546
|
+
}
|
|
547
|
+
function getTextFieldLabel(_tagName, index, total, source) {
|
|
548
|
+
if (source === "self" || total === 1) return "Content";
|
|
549
|
+
return `Text ${index + 1}`;
|
|
550
|
+
}
|
|
551
|
+
function buildTextField(el, index, total, source, sourceChildIndex) {
|
|
552
|
+
const tagName = el.tagName.toLowerCase();
|
|
553
|
+
const key = el.getAttribute("data-hf-text-key") ?? `${source}:${index}:${tagName}`;
|
|
554
|
+
return {
|
|
555
|
+
key,
|
|
556
|
+
label: getTextFieldLabel(tagName, index, total, source),
|
|
557
|
+
value: el.textContent ?? "",
|
|
558
|
+
tagName,
|
|
559
|
+
attributes: Array.from(el.attributes).filter((attribute) => attribute.name !== "style").map((attribute) => ({
|
|
560
|
+
name: attribute.name,
|
|
561
|
+
value: attribute.value
|
|
562
|
+
})),
|
|
563
|
+
inlineStyles: getInlineStyles(el),
|
|
564
|
+
computedStyles: getCuratedComputedStyles(el),
|
|
565
|
+
source,
|
|
566
|
+
...sourceChildIndex == null ? {} : { sourceChildIndex }
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
function collectDomEditTextFields(el) {
|
|
570
|
+
const childElements = Array.from(el.children).filter(isHtmlElement).filter(isEditableTextLeaf);
|
|
571
|
+
if (childElements.length > 0) {
|
|
572
|
+
const hasMixedContent = Array.from(el.childNodes).some(
|
|
573
|
+
(node) => node.nodeType === 3 && node.textContent?.trim()
|
|
574
|
+
);
|
|
575
|
+
if (hasMixedContent) {
|
|
576
|
+
const fields = [];
|
|
577
|
+
let childIdx = 0;
|
|
578
|
+
for (const node of el.childNodes) {
|
|
579
|
+
if (node.nodeType === 3) {
|
|
580
|
+
const text = node.textContent ?? "";
|
|
581
|
+
if (!text.trim()) continue;
|
|
582
|
+
fields.push({
|
|
583
|
+
key: `text-node:${childIdx}`,
|
|
584
|
+
label: `Text ${childIdx + 1}`,
|
|
585
|
+
value: text,
|
|
586
|
+
tagName: "#text",
|
|
587
|
+
attributes: [],
|
|
588
|
+
inlineStyles: {},
|
|
589
|
+
computedStyles: {},
|
|
590
|
+
source: "text-node"
|
|
591
|
+
});
|
|
592
|
+
childIdx++;
|
|
593
|
+
} else if (isHtmlElement(node) && isEditableTextLeaf(node)) {
|
|
594
|
+
fields.push(
|
|
595
|
+
buildTextField(node, childIdx, childElements.length, "child", sameTagChildIndex(node))
|
|
596
|
+
);
|
|
597
|
+
childIdx++;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
return fields;
|
|
601
|
+
}
|
|
602
|
+
return childElements.map(
|
|
603
|
+
(child, index) => buildTextField(child, index, childElements.length, "child", sameTagChildIndex(child))
|
|
604
|
+
);
|
|
605
|
+
}
|
|
606
|
+
if (isEditableTextLeaf(el)) {
|
|
607
|
+
return [buildTextField(el, 0, 1, "self")];
|
|
608
|
+
}
|
|
609
|
+
return [];
|
|
610
|
+
}
|
|
611
|
+
function escapeHtmlText(value) {
|
|
612
|
+
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
613
|
+
}
|
|
614
|
+
function serializeTextFieldStyle(field) {
|
|
615
|
+
const entries = Object.entries(field.inlineStyles).filter(([, value]) => Boolean(value));
|
|
616
|
+
if (entries.length === 0) return "";
|
|
617
|
+
return entries.map(([key, value]) => `${key}: ${value}`).join("; ");
|
|
618
|
+
}
|
|
619
|
+
function serializeDomEditTextFields(fields) {
|
|
620
|
+
return fields.filter((field) => field.source === "child" || field.source === "text-node").map((field) => {
|
|
621
|
+
if (field.source === "text-node") {
|
|
622
|
+
return escapeHtmlText(field.value);
|
|
623
|
+
}
|
|
624
|
+
const attrs = [
|
|
625
|
+
...field.attributes.filter((attribute) => attribute.name !== "data-hf-text-key"),
|
|
626
|
+
{ name: "data-hf-text-key", value: field.key }
|
|
627
|
+
].map((attribute) => ` ${attribute.name}="${attribute.value.replace(/"/g, """)}"`).join("");
|
|
628
|
+
const style = serializeTextFieldStyle(field);
|
|
629
|
+
const styleAttr = style ? ` style="${style.replace(/"/g, """)}"` : "";
|
|
630
|
+
return `<${field.tagName}${attrs}${styleAttr}>${escapeHtmlText(field.value)}</${field.tagName}>`;
|
|
631
|
+
}).join("");
|
|
632
|
+
}
|
|
633
|
+
function buildDefaultDomEditTextField(base) {
|
|
634
|
+
return {
|
|
635
|
+
key: `child:new:${Date.now()}`,
|
|
636
|
+
label: "Text",
|
|
637
|
+
value: "New text",
|
|
638
|
+
tagName: "span",
|
|
639
|
+
attributes: [],
|
|
640
|
+
inlineStyles: {
|
|
641
|
+
"font-family": base?.computedStyles?.["font-family"] ?? "inherit",
|
|
642
|
+
"font-size": base?.computedStyles?.["font-size"] ?? "16px",
|
|
643
|
+
"font-weight": base?.computedStyles?.["font-weight"] ?? "400",
|
|
644
|
+
color: base?.computedStyles?.color ?? "inherit"
|
|
645
|
+
},
|
|
646
|
+
computedStyles: {},
|
|
647
|
+
source: "child"
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
function buildTextFieldChildLocator(fields, fieldKey) {
|
|
651
|
+
const field = fields.find((candidate) => candidate.key === fieldKey);
|
|
652
|
+
if (!field || field.source !== "child") return null;
|
|
653
|
+
if (field.sourceChildIndex == null) return null;
|
|
654
|
+
return {
|
|
655
|
+
childSelector: `:scope > ${field.tagName}`,
|
|
656
|
+
childIndex: field.sourceChildIndex
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
function capabilityFacts(geometry) {
|
|
660
|
+
return {
|
|
661
|
+
...geometry,
|
|
662
|
+
hasEditableText: false,
|
|
663
|
+
hasTimingStart: false,
|
|
664
|
+
animationCount: 0
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
function domEditSelectionToFacts(selection, animationCount = selection.gsapAnimations?.length ?? 0) {
|
|
668
|
+
return {
|
|
669
|
+
hasStableTarget: Boolean(selection.selector || selection.hfId),
|
|
670
|
+
tag: selection.tagName,
|
|
671
|
+
inlineStyles: selection.inlineStyles,
|
|
672
|
+
computedStyles: selection.computedStyles,
|
|
673
|
+
isCompositionHost: selection.isCompositionHost,
|
|
674
|
+
isCompositionRoot: false,
|
|
675
|
+
isInsideLockedComposition: selection.isInsideLockedComposition,
|
|
676
|
+
isMasterView: false,
|
|
677
|
+
existsInSource: true,
|
|
678
|
+
hasEditableText: selection.textFields.length > 0,
|
|
679
|
+
hasTimingStart: selection.dataAttributes.start != null,
|
|
680
|
+
animationCount,
|
|
681
|
+
hasAudio: isAudibleVideoNode(selection.element)
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
function resolveDomEditCapabilities(args) {
|
|
685
|
+
return resolveEditingAffordances(
|
|
686
|
+
capabilityFacts({
|
|
687
|
+
hasStableTarget: Boolean(args.selector || args.hfId),
|
|
688
|
+
tag: (args.tagName ?? "div").toLowerCase(),
|
|
689
|
+
inlineStyles: args.inlineStyles,
|
|
690
|
+
computedStyles: args.computedStyles,
|
|
691
|
+
isCompositionHost: args.isCompositionHost,
|
|
692
|
+
isCompositionRoot: args.isCompositionRoot ?? false,
|
|
693
|
+
isInsideLockedComposition: args.isInsideLockedComposition ?? false,
|
|
694
|
+
isMasterView: args.isMasterView,
|
|
695
|
+
existsInSource: args.existsInSource ?? true
|
|
696
|
+
})
|
|
697
|
+
).capabilities;
|
|
698
|
+
}
|
|
699
|
+
async function resolveDomEditSelection(startEl, options) {
|
|
700
|
+
if (!startEl) return null;
|
|
701
|
+
const doc = startEl.ownerDocument;
|
|
702
|
+
let capture = options.exactTarget ? { kind: "unit", element: startEl } : resolveGroupCapture(startEl, options.activeGroupElement ?? null);
|
|
703
|
+
if (capture.kind === "out-of-scope") {
|
|
704
|
+
capture = resolveGroupCapture(startEl, null);
|
|
705
|
+
}
|
|
706
|
+
let current = capture.kind === "unit" ? capture.element : getSelectionCandidate(startEl, options);
|
|
707
|
+
while (current && current !== doc.body && current !== doc.documentElement) {
|
|
708
|
+
const selector = buildStableSelector(current);
|
|
709
|
+
const hfId = readHfId(current);
|
|
710
|
+
if (!selector && !hfId) {
|
|
711
|
+
current = current.parentElement;
|
|
712
|
+
continue;
|
|
713
|
+
}
|
|
714
|
+
const { sourceFile, compositionPath } = getSourceFileForElement(
|
|
715
|
+
current,
|
|
716
|
+
options.activeCompositionPath
|
|
717
|
+
);
|
|
718
|
+
const selectorIndex = selector ? getSelectorIndex(doc, current, selector, sourceFile, options.activeCompositionPath) : void 0;
|
|
719
|
+
const compositionSrc = current.getAttribute("data-composition-src") ?? current.getAttribute("data-composition-file") ?? void 0;
|
|
720
|
+
const inlineStyles = getInlineStyles(current);
|
|
721
|
+
const computedStyles = getCuratedComputedStyles(current);
|
|
722
|
+
const isCompositionRoot = current.hasAttribute("data-composition-id") && !compositionSrc || isCompositionRootLayer(current, doc, computedStyles);
|
|
723
|
+
const textFields = collectDomEditTextFields(current);
|
|
724
|
+
const isInsideLocked = Boolean(findClosestByAttribute(current, ["data-timeline-locked"]));
|
|
725
|
+
const probeTarget = {};
|
|
726
|
+
if (current.id) probeTarget.id = current.id;
|
|
727
|
+
if (hfId) probeTarget.hfId = hfId;
|
|
728
|
+
if (selector) probeTarget.selector = selector;
|
|
729
|
+
if (selectorIndex != null) probeTarget.selectorIndex = selectorIndex;
|
|
730
|
+
let existsInSource = knownSourceAnswer(options.previous, current, sourceFile, probeTarget);
|
|
731
|
+
const probe = existsInSource === void 0 && !options.skipSourceProbe;
|
|
732
|
+
if (probe && options.projectId && (current.id || selector || hfId)) {
|
|
733
|
+
existsInSource = await probeSourceElement(options.projectId, sourceFile, probeTarget);
|
|
734
|
+
}
|
|
735
|
+
const capabilities = resolveEditingAffordances(
|
|
736
|
+
capabilityFacts({
|
|
737
|
+
hasStableTarget: Boolean(selector || hfId),
|
|
738
|
+
tag: current.tagName.toLowerCase(),
|
|
739
|
+
inlineStyles,
|
|
740
|
+
computedStyles,
|
|
741
|
+
isCompositionHost: Boolean(compositionSrc),
|
|
742
|
+
isCompositionRoot,
|
|
743
|
+
isInsideLockedComposition: isInsideLocked,
|
|
744
|
+
isMasterView: options.isMasterView,
|
|
745
|
+
existsInSource: existsInSource ?? true
|
|
746
|
+
})
|
|
747
|
+
).capabilities;
|
|
748
|
+
const rect = current.getBoundingClientRect();
|
|
749
|
+
return {
|
|
750
|
+
element: current,
|
|
751
|
+
id: current.id || void 0,
|
|
752
|
+
hfId,
|
|
753
|
+
selector,
|
|
754
|
+
selectorIndex,
|
|
755
|
+
sourceFile,
|
|
756
|
+
compositionPath,
|
|
757
|
+
compositionSrc,
|
|
758
|
+
isCompositionHost: Boolean(compositionSrc),
|
|
759
|
+
isInsideLockedComposition: isInsideLocked,
|
|
760
|
+
label: buildElementLabel(current),
|
|
761
|
+
tagName: current.tagName.toLowerCase(),
|
|
762
|
+
boundingBox: {
|
|
763
|
+
x: rect.left,
|
|
764
|
+
y: rect.top,
|
|
765
|
+
width: rect.width,
|
|
766
|
+
height: rect.height
|
|
767
|
+
},
|
|
768
|
+
textContent: current.textContent?.trim() || null,
|
|
769
|
+
dataAttributes: getDataAttributes(current),
|
|
770
|
+
inlineStyles,
|
|
771
|
+
computedStyles,
|
|
772
|
+
textFields,
|
|
773
|
+
capabilities,
|
|
774
|
+
existsInSource
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
return null;
|
|
778
|
+
}
|
|
779
|
+
async function refreshDomEditSelection(selection, activeCompositionPath) {
|
|
780
|
+
const doc = selection.element.ownerDocument;
|
|
781
|
+
const nextElement = findElementForSelection(doc, selection, activeCompositionPath);
|
|
782
|
+
return nextElement ? resolveDomEditSelection(nextElement, {
|
|
783
|
+
activeCompositionPath,
|
|
784
|
+
isMasterView: !activeCompositionPath || activeCompositionPath === "index.html"
|
|
785
|
+
}) : null;
|
|
786
|
+
}
|
|
787
|
+
function getDomEditLayerKey(target) {
|
|
788
|
+
const selectorIndex = target.selectorIndex ?? 0;
|
|
789
|
+
return `${target.sourceFile}:${target.id ?? target.selector ?? "layer"}:${selectorIndex}`;
|
|
790
|
+
}
|
|
791
|
+
function countDomEditChildLayers(root, options, maxCount = 99) {
|
|
792
|
+
if (!root) return 0;
|
|
793
|
+
let count = 0;
|
|
794
|
+
const visit = (el) => {
|
|
795
|
+
for (const child of Array.from(el.children)) {
|
|
796
|
+
if (!isHtmlElement(child)) continue;
|
|
797
|
+
if (isDomLayerElement(child)) {
|
|
798
|
+
count += 1;
|
|
799
|
+
if (count >= maxCount) return;
|
|
800
|
+
}
|
|
801
|
+
visit(child);
|
|
802
|
+
if (count >= maxCount) return;
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
visit(root);
|
|
806
|
+
return count;
|
|
807
|
+
}
|
|
808
|
+
function collectDomEditLayerItems(root, options, maxItems = Number.POSITIVE_INFINITY, cache) {
|
|
809
|
+
if (!root) return [];
|
|
810
|
+
cache?.beginWalk(options.activeCompositionPath);
|
|
811
|
+
const items = [];
|
|
812
|
+
const visit = (el, depth) => {
|
|
813
|
+
if (items.length >= maxItems) return;
|
|
814
|
+
const entry = readDomEditLayerWalkEntry(el, options.activeCompositionPath, cache);
|
|
815
|
+
if (entry) {
|
|
816
|
+
const { target } = entry;
|
|
817
|
+
items.push({
|
|
818
|
+
key: getDomEditLayerKey(target),
|
|
819
|
+
element: el,
|
|
820
|
+
label: entry.label,
|
|
821
|
+
tagName: el.tagName.toLowerCase(),
|
|
822
|
+
depth,
|
|
823
|
+
childCount: entry.childCount,
|
|
824
|
+
id: target.id ?? void 0,
|
|
825
|
+
hfId: target.hfId ?? void 0,
|
|
826
|
+
selector: target.selector ?? void 0,
|
|
827
|
+
selectorIndex: target.selectorIndex,
|
|
828
|
+
sourceFile: target.sourceFile
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
const nextDepth = entry ? depth + 1 : depth;
|
|
832
|
+
for (const child of Array.from(el.children)) {
|
|
833
|
+
if (!isHtmlElement(child)) continue;
|
|
834
|
+
visit(child, nextDepth);
|
|
835
|
+
if (items.length >= maxItems) return;
|
|
836
|
+
}
|
|
837
|
+
};
|
|
838
|
+
withSelectorIndexPass(root.ownerDocument, () => {
|
|
839
|
+
for (const el of groupScopedLayerRoots(root, options.activeGroupElement ?? null)) visit(el, 0);
|
|
840
|
+
});
|
|
841
|
+
return items;
|
|
842
|
+
}
|
|
843
|
+
function liveLayerElement(layer, doc, activeCompositionPath) {
|
|
844
|
+
if (layer.element.isConnected || !doc) return layer.element;
|
|
845
|
+
return findElementForSelection(doc, layer, activeCompositionPath) ?? layer.element;
|
|
846
|
+
}
|
|
847
|
+
function buildDomEditStylePatchOperation(property, value, childLocator) {
|
|
848
|
+
return {
|
|
849
|
+
type: "inline-style",
|
|
850
|
+
property,
|
|
851
|
+
value,
|
|
852
|
+
...childLocator
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
function buildDomEditTextPatchOperation(value, childLocator) {
|
|
856
|
+
return { type: "text-content", property: "text", value, ...childLocator };
|
|
857
|
+
}
|
|
858
|
+
function buildDomEditRichTextPatchOperation(value) {
|
|
859
|
+
return { type: "rich-text", property: "", value };
|
|
860
|
+
}
|
|
861
|
+
function hasSupportedDirectEdit(capabilities) {
|
|
862
|
+
return capabilities.canEditStyles || capabilities.canMove || capabilities.canResize || capabilities.canApplyManualOffset || capabilities.canApplyManualSize || capabilities.canApplyManualRotation;
|
|
863
|
+
}
|
|
864
|
+
function getDomEditNonEditableReason(element, selection) {
|
|
865
|
+
if (!selection) {
|
|
866
|
+
return "No stable source target";
|
|
867
|
+
}
|
|
868
|
+
if (selection.element !== element) {
|
|
869
|
+
return selection.isCompositionHost ? "Nested composition boundary" : `Selection resolves to ${selection.label}`;
|
|
870
|
+
}
|
|
871
|
+
if (!hasSupportedDirectEdit(selection.capabilities)) {
|
|
872
|
+
return selection.capabilities.reasonIfDisabled ?? "No supported direct edits";
|
|
873
|
+
}
|
|
874
|
+
return null;
|
|
875
|
+
}
|
|
876
|
+
function getDomEditTargetKey(selection) {
|
|
877
|
+
return [
|
|
878
|
+
selection.sourceFile || "index.html",
|
|
879
|
+
selection.hfId ?? "",
|
|
880
|
+
selection.id ?? "",
|
|
881
|
+
selection.selector ?? "",
|
|
882
|
+
selection.selectorIndex ?? ""
|
|
883
|
+
].join("|");
|
|
884
|
+
}
|
|
885
|
+
function isTextEditableSelection(selection) {
|
|
886
|
+
return resolveEditingSections(domEditSelectionToFacts(selection)).text;
|
|
887
|
+
}
|
|
888
|
+
function readHfId(element) {
|
|
889
|
+
return element.getAttribute("data-hf-id")?.trim() || void 0;
|
|
890
|
+
}
|
|
891
|
+
function buildDomEditPatchTarget(selection) {
|
|
892
|
+
return {
|
|
893
|
+
id: selection.id,
|
|
894
|
+
hfId: selection.hfId,
|
|
895
|
+
selector: selection.selector,
|
|
896
|
+
selectorIndex: selection.selectorIndex
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export {
|
|
901
|
+
isSdkFamilyEnabled,
|
|
902
|
+
STUDIO_SDK_CUTOVER_ENABLED,
|
|
903
|
+
STUDIO_SDK_CUTOVER_FAMILIES,
|
|
904
|
+
STUDIO_SDK_RESOLVER_SHADOW_ENABLED,
|
|
905
|
+
STUDIO_FLAT_INSPECTOR_ENABLED,
|
|
906
|
+
manualEditingAvailability_exports,
|
|
907
|
+
studioApiFetch,
|
|
908
|
+
isElementComputedVisible,
|
|
909
|
+
getDomLayerPatchTarget,
|
|
910
|
+
resolveAllVisualDomEditTargets,
|
|
911
|
+
findElementForSelection,
|
|
912
|
+
findPreviewNode,
|
|
913
|
+
findElementForTimelineElement,
|
|
914
|
+
DOM_EDIT_LAYER_OBSERVER_INIT,
|
|
915
|
+
createDomEditLayerWalkCache,
|
|
916
|
+
drainPendingLayerMutations,
|
|
917
|
+
collectDomEditTextFields,
|
|
918
|
+
serializeDomEditTextFields,
|
|
919
|
+
buildDefaultDomEditTextField,
|
|
920
|
+
buildTextFieldChildLocator,
|
|
921
|
+
domEditSelectionToFacts,
|
|
922
|
+
resolveDomEditCapabilities,
|
|
923
|
+
resolveDomEditSelection,
|
|
924
|
+
refreshDomEditSelection,
|
|
925
|
+
getDomEditLayerKey,
|
|
926
|
+
countDomEditChildLayers,
|
|
927
|
+
collectDomEditLayerItems,
|
|
928
|
+
liveLayerElement,
|
|
929
|
+
buildDomEditStylePatchOperation,
|
|
930
|
+
buildDomEditTextPatchOperation,
|
|
931
|
+
buildDomEditRichTextPatchOperation,
|
|
932
|
+
getDomEditNonEditableReason,
|
|
933
|
+
getDomEditTargetKey,
|
|
934
|
+
isTextEditableSelection,
|
|
935
|
+
readHfId,
|
|
936
|
+
buildDomEditPatchTarget
|
|
937
|
+
};
|
|
938
|
+
//# sourceMappingURL=chunk-7UQWVN52.js.map
|