hyperframes 0.8.121 → 0.8.123
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-CGDIT7CT.js → add-CJXLRVWK.js} +16 -16
- package/dist/{animatedGifPrep-KPT5VB5Q.js → animatedGifPrep-VHXPTSJL.js} +7 -7
- package/dist/{asset-6ZAZIWA7.js → asset-KTRZSJ5R.js} +2 -2
- package/dist/{assetCataloger-FWWCXIEX.js → assetCataloger-NH6UQG4Y.js} +3 -3
- package/dist/{auth-W4WZ5KT2.js → auth-T52MOHC7.js} +2 -2
- package/dist/{autoUpdate-2KRUUCM2.js → autoUpdate-EI6JX53V.js} +2 -2
- package/dist/{backgroundChecks-M7YRL5G3.js → backgroundChecks-7N3FFYIV.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-2HXYPO62.js → batchRender-JDH4PXPD.js} +4 -4
- package/dist/{beats-KXLHRYXV.js → beats-TG2TOST6.js} +13 -13
- package/dist/{benchmark-TZRC6JEE.js → benchmark-WGXMGPUI.js} +13 -13
- package/dist/{browser-KFCZEHSG.js → browser-VMEADLNK.js} +10 -10
- package/dist/{bundleWithLocalizedFonts-3RRACCEV.js → bundleWithLocalizedFonts-EDBQ5EME.js} +2 -2
- package/dist/{capture-N25LJPGM.js → capture-22IWCYV2.js} +2 -2
- package/dist/{capture-3L7VTWDG.js → capture-UZFI2G65.js} +10 -10
- package/dist/{catalog-OJK3RAMA.js → catalog-3V4SSSYE.js} +16 -16
- package/dist/{check-DUQ2OHRX.js → check-LTKOTPFI.js} +33 -34
- package/dist/{checkBrowser-XHNFT3DB.js → checkBrowser-LTZPCRBO.js} +36 -37
- package/dist/{chunk-YJMQLWG4.js → chunk-24AS45UQ.js} +58 -38
- package/dist/{chunk-E5XIJTMU.js → chunk-2FH6HOQ2.js} +1 -1
- package/dist/{chunk-5OS5XIWZ.js → chunk-2QAAOW5T.js} +23 -1
- package/dist/{chunk-44EFU366.js → chunk-3SHYUYXR.js} +12 -14
- package/dist/{chunk-IVLJE3VX.js → chunk-3V6V66SZ.js} +2 -2
- package/dist/{chunk-XLG5C3XA.js → chunk-4EZKLNMD.js} +1 -1
- package/dist/{chunk-DISNXEWU.js → chunk-4TIUZ6Z7.js} +2 -2
- package/dist/{chunk-6Z4E4GBX.js → chunk-4XAAOWFC.js} +1 -1
- package/dist/chunk-53IO4HLZ.js +3541 -0
- package/dist/{chunk-2C6UJPQS.js → chunk-73KPBRCO.js} +1 -1
- package/dist/{chunk-NPHNGWJH.js → chunk-7NWNDQID.js} +3 -3
- package/dist/{chunk-WW7V2GQJ.js → chunk-AICUP6TU.js} +2 -2
- package/dist/chunk-AMV2OPXR.js +82 -0
- package/dist/{chunk-JACPHNUK.js → chunk-BET5FXMM.js} +1 -1
- package/dist/{chunk-7VXU7E5S.js → chunk-CZRQH5SP.js} +1 -1
- package/dist/{chunk-2LWWIDPZ.js → chunk-DR7F77AN.js} +1 -1
- package/dist/{chunk-KYDM3W7A.js → chunk-E26WHQFM.js} +2 -2
- package/dist/{chunk-AA4KEZGW.js → chunk-EJF6CESB.js} +1 -1
- package/dist/{chunk-JWHQKTVG.js → chunk-ELHC6CLH.js} +3 -3
- package/dist/{chunk-5PTKFXAS.js → chunk-EYNWMEWX.js} +13 -11
- package/dist/{chunk-FSLYPQ5Z.js → chunk-F7MXHGU3.js} +6 -5
- package/dist/{chunk-NRTZ2JPC.js → chunk-GA46NF76.js} +1 -1
- package/dist/{chunk-SJ64QY5Z.js → chunk-GPUM6BRL.js} +2 -2
- package/dist/{chunk-ZUVO6Q5Q.js → chunk-HISVSZH7.js} +2 -2
- package/dist/{chunk-BN5KOC5O.js → chunk-ILOJE2TE.js} +1 -1
- package/dist/{chunk-GF4MOYGU.js → chunk-IML47HIH.js} +20 -12
- package/dist/{chunk-JREV7WVY.js → chunk-IOMMM4AX.js} +1 -1
- package/dist/{chunk-4JC7LDBQ.js → chunk-KQ7BAEVP.js} +3 -3
- package/dist/{chunk-3WXWL7AY.js → chunk-MBSCHJQZ.js} +1 -1
- package/dist/{chunk-RYSHGEZL.js → chunk-MUAFAG77.js} +4 -4
- package/dist/{chunk-NITBGIHR.js → chunk-N4RVOW43.js} +2 -2
- package/dist/{chunk-TRLP3CSL.js → chunk-NSVHO5LZ.js} +6 -5
- package/dist/{chunk-2GKO3X7F.js → chunk-NSY245QZ.js} +1 -1
- package/dist/{chunk-3DCZIHXE.js → chunk-OCH6V4FB.js} +4 -4
- package/dist/{chunk-JWGYWJ5F.js → chunk-PQQZNS5K.js} +1 -1
- package/dist/{chunk-VU4KRDRL.js → chunk-PUFPAYTJ.js} +1 -1
- package/dist/{chunk-YE5UC4XH.js → chunk-QLKCB3NY.js} +7 -7
- package/dist/{chunk-LZN67SFR.js → chunk-RTINVJNS.js} +1 -1
- package/dist/{chunk-GPGWCFIA.js → chunk-RYP46ARK.js} +53 -2
- package/dist/{chunk-6WIWCYD5.js → chunk-S3JOM6L4.js} +3 -3
- package/dist/{chunk-S6Y2LOTE.js → chunk-SKZ6H3JT.js} +1 -1
- package/dist/{chunk-RCNDZEBU.js → chunk-TLA5RBEB.js} +2 -2
- package/dist/{chunk-WBRDOH4A.js → chunk-UI2I6ZQE.js} +1 -1
- package/dist/{chunk-OWPHLEDI.js → chunk-UMMVYWDI.js} +5 -5
- package/dist/{chunk-2XV3S6TA.js → chunk-VEGNMQZI.js} +2 -2
- package/dist/{chunk-MNMD6XLG.js → chunk-WAD4ACBZ.js} +3 -3
- package/dist/{chunk-ZBMQOBQK.js → chunk-XIJTGR4O.js} +1 -1
- package/dist/{chunk-WG4IZWEH.js → chunk-XQSMY5HF.js} +2 -2
- package/dist/{chunk-2CGUG4XK.js → chunk-Z3SUEG2T.js} +11 -9
- package/dist/{clean-NH5JTTXP.js → clean-YZQXCSXZ.js} +17 -17
- package/dist/cli.js +52 -51
- package/dist/{cloud-QKM43VWA.js → cloud-TYUXSEGA.js} +4 -4
- package/dist/{cloudrun-JQCGTNFP.js → cloudrun-MA2JVRHV.js} +5 -5
- package/dist/{compare-2ZOO6GRL.js → compare-6DSDY2IF.js} +27 -28
- package/dist/{compiler-WNWCQTI6.js → compiler-4FHYKPNR.js} +7 -3
- package/dist/{component-Q5AECWP4.js → component-NY4JERQ5.js} +3 -3
- package/dist/{compositions-KEMPAOSU.js → compositions-SI2SKZAF.js} +12 -12
- package/dist/{delete-TWGIIVHU.js → delete-YU7XRF6M.js} +2 -2
- package/dist/{deterministicFonts-ITMUXWD2.js → deterministicFonts-HHGHYN6V.js} +2 -2
- package/dist/{dist-JGUAVYZS.js → dist-AMQZTIJP.js} +3 -3
- package/dist/{dist-JAOG6MYW.js → dist-RUZFIHUD.js} +1 -1
- package/dist/{doctor-COVUXJ2H.js → doctor-MXX7AHXT.js} +11 -11
- package/dist/{events-6K4KG2RC.js → events-LLCZN2LK.js} +10 -10
- package/dist/{events-PNRVEJOH.js → events-R5N3EVAF.js} +9 -9
- package/dist/{feedback-YACZS7R7.js → feedback-MIZ3HJT4.js} +11 -11
- package/dist/{figma-LEEL7JF7.js → figma-4ESVBLHH.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/{get-FX23HBPC.js → get-OF3I77OW.js} +2 -2
- package/dist/{gpuPolicy-TCSAVM2S.js → gpuPolicy-KDI7HVOA.js} +7 -7
- package/dist/{grade-compare-ENNPIMZX.js → grade-compare-QXE4ZEZU.js} +27 -28
- package/dist/{gsapParserAcorn-FLWABPQM.js → gsapParserAcorn-3Z742FXU.js} +1 -1
- package/dist/{help-HNY5LMYR.js → help-NFHZFSQN.js} +3 -2
- package/dist/{history-325KQTJM.js → history-DTRCFREW.js} +17 -17
- package/dist/hyperframe-runtime.js +56 -56
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +56 -56
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-GKPHG3QO.js → info-KRDLMYKB.js} +12 -12
- package/dist/{init-UYF6SWL7.js → init-XTXSP6IU.js} +23 -23
- package/dist/{inspect-A6DZG7KU.js → inspect-KH3CTX62.js} +28 -29
- package/dist/{installer-EY3AB44Q.js → installer-M5OHZ3QU.js} +5 -5
- package/dist/{keyframes-P62TMLKQ.js → keyframes-K5UWQDSW.js} +19 -18
- package/dist/{lambda-HWU6V36S.js → lambda-PXGK25LH.js} +6 -6
- package/dist/{layout-GWF2HD5Z.js → layout-SYWCNF2S.js} +28 -29
- package/dist/{lint-OBGOECOL.js → lint-A5W6BCKC.js} +13 -13
- package/dist/{lintProject-FDJYTOVM.js → lintProject-MXUZEBDH.js} +1 -1
- package/dist/{list-ZOUMRWXQ.js → list-CXWE53HJ.js} +2 -2
- package/dist/{login-4H6ZVI6D.js → login-WUPTUIG2.js} +4 -4
- package/dist/{media-treatment-GRBN3MG5.js → media-treatment-INJWEP6H.js} +13 -13
- package/dist/{models-YFTLSJEG.js → models-D5CMY6VB.js} +8 -8
- package/dist/{motionShot-7VLC2ULG.js → motionShot-HS4M4WOQ.js} +17 -16
- package/dist/{normalize-audio-SLBARKVY.js → normalize-audio-ILF3IDZC.js} +12 -12
- package/dist/open-4V3RXCR6.js +115 -0
- package/dist/{pipeline-WRNKPJZH.js → pipeline-CPGRA375.js} +7 -7
- package/dist/{play-PDEXRHV6.js → play-IFATKPFL.js} +22 -22
- package/dist/{preflight-6TUK6Z7A.js → preflight-IQEYFD33.js} +8 -8
- package/dist/{present-UXWOO2YL.js → present-A3EXMPEB.js} +18 -18
- package/dist/{preview-CWHCNYYZ.js → preview-6OFPNSRQ.js} +29 -24
- package/dist/{producer-WDTJSNXK.js → producer-T4HGO327.js} +1 -1
- package/dist/{projectConfig-DBP5POAQ.js → projectConfig-VKUAJTKN.js} +7 -7
- package/dist/{publication-SUAGUL5G.js → publication-EYW5DW5Q.js} +3 -3
- package/dist/{publish-CDKO6FSQ.js → publish-7N3KAN23.js} +9 -9
- package/dist/{remove-background-QFMDODZ4.js → remove-background-76NDLWX2.js} +8 -8
- package/dist/{render-XTI7E22A.js → render-FVVTP6IC.js} +13 -13
- package/dist/{render-BYD7ZASF.js → render-SGKRP4OI.js} +45 -29
- package/dist/{render-NRNF56OV.js → render-WWSM5VDX.js} +4 -4
- package/dist/{render-batch-L2AIXYA3.js → render-batch-UHVLIDQ6.js} +4 -4
- package/dist/{renderCancellation-XR3W2AQT.js → renderCancellation-TZ2YQXLI.js} +7 -7
- package/dist/renderSetupWorker.js +1 -1
- package/dist/{resolver-RYPIAEGU.js → resolver-BERTN5TY.js} +5 -5
- package/dist/{sherpa-MXQ34FFS.js → sherpa-WAI3BU35.js} +8 -8
- package/dist/skills/media-use/SKILL.md +2 -0
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +16 -6
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +26 -1
- package/dist/skills/media-use/audio/scripts/lib/tts.mjs +2 -4
- package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +31 -1
- package/dist/skills/media-use/scripts/lib/manifest.d.mts +19 -0
- package/dist/skills/media-use/scripts/lib/manifest.mjs +17 -13
- package/dist/skills/media-use/scripts/lib/manifest.test.mjs +3 -2
- package/dist/{skills-MZQUKPEY.js → skills-4J56N4BF.js} +12 -12
- package/dist/{skillsUpdateCheck-B5F5UR7U.js → skillsUpdateCheck-GPLLGZTN.js} +3 -3
- package/dist/{snapshot-HPBNWSSK.js → snapshot-XPPNHMIG.js} +28 -29
- package/dist/{src-RNEWLAP6.js → src-6ZDBAHYH.js} +9 -9
- package/dist/{src-BS6B2UWS.js → src-K6L2URKG.js} +6 -6
- package/dist/{staticProjectServer-B44OD7QD.js → staticProjectServer-ETIXS3GJ.js} +16 -16
- package/dist/{status-RYS52BAQ.js → status-P2I66DU7.js} +7 -7
- package/dist/studio/assets/{hyperframes-player-GkN9yzzq.js → hyperframes-player-yABdb6yk.js} +1 -1
- package/dist/studio/assets/{index-ByV72rWx.js → index-D77MIjSJ.js} +1 -1
- package/dist/studio/assets/{index-BpKhiuzT.js → index-DWjF2Kxw.js} +1 -1
- package/dist/studio/assets/{index-CyFqMHGS.js → index-Dt7lWtY7.js} +184 -184
- package/dist/studio/assets/{index-t1LH6H5H.css → index-LrNlT5Tg.css} +1 -1
- package/dist/studio/{chunk-J6Q572FA.js → chunk-246VB2G3.js} +3 -1
- package/dist/studio/chunk-246VB2G3.js.map +1 -0
- package/dist/studio/index.d.ts +10 -2
- package/dist/studio/index.html +2 -2
- package/dist/studio/index.js +1611 -1310
- package/dist/studio/index.js.map +1 -1
- package/dist/studio/player.js +1 -1
- package/dist/studio/styles.css +1 -1
- package/dist/{studio-api-YCS6DZMR.js → studio-api-PTVN2GZ5.js} +10 -10
- package/dist/{studioServer-AEXETXZ2.js → studioServer-55366NG4.js} +77 -43
- package/dist/{system-TD2HPCOA.js → system-M44QRAAZ.js} +7 -7
- package/dist/{telemetry-7KDXFPTK.js → telemetry-6GQL3BIP.js} +10 -10
- package/dist/{timeline-P4IMRDIN.js → timeline-NMG3JG3V.js} +17 -17
- package/dist/{tokens-HKYWL774.js → tokens-5LYIBBEF.js} +2 -2
- package/dist/{transcribe-2E4QY24M.js → transcribe-3SONDYLT.js} +8 -8
- package/dist/{transcribe-UIQMMHXI.js → transcribe-4DGPFZTU.js} +13 -13
- package/dist/{tts-P3LIPIL5.js → tts-CGUXR7R4.js} +1 -1
- package/dist/{updateCheck-KWLMTR35.js → updateCheck-CXNND3CL.js} +2 -2
- package/dist/{upgrade-E4TMMCGK.js → upgrade-RFTKDIVZ.js} +2 -2
- package/dist/{urlDownloader-P2EJDWLH.js → urlDownloader-VRZX26OK.js} +6 -6
- package/dist/{validate-IX47WBNJ.js → validate-3BFHVVZH.js} +17 -18
- package/dist/{video-56EQZA6M.js → video-ECPRKRRP.js} +7 -7
- package/package.json +1 -1
- package/dist/chunk-262C25DQ.js +0 -31
- package/dist/chunk-PATLRNZA.js +0 -3541
- package/dist/studio/chunk-J6Q572FA.js.map +0 -1
- package/dist/{synthesize-K62TIZWI.js → synthesize-BDXNRYZN.js} +4 -4
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XQSMY5HF.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
flush,
|
|
9
9
|
shouldTrack,
|
|
10
10
|
trackEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-S3JOM6L4.js";
|
|
12
12
|
import {
|
|
13
13
|
getPowerState
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ILOJE2TE.js";
|
|
15
15
|
import {
|
|
16
16
|
CliRuntimeError
|
|
17
17
|
} from "./chunk-PBN6GBJE.js";
|
|
18
18
|
import {
|
|
19
19
|
redactTelemetryString
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TLA5RBEB.js";
|
|
21
21
|
import {
|
|
22
22
|
readConfig
|
|
23
23
|
} from "./chunk-XUXGIA7H.js";
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
formatVariableValidationIssue,
|
|
21
21
|
validateVariables
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TLA5RBEB.js";
|
|
23
23
|
import {
|
|
24
24
|
extractCompositionMetadata
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-F7MXHGU3.js";
|
|
26
26
|
|
|
27
27
|
// src/utils/variables.ts
|
|
28
28
|
import { readFileSync } from "fs";
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
|
|
8
|
+
// src/utils/desktopApp.ts
|
|
9
|
+
import { spawnSync } from "child_process";
|
|
10
|
+
import { existsSync, mkdirSync, writeFileSync } from "fs";
|
|
11
|
+
import { homedir } from "os";
|
|
12
|
+
import { basename, join, relative } from "path";
|
|
13
|
+
var DESKTOP_BUNDLE_IDS = ["dev.hyperframes.desktop", "dev.hyperframes.desktop.canary"];
|
|
14
|
+
var DESKTOP_APP_NAMES = ["HyperFrames.app", "HyperFrames Canary.app"];
|
|
15
|
+
var DESKTOP_DOWNLOAD_URL = "https://hyperframes.dev/studio/download";
|
|
16
|
+
var DOWNLOAD_HINT = `Edit it by chatting with Framey in HyperFrames Studio \u2192 ${DESKTOP_DOWNLOAD_URL}`;
|
|
17
|
+
var HANDOFF_READY = false;
|
|
18
|
+
var AGENT_HANDOFF_FILE = join(".hyperframes", "agent-handoff.json");
|
|
19
|
+
function agentSession(env = process.env) {
|
|
20
|
+
if (env.CLAUDE_CODE_SESSION_ID)
|
|
21
|
+
return { engine: "claude", sessionId: env.CLAUDE_CODE_SESSION_ID };
|
|
22
|
+
if (env.CODEX_THREAD_ID) return { engine: "codex", sessionId: env.CODEX_THREAD_ID };
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
var openWithBundle = (bundleId, dir) => spawnSync("open", ["-b", bundleId, dir], { stdio: "ignore" }).status === 0;
|
|
26
|
+
function leaveHandoff(dir, session) {
|
|
27
|
+
if (!session) return null;
|
|
28
|
+
try {
|
|
29
|
+
mkdirSync(join(dir, ".hyperframes"), { recursive: true });
|
|
30
|
+
writeFileSync(join(dir, AGENT_HANDOFF_FILE), JSON.stringify(session));
|
|
31
|
+
return session;
|
|
32
|
+
} catch {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function openInDesktop(dir, {
|
|
37
|
+
ready = HANDOFF_READY,
|
|
38
|
+
platform = process.platform,
|
|
39
|
+
open = openWithBundle,
|
|
40
|
+
installed = () => desktopInstalled({ platform }),
|
|
41
|
+
env = process.env
|
|
42
|
+
} = {}) {
|
|
43
|
+
const notOpened = (reason) => ({ opened: false, reason, downloadUrl: DESKTOP_DOWNLOAD_URL });
|
|
44
|
+
if (!ready) return notOpened("handoff-unavailable");
|
|
45
|
+
if (platform !== "darwin") return notOpened("unsupported-platform");
|
|
46
|
+
const bundleId = DESKTOP_BUNDLE_IDS.find((id) => open(id, dir));
|
|
47
|
+
if (!bundleId) return notOpened(installed() ? "open-failed" : "not-installed");
|
|
48
|
+
return { opened: true, bundleId, handedOver: leaveHandoff(dir, agentSession(env)) };
|
|
49
|
+
}
|
|
50
|
+
function openCommandFor(dir, cwd = process.cwd()) {
|
|
51
|
+
const shown = relative(cwd, dir) || ".";
|
|
52
|
+
return `hyperframes open ${/\s/.test(shown) ? JSON.stringify(shown) : shown}`;
|
|
53
|
+
}
|
|
54
|
+
var spotlightFinds = (bundleId) => spawnSync("mdfind", [`kMDItemCFBundleIdentifier == '${bundleId}'`], { encoding: "utf8" }).stdout?.split("\n").some((path) => path.endsWith(".app") && !basename(path).startsWith(".")) ?? false;
|
|
55
|
+
function desktopInstalled({
|
|
56
|
+
platform = process.platform,
|
|
57
|
+
home = homedir(),
|
|
58
|
+
exists = existsSync,
|
|
59
|
+
spotlight = spotlightFinds
|
|
60
|
+
} = {}) {
|
|
61
|
+
if (platform !== "darwin") return false;
|
|
62
|
+
const folders = ["/Applications", join(home, "Applications")];
|
|
63
|
+
if (folders.some((folder) => DESKTOP_APP_NAMES.some((name) => exists(join(folder, name)))))
|
|
64
|
+
return true;
|
|
65
|
+
return DESKTOP_BUNDLE_IDS.some(spotlight);
|
|
66
|
+
}
|
|
67
|
+
function desktopHint(dir, {
|
|
68
|
+
env = process.env,
|
|
69
|
+
ready = HANDOFF_READY,
|
|
70
|
+
installed
|
|
71
|
+
} = {}) {
|
|
72
|
+
if (env.HYPERFRAMES_DESKTOP_PROJECT) return null;
|
|
73
|
+
return ready && (installed ?? desktopInstalled()) ? `Edit it with Framey: ${openCommandFor(dir)}` : DOWNLOAD_HINT;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export {
|
|
77
|
+
DESKTOP_DOWNLOAD_URL,
|
|
78
|
+
DOWNLOAD_HINT,
|
|
79
|
+
HANDOFF_READY,
|
|
80
|
+
openInDesktop,
|
|
81
|
+
desktopHint
|
|
82
|
+
};
|
|
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
|
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
if (err instanceof Error) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { trackCommandFailure } = await import("./events-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-LLCZN2LK.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XIJTGR4O.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
15
|
} from "./chunk-GMECXFAN.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TLA5RBEB.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot
|
|
21
21
|
} from "./chunk-OFQWTKPW.js";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-24AS45UQ.js";
|
|
11
11
|
import {
|
|
12
12
|
PROXY_VARIANT_CONFIG,
|
|
13
13
|
ProxyCapacityError,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
recordProxyRequest,
|
|
19
19
|
resolveProxy,
|
|
20
20
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GPUM6BRL.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveAutoProxy
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MBSCHJQZ.js";
|
|
25
25
|
|
|
26
26
|
// src/utils/staticProjectServer.ts
|
|
27
27
|
import { createServer } from "http";
|
|
@@ -6,19 +6,20 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UI2I6ZQE.js";
|
|
10
10
|
import {
|
|
11
11
|
installPageFunctionGuard,
|
|
12
12
|
resolveCliChromeGpuMode,
|
|
13
|
-
seekCompositionTimeline
|
|
14
|
-
|
|
13
|
+
seekCompositionTimeline,
|
|
14
|
+
waitForRuntimeReady
|
|
15
|
+
} from "./chunk-Z3SUEG2T.js";
|
|
15
16
|
import {
|
|
16
17
|
resolveCompositionViewportFromHtml
|
|
17
18
|
} from "./chunk-5Z63TBTX.js";
|
|
18
19
|
import {
|
|
19
20
|
launchManagedBrowser,
|
|
20
21
|
resolveManagedGpuMode
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SKZ6H3JT.js";
|
|
22
23
|
import {
|
|
23
24
|
c
|
|
24
25
|
} from "./chunk-ZTZA4UWZ.js";
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
import {
|
|
33
34
|
printDeprecationNotice,
|
|
34
35
|
withMeta
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-CZRQH5SP.js";
|
|
36
37
|
import {
|
|
37
38
|
normalizeErrorMessage
|
|
38
39
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -221,7 +222,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
221
222
|
async function localizeRemoteAssets(html) {
|
|
222
223
|
let dir;
|
|
223
224
|
try {
|
|
224
|
-
const { loadProducer } = await import("./producer-
|
|
225
|
+
const { loadProducer } = await import("./producer-T4HGO327.js");
|
|
225
226
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
226
227
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
227
228
|
const assetDir = dir;
|
|
@@ -242,10 +243,10 @@ async function localizeRemoteAssets(html) {
|
|
|
242
243
|
}
|
|
243
244
|
async function validateInBrowser(project, opts) {
|
|
244
245
|
const projectDir = project.dir;
|
|
245
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
246
|
+
const { bundleToSingleHtml } = await import("./compiler-4FHYKPNR.js");
|
|
246
247
|
const { ensureBrowser } = await import("./manager-CT3D67CG.js");
|
|
247
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
248
|
-
const { lintProject } = await import("./lintProject-
|
|
248
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-ETIXS3GJ.js");
|
|
249
|
+
const { lintProject } = await import("./lintProject-MXUZEBDH.js");
|
|
249
250
|
const lintResult = await lintProject(projectDir);
|
|
250
251
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
251
252
|
const html = await bundleToSingleHtml(projectDir);
|
|
@@ -266,9 +267,9 @@ async function validateInBrowser(project, opts) {
|
|
|
266
267
|
try {
|
|
267
268
|
const browser = await ensureBrowser();
|
|
268
269
|
const puppeteer = await import("puppeteer-core");
|
|
269
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
270
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-K6L2URKG.js");
|
|
270
271
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
271
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu } = await import("./gpuPolicy-
|
|
272
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu } = await import("./gpuPolicy-KDI7HVOA.js");
|
|
272
273
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
273
274
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
274
275
|
const chromeBrowser = await launchManagedBrowser(puppeteer.default, {
|
|
@@ -328,6 +329,7 @@ async function validateInBrowser(project, opts) {
|
|
|
328
329
|
throw err;
|
|
329
330
|
}
|
|
330
331
|
await assertWebGpuAdapterAvailable(page, requiresWebGpu);
|
|
332
|
+
await waitForRuntimeReady(page, opts.timeout ?? 3e3);
|
|
331
333
|
await new Promise((r) => setTimeout(r, opts.timeout ?? 3e3));
|
|
332
334
|
for (const w of await auditClipDurations(page, analyzeClipMediaFit, opts.timeout ?? 3e3)) {
|
|
333
335
|
warnings.push(w);
|
|
@@ -2559,9 +2559,10 @@ function findAllTweenCalls(ast, ref, scope, targetBindings) {
|
|
|
2559
2559
|
return results;
|
|
2560
2560
|
}
|
|
2561
2561
|
var PERCENTAGE_KEY_RE = /^(\d+(?:\.\d+)?)%$/;
|
|
2562
|
-
function tryResolveStringProp(propValue, scope) {
|
|
2562
|
+
function tryResolveStringProp(propValue, scope, source) {
|
|
2563
2563
|
const val = resolveNode(propValue, scope);
|
|
2564
|
-
|
|
2564
|
+
if (typeof val === "string") return val;
|
|
2565
|
+
return source === void 0 ? void 0 : `__raw:${source.slice(propValue.start, propValue.end)}`;
|
|
2565
2566
|
}
|
|
2566
2567
|
function parsePercentageKeyframes(node, scope, source) {
|
|
2567
2568
|
const keyframes = [];
|
|
@@ -2588,9 +2589,9 @@ function parsePercentageKeyframes(node, scope, source) {
|
|
|
2588
2589
|
}
|
|
2589
2590
|
keyframes.push({ percentage, properties, ...kfEase ? { ease: kfEase } : {} });
|
|
2590
2591
|
} else if (key === "ease") {
|
|
2591
|
-
ease = tryResolveStringProp(prop.value, scope) ?? ease;
|
|
2592
|
+
ease = tryResolveStringProp(prop.value, scope, source) ?? ease;
|
|
2592
2593
|
} else if (key === "easeEach") {
|
|
2593
|
-
easeEach = tryResolveStringProp(prop.value, scope) ?? easeEach;
|
|
2594
|
+
easeEach = tryResolveStringProp(prop.value, scope, source) ?? easeEach;
|
|
2594
2595
|
}
|
|
2595
2596
|
}
|
|
2596
2597
|
keyframes.sort((a, b) => a.percentage - b.percentage);
|
|
@@ -3000,7 +3001,7 @@ function applyTimelineDefaults(anims, defaults) {
|
|
|
3000
3001
|
if (defaults.duration !== void 0) anim.duration = defaults.duration;
|
|
3001
3002
|
else if (defaults.durationUnresolved) anim.durationUnresolved = true;
|
|
3002
3003
|
}
|
|
3003
|
-
if (anim.ease === void 0 && defaults.ease !== void 0) {
|
|
3004
|
+
if (anim.ease === void 0 && defaults.ease !== void 0 && !anim.keyframes) {
|
|
3004
3005
|
anim.ease = defaults.ease;
|
|
3005
3006
|
}
|
|
3006
3007
|
}
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
VALID_CANVAS_RESOLUTIONS,
|
|
9
9
|
resolveResolutionFlagPair
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F7MXHGU3.js";
|
|
11
11
|
|
|
12
12
|
// src/utils/parseOutputResolution.ts
|
|
13
13
|
function parseOutputResolutionFlag(raw, options) {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
firstFrameColourArgs,
|
|
9
9
|
hdrToSdrToneMapFilter,
|
|
10
10
|
parseFirstFrameColour
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TLA5RBEB.js";
|
|
12
12
|
import {
|
|
13
13
|
mkdirWithinProject,
|
|
14
14
|
realProjectRoot,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isUnresolvedAssetPlaceholder,
|
|
22
22
|
maskNonScannableRanges,
|
|
23
23
|
resolveLocalAssetCandidates
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-N4RVOW43.js";
|
|
25
25
|
import {
|
|
26
26
|
findFfBinary
|
|
27
27
|
} from "./chunk-PJ3HDUCY.js";
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-24AS45UQ.js";
|
|
10
10
|
import {
|
|
11
11
|
injectTagsAtHeadStart
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-53IO4HLZ.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/compositionServer.ts
|
|
15
15
|
import { createHash } from "crypto";
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
iterateFontFamilyDeclarations,
|
|
13
13
|
normalizeSystemFontPrimaryFamilies,
|
|
14
14
|
resolveFontFamilyDeclarationFamilies
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NSY245QZ.js";
|
|
16
16
|
import {
|
|
17
17
|
EncoderInterruptedError,
|
|
18
18
|
encoderFailureError,
|
|
19
19
|
prepareAnimatedGifInputs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4TIUZ6Z7.js";
|
|
21
21
|
import {
|
|
22
22
|
createStudioPositionSeekReapplyScript
|
|
23
23
|
} from "./chunk-KC5XXX3X.js";
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
validateEngineConfigSnapshot,
|
|
146
146
|
verifyDiskDrawElementSamples,
|
|
147
147
|
writeCapturedFrame
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-WAD4ACBZ.js";
|
|
149
149
|
import {
|
|
150
150
|
HF_VFX_ATTR,
|
|
151
151
|
MEDIA_START_BASIS_ATTR,
|
|
@@ -163,7 +163,7 @@ import {
|
|
|
163
163
|
resolveAbsoluteMediaStartSeconds,
|
|
164
164
|
resolveAuthoredTimingWindow,
|
|
165
165
|
toFps
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-TLA5RBEB.js";
|
|
167
167
|
import {
|
|
168
168
|
CANVAS_DIMENSIONS,
|
|
169
169
|
HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
@@ -174,10 +174,11 @@ import {
|
|
|
174
174
|
isAspectAgnosticResolutionAlias,
|
|
175
175
|
normalizeResolutionFlag,
|
|
176
176
|
suggestMatchingPreset
|
|
177
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-F7MXHGU3.js";
|
|
178
178
|
import {
|
|
179
179
|
assignBundledRuntimeCompositionIds,
|
|
180
180
|
buildVariablesByCompScript,
|
|
181
|
+
deferScriptsUntilFonts,
|
|
181
182
|
emitMountedModuleScripts,
|
|
182
183
|
emitRootCompositionVariableStyles,
|
|
183
184
|
ensureExternalLinkTag,
|
|
@@ -187,7 +188,7 @@ import {
|
|
|
187
188
|
inlineSubCompositions,
|
|
188
189
|
prepareFlattenedInnerRoot,
|
|
189
190
|
styleElementsFor
|
|
190
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-RYP46ARK.js";
|
|
191
192
|
import {
|
|
192
193
|
HF_COLOR_GRADING_ATTR,
|
|
193
194
|
MAX_AUDIO_GAIN,
|
|
@@ -208,7 +209,7 @@ import {
|
|
|
208
209
|
resolveNaturalMediaTimelineDurationFromValues,
|
|
209
210
|
shouldClampResolvedMediaDuration,
|
|
210
211
|
sourceTimeAt
|
|
211
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-53IO4HLZ.js";
|
|
212
213
|
import {
|
|
213
214
|
chromeMajorCeiling
|
|
214
215
|
} from "./chunk-TWWSYAKJ.js";
|
|
@@ -217,7 +218,7 @@ import {
|
|
|
217
218
|
lintHyperframeHtml,
|
|
218
219
|
readProjectFile,
|
|
219
220
|
resolveProjectRelativeSrc
|
|
220
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-N4RVOW43.js";
|
|
221
222
|
import {
|
|
222
223
|
CSS_URL_RE,
|
|
223
224
|
checkSubCompositionUsability,
|
|
@@ -5392,6 +5393,11 @@ var INFERRED_MEDIA_DURATION_ATTR = "data-hf-inferred-duration";
|
|
|
5392
5393
|
function parseSubCompHtmlForValidity(html) {
|
|
5393
5394
|
return parseHTML(html).document;
|
|
5394
5395
|
}
|
|
5396
|
+
function deferBodyScriptsUntilFonts(html) {
|
|
5397
|
+
const { document: document2 } = parseHTML(html);
|
|
5398
|
+
deferScriptsUntilFonts(document2);
|
|
5399
|
+
return document2.toString();
|
|
5400
|
+
}
|
|
5395
5401
|
function injectSdkPositionEditsRenderScript(html) {
|
|
5396
5402
|
if (!html.includes("data-hf-edit-base-x") && !html.includes("data-hf-edit-base-y")) {
|
|
5397
5403
|
return html;
|
|
@@ -6524,9 +6530,11 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
6524
6530
|
"body",
|
|
6525
6531
|
`<script>${createStudioPositionSeekReapplyScript()}</script>`
|
|
6526
6532
|
) ?? assembledHtml : assembledHtml;
|
|
6527
|
-
const
|
|
6533
|
+
const htmlWithDeferredScripts = deferBodyScriptsUntilFonts(
|
|
6534
|
+
injectSdkPositionEditsRenderScript(htmlWithPositionScript)
|
|
6535
|
+
);
|
|
6528
6536
|
const { html: htmlWithLocalMedia, remoteMediaAssets } = await localizeRemoteMediaSources(
|
|
6529
|
-
|
|
6537
|
+
htmlWithDeferredScripts,
|
|
6530
6538
|
downloadDir
|
|
6531
6539
|
);
|
|
6532
6540
|
const { html: htmlWithLocalImages, remoteMediaAssets: remoteImageAssets } = await localizeRemoteImageSources(htmlWithLocalMedia, downloadDir);
|
|
@@ -14148,7 +14156,7 @@ function startServer(options = {}) {
|
|
|
14148
14156
|
});
|
|
14149
14157
|
async function shutdown(signal) {
|
|
14150
14158
|
log.info(`Received ${signal}, shutting down`);
|
|
14151
|
-
const { drainBrowserPool } = await import("./src-
|
|
14159
|
+
const { drainBrowserPool } = await import("./src-K6L2URKG.js");
|
|
14152
14160
|
await drainBrowserPool().catch(() => {
|
|
14153
14161
|
});
|
|
14154
14162
|
const handle = await Promise.race([
|
|
@@ -15271,7 +15279,7 @@ async function buildLocalExecutionPlan(projectDir, config, executionPlanDir, opt
|
|
|
15271
15279
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
15272
15280
|
if (probeResult.probeSession) {
|
|
15273
15281
|
try {
|
|
15274
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
15282
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-K6L2URKG.js");
|
|
15275
15283
|
await closeCaptureSession2(probeResult.probeSession);
|
|
15276
15284
|
} catch (err) {
|
|
15277
15285
|
log.warn("[plan] probe session close failed", {
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7NWNDQID.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-S3JOM6L4.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-N4RVOW43.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|
|
@@ -7,16 +7,16 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7NWNDQID.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-S3JOM6L4.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-ZTZA4UWZ.js";
|
|
17
17
|
import {
|
|
18
18
|
detectAgentRuntime
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ILOJE2TE.js";
|
|
20
20
|
import {
|
|
21
21
|
readConfig,
|
|
22
22
|
writeConfig
|
|
@@ -83,7 +83,7 @@ async function maybePromptRenderFeedback(opts) {
|
|
|
83
83
|
async function getDoctorSummary() {
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
|
-
import("./system-
|
|
86
|
+
import("./system-M44QRAAZ.js"),
|
|
87
87
|
import("./ffmpeg-QIUFEFTY.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
@@ -7534,11 +7534,11 @@ function deriveDurationFromClips(tags, rootTag) {
|
|
|
7534
7534
|
return resolveCompositionDuration({ authoredDurationSeconds: null, clipEndsSeconds: clipEnds });
|
|
7535
7535
|
}
|
|
7536
7536
|
async function loadParseGsapScript() {
|
|
7537
|
-
const mod = await import("./gsapParserAcorn-
|
|
7537
|
+
const mod = await import("./gsapParserAcorn-3Z742FXU.js");
|
|
7538
7538
|
return mod.parseGsapScriptAcorn;
|
|
7539
7539
|
}
|
|
7540
7540
|
async function loadGsapScriptMotionPathFirstUseIndex() {
|
|
7541
|
-
const mod = await import("./gsapParserAcorn-
|
|
7541
|
+
const mod = await import("./gsapParserAcorn-3Z742FXU.js");
|
|
7542
7542
|
return mod.gsapScriptMotionPathFirstUseIndex;
|
|
7543
7543
|
}
|
|
7544
7544
|
var SCENE_BOUNDARY_EPSILON_SECONDS = 0.05;
|
|
@@ -1200,9 +1200,10 @@ function findAllTweenCalls(ast, ref, scope, targetBindings) {
|
|
|
1200
1200
|
return results;
|
|
1201
1201
|
}
|
|
1202
1202
|
var PERCENTAGE_KEY_RE = /^(\d+(?:\.\d+)?)%$/;
|
|
1203
|
-
function tryResolveStringProp(propValue, scope) {
|
|
1203
|
+
function tryResolveStringProp(propValue, scope, source) {
|
|
1204
1204
|
const val = resolveNode(propValue, scope);
|
|
1205
|
-
|
|
1205
|
+
if (typeof val === "string") return val;
|
|
1206
|
+
return source === void 0 ? void 0 : `__raw:${source.slice(propValue.start, propValue.end)}`;
|
|
1206
1207
|
}
|
|
1207
1208
|
function parsePercentageKeyframes(node, scope, source) {
|
|
1208
1209
|
const keyframes = [];
|
|
@@ -1229,9 +1230,9 @@ function parsePercentageKeyframes(node, scope, source) {
|
|
|
1229
1230
|
}
|
|
1230
1231
|
keyframes.push({ percentage, properties, ...kfEase ? { ease: kfEase } : {} });
|
|
1231
1232
|
} else if (key === "ease") {
|
|
1232
|
-
ease = tryResolveStringProp(prop.value, scope) ?? ease;
|
|
1233
|
+
ease = tryResolveStringProp(prop.value, scope, source) ?? ease;
|
|
1233
1234
|
} else if (key === "easeEach") {
|
|
1234
|
-
easeEach = tryResolveStringProp(prop.value, scope) ?? easeEach;
|
|
1235
|
+
easeEach = tryResolveStringProp(prop.value, scope, source) ?? easeEach;
|
|
1235
1236
|
}
|
|
1236
1237
|
}
|
|
1237
1238
|
keyframes.sort((a, b) => a.percentage - b.percentage);
|
|
@@ -1641,7 +1642,7 @@ function applyTimelineDefaults(anims, defaults) {
|
|
|
1641
1642
|
if (defaults.duration !== void 0) anim.duration = defaults.duration;
|
|
1642
1643
|
else if (defaults.durationUnresolved) anim.durationUnresolved = true;
|
|
1643
1644
|
}
|
|
1644
|
-
if (anim.ease === void 0 && defaults.ease !== void 0) {
|
|
1645
|
+
if (anim.ease === void 0 && defaults.ease !== void 0 && !anim.keyframes) {
|
|
1645
1646
|
anim.ease = defaults.ease;
|
|
1646
1647
|
}
|
|
1647
1648
|
}
|
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
isAllowedHtmlAttribute,
|
|
9
9
|
isSafeAttributeValue,
|
|
10
10
|
sanitizeRichTextChildren
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TLA5RBEB.js";
|
|
12
12
|
import {
|
|
13
13
|
removeElementWithGsapCascade
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-F7MXHGU3.js";
|
|
15
15
|
import {
|
|
16
16
|
EXCLUDED_TAGS,
|
|
17
17
|
ensureHfIds,
|
|
18
18
|
mintHfId,
|
|
19
19
|
walkCompositionDescendants
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-RYP46ARK.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-N4RVOW43.js";
|
|
24
24
|
import {
|
|
25
25
|
readClipTiming,
|
|
26
26
|
readMediaOffsetSeconds,
|