allyhub 0.16.0 → 0.17.1

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 (277) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/commands/inspect/index.js +1 -1
  3. package/dist/commands/inspect/uses.js +3 -0
  4. package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
  5. package/dist/node_modules/@allyhub/audio/dist/index.js +1 -1
  6. package/dist/node_modules/@allyhub/audio/dist/place.js +2 -0
  7. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  8. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  9. package/dist/node_modules/@allyhub/build/dist/content.d.ts +7 -0
  10. package/dist/node_modules/@allyhub/build/dist/imports.d.ts +17 -0
  11. package/dist/node_modules/@allyhub/build/dist/imports.js +2 -0
  12. package/dist/node_modules/@allyhub/build/dist/index.d.ts +2 -1
  13. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  14. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +19 -3
  15. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  16. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +27 -6
  17. package/dist/node_modules/@allyhub/build/dist/uses.js +1 -1
  18. package/dist/node_modules/@allyhub/build/package.json +1 -1
  19. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  20. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  21. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  22. package/dist/node_modules/@allyhub/check/package.json +1 -1
  23. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  24. package/dist/node_modules/@allyhub/components/package.json +1 -1
  25. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  26. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  27. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  28. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  29. package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
  30. package/dist/node_modules/@allyhub/doc/dist/html.js +40 -40
  31. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  32. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  33. package/dist/node_modules/@allyhub/doc/dist/parse.js +4 -4
  34. package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
  35. package/dist/node_modules/@allyhub/doc/dist/write.js +26 -26
  36. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  37. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
  38. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  39. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  40. package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
  41. package/dist/node_modules/@allyhub/export/package.json +1 -1
  42. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  43. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  44. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  45. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +15 -3
  46. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  47. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +40 -7
  48. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  49. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +4 -0
  50. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  51. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  52. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +1 -1
  53. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  54. package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
  55. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  56. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  57. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  58. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  59. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  60. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  61. package/dist/node_modules/@allyhub/linkedin-extension/package.json +3 -1
  62. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  63. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  64. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  65. package/dist/node_modules/@allyhub/media/package.json +1 -1
  66. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  67. package/dist/node_modules/@allyhub/model/package.json +1 -1
  68. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  69. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  70. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +15 -0
  71. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +1 -0
  72. package/dist/node_modules/@allyhub/piece/dist/page/index.js +1 -1
  73. package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +9 -0
  74. package/dist/node_modules/@allyhub/piece/dist/page/runtimes.js +2 -0
  75. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +51 -10
  76. package/dist/node_modules/@allyhub/piece/dist/source.js +1 -1
  77. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  78. package/dist/node_modules/@allyhub/project/dist/digest.js +1 -1
  79. package/dist/node_modules/@allyhub/project/dist/part-keys.js +1 -1
  80. package/dist/node_modules/@allyhub/project/package.json +1 -1
  81. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +0 -6
  82. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  83. package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +39 -0
  84. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  85. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +3 -0
  86. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  87. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +30 -0
  88. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  89. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +6 -0
  90. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  91. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  92. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  93. package/dist/node_modules/@allyhub/render/package.json +1 -1
  94. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  95. package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
  96. package/dist/node_modules/@allyhub/runtime/dist/film.js +1 -1
  97. package/dist/node_modules/@allyhub/runtime/dist/piece.js +2 -2
  98. package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
  99. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  100. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  101. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  102. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  103. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  104. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  105. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  106. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  107. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  108. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/dynamic.js +1 -1
  109. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  110. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/logical.js +1 -1
  111. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  112. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  113. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  114. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  115. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  116. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  117. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  118. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  119. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
  120. package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
  121. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  122. package/dist/node_modules/@allyhub/slides-core/dist/api.js +1 -1
  123. package/dist/node_modules/@allyhub/slides-core/dist/components.js +1 -1
  124. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  125. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  126. package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -1
  127. package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +1 -1
  128. package/dist/node_modules/@allyhub/slides-extension/dist/evaluate.js +2 -2
  129. package/dist/node_modules/@allyhub/slides-extension/dist/export.js +1 -1
  130. package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
  131. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  132. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  133. package/dist/node_modules/@allyhub/slides-runtime/dist/component.js +1 -1
  134. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  135. package/dist/node_modules/@allyhub/slides-runtime/dist/item.js +2 -0
  136. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
  137. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  138. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  139. package/dist/node_modules/@allyhub/stage-page/dist/install.js +1 -1
  140. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  141. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +19 -19
  142. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  143. package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
  144. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  145. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  146. package/dist/node_modules/@allyhub/video-extension/dist/build.js +1 -1
  147. package/dist/node_modules/@allyhub/video-extension/package.json +1 -1
  148. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  149. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  150. package/dist/node_modules/@allyhub/website/package.json +1 -1
  151. package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
  152. package/dist/node_modules/@allyhub/x-extension/package.json +3 -1
  153. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  154. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  155. package/dist/package.json +13 -13
  156. package/dist/works.js +1 -1
  157. package/editor-web/assets/{abnfDiagram-WEYOIA3C-B1AxOB-Y.js → abnfDiagram-WEYOIA3C-CHNpVSPv.js} +1 -1
  158. package/editor-web/assets/{architecture-WOLXFQ4H-C-7xKJ2Z.js → architecture-WOLXFQ4H-gPsJqQwV.js} +1 -1
  159. package/editor-web/assets/{architectureDiagram-ZHVYKT53-CyWb8_iD.js → architectureDiagram-ZHVYKT53-CEIDcC6r.js} +1 -1
  160. package/editor-web/assets/{article-qt4W_BKH.js → article-BHTjq0_Y.js} +1 -1
  161. package/editor-web/assets/{article-CTKW7Eo0.js → article-DfELjJ2o.js} +1 -1
  162. package/editor-web/assets/{blockDiagram-RJAE7QA3-uii4-7Ix.js → blockDiagram-RJAE7QA3-CUzEGVet.js} +1 -1
  163. package/editor-web/assets/{c4Diagram-XDPPPE54-BtL5Z-wF.js → c4Diagram-XDPPPE54-CB94NR9s.js} +1 -1
  164. package/editor-web/assets/calc-worker-BdHh5LXM.js +45 -0
  165. package/editor-web/assets/channel-DCDCx5Es.js +1 -0
  166. package/editor-web/assets/{chart-file-HE-uXGmJ.js → chart-file-CfbWK9l1.js} +1 -1
  167. package/editor-web/assets/{chunk-2E7WHVMD-BJjuZYBs.js → chunk-2E7WHVMD-DFYo_Boi.js} +1 -1
  168. package/editor-web/assets/{chunk-4EMNKR2T-nzPdUHaI.js → chunk-4EMNKR2T-CLLjmweX.js} +1 -1
  169. package/editor-web/assets/{chunk-55XCU76K-CH52E3Nl.js → chunk-55XCU76K-CkwQ_3m1.js} +1 -1
  170. package/editor-web/assets/{chunk-7S6XSTFO-Ba4LNKCV.js → chunk-7S6XSTFO-V-AvHpAB.js} +1 -1
  171. package/editor-web/assets/{chunk-AQDTSKZB-Co9SmoqD.js → chunk-AQDTSKZB-PjHyYpb8.js} +1 -1
  172. package/editor-web/assets/{chunk-DSNLSHJZ-BHRvxRGi.js → chunk-DSNLSHJZ-QaczBS3J.js} +1 -1
  173. package/editor-web/assets/{chunk-HAGFOTED-F5Wd8ETY.js → chunk-HAGFOTED-aLaQB5Xu.js} +1 -1
  174. package/editor-web/assets/{chunk-HNE4Q36P-C_E0__p9.js → chunk-HNE4Q36P-De3ftDQR.js} +1 -1
  175. package/editor-web/assets/{chunk-NQOKRVIF-BvrtbbWm.js → chunk-NQOKRVIF-CrhVQyvP.js} +1 -1
  176. package/editor-web/assets/{chunk-UHW7PFBP-D0HTPXRF.js → chunk-UHW7PFBP-BFmZ5ZLn.js} +1 -1
  177. package/editor-web/assets/{chunk-VQ5W62QI-B9hF2YMk.js → chunk-VQ5W62QI-CzppUHLA.js} +1 -1
  178. package/editor-web/assets/{chunk-WQQL4CDK-D7N3o-Ub.js → chunk-WQQL4CDK-BrAU7V6v.js} +1 -1
  179. package/editor-web/assets/{chunk-YZO67HFG-XaLSrI_W.js → chunk-YZO67HFG-BSiF71qj.js} +1 -1
  180. package/editor-web/assets/{chunk-ZAUX2LTX-sXc6qmw-.js → chunk-ZAUX2LTX-BJc4r5b1.js} +1 -1
  181. package/editor-web/assets/{chunk-ZCHMQSOR-B0X6sNMX.js → chunk-ZCHMQSOR-CkGTuehB.js} +1 -1
  182. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-CjXVvOUp.js → classDiagram-v2-4MYWR3UA-Byxc7J88.js} +1 -1
  183. package/editor-web/assets/{cynefin-EF2NZ3EQ-PQ9VyM9v.js → cynefin-EF2NZ3EQ-BSxkVbdf.js} +1 -1
  184. package/editor-web/assets/{cynefinDiagram-WF24UDRP-KXuXFAhX.js → cynefinDiagram-WF24UDRP-IkCgARNs.js} +1 -1
  185. package/editor-web/assets/{dagre-NK4GIZVX-CBTyfYD5.js → dagre-NK4GIZVX-9PgeH6nY.js} +1 -1
  186. package/editor-web/assets/deck-tTzKONci.js +1 -0
  187. package/editor-web/assets/{diagram-CBK3MWTC-CsVO64Bf.js → diagram-CBK3MWTC-DRzeg3Ds.js} +1 -1
  188. package/editor-web/assets/{diagram-I5XIIV2D-fzbUm1St.js → diagram-I5XIIV2D-B_zeKMN6.js} +1 -1
  189. package/editor-web/assets/{diagram-ODIL2UCW-up6ihgN5.js → diagram-ODIL2UCW-FFm0O8SN.js} +1 -1
  190. package/editor-web/assets/{diagram-PFBEJUXE-T6hVBoCD.js → diagram-PFBEJUXE-DrtCT8OA.js} +1 -1
  191. package/editor-web/assets/{diagram-RJA3I4VV-BDntFeuR.js → diagram-RJA3I4VV-DtxJ3V0q.js} +1 -1
  192. package/editor-web/assets/{diagram-TYUNFSNR-Dv1-mqbf.js → diagram-TYUNFSNR-DmxF_8H_.js} +1 -1
  193. package/editor-web/assets/dist-BEpzsYn_.js +6 -0
  194. package/editor-web/assets/dist-BUD4ywMB.js +18 -0
  195. package/editor-web/assets/{dist-aTV6Rwon.js → dist-C21CkR7Z.js} +132 -131
  196. package/editor-web/assets/{dist-DhMagA-B.js → dist-C56mWAec.js} +1 -1
  197. package/editor-web/assets/{dist-B-lYrbqX.js → dist-CAb3W9_P.js} +1 -1
  198. package/editor-web/assets/{dist-Bfs4cZI_.js → dist-CEknsRDd.js} +1 -1
  199. package/editor-web/assets/{dist-C66KgS8g.js → dist-CbZAznNW.js} +2 -2
  200. package/editor-web/assets/{dist-Ba5Kv4A-.js → dist-DDzjbKIg.js} +1 -1
  201. package/editor-web/assets/{dist-CWXGbcPB.js → dist-DaEbElXI.js} +1 -1
  202. package/editor-web/assets/{dist-_ooK0TT9.js → dist-Dr3o4vee.js} +1 -1
  203. package/editor-web/assets/{dist-mrWPE-br.js → dist-JLyDtl9X.js} +1 -1
  204. package/editor-web/assets/{dist-BW8IR8bR.js → dist-PBbWAsrV.js} +3 -3
  205. package/editor-web/assets/{dist-CBeeIAlh.js → dist-ZZlQa66J.js} +1 -1
  206. package/editor-web/assets/{dist-CHKVUdcE.js → dist-bQKpw3Zz.js} +5 -5
  207. package/editor-web/assets/dist-d4dayaWE.js +17 -0
  208. package/editor-web/assets/{docx-draw-CeiLkccT.js → docx-draw-9Q_fArBC.js} +1 -1
  209. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-CZzljBYN.js → ebnfDiagram-V4P3TTPT-DSX1Aoty.js} +1 -1
  210. package/editor-web/assets/{elk-QONTBCTQ-6vNb82av.js → elk-QONTBCTQ-C7gy9q56.js} +1 -1
  211. package/editor-web/assets/{erDiagram-KYQIGQAA-B8smxURG.js → erDiagram-KYQIGQAA-CKx_HoY4.js} +1 -1
  212. package/editor-web/assets/esm-BZb5QMQf.js +21 -0
  213. package/editor-web/assets/{eventmodeling-K75KTNOO-CngIhoUF.js → eventmodeling-K75KTNOO-DL4HvSrd.js} +1 -1
  214. package/editor-web/assets/flowDiagram-IUGLLWBU-BUnRtJ8q.js +1 -0
  215. package/editor-web/assets/{ganttDiagram-R7GPNTJY-BtzqHUiP.js → ganttDiagram-R7GPNTJY-N-AP4slN.js} +1 -1
  216. package/editor-web/assets/{gitGraph-VSP46ZUC-DOOpoQDh.js → gitGraph-VSP46ZUC-BKRGJKWm.js} +1 -1
  217. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-Cu4T8UUo.js → gitGraphDiagram-PDYL7XHY-ClwL7w2_.js} +1 -1
  218. package/editor-web/assets/index-BedbINE5.css +2 -0
  219. package/editor-web/assets/index-DG2nHq4D.js +28 -0
  220. package/editor-web/assets/{info-OHQRW6UA-CiNozx0c.js → info-OHQRW6UA-DpcY8t23.js} +1 -1
  221. package/editor-web/assets/{infoDiagram-MVDRKAX5-A3mxzTmc.js → infoDiagram-MVDRKAX5-ChtmtWni.js} +1 -1
  222. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-CIbVgY0Z.js → ishikawaDiagram-HPEHV2GE-BZNTuG_F.js} +1 -1
  223. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BwPXFmyS.js → journeyDiagram-BOSHW7O7-C3uVmZbL.js} +1 -1
  224. package/editor-web/assets/{kanban-definition-FNSA4HC5-biRlEeb1.js → kanban-definition-FNSA4HC5-puEhftGG.js} +1 -1
  225. package/editor-web/assets/{mermaid-parser.core-ikwPmNne.js → mermaid-parser.core-Bw8re-WE.js} +3 -3
  226. package/editor-web/assets/{mermaid.core-B4GR7QVa.js → mermaid.core-Cc2GIqBr.js} +4 -4
  227. package/editor-web/assets/{mindmap-definition-6OY57UG3-BN8aiUmO.js → mindmap-definition-6OY57UG3-C6MUl_S_.js} +1 -1
  228. package/editor-web/assets/{packet-JDAUHWVQ-DWesZv6p.js → packet-JDAUHWVQ-C75RnvC5.js} +1 -1
  229. package/editor-web/assets/{pegDiagram-ECIUJNBX-Bh3QEAL_.js → pegDiagram-ECIUJNBX-ChjmsdV4.js} +1 -1
  230. package/editor-web/assets/{pie-XZMESJXO-DT1ANL51.js → pie-XZMESJXO-BaKxJQpj.js} +1 -1
  231. package/editor-web/assets/{pieDiagram-GNMPY74T-xXxgiv6O.js → pieDiagram-GNMPY74T-CT2ez8pr.js} +1 -1
  232. package/editor-web/assets/{props-form-BwZY8ZWd.js → props-form-D5oKHfpk.js} +1 -1
  233. package/editor-web/assets/{quadrantDiagram-D57K4MC3-BGzRd8iZ.js → quadrantDiagram-D57K4MC3-BJItlTfk.js} +1 -1
  234. package/editor-web/assets/{radar-ABXABTNO-C-rmMB0D.js → radar-ABXABTNO-DnLzBlTo.js} +1 -1
  235. package/editor-web/assets/{railroad-I3PHUGI6-CvLOq2i8.js → railroad-I3PHUGI6-D5hj6Yv3.js} +1 -1
  236. package/editor-web/assets/{railroad-abnf-LNEFI6M7-DMsb025s.js → railroad-abnf-LNEFI6M7-DUZlZoPu.js} +1 -1
  237. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-5bvVcIvh.js → railroad-ebnf-DWYD2UWJ-CDyyDC6d.js} +1 -1
  238. package/editor-web/assets/{railroad-peg-JR7BVNR7-LKZ9-9ja.js → railroad-peg-JR7BVNR7-CC3ImNnT.js} +1 -1
  239. package/editor-web/assets/{railroadDiagram-Y72NRBL7-DVBhzkmC.js → railroadDiagram-Y72NRBL7-Bjw-8Se5.js} +1 -1
  240. package/editor-web/assets/{requirementDiagram-EQYSW5RA-B5RyzWna.js → requirementDiagram-EQYSW5RA-CDFnuEIO.js} +1 -1
  241. package/editor-web/assets/{sankeyDiagram-SY24JHO5-BvOJG-gB.js → sankeyDiagram-SY24JHO5-CQPVLY1w.js} +1 -1
  242. package/editor-web/assets/{schemas-BmdNnDyt.js → schemas-moE_A7Nj.js} +1 -1
  243. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-BI7-Daqy.js → sequenceDiagram-BLEHNHQU-BQzuLmBX.js} +1 -1
  244. package/editor-web/assets/{session-D8E3nUwU.js → session-s1I85rox.js} +1 -1
  245. package/editor-web/assets/{slides-bj0WJT_G.js → slides-oQ_C0SVJ.js} +1 -1
  246. package/editor-web/assets/snapshots-BPJKywuN.js +1 -0
  247. package/editor-web/assets/{split-BrF9ECYb.js → split-7CVjIkSU.js} +1 -1
  248. package/editor-web/assets/square-arrow-out-up-right-DF5dvsSp.js +1 -0
  249. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-C01p8WHX.js → stateDiagram-v2-A6IESKWZ-DOuageUf.js} +1 -1
  250. package/editor-web/assets/{swimlanes-B3ENRKFQ-B00P2SqG.js → swimlanes-B3ENRKFQ-CXKkok7X.js} +1 -1
  251. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-C3Car2M0.js +8 -0
  252. package/editor-web/assets/{tabs-CloHB5Z4.js → tabs-CiF1N-pL.js} +1 -1
  253. package/editor-web/assets/{timeline-definition-JXYKGLGB-BIBoOYJY.js → timeline-definition-JXYKGLGB-DgAjAeZp.js} +1 -1
  254. package/editor-web/assets/{treeView-D4JQ5SDB-CL6DL8V0.js → treeView-D4JQ5SDB-C0Xvnhck.js} +1 -1
  255. package/editor-web/assets/{treemap-SAJKECNS-CPLGr0WY.js → treemap-SAJKECNS-aXfKAeSX.js} +1 -1
  256. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-L03lK2bO.js → usecaseDiagram-WPOLBNNX-CvUlBa-L.js} +1 -1
  257. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-B5tKKP_-.js → vennDiagram-Q3Y3IDCW-qMJ1iCxs.js} +1 -1
  258. package/editor-web/assets/{video-BWUznyLR.js → video-DQrjo1TI.js} +1 -1
  259. package/editor-web/assets/{wardley-7MLQ67FV-vsBpXT56.js → wardley-7MLQ67FV-DEdnH0by.js} +1 -1
  260. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-CMCnVUgh.js → wardleyDiagram-IVAIDKWA-Bt-B2hQ5.js} +1 -1
  261. package/editor-web/assets/workbook-FSSUiIp9.js +45 -0
  262. package/editor-web/assets/{xychartDiagram-4URNHDU4-C9XkBiEO.js → xychartDiagram-4URNHDU4-DV4bSzTb.js} +1 -1
  263. package/editor-web/index.html +3 -3
  264. package/package.json +2 -2
  265. package/editor-web/assets/calc-worker-jImBXoeb.js +0 -45
  266. package/editor-web/assets/channel-dEO-yacZ.js +0 -1
  267. package/editor-web/assets/deck-C-p17098.js +0 -1
  268. package/editor-web/assets/dist-B94TkgAP.js +0 -18
  269. package/editor-web/assets/dist-DxcrMrCR.js +0 -6
  270. package/editor-web/assets/dist-DzjSp2i2.js +0 -17
  271. package/editor-web/assets/esm-CNi9O1ya.js +0 -21
  272. package/editor-web/assets/flowDiagram-IUGLLWBU-CL0AVU4Y.js +0 -1
  273. package/editor-web/assets/index-BCjGdcPh.js +0 -28
  274. package/editor-web/assets/index-D9ng69En.css +0 -2
  275. package/editor-web/assets/snapshots-CuflsO8Q.js +0 -1
  276. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-ChmNuO4G.js +0 -8
  277. package/editor-web/assets/workbook-C1QR6Cts.js +0 -45
