@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,76 @@
|
|
|
1
|
+
import { Box, Tooltip, UnstyledButton } from "@mantine/core";
|
|
2
|
+
import type { CSSProperties, ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
import { Glyph } from "../../internal/components/Glyph.js";
|
|
5
|
+
import { iconSizes } from "../../rules/sizing.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* labelStyle lays the field label text, its required asterisk, and the info-tooltip
|
|
9
|
+
* trigger in one inline row, so the glyph sits directly after the label without breaking
|
|
10
|
+
* the <label> element's inline flow. Hoisted so the object is a stable reference across
|
|
11
|
+
* renders.
|
|
12
|
+
*/
|
|
13
|
+
const labelStyle = {
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
display: "inline-flex",
|
|
16
|
+
gap: "var(--mantine-spacing-xxs)",
|
|
17
|
+
} satisfies CSSProperties;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* requiredMarkStyle paints the manual required asterisk in Mantine's error color, so it
|
|
21
|
+
* reads as the same red mark the framework renders while letting us place it right after
|
|
22
|
+
* the label text (before the help glyph) rather than after the whole label node. Hoisted
|
|
23
|
+
* for a stable reference across renders.
|
|
24
|
+
*/
|
|
25
|
+
const requiredMarkStyle = { color: "var(--mantine-color-error)" } satisfies CSSProperties;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* helpIconStyle gives the info glyph a help cursor so it reads as an explain-on-hover
|
|
29
|
+
* affordance rather than a click target. Hoisted for a stable reference across renders.
|
|
30
|
+
*/
|
|
31
|
+
const helpIconStyle = { cursor: "help" } satisfies CSSProperties;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The help opens on focus as well as on hover, so a keyboard reaches it. Hoisted for a stable ref.
|
|
35
|
+
*/
|
|
36
|
+
const helpTooltipEvents = { focus: true, hover: true, touch: false };
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* RequiredLabelWithHelpProps drive the shared required-field label: the label `label`
|
|
40
|
+
* text, the `help` node shown in the hover tooltip, and the accessible `helpLabel` naming
|
|
41
|
+
* the info trigger (so the tooltip's subject is reachable to assistive tech and testable).
|
|
42
|
+
*/
|
|
43
|
+
interface RequiredLabelWithHelpProps {
|
|
44
|
+
readonly help: ReactNode;
|
|
45
|
+
readonly helpLabel: string;
|
|
46
|
+
readonly label: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* RequiredLabelWithHelp renders a required field's label node in the house order "Label * ⓘ": the
|
|
51
|
+
* label text, a red required asterisk hugging it (Mantine's error color), then an info glyph that
|
|
52
|
+
* reveals `help` on hover and on keyboard focus. It exists so a field whose label carries a help
|
|
53
|
+
* tooltip keeps the asterisk next to the text: Mantine's own `withAsterisk` always trails the
|
|
54
|
+
* whole label node, which reads "Label ⓘ *" once a glyph is inside the label. Consumers pass this
|
|
55
|
+
* as their field's `label` and set `required withAsterisk={false}`, so the input stays semantically
|
|
56
|
+
* required while this owns the visible mark. Purely presentational: it holds no state and reaches
|
|
57
|
+
* no store or tool.
|
|
58
|
+
*/
|
|
59
|
+
export const RequiredLabelWithHelp = ({ help, helpLabel, label }: RequiredLabelWithHelpProps) => (
|
|
60
|
+
<Box component="span" style={labelStyle}>
|
|
61
|
+
<span>{label}</span>
|
|
62
|
+
<span aria-hidden="true" style={requiredMarkStyle}>
|
|
63
|
+
*
|
|
64
|
+
</span>
|
|
65
|
+
<Tooltip events={helpTooltipEvents} label={help} position="top">
|
|
66
|
+
{/* The button is the tooltip TARGET and the named element: a bare svg the tooltip only
|
|
67
|
+
describes is not reliably announced. It takes focus, as the control that discloses
|
|
68
|
+
the help, and focus opens the tooltip, since the help lives there alone and a reader
|
|
69
|
+
who never hovers would meet none. A press inside a label on a control of its own
|
|
70
|
+
leaves the labelled field alone. */}
|
|
71
|
+
<UnstyledButton aria-label={helpLabel} style={helpIconStyle}>
|
|
72
|
+
<Glyph name="info" size={iconSizes.xs} />
|
|
73
|
+
</UnstyledButton>
|
|
74
|
+
</Tooltip>
|
|
75
|
+
</Box>
|
|
76
|
+
);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Center, Tooltip, VisuallyHidden } from "@mantine/core";
|
|
2
|
+
|
|
3
|
+
import type { UiGlyph } from "@mountaya/elements/icons";
|
|
4
|
+
|
|
5
|
+
import { Glyph } from "../../internal/components/Glyph.js";
|
|
6
|
+
import { iconSizes } from "../../rules/sizing.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* SegmentIconProps drive one icon-only segment of a studio SegmentedControl: the
|
|
10
|
+
* `glyph` role it renders, the localized `label` that serves as BOTH the hover
|
|
11
|
+
* tooltip and the segment's accessible name (a screen reader announces it and it is
|
|
12
|
+
* the text role queries match), and an optional `color` that tints the glyph (the
|
|
13
|
+
* zone severity palette); the glyph inherits the control's text color when unset.
|
|
14
|
+
*/
|
|
15
|
+
interface SegmentIconProps {
|
|
16
|
+
readonly color?: string | undefined;
|
|
17
|
+
readonly glyph: UiGlyph;
|
|
18
|
+
readonly label: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* SegmentIcon is the icon a studio SegmentedControl segment shows in place of a text
|
|
23
|
+
* label, so a many-option picker (the zone shape's primitives, the zone severity's
|
|
24
|
+
* levels) stays compact and locale-proof: a row of that many text labels never fits the
|
|
25
|
+
* sidenav width, and a glyph reads at a glance where a truncated word does not. The
|
|
26
|
+
* localized name rides along twice so nothing is lost to the icon: a Tooltip reveals it
|
|
27
|
+
* on hover, and a VisuallyHidden span gives the underlying radio its accessible name (the
|
|
28
|
+
* segment carries no visible text), keeping the control screen-reader-legible. Used as the
|
|
29
|
+
* `label` of a SegmentedControl data item, it is the one place the icon + tooltip +
|
|
30
|
+
* accessible-name treatment lives, so every icon segment across the studio reads
|
|
31
|
+
* identically.
|
|
32
|
+
*
|
|
33
|
+
* The tooltip's target is the Center rather than the glyph, so the hover surface covers the
|
|
34
|
+
* glyph and its hidden name together.
|
|
35
|
+
*/
|
|
36
|
+
export const SegmentIcon = ({ color, glyph, label }: SegmentIconProps) => (
|
|
37
|
+
<Tooltip label={label} position="bottom">
|
|
38
|
+
<Center>
|
|
39
|
+
<Glyph name={glyph} size={iconSizes.sm} style={color === undefined ? undefined : { color }} />
|
|
40
|
+
<VisuallyHidden>{label}</VisuallyHidden>
|
|
41
|
+
</Center>
|
|
42
|
+
</Tooltip>
|
|
43
|
+
);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Group } from "@mantine/core";
|
|
2
|
+
|
|
3
|
+
import type { UiGlyph } from "@mountaya/elements/icons";
|
|
4
|
+
|
|
5
|
+
import { Glyph } from "../../internal/components/Glyph.js";
|
|
6
|
+
import { iconSizes } from "../../rules/sizing.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* SegmentIconLabelProps drive one glyph-and-text segment of a studio
|
|
10
|
+
* SegmentedControl: the `glyph` role that stands for the option and the localized
|
|
11
|
+
* `label` beside it.
|
|
12
|
+
*/
|
|
13
|
+
interface SegmentIconLabelProps {
|
|
14
|
+
readonly glyph: UiGlyph;
|
|
15
|
+
readonly label: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* SegmentIconLabel is the two- or three-option segment: a glyph leading its own
|
|
20
|
+
* visible name. It is the counterpart of {@link SegmentIcon}, which drops the text
|
|
21
|
+
* entirely: that is the right trade for a many-option picker, where no set of words
|
|
22
|
+
* fits the sidenav width, but the wrong one at two, where the words fit easily and a
|
|
23
|
+
* bare glyph asks the reader to guess. A control offering "draw an area" against
|
|
24
|
+
* "compute how far you can get" needs both: the words carry the meaning and the glyph
|
|
25
|
+
* makes the pair scannable and gives the choice a mark that repeats wherever else the
|
|
26
|
+
* same idea appears.
|
|
27
|
+
*
|
|
28
|
+
* The glyph is the xs tier, a step below the icon-only segment's: it sits beside text
|
|
29
|
+
* rather than standing in for it, so matching the label's own weight keeps the
|
|
30
|
+
* segment from reading as a glyph with a caption.
|
|
31
|
+
*/
|
|
32
|
+
export const SegmentIconLabel = ({ glyph, label }: SegmentIconLabelProps) => (
|
|
33
|
+
<Group gap="xxs" justify="center" wrap="nowrap">
|
|
34
|
+
<Glyph name={glyph} size={iconSizes.xs} />
|
|
35
|
+
<span>{label}</span>
|
|
36
|
+
</Group>
|
|
37
|
+
);
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { NumberInput } from "@mantine/core";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
formatPaceClock,
|
|
5
|
+
kilometersPerHourToDisplay,
|
|
6
|
+
paceClockNumberToMinutes,
|
|
7
|
+
paceMinutesToClockNumber,
|
|
8
|
+
parseSpeedToKmh,
|
|
9
|
+
speedUnitFor,
|
|
10
|
+
} from "@mountaya/elements/profile";
|
|
11
|
+
import {
|
|
12
|
+
isPaceUnit,
|
|
13
|
+
SECONDS_PER_MINUTE,
|
|
14
|
+
type UnitLength,
|
|
15
|
+
type UnitPace,
|
|
16
|
+
} from "@mountaya/elements/units";
|
|
17
|
+
|
|
18
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
19
|
+
import { useSpeedControlLabel } from "../hooks/useSpeedControlLabel.js";
|
|
20
|
+
|
|
21
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
22
|
+
const SECTIONS = ["segments"] as const;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* SpeedInputProps drive the optional travel-rate control: the current rate in `kmh`
|
|
26
|
+
* (the wire unit, null = use the activity default), the activity's `defaultSpeedKmh`
|
|
27
|
+
* (km/h, null until the catalog resolves) that seeds the empty input, the `length`
|
|
28
|
+
* measurement system and the `pace` form, which together select the display unit,
|
|
29
|
+
* and the `onChange` the consumer wires to its own tool. `placeholder` overrides the
|
|
30
|
+
* default "activity default" copy for a surface that cannot honour a specific number.
|
|
31
|
+
* Controlled: the consuming session or form owns the value.
|
|
32
|
+
*/
|
|
33
|
+
interface SpeedInputProps {
|
|
34
|
+
/**
|
|
35
|
+
* Renders the control for a dense row of chrome rather than for a form: `xs`, and the
|
|
36
|
+
* label carried as an `aria-label` instead of visible text above the field.
|
|
37
|
+
*
|
|
38
|
+
* The label does not merely move out of sight, which is why this is one flag rather
|
|
39
|
+
* than a `size` and a `hideLabel`: the two go together. A visible "Speed"/"Pace"
|
|
40
|
+
* caption is what a FORM needs, where the field sits among other fields and the reader
|
|
41
|
+
* is filling things in. In a control row the field sits beside a segment chooser and an
|
|
42
|
+
* actions menu, none of which caption themselves, and a two-line control there breaks
|
|
43
|
+
* the row's single baseline. The name still has to reach a screen reader either way.
|
|
44
|
+
*/
|
|
45
|
+
compact?: boolean | undefined;
|
|
46
|
+
defaultSpeedKmh: number | null;
|
|
47
|
+
disabled?: boolean | undefined;
|
|
48
|
+
kmh: number | null;
|
|
49
|
+
length: UnitLength;
|
|
50
|
+
onChange: (kmh: number | null) => void;
|
|
51
|
+
pace: UnitPace;
|
|
52
|
+
placeholder?: string | undefined;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** One step of the clock form: five seconds, the granularity a pace is actually adjusted in. */
|
|
56
|
+
const PACE_STEP_SECONDS = 5;
|
|
57
|
+
|
|
58
|
+
/** The same step in the `mm.ss` space the input carries, where `.05` reads as five seconds. */
|
|
59
|
+
const PACE_STEP = PACE_STEP_SECONDS / 100;
|
|
60
|
+
|
|
61
|
+
/** The slowest pace the field will hold, so a step down cannot reach zero. */
|
|
62
|
+
const PACE_MIN = PACE_STEP;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* SpeedInput is THE optional travel-rate override across the studio: the segment row's
|
|
66
|
+
* speed popover, the segment group, the reachability zone, and the suggest form all render
|
|
67
|
+
* this one control, so a rate is asked for the same way wherever it is asked for. The value
|
|
68
|
+
* crosses in and out in km/h (the wire unit); the control derives what it shows from the
|
|
69
|
+
* reader's two preferences and converts back before reporting.
|
|
70
|
+
*
|
|
71
|
+
* It is ONE Mantine NumberInput on both forms, and that is the whole design rather than an
|
|
72
|
+
* implementation detail. A rate stated per unit of distance is a duration, `13:20`, which
|
|
73
|
+
* looks like it wants a masked text field, and a text field cannot carry Mantine's stepper,
|
|
74
|
+
* whose chrome is positioned by a CSS-module class the Styles API does not expose. Two
|
|
75
|
+
* controls is exactly the inconsistency this field must not have: the reader would get a
|
|
76
|
+
* suffix, a stepper, a minimum and a start-from-default on one preference and none of them
|
|
77
|
+
* on the other, next to a distance and an ascent field that have all four.
|
|
78
|
+
*
|
|
79
|
+
* So the clock is rendered by the number input itself: two fixed decimals separated by a
|
|
80
|
+
* colon, where the decimals ARE the seconds. The encoding is `paceMinutesToClockNumber`'s
|
|
81
|
+
* and it is positional, not linear, which is the one thing Mantine does not know. Its
|
|
82
|
+
* stepper adds `0.05` and walks a field through `13:60`, `13:65`; the value is controlled,
|
|
83
|
+
* so `onChange` normalizes every step back into clock form before it is stored. A carry is
|
|
84
|
+
* read from the value alone; a BORROW cannot be, so a step down across a minute is corrected
|
|
85
|
+
* against the value the field already held.
|
|
86
|
+
*
|
|
87
|
+
* The rate is optional on both forms: an empty field reports null, which every consumer
|
|
88
|
+
* reads as "use the activity default". While empty, the placeholder spells that default out
|
|
89
|
+
* in the reader's own unit ("4.5 km/h (activity default)", "13:20 min/km (activity
|
|
90
|
+
* default)") and the stepper starts from it, so a first +/- lands a sensible value instead
|
|
91
|
+
* of the floor. Both fall back when the catalog has not resolved, or when the consumer
|
|
92
|
+
* passes its own placeholder because it cannot promise a specific number.
|
|
93
|
+
*
|
|
94
|
+
* Neither form reports a rate that is not above zero: `onChange` is not called for a typed
|
|
95
|
+
* `0`, nor for a pace of `0:00`. Every contract that takes a speed refuses one, and the field
|
|
96
|
+
* shows it only while a rate is being typed.
|
|
97
|
+
*/
|
|
98
|
+
export const SpeedInput = ({
|
|
99
|
+
compact = false,
|
|
100
|
+
defaultSpeedKmh,
|
|
101
|
+
disabled,
|
|
102
|
+
kmh,
|
|
103
|
+
length,
|
|
104
|
+
onChange,
|
|
105
|
+
pace,
|
|
106
|
+
placeholder,
|
|
107
|
+
}: SpeedInputProps) => {
|
|
108
|
+
const strings = useStudioScopedStrings(SECTIONS).segments;
|
|
109
|
+
const label = useSpeedControlLabel(length, pace);
|
|
110
|
+
|
|
111
|
+
const speedUnit = speedUnitFor(length, pace);
|
|
112
|
+
const isPace = isPaceUnit(speedUnit);
|
|
113
|
+
const unitLabel = {
|
|
114
|
+
"kilometer-per-hour": strings.speedUnitKmh,
|
|
115
|
+
"mile-per-hour": strings.speedUnitMph,
|
|
116
|
+
"minute-per-kilometer": strings.speedUnitMinKm,
|
|
117
|
+
"minute-per-mile": strings.speedUnitMinMi,
|
|
118
|
+
}[speedUnit];
|
|
119
|
+
|
|
120
|
+
/** A km/h rate as the number this field carries: a rounded rate, or the `mm.ss` clock. */
|
|
121
|
+
const toDisplay = (rate: number | null): number | null => {
|
|
122
|
+
const converted = kilometersPerHourToDisplay(rate, speedUnit);
|
|
123
|
+
if (converted === null) {
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return isPace ? paceMinutesToClockNumber(converted) : Math.round(converted * 10) / 10;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const displayed = toDisplay(kmh);
|
|
131
|
+
const defaultDisplayed = toDisplay(defaultSpeedKmh);
|
|
132
|
+
|
|
133
|
+
// The placeholder's clock goes through the published formatter rather than being built
|
|
134
|
+
// from the mm.ss number, which would be the same hand-rolled `m:ss` this package already
|
|
135
|
+
// removed once. The number is a rendering encoding for the INPUT; the string a reader is
|
|
136
|
+
// shown is the formatter's.
|
|
137
|
+
const defaultConverted = kilometersPerHourToDisplay(defaultSpeedKmh, speedUnit);
|
|
138
|
+
const defaultLabel = isPace
|
|
139
|
+
? formatPaceClock(defaultConverted) || null
|
|
140
|
+
: defaultConverted === null
|
|
141
|
+
? null
|
|
142
|
+
: String(Math.round(defaultConverted * 10) / 10);
|
|
143
|
+
|
|
144
|
+
const resolvedPlaceholder =
|
|
145
|
+
placeholder ??
|
|
146
|
+
(defaultLabel === null
|
|
147
|
+
? strings.speedPlaceholder
|
|
148
|
+
: strings.speedPlaceholderDefault(`${defaultLabel} ${unitLabel}`));
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* report converts what the field now shows back into the km/h the wire carries.
|
|
152
|
+
*
|
|
153
|
+
* The pace form's correction lives here because it is about the STEPPER's arithmetic, not
|
|
154
|
+
* about units: Mantine hands back `previous ± 0.05` in decimal space, which is a carry
|
|
155
|
+
* going up (13.55 → 13.60 is 14:00) and a borrow coming down (14.00 → 13.95 is 13:55).
|
|
156
|
+
* Only the second needs the previous value to read, because only it is ambiguous: 13.95
|
|
157
|
+
* is ninety-five seconds read on its own and a borrow when the stepper produced it.
|
|
158
|
+
*
|
|
159
|
+
* The borrow is recognised by an EXACT one-step decrease, and the exactness is load-bearing
|
|
160
|
+
* rather than defensive. A looser window catches a TYPED edit that happens to fall inside
|
|
161
|
+
* it (one second down from 13:16 is not a step, and treating it as one silently subtracts
|
|
162
|
+
* five). At exactly one step the two readings agree wherever both are defined: a canonical
|
|
163
|
+
* `previous` minus 0.05 is `previous` minus five seconds whenever its seconds reach five,
|
|
164
|
+
* and is the borrow whenever they do not. So there is no edit this can misread.
|
|
165
|
+
*/
|
|
166
|
+
const report = (next: number | string) => {
|
|
167
|
+
if (next === "") {
|
|
168
|
+
onChange(null);
|
|
169
|
+
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const value = Number(next);
|
|
174
|
+
if (!Number.isFinite(value)) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (!isPace) {
|
|
179
|
+
// Zero is a rate every contract that takes a speed refuses, and what the field shows
|
|
180
|
+
// while a rate under one is being typed. It is held back, as a non-positive pace is.
|
|
181
|
+
if (value > 0) {
|
|
182
|
+
onChange(parseSpeedToKmh(value, length, pace));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
const steppedDown = displayed !== null && Math.abs(displayed - value - PACE_STEP) < 1e-9;
|
|
189
|
+
const minutes = steppedDown
|
|
190
|
+
? (paceClockNumberToMinutes(displayed) ?? 0) - PACE_STEP_SECONDS / SECONDS_PER_MINUTE
|
|
191
|
+
: paceClockNumberToMinutes(value);
|
|
192
|
+
|
|
193
|
+
if (minutes === null || minutes <= 0) {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
onChange(parseSpeedToKmh(minutes, length, pace));
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
return (
|
|
201
|
+
<NumberInput
|
|
202
|
+
allowNegative={false}
|
|
203
|
+
// The name reaches a screen reader on both forms. Compact moves it off the screen
|
|
204
|
+
// rather than dropping it: a number field called nothing is a number field nobody
|
|
205
|
+
// can identify, and this one asks for a rate in a unit the reader chose.
|
|
206
|
+
aria-label={compact ? label : undefined}
|
|
207
|
+
decimalScale={isPace ? 2 : 1}
|
|
208
|
+
decimalSeparator={isPace ? ":" : undefined}
|
|
209
|
+
disabled={disabled}
|
|
210
|
+
fixedDecimalScale={isPace}
|
|
211
|
+
label={compact ? undefined : label}
|
|
212
|
+
min={isPace ? PACE_MIN : 0.5}
|
|
213
|
+
onChange={report}
|
|
214
|
+
placeholder={resolvedPlaceholder}
|
|
215
|
+
size={compact ? "xs" : undefined}
|
|
216
|
+
startValue={defaultDisplayed ?? undefined}
|
|
217
|
+
step={isPace ? PACE_STEP : 0.5}
|
|
218
|
+
suffix={` ${unitLabel}`}
|
|
219
|
+
value={displayed ?? ""}
|
|
220
|
+
/>
|
|
221
|
+
);
|
|
222
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Button } from "@mantine/core";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
5
|
+
import { Glyph } from "../../internal/components/Glyph.js";
|
|
6
|
+
import { iconSizes } from "../../rules/sizing.js";
|
|
7
|
+
import { EmptyState } from "./EmptyState.js";
|
|
8
|
+
import { ErrorBoundary } from "./ErrorBoundary.js";
|
|
9
|
+
|
|
10
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
11
|
+
const SECTIONS = ["panelError"] as const;
|
|
12
|
+
|
|
13
|
+
/** StudioSectionBoundaryProps carry the one surface the boundary isolates. */
|
|
14
|
+
export interface StudioSectionBoundaryProps {
|
|
15
|
+
/** The surface a render error is contained to. */
|
|
16
|
+
readonly children: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* StudioSectionBoundary isolates one studio surface (a floating panel, the agent
|
|
21
|
+
* chat, the docked elevation profile) behind an error boundary, so a render error
|
|
22
|
+
* in that surface degrades to a compact retry card in its place rather than
|
|
23
|
+
* unmounting the whole studio: the map, the controls, and the sibling panels stay
|
|
24
|
+
* live. The fallback's retry clears the boundary so a transient failure recovers
|
|
25
|
+
* without a route reload.
|
|
26
|
+
*
|
|
27
|
+
* A caught error is held until the retry is pressed, whatever the boundary wraps by then. A
|
|
28
|
+
* mount whose content changes (one panel for another, one itinerary for the next) gives the
|
|
29
|
+
* boundary a `key` that names what it shows, so the error leaves with the surface that threw.
|
|
30
|
+
*/
|
|
31
|
+
export const StudioSectionBoundary = ({ children }: StudioSectionBoundaryProps) => {
|
|
32
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<ErrorBoundary
|
|
36
|
+
fallback={(reset) => (
|
|
37
|
+
<EmptyState
|
|
38
|
+
action={
|
|
39
|
+
<Button
|
|
40
|
+
leftSection={<Glyph name="action-retry" size={iconSizes.sm} />}
|
|
41
|
+
onClick={reset}
|
|
42
|
+
variant="default"
|
|
43
|
+
>
|
|
44
|
+
{words.panelError.retry}
|
|
45
|
+
</Button>
|
|
46
|
+
}
|
|
47
|
+
icon={<Glyph name="warning" size={iconSizes.lg} />}
|
|
48
|
+
size="compact"
|
|
49
|
+
title={words.panelError.title}
|
|
50
|
+
/>
|
|
51
|
+
)}
|
|
52
|
+
>
|
|
53
|
+
{children}
|
|
54
|
+
</ErrorBoundary>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SegmentedControl, type SegmentedControlProps } from "@mantine/core";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* StudioSegmentedControlProps mirror Mantine's SegmentedControlProps with `size`
|
|
5
|
+
* removed: the studio form size is owned by this primitive, not the call site, so
|
|
6
|
+
* a panel cannot pass a deviating size and the height parity with the form's other
|
|
7
|
+
* inputs is guaranteed.
|
|
8
|
+
*/
|
|
9
|
+
type StudioSegmentedControlProps = Omit<SegmentedControlProps, "size">;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* StudioSegmentedControl is the SegmentedControl every studio form panel uses (the
|
|
13
|
+
* visibility, route-type, segment-mode and zone controls among them) so each segmented
|
|
14
|
+
* control sits at the same compact height as the Select/TextInput/Textarea fields beside
|
|
15
|
+
* it. The theme's SegmentedControl default is already the compact `xs` tier the studio form
|
|
16
|
+
* runs at, so this primitive adds no size of its own: it exists to FORBID a deviating size
|
|
17
|
+
* (the Omit above), so the height parity is guaranteed by construction rather than by
|
|
18
|
+
* convention. Every other prop forwards through unchanged, so it is a drop-in for the raw
|
|
19
|
+
* control.
|
|
20
|
+
*/
|
|
21
|
+
export const StudioSegmentedControl = (props: StudioSegmentedControlProps) => (
|
|
22
|
+
<SegmentedControl {...props} />
|
|
23
|
+
);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Box, Input } from "@mantine/core";
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
|
|
4
|
+
import type { UnitOption } from "@mountaya/studio/strings";
|
|
5
|
+
|
|
6
|
+
import { UnitPickerGrid } from "./UnitPickerGrid.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* UnitPickerFieldProps drive a labelled unit picker: the `label` and optional
|
|
10
|
+
* `description` rendered through the shared Input.Wrapper treatment, plus the
|
|
11
|
+
* grid's own props (`kindSlug`, `options`, `value`, `onChange`, and the read-only
|
|
12
|
+
* `locked`). The consumer narrows the raw `onChange` string back to its unit union.
|
|
13
|
+
*/
|
|
14
|
+
export interface UnitPickerFieldProps {
|
|
15
|
+
description?: string | undefined;
|
|
16
|
+
kindSlug?: string | undefined;
|
|
17
|
+
label: string;
|
|
18
|
+
locked?: boolean | undefined;
|
|
19
|
+
onChange: (value: string) => void;
|
|
20
|
+
options: readonly UnitOption[];
|
|
21
|
+
value: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* UnitPickerField is the shared labelled unit picker: a two-column grid of unit cards
|
|
26
|
+
* under an Input.Wrapper that carries the label and an optional description, so a unit choice
|
|
27
|
+
* reads like any other labelled control on the page that offers it. When a description is
|
|
28
|
+
* present the grid sits an `xs` gap below it (so the help text never crowds the cards);
|
|
29
|
+
* with no description the grid sits flush under the label, matching the no-description
|
|
30
|
+
* controls. The gap is the stylesheet's (`mtya-field-control`), a default a host's own field
|
|
31
|
+
* layout replaces. It owns the spacing only (the consumer keeps the value, the options, and the
|
|
32
|
+
* narrowing onChange), so every page that offers a unit choice, such as a host's account
|
|
33
|
+
* preferences or an organization's defaults, renders its unit pickers identically from one
|
|
34
|
+
* place.
|
|
35
|
+
*/
|
|
36
|
+
export const UnitPickerField = ({
|
|
37
|
+
description,
|
|
38
|
+
kindSlug,
|
|
39
|
+
label,
|
|
40
|
+
locked,
|
|
41
|
+
onChange,
|
|
42
|
+
options,
|
|
43
|
+
value,
|
|
44
|
+
}: UnitPickerFieldProps) => {
|
|
45
|
+
// The field's label names the group the grid is.
|
|
46
|
+
const labelId = useId();
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<Input.Wrapper description={description} label={label} labelProps={{ id: labelId }}>
|
|
50
|
+
<Box className="mtya-field-control" mod={{ described: Boolean(description) }}>
|
|
51
|
+
<UnitPickerGrid
|
|
52
|
+
aria-labelledby={labelId}
|
|
53
|
+
kindSlug={kindSlug}
|
|
54
|
+
locked={locked}
|
|
55
|
+
onChange={onChange}
|
|
56
|
+
options={options}
|
|
57
|
+
value={value}
|
|
58
|
+
/>
|
|
59
|
+
</Box>
|
|
60
|
+
</Input.Wrapper>
|
|
61
|
+
);
|
|
62
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Radio, SimpleGrid, Text } from "@mantine/core";
|
|
2
|
+
|
|
3
|
+
import type { UnitOption } from "@mountaya/studio/strings";
|
|
4
|
+
|
|
5
|
+
import { PickerCard } from "../../panels/components/PickerCard.js";
|
|
6
|
+
import { GroupLabelledBy } from "./GroupLabelledBy.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* UnitPickerGridProps drive a two-column grid of unit PickerCards. `kindSlug`, when given, tags
|
|
10
|
+
* every card's DOM (`data-testid="picker-card-<kindSlug>-<value>"`) so a given
|
|
11
|
+
* grid and option can be targeted in tests without overloading the value; the
|
|
12
|
+
* preferences panel, the embed form and the video profile step pass distinct slugs so their
|
|
13
|
+
* grids stay addressable side by side. `options` are the unit cards to render, `value` is the
|
|
14
|
+
* selected unit, and `onChange` fires the raw value (the consumer narrows it back
|
|
15
|
+
* to its unit union and routes it through the bus). `locked` greys and disables
|
|
16
|
+
* every card.
|
|
17
|
+
*/
|
|
18
|
+
interface UnitPickerGridProps {
|
|
19
|
+
/**
|
|
20
|
+
* The id of the element that names the group, such as the section heading above the grid, so
|
|
21
|
+
* a reader hears the group's name with each choice.
|
|
22
|
+
*/
|
|
23
|
+
"aria-labelledby"?: string | undefined;
|
|
24
|
+
kindSlug?: string | undefined;
|
|
25
|
+
locked?: boolean | undefined;
|
|
26
|
+
onChange: (value: string) => void;
|
|
27
|
+
options: readonly UnitOption[];
|
|
28
|
+
value: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* UnitPickerGrid is the shared unit picker: a Radio.Group over a two-column
|
|
33
|
+
* SimpleGrid of PickerCards, each showing its unit symbol as the card media and
|
|
34
|
+
* its unit name below. It owns the grid shape and the Radio.Group, never the
|
|
35
|
+
* dispatch (the consumer's onChange routes the choice through the bus), so the
|
|
36
|
+
* preferences panel's grids, the embed form's and the video profile step's all render
|
|
37
|
+
* identically. The enclosing section label stays at the call site, since the
|
|
38
|
+
* grids share copy but not their headings.
|
|
39
|
+
*/
|
|
40
|
+
export const UnitPickerGrid = ({
|
|
41
|
+
"aria-labelledby": labelledBy,
|
|
42
|
+
kindSlug,
|
|
43
|
+
locked,
|
|
44
|
+
onChange,
|
|
45
|
+
options,
|
|
46
|
+
value,
|
|
47
|
+
}: UnitPickerGridProps) => (
|
|
48
|
+
<Radio.Group
|
|
49
|
+
inputContainer={
|
|
50
|
+
labelledBy === undefined
|
|
51
|
+
? undefined
|
|
52
|
+
: (children) => <GroupLabelledBy labelledBy={labelledBy}>{children}</GroupLabelledBy>
|
|
53
|
+
}
|
|
54
|
+
onChange={onChange}
|
|
55
|
+
value={value}
|
|
56
|
+
>
|
|
57
|
+
<SimpleGrid cols={2} spacing="xs">
|
|
58
|
+
{options.map((option) => (
|
|
59
|
+
<PickerCard
|
|
60
|
+
key={option.value}
|
|
61
|
+
kindSlug={kindSlug}
|
|
62
|
+
locked={locked}
|
|
63
|
+
name={option.name}
|
|
64
|
+
value={option.value}
|
|
65
|
+
>
|
|
66
|
+
<Text fw={600}>{option.symbol}</Text>
|
|
67
|
+
</PickerCard>
|
|
68
|
+
))}
|
|
69
|
+
</SimpleGrid>
|
|
70
|
+
</Radio.Group>
|
|
71
|
+
);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Alert } from "@mantine/core";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
import { Glyph } from "../../internal/components/Glyph.js";
|
|
5
|
+
import { iconSizes } from "../../rules/sizing.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* WarningAlertProps carry the already-localized caution line as `children`, plus an optional
|
|
9
|
+
* bold `title` (parity with {@link ErrorAlert}) for a richer two-line warning.
|
|
10
|
+
*
|
|
11
|
+
* The message is content rather than a key because this package ships no i18n runtime: each
|
|
12
|
+
* caller supplies its own words while the orange treatment and the warning glyph stay identical
|
|
13
|
+
* everywhere.
|
|
14
|
+
*/
|
|
15
|
+
export interface WarningAlertProps {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
title?: string | undefined;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* WarningAlert is the in-place caution surface: the third member of the family
|
|
22
|
+
* {@link ErrorAlert} and {@link FormErrorAlert} open, and the one that reports something that
|
|
23
|
+
* has NOT gone wrong yet.
|
|
24
|
+
*
|
|
25
|
+
* An orange alert carrying the warning glyph and the caller's message, so every "heads up" (a
|
|
26
|
+
* key shown only once, an irreversible switch) reads with one treatment. The hue is orange
|
|
27
|
+
* rather than yellow deliberately: it is the same warning hue a header notice uses, so an
|
|
28
|
+
* in-place caution and a banner read as the same class of thing.
|
|
29
|
+
*/
|
|
30
|
+
export const WarningAlert = ({ children, title }: WarningAlertProps) => (
|
|
31
|
+
<Alert color="orange" icon={<Glyph name="warning" size={iconSizes.md} />} title={title}>
|
|
32
|
+
{children}
|
|
33
|
+
</Alert>
|
|
34
|
+
);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useMediaQuery } from "@mantine/hooks";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* COMPACT_LAYOUT_QUERY is the viewport below Mantine's `sm` breakpoint (48em): phones and
|
|
5
|
+
* the narrowest tablets. It is spelled as a raw query rather than read off the theme because
|
|
6
|
+
* a media query string is what matchMedia takes, and the studio's theme overrides none of
|
|
7
|
+
* Mantine's stock breakpoints.
|
|
8
|
+
*/
|
|
9
|
+
const COMPACT_LAYOUT_QUERY = "(max-width: 47.99em)";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* useCompactLayout reports whether the viewport is phone-sized.
|
|
13
|
+
*
|
|
14
|
+
* This is the ONE place this package reads a breakpoint in JavaScript, and the rule it follows
|
|
15
|
+
* is worth stating rather than inferring: anything that merely RESTYLES per breakpoint belongs
|
|
16
|
+
* in `visibleFrom`/`hiddenFrom` or a CSS media query, which cost no render and no listener.
|
|
17
|
+
* This exists for the cases CSS genuinely cannot express, where the compact layout changes
|
|
18
|
+
* BEHAVIOUR:
|
|
19
|
+
*
|
|
20
|
+
* - the elevation profile becomes a drag-to-resize bottom sheet whose sections mount by snap
|
|
21
|
+
* point, replacing a hover reveal a touch device cannot perform;
|
|
22
|
+
* - its chart drops the Y axis, which the chart takes as a number rather than as a class.
|
|
23
|
+
*
|
|
24
|
+
* It answers `false` while `matchMedia` is unavailable, so a render-free environment lands on
|
|
25
|
+
* the desktop layout rather than throwing, which is also the right default for a first paint,
|
|
26
|
+
* since the wide layout degrades on a narrow screen and the narrow one does not widen.
|
|
27
|
+
*
|
|
28
|
+
* @returns True while the viewport is narrower than Mantine's `sm` breakpoint.
|
|
29
|
+
*/
|
|
30
|
+
export const useCompactLayout = (): boolean => useMediaQuery(COMPACT_LAYOUT_QUERY, false);
|