@kabmo-labs/kabmo 0.59.1 → 0.61.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-ab8wswhm.js} +3 -3
- package/dist/client/static/js/{CsvGrid-39m8pp1c.js → CsvGrid-czssywvz.js} +2 -2
- package/dist/client/static/js/{DocxView-vd99cv12.js → DocxView-ke0dwdmt.js} +3 -3
- package/dist/client/static/js/{DrawioView-6nq4412n.js → DrawioView-a1whhy84.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-cs51gszy.js → HtmlPreview-dr32dwjy.js} +1 -1
- package/dist/client/static/js/ImageView-zf4kh5wp.js +1 -0
- package/dist/client/static/js/LayoutWrapper-dncbzcea.js +2 -0
- package/dist/client/static/js/MergeDiffView-btdx9yb9.js +1 -0
- package/dist/client/static/js/Modal-5cxfw2rv.js +60 -0
- package/dist/client/static/js/{PdfView-0zab721q.js → PdfView-2kdn91f9.js} +1 -1
- package/dist/client/static/js/SessionsView-vbn0nvx4.js +1 -0
- package/dist/client/static/js/{SheetView-2wdn5hkd.js → SheetView-ettr9pdw.js} +9 -9
- package/dist/client/static/js/{SvgPreview-fmrfxd7z.js → SvgPreview-hzcejjry.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-41scfh9v.js → abnfDiagram-O67JEVCF-kdmv4y72.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-qyrwaq0x.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-tszxy2g7.js} +8 -8
- package/dist/client/static/js/c-fn9jz26e.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-rt4z91dx.js → c4Diagram-YGBWAQC7-0ye36hhv.js} +5 -5
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-6bzaq8sd.js → classDiagram-v2-NBCMYWYE-szgk1shv.js} +6 -6
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-z3fhgcba.js → cose-bilkent-JH36ORCC-0s9s4mmv.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-664g28ze.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-2a2f32dv.js → dagre-6A5THRUB-ga4rp1jx.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-wgbyr6b7.js → diagram-22UHCM2B-aagj46ty.js} +15 -15
- package/dist/client/static/js/{diagram-3UASUU5V-5122b41x.js → diagram-3UASUU5V-20qk6whk.js} +2 -2
- package/dist/client/static/js/{diagram-ATOU4E4O-1gt9fr7e.js → diagram-ATOU4E4O-1vg1tfca.js} +2 -2
- package/dist/client/static/js/{diagram-CDSNMT55-v6hs59jb.js → diagram-CDSNMT55-90d6jrqs.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-yey2m5nm.js → diagram-MLGK6HIB-8je4z8m1.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-hg4f3q4d.js → diagram-MPIPVDR6-0kzpexsj.js} +2 -2
- package/dist/client/static/js/{dockerfile-56tfnp5r.js → dockerfile-5nrbr0ef.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-2mhc9aar.js → ebnfDiagram-ZINNZB2B-47yg36zx.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-5hqp6r2d.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-1kysnby9.js → erDiagram-OPXOYQCR-bt9te7r0.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-500fcx2a.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-j4g65rpm.js → ganttDiagram-FUAMR5RP-kzc13swm.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-bjf8aa3j.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-jaf968hx.js → index-0kcnghxn.js} +4 -4
- package/dist/client/static/js/{index-8tzt0dek.js → index-11qn05g9.js} +2 -2
- package/dist/client/static/js/{index-sqyvj03y.js → index-1fmjhm2d.js} +9 -9
- package/dist/client/static/js/{index-42q5gg7t.js → index-24a40rw8.js} +1 -1
- package/dist/client/static/js/{index-np2rfq06.js → index-2dmew334.js} +2 -2
- package/dist/client/static/js/{index-wkxsypj1.js → index-2zhmmtye.js} +2 -2
- package/dist/client/static/js/{index-m62sf9wn.js → index-3x7cbxwq.js} +1 -1
- package/dist/client/static/js/{index-fg0ne74z.js → index-475dc6h9.js} +2 -2
- package/dist/client/static/js/{index-1mkn5fbf.js → index-4vtc4xct.js} +197 -197
- package/dist/client/static/js/{index-spnrx2c0.js → index-5srvxsht.js} +1 -1
- package/dist/client/static/js/{index-tz5ewsza.js → index-653x8zdq.js} +9 -9
- package/dist/client/static/js/index-6c1s0v4b.js +1 -0
- package/dist/client/static/js/{index-hgzf4ask.js → index-776n5n29.js} +5 -5
- package/dist/client/static/js/{index-a70sk36c.js → index-85jfn1fz.js} +2 -2
- package/dist/client/static/js/{index-yrwm437g.js → index-97sw4d9n.js} +2 -2
- package/dist/client/static/js/{index-csxnqgzw.js → index-9g2nzgpx.js} +6 -6
- 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-db6s66jr.js → index-bkn6jtn1.js} +2 -2
- package/dist/client/static/js/{index-kt77dwsg.js → index-bq9f0mxp.js} +7 -7
- package/dist/client/static/js/{index-ndqtff48.js → index-ca6tmamh.js} +2 -2
- package/dist/client/static/js/index-cvm2ha01.js +1 -0
- package/dist/client/static/js/index-d11mbz2q.js +4 -0
- package/dist/client/static/js/{index-3kedv94b.js → index-dabnbvbc.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-fen0x3qh.js +1 -0
- package/dist/client/static/js/{index-vs2y8gxr.js → index-fr6wsqk8.js} +2 -2
- package/dist/client/static/js/{index-xqz7bqcn.js → index-gwgh27h3.js} +87 -87
- package/dist/client/static/js/{index-2h7xh93h.js → index-h7agc069.js} +1 -1
- package/dist/client/static/js/{index-69mnn71v.js → index-hwv7bfxc.js} +2 -2
- package/dist/client/static/js/{index-461ga40v.js → index-hxy1sadd.js} +2 -2
- package/dist/client/static/js/{index-s7p2wdr1.js → index-jz4012t5.js} +1 -1
- package/dist/client/static/js/{index-gajpd90b.js → index-k9yf2txw.js} +2 -2
- package/dist/client/static/js/{index-dw9epydj.js → index-kj70d2q9.js} +2 -2
- package/dist/client/static/js/{index-7enfdvh0.js → index-krdz5vby.js} +2 -2
- package/dist/client/static/js/{index-42k78whj.js → index-kyr612aa.js} +1 -1
- package/dist/client/static/js/{index-fvphmwkf.js → index-m24sebb0.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-pg87cgpy.js +2 -0
- package/dist/client/static/js/{index-r42f3r1p.js → index-q1a40v20.js} +2 -2
- package/dist/client/static/js/{index-jct0jryd.js → index-qccydkze.js} +2 -2
- package/dist/client/static/js/index-qmvstmvh.js +1 -0
- package/dist/client/static/js/{index-pn0ja904.js → index-r38e0rya.js} +2 -2
- package/dist/client/static/js/{index-92h38pwg.js → index-s4j2ghmx.js} +2 -2
- package/dist/client/static/js/index-sr14vwn5.js +2 -0
- 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-qc3de995.js → index-vgcw01yk.js} +1 -1
- package/dist/client/static/js/{index-pr8wsq24.js → index-vn59zz0k.js} +2 -2
- package/dist/client/static/js/{index-hrez92pw.js → index-wf5j0009.js} +7 -7
- package/dist/client/static/js/{index-q3k8r0ms.js → index-wsy6y5em.js} +9 -9
- package/dist/client/static/js/{index-d201jvs9.js → index-xy0m8te9.js} +1 -1
- package/dist/client/static/js/index-y6zbkh4p.js +2 -0
- package/dist/client/static/js/{index-h1xbx74w.js → index-yfcy4cf6.js} +2 -2
- package/dist/client/static/js/{index-y5pkqrga.js → index-z5s9tmj8.js} +2 -2
- package/dist/client/static/js/{index-vs3g6njv.js → index-zr3965k9.js} +1 -1
- package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-7craq9x2.js → infoDiagram-VRGFBTTK-jy5zvvj8.js} +1 -1
- package/dist/client/static/js/ini-g6a5xsaw.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ncjty2re.js → ishikawaDiagram-OU5B5YK6-pfky1nnf.js} +3 -3
- package/dist/client/static/js/java-n596am4c.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-yx222bzt.js → journeyDiagram-ZHPQQLJL-mvaf7rfh.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-hw2xwe6e.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-hsw87hmq.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-fsxysg6f.js → mindmap-definition-NLK3R4M7-wfe4d846.js} +7 -7
- package/dist/client/static/js/one-dark-pro-ckq5capv.js +1 -0
- package/dist/client/static/js/one-light-a908z398.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-cvnmxgst.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-0n3gz7sv.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-9qqh6xvv.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-5f3x3762.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-828s1e5g.js → requirementDiagram-PLB6GJNP-a68bv6kh.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-qjhdt4b0.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-34f3fyvg.js → sankeyDiagram-IPEJSGJF-ry7xcphh.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-mekzzhet.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-gpcramga.js → sizeCapture-INFHLROL-pvc16ame.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-3ytxby83.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-c2zfp416.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-9gm67sq4.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-sgchcs11.js → timeline-definition-EJHVYXUP-xtvv4za2.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-sz6b7bnv.js} +51 -51
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-dncg96ej.js → vennDiagram-UO4OBE2U-56q0qs51.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-xvtyvde9.js} +5 -5
- package/dist/client/static/js/xml-b7824nx0.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-40j1aqyf.js → xychartDiagram-PMCCYNJV-jcs20s84.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 +50 -20
- package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +172 -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,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The left dock's rail, with the toggle rule both desktop columns share.
|
|
8
|
+
*
|
|
9
|
+
* Clicking the view that is already on screen closes the column; any other
|
|
10
|
+
* click selects a view and opens it. The left column can afford the toggle
|
|
11
|
+
* because a closed rail column keeps its rail on screen
|
|
12
|
+
* (`resolveLeftPanelCard`), so the mark that closed it is the way back.
|
|
13
|
+
*
|
|
14
|
+
* The rule is kept out of `onSelectView`: a panel DROPPED on the column also
|
|
15
|
+
* selects through that callback, and dropping the view already on screen must
|
|
16
|
+
* not collapse the column the user just dropped onto.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import { ActivityBar } from '@/client/components/layout/activity-bar';
|
|
20
|
+
import { resolveRailClick } from '@/client/hooks/workspace/panel-rail';
|
|
21
|
+
import type { PanelPeekHandle } from '@/client/hooks/workspace/panel-peek';
|
|
22
|
+
|
|
23
|
+
interface LeftRailProps {
|
|
24
|
+
/** The view the dock shows. */
|
|
25
|
+
view: string;
|
|
26
|
+
/** Whether the column (not just the rail) is on screen. */
|
|
27
|
+
open: boolean;
|
|
28
|
+
onSelectView: (view: string) => void;
|
|
29
|
+
onCollapse: () => void;
|
|
30
|
+
hasActiveContext: boolean;
|
|
31
|
+
activeProjectPath?: string | null;
|
|
32
|
+
/** Hover preview: hovering a mark shows its view until the pointer leaves. */
|
|
33
|
+
peek: PanelPeekHandle;
|
|
34
|
+
/** The view the preview is drawing, when there is one. */
|
|
35
|
+
preview?: string | null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function LeftRail({ view, open, onSelectView, onCollapse, hasActiveContext, activeProjectPath, peek, preview = null }: LeftRailProps) {
|
|
39
|
+
const select = (panel: string) => {
|
|
40
|
+
if (resolveRailClick({ panel, activePanel: view, open }) === 'collapse') {
|
|
41
|
+
onCollapse();
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
onSelectView(panel);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<ActivityBar
|
|
49
|
+
side="left"
|
|
50
|
+
activePanel={view}
|
|
51
|
+
preview={preview}
|
|
52
|
+
onChangePanel={select}
|
|
53
|
+
isPanelOpen={open}
|
|
54
|
+
hasActiveContext={hasActiveContext}
|
|
55
|
+
activeProjectPath={activeProjectPath}
|
|
56
|
+
onPeekIntent={(panel) => peek.intent('left', panel)}
|
|
57
|
+
onPeekIntentCancel={peek.cancelIntent}
|
|
58
|
+
/>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The left column under the `tabs` navigation: its strip, the pinned session
|
|
8
|
+
* list, and the view the strip keeps mounted.
|
|
9
|
+
*
|
|
10
|
+
* The column itself keeps the panel, the top bar, the footer and the modals;
|
|
11
|
+
* this is only the body a tab strip draws, so the column file can stay under
|
|
12
|
+
* the per-file ceiling without moving the strip's rules somewhere they cannot
|
|
13
|
+
* be read beside it.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { RefreshCw } from 'lucide-preact';
|
|
17
|
+
import type { PanelTabsHandle } from '@/client/hooks/workspace/panel-tabs';
|
|
18
|
+
import type { ResolvedPanel } from '@/client/components/workspace/plugin-panel/catalog';
|
|
19
|
+
import { PanelTabsColumn } from '@/client/components/workspace/panel-tabs';
|
|
20
|
+
import { LeftDockView } from '@/client/components/layout/LeftDock';
|
|
21
|
+
import { SESSIONS_VIEW_ID } from '@/shared/lib/workspace/left-dock';
|
|
22
|
+
import type { AgentStreamStatus } from '@/shared/lib/chat/omp/status';
|
|
23
|
+
|
|
24
|
+
interface LeftTabsColumnProps {
|
|
25
|
+
catalog: ResolvedPanel[];
|
|
26
|
+
tabs: PanelTabsHandle;
|
|
27
|
+
/** The stored selection; the strip's own active tab wins over it. */
|
|
28
|
+
view: string;
|
|
29
|
+
onRefresh: () => void;
|
|
30
|
+
onClose: () => void;
|
|
31
|
+
appSettings?: Record<string, any>;
|
|
32
|
+
streamStatus?: AgentStreamStatus;
|
|
33
|
+
refreshKey: number;
|
|
34
|
+
onOpenFile?: (file: unknown) => void;
|
|
35
|
+
sessionId?: string | null;
|
|
36
|
+
activeProjectPath?: string | null;
|
|
37
|
+
hasActiveContext: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function LeftTabsColumn({
|
|
41
|
+
catalog,
|
|
42
|
+
tabs,
|
|
43
|
+
view,
|
|
44
|
+
onRefresh,
|
|
45
|
+
onClose,
|
|
46
|
+
appSettings,
|
|
47
|
+
streamStatus,
|
|
48
|
+
refreshKey,
|
|
49
|
+
onOpenFile,
|
|
50
|
+
sessionId,
|
|
51
|
+
activeProjectPath,
|
|
52
|
+
hasActiveContext,
|
|
53
|
+
}: LeftTabsColumnProps) {
|
|
54
|
+
return (
|
|
55
|
+
<PanelTabsColumn
|
|
56
|
+
catalog={catalog}
|
|
57
|
+
tabs={tabs}
|
|
58
|
+
pinned={SESSIONS_VIEW_ID}
|
|
59
|
+
homeTitle="Panel kiri"
|
|
60
|
+
actions={
|
|
61
|
+
<button
|
|
62
|
+
type="button"
|
|
63
|
+
onClick={onRefresh}
|
|
64
|
+
title="Muat ulang view"
|
|
65
|
+
aria-label="Muat ulang view"
|
|
66
|
+
className="flex h-7 w-7 cursor-pointer items-center justify-center rounded-md text-ink/50 transition-colors hover:bg-ink/5 hover:text-ink"
|
|
67
|
+
>
|
|
68
|
+
<RefreshCw size={13} />
|
|
69
|
+
</button>
|
|
70
|
+
}
|
|
71
|
+
>
|
|
72
|
+
<LeftDockView
|
|
73
|
+
className="w-full h-full"
|
|
74
|
+
// The strip's own selection, not the stored one it syncs into: reading
|
|
75
|
+
// `view` here would make the body lag the chip by one render, which is
|
|
76
|
+
// visible as a chip that looks selected over the previous view.
|
|
77
|
+
activeView={tabs.active ?? view}
|
|
78
|
+
onClose={onClose}
|
|
79
|
+
appSettings={appSettings}
|
|
80
|
+
streamStatus={streamStatus}
|
|
81
|
+
refreshKey={refreshKey}
|
|
82
|
+
onRefresh={onRefresh}
|
|
83
|
+
{...(onOpenFile ? { onOpenFile } : {})}
|
|
84
|
+
sessionId={sessionId ?? null}
|
|
85
|
+
{...(activeProjectPath ? { rootPath: activeProjectPath } : {})}
|
|
86
|
+
hasActiveContext={hasActiveContext}
|
|
87
|
+
tabsMode
|
|
88
|
+
/>
|
|
89
|
+
</PanelTabsColumn>
|
|
90
|
+
);
|
|
91
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { useRef } from 'preact/hooks';
|
|
2
|
-
import { Separator } from '@/client/components/layout/desktop-layout/resizer';
|
|
2
|
+
import { Separator } from '@/client/components/layout/desktop-layout/resizer/separator';
|
|
3
3
|
import { usePointerHover } from '@/client/hooks/ui/pointer-hover';
|
|
4
|
+
import { usePrefersReducedMotion } from '@/client/hooks/ui/media-query';
|
|
5
|
+
import { PANEL_EASING, PANEL_TRANSITION_MS } from '@/shared/lib/ui/motion';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* Hairline drag handle shared by both resizable groups in the desktop layout.
|
|
@@ -11,17 +13,31 @@ import { usePointerHover } from '@/client/hooks/ui/pointer-hover';
|
|
|
11
13
|
* transition moves the separator under a stationary cursor). The reported
|
|
12
14
|
* symptom was a line that stayed lit until the pointer was moved back over it
|
|
13
15
|
* and away again.
|
|
16
|
+
*
|
|
17
|
+
* `open` is the panel it separates: closed, the handle collapses to 0px over
|
|
18
|
+
* the same duration as the panel instead of unmounting in one frame. A 3px
|
|
19
|
+
* column disappearing before the panel has moved was a small but visible jump
|
|
20
|
+
* in every close.
|
|
14
21
|
*/
|
|
15
|
-
export function ResizeHandle() {
|
|
22
|
+
export function ResizeHandle({ open = true }: { open?: boolean }) {
|
|
16
23
|
const hostRef = useRef<HTMLDivElement | null>(null);
|
|
17
24
|
const hovered = usePointerHover(hostRef);
|
|
25
|
+
const reducedMotion = usePrefersReducedMotion();
|
|
26
|
+
const duration = reducedMotion ? 0 : PANEL_TRANSITION_MS;
|
|
18
27
|
|
|
19
28
|
return (
|
|
20
29
|
<Separator
|
|
21
30
|
hostRef={hostRef}
|
|
22
|
-
className="relative
|
|
31
|
+
className="relative overflow-hidden outline-none group flex justify-center cursor-col-resize z-10"
|
|
32
|
+
style={{
|
|
33
|
+
width: open ? 3 : 0,
|
|
34
|
+
pointerEvents: open ? undefined : 'none',
|
|
35
|
+
transition: duration > 0 ? `width ${duration}ms ${PANEL_EASING}` : 'none',
|
|
36
|
+
}}
|
|
23
37
|
>
|
|
24
38
|
<div
|
|
39
|
+
data-handle-line=""
|
|
40
|
+
data-hovered={hovered ? '' : undefined}
|
|
25
41
|
className={`h-full transition-all group-active:bg-ink/60 group-active:w-[3px] ${
|
|
26
42
|
hovered ? 'w-[3px] bg-ink/40' : 'w-[1px] bg-ink/10'
|
|
27
43
|
}`}
|
|
@@ -29,6 +29,7 @@ import { RightColumn } from '@/client/components/layout/desktop-layout/RightColu
|
|
|
29
29
|
import { SessionStateProvider } from '@/client/components/common/session-state-provider/index';
|
|
30
30
|
import { useSessionState } from '@/client/hooks/workspace/session-state';
|
|
31
31
|
import { useRightOpenRequest, type RightOpenRequest } from '@/client/hooks/workspace/right-open-request';
|
|
32
|
+
import type { PanelPeekHandle } from '@/client/hooks/workspace/panel-peek';
|
|
32
33
|
import type { ResolvedPanel } from '@/client/components/workspace/plugin-panel/catalog';
|
|
33
34
|
import {
|
|
34
35
|
getSessionState,
|
|
@@ -64,6 +65,16 @@ function panel(id: string, label: string, builtin: boolean): ResolvedPanel {
|
|
|
64
65
|
|
|
65
66
|
const CATALOG = [panel(FILES, 'Files', true), panel(STATS, 'Resources', false)];
|
|
66
67
|
|
|
68
|
+
/** No preview in these cases; the column still requires the handle. */
|
|
69
|
+
const PEEK: PanelPeekHandle = {
|
|
70
|
+
peek: null,
|
|
71
|
+
intent: () => {},
|
|
72
|
+
cancelIntent: () => {},
|
|
73
|
+
hold: () => {},
|
|
74
|
+
release: () => {},
|
|
75
|
+
clear: () => {},
|
|
76
|
+
};
|
|
77
|
+
|
|
67
78
|
/**
|
|
68
79
|
* The desktop layout's own wiring, reduced to what the two effects read: the
|
|
69
80
|
* restored selection, its request handle, and the rail's toggle-on-select rule.
|
|
@@ -104,6 +115,7 @@ function Harness() {
|
|
|
104
115
|
navStyle: 'tabs',
|
|
105
116
|
onSelectPanel,
|
|
106
117
|
openRequest: handle.request,
|
|
118
|
+
peek: PEEK,
|
|
107
119
|
}) },
|
|
108
120
|
);
|
|
109
121
|
}
|
|
@@ -202,3 +214,51 @@ describe('an explicit open request beside the strip mirror', () => {
|
|
|
202
214
|
expect(getSessionValue('s-b', 'layout.activeRightPanel')).toBeUndefined();
|
|
203
215
|
});
|
|
204
216
|
});
|
|
217
|
+
|
|
218
|
+
describe('the right dock is inside the right panel card', () => {
|
|
219
|
+
test('a closed column keeps the rail, and the rail lives in the same card', async () => {
|
|
220
|
+
await act(async () => {
|
|
221
|
+
render(
|
|
222
|
+
h(SessionStateProvider, {
|
|
223
|
+
sessionId: 's-a',
|
|
224
|
+
children: h(Group, {
|
|
225
|
+
orientation: 'horizontal',
|
|
226
|
+
children: h(RightColumn, {
|
|
227
|
+
panelRef: { current: null },
|
|
228
|
+
open: false,
|
|
229
|
+
width: 58,
|
|
230
|
+
minWidth: 58,
|
|
231
|
+
maxWidth: 58,
|
|
232
|
+
catalog: CATALOG,
|
|
233
|
+
shownPanel: FILES,
|
|
234
|
+
selectedPanel: FILES,
|
|
235
|
+
activePanelFound: true,
|
|
236
|
+
hasActiveContext: false,
|
|
237
|
+
refreshKey: 0,
|
|
238
|
+
onRefresh: () => {},
|
|
239
|
+
onOpenFile: () => {},
|
|
240
|
+
onClose: () => {},
|
|
241
|
+
navStyle: 'rail',
|
|
242
|
+
rail: h('nav', { 'data-test-rail': '' }),
|
|
243
|
+
peek: PEEK,
|
|
244
|
+
}),
|
|
245
|
+
}),
|
|
246
|
+
}),
|
|
247
|
+
container,
|
|
248
|
+
);
|
|
249
|
+
});
|
|
250
|
+
await drain();
|
|
251
|
+
|
|
252
|
+
const panel = container.querySelector('[data-panel-id="right-panel"]');
|
|
253
|
+
expect(panel?.querySelector('[data-float-card="right"]')).toBeTruthy();
|
|
254
|
+
expect(panel?.querySelector('[data-test-rail]')).toBeTruthy();
|
|
255
|
+
// Rail-only, not collapsed to nothing: the rail is the way back into the
|
|
256
|
+
// column, and collapsing the panel would hide the control that reopens it.
|
|
257
|
+
expect(panel?.getAttribute('data-panel-collapsed')).toBeNull();
|
|
258
|
+
// The controls bar is not drawn in a rail-only column, but its SLOT is: the
|
|
259
|
+
// rail starts below the title row instead of filling it.
|
|
260
|
+
expect(panel?.querySelector('[data-float-bar="slot"]')).toBeTruthy();
|
|
261
|
+
// The body is not drawn beside the rail when the column is closed.
|
|
262
|
+
expect(panel?.querySelector('[data-float-card="right"] > div')?.className).toContain('hidden');
|
|
263
|
+
});
|
|
264
|
+
});
|
|
@@ -33,6 +33,7 @@ import type { ReactNode } from 'preact/compat';
|
|
|
33
33
|
import type { PanelImperativeHandle } from '@/client/components/layout/desktop-layout/resizer';
|
|
34
34
|
import { Panel } from '@/client/components/layout/desktop-layout/resizer';
|
|
35
35
|
import { PanelSuspense } from '@/client/components/layout/desktop-layout/PanelSuspense';
|
|
36
|
+
import { BarSlot } from '@/client/components/layout/desktop-layout/BarSlot';
|
|
36
37
|
import { PluginPanelBody } from '@/client/components/workspace/plugin-panel/resolve';
|
|
37
38
|
import { PanelHostProvider } from '@kabmo-labs/kabmo-ui';
|
|
38
39
|
import type { PanelBodyProps } from '@/client/components/workspace/plugin-panel/resolve';
|
|
@@ -43,8 +44,11 @@ import { useLeftDock } from '@/client/hooks/workspace/left-dock';
|
|
|
43
44
|
import { usePanelTabs } from '@/client/hooks/workspace/panel-tabs';
|
|
44
45
|
import { useRevealEdge, useRevealPanelTab } from '@/client/hooks/workspace/panel-tabs-reveal';
|
|
45
46
|
import { useSessionStateContext } from '@/client/hooks/workspace/session-state/context';
|
|
47
|
+
import { usePresence } from '@/client/hooks/ui/presence';
|
|
48
|
+
import { PANEL_TRANSITION_MS } from '@/shared/lib/ui/motion';
|
|
46
49
|
import { getSessionValue } from '@/shared/lib/workspace/session-state/store';
|
|
47
50
|
import { resolvePanelNav, type PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
|
|
51
|
+
import type { PanelPeekHandle } from '@/client/hooks/workspace/panel-peek';
|
|
48
52
|
|
|
49
53
|
export interface RightColumnProps {
|
|
50
54
|
panelRef: RefObject<PanelImperativeHandle | null>;
|
|
@@ -82,10 +86,29 @@ export interface RightColumnProps {
|
|
|
82
86
|
* indistinguishable from a user's pick.
|
|
83
87
|
*/
|
|
84
88
|
openRequest?: { panelKey: string; nonce: number } | null;
|
|
89
|
+
/** A view a rail hover is previewing, or null. Never replaces the stored pick. */
|
|
90
|
+
preview?: string | null;
|
|
91
|
+
/** Hover preview state and gestures; leaving the card closes it. */
|
|
92
|
+
peek: PanelPeekHandle;
|
|
85
93
|
/** The strip's trailing actions (refresh, collapse). */
|
|
86
94
|
actions?: ReactNode;
|
|
87
95
|
/** Width transition duration; 0 while the group itself is resizing. */
|
|
88
96
|
transitionMs?: number;
|
|
97
|
+
/**
|
|
98
|
+
* The column's activity rail, rendered INSIDE this panel's card so the dock
|
|
99
|
+
* and the panel are one floating surface. Null in `tabs` mode, where the
|
|
100
|
+
* strip is the navigation; a closed panel still draws the rail, because the
|
|
101
|
+
* rail is the way back (the card collapses to the rail's own width instead of
|
|
102
|
+
* to zero in that state).
|
|
103
|
+
*/
|
|
104
|
+
rail?: ReactNode;
|
|
105
|
+
/**
|
|
106
|
+
* The controls bar, spanning THIS panel's width. Null while the column is
|
|
107
|
+
* closed to the rail, where a full-width bar would have nothing to name; the
|
|
108
|
+
* bar's SLOT is still reserved (`BarSlot`) so the closed rail starts below
|
|
109
|
+
* the title row instead of filling it.
|
|
110
|
+
*/
|
|
111
|
+
topBar?: ReactNode;
|
|
89
112
|
}
|
|
90
113
|
|
|
91
114
|
export function RightColumn({
|
|
@@ -107,8 +130,12 @@ export function RightColumn({
|
|
|
107
130
|
navStyle,
|
|
108
131
|
onSelectPanel,
|
|
109
132
|
openRequest,
|
|
133
|
+
preview,
|
|
134
|
+
peek,
|
|
110
135
|
actions,
|
|
111
136
|
transitionMs,
|
|
137
|
+
rail,
|
|
138
|
+
topBar,
|
|
112
139
|
}: RightColumnProps) {
|
|
113
140
|
// The right column is a destination too: a panel dragged from the left rail
|
|
114
141
|
// must land where it was dropped, not bounce back because only the 44px rail
|
|
@@ -118,7 +145,6 @@ export function RightColumn({
|
|
|
118
145
|
const { sessionId } = useSessionStateContext();
|
|
119
146
|
const style = resolvePanelNav(navStyle);
|
|
120
147
|
const tabsMode = style === 'tabs';
|
|
121
|
-
|
|
122
148
|
// Only read in `tabs` mode, and the hook is cheap: `known` is the catalog's
|
|
123
149
|
// own ids, so a panel that is switched off or uninstalled drops out of a
|
|
124
150
|
// stored tab instead of rendering an empty body.
|
|
@@ -146,6 +172,15 @@ export function RightColumn({
|
|
|
146
172
|
// In tabs mode the OPEN set is the mounted set; under the rail it is the
|
|
147
173
|
// whole catalog (minus plugins, which were never kept mounted).
|
|
148
174
|
const openIds = new Set(tabsState.tabs);
|
|
175
|
+
// A hover preview only exists under the rail: `tabs` has no marks to hover.
|
|
176
|
+
// It draws its view in place of the stored one; `active` still requires the
|
|
177
|
+
// column to be OPEN (so a preview never takes focus or a realtime stream),
|
|
178
|
+
// while `enabled` follows the drawn view so the previewed view can read.
|
|
179
|
+
const previewView = !tabsMode && preview != null && known.has(preview) ? preview : null;
|
|
180
|
+
// The body stays on screen for the width transition that closes the column:
|
|
181
|
+
// `hidden` on the first frame turned every close into "content gone, empty
|
|
182
|
+
// card slides away". It is still unmounted from paint once the motion ends.
|
|
183
|
+
const bodyPresence = usePresence(open || previewView !== null, PANEL_TRANSITION_MS);
|
|
149
184
|
// The strip owns the selection in tabs mode, and the host's stored
|
|
150
185
|
// `layout.activeRightPanel` follows it: other readers (the navbar readout, a
|
|
151
186
|
// plugin's `omp:open-panel`) still resolve a view through that key, so it must
|
|
@@ -153,7 +188,7 @@ export function RightColumn({
|
|
|
153
188
|
// On the home page NO tab is on screen: falling back to `shownPanel` here
|
|
154
189
|
// would mark a view active behind the catalog, and a view that re-reads on
|
|
155
190
|
// activation would fetch for a page nobody is looking at.
|
|
156
|
-
const effectivePanel = tabsMode ? (tabsState.home ? null : tabsState.active) : shownPanel;
|
|
191
|
+
const effectivePanel = previewView ?? (tabsMode ? (tabsState.home ? null : tabsState.active) : shownPanel);
|
|
157
192
|
const { open: openTab } = tabsState;
|
|
158
193
|
/**
|
|
159
194
|
* Each request is applied ONCE, tracked by its nonce.
|
|
@@ -208,7 +243,6 @@ export function RightColumn({
|
|
|
208
243
|
if (!known.has(requestKey)) return;
|
|
209
244
|
openTab(requestKey);
|
|
210
245
|
}, [tabsMode, requestKey, requestNonce, openTab, known]);
|
|
211
|
-
|
|
212
246
|
const renderStack = () => (
|
|
213
247
|
<PanelSuspense>
|
|
214
248
|
{catalog.map((panel) => {
|
|
@@ -259,38 +293,53 @@ export function RightColumn({
|
|
|
259
293
|
{/* The selection names a panel that is switched off, uninstalled, or
|
|
260
294
|
whose bundle has not loaded — a notice, never a blank column. In tabs
|
|
261
295
|
mode the home page IS the answer, so the notice is the rail's. */}
|
|
262
|
-
{activePanelFound || (tabsMode && tabsState.home) ? null : (
|
|
296
|
+
{activePanelFound || previewView !== null || (tabsMode && tabsState.home) ? null : (
|
|
263
297
|
<div data-panel-chrome="" className="glass-chrome w-full h-full">
|
|
264
298
|
<PluginPanelBody panelKey={selectedPanel} />
|
|
265
299
|
</div>
|
|
266
300
|
)}
|
|
267
301
|
</PanelSuspense>
|
|
268
302
|
);
|
|
269
|
-
|
|
270
303
|
return (
|
|
271
|
-
<Panel panelRef={panelRef} id="right-panel" defaultSize={width} minSize={minWidth} maxSize={maxWidth} collapsed={!open} transitionMs={transitionMs}>
|
|
272
|
-
<div
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
304
|
+
<Panel panelRef={panelRef} id="right-panel" defaultSize={width} minSize={minWidth} maxSize={maxWidth} collapsed={!open && !rail} transitionMs={transitionMs}>
|
|
305
|
+
<div data-float-stack className="flex h-full w-full flex-col">
|
|
306
|
+
{topBar ?? <BarSlot />}
|
|
307
|
+
<div
|
|
308
|
+
data-float-card="right"
|
|
309
|
+
className="flex min-h-0 w-full flex-1"
|
|
310
|
+
// The rail and the body share this card, so moving from a mark into
|
|
311
|
+
// the previewed view never leaves it. Only leaving the whole card
|
|
312
|
+
// closes the preview.
|
|
313
|
+
onPointerEnter={() => peek.hold()}
|
|
314
|
+
onPointerLeave={() => peek.release('right')}
|
|
315
|
+
>
|
|
316
|
+
<div
|
|
317
|
+
className={`relative flex-1 min-w-0 h-full ${bodyPresence.mounted ? '' : 'hidden'} ${rightDrop.active ? 'ring-1 ring-inset ring-ink/30' : ''}`}
|
|
318
|
+
inert={!bodyPresence.mounted}
|
|
319
|
+
aria-hidden={bodyPresence.mounted ? undefined : true}
|
|
320
|
+
{...rightDrop.dropProps}
|
|
321
|
+
>
|
|
322
|
+
{tabsMode ? (
|
|
323
|
+
<PanelTabsColumn
|
|
324
|
+
catalog={catalog}
|
|
325
|
+
/* The strip drives the HOOK, and the effect above mirrors the hook
|
|
326
|
+
into the stored selection. Overriding `select` with
|
|
327
|
+
`onSelectPanel` here — which is what the first version did — left
|
|
328
|
+
the hook believing the old tab was still current, so a keyboard
|
|
329
|
+
move focused the neighbour chip while the body stayed on the
|
|
330
|
+
previous view. */
|
|
331
|
+
tabs={tabsState}
|
|
332
|
+
homeTitle="Panel kanan"
|
|
333
|
+
{...(actions !== undefined ? { actions } : {})}
|
|
334
|
+
>
|
|
335
|
+
{renderStack()}
|
|
336
|
+
</PanelTabsColumn>
|
|
337
|
+
) : (
|
|
338
|
+
renderStack()
|
|
339
|
+
)}
|
|
340
|
+
</div>
|
|
341
|
+
{rail}
|
|
342
|
+
</div>
|
|
294
343
|
</div>
|
|
295
344
|
</Panel>
|
|
296
345
|
);
|