@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,57 @@
|
|
|
1
|
+
import { Button, Group, Overlay, Paper, Stack, Text } from "@mantine/core";
|
|
2
|
+
import type { ReactElement } 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 { useDirectorChat, useDirectorStore } from "../providers/DirectorChatProvider.js";
|
|
8
|
+
|
|
9
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
10
|
+
const SECTIONS = ["director"] as const;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* WizardDirectingIndicator is the "directing the camera…" cue + the single Stop over the wizard's
|
|
14
|
+
* preview stage while the director's run drives the Camera Plan. It does NOT Portal out to
|
|
15
|
+
* document.body and does NOT rely on an `inert` lock: it is an absolutely-positioned Mantine
|
|
16
|
+
* Overlay that fills its nearest positioned ancestor, so the wizard places it over the whole
|
|
17
|
+
* preview stage (the aspect frame AND the transport beneath it), dimming the preview the plan edits
|
|
18
|
+
* drive while the director chat (mounted in the Camera rail's slot, outside this overlay) stays
|
|
19
|
+
* fully interactive. The wizard additionally disables the mode cards (under a bare scrim), the
|
|
20
|
+
* preview transport, and the footer while directing; this overlay is the visible cue + the live
|
|
21
|
+
* Stop, which disposes the director run through the provider. It renders nothing when idle so the
|
|
22
|
+
* overlay leaves the tree entirely rather than relying on opacity.
|
|
23
|
+
*/
|
|
24
|
+
export const WizardDirectingIndicator = (): ReactElement | null => {
|
|
25
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
26
|
+
const { directing, stop } = useDirectorChat();
|
|
27
|
+
const activeTool = useDirectorStore((store) => store.activeTool);
|
|
28
|
+
|
|
29
|
+
if (!directing) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
// The Overlay fills its nearest positioned ancestor (the preview stage is a
|
|
35
|
+
// relative box wrapping the aspect frame + the transport), dimming the whole
|
|
36
|
+
// preview. The color is left at the black default: the scrim wants neutral
|
|
37
|
+
// dimming, not a theme hue, and the style guard forbids a hex shortcut.
|
|
38
|
+
<Overlay backgroundOpacity={0.35} blur={1} center>
|
|
39
|
+
<Paper p="md" shadow="md" withBorder>
|
|
40
|
+
<Stack>
|
|
41
|
+
<Text fw={500}>{words.director.directing}</Text>
|
|
42
|
+
<Text c="dimmed">{activeTool ?? words.director.activity}</Text>
|
|
43
|
+
<Group justify="flex-end">
|
|
44
|
+
<Button
|
|
45
|
+
color="red"
|
|
46
|
+
leftSection={<Glyph name="action-stop" size={iconSizes.sm} />}
|
|
47
|
+
onClick={stop}
|
|
48
|
+
variant="light"
|
|
49
|
+
>
|
|
50
|
+
{words.director.stop}
|
|
51
|
+
</Button>
|
|
52
|
+
</Group>
|
|
53
|
+
</Stack>
|
|
54
|
+
</Paper>
|
|
55
|
+
</Overlay>
|
|
56
|
+
);
|
|
57
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Box, Button, Group, Tooltip } from "@mantine/core";
|
|
2
|
+
|
|
3
|
+
import { useStudioScopedStrings } from "../../headless/providers/studioStrings.js";
|
|
4
|
+
import { Glyph } from "../../internal/components/Glyph.js";
|
|
5
|
+
import { iconSizes } from "../../rules/sizing.js";
|
|
6
|
+
import { RecordProgressBar } from "./RecordProgress.js";
|
|
7
|
+
|
|
8
|
+
/** The sections these words come from: this module's own, and the parts it mounts. */
|
|
9
|
+
const SECTIONS = ["publish", "video"] as const;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* WizardFooterProps carry the active step index (driving the Back disable and the
|
|
13
|
+
* Next-vs-Record split), the `directing` flag that locks the controls while the director
|
|
14
|
+
* drives the camera, the Back/Next handlers, the `onRecord` the review-step primary fires,
|
|
15
|
+
* the `recordDisabled` flag that stands the Record action down when there is nothing
|
|
16
|
+
* publishable to capture, the `recording` flag that puts the Record button in its loading
|
|
17
|
+
* state, and the total `stepCount`, which says which step is the last.
|
|
18
|
+
*/
|
|
19
|
+
interface WizardFooterProps {
|
|
20
|
+
activeIndex: number;
|
|
21
|
+
directing?: boolean | undefined;
|
|
22
|
+
onBack: () => void;
|
|
23
|
+
onNext: () => void;
|
|
24
|
+
onRecord: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* recordDisabled blocks the capture while the itinerary has no publication: a video
|
|
27
|
+
* records the published snapshot, so a run here would encode an empty flight. The
|
|
28
|
+
* button explains itself on hover as well as standing down, because a disabled
|
|
29
|
+
* primary action with no reason is the same dead end the empty file would have been.
|
|
30
|
+
*/
|
|
31
|
+
recordDisabled?: boolean | undefined;
|
|
32
|
+
recording: boolean;
|
|
33
|
+
stepCount: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* WizardFooter is the editor-style bottom bar of the export-as-video wizard: a Back
|
|
38
|
+
* button, the live record-progress bar (on the review step, left of the primary action; it
|
|
39
|
+
* self-subscribes to the recording status, so it needs no prop and shows only while a record
|
|
40
|
+
* runs), and the primary action. Where the wizard stands in its steps is said by the list
|
|
41
|
+
* of them, which every width of the studio draws, so the bar restates none of it. The
|
|
42
|
+
* primary is Next on every step but the last, and the Record
|
|
43
|
+
* action on the review step: pressing Record fires onRecord, which the shell owns
|
|
44
|
+
* (it dispatches studio.video.record and lifts the terminal outcome), and the button
|
|
45
|
+
* shows its loading state while a recording runs. Back steps to the previous step and
|
|
46
|
+
* is disabled on the first step, while directing, or while recording (a step change
|
|
47
|
+
* mid-capture would tear down the run). The whole footer goes inert while the director
|
|
48
|
+
* drives the camera. The footer holds no state: the indices + flags are passed in
|
|
49
|
+
* from the shell, which reads them off the slice + the director provider + the record
|
|
50
|
+
* status.
|
|
51
|
+
*/
|
|
52
|
+
export const WizardFooter = ({
|
|
53
|
+
activeIndex,
|
|
54
|
+
directing,
|
|
55
|
+
onBack,
|
|
56
|
+
onNext,
|
|
57
|
+
onRecord,
|
|
58
|
+
recordDisabled,
|
|
59
|
+
recording,
|
|
60
|
+
stepCount,
|
|
61
|
+
}: WizardFooterProps) => {
|
|
62
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
63
|
+
|
|
64
|
+
const onReview = activeIndex === stepCount - 1;
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<Box className="mtya-fullscreen-footer" px="md" py="sm">
|
|
68
|
+
<Group justify="space-between" wrap="nowrap">
|
|
69
|
+
<Button
|
|
70
|
+
disabled={activeIndex === 0 || directing || recording}
|
|
71
|
+
onClick={onBack}
|
|
72
|
+
variant="default"
|
|
73
|
+
>
|
|
74
|
+
{words.video.footer.back}
|
|
75
|
+
</Button>
|
|
76
|
+
|
|
77
|
+
{/* On the review step the live record progress sits left of Record: it
|
|
78
|
+
self-subscribes to the recording status and renders nothing until a record
|
|
79
|
+
runs, so it needs no prop and stays absent on every other step. */}
|
|
80
|
+
{onReview ? <RecordProgressBar /> : null}
|
|
81
|
+
|
|
82
|
+
{onReview ? (
|
|
83
|
+
recordDisabled ? (
|
|
84
|
+
<Tooltip label={words.publish.blockedByUnpublished} position="top" withinPortal>
|
|
85
|
+
{/* A disabled Button does not bubble pointer events to its Tooltip
|
|
86
|
+
parent, so the reason would stay unreachable; the span shim restores
|
|
87
|
+
the hover surface without changing the disabled affordance. */}
|
|
88
|
+
<span>
|
|
89
|
+
<Button disabled leftSection={<Glyph name="video" size={iconSizes.sm} />}>
|
|
90
|
+
{words.video.record.start}
|
|
91
|
+
</Button>
|
|
92
|
+
</span>
|
|
93
|
+
</Tooltip>
|
|
94
|
+
) : (
|
|
95
|
+
<Button
|
|
96
|
+
disabled={directing}
|
|
97
|
+
leftSection={<Glyph name="video" size={iconSizes.sm} />}
|
|
98
|
+
loading={recording}
|
|
99
|
+
onClick={onRecord}
|
|
100
|
+
>
|
|
101
|
+
{words.video.record.start}
|
|
102
|
+
</Button>
|
|
103
|
+
)
|
|
104
|
+
) : (
|
|
105
|
+
<Button disabled={directing} onClick={onNext}>
|
|
106
|
+
{words.video.footer.next}
|
|
107
|
+
</Button>
|
|
108
|
+
)}
|
|
109
|
+
</Group>
|
|
110
|
+
</Box>
|
|
111
|
+
);
|
|
112
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { useEffect, useRef } from "react";
|
|
2
|
+
|
|
3
|
+
import type { CameraPlan } from "@mountaya/elements/camera";
|
|
4
|
+
import type { MapClient } from "@mountaya/elements/editor";
|
|
5
|
+
import { PREVIEW_PLAN_REFRESH_DEBOUNCE_MS, previewRefreshDisposition } from "@mountaya/studio";
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
type StudioDispatchFn,
|
|
9
|
+
useStudioDispatch,
|
|
10
|
+
} from "../../headless/hooks/useStudioDispatch.js";
|
|
11
|
+
import { useUiStoreApi } from "../../headless/hooks/useUiStore.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* parkPreview parks the preview's camera on `fraction` of the flight: a seek, then a pause once
|
|
15
|
+
* the seek answers that it parked. The seek leaves the status `parked`, from which a Play flies
|
|
16
|
+
* on, and the pause lands it on idle: the frame is a still of the plan the surface chose, no
|
|
17
|
+
* place its reader scrubbed to, so the next Play flies the whole plan.
|
|
18
|
+
*
|
|
19
|
+
* A seek that a newer command overtook while it warmed parks nothing and answers
|
|
20
|
+
* `parked: false`. It is not paused: the pause would stop that command's flight, which is a
|
|
21
|
+
* Play pressed while the park was still on its way. A refused seek is not paused either.
|
|
22
|
+
*
|
|
23
|
+
* @param dispatch The studio's dispatch.
|
|
24
|
+
* @param fraction Where on the flight the camera parks, from 0 to 1.
|
|
25
|
+
*/
|
|
26
|
+
export const parkPreview = async (dispatch: StudioDispatchFn, fraction: number): Promise<void> => {
|
|
27
|
+
const seek = await dispatch("studio.video.preview.seek", { fraction });
|
|
28
|
+
if (seek.ok && seek.data.parked) {
|
|
29
|
+
await dispatch("studio.video.preview.pause", {});
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* usePreviewPlanRefresh refreshes the preview whenever the Camera Plan changes, so the WYSIWYG
|
|
35
|
+
* preview reflects the latest shots after each director (or user) edit. It watches the plan
|
|
36
|
+
* reference and, on a change after the first one it sees, debounces a refresh (by the studio's
|
|
37
|
+
* PREVIEW_PLAN_REFRESH_DEBOUNCE_MS, which coalesces a burst of edits into one) through the bus that
|
|
38
|
+
* MATCHES the transport's state: while a rehearsal is actually playing
|
|
39
|
+
* (`status.kind === "previewing"`) it restarts the flight from frame 0 (a plan edit changes the
|
|
40
|
+
* whole flight, so frame 0 is the sensible anchor); while at rest (`idle`, or `parked` on a frame
|
|
41
|
+
* its reader scrubbed to) it RE-PARKS on the new plan's representative travelling fraction (a seek
|
|
42
|
+
* + pause) instead, so the selected style stays visible: auto-playing the whole flight on every
|
|
43
|
+
* preset click or duration nudge would keep the map thrashing while the user is still choosing. It
|
|
44
|
+
* skips the very first plan because PreviewMap already parks the preview on client-ready, and it
|
|
45
|
+
* no-ops until the wizard map is live (the dispatch would be a structured no-op anyway). The timer
|
|
46
|
+
* is cleared on the next change and on unmount so a parked restart never outlives the surface.
|
|
47
|
+
*/
|
|
48
|
+
export const usePreviewPlanRefresh = (client: MapClient | null, plan: CameraPlan): void => {
|
|
49
|
+
const { dispatch } = useStudioDispatch();
|
|
50
|
+
const uiStore = useUiStoreApi();
|
|
51
|
+
// The last plan reference the hook reacted to. The plan is a fresh object on
|
|
52
|
+
// every edit (the tools spread a new plan into the store), so a reference
|
|
53
|
+
// compare detects an edit; seeding it from the first render skips the initial
|
|
54
|
+
// plan, which PreviewMap's own client-ready effect already parks on.
|
|
55
|
+
const lastPlanRef = useRef<CameraPlan | null>(null);
|
|
56
|
+
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
// Until the wizard map registers, there is nothing to fly; record the plan so
|
|
59
|
+
// the first plan after the map mounts is treated as the baseline, not an edit.
|
|
60
|
+
if (!client) {
|
|
61
|
+
lastPlanRef.current = plan;
|
|
62
|
+
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// The first plan seen with a live map is the baseline PreviewMap already
|
|
67
|
+
// parked: adopt it without refreshing so the surface opens once, not twice.
|
|
68
|
+
if (lastPlanRef.current === null || lastPlanRef.current === plan) {
|
|
69
|
+
lastPlanRef.current = plan;
|
|
70
|
+
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
lastPlanRef.current = plan;
|
|
75
|
+
const timer = setTimeout(() => {
|
|
76
|
+
// Read the live status at fire time (not as reactive state): the edits the
|
|
77
|
+
// debounce coalesced may have paused or started the rehearsal meanwhile. What the status
|
|
78
|
+
// asks of the preview is the studio's rule: a recording and a closed wizard keep the
|
|
79
|
+
// camera as it is.
|
|
80
|
+
const status = uiStore.getState().videoExport?.status ?? null;
|
|
81
|
+
const disposition = previewRefreshDisposition(status, plan);
|
|
82
|
+
if (disposition.kind === "restart") {
|
|
83
|
+
void dispatch("studio.video.preview.start", {});
|
|
84
|
+
} else if (disposition.kind === "park") {
|
|
85
|
+
void parkPreview(dispatch, disposition.fraction);
|
|
86
|
+
}
|
|
87
|
+
}, PREVIEW_PLAN_REFRESH_DEBOUNCE_MS);
|
|
88
|
+
|
|
89
|
+
return () => clearTimeout(timer);
|
|
90
|
+
}, [client, dispatch, plan, uiStore]);
|
|
91
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type ItinerarySubject,
|
|
3
|
+
useItinerarySubjectById,
|
|
4
|
+
} from "../../itinerary/hooks/useItinerarySubject.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* useVideoItinerarySubject reads the exported itinerary's header identity (the activity glyph,
|
|
8
|
+
* the name, and its measurements), or null when it has not loaded yet.
|
|
9
|
+
*
|
|
10
|
+
* It reads the DRAFT surface, unlike the export and directions dialogs: the wizard names the
|
|
11
|
+
* itinerary the publisher is WORKING ON, and this is the key useVideoPublication and
|
|
12
|
+
* useVideoOrganizationId already share, so the three dedupe onto one fetch while the preview's
|
|
13
|
+
* own reads take the publication. The query stays disabled without an id, so a wizard opened
|
|
14
|
+
* without one simply reads null. Mounted once per open alongside the route sync (the wizard
|
|
15
|
+
* subtree is keyed by itinerary id).
|
|
16
|
+
*/
|
|
17
|
+
export const useVideoItinerarySubject = (itineraryId: string | null): ItinerarySubject | null =>
|
|
18
|
+
useItinerarySubjectById(itineraryId ?? undefined);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useUiStore } from "../../headless/hooks/useUiStore.js";
|
|
2
|
+
import { useStudioItinerary } from "../../itinerary/hooks/useStudioItinerary.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* useVideoOrganizationId reads the organization that owns the WIZARD's exported
|
|
6
|
+
* itinerary: its id, `null` for a personal itinerary, which belongs to none, and `undefined`
|
|
7
|
+
* until the itinerary's detail has loaded. A surface waits under `undefined` and has its
|
|
8
|
+
* answer under `null`, which is why they are told apart. The wizard is deliberately
|
|
9
|
+
* decoupled from the studio's active itinerary (it opens from a list row, which is not
|
|
10
|
+
* necessarily the active one), so the director's run scope must come from the
|
|
11
|
+
* wizard's own itinerary, never from activeItinerary, which may be a different
|
|
12
|
+
* itinerary or absent entirely. It reuses the SAME disabled-query pattern the
|
|
13
|
+
* route sync uses (the same read under the same credential) on the DRAFT
|
|
14
|
+
* surface: ownership is a property of the itinerary, not of a
|
|
15
|
+
* publication, and this is the key the name + publication hooks already share, so the
|
|
16
|
+
* read is a free cache hit. Shared by the director provider (the run's organization)
|
|
17
|
+
* and the wizard's director-slot gating (availability), so both read one truth.
|
|
18
|
+
*
|
|
19
|
+
* @returns The owning organization's id, `null` for a personal itinerary, or `undefined` while
|
|
20
|
+
* no detail says which.
|
|
21
|
+
*/
|
|
22
|
+
export const useVideoOrganizationId = (): string | null | undefined => {
|
|
23
|
+
const itineraryId = useUiStore((state) => state.videoExport?.itineraryId ?? null);
|
|
24
|
+
|
|
25
|
+
// Without an itinerary there is nothing to fetch, so the query stays disabled and
|
|
26
|
+
// no detail states an owner.
|
|
27
|
+
const { data } = useStudioItinerary(itineraryId ?? undefined);
|
|
28
|
+
|
|
29
|
+
return data?.organization_id;
|
|
30
|
+
};
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { useEffect, useMemo } from "react";
|
|
2
|
+
|
|
3
|
+
import type { TileSchema } from "@mountaya/client";
|
|
4
|
+
import type { MapClient } from "@mountaya/elements/editor";
|
|
5
|
+
import { boundsOf } from "@mountaya/elements/geo";
|
|
6
|
+
import { clampMapLanguage } from "@mountaya/elements/style";
|
|
7
|
+
import { useMountayaLayersManifest } from "@mountaya/elements-react";
|
|
8
|
+
import { resolveBaseTerrain, resolveDemUrl, selectVideoExportRoute } from "@mountaya/studio";
|
|
9
|
+
|
|
10
|
+
import { useStudioPreferences } from "../../headless/hooks/useStudioPreferences.js";
|
|
11
|
+
import { useUiStore } from "../../headless/hooks/useUiStore.js";
|
|
12
|
+
import { useUiStoreShallow } from "../../headless/hooks/useUiStoreShallow.js";
|
|
13
|
+
import { useStudioDemUrl } from "../../headless/providers/studio.js";
|
|
14
|
+
import { useStudioItinerary } from "../../itinerary/hooks/useStudioItinerary.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* itineraryIcons builds the {icon, color} sprite list an itinerary's tiles will
|
|
18
|
+
* paint: every waypoint's glyph + colour, plus the auto-emitted flag-start /
|
|
19
|
+
* flag-end endpoints stamped in each segment's colour. It mirrors the studio's
|
|
20
|
+
* pre-warm list (useStudioMapSync) so a secondary map registers the same sprites
|
|
21
|
+
* before the tiles reference them, avoiding the one-frame
|
|
22
|
+
* `Image … could not be loaded` race the styleimagemissing handler would otherwise
|
|
23
|
+
* cover. An empty input yields an empty list. Shared by the secondary display maps
|
|
24
|
+
* (the video preview, the Street View mini-map).
|
|
25
|
+
*/
|
|
26
|
+
export const itineraryIcons = (
|
|
27
|
+
segments: { color?: string | null | undefined }[],
|
|
28
|
+
waypoints: { color?: string | null | undefined; icon?: string | null | undefined }[],
|
|
29
|
+
): { color: string; icon: string }[] => {
|
|
30
|
+
const icons: { color: string; icon: string }[] = [];
|
|
31
|
+
|
|
32
|
+
for (const waypoint of waypoints) {
|
|
33
|
+
if (waypoint.icon && waypoint.color) {
|
|
34
|
+
icons.push({ color: waypoint.color, icon: waypoint.icon });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
for (const segment of segments) {
|
|
39
|
+
if (segment.color) {
|
|
40
|
+
icons.push({ color: segment.color, icon: "flag-start" });
|
|
41
|
+
icons.push({ color: segment.color, icon: "flag-end" });
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return icons;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* useVideoPreviewSeed seeds the wizard's dedicated preview and recording map so it shows the
|
|
50
|
+
* exported itinerary on the same base map as the editor: the WYSIWYG hand-off the dedicated map
|
|
51
|
+
* exists for.
|
|
52
|
+
*
|
|
53
|
+
* Once the wizard client is live it applies, in order, the essentials directly through the
|
|
54
|
+
* MapClient: the studio's current base terrain (resolved from the layers manifest), the user's
|
|
55
|
+
* itinerary and zone tile sources, the user's preferred map label language, the waypoint and
|
|
56
|
+
* endpoint sprite pre-warm and the itinerary emphasis (focus the exported itinerary, dim the rest),
|
|
57
|
+
* and a fit-to-route framing (from the wizard slice's route, computed once the itinerary detail
|
|
58
|
+
* loads).
|
|
59
|
+
*
|
|
60
|
+
* Each is applied when its own input lands and at no other time: a base terrain is a whole style
|
|
61
|
+
* document, so the detail or the route landing swaps none, and a camera the reader moved is framed
|
|
62
|
+
* again by another route alone. The client replays the sources, the language and the emphasis
|
|
63
|
+
* across a base-map switch, so none of them follows one here. The sprites do: a style swap discards
|
|
64
|
+
* the map's images and the client keeps none to replay, so they are warmed again on the style a
|
|
65
|
+
* switch brings.
|
|
66
|
+
*
|
|
67
|
+
* It applies these directly on the wizard client rather than reusing useStudioMapSync, because that
|
|
68
|
+
* hook also drives the studio's cursor selection and the waypoint magnet, studio-only concerns the
|
|
69
|
+
* non-interactive preview neither needs nor should trigger: this is render setup of a dedicated
|
|
70
|
+
* surface, consistent with the setBaseTerrain/addTileSources calls here, not a store mutation. The
|
|
71
|
+
* emphasis and the icon list come from the exported itinerary's detail, read on the same query key
|
|
72
|
+
* useVideoRouteSync uses (so the second call is a free cache hit).
|
|
73
|
+
*
|
|
74
|
+
* The preview mirrors the base terrain, the itinerary tiles, the language and the focused
|
|
75
|
+
* itinerary's emphasis, and no other overlay the editor shows (weather, points of interest): it
|
|
76
|
+
* matches the editor for the route on its base map.
|
|
77
|
+
*/
|
|
78
|
+
export const useVideoPreviewSeed = (client: MapClient | null): void => {
|
|
79
|
+
// The catalogue the MAP already holds, rather than a second read of the same endpoint.
|
|
80
|
+
// Two caches over one manifest can answer differently across a credential change or a
|
|
81
|
+
// refetch, and the symptom is an overlay this surface offers and the map refuses, which
|
|
82
|
+
// reads as a broken toggle rather than as a stale cache.
|
|
83
|
+
const { manifest: layers } = useMountayaLayersManifest();
|
|
84
|
+
// The host's elevation raster, so the preview bakes the same relief the editor does: a
|
|
85
|
+
// recording that came out flat against a hillshaded editor would read as a rendering bug.
|
|
86
|
+
const demUrl = useStudioDemUrl();
|
|
87
|
+
const language = useStudioPreferences()?.language;
|
|
88
|
+
const route = useUiStore(selectVideoExportRoute);
|
|
89
|
+
const itineraryId = useUiStore((state) => state.videoExport?.itineraryId ?? null);
|
|
90
|
+
const { terrain, terrainVariant } = useUiStoreShallow((state) => ({
|
|
91
|
+
terrain: state.terrain,
|
|
92
|
+
terrainVariant: state.terrainVariant,
|
|
93
|
+
}));
|
|
94
|
+
|
|
95
|
+
// Read the exported itinerary's detail off the same query useVideoRouteSync drives
|
|
96
|
+
// (the PUBLISHED surface, so the waypoint icons and the emphasis describe the same
|
|
97
|
+
// snapshot the tiles paint), sharing that cache and that credential rather than issuing
|
|
98
|
+
// a second request. Without an id the query stays disabled, so the icon pre-warm +
|
|
99
|
+
// emphasis wait for the detail.
|
|
100
|
+
const { data: detail } = useStudioItinerary(itineraryId ?? undefined, "published");
|
|
101
|
+
|
|
102
|
+
// The base map the studio shows, as the manifest resolves it. Its members are what the
|
|
103
|
+
// switch below is keyed on, so a manifest read again with the same style swaps nothing.
|
|
104
|
+
const baseTerrain = useMemo(
|
|
105
|
+
() =>
|
|
106
|
+
layers
|
|
107
|
+
? resolveBaseTerrain(
|
|
108
|
+
layers.terrains ?? [],
|
|
109
|
+
terrain,
|
|
110
|
+
terrainVariant,
|
|
111
|
+
resolveDemUrl(layers, demUrl),
|
|
112
|
+
)
|
|
113
|
+
: null,
|
|
114
|
+
[demUrl, layers, terrain, terrainVariant],
|
|
115
|
+
);
|
|
116
|
+
const styleUrl = baseTerrain?.styleUrl;
|
|
117
|
+
const terrainDemUrl = baseTerrain?.demUrl;
|
|
118
|
+
|
|
119
|
+
// The base terrain, first: the effects below run behind it on the mount. Across every switch
|
|
120
|
+
// after it the client replays what they apply, the sprites aside, which are warmed again.
|
|
121
|
+
useEffect(() => {
|
|
122
|
+
if (!client || styleUrl === undefined) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
client.setBaseTerrain(terrainDemUrl ? { demUrl: terrainDemUrl, styleUrl } : { styleUrl });
|
|
127
|
+
}, [client, styleUrl, terrainDemUrl]);
|
|
128
|
+
|
|
129
|
+
// The tile sources. The manifest is cast from the openapi boundary, so each overlay is
|
|
130
|
+
// guarded: itineraries + zones are the two vector layers the studio draws, and the preview
|
|
131
|
+
// shows the same itinerary geometry the editor does.
|
|
132
|
+
useEffect(() => {
|
|
133
|
+
if (!client || !layers) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const sources: TileSchema.TileSource[] = [
|
|
138
|
+
...(layers.itineraries?.sources ?? []),
|
|
139
|
+
...(layers.zones?.sources ?? []),
|
|
140
|
+
];
|
|
141
|
+
if (sources.length > 0) {
|
|
142
|
+
client.addTileSources(sources);
|
|
143
|
+
}
|
|
144
|
+
}, [client, layers]);
|
|
145
|
+
|
|
146
|
+
// The label language. Gated on the manifest as the rest of the seed is.
|
|
147
|
+
const seeded = layers !== undefined && layers !== null;
|
|
148
|
+
useEffect(() => {
|
|
149
|
+
if (!client || !seeded) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
client.setMapLanguage(clampMapLanguage(language));
|
|
154
|
+
}, [client, language, seeded]);
|
|
155
|
+
|
|
156
|
+
// Pre-warm the exported itinerary's waypoint + endpoint sprites so its first tile paint never
|
|
157
|
+
// logs a missing-image race, as the studio's render setup does (useStudioMapSync). Gated on
|
|
158
|
+
// the detail, so it waits for the fetched waypoints and segments.
|
|
159
|
+
//
|
|
160
|
+
// The style and the elevation raster are among its inputs and are not read: they are the two
|
|
161
|
+
// members the switch above is keyed on, and the client swaps the style for either. The sprites
|
|
162
|
+
// are registered on the style that stands, a switch discards them with it, and the client keeps
|
|
163
|
+
// none to replay. This effect is declared behind the base terrain's, so on a switch it runs
|
|
164
|
+
// behind the swap.
|
|
165
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: the style and the raster key a switch
|
|
166
|
+
useEffect(() => {
|
|
167
|
+
if (!client || !seeded || !detail || !itineraryId) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const icons = itineraryIcons(detail.segments ?? [], detail.waypoints ?? []);
|
|
172
|
+
if (icons.length > 0) {
|
|
173
|
+
client.prewarmItineraryIcons(icons);
|
|
174
|
+
}
|
|
175
|
+
}, [client, detail, itineraryId, seeded, styleUrl, terrainDemUrl]);
|
|
176
|
+
|
|
177
|
+
// Focus the exported itinerary and dim the rest, so the flight shows the right route. The
|
|
178
|
+
// emphasis is the only per-itinerary draw the tile layers need beyond the sources. Gated on
|
|
179
|
+
// the detail as the pre-warm is, and stated again when the id or the detail changes.
|
|
180
|
+
useEffect(() => {
|
|
181
|
+
if (!client || !seeded || !detail || !itineraryId) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
client.setItineraryEmphasis({ id: itineraryId, mode: "itinerary" });
|
|
186
|
+
}, [client, detail, itineraryId, seeded]);
|
|
187
|
+
|
|
188
|
+
// Frame the route so the preview opens on the itinerary rather than the seed
|
|
189
|
+
// camera. The route lives on the wizard slice (the route-set tool computes it
|
|
190
|
+
// from the exported itinerary's detail), so the framing matches the flight and
|
|
191
|
+
// runs when the route lands or another replaces it, decoupled from the studio's
|
|
192
|
+
// active itinerary.
|
|
193
|
+
useEffect(() => {
|
|
194
|
+
if (!client || !seeded || !route) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const bounds = boundsOf([{ coordinates: route.line, type: "LineString" }]);
|
|
199
|
+
if (bounds) {
|
|
200
|
+
client.fitBounds(bounds);
|
|
201
|
+
}
|
|
202
|
+
}, [client, route, seeded]);
|
|
203
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
|
|
3
|
+
import { useLatestRef } from "@mountaya/elements-react";
|
|
4
|
+
import {
|
|
5
|
+
languageSchema,
|
|
6
|
+
unitLengthSchema,
|
|
7
|
+
unitPaceSchema,
|
|
8
|
+
unitSlopeSchema,
|
|
9
|
+
} from "@mountaya/studio";
|
|
10
|
+
|
|
11
|
+
import { useStudioDispatch } from "../../headless/hooks/useStudioDispatch.js";
|
|
12
|
+
import { useStudioPreferences } from "../../headless/hooks/useStudioPreferences.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* useVideoProfileSeed seeds the wizard's video-scoped profile units and language from the
|
|
16
|
+
* viewer's identity preferences when the wizard opens, falling back to the schema defaults
|
|
17
|
+
* (metric, per-time, degrees, English) for any preference the viewer has not set. The profile
|
|
18
|
+
* slice opens on those same defaults; this overrides them once so the overlay formats in the
|
|
19
|
+
* units and language the viewer already reads the rest of the studio in, without coupling the
|
|
20
|
+
* export to the global preferences thereafter (a later change in the step is local to the
|
|
21
|
+
* export). It dispatches through the bus like every other profile mutation (units.set with the
|
|
22
|
+
* length, pace and slope, then language.set), so the seed flows through the same validated path
|
|
23
|
+
* a click would.
|
|
24
|
+
*
|
|
25
|
+
* It runs once on mount: the wizard subtree is keyed by the itinerary id, so a fresh open
|
|
26
|
+
* remounts this hook and re-seeds from the prefs current at open time. The identity prefs widen
|
|
27
|
+
* each field to a plain string (the store defaults unset fields to ""), so each is narrowed
|
|
28
|
+
* through its domain schema with a default fallback at this boundary: an unset or out-of-range
|
|
29
|
+
* value lands on the default rather than a free string.
|
|
30
|
+
*/
|
|
31
|
+
export const useVideoProfileSeed = (): void => {
|
|
32
|
+
const { dispatch } = useStudioDispatch();
|
|
33
|
+
// Through a ref, and that is the whole seeding rule expressed as a dependency rather than as
|
|
34
|
+
// an omission: the prefs read at OPEN TIME are the seed, and a later in-step units or
|
|
35
|
+
// language change is local to the export, so a preference changing while the wizard is open
|
|
36
|
+
// must not re-fire this. Listing `preferences` would re-seed and silently discard what the
|
|
37
|
+
// reader had just chosen in the Overlay step; leaving it off the list and reading it directly
|
|
38
|
+
// is the same behaviour written as a stale closure nothing checks.
|
|
39
|
+
const preferencesRef = useLatestRef(useStudioPreferences());
|
|
40
|
+
|
|
41
|
+
// The wizard subtree is keyed by itinerary id, so a fresh open remounts this hook and
|
|
42
|
+
// re-seeds from the prefs current at that moment.
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
const preferences = preferencesRef.current;
|
|
45
|
+
const length = unitLengthSchema.catch("metric").parse(preferences?.length);
|
|
46
|
+
const pace = unitPaceSchema.catch("per-time").parse(preferences?.pace);
|
|
47
|
+
const slope = unitSlopeSchema.catch("degrees").parse(preferences?.slope);
|
|
48
|
+
const language = languageSchema.catch("en").parse(preferences?.language);
|
|
49
|
+
|
|
50
|
+
void dispatch("studio.video.profile.units.set", { length, pace, slope });
|
|
51
|
+
void dispatch("studio.video.profile.language.set", { language });
|
|
52
|
+
}, [dispatch, preferencesRef]);
|
|
53
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type PublicationState, publicationStateOf } from "@mountaya/studio/strings";
|
|
2
|
+
|
|
3
|
+
import { useStudioItinerary } from "../../itinerary/hooks/useStudioItinerary.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* useVideoPublication reports whether the exported itinerary has a publication to
|
|
7
|
+
* record, and whether the editor has moved past it.
|
|
8
|
+
*
|
|
9
|
+
* A video is a published artifact, so the wizard previews and records the PUBLISHED snapshot, which
|
|
10
|
+
* leaves two states the shell must show rather than silently produce an empty file: never published
|
|
11
|
+
* (the stage swaps for the publish panel and Record stands down) and a draft ahead of the
|
|
12
|
+
* publication (the preview stage carries the caveat). Only the DRAFT detail can report either, so
|
|
13
|
+
* this reads the draft deliberately, on the same key the name + organization hooks already share: a
|
|
14
|
+
* free cache hit, and the one read that still answers "what is the editor holding?" while
|
|
15
|
+
* everything else in the wizard reads the publication. Reads null-safely: without an id the query
|
|
16
|
+
* stays disabled and the state holds at "loading".
|
|
17
|
+
*
|
|
18
|
+
* A REFUSED fetch is reported as "error" rather than left at "loading". The wizard
|
|
19
|
+
* has nothing else to wait on (this read and the route read share one key, so a
|
|
20
|
+
* failure here means the stage will never resolve), and a spinner that cannot finish
|
|
21
|
+
* is the one outcome the shell must not produce.
|
|
22
|
+
*/
|
|
23
|
+
export const useVideoPublication = (itineraryId: string | null): PublicationState => {
|
|
24
|
+
// Without an itinerary there is nothing to fetch, so the query stays disabled and the
|
|
25
|
+
// state reads "loading".
|
|
26
|
+
const { data, isError } = useStudioItinerary(itineraryId ?? undefined);
|
|
27
|
+
|
|
28
|
+
return publicationStateOf(data, isError);
|
|
29
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
|
|
3
|
+
import { itineraryToRouteGeometry } from "@mountaya/elements/camera";
|
|
4
|
+
|
|
5
|
+
import { useUiStoreShallow } from "../../headless/hooks/useUiStoreShallow.js";
|
|
6
|
+
import { useStudioItinerary } from "../../itinerary/hooks/useStudioItinerary.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* VideoRouteState is the preview stage's readiness: `loading` until the exported
|
|
10
|
+
* itinerary's detail lands, `empty` when it flattens to no usable route line (a
|
|
11
|
+
* geometry-less itinerary or segment), `error` when the detail will never land at all
|
|
12
|
+
* (the fetch was refused), and `ready` once there is a flight to fly.
|
|
13
|
+
*
|
|
14
|
+
* `error` is separate from `empty` because the two need opposite copy: an empty
|
|
15
|
+
* itinerary is a fact about the route and the user fixes it by drawing one, while a
|
|
16
|
+
* failed fetch is a fault and the user fixes it by retrying. It is separate from
|
|
17
|
+
* `loading` because a cover that cannot resolve must not keep spinning.
|
|
18
|
+
*/
|
|
19
|
+
export type VideoRouteState = "empty" | "error" | "loading" | "ready";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* useVideoRouteReady reports whether the wizard's flight has a route yet, for the
|
|
23
|
+
* preview stage's loading/empty overlays. It reuses the SAME disabled-query
|
|
24
|
+
* pattern useVideoRouteSync uses (the same read under the same credential, so
|
|
25
|
+
* React Query dedupes this onto the fetch the route sync already opened) and
|
|
26
|
+
* derives emptiness from the DETAIL directly (the same itineraryToRouteGeometry
|
|
27
|
+
* flatten the sync dispatches) rather than from the store slot, so the readout never
|
|
28
|
+
* flashes "empty" in the frame between the detail landing and the route.set
|
|
29
|
+
* dispatch. Mounted once per open alongside the route sync (the wizard subtree is
|
|
30
|
+
* keyed by itinerary id).
|
|
31
|
+
*/
|
|
32
|
+
export const useVideoRouteReady = (): VideoRouteState => {
|
|
33
|
+
const { itineraryId, segmentId } = useUiStoreShallow((state) => ({
|
|
34
|
+
itineraryId: state.videoExport?.itineraryId ?? null,
|
|
35
|
+
segmentId: state.videoExport?.segmentId ?? null,
|
|
36
|
+
}));
|
|
37
|
+
|
|
38
|
+
// Without an itinerary there is nothing to fetch, so the query stays disabled and the
|
|
39
|
+
// state holds. It reads the PUBLISHED surface, the same one the route sync flies, so
|
|
40
|
+
// readiness describes the geometry actually on the stage.
|
|
41
|
+
const { data, isError } = useStudioItinerary(itineraryId ?? undefined, "published");
|
|
42
|
+
|
|
43
|
+
return useMemo(() => {
|
|
44
|
+
if (!data) {
|
|
45
|
+
// A refused fetch will not resolve on its own, so it leaves the loading cover
|
|
46
|
+
// rather than holding it open for as long as the wizard stays open.
|
|
47
|
+
return isError ? "error" : "loading";
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return itineraryToRouteGeometry(data, segmentId) ? "ready" : "empty";
|
|
51
|
+
}, [data, isError, segmentId]);
|
|
52
|
+
};
|