allyhub 0.6.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 (621) 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 +5 -5
  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/fonts.js +2 -0
  56. package/dist/node_modules/@allyhub-next/dev-server/dist/index.js +1 -1
  57. package/dist/node_modules/@allyhub-next/dev-server/dist/live.js +1 -1
  58. package/dist/node_modules/@allyhub-next/dev-server/dist/project.js +1 -1
  59. package/dist/node_modules/@allyhub-next/dev-server/dist/reach.js +2 -0
  60. package/dist/node_modules/@allyhub-next/dev-server/dist/record.js +2 -0
  61. package/dist/node_modules/@allyhub-next/dev-server/dist/server.js +2 -2
  62. package/dist/node_modules/@allyhub-next/dev-server/dist/tools.js +1 -1
  63. package/dist/node_modules/@allyhub-next/dev-server/dist/tree.js +2 -0
  64. package/dist/node_modules/@allyhub-next/dev-server/package.json +1 -1
  65. package/dist/node_modules/@allyhub-next/doc/package.json +1 -1
  66. package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.js +1 -1
  67. package/dist/node_modules/@allyhub-next/export/dist/export.js +5 -5
  68. package/dist/node_modules/@allyhub-next/export/dist/index.js +1 -1
  69. package/dist/node_modules/@allyhub-next/export/package.json +1 -1
  70. package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.d.ts +205 -0
  71. package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.js +2 -0
  72. package/dist/node_modules/@allyhub-next/formats/dist/data/script.d.ts +4 -1
  73. package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
  74. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +69 -18
  75. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
  76. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +847 -116
  77. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
  78. package/dist/node_modules/@allyhub-next/formats/dist/data/website.d.ts +20 -0
  79. package/dist/node_modules/@allyhub-next/formats/dist/data/website.js +2 -0
  80. package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +3 -0
  81. package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
  82. package/dist/node_modules/@allyhub-next/formats/dist/items.d.ts +1 -1
  83. package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
  84. package/dist/node_modules/@allyhub-next/formats/dist/media-type.d.ts +3 -0
  85. package/dist/node_modules/@allyhub-next/formats/dist/media-type.js +2 -0
  86. package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +501 -38
  87. package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
  88. package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +2 -0
  89. package/dist/node_modules/@allyhub-next/formats/dist/strict.js +1 -1
  90. package/dist/node_modules/@allyhub-next/formats/package.json +2 -1
  91. package/dist/node_modules/@allyhub-next/measure/package.json +1 -1
  92. package/dist/node_modules/@allyhub-next/media/dist/index.d.ts +1 -1
  93. package/dist/node_modules/@allyhub-next/media/dist/index.js +1 -1
  94. package/dist/node_modules/@allyhub-next/media/dist/sheet.d.ts +2 -0
  95. package/dist/node_modules/@allyhub-next/media/dist/sheet.js +7 -7
  96. package/dist/node_modules/@allyhub-next/media/package.json +1 -1
  97. package/dist/node_modules/@allyhub-next/model/package.json +1 -1
  98. package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.d.ts +31 -0
  99. package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.js +2 -0
  100. package/dist/node_modules/@allyhub-next/ooxml/dist/color.d.ts +33 -0
  101. package/dist/node_modules/@allyhub-next/ooxml/dist/color.js +2 -0
  102. package/dist/node_modules/@allyhub-next/ooxml/dist/enums.d.ts +13 -0
  103. package/dist/node_modules/@allyhub-next/ooxml/dist/enums.js +2 -0
  104. package/dist/node_modules/@allyhub-next/ooxml/dist/ext.d.ts +79 -0
  105. package/dist/node_modules/@allyhub-next/ooxml/dist/ext.js +2 -0
  106. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.d.ts +132 -0
  107. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.js +2 -0
  108. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.d.ts +28 -0
  109. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.js +2 -0
  110. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.d.ts +4708 -0
  111. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.js +2 -0
  112. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.d.ts +57 -0
  113. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.js +2 -0
  114. package/dist/node_modules/@allyhub-next/ooxml/dist/index.d.ts +10 -0
  115. package/dist/node_modules/@allyhub-next/ooxml/dist/index.js +2 -0
  116. package/dist/node_modules/@allyhub-next/ooxml/dist/mce.d.ts +12 -0
  117. package/dist/node_modules/@allyhub-next/ooxml/dist/mce.js +2 -0
  118. package/dist/node_modules/@allyhub-next/ooxml/dist/node.d.ts +111 -0
  119. package/dist/node_modules/@allyhub-next/ooxml/dist/node.js +2 -0
  120. package/dist/node_modules/@allyhub-next/ooxml/dist/ns.d.ts +45 -0
  121. package/dist/node_modules/@allyhub-next/ooxml/dist/ns.js +2 -0
  122. package/dist/node_modules/@allyhub-next/ooxml/dist/opc.d.ts +48 -0
  123. package/dist/node_modules/@allyhub-next/ooxml/dist/opc.js +2 -0
  124. package/dist/node_modules/@allyhub-next/ooxml/dist/report.d.ts +45 -0
  125. package/dist/node_modules/@allyhub-next/ooxml/dist/report.js +2 -0
  126. package/dist/node_modules/@allyhub-next/ooxml/dist/xml.d.ts +28 -0
  127. package/dist/node_modules/@allyhub-next/ooxml/dist/xml.js +2 -0
  128. package/dist/node_modules/@allyhub-next/ooxml/package.json +26 -0
  129. package/dist/node_modules/@allyhub-next/project/dist/deck-keys.js +2 -0
  130. package/dist/node_modules/@allyhub-next/project/dist/deck-measure.js +2 -0
  131. package/dist/node_modules/@allyhub-next/project/dist/deck-pool.js +2 -0
  132. package/dist/node_modules/@allyhub-next/project/dist/index.js +1 -1
  133. package/dist/node_modules/@allyhub-next/project/dist/session.js +1 -1
  134. package/dist/node_modules/@allyhub-next/project/dist/stills.js +2 -0
  135. package/dist/node_modules/@allyhub-next/project/package.json +1 -1
  136. package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +338 -0
  137. package/dist/node_modules/@allyhub-next/protocol/dist/account.js +2 -0
  138. package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +12 -13
  139. package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
  140. package/dist/node_modules/@allyhub-next/protocol/dist/blobs.d.ts +35 -0
  141. package/dist/node_modules/@allyhub-next/protocol/dist/blobs.js +2 -0
  142. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +101 -32
  143. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
  144. package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +79 -5
  145. package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
  146. package/dist/node_modules/@allyhub-next/protocol/dist/files.d.ts +2 -2
  147. package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +6 -0
  148. package/dist/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
  149. package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +21 -0
  150. package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
  151. package/dist/node_modules/@allyhub-next/protocol/dist/open.d.ts +13 -0
  152. package/dist/node_modules/@allyhub-next/protocol/dist/open.js +2 -0
  153. package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +73 -59
  154. package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
  155. package/dist/node_modules/@allyhub-next/protocol/dist/routes.d.ts +1 -1
  156. package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
  157. package/dist/node_modules/@allyhub-next/protocol/dist/shares.d.ts +115 -0
  158. package/dist/node_modules/@allyhub-next/protocol/dist/shares.js +2 -0
  159. package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +293 -0
  160. package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +2 -0
  161. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +377 -0
  162. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +2 -0
  163. package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +27 -9
  164. package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +1 -1
  165. package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +53 -14
  166. package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
  167. package/dist/node_modules/@allyhub-next/protocol/package.json +2 -1
  168. package/dist/node_modules/@allyhub-next/registry/package.json +1 -1
  169. package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.js +3 -2
  170. package/dist/node_modules/@allyhub-next/render/dist/doc/index.js +1 -1
  171. package/dist/node_modules/@allyhub-next/render/dist/doc/pdf.js +34 -0
  172. package/dist/node_modules/@allyhub-next/render/dist/doc/print.js +4 -4
  173. package/dist/node_modules/@allyhub-next/render/dist/exports.js +2 -2
  174. package/dist/node_modules/@allyhub-next/render/dist/pdf.js +2 -0
  175. package/dist/node_modules/@allyhub-next/render/package.json +1 -1
  176. package/dist/node_modules/@allyhub-next/runtime/dist/fonts.js +1 -1
  177. package/dist/node_modules/@allyhub-next/runtime/dist/music.js +1 -1
  178. package/dist/node_modules/@allyhub-next/runtime/package.json +1 -1
  179. package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
  180. package/dist/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +25 -5
  181. package/dist/node_modules/@allyhub-next/scaffold/dist/index.js +4 -4
  182. package/dist/node_modules/@allyhub-next/scaffold/package.json +1 -1
  183. package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
  184. package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.d.ts +10 -0
  185. package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.js +3 -3
  186. package/dist/node_modules/@allyhub-next/scenery-host/package.json +1 -1
  187. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +9 -3
  188. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +1 -1
  189. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +5 -1
  190. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +1 -1
  191. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +60 -13
  192. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +1 -1
  193. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +1 -1
  194. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.d.ts +4 -0
  195. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.js +2 -0
  196. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +1 -1
  197. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +1 -1
  198. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +1 -1
  199. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +27 -1
  200. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +1 -1
  201. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.d.ts +16 -0
  202. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.js +2 -0
  203. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +18 -1
  204. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +1 -1
  205. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +1 -1
  206. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +2 -0
  207. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +1 -1
  208. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +1 -1
  209. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +1 -1
  210. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +1 -1
  211. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +1 -1
  212. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +1 -1
  213. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.d.ts +2 -0
  214. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.js +2 -0
  215. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +1 -1
  216. package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.d.ts +38 -0
  217. package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.js +2 -0
  218. package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.d.ts +19 -0
  219. package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.js +2 -0
  220. package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.d.ts +49 -0
  221. package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.js +2 -0
  222. package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +82 -0
  223. package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.js +2 -0
  224. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +6 -1
  225. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +1 -1
  226. package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +1 -1
  227. package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
  228. package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +15 -0
  229. package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +1 -1
  230. package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +29 -8
  231. package/dist/node_modules/@allyhub-next/sheet/dist/export.js +3 -4
  232. package/dist/node_modules/@allyhub-next/sheet/dist/file.js +2 -2
  233. package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +8 -2
  234. package/dist/node_modules/@allyhub-next/sheet/dist/format.js +1 -1
  235. package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +52 -4
  236. package/dist/node_modules/@allyhub-next/sheet/dist/html.js +43 -11
  237. package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +7 -3
  238. package/dist/node_modules/@allyhub-next/sheet/dist/index.js +1 -1
  239. package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +1 -1
  240. package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +98 -0
  241. package/dist/node_modules/@allyhub-next/sheet/dist/paginate.js +2 -0
  242. package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
  243. package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +32 -0
  244. package/dist/node_modules/@allyhub-next/sheet/dist/table-style.js +2 -0
  245. package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.d.ts +3 -0
  246. package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.js +2 -0
  247. package/dist/node_modules/@allyhub-next/sheet/dist/values.js +1 -1
  248. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +10 -1
  249. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +1 -1
  250. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +10 -1
  251. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
  252. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +14 -4
  253. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +2 -2
  254. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +11 -1
  255. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +36 -16
  256. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +3 -1
  257. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
  258. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +42 -1
  259. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -1
  260. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.d.ts +23 -0
  261. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.js +2 -0
  262. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +2 -0
  263. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +1 -1
  264. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +6 -0
  265. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
  266. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +40 -0
  267. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +2 -0
  268. package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
  269. package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +1 -1
  270. package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +59 -39
  271. package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
  272. package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
  273. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +27 -13
  274. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
  275. package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +1 -1
  276. package/dist/node_modules/@allyhub-next/slides-core/dist/code.d.ts +33 -0
  277. package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +2 -0
  278. package/dist/node_modules/@allyhub-next/slides-core/dist/components.d.ts +31 -0
  279. package/dist/node_modules/@allyhub-next/slides-core/dist/components.js +2 -0
  280. package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +179 -16
  281. package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
  282. package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +43 -21
  283. package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +3 -3
  284. package/dist/node_modules/@allyhub-next/slides-core/dist/identity.d.ts +17 -0
  285. package/dist/node_modules/@allyhub-next/slides-core/dist/identity.js +2 -0
  286. package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +5 -1
  287. package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
  288. package/dist/node_modules/@allyhub-next/slides-core/dist/lang.d.ts +6 -0
  289. package/dist/node_modules/@allyhub-next/slides-core/dist/lang.js +2 -0
  290. package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +1 -1
  291. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +58 -0
  292. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +2 -0
  293. package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +2 -4
  294. package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +17 -1
  295. package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
  296. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +21 -5
  297. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
  298. package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +18 -16
  299. package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +2 -2
  300. package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +51 -53
  301. package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +1 -1
  302. package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +27 -0
  303. package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +1 -1
  304. package/dist/node_modules/@allyhub-next/slides-core/dist/values.d.ts +7 -0
  305. package/dist/node_modules/@allyhub-next/slides-core/dist/values.js +2 -0
  306. package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
  307. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/code.js +4 -0
  308. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/index.js +3 -0
  309. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/names.js +2 -0
  310. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/script.js +2 -0
  311. package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.js +1 -1
  312. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/chart.js +2 -0
  313. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/common.js +2 -0
  314. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/index.js +4 -0
  315. package/dist/{site.js → node_modules/@allyhub-next/slides-pptx/dist/read/model.js} +1 -1
  316. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/shapes.js +2 -0
  317. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/table.js +2 -0
  318. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/text.js +2 -0
  319. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/timing.js +2 -0
  320. package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.js +1 -1
  321. package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.js +1 -1
  322. package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.js +1 -1
  323. package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.js +1 -1
  324. package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.js +2 -2
  325. package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.js +2 -2
  326. package/dist/node_modules/@allyhub-next/slides-pptx/package.json +1 -1
  327. package/dist/node_modules/@allyhub-next/slides-runtime/dist/component.js +2 -0
  328. package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.js +2 -2
  329. package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.js +1 -1
  330. package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.js +5 -5
  331. package/dist/node_modules/@allyhub-next/slides-runtime/package.json +5 -1
  332. package/dist/node_modules/@allyhub-next/stage/dist/index.js +1 -1
  333. package/dist/node_modules/@allyhub-next/stage/dist/page.js +22 -12
  334. package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.js +5 -5
  335. package/dist/node_modules/@allyhub-next/stage/dist/server.js +1 -1
  336. package/dist/node_modules/@allyhub-next/stage/package.json +1 -1
  337. package/dist/node_modules/@allyhub-next/stage-page/dist/host.js +1 -20
  338. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/probe.html +8 -0
  339. package/dist/{astro.js → node_modules/@allyhub-next/stage-page/dist/runtime/probe.js} +1 -1
  340. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/runtime.js +79 -0
  341. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.html +21 -0
  342. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.js +3 -0
  343. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.html +9 -0
  344. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.js +3 -0
  345. package/dist/node_modules/@allyhub-next/stage-page/package.json +2 -3
  346. package/dist/node_modules/@allyhub-next/video-core/dist/captions.js +6 -6
  347. package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +47 -8
  348. package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
  349. package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +1 -0
  350. package/dist/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
  351. package/dist/node_modules/@allyhub-next/video-core/dist/marks.d.ts +14 -0
  352. package/dist/node_modules/@allyhub-next/video-core/dist/marks.js +1 -1
  353. package/dist/node_modules/@allyhub-next/video-core/dist/music.d.ts +2 -1
  354. package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +11 -2
  355. package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +4 -0
  356. package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
  357. package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +2 -2
  358. package/dist/node_modules/@allyhub-next/video-core/dist/schema.js +1 -1
  359. package/dist/node_modules/@allyhub-next/video-core/dist/script.d.ts +2 -1
  360. package/dist/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
  361. package/dist/node_modules/@allyhub-next/video-core/dist/source.d.ts +7 -0
  362. package/dist/node_modules/@allyhub-next/video-core/dist/source.js +2 -0
  363. package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +10 -33
  364. package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
  365. package/dist/node_modules/@allyhub-next/website/LICENSE +241 -0
  366. package/dist/node_modules/@allyhub-next/website/dist/index.js +2 -0
  367. package/dist/node_modules/@allyhub-next/website/dist/publish.js +3 -0
  368. package/dist/node_modules/@allyhub-next/website/dist/rules.js +2 -0
  369. package/dist/node_modules/@allyhub-next/website/dist/website.js +4 -0
  370. package/dist/node_modules/@allyhub-next/website/package.json +13 -0
  371. package/dist/text/facts-text.js +4 -4
  372. package/dist/works.js +1 -1
  373. package/editor-web/assets/calc-worker-Bz9r26p1.js +158 -0
  374. package/editor-web/assets/dist-0emakyZE.js +36 -0
  375. package/editor-web/assets/dist-B3UoDUa5.js +37 -0
  376. package/editor-web/assets/dist-B6KzR3pN.js +10 -0
  377. package/editor-web/assets/dist-Bc5iA5k1.js +1 -0
  378. package/editor-web/assets/dist-CTQIm8Im.js +10 -0
  379. package/editor-web/assets/dist-CiHNHwyq.js +2 -0
  380. package/editor-web/assets/dist-DNZ8PQ-E.js +224 -0
  381. package/editor-web/assets/index-CFt3ovRY.js +69 -0
  382. package/editor-web/assets/index-ujKjdu_s.css +2 -0
  383. package/editor-web/assets/minus-BhoPZC5P.js +1 -0
  384. package/editor-web/assets/react-C_-rEEBU.js +101 -0
  385. package/editor-web/assets/tabs-Den4gHrU.js +105 -0
  386. package/editor-web/assets/text-align-start-CsW4nqqL.js +1 -0
  387. package/editor-web/index.html +5 -5
  388. package/package.json +8 -14
  389. package/dist/astro.d.ts +0 -2
  390. package/dist/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +0 -52
  391. package/dist/node_modules/@allyhub-next/audio/dist/decode.d.ts +0 -33
  392. package/dist/node_modules/@allyhub-next/audio/dist/envelope.d.ts +0 -37
  393. package/dist/node_modules/@allyhub-next/audio/dist/index.d.ts +0 -17
  394. package/dist/node_modules/@allyhub-next/audio/dist/levels.d.ts +0 -97
  395. package/dist/node_modules/@allyhub-next/audio/dist/master.d.ts +0 -29
  396. package/dist/node_modules/@allyhub-next/audio/dist/music.d.ts +0 -11
  397. package/dist/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +0 -39
  398. package/dist/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +0 -25
  399. package/dist/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +0 -31
  400. package/dist/node_modules/@allyhub-next/audio/dist/node/index.d.ts +0 -8
  401. package/dist/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +0 -18
  402. package/dist/node_modules/@allyhub-next/audio/dist/node/master.d.ts +0 -42
  403. package/dist/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +0 -60
  404. package/dist/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +0 -31
  405. package/dist/node_modules/@allyhub-next/audio/dist/plan.d.ts +0 -143
  406. package/dist/node_modules/@allyhub-next/audio/dist/recorded.d.ts +0 -26
  407. package/dist/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +0 -47
  408. package/dist/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +0 -89
  409. package/dist/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +0 -64
  410. package/dist/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +0 -26
  411. package/dist/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +0 -42
  412. package/dist/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +0 -56
  413. package/dist/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +0 -10
  414. package/dist/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +0 -12
  415. package/dist/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +0 -67
  416. package/dist/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +0 -32
  417. package/dist/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +0 -27
  418. package/dist/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +0 -64
  419. package/dist/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +0 -78
  420. package/dist/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +0 -111
  421. package/dist/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +0 -3
  422. package/dist/node_modules/@allyhub-next/audio/dist/render.d.ts +0 -26
  423. package/dist/node_modules/@allyhub-next/audio/dist/sfx.d.ts +0 -10
  424. package/dist/node_modules/@allyhub-next/audio/dist/shape.d.ts +0 -118
  425. package/dist/node_modules/@allyhub-next/audio/dist/voice.d.ts +0 -45
  426. package/dist/node_modules/@allyhub-next/browser/dist/browser.d.ts +0 -24
  427. package/dist/node_modules/@allyhub-next/browser/dist/capture.d.ts +0 -61
  428. package/dist/node_modules/@allyhub-next/browser/dist/cdp.d.ts +0 -51
  429. package/dist/node_modules/@allyhub-next/browser/dist/flags.d.ts +0 -13
  430. package/dist/node_modules/@allyhub-next/browser/dist/frames.d.ts +0 -35
  431. package/dist/node_modules/@allyhub-next/browser/dist/html.d.ts +0 -19
  432. package/dist/node_modules/@allyhub-next/browser/dist/index.d.ts +0 -10
  433. package/dist/node_modules/@allyhub-next/browser/dist/launch.d.ts +0 -35
  434. package/dist/node_modules/@allyhub-next/browser/dist/page.d.ts +0 -67
  435. package/dist/node_modules/@allyhub-next/browser/dist/server.d.ts +0 -26
  436. package/dist/node_modules/@allyhub-next/check/dist/cache.d.ts +0 -46
  437. package/dist/node_modules/@allyhub-next/check/dist/check.d.ts +0 -142
  438. package/dist/node_modules/@allyhub-next/check/dist/generated.d.ts +0 -22
  439. package/dist/node_modules/@allyhub-next/check/dist/index.d.ts +0 -7
  440. package/dist/node_modules/@allyhub-next/check/dist/plans.d.ts +0 -111
  441. package/dist/node_modules/@allyhub-next/check/dist/result.d.ts +0 -12
  442. package/dist/node_modules/@allyhub-next/check/dist/scenery.d.ts +0 -23
  443. package/dist/node_modules/@allyhub-next/dev-server/dist/background.d.ts +0 -50
  444. package/dist/node_modules/@allyhub-next/dev-server/dist/card.d.ts +0 -17
  445. package/dist/node_modules/@allyhub-next/dev-server/dist/exports.d.ts +0 -18
  446. package/dist/node_modules/@allyhub-next/dev-server/dist/index.d.ts +0 -11
  447. package/dist/node_modules/@allyhub-next/dev-server/dist/live.d.ts +0 -77
  448. package/dist/node_modules/@allyhub-next/dev-server/dist/mime.d.ts +0 -2
  449. package/dist/node_modules/@allyhub-next/dev-server/dist/mime.js +0 -2
  450. package/dist/node_modules/@allyhub-next/dev-server/dist/paths.d.ts +0 -27
  451. package/dist/node_modules/@allyhub-next/dev-server/dist/project.d.ts +0 -153
  452. package/dist/node_modules/@allyhub-next/dev-server/dist/reveal.d.ts +0 -6
  453. package/dist/node_modules/@allyhub-next/dev-server/dist/server.d.ts +0 -47
  454. package/dist/node_modules/@allyhub-next/dev-server/dist/sound.d.ts +0 -21
  455. package/dist/node_modules/@allyhub-next/dev-server/dist/stage.d.ts +0 -82
  456. package/dist/node_modules/@allyhub-next/dev-server/dist/stage.js +0 -121
  457. package/dist/node_modules/@allyhub-next/dev-server/dist/tools.d.ts +0 -24
  458. package/dist/node_modules/@allyhub-next/dev-server/dist/validate.d.ts +0 -6
  459. package/dist/node_modules/@allyhub-next/dev-server/dist/watcher.d.ts +0 -47
  460. package/dist/node_modules/@allyhub-next/dev-server/dist/writer.d.ts +0 -51
  461. package/dist/node_modules/@allyhub-next/export/dist/batch.d.ts +0 -70
  462. package/dist/node_modules/@allyhub-next/export/dist/deck-fonts.d.ts +0 -24
  463. package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.d.ts +0 -12
  464. package/dist/node_modules/@allyhub-next/export/dist/export.d.ts +0 -123
  465. package/dist/node_modules/@allyhub-next/export/dist/index.d.ts +0 -5
  466. package/dist/node_modules/@allyhub-next/export/dist/names.d.ts +0 -36
  467. package/dist/node_modules/@allyhub-next/measure/dist/compare.d.ts +0 -195
  468. package/dist/node_modules/@allyhub-next/measure/dist/contrast.d.ts +0 -14
  469. package/dist/node_modules/@allyhub-next/measure/dist/cut-sheet.d.ts +0 -90
  470. package/dist/node_modules/@allyhub-next/measure/dist/cuts.d.ts +0 -108
  471. package/dist/node_modules/@allyhub-next/measure/dist/facts.d.ts +0 -60
  472. package/dist/node_modules/@allyhub-next/measure/dist/fidelity.d.ts +0 -40
  473. package/dist/node_modules/@allyhub-next/measure/dist/flat.d.ts +0 -42
  474. package/dist/node_modules/@allyhub-next/measure/dist/index.d.ts +0 -24
  475. package/dist/node_modules/@allyhub-next/measure/dist/loop.d.ts +0 -22
  476. package/dist/node_modules/@allyhub-next/measure/dist/overlay.d.ts +0 -57
  477. package/dist/node_modules/@allyhub-next/measure/dist/recording-report.d.ts +0 -66
  478. package/dist/node_modules/@allyhub-next/measure/dist/reference/compare.d.ts +0 -118
  479. package/dist/node_modules/@allyhub-next/measure/dist/reference/folder.d.ts +0 -75
  480. package/dist/node_modules/@allyhub-next/measure/dist/reference/interpret.d.ts +0 -39
  481. package/dist/node_modules/@allyhub-next/measure/dist/reference/piece.d.ts +0 -53
  482. package/dist/node_modules/@allyhub-next/measure/dist/reference/sections.d.ts +0 -53
  483. package/dist/node_modules/@allyhub-next/measure/dist/reference/sets.d.ts +0 -84
  484. package/dist/node_modules/@allyhub-next/measure/dist/reference/text.d.ts +0 -27
  485. package/dist/node_modules/@allyhub-next/measure/dist/reference/video.d.ts +0 -55
  486. package/dist/node_modules/@allyhub-next/measure/dist/seams.d.ts +0 -46
  487. package/dist/node_modules/@allyhub-next/measure/dist/sound-measures.d.ts +0 -74
  488. package/dist/node_modules/@allyhub-next/measure/dist/sound-report.d.ts +0 -156
  489. package/dist/node_modules/@allyhub-next/measure/dist/still.d.ts +0 -58
  490. package/dist/node_modules/@allyhub-next/measure/dist/version-voice.d.ts +0 -12
  491. package/dist/node_modules/@allyhub-next/project/dist/console.d.ts +0 -34
  492. package/dist/node_modules/@allyhub-next/project/dist/digest.d.ts +0 -9
  493. package/dist/node_modules/@allyhub-next/project/dist/index.d.ts +0 -11
  494. package/dist/node_modules/@allyhub-next/project/dist/ledger.d.ts +0 -17
  495. package/dist/node_modules/@allyhub-next/project/dist/media-index.d.ts +0 -27
  496. package/dist/node_modules/@allyhub-next/project/dist/page.d.ts +0 -119
  497. package/dist/node_modules/@allyhub-next/project/dist/says.d.ts +0 -15
  498. package/dist/node_modules/@allyhub-next/project/dist/scenery.d.ts +0 -35
  499. package/dist/node_modules/@allyhub-next/project/dist/session.d.ts +0 -37
  500. package/dist/node_modules/@allyhub-next/project/dist/stretch.d.ts +0 -38
  501. package/dist/node_modules/@allyhub-next/project/dist/version.d.ts +0 -114
  502. package/dist/node_modules/@allyhub-next/render/dist/cap.d.ts +0 -41
  503. package/dist/node_modules/@allyhub-next/render/dist/capture.d.ts +0 -78
  504. package/dist/node_modules/@allyhub-next/render/dist/clip.d.ts +0 -27
  505. package/dist/node_modules/@allyhub-next/render/dist/composite.d.ts +0 -106
  506. package/dist/node_modules/@allyhub-next/render/dist/delivery.d.ts +0 -18
  507. package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.d.ts +0 -3
  508. package/dist/node_modules/@allyhub-next/render/dist/doc/index.d.ts +0 -3
  509. package/dist/node_modules/@allyhub-next/render/dist/doc/print.d.ts +0 -51
  510. package/dist/node_modules/@allyhub-next/render/dist/encode.d.ts +0 -111
  511. package/dist/node_modules/@allyhub-next/render/dist/errors.d.ts +0 -15
  512. package/dist/node_modules/@allyhub-next/render/dist/exports.d.ts +0 -67
  513. package/dist/node_modules/@allyhub-next/render/dist/ffmpeg.d.ts +0 -75
  514. package/dist/node_modules/@allyhub-next/render/dist/footage.d.ts +0 -169
  515. package/dist/node_modules/@allyhub-next/render/dist/image.d.ts +0 -16
  516. package/dist/node_modules/@allyhub-next/render/dist/index.d.ts +0 -26
  517. package/dist/node_modules/@allyhub-next/render/dist/junction.d.ts +0 -70
  518. package/dist/node_modules/@allyhub-next/render/dist/look.d.ts +0 -21
  519. package/dist/node_modules/@allyhub-next/render/dist/page.d.ts +0 -178
  520. package/dist/node_modules/@allyhub-next/render/dist/parts.d.ts +0 -140
  521. package/dist/node_modules/@allyhub-next/render/dist/png.d.ts +0 -37
  522. package/dist/node_modules/@allyhub-next/render/dist/pool.d.ts +0 -54
  523. package/dist/node_modules/@allyhub-next/render/dist/post-probe.d.ts +0 -27
  524. package/dist/node_modules/@allyhub-next/render/dist/post.d.ts +0 -27
  525. package/dist/node_modules/@allyhub-next/render/dist/render.d.ts +0 -151
  526. package/dist/node_modules/@allyhub-next/render/dist/segments.d.ts +0 -40
  527. package/dist/node_modules/@allyhub-next/render/dist/sound.d.ts +0 -24
  528. package/dist/node_modules/@allyhub-next/render/dist/stills.d.ts +0 -41
  529. package/dist/node_modules/@allyhub-next/render/dist/tools.d.ts +0 -25
  530. package/dist/node_modules/@allyhub-next/render/dist/webp.d.ts +0 -17
  531. package/dist/node_modules/@allyhub-next/runtime/dist/bridge.d.ts +0 -211
  532. package/dist/node_modules/@allyhub-next/runtime/dist/captions.d.ts +0 -24
  533. package/dist/node_modules/@allyhub-next/runtime/dist/clock.d.ts +0 -32
  534. package/dist/node_modules/@allyhub-next/runtime/dist/compose.d.ts +0 -149
  535. package/dist/node_modules/@allyhub-next/runtime/dist/console.d.ts +0 -21
  536. package/dist/node_modules/@allyhub-next/runtime/dist/contrast.d.ts +0 -13
  537. package/dist/node_modules/@allyhub-next/runtime/dist/embed.d.ts +0 -50
  538. package/dist/node_modules/@allyhub-next/runtime/dist/env.d.ts +0 -101
  539. package/dist/node_modules/@allyhub-next/runtime/dist/errors.d.ts +0 -21
  540. package/dist/node_modules/@allyhub-next/runtime/dist/facade.d.ts +0 -42
  541. package/dist/node_modules/@allyhub-next/runtime/dist/fonts.d.ts +0 -110
  542. package/dist/node_modules/@allyhub-next/runtime/dist/footage.d.ts +0 -52
  543. package/dist/node_modules/@allyhub-next/runtime/dist/frame.d.ts +0 -61
  544. package/dist/node_modules/@allyhub-next/runtime/dist/guards.d.ts +0 -32
  545. package/dist/node_modules/@allyhub-next/runtime/dist/index.d.ts +0 -14
  546. package/dist/node_modules/@allyhub-next/runtime/dist/inspect.d.ts +0 -112
  547. package/dist/node_modules/@allyhub-next/runtime/dist/locate.d.ts +0 -11
  548. package/dist/node_modules/@allyhub-next/runtime/dist/measure.d.ts +0 -41
  549. package/dist/node_modules/@allyhub-next/runtime/dist/mix-plan.d.ts +0 -42
  550. package/dist/node_modules/@allyhub-next/runtime/dist/music.d.ts +0 -29
  551. package/dist/node_modules/@allyhub-next/runtime/dist/output.d.ts +0 -5
  552. package/dist/node_modules/@allyhub-next/runtime/dist/pictures.d.ts +0 -39
  553. package/dist/node_modules/@allyhub-next/runtime/dist/piece.d.ts +0 -34
  554. package/dist/node_modules/@allyhub-next/runtime/dist/player/clips.d.ts +0 -41
  555. package/dist/node_modules/@allyhub-next/runtime/dist/player/cutout.d.ts +0 -57
  556. package/dist/node_modules/@allyhub-next/runtime/dist/player/player.d.ts +0 -78
  557. package/dist/node_modules/@allyhub-next/runtime/dist/reads.d.ts +0 -132
  558. package/dist/node_modules/@allyhub-next/runtime/dist/sound.d.ts +0 -22
  559. package/dist/node_modules/@allyhub-next/runtime/dist/speech.d.ts +0 -107
  560. package/dist/node_modules/@allyhub-next/runtime/dist/stage-kit.d.ts +0 -12
  561. package/dist/node_modules/@allyhub-next/runtime/dist/stage.d.ts +0 -34
  562. package/dist/node_modules/@allyhub-next/runtime/dist/styles.d.ts +0 -35
  563. package/dist/node_modules/@allyhub-next/runtime/dist/takes.d.ts +0 -72
  564. package/dist/node_modules/@allyhub-next/runtime/dist/titles.d.ts +0 -10
  565. package/dist/node_modules/@allyhub-next/runtime/dist/transitions.d.ts +0 -26
  566. package/dist/node_modules/@allyhub-next/site/dist/assets.d.ts +0 -59
  567. package/dist/node_modules/@allyhub-next/site/dist/assets.js +0 -2
  568. package/dist/node_modules/@allyhub-next/site/dist/astro.d.ts +0 -22
  569. package/dist/node_modules/@allyhub-next/site/dist/astro.js +0 -3
  570. package/dist/node_modules/@allyhub-next/site/dist/lockfile.d.ts +0 -40
  571. package/dist/node_modules/@allyhub-next/site/dist/lockfile.js +0 -3
  572. package/dist/node_modules/@allyhub-next/site/dist/media.d.ts +0 -24
  573. package/dist/node_modules/@allyhub-next/site/dist/media.js +0 -4
  574. package/dist/node_modules/@allyhub-next/site/package.json +0 -25
  575. package/dist/node_modules/@allyhub-next/slides-core/dist/preset.d.ts +0 -5
  576. package/dist/node_modules/@allyhub-next/slides-core/dist/preset.js +0 -2
  577. package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.d.ts +0 -6
  578. package/dist/node_modules/@allyhub-next/slides-pptx/dist/fonts.d.ts +0 -45
  579. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.d.ts +0 -18
  580. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.js +0 -3
  581. package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.d.ts +0 -5
  582. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.d.ts +0 -56
  583. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.js +0 -4
  584. package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.d.ts +0 -72
  585. package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.d.ts +0 -32
  586. package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.d.ts +0 -4
  587. package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.d.ts +0 -32
  588. package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.d.ts +0 -32
  589. package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.d.ts +0 -32
  590. package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.d.ts +0 -43
  591. package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.d.ts +0 -4
  592. package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.js +0 -2
  593. package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.d.ts +0 -4
  594. package/dist/node_modules/@allyhub-next/slides-runtime/dist/ink.d.ts +0 -10
  595. package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.d.ts +0 -6
  596. package/dist/node_modules/@allyhub-next/stage/dist/bakes.d.ts +0 -42
  597. package/dist/node_modules/@allyhub-next/stage/dist/graphics.d.ts +0 -7
  598. package/dist/node_modules/@allyhub-next/stage/dist/identity.d.ts +0 -2
  599. package/dist/node_modules/@allyhub-next/stage/dist/index.d.ts +0 -9
  600. package/dist/node_modules/@allyhub-next/stage/dist/page.d.ts +0 -87
  601. package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.d.ts +0 -69
  602. package/dist/node_modules/@allyhub-next/stage/dist/scenery-solve.d.ts +0 -49
  603. package/dist/node_modules/@allyhub-next/stage/dist/scenery.d.ts +0 -8
  604. package/dist/node_modules/@allyhub-next/stage/dist/server.d.ts +0 -21
  605. package/dist/node_modules/@allyhub-next/stage-page/dist/host.d.ts +0 -22
  606. package/dist/node_modules/@allyhub-next/stage-page/dist/page.js +0 -79
  607. package/dist/site.d.ts +0 -2
  608. package/editor-web/assets/dist-BW2s9FMO.js +0 -4
  609. package/editor-web/assets/dist-C-6JmebI.js +0 -233
  610. package/editor-web/assets/dist-CCYMLMKN.js +0 -6
  611. package/editor-web/assets/dist-CHzurjMx.js +0 -33
  612. package/editor-web/assets/dist-DF7H1dxw.js +0 -1
  613. package/editor-web/assets/dist-Da5AUSKX.js +0 -2
  614. package/editor-web/assets/index-B7S9RZhL.css +0 -2
  615. package/editor-web/assets/index-CovQYWvD.js +0 -69
  616. package/editor-web/assets/minus-BrvjaJyO.js +0 -1
  617. package/editor-web/assets/react-DV5fPdiH.js +0 -101
  618. package/editor-web/assets/textarea-B0vCGdZI.js +0 -105
  619. package/editor-web/assets/trash-2-B0dvc1cZ.js +0 -1
  620. package/editor-web/assets/undo-2-A1EPubPO.js +0 -1
  621. /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 L,CONNECTOR_STYLE as J,MSO_SHAPE as fe,NAME_OF_TYPE as U,OFFICE_TEXT_STYLES as ue,pathText as ce,SLIDE_SIZES as me,DRAWN_TEXTBOX_FRAME as _e,TEXT_INSETS as A,TEXTBOX_FRAME as pe,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"},$e={t:"MSO_ANCHOR.TOP",ctr:"MSO_ANCHOR.MIDDLE",b:"MSO_ANCHOR.BOTTOM"},ge={none:"MSO_AUTO_SIZE.NONE",shape:"MSO_AUTO_SIZE.SHAPE_TO_FIT_TEXT",text:"MSO_AUTO_SIZE.TEXT_TO_FIT_SHAPE"},be={title:"TITLE",ctrTitle:"CENTER_TITLE",subTitle:"SUBTITLE",body:"BODY",pic:"PICTURE",media:"MEDIA_CLIP",obj:"OBJECT",dt:"DATE",ftr:"FOOTER",sldNum:"SLIDE_NUMBER"},ye=Object.fromEntries(Object.entries(fe).map(([e,n])=>[n,e])),S=e=>`Emu(${String(Math.round(e))})`,C=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 j=(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 = ${C(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 = ${C(n.spacing)};`],...n.underline===void 0?[]:[`${e}.underline = ${String(n.underline)};`],...n.color!==void 0?[j(`${e}.color`,n.color)]:[],...n.rgb!==void 0?[j(`${e}.color`,{rgb:n.rgb})]:[]]:[]}function X(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):C(a.fixed)};`],...n.space_before===void 0?[]:[`${e}.space_before = ${C(n.space_before)};`],...n.space_after===void 0?[]:[`${e}.space_after = ${C(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=X("level",a,!0);return[`for (const level of ${e}) {`,...f.map(l=>` ${l}`),"}"]}return o.flatMap((f,l)=>X(`${e}[${String(l)}]`,f,!0))}const G={textbox:{vertical_anchor:"t",...pe,margin_left:A.left,margin_top:A.top,margin_right:A.right,margin_bottom:A.bottom},autoshape:{vertical_anchor:L.vertical_anchor,word_wrap:!0,auto_size:"none",margin_left:A.left,margin_top:A.top,margin_right:A.right,margin_bottom:A.bottom}},xe={...G.textbox,..._e};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 = ${$e[f]};`],...l===void 0?[]:[`${e}.auto_size = ${ge[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 I=(e,n)=>JSON.stringify(e)===JSON.stringify(n);function ie(e,n,o){return n===void 0||I(n,o)?[]:n===null?[`${e}.fill.background();`]:[`${e}.fill.solid();`,j(`${e}.fill.fore_color`,n)]}function Y(e,n,o){return[...n.line===void 0||I(n.line,o.line)?[]:n.line===null?[`${e}.line.fill.background();`]:[j(`${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 Se(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 we(e){const n=e.text?.levels??[],o=e.text_color??"dk1";if(e.kind!=="autoshape"||I(o,L.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 Oe(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)};`]:[],...X(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 R=e=>`${S(e.left)}, ${S(e.top)}, ${S(e.width)}, ${S(e.height)}`;class Ee{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 p=B(`${s}.text_frame`,i.text);l.push(`${p.length>0?`const ${s} = `:""}${r}.placeholders.add(PP_PLACEHOLDER.${be[i.placeholder.type]}${i.frame?`, ${R(i.frame)}`:""}${u===U[i.placeholder.type]?"":`, { name: ${$(u)} }`});`,...p);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(p=>p>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)}, ${R(i.frame)}).name = ${$(_)};`]:[`const ${s} = ${r}.shapes.${i.kind==="movie"?"add_movie":"add_picture"}(${$(u)}, ${R(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,[p,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(p)}, ${S(M)}, ${S(T)}, ${S(O)});`,`${s}.name = ${$(_)};`,...W(s,i),...Y(s,i,J));return}const g=i.path?Se(r,i,i.path):i.kind==="textbox"?`${r}.shapes.add_textbox(${R(i.frame)})`:`${r}.shapes.add_shape(MSO_SHAPE.${ye[i.geometry??"rect"]??"RECTANGLE"}, ${R(i.frame)})`;l.push(`const ${s} = ${g};`,`${s}.name = ${$(_)};`,...(i.adjustments??[]).map((u,p)=>`${s}.adjustments[${String(p)}] = ${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,L.fill),...Y(s,i,L)],...B(`${s}.text_frame`,i.text&&{...i.text,levels:we(i)},G[i.kind==="textbox"?"textbox":"autoshape"]),...i.text?Oe(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}"`]:[]],p=u.length>0?`<span ${u.join(" ")}>${d.text}</span>`:d.text;return s&&r?`***${p}***`:s?`**${p}**`:r?`*${p}*`:p}).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 ve(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 Ee(e.parts),f=Object.entries(me).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();`,j(`${_}.background.fill.fore_color`,s.background));for(const[g,u]of[["title","title_style"],["body","body_style"],["other","other_style"]]){const p=ue[g],T=s.text_styles[g]?.map((M,O)=>ae(M)===ae(p[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 p=`${_}_layout${String(u+1)}`;l.push("",`const ${p} = ${_}.slide_layouts.add(${$(g.name)});`),g.display_master_shapes===!1&&l.push(`${p}.display_master_shapes = false;`),g.background&&l.push(`${p}.background.fill.solid();`,j(`${p}.background.fill.fore_color`,g.background));const T=oe(p,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(" ")??"",p=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(h=>h===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 h=a.path(t.part);h&&(w[t.kind==="movie"?"movie":"picture"]=h)}if(t.text){const h=wordsOf(t.text.paragraphs,b);h!==void 0&&(P[x]=h);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 z=se(t.frame);if(t.chart){O[k]={chart:ve(t.chart),frame:z},t.chart.title!==void 0&&(P[k]=t.chart.title);continue}if(t.table){const x=t.table.rows,w=h=>h.every(E=>E===h[0])?h[0]:void 0;O[k]={table:{columns:t.table.columns.map(N),rows:x.map(h=>{const E=w(h.cells.map(D=>D.fill)),V=w(h.cells.map(D=>D.borders?.bottom?.color));return{height:N(h.height),...E?{fill:v(E)}:{},...V?{line:v(V)}:{}}})},frame:z},x.some(h=>h.cells.some(E=>E.spanned))&&b("its merged cells are apart"),P[k]=x.map(h=>h.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(h=>h>0)?t.crop:void 0;O[k]={[t.kind==="movie"?"movie":"picture"]:x,frame:z,...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:z,...t.line===void 0||I(t.line,J.line)?{}:{line:t.line===null?"none":v(t.line)},...t.line_width===void 0||t.line_width===J.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:z}:t.path?{path:{w:t.path.w,h:t.path.h,d:ce(t.path.steps)},frame:z,...Z(t)}:{geometry:t.geometry??"rect",frame:z,...Z(t)},q=t.kind==="textbox"?null:L.fill;t.fill&&!I(t.fill,q)&&(F.fill=v(t.fill)),t.fill===null&&q!==null&&b("it has no fill, and is filled as the basic shape is");const de=t.kind==="textbox"?null:L.line;t.line!==void 0&&!I(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!==L.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"?xe:G.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:p,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:p,...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,56 +0,0 @@
1
- import { type ZipLimits } from "@allyhub-next/formats";
2
- import type { AnimationFile, TransitionFile } from "@allyhub-next/formats";
3
- import type { Color, ShapeDef, TextStylesDef, Theme } from "@allyhub-next/slides-core";
4
- /** A shape as read: the model's, with where it is in the file. */
5
- export interface ReadShape extends ShapeDef {
6
- /** A picture's or a video's part in the file (`ppt/media/image1.png`). */
7
- part?: string;
8
- /** A picture's crop, a share from each side. */
9
- crop?: {
10
- left: number;
11
- top: number;
12
- right: number;
13
- bottom: number;
14
- };
15
- /** An autoshape's text colour from its style (`a:fontRef`); absent where it has no style, and its text is the default text's. */
16
- text_color?: Color;
17
- }
18
- export interface ReadLayout {
19
- name: string;
20
- background?: Color;
21
- display_master_shapes?: boolean;
22
- shapes: ReadShape[];
23
- }
24
- export interface ReadMaster {
25
- name: string;
26
- background?: Color;
27
- text_styles: Partial<TextStylesDef>;
28
- shapes: ReadShape[];
29
- layouts: ReadLayout[];
30
- }
31
- export interface ReadSlide {
32
- /** Its layout, by name; its master is the layout's. */
33
- layout: string;
34
- hidden: boolean;
35
- notes?: string;
36
- shapes: ReadShape[];
37
- /** Its Animation Pane, by its shapes' names in the file. */
38
- animations: AnimationFile[];
39
- transition?: TransitionFile;
40
- }
41
- export interface ReadDeck {
42
- width: number;
43
- height: number;
44
- title?: string;
45
- theme: Partial<Theme["colors"]> & object;
46
- fonts: Partial<Theme["fonts"]>;
47
- masters: ReadMaster[];
48
- slides: ReadSlide[];
49
- /** What the file holds that the model does not, a line each. */
50
- skipped: string[];
51
- /** The file's parts, for the media its shapes name. */
52
- parts: Record<string, Uint8Array>;
53
- }
54
- /** A .pptx file read into the deck's model. */
55
- export declare function readPptx(bytes: Uint8Array, zip?: Partial<ZipLimits>): ReadDeck;
56
- //# 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 Ct}from"fflate";import{withinZip as Tt}from"@allyhub-next/formats";import{XMLParser as Mt}from"fast-xml-parser";import{EMU_PER_PT as gt,TEXT_INSETS as et}from"@allyhub-next/slides-core";import{PRESETS as jt,SUBTYPES as Rt,TRANSITION_SIDES as Ft}from"./timing.js";const ft=(n,t)=>n===void 0?t:n;function bt(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:D(d)}:void 0},i=s("a:fillRef"),r=s("a:lnRef"),c=s("a:fontRef"),f=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,...f===void 0?{}:{line_width:f},...c?.color===void 0?{}:{text_color:c.color}}}const zt={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 Mt({preserveOrder:!0,ignoreAttributes:!1,attributeNamePrefix:"",trimValues:!1,parseTagValue:!1,parseAttributeValue:!1,processEntities:!0}),T=n=>Object.keys(n).find(t=>t!==":@")??"",A=n=>n?n[T(n)]??[]:[],e=(n,t)=>n?.[":@"]?.[t],o=(n,t)=>A(n).find(s=>T(s)===t),R=(n,t)=>A(n).filter(s=>T(s)===t),g=(n,...t)=>t.reduce((s,i)=>o(s,i),n),J=n=>A(n).map(t=>typeof t["#text"]=="string"?t["#text"]:"").join(""),l=n=>n===void 0||n===""?void 0:Number(n);function _t(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 Nt={tx1:"dk1",bg1:"lt1",tx2:"dk2",bg2:"lt2"};function D(n){const t=o(n,"a:schemeClr");if(t){const r=e(t,"val")??"";return Nt[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?D(t):void 0}function lt(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",c=l(e(n,"rot"));return{...c?{rotation:c/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 xt(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 c=e(n,"u");c!==void 0&&(t.underline=c!=="none");const f=l(e(n,"spc"));f!==void 0&&(t.spacing=f*127);const a=D(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 dt(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 yt(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 c=dt(o(n,"a:lnSpc"));c&&(t.line_spacing=c);const f=dt(o(n,"a:spcBef"));f&&"fixed"in f&&(t.space_before=f.fixed);const a=dt(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 h=e(o(n,"a:buFont"),"typeface");h!==void 0&&(t.bullet_font=h);const p=xt(o(n,"a:defRPr"));return p&&(t.font=p),t}function st(n){return Array.from({length:9},(t,s)=>yt(o(n,`a:lvl${String(s+1)}pPr`)))}function It(n){return R(n,"a:p").map(t=>{const s=o(t,"a:pPr"),i=[];for(const r of A(t)){const c=T(r);if(c==="a:r"||c==="a:fld"){const f=xt(o(r,"a:rPr"));i.push({text:J(o(r,"a:t")),...f?{font:f}:{}})}else c==="a:br"&&i.push({text:"\v"})}return{...yt(s),runs:i,level:l(e(s,"lvl"))??0}})}function vt(n,t){const s=o(n,"a:bodyPr"),i={...t,paragraphs:It(n),levels:st(o(n,"a:lstStyle"))},r=e(s,"anchor");(r==="t"||r==="ctr"||r==="b")&&(i.vertical_anchor=r);const c=e(s,"wrap");c!==void 0&&(i.word_wrap=c!=="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 f={lIns:"margin_left",tIns:"margin_top",rIns:"margin_right",bIns:"margin_bottom"};for(const[a,d]of Object.entries(f)){const h=l(e(s,a));h!==void 0&&(i[d]=h)}return i}const wt=new Set(["title","ctrTitle","subTitle","body","pic","media","obj","dt","ftr","sldNum"]),Pt=new Set(["rect","roundRect","ellipse","triangle","rightArrow","line"]);function St(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 ut=n=>{const t=A(n);return Array.isArray(t)?t:[]};function V(n,t){for(const s of ut(n)){if(T(s)===t)return s;const i=V(s,t);if(i)return i}}function K(n,t){return ut(n).flatMap(s=>[...T(s)===t?[s]:[],...K(s,t)])}const $t=Object.fromEntries(Object.entries(jt).map(([n,t])=>[`${t.kind}:${String(t.id)}`,n])),At=new Map(Object.entries(Rt).map(([n,t])=>[t,n]));function Lt(n,t){const s=n.trim().split(/\s+/u),i=[];let r=0;for(const c of s){if(/^[A-Za-z]$/u.test(c)){c!=="E"&&i.push(c),r=0;continue}const f=Number(c)*(r%2===0?t.width:t.height),a=String(Math.round(f/gt*100)/100);r===0?i[i.length-1]=`${i.at(-1)??""}${a}`:i.push(a),r++}return i.join(" ")}const Ot=n=>n.replace(/^!!/u,""),Dt=new Map(Object.entries(Ft).map(([n,t])=>[t,n]));function Gt(n,t){const s=n&&V(n,"p:transition");if(!s)return;const i=l(e(s,"p14:dur")),r=e(s,"spd"),c=i===void 0?r==="fast"?.5:r==="slow"?2:1:i/1e3,[f]=ut(s),a=f?T(f):"",d=Dt.get(e(f,"dir")??""),h=a==="p:fade"?"fade":a==="p:push"?"push":a==="p:wipe"?"wipe":a==="p159:morph"?"morph":void 0;return h?{type:h,...d?{direction:d}:{},duration:c}:(t(`its transition ${a}, which is read as a fade`),{type:"fade",duration:c})}function Bt(n,t,s,i){const r=n&&V(n,"p:seq");if(!r)return[];const c=[];for(const f of K(r,"p:cTn")){const a=e(f,"nodeType");if(a!=="clickEffect"&&a!=="withEffect"&&a!=="afterEffect"||e(f,"presetClass")==="mediacall")continue;const d=e(V(f,"p:spTgt"),"spid")??"",h=t.get(d);if(h===void 0){i(`an animation of shape ${d}, which is not read, is left out`);continue}const p=e(f,"presetClass")??"",y=e(f,"presetID")??"",u=$t[`${p}:${y}`]??(p==="path"?"path":p==="exit"?"fade-out":p==="emph"?"pulse":"fade");$t[`${p}:${y}`]===void 0&&p!=="path"&&i(`${h}: effect ${p} ${y} is read as ${u}`);const _=l(e(f,"presetSubtype"))??0,x=At.get(_),b=l(e(V(f,"p:pRg"),"st")),w=l(e(V(f,"p:cond"),"delay"))??0,v=A(o(f,"p:childTnLst")).filter(k=>T(k)!=="p:set").flatMap(k=>K(k,"p:cTn").map(M=>(l(e(M,"dur"))??0)*(e(M,"autoRev")==="1"?2:1))),S=e(V(f,"p:animMotion"),"path");c.push({shape:h,effect:u,...b===void 0?{}:{paragraph:b},...x&&_>0?{direction:x}:{},start:a==="clickEffect"?"on-click":a==="withEffect"?"with-previous":"after-previous",duration:Math.max(0,...v)/1e3,...w>0?{delay:w/1e3}:{},...S===void 0?{}:{path:Lt(S,s)}})}return c}function Ut(n){const t=o(n,"a:tblPr"),s=r=>e(t,r)==="1",i=r=>{const c=o(r,"a:tcPr"),f=vt(o(r,"a:txBody"),{}),a=Z(c),d=[["left","a:lnL"],["right","a:lnR"],["top","a:lnT"],["bottom","a:lnB"]].flatMap(([v,S])=>{const k=o(c,S),M=Z(k);return M?[[v,{color:M,width:l(e(k,"w"))??12700}]]:[]}),h=e(c,"anchor"),p=v=>l(e(c,v)),y=v=>l(e(r,v)),[u,_,x,b]=["marL","marR","marT","marB"].map(p),w=y("gridSpan"),E=y("rowSpan");return{text:{...f,...u===void 0?{}:{margin_left:u},..._===void 0?{}:{margin_right:_},...x===void 0?{}:{margin_top:x},...b===void 0?{}:{margin_bottom:b},...h==="t"||h==="ctr"||h==="b"?{vertical_anchor:h}:{}},...a===void 0?{}:{fill:a},...d.length>0?{borders:Object.fromEntries(d)}:{},...w===void 0||w<2?{}:{span_width:w},...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"},pt=n=>{const t=[];for(const s of R(n,"c:pt"))t[l(e(s,"idx"))??t.length]=J(o(s,"c:v"));return Array.from(t,s=>s??"")},Et=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")),c=o(n,"c:numFmt"),f=e(c,"formatCode"),a=y=>D(o(g(y,"c:spPr","a:ln"),"a:solidFill")),d=o(n,"c:majorGridlines"),h=a(d),p=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}:{},...f===void 0||f==="General"||e(c,"sourceLinked")==="1"?{}:{number_format:f},...e(o(t,"c:orientation"),"val")==="maxMin"?{reverse_order:!0}:{},...h===void 0?{}:{gridline_color:h},...p===void 0?{}:{line_color:p}}};function Wt(n){const t=o(n,"c:chart"),s=o(t,"c:plotArea"),i=A(s).filter(C=>T(C).endsWith("Chart")),[r]=i;if(!r)return"it has no plot";if(i.length>1)return"it combines several kinds of chart";const c=T(r),f=e(o(r,"c:grouping"),"val"),a=f==="percentStacked"?"-stacked-100":f==="stacked"?"-stacked":"",d=R(r,"c:ser"),h=d.some(C=>e(g(C,"c:marker","c:symbol"),"val")!=="none"),p=(()=>{if(c==="c:barChart")return`${e(o(r,"c:barDir"),"val")==="bar"?"bar":"column"}${a===""?"-clustered":a}`;if(c==="c:lineChart")return a===""?h?"line-markers":"line":void 0;if(c==="c:areaChart")return`area${a}`;if(c==="c:pieChart")return"pie";if(c==="c:doughnutChart")return"doughnut"})();if(!p)return`a deck has no ${c.slice(2)} chart`;const[y]=d,u=pt(o(g(y,"c:cat","c:strRef"),"c:strCache")??o(g(y,"c:cat","c:numRef"),"c:numCache")),_=d.map(C=>{const G=g(C,"c:val","c:numRef","c:numCache"),I=J(o(G,"c:formatCode")),tt=pt(G),F=D(g(C,"c:spPr","a:solidFill"))??D(g(C,"c:spPr","a:ln","a:solidFill")),X=rt(o(C,"c:smooth")),$=l(e(g(C,"c:spPr","a:ln"),"w")),j=l(e(g(C,"c:marker","c:size"),"val"));return{name:pt(g(C,"c:tx","c:strRef","c:strCache"))[0]??"",values:u.map((at,kt)=>{const ct=tt[kt];return ct===void 0||ct===""?null:Number(ct)}),...I===""||I==="General"?{}:{number_format:I},...F===void 0?{}:{color:F},...X===!0?{smooth:X}:{},...$===void 0||c!=="c:lineChart"?{}:{line_width:$/gt},...j===void 0?{}:{marker_size:j}}}),x=K(o(t,"c:title")??{},"a:t").map(J).join(""),b=l(e(V(o(t,"c:title")??{},"a:rPr"),"sz")),w=e(g(t,"c:legend","c:legendPos"),"val"),E={b:"bottom",t:"top",l:"left",r:"right"}[w??"r"],v=o(r,"c:dLbls"),S=C=>rt(o(v,C))===!0,k=e(o(v,"c:numFmt"),"formatCode"),M=e(o(v,"c:dLblPos"),"val"),N=g(v,"c:txPr","a:p","a:pPr","a:defRPr"),L=l(e(N,"sz")),B=D(o(N,"a:solidFill")),Y=l(e(o(r,"c:gapWidth"),"val")),q=l(e(o(r,"c:overlap"),"val")),U=l(e(o(r,"c:holeSize"),"val")),P=rt(o(r,"c:varyColors")),m=g(n,"c:txPr","a:p","a:pPr","a:defRPr"),O=l(e(m,"sz")),H=D(o(m,"a:solidFill")),W=o(s,"c:valAx"),z=o(s,"c:catAx");return{type:p,categories:u,series:_,...x===""?{}:{title:x},...o(t,"c:legend")?{legend:E??"right"}:{},...v&&(S("c:showVal")||S("c:showPercent")||S("c:showCatName")||S("c:showSerName"))?{labels:{show_value:S("c:showVal"),show_percentage:S("c:showPercent"),show_category_name:S("c:showCatName"),show_series_name:S("c:showSerName"),...k===void 0?{}:{number_format:k},...M===void 0?{}:{position:M},...L===void 0?{}:{size:L/100},...B===void 0?{}:{color:B}}}:{},...Y===void 0?{}:{gap_width:Y},...q===void 0?{}:{overlap:q},...U===void 0?{}:{hole_size:U},...P===void 0?{}:{vary_by_categories:P},...W?{value_axis:Et(W)}:{},...z?{category_axis:Et(z)}:{},...O===void 0?{}:{font_size:O/100},...b===void 0?{}:{title_size:b/100},...H===void 0?{}:{font_color:H}}}function Vt(n){const t=R(o(n,"a:pathLst"),"a:path"),s=t[0];if(!s||t.length>1)return;const i=c=>R(c,"a:pt").map(f=>({x:l(e(f,"x"))??0,y:l(e(f,"y"))??0})),r=[];for(const c of A(s)){const f=T(c),[a,d,h]=i(c);if(f==="a:close")r.push({op:"close"});else if(f==="a:moveTo"&&a)r.push({op:"move",...a});else if(f==="a:lnTo"&&a)r.push({op:"line",...a});else if(f==="a:cubicBezTo"&&a&&d&&h)r.push({op:"curve",x1:a.x,y1:a.y,x2:d.x,y2:d.y,...h});else return}return{w:l(e(s,"w"))??0,h:l(e(s,"h"))??0,steps:r}}function Q(n,t,s,i,r,c=()=>{}){const f=[];for(const a of A(n)){const d=T(a);if(d==="p:nvGrpSpPr"||d==="p:grpSpPr")continue;if(d==="p:sp"){const p=o(a,"p:nvSpPr"),y=e(o(p,"p:cNvPr"),"name")??"",u=g(p,"p:nvPr","p:ph"),_=o(a,"p:spPr"),{frame:x,flip:b,rotation:w}=lt(o(_,"a:xfrm")),E=o(_,"a:prstGeom"),v=e(E,"prst"),S=R(o(E,"a:avLst"),"a:gd").map(m=>Number((e(m,"fmla")??"val 0").replace("val ",""))/1e5),k=o(_,"a:ln"),M=e(o(p,"p:cNvSpPr"),"txBox")==="1",N=u?{}:M?{fill:null}:bt(o(a,"p:style"),r),L=ft(Z(_),N.fill),B=ft(k?Z(k):void 0,N.line),Y=l(e(k,"w"))??N.line_width,q=o(a,"p:txBody"),U={name:y,...x?{frame:x}:{},...b?{flip:b}:{},...w===void 0?{}:{rotation:w},...L===void 0?{}:{fill:L},...B===void 0?{}:{line:B},...Y===void 0?{}:{line_width:Y},...N.text_color===void 0?{}:{text_color:N.text_color},...q?{text:vt(q,u?{}:zt)}:{}};if(u){const m=e(u,"type")??"obj";if(m==="sldImg")continue;const O=wt.has(m)?m:"body";wt.has(m)||i(`${t}: placeholder ${y} of type ${m}, read as a body`),f.push({...U,kind:"placeholder",placeholder:{type:O,idx:l(e(u,"idx"))??0}});continue}v&&!Pt.has(v)&&i(`${t}: shape ${y} is a ${v}, read as a rectangle`);const P=Vt(o(_,"a:custGeom"));!v&&o(_,"a:custGeom")&&!P&&i(`${t}: shape ${y} has a freeform outline this does not read, read as a rectangle`),f.push({...U,...St(k),kind:M?"textbox":"autoshape",...P?{path:P}:{geometry:v&&Pt.has(v)?v:"rect"},...S.length>0?{adjustments:S}:{}});continue}if(d==="p:cxnSp"){const p=o(a,"p:spPr"),{frame:y,flip:u,rotation:_}=lt(o(p,"a:xfrm")),x=o(p,"a:ln"),b=bt(o(a,"p:style"),r),w=ft(x?Z(x):void 0,b.line),E=l(e(x,"w"))??b.line_width;f.push({name:e(g(a,"p:nvCxnSpPr","p:cNvPr"),"name")??"",kind:"autoshape",geometry:"line",...y?{frame:y}:{},...u?{flip:u}:{},..._===void 0?{}:{rotation:_},...w===void 0?{}:{line:w},...E===void 0?{}:{line_width:E},...St(x)});continue}if(d==="p:pic"){const p=o(a,"p:nvPicPr"),y=e(o(p,"p:cNvPr"),"name")??"",{frame:u,rotation:_}=lt(g(a,"p:spPr","a:xfrm")),x=g(a,"p:blipFill","a:blip"),b=e(x,"r:embed"),w=e(g(p,"p:nvPr","a:videoFile"),"r:link"),E=s.get(w??b??""),v=g(a,"p:blipFill","a:srcRect"),S=M=>(l(e(v,M))??0)/1e5,k=v?{left:S("l"),top:S("t"),right:S("r"),bottom:S("b")}:void 0;if(!E){i(`${t}: picture ${y} names no file`);continue}f.push({name:y,kind:w?"movie":"picture",...u?{frame:u}:{},..._===void 0?{}:{rotation:_},part:E,...k&&!w?{crop:k}:{}});continue}if(d==="p:graphicFrame"){const p=g(a,"a:graphic","a:graphicData","a:tbl");if(p){const u=e(g(a,"p:nvGraphicFramePr","p:cNvPr"),"name")??"",_=o(a,"p:xfrm"),x=o(_,"a:off"),b=o(_,"a:ext");f.push({name:u,kind:"table",frame:{left:l(e(x,"x"))??0,top:l(e(x,"y"))??0,width:l(e(b,"cx"))??0,height:l(e(b,"cy"))??0},table:Ut(p)});continue}const y=g(a,"a:graphic","a:graphicData","c:chart");if(y){const u=e(g(a,"p:nvGraphicFramePr","p:cNvPr"),"name")??"",_=s.get(e(y,"r:id")??""),x=Wt(_===void 0?void 0:c(_));if(typeof x=="string"){i(`${t}: chart ${u} is left out: ${x}`);continue}const b=o(a,"p:xfrm"),w=o(b,"a:off"),E=o(b,"a:ext");f.push({name:u,kind:"chart",frame:{left:l(e(w,"x"))??0,top:l(e(w,"y"))??0,width:l(e(E,"cx"))??0,height:l(e(E,"cy"))??0},chart:x});continue}}if(d==="p:grpSp"){const p=e(g(a,"p:nvGrpSpPr","p:cNvPr"),"name")??"group",y=g(a,"p:grpSpPr","a:xfrm"),u=(b,w)=>l(e(o(y,b),w))??0;e(y,"rot")&&i(`${t}: group ${p}'s rotation is left out`);const _=u("a:ext","cx")/(u("a:chExt","cx")||1)||1,x=u("a:ext","cy")/(u("a:chExt","cy")||1)||1;for(const b of Q(a,t,s,i,r,c))f.push({...b,group:p,...b.frame?{frame:{left:Math.round(u("a:off","x")+(b.frame.left-u("a:chOff","x"))*_),top:Math.round(u("a:off","y")+(b.frame.top-u("a:chOff","y"))*x),width:Math.round(b.frame.width*_),height:Math.round(b.frame.height*x)}}:{}});continue}const h=d==="p:graphicFrame"?g(a,"a:graphic","a:graphicData")?.[":@"]!==void 0?`a ${(e(g(a,"a:graphic","a:graphicData"),"uri")??"").split("/").pop()??"graphic"}`:"a graphic frame":d;i(`${t}: ${h} (${e(g(A(a)[0],"p:cNvPr"),"name")??"unnamed"}) is not read`)}return f}function it(n,t){const i=`${t.split("/").slice(0,-1).join("/")}/_rels/${t.split("/").pop()??""}.rels`,r=n[i],c=new Map;if(!r)return c;const f=ot.parse(nt(r)).find(a=>T(a)==="Relationships");for(const a of R(f,"Relationship")){const d=e(a,"Id"),h=e(a,"Target");d&&h&&e(a,"TargetMode")!=="External"&&c.set(d,_t(t,h))}return c}const ht=(n,t,s)=>{const i=t.split("/").slice(0,-1).join("/"),r=n[`${i}/_rels/${t.split("/").pop()??""}.rels`];if(!r)return;const c=ot.parse(nt(r)).find(d=>T(d)==="Relationships"),f=R(c,"Relationship").find(d=>(e(d,"Type")??"").endsWith(`/${s}`)),a=e(f,"Target");return a?_t(t,a):void 0};function mt(n,t,s){const i=o(n,"p:bg");if(!i)return;const r=o(i,"p:bgPr");if(r){const f=Z(r);if(f)return f;s(`${t}: a background that is not one colour (a gradient or a picture) is not read`);return}const c=o(i,"p:bgRef");return D(c)??void 0}export function readPptx(n,t){const s=Ct(n,{filter:Tt(t)}),i=[],r=P=>i.push(P),c=P=>{const m=s[P];if(m)return ot.parse(nt(m)).find(O=>!T(O).startsWith("?"))},f="ppt/presentation.xml",a=c(f),d=it(s,f),h=o(a,"p:sldSz"),p=R(o(a,"p:sldMasterIdLst"),"p:sldMasterId").flatMap(P=>{const m=d.get(e(P,"r:id")??"");return m?[m]:[]}),y={},u={},_=p[0]?ht(s,p[0],"theme"):void 0,x=_?c(_):void 0,b=g(x,"a:themeElements","a:clrScheme");for(const P of A(b)){const m=T(P).replace("a:",""),O=D(P);O&&typeof O!="string"&&(y[m]=O.rgb)}const w=R(g(x,"a:themeElements","a:fmtScheme","a:lnStyleLst"),"a:ln").map(P=>l(e(P,"w"))??0),E=g(x,"a:themeElements","a:fontScheme"),v=(P,m)=>{const O=e(g(E,P,m),"typeface");return O===""?void 0:O},S=v("a:majorFont","a:latin"),k=v("a:minorFont","a:latin"),M=v("a:majorFont","a:ea"),N=v("a:minorFont","a:ea");S&&(u.major=S),k&&(u.minor=k),M&&(u.major_east_asian=M),N&&(u.minor_east_asian=N);const L=new Map,B=p.map((P,m)=>{const O=c(P),H=it(s,P),W=o(O,"p:cSld"),z=o(O,"p:txStyles"),C=R(o(O,"p:sldLayoutIdLst"),"p:sldLayoutId").flatMap(tt=>{const F=H.get(e(tt,"r:id")??"");if(!F)return[];const X=c(F),$=o(X,"p:cSld");let j=e($,"name")??`Layout ${String(L.size+1)}`;for(;[...L.values()].includes(j);)j=`${j} (${String(m+1)})`;L.set(F,j);const at=mt($,F,r);return[{name:j,...at?{background:at}:{},...e(X,"showMasterSp")==="0"?{display_master_shapes:!1}:{},shapes:Q(o($,"p:spTree"),F,it(s,F),r,w)}]}),G=mt(W,P,r),I={};return o(z,"p:titleStyle")&&(I.title=st(o(z,"p:titleStyle"))),o(z,"p:bodyStyle")&&(I.body=st(o(z,"p:bodyStyle"))),o(z,"p:otherStyle")&&(I.other=st(o(z,"p:otherStyle"))),{name:e(W,"name")??`Master ${String(m+1)}`,...G?{background:G}:{},text_styles:I,shapes:Q(o(W,"p:spTree"),P,H,r,w),layouts:C}}),Y=R(o(a,"p:sldIdLst"),"p:sldId").flatMap(P=>{const m=d.get(e(P,"r:id")??"");if(!m)return[];const O=c(m),H=it(s,m),W=$=>s[$]?ot.parse(nt(s[$])).find(j=>T(j)==="c:chartSpace"):void 0,z=ht(s,m,"slideLayout"),C=ht(s,m,"notesSlide"),G=C?Q(g(c(C),"p:cSld","p:spTree"),C,new Map,()=>{},w).find($=>$.placeholder?.type==="body"&&$.text!==void 0)?.text?.paragraphs.map($=>$.runs.map(j=>j.text==="\v"?`
3
- `:j.text).join("")).join(`
4
- `):void 0,I=Gt(O,$=>{r(`${m}: ${$}`)});mt(o(O,"p:cSld"),m,r)&&r(`${m}: a background of its own is not read; the layout's shows`);const F=g(O,"p:cSld","p:spTree"),X=new Map((F?K(F,"p:cNvPr"):[]).flatMap($=>{const j=e($,"id");return j===void 0?[]:[[j,Ot(e($,"name")??"")]]}));return[{layout:(z?L.get(z):void 0)??B[0]?.layouts[0]?.name??"",hidden:e(O,"show")==="0",...G!==void 0&&G.trim()!==""?{notes:G}:{},shapes:Q(F,m,H,r,w,W).map($=>({...$,name:Ot($.name)})),...I?{transition:I}:{},animations:Bt(o(O,"p:timing"),X,{width:l(e(h,"cx"))??12192e3,height:l(e(h,"cy"))??6858e3},$=>{r(`${m}: ${$}`)})}]}),q=c("docProps/core.xml"),U=J(o(q,"dc:title")).trim();return{width:l(e(h,"cx"))??12192e3,height:l(e(h,"cy"))??6858e3,...U===""?{}:{title:U},theme:y,fonts:u,masters:B,slides:Y,skipped:i,parts:s}}
@@ -1,72 +0,0 @@
1
- import type { LineDash, LineEnd } from "@allyhub-next/formats";
2
- import type { FreeformPath, Color, Frame, GradientDef, ParagraphDef, PlaceholderType, ShadowDef } 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
- /** How much of its fill shows through, a share. */
31
- fillTransparency?: number;
32
- /** A gradient in place of its fill. */
33
- gradient?: GradientDef;
34
- shadow?: ShadowDef;
35
- line?: Color | null;
36
- lineWidth?: number;
37
- lineDash?: LineDash;
38
- lineBegin?: LineEnd;
39
- lineEnd?: LineEnd;
40
- /** A freeform's outline, in place of a geometry. */
41
- path?: FreeformPath;
42
- /** The group it is in. */
43
- group?: string;
44
- /** A table, written (`a:tbl`). */
45
- table?: string;
46
- /** A chart: the relationship id of its part. */
47
- chart?: string;
48
- /** Its text body, written (`p:txBody`). */
49
- text?: string;
50
- /** A picture: its image's relationship, and the share cut from each side. */
51
- picture?: {
52
- image: string;
53
- crop?: {
54
- left: number;
55
- top: number;
56
- right: number;
57
- bottom: number;
58
- };
59
- descr?: string;
60
- };
61
- /** A video: its file's relationships (`r:link` and the media part) beside its poster's image. */
62
- video?: {
63
- link: string;
64
- media: string;
65
- };
66
- }
67
- export declare function shapeXml(o: ShapeOut): string;
68
- /** Shapes as a tree holds them: each group's, next to each other, round them. */
69
- export declare function treeXml(shapes: readonly ShapeOut[]): string[];
70
- /** The empty paragraph list a placeholder on a master or layout shows nothing in. */
71
- export declare const NO_PARAGRAPHS: readonly ParagraphDef[];
72
- //# sourceMappingURL=shapes.d.ts.map
@@ -1,32 +0,0 @@
1
- import type { FontDef, LevelStyle, LevelsDef, ParagraphDef, ParagraphFormatDef, TextFrameDef, TextStyle } from "@allyhub-next/slides-core";
2
- /**
3
- * How a run's address waits in its text until the slide's writer makes it a
4
- * relationship (`linked`): a text is written before its part's are known.
5
- */
6
- export declare const LINK = "link:";
7
- /** A run's or a level's character properties (`a:rPr`, `a:defRPr`, `a:endParaRPr`). */
8
- export declare function runProps(tag: "a:rPr" | "a:defRPr" | "a:endParaRPr", f: FontDef | undefined, lang?: string): string;
9
- /** A list style's levels as `a:lvl1pPr`…`a:lvl9pPr`, the empty ones left out; under `tag`. */
10
- export declare function listStyle(levels: LevelsDef, tag?: string): string;
11
- /** A resolved level as a list style's level: every value written (what a text box's own style is). */
12
- export declare function levelOf(l: LevelStyle): ParagraphFormatDef;
13
- /** A text frame's body properties, from what it sets (a frame of code) or its resolved style. */
14
- 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;
15
- /** A resolved style's body as a text frame's own. */
16
- export declare const bodyOfStyle: (s: TextStyle) => Parameters<typeof bodyProps>[0];
17
- /** What slides.yaml sets on a placeholder's whole text, written on each of its paragraphs and runs. */
18
- export interface TextOverride {
19
- font: FontDef;
20
- alignment?: ParagraphFormatDef["alignment"];
21
- numbered?: ParagraphFormatDef["numbered"];
22
- /** A list's room for its numbers. */
23
- margin_left?: ParagraphFormatDef["margin_left"];
24
- indent?: ParagraphFormatDef["indent"];
25
- }
26
- /** A slide number as a master or a layout has it: PowerPoint's sign for a number. */
27
- export declare const SLIDE_NUMBER: ParagraphDef[];
28
- /** A paragraph: its level and own properties, its runs, `\v` a line break. */
29
- export declare function paragraph(p: ParagraphDef, lang: string | undefined, over?: TextOverride): string;
30
- /** A text body: body properties, list style, paragraphs (at least one, as the schema asks). */
31
- export declare function txBody(tag: "p:txBody" | "a:txBody", body: string, lstStyle: string, paragraphs: readonly ParagraphDef[], lang: string | undefined, over?: TextOverride): string;
32
- //# 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,32 +0,0 @@
1
- import type { Color, GradientDef, ShadowDef } 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
- /** A value as `esc` left it, read back. */
5
- export declare const unesc: (s: string) => string;
6
- export type Attrs = Record<string, string | number | boolean | undefined>;
7
- /** An element: its attributes (undefined ones left out, booleans as 1 and 0) and its children. */
8
- export declare function el(name: string, attrs?: Attrs, ...children: string[]): string;
9
- export declare const HEAD = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
10
- export declare const NS: {
11
- readonly a: "http://schemas.openxmlformats.org/drawingml/2006/main";
12
- readonly r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
13
- readonly p: "http://schemas.openxmlformats.org/presentationml/2006/main";
14
- readonly p14: "http://schemas.microsoft.com/office/powerpoint/2010/main";
15
- };
16
- /** The namespaces a PresentationML part's root declares. */
17
- export declare const PML: {
18
- "xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main";
19
- "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
20
- "xmlns:p": "http://schemas.openxmlformats.org/presentationml/2006/main";
21
- };
22
- /** A colour as DrawingML writes it: the theme's (`a:schemeClr`) or RGB (`a:srgbClr`), and how much shows through it. */
23
- export declare function color(c: Color, transparency?: number): string;
24
- /** A solid fill of a colour, or none. */
25
- export declare const fill: (c: Color | null, transparency?: number) => string;
26
- /** A gradient fill: stops in order, an angle in 60 000ths of a degree. */
27
- export declare const gradientFill: (g: GradientDef) => string;
28
- /** A shadow outside a shape, in an effect list. */
29
- export declare const effects: (s: ShadowDef) => string;
30
- /** Hundredths of a point (`sz`) from EMU. */
31
- export declare const centipoints: (emu: number) => number;
32
- //# sourceMappingURL=xml.d.ts.map
@@ -1,43 +0,0 @@
1
- import type { Numbering } from "@allyhub-next/formats";
2
- import type { Color, ResolvedShape, ResolvedSlide, Theme } from "@allyhub-next/slides-core";
3
- /** The attribute a shape's element carries: its slide and name (`<slide>/<shape>`). */
4
- export declare const SHAPE_ATTR = "data-ak-shape";
5
- /** A line's width when a shape's outline sets none: PowerPoint's, 0.75 pt. */
6
- export declare const LINE_WIDTH: number;
7
- /** A paragraph's line height at line spacing 1, a multiple of its font size: PowerPoint's single spacing. */
8
- export declare const SINGLE_SPACING = 1.2;
9
- /** The smallest share autofit shrinks text to. */
10
- export declare const MIN_FONT_SCALE = 0.25;
11
- /** The theme as CSS custom properties: `--ak-theme-<colour>`, `--ak-theme-major`, `--ak-theme-minor`. */
12
- export declare function themeCss(theme: Theme): Record<string, string>;
13
- export declare const colorCss: (c: Color | null | undefined) => string;
14
- /** A run's text split where its characters are East Asian, and where they are not. */
15
- export declare function eastAsianRuns(text: string, cjk: boolean): {
16
- text: string;
17
- ea: boolean;
18
- }[];
19
- export interface DrawOptions {
20
- /** Pixels per EMU. */
21
- k: number;
22
- /** A media file's address in the stage, by its project path. */
23
- url: (path: string) => string;
24
- /** Empty placeholders drawn (with nothing in them) while editing. */
25
- editing: boolean;
26
- /** A movie drawn as a playing <video> (presenting); else the footage plane draws its frame. */
27
- playing: boolean;
28
- /** The deck's language (its combo's): a CJK one draws its punctuation in the East Asian face. */
29
- lang?: string;
30
- }
31
- /** What a list says at its `n`th item, from 1. */
32
- export declare function numberText(numbering: Numbering, n: number): string;
33
- /**
34
- * Shrinks a frame's text until it fits its frame, as PowerPoint's
35
- * "shrink text on overflow" does (`a:normAutofit`, its fontScale): the
36
- * largest scale, to 1 %, at which its paragraphs fit the frame's height.
37
- */
38
- export declare function fitText(frame: HTMLElement, k: number): number;
39
- /** A shape's element, placed in its frame. */
40
- export declare function drawShape(slide: string, shape: ResolvedShape, o: DrawOptions): HTMLElement | undefined;
41
- /** A slide's element: its background and every shape, back to front. */
42
- export declare function drawSlide(slide: ResolvedSlide, o: DrawOptions): HTMLElement;
43
- //# 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(e,s,l){const d=e.commonAncestorContainer,a=[];if(d instanceof Text)a.push(d);else{const c=document.createTreeWalker(d,NodeFilter.SHOW_TEXT);for(;c.nextNode();)c.currentNode instanceof Text&&e.intersectsNode(c.currentNode)&&a.push(c.currentNode)}const n=[];for(const c of a){const u=c===e.startContainer?e.startOffset:0,E=c===e.endContainer?e.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");s(o),m.replaceWith(o),o.append(m),n.push(o)}const[i]=n,f=n.at(-1);if(!i||!f)return;const g=document.createRange();g.setStartBefore(i),g.setEndAfter(f),l.removeAllRanges(),l.addRange(g)}function I(e){document.execCommand("insertText",!1,e)}function K(e,s){if(!(e instanceof Text))return;const l=new Intl.Segmenter(document.documentElement.lang||void 0,{granularity:"word"}).segment(e.data);for(const d of[s,s-1]){if(d<0||d>=e.length)continue;const a=l.containing(d);if(a?.isWordLike!==!0)continue;const n=document.createRange();return n.setStart(e,a.index),n.setEnd(e,a.index+a.segment.length),n}}function M(e){const s=e.closest("[data-ak-autofit='text']");if(!s)return;const l=1/Number(s.dataset.akFontScale??"1"),d=getComputedStyle(s),a=s.clientHeight-parseFloat(d.paddingTop)-parseFloat(d.paddingBottom),n=s.getBoundingClientRect().height/s.offsetHeight,i=c=>{e.style.setProperty("zoom",String(c));const u=e.firstElementChild?.getBoundingClientRect(),E=e.lastElementChild?.getBoundingClientRect();return!u||!E||E.bottom-u.top<=a*n+.5};if(i(l))return;let f=Z,g=l;for(;g-f>.01;){const c=(f+g)/2;i(c)?f=c:g=c}i(f)}const Y=(e,s)=>e.bold===s.bold&&e.italic===s.italic&&e.code===s.code&&e.color===s.color&&e.font===s.font&&e.attrs===s.attrs;function tt(e){const s=getComputedStyle(e),l=[],d=n=>{const i=l.at(-1);i&&(Y(i,n)||n.text.trim()==="")?i.text+=n.text:l.push(n)},a=n=>{if(n instanceof HTMLBRElement){d({...et,text:"\v"});return}if(n.nodeType!==Node.TEXT_NODE){n.childNodes.forEach(a);return}const i=n.parentElement;if(!i)return;const f=getComputedStyle(i);d({text:n.textContent??"",bold:Number(f.fontWeight)>=A&&Number(s.fontWeight)<A,italic:f.fontStyle==="italic"&&s.fontStyle!=="italic",code:i.closest("[data-ak-code]")!==null,color:i.closest("[data-ak-color]")?.dataset.akColor,font:i.closest("[data-ak-font]")?.dataset.akFont,attrs:i.closest("[data-ak-attrs]")?.dataset.akAttrs})};return e.childNodes.forEach(a),l}const et={bold:!1,italic:!1,code:!1,color:void 0,font:void 0,attrs:void 0};function nt(e){const[,s="",l="",d=""]=/^(\s*)(.*?)(\s*)$/su.exec(e.text)??[];if(l===""||e.text==="\v")return e.text;let a=e.code?`\`${l}\``:l;const n=[...e.color===void 0?[]:[`color="${e.color}"`],...e.font===void 0?[]:[`font="${e.font}"`],...e.attrs===void 0?[]:[e.attrs]];return n.length>0&&(a=`<span ${n.join(" ")}>${a}</span>`),e.italic&&(a=`*${a}*`),e.bold&&(a=`**${a}**`),`${s}${a}${d}`}function ot(e){const s=[...e.children].filter(l=>l instanceof HTMLElement);return s.length===0?[{text:e.innerText.trim(),level:0}]:s.map(l=>({text:tt(l).map(nt).join("").replace(/\v$/u,""),level:Number(l.dataset.akLevel??"0")||0}))}export function deckEditor(e,s){const l=n=>e.querySelector(`[${V}="${CSS.escape(n)}"]`);let d;const a=(n,i)=>{if(n.type==="deck-frame"){const t=l(n.shape);if(!t)return;if(t.dataset.akFileFrame??=JSON.stringify([t.style.left,t.style.top,t.style.width,t.style.height]),n.frame===null){const[p,h,$,J]=JSON.parse(t.dataset.akFileFrame);Object.assign(t.style,{left:p,top:h,width:$,height:J});return}const r=n.frame;Object.assign(t.style,{left:`${String(r.left*s)}px`,top:`${String(r.top*s)}px`,width:`${String(r.width*s)}px`,height:`${String(r.height*s)}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=l(n.shape),g=e.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(t=>t.dataset.akCell===n.cell?.join(","))??(E?u.find(t=>t.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 t=document.createElement("div");t.dataset.akParagraph="0",t.dataset.akLevel="0",t.append(document.createElement("br")),o.append(t)}o.contentEditable="true",o.spellcheck=!1,o.style.outline="none",o.style.cursor="text";const L=()=>ot(o),C=t=>{t instanceof InputEvent&&t.isComposing||(M(o),i({type:"deck-text",shape:y,paragraphs:L(),...S}))},F=t=>{t.preventDefault();const r=t.clipboardData?.getData("text/plain")??"";I(r)},q=t=>{const r=getSelection()?.anchorNode,p=(r instanceof Element?r:r?.parentElement)?.closest("[data-ak-level]");if(!p)return;const h=Number(p.dataset.akLevel??"0")+t;if(h<0||h>U)return;p.dataset.akLevel=String(h);const $=parseFloat(p.style.marginLeft)||0;p.style.marginLeft=`${String($+t*X*s)}px`,i({type:"deck-text",shape:y,paragraphs:L(),...S})},P=t=>{const r=t?.dataset.akCell?.split(",").map(Number);!r||t===m||(_(!1),a({type:"deck-edit",shape:y,cell:[r[0]??0,r[1]??0]},i))},B=t=>{t.stopPropagation(),t.key==="Escape"&&T(),t.key==="Tab"&&(t.preventDefault(),m?P(u[u.indexOf(m)+(t.shiftKey?-1:1)]):q(t.shiftKey?-1:1)),(t.metaKey||t.ctrlKey)&&t.key==="u"&&t.preventDefault()};let w;const W=t=>{w=u.find(r=>r!==m&&t.target instanceof Node&&r.contains(t.target)),w&&t.preventDefault()},D=t=>{t.stopPropagation(),P(w)},_=t=>{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,i({type:t?"deck-text-done":"deck-text",shape:y,paragraphs:L(),...S})},T=()=>{_(!0)};let v,N=!1,b;const R=()=>{const t=getSelection();if(!t||t.rangeCount===0)return;const r=t.getRangeAt(0);if(!o.contains(r.commonAncestorContainer))return;v=r.cloneRange();const p=r.startContainer instanceof Element?r.startContainer:r.startContainer.parentElement;i({type:"deck-selection",shape:y,words:!r.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=t=>{const r=getSelection();if(!r||!v)return;window.focus(),o.focus();const p=v.collapsed?K(v.startContainer,v.startOffset):v;p&&(v=p,r.removeAllRanges(),r.addRange(v),Q(v,h=>{t.bold!==void 0&&(h.style.fontWeight=t.bold?"700":"400"),t.italic!==void 0&&(h.style.fontStyle=t.italic?"italic":"normal"),t.color!==void 0&&(h.dataset.akColor=t.color,h.style.color=t.color.startsWith("#")?t.color:`var(--ak-theme-${t.color})`)},r),M(o),i({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 k=c?document.caretPositionFromPoint(c[0],c[1]):null,x=getSelection();if(x){if(x.removeAllRanges(),k&&o.contains(k.offsetNode)){const t=document.createRange();t.setStart(k.offsetNode,k.offset),t.collapse(!0),x.addRange(t);const r=n.word===!0?K(k.offsetNode,k.offset):void 0;r&&(x.removeAllRanges(),x.addRange(r))}else{const t=document.createRange();t.selectNodeContents(o),t.collapse(!1),x.addRange(t)}n.text!==void 0&&I(n.text)}};return a}
@@ -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