allyhub 0.9.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 (461) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/commands/auth.js +4 -4
  3. package/dist/commands/cloud-tools.js +11 -11
  4. package/dist/commands/frames/compare.js +2 -2
  5. package/dist/commands/frames/piece.js +1 -1
  6. package/dist/commands/frames.js +8 -8
  7. package/dist/commands/index.js +1 -1
  8. package/dist/commands/inspect/common.js +4 -2
  9. package/dist/commands/inspect/facts.js +3 -3
  10. package/dist/commands/inspect/layout.js +1 -1
  11. package/dist/commands/orgs.js +2 -2
  12. package/dist/help.js +4 -4
  13. package/dist/main.js +8 -7
  14. package/dist/node_modules/@allyhub/3d-extension/package.json +34 -2
  15. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  16. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  17. package/dist/node_modules/@allyhub/build/package.json +1 -1
  18. package/dist/node_modules/@allyhub/canvas-extension/package.json +2 -1
  19. package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +4 -24
  20. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  21. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  22. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  23. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  24. package/dist/node_modules/@allyhub/check/package.json +1 -1
  25. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +10 -0
  26. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  27. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +9 -0
  28. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  29. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +4 -4
  30. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
  31. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
  32. package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
  33. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  34. package/dist/node_modules/@allyhub/components/package.json +1 -1
  35. package/dist/node_modules/@allyhub/components/r/callout.json +1 -1
  36. package/dist/node_modules/@allyhub/components/src/callout.ts +98 -13
  37. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  38. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  39. package/dist/node_modules/@allyhub/doc/dist/captions.js +1 -1
  40. package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
  41. package/dist/node_modules/@allyhub/doc/dist/html.js +50 -47
  42. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  43. package/dist/node_modules/@allyhub/doc/dist/page.js +1 -1
  44. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  45. package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
  46. package/dist/node_modules/@allyhub/doc/dist/write.js +22 -22
  47. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  48. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
  49. package/dist/node_modules/@allyhub/doc-extension/package.json +17 -2
  50. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  51. package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
  52. package/dist/node_modules/@allyhub/export/package.json +1 -1
  53. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  54. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  55. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  56. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  57. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +87 -1
  58. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  59. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +89 -0
  60. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  61. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +50 -0
  62. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  63. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  64. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  65. package/dist/node_modules/@allyhub/image-extension/package.json +16 -1
  66. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +7 -39
  67. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  68. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  69. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  70. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  71. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  72. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  73. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  74. package/dist/node_modules/@allyhub/media/package.json +1 -1
  75. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
  76. package/dist/node_modules/@allyhub/media-extension/package.json +7 -4
  77. package/dist/node_modules/@allyhub/model/package.json +1 -1
  78. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  79. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  80. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +16 -0
  81. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +1 -1
  82. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +6 -0
  83. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  84. package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
  85. package/dist/node_modules/@allyhub/project/package.json +1 -1
  86. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +132 -0
  87. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  88. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
  89. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  90. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
  91. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
  92. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +153 -0
  93. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  94. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +4 -2
  95. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  96. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +43 -188
  97. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  98. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +1 -0
  99. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  100. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +1 -0
  101. package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
  102. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +51 -91
  103. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  104. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +3 -3
  105. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  106. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  107. package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
  108. package/dist/node_modules/@allyhub/render/package.json +1 -1
  109. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  110. package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
  111. package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
  112. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  113. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  114. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  115. package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
  116. package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
  117. package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
  118. package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
  119. package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
  120. package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
  121. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  122. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +7 -0
  123. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
  124. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +4 -3
  125. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
  126. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +1 -1
  127. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
  128. package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
  129. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
  130. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
  131. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  132. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  133. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  134. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  135. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  136. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
  137. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  138. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
  139. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  140. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
  141. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  142. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
  143. package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
  144. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  145. package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
  146. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  147. package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
  148. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  149. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  150. package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
  151. package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
  152. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  153. package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
  154. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  155. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
  156. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  157. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  158. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
  159. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  160. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  161. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
  162. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  163. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +4 -4
  164. package/dist/node_modules/@allyhub/sheet-extension/package.json +22 -3
  165. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  166. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  167. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  168. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  169. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  170. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +1 -1
  171. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  172. package/dist/node_modules/@allyhub/slides-extension/package.json +20 -1
  173. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +2 -2
  174. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
  175. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  176. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  177. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  178. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  179. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  180. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  181. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +1 -1
  182. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  183. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  184. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
  185. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  186. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  187. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +19 -0
  188. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
  189. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
  190. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
  191. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
  192. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
  193. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
  194. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
  195. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
  196. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
  197. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
  198. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
  199. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
  200. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
  201. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
  202. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
  203. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
  204. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
  205. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
  206. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
  207. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
  208. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
  209. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
  210. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
  211. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
  212. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
  213. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
  214. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
  215. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
  216. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
  217. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
  218. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
  219. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
  220. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
  221. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
  222. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
  223. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
  224. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
  225. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
  226. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
  227. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
  228. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
  229. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
  230. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
  231. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
  232. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
  233. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
  234. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
  235. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
  236. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
  237. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
  238. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
  239. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
  240. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
  241. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
  242. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
  243. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
  244. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
  245. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
  246. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
  247. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
  248. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
  249. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
  250. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
  251. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
  252. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
  253. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
  254. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
  255. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
  256. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
  257. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
  258. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
  259. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
  260. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
  261. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
  262. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
  263. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
  264. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
  265. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
  266. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
  267. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
  268. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
  269. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
  270. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
  271. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
  272. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
  273. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
  274. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
  275. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
  276. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
  277. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  278. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
  279. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  280. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +19 -19
  281. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  282. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  283. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  284. package/dist/node_modules/@allyhub/video-extension/package.json +16 -1
  285. package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
  286. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  287. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +1 -1
  288. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  289. package/dist/node_modules/@allyhub/website/package.json +1 -1
  290. package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
  291. package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +24 -1
  292. package/dist/node_modules/@allyhub/website-extension/dist/tools.js +1 -1
  293. package/dist/node_modules/@allyhub/website-extension/package.json +49 -2
  294. package/dist/node_modules/@allyhub/x-extension/package.json +34 -4
  295. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +7 -62
  296. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  297. package/dist/node_modules/@allyhub/x-view/dist/article.js +1 -1
  298. package/dist/node_modules/@allyhub/x-view/dist/index.js +1 -1
  299. package/dist/node_modules/@allyhub/x-view/dist/post.js +2 -2
  300. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  301. package/dist/package.json +10 -10
  302. package/dist/text/facts-text.js +5 -5
  303. package/dist/text/index.js +1 -1
  304. package/dist/text/long-text.js +4 -0
  305. package/dist/works.js +1 -1
  306. package/editor-web/assets/{abnfDiagram-WEYOIA3C-CN5PiJYY.js → abnfDiagram-WEYOIA3C-CjAmWsNR.js} +1 -1
  307. package/editor-web/assets/alt-DnBZJzEh.js +4 -0
  308. package/editor-web/assets/{architecture-WOLXFQ4H-BnvZtQYk.js → architecture-WOLXFQ4H-DeeKhyhZ.js} +1 -1
  309. package/editor-web/assets/{architectureDiagram-ZHVYKT53-tkcEcFQ8.js → architectureDiagram-ZHVYKT53-b32qTaJg.js} +1 -1
  310. package/editor-web/assets/{arrow-up-DTP2yVSU.js → arrow-up-L4YV_65f.js} +1 -1
  311. package/editor-web/assets/article-DLMjAdbP.js +73 -0
  312. package/editor-web/assets/{audio-lines-Ti8-m7H2.js → audio-lines-BFcM7G2L.js} +1 -1
  313. package/editor-web/assets/{blockDiagram-RJAE7QA3-DhqEIpie.js → blockDiagram-RJAE7QA3-BNbnMNmw.js} +1 -1
  314. package/editor-web/assets/button-Chk675Xu.js +41 -0
  315. package/editor-web/assets/{c4Diagram-XDPPPE54-Bg9G95tl.js → c4Diagram-XDPPPE54-BEuemvMw.js} +1 -1
  316. package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
  317. package/editor-web/assets/channel-EzYq4r0d.js +1 -0
  318. package/editor-web/assets/chart-Be9Hj5GL.js +1 -0
  319. package/editor-web/assets/choice-BgmBh4yu.js +1 -0
  320. package/editor-web/assets/{chunk-2E7WHVMD-C8Ve9lAa.js → chunk-2E7WHVMD-Zb5nPx_e.js} +1 -1
  321. package/editor-web/assets/{chunk-4EMNKR2T-BDWwPUnT.js → chunk-4EMNKR2T-DSEM2reX.js} +1 -1
  322. package/editor-web/assets/{chunk-55XCU76K-BQiNPKgx.js → chunk-55XCU76K-BOZa_65H.js} +1 -1
  323. package/editor-web/assets/{chunk-7S6XSTFO-QoEt-6jf.js → chunk-7S6XSTFO-DeiGeVpB.js} +1 -1
  324. package/editor-web/assets/{chunk-AQDTSKZB-BeuwIv0-.js → chunk-AQDTSKZB-fPuQFBJc.js} +1 -1
  325. package/editor-web/assets/{chunk-DSNLSHJZ-BHW7sLAz.js → chunk-DSNLSHJZ-5vdnoak2.js} +1 -1
  326. package/editor-web/assets/{chunk-HAGFOTED-bbGED0hu.js → chunk-HAGFOTED-DFF2mZJ1.js} +1 -1
  327. package/editor-web/assets/{chunk-HNE4Q36P-FltWp8yo.js → chunk-HNE4Q36P-g6-ZLbTg.js} +1 -1
  328. package/editor-web/assets/{chunk-NQOKRVIF-NeQzr6kH.js → chunk-NQOKRVIF-o3hNcHMJ.js} +1 -1
  329. package/editor-web/assets/{chunk-UHW7PFBP-eA4-WUhn.js → chunk-UHW7PFBP-BQiDI9dK.js} +1 -1
  330. package/editor-web/assets/{chunk-VQ5W62QI-BPPv325z.js → chunk-VQ5W62QI-CJlMXWWz.js} +1 -1
  331. package/editor-web/assets/{chunk-WQQL4CDK-DOCIz7Te.js → chunk-WQQL4CDK-pNBU8dXv.js} +1 -1
  332. package/editor-web/assets/{chunk-YZO67HFG-Dc_ihQJi.js → chunk-YZO67HFG-2x-BiWd-.js} +1 -1
  333. package/editor-web/assets/{chunk-ZAUX2LTX-CoqwCPSm.js → chunk-ZAUX2LTX-etFStEM8.js} +1 -1
  334. package/editor-web/assets/{chunk-ZCHMQSOR-CZUQPkJx.js → chunk-ZCHMQSOR-B3AYRhIY.js} +1 -1
  335. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-DUh9c50k.js → classDiagram-v2-4MYWR3UA-6y2yX0oq.js} +1 -1
  336. package/editor-web/assets/collaborator-LRd0hELn.js +1 -0
  337. package/editor-web/assets/createLucideIcon-CPS-TrJJ.js +1 -0
  338. package/editor-web/assets/{cynefin-EF2NZ3EQ-DUTZiog0.js → cynefin-EF2NZ3EQ-CX4BTQQe.js} +1 -1
  339. package/editor-web/assets/{cynefinDiagram-WF24UDRP-oAjpfbrU.js → cynefinDiagram-WF24UDRP-LbDkOTy3.js} +1 -1
  340. package/editor-web/assets/{dagre-NK4GIZVX-BrKvKCvb.js → dagre-NK4GIZVX-wCKQk7hi.js} +1 -1
  341. package/editor-web/assets/{diagram-CBK3MWTC-GekVRnmm.js → diagram-CBK3MWTC-a9fofQwk.js} +1 -1
  342. package/editor-web/assets/{diagram-I5XIIV2D-CDd1VFRT.js → diagram-I5XIIV2D-UCLZWch5.js} +1 -1
  343. package/editor-web/assets/{diagram-ODIL2UCW-535RISTn.js → diagram-ODIL2UCW-CAEe88Lp.js} +1 -1
  344. package/editor-web/assets/{diagram-PFBEJUXE-MXzzKCGG.js → diagram-PFBEJUXE-Cp1o45bs.js} +1 -1
  345. package/editor-web/assets/{diagram-RJA3I4VV-vKVwkQxY.js → diagram-RJA3I4VV-c6OVxDyq.js} +1 -1
  346. package/editor-web/assets/{diagram-TYUNFSNR-UwGAiQLx.js → diagram-TYUNFSNR-BVRWslDM.js} +1 -1
  347. package/editor-web/assets/{dist-CKyfo5RM.js → dist--KKyT5zP.js} +1 -1
  348. package/editor-web/assets/dist-1k0MHB3i.js +1 -0
  349. package/editor-web/assets/dist-B9KHJqL5.js +4 -0
  350. package/editor-web/assets/dist-BbJyrhIY.js +1 -0
  351. package/editor-web/assets/dist-CJXCQxQM.js +37 -0
  352. package/editor-web/assets/dist-D9xQGwe9.js +5 -0
  353. package/editor-web/assets/dist-DFiLzbx8.js +219 -0
  354. package/editor-web/assets/{dist-shKo7XVN.js → dist-DIPV6xfF.js} +1 -1
  355. package/editor-web/assets/dist-Dp-fQMtx.js +6 -0
  356. package/editor-web/assets/dist-Duw28VxJ.js +16 -0
  357. package/editor-web/assets/{dist-9ymlIMhr.js → dist-DwGhfliS.js} +1 -1
  358. package/editor-web/assets/dist-OBE2IIYP.js +24 -0
  359. package/editor-web/assets/dist-j6ZLVcgf.js +38 -0
  360. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-73yGokYa.js → ebnfDiagram-V4P3TTPT-KdOTJgFu.js} +1 -1
  361. package/editor-web/assets/{elk-QONTBCTQ-BW6V9y6a.js → elk-QONTBCTQ-Cmlrp7qB.js} +1 -1
  362. package/editor-web/assets/{erDiagram-KYQIGQAA-BPqIJ22h.js → erDiagram-KYQIGQAA-CBM7-aQm.js} +1 -1
  363. package/editor-web/assets/{eventmodeling-K75KTNOO-_VZ8jvuy.js → eventmodeling-K75KTNOO-CEoJkbuW.js} +1 -1
  364. package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +1 -0
  365. package/editor-web/assets/{ganttDiagram-R7GPNTJY-DZ157JN2.js → ganttDiagram-R7GPNTJY-D4S6ZSYD.js} +1 -1
  366. package/editor-web/assets/{gitGraph-VSP46ZUC-fmcNL9bq.js → gitGraph-VSP46ZUC-BvkL6RSh.js} +1 -1
  367. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DiZDyksR.js → gitGraphDiagram-PDYL7XHY-lTGguloH.js} +1 -1
  368. package/editor-web/assets/hint-BimUgJms.js +1 -0
  369. package/editor-web/assets/index-C-i_iuxN.js +28 -0
  370. package/editor-web/assets/index-Cxh_Shkm.css +2 -0
  371. package/editor-web/assets/{info-OHQRW6UA-V06620kN.js → info-OHQRW6UA-DvKzqNvp.js} +1 -1
  372. package/editor-web/assets/{infoDiagram-MVDRKAX5-CbIgheWX.js → infoDiagram-MVDRKAX5-D7hCpehs.js} +1 -1
  373. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-D5oJQPkG.js → ishikawaDiagram-HPEHV2GE-Bg93sZQe.js} +1 -1
  374. package/editor-web/assets/{italic-CDhZKo_q.js → italic-BQBwRTe8.js} +1 -1
  375. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BZEv6JI4.js → journeyDiagram-BOSHW7O7-CKm_KONJ.js} +1 -1
  376. package/editor-web/assets/{kanban-definition-FNSA4HC5-CLG1R8y_.js → kanban-definition-FNSA4HC5-BKknnpTR.js} +1 -1
  377. package/editor-web/assets/{mermaid-parser.core-DxDwXM7z.js → mermaid-parser.core-BzqkDnqL.js} +3 -3
  378. package/editor-web/assets/{mermaid.core-tU55ZwVG.js → mermaid.core-CEpvTOAe.js} +4 -4
  379. package/editor-web/assets/{mindmap-definition-6OY57UG3-CYf4zzAh.js → mindmap-definition-6OY57UG3-BJ0qG8Wi.js} +1 -1
  380. package/editor-web/assets/minus-oPj1GxwA.js +1 -0
  381. package/editor-web/assets/{packet-JDAUHWVQ-DsHeKYNL.js → packet-JDAUHWVQ-ew3kvyFm.js} +1 -1
  382. package/editor-web/assets/{pegDiagram-ECIUJNBX-CQyh6TTa.js → pegDiagram-ECIUJNBX-DqUS2xit.js} +1 -1
  383. package/editor-web/assets/{pie-XZMESJXO-3vCIvpNB.js → pie-XZMESJXO-DTIAMPGm.js} +1 -1
  384. package/editor-web/assets/{pieDiagram-GNMPY74T-DF5yGBLn.js → pieDiagram-GNMPY74T-DoKOE02-.js} +1 -1
  385. package/editor-web/assets/progress-CPEbDOoN.js +6 -0
  386. package/editor-web/assets/{quadrantDiagram-D57K4MC3-B7pxlDYP.js → quadrantDiagram-D57K4MC3-DauOpYun.js} +1 -1
  387. package/editor-web/assets/{radar-ABXABTNO-cpEA41mL.js → radar-ABXABTNO-BvMJXUU-.js} +1 -1
  388. package/editor-web/assets/{railroad-I3PHUGI6-BLyy5R2c.js → railroad-I3PHUGI6-D3jdJmhM.js} +1 -1
  389. package/editor-web/assets/{railroad-abnf-LNEFI6M7-Y-oyol19.js → railroad-abnf-LNEFI6M7-Dm8ZpmPj.js} +1 -1
  390. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-o58wHZsr.js → railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js} +1 -1
  391. package/editor-web/assets/{railroad-peg-JR7BVNR7-CcD3PXZ8.js → railroad-peg-JR7BVNR7-CMrQL_7U.js} +1 -1
  392. package/editor-web/assets/{railroadDiagram-Y72NRBL7-BuCC4eyy.js → railroadDiagram-Y72NRBL7-y99z0C7i.js} +1 -1
  393. package/editor-web/assets/react-DztDSW4P.js +1 -0
  394. package/editor-web/assets/{repeat-2-C5PCbNsg.js → repeat-2-DJi4LW5C.js} +1 -1
  395. package/editor-web/assets/{requirementDiagram-EQYSW5RA-Dp-JFGn4.js → requirementDiagram-EQYSW5RA-jMr_uoF6.js} +1 -1
  396. package/editor-web/assets/row-ClBisiBs.js +1 -0
  397. package/editor-web/assets/{sankeyDiagram-SY24JHO5-rYuCqEvw.js → sankeyDiagram-SY24JHO5-DcUyx03Q.js} +1 -1
  398. package/editor-web/assets/schemas-68mjUjP5.js +1 -0
  399. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DryW8x6d.js → sequenceDiagram-BLEHNHQU-R4X8wRCd.js} +1 -1
  400. package/editor-web/assets/session-2u9U7koW.js +1 -0
  401. package/editor-web/assets/slides-BByblSSR.js +1 -0
  402. package/editor-web/assets/snapshots-C9KV-Y2_.js +56 -0
  403. package/editor-web/assets/sound-DExlNJbb.js +1 -0
  404. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-Bnp0XfpT.js → stateDiagram-v2-A6IESKWZ-BqvXKbCA.js} +1 -1
  405. package/editor-web/assets/{strikethrough-DJckA35o.js → strikethrough-CyUBnGTl.js} +1 -1
  406. package/editor-web/assets/{svg-BjM9RazX.js → svg-lBRT-uhy.js} +1 -1
  407. package/editor-web/assets/swatch-1c1uVn1z.js +1 -0
  408. package/editor-web/assets/{swimlanes-B3ENRKFQ-BiRRhhbd.js → swimlanes-B3ENRKFQ-hjTXIc6M.js} +1 -1
  409. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +8 -0
  410. package/editor-web/assets/switch-D0K-K8-C.js +1 -0
  411. package/editor-web/assets/{syntax-CC6QYhCz.js → syntax-Bih_jv7W.js} +1 -1
  412. package/editor-web/assets/tabs-CxxOnGLR.js +1 -0
  413. package/editor-web/assets/{textarea-BGtPqZdB.js → textarea-Fu93tFO3.js} +1 -1
  414. package/editor-web/assets/{timeline-definition-JXYKGLGB-D-Q5ZtDF.js → timeline-definition-JXYKGLGB-BcSoN4Dq.js} +1 -1
  415. package/editor-web/assets/{trash-2-Bjj6cWzP.js → trash-2-BAKAeziW.js} +1 -1
  416. package/editor-web/assets/{treeView-D4JQ5SDB-B6DDatXq.js → treeView-D4JQ5SDB-CsFN2jrc.js} +1 -1
  417. package/editor-web/assets/{treemap-SAJKECNS-D7j5ZhiI.js → treemap-SAJKECNS-DP1eqXJ2.js} +1 -1
  418. package/editor-web/assets/{undo-2-yOSG766T.js → undo-2-DQ5CBmki.js} +1 -1
  419. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-tkrdKUJB.js → usecaseDiagram-WPOLBNNX-BGxa0osF.js} +1 -1
  420. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-Ch4XbSnD.js → vennDiagram-Q3Y3IDCW-D2XhTF49.js} +1 -1
  421. package/editor-web/assets/video-CDbPX4Cr.js +1 -0
  422. package/editor-web/assets/{wardley-7MLQ67FV-Bynt7qNQ.js → wardley-7MLQ67FV-DM3jMAbZ.js} +1 -1
  423. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-DRuSgm_L.js → wardleyDiagram-IVAIDKWA-Bf-DaZEg.js} +1 -1
  424. package/editor-web/assets/{xychartDiagram-4URNHDU4-DctpvfkL.js → xychartDiagram-4URNHDU4-dp-mdcWd.js} +1 -1
  425. package/editor-web/index.html +6 -5
  426. package/package.json +2 -2
  427. package/editor-web/assets/alt-BOVao_9S.js +0 -4
  428. package/editor-web/assets/article-B6YCzhj8.js +0 -73
  429. package/editor-web/assets/calc-worker-B5-fDWnb.js +0 -45
  430. package/editor-web/assets/channel-C26aBI4o.js +0 -1
  431. package/editor-web/assets/chart-BOnxneyw.js +0 -1
  432. package/editor-web/assets/choice-O5nwc2N0.js +0 -1
  433. package/editor-web/assets/collaborator-BJU5qwHd.js +0 -1
  434. package/editor-web/assets/createLucideIcon-B3B95oX5.js +0 -1
  435. package/editor-web/assets/dist-C6NqUEG4.js +0 -16
  436. package/editor-web/assets/dist-C9UGmCG9.js +0 -6
  437. package/editor-web/assets/dist-CAk5bjBm.js +0 -1
  438. package/editor-web/assets/dist-CRaWqNwq.js +0 -37
  439. package/editor-web/assets/dist-CwIBc7HQ.js +0 -1
  440. package/editor-web/assets/dist-DXRmkezB.js +0 -38
  441. package/editor-web/assets/dist-EKK5i0dG.js +0 -219
  442. package/editor-web/assets/dist-hHJlpLWo.js +0 -5
  443. package/editor-web/assets/dist-oYKcwWUj.js +0 -4
  444. package/editor-web/assets/dist-wrKxBrVu.js +0 -24
  445. package/editor-web/assets/flowDiagram-IUGLLWBU-ouDQYiTr.js +0 -1
  446. package/editor-web/assets/hint-_AQWCDMj.js +0 -1
  447. package/editor-web/assets/index-BsstP-cI.js +0 -28
  448. package/editor-web/assets/index-DQRcmxBO.css +0 -2
  449. package/editor-web/assets/minus-Cgmm6ncD.js +0 -1
  450. package/editor-web/assets/progress-0B_TVsPi.js +0 -6
  451. package/editor-web/assets/react-BP46yLMB.js +0 -1
  452. package/editor-web/assets/react-pgBZqVxJ.js +0 -96
  453. package/editor-web/assets/schemas-Ewwjtbf4.js +0 -1
  454. package/editor-web/assets/session-DiI9KYRI.js +0 -1
  455. package/editor-web/assets/slides-CCwgBcGH.js +0 -1
  456. package/editor-web/assets/sound-CqryteNl.js +0 -1
  457. package/editor-web/assets/swatch-DL3HqIjW.js +0 -1
  458. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BkOls8Tv.js +0 -8
  459. package/editor-web/assets/switch-DltnKqN-.js +0 -1
  460. package/editor-web/assets/tabs-C-re0Kxn.js +0 -1
  461. package/editor-web/assets/video-DXFiCNGc.js +0 -1