@@ -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 _}from"./script.js";const h=o.string().regex(_,"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","fly-in","float-in","split","wipe","zoom","disappear","fade-out","fly-out","float-out","split-out","wipe-out","zoom-out","pulse","grow-shrink","spin","transparency","path"],ANIMATE_TEXT=["word","letter"],ANIMATION_REPEATS=["until-next-click","until-end-of-slide"],ANIMATION_STARTS=["on-click","with-previous","after-previous"],ANIMATION_DIRECTIONS=["from-bottom","from-top","from-left","from-right","from-top-right","from-bottom-right","from-top-left","from-bottom-left","vertical-out","vertical-in","horizontal-out","horizontal-in","in","out","rotate","up","down","clockwise","counterclockwise","both","horizontal","vertical"],LINE_DASHES=["solid","sysDot","sysDash","dash","dashDot","lgDash","lgDashDot","lgDashDotDot","dot","sysDashDot","sysDashDotDot"],LINE_CAPS=["flat","rnd","sq"],LINE_JOINS=["round","bevel","miter"],LINE_COMPOUNDS=["sng","dbl","thickThin","thinThick","tri"],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()}),MAPPED_COLORS=["tx1","bg1","tx2","bg2"],COLOR_NAMES=[...THEME_COLORS,...MAPPED_COLORS],COLOR_TRANSFORMS=["tint","shade","lumMod","lumOff","lum","satMod","satOff","sat","hueMod","hueOff","hue","alpha","alphaMod","alphaOff"];const C=`(?:${COLOR_NAMES.join("|")})`,k=`(?:${COLOR_TRANSFORMS.join("|")}) -?\\d+(?:\\.\\d+)?(?:%|°)`,A=new RegExp(`^(${C}) (lighter|darker) (100(?:\\.0{1,3})?|[1-9]?\\d(?:\\.\\d{1,3})?)%$`,"u"),v=new RegExp(`^(${C}|#[0-9A-Fa-f]{6})((?: ${k})+)$`,"u"),O=/^#[0-9A-Fa-f]{6}$/u,g=t=>COLOR_NAMES.includes(t),E=t=>COLOR_TRANSFORMS.includes(t),y=new Set(["hue","hueOff"]);export function colorOfFile(t){if(g(t))return t;if(O.test(t))return{rgb:t.toUpperCase()};const e=v.exec(t);if(e){const[,l="",p=""]=e,m=[];for(const w of p.matchAll(/ (\w+) (-?[\d.]+)(%|°)/gu)){const[,u="",D="",x]=w;if(!E(u)||x==="°"!==y.has(u))return;const S=Number(D);m.push({name:u,value:x==="%"?Math.round(S*1e3)/1e5:S})}return g(l)?{theme_color:l,transforms:m}:{rgb:l.toUpperCase(),transforms:m}}const r=A.exec(t),[,n="",i,s=""]=r??[],a=Math.round(Number(s)*1e3);if(!(!r||!g(n)||a<=0||a>1e5))return{theme_color:n,brightness:(i==="lighter"?a:-a)/1e5}}const P=t=>y.has(t.name)?`${t.name} ${String(Math.round(t.value*1e3)/1e3)}°`:`${t.name} ${String(Math.round(t.value*1e5)/1e3)}%`;export function colorFile(t){if(typeof t=="string")return t;if("rgb"in t)return t.transforms&&t.transforms.length>0?`${t.rgb} ${t.transforms.map(P).join(" ")}`:t.rgb;if("transforms"in t)return t.transforms.length===0?t.theme_color:`${t.theme_color} ${t.transforms.map(P).join(" ")}`;const e=Math.round(Math.abs(t.brightness)*1e5)/1e3;return e===0?t.theme_color:`${t.theme_color} ${t.brightness>0?"lighter":"darker"} ${String(e)}%`}const d=`A colour is one of the theme's (${THEME_COLORS.join(", ")}) or the colour map's (${MAPPED_COLORS.join(", ")}), one of them lighter or darker by a share over 0 up to 100% ("accent1 lighter 40%", "dk1 darker 25%"), #RRGGBB, or one of them with DrawingML's transforms in order ("accent1 lumMod 75% lumOff 25%", "#4472C4 alpha 50%", "accent2 hueOff 30°": ${COLOR_TRANSFORMS.join(", ")}).`;export const ColorFileSchema=o.union([o.enum(COLOR_NAMES),o.string().regex(A,d),o.string().regex(O,d),o.string().regex(v,d)]).refine(t=>colorOfFile(t)!==void 0,d),NUMBERINGS=["alphaLcParenBoth","alphaUcParenBoth","alphaLcParenR","alphaUcParenR","alphaLcPeriod","alphaUcPeriod","arabicParenBoth","arabicParenR","arabicPeriod","arabicPlain","romanLcParenBoth","romanUcParenBoth","romanLcParenR","romanUcParenR","romanLcPeriod","romanUcPeriod","circleNumDbPlain","circleNumWdBlackPlain","circleNumWdWhitePlain","arabicDbPeriod","arabicDbPlain","ea1ChsPeriod","ea1ChsPlain","ea1ChtPeriod","ea1ChtPlain","ea1JpnChsDbPeriod","ea1JpnKorPlain","ea1JpnKorPeriod","arabic1Minus","arabic2Minus","hebrew2Minus","thaiAlphaPeriod","thaiAlphaParenR","thaiAlphaParenBoth","thaiNumPeriod","thaiNumParenR","thaiNumParenBoth","hindiAlphaPeriod","hindiNumPeriod","hindiNumParenR","hindiAlpha1Period"],UNDERLINES=["sng","dbl","heavy","dotted","dottedHeavy","dash","dashHeavy","dashLong","dashLongHeavy","dotDash","dotDashHeavy","dotDotDash","dotDotDashHeavy","wavy","wavyHeavy","wavyDbl","words"],STRIKES=["sngStrike","dblStrike"],CAPS=["all","small","none"],TEXT_ORIENTATIONS=["horz","vert","vert270","eaVert","wordArtVert","wordArtVertRtl","mongolianVert"],TEXT_ANCHORS=["t","ctr","b"],ParagraphSpaceSchema=o.union([o.number().min(0).max(1584),o.object({lines:o.number().min(0).max(100)})]),TextStyleSchema=o.strictObject({size:o.number().positive().max(4e3).optional(),bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.union([o.boolean(),o.enum(UNDERLINES)]).optional(),strike:o.union([o.boolean(),o.enum(STRIKES)]).optional(),caps:o.enum(CAPS).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:ParagraphSpaceSchema.optional(),space_after:ParagraphSpaceSchema.optional(),anchor:o.enum(TEXT_ANCHORS).optional(),orientation:o.enum(TEXT_ORIENTATIONS).optional(),bullet:o.union([o.literal(!1),o.string().min(1).max(2)]).optional(),numbered:o.enum(NUMBERINGS).optional(),bullet_color:ColorFileSchema.optional(),bullet_size:o.number().min(.25).max(4).optional(),start_at:o.int().min(1).max(32767).optional()});const T=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"}),b=o.lazy(()=>o.union([o.string(),o.number(),o.boolean(),o.null(),o.array(b),o.record(o.string(),b)]));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"],CHART_COMBINED_TYPES=["column-clustered","column-stacked","column-stacked-100","line","line-markers","area","area-stacked","area-stacked-100"];const f=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(),type:o.enum(CHART_COMBINED_TYPES).optional(),secondary:o.boolean().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:f.optional(),category_axis:f.optional(),secondary_axis:f.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 GRADIENT_PATHS=["circle","rect","shape"],GradientSchema=o.strictObject({angle:o.number().min(0).max(360).optional(),path:o.enum(GRADIENT_PATHS).optional(),focus:o.strictObject({left:o.number().optional(),top:o.number().optional(),right:o.number().optional(),bottom:o.number().optional()}).optional(),stops:o.array(o.strictObject({at:c,color:ColorFileSchema,transparency:c.optional()})).min(2).max(10)}),PATTERNS=["pct5","pct10","pct20","pct25","pct30","pct40","pct50","pct60","pct70","pct75","pct80","pct90","horz","vert","ltHorz","ltVert","dkHorz","dkVert","narHorz","narVert","dashHorz","dashVert","cross","dnDiag","upDiag","ltDnDiag","ltUpDiag","dkDnDiag","dkUpDiag","wdDnDiag","wdUpDiag","dashDnDiag","dashUpDiag","diagCross","smCheck","lgCheck","smGrid","lgGrid","dotGrid","smConfetti","lgConfetti","horzBrick","diagBrick","solidDmnd","openDmnd","dotDmnd","plaid","sphere","weave","divot","shingle","wave","trellis","zigZag"],PatternSchema=o.strictObject({preset:o.enum(PATTERNS),fg:ColorFileSchema.optional(),bg:ColorFileSchema.optional()}),TILE_ALIGNMENTS=["tl","t","tr","l","ctr","r","bl","b","br"],PictureFillSchema=o.strictObject({path:o.string().min(1),tile:o.strictObject({scale_x:o.number().positive().max(100).optional(),scale_y:o.number().positive().max(100).optional(),x:o.number().optional(),y:o.number().optional(),align:o.enum(TILE_ALIGNMENTS).optional()}).optional(),transparency:c.optional()}),BackgroundSchema=o.strictObject({fill:ColorFileSchema.optional(),gradient:GradientSchema.optional(),picture:o.string().min(1).optional()}).refine(t=>[t.fill,t.gradient,t.picture].filter(e=>e!==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()}),InnerShadowSchema=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()}),GlowSchema=o.strictObject({color:ColorFileSchema.optional(),size:o.number().min(0).max(150).optional(),transparency:c.optional()}),ReflectionSchema=o.strictObject({transparency:c.optional(),size:c.optional(),distance:o.number().min(0).max(100).optional(),blur:o.number().min(0).max(100).optional()});const R=o.union([o.strictObject({shape:o.string().min(1),site:o.int().min(0)}),o.literal("none")]);export const MergedCellsSchema=o.object({row:o.int().min(0),column:o.int().min(0),rows:o.int().min(1).optional(),columns:o.int().min(1).optional()});function N(t,e,r,n){const i=t.rows??1,s=t.columns??1;if(i*s<2)return"A merge takes two cells or more.";if(t.row+i>e||t.column+s>r)return`A merge from row ${String(t.row)}, column ${String(t.column)} goes past the table's ${String(e)} rows and ${String(r)} columns.`;for(let a=t.row;a<t.row+i;a++)for(let l=t.column;l<t.column+s;l++){const p=`${String(a)},${String(l)}`;if(n.has(p))return`Two merges take the cell at row ${String(a)}, column ${String(l)}.`;n.add(p)}}export const MEDIA_STARTS=["auto","on-click"],PlaybackSchema=o.strictObject({start:o.enum(MEDIA_STARTS).optional(),trim:o.strictObject({start:o.number().min(0).optional(),end:o.number().positive().optional()}).refine(t=>t.start===void 0||t.end===void 0||t.end>t.start,{message:"A trim ends after it starts."}).optional(),loop:o.boolean().optional(),volume:o.number().min(0).max(1).optional(),fullscreen:o.boolean().optional(),hide:o.boolean().optional()}),ShapeSchema=o.strictObject({frame:FrameSchema.optional(),rotation:o.number().min(0).lt(360).optional(),flip_h:o.literal(!0).optional(),flip_v:o.literal(!0).optional(),connect:o.strictObject({begin:R.optional(),end:R.optional()}).optional(),z:o.int().optional(),fill:o.union([ColorFileSchema,o.literal("none")]).optional(),fill_transparency:c.optional(),gradient:GradientSchema.optional(),pattern:PatternSchema.optional(),picture_fill:PictureFillSchema.optional(),shadow:ShadowSchema.optional(),inner_shadow:InnerShadowSchema.optional(),glow:GlowSchema.optional(),soft_edges:o.number().positive().max(100).optional(),reflection:ReflectionSchema.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_cap:o.enum(LINE_CAPS).optional(),line_join:o.enum(LINE_JOINS).optional(),line_compound:o.enum(LINE_COMPOUNDS).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:T.optional(),movie:o.string().min(1).optional(),audio:o.string().min(1).optional(),poster:o.number().min(0).optional(),playback:PlaybackSchema.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),merged:o.array(MergedCellsSchema).optional(),style:o.string().min(1).optional(),first_row:o.boolean().optional(),last_row:o.boolean().optional(),first_col:o.boolean().optional(),last_col:o.boolean().optional(),horz_banding:o.boolean().optional(),vert_banding:o.boolean().optional()}).superRefine((t,e)=>{const r=new Set;(t.merged??[]).forEach((n,i)=>{const s=N(n,t.rows.length,t.columns.length,r);s!==void 0&&e.addIssue({code:"custom",path:["merged",i],message:s})})}).optional(),chart:ChartSchema.optional(),link:o.string().trim().min(1).optional(),group:o.string().regex(/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/u,"A group is a name of letters, digits, _ and -; a group in a group is outer/inner.").optional(),locked:o.literal(!0).optional(),component:o.union([h,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(),b).optional(),dur:o.number().positive().optional()}),groupLevels=t=>t.split("/").map((e,r,n)=>n.slice(0,r+1).join("/")),inGroup=(t,e)=>t!==void 0&&(t===e||t.startsWith(`${e}/`)),SHOW_JUMPS=["firstslide","lastslide","nextslide","previousslide","endshow"],showJumpLink=t=>`ppaction://hlinkshowjump?jump=${t}`;export function showJumpOf(t){const e=/^ppaction:\/\/hlinkshowjump\?jump=([a-z]+)$/u.exec(t);return SHOW_JUMPS.find(r=>r===e?.[1])}export const slideLinkOf=t=>t.startsWith("#")&&t.length>1?t.slice(1):void 0,SHAPE_KINDS=["textbox","picture","movie","audio","geometry","path","table","chart","component"],SLIDE_TRANSITIONS=["fade","push","wipe","split","reveal","cut","cover","uncover","zoom","morph"],TransitionSchema=o.strictObject({type:o.enum(SLIDE_TRANSITIONS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),through_black:o.literal(!0).optional(),duration:o.number().min(0).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(),amount:o.number().positive().max(36e3).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(),animate_text:o.enum(ANIMATE_TEXT).optional(),text_delay:o.number().min(0).max(100).optional(),repeat:o.union([o.number().min(1).max(1e4),o.enum(ANIMATION_REPEATS)]).optional(),rewind:o.literal(!0).optional()}),SlideSchema=o.strictObject({id:h,layout:o.string().min(1).optional(),generate:h.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(),section:o.string().trim().min(1).max(255).optional()}),SlidesFileSchema=o.strictObject({slides:o.array(SlideSchema).default([])}).superRefine((t,e)=>{const r=new Set;t.slides.forEach((n,i)=>{r.has(n.id)&&e.addIssue({code:"custom",path:["slides",i,"id"],message:`Two slides are "${n.id}".`}),r.add(n.id),(n.layout===void 0?0:1)+(n.generate===void 0?0:1)!==1&&e.addIssue({code:"custom",path:["slides",i],message:`Slide ${n.id} has a layout or a generator: one of them.`}),n.hidden!==void 0&&n.generate===void 0&&n.hidden!==!0&&e.addIssue({code:"custom",path:["slides",i,"hidden"],message:`Slide ${n.id} is hidden (true); a list of ids is a generated block's.`});for(const[a,l]of Object.entries(n.shapes??{})){const p=SHAPE_KINDS.filter(u=>l[u]!==void 0);p.length>1&&e.addIssue({code:"custom",path:["slides",i,"shapes",a],message:`Shape ${a} is one kind of shape, not ${p.join(" and ")}.`});const m=a.includes("/")?a.split("/"):[a];(!(m.length<=2&&m.every(u=>_.test(u)))||m.length===2&&n.generate===void 0)&&e.addIssue({code:"custom",path:["slides",i,"shapes",a],message:"A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block."})}})});
2
+ import{z as o}from"zod";import{SCRIPT_NAME as _}from"./script.js";const h=o.string().regex(_,"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","fly-in","float-in","split","wipe","zoom","disappear","fade-out","fly-out","float-out","split-out","wipe-out","zoom-out","pulse","grow-shrink","spin","transparency","path"],ANIMATE_TEXT=["word","letter"],ANIMATION_REPEATS=["until-next-click","until-end-of-slide"],ANIMATION_STARTS=["on-click","with-previous","after-previous"],ANIMATION_DIRECTIONS=["from-bottom","from-top","from-left","from-right","from-top-right","from-bottom-right","from-top-left","from-bottom-left","vertical-out","vertical-in","horizontal-out","horizontal-in","in","out","rotate","up","down","clockwise","counterclockwise","both","horizontal","vertical"],LINE_DASHES=["solid","sysDot","sysDash","dash","dashDot","lgDash","lgDashDot","lgDashDotDot","dot","sysDashDot","sysDashDotDot"],LINE_CAPS=["flat","rnd","sq"],LINE_JOINS=["round","bevel","miter"],LINE_COMPOUNDS=["sng","dbl","thickThin","thinThick","tri"],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()}),MAPPED_COLORS=["tx1","bg1","tx2","bg2"],COLOR_NAMES=[...THEME_COLORS,...MAPPED_COLORS],COLOR_TRANSFORMS=["tint","shade","lumMod","lumOff","lum","satMod","satOff","sat","hueMod","hueOff","hue","alpha","alphaMod","alphaOff"];const C=`(?:${COLOR_NAMES.join("|")})`,k=`(?:${COLOR_TRANSFORMS.join("|")}) -?\\d+(?:\\.\\d+)?(?:%|°)`,A=new RegExp(`^(${C}) (lighter|darker) (100(?:\\.0{1,3})?|[1-9]?\\d(?:\\.\\d{1,3})?)%$`,"u"),v=new RegExp(`^(${C}|#[0-9A-Fa-f]{6})((?: ${k})+)$`,"u"),O=/^#[0-9A-Fa-f]{6}$/u,g=t=>COLOR_NAMES.includes(t),E=t=>COLOR_TRANSFORMS.includes(t),y=new Set(["hue","hueOff"]);export function colorOfFile(t){if(g(t))return t;if(O.test(t))return{rgb:t.toUpperCase()};const e=v.exec(t);if(e){const[,l="",p=""]=e,m=[];for(const w of p.matchAll(/ (\w+) (-?[\d.]+)(%|°)/gu)){const[,u="",D="",x]=w;if(!E(u)||x==="°"!==y.has(u))return;const S=Number(D);m.push({name:u,value:x==="%"?Math.round(S*1e3)/1e5:S})}return g(l)?{theme_color:l,transforms:m}:{rgb:l.toUpperCase(),transforms:m}}const r=A.exec(t),[,n="",i,s=""]=r??[],a=Math.round(Number(s)*1e3);if(!(!r||!g(n)||a<=0||a>1e5))return{theme_color:n,brightness:(i==="lighter"?a:-a)/1e5}}const P=t=>y.has(t.name)?`${t.name} ${String(Math.round(t.value*1e3)/1e3)}°`:`${t.name} ${String(Math.round(t.value*1e5)/1e3)}%`;export function colorFile(t){if(typeof t=="string")return t;if("rgb"in t)return t.transforms&&t.transforms.length>0?`${t.rgb} ${t.transforms.map(P).join(" ")}`:t.rgb;if("transforms"in t)return t.transforms.length===0?t.theme_color:`${t.theme_color} ${t.transforms.map(P).join(" ")}`;const e=Math.round(Math.abs(t.brightness)*1e5)/1e3;return e===0?t.theme_color:`${t.theme_color} ${t.brightness>0?"lighter":"darker"} ${String(e)}%`}const d=`A colour is one of the theme's (${THEME_COLORS.join(", ")}) or the colour map's (${MAPPED_COLORS.join(", ")}), one of them lighter or darker by a share over 0 up to 100% ("accent1 lighter 40%", "dk1 darker 25%"), #RRGGBB, or one of them with DrawingML's transforms in order ("accent1 lumMod 75% lumOff 25%", "#4472C4 alpha 50%", "accent2 hueOff 30°": ${COLOR_TRANSFORMS.join(", ")}).`;export const ColorFileSchema=o.union([o.enum(COLOR_NAMES),o.string().regex(A,d),o.string().regex(O,d),o.string().regex(v,d)]).refine(t=>colorOfFile(t)!==void 0,d),NUMBERINGS=["alphaLcParenBoth","alphaUcParenBoth","alphaLcParenR","alphaUcParenR","alphaLcPeriod","alphaUcPeriod","arabicParenBoth","arabicParenR","arabicPeriod","arabicPlain","romanLcParenBoth","romanUcParenBoth","romanLcParenR","romanUcParenR","romanLcPeriod","romanUcPeriod","circleNumDbPlain","circleNumWdBlackPlain","circleNumWdWhitePlain","arabicDbPeriod","arabicDbPlain","ea1ChsPeriod","ea1ChsPlain","ea1ChtPeriod","ea1ChtPlain","ea1JpnChsDbPeriod","ea1JpnKorPlain","ea1JpnKorPeriod","arabic1Minus","arabic2Minus","hebrew2Minus","thaiAlphaPeriod","thaiAlphaParenR","thaiAlphaParenBoth","thaiNumPeriod","thaiNumParenR","thaiNumParenBoth","hindiAlphaPeriod","hindiNumPeriod","hindiNumParenR","hindiAlpha1Period"],UNDERLINES=["sng","dbl","heavy","dotted","dottedHeavy","dash","dashHeavy","dashLong","dashLongHeavy","dotDash","dotDashHeavy","dotDotDash","dotDotDashHeavy","wavy","wavyHeavy","wavyDbl","words"],STRIKES=["sngStrike","dblStrike"],CAPS=["all","small","none"],TEXT_ORIENTATIONS=["horz","vert","vert270","eaVert","wordArtVert","wordArtVertRtl","mongolianVert"],TEXT_ANCHORS=["t","ctr","b"],ParagraphSpaceSchema=o.union([o.number().min(0).max(1584),o.object({lines:o.number().min(0).max(100)})]),TextStyleSchema=o.strictObject({size:o.number().positive().max(4e3).optional(),bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.union([o.boolean(),o.enum(UNDERLINES)]).optional(),strike:o.union([o.boolean(),o.enum(STRIKES)]).optional(),caps:o.enum(CAPS).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:ParagraphSpaceSchema.optional(),space_after:ParagraphSpaceSchema.optional(),anchor:o.enum(TEXT_ANCHORS).optional(),orientation:o.enum(TEXT_ORIENTATIONS).optional(),bullet:o.union([o.literal(!1),o.string().min(1).max(2)]).optional(),numbered:o.enum(NUMBERINGS).optional(),bullet_color:ColorFileSchema.optional(),bullet_size:o.number().min(.25).max(4).optional(),start_at:o.int().min(1).max(32767).optional()});const T=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"}),b=o.lazy(()=>o.union([o.string(),o.number(),o.boolean(),o.null(),o.array(b),o.record(o.string(),b)]));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"],CHART_COMBINED_TYPES=["column-clustered","column-stacked","column-stacked-100","line","line-markers","area","area-stacked","area-stacked-100"];const f=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(),type:o.enum(CHART_COMBINED_TYPES).optional(),secondary:o.boolean().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:f.optional(),category_axis:f.optional(),secondary_axis:f.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 GRADIENT_PATHS=["circle","rect","shape"],GradientSchema=o.strictObject({angle:o.number().min(0).max(360).optional(),path:o.enum(GRADIENT_PATHS).optional(),focus:o.strictObject({left:o.number().optional(),top:o.number().optional(),right:o.number().optional(),bottom:o.number().optional()}).optional(),stops:o.array(o.strictObject({at:c,color:ColorFileSchema,transparency:c.optional()})).min(2).max(10)}),PATTERNS=["pct5","pct10","pct20","pct25","pct30","pct40","pct50","pct60","pct70","pct75","pct80","pct90","horz","vert","ltHorz","ltVert","dkHorz","dkVert","narHorz","narVert","dashHorz","dashVert","cross","dnDiag","upDiag","ltDnDiag","ltUpDiag","dkDnDiag","dkUpDiag","wdDnDiag","wdUpDiag","dashDnDiag","dashUpDiag","diagCross","smCheck","lgCheck","smGrid","lgGrid","dotGrid","smConfetti","lgConfetti","horzBrick","diagBrick","solidDmnd","openDmnd","dotDmnd","plaid","sphere","weave","divot","shingle","wave","trellis","zigZag"],PatternSchema=o.strictObject({preset:o.enum(PATTERNS),fg:ColorFileSchema.optional(),bg:ColorFileSchema.optional()}),TILE_ALIGNMENTS=["tl","t","tr","l","ctr","r","bl","b","br"],PictureFillSchema=o.strictObject({path:o.string().min(1),tile:o.strictObject({scale_x:o.number().positive().max(100).optional(),scale_y:o.number().positive().max(100).optional(),x:o.number().optional(),y:o.number().optional(),align:o.enum(TILE_ALIGNMENTS).optional()}).optional(),transparency:c.optional()}),BackgroundSchema=o.strictObject({fill:ColorFileSchema.optional(),gradient:GradientSchema.optional(),picture:o.string().min(1).optional()}).refine(t=>[t.fill,t.gradient,t.picture].filter(e=>e!==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()}),InnerShadowSchema=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()}),GlowSchema=o.strictObject({color:ColorFileSchema.optional(),size:o.number().min(0).max(150).optional(),transparency:c.optional()}),ReflectionSchema=o.strictObject({transparency:c.optional(),size:c.optional(),distance:o.number().min(0).max(100).optional(),blur:o.number().min(0).max(100).optional()});const R=o.union([o.strictObject({shape:o.string().min(1),site:o.int().min(0)}),o.literal("none")]);export const MergedCellsSchema=o.object({row:o.int().min(0),column:o.int().min(0),rows:o.int().min(1).optional(),columns:o.int().min(1).optional()});function N(t,e,r,n){const i=t.rows??1,s=t.columns??1;if(i*s<2)return"A merge takes two cells or more.";if(t.row+i>e||t.column+s>r)return`A merge from row ${String(t.row)}, column ${String(t.column)} goes past the table's ${String(e)} rows and ${String(r)} columns.`;for(let a=t.row;a<t.row+i;a++)for(let l=t.column;l<t.column+s;l++){const p=`${String(a)},${String(l)}`;if(n.has(p))return`Two merges take the cell at row ${String(a)}, column ${String(l)}.`;n.add(p)}}export const MEDIA_STARTS=["auto","on-click"],PlaybackSchema=o.strictObject({start:o.enum(MEDIA_STARTS).optional(),trim:o.strictObject({start:o.number().min(0).optional(),end:o.number().positive().optional()}).refine(t=>t.start===void 0||t.end===void 0||t.end>t.start,{message:"A trim ends after it starts."}).optional(),loop:o.boolean().optional(),volume:o.number().min(0).max(1).optional(),fullscreen:o.boolean().optional(),hide:o.boolean().optional()}),ShapeSchema=o.strictObject({frame:FrameSchema.optional(),rotation:o.number().min(0).lt(360).optional(),flip_h:o.literal(!0).optional(),flip_v:o.literal(!0).optional(),connect:o.strictObject({begin:R.optional(),end:R.optional()}).optional(),z:o.int().optional(),fill:o.union([ColorFileSchema,o.literal("none")]).optional(),fill_transparency:c.optional(),gradient:GradientSchema.optional(),pattern:PatternSchema.optional(),picture_fill:PictureFillSchema.optional(),shadow:ShadowSchema.optional(),inner_shadow:InnerShadowSchema.optional(),glow:GlowSchema.optional(),soft_edges:o.number().positive().max(100).optional(),reflection:ReflectionSchema.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_cap:o.enum(LINE_CAPS).optional(),line_join:o.enum(LINE_JOINS).optional(),line_compound:o.enum(LINE_COMPOUNDS).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:T.optional(),movie:o.string().min(1).optional(),audio:o.string().min(1).optional(),item:o.string().min(1).optional(),poster:o.number().min(0).optional(),playback:PlaybackSchema.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),merged:o.array(MergedCellsSchema).optional(),data:o.string().min(1).optional(),fields:o.array(o.string().min(1)).min(1).optional(),head:o.boolean().optional(),style:o.string().min(1).optional(),first_row:o.boolean().optional(),last_row:o.boolean().optional(),first_col:o.boolean().optional(),last_col:o.boolean().optional(),horz_banding:o.boolean().optional(),vert_banding:o.boolean().optional()}).superRefine((t,e)=>{const r=new Set;t.data===void 0&&(t.fields!==void 0||t.head!==void 0)&&e.addIssue({code:"custom",path:[t.fields===void 0?"head":"fields"],message:"fields and head say how a table shows its data: give it data."}),(t.merged??[]).forEach((n,i)=>{const s=N(n,t.rows.length,t.columns.length,r);s!==void 0&&e.addIssue({code:"custom",path:["merged",i],message:s})})}).optional(),chart:ChartSchema.optional(),link:o.string().trim().min(1).optional(),group:o.string().regex(/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/u,"A group is a name of letters, digits, _ and -; a group in a group is outer/inner.").optional(),locked:o.literal(!0).optional(),component:o.union([h,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(),b).optional(),dur:o.number().positive().optional()}),groupLevels=t=>t.split("/").map((e,r,n)=>n.slice(0,r+1).join("/")),inGroup=(t,e)=>t!==void 0&&(t===e||t.startsWith(`${e}/`)),SHOW_JUMPS=["firstslide","lastslide","nextslide","previousslide","endshow"],showJumpLink=t=>`ppaction://hlinkshowjump?jump=${t}`;export function showJumpOf(t){const e=/^ppaction:\/\/hlinkshowjump\?jump=([a-z]+)$/u.exec(t);return SHOW_JUMPS.find(r=>r===e?.[1])}export const slideLinkOf=t=>t.startsWith("#")&&t.length>1?t.slice(1):void 0,SHAPE_KINDS=["textbox","picture","movie","audio","geometry","path","table","chart","component","item"],SLIDE_TRANSITIONS=["fade","push","wipe","split","reveal","cut","cover","uncover","zoom","morph"],TransitionSchema=o.strictObject({type:o.enum(SLIDE_TRANSITIONS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),through_black:o.literal(!0).optional(),duration:o.number().min(0).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(),amount:o.number().positive().max(36e3).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(),animate_text:o.enum(ANIMATE_TEXT).optional(),text_delay:o.number().min(0).max(100).optional(),repeat:o.union([o.number().min(1).max(1e4),o.enum(ANIMATION_REPEATS)]).optional(),rewind:o.literal(!0).optional()}),SlideSchema=o.strictObject({id:h,layout:o.string().min(1).optional(),generate:h.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(),section:o.string().trim().min(1).max(255).optional()}),SlidesFileSchema=o.strictObject({slides:o.array(SlideSchema).default([])}).superRefine((t,e)=>{const r=new Set;t.slides.forEach((n,i)=>{r.has(n.id)&&e.addIssue({code:"custom",path:["slides",i,"id"],message:`Two slides are "${n.id}".`}),r.add(n.id),(n.layout===void 0?0:1)+(n.generate===void 0?0:1)!==1&&e.addIssue({code:"custom",path:["slides",i],message:`Slide ${n.id} has a layout or a generator: one of them.`}),n.hidden!==void 0&&n.generate===void 0&&n.hidden!==!0&&e.addIssue({code:"custom",path:["slides",i,"hidden"],message:`Slide ${n.id} is hidden (true); a list of ids is a generated block's.`});for(const[a,l]of Object.entries(n.shapes??{})){const p=SHAPE_KINDS.filter(u=>l[u]!==void 0);p.length>1&&e.addIssue({code:"custom",path:["slides",i,"shapes",a],message:`Shape ${a} is one kind of shape, not ${p.join(" and ")}.`});const m=a.includes("/")?a.split("/"):[a];(!(m.length<=2&&m.every(u=>_.test(u)))||m.length===2&&n.generate===void 0)&&e.addIssue({code:"custom",path:["slides",i,"shapes",a],message:"A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block."})}})});
@@ -68,6 +68,10 @@ export interface KindSpec {
68
68
  } | undefined;
