@usetheo/ui 0.13.0 → 0.13.2
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 +541 -69
- package/DESIGN.md +18 -18
- package/NOTICE +2 -2
- package/README.md +54 -52
- package/dist/chunk-23YEYNDS.js +89 -0
- package/dist/chunk-23YEYNDS.js.map +1 -0
- package/dist/chunk-25KBUQEQ.js +95 -0
- package/dist/chunk-25KBUQEQ.js.map +1 -0
- package/dist/chunk-2NTEJRPA.js +212 -0
- package/dist/chunk-2NTEJRPA.js.map +1 -0
- package/dist/chunk-2NZYMQKT.js +56 -0
- package/dist/chunk-2NZYMQKT.js.map +1 -0
- package/dist/chunk-2OVFVPSZ.js +26 -0
- package/dist/chunk-2OVFVPSZ.js.map +1 -0
- package/dist/chunk-2UP7SECE.js +78 -0
- package/dist/chunk-2UP7SECE.js.map +1 -0
- package/dist/chunk-33ETHPT7.js +112 -0
- package/dist/chunk-33ETHPT7.js.map +1 -0
- package/dist/chunk-33IIDFSM.js +43 -0
- package/dist/chunk-33IIDFSM.js.map +1 -0
- package/dist/chunk-345HYADQ.js +88 -0
- package/dist/chunk-345HYADQ.js.map +1 -0
- package/dist/chunk-357XIC2N.js +98 -0
- package/dist/chunk-357XIC2N.js.map +1 -0
- package/dist/chunk-3YOPTHZH.js +31 -0
- package/dist/chunk-3YOPTHZH.js.map +1 -0
- package/dist/chunk-44ZNZZUS.js +111 -0
- package/dist/chunk-44ZNZZUS.js.map +1 -0
- package/dist/chunk-45FWKR23.js +62 -0
- package/dist/chunk-45FWKR23.js.map +1 -0
- package/dist/chunk-47IPOYLQ.js +116 -0
- package/dist/chunk-47IPOYLQ.js.map +1 -0
- package/dist/chunk-4EH6F54D.js +69 -0
- package/dist/chunk-4EH6F54D.js.map +1 -0
- package/dist/chunk-4EKF4EIE.js +140 -0
- package/dist/chunk-4EKF4EIE.js.map +1 -0
- package/dist/chunk-4XYFJIRC.js +65 -0
- package/dist/chunk-4XYFJIRC.js.map +1 -0
- package/dist/chunk-52J7SDYH.js +48 -0
- package/dist/chunk-52J7SDYH.js.map +1 -0
- package/dist/chunk-5YX76GH6.js +70 -0
- package/dist/chunk-5YX76GH6.js.map +1 -0
- package/dist/chunk-624AATQZ.js +77 -0
- package/dist/chunk-624AATQZ.js.map +1 -0
- package/dist/chunk-65YSFZAN.js +192 -0
- package/dist/chunk-65YSFZAN.js.map +1 -0
- package/dist/chunk-6IODJQWC.js +47 -0
- package/dist/chunk-6IODJQWC.js.map +1 -0
- package/dist/chunk-6ORS6XOE.js +57 -0
- package/dist/chunk-6ORS6XOE.js.map +1 -0
- package/dist/chunk-6V2LQEPT.js +165 -0
- package/dist/chunk-6V2LQEPT.js.map +1 -0
- package/dist/chunk-75IDWFYX.js +134 -0
- package/dist/chunk-75IDWFYX.js.map +1 -0
- package/dist/chunk-7BQXMG2A.js +93 -0
- package/dist/chunk-7BQXMG2A.js.map +1 -0
- package/dist/chunk-7RFWVNQA.js +47 -0
- package/dist/chunk-7RFWVNQA.js.map +1 -0
- package/dist/chunk-ABBXLAJW.js +74 -0
- package/dist/chunk-ABBXLAJW.js.map +1 -0
- package/dist/chunk-ACZNFEOZ.js +180 -0
- package/dist/chunk-ACZNFEOZ.js.map +1 -0
- package/dist/chunk-AJ2LNQUQ.js +108 -0
- package/dist/chunk-AJ2LNQUQ.js.map +1 -0
- package/dist/chunk-AX6P3SDS.js +89 -0
- package/dist/chunk-AX6P3SDS.js.map +1 -0
- package/dist/chunk-AXUAQM45.js +154 -0
- package/dist/chunk-AXUAQM45.js.map +1 -0
- package/dist/chunk-B2FL7KBJ.js +65 -0
- package/dist/chunk-B2FL7KBJ.js.map +1 -0
- package/dist/chunk-B42EOFRD.js +106 -0
- package/dist/chunk-B42EOFRD.js.map +1 -0
- package/dist/chunk-BE232OKN.js +42 -0
- package/dist/chunk-BE232OKN.js.map +1 -0
- package/dist/chunk-BSF4Y4UT.js +77 -0
- package/dist/chunk-BSF4Y4UT.js.map +1 -0
- package/dist/chunk-BYUWQ6OP.js +45 -0
- package/dist/chunk-BYUWQ6OP.js.map +1 -0
- package/dist/chunk-C5ULP2P5.js +140 -0
- package/dist/chunk-C5ULP2P5.js.map +1 -0
- package/dist/chunk-CCG7PXLX.js +24 -0
- package/dist/chunk-CCG7PXLX.js.map +1 -0
- package/dist/chunk-CFVSXYVT.js +59 -0
- package/dist/chunk-CFVSXYVT.js.map +1 -0
- package/dist/chunk-CGWIOIEO.js +27 -0
- package/dist/chunk-CGWIOIEO.js.map +1 -0
- package/dist/chunk-CVFSNA4K.js +716 -0
- package/dist/chunk-CVFSNA4K.js.map +1 -0
- package/dist/chunk-CX54TUTT.js +144 -0
- package/dist/chunk-CX54TUTT.js.map +1 -0
- package/dist/chunk-DJK6H3FD.js +200 -0
- package/dist/chunk-DJK6H3FD.js.map +1 -0
- package/dist/chunk-E26M7ATD.js +61 -0
- package/dist/chunk-E26M7ATD.js.map +1 -0
- package/dist/chunk-E63IRXZZ.js +78 -0
- package/dist/chunk-E63IRXZZ.js.map +1 -0
- package/dist/chunk-EOTSD2GL.js +83 -0
- package/dist/chunk-EOTSD2GL.js.map +1 -0
- package/dist/chunk-ESJUISWY.js +45 -0
- package/dist/chunk-ESJUISWY.js.map +1 -0
- package/dist/chunk-ET7A3TQZ.js +158 -0
- package/dist/chunk-ET7A3TQZ.js.map +1 -0
- package/dist/chunk-ETTL6XGU.js +139 -0
- package/dist/chunk-ETTL6XGU.js.map +1 -0
- package/dist/chunk-EWDN56AS.js +24 -0
- package/dist/chunk-EWDN56AS.js.map +1 -0
- package/dist/chunk-FELH4AAQ.js +90 -0
- package/dist/chunk-FELH4AAQ.js.map +1 -0
- package/dist/chunk-FJZKA2LV.js +165 -0
- package/dist/chunk-FJZKA2LV.js.map +1 -0
- package/dist/chunk-FM72LBCJ.js +102 -0
- package/dist/chunk-FM72LBCJ.js.map +1 -0
- package/dist/chunk-FNQASFTK.js +53 -0
- package/dist/chunk-FNQASFTK.js.map +1 -0
- package/dist/chunk-FOE3XXBJ.js +965 -0
- package/dist/chunk-FOE3XXBJ.js.map +1 -0
- package/dist/chunk-GC52HWIL.js +41 -0
- package/dist/chunk-GC52HWIL.js.map +1 -0
- package/dist/chunk-GCKFA7X7.js +83 -0
- package/dist/chunk-GCKFA7X7.js.map +1 -0
- package/dist/chunk-GDMCDW66.js +19 -0
- package/dist/chunk-GDMCDW66.js.map +1 -0
- package/dist/chunk-GLRUM43F.js +121 -0
- package/dist/chunk-GLRUM43F.js.map +1 -0
- package/dist/chunk-H3L7WZDZ.js +74 -0
- package/dist/chunk-H3L7WZDZ.js.map +1 -0
- package/dist/chunk-H55WXDME.js +45 -0
- package/dist/chunk-H55WXDME.js.map +1 -0
- package/dist/chunk-HB45JHMM.js +43 -0
- package/dist/chunk-HB45JHMM.js.map +1 -0
- package/dist/chunk-HETHTYEZ.js +80 -0
- package/dist/chunk-HETHTYEZ.js.map +1 -0
- package/dist/chunk-HHSKNB32.js +55 -0
- package/dist/chunk-HHSKNB32.js.map +1 -0
- package/dist/chunk-HILOUYES.js +151 -0
- package/dist/chunk-HILOUYES.js.map +1 -0
- package/dist/chunk-HKVOCYTN.js +113 -0
- package/dist/chunk-HKVOCYTN.js.map +1 -0
- package/dist/chunk-HNRFBJ25.js +129 -0
- package/dist/chunk-HNRFBJ25.js.map +1 -0
- package/dist/chunk-HTJVHFNW.js +178 -0
- package/dist/chunk-HTJVHFNW.js.map +1 -0
- package/dist/chunk-HZ7Z22VW.js +130 -0
- package/dist/chunk-HZ7Z22VW.js.map +1 -0
- package/dist/chunk-II5Q5RIO.js +236 -0
- package/dist/chunk-II5Q5RIO.js.map +1 -0
- package/dist/chunk-ITEIRMSH.js +121 -0
- package/dist/chunk-ITEIRMSH.js.map +1 -0
- package/dist/chunk-JIZKW3WC.js +74 -0
- package/dist/chunk-JIZKW3WC.js.map +1 -0
- package/dist/chunk-JP3SHERK.js +154 -0
- package/dist/chunk-JP3SHERK.js.map +1 -0
- package/dist/chunk-JR4H3FJ2.js +74 -0
- package/dist/chunk-JR4H3FJ2.js.map +1 -0
- package/dist/chunk-JRW53TVG.js +53 -0
- package/dist/chunk-JRW53TVG.js.map +1 -0
- package/dist/chunk-JS5T2CRO.js +86 -0
- package/dist/chunk-JS5T2CRO.js.map +1 -0
- package/dist/chunk-JXOCE27Z.js +82 -0
- package/dist/chunk-JXOCE27Z.js.map +1 -0
- package/dist/chunk-JYW5YNF7.js +188 -0
- package/dist/chunk-JYW5YNF7.js.map +1 -0
- package/dist/chunk-KHBXI6AV.js +149 -0
- package/dist/chunk-KHBXI6AV.js.map +1 -0
- package/dist/chunk-KXZH7BTX.js +92 -0
- package/dist/chunk-KXZH7BTX.js.map +1 -0
- package/dist/chunk-LB4PMLCX.js +57 -0
- package/dist/chunk-LB4PMLCX.js.map +1 -0
- package/dist/chunk-LMGE2QEO.js +117 -0
- package/dist/chunk-LMGE2QEO.js.map +1 -0
- package/dist/chunk-M74ZYBOK.js +93 -0
- package/dist/chunk-M74ZYBOK.js.map +1 -0
- package/dist/chunk-ML7WLNIK.js +11 -0
- package/dist/chunk-ML7WLNIK.js.map +1 -0
- package/dist/chunk-MLEPCMTF.js +147 -0
- package/dist/chunk-MLEPCMTF.js.map +1 -0
- package/dist/chunk-NSZEZTDO.js +98 -0
- package/dist/chunk-NSZEZTDO.js.map +1 -0
- package/dist/chunk-OMR6ZGME.js +63 -0
- package/dist/chunk-OMR6ZGME.js.map +1 -0
- package/dist/chunk-ORVYP73T.js +223 -0
- package/dist/chunk-ORVYP73T.js.map +1 -0
- package/dist/chunk-OZFUUO2Q.js +50 -0
- package/dist/chunk-OZFUUO2Q.js.map +1 -0
- package/dist/chunk-PJWYIOY4.js +3 -0
- package/dist/chunk-PJWYIOY4.js.map +1 -0
- package/dist/chunk-PXT47DRZ.js +59 -0
- package/dist/chunk-PXT47DRZ.js.map +1 -0
- package/dist/chunk-QBSJM4XI.js +83 -0
- package/dist/chunk-QBSJM4XI.js.map +1 -0
- package/dist/chunk-QBUTRD2M.js +58 -0
- package/dist/chunk-QBUTRD2M.js.map +1 -0
- package/dist/chunk-QCSMJTA6.js +68 -0
- package/dist/chunk-QCSMJTA6.js.map +1 -0
- package/dist/chunk-QNYOIVQ4.js +36 -0
- package/dist/chunk-QNYOIVQ4.js.map +1 -0
- package/dist/chunk-QPURZJJM.js +88 -0
- package/dist/chunk-QPURZJJM.js.map +1 -0
- package/dist/chunk-QTG266XU.js +69 -0
- package/dist/chunk-QTG266XU.js.map +1 -0
- package/dist/chunk-QV4BQRNH.js +29 -0
- package/dist/chunk-QV4BQRNH.js.map +1 -0
- package/dist/chunk-RJ6RAMKH.js +89 -0
- package/dist/chunk-RJ6RAMKH.js.map +1 -0
- package/dist/chunk-RJBCTMVW.js +59 -0
- package/dist/chunk-RJBCTMVW.js.map +1 -0
- package/dist/chunk-RMJYXHBX.js +113 -0
- package/dist/chunk-RMJYXHBX.js.map +1 -0
- package/dist/chunk-RQT5DWGG.js +34 -0
- package/dist/chunk-RQT5DWGG.js.map +1 -0
- package/dist/chunk-SPGNNN4R.js +115 -0
- package/dist/chunk-SPGNNN4R.js.map +1 -0
- package/dist/chunk-SQ66DCXY.js +35 -0
- package/dist/chunk-SQ66DCXY.js.map +1 -0
- package/dist/chunk-SXKGWHAM.js +179 -0
- package/dist/chunk-SXKGWHAM.js.map +1 -0
- package/dist/chunk-T2OKGV6M.js +13 -0
- package/dist/chunk-T2OKGV6M.js.map +1 -0
- package/dist/chunk-T4Z7HBZR.js +110 -0
- package/dist/chunk-T4Z7HBZR.js.map +1 -0
- package/dist/chunk-TW5I37AE.js +142 -0
- package/dist/chunk-TW5I37AE.js.map +1 -0
- package/dist/chunk-TY6NTWN5.js +29 -0
- package/dist/chunk-TY6NTWN5.js.map +1 -0
- package/dist/chunk-UJAWV6LM.js +136 -0
- package/dist/chunk-UJAWV6LM.js.map +1 -0
- package/dist/chunk-V2WCZBVE.js +122 -0
- package/dist/chunk-V2WCZBVE.js.map +1 -0
- package/dist/chunk-V4LRBYOD.js +55 -0
- package/dist/chunk-V4LRBYOD.js.map +1 -0
- package/dist/chunk-V6H2RUVP.js +77 -0
- package/dist/chunk-V6H2RUVP.js.map +1 -0
- package/dist/chunk-VFRFUU7A.js +35 -0
- package/dist/chunk-VFRFUU7A.js.map +1 -0
- package/dist/chunk-VHK2OUCW.js +38 -0
- package/dist/chunk-VHK2OUCW.js.map +1 -0
- package/dist/chunk-VLNFUEOR.js +86 -0
- package/dist/chunk-VLNFUEOR.js.map +1 -0
- package/dist/chunk-VU7XKD4G.js +66 -0
- package/dist/chunk-VU7XKD4G.js.map +1 -0
- package/dist/chunk-VZX4HLBM.js +84 -0
- package/dist/chunk-VZX4HLBM.js.map +1 -0
- package/dist/chunk-W24RR5OD.js +102 -0
- package/dist/chunk-W24RR5OD.js.map +1 -0
- package/dist/chunk-W47V2F3Q.js +115 -0
- package/dist/chunk-W47V2F3Q.js.map +1 -0
- package/dist/chunk-W743ORLA.js +91 -0
- package/dist/chunk-W743ORLA.js.map +1 -0
- package/dist/chunk-W7I3ZX66.js +76 -0
- package/dist/chunk-W7I3ZX66.js.map +1 -0
- package/dist/chunk-WD42UBGR.js +64 -0
- package/dist/chunk-WD42UBGR.js.map +1 -0
- package/dist/chunk-WQVEJJV7.js +108 -0
- package/dist/chunk-WQVEJJV7.js.map +1 -0
- package/dist/chunk-WX4Q4DTX.js +121 -0
- package/dist/chunk-WX4Q4DTX.js.map +1 -0
- package/dist/chunk-XC7SYZYR.js +86 -0
- package/dist/chunk-XC7SYZYR.js.map +1 -0
- package/dist/chunk-XSENM65D.js +128 -0
- package/dist/chunk-XSENM65D.js.map +1 -0
- package/dist/chunk-Y7JTBQUQ.js +152 -0
- package/dist/chunk-Y7JTBQUQ.js.map +1 -0
- package/dist/chunk-YD2QEVHO.js +68 -0
- package/dist/chunk-YD2QEVHO.js.map +1 -0
- package/dist/chunk-YDKRUSB5.js +35 -0
- package/dist/chunk-YDKRUSB5.js.map +1 -0
- package/dist/chunk-YNDHYMPI.js +46 -0
- package/dist/chunk-YNDHYMPI.js.map +1 -0
- package/dist/chunk-YO3WEMOH.js +130 -0
- package/dist/chunk-YO3WEMOH.js.map +1 -0
- package/dist/chunk-YVXMWUWD.js +118 -0
- package/dist/chunk-YVXMWUWD.js.map +1 -0
- package/dist/chunk-Z6HZMGO2.js +106 -0
- package/dist/chunk-Z6HZMGO2.js.map +1 -0
- package/dist/chunk-ZAP4RIUL.js +81 -0
- package/dist/chunk-ZAP4RIUL.js.map +1 -0
- package/dist/chunk-ZEDDWVBB.js +112 -0
- package/dist/chunk-ZEDDWVBB.js.map +1 -0
- package/dist/chunk-ZEFOXF2I.js +87 -0
- package/dist/chunk-ZEFOXF2I.js.map +1 -0
- package/dist/chunk-ZPURFK4C.js +203 -0
- package/dist/chunk-ZPURFK4C.js.map +1 -0
- package/dist/chunk-ZZZIOTLC.js +89 -0
- package/dist/chunk-ZZZIOTLC.js.map +1 -0
- package/dist/components/composites/account-menu/account-menu.d.ts +43 -0
- package/dist/components/composites/account-menu/index.d.ts +1 -0
- package/dist/components/composites/agent-composer/agent-composer.d.ts +41 -0
- package/dist/components/composites/agent-composer/index.d.ts +1 -0
- package/dist/components/composites/agent-editor/agent-editor.d.ts +31 -0
- package/dist/components/composites/agent-editor/index.d.ts +1 -0
- package/dist/components/composites/agent-stream/agent-stream.d.ts +72 -0
- package/dist/components/composites/agent-stream/index.d.ts +2 -0
- package/dist/components/composites/agent-stream/to-agent-stream-items.d.ts +32 -0
- package/dist/components/composites/agent-timeline/agent-timeline.d.ts +22 -0
- package/dist/components/composites/agent-timeline/index.d.ts +1 -0
- package/dist/components/composites/agent-tool-renderer/agent-tool-renderer.d.ts +60 -0
- package/dist/components/composites/agent-tool-renderer/index.d.ts +1 -0
- package/dist/components/composites/agent-tool-renderer/tool-call-part.d.ts +5 -0
- package/dist/components/composites/approval-card/approval-card.d.ts +35 -0
- package/dist/components/composites/approval-card/index.d.ts +1 -0
- package/dist/components/composites/chat-composer/chat-composer.d.ts +68 -0
- package/dist/components/composites/chat-composer/index.d.ts +1 -0
- package/dist/components/composites/chat-message/chat-message-actions.d.ts +22 -0
- package/dist/components/composites/chat-message/chat-message-branch.d.ts +17 -0
- package/dist/components/composites/chat-message/chat-message-response.d.ts +15 -0
- package/dist/components/composites/chat-message/chat-message-toolbar.d.ts +7 -0
- package/dist/components/composites/chat-message/chat-message.d.ts +94 -0
- package/dist/components/composites/chat-message/index.d.ts +23 -0
- package/dist/components/composites/chat-message/parts/data-part.d.ts +9 -0
- package/dist/components/composites/chat-message/parts/file-part.d.ts +5 -0
- package/dist/components/composites/chat-message/parts/reasoning-part.d.ts +7 -0
- package/dist/components/composites/chat-message/parts/source-part.d.ts +9 -0
- package/dist/components/composites/chat-message/parts/text-part.d.ts +11 -0
- package/dist/components/composites/choice-prompt/choice-prompt.d.ts +65 -0
- package/dist/components/composites/choice-prompt/index.d.ts +2 -0
- package/dist/components/composites/code-block/code-block.d.ts +29 -0
- package/dist/components/composites/code-block/index.d.ts +1 -0
- package/dist/components/composites/command-palette/command-palette.d.ts +41 -0
- package/dist/components/composites/command-palette/index.d.ts +1 -0
- package/dist/components/composites/confirm-dialog/confirm-dialog.d.ts +41 -0
- package/dist/components/composites/confirm-dialog/index.d.ts +1 -0
- package/dist/components/composites/confirm-prompt/confirm-prompt.d.ts +31 -0
- package/dist/components/composites/confirm-prompt/index.d.ts +1 -0
- package/dist/components/composites/cron-jobs-list/cron-jobs-list.d.ts +15 -0
- package/dist/components/composites/cron-jobs-list/index.d.ts +1 -0
- package/dist/components/composites/data-table/data-table.d.ts +63 -0
- package/dist/components/composites/data-table/index.d.ts +1 -0
- package/dist/components/composites/deployment-row/deployment-row.d.ts +28 -0
- package/dist/components/composites/deployment-row/index.d.ts +1 -0
- package/dist/components/composites/domain-config/domain-config.d.ts +34 -0
- package/dist/components/composites/domain-config/index.d.ts +1 -0
- package/dist/components/composites/env-var-editor/env-var-editor.d.ts +35 -0
- package/dist/components/composites/env-var-editor/index.d.ts +1 -0
- package/dist/components/composites/mcp-server-list/index.d.ts +1 -0
- package/dist/components/composites/mcp-server-list/mcp-server-list.d.ts +15 -0
- package/dist/components/composites/metric-card/index.d.ts +2 -0
- package/dist/components/composites/metric-card/metric-card.d.ts +46 -0
- package/dist/components/composites/multi-select-prompt/index.d.ts +1 -0
- package/dist/components/composites/multi-select-prompt/multi-select-prompt.d.ts +61 -0
- package/dist/components/composites/page-shell/index.d.ts +1 -0
- package/dist/components/composites/page-shell/page-shell.d.ts +68 -0
- package/dist/components/composites/permission-modal/index.d.ts +1 -0
- package/dist/components/composites/permission-modal/permission-modal.d.ts +48 -0
- package/dist/components/composites/preview-env-card/index.d.ts +1 -0
- package/dist/components/composites/preview-env-card/preview-env-card.d.ts +36 -0
- package/dist/components/composites/preview-panel/index.d.ts +1 -0
- package/dist/components/composites/preview-panel/preview-panel.d.ts +24 -0
- package/dist/components/composites/project-card/index.d.ts +1 -0
- package/dist/components/composites/project-card/project-card.d.ts +32 -0
- package/dist/components/composites/rollback-ui/index.d.ts +1 -0
- package/dist/components/composites/rollback-ui/rollback-ui.d.ts +32 -0
- package/dist/components/composites/rule-editor/index.d.ts +1 -0
- package/dist/components/composites/rule-editor/rule-editor.d.ts +18 -0
- package/dist/components/composites/skill-editor/index.d.ts +1 -0
- package/dist/components/composites/skill-editor/skill-editor.d.ts +19 -0
- package/dist/components/composites/skills-list/index.d.ts +1 -0
- package/dist/components/composites/skills-list/skills-list.d.ts +15 -0
- package/dist/components/composites/slide-deck/context.d.ts +23 -0
- package/dist/components/composites/slide-deck/controls.d.ts +8 -0
- package/dist/components/composites/slide-deck/fragments.d.ts +20 -0
- package/dist/components/composites/slide-deck/index.d.ts +21 -0
- package/dist/components/composites/slide-deck/notes.d.ts +14 -0
- package/dist/components/composites/slide-deck/presenter-view.d.ts +15 -0
- package/dist/components/composites/slide-deck/print-styles.d.ts +21 -0
- package/dist/components/composites/slide-deck/progress-bar.d.ts +8 -0
- package/dist/components/composites/slide-deck/schema.d.ts +31 -0
- package/dist/components/composites/slide-deck/slide-deck.d.ts +78 -0
- package/dist/components/composites/slide-deck/slide-number.d.ts +11 -0
- package/dist/components/composites/slide-deck/split-deck.d.ts +2 -0
- package/dist/components/composites/slide-deck/thumbnails.d.ts +19 -0
- package/dist/components/composites/slide-deck/use-deck-hash-routing.d.ts +23 -0
- package/dist/components/composites/slide-deck/use-deck-keyboard.d.ts +25 -0
- package/dist/components/composites/slide-deck/use-deck-state.d.ts +57 -0
- package/dist/components/composites/slide-deck/use-deck-swipe.d.ts +20 -0
- package/dist/components/composites/slide-deck/use-fullscreen.d.ts +18 -0
- package/dist/components/composites/stability-bundle-viewer/index.d.ts +1 -0
- package/dist/components/composites/stability-bundle-viewer/stability-bundle-viewer.d.ts +28 -0
- package/dist/components/composites/status-indicator/index.d.ts +2 -0
- package/dist/components/composites/status-indicator/status-indicator.d.ts +31 -0
- package/dist/components/composites/task-header/index.d.ts +1 -0
- package/dist/components/composites/task-header/task-header.d.ts +20 -0
- package/dist/components/composites/text-prompt/index.d.ts +1 -0
- package/dist/components/composites/text-prompt/text-prompt.d.ts +48 -0
- package/dist/components/composites/usage-meter/index.d.ts +1 -0
- package/dist/components/composites/usage-meter/usage-meter.d.ts +56 -0
- package/dist/components/primitives/action-bar/action-bar.d.ts +34 -0
- package/dist/components/primitives/action-bar/index.d.ts +1 -0
- package/dist/components/primitives/agent-error-card/agent-error-card.d.ts +47 -0
- package/dist/components/primitives/agent-error-card/index.d.ts +1 -0
- package/dist/components/primitives/agent-event/agent-event.d.ts +25 -0
- package/dist/components/primitives/agent-event/index.d.ts +1 -0
- package/dist/components/primitives/agent-handoff/agent-handoff.d.ts +24 -0
- package/dist/components/primitives/agent-handoff/index.d.ts +1 -0
- package/dist/components/primitives/agent-profile/agent-profile.d.ts +28 -0
- package/dist/components/primitives/agent-profile/index.d.ts +1 -0
- package/dist/components/primitives/agent-starting-state/agent-starting-state.d.ts +15 -0
- package/dist/components/primitives/agent-starting-state/index.d.ts +1 -0
- package/dist/components/primitives/agent-streaming/agent-streaming.d.ts +16 -0
- package/dist/components/primitives/agent-streaming/index.d.ts +1 -0
- package/dist/components/primitives/alert/alert.d.ts +31 -0
- package/dist/components/primitives/alert/index.d.ts +1 -0
- package/dist/components/primitives/artifact-preview/artifact-preview.d.ts +25 -0
- package/dist/components/primitives/artifact-preview/index.d.ts +1 -0
- package/dist/components/primitives/attachment-chip/attachment-chip.d.ts +14 -0
- package/dist/components/primitives/attachment-chip/index.d.ts +1 -0
- package/dist/components/primitives/audit-log-entry/audit-log-entry.d.ts +29 -0
- package/dist/components/primitives/audit-log-entry/index.d.ts +1 -0
- package/dist/components/primitives/auto-compact-notice/auto-compact-notice.d.ts +24 -0
- package/dist/components/primitives/auto-compact-notice/index.d.ts +1 -0
- package/dist/components/primitives/avatar/avatar.d.ts +26 -0
- package/dist/components/primitives/avatar/index.d.ts +1 -0
- package/dist/components/primitives/badge/badge.d.ts +33 -0
- package/dist/components/primitives/badge/index.d.ts +1 -0
- package/dist/components/primitives/branch-indicator/branch-indicator.d.ts +13 -0
- package/dist/components/primitives/branch-indicator/index.d.ts +1 -0
- package/dist/components/primitives/browser-controls/browser-controls.d.ts +19 -0
- package/dist/components/primitives/browser-controls/index.d.ts +1 -0
- package/dist/components/primitives/build-log-stream/build-log-stream.d.ts +51 -0
- package/dist/components/primitives/build-log-stream/index.d.ts +1 -0
- package/dist/components/primitives/button/button.d.ts +26 -0
- package/dist/components/primitives/button/index.d.ts +1 -0
- package/dist/components/primitives/capability-indicator/capability-indicator.d.ts +57 -0
- package/dist/components/primitives/capability-indicator/index.d.ts +1 -0
- package/dist/components/primitives/card/card.d.ts +40 -0
- package/dist/components/primitives/card/index.d.ts +1 -0
- package/dist/components/primitives/channel-card/channel-card.d.ts +28 -0
- package/dist/components/primitives/channel-card/index.d.ts +1 -0
- package/dist/components/primitives/chat-thread/chat-thread.d.ts +12 -0
- package/dist/components/primitives/chat-thread/index.d.ts +1 -0
- package/dist/components/primitives/checkbox/checkbox.d.ts +20 -0
- package/dist/components/primitives/checkbox/index.d.ts +1 -0
- package/dist/components/primitives/context-card/context-card.d.ts +18 -0
- package/dist/components/primitives/context-card/index.d.ts +1 -0
- package/dist/components/primitives/context-window-bar/context-window-bar.d.ts +27 -0
- package/dist/components/primitives/context-window-bar/index.d.ts +1 -0
- package/dist/components/primitives/copy-button/copy-button.d.ts +17 -0
- package/dist/components/primitives/copy-button/index.d.ts +1 -0
- package/dist/components/primitives/cost-meter/cost-meter.d.ts +23 -0
- package/dist/components/primitives/cost-meter/index.d.ts +1 -0
- package/dist/components/primitives/created-files-card/created-files-card.d.ts +30 -0
- package/dist/components/primitives/created-files-card/index.d.ts +1 -0
- package/dist/components/primitives/cron-job-card/cron-job-card.d.ts +30 -0
- package/dist/components/primitives/cron-job-card/index.d.ts +1 -0
- package/dist/components/primitives/danger-zone/danger-zone.d.ts +40 -0
- package/dist/components/primitives/danger-zone/index.d.ts +1 -0
- package/dist/components/primitives/dialog/dialog.d.ts +26 -0
- package/dist/components/primitives/dialog/index.d.ts +1 -0
- package/dist/components/primitives/diff-viewer/diff-viewer.d.ts +45 -0
- package/dist/components/primitives/diff-viewer/index.d.ts +1 -0
- package/dist/components/primitives/dropdown-menu/dropdown-menu.d.ts +68 -0
- package/dist/components/primitives/dropdown-menu/index.d.ts +1 -0
- package/dist/components/primitives/empty-state/empty-state.d.ts +22 -0
- package/dist/components/primitives/empty-state/index.d.ts +1 -0
- package/dist/components/primitives/export-chat-dialog/export-chat-dialog.d.ts +18 -0
- package/dist/components/primitives/export-chat-dialog/index.d.ts +1 -0
- package/dist/components/primitives/folder-context-card/folder-context-card.d.ts +40 -0
- package/dist/components/primitives/folder-context-card/index.d.ts +1 -0
- package/dist/components/primitives/folder-selector/folder-selector.d.ts +18 -0
- package/dist/components/primitives/folder-selector/index.d.ts +1 -0
- package/dist/components/primitives/form-field/form-field.d.ts +44 -0
- package/dist/components/primitives/form-field/index.d.ts +1 -0
- package/dist/components/primitives/gateway-status-indicator/gateway-status-indicator.d.ts +19 -0
- package/dist/components/primitives/gateway-status-indicator/index.d.ts +1 -0
- package/dist/components/primitives/hook-config/hook-config.d.ts +27 -0
- package/dist/components/primitives/hook-config/index.d.ts +1 -0
- package/dist/components/primitives/hook-event-log/hook-event-log.d.ts +27 -0
- package/dist/components/primitives/hook-event-log/index.d.ts +1 -0
- package/dist/components/primitives/input/index.d.ts +1 -0
- package/dist/components/primitives/input/input.d.ts +24 -0
- package/dist/components/primitives/intent-selector/index.d.ts +1 -0
- package/dist/components/primitives/intent-selector/intent-selector.d.ts +22 -0
- package/dist/components/primitives/label/index.d.ts +1 -0
- package/dist/components/primitives/label/label.d.ts +15 -0
- package/dist/components/primitives/lane-board/index.d.ts +1 -0
- package/dist/components/primitives/lane-board/lane-board.d.ts +26 -0
- package/dist/components/primitives/login-split/index.d.ts +1 -0
- package/dist/components/primitives/login-split/login-split.d.ts +24 -0
- package/dist/components/primitives/mcp-server-card/index.d.ts +1 -0
- package/dist/components/primitives/mcp-server-card/mcp-server-card.d.ts +32 -0
- package/dist/components/primitives/memory-editor/index.d.ts +1 -0
- package/dist/components/primitives/memory-editor/memory-editor.d.ts +29 -0
- package/dist/components/primitives/mention-menu/index.d.ts +1 -0
- package/dist/components/primitives/mention-menu/mention-menu.d.ts +44 -0
- package/dist/components/primitives/metrics-panel/index.d.ts +1 -0
- package/dist/components/primitives/metrics-panel/metrics-panel.d.ts +62 -0
- package/dist/components/primitives/model-card/index.d.ts +1 -0
- package/dist/components/primitives/model-card/model-card.d.ts +72 -0
- package/dist/components/primitives/model-selector/index.d.ts +1 -0
- package/dist/components/primitives/model-selector/model-selector.d.ts +21 -0
- package/dist/components/primitives/pagination/index.d.ts +1 -0
- package/dist/components/primitives/pagination/pagination.d.ts +44 -0
- package/dist/components/primitives/permission-matrix/index.d.ts +1 -0
- package/dist/components/primitives/permission-matrix/permission-matrix.d.ts +43 -0
- package/dist/components/primitives/pin-input/index.d.ts +1 -0
- package/dist/components/primitives/pin-input/pin-input.d.ts +41 -0
- package/dist/components/primitives/plan-badge/index.d.ts +1 -0
- package/dist/components/primitives/plan-badge/plan-badge.d.ts +35 -0
- package/dist/components/primitives/progress/index.d.ts +1 -0
- package/dist/components/primitives/progress/progress.d.ts +44 -0
- package/dist/components/primitives/progress-checklist/index.d.ts +1 -0
- package/dist/components/primitives/progress-checklist/progress-checklist.d.ts +18 -0
- package/dist/components/primitives/project-switcher/index.d.ts +1 -0
- package/dist/components/primitives/project-switcher/project-switcher.d.ts +32 -0
- package/dist/components/primitives/quick-action-chips/index.d.ts +1 -0
- package/dist/components/primitives/quick-action-chips/quick-action-chips.d.ts +22 -0
- package/dist/components/primitives/radio-group/index.d.ts +1 -0
- package/dist/components/primitives/radio-group/radio-group.d.ts +5 -0
- package/dist/components/primitives/recent-folders-list/index.d.ts +1 -0
- package/dist/components/primitives/recent-folders-list/recent-folders-list.d.ts +21 -0
- package/dist/components/primitives/rule-card/index.d.ts +1 -0
- package/dist/components/primitives/rule-card/rule-card.d.ts +15 -0
- package/dist/components/primitives/run-stats/index.d.ts +1 -0
- package/dist/components/primitives/run-stats/run-stats.d.ts +16 -0
- package/dist/components/primitives/run-status-pill/index.d.ts +1 -0
- package/dist/components/primitives/run-status-pill/run-status-pill.d.ts +13 -0
- package/dist/components/primitives/running-tasks-panel/index.d.ts +1 -0
- package/dist/components/primitives/running-tasks-panel/running-tasks-panel.d.ts +20 -0
- package/dist/components/primitives/scroll-area/index.d.ts +2 -0
- package/dist/components/primitives/scroll-area/scroll-area.d.ts +40 -0
- package/dist/components/primitives/scroll-area/use-stick-to-bottom.d.ts +20 -0
- package/dist/components/primitives/select/index.d.ts +1 -0
- package/dist/components/primitives/select/select.d.ts +50 -0
- package/dist/components/primitives/session-list-item/index.d.ts +1 -0
- package/dist/components/primitives/session-list-item/session-list-item.d.ts +35 -0
- package/dist/components/primitives/session-timeline/index.d.ts +1 -0
- package/dist/components/primitives/session-timeline/session-timeline.d.ts +32 -0
- package/dist/components/primitives/sheet/index.d.ts +1 -0
- package/dist/components/primitives/sheet/sheet.d.ts +57 -0
- package/dist/components/primitives/sidebar/index.d.ts +1 -0
- package/dist/components/primitives/sidebar/sidebar.d.ts +18 -0
- package/dist/components/primitives/skeleton/index.d.ts +1 -0
- package/dist/components/primitives/skeleton/skeleton.d.ts +21 -0
- package/dist/components/primitives/skill-card/index.d.ts +1 -0
- package/dist/components/primitives/skill-card/skill-card.d.ts +28 -0
- package/dist/components/primitives/slide/alerts.d.ts +31 -0
- package/dist/components/primitives/slide/frontmatter.d.ts +23 -0
- package/dist/components/primitives/slide/index.d.ts +16 -0
- package/dist/components/primitives/slide/json-schema.d.ts +9 -0
- package/dist/components/primitives/slide/marpit-bg.d.ts +36 -0
- package/dist/components/primitives/slide/parse.d.ts +59 -0
- package/dist/components/primitives/slide/plugin.d.ts +79 -0
- package/dist/components/primitives/slide/plugins/emoji/index.d.ts +8 -0
- package/dist/components/primitives/slide/plugins/emoji/map.d.ts +15 -0
- package/dist/components/primitives/slide/plugins/math/index.d.ts +6 -0
- package/dist/components/primitives/slide/plugins/mermaid/index.d.ts +48 -0
- package/dist/components/primitives/slide/plugins/shiki/index.d.ts +11 -0
- package/dist/components/primitives/slide/sanitize.d.ts +33 -0
- package/dist/components/primitives/slide/schema.d.ts +109 -0
- package/dist/components/primitives/slide/slide.d.ts +53 -0
- package/dist/components/primitives/slide/themes/index.d.ts +9 -0
- package/dist/components/primitives/slide/use-slide-fit.d.ts +21 -0
- package/dist/components/primitives/slide/validate.d.ts +33 -0
- package/dist/components/primitives/social-auth-row/index.d.ts +1 -0
- package/dist/components/primitives/social-auth-row/social-auth-row.d.ts +24 -0
- package/dist/components/primitives/stat-tile/index.d.ts +1 -0
- package/dist/components/primitives/stat-tile/stat-tile.d.ts +28 -0
- package/dist/components/primitives/status-dot/index.d.ts +1 -0
- package/dist/components/primitives/status-dot/status-dot.d.ts +31 -0
- package/dist/components/primitives/steps-rail/index.d.ts +1 -0
- package/dist/components/primitives/steps-rail/steps-rail.d.ts +24 -0
- package/dist/components/primitives/sub-agent-dispatch/index.d.ts +1 -0
- package/dist/components/primitives/sub-agent-dispatch/sub-agent-dispatch.d.ts +30 -0
- package/dist/components/primitives/switch/index.d.ts +1 -0
- package/dist/components/primitives/switch/switch.d.ts +20 -0
- package/dist/components/primitives/system-prompt-editor/index.d.ts +1 -0
- package/dist/components/primitives/system-prompt-editor/system-prompt-editor.d.ts +25 -0
- package/dist/components/primitives/table/index.d.ts +1 -0
- package/dist/components/primitives/table/table.d.ts +61 -0
- package/dist/components/primitives/tabs/index.d.ts +1 -0
- package/dist/components/primitives/tabs/tabs.d.ts +7 -0
- package/dist/components/primitives/task-plan/index.d.ts +1 -0
- package/dist/components/primitives/task-plan/task-plan.d.ts +36 -0
- package/dist/components/primitives/terminal-panel/index.d.ts +1 -0
- package/dist/components/primitives/terminal-panel/terminal-panel.d.ts +32 -0
- package/dist/components/primitives/textarea/index.d.ts +1 -0
- package/dist/components/primitives/textarea/textarea.d.ts +20 -0
- package/dist/components/primitives/thinking-level-selector/index.d.ts +1 -0
- package/dist/components/primitives/thinking-level-selector/thinking-level-selector.d.ts +24 -0
- package/dist/components/primitives/timestamp/index.d.ts +1 -0
- package/dist/components/primitives/timestamp/timestamp.d.ts +34 -0
- package/dist/components/primitives/toast/index.d.ts +2 -0
- package/dist/components/primitives/toast/toast.d.ts +34 -0
- package/dist/components/primitives/toast/toaster.d.ts +38 -0
- package/dist/components/primitives/token-usage-chart/index.d.ts +2 -0
- package/dist/components/primitives/token-usage-chart/token-usage-chart.d.ts +44 -0
- package/dist/components/primitives/token-usage-chart/usage-metrics.d.ts +23 -0
- package/dist/components/primitives/tool-call/index.d.ts +1 -0
- package/dist/components/primitives/tool-call/tool-call.d.ts +30 -0
- package/dist/components/primitives/tool-call-card/index.d.ts +1 -0
- package/dist/components/primitives/tool-call-card/tool-call-card.d.ts +30 -0
- package/dist/components/primitives/tool-result/index.d.ts +1 -0
- package/dist/components/primitives/tool-result/tool-result.d.ts +19 -0
- package/dist/components/primitives/tools-list/index.d.ts +1 -0
- package/dist/components/primitives/tools-list/tools-list.d.ts +32 -0
- package/dist/components/primitives/tooltip/index.d.ts +1 -0
- package/dist/components/primitives/tooltip/tooltip.d.ts +33 -0
- package/dist/components/primitives/topnav/index.d.ts +1 -0
- package/dist/components/primitives/topnav/topnav.d.ts +29 -0
- package/dist/components/primitives/update-banner/index.d.ts +1 -0
- package/dist/components/primitives/update-banner/update-banner.d.ts +16 -0
- package/dist/components/primitives/whiteboard/index.d.ts +2 -0
- package/dist/components/primitives/whiteboard/render/freedraw.d.ts +2 -0
- package/dist/components/primitives/whiteboard/render/line.d.ts +4 -0
- package/dist/components/primitives/whiteboard/render/rough-paths.d.ts +16 -0
- package/dist/components/primitives/whiteboard/render/scene.d.ts +3 -0
- package/dist/components/primitives/whiteboard/render/shape.d.ts +5 -0
- package/dist/components/primitives/whiteboard/render/style.d.ts +24 -0
- package/dist/components/primitives/whiteboard/render/text.d.ts +2 -0
- package/dist/components/primitives/whiteboard/schema.d.ts +596 -0
- package/dist/components/primitives/whiteboard/seed.d.ts +22 -0
- package/dist/components/primitives/whiteboard/validate.d.ts +26 -0
- package/dist/components/primitives/whiteboard/viewport/use-pointer-pan.d.ts +11 -0
- package/dist/components/primitives/whiteboard/viewport/use-viewport.d.ts +33 -0
- package/dist/components/primitives/whiteboard/whiteboard.d.ts +21 -0
- package/dist/components.css +1 -1
- package/dist/composites/account-menu/index.js +4 -4
- package/dist/composites/agent-composer/index.js +6 -5
- package/dist/composites/agent-editor/index.js +8 -7
- package/dist/composites/agent-stream/index.js +21 -9
- package/dist/composites/agent-timeline/index.js +3 -3
- package/dist/composites/agent-tool-renderer/index.js +17 -0
- package/dist/composites/agent-tool-renderer/index.js.map +1 -0
- package/dist/composites/approval-card/index.js +3 -3
- package/dist/composites/chat-composer/index.js +3 -3
- package/dist/composites/chat-message/index.js +18 -4
- package/dist/composites/choice-prompt/index.js +11 -0
- package/dist/composites/choice-prompt/index.js.map +1 -0
- package/dist/composites/code-block/index.js +3 -3
- package/dist/composites/command-palette/index.js +4 -3
- package/dist/composites/confirm-dialog/index.js +6 -5
- package/dist/composites/confirm-prompt/index.js +7 -0
- package/dist/composites/confirm-prompt/index.js.map +1 -0
- package/dist/composites/cron-jobs-list/index.js +3 -3
- package/dist/composites/data-table/index.js +8 -7
- package/dist/composites/deployment-row/index.js +3 -3
- package/dist/composites/domain-config/index.js +6 -5
- package/dist/composites/env-var-editor/index.js +7 -5
- package/dist/composites/mcp-server-list/index.js +4 -3
- package/dist/composites/metric-card/index.js +5 -0
- package/dist/composites/metric-card/index.js.map +1 -0
- package/dist/composites/multi-select-prompt/index.js +11 -0
- package/dist/composites/multi-select-prompt/index.js.map +1 -0
- package/dist/composites/page-shell/index.js +6 -5
- package/dist/composites/permission-modal/index.js +5 -4
- package/dist/composites/preview-env-card/index.js +4 -4
- package/dist/composites/preview-panel/index.js +3 -3
- package/dist/composites/project-card/index.js +4 -4
- package/dist/composites/rollback-ui/index.js +5 -4
- package/dist/composites/rule-editor/index.js +9 -8
- package/dist/composites/skill-editor/index.js +9 -8
- package/dist/composites/skills-list/index.js +4 -3
- package/dist/composites/stability-bundle-viewer/index.js +3 -2
- package/dist/composites/status-indicator/index.js +4 -0
- package/dist/composites/status-indicator/index.js.map +1 -0
- package/dist/composites/task-header/index.js +3 -3
- package/dist/composites/text-prompt/index.js +10 -0
- package/dist/composites/text-prompt/index.js.map +1 -0
- package/dist/composites/usage-meter/index.js +3 -3
- package/dist/fonts-cdn.css +4 -4
- package/dist/fonts.css +2 -2
- package/dist/index.d.ts +144 -4622
- package/dist/index.js +999 -739
- package/dist/index.js.map +1 -1
- package/dist/lib/cn.d.ts +6 -0
- package/dist/lib/env.d.ts +55 -0
- package/dist/lib/live-region-context.d.ts +2 -0
- package/dist/lib/markdown/code-block.d.ts +14 -0
- package/dist/lib/markdown/inline-code.d.ts +10 -0
- package/dist/lib/markdown/math.d.ts +12 -0
- package/dist/lib/markdown/mermaid.d.ts +6 -0
- package/dist/lib/markdown/parser.d.ts +47 -0
- package/dist/lib/markdown/streaming-preprocess.d.ts +39 -0
- package/dist/lib/prompt.d.ts +40 -0
- package/dist/lib/safe-href.d.ts +27 -0
- package/dist/lib/sdk-tools-adapters/index.d.ts +1 -0
- package/dist/lib/sdk-tools-adapters/index.js +3 -0
- package/dist/lib/sdk-tools-adapters/index.js.map +1 -0
- package/dist/lib/sdk-tools-adapters/sdk-tools-adapters.d.ts +60 -0
- package/dist/lib/types.d.ts +10 -0
- package/dist/preset-v3-legacy.d.ts +7 -10
- package/dist/preset-v3-legacy.js +23 -3
- package/dist/preset-v3-legacy.js.map +1 -1
- package/dist/preset.css +2 -2
- package/dist/primitives/action-bar/index.js +2 -2
- package/dist/primitives/agent-error-card/index.js +2 -2
- package/dist/primitives/agent-event/index.js +3 -2
- package/dist/primitives/agent-handoff/index.js +2 -2
- package/dist/primitives/agent-profile/index.js +2 -2
- package/dist/primitives/agent-starting-state/index.js +2 -2
- package/dist/primitives/agent-streaming/index.js +2 -2
- package/dist/primitives/alert/index.js +2 -2
- package/dist/primitives/artifact-preview/index.js +2 -2
- package/dist/primitives/attachment-chip/index.js +2 -2
- package/dist/primitives/audit-log-entry/index.js +2 -2
- package/dist/primitives/auto-compact-notice/index.js +2 -2
- package/dist/primitives/avatar/index.js +2 -2
- package/dist/primitives/badge/index.js +2 -2
- package/dist/primitives/branch-indicator/index.js +2 -2
- package/dist/primitives/browser-controls/index.js +2 -2
- package/dist/primitives/build-log-stream/index.js +4 -2
- package/dist/primitives/button/index.js +2 -2
- package/dist/primitives/capability-indicator/index.js +2 -2
- package/dist/primitives/card/index.js +3 -2
- package/dist/primitives/channel-card/index.js +2 -2
- package/dist/primitives/chat-thread/index.js +2 -2
- package/dist/primitives/checkbox/index.js +2 -2
- package/dist/primitives/context-card/index.js +2 -2
- package/dist/primitives/context-window-bar/index.js +2 -2
- package/dist/primitives/copy-button/index.js +3 -2
- package/dist/primitives/cost-meter/index.js +2 -2
- package/dist/primitives/created-files-card/index.js +2 -2
- package/dist/primitives/cron-job-card/index.js +2 -2
- package/dist/primitives/danger-zone/index.js +2 -2
- package/dist/primitives/dialog/index.js +2 -2
- package/dist/primitives/diff-viewer/index.js +2 -2
- package/dist/primitives/dropdown-menu/index.js +2 -2
- package/dist/primitives/empty-state/index.js +2 -2
- package/dist/primitives/export-chat-dialog/index.js +3 -2
- package/dist/primitives/folder-context-card/index.js +2 -2
- package/dist/primitives/folder-selector/index.js +2 -2
- package/dist/primitives/form-field/index.js +3 -2
- package/dist/primitives/gateway-status-indicator/index.js +2 -2
- package/dist/primitives/hook-config/index.js +3 -2
- package/dist/primitives/hook-event-log/index.js +2 -2
- package/dist/primitives/input/index.js +2 -2
- package/dist/primitives/intent-selector/index.js +2 -2
- package/dist/primitives/label/index.js +2 -2
- package/dist/primitives/lane-board/index.js +2 -2
- package/dist/primitives/login-split/index.js +2 -2
- package/dist/primitives/mcp-server-card/index.js +2 -2
- package/dist/primitives/memory-editor/index.js +2 -2
- package/dist/primitives/mention-menu/index.js +3 -2
- package/dist/primitives/metrics-panel/index.js +2 -2
- package/dist/primitives/model-card/index.js +2 -2
- package/dist/primitives/model-selector/index.js +2 -2
- package/dist/primitives/pagination/index.js +2 -2
- package/dist/primitives/permission-matrix/index.js +3 -2
- package/dist/primitives/pin-input/index.js +3 -2
- package/dist/primitives/plan-badge/index.js +2 -2
- package/dist/primitives/progress/index.js +2 -2
- package/dist/primitives/progress-checklist/index.js +2 -2
- package/dist/primitives/project-switcher/index.js +2 -2
- package/dist/primitives/quick-action-chips/index.js +2 -2
- package/dist/primitives/radio-group/index.js +2 -2
- package/dist/primitives/recent-folders-list/index.js +2 -2
- package/dist/primitives/rule-card/index.js +2 -2
- package/dist/primitives/run-stats/index.js +2 -2
- package/dist/primitives/run-status-pill/index.js +2 -2
- package/dist/primitives/running-tasks-panel/index.js +2 -2
- package/dist/primitives/scroll-area/index.js +3 -2
- package/dist/primitives/select/index.js +2 -2
- package/dist/primitives/session-list-item/index.js +2 -2
- package/dist/primitives/session-timeline/index.js +2 -2
- package/dist/primitives/sheet/index.js +2 -2
- package/dist/primitives/sidebar/index.js +2 -2
- package/dist/primitives/skeleton/index.js +2 -2
- package/dist/primitives/skill-card/index.js +2 -2
- package/dist/primitives/social-auth-row/index.js +2 -2
- package/dist/primitives/stat-tile/index.js +2 -2
- package/dist/primitives/status-dot/index.js +4 -2
- package/dist/primitives/steps-rail/index.js +2 -2
- package/dist/primitives/sub-agent-dispatch/index.js +2 -2
- package/dist/primitives/switch/index.js +2 -2
- package/dist/primitives/system-prompt-editor/index.js +3 -2
- package/dist/primitives/table/index.js +3 -2
- package/dist/primitives/tabs/index.js +2 -2
- package/dist/primitives/task-plan/index.js +2 -2
- package/dist/primitives/terminal-panel/index.js +2 -2
- package/dist/primitives/textarea/index.js +2 -2
- package/dist/primitives/thinking-level-selector/index.js +3 -2
- package/dist/primitives/timestamp/index.js +4 -2
- package/dist/primitives/toast/index.js +3 -2
- package/dist/primitives/token-usage-chart/index.js +2 -2
- package/dist/primitives/tool-call/index.js +3 -2
- package/dist/primitives/tool-call-card/index.js +3 -2
- package/dist/primitives/tool-result/index.js +2 -2
- package/dist/primitives/tools-list/index.js +2 -2
- package/dist/primitives/tooltip/index.js +2 -2
- package/dist/primitives/topnav/index.js +2 -2
- package/dist/primitives/update-banner/index.js +2 -2
- package/dist/screens/theo-code-shell.d.ts +9 -0
- package/dist/screens/theo-code-shell.data.d.ts +147 -0
- package/dist/slide/index.js +2 -1
- package/dist/slide/plugins/mermaid/index.js +1 -1
- package/dist/slide/plugins/mermaid/index.js.map +1 -1
- package/dist/slide/plugins/shiki/index.js.map +1 -1
- package/dist/slide/themes/violet-forge.css +1 -1
- package/dist/slide-deck/index.js +13 -2
- package/dist/slide-deck/index.js.map +1 -1
- package/dist/styles/tailwind-preset.d.ts +29 -0
- package/dist/styles.css +3 -3
- package/dist/test/a11y.d.ts +13 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/themes/anthropic-style.d.ts +11 -0
- package/dist/themes/aurora-terminal.d.ts +9 -0
- package/dist/themes/classic-paper.d.ts +17 -0
- package/dist/themes/color-value-pattern.d.ts +22 -0
- package/dist/themes/color.d.ts +62 -0
- package/dist/themes/define.d.ts +65 -0
- package/dist/themes/density.d.ts +17 -0
- package/dist/themes/dracula.d.ts +14 -0
- package/dist/themes/github-dark.d.ts +11 -0
- package/dist/themes/index.d.ts +26 -0
- package/dist/themes/linear-glass.d.ts +11 -0
- package/dist/themes/one-dark.d.ts +11 -0
- package/dist/themes/openai-style.d.ts +10 -0
- package/dist/themes/schema.d.ts +112 -0
- package/dist/themes/theme-provider.d.ts +82 -0
- package/dist/themes/theme-script.d.ts +48 -0
- package/dist/themes/theme-switcher.d.ts +17 -0
- package/dist/themes/types.d.ts +88 -0
- package/dist/themes/vercel-mono.d.ts +11 -0
- package/dist/themes/violet-forge.d.ts +12 -0
- package/dist/theo-ui-provider.d.ts +50 -0
- package/dist/tokens-v4.css +77 -41
- package/dist/tokens.css +159 -74
- package/dist/types/agent.d.ts +19 -0
- package/dist/types/chat.d.ts +173 -0
- package/dist/types/mode.d.ts +16 -0
- package/dist/types/permission.d.ts +8 -0
- package/dist/types/rule.d.ts +28 -0
- package/dist/types/task.d.ts +9 -0
- package/dist/vite-plugin.d.ts +7 -11
- package/dist/vite-plugin.js +4 -4
- package/dist/vite-plugin.js.map +1 -1
- package/dist/whiteboard/index.js +3 -0
- package/dist/whiteboard/index.js.map +1 -1
- package/llms.txt +39 -39
- package/package.json +236 -188
- package/registry/index.json +58 -4
- package/registry/r/account-menu.json +1 -1
- package/registry/r/action-bar.json +1 -1
- package/registry/r/agent-composer.json +1 -1
- package/registry/r/agent-editor.json +1 -1
- package/registry/r/agent-error-card.json +1 -1
- package/registry/r/agent-event.json +1 -1
- package/registry/r/agent-handoff.json +1 -1
- package/registry/r/agent-profile.json +1 -1
- package/registry/r/agent-starting-state.json +1 -1
- package/registry/r/agent-stream.json +1 -1
- package/registry/r/agent-streaming.json +1 -1
- package/registry/r/agent-timeline.json +1 -1
- package/registry/r/agent-tool-renderer.json +40 -0
- package/registry/r/alert.json +1 -1
- package/registry/r/approval-card.json +1 -1
- package/registry/r/artifact-preview.json +1 -1
- package/registry/r/attachment-chip.json +1 -1
- package/registry/r/audit-log-entry.json +1 -1
- package/registry/r/auto-compact-notice.json +1 -1
- package/registry/r/avatar.json +1 -1
- package/registry/r/badge.json +1 -1
- package/registry/r/browser-controls.json +1 -1
- package/registry/r/build-log-stream.json +2 -1
- package/registry/r/button.json +1 -1
- package/registry/r/capability-indicator.json +1 -1
- package/registry/r/card.json +1 -1
- package/registry/r/chat-composer.json +1 -1
- package/registry/r/chat-message.json +11 -16
- package/registry/r/chat-thread.json +1 -1
- package/registry/r/chat-types.json +1 -1
- package/registry/r/checkbox.json +1 -1
- package/registry/r/choice-prompt.json +25 -0
- package/registry/r/cn.json +1 -1
- package/registry/r/code-block.json +1 -1
- package/registry/r/command-palette.json +1 -1
- package/registry/r/confirm-dialog.json +1 -1
- package/registry/r/confirm-prompt.json +21 -0
- package/registry/r/context-card.json +1 -1
- package/registry/r/context-window-bar.json +1 -1
- package/registry/r/copy-button.json +1 -1
- package/registry/r/cost-meter.json +1 -1
- package/registry/r/created-files-card.json +1 -1
- package/registry/r/cron-job-card.json +1 -1
- package/registry/r/cron-jobs-list.json +1 -1
- package/registry/r/danger-zone.json +1 -1
- package/registry/r/data-table.json +1 -1
- package/registry/r/deployment-row.json +1 -1
- package/registry/r/dialog.json +1 -1
- package/registry/r/diff-viewer.json +1 -1
- package/registry/r/domain-config.json +1 -1
- package/registry/r/dropdown-menu.json +2 -2
- package/registry/r/empty-state.json +1 -1
- package/registry/r/env-var-editor.json +2 -1
- package/registry/r/env.json +15 -0
- package/registry/r/folder-context-card.json +1 -1
- package/registry/r/folder-selector.json +1 -1
- package/registry/r/form-field.json +1 -1
- package/registry/r/hook-config.json +1 -1
- package/registry/r/hook-event-log.json +1 -1
- package/registry/r/input.json +1 -1
- package/registry/r/intent-selector.json +1 -1
- package/registry/r/label.json +1 -1
- package/registry/r/lane-board.json +1 -1
- package/registry/r/login-split.json +1 -1
- package/registry/r/mcp-server-card.json +1 -1
- package/registry/r/mcp-server-list.json +1 -1
- package/registry/r/memory-editor.json +1 -1
- package/registry/r/mention-menu.json +1 -1
- package/registry/r/metric-card.json +23 -0
- package/registry/r/metrics-panel.json +1 -1
- package/registry/r/model-card.json +1 -1
- package/registry/r/model-selector.json +1 -1
- package/registry/r/multi-select-prompt.json +25 -0
- package/registry/r/page-shell.json +1 -1
- package/registry/r/pagination.json +1 -1
- package/registry/r/permission-matrix.json +1 -1
- package/registry/r/permission-modal.json +1 -1
- package/registry/r/pin-input.json +1 -1
- package/registry/r/plan-badge.json +1 -1
- package/registry/r/preview-env-card.json +1 -1
- package/registry/r/preview-panel.json +1 -1
- package/registry/r/progress-checklist.json +1 -1
- package/registry/r/progress.json +1 -1
- package/registry/r/project-card.json +1 -1
- package/registry/r/project-switcher.json +1 -1
- package/registry/r/prompt.json +15 -0
- package/registry/r/quick-action-chips.json +1 -1
- package/registry/r/radio-group.json +1 -1
- package/registry/r/recent-folders-list.json +1 -1
- package/registry/r/rollback-ui.json +1 -1
- package/registry/r/rule-card.json +1 -1
- package/registry/r/rule-editor.json +1 -1
- package/registry/r/run-stats.json +1 -1
- package/registry/r/running-tasks-panel.json +1 -1
- package/registry/r/safe-href.json +1 -1
- package/registry/r/scroll-area.json +1 -1
- package/registry/r/select.json +1 -1
- package/registry/r/session-list-item.json +1 -1
- package/registry/r/session-timeline.json +1 -1
- package/registry/r/sheet.json +1 -1
- package/registry/r/sidebar.json +1 -1
- package/registry/r/skeleton.json +1 -1
- package/registry/r/skill-card.json +1 -1
- package/registry/r/skill-editor.json +1 -1
- package/registry/r/skills-list.json +1 -1
- package/registry/r/slide-deck.json +8 -8
- package/registry/r/slide-plugin-mermaid.json +1 -1
- package/registry/r/slide-plugin-shiki.json +1 -1
- package/registry/r/slide.json +6 -6
- package/registry/r/social-auth-row.json +1 -1
- package/registry/r/stat-tile.json +1 -1
- package/registry/r/status-dot.json +2 -1
- package/registry/r/status-indicator.json +20 -0
- package/registry/r/steps-rail.json +1 -1
- package/registry/r/sub-agent-dispatch.json +1 -1
- package/registry/r/switch.json +1 -1
- package/registry/r/system-prompt-editor.json +1 -1
- package/registry/r/table.json +1 -1
- package/registry/r/tabs.json +1 -1
- package/registry/r/tailwind-preset.json +1 -1
- package/registry/r/task-header.json +1 -1
- package/registry/r/task-plan.json +1 -1
- package/registry/r/terminal-panel.json +1 -1
- package/registry/r/text-prompt.json +24 -0
- package/registry/r/textarea.json +1 -1
- package/registry/r/theme-provider.json +7 -6
- package/registry/r/theo-ui-provider.json +1 -1
- package/registry/r/timestamp.json +2 -1
- package/registry/r/toast.json +2 -2
- package/registry/r/token-usage-chart.json +1 -1
- package/registry/r/tokens.json +2 -2
- package/registry/r/tool-call-card.json +1 -1
- package/registry/r/tool-call.json +1 -1
- package/registry/r/tool-result.json +1 -1
- package/registry/r/tools-list.json +1 -1
- package/registry/r/tooltip.json +1 -1
- package/registry/r/topnav.json +1 -1
- package/registry/r/usage-meter.json +1 -1
- package/registry/r/whiteboard.json +3 -3
- package/dist/chunk-2UJROWAG.js +0 -106
- package/dist/chunk-2UJROWAG.js.map +0 -1
- package/dist/chunk-2XPWOUEH.js +0 -68
- package/dist/chunk-2XPWOUEH.js.map +0 -1
- package/dist/chunk-3GHLNCM3.js +0 -42
- package/dist/chunk-3GHLNCM3.js.map +0 -1
- package/dist/chunk-3HOXC25T.js +0 -48
- package/dist/chunk-3HOXC25T.js.map +0 -1
- package/dist/chunk-3QGO5SB3.js +0 -46
- package/dist/chunk-3QGO5SB3.js.map +0 -1
- package/dist/chunk-47QJVWW2.js +0 -85
- package/dist/chunk-47QJVWW2.js.map +0 -1
- package/dist/chunk-4L63UW3I.js +0 -35
- package/dist/chunk-4L63UW3I.js.map +0 -1
- package/dist/chunk-4UUSJJFZ.js +0 -25
- package/dist/chunk-4UUSJJFZ.js.map +0 -1
- package/dist/chunk-4ZBZBRG5.js +0 -127
- package/dist/chunk-4ZBZBRG5.js.map +0 -1
- package/dist/chunk-57NXT3OX.js +0 -92
- package/dist/chunk-57NXT3OX.js.map +0 -1
- package/dist/chunk-5FF5EUZP.js +0 -44
- package/dist/chunk-5FF5EUZP.js.map +0 -1
- package/dist/chunk-5UGQXB2P.js +0 -714
- package/dist/chunk-5UGQXB2P.js.map +0 -1
- package/dist/chunk-62FT22CI.js +0 -85
- package/dist/chunk-62FT22CI.js.map +0 -1
- package/dist/chunk-673R3GSK.js +0 -19
- package/dist/chunk-673R3GSK.js.map +0 -1
- package/dist/chunk-6VINZJBV.js +0 -128
- package/dist/chunk-6VINZJBV.js.map +0 -1
- package/dist/chunk-6ZQKEY54.js +0 -149
- package/dist/chunk-6ZQKEY54.js.map +0 -1
- package/dist/chunk-74NZ5U3E.js +0 -145
- package/dist/chunk-74NZ5U3E.js.map +0 -1
- package/dist/chunk-755NWSNW.js +0 -36
- package/dist/chunk-755NWSNW.js.map +0 -1
- package/dist/chunk-7GLBWWMW.js +0 -70
- package/dist/chunk-7GLBWWMW.js.map +0 -1
- package/dist/chunk-7RXYW5VM.js +0 -88
- package/dist/chunk-7RXYW5VM.js.map +0 -1
- package/dist/chunk-AC4MGCXI.js +0 -92
- package/dist/chunk-AC4MGCXI.js.map +0 -1
- package/dist/chunk-AEVSVDT6.js +0 -67
- package/dist/chunk-AEVSVDT6.js.map +0 -1
- package/dist/chunk-AODIMN2N.js +0 -68
- package/dist/chunk-AODIMN2N.js.map +0 -1
- package/dist/chunk-ATHOPBCA.js +0 -61
- package/dist/chunk-ATHOPBCA.js.map +0 -1
- package/dist/chunk-AVPHVQZS.js +0 -73
- package/dist/chunk-AVPHVQZS.js.map +0 -1
- package/dist/chunk-AXKBNRZW.js +0 -173
- package/dist/chunk-AXKBNRZW.js.map +0 -1
- package/dist/chunk-B75MEYNR.js +0 -106
- package/dist/chunk-B75MEYNR.js.map +0 -1
- package/dist/chunk-BGKA6DI6.js +0 -34
- package/dist/chunk-BGKA6DI6.js.map +0 -1
- package/dist/chunk-BNQAJGEN.js +0 -88
- package/dist/chunk-BNQAJGEN.js.map +0 -1
- package/dist/chunk-BP2SETUC.js +0 -101
- package/dist/chunk-BP2SETUC.js.map +0 -1
- package/dist/chunk-BPUQWMBD.js +0 -79
- package/dist/chunk-BPUQWMBD.js.map +0 -1
- package/dist/chunk-BVDASR3Y.js +0 -74
- package/dist/chunk-BVDASR3Y.js.map +0 -1
- package/dist/chunk-BX7A5GUV.js +0 -78
- package/dist/chunk-BX7A5GUV.js.map +0 -1
- package/dist/chunk-CDA6RYOX.js +0 -115
- package/dist/chunk-CDA6RYOX.js.map +0 -1
- package/dist/chunk-CG7O3A42.js +0 -80
- package/dist/chunk-CG7O3A42.js.map +0 -1
- package/dist/chunk-CIYGNPKT.js +0 -76
- package/dist/chunk-CIYGNPKT.js.map +0 -1
- package/dist/chunk-CKXY4FTV.js +0 -59
- package/dist/chunk-CKXY4FTV.js.map +0 -1
- package/dist/chunk-CVOKZITR.js +0 -82
- package/dist/chunk-CVOKZITR.js.map +0 -1
- package/dist/chunk-CWFMFKDI.js +0 -82
- package/dist/chunk-CWFMFKDI.js.map +0 -1
- package/dist/chunk-CWVKSV7S.js +0 -124
- package/dist/chunk-CWVKSV7S.js.map +0 -1
- package/dist/chunk-CYOLRWOX.js +0 -63
- package/dist/chunk-CYOLRWOX.js.map +0 -1
- package/dist/chunk-D23LRJT6.js +0 -116
- package/dist/chunk-D23LRJT6.js.map +0 -1
- package/dist/chunk-DFADMEJK.js +0 -127
- package/dist/chunk-DFADMEJK.js.map +0 -1
- package/dist/chunk-DKQAHZG2.js +0 -83
- package/dist/chunk-DKQAHZG2.js.map +0 -1
- package/dist/chunk-DW247T3Q.js +0 -199
- package/dist/chunk-DW247T3Q.js.map +0 -1
- package/dist/chunk-E5A7HN6H.js +0 -32
- package/dist/chunk-E5A7HN6H.js.map +0 -1
- package/dist/chunk-EI63GTN7.js +0 -57
- package/dist/chunk-EI63GTN7.js.map +0 -1
- package/dist/chunk-EP25QJ4N.js +0 -146
- package/dist/chunk-EP25QJ4N.js.map +0 -1
- package/dist/chunk-ET44426Q.js +0 -80
- package/dist/chunk-ET44426Q.js.map +0 -1
- package/dist/chunk-ETEIDY34.js +0 -67
- package/dist/chunk-ETEIDY34.js.map +0 -1
- package/dist/chunk-EU55O4P7.js +0 -76
- package/dist/chunk-EU55O4P7.js.map +0 -1
- package/dist/chunk-F436537E.js +0 -104
- package/dist/chunk-F436537E.js.map +0 -1
- package/dist/chunk-FLBTGNQI.js +0 -86
- package/dist/chunk-FLBTGNQI.js.map +0 -1
- package/dist/chunk-FUT45NFW.js +0 -46
- package/dist/chunk-FUT45NFW.js.map +0 -1
- package/dist/chunk-G3LWNTVZ.js +0 -51
- package/dist/chunk-G3LWNTVZ.js.map +0 -1
- package/dist/chunk-GBJB5WLT.js +0 -58
- package/dist/chunk-GBJB5WLT.js.map +0 -1
- package/dist/chunk-GIEPEFRX.js +0 -110
- package/dist/chunk-GIEPEFRX.js.map +0 -1
- package/dist/chunk-GSO7MISR.js +0 -58
- package/dist/chunk-GSO7MISR.js.map +0 -1
- package/dist/chunk-GUQFYUIC.js +0 -61
- package/dist/chunk-GUQFYUIC.js.map +0 -1
- package/dist/chunk-GXBFGWQN.js +0 -81
- package/dist/chunk-GXBFGWQN.js.map +0 -1
- package/dist/chunk-H3VJMFJQ.js +0 -35
- package/dist/chunk-H3VJMFJQ.js.map +0 -1
- package/dist/chunk-HG4WEERE.js +0 -26
- package/dist/chunk-HG4WEERE.js.map +0 -1
- package/dist/chunk-HGPBGLNP.js +0 -51
- package/dist/chunk-HGPBGLNP.js.map +0 -1
- package/dist/chunk-HQFTW7SF.js +0 -141
- package/dist/chunk-HQFTW7SF.js.map +0 -1
- package/dist/chunk-I32I36LW.js +0 -113
- package/dist/chunk-I32I36LW.js.map +0 -1
- package/dist/chunk-I7WYM63C.js +0 -170
- package/dist/chunk-I7WYM63C.js.map +0 -1
- package/dist/chunk-JPTPIZ5V.js +0 -120
- package/dist/chunk-JPTPIZ5V.js.map +0 -1
- package/dist/chunk-JQXLPVWP.js +0 -74
- package/dist/chunk-JQXLPVWP.js.map +0 -1
- package/dist/chunk-K5ARID4S.js +0 -26
- package/dist/chunk-K5ARID4S.js.map +0 -1
- package/dist/chunk-K6RTLPIJ.js +0 -41
- package/dist/chunk-K6RTLPIJ.js.map +0 -1
- package/dist/chunk-K7PYLTMP.js +0 -221
- package/dist/chunk-K7PYLTMP.js.map +0 -1
- package/dist/chunk-KQNKKV2C.js +0 -56
- package/dist/chunk-KQNKKV2C.js.map +0 -1
- package/dist/chunk-KRN4NE4U.js +0 -155
- package/dist/chunk-KRN4NE4U.js.map +0 -1
- package/dist/chunk-L2BI762I.js +0 -82
- package/dist/chunk-L2BI762I.js.map +0 -1
- package/dist/chunk-LEEH63B2.js +0 -56
- package/dist/chunk-LEEH63B2.js.map +0 -1
- package/dist/chunk-LHRWVM3G.js +0 -42
- package/dist/chunk-LHRWVM3G.js.map +0 -1
- package/dist/chunk-LIGWMGXM.js +0 -117
- package/dist/chunk-LIGWMGXM.js.map +0 -1
- package/dist/chunk-LKYSX3QF.js +0 -104
- package/dist/chunk-LKYSX3QF.js.map +0 -1
- package/dist/chunk-MCIFB6VS.js +0 -54
- package/dist/chunk-MCIFB6VS.js.map +0 -1
- package/dist/chunk-MI5CXMZU.js +0 -171
- package/dist/chunk-MI5CXMZU.js.map +0 -1
- package/dist/chunk-MYEHGDC2.js +0 -152
- package/dist/chunk-MYEHGDC2.js.map +0 -1
- package/dist/chunk-NQZYY4LR.js +0 -84
- package/dist/chunk-NQZYY4LR.js.map +0 -1
- package/dist/chunk-O23LKHUR.js +0 -66
- package/dist/chunk-O23LKHUR.js.map +0 -1
- package/dist/chunk-PASI2U2R.js +0 -23
- package/dist/chunk-PASI2U2R.js.map +0 -1
- package/dist/chunk-PPH5NTHV.js +0 -34
- package/dist/chunk-PPH5NTHV.js.map +0 -1
- package/dist/chunk-PR6OZF6D.js +0 -28
- package/dist/chunk-PR6OZF6D.js.map +0 -1
- package/dist/chunk-PTHRL242.js +0 -186
- package/dist/chunk-PTHRL242.js.map +0 -1
- package/dist/chunk-PWXOXPFT.js +0 -142
- package/dist/chunk-PWXOXPFT.js.map +0 -1
- package/dist/chunk-QB6BNHO3.js +0 -112
- package/dist/chunk-QB6BNHO3.js.map +0 -1
- package/dist/chunk-QJGGTIUN.js +0 -110
- package/dist/chunk-QJGGTIUN.js.map +0 -1
- package/dist/chunk-QSOIJ6J3.js +0 -91
- package/dist/chunk-QSOIJ6J3.js.map +0 -1
- package/dist/chunk-R63ZKLQM.js +0 -45
- package/dist/chunk-R63ZKLQM.js.map +0 -1
- package/dist/chunk-RC5XME4T.js +0 -33
- package/dist/chunk-RC5XME4T.js.map +0 -1
- package/dist/chunk-RTYYJPPE.js +0 -77
- package/dist/chunk-RTYYJPPE.js.map +0 -1
- package/dist/chunk-RVOBP7PO.js +0 -116
- package/dist/chunk-RVOBP7PO.js.map +0 -1
- package/dist/chunk-SF6R5VMQ.js +0 -97
- package/dist/chunk-SF6R5VMQ.js.map +0 -1
- package/dist/chunk-SP4CP5HY.js +0 -57
- package/dist/chunk-SP4CP5HY.js.map +0 -1
- package/dist/chunk-SWJ4EUOI.js +0 -30
- package/dist/chunk-SWJ4EUOI.js.map +0 -1
- package/dist/chunk-TK24HQJJ.js +0 -128
- package/dist/chunk-TK24HQJJ.js.map +0 -1
- package/dist/chunk-UAYOOTRR.js +0 -77
- package/dist/chunk-UAYOOTRR.js.map +0 -1
- package/dist/chunk-UDTAMHXW.js +0 -55
- package/dist/chunk-UDTAMHXW.js.map +0 -1
- package/dist/chunk-UK27KR35.js +0 -73
- package/dist/chunk-UK27KR35.js.map +0 -1
- package/dist/chunk-UOMQPIB4.js +0 -48
- package/dist/chunk-UOMQPIB4.js.map +0 -1
- package/dist/chunk-UOXU7NDY.js +0 -120
- package/dist/chunk-UOXU7NDY.js.map +0 -1
- package/dist/chunk-V7OOTVK3.js +0 -106
- package/dist/chunk-V7OOTVK3.js.map +0 -1
- package/dist/chunk-VI5M7KJ2.js +0 -1022
- package/dist/chunk-VI5M7KJ2.js.map +0 -1
- package/dist/chunk-VMMATOPE.js +0 -64
- package/dist/chunk-VMMATOPE.js.map +0 -1
- package/dist/chunk-W2PVSIW3.js +0 -89
- package/dist/chunk-W2PVSIW3.js.map +0 -1
- package/dist/chunk-W3DUDZDU.js +0 -88
- package/dist/chunk-W3DUDZDU.js.map +0 -1
- package/dist/chunk-WKEUU2FU.js +0 -114
- package/dist/chunk-WKEUU2FU.js.map +0 -1
- package/dist/chunk-WKLW7RC6.js +0 -28
- package/dist/chunk-WKLW7RC6.js.map +0 -1
- package/dist/chunk-WSJGZNUH.js +0 -111
- package/dist/chunk-WSJGZNUH.js.map +0 -1
- package/dist/chunk-WVPDQMC2.js +0 -144
- package/dist/chunk-WVPDQMC2.js.map +0 -1
- package/dist/chunk-WWNH5ENT.js +0 -43
- package/dist/chunk-WWNH5ENT.js.map +0 -1
- package/dist/chunk-X5L62PXY.js +0 -112
- package/dist/chunk-X5L62PXY.js.map +0 -1
- package/dist/chunk-XGCV5E6W.js +0 -133
- package/dist/chunk-XGCV5E6W.js.map +0 -1
- package/dist/chunk-XRKIEL5M.js +0 -72
- package/dist/chunk-XRKIEL5M.js.map +0 -1
- package/dist/chunk-XUJYEADU.js +0 -80
- package/dist/chunk-XUJYEADU.js.map +0 -1
- package/dist/chunk-XVYNSIQC.js +0 -116
- package/dist/chunk-XVYNSIQC.js.map +0 -1
- package/dist/chunk-XWTISHXO.js +0 -54
- package/dist/chunk-XWTISHXO.js.map +0 -1
- package/dist/chunk-XZKEGEPT.js +0 -156
- package/dist/chunk-XZKEGEPT.js.map +0 -1
- package/dist/chunk-YOGHS4UU.js +0 -202
- package/dist/chunk-YOGHS4UU.js.map +0 -1
- package/dist/chunk-YRSKXEOD.js +0 -135
- package/dist/chunk-YRSKXEOD.js.map +0 -1
- package/dist/chunk-ZALLCR7X.js +0 -108
- package/dist/chunk-ZALLCR7X.js.map +0 -1
- package/dist/chunk-ZDAOHMCW.js +0 -46
- package/dist/chunk-ZDAOHMCW.js.map +0 -1
- package/dist/chunk-ZESICCKK.js +0 -37
- package/dist/chunk-ZESICCKK.js.map +0 -1
- package/dist/chunk-ZIKFOD6N.js +0 -87
- package/dist/chunk-ZIKFOD6N.js.map +0 -1
- package/dist/chunk-ZJRWCQEN.js +0 -76
- package/dist/chunk-ZJRWCQEN.js.map +0 -1
- package/dist/chunk-ZSRJCIWF.js +0 -24
- package/dist/chunk-ZSRJCIWF.js.map +0 -1
- package/dist/plugin-Atb0VKtr.d.ts +0 -172
- package/dist/slide/index.d.ts +0 -212
- package/dist/slide/plugins/emoji/index.d.ts +0 -29
- package/dist/slide/plugins/math/index.d.ts +0 -13
- package/dist/slide/plugins/mermaid/index.d.ts +0 -55
- package/dist/slide/plugins/shiki/index.d.ts +0 -18
- package/dist/slide-deck/index.d.ts +0 -377
- package/dist/whiteboard/index.d.ts +0 -258
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import type { ComponentPropsWithoutRef, HTMLAttributes } from "react";
|
|
4
|
+
/**
|
|
5
|
+
* Sheet — slide-in side panel built on Radix Dialog.
|
|
6
|
+
*
|
|
7
|
+
* Same Radix primitive as Dialog, but Content slides from an edge instead of
|
|
8
|
+
* fading from center. Used for: workspace overlays (Memory, Observability,
|
|
9
|
+
* Sub-agents), Settings, contextual filters.
|
|
10
|
+
*
|
|
11
|
+
* Composition:
|
|
12
|
+
* <Sheet>
|
|
13
|
+
* <Sheet.Trigger>Open</Sheet.Trigger>
|
|
14
|
+
* <Sheet.Content side="right">
|
|
15
|
+
* <Sheet.Header>
|
|
16
|
+
* <Sheet.Title>Memory</Sheet.Title>
|
|
17
|
+
* <Sheet.Description>Episodes and wiki pages</Sheet.Description>
|
|
18
|
+
* </Sheet.Header>
|
|
19
|
+
* <Sheet.Body>…</Sheet.Body>
|
|
20
|
+
* <Sheet.Footer>…</Sheet.Footer>
|
|
21
|
+
* </Sheet.Content>
|
|
22
|
+
* </Sheet>
|
|
23
|
+
*/
|
|
24
|
+
declare const Overlay: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
|
+
declare const sheetVariants: (props?: ({
|
|
26
|
+
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
27
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
28
|
+
interface ContentProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
29
|
+
hideCloseButton?: boolean;
|
|
30
|
+
}
|
|
31
|
+
declare const Content: import("react").ForwardRefExoticComponent<ContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const Header: {
|
|
33
|
+
({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
36
|
+
declare const Body: {
|
|
37
|
+
({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
40
|
+
declare const Footer: {
|
|
41
|
+
({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
displayName: string;
|
|
43
|
+
};
|
|
44
|
+
declare const Title: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
45
|
+
declare const Description: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
46
|
+
declare const Sheet: typeof DialogPrimitive.Root & {
|
|
47
|
+
Trigger: typeof DialogPrimitive.Trigger;
|
|
48
|
+
Close: typeof DialogPrimitive.Close;
|
|
49
|
+
Content: typeof Content;
|
|
50
|
+
Overlay: typeof Overlay;
|
|
51
|
+
Header: typeof Header;
|
|
52
|
+
Body: typeof Body;
|
|
53
|
+
Footer: typeof Footer;
|
|
54
|
+
Title: typeof Title;
|
|
55
|
+
Description: typeof Description;
|
|
56
|
+
};
|
|
57
|
+
export { Sheet, sheetVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Sidebar } from "./sidebar.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, ElementType, HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
interface SectionProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
interface ItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type"> {
|
|
6
|
+
icon?: ElementType;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
count?: number | string;
|
|
9
|
+
as?: "button" | "a";
|
|
10
|
+
href?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const Sidebar: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>> & {
|
|
13
|
+
Header: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Section: import("react").ForwardRefExoticComponent<SectionProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Item: import("react").ForwardRefExoticComponent<ItemProps & import("react").RefAttributes<HTMLElement>>;
|
|
16
|
+
Footer: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
};
|
|
18
|
+
export { Sidebar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Skeleton } from "./skeleton.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Skeleton — placeholder block shown while content is loading.
|
|
4
|
+
*
|
|
5
|
+
* Uses --muted as base + a subtle shimmer that respects the violet theme.
|
|
6
|
+
* Compose multiple Skeletons to mirror your component layout while loading.
|
|
7
|
+
*
|
|
8
|
+
* Accessibility (LOW-004): the default `role="status"` + `aria-live="polite"`
|
|
9
|
+
* announces "Loading" to screen readers. In loops or grids where many
|
|
10
|
+
* Skeletons mount simultaneously, this can be noisy. Override per-instance
|
|
11
|
+
* with `aria-live="off"` and/or `aria-hidden` when only one container-level
|
|
12
|
+
* loading announcement is desired:
|
|
13
|
+
*
|
|
14
|
+
* <div role="status" aria-live="polite" aria-label="Loading deployments">
|
|
15
|
+
* {placeholders.map(id => (
|
|
16
|
+
* <Skeleton key={id} aria-live="off" aria-hidden="true" className="h-8" />
|
|
17
|
+
* ))}
|
|
18
|
+
* </div>
|
|
19
|
+
*/
|
|
20
|
+
declare const Skeleton: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export { Skeleton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SkillCard, type Skill, type SkillSource, type SkillState } from "./skill-card.js";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { Mode } from "../../../types/mode.js";
|
|
3
|
+
export type SkillSource = "builtin" | "project" | "user" | "plugin";
|
|
4
|
+
export type SkillState = "enabled" | "disabled";
|
|
5
|
+
export interface Skill {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description?: ReactNode;
|
|
9
|
+
/** Where the skill comes from. */
|
|
10
|
+
source: SkillSource;
|
|
11
|
+
/** Optional tools the skill is allowed to use (informational). */
|
|
12
|
+
allowedTools?: string[];
|
|
13
|
+
/** Optional trigger keywords / patterns for discovery. */
|
|
14
|
+
triggers?: string[];
|
|
15
|
+
state?: SkillState;
|
|
16
|
+
/** Modes this skill is visible in. Omit / empty = global (all modes). */
|
|
17
|
+
modes?: Mode[];
|
|
18
|
+
}
|
|
19
|
+
interface SkillCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "onToggle"> {
|
|
20
|
+
skill: Skill;
|
|
21
|
+
onToggle?: (id: string, next: SkillState) => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* SkillCard — single skill entry showing what it does, where it came from,
|
|
25
|
+
* and which tools it needs. Toggle to enable/disable for the current session.
|
|
26
|
+
*/
|
|
27
|
+
declare const SkillCard: import("react").ForwardRefExoticComponent<SkillCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export { SkillCard };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GFM alerts post-processor — converts `> [!NOTE]` blockquotes into
|
|
3
|
+
* `<aside class="theo-slide-alert" data-theo-slide-alert-type="...">` (ADR D3 of
|
|
4
|
+
* the slide-rich-content plan).
|
|
5
|
+
*
|
|
6
|
+
* GitHub Flavored Markdown introduced this convention in 2023 for callouts.
|
|
7
|
+
* `remark-gfm` (already in our dep tree) parses the blockquote but does NOT
|
|
8
|
+
* distinguish alerts from regular blockquotes. We post-process the mdast tree
|
|
9
|
+
* to detect the canonical marker and annotate with `hName` + `hProperties` so
|
|
10
|
+
* `mdast-util-to-hast` emits the desired hast element.
|
|
11
|
+
*
|
|
12
|
+
* Five tag families are supported, mirroring GitHub:
|
|
13
|
+
* - NOTE (info / blue)
|
|
14
|
+
* - TIP (success / green)
|
|
15
|
+
* - IMPORTANT (purple)
|
|
16
|
+
* - WARNING (yellow)
|
|
17
|
+
* - CAUTION (red)
|
|
18
|
+
*
|
|
19
|
+
* Case-insensitive. Marker is stripped from the rendered text. Regular
|
|
20
|
+
* blockquotes (without `[!TYPE]` prefix) are left untouched.
|
|
21
|
+
*/
|
|
22
|
+
import type { Root } from "mdast";
|
|
23
|
+
/** Canonical alert types — used by CSS via `data-theo-slide-alert-type="..."`. */
|
|
24
|
+
export declare const ALERT_TYPES: readonly ["note", "tip", "important", "warning", "caution"];
|
|
25
|
+
export type AlertType = (typeof ALERT_TYPES)[number];
|
|
26
|
+
/**
|
|
27
|
+
* Walk a mdast tree and mutate any blockquote that opens with `[!TYPE]` into
|
|
28
|
+
* an `<aside>` annotation. Mutation is in-place to keep the pipeline allocation
|
|
29
|
+
* profile flat; the same tree is returned for chainability.
|
|
30
|
+
*/
|
|
31
|
+
export declare function detectAlerts(tree: Root): Root;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lightweight, dependency-free extractor that separates YAML frontmatter from
|
|
3
|
+
* the markdown body.
|
|
4
|
+
*
|
|
5
|
+
* Strips a leading BOM (``) before matching the regex — common when
|
|
6
|
+
* markdown is pasted from Word/Notion. See plan ADR D14 and edge-case EC-4.
|
|
7
|
+
*
|
|
8
|
+
* Returns `{ rawFrontmatter, body, tooLarge? }`:
|
|
9
|
+
* - `rawFrontmatter`: the YAML string between the two `---` delimiters, or
|
|
10
|
+
* `null` if no frontmatter is present.
|
|
11
|
+
* - `body`: the markdown after the closing `---\n` (or the full input when
|
|
12
|
+
* no frontmatter).
|
|
13
|
+
* - `tooLarge`: `true` if `rawFrontmatter` exceeds `MAX_RAW_FRONTMATTER`
|
|
14
|
+
* bytes — the caller turns this into `FRONTMATTER_TOO_LARGE`.
|
|
15
|
+
*/
|
|
16
|
+
/** Maximum size of the raw frontmatter string before YAML parsing. 10 KB cap. */
|
|
17
|
+
export declare const MAX_RAW_FRONTMATTER = 10240;
|
|
18
|
+
export interface ExtractFrontmatterResult {
|
|
19
|
+
rawFrontmatter: string | null;
|
|
20
|
+
body: string;
|
|
21
|
+
tooLarge?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function extractFrontmatter(md: string): ExtractFrontmatterResult;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `@theokit/ui/slide`. Subpath-isolated engine: this bundle
|
|
3
|
+
* is emitted separately from the barrel (see `tsup.config.ts`) and depends on
|
|
4
|
+
* the markdown stack via optional peer-deps.
|
|
5
|
+
*/
|
|
6
|
+
export { Slide } from "./slide.js";
|
|
7
|
+
export type { SlideAspectRatio, SlideProps, SlideTheme, SlideValidationError, SlideValidationErrorCode, } from "./slide.js";
|
|
8
|
+
export { parseSlide, parseBody, mdastToHast, sanitizeHast, hastToReact, type ParseSlideOptions, type ParsedSlide, } from "./parse.js";
|
|
9
|
+
export { validateSlide, type ValidationResult } from "./validate.js";
|
|
10
|
+
export { extractFrontmatter, MAX_RAW_FRONTMATTER, type ExtractFrontmatterResult, } from "./frontmatter.js";
|
|
11
|
+
export { slideFrontmatter, slideInput, slideTheme, type SlideFrontmatter, type SlideInput, } from "./schema.js";
|
|
12
|
+
export { isSlideTheme, slideThemes } from "./themes/index.js";
|
|
13
|
+
export { useSlideFit, type UseSlideFitOptions } from "./use-slide-fit.js";
|
|
14
|
+
export { collectTagCounts, getSlideSanitizeSchema } from "./sanitize.js";
|
|
15
|
+
export { composePlugins, type SlidePlugin, type SlideSanitizeExtension, type MergedSanitizeExtensions, type PluginComposer, } from "./plugin.js";
|
|
16
|
+
export { slideFrontmatterJsonSchema } from "./json-schema.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface JsonSchemaProperties {
|
|
2
|
+
[key: string]: Record<string, unknown>;
|
|
3
|
+
}
|
|
4
|
+
interface JsonSchemaWithProperties {
|
|
5
|
+
properties?: JsonSchemaProperties;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export declare const slideFrontmatterJsonSchema: JsonSchemaWithProperties;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marpit-style `` background syntax detector.
|
|
3
|
+
*
|
|
4
|
+
* Marpit popularised the convention of declaring a slide background via a
|
|
5
|
+
* standalone image whose alt-text starts with `bg`:
|
|
6
|
+
*
|
|
7
|
+
* 
|
|
8
|
+
*    
|
|
9
|
+
*
|
|
10
|
+
* LLMs trained on Marp output emit this naturally, so the slide primitive
|
|
11
|
+
* adopts the same surface — but in a STRICTLY safe way:
|
|
12
|
+
*
|
|
13
|
+
* 1. Only triggers when the paragraph contains a SINGLE image (avoids
|
|
14
|
+
* collisions with inline images mixed with text).
|
|
15
|
+
* 2. First-bg-wins (multiple `![bg]` directives in one slide → only the first
|
|
16
|
+
* is honoured; the others are also dropped from the tree to prevent
|
|
17
|
+
* duplicate rendering).
|
|
18
|
+
* 3. The extracted result goes into `ParsedSlide.extractedBackground` (D18 /
|
|
19
|
+
* EC-5) and the Slide component prefers an explicit `frontmatter.backgroundImage`
|
|
20
|
+
* over the Marpit extraction.
|
|
21
|
+
* 4. URL sanitization happens at the caller (`parseSlide`) via `sanitizeBgUrl`.
|
|
22
|
+
*/
|
|
23
|
+
import type { Root } from "mdast";
|
|
24
|
+
export interface ExtractedMarpitBackground {
|
|
25
|
+
url: string;
|
|
26
|
+
modifier?: "cover" | "fit" | "left" | "right";
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Walk the mdast tree, extract the first `` directive, drop ALL
|
|
30
|
+
* matching paragraphs from the tree. Returns a new tree (children array
|
|
31
|
+
* is filtered; node identities are preserved otherwise).
|
|
32
|
+
*/
|
|
33
|
+
export declare function extractMarpitBackgrounds(tree: Root): {
|
|
34
|
+
tree: Root;
|
|
35
|
+
background?: ExtractedMarpitBackground;
|
|
36
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { Root as HastRoot } from "hast";
|
|
2
|
+
/**
|
|
3
|
+
* Markdown → React tree pipeline for the Slide primitive.
|
|
4
|
+
*
|
|
5
|
+
* parseSlide(markdown)
|
|
6
|
+
* ├─ validateSlide(markdown) → { frontmatter, body, errors? }
|
|
7
|
+
* ├─ parseBody(body) → mdast Root (micromark + GFM)
|
|
8
|
+
* ├─ mdastToHast(mdastTree) → hast Root (allowDangerousHtml: false)
|
|
9
|
+
* ├─ sanitizeHast(hastTree) → hast Root + BANNED_TAG diff (ADR D13)
|
|
10
|
+
* └─ hastToReact(hastTree) → React tree (jsx-runtime, no innerHTML)
|
|
11
|
+
*
|
|
12
|
+
* Every transform is composed of lazy-imported peer-deps so the slide bundle
|
|
13
|
+
* stays under budget and never vendors the markdown stack into the barrel
|
|
14
|
+
* (ADR D2 / D3 of the slide plan).
|
|
15
|
+
*/
|
|
16
|
+
import type { Root as MdastRoot } from "mdast";
|
|
17
|
+
import type { ReactElement } from "react";
|
|
18
|
+
import { type MergedSanitizeExtensions, type SlidePlugin } from "./plugin.js";
|
|
19
|
+
import { type SlideFrontmatter, type SlideValidationError } from "./schema.js";
|
|
20
|
+
export interface ParseSlideOptions {
|
|
21
|
+
/** Override individual element renderers (passed to hast-util-to-jsx-runtime). */
|
|
22
|
+
components?: Record<string, unknown>;
|
|
23
|
+
/** Rich-content plugins (Tier 2). Order matters — D13 / RFC 0004. */
|
|
24
|
+
plugins?: SlidePlugin[];
|
|
25
|
+
}
|
|
26
|
+
export interface ExtractedBackground {
|
|
27
|
+
/** Sanitized URL (http/https only). */
|
|
28
|
+
url: string;
|
|
29
|
+
/** Optional Marpit modifier: `cover` | `fit` | `left` | `right`. */
|
|
30
|
+
modifier?: "cover" | "fit" | "left" | "right";
|
|
31
|
+
}
|
|
32
|
+
export interface ParsedSlide {
|
|
33
|
+
frontmatter: SlideFrontmatter;
|
|
34
|
+
/** React element renderable as the body of a slide. Always defined (may be empty Fragment). */
|
|
35
|
+
tree: ReactElement;
|
|
36
|
+
/** Validation + sanitize errors collected during parsing. Empty on success. */
|
|
37
|
+
errors: SlideValidationError[];
|
|
38
|
+
/** True when the input contained a top-level thematic break and only the first slide was rendered. */
|
|
39
|
+
truncated: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Background image extracted from Marpit `` syntax (D18 / EC-5).
|
|
42
|
+
* Precedence: `frontmatter.backgroundImage` > `extractedBackground.url`.
|
|
43
|
+
*/
|
|
44
|
+
extractedBackground?: ExtractedBackground;
|
|
45
|
+
}
|
|
46
|
+
export declare function parseBody(body: string): Promise<MdastRoot>;
|
|
47
|
+
export declare function mdastToHast(tree: MdastRoot): Promise<HastRoot>;
|
|
48
|
+
export declare function sanitizeHast(tree: HastRoot, extensions?: MergedSanitizeExtensions): Promise<{
|
|
49
|
+
tree: HastRoot;
|
|
50
|
+
bannedTags: string[];
|
|
51
|
+
}>;
|
|
52
|
+
export declare function hastToReact(tree: HastRoot, components?: Record<string, unknown>): Promise<ReactElement>;
|
|
53
|
+
/**
|
|
54
|
+
* Public entry point. Validates → parses → sanitizes → returns a React tree.
|
|
55
|
+
*
|
|
56
|
+
* Never throws on input. Errors (validation, BANNED_TAG) are collected into
|
|
57
|
+
* `errors[]` so callers can show them via `onValidationError`.
|
|
58
|
+
*/
|
|
59
|
+
export declare function parseSlide(markdown: string, opts?: ParseSlideOptions): Promise<ParsedSlide>;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slide plugin contract — extension points for rich-content engines.
|
|
3
|
+
*
|
|
4
|
+
* Plugins are composable transformers applied during `parseSlide`. Each plugin
|
|
5
|
+
* may inspect/mutate the mdast tree (before HTML conversion), the hast tree
|
|
6
|
+
* (after HTML conversion, before sanitize), and override React component
|
|
7
|
+
* renderers (after sanitize). They may also declare sanitize-schema extensions
|
|
8
|
+
* so custom tags (e.g. Shiki spans, KaTeX MathML, Mermaid SVG) survive the
|
|
9
|
+
* security barrier.
|
|
10
|
+
*
|
|
11
|
+
* Design rules (ADRs in `.claude/knowledge-base/plans/slide-rich-content-plan.md`):
|
|
12
|
+
* D1 — explicit `plugins` prop (no auto-detect).
|
|
13
|
+
* D2 — plugin shape: { name, mdastTransform?, hastTransform?, components? }.
|
|
14
|
+
* D13 — execution order: mdast → hast → sanitize (with merged extensions) → components.
|
|
15
|
+
* D16 — plugin error isolation: each plugin call is try/catch wrapped; errors
|
|
16
|
+
* are collected, not thrown.
|
|
17
|
+
* D17 — sanitize-schema merge is OBLIGATORY for plugins emitting non-default
|
|
18
|
+
* tags; without it, the sanitize step silently strips the content.
|
|
19
|
+
*
|
|
20
|
+
* Sanitize is the security barrier. Plugins NEVER bypass `hast-util-sanitize`.
|
|
21
|
+
*/
|
|
22
|
+
import type { Root as HastRoot } from "hast";
|
|
23
|
+
import type { Root as MdastRoot } from "mdast";
|
|
24
|
+
import type { FC } from "react";
|
|
25
|
+
import type { SlideValidationError } from "./schema.js";
|
|
26
|
+
/** Sanitize schema extension declared by a plugin. Merged with `defaultSchema` in `parseSlide`. */
|
|
27
|
+
export interface SlideSanitizeExtension {
|
|
28
|
+
/** Additional element tag names allowed past the sanitizer. */
|
|
29
|
+
tagNames?: string[];
|
|
30
|
+
/** Additional attribute allow-list keyed by tag name (or `"*"` for all tags). */
|
|
31
|
+
attributes?: Record<string, string[]>;
|
|
32
|
+
}
|
|
33
|
+
/** A composable transformer + component-override unit. */
|
|
34
|
+
export interface SlidePlugin {
|
|
35
|
+
/** Stable identifier used in PLUGIN_ERROR messages and dev logs. */
|
|
36
|
+
name: string;
|
|
37
|
+
/** Mutate the mdast tree before HTML conversion. Return value is forwarded. */
|
|
38
|
+
mdastTransform?: (tree: MdastRoot) => Promise<MdastRoot> | MdastRoot;
|
|
39
|
+
/** Mutate the hast tree after HTML conversion, before sanitize. */
|
|
40
|
+
hastTransform?: (tree: HastRoot) => Promise<HastRoot> | HastRoot;
|
|
41
|
+
/** React component overrides merged into the consumer's `components` map. */
|
|
42
|
+
components?: Record<string, FC<any>>;
|
|
43
|
+
/** Sanitize-schema extension. Required for plugins emitting non-default tags. */
|
|
44
|
+
sanitizeSchemaExtension?: SlideSanitizeExtension;
|
|
45
|
+
}
|
|
46
|
+
/** Merged sanitize-schema extensions from all plugins. */
|
|
47
|
+
export interface MergedSanitizeExtensions {
|
|
48
|
+
tagNames: string[];
|
|
49
|
+
attributes: Record<string, string[]>;
|
|
50
|
+
}
|
|
51
|
+
/** Composer over a plugin array. Hooks orchestrate transformation + error isolation. */
|
|
52
|
+
export interface PluginComposer {
|
|
53
|
+
/** Run all `mdastTransform` hooks in array order. Collects errors. */
|
|
54
|
+
runMdast(tree: MdastRoot, errors: SlideValidationError[]): Promise<MdastRoot>;
|
|
55
|
+
/** Run all `hastTransform` hooks in array order. Collects errors. */
|
|
56
|
+
runHast(tree: HastRoot, errors: SlideValidationError[]): Promise<HastRoot>;
|
|
57
|
+
/** Merge all plugin component overrides; later-plugin-wins on conflict. */
|
|
58
|
+
mergedComponents(): Record<string, FC<any>>;
|
|
59
|
+
/** Merge sanitize-schema extensions across all plugins (dedupes tag names). */
|
|
60
|
+
mergedSanitizeExtensions(): MergedSanitizeExtensions;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Build a composer over an array of plugins.
|
|
64
|
+
*
|
|
65
|
+
* Order semantics:
|
|
66
|
+
* - mdast transforms run sequentially in array order.
|
|
67
|
+
* - hast transforms run sequentially in array order.
|
|
68
|
+
* - components merge: later plugin wins on conflict (Object.assign semantics).
|
|
69
|
+
* - sanitize-schema extensions: union of tag names; union of attributes by tag.
|
|
70
|
+
*
|
|
71
|
+
* Error semantics (D16):
|
|
72
|
+
* - Each plugin call is wrapped in try/catch.
|
|
73
|
+
* - On throw, an error of code `PLUGIN_ERROR` is pushed to `errors[]` and the
|
|
74
|
+
* pipeline continues with the **non-transformed** input from that plugin
|
|
75
|
+
* (i.e. subsequent plugins see the tree that failed plugin received).
|
|
76
|
+
* - The composer NEVER throws; `parseSlide` keeps its "never throws on input"
|
|
77
|
+
* contract (RFC 0002 D9).
|
|
78
|
+
*/
|
|
79
|
+
export declare function composePlugins(plugins: SlidePlugin[]): PluginComposer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SlidePlugin } from "../../plugin.js";
|
|
2
|
+
import { EMOJI_MAP } from "./map.js";
|
|
3
|
+
export interface EmojiPluginOptions {
|
|
4
|
+
/** Override or extend the default emoji map. Merged on top of the built-in 100. */
|
|
5
|
+
extra?: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
export declare function emojiPlugin(opts?: EmojiPluginOptions): SlidePlugin;
|
|
8
|
+
export { EMOJI_MAP };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 100 emoji shortcodes commonly used in tech presentations.
|
|
3
|
+
*
|
|
4
|
+
* Selection rationale: covers the top ~80% of GitHub markdown usage in code
|
|
5
|
+
* docs, release notes, slides. Unicode-native (no external font dependency)
|
|
6
|
+
* so the appearance follows the OS emoji font (Apple Color Emoji on macOS,
|
|
7
|
+
* Segoe UI Emoji on Windows, Noto Color Emoji on Linux/Android).
|
|
8
|
+
*
|
|
9
|
+
* Adding entries: keep keys lowercase, kebab/underscore allowed, single Unicode
|
|
10
|
+
* scalar value (sequences like 👨💻 are also OK).
|
|
11
|
+
*
|
|
12
|
+
* Twemoji variant: out of scope — `slide/plugins/emoji-twemoji` is a v0.5
|
|
13
|
+
* candidate if demand emerges.
|
|
14
|
+
*/
|
|
15
|
+
export declare const EMOJI_MAP: Record<string, string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SlidePlugin } from "../../plugin.js";
|
|
2
|
+
export interface MathPluginOptions {
|
|
3
|
+
/** KaTeX render options forwarded to `renderToString`. */
|
|
4
|
+
katexOptions?: Record<string, unknown>;
|
|
5
|
+
}
|
|
6
|
+
export declare function mathPlugin(opts?: MathPluginOptions): SlidePlugin;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slide rich-content plugin — Mermaid diagrams.
|
|
3
|
+
*
|
|
4
|
+
* Peer-dep: `mermaid` (optional, ~370 KB raw — lazy + opt-in mandatory).
|
|
5
|
+
* Render is client-only because Mermaid measures DOM nodes during layout;
|
|
6
|
+
* SSR / static render emits a labelled placeholder + source-code fallback.
|
|
7
|
+
*
|
|
8
|
+
* Pipeline contribution (D11 of the rich-content plan):
|
|
9
|
+
* - `hastTransform`: detect `<pre><code class="language-mermaid">…</code></pre>`
|
|
10
|
+
* and replace with `<div class="theo-slide-mermaid-host" data-theo-mermaid-source="…">`.
|
|
11
|
+
* - `components.div`: when div has `data-theo-mermaid-source`, render the
|
|
12
|
+
* `<MermaidDiagram>` React component that lazy-imports `mermaid` and
|
|
13
|
+
* injects the SVG via `dangerouslySetInnerHTML` after `mermaid.render()`.
|
|
14
|
+
*
|
|
15
|
+
* EC-4: complete SVG tag + attribute allow-list (~30 tags) so the rendered SVG
|
|
16
|
+
* survives sanitize. Critical: without these, sanitize strips the SVG entirely.
|
|
17
|
+
*
|
|
18
|
+
* EC-10: SSR placeholder is distinguishable from a render error. Error path
|
|
19
|
+
* surfaces the Mermaid source code in a `<pre>` so consumers can debug + the
|
|
20
|
+
* print path still shows the code (PDF cannot run dynamic Mermaid).
|
|
21
|
+
*/
|
|
22
|
+
import { type FC } from "react";
|
|
23
|
+
import type { SlidePlugin } from "../../plugin.js";
|
|
24
|
+
export interface MermaidPluginOptions {
|
|
25
|
+
/** Mermaid theme name. Defaults to `"default"`. */
|
|
26
|
+
theme?: "default" | "forest" | "dark" | "neutral" | "base";
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* React component that renders Mermaid lazily on mount.
|
|
30
|
+
*
|
|
31
|
+
* SSR / pre-load: renders the source as `<pre>` + `role="img"` for a11y.
|
|
32
|
+
* Client: lazy-loads `mermaid`, calls `mermaid.render()`, then injects the
|
|
33
|
+
* resulting SVG via `dangerouslySetInnerHTML` so React owns the DOM
|
|
34
|
+
* subtree (avoids reconciliation crashes when state flips back to the
|
|
35
|
+
* placeholder — `ref.innerHTML` would mutate under React's feet).
|
|
36
|
+
*
|
|
37
|
+
* The Mermaid output is a TRUSTED string from the `mermaid` lib itself (not
|
|
38
|
+
* user-controlled markup) — the user-supplied source is the DSL, not raw HTML.
|
|
39
|
+
* Using dangerouslySetInnerHTML here is a controlled escape hatch.
|
|
40
|
+
*
|
|
41
|
+
* Peer-dep guard: if `import("mermaid")` fails, falls back to the same
|
|
42
|
+
* pre-formatted source view + an `aria-label` hint (EC-10).
|
|
43
|
+
*/
|
|
44
|
+
export declare const MermaidDiagram: FC<{
|
|
45
|
+
source: string;
|
|
46
|
+
theme?: string;
|
|
47
|
+
}>;
|
|
48
|
+
export declare function mermaidPlugin(opts?: MermaidPluginOptions): SlidePlugin;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SlidePlugin } from "../../plugin.js";
|
|
2
|
+
export interface ShikiPluginOptions {
|
|
3
|
+
/** Dual-theme map — light/dark Shiki theme names. Defaults to `github-light` / `github-dark`. */
|
|
4
|
+
themes?: {
|
|
5
|
+
light: string;
|
|
6
|
+
dark: string;
|
|
7
|
+
};
|
|
8
|
+
/** Languages to pre-load. Unknown languages pass-through. Defaults to a tech-stack baseline. */
|
|
9
|
+
langs?: string[];
|
|
10
|
+
}
|
|
11
|
+
export declare function shikiPlugin(opts?: ShikiPluginOptions): SlidePlugin;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sanitize schema for slide body hast trees.
|
|
3
|
+
*
|
|
4
|
+
* ADR D8: `defaultSchema` from `hast-util-sanitize` is used WITHOUT extensions
|
|
5
|
+
* in v0.1. The default schema:
|
|
6
|
+
* - Strips `<script>`, `<iframe>`, `<object>`, `<embed>`, `<form>`, `<input>`,
|
|
7
|
+
* `<style>`, `<link>` and other dangerous tags.
|
|
8
|
+
* - Keeps `clobberPrefix: "user-content-"` so user-supplied IDs cannot
|
|
9
|
+
* clobber DOM lookups.
|
|
10
|
+
* - Allows the standard CommonMark + GFM safe subset (h1-h6, p, ul, ol, li,
|
|
11
|
+
* blockquote, code, pre, a[href], img[src/alt], table family, em, strong,
|
|
12
|
+
* del, br, hr, etc.).
|
|
13
|
+
*
|
|
14
|
+
* A `looseSlideSanitizeSchema` (with `figure`/`figcaption`) is an explicit
|
|
15
|
+
* opt-in for v0.2 — gated by security review.
|
|
16
|
+
*/
|
|
17
|
+
import type { Element, Root } from "hast";
|
|
18
|
+
import type { MergedSanitizeExtensions } from "./plugin.js";
|
|
19
|
+
/**
|
|
20
|
+
* Lazy accessor for the sanitize schema.
|
|
21
|
+
*
|
|
22
|
+
* Always merges `defaultSchema` with the Tier 1 baseline (aside + className).
|
|
23
|
+
* When `extensions` is provided, plugin-declared tag names + attributes are
|
|
24
|
+
* unioned on top (D17 / EC-3). Plugins NEVER bypass sanitize — they declare
|
|
25
|
+
* what they need via `sanitizeSchemaExtension`.
|
|
26
|
+
*
|
|
27
|
+
* Implementation notes:
|
|
28
|
+
* - The baseline schema (default + Tier 1) is cached.
|
|
29
|
+
* - Plugin-merged schemas are NOT cached (depends on combination).
|
|
30
|
+
*/
|
|
31
|
+
export declare function getSlideSanitizeSchema(extensions?: MergedSanitizeExtensions): Promise<import("hast-util-sanitize").Schema>;
|
|
32
|
+
/** Count elements by tagName in a hast tree. Used for BANNED_TAG detection (ADR D13). */
|
|
33
|
+
export declare function collectTagCounts(tree: Root | Element): Map<string, number>;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for the Slide YAML frontmatter (`SlideFrontmatter`) and the
|
|
3
|
+
* composed `SlideInput` (frontmatter + body).
|
|
4
|
+
*
|
|
5
|
+
* Design (see RFC 0002 and the plan in
|
|
6
|
+
* `.claude/knowledge-base/plans/slide-view-primitive-plan.md` §16.3 and ADRs D4 / D14):
|
|
7
|
+
*
|
|
8
|
+
* - **`.strict()`** on frontmatter — unknown keys produce `INVALID_FRONTMATTER`
|
|
9
|
+
* with a precise path, so an LLM can self-correct.
|
|
10
|
+
* - Numeric values are `.finite()` to reject `NaN` / `Infinity`. (Currently no
|
|
11
|
+
* numeric directives ship; keep the helper for future fields.)
|
|
12
|
+
* - String values capped to defensible sizes to reject DoS-shaped inputs.
|
|
13
|
+
* - `body` capped to 50 KB (≈30 slides' worth of text) per the sanity rule.
|
|
14
|
+
* - `theme` is the canonical enum of built-in themes. Custom themes are not
|
|
15
|
+
* registered via frontmatter in v0.1 — caller wraps `<Slide>` with their
|
|
16
|
+
* own CSS overrides.
|
|
17
|
+
*/
|
|
18
|
+
import { z } from "zod";
|
|
19
|
+
/** Built-in slide themes. Adding a theme means landing a CSS file in `themes/`. */
|
|
20
|
+
export declare const slideTheme: z.ZodEnum<{
|
|
21
|
+
default: "default";
|
|
22
|
+
"violet-forge": "violet-forge";
|
|
23
|
+
}>;
|
|
24
|
+
export type SlideTheme = z.infer<typeof slideTheme>;
|
|
25
|
+
/** Built-in slide layouts (rich-content plan T2.1). */
|
|
26
|
+
export declare const slideLayout: z.ZodEnum<{
|
|
27
|
+
section: "section";
|
|
28
|
+
title: "title";
|
|
29
|
+
default: "default";
|
|
30
|
+
"two-column": "two-column";
|
|
31
|
+
"image-right": "image-right";
|
|
32
|
+
"image-left": "image-left";
|
|
33
|
+
"code-output": "code-output";
|
|
34
|
+
}>;
|
|
35
|
+
export type SlideLayout = z.infer<typeof slideLayout>;
|
|
36
|
+
/**
|
|
37
|
+
* Sanitize a `backgroundImage` URL.
|
|
38
|
+
*
|
|
39
|
+
* Allowed: `http(s)://...` URLs (validated via `URL` constructor).
|
|
40
|
+
* Rejected: `javascript:`, `vbscript:`, all `data:` URLs (EC-7 — perf + DoS).
|
|
41
|
+
* Accepts a bare URL or a `url(...)` wrapper. Returns the unwrapped URL on
|
|
42
|
+
* success, `null` on rejection.
|
|
43
|
+
*/
|
|
44
|
+
export declare function sanitizeBgUrl(input: string): string | null;
|
|
45
|
+
/** YAML frontmatter accepted by `<Slide>`. */
|
|
46
|
+
export declare const slideFrontmatter: z.ZodObject<{
|
|
47
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
default: "default";
|
|
49
|
+
"violet-forge": "violet-forge";
|
|
50
|
+
}>>;
|
|
51
|
+
layout: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
section: "section";
|
|
53
|
+
title: "title";
|
|
54
|
+
default: "default";
|
|
55
|
+
"two-column": "two-column";
|
|
56
|
+
"image-right": "image-right";
|
|
57
|
+
"image-left": "image-left";
|
|
58
|
+
"code-output": "code-output";
|
|
59
|
+
}>>;
|
|
60
|
+
backgroundImage: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
61
|
+
backgroundGradient: z.ZodOptional<z.ZodString>;
|
|
62
|
+
header: z.ZodOptional<z.ZodString>;
|
|
63
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
64
|
+
paginate: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skip">, z.ZodLiteral<"hold">]>>;
|
|
65
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
66
|
+
color: z.ZodOptional<z.ZodString>;
|
|
67
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
export type SlideFrontmatter = z.infer<typeof slideFrontmatter>;
|
|
70
|
+
/** Composed input: validated frontmatter object + raw markdown body string. */
|
|
71
|
+
export declare const slideInput: z.ZodObject<{
|
|
72
|
+
frontmatter: z.ZodObject<{
|
|
73
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
default: "default";
|
|
75
|
+
"violet-forge": "violet-forge";
|
|
76
|
+
}>>;
|
|
77
|
+
layout: z.ZodOptional<z.ZodEnum<{
|
|
78
|
+
section: "section";
|
|
79
|
+
title: "title";
|
|
80
|
+
default: "default";
|
|
81
|
+
"two-column": "two-column";
|
|
82
|
+
"image-right": "image-right";
|
|
83
|
+
"image-left": "image-left";
|
|
84
|
+
"code-output": "code-output";
|
|
85
|
+
}>>;
|
|
86
|
+
backgroundImage: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
87
|
+
backgroundGradient: z.ZodOptional<z.ZodString>;
|
|
88
|
+
header: z.ZodOptional<z.ZodString>;
|
|
89
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
90
|
+
paginate: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skip">, z.ZodLiteral<"hold">]>>;
|
|
91
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
92
|
+
color: z.ZodOptional<z.ZodString>;
|
|
93
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$strict>;
|
|
95
|
+
body: z.ZodString;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export type SlideInput = z.infer<typeof slideInput>;
|
|
98
|
+
/** Discrete validation-error codes — kept centralized so consumers can pattern-match safely. */
|
|
99
|
+
export type SlideValidationErrorCode = "INVALID_FRONTMATTER" | "FRONTMATTER_TOO_LARGE" | "MULTIPLE_SLIDES" | "CONTENT_TOO_LARGE" | "BANNED_TAG" | "BANNED_ATTRIBUTE" | "INVALID_ASPECT_RATIO" | "PLUGIN_ERROR" | "PLUGIN_PEER_DEP_MISSING" | "MARPIT_BG_UNSAFE_URL";
|
|
100
|
+
export interface SlideValidationError {
|
|
101
|
+
/** Path inside the input (frontmatter key, ['body'], or []). */
|
|
102
|
+
path: (string | number)[];
|
|
103
|
+
/** Human-readable explanation. */
|
|
104
|
+
message: string;
|
|
105
|
+
/** Discriminator for consumers. */
|
|
106
|
+
code: SlideValidationErrorCode;
|
|
107
|
+
/** Offending value when extractable from Zod's `received` or by walking the input. */
|
|
108
|
+
got?: unknown;
|
|
109
|
+
}
|