hyperframes 0.8.200 → 0.8.202

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.
Files changed (194) hide show
  1. package/dist/{add-MFJDOJHQ.js → add-YC7QXNDO.js} +14 -17
  2. package/dist/{animatedGifPrep-WBZ2VVP6.js → animatedGifPrep-SFHFVFFE.js} +8 -11
  3. package/dist/api.js +16 -19
  4. package/dist/{asset-PTAQLOR6.js → asset-5E5BQ6BR.js} +2 -2
  5. package/dist/{assetCataloger-N3UGZ2RC.js → assetCataloger-F6YSU3H6.js} +8 -11
  6. package/dist/{audio-CPHWRLC4.js → audio-UZKBYVZ5.js} +33 -31
  7. package/dist/{auth-ZWOJIYK7.js → auth-5DWW5DMO.js} +2 -2
  8. package/dist/{autoUpdate-DO74673A.js → autoUpdate-D6HTQGOE.js} +2 -2
  9. package/dist/{backgroundChecks-HOAN7YB6.js → backgroundChecks-FW4MBBK2.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-AZFHTPSV.js → batchRender-DXD5THWY.js} +5 -7
  12. package/dist/{beats-JRMM6JQQ.js → beats-WRF4CRL7.js} +32 -23
  13. package/dist/{benchmark-2PEQUV7H.js → benchmark-NDCR2AAG.js} +11 -13
  14. package/dist/{browser-2D6IHFO6.js → browser-KSG6M66G.js} +5 -5
  15. package/dist/{bundleWithLocalizedFonts-ERB43NFP.js → bundleWithLocalizedFonts-GJ2UYZ6E.js} +2 -2
  16. package/dist/{capture-3ODEX55X.js → capture-DTF47QX3.js} +2 -2
  17. package/dist/{capture-WNC2DWF7.js → capture-FRVDEVPB.js} +15 -17
  18. package/dist/{captureCompositionFrame-JXXTHR7J.js → captureCompositionFrame-IC3MEOJR.js} +13 -16
  19. package/dist/{catalog-MHTRTKSY.js → catalog-TX3BMPOA.js} +14 -17
  20. package/dist/{catch-up-XNDRKMKL.js → catch-up-YMVIJI2W.js} +5 -5
  21. package/dist/{check-7IB355TM.js → check-2LBOZR6Z.js} +40 -43
  22. package/dist/{checkBrowser-E3ZCTAGY.js → checkBrowser-56C73ZNX.js} +34 -37
  23. package/dist/{chunk-Q5IJYX7X.js → chunk-24PUQCZO.js} +2 -2
  24. package/dist/{chunk-MMQ52NIZ.js → chunk-2BGOB2QK.js} +500 -17
  25. package/dist/{chunk-BIZPUWBG.js → chunk-3HTXEXQ6.js} +1 -1
  26. package/dist/{chunk-4VZAIVZQ.js → chunk-4OPDZMV6.js} +1 -1
  27. package/dist/{chunk-57Y5X4VU.js → chunk-5KPZ4QAS.js} +10 -12
  28. package/dist/{chunk-2LKHE32Z.js → chunk-73BGPSUW.js} +5 -5
  29. package/dist/{chunk-UUFY6A7I.js → chunk-75KIZWAD.js} +131 -92
  30. package/dist/{chunk-OE7AUN6G.js → chunk-7J4GQHSG.js} +82 -34
  31. package/dist/{chunk-4UPGPCMB.js → chunk-7KGCJQGS.js} +1 -1
  32. package/dist/{chunk-7NWSVRFE.js → chunk-ABTBAQDB.js} +1 -1
  33. package/dist/{chunk-OYVVDYM6.js → chunk-ANH7DV34.js} +10 -10
  34. package/dist/{chunk-NC3TVM27.js → chunk-AQLRXGNN.js} +6 -6
  35. package/dist/{chunk-63S4VUOL.js → chunk-AQVLMH5C.js} +1 -1
  36. package/dist/{chunk-QP4UWICL.js → chunk-B22YBW5W.js} +2 -2
  37. package/dist/{chunk-7WV27W7R.js → chunk-B2OUZUY5.js} +2 -2
  38. package/dist/chunk-B7CYKBXQ.js +36 -0
  39. package/dist/{chunk-7LRVGYKZ.js → chunk-BIV4FVEN.js} +16 -3
  40. package/dist/{chunk-WAG4AX5C.js → chunk-BU6XD7H2.js} +1 -1
  41. package/dist/{chunk-HBRPELT6.js → chunk-BUIJG2BQ.js} +3 -3
  42. package/dist/{chunk-DRTUJVLE.js → chunk-CL6ZTNQH.js} +326 -91
  43. package/dist/{chunk-3XXSRN36.js → chunk-COHU6S2X.js} +2 -2
  44. package/dist/{chunk-IC6BO4GU.js → chunk-CV32PRH3.js} +65 -21
  45. package/dist/{chunk-BERGVZKN.js → chunk-CXTXB2LZ.js} +1 -1
  46. package/dist/{chunk-OMXXJSCK.js → chunk-DMZ3SCCU.js} +108 -20
  47. package/dist/{chunk-QYQY5ACN.js → chunk-DYDFCX4L.js} +1 -1
  48. package/dist/{chunk-XOTUPVIF.js → chunk-E3F5L6AB.js} +38 -1
  49. package/dist/{chunk-63JJFXAD.js → chunk-EPZXTQOO.js} +6 -6
  50. package/dist/{chunk-VHBBV5DH.js → chunk-ERUINDRT.js} +62 -25
  51. package/dist/{chunk-FTD5QXGF.js → chunk-FWS2ZWV6.js} +2 -2
  52. package/dist/{chunk-5CTORVUM.js → chunk-GHROWWUN.js} +32 -1
  53. package/dist/{chunk-3YGSZSEN.js → chunk-GZCACSED.js} +1 -1
  54. package/dist/{chunk-32V3VHMK.js → chunk-I64A5P5H.js} +6 -43
  55. package/dist/{chunk-HXHSGDU6.js → chunk-IB6ICAI7.js} +60 -34
  56. package/dist/{chunk-D35MPIGJ.js → chunk-IKX2UHEM.js} +15 -15
  57. package/dist/{chunk-6JR2XUEE.js → chunk-IXXVS2Z4.js} +1 -1
  58. package/dist/{chunk-HN6TP4D2.js → chunk-J3CZK6PI.js} +1 -1
  59. package/dist/{chunk-ZFBET3PD.js → chunk-JCS7WFRM.js} +1 -1
  60. package/dist/{chunk-PFFR4NQV.js → chunk-JNBHYUEU.js} +8 -10
  61. package/dist/{chunk-FTUKOLLB.js → chunk-KFJMWPZT.js} +1 -1
  62. package/dist/{chunk-I6A2B3IJ.js → chunk-L5IKISP2.js} +3 -3
  63. package/dist/{chunk-G7RKSAKS.js → chunk-LEQU6P6H.js} +28 -6
  64. package/dist/{chunk-FMTJ4I6I.js → chunk-LMRTEJYY.js} +1 -1
  65. package/dist/{chunk-FZ3R5XOH.js → chunk-MO4VKSFT.js} +1 -1
  66. package/dist/{chunk-KPUTRG54.js → chunk-MS4BAXOQ.js} +2 -2
  67. package/dist/{chunk-KVFSXCN6.js → chunk-NT3L4IMM.js} +1 -1
  68. package/dist/{chunk-VFLBOKDI.js → chunk-NZEASM7M.js} +3 -3
  69. package/dist/{chunk-7D7V3UDI.js → chunk-OJDOYHPQ.js} +2 -2
  70. package/dist/chunk-PH5PJY5Z.js +39 -0
  71. package/dist/{chunk-GYSPF5ZT.js → chunk-PI256PSW.js} +27 -21
  72. package/dist/{chunk-JBQNDHRT.js → chunk-PLL6VC4F.js} +1 -1
  73. package/dist/{chunk-TOC6E65N.js → chunk-PYS6IKKM.js} +2 -2
  74. package/dist/{chunk-57GN6KWT.js → chunk-PZIWSVMO.js} +11 -1
  75. package/dist/{chunk-QDK7XCOB.js → chunk-QB4K2EWI.js} +1 -1
  76. package/dist/{chunk-IW4LKYDY.js → chunk-QDEZ7LRH.js} +3 -3
  77. package/dist/{chunk-I4VEFPZE.js → chunk-QGB5DECO.js} +1 -1
  78. package/dist/{chunk-BQA3X7TI.js → chunk-QSFWGZG6.js} +4 -6
  79. package/dist/chunk-QTGKDF7D.js +3983 -0
  80. package/dist/{chunk-QXPZGDTI.js → chunk-QXQ74PYD.js} +3 -3
  81. package/dist/{chunk-DY53XJ3P.js → chunk-QZTFCWG7.js} +1 -1
  82. package/dist/{chunk-ML4IULLQ.js → chunk-REFMKHRE.js} +10 -10
  83. package/dist/{chunk-H2X4TQVK.js → chunk-REUZB3HL.js} +7 -7
  84. package/dist/{chunk-ISN6BAZX.js → chunk-RFZJGC6V.js} +1 -1
  85. package/dist/{chunk-TDF2O2RM.js → chunk-RNLJJDGE.js} +2 -2
  86. package/dist/{chunk-5ULL3P6S.js → chunk-SQNPFWFM.js} +2 -2
  87. package/dist/{chunk-733CEBPF.js → chunk-TOFL5P27.js} +5 -5
  88. package/dist/{chunk-GR2G5L2O.js → chunk-UI7YYCN2.js} +3 -3
  89. package/dist/{chunk-TUVNQA5B.js → chunk-UMGDRGF5.js} +3 -3
  90. package/dist/{chunk-XV7ZNBVY.js → chunk-V6MTGX7B.js} +3 -3
  91. package/dist/{chunk-TTFHBTXQ.js → chunk-VOKI2HSE.js} +1 -1
  92. package/dist/{chunk-ACH5ZR7X.js → chunk-WAXBJLV6.js} +3 -3
  93. package/dist/{chunk-PGDWNIOK.js → chunk-XDMZY3H7.js} +57 -5
  94. package/dist/{chunk-VLVQQJOX.js → chunk-Z4PSJSDF.js} +22 -3
  95. package/dist/{clean-BOYUTBAU.js → clean-LFPT6GNS.js} +21 -24
  96. package/dist/cli.js +54 -54
  97. package/dist/{cloud-3O2MEZO4.js → cloud-XX5XB277.js} +4 -4
  98. package/dist/{cloudrun-MCTN22O6.js → cloudrun-ANWC6QGV.js} +7 -9
  99. package/dist/{compare-A57RHCPB.js → compare-CISKXIRF.js} +31 -34
  100. package/dist/{compiler-LVNWLZCX.js → compiler-XYZMBTYR.js} +6 -10
  101. package/dist/{component-MIJC3LWO.js → component-D4JJIDOC.js} +3 -3
  102. package/dist/{compositions-OUNZAEC3.js → compositions-UGRTLUBT.js} +13 -16
  103. package/dist/{delete-X6Q3S3SL.js → delete-TPH7N5PK.js} +2 -2
  104. package/dist/{deploy-XXMIXGUF.js → deploy-ZUXLAVVX.js} +72 -20
  105. package/dist/{deterministicFonts-RMA7GDJC.js → deterministicFonts-NQ6KL66D.js} +2 -2
  106. package/dist/{dist-ONHJ6ZDA.js → dist-TFHABY7N.js} +2 -4
  107. package/dist/{dist-2UO4RVFN.js → dist-UXLDRI4D.js} +30 -16
  108. package/dist/{doctor-ASSDEPCO.js → doctor-LVOS4EDV.js} +14 -17
  109. package/dist/{dotEnv-64S3VKGH.js → dotEnv-RPHCAUBZ.js} +1 -1
  110. package/dist/{events-DVWSV3TQ.js → events-FIWA6UBT.js} +4 -4
  111. package/dist/{events-4ULC5VUK.js → events-UHIKJIWA.js} +3 -3
  112. package/dist/{feedback-OB3NJPNF.js → feedback-SPOCVRKJ.js} +10 -12
  113. package/dist/{ffmpeg-JH3JXES2.js → ffmpeg-7SDXE5P5.js} +8 -11
  114. package/dist/{figma-GV4OGXC2.js → figma-ONGILUUE.js} +3 -3
  115. package/dist/fontLocalizeCli.js +11 -14
  116. package/dist/{get-FLMCUJGR.js → get-W7ADZ5XS.js} +2 -2
  117. package/dist/{gpuPolicy-RZ2OUY4M.js → gpuPolicy-GETTDB3G.js} +8 -11
  118. package/dist/{grade-compare-O62JAOA7.js → grade-compare-YIIQJNL3.js} +32 -35
  119. package/dist/{help-6POZ4GNV.js → help-HSKEDFT6.js} +1 -1
  120. package/dist/{history-72ZIF5WR.js → history-JS6QALDS.js} +8 -8
  121. package/dist/hyperframe.manifest.json +1 -1
  122. package/dist/hyperframe.runtime.iife.js +65 -64
  123. package/dist/hyperframes-player.global.js +3 -3
  124. package/dist/{info-GGIFZ5CT.js → info-BIIA6M7Q.js} +10 -12
  125. package/dist/{init-QYRN6HG2.js → init-TGDKBWUY.js} +29 -32
  126. package/dist/{inspect-KSL4YVIU.js → inspect-MVMUFUHY.js} +32 -35
  127. package/dist/{installer-ENQCLSJQ.js → installer-HITNNXHY.js} +6 -9
  128. package/dist/{keyframes-6PNLGKOO.js → keyframes-XJ7DUUBW.js} +7 -7
  129. package/dist/{lambda-3RFOOJV6.js → lambda-4C7APDR5.js} +24 -14
  130. package/dist/{layout-3XFC6N3L.js → layout-O3LEAM7S.js} +32 -35
  131. package/dist/{lint-5XGLCTV5.js → lint-72FKMBD2.js} +9 -11
  132. package/dist/{lintProject-FKPKSU6M.js → lintProject-Q36Y3AHA.js} +2 -4
  133. package/dist/{list-B76BTLOM.js → list-YUK5VA2D.js} +2 -2
  134. package/dist/{login-MNXS7GEL.js → login-TXBDKLOH.js} +4 -4
  135. package/dist/{manager-QZZVJV7Z.js → manager-APB2JLSH.js} +9 -12
  136. package/dist/{manager-BWU4U7DV.js → manager-F34TSFV6.js} +2 -2
  137. package/dist/{media-treatment-J3OWRCBF.js → media-treatment-GMP4JL46.js} +66 -42
  138. package/dist/{models-MCDUTV54.js → models-DW22WMQ5.js} +12 -15
  139. package/dist/{motionShot-RWEH3VWI.js → motionShot-UQJVQT76.js} +17 -20
  140. package/dist/{normalize-audio-N7VRZODX.js → normalize-audio-4KYSZBWI.js} +44 -26
  141. package/dist/{open-ROUFAVKD.js → open-HNYN6VM2.js} +14 -17
  142. package/dist/{parakeetRunner-PTVV5M44.js → parakeetRunner-SJ2QW77R.js} +13 -16
  143. package/dist/{pipeline-HN5KMORF.js → pipeline-MG2W6NIW.js} +9 -12
  144. package/dist/{play-AO7AF4Y4.js → play-ZQ6RNKIE.js} +23 -26
  145. package/dist/{preflight-ARNDDFGX.js → preflight-HSQEJNA2.js} +11 -14
  146. package/dist/{present-FBPKUC5R.js → present-7M3W5E3Q.js} +19 -22
  147. package/dist/{preview-35X5G426.js → preview-TT5Z6JK6.js} +20 -23
  148. package/dist/{producer-FVGPLR5E.js → producer-B2Y4IKZS.js} +1 -1
  149. package/dist/{projectConfig-SRUJLOHL.js → projectConfig-VZVY6ZZP.js} +8 -11
  150. package/dist/{publication-XH2BRL3V.js → publication-SRAYE6LT.js} +4 -6
  151. package/dist/{publish-RI4ZQZNT.js → publish-3QMV3Q7B.js} +11 -14
  152. package/dist/{remove-background-J22P5JFW.js → remove-background-5GA2S5OI.js} +10 -13
  153. package/dist/{render-2EZQT4IS.js → render-LN24E3OI.js} +37 -33
  154. package/dist/{render-UXYZN6D2.js → render-W3VX647V.js} +17 -17
  155. package/dist/{render-IJUKJILU.js → render-WRLXYVSQ.js} +34 -37
  156. package/dist/{render-batch-X34UZ442.js → render-batch-C73ELOQ7.js} +17 -17
  157. package/dist/renderSetupWorker.js +4 -6
  158. package/dist/{resolver-UUEIRLMY.js → resolver-ALD2ZELQ.js} +6 -8
  159. package/dist/{sherpa-FI4VNAFT.js → sherpa-AHD5UPU3.js} +12 -15
  160. package/dist/skills/hyperframes/references/runtimes.md +26 -0
  161. package/dist/skills/hyperframes-cli/references/lambda.md +1 -0
  162. package/dist/skills/media-use/references/mixing.md +1 -1
  163. package/dist/skills/media-use/scripts/lib/grade-analyzer.mjs +38 -26
  164. package/dist/{skills-LGKXQFW7.js → skills-WYJGVMR5.js} +6 -6
  165. package/dist/{skillsUpdateCheck-NDPKSX3H.js → skillsUpdateCheck-OHEGRQ2N.js} +3 -3
  166. package/dist/{snapshot-JM6427YW.js → snapshot-S6CGQACZ.js} +94 -61
  167. package/dist/{src-WEECPY6E.js → src-DAW4JYSR.js} +11 -10
  168. package/dist/{src-26NBARTO.js → src-I6WD5SMQ.js} +10 -13
  169. package/dist/{staticProjectServer-I5WGMJOV.js → staticProjectServer-3BFEACQ6.js} +19 -22
  170. package/dist/{status-SCCC7A6N.js → status-LR7VXITS.js} +1 -1
  171. package/dist/studio/assets/{hyperframes-player-LmRUJE8q.js → hyperframes-player-DnrkDR-_.js} +1 -1
  172. package/dist/studio/assets/{index-BmTWk8xf.js → index-BhFxhBMA.js} +162 -162
  173. package/dist/studio/assets/{index-CKNiEwbW.js → index-WFQeAouT.js} +1 -1
  174. package/dist/studio/index.html +1 -1
  175. package/dist/{studio-api-N774Q4NO.js → studio-api-2O6R4CM5.js} +12 -15
  176. package/dist/{studioServer-KZIM5UBJ.js → studioServer-6ZSAJBVY.js} +53 -56
  177. package/dist/{system-HV7PYIXE.js → system-YD4AW5ZX.js} +1 -1
  178. package/dist/{telemetry-JIETM7WP.js → telemetry-WFLPGSUG.js} +4 -4
  179. package/dist/{timeline-JJ6JG7GQ.js → timeline-BZJH266Q.js} +23 -25
  180. package/dist/{tokens-VOIMSCGX.js → tokens-5TX42ZMQ.js} +2 -2
  181. package/dist/{transcribe-2V23EQHD.js → transcribe-IEYR46HB.js} +18 -21
  182. package/dist/{transcribe-7BDHDQVP.js → transcribe-WPFFLNTS.js} +11 -14
  183. package/dist/{updateCheck-7B7L3UWO.js → updateCheck-TESZGKRJ.js} +2 -2
  184. package/dist/{upgrade-TUA2QZTY.js → upgrade-3EW4MYS7.js} +2 -2
  185. package/dist/{urlDownloader-CGV6EYL7.js → urlDownloader-JULHEBLS.js} +7 -10
  186. package/dist/{validate-JLCXEI2U.js → validate-RSJPGXUZ.js} +26 -29
  187. package/dist/{video-TI3EOA2D.js → video-TW4TSAM4.js} +8 -11
  188. package/dist/warmCheck.js +40 -43
  189. package/package.json +1 -1
  190. package/dist/chunk-BSQ7XANM.js +0 -210
  191. package/dist/chunk-PKZ7RK5N.js +0 -281
  192. package/dist/chunk-PW22CDII.js +0 -3901
  193. package/dist/chunk-RFQ6BIRL.js +0 -40
  194. package/dist/chunk-X7HBSTCZ.js +0 -53