69
69
  /** What a new item of it starts as (KindStarter); none for a kind a person does not make new. */
70
70
  readonly starter?: KindStarter | undefined;
71
+ /** Its place among the kinds where they are listed for people (its contribution's `shown.order`, lower first); none: after those that have one. */
72
+ readonly order?: number | undefined;
73
+ /** Turn into does not offer it (its contribution's `turnInto: false`); absent: it does, where a person makes it new. */
74
+ readonly turnInto?: false | undefined;
71
75
  /** Whether an item of it is shared alone: a read-only link to it, its view served from the project's snapshot. */
72
76
  readonly share?: boolean | undefined;
73
77
  /**
@@ -142,28 +146,51 @@ export interface Item {
142
146
  */
143
147
  files?: ItemFile[];
144
148
  /**
145
- * The other items' made files it uses (docs/design/x.md §2), as the
146
- * build resolved them once its kind read it; absent before, and for an
147
- * item that uses none.
149
+ * The other items it uses (docs/design/references.md): their data,
150
+ * their drawing live or their made files, as the build resolved them
151
+ * once its kind read it; absent before, and for an item that uses none.
148
152
  */
149
153
  uses?: ItemUse[];
150
154
  }
151
155
  /**
152
- * Another item's made file an item uses, resolved by the build: the
153
- * reference as its file writes it (`./hero.ts#main`), the item it names,
154
- * the part after `#` when there is one, and the type it is made as (the
155
- * first of the types the using kind takes that the used kind renders).
156
+ * The forms a use takes an item as besides a made file's type
157
+ * (docs/design/references.md §3.2): its values, which its kind lends
158
+ * (`data`), and its drawing by its own kind's runtime inside the using
159
+ * item's page (`live`). Any other form is a file type (`png`, `mp4`).
160
+ */
161
+ export declare const USE_FORMS: {
162
+ readonly data: "data";
163
+ readonly live: "live";
164
+ };
165
+ /** Whether a use's form is a made file's type, which an export makes, rather than `data` or `live`. */
166
+ export declare const isFileForm: (form: string) => boolean;
167
+ /**
168
+ * Another item an item uses, resolved by the build: the reference as its
169
+ * file writes it (`./hero.ts#main`), the item it names, the part after
170
+ * `#` when there is one, and the form it is taken as (the first of the
171
+ * forms the using kind takes that the used item gives). A form read here
172
+ * may be one a later version added: a reader skips one it does not know.
156
173
  */
