@allyhub/sdk 0.8.0 → 0.10.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 (497) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/NOTICE +46 -49
  3. package/dist/dom.d.ts +1 -209
  4. package/dist/dom.js +1 -1
  5. package/dist/image.d.ts +2 -0
  6. package/dist/image.js +2 -0
  7. package/dist/index.d.ts +1 -21
  8. package/dist/index.js +1 -1
  9. package/dist/media.d.ts +1 -5
  10. package/dist/media.js +1 -1
  11. package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
  12. package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
  13. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
  14. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
  15. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  16. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  17. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +4 -1
  18. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  19. package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +22 -0
  20. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  21. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  22. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  23. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  24. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  25. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  26. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  27. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  28. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  29. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  30. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  31. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  32. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  33. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  34. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  35. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  36. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  37. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  38. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  39. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
  40. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  41. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
  42. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  43. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  44. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  45. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  46. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  47. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  48. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  49. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  50. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  51. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  52. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  53. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  54. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  55. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  56. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  57. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
  58. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  59. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  60. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  61. package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
  62. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  63. package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
  64. package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
  65. package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
  66. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  67. package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
  68. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  69. package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
  70. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
  71. package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
  72. package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
  73. package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
  74. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  75. package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
  76. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  77. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
  78. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  79. package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
  80. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  81. package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
  82. package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
  83. package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
  84. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  85. package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
  86. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  87. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
  88. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  89. package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
  90. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  91. package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
  92. package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
  93. package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
  94. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  95. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  96. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  97. package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
  98. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  99. package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
  100. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  101. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  102. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  103. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
  104. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  105. package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
  106. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  107. package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
  108. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  109. package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
  110. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  111. package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
  112. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  113. package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
  114. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  115. package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
  116. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  117. package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
  118. package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
  119. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  120. package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
  121. package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
  122. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  123. package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
  124. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  125. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
  126. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  127. package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
  128. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  129. package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
  130. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  131. package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
  132. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  133. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  134. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  135. package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
  136. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  137. package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
  138. package/dist/node_modules/@allyhub/measure/package.json +13 -0
  139. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
  140. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  141. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
  142. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  143. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  144. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  145. package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
  146. package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
  147. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  148. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  149. package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
  150. package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
  151. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  152. package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
  153. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  154. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  155. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  156. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  157. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  158. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  159. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  160. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  161. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
  162. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  163. package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
  164. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
  165. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
  166. package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
  167. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  168. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  169. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  170. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  171. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  172. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  173. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  174. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  175. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  176. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  177. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  178. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  179. package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
  180. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  181. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  182. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
  183. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  184. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  185. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  186. package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
  187. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  188. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
  189. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  190. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  191. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  192. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
  193. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  194. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
  195. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
  196. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  197. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  198. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
  199. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  200. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
  201. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  202. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  203. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  204. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
  205. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  206. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  207. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  208. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
  209. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  210. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  211. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  212. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  213. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
  214. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  215. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
  216. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  217. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  218. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  219. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  220. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  221. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  222. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  223. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  224. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  225. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  226. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  227. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  228. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  229. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  230. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  231. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  232. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  233. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  234. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  235. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  236. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  237. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  238. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  239. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  240. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  241. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  242. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  243. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  244. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  245. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  246. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  247. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  248. package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
  249. package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
  250. package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
  251. package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
  252. package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
  253. package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
  254. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  255. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  256. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
  257. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  258. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
  259. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  260. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  261. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +70 -0
  262. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  263. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +6 -0
  264. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  265. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  266. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +3 -1
  267. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
  268. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  269. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
  270. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  271. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
  272. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  273. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +9 -0
  274. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
  275. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
  276. package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +6 -0
  277. package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
  278. package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +9 -0
  279. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  280. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  281. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
  282. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  283. package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +12 -1
  284. package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +5 -1
  285. package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
  286. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  287. package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
  288. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
  289. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  290. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
  291. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  292. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +5 -5
  293. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  294. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +88 -3
  295. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  296. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
  297. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  298. package/dist/node_modules/@allyhub/sheet/dist/printed.d.ts +19 -0
  299. package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
  300. package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
  301. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  302. package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +2 -0
  303. package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
  304. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +8 -6
  305. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  306. package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
  307. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +6 -2
  308. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  309. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
  310. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -1
  311. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  312. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +3 -1
  313. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  314. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +7 -1
  315. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
  316. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +6 -0
  317. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  318. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +1 -1
  319. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  320. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +12 -1
  321. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
  322. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  323. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
  324. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  325. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +101 -11
  326. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  327. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  328. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
  329. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  330. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
  331. package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
  332. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  333. package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +24 -0
  334. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  335. package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +223 -0
  336. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  337. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
  338. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  339. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
  340. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  341. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
  342. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  343. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
  344. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  345. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +25 -4
  346. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
  347. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
  348. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +20 -11
  349. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  350. package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
  351. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  352. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
  353. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
  354. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  355. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  356. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
  357. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
  358. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  359. package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
  360. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  361. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
  362. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  363. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
  364. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  365. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
  366. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  367. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
  368. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  369. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
  370. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  371. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
  372. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  373. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
  374. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  375. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
  376. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +24 -432
  377. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  378. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
  379. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +8 -14
  380. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  381. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
  382. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  383. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
  384. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
  385. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  386. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
  387. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  388. package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
  389. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  390. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
  391. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  392. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
  393. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  394. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
  395. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  396. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  397. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  398. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  399. package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
  400. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  401. package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
  402. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  403. package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
  404. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  405. package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
  406. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  407. package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
  408. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  409. package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +12 -5
  410. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
  411. package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
  412. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  413. package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
  414. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  415. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
  416. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  417. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  418. package/dist/scenery.d.ts +1 -1
  419. package/dist/scenery.js +1 -1
  420. package/dist/sheets.d.ts +1 -1
  421. package/dist/sheets.js +1 -1
  422. package/dist/slides.d.ts +1 -9
  423. package/dist/slides.js +1 -1
  424. package/docs/README.md +10 -6
  425. package/docs/batches.md +5 -5
  426. package/docs/canvas.md +28 -0
  427. package/docs/contract.md +2 -2
  428. package/docs/defaults.md +298 -22
  429. package/docs/docs.md +80 -66
  430. package/docs/footage.md +7 -7
  431. package/docs/image.md +165 -0
  432. package/docs/layers.md +22 -13
  433. package/docs/modeling.md +4 -4
  434. package/docs/pictures.md +65 -0
  435. package/docs/project.md +51 -31
  436. package/docs/scenery.md +14 -15
  437. package/docs/sheets.md +46 -28
  438. package/docs/slides.md +121 -67
  439. package/docs/sound.md +3 -3
  440. package/docs/speech.md +8 -8
  441. package/docs/video.md +16 -13
  442. package/docs/websites.md +4 -4
  443. package/docs/x.md +73 -0
  444. package/package.json +7 -2
  445. package/dist/define.js +0 -2
  446. package/dist/free.js +0 -2
  447. package/dist/input.js +0 -2
  448. package/dist/module.js +0 -2
  449. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  450. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  451. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  452. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  453. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  454. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  455. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  456. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  457. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  458. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  459. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  460. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  461. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  462. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  463. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  464. package/dist/parts.js +0 -2
  465. package/dist/phone.js +0 -2
  466. package/dist/piece.js +0 -2
  467. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  468. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  469. /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
  470. /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
  471. /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
  472. /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
  473. /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
  474. /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
  475. /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
  476. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  477. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  478. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  479. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  480. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  481. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  482. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  483. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  484. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  485. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  486. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  487. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  488. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  489. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  490. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  491. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  492. /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
  493. /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
  494. /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
  495. /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
  496. /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
  497. /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
- /** A deck's presentation file, in the item's folder beside slides.ts. */
3
- export declare const SLIDES_FILE = "slides.yaml";
4
- /** A deck's presentation file, for an item's folder. */
5
- export declare const slidesFileFor: (dir: string) => string;
6
2
  /** The theme's colours, as PresentationML names them (`a:clrScheme`). */
7
3
  export declare const THEME_COLORS: readonly ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"];
8
4
  export type ThemeColor = (typeof THEME_COLORS)[number];
@@ -11,7 +7,10 @@ export declare const TEXT_ALIGNS: readonly ["l", "ctr", "r", "just"];
11
7
  export type TextAlign = (typeof TEXT_ALIGNS)[number];
12
8
  /**
13
9
  * The preset shapes (`a:prstGeom/@prst`): all of ECMA-376's ST_ShapeType,
14
- * drawn from its preset shape definitions as PowerPoint draws them.
10
+ * in the schema's order, drawn from its preset shape definitions as
11
+ * PowerPoint draws them. The OOXML library generates the same list from
12
+ * the ISO schemas (@allyhub/ooxml's SHAPE_TYPES; its tests hold the two
13
+ * the same).
15
14
  */
