@mountaya/studio-react 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +98 -0
- package/LICENCE.fr.txt +280 -0
- package/LICENSE.txt +262 -0
- package/README.md +1087 -2
- package/THIRD-PARTY-NOTICES.txt +149 -0
- package/dist/chunk--VSQcEs_.cjs +26 -0
- package/dist/chunk--VSQcEs_.cjs.map +1 -0
- package/dist/chunk-0qoALFfx.cjs +454 -0
- package/dist/chunk-0qoALFfx.cjs.map +1 -0
- package/dist/chunk-0sHgX8We.cjs +97 -0
- package/dist/chunk-0sHgX8We.cjs.map +1 -0
- package/dist/chunk-4D4as_tP.js +16 -0
- package/dist/chunk-4D4as_tP.js.map +1 -0
- package/dist/chunk-6LM6wuIg.cjs +13 -0
- package/dist/chunk-6LM6wuIg.cjs.map +1 -0
- package/dist/chunk-6VpwF-77.js +7 -0
- package/dist/chunk-6VpwF-77.js.map +1 -0
- package/dist/chunk-6v2fJIDh.cjs +28 -0
- package/dist/chunk-6v2fJIDh.cjs.map +1 -0
- package/dist/chunk-Af0f-OjN.js +71 -0
- package/dist/chunk-Af0f-OjN.js.map +1 -0
- package/dist/chunk-B-QQkaWk.js +91 -0
- package/dist/chunk-B-QQkaWk.js.map +1 -0
- package/dist/chunk-B1lX5w6I.cjs +181 -0
- package/dist/chunk-B1lX5w6I.cjs.map +1 -0
- package/dist/chunk-B2gsz9OJ.js +19 -0
- package/dist/chunk-B2gsz9OJ.js.map +1 -0
- package/dist/chunk-B38srE2R.d.cts +3976 -0
- package/dist/chunk-B3HdxIq7.js +69 -0
- package/dist/chunk-B3HdxIq7.js.map +1 -0
- package/dist/chunk-B3UCX3Wd.js +30 -0
- package/dist/chunk-B3UCX3Wd.js.map +1 -0
- package/dist/chunk-B3mMYMtz.cjs +88 -0
- package/dist/chunk-B3mMYMtz.cjs.map +1 -0
- package/dist/chunk-B7D0neNQ.cjs +47 -0
- package/dist/chunk-B7D0neNQ.cjs.map +1 -0
- package/dist/chunk-B7UzNwmm.cjs +115 -0
- package/dist/chunk-B7UzNwmm.cjs.map +1 -0
- package/dist/chunk-B7d3NIaH.js +55 -0
- package/dist/chunk-B7d3NIaH.js.map +1 -0
- package/dist/chunk-B8ONCPFQ.cjs +70 -0
- package/dist/chunk-B8ONCPFQ.cjs.map +1 -0
- package/dist/chunk-B8QgG-RT.js +2232 -0
- package/dist/chunk-B8QgG-RT.js.map +1 -0
- package/dist/chunk-B8ZpXH0_.cjs +64 -0
- package/dist/chunk-B8ZpXH0_.cjs.map +1 -0
- package/dist/chunk-B8mS5bGc.cjs +112 -0
- package/dist/chunk-B8mS5bGc.cjs.map +1 -0
- package/dist/chunk-B9EkHHSU.js +40 -0
- package/dist/chunk-B9EkHHSU.js.map +1 -0
- package/dist/chunk-BA0PWNyn.js +234 -0
- package/dist/chunk-BA0PWNyn.js.map +1 -0
- package/dist/chunk-BAWE1gqe.js +60 -0
- package/dist/chunk-BAWE1gqe.js.map +1 -0
- package/dist/chunk-BAe9m2Yp.d.cts +963 -0
- package/dist/chunk-BDJCk6ml.js +19 -0
- package/dist/chunk-BDJCk6ml.js.map +1 -0
- package/dist/chunk-BFI2CR6j.cjs +381 -0
- package/dist/chunk-BFI2CR6j.cjs.map +1 -0
- package/dist/chunk-BIIJXiiS.js +40 -0
- package/dist/chunk-BIIJXiiS.js.map +1 -0
- package/dist/chunk-BJAn10wR.js +54 -0
- package/dist/chunk-BJAn10wR.js.map +1 -0
- package/dist/chunk-BLxPxx5p.js +1641 -0
- package/dist/chunk-BLxPxx5p.js.map +1 -0
- package/dist/chunk-BNSJoNwO.cjs +377 -0
- package/dist/chunk-BNSJoNwO.cjs.map +1 -0
- package/dist/chunk-BNTshA5u.js +304 -0
- package/dist/chunk-BNTshA5u.js.map +1 -0
- package/dist/chunk-BO_yHMn2.js +7 -0
- package/dist/chunk-BO_yHMn2.js.map +1 -0
- package/dist/chunk-BOpIVklq.cjs +23 -0
- package/dist/chunk-BOpIVklq.cjs.map +1 -0
- package/dist/chunk-BP8bHGiE.cjs +12 -0
- package/dist/chunk-BP8bHGiE.cjs.map +1 -0
- package/dist/chunk-BPsgx3c7.js +56 -0
- package/dist/chunk-BPsgx3c7.js.map +1 -0
- package/dist/chunk-BQkKY_kf.js +44 -0
- package/dist/chunk-BQkKY_kf.js.map +1 -0
- package/dist/chunk-BQoAEKyJ.js +193 -0
- package/dist/chunk-BQoAEKyJ.js.map +1 -0
- package/dist/chunk-BRuLc45I.cjs +21 -0
- package/dist/chunk-BRuLc45I.cjs.map +1 -0
- package/dist/chunk-BSnrqsA8.cjs +56 -0
- package/dist/chunk-BSnrqsA8.cjs.map +1 -0
- package/dist/chunk-BTDBomKm.cjs +80 -0
- package/dist/chunk-BTDBomKm.cjs.map +1 -0
- package/dist/chunk-BVogYy0R.js +375 -0
- package/dist/chunk-BVogYy0R.js.map +1 -0
- package/dist/chunk-BWITLmlf.js +6 -0
- package/dist/chunk-BWITLmlf.js.map +1 -0
- package/dist/chunk-BXUrvYqd.d.cts +112 -0
- package/dist/chunk-BXUrvYqd.d.ts +112 -0
- package/dist/chunk-BYzQfFFV.js +54 -0
- package/dist/chunk-BYzQfFFV.js.map +1 -0
- package/dist/chunk-BZCKMlN8.js +35 -0
- package/dist/chunk-BZCKMlN8.js.map +1 -0
- package/dist/chunk-BalPERFX.js +13 -0
- package/dist/chunk-BalPERFX.js.map +1 -0
- package/dist/chunk-Bb5SAw6T.cjs +72 -0
- package/dist/chunk-Bb5SAw6T.cjs.map +1 -0
- package/dist/chunk-BbQyoetL.cjs +269 -0
- package/dist/chunk-BbQyoetL.cjs.map +1 -0
- package/dist/chunk-BdepwGey.js +600 -0
- package/dist/chunk-BdepwGey.js.map +1 -0
- package/dist/chunk-BeB57TnZ.js +29 -0
- package/dist/chunk-BeB57TnZ.js.map +1 -0
- package/dist/chunk-BecxET4U.cjs +26 -0
- package/dist/chunk-BecxET4U.cjs.map +1 -0
- package/dist/chunk-Bfuu_B7M.js +16 -0
- package/dist/chunk-Bfuu_B7M.js.map +1 -0
- package/dist/chunk-Bh4xSiDO.js +93 -0
- package/dist/chunk-Bh4xSiDO.js.map +1 -0
- package/dist/chunk-BhLItb06.js +10 -0
- package/dist/chunk-BhLItb06.js.map +1 -0
- package/dist/chunk-BhelUZ4P.js +30 -0
- package/dist/chunk-BhelUZ4P.js.map +1 -0
- package/dist/chunk-BiMRpOwB.cjs +342 -0
- package/dist/chunk-BiMRpOwB.cjs.map +1 -0
- package/dist/chunk-Bj3ium6N.cjs +22 -0
- package/dist/chunk-Bj3ium6N.cjs.map +1 -0
- package/dist/chunk-BjQzK3c3.cjs +59 -0
- package/dist/chunk-BjQzK3c3.cjs.map +1 -0
- package/dist/chunk-BkvNTXo7.cjs +15 -0
- package/dist/chunk-BkvNTXo7.cjs.map +1 -0
- package/dist/chunk-BmJDHIlZ.cjs +50 -0
- package/dist/chunk-BmJDHIlZ.cjs.map +1 -0
- package/dist/chunk-BmztanwN.cjs +13 -0
- package/dist/chunk-BmztanwN.cjs.map +1 -0
- package/dist/chunk-Bnci-ej8.cjs +262 -0
- package/dist/chunk-Bnci-ej8.cjs.map +1 -0
- package/dist/chunk-BoOw05B0.js +24 -0
- package/dist/chunk-BoOw05B0.js.map +1 -0
- package/dist/chunk-BqPxk-8w.cjs +95 -0
- package/dist/chunk-BqPxk-8w.cjs.map +1 -0
- package/dist/chunk-Br_1h4WD.cjs +15 -0
- package/dist/chunk-Br_1h4WD.cjs.map +1 -0
- package/dist/chunk-BtmcBZXU.js +13 -0
- package/dist/chunk-BtmcBZXU.js.map +1 -0
- package/dist/chunk-BvaNI_86.js +11 -0
- package/dist/chunk-BvaNI_86.js.map +1 -0
- package/dist/chunk-BvoYNlF5.js +145 -0
- package/dist/chunk-BvoYNlF5.js.map +1 -0
- package/dist/chunk-BwnCGe7J.js +268 -0
- package/dist/chunk-BwnCGe7J.js.map +1 -0
- package/dist/chunk-BxpaOkyq.cjs +310 -0
- package/dist/chunk-BxpaOkyq.cjs.map +1 -0
- package/dist/chunk-BybRyFen.cjs +65 -0
- package/dist/chunk-BybRyFen.cjs.map +1 -0
- package/dist/chunk-C-9wXKm5.cjs +83 -0
- package/dist/chunk-C-9wXKm5.cjs.map +1 -0
- package/dist/chunk-C-hV-Usi.js +7 -0
- package/dist/chunk-C-hV-Usi.js.map +1 -0
- package/dist/chunk-C06UWdDq.js +100 -0
- package/dist/chunk-C06UWdDq.js.map +1 -0
- package/dist/chunk-C1NzDn7y.cjs +35 -0
- package/dist/chunk-C1NzDn7y.cjs.map +1 -0
- package/dist/chunk-C2zEVNM1.js +20 -0
- package/dist/chunk-C2zEVNM1.js.map +1 -0
- package/dist/chunk-C3ftwoOp.js +6 -0
- package/dist/chunk-C3ftwoOp.js.map +1 -0
- package/dist/chunk-C5ZETobm.js +17 -0
- package/dist/chunk-C5ZETobm.js.map +1 -0
- package/dist/chunk-C5oCIViv.js +98 -0
- package/dist/chunk-C5oCIViv.js.map +1 -0
- package/dist/chunk-C60kC4oZ.cjs +114 -0
- package/dist/chunk-C60kC4oZ.cjs.map +1 -0
- package/dist/chunk-C6Mr3Z8L.js +59 -0
- package/dist/chunk-C6Mr3Z8L.js.map +1 -0
- package/dist/chunk-C6cBmVch.js +119 -0
- package/dist/chunk-C6cBmVch.js.map +1 -0
- package/dist/chunk-C6vKd7KP.cjs +519 -0
- package/dist/chunk-C6vKd7KP.cjs.map +1 -0
- package/dist/chunk-C7NizUxN.js +21 -0
- package/dist/chunk-C7NizUxN.js.map +1 -0
- package/dist/chunk-C93yeTAD.js +91 -0
- package/dist/chunk-C93yeTAD.js.map +1 -0
- package/dist/chunk-CByZU6Hx.cjs +90 -0
- package/dist/chunk-CByZU6Hx.cjs.map +1 -0
- package/dist/chunk-CCNIPIJB.cjs +25 -0
- package/dist/chunk-CCNIPIJB.cjs.map +1 -0
- package/dist/chunk-CEDKBew2.js +15 -0
- package/dist/chunk-CEDKBew2.js.map +1 -0
- package/dist/chunk-CI2PEZIK.js +147 -0
- package/dist/chunk-CI2PEZIK.js.map +1 -0
- package/dist/chunk-CIjPAYuo.cjs +268 -0
- package/dist/chunk-CIjPAYuo.cjs.map +1 -0
- package/dist/chunk-CJyqD6Ib.js +518 -0
- package/dist/chunk-CJyqD6Ib.js.map +1 -0
- package/dist/chunk-CNFF8fiL.js +38 -0
- package/dist/chunk-CNFF8fiL.js.map +1 -0
- package/dist/chunk-CNFoFzhK.cjs +50 -0
- package/dist/chunk-CNFoFzhK.cjs.map +1 -0
- package/dist/chunk-CQAuAPOE.cjs +63 -0
- package/dist/chunk-CQAuAPOE.cjs.map +1 -0
- package/dist/chunk-CR46E73M.js +50 -0
- package/dist/chunk-CR46E73M.js.map +1 -0
- package/dist/chunk-CSq4CbT1.js +86 -0
- package/dist/chunk-CSq4CbT1.js.map +1 -0
- package/dist/chunk-CT6i9_8G.cjs +31 -0
- package/dist/chunk-CT6i9_8G.cjs.map +1 -0
- package/dist/chunk-CUKEOil1.cjs +108 -0
- package/dist/chunk-CUKEOil1.cjs.map +1 -0
- package/dist/chunk-CWxPV2vI.js +111 -0
- package/dist/chunk-CWxPV2vI.js.map +1 -0
- package/dist/chunk-CXap-mFu.js +50 -0
- package/dist/chunk-CXap-mFu.js.map +1 -0
- package/dist/chunk-CYx1vTOG.d.ts +69 -0
- package/dist/chunk-CZOXtOQp.js +261 -0
- package/dist/chunk-CZOXtOQp.js.map +1 -0
- package/dist/chunk-CZSBVyE9.js +68 -0
- package/dist/chunk-CZSBVyE9.js.map +1 -0
- package/dist/chunk-C_NZdnA3.cjs +57 -0
- package/dist/chunk-C_NZdnA3.cjs.map +1 -0
- package/dist/chunk-C_k4SxhD.js +245 -0
- package/dist/chunk-C_k4SxhD.js.map +1 -0
- package/dist/chunk-CaTeIppS.cjs +115 -0
- package/dist/chunk-CaTeIppS.cjs.map +1 -0
- package/dist/chunk-CaUCI-WV.cjs +69 -0
- package/dist/chunk-CaUCI-WV.cjs.map +1 -0
- package/dist/chunk-CblkEI9o.js +19 -0
- package/dist/chunk-CblkEI9o.js.map +1 -0
- package/dist/chunk-CcXeCiEQ.js +70 -0
- package/dist/chunk-CcXeCiEQ.js.map +1 -0
- package/dist/chunk-Ce4D2B8W.cjs +49 -0
- package/dist/chunk-Ce4D2B8W.cjs.map +1 -0
- package/dist/chunk-CetxbYL1.js +66 -0
- package/dist/chunk-CetxbYL1.js.map +1 -0
- package/dist/chunk-ClfU9elo.js +68 -0
- package/dist/chunk-ClfU9elo.js.map +1 -0
- package/dist/chunk-CmNHE_Un.cjs +4 -0
- package/dist/chunk-Cmb_XLfd.js +82 -0
- package/dist/chunk-Cmb_XLfd.js.map +1 -0
- package/dist/chunk-Cp26IdF1.js +72 -0
- package/dist/chunk-Cp26IdF1.js.map +1 -0
- package/dist/chunk-CsBkSCbR.cjs +92 -0
- package/dist/chunk-CsBkSCbR.cjs.map +1 -0
- package/dist/chunk-CsnIpELM.js +31 -0
- package/dist/chunk-CsnIpELM.js.map +1 -0
- package/dist/chunk-CsnJv55G.cjs +36 -0
- package/dist/chunk-CsnJv55G.cjs.map +1 -0
- package/dist/chunk-CsxHDVHF.cjs +68 -0
- package/dist/chunk-CsxHDVHF.cjs.map +1 -0
- package/dist/chunk-Cv1FyWmK.js +670 -0
- package/dist/chunk-Cv1FyWmK.js.map +1 -0
- package/dist/chunk-CwXRQ-3X.cjs +2238 -0
- package/dist/chunk-CwXRQ-3X.cjs.map +1 -0
- package/dist/chunk-CxC9GaSV.js +6 -0
- package/dist/chunk-CxC9GaSV.js.map +1 -0
- package/dist/chunk-CyDQK1JF.js +22 -0
- package/dist/chunk-CyDQK1JF.js.map +1 -0
- package/dist/chunk-CyFo-C-X.js +341 -0
- package/dist/chunk-CyFo-C-X.js.map +1 -0
- package/dist/chunk-CzGWcm8C.cjs +109 -0
- package/dist/chunk-CzGWcm8C.cjs.map +1 -0
- package/dist/chunk-D0Cmheqq.cjs +25 -0
- package/dist/chunk-D0Cmheqq.cjs.map +1 -0
- package/dist/chunk-D0VevtWq.cjs +13 -0
- package/dist/chunk-D0VevtWq.cjs.map +1 -0
- package/dist/chunk-D1HIZ09h.d.cts +22 -0
- package/dist/chunk-D1HIZ09h.d.ts +22 -0
- package/dist/chunk-D1PwxEEq.cjs +281 -0
- package/dist/chunk-D1PwxEEq.cjs.map +1 -0
- package/dist/chunk-D2BipKyx.d.cts +69 -0
- package/dist/chunk-D4g36nrI.d.ts +963 -0
- package/dist/chunk-D5vZKs5k.js +85 -0
- package/dist/chunk-D5vZKs5k.js.map +1 -0
- package/dist/chunk-D7XBi__G.js +17 -0
- package/dist/chunk-D7XBi__G.js.map +1 -0
- package/dist/chunk-D8TsKfym.cjs +35 -0
- package/dist/chunk-D8TsKfym.cjs.map +1 -0
- package/dist/chunk-D8r50zRF.cjs +4 -0
- package/dist/chunk-DAAlHzRS.js +2 -0
- package/dist/chunk-DBY6OSNP.js +13 -0
- package/dist/chunk-DBY6OSNP.js.map +1 -0
- package/dist/chunk-DBfZJAh3.js +146 -0
- package/dist/chunk-DBfZJAh3.js.map +1 -0
- package/dist/chunk-DBpF1Eur.cjs +69 -0
- package/dist/chunk-DBpF1Eur.cjs.map +1 -0
- package/dist/chunk-DCvhBL80.js +9 -0
- package/dist/chunk-DCvhBL80.js.map +1 -0
- package/dist/chunk-DDNoqMiU.cjs +12 -0
- package/dist/chunk-DDNoqMiU.cjs.map +1 -0
- package/dist/chunk-DEpLX45Z.cjs +25 -0
- package/dist/chunk-DEpLX45Z.cjs.map +1 -0
- package/dist/chunk-DFw3I0U0.cjs +19 -0
- package/dist/chunk-DFw3I0U0.cjs.map +1 -0
- package/dist/chunk-DJOkmY4u.cjs +36 -0
- package/dist/chunk-DJOkmY4u.cjs.map +1 -0
- package/dist/chunk-DJQsem2x.js +1128 -0
- package/dist/chunk-DJQsem2x.js.map +1 -0
- package/dist/chunk-DKNcYR4L.cjs +71 -0
- package/dist/chunk-DKNcYR4L.cjs.map +1 -0
- package/dist/chunk-DL4Q5WpP.cjs +19 -0
- package/dist/chunk-DL4Q5WpP.cjs.map +1 -0
- package/dist/chunk-DLt13wEh.js +279 -0
- package/dist/chunk-DLt13wEh.js.map +1 -0
- package/dist/chunk-DPvFDS5n.cjs +31 -0
- package/dist/chunk-DPvFDS5n.cjs.map +1 -0
- package/dist/chunk-DQ4l6EDZ.js +1728 -0
- package/dist/chunk-DQ4l6EDZ.js.map +1 -0
- package/dist/chunk-DQ_X9yhT.cjs +21 -0
- package/dist/chunk-DQ_X9yhT.cjs.map +1 -0
- package/dist/chunk-DQbbL87b.cjs +57 -0
- package/dist/chunk-DQbbL87b.cjs.map +1 -0
- package/dist/chunk-DRphChLx.js +15 -0
- package/dist/chunk-DRphChLx.js.map +1 -0
- package/dist/chunk-DSsTHBp4.js +62 -0
- package/dist/chunk-DSsTHBp4.js.map +1 -0
- package/dist/chunk-DVI59otQ.js +20 -0
- package/dist/chunk-DVI59otQ.js.map +1 -0
- package/dist/chunk-DVN4tYVL.cjs +235 -0
- package/dist/chunk-DVN4tYVL.cjs.map +1 -0
- package/dist/chunk-DWxCDSxn.cjs +36 -0
- package/dist/chunk-DWxCDSxn.cjs.map +1 -0
- package/dist/chunk-DXMaeZs_.cjs +135 -0
- package/dist/chunk-DXMaeZs_.cjs.map +1 -0
- package/dist/chunk-D_dPThBm.js +44 -0
- package/dist/chunk-D_dPThBm.js.map +1 -0
- package/dist/chunk-DbW3lF5Y.cjs +55 -0
- package/dist/chunk-DbW3lF5Y.cjs.map +1 -0
- package/dist/chunk-Dc0Robe4.cjs +254 -0
- package/dist/chunk-Dc0Robe4.cjs.map +1 -0
- package/dist/chunk-DcLLI7B1.cjs +16 -0
- package/dist/chunk-DcLLI7B1.cjs.map +1 -0
- package/dist/chunk-Dd9K8OSs.js +73 -0
- package/dist/chunk-Dd9K8OSs.js.map +1 -0
- package/dist/chunk-DeFJnC-Q.js +52 -0
- package/dist/chunk-DeFJnC-Q.js.map +1 -0
- package/dist/chunk-DeggaLXL.cjs +109 -0
- package/dist/chunk-DeggaLXL.cjs.map +1 -0
- package/dist/chunk-DetGuqR8.cjs +12 -0
- package/dist/chunk-DetGuqR8.cjs.map +1 -0
- package/dist/chunk-Df761BAX.cjs +4 -0
- package/dist/chunk-DfQZch7H.cjs +60 -0
- package/dist/chunk-DfQZch7H.cjs.map +1 -0
- package/dist/chunk-DhwoAmi8.cjs +77 -0
- package/dist/chunk-DhwoAmi8.cjs.map +1 -0
- package/dist/chunk-DkH1DKxi.cjs +66 -0
- package/dist/chunk-DkH1DKxi.cjs.map +1 -0
- package/dist/chunk-DkjkI8F5.cjs +150 -0
- package/dist/chunk-DkjkI8F5.cjs.map +1 -0
- package/dist/chunk-DlaVYkP2.cjs +23 -0
- package/dist/chunk-DlaVYkP2.cjs.map +1 -0
- package/dist/chunk-DlcsA1GQ.js +6 -0
- package/dist/chunk-DlcsA1GQ.js.map +1 -0
- package/dist/chunk-DmBkJhi_.js +8 -0
- package/dist/chunk-DmBkJhi_.js.map +1 -0
- package/dist/chunk-DnXjnOQ1.cjs +42 -0
- package/dist/chunk-DnXjnOQ1.cjs.map +1 -0
- package/dist/chunk-DrG9yz7c.js +509 -0
- package/dist/chunk-DrG9yz7c.js.map +1 -0
- package/dist/chunk-DsTU_5Be.js +96 -0
- package/dist/chunk-DsTU_5Be.js.map +1 -0
- package/dist/chunk-DsXj9iLu.cjs +1827 -0
- package/dist/chunk-DsXj9iLu.cjs.map +1 -0
- package/dist/chunk-DteUy52S.js +45 -0
- package/dist/chunk-DteUy52S.js.map +1 -0
- package/dist/chunk-DtvsE56k.cjs +12 -0
- package/dist/chunk-DtvsE56k.cjs.map +1 -0
- package/dist/chunk-DuD5YqoE.cjs +99 -0
- package/dist/chunk-DuD5YqoE.cjs.map +1 -0
- package/dist/chunk-DvrtQ0Y0.js +51 -0
- package/dist/chunk-DvrtQ0Y0.js.map +1 -0
- package/dist/chunk-DwUFwDV2.js +144 -0
- package/dist/chunk-DwUFwDV2.js.map +1 -0
- package/dist/chunk-Dy59Tdfm.cjs +67 -0
- package/dist/chunk-Dy59Tdfm.cjs.map +1 -0
- package/dist/chunk-DyJupG9U.cjs +74 -0
- package/dist/chunk-DyJupG9U.cjs.map +1 -0
- package/dist/chunk-DzCbinPo.js +9 -0
- package/dist/chunk-DzCbinPo.js.map +1 -0
- package/dist/chunk-GgcOmaXu.cjs +137 -0
- package/dist/chunk-GgcOmaXu.cjs.map +1 -0
- package/dist/chunk-GnVcZTQv.cjs +50 -0
- package/dist/chunk-GnVcZTQv.cjs.map +1 -0
- package/dist/chunk-JDLVWYk5.cjs +22 -0
- package/dist/chunk-JDLVWYk5.cjs.map +1 -0
- package/dist/chunk-NA04sFmY.js +2 -0
- package/dist/chunk-NqIZvB2L.js +44 -0
- package/dist/chunk-NqIZvB2L.js.map +1 -0
- package/dist/chunk-OGNas_Mn.cjs +654 -0
- package/dist/chunk-OGNas_Mn.cjs.map +1 -0
- package/dist/chunk-PeexRooj.cjs +12 -0
- package/dist/chunk-PeexRooj.cjs.map +1 -0
- package/dist/chunk-QUjeQKsz.js +26 -0
- package/dist/chunk-QUjeQKsz.js.map +1 -0
- package/dist/chunk-S0jc_E9W.cjs +62 -0
- package/dist/chunk-S0jc_E9W.cjs.map +1 -0
- package/dist/chunk-TLRG-UaM.js +453 -0
- package/dist/chunk-TLRG-UaM.js.map +1 -0
- package/dist/chunk-TYmd7TzW.cjs +68 -0
- package/dist/chunk-TYmd7TzW.cjs.map +1 -0
- package/dist/chunk-TlHnQSY_.js +250 -0
- package/dist/chunk-TlHnQSY_.js.map +1 -0
- package/dist/chunk-Vba_029j.js +36 -0
- package/dist/chunk-Vba_029j.js.map +1 -0
- package/dist/chunk-Vp0uJb7O.cjs +92 -0
- package/dist/chunk-Vp0uJb7O.cjs.map +1 -0
- package/dist/chunk-WPGdcwtf.cjs +15 -0
- package/dist/chunk-WPGdcwtf.cjs.map +1 -0
- package/dist/chunk-WUipjqNN.cjs +158 -0
- package/dist/chunk-WUipjqNN.cjs.map +1 -0
- package/dist/chunk-Y-zyJ0-m.js +6 -0
- package/dist/chunk-Y-zyJ0-m.js.map +1 -0
- package/dist/chunk-ZIIlDASG.js +94 -0
- package/dist/chunk-ZIIlDASG.js.map +1 -0
- package/dist/chunk-ZLDg2I1Z.js +6 -0
- package/dist/chunk-ZLDg2I1Z.js.map +1 -0
- package/dist/chunk-_jSTl9gW.cjs +1129 -0
- package/dist/chunk-_jSTl9gW.cjs.map +1 -0
- package/dist/chunk-b5CqEoo1.cjs +599 -0
- package/dist/chunk-b5CqEoo1.cjs.map +1 -0
- package/dist/chunk-bA-2OGXv.d.ts +3977 -0
- package/dist/chunk-bvwC3n0z.cjs +12 -0
- package/dist/chunk-bvwC3n0z.cjs.map +1 -0
- package/dist/chunk-cMQzXXQq.js +67 -0
- package/dist/chunk-cMQzXXQq.js.map +1 -0
- package/dist/chunk-cTRnGhbF.cjs +177 -0
- package/dist/chunk-cTRnGhbF.cjs.map +1 -0
- package/dist/chunk-dHKPMJ4D.js +85 -0
- package/dist/chunk-dHKPMJ4D.js.map +1 -0
- package/dist/chunk-d_BOXcT5.js +9 -0
- package/dist/chunk-d_BOXcT5.js.map +1 -0
- package/dist/chunk-ea1IbBcA.js +66 -0
- package/dist/chunk-ea1IbBcA.js.map +1 -0
- package/dist/chunk-f-dHVrF3.js +293 -0
- package/dist/chunk-f-dHVrF3.js.map +1 -0
- package/dist/chunk-h7Z5mAV_.cjs +41 -0
- package/dist/chunk-h7Z5mAV_.cjs.map +1 -0
- package/dist/chunk-jSgMzVr1.js +35 -0
- package/dist/chunk-jSgMzVr1.js.map +1 -0
- package/dist/chunk-kYE5SZgs.cjs +252 -0
- package/dist/chunk-kYE5SZgs.cjs.map +1 -0
- package/dist/chunk-lEnNKG6x.cjs +285 -0
- package/dist/chunk-lEnNKG6x.cjs.map +1 -0
- package/dist/chunk-lcml1N1G.js +11 -0
- package/dist/chunk-lcml1N1G.js.map +1 -0
- package/dist/chunk-nBK0qBXt.js +68 -0
- package/dist/chunk-nBK0qBXt.js.map +1 -0
- package/dist/chunk-njoANlUr.cjs +41 -0
- package/dist/chunk-njoANlUr.cjs.map +1 -0
- package/dist/chunk-nwutfrnH.cjs +430 -0
- package/dist/chunk-nwutfrnH.cjs.map +1 -0
- package/dist/chunk-o1EKuTLo.js +56 -0
- package/dist/chunk-o1EKuTLo.js.map +1 -0
- package/dist/chunk-oMFOZSQM.cjs +52 -0
- package/dist/chunk-oMFOZSQM.cjs.map +1 -0
- package/dist/chunk-pb64dLGD.cjs +682 -0
- package/dist/chunk-pb64dLGD.cjs.map +1 -0
- package/dist/chunk-s7kBzSlt.js +2 -0
- package/dist/chunk-uhXxE8xV.cjs +32 -0
- package/dist/chunk-uhXxE8xV.cjs.map +1 -0
- package/dist/chunk-vGzpsUSM.cjs +110 -0
- package/dist/chunk-vGzpsUSM.cjs.map +1 -0
- package/dist/chunk-vN_Di8Af.cjs +1890 -0
- package/dist/chunk-vN_Di8Af.cjs.map +1 -0
- package/dist/chunk-veLShVmw.js +41 -0
- package/dist/chunk-veLShVmw.js.map +1 -0
- package/dist/chunk-wTf5jOFv.js +253 -0
- package/dist/chunk-wTf5jOFv.js.map +1 -0
- package/dist/chunk-yO-Ek9RH.cjs +17 -0
- package/dist/chunk-yO-Ek9RH.cjs.map +1 -0
- package/dist/chunk-ye5UUSFw.js +280 -0
- package/dist/chunk-ye5UUSFw.js.map +1 -0
- package/dist/copilot/index.cjs +10 -0
- package/dist/copilot/index.d.cts +62 -0
- package/dist/copilot/index.d.ts +62 -0
- package/dist/copilot/index.js +4 -0
- package/dist/embed/index.cjs +1653 -0
- package/dist/embed/index.cjs.map +1 -0
- package/dist/embed/index.d.cts +291 -0
- package/dist/embed/index.d.ts +291 -0
- package/dist/embed/index.js +1643 -0
- package/dist/embed/index.js.map +1 -0
- package/dist/headless/index.cjs +126 -0
- package/dist/headless/index.d.cts +4 -0
- package/dist/headless/index.d.ts +4 -0
- package/dist/headless/index.js +29 -0
- package/dist/import/index.cjs +403 -0
- package/dist/import/index.cjs.map +1 -0
- package/dist/import/index.d.cts +160 -0
- package/dist/import/index.d.ts +160 -0
- package/dist/import/index.js +393 -0
- package/dist/import/index.js.map +1 -0
- package/dist/index.cjs +8991 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4847 -0
- package/dist/index.d.ts +4847 -0
- package/dist/index.js +8768 -0
- package/dist/index.js.map +1 -0
- package/dist/map/index.cjs +36 -0
- package/dist/map/index.d.cts +2 -0
- package/dist/map/index.d.ts +2 -0
- package/dist/map/index.js +2 -0
- package/dist/styles.css +14684 -0
- package/dist/testing/index.cjs +398 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +302 -0
- package/dist/testing/index.d.ts +302 -0
- package/dist/testing/index.js +382 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/video/index.cjs +8 -0
- package/dist/video/index.d.cts +122 -0
- package/dist/video/index.d.ts +122 -0
- package/dist/video/index.js +2 -0
- package/package.json +226 -4
- package/src/agent/components/ActivityRow.tsx +226 -0
- package/src/agent/components/AgentEntityIndicator.tsx +67 -0
- package/src/agent/components/AgentMarkdown.tsx +530 -0
- package/src/agent/components/ChatComposer.tsx +161 -0
- package/src/agent/components/ChatTranscript.tsx +1358 -0
- package/src/agent/components/CopilotPanel.tsx +415 -0
- package/src/agent/components/CopilotStates.tsx +238 -0
- package/src/agent/components/CopilotTranscript.tsx +191 -0
- package/src/agent/components/MessageFeedback.tsx +100 -0
- package/src/agent/hooks/useAgentChatTransport.ts +61 -0
- package/src/agent/hooks/useAgentErrorCopy.ts +27 -0
- package/src/agent/hooks/useCopilotOpen.ts +68 -0
- package/src/agent/providers/AgentThreadsProvider.tsx +360 -0
- package/src/agent/providers/PromptPanelConversation.tsx +135 -0
- package/src/agent/rules/drawnNode.ts +24 -0
- package/src/alerts/components/MapAlerts.tsx +127 -0
- package/src/cache/hooks/useStudioCache.ts +40 -0
- package/src/cache/rules/studioCache.ts +145 -0
- package/src/collab/components/PeerEntityIndicator.tsx +150 -0
- package/src/collab/components/PresenceRoster.tsx +113 -0
- package/src/collab/components/peerLock.tsx +59 -0
- package/src/collab/hooks/useCollabOrganizationId.ts +24 -0
- package/src/collab/hooks/usePeerLockLabel.ts +41 -0
- package/src/collections/components/CollectionFormModal.tsx +280 -0
- package/src/collections/components/CollectionMultiSelect.tsx +640 -0
- package/src/collections/components/EditCollectionModal.tsx +114 -0
- package/src/collections/components/ManageCollectionsModal.tsx +692 -0
- package/src/collections/components/NewCollectionModal.tsx +87 -0
- package/src/collections/components/ShareCollectionModal.tsx +150 -0
- package/src/collections/hooks/useEntityCollections.ts +126 -0
- package/src/collections/hooks/useEveryPage.ts +33 -0
- package/src/controls/components/MapControlTooltip.tsx +84 -0
- package/src/controls/components/PoiOverlayMenu.tsx +342 -0
- package/src/controls/components/StudioControls.tsx +278 -0
- package/src/controls/rules/constants.ts +34 -0
- package/src/copilot/hooks/useStudioCopilotInset.ts +39 -0
- package/src/copilot/index.ts +29 -0
- package/src/directions/components/DirectionsModal.tsx +447 -0
- package/src/directions/components/directionsPdf.tsx +549 -0
- package/src/embed/components/DefaultViewControl.tsx +159 -0
- package/src/embed/components/EmbedBaseMapPicker.tsx +107 -0
- package/src/embed/components/EmbedCodeSection.tsx +329 -0
- package/src/embed/components/EmbedColumnsSection.tsx +167 -0
- package/src/embed/components/EmbedConfigForm.tsx +239 -0
- package/src/embed/components/EmbedElementSwitcher.tsx +85 -0
- package/src/embed/components/EmbedFieldControl.tsx +488 -0
- package/src/embed/components/EmbedGeneralSection.tsx +279 -0
- package/src/embed/components/EmbedKeyPanel.tsx +138 -0
- package/src/embed/components/EmbedSnippetCode.tsx +154 -0
- package/src/embed/components/EmbedStage.tsx +505 -0
- package/src/embed/components/EmbedTablePreview.tsx +134 -0
- package/src/embed/components/EmbedThemePicker.tsx +74 -0
- package/src/embed/components/EmbedTintPicker.tsx +76 -0
- package/src/embed/components/EmbedWizard.tsx +1031 -0
- package/src/embed/hooks/useEmbedCode.ts +170 -0
- package/src/embed/hooks/useEmbedCollectionItineraries.ts +42 -0
- package/src/embed/hooks/useEmbedLayerOptions.ts +75 -0
- package/src/embed/hooks/useEmbedPreviewCamera.ts +169 -0
- package/src/embed/index.ts +42 -0
- package/src/fullscreen/components/FullscreenHeader.tsx +77 -0
- package/src/fullscreen/components/FullscreenModal.tsx +80 -0
- package/src/fullscreen/components/WizardLayout.tsx +129 -0
- package/src/guards/components/AgentDrivingGuard.tsx +59 -0
- package/src/guards/components/UnsavedEditsGuard.tsx +210 -0
- package/src/guards/hooks/useReportUnsavedForm.ts +34 -0
- package/src/guards/hooks/useUnsavedEditsGuard.ts +44 -0
- package/src/headless/hooks/useAgentDriving.ts +21 -0
- package/src/headless/hooks/useBeginSegmentEdit.ts +89 -0
- package/src/headless/hooks/useBeginWaypointEdit.ts +74 -0
- package/src/headless/hooks/useCapabilitySet.ts +65 -0
- package/src/headless/hooks/useCollabResources.ts +148 -0
- package/src/headless/hooks/useCollectionScope.ts +37 -0
- package/src/headless/hooks/useEditActions.ts +250 -0
- package/src/headless/hooks/useEscapeKey.ts +43 -0
- package/src/headless/hooks/useInlineRename.ts +276 -0
- package/src/headless/hooks/useLiveAwareSegments.ts +88 -0
- package/src/headless/hooks/useLiveAwareWaypoints.ts +39 -0
- package/src/headless/hooks/useMapHoveredRow.ts +76 -0
- package/src/headless/hooks/usePlatformViewer.ts +452 -0
- package/src/headless/hooks/usePluginSlot.ts +235 -0
- package/src/headless/hooks/useRowEmphasis.ts +66 -0
- package/src/headless/hooks/useSegmentList.ts +428 -0
- package/src/headless/hooks/useSegmentRow.ts +370 -0
- package/src/headless/hooks/useSegmentRowActions.ts +267 -0
- package/src/headless/hooks/useShallowSelector.ts +145 -0
- package/src/headless/hooks/useStableMembers.ts +74 -0
- package/src/headless/hooks/useStoreSlice.ts +52 -0
- package/src/headless/hooks/useStreetViewCorridor.ts +120 -0
- package/src/headless/hooks/useStudioApi.ts +18 -0
- package/src/headless/hooks/useStudioDispatch.ts +180 -0
- package/src/headless/hooks/useStudioDispatchCount.ts +147 -0
- package/src/headless/hooks/useStudioDispatchUnsafe.ts +111 -0
- package/src/headless/hooks/useStudioEntitlement.ts +29 -0
- package/src/headless/hooks/useStudioFailureAlert.ts +67 -0
- package/src/headless/hooks/useStudioObserve.ts +38 -0
- package/src/headless/hooks/useStudioPreferences.ts +8 -0
- package/src/headless/hooks/useStudioSignedIn.ts +12 -0
- package/src/headless/hooks/useStudioStore.ts +72 -0
- package/src/headless/hooks/useStudioUnits.ts +23 -0
- package/src/headless/hooks/useStudioUrl.ts +24 -0
- package/src/headless/hooks/useStudioUserId.ts +5 -0
- package/src/headless/hooks/useStudioVerbHeld.ts +43 -0
- package/src/headless/hooks/useStudioViewer.ts +19 -0
- package/src/headless/hooks/useStudioViewerEntitlement.ts +40 -0
- package/src/headless/hooks/useStudioViewerItineraryLimit.ts +34 -0
- package/src/headless/hooks/useStudioViewerPreferences.ts +44 -0
- package/src/headless/hooks/useStudioViewerUnits.ts +50 -0
- package/src/headless/hooks/useStudioViewerUserId.ts +23 -0
- package/src/headless/hooks/useUiStore.ts +91 -0
- package/src/headless/hooks/useUiStoreShallow.ts +43 -0
- package/src/headless/hooks/useWaypointDetailsDialog.ts +52 -0
- package/src/headless/hooks/useWaypointList.ts +89 -0
- package/src/headless/hooks/useWaypointRow.ts +229 -0
- package/src/headless/hooks/useWaypointRowActions.ts +166 -0
- package/src/headless/index.ts +287 -0
- package/src/headless/providers/billingGate.tsx +129 -0
- package/src/headless/providers/copilot.tsx +155 -0
- package/src/headless/providers/mountayaStudio.tsx +127 -0
- package/src/headless/providers/navigationBlocker.tsx +91 -0
- package/src/headless/providers/notify.tsx +36 -0
- package/src/headless/providers/organizations.tsx +267 -0
- package/src/headless/providers/plugins.tsx +173 -0
- package/src/headless/providers/studio.tsx +1296 -0
- package/src/headless/providers/studioStrings.tsx +243 -0
- package/src/headless/rules/inputMethod.ts +19 -0
- package/src/hooks/useAgreementLimits.ts +165 -0
- package/src/hooks/useLayerCatalogOptions.ts +106 -0
- package/src/host/components/MountayaStudioHost.tsx +1018 -0
- package/src/host/hooks/useEmbeddedStudio.ts +24 -0
- package/src/host/hooks/useItineraryActivation.ts +126 -0
- package/src/host/hooks/useMemberGrants.ts +51 -0
- package/src/host/hooks/useStudioHostSurfaces.ts +100 -0
- package/src/host/hooks/useStudioPluginBinding.ts +133 -0
- package/src/host/hooks/useStudioSessionHeld.ts +111 -0
- package/src/host/hooks/useStudioToolBus.ts +127 -0
- package/src/host/hooks/useStudioToolContext.ts +175 -0
- package/src/host/providers/hostRegistry.tsx +144 -0
- package/src/host/providers/hostSurface.tsx +47 -0
- package/src/host/providers/hostVideo.tsx +73 -0
- package/src/import/components/DraftEntityList.tsx +298 -0
- package/src/import/components/FileDropInput.tsx +261 -0
- package/src/import/components/FileDropzone.tsx +97 -0
- package/src/import/components/ImportItineraryContent.tsx +133 -0
- package/src/import/components/ImportPreviewLegend.tsx +50 -0
- package/src/import/components/ImportPrimer.tsx +113 -0
- package/src/import/index.ts +32 -0
- package/src/import/providers/ImportRoutingGuideProvider.tsx +319 -0
- package/src/import/rules/routingGuidePictures.ts +20 -0
- package/src/index.ts +594 -0
- package/src/internal/components/Glyph.tsx +34 -0
- package/src/internal/components/MarkerGlyph.tsx +23 -0
- package/src/internal/components/MountayaMark.tsx +142 -0
- package/src/internal/hooks/useTextOverflow.ts +90 -0
- package/src/internal/providers/studioEditorRoot.tsx +42 -0
- package/src/internal/rules/editorRoot.ts +9 -0
- package/src/internal/rules/missingSeam.ts +32 -0
- package/src/itinerary/components/ActivityGuideModal.tsx +345 -0
- package/src/itinerary/components/ActivitySelect.tsx +204 -0
- package/src/itinerary/components/AddWaypointButton.tsx +151 -0
- package/src/itinerary/components/AscentInput.tsx +65 -0
- package/src/itinerary/components/Characteristics.tsx +129 -0
- package/src/itinerary/components/CursorReadout.tsx +66 -0
- package/src/itinerary/components/DistanceInput.tsx +67 -0
- package/src/itinerary/components/DraftProvenanceBanner.tsx +79 -0
- package/src/itinerary/components/DuplicateItineraryModal.tsx +341 -0
- package/src/itinerary/components/EditorSaveFooter.tsx +424 -0
- package/src/itinerary/components/ItineraryActionsMenu.tsx +655 -0
- package/src/itinerary/components/ItineraryForm.tsx +887 -0
- package/src/itinerary/components/ItineraryHeaderIdentity.tsx +121 -0
- package/src/itinerary/components/ItineraryHeaderMeta.tsx +68 -0
- package/src/itinerary/components/ItineraryHeaderTitle.tsx +88 -0
- package/src/itinerary/components/ItineraryIdentityFields.tsx +153 -0
- package/src/itinerary/components/ItineraryProfilePanel.tsx +619 -0
- package/src/itinerary/components/ItineraryProfileSheet.tsx +219 -0
- package/src/itinerary/components/ItinerarySubHeader.tsx +236 -0
- package/src/itinerary/components/PendingProfile.tsx +142 -0
- package/src/itinerary/components/PlaceCard.tsx +35 -0
- package/src/itinerary/components/PlaceMark.tsx +76 -0
- package/src/itinerary/components/ProfileAnalysisBars.tsx +84 -0
- package/src/itinerary/components/ProfileBar.tsx +215 -0
- package/src/itinerary/components/ProfileHeaderControls.tsx +116 -0
- package/src/itinerary/components/ProfileHeaderFigures.tsx +119 -0
- package/src/itinerary/components/ProfilePaceControl.tsx +97 -0
- package/src/itinerary/components/ProfileStat.tsx +76 -0
- package/src/itinerary/components/ProfileStatStrip.tsx +38 -0
- package/src/itinerary/components/RoadAccessModal.tsx +76 -0
- package/src/itinerary/components/RouteTypeControl.tsx +73 -0
- package/src/itinerary/components/SegmentGroupModal.tsx +312 -0
- package/src/itinerary/components/SegmentGroupRangePicker.tsx +228 -0
- package/src/itinerary/components/StagingCreateFooter.tsx +185 -0
- package/src/itinerary/components/StudioItineraryProfile.tsx +620 -0
- package/src/itinerary/components/SuggestForm.tsx +256 -0
- package/src/itinerary/components/SuggestFormActions.tsx +124 -0
- package/src/itinerary/components/SuggestionResultRow.tsx +98 -0
- package/src/itinerary/components/SuggestionResultsList.tsx +85 -0
- package/src/itinerary/components/WaypointAmenityPicker.tsx +105 -0
- package/src/itinerary/components/WaypointDetailFields.tsx +604 -0
- package/src/itinerary/components/WaypointDetailsModal.tsx +134 -0
- package/src/itinerary/components/WaypointDetailsRows.tsx +707 -0
- package/src/itinerary/components/WaypointDetailsView.tsx +389 -0
- package/src/itinerary/components/WaypointIconCircle.tsx +211 -0
- package/src/itinerary/components/WaypointIconPicker.tsx +82 -0
- package/src/itinerary/components/WaypointMarkers.tsx +293 -0
- package/src/itinerary/components/WaypointPreviewCard.tsx +56 -0
- package/src/itinerary/components/WaypointSectionNav.tsx +151 -0
- package/src/itinerary/components/WaypointSwitcher.tsx +143 -0
- package/src/itinerary/components/WaypointWorkbench.tsx +263 -0
- package/src/itinerary/hooks/useDuplicateDraft.ts +205 -0
- package/src/itinerary/hooks/useDuplicateSource.ts +69 -0
- package/src/itinerary/hooks/useFriendlyNameBanks.ts +26 -0
- package/src/itinerary/hooks/useItineraryEditable.ts +89 -0
- package/src/itinerary/hooks/useItineraryPace.ts +104 -0
- package/src/itinerary/hooks/useItinerarySubject.ts +117 -0
- package/src/itinerary/hooks/useOpenItineraryEditable.ts +39 -0
- package/src/itinerary/hooks/useProfileOverlay.tsx +61 -0
- package/src/itinerary/hooks/useProfileSeries.ts +95 -0
- package/src/itinerary/hooks/useProfileVisibility.ts +149 -0
- package/src/itinerary/hooks/useSeedDraftOrganization.ts +85 -0
- package/src/itinerary/hooks/useSegmentGroupSave.ts +143 -0
- package/src/itinerary/hooks/useStartFromSuggestion.ts +63 -0
- package/src/itinerary/hooks/useStudioItinerary.ts +35 -0
- package/src/itinerary/hooks/useSuggestionPin.ts +36 -0
- package/src/itinerary/hooks/useWaypointCardWords.ts +51 -0
- package/src/itinerary/hooks/useWaypointCreateFollowUp.ts +158 -0
- package/src/itinerary/hooks/useWaypointDetailsEditor.ts +280 -0
- package/src/itinerary/hooks/useWaypointSectionEntries.ts +114 -0
- package/src/itinerary/providers/ActivityGuideProvider.tsx +113 -0
- package/src/itinerary/providers/ItineraryViewProvider.tsx +146 -0
- package/src/itinerary/rules/amenityGlyphs.ts +25 -0
- package/src/itinerary/rules/cursorReadoutData.ts +34 -0
- package/src/itinerary/rules/profileCursor.ts +11 -0
- package/src/itinerary/rules/profileModel.ts +98 -0
- package/src/itinerary/rules/shownFocus.ts +11 -0
- package/src/itinerary/rules/waypointGlyphs.ts +42 -0
- package/src/itinerary/stores/profileHover.ts +54 -0
- package/src/lists/components/AddSegmentButton.tsx +240 -0
- package/src/lists/components/EditActions.tsx +153 -0
- package/src/lists/components/EditorListSection.tsx +117 -0
- package/src/lists/components/EditorSegmentRow.tsx +458 -0
- package/src/lists/components/ItineraryAddSegmentButton.tsx +66 -0
- package/src/lists/components/ItinerarySegmentList.tsx +301 -0
- package/src/lists/components/ItineraryWaypointList.tsx +257 -0
- package/src/lists/components/SegmentList.tsx +549 -0
- package/src/lists/components/SegmentSeam.tsx +292 -0
- package/src/lists/components/WaypointList.tsx +233 -0
- package/src/map/components/ContextMenuPopup.tsx +913 -0
- package/src/map/components/MapAnchoredPopup.tsx +285 -0
- package/src/map/components/SegmentViaPopup.tsx +133 -0
- package/src/map/hooks/useAccessRestrictions.ts +25 -0
- package/src/map/hooks/useEmbedConstraints.ts +359 -0
- package/src/map/hooks/useEmbedDisplaySeed.ts +61 -0
- package/src/map/hooks/useEmbedReady.ts +137 -0
- package/src/map/hooks/useHeldTileSources.ts +65 -0
- package/src/map/hooks/useSegmentColor.ts +24 -0
- package/src/map/hooks/useSpecificationLayers.ts +25 -0
- package/src/map/hooks/useStudioConstraints.ts +135 -0
- package/src/map/hooks/useStudioContextMenu.ts +34 -0
- package/src/map/hooks/useStudioContextMenuWaypoint.ts +119 -0
- package/src/map/hooks/useStudioEditCommitReporter.ts +56 -0
- package/src/map/hooks/useStudioEditEngine.ts +271 -0
- package/src/map/hooks/useStudioEnrichment.ts +117 -0
- package/src/map/hooks/useStudioItinerarySelection.ts +484 -0
- package/src/map/hooks/useStudioLayersScope.ts +34 -0
- package/src/map/hooks/useStudioMapBindings.ts +178 -0
- package/src/map/hooks/useStudioMapEditSeams.ts +161 -0
- package/src/map/hooks/useStudioMapSync.ts +127 -0
- package/src/map/hooks/useStudioOverlay.ts +75 -0
- package/src/map/hooks/useStudioOverlayWithdrawal.ts +52 -0
- package/src/map/hooks/useStudioOverlaysEntitled.ts +12 -0
- package/src/map/hooks/useStudioPeerDrafts.ts +126 -0
- package/src/map/hooks/useStudioPoiLayers.ts +110 -0
- package/src/map/hooks/useStudioPreviewSync.ts +205 -0
- package/src/map/hooks/useStudioSegmentEditing.ts +239 -0
- package/src/map/hooks/useStudioSegmentViaPrompt.ts +38 -0
- package/src/map/hooks/useStudioSplitPicking.ts +411 -0
- package/src/map/hooks/useStudioSuggestionPicking.ts +178 -0
- package/src/map/hooks/useStudioTimestamp.ts +226 -0
- package/src/map/hooks/useStudioUrlState.ts +340 -0
- package/src/map/hooks/useStudioWaypointEditing.ts +251 -0
- package/src/map/hooks/useStudioZoneEditing.ts +260 -0
- package/src/map/hooks/useStudioZoneOriginPicking.ts +129 -0
- package/src/map/hooks/useStudioZoneSelection.ts +240 -0
- package/src/map/hooks/useTileLayers.ts +33 -0
- package/src/map/index.ts +67 -0
- package/src/map/rules/editKeyboard.ts +216 -0
- package/src/map/rules/editTooltip.ts +222 -0
- package/src/map/rules/nearerEscape.ts +107 -0
- package/src/map/rules/poiGlyphs.ts +40 -0
- package/src/modals/components/AppModal.tsx +280 -0
- package/src/modals/components/ConfirmModal.tsx +223 -0
- package/src/modals/components/ExportModal.tsx +538 -0
- package/src/modals/components/LocationPermissionModal.tsx +129 -0
- package/src/modals/components/ModalFooter.tsx +187 -0
- package/src/modals/hooks/useConfirmGate.tsx +209 -0
- package/src/modals/hooks/useDiscardGuard.tsx +168 -0
- package/src/panels/components/EditShortcutHint.tsx +115 -0
- package/src/panels/components/FloatingOverlay.tsx +243 -0
- package/src/panels/components/GlyphPickerGrid.tsx +84 -0
- package/src/panels/components/PanelRouter.tsx +133 -0
- package/src/panels/components/PickerCard.tsx +108 -0
- package/src/panels/components/RadioOptionCard.tsx +116 -0
- package/src/panels/components/SidenavContentBody.tsx +56 -0
- package/src/panels/components/SidenavContentFooter.tsx +27 -0
- package/src/panels/components/SidenavContentHeader.tsx +172 -0
- package/src/panels/components/SidenavFormActions.tsx +96 -0
- package/src/panels/components/StudioFormStack.tsx +44 -0
- package/src/panels/components/StudioHeader.tsx +117 -0
- package/src/panels/components/StudioLayersPanel.tsx +909 -0
- package/src/panels/components/StudioPreferencesPanel.tsx +199 -0
- package/src/panels/rules/studioHeader.ts +68 -0
- package/src/plugins/components/PluginBoundary.tsx +62 -0
- package/src/plugins/components/PluginContextMenuActions.tsx +73 -0
- package/src/plugins/components/PluginControls.tsx +101 -0
- package/src/plugins/components/PluginHeldView.tsx +77 -0
- package/src/plugins/components/PluginMenuItems.tsx +63 -0
- package/src/plugins/components/PluginProfileHeader.tsx +71 -0
- package/src/plugins/components/PluginProfilePlot.tsx +134 -0
- package/src/plugins/components/PluginSlotItems.tsx +55 -0
- package/src/primitives/components/ActivityIcon.tsx +106 -0
- package/src/primitives/components/AllowlistField.tsx +508 -0
- package/src/primitives/components/CopyIconButton.tsx +80 -0
- package/src/primitives/components/DateTimeInput.tsx +133 -0
- package/src/primitives/components/DateTimePickerField.tsx +110 -0
- package/src/primitives/components/DescriptiveMenuItem.tsx +80 -0
- package/src/primitives/components/DialogSubject.tsx +102 -0
- package/src/primitives/components/DisabledMenuItem.tsx +45 -0
- package/src/primitives/components/DisabledReason.tsx +34 -0
- package/src/primitives/components/EmptyState.tsx +186 -0
- package/src/primitives/components/ErrorAlert.tsx +35 -0
- package/src/primitives/components/ErrorBoundary.tsx +55 -0
- package/src/primitives/components/FieldLabel.tsx +34 -0
- package/src/primitives/components/FormErrorAlert.tsx +33 -0
- package/src/primitives/components/GroupLabelledBy.tsx +31 -0
- package/src/primitives/components/LanguageSelect.tsx +139 -0
- package/src/primitives/components/ListSkeleton.tsx +64 -0
- package/src/primitives/components/MarqueeText.tsx +61 -0
- package/src/primitives/components/OrganizationScopeItem.tsx +146 -0
- package/src/primitives/components/OrganizationSelect.tsx +149 -0
- package/src/primitives/components/PointField.tsx +75 -0
- package/src/primitives/components/PrivacyControl.tsx +127 -0
- package/src/primitives/components/RenameInput.tsx +159 -0
- package/src/primitives/components/RequiredLabelWithHelp.tsx +76 -0
- package/src/primitives/components/SegmentIcon.tsx +43 -0
- package/src/primitives/components/SegmentIconLabel.tsx +37 -0
- package/src/primitives/components/SpeedInput.tsx +222 -0
- package/src/primitives/components/StudioSectionBoundary.tsx +56 -0
- package/src/primitives/components/StudioSegmentedControl.tsx +23 -0
- package/src/primitives/components/UnitPickerField.tsx +62 -0
- package/src/primitives/components/UnitPickerGrid.tsx +71 -0
- package/src/primitives/components/WarningAlert.tsx +34 -0
- package/src/primitives/hooks/useCompactLayout.ts +30 -0
- package/src/primitives/hooks/useSpeedControlLabel.ts +28 -0
- package/src/primitives/rules/activityBadge.ts +87 -0
- package/src/publication/components/PublicationBadge.tsx +42 -0
- package/src/publication/components/PublicationDot.tsx +31 -0
- package/src/publication/components/PublicationNotice.tsx +115 -0
- package/src/publication/components/PublicationSettledPill.tsx +43 -0
- package/src/publication/components/PublicationStatus.tsx +52 -0
- package/src/publication/components/UnpublishedPanel.tsx +133 -0
- package/src/publication/hooks/usePublicationHint.ts +235 -0
- package/src/publication/hooks/usePublishAct.ts +101 -0
- package/src/publication/hooks/usePublishItinerary.ts +27 -0
- package/src/publication/hooks/usePublishZone.ts +27 -0
- package/src/publication/hooks/usePublishableScope.ts +23 -0
- package/src/publication/hooks/usePublishedItinerary.ts +83 -0
- package/src/rows/components/ReadOnlySegmentRow.tsx +155 -0
- package/src/rows/components/RouteMetricLine.tsx +90 -0
- package/src/rows/components/RowMetadata.tsx +92 -0
- package/src/rows/components/SegmentRow.tsx +381 -0
- package/src/rows/components/SegmentRowActions.tsx +187 -0
- package/src/rows/components/SegmentRowBody.tsx +197 -0
- package/src/rows/components/StudioToggleRow.tsx +71 -0
- package/src/rows/components/SuggestionList.tsx +100 -0
- package/src/rows/components/SuggestionRowLayout.tsx +164 -0
- package/src/rows/components/WaypointRow.tsx +176 -0
- package/src/rows/components/WaypointRowLayout.tsx +279 -0
- package/src/rows/components/lockChrome.tsx +106 -0
- package/src/rules/menuActions.ts +149 -0
- package/src/rules/sizing.ts +127 -0
- package/src/rules/studioConfig.ts +719 -0
- package/src/search/components/CategoryTabs.tsx +136 -0
- package/src/search/components/ResultRow.tsx +242 -0
- package/src/search/components/ResultsList.tsx +182 -0
- package/src/search/components/SearchInput.tsx +100 -0
- package/src/search/components/SearchTab.tsx +614 -0
- package/src/sections/components/RailSwitcher.tsx +179 -0
- package/src/sections/components/SectionCard.tsx +48 -0
- package/src/sections/components/SectionHead.tsx +42 -0
- package/src/sections/components/SectionTabs.tsx +231 -0
- package/src/segments/components/SegmentColorCircle.tsx +118 -0
- package/src/segments/components/SegmentColorPicker.tsx +134 -0
- package/src/segments/components/SegmentModeControl.tsx +118 -0
- package/src/segments/components/SegmentRowMenu.tsx +449 -0
- package/src/segments/components/SegmentRowPopover.tsx +163 -0
- package/src/segments/components/SegmentSelect.tsx +116 -0
- package/src/segments/components/SegmentSpeedControl.tsx +299 -0
- package/src/share/components/ShareLinkManage.tsx +699 -0
- package/src/share/components/ShareModal.tsx +182 -0
- package/src/share/components/ShareSheet.tsx +178 -0
- package/src/share/components/ShareViewModal.tsx +131 -0
- package/src/share/hooks/useCanManageShareLink.ts +51 -0
- package/src/studio/components/MountayaStudio.tsx +1170 -0
- package/src/studio/components/MountayaStudioViewer.tsx +775 -0
- package/src/studio/hooks/useEmbeddedStudioConfig.ts +60 -0
- package/src/studio/hooks/useViewerActivation.ts +47 -0
- package/src/studio/hooks/useViewerCollectionSpecification.ts +58 -0
- package/src/studio/hooks/useViewerEmbedConfig.ts +74 -0
- package/src/studio/hooks/useViewerFraming.ts +211 -0
- package/src/studio/hooks/useViewerMapBindings.ts +109 -0
- package/src/styles.css +3994 -0
- package/src/testing/collections.ts +40 -0
- package/src/testing/hostRegistry.tsx +109 -0
- package/src/testing/index.ts +65 -0
- package/src/testing/itinerary.ts +297 -0
- package/src/testing/mountayaClient.tsx +218 -0
- package/src/testing/viewer.tsx +171 -0
- package/src/theme/components/StudioPortalScope.tsx +130 -0
- package/src/theme/hooks/useResolvedStudioTheme.ts +37 -0
- package/src/theme/rules/density.ts +157 -0
- package/src/theme/rules/mountayaStudioTheme.ts +114 -0
- package/src/theme/rules/passwordManager.ts +20 -0
- package/src/theme/rules/tokenStyle.ts +18 -0
- package/src/theme/rules/tokens.ts +71 -0
- package/src/theme/rules/tone.ts +34 -0
- package/src/theme/rules/zIndex.ts +40 -0
- package/src/video/components/CameraStep.tsx +82 -0
- package/src/video/components/DirectingScrim.tsx +28 -0
- package/src/video/components/DirectorChat.tsx +79 -0
- package/src/video/components/FormatStep.tsx +487 -0
- package/src/video/components/ModeCards.tsx +141 -0
- package/src/video/components/PlanNumberField.tsx +54 -0
- package/src/video/components/PreviewControls.tsx +212 -0
- package/src/video/components/PreviewStage.tsx +319 -0
- package/src/video/components/PreviewSurface.tsx +247 -0
- package/src/video/components/PreviewWatermark.tsx +77 -0
- package/src/video/components/ProfileOverlayCanvas.tsx +195 -0
- package/src/video/components/ProfileStep.tsx +254 -0
- package/src/video/components/RecordProgress.tsx +117 -0
- package/src/video/components/ReviewStep.tsx +244 -0
- package/src/video/components/ShotList.tsx +452 -0
- package/src/video/components/VideoExportWizard.tsx +827 -0
- package/src/video/components/WizardDirectingIndicator.tsx +57 -0
- package/src/video/components/WizardFooter.tsx +112 -0
- package/src/video/hooks/usePreviewPlanRefresh.ts +91 -0
- package/src/video/hooks/useVideoItinerarySubject.ts +18 -0
- package/src/video/hooks/useVideoOrganizationId.ts +30 -0
- package/src/video/hooks/useVideoPreviewSeed.ts +203 -0
- package/src/video/hooks/useVideoProfileSeed.ts +53 -0
- package/src/video/hooks/useVideoPublication.ts +29 -0
- package/src/video/hooks/useVideoRouteReady.ts +52 -0
- package/src/video/hooks/useVideoRouteSync.ts +100 -0
- package/src/video/hooks/useVideoTileTransform.ts +88 -0
- package/src/video/index.ts +24 -0
- package/src/video/providers/DirectorChatProvider.tsx +293 -0
- package/src/video/rules/changeTo.ts +20 -0
- package/src/zone/components/ZoneActionsMenu.tsx +305 -0
- package/src/zone/components/ZoneAvailabilityFields.tsx +98 -0
- package/src/zone/components/ZoneForm.tsx +622 -0
- package/src/zone/components/ZoneInheritedContext.tsx +70 -0
- package/src/zone/components/ZoneLevelSelect.tsx +86 -0
- package/src/zone/components/ZoneMetadataFields.tsx +89 -0
- package/src/zone/components/ZoneMethodSelect.tsx +90 -0
- package/src/zone/components/ZoneModeSelect.tsx +98 -0
- package/src/zone/components/ZoneRangeInput.tsx +129 -0
- package/src/zone/components/ZoneReachabilityFields.tsx +120 -0
- package/src/zone/components/ZoneSubHeader.tsx +188 -0
- package/src/zone/components/ZoneVisibility.tsx +94 -0
- package/src/zone/hooks/useStudioReachabilityStart.ts +79 -0
- package/src/zone/hooks/useStudioZonesBrowsed.ts +32 -0
|
@@ -0,0 +1,1170 @@
|
|
|
1
|
+
import { Box, Group } from "@mantine/core";
|
|
2
|
+
import { useReducedMotion } from "@mantine/hooks";
|
|
3
|
+
import type { CSSProperties, ReactNode, RefObject } from "react";
|
|
4
|
+
import { lazy, type ReactElement, Suspense, useEffect, useMemo, useRef, useState } from "react";
|
|
5
|
+
|
|
6
|
+
import { useMountaya } from "@mountaya/client-react";
|
|
7
|
+
import type { MountayaMap, MountayaMapOptions } from "@mountaya/elements";
|
|
8
|
+
import {
|
|
9
|
+
type ElementStyle,
|
|
10
|
+
MountayaElementsProvider,
|
|
11
|
+
useLatestRef,
|
|
12
|
+
} from "@mountaya/elements-react";
|
|
13
|
+
import { EditorMapView } from "@mountaya/elements-react/editor";
|
|
14
|
+
import type { CollabEngine } from "@mountaya/elements/collab";
|
|
15
|
+
import type { MapClient, MapViewport, TileRequestTransform } from "@mountaya/elements/editor";
|
|
16
|
+
import type { EmbedProfileSections } from "@mountaya/elements/profile";
|
|
17
|
+
import { timezoneViewport } from "@mountaya/elements/timezone";
|
|
18
|
+
import {
|
|
19
|
+
defaultStudioConfig,
|
|
20
|
+
type StudioConfig,
|
|
21
|
+
type StudioConstraintResolver,
|
|
22
|
+
type StudioToolContext,
|
|
23
|
+
type StudioUrlSeam,
|
|
24
|
+
selectActiveDraft,
|
|
25
|
+
} from "@mountaya/studio";
|
|
26
|
+
import { teardownActiveEditSession } from "@mountaya/studio/handlers";
|
|
27
|
+
|
|
28
|
+
import { MapAlerts } from "../../alerts/components/MapAlerts.js";
|
|
29
|
+
import { PoiOverlayMenu } from "../../controls/components/PoiOverlayMenu.js";
|
|
30
|
+
import { StudioControls } from "../../controls/components/StudioControls.js";
|
|
31
|
+
import { STUDIO_CONTROL_STACK_GAP } from "../../controls/rules/constants.js";
|
|
32
|
+
import { useStudioCopilotInset } from "../../copilot/hooks/useStudioCopilotInset.js";
|
|
33
|
+
import { AgentDrivingGuard } from "../../guards/components/AgentDrivingGuard.js";
|
|
34
|
+
import { UnsavedEditsGuard } from "../../guards/components/UnsavedEditsGuard.js";
|
|
35
|
+
import { useAgentDriving } from "../../headless/hooks/useAgentDriving.js";
|
|
36
|
+
import { useStudioDispatch } from "../../headless/hooks/useStudioDispatch.js";
|
|
37
|
+
import { useUiStore } from "../../headless/hooks/useUiStore.js";
|
|
38
|
+
import { useStudioToolContext } from "../../headless/providers/studio.js";
|
|
39
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
40
|
+
import { useStudioSessionHeld } from "../../host/hooks/useStudioSessionHeld.js";
|
|
41
|
+
import { useStudioHostRegistry } from "../../host/providers/hostRegistry.js";
|
|
42
|
+
import { useStudioHostVideo } from "../../host/providers/hostVideo.js";
|
|
43
|
+
import { StudioEditorRootProvider } from "../../internal/providers/studioEditorRoot.js";
|
|
44
|
+
import { EDITOR_ROOT_ATTRIBUTE } from "../../internal/rules/editorRoot.js";
|
|
45
|
+
import { ItineraryProfilePanel } from "../../itinerary/components/ItineraryProfilePanel.js";
|
|
46
|
+
import { ItineraryProfileSheet } from "../../itinerary/components/ItineraryProfileSheet.js";
|
|
47
|
+
import { useProfileVisibility } from "../../itinerary/hooks/useProfileVisibility.js";
|
|
48
|
+
import { useWaypointCreateFollowUp } from "../../itinerary/hooks/useWaypointCreateFollowUp.js";
|
|
49
|
+
import { SegmentViaPopup } from "../../map/components/SegmentViaPopup.js";
|
|
50
|
+
import { useStudioMapBindings } from "../../map/hooks/useStudioMapBindings.js";
|
|
51
|
+
import { PanelRouter } from "../../panels/components/PanelRouter.js";
|
|
52
|
+
import { StudioSectionBoundary } from "../../primitives/components/StudioSectionBoundary.js";
|
|
53
|
+
import { STUDIO_COPILOT_SLIDE_MS, STUDIO_PROMPT_COLUMN_WIDTH } from "../../rules/sizing.js";
|
|
54
|
+
import { SearchTab } from "../../search/components/SearchTab.js";
|
|
55
|
+
import { useEmbeddedStudioConfig } from "../hooks/useEmbeddedStudioConfig.js";
|
|
56
|
+
|
|
57
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
58
|
+
const SECTIONS = [
|
|
59
|
+
"actions",
|
|
60
|
+
"agentLock",
|
|
61
|
+
"alerts",
|
|
62
|
+
"confirm",
|
|
63
|
+
"contextmenu",
|
|
64
|
+
"controls",
|
|
65
|
+
"copilot",
|
|
66
|
+
"duplicate",
|
|
67
|
+
"editCollection",
|
|
68
|
+
"editor",
|
|
69
|
+
"export",
|
|
70
|
+
"failure",
|
|
71
|
+
"formError",
|
|
72
|
+
"geolocate",
|
|
73
|
+
"itineraryForm",
|
|
74
|
+
"layers",
|
|
75
|
+
"manageCollections",
|
|
76
|
+
"map",
|
|
77
|
+
"newCollection",
|
|
78
|
+
"organizationScope",
|
|
79
|
+
"organizationSelect",
|
|
80
|
+
"panelError",
|
|
81
|
+
"preferences",
|
|
82
|
+
"privacy",
|
|
83
|
+
"profile",
|
|
84
|
+
"prompt",
|
|
85
|
+
"publish",
|
|
86
|
+
"search",
|
|
87
|
+
"segmentEditing",
|
|
88
|
+
"segmentEditor",
|
|
89
|
+
"segmentGroup",
|
|
90
|
+
"segments",
|
|
91
|
+
"share",
|
|
92
|
+
"tabs",
|
|
93
|
+
"waypointEditor",
|
|
94
|
+
"zoneForm",
|
|
95
|
+
] as const;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* LazyContextMenuPopup is code-split behind the flag that opens it, on the
|
|
99
|
+
* `LazyShareModal` precedent.
|
|
100
|
+
*
|
|
101
|
+
* Prefixed rather than named for the component: a bare `ContextMenuPopup` here would be a
|
|
102
|
+
* second declaration of a name this package already declares, a lazy wrapper wearing the
|
|
103
|
+
* component's name.
|
|
104
|
+
*/
|
|
105
|
+
const LazyContextMenuPopup = lazy(() =>
|
|
106
|
+
import("../../map/components/ContextMenuPopup.js").then((module) => ({
|
|
107
|
+
default: module.ContextMenuPopup,
|
|
108
|
+
})),
|
|
109
|
+
);
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* LazyExportModal is code-split behind the flag that opens it, on the
|
|
113
|
+
* `LazyShareModal` precedent.
|
|
114
|
+
*
|
|
115
|
+
* Prefixed rather than named for the component: a bare `ExportModal` here would be a second
|
|
116
|
+
* declaration of a name this package already declares, a lazy wrapper wearing the component's
|
|
117
|
+
* name.
|
|
118
|
+
*/
|
|
119
|
+
const LazyExportModal = lazy(() =>
|
|
120
|
+
import("../../modals/components/ExportModal.js").then((module) => ({
|
|
121
|
+
default: module.ExportModal,
|
|
122
|
+
})),
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* LazySegmentGroupModal is code-split behind the flag that opens it, on the
|
|
127
|
+
* `LazyShareModal` precedent.
|
|
128
|
+
*
|
|
129
|
+
* Prefixed rather than named for the component: this wraps a PUBLISHED component, so a bare
|
|
130
|
+
* `SegmentGroupModal` here would be a second declaration of a name this package
|
|
131
|
+
* already carries, a lazy wrapper wearing the component's name.
|
|
132
|
+
*/
|
|
133
|
+
const LazySegmentGroupModal = lazy(() =>
|
|
134
|
+
import("../../itinerary/components/SegmentGroupModal.js").then((module) => ({
|
|
135
|
+
default: module.SegmentGroupModal,
|
|
136
|
+
})),
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* LazyDuplicateItineraryModal is code-split behind the flag that opens it, on the
|
|
141
|
+
* `LazyShareModal` precedent.
|
|
142
|
+
*
|
|
143
|
+
* Prefixed rather than named for the component: a bare `DuplicateItineraryModal` here would be
|
|
144
|
+
* a second declaration of a name this package already declares, a lazy wrapper wearing the
|
|
145
|
+
* component's name.
|
|
146
|
+
*/
|
|
147
|
+
const LazyDuplicateItineraryModal = lazy(() =>
|
|
148
|
+
import("../../itinerary/components/DuplicateItineraryModal.js").then((module) => ({
|
|
149
|
+
default: module.DuplicateItineraryModal,
|
|
150
|
+
})),
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* LazyWaypointDetailsModal is code-split behind the flag that opens it, on the `LazyShareModal`
|
|
155
|
+
* precedent, and it is the one that most needs the boundary: the dialog brings a date-time
|
|
156
|
+
* picker and a colour picker that a studio nobody has clicked a waypoint in should not download.
|
|
157
|
+
*
|
|
158
|
+
* The local binding is named apart from the component it loads, like every other lazy mount here.
|
|
159
|
+
*/
|
|
160
|
+
const LazyWaypointDetailsModal = lazy(() =>
|
|
161
|
+
import("../../itinerary/components/WaypointDetailsModal.js").then((module) => ({
|
|
162
|
+
default: module.WaypointDetailsModal,
|
|
163
|
+
})),
|
|
164
|
+
);
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* LazyRoadAccessModal is the dialog a restricted stretch's warning icon opens, code-split behind
|
|
168
|
+
* the flag that opens it: a reader who never clicks a warning never downloads it.
|
|
169
|
+
*/
|
|
170
|
+
const LazyRoadAccessModal = lazy(() =>
|
|
171
|
+
import("../../itinerary/components/RoadAccessModal.js").then((module) => ({
|
|
172
|
+
default: module.RoadAccessModal,
|
|
173
|
+
})),
|
|
174
|
+
);
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* LazyDirectionsModal is the dialog that prints an itinerary's turn-by-turn directions,
|
|
178
|
+
* code-split behind the flag that opens it: a reader who never prints never downloads it, and the
|
|
179
|
+
* PDF renderer behind it loads only when the sheet is generated.
|
|
180
|
+
*/
|
|
181
|
+
const LazyDirectionsModal = lazy(() =>
|
|
182
|
+
import("../../directions/components/DirectionsModal.js").then((module) => ({
|
|
183
|
+
default: module.DirectionsModal,
|
|
184
|
+
})),
|
|
185
|
+
);
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* LazyLocationPermissionModal is code-split behind the flag that opens it, on the
|
|
189
|
+
* `LazyShareModal` precedent.
|
|
190
|
+
*
|
|
191
|
+
* Prefixed rather than named for the component: a bare `LocationPermissionModal` here would be
|
|
192
|
+
* a second declaration of a name this package already declares, a lazy wrapper wearing the
|
|
193
|
+
* component's name.
|
|
194
|
+
*/
|
|
195
|
+
const LazyLocationPermissionModal = lazy(() =>
|
|
196
|
+
import("../../modals/components/LocationPermissionModal.js").then((module) => ({
|
|
197
|
+
default: module.LocationPermissionModal,
|
|
198
|
+
})),
|
|
199
|
+
);
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* LazyCopilotPanel is code-split behind the flag that opens it, on the
|
|
203
|
+
* `LazyShareModal` precedent.
|
|
204
|
+
*
|
|
205
|
+
* Prefixed rather than named for the component: a bare `CopilotPanel` here would be a second
|
|
206
|
+
* declaration of a name this package already declares, a lazy wrapper wearing the component's
|
|
207
|
+
* name.
|
|
208
|
+
*/
|
|
209
|
+
const LazyCopilotPanel = lazy(() =>
|
|
210
|
+
import("../../agent/components/CopilotPanel.js").then((module) => ({
|
|
211
|
+
default: module.CopilotPanel,
|
|
212
|
+
})),
|
|
213
|
+
);
|
|
214
|
+
|
|
215
|
+
const LazyShareModal = lazy(() =>
|
|
216
|
+
import("../../share/components/ShareModal.js").then((module) => ({ default: module.ShareModal })),
|
|
217
|
+
);
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* LazyShareCollectionModal is code-split for the same reason as the itinerary share
|
|
221
|
+
* modal: it pulls in the mint/rotate/disable mutation wiring and the confirm dialogs
|
|
222
|
+
* behind the shared link shell, and is opened rarely. React.lazy needs a default
|
|
223
|
+
* export, so the named modal export is adapted here at the single mount site.
|
|
224
|
+
*
|
|
225
|
+
* Prefixed rather than named for the component, like every lazy mount here: a bare
|
|
226
|
+
* `ShareCollectionModal` here would be a second declaration of a name this package already
|
|
227
|
+
* declares, a lazy wrapper wearing the component's name.
|
|
228
|
+
*/
|
|
229
|
+
const LazyShareCollectionModal = lazy(() =>
|
|
230
|
+
import("../../collections/components/ShareCollectionModal.js").then((module) => ({
|
|
231
|
+
default: module.ShareCollectionModal,
|
|
232
|
+
})),
|
|
233
|
+
);
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* LazyManageCollectionsModal, LazyNewCollectionModal and LazyEditCollectionModal are code-split
|
|
237
|
+
* behind the flags that open them, on the `LazyShareModal` precedent: each is opened rarely, and
|
|
238
|
+
* the new and edit dialogs bring the collection form between them.
|
|
239
|
+
*
|
|
240
|
+
* Prefixed rather than named for the component, since each wraps a component this package
|
|
241
|
+
* declares under that name.
|
|
242
|
+
*/
|
|
243
|
+
const LazyManageCollectionsModal = lazy(() =>
|
|
244
|
+
import("../../collections/components/ManageCollectionsModal.js").then((module) => ({
|
|
245
|
+
default: module.ManageCollectionsModal,
|
|
246
|
+
})),
|
|
247
|
+
);
|
|
248
|
+
|
|
249
|
+
const LazyNewCollectionModal = lazy(() =>
|
|
250
|
+
import("../../collections/components/NewCollectionModal.js").then((module) => ({
|
|
251
|
+
default: module.NewCollectionModal,
|
|
252
|
+
})),
|
|
253
|
+
);
|
|
254
|
+
|
|
255
|
+
const LazyEditCollectionModal = lazy(() =>
|
|
256
|
+
import("../../collections/components/EditCollectionModal.js").then((module) => ({
|
|
257
|
+
default: module.EditCollectionModal,
|
|
258
|
+
})),
|
|
259
|
+
);
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* LazyVideoExportWizard is the export-as-video wizard, code-split behind the export that opens it:
|
|
263
|
+
* it brings a second map, the encoder and the camera's trajectory maths, which a reader who never
|
|
264
|
+
* exports a video never downloads.
|
|
265
|
+
*
|
|
266
|
+
* Prefixed rather than named for the component, like every lazy mount here: the wizard is
|
|
267
|
+
* published from `@mountaya/studio-react/video`, and a bare `VideoExportWizard` here would be a
|
|
268
|
+
* second declaration of its name.
|
|
269
|
+
*/
|
|
270
|
+
const LazyVideoExportWizard = lazy(() =>
|
|
271
|
+
import("../../video/components/VideoExportWizard.js").then((module) => ({
|
|
272
|
+
default: module.VideoExportWizard,
|
|
273
|
+
})),
|
|
274
|
+
);
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* studioRootStyle sizes the studio root to the full dynamic viewport and makes it
|
|
278
|
+
* the positioning context for the absolute-positioned chrome below; Mantine has no
|
|
279
|
+
* dvh prop. Hoisted so the object is a stable reference across renders.
|
|
280
|
+
*/
|
|
281
|
+
const studioRootStyle = { height: "100dvh", position: "relative" } satisfies CSSProperties;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* elevationAnchorBaseStyle is the full-width bottom anchor inset from both edges; the
|
|
285
|
+
* zIndex sits the panel above the map canvas but below MapLibre popups + portalled
|
|
286
|
+
* modals. Hoisted so the object is a stable reference across renders.
|
|
287
|
+
*/
|
|
288
|
+
const elevationAnchorBaseStyle = {
|
|
289
|
+
bottom: 16,
|
|
290
|
+
left: 16,
|
|
291
|
+
position: "absolute",
|
|
292
|
+
right: 16,
|
|
293
|
+
zIndex: 2,
|
|
294
|
+
} satisfies CSSProperties;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* dockedProfileSections is the docked profile's structural sections for the
|
|
298
|
+
* height estimate the visibility resolver reads. The analysis section is reserved
|
|
299
|
+
* conservatively even though it is drawn only for a viewer with the `profile-insights`
|
|
300
|
+
* entitlement (`withInsights`) and on hover or focus, so the estimate errs
|
|
301
|
+
* toward clearing an open floating panel rather than under-reserving and letting the
|
|
302
|
+
* panel collide with the profile. Hoisted so the object is a stable reference the
|
|
303
|
+
* visibility hook keys on across renders.
|
|
304
|
+
*/
|
|
305
|
+
const dockedProfileSections = {
|
|
306
|
+
showAnalysis: true,
|
|
307
|
+
showCharacteristics: true,
|
|
308
|
+
showElevation: true,
|
|
309
|
+
} satisfies EmbedProfileSections;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* promptAnchorBaseStyle is the absolute-positioned anchor over the map canvas holding
|
|
313
|
+
* the agent prompt panel and the POI control; the zIndex sits the row above the map
|
|
314
|
+
* chrome. Hoisted so the object is a stable reference across renders.
|
|
315
|
+
*/
|
|
316
|
+
const promptAnchorBaseStyle = {
|
|
317
|
+
left: 16,
|
|
318
|
+
position: "absolute",
|
|
319
|
+
top: 16,
|
|
320
|
+
zIndex: 10,
|
|
321
|
+
} satisfies CSSProperties;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* promptRowStyle is the positioning context the search results dropdown drops
|
|
325
|
+
* from. Sized to the row's content (the prompt column plus the gap plus the POI
|
|
326
|
+
* button), it lets the absolutely-positioned dropdown span the row's full width
|
|
327
|
+
* so its right edge lands flush with the POI button's, whatever width the
|
|
328
|
+
* button's status badge gives it. Hoisted so the object is a stable reference
|
|
329
|
+
* across renders.
|
|
330
|
+
*/
|
|
331
|
+
const promptRowStyle = { position: "relative", width: "max-content" } satisfies CSSProperties;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* MountayaStudioProps state the seams a studio cannot answer for itself.
|
|
335
|
+
*
|
|
336
|
+
* Everything on this list is a HOST decision rather than a missing feature, and each one has
|
|
337
|
+
* an answer only the host has: which credential its tiles carry, where its terrain comes from,
|
|
338
|
+
* what its camera is allowed to do, which slice of its router the studio may patch, which
|
|
339
|
+
* collaboration sessions it runs, and which of its own surfaces it wants dropped into the
|
|
340
|
+
* layout. Everything else (the map lifecycle, the bus, the store, the viewer, the copy, the
|
|
341
|
+
* alerts) arrives through `MountayaStudioHost` above this component and is never repeated here.
|
|
342
|
+
*/
|
|
343
|
+
export interface MountayaStudioProps {
|
|
344
|
+
/**
|
|
345
|
+
* A class of your own on the editor's root element.
|
|
346
|
+
*
|
|
347
|
+
* Merged with nothing (this root carries no class of the package's own), so it simply lands.
|
|
348
|
+
* What it is FOR is the case the host's `className` cannot reach: the editor is one child of the
|
|
349
|
+
* host, and a layout that sizes the editor differently from the chrome beside it has to name the
|
|
350
|
+
* editor.
|
|
351
|
+
*
|
|
352
|
+
* A styling hatch, which a surface takes when a host places it itself, as
|
|
353
|
+
* `apiShape.test.tsx` records.
|
|
354
|
+
*/
|
|
355
|
+
readonly className?: string | undefined;
|
|
356
|
+
/**
|
|
357
|
+
* Inline style on the editor's root element, merged OVER the layout this surface needs.
|
|
358
|
+
*
|
|
359
|
+
* `ElementStyle` rather than React's `CSSProperties`, so `style={{ "--mtya-accent": "#7048e8" }}`
|
|
360
|
+
* type-checks: that spelling is the documented theming seam and `CSSProperties` refuses it.
|
|
361
|
+
*
|
|
362
|
+
* The root's own `height: 100dvh` and `position: relative` are written first and a value here
|
|
363
|
+
* wins, which is deliberate: an editor embedded in a panel rather than filling a window has to
|
|
364
|
+
* be able to say `style={{ height: "100%" }}`, which the root's own values would otherwise
|
|
365
|
+
* refuse from outside.
|
|
366
|
+
*/
|
|
367
|
+
readonly style?: ElementStyle | undefined;
|
|
368
|
+
/**
|
|
369
|
+
* The client the map draws through.
|
|
370
|
+
*
|
|
371
|
+
* Omitted, it is the HOST's client, which is the right answer wherever one credential serves
|
|
372
|
+
* both the reads and the tiles. State it where the map's does not match (a signed-in studio
|
|
373
|
+
* that rides a session cookie for tiles and a key for everything else), and the two halves
|
|
374
|
+
* stay independent.
|
|
375
|
+
*
|
|
376
|
+
* Whichever client ends up here is also what the tile transform is DERIVED from: its
|
|
377
|
+
* browser-safe credential, its tile-API origin, its language. That is why the two are separate
|
|
378
|
+
* props rather than one seam and why neither is required: see `transformRequest` below.
|
|
379
|
+
*
|
|
380
|
+
* Its credential is held to the host's rule: under a host rendering the Embedded Studio (the
|
|
381
|
+
* default), a publishable key given no session token, and a session token minted for another
|
|
382
|
+
* surface than `studio-embedded`, are refused with a configuration error before the map draws a
|
|
383
|
+
* tile; a share token and the browser's own session are taken, and under a host declaring
|
|
384
|
+
* `data.surface: "embedding"` (Mountaya's hosted embed) a key with any session, or none, is
|
|
385
|
+
* accepted. While its session's first token is on its way, the map is not built, so none of its
|
|
386
|
+
* requests goes out without the token; the host waits the same way for its own client only.
|
|
387
|
+
*
|
|
388
|
+
* Its credential also decides the map's credit line. A client carrying a publishable key draws
|
|
389
|
+
* the tile credits, always: the page it is mounted on answers for the licences of the tiles it
|
|
390
|
+
* shows. A client riding the browser's own session, which only Mountaya's own pages hold,
|
|
391
|
+
* draws none.
|
|
392
|
+
*/
|
|
393
|
+
readonly mapClient?: MountayaMapOptions["client"] | undefined;
|
|
394
|
+
/**
|
|
395
|
+
* Overrides the transform that stamps a credential onto each tile request.
|
|
396
|
+
*
|
|
397
|
+
* Omitted, the map derives one from whichever client is drawing it: its browser-safe
|
|
398
|
+
* credential, its tile-API origin as the ONLY host allowed to receive that credential, and
|
|
399
|
+
* its language. That derivation is narrower than anything a caller would write by hand:
|
|
400
|
+
* it follows a client repointed at a local stack or a proxy, where a hand-written origin
|
|
401
|
+
* would keep naming the public host and silently authenticate nothing.
|
|
402
|
+
*
|
|
403
|
+
* Supply one for what the credential projection cannot know: a share token scoped to a
|
|
404
|
+
* single path prefix, a `surface=published` opt-in, an origin the client does not speak to.
|
|
405
|
+
* `createTransformRequest` from `@mountaya/elements` builds it, and takes `scoped` and
|
|
406
|
+
* `next` for exactly those cases.
|
|
407
|
+
*
|
|
408
|
+
* A secret-key client projects no credential at all, so the derived default authenticates
|
|
409
|
+
* as nobody rather than putting a server-side key on a map.
|
|
410
|
+
*/
|
|
411
|
+
readonly transformRequest?: TileRequestTransform | undefined;
|
|
412
|
+
/**
|
|
413
|
+
* The terrain tiles the base map bakes its relief from, as a TileJSON or XYZ template.
|
|
414
|
+
*
|
|
415
|
+
* A URL rather than a provider, because every DEM source this speaks to is one of those two,
|
|
416
|
+
* and which one serves elevation (under whose key) is the host's answer.
|
|
417
|
+
*
|
|
418
|
+
* The answers, most explicit first: this prop, then the host's `assets.demUrl`, then the
|
|
419
|
+
* layers manifest's own `elevation`. Set none of them and the map renders flat rather than
|
|
420
|
+
* firing a request that cannot succeed.
|
|
421
|
+
*/
|
|
422
|
+
readonly demTilesUrl?: string | undefined;
|
|
423
|
+
/**
|
|
424
|
+
* Which controls the studio offers, and which terrains and overlays it may show.
|
|
425
|
+
*
|
|
426
|
+
* It is a prop rather than something the studio resolves because both halves of the resolution
|
|
427
|
+
* are the host's: whose stored defaults apply, and which terrains and overlays their viewers are
|
|
428
|
+
* offered. Spread the default and narrow what you mean to narrow.
|
|
429
|
+
*
|
|
430
|
+
* @default defaultStudioConfig, everything on and restricted to nothing
|
|
431
|
+
*/
|
|
432
|
+
readonly config?: StudioConfig | undefined;
|
|
433
|
+
/**
|
|
434
|
+
* Whether the map's WebGL context preserves its drawing buffer.
|
|
435
|
+
*
|
|
436
|
+
* Keep it off unless something reads the canvas out of band (a session recorder, a screenshot
|
|
437
|
+
* service): preserving the buffer costs a copy per frame on every pan.
|
|
438
|
+
*
|
|
439
|
+
* @default false
|
|
440
|
+
*/
|
|
441
|
+
readonly preserveDrawingBuffer?: boolean | undefined;
|
|
442
|
+
/**
|
|
443
|
+
* The camera's limits: a zoom floor and ceiling, and a boundary it may not leave.
|
|
444
|
+
*
|
|
445
|
+
* A RESOLVER rather than a value, so the host keeps which organization is authoritative and
|
|
446
|
+
* how a geofence is spelled on its wire. Omitted, the camera is unconstrained.
|
|
447
|
+
*/
|
|
448
|
+
readonly constraints?: StudioConstraintResolver | undefined;
|
|
449
|
+
/**
|
|
450
|
+
* The slice of the host's URL the studio mirrors its map state into, and restores it from on
|
|
451
|
+
* mount.
|
|
452
|
+
*
|
|
453
|
+
* Two answers, most explicit first: this prop, then the host's `behavior.url`, the seam the
|
|
454
|
+
* verbs write through. A host that states the seam on `MountayaStudioHost` states it once.
|
|
455
|
+
* With neither, the studio still works and does not survive a reload: the terrain, the
|
|
456
|
+
* overlay, the enrichments and the time offset are held in the store alone.
|
|
457
|
+
*
|
|
458
|
+
* @default the host's `behavior.url`, and the inert seam where the host states none
|
|
459
|
+
*/
|
|
460
|
+
readonly url?: StudioUrlSeam | undefined;
|
|
461
|
+
/**
|
|
462
|
+
* The live collaboration session for the open itinerary.
|
|
463
|
+
*
|
|
464
|
+
* Separate from the zone's, because the two resources are edited through different tools and a
|
|
465
|
+
* reader can hold a lock on one while another holds the other. Omitted, the editor works
|
|
466
|
+
* exactly as it does for a single author.
|
|
467
|
+
*/
|
|
468
|
+
readonly collabEngine?: CollabEngine | null | undefined;
|
|
469
|
+
/**
|
|
470
|
+
* The live collaboration session for the open zone.
|
|
471
|
+
*
|
|
472
|
+
* The zone half of the pair above, and independent of it for the same reason. Omitted, zone
|
|
473
|
+
* editing works exactly as it does for a single author.
|
|
474
|
+
*/
|
|
475
|
+
readonly zoneCollabEngine?: CollabEngine | null | undefined;
|
|
476
|
+
/**
|
|
477
|
+
* The Google Maps key the Street View surfaces probe coverage and open a panorama with.
|
|
478
|
+
*
|
|
479
|
+
* Omitted, the pegman and the context menu's Street View action are not offered, which is
|
|
480
|
+
* the honest absence: a control that opens nothing is worse than one that is not there.
|
|
481
|
+
*/
|
|
482
|
+
readonly googleMapsApiKey?: string | undefined;
|
|
483
|
+
/** The draggable handle a reader drops onto the map to open Street View. */
|
|
484
|
+
readonly streetViewHandle?: ReactNode;
|
|
485
|
+
/**
|
|
486
|
+
* The elevation panel, drawn inside the studio's own docked sheet.
|
|
487
|
+
*
|
|
488
|
+
* Omitted, the sheet draws the studio's own profile ({@link ItineraryProfilePanel}), as
|
|
489
|
+
* Mountaya's map studio does. Pass a render prop to draw another in its place, or one that
|
|
490
|
+
* returns `null` to draw none.
|
|
491
|
+
*
|
|
492
|
+
* A render prop rather than a node, because the sheet resolves how much room the panel has
|
|
493
|
+
* from the live geometry around it (an open floating panel collapses the profile to its
|
|
494
|
+
* stat bar), and that answer is the studio's to make and the panel's to obey.
|
|
495
|
+
*
|
|
496
|
+
* @example
|
|
497
|
+
* ```tsx
|
|
498
|
+
* const profile = (collapsed: boolean) => (
|
|
499
|
+
* <ItineraryProfilePanel collapsed={collapsed} showAnalysis={false} />
|
|
500
|
+
* );
|
|
501
|
+
*
|
|
502
|
+
* <MountayaStudio elevationPanel={profile} />;
|
|
503
|
+
* ```
|
|
504
|
+
*/
|
|
505
|
+
readonly elevationPanel?: ((collapsed: boolean) => ReactNode) | undefined;
|
|
506
|
+
/**
|
|
507
|
+
* The host's own portalled surfaces, mounted inside the studio's element context so they
|
|
508
|
+
* read the same glyphs, copy and map.
|
|
509
|
+
*
|
|
510
|
+
* Rendered unconditionally: whether a wizard's chunk is loaded is the host's decision, and
|
|
511
|
+
* every one of these gates on a store slot the host can read through `useUiStore`.
|
|
512
|
+
*/
|
|
513
|
+
readonly modals?: ReactNode;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* MountayaStudio is the assembled editor: a map, everything drawn over it, and every surface
|
|
518
|
+
* the studio raises for itself.
|
|
519
|
+
*
|
|
520
|
+
* It reads the bus, the tool context, the store and the map lifecycle from
|
|
521
|
+
* `MountayaStudioHost` above it, so a sidenav rendered outside this component drives the same
|
|
522
|
+
* map and the same store: the agent and a clicking reader share one mutation surface, and
|
|
523
|
+
* there is no second one to keep in step. Once the map client is live and an itinerary is
|
|
524
|
+
* active it frames the whole itinerary through the same tool the agent would use, keyed on the
|
|
525
|
+
* itinerary id so opening a different one reframes.
|
|
526
|
+
*
|
|
527
|
+
* What it draws on the map is every itinerary and zone the viewer can reach, as vector-tile
|
|
528
|
+
* overlays authorized by the tile transform, inside whatever camera limits `constraints`
|
|
529
|
+
* states. Over the map sit the control stack, the floating panels, the search row, the
|
|
530
|
+
* co-pilot, the docked elevation profile and the alert strip, every one of them gated by the
|
|
531
|
+
* resolved `config` and driving the one bus.
|
|
532
|
+
*
|
|
533
|
+
* Mount it under a `MountayaStudioHost`; it takes no required prop. The map client and the tile
|
|
534
|
+
* transform are derived from the host's client, and everything else on the props is a surface of
|
|
535
|
+
* the host's own that it wants placed in the layout, or a seam whose absence is a defined answer.
|
|
536
|
+
*/
|
|
537
|
+
export const MountayaStudio = (props: MountayaStudioProps): ReactElement => {
|
|
538
|
+
// The map facade the published elements drive, handed back by MapView once the style has
|
|
539
|
+
// loaded. State rather than a ref: the controls compute their inert state from it and the
|
|
540
|
+
// compass subscribes to its camera, so they have to re-render when it arrives. The setter
|
|
541
|
+
// is stable, which MapView requires: a fresh identity would rebuild the map.
|
|
542
|
+
const [elementsMap, setElementsMap] = useState<MountayaMap | null>(null);
|
|
543
|
+
|
|
544
|
+
// This component exists ONLY to put the provider above `StudioRoot`, and that placement is
|
|
545
|
+
// the whole point rather than a nesting preference. A hook reads the context of whatever
|
|
546
|
+
// renders it, never the context its own JSX mounts, so with the provider inside the tree
|
|
547
|
+
// below, `useStudioMapSync` and every other map hook would resolve `useMountayaMap()` from
|
|
548
|
+
// the HOST's provider, which carries no map. The layers manifest would never be fetched,
|
|
549
|
+
// `resolveBaseTerrain` would have no terrains to resolve, `setBaseTerrain` would never run, and
|
|
550
|
+
// the map would keep the empty style it is constructed with: a blank canvas, no tiles, no
|
|
551
|
+
// attribution, and not one request made.
|
|
552
|
+
//
|
|
553
|
+
// It states the map and NOTHING else, which is what the provider's inheritance is for: a
|
|
554
|
+
// host's glyph tables, language and copy travel through this mount untouched.
|
|
555
|
+
//
|
|
556
|
+
// The editor root's ref is held here for the same reason: the map hooks run in `StudioRoot`,
|
|
557
|
+
// which also renders the element, so the ref is stated one component above it. A surface that
|
|
558
|
+
// mounts something in the root, the edit tooltip among them, reads it there and so lands in
|
|
559
|
+
// this studio's root on a page that holds another.
|
|
560
|
+
const rootRef = useRef<HTMLDivElement>(null);
|
|
561
|
+
|
|
562
|
+
return (
|
|
563
|
+
<MountayaElementsProvider map={elementsMap}>
|
|
564
|
+
<StudioEditorRootProvider rootRef={rootRef}>
|
|
565
|
+
<StudioRoot {...props} onMapReady={setElementsMap} rootRef={rootRef} />
|
|
566
|
+
</StudioEditorRootProvider>
|
|
567
|
+
</MountayaElementsProvider>
|
|
568
|
+
);
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* StudioRootProps are the public props plus the map handback and the root's ref. `onMapReady` is
|
|
573
|
+
* internal: it travels down to `EditorMapView` and back up to the provider above, which is the
|
|
574
|
+
* one edge a consumer never wires. `rootRef` is the ref `MountayaStudio` states to the hooks
|
|
575
|
+
* beneath it, attached here to the element that carries the editor root attribute.
|
|
576
|
+
*/
|
|
577
|
+
interface StudioRootProps extends MountayaStudioProps {
|
|
578
|
+
readonly onMapReady: (map: MountayaMap | null) => void;
|
|
579
|
+
readonly rootRef: RefObject<HTMLDivElement | null>;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* renderStudioProfile is the docked profile a host that states no `elevationPanel` gets: the
|
|
584
|
+
* studio's own, as the map studio draws it. Hoisted, so the render prop keeps one identity.
|
|
585
|
+
*/
|
|
586
|
+
const renderStudioProfile = (collapsed: boolean): ReactElement => (
|
|
587
|
+
<ItineraryProfilePanel collapsed={collapsed} />
|
|
588
|
+
);
|
|
589
|
+
|
|
590
|
+
/** StudioRoot is MountayaStudio's body, mounted below the elements provider. */
|
|
591
|
+
const StudioRoot = ({
|
|
592
|
+
className,
|
|
593
|
+
collabEngine = null,
|
|
594
|
+
config = defaultStudioConfig,
|
|
595
|
+
constraints,
|
|
596
|
+
demTilesUrl,
|
|
597
|
+
elevationPanel = renderStudioProfile,
|
|
598
|
+
googleMapsApiKey,
|
|
599
|
+
mapClient,
|
|
600
|
+
modals,
|
|
601
|
+
preserveDrawingBuffer,
|
|
602
|
+
streetViewHandle,
|
|
603
|
+
style,
|
|
604
|
+
transformRequest,
|
|
605
|
+
onMapReady,
|
|
606
|
+
rootRef,
|
|
607
|
+
url,
|
|
608
|
+
zoneCollabEngine = null,
|
|
609
|
+
}: StudioRootProps): ReactElement => {
|
|
610
|
+
const { dispatch } = useStudioDispatch();
|
|
611
|
+
const ctx = useStudioToolContext<StudioToolContext>();
|
|
612
|
+
const { client, onClientDestroy, onClientReady } = useStudioHostRegistry();
|
|
613
|
+
// The host's client, when the map was not given one of its own. Read unconditionally because
|
|
614
|
+
// a hook is, and because the host guarantees an answer: it either mounted the provider or
|
|
615
|
+
// inherited one, and refused to mount at all when neither.
|
|
616
|
+
const hostClient = useMountaya();
|
|
617
|
+
const resolvedMapClient = mapClient ?? hostClient;
|
|
618
|
+
// The map's tiles ride the studio's own session, as everything else the studio asks does. The
|
|
619
|
+
// host holds the studio back while its own client's first token is on its way, and a map
|
|
620
|
+
// client of the studio's own has a session the host never sees: while ITS first token is on its
|
|
621
|
+
// way, no map is built, so no style, sprite, glyph or tile goes out under the key alone, to be
|
|
622
|
+
// counted or refused. The refusals hold at every render: a map client carrying a key alone, or
|
|
623
|
+
// a token minted for another surface.
|
|
624
|
+
const mapHeld = useStudioSessionHeld(resolvedMapClient, "MountayaStudio's mapClient");
|
|
625
|
+
// Every binding of the store to the map, as `@mountaya/studio-react/map` publishes them in one
|
|
626
|
+
// call: a host binding its own map calls the same hook and gets the same studio.
|
|
627
|
+
useStudioMapBindings(client, { collabEngine, constraints, demTilesUrl, url, zoneCollabEngine });
|
|
628
|
+
// An Embedded Studio is held to its organization's safety rules: no time slider its time
|
|
629
|
+
// control refuses, and no layers control over a cap that leaves nothing to pick.
|
|
630
|
+
const heldConfig = useEmbeddedStudioConfig(config);
|
|
631
|
+
// Opens the details dialog on a waypoint the moment a create commits, so describing the place
|
|
632
|
+
// is part of putting it down rather than a second errand through the row's menu. A surface of
|
|
633
|
+
// the studio's own, so it is mounted here and not among the map's bindings.
|
|
634
|
+
useWaypointCreateFollowUp();
|
|
635
|
+
|
|
636
|
+
// Seed the camera near the user's region from the browser timezone. Computed once: MapView
|
|
637
|
+
// reads it at construction. An active itinerary's fitBounds overrides it on client-ready, so
|
|
638
|
+
// the seed only matters with no itinerary open; a null lookup leaves MapView's own default in
|
|
639
|
+
// place.
|
|
640
|
+
//
|
|
641
|
+
// The environment read is HERE and the lookup is in `@mountaya/elements/timezone`, which is
|
|
642
|
+
// the arrangement `MountayaMap` uses for a label language: it reads the client's request
|
|
643
|
+
// language first and the browser's only where the client states none, and hands it to a pure
|
|
644
|
+
// `clampMapLanguage` of `@mountaya/elements/i18n`. A timezone table is a geographic fact and
|
|
645
|
+
// belongs to the rendering family; asking the browser what time it thinks it is, is not.
|
|
646
|
+
//
|
|
647
|
+
// This is the one `Intl` read in this package. The `Clock` seam reads the time and nothing
|
|
648
|
+
// about where the reader is, so the zone stays an environment read here.
|
|
649
|
+
const initialViewport = useMemo(() => {
|
|
650
|
+
let timeZone: string | undefined;
|
|
651
|
+
|
|
652
|
+
try {
|
|
653
|
+
timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
654
|
+
} catch {
|
|
655
|
+
// An environment without a full `Intl` (an old runtime, a stripped polyfill). There is no
|
|
656
|
+
// seed to be had, and the map's own default is the right answer rather than a failure.
|
|
657
|
+
timeZone = undefined;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
return timezoneViewport(timeZone) ?? undefined;
|
|
661
|
+
}, []);
|
|
662
|
+
|
|
663
|
+
// The fitBounds effect keys off the active itinerary id; the Street View and context-menu
|
|
664
|
+
// open flags are read in StudioWorkspace, where their JSX lives.
|
|
665
|
+
const activeItineraryId = useUiStore((state) => state.activeItinerary?.id ?? null);
|
|
666
|
+
|
|
667
|
+
// The dispatch and the tool context are read when each is used, through a ref. A host may
|
|
668
|
+
// hand the studio a new context while it is mounted (a viewer that resolves, a url seam that
|
|
669
|
+
// is replaced), and neither effect below is about that: the camera is framed once per
|
|
670
|
+
// itinerary and map, and a session is discarded once, when the studio leaves.
|
|
671
|
+
const dispatchRef = useLatestRef(dispatch);
|
|
672
|
+
const ctxRef = useLatestRef(ctx);
|
|
673
|
+
|
|
674
|
+
// The map the camera was last framed on. Its first framing lands at once rather than flying.
|
|
675
|
+
// A map that has just mounted is still being given its zoom window (the organization's limits,
|
|
676
|
+
// the floor of an overlay turned on at load), and a window applied while a flight is under its
|
|
677
|
+
// floor clamps the zoom with a jump, which ends the flight wherever it was: an itinerary handed
|
|
678
|
+
// to the studio at mount then opened on a view of no route at all. Landing on the route puts the
|
|
679
|
+
// camera inside any window that admits it, so a window applied after it moves nothing. Every
|
|
680
|
+
// later framing on the same map, an itinerary switched to, keeps the flight.
|
|
681
|
+
const framedOn = useRef<MapClient | null>(null);
|
|
682
|
+
|
|
683
|
+
useEffect(() => {
|
|
684
|
+
if (!client || !activeItineraryId) {
|
|
685
|
+
return;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
const cold = framedOn.current !== client;
|
|
689
|
+
framedOn.current = client;
|
|
690
|
+
|
|
691
|
+
// A null `segmentId` frames every segment, which is the whole itinerary. Routed through the
|
|
692
|
+
// bus so the human-load path and the agent share the one camera mutation surface.
|
|
693
|
+
void dispatchRef.current(
|
|
694
|
+
"studio.map.fitBoundsToSegment",
|
|
695
|
+
cold ? { animate: false, segmentId: null } : { segmentId: null },
|
|
696
|
+
);
|
|
697
|
+
}, [dispatchRef, client, activeItineraryId]);
|
|
698
|
+
|
|
699
|
+
// Tear an open authoring session down when the studio unmounts, and at no other time. The
|
|
700
|
+
// editing hooks park their engines when they unmount, and leaving must also end the store
|
|
701
|
+
// session and dispose the map's editor through the single `teardownActiveEditSession` path,
|
|
702
|
+
// the one an itinerary switch and a sidenav-back route through: a `poi-pick` that
|
|
703
|
+
// auto-enabled the POIs overlay restores the enrichment snapshot and the base-map lock
|
|
704
|
+
// releases. The effect lists the ref alone, which is one object for the mount, so its cleanup
|
|
705
|
+
// never runs on a render: a cleanup keyed on the context would discard the reader's draft and
|
|
706
|
+
// its undo history each time the host handed down a new one. A no-op when nothing is armed.
|
|
707
|
+
useEffect(
|
|
708
|
+
() => () => {
|
|
709
|
+
teardownActiveEditSession(ctxRef.current);
|
|
710
|
+
},
|
|
711
|
+
[ctxRef],
|
|
712
|
+
);
|
|
713
|
+
|
|
714
|
+
// The studio root backs the docked profile's height-aware visibility measured in
|
|
715
|
+
// StudioWorkspace: the hook reads this element's height (and the open floating panel's
|
|
716
|
+
// bottom edge) to resolve whether the profile shows its full chart, collapses to the
|
|
717
|
+
// stat bar, or hides entirely so a short window never buries an open panel behind it.
|
|
718
|
+
// Its ref is `MountayaStudio`'s, handed in.
|
|
719
|
+
return (
|
|
720
|
+
// mantine:exempt (see studioRootStyle): 100dvh height + position:relative to
|
|
721
|
+
// anchor the absolute-positioned chrome below.
|
|
722
|
+
<Box
|
|
723
|
+
className={className}
|
|
724
|
+
ref={rootRef}
|
|
725
|
+
// The host's own style lands AFTER the layout this root needs, so an editor mounted in a
|
|
726
|
+
// panel rather than a window can state its own height without a cast or a wrapper.
|
|
727
|
+
style={{ ...studioRootStyle, ...style }}
|
|
728
|
+
{...{ [EDITOR_ROOT_ATTRIBUTE]: true }}
|
|
729
|
+
>
|
|
730
|
+
{/* The agent-threads provider is NOT here. Wrapping this root would give the lock boundary
|
|
731
|
+
(StudioWorkspace) and the agent panel one run-state source; it sits on
|
|
732
|
+
`MountayaStudioHost`, which is strictly higher, so chrome that is a SIBLING of the
|
|
733
|
+
map (a sidenav, a header) reads the same run state, which it cannot from here. */}
|
|
734
|
+
<StudioWorkspace
|
|
735
|
+
client={client}
|
|
736
|
+
config={heldConfig}
|
|
737
|
+
elevationPanel={elevationPanel}
|
|
738
|
+
googleMapsApiKey={googleMapsApiKey}
|
|
739
|
+
initialViewport={initialViewport}
|
|
740
|
+
mapClient={resolvedMapClient}
|
|
741
|
+
mapHeld={mapHeld}
|
|
742
|
+
modals={modals}
|
|
743
|
+
onClientDestroy={onClientDestroy}
|
|
744
|
+
onClientReady={onClientReady}
|
|
745
|
+
onMapReady={onMapReady}
|
|
746
|
+
preserveDrawingBuffer={preserveDrawingBuffer}
|
|
747
|
+
rootRef={rootRef}
|
|
748
|
+
streetViewHandle={streetViewHandle}
|
|
749
|
+
transformRequest={transformRequest}
|
|
750
|
+
/>
|
|
751
|
+
</Box>
|
|
752
|
+
);
|
|
753
|
+
};
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* StudioWorkspaceProps thread the map lifecycle + resolved config + the two
|
|
757
|
+
* construction-time MapView seeds (initial viewport, tile-request transform)
|
|
758
|
+
* down to the lock boundary. The Studio root owns the client-driven hooks and
|
|
759
|
+
* memos; StudioWorkspace owns only the JSX and the agent-driving lock, which is
|
|
760
|
+
* why it lives below the provider where the run state is readable.
|
|
761
|
+
*/
|
|
762
|
+
interface StudioWorkspaceProps {
|
|
763
|
+
client: MapClient | null;
|
|
764
|
+
config: StudioConfig;
|
|
765
|
+
elevationPanel: MountayaStudioProps["elevationPanel"];
|
|
766
|
+
googleMapsApiKey: string | undefined;
|
|
767
|
+
initialViewport: MapViewport | undefined;
|
|
768
|
+
mapClient: MountayaMapOptions["client"];
|
|
769
|
+
/** Whether the map client's first session token is on its way, which holds the map unbuilt. */
|
|
770
|
+
mapHeld: boolean;
|
|
771
|
+
modals: ReactNode;
|
|
772
|
+
onClientDestroy: () => void;
|
|
773
|
+
onClientReady: (client: MapClient) => void;
|
|
774
|
+
onMapReady: (map: MountayaMap | null) => void;
|
|
775
|
+
preserveDrawingBuffer: boolean | undefined;
|
|
776
|
+
rootRef: RefObject<HTMLDivElement | null>;
|
|
777
|
+
streetViewHandle: ReactNode;
|
|
778
|
+
transformRequest?: TileRequestTransform | undefined;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* StudioWorkspace is the studio's interaction surface. While a chat's run drives the
|
|
783
|
+
* workspace the lock is BLANKET but visible, not a full-app scrim: every control goes
|
|
784
|
+
* inert (the touched segment/waypoint rows, carrying the co-pilot's editing badge;
|
|
785
|
+
* the floating layers and preferences panels; the whole top-right map control stack;
|
|
786
|
+
* Street View; the search bar and the POI control; the docked profile's sheet handle
|
|
787
|
+
* and segment chooser; the editor's add buttons, form fields, actions menu, Save
|
|
788
|
+
* footer, and back button; and the map's right-click context menu's mutating actions).
|
|
789
|
+
* Each reads the shared run lock through useAgentDriving (mirrored from the run state
|
|
790
|
+
* by AgentThreadsProvider) and, where the reason is not obvious, explains itself with a
|
|
791
|
+
* lock tooltip. Preferences lock with the rest: the run reads units and language, so a
|
|
792
|
+
* change mid-run desyncs the world view it was seeded with.
|
|
793
|
+
*
|
|
794
|
+
* Some things stay live, because the lock is unusable otherwise: the co-pilot's Stop
|
|
795
|
+
* control and composer, the transcript's own question and suggestion cards (the run
|
|
796
|
+
* asking the user to act), and the raw canvas pan/zoom gestures, so the user watches
|
|
797
|
+
* the run, answers it, and can interrupt it. AgentDrivingGuard refuses router navigation
|
|
798
|
+
* + browser close for the run's duration (leaving mid-run would race the run's tool
|
|
799
|
+
* calls). UnsavedEditsGuard stays mounted for the ordinary unsaved-edit flow when the
|
|
800
|
+
* agent is idle.
|
|
801
|
+
*/
|
|
802
|
+
const StudioWorkspace = ({
|
|
803
|
+
client,
|
|
804
|
+
config,
|
|
805
|
+
elevationPanel,
|
|
806
|
+
googleMapsApiKey,
|
|
807
|
+
initialViewport,
|
|
808
|
+
mapClient,
|
|
809
|
+
mapHeld,
|
|
810
|
+
modals,
|
|
811
|
+
onClientDestroy,
|
|
812
|
+
onClientReady,
|
|
813
|
+
onMapReady,
|
|
814
|
+
preserveDrawingBuffer,
|
|
815
|
+
rootRef,
|
|
816
|
+
streetViewHandle,
|
|
817
|
+
transformRequest,
|
|
818
|
+
}: StudioWorkspaceProps): ReactElement => {
|
|
819
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
820
|
+
// The tile credits ride an Embedded Studio's map, the one whose client carries a publishable
|
|
821
|
+
// key: the integrator's page answers for the licences of the tiles it shows by drawing them,
|
|
822
|
+
// and the studio offers no way to drop them there. A map riding the browser's own session is
|
|
823
|
+
// Mountaya's own application, which credits the tiles itself.
|
|
824
|
+
const drawsCredits = mapClient.transport.mapCredential.publishableKey !== undefined;
|
|
825
|
+
const contextMenuOpen = useUiStore((state) => state.contextMenu !== null);
|
|
826
|
+
// The open floating panel (layers/preferences), or null. It keys the panel's error boundary,
|
|
827
|
+
// and the docked profile reads whether one is open (see StudioProfileDock).
|
|
828
|
+
const openPanel = useUiStore((state) => state.openPanel);
|
|
829
|
+
|
|
830
|
+
// The open floating panel's element, which the docked profile measures against. A ref: a
|
|
831
|
+
// transient layout measurement, not reactive state.
|
|
832
|
+
const panelRef = useRef<HTMLDivElement>(null);
|
|
833
|
+
|
|
834
|
+
// The co-pilot panel docks full-height to the left edge and slides in over the map when
|
|
835
|
+
// an AI tab is active AND an itinerary or zone is being edited (Search, or leaving the
|
|
836
|
+
// editor, slides it shut). It is editor-scoped, so deriving `open` off the active
|
|
837
|
+
// resource closes it when the user steps back to the list with no tab-state change to
|
|
838
|
+
// race the leave navigation (see useCopilotOpen). While it is open, the left-anchored
|
|
839
|
+
// map chrome (the always-on search bar and the docked elevation profile) insets past
|
|
840
|
+
// its width, read through the inset a host laying out its own studio reads, so nothing
|
|
841
|
+
// sits behind it; the inset transition rides the same duration as the panel's slide so
|
|
842
|
+
// they move as one, honouring prefers-reduced-motion.
|
|
843
|
+
const copilotInset = useStudioCopilotInset();
|
|
844
|
+
const copilotOpen = copilotInset > 0;
|
|
845
|
+
// Latched rather than tracked. The panel slides shut, so unmounting it the instant the flag
|
|
846
|
+
// turns off would cut the animation off at its first frame, and a session that has opened the
|
|
847
|
+
// co-pilot once has already paid for the module, so there is nothing left to save by dropping
|
|
848
|
+
// it. What the latch buys is the session that never opens it at all, which is most of them.
|
|
849
|
+
const copilotEverOpen = useRef(false);
|
|
850
|
+
if (copilotOpen) {
|
|
851
|
+
copilotEverOpen.current = true;
|
|
852
|
+
}
|
|
853
|
+
const copilotMounted = copilotEverOpen.current;
|
|
854
|
+
const reduceMotion = useReducedMotion();
|
|
855
|
+
const leftInset = copilotInset + 16;
|
|
856
|
+
const slideTransition = reduceMotion ? undefined : `left ${STUDIO_COPILOT_SLIDE_MS}ms ease`;
|
|
857
|
+
const promptAnchorStyle = useMemo<CSSProperties>(
|
|
858
|
+
() => ({ ...promptAnchorBaseStyle, left: leftInset, transition: slideTransition }),
|
|
859
|
+
[leftInset, slideTransition],
|
|
860
|
+
);
|
|
861
|
+
const elevationAnchorStyle = useMemo<CSSProperties>(
|
|
862
|
+
() => ({ ...elevationAnchorBaseStyle, left: leftInset, transition: slideTransition }),
|
|
863
|
+
[leftInset, slideTransition],
|
|
864
|
+
);
|
|
865
|
+
|
|
866
|
+
return (
|
|
867
|
+
// The elements read their glyphs, their copy, their theme and the map itself from here,
|
|
868
|
+
// so the provider wraps the whole workspace rather than the control stack alone: the
|
|
869
|
+
// docked elevation profile is an element too, and it sits at the other end of the tree.
|
|
870
|
+
//
|
|
871
|
+
// It states the map and NOTHING else, which is what the provider's inheritance is for:
|
|
872
|
+
// a host's glyph tables, language and copy travel through this mount untouched, and the
|
|
873
|
+
// map is the one thing that could not have been stated above it, because the surface
|
|
874
|
+
// below builds it.
|
|
875
|
+
<>
|
|
876
|
+
{/* Built once the map client's first token has landed: the surfaces around it already
|
|
877
|
+
wait for a map, as they do while one is being built. */}
|
|
878
|
+
{mapHeld ? null : (
|
|
879
|
+
<EditorMapView
|
|
880
|
+
ariaLabel={words.map.ariaLabel}
|
|
881
|
+
client={mapClient}
|
|
882
|
+
initialViewport={initialViewport}
|
|
883
|
+
onClientDestroy={onClientDestroy}
|
|
884
|
+
onClientReady={onClientReady}
|
|
885
|
+
onMapReady={onMapReady}
|
|
886
|
+
preserveDrawingBuffer={preserveDrawingBuffer}
|
|
887
|
+
transformRequest={transformRequest}
|
|
888
|
+
withAttribution={drawsCredits}
|
|
889
|
+
withUrlHash
|
|
890
|
+
/>
|
|
891
|
+
)}
|
|
892
|
+
<StudioControls
|
|
893
|
+
config={config}
|
|
894
|
+
googleMapsApiKey={googleMapsApiKey}
|
|
895
|
+
streetViewHandle={streetViewHandle}
|
|
896
|
+
/>
|
|
897
|
+
{/* Keyed by the panel it shows: an error one panel threw leaves with that panel, and the
|
|
898
|
+
next one opens under a boundary that has caught nothing. */}
|
|
899
|
+
<StudioSectionBoundary key={openPanel ?? "closed"}>
|
|
900
|
+
<PanelRouter config={config} panelRef={panelRef} />
|
|
901
|
+
</StudioSectionBoundary>
|
|
902
|
+
<StudioProfileDock
|
|
903
|
+
elevationPanel={elevationPanel}
|
|
904
|
+
panelOpen={openPanel !== null}
|
|
905
|
+
panelRef={panelRef}
|
|
906
|
+
rootRef={rootRef}
|
|
907
|
+
style={elevationAnchorStyle}
|
|
908
|
+
/>
|
|
909
|
+
<MapAlerts />
|
|
910
|
+
{contextMenuOpen ? (
|
|
911
|
+
<Suspense fallback={null}>
|
|
912
|
+
<LazyContextMenuPopup
|
|
913
|
+
client={client}
|
|
914
|
+
googleMapsApiKey={googleMapsApiKey}
|
|
915
|
+
withStreetviewControl={config.withStreetviewControl}
|
|
916
|
+
/>
|
|
917
|
+
</Suspense>
|
|
918
|
+
) : null}
|
|
919
|
+
{/* The ask-the-user prompt raised when a gesture lands on an existing handle of
|
|
920
|
+
the segment being edited: remove that point, or route through it again. The
|
|
921
|
+
popup guards on its own store slot, so it costs nothing while no edit is open. */}
|
|
922
|
+
<SegmentViaPopup client={client} />
|
|
923
|
+
<StudioDialogs mapClient={mapClient} />
|
|
924
|
+
{modals}
|
|
925
|
+
<UnsavedEditsGuard />
|
|
926
|
+
<StudioPromptBar style={promptAnchorStyle} />
|
|
927
|
+
{/* The co-pilot is the heaviest surface in the package (a markdown renderer, a syntax
|
|
928
|
+
highlighter and the transcript around them), and a session that never opens it should
|
|
929
|
+
never fetch it. Mounted once the panel has opened, and kept mounted after, so it slides
|
|
930
|
+
shut rather than vanishing. */}
|
|
931
|
+
{copilotMounted ? (
|
|
932
|
+
<StudioSectionBoundary>
|
|
933
|
+
<Suspense fallback={null}>
|
|
934
|
+
<LazyCopilotPanel />
|
|
935
|
+
</Suspense>
|
|
936
|
+
</StudioSectionBoundary>
|
|
937
|
+
) : null}
|
|
938
|
+
<AgentDrivingGuard />
|
|
939
|
+
</>
|
|
940
|
+
);
|
|
941
|
+
};
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* StudioProfileDockProps place the docked elevation profile and say what it is measured against.
|
|
945
|
+
*/
|
|
946
|
+
interface StudioProfileDockProps {
|
|
947
|
+
readonly elevationPanel: MountayaStudioProps["elevationPanel"];
|
|
948
|
+
/** Whether a floating panel (layers, preferences) is open above the profile. */
|
|
949
|
+
readonly panelOpen: boolean;
|
|
950
|
+
readonly panelRef: RefObject<HTMLDivElement | null>;
|
|
951
|
+
readonly rootRef: RefObject<HTMLDivElement | null>;
|
|
952
|
+
/** The bottom anchor's style, its left inset sliding past the open co-pilot panel. */
|
|
953
|
+
readonly style: CSSProperties;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* StudioProfileDock is the docked elevation profile, shown for an active persisted itinerary or
|
|
958
|
+
* an active draft (import or suggest: `selectActiveDraft` resolves whichever flow holds one).
|
|
959
|
+
*
|
|
960
|
+
* It is height-aware: "chart" shows the full area chart, "bar" collapses it to the stat bar while
|
|
961
|
+
* a floating panel is open, and "hidden" removes it on a window too short for even the bar to
|
|
962
|
+
* clear the panel, which drops under the top-right controls with no lower bound and so is never
|
|
963
|
+
* buried behind the profile. The whole profile rides the Collapse the chart uses, so it slides out
|
|
964
|
+
* and back with one vertical motion.
|
|
965
|
+
*/
|
|
966
|
+
const StudioProfileDock = ({
|
|
967
|
+
elevationPanel,
|
|
968
|
+
panelOpen,
|
|
969
|
+
panelRef,
|
|
970
|
+
rootRef,
|
|
971
|
+
style,
|
|
972
|
+
}: StudioProfileDockProps): ReactElement => {
|
|
973
|
+
const activeItineraryId = useUiStore((state) => state.activeItinerary?.id ?? null);
|
|
974
|
+
const draftActive = useUiStore((state) => selectActiveDraft(state) != null);
|
|
975
|
+
const profileVisibility = useProfileVisibility({
|
|
976
|
+
panelOpen,
|
|
977
|
+
panelRef,
|
|
978
|
+
rootRef,
|
|
979
|
+
sections: dockedProfileSections,
|
|
980
|
+
});
|
|
981
|
+
|
|
982
|
+
return (
|
|
983
|
+
// mantine:exempt (see elevationAnchorBaseStyle, which `style` is derived from): a full-width
|
|
984
|
+
// bottom anchor above the map canvas and below popups and portalled modals.
|
|
985
|
+
<Box style={style}>
|
|
986
|
+
{activeItineraryId || draftActive ? (
|
|
987
|
+
<StudioSectionBoundary>
|
|
988
|
+
<ItineraryProfileSheet expanded={profileVisibility !== "hidden"}>
|
|
989
|
+
{elevationPanel?.(profileVisibility === "bar")}
|
|
990
|
+
</ItineraryProfileSheet>
|
|
991
|
+
</StudioSectionBoundary>
|
|
992
|
+
) : null}
|
|
993
|
+
</Box>
|
|
994
|
+
);
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* StudioDialogs mounts the studio's code-split dialogs, each once its store slot opens it. One
|
|
999
|
+
* selector per surface reads the flag that already opened it, so a boundary adds a subscription
|
|
1000
|
+
* rather than a second source of truth about what is open, and a dialog opening re-renders this
|
|
1001
|
+
* list rather than the workspace around it.
|
|
1002
|
+
*
|
|
1003
|
+
* `mapClient` is the studio map's own client, which the video wizard's preview draws through.
|
|
1004
|
+
*/
|
|
1005
|
+
const StudioDialogs = ({
|
|
1006
|
+
mapClient,
|
|
1007
|
+
}: {
|
|
1008
|
+
readonly mapClient: MountayaMapOptions["client"];
|
|
1009
|
+
}): ReactElement => {
|
|
1010
|
+
// A share target names its entity, and each entity has its own sheet: `studio.share.open`
|
|
1011
|
+
// writes either kind into the one share slot.
|
|
1012
|
+
const shareOpen = useUiStore((state) => state.share?.kind === "itinerary");
|
|
1013
|
+
const collectionShareOpen = useUiStore((state) => state.share?.kind === "collection");
|
|
1014
|
+
const exportOpen = useUiStore((state) => state.exportTarget !== null);
|
|
1015
|
+
const segmentGroupOpen = useUiStore((state) => state.segmentGroupEdit !== null);
|
|
1016
|
+
const duplicateOpen = useUiStore((state) => state.itineraryDuplicate !== null);
|
|
1017
|
+
const manageCollectionsOpen = useUiStore((state) => state.collectionsTarget !== null);
|
|
1018
|
+
const newCollectionOpen = useUiStore((state) => state.openModal === "newCollection");
|
|
1019
|
+
const editCollectionOpen = useUiStore((state) => state.collectionToEdit !== null);
|
|
1020
|
+
const geolocatePromptOpen = useUiStore((state) => state.geolocatePromptOpen);
|
|
1021
|
+
const waypointDetailsOpen = useUiStore((state) => state.waypointDetailsDialog !== null);
|
|
1022
|
+
const roadAccessOpen = useUiStore((state) => state.roadAccessDialog !== null);
|
|
1023
|
+
const directionsOpen = useUiStore((state) => state.directionsTarget !== null);
|
|
1024
|
+
|
|
1025
|
+
return (
|
|
1026
|
+
<>
|
|
1027
|
+
{shareOpen ? (
|
|
1028
|
+
<Suspense fallback={null}>
|
|
1029
|
+
<LazyShareModal />
|
|
1030
|
+
</Suspense>
|
|
1031
|
+
) : null}
|
|
1032
|
+
{exportOpen ? (
|
|
1033
|
+
<Suspense fallback={null}>
|
|
1034
|
+
<LazyExportModal />
|
|
1035
|
+
</Suspense>
|
|
1036
|
+
) : null}
|
|
1037
|
+
{segmentGroupOpen ? (
|
|
1038
|
+
<Suspense fallback={null}>
|
|
1039
|
+
<LazySegmentGroupModal />
|
|
1040
|
+
</Suspense>
|
|
1041
|
+
) : null}
|
|
1042
|
+
{duplicateOpen ? (
|
|
1043
|
+
<Suspense fallback={null}>
|
|
1044
|
+
<LazyDuplicateItineraryModal />
|
|
1045
|
+
</Suspense>
|
|
1046
|
+
) : null}
|
|
1047
|
+
{manageCollectionsOpen ? (
|
|
1048
|
+
<Suspense fallback={null}>
|
|
1049
|
+
<LazyManageCollectionsModal />
|
|
1050
|
+
</Suspense>
|
|
1051
|
+
) : null}
|
|
1052
|
+
{newCollectionOpen ? (
|
|
1053
|
+
<Suspense fallback={null}>
|
|
1054
|
+
<LazyNewCollectionModal />
|
|
1055
|
+
</Suspense>
|
|
1056
|
+
) : null}
|
|
1057
|
+
{editCollectionOpen ? (
|
|
1058
|
+
<Suspense fallback={null}>
|
|
1059
|
+
<LazyEditCollectionModal />
|
|
1060
|
+
</Suspense>
|
|
1061
|
+
) : null}
|
|
1062
|
+
{collectionShareOpen ? (
|
|
1063
|
+
<Suspense fallback={null}>
|
|
1064
|
+
<LazyShareCollectionModal />
|
|
1065
|
+
</Suspense>
|
|
1066
|
+
) : null}
|
|
1067
|
+
{geolocatePromptOpen ? (
|
|
1068
|
+
<Suspense fallback={null}>
|
|
1069
|
+
<LazyLocationPermissionModal />
|
|
1070
|
+
</Suspense>
|
|
1071
|
+
) : null}
|
|
1072
|
+
{/* The waypoint dialog, mounted ONCE for the whole studio. Every surface that can point at
|
|
1073
|
+
a place (the sidenav row, its `…` menu, the marker on the map, the mark on the
|
|
1074
|
+
elevation profile, and the create footer the moment a new one is saved) opens this
|
|
1075
|
+
one, through the store slot rather than by owning a copy of it. */}
|
|
1076
|
+
{waypointDetailsOpen ? (
|
|
1077
|
+
<Suspense fallback={null}>
|
|
1078
|
+
<LazyWaypointDetailsModal />
|
|
1079
|
+
</Suspense>
|
|
1080
|
+
) : null}
|
|
1081
|
+
{roadAccessOpen ? (
|
|
1082
|
+
<Suspense fallback={null}>
|
|
1083
|
+
<LazyRoadAccessModal />
|
|
1084
|
+
</Suspense>
|
|
1085
|
+
) : null}
|
|
1086
|
+
{directionsOpen ? (
|
|
1087
|
+
<Suspense fallback={null}>
|
|
1088
|
+
<LazyDirectionsModal />
|
|
1089
|
+
</Suspense>
|
|
1090
|
+
) : null}
|
|
1091
|
+
<StudioVideoExport mapClient={mapClient} />
|
|
1092
|
+
</>
|
|
1093
|
+
);
|
|
1094
|
+
};
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* StudioVideoExport mounts the export-as-video wizard while a video export is open: the itinerary
|
|
1098
|
+
* menu's "Export as video" opens one through `studio.video.open`, and the wizard's close clears it.
|
|
1099
|
+
*
|
|
1100
|
+
* It reads the open export's itinerary id ALONE, never the slice that holds it. A preview or a
|
|
1101
|
+
* recording writes that slice at every frame of its flight, and a read of the whole slice here
|
|
1102
|
+
* would render the wizard, its preview map among it, at each one; the wizard reads each field it
|
|
1103
|
+
* draws through a selector of its own. Keyed on the id, so an export of another itinerary starts
|
|
1104
|
+
* a wizard of its own rather than inheriting the last one's map and recording.
|
|
1105
|
+
*
|
|
1106
|
+
* The preview draws through the studio map's own client, so it reads under the credential the
|
|
1107
|
+
* editor reads under, and from INSIDE the studio's element context, where the map's layer
|
|
1108
|
+
* catalogue resolves the base map the preview mirrors. What only a host can say (the director's
|
|
1109
|
+
* remedy, the transform the preview's tiles ride, the answer to a stale AI configuration) is the
|
|
1110
|
+
* host's `behavior`, and each has a stated absence.
|
|
1111
|
+
*
|
|
1112
|
+
* A component of its own, so the host's bindings changing renders this mount and not every dialog
|
|
1113
|
+
* beside it.
|
|
1114
|
+
*/
|
|
1115
|
+
const StudioVideoExport = ({
|
|
1116
|
+
mapClient,
|
|
1117
|
+
}: {
|
|
1118
|
+
readonly mapClient: MountayaMapOptions["client"];
|
|
1119
|
+
}): ReactElement | null => {
|
|
1120
|
+
const itineraryId = useUiStore((state) => state.videoExport?.itineraryId ?? null);
|
|
1121
|
+
const { invalidateAiConfig, recoveryAddendum, transformRequest } = useStudioHostVideo();
|
|
1122
|
+
|
|
1123
|
+
return itineraryId === null ? null : (
|
|
1124
|
+
<Suspense fallback={null}>
|
|
1125
|
+
<LazyVideoExportWizard
|
|
1126
|
+
invalidateAiConfig={invalidateAiConfig}
|
|
1127
|
+
itineraryId={itineraryId}
|
|
1128
|
+
key={itineraryId}
|
|
1129
|
+
mapClient={mapClient}
|
|
1130
|
+
recoveryAddendum={recoveryAddendum}
|
|
1131
|
+
transformRequest={transformRequest}
|
|
1132
|
+
/>
|
|
1133
|
+
</Suspense>
|
|
1134
|
+
);
|
|
1135
|
+
};
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* StudioPromptBar holds the always-on search bar and the POI control over the map canvas. The POI
|
|
1139
|
+
* control is an organization member's, as the overlays it switches are. Both go inert while the
|
|
1140
|
+
* co-pilot drives: a search activation moves the camera and the selection, and the POI switches
|
|
1141
|
+
* change the tiles the run reasons over.
|
|
1142
|
+
*/
|
|
1143
|
+
const StudioPromptBar = ({ style }: { readonly style: CSSProperties }): ReactElement => {
|
|
1144
|
+
const agentDriving = useAgentDriving();
|
|
1145
|
+
|
|
1146
|
+
return (
|
|
1147
|
+
// mantine:exempt (see promptAnchorBaseStyle, which `style` is derived from): an
|
|
1148
|
+
// absolute-positioned anchor over the map canvas, its left inset sliding past the open
|
|
1149
|
+
// co-pilot panel.
|
|
1150
|
+
<Box style={style}>
|
|
1151
|
+
{/* mantine:exempt (see promptRowStyle): the row is the positioning
|
|
1152
|
+
context the search results dropdown drops from, sized to its content so
|
|
1153
|
+
the dropdown's right edge aligns with the POI button's. The POI button
|
|
1154
|
+
stays a flow child of the row (not wrapped on its own) so the dropdown
|
|
1155
|
+
never overlays it. */}
|
|
1156
|
+
<Box style={promptRowStyle}>
|
|
1157
|
+
{/* The search↔POI horizontal gap reuses the top-right control stack's
|
|
1158
|
+
vertical gap token so the two control clusters read with one rhythm. */}
|
|
1159
|
+
<Group align="flex-start" gap={STUDIO_CONTROL_STACK_GAP}>
|
|
1160
|
+
<StudioSectionBoundary>
|
|
1161
|
+
<Box w={STUDIO_PROMPT_COLUMN_WIDTH}>
|
|
1162
|
+
<SearchTab disabled={agentDriving} />
|
|
1163
|
+
</Box>
|
|
1164
|
+
</StudioSectionBoundary>
|
|
1165
|
+
<PoiOverlayMenu disabled={agentDriving} />
|
|
1166
|
+
</Group>
|
|
1167
|
+
</Box>
|
|
1168
|
+
</Box>
|
|
1169
|
+
);
|
|
1170
|
+
};
|