@@ -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{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"],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(),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."})}})});
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."})}})});
@@ -719,6 +719,7 @@ export declare const DATA_FILES: {
719
719
  value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
720
720
  formula: z.ZodOptional<z.ZodString>;
721
721
  name: z.ZodOptional<z.ZodString>;
722
+ start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
722
723
  }, z.core.$strict>]>>>;
723
724
  format: z.ZodOptional<z.ZodArray<z.ZodObject<{
724
725
  format: z.ZodOptional<z.ZodString>;
@@ -1585,6 +1586,17 @@ export declare const DATA_FILES: {
1585
1586
  smooth: z.ZodOptional<z.ZodBoolean>;
1586
1587
  line_width: z.ZodOptional<z.ZodNumber>;
1587
1588
  marker_size: z.ZodOptional<z.ZodNumber>;
1589
+ type: z.ZodOptional<z.ZodEnum<{
1590
+ line: "line";
1591
+ "column-clustered": "column-clustered";
1592
+ "column-stacked": "column-stacked";
1593
+ "column-stacked-100": "column-stacked-100";
1594
+ "line-markers": "line-markers";
1595
+ area: "area";
1596
+ "area-stacked": "area-stacked";
1597
+ "area-stacked-100": "area-stacked-100";
1598
+ }>>;
1599
+ secondary: z.ZodOptional<z.ZodBoolean>;
1588
1600
  }, z.core.$strict>>;
1589
1601
  legend: z.ZodOptional<z.ZodEnum<{
1590
1602
  left: "left";
@@ -1649,6 +1661,16 @@ export declare const DATA_FILES: {
1649
1661
  format: z.ZodOptional<z.ZodString>;
1650
1662
  reverse: z.ZodOptional<z.ZodBoolean>;
1651
1663
  }, z.core.$strict>>;
1664
+ secondary_axis: z.ZodOptional<z.ZodObject<{
1665
+ title: z.ZodOptional<z.ZodString>;
1666
+ min: z.ZodOptional<z.ZodNumber>;
1667
+ max: z.ZodOptional<z.ZodNumber>;
1668
+ major: z.ZodOptional<z.ZodNumber>;
1669
+ gridlines: z.ZodOptional<z.ZodBoolean>;
1670
+ visible: z.ZodOptional<z.ZodBoolean>;
1671
+ format: z.ZodOptional<z.ZodString>;
1672
+ reverse: z.ZodOptional<z.ZodBoolean>;
1673
+ }, z.core.$strict>>;
1652
1674
  size: z.ZodOptional<z.ZodNumber>;
1653
1675
  title_size: z.ZodOptional<z.ZodNumber>;
1654
1676
  color: z.ZodOptional<z.ZodString>;
@@ -1723,6 +1745,10 @@ export declare const DATA_FILES: {
1723
1745
  formula: z.ZodString;
1724
1746
  }, z.core.$strict>>>;
1725
1747
  scenarios: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>>;
1748
+ iteration: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
1749
+ max_iterations: z.ZodOptional<z.ZodNumber>;
1750
+ max_change: z.ZodOptional<z.ZodNumber>;
1751
+ }, z.core.$strict>]>>;
1726
1752
  }, z.core.$strict>;
