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
@@ -0,0 +1,31 @@
1
+ import { clockOf } from "./animation.js";
2
+ import type { ResolvedDeck, ResolvedShape } from "./resolve.js";
3
+ import type { ComponentAt } from "./stage.js";
4
+ /**
5
+ * A component's seconds as the slide is edited: at its end, every animation
6
+ * on it played and settled, counted from the component's own entrance, or
7
+ * from the slide's start (after its transition) for one with none, as the
8
+ * stage counts them at the slide's still.
9
+ */
10
+ export declare function componentTime(slide: Parameters<typeof clockOf>[0], shape: string,
11
+ /** The deck's first slide: no transition before it. */
12
+ first: boolean): number;
13
+ /** A component as the stage draws it: its props, its frame in the stage's pixels, the seconds since it came on. */
14
+ export declare function componentAt(shape: ResolvedShape,
15
+ /** Stage pixels per EMU. */
16
+ stage: number, t: number): ComponentAt | undefined;
17
+ /**
18
+ * A deck's component as its slide is edited, on a stage `stageWidth` px
19
+ * wide: of a slide (by id) and one of its shapes; undefined for a shape
20
+ * that is not a component, or a slide the deck does not have.
21
+ */
22
+ export declare function deckComponentAt(deck: Pick<ResolvedDeck, "width" | "slides">, stageWidth: number): (slide: string, shape: ResolvedShape) => ComponentAt | undefined;
23
+ /** A component on a slide, as it is edited. */
24
+ export interface DeckComponent {
25
+ slide: string;
26
+ shape: string;
27
+ at: ComponentAt;
28
+ }
29
+ /** Every component on a deck's slides, as each is edited, in the slides' order. */
30
+ export declare function deckComponents(deck: Pick<ResolvedDeck, "width" | "slides">, stageWidth: number): DeckComponent[];
31
+ //# sourceMappingURL=components.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{clockOf as a}from"./animation.js";export function componentTime(t,n,r){const o=a(t,r);return Math.max(0,(o.rests.at(-1)??0)-o.comesOn(n))}export function componentAt(t,n,r){if(t.component)return{name:t.component.name,props:t.component.props,width:Math.max(1,Math.round(t.frame.width*n)),height:Math.max(1,Math.round(t.frame.height*n)),t:r}}export function deckComponentAt(t,n){const r=t.width>0?n/t.width:0,o=new Map(t.slides.map(e=>[e.id,e])),i=t.slides[0]?.id;return(e,m)=>{const c=o.get(e);return c&&m.component?componentAt(m,r,componentTime(c,m.name,e===i)):void 0}}export function deckComponents(t,n){const r=deckComponentAt(t,n);return t.slides.flatMap(o=>o.shapes.flatMap(i=>{const e=r(o.id,i);return e?[{slide:o.id,shape:i.name,at:e}]:[]}))}
@@ -50,33 +50,196 @@ export declare const PP_PLACEHOLDER: {
50
50
  readonly SLIDE_NUMBER: "sldNum";
51
51
  };
52
52
  export type PlaceholderType = (typeof PP_PLACEHOLDER)[keyof typeof PP_PLACEHOLDER];