157
174
  export interface ItemUse {
158
175
  /** The reference as written. */
159
176
  of: string;
160
177
  /** The file that writes it, a project path. */
161
178
  from: string;
179
+ /** Its line in that file, when its kind said it. */
180
+ line?: number | undefined;
162
181
  /** The used item's id. */
163
182
  item: string;
164
183
  /** The part after `#` (a board's key), when the reference names one. */
165
184
  part?: string | undefined;
185
+ /** The form it is taken as: `data`, `live` or a file type (USE_FORMS). */
166
186
  type: string;
187
+ /**
188
+ * Where `type` is `live`: the file type it is made as for a file that
189
+ * cannot hold it live (a deck's PowerPoint file), when both kinds have one.
190
+ */
191
+ file?: string | undefined;
192
+ /** The using item's types that hold `file` (`pptx`); absent, every type. */
193
+ madeFor?: string[] | undefined;
167
194
  /** What it is to the using item, in its kind's own words (`media`). */
168
195
  role?: string | undefined;
169
196
  }
@@ -279,4 +306,10 @@ export declare const isListedFile: (piece: Item | ListedFile) => piece is Listed
279
306
  * id is the problem.
280
307
  */
281
308
  export declare function itemsOf(work: WorkFile, kinds: KindTable, files?: ReadonlySet<string>, editors?: FileEditorTable): ItemScan;
