hyperframes 0.8.139 → 0.8.140
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-VYJQ4S3P.js → add-7SPPQB64.js} +20 -22
- package/dist/{animatedGifPrep-IBMW6FZB.js → animatedGifPrep-HN3CJSFX.js} +15 -8
- package/dist/{asset-FLSUS73X.js → asset-AZMFUTRL.js} +3 -3
- package/dist/{assetCataloger-TGD7TRCR.js → assetCataloger-TQUWYLHE.js} +6 -3
- package/dist/{auth-EZXIN4M4.js → auth-XGY74R4A.js} +7 -7
- package/dist/{autoUpdate-ZPMY5T3X.js → autoUpdate-44NTJBQU.js} +2 -2
- package/dist/{backgroundChecks-JIDTAUFE.js → backgroundChecks-ET4DJEPG.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-FNZ6TJYY.js → batchRender-HTWWNF3P.js} +11 -8
- package/dist/beat-analyzer.global.js +5 -2
- package/dist/{beats-EAA4U3YN.js → beats-4GYTZUZG.js} +24 -17
- package/dist/{benchmark-KKZQVK2Y.js → benchmark-CJQHE3QN.js} +20 -23
- package/dist/{browser-ZIVVJLJT.js → browser-NXOVPGDG.js} +14 -28
- package/dist/{bundleWithLocalizedFonts-2XWC3PEM.js → bundleWithLocalizedFonts-6PJP54TC.js} +5 -5
- package/dist/{capture-MKJHABUL.js → capture-5EHGRJZM.js} +2 -2
- package/dist/{capture-EFYPXI42.js → capture-EHOMO4MP.js} +22 -15
- package/dist/{catalog-EWX4BBI2.js → catalog-PTX5Z52R.js} +28 -30
- package/dist/{catch-up-FJFH7T4W.js → catch-up-I45SPSCU.js} +11 -25
- package/dist/{check-YJNVDCBP.js → check-LJ7LG7OI.js} +72 -54
- package/dist/{checkBrowser-I6SPPEGD.js → checkBrowser-6EK5E4PG.js} +81 -36
- package/dist/chunk-24OWOBQH.js +3656 -0
- package/dist/{chunk-SIKMUO45.js → chunk-2GMKWYEH.js} +12 -12
- package/dist/{chunk-GIDHR5OL.js → chunk-5IKJONRY.js} +1 -1
- package/dist/{chunk-GWV2Y36Q.js → chunk-6U3MN4HW.js} +5 -106
- package/dist/chunk-A4KQZXZI.js +116 -0
- package/dist/{chunk-PFI3VD77.js → chunk-ABJNXQUA.js} +10 -10
- package/dist/{chunk-HOIHGPWO.js → chunk-ASW6NWON.js} +1 -1
- package/dist/chunk-B3I3XJ47.js +3711 -0
- package/dist/{chunk-3RT6D4P6.js → chunk-BJ5JWOES.js} +1 -1
- package/dist/{chunk-4VZBKOQJ.js → chunk-BQKEGPPL.js} +1 -1
- package/dist/{chunk-SHB5VDMH.js → chunk-BRITLL56.js} +1 -1
- package/dist/{chunk-7SI7GCX6.js → chunk-C2JUHIG5.js} +6 -6
- package/dist/{chunk-TCWL4BKK.js → chunk-DDQ4LOML.js} +1 -1
- package/dist/{chunk-CDJ7FPPJ.js → chunk-DQNOPYAG.js} +1 -1
- package/dist/{chunk-JH556Q42.js → chunk-EDYBFSPE.js} +2 -2
- package/dist/{chunk-W7SAWBQC.js → chunk-F3SPK6SO.js} +1 -1
- package/dist/chunk-FXMKHHPO.js +123 -0
- package/dist/chunk-G75ENCEZ.js +283 -0
- package/dist/{chunk-PLNWWGE7.js → chunk-GQJZORQP.js} +1 -1
- package/dist/{chunk-Y6W4DVPS.js → chunk-HKCNZITN.js} +1 -1
- package/dist/{chunk-U3GEXWI5.js → chunk-IFY57LUW.js} +1 -1
- package/dist/{chunk-UQXOHEQ7.js → chunk-IRBESGJ7.js} +4 -4
- package/dist/chunk-JFKL3WAE.js +161 -0
- package/dist/{chunk-25DHUDOK.js → chunk-JSGANFFH.js} +12 -3
- package/dist/{chunk-UGI77E35.js → chunk-KECV5G4V.js} +165 -59
- package/dist/{chunk-EZ2P7LAP.js → chunk-KFQNMY36.js} +8 -8
- package/dist/{chunk-FLRCVYNE.js → chunk-KJLY2SDJ.js} +2 -2
- package/dist/{chunk-XOZ3J3LB.js → chunk-KMKWRIMC.js} +1 -1
- package/dist/{chunk-O6K5DWXM.js → chunk-KOEWEFHK.js} +1 -1
- package/dist/{chunk-IBRZUVTH.js → chunk-L2H2L22P.js} +2 -2
- package/dist/{chunk-BC3OY2ED.js → chunk-LQG6GPVK.js} +1 -1
- package/dist/{chunk-Z67RZ4XO.js → chunk-MHK5DE2P.js} +263 -1960
- package/dist/{chunk-A4X2YWNQ.js → chunk-MTVDXB6S.js} +18 -289
- package/dist/{chunk-CDMB3PRC.js → chunk-MU6C2VP6.js} +7 -7
- package/dist/{chunk-UMWROSIP.js → chunk-MUINFURL.js} +2 -2
- package/dist/{chunk-JTAYFSLO.js → chunk-PB3P4MKP.js} +1 -1
- package/dist/{chunk-JIIIBTN2.js → chunk-PE2I3AFA.js} +1 -1
- package/dist/{chunk-OENM2JVZ.js → chunk-PFJFHNU3.js} +3 -3
- package/dist/{chunk-EH4VUY27.js → chunk-PPKFM5WE.js} +2 -2
- package/dist/{chunk-DW32KBHN.js → chunk-PUBKHEEA.js} +13 -13
- package/dist/{chunk-DUQJF7FK.js → chunk-QBK7WKHT.js} +8 -8
- package/dist/{chunk-U3HX7WE6.js → chunk-QG3PDRSO.js} +1 -1
- package/dist/{chunk-EJ7OWYF2.js → chunk-QP3BRKGF.js} +1 -163
- package/dist/chunk-QZ3AZTXI.js +1740 -0
- package/dist/{chunk-YOL4QRSL.js → chunk-SLEPCESN.js} +2 -2
- package/dist/chunk-T76PLPD6.js +57 -0
- package/dist/{chunk-QXOFUKBF.js → chunk-TPECLKPA.js} +168 -165
- package/dist/{chunk-R7LWDIKB.js → chunk-TYT2TLJR.js} +1 -1
- package/dist/{chunk-Q73ISOVQ.js → chunk-U7E736AJ.js} +1 -1
- package/dist/chunk-USDEMXXL.js +110 -0
- package/dist/{chunk-VTVS4IIP.js → chunk-VVJFZU6B.js} +2 -2
- package/dist/{chunk-JX7Y57YY.js → chunk-WKTHUC2R.js} +1 -1
- package/dist/{chunk-NTIOLSFE.js → chunk-WQBA3MH4.js} +3 -3
- package/dist/{chunk-STA43FMY.js → chunk-WY5OODN5.js} +71 -3855
- package/dist/{chunk-X3TMMIDP.js → chunk-X3X3VETN.js} +8 -8
- package/dist/{chunk-ZTZ7NCJT.js → chunk-XTFJOR3K.js} +1 -1
- package/dist/chunk-YA62XGXS.js +45 -0
- package/dist/{clean-P4KTCOUA.js → clean-Y3AQITOX.js} +29 -20
- package/dist/cli.js +55 -55
- package/dist/{cloud-PDY7S4HU.js → cloud-TDPOMBZF.js} +7 -7
- package/dist/{cloudrun-54MA2W5H.js → cloudrun-FPAVAVHP.js} +11 -8
- package/dist/commands/layout-audit.browser.js +37 -8
- package/dist/commands/motion-signature.browser.js +51 -2
- package/dist/{compare-LDWVSPC5.js → compare-LHL225ND.js} +40 -31
- package/dist/{compiler-CWSZ4W7J.js → compiler-RTU3KTLF.js} +7 -3
- package/dist/{component-FIEGC22U.js → component-L2YX7J56.js} +4 -4
- package/dist/{compositions-JR7PX356.js → compositions-V2UZKG7S.js} +23 -16
- package/dist/{delete-FXA2IHOS.js → delete-OXZEXUQY.js} +8 -8
- package/dist/{dist-4JZWRWS6.js → dist-N33CM63P.js} +21 -15
- package/dist/{dist-OJTEVNJR.js → dist-NZSQCYOF.js} +3 -1
- package/dist/{doctor-OTDHPM6K.js → doctor-MWTPSIVD.js} +20 -13
- package/dist/{events-UAFTI24U.js → events-4TZGQZWF.js} +6 -22
- package/dist/{events-6T7M2VCO.js → events-7VJJGC3D.js} +10 -23
- package/dist/{feedback-ZGZODHB6.js → feedback-HSGAPVN7.js} +67 -45
- package/dist/{figma-D26EJ7ZB.js → figma-AMC6FAK3.js} +6 -6
- package/dist/fontLocalizeCli.js +17 -10
- package/dist/{get-IAREU7IK.js → get-Y7DFEFYM.js} +8 -8
- package/dist/{gpuPolicy-NS7WZRDJ.js → gpuPolicy-A45VSUKR.js} +15 -8
- package/dist/{grade-compare-ZXHFHCD2.js → grade-compare-ERSA3OUI.js} +40 -31
- package/dist/{help-RVNYHW3N.js → help-TW2AADLZ.js} +4 -4
- package/dist/{history-THP4VNMF.js → history-DKGDSVWF.js} +12 -30
- package/dist/hyperframe-runtime.js +59 -59
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +59 -59
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-EOFRHN5A.js → info-I3NRRNX4.js} +17 -20
- package/dist/{init-YLIJE4CG.js → init-5Y3ZWZNF.js} +48 -41
- package/dist/{inspect-3D56ONJD.js → inspect-BJQKBB3X.js} +39 -30
- package/dist/{installer-GRR2GDZK.js → installer-27K4JS2I.js} +8 -5
- package/dist/{keyframes-NXNCTQPK.js → keyframes-6V2NZO22.js} +14 -25
- package/dist/{lambda-VGRZD7TR.js → lambda-AIMF3K4A.js} +16 -13
- package/dist/{layout-Z5DOS6DU.js → layout-YAPEBTU4.js} +39 -30
- package/dist/{lint-YD6NJGR2.js → lint-3LWWUIV7.js} +17 -23
- package/dist/{lintProject-ANMPLBIT.js → lintProject-LM3XZRPZ.js} +3 -1
- package/dist/{list-XGDKILYN.js → list-NTSGEZJ6.js} +8 -8
- package/dist/{login-GD5SA4RD.js → login-ZTDFGCCW.js} +9 -9
- package/dist/{logout-Q654A3SI.js → logout-GJXZQKOA.js} +5 -5
- package/dist/{media-treatment-TY4X4GQQ.js → media-treatment-ARHX446F.js} +21 -20
- package/dist/{models-MXRDH4WJ.js → models-VHNQVTHG.js} +19 -12
- package/dist/{motionShot-6LKR3C2E.js → motionShot-35HCSNCI.js} +22 -15
- package/dist/{normalize-O76AC4HE.js → normalize-IGLHCWTF.js} +0 -4
- package/dist/{normalize-audio-5ADDZKPJ.js → normalize-audio-AUC73JH3.js} +13 -26
- package/dist/{open-JXAMO325.js → open-C5LVNU3U.js} +11 -25
- package/dist/{pipeline-Q5MOPIIX.js → pipeline-4GDTK54T.js} +15 -8
- package/dist/{play-3SPH5GWZ.js → play-U7UANF7Z.js} +38 -32
- package/dist/{preflight-2PWAPKWC.js → preflight-Y5DN5D37.js} +3 -18
- package/dist/{present-ZTJQDKXZ.js → present-X6V6TX3E.js} +32 -26
- package/dist/{preview-4A3XZR6J.js → preview-K43RTRU2.js} +33 -26
- package/dist/{producer-5ZKKKQPB.js → producer-PVMFMW23.js} +1 -1
- package/dist/{projectConfig-WA4CS4SN.js → projectConfig-PI6MEN2T.js} +10 -7
- package/dist/{publication-CLG2FRRI.js → publication-67C7KVTL.js} +6 -3
- package/dist/{publish-YTT2WMXO.js → publish-RBV7EAMH.js} +27 -20
- package/dist/{refresh-K24ETHMA.js → refresh-MFITBIKV.js} +5 -5
- package/dist/{remove-background-W35INR3B.js → remove-background-Z2ECZX2Q.js} +22 -15
- package/dist/{render-7A4P5WMU.js → render-2GQMQBU3.js} +10 -7
- package/dist/{render-KICXUPNR.js → render-EFU4BZRZ.js} +23 -26
- package/dist/{render-WUBFQMAH.js → render-YBS3XGRJ.js} +52 -32
- package/dist/{render-batch-N7EFGE6S.js → render-batch-QC64OTB5.js} +11 -8
- package/dist/{renderCancellation-LYQPPFAO.js → renderCancellation-NTVU7IMB.js} +15 -8
- package/dist/renderSetupWorker.js +4 -2
- package/dist/{resolver-YTT2NENF.js → resolver-GBWYG3EI.js} +8 -5
- package/dist/{sherpa-353MW4UV.js → sherpa-ZW6PWJS4.js} +16 -9
- package/dist/skills/hyperframes/references/capability-menu.md +1 -1
- package/dist/skills/hyperframes-cli/SKILL.md +5 -0
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
- package/dist/skills/hyperframes-cli/references/preview-render.md +1 -1
- package/dist/skills/media-use/SKILL.md +6 -4
- package/dist/skills/media-use/audio/scripts/lib/host-audio.mjs +28 -0
- package/dist/skills/media-use/audio/scripts/lib/host-audio.test.mjs +106 -0
- package/dist/skills/media-use/references/setup-providers.md +3 -2
- package/dist/skills/media-use/scripts/lib/heygen-cli.mjs +21 -1
- package/dist/skills/media-use/scripts/lib/heygen-cli.test.mjs +14 -0
- package/dist/skills/media-use/scripts/resolve.mjs +11 -6
- package/dist/{skills-2XJIOEBT.js → skills-VKZAX5AS.js} +15 -30
- package/dist/{skillsUpdateCheck-LMCCWGNO.js → skillsUpdateCheck-PAY2OPDE.js} +3 -3
- package/dist/{snapshot-WBRSTLJ2.js → snapshot-SD5R3NWX.js} +41 -32
- package/dist/{src-YWFJILQF.js → src-7SSERHNP.js} +19 -11
- package/dist/{src-ZS3BLTZ5.js → src-RXTXL3VL.js} +16 -9
- package/dist/{staticProjectServer-4VKVHPNG.js → staticProjectServer-XELJXX4J.js} +24 -16
- package/dist/{status-73MBN37B.js → status-JA6SKQVH.js} +7 -24
- package/dist/studio/assets/{hyperframes-player-CckOoCJ8.js → hyperframes-player-BLuyxnK7.js} +1 -1
- package/dist/studio/assets/{index-DsEkE5_G.js → index-CWfuDCoA.js} +1 -1
- package/dist/studio/assets/{index-BmIPrb8I.js → index-Dr3Bo9uH.js} +1 -1
- package/dist/studio/assets/{index-Br1Whc0f.js → index-VAHDM_zL.js} +204 -204
- package/dist/studio/{chunk-E422JDF5.js → chunk-H2DUOXTF.js} +2 -1
- package/dist/studio/index.d.ts +19 -3
- package/dist/studio/index.html +1 -1
- package/dist/studio/index.js +6498 -5813
- package/dist/studio/index.js.map +1 -1
- package/dist/studio/player.js +1 -1
- package/dist/{studio-api-5V4TVSQV.js → studio-api-4FNUZPJ4.js} +40 -28
- package/dist/{studioServer-M5XY3HYC.js → studioServer-GHLL3F2M.js} +99 -68
- package/dist/{system-RCRNX5VF.js → system-OQLOGGPJ.js} +2 -19
- package/dist/{telemetry-LOBRQGUD.js → telemetry-7AO77PMH.js} +8 -23
- package/dist/{timeline-3JCP6PXU.js → timeline-6LTHSRXM.js} +32 -22
- package/dist/{tokens-MLMIJBVF.js → tokens-K6B46KNL.js} +3 -3
- package/dist/{transcribe-KNFXDEAX.js → transcribe-CLLISRLZ.js} +16 -9
- package/dist/{transcribe-POH25ZPX.js → transcribe-K2OU6FZF.js} +20 -44
- package/dist/{updateCheck-5ITBSBST.js → updateCheck-X6UQBS6I.js} +2 -2
- package/dist/{upgrade-K6OK4FKT.js → upgrade-BZFKEADI.js} +5 -5
- package/dist/{urlDownloader-TJJQKADT.js → urlDownloader-VAVUXYEQ.js} +14 -7
- package/dist/{validate-PPPOBJHB.js → validate-VO5KEXWN.js} +26 -19
- package/dist/{video-OB22HWXZ.js → video-JV6Y4UJR.js} +18 -11
- package/package.json +1 -1
- package/dist/chunk-HYYSJI5D.js +0 -3742
- package/dist/{chunk-I465DBM6.js → chunk-246MOR5U.js} +3 -3
- package/dist/{deploy-MX76RZ36.js → deploy-5G4Z6LPA.js} +1 -1
- package/dist/{destroy-H2TZBYHH.js → destroy-GFQLTIY3.js} +1 -1
- package/dist/{docs-QAPJEGLS.js → docs-MPOM3PHH.js} +3 -3
- package/dist/{policies-FSDZVS2E.js → policies-4FEXMXPK.js} +3 -3
- package/dist/{progress-FBIEEB7Y.js → progress-5AM2MZ7V.js} +3 -3
- package/dist/{sites-TNVKZS73.js → sites-HZMADOA3.js} +1 -1
- package/dist/studio/{chunk-E422JDF5.js.map → chunk-H2DUOXTF.js.map} +0 -0
- package/dist/{telemetry-2YC4SGQU.js → telemetry-W5AKPI4R.js} +3 -3
- package/dist/{tts-FU35O6YB.js → tts-TOHSPWEG.js} +4 -4
|
@@ -6,27 +6,24 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
serveStaticProjectHtml
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PFJFHNU3.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PB3P4MKP.js";
|
|
13
13
|
import {
|
|
14
14
|
AUDIT_SEEK_OPTIONS,
|
|
15
15
|
installPageFunctionGuard,
|
|
16
16
|
seekCompositionTimeline,
|
|
17
17
|
waitForCompositionFonts,
|
|
18
18
|
waitForRuntimeReady
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KFQNMY36.js";
|
|
20
20
|
import {
|
|
21
21
|
launchManagedBrowser,
|
|
22
22
|
resolveManagedGpuMode
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BQKEGPPL.js";
|
|
24
24
|
import {
|
|
25
25
|
resolveDiagnosticNavigationTimeoutMs
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import {
|
|
28
|
-
c
|
|
29
|
-
} from "./chunk-ZTZA4UWZ.js";
|
|
26
|
+
} from "./chunk-TYT2TLJR.js";
|
|
30
27
|
import {
|
|
31
28
|
defineCommand
|
|
32
29
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -37,10 +34,13 @@ import {
|
|
|
37
34
|
import {
|
|
38
35
|
printDeprecationNotice,
|
|
39
36
|
withMeta
|
|
40
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-DDQ4LOML.js";
|
|
41
38
|
import {
|
|
42
39
|
normalizeErrorMessage
|
|
43
40
|
} from "./chunk-KNU5COPB.js";
|
|
41
|
+
import {
|
|
42
|
+
c
|
|
43
|
+
} from "./chunk-ZTZA4UWZ.js";
|
|
44
44
|
|
|
45
45
|
// src/commands/layout.ts
|
|
46
46
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
@@ -670,7 +670,7 @@ async function collectTweenBoundaries(page) {
|
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
672
|
async function bundleProjectHtml(projectDir) {
|
|
673
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
673
|
+
const { bundleToSingleHtml } = await import("./compiler-RTU3KTLF.js");
|
|
674
674
|
return bundleToSingleHtml(projectDir);
|
|
675
675
|
}
|
|
676
676
|
async function alignViewportToComposition(page, url) {
|
|
@@ -692,8 +692,8 @@ async function alignViewportToComposition(page, url) {
|
|
|
692
692
|
async function runLayoutAudit(projectDir, opts) {
|
|
693
693
|
const { ensureBrowser } = await import("./manager-CT3D67CG.js");
|
|
694
694
|
const puppeteer = await import("puppeteer-core");
|
|
695
|
-
const { buildChromeArgs } = await import("./src-
|
|
696
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalBrowserGpuMode } = await import("./gpuPolicy-
|
|
695
|
+
const { buildChromeArgs } = await import("./src-7SSERHNP.js");
|
|
696
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalBrowserGpuMode } = await import("./gpuPolicy-A45VSUKR.js");
|
|
697
697
|
const html = await bundleProjectHtml(projectDir);
|
|
698
698
|
const server = await serveStaticProjectHtml(
|
|
699
699
|
projectDir,
|
|
@@ -4,6 +4,9 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
ensureHfIds
|
|
9
|
+
} from "./chunk-A4KQZXZI.js";
|
|
7
10
|
import {
|
|
8
11
|
HF_COLOR_GRADING_ATTR,
|
|
9
12
|
INLINED_FILE_ATTR,
|
|
@@ -32,7 +35,7 @@ import {
|
|
|
32
35
|
stripEmbeddedRuntimeScripts,
|
|
33
36
|
styleElementsFor,
|
|
34
37
|
warnUnknownEnumValues
|
|
35
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-B3I3XJ47.js";
|
|
36
39
|
import {
|
|
37
40
|
cssVariableName
|
|
38
41
|
} from "./chunk-VC76R6W2.js";
|
|
@@ -42,7 +45,7 @@ import {
|
|
|
42
45
|
} from "./chunk-OFQWTKPW.js";
|
|
43
46
|
import {
|
|
44
47
|
lintHyperframeHtml
|
|
45
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WY5OODN5.js";
|
|
46
49
|
import {
|
|
47
50
|
CSS_URL_RE,
|
|
48
51
|
checkSubCompositionUsability,
|
|
@@ -1810,106 +1813,6 @@ function inlineSubCompositions(document, hosts, options) {
|
|
|
1810
1813
|
};
|
|
1811
1814
|
}
|
|
1812
1815
|
|
|
1813
|
-
// ../parsers/dist/hfIds.js
|
|
1814
|
-
var EXCLUDED_TAGS = /* @__PURE__ */ new Set([
|
|
1815
|
-
"script",
|
|
1816
|
-
"style",
|
|
1817
|
-
"template",
|
|
1818
|
-
"meta",
|
|
1819
|
-
"link",
|
|
1820
|
-
"noscript",
|
|
1821
|
-
"base"
|
|
1822
|
-
]);
|
|
1823
|
-
function fnv1a(str) {
|
|
1824
|
-
let h = 2166136261;
|
|
1825
|
-
for (let i = 0; i < str.length; i++) {
|
|
1826
|
-
h ^= str.charCodeAt(i);
|
|
1827
|
-
h = Math.imul(h, 16777619);
|
|
1828
|
-
}
|
|
1829
|
-
return h >>> 0;
|
|
1830
|
-
}
|
|
1831
|
-
function toHfId(hash2) {
|
|
1832
|
-
const s = (hash2 >>> 0).toString(36);
|
|
1833
|
-
const four = s.length >= 4 ? s.slice(-4) : s.padStart(4, "0");
|
|
1834
|
-
return `hf-${four}`;
|
|
1835
|
-
}
|
|
1836
|
-
function ownText(el) {
|
|
1837
|
-
let text = "";
|
|
1838
|
-
el.childNodes.forEach((n) => {
|
|
1839
|
-
if (n.nodeType === 3) text += n.nodeValue ?? "";
|
|
1840
|
-
});
|
|
1841
|
-
return text.trim();
|
|
1842
|
-
}
|
|
1843
|
-
function getContractAttribute(el, name) {
|
|
1844
|
-
return Array.from(el.attributes).find((attr) => attr.name.toLowerCase() === name)?.value ?? null;
|
|
1845
|
-
}
|
|
1846
|
-
function contentKey(el) {
|
|
1847
|
-
const attrs = Array.from(el.attributes).filter((a) => !a.name.toLowerCase().startsWith("data-hf-")).map((a) => `${a.name.toLowerCase()}\0${a.value}`).sort().join("");
|
|
1848
|
-
return `${el.tagName.toLowerCase()}|${attrs}|${ownText(el)}`;
|
|
1849
|
-
}
|
|
1850
|
-
function mintHfId(el, assigned) {
|
|
1851
|
-
const key = contentKey(el);
|
|
1852
|
-
let id = toHfId(fnv1a(key));
|
|
1853
|
-
let dup = 0;
|
|
1854
|
-
while (assigned.has(id)) {
|
|
1855
|
-
dup += 1;
|
|
1856
|
-
if (dup > 1e4) {
|
|
1857
|
-
id = `hf-${(fnv1a(key) >>> 0).toString(36)}-${dup}`;
|
|
1858
|
-
break;
|
|
1859
|
-
}
|
|
1860
|
-
id = toHfId(fnv1a(`${key}#${dup}`));
|
|
1861
|
-
}
|
|
1862
|
-
assigned.add(id);
|
|
1863
|
-
return id;
|
|
1864
|
-
}
|
|
1865
|
-
function getChildElements(parent) {
|
|
1866
|
-
const directChildren = Array.from(parent.children);
|
|
1867
|
-
if (directChildren.length || parent.tagName.toLowerCase() !== "template") return directChildren;
|
|
1868
|
-
const content = parent.content;
|
|
1869
|
-
if (content?.children.length) return Array.from(content.children);
|
|
1870
|
-
return directChildren;
|
|
1871
|
-
}
|
|
1872
|
-
function isCompositionTemplate(el) {
|
|
1873
|
-
if (el.tagName.toLowerCase() !== "template") return false;
|
|
1874
|
-
if (getContractAttribute(el, "data-composition-id") !== null) return true;
|
|
1875
|
-
for (const child of getChildElements(el)) {
|
|
1876
|
-
if (getContractAttribute(child, "data-composition-id") !== null) return true;
|
|
1877
|
-
}
|
|
1878
|
-
return false;
|
|
1879
|
-
}
|
|
1880
|
-
function walkCompositionDescendants(root, visit) {
|
|
1881
|
-
const rootElement = root.nodeType === 9 ? root.documentElement : root;
|
|
1882
|
-
if (!rootElement) return;
|
|
1883
|
-
const walk = (parent) => {
|
|
1884
|
-
for (const child of getChildElements(parent)) {
|
|
1885
|
-
const isTemplate = child.tagName.toLowerCase() === "template";
|
|
1886
|
-
if (isTemplate && !isCompositionTemplate(child)) continue;
|
|
1887
|
-
visit(child);
|
|
1888
|
-
walk(child);
|
|
1889
|
-
}
|
|
1890
|
-
};
|
|
1891
|
-
walk(rootElement);
|
|
1892
|
-
}
|
|
1893
|
-
function assignHfIds(body) {
|
|
1894
|
-
const assigned = /* @__PURE__ */ new Set();
|
|
1895
|
-
walkCompositionDescendants(body, (el) => {
|
|
1896
|
-
const existing = getContractAttribute(el, "data-hf-id");
|
|
1897
|
-
if (existing) assigned.add(existing);
|
|
1898
|
-
});
|
|
1899
|
-
walkCompositionDescendants(body, (el) => {
|
|
1900
|
-
if (EXCLUDED_TAGS.has(el.tagName.toLowerCase())) return;
|
|
1901
|
-
if (getContractAttribute(el, "data-hf-id")) return;
|
|
1902
|
-
el.setAttribute("data-hf-id", mintHfId(el, assigned));
|
|
1903
|
-
});
|
|
1904
|
-
}
|
|
1905
|
-
function ensureHfIds(html) {
|
|
1906
|
-
const wrapped = !/<!doctype|<html[\s>]/i.test(html);
|
|
1907
|
-
const { document } = wrapped ? parseHTML(`<!DOCTYPE html><html><head></head><body>${html}</body></html>`) : parseHTML(html);
|
|
1908
|
-
if (!document.body) return html;
|
|
1909
|
-
assignHfIds(document.body);
|
|
1910
|
-
return wrapped ? document.body.innerHTML || "" : document.toString();
|
|
1911
|
-
}
|
|
1912
|
-
|
|
1913
1816
|
// ../core/dist/compiler/htmlBundler.js
|
|
1914
1817
|
var DEFAULT_RUNTIME_SCRIPT_URL = "";
|
|
1915
1818
|
function getRuntimeScriptUrl() {
|
|
@@ -3122,10 +3025,6 @@ export {
|
|
|
3122
3025
|
validateHyperframeHtmlContract,
|
|
3123
3026
|
ensureExternalLinkTag,
|
|
3124
3027
|
inlineSubCompositions,
|
|
3125
|
-
EXCLUDED_TAGS,
|
|
3126
|
-
mintHfId,
|
|
3127
|
-
walkCompositionDescendants,
|
|
3128
|
-
ensureHfIds,
|
|
3129
3028
|
assignBundledRuntimeCompositionIds,
|
|
3130
3029
|
prepareFlattenedInnerRoot,
|
|
3131
3030
|
bundleToSingleHtml,
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
parseHTML
|
|
9
|
+
} from "./chunk-GK4AIFIH.js";
|
|
10
|
+
|
|
11
|
+
// ../parsers/dist/hfIds.js
|
|
12
|
+
var EXCLUDED_TAGS = /* @__PURE__ */ new Set([
|
|
13
|
+
"script",
|
|
14
|
+
"style",
|
|
15
|
+
"template",
|
|
16
|
+
"meta",
|
|
17
|
+
"link",
|
|
18
|
+
"noscript",
|
|
19
|
+
"base"
|
|
20
|
+
]);
|
|
21
|
+
function fnv1a(str) {
|
|
22
|
+
let h = 2166136261;
|
|
23
|
+
for (let i = 0; i < str.length; i++) {
|
|
24
|
+
h ^= str.charCodeAt(i);
|
|
25
|
+
h = Math.imul(h, 16777619);
|
|
26
|
+
}
|
|
27
|
+
return h >>> 0;
|
|
28
|
+
}
|
|
29
|
+
function toHfId(hash) {
|
|
30
|
+
const s = (hash >>> 0).toString(36);
|
|
31
|
+
const four = s.length >= 4 ? s.slice(-4) : s.padStart(4, "0");
|
|
32
|
+
return `hf-${four}`;
|
|
33
|
+
}
|
|
34
|
+
function ownText(el) {
|
|
35
|
+
let text = "";
|
|
36
|
+
el.childNodes.forEach((n) => {
|
|
37
|
+
if (n.nodeType === 3) text += n.nodeValue ?? "";
|
|
38
|
+
});
|
|
39
|
+
return text.trim();
|
|
40
|
+
}
|
|
41
|
+
function getContractAttribute(el, name) {
|
|
42
|
+
return Array.from(el.attributes).find((attr) => attr.name.toLowerCase() === name)?.value ?? null;
|
|
43
|
+
}
|
|
44
|
+
function contentKey(el) {
|
|
45
|
+
const attrs = Array.from(el.attributes).filter((a) => !a.name.toLowerCase().startsWith("data-hf-")).map((a) => `${a.name.toLowerCase()}\0${a.value}`).sort().join("");
|
|
46
|
+
return `${el.tagName.toLowerCase()}|${attrs}|${ownText(el)}`;
|
|
47
|
+
}
|
|
48
|
+
function mintHfId(el, assigned) {
|
|
49
|
+
const key = contentKey(el);
|
|
50
|
+
let id = toHfId(fnv1a(key));
|
|
51
|
+
let dup = 0;
|
|
52
|
+
while (assigned.has(id)) {
|
|
53
|
+
dup += 1;
|
|
54
|
+
if (dup > 1e4) {
|
|
55
|
+
id = `hf-${(fnv1a(key) >>> 0).toString(36)}-${dup}`;
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
id = toHfId(fnv1a(`${key}#${dup}`));
|
|
59
|
+
}
|
|
60
|
+
assigned.add(id);
|
|
61
|
+
return id;
|
|
62
|
+
}
|
|
63
|
+
function getChildElements(parent) {
|
|
64
|
+
const directChildren = Array.from(parent.children);
|
|
65
|
+
if (directChildren.length || parent.tagName.toLowerCase() !== "template") return directChildren;
|
|
66
|
+
const content = parent.content;
|
|
67
|
+
if (content?.children.length) return Array.from(content.children);
|
|
68
|
+
return directChildren;
|
|
69
|
+
}
|
|
70
|
+
function isCompositionTemplate(el) {
|
|
71
|
+
if (el.tagName.toLowerCase() !== "template") return false;
|
|
72
|
+
if (getContractAttribute(el, "data-composition-id") !== null) return true;
|
|
73
|
+
for (const child of getChildElements(el)) {
|
|
74
|
+
if (getContractAttribute(child, "data-composition-id") !== null) return true;
|
|
75
|
+
}
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
function walkCompositionDescendants(root, visit) {
|
|
79
|
+
const rootElement = root.nodeType === 9 ? root.documentElement : root;
|
|
80
|
+
if (!rootElement) return;
|
|
81
|
+
const walk = (parent) => {
|
|
82
|
+
for (const child of getChildElements(parent)) {
|
|
83
|
+
const isTemplate = child.tagName.toLowerCase() === "template";
|
|
84
|
+
if (isTemplate && !isCompositionTemplate(child)) continue;
|
|
85
|
+
visit(child);
|
|
86
|
+
walk(child);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
walk(rootElement);
|
|
90
|
+
}
|
|
91
|
+
function assignHfIds(body) {
|
|
92
|
+
const assigned = /* @__PURE__ */ new Set();
|
|
93
|
+
walkCompositionDescendants(body, (el) => {
|
|
94
|
+
const existing = getContractAttribute(el, "data-hf-id");
|
|
95
|
+
if (existing) assigned.add(existing);
|
|
96
|
+
});
|
|
97
|
+
walkCompositionDescendants(body, (el) => {
|
|
98
|
+
if (EXCLUDED_TAGS.has(el.tagName.toLowerCase())) return;
|
|
99
|
+
if (getContractAttribute(el, "data-hf-id")) return;
|
|
100
|
+
el.setAttribute("data-hf-id", mintHfId(el, assigned));
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function ensureHfIds(html) {
|
|
104
|
+
const wrapped = !/<!doctype|<html[\s>]/i.test(html);
|
|
105
|
+
const { document } = wrapped ? parseHTML(`<!DOCTYPE html><html><head></head><body>${html}</body></html>`) : parseHTML(html);
|
|
106
|
+
if (!document.body) return html;
|
|
107
|
+
assignHfIds(document.body);
|
|
108
|
+
return wrapped ? document.body.innerHTML || "" : document.toString();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export {
|
|
112
|
+
EXCLUDED_TAGS,
|
|
113
|
+
mintHfId,
|
|
114
|
+
walkCompositionDescendants,
|
|
115
|
+
ensureHfIds
|
|
116
|
+
};
|
|
@@ -7,32 +7,29 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DQNOPYAG.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROJECT_CONFIG,
|
|
13
13
|
createProjectConfig,
|
|
14
14
|
loadProjectConfig,
|
|
15
15
|
projectConfigPath,
|
|
16
16
|
recordProjectRegistryItems
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KMKWRIMC.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveItemWithDependencies,
|
|
20
20
|
resolveItemsByTag
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ASW6NWON.js";
|
|
22
22
|
import {
|
|
23
23
|
InvalidVariableValuesError,
|
|
24
24
|
prepareItem,
|
|
25
25
|
publishItem
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VVJFZU6B.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_REGISTRY_URL
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5IKJONRY.js";
|
|
30
30
|
import {
|
|
31
31
|
trackRegistryItemAdded
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import {
|
|
34
|
-
c
|
|
35
|
-
} from "./chunk-ZTZA4UWZ.js";
|
|
32
|
+
} from "./chunk-JSGANFFH.js";
|
|
36
33
|
import {
|
|
37
34
|
defineCommand
|
|
38
35
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -41,7 +38,7 @@ import {
|
|
|
41
38
|
} from "./chunk-PBN6GBJE.js";
|
|
42
39
|
import {
|
|
43
40
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-QP3BRKGF.js";
|
|
45
42
|
import {
|
|
46
43
|
isProjectRootMissing,
|
|
47
44
|
realpath
|
|
@@ -49,6 +46,9 @@ import {
|
|
|
49
46
|
import {
|
|
50
47
|
parseHTML
|
|
51
48
|
} from "./chunk-GK4AIFIH.js";
|
|
49
|
+
import {
|
|
50
|
+
c
|
|
51
|
+
} from "./chunk-ZTZA4UWZ.js";
|
|
52
52
|
|
|
53
53
|
// src/commands/add.ts
|
|
54
54
|
import { existsSync, readFileSync } from "fs";
|