@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,487 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Anchor,
|
|
3
|
+
Group,
|
|
4
|
+
Input,
|
|
5
|
+
Radio,
|
|
6
|
+
SegmentedControl,
|
|
7
|
+
Stack,
|
|
8
|
+
Text,
|
|
9
|
+
ThemeIcon,
|
|
10
|
+
} from "@mantine/core";
|
|
11
|
+
import { type CSSProperties, useCallback, useMemo } from "react";
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
bitrateForOutput,
|
|
15
|
+
type CameraOutput,
|
|
16
|
+
type CameraPlan,
|
|
17
|
+
type RouteGeometry,
|
|
18
|
+
routeLengthMeters,
|
|
19
|
+
suggestVideoLengthMs,
|
|
20
|
+
type VideoPreset,
|
|
21
|
+
type VideoPresetTemplate,
|
|
22
|
+
videoPresets,
|
|
23
|
+
} from "@mountaya/elements/camera";
|
|
24
|
+
import type { UiGlyph } from "@mountaya/elements/icons";
|
|
25
|
+
import { convertDuration, MILLISECONDS_PER_SECOND } from "@mountaya/elements/units";
|
|
26
|
+
import { cameraPlanSchema } from "@mountaya/studio";
|
|
27
|
+
import {
|
|
28
|
+
ASPECT_OPTIONS,
|
|
29
|
+
FORMAT_OPTIONS,
|
|
30
|
+
FPS_OPTIONS,
|
|
31
|
+
QUALITY_OPTIONS,
|
|
32
|
+
RESOLUTION_OPTIONS,
|
|
33
|
+
} from "@mountaya/studio/strings";
|
|
34
|
+
|
|
35
|
+
import { useStudioDispatch } from "../../headless/hooks/useStudioDispatch.js";
|
|
36
|
+
import { useStudioEntitlement } from "../../headless/hooks/useStudioEntitlement.js";
|
|
37
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
38
|
+
import { RadioOptionCard } from "../../panels/components/RadioOptionCard.js";
|
|
39
|
+
import { changeTo } from "../rules/changeTo.js";
|
|
40
|
+
import { PlanNumberField } from "./PlanNumberField.js";
|
|
41
|
+
|
|
42
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
43
|
+
const SECTIONS = ["video"] as const;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* GLYPH_BOX_SIZE is the square ThemeIcon-styled box the aspect glyph sits in,
|
|
47
|
+
* matching the card affordance the icon ThemeIcon would otherwise occupy so the
|
|
48
|
+
* ready-made and Custom cards align on the same left gutter.
|
|
49
|
+
*/
|
|
50
|
+
const GLYPH_BOX_SIZE = 34;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* FRAME_MAX_DIM is the length of the frame's LONGEST side. Scaling the long side
|
|
54
|
+
* (rather than fixing the height) keeps every shape inside the box: a fixed
|
|
55
|
+
* 20 px-high 16:9 frame would run 35.5 px wide and burst the 34 px box, so the
|
|
56
|
+
* wide landscape frame renders 22 × 12.4 while the tall vertical renders
|
|
57
|
+
* 12.4 × 22: mirrored shapes at mirrored sizes.
|
|
58
|
+
*/
|
|
59
|
+
const FRAME_MAX_DIM = 22;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* innerFrameBaseStyle is the static part of the inner aspect frame: an outline
|
|
63
|
+
* in the current text colour, rounded to the xxs radius. The per-glyph width and
|
|
64
|
+
* height are merged in at render: they are the only fields that vary by aspect.
|
|
65
|
+
*/
|
|
66
|
+
const innerFrameBaseStyle: CSSProperties = {
|
|
67
|
+
border: "1.5px solid currentColor",
|
|
68
|
+
borderRadius: "var(--mantine-radius-xxs)",
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* frameDimensions sizes the mini frame from its `w:h` aspect label so the longest
|
|
73
|
+
* side is FRAME_MAX_DIM and the other follows the ratio, so every aspect fits the
|
|
74
|
+
* glyph box with the same visual weight. Falls back to a square on a malformed
|
|
75
|
+
* label (unreachable through the aspect enum; keeps the division safe).
|
|
76
|
+
*/
|
|
77
|
+
const frameDimensions = (aspect: CameraOutput["aspect"]): { height: number; width: number } => {
|
|
78
|
+
const [w, h] = aspect.split(":").map(Number);
|
|
79
|
+
if (!w || !h) {
|
|
80
|
+
return { height: FRAME_MAX_DIM, width: FRAME_MAX_DIM };
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const scale = FRAME_MAX_DIM / Math.max(w, h);
|
|
84
|
+
|
|
85
|
+
return { height: h * scale, width: w * scale };
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* AspectGlyphProps carry the frame `aspect` the glyph draws and the `checked` flag
|
|
90
|
+
* that picks the ThemeIcon variant, so the glyph reads as filled when its card is
|
|
91
|
+
* the selected preset and light otherwise: the same affordance the icon ThemeIcon
|
|
92
|
+
* shows on the Custom card.
|
|
93
|
+
*/
|
|
94
|
+
interface AspectGlyphProps {
|
|
95
|
+
aspect: CameraOutput["aspect"];
|
|
96
|
+
checked: boolean;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* AspectGlyph renders a miniature aspect-true frame inside a ThemeIcon-styled box,
|
|
101
|
+
* the media a ready-made preset card shows in place of an icon: a small outlined
|
|
102
|
+
* rectangle whose shape matches the preset's frame (a tall 9:16, a wide 16:9, a
|
|
103
|
+
* square 1:1) so the card communicates the framing at a glance rather than through
|
|
104
|
+
* a generic glyph. Presentational: the parent card owns selection; this only
|
|
105
|
+
* mirrors the checked affordance.
|
|
106
|
+
*/
|
|
107
|
+
const AspectGlyph = ({ aspect, checked }: AspectGlyphProps) => {
|
|
108
|
+
const frameStyle: CSSProperties = {
|
|
109
|
+
...innerFrameBaseStyle,
|
|
110
|
+
...frameDimensions(aspect),
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
return (
|
|
114
|
+
<ThemeIcon size={GLYPH_BOX_SIZE} variant={checked ? "filled" : "light"}>
|
|
115
|
+
{/* mantine:exempt (see innerFrameBaseStyle): the mini frame is a bare
|
|
116
|
+
outlined box whose per-aspect pixel dimensions are computed, not themed. */}
|
|
117
|
+
<div style={frameStyle} />
|
|
118
|
+
</ThemeIcon>
|
|
119
|
+
);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* lengthBounds are the length field's two bounds in the seconds it shows, read off the schema
|
|
124
|
+
* `studio.video.duration.set` holds a plan's `targetDurationMs` to, which is in milliseconds.
|
|
125
|
+
*
|
|
126
|
+
* One declaration of each bound, for the field and for the tool it writes through, so the field
|
|
127
|
+
* never sends a length the tool refuses. A side the schema leaves open is no bound.
|
|
128
|
+
*/
|
|
129
|
+
const lengthBounds = ((field: {
|
|
130
|
+
readonly maxValue: number | null;
|
|
131
|
+
readonly minValue: number | null;
|
|
132
|
+
}) => {
|
|
133
|
+
const seconds = (value: number | null): number | undefined =>
|
|
134
|
+
value !== null && Number.isFinite(value)
|
|
135
|
+
? convertDuration(value, "millisecond", "second")
|
|
136
|
+
: undefined;
|
|
137
|
+
|
|
138
|
+
return { max: seconds(field.maxValue), min: seconds(field.minValue) };
|
|
139
|
+
})(cameraPlanSchema.shape.targetDurationMs.unwrap());
|
|
140
|
+
|
|
141
|
+
/** LENGTH_STEP_SECONDS is the stepper's granularity (whole 5 s increments). */
|
|
142
|
+
const LENGTH_STEP_SECONDS = 5;
|
|
143
|
+
|
|
144
|
+
/** The values the Custom matrix's labelled lists hold, which their controls report back as strings. */
|
|
145
|
+
const FORMAT_VALUES = FORMAT_OPTIONS.map((option) => option.value);
|
|
146
|
+
const FPS_VALUES = FPS_OPTIONS.map((option) => option.value);
|
|
147
|
+
const QUALITY_VALUES = QUALITY_OPTIONS.map((option) => option.value);
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* PresetDescriptor is one entry in the static format table the preset cards render
|
|
151
|
+
* from: the `preset` the card selects, its `icon` glyph (the platform association,
|
|
152
|
+
* and the Custom card's leading affordance), the locale keys for its title +
|
|
153
|
+
* description, an optional `template` the spec line and the mini aspect glyph read
|
|
154
|
+
* (a ready-made preset's fixed recipe; Custom carries none), and `orgOnly` marking
|
|
155
|
+
* the Custom card the wizard reveals only to a viewer granted `video-organization-modes`
|
|
156
|
+
* (mirroring the tool layer's gate on the custom output.set).
|
|
157
|
+
*/
|
|
158
|
+
interface PresetDescriptor {
|
|
159
|
+
glyph: UiGlyph;
|
|
160
|
+
orgOnly: boolean;
|
|
161
|
+
preset: VideoPreset;
|
|
162
|
+
template: VideoPresetTemplate | null;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* PRESET_DESCRIPTORS is the ordered format table the cards render from, hoisted so one static
|
|
167
|
+
* array drives the group rather than the component building it on every render. Vertical,
|
|
168
|
+
* Widescreen and Square are the ready-made platform presets (their template feeds the spec line
|
|
169
|
+
* and the aspect glyph) and are offered to every viewer the export opens for; Custom needs the
|
|
170
|
+
* `video-organization-modes` entitlement (`orgOnly`) and reveals the advanced matrix. The title and
|
|
171
|
+
* description fields hold keys under the studio's `video.format.preset` namespace, resolved at
|
|
172
|
+
* render, which keeps the table data-only and translatable. The `icon` names each preset's
|
|
173
|
+
* platform and is the leading affordance the Custom card shows; a ready-made card renders the
|
|
174
|
+
* aspect glyph as `media` instead, which the card prefers over the icon.
|
|
175
|
+
*/
|
|
176
|
+
const PRESET_DESCRIPTORS: readonly PresetDescriptor[] = [
|
|
177
|
+
{
|
|
178
|
+
glyph: "frame-vertical",
|
|
179
|
+
orgOnly: false,
|
|
180
|
+
preset: "vertical",
|
|
181
|
+
template: videoPresets.vertical,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
glyph: "frame-widescreen",
|
|
185
|
+
orgOnly: false,
|
|
186
|
+
preset: "widescreen",
|
|
187
|
+
template: videoPresets.widescreen,
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
glyph: "frame-square",
|
|
191
|
+
orgOnly: false,
|
|
192
|
+
preset: "square",
|
|
193
|
+
template: videoPresets.square,
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
glyph: "frame-custom",
|
|
197
|
+
orgOnly: true,
|
|
198
|
+
preset: "custom",
|
|
199
|
+
template: null,
|
|
200
|
+
},
|
|
201
|
+
];
|
|
202
|
+
|
|
203
|
+
/** The presets the cards offer, which the radio group reports back as strings. */
|
|
204
|
+
const PRESET_VALUES = PRESET_DESCRIPTORS.map((entry) => entry.preset);
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* suggestedSeconds returns the suggested flight length in whole seconds for the
|
|
208
|
+
* wizard's route, or null when no route has loaded yet (the itinerary detail is
|
|
209
|
+
* still resolving). It runs the route's length through the shared
|
|
210
|
+
* suggestVideoLengthMs heuristic, so the length control's "Suggested" affordance
|
|
211
|
+
* proposes the same duration the rest of the pipeline would.
|
|
212
|
+
*/
|
|
213
|
+
const suggestedSeconds = (route: RouteGeometry | null): number | null => {
|
|
214
|
+
if (!route) {
|
|
215
|
+
return null;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
return Math.round(suggestVideoLengthMs(routeLengthMeters(route.line)) / MILLISECONDS_PER_SECOND);
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* FormatStepProps carry the plan so the step reflects the chosen preset, the
|
|
223
|
+
* encoder output, and the length, plus the wizard's route so the length control
|
|
224
|
+
* can derive a suggested duration from it (null until the itinerary detail loads).
|
|
225
|
+
* All authoritative values come off the plan; the step holds no state.
|
|
226
|
+
*/
|
|
227
|
+
interface FormatStepProps {
|
|
228
|
+
plan: CameraPlan;
|
|
229
|
+
route: RouteGeometry | null;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* PlanLengthField is the flight's length, in whole seconds: a field a reader types into or
|
|
234
|
+
* steps, with the length the route suggests beneath it.
|
|
235
|
+
*
|
|
236
|
+
* Every change is `studio.video.duration.set` through the bus. The field's bounds are the
|
|
237
|
+
* plan schema's ({@link lengthBounds}), and its floor is typed through: every first digit of a
|
|
238
|
+
* length is under it, so a digit stands while it is typed and nothing is sent until the value is
|
|
239
|
+
* one the tool takes. A value past the ceiling is refused as it is typed.
|
|
240
|
+
*/
|
|
241
|
+
const PlanLengthField = ({ plan, route }: FormatStepProps) => {
|
|
242
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
243
|
+
const { dispatch } = useStudioDispatch();
|
|
244
|
+
|
|
245
|
+
const lengthSeconds = Math.round(plan.targetDurationMs / MILLISECONDS_PER_SECOND);
|
|
246
|
+
const suggestion = suggestedSeconds(route);
|
|
247
|
+
|
|
248
|
+
const onLengthChange = useCallback(
|
|
249
|
+
(seconds: number) => {
|
|
250
|
+
void dispatch("studio.video.duration.set", {
|
|
251
|
+
targetDurationMs: seconds * MILLISECONDS_PER_SECOND,
|
|
252
|
+
});
|
|
253
|
+
},
|
|
254
|
+
[dispatch],
|
|
255
|
+
);
|
|
256
|
+
|
|
257
|
+
const onUseSuggested = useCallback(() => {
|
|
258
|
+
if (suggestion !== null) {
|
|
259
|
+
onLengthChange(suggestion);
|
|
260
|
+
}
|
|
261
|
+
}, [onLengthChange, suggestion]);
|
|
262
|
+
|
|
263
|
+
return (
|
|
264
|
+
<Stack gap="xxs">
|
|
265
|
+
{/* The value reads right in the field (with its "s" suffix), so no separate chip is
|
|
266
|
+
needed. The input's own label carries the field name, matching the suggest form's
|
|
267
|
+
unit inputs. */}
|
|
268
|
+
<PlanNumberField
|
|
269
|
+
clampBehavior="none"
|
|
270
|
+
floor={lengthBounds.min}
|
|
271
|
+
isAllowed={({ floatValue }) =>
|
|
272
|
+
floatValue === undefined ||
|
|
273
|
+
lengthBounds.max === undefined ||
|
|
274
|
+
floatValue <= lengthBounds.max
|
|
275
|
+
}
|
|
276
|
+
label={words.video.format.length.label}
|
|
277
|
+
max={lengthBounds.max}
|
|
278
|
+
min={lengthBounds.min}
|
|
279
|
+
onSend={onLengthChange}
|
|
280
|
+
startValue={suggestion ?? undefined}
|
|
281
|
+
step={LENGTH_STEP_SECONDS}
|
|
282
|
+
suffix={` ${words.video.format.length.unit}`}
|
|
283
|
+
value={lengthSeconds}
|
|
284
|
+
/>
|
|
285
|
+
{/* The route-derived suggestion as a "use" affordance, shown only when it
|
|
286
|
+
differs from the current length; clicking it retimes the plan to that
|
|
287
|
+
duration through the same bus tool. */}
|
|
288
|
+
{suggestion !== null && suggestion !== lengthSeconds ? (
|
|
289
|
+
<Anchor component="button" onClick={onUseSuggested} size="xs" type="button">
|
|
290
|
+
{words.video.format.length.suggested(suggestion)}
|
|
291
|
+
</Anchor>
|
|
292
|
+
) : null}
|
|
293
|
+
</Stack>
|
|
294
|
+
);
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* FormatStep is the wizard's first step: it picks the video format and the flight
|
|
299
|
+
* length. The format leads with presets: the ready-made platform templates
|
|
300
|
+
* (Vertical 9:16, Widescreen 16:9, Square 1:1) shown to every viewer the wizard opens
|
|
301
|
+
* for as Radio.Cards, and a Custom card shown only to a viewer granted
|
|
302
|
+
* `video-organization-modes`, which expands the advanced encoder matrix (container,
|
|
303
|
+
* resolution, frame rate, quality, aspect). Selecting a ready-made preset
|
|
304
|
+
* dispatches studio.video.preset.set; selecting Custom flips into custom mode
|
|
305
|
+
* through the organization-gated studio.video.output.set, and every matrix change dispatches
|
|
306
|
+
* output.set with the full output, stamping the custom preset and the bitrate
|
|
307
|
+
* derived from the resolution + fps + quality (shown read-only: the user never
|
|
308
|
+
* types a raw Mbps). The length is a field in whole seconds (5 s steps, bounded as the plan
|
|
309
|
+
* schema bounds it, "s" suffix) that dispatches studio.video.duration.set on each change,
|
|
310
|
+
* with a "Suggested" affordance computed from the route's length beneath it; it is a
|
|
311
|
+
* general control for every viewer, not part of the Custom block. Every mutation flows
|
|
312
|
+
* through the bus, so a clicking user and the director
|
|
313
|
+
* agent drive the same plan; the step holds no state, and the plan is the source of
|
|
314
|
+
* truth.
|
|
315
|
+
*/
|
|
316
|
+
export const FormatStep = ({ plan, route }: FormatStepProps) => {
|
|
317
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
318
|
+
const { dispatch } = useStudioDispatch();
|
|
319
|
+
|
|
320
|
+
// The Custom format card is one of the organization modes, on the same terms `ModeCards`
|
|
321
|
+
// states for the AI Director: the export and the modes on top of it are two entitlements, and
|
|
322
|
+
// a host grants either without the other. Read reactively, so a change while the wizard is
|
|
323
|
+
// open reveals or hides the card live, mirroring the tool layer's gate on the custom
|
|
324
|
+
// output.set.
|
|
325
|
+
const withOrgModes = useStudioEntitlement("video-organization-modes");
|
|
326
|
+
|
|
327
|
+
const output = plan.output;
|
|
328
|
+
const custom = output.preset === "custom";
|
|
329
|
+
|
|
330
|
+
// A viewer granted the organization modes may pick Custom; any other sees only the
|
|
331
|
+
// ready-made presets, so the Custom entry is filtered out for them.
|
|
332
|
+
const presets = useMemo(
|
|
333
|
+
() =>
|
|
334
|
+
withOrgModes ? PRESET_DESCRIPTORS : PRESET_DESCRIPTORS.filter((entry) => !entry.orgOnly),
|
|
335
|
+
[withOrgModes],
|
|
336
|
+
);
|
|
337
|
+
|
|
338
|
+
// The bitrate is derived from the resolution + fps + quality, never typed, so it
|
|
339
|
+
// is recomputed here for the read-out and stamped onto every custom output.set.
|
|
340
|
+
const derivedBitrate = bitrateForOutput(output.resolution, output.fps, output.quality);
|
|
341
|
+
|
|
342
|
+
// applyCustom merges a partial encoder change over the current output, stamps the
|
|
343
|
+
// custom preset, and recomputes the derived bitrate so the encoder configuration
|
|
344
|
+
// stays internally consistent. It is the one path the matrix controls (and the
|
|
345
|
+
// Custom card selection) dispatch through, so the preset stamp + bitrate
|
|
346
|
+
// derivation live in a single place rather than per control. The merged value is
|
|
347
|
+
// the full CameraOutput the organization-gated output.set re-parses at the boundary.
|
|
348
|
+
const applyCustom = useCallback(
|
|
349
|
+
(change: Partial<CameraOutput>): void => {
|
|
350
|
+
const next: CameraOutput = { ...output, ...change, preset: "custom" };
|
|
351
|
+
void dispatch("studio.video.output.set", {
|
|
352
|
+
...next,
|
|
353
|
+
bitrateMbps: bitrateForOutput(next.resolution, next.fps, next.quality),
|
|
354
|
+
});
|
|
355
|
+
},
|
|
356
|
+
[dispatch, output],
|
|
357
|
+
);
|
|
358
|
+
|
|
359
|
+
const onPresetChange = useMemo(
|
|
360
|
+
() =>
|
|
361
|
+
changeTo(PRESET_VALUES, (preset) => {
|
|
362
|
+
// A ready-made preset applies its template through preset.set, which the export entitlement
|
|
363
|
+
// opens; Custom flips into the matrix through the organization-gated output.set, stamping
|
|
364
|
+
// the custom preset and a bitrate derived from the current resolution/fps/quality so the
|
|
365
|
+
// read-out is correct from the first frame.
|
|
366
|
+
if (preset === "custom") {
|
|
367
|
+
applyCustom({});
|
|
368
|
+
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
// `custom` returned above, so the ready-made presets alone reach here, which are
|
|
373
|
+
// what preset.set accepts.
|
|
374
|
+
void dispatch("studio.video.preset.set", { preset });
|
|
375
|
+
}),
|
|
376
|
+
[applyCustom, dispatch],
|
|
377
|
+
);
|
|
378
|
+
|
|
379
|
+
return (
|
|
380
|
+
<Stack gap="lg">
|
|
381
|
+
<Stack gap="xxs">
|
|
382
|
+
{/* The heading is the shared section-label treatment every studio panel
|
|
383
|
+
group uses, so the preset chooser reads like its sibling sections. */}
|
|
384
|
+
<Text variant="section-label">{words.video.format.preset.groupLabel}</Text>
|
|
385
|
+
<Radio.Group
|
|
386
|
+
aria-label={words.video.format.preset.groupLabel}
|
|
387
|
+
onChange={onPresetChange}
|
|
388
|
+
value={output.preset}
|
|
389
|
+
>
|
|
390
|
+
<Stack>
|
|
391
|
+
{presets.map((entry) => (
|
|
392
|
+
<RadioOptionCard
|
|
393
|
+
checked={entry.preset === output.preset}
|
|
394
|
+
description={words.video.format.preset[entry.preset].description}
|
|
395
|
+
glyph={entry.glyph}
|
|
396
|
+
key={entry.preset}
|
|
397
|
+
media={
|
|
398
|
+
entry.template ? (
|
|
399
|
+
<AspectGlyph
|
|
400
|
+
aspect={entry.template.aspect}
|
|
401
|
+
checked={entry.preset === output.preset}
|
|
402
|
+
/>
|
|
403
|
+
) : undefined
|
|
404
|
+
}
|
|
405
|
+
specs={
|
|
406
|
+
entry.template
|
|
407
|
+
? words.video.format.preset.specs(
|
|
408
|
+
entry.template.resolution,
|
|
409
|
+
entry.template.aspect,
|
|
410
|
+
entry.template.fps,
|
|
411
|
+
entry.template.bitrateMbps,
|
|
412
|
+
)
|
|
413
|
+
: undefined
|
|
414
|
+
}
|
|
415
|
+
title={words.video.format.preset[entry.preset].title}
|
|
416
|
+
value={entry.preset}
|
|
417
|
+
/>
|
|
418
|
+
))}
|
|
419
|
+
</Stack>
|
|
420
|
+
</Radio.Group>
|
|
421
|
+
</Stack>
|
|
422
|
+
|
|
423
|
+
{custom ? (
|
|
424
|
+
<Stack gap="md">
|
|
425
|
+
{/* Each matrix group is a labelled input: Input.Wrapper renders the same
|
|
426
|
+
label treatment a TextInput/Select carries, the project idiom for a
|
|
427
|
+
SegmentedControl with no label of its own. */}
|
|
428
|
+
<Input.Wrapper label={words.video.format.matrix.formatLabel}>
|
|
429
|
+
<SegmentedControl
|
|
430
|
+
data={FORMAT_OPTIONS.map((option) => ({
|
|
431
|
+
label: words.video.format.matrix[option.labelKey],
|
|
432
|
+
value: option.value,
|
|
433
|
+
}))}
|
|
434
|
+
onChange={changeTo(FORMAT_VALUES, (format) => applyCustom({ format }))}
|
|
435
|
+
value={output.format}
|
|
436
|
+
/>
|
|
437
|
+
</Input.Wrapper>
|
|
438
|
+
|
|
439
|
+
<Input.Wrapper label={words.video.format.matrix.resolutionLabel}>
|
|
440
|
+
<SegmentedControl
|
|
441
|
+
data={[...RESOLUTION_OPTIONS]}
|
|
442
|
+
onChange={changeTo(RESOLUTION_OPTIONS, (resolution) => applyCustom({ resolution }))}
|
|
443
|
+
value={output.resolution}
|
|
444
|
+
/>
|
|
445
|
+
</Input.Wrapper>
|
|
446
|
+
|
|
447
|
+
<Input.Wrapper label={words.video.format.matrix.fpsLabel}>
|
|
448
|
+
<SegmentedControl
|
|
449
|
+
data={FPS_OPTIONS.map((option) => ({
|
|
450
|
+
label: words.video.format.matrix[option.labelKey],
|
|
451
|
+
value: String(option.value),
|
|
452
|
+
}))}
|
|
453
|
+
onChange={changeTo(FPS_VALUES, (fps) => applyCustom({ fps }))}
|
|
454
|
+
value={String(output.fps)}
|
|
455
|
+
/>
|
|
456
|
+
</Input.Wrapper>
|
|
457
|
+
|
|
458
|
+
<Input.Wrapper label={words.video.format.matrix.qualityLabel}>
|
|
459
|
+
<SegmentedControl
|
|
460
|
+
data={QUALITY_OPTIONS.map((option) => ({
|
|
461
|
+
label: words.video.format.matrix[option.labelKey],
|
|
462
|
+
value: option.value,
|
|
463
|
+
}))}
|
|
464
|
+
onChange={changeTo(QUALITY_VALUES, (quality) => applyCustom({ quality }))}
|
|
465
|
+
value={output.quality}
|
|
466
|
+
/>
|
|
467
|
+
</Input.Wrapper>
|
|
468
|
+
|
|
469
|
+
<Input.Wrapper label={words.video.format.matrix.aspectLabel}>
|
|
470
|
+
<SegmentedControl
|
|
471
|
+
data={[...ASPECT_OPTIONS]}
|
|
472
|
+
onChange={changeTo(ASPECT_OPTIONS, (aspect) => applyCustom({ aspect }))}
|
|
473
|
+
value={output.aspect}
|
|
474
|
+
/>
|
|
475
|
+
</Input.Wrapper>
|
|
476
|
+
|
|
477
|
+
<Group justify="space-between">
|
|
478
|
+
<Text c="dimmed">{words.video.format.matrix.bitrateLabel}</Text>
|
|
479
|
+
<Text>{words.video.format.matrix.bitrateValue(derivedBitrate)}</Text>
|
|
480
|
+
</Group>
|
|
481
|
+
</Stack>
|
|
482
|
+
) : null}
|
|
483
|
+
|
|
484
|
+
<PlanLengthField plan={plan} route={route} />
|
|
485
|
+
</Stack>
|
|
486
|
+
);
|
|
487
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Radio, Stack, Text } from "@mantine/core";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
|
|
4
|
+
import type { CameraMode } from "@mountaya/elements/camera";
|
|
5
|
+
import type { UiGlyph } from "@mountaya/elements/icons";
|
|
6
|
+
import { cameraModeSchema } from "@mountaya/studio";
|
|
7
|
+
|
|
8
|
+
import { useStudioDispatch } from "../../headless/hooks/useStudioDispatch.js";
|
|
9
|
+
import { useStudioEntitlement } from "../../headless/hooks/useStudioEntitlement.js";
|
|
10
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
11
|
+
import { RadioOptionCard } from "../../panels/components/RadioOptionCard.js";
|
|
12
|
+
import { changeTo } from "../rules/changeTo.js";
|
|
13
|
+
|
|
14
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
15
|
+
const SECTIONS = ["video"] as const;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* VideoModeDescriptor is what this application adds to a published camera mode: the `icon`
|
|
19
|
+
* glyph the card wears, and `orgOnly` for the AI Director entry the wizard reveals only to a
|
|
20
|
+
* viewer granted `video-organization-modes`, mirroring the tool layer's gate on switching to
|
|
21
|
+
* director mode.
|
|
22
|
+
*
|
|
23
|
+
* It carries neither the mode's name nor its wording. The names are `cameraModeSchema`'s, and
|
|
24
|
+
* the wording lives in the published copy bundle under each mode's own key, so both are read
|
|
25
|
+
* rather than restated.
|
|
26
|
+
*/
|
|
27
|
+
interface VideoModeDescriptor {
|
|
28
|
+
glyph: UiGlyph;
|
|
29
|
+
orgOnly: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* videoModeChrome pairs each published camera mode with the glyph and gate this wizard draws
|
|
34
|
+
* it with.
|
|
35
|
+
*
|
|
36
|
+
* A `Record` keyed by `CameraMode` rather than a list of rows, and that is the whole point: a
|
|
37
|
+
* mode added to the schema is a COMPILE error here until it is given a glyph, where a hand-kept
|
|
38
|
+
* array would simply not render it and nothing would say so. The card order is the schema's
|
|
39
|
+
* too, read from `cameraModeSchema.options` below: a second ordering is a second thing to keep
|
|
40
|
+
* in step, and the schema already decided.
|
|
41
|
+
*/
|
|
42
|
+
const videoModeChrome: Record<CameraMode, VideoModeDescriptor> = {
|
|
43
|
+
chase: { glyph: "camera-mode-chase", orgOnly: false },
|
|
44
|
+
cinematic: { glyph: "camera-mode-cinematic", orgOnly: false },
|
|
45
|
+
director: { glyph: "camera-mode-director", orgOnly: true },
|
|
46
|
+
drone: { glyph: "camera-mode-drone", orgOnly: false },
|
|
47
|
+
helicopter: { glyph: "camera-mode-helicopter", orgOnly: false },
|
|
48
|
+
overview: { glyph: "camera-mode-overview", orgOnly: false },
|
|
49
|
+
smart: { glyph: "camera-mode-smart", orgOnly: false },
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** The modes the cards render, in the published schema's order, each with its chrome. */
|
|
53
|
+
const VIDEO_MODES: readonly (VideoModeDescriptor & { mode: CameraMode })[] =
|
|
54
|
+
cameraModeSchema.options.map((mode) => ({ ...videoModeChrome[mode], mode }));
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* ModeCardsProps carry the plan's current camera mode so the group highlights
|
|
58
|
+
* the active card, and an optional `disabled` flag the wizard sets while the AI
|
|
59
|
+
* director drives the camera so a user cannot switch styles mid-flight. The mode
|
|
60
|
+
* is the only authoritative value the cards read; the change handler dispatches
|
|
61
|
+
* through the bus, so the cards hold no state.
|
|
62
|
+
*/
|
|
63
|
+
interface ModeCardsProps {
|
|
64
|
+
disabled?: boolean | undefined;
|
|
65
|
+
mode: CameraMode;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* ModeCards is the camera-mode chooser on the wizard's Camera step: the preset
|
|
70
|
+
* modes as a column of cards (one option per row, each carrying its own icon,
|
|
71
|
+
* title and description, so every style reads without selecting it) and, for a
|
|
72
|
+
* viewer granted `video-organization-modes`, the AI Director as one more card
|
|
73
|
+
* beneath, matching the tool layer's gate on switching to director mode. Everything
|
|
74
|
+
* is one Radio.Group: picking any card dispatches studio.video.mode.set through the
|
|
75
|
+
* bus, the same mutation surface a director agent uses, which regenerates
|
|
76
|
+
* (preset) or seeds (director) the shared Camera Plan; the group never writes the
|
|
77
|
+
* store directly. That viewer also sees a dimmed hint that the picked
|
|
78
|
+
* style can be refined with the assistant below. The plan's `mode` is the
|
|
79
|
+
* controlled value, so a mode change driven by the assistant reflects here live.
|
|
80
|
+
*/
|
|
81
|
+
export const ModeCards = ({ disabled, mode }: ModeCardsProps) => {
|
|
82
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
83
|
+
const { dispatch } = useStudioDispatch();
|
|
84
|
+
|
|
85
|
+
// The AI Director is one of the organization modes, an entitlement of its own beside the
|
|
86
|
+
// export itself: the host grants the two independently, and the card reads the one it needs.
|
|
87
|
+
const withOrgModes = useStudioEntitlement("video-organization-modes");
|
|
88
|
+
|
|
89
|
+
// The group reports a string; it is read back as the mode it names.
|
|
90
|
+
const onChange = useMemo(
|
|
91
|
+
() =>
|
|
92
|
+
changeTo(cameraModeSchema.options, (next) => {
|
|
93
|
+
void dispatch("studio.video.mode.set", { mode: next });
|
|
94
|
+
}),
|
|
95
|
+
[dispatch],
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
const presets = VIDEO_MODES.filter((entry) => !entry.orgOnly);
|
|
99
|
+
// A viewer granted the organization modes may pick the AI Director card; any other sees only
|
|
100
|
+
// the preset modes. The entitlement is the whole condition: a hard-coded `false` beside it
|
|
101
|
+
// hides the card from every viewer, which makes the mode unreachable rather than gated.
|
|
102
|
+
const director = withOrgModes ? VIDEO_MODES.find((entry) => entry.orgOnly) : undefined;
|
|
103
|
+
|
|
104
|
+
return (
|
|
105
|
+
<Stack gap="xxs">
|
|
106
|
+
{/* The heading carries the shared section-label treatment every studio
|
|
107
|
+
panel group uses, so the chooser reads like the other rail sections. */}
|
|
108
|
+
<Text variant="section-label">{words.video.mode.groupLabel}</Text>
|
|
109
|
+
<Radio.Group aria-label={words.video.mode.groupLabel} onChange={onChange} value={mode}>
|
|
110
|
+
<Stack gap="xs">
|
|
111
|
+
{presets.map((entry) => (
|
|
112
|
+
<RadioOptionCard
|
|
113
|
+
checked={entry.mode === mode}
|
|
114
|
+
description={words.video.mode[entry.mode].description}
|
|
115
|
+
disabled={disabled}
|
|
116
|
+
glyph={entry.glyph}
|
|
117
|
+
key={entry.mode}
|
|
118
|
+
title={words.video.mode[entry.mode].title}
|
|
119
|
+
value={entry.mode}
|
|
120
|
+
/>
|
|
121
|
+
))}
|
|
122
|
+
{director ? (
|
|
123
|
+
<RadioOptionCard
|
|
124
|
+
checked={director.mode === mode}
|
|
125
|
+
description={words.video.mode[director.mode].description}
|
|
126
|
+
disabled={disabled}
|
|
127
|
+
glyph={director.glyph}
|
|
128
|
+
title={words.video.mode[director.mode].title}
|
|
129
|
+
value={director.mode}
|
|
130
|
+
/>
|
|
131
|
+
) : null}
|
|
132
|
+
</Stack>
|
|
133
|
+
{director ? (
|
|
134
|
+
<Text c="dimmed" mt="xs" size="xs">
|
|
135
|
+
{words.video.mode.directorHint}
|
|
136
|
+
</Text>
|
|
137
|
+
) : null}
|
|
138
|
+
</Radio.Group>
|
|
139
|
+
</Stack>
|
|
140
|
+
);
|
|
141
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { NumberInput, type NumberInputProps } from "@mantine/core";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* PlanNumberFieldProps are a numeric field of the camera plan: Mantine's own, over the plan's
|
|
6
|
+
* value.
|
|
7
|
+
*/
|
|
8
|
+
interface PlanNumberFieldProps extends Omit<NumberInputProps, "onBlur" | "onChange" | "value"> {
|
|
9
|
+
/**
|
|
10
|
+
* The least number the field sends. A number under it is held back while it is typed, for a
|
|
11
|
+
* field whose floor a reader types through: a floor above zero is reached by typing a digit
|
|
12
|
+
* under it first.
|
|
13
|
+
*/
|
|
14
|
+
readonly floor?: number | undefined;
|
|
15
|
+
/** Called with each number the field sends: a finite one, at or over `floor`. */
|
|
16
|
+
readonly onSend: (value: number) => void;
|
|
17
|
+
/** The plan's own value, in the unit the field shows. */
|
|
18
|
+
readonly value: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* PlanNumberField is one numeric field over a value the camera plan holds: a shot's zoom, its
|
|
23
|
+
* approach speed, the flight's length.
|
|
24
|
+
*
|
|
25
|
+
* It sends each number a reader types, and holds back what is no number to send: an empty
|
|
26
|
+
* field, a lone sign or decimal mark, a number under `floor`. What it holds back shows while the
|
|
27
|
+
* reader is in the field, and no longer: once they leave, and whenever the plan's value moves,
|
|
28
|
+
* the field reads the plan's own value again, so it never states a value the plan does not
|
|
29
|
+
* have.
|
|
30
|
+
*
|
|
31
|
+
* A field with a `floor` takes `clampBehavior="none"` and an `isAllowed` for its ceiling: a
|
|
32
|
+
* strict clamp refuses every keystroke under the floor, which is every first digit, and a clamp
|
|
33
|
+
* on blur sends the floor for a value the reader never chose.
|
|
34
|
+
*/
|
|
35
|
+
export const PlanNumberField = ({ floor, onSend, value, ...field }: PlanNumberFieldProps) => {
|
|
36
|
+
// What the reader has typed, as the field reports it, or undefined while the field reads the
|
|
37
|
+
// plan's own value. It is kept with the value it was typed over, and dropped when that moves.
|
|
38
|
+
const [typed, setTyped] = useState<{ readonly over: number; readonly text: number | string }>();
|
|
39
|
+
const shown = typed !== undefined && typed.over === value ? typed.text : value;
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<NumberInput
|
|
43
|
+
{...field}
|
|
44
|
+
onBlur={() => setTyped(undefined)}
|
|
45
|
+
onChange={(next) => {
|
|
46
|
+
setTyped({ over: value, text: next });
|
|
47
|
+
if (typeof next === "number" && Number.isFinite(next) && (floor ?? next) <= next) {
|
|
48
|
+
onSend(next);
|
|
49
|
+
}
|
|
50
|
+
}}
|
|
51
|
+
value={shown}
|
|
52
|
+
/>
|
|
53
|
+
);
|
|
54
|
+
};
|