@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,219 @@
|
|
|
1
|
+
import { Box, Collapse } from "@mantine/core";
|
|
2
|
+
import { type ReactNode, type PointerEvent as ReactPointerEvent, useCallback, useRef } from "react";
|
|
3
|
+
|
|
4
|
+
import { type ProfileSheetSnap, selectProfileSheetSnap } from "@mountaya/studio";
|
|
5
|
+
|
|
6
|
+
import { useAgentDriving } from "../../headless/hooks/useAgentDriving.js";
|
|
7
|
+
import { useStudioDispatch } from "../../headless/hooks/useStudioDispatch.js";
|
|
8
|
+
import { useUiStore } from "../../headless/hooks/useUiStore.js";
|
|
9
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
10
|
+
import { useCompactLayout } from "../../primitives/hooks/useCompactLayout.js";
|
|
11
|
+
|
|
12
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
13
|
+
const SECTIONS = ["profile"] as const;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* SNAP_ORDER is the sheet's snap points from smallest to largest. The tap-to-cycle
|
|
17
|
+
* walks it forwards and wraps, and a drag steps one place along it, so the two
|
|
18
|
+
* gestures agree on what "the next size up" means.
|
|
19
|
+
*/
|
|
20
|
+
const SNAP_ORDER: readonly ProfileSheetSnap[] = ["peek", "half", "full"];
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* DRAG_SNAP_THRESHOLD_PX is how far the finger must travel before a release
|
|
24
|
+
* changes the snap. Below it the gesture reads as a tap and cycles instead, so a
|
|
25
|
+
* user who means to tap the handle is never punished for a few pixels of jitter.
|
|
26
|
+
*/
|
|
27
|
+
const DRAG_SNAP_THRESHOLD_PX = 24;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* DRAG_MAX_OFFSET_PX bounds the live translate the sheet follows the finger by. It
|
|
31
|
+
* is feedback, not a resize: the sheet nudges to acknowledge the gesture and then
|
|
32
|
+
* settles onto a snap, so it never needs to track the full travel.
|
|
33
|
+
*/
|
|
34
|
+
const DRAG_MAX_OFFSET_PX = 48;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* stepSnap returns the snap one place along {@link SNAP_ORDER} in `direction`,
|
|
38
|
+
* clamped at both ends: a drag past `full` stays `full` rather than wrapping,
|
|
39
|
+
* because a wrap mid-gesture reads as the sheet slamming shut.
|
|
40
|
+
*/
|
|
41
|
+
const stepSnap = (snap: ProfileSheetSnap, direction: 1 | -1): ProfileSheetSnap => {
|
|
42
|
+
const next = SNAP_ORDER.indexOf(snap) + direction;
|
|
43
|
+
|
|
44
|
+
return SNAP_ORDER[Math.min(SNAP_ORDER.length - 1, Math.max(0, next))] ?? snap;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* cycleSnap returns the next snap up, wrapping `full` back to `peek`. It is the
|
|
49
|
+
* TAP behaviour (and the keyboard one), where a wrap is what the user wants: a
|
|
50
|
+
* single repeated activation walks the whole range without needing two directions.
|
|
51
|
+
*/
|
|
52
|
+
const cycleSnap = (snap: ProfileSheetSnap): ProfileSheetSnap =>
|
|
53
|
+
SNAP_ORDER[(SNAP_ORDER.indexOf(snap) + 1) % SNAP_ORDER.length] ?? snap;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* ItineraryProfileSheetProps wrap the docked profile. `expanded` is the desktop
|
|
57
|
+
* visibility the height-aware resolver drives (the profile collapses out of an
|
|
58
|
+
* open floating panel's way); it is ignored on a compact viewport, where the snap
|
|
59
|
+
* is the user's to choose and the sheet must never disappear on its own.
|
|
60
|
+
*/
|
|
61
|
+
interface ItineraryProfileSheetProps {
|
|
62
|
+
children: ReactNode;
|
|
63
|
+
expanded: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* ItineraryProfileSheet is the docked elevation profile's container, in the two forms the
|
|
68
|
+
* two layouts need.
|
|
69
|
+
*
|
|
70
|
+
* On a desktop layout it is a Collapse the height-aware resolver opens and closes, sliding
|
|
71
|
+
* the profile out of an open floating panel's way in one vertical motion.
|
|
72
|
+
*
|
|
73
|
+
* On a compact viewport it is a bottom sheet with a drag handle, because a phone has no
|
|
74
|
+
* hover: the desktop profile reveals its analysis bars on pointer-enter and scrubs its
|
|
75
|
+
* readout on pointer-move, neither of which a touch device performs, so two of the
|
|
76
|
+
* profile's features would be unreachable. The snap point replaces the hover as the
|
|
77
|
+
* reveal, and (unlike the height resolver) it belongs to the user: `peek` keeps the key
|
|
78
|
+
* figures with the map almost fully visible, `half` adds the chart, `full` adds the
|
|
79
|
+
* analysis. Nothing auto-hides.
|
|
80
|
+
*
|
|
81
|
+
* Both gestures reach every snap. A drag steps one place in its direction, with
|
|
82
|
+
* the sheet following the finger through a CSS custom property written on a REF
|
|
83
|
+
* (no React state per frame, so the gesture costs no re-render). A tap (or Enter on
|
|
84
|
+
* the handle, which is a real button) cycles forward and wraps, so the range is
|
|
85
|
+
* reachable without a pointer at all. Both settle through the bus, the single
|
|
86
|
+
* mutation surface.
|
|
87
|
+
*
|
|
88
|
+
* The handle goes inert while an agent run drives the workspace: the snap is stored
|
|
89
|
+
* state the run reads, and a disabled button takes neither the tap nor the drag, so
|
|
90
|
+
* both gestures stop at once. The profile itself stays visible throughout.
|
|
91
|
+
*/
|
|
92
|
+
export const ItineraryProfileSheet = ({ children, expanded }: ItineraryProfileSheetProps) => {
|
|
93
|
+
const { dispatch } = useStudioDispatch();
|
|
94
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
95
|
+
const compact = useCompactLayout();
|
|
96
|
+
const snap = useUiStore(selectProfileSheetSnap);
|
|
97
|
+
const agentDriving = useAgentDriving();
|
|
98
|
+
|
|
99
|
+
const sheetRef = useRef<HTMLDivElement>(null);
|
|
100
|
+
// The gesture's start position and whether it has passed the tap threshold. Both
|
|
101
|
+
// live in a ref: they change on every pointermove and no render reads them.
|
|
102
|
+
const dragRef = useRef<{ moved: boolean; startY: number } | null>(null);
|
|
103
|
+
|
|
104
|
+
const applySnap = useCallback(
|
|
105
|
+
(next: ProfileSheetSnap) => {
|
|
106
|
+
void dispatch("studio.itinerary.profile.sheet.set", { snap: next });
|
|
107
|
+
},
|
|
108
|
+
[dispatch],
|
|
109
|
+
);
|
|
110
|
+
|
|
111
|
+
/** setDragOffset writes the live finger offset straight to the DOM, bypassing React. */
|
|
112
|
+
const setDragOffset = useCallback((offset: number | null) => {
|
|
113
|
+
const sheet = sheetRef.current;
|
|
114
|
+
if (!sheet) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (offset === null) {
|
|
119
|
+
sheet.style.removeProperty("--mtya-sheet-drag");
|
|
120
|
+
delete sheet.dataset.dragging;
|
|
121
|
+
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
sheet.style.setProperty("--mtya-sheet-drag", `${offset}px`);
|
|
126
|
+
sheet.dataset.dragging = "true";
|
|
127
|
+
}, []);
|
|
128
|
+
|
|
129
|
+
const onPointerDown = useCallback((event: ReactPointerEvent<HTMLButtonElement>) => {
|
|
130
|
+
// Capture so the gesture keeps reporting once the finger leaves the handle: a
|
|
131
|
+
// drag upward travels off the button almost immediately. Guarded because pointer
|
|
132
|
+
// capture is not universal (a render-free test environment has no implementation),
|
|
133
|
+
// and losing the capture only costs precision, never the gesture.
|
|
134
|
+
event.currentTarget.setPointerCapture?.(event.pointerId);
|
|
135
|
+
dragRef.current = { moved: false, startY: event.clientY };
|
|
136
|
+
}, []);
|
|
137
|
+
|
|
138
|
+
const onPointerMove = useCallback(
|
|
139
|
+
(event: ReactPointerEvent<HTMLButtonElement>) => {
|
|
140
|
+
const drag = dragRef.current;
|
|
141
|
+
if (!drag) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const dy = event.clientY - drag.startY;
|
|
146
|
+
if (Math.abs(dy) > DRAG_SNAP_THRESHOLD_PX) {
|
|
147
|
+
drag.moved = true;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
setDragOffset(Math.max(-DRAG_MAX_OFFSET_PX, Math.min(DRAG_MAX_OFFSET_PX, dy)));
|
|
151
|
+
},
|
|
152
|
+
[setDragOffset],
|
|
153
|
+
);
|
|
154
|
+
|
|
155
|
+
const onPointerUp = useCallback(
|
|
156
|
+
(event: ReactPointerEvent<HTMLButtonElement>) => {
|
|
157
|
+
const drag = dragRef.current;
|
|
158
|
+
dragRef.current = null;
|
|
159
|
+
setDragOffset(null);
|
|
160
|
+
if (!drag) {
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// Below the threshold the gesture is a tap: cycle forward so a repeated tap
|
|
165
|
+
// walks the whole range. Past it, step one snap in the drag's direction:
|
|
166
|
+
// dragging UP opens the sheet, which is the direction it grows.
|
|
167
|
+
if (!drag.moved) {
|
|
168
|
+
applySnap(cycleSnap(snap));
|
|
169
|
+
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
applySnap(stepSnap(snap, event.clientY < drag.startY ? 1 : -1));
|
|
174
|
+
},
|
|
175
|
+
[applySnap, setDragOffset, snap],
|
|
176
|
+
);
|
|
177
|
+
|
|
178
|
+
// A cancelled press (a system gesture, palm rejection, a dialog taking the pointer) is no tap
|
|
179
|
+
// and no drag the reader finished: the gesture ends and the sheet stays at its snap.
|
|
180
|
+
const onPointerCancel = useCallback(() => {
|
|
181
|
+
dragRef.current = null;
|
|
182
|
+
setDragOffset(null);
|
|
183
|
+
}, [setDragOffset]);
|
|
184
|
+
|
|
185
|
+
// The desktop dock: the height-aware resolver opens and closes it.
|
|
186
|
+
if (!compact) {
|
|
187
|
+
return (
|
|
188
|
+
<Collapse expanded={expanded} keepMounted={false}>
|
|
189
|
+
{children}
|
|
190
|
+
</Collapse>
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return (
|
|
195
|
+
<Box className={"mtya-elevation-sheet-sheet"} ref={sheetRef}>
|
|
196
|
+
<button
|
|
197
|
+
aria-label={words.profile.sheet.handle}
|
|
198
|
+
className={"mtya-elevation-sheet-handle"}
|
|
199
|
+
disabled={agentDriving}
|
|
200
|
+
// A KEYBOARD activation (Enter/Space) fires click with no pointer behind
|
|
201
|
+
// it (detail 0) and is the only click this handles: a real tap already
|
|
202
|
+
// settled through onPointerUp, and acting on both would cycle twice.
|
|
203
|
+
onClick={(event) => {
|
|
204
|
+
if (event.detail === 0) {
|
|
205
|
+
applySnap(cycleSnap(snap));
|
|
206
|
+
}
|
|
207
|
+
}}
|
|
208
|
+
onPointerCancel={onPointerCancel}
|
|
209
|
+
onPointerDown={onPointerDown}
|
|
210
|
+
onPointerMove={onPointerMove}
|
|
211
|
+
onPointerUp={onPointerUp}
|
|
212
|
+
type="button"
|
|
213
|
+
>
|
|
214
|
+
<Box className={"mtya-elevation-sheet-grip"} />
|
|
215
|
+
</button>
|
|
216
|
+
{children}
|
|
217
|
+
</Box>
|
|
218
|
+
);
|
|
219
|
+
};
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { Button, Group, Tooltip } from "@mantine/core";
|
|
2
|
+
|
|
3
|
+
import { collabResourceKey, selectActiveEditEngine } from "@mountaya/studio";
|
|
4
|
+
|
|
5
|
+
import { useCollabOrganizationId } from "../../collab/hooks/useCollabOrganizationId.js";
|
|
6
|
+
import { useStudioEntitlement } from "../../headless/hooks/useStudioEntitlement.js";
|
|
7
|
+
import { useUiStoreShallow } from "../../headless/hooks/useUiStoreShallow.js";
|
|
8
|
+
import { useStudioPeerName } from "../../headless/providers/studio.js";
|
|
9
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
10
|
+
import { PublicationSettledPill } from "../../publication/components/PublicationSettledPill.js";
|
|
11
|
+
import { PublicationStatus } from "../../publication/components/PublicationStatus.js";
|
|
12
|
+
import { usePublicationHint } from "../../publication/hooks/usePublicationHint.js";
|
|
13
|
+
import { usePublishableScope } from "../../publication/hooks/usePublishableScope.js";
|
|
14
|
+
import { usePublishItinerary } from "../../publication/hooks/usePublishItinerary.js";
|
|
15
|
+
import { menuActionIcons } from "../../rules/menuActions.js";
|
|
16
|
+
import { iconSizes } from "../../rules/sizing.js";
|
|
17
|
+
import { useItineraryEditable } from "../hooks/useItineraryEditable.js";
|
|
18
|
+
|
|
19
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
20
|
+
const SECTIONS = ["collab", "publish"] as const;
|
|
21
|
+
|
|
22
|
+
const PublishIcon = menuActionIcons.publish;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* ItinerarySubHeader is the band under the editor's header that answers "what does
|
|
26
|
+
* the public see?" and offers the one act that changes that answer.
|
|
27
|
+
*
|
|
28
|
+
* It is its own band because publication is a different KIND of statement from
|
|
29
|
+
* everything else in the header. The header names the itinerary (what it is called,
|
|
30
|
+
* what it is routed for, how far it goes), all of which the user is editing.
|
|
31
|
+
* Publication is about a second copy of the itinerary that other people see, and a
|
|
32
|
+
* mark for it beside the activity would make the header a list of unlike facts. Given
|
|
33
|
+
* a rule of its own, the header stays identity and this band stays one decision.
|
|
34
|
+
*
|
|
35
|
+
* It is ONE row: the state on the left, the act on the right. Three rows (a filled
|
|
36
|
+
* badge, a button, and a sentence beneath) would say the same thing three times
|
|
37
|
+
* ("MODIFIÉ", "Publier les modifications", "Modifié depuis votre dernière publication")
|
|
38
|
+
* in the loudest ink on the panel. The state is a coloured dot and a word, the age of
|
|
39
|
+
* what is live follows it in the dimmed metadata idiom the rows use, and the sentence
|
|
40
|
+
* sits in the line's tooltip, where an explanation belongs once the state itself is
|
|
41
|
+
* legible. The button keeps only the verb: the line beside it already says what changed.
|
|
42
|
+
*
|
|
43
|
+
* With nothing left to publish the button stops being a verb: a lime, checked "Up to date"
|
|
44
|
+
* pill, the studio's locked-status treatment for a state that is settled. A DISABLED
|
|
45
|
+
* button is the wrong shape for it: gray and dimmed reads as a primary action the panel
|
|
46
|
+
* has broken, when the truth is that the work is done. That state outranks every blocker
|
|
47
|
+
* below it, because a peer holding a segment cannot make a settled itinerary un-settled.
|
|
48
|
+
*
|
|
49
|
+
* The pill answers nothing. Withdrawal is not offered on this band at all: the itinerary
|
|
50
|
+
* action menu sits in the header one row above and carries the Unpublish item, and a
|
|
51
|
+
* dropdown here holding that single act would put the same verb on screen twice, one row
|
|
52
|
+
* apart.
|
|
53
|
+
*
|
|
54
|
+
* It is ALWAYS mounted for an open itinerary, and the action is always rendered, standing
|
|
55
|
+
* down with its reason on hover rather than unmounting. A band that disappeared whenever
|
|
56
|
+
* there was nothing to publish would make the segment list jump up the panel the moment a
|
|
57
|
+
* publish lands and jump back down on the next edit. A row that moves under the user is
|
|
58
|
+
* worse than a row that spends its height saying "everything is live", which is a thing
|
|
59
|
+
* worth knowing anyway.
|
|
60
|
+
*
|
|
61
|
+
* Two readers are offered no act. One who may not edit the itinerary, a member whose role reads
|
|
62
|
+
* only among them: publishing writes it. And one who does not hold the `publish` entitlement,
|
|
63
|
+
* whose organization's agreement does not include Map Publishing: what they would publish is
|
|
64
|
+
* served to nobody. The band says what the public sees and offers no act, at the same height.
|
|
65
|
+
*
|
|
66
|
+
* The row cannot clip at any panel width or in any language: the action is fixed-width
|
|
67
|
+
* and never shrinks, and the status text gives up its width first and ellipsises. The
|
|
68
|
+
* dot and the state word are what must survive, and both are before the truncation
|
|
69
|
+
* point.
|
|
70
|
+
*
|
|
71
|
+
* The action stands down, with the reason on hover, whenever something is in flight
|
|
72
|
+
* that publishing would freeze half-finished: a collaborator holding any of the
|
|
73
|
+
* itinerary's entities, the co-pilot driving, or the local user's own open edit.
|
|
74
|
+
* Those are the same preconditions the tool re-checks and the server enforces;
|
|
75
|
+
* showing them here just saves a doomed round-trip.
|
|
76
|
+
*/
|
|
77
|
+
export const ItinerarySubHeader = () => {
|
|
78
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
79
|
+
|
|
80
|
+
// One narrow read serves the whole band: the publication state it renders and the
|
|
81
|
+
// three blockers it gates on. The lock map is read by reference (the store replaces
|
|
82
|
+
// it only when a lock actually moves), so a peer's cursor frame does not re-render
|
|
83
|
+
// this band.
|
|
84
|
+
const { agentDriving, editing, itinerary, lockHolderId } = useUiStoreShallow((state) => {
|
|
85
|
+
const active = state.activeItinerary;
|
|
86
|
+
const locks = active
|
|
87
|
+
? state.collabByResource[collabResourceKey({ id: active.id, kind: "itineraries" })]?.locks
|
|
88
|
+
: undefined;
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
agentDriving: state.agentDriving,
|
|
92
|
+
editing: selectActiveEditEngine(state) !== null,
|
|
93
|
+
itinerary: active,
|
|
94
|
+
// The mirrored map only ever holds PEERS' locks (the session drops the local
|
|
95
|
+
// user's own echoes), so any entry here is a collaborator's hold. The local
|
|
96
|
+
// user's uncommitted edit is the `editing` blocker instead.
|
|
97
|
+
lockHolderId: Object.values(locks ?? {})[0] ?? null,
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
// The member read is deferred to the rare contested case: with no lock held there
|
|
102
|
+
// is no name to resolve, so the list is never fetched.
|
|
103
|
+
const resolveName = useStudioPeerName(useCollabOrganizationId());
|
|
104
|
+
const { pending, publish } = usePublishItinerary(itinerary?.id ?? "");
|
|
105
|
+
const { detail, hint, label, state } = usePublicationHint(itinerary ?? undefined);
|
|
106
|
+
|
|
107
|
+
// Called BEFORE the early return below, so the hook order is unconditional. The wire
|
|
108
|
+
// schema makes `organization_id` a required non-null field, so the only absent case
|
|
109
|
+
// here is "no itinerary open", which the return handles.
|
|
110
|
+
const publishable = usePublishableScope(itinerary?.organization_id);
|
|
111
|
+
|
|
112
|
+
// Publishing is a Map Publishing act, which the `publish` entitlement answers, read live so an
|
|
113
|
+
// agreement that changes mid-session shows or hides the act at once.
|
|
114
|
+
const publishHeld = useStudioEntitlement("publish");
|
|
115
|
+
|
|
116
|
+
// Publishing writes the itinerary, so a reader who may not edit it is offered no act.
|
|
117
|
+
const editable = useItineraryEditable(
|
|
118
|
+
itinerary
|
|
119
|
+
? { createdById: itinerary.created_by.id, organizationId: itinerary.organization_id }
|
|
120
|
+
: null,
|
|
121
|
+
);
|
|
122
|
+
|
|
123
|
+
if (!itinerary) {
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Only three states can reach here: publicationStateOf answers "loading" and
|
|
128
|
+
// "error" for a MISSING itinerary, and this band already returned above in that
|
|
129
|
+
// case. So a settled itinerary is exactly a published one with nothing behind it.
|
|
130
|
+
const settled = state === "published";
|
|
131
|
+
|
|
132
|
+
// The blockers in the order they can be explained: a peer can be named, the co-pilot
|
|
133
|
+
// is a static reason, and the local edit is the user's own to finish. Having nothing
|
|
134
|
+
// left to publish is NOT among them: it is not a refusal, and it takes the settled
|
|
135
|
+
// treatment below instead.
|
|
136
|
+
let blockedReason: string | null = null;
|
|
137
|
+
if (lockHolderId !== null) {
|
|
138
|
+
const name = resolveName(lockHolderId);
|
|
139
|
+
blockedReason = name === null ? words.collab.locked : words.publish.blockedByPeer(name);
|
|
140
|
+
} else if (agentDriving) {
|
|
141
|
+
blockedReason = words.publish.blockedByAgent;
|
|
142
|
+
} else if (editing) {
|
|
143
|
+
blockedReason = words.publish.blockedByEdit;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// The two states that take no act are answered before the publish button: a PERSONAL
|
|
147
|
+
// itinerary first, then a settled one.
|
|
148
|
+
//
|
|
149
|
+
// A PERSONAL itinerary can never be published, so the band shows a state rather than an
|
|
150
|
+
// act. It is checked first, above settled, because it outranks everything below it: a
|
|
151
|
+
// personal itinerary cannot become settled, blocked, or dirty in any way that would make
|
|
152
|
+
// publishing possible, so every reason below would be explaining the absence of an act
|
|
153
|
+
// that was never available. A gray disabled Button is the wrong shape for it, for the
|
|
154
|
+
// same reason the settled state rejects one: dimmed reads as a primary action the panel
|
|
155
|
+
// has broken. It mirrors the settled pill instead: `component="div"` keeps a control that
|
|
156
|
+
// answers nothing out of the tab order, and the tooltip + span shim carry the reason to the
|
|
157
|
+
// pointer. PublicationStatus beside it still reads "Draft", which is true and stays true.
|
|
158
|
+
//
|
|
159
|
+
// With nothing left to publish the control stops being a publish action: it becomes the
|
|
160
|
+
// lime, checked pill the studio draws for a settled, locked state. A DISABLED button is the
|
|
161
|
+
// wrong shape for it: gray and dimmed reads as a primary action the panel has broken, when
|
|
162
|
+
// the truth is that the work is done. It outranks every blocker above: a peer holding a
|
|
163
|
+
// segment cannot make a settled itinerary un-settled, so naming them here would explain the
|
|
164
|
+
// absence of an act that had nothing to do anyway. It is pure status and carries no act of
|
|
165
|
+
// its own. `component="div"` keeps it out of the tab order (a Button that answers nothing
|
|
166
|
+
// is a dead stop for a keyboard user) and the stylesheet's `.mtya-subheader-settled`
|
|
167
|
+
// finishes the job for the pointer. Withdrawal is the itinerary action menu's, one row
|
|
168
|
+
// above in the header, so a dropdown here offering it as well would put the same verb on
|
|
169
|
+
// screen twice.
|
|
170
|
+
if (!publishable) {
|
|
171
|
+
return (
|
|
172
|
+
<Group className="mtya-subheader-band" gap="xs" justify="space-between" wrap="nowrap">
|
|
173
|
+
<PublicationStatus detail={detail} hint={hint} label={label} state={state} />
|
|
174
|
+
<Tooltip label={words.publish.personal.hint}>
|
|
175
|
+
{/* A Button rendered as a div bubbles its own pointer events, but the shim keeps
|
|
176
|
+
this identical to the blocked-action shape one branch below. */}
|
|
177
|
+
<span>
|
|
178
|
+
<Button color="gray" component="div" size="compact-xs" variant="light">
|
|
179
|
+
{words.publish.personal.label}
|
|
180
|
+
</Button>
|
|
181
|
+
</span>
|
|
182
|
+
</Tooltip>
|
|
183
|
+
</Group>
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (settled) {
|
|
188
|
+
return (
|
|
189
|
+
<Group className="mtya-subheader-band" gap="xs" justify="space-between" wrap="nowrap">
|
|
190
|
+
<PublicationStatus detail={detail} hint={hint} label={label} state={state} />
|
|
191
|
+
<PublicationSettledPill label={words.publish.upToDate} />
|
|
192
|
+
</Group>
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// A reader who may not edit the itinerary, a member whose role reads only among them, or who
|
|
197
|
+
// does not hold `publish`, is told what the public sees and offered nothing to change it: the
|
|
198
|
+
// band keeps its height, so the list below it does not move, and the state is what it says.
|
|
199
|
+
if (!editable || !publishHeld) {
|
|
200
|
+
return (
|
|
201
|
+
<Group className="mtya-subheader-band" gap="xs" justify="space-between" wrap="nowrap">
|
|
202
|
+
<PublicationStatus detail={detail} hint={hint} label={label} state={state} />
|
|
203
|
+
</Group>
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const action = (
|
|
208
|
+
<Button
|
|
209
|
+
disabled={blockedReason !== null}
|
|
210
|
+
leftSection={<PublishIcon size={iconSizes.sm} />}
|
|
211
|
+
loading={pending}
|
|
212
|
+
onClick={publish}
|
|
213
|
+
size="compact-xs"
|
|
214
|
+
variant="filled"
|
|
215
|
+
>
|
|
216
|
+
{words.publish.action}
|
|
217
|
+
</Button>
|
|
218
|
+
);
|
|
219
|
+
|
|
220
|
+
return (
|
|
221
|
+
<Group className="mtya-subheader-band" gap="xs" justify="space-between" wrap="nowrap">
|
|
222
|
+
<PublicationStatus detail={detail} hint={hint} label={label} state={state} />
|
|
223
|
+
|
|
224
|
+
{blockedReason === null ? (
|
|
225
|
+
action
|
|
226
|
+
) : (
|
|
227
|
+
<Tooltip label={blockedReason}>
|
|
228
|
+
{/* A disabled Button does not bubble pointer events to its Tooltip parent,
|
|
229
|
+
so the reason would stay unreachable; the span shim restores the hover
|
|
230
|
+
surface without changing the disabled affordance. */}
|
|
231
|
+
<span>{action}</span>
|
|
232
|
+
</Tooltip>
|
|
233
|
+
)}
|
|
234
|
+
</Group>
|
|
235
|
+
);
|
|
236
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { Box, Group, Paper, Stack, Text } from "@mantine/core";
|
|
2
|
+
import type { CSSProperties, ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
import { PROFILE_CHART_HEIGHT, type UnitFormatOptions } from "@mountaya/elements/profile";
|
|
5
|
+
import type { RestActivitySlug } from "@mountaya/studio";
|
|
6
|
+
|
|
7
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
8
|
+
import { Glyph } from "../../internal/components/Glyph.js";
|
|
9
|
+
import { ActivityIcon } from "../../primitives/components/ActivityIcon.js";
|
|
10
|
+
import { EmptyState } from "../../primitives/components/EmptyState.js";
|
|
11
|
+
import { iconSizes } from "../../rules/sizing.js";
|
|
12
|
+
import type { ProfileCharacteristics } from "../rules/profileModel.js";
|
|
13
|
+
import { Characteristics } from "./Characteristics.js";
|
|
14
|
+
|
|
15
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
16
|
+
const SECTIONS = ["profile"] as const;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* profilePendingStyle reserves the chart's exact height while the curve is still being
|
|
20
|
+
* routed, so the panel does not grow under the map when it arrives.
|
|
21
|
+
*
|
|
22
|
+
* The height is load-bearing rather than cosmetic: the caller lays a floating panel out
|
|
23
|
+
* against the docked profile's measured height, so a placeholder shorter than the chart would
|
|
24
|
+
* have the layers panel jump the moment the first route came back.
|
|
25
|
+
*/
|
|
26
|
+
const profilePendingStyle = {
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
display: "flex",
|
|
29
|
+
height: PROFILE_CHART_HEIGHT,
|
|
30
|
+
justifyContent: "center",
|
|
31
|
+
} satisfies CSSProperties;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* PROFILE_DRAW_PROMPT_MAX_WIDTH bounds the "draw your first points" block so its two lines stay
|
|
35
|
+
* two lines.
|
|
36
|
+
*
|
|
37
|
+
* The docked profile runs the full width of the map (a thousand pixels and more), and the
|
|
38
|
+
* EmptyState's row fills whatever it is given, so unbounded the description would set as one
|
|
39
|
+
* very long line across an otherwise empty strip. The cap is also what keeps the block inside
|
|
40
|
+
* {@link profilePendingStyle}'s fixed height: that height is the chart's, held so the panel
|
|
41
|
+
* does not resize when the curve arrives, and copy free to wrap to a third line would spill out
|
|
42
|
+
* of it.
|
|
43
|
+
*/
|
|
44
|
+
const PROFILE_DRAW_PROMPT_MAX_WIDTH = 420;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* profileEmptyStyle holds the same slot as {@link profilePendingStyle} but as a FLOOR
|
|
48
|
+
* rather than a fixed height.
|
|
49
|
+
*
|
|
50
|
+
* The pending placeholder is one dimmed line and fits the chart's height exactly, which is what
|
|
51
|
+
* keeps the panel from resizing when the curve arrives. The empty state carries an ACTION, and
|
|
52
|
+
* a fixed height would have the add button overflow the box it is centred in. A minimum keeps
|
|
53
|
+
* the property that matters (the panel never shrinks below the chart, so a floating panel
|
|
54
|
+
* laid out against it does not jump) while letting the one state that needs more room have it.
|
|
55
|
+
*/
|
|
56
|
+
const profileEmptyStyle = {
|
|
57
|
+
alignItems: "center",
|
|
58
|
+
display: "flex",
|
|
59
|
+
justifyContent: "center",
|
|
60
|
+
minHeight: PROFILE_CHART_HEIGHT,
|
|
61
|
+
} satisfies CSSProperties;
|
|
62
|
+
|
|
63
|
+
/** PendingProfileProps are what the profile's frame shows while it has no curve yet. */
|
|
64
|
+
interface PendingProfileProps {
|
|
65
|
+
readonly activitySlug: RestActivitySlug | null;
|
|
66
|
+
readonly characteristics: ProfileCharacteristics;
|
|
67
|
+
readonly emptyAction: ReactNode;
|
|
68
|
+
/** Whether no line has been drawn at all, which is an invitation and not a wait. */
|
|
69
|
+
readonly nothingDrawn: boolean;
|
|
70
|
+
readonly showCharacteristics: boolean;
|
|
71
|
+
readonly showElevation: boolean;
|
|
72
|
+
readonly unitFormat: UnitFormatOptions;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* PendingProfile is the profile's frame while a segment's geometry is still being resolved:
|
|
77
|
+
* the live figures where there are some, and a placeholder where the curve goes.
|
|
78
|
+
*/
|
|
79
|
+
export const PendingProfile = ({
|
|
80
|
+
activitySlug,
|
|
81
|
+
characteristics,
|
|
82
|
+
emptyAction,
|
|
83
|
+
nothingDrawn,
|
|
84
|
+
showCharacteristics,
|
|
85
|
+
showElevation,
|
|
86
|
+
unitFormat,
|
|
87
|
+
}: PendingProfileProps) => {
|
|
88
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
89
|
+
|
|
90
|
+
return (
|
|
91
|
+
<Paper px="sm" py="xs" radius="sm" w="100%" withBorder>
|
|
92
|
+
<Stack>
|
|
93
|
+
{/* The activity badge belongs to a ROUTE: it labels the figures beside it. With
|
|
94
|
+
nothing drawn there are no figures, and a lone badge over an invitation to start
|
|
95
|
+
drawing reads as a header for content that is not there. */}
|
|
96
|
+
{showCharacteristics && !nothingDrawn ? (
|
|
97
|
+
<Group align="center" gap="sm" wrap="nowrap">
|
|
98
|
+
{activitySlug ? (
|
|
99
|
+
<Box visibleFrom="xs">
|
|
100
|
+
<ActivityIcon size="2.25rem" slug={activitySlug} />
|
|
101
|
+
</Box>
|
|
102
|
+
) : null}
|
|
103
|
+
{/* The live figures, which DO arrive before the curve does: distance and
|
|
104
|
+
ascent update per routed response while the geometry is still null. */}
|
|
105
|
+
<Characteristics characteristics={characteristics} unitFormat={unitFormat} />
|
|
106
|
+
</Group>
|
|
107
|
+
) : null}
|
|
108
|
+
{showElevation ? (
|
|
109
|
+
// mantine:exempt (the chart's own height, held so the panel does not resize
|
|
110
|
+
// under the map when the curve arrives). The caller lays a floating panel out
|
|
111
|
+
// against this height, so growing into it later would shift the layers panel.
|
|
112
|
+
<Box style={nothingDrawn ? profileEmptyStyle : profilePendingStyle}>
|
|
113
|
+
{/* Two different absences, and only one of them is a wait.
|
|
114
|
+
Nothing has been drawn yet, so there is no profile to be patient for: the
|
|
115
|
+
panel is at its widest and emptiest exactly when the reader has just opened
|
|
116
|
+
the editor and is looking for what to do, and an ellipsis in dimmed 11px
|
|
117
|
+
would tell them to wait for something that is never coming. It carries the
|
|
118
|
+
EmptyState the rest of the studio's absences are drawn with (the same
|
|
119
|
+
inline block the segment list uses a few hundred pixels away), so the
|
|
120
|
+
invitation reads as part of the editor rather than as a stalled panel.
|
|
121
|
+
Once a line exists, the wait is real and the wording names it. */}
|
|
122
|
+
{nothingDrawn ? (
|
|
123
|
+
<Box maw={PROFILE_DRAW_PROMPT_MAX_WIDTH}>
|
|
124
|
+
<EmptyState
|
|
125
|
+
action={emptyAction}
|
|
126
|
+
description={words.profile.draw.description}
|
|
127
|
+
icon={<Glyph name="action-pick-point" size={iconSizes.md} />}
|
|
128
|
+
size="inline"
|
|
129
|
+
title={words.profile.draw.title}
|
|
130
|
+
/>
|
|
131
|
+
</Box>
|
|
132
|
+
) : (
|
|
133
|
+
<Text c="dimmed" size="xs">
|
|
134
|
+
{words.profile.pending}
|
|
135
|
+
</Text>
|
|
136
|
+
)}
|
|
137
|
+
</Box>
|
|
138
|
+
) : null}
|
|
139
|
+
</Stack>
|
|
140
|
+
</Paper>
|
|
141
|
+
);
|
|
142
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SectionCard,
|
|
3
|
+
type SectionCardHeading,
|
|
4
|
+
type SectionCardProps,
|
|
5
|
+
} from "../../sections/components/SectionCard.js";
|
|
6
|
+
|
|
7
|
+
/** PlaceCardHeading is the heading of a card that stands beside another in its section. */
|
|
8
|
+
type PlaceCardHeading = SectionCardHeading;
|
|
9
|
+
|
|
10
|
+
/** PlaceCardProps carry the card's body, and its heading where the card has one. */
|
|
11
|
+
interface PlaceCardProps extends SectionCardProps {
|
|
12
|
+
/**
|
|
13
|
+
* The card's own heading. Stated by a card that shares its section with another, which the
|
|
14
|
+
* section's heading cannot tell apart. Left out by the one card of a section, whose section
|
|
15
|
+
* heading already says what it holds.
|
|
16
|
+
*/
|
|
17
|
+
readonly heading?: PlaceCardHeading | undefined;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* PlaceCard is the card every section of the waypoint editor lays its fields in.
|
|
22
|
+
*
|
|
23
|
+
* It is `SectionCard`, the card every surface laid out in sections draws: a padded, bordered
|
|
24
|
+
* Card, the settings-card shape a reader already knows from an account's settings, so the
|
|
25
|
+
* editor reads as one before a word of it is read. What a section IS is said by the heading
|
|
26
|
+
* over its cards, as a settings page's title says it over its sections. A card says it again
|
|
27
|
+
* only where a section holds more than one, and then it must: two cards under one heading are
|
|
28
|
+
* two questions.
|
|
29
|
+
*
|
|
30
|
+
* The card's title is a heading element under the section's, so the outline a reader moves by
|
|
31
|
+
* is the dialog, its open section and that section's cards.
|
|
32
|
+
*/
|
|
33
|
+
export const PlaceCard = ({ children, heading }: PlaceCardProps) => (
|
|
34
|
+
<SectionCard heading={heading}>{children}</SectionCard>
|
|
35
|
+
);
|