16
15
  export declare const SHAPE_GEOMETRIES: readonly ["line", "lineInv", "triangle", "rtTriangle", "rect", "diamond", "parallelogram", "trapezoid", "nonIsoscelesTrapezoid", "pentagon", "hexagon", "heptagon", "octagon", "decagon", "dodecagon", "star4", "star5", "star6", "star7", "star8", "star10", "star12", "star16", "star24", "star32", "roundRect", "round1Rect", "round2SameRect", "round2DiagRect", "snipRoundRect", "snip1Rect", "snip2SameRect", "snip2DiagRect", "plaque", "ellipse", "teardrop", "homePlate", "chevron", "pieWedge", "pie", "blockArc", "donut", "noSmoking", "rightArrow", "leftArrow", "upArrow", "downArrow", "stripedRightArrow", "notchedRightArrow", "bentUpArrow", "leftRightArrow", "upDownArrow", "leftUpArrow", "leftRightUpArrow", "quadArrow", "leftArrowCallout", "rightArrowCallout", "upArrowCallout", "downArrowCallout", "leftRightArrowCallout", "upDownArrowCallout", "quadArrowCallout", "bentArrow", "uturnArrow", "circularArrow", "leftCircularArrow", "leftRightCircularArrow", "curvedRightArrow", "curvedLeftArrow", "curvedUpArrow", "curvedDownArrow", "swooshArrow", "cube", "can", "lightningBolt", "heart", "sun", "moon", "smileyFace", "irregularSeal1", "irregularSeal2", "foldedCorner", "bevel", "frame", "halfFrame", "corner", "diagStripe", "chord", "arc", "leftBracket", "rightBracket", "leftBrace", "rightBrace", "bracketPair", "bracePair", "straightConnector1", "bentConnector2", "bentConnector3", "bentConnector4", "bentConnector5", "curvedConnector2", "curvedConnector3", "curvedConnector4", "curvedConnector5", "callout1", "callout2", "callout3", "accentCallout1", "accentCallout2", "accentCallout3", "borderCallout1", "borderCallout2", "borderCallout3", "accentBorderCallout1", "accentBorderCallout2", "accentBorderCallout3", "wedgeRectCallout", "wedgeRoundRectCallout", "wedgeEllipseCallout", "cloudCallout", "cloud", "ribbon", "ribbon2", "ellipseRibbon", "ellipseRibbon2", "leftRightRibbon", "verticalScroll", "horizontalScroll", "wave", "doubleWave", "plus", "flowChartProcess", "flowChartDecision", "flowChartInputOutput", "flowChartPredefinedProcess", "flowChartInternalStorage", "flowChartDocument", "flowChartMultidocument", "flowChartTerminator", "flowChartPreparation", "flowChartManualInput", "flowChartManualOperation", "flowChartConnector", "flowChartPunchedCard", "flowChartPunchedTape", "flowChartSummingJunction", "flowChartOr", "flowChartCollate", "flowChartSort", "flowChartExtract", "flowChartMerge", "flowChartOfflineStorage", "flowChartOnlineStorage", "flowChartMagneticTape", "flowChartMagneticDisk", "flowChartMagneticDrum", "flowChartDisplay", "flowChartDelay", "flowChartAlternateProcess", "flowChartOffpageConnector", "actionButtonBlank", "actionButtonHome", "actionButtonHelp", "actionButtonInformation", "actionButtonForwardNext", "actionButtonBackPrevious", "actionButtonEnd", "actionButtonBeginning", "actionButtonReturn", "actionButtonDocument", "actionButtonSound", "actionButtonMovie", "gear6", "gear9", "funnel", "mathPlus", "mathMinus", "mathMultiply", "mathDivide", "mathEqual", "mathNotEqual", "cornerTabs", "squareTabs", "plaqueTabs", "chartX", "chartStar", "chartPlus"];
17
16
  export type ShapeGeometry = (typeof SHAPE_GEOMETRIES)[number];
@@ -30,6 +29,23 @@ export type LineDash = (typeof LINE_DASHES)[number];
30
29
  /** A line's end, as PresentationML names it (`a:headEnd/@type`, `a:tailEnd/@type`). */
31
30
  export declare const LINE_ENDS: readonly ["none", "triangle", "arrow", "stealth", "diamond", "oval"];
32
31
  export type LineEnd = (typeof LINE_ENDS)[number];
32
+ /** A line end's width or length, small, medium or large, as PresentationML names them (`a:headEnd/@w`, `@len`). */
33
+ export declare const ARROW_SIZES: readonly ["sm", "med", "lg"];
34
+ export type ArrowSize = (typeof ARROW_SIZES)[number];
35
+ /** A line end's size: its width across the line and its length along it; what it leaves out is medium. */
36
+ export declare const LineEndSizeSchema: z.ZodObject<{
37
+ w: z.ZodOptional<z.ZodEnum<{
38
+ sm: "sm";
39
+ med: "med";
40
+ lg: "lg";
41
+ }>>;
42
+ len: z.ZodOptional<z.ZodEnum<{
43
+ sm: "sm";
44
+ med: "med";
45
+ lg: "lg";
46
+ }>>;
47
+ }, z.core.$strict>;
48
+ export type LineEndSize = z.infer<typeof LineEndSizeSchema>;
33
49
  /** A shape's frame: its offset and extents (`a:xfrm`), in points. */
34
50
  export declare const FrameSchema: z.ZodObject<{
35
51
  x: z.ZodNumber;
@@ -50,11 +66,11 @@ export type Color = ThemeColor | {
50
66
  } | {
51
67
  rgb: string;
52
68
  };
53
- /** A colour as slides.yaml and a script's `<span color="…">` write it; undefined when it is none. */
69
+ /** A colour as a slides file and a script's `<span color="…">` write it; undefined when it is none. */
54
70
  export declare function colorOfFile(s: string): Color | undefined;
55
- /** A colour as slides.yaml and a script's `<span color="…">` write it. */
71
+ /** A colour as a slides file and a script's `<span color="…">` write it. */
56
72
  export declare function colorFile(c: Color): string;
57
- /** A colour slides.yaml names: the theme's (`accent1`), lighter or darker (`accent1 lighter 40%`), or `#RRGGBB` (an imported deck's own). */
73
+ /** A colour a slides file names: the theme's (`accent1`), lighter or darker (`accent1 lighter 40%`), or `#RRGGBB` (an imported deck's own). */
58
74
  export declare const ColorFileSchema: z.ZodUnion<readonly [z.ZodEnum<{
59
75
  dk1: "dk1";
60
76
  lt1: "lt1";
@@ -230,6 +246,20 @@ export declare const ChartSchema: z.ZodObject<{
230
246
  gap_width: z.ZodOptional<z.ZodNumber>;
231
247
  overlap: z.ZodOptional<z.ZodNumber>;
232
248
  vary_by_categories: z.ZodOptional<z.ZodBoolean>;
249
+ category_colors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
250
+ dk1: "dk1";
251
+ lt1: "lt1";
252
+ dk2: "dk2";
253
+ lt2: "lt2";
254
+ accent1: "accent1";
255
+ accent2: "accent2";
256
+ accent3: "accent3";
257
+ accent4: "accent4";
258
+ accent5: "accent5";
259
+ accent6: "accent6";
260
+ hlink: "hlink";
261
+ folHlink: "folHlink";
262
+ }>, z.ZodString, z.ZodString]>>>;
233
263
  hole_size: z.ZodOptional<z.ZodNumber>;
234
264
  value_axis: z.ZodOptional<z.ZodObject<{
235
265
  min: z.ZodOptional<z.ZodNumber>;
@@ -422,6 +452,16 @@ export declare const ShapeSchema: z.ZodObject<{
422
452
  rotation: z.ZodOptional<z.ZodNumber>;
423
453
  flip_h: z.ZodOptional<z.ZodLiteral<true>>;
424
454
  flip_v: z.ZodOptional<z.ZodLiteral<true>>;
455
+ connect: z.ZodOptional<z.ZodObject<{
456
+ begin: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
457
+ shape: z.ZodString;
458
+ site: z.ZodInt;
459
+ }, z.core.$strict>, z.ZodLiteral<"none">]>>;
460
+ end: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
461
+ shape: z.ZodString;
462
+ site: z.ZodInt;
463
+ }, z.core.$strict>, z.ZodLiteral<"none">]>>;
464
+ }, z.core.$strict>>;
425
465
  z: z.ZodOptional<z.ZodInt>;
426
466
  fill: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
427
467
  dk1: "dk1";
@@ -520,6 +560,30 @@ export declare const ShapeSchema: z.ZodObject<{
520
560
  stealth: "stealth";
521
561
  oval: "oval";
522
562
  }>>;