53
- /** An autoshape's preset geometry (`a:prstGeom/@prst`). */
53
+ /** An autoshape's preset geometry (`a:prstGeom/@prst`), python-pptx 1.0.2's MSO_SHAPE (MSO_AUTO_SHAPE_TYPE) whole; a preset it has no name for is its \`prst\`. */
54
54
  export declare const MSO_SHAPE: {
55
- readonly RECTANGLE: "rect";
56
- readonly ROUNDED_RECTANGLE: "roundRect";
57
- readonly OVAL: "ellipse";
55
+ readonly ACTION_BUTTON_BACK_OR_PREVIOUS: "actionButtonBackPrevious";
56
+ readonly ACTION_BUTTON_BEGINNING: "actionButtonBeginning";
57
+ readonly ACTION_BUTTON_CUSTOM: "actionButtonBlank";
58
+ readonly ACTION_BUTTON_DOCUMENT: "actionButtonDocument";
59
+ readonly ACTION_BUTTON_END: "actionButtonEnd";
60
+ readonly ACTION_BUTTON_FORWARD_OR_NEXT: "actionButtonForwardNext";
61
+ readonly ACTION_BUTTON_HELP: "actionButtonHelp";
62
+ readonly ACTION_BUTTON_HOME: "actionButtonHome";
63
+ readonly ACTION_BUTTON_INFORMATION: "actionButtonInformation";
64
+ readonly ACTION_BUTTON_MOVIE: "actionButtonMovie";
65
+ readonly ACTION_BUTTON_RETURN: "actionButtonReturn";
66
+ readonly ACTION_BUTTON_SOUND: "actionButtonSound";
67
+ readonly ARC: "arc";
68
+ readonly BALLOON: "wedgeRoundRectCallout";
69
+ readonly BENT_ARROW: "bentArrow";
70
+ readonly BENT_UP_ARROW: "bentUpArrow";
71
+ readonly BEVEL: "bevel";
72
+ readonly BLOCK_ARC: "blockArc";
73
+ readonly CAN: "can";
74
+ readonly CHART_PLUS: "chartPlus";
75
+ readonly CHART_STAR: "chartStar";
76
+ readonly CHART_X: "chartX";
77
+ readonly CHEVRON: "chevron";
78
+ readonly CHORD: "chord";
79
+ readonly CIRCULAR_ARROW: "circularArrow";
80
+ readonly CLOUD: "cloud";
81
+ readonly CLOUD_CALLOUT: "cloudCallout";
82
+ readonly CORNER: "corner";
83
+ readonly CORNER_TABS: "cornerTabs";
84
+ readonly CROSS: "plus";
85
+ readonly CUBE: "cube";
86
+ readonly CURVED_DOWN_ARROW: "curvedDownArrow";
87
+ readonly CURVED_DOWN_RIBBON: "ellipseRibbon";
88
+ readonly CURVED_LEFT_ARROW: "curvedLeftArrow";
89
+ readonly CURVED_RIGHT_ARROW: "curvedRightArrow";
90
+ readonly CURVED_UP_ARROW: "curvedUpArrow";
91
+ readonly CURVED_UP_RIBBON: "ellipseRibbon2";
92
+ readonly DECAGON: "decagon";
93
+ readonly DIAGONAL_STRIPE: "diagStripe";
94
+ readonly DIAMOND: "diamond";
95
+ readonly DODECAGON: "dodecagon";
96
+ readonly DONUT: "donut";
97
+ readonly DOUBLE_BRACE: "bracePair";
98
+ readonly DOUBLE_BRACKET: "bracketPair";
99
+ readonly DOUBLE_WAVE: "doubleWave";
100
+ readonly DOWN_ARROW: "downArrow";
101
+ readonly DOWN_ARROW_CALLOUT: "downArrowCallout";
102
+ readonly DOWN_RIBBON: "ribbon";
103
+ readonly EXPLOSION1: "irregularSeal1";
104
+ readonly EXPLOSION2: "irregularSeal2";
105
+ readonly FLOWCHART_ALTERNATE_PROCESS: "flowChartAlternateProcess";
106
+ readonly FLOWCHART_CARD: "flowChartPunchedCard";
107
+ readonly FLOWCHART_COLLATE: "flowChartCollate";
108
+ readonly FLOWCHART_CONNECTOR: "flowChartConnector";
109
+ readonly FLOWCHART_DATA: "flowChartInputOutput";
110
+ readonly FLOWCHART_DECISION: "flowChartDecision";
111
+ readonly FLOWCHART_DELAY: "flowChartDelay";
112
+ readonly FLOWCHART_DIRECT_ACCESS_STORAGE: "flowChartMagneticDrum";
113
+ readonly FLOWCHART_DISPLAY: "flowChartDisplay";
114
+ readonly FLOWCHART_DOCUMENT: "flowChartDocument";
115
+ readonly FLOWCHART_EXTRACT: "flowChartExtract";
116
+ readonly FLOWCHART_INTERNAL_STORAGE: "flowChartInternalStorage";
117
+ readonly FLOWCHART_MAGNETIC_DISK: "flowChartMagneticDisk";
118
+ readonly FLOWCHART_MANUAL_INPUT: "flowChartManualInput";
119
+ readonly FLOWCHART_MANUAL_OPERATION: "flowChartManualOperation";
120
+ readonly FLOWCHART_MERGE: "flowChartMerge";
121
+ readonly FLOWCHART_MULTIDOCUMENT: "flowChartMultidocument";
122
+ readonly FLOWCHART_OFFLINE_STORAGE: "flowChartOfflineStorage";
123
+ readonly FLOWCHART_OFFPAGE_CONNECTOR: "flowChartOffpageConnector";
124
+ readonly FLOWCHART_OR: "flowChartOr";
125
+ readonly FLOWCHART_PREDEFINED_PROCESS: "flowChartPredefinedProcess";
126
+ readonly FLOWCHART_PREPARATION: "flowChartPreparation";
127
+ readonly FLOWCHART_PROCESS: "flowChartProcess";
128
+ readonly FLOWCHART_PUNCHED_TAPE: "flowChartPunchedTape";
129
+ readonly FLOWCHART_SEQUENTIAL_ACCESS_STORAGE: "flowChartMagneticTape";
130
+ readonly FLOWCHART_SORT: "flowChartSort";
131
+ readonly FLOWCHART_STORED_DATA: "flowChartOnlineStorage";
132
+ readonly FLOWCHART_SUMMING_JUNCTION: "flowChartSummingJunction";
133
+ readonly FLOWCHART_TERMINATOR: "flowChartTerminator";
134
+ readonly FOLDED_CORNER: "foldedCorner";
135
+ readonly FRAME: "frame";
136
+ readonly FUNNEL: "funnel";
137
+ readonly GEAR_6: "gear6";
138
+ readonly GEAR_9: "gear9";
139
+ readonly HALF_FRAME: "halfFrame";
140
+ readonly HEART: "heart";
141
+ readonly HEPTAGON: "heptagon";
142
+ readonly HEXAGON: "hexagon";
143
+ readonly HORIZONTAL_SCROLL: "horizontalScroll";
58
144
  readonly ISOSCELES_TRIANGLE: "triangle";
59
- readonly RIGHT_ARROW: "rightArrow";
60
145
  readonly LEFT_ARROW: "leftArrow";
61
- readonly UP_ARROW: "upArrow";
62
- readonly DOWN_ARROW: "downArrow";
146
+ readonly LEFT_ARROW_CALLOUT: "leftArrowCallout";
147
+ readonly LEFT_BRACE: "leftBrace";
148
+ readonly LEFT_BRACKET: "leftBracket";
149
+ readonly LEFT_CIRCULAR_ARROW: "leftCircularArrow";
63
150
  readonly LEFT_RIGHT_ARROW: "leftRightArrow";
64
- readonly DIAMOND: "diamond";
65
- readonly PARALLELOGRAM: "parallelogram";
66
- readonly TRAPEZOID: "trapezoid";
67
- readonly REGULAR_PENTAGON: "pentagon";
68
- readonly HEXAGON: "hexagon";
151
+ readonly LEFT_RIGHT_ARROW_CALLOUT: "leftRightArrowCallout";
152
+ readonly LEFT_RIGHT_CIRCULAR_ARROW: "leftRightCircularArrow";
153
+ readonly LEFT_RIGHT_RIBBON: "leftRightRibbon";
154
+ readonly LEFT_RIGHT_UP_ARROW: "leftRightUpArrow";
155
+ readonly LEFT_UP_ARROW: "leftUpArrow";
156
+ readonly LIGHTNING_BOLT: "lightningBolt";
157
+ readonly LINE_CALLOUT_1: "borderCallout1";
158
+ readonly LINE_CALLOUT_1_ACCENT_BAR: "accentCallout1";
159
+ readonly LINE_CALLOUT_1_BORDER_AND_ACCENT_BAR: "accentBorderCallout1";
160
+ readonly LINE_CALLOUT_1_NO_BORDER: "callout1";
161
+ readonly LINE_CALLOUT_2: "borderCallout2";
162
+ readonly LINE_CALLOUT_2_ACCENT_BAR: "accentCallout2";
163
+ readonly LINE_CALLOUT_2_BORDER_AND_ACCENT_BAR: "accentBorderCallout2";
164
+ readonly LINE_CALLOUT_2_NO_BORDER: "callout2";
165
+ readonly LINE_CALLOUT_3: "borderCallout3";
166
+ readonly LINE_CALLOUT_3_ACCENT_BAR: "accentCallout3";
167
+ readonly LINE_CALLOUT_3_BORDER_AND_ACCENT_BAR: "accentBorderCallout3";
168
+ readonly LINE_CALLOUT_3_NO_BORDER: "callout3";
169
+ readonly LINE_CALLOUT_4: "borderCallout3";
170
+ readonly LINE_CALLOUT_4_ACCENT_BAR: "accentCallout3";
171
+ readonly LINE_CALLOUT_4_BORDER_AND_ACCENT_BAR: "accentBorderCallout3";
172
+ readonly LINE_CALLOUT_4_NO_BORDER: "callout3";
173
+ readonly LINE_INVERSE: "lineInv";
174
+ readonly MATH_DIVIDE: "mathDivide";
175
+ readonly MATH_EQUAL: "mathEqual";
176
+ readonly MATH_MINUS: "mathMinus";
177
+ readonly MATH_MULTIPLY: "mathMultiply";
178
+ readonly MATH_NOT_EQUAL: "mathNotEqual";
179
+ readonly MATH_PLUS: "mathPlus";
180
+ readonly MOON: "moon";
181
+ readonly NON_ISOSCELES_TRAPEZOID: "nonIsoscelesTrapezoid";
182
+ readonly NOTCHED_RIGHT_ARROW: "notchedRightArrow";
183
+ readonly NO_SYMBOL: "noSmoking";
69
184
  readonly OCTAGON: "octagon";
70
- readonly CHEVRON: "chevron";
185
+ readonly OVAL: "ellipse";
186
+ readonly OVAL_CALLOUT: "wedgeEllipseCallout";
187
+ readonly PARALLELOGRAM: "parallelogram";
71
188
  readonly PENTAGON: "homePlate";
72
- readonly CROSS: "plus";
189
+ readonly PIE: "pie";
190
+ readonly PIE_WEDGE: "pieWedge";
191
+ readonly PLAQUE: "plaque";
192
+ readonly PLAQUE_TABS: "plaqueTabs";
193
+ readonly QUAD_ARROW: "quadArrow";
194
+ readonly QUAD_ARROW_CALLOUT: "quadArrowCallout";
195
+ readonly RECTANGLE: "rect";
196
+ readonly RECTANGULAR_CALLOUT: "wedgeRectCallout";
197
+ readonly REGULAR_PENTAGON: "pentagon";
198
+ readonly RIGHT_ARROW: "rightArrow";
199
+ readonly RIGHT_ARROW_CALLOUT: "rightArrowCallout";
200
+ readonly RIGHT_BRACE: "rightBrace";
201
+ readonly RIGHT_BRACKET: "rightBracket";
202
+ readonly RIGHT_TRIANGLE: "rtTriangle";
203
+ readonly ROUNDED_RECTANGLE: "roundRect";
204
+ readonly ROUNDED_RECTANGULAR_CALLOUT: "wedgeRoundRectCallout";
205
+ readonly ROUND_1_RECTANGLE: "round1Rect";
206
+ readonly ROUND_2_DIAG_RECTANGLE: "round2DiagRect";
207
+ readonly ROUND_2_SAME_RECTANGLE: "round2SameRect";
208
+ readonly SMILEY_FACE: "smileyFace";
209
+ readonly SNIP_1_RECTANGLE: "snip1Rect";
210
+ readonly SNIP_2_DIAG_RECTANGLE: "snip2DiagRect";
211
+ readonly SNIP_2_SAME_RECTANGLE: "snip2SameRect";
212
+ readonly SNIP_ROUND_RECTANGLE: "snipRoundRect";
213
+ readonly SQUARE_TABS: "squareTabs";
214
+ readonly STAR_10_POINT: "star10";
215
+ readonly STAR_12_POINT: "star12";
216
+ readonly STAR_16_POINT: "star16";
217
+ readonly STAR_24_POINT: "star24";
218
+ readonly STAR_32_POINT: "star32";
73
219
  readonly STAR_4_POINT: "star4";
74
220
  readonly STAR_5_POINT: "star5";
75
- readonly RECTANGULAR_CALLOUT: "wedgeRectCallout";
221
+ readonly STAR_6_POINT: "star6";
222
+ readonly STAR_7_POINT: "star7";
223
+ readonly STAR_8_POINT: "star8";
224
+ readonly STRIPED_RIGHT_ARROW: "stripedRightArrow";
225
+ readonly SUN: "sun";
226
+ readonly SWOOSH_ARROW: "swooshArrow";
227
+ readonly TEAR: "teardrop";
228
+ readonly TRAPEZOID: "trapezoid";
229
+ readonly UP_ARROW: "upArrow";
230
+ readonly UP_ARROW_CALLOUT: "upArrowCallout";
231
+ readonly UP_DOWN_ARROW: "upDownArrow";
232
+ readonly UP_DOWN_ARROW_CALLOUT: "upDownArrowCallout";
233
+ readonly UP_RIBBON: "ribbon2";
234
+ readonly U_TURN_ARROW: "uturnArrow";
235
+ readonly VERTICAL_SCROLL: "verticalScroll";
236
+ readonly WAVE: "wave";
76
237
  };
77
- /** A connector's kind (`add_connector`). */
238
+ /** A connector's kind (`add_connector`), python-pptx's: a straight line, an elbow, a curve. */
78
239
  export declare const MSO_CONNECTOR: {
79
240
  readonly STRAIGHT: "line";
241
+ readonly ELBOW: "bentConnector3";
242
+ readonly CURVE: "curvedConnector3";
80
243
  };
81
244
  /** A line's dashes (`line.dash_style`). */