309
+ /** What a data file's rows as shown are asked by, beside the rows themselves (DataFile.shown). */
310
+ export declare const SHOWN_DATA = "\0shown";
311
+ /** The path a reader asks a data file's rows as shown by. */
312
+ export declare const shownPath: (path: string) => string;
313
+ /** The data file a path asks the rows as shown of; undefined for a path that asks the rows. */
314
+ export declare const shownOf: (path: string) => string | undefined;
282
315
  //# sourceMappingURL=items.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{listedWork as g}from"./data/work.js";import{fileEditorIn as O}from"./files.js";import{baseOf as m,dirOf as k}from"./layout.js";export function pointEntriesIn(e,t,i){return e.find(n=>n.id===t)?.points?.[i]??[]}export const LOCALE_MARK="{locale}";export function listsFile(e,t){return e.some(i=>{const n=i.path.indexOf(LOCALE_MARK);if(n<0)return i.path===t;const r=i.path.slice(0,n),d=i.path.slice(n+LOCALE_MARK.length);return t.length>r.length+d.length&&t.startsWith(r)&&t.endsWith(d)})}export const itemFiles=e=>e.files??[{path:e.entry,role:"entry"}],itemIdOf=e=>{const t=m(e),i=t.lastIndexOf(".");return i<=0?e:e.slice(0,e.length-(t.length-i))},listedFileIdOf=e=>e,itemNameOf=(e,t)=>e.title??t??m(e.id);export function listedPieceByIdOrFormerId(e,t){const i=e.filter(n=>n.kind===void 0);return e.find(n=>n.id===t)??i.find(n=>n.entry===t)??i.find(n=>itemIdOf(n.entry)===t)}export const isListedFile=e=>"editor"in e;export function itemsOf(e,t,i,n){const r=[],d=[],u=new Map;for(const s of g(e)){const o=s.file.replace(/^\.\//u,""),f=s.kind;let l;if(f===void 0){if(n===void 0)continue;const c=O(n,o)?.id;if(c===void 0){r.push({code:"no-editor",file:o});continue}l={editor:c}}else if(t.some(c=>c.id===f))l={kind:f};else{r.push({code:"unknown-kind",kind:f,file:o});continue}if(i!==void 0&&!i.has(o)){r.push({code:"missing",file:o});continue}const h="kind"in l?itemIdOf(o):listedFileIdOf(o);u.set(h,[...u.get(h)??[],o]);const x={id:h,dir:k(o),entry:o,...s.title===void 0?{}:{title:s.title},groups:s.groups};d.push({...x,...l})}for(const[s,o]of u)o.length>1&&r.push({code:"same-id",id:s,files:o});const a=new Set,p=d.filter(s=>a.has(s.id)?!1:(a.add(s.id),!0));return{items:p.filter(s=>!isListedFile(s)),files:p.filter(isListedFile),listed:p,problems:r}}