563
+ line_begin_size: z.ZodOptional<z.ZodObject<{
564
+ w: z.ZodOptional<z.ZodEnum<{
565
+ sm: "sm";
566
+ med: "med";
567
+ lg: "lg";
568
+ }>>;
569
+ len: z.ZodOptional<z.ZodEnum<{
570
+ sm: "sm";
571
+ med: "med";
572
+ lg: "lg";
573
+ }>>;
574
+ }, z.core.$strict>>;
575
+ line_end_size: z.ZodOptional<z.ZodObject<{
576
+ w: z.ZodOptional<z.ZodEnum<{
577
+ sm: "sm";
578
+ med: "med";
579
+ lg: "lg";
580
+ }>>;
581
+ len: z.ZodOptional<z.ZodEnum<{
582
+ sm: "sm";
583
+ med: "med";
584
+ lg: "lg";
585
+ }>>;
586
+ }, z.core.$strict>>;
523
587
  text: z.ZodOptional<z.ZodObject<{
524
588
  size: z.ZodOptional<z.ZodNumber>;
525
589
  bold: z.ZodOptional<z.ZodBoolean>;
@@ -935,6 +999,20 @@ export declare const ShapeSchema: z.ZodObject<{
935
999
  gap_width: z.ZodOptional<z.ZodNumber>;
936
1000
  overlap: z.ZodOptional<z.ZodNumber>;
937
1001
  vary_by_categories: z.ZodOptional<z.ZodBoolean>;
1002
+ category_colors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
1003
+ dk1: "dk1";
1004
+ lt1: "lt1";
1005
+ dk2: "dk2";
1006
+ lt2: "lt2";
1007
+ accent1: "accent1";
1008
+ accent2: "accent2";
1009
+ accent3: "accent3";
1010
+ accent4: "accent4";
1011
+ accent5: "accent5";
1012
+ accent6: "accent6";
1013
+ hlink: "hlink";
1014
+ folHlink: "folHlink";
1015
+ }>, z.ZodString, z.ZodString]>>>;
938
1016
  hole_size: z.ZodOptional<z.ZodNumber>;
939
1017
  value_axis: z.ZodOptional<z.ZodObject<{
940
1018
  min: z.ZodOptional<z.ZodNumber>;
@@ -1031,6 +1109,7 @@ export declare const ShapeSchema: z.ZodObject<{
1031
1109
  locked: z.ZodOptional<z.ZodLiteral<true>>;
1032
1110
  component: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
1033
1111
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<PropValue, unknown, z.core.$ZodTypeInternals<PropValue, unknown>>>>;
1112
+ dur: z.ZodOptional<z.ZodNumber>;
1034
1113
  }, z.core.$strict>;
1035
1114
  export type ShapeFile = z.infer<typeof ShapeSchema>;
1036
1115
  /** The kinds a shape of the slide's own is, by the field that makes it. */
@@ -1104,6 +1183,16 @@ export declare const SlideSchema: z.ZodObject<{
1104
1183
  rotation: z.ZodOptional<z.ZodNumber>;
1105
1184
  flip_h: z.ZodOptional<z.ZodLiteral<true>>;
1106
1185
  flip_v: z.ZodOptional<z.ZodLiteral<true>>;
1186
+ connect: z.ZodOptional<z.ZodObject<{
1187
+ begin: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1188
+ shape: z.ZodString;
1189
+ site: z.ZodInt;
1190
+ }, z.core.$strict>, z.ZodLiteral<"none">]>>;
1191
+ end: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1192
+ shape: z.ZodString;
1193
+ site: z.ZodInt;
1194
+ }, z.core.$strict>, z.ZodLiteral<"none">]>>;
1195
+ }, z.core.$strict>>;
1107
1196
  z: z.ZodOptional<z.ZodInt>;
1108
1197
  fill: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1109
1198
  dk1: "dk1";
@@ -1202,6 +1291,30 @@ export declare const SlideSchema: z.ZodObject<{
1202
1291
  stealth: "stealth";
1203
1292
  oval: "oval";
1204
1293
  }>>;
1294
+ line_begin_size: z.ZodOptional<z.ZodObject<{
1295
+ w: z.ZodOptional<z.ZodEnum<{
1296
+ sm: "sm";
1297
+ med: "med";
1298
+ lg: "lg";
1299
+ }>>;
1300
+ len: z.ZodOptional<z.ZodEnum<{
1301
+ sm: "sm";
1302
+ med: "med";
1303
+ lg: "lg";
1304
+ }>>;
1305
+ }, z.core.$strict>>;
1306
+ line_end_size: z.ZodOptional<z.ZodObject<{
1307
+ w: z.ZodOptional<z.ZodEnum<{
1308
+ sm: "sm";
1309
+ med: "med";
1310
+ lg: "lg";
1311
+ }>>;
1312
+ len: z.ZodOptional<z.ZodEnum<{
1313
+ sm: "sm";
1314
+ med: "med";
1315
+ lg: "lg";
1316
+ }>>;
1317
+ }, z.core.$strict>>;
1205
1318
  text: z.ZodOptional<z.ZodObject<{
1206
1319
  size: z.ZodOptional<z.ZodNumber>;
1207
1320
  bold: z.ZodOptional<z.ZodBoolean>;
@@ -1617,6 +1730,20 @@ export declare const SlideSchema: z.ZodObject<{
1617
1730
  gap_width: z.ZodOptional<z.ZodNumber>;
1618
1731
  overlap: z.ZodOptional<z.ZodNumber>;
1619
1732
  vary_by_categories: z.ZodOptional<z.ZodBoolean>;
1733
+ category_colors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
1734
+ dk1: "dk1";
1735
+ lt1: "lt1";
1736
+ dk2: "dk2";
1737
+ lt2: "lt2";
1738
+ accent1: "accent1";
1739
+ accent2: "accent2";
1740
+ accent3: "accent3";
1741
+ accent4: "accent4";
1742
+ accent5: "accent5";
1743
+ accent6: "accent6";
1744
+ hlink: "hlink";
1745
+ folHlink: "folHlink";
1746
+ }>, z.ZodString, z.ZodString]>>>;
1620
1747
  hole_size: z.ZodOptional<z.ZodNumber>;
1621
1748
  value_axis: z.ZodOptional<z.ZodObject<{
1622
1749
  min: z.ZodOptional<z.ZodNumber>;
@@ -1713,6 +1840,7 @@ export declare const SlideSchema: z.ZodObject<{
1713
1840
  locked: z.ZodOptional<z.ZodLiteral<true>>;
1714
1841
  component: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
1715
1842
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<PropValue, unknown, z.core.$ZodTypeInternals<PropValue, unknown>>>>;
1843
+ dur: z.ZodOptional<z.ZodNumber>;
1716
1844
  }, z.core.$strict>>>;
1717
1845
  animations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1718
1846
  shape: z.ZodString;
@@ -1818,6 +1946,16 @@ export declare const SlidesFileSchema: z.ZodObject<{
1818
1946
  rotation: z.ZodOptional<z.ZodNumber>;
1819
1947
  flip_h: z.ZodOptional<z.ZodLiteral<true>>;
1820
1948
  flip_v: z.ZodOptional<z.ZodLiteral<true>>;
1949
+ connect: z.ZodOptional<z.ZodObject<{
1950
+ begin: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1951
+ shape: z.ZodString;
1952
+ site: z.ZodInt;
1953
+ }, z.core.$strict>, z.ZodLiteral<"none">]>>;
1954
+ end: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1955
+ shape: z.ZodString;
1956
+ site: z.ZodInt;
1957
+ }, z.core.$strict>, z.ZodLiteral<"none">]>>;
1958
+ }, z.core.$strict>>;
1821
1959
  z: z.ZodOptional<z.ZodInt>;
1822
1960
  fill: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1823
1961
  dk1: "dk1";
@@ -1916,6 +2054,30 @@ export declare const SlidesFileSchema: z.ZodObject<{
1916
2054
  stealth: "stealth";
1917
2055
  oval: "oval";
1918
2056
  }>>;
2057
+ line_begin_size: z.ZodOptional<z.ZodObject<{
2058
+ w: z.ZodOptional<z.ZodEnum<{
2059
+ sm: "sm";
2060
+ med: "med";
2061
+ lg: "lg";
2062
+ }>>;
2063
+ len: z.ZodOptional<z.ZodEnum<{
2064
+ sm: "sm";
2065
+ med: "med";
2066
+ lg: "lg";
2067
+ }>>;
2068
+ }, z.core.$strict>>;
2069
+ line_end_size: z.ZodOptional<z.ZodObject<{
2070
+ w: z.ZodOptional<z.ZodEnum<{
2071
+ sm: "sm";
2072
+ med: "med";
2073
+ lg: "lg";
2074
+ }>>;
2075
+ len: z.ZodOptional<z.ZodEnum<{
2076
+ sm: "sm";
2077
+ med: "med";
2078
+ lg: "lg";
2079
+ }>>;
2080
+ }, z.core.$strict>>;
1919
2081
  text: z.ZodOptional<z.ZodObject<{
1920
2082
  size: z.ZodOptional<z.ZodNumber>;
1921
2083
  bold: z.ZodOptional<z.ZodBoolean>;
@@ -2331,6 +2493,20 @@ export declare const SlidesFileSchema: z.ZodObject<{
2331
2493
  gap_width: z.ZodOptional<z.ZodNumber>;
2332
2494
  overlap: z.ZodOptional<z.ZodNumber>;
2333
2495
  vary_by_categories: z.ZodOptional<z.ZodBoolean>;
2496
+ category_colors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
2497
+ dk1: "dk1";
2498
+ lt1: "lt1";
2499
+ dk2: "dk2";
2500
+ lt2: "lt2";
2501
+ accent1: "accent1";
2502
+ accent2: "accent2";
2503
+ accent3: "accent3";
2504
+ accent4: "accent4";
2505
+ accent5: "accent5";
2506
+ accent6: "accent6";
2507
+ hlink: "hlink";
2508
+ folHlink: "folHlink";
2509
+ }>, z.ZodString, z.ZodString]>>>;
2334
2510
  hole_size: z.ZodOptional<z.ZodNumber>;
