@mountaya/studio-react 0.0.0-stage → 0.1.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 +54 -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/AgentMarkdown-RNLATZYN.cjs +213 -0
- package/dist/AgentMarkdown-RNLATZYN.cjs.map +1 -0
- package/dist/AgentMarkdown-TMN6E2XC.js +206 -0
- package/dist/AgentMarkdown-TMN6E2XC.js.map +1 -0
- package/dist/ContextMenuPopup-EOYN42YZ.js +468 -0
- package/dist/ContextMenuPopup-EOYN42YZ.js.map +1 -0
- package/dist/ContextMenuPopup-VQLAYYYZ.cjs +470 -0
- package/dist/ContextMenuPopup-VQLAYYYZ.cjs.map +1 -0
- package/dist/CopilotPanel-CCLEYZUN.js +29 -0
- package/dist/CopilotPanel-CCLEYZUN.js.map +1 -0
- package/dist/CopilotPanel-LYPMTDKX.cjs +38 -0
- package/dist/CopilotPanel-LYPMTDKX.cjs.map +1 -0
- package/dist/DateTimePickerField-FZRKJ2SU.js +53 -0
- package/dist/DateTimePickerField-FZRKJ2SU.js.map +1 -0
- package/dist/DateTimePickerField-NB456C6F.cjs +55 -0
- package/dist/DateTimePickerField-NB456C6F.cjs.map +1 -0
- package/dist/DirectionsModal-4Y346QFU.cjs +291 -0
- package/dist/DirectionsModal-4Y346QFU.cjs.map +1 -0
- package/dist/DirectionsModal-DRPO2654.js +289 -0
- package/dist/DirectionsModal-DRPO2654.js.map +1 -0
- package/dist/DuplicateItineraryModal-2QGWI7E7.js +321 -0
- package/dist/DuplicateItineraryModal-2QGWI7E7.js.map +1 -0
- package/dist/DuplicateItineraryModal-WFGMU6JL.cjs +323 -0
- package/dist/DuplicateItineraryModal-WFGMU6JL.cjs.map +1 -0
- package/dist/EditCollectionModal-4QYP53SX.js +90 -0
- package/dist/EditCollectionModal-4QYP53SX.js.map +1 -0
- package/dist/EditCollectionModal-T2TMAO53.cjs +92 -0
- package/dist/EditCollectionModal-T2TMAO53.cjs.map +1 -0
- package/dist/EmbedSnippetCode-NMFCQ7TF.cjs +62 -0
- package/dist/EmbedSnippetCode-NMFCQ7TF.cjs.map +1 -0
- package/dist/EmbedSnippetCode-TGBSWDMD.js +60 -0
- package/dist/EmbedSnippetCode-TGBSWDMD.js.map +1 -0
- package/dist/EmbedTablePreview-3RRHM63Q.js +72 -0
- package/dist/EmbedTablePreview-3RRHM63Q.js.map +1 -0
- package/dist/EmbedTablePreview-Z3W62MRV.cjs +74 -0
- package/dist/EmbedTablePreview-Z3W62MRV.cjs.map +1 -0
- package/dist/ExportModal-5NUZZPXN.cjs +267 -0
- package/dist/ExportModal-5NUZZPXN.cjs.map +1 -0
- package/dist/ExportModal-H7OYP6CK.js +265 -0
- package/dist/ExportModal-H7OYP6CK.js.map +1 -0
- package/dist/FileDropzone-GKPMAZF5.cjs +41 -0
- package/dist/FileDropzone-GKPMAZF5.cjs.map +1 -0
- package/dist/FileDropzone-GRXY4FXR.js +39 -0
- package/dist/FileDropzone-GRXY4FXR.js.map +1 -0
- package/dist/LocationPermissionModal-AFHI5J4S.cjs +92 -0
- package/dist/LocationPermissionModal-AFHI5J4S.cjs.map +1 -0
- package/dist/LocationPermissionModal-MURJ5DDB.js +90 -0
- package/dist/LocationPermissionModal-MURJ5DDB.js.map +1 -0
- package/dist/ManageCollectionsModal-E3IUHUTO.cjs +402 -0
- package/dist/ManageCollectionsModal-E3IUHUTO.cjs.map +1 -0
- package/dist/ManageCollectionsModal-FIHSZXSR.js +400 -0
- package/dist/ManageCollectionsModal-FIHSZXSR.js.map +1 -0
- package/dist/NewCollectionModal-7TBWVA3G.js +75 -0
- package/dist/NewCollectionModal-7TBWVA3G.js.map +1 -0
- package/dist/NewCollectionModal-QFQYCKCG.cjs +77 -0
- package/dist/NewCollectionModal-QFQYCKCG.cjs.map +1 -0
- package/dist/RoadAccessModal-DNUJV5PC.js +57 -0
- package/dist/RoadAccessModal-DNUJV5PC.js.map +1 -0
- package/dist/RoadAccessModal-WLLL2ASZ.cjs +59 -0
- package/dist/RoadAccessModal-WLLL2ASZ.cjs.map +1 -0
- package/dist/SegmentColorPicker-7Y4JEPFC.cjs +81 -0
- package/dist/SegmentColorPicker-7Y4JEPFC.cjs.map +1 -0
- package/dist/SegmentColorPicker-UNLPITUA.js +79 -0
- package/dist/SegmentColorPicker-UNLPITUA.js.map +1 -0
- package/dist/SegmentGroupModal-F54FZUR2.cjs +32 -0
- package/dist/SegmentGroupModal-F54FZUR2.cjs.map +1 -0
- package/dist/SegmentGroupModal-KBU7OPNJ.js +23 -0
- package/dist/SegmentGroupModal-KBU7OPNJ.js.map +1 -0
- package/dist/ShareCollectionModal-TWYE6JJ4.cjs +82 -0
- package/dist/ShareCollectionModal-TWYE6JJ4.cjs.map +1 -0
- package/dist/ShareCollectionModal-VXSRHX4S.js +80 -0
- package/dist/ShareCollectionModal-VXSRHX4S.js.map +1 -0
- package/dist/ShareModal-HLYNE7OL.js +115 -0
- package/dist/ShareModal-HLYNE7OL.js.map +1 -0
- package/dist/ShareModal-WISND27S.cjs +117 -0
- package/dist/ShareModal-WISND27S.cjs.map +1 -0
- package/dist/VideoExportWizard-BSDWA3B5.js +44 -0
- package/dist/VideoExportWizard-BSDWA3B5.js.map +1 -0
- package/dist/VideoExportWizard-UOHR4MNS.cjs +53 -0
- package/dist/VideoExportWizard-UOHR4MNS.cjs.map +1 -0
- package/dist/WaypointDetailsModal-LK5LBK6S.js +270 -0
- package/dist/WaypointDetailsModal-LK5LBK6S.js.map +1 -0
- package/dist/WaypointDetailsModal-MEMOLLUY.cjs +272 -0
- package/dist/WaypointDetailsModal-MEMOLLUY.cjs.map +1 -0
- package/dist/WaypointWorkbench-DCCLBURG.cjs +1204 -0
- package/dist/WaypointWorkbench-DCCLBURG.cjs.map +1 -0
- package/dist/WaypointWorkbench-NRCLGU23.js +1202 -0
- package/dist/WaypointWorkbench-NRCLGU23.js.map +1 -0
- package/dist/chunk-22BNE3YV.js +13 -0
- package/dist/chunk-22BNE3YV.js.map +1 -0
- package/dist/chunk-24RNBTO2.cjs +154 -0
- package/dist/chunk-24RNBTO2.cjs.map +1 -0
- package/dist/chunk-2DDL2LIJ.cjs +65 -0
- package/dist/chunk-2DDL2LIJ.cjs.map +1 -0
- package/dist/chunk-2GAMKPS2.cjs +16 -0
- package/dist/chunk-2GAMKPS2.cjs.map +1 -0
- package/dist/chunk-2K4HCCZJ.cjs +51 -0
- package/dist/chunk-2K4HCCZJ.cjs.map +1 -0
- package/dist/chunk-2MHWH3TS.cjs +119 -0
- package/dist/chunk-2MHWH3TS.cjs.map +1 -0
- package/dist/chunk-2MQBPZNR.cjs +12 -0
- package/dist/chunk-2MQBPZNR.cjs.map +1 -0
- package/dist/chunk-2QSPCXLM.js +84 -0
- package/dist/chunk-2QSPCXLM.js.map +1 -0
- package/dist/chunk-32WRG44G.js +66 -0
- package/dist/chunk-32WRG44G.js.map +1 -0
- package/dist/chunk-32XMYLEB.js +9 -0
- package/dist/chunk-32XMYLEB.js.map +1 -0
- package/dist/chunk-3BEHHSVE.cjs +790 -0
- package/dist/chunk-3BEHHSVE.cjs.map +1 -0
- package/dist/chunk-3HF2XZKQ.js +8 -0
- package/dist/chunk-3HF2XZKQ.js.map +1 -0
- package/dist/chunk-3K2NX5FH.js +51 -0
- package/dist/chunk-3K2NX5FH.js.map +1 -0
- package/dist/chunk-3Q23QKNI.cjs +26 -0
- package/dist/chunk-3Q23QKNI.cjs.map +1 -0
- package/dist/chunk-3TQV2M4C.cjs +16 -0
- package/dist/chunk-3TQV2M4C.cjs.map +1 -0
- package/dist/chunk-3XDKDTE6.js +16 -0
- package/dist/chunk-3XDKDTE6.js.map +1 -0
- package/dist/chunk-46EARJWC.js +288 -0
- package/dist/chunk-46EARJWC.js.map +1 -0
- package/dist/chunk-4DQOJIUV.js +96 -0
- package/dist/chunk-4DQOJIUV.js.map +1 -0
- package/dist/chunk-4T52NAVT.js +10 -0
- package/dist/chunk-4T52NAVT.js.map +1 -0
- package/dist/chunk-4TPRVQGY.js +12 -0
- package/dist/chunk-4TPRVQGY.js.map +1 -0
- package/dist/chunk-4TX5E63A.cjs +12 -0
- package/dist/chunk-4TX5E63A.cjs.map +1 -0
- package/dist/chunk-4VKJF24B.js +22 -0
- package/dist/chunk-4VKJF24B.js.map +1 -0
- package/dist/chunk-4Z734K3L.js +15 -0
- package/dist/chunk-4Z734K3L.js.map +1 -0
- package/dist/chunk-4ZRSEOZM.js +629 -0
- package/dist/chunk-4ZRSEOZM.js.map +1 -0
- package/dist/chunk-52T3VZR5.js +55 -0
- package/dist/chunk-52T3VZR5.js.map +1 -0
- package/dist/chunk-56DP2X7U.js +15 -0
- package/dist/chunk-56DP2X7U.js.map +1 -0
- package/dist/chunk-5AHT62LO.js +24 -0
- package/dist/chunk-5AHT62LO.js.map +1 -0
- package/dist/chunk-5BR4CTVV.cjs +17 -0
- package/dist/chunk-5BR4CTVV.cjs.map +1 -0
- package/dist/chunk-5CTZOFDV.cjs +17 -0
- package/dist/chunk-5CTZOFDV.cjs.map +1 -0
- package/dist/chunk-5F55MFIX.cjs +45 -0
- package/dist/chunk-5F55MFIX.cjs.map +1 -0
- package/dist/chunk-5FMQJ4A4.cjs +362 -0
- package/dist/chunk-5FMQJ4A4.cjs.map +1 -0
- package/dist/chunk-5PMEAMHS.js +82 -0
- package/dist/chunk-5PMEAMHS.js.map +1 -0
- package/dist/chunk-676DNRSN.js +85 -0
- package/dist/chunk-676DNRSN.js.map +1 -0
- package/dist/chunk-6H2F7JKL.js +179 -0
- package/dist/chunk-6H2F7JKL.js.map +1 -0
- package/dist/chunk-6HMRMON7.js +10 -0
- package/dist/chunk-6HMRMON7.js.map +1 -0
- package/dist/chunk-6NKPZ3LT.cjs +14 -0
- package/dist/chunk-6NKPZ3LT.cjs.map +1 -0
- package/dist/chunk-6TG2HZDG.js +75 -0
- package/dist/chunk-6TG2HZDG.js.map +1 -0
- package/dist/chunk-6WU7XEQA.cjs +103 -0
- package/dist/chunk-6WU7XEQA.cjs.map +1 -0
- package/dist/chunk-6YD325QI.cjs +90 -0
- package/dist/chunk-6YD325QI.cjs.map +1 -0
- package/dist/chunk-7B6TUEL5.js +20 -0
- package/dist/chunk-7B6TUEL5.js.map +1 -0
- package/dist/chunk-7KS5F27H.js +33 -0
- package/dist/chunk-7KS5F27H.js.map +1 -0
- package/dist/chunk-A2N6553V.cjs +295 -0
- package/dist/chunk-A2N6553V.cjs.map +1 -0
- package/dist/chunk-A66FJAVG.js +44 -0
- package/dist/chunk-A66FJAVG.js.map +1 -0
- package/dist/chunk-AF43JU4W.js +27 -0
- package/dist/chunk-AF43JU4W.js.map +1 -0
- package/dist/chunk-AHGHAWYR.js +99 -0
- package/dist/chunk-AHGHAWYR.js.map +1 -0
- package/dist/chunk-AKN5KIZT.js +1969 -0
- package/dist/chunk-AKN5KIZT.js.map +1 -0
- package/dist/chunk-ANTDR5MJ.cjs +12 -0
- package/dist/chunk-ANTDR5MJ.cjs.map +1 -0
- package/dist/chunk-AQ5JIIAE.js +26 -0
- package/dist/chunk-AQ5JIIAE.js.map +1 -0
- package/dist/chunk-ARHO5MLJ.js +10 -0
- package/dist/chunk-ARHO5MLJ.js.map +1 -0
- package/dist/chunk-BAYGKSWY.cjs +26 -0
- package/dist/chunk-BAYGKSWY.cjs.map +1 -0
- package/dist/chunk-BEJ5I724.js +8 -0
- package/dist/chunk-BEJ5I724.js.map +1 -0
- package/dist/chunk-BFNXXLVV.cjs +34 -0
- package/dist/chunk-BFNXXLVV.cjs.map +1 -0
- package/dist/chunk-BFQJDFGB.js +57 -0
- package/dist/chunk-BFQJDFGB.js.map +1 -0
- package/dist/chunk-CHEQJ6N7.cjs +2214 -0
- package/dist/chunk-CHEQJ6N7.cjs.map +1 -0
- package/dist/chunk-CJOJWZM7.js +92 -0
- package/dist/chunk-CJOJWZM7.js.map +1 -0
- package/dist/chunk-CJRSFC45.cjs +578 -0
- package/dist/chunk-CJRSFC45.cjs.map +1 -0
- package/dist/chunk-CWQ4WHPI.cjs +46 -0
- package/dist/chunk-CWQ4WHPI.cjs.map +1 -0
- package/dist/chunk-D3INXUFT.js +360 -0
- package/dist/chunk-D3INXUFT.js.map +1 -0
- package/dist/chunk-D6CDAYZ6.cjs +18 -0
- package/dist/chunk-D6CDAYZ6.cjs.map +1 -0
- package/dist/chunk-DDPXRXRD.cjs +23 -0
- package/dist/chunk-DDPXRXRD.cjs.map +1 -0
- package/dist/chunk-DUUPWSOZ.cjs +14 -0
- package/dist/chunk-DUUPWSOZ.cjs.map +1 -0
- package/dist/chunk-DVWYOHOB.cjs +43 -0
- package/dist/chunk-DVWYOHOB.cjs.map +1 -0
- package/dist/chunk-DZPHWBMC.cjs +11 -0
- package/dist/chunk-DZPHWBMC.cjs.map +1 -0
- package/dist/chunk-E26FROI3.js +68 -0
- package/dist/chunk-E26FROI3.js.map +1 -0
- package/dist/chunk-E7ZTDAQW.cjs +37 -0
- package/dist/chunk-E7ZTDAQW.cjs.map +1 -0
- package/dist/chunk-ECI4EKIV.cjs +94 -0
- package/dist/chunk-ECI4EKIV.cjs.map +1 -0
- package/dist/chunk-EN5RWYHP.cjs +28 -0
- package/dist/chunk-EN5RWYHP.cjs.map +1 -0
- package/dist/chunk-ET3UASEF.cjs +91 -0
- package/dist/chunk-ET3UASEF.cjs.map +1 -0
- package/dist/chunk-EW5SY246.cjs +97 -0
- package/dist/chunk-EW5SY246.cjs.map +1 -0
- package/dist/chunk-EWWHVV7R.cjs +18 -0
- package/dist/chunk-EWWHVV7R.cjs.map +1 -0
- package/dist/chunk-F2LZZC6X.js +90 -0
- package/dist/chunk-F2LZZC6X.js.map +1 -0
- package/dist/chunk-F6VFOI4U.cjs +12 -0
- package/dist/chunk-F6VFOI4U.cjs.map +1 -0
- package/dist/chunk-FGX3TEU4.cjs +12 -0
- package/dist/chunk-FGX3TEU4.cjs.map +1 -0
- package/dist/chunk-FK4F24KE.js +10 -0
- package/dist/chunk-FK4F24KE.js.map +1 -0
- package/dist/chunk-FLIGKB6K.js +313 -0
- package/dist/chunk-FLIGKB6K.js.map +1 -0
- package/dist/chunk-G2NDWNFB.cjs +185 -0
- package/dist/chunk-G2NDWNFB.cjs.map +1 -0
- package/dist/chunk-G2XORRLH.js +15 -0
- package/dist/chunk-G2XORRLH.js.map +1 -0
- package/dist/chunk-GIZN7NX5.cjs +25 -0
- package/dist/chunk-GIZN7NX5.cjs.map +1 -0
- package/dist/chunk-GM2BQ24D.js +47 -0
- package/dist/chunk-GM2BQ24D.js.map +1 -0
- package/dist/chunk-GMQJZ5N7.cjs +50 -0
- package/dist/chunk-GMQJZ5N7.cjs.map +1 -0
- package/dist/chunk-GT7RJOAA.cjs +315 -0
- package/dist/chunk-GT7RJOAA.cjs.map +1 -0
- package/dist/chunk-GWGUMPOL.js +9 -0
- package/dist/chunk-GWGUMPOL.js.map +1 -0
- package/dist/chunk-GWVKSSE3.cjs +154 -0
- package/dist/chunk-GWVKSSE3.cjs.map +1 -0
- package/dist/chunk-GY7UMPHT.cjs +99 -0
- package/dist/chunk-GY7UMPHT.cjs.map +1 -0
- package/dist/chunk-HMVBS5DU.js +150 -0
- package/dist/chunk-HMVBS5DU.js.map +1 -0
- package/dist/chunk-HXHA2C7C.js +169 -0
- package/dist/chunk-HXHA2C7C.js.map +1 -0
- package/dist/chunk-IHMOFX2A.js +208 -0
- package/dist/chunk-IHMOFX2A.js.map +1 -0
- package/dist/chunk-II6C3LU2.cjs +49 -0
- package/dist/chunk-II6C3LU2.cjs.map +1 -0
- package/dist/chunk-IOOAFCSR.cjs +58 -0
- package/dist/chunk-IOOAFCSR.cjs.map +1 -0
- package/dist/chunk-IQZSIOMM.js +10 -0
- package/dist/chunk-IQZSIOMM.js.map +1 -0
- package/dist/chunk-J2H3WIUM.cjs +12 -0
- package/dist/chunk-J2H3WIUM.cjs.map +1 -0
- package/dist/chunk-J62OBSUE.cjs +54 -0
- package/dist/chunk-J62OBSUE.cjs.map +1 -0
- package/dist/chunk-JFJVSJUX.cjs +16 -0
- package/dist/chunk-JFJVSJUX.cjs.map +1 -0
- package/dist/chunk-JI2M77Y7.cjs +68 -0
- package/dist/chunk-JI2M77Y7.cjs.map +1 -0
- package/dist/chunk-JLSOLL3C.js +31 -0
- package/dist/chunk-JLSOLL3C.js.map +1 -0
- package/dist/chunk-JRME3LCP.cjs +41 -0
- package/dist/chunk-JRME3LCP.cjs.map +1 -0
- package/dist/chunk-JUD3CWTI.cjs +2005 -0
- package/dist/chunk-JUD3CWTI.cjs.map +1 -0
- package/dist/chunk-JVFHF3LE.cjs +11 -0
- package/dist/chunk-JVFHF3LE.cjs.map +1 -0
- package/dist/chunk-JVS2WNKQ.js +26 -0
- package/dist/chunk-JVS2WNKQ.js.map +1 -0
- package/dist/chunk-JXAFIYLV.js +94 -0
- package/dist/chunk-JXAFIYLV.js.map +1 -0
- package/dist/chunk-K2E744ST.cjs +18 -0
- package/dist/chunk-K2E744ST.cjs.map +1 -0
- package/dist/chunk-K2ZEMBJ7.js +56 -0
- package/dist/chunk-K2ZEMBJ7.js.map +1 -0
- package/dist/chunk-KCXNMLKB.js +22 -0
- package/dist/chunk-KCXNMLKB.js.map +1 -0
- package/dist/chunk-KMMDPXY4.js +35 -0
- package/dist/chunk-KMMDPXY4.js.map +1 -0
- package/dist/chunk-KMSGFBAJ.cjs +78 -0
- package/dist/chunk-KMSGFBAJ.cjs.map +1 -0
- package/dist/chunk-KPD7K4XQ.cjs +11 -0
- package/dist/chunk-KPD7K4XQ.cjs.map +1 -0
- package/dist/chunk-KUD3B3BA.js +12 -0
- package/dist/chunk-KUD3B3BA.js.map +1 -0
- package/dist/chunk-L62LSMJ5.js +9 -0
- package/dist/chunk-L62LSMJ5.js.map +1 -0
- package/dist/chunk-LB57H6LF.cjs +261 -0
- package/dist/chunk-LB57H6LF.cjs.map +1 -0
- package/dist/chunk-LCPKNSC4.cjs +48 -0
- package/dist/chunk-LCPKNSC4.cjs.map +1 -0
- package/dist/chunk-LE3W2CSF.cjs +84 -0
- package/dist/chunk-LE3W2CSF.cjs.map +1 -0
- package/dist/chunk-LG736CNC.js +13 -0
- package/dist/chunk-LG736CNC.js.map +1 -0
- package/dist/chunk-LGNTAZ3L.cjs +33 -0
- package/dist/chunk-LGNTAZ3L.cjs.map +1 -0
- package/dist/chunk-LHXINV6N.cjs +47 -0
- package/dist/chunk-LHXINV6N.cjs.map +1 -0
- package/dist/chunk-LLZUTIQB.cjs +24 -0
- package/dist/chunk-LLZUTIQB.cjs.map +1 -0
- package/dist/chunk-LPGXRU7R.cjs +12 -0
- package/dist/chunk-LPGXRU7R.cjs.map +1 -0
- package/dist/chunk-MA2BBWF5.cjs +96 -0
- package/dist/chunk-MA2BBWF5.cjs.map +1 -0
- package/dist/chunk-MLGORMWF.js +23 -0
- package/dist/chunk-MLGORMWF.js.map +1 -0
- package/dist/chunk-MO7XCKLA.js +62 -0
- package/dist/chunk-MO7XCKLA.js.map +1 -0
- package/dist/chunk-N37UE6RQ.cjs +1797 -0
- package/dist/chunk-N37UE6RQ.cjs.map +1 -0
- package/dist/chunk-N6NWKUOR.cjs +60 -0
- package/dist/chunk-N6NWKUOR.cjs.map +1 -0
- package/dist/chunk-NI5CAMFC.js +568 -0
- package/dist/chunk-NI5CAMFC.js.map +1 -0
- package/dist/chunk-NNLCZGZK.js +21 -0
- package/dist/chunk-NNLCZGZK.js.map +1 -0
- package/dist/chunk-NWHFUVYX.js +97 -0
- package/dist/chunk-NWHFUVYX.js.map +1 -0
- package/dist/chunk-OMDB6ZB2.cjs +176 -0
- package/dist/chunk-OMDB6ZB2.cjs.map +1 -0
- package/dist/chunk-P5W4TRJO.cjs +33 -0
- package/dist/chunk-P5W4TRJO.cjs.map +1 -0
- package/dist/chunk-PADS6TDO.js +89 -0
- package/dist/chunk-PADS6TDO.js.map +1 -0
- package/dist/chunk-PFLNOHBT.js +92 -0
- package/dist/chunk-PFLNOHBT.js.map +1 -0
- package/dist/chunk-PTLYNDZS.cjs +13 -0
- package/dist/chunk-PTLYNDZS.cjs.map +1 -0
- package/dist/chunk-QC3X4DAW.cjs +71 -0
- package/dist/chunk-QC3X4DAW.cjs.map +1 -0
- package/dist/chunk-QPTICYGD.cjs +272 -0
- package/dist/chunk-QPTICYGD.cjs.map +1 -0
- package/dist/chunk-QZ7W2E4U.cjs +319 -0
- package/dist/chunk-QZ7W2E4U.cjs.map +1 -0
- package/dist/chunk-RJJPUPOY.cjs +97 -0
- package/dist/chunk-RJJPUPOY.cjs.map +1 -0
- package/dist/chunk-RRSMCCFS.js +43 -0
- package/dist/chunk-RRSMCCFS.js.map +1 -0
- package/dist/chunk-S6VCR6F5.js +91 -0
- package/dist/chunk-S6VCR6F5.js.map +1 -0
- package/dist/chunk-S7Y2GMYJ.cjs +89 -0
- package/dist/chunk-S7Y2GMYJ.cjs.map +1 -0
- package/dist/chunk-SIMEDLX3.cjs +645 -0
- package/dist/chunk-SIMEDLX3.cjs.map +1 -0
- package/dist/chunk-SQYF7HKF.cjs +59 -0
- package/dist/chunk-SQYF7HKF.cjs.map +1 -0
- package/dist/chunk-ST7BNVC2.cjs +13 -0
- package/dist/chunk-ST7BNVC2.cjs.map +1 -0
- package/dist/chunk-SZVRMMLS.js +16 -0
- package/dist/chunk-SZVRMMLS.js.map +1 -0
- package/dist/chunk-T27LICRD.js +2212 -0
- package/dist/chunk-T27LICRD.js.map +1 -0
- package/dist/chunk-TAU5HGJ3.cjs +11 -0
- package/dist/chunk-TAU5HGJ3.cjs.map +1 -0
- package/dist/chunk-TOM7TV5E.js +25 -0
- package/dist/chunk-TOM7TV5E.js.map +1 -0
- package/dist/chunk-TSRUDRT3.js +59 -0
- package/dist/chunk-TSRUDRT3.js.map +1 -0
- package/dist/chunk-U4FX33MW.js +257 -0
- package/dist/chunk-U4FX33MW.js.map +1 -0
- package/dist/chunk-UBOPWQWC.cjs +28 -0
- package/dist/chunk-UBOPWQWC.cjs.map +1 -0
- package/dist/chunk-UFE26GNF.js +42 -0
- package/dist/chunk-UFE26GNF.js.map +1 -0
- package/dist/chunk-UMQQVTEO.js +257 -0
- package/dist/chunk-UMQQVTEO.js.map +1 -0
- package/dist/chunk-UWY3SFAS.js +10 -0
- package/dist/chunk-UWY3SFAS.js.map +1 -0
- package/dist/chunk-V6EIIZPJ.js +57 -0
- package/dist/chunk-V6EIIZPJ.js.map +1 -0
- package/dist/chunk-V6G6W5CF.cjs +61 -0
- package/dist/chunk-V6G6W5CF.cjs.map +1 -0
- package/dist/chunk-VC4ZBWOK.js +152 -0
- package/dist/chunk-VC4ZBWOK.js.map +1 -0
- package/dist/chunk-VJRF6ILX.js +35 -0
- package/dist/chunk-VJRF6ILX.js.map +1 -0
- package/dist/chunk-VNSLCFO4.js +787 -0
- package/dist/chunk-VNSLCFO4.js.map +1 -0
- package/dist/chunk-W7GAP7ST.js +21 -0
- package/dist/chunk-W7GAP7ST.js.map +1 -0
- package/dist/chunk-WFUASJHS.js +64 -0
- package/dist/chunk-WFUASJHS.js.map +1 -0
- package/dist/chunk-WIKSIT3M.js +46 -0
- package/dist/chunk-WIKSIT3M.js.map +1 -0
- package/dist/chunk-WKLZLFLY.cjs +32 -0
- package/dist/chunk-WKLZLFLY.cjs.map +1 -0
- package/dist/chunk-WNB5HYON.cjs +10 -0
- package/dist/chunk-WNB5HYON.cjs.map +1 -0
- package/dist/chunk-WO5P2XBP.js +86 -0
- package/dist/chunk-WO5P2XBP.js.map +1 -0
- package/dist/chunk-WPYC4NGZ.cjs +46 -0
- package/dist/chunk-WPYC4NGZ.cjs.map +1 -0
- package/dist/chunk-WQRYZY67.cjs +89 -0
- package/dist/chunk-WQRYZY67.cjs.map +1 -0
- package/dist/chunk-WVCYVMJU.js +11 -0
- package/dist/chunk-WVCYVMJU.js.map +1 -0
- package/dist/chunk-WX25G2S3.js +116 -0
- package/dist/chunk-WX25G2S3.js.map +1 -0
- package/dist/chunk-X4FE7RRQ.js +23 -0
- package/dist/chunk-X4FE7RRQ.js.map +1 -0
- package/dist/chunk-X6EIJNOQ.cjs +67 -0
- package/dist/chunk-X6EIJNOQ.cjs.map +1 -0
- package/dist/chunk-XUBATJH6.js +1769 -0
- package/dist/chunk-XUBATJH6.js.map +1 -0
- package/dist/chunk-XUMREYMG.js +293 -0
- package/dist/chunk-XUMREYMG.js.map +1 -0
- package/dist/chunk-XYAJ2FS2.js +31 -0
- package/dist/chunk-XYAJ2FS2.js.map +1 -0
- package/dist/chunk-YKES5P4H.cjs +58 -0
- package/dist/chunk-YKES5P4H.cjs.map +1 -0
- package/dist/chunk-YYAQ75AV.cjs +216 -0
- package/dist/chunk-YYAQ75AV.cjs.map +1 -0
- package/dist/chunk-YZ3NJKVV.js +42 -0
- package/dist/chunk-YZ3NJKVV.js.map +1 -0
- package/dist/chunk-Z5ECTUMN.cjs +104 -0
- package/dist/chunk-Z5ECTUMN.cjs.map +1 -0
- package/dist/chunk-ZAKVHYDL.cjs +28 -0
- package/dist/chunk-ZAKVHYDL.cjs.map +1 -0
- package/dist/chunk-ZF34JXGU.js +39 -0
- package/dist/chunk-ZF34JXGU.js.map +1 -0
- package/dist/chunk-ZHGWDP2M.cjs +101 -0
- package/dist/chunk-ZHGWDP2M.cjs.map +1 -0
- package/dist/chunk-ZLHTQQLT.js +13 -0
- package/dist/chunk-ZLHTQQLT.js.map +1 -0
- package/dist/chunk-ZPAMY3IZ.cjs +25 -0
- package/dist/chunk-ZPAMY3IZ.cjs.map +1 -0
- package/dist/chunk-ZR63UB4V.js +42 -0
- package/dist/chunk-ZR63UB4V.js.map +1 -0
- package/dist/chunk-ZRCEB3KL.js +11 -0
- package/dist/chunk-ZRCEB3KL.js.map +1 -0
- package/dist/chunk-ZRGQNRQI.cjs +36 -0
- package/dist/chunk-ZRGQNRQI.cjs.map +1 -0
- package/dist/chunk-ZVY4IL7O.cjs +22 -0
- package/dist/chunk-ZVY4IL7O.cjs.map +1 -0
- package/dist/chunk-ZWIVKODQ.js +49 -0
- package/dist/chunk-ZWIVKODQ.js.map +1 -0
- package/dist/chunk-ZYF2HNMZ.js +10 -0
- package/dist/chunk-ZYF2HNMZ.js.map +1 -0
- package/dist/copilot/index.cjs +43 -0
- package/dist/copilot/index.cjs.map +1 -0
- package/dist/copilot/index.d.cts +66 -0
- package/dist/copilot/index.d.ts +66 -0
- package/dist/copilot/index.js +30 -0
- package/dist/copilot/index.js.map +1 -0
- package/dist/directionsPdf-GITP3SCP.cjs +274 -0
- package/dist/directionsPdf-GITP3SCP.cjs.map +1 -0
- package/dist/directionsPdf-TDKVUBCU.js +272 -0
- package/dist/directionsPdf-TDKVUBCU.js.map +1 -0
- package/dist/embed/index.cjs +1816 -0
- package/dist/embed/index.cjs.map +1 -0
- package/dist/embed/index.d.cts +300 -0
- package/dist/embed/index.d.ts +300 -0
- package/dist/embed/index.js +1809 -0
- package/dist/embed/index.js.map +1 -0
- package/dist/headless/index.cjs +408 -0
- package/dist/headless/index.cjs.map +1 -0
- package/dist/headless/index.d.cts +23 -0
- package/dist/headless/index.d.ts +23 -0
- package/dist/headless/index.js +31 -0
- package/dist/headless/index.js.map +1 -0
- package/dist/hostRegistry-BTG-KkRY.d.cts +115 -0
- package/dist/hostRegistry-BTG-KkRY.d.ts +115 -0
- package/dist/import/index.cjs +433 -0
- package/dist/import/index.cjs.map +1 -0
- package/dist/import/index.d.cts +169 -0
- package/dist/import/index.d.ts +169 -0
- package/dist/import/index.js +421 -0
- package/dist/import/index.js.map +1 -0
- package/dist/index-CELBpE13.d.cts +4198 -0
- package/dist/index-nqc3A-ty.d.ts +4198 -0
- package/dist/index.cjs +10597 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4949 -0
- package/dist/index.d.ts +4949 -0
- package/dist/index.js +9907 -0
- package/dist/index.js.map +1 -0
- package/dist/map/index.cjs +122 -0
- package/dist/map/index.cjs.map +1 -0
- package/dist/map/index.d.cts +988 -0
- package/dist/map/index.d.ts +988 -0
- package/dist/map/index.js +25 -0
- package/dist/map/index.js.map +1 -0
- package/dist/routingGuidePictures-CxgXiuNd.d.cts +22 -0
- package/dist/routingGuidePictures-CxgXiuNd.d.ts +22 -0
- package/dist/studioStrings-lNvOeC1g.d.cts +72 -0
- package/dist/studioStrings-lNvOeC1g.d.ts +72 -0
- package/dist/styles.css +14677 -0
- package/dist/testing/index.cjs +357 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +319 -0
- package/dist/testing/index.d.ts +319 -0
- package/dist/testing/index.js +344 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/video/index.cjs +53 -0
- package/dist/video/index.cjs.map +1 -0
- package/dist/video/index.d.cts +127 -0
- package/dist/video/index.d.ts +127 -0
- package/dist/video/index.js +44 -0
- package/dist/video/index.js.map +1 -0
- package/package.json +227 -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 +557 -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 +87 -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 +48 -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 +366 -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 +181 -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 +227 -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 +126 -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 +1295 -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 +633 -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 +311 -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 +103 -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 +232 -0
- package/src/map/components/ContextMenuPopup.tsx +913 -0
- package/src/map/components/MapAnchoredPopup.tsx +284 -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 +270 -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 +101 -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 +175 -0
- package/src/rows/components/WaypointRowLayout.tsx +278 -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 +3993 -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 +829 -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,70 @@
|
|
|
1
|
+
import { Group, Text } from "@mantine/core";
|
|
2
|
+
|
|
3
|
+
import type { RestActivitySlug } from "@mountaya/studio";
|
|
4
|
+
|
|
5
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
6
|
+
import { ActivityIcon } from "../../primitives/components/ActivityIcon.js";
|
|
7
|
+
import { METADATA_SEPARATOR } from "../../rows/components/RowMetadata.js";
|
|
8
|
+
|
|
9
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
10
|
+
const SECTIONS = ["zoneForm"] as const;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* ACTIVITY_GLYPH_SIZE matches the editor header's own activity mark, so the line
|
|
14
|
+
* that says "this zone belongs to that itinerary" is drawn at the size the itinerary
|
|
15
|
+
* names itself at.
|
|
16
|
+
*/
|
|
17
|
+
const ACTIVITY_GLYPH_SIZE = "1rem";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* ZoneInheritedContextProps carry what a create begun inside an open itinerary took
|
|
21
|
+
* from it: the itinerary's `name`, its activity (`activitySlug` for the glyph and
|
|
22
|
+
* `activityName` for the word, both null while the catalog is still resolving), and
|
|
23
|
+
* the `collections` it belongs to, already resolved to their names.
|
|
24
|
+
*/
|
|
25
|
+
interface ZoneInheritedContextProps {
|
|
26
|
+
activityName: string | null;
|
|
27
|
+
activitySlug: RestActivitySlug | null;
|
|
28
|
+
collections: readonly string[];
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* ZoneInheritedContext is the one line a zone create shows in place of the
|
|
34
|
+
* organization, collection and activity pickers it inherited.
|
|
35
|
+
*
|
|
36
|
+
* The controls go because there is nothing left to decide: a zone begun from inside
|
|
37
|
+
* an open itinerary belongs to that itinerary's organization, its collections, and
|
|
38
|
+
* its activity, and three pickers pre-filled with those answers are three chances to
|
|
39
|
+
* change one by accident. The line stays because "gone" and "decided" look identical
|
|
40
|
+
* on an empty panel: a user who cannot see where the zone will be filed has no way
|
|
41
|
+
* to notice it is about to land in the wrong organization, which is the one mistake
|
|
42
|
+
* here that cannot be undone from the panel.
|
|
43
|
+
*
|
|
44
|
+
* It is a readout and not a control. Changing any of it means starting the zone from
|
|
45
|
+
* somewhere else, which the panel's own back affordance already offers.
|
|
46
|
+
*/
|
|
47
|
+
export const ZoneInheritedContext = ({
|
|
48
|
+
activityName,
|
|
49
|
+
activitySlug,
|
|
50
|
+
collections,
|
|
51
|
+
name,
|
|
52
|
+
}: ZoneInheritedContextProps) => {
|
|
53
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
54
|
+
|
|
55
|
+
// Each part shows only when it has something to say, and the separators are built
|
|
56
|
+
// from what survived, so an itinerary in no collection reads as itself and its
|
|
57
|
+
// activity, not as a name trailing an empty dot.
|
|
58
|
+
const parts = [activityName, collections.length > 0 ? collections.join(", ") : null].filter(
|
|
59
|
+
(part): part is string => part !== null,
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<Group c="dimmed" gap="xxs" wrap="nowrap">
|
|
64
|
+
{activitySlug ? <ActivityIcon size={ACTIVITY_GLYPH_SIZE} slug={activitySlug} /> : null}
|
|
65
|
+
<Text size="xs" truncate>
|
|
66
|
+
{[words.zoneForm.inheritedFrom(name), ...parts].join(METADATA_SEPARATOR)}
|
|
67
|
+
</Text>
|
|
68
|
+
</Group>
|
|
69
|
+
);
|
|
70
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Input } from "@mantine/core";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
|
|
4
|
+
import type { UiGlyph } from "@mountaya/elements/icons";
|
|
5
|
+
import { zoneLevelColors } from "@mountaya/elements/layers";
|
|
6
|
+
import { type ZoneEditLevel, zoneEditLevelSchema } from "@mountaya/studio";
|
|
7
|
+
|
|
8
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
9
|
+
import { SegmentIcon } from "../../primitives/components/SegmentIcon.js";
|
|
10
|
+
import { StudioSegmentedControl } from "../../primitives/components/StudioSegmentedControl.js";
|
|
11
|
+
|
|
12
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
13
|
+
const SECTIONS = ["zoneForm"] as const;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* levelGlyphs maps each severity level to the role that conveys it: an info
|
|
17
|
+
* mark, a check for resolved, a warning triangle, and an alert octagon for danger.
|
|
18
|
+
* Tinted with the level's zoneLevelColors hue (the same source the engine and tiles
|
|
19
|
+
* paint from), the glyph reads the severity at a glance. Module-const so the mapping
|
|
20
|
+
* is built once; typed as a total Record over ZoneEditLevel so a level added to the
|
|
21
|
+
* enum surfaces here as a compile error rather than a missing glyph.
|
|
22
|
+
*/
|
|
23
|
+
const levelGlyphs: Record<ZoneEditLevel, UiGlyph> = {
|
|
24
|
+
danger: "danger",
|
|
25
|
+
info: "info",
|
|
26
|
+
resolved: "success",
|
|
27
|
+
warning: "warning",
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* ZoneLevelSelectProps drive the zone severity picker: the current `value`, the
|
|
32
|
+
* `onChange` the consumer fires to recolor the draft, and `disabled` so a
|
|
33
|
+
* permission-gated panel freezes it. Controlled, mirroring ZoneModeSelect.
|
|
34
|
+
*/
|
|
35
|
+
interface ZoneLevelSelectProps {
|
|
36
|
+
disabled?: boolean | undefined;
|
|
37
|
+
onChange: (level: ZoneEditLevel) => void;
|
|
38
|
+
value: ZoneEditLevel;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* ZoneLevelSelect is the zone severity picker: the shared StudioSegmentedControl of the
|
|
43
|
+
* levels (info / resolved / warning / danger), each rendered as a severity glyph (a
|
|
44
|
+
* {@link SegmentIcon}, with the level name on its hover tooltip and accessible name) tinted
|
|
45
|
+
* with its zoneLevelColors hue, so the color the zone will paint reads at a glance and the
|
|
46
|
+
* labels never have to fit the sidenav width.
|
|
47
|
+
*
|
|
48
|
+
* It is a required control of the create flow and the live recolor seam in edit: changing it
|
|
49
|
+
* recolors the draft (the panel dispatches studio.zone.setLevel). The options are derived from
|
|
50
|
+
* the zod level enum so a level added or removed there flows here without a parallel list,
|
|
51
|
+
* each labeled from the `zoneForm.levels.*` locale bank, glyphed from {@link levelGlyphs},
|
|
52
|
+
* and tinted from the SHARED zoneLevelColors map (the one source the engine and the tiles
|
|
53
|
+
* also read, so a tint can never drift from the painted color). Sits inside an
|
|
54
|
+
* `Input.Wrapper` for the labeled chrome, like ZoneModeSelect.
|
|
55
|
+
*/
|
|
56
|
+
export const ZoneLevelSelect = ({ disabled, onChange, value }: ZoneLevelSelectProps) => {
|
|
57
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
58
|
+
|
|
59
|
+
const data = useMemo(
|
|
60
|
+
() =>
|
|
61
|
+
zoneEditLevelSchema.options.map((level) => ({
|
|
62
|
+
label: (
|
|
63
|
+
<SegmentIcon
|
|
64
|
+
color={zoneLevelColors[level]}
|
|
65
|
+
glyph={levelGlyphs[level]}
|
|
66
|
+
label={words.zoneForm.levels[level]}
|
|
67
|
+
/>
|
|
68
|
+
),
|
|
69
|
+
value: level,
|
|
70
|
+
})),
|
|
71
|
+
[words],
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
return (
|
|
75
|
+
<Input.Wrapper label={words.zoneForm.levelLabel} required>
|
|
76
|
+
<StudioSegmentedControl
|
|
77
|
+
// The wrapper's label is bound to no control, so the group carries its name itself.
|
|
78
|
+
aria-label={words.zoneForm.levelLabel}
|
|
79
|
+
data={data}
|
|
80
|
+
disabled={disabled}
|
|
81
|
+
onChange={(next) => onChange(zoneEditLevelSchema.parse(next))}
|
|
82
|
+
value={value}
|
|
83
|
+
/>
|
|
84
|
+
</Input.Wrapper>
|
|
85
|
+
);
|
|
86
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Textarea, TextInput } from "@mantine/core";
|
|
2
|
+
|
|
3
|
+
import type { ZoneEditLevel } from "@mountaya/studio";
|
|
4
|
+
|
|
5
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
6
|
+
import { ZoneLevelSelect } from "./ZoneLevelSelect.js";
|
|
7
|
+
|
|
8
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
9
|
+
const SECTIONS = ["zoneForm"] as const;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* ZoneMetadataFieldsProps are what a zone is called, what it says and how severe it is, plus
|
|
13
|
+
* the callbacks reporting each change. Controlled: the panel owns the values and persists
|
|
14
|
+
* them on its single Save.
|
|
15
|
+
*/
|
|
16
|
+
interface ZoneMetadataFieldsProps {
|
|
17
|
+
description: string;
|
|
18
|
+
descriptionError?: string | undefined;
|
|
19
|
+
disabled?: boolean | undefined;
|
|
20
|
+
level: ZoneEditLevel;
|
|
21
|
+
name: string;
|
|
22
|
+
nameError?: string | undefined;
|
|
23
|
+
onDescriptionChange: (description: string) => void;
|
|
24
|
+
onLevelChange: (level: ZoneEditLevel) => void;
|
|
25
|
+
onNameChange: (name: string) => void;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* ZoneMetadataFields is the part of a zone that is the same whether it was drawn or
|
|
30
|
+
* computed: what it is called, what it says, and how severe it is. Sharing one group across
|
|
31
|
+
* both authoring methods is what keeps the panel a single form rather than two that happen
|
|
32
|
+
* to sit in the same place.
|
|
33
|
+
*
|
|
34
|
+
* The name is required and the description is not: a zone is found and listed by its name,
|
|
35
|
+
* and the description is whatever the author wants to add beside it.
|
|
36
|
+
*
|
|
37
|
+
* When it applies is {@link ZoneAvailabilityFields}, which the caller renders beside
|
|
38
|
+
* this: that question belongs to a drawn zone and not to a computed one, so it is not
|
|
39
|
+
* this group's to hold.
|
|
40
|
+
*
|
|
41
|
+
* The group carries no heading of its OWN: only the caller knows what precedes it, so
|
|
42
|
+
* a heading here would sit under the caller's in half the cases it renders.
|
|
43
|
+
*
|
|
44
|
+
* The name input drops the global TextInput vertical rhythm (`mt`/`mb` of 0), as the
|
|
45
|
+
* itinerary name does, because the form stack's gap is the only spacing between fields.
|
|
46
|
+
*/
|
|
47
|
+
export const ZoneMetadataFields = ({
|
|
48
|
+
description,
|
|
49
|
+
descriptionError,
|
|
50
|
+
disabled,
|
|
51
|
+
level,
|
|
52
|
+
name,
|
|
53
|
+
nameError,
|
|
54
|
+
onDescriptionChange,
|
|
55
|
+
onLevelChange,
|
|
56
|
+
onNameChange,
|
|
57
|
+
}: ZoneMetadataFieldsProps) => {
|
|
58
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
59
|
+
|
|
60
|
+
return (
|
|
61
|
+
<>
|
|
62
|
+
<TextInput
|
|
63
|
+
disabled={disabled}
|
|
64
|
+
error={nameError}
|
|
65
|
+
label={words.zoneForm.nameLabel}
|
|
66
|
+
mb={0}
|
|
67
|
+
mt={0}
|
|
68
|
+
onChange={(event) => onNameChange(event.currentTarget.value)}
|
|
69
|
+
placeholder={words.zoneForm.namePlaceholder}
|
|
70
|
+
required
|
|
71
|
+
value={name}
|
|
72
|
+
/>
|
|
73
|
+
|
|
74
|
+
<Textarea
|
|
75
|
+
autosize
|
|
76
|
+
disabled={disabled}
|
|
77
|
+
error={descriptionError}
|
|
78
|
+
label={words.zoneForm.descriptionLabel}
|
|
79
|
+
maxRows={4}
|
|
80
|
+
minRows={2}
|
|
81
|
+
onChange={(event) => onDescriptionChange(event.currentTarget.value)}
|
|
82
|
+
placeholder={words.zoneForm.descriptionPlaceholder}
|
|
83
|
+
value={description}
|
|
84
|
+
/>
|
|
85
|
+
|
|
86
|
+
<ZoneLevelSelect disabled={disabled} onChange={onLevelChange} value={level} />
|
|
87
|
+
</>
|
|
88
|
+
);
|
|
89
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Input, Stack, Text } from "@mantine/core";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
|
|
4
|
+
import type { UiGlyph } from "@mountaya/elements/icons";
|
|
5
|
+
import {
|
|
6
|
+
REACHABILITY_GLYPH,
|
|
7
|
+
type ZoneCreateMethod,
|
|
8
|
+
zoneCreateMethodSchema,
|
|
9
|
+
} from "@mountaya/studio";
|
|
10
|
+
|
|
11
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
12
|
+
import { SegmentIconLabel } from "../../primitives/components/SegmentIconLabel.js";
|
|
13
|
+
import { StudioSegmentedControl } from "../../primitives/components/StudioSegmentedControl.js";
|
|
14
|
+
|
|
15
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
16
|
+
const SECTIONS = ["zoneForm"] as const;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* methodGlyphs maps each authoring method to the role that stands for it: a drawing
|
|
20
|
+
* pen for the hand-drawn area, and the shared reachability mark for the computed one,
|
|
21
|
+
* the SAME mark the map's own right-click menu offers the flow under, so a user who
|
|
22
|
+
* started there recognises where they landed. Typed as a total Record over
|
|
23
|
+
* ZoneCreateMethod so a method added to the enum surfaces here as a compile error
|
|
24
|
+
* rather than a missing glyph.
|
|
25
|
+
*/
|
|
26
|
+
const methodGlyphs: Record<ZoneCreateMethod, UiGlyph> = {
|
|
27
|
+
draw: "action-draw",
|
|
28
|
+
reachability: REACHABILITY_GLYPH,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* ZoneMethodSelectProps drive the authoring-method picker: the current `value` and
|
|
33
|
+
* the `onChange` the consumer wires to its create state, plus `disabled` so a
|
|
34
|
+
* permission-gated panel freezes it. Controlled, mirroring the shape and severity
|
|
35
|
+
* pickers beside it.
|
|
36
|
+
*/
|
|
37
|
+
interface ZoneMethodSelectProps {
|
|
38
|
+
disabled?: boolean | undefined;
|
|
39
|
+
onChange: (method: ZoneCreateMethod) => void;
|
|
40
|
+
value: ZoneCreateMethod;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* ZoneMethodSelect is the first choice of the zone create flow: whether the area
|
|
45
|
+
* is drawn by hand or computed from a point. It is the branch key the rest of the
|
|
46
|
+
* form reads (picking `draw` reveals the shape picker, picking `reachability`
|
|
47
|
+
* reveals the origin, activity and budget), so it sits above both.
|
|
48
|
+
*
|
|
49
|
+
* Unlike the shape and severity pickers, the segments keep their TEXT: there are only
|
|
50
|
+
* two, so the words fit the sidenav width, and "draw" versus "reachability" is a
|
|
51
|
+
* distinction no pair of icons makes legible on its own. A glyph leads each word
|
|
52
|
+
* anyway, not to replace it, but to give the pair a mark that repeats where the same
|
|
53
|
+
* idea appears elsewhere, which for reachability is the map's own right-click menu.
|
|
54
|
+
* The options derive from the zod method enum so a method added there flows here
|
|
55
|
+
* without a parallel list.
|
|
56
|
+
*/
|
|
57
|
+
export const ZoneMethodSelect = ({ disabled, onChange, value }: ZoneMethodSelectProps) => {
|
|
58
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
59
|
+
|
|
60
|
+
const data = useMemo(
|
|
61
|
+
() =>
|
|
62
|
+
zoneCreateMethodSchema.options.map((method) => ({
|
|
63
|
+
label: (
|
|
64
|
+
<SegmentIconLabel glyph={methodGlyphs[method]} label={words.zoneForm.methods[method]} />
|
|
65
|
+
),
|
|
66
|
+
value: method,
|
|
67
|
+
})),
|
|
68
|
+
[words],
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
return (
|
|
72
|
+
<Input.Wrapper label={words.zoneForm.methodLabel} required>
|
|
73
|
+
<Stack gap="xxs">
|
|
74
|
+
<StudioSegmentedControl
|
|
75
|
+
// The wrapper's label is bound to no control, so the group carries its name itself.
|
|
76
|
+
aria-label={words.zoneForm.methodLabel}
|
|
77
|
+
data={data}
|
|
78
|
+
disabled={disabled}
|
|
79
|
+
fullWidth
|
|
80
|
+
onChange={(next) => onChange(zoneCreateMethodSchema.parse(next))}
|
|
81
|
+
value={value}
|
|
82
|
+
/>
|
|
83
|
+
|
|
84
|
+
<Text c="dimmed" size="xs">
|
|
85
|
+
{words.zoneForm.methodHint}
|
|
86
|
+
</Text>
|
|
87
|
+
</Stack>
|
|
88
|
+
</Input.Wrapper>
|
|
89
|
+
);
|
|
90
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Input, Stack, Text } from "@mantine/core";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
|
|
4
|
+
import type { UiGlyph } from "@mountaya/elements/icons";
|
|
5
|
+
import { type ZoneEditMode, zoneEditModeSchema } from "@mountaya/studio";
|
|
6
|
+
|
|
7
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
8
|
+
import { SegmentIcon } from "../../primitives/components/SegmentIcon.js";
|
|
9
|
+
import { StudioSegmentedControl } from "../../primitives/components/StudioSegmentedControl.js";
|
|
10
|
+
|
|
11
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
12
|
+
const SECTIONS = ["zoneForm"] as const;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* modeGlyphs maps each zone authoring mode to the role that stands in for it
|
|
16
|
+
* in the shape picker: a circle for the drag-to-size circle, a polygon for the
|
|
17
|
+
* vertex-by-vertex area, a pie wedge for the angular sector, a radar sweep for the
|
|
18
|
+
* sensor field, and a squiggly line for the freehand line. Module-const so the mapping is
|
|
19
|
+
* built once and the picker's option memo carries no dependency on it. Typed as a
|
|
20
|
+
* total Record over ZoneEditMode so a mode added to the enum surfaces here as a
|
|
21
|
+
* compile error rather than a missing glyph.
|
|
22
|
+
*/
|
|
23
|
+
const modeGlyphs: Record<ZoneEditMode, UiGlyph> = {
|
|
24
|
+
circle: "zone-mode-circle",
|
|
25
|
+
freehand: "zone-mode-freehand",
|
|
26
|
+
polygon: "zone-mode-polygon",
|
|
27
|
+
sector: "zone-mode-sector",
|
|
28
|
+
sensor: "zone-mode-sensor",
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* ZoneModeSelectProps drive the zone shape picker: the current `value` (null shows no
|
|
33
|
+
* shape picked), the `onChange` the consumer fires to record the picked shape, and
|
|
34
|
+
* `locked`, true once the draw is armed or in edit mode, since the mode is immutable for
|
|
35
|
+
* the life of a zone (a draw never swaps draw modes mid-session, and a saved zone's
|
|
36
|
+
* geometry primitive cannot change). Controlled, like ActivitySelect.
|
|
37
|
+
*/
|
|
38
|
+
interface ZoneModeSelectProps {
|
|
39
|
+
locked: boolean;
|
|
40
|
+
onChange: (mode: ZoneEditMode) => void;
|
|
41
|
+
value: ZoneEditMode | null;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* ZoneModeSelect is the shape picker of a drawn zone's create flow: the shared
|
|
46
|
+
* StudioSegmentedControl (sized to match the form's other inputs) of the zone shapes
|
|
47
|
+
* (circle / polygon / sector / sensor / freehand). The shape picked is the one
|
|
48
|
+
* "Create and draw on map" arms the draw engine in.
|
|
49
|
+
*
|
|
50
|
+
* Each segment is an icon (a {@link SegmentIcon}, with the shape name on its hover tooltip
|
|
51
|
+
* and accessible name) rather than text: text labels never fit the sidenav width, and a
|
|
52
|
+
* shape reads better as a glyph than a truncated word. The mode is IMMUTABLE once chosen
|
|
53
|
+
* (the geometry primitive a zone is drawn as cannot change after the fact), so the control
|
|
54
|
+
* is disabled (but still shown, so the chosen shape stays visible) once `locked`, which the
|
|
55
|
+
* panel sets once the draw is armed and always in edit mode. The options are derived from
|
|
56
|
+
* the zod mode enum so a mode added or removed there flows here without a parallel list,
|
|
57
|
+
* each labeled from the `zoneForm.modes.*` locale bank and glyphed from {@link modeGlyphs}.
|
|
58
|
+
*
|
|
59
|
+
* SegmentedControl carries no `label` prop, so it sits inside an `Input.Wrapper` for the
|
|
60
|
+
* labeled chrome the rest of the form uses (the same pattern the import granularity control
|
|
61
|
+
* follows). Below the control, a dimmed hint that the shape locks once drawing starts is
|
|
62
|
+
* shown at all times, in the same Stack + dimmed Text chrome the visibility control uses for
|
|
63
|
+
* its explanation, so the constraint reads upfront rather than only appearing once the shape
|
|
64
|
+
* is already locked.
|
|
65
|
+
*/
|
|
66
|
+
export const ZoneModeSelect = ({ locked, onChange, value }: ZoneModeSelectProps) => {
|
|
67
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
68
|
+
|
|
69
|
+
const data = useMemo(
|
|
70
|
+
() =>
|
|
71
|
+
zoneEditModeSchema.options.map((mode) => ({
|
|
72
|
+
label: <SegmentIcon glyph={modeGlyphs[mode]} label={words.zoneForm.modes[mode]} />,
|
|
73
|
+
value: mode,
|
|
74
|
+
})),
|
|
75
|
+
[words],
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
return (
|
|
79
|
+
<Input.Wrapper label={words.zoneForm.modeLabel} required>
|
|
80
|
+
<Stack gap="xxs">
|
|
81
|
+
<StudioSegmentedControl
|
|
82
|
+
// The wrapper's label is bound to no control, so the group carries its name itself.
|
|
83
|
+
aria-label={words.zoneForm.modeLabel}
|
|
84
|
+
data={data}
|
|
85
|
+
disabled={locked}
|
|
86
|
+
onChange={(next) => onChange(zoneEditModeSchema.parse(next))}
|
|
87
|
+
// A null value shows no segment selected, as an empty string, and the parse on change
|
|
88
|
+
// narrows the raw value back to the mode union.
|
|
89
|
+
value={value ?? ""}
|
|
90
|
+
/>
|
|
91
|
+
|
|
92
|
+
<Text c="dimmed" size="xs">
|
|
93
|
+
{words.zoneForm.modeLocked}
|
|
94
|
+
</Text>
|
|
95
|
+
</Stack>
|
|
96
|
+
</Input.Wrapper>
|
|
97
|
+
);
|
|
98
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { Group, Input, NumberInput } from "@mantine/core";
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
|
|
4
|
+
import { distanceUnitFor } from "@mountaya/elements/profile";
|
|
5
|
+
import { convertDuration, convertLength, type UnitLength } from "@mountaya/elements/units";
|
|
6
|
+
|
|
7
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
8
|
+
import { StudioSegmentedControl } from "../../primitives/components/StudioSegmentedControl.js";
|
|
9
|
+
|
|
10
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
11
|
+
const SECTIONS = ["suggest", "zoneForm"] as const;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* ZoneRangeType is how a reachability zone's budget is measured: travel `time`
|
|
15
|
+
* (seconds) or travel `distance` (meters), the same vocabulary the wire
|
|
16
|
+
* ZoneSource.range_type carries. It lives here because this field owns both halves
|
|
17
|
+
* of the budget: the number and the unit it is counted in.
|
|
18
|
+
*/
|
|
19
|
+
export type ZoneRangeType = "distance" | "time";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* ZoneRangeInputProps drive the travel-budget field: the current `range` in the
|
|
23
|
+
* wire base unit (seconds for time, meters for distance), which `rangeType` it is
|
|
24
|
+
* measured in, the reader's `length` system for the distance unit, and the two
|
|
25
|
+
* callbacks reporting a new budget (in the wire unit) and a new measure.
|
|
26
|
+
*/
|
|
27
|
+
interface ZoneRangeInputProps {
|
|
28
|
+
disabled?: boolean | undefined;
|
|
29
|
+
length: UnitLength;
|
|
30
|
+
onChange: (range: number) => void;
|
|
31
|
+
onRangeTypeChange: (rangeType: ZoneRangeType) => void;
|
|
32
|
+
range: number;
|
|
33
|
+
rangeType: ZoneRangeType;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* ZoneRangeInput is the single travel budget a reachability zone is computed for:
|
|
38
|
+
* one labelled group holding the number and, directly beside it, the unit that
|
|
39
|
+
* number is counted in (minutes, or the reader's own distance unit).
|
|
40
|
+
*
|
|
41
|
+
* The unit is the measure. Time versus distance is the one choice in this form a
|
|
42
|
+
* reader can get wrong without noticing, because "30" is a plausible number of
|
|
43
|
+
* minutes AND a plausible number of kilometers, so rather than name the measure
|
|
44
|
+
* abstractly in a control of its own, the segments ARE the units, sitting against
|
|
45
|
+
* the number they apply to. The field reads as the sentence it means: "within 30
|
|
46
|
+
* min". A measure named somewhere above the number cannot do that.
|
|
47
|
+
*
|
|
48
|
+
* A zone carries ONE budget, and it is typed rather than chosen: the useful value
|
|
49
|
+
* is usually a specific one ("we have until four, so ninety minutes"), which no set
|
|
50
|
+
* of preset shortcuts covers without becoming a wall of options.
|
|
51
|
+
*
|
|
52
|
+
* Distance leads the pair, and is what a zone opens on. It is the measure that needs
|
|
53
|
+
* nothing else: a distance is speed-independent, so choosing it withdraws the pace
|
|
54
|
+
* field, while a time budget is only as good as the pace it is measured at.
|
|
55
|
+
*
|
|
56
|
+
* The wire unit never reaches the input: seconds and meters are converted on the way
|
|
57
|
+
* in and back on the way out, a time into minutes (a travel budget is stated in minutes
|
|
58
|
+
* and hours, never in seconds) and a distance into the unit distanceUnitFor resolves, so
|
|
59
|
+
* an imperial reader sees miles here exactly as everywhere else.
|
|
60
|
+
*/
|
|
61
|
+
export const ZoneRangeInput = ({
|
|
62
|
+
disabled,
|
|
63
|
+
length,
|
|
64
|
+
onChange,
|
|
65
|
+
onRangeTypeChange,
|
|
66
|
+
range,
|
|
67
|
+
rangeType,
|
|
68
|
+
}: ZoneRangeInputProps) => {
|
|
69
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
70
|
+
const inputId = useId();
|
|
71
|
+
|
|
72
|
+
const isTime = rangeType === "time";
|
|
73
|
+
const unit = distanceUnitFor(length);
|
|
74
|
+
|
|
75
|
+
const distanceUnit = unit === "mile" ? words.suggest.units.miles : words.suggest.units.kilometers;
|
|
76
|
+
|
|
77
|
+
const shown = isTime
|
|
78
|
+
? convertDuration(range, "second", "minute")
|
|
79
|
+
: convertLength(range, "meter", unit);
|
|
80
|
+
const display = Math.round(shown * 10) / 10;
|
|
81
|
+
|
|
82
|
+
return (
|
|
83
|
+
// The wrapper's label names the FIELD, and is handed the number input's own id so
|
|
84
|
+
// the two stay bound. The unit control beside it is a second control under that
|
|
85
|
+
// one label, which only a wrapper can hold, and it carries its own name, since
|
|
86
|
+
// the label already points at the number.
|
|
87
|
+
<Input.Wrapper id={inputId} label={words.zoneForm.rangeLabel} required>
|
|
88
|
+
<Group gap="xs" grow wrap="nowrap">
|
|
89
|
+
<NumberInput
|
|
90
|
+
allowNegative={false}
|
|
91
|
+
decimalScale={1}
|
|
92
|
+
disabled={disabled}
|
|
93
|
+
id={inputId}
|
|
94
|
+
min={0.1}
|
|
95
|
+
onChange={(value) => {
|
|
96
|
+
// Only a budget is reported. The budget is required and a non-positive one has no
|
|
97
|
+
// polygon, so a cleared field, a zero and a separator alone are keys on the way to
|
|
98
|
+
// a number: the last valid budget stands until the reader has typed another.
|
|
99
|
+
const typed = value === "" ? Number.NaN : Number(value);
|
|
100
|
+
if (!Number.isFinite(typed) || typed <= 0) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
onChange(
|
|
105
|
+
isTime
|
|
106
|
+
? convertDuration(typed, "minute", "second")
|
|
107
|
+
: convertLength(typed, unit, "meter"),
|
|
108
|
+
);
|
|
109
|
+
}}
|
|
110
|
+
required
|
|
111
|
+
step={isTime ? 5 : 1}
|
|
112
|
+
value={display}
|
|
113
|
+
/>
|
|
114
|
+
|
|
115
|
+
<StudioSegmentedControl
|
|
116
|
+
aria-label={words.zoneForm.measureLabel}
|
|
117
|
+
data={[
|
|
118
|
+
{ label: distanceUnit, value: "distance" },
|
|
119
|
+
{ label: words.zoneForm.rangeUnitMinutes, value: "time" },
|
|
120
|
+
]}
|
|
121
|
+
disabled={disabled}
|
|
122
|
+
fullWidth
|
|
123
|
+
onChange={(next) => onRangeTypeChange(next === "distance" ? "distance" : "time")}
|
|
124
|
+
value={rangeType}
|
|
125
|
+
/>
|
|
126
|
+
</Group>
|
|
127
|
+
</Input.Wrapper>
|
|
128
|
+
);
|
|
129
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
import type { UnitLength, UnitPace } from "@mountaya/elements/units";
|
|
4
|
+
|
|
5
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
6
|
+
import { PointField } from "../../primitives/components/PointField.js";
|
|
7
|
+
import { SpeedInput } from "../../primitives/components/SpeedInput.js";
|
|
8
|
+
import { ZoneRangeInput, type ZoneRangeType } from "./ZoneRangeInput.js";
|
|
9
|
+
|
|
10
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
11
|
+
const SECTIONS = ["segments", "suggest", "zoneForm"] as const;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* ZoneReachabilityFieldsProps are the parameters a computed zone is generated
|
|
15
|
+
* from, plus the callbacks reporting each change. Controlled throughout: the panel
|
|
16
|
+
* owns the values (some in the store, some in local form state) and this renders
|
|
17
|
+
* them, so the SAME group serves a create and an edit of a saved computed zone.
|
|
18
|
+
*
|
|
19
|
+
* `activity` is a SLOT rather than a picker's worth of props. A create begun inside
|
|
20
|
+
* an open itinerary takes that itinerary's activity and offers no choice at all, so
|
|
21
|
+
* the caller decides whether there is a control here; this group only decides where
|
|
22
|
+
* it sits.
|
|
23
|
+
*/
|
|
24
|
+
interface ZoneReachabilityFieldsProps {
|
|
25
|
+
activity: ReactNode;
|
|
26
|
+
defaultSpeedKmh: number | null;
|
|
27
|
+
disabled?: boolean | undefined;
|
|
28
|
+
length: UnitLength;
|
|
29
|
+
pace: UnitPace;
|
|
30
|
+
onBeginOriginPick: () => void;
|
|
31
|
+
onRangeChange: (range: number) => void;
|
|
32
|
+
onRangeTypeChange: (rangeType: ZoneRangeType) => void;
|
|
33
|
+
onSpeedChange: (speedKmh: number | null) => void;
|
|
34
|
+
origin: [number, number] | null;
|
|
35
|
+
picking: boolean;
|
|
36
|
+
range: number;
|
|
37
|
+
rangeType: ZoneRangeType;
|
|
38
|
+
speedKmh: number | null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* ZoneReachabilityFields is the parameter group a computed zone's polygon is
|
|
43
|
+
* generated from: the origin it is measured from, the activity whose routing
|
|
44
|
+
* profile it follows, the travel budget, and (for a time budget) the pace to
|
|
45
|
+
* measure it at.
|
|
46
|
+
*
|
|
47
|
+
* It is shared by the create flow and the edit of a saved computed zone, which is
|
|
48
|
+
* the whole point of the group existing: a computed zone's shape IS these values,
|
|
49
|
+
* so editing them and re-saving recomputes it, and the panel needs no second
|
|
50
|
+
* vocabulary for "change the query" versus "set it up".
|
|
51
|
+
*
|
|
52
|
+
* The activity leads: it is what the area is computed FOR. It picks the routing
|
|
53
|
+
* profile every other value is then measured against, and it is the one parameter
|
|
54
|
+
* a reader must settle before the rest mean anything. An inherited create passes no
|
|
55
|
+
* control at all, so the group opens on the origin instead.
|
|
56
|
+
*
|
|
57
|
+
* The origin uses the same "Set on map" affordance the suggest form's endpoints
|
|
58
|
+
* use rather than raw coordinate fields: a point on a map is chosen by pointing
|
|
59
|
+
* at it. The speed only shows for a TIME budget: a distance budget is
|
|
60
|
+
* speed-independent, and offering a pace beside one would imply an effect it
|
|
61
|
+
* cannot have.
|
|
62
|
+
*
|
|
63
|
+
* Every control here names what it does and nothing else. The panel is a single
|
|
64
|
+
* column at sidenav width where each explanatory line costs a field's worth of
|
|
65
|
+
* height, so a line only earns its place by saying something the control cannot:
|
|
66
|
+
* the budget's unit is on the budget, and the pace's fallback is in the pace
|
|
67
|
+
* field's own placeholder, which spells the activity's actual km/h.
|
|
68
|
+
*/
|
|
69
|
+
export const ZoneReachabilityFields = ({
|
|
70
|
+
activity,
|
|
71
|
+
defaultSpeedKmh,
|
|
72
|
+
disabled,
|
|
73
|
+
length,
|
|
74
|
+
onBeginOriginPick,
|
|
75
|
+
onRangeChange,
|
|
76
|
+
onRangeTypeChange,
|
|
77
|
+
onSpeedChange,
|
|
78
|
+
origin,
|
|
79
|
+
pace,
|
|
80
|
+
picking,
|
|
81
|
+
range,
|
|
82
|
+
rangeType,
|
|
83
|
+
speedKmh,
|
|
84
|
+
}: ZoneReachabilityFieldsProps) => {
|
|
85
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
86
|
+
|
|
87
|
+
return (
|
|
88
|
+
<>
|
|
89
|
+
{activity}
|
|
90
|
+
|
|
91
|
+
<PointField
|
|
92
|
+
armed={picking}
|
|
93
|
+
disabled={disabled}
|
|
94
|
+
label={words.zoneForm.originLabel}
|
|
95
|
+
onBegin={onBeginOriginPick}
|
|
96
|
+
point={origin}
|
|
97
|
+
/>
|
|
98
|
+
|
|
99
|
+
<ZoneRangeInput
|
|
100
|
+
disabled={disabled}
|
|
101
|
+
length={length}
|
|
102
|
+
onChange={onRangeChange}
|
|
103
|
+
onRangeTypeChange={onRangeTypeChange}
|
|
104
|
+
range={range}
|
|
105
|
+
rangeType={rangeType}
|
|
106
|
+
/>
|
|
107
|
+
|
|
108
|
+
{rangeType === "time" ? (
|
|
109
|
+
<SpeedInput
|
|
110
|
+
defaultSpeedKmh={defaultSpeedKmh}
|
|
111
|
+
disabled={disabled}
|
|
112
|
+
kmh={speedKmh}
|
|
113
|
+
length={length}
|
|
114
|
+
onChange={onSpeedChange}
|
|
115
|
+
pace={pace}
|
|
116
|
+
/>
|
|
117
|
+
) : null}
|
|
118
|
+
</>
|
|
119
|
+
);
|
|
120
|
+
};
|