82
245
  export declare const MSO_LINE: {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{strictEnum as E}from"./strict.js";export const MSO_THEME_COLOR=E("MSO_THEME_COLOR",{DARK_1:"dk1",LIGHT_1:"lt1",DARK_2:"dk2",LIGHT_2:"lt2",ACCENT_1:"accent1",ACCENT_2:"accent2",ACCENT_3:"accent3",ACCENT_4:"accent4",ACCENT_5:"accent5",ACCENT_6:"accent6",HYPERLINK:"hlink",FOLLOWED_HYPERLINK:"folHlink",TEXT_1:"dk1",BACKGROUND_1:"lt1",TEXT_2:"dk2",BACKGROUND_2:"lt2"}),PP_ALIGN=E("PP_ALIGN",{LEFT:"l",CENTER:"ctr",RIGHT:"r",JUSTIFY:"just"}),MSO_ANCHOR=E("MSO_ANCHOR",{TOP:"t",MIDDLE:"ctr",BOTTOM:"b"}),MSO_AUTO_SIZE=E("MSO_AUTO_SIZE",{NONE:"none",SHAPE_TO_FIT_TEXT:"shape",TEXT_TO_FIT_SHAPE:"text"}),PP_PLACEHOLDER=E("PP_PLACEHOLDER",{TITLE:"title",CENTER_TITLE:"ctrTitle",SUBTITLE:"subTitle",BODY:"body",PICTURE:"pic",MEDIA_CLIP:"media",OBJECT:"obj",DATE:"dt",FOOTER:"ftr",SLIDE_NUMBER:"sldNum"}),MSO_SHAPE=E("MSO_SHAPE",{RECTANGLE:"rect",ROUNDED_RECTANGLE:"roundRect",OVAL:"ellipse",ISOSCELES_TRIANGLE:"triangle",RIGHT_ARROW:"rightArrow",LEFT_ARROW:"leftArrow",UP_ARROW:"upArrow",DOWN_ARROW:"downArrow",LEFT_RIGHT_ARROW:"leftRightArrow",DIAMOND:"diamond",PARALLELOGRAM:"parallelogram",TRAPEZOID:"trapezoid",REGULAR_PENTAGON:"pentagon",HEXAGON:"hexagon",OCTAGON:"octagon",CHEVRON:"chevron",PENTAGON:"homePlate",CROSS:"plus",STAR_4_POINT:"star4",STAR_5_POINT:"star5",RECTANGULAR_CALLOUT:"wedgeRectCallout"}),MSO_CONNECTOR=E("MSO_CONNECTOR",{STRAIGHT:"line"}),MSO_LINE=E("MSO_LINE",{SOLID:"solid",SQUARE_DOT:"sysDash",ROUND_DOT:"sysDot",DASH:"dash",DASH_DOT:"dashDot",DASH_DOT_DOT:"lgDashDotDot",LONG_DASH:"lgDash",LONG_DASH_DOT:"lgDashDot"}),MSO_ARROWHEAD=E("MSO_ARROWHEAD",{NONE:"none",TRIANGLE:"triangle",OPEN:"arrow",STEALTH:"stealth",DIAMOND:"diamond",OVAL:"oval"}),MSO_SHAPE_TYPE=E("MSO_SHAPE_TYPE",{AUTO_SHAPE:"autoshape",FREEFORM:"freeform",GROUP:"group",LINE:"line",TABLE:"table",CHART:"chart",MEDIA:"movie",PICTURE:"picture",PLACEHOLDER:"placeholder",TEXT_BOX:"textbox",COMPONENT:"component"}),XL_CHART_TYPE=E("XL_CHART_TYPE",{COLUMN_CLUSTERED:"column-clustered",COLUMN_STACKED:"column-stacked",COLUMN_STACKED_100:"column-stacked-100",BAR_CLUSTERED:"bar-clustered",BAR_STACKED:"bar-stacked",BAR_STACKED_100:"bar-stacked-100",LINE:"line",LINE_MARKERS:"line-markers",AREA:"area",AREA_STACKED:"area-stacked",AREA_STACKED_100:"area-stacked-100",PIE:"pie",DOUGHNUT:"doughnut",XY_SCATTER:"scatter",XY_SCATTER_LINES:"scatter-lines",XY_SCATTER_SMOOTH:"scatter-smooth"}),XL_LEGEND_POSITION=E("XL_LEGEND_POSITION",{BOTTOM:"bottom",TOP:"top",LEFT:"left",RIGHT:"right"}),XL_LABEL_POSITION=E("XL_LABEL_POSITION",{ABOVE:"t",BELOW:"b",BEST_FIT:"bestFit",CENTER:"ctr",INSIDE_BASE:"inBase",INSIDE_END:"inEnd",LEFT:"l",OUTSIDE_END:"outEnd",RIGHT:"r"}),MSO_FILL=E("MSO_FILL",{SOLID:"solid",BACKGROUND:"background",GRADIENT:"gradient"}),THEME_FONT=E("THEME_FONT",{MAJOR:"+mj-lt",MINOR:"+mn-lt"});
2
+ import{strictEnum as _}from"./strict.js";export const MSO_THEME_COLOR=_("MSO_THEME_COLOR",{DARK_1:"dk1",LIGHT_1:"lt1",DARK_2:"dk2",LIGHT_2:"lt2",ACCENT_1:"accent1",ACCENT_2:"accent2",ACCENT_3:"accent3",ACCENT_4:"accent4",ACCENT_5:"accent5",ACCENT_6:"accent6",HYPERLINK:"hlink",FOLLOWED_HYPERLINK:"folHlink",TEXT_1:"dk1",BACKGROUND_1:"lt1",TEXT_2:"dk2",BACKGROUND_2:"lt2"}),PP_ALIGN=_("PP_ALIGN",{LEFT:"l",CENTER:"ctr",RIGHT:"r",JUSTIFY:"just"}),MSO_ANCHOR=_("MSO_ANCHOR",{TOP:"t",MIDDLE:"ctr",BOTTOM:"b"}),MSO_AUTO_SIZE=_("MSO_AUTO_SIZE",{NONE:"none",SHAPE_TO_FIT_TEXT:"shape",TEXT_TO_FIT_SHAPE:"text"}),PP_PLACEHOLDER=_("PP_PLACEHOLDER",{TITLE:"title",CENTER_TITLE:"ctrTitle",SUBTITLE:"subTitle",BODY:"body",PICTURE:"pic",MEDIA_CLIP:"media",OBJECT:"obj",DATE:"dt",FOOTER:"ftr",SLIDE_NUMBER:"sldNum"}),MSO_SHAPE=_("MSO_SHAPE",{ACTION_BUTTON_BACK_OR_PREVIOUS:"actionButtonBackPrevious",ACTION_BUTTON_BEGINNING:"actionButtonBeginning",ACTION_BUTTON_CUSTOM:"actionButtonBlank",ACTION_BUTTON_DOCUMENT:"actionButtonDocument",ACTION_BUTTON_END:"actionButtonEnd",ACTION_BUTTON_FORWARD_OR_NEXT:"actionButtonForwardNext",ACTION_BUTTON_HELP:"actionButtonHelp",ACTION_BUTTON_HOME:"actionButtonHome",ACTION_BUTTON_INFORMATION:"actionButtonInformation",ACTION_BUTTON_MOVIE:"actionButtonMovie",ACTION_BUTTON_RETURN:"actionButtonReturn",ACTION_BUTTON_SOUND:"actionButtonSound",ARC:"arc",BALLOON:"wedgeRoundRectCallout",BENT_ARROW:"bentArrow",BENT_UP_ARROW:"bentUpArrow",BEVEL:"bevel",BLOCK_ARC:"blockArc",CAN:"can",CHART_PLUS:"chartPlus",CHART_STAR:"chartStar",CHART_X:"chartX",CHEVRON:"chevron",CHORD:"chord",CIRCULAR_ARROW:"circularArrow",CLOUD:"cloud",CLOUD_CALLOUT:"cloudCallout",CORNER:"corner",CORNER_TABS:"cornerTabs",CROSS:"plus",CUBE:"cube",CURVED_DOWN_ARROW:"curvedDownArrow",CURVED_DOWN_RIBBON:"ellipseRibbon",CURVED_LEFT_ARROW:"curvedLeftArrow",CURVED_RIGHT_ARROW:"curvedRightArrow",CURVED_UP_ARROW:"curvedUpArrow",CURVED_UP_RIBBON:"ellipseRibbon2",DECAGON:"decagon",DIAGONAL_STRIPE:"diagStripe",DIAMOND:"diamond",DODECAGON:"dodecagon",DONUT:"donut",DOUBLE_BRACE:"bracePair",DOUBLE_BRACKET:"bracketPair",DOUBLE_WAVE:"doubleWave",DOWN_ARROW:"downArrow",DOWN_ARROW_CALLOUT:"downArrowCallout",DOWN_RIBBON:"ribbon",EXPLOSION1:"irregularSeal1",EXPLOSION2:"irregularSeal2",FLOWCHART_ALTERNATE_PROCESS:"flowChartAlternateProcess",FLOWCHART_CARD:"flowChartPunchedCard",FLOWCHART_COLLATE:"flowChartCollate",FLOWCHART_CONNECTOR:"flowChartConnector",FLOWCHART_DATA:"flowChartInputOutput",FLOWCHART_DECISION:"flowChartDecision",FLOWCHART_DELAY:"flowChartDelay",FLOWCHART_DIRECT_ACCESS_STORAGE:"flowChartMagneticDrum",FLOWCHART_DISPLAY:"flowChartDisplay",FLOWCHART_DOCUMENT:"flowChartDocument",FLOWCHART_EXTRACT:"flowChartExtract",FLOWCHART_INTERNAL_STORAGE:"flowChartInternalStorage",FLOWCHART_MAGNETIC_DISK:"flowChartMagneticDisk",FLOWCHART_MANUAL_INPUT:"flowChartManualInput",FLOWCHART_MANUAL_OPERATION:"flowChartManualOperation",FLOWCHART_MERGE:"flowChartMerge",FLOWCHART_MULTIDOCUMENT:"flowChartMultidocument",FLOWCHART_OFFLINE_STORAGE:"flowChartOfflineStorage",FLOWCHART_OFFPAGE_CONNECTOR:"flowChartOffpageConnector",FLOWCHART_OR:"flowChartOr",FLOWCHART_PREDEFINED_PROCESS:"flowChartPredefinedProcess",FLOWCHART_PREPARATION:"flowChartPreparation",FLOWCHART_PROCESS:"flowChartProcess",FLOWCHART_PUNCHED_TAPE:"flowChartPunchedTape",FLOWCHART_SEQUENTIAL_ACCESS_STORAGE:"flowChartMagneticTape",FLOWCHART_SORT:"flowChartSort",FLOWCHART_STORED_DATA:"flowChartOnlineStorage",FLOWCHART_SUMMING_JUNCTION:"flowChartSummingJunction",FLOWCHART_TERMINATOR:"flowChartTerminator",FOLDED_CORNER:"foldedCorner",FRAME:"frame",FUNNEL:"funnel",GEAR_6:"gear6",GEAR_9:"gear9",HALF_FRAME:"halfFrame",HEART:"heart",HEPTAGON:"heptagon",HEXAGON:"hexagon",HORIZONTAL_SCROLL:"horizontalScroll",ISOSCELES_TRIANGLE:"triangle",LEFT_ARROW:"leftArrow",LEFT_ARROW_CALLOUT:"leftArrowCallout",LEFT_BRACE:"leftBrace",LEFT_BRACKET:"leftBracket",LEFT_CIRCULAR_ARROW:"leftCircularArrow",LEFT_RIGHT_ARROW:"leftRightArrow",LEFT_RIGHT_ARROW_CALLOUT:"leftRightArrowCallout",LEFT_RIGHT_CIRCULAR_ARROW:"leftRightCircularArrow",LEFT_RIGHT_RIBBON:"leftRightRibbon",LEFT_RIGHT_UP_ARROW:"leftRightUpArrow",LEFT_UP_ARROW:"leftUpArrow",LIGHTNING_BOLT:"lightningBolt",LINE_CALLOUT_1:"borderCallout1",LINE_CALLOUT_1_ACCENT_BAR:"accentCallout1",LINE_CALLOUT_1_BORDER_AND_ACCENT_BAR:"accentBorderCallout1",LINE_CALLOUT_1_NO_BORDER:"callout1",LINE_CALLOUT_2:"borderCallout2",LINE_CALLOUT_2_ACCENT_BAR:"accentCallout2",LINE_CALLOUT_2_BORDER_AND_ACCENT_BAR:"accentBorderCallout2",LINE_CALLOUT_2_NO_BORDER:"callout2",LINE_CALLOUT_3:"borderCallout3",LINE_CALLOUT_3_ACCENT_BAR:"accentCallout3",LINE_CALLOUT_3_BORDER_AND_ACCENT_BAR:"accentBorderCallout3",LINE_CALLOUT_3_NO_BORDER:"callout3",LINE_CALLOUT_4:"borderCallout3",LINE_CALLOUT_4_ACCENT_BAR:"accentCallout3",LINE_CALLOUT_4_BORDER_AND_ACCENT_BAR:"accentBorderCallout3",LINE_CALLOUT_4_NO_BORDER:"callout3",LINE_INVERSE:"lineInv",MATH_DIVIDE:"mathDivide",MATH_EQUAL:"mathEqual",MATH_MINUS:"mathMinus",MATH_MULTIPLY:"mathMultiply",MATH_NOT_EQUAL:"mathNotEqual",MATH_PLUS:"mathPlus",MOON:"moon",NON_ISOSCELES_TRAPEZOID:"nonIsoscelesTrapezoid",NOTCHED_RIGHT_ARROW:"notchedRightArrow",NO_SYMBOL:"noSmoking",OCTAGON:"octagon",OVAL:"ellipse",OVAL_CALLOUT:"wedgeEllipseCallout",PARALLELOGRAM:"parallelogram",PENTAGON:"homePlate",PIE:"pie",PIE_WEDGE:"pieWedge",PLAQUE:"plaque",PLAQUE_TABS:"plaqueTabs",QUAD_ARROW:"quadArrow",QUAD_ARROW_CALLOUT:"quadArrowCallout",RECTANGLE:"rect",RECTANGULAR_CALLOUT:"wedgeRectCallout",REGULAR_PENTAGON:"pentagon",RIGHT_ARROW:"rightArrow",RIGHT_ARROW_CALLOUT:"rightArrowCallout",RIGHT_BRACE:"rightBrace",RIGHT_BRACKET:"rightBracket",RIGHT_TRIANGLE:"rtTriangle",ROUNDED_RECTANGLE:"roundRect",ROUNDED_RECTANGULAR_CALLOUT:"wedgeRoundRectCallout",ROUND_1_RECTANGLE:"round1Rect",ROUND_2_DIAG_RECTANGLE:"round2DiagRect",ROUND_2_SAME_RECTANGLE:"round2SameRect",SMILEY_FACE:"smileyFace",SNIP_1_RECTANGLE:"snip1Rect",SNIP_2_DIAG_RECTANGLE:"snip2DiagRect",SNIP_2_SAME_RECTANGLE:"snip2SameRect",SNIP_ROUND_RECTANGLE:"snipRoundRect",SQUARE_TABS:"squareTabs",STAR_10_POINT:"star10",STAR_12_POINT:"star12",STAR_16_POINT:"star16",STAR_24_POINT:"star24",STAR_32_POINT:"star32",STAR_4_POINT:"star4",STAR_5_POINT:"star5",STAR_6_POINT:"star6",STAR_7_POINT:"star7",STAR_8_POINT:"star8",STRIPED_RIGHT_ARROW:"stripedRightArrow",SUN:"sun",SWOOSH_ARROW:"swooshArrow",TEAR:"teardrop",TRAPEZOID:"trapezoid",UP_ARROW:"upArrow",UP_ARROW_CALLOUT:"upArrowCallout",UP_DOWN_ARROW:"upDownArrow",UP_DOWN_ARROW_CALLOUT:"upDownArrowCallout",UP_RIBBON:"ribbon2",U_TURN_ARROW:"uturnArrow",VERTICAL_SCROLL:"verticalScroll",WAVE:"wave"}),MSO_CONNECTOR=_("MSO_CONNECTOR",{STRAIGHT:"line",ELBOW:"bentConnector3",CURVE:"curvedConnector3"}),MSO_LINE=_("MSO_LINE",{SOLID:"solid",SQUARE_DOT:"sysDash",ROUND_DOT:"sysDot",DASH:"dash",DASH_DOT:"dashDot",DASH_DOT_DOT:"lgDashDotDot",LONG_DASH:"lgDash",LONG_DASH_DOT:"lgDashDot"}),MSO_ARROWHEAD=_("MSO_ARROWHEAD",{NONE:"none",TRIANGLE:"triangle",OPEN:"arrow",STEALTH:"stealth",DIAMOND:"diamond",OVAL:"oval"}),MSO_SHAPE_TYPE=_("MSO_SHAPE_TYPE",{AUTO_SHAPE:"autoshape",FREEFORM:"freeform",GROUP:"group",LINE:"line",TABLE:"table",CHART:"chart",MEDIA:"movie",PICTURE:"picture",PLACEHOLDER:"placeholder",TEXT_BOX:"textbox",COMPONENT:"component"}),XL_CHART_TYPE=_("XL_CHART_TYPE",{COLUMN_CLUSTERED:"column-clustered",COLUMN_STACKED:"column-stacked",COLUMN_STACKED_100:"column-stacked-100",BAR_CLUSTERED:"bar-clustered",BAR_STACKED:"bar-stacked",BAR_STACKED_100:"bar-stacked-100",LINE:"line",LINE_MARKERS:"line-markers",AREA:"area",AREA_STACKED:"area-stacked",AREA_STACKED_100:"area-stacked-100",PIE:"pie",DOUGHNUT:"doughnut",XY_SCATTER:"scatter",XY_SCATTER_LINES:"scatter-lines",XY_SCATTER_SMOOTH:"scatter-smooth"}),XL_LEGEND_POSITION=_("XL_LEGEND_POSITION",{BOTTOM:"bottom",TOP:"top",LEFT:"left",RIGHT:"right"}),XL_LABEL_POSITION=_("XL_LABEL_POSITION",{ABOVE:"t",BELOW:"b",BEST_FIT:"bestFit",CENTER:"ctr",INSIDE_BASE:"inBase",INSIDE_END:"inEnd",LEFT:"l",OUTSIDE_END:"outEnd",RIGHT:"r"}),MSO_FILL=_("MSO_FILL",{SOLID:"solid",BACKGROUND:"background",GRADIENT:"gradient"}),THEME_FONT=_("THEME_FONT",{MAJOR:"+mj-lt",MINOR:"+mn-lt"});
@@ -1,13 +1,24 @@
1
- import { type AnimationFile, type ShapeFile, type TransitionFile, type SlideFile, type SlidesFile } from "@allyhub-next/formats";
1
+ import { type AnimationFile, type BackgroundFile, type ShapeFile, type TransitionFile, type SlideFile, type SlidesFile } from "@allyhub-next/formats";
2
+ import { type Document } from "yaml";
2
3
  export interface FileProblem {
3
4
  /** Where in the file, as `slides.2.shapes.Title.frame`. */
4
5
  path: string;
5
6
  line?: number;
6
7
  message: string;
7
8
  }
8
- /** slides.yaml's text read: its slides, or nothing when it is not the format, what is wrong, and the line of any path. */
9
+ /**
10
+ * slides.yaml's text read: its slides, or none when it is not the format;
11
+ * the slides of it that are (`readable`, every slide that is the format,
12
+ * the first of two of one id), so what else is wrong can be found in the
13
+ * same pass; every problem; and the line of any path.
14
+ */
9
15
  export declare function readSlidesFile(text: string): {
10
16
  file?: SlidesFile;
17
+ /** The slides that are the format, and the line of a path in them. */
18
+ readable?: {
19
+ file: SlidesFile;
20
+ lineOf: (path: string) => number | undefined;
21
+ };
11
22
  problems: FileProblem[];
12
23
  lineOf: (path: string) => number | undefined;
13
24
  };
@@ -58,6 +69,17 @@ export type SlidesEdit =
58
69
  slide: string;
59
70
  shape: string;
60
71
  }
