allyhub 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/dist/commands/cloud-tools.js +5 -5
  2. package/dist/commands/frames.js +8 -8
  3. package/dist/commands.json +1 -1
  4. package/dist/help.js +3 -3
  5. package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
  6. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  7. package/dist/node_modules/@allyhub/blocks/dist/elements.js +1 -1
  8. package/dist/node_modules/@allyhub/blocks/dist/layout.js +1 -1
  9. package/dist/node_modules/@allyhub/blocks/dist/palette.js +1 -1
  10. package/dist/node_modules/@allyhub/blocks/dist/resolve.js +1 -1
  11. package/dist/node_modules/@allyhub/blocks/package.json +1 -1
  12. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  13. package/dist/node_modules/@allyhub/build/package.json +1 -1
  14. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  15. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  16. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  17. package/dist/node_modules/@allyhub/check/package.json +1 -1
  18. package/dist/node_modules/@allyhub/cloud/dist/call.js +2 -2
  19. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  20. package/dist/node_modules/@allyhub/components/package.json +1 -1
  21. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  22. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  23. package/dist/node_modules/@allyhub/doc/dist/block-shapes.js +2 -0
  24. package/dist/node_modules/@allyhub/doc/dist/blocks.js +1 -1
  25. package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -5
  26. package/dist/node_modules/@allyhub/doc/dist/shapes.js +2 -2
  27. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  28. package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +1 -1
  29. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
  30. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  31. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  32. package/dist/node_modules/@allyhub/export/package.json +1 -1
  33. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  34. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  35. package/dist/node_modules/@allyhub/formats/dist/data/page-data.d.ts +9 -1
  36. package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +1 -1
  37. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  38. package/dist/node_modules/@allyhub/html-extension/package.json +1 -1
  39. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  40. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  41. package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
  42. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +1 -1
  43. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  44. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  45. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  46. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  47. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  48. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  49. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
  50. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  51. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  52. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +1 -1
  53. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  54. package/dist/node_modules/@allyhub/media/package.json +1 -1
  55. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  56. package/dist/node_modules/@allyhub/model/package.json +1 -1
  57. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  58. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  59. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  60. package/dist/node_modules/@allyhub/project/package.json +1 -1
  61. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  62. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  63. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  64. package/dist/node_modules/@allyhub/render/package.json +1 -1
  65. package/dist/node_modules/@allyhub/report-extension/LICENSE +241 -0
  66. package/dist/node_modules/@allyhub/report-extension/dist/build.js +3 -0
  67. package/dist/node_modules/@allyhub/report-extension/dist/check.js +37 -0
  68. package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +4 -0
  69. package/dist/node_modules/@allyhub/report-extension/dist/export.js +2 -0
  70. package/dist/node_modules/@allyhub/report-extension/dist/inline.js +58 -0
  71. package/dist/node_modules/@allyhub/report-extension/dist/page.js +23 -0
  72. package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +33 -0
  73. package/dist/node_modules/@allyhub/report-extension/dist/styles.js +2 -0
  74. package/dist/node_modules/@allyhub/report-extension/dist/theme.js +2 -0
  75. package/dist/node_modules/@allyhub/report-extension/dist/tools.js +2 -0
  76. package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +2 -0
  77. package/dist/node_modules/@allyhub/report-extension/package.json +185 -0
  78. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +180 -0
  79. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +15 -0
  80. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  81. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  82. package/dist/node_modules/@allyhub/scaffold/dist/index.js +5 -5
  83. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  84. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  85. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  86. package/dist/node_modules/@allyhub/sheet/dist/html.js +10 -10
  87. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  88. package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
  89. package/dist/node_modules/@allyhub/sheet/dist/theme.js +1 -1
  90. package/dist/node_modules/@allyhub/sheet/dist/tiles.js +1 -1
  91. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  92. package/dist/node_modules/@allyhub/sheet/dist/xlsx/tile-shapes.js +2 -0
  93. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  94. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  95. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +1 -1
  96. package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
  97. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  98. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  99. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +1 -1
  100. package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
  101. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  102. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  103. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  104. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  105. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +2 -2
  106. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  107. package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
  108. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  109. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  110. package/dist/node_modules/@allyhub/video-extension/package.json +1 -1
  111. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  112. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  113. package/dist/node_modules/@allyhub/website/package.json +1 -1
  114. package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
  115. package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
  116. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  117. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  118. package/dist/package.json +15 -14
  119. package/dist/works.js +1 -1
  120. package/editor-web/assets/{abnfDiagram-WEYOIA3C-BkVJMd53.js → abnfDiagram-WEYOIA3C-B4tvwU6C.js} +1 -1
  121. package/editor-web/assets/{architecture-WOLXFQ4H-C6rnaynZ.js → architecture-WOLXFQ4H-V2fA0vY2.js} +1 -1
  122. package/editor-web/assets/{architectureDiagram-ZHVYKT53-D3vrh8LK.js → architectureDiagram-ZHVYKT53-B6B7XN0M.js} +1 -1
  123. package/editor-web/assets/article-DW4eD_8K.js +3 -0
  124. package/editor-web/assets/article-Dm2dIEwc.js +7 -0
  125. package/editor-web/assets/bar-button-CJmpgNg4.js +1 -0
  126. package/editor-web/assets/{blockDiagram-RJAE7QA3-BKngt8H7.js → blockDiagram-RJAE7QA3-BizcUGOM.js} +1 -1
  127. package/editor-web/assets/{c4Diagram-XDPPPE54-j7sUELqF.js → c4Diagram-XDPPPE54-CBHS0dQ0.js} +1 -1
  128. package/editor-web/assets/channel-dyUtlVPg.js +1 -0
  129. package/editor-web/assets/chip-BdQRH3FL.js +1 -0
  130. package/editor-web/assets/{chunk-2E7WHVMD-BXa-uRSi.js → chunk-2E7WHVMD-CMPBck_Q.js} +1 -1
  131. package/editor-web/assets/{chunk-4EMNKR2T-B3ntcsZN.js → chunk-4EMNKR2T-Df22Adpt.js} +1 -1
  132. package/editor-web/assets/{chunk-55XCU76K-AMvnFwUg.js → chunk-55XCU76K-CYrZ6_Q7.js} +1 -1
  133. package/editor-web/assets/{chunk-7S6XSTFO-BA6esfFu.js → chunk-7S6XSTFO-BfdG9NNW.js} +1 -1
  134. package/editor-web/assets/{chunk-AQDTSKZB-BT_vANXs.js → chunk-AQDTSKZB-BCzZMoTJ.js} +1 -1
  135. package/editor-web/assets/{chunk-DSNLSHJZ-DoUgmzGB.js → chunk-DSNLSHJZ-DT0xT8Wf.js} +1 -1
  136. package/editor-web/assets/{chunk-HAGFOTED-DtnIrCZb.js → chunk-HAGFOTED-Bg3-EotU.js} +1 -1
  137. package/editor-web/assets/{chunk-HNE4Q36P-BlPwQx3_.js → chunk-HNE4Q36P-BrSym24V.js} +1 -1
  138. package/editor-web/assets/{chunk-NQOKRVIF-D2r7jp2r.js → chunk-NQOKRVIF-CMxgkJWF.js} +1 -1
  139. package/editor-web/assets/{chunk-UHW7PFBP-Cmc0_F5o.js → chunk-UHW7PFBP-DWEwoyPy.js} +1 -1
  140. package/editor-web/assets/{chunk-VQ5W62QI-nJSMqAr0.js → chunk-VQ5W62QI-eTFh5_T9.js} +1 -1
  141. package/editor-web/assets/{chunk-WQQL4CDK-Btq2nbF6.js → chunk-WQQL4CDK-4PTupr9T.js} +1 -1
  142. package/editor-web/assets/{chunk-YZO67HFG-DTbcCoGt.js → chunk-YZO67HFG-D5XAAFWm.js} +1 -1
  143. package/editor-web/assets/{chunk-ZAUX2LTX-DVwkg-2N.js → chunk-ZAUX2LTX-CPsdaisO.js} +1 -1
  144. package/editor-web/assets/{chunk-ZCHMQSOR-BV39jOOE.js → chunk-ZCHMQSOR-ClnuUyfy.js} +1 -1
  145. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-Cj74-fhM.js → classDiagram-v2-4MYWR3UA-CM21waNF.js} +1 -1
  146. package/editor-web/assets/collaborator-CbTacvkB.js +1 -0
  147. package/editor-web/assets/color-picker-BmKFn2ww.js +1 -0
  148. package/editor-web/assets/{cynefin-EF2NZ3EQ-C0CkiipV.js → cynefin-EF2NZ3EQ-CJUHTgee.js} +1 -1
  149. package/editor-web/assets/{cynefinDiagram-WF24UDRP-hdsnJ4cI.js → cynefinDiagram-WF24UDRP-C9RIfuIV.js} +1 -1
  150. package/editor-web/assets/{dagre-NK4GIZVX-CC7WSgaK.js → dagre-NK4GIZVX-g-01KdpO.js} +1 -1
  151. package/editor-web/assets/deck-C0VxrlzX.js +1 -0
  152. package/editor-web/assets/{diagram-CBK3MWTC-DmaVm13J.js → diagram-CBK3MWTC-CbOjWUu-.js} +1 -1
  153. package/editor-web/assets/{diagram-I5XIIV2D-De8jqp7b.js → diagram-I5XIIV2D-C6psNS8J.js} +1 -1
  154. package/editor-web/assets/{diagram-ODIL2UCW-B5pBTulX.js → diagram-ODIL2UCW-C9PUE46P.js} +1 -1
  155. package/editor-web/assets/{diagram-PFBEJUXE-BYsXg5_w.js → diagram-PFBEJUXE-vJ_pnB33.js} +1 -1
  156. package/editor-web/assets/{diagram-RJA3I4VV-DZ8f6bYe.js → diagram-RJA3I4VV-FwYlEfJ-.js} +1 -1
  157. package/editor-web/assets/{diagram-TYUNFSNR-qXHUsauD.js → diagram-TYUNFSNR-FKpIxeUc.js} +1 -1
  158. package/editor-web/assets/{dist-DAhe-kFC.js → dist-B8_6sJ_V.js} +1 -1
  159. package/editor-web/assets/dist-BI_BaYhO.js +19 -0
  160. package/editor-web/assets/dist-BaWFMuvr.js +1 -0
  161. package/editor-web/assets/dist-BdmMT8fP.js +5 -0
  162. package/editor-web/assets/dist-BgKyM9U6.js +3 -0
  163. package/editor-web/assets/dist-BqijryYd.js +1 -0
  164. package/editor-web/assets/dist-ByguWp3a.js +16 -0
  165. package/editor-web/assets/{dist-9kuRjUTN.js → dist-CB-_0-X4.js} +6 -6
  166. package/editor-web/assets/dist-CCP24Lel.js +19 -0
  167. package/editor-web/assets/{dist-B3rd02Cg.js → dist-Cg0Z26Kv.js} +6 -6
  168. package/editor-web/assets/dist-CtYjYJdv.js +1 -0
  169. package/editor-web/assets/dist-D07Kj8GR.js +1 -0
  170. package/editor-web/assets/dist-D2rGVz9C.js +1 -0
  171. package/editor-web/assets/dist-D3DwRF1k.js +547 -0
  172. package/editor-web/assets/dist-DCI21ljp.js +6 -0
  173. package/editor-web/assets/dist-DH8oJJw9.js +35 -0
  174. package/editor-web/assets/dist-DJvfQvM7.js +24 -0
  175. package/editor-web/assets/dist-DmCDcb2_.js +4 -0
  176. package/editor-web/assets/dist-H0z_DXDz.js +19 -0
  177. package/editor-web/assets/{dist-DA72-4WB.js → dist-QLXI7XGS.js} +1 -1
  178. package/editor-web/assets/{docx-draw-L54blreB.js → docx-draw-Dxb67W2d.js} +1 -1
  179. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-B7-IfVI-.js → ebnfDiagram-V4P3TTPT-DBymUM-F.js} +1 -1
  180. package/editor-web/assets/{elk-QONTBCTQ-Gj_WaeBn.js → elk-QONTBCTQ-BNYR3OlS.js} +1 -1
  181. package/editor-web/assets/{erDiagram-KYQIGQAA-BDF6Qoqx.js → erDiagram-KYQIGQAA-cTNyOqW6.js} +1 -1
  182. package/editor-web/assets/esm-Cl3GKSDd.js +21 -0
  183. package/editor-web/assets/{eventmodeling-K75KTNOO-elxVXXEe.js → eventmodeling-K75KTNOO-C6FUZeXP.js} +1 -1
  184. package/editor-web/assets/eye-DwfE1USj.js +1 -0
  185. package/editor-web/assets/flowDiagram-IUGLLWBU-ukTovy07.js +1 -0
  186. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CEogW3jW.js → ganttDiagram-R7GPNTJY-LD9mqQ1x.js} +1 -1
  187. package/editor-web/assets/{gitGraph-VSP46ZUC-Bh9cRWFa.js → gitGraph-VSP46ZUC-CtCBcQFl.js} +1 -1
  188. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BQAvdM_V.js → gitGraphDiagram-PDYL7XHY-DYQpOozz.js} +1 -1
  189. package/editor-web/assets/hint-F4fIBnVU.js +1 -0
  190. package/editor-web/assets/index-Cah2zchD.css +2 -0
  191. package/editor-web/assets/index-omhSywJb.js +28 -0
  192. package/editor-web/assets/{info-OHQRW6UA-CdPrqere.js → info-OHQRW6UA-IXInKPRO.js} +1 -1
  193. package/editor-web/assets/{infoDiagram-MVDRKAX5-uwIMeP44.js → infoDiagram-MVDRKAX5-Ds7Cei7T.js} +1 -1
  194. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-rtfvqK7E.js → ishikawaDiagram-HPEHV2GE-DWs3qtAX.js} +1 -1
  195. package/editor-web/assets/{journeyDiagram-BOSHW7O7-mmhfIyVG.js → journeyDiagram-BOSHW7O7-BkNKVYBA.js} +1 -1
  196. package/editor-web/assets/{kanban-definition-FNSA4HC5-Fe7jBsi-.js → kanban-definition-FNSA4HC5-D3dMswnI.js} +1 -1
  197. package/editor-web/assets/{mermaid-parser.core-BxOSjBH9.js → mermaid-parser.core-D_W_0X0N.js} +3 -3
  198. package/editor-web/assets/{mermaid.core-BOln9YdH.js → mermaid.core-Bkirj-s5.js} +4 -4
  199. package/editor-web/assets/{mindmap-definition-6OY57UG3-M3Q1LOtO.js → mindmap-definition-6OY57UG3-CMKkAAvI.js} +1 -1
  200. package/editor-web/assets/{packet-JDAUHWVQ-Dbb0TUG6.js → packet-JDAUHWVQ-CzCkgCfg.js} +1 -1
  201. package/editor-web/assets/palette-DchDLJj6.js +1 -0
  202. package/editor-web/assets/panes-BexRuZd2.js +3 -0
  203. package/editor-web/assets/{pegDiagram-ECIUJNBX-BZMRpSFC.js → pegDiagram-ECIUJNBX-C8qHkx7M.js} +1 -1
  204. package/editor-web/assets/{pie-XZMESJXO-Ctm9XdKp.js → pie-XZMESJXO-BJqgxMrD.js} +1 -1
  205. package/editor-web/assets/{pieDiagram-GNMPY74T-cGbs5ZTl.js → pieDiagram-GNMPY74T-DyNntV5y.js} +1 -1
  206. package/editor-web/assets/progress-D1Uv3d1b.js +6 -0
  207. package/editor-web/assets/{quadrantDiagram-D57K4MC3-BUe_zsxT.js → quadrantDiagram-D57K4MC3-BHa-69ir.js} +1 -1
  208. package/editor-web/assets/{radar-ABXABTNO-CCmKtqLs.js → radar-ABXABTNO-BeRPjBBR.js} +1 -1
  209. package/editor-web/assets/{railroad-I3PHUGI6-k-yhjhjA.js → railroad-I3PHUGI6-BaRQqRsK.js} +1 -1
  210. package/editor-web/assets/{railroad-abnf-LNEFI6M7-B-PvntB3.js → railroad-abnf-LNEFI6M7-BZfwomxZ.js} +1 -1
  211. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-Ds2rua1h.js → railroad-ebnf-DWYD2UWJ-DbgqpEF5.js} +1 -1
  212. package/editor-web/assets/{railroad-peg-JR7BVNR7-jNZ2wEp2.js → railroad-peg-JR7BVNR7-BYOf3PsQ.js} +1 -1
  213. package/editor-web/assets/{railroadDiagram-Y72NRBL7-CTqSQ15w.js → railroadDiagram-Y72NRBL7-B5OAzOsD.js} +1 -1
  214. package/editor-web/assets/{requirementDiagram-EQYSW5RA-CUblhR5M.js → requirementDiagram-EQYSW5RA-wqYNoqO0.js} +1 -1
  215. package/editor-web/assets/ribbon-tabs-B3IC9WOt.js +1 -0
  216. package/editor-web/assets/row-DqS4-5b1.js +1 -0
  217. package/editor-web/assets/{sankeyDiagram-SY24JHO5-nSz6zDX3.js → sankeyDiagram-SY24JHO5-Crf6GRsa.js} +1 -1
  218. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DxTpOYuo.js → sequenceDiagram-BLEHNHQU-DUcHz4_d.js} +1 -1
  219. package/editor-web/assets/{session-BhClkDyr.js → session--OJYv_B7.js} +1 -1
  220. package/editor-web/assets/{snapshots-DwGHDN3t.js → snapshots-DYooVfOx.js} +1 -1
  221. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-C3e14iHY.js → stateDiagram-v2-A6IESKWZ-DbeLdnpS.js} +1 -1
  222. package/editor-web/assets/surface-BUoi7cmR.js +1 -0
  223. package/editor-web/assets/swatch-DCmD1gZl.js +1 -0
  224. package/editor-web/assets/{swimlanes-B3ENRKFQ-DPPdzNzu.js → swimlanes-B3ENRKFQ-BDi6AeJI.js} +1 -1
  225. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-2wwOmxbv.js +8 -0
  226. package/editor-web/assets/switch-b6GCy_ix.js +1 -0
  227. package/editor-web/assets/syntax-Bqyhj0dw.js +1 -0
  228. package/editor-web/assets/tablet-C6oePHEW.js +1 -0
  229. package/editor-web/assets/textarea-Bu6uPEqT.js +1 -0
  230. package/editor-web/assets/{timeline-definition-JXYKGLGB-DRTJ1_Er.js → timeline-definition-JXYKGLGB-B0awa2hh.js} +1 -1
  231. package/editor-web/assets/trash-2-SFReAxVM.js +1 -0
  232. package/editor-web/assets/{treeView-D4JQ5SDB-BYJ_m-i5.js → treeView-D4JQ5SDB-C91G0IGm.js} +1 -1
  233. package/editor-web/assets/{treemap-SAJKECNS-BcU6I6Rg.js → treemap-SAJKECNS-CiOWiwl2.js} +1 -1
  234. package/editor-web/assets/updating-D0GEtwnJ.js +1 -0
  235. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-YV92pS4o.js → usecaseDiagram-WPOLBNNX-DMYM1MRe.js} +1 -1
  236. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-oAvfHZtf.js → vennDiagram-Q3Y3IDCW-DQIJ5vvN.js} +1 -1
  237. package/editor-web/assets/{video-SJvDRCJK.js → video-mMOFXHYK.js} +1 -1
  238. package/editor-web/assets/{wardley-7MLQ67FV-BLNiqxtt.js → wardley-7MLQ67FV-C3H9HG8r.js} +1 -1
  239. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-SppgC6xW.js → wardleyDiagram-IVAIDKWA-DgsjqY1Y.js} +1 -1
  240. package/editor-web/assets/{words-BUlNNuH2.js → words-B2jQwWpp.js} +1 -1
  241. package/editor-web/assets/{words-zMedmPWc.js → words-DgMuEmDO.js} +1 -1
  242. package/editor-web/assets/workbook-NtMEyLgf.js +41 -0
  243. package/editor-web/assets/x-BAJilkKD.js +41 -0
  244. package/editor-web/assets/{xychartDiagram-4URNHDU4-BHMn_jwJ.js → xychartDiagram-4URNHDU4-DzsGI527.js} +1 -1
  245. package/editor-web/index.html +5 -6
  246. package/package.json +5 -2
  247. package/editor-web/assets/article-DHf6mOY_.js +0 -7
  248. package/editor-web/assets/article-Dns1-Xh-.js +0 -3
  249. package/editor-web/assets/bar-button-CKPfx2AB.js +0 -1
  250. package/editor-web/assets/channel-CVWSV3su.js +0 -1
  251. package/editor-web/assets/chip-Bn_9JRRG.js +0 -1
  252. package/editor-web/assets/collaborator-XiHOxwGM.js +0 -1
  253. package/editor-web/assets/deck-DQpNIS2p.js +0 -1
  254. package/editor-web/assets/dist--z0ZHp4T.js +0 -16
  255. package/editor-web/assets/dist-B5GOGGEe.js +0 -1
  256. package/editor-web/assets/dist-Bx6q9kCu.js +0 -1
  257. package/editor-web/assets/dist-C4hHtrJr.js +0 -1
  258. package/editor-web/assets/dist-CCXJewsi.js +0 -19
  259. package/editor-web/assets/dist-CfK2BLl8.js +0 -4
  260. package/editor-web/assets/dist-Cmux3oJ_.js +0 -1
  261. package/editor-web/assets/dist-Cspf85KV.js +0 -6
  262. package/editor-web/assets/dist-DOrGo1GD.js +0 -19
  263. package/editor-web/assets/dist-DjiCHlSu.js +0 -35
  264. package/editor-web/assets/dist-Do4a40Wn.js +0 -19
  265. package/editor-web/assets/dist-FKEWS3Co.js +0 -547
  266. package/editor-web/assets/dist-QKd2i6kG.js +0 -5
  267. package/editor-web/assets/dist-SGnOfLhx.js +0 -24
  268. package/editor-web/assets/dist-VmVB7tl4.js +0 -3
  269. package/editor-web/assets/esm-PQD5Pn8a.js +0 -21
  270. package/editor-web/assets/flowDiagram-IUGLLWBU-B-25n8zE.js +0 -1
  271. package/editor-web/assets/hint-CbwoSBMw.js +0 -1
  272. package/editor-web/assets/index-CXisi0Cj.css +0 -2
  273. package/editor-web/assets/index-wMlfx8aT.js +0 -28
  274. package/editor-web/assets/layout-SWqqA0yV.js +0 -1
  275. package/editor-web/assets/progress-DZQTiRLv.js +0 -6
  276. package/editor-web/assets/ribbon-DajdQ_Ya.js +0 -1
  277. package/editor-web/assets/row-Bei9HNEe.js +0 -1
  278. package/editor-web/assets/split-DBAbwPZ5.js +0 -3
  279. package/editor-web/assets/surface-CIF0Ae0z.js +0 -1
  280. package/editor-web/assets/swatch-BUzr_XmH.js +0 -1
  281. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B8n3zOw_.js +0 -8
  282. package/editor-web/assets/switch-DrZxoPQS.js +0 -1
  283. package/editor-web/assets/syntax-emXV4DnN.js +0 -1
  284. package/editor-web/assets/tabs-BwU2E7bU.js +0 -1
  285. package/editor-web/assets/textarea-BX_ax3X8.js +0 -1
  286. package/editor-web/assets/type-CvZ0HZsV.js +0 -41
  287. package/editor-web/assets/workbook-BZKYx4WB.js +0 -41
@@ -0,0 +1 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{b as t,c as n,d as r,f as i,h as a,s as o,u as s}from"./react-Byupo4pA.js";import{Et as c,ht as l,n as u,yt as d}from"./x-BAJilkKD.js";import{S as f,_ as p,w as m}from"./schemas-DlRAoVtq.js";import{F as h,g,j as _,x as v}from"./snapshots-DYooVfOx.js";import{t as y}from"./jsx-runtime-DePvh3-m.js";import{i as b}from"./dist-DCI21ljp.js";import{t as x}from"./createLucideIcon-euu7Wcd9.js";import{t as ee}from"./zoom-in-yAGKspfC.js";import{n as te,t as ne}from"./updating-D0GEtwnJ.js";var S=x(`corner-up-left`,[[`path`,{d:`M20 20v-7a4 4 0 0 0-4-4H4`,key:`1nkjon`}],[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}]]),C=e(t(),1),w=y(),T=m([p(),p(),p()]),E={"scenery/viewer":h(f({item:_,camera:f({position:T,target:T}).optional()}),g,`The address of a scenery's viewer page, for a sandboxed frame: it tells what the person does by postMessage.`)},re=v(E),D=d({en:{title:`3D scenery`,loading:`Loading the scenery`,zoomIn:`Zoom in`,back:`Back`,size:(e,t,n)=>`${e} × ${t} × ${n} m`},"zh-cn":{title:`3D 布景`,loading:`正在加载布景`,zoomIn:`放大`,back:`返回`,size:(e,t,n)=>`${e} × ${t} × ${n} 米`},"zh-tw":{title:`3D 布景`,loading:`正在載入布景`,zoomIn:`放大`,back:`返回`,size:(e,t,n)=>`${e} × ${t} × ${n} 公尺`},ja:{title:`3D セット`,loading:`セットを読み込み中`,zoomIn:`ズームイン`,back:`戻る`,size:(e,t,n)=>`${e} × ${t} × ${n} m`},ko:{title:`3D 세트`,loading:`세트를 불러오는 중`,zoomIn:`확대`,back:`뒤로`,size:(e,t,n)=>`${e} × ${t} × ${n} m`},es:{title:`Decorado 3D`,loading:`Cargando el decorado`,zoomIn:`Acercar`,back:`Atrás`,size:(e,t,n)=>`${e} × ${t} × ${n} m`},fr:{title:`Décor 3D`,loading:`Chargement du décor`,zoomIn:`Zoomer`,back:`Retour`,size:(e,t,n)=>`${e} × ${t} × ${n} m`},de:{title:`3D-Kulisse`,loading:`Kulisse wird geladen`,zoomIn:`Heranzoomen`,back:`Zurück`,size:(e,t,n)=>`${e} × ${t} × ${n} m`},pt:{title:`Cenário 3D`,loading:`Carregando o cenário`,zoomIn:`Aproximar`,back:`Voltar`,size:(e,t,n)=>`${e} × ${t} × ${n} m`}}),O=8;function k(e,t,n,r=8){let i={left:n.left+O,top:n.top+O},a={left:Math.max(i.left,n.right-O-t.width),top:Math.max(i.top,n.bottom-O-t.height)},o=e=>Math.max(i.left,Math.min(e,a.left)),s=e=>Math.max(i.top,Math.min(e,a.top)),c=o(e.left),l=e.bottom+r;if(l<=a.top)return{left:c,top:l};let u=e.top-r-t.height;if(u>=i.top)return{left:c,top:u};let d=e.right+r;return{left:d<=a.left?d:o(e.left-r-t.width),top:s((e.top+e.bottom)/2-t.height/2)}}var A=e=>e>=1?e.toFixed(2):e>=.1?e.toFixed(3):e.toFixed(4),j=1500,M={width:300,height:56},N=e=>[e[0],e[1],e[2]],ie=e=>Array.isArray(e)&&e.length===3&&e.every(e=>typeof e==`number`);function ae(e){if(typeof e!=`object`||!e)return;let t=e;if(t.allyhub===!0){if(t.type===`error`)return{type:`error`,message:typeof t.message==`string`?t.message:``};if(t.type===`scenery`&&typeof t.event==`object`)return{type:`scenery`,event:t.event}}}function P({className:e}){return(0,w.jsxs)(`div`,{className:`flex size-full min-h-0 flex-col`,children:[(0,w.jsx)(b,{}),(0,w.jsx)(`div`,{className:`min-h-0 flex-1`,children:(0,w.jsx)(F,{...e===void 0?{}:{className:e}})})]})}function F({className:e}){let t=o(),d=n(),f=D.of(d?.locale),p=d?.item,m=p?.id,h=p?.entry,g=(0,C.useRef)(null),_=(0,C.useRef)(null),v=(0,C.useRef)(void 0),[y,b]=(0,C.useState)({n:0}),[x,T]=(0,C.useState)(),[E,O]=(0,C.useState)(),P=a(E),[F,oe]=(0,C.useState)(),[se,I]=(0,C.useState)(),[ce,L]=(0,C.useState)([]),[R,z]=(0,C.useState)(null),[B,le]=(0,C.useState)({hover:null,select:null}),[V,H]=(0,C.useState)(!1);(0,C.useEffect)(()=>{if(m===void 0)return;let e=!0,n=y.from;return re(t,`scenery/viewer`,{item:m,...n?{camera:{position:N(n.position),target:N(n.target)}}:{}}).then(t=>{e&&(T({n:y.n,url:t.url}),O(t.probe))},t=>{e&&I({n:y.n,message:t instanceof Error?t.message:String(t)})}),()=>{e=!1}},[t,m,y]),s(m,()=>{let e=v.current;b(t=>({n:t.n+1,...e?{from:e}:{}}))});let U=(0,C.useCallback)(e=>{g.current?.contentWindow?.postMessage({allyhub:!0,command:e},`*`)},[]),W=(0,C.useRef)([]),G=(0,C.useRef)(new Map),K=(0,C.useRef)(!1),q=()=>{let e=g.current?.getBoundingClientRect();return e&&e.width>0&&e.height>0?{x:e.x,y:e.y,width:e.width,height:e.height}:void 0};i({hold:()=>Promise.resolve({key:`${m??``}@${String(y.n)}@${JSON.stringify(v.current??null)}`,what:`The 3D scene ${m??``}`,...h===void 0?{}:{source:{path:h}}}),locate:()=>Promise.resolve({elements:[]})}),r({element:()=>g.current,pictures:()=>new Promise(e=>{let t=q();W.current.push(n=>{e(t?[{rect:t,mime:n.slice(5,n.indexOf(`;`)),data:n.slice(n.indexOf(`,`)+1)}]:[])}),K.current&&U({type:`shot`})}),locate:async e=>{let t=q(),n=await Promise.all(c(e).map(({x:e,y:n})=>new Promise(r=>{let i=crypto.randomUUID(),a=setTimeout(()=>{G.current.delete(i),r(null)},j);G.current.set(i,e=>{clearTimeout(a),r(e)}),U({type:`pick`,id:i,x:e-(t?.x??0),y:n-(t?.y??0)})})));return{elements:[...new Set(n.flatMap(e=>e?[e.path.join(` > `)]:[]))].map(e=>({name:`the object ${e}`,...h===void 0?{}:{source:{path:h}}}))}},pick:e=>new Promise(t=>{let n=q(),r=crypto.randomUUID(),i=setTimeout(()=>{G.current.delete(r),t(void 0)},j);G.current.set(r,e=>{clearTimeout(i),t(e?.screen&&n?{element:{name:`the object ${e.path.join(` > `)}`,...h===void 0?{}:{source:{path:h}}},outline:[e.screen.map(([e,t])=>({x:n.x+e,y:n.y+t}))]}:void 0)}),U({type:`pick`,id:r,x:e.x-(n?.x??0),y:e.y-(n?.y??0)})})}),(0,C.useEffect)(()=>{let e=_.current;if(!e)return;let t=e=>{K.current&&(e.preventDefault(),U({type:`wheel`,deltaY:e.deltaY,ctrlKey:e.ctrlKey}))};return e.addEventListener(`wheel`,t,{passive:!1}),()=>{e.removeEventListener(`wheel`,t)}},[U]);let J=(0,C.useRef)(null);(0,C.useEffect)(()=>{J.current=R},[R]),(0,C.useEffect)(()=>{let e=e=>{if(!x||e.source!==g.current?.contentWindow)return;let t=ae(e.data);if(!t)return;if(t.type===`error`){I({n:x.n,message:t.message});return}let n=t.event;switch(n.type){case`ready`:oe(x.n),L(n.cameras),K.current=!0,W.current.forEach(()=>{U({type:`shot`})}),J.current&&U({type:`select`,path:J.current.path});return;case`select`:z(n.object);return;case`camera`:{let e=n.camera;ie(e.target)&&(v.current={position:e.position,target:e.target,...e.lens===void 0?{}:{lens:e.lens}}),H(n.framed);return}case`place`:le({hover:n.hover,select:n.select});return;case`shot`:W.current.shift()?.(n.picture);return;case`picked`:G.current.get(n.id)?.(n.object),G.current.delete(n.id);return;default:return}};return window.addEventListener(`message`,e),()=>{window.removeEventListener(`message`,e)}},[U,t,x]);let ue=(0,C.useCallback)(()=>{R&&U({type:`select`,path:null}),z(null)},[U,R]),[Y,de]=(0,C.useState)({width:0,height:0});(0,C.useEffect)(()=>{let e=_.current;if(!e)return;let t=new ResizeObserver(()=>{de({width:e.clientWidth,height:e.clientHeight})});return t.observe(e),()=>{t.disconnect()}},[]);let X=R?B.select:null,Z=R&&X?k({left:X.x,top:X.y,right:X.x+X.width,bottom:X.y+X.height},M,{left:0,top:0,right:Y.width,bottom:Y.height}):void 0,Q=x!==void 0&&F===x.n,$=se?.n===y.n;return(0,w.jsxs)(`div`,{ref:_,"data-testid":`scenery-viewer`,className:l(`bg-paper relative size-full overflow-hidden`,e),onKeyDown:e=>{e.key===`Escape`&&R&&ue()},children:[x&&P!==void 0&&(0,w.jsx)(`iframe`,{ref:g,src:x.url,title:f.title,...P?{sandbox:`allow-scripts`}:{},"data-testid":`scenery-frame`,...Q?{"data-ready":``}:{},className:l(`absolute inset-0 size-full border-0 transition-opacity`,Q?`opacity-100`:`opacity-0`)},x.n),!Q&&!$&&(0,w.jsx)(`p`,{className:`text-lead absolute inset-0 grid place-items-center text-sm`,children:f.loading}),$&&(Q?(0,w.jsx)(te,{}):(0,w.jsx)(ne,{className:`absolute inset-0 flex items-center justify-center`})),Q&&B.hover&&(0,w.jsx)(`div`,{"aria-hidden":!0,className:`border-pencil pointer-events-none absolute rounded-sm border border-dashed`,style:{left:B.hover.x,top:B.hover.y,width:B.hover.width,height:B.hover.height}}),Q&&R&&B.select&&(0,w.jsx)(`div`,{"aria-hidden":!0,className:`border-pencil pointer-events-none absolute rounded-sm border-2`,style:{left:B.select.x,top:B.select.y,width:B.select.width,height:B.select.height}}),Q&&(0,w.jsxs)(`div`,{className:`pointer-events-none absolute inset-x-3 bottom-3 flex flex-wrap items-center gap-1.5`,children:[ce.map(e=>(0,w.jsx)(u,{size:`sm`,variant:`outline`,className:`bg-card pointer-events-auto`,"data-testid":`scenery-camera`,onClick:()=>{U({type:`camera`,name:e})},children:e},e)),V&&(0,w.jsxs)(u,{size:`sm`,variant:`outline`,className:`bg-card pointer-events-auto ml-auto`,"data-testid":`scenery-back`,onClick:()=>{U({type:`back`})},children:[(0,w.jsx)(S,{size:14}),f.back]})]}),Z&&R&&(0,w.jsxs)(`div`,{role:`dialog`,"aria-label":R.path.join(` › `),"data-testid":`scenery-card`,className:`bg-card animate-set-in shadow-overlay absolute z-10 flex items-start gap-2 rounded-lg border p-3`,style:{left:Z.left,top:Z.top,width:M.width},children:[(0,w.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,w.jsx)(`p`,{className:`truncate text-sm font-semibold`,children:R.path.join(` › `)}),(0,w.jsx)(`p`,{className:`text-lead text-xs`,children:f.size(A(R.size[0]),A(R.size[1]),A(R.size[2]))})]}),(0,w.jsxs)(u,{size:`sm`,variant:`ghost`,"data-testid":`scenery-zoom`,onClick:()=>{U({type:`frame`,path:R.path})},children:[(0,w.jsx)(ee,{size:14}),f.zoomIn]})]})]})}export{P as SceneryViewer,P as default,D as WORDS,k as cardPlace,A as metres};
@@ -0,0 +1 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{b as t,c as n,d as r,f as i,s as a,y as o}from"./react-Byupo4pA.js";import{Dt as s,Ot as c,ht as l,kt as u,yt as d}from"./x-BAJilkKD.js";import{t as f}from"./jsx-runtime-DePvh3-m.js";import{i as p}from"./dist-DCI21ljp.js";import{t as m}from"./audio-lines-BFoW_IeO.js";import{f as h}from"./index-omhSywJb.js";import{n as g,r as _,t as v}from"./updating-D0GEtwnJ.js";import{t as y}from"./surface-BUoi7cmR.js";var b=e(t(),1),x=f(),S={png:`picture`,jpg:`picture`,jpeg:`picture`,gif:`picture`,webp:`picture`,avif:`picture`,bmp:`picture`,ico:`picture`,svg:`picture`,mp4:`video`,m4v:`video`,mov:`video`,webm:`video`,mp3:`sound`,wav:`sound`,m4a:`sound`,aac:`sound`,ogg:`sound`,oga:`sound`,opus:`sound`,flac:`sound`,pdf:`pdf`},C=Object.keys(S);function w(e){let t=e.slice(e.lastIndexOf(`/`)+1),n=t.lastIndexOf(`.`);return n<=0?void 0:S[t.slice(n+1).toLowerCase()]}var T=d({en:{loading:`Opening the file…`,page:(e,t)=>`Page ${String(e)} of ${String(t)}`},"zh-cn":{loading:`正在打开文件…`,page:(e,t)=>`第 ${String(e)} 页,共 ${String(t)} 页`},"zh-tw":{loading:`正在開啟檔案…`,page:(e,t)=>`第 ${String(e)} 頁,共 ${String(t)} 頁`},ja:{loading:`ファイルを開いています…`,page:(e,t)=>`${String(t)} ページ中 ${String(e)} ページ`},ko:{loading:`파일을 여는 중…`,page:(e,t)=>`${String(t)}페이지 중 ${String(e)}페이지`},es:{loading:`Abriendo el archivo…`,page:(e,t)=>`Página ${String(e)} de ${String(t)}`},fr:{loading:`Ouverture du fichier…`,page:(e,t)=>`Page ${String(e)} sur ${String(t)}`},de:{loading:`Datei wird geöffnet …`,page:(e,t)=>`Seite ${String(e)} von ${String(t)}`},pt:{loading:`Abrindo o arquivo…`,page:(e,t)=>`Página ${String(e)} de ${String(t)}`}}),E=300,D=1200,O=16;async function k(e){let[t,n]=await Promise.all([h(()=>import(`./pdf-BHx8b9rl.js`),[],import.meta.url),h(()=>import(`./pdf.worker.min-DI4FfYVf.js`),[],import.meta.url)]);t.GlobalWorkerOptions.workerSrc=n.default;let r=t.getDocument({url:e});return{pdf:await r.promise,close:()=>r.destroy()}}var A=e=>{let t=e.getBoundingClientRect();return{x:t.x,y:t.y,width:t.width,height:t.height}};function j({pdf:e,number:t,width:n,drawing:r}){let i=(0,b.useRef)(null),[a,o]=(0,b.useState)(),[s,c]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{let r=!0;return e.getPage(t).then(e=>{if(!r)return;let t=e.getViewport({scale:1});o({width:n,height:n*t.height/t.width})}),()=>{r=!1}},[e,t,n]),(0,b.useEffect)(()=>{let e=i.current;if(!e||s)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&c(!0)},{rootMargin:`800px 0px`});return t.observe(e),()=>{t.disconnect()}},[s,a]),(0,b.useEffect)(()=>{let n=i.current;if(!n||!s||!a)return;let o;return r((async()=>{let r=await e.getPage(t),i=window.devicePixelRatio||1,s=r.getViewport({scale:1}),c=r.getViewport({scale:a.width/s.width*i});n.width=Math.round(c.width),n.height=Math.round(c.height);let l=r.render({canvas:n,viewport:c});o=l,await l.promise.catch(()=>void 0)})()),()=>{o?.cancel()}},[e,t,s,a,r]),(0,x.jsx)(`canvas`,{ref:i,"data-page":t,"data-testid":`media-viewer-pdf-page`,className:`border-rule border bg-white`,style:{width:a?.width??n,height:a?.height??n*1.3}})}function M({path:e,url:t,version:r}){let a=T.of(n()?.locale),o=(0,b.useRef)(null),[c,d]=(0,b.useState)(),[f,p]=(0,b.useState)(),[m,h]=(0,b.useState)(0),g=(0,b.useRef)(new Set),_=(0,b.useCallback)(e=>{g.current.add(e),e.finally(()=>g.current.delete(e))},[]);(0,b.useEffect)(()=>{let e=!0,n;return k(t).then(t=>{e?(n=t.close,d(t.pdf)):t.close()},t=>{e&&p(t instanceof Error?t.message:String(t))}),()=>{e=!1,n?.()}},[t]),(0,b.useEffect)(()=>{let e=o.current;if(!e)return;let t=new ResizeObserver(()=>{h(Math.max(0,Math.min(e.clientWidth-32,960)))});return t.observe(e),()=>{t.disconnect()}},[]);let y=()=>[...o.current?.querySelectorAll(`canvas[data-page]`)??[]],S=e=>`page ${e.dataset.page??`?`}`;i({hold:async()=>(await Promise.all([...g.current]),{key:`${e}@${String(r)}`,what:`The PDF ${e}`,source:{path:e}}),locate:t=>{let n=y().filter(e=>u(t,A(e)));return Promise.resolve({elements:n.map(t=>({name:`${S(t)} of the PDF ${e}`,source:{path:e}})),...n.length===0?{}:{where:`on ${n.map(S).join(`, `)}`}})},pick:t=>{let n=y().find(e=>{let n=A(e);return t.x>=n.x&&t.x<=n.x+n.width&&t.y>=n.y&&t.y<=n.y+n.height});return Promise.resolve(n&&{element:{name:`${S(n)} of the PDF ${e}`,source:{path:e}},outline:s(A(n)),where:`on ${S(n)}`})}});let C=Math.min(c?.numPages??0,E),[w,M]=(0,b.useState)(),N=(0,b.useRef)(void 0);return(0,b.useEffect)(()=>()=>{clearTimeout(N.current)},[]),(0,x.jsxs)(`div`,{ref:o,onScroll:()=>{let e=o.current;if(!e)return;let t=e.getBoundingClientRect().top+e.clientHeight/2,n=1;for(let e of y())e.getBoundingClientRect().top<=t&&(n=Number(e.dataset.page));M({at:n,live:!0}),clearTimeout(N.current),N.current=setTimeout(()=>{M(e=>e&&{...e,live:!1})},D)},className:`size-full overflow-auto`,"data-testid":`media-viewer-pdf`,"data-state":f===void 0?c?`open`:`loading`:`updating`,children:[f===void 0?!c&&(0,x.jsx)(`p`,{className:`text-lead p-6 text-center text-sm`,children:a.loading}):(0,x.jsx)(v,{}),(0,x.jsx)(`div`,{className:`flex flex-col items-center`,style:{gap:O,padding:O},children:c&&m>0&&Array.from({length:C},(e,t)=>(0,x.jsx)(j,{pdf:c,number:t+1,width:m,drawing:_},t))}),w&&C>1&&(0,x.jsx)(`p`,{className:l(`bg-background text-lead shadow-overlay pointer-events-none absolute bottom-4 left-1/2 -translate-x-1/2 rounded-md px-2.5 py-1 text-xs tabular-nums motion-safe:transition-opacity`,w.live?`opacity-100`:`opacity-0`),"data-testid":`media-viewer-pdf-page-number`,"aria-live":`polite`,children:a.page(w.at,C)})]})}function N(e){let t=a(),[n,r]=(0,b.useState)(0),[i,o]=(0,b.useState)({});return(0,b.useEffect)(()=>{let n=!0,i,a=t.on(`files/changed`,t=>{t.watch===i&&t.changes.some(t=>t.path===e)&&r(e=>e+1)});return t[`files/watch`]({paths:[e]}).then(e=>{n?i=e.watch:t[`files/unwatch`]({watch:e.watch}).catch(()=>void 0)},()=>void 0),()=>{n=!1,a(),i!==void 0&&t[`files/unwatch`]({watch:i}).catch(()=>void 0)}},[t,e]),(0,b.useEffect)(()=>{let r=!0;return t[`files/url`]({path:e}).then(({url:e})=>{if(!r)return;let t=new URL(e,location.href);n>0&&t.searchParams.set(`v`,String(n)),o({url:t.href})},e=>{r&&o({failed:e instanceof Error?e.message:String(e)})}),()=>{r=!1}},[t,e,n]),{url:i.url,version:n,failed:i.failed}}function P(e,t){let n=e.getBoundingClientRect();if(t.width<=0||t.height<=0||n.width<=0)return;let r=Math.min(n.width/t.width,n.height/t.height),i=t.width*r,a=t.height*r;return{x:n.x+(n.width-i)/2,y:n.y+(n.height-a)/2,width:i,height:a}}var F=(e,t)=>e.x>=t.x&&e.x<=t.x+t.width&&e.y>=t.y&&e.y<=t.y+t.height;function I({path:e,url:t,version:n}){let r=(0,b.useRef)(null),[a,o]=(0,b.useState)(!1),d=()=>{let e=r.current;if(!e?.complete)return;let t={width:e.naturalWidth,height:e.naturalHeight},n=P(e,t);return n&&{box:n,...t}},f=()=>({name:`the picture ${e}`,source:{path:e}});return i({hold:()=>Promise.resolve({key:`${e}@${String(n)}`,what:`The picture ${e}`,source:{path:e}}),locate:t=>{let n=d();if(!n||!u(t,n.box))return Promise.resolve({elements:[]});let r=n.width/n.box.width,i=e=>({x:(e.x-n.box.x)*r,y:(e.y-n.box.y)*r});return Promise.resolve({elements:[{...f(),regions:[{in:`the picture`,file:e,width:n.width,height:n.height,...c(t,i),scale:r}]}]})},pick:e=>{let t=d();return Promise.resolve(t&&F(e,t.box)?{element:f(),outline:s(t.box)}:void 0)}}),(0,x.jsx)(`div`,{className:l(`size-full`,a?`overflow-auto`:`flex items-center justify-center p-6`),onDoubleClick:()=>{o(e=>!e)},"data-testid":`media-viewer-stage`,"data-size":a?`actual`:`fit`,children:(0,x.jsx)(`img`,{ref:r,src:t,alt:``,draggable:!1,className:l(`select-none`,a?`m-auto block max-w-none p-6`:`size-full object-contain`),"data-testid":`media-viewer-picture`})})}function L({path:e,url:t,version:n}){let a=(0,b.useRef)(null),s=(0,b.useRef)(!1),c=()=>(a.current?.currentTime??0).toFixed(2);return i({hold:()=>Promise.resolve({key:`${e}@${String(n)}`,what:`The video ${e}`,source:{path:e}}),locate:()=>Promise.resolve({elements:[]})}),r({element:()=>a.current,hold:()=>{let e=a.current;return s.current=e!==null&&!e.paused,e?.pause(),Promise.resolve()},release:()=>{s.current&&a.current?.play().catch(()=>void 0),s.current=!1},pictures:()=>{let e=a.current,t=e?o(e):void 0;return Promise.resolve(t?[t]:[])},locate:()=>Promise.resolve({elements:[{name:`the video ${e}`,source:{path:e}}],where:`on the video ${e} at ${c()} s`})}),(0,x.jsx)(`video`,{ref:a,src:t,controls:!0,playsInline:!0,preload:`metadata`,className:`size-full object-contain`,"data-testid":`media-viewer-video`})}function R({path:e,url:t,version:n}){let r=(0,b.useRef)(null),a=(0,b.useRef)(!1);return i({hold:()=>{let t=r.current;return a.current=t!==null&&!t.paused,t?.pause(),Promise.resolve({key:`${e}@${String(n)}`,what:`The sound ${e}`,source:{path:e}})},locate:()=>Promise.resolve({elements:[{name:`the sound ${e}`,source:{path:e}}],where:`at ${(r.current?.currentTime??0).toFixed(2)} s`}),release:()=>{a.current&&r.current?.play().catch(()=>void 0),a.current=!1}}),(0,x.jsxs)(y,{className:`flex w-full max-w-sm flex-col items-center gap-2 p-5 text-center`,children:[(0,x.jsx)(m,{className:`text-lead-soft size-5`,strokeWidth:1.5,"aria-hidden":!0}),(0,x.jsx)(`p`,{className:`text-ink font-serif text-sm font-semibold`,children:e.slice(e.lastIndexOf(`/`)+1)}),(0,x.jsx)(`audio`,{ref:r,src:t,controls:!0,preload:`metadata`,className:`mt-1 w-full`,"data-testid":`media-viewer-sound`})]})}var z={picture:I,video:L,sound:R,pdf:M};function B(){let e=n()?.item.entry??``,t=w(e),{url:r,version:i,failed:a}=N(e),{shown:o}=_(a===void 0?r:void 0),s=t===void 0?void 0:z[t];return(0,x.jsxs)(`div`,{className:`flex size-full flex-col`,"data-testid":`media-viewer`,children:[(0,x.jsx)(p,{}),(0,x.jsx)(`div`,{className:l(`bg-stone relative min-h-0 flex-1`,(t===`video`||t===`sound`)&&`flex items-center justify-center p-6`),children:o!==void 0&&s?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s,{path:e,url:o,version:i},o),a===void 0?null:(0,x.jsx)(g,{})]}):a===void 0?null:(0,x.jsx)(v,{})})]})}export{C as MEDIA_EXTENSIONS,B as MediaViewer,B as default,T as WORDS,w as mediaOf};
@@ -0,0 +1 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{b as t,c as n,d as r,f as i,m as a,o,s,u as c}from"./react-Byupo4pA.js";import{Dt as l,Et as u,bt as d,ht as f,n as ee,yt as p}from"./x-BAJilkKD.js";import{C as m,S as h,_ as g,s as _}from"./schemas-DlRAoVtq.js";import{F as v,j as y,o as b,x}from"./snapshots-DYooVfOx.js";import{t as S}from"./jsx-runtime-DePvh3-m.js";import{i as te,v as ne,y as C}from"./dist-DCI21ljp.js";import{i as w,n as T,r as E,t as D}from"./hint-F4fIBnVU.js";import{n as O,r as k,t as A}from"./tablet-C6oePHEW.js";import{F as re}from"./index-omhSywJb.js";import{t as ie}from"./updating-D0GEtwnJ.js";var j=e(t(),1),M=S(),N=h({file:y}),P={width:g().int().positive().max(4096),height:g().int().positive().max(4096)},F={scroll:h({x:g().min(0),y:g().min(0)}).optional()},I=h({selector:m(),tag:m(),text:m()}),L={"html/still":v(N.extend({...P,...F,scale:g().positive().max(4).default(1),hold:m().optional()}),h({image:h({mime:m(),data:m()})}),`An HTML file's page drawn at a frame's size, where its frame's page is scrolled, as its frame shows it: what Mark up lays over the frame, which the window cannot read.`),"html/hold":v(N.extend({...P,scale:g().positive().max(4).default(1)}),h({hold:m()}),`An HTML file's page opened at a frame's size and kept as it is while a person marks it: html/still and html/at draw and read it as it was, until html/release.`),"html/release":v(h({hold:m()}),h({}),`Lets a page held for notes go.`),"html/at":v(N.extend({...P,...F,points:_(h({x:g(),y:g()})).min(1).max(24),hold:m().optional()}),h({elements:_(I)}),`What is at places of an HTML file's page drawn at a frame's size, where its frame's page is scrolled (as html/still draws it): what a person's mark on its frame is on.`),"html/pick":v(N.extend({...P,...F,x:g(),y:g(),hold:m().optional()}),h({element:I.extend({box:h({x:g(),y:g(),width:g().positive(),height:g().positive()})}).optional()}),`The one element in front at a place of an HTML file's page drawn at a frame's size, where its frame's page is scrolled (as html/still draws it), with its box: what Mark up's Select picks there.`)},R=x(L),z=p({en:{starting:`Opening the page…`,asleep:`Showing the page needs the agent awake.`,edit:`Edit`,width:`Width`,fit:`Fit the window`,tablet:`Tablet`,phone:`Phone`,wide:(e,t)=>`${e}, ${String(t)} px`},"zh-cn":{starting:`正在打开网页…`,asleep:`显示网页需要 Agent 处于唤醒状态。`,edit:`编辑`,width:`宽度`,fit:`适应窗口`,tablet:`平板`,phone:`手机`,wide:(e,t)=>`${e}, ${String(t)} px`},"zh-tw":{starting:`正在開啟網頁…`,asleep:`顯示網頁需要 Agent 處於喚醒狀態。`,edit:`編輯`,width:`寬度`,fit:`符合視窗`,tablet:`平板`,phone:`手機`,wide:(e,t)=>`${e}, ${String(t)} px`},ja:{starting:`ページを開いています…`,asleep:`ページを表示するにはエージェントの起動が必要です。`,edit:`編集`,width:`幅`,fit:`ウィンドウに合わせる`,tablet:`タブレット`,phone:`スマートフォン`,wide:(e,t)=>`${e}, ${String(t)} px`},ko:{starting:`페이지를 여는 중…`,asleep:`페이지를 표시하려면 에이전트가 깨어 있어야 합니다.`,edit:`편집`,width:`너비`,fit:`창에 맞추기`,tablet:`태블릿`,phone:`휴대폰`,wide:(e,t)=>`${e}, ${String(t)} px`},es:{starting:`Abriendo la página…`,asleep:`Para mostrar la página, el agente debe estar activo.`,edit:`Editar`,width:`Ancho`,fit:`Ajustar a la ventana`,tablet:`Tableta`,phone:`Teléfono`,wide:(e,t)=>`${e}, ${String(t)} px`},fr:{starting:`Ouverture de la page…`,asleep:`Afficher la page nécessite que l’agent soit actif.`,edit:`Modifier`,width:`Largeur`,fit:`Ajuster à la fenêtre`,tablet:`Tablette`,phone:`Téléphone`,wide:(e,t)=>`${e}, ${String(t)} px`},de:{starting:`Seite wird geöffnet…`,asleep:`Um die Seite anzuzeigen, muss der Agent wach sein.`,edit:`Bearbeiten`,width:`Breite`,fit:`An Fenster anpassen`,tablet:`Tablet`,phone:`Smartphone`,wide:(e,t)=>`${e}, ${String(t)} px`},pt:{starting:`Abrindo a página…`,asleep:`Para mostrar a página, o agente precisa estar ativo.`,edit:`Editar`,width:`Largura`,fit:`Ajustar à janela`,tablet:`Tablet`,phone:`Celular`,wide:(e,t)=>`${e}, ${String(t)} px`}}),B={tablet:768,phone:375},V={fit:k,tablet:A,phone:O};function H({className:e}){let t=n();if(t===void 0)return null;let{id:r,entry:i}=t.item;return(0,M.jsx)(W,{id:r,file:i,w:z.of(d(t.locale)),className:e},r)}function U(e){let[t,n]=(0,j.useState)({width:0,height:0});return(0,j.useLayoutEffect)(()=>{let t=e.current;if(!t)return;let r=new ResizeObserver(([e])=>{e&&n({width:e.contentRect.width,height:e.contentRect.height})});return r.observe(t),()=>{r.disconnect()}},[e]),t}function W({id:e,file:t,w:n,className:d}){let p=s(),m=t.slice(t.lastIndexOf(`/`)+1),[h,g]=(0,j.useState)({at:`starting`}),[_,v]=(0,j.useState)(`fit`),[y,x]=(0,j.useState)(0);c(e,()=>{x(e=>e+1)});let[S,O]=(0,j.useState)(0),k=a(),A=(0,j.useRef)(null),N=U(A),P=(0,j.useRef)(null),F=o(P),I=h.at===`asleep`?k:void 0,L=h.at===`failed`?y:void 0;(0,j.useEffect)(()=>{let t=!0;return re(p,`items/page`,{item:e}).then(({url:e})=>{t&&g({at:`ready`,url:e})},e=>{t&&g(b(e)?{at:`asleep`}:{at:`failed`,message:e instanceof Error?e.message:String(e)})}),()=>{t=!1}},[p,e,L,I]);let z=_!==`fit`,H=z?16:0,W=_===`fit`?Math.max(1,Math.round(N.width)):B[_],G=Math.max(1,N.width-2*H),K=N.width>0?Math.min(1,G/W):1,q=Math.max(1,Math.round((N.height-H)/K));i({hold:()=>Promise.resolve({key:`html@${e}@${crypto.randomUUID()}`,what:m,source:{path:t}}),locate:()=>Promise.resolve({elements:[]})});let J=()=>{let e=P.current?.getBoundingClientRect();return e&&e.width>0&&e.height>0?{x:e.x,y:e.y,width:e.width,height:e.height}:void 0},Y=e=>({name:`the element ${e.selector} of the page ${t}`,source:{path:t},...e.text===``?{}:{text:e.text}}),X=()=>{let{y:e}=F.at();return`on the page ${t}, ${String(W)} px wide, ${e>0?`scrolled ${String(Math.round(e))} px down`:`from its top`}`},Z=(0,j.useRef)(void 0),Q=()=>Z.current??Promise.resolve(void 0),$=()=>Math.min(4,Math.max(1,window.devicePixelRatio*K));return r({element:()=>P.current,hold:()=>(Z.current=R(p,`html/hold`,{file:t,width:W,height:q,scale:$()}).then(e=>e.hold,()=>void 0),Z.current.then(()=>void 0)),release:()=>{let e=Z.current;Z.current=void 0,e?.then(e=>e===void 0?void 0:R(p,`html/release`,{hold:e}).catch(()=>void 0))},pictures:async()=>{let e=J();if(!e)return[];let n=await Q(),{image:r}=await R(p,`html/still`,{file:t,width:W,height:q,scale:$(),scroll:F.at(),...n===void 0?{}:{hold:n}});return[{...r,rect:e}]},locate:async e=>{let n=J(),r=n?u(e).map(e=>({x:(e.x-n.x)/K,y:(e.y-n.y)/K})).filter(e=>e.x>=0&&e.y>=0&&e.x<=W&&e.y<=q):[],i=await Q(),a=r.length>0?await R(p,`html/at`,{file:t,width:W,height:q,points:r,scroll:F.at(),...i===void 0?{}:{hold:i}}).catch(()=>void 0):void 0;return{elements:a&&a.elements.length>0?a.elements.map(Y):[{name:`the page ${t}`,source:{path:t}}],where:X()}},pick:async e=>{let n=J();if(!n)return;let r=(e.x-n.x)/K,i=(e.y-n.y)/K;if(r<0||i<0||r>W||i>q)return;let a=await Q(),{element:o}=await R(p,`html/pick`,{file:t,width:W,height:q,x:r,y:i,scroll:F.at(),...a===void 0?{}:{hold:a}});if(!o)return;let s=o.box,c=Math.max(0,s.x),u=Math.max(0,s.y),d=Math.min(W,s.x+s.width),f=Math.min(q,s.y+s.height);if(!(d<=c||f<=u))return{element:Y(o),outline:l({x:n.x+c*K,y:n.y+u*K,width:(d-c)*K,height:(f-u)*K}),where:X()}}}),h.at===`asleep`?(0,M.jsxs)(`div`,{className:f(`absolute inset-0 flex flex-col items-center justify-center gap-3 p-6`,d),children:[(0,M.jsx)(`p`,{className:`text-sm text-lead`,children:n.asleep}),(0,M.jsx)(ee,{size:`xs`,onClick:()=>{p[`edit/request`]({}).catch(()=>void 0)},children:n.edit})]}):(0,M.jsxs)(`div`,{className:f(`absolute inset-0 flex flex-col`,d),"data-testid":`html-viewer`,children:[(0,M.jsx)(te,{start:(0,M.jsx)(D,{children:(0,M.jsx)(ne,{type:`single`,size:`sm`,"aria-label":n.width,value:_,onValueChange:e=>{(e===`fit`||e in B)&&v(e)},children:[`fit`,`tablet`,`phone`].map(e=>{let t=V[e],r=e===`fit`?n.fit:n.wide(n[e],B[e]);return(0,M.jsxs)(E,{children:[(0,M.jsx)(T,{asChild:!0,children:(0,M.jsx)(C,{value:e,"aria-label":r,children:(0,M.jsx)(t,{className:`size-4`})})}),(0,M.jsx)(w,{children:r})]},e)})})})}),(0,M.jsxs)(`div`,{ref:A,className:`relative min-h-0 flex-1 overflow-hidden bg-stone`,children:[h.at===`ready`&&N.width>0&&(S===y?[y]:[S,y]).map(e=>{let t=e===S;return(0,M.jsx)(`iframe`,{ref:t?P:void 0,title:m,src:h.url,"data-testid":t?`html-page`:void 0,"aria-hidden":!t||void 0,tabIndex:t?void 0:-1,sandbox:`allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox`,className:f(`absolute border-0 bg-page`,z&&`shadow-[0_0_0_1px_rgb(0_0_0/0.06),0_1px_3px_rgb(0_0_0/0.12)]`),onLoad:t?void 0:t=>{F.to(t.currentTarget,F.at()),setTimeout(()=>{O(t=>e>t?e:t)},250)},style:{width:W,height:q,top:H,left:Math.max(0,(N.width-W*K)/2),transform:`scale(${String(K)})`,transformOrigin:`top left`,zIndex:+!!t}},e)}),h.at===`starting`&&(0,M.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center text-sm text-lead`,children:(0,M.jsx)(`span`,{className:`motion-safe:animate-pulse`,children:n.starting})}),h.at===`failed`&&(0,M.jsx)(ie,{className:`absolute inset-0 flex items-center justify-center`})]})]})}export{H as HtmlViewer,H as default,z as WORDS};