@band-app/server 0.38.0 → 0.40.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/assets/{TerminalPanel-CddLlPAX.js → TerminalPanel-DrtKaYON.js} +1 -1
- package/dist/client/assets/_basePickBy-DGHCO-ZW.js +1 -0
- package/dist/client/assets/_baseUniq-D8BEa_IM.js +1 -0
- package/dist/client/assets/{arc-D72GLVnK.js → arc-D8yZu8I7.js} +1 -1
- package/dist/client/assets/{architectureDiagram-VXUJARFQ-CtL_pV38.js → architectureDiagram-VXUJARFQ-7JpFSyZX.js} +1 -1
- package/dist/client/assets/{blockDiagram-VD42YOAC-DqyIIG7r.js → blockDiagram-VD42YOAC-ChakkcKz.js} +5 -5
- package/dist/client/assets/{c4Diagram-YG6GDRKO-nrzjw8-Z.js → c4Diagram-YG6GDRKO-DR6oh719.js} +1 -1
- package/dist/client/assets/channel-CU4TXkSr.js +1 -0
- package/dist/client/assets/{chunk-4BX2VUAB-CxMLZjJR.js → chunk-4BX2VUAB-BrKcZBJe.js} +1 -1
- package/dist/client/assets/{chunk-55IACEB6-mmYFV3uk.js → chunk-55IACEB6-g8iJNcs1.js} +1 -1
- package/dist/client/assets/{chunk-B4BG7PRW-D5v9xl9X.js → chunk-B4BG7PRW-CXRqRUyv.js} +4 -4
- package/dist/client/assets/{chunk-DI55MBZ5-D265fj7U.js → chunk-DI55MBZ5-dR3Sz_G9.js} +3 -3
- package/dist/client/assets/{chunk-FMBD7UC4-Dup-9g-C.js → chunk-FMBD7UC4-D42DXQRx.js} +1 -1
- package/dist/client/assets/{chunk-QN33PNHL-C-rWtyk3.js → chunk-QN33PNHL-BL5ZZclY.js} +1 -1
- package/dist/client/assets/{chunk-QZHKN3VN-DFPCO41y.js → chunk-QZHKN3VN-UGgvPPFj.js} +1 -1
- package/dist/client/assets/{chunk-TZMSLE5B-DsmBPBDj.js → chunk-TZMSLE5B-BjzF5OZ0.js} +1 -1
- package/dist/client/assets/classDiagram-2ON5EDUG-BBeWLYh5.js +1 -0
- package/dist/client/assets/classDiagram-v2-WZHVMYZB-BBeWLYh5.js +1 -0
- package/dist/client/assets/clone-BxiDj17v.js +1 -0
- package/dist/client/assets/{cose-bilkent-S5V4N54A-CCWn4YDT.js → cose-bilkent-S5V4N54A-DV1aZ1hV.js} +1 -1
- package/dist/client/assets/{dagre-6UL2VRFP-CnSoXX5n.js → dagre-6UL2VRFP-DHjXYkkW.js} +2 -2
- package/dist/client/assets/{diagram-PSM6KHXK-D9Zqn5kT.js → diagram-PSM6KHXK-C2zcTEaQ.js} +1 -1
- package/dist/client/assets/{diagram-QEK2KX5R-B22XMhhn.js → diagram-QEK2KX5R-0uByeTJB.js} +2 -2
- package/dist/client/assets/diagram-S2PKOQOG-eJgpEG4S.js +24 -0
- package/dist/client/assets/{erDiagram-Q2GNP2WA-Ctgsmx_B.js → erDiagram-Q2GNP2WA-Bw7_JMGa.js} +3 -3
- package/dist/client/assets/{flowDiagram-NV44I4VS-BCt5r11U.js → flowDiagram-NV44I4VS-wI9CFTNb.js} +3 -3
- package/dist/client/assets/{ganttDiagram-JELNMOA3-P1o9TA7p.js → ganttDiagram-JELNMOA3-BRTnLx-g.js} +4 -4
- package/dist/client/assets/gitGraphDiagram-V2S2FVAM-BiHDndvF.js +65 -0
- package/dist/client/assets/{graph-HCBV9xMB.js → graph-C6mQGEDl.js} +1 -1
- package/dist/client/assets/{highlighted-body-B3W2YXNL-Gaqu4_Bi.js → highlighted-body-B3W2YXNL-GvDGLnQT.js} +1 -1
- package/dist/client/assets/{index-BR7y3Gjm.js → index-BenksDOU.js} +1 -1
- package/dist/client/assets/{index-CnoZP7Fs.js → index-BiRXyYMw.js} +1 -1
- package/dist/client/assets/{index-D854qjw6.js → index-C57Yiv83.js} +1 -1
- package/dist/client/assets/{index-B9QUYOAR.js → index-CPMbBmMn.js} +1 -1
- package/dist/client/assets/{index-B8S7APPC.js → index-CS5Q9htl.js} +1 -1
- package/dist/client/assets/{index-BsNWuo_5.js → index-CVjJaByl.js} +1 -1
- package/dist/client/assets/{index-CfHnPAjk.js → index-DC8R1xuL.js} +1 -1
- package/dist/client/assets/{index-Bl-ZW84y.js → index-DMbRzTUS.js} +1 -1
- package/dist/client/assets/{index-BQlNjJ1Y.js → index-DYNGY2MP.js} +1 -1
- package/dist/client/assets/{index-C6aNqpcf.js → index-DaMOXxYx.js} +1 -1
- package/dist/client/assets/{index-DIJ2_F70.js → index-eJOaTgGF.js} +1 -1
- package/dist/client/assets/{index-Gh5XAQRT.js → index-nunY0E9D.js} +1 -1
- package/dist/client/assets/{index-D05HI19D.js → index-stibCY5q.js} +1 -1
- package/dist/client/assets/{infoDiagram-HS3SLOUP-CmsTlZB8.js → infoDiagram-HS3SLOUP-BWLnQij_.js} +1 -1
- package/dist/client/assets/{journeyDiagram-XKPGCS4Q-D-GI9JIi.js → journeyDiagram-XKPGCS4Q-DrNPultl.js} +3 -3
- package/dist/client/assets/{kanban-definition-3W4ZIXB7-55Qs5mRI.js → kanban-definition-3W4ZIXB7-CSLD0nfh.js} +8 -8
- package/dist/client/assets/{layout-B2VqN6hx.js → layout-CuWU5Et-.js} +1 -1
- package/dist/client/assets/main-AZXY-dek.css +1 -0
- package/dist/client/assets/{main-BYGBqn5C.js → main-D5ouT8tL.js} +276 -276
- package/dist/client/assets/{mindmap-definition-VGOIOE7T-5E-mnLiw.js → mindmap-definition-VGOIOE7T-DZQ26uq4.js} +1 -1
- package/dist/client/assets/{pieDiagram-ADFJNKIX--iuEHqnb.js → pieDiagram-ADFJNKIX-COuz8LI3.js} +2 -2
- package/dist/client/assets/{quadrantDiagram-AYHSOK5B-DuZPB3Et.js → quadrantDiagram-AYHSOK5B-B-xzTy04.js} +1 -1
- package/dist/client/assets/{requirementDiagram-UZGBJVZJ-CZiE6M78.js → requirementDiagram-UZGBJVZJ-C_AdjvlC.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-TZEHDZUN-Dp81iX-I.js → sankeyDiagram-TZEHDZUN-BB5aXeyD.js} +4 -4
- package/dist/client/assets/{sequenceDiagram-WL72ISMW-BHT8ZcM2.js → sequenceDiagram-WL72ISMW-DNJdTt12.js} +1 -1
- package/dist/client/assets/{stateDiagram-FKZM4ZOC-15v8J55n.js → stateDiagram-FKZM4ZOC-C5Y7BEGF.js} +1 -1
- package/dist/client/assets/stateDiagram-v2-4FDKWEC3-qOSeoZm6.js +1 -0
- package/dist/client/assets/{timeline-definition-IT6M3QCI-C4Y7a-dk.js → timeline-definition-IT6M3QCI-7MGo2ksO.js} +3 -3
- package/dist/client/assets/{treemap-GDKQZRPO-1nZ3vFhH.js → treemap-GDKQZRPO-2BJ8GXcc.js} +1 -1
- package/dist/client/assets/workspace._workspaceId-C0lEYooW.js +1 -0
- package/dist/client/assets/{workspace._workspaceId-BflC9g6E.js → workspace._workspaceId-DBM_dSnI.js} +1 -1
- package/dist/client/assets/{xychartDiagram-PRI3JC2R-Cdm6l1QL.js → xychartDiagram-PRI3JC2R-Cbxte9x_.js} +1 -1
- package/dist/openapi.json +29 -0
- package/dist/server/assets/{TerminalPanel-DFfLVpnD.js → TerminalPanel-DccGru9o.js} +1 -1
- package/dist/server/assets/{_basePickBy-BJp7LAxW.js → _basePickBy-BUw_Xxzu.js} +2 -2
- package/dist/server/assets/{_baseUniq-C6AsZ3Xv.js → _baseUniq-DY9br9oV.js} +1 -1
- package/dist/server/assets/_tanstack-start-manifest_v-RZXV2dcm.js +4 -0
- package/dist/server/assets/{arc-CdG8tMD4.js → arc-B-W20kMs.js} +1 -1
- package/dist/server/assets/{architecture-7HQA4BMR-DAiqr3_e.js → architecture-7HQA4BMR-C0Yu9iEN.js} +6 -6
- package/dist/server/assets/{architectureDiagram-VXUJARFQ-B5KfJFud.js → architectureDiagram-VXUJARFQ-2oVI7pTX.js} +6 -6
- package/dist/server/assets/{blockDiagram-VD42YOAC-DHqCP2b4.js → blockDiagram-VD42YOAC-Dou49xK1.js} +6 -6
- package/dist/server/assets/{c4Diagram-YG6GDRKO-BxUADYG0.js → c4Diagram-YG6GDRKO-kqT_WWjt.js} +2 -2
- package/dist/server/assets/{channel-AccynRMn.js → channel-B7cfGn-C.js} +1 -1
- package/dist/server/assets/{chunk-4BX2VUAB-Dr1erjpr.js → chunk-4BX2VUAB-Bixn26WI.js} +1 -1
- package/dist/server/assets/{chunk-55IACEB6-Bp9fy_-K.js → chunk-55IACEB6-BZ4ee2JZ.js} +1 -1
- package/dist/server/assets/{chunk-B4BG7PRW-DIekCOU0.js → chunk-B4BG7PRW-DdQ-HHvI.js} +4 -4
- package/dist/server/assets/{chunk-DI55MBZ5-DdsSqZAU.js → chunk-DI55MBZ5-BoIebT5e.js} +3 -3
- package/dist/server/assets/{chunk-FMBD7UC4-yK1qgpi7.js → chunk-FMBD7UC4-CqprTOnj.js} +1 -1
- package/dist/server/assets/{chunk-QN33PNHL-BbG6vBLZ.js → chunk-QN33PNHL-DSvs7erO.js} +1 -1
- package/dist/server/assets/{chunk-QZHKN3VN-x8T6uBe6.js → chunk-QZHKN3VN-DgfqNdhB.js} +1 -1
- package/dist/server/assets/{chunk-TZMSLE5B-DLaeAZ2i.js → chunk-TZMSLE5B-RNAM1O1Q.js} +1 -1
- package/dist/server/assets/{classDiagram-v2-WZHVMYZB-Dm_cGVOP.js → classDiagram-2ON5EDUG-D7A3Setp.js} +5 -5
- package/dist/server/assets/{classDiagram-2ON5EDUG-Dm_cGVOP.js → classDiagram-v2-WZHVMYZB-D7A3Setp.js} +5 -5
- package/dist/server/assets/{clone-CORmWwEs.js → clone-DGwN27S2.js} +1 -1
- package/dist/server/assets/{cose-bilkent-S5V4N54A-BfBG7OY2.js → cose-bilkent-S5V4N54A-B2q2t6Gg.js} +1 -1
- package/dist/server/assets/{dagre-6UL2VRFP-LXGdLIDl.js → dagre-6UL2VRFP-Dw21q60I.js} +6 -6
- package/dist/server/assets/{diagram-PSM6KHXK-Dq-nGhg0.js → diagram-PSM6KHXK-BLbZ9hwr.js} +7 -7
- package/dist/server/assets/{diagram-QEK2KX5R-rd29zHZp.js → diagram-QEK2KX5R-CWELXEKd.js} +6 -6
- package/dist/server/assets/{diagram-S2PKOQOG-pULTY82u.js → diagram-S2PKOQOG-CZrWIWRA.js} +6 -6
- package/dist/server/assets/{erDiagram-Q2GNP2WA-BB0T0Xnn.js → erDiagram-Q2GNP2WA-DReM-c43.js} +4 -4
- package/dist/server/assets/{flowDiagram-NV44I4VS-DpODroRz.js → flowDiagram-NV44I4VS-zt4RX_BR.js} +5 -5
- package/dist/server/assets/{ganttDiagram-JELNMOA3-Cv3UNeb8.js → ganttDiagram-JELNMOA3-3eThn452.js} +93 -93
- package/dist/server/assets/{gitGraph-G5XIXVHT-Gi_FOXtP.js → gitGraph-G5XIXVHT-BHI85wL6.js} +6 -6
- package/dist/server/assets/{gitGraphDiagram-V2S2FVAM-BJPLdwXn.js → gitGraphDiagram-V2S2FVAM-BlNGJv0e.js} +7 -7
- package/dist/server/assets/{graph-DZvAvEGU.js → graph-D5mjCFvr.js} +2 -2
- package/dist/server/assets/{highlighted-body-B3W2YXNL-BpysDJ-x.js → highlighted-body-B3W2YXNL-CURDXDPn.js} +1 -1
- package/dist/server/assets/{index-ChLbrNFl.js → index-1pIHARSA.js} +1 -1
- package/dist/server/assets/{index-CKDVINR-.js → index-C4ziY3SA.js} +1 -1
- package/dist/server/assets/{index-D1exxtRP.js → index-CGhLA9NA.js} +1 -1
- package/dist/server/assets/{index-BN_8r_Ld.js → index-CHKqaIvk.js} +1 -1
- package/dist/server/assets/{index-1E-3f8Qq.js → index-CPSlh6Sr.js} +1 -1
- package/dist/server/assets/{index-C3lgs4G4.js → index-DQm_W84Y.js} +1 -1
- package/dist/server/assets/{index-BERXawHP.js → index-DrqpVIMj.js} +1 -1
- package/dist/server/assets/{index-CzlCSrfR.js → index-H-8bqYvF.js} +1 -1
- package/dist/server/assets/{index-CSCKMAKA.js → index-UtwC66_K.js} +1 -1
- package/dist/server/assets/{index-ChPBr3vZ.js → index-iwBaahmO.js} +1 -1
- package/dist/server/assets/{index-iqainN_h.js → index-nqKESpHs.js} +1 -1
- package/dist/server/assets/{index-Y0CJ6FO8.js → index-uKOod_VY.js} +1 -1
- package/dist/server/assets/{index-U-1MZOIQ.js → index-vXrIxFbD.js} +1 -1
- package/dist/server/assets/{info-VBDWY6EO-Ba8HLWBX.js → info-VBDWY6EO-B8SMPk8k.js} +6 -6
- package/dist/server/assets/{infoDiagram-HS3SLOUP-BYfrlW-j.js → infoDiagram-HS3SLOUP-Clv09QWG.js} +5 -5
- package/dist/server/assets/{journeyDiagram-XKPGCS4Q-VV4qbZDl.js → journeyDiagram-XKPGCS4Q-gLeSqsrr.js} +4 -4
- package/dist/server/assets/{kanban-definition-3W4ZIXB7-TtjjtFt_.js → kanban-definition-3W4ZIXB7-DrA2oDI2.js} +2 -2
- package/dist/server/assets/{layout-CxNf3z_2.js → layout-StLBi0DC.js} +4 -4
- package/dist/server/assets/{mermaid-3ZIDBTTL-ChndXjXw.js → mermaid-3ZIDBTTL-Bt_VEm4a.js} +1 -1
- package/dist/server/assets/{mermaid-parser.core-nvqu-aiP.js → mermaid-parser.core-CQHu6aH4.js} +11 -11
- package/dist/server/assets/{mindmap-definition-VGOIOE7T-DME5Y_pR.js → mindmap-definition-VGOIOE7T-BXI8voMR.js} +3 -3
- package/dist/server/assets/{packet-DYOGHKS2-Bt1WHvgh.js → packet-DYOGHKS2-Bbu_JYVI.js} +6 -6
- package/dist/server/assets/{pie-VRWISCQL-WTXmin9S.js → pie-VRWISCQL-MLNV-r6i.js} +6 -6
- package/dist/server/assets/{pieDiagram-ADFJNKIX-CUbwYVab.js → pieDiagram-ADFJNKIX-BnnZCYsp.js} +7 -7
- package/dist/server/assets/{quadrantDiagram-AYHSOK5B-BB6u0IN3.js → quadrantDiagram-AYHSOK5B-Ct0Iu4IU.js} +1 -1
- package/dist/server/assets/{radar-ZZBFDIW7-BWKvWMhz.js → radar-ZZBFDIW7-ookOdZjk.js} +6 -6
- package/dist/server/assets/{requirementDiagram-UZGBJVZJ-BLRtjxGN.js → requirementDiagram-UZGBJVZJ-TVbtZ83j.js} +3 -3
- package/dist/server/assets/{router-BjXwm096.js → router-CLP0eF4C.js} +138934 -137727
- package/dist/server/assets/{sankeyDiagram-TZEHDZUN-BF1Ts-tv.js → sankeyDiagram-TZEHDZUN-DP9GvMoG.js} +1 -1
- package/dist/server/assets/{sequenceDiagram-WL72ISMW-DB8euEl-.js → sequenceDiagram-WL72ISMW-Dw73Sze5.js} +3 -3
- package/dist/server/assets/{stateDiagram-FKZM4ZOC-CgrYrlDa.js → stateDiagram-FKZM4ZOC-BX_HLnbp.js} +8 -8
- package/dist/server/assets/{stateDiagram-v2-4FDKWEC3-Ch28pf2n.js → stateDiagram-v2-4FDKWEC3-Z6e1qnm6.js} +4 -4
- package/dist/server/assets/{timeline-definition-IT6M3QCI-jW-suedf.js → timeline-definition-IT6M3QCI-C4BTQO5I.js} +2 -2
- package/dist/server/assets/{treemap-GDKQZRPO-ClNoljcd.js → treemap-GDKQZRPO-qbW3is6N.js} +6 -6
- package/dist/server/assets/workspace._workspaceId-CfTis8Yp.js +39 -0
- package/dist/server/assets/{workspace._workspaceId-CBpMR_kd.js → workspace._workspaceId-Qtlrhz_2.js} +1 -1
- package/dist/server/assets/{xychartDiagram-PRI3JC2R-BKGpeSar.js → xychartDiagram-PRI3JC2R-CWPZjmzp.js} +1 -1
- package/dist/server/server.js +2 -2
- package/dist/start-server.mjs +75 -17
- package/dist/terminal-daemon.mjs +1 -0
- package/package.json +5 -5
- package/dist/client/assets/_basePickBy-Mr2ui_ok.js +0 -1
- package/dist/client/assets/_baseUniq-BbCun8O9.js +0 -1
- package/dist/client/assets/channel-CLpfxzfv.js +0 -1
- package/dist/client/assets/classDiagram-2ON5EDUG-CHqpXULX.js +0 -1
- package/dist/client/assets/classDiagram-v2-WZHVMYZB-CHqpXULX.js +0 -1
- package/dist/client/assets/clone-kZf8-x5k.js +0 -1
- package/dist/client/assets/diagram-S2PKOQOG-CtPm91f8.js +0 -24
- package/dist/client/assets/gitGraphDiagram-V2S2FVAM-CxVbFEsr.js +0 -65
- package/dist/client/assets/main-uTpkFvkD.css +0 -1
- package/dist/client/assets/stateDiagram-v2-4FDKWEC3-DKjPuiuj.js +0 -1
- package/dist/client/assets/workspace._workspaceId-FEoumKx5.js +0 -1
- package/dist/server/assets/_tanstack-start-manifest_v-CY2brxDW.js +0 -4
- package/dist/server/assets/workspace._workspaceId-CD0MjjsK.js +0 -330
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports, r as reactExports } from "../server.js";
|
|
2
|
-
import { bp as createLucideIcon, bq as Root, br as Content, bs as Close, bt as X, bu as cn, bv as Title, bw as Description, bx as Portal, by as Overlay, R as Route, bl as useIsDesktop, bz as useDashboardStore, bo as isDesktop, bA as useWorkspacePath, bB as getWorkspaceLeafActions, bC as parseFileLocation, bD as DesktopDragRegion, bE as FolderOpen, bF as GitCompare, bG as WorkspaceCenterDockview, bH as FileBrowser, bI as ChangesSections, bJ as QuickOpenDialog, bK as SearchFilesDialog, bL as WorkspacePickerDialog, bm as ToolbarOverflowProvider, bi as DashboardShell, bn as ToolbarActionBar, bM as useWorkspaceChanges, bN as countChangedPaths } from "./router-BjXwm096.js";
|
|
3
|
-
import "node:async_hooks";
|
|
4
|
-
import "node:stream";
|
|
5
|
-
import "util";
|
|
6
|
-
import "crypto";
|
|
7
|
-
import "async_hooks";
|
|
8
|
-
import "stream";
|
|
9
|
-
import "node:stream/web";
|
|
10
|
-
import "node:process";
|
|
11
|
-
import "node:path";
|
|
12
|
-
import "node:url";
|
|
13
|
-
const __iconNode$1 = [
|
|
14
|
-
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
15
|
-
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
16
|
-
];
|
|
17
|
-
const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$1);
|
|
18
|
-
const __iconNode = [
|
|
19
|
-
["path", { d: "M4 5h16", key: "1tepv9" }],
|
|
20
|
-
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
21
|
-
["path", { d: "M4 19h16", key: "1djgab" }]
|
|
22
|
-
];
|
|
23
|
-
const Menu = createLucideIcon("menu", __iconNode);
|
|
24
|
-
function Sheet({ ...props }) {
|
|
25
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Root, { "data-slot": "sheet", ...props });
|
|
26
|
-
}
|
|
27
|
-
function SheetPortal({ ...props }) {
|
|
28
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Portal, { "data-slot": "sheet-portal", ...props });
|
|
29
|
-
}
|
|
30
|
-
function SheetOverlay({
|
|
31
|
-
className,
|
|
32
|
-
...props
|
|
33
|
-
}) {
|
|
34
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
35
|
-
Overlay,
|
|
36
|
-
{
|
|
37
|
-
"data-slot": "sheet-overlay",
|
|
38
|
-
className: cn(
|
|
39
|
-
"fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
40
|
-
className
|
|
41
|
-
),
|
|
42
|
-
...props
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
function SheetContent({
|
|
47
|
-
className,
|
|
48
|
-
children,
|
|
49
|
-
side = "left",
|
|
50
|
-
showCloseButton = true,
|
|
51
|
-
overlayClassName,
|
|
52
|
-
...props
|
|
53
|
-
}) {
|
|
54
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(SheetPortal, { "data-slot": "sheet-portal", children: [
|
|
55
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SheetOverlay, { className: overlayClassName }),
|
|
56
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
57
|
-
Content,
|
|
58
|
-
{
|
|
59
|
-
"data-slot": "sheet-content",
|
|
60
|
-
className: cn(
|
|
61
|
-
"fixed z-50 flex flex-col border-border bg-background shadow-lg outline-none ease-drawer data-[state=closed]:animate-out data-[state=closed]:duration-250 data-[state=open]:animate-in data-[state=open]:duration-300",
|
|
62
|
-
side === "left" && "inset-y-0 left-0 h-full w-[85%] max-w-sm border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",
|
|
63
|
-
side === "right" && "inset-y-0 right-0 h-full w-[85%] max-w-sm border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",
|
|
64
|
-
// Bottom sheet: leave a safe-area gap at the top so the header/close
|
|
65
|
-
// button stay clear of the iOS notch / status bar. env() insets are
|
|
66
|
-
// additive to the fixed 1.5rem so the gap is never smaller than the
|
|
67
|
-
// physical safe area.
|
|
68
|
-
side === "bottom" && "inset-x-0 bottom-0 max-h-[calc(100dvh-env(safe-area-inset-top)-1.5rem)] w-full rounded-t-2xl border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
69
|
-
side === "top" && "inset-x-0 top-0 w-full rounded-b-2xl border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
70
|
-
className
|
|
71
|
-
),
|
|
72
|
-
...props,
|
|
73
|
-
children: [
|
|
74
|
-
children,
|
|
75
|
-
showCloseButton && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
76
|
-
Close,
|
|
77
|
-
{
|
|
78
|
-
"data-slot": "sheet-close",
|
|
79
|
-
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
80
|
-
children: [
|
|
81
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(X, {}),
|
|
82
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sr-only", children: "Close" })
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
)
|
|
86
|
-
]
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
] });
|
|
90
|
-
}
|
|
91
|
-
function SheetTitle({ className, ...props }) {
|
|
92
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
93
|
-
Title,
|
|
94
|
-
{
|
|
95
|
-
"data-slot": "sheet-title",
|
|
96
|
-
className: cn("text-foreground font-semibold", className),
|
|
97
|
-
...props
|
|
98
|
-
}
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
function SheetDescription({
|
|
102
|
-
className,
|
|
103
|
-
...props
|
|
104
|
-
}) {
|
|
105
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
106
|
-
Description,
|
|
107
|
-
{
|
|
108
|
-
"data-slot": "sheet-description",
|
|
109
|
-
className: cn("text-muted-foreground text-sm", className),
|
|
110
|
-
...props
|
|
111
|
-
}
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
const KEYBOARD_MIN_HEIGHT_PX = 120;
|
|
115
|
-
function useAppHeight() {
|
|
116
|
-
const [height, setHeight] = reactExports.useState(null);
|
|
117
|
-
const [offsetTop, setOffsetTop] = reactExports.useState(0);
|
|
118
|
-
const [keyboardOpen, setKeyboardOpen] = reactExports.useState(false);
|
|
119
|
-
reactExports.useLayoutEffect(() => {
|
|
120
|
-
const vv = window.visualViewport;
|
|
121
|
-
const update = () => {
|
|
122
|
-
setHeight(vv ? vv.height : window.innerHeight);
|
|
123
|
-
setOffsetTop(vv ? vv.offsetTop : 0);
|
|
124
|
-
setKeyboardOpen(vv ? window.innerHeight - vv.height > KEYBOARD_MIN_HEIGHT_PX : false);
|
|
125
|
-
};
|
|
126
|
-
update();
|
|
127
|
-
if (vv) {
|
|
128
|
-
vv.addEventListener("resize", update);
|
|
129
|
-
vv.addEventListener("scroll", update);
|
|
130
|
-
}
|
|
131
|
-
window.addEventListener("resize", update);
|
|
132
|
-
return () => {
|
|
133
|
-
if (vv) {
|
|
134
|
-
vv.removeEventListener("resize", update);
|
|
135
|
-
vv.removeEventListener("scroll", update);
|
|
136
|
-
}
|
|
137
|
-
window.removeEventListener("resize", update);
|
|
138
|
-
};
|
|
139
|
-
}, []);
|
|
140
|
-
return {
|
|
141
|
-
height,
|
|
142
|
-
offsetTop,
|
|
143
|
-
keyboardOpen
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
function useChangesSummary(workspaceId) {
|
|
147
|
-
const changesQuery = useWorkspaceChanges(workspaceId, {
|
|
148
|
-
refetchInterval: 15e3
|
|
149
|
-
});
|
|
150
|
-
return {
|
|
151
|
-
changes: changesQuery.data,
|
|
152
|
-
changeCount: countChangedPaths(changesQuery.data)
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
function WorkspaceLayout() {
|
|
156
|
-
const {
|
|
157
|
-
workspaceId
|
|
158
|
-
} = Route.useParams();
|
|
159
|
-
const decoded = decodeURIComponent(workspaceId);
|
|
160
|
-
const isWideScreen = useIsDesktop();
|
|
161
|
-
const useDesktopLayout = isWideScreen || isDesktop;
|
|
162
|
-
const [hydrated, setHydrated] = reactExports.useState(false);
|
|
163
|
-
reactExports.useLayoutEffect(() => {
|
|
164
|
-
setHydrated(true);
|
|
165
|
-
}, []);
|
|
166
|
-
const setActiveWorkspace = useDashboardStore((s) => s.setActiveWorkspace);
|
|
167
|
-
reactExports.useEffect(() => {
|
|
168
|
-
setActiveWorkspace(decoded);
|
|
169
|
-
}, [decoded, setActiveWorkspace]);
|
|
170
|
-
const refreshBranchStatus = useDashboardStore((s) => s.refreshBranchStatus);
|
|
171
|
-
reactExports.useEffect(() => {
|
|
172
|
-
refreshBranchStatus(decoded);
|
|
173
|
-
const onVisible = () => {
|
|
174
|
-
if (document.visibilityState === "visible") refreshBranchStatus(decoded);
|
|
175
|
-
};
|
|
176
|
-
document.addEventListener("visibilitychange", onVisible);
|
|
177
|
-
return () => document.removeEventListener("visibilitychange", onVisible);
|
|
178
|
-
}, [decoded, refreshBranchStatus]);
|
|
179
|
-
const clearNeedsAttention = useDashboardStore((s) => s.clearNeedsAttention);
|
|
180
|
-
reactExports.useEffect(() => {
|
|
181
|
-
clearNeedsAttention(decoded);
|
|
182
|
-
}, [decoded, clearNeedsAttention]);
|
|
183
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `h-full ${hydrated ? "" : "invisible"}`, children: useDesktopLayout ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(MobileWorkspaceLayout, { workspaceId: decoded }, decoded) });
|
|
184
|
-
}
|
|
185
|
-
function MobileHeaderButton({
|
|
186
|
-
label,
|
|
187
|
-
icon: Icon,
|
|
188
|
-
active,
|
|
189
|
-
onClick,
|
|
190
|
-
badge,
|
|
191
|
-
testid
|
|
192
|
-
}) {
|
|
193
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
194
|
-
"button",
|
|
195
|
-
{
|
|
196
|
-
type: "button",
|
|
197
|
-
onClick,
|
|
198
|
-
"aria-label": badge ? `${label}, ${badge}` : label,
|
|
199
|
-
"aria-pressed": active,
|
|
200
|
-
"aria-haspopup": "dialog",
|
|
201
|
-
"data-testid": testid,
|
|
202
|
-
className: `relative inline-flex size-9 shrink-0 items-center justify-center rounded-md transition-colors hover:bg-accent active:bg-accent ${active ? "text-foreground" : "text-muted-foreground"}`,
|
|
203
|
-
children: [
|
|
204
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: "size-[18px]" }),
|
|
205
|
-
badge != null && badge > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { "data-testid": `${testid}-badge`, className: "absolute top-0 right-0 inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-blue-500/20 px-1 text-[9px] font-medium text-blue-600 dark:text-blue-400", children: badge })
|
|
206
|
-
]
|
|
207
|
-
}
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
function MobileWorkspaceLayout({
|
|
211
|
-
workspaceId
|
|
212
|
-
}) {
|
|
213
|
-
const {
|
|
214
|
-
height: appHeight,
|
|
215
|
-
offsetTop: appOffsetTop,
|
|
216
|
-
keyboardOpen
|
|
217
|
-
} = useAppHeight();
|
|
218
|
-
const workspacePath = useWorkspacePath(workspaceId);
|
|
219
|
-
const {
|
|
220
|
-
changes,
|
|
221
|
-
changeCount
|
|
222
|
-
} = useChangesSummary(workspaceId);
|
|
223
|
-
const [view, setView] = reactExports.useState("editor");
|
|
224
|
-
const openFileLeaf = reactExports.useCallback((filePath, opts) => {
|
|
225
|
-
getWorkspaceLeafActions(workspaceId)?.openFile(filePath, opts);
|
|
226
|
-
setView("editor");
|
|
227
|
-
}, [workspaceId]);
|
|
228
|
-
const openDiffLeaf = reactExports.useCallback((section, entry) => {
|
|
229
|
-
getWorkspaceLeafActions(workspaceId)?.openDiff(entry.path, {
|
|
230
|
-
section,
|
|
231
|
-
oldPath: entry.oldPath
|
|
232
|
-
});
|
|
233
|
-
setView("editor");
|
|
234
|
-
}, [workspaceId]);
|
|
235
|
-
const [pickerOpen, setPickerOpen] = reactExports.useState(false);
|
|
236
|
-
const [projectListOpen, setProjectListOpen] = reactExports.useState(false);
|
|
237
|
-
const [quickOpenOpen, setQuickOpenOpen] = reactExports.useState(false);
|
|
238
|
-
const [quickOpenQuery, setQuickOpenQuery] = reactExports.useState(void 0);
|
|
239
|
-
const [searchFilesOpen, setSearchFilesOpen] = reactExports.useState(false);
|
|
240
|
-
const handleOpenFile = reactExports.useCallback((filename) => {
|
|
241
|
-
const {
|
|
242
|
-
filePath,
|
|
243
|
-
line,
|
|
244
|
-
column
|
|
245
|
-
} = parseFileLocation(filename);
|
|
246
|
-
openFileLeaf(filePath, {
|
|
247
|
-
line,
|
|
248
|
-
column
|
|
249
|
-
});
|
|
250
|
-
}, [openFileLeaf]);
|
|
251
|
-
reactExports.useEffect(() => {
|
|
252
|
-
const handler = (e) => {
|
|
253
|
-
const detail = e.detail;
|
|
254
|
-
if (!detail?.filename) return;
|
|
255
|
-
if (detail.workspaceId && detail.workspaceId !== workspaceId) return;
|
|
256
|
-
setQuickOpenQuery(detail.filename);
|
|
257
|
-
setQuickOpenOpen(true);
|
|
258
|
-
};
|
|
259
|
-
window.addEventListener("band:open-file", handler);
|
|
260
|
-
return () => window.removeEventListener("band:open-file", handler);
|
|
261
|
-
}, [workspaceId]);
|
|
262
|
-
reactExports.useEffect(() => {
|
|
263
|
-
const openQO = () => setQuickOpenOpen(true);
|
|
264
|
-
const openSF = () => setSearchFilesOpen(true);
|
|
265
|
-
window.addEventListener("band:open-quick-open", openQO);
|
|
266
|
-
window.addEventListener("band:open-search-files", openSF);
|
|
267
|
-
return () => {
|
|
268
|
-
window.removeEventListener("band:open-quick-open", openQO);
|
|
269
|
-
window.removeEventListener("band:open-search-files", openSF);
|
|
270
|
-
};
|
|
271
|
-
}, []);
|
|
272
|
-
return (
|
|
273
|
-
// Fixed, so a document scroll iOS makes to reveal the focused input can't
|
|
274
|
-
// move it; `offsetTop` then follows the visual viewport as it pans.
|
|
275
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "fixed inset-x-0 top-0 flex flex-col overflow-hidden", style: {
|
|
276
|
-
height: appHeight ? `${appHeight}px` : "100dvh",
|
|
277
|
-
transform: appOffsetTop ? `translateY(${appOffsetTop}px)` : void 0
|
|
278
|
-
}, children: [
|
|
279
|
-
isDesktop && /* @__PURE__ */ jsxRuntimeExports.jsx(DesktopDragRegion, {}),
|
|
280
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("header", { "data-testid": "mobile-workspace__header", className: "flex h-[calc(2.5rem+env(safe-area-inset-top))] shrink-0 items-center gap-2 border-b border-border/50 px-3 pt-[env(safe-area-inset-top)]", children: [
|
|
281
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { type: "button", onClick: () => setProjectListOpen(true), "aria-label": "Open project list", "aria-haspopup": "dialog", "data-testid": "mobile-workspace__project-list-trigger", className: "inline-flex size-7 shrink-0 items-center justify-center rounded-md hover:bg-accent", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Menu, { className: "size-4" }) }),
|
|
282
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { type: "button", onClick: () => setPickerOpen(true), "aria-haspopup": "dialog", "aria-label": "Switch workspace", "data-testid": "mobile-workspace__switcher", className: "inline-flex min-w-0 flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 hover:bg-accent active:bg-accent", children: [
|
|
283
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "truncate text-sm font-semibold", children: workspaceId }),
|
|
284
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ChevronsUpDown, { className: "size-3.5 shrink-0 text-muted-foreground" })
|
|
285
|
-
] }),
|
|
286
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex shrink-0 items-center", children: [
|
|
287
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(MobileHeaderButton, { label: "Explorer", icon: FolderOpen, active: view === "explorer", onClick: () => setView("explorer"), testid: "mobile-workspace__header-explorer" }),
|
|
288
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(MobileHeaderButton, { label: "Changes", icon: GitCompare, active: view === "changes", badge: changeCount, onClick: () => setView("changes"), testid: "mobile-workspace__header-changes" })
|
|
289
|
-
] })
|
|
290
|
-
] }),
|
|
291
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("main", { "data-testid": "mobile-workspace__main", className: `flex min-h-0 flex-1 flex-col ${keyboardOpen ? "" : "pb-[env(safe-area-inset-bottom)]"}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(WorkspaceCenterDockview, { workspaceId, visible: true, wsActive: true, mobile: true }) }),
|
|
292
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Sheet, { open: view === "explorer", onOpenChange: (open) => setView(open ? "explorer" : "editor"), children: /* @__PURE__ */ jsxRuntimeExports.jsxs(SheetContent, { side: "bottom", className: "h-[75dvh] p-0", "data-testid": "mobile-workspace__explorer-sheet", children: [
|
|
293
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SheetTitle, { className: "border-b border-border/50 px-4 py-3 text-sm", children: "Explorer" }),
|
|
294
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SheetDescription, { className: "sr-only", children: "Browse workspace files and open one in the editor" }),
|
|
295
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-testid": "mobile-workspace__explorer-body", className: "min-h-0 flex-1 overflow-auto pb-[env(safe-area-inset-bottom)]", children: /* @__PURE__ */ jsxRuntimeExports.jsx(FileBrowser, { workspaceId, workspacePath, onOpenFile: (p) => openFileLeaf(p), onOpenFilePinned: (p) => openFileLeaf(p), compact: true }) })
|
|
296
|
-
] }) }),
|
|
297
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Sheet, { open: view === "changes", onOpenChange: (open) => setView(open ? "changes" : "editor"), children: /* @__PURE__ */ jsxRuntimeExports.jsxs(SheetContent, { side: "bottom", className: "h-[75dvh] p-0", "data-testid": "mobile-workspace__changes-sheet", children: [
|
|
298
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SheetTitle, { className: "border-b border-border/50 px-4 py-3 text-sm", children: "Changes" }),
|
|
299
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SheetDescription, { className: "sr-only", children: "Browse changed files and open one as a diff" }),
|
|
300
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-testid": "mobile-workspace__changes-body", className: "min-h-0 flex-1 overflow-auto pb-[env(safe-area-inset-bottom)]", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ChangesSections, { workspaceId, changes, onOpen: openDiffLeaf, workspacePath }) })
|
|
301
|
-
] }) }),
|
|
302
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(QuickOpenDialog, { workspaceId, open: quickOpenOpen, onOpenChange: (open) => {
|
|
303
|
-
setQuickOpenOpen(open);
|
|
304
|
-
if (!open) setQuickOpenQuery(void 0);
|
|
305
|
-
}, onOpenFile: handleOpenFile, initialQuery: quickOpenQuery, autoOpen: quickOpenQuery != null }),
|
|
306
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchFilesDialog, { workspaceId, open: searchFilesOpen, onOpenChange: setSearchFilesOpen, onOpenFile: handleOpenFile }),
|
|
307
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(WorkspacePickerDialog, { open: pickerOpen, onOpenChange: setPickerOpen }),
|
|
308
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Sheet, { open: projectListOpen, onOpenChange: setProjectListOpen, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
309
|
-
SheetContent,
|
|
310
|
-
{
|
|
311
|
-
side: "left",
|
|
312
|
-
showCloseButton: false,
|
|
313
|
-
"data-testid": "project-list-flyout",
|
|
314
|
-
onOpenAutoFocus: (e) => {
|
|
315
|
-
e.preventDefault();
|
|
316
|
-
e.currentTarget?.focus();
|
|
317
|
-
},
|
|
318
|
-
children: [
|
|
319
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SheetTitle, { className: "sr-only", children: "Projects" }),
|
|
320
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SheetDescription, { className: "sr-only", children: "Browse projects and open a workspace" }),
|
|
321
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarOverflowProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(DashboardShell, { bottomActions: /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarActionBar, {}), hideTitleBar: true, padBottomInset: true }) })
|
|
322
|
-
]
|
|
323
|
-
}
|
|
324
|
-
) })
|
|
325
|
-
] })
|
|
326
|
-
);
|
|
327
|
-
}
|
|
328
|
-
export {
|
|
329
|
-
WorkspaceLayout as component
|
|
330
|
-
};
|