allyhub 0.15.1 → 0.15.3
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.
- package/CHANGELOG.md +13 -0
- package/dist/commands/dev.js +6 -2
- package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/dist/index.js +2 -1
- package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
- package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/index.js +262 -1
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +12 -12
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-BHI0AbUY.js → abnfDiagram-WEYOIA3C-arPHIJYC.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-BMQS-OKZ.js → architecture-WOLXFQ4H-XPJlj9Iq.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-DZp9CM6P.js → architectureDiagram-ZHVYKT53-BZNJvOtd.js} +1 -1
- package/editor-web/assets/article-Ck2ii-gZ.js +7 -0
- package/editor-web/assets/article-v30Q5cvX.js +3 -0
- package/editor-web/assets/bar-button-6Perrucg.js +1 -0
- package/editor-web/assets/{blockDiagram-RJAE7QA3-h6LWaev4.js → blockDiagram-RJAE7QA3-B4L2P9Zz.js} +1 -1
- package/editor-web/assets/{c4Diagram-XDPPPE54-BvSMs7J4.js → c4Diagram-XDPPPE54-D5t2-Sm8.js} +1 -1
- package/editor-web/assets/channel-B8881pqR.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-0EJTAmDF.js → chunk-2E7WHVMD-bWUHKM6h.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-BeYB4AEY.js → chunk-4EMNKR2T-CGGaxE7r.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BPFOPTBe.js → chunk-55XCU76K-BXCHI3wC.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-CZ2C7ULu.js → chunk-7S6XSTFO-H4tWSKhS.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-B5RtsZkj.js → chunk-AQDTSKZB-kyBZy8vG.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-_3G4hddj.js → chunk-DSNLSHJZ-BlB7YIMo.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-DO5b4ll2.js → chunk-HAGFOTED-P8dIUq9O.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-C6XNI71Q.js → chunk-HNE4Q36P-B_BAZXMj.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-nDCX29rQ.js → chunk-NQOKRVIF-Bubl63jI.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-CRCOiitq.js → chunk-UHW7PFBP-DYGk0ZDz.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-hNPKKjCN.js → chunk-VQ5W62QI-BLFRyEGi.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-KlnVtIDc.js → chunk-WQQL4CDK-kiwalF_c.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-B76hDUrM.js → chunk-YZO67HFG-D-bT0L2N.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-D9m1N0wI.js → chunk-ZAUX2LTX-C_P5nPKV.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-443euxzo.js → chunk-ZCHMQSOR-Deizt1PO.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-Bbw-8Ons.js → classDiagram-v2-4MYWR3UA-PUtBnliw.js} +1 -1
- package/editor-web/assets/code-BID_OoRp.js +1 -0
- package/editor-web/assets/collaborator--S95EupA.js +1 -0
- package/editor-web/assets/{cynefin-EF2NZ3EQ-C4E7TlUr.js → cynefin-EF2NZ3EQ-C09G_QFD.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-PBPGa_HS.js → cynefinDiagram-WF24UDRP-JxxJ5-Ov.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-DwXdEtQG.js → dagre-NK4GIZVX-6DkhWeGP.js} +1 -1
- package/editor-web/assets/{diagram-CBK3MWTC-BE3FwdX7.js → diagram-CBK3MWTC-kI_Q07du.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-BPl2ZY33.js → diagram-I5XIIV2D-FYaR41qP.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-BLVPYSzw.js → diagram-ODIL2UCW-29WBGOdl.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-BVZk62FO.js → diagram-PFBEJUXE-BFZJ9s9P.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-Z75LSbxH.js → diagram-RJA3I4VV-BSNFe4e-.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-BynGqDAg.js → diagram-TYUNFSNR-Cb1wZgqj.js} +1 -1
- package/editor-web/assets/dist-B3RkByp0.js +1 -0
- package/editor-web/assets/dist-BAeqmRLA.js +530 -0
- package/editor-web/assets/dist-BaCVkpwc.js +82 -0
- package/editor-web/assets/dist-BlqK1Oua.js +40 -0
- package/editor-web/assets/dist-BuG-vxxb.js +5 -0
- package/editor-web/assets/dist-CGJv5-SE.js +45 -0
- package/editor-web/assets/dist-CUdvgRW5.js +1 -0
- package/editor-web/assets/dist-CnbKC_fW.js +1 -0
- package/editor-web/assets/dist-DXUMNYNX.js +16 -0
- package/editor-web/assets/dist-DhKxOqdu.js +43 -0
- package/editor-web/assets/dist-Dx2yV02v.js +6 -0
- package/editor-web/assets/dist-QuK0-suW.js +24 -0
- package/editor-web/assets/dist-Sl2_j-4w.js +38 -0
- package/editor-web/assets/dist-b5nFx4mV.js +3 -0
- package/editor-web/assets/dist-tteqAu5L.js +4 -0
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-SwhqbeK4.js → ebnfDiagram-V4P3TTPT-t3vO5qHB.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-Bb1GSt2Z.js → elk-QONTBCTQ-DfIcGBDb.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-qUy0NDKn.js → erDiagram-KYQIGQAA-Bgy1PYQf.js} +1 -1
- package/editor-web/assets/{eventmodeling-K75KTNOO-BYBYso_j.js → eventmodeling-K75KTNOO-b8j935GM.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-CnzC5OOy.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-Cw-BkZT8.js → ganttDiagram-R7GPNTJY-B6C_nkwn.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-CTXzWPq_.js → gitGraph-VSP46ZUC-CWtulOri.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-Jd9HU3WA.js → gitGraphDiagram-PDYL7XHY-BT80Z9gj.js} +1 -1
- package/editor-web/assets/hint-CKIaljPY.js +1 -0
- package/editor-web/assets/index-C3A0pCmH.css +2 -0
- package/editor-web/assets/index-CFqSJBZ-.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-C4oj5BpF.js → info-OHQRW6UA-CyWiLOaB.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-D09aYJ28.js → infoDiagram-MVDRKAX5-3TQgBeRh.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BEdXoXb2.js → ishikawaDiagram-HPEHV2GE-C3RAGFl7.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-DE-_0aww.js → journeyDiagram-BOSHW7O7-B3ZJp3pT.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-Cn3_bvPS.js → kanban-definition-FNSA4HC5-ChjUoDH7.js} +1 -1
- package/editor-web/assets/lib-KOEbW83T.js +3 -0
- package/editor-web/assets/{mermaid-parser.core-BK52JMZH.js → mermaid-parser.core-CqJ7hTUI.js} +3 -3
- package/editor-web/assets/{mermaid.core-CmfBU89G.js → mermaid.core-DR2O-coV.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-CtUhkv9I.js → mindmap-definition-6OY57UG3-Di0DNds3.js} +1 -1
- package/editor-web/assets/{packet-JDAUHWVQ-C7nciBNp.js → packet-JDAUHWVQ-CkCyk5LQ.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-DUkbAcTs.js → pegDiagram-ECIUJNBX-DGyUszOM.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-BIGyKhav.js → pie-XZMESJXO-D56l6NOA.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-DrYj-JeG.js → pieDiagram-GNMPY74T-C6Gy4c9c.js} +1 -1
- package/editor-web/assets/progress-I2qmIfF4.js +6 -0
- package/editor-web/assets/props-form-gwp-8pGV.js +1 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-qkBoh1ep.js → quadrantDiagram-D57K4MC3-CWfkAwXQ.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-BkJmvR6a.js → radar-ABXABTNO-BhyQtVw_.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-BFH-ip4B.js → railroad-I3PHUGI6-CyOyOgY6.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-BBlzHL6Z.js → railroad-abnf-LNEFI6M7-ExhYWNk4.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-CCVsG0ui.js → railroad-ebnf-DWYD2UWJ-B7vR6DFd.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-Puo7BFPl.js → railroad-peg-JR7BVNR7-hqCnhLuG.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-DCwfkv35.js → railroadDiagram-Y72NRBL7-D5X_R2ve.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-DSTcDj32.js → requirementDiagram-EQYSW5RA-CIP8sDsk.js} +1 -1
- package/editor-web/assets/row-k2eAfT-g.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-Kqq4fCvG.js → sankeyDiagram-SY24JHO5-BKDJlzrK.js} +1 -1
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-B1uodEgL.js → sequenceDiagram-BLEHNHQU-CkRLYFZ7.js} +1 -1
- package/editor-web/assets/split-Cjm6rVDC.js +3 -0
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-B6gG3vUm.js → stateDiagram-v2-A6IESKWZ-CCvwoTcz.js} +1 -1
- package/editor-web/assets/surface-BocGwSox.js +1 -0
- package/editor-web/assets/swatch-DGdJ5SeN.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-CZayRtvU.js → swimlanes-B3ENRKFQ-BXgW4pi4.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-AFpLq-Wf.js +8 -0
- package/editor-web/assets/switch-Dwqxw1kp.js +1 -0
- package/editor-web/assets/syntax-BIEjjMZL.js +27 -0
- package/editor-web/assets/tabs-B0bv2mMP.js +1 -0
- package/editor-web/assets/textarea-BNH6Y1-o.js +1 -0
- package/editor-web/assets/{timeline-definition-JXYKGLGB-5YoY8Xhw.js → timeline-definition-JXYKGLGB-BwuUmgv1.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-Brd_NUPx.js → treeView-D4JQ5SDB-Da35tnkE.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-DmfdnlWl.js → treemap-SAJKECNS-4TcJReov.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-lcAkMviI.js → usecaseDiagram-WPOLBNNX-wj02og_C.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-DY_n48hQ.js → vennDiagram-Q3Y3IDCW-Cun6o3pg.js} +1 -1
- package/editor-web/assets/{video-Bv3rETBU.js → video-DkuN7Uu7.js} +1 -1
- package/editor-web/assets/{wardley-7MLQ67FV-DzIFSBQz.js → wardley-7MLQ67FV-DiL2aSXm.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-CsXNajIg.js → wardleyDiagram-IVAIDKWA-Cll7rTnv.js} +1 -1
- package/editor-web/assets/words-B-7GbYO2.js +3 -0
- package/editor-web/assets/words-QKSIyC_P.js +263 -0
- package/editor-web/assets/x-BsePFh6d.js +41 -0
- package/editor-web/assets/{xychartDiagram-4URNHDU4-DDpGFEum.js → xychartDiagram-4URNHDU4-s55eVncs.js} +1 -1
- package/editor-web/index.html +4 -3
- package/package.json +2 -2
- package/editor-web/assets/article-C_mBG5a1.js +0 -8
- package/editor-web/assets/article-DWBxNvX0.js +0 -7
- package/editor-web/assets/bookmark-Dfji3syX.js +0 -1
- package/editor-web/assets/button-BVQH7zxz.js +0 -41
- package/editor-web/assets/channel-BFHB0S0f.js +0 -1
- package/editor-web/assets/collaborator-2qfw-8OJ.js +0 -1
- package/editor-web/assets/dist--ijXGgvi.js +0 -5
- package/editor-web/assets/dist-C-yi9AAi.js +0 -274
- package/editor-web/assets/dist-CIQUbiAd.js +0 -38
- package/editor-web/assets/dist-Ch34PllS.js +0 -1
- package/editor-web/assets/dist-CxlIyluY.js +0 -43
- package/editor-web/assets/dist-D9N4Fxqr.js +0 -84
- package/editor-web/assets/dist-DWKEqAou.js +0 -6
- package/editor-web/assets/dist-DX0VLTRV.js +0 -3
- package/editor-web/assets/dist-D_xVYGnk.js +0 -45
- package/editor-web/assets/dist-Nc_h0Jye.js +0 -4
- package/editor-web/assets/dist-UG2TIZxP.js +0 -16
- package/editor-web/assets/dist-VP4ECMOk.js +0 -1
- package/editor-web/assets/dist-cUeSwqws.js +0 -1
- package/editor-web/assets/dist-xpAaABxb.js +0 -24
- package/editor-web/assets/flowDiagram-IUGLLWBU-BSCBBtP3.js +0 -1
- package/editor-web/assets/hint-mQB8slJ2.js +0 -1
- package/editor-web/assets/index-Br4a-QEv.css +0 -2
- package/editor-web/assets/index-CglHrLRS.js +0 -28
- package/editor-web/assets/katex-UWCZofcd.js +0 -257
- package/editor-web/assets/play-DvMyq5xW.js +0 -1
- package/editor-web/assets/progress-udl4pNsP.js +0 -6
- package/editor-web/assets/props-form-DrZYDmSM.js +0 -1
- package/editor-web/assets/repeat-2-DfPmKp4w.js +0 -1
- package/editor-web/assets/row-dgHEAE7h.js +0 -1
- package/editor-web/assets/split-Cu0fidVK.js +0 -3
- package/editor-web/assets/surface-D9qJjJQL.js +0 -1
- package/editor-web/assets/swatch-S8YuBYyj.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B9tLTrym.js +0 -8
- package/editor-web/assets/switch-D5kPl2jO.js +0 -1
- package/editor-web/assets/syntax-PERQ2szW.js +0 -66
- package/editor-web/assets/tabs-B_K0Db1I.js +0 -1
- package/editor-web/assets/textarea-mzr9Kfuf.js +0 -1
- package/editor-web/assets/words-BTRrBFUo.js +0 -2
- package/editor-web/assets/words-ll_94CD2.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Feature highlights from each AllyHub release.
|
|
4
4
|
|
|
5
|
+
## 0.15.3
|
|
6
|
+
|
|
7
|
+
- **The editor keeps running after the agent's turn ends.** `allyhub dev` now returns once the page is up and serves in the background; `allyhub dev --stop` stops it, and `--foreground` serves until Ctrl+C as before.
|
|
8
|
+
- **The editor page comes back by itself** when it is started again. If it stops, the page says so and gives you a sentence to send your agent.
|
|
9
|
+
- **The agent asks you to sign in before it starts**, when you are signed out, and says which of AllyHub's tools the work would use.
|
|
10
|
+
- **The agent starts from the work skill for the job**, looking up AllyHub's work skills first.
|
|
11
|
+
|
|
12
|
+
## 0.15.2
|
|
13
|
+
|
|
14
|
+
- **The agent hands work over in its editor.** It makes each piece in AllyHub, shows it open in its editor for you to look at and mark up, and exports a PowerPoint, Word or Excel file when you say it is final.
|
|
15
|
+
- **A new project in Studio is ready for code.** It starts with AllyHub in place, so the agent installs nothing before writing a video or a scenery.
|
|
16
|
+
- **Waking a cloud computer says how far it is**, also when you make a new project, and a wake that installs a new version is no longer given up too early.
|
|
17
|
+
|
|
5
18
|
## 0.15.1
|
|
6
19
|
|
|
7
20
|
- **A much smaller install.** A new project installs a fraction of what it did. Fonts, diagrams and the tools only some work uses are downloaded the first time a project needs them, once for the computer, and kept for every project.
|
package/dist/commands/dev.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{mkdir as
|
|
3
|
-
|
|
2
|
+
import{spawn as C}from"node:child_process";import{mkdir as $,open as L,readFile as v,rm as P,writeFile as _}from"node:fs/promises";import{dirname as w,join as f,resolve as N}from"node:path";import{fileURLToPath as E}from"node:url";import{z as l}from"zod";import{projectItems as G}from"@allyhub/build";import{openBrowser as b}from"@allyhub/cloud";import{startDevServer as y}from"@allyhub/dev-server";import{DEV_FILE as R}from"@allyhub/formats";import{EXIT as M}from"@allyhub/protocol";import{nodeCommand as x}from"@allyhub/runtimes/node";import{CommandError as c,defineCommand as F}from"../command.js";import{dir as U,indexing as B}from"../fields.js";import{itemNamed as H,projectRoot as J}from"../project.js";import{extensionsAt as V,fileEditorsAt as Y,kindsAt as j}from"./extensions.js";export const PAGE=f(w(E(import.meta.url)),"../../editor-web");const h=".allyhub/dev.log",z=f(w(E(import.meta.url)),"../../bin/allyhub.js"),k=12e4,D=1e4,g=4340,W=20;export async function start(t,e,n,s){const a={root:t,kinds:j(t),extensions:V(t),ui:PAGE,...s===void 0?{}:{exportsTo:()=>s},index:n};if(e!==void 0)return y({...a,port:e}).catch(r=>{throw r.code==="EADDRINUSE"?new c("port-in-use",`Port ${String(e)} is in use.`,{hint:"Choose another with --port, or leave it out."}):r});for(let r=g;r<g+W;r++)try{return await y({...a,port:r})}catch(o){if(o.code!=="EADDRINUSE")throw o}return y(a)}const I="allyhub dev";async function S(t){try{const e=JSON.parse(await v(f(t,R),"utf8"));return typeof e.url!="string"||typeof e.pid!="number"?void 0:(process.kill(e.pid,0),(await fetch(e.url,{signal:AbortSignal.timeout(2e3)})).ok?{url:e.url,pid:e.pid,mine:e.by===I}:void 0)}catch{return}}async function X(t){return(await S(t))?.url}function q(t){try{return process.kill(t,0),!0}catch{return!1}}const O=t=>new Promise(e=>setTimeout(e,t));async function K(t){return(await v(f(t,h),"utf8").catch(()=>"")).trim().split(`
|
|
3
|
+
`).slice(-20).join(`
|
|
4
|
+
`)}async function Q(t,e,n,s,a){const r=f(t,h);await $(w(r),{recursive:!0});const o=await L(r,"w");let i,d;try{const u=C(x(n),[z,"dev","--foreground","--no-open","--dir",t,...s===void 0?[]:["--port",String(s)],...a===void 0?[]:["--exports",a]],{cwd:e,env:{...n,ALLYHUB_NO_LOCAL:"1"},detached:!0,stdio:["ignore",o.fd,o.fd],windowsHide:!0});u.once("error",m=>{i=m.message}),u.once("exit",(m,A)=>{i=A??`exit code ${String(m)}`}),u.unref(),d=u.pid}finally{await o.close()}const p=Date.now()+k;for(;Date.now()<p&&i===void 0;){const u=await S(t);if(u!==void 0&&u.pid===d)return u.url;await O(150)}throw i===void 0&&d!==void 0&&process.kill(d,"SIGTERM"),new c("dev-failed",i===void 0?`allyhub dev did not answer within ${String(k/1e3)} s.`:`allyhub dev stopped as it started (${i}).`,{hint:`What it said, in ${h}:
|
|
5
|
+
${await K(t)||"(nothing)"}`})}async function Z(t){const e=await S(t);if(e===void 0)return;if(!e.mine)throw new c("not-dev",`The server at ${e.url} is not one this allyhub dev started (it is AllyHub Studio's, or an older allyhub's), so it is left running.`,{hint:"Studio's stops with its project; an older allyhub dev stops with Ctrl+C where it runs."});process.kill(e.pid,"SIGTERM");const n=Date.now()+D;for(;q(e.pid);){if(Date.now()>n)throw new c("dev-stuck",`allyhub dev (process ${String(e.pid)}) did not stop within ${String(D/1e3)} s.`,{hint:`Stop it with: kill -9 ${String(e.pid)}`});await O(100)}return e.url}async function T(t,e,n,s){if(s===void 0)return n;const{listed:a}=await G(t,j(t),void 0,Y(t)),r=H(a,t,e,s);if(!r)throw new c("not-found",`There is no item ${s} in the project's list.`,{exit:M.notFound,hint:`Its items: ${a.map(o=>o.id).join(", ")||"none"} (allyhub.yaml lists them).`});return`${n}?${new URLSearchParams({item:r.id}).toString()}`}export const dev=F({name:"dev",summary:"The project's items in the browser, each in its editor (docs, sheets, videos, 3D sceneries; websites listed), as their files change; serves from a process of its own until --stop, which outlives the shell that started it, and run again while it runs, opens its page and ends",input:l.strictObject({item:l.string().optional().describe("Open the page on this item: its id (its file without its extension) or its file; or on a file the list names with no kind, which an editor opens by its name (a canvas)"),dir:U,port:l.number().int().min(1).max(65535).optional().describe(`The port; default the first free one from ${String(g)}`),open:l.boolean().default(!0).describe("Open the page in the browser; --no-open only prints it"),foreground:l.boolean().default(!1).describe(`Serve from this process until Ctrl+C; default a detached process of its own, its output in ${h}`),stop:l.boolean().default(!1).describe("Stop the project's running allyhub dev"),exports:l.string().min(1).optional().describe("The folder an export from the page is saved in; default ~/Downloads (each file is made in .allyhub/out/ first)")}),positional:["item"],output:l.strictObject({url:l.string().optional().describe("The page; with --stop, the one stopped, none when none ran")}),examples:["allyhub dev","allyhub dev launch/plan","allyhub dev --port 4400 --no-open","allyhub dev --stop"]},async(t,e)=>{const n=await J(e.cwd,t.dir);if(t.stop){const i=await Z(n);return e.progress(i===void 0?"No allyhub dev runs for this project.":`Stopped allyhub dev at ${i}`),{value:i===void 0?{}:{url:i},text:""}}const s=t.port===void 0?await X(n):void 0;if(s!==void 0){const i=await T(n,e.cwd,s,t.item);return e.progress(`allyhub dev is already running at ${i}`),t.open&&b(i,e.env),{value:{url:i},text:""}}const a=t.exports===void 0?void 0:N(e.cwd,t.exports);if(!t.foreground){const i=await Q(n,e.cwd,e.env,t.port,a),d=await T(n,e.cwd,i,t.item);return e.progress(`allyhub dev is at ${d}
|
|
6
|
+
It runs until allyhub dev --stop; what it says is in ${h}.`),t.open&&b(d,e.env),{value:{url:d},text:""}}const r=await start(n,t.port,B(e.env),a),o=f(n,R);try{const i=await T(n,e.cwd,r.url,t.item);return await $(w(o),{recursive:!0}),await _(o,JSON.stringify({url:r.url,pid:process.pid,token:r.token,by:I})),e.progress(`allyhub dev is at ${i}
|
|
7
|
+
Press Ctrl+C to stop.`),t.open&&b(i,e.env),await new Promise(d=>{const p=()=>{process.off("SIGTERM",p),e.signal.removeEventListener("abort",p),d()};e.signal.aborted&&d(),e.signal.addEventListener("abort",p),process.once("SIGTERM",p)}),{value:{url:i},text:""}}finally{(await v(o,"utf8").catch(()=>"")).includes(`"pid":${String(process.pid)}`)&&await P(o,{force:!0}),await r.close(),await r.project.extensions?.deactivate()}});
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
|
|
2
|
+
import{jsx as n,Fragment as Z,jsxs as v}from"react/jsx-runtime";import{useContext as G}from"react";import{forwardRef as J,createElement as Q}from"react";var A=(...e)=>e.filter((a,t,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===t).join(" ").trim(),X=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ee=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,i)=>i?i.toUpperCase():t.toLowerCase()),b=e=>{const a=ee(e);return a.charAt(0).toUpperCase()+a.slice(1)};import{forwardRef as ae,createElement as H}from"react";var te={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},ie=e=>{for(const a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1},re=ae(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:i,className:l="",children:o,iconNode:c,...s},u)=>H("svg",{ref:u,...te,width:a,height:a,stroke:e,strokeWidth:i?Number(t)*24/Number(a):t,className:A("lucide",l),...!o&&!ie(s)&&{"aria-hidden":"true"},...s},[...c.map(([m,h])=>H(m,h)),...Array.isArray(o)?o:[o]])),p=(e,a)=>{const t=J(({className:i,...l},o)=>Q(re,{ref:o,iconNode:a,className:A(`lucide-${X(b(e))}`,`lucide-${e}`,i),...l}));return t.displayName=b(e),t},ne=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],le=p("bookmark",ne),se=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],oe=p("ellipsis",se),ce=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],de=p("external-link",ce),he=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ue=p("file-text",he),me=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],pe=p("globe",me),fe=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],ve=p("message-square-text",fe),ke=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],ye=p("play",ke),Ne=[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]],ge=p("repeat-2",Ne),we=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],xe=p("send",we),_e=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],Me=p("thumbs-up",_e),Se=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Ce=p("users",Se);import{jsx as r,jsxs as d}from"react/jsx-runtime";import{createContext as Ee,useContext as Ae,useEffect as j,useMemo as be,useState as He}from"react";import{entitySpans as je}from"@allyhub/linkedin-model";var Le=new Intl.Segmenter(void 0,{granularity:"grapheme"}),L=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u,$e="… more";function Ie(e,a,t){const i=[];let l=0;for(const o of e.split(`
|
|
3
|
+
`)){let c=l,s="",u=-1;for(const{segment:m}of Le.segment(o)){const h=/\s/u.test(m);L.test(m)&&(u=s.length);const f=s+m;if(h||t(f.trimEnd(),c)<=a){s=f,h&&(u=s.length);continue}const k=u>0?u:s.length;i.push({start:c,text:s.slice(0,k)}),c+=k,s=s.slice(k)+m,u=L.test(m)?s.length-m.length:-1}i.push({start:c,text:s}),l+=o.length+1}return i}function Re(e,a,t,i){const l=Ie(e,t,i);if(l.length<=a)return{folded:!1,shown:e,lines:l.length};const o=t-i($e,-1);let c;if(l.slice(0,a).forEach((s,u)=>{for(const m of s.text.matchAll(/\S+/gu)){const h=m.index+m[0].length;i(s.text.slice(0,h),s.start)<o&&(c={line:u,end:s.start+h})}}),c===void 0){const s=l[a-1];return{folded:!0,shown:e.slice(0,(s?.start??0)+(s?.text.length??0)).trimEnd(),lines:a}}return{folded:!0,shown:e.slice(0,c.end),lines:c.line+1}}var $='14px "Inter Variable", Inter, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans SC", "Noto Color Emoji", sans-serif';function I(e,a,t,i=$){const l=new OffscreenCanvas(1,1).getContext("2d");if(l===null)return{folded:!1,shown:e,lines:0};const o=i,c=`600 ${i}`,s=je(e),u=(h,f)=>(l.font=f,l.measureText(h).width);return Re(e,a,t,(h,f)=>{if(f<0)return u(h,o);let k=0,y=0;for(const E of s){const w=Math.max(E.from-f,0),x=Math.min(E.to-f,h.length);x<=y||w>=h.length||(w>y&&(k+=u(h.slice(y,w),o)),k+=u(h.slice(Math.max(w,y),x),c),y=x)}return k+(y<h.length?u(h.slice(y),o):0)})}import{jsx as R,Fragment as Ve}from"react/jsx-runtime";import{entitySpans as Te}from"@allyhub/linkedin-model";function V(e){const a=[];let t=0;for(const i of Te(e))i.from<t||(i.from>t&&a.push({text:e.slice(t,i.from)}),a.push({text:e.slice(i.from,i.to),link:!0}),t=i.to);return t<e.length&&a.push({text:e.slice(t)}),a}function T({text:e}){return R(Ve,{children:V(e).map((a,t)=>a.link===!0?R("span",{className:"ak-li-link",children:a.text},t):a.text)})}var _=552,De=390,M=e=>e-2-24,Oe=3,N={name:"AllyHub",headline:"The content creation system for people and AI"},S=Ee(e=>r("video",{...e}));function qe(e){return{ONE_DAY:"1d left",THREE_DAYS:"3d left",SEVEN_DAYS:"1w left",FOURTEEN_DAYS:"2w left"}[e??"SEVEN_DAYS"]??"1w left"}function D(e){const a=Math.round(e),t=Math.floor(a/3600),i=Math.floor(a%3600/60),l=o=>String(o).padStart(2,"0");return t>0?`${String(t)}:${l(i)}:${l(a%60)}`:`${String(i)}:${l(a%60)}`}function O({visibility:e,avatar:a=48}){return d("header",{className:"ak-li-author",children:[r("div",{className:"ak-li-avatar",style:{width:a,height:a},"aria-hidden":"true",children:N.name.slice(0,1)}),d("div",{className:"ak-li-who",children:[r("span",{className:"ak-li-name",children:N.name}),r("span",{className:"ak-li-headline",children:N.headline}),d("span",{className:"ak-li-when",children:["Now •"," ",e==="CONNECTIONS"?r(Ce,{"aria-label":"Connections only"}):r(pe,{"aria-label":"Anyone"})]})]})]})}function q({text:e,lines:a,onFolded:t,width:i=M(_)}){const[l,o]=He(0);j(()=>{let s=!0;return document.fonts.ready.then(()=>{s&&o(u=>u+1)}),()=>{s=!1}},[]);const c=be(()=>{if(a===void 0||l<0)return;const s=I(e,a,i);return s.folded?s.shown:void 0},[e,a,i,l]);return j(()=>{t?.(c!==void 0)},[c,t]),d("div",{className:"ak-li-words",dir:"auto","data-fold":a,"data-text":e,children:[r(T,{text:c??e}),c===void 0?null:r("span",{className:"ak-li-more",children:"… more"})]})}function ze({label:e}){return r("div",{className:"ak-li-made",children:e})}function C({m:e}){return e.kind==="made"||e.src===void 0?r(ze,{label:e.label??e.file}):r("img",{src:e.src,alt:e.alt??""})}function Pe({m:e}){const a=Ae(S),t=e.width!==void 0&&e.height!==void 0&&e.height>0?{aspectRatio:`${String(e.width)} / ${String(e.height)}`}:void 0;return d("div",{className:"ak-li-video",style:t,children:[e.src===void 0?null:a({src:`${e.src}#t=0.1`,muted:!0,playsInline:!0,preload:"auto"},e.file),r("span",{className:"ak-li-play","aria-hidden":"true"}),e.seconds===void 0?null:r("span",{className:"ak-li-clock",children:D(e.seconds)})]})}function We({m:e,title:a}){return d("div",{className:"ak-li-document",children:[r("div",{className:"ak-li-doc-bar",children:r("span",{className:"ak-li-doc-title",children:a??e.label??e.file??""})}),e.src===void 0?d("div",{className:"ak-li-doc-page",children:[r(ue,{"aria-hidden":"true"}),r("span",{children:e.label??e.file})]}):r("img",{src:e.src,alt:e.alt??""})]})}var Fe=e=>e?.width!==void 0&&e.height!==void 0&&e.width>e.height;function z({images:e,onMedium:a}){if(e.length===0)return null;const t=e.length>4?4:e.length,i=e.length-t;return r("div",{className:"ak-li-grid","data-count":t,"data-wide":Fe(e[0])?"":void 0,children:e.slice(0,t).map((l,o)=>d("div",{className:"ak-li-cell",children:[r(C,{m:l}),o===t-1&&i>0?d("span",{className:"ak-li-hidden",children:["+",i]}):null,a?.(o)]},o))})}function Ue({c:e}){let a=e.source;try{a=new URL(e.source).hostname.replace(/^www\./u,"")}catch{}return d("div",{className:"ak-li-card",children:[e.thumbnail?r("div",{className:"ak-li-card-picture",children:r(C,{m:e.thumbnail})}):null,d("div",{className:"ak-li-card-text",children:[r("span",{className:"ak-li-card-title",children:e.title??e.source}),d("span",{className:"ak-li-card-site",children:[a,r(de,{"aria-hidden":"true"})]})]})]})}function Be({c:e}){return d("div",{className:"ak-li-poll",children:[r("div",{className:"ak-li-poll-question",dir:"auto",children:e.question}),r("div",{className:"ak-li-poll-hint",children:"The author can see how you vote."}),e.options.map((a,t)=>r("div",{className:"ak-li-option",dir:"auto",children:a},t)),d("div",{className:"ak-li-poll-foot",children:["0 votes • ",qe(e.duration)]})]})}function P({content:e,onMedium:a}){if(e===void 0)return null;switch(e.type){case"media":{const t=e.medium;return d("div",{className:"ak-li-content",children:[t.kind==="video"?r(Pe,{m:t}):t.kind==="document"||t.kind==="made"&&e.title!==void 0?r(We,{m:t,title:e.title}):r("div",{className:"ak-li-single",children:r(C,{m:t})}),a?.(0)]})}case"multiImage":return r("div",{className:"ak-li-content",children:r(z,{images:e.images,onMedium:a})});case"poll":return r(Be,{c:e});case"article":return d("div",{className:"ak-li-content",children:[r(Ue,{c:e}),a?.(0)]})}}function W(){return d("div",{className:"ak-li-actions","aria-hidden":"true",children:[r(Me,{}),r(ve,{}),r(ge,{}),r(xe,{})]})}function Ye({post:e,lines:a,slots:t={},onFolded:i,width:l=_}){return d("article",{className:"ak-li-post",children:[r(O,{visibility:e.visibility}),t.words??(e.commentary===""?null:r(q,{text:e.commentary,lines:a,onFolded:i,width:M(l)})),t.content??r(P,{content:e.content,onMedium:t.onMedium}),t.after,r(W,{})]})}var Ke=632;function g({runs:e}){return n(Z,{children:e.map((a,t)=>{let i=a.text;return a.italic===!0&&(i=n("em",{children:i})),a.bold===!0&&(i=n("strong",{children:i})),a.link!==void 0&&(i=n("span",{className:"ak-li-a-link",children:i})),n("span",{children:i},t)})})}function F({url:e}){let a=e;try{a=new URL(e).hostname.replace(/^www\./u,"")}catch{}return v("div",{className:"ak-li-embed",children:[n(ye,{"aria-hidden":"true"}),v("div",{className:"ak-li-embed-text",children:[n("span",{className:"ak-li-embed-site",children:a}),n("span",{className:"ak-li-embed-url",children:e})]})]})}function U({file:e,alt:a,src:t,measure:i}){const l=G(S);if(t===void 0)return n("div",{className:"ak-li-made",children:e});if(/\.mp4$/iu.test(e)){const o=i?.width!==void 0&&i.height!==void 0?{aspectRatio:`${String(i.width)} / ${String(i.height)}`}:void 0;return v("div",{className:"ak-li-video",style:o,children:[l({src:`${t}#t=0.1`,muted:!0,playsInline:!0},e),n("span",{className:"ak-li-play","aria-hidden":"true"})]})}return n("img",{src:t,alt:a??""})}function B({block:e,source:a,measure:t}){switch(e.type){case"paragraph":return n("p",{dir:"auto",children:e.runs.length===0?n("br",{}):n(g,{runs:e.runs})});case"h1":return n("h2",{dir:"auto",children:n(g,{runs:e.runs})});case"h2":return n("h3",{dir:"auto",children:n(g,{runs:e.runs})});case"quote":return n("blockquote",{dir:"auto",children:n(g,{runs:e.runs})});case"ul":case"ol":{const i=e.type;return n(i,{children:e.items.map((l,o)=>n("li",{dir:"auto",children:n(g,{runs:l})},o))})}case"code":return n("pre",{children:n("code",{children:e.code})});case"divider":return n("hr",{});case"embed":return n(F,{url:e.url});case"image":return v("figure",{children:[n(U,{file:e.file,alt:e.alt,src:a(e.file),measure:t?.(e.file)}),e.caption===void 0?null:n("figcaption",{children:e.caption})]})}}function Y({article:e,source:a,measure:t}){return n("div",{className:"ak-li-a-body",children:e.blocks.map((i,l)=>n(B,{block:i,source:a,measure:t},l))})}function K(){return v("div",{className:"ak-li-a-by",children:[n("div",{className:"ak-li-avatar",style:{width:48,height:48},"aria-hidden":"true",children:N.name.slice(0,1)}),v("div",{className:"ak-li-who",children:[n("span",{className:"ak-li-name",children:N.name}),n("span",{className:"ak-li-headline",children:N.headline})]}),v("span",{className:"ak-li-a-tools","aria-hidden":"true",children:[n(le,{}),n(oe,{})]})]})}function Ze({article:e,source:a,measure:t}){return v("article",{className:"ak-li-article",children:[e.cover?n("div",{className:"ak-li-a-cover",children:n(U,{file:e.cover.file,alt:e.cover.alt,src:a(e.cover.file),measure:t?.(e.cover.file)})}):null,n("h1",{className:"ak-li-a-title",dir:"auto",children:e.title}),n(K,{}),n(Y,{article:e,source:a,measure:t})]})}export{Ke as ARTICLE_WIDTH,W as Actions,B as ArticleBlockView,Y as ArticleBody,Ze as ArticleView,O as Author,K as Byline,P as Content,F as EmbedCard,_ as FEED_WIDTH,Oe as FOLD_LINES,De as PHONE_WIDTH,N as PLACEHOLDER,z as PictureGrid,Ye as Post,q as PostWords,g as RunsView,S as VideoElement,$ as WORDS_FONT,T as Words,D as clock,I as foldMeasured,V as runsOf,M as wordsWidth};
|