2335
2511
  value_axis: z.ZodOptional<z.ZodObject<{
2336
2512
  min: z.ZodOptional<z.ZodNumber>;
@@ -2427,6 +2603,7 @@ export declare const SlidesFileSchema: z.ZodObject<{
2427
2603
  locked: z.ZodOptional<z.ZodLiteral<true>>;
2428
2604
  component: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
2429
2605
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<PropValue, unknown, z.core.$ZodTypeInternals<PropValue, unknown>>>>;
2606
+ dur: z.ZodOptional<z.ZodNumber>;
2430
2607
  }, z.core.$strict>>>;
2431
2608
  animations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2432
2609
  shape: z.ZodString;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as o}from"zod";import{SHAPE_TYPES as y}from"@allyhub/ooxml/enums";import{SCRIPT_NAME as h}from"./script.js";export const SLIDES_FILE="slides.yaml",slidesFileFor=t=>`${t}/${SLIDES_FILE}`;const s=o.string().regex(h,"A name is letters, digits, _ and -.");export const THEME_COLORS=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],TEXT_ALIGNS=["l","ctr","r","just"],SHAPE_GEOMETRIES=y,ANIMATION_EFFECTS=["appear","fade","wipe","fly-in","zoom","disappear","fade-out","wipe-out","fly-out","zoom-out","pulse","path"],ANIMATION_STARTS=["on-click","with-previous","after-previous"],ANIMATION_DIRECTIONS=["from-bottom","from-top","from-left","from-right"],LINE_DASHES=["solid","sysDash","sysDot","dash","dashDot","lgDash","lgDashDot","lgDashDotDot"],LINE_ENDS=["none","triangle","arrow","stealth","diamond","oval"],FrameSchema=o.strictObject({x:o.number(),y:o.number(),w:o.number().nonnegative(),h:o.number().nonnegative()});const g=new RegExp(`^(${THEME_COLORS.join("|")}) (lighter|darker) (100(?:\\.0{1,3})?|[1-9]?\\d(?:\\.\\d{1,3})?)%$`,"u"),f=/^#[0-9A-Fa-f]{6}$/u,x=t=>THEME_COLORS.includes(t);export function colorOfFile(t){if(x(t))return t;if(f.test(t))return{rgb:t.toUpperCase()};const n=g.exec(t),[,r="",e,i=""]=n??[],l=Math.round(Number(i)*1e3);if(!(!n||!x(r)||l<=0||l>1e5))return{theme_color:r,brightness:(e==="lighter"?l:-l)/1e5}}export function colorFile(t){if(typeof t=="string")return t;if("rgb"in t)return t.rgb;const n=Math.round(Math.abs(t.brightness)*1e5)/1e3;return n===0?t.theme_color:`${t.theme_color} ${t.brightness>0?"lighter":"darker"} ${String(n)}%`}const u=`A colour is one of the theme's (${THEME_COLORS.join(", ")}), one of them lighter or darker by a share over 0 up to 100% ("accent1 lighter 40%", "dk1 darker 25%"), or #RRGGBB.`;export const ColorFileSchema=o.union([o.enum(THEME_COLORS),o.string().regex(g,u),o.string().regex(f,u)]).refine(t=>colorOfFile(t)!==void 0,u),NUMBERINGS=["arabicPeriod","arabicParenR","alphaLcPeriod","alphaUcPeriod","romanLcPeriod","romanUcPeriod"],TEXT_ANCHORS=["t","ctr","b"],TextStyleSchema=o.strictObject({size:o.number().positive().max(4e3).optional(),bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.boolean().optional(),strike:o.boolean().optional(),color:ColorFileSchema.optional(),font:o.string().min(1).optional(),align:o.enum(TEXT_ALIGNS).optional(),line_spacing:o.number().positive().max(10).optional(),space_before:o.number().min(0).max(1584).optional(),space_after:o.number().min(0).max(1584).optional(),anchor:o.enum(TEXT_ANCHORS).optional(),bullet:o.union([o.literal(!1),o.string().min(1).max(2)]).optional(),numbered:o.enum(NUMBERINGS).optional()});const E=o.strictObject({left:o.number().min(0).max(1).optional(),top:o.number().min(0).max(1).optional(),right:o.number().min(0).max(1).optional(),bottom:o.number().min(0).max(1).optional()}),d=o.lazy(()=>o.union([o.string(),o.number(),o.boolean(),o.null(),o.array(d),o.record(o.string(),d)]));export const CHART_TYPES=["column-clustered","column-stacked","column-stacked-100","bar-clustered","bar-stacked","bar-stacked-100","line","line-markers","area","area-stacked","area-stacked-100","pie","doughnut"],SHEET_CHART_TYPES=[...CHART_TYPES,"scatter","scatter-lines","scatter-smooth"],CHART_LEGEND_POSITIONS=["bottom","top","left","right"];const S=o.strictObject({min:o.number().optional(),max:o.number().optional(),major:o.number().positive().optional(),gridlines:o.boolean().optional(),visible:o.boolean().optional(),format:o.string().min(1).optional(),reverse:o.boolean().optional(),gridline_color:ColorFileSchema.optional(),line_color:ColorFileSchema.optional()});export const ChartSchema=o.strictObject({type:o.enum(SHEET_CHART_TYPES),data:o.string().min(1).optional(),categories:o.union([o.string().min(1),o.array(o.string())]).optional(),series:o.array(o.union([o.string().min(1),o.strictObject({name:o.string().min(1),values:o.array(o.number().nullable()).optional(),x:o.array(o.number().nullable()).optional(),color:ColorFileSchema.optional(),format:o.string().min(1).optional(),smooth:o.boolean().optional(),line_width:o.number().positive().optional(),marker_size:o.number().int().min(2).max(72).optional()})])).min(1),legend:o.enum(CHART_LEGEND_POSITIONS).optional(),labels:o.union([o.boolean(),o.strictObject({value:o.boolean().optional(),percentage:o.boolean().optional(),category:o.boolean().optional(),series:o.boolean().optional(),format:o.string().min(1).optional(),position:o.enum(["outEnd","inEnd","ctr","inBase","t","b","l","r","bestFit"]).optional(),size:o.number().positive().optional(),color:ColorFileSchema.optional()})]).optional(),gap_width:o.number().min(0).max(500).optional(),overlap:o.number().min(-100).max(100).optional(),vary_by_categories:o.boolean().optional(),hole_size:o.number().min(10).max(90).optional(),value_axis:S.optional(),category_axis:S.optional(),size:o.number().positive().optional(),title_size:o.number().positive().optional(),color:ColorFileSchema.optional()});const p=o.number().min(0).max(1);export const GradientSchema=o.strictObject({angle:o.number().min(0).max(360).optional(),stops:o.array(o.strictObject({at:p,color:ColorFileSchema,transparency:p.optional()})).min(2).max(10)}),BackgroundSchema=o.strictObject({fill:ColorFileSchema.optional(),gradient:GradientSchema.optional(),picture:o.string().min(1).optional()}).refine(t=>[t.fill,t.gradient,t.picture].filter(n=>n!==void 0).length===1,{message:"A background is a fill, a gradient or a picture: one of them."}),ShadowSchema=o.strictObject({color:ColorFileSchema.optional(),blur:o.number().min(0).max(100).optional(),distance:o.number().min(0).max(200).optional(),angle:o.number().min(0).max(360).optional(),transparency:p.optional()}),ShapeSchema=o.strictObject({frame:FrameSchema.optional(),rotation:o.number().min(0).lt(360).optional(),flip_h:o.literal(!0).optional(),flip_v:o.literal(!0).optional(),z:o.int().optional(),fill:o.union([ColorFileSchema,o.literal("none")]).optional(),fill_transparency:p.optional(),gradient:GradientSchema.optional(),shadow:ShadowSchema.optional(),line:o.union([ColorFileSchema,o.literal("none")]).optional(),line_width:o.number().positive().max(1584).optional(),line_dash:o.enum(LINE_DASHES).optional(),line_begin:o.enum(LINE_ENDS).optional(),line_end:o.enum(LINE_ENDS).optional(),text:TextStyleSchema.optional(),textbox:o.literal(!0).optional(),picture:o.string().min(1).optional(),crop:E.optional(),movie:o.string().min(1).optional(),poster:o.number().min(0).optional(),geometry:o.enum(SHAPE_GEOMETRIES).optional(),adjustments:o.array(o.number()).max(8).optional(),path:o.strictObject({w:o.number().positive(),h:o.number().positive(),d:o.string().min(1)}).optional(),table:o.strictObject({columns:o.array(o.number().positive()).min(1),rows:o.array(o.strictObject({height:o.number().positive(),fill:ColorFileSchema.optional(),text:TextStyleSchema.optional(),line:ColorFileSchema.optional()})).min(1)}).optional(),chart:ChartSchema.optional(),group:s.optional(),locked:o.literal(!0).optional(),component:o.union([s,o.string().regex(/^[^#\s]+\.[cm]?[jt]sx?(?:#[A-Za-z_$][\w$]*)?$/u,"A component is a name slides.ts registers, or a module's path and export: ../ui.ts#Dialog.")]).optional(),props:o.record(o.string(),d).optional()}),SHAPE_KINDS=["textbox","picture","movie","geometry","path","table","chart","component"],SLIDE_TRANSITIONS=["fade","push","wipe","morph"],TransitionSchema=o.strictObject({type:o.enum(SLIDE_TRANSITIONS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),duration:o.number().positive().optional()}),AnimationSchema=o.strictObject({shape:o.string().min(1),paragraph:o.int().min(0).optional(),effect:o.enum(ANIMATION_EFFECTS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),start:o.enum(ANIMATION_STARTS).optional(),duration:o.number().min(0).optional(),delay:o.number().min(0).optional(),path:o.string().min(1).optional()}),SlideSchema=o.strictObject({id:s,layout:o.string().min(1).optional(),generate:s.optional(),hidden:o.union([o.literal(!0),o.array(o.string())]).optional(),shapes:o.record(o.string().min(1),ShapeSchema).optional(),animations:o.array(AnimationSchema).optional(),transition:TransitionSchema.optional(),advance_after:o.number().min(0).max(86400).optional(),background:BackgroundSchema.optional()}),SlidesFileSchema=o.strictObject({slides:o.array(SlideSchema).default([])}).superRefine((t,n)=>{const r=new Set;t.slides.forEach((e,i)=>{r.has(e.id)&&n.addIssue({code:"custom",path:["slides",i,"id"],message:`Two slides are "${e.id}".`}),r.add(e.id),(e.layout===void 0?0:1)+(e.generate===void 0?0:1)!==1&&n.addIssue({code:"custom",path:["slides",i],message:`Slide ${e.id} has a layout or a generator: one of them.`}),e.hidden!==void 0&&e.generate===void 0&&e.hidden!==!0&&n.addIssue({code:"custom",path:["slides",i,"hidden"],message:`Slide ${e.id} is hidden (true); a list of ids is a generated block's.`});for(const[a,_]of Object.entries(e.shapes??{})){const b=SHAPE_KINDS.filter(c=>_[c]!==void 0);b.length>1&&n.addIssue({code:"custom",path:["slides",i,"shapes",a],message:`Shape ${a} is one kind of shape, not ${b.join(" and ")}.`});const m=a.includes("/")?a.split("/"):[a];(!(m.length<=2&&m.every(c=>h.test(c)))||m.length===2&&e.generate===void 0)&&n.addIssue({code:"custom",path:["slides",i,"shapes",a],message:"A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block."})}})});