@@ -24,35 +24,31 @@ import {
24
24
  resolveCompositionDuration
25
25
  } from "./chunk-CZGHFATT.js";
26
26
  import {
27
+ COLOR_GRADING_SOURCE_TAGS,
28
+ COMPOSITION_ATTRIBUTES,
27
29
  COMPOSITION_VARIABLE_TYPES,
28
30
  FONT_ALIAS_KEYS,
29
31
  HTML_BODY_CSS_HEIGHT_FIRST_RE,
30
32
  HTML_BODY_CSS_WIDTH_FIRST_RE,
31
- VIEWPORT_META_SIZE_RE,
32
- extractMediaSrcMutations,
33
- isCompositionVariable,
34
- isSafeMediaUrl,
35
- resolveAliasDisplayName
36
- } from "./chunk-PKZ7RK5N.js";
37
- import {
38
- COLOR_GRADING_SOURCE_TAGS,
39
- COMPOSITION_ATTRIBUTES,
40
33
  MEDIA_START_BASIS_ATTR,
34
+ VIEWPORT_META_SIZE_RE,
41
35
  checkSubCompositionUsability,
42
36
  compositionOriginSeconds,
43
37
  cutToHostSlots,
38
+ extractMediaSrcMutations,
39
+ isCompositionVariable,
40
+ isSafeMediaUrl,
44
41
  parseNumeric,
42
+ readAuthoredDurationSeconds,
45
43
  readClipTiming,
44
+ readDataDurationSeconds,
45
+ resolveAliasDisplayName,
46
+ resolveMediaDuration,
46
47
  resolveMediaStartSeconds,
48
+ rewriteAssetPath,
47
49
  spansOverlap,
48
50
  validateColorGradingContract
49
- } from "./chunk-MMQ52NIZ.js";
50
- import {
51
- readAuthoredDurationSeconds,
52
- readDataDurationSeconds,
53
- resolveMediaDuration,
54
- rewriteAssetPath
55
- } from "./chunk-BSQ7XANM.js";
51
+ } from "./chunk-2BGOB2QK.js";
56
52
  import {
57
53
  Parser,
58
54
  parseHTML
@@ -4924,6 +4920,19 @@ function selectorAliasesRuntimeHiddenStyle(selector) {
4924
4920
  }
4925
4921
  return unsafe;
4926
4922
  }
