@kabmo-labs/kabmo 0.59.1 → 0.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +397 -397
- package/dist/client/static/js/{Body-5yedtmnk.js → Body-p82s28sj.js} +3 -3
- package/dist/client/static/js/{CsvGrid-39m8pp1c.js → CsvGrid-erc5mcvc.js} +2 -2
- package/dist/client/static/js/{DocxView-vd99cv12.js → DocxView-x3faj0jv.js} +3 -3
- package/dist/client/static/js/{DrawioView-6nq4412n.js → DrawioView-t7fh3ens.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-cs51gszy.js → HtmlPreview-zy7x7jmm.js} +1 -1
- package/dist/client/static/js/ImageView-xc90jc1c.js +1 -0
- package/dist/client/static/js/LayoutWrapper-wyqe98kf.js +2 -0
- package/dist/client/static/js/MergeDiffView-bng34cpr.js +1 -0
- package/dist/client/static/js/Modal-89jk7wff.js +60 -0
- package/dist/client/static/js/{PdfView-0zab721q.js → PdfView-kqx472q7.js} +1 -1
- package/dist/client/static/js/SessionsView-6bpz1faj.js +1 -0
- package/dist/client/static/js/{SheetView-2wdn5hkd.js → SheetView-0n9fze50.js} +9 -9
- package/dist/client/static/js/{SvgPreview-fmrfxd7z.js → SvgPreview-6xc6ts46.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-41scfh9v.js → abnfDiagram-O67JEVCF-2xdkkqwg.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-sxrkxwbq.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-fp6etjvt.js → architectureDiagram-NJMV4G6O-ja8cx19z.js} +11 -11
- package/dist/client/static/js/{astro-ryr2ajmg.js → astro-yphdvdty.js} +1 -1
- package/dist/client/static/js/bash-bcbct9gc.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-pespk9mt.js → blockDiagram-BEXU5L5S-ytf7s99c.js} +8 -8
- package/dist/client/static/js/c-fn9jz26e.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-rt4z91dx.js → c4Diagram-YGBWAQC7-5a0kdx0z.js} +5 -5
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-6bzaq8sd.js → classDiagram-v2-NBCMYWYE-hd98dvjw.js} +6 -6
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-z3fhgcba.js → cose-bilkent-JH36ORCC-man3fqcj.js} +1 -1
- package/dist/client/static/js/cpp-a1q64mke.js +1 -0
- package/dist/client/static/js/css-b92azee8.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-g1xwa8b9.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-8endeh4p.js → cynefinDiagram-VND7K2PF-2f0kbbv2.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-2a2f32dv.js → dagre-6A5THRUB-k7pyhgzn.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-wgbyr6b7.js → diagram-22UHCM2B-qx0afa2m.js} +15 -15
- package/dist/client/static/js/{diagram-3UASUU5V-5122b41x.js → diagram-3UASUU5V-ydpe77sv.js} +2 -2
- package/dist/client/static/js/{diagram-ATOU4E4O-1gt9fr7e.js → diagram-ATOU4E4O-e63v984n.js} +2 -2
- package/dist/client/static/js/{diagram-CDSNMT55-v6hs59jb.js → diagram-CDSNMT55-8c765h3a.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-yey2m5nm.js → diagram-MLGK6HIB-3pq0n7v8.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-hg4f3q4d.js → diagram-MPIPVDR6-638atzxz.js} +2 -2
- package/dist/client/static/js/{dockerfile-56tfnp5r.js → dockerfile-yehc914q.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-2mhc9aar.js → ebnfDiagram-ZINNZB2B-3gv43zvm.js} +1 -1
- package/dist/client/static/js/{elixir-fyxw6d70.js → elixir-3nwnd9yw.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-wedtvz9y.js → elk-276RUBZZ-6s5pggfc.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-1kysnby9.js → erDiagram-OPXOYQCR-x7cqyb89.js} +3 -3
- package/dist/client/static/js/{erlang-97ayje6m.js → erlang-p5c4n3t0.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-05p61bka.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-7sn6nwjv.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-j4g65rpm.js → ganttDiagram-FUAMR5RP-g97te4v1.js} +5 -5
- package/dist/client/static/js/gitGraph-4MIJSDKK-z1yehwys.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-vcwmj4b3.js → gitGraphDiagram-X574FWY7-sw4f94tc.js} +14 -14
- package/dist/client/static/js/graphql-8d8bn59j.js +1 -0
- package/dist/client/static/js/html-6hdrwtz2.js +1 -0
- package/dist/client/static/js/{index-5e4e18tg.js → index-025s3fp8.js} +2 -2
- package/dist/client/static/js/{index-hgzf4ask.js → index-0ze5bwvw.js} +5 -5
- package/dist/client/static/js/{index-s7p2wdr1.js → index-111bq6rs.js} +1 -1
- package/dist/client/static/js/{index-8tzt0dek.js → index-11qn05g9.js} +2 -2
- package/dist/client/static/js/{index-np2rfq06.js → index-2dmew334.js} +2 -2
- package/dist/client/static/js/index-2n2evsg0.js +2 -0
- package/dist/client/static/js/{index-y5pkqrga.js → index-37apvxgj.js} +2 -2
- package/dist/client/static/js/{index-vs3g6njv.js → index-43gmn7yb.js} +1 -1
- package/dist/client/static/js/index-4h2zkrk1.js +2 -0
- package/dist/client/static/js/{index-42k78whj.js → index-4xbc0j7t.js} +1 -1
- package/dist/client/static/js/index-5nm8hm4k.js +2 -0
- package/dist/client/static/js/{index-kt77dwsg.js → index-6qn9kygb.js} +7 -7
- package/dist/client/static/js/{index-d201jvs9.js → index-8zct30zd.js} +1 -1
- package/dist/client/static/js/{index-1mkn5fbf.js → index-95jfphx5.js} +197 -197
- package/dist/client/static/js/{index-yrwm437g.js → index-97sw4d9n.js} +2 -2
- package/dist/client/static/js/{index-jaf968hx.js → index-9pw441wc.js} +4 -4
- package/dist/client/static/js/{index-m62sf9wn.js → index-9rz6kzsv.js} +1 -1
- package/dist/client/static/js/{index-y4cx8cqf.js → index-a145x0w2.js} +2 -2
- package/dist/client/static/js/{index-mhrkjbjq.js → index-bdtftrym.js} +2 -2
- package/dist/client/static/js/index-bjz54ht6.js +1 -0
- package/dist/client/static/js/{index-db6s66jr.js → index-bkn6jtn1.js} +2 -2
- package/dist/client/static/js/{index-dw9epydj.js → index-bpcg34jp.js} +2 -2
- package/dist/client/static/js/{index-spnrx2c0.js → index-bqapt2e8.js} +1 -1
- package/dist/client/static/js/{index-ndqtff48.js → index-ca6tmamh.js} +2 -2
- package/dist/client/static/js/{index-a70sk36c.js → index-cf69bhjx.js} +2 -2
- package/dist/client/static/js/{index-fg0ne74z.js → index-cfvc1zpk.js} +2 -2
- package/dist/client/static/js/{index-wkxsypj1.js → index-ddkjgv5h.js} +2 -2
- package/dist/client/static/js/{index-xqz7bqcn.js → index-dekvtt2a.js} +87 -87
- package/dist/client/static/js/{index-pr8wsq24.js → index-dv01prse.js} +2 -2
- package/dist/client/static/js/{index-sg65xdey.js → index-enm77k5z.js} +2 -2
- package/dist/client/static/js/{index-nf4hq5tg.js → index-excgtjhx.js} +14 -14
- package/dist/client/static/js/{index-51rbgeh9.js → index-fb2fjndj.js} +5 -5
- package/dist/client/static/js/index-fnwaxc6r.js +1 -0
- package/dist/client/static/js/{index-vs2y8gxr.js → index-fr6wsqk8.js} +2 -2
- package/dist/client/static/js/index-h65zrhva.js +1 -0
- package/dist/client/static/js/{index-fvphmwkf.js → index-hgfyx8dt.js} +2 -2
- package/dist/client/static/js/{index-7enfdvh0.js → index-hwdkxe4n.js} +2 -2
- package/dist/client/static/js/{index-69mnn71v.js → index-hwv7bfxc.js} +2 -2
- package/dist/client/static/js/index-hxsqw7sz.js +4 -0
- package/dist/client/static/js/{index-461ga40v.js → index-hxy1sadd.js} +2 -2
- package/dist/client/static/js/{index-hrez92pw.js → index-ja0ajnvq.js} +7 -7
- package/dist/client/static/js/{index-3kedv94b.js → index-jfqd838j.js} +2 -2
- package/dist/client/static/js/{index-d9sfavx1.js → index-mtav0rpf.js} +2 -2
- package/dist/client/static/js/{index-58z2hatp.js → index-n8r7r86r.js} +1 -1
- package/dist/client/static/js/{index-2h7xh93h.js → index-pdgc9ccr.js} +1 -1
- package/dist/client/static/js/{index-gajpd90b.js → index-pdz6j2g2.js} +2 -2
- package/dist/client/static/js/{index-jct0jryd.js → index-qccydkze.js} +2 -2
- package/dist/client/static/js/{index-42q5gg7t.js → index-qkqkygrf.js} +1 -1
- package/dist/client/static/js/index-qkyy563e.js +1 -0
- package/dist/client/static/js/{index-92h38pwg.js → index-s4j2ghmx.js} +2 -2
- package/dist/client/static/js/{index-z82nd2bd.js → index-sx83ans2.js} +2 -2
- package/dist/client/static/js/index-t6nqy2n5.css +1 -0
- package/dist/client/static/js/{index-fsa18ns9.js → index-twwsn91p.js} +2 -2
- package/dist/client/static/js/{index-nwbr15b3.js → index-v88m5sva.js} +2 -2
- package/dist/client/static/js/{index-csxnqgzw.js → index-vcq6zfxx.js} +6 -6
- package/dist/client/static/js/{index-pn0ja904.js → index-vec7m1yd.js} +2 -2
- package/dist/client/static/js/{index-sqyvj03y.js → index-vejz38qt.js} +9 -9
- package/dist/client/static/js/{index-r42f3r1p.js → index-wrk99kks.js} +2 -2
- package/dist/client/static/js/{index-q3k8r0ms.js → index-wsy6y5em.js} +9 -9
- package/dist/client/static/js/{index-h1xbx74w.js → index-yfcy4cf6.js} +2 -2
- package/dist/client/static/js/{index-qc3de995.js → index-ywp0sd1e.js} +1 -1
- package/dist/client/static/js/{index-tz5ewsza.js → index-z8k42dwz.js} +9 -9
- package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-7craq9x2.js → infoDiagram-VRGFBTTK-pw2qaa27.js} +1 -1
- package/dist/client/static/js/ini-g6a5xsaw.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ncjty2re.js → ishikawaDiagram-OU5B5YK6-d13jhvxy.js} +3 -3
- package/dist/client/static/js/java-n596am4c.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-yx222bzt.js → journeyDiagram-ZHPQQLJL-20gb8a04.js} +4 -4
- package/dist/client/static/js/json-7k70qbkj.js +1 -0
- package/dist/client/static/js/jsx-sndenqrc.js +1 -0
- package/dist/client/static/js/{julia-agc5kfvg.js → julia-rpd1y9vh.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-a2f84qmn.js → kanban-definition-PNTS6WVX-s78e158c.js} +5 -5
- package/dist/client/static/js/lua-djd3g9q5.js +1 -0
- package/dist/client/static/js/markdown-r2tpvxpn.js +1 -0
- package/dist/client/static/js/{mermaid.core-9vfwthw3.js → mermaid.core-xbm27k28.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-fsxysg6f.js → mindmap-definition-NLK3R4M7-6y7xe2zm.js} +7 -7
- package/dist/client/static/js/one-dark-pro-7bgqnyhm.js +1 -0
- package/dist/client/static/js/one-light-47y6etng.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-7jxzax4z.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-77wxmp9g.js → pegDiagram-GJSIUBJH-dmvewetf.js} +1 -1
- package/dist/client/static/js/{perl-v5vbtzgf.js → perl-kmtz9dnv.js} +1 -1
- package/dist/client/static/js/{php-83qwy98t.js → php-bttrsbxy.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-wc9wxr7f.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-gvgfhez0.js → pieDiagram-5QR66LMP-1q9e7rcm.js} +2 -2
- package/dist/client/static/js/properties-brn72zdk.js +1 -0
- package/dist/client/static/js/python-g9mghwgm.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-9zkbt5h8.js → quadrantDiagram-O4NWA36T-mvrem3n6.js} +4 -4
- package/dist/client/static/js/r-e247x4mw.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-kwj5padj.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-h8sdx3w5.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-2wmwx246.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-h4cdgw3y.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-q7m0tfd0.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-w55bsyw6.js → railroadDiagram-XR7U4H2S-axttcfhw.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-828s1e5g.js → requirementDiagram-PLB6GJNP-5qx7erta.js} +12 -12
- package/dist/client/static/js/{ruby-994n5j6e.js → ruby-dve3y59w.js} +1 -1
- package/dist/client/static/js/{rust-csv5f258.js → rust-b3ckax3e.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-34f3fyvg.js → sankeyDiagram-IPEJSGJF-es87a3j6.js} +4 -4
- package/dist/client/static/js/{sass-p6g7qdv2.js → sass-emxqt5p2.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-nnta2hn0.js → sequenceDiagram-PO4LG4MO-dgpnjrtk.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-gpcramga.js → sizeCapture-INFHLROL-kyw0p86n.js} +1 -1
- package/dist/client/static/js/sql-0kar81jy.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-3f2en220.js → stateDiagram-v2-GCMORJYK-vnsbw8y9.js} +3 -3
- package/dist/client/static/js/{svelte-bek3h1sz.js → svelte-dbsx1ehx.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-jgqt12z9.js → swimlanes-2SLR337P-060q1rep.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-y77g9dq0.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-sgchcs11.js → timeline-definition-EJHVYXUP-8a3yqmx0.js} +6 -6
- package/dist/client/static/js/treeView-Q6P3EWNA-yv9640h3.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-7kpzjg21.js +1 -0
- package/dist/client/static/js/typescript-bm89v3gk.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-znkg9pkq.js → usecaseDiagram-POWQR4AR-18sp73v7.js} +51 -51
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-dncg96ej.js → vennDiagram-UO4OBE2U-gf4y1r3s.js} +5 -5
- package/dist/client/static/js/{vue-y44m889c.js → vue-hyr58df9.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-mggay64p.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-77xz2d49.js → wardleyDiagram-VNRHLVJA-q0kwmbzh.js} +5 -5
- package/dist/client/static/js/xml-b7824nx0.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-40j1aqyf.js → xychartDiagram-PMCCYNJV-y0gpmg6m.js} +6 -6
- package/dist/client/static/js/yaml-kqqktdv1.js +1 -0
- package/package.json +4 -4
- package/src/client/borders.css +28 -15
- package/src/client/components/common/Modal.tsx +10 -2
- package/src/client/components/common/Toast.tsx +8 -3
- package/src/client/components/common/anchored-menu/index.tsx +10 -3
- package/src/client/components/common/command-palette/index.tsx +9 -3
- package/src/client/components/common/fullscreen-viewer/index.tsx +1 -1
- package/src/client/components/common/header-controls/index.test.tsx +40 -3
- package/src/client/components/common/header-controls/index.tsx +106 -56
- package/src/client/components/common/search-select/search-select.test.tsx +10 -1
- package/src/client/components/common/workspace-mark/index.test.tsx +67 -0
- package/src/client/components/common/workspace-mark/index.tsx +48 -0
- package/src/client/components/layout/ActivityBar.test.ts +1 -1
- package/src/client/components/layout/ActivityBarDrag.test.ts +1 -1
- package/src/client/components/layout/LeftActivityBar.test.ts +48 -3
- package/src/client/components/layout/LeftDock.tsx +33 -14
- package/src/client/components/layout/PanelButton.test.tsx +119 -0
- package/src/client/components/layout/PanelButton.tsx +2 -4
- package/src/client/components/layout/activity-bar/Row.tsx +125 -0
- package/src/client/components/layout/{ActivityBar.tsx → activity-bar/index.tsx} +81 -20
- package/src/client/components/layout/controls-bar/index.tsx +183 -0
- package/src/client/components/layout/desktop-layout/BarSlot.tsx +18 -0
- package/src/client/components/layout/desktop-layout/LeftColumn.test.tsx +187 -0
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +81 -64
- package/src/client/components/layout/desktop-layout/LeftRail.tsx +60 -0
- package/src/client/components/layout/desktop-layout/LeftTabsColumn.tsx +91 -0
- package/src/client/components/layout/desktop-layout/ResizeHandle.tsx +19 -3
- package/src/client/components/layout/desktop-layout/RightColumn.test.tsx +60 -0
- package/src/client/components/layout/desktop-layout/RightColumn.tsx +77 -28
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +114 -104
- package/src/client/components/layout/desktop-layout/index.tsx +48 -45
- package/src/client/components/layout/desktop-layout/resizer/index.tsx +25 -83
- package/src/client/components/layout/desktop-layout/resizer/panel-motion.ts +61 -0
- package/src/client/components/layout/desktop-layout/resizer/panel.test.ts +40 -2
- package/src/client/components/layout/desktop-layout/resizer/separator.tsx +89 -0
- package/src/client/components/layout/left-bar/index.tsx +88 -0
- package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +5 -2
- package/src/client/components/layout/session-sidebar/Footer.tsx +28 -11
- package/src/client/components/layout/session-sidebar/FooterHost.tsx +167 -0
- package/src/client/components/layout/session-sidebar/SessionItem.tsx +2 -2
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +8 -3
- package/src/client/components/layout/session-sidebar/footer-host.test.tsx +133 -0
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +5 -2
- package/src/client/components/layout/session-title-bar/index.tsx +199 -0
- package/src/client/components/layout/top-bars.test.tsx +338 -0
- package/src/client/components/mobile/LayoutWrapper.tsx +13 -2
- package/src/client/components/mobile/SessionSidebar.tsx +10 -8
- package/src/client/components/mobile/drawer-layout.test.tsx +67 -0
- package/src/client/components/mobile/drawer-strip.tsx +37 -14
- package/src/client/components/mobile/left-drawer-nav.test.tsx +19 -127
- package/src/client/components/settings/LazyModal.tsx +8 -2
- package/src/client/components/settings/Modal.tsx +6 -2
- package/src/client/components/settings/apply-side-effects.ts +5 -0
- package/src/client/components/settings/categories/AppearanceSettings.test.tsx +1 -0
- package/src/client/components/settings/categories/AppearanceSettings.tsx +2 -0
- package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.test.tsx +6 -5
- package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.tsx +2 -2
- package/src/client/components/settings/categories/appearance-settings/ChromeStyleSection.tsx +105 -0
- package/src/client/components/settings/categories/appearance-settings/groups.ts +3 -2
- package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
- package/src/client/components/settings/categories/voice-settings/SpeechSettings.test.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/GeneratingIndicator.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.test.ts +8 -1
- package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.test.tsx +8 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.test.tsx +9 -2
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +1 -25
- package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +1 -1
- package/src/client/components/workspace/editor/Tab.tsx +160 -0
- package/src/client/components/workspace/editor/Tabs.test.ts +40 -0
- package/src/client/components/workspace/editor/Tabs.tsx +52 -102
- package/src/client/components/workspace/editor/index.tsx +2 -0
- package/src/client/components/workspace/editor/props.ts +6 -0
- package/src/client/components/workspace/file-explorer/OutlineResize.test.tsx +225 -0
- package/src/client/components/workspace/file-explorer/OutlineSection.tsx +43 -3
- package/src/client/components/workspace/file-explorer/index.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/Panel.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/SpecsTooltip.tsx +1 -1
- package/src/client/components/workspace/panel-tabs/TabChip.tsx +48 -20
- package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +163 -0
- package/src/client/components/workspace/panel-tabs/TabStrip.tsx +18 -9
- package/src/client/components/workspace/search-panel/Body.tsx +3 -3
- package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
- package/src/client/data/settings/omp-schema.json +205 -9
- package/src/client/floating.css +276 -0
- package/src/client/floating.test.ts +151 -0
- package/src/client/hooks/chat/timeline/session-pagination.ts +13 -9
- package/src/client/hooks/editor/use-outline-resize.ts +145 -0
- package/src/client/hooks/ui/border-style.test.ts +19 -7
- package/src/client/hooks/ui/border-style.ts +2 -3
- package/src/client/hooks/ui/chrome-style.test.ts +140 -0
- package/src/client/hooks/ui/chrome-style.ts +75 -0
- package/src/client/hooks/ui/media-query.ts +29 -0
- package/src/client/hooks/ui/presence.test.ts +104 -0
- package/src/client/hooks/ui/presence.ts +62 -0
- package/src/client/hooks/ui/style-attributes.test.ts +7 -6
- package/src/client/hooks/ui/surface-style.ts +2 -2
- package/src/client/hooks/ui/titlebar-inset.test.ts +56 -0
- package/src/client/hooks/ui/titlebar-inset.ts +31 -0
- package/src/client/hooks/workspace/available-width.ts +25 -1
- package/src/client/hooks/workspace/panel-peek.test.ts +124 -0
- package/src/client/hooks/workspace/panel-peek.ts +151 -0
- package/src/client/hooks/workspace/panel-rail.test.ts +86 -0
- package/src/client/hooks/workspace/panel-rail.ts +108 -0
- package/src/client/hooks/workspace/panel-resize.ts +8 -2
- package/src/client/hooks/workspace/rail-peek.test.ts +119 -0
- package/src/client/hooks/workspace/rail-peek.ts +68 -0
- package/src/client/hooks/workspace/right-panel-card.test.ts +71 -0
- package/src/client/hooks/workspace/right-panel-card.ts +69 -0
- package/src/client/hooks/workspace/right-panel-geometry.ts +172 -0
- package/src/client/hooks/workspace/right-side.ts +7 -0
- package/src/client/lib/desktop/titlebar.test.ts +6 -0
- package/src/client/lib/desktop/titlebar.ts +16 -0
- package/src/client/main.tsx +11 -0
- package/src/client/motion.test.ts +36 -0
- package/src/client/tailwind.css +67 -0
- package/src/server/lib/assets/shell-attributes.server.ts +14 -4
- package/src/server/lib/assets/shell-attributes.test.ts +35 -21
- package/src/server/lib/bundler/titlebar-css.test.ts +3 -2
- package/src/server/lib/realtime/topics/peer-relay.server.test.ts +19 -3
- package/src/server/lib/updates/omp.test.ts +40 -1
- package/src/server/lib/updates/omp.ts +29 -2
- package/src/server/plugins/ssr.ts +2 -0
- package/src/server/routes/settings/mcp.test.ts +16 -0
- package/src/server/routes/settings/mcp.ts +4 -0
- package/src/shared/lib/code/outline/resize.test.ts +57 -0
- package/src/shared/lib/code/outline/resize.ts +67 -0
- package/src/shared/lib/models/provider/glyph.test.ts +3 -1
- package/src/shared/lib/models/provider/glyph.ts +1 -0
- package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +103 -3
- package/src/shared/lib/omp/config/schema.test.ts +9 -0
- package/src/shared/lib/omp/config/schema.ts +8 -0
- package/src/shared/lib/settings/defaults.ts +2 -0
- package/src/shared/lib/theme/border-style.test.ts +12 -14
- package/src/shared/lib/theme/border-style.ts +25 -18
- package/src/shared/lib/theme/chrome-style.test.ts +31 -0
- package/src/shared/lib/theme/chrome-style.ts +74 -0
- package/src/shared/lib/theme/surface-style.test.ts +4 -5
- package/src/shared/lib/theme/surface-style.ts +6 -5
- package/src/shared/lib/ui/motion.ts +29 -0
- package/src/shared/lib/workspace/floating-chrome.ts +23 -0
- package/src/shared/lib/workspace/session-state/store.ts +3 -0
- package/src/shared/lib/workspace/workspace-panel-widths.test.ts +73 -0
- package/src/shared/lib/workspace/workspace-panel-widths.ts +79 -17
- package/src/shared/types/settings/state.ts +10 -9
- package/src/test-support/left-drawer-harness.test-util.ts +169 -0
- package/src/test-support/peer-harness.ts +44 -36
- package/dist/client/static/js/ImageView-nc2n0w6s.js +0 -1
- package/dist/client/static/js/LayoutWrapper-j7786frq.js +0 -2
- package/dist/client/static/js/MergeDiffView-0rn5zsy5.js +0 -1
- package/dist/client/static/js/Modal-7ag7a9qq.js +0 -60
- package/dist/client/static/js/SessionsView-t9rhx472.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-bwn1drdz.js +0 -1
- package/dist/client/static/js/bash-zknkkwkw.js +0 -1
- package/dist/client/static/js/c-0w02jkxb.js +0 -1
- package/dist/client/static/js/cpp-p5b4vean.js +0 -1
- package/dist/client/static/js/css-9jzbvdyz.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-jbc50ks8.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-b37ey01t.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-vd4z6bvy.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-mvqq7tcs.js +0 -1
- package/dist/client/static/js/graphql-xzykn0ba.js +0 -1
- package/dist/client/static/js/html-2zc3shky.js +0 -1
- package/dist/client/static/js/index-6vbra7p9.js +0 -1
- package/dist/client/static/js/index-9mgpbwfr.js +0 -1
- package/dist/client/static/js/index-c5401dqs.js +0 -4
- package/dist/client/static/js/index-dbsy29gn.js +0 -2
- package/dist/client/static/js/index-e39m185a.js +0 -2
- package/dist/client/static/js/index-fnaq8baz.js +0 -1
- package/dist/client/static/js/index-mttx9327.css +0 -1
- package/dist/client/static/js/index-n7bmqeqz.js +0 -1
- package/dist/client/static/js/index-skp6991n.js +0 -2
- package/dist/client/static/js/info-A6RAGUB7-zkv4crz7.js +0 -1
- package/dist/client/static/js/ini-62r3vxaf.js +0 -1
- package/dist/client/static/js/java-kacycary.js +0 -1
- package/dist/client/static/js/json-yrwpn6bd.js +0 -1
- package/dist/client/static/js/jsx-b40ag8q1.js +0 -1
- package/dist/client/static/js/lua-bk961f37.js +0 -1
- package/dist/client/static/js/markdown-b7rgzgd6.js +0 -1
- package/dist/client/static/js/one-dark-pro-7v4by00h.js +0 -1
- package/dist/client/static/js/one-light-5rfzh8p4.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-dgpge627.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-b8pgsqrd.js +0 -1
- package/dist/client/static/js/properties-k8gbzggp.js +0 -1
- package/dist/client/static/js/python-343tspad.js +0 -1
- package/dist/client/static/js/r-ycdwmv8g.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-fmfe5y27.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-b5tks4ce.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-0sf4m0ze.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-pjfy3pt7.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-nr8ngt42.js +0 -1
- package/dist/client/static/js/sql-kwpd5w07.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-xx1z57df.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-23r9fa68.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-mxxzdrj6.js +0 -1
- package/dist/client/static/js/typescript-4dchbnya.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-cbqtax1x.js +0 -1
- package/dist/client/static/js/xml-xs6qz3ya.js +0 -1
- package/dist/client/static/js/yaml-174nk5bn.js +0 -1
- package/src/client/components/layout/desktop-layout/TopNavbar.tsx +0 -238
- package/src/client/components/layout/session-sidebar/Header.test.ts +0 -98
- package/src/client/components/layout/session-sidebar/Header.tsx +0 -60
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The rail's hover PREVIEW gate, extracted from `ActivityBar`.
|
|
8
|
+
*
|
|
9
|
+
* The bar decides *whether* a hover may preview; `usePanelPeek` decides *when*
|
|
10
|
+
* the preview opens and closes. This hook owns the one piece of state in
|
|
11
|
+
* between: the row whose click just landed must not preview until the pointer
|
|
12
|
+
* leaves it, or clicking the active mark to collapse the column would be
|
|
13
|
+
* followed by a preview of the column it just closed.
|
|
14
|
+
*
|
|
15
|
+
* It is also the single place the "can hover at all" rules live: a column that
|
|
16
|
+
* is open does not preview, a touch pointer would flash a panel the tap is
|
|
17
|
+
* about to open, and a drag or an open menu owns the pointer.
|
|
18
|
+
*/
|
|
19
|
+
import { useRef } from 'preact/hooks';
|
|
20
|
+
|
|
21
|
+
export interface RailPeekArgs {
|
|
22
|
+
/** The surface has a preview at all (`onPeekIntent` was passed). */
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
/** The column is really open — a hover has nothing to reveal. */
|
|
25
|
+
panelOpen: boolean;
|
|
26
|
+
/** A reorder drag is in flight; shifting the row under it would break it. */
|
|
27
|
+
dragging: boolean;
|
|
28
|
+
/** The visibility menu is open above the rail. */
|
|
29
|
+
menuOpen: boolean;
|
|
30
|
+
/** The primary pointer cannot hover (phone, tablet). */
|
|
31
|
+
touch: boolean;
|
|
32
|
+
onPeek: (panel: string) => void;
|
|
33
|
+
/** Drop a preview that has not opened yet. */
|
|
34
|
+
onCancel: () => void;
|
|
35
|
+
/** The mark's own action: open, select or collapse. */
|
|
36
|
+
onClick: (panel: string) => void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface RailPeek {
|
|
40
|
+
onRowPointerEnter: (panel: string, pointerType: string) => void;
|
|
41
|
+
onRowPointerLeave: (panel: string) => void;
|
|
42
|
+
onClick: (panel: string) => void;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function useRailPeek({ enabled, panelOpen, dragging, menuOpen, touch, onPeek, onCancel, onClick }: RailPeekArgs): RailPeek {
|
|
46
|
+
const suppressedRow = useRef<string | null>(null);
|
|
47
|
+
|
|
48
|
+
return {
|
|
49
|
+
onRowPointerEnter: (panel, pointerType) => {
|
|
50
|
+
if (!enabled || panelOpen) return;
|
|
51
|
+
if (suppressedRow.current === panel) return;
|
|
52
|
+
if (touch || pointerType === 'touch') return;
|
|
53
|
+
if (dragging || menuOpen) return;
|
|
54
|
+
onPeek(panel);
|
|
55
|
+
},
|
|
56
|
+
onRowPointerLeave: (panel) => {
|
|
57
|
+
if (suppressedRow.current === panel) suppressedRow.current = null;
|
|
58
|
+
onCancel();
|
|
59
|
+
},
|
|
60
|
+
onClick: (panel) => {
|
|
61
|
+
// The click owns the outcome; the preview stands down while the pointer
|
|
62
|
+
// rests on this row, so a collapse is not undone by its own hover.
|
|
63
|
+
suppressedRow.current = panel;
|
|
64
|
+
onCancel();
|
|
65
|
+
onClick(panel);
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The right column's card geometry: what a closed column keeps on screen, and
|
|
8
|
+
* what a rail hover preview adds to it.
|
|
9
|
+
*
|
|
10
|
+
* The preview is deliberately NOT an open: it takes the view's width, keeps the
|
|
11
|
+
* rail as its floor (so leaving the card can shrink it back), and disappears
|
|
12
|
+
* entirely when there is no rail to hover or when the panel is really open.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { describe, expect, test } from 'bun:test';
|
|
16
|
+
import { RAIL_ONLY_PANEL_WIDTH_PX } from '@/client/hooks/workspace/panel-rail';
|
|
17
|
+
import { resolveRightPanelCard } from '@/client/hooks/workspace/right-panel-card';
|
|
18
|
+
|
|
19
|
+
const base = {
|
|
20
|
+
nav: 'rail' as const,
|
|
21
|
+
sideShown: true,
|
|
22
|
+
suppressed: false,
|
|
23
|
+
shown: false,
|
|
24
|
+
width: 420,
|
|
25
|
+
minWidth: 200,
|
|
26
|
+
maxWidth: 600,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
describe('resolveRightPanelCard', () => {
|
|
30
|
+
test('an open column keeps its width and floor', () => {
|
|
31
|
+
const card = resolveRightPanelCard({ ...base, shown: true });
|
|
32
|
+
expect(card.railVisible).toBe(true);
|
|
33
|
+
expect(card.width).toBe(420);
|
|
34
|
+
expect(card.minWidth).toBe(200);
|
|
35
|
+
expect(card.maxWidth).toBe(600);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
test('a closed rail column is the rail, not zero', () => {
|
|
39
|
+
const card = resolveRightPanelCard(base);
|
|
40
|
+
expect(card.railVisible).toBe(true);
|
|
41
|
+
expect(card.width).toBe(RAIL_ONLY_PANEL_WIDTH_PX);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
test('a preview widens the closed card, with the rail as its floor', () => {
|
|
45
|
+
const card = resolveRightPanelCard({ ...base, previewWidth: 340 });
|
|
46
|
+
expect(card.railVisible).toBe(true);
|
|
47
|
+
expect(card.width).toBe(340);
|
|
48
|
+
expect(card.minWidth).toBe(RAIL_ONLY_PANEL_WIDTH_PX);
|
|
49
|
+
expect(card.maxWidth).toBe(340);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
test('an open panel ignores a preview', () => {
|
|
53
|
+
const card = resolveRightPanelCard({ ...base, shown: true, previewWidth: 340 });
|
|
54
|
+
expect(card.width).toBe(420);
|
|
55
|
+
expect(card.minWidth).toBe(200);
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
test('a hidden side or a suppressed panel has no rail, so no preview either', () => {
|
|
59
|
+
const hidden = resolveRightPanelCard({ ...base, sideShown: false, previewWidth: 340 });
|
|
60
|
+
expect(hidden.railVisible).toBe(false);
|
|
61
|
+
expect(hidden.width).toBe(0);
|
|
62
|
+
|
|
63
|
+
const suppressed = resolveRightPanelCard({ ...base, suppressed: true, previewWidth: 340 });
|
|
64
|
+
expect(suppressed.railVisible).toBe(false);
|
|
65
|
+
expect(suppressed.width).toBe(0);
|
|
66
|
+
|
|
67
|
+
const tabs = resolveRightPanelCard({ ...base, nav: 'tabs', previewWidth: 340 });
|
|
68
|
+
expect(tabs.railVisible).toBe(false);
|
|
69
|
+
expect(tabs.width).toBe(0);
|
|
70
|
+
});
|
|
71
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The right column's card geometry, split out of `WorkspacePanels` so the
|
|
8
|
+
* JSX file stays under the line ceiling.
|
|
9
|
+
*
|
|
10
|
+
* The rail lives INSIDE the panel's floating card. That makes three facts one
|
|
11
|
+
* decision — the panel's width when it is closed (the rail is the way back, so
|
|
12
|
+
* it is not zero), the chrome width the view floor must reserve before the
|
|
13
|
+
* widths are resolved, and whether the rail exists at all — and a second copy
|
|
14
|
+
* of the 44px would let the card clip the rail it is sized for.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { FLOATING_CARD_INSET_PX } from '@/shared/lib/workspace/floating-chrome';
|
|
18
|
+
import type { PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
|
|
19
|
+
import { RAIL_ONLY_PANEL_WIDTH_PX } from '@/client/hooks/workspace/panel-rail';
|
|
20
|
+
|
|
21
|
+
/** Pixels the right panel's outer box spends on the rail and its card gutters. */
|
|
22
|
+
export function rightPanelChromeWidth(nav: PanelNavStyle): number {
|
|
23
|
+
return nav === 'rail' ? RAIL_ONLY_PANEL_WIDTH_PX : FLOATING_CARD_INSET_PX;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface RightPanelCard {
|
|
27
|
+
/** The rail is on screen. A closed column keeps it: it is the way back. */
|
|
28
|
+
railVisible: boolean;
|
|
29
|
+
width: number;
|
|
30
|
+
minWidth: number;
|
|
31
|
+
maxWidth: number | undefined;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function resolveRightPanelCard(args: {
|
|
35
|
+
nav: PanelNavStyle;
|
|
36
|
+
sideShown: boolean;
|
|
37
|
+
suppressed: boolean;
|
|
38
|
+
shown: boolean;
|
|
39
|
+
width: number;
|
|
40
|
+
minWidth: number;
|
|
41
|
+
maxWidth: number | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The width a rail hover preview needs, or `null` when nothing is previewed.
|
|
44
|
+
* A preview draws the column's body beside the rail without opening it; the
|
|
45
|
+
* persisted flags and the separator are untouched.
|
|
46
|
+
*/
|
|
47
|
+
previewWidth?: number | null;
|
|
48
|
+
}): RightPanelCard {
|
|
49
|
+
const railVisible = args.sideShown && !args.suppressed && args.nav === 'rail';
|
|
50
|
+
// A preview needs a rail to hover, so a hidden rail or a suppressed panel
|
|
51
|
+
// falls through to the ordinary closed geometry instead of leaving a bodyless
|
|
52
|
+
// column on screen.
|
|
53
|
+
if (!args.shown && railVisible && args.previewWidth != null) {
|
|
54
|
+
const width = Math.max(RAIL_ONLY_PANEL_WIDTH_PX, args.previewWidth);
|
|
55
|
+
return {
|
|
56
|
+
railVisible,
|
|
57
|
+
width,
|
|
58
|
+
minWidth: RAIL_ONLY_PANEL_WIDTH_PX,
|
|
59
|
+
maxWidth: width,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
const width = args.shown ? args.width : railVisible ? RAIL_ONLY_PANEL_WIDTH_PX : 0;
|
|
63
|
+
return {
|
|
64
|
+
railVisible,
|
|
65
|
+
width,
|
|
66
|
+
minWidth: args.shown ? args.minWidth : width,
|
|
67
|
+
maxWidth: args.shown ? args.maxWidth : width,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The right column's geometry: which view it draws, how wide it is, and whether
|
|
8
|
+
* it is on screen — plus the rail's hover PREVIEW of another view.
|
|
9
|
+
*
|
|
10
|
+
* Extracted from `WorkspacePanels` for the repository's per-file ceiling, but
|
|
11
|
+
* it earns the boundary: these are one decision (the column's catalog entry,
|
|
12
|
+
* its width, its card, and the refusal that travels back to the navbar), and
|
|
13
|
+
* they were already a single block of arithmetic over measured and stored
|
|
14
|
+
* values. Keeping them here is also what lets the preview resolve through the
|
|
15
|
+
* SAME solver instead of growing a second width path.
|
|
16
|
+
*
|
|
17
|
+
* The preview is deliberately not a second "open": it draws a view at the width
|
|
18
|
+
* that view would take, with no separator and no persisted flag, and it is
|
|
19
|
+
* dropped when the group cannot hold it — a refused preview says nothing.
|
|
20
|
+
*/
|
|
21
|
+
import { useEffect, useRef } from 'preact/hooks';
|
|
22
|
+
import type { RefObject } from 'preact';
|
|
23
|
+
import type { ResolvedPanel } from '@/client/components/workspace/plugin-panel/catalog';
|
|
24
|
+
import { usePanelCatalog } from '@/client/components/workspace/plugin-panel/catalog';
|
|
25
|
+
import { usePanelSlotPlugins } from '@/client/components/workspace/plugin-panel/resolve';
|
|
26
|
+
import type { ResolvedPluginPanel } from '@/client/components/workspace/plugin-panel/resolve';
|
|
27
|
+
import { useAvailableWidth } from '@/client/hooks/workspace/available-width';
|
|
28
|
+
import { useSnapResize } from '@/client/hooks/workspace/panel-resize';
|
|
29
|
+
import type { RightPanelCard } from '@/client/hooks/workspace/right-panel-card';
|
|
30
|
+
import { resolveRightPanelCard, rightPanelChromeWidth } from '@/client/hooks/workspace/right-panel-card';
|
|
31
|
+
import { FLOATING_CARD_INSET_PX } from '@/shared/lib/workspace/floating-chrome';
|
|
32
|
+
import type { EditorWidthMode, PanelWidths } from '@/shared/lib/workspace/panel-widths';
|
|
33
|
+
import type { PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
|
|
34
|
+
import { resolveWorkspacePanelWidths } from '@/shared/lib/workspace/workspace-panel-widths';
|
|
35
|
+
|
|
36
|
+
export interface RightPanelGeometryArgs {
|
|
37
|
+
panelWidths: PanelWidths;
|
|
38
|
+
editorWidthMode: EditorWidthMode;
|
|
39
|
+
showEditor: boolean;
|
|
40
|
+
showRightPanel: boolean;
|
|
41
|
+
showRightSide: boolean;
|
|
42
|
+
chatHidden: boolean;
|
|
43
|
+
/** The stored (or resolved) selection of the right column. */
|
|
44
|
+
activeRightPanel: string;
|
|
45
|
+
rightNav: PanelNavStyle;
|
|
46
|
+
/** The view a rail hover is previewing, or null when none is. */
|
|
47
|
+
preview: string | null;
|
|
48
|
+
/** The refusal that must reach the toggle's owner; see `useRightPanelPresence`. */
|
|
49
|
+
onSuppressed?: ((suppressed: boolean | null) => void) | undefined;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface RightPanelGeometry {
|
|
53
|
+
/** The measured group, for the resizer's own `onLayoutChanged`. */
|
|
54
|
+
groupRef: RefObject<HTMLDivElement>;
|
|
55
|
+
available: number | null;
|
|
56
|
+
/** The area is moving, so a panel follows instantly instead of animating. */
|
|
57
|
+
snapResize: boolean;
|
|
58
|
+
catalog: ResolvedPanel[];
|
|
59
|
+
editorPlugins: ResolvedPluginPanel[];
|
|
60
|
+
activePanel: ResolvedPanel | undefined;
|
|
61
|
+
shownRightPanel: string;
|
|
62
|
+
/** The catalog entry the preview draws, when the pointer names one. */
|
|
63
|
+
previewPanel: ResolvedPanel | undefined;
|
|
64
|
+
/** The preview fits and must be drawn; false collapses it back to the rail. */
|
|
65
|
+
previewShown: boolean;
|
|
66
|
+
editorWidth: number;
|
|
67
|
+
rightWidth: number;
|
|
68
|
+
rightPanelShown: boolean;
|
|
69
|
+
rightPanelMin: number;
|
|
70
|
+
editorMaxSize: number | undefined;
|
|
71
|
+
rightMaxSize: number | undefined;
|
|
72
|
+
handleCount: number;
|
|
73
|
+
rightCard: RightPanelCard;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function useRightPanelGeometry({
|
|
77
|
+
panelWidths,
|
|
78
|
+
editorWidthMode,
|
|
79
|
+
showEditor,
|
|
80
|
+
showRightPanel,
|
|
81
|
+
showRightSide,
|
|
82
|
+
chatHidden,
|
|
83
|
+
activeRightPanel,
|
|
84
|
+
rightNav,
|
|
85
|
+
preview,
|
|
86
|
+
onSuppressed,
|
|
87
|
+
}: RightPanelGeometryArgs): RightPanelGeometry {
|
|
88
|
+
// The group's own area: the base every stored fraction is a share of, and the
|
|
89
|
+
// budget the chat floor is subtracted from.
|
|
90
|
+
const groupRef = useRef<HTMLDivElement>(null);
|
|
91
|
+
const available = useAvailableWidth(groupRef);
|
|
92
|
+
// A panel follows the group instantly while the area or the width mode is
|
|
93
|
+
// moving, instead of re-targeting the 200ms transition on every tick.
|
|
94
|
+
const snapResize = useSnapResize(available, chatHidden);
|
|
95
|
+
|
|
96
|
+
const catalog = usePanelCatalog();
|
|
97
|
+
// A view moved to the LEFT falls back to the first view this column holds.
|
|
98
|
+
const allPanels = usePanelCatalog('all');
|
|
99
|
+
const movedToLeft = allPanels.some((panel) => panel.id === activeRightPanel && panel.side === 'left');
|
|
100
|
+
const activePanel = catalog.find((panel) => panel.id === activeRightPanel) ?? (movedToLeft ? catalog[0] : undefined);
|
|
101
|
+
const shownRightPanel = activePanel?.id ?? activeRightPanel;
|
|
102
|
+
const previewPanel = preview === null ? undefined : catalog.find((panel) => panel.id === preview);
|
|
103
|
+
|
|
104
|
+
// The EDITOR column's plugin slot: a takeover, so this rail is its only switch.
|
|
105
|
+
const editorPlugins = usePanelSlotPlugins();
|
|
106
|
+
|
|
107
|
+
// The rail lives INSIDE the right card, so its width is chrome the body does
|
|
108
|
+
// not get.
|
|
109
|
+
const rightChromeWidth = rightPanelChromeWidth(rightNav);
|
|
110
|
+
|
|
111
|
+
const {
|
|
112
|
+
editor: editorWidth,
|
|
113
|
+
right: rightWidth,
|
|
114
|
+
rightShown: rightPanelShown,
|
|
115
|
+
previewShown,
|
|
116
|
+
rightSuppressed,
|
|
117
|
+
editorMax: editorMaxSize,
|
|
118
|
+
rightMax: rightMaxSize,
|
|
119
|
+
rightMin: rightPanelMin,
|
|
120
|
+
handleCount,
|
|
121
|
+
} = resolveWorkspacePanelWidths({
|
|
122
|
+
available,
|
|
123
|
+
panelWidths,
|
|
124
|
+
editorWidthMode,
|
|
125
|
+
activeRightPanel: shownRightPanel,
|
|
126
|
+
activePanel,
|
|
127
|
+
previewPanel: previewPanel ?? null,
|
|
128
|
+
showEditor,
|
|
129
|
+
showRightPanel,
|
|
130
|
+
chatHidden,
|
|
131
|
+
rightChromeWidth,
|
|
132
|
+
editorChromeWidth: FLOATING_CARD_INSET_PX,
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
const rightCard = resolveRightPanelCard({
|
|
136
|
+
nav: rightNav,
|
|
137
|
+
sideShown: showRightSide,
|
|
138
|
+
suppressed: rightSuppressed,
|
|
139
|
+
shown: rightPanelShown,
|
|
140
|
+
width: rightWidth,
|
|
141
|
+
minWidth: rightPanelMin,
|
|
142
|
+
maxWidth: rightMaxSize,
|
|
143
|
+
previewWidth: previewShown ? rightWidth : null,
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
// The refusal travels up to the toggle's owner; `null` before measurement.
|
|
147
|
+
useEffect(() => {
|
|
148
|
+
// `0` is the pre-measurement area as much as `null` is: the observer reports
|
|
149
|
+
// it on the first frame, and the resolver answers "fits" for both.
|
|
150
|
+
onSuppressed?.(available == null || available <= 0 ? null : rightSuppressed);
|
|
151
|
+
}, [available, rightSuppressed, onSuppressed]);
|
|
152
|
+
|
|
153
|
+
return {
|
|
154
|
+
groupRef,
|
|
155
|
+
available,
|
|
156
|
+
snapResize,
|
|
157
|
+
catalog,
|
|
158
|
+
editorPlugins,
|
|
159
|
+
activePanel,
|
|
160
|
+
shownRightPanel,
|
|
161
|
+
previewPanel,
|
|
162
|
+
previewShown,
|
|
163
|
+
editorWidth,
|
|
164
|
+
rightWidth,
|
|
165
|
+
rightPanelShown,
|
|
166
|
+
rightPanelMin,
|
|
167
|
+
editorMaxSize,
|
|
168
|
+
rightMaxSize,
|
|
169
|
+
handleCount,
|
|
170
|
+
rightCard,
|
|
171
|
+
};
|
|
172
|
+
}
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
|
|
33
33
|
import { useCallback, useState } from 'preact/hooks';
|
|
34
34
|
import { useSessionState } from '@/client/hooks/workspace/session-state';
|
|
35
|
+
import { usePresence } from '@/client/hooks/ui/presence';
|
|
36
|
+
import { PANEL_TRANSITION_MS } from '@/shared/lib/ui/motion';
|
|
35
37
|
import { useKabmoEvent } from '@/client/hooks/ui/window-event';
|
|
36
38
|
import type { SettingsState } from '@/shared/types';
|
|
37
39
|
import {
|
|
@@ -98,6 +100,8 @@ export interface RightSideLayout {
|
|
|
98
100
|
* the rest.
|
|
99
101
|
*/
|
|
100
102
|
hidden: boolean;
|
|
103
|
+
/** The side is running its close motion (the bar/rail stay until it lands). */
|
|
104
|
+
leaving: boolean;
|
|
101
105
|
/** The navbar's toggle: hide everything, or show everything back. */
|
|
102
106
|
toggleRightSide: () => void;
|
|
103
107
|
/** The panel's own close control: that column only. */
|
|
@@ -189,10 +193,13 @@ export function useRightSideLayout({
|
|
|
189
193
|
setHidden(false);
|
|
190
194
|
}, [hidden, editorWanted, rightPanelOpen, setHidden, setRightPanelOpen, setUserToggledEditor, editorHasContent]);
|
|
191
195
|
|
|
196
|
+
const leaving = usePresence(!hidden, PANEL_TRANSITION_MS).leaving;
|
|
197
|
+
|
|
192
198
|
return {
|
|
193
199
|
showRightPanel: rightPanelOpen && !hidden,
|
|
194
200
|
showEditor,
|
|
195
201
|
hidden,
|
|
202
|
+
leaving,
|
|
196
203
|
toggleRightSide,
|
|
197
204
|
closeRightPanel,
|
|
198
205
|
revealRightPanel,
|
|
@@ -66,6 +66,9 @@ describe('shell title-bar contract', () => {
|
|
|
66
66
|
expect(bar.overlayTitlebar()).toBe(false);
|
|
67
67
|
expect(bar.dragRegionProps()).toEqual({});
|
|
68
68
|
expect(bar.titlebarInsetLeft('1rem')).toBe('1rem');
|
|
69
|
+
// The floating card asks for the width itself; a browser's answer is the
|
|
70
|
+
// PWA's own overlay arithmetic, which reads `0px` where WCO is inactive.
|
|
71
|
+
expect(bar.shellTrafficInsetLeft()).toBe('env(titlebar-area-x, 0px)');
|
|
69
72
|
expect(bar.drawsWindowControls()).toBe(false);
|
|
70
73
|
});
|
|
71
74
|
|
|
@@ -74,6 +77,7 @@ describe('shell title-bar contract', () => {
|
|
|
74
77
|
const bar = await titlebar();
|
|
75
78
|
expect(bar.dragRegionProps()).toEqual({ 'data-drag-region': '' });
|
|
76
79
|
expect(bar.titlebarInsetLeft('1rem')).toBe('5rem');
|
|
80
|
+
expect(bar.shellTrafficInsetLeft()).toBe('5rem');
|
|
77
81
|
// The system owns the traffic lights: a page-drawn set would be a second one.
|
|
78
82
|
expect(bar.drawsWindowControls()).toBe(false);
|
|
79
83
|
});
|
|
@@ -84,6 +88,7 @@ describe('shell title-bar contract', () => {
|
|
|
84
88
|
expect(bar.dragRegionProps()).toEqual({ 'data-drag-region': '' });
|
|
85
89
|
// Nothing floats over the page on a borderless Windows window.
|
|
86
90
|
expect(bar.titlebarInsetLeft('1rem')).toBe('1rem');
|
|
91
|
+
expect(bar.shellTrafficInsetLeft()).toBe('env(titlebar-area-x, 0px)');
|
|
87
92
|
expect(bar.drawsWindowControls()).toBe(true);
|
|
88
93
|
});
|
|
89
94
|
|
|
@@ -93,6 +98,7 @@ describe('shell title-bar contract', () => {
|
|
|
93
98
|
const bar = await titlebar();
|
|
94
99
|
expect(bar.overlayTitlebar()).toBe(true);
|
|
95
100
|
expect(bar.titlebarInsetLeft('1rem')).toBe('1rem');
|
|
101
|
+
expect(bar.shellTrafficInsetLeft()).toBe('env(titlebar-area-x, 0px)');
|
|
96
102
|
expect(bar.drawsWindowControls()).toBe(false);
|
|
97
103
|
});
|
|
98
104
|
|
|
@@ -83,6 +83,22 @@ export function titlebarInsetLeft(resolved: string): string {
|
|
|
83
83
|
return shellInfo()?.trafficLightInset ?? resolved;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
/**
|
|
87
|
+
* The width the shell's controls occupy over the page's LEFT edge, as a CSS
|
|
88
|
+
* length.
|
|
89
|
+
*
|
|
90
|
+
* Different question from `titlebarInsetLeft`, which answers "how far in does
|
|
91
|
+
* this content start": a FLOATING CARD cannot hide its paper and border under
|
|
92
|
+
* the native buttons the way a flat bar's content does, so the stylesheet needs
|
|
93
|
+
* the width itself to move the card. A shell that reports nothing (Windows,
|
|
94
|
+
* Linux, an older macOS build) and a plain browser both fall back to the PWA's
|
|
95
|
+
* own Window Controls Overlay arithmetic, which is `0px` where WCO is inactive.
|
|
96
|
+
*/
|
|
97
|
+
export function shellTrafficInsetLeft(): string {
|
|
98
|
+
if (!overlayTitlebar()) return 'env(titlebar-area-x, 0px)';
|
|
99
|
+
return shellInfo()?.trafficLightInset ?? 'env(titlebar-area-x, 0px)';
|
|
100
|
+
}
|
|
101
|
+
|
|
86
102
|
/**
|
|
87
103
|
* True when the page must draw the window's own controls.
|
|
88
104
|
*
|
package/src/client/main.tsx
CHANGED
|
@@ -9,6 +9,7 @@ import { sanitizeCustomThemes } from '@/shared/lib/theme/custom';
|
|
|
9
9
|
import { initChatWidthMode } from '@/client/hooks/chat/timeline/width-mode';
|
|
10
10
|
import { initSurfaceStyle } from '@/client/hooks/ui/surface-style';
|
|
11
11
|
import { initBorderStyle } from '@/client/hooks/ui/border-style';
|
|
12
|
+
import { initChromeStyle } from '@/client/hooks/ui/chrome-style';
|
|
12
13
|
import { initIconStyle } from '@/client/hooks/ui/icon-style';
|
|
13
14
|
import { primeWindowChrome } from '@/client/hooks/ui/window-chrome';
|
|
14
15
|
import { installAuthFetchBridge, primeAuthState } from '@/client/hooks/ui/auth';
|
|
@@ -18,6 +19,7 @@ import { installScrollbarActivity } from '@/client/lib/scrollbar-activity';
|
|
|
18
19
|
import { installBackDispatcher } from '@/client/lib/native/back';
|
|
19
20
|
import { installPalettePublisher } from '@/client/lib/native/palette';
|
|
20
21
|
import { installShellTransport } from '@/client/lib/shell/transport';
|
|
22
|
+
import { applyTitlebarInset } from '@/client/hooks/ui/titlebar-inset';
|
|
21
23
|
import { installResumeDispatcher } from '@/client/lib/native/resume';
|
|
22
24
|
import { syncNativeNotificationWatch } from '@/client/lib/notifications/watch';
|
|
23
25
|
import { readNotificationGrant } from '@/client/lib/notifications/os';
|
|
@@ -31,6 +33,7 @@ import { restoreLastOpenedSession } from '@/client/hooks/shell/last-opened-sessi
|
|
|
31
33
|
import '@/client/tailwind.css';
|
|
32
34
|
import '@/client/glass.css';
|
|
33
35
|
import '@/client/borders.css';
|
|
36
|
+
import '@/client/floating.css';
|
|
34
37
|
import '@/shared/lib/markdown/katex-fonts.css';
|
|
35
38
|
import '@/shared/lib/markdown/fira-code-fonts.css';
|
|
36
39
|
import '@/shared/lib/fonts/nerd-symbols.css';
|
|
@@ -65,6 +68,7 @@ initChatWidthMode();
|
|
|
65
68
|
// re-render.
|
|
66
69
|
initSurfaceStyle();
|
|
67
70
|
initBorderStyle();
|
|
71
|
+
initChromeStyle();
|
|
68
72
|
initIconStyle();
|
|
69
73
|
|
|
70
74
|
// BEFORE the theme init, which writes the chrome meta: a phone that repainted
|
|
@@ -114,6 +118,13 @@ installPalettePublisher();
|
|
|
114
118
|
// desktop shells, which install `__kabmoCall` themselves.
|
|
115
119
|
installShellTransport();
|
|
116
120
|
|
|
121
|
+
// The native shell floats its own window controls over the page's left edge.
|
|
122
|
+
// A flat header only has to pad its content past them; a floating chrome card
|
|
123
|
+
// has to START there, or its paper and border are painted under the buttons.
|
|
124
|
+
// The width is published as a document property for `floating.css`, before the
|
|
125
|
+
// first render so a floating install never draws the card under the lights.
|
|
126
|
+
applyTitlebarInset();
|
|
127
|
+
|
|
117
128
|
// The native shell calls `window.__kabmoResume()` when its app returns to the
|
|
118
129
|
// foreground. A backgrounded Android WebView fires no `visibilitychange` and
|
|
119
130
|
// gets no `close` for a socket the server reaped, so the shell's own lifecycle
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { describe, expect, test } from 'bun:test';
|
|
7
|
+
import { readClientCss } from '@/test-support/glass-css';
|
|
8
|
+
import { OVERLAY_ENTER_MS, OVERLAY_EXIT_MS, PANEL_EASING, PANEL_TRANSITION_MS } from '@/shared/lib/ui/motion';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The CSS half of the motion table.
|
|
12
|
+
*
|
|
13
|
+
* The durations exist in two places by necessity — a TS timer and a stylesheet
|
|
14
|
+
* the browser reads before any JS runs — so this case is the seam that keeps
|
|
15
|
+
* them from drifting. It also holds the reduced-motion contract: a reader who
|
|
16
|
+
* asked for less motion must not get a 160ms fade from the classes that the
|
|
17
|
+
* components apply unconditionally.
|
|
18
|
+
*/
|
|
19
|
+
describe('motion contract', () => {
|
|
20
|
+
test('the overlay and panel durations are the ones the stylesheet states', async () => {
|
|
21
|
+
const css = await readClientCss('tailwind.css');
|
|
22
|
+
expect(css).toContain(`--presence-enter: ${OVERLAY_ENTER_MS}ms`);
|
|
23
|
+
expect(css).toContain(`--presence-exit: ${OVERLAY_EXIT_MS}ms`);
|
|
24
|
+
expect(css).toContain(`--panel-motion: ${PANEL_TRANSITION_MS}ms`);
|
|
25
|
+
// The panel easing is a literal in both the TS constant and the keyframe.
|
|
26
|
+
expect(css).toContain(PANEL_EASING);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
test('every presence class drops its motion under prefers-reduced-motion', async () => {
|
|
30
|
+
const css = await readClientCss('tailwind.css');
|
|
31
|
+
const reduced = css.slice(css.indexOf('@media (prefers-reduced-motion: reduce)'));
|
|
32
|
+
expect(reduced).toContain('.presence-enter');
|
|
33
|
+
expect(reduced).toContain('.presence-fade');
|
|
34
|
+
expect(reduced).toContain('.presence-leaving');
|
|
35
|
+
});
|
|
36
|
+
});
|
package/src/client/tailwind.css
CHANGED
|
@@ -1330,6 +1330,73 @@ html[data-theme-variant='dark'] .brand-wordmark-glow {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
1332
|
|
|
1333
|
+
/* ---------------------------------------------------------------------------
|
|
1334
|
+
* Presence: one open/close vocabulary for overlays.
|
|
1335
|
+
*
|
|
1336
|
+
* Enter is a keyframe ANIMATION because a node that was just inserted has no
|
|
1337
|
+
* previous value to transition from. Exit is a class the owner keeps for
|
|
1338
|
+
* `OVERLAY_EXIT_MS` through `usePresence`; the enter class must be REMOVED
|
|
1339
|
+
* while leaving, or the animation's `both` fill would outrank the fade.
|
|
1340
|
+
*
|
|
1341
|
+
* The numbers are the TS table in `shared/lib/ui/motion.ts`; `motion.test.ts`
|
|
1342
|
+
* keeps the two equal.
|
|
1343
|
+
* ------------------------------------------------------------------------- */
|
|
1344
|
+
:root {
|
|
1345
|
+
--presence-enter: 160ms;
|
|
1346
|
+
--presence-exit: 160ms;
|
|
1347
|
+
--panel-motion: 200ms;
|
|
1348
|
+
--panel-easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
@keyframes presence-enter {
|
|
1352
|
+
from {
|
|
1353
|
+
opacity: 0;
|
|
1354
|
+
transform: translateY(4px) scale(0.99);
|
|
1355
|
+
}
|
|
1356
|
+
to {
|
|
1357
|
+
opacity: 1;
|
|
1358
|
+
transform: none;
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
@keyframes presence-fade {
|
|
1363
|
+
from {
|
|
1364
|
+
opacity: 0;
|
|
1365
|
+
}
|
|
1366
|
+
to {
|
|
1367
|
+
opacity: 1;
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
.presence-enter {
|
|
1372
|
+
animation: presence-enter var(--presence-enter) var(--panel-easing) both;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
/* A full-viewport root must fade, not scale: a transform on `inset-0` shrinks
|
|
1376
|
+
* the backdrop and exposes a strip of the app behind it. */
|
|
1377
|
+
.presence-fade {
|
|
1378
|
+
animation: presence-fade var(--presence-enter) ease-out both;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
.presence-leaving {
|
|
1382
|
+
opacity: 0;
|
|
1383
|
+
transform: translateY(4px) scale(0.99);
|
|
1384
|
+
transition:
|
|
1385
|
+
opacity var(--presence-exit) ease-in,
|
|
1386
|
+
transform var(--presence-exit) ease-in;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1390
|
+
.presence-enter,
|
|
1391
|
+
.presence-fade {
|
|
1392
|
+
animation: none;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
.presence-leaving {
|
|
1396
|
+
transition: none;
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1333
1400
|
/* Indeterminate progress for a blocking tool call (`wait`).
|
|
1334
1401
|
*
|
|
1335
1402
|
* A `wait` reports a duration but often no completion percentage — a `bash`
|