2
+ import{z as o}from"zod";import{SCRIPT_NAME as g}from"./script.js";const s=o.string().regex(g,"A name is letters, digits, _ and -.");export const THEME_COLORS=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],TEXT_ALIGNS=["l","ctr","r","just"],SHAPE_GEOMETRIES=["line","lineInv","triangle","rtTriangle","rect","diamond","parallelogram","trapezoid","nonIsoscelesTrapezoid","pentagon","hexagon","heptagon","octagon","decagon","dodecagon","star4","star5","star6","star7","star8","star10","star12","star16","star24","star32","roundRect","round1Rect","round2SameRect","round2DiagRect","snipRoundRect","snip1Rect","snip2SameRect","snip2DiagRect","plaque","ellipse","teardrop","homePlate","chevron","pieWedge","pie","blockArc","donut","noSmoking","rightArrow","leftArrow","upArrow","downArrow","stripedRightArrow","notchedRightArrow","bentUpArrow","leftRightArrow","upDownArrow","leftUpArrow","leftRightUpArrow","quadArrow","leftArrowCallout","rightArrowCallout","upArrowCallout","downArrowCallout","leftRightArrowCallout","upDownArrowCallout","quadArrowCallout","bentArrow","uturnArrow","circularArrow","leftCircularArrow","leftRightCircularArrow","curvedRightArrow","curvedLeftArrow","curvedUpArrow","curvedDownArrow","swooshArrow","cube","can","lightningBolt","heart","sun","moon","smileyFace","irregularSeal1","irregularSeal2","foldedCorner","bevel","frame","halfFrame","corner","diagStripe","chord","arc","leftBracket","rightBracket","leftBrace","rightBrace","bracketPair","bracePair","straightConnector1","bentConnector2","bentConnector3","bentConnector4","bentConnector5","curvedConnector2","curvedConnector3","curvedConnector4","curvedConnector5","callout1","callout2","callout3","accentCallout1","accentCallout2","accentCallout3","borderCallout1","borderCallout2","borderCallout3","accentBorderCallout1","accentBorderCallout2","accentBorderCallout3","wedgeRectCallout","wedgeRoundRectCallout","wedgeEllipseCallout","cloudCallout","cloud","ribbon","ribbon2","ellipseRibbon","ellipseRibbon2","leftRightRibbon","verticalScroll","horizontalScroll","wave","doubleWave","plus","flowChartProcess","flowChartDecision","flowChartInputOutput","flowChartPredefinedProcess","flowChartInternalStorage","flowChartDocument","flowChartMultidocument","flowChartTerminator","flowChartPreparation","flowChartManualInput","flowChartManualOperation","flowChartConnector","flowChartPunchedCard","flowChartPunchedTape","flowChartSummingJunction","flowChartOr","flowChartCollate","flowChartSort","flowChartExtract","flowChartMerge","flowChartOfflineStorage","flowChartOnlineStorage","flowChartMagneticTape","flowChartMagneticDisk","flowChartMagneticDrum","flowChartDisplay","flowChartDelay","flowChartAlternateProcess","flowChartOffpageConnector","actionButtonBlank","actionButtonHome","actionButtonHelp","actionButtonInformation","actionButtonForwardNext","actionButtonBackPrevious","actionButtonEnd","actionButtonBeginning","actionButtonReturn","actionButtonDocument","actionButtonSound","actionButtonMovie","gear6","gear9","funnel","mathPlus","mathMinus","mathMultiply","mathDivide","mathEqual","mathNotEqual","cornerTabs","squareTabs","plaqueTabs","chartX","chartStar","chartPlus"],ANIMATION_EFFECTS=["appear","fade","wipe","fly-in","zoom","disappear","fade-out","wipe-out","fly-out","zoom-out","pulse","path"],ANIMATION_STARTS=["on-click","with-previous","after-previous"],ANIMATION_DIRECTIONS=["from-bottom","from-top","from-left","from-right"],LINE_DASHES=["solid","sysDash","sysDot","dash","dashDot","lgDash","lgDashDot","lgDashDotDot"],LINE_ENDS=["none","triangle","arrow","stealth","diamond","oval"],ARROW_SIZES=["sm","med","lg"],LineEndSizeSchema=o.strictObject({w:o.enum(ARROW_SIZES).optional(),len:o.enum(ARROW_SIZES).optional()}),FrameSchema=o.strictObject({x:o.number(),y:o.number(),w:o.number().nonnegative(),h:o.number().nonnegative()});const b=new RegExp(`^(${THEME_COLORS.join("|")}) (lighter|darker) (100(?:\\.0{1,3})?|[1-9]?\\d(?:\\.\\d{1,3})?)%$`,"u"),f=/^#[0-9A-Fa-f]{6}$/u,w=t=>THEME_COLORS.includes(t);export function colorOfFile(t){if(w(t))return t;if(f.test(t))return{rgb:t.toUpperCase()};const n=b.exec(t),[,i="",e,a=""]=n??[],l=Math.round(Number(a)*1e3);if(!(!n||!w(i)||l<=0||l>1e5))return{theme_color:i,brightness:(e==="lighter"?l:-l)/1e5}}export function colorFile(t){if(typeof t=="string")return t;if("rgb"in t)return t.rgb;const n=Math.round(Math.abs(t.brightness)*1e5)/1e3;return n===0?t.theme_color:`${t.theme_color} ${t.brightness>0?"lighter":"darker"} ${String(n)}%`}const m=`A colour is one of the theme's (${THEME_COLORS.join(", ")}), one of them lighter or darker by a share over 0 up to 100% ("accent1 lighter 40%", "dk1 darker 25%"), or #RRGGBB.`;export const ColorFileSchema=o.union([o.enum(THEME_COLORS),o.string().regex(b,m),o.string().regex(f,m)]).refine(t=>colorOfFile(t)!==void 0,m),NUMBERINGS=["arabicPeriod","arabicParenR","alphaLcPeriod","alphaUcPeriod","romanLcPeriod","romanUcPeriod"],TEXT_ANCHORS=["t","ctr","b"],TextStyleSchema=o.strictObject({size:o.number().positive().max(4e3).optional(),bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.boolean().optional(),strike:o.boolean().optional(),color:ColorFileSchema.optional(),font:o.string().min(1).optional(),align:o.enum(TEXT_ALIGNS).optional(),line_spacing:o.number().positive().max(10).optional(),space_before:o.number().min(0).max(1584).optional(),space_after:o.number().min(0).max(1584).optional(),anchor:o.enum(TEXT_ANCHORS).optional(),bullet:o.union([o.literal(!1),o.string().min(1).max(2)]).optional(),numbered:o.enum(NUMBERINGS).optional()});const A=o.strictObject({left:o.number().lt(1).optional(),top:o.number().lt(1).optional(),right:o.number().lt(1).optional(),bottom:o.number().lt(1).optional()}).refine(t=>(t.left??0)+(t.right??0)<1,{message:"left and right together cut the whole picture away"}).refine(t=>(t.top??0)+(t.bottom??0)<1,{message:"top and bottom together cut the whole picture away"}),d=o.lazy(()=>o.union([o.string(),o.number(),o.boolean(),o.null(),o.array(d),o.record(o.string(),d)]));export const CHART_TYPES=["column-clustered","column-stacked","column-stacked-100","bar-clustered","bar-stacked","bar-stacked-100","line","line-markers","area","area-stacked","area-stacked-100","pie","doughnut"],SHEET_CHART_TYPES=[...CHART_TYPES,"scatter","scatter-lines","scatter-smooth"],CHART_LEGEND_POSITIONS=["bottom","top","left","right"];const C=o.strictObject({min:o.number().optional(),max:o.number().optional(),major:o.number().positive().optional(),gridlines:o.boolean().optional(),visible:o.boolean().optional(),format:o.string().min(1).optional(),reverse:o.boolean().optional(),gridline_color:ColorFileSchema.optional(),line_color:ColorFileSchema.optional()});export const ChartSchema=o.strictObject({type:o.enum(SHEET_CHART_TYPES),data:o.string().min(1).optional(),categories:o.union([o.string().min(1),o.array(o.string())]).optional(),series:o.array(o.union([o.string().min(1),o.strictObject({name:o.string().min(1),values:o.array(o.number().nullable()).optional(),x:o.array(o.number().nullable()).optional(),color:ColorFileSchema.optional(),format:o.string().min(1).optional(),smooth:o.boolean().optional(),line_width:o.number().positive().optional(),marker_size:o.number().int().min(2).max(72).optional()})])).min(1),legend:o.enum(CHART_LEGEND_POSITIONS).optional(),labels:o.union([o.boolean(),o.strictObject({value:o.boolean().optional(),percentage:o.boolean().optional(),category:o.boolean().optional(),series:o.boolean().optional(),format:o.string().min(1).optional(),position:o.enum(["outEnd","inEnd","ctr","inBase","t","b","l","r","bestFit"]).optional(),size:o.number().positive().optional(),color:ColorFileSchema.optional()})]).optional(),gap_width:o.number().min(0).max(500).optional(),overlap:o.number().min(-100).max(100).optional(),vary_by_categories:o.boolean().optional(),category_colors:o.array(ColorFileSchema).min(1).optional(),hole_size:o.number().min(10).max(90).optional(),value_axis:C.optional(),category_axis:C.optional(),size:o.number().positive().optional(),title_size:o.number().positive().optional(),color:ColorFileSchema.optional()});const c=o.number().min(0).max(1);export const GradientSchema=o.strictObject({angle:o.number().min(0).max(360).optional(),stops:o.array(o.strictObject({at:c,color:ColorFileSchema,transparency:c.optional()})).min(2).max(10)}),BackgroundSchema=o.strictObject({fill:ColorFileSchema.optional(),gradient:GradientSchema.optional(),picture:o.string().min(1).optional()}).refine(t=>[t.fill,t.gradient,t.picture].filter(n=>n!==void 0).length===1,{message:"A background is a fill, a gradient or a picture: one of them."}),ShadowSchema=o.strictObject({color:ColorFileSchema.optional(),blur:o.number().min(0).max(100).optional(),distance:o.number().min(0).max(200).optional(),angle:o.number().min(0).max(360).optional(),transparency:c.optional()});const S=o.union([o.strictObject({shape:o.string().min(1),site:o.int().min(0)}),o.literal("none")]);export const ShapeSchema=o.strictObject({frame:FrameSchema.optional(),rotation:o.number().min(0).lt(360).optional(),flip_h:o.literal(!0).optional(),flip_v:o.literal(!0).optional(),connect:o.strictObject({begin:S.optional(),end:S.optional()}).optional(),z:o.int().optional(),fill:o.union([ColorFileSchema,o.literal("none")]).optional(),fill_transparency:c.optional(),gradient:GradientSchema.optional(),shadow:ShadowSchema.optional(),line:o.union([ColorFileSchema,o.literal("none")]).optional(),line_width:o.number().positive().max(1584).optional(),line_dash:o.enum(LINE_DASHES).optional(),line_begin:o.enum(LINE_ENDS).optional(),line_end:o.enum(LINE_ENDS).optional(),line_begin_size:LineEndSizeSchema.optional(),line_end_size:LineEndSizeSchema.optional(),text:TextStyleSchema.optional(),textbox:o.literal(!0).optional(),picture:o.string().min(1).optional(),crop:A.optional(),movie:o.string().min(1).optional(),poster:o.number().min(0).optional(),geometry:o.enum(SHAPE_GEOMETRIES).optional(),adjustments:o.array(o.number()).max(8).optional(),path:o.strictObject({w:o.number().positive(),h:o.number().positive(),d:o.string().min(1)}).optional(),table:o.strictObject({columns:o.array(o.number().positive()).min(1),rows:o.array(o.strictObject({height:o.number().positive(),fill:ColorFileSchema.optional(),text:TextStyleSchema.optional(),line:ColorFileSchema.optional()})).min(1)}).optional(),chart:ChartSchema.optional(),group:s.optional(),locked:o.literal(!0).optional(),component:o.union([s,o.string().regex(/^[^#\s]+\.[cm]?[jt]sx?(?:#[A-Za-z_$][\w$]*)?$/u,"A component is a name the deck's module registers, or a module's path and export: ../ui.ts#Dialog.")]).optional(),props:o.record(o.string(),d).optional(),dur:o.number().positive().optional()}),SHAPE_KINDS=["textbox","picture","movie","geometry","path","table","chart","component"],SLIDE_TRANSITIONS=["fade","push","wipe","morph"],TransitionSchema=o.strictObject({type:o.enum(SLIDE_TRANSITIONS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),duration:o.number().positive().optional()}),AnimationSchema=o.strictObject({shape:o.string().min(1),paragraph:o.int().min(0).optional(),effect:o.enum(ANIMATION_EFFECTS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),start:o.enum(ANIMATION_STARTS).optional(),duration:o.number().min(0).optional(),delay:o.number().min(0).optional(),path:o.string().min(1).optional()}),SlideSchema=o.strictObject({id:s,layout:o.string().min(1).optional(),generate:s.optional(),hidden:o.union([o.literal(!0),o.array(o.string())]).optional(),shapes:o.record(o.string().min(1),ShapeSchema).optional(),animations:o.array(AnimationSchema).optional(),transition:TransitionSchema.optional(),advance_after:o.number().min(0).max(86400).optional(),background:BackgroundSchema.optional()}),SlidesFileSchema=o.strictObject({slides:o.array(SlideSchema).default([])}).superRefine((t,n)=>{const i=new Set;t.slides.forEach((e,a)=>{i.has(e.id)&&n.addIssue({code:"custom",path:["slides",a,"id"],message:`Two slides are "${e.id}".`}),i.add(e.id),(e.layout===void 0?0:1)+(e.generate===void 0?0:1)!==1&&n.addIssue({code:"custom",path:["slides",a],message:`Slide ${e.id} has a layout or a generator: one of them.`}),e.hidden!==void 0&&e.generate===void 0&&e.hidden!==!0&&n.addIssue({code:"custom",path:["slides",a,"hidden"],message:`Slide ${e.id} is hidden (true); a list of ids is a generated block's.`});for(const[r,x]of Object.entries(e.shapes??{})){const h=SHAPE_KINDS.filter(u=>x[u]!==void 0);h.length>1&&n.addIssue({code:"custom",path:["slides",a,"shapes",r],message:`Shape ${r} is one kind of shape, not ${h.join(" and ")}.`});const p=r.includes("/")?r.split("/"):[r];(!(p.length<=2&&p.every(u=>g.test(u)))||p.length===2&&e.generate===void 0)&&n.addIssue({code:"custom",path:["slides",a,"shapes",r],message:"A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block."})}})});
@@ -1,8 +1,9 @@
1
1
  import { z } from "zod";