72
+ /**
73
+ * A shape named on the slide or not: a layout's date, footer and slide
74
+ * number show where slides.yaml names them (`slide-number: {}`). Shown,
75
+ * its entry is there, empty if it had none; not, it is taken away.
76
+ */
77
+ | {
78
+ op: "show";
79
+ slide: string;
80
+ shape: string;
81
+ shown: boolean;
82
+ }
61
83
  /** A shape's changes taken away: it is its layout's again. */
62
84
  | {
63
85
  op: "reset";
@@ -75,9 +97,28 @@ export type SlidesEdit =
75
97
  op: "transition";
76
98
  slide: string;
77
99
  transition?: TransitionFile;
100
+ }
101
+ /** When a show goes on from it by itself, seconds; none takes it away. */
102
+ | {
103
+ op: "advance";
104
+ slide: string;
105
+ after?: number;
106
+ }
107
+ /** Its own background over its layout's; none takes it away. */
108
+ | {
109
+ op: "background";
110
+ slide: string;
111
+ background?: BackgroundFile;
78
112
  };
79
113
  /** slides.yaml's text after an edit. */
80
114
  export declare function editSlidesFile(text: string | undefined, edit: SlidesEdit): string;
115
+ /**
116
+ * An edit made on slides.yaml's parsed document, in place: only the nodes
117
+ * it changes are touched, so an editor that keeps the document edits a
118
+ * long file in the time one slide takes. False when it changed nothing
119
+ * (its slide is not there).
120
+ */
121
+ export declare function editSlidesDocument(doc: Document, edit: SlidesEdit): boolean;
81
122
  /** An id or a name no slide or shape has yet, from a stem: `cover`, `cover-2`… */
82
123
  export declare function freeName(taken: Iterable<string>, stem: string): string;
83
124
  /**
@@ -87,23 +128,4 @@ export declare function freeName(taken: Iterable<string>, stem: string): string;
87
128
  * another hand changed from `a`, they are `b`'s changes kept.
88
129
  */
89
130
  export declare function slidesEdits(a: SlidesFile, b: SlidesFile): SlidesEdit[];
90
- /** Where a person's change met another hand's: the person's stands. */
91
- export interface SlidesConflict {
92
- slide: string;
93
- shape?: string;
94
- /** The field both changed (`frame`, `text.size`, `layout`); absent when the other hand removed what the person changed. */
95
- field?: string;
96
- }
97
- /**
98
- * A person's slides.yaml (`mine`, what the editor holds, made from
99
- * `base`) merged into the file as another hand left it (`theirs`): the
100
- * person's changes made over theirs, so what the other hand changed
101
- * elsewhere stands, and where both changed one value the person's does,
102
- * said in `conflicts`. Undefined when theirs is not a slides.yaml a merge
103
- * can read: the person mends it, or the other hand does.
104
- */
105
- export declare function mergeSlides(base: string, mine: SlidesFile, theirs: string): {
106
- text: string;
107
- conflicts: SlidesConflict[];
108
- } | undefined;
109
131
  //# sourceMappingURL=file.d.ts.map
