hyperframes 0.8.193 → 0.8.194
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-JC6DKZKC.js → add-47UAIWY4.js} +12 -12
- package/dist/{animatedGifPrep-S6KXJGEL.js → animatedGifPrep-TFSQZWK6.js} +8 -7
- package/dist/api.js +18 -17
- package/dist/{asset-XITFIFE6.js → asset-AU7PZHXA.js} +2 -2
- package/dist/{assetCataloger-K5FNKG35.js → assetCataloger-HC5N6WPT.js} +8 -7
- package/dist/{audio-364UHTY4.js → audio-7AWMZWBM.js} +14 -13
- package/dist/{auth-5JEESRE6.js → auth-GXH3QNDJ.js} +1 -1
- package/dist/{autoUpdate-RVVYEHAA.js → autoUpdate-GVGP5O2I.js} +2 -2
- package/dist/{backgroundChecks-DCBIYWIQ.js → backgroundChecks-IUJM2Q35.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-ZZ4QMBAA.js → batchRender-3XS2Y2Y4.js} +4 -4
- package/dist/{beats-YEL65M6G.js → beats-U64B4S7Z.js} +9 -9
- package/dist/{benchmark-RBTRPA76.js → benchmark-2YUPAI76.js} +9 -9
- package/dist/{browser-BVAYXT4R.js → browser-DBFH7KXM.js} +5 -5
- package/dist/{bundleWithLocalizedFonts-JLB2OYMT.js → bundleWithLocalizedFonts-XWL7KSQJ.js} +2 -2
- package/dist/{capture-NIFX6IRS.js → capture-E4VW75NM.js} +2 -2
- package/dist/{capture-GBXTMYLZ.js → capture-YWH7BPBI.js} +13 -12
- package/dist/{captureCompositionFrame-ATNNKUL5.js → captureCompositionFrame-IG6S2OHG.js} +13 -12
- package/dist/{catalog-AGIF5SM5.js → catalog-LZIZLZ34.js} +12 -12
- package/dist/{catch-up-SZ3ULDTI.js → catch-up-ZVNPIACY.js} +4 -4
- package/dist/{check-YLQS3TF4.js → check-EKEOD4UM.js} +38 -37
- package/dist/{checkBrowser-QH4FMCBO.js → checkBrowser-MYH6HPHH.js} +33 -32
- package/dist/{chunk-ZT45TCY3.js → chunk-2AJU7PZ6.js} +1 -1
- package/dist/chunk-2D5WP2NI.js +3901 -0
- package/dist/{chunk-FBVUAH7N.js → chunk-2OYYNKJ4.js} +1 -1
- package/dist/{chunk-DSQ72G5I.js → chunk-37IHQVNQ.js} +1 -1
- package/dist/{chunk-AR3DQYRR.js → chunk-3OSBSUN3.js} +18 -18
- package/dist/{chunk-2SFDWMSW.js → chunk-3S3CXF4W.js} +2 -2
- package/dist/{chunk-TY3LDJA3.js → chunk-452UK7E7.js} +2 -2
- package/dist/{chunk-OFYW4J7Y.js → chunk-4FVNEXSV.js} +3 -3
- package/dist/{chunk-CGTZOY53.js → chunk-4GMDL4N5.js} +1 -1
- package/dist/{chunk-4PPWAQYV.js → chunk-4PIPQPCW.js} +7 -7
- package/dist/{chunk-BP4EMEGH.js → chunk-4VSV56F2.js} +2 -2
- package/dist/{chunk-L4JB7LI4.js → chunk-52YJKWV3.js} +67 -60
- package/dist/{chunk-ZZPBXRYQ.js → chunk-54PZ2EQZ.js} +1 -1
- package/dist/{chunk-6XUJVEY2.js → chunk-B3GG3HJB.js} +1 -1
- package/dist/{chunk-2MCXIY4B.js → chunk-B7RJV74O.js} +28 -11
- package/dist/{chunk-MFUNDJEV.js → chunk-BK5YCT54.js} +3 -3
- package/dist/{chunk-RWGASWT7.js → chunk-BL4U6U52.js} +1 -0
- package/dist/{chunk-QKX7ITER.js → chunk-BYADARIC.js} +2 -2
- package/dist/{chunk-WIVOXGEP.js → chunk-CEUBYYVJ.js} +2 -2
- package/dist/{chunk-UIC7B5KW.js → chunk-CEZH4AQT.js} +12 -2
- package/dist/{chunk-BY6OQ6XP.js → chunk-CZNSLFYD.js} +3 -1
- package/dist/{chunk-E77ALFLW.js → chunk-DT3JESJ6.js} +1 -1
- package/dist/{chunk-ZTKFRXJB.js → chunk-DVQDBWQG.js} +4 -4
- package/dist/{chunk-L5YLA54L.js → chunk-EB3XXHNO.js} +2 -2
- package/dist/{chunk-LFUVTS6V.js → chunk-EY7GKVPS.js} +2 -2
- package/dist/{chunk-KU3UFQN7.js → chunk-F2ASNL2K.js} +1 -1
- package/dist/{chunk-ZH7J2ZUL.js → chunk-F3B7CE3Q.js} +14 -14
- package/dist/{chunk-E3P3LJG6.js → chunk-FLREUEHW.js} +28 -11
- package/dist/{chunk-VW63MHQU.js → chunk-FUA22HO4.js} +1 -1
- package/dist/{chunk-3W4B6G7Y.js → chunk-GAFEU6AB.js} +13 -10
- package/dist/{chunk-DIKAPMMF.js → chunk-GQVTTWZF.js} +144 -39
- package/dist/{chunk-2LSCYS2H.js → chunk-HCLBM2LQ.js} +2 -2
- package/dist/{chunk-GR5DQKDR.js → chunk-HG5ECUOR.js} +5 -5
- package/dist/{chunk-2NERNYCJ.js → chunk-HPGQPRHY.js} +3 -3
- package/dist/{chunk-SOY2FPOR.js → chunk-HQD7ODQB.js} +5 -5
- package/dist/{chunk-XQPA4W3M.js → chunk-JU4T4VAA.js} +4 -4
- package/dist/{chunk-7HTH5PFK.js → chunk-JVTWX5G3.js} +33 -8
- package/dist/{chunk-UNATIAOT.js → chunk-JXTPNUSO.js} +83 -51
- package/dist/{chunk-2VXY3PEF.js → chunk-K2VXPQKC.js} +107 -94
- package/dist/chunk-K4MJX7SR.js +17 -0
- package/dist/{chunk-BJAS2JLW.js → chunk-KDEV5RIE.js} +7 -3
- package/dist/{chunk-WFS6S65A.js → chunk-LMIDZIW2.js} +12 -12
- package/dist/{chunk-5J6TWLFG.js → chunk-LOGKDQ3G.js} +3 -3
- package/dist/{chunk-IW5G323T.js → chunk-LTGTN2TH.js} +8 -9
- package/dist/{chunk-F5LLORBP.js → chunk-LZ4WPR3B.js} +2 -2
- package/dist/{chunk-7QNIXBQD.js → chunk-M2VXARYK.js} +3 -2
- package/dist/{chunk-7YSFE4SZ.js → chunk-MCFPMUMT.js} +2 -2
- package/dist/{chunk-YS4JUGNI.js → chunk-MGSNFWGR.js} +2 -2
- package/dist/{chunk-V7ZA2BNW.js → chunk-MO6RTNYD.js} +1 -1
- package/dist/{chunk-OFV3WSOE.js → chunk-N33FO44R.js} +1 -1
- package/dist/{chunk-GKHMSSGY.js → chunk-N3M3IU6S.js} +1 -1
- package/dist/{chunk-6LWUPIKD.js → chunk-NVVIFW3C.js} +10 -10
- package/dist/{chunk-4LXZJIVY.js → chunk-O2ILONGK.js} +10 -10
- package/dist/{chunk-C4Y3ZREE.js → chunk-OJNNKHAZ.js} +75 -22
- package/dist/{chunk-UB7BIDBS.js → chunk-PEHST4UY.js} +3 -3
- package/dist/{chunk-RTLPWOO6.js → chunk-POFJH2IS.js} +1 -1
- package/dist/{chunk-7YKJF5JV.js → chunk-PXK3ICU6.js} +1 -1
- package/dist/{chunk-M3KZBDPB.js → chunk-Q4HKC3O7.js} +3 -3
- package/dist/{chunk-X5CECNCK.js → chunk-QJQTWTM7.js} +8 -3
- package/dist/{chunk-QFPBRZJD.js → chunk-ROEW726S.js} +1 -1
- package/dist/{chunk-D625D4TV.js → chunk-RUPGFW5B.js} +6 -6
- package/dist/{chunk-EFXMETRK.js → chunk-RZWJJCI7.js} +2 -2
- package/dist/{chunk-TZEKVLPV.js → chunk-SNECH6QA.js} +1 -1
- package/dist/{chunk-REUL2KH2.js → chunk-ST35C4K6.js} +1 -1
- package/dist/{chunk-LMNZLZMJ.js → chunk-ST4SHO3S.js} +1 -1
- package/dist/{chunk-6DLCOQR4.js → chunk-TDYKVJTU.js} +119 -34
- package/dist/{chunk-4TKJWWPL.js → chunk-VHIBBDEI.js} +1 -1
- package/dist/{chunk-VPC4XIVI.js → chunk-VPON6DF2.js} +5 -5
- package/dist/{chunk-DYNHVCBF.js → chunk-XYGULBFV.js} +2 -2
- package/dist/{chunk-VLLFORE2.js → chunk-Y3BT27Y7.js} +1 -1
- package/dist/{clean-5HGESK5A.js → clean-NS2SDRK7.js} +21 -20
- package/dist/cli.js +53 -53
- package/dist/{cloud-746PHS32.js → cloud-K4XQPWTY.js} +4 -4
- package/dist/{cloudrun-DO7WFLSM.js → cloudrun-BKOKXTXV.js} +6 -6
- package/dist/{compare-66YPRNG2.js → compare-ZAV773OL.js} +31 -30
- package/dist/{compiler-R4UYDWXO.js → compiler-CWHFCE3H.js} +5 -5
- package/dist/{component-EQ3H6RFP.js → component-OXA2ZWX3.js} +3 -3
- package/dist/{compositions-ZZ7P5HT2.js → compositions-NKRVWCPE.js} +12 -11
- package/dist/{contactSheet-SZBJDOMT.js → contactSheet-5APX35L3.js} +1 -1
- package/dist/{delete-Z5MSLJSR.js → delete-HZ2LBCLC.js} +2 -2
- package/dist/{deploy-RGSAC2K5.js → deploy-FNDTZFF7.js} +1 -1
- package/dist/{deterministicFonts-RO2TCMLZ.js → deterministicFonts-RADD3BSX.js} +2 -2
- package/dist/{dist-RKK4YLAD.js → dist-2YTN2UGY.js} +3 -3
- package/dist/{dist-QQ26RUDV.js → dist-7OCZHNLY.js} +1 -1
- package/dist/{doctor-W4ZZDRTU.js → doctor-6QWJGO5P.js} +14 -13
- package/dist/{events-UACT7PX3.js → events-HTHOBIUN.js} +3 -3
- package/dist/{events-BSSL4A4W.js → events-MBKHVGXX.js} +2 -2
- package/dist/{feedback-47ILDLQG.js → feedback-X5QWTLEX.js} +8 -8
- package/dist/{ffmpeg-IEHSUNUT.js → ffmpeg-7GESJCCT.js} +9 -8
- package/dist/{figma-PLFIIYRU.js → figma-SXOHFVJI.js} +3 -3
- package/dist/fontLocalizeCli.js +11 -10
- package/dist/{get-PDWGJYNL.js → get-T2HI5FCK.js} +2 -2
- package/dist/{gpuPolicy-6UBXO6ME.js → gpuPolicy-5FABKW5G.js} +8 -7
- package/dist/{grade-compare-5VWLQGM7.js → grade-compare-JATGHA6Q.js} +37 -35
- package/dist/{gsapParser-UP3PNPC2.js → gsapParser-IEUSLYDJ.js} +11 -11
- package/dist/{gsapParserAcorn-OOTY2MVN.js → gsapParserAcorn-LZJKCFQI.js} +1 -1
- package/dist/{help-DS3KMWYO.js → help-G6CIKCGS.js} +1 -1
- package/dist/{history-OC326NVZ.js → history-CSJUHYTD.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +69 -63
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +1 -1
- package/dist/{info-AUIFV6MX.js → info-MTTUMW2C.js} +8 -8
- package/dist/{init-MRTWWDFW.js → init-LJYNI5EK.js} +30 -29
- package/dist/{inspect-55NOAXI2.js → inspect-HGDM2VJE.js} +31 -30
- package/dist/{installer-YSFFGBBV.js → installer-3XHURUDG.js} +5 -5
- package/dist/{keyframes-OO2BX2IB.js → keyframes-MSU7N53X.js} +59 -33
- package/dist/{lambda-CXXY6QT3.js → lambda-2I2TIUSD.js} +8 -8
- package/dist/{layout-57GJXKDK.js → layout-KWOXZMN7.js} +31 -30
- package/dist/{lint-J4FK3Z6G.js → lint-N53TLHFG.js} +7 -7
- package/dist/{lintProject-52SLJPRC.js → lintProject-EOUZA4EG.js} +1 -1
- package/dist/{list-VDQUJ76B.js → list-SHYPQC7U.js} +2 -2
- package/dist/{login-TJSEALWW.js → login-TEB6PA3Y.js} +4 -4
- package/dist/{manager-MZIJY73J.js → manager-COSJVRAE.js} +2 -2
- package/dist/{manager-4PLYEEWP.js → manager-PLRSZH5G.js} +10 -9
- package/dist/{media-treatment-GXP4PMJH.js → media-treatment-XTUKMIGE.js} +15 -14
- package/dist/{models-HQQQKEEP.js → models-4WKAPP2L.js} +14 -13
- package/dist/{motionShot-2BT5D7DC.js → motionShot-PTKB4ILH.js} +17 -16
- package/dist/{normalize-audio-SOLFMHNP.js → normalize-audio-3NG326I2.js} +6 -6
- package/dist/{open-KHEUODFQ.js → open-6S2LMF7R.js} +12 -12
- package/dist/{parakeetRunner-BHU5NCAX.js → parakeetRunner-OEI35DVO.js} +15 -14
- package/dist/{pipeline-WFV5HDTD.js → pipeline-543FUKH4.js} +10 -9
- package/dist/{play-GB34CANJ.js → play-ETEGHP3B.js} +21 -21
- package/dist/{preflight-REF3VSJ7.js → preflight-Y5IYUF2T.js} +11 -10
- package/dist/{present-SIUTA7TD.js → present-ZRSLMJ6J.js} +17 -17
- package/dist/{preview-T2GE7Z4A.js → preview-CEJ3SVTY.js} +100 -65
- package/dist/{producer-23KVQZAB.js → producer-JFVFIV26.js} +1 -1
- package/dist/{projectConfig-DBSNBPNP.js → projectConfig-7EK3BS72.js} +7 -7
- package/dist/{publication-IXPUKYWJ.js → publication-Y54GYFMV.js} +3 -3
- package/dist/{publish-3BA5VHXJ.js → publish-S3UJTPCV.js} +10 -10
- package/dist/{remove-background-RMSCJVVQ.js → remove-background-YTATNQSI.js} +11 -10
- package/dist/{render-XGOZMMWX.js → render-IIPXMSBO.js} +35 -34
- package/dist/{render-6RNE2MLU.js → render-RN3W6YL4.js} +17 -16
- package/dist/{render-Y6CTQ3YW.js → render-WNIG4B3J.js} +6 -6
- package/dist/{render-batch-VUR6N6EY.js → render-batch-OYS3UQDB.js} +6 -6
- package/dist/renderSetupWorker.js +42 -4
- package/dist/{resolver-GJCUH57W.js → resolver-OVCXVEDX.js} +5 -5
- package/dist/{sherpa-VVAKRCPL.js → sherpa-NCSFD7S3.js} +14 -13
- package/dist/skills/media-use/scripts/lib/duck.mjs +18 -2
- package/dist/skills/media-use/scripts/lib/duck.test.mjs +79 -0
- package/dist/{skills-ZHBURVQG.js → skills-IUV3K3X7.js} +5 -5
- package/dist/{skillsUpdateCheck-VMDAL2O2.js → skillsUpdateCheck-NACBXMWW.js} +3 -3
- package/dist/{snapshot-KEOG56SL.js → snapshot-7S5USJ2I.js} +39 -38
- package/dist/{src-TZLGFRRX.js → src-CAR6PHI4.js} +10 -9
- package/dist/{src-BH5NICGQ.js → src-HITT6NWG.js} +9 -6
- package/dist/{staticProjectServer-BKXL5CXB.js → staticProjectServer-QR6VZBPT.js} +18 -18
- package/dist/studio/assets/{hyperframes-player-BMcUdmDb.js → hyperframes-player-DLOUZUct.js} +1 -1
- package/dist/studio/assets/{index-Ca-mgTnS.js → index-CAQ7OcNJ.js} +163 -163
- package/dist/studio/assets/{index-Ci6GuloR.js → index-D9kA6JUX.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-A5U6QAMC.js → studio-api-HVNOJILH.js} +11 -11
- package/dist/{studioServer-5EC5CP4W.js → studioServer-3BG5FRJL.js} +53 -52
- package/dist/{telemetry-BCKJXDSW.js → telemetry-PET2GFQG.js} +3 -3
- package/dist/{timeline-AZWAXTAY.js → timeline-PVIC2Z5K.js} +20 -19
- package/dist/{tokens-X7NC3V7C.js → tokens-4N46PWSF.js} +2 -2
- package/dist/{transcribe-SH26H755.js → transcribe-2DVBS7MH.js} +19 -18
- package/dist/{transcribe-7NCY7QZ2.js → transcribe-IDC7JTM4.js} +13 -12
- package/dist/{updateCheck-Y7FUWQM4.js → updateCheck-QRDVXU7I.js} +2 -2
- package/dist/{upgrade-ZHGEVL65.js → upgrade-5CNE3TBH.js} +2 -2
- package/dist/{urlDownloader-FPILIT7M.js → urlDownloader-P2I25DFC.js} +7 -6
- package/dist/{validate-KQOZR4F6.js → validate-CLR5PEOV.js} +25 -24
- package/dist/{video-N2QAETFB.js → video-3CKZZBOB.js} +8 -7
- package/dist/warmCheck.js +38 -37
- package/package.json +1 -1
- package/dist/chunk-USWPZXEA.js +0 -3897
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parseStrictFiniteTimingNumber,
|
|
10
10
|
resolveNaturalMediaTimelineDuration,
|
|
11
11
|
resolveTimedImageDurationSeconds
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2D5WP2NI.js";
|
|
13
13
|
import {
|
|
14
14
|
CANVAS_DIMENSIONS,
|
|
15
15
|
isCompositionElement,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
isTextElement,
|
|
18
18
|
keyframesToGsapAnimations,
|
|
19
19
|
serializeGsapAnimations
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-B7RJV74O.js";
|
|
21
21
|
import {
|
|
22
22
|
COMPOSITION_ATTRIBUTES,
|
|
23
23
|
MEDIA_START_BASIS_ATTR,
|
|
@@ -152,12 +152,27 @@ function getStageStyles(resolution = "portrait") {
|
|
|
152
152
|
|
|
153
153
|
// ../core/dist/gsapCdn.js
|
|
154
154
|
var GSAP_CDN_VERSION = "3.15.0";
|
|
155
|
-
|
|
155
|
+
var GSAP_CDN_BASE_URL = "https://cdn.jsdelivr.net/npm";
|
|
156
|
+
var GSAP_BASE_URL_META = "hyperframes-gsap-base-url";
|
|
157
|
+
function normalizeGsapBaseUrl(baseUrl) {
|
|
158
|
+
const value = baseUrl?.trim();
|
|
159
|
+
if (!value)
|
|
160
|
+
return GSAP_CDN_BASE_URL;
|
|
161
|
+
if (!/^https?:\/\//i.test(value) || !URL.canParse(value) || /[?#]/.test(value)) {
|
|
162
|
+
throw new Error("GSAP base URL must be an absolute HTTP(S) URL without a query or fragment");
|
|
163
|
+
}
|
|
164
|
+
const url = new URL(value);
|
|
165
|
+
if (url.username || url.password) {
|
|
166
|
+
throw new Error("GSAP base URL must not contain credentials");
|
|
167
|
+
}
|
|
168
|
+
return url.href.replace(/\/+$/, "");
|
|
169
|
+
}
|
|
170
|
+
function gsapCdnDist(gsapVersion, baseUrl) {
|
|
156
171
|
const version = gsapVersion && /^\d+(\.\d+)*$/.test(gsapVersion) ? gsapVersion : GSAP_CDN_VERSION;
|
|
157
|
-
return
|
|
172
|
+
return `${normalizeGsapBaseUrl(baseUrl)}/gsap@${version}/dist/`;
|
|
158
173
|
}
|
|
159
|
-
function motionPathPluginUrl(gsapVersion) {
|
|
160
|
-
return `${gsapCdnDist(gsapVersion)}MotionPathPlugin.min.js`;
|
|
174
|
+
function motionPathPluginUrl(gsapVersion, baseUrl) {
|
|
175
|
+
return `${gsapCdnDist(gsapVersion, baseUrl)}MotionPathPlugin.min.js`;
|
|
161
176
|
}
|
|
162
177
|
|
|
163
178
|
// ../core/dist/templates/constants.js
|
|
@@ -4444,7 +4459,15 @@ function createRuntimeStartTimeResolver(params) {
|
|
|
4444
4459
|
const startCache = /* @__PURE__ */ new WeakMap();
|
|
4445
4460
|
const durationCache = /* @__PURE__ */ new WeakMap();
|
|
4446
4461
|
const visiting = /* @__PURE__ */ new Set();
|
|
4447
|
-
const
|
|
4462
|
+
const compositionScopeOf = (element) => (element.hasAttribute("data-composition-id") ? element.parentElement : element)?.closest("[data-composition-id]") ?? null;
|
|
4463
|
+
const findReferenceTarget = (refId, from) => {
|
|
4464
|
+
const scope = compositionScopeOf(from);
|
|
4465
|
+
if (scope) {
|
|
4466
|
+
for (const candidate of scope.querySelectorAll(`[id="${refId}"]`)) {
|
|
4467
|
+
if (compositionScopeOf(candidate) === scope)
|
|
4468
|
+
return candidate;
|
|
4469
|
+
}
|
|
4470
|
+
}
|
|
4448
4471
|
const byId = doc.getElementById(refId);
|
|
4449
4472
|
if (byId)
|
|
4450
4473
|
return byId;
|
|
@@ -4496,7 +4519,7 @@ function createRuntimeStartTimeResolver(params) {
|
|
|
4496
4519
|
if (expression.kind === "absolute") {
|
|
4497
4520
|
return resolveHostOffsetForElement(element, fallback) + Math.max(0, expression.value);
|
|
4498
4521
|
}
|
|
4499
|
-
const target = findReferenceTarget(expression.refId);
|
|
4522
|
+
const target = findReferenceTarget(expression.refId, element);
|
|
4500
4523
|
if (!target)
|
|
4501
4524
|
return fallback;
|
|
4502
4525
|
const targetStart = resolveStartForElementInternal(target, 0);
|
|
@@ -5530,6 +5553,8 @@ export {
|
|
|
5530
5553
|
isDistributedFps,
|
|
5531
5554
|
generateBaseHtml,
|
|
5532
5555
|
getStageStyles,
|
|
5556
|
+
GSAP_BASE_URL_META,
|
|
5557
|
+
normalizeGsapBaseUrl,
|
|
5533
5558
|
gsapCdnDist,
|
|
5534
5559
|
motionPathPluginUrl,
|
|
5535
5560
|
GSAP_CDN,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JU4T4VAA.js";
|
|
23
23
|
import {
|
|
24
24
|
MEDIA_LINK_ATTR,
|
|
25
25
|
relinkSplitHalves
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
requestedProjectPath,
|
|
33
33
|
requiredFfmpeg,
|
|
34
34
|
resolveLocalAudioPath
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2OYYNKJ4.js";
|
|
36
36
|
import {
|
|
37
37
|
HistoryBusyError,
|
|
38
38
|
MAX_WINDOW_IDLE_MS,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
resolveProjectAndSignature,
|
|
47
47
|
resolveProjectSignature,
|
|
48
48
|
settledFileTag
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-OJNNKHAZ.js";
|
|
50
50
|
import {
|
|
51
51
|
PROXY_PARAMS_VERSION,
|
|
52
52
|
PROXY_PENDING_RETRY_AFTER_SECONDS,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
scanProjectMediaCodecMap,
|
|
69
69
|
shouldPrewarmProxy,
|
|
70
70
|
waitForProxy
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-MCFPMUMT.js";
|
|
72
72
|
import {
|
|
73
73
|
STUDIO_MOTION_PATH,
|
|
74
74
|
createStudioMotionRenderBodyScript,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
import {
|
|
84
84
|
findTimelineScript,
|
|
85
85
|
parseGsapScriptAcorn
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-FLREUEHW.js";
|
|
87
87
|
import {
|
|
88
88
|
atomicTempPath,
|
|
89
89
|
createFileAtomically,
|
|
@@ -102,19 +102,21 @@ import {
|
|
|
102
102
|
locateSystemFont
|
|
103
103
|
} from "./chunk-7FMUTGOH.js";
|
|
104
104
|
import {
|
|
105
|
+
GSAP_BASE_URL_META,
|
|
105
106
|
PREVIEW_PROXY_BOX_PARAM,
|
|
106
107
|
formatPreviewProxyBox,
|
|
107
108
|
formatRenderOutputTimestamp,
|
|
108
109
|
gsapCdnDist,
|
|
109
110
|
motionPathPluginUrl,
|
|
111
|
+
normalizeGsapBaseUrl,
|
|
110
112
|
parseFps,
|
|
111
113
|
parsePreviewProxyBox
|
|
112
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-JVTWX5G3.js";
|
|
113
115
|
import {
|
|
114
116
|
addScenePartsManifest,
|
|
115
117
|
ensureHfIds,
|
|
116
118
|
stampHfIdsInPlace
|
|
117
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-GAFEU6AB.js";
|
|
118
120
|
import {
|
|
119
121
|
AFTER_FONTS_SCRIPT_TYPE,
|
|
120
122
|
RUNTIME_BOOTSTRAP_ATTR,
|
|
@@ -128,7 +130,7 @@ import {
|
|
|
128
130
|
resolveRateSpec,
|
|
129
131
|
sourceTimeAt,
|
|
130
132
|
stripEmbeddedRuntimeScripts
|
|
131
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-2D5WP2NI.js";
|
|
132
134
|
import {
|
|
133
135
|
HTML_ATTRIBUTE_ENTITIES,
|
|
134
136
|
MagicString,
|
|
@@ -136,7 +138,7 @@ import {
|
|
|
136
138
|
decodeAuthoredAttribute,
|
|
137
139
|
scanHtmlOpeningTags,
|
|
138
140
|
unrollComputedTimeline
|
|
139
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-B7RJV74O.js";
|
|
140
142
|
import {
|
|
141
143
|
ProjectRootMissingError,
|
|
142
144
|
folderGone,
|
|
@@ -559,6 +561,16 @@ function mergePercentageKeyframes(keyframes) {
|
|
|
559
561
|
}
|
|
560
562
|
return [...byPercentage.values()].sort((a, b) => a.percentage - b.percentage);
|
|
561
563
|
}
|
|
564
|
+
function distributeArrayKeyframes(channels) {
|
|
565
|
+
return mergePercentageKeyframes(
|
|
566
|
+
[...channels].flatMap(
|
|
567
|
+
([key, values]) => values.map((value, index) => ({
|
|
568
|
+
percentage: values.length > 1 ? Math.round(index / (values.length - 1) * 100) : 0,
|
|
569
|
+
properties: { [key]: value }
|
|
570
|
+
}))
|
|
571
|
+
)
|
|
572
|
+
);
|
|
573
|
+
}
|
|
562
574
|
function buildArcPath(coords, curviness, autoRotate, isCubic) {
|
|
563
575
|
const first = coords[0];
|
|
564
576
|
if (coords.length < 2 || !first) return void 0;
|
|
@@ -1419,19 +1431,9 @@ function parseSimpleArrayKeyframes(node, scope) {
|
|
|
1419
1431
|
easeEach = tryResolveStringProp(prop.value, scope) ?? easeEach;
|
|
1420
1432
|
}
|
|
1421
1433
|
}
|
|
1422
|
-
const maxLen = Math.max(...[...arrayProps.values()].map((a) => a.length), 0);
|
|
1423
|
-
const keyframes = [];
|
|
1424
|
-
for (let i = 0; i < maxLen; i++) {
|
|
1425
|
-
const percentage = maxLen > 1 ? Math.round(i / (maxLen - 1) * 100) : 0;
|
|
1426
|
-
const properties = {};
|
|
1427
|
-
for (const [key, values] of arrayProps) {
|
|
1428
|
-
if (i < values.length) properties[key] = values[i];
|
|
1429
|
-
}
|
|
1430
|
-
keyframes.push({ percentage, properties });
|
|
1431
|
-
}
|
|
1432
1434
|
return {
|
|
1433
1435
|
format: "simple-array",
|
|
1434
|
-
keyframes,
|
|
1436
|
+
keyframes: distributeArrayKeyframes(arrayProps),
|
|
1435
1437
|
...ease ? { ease } : {},
|
|
1436
1438
|
...easeEach ? { easeEach } : {}
|
|
1437
1439
|
};
|
|
@@ -3875,7 +3877,7 @@ function tagRootCompositionFile(bodyHtml, compPath) {
|
|
|
3875
3877
|
function rootHeadContent(rootHtml) {
|
|
3876
3878
|
return rootHtml.match(/<head[^>]*>([\s\S]*?)<\/head>/i)?.[1] ?? "";
|
|
3877
3879
|
}
|
|
3878
|
-
function buildSubCompositionHtml(projectDir, compPath, runtimeUrl, baseHref, rawOverride) {
|
|
3880
|
+
function buildSubCompositionHtml(projectDir, compPath, runtimeUrl, baseHref, rawOverride, gsapBaseUrl) {
|
|
3879
3881
|
const compFile = join22(projectDir, compPath);
|
|
3880
3882
|
if (!existsSync(compFile)) return null;
|
|
3881
3883
|
const rawComp = rawOverride ?? readFileSync3(compFile, "utf-8");
|
|
@@ -3927,7 +3929,7 @@ ${compHeadContent}`;
|
|
|
3927
3929
|
<script ${RUNTIME_BOOTSTRAP_ATTR}="1" src="${runtimeUrl}"></script>`;
|
|
3928
3930
|
if (!headContent.includes("gsap")) {
|
|
3929
3931
|
headContent += `
|
|
3930
|
-
<script src="${gsapCdnDist()}gsap.min.js"></script>`;
|
|
3932
|
+
<script src="${gsapCdnDist(void 0, gsapBaseUrl).replace(/&/g, "&")}gsap.min.js"></script>`;
|
|
3931
3933
|
}
|
|
3932
3934
|
const htmlOpen = htmlAttrs ? `<html ${htmlAttrs}>` : "<html>";
|
|
3933
3935
|
const bodyOpen = bodyAttrs ? `<body ${bodyAttrs}>` : "<body>";
|
|
@@ -4641,7 +4643,7 @@ function resolveGsapWriter(env) {
|
|
|
4641
4643
|
throw new Error(`Invalid ${GSAP_WRITER_MIGRATION.flag}=${configured}; expected recast or acorn`);
|
|
4642
4644
|
}
|
|
4643
4645
|
async function loadGsapParser() {
|
|
4644
|
-
return import("./gsapParser-
|
|
4646
|
+
return import("./gsapParser-IEUSLYDJ.js");
|
|
4645
4647
|
}
|
|
4646
4648
|
function isDanglingSymlinkInProject(projectDir, lexicalPath) {
|
|
4647
4649
|
if (!isSafePath(projectDir, dirname3(lexicalPath))) return false;
|
|
@@ -5500,7 +5502,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5500
5502
|
let block = extractGsapScriptBlock(html);
|
|
5501
5503
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5502
5504
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5503
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5505
|
+
const { GSAP_CDN } = await import("./dist-2YTN2UGY.js");
|
|
5504
5506
|
const bootstrap = [
|
|
5505
5507
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5506
5508
|
"<script>",
|
|
@@ -7375,9 +7377,12 @@ function lazyPreviewImages(html) {
|
|
|
7375
7377
|
return parts.join("");
|
|
7376
7378
|
}
|
|
7377
7379
|
var PROJECT_SIGNATURE_META = "hyperframes-project-signature";
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7380
|
+
function escapeGsapUrl(url) {
|
|
7381
|
+
return url.replace(/&/g, "&").replace(/"/g, """);
|
|
7382
|
+
}
|
|
7383
|
+
function gsapScriptTag(file, baseUrl) {
|
|
7384
|
+
return `<script src="${escapeGsapUrl(gsapCdnDist(void 0, baseUrl) + file)}"></script>`;
|
|
7385
|
+
}
|
|
7381
7386
|
function injectProjectSignature(html, signature) {
|
|
7382
7387
|
const tag = `<meta name="${PROJECT_SIGNATURE_META}" content="${signature}">`;
|
|
7383
7388
|
if (html.includes(`name="${PROJECT_SIGNATURE_META}"`)) {
|
|
@@ -7433,16 +7438,16 @@ function htmlUsesMotionPath(html) {
|
|
|
7433
7438
|
function htmlHasMotionPathPlugin(html) {
|
|
7434
7439
|
return /<script\b[^>]*src=["'][^"']*MotionPathPlugin/i.test(html) || /\bwindow\.MotionPathPlugin\b/.test(html) || /\bMotionPathPlugin\s*=\s*/.test(html);
|
|
7435
7440
|
}
|
|
7436
|
-
function injectMotionPathPluginIfNeeded(html) {
|
|
7441
|
+
function injectMotionPathPluginIfNeeded(html, baseUrl) {
|
|
7437
7442
|
if (!htmlUsesMotionPath(html) || htmlHasMotionPathPlugin(html)) return html;
|
|
7438
7443
|
const gsap = findGsapCoreScript(html);
|
|
7439
7444
|
if (gsap) {
|
|
7440
7445
|
const version = gsap.src.match(/gsap@([\d.]+)/)?.[1];
|
|
7441
7446
|
const ordering = `${gsap.type ? ` type="${gsap.type}"` : ""}${gsap.defer ? " defer" : ""}`;
|
|
7442
|
-
const pluginTag = `<script${ordering} src="${motionPathPluginUrl(version)}"></script>`;
|
|
7447
|
+
const pluginTag = `<script${ordering} src="${escapeGsapUrl(motionPathPluginUrl(version, baseUrl))}"></script>`;
|
|
7443
7448
|
return html.slice(0, gsap.end) + "\n" + pluginTag + html.slice(gsap.end);
|
|
7444
7449
|
}
|
|
7445
|
-
return injectScriptTagIntoHead(html,
|
|
7450
|
+
return injectScriptTagIntoHead(html, gsapScriptTag("MotionPathPlugin.min.js", baseUrl));
|
|
7446
7451
|
}
|
|
7447
7452
|
function isGsapCoreUrl(src) {
|
|
7448
7453
|
const base = "http://localhost/";
|
|
@@ -7475,30 +7480,32 @@ function scriptCloseEnd(html, start) {
|
|
|
7475
7480
|
const closeAt = close.exec(html)?.index;
|
|
7476
7481
|
return closeAt === void 0 ? 0 : html.indexOf(">", closeAt) + 1;
|
|
7477
7482
|
}
|
|
7478
|
-
function injectStudioMotionDependencies(html, manifestContent) {
|
|
7483
|
+
function injectStudioMotionDependencies(html, manifestContent, baseUrl) {
|
|
7479
7484
|
const manifest = parseStudioMotionManifestContent(manifestContent);
|
|
7480
7485
|
if (!manifest.hasMotion) return html;
|
|
7481
7486
|
let next = html;
|
|
7482
|
-
if (!htmlHasGsap(next))
|
|
7487
|
+
if (!htmlHasGsap(next))
|
|
7488
|
+
next = injectScriptTagIntoHead(next, gsapScriptTag("gsap.min.js", baseUrl));
|
|
7483
7489
|
if (manifest.hasCustomEase && !htmlHasCustomEase(next)) {
|
|
7484
|
-
next = injectScriptTagIntoHead(next,
|
|
7490
|
+
next = injectScriptTagIntoHead(next, gsapScriptTag("CustomEase.min.js", baseUrl));
|
|
7485
7491
|
}
|
|
7486
7492
|
return next;
|
|
7487
7493
|
}
|
|
7488
|
-
function injectStudioMotionScript(html, projectDir, activeCompositionPath) {
|
|
7494
|
+
function injectStudioMotionScript(html, projectDir, activeCompositionPath, baseUrl) {
|
|
7489
7495
|
const manifestContent = readStudioMotionManifestContent(projectDir);
|
|
7490
7496
|
const script = createStudioMotionRenderBodyScript(manifestContent, {
|
|
7491
7497
|
activeCompositionPath
|
|
7492
7498
|
});
|
|
7493
7499
|
if (!script) return html;
|
|
7494
|
-
const withDependencies = injectStudioMotionDependencies(html, manifestContent);
|
|
7500
|
+
const withDependencies = injectStudioMotionDependencies(html, manifestContent, baseUrl);
|
|
7495
7501
|
const tag = `<script type="${AFTER_FONTS_SCRIPT_TYPE}">${script.replace(/<\/script/gi, "<\\/script")}</script>`;
|
|
7496
7502
|
return insertBeforeCloseTag(withDependencies, "body", tag) ?? `${withDependencies}${tag}`;
|
|
7497
7503
|
}
|
|
7498
7504
|
var GSAP_FALLBACK_ATTR = "data-hf-gsap-fallback";
|
|
7499
|
-
|
|
7505
|
+
function gsapCdnFallbackScript(baseUrl) {
|
|
7506
|
+
return `<script ${GSAP_FALLBACK_ATTR}>
|
|
7500
7507
|
(function(){
|
|
7501
|
-
var cdnBase
|
|
7508
|
+
var cdnBase=${JSON.stringify(gsapCdnDist(void 0, baseUrl)).replace(/</g, "\\u003c")};
|
|
7502
7509
|
var loaded={};
|
|
7503
7510
|
function loadFallback(file){
|
|
7504
7511
|
if(loaded[file])return loaded[file];
|
|
@@ -7518,10 +7525,12 @@ var GSAP_CDN_FALLBACK_SCRIPT = `<script ${GSAP_FALLBACK_ATTR}>
|
|
|
7518
7525
|
},true);
|
|
7519
7526
|
})();
|
|
7520
7527
|
</script>`;
|
|
7521
|
-
|
|
7528
|
+
}
|
|
7529
|
+
function injectGsapCdnFallback(html, baseUrl) {
|
|
7522
7530
|
if (html.includes(GSAP_FALLBACK_ATTR)) return html;
|
|
7523
|
-
if (html.includes("<head>"))
|
|
7524
|
-
|
|
7531
|
+
if (html.includes("<head>"))
|
|
7532
|
+
return html.replace("<head>", "<head>" + gsapCdnFallbackScript(baseUrl));
|
|
7533
|
+
return gsapCdnFallbackScript(baseUrl) + html;
|
|
7525
7534
|
}
|
|
7526
7535
|
function parsePreviewVariablesParam(raw) {
|
|
7527
7536
|
if (raw === void 0 || raw === "") return { ok: true, values: null };
|
|
@@ -7548,8 +7557,8 @@ function previewVariablesFromRequest(rawVariables) {
|
|
|
7548
7557
|
var PREVIEW_CAPTURE_PARAM = "hf-capture";
|
|
7549
7558
|
var EARLY_ERRORS_SCRIPT = `<script>(function(){var seen=window.${STUDIO_PREVIEW_ERRORS}=[];
|
|
7550
7559
|
addEventListener("error",function(e){seen.push(e.message||String(e))});})();</script>`;
|
|
7551
|
-
function injectStudioPreviewAugmentations(html, adapter, projectDir, activeCompositionPath,
|
|
7552
|
-
const marked = capture ? injectTagsAtHeadStart(
|
|
7560
|
+
function injectStudioPreviewAugmentations(html, adapter, projectDir, activeCompositionPath, options) {
|
|
7561
|
+
const marked = options.capture ? injectTagsAtHeadStart(
|
|
7553
7562
|
html,
|
|
7554
7563
|
`<meta name="${STUDIO_PREVIEW_MARK_META}" content="${STUDIO_PREVIEW_CAPTURE_MODE}">`
|
|
7555
7564
|
) : injectTagsAtHeadStart(
|
|
@@ -7559,11 +7568,20 @@ function injectStudioPreviewAugmentations(html, adapter, projectDir, activeCompo
|
|
|
7559
7568
|
return injectStudioMotionScript(
|
|
7560
7569
|
injectMotionPathPluginIfNeeded(
|
|
7561
7570
|
injectGsapCdnFallback(
|
|
7562
|
-
injectProjectSignature(
|
|
7563
|
-
|
|
7571
|
+
injectProjectSignature(
|
|
7572
|
+
injectTagsAtHeadStart(
|
|
7573
|
+
marked,
|
|
7574
|
+
`<meta name="${GSAP_BASE_URL_META}" content="${escapeGsapUrl(options.gsapBaseUrl)}">`
|
|
7575
|
+
),
|
|
7576
|
+
resolveProjectSignature(adapter, projectDir)
|
|
7577
|
+
),
|
|
7578
|
+
options.gsapBaseUrl
|
|
7579
|
+
),
|
|
7580
|
+
options.gsapBaseUrl
|
|
7564
7581
|
),
|
|
7565
7582
|
projectDir,
|
|
7566
|
-
activeCompositionPath
|
|
7583
|
+
activeCompositionPath,
|
|
7584
|
+
options.gsapBaseUrl
|
|
7567
7585
|
);
|
|
7568
7586
|
}
|
|
7569
7587
|
async function transformPreviewHtml(html, adapter, project, activeCompositionPath) {
|
|
@@ -7607,6 +7625,16 @@ var PREVIEW_BUNDLE_OPTIONS = {
|
|
|
7607
7625
|
var previewBaseHref = (projectId) => `/api/projects/${encodeURIComponent(projectId)}/preview/`;
|
|
7608
7626
|
var withPreviewBase = (html, projectId) => hasBaseElement(html) ? html : injectTagsAtHeadStart(html, `<base href="${previewBaseHref(projectId)}">`);
|
|
7609
7627
|
function registerPreviewRoutes(api, adapter) {
|
|
7628
|
+
let gsapBaseUrl;
|
|
7629
|
+
try {
|
|
7630
|
+
gsapBaseUrl = normalizeGsapBaseUrl(process.env.HYPERFRAMES_GSAP_BASE_URL);
|
|
7631
|
+
} catch (cause) {
|
|
7632
|
+
throw new Error(
|
|
7633
|
+
"Invalid HYPERFRAMES_GSAP_BASE_URL: use an absolute HTTP(S) npm mirror root without credentials, query, or fragment",
|
|
7634
|
+
{ cause }
|
|
7635
|
+
);
|
|
7636
|
+
}
|
|
7637
|
+
const gsapEtagSalt = `:gsap:${createHash22("sha1").update(gsapBaseUrl).digest("hex").slice(0, 12)}`;
|
|
7610
7638
|
const previewCacheHeaders = (etag) => ({
|
|
7611
7639
|
"Cache-Control": "private, no-cache",
|
|
7612
7640
|
ETag: etag
|
|
@@ -7641,7 +7669,7 @@ function registerPreviewRoutes(api, adapter) {
|
|
|
7641
7669
|
adapter,
|
|
7642
7670
|
project.dir,
|
|
7643
7671
|
mainCompositionPath,
|
|
7644
|
-
capture
|
|
7672
|
+
{ capture, gsapBaseUrl }
|
|
7645
7673
|
);
|
|
7646
7674
|
if (previewVariables) bundled = injectPreviewVariables(bundled, previewVariables);
|
|
7647
7675
|
bundled = await injectMediaCodecMap(
|
|
@@ -7669,7 +7697,7 @@ function registerPreviewRoutes(api, adapter) {
|
|
|
7669
7697
|
adapter,
|
|
7670
7698
|
project.dir,
|
|
7671
7699
|
fallback.compositionPath,
|
|
7672
|
-
capture
|
|
7700
|
+
{ capture, gsapBaseUrl }
|
|
7673
7701
|
);
|
|
7674
7702
|
if (previewVariables) {
|
|
7675
7703
|
fallbackAugmented = injectPreviewVariables(fallbackAugmented, previewVariables);
|
|
@@ -7694,7 +7722,7 @@ function registerPreviewRoutes(api, adapter) {
|
|
|
7694
7722
|
if (vars.error !== void 0) return c.json({ error: vars.error }, 400);
|
|
7695
7723
|
const previewVariables = vars.values;
|
|
7696
7724
|
const capture = c.req.query(PREVIEW_CAPTURE_PARAM) !== void 0;
|
|
7697
|
-
const etag = `"preview:${signature}${variablesEtagSalt(vars.raw)}${capture ? ":capture" : ""}"`;
|
|
7725
|
+
const etag = `"preview:${signature}${gsapEtagSalt}${variablesEtagSalt(vars.raw)}${capture ? ":capture" : ""}"`;
|
|
7698
7726
|
const ifNoneMatch = c.req.header("If-None-Match");
|
|
7699
7727
|
if (ifNoneMatch === etag) {
|
|
7700
7728
|
return new Response(null, {
|
|
@@ -7744,7 +7772,7 @@ ${etag}`;
|
|
|
7744
7772
|
}
|
|
7745
7773
|
const compPathHash = createHash22("sha1").update(compPath).digest("hex");
|
|
7746
7774
|
const capture = c.req.query(PREVIEW_CAPTURE_PARAM) !== void 0;
|
|
7747
|
-
const etag = `"comp:v2:${compPathHash}:${signature}${variablesEtagSalt(vars.raw)}${capture ? ":capture" : ""}"`;
|
|
7775
|
+
const etag = `"comp:v2:${compPathHash}:${signature}${gsapEtagSalt}${variablesEtagSalt(vars.raw)}${capture ? ":capture" : ""}"`;
|
|
7748
7776
|
const ifNoneMatch = c.req.header("If-None-Match");
|
|
7749
7777
|
if (ifNoneMatch === etag) {
|
|
7750
7778
|
return new Response(null, {
|
|
@@ -7760,12 +7788,16 @@ ${etag}`;
|
|
|
7760
7788
|
compPath,
|
|
7761
7789
|
adapter.runtimeUrl,
|
|
7762
7790
|
baseHref,
|
|
7763
|
-
stamped
|
|
7791
|
+
stamped,
|
|
7792
|
+
gsapBaseUrl
|
|
7764
7793
|
);
|
|
7765
7794
|
if (!html) return c.text("not found", 404);
|
|
7766
7795
|
recordPreviewReferences(project.dir, html);
|
|
7767
7796
|
html = ensureHfIds(await transformPreviewHtml(html, adapter, project, compPath));
|
|
7768
|
-
html = injectStudioPreviewAugmentations(html, adapter, project.dir, compPath,
|
|
7797
|
+
html = injectStudioPreviewAugmentations(html, adapter, project.dir, compPath, {
|
|
7798
|
+
capture,
|
|
7799
|
+
gsapBaseUrl
|
|
7800
|
+
});
|
|
7769
7801
|
if (previewVariables) html = injectPreviewVariables(html, previewVariables);
|
|
7770
7802
|
html = await injectMediaCodecMap(html, adapter, project.dir, compPath, mediaCodecProbeCache);
|
|
7771
7803
|
return c.html(html, 200, previewCacheHeaders(etag));
|