1727
1753
  readonly files: readonly [];
1728
1754
  readonly about: "A workbook: its sheets, cells, formulas, formats, names, checks and scenarios.";
@@ -1852,6 +1878,30 @@ export declare const DATA_FILES: {
1852
1878
  stealth: "stealth";
1853
1879
  oval: "oval";
1854
1880
  }>>;
1881
+ line_begin_size: z.ZodOptional<z.ZodObject<{
1882
+ w: z.ZodOptional<z.ZodEnum<{
1883
+ sm: "sm";
1884
+ med: "med";
1885
+ lg: "lg";
1886
+ }>>;
1887
+ len: z.ZodOptional<z.ZodEnum<{
1888
+ sm: "sm";
1889
+ med: "med";
1890
+ lg: "lg";
1891
+ }>>;
1892
+ }, z.core.$strict>>;
1893
+ line_end_size: z.ZodOptional<z.ZodObject<{
1894
+ w: z.ZodOptional<z.ZodEnum<{
1895
+ sm: "sm";
1896
+ med: "med";
1897
+ lg: "lg";
1898
+ }>>;
1899
+ len: z.ZodOptional<z.ZodEnum<{
1900
+ sm: "sm";
1901
+ med: "med";
1902
+ lg: "lg";
1903
+ }>>;
1904
+ }, z.core.$strict>>;
1855
1905
  text: z.ZodOptional<z.ZodObject<{
1856
1906
  size: z.ZodOptional<z.ZodNumber>;
1857
1907
  bold: z.ZodOptional<z.ZodBoolean>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/formats",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/i18n",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-draw",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-extension",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./build": {
@@ -54,6 +54,20 @@
54
54
  "plural": "boards"
55
55
  },