@@ -1,4 +1,4 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readDataFile as x}from"@allyhub-next/formats";import{isMap as u,isSeq as O,LineCounter as w,parseDocument as N}from"yaml";export function readSlidesFile(t){const e=new w,n=N(t,{lineCounter:e}),o=l=>{const s=l===""?[]:l.split(".");for(let a=s.length;a>=0;a--){const r=n.getIn(s.slice(0,a).map(i=>/^\d+$/u.test(i)?Number(i):i),!0)?.range?.[0];if(r!==void 0)return e.linePos(r).line}};if(n.errors.length>0)return{problems:n.errors.map(l=>({path:"",line:e.linePos(l.pos[0]).line,message:`slides.yaml is not YAML: ${l.message.split(`
3
- `)[0]??""}`})),lineOf:o};const c=x("slides",n.toJS()??{});return c.ok?{file:c.value,problems:[],lineOf:o}:{problems:c.problems.map(l=>{const s=o(l.path);return{path:l.path,...s===void 0?{}:{line:s},message:l.message}}),lineOf:o}}const A=`slides: []
4
- `;function M(t){let e=t.get("slides",!0);if(O(e)||(u(t.contents)?t.set("slides",t.createNode([])):t.contents=t.createNode({slides:[]}),e=t.get("slides",!0)),!O(e))throw new Error("slides.yaml has no slides list.");return e}const b=(t,e)=>t.findIndex(n=>u(n)&&n.get("id")===e),E=["frame","text","fill","line","z","crop"];export function editSlidesFile(t,e){const n=N(t===void 0||t.trim()===""?A:t);if(n.errors.length>0)throw new Error("slides.yaml is not YAML: it is mended by hand first.");const o=M(n),c=r=>{if(r===null)return 0;const i=r===void 0?-1:b(o.items,r);return i<0?o.items.length:i+1};if(e.op==="add")return b(o.items,e.slide.id)>=0||(o.items.splice(c(e.after),0,n.createNode(e.slide)),o.flow===!0&&(o.flow=!1)),n.toString();const l=b(o.items,e.slide),s=o.items[l];if(l<0||!u(s))return t??A;const a=r=>{let i=s.get("shapes",!0);return!u(i)&&r&&(s.set("shapes",n.createNode({})),i=s.get("shapes",!0)),u(i)?i:void 0},f=()=>{const r=a(!1);if(r){for(const i of[...r.items])u(i.value)&&i.value.items.length===0&&r.delete(i.key);r.items.length===0&&s.delete("shapes")}};switch(e.op){case"move":{if(e.after===e.slide)break;o.items.splice(l,1),o.items.splice(c(e.after),0,s);break}case"duplicate":{const r=s.clone();r.set("id",e.id),o.items.splice(l+1,0,r);break}case"remove":o.items.splice(l,1);break;case"layout":s.set("layout",e.layout);break;case"hidden":e.hidden===!1||Array.isArray(e.hidden)&&e.hidden.length===0?s.delete("hidden"):s.set("hidden",n.createNode(e.hidden));break;case"shape":{const r=a(!0);if(!r)break;let i=r.get(e.shape,!0);if(u(i)||(r.set(e.shape,n.createNode({})),i=r.get(e.shape,!0)),!u(i))break;for(const[d,p]of Object.entries(e.set)){const m=d.split(".");if(p===void 0){i.deleteIn(m);const h=m.length>1?i.getIn(m.slice(0,-1),!0):void 0;u(h)&&h.items.length===0&&i.deleteIn(m.slice(0,-1))}else i.setIn(m,n.createNode(p))}f();break}case"unplace":{a(!1)?.delete(e.shape),f();break}case"animations":e.animations.length===0?s.delete("animations"):s.set("animations",n.createNode(e.animations));break;case"transition":e.transition===void 0?s.delete("transition"):s.set("transition",n.createNode(e.transition));break;case"reset":{const r=a(!1);if(!r)break;for(const i of r.items){const d=String(u(i.key)?"":i.key.value??i.key);if(e.shape!==void 0&&d!==e.shape)continue;const p=i.value;if(!(!u(p)||["textbox","picture","movie","geometry","component"].some(h=>p.has(h))))for(const h of E)p.delete(h)}f();break}}return n.toString()}export function freeName(t,e){const n=new Set(t),o=e.replace(/[^A-Za-z0-9_-]+/gu,"-").replace(/^-+|-+$/gu,"")||"slide";if(!n.has(o))return o;for(let c=2;;c++){const l=`${o}-${String(c)}`;if(!n.has(l))return l}}const $=new Set(["text","props","crop"]),y=t=>Array.isArray(t)?t.map(y):t!==null&&typeof t=="object"?Object.fromEntries(Object.entries(t).sort(([e],[n])=>e<n?-1:e>n?1:0).map(([e,n])=>[e,y(n)])):t,k=(t,e)=>JSON.stringify(y(t))===JSON.stringify(y(e));function j(t){const e=new Map;for(const[n,o]of Object.entries(t??{}))if($.has(n)&&typeof o=="object"&&!Array.isArray(o))for(const[c,l]of Object.entries(o))e.set(`${n}.${c}`,l);else e.set(n,o);return e}function I(t,e){const n=t.length,o=e.length,c=Array.from({length:n+1},()=>new Array(o+1).fill(0));for(let s=n-1;s>=0;s--)for(let a=o-1;a>=0;a--){const f=c[s],r=c[s+1];!f||!r||(f[a]=t[s]===e[a]?(r[a+1]??0)+1:Math.max(r[a]??0,f[a+1]??0))}const l=new Set;for(let s=0,a=0;s<n&&a<o;)t[s]===e[a]?(l.add(t[s]??""),s++,a++):(c[s+1]?.[a]??0)>=(c[s]?.[a+1]??0)?s++:a++;return l}function J(t,e){const n=[],o=e.id;e.layout!==void 0&&e.layout!==t.layout&&n.push({op:"layout",slide:o,layout:e.layout}),k(t.hidden,e.hidden)||n.push({op:"hidden",slide:o,hidden:e.hidden??!1}),k(t.animations??[],e.animations??[])||n.push({op:"animations",slide:o,animations:e.animations??[]}),k(t.transition,e.transition)||n.push({op:"transition",slide:o,...e.transition?{transition:e.transition}:{}});const c=t.shapes??{},l=e.shapes??{};for(const s of Object.keys(c))s in l||n.push({op:"unplace",slide:o,shape:s});for(const[s,a]of Object.entries(l)){const f=j(c[s]),r=j(a),i={};for(const d of new Set([...f.keys(),...r.keys()]))k(f.get(d),r.get(d))||(i[d]=r.get(d));Object.keys(i).length>0&&n.push({op:"shape",slide:o,shape:s,set:i})}return n}export function slidesEdits(t,e){const n=[],o=new Map(t.slides.map(s=>[s.id,s])),c=new Set(e.slides.map(s=>s.id));for(const s of t.slides)c.has(s.id)||n.push({op:"remove",slide:s.id});const l=I(t.slides.map(s=>s.id).filter(s=>c.has(s)),e.slides.map(s=>s.id).filter(s=>o.has(s)));return e.slides.forEach((s,a)=>{const f=a===0?null:e.slides[a-1]?.id??null,r=o.get(s.id);if(!r||r.generate!==s.generate){r&&n.push({op:"remove",slide:s.id}),n.push({op:"add",slide:s,after:f});return}l.has(s.id)||n.push({op:"move",slide:s.id,after:f}),n.push(...J(r,s))}),n}const g=(t,e,n)=>JSON.stringify([t,e,n]);function v(t){const e=new Map;switch(t.op){case"layout":e.set(g(t.slide,"","layout"),t.layout);break;case"hidden":e.set(g(t.slide,"","hidden"),t.hidden);break;case"animations":e.set(g(t.slide,"","animations"),t.animations);break;case"transition":e.set(g(t.slide,"","transition"),t.transition);break;case"shape":for(const[n,o]of Object.entries(t.set))e.set(g(t.slide,t.shape,n),o);break;case"unplace":e.set(g(t.slide,t.shape,""),void 0);break;case"remove":e.set(g(t.slide,"",""),void 0);break;default:break}return e}export function mergeSlides(t,e,n){const o=readSlidesFile(t).file??{slides:[]},c=readSlidesFile(n).file;if(!c)return;const l=slidesEdits(o,e);let s=n;for(const i of l)s=editSlidesFile(s,i);const a=new Map;for(const i of slidesEdits(o,c))for(const[d,p]of v(i))a.set(d,p);const f=new Set(o.slides.map(i=>i.id).filter(i=>!c.slides.some(d=>d.id===i))),r=[];for(const i of l){if("slide"in i&&typeof i.slide=="string"&&f.has(i.slide)&&i.op!=="remove"){r.push({slide:i.slide});continue}for(const[d,p]of v(i)){if(!a.has(d)||k(a.get(d),p))continue;const[m="",h="",S=""]=JSON.parse(d);r.push({slide:m,...h===""?{}:{shape:h},...S===""?{}:{field:S}})}}return{text:s,conflicts:r}}
2
+ import{readDataFile as N}from"@allyhub-next/formats";import{isCollection as $,isMap as b,isSeq as j,LineCounter as I,parseDocument as x}from"yaml";import{commonPairs as M,sameValue as O}from"./values.js";export function readSlidesFile(t){const e=new I,s=x(t,{lineCounter:e}),o=f=>{const g=f===""?[]:f.split(".");for(let p=g.length;p>=0;p--){const S=s.getIn(g.slice(0,p).map(y=>/^\d+$/u.test(y)?Number(y):y),!0)?.range?.[0];if(S!==void 0)return e.linePos(S).line}};if(s.errors.length>0)return{problems:s.errors.map(f=>({path:"",line:e.linePos(f.pos[0]).line,message:`not YAML: ${f.message.split(`
3
+ `)[0]??""}`})),lineOf:o};const l=s.toJS()??{},r=N("slides",l);if(r.ok)return{file:r.value,readable:{file:r.value,lineOf:o},problems:[],lineOf:o};const n=[],h=(f,g)=>{const p=o(f);n.push({path:f,...p===void 0?{}:{line:p},message:g})},a=(f,g)=>{h(f,C(g,P(l,f)))},i=typeof l=="object"&&l!==null&&"slides"in l?l.slides:void 0,d=Array.isArray(i)?i:[],u=N("slides",{...l,...Array.isArray(i)?{slides:[]}:{}});if(!u.ok)for(const f of u.problems)a(f.path,f.message);const c=[],k=[],m=new Set;return d.forEach((f,g)=>{const p=N("slides",{slides:[f]});if(!p.ok)for(const y of p.problems)a(y.path.replace(/^slides\.0(?=\.|$)/u,`slides.${String(g)}`),y.message);const v=typeof f=="object"&&f!==null&&"id"in f?f.id:void 0;if(typeof v=="string"){if(m.has(v)){h(`slides.${String(g)}.id`,`Two slides are "${v}".`);return}m.add(v)}const[S]=p.ok?p.value.slides:[];S&&(c.push(S),k.push(g))}),{readable:{file:{slides:c},lineOf:f=>o(f.replace(/^slides\.(\d+)/u,(g,p)=>`slides.${String(k[Number(p)]??p)}`))},problems:n,lineOf:o}}function P(t,e){let s=t;for(const o of e===""?[]:e.split(".")){if(typeof s!="object"||s===null)return;s=s[o]}return s}const C=(t,e)=>typeof e=="string"||typeof e=="number"||typeof e=="boolean"?`${t.replace(/\.$/u,"")} (it is ${JSON.stringify(e)}).`:t,w=`slides: []
4
+ `;function D(t){let e=t.get("slides",!0);if(j(e)||(b(t.contents)?t.set("slides",t.createNode([])):t.contents=t.createNode({slides:[]}),e=t.get("slides",!0)),!j(e))throw new Error("slides.yaml has no slides list.");return e}const A=(t,e)=>t.findIndex(s=>b(s)&&s.get("id")===e),E=["frame","text","fill","line","z","crop"];export function editSlidesFile(t,e){const s=x(t===void 0||t.trim()===""?w:t);if(s.errors.length>0)throw new Error("slides.yaml is not YAML: it is mended by hand first.");return editSlidesDocument(s,e)?s.toString():t??w}export function editSlidesDocument(t,e){const s=D(t),o=a=>{if(a===null)return 0;const i=a===void 0?-1:A(s.items,a);return i<0?s.items.length:i+1};if(e.op==="add")return A(s.items,e.slide.id)>=0||(s.items.splice(o(e.after),0,t.createNode(e.slide)),s.flow===!0&&(s.flow=!1)),!0;const l=A(s.items,e.slide),r=s.items[l];if(l<0||!b(r))return!1;const n=a=>{let i=r.get("shapes",!0);return!b(i)&&a&&(r.set("shapes",t.createNode({})),i=r.get("shapes",!0)),b(i)?i:void 0},h=a=>{const i=n(!1);if(i){for(const d of a){const u=i.get(d,!0);b(u)&&u.items.length===0&&i.delete(d)}i.items.length===0&&r.delete("shapes")}};switch(e.op){case"move":{if(e.after===e.slide)break;s.items.splice(l,1),s.items.splice(o(e.after),0,r);break}case"duplicate":{const a=r.clone();a.set("id",e.id),s.items.splice(l+1,0,a);break}case"remove":s.items.splice(l,1);break;case"layout":r.set("layout",e.layout);break;case"hidden":e.hidden===!1||Array.isArray(e.hidden)&&e.hidden.length===0?r.delete("hidden"):r.set("hidden",t.createNode(e.hidden));break;case"shape":{const a=n(!0);if(!a)break;let i=a.get(e.shape,!0);if(b(i)||(a.set(e.shape,t.createNode({})),i=a.get(e.shape,!0)),!b(i))break;for(const[d,u]of Object.entries(e.set)){const c=d.split(".");if(u===void 0){i.deleteIn(c);const k=c.length>1?i.getIn(c.slice(0,-1),!0):void 0;b(k)&&k.items.length===0&&i.deleteIn(c.slice(0,-1))}else{const k=i.getIn(c,!0),m=t.createNode(u);$(k)&&$(m)&&k.flow===!0&&(m.flow=!0),i.setIn(c,m)}}h([e.shape]);break}case"unplace":{n(!1)?.delete(e.shape),h([]);break}case"show":{if(!e.shown){n(!1)?.delete(e.shape),h([]);break}const a=n(!0);a&&!a.has(e.shape)&&a.set(e.shape,t.createNode({}));break}case"background":e.background===void 0?r.delete("background"):r.set("background",t.createNode(e.background));break;case"animations":e.animations.length===0?r.delete("animations"):r.set("animations",t.createNode(e.animations));break;case"transition":e.transition===void 0?r.delete("transition"):r.set("transition",t.createNode(e.transition));break;case"advance":e.after===void 0?r.delete("advance_after"):r.set("advance_after",e.after);break;case"reset":{const a=n(!1);if(!a)break;const i=[];for(const d of a.items){const u=String(b(d.key)?"":d.key.value??d.key);if(e.shape!==void 0&&u!==e.shape)continue;const c=d.value;if(!(!b(c)||["textbox","picture","movie","geometry","component"].some(m=>c.has(m))||!E.some(m=>c.has(m)))){for(const m of E)c.delete(m);i.push(u)}}h(i);break}}return!0}export function freeName(t,e){const s=new Set(t),o=e.replace(/[^A-Za-z0-9_-]+/gu,"-").replace(/^-+|-+$/gu,"")||"slide";if(!s.has(o))return o;for(let l=2;;l++){const r=`${o}-${String(l)}`;if(!s.has(r))return r}}const F=new Set(["text","props","crop"]);function _(t){const e=new Map;for(const[s,o]of Object.entries(t??{}))if(F.has(s)&&typeof o=="object"&&!Array.isArray(o))for(const[l,r]of Object.entries(o))e.set(`${s}.${l}`,r);else e.set(s,o);return e}const L=(t,e)=>new Set(M(t,e).map(([s])=>t[s]??""));function T(t,e){const s=[],o=e.id;e.layout!==void 0&&e.layout!==t.layout&&s.push({op:"layout",slide:o,layout:e.layout}),O(t.hidden,e.hidden)||s.push({op:"hidden",slide:o,hidden:e.hidden??!1}),O(t.animations??[],e.animations??[])||s.push({op:"animations",slide:o,animations:e.animations??[]}),O(t.transition,e.transition)||s.push({op:"transition",slide:o,...e.transition?{transition:e.transition}:{}}),t.advance_after!==e.advance_after&&s.push({op:"advance",slide:o,...e.advance_after===void 0?{}:{after:e.advance_after}}),O(t.background,e.background)||s.push({op:"background",slide:o,...e.background?{background:e.background}:{}});const l=t.shapes??{},r=e.shapes??{};for(const n of Object.keys(l))n in r||s.push({op:"unplace",slide:o,shape:n});for(const[n,h]of Object.entries(r)){const a=_(l[n]),i=_(h),d={};for(const c of new Set([...a.keys(),...i.keys()]))O(a.get(c),i.get(c))||(d[c]=i.get(c));Object.keys(d).length>0&&s.push({op:"shape",slide:o,shape:n,set:d});const u=l[n];Object.keys(h).length===0&&(u===void 0||Object.keys(u).length>0)&&s.push({op:"show",slide:o,shape:n,shown:!0})}return s}export function slidesEdits(t,e){const s=[],o=new Map(t.slides.map(n=>[n.id,n])),l=new Set(e.slides.map(n=>n.id));for(const n of t.slides)l.has(n.id)||s.push({op:"remove",slide:n.id});const r=L(t.slides.map(n=>n.id).filter(n=>l.has(n)),e.slides.map(n=>n.id).filter(n=>o.has(n)));return e.slides.forEach((n,h)=>{const a=h===0?null:e.slides[h-1]?.id??null,i=o.get(n.id);if(!i||i.generate!==n.generate){i&&s.push({op:"remove",slide:n.id}),s.push({op:"add",slide:n,after:a});return}r.has(n.id)||s.push({op:"move",slide:n.id,after:a}),s.push(...T(i,n))}),s}
@@ -0,0 +1,17 @@
1
+ import type { ResolvedDeck, ResolvedSlide } from "./resolve.js";
2
+ export interface SlideIdentity {
3
+ /** Changes when what draws a slide from it changes meaning. */
4
+ schema: "allyhub-slide-v1";
5
+ /** The slide's size, EMU. */
6
+ size: [width: number, height: number];
7
+ theme: ResolvedDeck["theme"];
8
+ /** The slide without its place (`file`) and when a show leaves it (`advance`), left out as JSON leaves out undefined. */
9
+ slide: Omit<ResolvedSlide, "file" | "advance"> & {
10
+ file?: undefined;
11
+ advance?: undefined;
12
+ };
13
+ }
14
+ export declare function slideIdentity(deck: Pick<ResolvedDeck, "width" | "height" | "theme">, slide: ResolvedSlide): SlideIdentity;
15
+ /** A slide's identity as one string: equal strings, equal drawings. */
16
+ export declare const slideSign: (deck: Pick<ResolvedDeck, "width" | "height" | "theme">, slide: ResolvedSlide) => string;
17
+ //# sourceMappingURL=identity.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export function slideIdentity(e,i){return{schema:"allyhub-slide-v1",size:[e.width,e.height],theme:e.theme,slide:{...i,file:void 0,advance:void 0}}}export const slideSign=(e,i)=>JSON.stringify(slideIdentity(e,i));
@@ -1,4 +1,5 @@
1
1
  export * from "./units.js";