2
+ import{listedWork as O}from"./data/work.js";import{fileEditorIn as g}from"./files.js";import{baseOf as m,dirOf as k}from"./layout.js";export function pointEntriesIn(t,e,i){return t.find(n=>n.id===e)?.points?.[i]??[]}export const USE_FORMS={data:"data",live:"live"},isFileForm=t=>t!==USE_FORMS.data&&t!==USE_FORMS.live,LOCALE_MARK="{locale}";export function listsFile(t,e){return t.some(i=>{const n=i.path.indexOf(LOCALE_MARK);if(n<0)return i.path===e;const r=i.path.slice(0,n),d=i.path.slice(n+LOCALE_MARK.length);return e.length>r.length+d.length&&e.startsWith(r)&&e.endsWith(d)})}export const itemFiles=t=>t.files??[{path:t.entry,role:"entry"}],itemIdOf=t=>{const e=m(t),i=e.lastIndexOf(".");return i<=0?t:t.slice(0,t.length-(e.length-i))},listedFileIdOf=t=>t,itemNameOf=(t,e)=>t.title??e??m(t.id);export function listedPieceByIdOrFormerId(t,e){const i=t.filter(n=>n.kind===void 0);return t.find(n=>n.id===e)??i.find(n=>n.entry===e)??i.find(n=>itemIdOf(n.entry)===e)}export const isListedFile=t=>"editor"in t;export function itemsOf(t,e,i,n){const r=[],d=[],u=new Map;for(const s of O(t)){const o=s.file.replace(/^\.\//u,""),l=s.kind;let c;if(l===void 0){if(n===void 0)continue;const f=g(n,o)?.id;if(f===void 0){r.push({code:"no-editor",file:o});continue}c={editor:f}}else if(e.some(f=>f.id===l))c={kind:l};else{r.push({code:"unknown-kind",kind:l,file:o});continue}if(i!==void 0&&!i.has(o)){r.push({code:"missing",file:o});continue}const a="kind"in c?itemIdOf(o):listedFileIdOf(o);u.set(a,[...u.get(a)??[],o]);const x={id:a,dir:k(o),entry:o,...s.title===void 0?{}:{title:s.title},groups:s.groups};d.push({...x,...c})}for(const[s,o]of u)o.length>1&&r.push({code:"same-id",id:s,files:o});const h=new Set,p=d.filter(s=>h.has(s.id)?!1:(h.add(s.id),!0));return{items:p.filter(s=>!isListedFile(s)),files:p.filter(isListedFile),listed:p,problems:r}}export const SHOWN_DATA="\0shown",shownPath=t=>`${t}${SHOWN_DATA}`,shownOf=t=>t.endsWith(SHOWN_DATA)?t.slice(0,-SHOWN_DATA.length):void 0;
@@ -2367,6 +2367,7 @@ export declare const DATA_FILES: {
2367
2367
  }, z.core.$strict>>;
2368
2368
  movie: z.ZodOptional<z.ZodString>;
2369
2369
  audio: z.ZodOptional<z.ZodString>;
2370
+ item: z.ZodOptional<z.ZodString>;
2370
2371
  poster: z.ZodOptional<z.ZodNumber>;
2371
2372
  playback: z.ZodOptional<z.ZodObject<{
2372
2373
  start: z.ZodOptional<z.ZodEnum<{
@@ -2767,6 +2768,9 @@ export declare const DATA_FILES: {
2767
2768
  rows: z.ZodOptional<z.ZodInt>;
2768
2769
  columns: z.ZodOptional<z.ZodInt>;
2769
2770
  }, z.core.$strip>>>;
2771
+ data: z.ZodOptional<z.ZodString>;
2772
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
2773
+ head: z.ZodOptional<z.ZodBoolean>;
2770
2774
  style: z.ZodOptional<z.ZodString>;
2771
2775
  first_row: z.ZodOptional<z.ZodBoolean>;
2772
2776
  last_row: z.ZodOptional<z.ZodBoolean>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/formats",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/i18n",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
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{problem as $}from"@allyhub/diagnostics";import{addLayerRule as L,lookCss as P}from"@allyhub/piece";import{selectorOf as E}from"./inspect.js";import{pictureHint as x,pictureWaiter as A,watchPictures as H}from"./pictures.js";import{rejectedMessage as K,watchStyles as M}from"./styles.js";const p=c=>c.toString(16).padStart(2,"0");export function createStage(c,n){const{options:m,embed:g}=c,f=m.purpose==="check"&&!g,b=f?M():void 0,v=f?H(n):void 0,h=[],R=A(n,t=>{h.some(o=>o.el===t.el&&o.src===t.src)||h.push(t)}),y=new Set,S=t=>!n.contains(t.target)&&!(t.target instanceof HTMLElement&&t.target.dataset.akHolder===""),w=f?new MutationObserver(t=>{for(const o of t)S(o)&&y.add(o.target.nodeName.toLowerCase())}):void 0;let u=!1;const C=t=>{const o=document.createElement("div");o.style.color=t,n.append(o);const i=getComputedStyle(o).color;o.remove();const s=document.createElement("canvas");s.width=1,s.height=1;const a=s.getContext("2d",{willReadFrequently:!0});if(!a)return"#000000";a.fillStyle=i,a.fillRect(0,0,1,1);const[e=0,r=0,d=0,l=255]=a.getImageData(0,0,1,1).data;return`#${p(e)}${p(r)}${p(d)}${l===255?"":p(l)}`},O=()=>{w?.takeRecords().forEach(t=>{S(t)&&y.add(t.target.nodeName.toLowerCase())})};return{el:n,styles:b,picturesDrawn:R,get clear(){return u},async sweep(){await v?.sweep()},cssColor:C,takeOutside:O,dress(t){const{dims:o,look:i}=t;u=m.purpose==="render"&&!g||t.options.transparent===!0,n.replaceChildren(),L(n.ownerDocument),n.dataset.format=t.format,c.lang!==void 0&&(n.lang=c.lang),Object.assign(n.style,{position:"relative",width:`${String(o.width)}px`,height:`${String(o.height)}px`,overflow:"hidden",background:u?"transparent":"var(--ak-color-bg)",color:"var(--ak-color-fg)",fontFamily:"var(--ak-font-body)"});for(const[e,r]of Object.entries(P(i)))n.style.setProperty(e,r);const a=t.options.transparent===!0?"transparent":C("var(--ak-color-bg)");return u&&m.purpose!=="play"&&!g&&(document.documentElement.style.background="transparent",document.body.style.background="transparent"),w?.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),a},problems(t){O();const o=[...y].map(e=>$("AK-R003",`Piece code changed <${e}> outside the stage. Draw only inside each layer's own element.`)),i=(b?.rejected()??[]).map(e=>{const r=e.el&&n.contains(e.el)?E(e.el,n):void 0;return $("AK-R004",K(e,r?` on ${r}`:""),{part:e.part,...r?{where:{selector:r}}:{}})}),s=v?.broken()??[],a=[...s,...h.filter(e=>!s.some(r=>r.el===e.el&&r.src===e.src))].map(e=>{const r=t.find(k=>k.el.contains(e.el)),d=r?.layers.find(k=>k.el.contains(e.el)),l=n.contains(e.el)?E(e.el,n):void 0,j=d?`${d.spec.component} (layer ${String(d.index+1)}) in part ${r?.part.key??""}`:r?`Part ${r.part.key}`:"The stage",D=e.via==="img"?`<img src="${e.src}">`:`a background image, url("${e.src}")`;return $("AK-A005",`${j} draws a picture that does not load: ${D}. ${x(e.src)}`,{...r?{part:r.part.key}:{},...l?{where:{selector:l}}:{}})});return[...o,...i,...a]},dispose(){w?.disconnect(),n.replaceChildren()}}}
2
+ import{problem as $}from"@allyhub/diagnostics";import{addLayerRule as L,lookCss as P}from"@allyhub/piece";import{selectorOf as E}from"./inspect.js";import{pictureHint as x,pictureWaiter as A,watchPictures as H}from"./pictures.js";import{rejectedMessage as K,watchStyles as M}from"./styles.js";const m=c=>c.toString(16).padStart(2,"0");export function createStage(c,n){const{options:u}=c,g=c.embed!==void 0||u.inside!==void 0,f=u.purpose==="check"&&!g,b=f?M():void 0,v=f?H(n):void 0,h=[],R=A(n,t=>{h.some(o=>o.el===t.el&&o.src===t.src)||h.push(t)}),y=new Set,S=t=>!n.contains(t.target)&&!(t.target instanceof HTMLElement&&t.target.dataset.akHolder===""),w=f?new MutationObserver(t=>{for(const o of t)S(o)&&y.add(o.target.nodeName.toLowerCase())}):void 0;let p=!1;const C=t=>{const o=document.createElement("div");o.style.color=t,n.append(o);const i=getComputedStyle(o).color;o.remove();const a=document.createElement("canvas");a.width=1,a.height=1;const s=a.getContext("2d",{willReadFrequently:!0});if(!s)return"#000000";s.fillStyle=i,s.fillRect(0,0,1,1);const[e=0,r=0,d=0,l=255]=s.getImageData(0,0,1,1).data;return`#${m(e)}${m(r)}${m(d)}${l===255?"":m(l)}`},O=()=>{w?.takeRecords().forEach(t=>{S(t)&&y.add(t.target.nodeName.toLowerCase())})};return{el:n,styles:b,picturesDrawn:R,get clear(){return p},async sweep(){await v?.sweep()},cssColor:C,takeOutside:O,dress(t){const{dims:o,look:i}=t;p=u.purpose==="render"&&!g||t.options.transparent===!0,n.replaceChildren(),L(n.ownerDocument),n.dataset.format=t.format,c.lang!==void 0&&(n.lang=c.lang),Object.assign(n.style,{position:"relative",width:`${String(o.width)}px`,height:`${String(o.height)}px`,overflow:"hidden",background:p?"transparent":"var(--ak-color-bg)",color:"var(--ak-color-fg)",fontFamily:"var(--ak-font-body)"});for(const[e,r]of Object.entries(P(i)))n.style.setProperty(e,r);const s=t.options.transparent===!0?"transparent":C("var(--ak-color-bg)");return p&&u.purpose!=="play"&&!g&&(document.documentElement.style.background="transparent",document.body.style.background="transparent"),w?.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),s},problems(t){O();const o=[...y].map(e=>$("AK-R003",`Piece code changed <${e}> outside the stage. Draw only inside each layer's own element.`)),i=(b?.rejected()??[]).map(e=>{const r=e.el&&n.contains(e.el)?E(e.el,n):void 0;return $("AK-R004",K(e,r?` on ${r}`:""),{part:e.part,...r?{where:{selector:r}}:{}})}),a=v?.broken()??[],s=[...a,...h.filter(e=>!a.some(r=>r.el===e.el&&r.src===e.src))].map(e=>{const r=t.find(k=>k.el.contains(e.el)),d=r?.layers.find(k=>k.el.contains(e.el)),l=n.contains(e.el)?E(e.el,n):void 0,j=d?`${d.spec.component} (layer ${String(d.index+1)}) in part ${r?.part.key??""}`:r?`Part ${r.part.key}`:"The stage",D=e.via==="img"?`<img src="${e.src}">`:`a background image, url("${e.src}")`;return $("AK-A005",`${j} draws a picture that does not load: ${D}. ${x(e.src)}`,{...r?{part:r.part.key}:{},...l?{where:{selector:l}}:{}})});return[...o,...i,...s]},dispose(){w?.disconnect(),n.replaceChildren()}}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-draw",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-extension",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./build": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-measure",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-psd",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-render",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-runtime",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-sdk",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/jobs",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/linkedin-extension",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",
@@ -89,6 +89,7 @@
89
89
  },
90
90
  "entry": "{{name}}.yaml"
91
91
  },
92
+ "turnInto": false,
92
93
  "build": "./dist/build.js",
93
94
  "editor": "allyhub.linkedin.post-editor",
94
95
  "shown": {
@@ -182,6 +183,7 @@
182
183
  },
183
184
  "entry": "{{name}}.md"
184
185
  },
186
+ "turnInto": false,
185
187
  "build": "./dist/article-kind.js"
186
188
  }