4923
+ function selectsOnInlineStyle(selector) {
4924
+ let found = false;
4925
+ try {
4926
+ (0, import_postcss_selector_parser.default)((root) => {
4927
+ root.walkAttributes((node) => {
4928
+ if (node.attribute.toLowerCase() === "style") found = true;
4929
+ });
4930
+ }).processSync(selector);
4931
+ } catch {
4932
+ return false;
4933
+ }
4934
+ return found;
4935
+ }
4927
4936
  var POSITION_PROPERTIES = /* @__PURE__ */ new Set(["left", "top", "right", "bottom", "inset"]);
4928
4937
  function weakIdOf(node) {
4929
4938
  if (node.type === "attribute" && node.attribute.toLowerCase() === "id") {
@@ -5331,6 +5340,7 @@ var coreRules = [
5331
5340
  const findings = [];
5332
5341
  const reportedRepeatedIds = /* @__PURE__ */ new Set();
5333
5342
  const reportedHiddenStyleSelectors = /* @__PURE__ */ new Set();
5343
+ const reportedInlineStyleSelectors = /* @__PURE__ */ new Set();
5334
5344
  const reportedReducedIdSelectors = /* @__PURE__ */ new Set();
5335
5345
  for (const style of styles) {
5336
5346
  let root;
@@ -5363,6 +5373,17 @@ var coreRules = [
5363
5373
  fixHint: `Remove the duplicate ancestor: change \`#${repeatedId} #${repeatedId}\` to \`#${repeatedId}\`.`
5364
5374
  });
5365
5375
  }
5376
+ if (!reportedInlineStyleSelectors.has(selector) && selectsOnInlineStyle(selector)) {
5377
+ reportedInlineStyleSelectors.add(selector);
5378
+ findings.push({
5379
+ code: "inline_style_attribute_selector",
5380
+ severity: "error",
5381
+ message: `Selector "${selector}" reads the inline \`style\` attribute. GSAP writes inline styles every frame, and each write then restyles far more than the animated element, so the preview slows to a crawl.`,
5382
+ selector,
5383
+ fixHint: "Let the runtime hide hidden clips; it already hides their contents. For a state of your own, toggle a class or data attribute from your script and select on that.",
5384
+ snippet: truncateSnippet(rule.toString())
5385
+ });
5386
+ }
5366
5387
  if (!forcesOpacityZero || reportedHiddenStyleSelectors.has(selector) || !selectorAliasesRuntimeHiddenStyle(selector)) {
5367
5388
  continue;
5368
5389
  }
@@ -5372,7 +5393,7 @@ var coreRules = [
5372
5393
  severity: "error",
5373
5394
  message: `Selector "${selector}" observes HyperFrames' runtime-owned hidden style and forces opacity to zero. The renderer hides each native video before copying its computed opacity to the visible replacement frame, so this rule makes both transparent.`,
5374
5395
  selector,
5375
- fixHint: 'Restrict the guard to sub-composition hosts, for example `[data-composition-src][style*="visibility: hidden"]` and `[data-composition-file][style*="visibility: hidden"]`. Do not derive arbitrary element or media opacity from runtime-owned inline visibility.',
5396
+ fixHint: "Remove this rule; the runtime already hides a hidden clip and its contents. To fade or hide something yourself, animate it on the timeline, or toggle a class or data attribute and select on that.",
5376
5397
  snippet: truncateSnippet(rule.toString())
5377
5398
  });
5378
5399
  }
@@ -6343,7 +6364,7 @@ var mediaRules = [
6343
6364
  const source = { id: readAttr(tag.raw, "id") || void 0, raw: tag.raw };
6344
6365
  if (tag.name === "video") {
6345
6366
  if (isAudibleVideoTag(tag.raw)) videos.push([src, source]);
6346
- } else if (tag.name === "audio") {
6367
+ } else if (tag.name === "audio" && readAttr(tag.raw, "data-timeline-role") !== "room-tone") {
6347
6368
  audios.push([src, source]);
6348
6369
  }
6349
6370
  }
@@ -6379,6 +6400,8 @@ var mediaRules = [
6379
6400
  findAudioGroupTimingAttrFindings,
6380
6401
  // audio_group_carve_attr
6381
6402
  findAudioGroupCarveAttrFindings,
6403
+ // audio_group_holds_elements
6404
+ findAudioGroupHoldsElementsFindings,
6382
6405
  findLinkedClipFindings
6383
6406
  ];
6384
6407
  function findVolumeTweenOverridesGainFindings(ctx) {
@@ -6516,6 +6539,26 @@ function findAudioGroupTimingAttrFindings(ctx) {
6516
6539
  }
6517
6540
  return findings;
6518
6541
  }
6542
+ function findAudioGroupHoldsElementsFindings(ctx) {
6543
+ const findings = [];
6544
+ for (const group of ctx.tags) {
6545
+ if (group.name !== "hf-audio-group") continue;
6546
+ const end = group.closeIndex ?? Number.POSITIVE_INFINITY;
6547
+ const held = ctx.tags.filter((tag) => tag.index > group.index && tag.index < end);
6548
+ if (held.length === 0) continue;
6549
+ const elementId = readAttr(group.raw, "id") || void 0;
6550
+ const first = readAttr(held[0].raw, "id");
6551
+ findings.push({
6552
+ code: "audio_group_holds_elements",
6553
+ severity: "warning",
6554
+ message: `${elementId ? `#${elementId}` : "This audio group"} holds ${held.length} element(s), starting with <${held[0].name}${first ? `#${first}` : ""}>. Being inside it routes no audio through the bus (only \`data-audio-group\` does), and while the group has \`data-hidden\` they are hidden and silenced in preview and render.`,
6555
+ elementId,
6556
+ fixHint: "Close the group with `</hf-audio-group>` right after its opening tag (`/>` does not close a custom element), and give clips meant for this bus `data-audio-group`.",
6557
+ snippet: truncateSnippet(group.raw)
6558
+ });
6559
+ }
6560
+ return findings;
6561
+ }
6519
6562
  function findAudioGroupCarveAttrFindings(ctx) {
6520
6563
  const findings = [];
6521
6564
  for (const tag of ctx.tags) {
@@ -7021,13 +7064,14 @@ function variablesDeclarationFindings(tag, tags) {
7021
7064
  code: "invalid_composition_variables_declaration",
7022
7065
  severity: "error",
7023
7066
  message: `data-composition-variables entry [${i}] has a default that does not match its type, or an enum without an options array.`,
7024
- fixHint: "Use number defaults for number variables, boolean defaults for boolean variables, and string defaults for other types. Enum variables also require an options array.",
7067
+ fixHint: "Use number defaults for number variables, boolean defaults for boolean variables, and string defaults for other types. Font/image also accept font {name, source} or image {url, alt?, fit?} objects. Enum variables also require an options array.",
7025
7068
  snippet: truncateSnippet(tag.raw)
7026
7069
  });
7027
7070
  continue;
7028
7071
  }
7029
- const id = String(e.id);
7030
- if ((e.type === "image" || varSrcIds.has(id)) && typeof e.default === "string" && e.default.length > 0 && !isSafeMediaUrl(e.default)) {
7072
+ const id = e.id;
7073
+ const mediaUrl = e.type === "image" && typeof e.default !== "string" ? e.default.url : e.default;
7074
+ if ((e.type === "image" || varSrcIds.has(id)) && typeof mediaUrl === "string" && mediaUrl.length > 0 && !isSafeMediaUrl(mediaUrl)) {
7031
7075
  findings.push({
7032
7076
  code: "unloadable_media_variable_default",
7033
7077
  severity: "error",
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-GMECXFAN.js";
28
28
  import {
29
29
  ITEM_TYPE_DIRS
30
- } from "./chunk-G7RKSAKS.js";
30
+ } from "./chunk-LEQU6P6H.js";
31
31
  import {
32
32
  realProjectRoot
33
33
  } from "./chunk-OFQWTKPW.js";
@@ -7,23 +7,23 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  ambiguousIssue,
9
9
  loadBrowserScript
10
- } from "./chunk-OYVVDYM6.js";
10
+ } from "./chunk-ANH7DV34.js";
11
11
  import {
12
12
  auditClipDurations,
13
13
  shouldIgnoreHttpError,
14
14
  shouldIgnoreRequestFailure
15
- } from "./chunk-D35MPIGJ.js";
15
+ } from "./chunk-IKX2UHEM.js";
16
16
  import {
17
17
  serveStaticProjectHtml
18
- } from "./chunk-NC3TVM27.js";
18
+ } from "./chunk-AQLRXGNN.js";
19
19
  import {
20
20
  STUDIO_PREVIEW_CAPTURE_MODE,
21
21
  STUDIO_PREVIEW_MARK_META
22
- } from "./chunk-HXHSGDU6.js";
22
+ } from "./chunk-IB6ICAI7.js";
23
23
  import {
24
24
  artifactDirectory,
25
25
  finishSnapshotRun
26
- } from "./chunk-PGDWNIOK.js";
26
+ } from "./chunk-XDMZY3H7.js";
27
27
  import {
28
28
  FfmpegUnavailableError,
29
29
  decideMediaProxyEligibility,
@@ -31,7 +31,7 @@ import {
31
31
  proxyVariantFor,
32
32
  resolveProxies,
33
33
  scanProjectMediaCodecMap
34
- } from "./chunk-DRTUJVLE.js";
34
+ } from "./chunk-CL6ZTNQH.js";
35
35
  import {
36
36
  AUDIT_SEEK_OPTIONS,
37
37
  DEFAULT_ZOOM_PADDING_PX,
@@ -45,21 +45,21 @@ import {
45
45
  seekCompositionTimeline,
46
46
  seekInPage,
47
47
  waitForPreferredSeekTarget
48
- } from "./chunk-ML4IULLQ.js";
48
+ } from "./chunk-REFMKHRE.js";
49
49
  import {
50
50
  BrowserCleanupError,
51
51
  closeManagedBrowser,
52
52
  onStopSignal
53
- } from "./chunk-TTFHBTXQ.js";
53
+ } from "./chunk-VOKI2HSE.js";
54
54
  import {
55
55
  findStageProxyBox
56
- } from "./chunk-ZFBET3PD.js";
56
+ } from "./chunk-JCS7WFRM.js";
57
57
  import {
58
58
  resolveAutoProxy
59
- } from "./chunk-4VZAIVZQ.js";
59
+ } from "./chunk-4OPDZMV6.js";
60
60
  import {
61
61
  injectTagsAtHeadStart
62
- } from "./chunk-PW22CDII.js";
62
+ } from "./chunk-QTGKDF7D.js";
63
63
  import {
64
64
  normalizeErrorMessage
65
65
  } from "./chunk-T2EUWCJE.js";
@@ -310,6 +310,82 @@ function collectTweenRecords() {
310
310
  );
311
311
  }
312
312
 
313
+ // src/utils/contrastMotion.ts
314
+ var AMBIENT_TWEEN_SECONDS = 4;
315
+ function isAmbientTween(tween) {
316
+ return tween.infiniteAncestor || tween.repeat !== 0 || tween.duration >= AMBIENT_TWEEN_SECONDS;
317
+ }
318
+ function measuredInMotion(sample) {
319
+ if (Math.round(sample.opacity * 1e3) < 1e3) return true;
320
+ return sample.tweens.some((tween) => !isAmbientTween(tween) && tween.active);
321
+ }
322
+ function readContrastMotion() {
323
+ const restores = Reflect.get(window, "__contrastAuditRestores");
324
+ const registry = Reflect.get(window, "__timelines");
325
+ const timelines = Object.values(typeof registry === "object" && registry ? registry : {}).filter(
326
+ (timeline) => typeof timeline?.getChildren === "function" && typeof timeline.time === "function"
327
+ );
328
+ const registered = new Set(timelines);
329
+ const byTarget = /* @__PURE__ */ new Map();
330
+ function nestedInAnother(timeline) {
331
+ for (let parent = timeline.parent; parent; parent = parent.parent) {
332
+ if (registered.has(parent)) return true;
333
+ }
334
+ return false;
335
+ }
336
+ function activeInRoot(animation, root) {
337
+ if (animation === root) return true;
338
+ const parent = animation.parent;
339
+ if (!parent || animation.paused() || animation.timeScale() === 0) return false;
340
+ const time = parent.time();
341
+ return animation.startTime() <= time + 1e-6 && time < animation.endTime() - 1e-6 && activeInRoot(parent, root);
342
+ }
343
+ function hasInfiniteAncestor(animation, root) {
344
+ for (let parent = animation.parent; parent; parent = parent.parent) {
345
+ if (parent.repeat() === -1) return true;
346
+ if (parent === root) break;
347
+ }
348
+ return false;
349
+ }
350
+ function addTweens(timeline) {
351
+ for (const tween of timeline.getChildren(true, true, false)) {
352
+ const total = tween.totalDuration();
353
+ if (!(total > 0)) continue;
354
+ const state = {
355
+ active: activeInRoot(tween, timeline),
356
+ infiniteAncestor: hasInfiniteAncestor(tween, timeline),
357
+ duration: tween.duration(),
358
+ repeat: tween.repeat()
359
+ };
360
+ for (const target of tween.targets()) {
361
+ if (target instanceof Element)
362
+ byTarget.set(target, [...byTarget.get(target) ?? [], state]);
363
+ }
364
+ }
365
+ }
366
+ function sampleOf(element) {
367
+ if (!(element instanceof Element)) return null;
368
+ const tweens = [];
369
+ let opacity = 1;
370
+ for (let node = element; node; node = node.parentElement) {
371
+ tweens.push(...byTarget.get(node) ?? []);
372
+ const own = Number.parseFloat(getComputedStyle(node).opacity);
373
+ if (Number.isFinite(own)) opacity *= own;
374
+ }
375
+ return tweens.length > 0 ? { opacity, tweens } : null;
376
+ }
377
+ for (const timeline of timelines) {
378
+ try {
379
+ if (!nestedInAnother(timeline)) addTweens(timeline);
380
+ } catch {
381
+ continue;
382
+ }
383
+ }
384
+ return (Array.isArray(restores) ? restores : []).map(
385
+ (restore) => typeof restore === "object" && restore ? sampleOf(Reflect.get(restore, "el")) : null
386
+ );
387
+ }
388
+
313
389
  // src/utils/checkTypes.ts
314
390
  function rectToBbox(rect) {
315
391
  return { x: rect.left, y: rect.top, width: rect.width, height: rect.height };
@@ -434,7 +510,7 @@ function proxyFailedDraft(message) {
434
510
  return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
435
511
  }
436
512
  async function loadCheckHtmlWithDeferredMedia(dir) {
437
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-ERB43NFP.js");
513
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-GJ2UYZ6E.js");
438
514
  return injectTagsAtHeadStart(
439
515
  await bundleWithLocalizedFonts(dir),
440
516
  `<meta name="${STUDIO_PREVIEW_MARK_META}" content="${STUDIO_PREVIEW_CAPTURE_MODE}">`
@@ -493,7 +569,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
493
569
  ).map((draft) => runtimeFinding(draft, rootAnchor))
494
570
  }));
495
571
  const launchSettleMs = Date.now() - launchSettleStart;
496
- const { analyzeClipMediaFit } = await import("./src-WEECPY6E.js");
572
+ const { analyzeClipMediaFit } = await import("./src-DAW4JYSR.js");
497
573
  for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
498
574
  drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
499
575
  }
@@ -902,7 +978,7 @@ function createPageDriver(page, clock = createRuntimeClock(), sampleLog) {
902
978
  collectGeometryCandidates: (time, request) => collectGeometryCandidates(page, time, request),
903
979
  collectMotionFrame: (time, selectors, scopes) => collectMotionFrame(page, time, selectors, scopes),
904
980
  anchorMotionIssues: (issues) => anchorLayoutIssues(page, issues),
905
- collectContrast: (time, annotations) => collectContrast(page, time, annotations),
981
+ collectContrast: (time, annotations, skipInMotion) => collectContrast(page, time, annotations, skipInMotion),
906
982
  collectCraftFrame: (time) => collectCraftFrame(page, time),
907
983
  collectCraftFilm: () => collectCraftFilm(page)
908
984
  });
@@ -1365,10 +1441,12 @@ async function compositionBbox(page, selector) {
1365
1441
  return rect ? { x: rect.x, y: rect.y, width: rect.width, height: rect.height } : { x: 0, y: 0, width: 0, height: 0 };
1366
1442
  }, selector);
1367
1443
  }
1368
- async function collectContrast(page, time, snapshotAnnotations) {
1444
+ async function collectContrast(page, time, snapshotAnnotations, skipInMotion = false) {
1369
1445
  let prepared = [];
1370
1446
  try {
1371
- prepared = parsePreparedContrast(await prepareContrast(page, time));
1447
+ const candidates = await prepareContrast(page, time);
1448
+ const motion = skipInMotion ? await page.evaluate(readContrastMotion).catch(() => []) : [];
1449
+ prepared = parsePreparedContrast(candidates, motion);
1372
1450
  if (prepared.length === 0 && !snapshotAnnotations) return { entries: [] };
1373
1451
  const { shot, region } = await measurementShot(page, prepared);
1374
1452
  const raw = await finishContrast(
@@ -1541,13 +1619,21 @@ async function finishContrast(page, screenshot, time, candidates, region) {
1541
1619
  { screenshot, time, candidates, region: region ?? null }
1542
1620
  );
1543
1621
  }
1544
- function parsePreparedContrast(raw) {
1545
- return raw.flatMap((value) => {
1622
+ function parsePreparedContrast(raw, motion) {
1623
+ return raw.flatMap((value, index) => {
1546
1624
  if (!isRecord(value)) return [];
1547
1625
  const raw2 = Reflect.get(value, "candidate");
1548
1626
  const candidate = parseContrastCandidate(raw2);
1549
1627
  const anchor = parseAnchor(Reflect.get(value, "anchor"));
1550
- return candidate && anchor ? [{ raw: raw2, candidate, anchor, knownBackdrop: knownBackdrop(raw2) }] : [];
1628
+ return candidate && anchor ? [
1629
+ {
1630
+ raw: raw2,
1631
+ candidate,
1632
+ anchor,
1633
+ knownBackdrop: knownBackdrop(raw2),
1634
+ motion: motion[index] ?? null
1635
+ }
1636
+ ] : [];
1551
1637
  });
1552
1638
  }
1553
1639
  function knownBackdrop(raw) {
@@ -1583,7 +1669,9 @@ function joinContrastEntries(finished, prepared) {
1583
1669
  (candidate) => candidate.candidate.selector === entry.selector && candidate.candidate.text === entry.text
1584
1670
  );
1585
1671
  const match = index >= 0 ? remaining.splice(index, 1)[0] : void 0;
1586
- return match ? [{ ...entry, ...match.anchor }] : [];
1672
+ if (!match) return [];
1673
+ if (!entry.wcagAA && match.motion && measuredInMotion(match.motion)) return [];
1674
+ return [{ ...entry, ...match.anchor }];
1587
1675
  });
1588
1676
  }
1589
1677
  function parseLayoutIssue(value) {
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  shouldTrack
9
- } from "./chunk-QP4UWICL.js";
9
+ } from "./chunk-B22YBW5W.js";
10
10
 
11
11
  // src/telemetry/renderObservability.ts
12
12
  function renderObservabilityTelemetryPayload(observability) {
@@ -3331,7 +3331,13 @@ var DEFAULT_TYPEOF = {
3331
3331
  image: "string"
3332
3332
  };
3333
3333
  function isRecord(v) {
3334
- return typeof v === "object" && v !== null;
3334
+ return typeof v === "object" && v !== null && !Array.isArray(v);
3335
+ }
3336
+ function isFontValue(value) {
3337
+ return isRecord(value) && typeof value.name === "string" && typeof value.source === "string";
3338
+ }
3339
+ function isImageValue(value) {
3340
+ return isRecord(value) && typeof value.url === "string" && (value.alt === void 0 || typeof value.alt === "string") && (value.fit === void 0 || value.fit === "cover" || value.fit === "contain" || value.fit === "fill" || value.fit === "none" || value.fit === "scale-down");
3335
3341
  }
3336
3342
  function isVariableType(t) {
3337
3343
  return typeof t === "string" && t in DEFAULT_TYPEOF;
@@ -3340,6 +3346,8 @@ function isCompositionVariable(v) {
3340
3346
  if (!isRecord(v)) return false;
3341
3347
  if (typeof v.id !== "string" || typeof v.label !== "string") return false;
3342
3348
  if (!isVariableType(v.type)) return false;
3349
+ if (v.type === "font") return typeof v.default === "string" || isFontValue(v.default);
3350
+ if (v.type === "image") return typeof v.default === "string" || isImageValue(v.default);
3343
3351
  if (typeof v.default !== DEFAULT_TYPEOF[v.type]) return false;
3344
3352
  if (v.type === "enum" && !Array.isArray(v.options)) return false;
3345
3353
  return true;
@@ -4478,6 +4486,34 @@ function checkOutputResolutionCompatibility(input) {
4478
4486
  }
4479
4487
  return OK;
4480
4488
  }
4489
+ function outputResolutionForSize(input) {
4490
+ const { compositionWidth, compositionHeight, width, height } = input;
4491
+ if (width === compositionWidth && height === compositionHeight) {
4492
+ return { ok: true, outputResolution: void 0 };
4493
+ }
4494
+ const composition = `${compositionWidth}\xD7${compositionHeight}`;
4495
+ const scale = width / compositionWidth;
4496
+ if (width < compositionWidth || height < compositionHeight) {
4497
+ return {
4498
+ ok: false,
4499
+ message: `${width}\xD7${height} is smaller than the composition (${composition}). Use the composition's size, or a whole-number multiple of it.`
4500
+ };
4501
+ }
4502
+ const preset = VALID_CANVAS_RESOLUTIONS.find(
4503
+ (name) => CANVAS_DIMENSIONS[name].width === width && CANVAS_DIMENSIONS[name].height === height
4504
+ );
4505
+ if (!Number.isInteger(scale) || height !== compositionHeight * scale || !preset || !checkOutputResolutionCompatibility({
4506
+ compositionWidth,
4507
+ compositionHeight,
4508
+ outputResolution: preset
4509
+ }).ok) {
4510
+ return {
4511
+ ok: false,
4512
+ message: `${width}\xD7${height} is not a whole-number multiple of the composition (${composition}) at a supported size. Use ${composition}, or a multiple such as ${compositionWidth * 2}\xD7${compositionHeight * 2} when that is a preset size (${VALID_CANVAS_RESOLUTIONS.map((name) => `${CANVAS_DIMENSIONS[name].width}\xD7${CANVAS_DIMENSIONS[name].height}`).join(", ")}).`
4513
+ };
4514
+ }
4515
+ return { ok: true, outputResolution: preset };
4516
+ }
4481
4517
  function propEntries(props) {
4482
4518
  return Object.entries(props).map(([k, v]) => `${safeJsKey(k)}: ${serializeValue(v)}`);
4483
4519
  }
@@ -5031,6 +5067,7 @@ export {
5031
5067
  validateCompositionHtml,
5032
5068
  suggestMatchingPreset,
5033
5069
  checkOutputResolutionCompatibility,
5070
+ outputResolutionForSize,
5034
5071
  unrollComputedTimeline,
5035
5072
  HTML_BODY_CSS_WIDTH_FIRST_RE,
5036
5073
  HTML_BODY_CSS_HEIGHT_FIRST_RE,
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-5ETJX6WM.js";
17
17
  import {
18
18
  runEnvironmentChecks
19
- } from "./chunk-VFLBOKDI.js";
19
+ } from "./chunk-NZEASM7M.js";
20
20
  import {
21
21
  OPTIONAL_PACKAGES,
22
22
  installedOptionalPackageVersion
@@ -29,26 +29,26 @@ import {
29
29
  } from "./chunk-ZTZA4UWZ.js";
30
30
  import {
31
31
  resolveExtractCacheDir
32
- } from "./chunk-UUFY6A7I.js";
32
+ } from "./chunk-75KIZWAD.js";
33
33
  import {
34
34
  getFreeDiskMb,
35
35
  getShmSizeMb,
36
36
  getSystemMeta
37
- } from "./chunk-BQA3X7TI.js";
37
+ } from "./chunk-QSFWGZG6.js";
38
38
  import {
39
39
  getAvailableMemoryMb
40
40
  } from "./chunk-UIOZIIB7.js";
41
41
  import {
42
42
  getUpdateMeta,
43
43
  withMeta
44
- } from "./chunk-3YGSZSEN.js";
44
+ } from "./chunk-GZCACSED.js";
45
45
  import {
46
46
  CONFIG_PATH,
47
47
  withFileLock
48
48
  } from "./chunk-PSX5SF2N.js";
49
49
  import {
50
50
  VERSION
51
- } from "./chunk-KPUTRG54.js";
51
+ } from "./chunk-MS4BAXOQ.js";
52
52
  import {
53
53
  normalizeErrorMessage
54
54
  } from "./chunk-T2EUWCJE.js";
@@ -234,7 +234,7 @@ function checkEnvironment() {
234
234
  return { ok: true, detail: parts.join(" \xB7 ") };
235
235
  }
236
236
  async function checkWhisper() {
237
- const { findWhisper, getInstallInstructions } = await import("./manager-QZZVJV7Z.js");
237
+ const { findWhisper, getInstallInstructions } = await import("./manager-APB2JLSH.js");
238
238
  const result = findWhisper();
239
239
  if (result) {
240
240
  return { ok: true, detail: result.executablePath };