56
56
  "editor": "allyhub.image.editor",
57
+ "shown": {
58
+ "line": {
59
+ "en": "Posters, thumbnails and pictures",
60
+ "zh-cn": "海报、缩略图和图片",
61
+ "zh-tw": "海報、縮圖和圖片",
62
+ "ja": "ポスター、サムネイル、画像",
63
+ "ko": "포스터, 썸네일, 이미지",
64
+ "es": "Pósteres, miniaturas e imágenes",
65
+ "pt": "Pôsteres, miniaturas e imagens",
66
+ "de": "Poster, Thumbnails und Bilder",
67
+ "fr": "Affiches, miniatures et images"
68
+ },
69
+ "order": 50
70
+ },
57
71
  "icon": "image",
58
72
  "color": "kind-teal",
59
73
  "exports": {
@@ -116,6 +130,7 @@
116
130
  "image"
117
131
  ],
118
132
  "module": "@allyhub/image-editor",
133
+ "markup": "./markup",
119
134
  "place": {
120
135
  "type": "object",
121
136
  "properties": {
@@ -1,44 +1,12 @@
1
1
  # references/images.md
2
2
 
3
- An image is any picture, or a set of pictures that ship together: a photo to change, a poster, a set of product pictures, a carousel. It is a module (`.ts`, named as you like) listed in `allyhub.yaml` (`kind: image`, `file`, an optional `title`) that names its script from its folder: `script` its words, a file per language with `{locale}` once in its name. Two images in one folder share a script only when both name it. Each picture is a **board** with its own size and its own layers.
3
+ An image is any picture, or a set of pictures that ship together: a photo to change, a poster, a share card, a set of product pictures, a carousel. Each picture is a **board** with its own size and Photoshop's layers. Make an image for anything a person looks at as a still; a video for what moves, a deck for pages to flip through.
4
4
 
5
- ```ts
6
- import { board, fromPicture, image, picture } from "@allyhub/sdk/image";
5
+ - `allyhub help images` lists the commands in the order the work uses them and prints where the SDK's `image.md` and `pictures.md` are. Read them before writing an image.
6
+ - **A photo is never changed.** New pixels (made, edited, extended, cut out) come from the cloud's image tools ([ai-media.md](ai-media.md)), each a new file beside the photo that a layer then shows. Words, a logo or a price go in a layer over a picture, never in its pixels.
7
+ - **The person asks for changes with Mark up**: their viewer shows the boards and changes nothing by hand, so make each change in the image's code, or its script for words.
8
+ - **A Photoshop file** becomes an image with `allyhub image import`, which says what it could not carry over.
7
9
 
8
- export default image({
9
- script: "./trip.{locale}.yaml",
10
- matrix: { dims: { lang: ["en", "ja"] } },
11
- boards: (ctx) => [
12
- board({
13
- key: "photo",
14
- size: fromPicture(photo),
15
- layers: [
16
- picture({ key: "photo", src: photo }),
17
- Caption({ key: "caption", text: ctx.s("trip.photo.caption") }),
18
- ],
19
- }),
20
- board({
21
- key: "poster",
22
- size: "1240x1754",
23
- layers: [
24
- picture({ key: "plate", src: plate }),
25
- Caption({ key: "title", text: ctx.s("trip.poster.title") }),
26
- ],
27
- }),
28
- ],
29
- });
30
- ```
10
+ ## See and measure
31
11
 
32
- - **Layers** are Photoshop's: `picture()`, `textLayer()` (its `textItem`), `shape()`, `fill()`, `adjustment()` (Curves, Levels, Hue/Saturation…, on what lies under it), `group()`, components and `custom()`; each takes `blendMode`, `opacity`, `fillOpacity`, `clipping`, `mask`, `effects` (Photoshop's layer styles) and `transform`, by Photoshop's names. They are drawn as a still: settled after their entrance; there is no time, speech, music or transition, and `footage()` of a video file is not drawn.
33
- - **What Chrome cannot draw exactly is refused** (AK-I007, with why): some blend modes (`linearBurn`, `vividLight`, `dissolve`…), an effect under the layer in another blend mode, a clipping base that is HTML (a type layer, a component). The SDK's `image.md` lists what is drawn and how.
34
- - **Every layer has a `key`**, unique on its board. Facts name layers by it, and a layer of one key on several boards is compared across them.
35
- - **A board's size** is `size: "WxH"`, `width` and `height`, or `fromPicture(src)` (a photo's own size, the photo its bottom layer). `ctx.dims` in a layer is its board's own size.
36
- - **A photo is never changed.** A pixel edit is a new file beside it (its `.gen.json` says how it was made), which a layer then shows.
37
- - **A picture's pixels** are changed by the cloud's image tools (`allyhub ai-media`): made, edited where a mask or marks say, extended, cut out or split into layers, each a new file beside its record. A Mark up note's region is SVG path data in the picture's own pixels, to draw a mask from.
38
- - **No brand in the image**: it has no look. The stage's variables are neutral defaults; import a brand's colours and fonts into your components.
39
- - **`height: "auto"`** lays the layers out at the board's width and its `minHeight` (64), then makes the board as tall as their content reaches, up to `maxHeight` (16384). Lay such a board out in flow, not by the frame's height: a `picture()` box is a share of the final height.
40
- - **Words** come from the script: a board's are under `boards` with the board's key as `id` and its layers' words by name under `text`, shared ones under the script's own `text`, read with `ctx.s("<piece>.<key>…")` as a video's are.
41
- - **What the person asks for** comes by Mark up: the person's viewer shows the boards and changes nothing. A mark reaches you with each layer under it (its key, the line that names it, its words, its picture) and the mark as a region of its pixels; make the change in the code, or the script for words.
42
- - **Files**: `allyhub render <image>` makes PNGs; `--type jpeg`, `webp`, `avif`, `pdf` (a page a board, its text as text) and `zip` (the set). A board's file is `<item>.<combo>/<key>.<ext>`. `transparent: true` keeps the alpha channel in PNG, WebP and AVIF. `--param quality=…` sets JPEG, WebP and AVIF quality; `--param scale=2` (or `width=…`, `height=…`) draws each board larger, its layout kept; `--param max-kb=…` keeps each JPEG, WebP or AVIF under a size at the best quality that fits.
43
- - **PSD**: `--type psd` writes a layered Photoshop file a board, each layer of its kind (its pixels drawn by Chrome, Photoshop redrawing its text and effects), and `allyhub image import <file.psd> --to <module>.ts` makes an image of one, named after its module (`<name>.ts`, `<name>.<lang>.yaml`, its pictures beside them), saying what it could not carry over as it is.
44
- - **See it**: `allyhub frames <image>` draws every board on one sheet, `--part <key>` one board. `allyhub inspect <image>` gives `board`, `board-consistency` (a named layer's box, cap height and colour across boards), `picture-scale`, `overset` (words a paragraph box does not hold, and how many), `text-contrast` and the text layout facts.
12
+ `allyhub frames <image>` draws its boards as the render draws them, and `allyhub inspect <image>` gives their facts: each board, a layer compared across boards, words a box does not hold, contrast and text layout.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-measure",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-psd",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-render",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-runtime",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-sdk",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/jobs",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/measure",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/media",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{mkdir as k}from"node:fs/promises";import{join as l}from"node:path";import{z as a}from"zod";import{MediaError as O,ffmpegPath as A,mapLimit as F}from"@allyhub/media";import{inWork as _,measured as C,uploaded as v}from"../cloud.js";import{CHUNKS_AT_ONCE as x,CHUNK_WAIT_SECONDS as E,UPLOAD_LONG_SIDE as H,chunksOf as N,evenSize as $,fitted as L,formatSeconds as P,prepare as T,sampleFpsOf as U,uploadCopy as j}from"./common.js";import{buildTrack as z}from"./track.js";export const FACES_TOOL="find-faces";const D=a.object({frames:a.array(a.object({faces:a.array(a.tuple([a.number(),a.number(),a.number(),a.number()]))}))});export async function runFaces(i,e){const r=U(e),{path:d,probe:t}=await T(i,e),p=await A(e),g=Math.max(1,Math.round(t.duration*r)),w=`Finding the faces in ${String(g)} frames of ${d} (${P(t.duration)} at ${String(r)} per second) in AllyHub's cloud`;e.onProgress?.({step:"decode",message:w});const b=(await _("faces",async s=>{const o=$(t.width,t.height,H);return(await F(N(t.duration,r,e.chunkSeconds),x,async(n,c)=>{const m=l(s,`chunk-${String(c)}`);await k(m,{recursive:!0});const u=l(m,"faces.mp4");await j(d,u,{fps:r,size:o,from:n.first/r,frames:n.frames,ffmpeg:p,signal:e.signal});const S=await v(e.cloud,u),{output:y}=await C(e.cloud,FACES_TOOL,{video:S,width:o.width,height:o.height},{dir:m,signal:e.signal,timeoutSeconds:E}),h=D.safeParse(y);if(!h.success)throw new O("cloud","AllyHub's cloud answered the faces in a form not known.");return L(h.data.frames,n.frames,{faces:[]})})).flat()})).map(s=>s.faces.map(([o,f,n,c])=>({box:[o*t.width,f*t.height,n*t.width,c*t.height],score:1})));return{track:z({frames:b,fps:r,width:t.width,height:t.height,model:FACES_TOOL,...e.smoothing===void 0?{}:{smoothing:e.smoothing}}),provider:"AllyHub's cloud"}}export async function trackFaces(i,e){return(await runFaces(i,e)).track}
2
+ import{mkdir as k}from"node:fs/promises";import{join as l}from"node:path";import{z as a}from"zod";import{MediaError as O,ffmpegPath as A,mapLimit as F}from"@allyhub/media";import{inWork as _,measured as C,uploaded as v}from"../cloud.js";import{CHUNKS_AT_ONCE as x,CHUNK_WAIT_SECONDS as E,UPLOAD_LONG_SIDE as H,chunksOf as N,evenSize as $,fitted as L,formatSeconds as P,prepare as T,sampleFpsOf as U,uploadCopy as j}from"./common.js";import{buildTrack as z}from"./track.js";export const FACES_TOOL="detect-faces";const D=a.object({frames:a.array(a.object({faces:a.array(a.tuple([a.number(),a.number(),a.number(),a.number()]))}))});export async function runFaces(i,e){const r=U(e),{path:d,probe:t}=await T(i,e),p=await A(e),g=Math.max(1,Math.round(t.duration*r)),w=`Finding the faces in ${String(g)} frames of ${d} (${P(t.duration)} at ${String(r)} per second) in AllyHub's cloud`;e.onProgress?.({step:"decode",message:w});const b=(await _("faces",async s=>{const o=$(t.width,t.height,H);return(await F(N(t.duration,r,e.chunkSeconds),x,async(n,c)=>{const m=l(s,`chunk-${String(c)}`);await k(m,{recursive:!0});const u=l(m,"faces.mp4");await j(d,u,{fps:r,size:o,from:n.first/r,frames:n.frames,ffmpeg:p,signal:e.signal});const S=await v(e.cloud,u),{output:y}=await C(e.cloud,FACES_TOOL,{video:S,width:o.width,height:o.height},{dir:m,signal:e.signal,timeoutSeconds:E}),h=D.safeParse(y);if(!h.success)throw new O("cloud","AllyHub's cloud answered the faces in a form not known.");return L(h.data.frames,n.frames,{faces:[]})})).flat()})).map(s=>s.faces.map(([o,f,n,c])=>({box:[o*t.width,f*t.height,n*t.width,c*t.height],score:1})));return{track:z({frames:b,fps:r,width:t.width,height:t.height,model:FACES_TOOL,...e.smoothing===void 0?{}:{smoothing:e.smoothing}}),provider:"AllyHub's cloud"}}export async function trackFaces(i,e){return(await runFaces(i,e)).track}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/media-extension",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -38,21 +38,24 @@
38
38
  "types": [
39
39
  "image/*"
40
40
  ],
41
- "module": "@allyhub/media-renderers/picture"
41
+ "module": "@allyhub/media-renderers/picture",
42
+ "markup": "./markup"
42
43
  },
43
44
  {
44
45
  "id": "allyhub.media.video",
45
46
  "types": [
46
47
  "video/*"
47
48
  ],
48
- "module": "@allyhub/media-renderers/video"
49
+ "module": "@allyhub/media-renderers/video",
50
+ "markup": "./markup"
49
51
  },
50
52
  {
51
53
  "id": "allyhub.media.sound",
52
54
  "types": [
53
55
  "audio/*"
54
56
  ],
55
- "module": "@allyhub/media-renderers/sound"
57
+ "module": "@allyhub/media-renderers/sound",
58
+ "markup": "./markup"
56
59
  }
57
60
  ]
58
61
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/model",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{PRESETS as I}from"../generated/presets.js";export const PRESET_NAMES=Object.keys(I);export function presetAdjustments(s){return(I[s]?.av??[]).map(([a,o])=>({name:a,value:Number(o.split(/\s+/u)[1]??0)}))}const L=6e4,q=s=>s/L*(Math.PI/180);function z(s,a){const o=Math.min(s,a),c=new Map([["w",s],["h",a],["l",0],["t",0],["r",s],["b",a],["hc",s/2],["vc",a/2],["ls",Math.max(s,a)],["ss",o],["cd2",108e5],["cd4",54e5],["cd8",27e5],["3cd4",162e5],["3cd8",81e5],["5cd8",135e5],["7cd8",189e5]]);for(const t of[2,3,4,5,6,8,10,12,32])c.set(`wd${String(t)}`,s/t),c.set(`hd${String(t)}`,a/t);for(const t of[2,4,6,8,16,32])c.set(`ssd${String(t)}`,o/t);return c}function T(s,a){const[o="",...c]=s.trim().split(/\s+/u),[t=0,n=0,e=0]=c.map(r=>a.get(r)??Number(r));switch(o){case"*/":return e===0?0:t*n/e;case"+-":return t+n-e;case"+/":return e===0?0:(t+n)/e;case"?:":return t>0?n:e;case"abs":return Math.abs(t);case"at2":return Math.atan2(n,t)*180*L/Math.PI;case"cat2":return t*Math.cos(Math.atan2(e,n));case"cos":return t*Math.cos(q(n));case"max":return Math.max(t,n);case"min":return Math.min(t,n);case"mod":return Math.sqrt(t*t+n*n+e*e);case"pin":return n<t?t:n>e?e:n;case"sat2":return t*Math.sin(Math.atan2(e,n));case"sin":return t*Math.sin(q(n));case"sqrt":return Math.sqrt(t);case"tan":return t*Math.tan(q(n));case"val":return t;default:return 0}}const b=s=>String(Math.round(s*1e3)/1e3);function A(s,a,o,c,t,n){const e=d=>Math.atan2(o*Math.sin(q(d)),c*Math.cos(q(d))),r=e(t),p=n<0?-1:1,h=Math.floor(Math.abs(n)/216e5),g=Math.abs(n)-h*216e5;let l=e(t+p*g)-r;for(;p*l<0;)l+=p*2*Math.PI;g===0&&(l=0);const m=r+l+p*h*2*Math.PI,f=s-o*Math.cos(r),i=a-c*Math.sin(r),x=Math.max(1,Math.ceil(Math.abs(m-r)/(Math.PI/2)-1e-9)),_=(m-r)/x,M=4/3*Math.tan(_/4),P=[];let v=r;for(let d=0;d<x;d++){const u=v+_,[y,k,$,S]=[Math.cos(v),Math.sin(v),Math.cos(u),Math.sin(u)];P.push(`C ${b(f+o*(y-M*k))} ${b(i+c*(k+M*y))} ${b(f+o*($+M*S))} ${b(i+c*(S-M*$))} ${b(f+o*$)} ${b(i+c*S)}`),v=u}return{d:P,x:f+o*Math.cos(m),y:i+c*Math.sin(m)}}function O(s,a,o,c){const t=z(a,o);for(const[n,e]of s.av??[])t.set(n,c[n]??T(e,t));for(const[n,e]of s.gd??[])t.set(n,T(e,t));return t}const E=(s,a)=>a.get(s)??Number(s);export function evaluate(s,a,o,c={}){const t=O(s,a,o,c),n=l=>E(l,t),e=s.paths.map(l=>{const m=l.w?a/l.w:1,f=l.h?o/l.h:1,i=l.d.split(" "),x=[];let _=0,M=0,P={x:0,y:0};for(let v=0;v<i.length;){const d=i[v++],u=()=>n(i[v++]??"0");if(d==="M"||d==="L")_=u()*m,M=u()*f,d==="M"&&(P={x:_,y:M}),x.push(`${d} ${b(_)} ${b(M)}`);else if(d==="Q"){const[y,k]=[u()*m,u()*f],[$,S]=[u()*m,u()*f];x.push(`C ${b(_+2/3*(y-_))} ${b(M+2/3*(k-M))} ${b($+2/3*(y-$))} ${b(S+2/3*(k-S))} ${b($)} ${b(S)}`),[_,M]=[$,S]}else if(d==="C"){const y=[u()*m,u()*f,u()*m,u()*f,u()*m,u()*f];x.push(`C ${y.map(b).join(" ")}`),[_,M]=[y[4]??0,y[5]??0]}else if(d==="A"){const[y,k,$,S]=[u()*m,u()*f,u(),u()],j=A(_,M,y,k,$,S);x.push(...j.d),[_,M]=[j.x,j.y]}else d==="Z"&&(x.push("Z"),[_,M]=[P.x,P.y])}return{d:x.join(" "),fill:l.fill??"norm",stroke:l.stroke!==!1}}),[r="l",p="t",h="r",g="b"]=s.text??[];return{paths:e,text:{left:n(r),top:n(p),right:n(h),bottom:n(g)}}}export function presetOutline(s,a,o,c=[]){const t=I[s];if(t)return evaluate(t,a,o,C(t,c))}function C(s,a){const o={};return(s.av??[]).forEach(([c],t)=>{const n=a[t];n!==void 0&&(o[c]=n*1e5)}),o}const Z=(s,a)=>({x:E(s.pos[0],a),y:E(s.pos[1],a)});export function presetHandles(s,a,o,c=[]){const t=I[s];if(!t?.ah)return[];const n=O(t,a,o,C(t,c));return t.ah.map((e,r)=>({index:r,...Z(e,n)}))}export function presetSites(s,a,o,c=[]){const t=I[s];if(!t?.cxn)return[];const n=O(t,a,o,C(t,c));return t.cxn.map(([e,r,p],h)=>({index:h,x:E(e,n),y:E(r,n),angle:E(p,n)/6e4}))}const H=64,N=(Math.sqrt(5)-1)/2;function B(s,a,o){if(o<=a)return a;const c=(o-a)/H;let t=0,n=1/0;for(let f=0;f<=H;f++){const i=s(a+f*c);i<n&&([t,n]=[f,i])}let e=a+Math.max(0,t-1)*c,r=a+Math.min(H,t+1)*c,p=r-N*(r-e),h=e+N*(r-e),g=s(p),l=s(h);for(let f=0;f<80&&r-e>1e-6;f++)g<l?([r,h,l]=[h,p,g],p=r-N*(r-e),g=s(p)):([e,p,g]=[p,h,l],h=e+N*(r-e),l=s(h));const m=(e+r)/2;return s(m)<=n?m:a+t*c}export function adjustedBy(s,a,o,c,t,n){const e=I[s],r=e?.ah?.[t];if(!e||!r)return[...c];const p=O(e,a,o,C(e,c)),h={};for(const[i]of e.av??[])h[i]=p.get(i)??0;const g=[r.x??r.r,r.y??r.ang].filter(i=>i!==void 0),l=i=>{const x=Z(r,O(e,a,o,i));return Math.hypot(x.x-n.x,x.y-n.y)},m=1e-9*(Math.abs(a)+Math.abs(o)+1),f=new Set;for(const[i,x,_]of g.length>1?[...g,...g]:g){const M=O(e,a,o,h),[P,v]=[E(x,M),E(_,M)].sort(($,S)=>$-S);if(P===void 0||v===void 0)continue;const d=$=>l({...h,[i]:$}),u=h[i]??0,y=Math.min(v,Math.max(P,Math.round(B(d,P,v))));u>=P&&u<=v&&d(u)<=d(y)+m||(h[i]=y,f.add(i))}return(e.av??[]).map(([i],x)=>f.has(i)?(h[i]??0)/1e5:c[x]??(h[i]??0)/1e5)}
2
+ import{PRESETS as O}from"../generated/presets.js";export const PRESET_NAMES=Object.keys(O);export function presetAdjustments(s){return(O[s]?.av??[]).map(([e,o])=>({name:e,value:Number(o.split(/\s+/u)[1]??0)}))}const T=6e4,C=s=>s/T*(Math.PI/180);function A(s,e){const o=Math.min(s,e),c=new Map([["w",s],["h",e],["l",0],["t",0],["r",s],["b",e],["hc",s/2],["vc",e/2],["ls",Math.max(s,e)],["ss",o],["cd2",108e5],["cd4",54e5],["cd8",27e5],["3cd4",162e5],["3cd8",81e5],["5cd8",135e5],["7cd8",189e5]]);for(const t of[2,3,4,5,6,8,10,12,32])c.set(`wd${String(t)}`,s/t),c.set(`hd${String(t)}`,e/t);for(const t of[2,4,6,8,16,32])c.set(`ssd${String(t)}`,o/t);return c}function Z(s,e){const[o="",...c]=s.trim().split(/\s+/u),[t=0,n=0,a=0]=c.map(r=>e.get(r)??Number(r));switch(o){case"*/":return a===0?0:t*n/a;case"+-":return t+n-a;case"+/":return a===0?0:(t+n)/a;case"?:":return t>0?n:a;case"abs":return Math.abs(t);case"at2":return Math.atan2(n,t)*180*T/Math.PI;case"cat2":return t*Math.cos(Math.atan2(a,n));case"cos":return t*Math.cos(C(n));case"max":return Math.max(t,n);case"min":return Math.min(t,n);case"mod":return Math.sqrt(t*t+n*n+a*a);case"pin":return n<t?t:n>a?a:n;case"sat2":return t*Math.sin(Math.atan2(a,n));case"sin":return t*Math.sin(C(n));case"sqrt":return Math.sqrt(t);case"tan":return t*Math.tan(C(n));case"val":return t;default:return 0}}const y=s=>String(Math.round(s*1e3)/1e3);function B(s,e,o,c,t,n,a=o,r=c){const _=d=>Math.atan2(a*Math.sin(C(d)),r*Math.cos(C(d))),u=_(t),m=n<0?-1:1,l=Math.floor(Math.abs(n)/216e5),b=Math.abs(n)-l*216e5;let h=_(t+m*b)-u;for(;m*h<0;)h+=m*2*Math.PI;b===0&&(h=0);const i=u+h+m*l*2*Math.PI,M=s-o*Math.cos(u),p=e-c*Math.sin(u),x=Math.max(1,Math.ceil(Math.abs(i-u)/(Math.PI/2)-1e-9)),S=(i-u)/x,$=4/3*Math.tan(S/4),g=[];let f=u;for(let d=0;d<x;d++){const k=f+S,[v,P,I,H]=[Math.cos(f),Math.sin(f),Math.cos(k),Math.sin(k)];g.push(`C ${y(M+o*(v-$*P))} ${y(p+c*(P+$*v))} ${y(M+o*(I+$*H))} ${y(p+c*(H-$*I))} ${y(M+o*I)} ${y(p+c*H)}`),f=k}return{d:g,x:M+o*Math.cos(i),y:p+c*Math.sin(i)}}function q(s,e,o,c){const t=A(e,o);for(const[n,a]of s.av??[])t.set(n,c[n]??Z(a,t));for(const[n,a]of s.gd??[])t.set(n,Z(a,t));return t}const E=(s,e)=>e.get(s)??Number(s);export function evaluate(s,e,o,c={}){const t=q(s,e,o,c),n=l=>E(l,t),a=s.paths.map(l=>{const b=l.w?e/l.w:1,h=l.h?o/l.h:1,i=l.d.split(" "),M=[];let p=0,x=0,S={x:0,y:0};for(let $=0;$<i.length;){const g=i[$++],f=()=>n(i[$++]??"0");if(g==="M"||g==="L")p=f()*b,x=f()*h,g==="M"&&(S={x:p,y:x}),M.push(`${g} ${y(p)} ${y(x)}`);else if(g==="Q"){const[d,k]=[f()*b,f()*h],[v,P]=[f()*b,f()*h];M.push(`C ${y(p+2/3*(d-p))} ${y(x+2/3*(k-x))} ${y(v+2/3*(d-v))} ${y(P+2/3*(k-P))} ${y(v)} ${y(P)}`),[p,x]=[v,P]}else if(g==="C"){const d=[f()*b,f()*h,f()*b,f()*h,f()*b,f()*h];M.push(`C ${d.map(y).join(" ")}`),[p,x]=[d[4]??0,d[5]??0]}else if(g==="A"){const[d,k,v,P]=[f(),f(),f(),f()],I=B(p,x,d*b,k*h,v,P,d,k);M.push(...I.d),[p,x]=[I.x,I.y]}else g==="Z"&&(M.push("Z"),[p,x]=[S.x,S.y])}return{d:M.join(" "),fill:l.fill??"norm",stroke:l.stroke!==!1}}),[r="l",_="t",u="r",m="b"]=s.text??[];return{paths:a,text:{left:n(r),top:n(_),right:n(u),bottom:n(m)}}}export function presetOutline(s,e,o,c=[]){const t=O[s];if(t)return evaluate(t,e,o,N(t,c))}function N(s,e){const o={};return(s.av??[]).forEach(([c],t)=>{const n=e[t];n!==void 0&&(o[c]=n*1e5)}),o}const z=(s,e)=>({x:E(s.pos[0],e),y:E(s.pos[1],e)});export function presetHandles(s,e,o,c=[]){const t=O[s];if(!t?.ah)return[];const n=q(t,e,o,N(t,c));return t.ah.map((a,r)=>({index:r,...z(a,n)}))}export function presetSites(s,e,o,c=[]){const t=O[s];if(!t?.cxn)return[];const n=q(t,e,o,N(t,c));return t.cxn.map(([a,r,_],u)=>({index:u,x:E(a,n),y:E(r,n),angle:E(_,n)/6e4}))}const L=64,j=(Math.sqrt(5)-1)/2;function D(s,e,o){if(o<=e)return e;const c=(o-e)/L;let t=0,n=1/0;for(let h=0;h<=L;h++){const i=s(e+h*c);i<n&&([t,n]=[h,i])}let a=e+Math.max(0,t-1)*c,r=e+Math.min(L,t+1)*c,_=r-j*(r-a),u=a+j*(r-a),m=s(_),l=s(u);for(let h=0;h<80&&r-a>1e-6;h++)m<l?([r,u,l]=[u,_,m],_=r-j*(r-a),m=s(_)):([a,_,m]=[_,u,l],u=a+j*(r-a),l=s(u));const b=(a+r)/2;return s(b)<=n?b:e+t*c}export function adjustedBy(s,e,o,c,t,n){const a=O[s],r=a?.ah?.[t];if(!a||!r)return[...c];const _=q(a,e,o,N(a,c)),u={};for(const[i]of a.av??[])u[i]=_.get(i)??0;const m=[r.x??r.r,r.y??r.ang].filter(i=>i!==void 0),l=i=>{const M=z(r,q(a,e,o,i));return Math.hypot(M.x-n.x,M.y-n.y)},b=1e-9*(Math.abs(e)+Math.abs(o)+1),h=new Set;for(const[i,M,p]of m.length>1?[...m,...m]:m){const x=q(a,e,o,u),[S,$]=[E(M,x),E(p,x)].sort((v,P)=>v-P);if(S===void 0||$===void 0)continue;const g=v=>l({...u,[i]:v}),f=u[i]??0,d=Math.min($,Math.max(S,Math.round(D(g,S,$))));f>=S&&f<=$&&g(f)<=g(d)+b||(u[i]=d,h.add(i))}return(a.av??[]).map(([i],M)=>h.has(i)?(u[i]??0)/1e5:c[M]??(u[i]??0)/1e5)}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/ooxml",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -232,6 +232,12 @@ export interface DeckTextLayout {
232
232
  scale?: number;
233
233
  /** Its first paragraph's alignment: the line it is aligned by. */
234
234
  align?: "l" | "ctr" | "r" | "just";
235
+ /** A turned shape's box, glyphs and lines measured unturned, in its own frame: what its text overflowing is judged by. */
236
+ own?: {
237
+ box: Box;
238
+ glyphs: Box | null;
239
+ lines: Box[];
240
+ };
235
241
  }
236
242
  /** A deck's shape as drawn on its slide. */
237
243
  export interface DeckShapeLayout {
@@ -270,6 +276,16 @@ export interface DeckShapeLayout {
270
276
  /** The part of them shown (its crop). */
271
277
  shown: [width: number, height: number];
272
278
  };
279
+ /** A line's two ends, where it begins and where it ends: a connector's, or a freeform's whose outline is left open. */
280
+ ends?: [DeckLineEnd, DeckLineEnd];
281
+ }
282
+ /** An end of a deck's line, in the slide's pixels. */
283
+ export interface DeckLineEnd {
284
+ at: [x: number, y: number];
285
+ /** What it has: `none`, `triangle`, `arrow`, `stealth`, `diamond`, `oval`. */
286
+ head: string;
287
+ /** The shape it is glued to, by name. */
288
+ glued?: string;
273
289
  }
274
290
  /** A deck's slide as drawn at a still: one of its steps'. */
275
291
  export interface DeckSlideLayout {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{touches as y}from"@allyhub/formats";const f=3,g=120,h=e=>e.width*e.height;function p(e){return[...e.childNodes].filter(n=>n.nodeType===Node.TEXT_NODE).map(n=>n.textContent).join("").trim()}export function locateLayers(e,n){const c=t=>t.width>0&&t.height>0&&y(n,t),s=[],a=[];for(const t of e.querySelectorAll(".ak-layer")){if(!t.checkVisibility({opacityProperty:!0,visibilityProperty:!0})||!c(t.getBoundingClientRect()))continue;const r={part:t.closest(".ak-part")?.dataset.key??"",layer:t.dataset.component??""};let o;for(const i of[t,...t.querySelectorAll("*")]){const d=i.getBoundingClientRect();!c(d)||p(i)===""&&!i.hasAttribute("data-ak")||(!o||h(d)<h(o.getBoundingClientRect()))&&(o=i)}if(!o){a.push(r);continue}const l=o.closest("[data-ak]")?.getAttribute("data-ak"),u=p(o).slice(0,g);s.push({...r,...l?{name:l}:{},...u===""?{}:{text:u}})}return[...s,...a].slice(0,f)}
2
+ import{touches as T}from"@allyhub/formats";import{LAYER_NAME as C}from"../layer.js";const A=3,E=120,m=e=>e.width*e.height;function S(e){if(e instanceof HTMLImageElement||e instanceof HTMLVideoElement||e instanceof HTMLCanvasElement||e instanceof SVGElement||d(e)!=="")return!0;const o=getComputedStyle(e);return o.backgroundColor!=="transparent"&&!/^rgba\(.*,\s*0\)$/u.test(o.backgroundColor)||o.backgroundImage!=="none"||parseFloat(o.borderTopWidth)+parseFloat(o.borderRightWidth)+parseFloat(o.borderBottomWidth)+parseFloat(o.borderLeftWidth)>0}const b=e=>e.closest("[data-ak-piece]")?.dataset.akPiece;function d(e){return[...e.childNodes].filter(o=>o.nodeType===Node.TEXT_NODE).map(o=>o.textContent).join("").trim()}export function locateLayers(e,o){const c=t=>t.width>0&&t.height>0&&T(o,t),u=[],l=[];for(const t of e.querySelectorAll(".ak-layer")){if(!t.checkVisibility({opacityProperty:!0,visibilityProperty:!0})||!c(t.getBoundingClientRect())||![t,...t.querySelectorAll("*")].filter(i=>c(i.getBoundingClientRect())).some(S))continue;const r=t.getAttribute(C)??void 0,a=b(t),p={part:t.closest(".ak-part")?.dataset.key??"",layer:t.dataset.component??"",...r===void 0||r===""?{}:{key:r},...a===void 0?{}:{piece:a}};let n;for(const i of[t,...t.querySelectorAll("*")]){const h=i.getBoundingClientRect();!c(h)||d(i)===""&&!i.hasAttribute("data-ak")||(!n||m(h)<m(n.getBoundingClientRect()))&&(n=i)}if(!n){l.push(p);continue}const g=n.closest("[data-ak]")?.getAttribute("data-ak"),y=d(n).slice(0,E);u.push({...p,...g?{name:g}:{},...y===""?{}:{text:y}})}const f=[];for(const t of e.querySelectorAll(".ak-footage")){const s=t.dataset.akFile,r=(t.querySelector("video")??t).checkVisibility({opacityProperty:!0,visibilityProperty:!0});if(s===void 0||!r||!c(t.getBoundingClientRect()))continue;const a=b(t);f.push({part:t.dataset.akPart??"",layer:"footage",file:s,...a===void 0?{}:{piece:a}})}return[...u,...f,...l].slice(0,A)}
@@ -219,9 +219,15 @@ export interface LocatedLayer {
219
219
  part: string;
220
220
  /** Its component. */
221
221
  layer: string;
222
+ /** Its key in its part, where it has one (`data-ak-layer`). */
223
+ key?: string;
222
224
  /** Its `data-ak` name, when what is under the place has one. */
223
225
  name?: string;
224
226
  text?: string;
227
+ /** The file it shows (a footage's video), project-relative. */
228
+ file?: string;
229
+ /** The module it is written in, where another item's (a video drawn inside this one), project-relative. */
230
+ piece?: string;
225
231
  }
226
232
  /** Where a player starts: a moment, or a part and how far into it (the same share of it when its length is no longer `dur`). */
227
233
  export interface PlayAt {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/piece",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{codeOf as b,fontsDigest as g,ProjectError as d}from"@allyhub/build";import{stageIdentity as y}from"@allyhub/stage";import{COMBO_ID as v,comboIdOf as u,comboKey as f,validCombo as x,comboMatches as $,pieceIs as m,versionLabel as k}from"@allyhub/piece";import{PartPool as j}from"./part-pool.js";import{CheckSession as C}from"./session.js";export{d as ProjectError};export function parseCombo(r){const e=r.trim();if(e==="default")return{};if(/^c\d+(-[A-Za-z0-9._-]+)?$/u.test(e))return{[v]:e};const t={};for(const o of e.split(",")){const i=o.indexOf("="),s=o.slice(0,i).trim(),n=o.slice(i+1).trim();if(i<=0||!s||!n)throw new d("bad-combo",`Cannot read the combo ${r}.`,"usage","Write it as name=value pairs joined with commas (lang=zh-cn,hook=b), or a combo's id (c03).");if(s==="size"||s==="format")throw new d("bad-combo",`${s} is not a dimension of a combo.`,"usage","A piece has one format; another format is a piece of its own.");t[s]=n}return t}function S(r,e){const t=new Set(r.items.filter(o=>e===void 0||m({id:o.id,path:o.entry},e)).map(o=>o.entry));return r.problems.find(o=>o.level==="error"&&o.where?.file!==void 0&&t.has(o.where.file))}export function pickTarget(r,e,t){const o=r.pieces,i=o.map(a=>a.id).join(", ")||"none",s=S(r,e);if(s!==void 0&&!o.some(a=>e===void 0||m({id:a.id,path:a.place},e)))throw new d("not-built",`${s.where?.file??"The piece"} did not build: ${s.message}`,"not-found","allyhub check lists every problem.");if(o.length===0)throw new d("no-piece","The project has no video or slides.","not-found","A video or a deck is a piece the project's list (allyhub.yaml) names.");let n;if(e===void 0){if(o.length>1)throw new d("many-pieces","The project has more than one piece: name one.","usage",`Pieces: ${i}.`);n=o[0]}else n=o.find(a=>m({id:a.id,path:a.place},e));if(!n)throw new d("no-piece",`No piece ${e??""}.`,"not-found",`Pieces: ${i}.`);const h=t??[],c=n,l=[...c.combos,...extraCombos(c,h)].find(a=>h.length===0||h.some(p=>$(a,p,u(c.matrix,a))));if(!l)throw new d("no-combo",`${c.id} has no such combo.`,"not-found",`Combos: ${c.combos.map(a=>{const p=u(c.matrix,a);return p?`${p} (${f(a)})`:f(a)}).join("; ")}.`);const w=u(c.matrix,l);return{piece:c,target:{piece:c.id,output:c.kind,combo:l,format:c.format,...w===void 0?{}:{id:w}}}}export function kindsNeeded(r){if(!r)throw new Error("A project is opened with the kinds its extensions contribute (KindTable), or with a session that has them.");return r}export class OpenedVersion{session;piece;target;version;ownSession;pool;constructor(e,t,o,i,s){this.session=e,this.piece=t,this.target=o,this.version=i,this.ownSession=s}get prepared(){return this.session.prepared}get gpu(){return this.session.gpu}get browser(){return this.session.browser}another(){return this.session.open(this.piece,this.target,"render")}async code(){const e=this.prepared,t=await g(e.root,e.files,e.fonts);return b(e,this.piece,y(t))}async partStills(e,t){return this.pool??=j.on(this.session,this.piece,this.target,this.version,t),(await this.pool).stills(e)}problems(){return this.version.problems()}console(){return this.version.console()}async close(){await this.version.close(),this.ownSession&&await this.session.close()}static async open(e){const t=e.session??await C.open({root:e.root,kinds:kindsNeeded(e.kinds),...e.gpu===void 0?{}:{gpu:e.gpu},...e.consoleLimit===void 0?{}:{consoleLimit:e.consoleLimit},...e.browser===void 0?{}:{browser:e.browser}}),o=e.session===void 0;try{const{piece:i,target:s}=pickTarget(t.prepared,e.item,e.combos),n=await t.open(i,s,e.purpose);if(!n.summary){const[h]=await n.problems();throw await n.close(),new d("load-failed",h?.message??`${k(s)} did not load.`,"failed","allyhub check lists its problems.")}return new OpenedVersion(t,i,s,n,o)}catch(i){throw o&&await t.close(),i}}}export function extraCombos(r,e){const t=r.matrix;if(!t||!e)return[];const o=new Set(r.combos.map(f)),i=new Map;for(const s of e){const n=f(s);o.has(n)||i.has(n)||x(t.space,r.dims,t.rules,s)&&i.set(n,s)}return[...i.values()]}
2
+ import{codeOf as y,fontsDigest as v,ProjectError as h}from"@allyhub/build";import{stageIdentity as $}from"@allyhub/stage";import{COMBO_ID as x,comboIdOf as w,comboKey as f,validCombo as k,comboMatches as j,pieceIs as b,versionLabel as C}from"@allyhub/piece";import{PartPool as S}from"./part-pool.js";import{CheckSession as T}from"./session.js";export{h as ProjectError};export function parseCombo(n){const e=n.trim();if(e==="default")return{};if(/^c\d+(-[A-Za-z0-9._-]+)?$/u.test(e))return{[x]:e};const t={};for(const o of e.split(",")){const r=o.indexOf("="),i=o.slice(0,r).trim(),c=o.slice(r+1).trim();if(r<=0||!i||!c)throw new h("bad-combo",`Cannot read the combo ${n}.`,"usage","Write it as name=value pairs joined with commas (lang=zh-cn,hook=b), or a combo's id (c03).");if(i==="size"||i==="format")throw new h("bad-combo",`${i} is not a dimension of a combo.`,"usage","A piece has one format; another format is a piece of its own.");t[i]=c}return t}function O(n,e){const t=new Set(n.items.filter(o=>e===void 0||b({id:o.id,path:o.entry},e)).map(o=>o.entry));return n.problems.find(o=>o.level==="error"&&o.where?.file!==void 0&&t.has(o.where.file))}export function pickTarget(n,e,t){const o=n.pieces,r=o.map(s=>s.id).join(", ")||"none",i=O(n,e);if(i!==void 0&&!o.some(s=>e===void 0||b({id:s.id,path:s.place},e)))throw new h("not-built",`${i.where?.file??"The piece"} did not build: ${i.message}`,"not-found","allyhub check lists every problem.");const c=n.problems.find(s=>s.level==="error"),m=n.items.length>o.length+n.docs.length+n.sheets.length;if(o.length===0&&m&&c){const s=c.where?.file,l=s!==void 0&&c.message.startsWith(`${s}: `)?c.message.slice(s.length+2):c.message;throw new h("not-built",`${s??"The piece"} did not build: ${l}`,"not-found","allyhub check lists every problem.")}if(o.length===0)throw new h("no-piece","The project has no video or slides.","not-found","A video or a deck is a piece the project's list (allyhub.yaml) names.");let d;if(e===void 0){if(o.length>1)throw new h("many-pieces","The project has more than one piece: name one.","usage",`Pieces: ${r}.`);d=o[0]}else d=o.find(s=>b({id:s.id,path:s.place},e));if(!d)throw new h("no-piece",`No piece ${e??""}.`,"not-found",`Pieces: ${r}.`);const u=t??[],a=d,p=[...a.combos,...extraCombos(a,u)].find(s=>u.length===0||u.some(l=>j(s,l,w(a.matrix,s))));if(!p)throw new h("no-combo",`${a.id} has no such combo.`,"not-found",`Combos: ${a.combos.map(s=>{const l=w(a.matrix,s);return l?`${l} (${f(s)})`:f(s)}).join("; ")}.`);const g=w(a.matrix,p);return{piece:a,target:{piece:a.id,output:a.kind,combo:p,format:a.format,...g===void 0?{}:{id:g}}}}export function kindsNeeded(n){if(!n)throw new Error("A project is opened with the kinds its extensions contribute (KindTable), or with a session that has them.");return n}export class OpenedVersion{session;piece;target;version;ownSession;pool;constructor(e,t,o,r,i){this.session=e,this.piece=t,this.target=o,this.version=r,this.ownSession=i}get prepared(){return this.session.prepared}get gpu(){return this.session.gpu}get browser(){return this.session.browser}another(){return this.session.open(this.piece,this.target,"render")}async code(){const e=this.prepared,t=await v(e.root,e.files,e.fonts);return y(e,this.piece,$(t))}async partStills(e,t){return this.pool??=S.on(this.session,this.piece,this.target,this.version,t),(await this.pool).stills(e)}problems(){return this.version.problems()}console(){return this.version.console()}async close(){await this.version.close(),this.ownSession&&await this.session.close()}static async open(e){const t=e.session??await T.open({root:e.root,kinds:kindsNeeded(e.kinds),...e.gpu===void 0?{}:{gpu:e.gpu},...e.consoleLimit===void 0?{}:{consoleLimit:e.consoleLimit},...e.browser===void 0?{}:{browser:e.browser}}),o=e.session===void 0;try{const{piece:r,target:i}=pickTarget(t.prepared,e.item,e.combos),c=await t.open(r,i,e.purpose);if(!c.summary){const[m]=await c.problems();throw await c.close(),new h("load-failed",m?.message??`${C(i)} did not load.`,"failed","allyhub check lists its problems.")}return new OpenedVersion(t,r,i,c,o)}catch(r){throw o&&await t.close(),r}}}export function extraCombos(n,e){const t=n.matrix;if(!t||!e)return[];const o=new Set(n.combos.map(f)),r=new Map;for(const i of e){const c=f(i);o.has(c)||r.has(c)||k(t.space,n.dims,t.rules,i)&&r.set(c,i)}return[...r.values()]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/project",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {