allyhub 0.10.0 → 0.11.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.
- package/CHANGELOG.md +8 -0
- package/dist/commands/dev.js +2 -2
- package/dist/commands/frames/report.js +2 -0
- package/dist/commands/frames.js +11 -9
- package/dist/commands/render.js +2 -2
- package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +1 -1
- 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/dist/emoji.d.ts +29 -0
- package/dist/node_modules/@allyhub/browser/dist/emoji.js +57 -0
- package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +18 -0
- package/dist/node_modules/@allyhub/browser/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/browser/package.json +9 -1
- package/dist/node_modules/@allyhub/build/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +7 -0
- package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +9 -0
- package/dist/node_modules/@allyhub/build/dist/made-notes.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +17 -0
- package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +7 -0
- 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/dist/client.js +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/dist/exports.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/inputs.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/pages.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/ports.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/respond.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/reveal.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +7 -0
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/dist/html.js +15 -59
- package/dist/node_modules/@allyhub/doc/dist/page.js +1 -1
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +12 -14
- package/dist/node_modules/@allyhub/doc-print/dist/pages.js +5 -5
- package/dist/node_modules/@allyhub/doc-print/dist/print.js +10 -10
- 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/dist/note-shape.d.ts +20 -0
- package/dist/node_modules/@allyhub/formats/dist/note-shape.js +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/dist/export.js +4 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +1 -6
- 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/LICENSE +241 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/article-build.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/article-kind.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/build.js +5 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/stage-module.js +82 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +287 -0
- package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +12 -0
- package/dist/node_modules/@allyhub/linkedin-model/LICENSE +241 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/article-check.js +5 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/article.js +3 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/count.js +3 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/edit.js +3 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/html.js +19 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/limits.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/little.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/post.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/requests.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/package.json +14 -0
- package/dist/node_modules/@allyhub/linkedin-view/LICENSE +241 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/article.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/fold.js +3 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/post.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/text.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/package.json +21 -0
- package/dist/node_modules/@allyhub/linkedin-view/src/style.css +600 -0
- 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/dist/layer.d.ts +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +1 -1
- package/dist/node_modules/@allyhub/piece/dist/page/index.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +14 -1
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +12 -0
- 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/dist/account.d.ts +8 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +4 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +6 -0
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +61 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +41 -3
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +17 -0
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +7 -0
- package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +12 -0
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +1 -5
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/report-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/report-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/check.js +3 -0
- package/dist/node_modules/@allyhub/report-extension/dist/cli/find.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +5 -0
- package/dist/node_modules/@allyhub/report-extension/dist/cli/picture.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/inline.js +58 -0
- package/dist/node_modules/@allyhub/report-extension/dist/page.js +21 -0
- package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +21 -0
- package/dist/node_modules/@allyhub/report-extension/dist/styles.js +5 -0
- package/dist/node_modules/@allyhub/report-extension/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/package.json +182 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +132 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.css +105 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +17 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/tokens.js +38 -0
- package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/player/player.js +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/dist/layer/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +6 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/viewer.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/export.js +2 -4
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -6
- package/dist/node_modules/@allyhub/sheet-extension/package.json +3 -7
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +3 -16
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +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/dist/install.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +14 -14
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +2 -4
- 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/dist/preview.js +5 -5
- package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +2 -2
- package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -3
- package/dist/node_modules/@allyhub/x-extension/package.json +10 -12
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +12 -10
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-CjAmWsNR.js → abnfDiagram-WEYOIA3C-BKmMA6gn.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-DeeKhyhZ.js → architecture-WOLXFQ4H-BEFBgb4k.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-b32qTaJg.js → architectureDiagram-ZHVYKT53-_u5YfCjY.js} +1 -1
- package/editor-web/assets/{arrow-up-L4YV_65f.js → arrow-up-B5rJbBv0.js} +1 -1
- package/editor-web/assets/article-BUmD3xtR.js +8 -0
- package/editor-web/assets/article-DNioBb3p.js +7 -0
- package/editor-web/assets/{audio-lines-BFcM7G2L.js → audio-lines-CzuzsGjI.js} +1 -1
- package/editor-web/assets/{blockDiagram-RJAE7QA3-BNbnMNmw.js → blockDiagram-RJAE7QA3-DybfaO3Z.js} +1 -1
- package/editor-web/assets/bookmark-Dsd3kHJJ.js +1 -0
- package/editor-web/assets/button-eGxLxbv9.js +41 -0
- package/editor-web/assets/{c4Diagram-XDPPPE54-BEuemvMw.js → c4Diagram-XDPPPE54-BfqLHB5i.js} +1 -1
- package/editor-web/assets/channel-TNPgFDrw.js +1 -0
- package/editor-web/assets/chart-C37xvZT2.js +1 -0
- package/editor-web/assets/chart-no-axes-column-BVkeF_Mr.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-Zb5nPx_e.js → chunk-2E7WHVMD-BVp1I_d0.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-DSEM2reX.js → chunk-4EMNKR2T-CTdgWEMr.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BOZa_65H.js → chunk-55XCU76K-7pnsxeaP.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-DeiGeVpB.js → chunk-7S6XSTFO-Dc0Dvkq7.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-fPuQFBJc.js → chunk-AQDTSKZB-VAILIsfx.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-5vdnoak2.js → chunk-DSNLSHJZ-CUDx1Rv5.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-DFF2mZJ1.js → chunk-HAGFOTED-DAoEe-dJ.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-g6-ZLbTg.js → chunk-HNE4Q36P-g0akya12.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-o3hNcHMJ.js → chunk-NQOKRVIF-hTGjzXdJ.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-BQiDI9dK.js → chunk-UHW7PFBP-BgLV8BIJ.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-CJlMXWWz.js → chunk-VQ5W62QI-Bw19OOSD.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-pNBU8dXv.js → chunk-WQQL4CDK-CMST9dyE.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-2x-BiWd-.js → chunk-YZO67HFG-Bbpu36XF.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-etFStEM8.js → chunk-ZAUX2LTX-C48Ri0Gs.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-B3AYRhIY.js → chunk-ZCHMQSOR-DN1g01Oe.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-6y2yX0oq.js → classDiagram-v2-4MYWR3UA-U6jbPr2d.js} +1 -1
- package/editor-web/assets/{collaborator-LRd0hELn.js → collaborator-B1u2td9m.js} +1 -1
- package/editor-web/assets/{createLucideIcon-CPS-TrJJ.js → createLucideIcon-GFZ_fxLc.js} +1 -1
- package/editor-web/assets/{cynefin-EF2NZ3EQ-CX4BTQQe.js → cynefin-EF2NZ3EQ-gzkai_7-.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-LbDkOTy3.js → cynefinDiagram-WF24UDRP-DtSekSr6.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-wCKQk7hi.js → dagre-NK4GIZVX-CiUwYVT6.js} +1 -1
- package/editor-web/assets/{diagram-CBK3MWTC-a9fofQwk.js → diagram-CBK3MWTC-r9XHCV-k.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-UCLZWch5.js → diagram-I5XIIV2D-DxVsDZ34.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-CAEe88Lp.js → diagram-ODIL2UCW-B0eNQoHV.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-Cp1o45bs.js → diagram-PFBEJUXE-C7f2MfJT.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-c6OVxDyq.js → diagram-RJA3I4VV-CSXcnvct.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-BVRWslDM.js → diagram-TYUNFSNR-DXzOD_ii.js} +1 -1
- package/editor-web/assets/dist-BGRwhCQO.js +1 -0
- package/editor-web/assets/{dist-DwGhfliS.js → dist-BW4X7BrF.js} +1 -1
- package/editor-web/assets/dist-BgDRE85b.js +2 -0
- package/editor-web/assets/dist-Blq5nJnU.js +24 -0
- package/editor-web/assets/dist-BuWaZ3Y4.js +274 -0
- package/editor-web/assets/dist-C1emZ9wX.js +37 -0
- package/editor-web/assets/dist-CC7OeU1e.js +6 -0
- package/editor-web/assets/{dist-j6ZLVcgf.js → dist-CX-fiPSn.js} +16 -16
- package/editor-web/assets/dist-C_VvG-_9.js +5 -0
- package/editor-web/assets/dist-Ce7HrBxv.js +3 -0
- package/editor-web/assets/dist-D2k6w-_a.js +1 -0
- package/editor-web/assets/dist-DDv_SbKw.js +84 -0
- package/editor-web/assets/dist-DEoEO4zs.js +1 -0
- package/editor-web/assets/dist-DlDxxPIP.js +16 -0
- package/editor-web/assets/dist-Gz6NDS0J.js +4 -0
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-KdOTJgFu.js → ebnfDiagram-V4P3TTPT-Cs4YRvDD.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-Cmlrp7qB.js → elk-QONTBCTQ-Bh3LZ9WI.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-CBM7-aQm.js → erDiagram-KYQIGQAA-C4vYTYXp.js} +1 -1
- package/editor-web/assets/{eventmodeling-K75KTNOO-CEoJkbuW.js → eventmodeling-K75KTNOO-BN1kkHWS.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-B04NGsyi.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-D4S6ZSYD.js → ganttDiagram-R7GPNTJY-CA1LkkC5.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-BvkL6RSh.js → gitGraph-VSP46ZUC-Dy5tA7dG.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-lTGguloH.js → gitGraphDiagram-PDYL7XHY-hJIB8EkH.js} +1 -1
- package/editor-web/assets/{hint-BimUgJms.js → hint-B8JpEypy.js} +1 -1
- package/editor-web/assets/index-CgB5osVc.js +28 -0
- package/editor-web/assets/index-Daytem9N.css +2 -0
- package/editor-web/assets/{info-OHQRW6UA-DvKzqNvp.js → info-OHQRW6UA-DvzSf7rQ.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-D7hCpehs.js → infoDiagram-MVDRKAX5-BjIMm4Af.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-Bg93sZQe.js → ishikawaDiagram-HPEHV2GE-Bpz71S40.js} +1 -1
- package/editor-web/assets/{italic-BQBwRTe8.js → italic-D10w8n6C.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-CKm_KONJ.js → journeyDiagram-BOSHW7O7-DAB-pZjD.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-BKknnpTR.js → kanban-definition-FNSA4HC5-cYeyh3P6.js} +1 -1
- package/editor-web/assets/katex-5Z2zF-9g.js +257 -0
- package/editor-web/assets/link-BC5xK1-1.js +1 -0
- package/editor-web/assets/{mermaid-parser.core-BzqkDnqL.js → mermaid-parser.core-req5LE0X.js} +3 -3
- package/editor-web/assets/{mermaid.core-CEpvTOAe.js → mermaid.core-zFwZug4C.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-BJ0qG8Wi.js → mindmap-definition-6OY57UG3-TStWb7DG.js} +1 -1
- package/editor-web/assets/minus-DaWs5i8B.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-ew3kvyFm.js → packet-JDAUHWVQ-smFhVKcB.js} +1 -1
- package/editor-web/assets/palette-BIOudGkm.js +1 -0
- package/editor-web/assets/{pegDiagram-ECIUJNBX-DqUS2xit.js → pegDiagram-ECIUJNBX-DvSNRv0-.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-DTIAMPGm.js → pie-XZMESJXO-qjaGsBZG.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-DoKOE02-.js → pieDiagram-GNMPY74T-Dd9P-Pdc.js} +1 -1
- package/editor-web/assets/play-CrMmPghG.js +1 -0
- package/editor-web/assets/{progress-CPEbDOoN.js → progress-DE4C5_3x.js} +1 -1
- package/editor-web/assets/props-form-CsmDBqzy.js +1 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-DauOpYun.js → quadrantDiagram-D57K4MC3-h2IIKUUA.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-BvMJXUU-.js → radar-ABXABTNO-DlVrSA1d.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-D3jdJmhM.js → railroad-I3PHUGI6-nFbuLAtc.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-Dm8ZpmPj.js → railroad-abnf-LNEFI6M7-Daj8h2iV.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js → railroad-ebnf-DWYD2UWJ-eYJyl5PH.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-CMrQL_7U.js → railroad-peg-JR7BVNR7-BTRhKZQq.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-y99z0C7i.js → railroadDiagram-Y72NRBL7-CeLGUjdp.js} +1 -1
- package/editor-web/assets/{react-DztDSW4P.js → react-WA6wlt8S.js} +1 -1
- package/editor-web/assets/{repeat-2-DJi4LW5C.js → repeat-2-VQP1EVOZ.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-jMr_uoF6.js → requirementDiagram-EQYSW5RA-Dmk9XRM5.js} +1 -1
- package/editor-web/assets/{row-ClBisiBs.js → row-BRlEWRrK.js} +1 -1
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-DcUyx03Q.js → sankeyDiagram-SY24JHO5-Yn4zlrAM.js} +1 -1
- package/editor-web/assets/{schemas-68mjUjP5.js → schemas-VikZYZIK.js} +1 -1
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-R4X8wRCd.js → sequenceDiagram-BLEHNHQU-BTRnp_PW.js} +1 -1
- package/editor-web/assets/{session-2u9U7koW.js → session-Do9AqS38.js} +1 -1
- package/editor-web/assets/{slides-BByblSSR.js → slides-diTEQ3C5.js} +1 -1
- package/editor-web/assets/{snapshots-C9KV-Y2_.js → snapshots-BUGlKQIB.js} +1 -1
- package/editor-web/assets/{sound-DExlNJbb.js → sound-Bj3o9_Fa.js} +1 -1
- package/editor-web/assets/split-CNU1RHcX.js +3 -0
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-BqvXKbCA.js → stateDiagram-v2-A6IESKWZ-kstrRKv2.js} +1 -1
- package/editor-web/assets/{strikethrough-CyUBnGTl.js → strikethrough-CfXx6IYH.js} +1 -1
- package/editor-web/assets/{svg-lBRT-uhy.js → svg-Cx50MpxK.js} +1 -1
- package/editor-web/assets/{swatch-1c1uVn1z.js → swatch-WeJD41aW.js} +1 -1
- package/editor-web/assets/{swimlanes-B3ENRKFQ-hjTXIc6M.js → swimlanes-B3ENRKFQ-DaZsZkeP.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-CBZAujYY.js +8 -0
- package/editor-web/assets/{switch-D0K-K8-C.js → switch-N0G_sbqt.js} +1 -1
- package/editor-web/assets/syntax-BVsgRJ4I.js +66 -0
- package/editor-web/assets/syntax-oWsKBWFw.js +1 -0
- package/editor-web/assets/table-B6hVZAMi.js +1 -0
- package/editor-web/assets/{tabs-CxxOnGLR.js → tabs-DIFDqj-l.js} +1 -1
- package/editor-web/assets/{textarea-Fu93tFO3.js → textarea-tEWvBY9p.js} +1 -1
- package/editor-web/assets/{timeline-definition-JXYKGLGB-BcSoN4Dq.js → timeline-definition-JXYKGLGB-CLCvY-Yf.js} +1 -1
- package/editor-web/assets/{trash-2-BAKAeziW.js → trash-2-BP6nqpg2.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-CsFN2jrc.js → treeView-D4JQ5SDB-BmN0gwdC.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-DP1eqXJ2.js → treemap-SAJKECNS-DN29G_E_.js} +1 -1
- package/editor-web/assets/{undo-2-DQ5CBmki.js → undo-2-CHR0nvWL.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-BGxa0osF.js → usecaseDiagram-WPOLBNNX-DTRS54cB.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-D2XhTF49.js → vennDiagram-Q3Y3IDCW-DAAc11Hx.js} +1 -1
- package/editor-web/assets/{video-CDbPX4Cr.js → video-BlvmR8BK.js} +1 -1
- package/editor-web/assets/{wardley-7MLQ67FV-DM3jMAbZ.js → wardley-7MLQ67FV-B-UYkmdB.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-Bf-DaZEg.js → wardleyDiagram-IVAIDKWA-BmbwCaky.js} +1 -1
- package/editor-web/assets/words-D_4T9Adq.js +3 -0
- package/editor-web/assets/words-WgdEQdYP.js +2 -0
- package/editor-web/assets/{xychartDiagram-4URNHDU4-dp-mdcWd.js → xychartDiagram-4URNHDU4-ChAfAq1U.js} +1 -1
- package/editor-web/index.html +6 -6
- package/package.json +8 -2
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +0 -337
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +0 -2
- package/editor-web/assets/alt-DnBZJzEh.js +0 -4
- package/editor-web/assets/article-DLMjAdbP.js +0 -73
- package/editor-web/assets/button-Chk675Xu.js +0 -41
- package/editor-web/assets/channel-EzYq4r0d.js +0 -1
- package/editor-web/assets/chart-Be9Hj5GL.js +0 -1
- package/editor-web/assets/choice-BgmBh4yu.js +0 -1
- package/editor-web/assets/dist--KKyT5zP.js +0 -340
- package/editor-web/assets/dist-1k0MHB3i.js +0 -1
- package/editor-web/assets/dist-B9KHJqL5.js +0 -4
- package/editor-web/assets/dist-BbJyrhIY.js +0 -1
- package/editor-web/assets/dist-CJXCQxQM.js +0 -37
- package/editor-web/assets/dist-D9xQGwe9.js +0 -5
- package/editor-web/assets/dist-DFiLzbx8.js +0 -219
- package/editor-web/assets/dist-DIPV6xfF.js +0 -2
- package/editor-web/assets/dist-Dp-fQMtx.js +0 -6
- package/editor-web/assets/dist-Duw28VxJ.js +0 -16
- package/editor-web/assets/dist-OBE2IIYP.js +0 -24
- package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +0 -1
- package/editor-web/assets/index-C-i_iuxN.js +0 -28
- package/editor-web/assets/index-Cxh_Shkm.css +0 -2
- package/editor-web/assets/minus-oPj1GxwA.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +0 -8
- package/editor-web/assets/syntax-Bih_jv7W.js +0 -1
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@allyhub/report-extension",
|
|
3
|
+
"version": "0.11.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
"./cli": {
|
|
7
|
+
"types": "./dist/cli/find.d.ts",
|
|
8
|
+
"default": "./dist/cli/find.js"
|
|
9
|
+
},
|
|
10
|
+
"./theme": {
|
|
11
|
+
"types": "./dist/theme.d.ts",
|
|
12
|
+
"default": "./dist/theme.js"
|
|
13
|
+
},
|
|
14
|
+
"./tools": {
|
|
15
|
+
"types": "./dist/tools.d.ts",
|
|
16
|
+
"default": "./dist/tools.js"
|
|
17
|
+
},
|
|
18
|
+
"./package.json": "./package.json",
|
|
19
|
+
"./dist/*": "./dist/*"
|
|
20
|
+
},
|
|
21
|
+
"allyhub": {
|
|
22
|
+
"id": "allyhub.report",
|
|
23
|
+
"engines": "^0.1.0",
|
|
24
|
+
"main": "./dist/workspace.js",
|
|
25
|
+
"contributes": {
|
|
26
|
+
"kinds": [
|
|
27
|
+
{
|
|
28
|
+
"id": "report",
|
|
29
|
+
"name": {
|
|
30
|
+
"en": "Report",
|
|
31
|
+
"zh-cn": "报告",
|
|
32
|
+
"zh-tw": "報告",
|
|
33
|
+
"ja": "レポート",
|
|
34
|
+
"ko": "리포트",
|
|
35
|
+
"es": "Informe",
|
|
36
|
+
"fr": "Rapport",
|
|
37
|
+
"de": "Bericht",
|
|
38
|
+
"pt": "Relatório"
|
|
39
|
+
},
|
|
40
|
+
"plural": {
|
|
41
|
+
"en": "Reports",
|
|
42
|
+
"zh-cn": "报告",
|
|
43
|
+
"zh-tw": "報告",
|
|
44
|
+
"ja": "レポート",
|
|
45
|
+
"ko": "리포트",
|
|
46
|
+
"es": "Informes",
|
|
47
|
+
"fr": "Rapports",
|
|
48
|
+
"de": "Berichte",
|
|
49
|
+
"pt": "Relatórios"
|
|
50
|
+
},
|
|
51
|
+
"noun": "report",
|
|
52
|
+
"icon": "chart-pie",
|
|
53
|
+
"color": "kind-teal",
|
|
54
|
+
"exports": {
|
|
55
|
+
"types": [
|
|
56
|
+
"png",
|
|
57
|
+
"pdf",
|
|
58
|
+
"html"
|
|
59
|
+
],
|
|
60
|
+
"extras": []
|
|
61
|
+
},
|
|
62
|
+
"renders": {
|
|
63
|
+
"types": [
|
|
64
|
+
"html",
|
|
65
|
+
"pdf",
|
|
66
|
+
"png"
|
|
67
|
+
],
|
|
68
|
+
"defaults": [
|
|
69
|
+
"html"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"starter": {
|
|
73
|
+
"files": {
|
|
74
|
+
"{{name}}.html": "<!doctype html>\n<html lang=\"{{locale}}\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>{{title}}</title>\n</head>\n<body>\n<h1>{{title}}</h1>\n</body>\n</html>\n"
|
|
75
|
+
},
|
|
76
|
+
"entry": "{{name}}.html"
|
|
77
|
+
},
|
|
78
|
+
"share": true,
|
|
79
|
+
"build": "./dist/build.js",
|
|
80
|
+
"editor": "allyhub.report.view",
|
|
81
|
+
"shown": {
|
|
82
|
+
"line": {
|
|
83
|
+
"en": "Research and reviews, for any screen",
|
|
84
|
+
"zh-cn": "调研和分析报告,适配任何屏幕",
|
|
85
|
+
"zh-tw": "調研和分析報告,適配任何螢幕",
|
|
86
|
+
"ja": "リサーチと分析を、どの画面でも",
|
|
87
|
+
"ko": "리서치와 분석, 어떤 화면에서든",
|
|
88
|
+
"es": "Investigaciones y análisis, para cualquier pantalla",
|
|
89
|
+
"pt": "Pesquisas e análises, para qualquer tela",
|
|
90
|
+
"de": "Recherchen und Analysen, für jeden Bildschirm",
|
|
91
|
+
"fr": "Recherches et analyses, sur tous les écrans"
|
|
92
|
+
},
|
|
93
|
+
"order": 15
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"editors": [
|
|
98
|
+
{
|
|
99
|
+
"id": "allyhub.report.view",
|
|
100
|
+
"kinds": [
|
|
101
|
+
"report"
|
|
102
|
+
],
|
|
103
|
+
"module": "@allyhub/report-view",
|
|
104
|
+
"markup": "./markup"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"rules": [
|
|
108
|
+
{
|
|
109
|
+
"code": "AK-M017",
|
|
110
|
+
"level": "error",
|
|
111
|
+
"rule": "A report's file is not an HTML file, or is not there"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"code": "AK-P004",
|
|
115
|
+
"level": "error",
|
|
116
|
+
"rule": "A report's page did not load, or did not settle within its timeout"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"cliCommands": [
|
|
120
|
+
{
|
|
121
|
+
"name": "report style list",
|
|
122
|
+
"summary": "The report styles AllyHub brings, each with its themes: a look written down for a report to start from when the person gives no style",
|
|
123
|
+
"work": "reports",
|
|
124
|
+
"module": "./dist/cli/index.js"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "report style show",
|
|
128
|
+
"summary": "A report style in words and numbers (its STYLE.md): its themes, tokens, type, page and example parts, for reference and never a limit",
|
|
129
|
+
"work": "reports",
|
|
130
|
+
"module": "./dist/cli/index.js"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "report style use",
|
|
134
|
+
"summary": "Copies a report style beside a report: its style.css and tokens.js in the report's style/ folder, its faces and chart library once in the project's assets/report-styles/; the files are then the report's own",
|
|
135
|
+
"work": "reports",
|
|
136
|
+
"module": "./dist/cli/index.js"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"skills": [
|
|
140
|
+
{
|
|
141
|
+
"path": "./skills/allyhub"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"projectTools": [
|
|
145
|
+
{
|
|
146
|
+
"name": "report/still",
|
|
147
|
+
"source": "asleep",
|
|
148
|
+
"does": {
|
|
149
|
+
"files": "the project's files; the report's page drawn in a browser"
|
|
150
|
+
},
|
|
151
|
+
"module": "./dist/project-tools.js"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "report/at",
|
|
155
|
+
"source": "asleep",
|
|
156
|
+
"does": {
|
|
157
|
+
"files": "the project's files; the report's page read in a browser"
|
|
158
|
+
},
|
|
159
|
+
"module": "./dist/project-tools.js"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "report/hold",
|
|
163
|
+
"source": "asleep",
|
|
164
|
+
"does": {
|
|
165
|
+
"files": "the project's files; the report's page kept open in a browser"
|
|
166
|
+
},
|
|
167
|
+
"module": "./dist/project-tools.js"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "report/release",
|
|
171
|
+
"source": "asleep",
|
|
172
|
+
"does": {
|
|
173
|
+
"files": "nothing the agent does: a page kept open for a person's notes closed"
|
|
174
|
+
},
|
|
175
|
+
"module": "./dist/project-tools.js"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"private": true,
|
|
181
|
+
"license": "SEE LICENSE IN LICENSE.md"
|
|
182
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# The allyhub report style
|
|
2
|
+
|
|
3
|
+
A look for a report when the person names no style of their own. Everything here is for reference and never a limit: design and use any part or chart that fits the report. Be creative.
|
|
4
|
+
|
|
5
|
+
## Files
|
|
6
|
+
|
|
7
|
+
`allyhub report style use <report> allyhub` writes `style/style.css` and `style/tokens.js` beside the report, and copies the faces and Chart.js once into the project's `assets/report-styles/allyhub/`. Link them:
|
|
8
|
+
|
|
9
|
+
```html
|
|
10
|
+
<html lang="en" data-theme="moss">
|
|
11
|
+
<head>
|
|
12
|
+
<link rel="stylesheet" href="style/style.css" />
|
|
13
|
+
<script src="style/tokens.js"></script>
|
|
14
|
+
<script src="../../assets/report-styles/allyhub/chart.umd.min.js"></script>
|
|
15
|
+
</head>
|
|
16
|
+
</html>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
(The script's path is from the report's folder to the project's `assets/`; the command prints it.) `style.css` holds the tokens as CSS variables, each theme as `[data-theme="…"]`, the faces' `@font-face` rules and reduced motion; no class for any part. The files are the report's own: change them as the report needs.
|
|
20
|
+
|
|
21
|
+
## Content
|
|
22
|
+
|
|
23
|
+
- Cite the sources in the text where they support a claim, and list them all in a references section near the footer: each an address of a product, a post, an author or an article. Every link to a source opens in a new tab (`target="_blank"`). No links to the report's own sections.
|
|
24
|
+
- Numbers come from the project's data files: fetch the CSV or JSON by its path and draw from it, so a figure in the text, a legend and a chart are one number. A number you work out (a total, a growth rate) is worked out in code from that data.
|
|
25
|
+
- Add charts where they make the report clearer.
|
|
26
|
+
|
|
27
|
+
## Themes
|
|
28
|
+
|
|
29
|
+
`blue` (default), `sage`, `sand`, `rose`, `slate`, `moss`, `plum`, `ember`, `mist`, `clay`: set one on `<html data-theme="…">`, chosen by the report's subject. A theme changes only `--hero-bg`, `--hero-deco` and `--hero-deco2`. The person may change it from the report's view, which rewrites that attribute alone; a theme you add to `style.css` as `[data-theme="…"]` is offered there too.
|
|
30
|
+
|
|
31
|
+
## Interactivity, motion, mobile
|
|
32
|
+
|
|
33
|
+
- Prefer interactive reports: charts with tooltips, a switch between views.
|
|
34
|
+
- Prefer subtle motion where it fits (in the hero's background). The render draws with `prefers-reduced-motion: reduce`, which `style.css` honours; motion made by a script checks `matchMedia("(prefers-reduced-motion: reduce)")` itself (Chart.js: `animation: false` then).
|
|
35
|
+
- Mobile first. On a phone the outer frame collapses to nothing: no outer padding, no side margins, no page corner radius; the report fills the screen's width.
|
|
36
|
+
|
|
37
|
+
## Tokens
|
|
38
|
+
|
|
39
|
+
| Group | Token | Value |
|
|
40
|
+
| ------ | ------------------------------------------ | ----------------- |
|
|
41
|
+
| Base | `--outer-bg` | #E4E1DC |
|
|
42
|
+
| | `--page-bg` | #FDFCF9 |
|
|
43
|
+
| | `--surface` | #FFFFFF |
|
|
44
|
+
| | `--border` | #E8E6E2 |
|
|
45
|
+
| | `--divider` | #C5C0BA |
|
|
46
|
+
| Text | `--text-primary` | #151515 |
|
|
47
|
+
| | `--text-body` | #3D3D3D |
|
|
48
|
+
| | `--text-secondary` | #717171 |
|
|
49
|
+
| Hero | `--hero-bg`, `--hero-deco`, `--hero-deco2` | by theme |
|
|
50
|
+
| Status | `--success-bg` / `--success-fg` | #E8FBCF / #3D4826 |
|
|
51
|
+
| | `--warning-bg` / `--warning-fg` | #FFF0DC / #E47700 |
|
|
52
|
+
| | `--info-bg` / `--info-fg` | #DEE5F7 / #3E54CE |
|
|
53
|
+
| | `--error-bg` / `--error-fg` | #FDECEA / #C4433A |
|
|
54
|
+
| | `--neutral-bg` / `--neutral-fg` | #FDF9F2 / #7C746F |
|
|
55
|
+
|
|
56
|
+
Themes (`--hero-bg` / `--hero-deco` / `--hero-deco2`): blue #DEE5F7 / #A3AEEE / #7F8FE0, sage #D7EDE2 / #8FC5A8 / #5FA882, sand #EDE8DE / #C8BB9F / #A99778, rose #F0E4E1 / #C4A8A2 / #A88078, slate #DDE3E8 / #9BADB0 / #6E9298, moss #DDE8D8 / #93B888 / #5E8F52, plum #E8DDEF / #B89AC8 / #8F6AAF, ember #F0E4D8 / #D4A882 / #B87D50, mist #E2E8E8 / #96B4B4 / #6A9898, clay #EDE4DC / #C4A890 / #A07858.
|
|
57
|
+
|
|
58
|
+
Code that cannot read CSS (a canvas chart) reads the same values from `tokens.js`: `reportToken("hero-deco2")` is the current theme's colour, `reportTokens()` all of them. Never type a token's hex into a chart: a theme then changes every chart.
|
|
59
|
+
|
|
60
|
+
## Type
|
|
61
|
+
|
|
62
|
+
`var(--font-sans)` (Inter Tight, then Noto Sans SC for Chinese and Japanese, then Noto Color Emoji) everywhere; `var(--font-serif)` (Noto Serif) for the hero's figures only.
|
|
63
|
+
|
|
64
|
+
| Role | Size | Weight |
|
|
65
|
+
| ------------- | ---- | ---------------------------------- |
|
|
66
|
+
| section title | 17px | 600 |
|
|
67
|
+
| card title | 15px | 600 |
|
|
68
|
+
| body | 14px | 400 |
|
|
69
|
+
| body small | 13px | 400 |
|
|
70
|
+
| meta | 12px | 400 |
|
|
71
|
+
| tag, badge | 11px | 500 |
|
|
72
|
+
| hero figure | 48px | 500, serif, letter-spacing -0.02em |
|
|
73
|
+
|
|
74
|
+
Korean has no face here: a Korean report loads one (a `@fontsource` package's files), or `allyhub check` warns that its text is drawn in a face of the computer.
|
|
75
|
+
|
|
76
|
+
Chinese and Japanese are set in Noto Sans SC at 400 and 700 alone: text at 500 or 600 shows at the nearer of them. Its faces are split by Unicode ranges, so a page loads only those its text needs, and the self-contained HTML export carries them (about 2 MB for a Chinese report; `allyhub render` says how much of the file they are).
|
|
77
|
+
|
|
78
|
+
## Dark
|
|
79
|
+
|
|
80
|
+
The style has no dark scheme: a reader who asks for dark sees the light page (`allyhub frames --dark` shows the same). For one, write `@media (prefers-color-scheme: dark)` over the tokens in `style.css`.
|
|
81
|
+
|
|
82
|
+
## Page
|
|
83
|
+
|
|
84
|
+
The page is a canvas 1200px wide at most, centred, on `--page-bg`, its corners 24px, overflow hidden, on a body of `--outer-bg`.
|
|
85
|
+
|
|
86
|
+
## Hero and footer
|
|
87
|
+
|
|
88
|
+
Both on `--hero-bg`. A few organic shapes behind the content (no more than four), filled with `--hero-deco` and `--hero-deco2` at an opacity of about 0.15 to 0.2: irregular, as if drawn by hand, never circles or ellipses; loosely scattered in varied sizes, not gathered at a corner or an edge; texture that never draws the eye.
|
|
89
|
+
|
|
90
|
+
**Hero**: an eyebrow, a headline or a hero figure, a subtitle, a white hairline, a compact row of figures (value and label), each optional. Keep it compact and dense; no landing-page header or large empty space unless the person asks for one.
|
|
91
|
+
|
|
92
|
+
The shapes are decoration: `position: absolute`, never making the hero or the footer taller. Never write a rule for every child (`.hero > *`, `footer > *`) that sets `position` or `z-index`: it is as specific as the shapes' class and, later in the sheet, turns every shape into a block in the flow. Lift the content over the shapes in a named wrapper (`.hero-content { position: relative; z-index: 1 }`).
|
|
93
|
+
|
|
94
|
+
**Footer**: a title and a line under it at the left, two columns of facts at the right, a white hairline, then a bar with the report's details at the left and the copyright at the right, with `Generated by <a href="https://allyhub.com" target="_blank">AllyHub AI</a>`.
|
|
95
|
+
|
|
96
|
+
## Example parts
|
|
97
|
+
|
|
98
|
+
Examples, not a limit.
|
|
99
|
+
|
|
100
|
+
- **Section heading**: a title (17px/600), an optional line under it (12px, `--text-secondary`), then a full-width `0.5px` rule of `--border`.
|
|
101
|
+
- **Cards**: `--surface`, a `0.5px` border of `--border`, corners 12px, two to a row (one on a phone). A header of a title and a line of facts, an avatar or an icon where it helps; a body of quotes one under another, a `0.5px` line of `--border` between them, none after the last.
|
|
102
|
+
- **Post list**: full-width cards (corners 12px, `0.5px` border) 10px apart, each an avatar at the left, the title, handle and date, its numbers (♥ ↺ 💬) at the top right, the text, and tags.
|
|
103
|
+
- **Tags**: 11px/500, padding 3px 9px, corners 20px, in a status pair's colours.
|
|
104
|
+
- **Figures**: a grid that fits as many 140px cells as it can; each a label (12px, `--text-secondary`), a value (26px/600), how it moved (12px/500, `--success-fg` or `--error-fg`).
|
|
105
|
+
- **A large figure**: a label (13px), a value (36px/600, tight letter-spacing), how it moved against its target, and an optional sparkline (40px tall, no axes).
|
|
106
|
+
- **Alert**: corners 10px, padding 14px 16px, an optional bold title over the text, in a status pair's colours.
|
|
107
|
+
- **Table**: a head of 12px/500 in `--text-secondary` over a `1px` line of `--divider`; cells 13px, a `0.5px` line of `--border` between rows and none under the last; always in a box that scrolls sideways. Its last column is often a tag.
|
|
108
|
+
- **Bars**: a label and its value on a line, then a 4px track of `--border` with a coloured fill, the colour its legend's.
|
|
109
|
+
|
|
110
|
+
## Charts
|
|
111
|
+
|
|
112
|
+
Chart.js 4 (`chart.umd.min.js`, a classic script: one file, which the self-contained HTML export can carry). Use other charts where they fit.
|
|
113
|
+
|
|
114
|
+
- Every chart sits in a box of fixed height with its options `responsive: true` and `maintainAspectRatio: false`:
|
|
115
|
+
|
|
116
|
+
```html
|
|
117
|
+
<div style="position: relative; height: 280px">
|
|
118
|
+
<canvas id="revenue"></canvas>
|
|
119
|
+
</div>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
- Its colours from `reportToken(…)`.
|
|
123
|
+
- Its own legend off; a legend in HTML instead, a small coloured square and the label and value on a line, drawn from the same data as the chart.
|
|
124
|
+
- Give the canvas an `aria-label` that says what it shows: the Markdown export and a screen reader read it.
|
|
125
|
+
- **Line**: `tension: 0.4`, `pointRadius: 0`, `borderWidth: 1.5`, no x grid, a y grid of `--border`.
|
|
126
|
+
- **Pie, doughnut**: `borderWidth: 0`; a doughnut `cutout: "65%"`, its figure in the hole an absolutely placed element.
|
|
127
|
+
- **Sparkline**: a line with every axis and grid hidden, about 40px tall.
|
|
128
|
+
- **A switch between ranges**: change the chart's data in place and call `chart.update()`; never make the chart again.
|
|
129
|
+
|
|
130
|
+
## Look at it
|
|
131
|
+
|
|
132
|
+
`allyhub frames <report>` draws it as the render does (`--width 375` for a phone, `--dark`, `--print`); `allyhub check` names what is missing, refused or thrown.
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* The allyhub report style: its tokens, its themes, its faces and reduced
|
|
2
|
+
motion. No class for any part: the report's own CSS draws every part. */
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
/* Base */
|
|
6
|
+
--outer-bg: #e4e1dc;
|
|
7
|
+
--page-bg: #fdfcf9;
|
|
8
|
+
--surface: #ffffff;
|
|
9
|
+
--border: #e8e6e2;
|
|
10
|
+
--divider: #c5c0ba;
|
|
11
|
+
|
|
12
|
+
/* Text */
|
|
13
|
+
--text-primary: #151515;
|
|
14
|
+
--text-body: #3d3d3d;
|
|
15
|
+
--text-secondary: #717171;
|
|
16
|
+
|
|
17
|
+
/* Hero: the blue theme's */
|
|
18
|
+
--hero-bg: #dee5f7;
|
|
19
|
+
--hero-deco: #a3aeee;
|
|
20
|
+
--hero-deco2: #7f8fe0;
|
|
21
|
+
|
|
22
|
+
/* Status */
|
|
23
|
+
--success-bg: #e8fbcf;
|
|
24
|
+
--success-fg: #3d4826;
|
|
25
|
+
--warning-bg: #fff0dc;
|
|
26
|
+
--warning-fg: #e47700;
|
|
27
|
+
--info-bg: #dee5f7;
|
|
28
|
+
--info-fg: #3e54ce;
|
|
29
|
+
--error-bg: #fdecea;
|
|
30
|
+
--error-fg: #c4433a;
|
|
31
|
+
--neutral-bg: #fdf9f2;
|
|
32
|
+
--neutral-fg: #7c746f;
|
|
33
|
+
|
|
34
|
+
/* Type */
|
|
35
|
+
--font-sans:
|
|
36
|
+
"Inter Tight Variable", "Noto Sans SC", "Noto Color Emoji", sans-serif;
|
|
37
|
+
--font-serif: "Noto Serif", "Noto Sans SC", "Noto Color Emoji", serif;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Themes: each changes the hero's three colours alone. */
|
|
41
|
+
[data-theme="blue"] {
|
|
42
|
+
--hero-bg: #dee5f7;
|
|
43
|
+
--hero-deco: #a3aeee;
|
|
44
|
+
--hero-deco2: #7f8fe0;
|
|
45
|
+
}
|
|
46
|
+
[data-theme="sage"] {
|
|
47
|
+
--hero-bg: #d7ede2;
|
|
48
|
+
--hero-deco: #8fc5a8;
|
|
49
|
+
--hero-deco2: #5fa882;
|
|
50
|
+
}
|
|
51
|
+
[data-theme="sand"] {
|
|
52
|
+
--hero-bg: #ede8de;
|
|
53
|
+
--hero-deco: #c8bb9f;
|
|
54
|
+
--hero-deco2: #a99778;
|
|
55
|
+
}
|
|
56
|
+
[data-theme="rose"] {
|
|
57
|
+
--hero-bg: #f0e4e1;
|
|
58
|
+
--hero-deco: #c4a8a2;
|
|
59
|
+
--hero-deco2: #a88078;
|
|
60
|
+
}
|
|
61
|
+
[data-theme="slate"] {
|
|
62
|
+
--hero-bg: #dde3e8;
|
|
63
|
+
--hero-deco: #9badb0;
|
|
64
|
+
--hero-deco2: #6e9298;
|
|
65
|
+
}
|
|
66
|
+
[data-theme="moss"] {
|
|
67
|
+
--hero-bg: #dde8d8;
|
|
68
|
+
--hero-deco: #93b888;
|
|
69
|
+
--hero-deco2: #5e8f52;
|
|
70
|
+
}
|
|
71
|
+
[data-theme="plum"] {
|
|
72
|
+
--hero-bg: #e8ddef;
|
|
73
|
+
--hero-deco: #b89ac8;
|
|
74
|
+
--hero-deco2: #8f6aaf;
|
|
75
|
+
}
|
|
76
|
+
[data-theme="ember"] {
|
|
77
|
+
--hero-bg: #f0e4d8;
|
|
78
|
+
--hero-deco: #d4a882;
|
|
79
|
+
--hero-deco2: #b87d50;
|
|
80
|
+
}
|
|
81
|
+
[data-theme="mist"] {
|
|
82
|
+
--hero-bg: #e2e8e8;
|
|
83
|
+
--hero-deco: #96b4b4;
|
|
84
|
+
--hero-deco2: #6a9898;
|
|
85
|
+
}
|
|
86
|
+
[data-theme="clay"] {
|
|
87
|
+
--hero-bg: #ede4dc;
|
|
88
|
+
--hero-deco: #c4a890;
|
|
89
|
+
--hero-deco2: #a07858;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Motion stops for a reader who asks (and for the render, which asks). */
|
|
93
|
+
@media (prefers-reduced-motion: reduce) {
|
|
94
|
+
*,
|
|
95
|
+
*::before,
|
|
96
|
+
*::after {
|
|
97
|
+
animation-duration: 0.01ms !important;
|
|
98
|
+
animation-iteration-count: 1 !important;
|
|
99
|
+
transition-duration: 0.01ms !important;
|
|
100
|
+
scroll-behavior: auto !important;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Faces: written by `allyhub report style use`, their files in the project. */
|
|
105
|
+
/* @faces */
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Warm neutral pages on a soft tint, organic shapes behind a compact hero and the footer, Inter Tight with Noto Serif figures, Chart.js charts: AllyHub's own look for research reports",
|
|
3
|
+
"theme": "blue",
|
|
4
|
+
"faces": [
|
|
5
|
+
{
|
|
6
|
+
"package": "@fontsource-variable/inter-tight",
|
|
7
|
+
"css": ["wght.css", "wght-italic.css"]
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"package": "@fontsource/noto-serif",
|
|
11
|
+
"css": ["500.css", "500-italic.css"]
|
|
12
|
+
},
|
|
13
|
+
{ "package": "@fontsource/noto-sans-sc", "css": ["400.css", "700.css"] },
|
|
14
|
+
{ "package": "@fontsource/noto-color-emoji", "css": ["emoji.css"] }
|
|
15
|
+
],
|
|
16
|
+
"files": [{ "package": "chart.js", "path": "dist/chart.umd.min.js" }]
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// The report style's tokens for code that cannot read CSS (a canvas chart):
|
|
2
|
+
// read from style.css as the page draws it, so they follow the theme on
|
|
3
|
+
// <html data-theme> and any change made to style.css.
|
|
4
|
+
(() => {
|
|
5
|
+
const NAMES = [
|
|
6
|
+
"outer-bg",
|
|
7
|
+
"page-bg",
|
|
8
|
+
"surface",
|
|
9
|
+
"border",
|
|
10
|
+
"divider",
|
|
11
|
+
"text-primary",
|
|
12
|
+
"text-body",
|
|
13
|
+
"text-secondary",
|
|
14
|
+
"hero-bg",
|
|
15
|
+
"hero-deco",
|
|
16
|
+
"hero-deco2",
|
|
17
|
+
"success-bg",
|
|
18
|
+
"success-fg",
|
|
19
|
+
"warning-bg",
|
|
20
|
+
"warning-fg",
|
|
21
|
+
"info-bg",
|
|
22
|
+
"info-fg",
|
|
23
|
+
"error-bg",
|
|
24
|
+
"error-fg",
|
|
25
|
+
"neutral-bg",
|
|
26
|
+
"neutral-fg",
|
|
27
|
+
"font-sans",
|
|
28
|
+
"font-serif",
|
|
29
|
+
];
|
|
30
|
+
/** A token's value now, by its name without `--` ("hero-deco2"). */
|
|
31
|
+
window.reportToken = (name) =>
|
|
32
|
+
getComputedStyle(document.documentElement)
|
|
33
|
+
.getPropertyValue(`--${name}`)
|
|
34
|
+
.trim();
|
|
35
|
+
/** Every token's value now, by name. */
|
|
36
|
+
window.reportTokens = () =>
|
|
37
|
+
Object.fromEntries(NAMES.map((n) => [n, window.reportToken(n)]));
|
|
38
|
+
})();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{isRule as
|
|
2
|
+
import{isRule as Ge,problem as ve}from"@allyhub/diagnostics";import{contentEdges as Le,STRUCTURE as xe,toFrame as Ue,LAYER_NAME as Be,showLayer as Ae}from"@allyhub/piece";import{fact as Ee,intersect as He}from"@allyhub/video-core";import{backdropRoot as Ke,contentOf as We,holdsAdjustment as Ie}from"@allyhub/image-draw/layer-style";import{isFootage as ie,layerNames as Oe,planStack as Me,resolveTimes as $e,windowOf as je,zOf as Se}from"@allyhub/image-draw/plan";import{realTimers as Xe}from"@allyhub/image-draw/guards";const Ye={captions:()=>[],face:()=>{},faces:()=>[],texts:()=>[]};export{ie as isFootage,Oe as layerNames,Me as planStack,$e as resolveTimes,je as windowOf,Se as zOf};export function layerContexts(g,Q,V,Z,k){const{log:K,ledger:N,embed:m,combo:R}=g,{look:D,format:ee,dims:c}=Q,F=[[0,0,c.width,c.safe.top],[0,c.height-c.safe.bottom,c.width,c.safe.bottom],[0,0,c.safe.left,c.height],[c.width-c.safe.right,0,c.safe.right,c.height]].filter(n=>n[2]>0&&n[3]>0),w=Le(c),v=[w.left,w.top,w.right-w.left,w.bottom-w.top],te=n=>{if(!k)throw new Error(`"${n}": a page has no film to find it in.`);return k.filmAt(n)};return n=>{const C=n.reads??Ye,G=n.record??(()=>{}),x=n.place,L=n.answers,U={look:D,format:ee,dims:c,combo:n.combo??R,dur:n.dur,asset:o=>K.asset(o),optionalAsset:o=>K.optionalAsset(o),words:n.words,at:n.at,layer:{start:n.start,end:n.end},...n.enter?{enter:n.enter}:{},...n.exit?{exit:n.exit}:{},wait:o=>{N.wait(o)},report:o=>{const u=N.running,W=Ge(o.code)?o.code:"AK-R001",I=u?.part??x?.part;N.ran(ve(W,o.message,{...o.level?{level:o.level}:{},...o.ofPage?{ofPage:!0}:{},...I?{part:I}:{},...u?.t===void 0?{}:{t:u.t}}))},captions:o=>C.captions(o),face:(o,u)=>C.face(o,u),faces:o=>C.faces(o),texts:o=>C.texts(o),covered:F,content:v,video:(o,u)=>V.video(o,u,G),cameraFor:o=>m?.cameras?.[o]??m?.cameras?.["*"],...m?.sceneryScale===void 0?{}:{sceneryScale:m.sceneryScale},embedded:m!==void 0,get layoutOnly(){return Z.mode==="layout"},realTimers:Xe,...L?{answer:(o,u)=>{L.set(o,u)}}:{}};return x&&Object.defineProperty(U,"film",{enumerable:!0,get:()=>(G("film",String(x.start)),{start:x.start,part:x.part,at:te,...m?.shown?{outer:m.shown}:{}})}),U}}const _e=g=>Math.max(0,g-.4),de=g=>Math.round(g*1e3)/1e3,Ne=g=>Math.round(g*1e6)/1e6;export function compose(g){const{env:Q,piece:V,stage:Z,takes:k,film:K,captions:N,footage:m,sound:R}=g,{source:D,options:ee,combo:c,picked:F,ledger:w}=Q,{fps:v,format:te,dims:n}=V,{specs:C}=k,{timing:G,windows:x}=K,L=[],U=[],o=[],u=ee.purpose==="play",W=new Set,I=(l,s)=>{const a={};for(const[i,b]of Object.entries(c)){if(!F.has(i)||i===s){a[i]=b;continue}Object.defineProperty(a,i,{enumerable:!0,get:()=>(W.has(`${l}:${i}`)||(W.add(`${l}:${i}`),w.problems.push(ve("AK-X005",`A layer of part ${l} reads ctx.combo.${i}, ${i===xe?"the combo's structure":`the pick of the slot ${i}`}. A part is rendered once and reused in every combo that has it, so it may read only the dimensions${s===void 0?"":` and its own slot (${s})`}. Choose in the output's function instead, and pass the result as a prop.`,{part:l,where:{file:D.file}}))),b)})}return a};for(const[l,s]of C.entries()){const a=G.parts[l];if(!a)continue;const i=a.end-a.start,b=e=>G.at(l,e),Re=N.partWords(s.key),Ce=k.results[l]?.speech,fe=k.inputs[l],le=fe?.placed??[],pe=[...le,...(fe?.anchors??[]).filter(e=>!le.some(t=>t.name===e.name))],X=k.speechFor(l,a),M=x.get(l),$=x.get(l+1),Pe={...M&&M.before+M.after>0?{enter:{start:-M.before/v,end:M.after/v}}:{},...$&&$.before+$.after>0?{exit:{start:i-$.before/v,end:i+$.after/v}}:{}};let P;if(typeof s.still=="function")P=s.still(i);else if(s.still===void 0){if(P=_e(i),M||$){const e=(M?.after??0)/v,t=i-(($?.before??0)+1)/v;P=Math.max(e,Math.min(P,t))}}else P=b(s.still);let Y=Ue(a.start+P,v);(Y<a.start||Y>=a.end)&&(Y=a.start);const se=s.slot??(F.has(s.key)&&s.key!==xe?s.key:void 0),Te=F.size>0?I(s.key,se):c,oe={reads:new Map,captioned:!1},ne=Me(s.layers),{takeAt:ae,planes:B,planeOf:re,overOf:me,order:ue}=ne,ce=s.layers,he=s.post,A=k.videoTakes[l],d={key:s.key,...s.title===void 0?{}:{title:s.title},...se===void 0?{}:{slot:se},layers:Oe(ce),start:a.start,end:a.end,planes:B,still:Y,...X.speech?{speech:X.speech}:{},...pe.length>0?{anchors:pe.map(e=>({name:e.name,at:de(a.start+b(`@${e.name}`)),...e.end===void 0?{}:{end:de(a.start+b(`@/${e.name}`))}}))}:{},...s.tags?.length?{tags:[...s.tags]}:{},...he?{post:{filter:he.filter}}:{},...s.speechGainDb!==void 0&&s.speechGainDb!==0?{speechGainDb:s.speechGainDb}:{},...A?{plays:{video:A.id,from:A.from,to:A.to}}:{}};L.push(d),R.addSpeech(X.clips,X.room);const h=document.createElement("section");h.className="ak-part",h.dataset.key=s.key,h.dataset.format=te,Object.assign(h.style,{position:"absolute",inset:"0",overflow:"hidden"}),Ae(h,!1),Z.el.append(h);const _=new Map;u&&ce.forEach((e,t)=>{if(!ie(e))return;const f=document.createElement("div");f.className="ak-footage-plane",Object.assign(f.style,{position:"absolute",inset:"0",...(me.get(t)??0)>0?{pointerEvents:"none"}:{}}),_.set(t,f)});let E;_.size>0&&ae>=0&&(E=document.createElement("div"),E.className="ak-cutout-plane",Object.assign(E.style,{position:"absolute",inset:"0",pointerEvents:"none"}));const ze={captions:e=>(oe.captioned=!0,N.partCues(a.start,a.end,e)),face:(e,t)=>m.faceAt(s.key,a.start+e,t),faces:e=>m.facesAt(s.key,a.start+e)},H=[],ye=new Map;for(const[e,t]of ce.entries()){const[f,y]=je(t,i,b);if(ie(t)){const z=e===ae,J=m.plan(t,d,Ce,a.speechAt,f,y,{at:b,cutout:z,over:me.get(e)??0,person:z&&E!==void 0});if(J&&u){const we=_.get(e)??h,{matteUrl:ke,personOver:De,...Fe}=J;o.push({...Fe,host:we,...ke===void 0?{}:{cutoutIn:{host:De&&E?E:we,matte:ke}}})}continue}if(t.visible===!1)continue;const r=Se(t),O=re.get(e)??0;B[O]?.layers.push({component:t.component,start:Ne(d.start+f),end:Ne(d.start+Math.max(f,y))});const p=document.createElement("div");p.className="ak-layer",p.dataset.component=t.component,t.key!==void 0&&p.setAttribute(Be,t.key),Object.assign(p.style,{position:"absolute",inset:"0"}),Ae(p,!1),ye.set(e,p);const S=t.times?$e(t.props,t.times,b):t.props,q=H.slice(),ge=new Map,be=g.contexts({dur:i,words:()=>Re,at:b,start:f,end:y,combo:Te,reads:{...ze,texts:z=>g.texts({part:d,el:h},q,z)},record:(z,J)=>oe.reads.set(z,J),place:{start:d.start,part:s.key},answers:ge,...Pe});H.push({spec:t,index:e,props:S,el:p,content:We(p,t,be.dims),ctx:be,start:f,end:y,z:r,plane:O,answers:ge})}H.some(e=>Ie(e.spec))&&Ke(h);let T=h,j;if(B.some(e=>e.overlay===!0)){T=document.createElement("div"),j=document.createElement("div"),T.className="ak-picture",j.className="ak-overlays";for(const e of[T,j])Object.assign(e.style,{position:"absolute",inset:"0",overflow:"hidden"}),h.append(e)}ue.forEach((e,t)=>{const f=_.get(e)??ye.get(e);f&&(j&&ne.overlaid(e)?j:T).append(f);const y=re.get(e),r=ue[t+1];E&&y!==void 0&&B[y]?.behindPerson===!0&&(r===void 0||re.get(r)!==y)&&T.append(E)}),R.sfx(s,d,b),A&&R.carry(A.inner,A.from,A.to,d.start,d.key,0);for(const e of H){const t=k.shownBy.get(e.spec);t&&(t.shown.start=d.start+e.start,t.shown.partStart=d.start,t.shown.from=t.from,t.shown.to=t.from+(e.end-e.start)*t.speed,t.shown.speed=t.speed,t.audio!==void 0&&t.speed===1&&R.carry(t.inner,t.from,t.shown.to,d.start+e.start,d.key,t.audio))}B.forEach((e,t)=>{const f=e.layers.filter(r=>r.end>r.start),y=m.placed.flatMap(r=>{if(r.part!==d.key||(r.over??0)<=t)return[];if(!f.some(p=>p.end>r.start&&p.start<r.end))return[];let O;for(const p of r.boxes?r.boxes.map(S=>S.box):[r.box]){const S=He(p,[0,0,n.width,n.height]),q=S?de(S[2]*S[3]/(n.width*n.height)):0;(!O||q>O.frame)&&(O={box:p,frame:q})}return O?[{file:r.file,start:r.start,end:r.end,...O}]:[]});y.length!==0&&w.facts.push(Ee("graphics-under-footage",{piece:D.piece,part:s.key,t:d.start},{layers:f,footage:y,covered:Math.max(...y.map(r=>r.frame))}))}),ne.hasBehind&&ae<0&&w.facts.push(Ee("fallback",{piece:D.piece,part:s.key},{missing:"own-footage",for:"behind-person",fallback:"in-front"})),U.push({part:d,spec:s,n:l,el:h,picture:T,...j?{overlays:j}:{},layers:H,record:oe})}return{parts:L,mounted:U,clips:o}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{decodeKey as J,decodings as Le,MASTER_DEFAULTS as
|
|
2
|
+
import{decodeKey as J,decodings as Le,MASTER_DEFAULTS as Oe,previewMaster as Be,renderMix as De}from"@allyhub/audio";import{mixPlan as Ue,partOnScreen as Ie,subtitleCues as Ke}from"@allyhub/video-core";import{realNow as F,realRaf as Se,realTimeout as He}from"@allyhub/image-draw/guards";export const RESUME_WAIT_MS=400;const ce=r=>`${String(Math.floor(r/60))}:${String(Math.floor(r%60)).padStart(2,"0")}`;export async function startPlayer(r){const{output:M,stage:d}=r,s=M.timeline,f=s.fps,B=s.duration,k=B-1/f,a=new AudioContext,Q=a.createGain();Q.connect(a.destination);const V=r.media??{},$e=r.seed??"",Y=Ue(s,V,{seed:$e}),ee=async e=>{if(e)try{const t=await fetch(e);return t.ok?await a.decodeAudioData(await t.arrayBuffer()):void 0}catch{return}},Ae=(e,t)=>{const n=V[e]?.denoisedUrl,i=[...t.denoise?[`db=${t.denoise.toFixed(2)}`]:[],...t.speed===void 0?[]:[`speed=${t.speed.toFixed(6)}`],...t.filter===void 0?[]:[`filter=${encodeURIComponent(t.filter)}`]];return n===void 0||i.length===0?void 0:`${n}?${i.join("&")}`},te=new Map,D=new Map,ne=[],de=Le(Y);for(const{file:e,how:t}of de){const n=Ae(e,t);if(n){const i=await ee(`${n}&wait=0`);i?D.set(J(e,t),i):ne.push({key:J(e,t),url:n})}}for(const{file:e,how:t}of de)te.has(e)||D.has(J(e,t))||te.set(e,await ee(V[e]?.url));const ue=e=>{const t=e.getChannelData(0);return[t,e.numberOfChannels>1?e.getChannelData(1):t]},Ce=(e,t)=>{const n=D.get(J(e,t));if(n)return{src:ue(n),made:t};const i=te.get(e);return i?{src:ue(i),made:{}}:void 0},Ee=s.audio.master??{...Oe};let S;const pe=()=>{const e=Be(De(Y,Ce,a.sampleRate),a.sampleRate,Ee);if(!e){S=void 0;return}const[t,n]=e,i=a.createBuffer(2,Math.max(1,t.length),a.sampleRate);i.getChannelData(0).set(t),i.getChannelData(1).set(n),S=i};pe();const $=Ke({lines:M.lines(),fps:s.fps},M.captionOptions()??void 0);let l=!1,x=Math.min(Math.max(r.start??s.parts[0]?.still??0,0),k),b=0,U=0,I=0,N=0,K=[],se=[],A=!1,H={ctx:0,real:0};const u=()=>l?A?b+(a.currentTime-U):b+(F()-I)/1e3:x,Te=()=>{if(!A)return;const e=F();if(a.currentTime!==H.ctx)H={ctx:a.currentTime,real:e};else if(e-H.real>300){const t=u();A=!1,b=t,I=e}},fe=r.chrome!==!1,R="#141210",C="#ece6da",Pe="#a39a8b",ge='ui-monospace,"SF Mono",Menlo,monospace';document.documentElement.style.background=R,document.body.style.cssText=`margin:0;background:${R};overflow:hidden;font:13px/1 system-ui,-apple-system,"PingFang SC","Noto Sans SC",sans-serif;color:${C}`;const g=document.createElement("div");g.style.cssText=`position:fixed;left:0;right:0;top:0;bottom:${fe?"48px":"0"};overflow:hidden;cursor:pointer;font:initial;color:initial`,d.parentElement?.insertBefore(g,d),g.append(d),d.style.position="absolute",d.style.transformOrigin="0 0";const L=document.createElement("div");L.style.cssText=`position:fixed;left:0;right:0;bottom:0;height:48px;display:flex;align-items:center;gap:12px;padding:0 10px;background:${R};border-top:1px solid #2a2622`;const E=document.createElement("button");E.style.cssText=`width:32px;height:32px;border:0;border-radius:4px;background:${C};color:${R};cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none`,E.setAttribute("aria-label","play");const c=document.createElement("input");c.type="range",c.min="0",c.max=String(Math.round(B*f)),c.step="1",c.style.cssText=`flex:1;min-width:0;accent-color:${C};cursor:pointer`;const ie=document.createElement("span");ie.style.cssText=`font:12px/1 ${ge};font-variant-numeric:tabular-nums;min-width:86px;text-align:right;color:${Pe}`;const me=`height:28px;padding:0 9px;border:1px solid #3a352e;border-radius:4px;background:transparent;color:${C};font:12px/1 ${ge};cursor:pointer;flex:none`,v=document.createElement("button");v.textContent="CC",v.style.cssText=me,v.setAttribute("aria-label","captions"),v.setAttribute("aria-pressed","false");const m=document.createElement("button");m.textContent="Pages",m.style.cssText=me,m.setAttribute("aria-label","page by page"),m.setAttribute("aria-pressed","false"),L.setAttribute("role","toolbar"),c.setAttribute("aria-label","seek"),L.append(E,c,ie,m),$.length&&L.append(v),fe&&document.body.append(L);const Fe=()=>{const e=Math.min(g.clientWidth/s.width,g.clientHeight/s.height);d.style.transform=`scale(${String(e)})`,d.style.left=`${String((g.clientWidth-s.width*e)/2)}px`,d.style.top=`${String((g.clientHeight-s.height*e)/2)}px`},W=s.width,_=s.height,j=Math.min(W,_)/1080,T=document.createElement("div");T.style.cssText=`position:absolute;left:0;top:0;width:${String(W)}px;height:${String(_)}px;transform-origin:0 0;pointer-events:none`;const h=document.createElement("div");h.setAttribute("role","status"),h.setAttribute("aria-live","polite"),h.style.cssText=`position:absolute;left:50%;transform:translateX(-50%);bottom:${String((_>W?.2:.08)*_)}px;max-width:${String(W*.84)}px;padding:${String(10*j)}px ${String(22*j)}px;border-radius:${String(12*j)}px;background:rgba(0,0,0,.66);color:#fff;font:600 ${String(44*j)}px/1.3 system-ui,-apple-system,"PingFang SC","Noto Sans SC",sans-serif;text-align:center;display:none`,T.append(h),g.append(T);let w=!1;const he=e=>{const t=w?$.find(n=>e>=n.start&&e<n.end):void 0;t?(h.textContent!==t.text&&(h.textContent=t.text),h.style.display="block"):h.style.display="none"},ye=()=>{Fe(),T.style.transform=d.style.transform,T.style.left=d.style.left,T.style.top=d.style.top};new ResizeObserver(ye).observe(g),ye();let p=M.kind==="slides"?"page":"play",o=0,y;const q=e=>Math.max(0,s.parts.findIndex(t=>e>=t.start&&e<t.end));p==="page"&&(o=q(x),m.setAttribute("aria-pressed","true"),m.textContent="Play all");let ae=-1,xe=0,be=0;const Ne=e=>Ie(s.parts,s.transitions,e,f),G=async(e,t=!1)=>{const n=Math.min(Math.floor(e*f+1e-9),Math.round(k*f));(n!==ae||t)&&(ae=n,await M.seek(n/f),c.value=String(n),c.setAttribute("aria-valuetext",ce(e)),ie.textContent=`${ce(e)} / ${ce(B)}`),he(e);const i=F();(t||i-be>250)&&(be=i,r.post?.({type:"time",t:e,part:Ne(e),playing:l,mode:p}))},ve={play:'<svg width="12" height="14" viewBox="0 0 12 14" aria-hidden="true"><path d="M1 1.2v11.6a.6.6 0 0 0 .9.5l9.6-5.8a.6.6 0 0 0 0-1L1.9.7a.6.6 0 0 0-.9.5Z" fill="currentColor"/></svg>',pause:'<svg width="12" height="14" viewBox="0 0 12 14" aria-hidden="true"><rect x="1" y="1" width="3.5" height="12" rx=".6" fill="currentColor"/><rect x="7.5" y="1" width="3.5" height="12" rx=".6" fill="currentColor"/></svg>'},oe=()=>{E.innerHTML=l?ve.pause:ve.play,E.setAttribute("aria-label",l?"pause":"play")},we=()=>{for(const e of K)try{e.stop()}catch{}K=[];for(const e of se)e.disconnect();se=[]},Re=e=>U+Math.max(0,e-b);function Me(){if(!S||b>=S.duration)return;const e=a.createGain();e.connect(Q),se.push(e);const t=a.createBufferSource();t.buffer=S,t.connect(e),K.push(t),t.start(Re(b),b)}function P(e=u()){N++,l=!1,M.setPlaying(!1),x=Math.min(Math.max(e,0),k),we(),oe(),G(x,!0)}async function re(){const e=++N;if(x>=k&&(x=0),await Promise.race([a.resume().catch(()=>{}),new Promise(n=>{He(n,RESUME_WAIT_MS)})]),e!==N)return;b=x,U=a.currentTime+.05,I=F()+50,A=S!==void 0&&a.state==="running",!A&&$.length&&!X&&Z(!0),H={ctx:a.currentTime,real:F()},l=!0,M.setPlaying(!0),oe(),Me();const t=()=>{if(xe++,!l||e!==N)return;Te();const n=u();if(n>=k){P(k);return}if(y!==void 0&&n>=y){const i=s.parts[o]?.still??y;y=void 0,P(i);return}G(n),Se(t)};Se(t)}function z(e){const t=l;y=void 0,P(e),t&&re()}let X=!1;function Z(e){w=e&&$.length>0,v.setAttribute("aria-pressed",String(w)),v.style.background=w?C:"transparent",v.style.color=w?R:C,he(u())}function ke(e){p=e,m.setAttribute("aria-pressed",String(e==="page")),m.textContent=e==="page"?"Play all":"Pages",y=void 0,e==="page"?O(q(u())):G(u(),!0)}function O(e){o=Math.min(Math.max(e,0),s.parts.length-1),y=void 0,P(s.parts[o]?.still??0)}function le(){if(l){y=void 0,P();return}if(p==="page"){const e=s.parts[o];e&&(x=e.start,y=e.end-1/f)}re()}return E.addEventListener("click",e=>{e.stopPropagation(),le()}),g.addEventListener("click",le),c.addEventListener("input",()=>{z(Number(c.value)/f),p==="page"&&(o=q(Number(c.value)/f))}),v.addEventListener("click",e=>{e.stopPropagation(),X=!0,Z(!w)}),m.addEventListener("click",e=>{e.stopPropagation(),ke(p==="page"?"play":"page")}),addEventListener("keydown",e=>{if(!(e.metaKey||e.ctrlKey||e.altKey)){if(e.key===" "||e.key==="k")le();else if(e.key==="ArrowRight")p==="page"?O(o+1):z(u()+5);else if(e.key==="ArrowLeft")p==="page"?O(o-1):z(u()-5);else if(e.key==="c"&&$.length)X=!0,Z(!w);else if(e.key==="f")document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen().catch(()=>{});else return;e.preventDefault()}}),oe(),await G(x,!0),r.post?.({type:"ready",duration:B,parts:s.parts}),ne.length>0&&(r.post?.({type:"sound",denoising:!0}),Promise.all(ne.map(async({key:e,url:t})=>{const n=await ee(t);if(!n||(D.set(e,n),pe(),!l))return;const i=u();we(),b=i,U=a.currentTime,I=F(),Me()})).then(()=>{r.post?.({type:"sound",denoising:!1})})),{command(e){if(e.type==="play"){if(!l){if(p==="page"){const t=s.parts[o];t&&(y=t.end-1/f)}re()}}else e.type==="pause"?P():e.type==="seek"&&Number.isFinite(e.t)?(z(e.t),p==="page"&&(o=q(e.t))):e.type==="mode"?ke(e.mode):e.type==="next"?O(o+1):e.type==="prev"?O(o-1):e.type==="captions"?(X=!0,Z(e.on)):e.type==="volume"&&Number.isFinite(e.level)&&(Q.gain.value=Math.min(1,Math.max(0,e.level)))},now:u,state:()=>({playing:l,audioClock:A,audio:a.state,t:u(),frame:ae,ticks:xe,generation:N,sounds:K.length,sfx:Y.sfx.length,mode:p,page:o,captions:w,caption:h.style.display==="none"?"":h.textContent,cues:$.length})}}
|