187
189
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/linkedin-model",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/linkedin-view",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/measure",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/media",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/media-extension",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/model",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/office-extension",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/ooxml",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -42,6 +42,11 @@ export interface EmbeddedVideo {
42
42
  /** Its moment by a reference of its own (an anchor, "@click", or a part's key), in its seconds (momentOf). */
43
43
  at(ref: string): number;
44
44
  }
45
+ /** Another item drawn live in a layer's element (`ctx.item`): a video's handle, and its kind. */
46
+ export interface EmbeddedItem extends EmbeddedVideo {
47
+ /** Its kind (`slides`, `video`). */
48
+ kind: string;
49
+ }
45
50
  export interface StageContext {
46
51
  look: Look;
47
52
  /** The format being drawn, e.g. "9x16". */
@@ -198,6 +203,16 @@ export interface StageContext {
198
203
  * embed.
199
204
  */
200
205
  video?(piece: unknown, el: HTMLElement): Promise<EmbeddedVideo>;
206
+ /**
207
+ * Another item of the project drawn live in an element of this layer's
208
+ * (docs/design/references.md §3.5): what its module exports, imported
209
+ * (`import q3 from "../decks/q3"`), drawn by its own kind's runtime in
210
+ * its own format, in this video's language where it has it. A video is
211
+ * drawn as `video` draws it; a deck's moments are its slides and their
212
+ * builds (`at("pricing")`). What it reads counts as this video's.
213
+ * Absent where the host cannot embed.
214
+ */
215
+ item?(piece: unknown, el: HTMLElement): Promise<EmbeddedItem>;
201
216
  /**
202
217
  * Answers a question the host asks every layer of the output by name
203
218
  * (`LoadedOutput.ask`): a scenery's cuts, the world times of references,
@@ -1,3 +1,4 @@
1
1
  export { consoleAt, consoleAtAsync, consoleLog, consoleParts, installConsole, resetConsole, } from "./console.js";
2
2
  export { locateLayers, pickLayer } from "./locate.js";
3
+ export { registerRuntimes, runtimeOf, type ItemRuntime } from "./runtimes.js";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{consoleAt,consoleAtAsync,consoleLog,consoleParts,installConsole,resetConsole}from"./console.js";export{locateLayers,pickLayer}from"./locate.js";
2
+ export{consoleAt,consoleAtAsync,consoleLog,consoleParts,installConsole,resetConsole}from"./console.js";export{locateLayers,pickLayer}from"./locate.js";export{registerRuntimes,runtimeOf}from"./runtimes.js";
@@ -0,0 +1,9 @@
1
+ import type { BuildSource, LoadOptions } from "../source.js";
2
+ import type { StageOutput } from "../stage.js";
3
+ /** What loads a source of a kind onto the stage: an output that answers the stage's bridge. */
4
+ export type ItemRuntime = (source: BuildSource, options: LoadOptions, el: HTMLElement) => Promise<StageOutput>;
5
+ /** The runtimes the stage page has, by kind: the stage page's, once, as it installs. */
6
+ export declare function registerRuntimes(runtimes: ReadonlyMap<string, ItemRuntime>): void;
7
+ /** The runtime of a kind, where the stage page has one. */
8
+ export declare function runtimeOf(kind: string): ItemRuntime | undefined;
9
+ //# sourceMappingURL=runtimes.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ let t=new Map;export function registerRuntimes(e){t=e}export function runtimeOf(e){return t.get(e)}
@@ -15,12 +15,25 @@ export interface LoadOptions {
15
15
  * console.ts); default CONSOLE_LIMIT.
16
16
  */
17
17
  consoleLimit?: number;
18
+ /**
19
+ * The item it is drawn inside, by id, when it is drawn live inside
20
+ * another's page (docs/design/references.md §3.5): the runtime leaves
21
+ * the page itself as it is (its background, its title), the outer
22
+ * item's.
23
+ */
24
+ inside?: string;
18
25
  }
19
26
  /** A data file ctx.data(path) can read: parsed, or why it could not be. */
20
27
  export interface DataFile {
21
28
  sha256: string;
22
29
  value?: unknown;
23
30
  error?: string;
31
+ /**
32
+ * Its rows as their source shows them (a sheet's table, each value in its
33
+ * cell's number format: `1,800`, `12%`), where it has a look of its own:
34
+ * what a table that shows the file reads (`shownPath`, @allyhub/formats).
35
+ */
36
+ shown?: unknown;
24
37
  }
25
38
  /** What the host hands load(): one piece, as the build made it. */
26
39
  export interface BuildSource {
@@ -97,18 +110,46 @@ export interface BuildSource {
97
110
  kindData?: unknown;
98
111
  /**
99
112
  * Every piece of the build by id, for a piece that shows another inside
100
- * it (a scenery's screen): its file, dimensions, format and matrix.
113
+ * it (a scenery's screen): its file, dimensions, format and matrix. A
114
+ * piece this one uses live (docs/design/references.md §3.5) has what
115
+ * its kind's runtime loads it with too (`itemSource`).
101
116
  */
102
- pieces?: Record<string, {
103
- file: string;
104
- dims: Dims;
105
- format: string;
106
- matrix?: {
107
- space: MatrixSpace;
108
- rules: MatrixRule[];
109
- };
110
- }>;
117
+ pieces?: Record<string, BuildPiece>;
111
118
  }
119
+ /** A piece of the build as another piece's source names it (BuildSource.pieces). */
120
+ export interface BuildPiece {
121
+ file: string;
122
+ dims: Dims;
123
+ format: string;
124
+ matrix?: {
125
+ space: MatrixSpace;
126
+ rules: MatrixRule[];
127
+ };
128
+ /** Its kind; present where it is used live, with the fields below. */
129
+ kind?: string;
130
+ /** Its bundled module's address, and the chunks and stylesheets it imports (BuildSource's). */
131
+ module?: string;
132
+ imports?: string[];
133
+ styles?: string[];
134
+ /** Its script, a project path with `{locale}` for each language. */
135
+ script?: string;
136
+ /** What its kind's build read for its runtime (BuildSource.kindData). */
137
+ kindData?: unknown;
138
+ }
139
+ /**
140
+ * The source of a piece `source` uses live, as its kind's runtime loads
141
+ * it: the outer source's project (its words, media, data, looks, the
142
+ * pieces of the build) with the used piece's own module, file, format and
143
+ * kind's data; undefined when the build gave it no module (it is not one
144
+ * the outer piece uses live).
145
+ */
146
+ export declare function itemSource(source: BuildSource, id: string): BuildSource | undefined;
147
+ /**
148
+ * The piece of the build an imported piece is (an item's default export,
149
+ * `video()` or `presentation()`, which records the module that wrote it
150
+ * as `written.file`): its id and entry; undefined for any other value.
151
+ */
152
+ export declare function pieceOfValue(source: BuildSource, value: unknown): [string, BuildPiece] | undefined;
112
153
  /**
113
154
  * Part defaults a project (`defineConfig({ defaults: { part } })`) or a
114
155
  * video (`video({ defaults: { part } })`) sets over the built-in ones.
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- const t=(e,n)=>e===""?e:new URL(e,n).href;export function resolveMedia(e,n){return Object.fromEntries(Object.entries(e).map(([i,d])=>[i,{...d,url:t(d.url,n),...d.matteUrl===void 0?{}:{matteUrl:t(d.matteUrl,n)},...d.denoisedUrl===void 0?{}:{denoisedUrl:t(d.denoisedUrl,n)}}]))}export function resolveSource(e,n){return{...e,module:t(e.module,n),...e.imports===void 0?{}:{imports:e.imports.map(i=>t(i,n))},...e.styles===void 0?{}:{styles:e.styles.map(i=>t(i,n))},media:resolveMedia(e.media,n)}}
2
+ const d=(n,t)=>n===""?n:new URL(n,t).href;export function resolveMedia(n,t){return Object.fromEntries(Object.entries(n).map(([e,i])=>[e,{...i,url:d(i.url,t),...i.matteUrl===void 0?{}:{matteUrl:d(i.matteUrl,t)},...i.denoisedUrl===void 0?{}:{denoisedUrl:d(i.denoisedUrl,t)}}]))}export function resolveSource(n,t){return{...n,module:d(n.module,t),...n.imports===void 0?{}:{imports:n.imports.map(e=>d(e,t))},...n.styles===void 0?{}:{styles:n.styles.map(e=>d(e,t))},media:resolveMedia(n.media,t),...n.pieces===void 0?{}:{pieces:Object.fromEntries(Object.entries(n.pieces).map(([e,i])=>[e,{...i,...i.module===void 0?{}:{module:d(i.module,t)},...i.imports===void 0?{}:{imports:i.imports.map(s=>d(s,t))},...i.styles===void 0?{}:{styles:i.styles.map(s=>d(s,t))}}]))}}}export function itemSource(n,t){const e=n.pieces?.[t];if(e?.module===void 0||e.kind===void 0)return;const i={...n};return delete i.kindData,delete i.script,delete i.matrix,{...i,kind:e.kind,piece:t,file:e.file,module:e.module,imports:e.imports??[],styles:e.styles??[],dims:e.dims,format:e.format,...e.matrix?{matrix:e.matrix}:{},...e.script===void 0?{}:{script:e.script},...e.kindData===void 0?{}:{kindData:e.kindData}}}export function pieceOfValue(n,t){if(typeof t!="object"||t===null)return;const e=t.written,i=typeof e=="object"&&e!==null?e.file:void 0;if(!(typeof i!="string"||i===""))return Object.entries(n.pieces??{}).find(([,s])=>s.file===i)}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/piece",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {