allyhub 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (632) hide show
  1. package/dist/audio-text.js +1 -1
  2. package/dist/commands/add.js +2 -2
  3. package/dist/commands/cloud-tools.js +5 -5
  4. package/dist/commands/dev.js +1 -1
  5. package/dist/commands/frames/piece.js +1 -1
  6. package/dist/commands/frames/sheet.js +1 -1
  7. package/dist/commands/frames.js +8 -8
  8. package/dist/commands/index.js +1 -1
  9. package/dist/commands/inspect/common.js +1 -1
  10. package/dist/commands/inspect/layout.js +1 -1
  11. package/dist/commands/render.js +1 -1
  12. package/dist/commands/sheet.js +7 -7
  13. package/dist/commands/site.js +3 -2
  14. package/dist/commands/skills.js +3 -3
  15. package/dist/commands/slides.js +2 -2
  16. package/dist/node_modules/@allyhub-next/audio/dist/node/index.js +1 -1
  17. package/dist/node_modules/@allyhub-next/audio/dist/node/master.js +1 -1
  18. package/dist/node_modules/@allyhub-next/audio/package.json +1 -1
  19. package/dist/node_modules/@allyhub-next/browser/dist/html.js +1 -1
  20. package/dist/node_modules/@allyhub-next/browser/package.json +1 -1
  21. package/dist/node_modules/@allyhub-next/build/dist/content.d.ts +4 -0
  22. package/dist/node_modules/@allyhub-next/build/dist/content.js +1 -1
  23. package/dist/node_modules/@allyhub-next/build/dist/index.d.ts +2 -2
  24. package/dist/node_modules/@allyhub-next/build/dist/index.js +1 -1
  25. package/dist/node_modules/@allyhub-next/build/dist/meta-worker.d.ts +2 -2
  26. package/dist/node_modules/@allyhub-next/build/dist/meta-worker.js +3 -3
  27. package/dist/node_modules/@allyhub-next/build/dist/move-refs.d.ts +1 -1
  28. package/dist/node_modules/@allyhub-next/build/dist/move-refs.js +1 -1
  29. package/dist/node_modules/@allyhub-next/build/dist/plugin.d.ts +12 -3
  30. package/dist/node_modules/@allyhub-next/build/dist/plugin.js +7 -6
  31. package/dist/node_modules/@allyhub-next/build/dist/prepare.d.ts +9 -5
  32. package/dist/node_modules/@allyhub-next/build/dist/prepare.js +2 -2
  33. package/dist/node_modules/@allyhub-next/build/dist/vite.d.ts +10 -0
  34. package/dist/node_modules/@allyhub-next/build/dist/vite.js +2 -2
  35. package/dist/node_modules/@allyhub-next/build/package.json +1 -1
  36. package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +2 -2
  37. package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +14 -5
  38. package/dist/node_modules/@allyhub-next/chart/dist/chart.js +1 -1
  39. package/dist/node_modules/@allyhub-next/chart/package.json +1 -1
  40. package/dist/node_modules/@allyhub-next/check/dist/check.js +3 -3
  41. package/dist/node_modules/@allyhub-next/check/package.json +1 -1
  42. package/dist/node_modules/@allyhub-next/cloud/dist/blobs.js +2 -0
  43. package/dist/node_modules/@allyhub-next/cloud/dist/call.js +4 -2
  44. package/dist/node_modules/@allyhub-next/cloud/dist/client.js +1 -1
  45. package/dist/node_modules/@allyhub-next/cloud/dist/errors.js +1 -1
  46. package/dist/node_modules/@allyhub-next/cloud/dist/hashes.js +2 -0
  47. package/dist/node_modules/@allyhub-next/cloud/dist/index.js +1 -1
  48. package/dist/node_modules/@allyhub-next/cloud/dist/sites.js +2 -0
  49. package/dist/node_modules/@allyhub-next/cloud/dist/voice.js +1 -1
  50. package/dist/node_modules/@allyhub-next/cloud/package.json +1 -1
  51. package/dist/node_modules/@allyhub-next/components/package.json +1 -1
  52. package/dist/node_modules/@allyhub-next/components/r/caption-subtitle.json +1 -1
  53. package/dist/node_modules/@allyhub-next/components/src/caption-subtitle.ts +54 -16
  54. package/dist/node_modules/@allyhub-next/dev-server/dist/background.js +1 -1
  55. package/dist/node_modules/@allyhub-next/dev-server/dist/exports.js +1 -1
  56. package/dist/node_modules/@allyhub-next/dev-server/dist/fonts.js +2 -0
  57. package/dist/node_modules/@allyhub-next/dev-server/dist/index.js +1 -1
  58. package/dist/node_modules/@allyhub-next/dev-server/dist/live.js +1 -1
  59. package/dist/node_modules/@allyhub-next/dev-server/dist/project.js +1 -1
  60. package/dist/node_modules/@allyhub-next/dev-server/dist/reach.js +2 -0
  61. package/dist/node_modules/@allyhub-next/dev-server/dist/record.js +2 -0
  62. package/dist/node_modules/@allyhub-next/dev-server/dist/server.js +2 -2
  63. package/dist/node_modules/@allyhub-next/dev-server/dist/tools.js +1 -1
  64. package/dist/node_modules/@allyhub-next/dev-server/dist/tree.js +2 -0
  65. package/dist/node_modules/@allyhub-next/dev-server/package.json +1 -1
  66. package/dist/node_modules/@allyhub-next/doc/package.json +1 -1
  67. package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.js +1 -1
  68. package/dist/node_modules/@allyhub-next/export/dist/export.js +5 -5
  69. package/dist/node_modules/@allyhub-next/export/dist/index.js +1 -1
  70. package/dist/node_modules/@allyhub-next/export/package.json +1 -1
  71. package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.d.ts +205 -0
  72. package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.js +2 -0
  73. package/dist/node_modules/@allyhub-next/formats/dist/data/script.d.ts +4 -1
  74. package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
  75. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +248 -18
  76. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
  77. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +1114 -91
  78. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
  79. package/dist/node_modules/@allyhub-next/formats/dist/data/website.d.ts +20 -0
  80. package/dist/node_modules/@allyhub-next/formats/dist/data/website.js +2 -0
  81. package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +4 -0
  82. package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
  83. package/dist/node_modules/@allyhub-next/formats/dist/items.d.ts +1 -1
  84. package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
  85. package/dist/node_modules/@allyhub-next/formats/dist/media-type.d.ts +3 -0
  86. package/dist/node_modules/@allyhub-next/formats/dist/media-type.js +2 -0
  87. package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +625 -30
  88. package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
  89. package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +2 -0
  90. package/dist/node_modules/@allyhub-next/formats/dist/strict.js +1 -1
  91. package/dist/node_modules/@allyhub-next/formats/dist/zip.d.ts +17 -0
  92. package/dist/node_modules/@allyhub-next/formats/dist/zip.js +2 -0
  93. package/dist/node_modules/@allyhub-next/formats/package.json +2 -1
  94. package/dist/node_modules/@allyhub-next/measure/package.json +1 -1
  95. package/dist/node_modules/@allyhub-next/media/dist/index.d.ts +1 -1
  96. package/dist/node_modules/@allyhub-next/media/dist/index.js +1 -1
  97. package/dist/node_modules/@allyhub-next/media/dist/sheet.d.ts +2 -0
  98. package/dist/node_modules/@allyhub-next/media/dist/sheet.js +7 -7
  99. package/dist/node_modules/@allyhub-next/media/package.json +1 -1
  100. package/dist/node_modules/@allyhub-next/model/package.json +1 -1
  101. package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.d.ts +31 -0
  102. package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.js +2 -0
  103. package/dist/node_modules/@allyhub-next/ooxml/dist/color.d.ts +33 -0
  104. package/dist/node_modules/@allyhub-next/ooxml/dist/color.js +2 -0
  105. package/dist/node_modules/@allyhub-next/ooxml/dist/enums.d.ts +13 -0
  106. package/dist/node_modules/@allyhub-next/ooxml/dist/enums.js +2 -0
  107. package/dist/node_modules/@allyhub-next/ooxml/dist/ext.d.ts +79 -0
  108. package/dist/node_modules/@allyhub-next/ooxml/dist/ext.js +2 -0
  109. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.d.ts +132 -0
  110. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.js +2 -0
  111. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.d.ts +28 -0
  112. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.js +2 -0
  113. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.d.ts +4708 -0
  114. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.js +2 -0
  115. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.d.ts +57 -0
  116. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.js +2 -0
  117. package/dist/node_modules/@allyhub-next/ooxml/dist/index.d.ts +10 -0
  118. package/dist/node_modules/@allyhub-next/ooxml/dist/index.js +2 -0
  119. package/dist/node_modules/@allyhub-next/ooxml/dist/mce.d.ts +12 -0
  120. package/dist/node_modules/@allyhub-next/ooxml/dist/mce.js +2 -0
  121. package/dist/node_modules/@allyhub-next/ooxml/dist/node.d.ts +111 -0
  122. package/dist/node_modules/@allyhub-next/ooxml/dist/node.js +2 -0
  123. package/dist/node_modules/@allyhub-next/ooxml/dist/ns.d.ts +45 -0
  124. package/dist/node_modules/@allyhub-next/ooxml/dist/ns.js +2 -0
  125. package/dist/node_modules/@allyhub-next/ooxml/dist/opc.d.ts +48 -0
  126. package/dist/node_modules/@allyhub-next/ooxml/dist/opc.js +2 -0
  127. package/dist/node_modules/@allyhub-next/ooxml/dist/report.d.ts +45 -0
  128. package/dist/node_modules/@allyhub-next/ooxml/dist/report.js +2 -0
  129. package/dist/node_modules/@allyhub-next/ooxml/dist/xml.d.ts +28 -0
  130. package/dist/node_modules/@allyhub-next/ooxml/dist/xml.js +2 -0
  131. package/dist/node_modules/@allyhub-next/ooxml/package.json +26 -0
  132. package/dist/node_modules/@allyhub-next/project/dist/deck-keys.js +2 -0
  133. package/dist/node_modules/@allyhub-next/project/dist/deck-measure.js +2 -0
  134. package/dist/node_modules/@allyhub-next/project/dist/deck-pool.js +2 -0
  135. package/dist/node_modules/@allyhub-next/project/dist/index.js +1 -1
  136. package/dist/node_modules/@allyhub-next/project/dist/session.js +1 -1
  137. package/dist/node_modules/@allyhub-next/project/dist/stills.js +2 -0
  138. package/dist/node_modules/@allyhub-next/project/package.json +1 -1
  139. package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +338 -0
  140. package/dist/node_modules/@allyhub-next/protocol/dist/account.js +2 -0
  141. package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +12 -13
  142. package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
  143. package/dist/node_modules/@allyhub-next/protocol/dist/blobs.d.ts +35 -0
  144. package/dist/node_modules/@allyhub-next/protocol/dist/blobs.js +2 -0
  145. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +101 -32
  146. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
  147. package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +89 -5
  148. package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
  149. package/dist/node_modules/@allyhub-next/protocol/dist/files.d.ts +2 -2
  150. package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +6 -0
  151. package/dist/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
  152. package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +23 -0
  153. package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
  154. package/dist/node_modules/@allyhub-next/protocol/dist/open.d.ts +13 -0
  155. package/dist/node_modules/@allyhub-next/protocol/dist/open.js +2 -0
  156. package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +73 -59
  157. package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
  158. package/dist/node_modules/@allyhub-next/protocol/dist/routes.d.ts +1 -1
  159. package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
  160. package/dist/node_modules/@allyhub-next/protocol/dist/shares.d.ts +115 -0
  161. package/dist/node_modules/@allyhub-next/protocol/dist/shares.js +2 -0
  162. package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +293 -0
  163. package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +2 -0
  164. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +377 -0
  165. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +2 -0
  166. package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +27 -9
  167. package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +1 -1
  168. package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +53 -14
  169. package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
  170. package/dist/node_modules/@allyhub-next/protocol/package.json +2 -1
  171. package/dist/node_modules/@allyhub-next/registry/package.json +1 -1
  172. package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.js +3 -2
  173. package/dist/node_modules/@allyhub-next/render/dist/doc/index.js +1 -1
  174. package/dist/node_modules/@allyhub-next/render/dist/doc/pdf.js +34 -0
  175. package/dist/node_modules/@allyhub-next/render/dist/doc/print.js +4 -4
  176. package/dist/node_modules/@allyhub-next/render/dist/exports.js +2 -2
  177. package/dist/node_modules/@allyhub-next/render/dist/pdf.js +2 -0
  178. package/dist/node_modules/@allyhub-next/render/package.json +1 -1
  179. package/dist/node_modules/@allyhub-next/runtime/dist/fonts.js +1 -1
  180. package/dist/node_modules/@allyhub-next/runtime/dist/music.js +1 -1
  181. package/dist/node_modules/@allyhub-next/runtime/package.json +1 -1
  182. package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
  183. package/dist/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +25 -5
  184. package/dist/node_modules/@allyhub-next/scaffold/dist/index.js +4 -4
  185. package/dist/node_modules/@allyhub-next/scaffold/package.json +1 -1
  186. package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
  187. package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.d.ts +10 -0
  188. package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.js +3 -3
  189. package/dist/node_modules/@allyhub-next/scenery-host/package.json +1 -1
  190. package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.js +1 -1
  191. package/dist/node_modules/@allyhub-next/sheet/dist/api/index.d.ts +1 -0
  192. package/dist/node_modules/@allyhub-next/sheet/dist/api/index.js +1 -1
  193. package/dist/node_modules/@allyhub-next/sheet/dist/api/page.d.ts +83 -0
  194. package/dist/node_modules/@allyhub-next/sheet/dist/api/page.js +2 -0
  195. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.d.ts +40 -1
  196. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.js +1 -1
  197. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +9 -3
  198. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +1 -1
  199. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +5 -1
  200. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +1 -1
  201. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +60 -13
  202. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +1 -1
  203. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +1 -1
  204. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.d.ts +4 -0
  205. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.js +2 -0
  206. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +1 -1
  207. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +1 -1
  208. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +1 -1
  209. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +27 -1
  210. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +1 -1
  211. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.d.ts +16 -0
  212. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.js +2 -0
  213. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +18 -1
  214. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +1 -1
  215. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +1 -1
  216. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +2 -0
  217. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +1 -1
  218. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +1 -1
  219. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +1 -1
  220. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +1 -1
  221. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +1 -1
  222. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +1 -1
  223. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.d.ts +2 -0
  224. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.js +2 -0
  225. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +1 -1
  226. package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.d.ts +38 -0
  227. package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.js +2 -0
  228. package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.d.ts +19 -0
  229. package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.js +2 -0
  230. package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.d.ts +49 -0
  231. package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.js +2 -0
  232. package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +82 -0
  233. package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.js +2 -0
  234. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +6 -1
  235. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +1 -1
  236. package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +1 -1
  237. package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
  238. package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +15 -0
  239. package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +1 -1
  240. package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +29 -8
  241. package/dist/node_modules/@allyhub-next/sheet/dist/export.js +3 -4
  242. package/dist/node_modules/@allyhub-next/sheet/dist/file.js +2 -2
  243. package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +8 -2
  244. package/dist/node_modules/@allyhub-next/sheet/dist/format.js +1 -1
  245. package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +52 -4
  246. package/dist/node_modules/@allyhub-next/sheet/dist/html.js +43 -11
  247. package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +7 -3
  248. package/dist/node_modules/@allyhub-next/sheet/dist/index.js +1 -1
  249. package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +1 -1
  250. package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +98 -0
  251. package/dist/node_modules/@allyhub-next/sheet/dist/paginate.js +2 -0
  252. package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
  253. package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +32 -0
  254. package/dist/node_modules/@allyhub-next/sheet/dist/table-style.js +2 -0
  255. package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.d.ts +3 -0
  256. package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.js +2 -0
  257. package/dist/node_modules/@allyhub-next/sheet/dist/values.js +1 -1
  258. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +10 -1
  259. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +1 -1
  260. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +12 -1
  261. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
  262. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +14 -4
  263. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +2 -2
  264. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +11 -1
  265. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +36 -16
  266. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +6 -1
  267. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
  268. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +44 -2
  269. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -1
  270. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.d.ts +23 -0
  271. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.js +2 -0
  272. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +2 -0
  273. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +1 -1
  274. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +6 -0
  275. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
  276. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +40 -0
  277. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +2 -0
  278. package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
  279. package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +1 -1
  280. package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +121 -44
  281. package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
  282. package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
  283. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +50 -13
  284. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
  285. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +1 -1
  286. package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +1 -1
  287. package/dist/node_modules/@allyhub-next/slides-core/dist/code.d.ts +33 -0
  288. package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +2 -0
  289. package/dist/node_modules/@allyhub-next/slides-core/dist/components.d.ts +31 -0
  290. package/dist/node_modules/@allyhub-next/slides-core/dist/components.js +2 -0
  291. package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +188 -5
  292. package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
  293. package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +43 -21
  294. package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +3 -3
  295. package/dist/node_modules/@allyhub-next/slides-core/dist/identity.d.ts +17 -0
  296. package/dist/node_modules/@allyhub-next/slides-core/dist/identity.js +2 -0
  297. package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +5 -0
  298. package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
  299. package/dist/node_modules/@allyhub-next/slides-core/dist/lang.d.ts +6 -0
  300. package/dist/node_modules/@allyhub-next/slides-core/dist/lang.js +2 -0
  301. package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +1 -1
  302. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +58 -0
  303. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +2 -0
  304. package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +38 -4
  305. package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +27 -1
  306. package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
  307. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +26 -5
  308. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
  309. package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +18 -16
  310. package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +2 -2
  311. package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +51 -53
  312. package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +1 -1
  313. package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +27 -0
  314. package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +1 -1
  315. package/dist/node_modules/@allyhub-next/slides-core/dist/values.d.ts +7 -0
  316. package/dist/node_modules/@allyhub-next/slides-core/dist/values.js +2 -0
  317. package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
  318. package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.js +1 -1
  319. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/code.js +4 -0
  320. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/index.js +3 -0
  321. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/names.js +2 -0
  322. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/script.js +2 -0
  323. package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.js +1 -1
  324. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/chart.js +2 -0
  325. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/common.js +2 -0
  326. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/index.js +4 -0
  327. package/dist/{site.js → node_modules/@allyhub-next/slides-pptx/dist/read/model.js} +1 -1
  328. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/shapes.js +2 -0
  329. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/table.js +2 -0
  330. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/text.js +2 -0
  331. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/timing.js +2 -0
  332. package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.js +1 -1
  333. package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.js +1 -1
  334. package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.js +1 -1
  335. package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.js +1 -1
  336. package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.js +2 -2
  337. package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.js +2 -2
  338. package/dist/node_modules/@allyhub-next/slides-pptx/package.json +1 -1
  339. package/dist/node_modules/@allyhub-next/slides-runtime/dist/component.js +2 -0
  340. package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.js +2 -2
  341. package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.js +1 -1
  342. package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.js +5 -5
  343. package/dist/node_modules/@allyhub-next/slides-runtime/package.json +5 -1
  344. package/dist/node_modules/@allyhub-next/stage/dist/graphics.js +1 -1
  345. package/dist/node_modules/@allyhub-next/stage/dist/index.js +1 -1
  346. package/dist/node_modules/@allyhub-next/stage/dist/page.js +22 -12
  347. package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.js +5 -5
  348. package/dist/node_modules/@allyhub-next/stage/dist/server.js +1 -1
  349. package/dist/node_modules/@allyhub-next/stage/package.json +1 -1
  350. package/dist/node_modules/@allyhub-next/stage-page/dist/host.js +1 -20
  351. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/probe.html +8 -0
  352. package/dist/{astro.js → node_modules/@allyhub-next/stage-page/dist/runtime/probe.js} +1 -1
  353. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/runtime.js +79 -0
  354. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.html +21 -0
  355. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.js +3 -0
  356. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.html +9 -0
  357. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.js +3 -0
  358. package/dist/node_modules/@allyhub-next/stage-page/package.json +2 -3
  359. package/dist/node_modules/@allyhub-next/video-core/dist/captions.js +6 -6
  360. package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +47 -8
  361. package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
  362. package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +1 -0
  363. package/dist/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
  364. package/dist/node_modules/@allyhub-next/video-core/dist/marks.d.ts +14 -0
  365. package/dist/node_modules/@allyhub-next/video-core/dist/marks.js +1 -1
  366. package/dist/node_modules/@allyhub-next/video-core/dist/music.d.ts +2 -1
  367. package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +11 -2
  368. package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +4 -0
  369. package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
  370. package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +2 -2
  371. package/dist/node_modules/@allyhub-next/video-core/dist/schema.js +1 -1
  372. package/dist/node_modules/@allyhub-next/video-core/dist/script.d.ts +2 -1
  373. package/dist/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
  374. package/dist/node_modules/@allyhub-next/video-core/dist/source.d.ts +7 -0
  375. package/dist/node_modules/@allyhub-next/video-core/dist/source.js +2 -0
  376. package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +10 -33
  377. package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
  378. package/dist/node_modules/@allyhub-next/website/LICENSE +241 -0
  379. package/dist/node_modules/@allyhub-next/website/dist/index.js +2 -0
  380. package/dist/node_modules/@allyhub-next/website/dist/publish.js +3 -0
  381. package/dist/node_modules/@allyhub-next/website/dist/rules.js +2 -0
  382. package/dist/node_modules/@allyhub-next/website/dist/website.js +4 -0
  383. package/dist/node_modules/@allyhub-next/website/package.json +13 -0
  384. package/dist/text/facts-text.js +4 -4
  385. package/dist/works.js +1 -1
  386. package/editor-web/assets/calc-worker-Bz9r26p1.js +158 -0
  387. package/editor-web/assets/dist-0emakyZE.js +36 -0
  388. package/editor-web/assets/dist-B3UoDUa5.js +37 -0
  389. package/editor-web/assets/dist-B6KzR3pN.js +10 -0
  390. package/editor-web/assets/dist-Bc5iA5k1.js +1 -0
  391. package/editor-web/assets/dist-CTQIm8Im.js +10 -0
  392. package/editor-web/assets/dist-CiHNHwyq.js +2 -0
  393. package/editor-web/assets/dist-DNZ8PQ-E.js +224 -0
  394. package/editor-web/assets/index-CFt3ovRY.js +69 -0
  395. package/editor-web/assets/index-ujKjdu_s.css +2 -0
  396. package/editor-web/assets/minus-BhoPZC5P.js +1 -0
  397. package/editor-web/assets/react-C_-rEEBU.js +101 -0
  398. package/editor-web/assets/tabs-Den4gHrU.js +105 -0
  399. package/editor-web/assets/text-align-start-CsW4nqqL.js +1 -0
  400. package/editor-web/index.html +5 -5
  401. package/package.json +8 -14
  402. package/dist/astro.d.ts +0 -2
  403. package/dist/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +0 -52
  404. package/dist/node_modules/@allyhub-next/audio/dist/decode.d.ts +0 -33
  405. package/dist/node_modules/@allyhub-next/audio/dist/envelope.d.ts +0 -37
  406. package/dist/node_modules/@allyhub-next/audio/dist/index.d.ts +0 -17
  407. package/dist/node_modules/@allyhub-next/audio/dist/levels.d.ts +0 -97
  408. package/dist/node_modules/@allyhub-next/audio/dist/master.d.ts +0 -29
  409. package/dist/node_modules/@allyhub-next/audio/dist/music.d.ts +0 -11
  410. package/dist/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +0 -39
  411. package/dist/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +0 -25
  412. package/dist/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +0 -31
  413. package/dist/node_modules/@allyhub-next/audio/dist/node/index.d.ts +0 -8
  414. package/dist/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +0 -18
  415. package/dist/node_modules/@allyhub-next/audio/dist/node/master.d.ts +0 -42
  416. package/dist/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +0 -60
  417. package/dist/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +0 -31
  418. package/dist/node_modules/@allyhub-next/audio/dist/plan.d.ts +0 -143
  419. package/dist/node_modules/@allyhub-next/audio/dist/recorded.d.ts +0 -26
  420. package/dist/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +0 -47
  421. package/dist/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +0 -89
  422. package/dist/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +0 -64
  423. package/dist/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +0 -26
  424. package/dist/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +0 -42
  425. package/dist/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +0 -56
  426. package/dist/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +0 -10
  427. package/dist/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +0 -12
  428. package/dist/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +0 -67
  429. package/dist/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +0 -32
  430. package/dist/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +0 -27
  431. package/dist/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +0 -64
  432. package/dist/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +0 -78
  433. package/dist/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +0 -111
  434. package/dist/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +0 -3
  435. package/dist/node_modules/@allyhub-next/audio/dist/render.d.ts +0 -26
  436. package/dist/node_modules/@allyhub-next/audio/dist/sfx.d.ts +0 -10
  437. package/dist/node_modules/@allyhub-next/audio/dist/shape.d.ts +0 -118
  438. package/dist/node_modules/@allyhub-next/audio/dist/voice.d.ts +0 -45
  439. package/dist/node_modules/@allyhub-next/browser/dist/browser.d.ts +0 -24
  440. package/dist/node_modules/@allyhub-next/browser/dist/capture.d.ts +0 -61
  441. package/dist/node_modules/@allyhub-next/browser/dist/cdp.d.ts +0 -51
  442. package/dist/node_modules/@allyhub-next/browser/dist/flags.d.ts +0 -13
  443. package/dist/node_modules/@allyhub-next/browser/dist/frames.d.ts +0 -35
  444. package/dist/node_modules/@allyhub-next/browser/dist/html.d.ts +0 -19
  445. package/dist/node_modules/@allyhub-next/browser/dist/index.d.ts +0 -10
  446. package/dist/node_modules/@allyhub-next/browser/dist/launch.d.ts +0 -35
  447. package/dist/node_modules/@allyhub-next/browser/dist/page.d.ts +0 -67
  448. package/dist/node_modules/@allyhub-next/browser/dist/server.d.ts +0 -26
  449. package/dist/node_modules/@allyhub-next/check/dist/cache.d.ts +0 -46
  450. package/dist/node_modules/@allyhub-next/check/dist/check.d.ts +0 -142
  451. package/dist/node_modules/@allyhub-next/check/dist/generated.d.ts +0 -22
  452. package/dist/node_modules/@allyhub-next/check/dist/index.d.ts +0 -7
  453. package/dist/node_modules/@allyhub-next/check/dist/plans.d.ts +0 -111
  454. package/dist/node_modules/@allyhub-next/check/dist/result.d.ts +0 -12
  455. package/dist/node_modules/@allyhub-next/check/dist/scenery.d.ts +0 -23
  456. package/dist/node_modules/@allyhub-next/dev-server/dist/background.d.ts +0 -50
  457. package/dist/node_modules/@allyhub-next/dev-server/dist/card.d.ts +0 -17
  458. package/dist/node_modules/@allyhub-next/dev-server/dist/exports.d.ts +0 -18
  459. package/dist/node_modules/@allyhub-next/dev-server/dist/index.d.ts +0 -11
  460. package/dist/node_modules/@allyhub-next/dev-server/dist/live.d.ts +0 -77
  461. package/dist/node_modules/@allyhub-next/dev-server/dist/mime.d.ts +0 -2
  462. package/dist/node_modules/@allyhub-next/dev-server/dist/mime.js +0 -2
  463. package/dist/node_modules/@allyhub-next/dev-server/dist/paths.d.ts +0 -27
  464. package/dist/node_modules/@allyhub-next/dev-server/dist/project.d.ts +0 -153
  465. package/dist/node_modules/@allyhub-next/dev-server/dist/reveal.d.ts +0 -6
  466. package/dist/node_modules/@allyhub-next/dev-server/dist/server.d.ts +0 -47
  467. package/dist/node_modules/@allyhub-next/dev-server/dist/sound.d.ts +0 -21
  468. package/dist/node_modules/@allyhub-next/dev-server/dist/stage.d.ts +0 -82
  469. package/dist/node_modules/@allyhub-next/dev-server/dist/stage.js +0 -121
  470. package/dist/node_modules/@allyhub-next/dev-server/dist/tools.d.ts +0 -24
  471. package/dist/node_modules/@allyhub-next/dev-server/dist/validate.d.ts +0 -6
  472. package/dist/node_modules/@allyhub-next/dev-server/dist/watcher.d.ts +0 -47
  473. package/dist/node_modules/@allyhub-next/dev-server/dist/writer.d.ts +0 -51
  474. package/dist/node_modules/@allyhub-next/export/dist/batch.d.ts +0 -70
  475. package/dist/node_modules/@allyhub-next/export/dist/deck-fonts.d.ts +0 -24
  476. package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.d.ts +0 -12
  477. package/dist/node_modules/@allyhub-next/export/dist/export.d.ts +0 -123
  478. package/dist/node_modules/@allyhub-next/export/dist/index.d.ts +0 -5
  479. package/dist/node_modules/@allyhub-next/export/dist/names.d.ts +0 -36
  480. package/dist/node_modules/@allyhub-next/measure/dist/compare.d.ts +0 -195
  481. package/dist/node_modules/@allyhub-next/measure/dist/contrast.d.ts +0 -14
  482. package/dist/node_modules/@allyhub-next/measure/dist/cut-sheet.d.ts +0 -90
  483. package/dist/node_modules/@allyhub-next/measure/dist/cuts.d.ts +0 -108
  484. package/dist/node_modules/@allyhub-next/measure/dist/facts.d.ts +0 -60
  485. package/dist/node_modules/@allyhub-next/measure/dist/fidelity.d.ts +0 -40
  486. package/dist/node_modules/@allyhub-next/measure/dist/flat.d.ts +0 -42
  487. package/dist/node_modules/@allyhub-next/measure/dist/index.d.ts +0 -24
  488. package/dist/node_modules/@allyhub-next/measure/dist/loop.d.ts +0 -22
  489. package/dist/node_modules/@allyhub-next/measure/dist/overlay.d.ts +0 -57
  490. package/dist/node_modules/@allyhub-next/measure/dist/recording-report.d.ts +0 -66
  491. package/dist/node_modules/@allyhub-next/measure/dist/reference/compare.d.ts +0 -118
  492. package/dist/node_modules/@allyhub-next/measure/dist/reference/folder.d.ts +0 -75
  493. package/dist/node_modules/@allyhub-next/measure/dist/reference/interpret.d.ts +0 -39
  494. package/dist/node_modules/@allyhub-next/measure/dist/reference/piece.d.ts +0 -53
  495. package/dist/node_modules/@allyhub-next/measure/dist/reference/sections.d.ts +0 -53
  496. package/dist/node_modules/@allyhub-next/measure/dist/reference/sets.d.ts +0 -84
  497. package/dist/node_modules/@allyhub-next/measure/dist/reference/text.d.ts +0 -27
  498. package/dist/node_modules/@allyhub-next/measure/dist/reference/video.d.ts +0 -55
  499. package/dist/node_modules/@allyhub-next/measure/dist/seams.d.ts +0 -46
  500. package/dist/node_modules/@allyhub-next/measure/dist/sound-measures.d.ts +0 -74
  501. package/dist/node_modules/@allyhub-next/measure/dist/sound-report.d.ts +0 -156
  502. package/dist/node_modules/@allyhub-next/measure/dist/still.d.ts +0 -58
  503. package/dist/node_modules/@allyhub-next/measure/dist/version-voice.d.ts +0 -12
  504. package/dist/node_modules/@allyhub-next/project/dist/console.d.ts +0 -34
  505. package/dist/node_modules/@allyhub-next/project/dist/digest.d.ts +0 -9
  506. package/dist/node_modules/@allyhub-next/project/dist/index.d.ts +0 -11
  507. package/dist/node_modules/@allyhub-next/project/dist/ledger.d.ts +0 -17
  508. package/dist/node_modules/@allyhub-next/project/dist/media-index.d.ts +0 -27
  509. package/dist/node_modules/@allyhub-next/project/dist/page.d.ts +0 -119
  510. package/dist/node_modules/@allyhub-next/project/dist/says.d.ts +0 -15
  511. package/dist/node_modules/@allyhub-next/project/dist/scenery.d.ts +0 -35
  512. package/dist/node_modules/@allyhub-next/project/dist/session.d.ts +0 -37
  513. package/dist/node_modules/@allyhub-next/project/dist/stretch.d.ts +0 -38
  514. package/dist/node_modules/@allyhub-next/project/dist/version.d.ts +0 -114
  515. package/dist/node_modules/@allyhub-next/render/dist/cap.d.ts +0 -41
  516. package/dist/node_modules/@allyhub-next/render/dist/capture.d.ts +0 -78
  517. package/dist/node_modules/@allyhub-next/render/dist/clip.d.ts +0 -27
  518. package/dist/node_modules/@allyhub-next/render/dist/composite.d.ts +0 -106
  519. package/dist/node_modules/@allyhub-next/render/dist/delivery.d.ts +0 -18
  520. package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.d.ts +0 -3
  521. package/dist/node_modules/@allyhub-next/render/dist/doc/index.d.ts +0 -3
  522. package/dist/node_modules/@allyhub-next/render/dist/doc/print.d.ts +0 -51
  523. package/dist/node_modules/@allyhub-next/render/dist/encode.d.ts +0 -111
  524. package/dist/node_modules/@allyhub-next/render/dist/errors.d.ts +0 -15
  525. package/dist/node_modules/@allyhub-next/render/dist/exports.d.ts +0 -76
  526. package/dist/node_modules/@allyhub-next/render/dist/ffmpeg.d.ts +0 -75
  527. package/dist/node_modules/@allyhub-next/render/dist/footage.d.ts +0 -169
  528. package/dist/node_modules/@allyhub-next/render/dist/image.d.ts +0 -16
  529. package/dist/node_modules/@allyhub-next/render/dist/index.d.ts +0 -26
  530. package/dist/node_modules/@allyhub-next/render/dist/junction.d.ts +0 -70
  531. package/dist/node_modules/@allyhub-next/render/dist/look.d.ts +0 -21
  532. package/dist/node_modules/@allyhub-next/render/dist/page.d.ts +0 -186
  533. package/dist/node_modules/@allyhub-next/render/dist/parts.d.ts +0 -140
  534. package/dist/node_modules/@allyhub-next/render/dist/png.d.ts +0 -37
  535. package/dist/node_modules/@allyhub-next/render/dist/pool.d.ts +0 -54
  536. package/dist/node_modules/@allyhub-next/render/dist/post-probe.d.ts +0 -27
  537. package/dist/node_modules/@allyhub-next/render/dist/post.d.ts +0 -27
  538. package/dist/node_modules/@allyhub-next/render/dist/render.d.ts +0 -151
  539. package/dist/node_modules/@allyhub-next/render/dist/segments.d.ts +0 -40
  540. package/dist/node_modules/@allyhub-next/render/dist/sound.d.ts +0 -24
  541. package/dist/node_modules/@allyhub-next/render/dist/stills.d.ts +0 -41
  542. package/dist/node_modules/@allyhub-next/render/dist/tools.d.ts +0 -25
  543. package/dist/node_modules/@allyhub-next/render/dist/webp.d.ts +0 -17
  544. package/dist/node_modules/@allyhub-next/runtime/dist/bridge.d.ts +0 -211
  545. package/dist/node_modules/@allyhub-next/runtime/dist/captions.d.ts +0 -24
  546. package/dist/node_modules/@allyhub-next/runtime/dist/clock.d.ts +0 -32
  547. package/dist/node_modules/@allyhub-next/runtime/dist/compose.d.ts +0 -149
  548. package/dist/node_modules/@allyhub-next/runtime/dist/console.d.ts +0 -21
  549. package/dist/node_modules/@allyhub-next/runtime/dist/contrast.d.ts +0 -13
  550. package/dist/node_modules/@allyhub-next/runtime/dist/embed.d.ts +0 -50
  551. package/dist/node_modules/@allyhub-next/runtime/dist/env.d.ts +0 -101
  552. package/dist/node_modules/@allyhub-next/runtime/dist/errors.d.ts +0 -21
  553. package/dist/node_modules/@allyhub-next/runtime/dist/facade.d.ts +0 -42
  554. package/dist/node_modules/@allyhub-next/runtime/dist/fonts.d.ts +0 -110
  555. package/dist/node_modules/@allyhub-next/runtime/dist/footage.d.ts +0 -52
  556. package/dist/node_modules/@allyhub-next/runtime/dist/frame.d.ts +0 -61
  557. package/dist/node_modules/@allyhub-next/runtime/dist/guards.d.ts +0 -32
  558. package/dist/node_modules/@allyhub-next/runtime/dist/index.d.ts +0 -14
  559. package/dist/node_modules/@allyhub-next/runtime/dist/inspect.d.ts +0 -112
  560. package/dist/node_modules/@allyhub-next/runtime/dist/locate.d.ts +0 -11
  561. package/dist/node_modules/@allyhub-next/runtime/dist/measure.d.ts +0 -41
  562. package/dist/node_modules/@allyhub-next/runtime/dist/mix-plan.d.ts +0 -42
  563. package/dist/node_modules/@allyhub-next/runtime/dist/music.d.ts +0 -29
  564. package/dist/node_modules/@allyhub-next/runtime/dist/output.d.ts +0 -5
  565. package/dist/node_modules/@allyhub-next/runtime/dist/pictures.d.ts +0 -39
  566. package/dist/node_modules/@allyhub-next/runtime/dist/piece.d.ts +0 -34
  567. package/dist/node_modules/@allyhub-next/runtime/dist/player/clips.d.ts +0 -41
  568. package/dist/node_modules/@allyhub-next/runtime/dist/player/cutout.d.ts +0 -57
  569. package/dist/node_modules/@allyhub-next/runtime/dist/player/player.d.ts +0 -78
  570. package/dist/node_modules/@allyhub-next/runtime/dist/reads.d.ts +0 -132
  571. package/dist/node_modules/@allyhub-next/runtime/dist/sound.d.ts +0 -22
  572. package/dist/node_modules/@allyhub-next/runtime/dist/speech.d.ts +0 -107
  573. package/dist/node_modules/@allyhub-next/runtime/dist/stage-kit.d.ts +0 -12
  574. package/dist/node_modules/@allyhub-next/runtime/dist/stage.d.ts +0 -34
  575. package/dist/node_modules/@allyhub-next/runtime/dist/styles.d.ts +0 -35
  576. package/dist/node_modules/@allyhub-next/runtime/dist/takes.d.ts +0 -72
  577. package/dist/node_modules/@allyhub-next/runtime/dist/titles.d.ts +0 -10
  578. package/dist/node_modules/@allyhub-next/runtime/dist/transitions.d.ts +0 -26
  579. package/dist/node_modules/@allyhub-next/site/dist/assets.d.ts +0 -59
  580. package/dist/node_modules/@allyhub-next/site/dist/assets.js +0 -2
  581. package/dist/node_modules/@allyhub-next/site/dist/astro.d.ts +0 -22
  582. package/dist/node_modules/@allyhub-next/site/dist/astro.js +0 -3
  583. package/dist/node_modules/@allyhub-next/site/dist/lockfile.d.ts +0 -40
  584. package/dist/node_modules/@allyhub-next/site/dist/lockfile.js +0 -3
  585. package/dist/node_modules/@allyhub-next/site/dist/media.d.ts +0 -24
  586. package/dist/node_modules/@allyhub-next/site/dist/media.js +0 -4
  587. package/dist/node_modules/@allyhub-next/site/package.json +0 -25
  588. package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.d.ts +0 -6
  589. package/dist/node_modules/@allyhub-next/slides-pptx/dist/fonts.d.ts +0 -45
  590. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.d.ts +0 -18
  591. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.js +0 -3
  592. package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.d.ts +0 -5
  593. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.d.ts +0 -55
  594. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.js +0 -4
  595. package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.d.ts +0 -67
  596. package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.d.ts +0 -21
  597. package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.d.ts +0 -4
  598. package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.d.ts +0 -32
  599. package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.d.ts +0 -32
  600. package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.d.ts +0 -26
  601. package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.d.ts +0 -40
  602. package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.d.ts +0 -4
  603. package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.js +0 -2
  604. package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.d.ts +0 -4
  605. package/dist/node_modules/@allyhub-next/slides-runtime/dist/ink.d.ts +0 -10
  606. package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.d.ts +0 -6
  607. package/dist/node_modules/@allyhub-next/stage/dist/bakes.d.ts +0 -42
  608. package/dist/node_modules/@allyhub-next/stage/dist/graphics.d.ts +0 -7
  609. package/dist/node_modules/@allyhub-next/stage/dist/identity.d.ts +0 -2
  610. package/dist/node_modules/@allyhub-next/stage/dist/index.d.ts +0 -9
  611. package/dist/node_modules/@allyhub-next/stage/dist/page.d.ts +0 -87
  612. package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.d.ts +0 -69
  613. package/dist/node_modules/@allyhub-next/stage/dist/scenery-solve.d.ts +0 -49
  614. package/dist/node_modules/@allyhub-next/stage/dist/scenery.d.ts +0 -8
  615. package/dist/node_modules/@allyhub-next/stage/dist/server.d.ts +0 -21
  616. package/dist/node_modules/@allyhub-next/stage-page/dist/host.d.ts +0 -22
  617. package/dist/node_modules/@allyhub-next/stage-page/dist/page.js +0 -79
  618. package/dist/site.d.ts +0 -2
  619. package/editor-web/assets/dist-Cg2PdedY.js +0 -6
  620. package/editor-web/assets/dist-CuW84oPe.js +0 -233
  621. package/editor-web/assets/dist-CxAS_vp7.js +0 -2
  622. package/editor-web/assets/dist-DCVaj9i1.js +0 -4
  623. package/editor-web/assets/dist-DGVUuVPB.js +0 -33
  624. package/editor-web/assets/dist-Yi3sy7Ea.js +0 -1
  625. package/editor-web/assets/index-B7S9RZhL.css +0 -2
  626. package/editor-web/assets/index-pwRfZ2Jv.js +0 -69
  627. package/editor-web/assets/minus-BizJdinJ.js +0 -1
  628. package/editor-web/assets/react-D54s6gwK.js +0 -101
  629. package/editor-web/assets/textarea-CvxipnGW.js +0 -105
  630. package/editor-web/assets/trash-2-Bq1Dt8XG.js +0 -1
  631. package/editor-web/assets/undo-2-Djhvu4xt.js +0 -1
  632. /package/dist/node_modules/@allyhub-next/{site → ooxml}/LICENSE +0 -0
@@ -1,3 +0,0 @@
1
- /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{stringify as ee}from"yaml";import{AUTOSHAPE_STYLE as z,CONNECTOR_STYLE as G,NAME_OF_TYPE as U,OFFICE_TEXT_STYLES as fe,pathText as ue,SLIDE_SIZES as ce,DRAWN_TEXTBOX_FRAME as me,TEXT_INSETS as A,TEXTBOX_FRAME as _e,toPt as N}from"@allyhub-next/slides-core";const he={l:"PP_ALIGN.LEFT",ctr:"PP_ALIGN.CENTER",r:"PP_ALIGN.RIGHT",just:"PP_ALIGN.JUSTIFY"},pe={t:"MSO_ANCHOR.TOP",ctr:"MSO_ANCHOR.MIDDLE",b:"MSO_ANCHOR.BOTTOM"},$e={none:"MSO_AUTO_SIZE.NONE",shape:"MSO_AUTO_SIZE.SHAPE_TO_FIT_TEXT",text:"MSO_AUTO_SIZE.TEXT_TO_FIT_SHAPE"},ge={title:"TITLE",ctrTitle:"CENTER_TITLE",subTitle:"SUBTITLE",body:"BODY",pic:"PICTURE",media:"MEDIA_CLIP",obj:"OBJECT",dt:"DATE",ftr:"FOOTER",sldNum:"SLIDE_NUMBER"},be={rect:"RECTANGLE",roundRect:"ROUNDED_RECTANGLE",ellipse:"OVAL",triangle:"ISOSCELES_TRIANGLE",rightArrow:"RIGHT_ARROW"},S=e=>`Emu(${String(Math.round(e))})`,R=e=>`Pt(${String(Math.round(e/12700*100)/100)})`,$=e=>JSON.stringify(e);export function nameOf(e,n,o){const a=e.normalize("NFKD").toLowerCase().replace(/[^a-z0-9_-]+/gu,"-").replace(/^-+|-+$/gu,"").slice(0,40)||o;let f=a;for(let l=2;n.has(f);l++)f=`${a}-${String(l)}`;return n.add(f),f}const I=(e,n)=>typeof n=="string"?`${e}.theme_color = ${$(n)};`:`${e}.rgb = ${$(n.rgb)};`;function ne(e,n){return n?[...n.name===void 0?[]:[`${e}.name = ${$(n.name)};`],...n.size===void 0?[]:[`${e}.size = ${R(n.size)};`],...n.bold===void 0?[]:[`${e}.bold = ${String(n.bold)};`],...n.italic===void 0?[]:[`${e}.italic = ${String(n.italic)};`],...n.spacing===void 0?[]:[`${e}.spacing = ${R(n.spacing)};`],...n.underline===void 0?[]:[`${e}.underline = ${String(n.underline)};`],...n.color!==void 0?[I(`${e}.color`,n.color)]:[],...n.rgb!==void 0?[I(`${e}.color`,{rgb:n.rgb})]:[]]:[]}function J(e,n,o){const a=n.line_spacing;return[...n.alignment===void 0?[]:[`${e}.alignment = ${he[n.alignment]};`],...a===void 0?[]:[`${e}.line_spacing = ${"lines"in a?String(Math.round(a.lines*1e3)/1e3):R(a.fixed)};`],...n.space_before===void 0?[]:[`${e}.space_before = ${R(n.space_before)};`],...n.space_after===void 0?[]:[`${e}.space_after = ${R(n.space_after)};`],...o&&n.bullet!==void 0?[`${e}.bullet = ${n.bullet===null?"null":$(n.bullet)};`]:[],...o&&n.bullet_font!==void 0?[`${e}.bullet_font = ${$(n.bullet_font)};`]:[],...o&&n.margin_left!==void 0?[`${e}.margin_left = ${S(n.margin_left)};`]:[],...o&&n.indent!==void 0?[`${e}.indent = ${S(n.indent)};`]:[],...ne(`${e}.font`,n.font)]}function te(e,n){const o=n??[],a=o[0];if(a&&o.length===9&&Object.keys(a).length>0&&o.every(f=>JSON.stringify(f)===JSON.stringify(a))){const f=J("level",a,!0);return[`for (const level of ${e}) {`,...f.map(l=>` ${l}`),"}"]}return o.flatMap((f,l)=>J(`${e}[${String(l)}]`,f,!0))}const X={textbox:{vertical_anchor:"t",..._e,margin_left:A.left,margin_top:A.top,margin_right:A.right,margin_bottom:A.bottom},autoshape:{vertical_anchor:z.vertical_anchor,word_wrap:!0,auto_size:"none",margin_left:A.left,margin_top:A.top,margin_right:A.right,margin_bottom:A.bottom}},ye={...X.textbox,...me};function B(e,n,o={}){if(!n)return[];const a=m=>n[m]===void 0||n[m]===o[m]?void 0:n[m],f=a("vertical_anchor"),l=a("auto_size"),c=a("word_wrap");return[...f===void 0?[]:[`${e}.vertical_anchor = ${pe[f]};`],...l===void 0?[]:[`${e}.auto_size = ${$e[l]};`],...c===void 0?[]:[`${e}.word_wrap = ${String(c)};`],...["margin_left","margin_top","margin_right","margin_bottom"].flatMap(m=>{const y=a(m);return y===void 0?[]:[`${e}.${m} = ${S(y)};`]}),...te(`${e}.list_style`,n.levels)]}const j=(e,n)=>JSON.stringify(e)===JSON.stringify(n);function ie(e,n,o){return n===void 0||j(n,o)?[]:n===null?[`${e}.fill.background();`]:[`${e}.fill.solid();`,I(`${e}.fill.fore_color`,n)]}function Y(e,n,o){return[...n.line===void 0||j(n.line,o.line)?[]:n.line===null?[`${e}.line.fill.background();`]:[I(`${e}.line.color`,n.line)],...n.line_width===void 0||n.line===null||n.line_width===o.line_width?[]:[`${e}.line.width = ${S(n.line_width)};`],...n.line_dash===void 0?[]:[`${e}.line.dash_style = ${$(n.line_dash)};`],...n.line_begin===void 0?[]:[`${e}.line.begin_arrow = ${$(n.line_begin)};`],...n.line_end===void 0?[]:[`${e}.line.end_arrow = ${$(n.line_end)};`]]}const Z=e=>({...e.line_dash===void 0?{}:{line_dash:e.line_dash},...e.line_begin===void 0?{}:{line_begin:e.line_begin},...e.line_end===void 0?{}:{line_end:e.line_end}});function xe(e,n,o){const a=n.frame??{left:0,top:0,width:0,height:0},f=o.w===0?1:a.width/o.w,l=o.h===0?1:a.height/o.h,c=o.steps.flatMap(r=>r.op==="close"?[]:r.op==="curve"?[[r.x1,r.y1],[r.x2,r.y2],[r.x,r.y]]:[[r.x,r.y]]),m=r=>Math.min(...c.map(_=>_[r]??0)),[y,...i]=o.steps,d=y?.op==="move"?`${String(y.x)}, ${String(y.y)}`:"0, 0",s=(y?.op==="move"?i:o.steps).map(r=>r.op==="close"?".add_line_segments([], true)":r.op==="move"?`.move_to(${String(r.x)}, ${String(r.y)})`:r.op==="line"?`.add_line_segments([[${String(r.x)}, ${String(r.y)}]], false)`:`.add_curve_segment(${[r.x1,r.y1,r.x2,r.y2,r.x,r.y].map(String).join(", ")})`);return`${e}.shapes.build_freeform(${d}, [${String(f)}, ${String(l)}])${s.join("")}.convert_to_shape(${S(a.left-Math.round(m(0)*f))}, ${S(a.top-Math.round(m(1)*l))})`}const W=(e,n)=>n.rotation===void 0?[]:[`${e}.rotation = ${String(Math.round(n.rotation*1e3)/1e3)};`];function Se(e){const n=e.text?.levels??[],o=e.text_color??"dk1";if(e.kind!=="autoshape"||j(o,z.font_color))return n;const a=typeof o=="string"?{color:o}:{rgb:o.rgb};return Array.from({length:9},(f,l)=>{const c=n[l]??{};return c.font?.color!==void 0||c.font?.rgb!==void 0?c:{...c,font:{...c.font,...a}}})}function we(e,n,o){return o.flatMap((a,f)=>{const l=`${e}_p${String(f)}`;return[`const ${l} = ${f===0?`${n}.paragraphs[0]`:`${n}.add_paragraph()`};`,...a.level>0?[`${l}.level = ${String(a.level)};`]:[],...J(l,a,!1),...a.runs.flatMap((c,m)=>c.text==="\v"?[`${l}.add_line_break();`]:c.font?[`const ${l}r${String(m)} = ${l}.add_run();`,`${l}r${String(m)}.text = ${$(c.text)};`,...ne(`${l}r${String(m)}.font`,c.font)]:[`${l}.add_run().text = ${$(c.text)};`])]})}const C=e=>`${S(e.left)}, ${S(e.top)}, ${S(e.width)}, ${S(e.height)}`;class Oe{files=new Map;byPart=new Map;parts;constructor(n){this.parts=n}path(n){const o=this.byPart.get(n);if(o)return o;const a=this.parts[n];if(!a)return;const f=n.split("/").pop()??"file";let l=f;for(let c=2;this.files.has(`media/${l}`);c++)l=`${String(c)}-${f}`;return this.files.set(`media/${l}`,a),this.byPart.set(n,`./media/${l}`),`./media/${l}`}}function oe(e,n,o,a,f){const l=[],c=new Set,m=new Map,y=new Map;return n.forEach((i,d)=>{const s=`${e}_s${String(d)}`;let r=e;if(i.group!==void 0&&(r=y.get(i.group)??`${e}_g${String(y.size)}`,y.has(i.group)||(y.set(i.group,r),l.push(`const ${r} = ${e}.shapes.add_group_shape();`,`${r}.name = ${$(i.group)};`))),i.kind==="placeholder"&&i.placeholder){const u=nameOf(U[i.placeholder.type],c,"placeholder");m.set(i.placeholder.idx,u);const h=B(`${s}.text_frame`,i.text);l.push(`${h.length>0?`const ${s} = `:""}${r}.placeholders.add(PP_PLACEHOLDER.${ge[i.placeholder.type]}${i.frame?`, ${C(i.frame)}`:""}${u===U[i.placeholder.type]?"":`, { name: ${$(u)} }`});`,...h);return}const _=nameOf(i.name,c,i.kind);if(!i.frame){a(`${f}: ${i.name} has no frame of its own`);return}if((i.kind==="picture"||i.kind==="movie")&&i.part){const u=o.path(i.part);if(!u){a(`${f}: ${i.name}'s file is not in the file`);return}i.crop&&Object.values(i.crop).some(h=>h>0)&&a(`${f}: ${i.name}'s crop is not kept on a master or a layout`),l.push(...i.rotation===void 0?[`${r}.shapes.${i.kind==="movie"?"add_movie":"add_picture"}(${$(u)}, ${C(i.frame)}).name = ${$(_)};`]:[`const ${s} = ${r}.shapes.${i.kind==="movie"?"add_movie":"add_picture"}(${$(u)}, ${C(i.frame)});`,`${s}.name = ${$(_)};`,...W(s,i)]);return}if(i.table){a(`${f}: table ${i.name} is left out; a table goes on a slide`);return}if(i.geometry==="line"){const u=i.frame,[h,T]=i.flip?.h?[u.left+u.width,u.left]:[u.left,u.left+u.width],[M,O]=i.flip?.v?[u.top+u.height,u.top]:[u.top,u.top+u.height];l.push(`const ${s} = ${r}.shapes.add_connector(MSO_CONNECTOR.STRAIGHT, ${S(h)}, ${S(M)}, ${S(T)}, ${S(O)});`,`${s}.name = ${$(_)};`,...W(s,i),...Y(s,i,G));return}const g=i.path?xe(r,i,i.path):i.kind==="textbox"?`${r}.shapes.add_textbox(${C(i.frame)})`:`${r}.shapes.add_shape(MSO_SHAPE.${be[i.geometry??"rect"]}, ${C(i.frame)})`;l.push(`const ${s} = ${g};`,`${s}.name = ${$(_)};`,...(i.adjustments??[]).map((u,h)=>`${s}.adjustments[${String(h)}] = ${String(Math.round(u*1e5)/1e5)};`),...W(s,i),...i.kind==="textbox"?[...ie(s,i.fill,null),...Y(s,i,{line:null})]:[...ie(s,i.fill,z.fill),...Y(s,i,z)],...B(`${s}.text_frame`,i.text&&{...i.text,levels:Se(i)},X[i.kind==="textbox"?"textbox":"autoshape"]),...i.text?we(s,`${s}.text_frame`,i.text.paragraphs):[])}),{lines:l,names:m}}export function wordsOf(e,n){const o=i=>i.font?.color??i.font?.rgb,a=e.flatMap(i=>i.runs).filter(i=>i.text!=="\v"),f=new Set(a.map(o)).size>1,l=new Set(a.map(i=>i.font?.name)).size>1,c=i=>i.runs.map(d=>{if(d.text==="\v")return n("a line break inside a paragraph is a space")," ";const s=d.font?.bold===!0,r=d.font?.italic===!0,_=o(d);if(d.text.trim()==="")return d.text;const g=d.font?.name,u=[...f&&_!==void 0?[`color="${_}"`]:[],...l&&g!==void 0?[`font="${g}"`]:[]],h=u.length>0?`<span ${u.join(" ")}>${d.text}</span>`:d.text;return s&&r?`***${h}***`:s?`**${h}**`:r?`*${h}*`:h}).join(""),m=e.filter((i,d)=>d<e.length-1||i.runs.length>0);if(m.length===0)return;if(m.every(i=>i.level===0)){const i=m.map(c);return i.length===1?i[0]:i}const y=(i,d)=>{const s=[];let r=i;for(;r<m.length;){const _=m[r];if(!_||_.level<d)break;if(_.level>d){const[g,u]=y(r,d+1);s.push(g),r=u;continue}s.push(c(_)),r++}return[s,r]};return y(0,0)[0]}function re(e,n){const o=e.flatMap(d=>d.runs.filter(s=>s.text!=="\v"));if(o.length===0)return;const a=d=>{const s=o.map(d),r=s[0];return r!==void 0&&s.every(_=>_===r)?r:void 0},f=a(d=>d.font?.size),l=a(d=>d.font?.color??d.font?.rgb),c=a(d=>d.font?.name),m=e.every(d=>d.alignment===e[0]?.alignment)?e[0]?.alignment:void 0;new Set(o.map(d=>d.font?.size).filter(d=>d!==void 0)).size>1&&n("runs of several sizes take the layout's"),o.some(d=>d.font?.underline!==void 0||d.font?.spacing!==void 0)&&n("a run's own underline or letter spacing is not kept");const i={...f===void 0?{}:{size:N(f)},...l===void 0?{}:{color:l},...c===void 0?{}:{font:c},...m===void 0?{}:{align:m}};return Object.keys(i).length>0?i:void 0}const se=e=>({x:N(e.left),y:N(e.top),w:N(e.width),h:N(e.height)}),v=e=>typeof e=="string"?e:e.rgb,le=e=>({...e.minimum_scale===void 0?{}:{min:e.minimum_scale},...e.maximum_scale===void 0?{}:{max:e.maximum_scale},...e.major_unit===void 0?{}:{major:e.major_unit},...e.has_major_gridlines===void 0?{}:{gridlines:e.has_major_gridlines},...e.visible===void 0?{}:{visible:e.visible},...e.number_format===void 0?{}:{format:e.number_format},...e.reverse_order===void 0?{}:{reverse:e.reverse_order},...e.gridline_color===void 0?{}:{gridline_color:v(e.gridline_color)},...e.line_color===void 0?{}:{line_color:v(e.line_color)}});function Ee(e){const n=e.labels;return{type:e.type,categories:e.categories,series:e.series.map(o=>({name:o.name,values:o.values,...o.color===void 0?{}:{color:v(o.color)},...o.number_format===void 0?{}:{format:o.number_format},...o.smooth===void 0?{}:{smooth:o.smooth},...o.line_width===void 0?{}:{line_width:o.line_width},...o.marker_size===void 0?{}:{marker_size:o.marker_size}})),...e.legend===void 0?{}:{legend:e.legend},...n?{labels:{...n.show_value===void 0?{}:{value:n.show_value},...n.show_percentage===void 0?{}:{percentage:n.show_percentage},...n.show_category_name===void 0?{}:{category:n.show_category_name},...n.show_series_name===void 0?{}:{series:n.show_series_name},...n.number_format===void 0?{}:{format:n.number_format},...n.position===void 0?{}:{position:n.position},...n.size===void 0?{}:{size:n.size},...n.color===void 0?{}:{color:v(n.color)}}}:{},...e.gap_width===void 0?{}:{gap_width:e.gap_width},...e.overlap===void 0?{}:{overlap:e.overlap},...e.vary_by_categories===void 0?{}:{vary_by_categories:e.vary_by_categories},...e.hole_size===void 0?{}:{hole_size:e.hole_size},...e.value_axis?{value_axis:le(e.value_axis)}:{},...e.category_axis?{category_axis:le(e.category_axis)}:{},...e.font_size===void 0?{}:{size:e.font_size},...e.title_size===void 0?{}:{title_size:e.title_size},...e.font_color===void 0?{}:{color:v(e.font_color)}}}const ae=e=>JSON.stringify(e,(n,o)=>o&&typeof o=="object"&&!Array.isArray(o)?Object.fromEntries(Object.entries(o).sort(([a],[f])=>a<f?-1:1)):o);export function importDeck(e,n){const o=[...e.skipped],a=new Oe(e.parts),f=Object.entries(ce).find(([,[s,r]])=>s===e.width&&r===e.height)?.[0],l=[];Object.keys(e.theme).length>0&&l.push(`prs.theme.colors = ${JSON.stringify(e.theme)};`),Object.keys(e.fonts).length>0&&l.push(`prs.theme.fonts = ${JSON.stringify(e.fonts)};`);const c=new Map;e.masters.forEach((s,r)=>{const _=`master${String(r+1)}`;l.push("",`const ${_} = prs.slide_masters.add(${$(s.name)});`),s.background&&l.push(`${_}.background.fill.solid();`,I(`${_}.background.fill.fore_color`,s.background));for(const[g,u]of[["title","title_style"],["body","body_style"],["other","other_style"]]){const h=fe[g],T=s.text_styles[g]?.map((M,O)=>ae(M)===ae(h[O])?{}:M);l.push(...te(`${_}.text_styles.${u}`,T))}l.push(...oe(_,s.shapes,a,g=>o.push(g),`master ${s.name}`).lines),s.layouts.forEach((g,u)=>{const h=`${_}_layout${String(u+1)}`;l.push("",`const ${h} = ${_}.slide_layouts.add(${$(g.name)});`),g.display_master_shapes===!1&&l.push(`${h}.display_master_shapes = false;`),g.background&&l.push(`${h}.background.fill.solid();`,I(`${h}.background.fill.fore_color`,g.background));const T=oe(h,g.shapes,a,M=>o.push(M),`layout ${g.name}`);l.push(...T.lines),c.set(g.name,T.names)})});const m=new Set,y=[],i=[];e.slides.forEach((s,r)=>{const _=`slide ${String(r+1)}`,u=s.shapes.find(t=>t.placeholder?.type==="title"||t.placeholder?.type==="ctrTitle")?.text?.paragraphs.map(t=>t.runs.map(b=>b.text).join("")).join(" ")??"",h=nameOf(u,m,`slide-${String(r+1)}`),T=c.get(s.layout)??new Map,M=new Set(T.values()),O={},P={},H=new Map;for(const t of s.shapes){const b=x=>o.push(`${_}, ${t.name}: ${x}`);if(t.placeholder){const x=T.get(t.placeholder.idx)??[...T.values()].find(p=>p===U[t.placeholder?.type??"body"]);if(!x){b("its layout has no such placeholder; it is left out");continue}H.set(t.name,x);const w={};if(t.frame&&(w.frame=se(t.frame)),t.rotation!==void 0&&b("its rotation is left out"),(t.kind==="picture"||t.kind==="movie")&&t.part){const p=a.path(t.part);p&&(w[t.kind==="movie"?"movie":"picture"]=p)}if(t.text){const p=wordsOf(t.text.paragraphs,b);p!==void 0&&(P[x]=p);const E=re(t.text.paragraphs,b);E&&(w.text=E)}t.fill&&(w.fill=v(t.fill)),Object.keys(w).length>0&&(O[x]=w);continue}const k=nameOf(t.name,M,t.kind);if(H.set(t.name,k),!t.frame){b("it has no frame; it is left out");continue}const L=se(t.frame);if(t.chart){O[k]={chart:Ee(t.chart),frame:L},t.chart.title!==void 0&&(P[k]=t.chart.title);continue}if(t.table){const x=t.table.rows,w=p=>p.every(E=>E===p[0])?p[0]:void 0;O[k]={table:{columns:t.table.columns.map(N),rows:x.map(p=>{const E=w(p.cells.map(D=>D.fill)),Q=w(p.cells.map(D=>D.borders?.bottom?.color));return{height:N(p.height),...E?{fill:v(E)}:{},...Q?{line:v(Q)}:{}}})},frame:L},x.some(p=>p.cells.some(E=>E.spanned))&&b("its merged cells are apart"),P[k]=x.map(p=>p.cells.map(E=>wordsOf(E.text.paragraphs,b)??""));continue}if((t.kind==="picture"||t.kind==="movie")&&t.part){const x=a.path(t.part);if(!x)continue;const w=t.crop&&Object.values(t.crop).some(p=>p>0)?t.crop:void 0;O[k]={[t.kind==="movie"?"movie":"picture"]:x,frame:L,...w?{crop:w}:{}};continue}if(t.geometry==="line"){t.flip&&b("a line from bottom left to top right is drawn the other way"),O[k]={geometry:"line",frame:L,...t.line===void 0||j(t.line,G.line)?{}:{line:t.line===null?"none":v(t.line)},...t.line_width===void 0||t.line_width===G.line_width?{}:{line_width:N(t.line_width)},...Z(t)},t.rotation!==void 0&&b("its rotation is left out");continue}const F=t.kind==="textbox"?{textbox:!0,frame:L}:t.path?{path:{w:t.path.w,h:t.path.h,d:ue(t.path.steps)},frame:L,...Z(t)}:{geometry:t.geometry??"rect",frame:L,...Z(t)},V=t.kind==="textbox"?null:z.fill;t.fill&&!j(t.fill,V)&&(F.fill=v(t.fill)),t.fill===null&&V!==null&&b("it has no fill, and is filled as the basic shape is");const de=t.kind==="textbox"?null:z.line;t.line!==void 0&&!j(t.line,de)&&(F.line=t.line===null?"none":v(t.line)),t.kind!=="textbox"&&t.line!==null&&t.line_width!==void 0&&t.line_width!==z.line_width&&b("its outline's width is the basic shape's"),t.rotation!==void 0&&b("its rotation is left out");const q=B("",t.text&&{...t.text,levels:[]},t.kind==="textbox"?ye:X.autoshape);if(q.length>0&&b(`its text frame (${q.map(x=>x.replace(/^\.(\w+) = .*$/u,"$1")).join(", ")}) is the basic ${t.kind==="textbox"?"text box's":"shape's"}`),t.text){const x=wordsOf(t.text.paragraphs,b);x!==void 0&&(P[k]=x);const w=re(t.text.paragraphs,b);w&&(F.text=w)}O[k]={...F,...t.group?{group:t.group}:{}}}const K=s.animations.flatMap(t=>{const b=H.get(t.shape);return b!==void 0?[{...t,shape:b}]:(o.push(`${_}: an animation of ${t.shape}, which is left out`),[])});y.push({id:h,layout:s.layout,...s.hidden?{hidden:!0}:{},...Object.keys(O).length>0?{shapes:O}:{},...K.length>0?{animations:K}:{},...s.transition?{transition:s.transition}:{}}),i.push({id:h,...Object.keys(P).length>0?{text:P}:{},...s.notes===void 0?{}:{notes:s.notes}})});const d=new Map;d.set("slides.ts",['import { Emu, MSO_ANCHOR, MSO_AUTO_SIZE, MSO_CONNECTOR, MSO_SHAPE, PP_ALIGN, PP_PLACEHOLDER, Pt, presentation } from "@allyhub/sdk/slides";',"",`// ${n.source}, imported by allyhub slides import: its masters and layouts.`,`export default presentation({ size: ${f?$(f):`{ width: ${S(e.width)}, height: ${S(e.height)} }`} }, (prs) => {`,...l.map(s=>s===""?"":` ${s}`),"});",""].join(`
3
- `)),d.set("slides.yaml",ee({slides:y},{lineWidth:0})),d.set(`script.${n.lang}.yaml`,ee({...e.title?{title:e.title}:{},slides:i},{lineWidth:0}));for(const[s,r]of a.files)d.set(s,r);return{files:d,lost:[...new Set(o)]}}
@@ -1,5 +0,0 @@
1
- export { filesOf, picturedShapes, pptxParts, writePptx, type PptxInput, } from "./write.js";
2
- export { readPptx, type ReadDeck, type ReadShape } from "./read.js";
3
- export { importDeck, nameOf, wordsOf, type ImportedDeck } from "./import.js";
4
- export { asFace, eotOf, fontInfo, refusedEmbedding, type EmbeddedFont, type FontInfo, } from "./fonts.js";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1,55 +0,0 @@
1
- import type { AnimationFile, TransitionFile } from "@allyhub-next/formats";
2
- import type { Color, ShapeDef, TextStylesDef, Theme } from "@allyhub-next/slides-core";
3
- /** A shape as read: the model's, with where it is in the file. */
4
- export interface ReadShape extends ShapeDef {
5
- /** A picture's or a video's part in the file (`ppt/media/image1.png`). */
6
- part?: string;
7
- /** A picture's crop, a share from each side. */
8
- crop?: {
9
- left: number;
10
- top: number;
11
- right: number;
12
- bottom: number;
13
- };
14
- /** An autoshape's text colour from its style (`a:fontRef`); absent where it has no style, and its text is the default text's. */
15
- text_color?: Color;
16
- }
17
- export interface ReadLayout {
18
- name: string;
19
- background?: Color;
20
- display_master_shapes?: boolean;
21
- shapes: ReadShape[];
22
- }
23
- export interface ReadMaster {
24
- name: string;
25
- background?: Color;
26
- text_styles: Partial<TextStylesDef>;
27
- shapes: ReadShape[];
28
- layouts: ReadLayout[];
29
- }
30
- export interface ReadSlide {
31
- /** Its layout, by name; its master is the layout's. */
32
- layout: string;
33
- hidden: boolean;
34
- notes?: string;
35
- shapes: ReadShape[];
36
- /** Its Animation Pane, by its shapes' names in the file. */
37
- animations: AnimationFile[];
38
- transition?: TransitionFile;
39
- }
40
- export interface ReadDeck {
41
- width: number;
42
- height: number;
43
- title?: string;
44
- theme: Partial<Theme["colors"]> & object;
45
- fonts: Partial<Theme["fonts"]>;
46
- masters: ReadMaster[];
47
- slides: ReadSlide[];
48
- /** What the file holds that the model does not, a line each. */
49
- skipped: string[];
50
- /** The file's parts, for the media its shapes name. */
51
- parts: Record<string, Uint8Array>;
52
- }
53
- /** A .pptx file read into the deck's model. */
54
- export declare function readPptx(bytes: Uint8Array): ReadDeck;
55
- //# sourceMappingURL=read.d.ts.map
@@ -1,4 +0,0 @@
1
- /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{strFromU8 as nt,unzipSync as kt}from"fflate";import{XMLParser as Ct}from"fast-xml-parser";import{EMU_PER_PT as mt,TEXT_INSETS as et}from"@allyhub-next/slides-core";import{PRESETS as Tt,SUBTYPES as Mt,TRANSITION_SIDES as jt}from"./timing.js";const ct=(n,t)=>n===void 0?t:n;function gt(n,t){if(!n)return{fill:null,line:null};const s=a=>{const d=o(n,a);return d?{idx:l(e(d,"idx"))??0,color:L(d)}:void 0},i=s("a:fillRef"),r=s("a:lnRef"),f=s("a:fontRef"),c=r&&r.idx>0?t[r.idx-1]:void 0;return{fill:!i||i.idx===0?null:i.color??null,line:!r||r.idx===0?null:r.color??null,...c===void 0?{}:{line_width:c},...f?.color===void 0?{}:{text_color:f.color}}}const Rt={vertical_anchor:"t",word_wrap:!0,auto_size:"none",margin_left:et.left,margin_top:et.top,margin_right:et.right,margin_bottom:et.bottom},ot=new Ct({preserveOrder:!0,ignoreAttributes:!1,attributeNamePrefix:"",trimValues:!1,parseTagValue:!1,parseAttributeValue:!1,processEntities:!0}),T=n=>Object.keys(n).find(t=>t!==":@")??"",I=n=>n?n[T(n)]??[]:[],e=(n,t)=>n?.[":@"]?.[t],o=(n,t)=>I(n).find(s=>T(s)===t),R=(n,t)=>I(n).filter(s=>T(s)===t),b=(n,...t)=>t.reduce((s,i)=>o(s,i),n),K=n=>I(n).map(t=>typeof t["#text"]=="string"?t["#text"]:"").join(""),l=n=>n===void 0||n===""?void 0:Number(n);function bt(n,t){if(t.startsWith("/"))return t.slice(1);const s=n.split("/").slice(0,-1);for(const i of t.split("/"))i===".."?s.pop():i!=="."&&s.push(i);return s.join("/")}const Ft={tx1:"dk1",bg1:"lt1",tx2:"dk2",bg2:"lt2"};function L(n){const t=o(n,"a:schemeClr");if(t){const r=e(t,"val")??"";return Ft[r]??r}const s=o(n,"a:srgbClr");if(s)return{rgb:`#${(e(s,"val")??"000000").toUpperCase()}`};const i=o(n,"a:sysClr");if(i)return{rgb:`#${(e(i,"lastClr")??"000000").toUpperCase()}`}}function Z(n){if(o(n,"a:noFill"))return null;const t=o(n,"a:solidFill");return t?L(t):void 0}function ft(n){const t=o(n,"a:off"),s=o(n,"a:ext");if(!t||!s)return{};const i=e(n,"flipH")==="1",r=e(n,"flipV")==="1",f=l(e(n,"rot"));return{...f?{rotation:f/6e4}:{},frame:{left:l(e(t,"x"))??0,top:l(e(t,"y"))??0,width:l(e(s,"cx"))??0,height:l(e(s,"cy"))??0},...i||r?{flip:{...i?{h:i}:{},...r?{v:r}:{}}}:{}}}function _t(n){if(!n)return;const t={},s=l(e(n,"sz"));s!==void 0&&(t.size=s*127);const i=e(n,"b");i!==void 0&&(t.bold=i==="1"||i==="true");const r=e(n,"i");r!==void 0&&(t.italic=r==="1"||r==="true");const f=e(n,"u");f!==void 0&&(t.underline=f!=="none");const c=l(e(n,"spc"));c!==void 0&&(t.spacing=c*127);const a=L(o(n,"a:solidFill"));typeof a=="string"?t.color=a:a&&(t.rgb=a.rgb);const d=e(o(n,"a:latin"),"typeface");return d&&(t.name=d),Object.keys(t).length>0?t:void 0}function lt(n){const t=l(e(o(n,"a:spcPct"),"val"));if(t!==void 0)return{lines:t/1e5};const s=l(e(o(n,"a:spcPts"),"val"));if(s!==void 0)return{fixed:s*127}}function xt(n){if(!n)return{};const t={},s=e(n,"algn");(s==="l"||s==="ctr"||s==="r"||s==="just")&&(t.alignment=s);const i=l(e(n,"marL"));i!==void 0&&(t.margin_left=i);const r=l(e(n,"indent"));r!==void 0&&(t.indent=r);const f=lt(o(n,"a:lnSpc"));f&&(t.line_spacing=f);const c=lt(o(n,"a:spcBef"));c&&"fixed"in c&&(t.space_before=c.fixed);const a=lt(o(n,"a:spcAft"));a&&"fixed"in a&&(t.space_after=a.fixed),o(n,"a:buNone")&&(t.bullet=null);const d=e(o(n,"a:buChar"),"char");d!==void 0&&(t.bullet=d);const m=e(o(n,"a:buFont"),"typeface");m!==void 0&&(t.bullet_font=m);const u=_t(o(n,"a:defRPr"));return u&&(t.font=u),t}function st(n){return Array.from({length:9},(t,s)=>xt(o(n,`a:lvl${String(s+1)}pPr`)))}function zt(n){return R(n,"a:p").map(t=>{const s=o(t,"a:pPr"),i=[];for(const r of I(t)){const f=T(r);if(f==="a:r"||f==="a:fld"){const c=_t(o(r,"a:rPr"));i.push({text:K(o(r,"a:t")),...c?{font:c}:{}})}else f==="a:br"&&i.push({text:"\v"})}return{...xt(s),runs:i,level:l(e(s,"lvl"))??0}})}function yt(n,t){const s=o(n,"a:bodyPr"),i={...t,paragraphs:zt(n),levels:st(o(n,"a:lstStyle"))},r=e(s,"anchor");(r==="t"||r==="ctr"||r==="b")&&(i.vertical_anchor=r);const f=e(s,"wrap");f!==void 0&&(i.word_wrap=f!=="none"),o(s,"a:normAutofit")?i.auto_size="text":o(s,"a:spAutoFit")?i.auto_size="shape":o(s,"a:noAutofit")&&(i.auto_size="none");const c={lIns:"margin_left",tIns:"margin_top",rIns:"margin_right",bIns:"margin_bottom"};for(const[a,d]of Object.entries(c)){const m=l(e(s,a));m!==void 0&&(i[d]=m)}return i}const vt=new Set(["title","ctrTitle","subTitle","body","pic","media","obj","dt","ftr","sldNum"]),wt=new Set(["rect","roundRect","ellipse","triangle","rightArrow","line"]);function Pt(n){const t=e(o(n,"a:prstDash"),"val"),s=e(o(n,"a:headEnd"),"type"),i=e(o(n,"a:tailEnd"),"type");return{...t===void 0?{}:{line_dash:t},...s===void 0?{}:{line_begin:s},...i===void 0?{}:{line_end:i}}}const dt=n=>{const t=I(n);return Array.isArray(t)?t:[]};function V(n,t){for(const s of dt(n)){if(T(s)===t)return s;const i=V(s,t);if(i)return i}}function Q(n,t){return dt(n).flatMap(s=>[...T(s)===t?[s]:[],...Q(s,t)])}const St=Object.fromEntries(Object.entries(Tt).map(([n,t])=>[`${t.kind}:${String(t.id)}`,n])),Nt=new Map(Object.entries(Mt).map(([n,t])=>[t,n]));function It(n,t){const s=n.trim().split(/\s+/u),i=[];let r=0;for(const f of s){if(/^[A-Za-z]$/u.test(f)){f!=="E"&&i.push(f),r=0;continue}const c=Number(f)*(r%2===0?t.width:t.height),a=String(Math.round(c/mt*100)/100);r===0?i[i.length-1]=`${i.at(-1)??""}${a}`:i.push(a),r++}return i.join(" ")}const $t=n=>n.replace(/^!!/u,""),At=new Map(Object.entries(jt).map(([n,t])=>[t,n]));function Lt(n,t){const s=n&&V(n,"p:transition");if(!s)return;const i=l(e(s,"p14:dur")),r=e(s,"spd"),f=i===void 0?r==="fast"?.5:r==="slow"?2:1:i/1e3,[c]=dt(s),a=c?T(c):"",d=At.get(e(c,"dir")??""),m=a==="p:fade"?"fade":a==="p:push"?"push":a==="p:wipe"?"wipe":a==="p159:morph"?"morph":void 0;return m?{type:m,...d?{direction:d}:{},duration:f}:(t(`its transition ${a}, which is read as a fade`),{type:"fade",duration:f})}function Dt(n,t,s,i){const r=n&&V(n,"p:seq");if(!r)return[];const f=[];for(const c of Q(r,"p:cTn")){const a=e(c,"nodeType");if(a!=="clickEffect"&&a!=="withEffect"&&a!=="afterEffect"||e(c,"presetClass")==="mediacall")continue;const d=e(V(c,"p:spTgt"),"spid")??"",m=t.get(d);if(m===void 0){i(`an animation of shape ${d}, which is not read, is left out`);continue}const u=e(c,"presetClass")??"",g=e(c,"presetID")??"",p=St[`${u}:${g}`]??(u==="path"?"path":u==="exit"?"fade-out":u==="emph"?"pulse":"fade");St[`${u}:${g}`]===void 0&&u!=="path"&&i(`${m}: effect ${u} ${g} is read as ${p}`);const _=l(e(c,"presetSubtype"))??0,x=Nt.get(_),h=l(e(V(c,"p:pRg"),"st")),P=l(e(V(c,"p:cond"),"delay"))??0,w=I(o(c,"p:childTnLst")).filter(C=>T(C)!=="p:set").flatMap(C=>Q(C,"p:cTn").map(M=>(l(e(M,"dur"))??0)*(e(M,"autoRev")==="1"?2:1))),$=e(V(c,"p:animMotion"),"path");f.push({shape:m,effect:p,...h===void 0?{}:{paragraph:h},...x&&_>0?{direction:x}:{},start:a==="clickEffect"?"on-click":a==="withEffect"?"with-previous":"after-previous",duration:Math.max(0,...w)/1e3,...P>0?{delay:P/1e3}:{},...$===void 0?{}:{path:It($,s)}})}return f}function Gt(n){const t=o(n,"a:tblPr"),s=r=>e(t,r)==="1",i=r=>{const f=o(r,"a:tcPr"),c=yt(o(r,"a:txBody"),{}),a=Z(f),d=[["left","a:lnL"],["right","a:lnR"],["top","a:lnT"],["bottom","a:lnB"]].flatMap(([w,$])=>{const C=o(f,$),M=Z(C);return M?[[w,{color:M,width:l(e(C,"w"))??12700}]]:[]}),m=e(f,"anchor"),u=w=>l(e(f,w)),g=w=>l(e(r,w)),[p,_,x,h]=["marL","marR","marT","marB"].map(u),P=g("gridSpan"),E=g("rowSpan");return{text:{...c,...p===void 0?{}:{margin_left:p},..._===void 0?{}:{margin_right:_},...x===void 0?{}:{margin_top:x},...h===void 0?{}:{margin_bottom:h},...m==="t"||m==="ctr"||m==="b"?{vertical_anchor:m}:{}},...a===void 0?{}:{fill:a},...d.length>0?{borders:Object.fromEntries(d)}:{},...P===void 0||P<2?{}:{span_width:P},...E===void 0||E<2?{}:{span_height:E},...e(r,"hMerge")==="1"||e(r,"vMerge")==="1"?{spanned:!0}:{}}};return{columns:R(o(n,"a:tblGrid"),"a:gridCol").map(r=>l(e(r,"w"))??0),rows:R(n,"a:tr").map(r=>({height:l(e(r,"h"))??0,cells:R(r,"a:tc").map(i)})),...s("firstRow")?{first_row:!0}:{},...s("firstCol")?{first_col:!0}:{},...s("lastRow")?{last_row:!0}:{},...s("lastCol")?{last_col:!0}:{},...s("bandRow")?{horz_banding:!0}:{},...s("bandCol")?{vert_banding:!0}:{}}}const rt=n=>{const t=e(n,"val");return t===void 0?n?!0:void 0:t==="1"||t==="true"},ut=n=>{const t=[];for(const s of R(n,"c:pt"))t[l(e(s,"idx"))??t.length]=K(o(s,"c:v"));return Array.from(t,s=>s??"")},Ot=n=>{const t=o(n,"c:scaling"),s=l(e(o(t,"c:min"),"val")),i=l(e(o(t,"c:max"),"val")),r=l(e(o(n,"c:majorUnit"),"val")),f=o(n,"c:numFmt"),c=e(f,"formatCode"),a=g=>L(o(b(g,"c:spPr","a:ln"),"a:solidFill")),d=o(n,"c:majorGridlines"),m=a(d),u=a(n);return{...s===void 0?{}:{minimum_scale:s},...i===void 0?{}:{maximum_scale:i},...r===void 0?{}:{major_unit:r},has_major_gridlines:d!==void 0,...rt(o(n,"c:delete"))===!0?{visible:!1}:{},...c===void 0||c==="General"||e(f,"sourceLinked")==="1"?{}:{number_format:c},...e(o(t,"c:orientation"),"val")==="maxMin"?{reverse_order:!0}:{},...m===void 0?{}:{gridline_color:m},...u===void 0?{}:{line_color:u}}};function Bt(n){const t=o(n,"c:chart"),s=o(t,"c:plotArea"),i=I(s).filter(k=>T(k).endsWith("Chart")),[r]=i;if(!r)return"it has no plot";if(i.length>1)return"it combines several kinds of chart";const f=T(r),c=e(o(r,"c:grouping"),"val"),a=c==="percentStacked"?"-stacked-100":c==="stacked"?"-stacked":"",d=R(r,"c:ser"),m=d.some(k=>e(b(k,"c:marker","c:symbol"),"val")!=="none"),u=(()=>{if(f==="c:barChart")return`${e(o(r,"c:barDir"),"val")==="bar"?"bar":"column"}${a===""?"-clustered":a}`;if(f==="c:lineChart")return a===""?m?"line-markers":"line":void 0;if(f==="c:areaChart")return`area${a}`;if(f==="c:pieChart")return"pie";if(f==="c:doughnutChart")return"doughnut"})();if(!u)return`a deck has no ${f.slice(2)} chart`;const[g]=d,p=ut(o(b(g,"c:cat","c:strRef"),"c:strCache")??o(b(g,"c:cat","c:numRef"),"c:numCache")),_=d.map(k=>{const A=b(k,"c:val","c:numRef","c:numCache"),X=K(o(A,"c:formatCode")),N=ut(A),H=L(b(k,"c:spPr","a:solidFill"))??L(b(k,"c:spPr","a:ln","a:solidFill")),O=rt(o(k,"c:smooth")),j=l(e(b(k,"c:spPr","a:ln"),"w")),J=l(e(b(k,"c:marker","c:size"),"val"));return{name:ut(b(k,"c:tx","c:strRef","c:strCache"))[0]??"",values:p.map((Wt,Et)=>{const at=N[Et];return at===void 0||at===""?null:Number(at)}),...X===""||X==="General"?{}:{number_format:X},...H===void 0?{}:{color:H},...O===!0?{smooth:O}:{},...j===void 0||f!=="c:lineChart"?{}:{line_width:j/mt},...J===void 0?{}:{marker_size:J}}}),x=Q(o(t,"c:title")??{},"a:t").map(K).join(""),h=l(e(V(o(t,"c:title")??{},"a:rPr"),"sz")),P=e(b(t,"c:legend","c:legendPos"),"val"),E={b:"bottom",t:"top",l:"left",r:"right"}[P??"r"],w=o(r,"c:dLbls"),$=k=>rt(o(w,k))===!0,C=e(o(w,"c:numFmt"),"formatCode"),M=e(o(w,"c:dLblPos"),"val"),F=b(w,"c:txPr","a:p","a:pPr","a:defRPr"),G=l(e(F,"sz")),Y=L(o(F,"a:solidFill")),q=l(e(o(r,"c:gapWidth"),"val")),B=l(e(o(r,"c:overlap"),"val")),S=l(e(o(r,"c:holeSize"),"val")),y=rt(o(r,"c:varyColors")),v=b(n,"c:txPr","a:p","a:pPr","a:defRPr"),D=l(e(v,"sz")),U=L(o(v,"a:solidFill")),z=o(s,"c:valAx"),W=o(s,"c:catAx");return{type:u,categories:p,series:_,...x===""?{}:{title:x},...o(t,"c:legend")?{legend:E??"right"}:{},...w&&($("c:showVal")||$("c:showPercent")||$("c:showCatName")||$("c:showSerName"))?{labels:{show_value:$("c:showVal"),show_percentage:$("c:showPercent"),show_category_name:$("c:showCatName"),show_series_name:$("c:showSerName"),...C===void 0?{}:{number_format:C},...M===void 0?{}:{position:M},...G===void 0?{}:{size:G/100},...Y===void 0?{}:{color:Y}}}:{},...q===void 0?{}:{gap_width:q},...B===void 0?{}:{overlap:B},...S===void 0?{}:{hole_size:S},...y===void 0?{}:{vary_by_categories:y},...z?{value_axis:Ot(z)}:{},...W?{category_axis:Ot(W)}:{},...D===void 0?{}:{font_size:D/100},...h===void 0?{}:{title_size:h/100},...U===void 0?{}:{font_color:U}}}function Ut(n){const t=R(o(n,"a:pathLst"),"a:path"),s=t[0];if(!s||t.length>1)return;const i=f=>R(f,"a:pt").map(c=>({x:l(e(c,"x"))??0,y:l(e(c,"y"))??0})),r=[];for(const f of I(s)){const c=T(f),[a,d,m]=i(f);if(c==="a:close")r.push({op:"close"});else if(c==="a:moveTo"&&a)r.push({op:"move",...a});else if(c==="a:lnTo"&&a)r.push({op:"line",...a});else if(c==="a:cubicBezTo"&&a&&d&&m)r.push({op:"curve",x1:a.x,y1:a.y,x2:d.x,y2:d.y,...m});else return}return{w:l(e(s,"w"))??0,h:l(e(s,"h"))??0,steps:r}}function tt(n,t,s,i,r,f=()=>{}){const c=[];for(const a of I(n)){const d=T(a);if(d==="p:nvGrpSpPr"||d==="p:grpSpPr")continue;if(d==="p:sp"){const u=o(a,"p:nvSpPr"),g=e(o(u,"p:cNvPr"),"name")??"",p=b(u,"p:nvPr","p:ph"),_=o(a,"p:spPr"),{frame:x,flip:h,rotation:P}=ft(o(_,"a:xfrm")),E=o(_,"a:prstGeom"),w=e(E,"prst"),$=R(o(E,"a:avLst"),"a:gd").map(v=>Number((e(v,"fmla")??"val 0").replace("val ",""))/1e5),C=o(_,"a:ln"),M=e(o(u,"p:cNvSpPr"),"txBox")==="1",F=p?{}:M?{fill:null}:gt(o(a,"p:style"),r),G=ct(Z(_),F.fill),Y=ct(C?Z(C):void 0,F.line),q=l(e(C,"w"))??F.line_width,B=o(a,"p:txBody"),S={name:g,...x?{frame:x}:{},...h?{flip:h}:{},...P===void 0?{}:{rotation:P},...G===void 0?{}:{fill:G},...Y===void 0?{}:{line:Y},...q===void 0?{}:{line_width:q},...F.text_color===void 0?{}:{text_color:F.text_color},...B?{text:yt(B,p?{}:Rt)}:{}};if(p){const v=e(p,"type")??"obj";if(v==="sldImg")continue;const D=vt.has(v)?v:"body";vt.has(v)||i(`${t}: placeholder ${g} of type ${v}, read as a body`),c.push({...S,kind:"placeholder",placeholder:{type:D,idx:l(e(p,"idx"))??0}});continue}w&&!wt.has(w)&&i(`${t}: shape ${g} is a ${w}, read as a rectangle`);const y=Ut(o(_,"a:custGeom"));!w&&o(_,"a:custGeom")&&!y&&i(`${t}: shape ${g} has a freeform outline this does not read, read as a rectangle`),c.push({...S,...Pt(C),kind:M?"textbox":"autoshape",...y?{path:y}:{geometry:w&&wt.has(w)?w:"rect"},...$.length>0?{adjustments:$}:{}});continue}if(d==="p:cxnSp"){const u=o(a,"p:spPr"),{frame:g,flip:p,rotation:_}=ft(o(u,"a:xfrm")),x=o(u,"a:ln"),h=gt(o(a,"p:style"),r),P=ct(x?Z(x):void 0,h.line),E=l(e(x,"w"))??h.line_width;c.push({name:e(b(a,"p:nvCxnSpPr","p:cNvPr"),"name")??"",kind:"autoshape",geometry:"line",...g?{frame:g}:{},...p?{flip:p}:{},..._===void 0?{}:{rotation:_},...P===void 0?{}:{line:P},...E===void 0?{}:{line_width:E},...Pt(x)});continue}if(d==="p:pic"){const u=o(a,"p:nvPicPr"),g=e(o(u,"p:cNvPr"),"name")??"",{frame:p,rotation:_}=ft(b(a,"p:spPr","a:xfrm")),x=b(a,"p:blipFill","a:blip"),h=e(x,"r:embed"),P=e(b(u,"p:nvPr","a:videoFile"),"r:link"),E=s.get(P??h??""),w=b(a,"p:blipFill","a:srcRect"),$=M=>(l(e(w,M))??0)/1e5,C=w?{left:$("l"),top:$("t"),right:$("r"),bottom:$("b")}:void 0;if(!E){i(`${t}: picture ${g} names no file`);continue}c.push({name:g,kind:P?"movie":"picture",...p?{frame:p}:{},..._===void 0?{}:{rotation:_},part:E,...C&&!P?{crop:C}:{}});continue}if(d==="p:graphicFrame"){const u=b(a,"a:graphic","a:graphicData","a:tbl");if(u){const p=e(b(a,"p:nvGraphicFramePr","p:cNvPr"),"name")??"",_=o(a,"p:xfrm"),x=o(_,"a:off"),h=o(_,"a:ext");c.push({name:p,kind:"table",frame:{left:l(e(x,"x"))??0,top:l(e(x,"y"))??0,width:l(e(h,"cx"))??0,height:l(e(h,"cy"))??0},table:Gt(u)});continue}const g=b(a,"a:graphic","a:graphicData","c:chart");if(g){const p=e(b(a,"p:nvGraphicFramePr","p:cNvPr"),"name")??"",_=s.get(e(g,"r:id")??""),x=Bt(_===void 0?void 0:f(_));if(typeof x=="string"){i(`${t}: chart ${p} is left out: ${x}`);continue}const h=o(a,"p:xfrm"),P=o(h,"a:off"),E=o(h,"a:ext");c.push({name:p,kind:"chart",frame:{left:l(e(P,"x"))??0,top:l(e(P,"y"))??0,width:l(e(E,"cx"))??0,height:l(e(E,"cy"))??0},chart:x});continue}}if(d==="p:grpSp"){const u=e(b(a,"p:nvGrpSpPr","p:cNvPr"),"name")??"group",g=b(a,"p:grpSpPr","a:xfrm"),p=(h,P)=>l(e(o(g,h),P))??0;e(g,"rot")&&i(`${t}: group ${u}'s rotation is left out`);const _=p("a:ext","cx")/(p("a:chExt","cx")||1)||1,x=p("a:ext","cy")/(p("a:chExt","cy")||1)||1;for(const h of tt(a,t,s,i,r,f))c.push({...h,group:u,...h.frame?{frame:{left:Math.round(p("a:off","x")+(h.frame.left-p("a:chOff","x"))*_),top:Math.round(p("a:off","y")+(h.frame.top-p("a:chOff","y"))*x),width:Math.round(h.frame.width*_),height:Math.round(h.frame.height*x)}}:{}});continue}const m=d==="p:graphicFrame"?b(a,"a:graphic","a:graphicData")?.[":@"]!==void 0?`a ${(e(b(a,"a:graphic","a:graphicData"),"uri")??"").split("/").pop()??"graphic"}`:"a graphic frame":d;i(`${t}: ${m} (${e(b(I(a)[0],"p:cNvPr"),"name")??"unnamed"}) is not read`)}return c}function it(n,t){const i=`${t.split("/").slice(0,-1).join("/")}/_rels/${t.split("/").pop()??""}.rels`,r=n[i],f=new Map;if(!r)return f;const c=ot.parse(nt(r)).find(a=>T(a)==="Relationships");for(const a of R(c,"Relationship")){const d=e(a,"Id"),m=e(a,"Target");d&&m&&e(a,"TargetMode")!=="External"&&f.set(d,bt(t,m))}return f}const pt=(n,t,s)=>{const i=t.split("/").slice(0,-1).join("/"),r=n[`${i}/_rels/${t.split("/").pop()??""}.rels`];if(!r)return;const f=ot.parse(nt(r)).find(d=>T(d)==="Relationships"),c=R(f,"Relationship").find(d=>(e(d,"Type")??"").endsWith(`/${s}`)),a=e(c,"Target");return a?bt(t,a):void 0};function ht(n,t,s){const i=o(n,"p:bg");if(!i)return;const r=o(i,"p:bgPr");if(r){const c=Z(r);if(c)return c;s(`${t}: a background that is not one colour (a gradient or a picture) is not read`);return}const f=o(i,"p:bgRef");return L(f)??void 0}export function readPptx(n){const t=kt(n),s=[],i=S=>s.push(S),r=S=>{const y=t[S];if(y)return ot.parse(nt(y)).find(v=>!T(v).startsWith("?"))},f="ppt/presentation.xml",c=r(f),a=it(t,f),d=o(c,"p:sldSz"),m=R(o(c,"p:sldMasterIdLst"),"p:sldMasterId").flatMap(S=>{const y=a.get(e(S,"r:id")??"");return y?[y]:[]}),u={},g={},p=m[0]?pt(t,m[0],"theme"):void 0,_=p?r(p):void 0,x=b(_,"a:themeElements","a:clrScheme");for(const S of I(x)){const y=T(S).replace("a:",""),v=L(S);v&&typeof v!="string"&&(u[y]=v.rgb)}const h=R(b(_,"a:themeElements","a:fmtScheme","a:lnStyleLst"),"a:ln").map(S=>l(e(S,"w"))??0),P=b(_,"a:themeElements","a:fontScheme"),E=(S,y)=>{const v=e(b(P,S,y),"typeface");return v===""?void 0:v},w=E("a:majorFont","a:latin"),$=E("a:minorFont","a:latin"),C=E("a:majorFont","a:ea"),M=E("a:minorFont","a:ea");w&&(g.major=w),$&&(g.minor=$),C&&(g.major_east_asian=C),M&&(g.minor_east_asian=M);const F=new Map,G=m.map((S,y)=>{const v=r(S),D=it(t,S),U=o(v,"p:cSld"),z=o(v,"p:txStyles"),W=R(o(v,"p:sldLayoutIdLst"),"p:sldLayoutId").flatMap(X=>{const N=D.get(e(X,"r:id")??"");if(!N)return[];const H=r(N),O=o(H,"p:cSld");let j=e(O,"name")??`Layout ${String(F.size+1)}`;for(;[...F.values()].includes(j);)j=`${j} (${String(y+1)})`;F.set(N,j);const J=ht(O,N,i);return[{name:j,...J?{background:J}:{},...e(H,"showMasterSp")==="0"?{display_master_shapes:!1}:{},shapes:tt(o(O,"p:spTree"),N,it(t,N),i,h)}]}),k=ht(U,S,i),A={};return o(z,"p:titleStyle")&&(A.title=st(o(z,"p:titleStyle"))),o(z,"p:bodyStyle")&&(A.body=st(o(z,"p:bodyStyle"))),o(z,"p:otherStyle")&&(A.other=st(o(z,"p:otherStyle"))),{name:e(U,"name")??`Master ${String(y+1)}`,...k?{background:k}:{},text_styles:A,shapes:tt(o(U,"p:spTree"),S,D,i,h),layouts:W}}),Y=R(o(c,"p:sldIdLst"),"p:sldId").flatMap(S=>{const y=a.get(e(S,"r:id")??"");if(!y)return[];const v=r(y),D=it(t,y),U=O=>t[O]?ot.parse(nt(t[O])).find(j=>T(j)==="c:chartSpace"):void 0,z=pt(t,y,"slideLayout"),W=pt(t,y,"notesSlide"),k=W?tt(b(r(W),"p:cSld","p:spTree"),W,new Map,()=>{},h).find(O=>O.placeholder?.type==="body"&&O.text!==void 0)?.text?.paragraphs.map(O=>O.runs.map(j=>j.text==="\v"?`
3
- `:j.text).join("")).join(`
4
- `):void 0,A=Lt(v,O=>{i(`${y}: ${O}`)});ht(o(v,"p:cSld"),y,i)&&i(`${y}: a background of its own is not read; the layout's shows`);const N=b(v,"p:cSld","p:spTree"),H=new Map((N?Q(N,"p:cNvPr"):[]).flatMap(O=>{const j=e(O,"id");return j===void 0?[]:[[j,$t(e(O,"name")??"")]]}));return[{layout:(z?F.get(z):void 0)??G[0]?.layouts[0]?.name??"",hidden:e(v,"show")==="0",...k!==void 0&&k.trim()!==""?{notes:k}:{},shapes:tt(N,y,D,i,h,U).map(O=>({...O,name:$t(O.name)})),...A?{transition:A}:{},animations:Dt(o(v,"p:timing"),H,{width:l(e(d,"cx"))??12192e3,height:l(e(d,"cy"))??6858e3},O=>{i(`${y}: ${O}`)})}]}),q=r("docProps/core.xml"),B=K(o(q,"dc:title")).trim();return{width:l(e(d,"cx"))??12192e3,height:l(e(d,"cy"))??6858e3,...B===""?{}:{title:B},theme:u,fonts:g,masters:G,slides:Y,skipped:s,parts:t}}
@@ -1,67 +0,0 @@
1
- import type { LineDash, LineEnd } from "@allyhub-next/formats";
2
- import type { FreeformPath, Color, Frame, ParagraphDef, PlaceholderType } from "@allyhub-next/slides-core";
3
- /** A shape ready to write: what any level (master, layout, slide) has. */
4
- export interface ShapeOut {
5
- id: number;
6
- name: string;
7
- kind: "sp" | "cxn" | "pic" | "table" | "chart";
8
- /** Absent: a placeholder that takes its layout's or master's frame. */
9
- frame?: Frame;
10
- flip?: {
11
- h?: boolean;
12
- v?: boolean;
13
- };
14
- /** Degrees clockwise. */
15
- rotation?: number;
16
- /** The theme's styles it is drawn by (`p:style`), as python-pptx's add_shape and add_connector write them. */
17
- style?: "shape" | "connector";
18
- /** A placeholder; `sldImg` is a notes page's picture of its slide. */
19
- placeholder?: {
20
- type: PlaceholderType | "sldImg";
21
- idx: number;
22
- /** Its size among a page's placeholders (`sz`): a notes page's body is a quarter. */
23
- sz?: "quarter" | "half";
24
- };
25
- textbox?: boolean;
26
- geometry?: string;
27
- adjustments?: readonly number[];
28
- /** Its own fill, line and line width (`p:spPr`), where they differ from its style's. */
29
- fill?: Color | null;
30
- line?: Color | null;
31
- lineWidth?: number;
32
- lineDash?: LineDash;
33
- lineBegin?: LineEnd;
34
- lineEnd?: LineEnd;
35
- /** A freeform's outline, in place of a geometry. */
36
- path?: FreeformPath;
37
- /** The group it is in. */
38
- group?: string;
39
- /** A table, written (`a:tbl`). */
40
- table?: string;
41
- /** A chart: the relationship id of its part. */
42
- chart?: string;
43
- /** Its text body, written (`p:txBody`). */
44
- text?: string;
45
- /** A picture: its image's relationship, and the share cut from each side. */
46
- picture?: {
47
- image: string;
48
- crop?: {
49
- left: number;
50
- top: number;
51
- right: number;
52
- bottom: number;
53
- };
54
- descr?: string;
55
- };
56
- /** A video: its file's relationships (`r:link` and the media part) beside its poster's image. */
57
- video?: {
58
- link: string;
59
- media: string;
60
- };
61
- }
62
- export declare function shapeXml(o: ShapeOut): string;
63
- /** Shapes as a tree holds them: each group's, next to each other, round them. */
64
- export declare function treeXml(shapes: readonly ShapeOut[]): string[];
65
- /** The empty paragraph list a placeholder on a master or layout shows nothing in. */
66
- export declare const NO_PARAGRAPHS: readonly ParagraphDef[];
67
- //# sourceMappingURL=shapes.d.ts.map
@@ -1,21 +0,0 @@
1
- import type { FontDef, LevelStyle, LevelsDef, ParagraphDef, ParagraphFormatDef, TextFrameDef, TextStyle } from "@allyhub-next/slides-core";
2
- /** A run's or a level's character properties (`a:rPr`, `a:defRPr`, `a:endParaRPr`). */
3
- export declare function runProps(tag: "a:rPr" | "a:defRPr" | "a:endParaRPr", f: FontDef | undefined, lang?: string): string;
4
- /** A list style's levels as `a:lvl1pPr`…`a:lvl9pPr`, the empty ones left out; under `tag`. */
5
- export declare function listStyle(levels: LevelsDef, tag?: string): string;
6
- /** A resolved level as a list style's level: every value written (what a text box's own style is). */
7
- export declare function levelOf(l: LevelStyle): ParagraphFormatDef;
8
- /** A text frame's body properties, from what it sets (a frame of code) or its resolved style. */
9
- export declare function bodyProps(t: Pick<TextFrameDef, "vertical_anchor" | "auto_size" | "word_wrap" | "margin_left" | "margin_top" | "margin_right" | "margin_bottom">, fitted?: number, extra?: Record<string, string | number>): string;
10
- /** A resolved style's body as a text frame's own. */
11
- export declare const bodyOfStyle: (s: TextStyle) => Parameters<typeof bodyProps>[0];
12
- /** What slides.yaml sets on a placeholder's whole text, written on each of its paragraphs and runs. */
13
- export interface TextOverride {
14
- font: FontDef;
15
- alignment?: ParagraphFormatDef["alignment"];
16
- }
17
- /** A paragraph: its level and own properties, its runs, `\v` a line break. */
18
- export declare function paragraph(p: ParagraphDef, lang: string | undefined, over?: TextOverride): string;
19
- /** A text body: body properties, list style, paragraphs (at least one, as the schema asks). */
20
- export declare function txBody(tag: "p:txBody" | "a:txBody", body: string, lstStyle: string, paragraphs: readonly ParagraphDef[], lang: string | undefined, over?: TextOverride): string;
21
- //# sourceMappingURL=text.d.ts.map
@@ -1,4 +0,0 @@
1
- import { fontFace as face, type Theme } from "@allyhub-next/slides-core";
2
- export { face };
3
- export declare function themeXml(theme: Theme): string;
4
- //# sourceMappingURL=theme.d.ts.map
@@ -1,32 +0,0 @@
1
- import type { AnimationDirection, AnimationEffect } from "@allyhub-next/formats";
2
- import { type PathStep, type ResolvedAnimation, type ResolvedTransition } from "@allyhub-next/slides-core";
3
- /** A push's or a wipe's side as PowerPoint writes it: the way the slide moves. */
4
- export declare const TRANSITION_SIDES: Readonly<Record<AnimationDirection, string>>;
5
- /**
6
- * A slide's transition, as PowerPoint writes one: its length in p14's
7
- * attribute, and a morph in p159's element, each for those that read them,
8
- * with a plain transition for those that do not.
9
- */
10
- export declare function transitionXml(t: ResolvedTransition | undefined): string;
11
- /** PowerPoint's preset of each effect: its class and number. */
12
- export declare const PRESETS: Readonly<Record<AnimationEffect, {
13
- kind: string;
14
- id: number;
15
- }>>;
16
- /** A wipe's or a fly's side as PowerPoint numbers it. */
17
- export declare const SUBTYPES: Readonly<Record<AnimationDirection, number>>;
18
- /** A motion path as PowerPoint writes one: shares of the slide, from where the shape stands. */
19
- export declare function motionPath(steps: readonly PathStep[], slide: {
20
- width: number;
21
- height: number;
22
- }): string;
23
- /** A slide's `p:timing`; nothing when it has neither animations nor videos. */
24
- export declare function timingXml(animations: readonly ResolvedAnimation[], videos: readonly number[], spidOf: (shape: string) => number | undefined,
25
- /** Whether a shape has a text body PowerPoint builds. */
26
- texty: (shape: string) => boolean, slide: {
27
- width: number;
28
- height: number;
29
- },
30
- /** Shapes that are videos which play when they come on, with their seconds. */
31
- played?: ReadonlyMap<string, number>): string;
32
- //# sourceMappingURL=timing.d.ts.map
@@ -1,32 +0,0 @@
1
- import { type DrawnDeck, type Frame, type ResolvedSlide, type Theme } from "@allyhub-next/slides-core";
2
- import { type EmbeddedFont } from "./fonts.js";
3
- export interface PptxInput {
4
- deck: DrawnDeck<ResolvedSlide, Theme>;
5
- /** A project file's bytes, by its project path; undefined when it is not there. */
6
- file: (path: string) => Uint8Array | undefined;
7
- /** Pictures (PNG) of the shapes picturedShapes lists, by `<slide>/<shape>`. */
8
- pictures: ReadonlyMap<string, Uint8Array>;
9
- /** What a component that moves draws, as an MP4 and its seconds, by `<slide>/<shape>`: PowerPoint plays it when the shape comes on. */
10
- movies?: ReadonlyMap<string, {
11
- bytes: Uint8Array;
12
- seconds: number;
13
- }>;
14
- /** The document's title. */
15
- title?: string;
16
- /** Fonts to carry in the file, for a computer that lacks them. */
17
- fonts?: readonly EmbeddedFont[];
18
- }
19
- /** The shapes the caller pictures from each slide's still: their keys (`<slide>/<shape>`) and frames, in EMU. */
20
- export declare function picturedShapes(deck: DrawnDeck<ResolvedSlide, Theme>): {
21
- key: string;
22
- slide: string;
23
- shape: string;
24
- frame: Frame;
25
- }[];
26
- /** The project files the package holds: pictures and videos. */
27
- export declare function filesOf(deck: DrawnDeck<ResolvedSlide, Theme>): string[];
28
- /** The file's parts, in the order they are written. */
29
- export declare function pptxParts(input: PptxInput): Map<string, Uint8Array>;
30
- /** A deck as a .pptx file's bytes. */
31
- export declare function writePptx(input: PptxInput): Uint8Array;
32
- //# sourceMappingURL=write.d.ts.map
@@ -1,26 +0,0 @@
1
- import type { Color } from "@allyhub-next/slides-core";
2
- /** Text and attribute values escaped; characters XML 1.0 cannot hold dropped. */
3
- export declare const esc: (s: string) => string;
4
- export type Attrs = Record<string, string | number | boolean | undefined>;
5
- /** An element: its attributes (undefined ones left out, booleans as 1 and 0) and its children. */
6
- export declare function el(name: string, attrs?: Attrs, ...children: string[]): string;
7
- export declare const HEAD = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
8
- export declare const NS: {
9
- readonly a: "http://schemas.openxmlformats.org/drawingml/2006/main";
10
- readonly r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
11
- readonly p: "http://schemas.openxmlformats.org/presentationml/2006/main";
12
- readonly p14: "http://schemas.microsoft.com/office/powerpoint/2010/main";
13
- };
14
- /** The namespaces a PresentationML part's root declares. */
15
- export declare const PML: {
16
- "xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main";
17
- "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
18
- "xmlns:p": "http://schemas.openxmlformats.org/presentationml/2006/main";
19
- };
20
- /** A colour as DrawingML writes it: the theme's (`a:schemeClr`) or RGB (`a:srgbClr`). */
21
- export declare function color(c: Color): string;
22
- /** A solid fill of a colour, or none. */
23
- export declare const fill: (c: Color | null) => string;
24
- /** Hundredths of a point (`sz`) from EMU. */
25
- export declare const centipoints: (emu: number) => number;
26
- //# sourceMappingURL=xml.d.ts.map
@@ -1,40 +0,0 @@
1
- import type { Color, ResolvedShape, ResolvedSlide, Theme } from "@allyhub-next/slides-core";
2
- /** The attribute a shape's element carries: its slide and name (`<slide>/<shape>`). */
3
- export declare const SHAPE_ATTR = "data-ak-shape";
4
- /** A line's width when a shape's outline sets none: PowerPoint's, 0.75 pt. */
5
- export declare const LINE_WIDTH: number;
6
- /** A paragraph's line height at line spacing 1, a multiple of its font size: PowerPoint's single spacing. */
7
- export declare const SINGLE_SPACING = 1.2;
8
- /** The smallest share autofit shrinks text to. */
9
- export declare const MIN_FONT_SCALE = 0.25;
10
- /** The theme as CSS custom properties: `--ak-theme-<colour>`, `--ak-theme-major`, `--ak-theme-minor`. */
11
- export declare function themeCss(theme: Theme): Record<string, string>;
12
- export declare const colorCss: (c: Color | null | undefined) => string;
13
- /** A run's text split where its characters are East Asian, and where they are not. */
14
- export declare function eastAsianRuns(text: string, cjk: boolean): {
15
- text: string;
16
- ea: boolean;
17
- }[];
18
- export interface DrawOptions {
19
- /** Pixels per EMU. */
20
- k: number;
21
- /** A media file's address in the stage, by its project path. */
22
- url: (path: string) => string;
23
- /** Empty placeholders drawn (with nothing in them) while editing. */
24
- editing: boolean;
25
- /** A movie drawn as a playing <video> (presenting); else the footage plane draws its frame. */
26
- playing: boolean;
27
- /** The deck's language (its combo's): a CJK one draws its punctuation in the East Asian face. */
28
- lang?: string;
29
- }
30
- /**
31
- * Shrinks a frame's text until it fits its frame, as PowerPoint's
32
- * "shrink text on overflow" does (`a:normAutofit`, its fontScale): the
33
- * largest scale, to 1 %, at which its paragraphs fit the frame's height.
34
- */
35
- export declare function fitText(frame: HTMLElement, k: number): number;
36
- /** A shape's element, placed in its frame. */
37
- export declare function drawShape(slide: string, shape: ResolvedShape, o: DrawOptions): HTMLElement | undefined;
38
- /** A slide's element: its background and every shape, back to front. */
39
- export declare function drawSlide(slide: ResolvedSlide, o: DrawOptions): HTMLElement;
40
- //# sourceMappingURL=draw.d.ts.map
@@ -1,4 +0,0 @@
1
- import type { DeckEditCommand, DeckEditMessage } from "@allyhub-next/slides-core";
2
- /** The commands a deck's stage takes from its editor, over its slides' element. */
3
- export declare function deckEditor(stage: HTMLElement, k: number): (command: DeckEditCommand, post: (msg: DeckEditMessage) => void) => void;
4
- //# sourceMappingURL=edit.d.ts.map
@@ -1,2 +0,0 @@
1
- /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{SHAPE_ATTR as V}from"./draw.js";const A=600,X=342900,U=8,Z=.25,G=120;function Q(t,r,a){const d=t.commonAncestorContainer,i=[];if(d instanceof Text)i.push(d);else{const c=document.createTreeWalker(d,NodeFilter.SHOW_TEXT);for(;c.nextNode();)c.currentNode instanceof Text&&t.intersectsNode(c.currentNode)&&i.push(c.currentNode)}const n=[];for(const c of i){const u=c===t.startContainer?t.startOffset:0,E=c===t.endContainer?t.endOffset:c.length;if(u>=E)continue;const m=u>0?c.splitText(u):c;E-u<m.length&&m.splitText(E-u);const o=document.createElement("span");r(o),m.replaceWith(o),o.append(m),n.push(o)}const[l]=n,f=n.at(-1);if(!l||!f)return;const g=document.createRange();g.setStartBefore(l),g.setEndAfter(f),a.removeAllRanges(),a.addRange(g)}function I(t){document.execCommand("insertText",!1,t)}function K(t,r){if(!(t instanceof Text))return;const a=new Intl.Segmenter(document.documentElement.lang||void 0,{granularity:"word"}).segment(t.data);for(const d of[r,r-1]){if(d<0||d>=t.length)continue;const i=a.containing(d);if(i?.isWordLike!==!0)continue;const n=document.createRange();return n.setStart(t,i.index),n.setEnd(t,i.index+i.segment.length),n}}function M(t){const r=t.closest("[data-ak-autofit='text']");if(!r)return;const a=1/Number(r.dataset.akFontScale??"1"),d=getComputedStyle(r),i=r.clientHeight-parseFloat(d.paddingTop)-parseFloat(d.paddingBottom),n=r.getBoundingClientRect().height/r.offsetHeight,l=c=>{t.style.setProperty("zoom",String(c));const u=t.firstElementChild?.getBoundingClientRect(),E=t.lastElementChild?.getBoundingClientRect();return!u||!E||E.bottom-u.top<=i*n+.5};if(l(a))return;let f=Z,g=a;for(;g-f>.01;){const c=(f+g)/2;l(c)?f=c:g=c}l(f)}const Y=(t,r)=>t.bold===r.bold&&t.italic===r.italic&&t.code===r.code&&t.color===r.color&&t.font===r.font;function ee(t){const r=getComputedStyle(t),a=[],d=n=>{const l=a.at(-1);l&&(Y(l,n)||n.text.trim()==="")?l.text+=n.text:a.push(n)},i=n=>{if(n instanceof HTMLBRElement){d({...te,text:"\v"});return}if(n.nodeType!==Node.TEXT_NODE){n.childNodes.forEach(i);return}const l=n.parentElement;if(!l)return;const f=getComputedStyle(l);d({text:n.textContent??"",bold:Number(f.fontWeight)>=A&&Number(r.fontWeight)<A,italic:f.fontStyle==="italic"&&r.fontStyle!=="italic",code:l.closest("[data-ak-code]")!==null,color:l.closest("[data-ak-color]")?.dataset.akColor,font:l.closest("[data-ak-font]")?.dataset.akFont})};return t.childNodes.forEach(i),a}const te={bold:!1,italic:!1,code:!1,color:void 0,font:void 0};function ne(t){const[,r="",a="",d=""]=/^(\s*)(.*?)(\s*)$/su.exec(t.text)??[];if(a===""||t.text==="\v")return t.text;let i=t.code?`\`${a}\``:a;const n=[...t.color===void 0?[]:[`color="${t.color}"`],...t.font===void 0?[]:[`font="${t.font}"`]];return n.length>0&&(i=`<span ${n.join(" ")}>${i}</span>`),t.italic&&(i=`*${i}*`),t.bold&&(i=`**${i}**`),`${r}${i}${d}`}function oe(t){const r=[...t.children].filter(a=>a instanceof HTMLElement);return r.length===0?[{text:t.innerText.trim(),level:0}]:r.map(a=>({text:ee(a).map(ne).join("").replace(/\v$/u,""),level:Number(a.dataset.akLevel??"0")||0}))}export function deckEditor(t,r){const a=n=>t.querySelector(`[${V}="${CSS.escape(n)}"]`);let d;const i=(n,l)=>{if(n.type==="deck-frame"){const e=a(n.shape);if(!e)return;if(e.dataset.akFileFrame??=JSON.stringify([e.style.left,e.style.top,e.style.width,e.style.height]),n.frame===null){const[p,h,$,J]=JSON.parse(e.dataset.akFileFrame);Object.assign(e.style,{left:p,top:h,width:$,height:J});return}const s=n.frame;Object.assign(e.style,{left:`${String(s.left*r)}px`,top:`${String(s.top*r)}px`,width:`${String(s.width*r)}px`,height:`${String(s.height*r)}px`});return}if(n.type==="deck-stop"){d?.stop();return}if(n.type==="deck-hold"){d?.hold();return}if(n.type==="deck-format"){d?.format(n);return}const f=a(n.shape),g=t.getBoundingClientRect(),c=n.at&&[g.left+n.at.x*g.width,g.top+n.at.y*g.height],u=f?[...f.querySelectorAll("[data-ak-cell]")]:[],E=c&&document.elementFromPoint(c[0],c[1]),m=u.find(e=>e.dataset.akCell===n.cell?.join(","))??(E?u.find(e=>e.contains(E)):void 0)??u[0],o=(m??f)?.querySelector("[data-ak-body]");if(!f||!o)return;d?.stop();const y=n.shape,O=m?.dataset.akCell?.split(",").map(Number),S=O?{cell:O}:{};if(o.children.length===0){const e=document.createElement("div");e.dataset.akParagraph="0",e.dataset.akLevel="0",e.append(document.createElement("br")),o.append(e)}o.contentEditable="true",o.spellcheck=!1,o.style.outline="none",o.style.cursor="text";const L=()=>oe(o),C=e=>{e instanceof InputEvent&&e.isComposing||(M(o),l({type:"deck-text",shape:y,paragraphs:L(),...S}))},F=e=>{e.preventDefault();const s=e.clipboardData?.getData("text/plain")??"";I(s)},q=e=>{const s=getSelection()?.anchorNode,p=(s instanceof Element?s:s?.parentElement)?.closest("[data-ak-level]");if(!p)return;const h=Number(p.dataset.akLevel??"0")+e;if(h<0||h>U)return;p.dataset.akLevel=String(h);const $=parseFloat(p.style.marginLeft)||0;p.style.marginLeft=`${String($+e*X*r)}px`,l({type:"deck-text",shape:y,paragraphs:L(),...S})},P=e=>{const s=e?.dataset.akCell?.split(",").map(Number);!s||e===m||(_(!1),i({type:"deck-edit",shape:y,cell:[s[0]??0,s[1]??0]},l))},B=e=>{e.stopPropagation(),e.key==="Escape"&&T(),e.key==="Tab"&&(e.preventDefault(),m?P(u[u.indexOf(m)+(e.shiftKey?-1:1)]):q(e.shiftKey?-1:1)),(e.metaKey||e.ctrlKey)&&e.key==="u"&&e.preventDefault()};let w;const W=e=>{w=u.find(s=>s!==m&&e.target instanceof Node&&s.contains(e.target)),w&&e.preventDefault()},D=e=>{e.stopPropagation(),P(w)},_=e=>{o.removeEventListener("input",C),o.removeEventListener("compositionend",C),o.removeEventListener("paste",F),o.removeEventListener("keydown",B),o.removeEventListener("blur",H),o.removeEventListener("focus",j),document.removeEventListener("selectionchange",R),clearTimeout(b),f.removeEventListener("mousedown",W),document.removeEventListener("click",D,!0),o.contentEditable="false",d=void 0,l({type:e?"deck-text-done":"deck-text",shape:y,paragraphs:L(),...S})},T=()=>{_(!0)};let v,N=!1,b;const R=()=>{const e=getSelection();if(!e||e.rangeCount===0)return;const s=e.getRangeAt(0);if(!o.contains(s.commonAncestorContainer))return;v=s.cloneRange();const p=s.startContainer instanceof Element?s.startContainer:s.startContainer.parentElement;l({type:"deck-selection",shape:y,words:!s.collapsed,bold:p?Number(getComputedStyle(p).fontWeight)>=A:!1,italic:p?getComputedStyle(p).fontStyle==="italic":!1})},H=()=>{b=setTimeout(()=>{N||T()},G)},j=()=>{N=!1,clearTimeout(b)},z=e=>{const s=getSelection();if(!s||!v)return;window.focus(),o.focus();const p=v.collapsed?K(v.startContainer,v.startOffset):v;p&&(v=p,s.removeAllRanges(),s.addRange(v),Q(v,h=>{e.bold!==void 0&&(h.style.fontWeight=e.bold?"700":"400"),e.italic!==void 0&&(h.style.fontStyle=e.italic?"italic":"normal"),e.color!==void 0&&(h.dataset.akColor=e.color,h.style.color=e.color.startsWith("#")?e.color:`var(--ak-theme-${e.color})`)},s),M(o),l({type:"deck-text",shape:y,paragraphs:L(),...S}),R())};o.addEventListener("input",C),o.addEventListener("compositionend",C),o.addEventListener("paste",F),o.addEventListener("keydown",B),o.addEventListener("blur",H),o.addEventListener("focus",j),document.addEventListener("selectionchange",R),m&&f.addEventListener("mousedown",W),document.addEventListener("click",D,!0),window.focus(),d={body:o,stop:T,format:z,hold:()=>{N=!0}},o.focus();const x=c?document.caretPositionFromPoint(c[0],c[1]):null,k=getSelection();if(k){if(k.removeAllRanges(),x&&o.contains(x.offsetNode)){const e=document.createRange();e.setStart(x.offsetNode,x.offset),e.collapse(!0),k.addRange(e);const s=n.word===!0?K(x.offsetNode,x.offset):void 0;s&&(k.removeAllRanges(),k.addRange(s))}else{const e=document.createRange();e.selectNodeContents(o),e.collapse(!1),k.addRange(e)}n.text!==void 0&&I(n.text)}};return i}
@@ -1,4 +0,0 @@
1
- export { DECK_FPS, SLIDE_SECONDS } from "@allyhub-next/slides-core";
2
- export { loadDeck } from "./load.js";
3
- export { drawShape, drawSlide, fitText, themeCss, colorCss, SHAPE_ATTR, LINE_WIDTH, SINGLE_SPACING, MIN_FONT_SCALE, type DrawOptions, } from "./draw.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,10 +0,0 @@
1
- import type { Box } from "@allyhub-next/video-core";
2
- /**
3
- * The ink of the text drawn by these elements (a paragraph's runs), a box
4
- * per line, in the slide's pixels: `stage` is the slide's element and
5
- * `width` its width in the slide's pixels.
6
- */
7
- export declare function inkLines(runs: readonly HTMLElement[], stage: HTMLElement, width: number): Box[];
8
- /** The box around boxes, whole pixels outward. */
9
- export declare function union(boxes: readonly Box[]): Box | null;
10
- //# sourceMappingURL=ink.d.ts.map
@@ -1,6 +0,0 @@
1
- import type { LoadedOutput } from "@allyhub-next/runtime";
2
- import { type BuildSource, type LoadOptions } from "@allyhub-next/video-core";
3
- /** The layer a slide's plane lists for the slide itself: its background and shapes. */
4
- export declare const SLIDE_LAYER = "slide";
5
- export declare function loadDeck(source: BuildSource, options: LoadOptions, el: HTMLElement): Promise<LoadedOutput>;
6
- //# sourceMappingURL=load.d.ts.map
@@ -1,42 +0,0 @@
1
- import { type BakeReport } from "@allyhub-next/scenery";
2
- import { type BakeState } from "@allyhub-next/scenery-host";
3
- /** The bake index: which bake each scenery module was last baked to. */
4
- export declare const BAKE_INDEX = ".allyhub/cache/bake/sceneries.json";
5
- /** Which bake each scenery module was last baked to, by the renderer it was made on: scenery file → renderer → digest. */
6
- export type BakeIndex = Record<string, Record<string, string>>;
7
- /** A bake's report, beside its file. */
8
- export declare const bakeReportFile: (digest: string, renderer: string) => string;
9
- /** The project's bake index; empty when there is none or it cannot be read. */
10
- export declare function readBakeIndex(root: string): Promise<BakeIndex>;
11
- /** The bakes the project holds, as `<digest>.<renderer>`: what a page may lay. */
12
- export declare function bakesOnDisk(root: string): Promise<Set<string>>;
13
- export interface KeptBake {
14
- /** The bake file and its report, project paths. */
15
- bake: string;
16
- report: string;
17
- /** The digest of the scenery's previous bake on this renderer, removed since no scenery uses it now. */
18
- dropped?: string;
19
- }
20
- /**
21
- * Keeps a bake a page made: its file and report, and the index entry for
22
- * its scenery on its renderer. The scenery's previous bake on that
23
- * renderer goes, unless another scenery still uses it.
24
- */
25
- export declare function keepBake(root: string, file: string, report: BakeReport, bytes: Uint8Array): Promise<KeptBake>;
26
- /** A scenery's bake as a page found it and as the project's index says it. */
27
- export interface BakeStatus {
28
- laid: boolean;
29
- /** The scene's digest. */
30
- digest: string;
31
- /** The renderer the page draws on (bakeRenderer). */
32
- renderer: string;
33
- /** Laid: the renderer the bake was made on (this one's, or the CPU's). */
34
- bakedOn?: string;
35
- /** Not laid: the digest this renderer (or the CPU) last baked the scenery to, when it is not the scene's: out of date. */
36
- stale?: string;
37
- /** Not laid: other GPUs a bake of this very scene was made on, which this renderer does not lay. */
38
- elsewhere?: string[];
39
- }
40
- /** What a scenery's bake is now: laid, out of date, made only on another GPU, or none. */
41
- export declare function bakeStatus(state: BakeState, index: BakeIndex, file: string): BakeStatus;
42
- //# sourceMappingURL=bakes.d.ts.map
@@ -1,7 +0,0 @@
1
- import type { ExportPage } from "@allyhub-next/render";
2
- import type { StagePage } from "./page.js";
3
- /** A render's pages over loaded stage pages; `gpu` when the browser draws on the GPU. */
4
- export declare function graphicsPage(stage: StagePage, options?: {
5
- gpu?: boolean;
6
- }): ExportPage;
7
- //# sourceMappingURL=graphics.d.ts.map
@@ -1,2 +0,0 @@
1
- export declare function stageIdentity(fonts?: string): string[];
2
- //# sourceMappingURL=identity.d.ts.map
@@ -1,9 +0,0 @@
1
- export { BUILD_BASE, STAGE_BASE, STAGE_PAGE, mediaUrl, serveStage, type StageServerOptions, } from "./server.js";
2
- export { LoadError, StagePage, type CaptureOptions, type OpenOptions, } from "./page.js";
3
- export { graphicsPage } from "./graphics.js";
4
- export { sceneryHost, serveDecoders } from "./scenery.js";
5
- export { stageIdentity } from "./identity.js";
6
- export { SceneryCallError, SceneryStage, sceneryBuildDir, type SceneryStageOptions, } from "./scenery-page.js";
7
- export { BAKE_INDEX, bakeReportFile, bakeStatus, bakesOnDisk, keepBake, readBakeIndex, type BakeIndex, type BakeStatus, type KeptBake, } from "./bakes.js";
8
- export { solveSceneryCamera, solvedPicture, type Correspondences, type SceneryCameraSolve, type SolveRef, } from "./scenery-solve.js";
9
- //# sourceMappingURL=index.d.ts.map
@@ -1,87 +0,0 @@
1
- import { type Browser, type Drawing, type LocalServer, type Page } from "@allyhub-next/browser";
2
- import type { DrawOptions, LoadedSummary, PartSignature } from "@allyhub-next/runtime/bridge";
3
- import { type BuildSource, type CaptionLine, type CaptionOptions, type ConsoleLog, type LayerAnswer, type LayerQueries, type LayoutReport, type LoadOptions, type Problem, type TextInk, type Track, type Word } from "@allyhub-next/video-core";
4
- /** A piece that could not load at all: the runtime's LoadFailure, its code and words. */
5
- export declare class LoadError extends Error {
6
- readonly code: string;
7
- /** The page's whole report, its stack included: where the host finds the project's line. */
8
- readonly detail: string;
9
- constructor(code: string, message: string, detail?: string);
10
- }
11
- export interface OpenOptions {
12
- browser: Browser;
13
- server: LocalServer;
14
- /** Draw frames on request (a browser started with BeginFrame control, Linux). */
15
- beginFrame?: boolean;
16
- }
17
- /** What a frame is captured as. */
18
- export interface CaptureOptions {
19
- format?: "png" | "jpeg";
20
- quality?: number;
21
- /** Keep the stage's transparency (PNG). */
22
- alpha?: boolean;
23
- }
24
- export declare class StagePage {
25
- readonly page: Page;
26
- readonly drawing: Drawing;
27
- /** What the load said, after `load`. */
28
- summary: LoadedSummary | undefined;
29
- private constructor();
30
- /** A page at a piece's size, the stage loaded in it. */
31
- static open(source: Pick<BuildSource, "format">, options: OpenOptions): Promise<StagePage>;
32
- /** Loads the piece and readies it; a piece that cannot load at all is a LoadError. */
33
- load(source: BuildSource, options: LoadOptions): Promise<LoadedSummary>;
34
- private output;
35
- /** Draws film time t; the picture is settled when it returns. */
36
- seek(t: number, options?: DrawOptions): Promise<void>;
37
- /** What shows after the last seek, as a string two equal moments share; undefined when the DOM does not say it all. */
38
- signature(): Promise<string | undefined>;
39
- /**
40
- * What moment t shows, drawn for its layout alone (LoadedOutput.signatureAt):
41
- * the page's pixels are then not t's until the next seek.
42
- */
43
- signatureAt(t: number): Promise<string | undefined>;
44
- /** The page's picture now. */
45
- capture(options?: CaptureOptions): Promise<Buffer>;
46
- partSignature(key: string, times: readonly number[]): Promise<PartSignature>;
47
- problems(): Promise<Problem[]>;
48
- stuck(): Promise<string | undefined>;
49
- words(): Promise<Word[]>;
50
- lines(): Promise<CaptionLine[]>;
51
- /** The options its first layer that read its captions asked; undefined when none did. */
52
- captionOptions(): Promise<CaptionOptions | undefined>;
53
- measure(times?: readonly number[]): Promise<LayoutReport>;
54
- tracks(from: number, to: number): Promise<Track[]>;
55
- inks(t: number): Promise<TextInk[]>;
56
- /** A deck as it was drawn (slides-core's DrawnDeck). */
57
- deck(): Promise<unknown>;
58
- /**
59
- * Hides every text's fill while on (HIDE_TEXT_CSS; with `outlines`,
60
- * their strokes and shadows too), as a constructed style sheet adopted
61
- * by the document, not a <style> element: the page's watcher of changes
62
- * outside the stage (AK-R003) sees no change to the DOM.
63
- */
64
- hideText(on: boolean, outlines?: boolean): Promise<void>;
65
- drawCover(n: number): Promise<void>;
66
- ask<K extends keyof LayerQueries>(name: K, args: LayerQueries[K]["args"]): Promise<LayerAnswer<LayerQueries[K]["answer"]>[]>;
67
- /**
68
- * The output printed to a PDF, a sheet per page: at each page's still,
69
- * the stage's DOM cloned onto a sheet of `paper` (CSS @page size: "W H",
70
- * or A4 and Letter at their size, the frame scaled onto it) over its
71
- * `background`, so the text stays text; canvases frozen to pictures; a
72
- * sheet without headings of its own given an invisible one, its title,
73
- * so the outline lists every page; printed tagged, with the outline and
74
- * backgrounds. The stage is gone after it: print last.
75
- */
76
- print(pages: readonly {
77
- still: number;
78
- title: string;
79
- background: string;
80
- }[], paper: string): Promise<Buffer>;
81
- /** What piece code printed since the load began. */
82
- console(): Promise<ConsoleLog>;
83
- /** Requests the page made that the server did not allow (AK-N003). */
84
- refused(): string[];
85
- close(): Promise<void>;
86
- }
87
- //# sourceMappingURL=page.d.ts.map