2
- /** A website's entry file. */
2
+ /** The name a new website's file is written as; a website's file may be named anything, the project's list naming it. Its folder is the web project. */
3
3
  export declare const WEBSITE_FILE = "website.json";
4
4
  export declare const WebsiteFileSchema: z.ZodObject<{
5
5
  $schema: z.ZodOptional<z.ZodString>;
6
+ title: z.ZodOptional<z.ZodString>;
6
7
  dev: z.ZodOptional<z.ZodString>;
7
8
  build: z.ZodOptional<z.ZodString>;
8
9
  output: z.ZodString;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as t}from"zod";export const WEBSITE_FILE="website.json",WebsiteFileSchema=t.strictObject({$schema:t.string().optional(),dev:t.string().min(1).optional().describe("The command that serves the website while it is made, run in its folder by a shell. It listens on $PORT at $HOST, which the host sets (`astro dev --port $PORT --host $HOST --ignore-lock`), and allows the hosts in $ALLYHUB_PREVIEW_HOSTS when its server checks the Host header. None: the output folder is served as it is."),build:t.string().min(1).optional().describe("The command that builds the website into its output folder (`astro build`). None: it is not built."),output:t.string().min(1).describe("The folder that is the built website, from the website's folder (`dist`); `.` for a website of plain files."),site:t.string().min(1).optional().describe("The hosted site this website publishes to, written by `allyhub site deploy` the first time, so the folder publishes to the same site from any computer.")});export function parseWebsite(o){let i;try{i=JSON.parse(o)}catch(e){return{ok:!1,problems:[`is not JSON: ${e instanceof Error?e.message:String(e)}`]}}const s=WebsiteFileSchema.safeParse(i);return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(e=>e.path.length===0?e.message:`${e.path.join(".")}: ${e.message}`)}}
2
+ import{z as t}from"zod";export const WEBSITE_FILE="website.json",WebsiteFileSchema=t.strictObject({$schema:t.string().optional(),title:t.string().min(1).optional().describe("The website's name where people see it (Studio's list of a project's work); none: its entry file's name."),dev:t.string().min(1).optional().describe("The command that serves the website while it is made, run in its folder by a shell. It listens on $PORT at $HOST, which the host sets (`astro dev --port $PORT --host $HOST --ignore-lock`), and allows the hosts in $ALLYHUB_PREVIEW_HOSTS when its server checks the Host header. None: the output folder is served as it is."),build:t.string().min(1).optional().describe("The command that builds the website into its output folder (`astro build`). None: it is not built."),output:t.string().min(1).describe("The folder that is the built website, from the website's folder (`dist`); `.` for a website of plain files."),site:t.string().min(1).optional().describe("The hosted site this website publishes to, written by `allyhub site deploy` the first time, so the folder publishes to the same site from any computer.")});export function parseWebsite(o){let i;try{i=JSON.parse(o)}catch(e){return{ok:!1,problems:[`is not JSON: ${e instanceof Error?e.message:String(e)}`]}}const s=WebsiteFileSchema.safeParse(i);return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(e=>e.path.length===0?e.message:`${e.path.join(".")}: ${e.message}`)}}
@@ -0,0 +1,42 @@
1
+ import { z } from "zod";
2
+ /** The project's list of its work, at its root. */
3
+ export declare const WORK_FILE = "allyhub.yaml";
4
+ /**
5
+ * A piece of work: its kind (a kind's id: `video`, `doc`), its file from
6
+ * the project's root, its title. A piece with no kind is a file an editor
7
+ * opens by its name (an `editors` contribution's `files`, as VS Code's
8
+ * custom editors match a file pattern: a canvas, `*.canvas`).
9
+ */
10
+ export declare const WorkItemSchema: z.ZodObject<{
11
+ kind: z.ZodOptional<z.ZodString>;
12
+ file: z.ZodString;
13
+ title: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strict>;
15
+ export type WorkItem = z.infer<typeof WorkItemSchema>;
16
+ /** A heading over work, which may hold groups of its own. */
17
+ export interface WorkGroup {
18
+ group: string;
19
+ items: WorkEntry[];
20
+ }
21
+ export type WorkEntry = WorkItem | WorkGroup;
22
+ export declare const WorkEntrySchema: z.ZodType<WorkEntry>;
23
+ export declare const WorkFileSchema: z.ZodObject<{
24
+ $schema: z.ZodOptional<z.ZodString>;
25
+ work: z.ZodDefault<z.ZodArray<z.ZodType<WorkEntry, unknown, z.core.$ZodTypeInternals<WorkEntry, unknown>>>>;
26
+ }, z.core.$strict>;
27
+ export type WorkFile = z.infer<typeof WorkFileSchema>;
28
+ /** A piece of work as listed, with the headings over it, outermost first. */
29
+ export interface ListedWork extends WorkItem {
30
+ groups: string[];
31
+ }
32
+ /** Every piece of work a list holds, in its order, each with its headings. */
33
+ export declare function listedWork(file: WorkFile): ListedWork[];
34
+ /** A list read from its parsed YAML: the list, or what is wrong with it, by path. */
35
+ export declare function parseWork(raw: unknown): {
36
+ ok: true;
37
+ value: WorkFile;
38
+ } | {
39
+ ok: false;
40
+ problems: string[];
41
+ };
42
+ //# sourceMappingURL=work.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{z as e}from"zod";import{dataFile as n}from"./file.js";export const WORK_FILE="allyhub.yaml",WorkItemSchema=e.strictObject({kind:e.string().min(1).optional().describe("What it is: a kind's id (video, slides, image, doc, sheet, scenery, model, website, or an extension's); none for a file an editor opens by its name (a canvas, *.canvas)"),file:e.string().min(1).describe("Its file, from the project's root: a video's, a deck's or an image's module, a doc's MDX, a sheet's YAML, a website's JSON, a canvas"),title:e.string().min(1).optional().describe("Its name where people see it; none: the title its file says, else its file's name")}),WorkEntrySchema=e.lazy(()=>e.union([WorkItemSchema,e.strictObject({group:e.string().min(1).describe("A heading, as people see it"),items:e.array(WorkEntrySchema)})])),WorkFileSchema=n({work:e.array(WorkEntrySchema).default([]).describe("The work a person sees, in order: pieces, and groups of them")});export function listedWork(r){const s=[],o=(a,i)=>{for(const t of a)"group"in t?o(t.items,[...i,t.group]):s.push({...t,groups:i})};return o(r.work,[]),s}export function parseWork(r){const s=WorkFileSchema.safeParse(r??{});return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(o=>`${o.path.join(".")||"(root)"}: ${o.message}`)}}
@@ -0,0 +1,91 @@
1
+ import { z } from "zod";
2
+ /** `publisher.name`, as VS Code names an extension: lower case, digits and hyphens. */
3
+ export declare const ExtensionIdSchema: z.ZodString;
4
+ /** A host on the network an extension's workspace code calls, with why. */
5
+ export declare const NetworkCapabilitySchema: z.ZodObject<{
6
+ host: z.ZodString;
7
+ reason: z.ZodString;
8
+ }, z.core.$strip>;
9
+ export declare const CapabilitiesSchema: z.ZodObject<{
10
+ untrustedProjects: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"limited">]>>;
11
+ network: z.ZodOptional<z.ZodArray<z.ZodObject<{
12
+ host: z.ZodString;
13
+ reason: z.ZodString;
14
+ }, z.core.$strip>>>;
15
+ spend: z.ZodOptional<z.ZodBoolean>;
16
+ }, z.core.$strip>;
17
+ export type Capabilities = z.infer<typeof CapabilitiesSchema>;
18
+ /**
19
+ * A declared point's id: the declaring extension's id, the point's name and
20
+ * its version (`allyhub.doc/blockTypes/v1`), so a point that changes shape
21
+ * is a new point beside the old.
22
+ */
23
+ export declare const EXTENSION_POINT_ID: RegExp;
24
+ /** A contribution point an extension opens for others (4.8): what it is for, and its entries' JSON Schema. */
25
+ export declare const ExtensionPointSchema: z.ZodObject<{
26
+ about: z.ZodString;
27
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
28
+ }, z.core.$strip>;
29
+ export declare const ExtensionManifestSchema: z.ZodObject<{
30
+ id: z.ZodString;
31
+ engines: z.ZodString;
32
+ main: z.ZodOptional<z.ZodString>;
33
+ browser: z.ZodOptional<z.ZodString>;
34
+ stage: z.ZodOptional<z.ZodString>;
35
+ activationEvents: z.ZodDefault<z.ZodArray<z.ZodString>>;
36
+ contributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
37
+ extensionPoints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
38
+ about: z.ZodString;
39
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
40
+ }, z.core.$strip>>>;
41
+ extensionDependencies: z.ZodDefault<z.ZodArray<z.ZodString>>;
42
+ capabilities: z.ZodDefault<z.ZodObject<{
43
+ untrustedProjects: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"limited">]>>;
44
+ network: z.ZodOptional<z.ZodArray<z.ZodObject<{
45
+ host: z.ZodString;
46
+ reason: z.ZodString;
47
+ }, z.core.$strip>>>;
48
+ spend: z.ZodOptional<z.ZodBoolean>;
49
+ }, z.core.$strip>>;
50
+ enabledApiProposals: z.ZodDefault<z.ZodArray<z.ZodString>>;
51
+ }, z.core.$strip>;
52
+ export type ExtensionManifest = z.infer<typeof ExtensionManifestSchema>;
53
+ /**
54
+ * The package.json an extension is: its name, its version, its manifest,
55
+ * and npm's ranges of the packages it depends on, where the range of an
56
+ * extension it names in `extensionDependencies` is read (F6b).
57
+ */
58
+ export declare const ExtensionPackageSchema: z.ZodObject<{
59
+ name: z.ZodString;
60
+ version: z.ZodString;
61
+ allyhub: z.ZodObject<{
62
+ id: z.ZodString;
63
+ engines: z.ZodString;
64
+ main: z.ZodOptional<z.ZodString>;
65
+ browser: z.ZodOptional<z.ZodString>;
66
+ stage: z.ZodOptional<z.ZodString>;
67
+ activationEvents: z.ZodDefault<z.ZodArray<z.ZodString>>;
68
+ contributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
69
+ extensionPoints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
70
+ about: z.ZodString;
71
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
72
+ }, z.core.$strip>>>;
73
+ extensionDependencies: z.ZodDefault<z.ZodArray<z.ZodString>>;
74
+ capabilities: z.ZodDefault<z.ZodObject<{
75
+ untrustedProjects: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"limited">]>>;
76
+ network: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
+ host: z.ZodString;
78
+ reason: z.ZodString;
79
+ }, z.core.$strip>>>;
80
+ spend: z.ZodOptional<z.ZodBoolean>;
81
+ }, z.core.$strip>>;
82
+ enabledApiProposals: z.ZodDefault<z.ZodArray<z.ZodString>>;
83
+ }, z.core.$strip>;
84
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
85
+ peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
86
+ optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
87
+ }, z.core.$strip>;
88
+ export type ExtensionPackage = z.infer<typeof ExtensionPackageSchema>;
89
+ /** Whether a package.json says it is an extension (it has an `allyhub` field). */
90
+ export declare const isExtensionPackage: (pkg: unknown) => boolean;
91
+ //# sourceMappingURL=extension.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{z as n}from"zod";export const ExtensionIdSchema=n.string().regex(/^[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*$/u,{message:"An extension's id is publisher.name, in lower case."}),NetworkCapabilitySchema=n.object({host:n.string().min(1),reason:n.string().min(1)}),CapabilitiesSchema=n.object({untrustedProjects:n.union([n.boolean(),n.literal("limited")]).optional(),network:n.array(NetworkCapabilitySchema).optional(),spend:n.boolean().optional()}),EXTENSION_POINT_ID=/^([a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*)\/[a-z][a-zA-Z0-9]*\/v[1-9][0-9]*$/u,ExtensionPointSchema=n.object({about:n.string().min(1),schema:n.record(n.string(),n.unknown())}),ExtensionManifestSchema=n.object({id:ExtensionIdSchema,engines:n.string().min(1),main:n.string().min(1).optional(),browser:n.string().min(1).optional(),stage:n.string().min(1).optional(),activationEvents:n.array(n.string().min(1)).default([]),contributes:n.record(n.string(),n.unknown()).default({}),extensionPoints:n.record(n.string(),ExtensionPointSchema).default({}),extensionDependencies:n.array(ExtensionIdSchema).default([]),capabilities:CapabilitiesSchema.default({}),enabledApiProposals:n.array(n.string().min(1)).default([])});const t=n.record(n.string(),n.string()).optional();export const ExtensionPackageSchema=n.object({name:n.string().min(1),version:n.string().min(1),allyhub:ExtensionManifestSchema,dependencies:t,peerDependencies:t,optionalDependencies:t}),isExtensionPackage=e=>typeof e=="object"&&e!==null&&"allyhub"in e&&typeof e.allyhub=="object";
@@ -0,0 +1,51 @@
1
+ /**
2
+ * An editor that opens files by their names, as its extension contributes
3
+ * it: what the core needs to list those files and name them.
4
+ */
5
+ export interface FileEditorSpec {
6
+ /** The editor's id: `allyhub.canvas.editor`. */
7
+ readonly id: string;
8
+ /** The glob patterns of the project paths it opens (`**\/*.canvas`). */
9
+ readonly files: readonly string[];
10
+ /** What it opens, for an agent and the CLI, in English: `canvas`. */
11
+ readonly noun: string;
12
+ /** What it opens, for people, by language. */
13
+ readonly name: Readonly<Record<string, string>>;
14
+ /** A heading over the files it opens, by language. */
15
+ readonly plural?: Readonly<Record<string, string>> | undefined;
16
+ /** Its icon, a name in the UI kit's icon set. */
17
+ readonly icon?: string | undefined;
18
+ /** Its colour, a token of the UI kit's. */
19
+ readonly color?: string | undefined;
20
+ /**
21
+ * Its check module, where the check imports it from (its contribution's
22
+ * `check`, resolved against its extension's folder): its default export
23
+ * is `@allyhub/build`'s FileCheck, the objective errors of one file.
24
+ */
25
+ readonly check?: string | undefined;
26
+ /** The extension that contributes it. */
27
+ readonly extension: string;
28
+ }
29
+ /** The editors that open files by their names, as the extensions loaded contribute them. */
30
+ export type FileEditorTable = readonly FileEditorSpec[];
31
+ /** A file an editor opens by its name: its project path, and the editor. */
32
+ export interface EditorFile {
33
+ path: string;
34
+ editor: string;
35
+ }
36
+ /**
37
+ * A glob pattern as a test of project paths, as VS Code's file patterns
38
+ * read: `*` is any run of characters but `/`, `?` one of them, `**` any
39
+ * run of folders (none among them), `{a,b}` either; a pattern with no `/`
40
+ * matches a file's name in any folder (`*.canvas` as `**\/*.canvas`).
41
+ */
42
+ export declare function globTest(pattern: string): (path: string) => boolean;
43
+ /** The editor that opens a project path by its name, in a table: the first whose pattern matches. */
44
+ export declare function fileEditorIn(table: FileEditorTable, path: string): FileEditorSpec | undefined;
45
+ /**
46
+ * The files of a project the editors of `table` open by their names, in
47
+ * path order (project paths; dot folders and node_modules are left out
48
+ * whatever is passed).
49
+ */
50
+ export declare function scanFiles(files: Iterable<string>, table: FileEditorTable): EditorFile[];
51
+ //# sourceMappingURL=files.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{unscanned as f}from"./layout.js";const r=/[.+^${}()|[\]\\]/gu;export function globTest(o){const t=o.includes("/")?o:`**/${o}`;let s="";for(let e=0;e<t.length;e++){const n=t.charAt(e);if(n==="*"&&t.charAt(e+1)==="*"){const i=t.charAt(e+2)==="/";s+=i?"(?:[^/]+/)*":".*",e+=i?2:1}else if(n==="*")s+="[^/]*";else if(n==="?")s+="[^/]";else if(n==="{"){const i=t.indexOf("}",e);i<0?s+="\\{":(s+=`(?:${t.slice(e+1,i).split(",").map(l=>l.replace(r,"\\$&").replaceAll("*","[^/]*")).join("|")})`,e=i)}else s+=n.replace(r,"\\$&")}const c=new RegExp(`^${s}$`,"u");return e=>c.test(e)}export function fileEditorIn(o,t){return o.find(s=>s.files.some(c=>globTest(c)(t)))}export function scanFiles(o,t){if(t.length===0)return[];const s=t.map(e=>({id:e.id,tests:e.files.map(globTest)})),c=[];for(const e of[...o].filter(n=>!f(n)).sort()){const n=s.find(i=>i.tests.some(l=>l(e)));n&&c.push({path:e,editor:n.id})}return c}
@@ -1,6 +1,8 @@
1
1
  export * from "./layout.js";
2
2
  export * from "./note-shape.js";
3
3
  export * from "./items.js";
4
+ export * from "./files.js";
5
+ export * from "./contributed.js";
4
6
  export * from "./schemas.js";
5
7
  export * from "./strict.js";
6
8
  export * from "./data/file.js";
@@ -8,9 +10,9 @@ export * from "./data/words.js";
8
10
  export * from "./data/edits.js";
9
11
  export * from "./data/elements.js";
10
12
  export * from "./data/gen.js";
11
- export * from "./data/comments.js";
12
13
  export * from "./data/messages.js";
13
14
  export * from "./data/script.js";
15
+ export * from "./data/work.js";
14
16
  export * from "./data/sheet.js";
15
17
  export * from "./data/slides.js";
16
18
  export * from "./data/deck-code.js";
@@ -20,4 +22,6 @@ export * from "./data/reference.js";
20
22
  export * from "./data/website.js";
21
23
  export * from "./media-type.js";
22
24
  export * from "./zip.js";
25
+ export * from "./csv.js";
26
+ export * from "./extension.js";
23
27
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export*from"./layout.js";export*from"./note-shape.js";export*from"./items.js";export*from"./schemas.js";export*from"./strict.js";export*from"./data/file.js";export*from"./data/words.js";export*from"./data/edits.js";export*from"./data/elements.js";export*from"./data/gen.js";export*from"./data/comments.js";export*from"./data/messages.js";export*from"./data/script.js";export*from"./data/sheet.js";export*from"./data/slides.js";export*from"./data/deck-code.js";export*from"./data/config.js";export*from"./data/faces.js";export*from"./data/reference.js";export*from"./data/website.js";export*from"./media-type.js";export*from"./zip.js";
2
+ export*from"./layout.js";export*from"./note-shape.js";export*from"./items.js";export*from"./files.js";export*from"./contributed.js";export*from"./schemas.js";export*from"./strict.js";export*from"./data/file.js";export*from"./data/words.js";export*from"./data/edits.js";export*from"./data/elements.js";export*from"./data/gen.js";export*from"./data/messages.js";export*from"./data/script.js";export*from"./data/work.js";export*from"./data/sheet.js";export*from"./data/slides.js";export*from"./data/deck-code.js";export*from"./data/config.js";export*from"./data/faces.js";export*from"./data/reference.js";export*from"./data/website.js";export*from"./media-type.js";export*from"./zip.js";export*from"./csv.js";export*from"./extension.js";