2
+ export * from "./lang.js";
2
3
  export * from "./enums.js";
3
4
  export * from "./strict.js";
4
5
  export * from "./animation.js";
@@ -7,15 +8,18 @@ export * from "./chart-api.js";
7
8
  export { chartOfFile } from "./chart-file.js";
8
9
  export * from "./office.js";
9
10
  export * from "./path.js";
10
- export * from "./preset.js";
11
11
  export * from "./placeholders.js";
12
12
  export * from "./theme.js";
13
13
  export * from "./model.js";
14
14
  export * from "./api.js";
15
+ export * from "./code.js";
15
16
  export * from "./resolve.js";
17
+ export * from "./identity.js";
16
18
  export * from "./file.js";
17
19
  export * from "./script.js";
20
+ export * from "./merge.js";
18
21
  export * from "./stage.js";
22
+ export * from "./components.js";
19
23
  export * from "./check.js";
20
24
  export * from "./capabilities.js";
21
25
  export * from "./measure.js";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export*from"./units.js";export*from"./enums.js";export*from"./strict.js";export*from"./animation.js";export*from"@allyhub-next/chart";export*from"./chart-api.js";export{chartOfFile}from"./chart-file.js";export*from"./office.js";export*from"./path.js";export*from"./preset.js";export*from"./placeholders.js";export*from"./theme.js";export*from"./model.js";export*from"./api.js";export*from"./resolve.js";export*from"./file.js";export*from"./script.js";export*from"./stage.js";export*from"./check.js";export*from"./capabilities.js";export*from"./measure.js";
2
+ export*from"./units.js";export*from"./lang.js";export*from"./enums.js";export*from"./strict.js";export*from"./animation.js";export*from"@allyhub-next/chart";export*from"./chart-api.js";export{chartOfFile}from"./chart-file.js";export*from"./office.js";export*from"./path.js";export*from"./placeholders.js";export*from"./theme.js";export*from"./model.js";export*from"./api.js";export*from"./code.js";export*from"./resolve.js";export*from"./identity.js";export*from"./file.js";export*from"./script.js";export*from"./merge.js";export*from"./stage.js";export*from"./components.js";export*from"./check.js";export*from"./capabilities.js";export*from"./measure.js";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A run's language: kana is Japanese (`ja-JP`), hangul Korean (`ko-KR`);
3
+ * anything else, Han alone too (it is Chinese or Japanese), is the deck's.
4
+ */
5
+ export declare function runLang(text: string, lang: string | undefined): string | undefined;
6
+ //# sourceMappingURL=lang.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export function runLang(r,t){return/[\p{Script=Hiragana}\p{Script=Katakana}]/u.test(r)?"ja-JP":/\p{Script=Hangul}/u.test(r)?"ko-KR":t}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{READ_DEFAULTS as G,fact as u,phoneScale as J}from"@allyhub-next/video-core";import{STANDARD_FONTS as K}from"./theme.js";export const DECK_FACT_DEFAULTS={within:8,aligned:.5,drift:1,phone:G.phone,slack:1};const z=e=>e[0]+e[2],k=e=>e[1]+e[3],E=e=>Math.max(0,e[2])*Math.max(0,e[3]),M=(e,o=2)=>{const p=10**o;return Math.round(e*p)/p};function O(e,o,p){const y=[],n=(m,l)=>{l>p&&y.push({side:m,px:Math.round(l)})};return n("left",o[0]-e[0]),n("top",o[1]-e[1]),n("right",z(e)-z(o)),n("bottom",k(e)-k(o)),y}const R=(e,o)=>{const p=Math.max(e[0],o[0]),y=Math.max(e[1],o[1]);return[p,y,Math.min(z(e),z(o))-p,Math.min(k(e),k(o))-y]},Q=(e,o,p)=>e[0]>=o[0]-p&&e[1]>=o[1]-p&&z(e)<=z(o)+p&&k(e)<=k(o)+p,D={left:e=>e[0],right:z,"centre-x":e=>e[0]+e[2]/2,top:e=>e[1],bottom:k,"centre-y":e=>e[1]+e[3]/2},P=e=>e.opaque||!e.text?.glyphs?e.box:e.text.glyphs,V=new Set(Object.keys(D)),W=new Set(["left","right","top","bottom"]);function C(e){if(e.opaque)return V;if(!e.text?.glyphs)return W;const o=e.text.align??"l";return new Set([o==="ctr"?"centre-x":o==="r"?"right":"left"])}const X=(e,o)=>o.some(p=>new RegExp(`^${p.split("*").map(y=>y.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&")).join(".*")}$`,"su").test(e)),Y=e=>e.box[2]>0||e.box[3]>0;export function deckFacts(e,o,p,y={}){const n={...DECK_FACT_DEFAULTS,...y},m=t=>M(t/e.pxPerPt),l=[],F=[0,0,o.width,o.height],L=new Map,N=new Map,H=new Map;for(const t of e.slides){const i={...p,part:t.slide,t:t.t},w=N.get(t.slide)??{at:i,total:t.steps??1,measured:0,shapes:new Map};N.set(t.slide,w),w.measured++;for(const c of t.shapes){if(c.level!=="slide")continue;const s=w.shapes.get(c.name)??{hidden:0,by:[]};c.hidden===!0&&s.hidden++,w.shapes.set(c.name,s)}const x=t.shapes.filter(c=>Y(c)&&c.hidden!==!0&&(n.levels===void 0||n.levels.includes(c.level))&&!X(c.name,n.except??[]));let A=0,q=0,I=0;for(const[c,s]of x.entries()){s.chart&&l.push(u("chart-data",i,{shape:s.name,...s.chart}));const f=(s.rows??[]).flatMap((a,d)=>a.drawn>a.set+n.slack?[{row:d,set:m(a.set),drawn:m(a.drawn)}]:[]);f.length>0&&l.push(u("table-grown",i,{shape:s.name,set:m(s.frame[3]),drawn:m(s.box[3]),rows:f}));const h=s.text;if(h?.glyphs){I++,A+=h.words,q+=h.lines.length;const a=O(h.glyphs,s.box,n.slack);a.length>0&&l.push(u("text-overflow",i,{shape:s.name,text:h.text,box:s.box,glyphs:h.glyphs,edges:a,lines:h.lines.length,past:h.lines.filter(r=>O(r,s.box,n.slack).length>0).length,...h.scale===void 0?{}:{scale:h.scale}}));for(const r of h.type){const g=`${String(r.size)}/${String(r.weight)}`,b=L.get(g)??{size:r.size,weight:r.weight,slides:new Set,shapes:new Set};b.slides.add(t.slide),b.shapes.add(`${t.slide}/${s.name}`),L.set(g,b)}const d=h.type.reduce((r,g)=>r===void 0||g.size<r.size?g:r,void 0);if(d){const r=n.room,g=d.xHeight===void 0?"em":"x",b=r&&(d.xHeight??d.size)*(r.screen*1e3/(o.width/e.pxPerPt));l.push(u("read-size",i,{shape:s.name,text:h.text,size:d.size,...d.xHeight===void 0?{}:{xHeight:d.xHeight},...r&&b!==void 0?{screen:{by:g,mm:M(b,1),arcmin:M(Math.atan(b/1e3/r.distance)*180*60/Math.PI,1)}}:{},phone:M(d.size*e.pxPerPt*J([o.width,o.height],n.phone),1),options:{...r?{room:{...r}}:{},phone:[...n.phone]}}))}}const $=O(s.box,F,n.slack);if($.length>0){const a=E(s.box);l.push(u("shape-off-slide",i,{shape:s.name,box:s.box,edges:$,share:a>0?M(1-E(R(s.box,F))/a):1}))}if(s.picture){const[a,d]=s.picture.shown;if(a>0&&d>0){const r=Math.max(s.box[2]/a,s.box[3]/d),g=b=>b/e.pxPerPt/72;l.push(u("picture-resolution",i,{shape:s.name,source:s.picture.source,shown:s.picture.shown,box:s.box,scale:M(r),ppi:Math.round(Math.min(a/g(s.box[2]),d/g(s.box[3]))),stretch:M(s.box[2]/a/(s.box[3]/d)-1)}))}}const S=x.slice(c+1).find(a=>a.opaque&&Q(s.box,a.box,n.slack)),v=w.shapes.get(s.name);if(v?v.by.push(S?.name):S&&l.push(u("shape-hidden",i,{shape:s.name,by:S.name})),s.level==="slide"){const a=`${t.layout}\0${s.name}`,d=H.get(a)??new Map,r=[m(s.frame[0]),m(s.frame[1]),m(s.frame[2]),m(s.frame[3])],g=[...d.values()].find(b=>b.frame.every((U,B)=>Math.abs(U-(r[B]??0))<=n.drift));g?g.slides.includes(t.slide)||g.slides.push(t.slide):d.set(r.join(","),{frame:r,slides:[t.slide]}),H.set(a,d)}}for(let c=0;c<x.length;c++)for(let s=c+1;s<x.length;s++){const f=x[c],h=x[s];if(!f||!h)continue;const $=f.level==="slide"||h.level==="slide",S=R(P(f),P(h));if($&&f.level==="slide"&&h.level==="slide"&&S[2]>n.slack&&S[3]>n.slack){const v=E(S);l.push(u("shape-overlap",i,{a:f.name,b:h.name,area:Math.round(v),share:M(v/Math.max(1,Math.min(E(P(f)),E(P(h)))))}))}if($)for(const[v,a]of Object.entries(D)){if(!C(f).has(v)||!C(h).has(v))continue;const d=Math.abs(m(a(P(f)))-m(a(P(h))));d>n.aligned&&d<=n.within&&l.push(u("near-alignment",i,{a:f.name,b:h.name,line:v,gap:M(d),options:{within:n.within,aligned:n.aligned}}))}}for(const c of x)if(!(c.level!=="slide"||!c.opaque))for(const s of["centre-x","centre-y"]){const f=Math.abs(m(D[s](c.box))-m(D[s](F)));f>n.aligned&&f<=n.within&&l.push(u("near-alignment",i,{a:c.name,b:"slide",line:s,gap:M(f),options:{within:n.within,aligned:n.aligned}}))}l.push(u("words-on-slide",i,{words:A,lines:q,texts:I}))}for(const[t,i]of H){if(i.size<2)continue;const[w="",x=""]=t.split("\0");l.push(u("placement-drift",p,{layout:w,shape:x,places:[...i.values()],options:{drift:n.drift}}))}if(e.fonts&&e.fonts.length>0){const t=new Set(y.standard??K);l.push(u("deck-fonts",p,{fonts:e.fonts.map(i=>({...i,standard:t.has(i.name)})),options:{standard:[...t]}}))}const T=[...L.values()].map(t=>({size:t.size,weight:t.weight,slides:t.slides.size,shapes:t.shapes.size})).sort((t,i)=>t.size-i.size||t.weight-i.weight),_=T[0];_&&l.push(u("type-in-use",p,{type:T,smallest:_.size}));for(const t of N.values())for(const[i,w]of t.shapes){const[x]=w.by;x!==void 0&&w.by.every(A=>A!==void 0)&&l.push(u("shape-hidden",t.at,{shape:i,by:x})),t.measured>=t.total&&w.hidden===t.measured&&l.push(u("shape-hidden",t.at,{shape:i,never:!0}))}const j=new Set;return l.filter(t=>{const i=JSON.stringify([t.kind,t.part,t.data]);return j.has(i)?!1:(j.add(i),!0)})}
2
+ import{READ_DEFAULTS as W,fact as m,phoneScale as X}from"@allyhub-next/video-core";import{STANDARD_FONTS as Y}from"./theme.js";export const DECK_FACT_DEFAULTS={within:8,aligned:.5,drift:1,phone:W.phone,slack:1};const E=e=>e[0]+e[2],$=e=>e[1]+e[3],A=e=>Math.max(0,e[2])*Math.max(0,e[3]),w=(e,h=2)=>{const d=10**h;return Math.round(e*d)/d};function N(e,h,d){const M=[],a=(r,k)=>{k>d&&M.push({side:r,px:k})};return a("left",h[0]-e[0]),a("top",h[1]-e[1]),a("right",E(e)-E(h)),a("bottom",$(e)-$(h)),M}const R=(e,h)=>{const d=Math.max(e[0],h[0]),M=Math.max(e[1],h[1]);return[d,M,Math.min(E(e),E(h))-d,Math.min($(e),$(h))-M]},Z=(e,h,d)=>e[0]>=h[0]-d&&e[1]>=h[1]-d&&E(e)<=E(h)+d&&$(e)<=$(h)+d,O={left:e=>e[0],right:E,"centre-x":e=>e[0]+e[2]/2,top:e=>e[1],bottom:$,"centre-y":e=>e[1]+e[3]/2},D=e=>e.opaque||!e.text?.glyphs?e.box:e.text.glyphs,ee=new Set(Object.keys(O)),se=new Set(["left","right","top","bottom"]);function Q(e){if(e.opaque)return ee;if(!e.text?.glyphs)return se;const h=e.text.align??"l";return new Set([h==="ctr"?"centre-x":h==="r"?"right":"left"])}const te=(e,h)=>h.some(d=>new RegExp(`^${d.split("*").map(M=>M.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&")).join(".*")}$`,"su").test(e)),ne=e=>e.box[2]>0||e.box[3]>0;export function deckFacts(e,h,d,M={}){const a={...DECK_FACT_DEFAULTS,...M},r=s=>w(s/e.pxPerPt),k=s=>[r(s[0]),r(s[1]),r(s[2]),r(s[3])],q=s=>s.map(n=>({side:n.side,pt:w(n.px/e.pxPerPt,1)})),H=s=>w(s,3),B=s=>s.opaque||!s.text?.glyphs?"frame":"glyphs",T=(s,n,x)=>n==="left"||n==="right"||n==="centre-x"?{shape:s.name,x:w(r(s.frame[0])+x)}:{shape:s.name,y:w(r(s.frame[1])+x)},g=[],F=[0,0,h.width,h.height],_=new Map,j=new Map,I=new Map;for(const s of e.slides){const n={...d,part:s.slide,t:s.t},x=j.get(s.slide)??{at:n,total:s.steps??1,measured:0,shapes:new Map};j.set(s.slide,x),x.measured++;for(const c of s.shapes){if(c.level!=="slide")continue;const t=x.shapes.get(c.name)??{hidden:0,by:[]};c.hidden===!0&&t.hidden++,x.shapes.set(c.name,t)}const b=s.shapes.filter(c=>ne(c)&&c.hidden!==!0&&(a.levels===void 0||a.levels.includes(c.level))&&!te(c.name,a.except??[]));let L=0,J=0,K=0;for(const[c,t]of b.entries()){t.chart&&g.push(m("chart-data",n,{shape:t.name,...t.chart}));const p=(t.rows??[]).flatMap((l,u)=>l.drawn>l.set+a.slack?[{row:u,set:r(l.set),drawn:r(l.drawn)}]:[]);p.length>0&&g.push(m("table-grown",n,{shape:t.name,set:r(t.frame[3]),drawn:r(t.box[3]),rows:p}));const o=t.text;if(o?.glyphs){K++,L+=o.words,J+=o.lines.length;const l=N(o.glyphs,t.box,a.slack);l.length>0&&g.push(m("text-overflow",n,{shape:t.name,text:o.text,box:k(t.box),glyphs:k(o.glyphs),edges:q(l),lines:o.lines.length,past:o.lines.filter(i=>N(i,t.box,a.slack).length>0).length,...o.scale===void 0?{}:{scale:o.scale}}));const u=N(o.glyphs,F,a.slack);if(u.length>0){const i=A(o.glyphs);g.push(m("text-off-slide",n,{shape:t.name,text:o.text,glyphs:k(o.glyphs),edges:q(u),share:i>0?H(1-A(R(o.glyphs,F))/i):1}))}for(const i of o.type){const v=`${String(i.size)}/${String(i.weight)}`,z=_.get(v)??{size:i.size,weight:i.weight,slides:new Set,shapes:new Set};z.slides.add(s.slide),z.shapes.add(`${s.slide}/${t.name}`),_.set(v,z)}const f=o.type.reduce((i,v)=>i===void 0||v.size<i.size?v:i,void 0);if(f){const i=a.room,v=f.xHeight===void 0?"em":"x",z=i&&(f.xHeight??f.size)*(i.screen*1e3/(h.width/e.pxPerPt));g.push(m("read-size",n,{shape:t.name,text:o.text,size:f.size,...f.xHeight===void 0?{}:{xHeight:f.xHeight},...i&&z!==void 0?{screen:{by:v,mm:w(z,1),arcmin:w(Math.atan(z/1e3/i.distance)*180*60/Math.PI,1)}}:{},phone:w(f.size*e.pxPerPt*X([h.width,h.height],a.phone),1),options:{...i?{room:{...i}}:{},phone:[...a.phone]}}))}}const S=N(t.box,F,a.slack);if(S.length>0){const l=A(t.box);g.push(m("shape-off-slide",n,{shape:t.name,box:k(t.box),edges:q(S),share:l>0?H(1-A(R(t.box,F))/l):1}))}if(t.picture){const[l,u]=t.picture.shown;if(l>0&&u>0){const f=Math.max(t.box[2]/l,t.box[3]/u),i=v=>v/e.pxPerPt/72;g.push(m("picture-resolution",n,{shape:t.name,source:t.picture.source,shown:t.picture.shown,box:k(t.box),scale:w(f),ppi:Math.round(Math.min(l/i(t.box[2]),u/i(t.box[3]))),stretch:w(t.box[2]/l/(t.box[3]/u)-1)}))}}const P=b.slice(c+1).find(l=>l.opaque&&Z(t.box,l.box,a.slack)),y=x.shapes.get(t.name);if(y?y.by.push(P?.name):P&&g.push(m("shape-hidden",n,{shape:t.name,by:P.name})),t.level==="slide"){const l=`${s.layout}\0${t.name}`,u=I.get(l)??new Map,f=[r(t.frame[0]),r(t.frame[1]),r(t.frame[2]),r(t.frame[3])],i=[...u.values()].find(v=>v.frame.every((z,V)=>Math.abs(z-(f[V]??0))<=a.drift));i?i.slides.includes(s.slide)||i.slides.push(s.slide):u.set(f.join(","),{frame:f,slides:[s.slide]}),I.set(l,u)}}for(let c=0;c<b.length;c++)for(let t=c+1;t<b.length;t++){const p=b[c],o=b[t];if(!p||!o)continue;const S=p.level==="slide"||o.level==="slide",P=R(D(p),D(o));if(S&&p.level==="slide"&&o.level==="slide"&&P[2]>a.slack&&P[3]>a.slack){const y=A(P);g.push(m("shape-overlap",n,{a:p.name,b:o.name,area:w(y/e.pxPerPt**2,1),share:H(y/Math.max(1,Math.min(A(D(p)),A(D(o)))))}))}if(S)for(const[y,l]of Object.entries(O)){if(!Q(p).has(y)||!Q(o).has(y))continue;const u=r(l(D(p))),f=r(l(D(o))),i=Math.abs(u-f);i>a.aligned&&i<=a.within&&g.push(m("near-alignment",n,{a:p.name,b:o.name,line:y,gap:w(i),at:{a:u,b:f},by:{a:B(p),b:B(o)},align:p.level==="slide"?T(p,y,f-u):T(o,y,u-f),options:{within:a.within,aligned:a.aligned}}))}}for(const c of b)if(!(c.level!=="slide"||!c.opaque))for(const t of["centre-x","centre-y"]){const p=r(O[t](c.box)),o=r(O[t](F)),S=Math.abs(p-o);S>a.aligned&&S<=a.within&&g.push(m("near-alignment",n,{a:c.name,b:"slide",line:t,gap:w(S),at:{a:p,b:o},by:{a:"frame",b:"frame"},align:T(c,t,o-p),options:{within:a.within,aligned:a.aligned}}))}g.push(m("words-on-slide",n,{words:L,lines:J,texts:K}))}for(const[s,n]of I){if(n.size<2)continue;const[x="",b=""]=s.split("\0");g.push(m("placement-drift",d,{layout:x,shape:b,places:[...n.values()],options:{drift:a.drift}}))}if(e.fonts&&e.fonts.length>0){const s=new Set(M.standard??Y);g.push(m("deck-fonts",d,{fonts:e.fonts.map(n=>({...n,standard:s.has(n.name)})),options:{standard:[...s]}}))}const C=[..._.values()].map(s=>({size:s.size,weight:s.weight,slides:s.slides.size,shapes:s.shapes.size})).sort((s,n)=>s.size-n.size||s.weight-n.weight),U=C[0];U&&g.push(m("type-in-use",d,{type:C,smallest:U.size}));for(const s of j.values())for(const[n,x]of s.shapes){const[b]=x.by;b!==void 0&&x.by.every(L=>L!==void 0)&&g.push(m("shape-hidden",s.at,{shape:n,by:b})),s.measured>=s.total&&x.hidden===s.measured&&g.push(m("shape-hidden",s.at,{shape:n,never:!0}))}const G=new Set;return g.filter(s=>{const n=JSON.stringify([s.kind,s.part,s.data]);return G.has(n)?!1:(G.add(n),!0)})}