@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
package/README.md
CHANGED
|
@@ -1,3 +1,1088 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @mountaya/studio-react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Mountaya's map studio, as components. Mount `MountayaStudio` and you have the editor: the map,
|
|
4
|
+
the chrome over it, the panels, the co-pilot and every dialog it raises for itself.
|
|
5
|
+
`MountayaStudioViewer` is the same thing read-only. Every surface either of them places is
|
|
6
|
+
published on its own, so a product that wants a different arrangement assembles one.
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm install @mountaya/studio-react @mountaya/studio \
|
|
10
|
+
@mountaya/elements-react @mountaya/elements \
|
|
11
|
+
@mountaya/client-react @mountaya/client \
|
|
12
|
+
@tanstack/react-query maplibre-gl@6.18.0 react
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Every name after the first is a peer, and every `@mountaya/*` name is installed at one version.
|
|
16
|
+
`maplibre-gl` is the map, a required peer of this package (and an optional one of
|
|
17
|
+
`@mountaya/elements-react`, which a map needs). It is named at the release `@mountaya/elements`
|
|
18
|
+
builds its map worker from, so the renderer and the worker agree; the peer range is wider, for an
|
|
19
|
+
application that already holds a renderer, and the elements warn on the first map where the two
|
|
20
|
+
differ. The `examples/studio-vite` directory of the repository declares the same list, running.
|
|
21
|
+
|
|
22
|
+
What is **not** on that line is the design system. Mantine is a real dependency of this package
|
|
23
|
+
rather than a peer, so `npm install @mantine/core` is not a step a consumer of an assembled
|
|
24
|
+
studio takes. If you want the verbs without the design system,
|
|
25
|
+
`@mountaya/studio-react/headless` has no Mantine import anywhere beneath it. It installs the
|
|
26
|
+
assembled studio's dependencies all the same, Mantine among them, and bundles none of them: an
|
|
27
|
+
application that imports `./headless` alone ships none of their code.
|
|
28
|
+
|
|
29
|
+
## Two customers, one implementation
|
|
30
|
+
|
|
31
|
+
`@mountaya/studio-react/headless` publishes the studio's state, lifecycle and actions with no
|
|
32
|
+
DOM in them at all, and `@mountaya/studio-react/map` publishes the hooks that bind them to a
|
|
33
|
+
map, every one of them at once through `useStudioMapBindings`, which is how `MountayaStudio` binds
|
|
34
|
+
its own. This package's root publishes the surfaces that render both.
|
|
35
|
+
|
|
36
|
+
| You want | You install | You mount |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| A map with controls | `@mountaya/elements-react` | `MapView`, `MapControls` |
|
|
39
|
+
| Our verbs, your design system | `@mountaya/studio-react` | `MountayaStudioProvider` over `createStudioToolBus`, then `useSegmentList`, `useSegmentRow`, … |
|
|
40
|
+
| A working studio | `@mountaya/studio-react` | `MountayaStudioHost` + `MountayaStudio` |
|
|
41
|
+
| The same, read-only | `@mountaya/studio-react` | `MountayaStudioHost` + `MountayaStudioViewer` |
|
|
42
|
+
| A studio you arrange yourself | `@mountaya/studio-react` | `SegmentList`, `PersistedSegmentRow`, … |
|
|
43
|
+
|
|
44
|
+
The last four rows run the same logic, which is the only version of that promise worth making: a
|
|
45
|
+
drop-in built on a different implementation than the hooks it advertises would diverge on its
|
|
46
|
+
first bug fix. The hooks are a SUBPATH rather than a package because they and the components
|
|
47
|
+
share every line of that logic: what a consumer skips by importing `./headless` is the markup
|
|
48
|
+
and the design system behind it, and `exports` is exactly the boundary that skips a bundle.
|
|
49
|
+
|
|
50
|
+
`@mountaya/studio-react/copilot` publishes `CopilotPanel`, the co-pilot's column, for a host that
|
|
51
|
+
arranges its own studio around `MountayaStudioHost`. It takes no props. It is an entry of its own
|
|
52
|
+
because a markdown renderer and a syntax highlighter sit behind it; `<MountayaStudio>` mounts it
|
|
53
|
+
already, loaded the first time the co-pilot opens, so a host of the assembled studio imports
|
|
54
|
+
nothing from it. The panel docks over the left edge of its nearest positioned ancestor, full
|
|
55
|
+
height, and slides in while a co-pilot tab is active over an open itinerary or zone.
|
|
56
|
+
`useStudioCopilotInset()` answers how much of that edge it covers (its width while open, 0 while
|
|
57
|
+
shut), so the host's own left-anchored chrome moves past it: `left: useStudioCopilotInset() + 16`.
|
|
58
|
+
A studio opens on Search, so the host's own control makes a co-pilot tab active, as the assembled
|
|
59
|
+
studio's does: `studio.tabs.open` with `{ kind: "copilot" }`. The panel shows no
|
|
60
|
+
conversation until `behavior.copilot` states the host's co-pilot seam.
|
|
61
|
+
`./embed`, `./import` and `./video` are opt-in the same way.
|
|
62
|
+
|
|
63
|
+
## A whole studio
|
|
64
|
+
|
|
65
|
+
<!-- example: examples/studio-vite/src/Studio.tsx -->
|
|
66
|
+
|
|
67
|
+
```tsx
|
|
68
|
+
import { useState } from "react";
|
|
69
|
+
|
|
70
|
+
import { Mountaya } from "@mountaya/client/browser";
|
|
71
|
+
import { useSessionToken } from "@mountaya/client-react";
|
|
72
|
+
import { frElementsStrings } from "@mountaya/elements/i18n/fr";
|
|
73
|
+
import { frStudioStrings } from "@mountaya/studio/strings/fr";
|
|
74
|
+
import { MountayaStudio, MountayaStudioHost, type StudioI18nConfig } from "@mountaya/studio-react";
|
|
75
|
+
|
|
76
|
+
const PUBLISHABLE_KEY = "pk_…";
|
|
77
|
+
|
|
78
|
+
// English is built in, and every other language is an entry of its own, so a page that reads in
|
|
79
|
+
// English loads no French. This page reads in French: it imports the studio's words and the map
|
|
80
|
+
// chrome's, and hands both over once, at module scope, where their identity holds.
|
|
81
|
+
const french: StudioI18nConfig = {
|
|
82
|
+
language: "fr",
|
|
83
|
+
studioTranslations: { fr: frStudioStrings },
|
|
84
|
+
translations: { fr: frElementsStrings },
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// Every request the studio makes, its writes, its map and its search, routing and elevation
|
|
88
|
+
// profile, takes a session token beside the key, minted for the studio's own surface. Minting one
|
|
89
|
+
// needs the secret key, so your server does it: this endpoint calls `POST /v1/sessions` with
|
|
90
|
+
// `{ publishable_key, surface: "studio-embedded", user_id }` and returns the
|
|
91
|
+
// `{ token, expires_at, user_id }` it receives. The studio refuses a token minted for any other
|
|
92
|
+
// surface, and what it draws and asks under this one is never counted toward your organization's
|
|
93
|
+
// limits. `user_id` is the member your own sign-in vouches for, read from your server's session
|
|
94
|
+
// and never from the request: every write the studio makes acts as the user the token names, and
|
|
95
|
+
// no header names one. The hook refreshes the token before it expires. An answer that is not a
|
|
96
|
+
// success rejects, so the hook reports it and asks again, where a body read as it came would be a
|
|
97
|
+
// session with no token in it.
|
|
98
|
+
const mintSession = async () => {
|
|
99
|
+
const response = await fetch("/api/mountaya-session");
|
|
100
|
+
if (!response.ok) {
|
|
101
|
+
throw new Error(`The session endpoint answered ${response.status}.`);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return response.json();
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
// The key is stated once, here, and the client is built once over `session`: the studio renders
|
|
108
|
+
// once the first token lands, and each refresh reaches the next request and the next tile with
|
|
109
|
+
// nothing rebuilt. The map derives its own tile transform from this client (the
|
|
110
|
+
// credential, the tile origin allowed to receive it, and the language its labels are rendered
|
|
111
|
+
// in), so the French chrome below arrives over French tile labels.
|
|
112
|
+
export const Studio = () => {
|
|
113
|
+
const { session } = useSessionToken({ mint: mintSession });
|
|
114
|
+
const [mountaya] = useState(
|
|
115
|
+
() =>
|
|
116
|
+
new Mountaya({
|
|
117
|
+
credential: { publishableKey: PUBLISHABLE_KEY, sessionToken: session },
|
|
118
|
+
}),
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
return (
|
|
122
|
+
<MountayaStudioHost client={mountaya} i18n={french}>
|
|
123
|
+
<MountayaStudio />
|
|
124
|
+
</MountayaStudioHost>
|
|
125
|
+
);
|
|
126
|
+
};
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
That block is `examples/studio-vite/src/Studio.tsx`, byte for byte: `npm run dev --workspace
|
|
130
|
+
@mountaya/example-studio-vite` runs it, and `scripts/readme-examples.test.mjs` fails if the two
|
|
131
|
+
drift. The host mounts the client provider, the query cache, the design system and every seam
|
|
132
|
+
the editor reads; `MountayaStudio` is the editor. Each of those is something you can state
|
|
133
|
+
instead: pass `client` and the host stops looking for one above it, omit it and it inherits a
|
|
134
|
+
`MountayaProvider` you already mounted.
|
|
135
|
+
|
|
136
|
+
The client is built over `session`, so the host knows a token is on its way: while it is, the
|
|
137
|
+
host renders nothing beneath it, and the studio mounts once the first token lands. Nothing it
|
|
138
|
+
asks, its map's tiles included, goes out before the token does. "Session tokens" in the
|
|
139
|
+
`@mountaya/client-react` README says what a mint that fails leaves.
|
|
140
|
+
|
|
141
|
+
**The key carries `studio-embedded`, with `tiles` and `data` beside it.** The studio's map draws
|
|
142
|
+
through the Tile API and its search and previews ask the Data API, so every key carrying
|
|
143
|
+
`studio-embedded` carries both: creating or updating one without either is a `400`, one entry per
|
|
144
|
+
missing scope, and nothing is added for you.
|
|
145
|
+
|
|
146
|
+
**Every studio host rendering the Embedded Studio runs on a session minted for
|
|
147
|
+
`studio-embedded`**, the editor and a read-only `MountayaStudioViewer` alike. It is the only token
|
|
148
|
+
a `studio-embedded` operation accepts, and what the studio draws and asks under it, its map's
|
|
149
|
+
tiles and its Data API requests among them, is recorded apart and never counted toward the
|
|
150
|
+
organization's limits, allowances or invoice. The host reads the surface off the token its client
|
|
151
|
+
carries and refuses a token minted for any other with a `MountayaConfigurationError`, before the
|
|
152
|
+
studio sends anything, and refuses a publishable key given no session token the same way: a studio
|
|
153
|
+
has no map of its own to draw under a key alone. A viewer's session acts for no member: leave
|
|
154
|
+
`user_id` out of its mint, and keep `surface`. Such a viewer shows what the organization has
|
|
155
|
+
published, as the key alone would; to preview drafts, mint the viewer's session for the member who
|
|
156
|
+
looks.
|
|
157
|
+
|
|
158
|
+
The hosts Mountaya runs itself are not held to it: a host whose client carries a share token, as the
|
|
159
|
+
share page's does, a host whose client carries the browser's own session and no key, as Mountaya's
|
|
160
|
+
web application's does, and a host serving Map Publishing's hosted embed, below.
|
|
161
|
+
|
|
162
|
+
`data.surface` names the product a host renders, and it is `"studio-embedded"`, the Embedded
|
|
163
|
+
Studio, where you state nothing. A host serving Map Publishing's hosted embed from Mountaya's own
|
|
164
|
+
origin states `"embedding"`: that product is read-only and the API records it by the origin it is
|
|
165
|
+
served from, so the host reads no session token for it, taking a key with a session minted for any
|
|
166
|
+
surface or none, and grants `embedding` and `share` alone, refusing `editor` or `authenticated`
|
|
167
|
+
with a `MountayaConfigurationError`. Stated on a page of your own, it lifts the host's check and nothing
|
|
168
|
+
else: what the studio asks there under an `api` session is counted as your own clients' requests
|
|
169
|
+
are, and every `studio-embedded` operation still refuses that session.
|
|
170
|
+
|
|
171
|
+
**The snippet imports no stylesheet, and the studio needs the one below.** It is imported once,
|
|
172
|
+
where the application mounts, which in the example is `examples/studio-vite/src/main.tsx`:
|
|
173
|
+
|
|
174
|
+
<!-- typecheck:skip side-effect CSS import, which has no declarations to resolve -->
|
|
175
|
+
|
|
176
|
+
```tsx
|
|
177
|
+
import "@mountaya/studio-react/styles.css";
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
`styles.css` carries the design system this package brings and then the whole family in cascade
|
|
181
|
+
order, so there is nothing else to import and no order to get wrong. Without it the map's canvas
|
|
182
|
+
is misplaced and every dialog, input, menu, panel, row and control the studio draws is unstyled.
|
|
183
|
+
|
|
184
|
+
The design system is the stylesheets of `@mantine/core`, `@mantine/dates`, `@mantine/dropzone`
|
|
185
|
+
and `@mantine/code-highlight`, wrapped in `@layer mantine`, so every rule of it loses to an
|
|
186
|
+
unlayered one. An application that already imports `@mantine/core/styles.css` keeps its own
|
|
187
|
+
copy in charge, since its rules are unlayered, and imports this sheet all the same: its own
|
|
188
|
+
import does not style the date picker, the import's drop target or the embed wizard's code
|
|
189
|
+
snippet.
|
|
190
|
+
|
|
191
|
+
Everything beyond `client`, `itineraryId` and `children` arrives in a **named group**, and each
|
|
192
|
+
group is named for the question you are asking: `i18n` (which words, and which regional
|
|
193
|
+
conventions), `appearance` (what it looks like), `behavior` (what it does, and what you do instead),
|
|
194
|
+
`assets` (where the pictures come from), `data` (what it is showing, and to whom) and `plugins`
|
|
195
|
+
(what a third party ADDS to it). The table below lists each group and then its members.
|
|
196
|
+
|
|
197
|
+
The same group types are what `StudioProvider` on `@mountaya/studio-react/headless` takes, so
|
|
198
|
+
moving between the assembled studio and your own arrangement restates nothing.
|
|
199
|
+
|
|
200
|
+
A group may be written inline, and so may most of its members. The host holds
|
|
201
|
+
`appearance.header`, `appearance.paint`, `appearance.tokens`, `behavior.navigation`,
|
|
202
|
+
`behavior.seams`, `behavior.url`, `behavior.video`, `data.viewer`, `data.persistence`, the glyph
|
|
203
|
+
tables and the word bundles by their members, `appearance.theme` by its content and
|
|
204
|
+
`i18n.languages` by its codes, and it reads `behavior.handlers`, `behavior.recognizers`, `behavior.confirm`,
|
|
205
|
+
`behavior.onDispatch`, `behavior.threadsUrl`, `behavior.invalidateAiConfig`,
|
|
206
|
+
`behavior.invalidateMemberships`, `behavior.onSignInRefused`, `behavior.recoveryAddendum` and
|
|
207
|
+
`plugins.onError` when it uses them.
|
|
208
|
+
|
|
209
|
+
The rest is keyed on its identity, so a new one is a new studio context and every surface
|
|
210
|
+
beneath renders again with the host. Declare these once, outside the component: the functions
|
|
211
|
+
the studio calls while it renders (`assets.activityIconUrl`, `assets.layerThumbnail`,
|
|
212
|
+
`behavior.resolvePeerName`, `i18n.languageMark`), the seams it hands on as given
|
|
213
|
+
(`behavior.billing`, `behavior.copilot`, `behavior.navigationBlocker`, `behavior.notify`,
|
|
214
|
+
`data.organizations`), `data.activities`, `plugins.install` and `plugins.engine`. Build
|
|
215
|
+
`data.store` and `data.queryClient` once per mount, as `useState(createUiStore)` does: one built
|
|
216
|
+
in the render body is a new state, or a new cache, at every render.
|
|
217
|
+
|
|
218
|
+
There is no tile transform to write: the map derives one from whichever client is drawing it,
|
|
219
|
+
and `transformRequest` overrides it. `@mountaya/elements`' README says what the derived one
|
|
220
|
+
holds and when to write your own, in "`transformRequest` is derived, not required".
|
|
221
|
+
|
|
222
|
+
The video wizard is the studio's too. "Export as video" in an itinerary's menu opens it, and
|
|
223
|
+
`MountayaStudio` mounts it, drawing its preview through the studio map's own client and with a
|
|
224
|
+
transform derived as the map's is, which also asks the Tile API for each itinerary's published
|
|
225
|
+
snapshot (`surface=published`): a video is a published artifact, so it never records the draft the
|
|
226
|
+
editor holds. `behavior.video` states what only you can say about it: `recoveryAddendum`, your
|
|
227
|
+
remedy for a failed call of its director, and `transformRequest`, which replaces the derived
|
|
228
|
+
transform whole, so one of yours carries the credential and asks for `surface=published` itself.
|
|
229
|
+
Its director shares `behavior.invalidateAiConfig` with the co-pilot. The wizard's layout carries
|
|
230
|
+
the class `mtya-video-wizard`, for a stylesheet that styles that wizard and no other.
|
|
231
|
+
|
|
232
|
+
Make it yours without leaving the call:
|
|
233
|
+
|
|
234
|
+
```tsx
|
|
235
|
+
import type { Mountaya } from "@mountaya/client";
|
|
236
|
+
import { MountayaStudio, MountayaStudioHost } from "@mountaya/studio-react";
|
|
237
|
+
|
|
238
|
+
// The client of "A whole studio" above: a publishable key, and a session token minted for the
|
|
239
|
+
// member the studio acts as. A studio refuses to mount under a key alone.
|
|
240
|
+
declare const mountaya: Mountaya;
|
|
241
|
+
|
|
242
|
+
export const BrandedStudio = () => (
|
|
243
|
+
<MountayaStudioHost
|
|
244
|
+
appearance={{
|
|
245
|
+
theme: { primaryColor: "grape" },
|
|
246
|
+
tokens: { "--mtya-accent": "#7048e8", "--mtya-panel-border": "#d0bfff" },
|
|
247
|
+
}}
|
|
248
|
+
client={mountaya}
|
|
249
|
+
>
|
|
250
|
+
<MountayaStudio />
|
|
251
|
+
</MountayaStudioHost>
|
|
252
|
+
);
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
Three layers, in the order they win: `tokens` are the `--mtya-*` custom properties every surface
|
|
256
|
+
here and in the elements beneath it is drawn with; `theme` is a Mantine override folded onto the
|
|
257
|
+
studio's own; and plain CSS on a `.mtya-*` class beats both, because our rules are unlayered and
|
|
258
|
+
so are yours, and yours come later in the cascade. Nothing here needs `!important`, and this package
|
|
259
|
+
ships none.
|
|
260
|
+
|
|
261
|
+
**The host's root is the studio's frame.** Every dialog the studio opens fills the element
|
|
262
|
+
`MountayaStudioHost` draws around what it wraps, not the window, so a studio embedded in one
|
|
263
|
+
region of a page dims that region and opens its full-screen surfaces (the waypoint details, the
|
|
264
|
+
video wizard) over it, laid out for its width rather than the window's. The element
|
|
265
|
+
takes the height its content gives it, so a frame states one through `appearance.className` or
|
|
266
|
+
`appearance.style` (`height: 100%` inside a box of a fixed height), and `MountayaStudio` inside
|
|
267
|
+
it takes `style={{ height: "100%" }}` in place of its own `100dvh`. Where the root is taller than
|
|
268
|
+
the window, as it is when the host wraps a whole page that scrolls, a dialog keeps to the part of
|
|
269
|
+
the root on screen.
|
|
270
|
+
|
|
271
|
+
## Who is reading
|
|
272
|
+
|
|
273
|
+
`data.viewer` says who reads the studio and what they may use of it. Mountaya answers what a person
|
|
274
|
+
may use in each scope (the features in `studio_entitlements`) on the memberships
|
|
275
|
+
`new MountayaAdmin(mountaya).users.getMyOrganizations` (from `@mountaya/client/admin`) returns
|
|
276
|
+
for the user the session token was minted for, and `usePlatformViewer` builds the viewer from
|
|
277
|
+
that answer with nothing decided on the way:
|
|
278
|
+
|
|
279
|
+
```tsx
|
|
280
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
281
|
+
import { useState } from "react";
|
|
282
|
+
|
|
283
|
+
import { Mountaya } from "@mountaya/client/browser";
|
|
284
|
+
import { createMemoryViewer } from "@mountaya/studio";
|
|
285
|
+
import { MountayaStudio, MountayaStudioHost, usePlatformViewer } from "@mountaya/studio-react";
|
|
286
|
+
|
|
287
|
+
const ORGANIZATION_ID = "org_…";
|
|
288
|
+
const USER_ID = "user_…";
|
|
289
|
+
|
|
290
|
+
// A token your server minted with postSession, its user_id set to USER_ID. "A whole studio" above
|
|
291
|
+
// keeps one fresh with useSessionToken.
|
|
292
|
+
declare const sessionToken: string;
|
|
293
|
+
|
|
294
|
+
const mountaya = new Mountaya({ credential: { publishableKey: "pk_…", sessionToken } });
|
|
295
|
+
|
|
296
|
+
export const LicensedStudio = () => {
|
|
297
|
+
const [queryClient] = useState(() => new QueryClient());
|
|
298
|
+
const [person] = useState(() => createMemoryViewer({}, { getUserId: () => USER_ID }));
|
|
299
|
+
const { error, viewer } = usePlatformViewer({
|
|
300
|
+
client: mountaya,
|
|
301
|
+
organizationId: ORGANIZATION_ID,
|
|
302
|
+
queryClient,
|
|
303
|
+
viewer: person,
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
return (
|
|
307
|
+
<>
|
|
308
|
+
{error === null ? null : (
|
|
309
|
+
<p role="alert">The studio cannot read what you may use: {error.message}</p>
|
|
310
|
+
)}
|
|
311
|
+
<MountayaStudioHost client={mountaya} data={{ queryClient, viewer }}>
|
|
312
|
+
<MountayaStudio />
|
|
313
|
+
</MountayaStudioHost>
|
|
314
|
+
</>
|
|
315
|
+
);
|
|
316
|
+
};
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
A key carrying the `studio-embedded` scope reads the one membership the session's user holds, so the
|
|
320
|
+
studio shows what your agreement covers: the overlays, the co-pilot and the video wizard where the
|
|
321
|
+
answer lists them, and none of them where it does not. The embed wizard is offered in Mountaya's
|
|
322
|
+
web application only: beneath a client carrying a publishable key, an Embedded Studio, the host
|
|
323
|
+
withholds `embed`, so no menu offers Embed, `studio.embed.open` refuses, and a mounted
|
|
324
|
+
`EmbedWizard` says embeds are configured in the Mountaya web app, because its live preview and
|
|
325
|
+
camera capture read over that application's own session. Your organization's safety rules
|
|
326
|
+
narrow that answer under a key, as they narrow what the key is served: `profile-insights` only
|
|
327
|
+
where `with_profile_analysis` is set, `map-pois` only where the overlay allowlist (`with_overlays`)
|
|
328
|
+
admits the points of interest, and `map-overlays` only where it admits another overlay. Where your
|
|
329
|
+
studio draws no overlays, check those rules, not your agreement.
|
|
330
|
+
|
|
331
|
+
Until the read lands, while the session is minted without `user_id`, and where it is refused, the
|
|
332
|
+
viewer holds nothing; the studio's surfaces follow it when the answer arrives, and when `organizationId` names
|
|
333
|
+
another scope. `viewer` answers the rest: who the person is (the user the session token was minted
|
|
334
|
+
for, whose memberships are read), their units and where a preference is kept. A membership states
|
|
335
|
+
no itinerary ceiling: the personal space's answer states one. The read runs on the cache you hand the host, or on the
|
|
336
|
+
`QueryClientProvider` above.
|
|
337
|
+
|
|
338
|
+
A viewer that holds nothing looks the same whatever the reason, so the hook says where the read
|
|
339
|
+
stands: `status` is `"pending"` until it lands, `"success"` once it has, and `"error"` when it
|
|
340
|
+
failed, with `error` holding what the client raised. A 402 says your organization does not hold
|
|
341
|
+
Embedded Studio, a 401 that the session token has expired or is unknown, and a 403 that the key does
|
|
342
|
+
not carry the `studio-embedded` scope, or that the page is not one of your organization's allowed
|
|
343
|
+
domains (Mountaya lists the sites under your agreement, so tell us its host, and an owner or
|
|
344
|
+
admin adds `localhost` with its port under **Organization → Security** in the Mountaya app while
|
|
345
|
+
you develop): each is a configuration to fix rather than an agreement that covers nothing, and
|
|
346
|
+
the co-pilot would otherwise tell your user that a feature is not held. The client sends a read
|
|
347
|
+
refused for the quota or by a failing gateway again itself, and the hook asks again, twice at most,
|
|
348
|
+
after a server failure the client leaves alone.
|
|
349
|
+
|
|
350
|
+
Keep `organizationId` equal to the `organization_id` the studio's URL names: the viewer answers
|
|
351
|
+
for the scope you state, and the studio's surfaces read the URL's. When what a person holds
|
|
352
|
+
changes, as when they accept an invitation, invalidate the read's entry, under
|
|
353
|
+
`mountayaKeys.operation(scope, "rest", "getMyOrganizations")`, and the viewer follows.
|
|
354
|
+
|
|
355
|
+
The personal space is answered by no operation of the public contract, and a publishable key never
|
|
356
|
+
reaches it, so with `organizationId: null` the viewer holds nothing unless you hand it an answer as
|
|
357
|
+
`personalSpace`: the value your own read holds, which the viewer follows from one render to the
|
|
358
|
+
next. An embed or a share link draws the overlays and the points of interest of the organization
|
|
359
|
+
that published it, whoever reads it: its viewer states that grant itself, with
|
|
360
|
+
`createStaticViewer` of `@mountaya/studio`.
|
|
361
|
+
|
|
362
|
+
## Who may edit
|
|
363
|
+
|
|
364
|
+
`data.organizations` says where the reader writes, and so who edits an itinerary. The editor offers
|
|
365
|
+
an itinerary's edits to a reader whose `writable.writableOrgIds` holds the organization that owns
|
|
366
|
+
it (they hold a write role there: an owner, an admin or a contributor), or to the author of a
|
|
367
|
+
personal one, in an organization whose agreement includes Map Studio. Those edits are the segment
|
|
368
|
+
and waypoint lists' controls, the waypoint details form, the edit a click on a route line opens,
|
|
369
|
+
the context menu's new waypoint, the publish act, the embed's visibility, and the actions menu's
|
|
370
|
+
Rename, Edit, Unpublish and Delete. A member whose role reads only gets the same editor read-only:
|
|
371
|
+
they inspect, export where their role allows and follow collaborators, and nothing that writes is
|
|
372
|
+
offered to them. The actions menu decides from the `organizationId` and the `createdById` it is
|
|
373
|
+
handed.
|
|
374
|
+
|
|
375
|
+
The roster is read at every render, so a host that reads the memberships again after a role
|
|
376
|
+
changes shows or hides the edits as the new roster lands. The verbs ask the same question before
|
|
377
|
+
they send anything and refuse anyone else with `forbidden`. A host that states no roster asks no
|
|
378
|
+
role, and the API refuses what it refuses.
|
|
379
|
+
|
|
380
|
+
Every write acts as the user the client's session token was minted for. Under a token minted
|
|
381
|
+
without `user_id` the studio is read-only, whatever `data.capabilities` grants: it holds neither `editor`
|
|
382
|
+
nor `authenticated` until a token naming a user replaces it, and a studio that states
|
|
383
|
+
`data.persistence` keeps its grants, since its writes go nowhere a member is asked for.
|
|
384
|
+
|
|
385
|
+
## A segment list
|
|
386
|
+
|
|
387
|
+
If you want the parts rather than the editor, every surface is published on its own:
|
|
388
|
+
|
|
389
|
+
```tsx
|
|
390
|
+
import { MountayaStudioProvider, SegmentList } from "@mountaya/studio-react";
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
The stylesheets are the ones [A whole studio](#a-whole-studio) imports, once, wherever the
|
|
394
|
+
surfaces mount.
|
|
395
|
+
|
|
396
|
+
The provider carries the bus, the capabilities and the navigation seam; every surface here
|
|
397
|
+
reads them through it. Nothing in this package fetches, and nothing here mutates a store: a
|
|
398
|
+
row dispatches a tool and the host decides what that means.
|
|
399
|
+
|
|
400
|
+
## The same list, your markup
|
|
401
|
+
|
|
402
|
+
The row above the table's second line: *our verbs, your design system*. Nothing here imports
|
|
403
|
+
`@mountaya/studio-react` itself, and no stylesheet is imported anywhere in the application:
|
|
404
|
+
|
|
405
|
+
<!-- example: examples/studio-headless/src/SegmentList.tsx -->
|
|
406
|
+
|
|
407
|
+
```tsx
|
|
408
|
+
import type { ItineraryViewSource } from "@mountaya/studio";
|
|
409
|
+
import { useSegmentList, useSegmentRow } from "@mountaya/studio-react/headless";
|
|
410
|
+
|
|
411
|
+
// Not one import from `@mountaya/studio-react` itself, and no stylesheet anywhere in this file.
|
|
412
|
+
// The verbs below (rename and delete) are the same ones Mountaya's own segment list dispatches;
|
|
413
|
+
// what is different is every line of the markup.
|
|
414
|
+
|
|
415
|
+
const Row = ({ itineraryId, name, segmentId }: SegmentRowProps) => {
|
|
416
|
+
// The type argument is the seam: `rowProps.ref` is the row element the map's hover scrolls
|
|
417
|
+
// into view, and naming `HTMLLIElement` here is what lets it hang on an `<li>`. It defaults to
|
|
418
|
+
// `HTMLDivElement`, which is what Mountaya's own row renders, and a headless consumer whose
|
|
419
|
+
// markup is not a div says so once.
|
|
420
|
+
const row = useSegmentRow<HTMLLIElement>({ itineraryId, segmentId, segmentName: name });
|
|
421
|
+
|
|
422
|
+
return (
|
|
423
|
+
<li {...row.rowProps}>
|
|
424
|
+
{row.rename.editing ? (
|
|
425
|
+
<input {...row.rename.inputProps} />
|
|
426
|
+
) : (
|
|
427
|
+
<button onDoubleClick={row.startRename} type="button">
|
|
428
|
+
{name}
|
|
429
|
+
</button>
|
|
430
|
+
)}
|
|
431
|
+
<button onClick={() => void row.actions.remove()} type="button">
|
|
432
|
+
Delete
|
|
433
|
+
</button>
|
|
434
|
+
{row.actions.lastFailure === null ? null : (
|
|
435
|
+
<span role="alert">Couldn't {row.actions.lastFailure.verb} this segment.</span>
|
|
436
|
+
)}
|
|
437
|
+
</li>
|
|
438
|
+
);
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
interface SegmentRowProps {
|
|
442
|
+
readonly itineraryId: string;
|
|
443
|
+
readonly name: string;
|
|
444
|
+
readonly segmentId: string;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export const SegmentList = ({
|
|
448
|
+
itineraryId,
|
|
449
|
+
segments,
|
|
450
|
+
}: {
|
|
451
|
+
readonly itineraryId: string;
|
|
452
|
+
readonly segments: ItineraryViewSource["segments"];
|
|
453
|
+
}) => {
|
|
454
|
+
const list = useSegmentList({ itineraryId, segments });
|
|
455
|
+
|
|
456
|
+
// `liveSegments` rather than `segments`: an edit in flight occupies a visual position without
|
|
457
|
+
// occupying a chain one, so rendering the committed chain would drop the row being drawn.
|
|
458
|
+
return (
|
|
459
|
+
<ul>
|
|
460
|
+
{list.liveSegments.map((segment) => (
|
|
461
|
+
<Row
|
|
462
|
+
itineraryId={itineraryId}
|
|
463
|
+
key={segment.id}
|
|
464
|
+
name={segment.name ?? "Untitled"}
|
|
465
|
+
segmentId={segment.id}
|
|
466
|
+
/>
|
|
467
|
+
))}
|
|
468
|
+
</ul>
|
|
469
|
+
);
|
|
470
|
+
};
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
That block is `examples/studio-headless/src/SegmentList.tsx`, byte for byte: `npm run dev
|
|
474
|
+
--workspace @mountaya/example-studio-headless` runs it. The example's `src/App.tsx` is the other
|
|
475
|
+
half and the honest one: a store, a bus with the studio's handlers registered on it, and the
|
|
476
|
+
context the bus dispatches with. `MountayaStudioHost` builds all three for you, and building
|
|
477
|
+
them yourself is what the headless entry costs.
|
|
478
|
+
|
|
479
|
+
`useSegmentRow<HTMLLIElement>` is the one type argument worth knowing about. `rowProps.ref` is
|
|
480
|
+
the element the map's hover scrolls into view, and it defaults to the `HTMLDivElement` Mountaya's
|
|
481
|
+
own row renders, and a consumer whose markup is a list item, an article or a table row names it
|
|
482
|
+
once and the ref fits.
|
|
483
|
+
|
|
484
|
+
## Dispatching a verb
|
|
485
|
+
|
|
486
|
+
A surface of your own changes the studio the way Mountaya's do: it dispatches a verb.
|
|
487
|
+
`useStudioDispatch`, from the headless entry, hands back the function that runs one and whether
|
|
488
|
+
a dispatch this caller started is still running:
|
|
489
|
+
|
|
490
|
+
```tsx
|
|
491
|
+
import { useStudioDispatch } from "@mountaya/studio-react/headless";
|
|
492
|
+
|
|
493
|
+
export const OpenButton = ({ itineraryId }: { readonly itineraryId: string }) => {
|
|
494
|
+
const { dispatch, pending } = useStudioDispatch();
|
|
495
|
+
|
|
496
|
+
const open = async () => {
|
|
497
|
+
const opened = await dispatch("studio.itinerary.openForEdit", { itineraryId });
|
|
498
|
+
if (!opened.ok) {
|
|
499
|
+
// `code` says which refusal this is. `error` is narration for a log, never for a reader.
|
|
500
|
+
console.warn(opened.code, opened.error);
|
|
501
|
+
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
// `opened.data` is the data the contract of `studio.itinerary.openForEdit` states, as its
|
|
506
|
+
// handler returned it: no cast, and no narrowing beyond `ok`. `opened` is false for an open
|
|
507
|
+
// a newer one overtook.
|
|
508
|
+
console.log(opened.summary, opened.data.opened);
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
return (
|
|
512
|
+
<button disabled={pending} onClick={() => void open()} type="button">
|
|
513
|
+
Open
|
|
514
|
+
</button>
|
|
515
|
+
);
|
|
516
|
+
};
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
The verb and its payload are checked against the studio's contracts, so a misspelled name or a
|
|
520
|
+
missing field does not compile. The answer is the `ToolResult` of that verb's data. Where its
|
|
521
|
+
contract states an `output`, `data` is typed by it after `ok` and a member of it is read
|
|
522
|
+
directly; a verb that answers no data reads `undefined`; and a refusal is the `ok: false` arm
|
|
523
|
+
under every verb. Nothing is parsed on the way back, so what the verb's handler returned is what
|
|
524
|
+
the surface holds.
|
|
525
|
+
|
|
526
|
+
The hook is bound to the studio's own contracts, so it reads this way whether or not your
|
|
527
|
+
program merged `ToolDispatchRegistry` and `ToolOutputRegistry`, which `@mountaya/studio`'s
|
|
528
|
+
README describes under "A typed answer for every verb". A name built at run time goes through
|
|
529
|
+
`useStudioDispatchUnsafe`, which takes any string and answers `data` as `unknown`.
|
|
530
|
+
|
|
531
|
+
A stand-in for `dispatch` in a suite of your own, a spy or a stub of the hook, is held to the
|
|
532
|
+
same answers, the rule `@mountaya/studio`'s README states for a double of any dispatch. One that
|
|
533
|
+
only refuses is a `StudioDispatchFn` as written, since a refusal is the answer of every verb, and
|
|
534
|
+
so are a function that forwards to a bus naming `StudioToolOutputs` and a spy typed by the
|
|
535
|
+
dispatch, `vi.fn<StudioDispatchFn>()`, resolved with a plain `ok` or a refusal. A function whose
|
|
536
|
+
own type answers one `ok` under every verb, an arrow function or a spy built over one, is
|
|
537
|
+
refused with TS2322 naming its answer and the dispatch's, because a verb that states data would
|
|
538
|
+
read an answer with none: assert it where it is handed over, `spy as StudioDispatchFn`. A suite
|
|
539
|
+
that asserts on what a verb answered mounts `StudioProvider` over `studioToolBus()` from
|
|
540
|
+
`@mountaya/studio/testing` and takes the hook as it is: that bus answers each verb's own data and
|
|
541
|
+
holds it to the verb's contract.
|
|
542
|
+
|
|
543
|
+
## The seams are the same ones
|
|
544
|
+
|
|
545
|
+
Glyphs resolve through `useMountayaUiIcons` of `@mountaya/elements-react`, the studio's copy
|
|
546
|
+
through its own bundle (`useStudioStrings`) and the map chrome's through `useMountayaStrings` of
|
|
547
|
+
`@mountaya/elements-react`, and colour through `--mtya-*` custom properties. A licensee holding a
|
|
548
|
+
Nucleo licence passes their own icon table and gets pixel parity with Mountaya's own studio;
|
|
549
|
+
everyone else gets the bundled Lucide set. No licensed path data ships here, and no i18n runtime
|
|
550
|
+
does either.
|
|
551
|
+
|
|
552
|
+
A control a host places over the studio's map keeps the studio's edge inset with
|
|
553
|
+
`var(--mtya-edge-inset)`, the token every control of the studio is placed by.
|
|
554
|
+
|
|
555
|
+
The glyph set this package reads is the OUTLINE one, where the map controls read a FILLED one.
|
|
556
|
+
That is not a preference: a control sits on a map and has to read as a solid shape over
|
|
557
|
+
terrain, and a menu item sits beside text and has to weigh what the words weigh. Passing a
|
|
558
|
+
filled family to `uiIcons` draws Mountaya's menus in blobs.
|
|
559
|
+
|
|
560
|
+
### Words: the provider for the studio, a prop for one surface
|
|
561
|
+
|
|
562
|
+
`MountayaStudioHost` (or `StudioProvider`) takes `i18n.studioStrings` for the whole editor and
|
|
563
|
+
`i18n.strings` for the map chrome, each merged onto the language it was given. That is the seam
|
|
564
|
+
for an application that mounts the studio:
|
|
565
|
+
|
|
566
|
+
```tsx
|
|
567
|
+
import type { Mountaya } from "@mountaya/client";
|
|
568
|
+
import { MountayaStudio, MountayaStudioHost } from "@mountaya/studio-react";
|
|
569
|
+
|
|
570
|
+
// The client of "A whole studio" above: a publishable key, and a session token minted for the
|
|
571
|
+
// member the studio acts as. A studio refuses to mount under a key alone.
|
|
572
|
+
declare const mountaya: Mountaya;
|
|
573
|
+
|
|
574
|
+
export const RenamedStudio = () => (
|
|
575
|
+
<MountayaStudioHost
|
|
576
|
+
client={mountaya}
|
|
577
|
+
i18n={{
|
|
578
|
+
strings: { controls: { zoomIn: "Closer" } },
|
|
579
|
+
studioStrings: { actions: { cancel: "Close" } },
|
|
580
|
+
}}
|
|
581
|
+
>
|
|
582
|
+
<MountayaStudio />
|
|
583
|
+
</MountayaStudioHost>
|
|
584
|
+
);
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
A surface you mount YOURSELF takes one of its own, scoped to the sections it says:
|
|
588
|
+
|
|
589
|
+
<!-- typecheck:skip an opening tag with no children, which cannot parse and cannot be closed here -->
|
|
590
|
+
|
|
591
|
+
```tsx
|
|
592
|
+
<EmbedWizard strings={{ embed: { title: "Put this map on your site" } }}>
|
|
593
|
+
```
|
|
594
|
+
|
|
595
|
+
It folds onto whatever the provider resolved (an override naming one key leaves the rest of the
|
|
596
|
+
section alone), and it reaches the steps, rows and pickers that surface draws. Sections it never
|
|
597
|
+
says are a type error rather than a key that compiles and changes nothing.
|
|
598
|
+
|
|
599
|
+
Which surfaces take it is not a list to memorise: a surface this package places is driven by the
|
|
600
|
+
provider above it, and a surface nothing here mounts takes the prop. `apiShape.test.tsx` derives
|
|
601
|
+
both halves, so a surface that ships without one fails on the day it ships.
|
|
602
|
+
|
|
603
|
+
## Adding to it: plugins
|
|
604
|
+
|
|
605
|
+
The seams above are how you REPLACE what the studio does. `plugins` is how you ADD to it, at the
|
|
606
|
+
places the studio opens on purpose: the itinerary, segment, waypoint and zone menus, the map's
|
|
607
|
+
control rail and its right-click footer, and the elevation panel's header and plot.
|
|
608
|
+
|
|
609
|
+
```tsx
|
|
610
|
+
import { Mountaya } from "@mountaya/client";
|
|
611
|
+
import {
|
|
612
|
+
MountayaStudio,
|
|
613
|
+
MountayaStudioHost,
|
|
614
|
+
type StudioReactPlugin,
|
|
615
|
+
} from "@mountaya/studio-react";
|
|
616
|
+
|
|
617
|
+
declare const sendSegment: (segmentId: string) => Promise<void>;
|
|
618
|
+
|
|
619
|
+
// The client of "A whole studio" above: a publishable key, and a session token minted for the
|
|
620
|
+
// member the studio acts as. A studio refuses to mount under a key alone.
|
|
621
|
+
declare const mountaya: Mountaya;
|
|
622
|
+
|
|
623
|
+
// Module scope, not inline. The registry replaces a stored declaration when its reference
|
|
624
|
+
// changes, which is what makes re-localizing labels work, so an array rebuilt on every render
|
|
625
|
+
// of your host re-renders the menus beneath it.
|
|
626
|
+
const strava: StudioReactPlugin = {
|
|
627
|
+
contributions: [
|
|
628
|
+
{
|
|
629
|
+
gate: { capabilities: ["editor"] },
|
|
630
|
+
id: "send",
|
|
631
|
+
label: "Send to Strava",
|
|
632
|
+
run: (_ctx, target) => void sendSegment(target.segmentId),
|
|
633
|
+
slot: "segment.menu",
|
|
634
|
+
},
|
|
635
|
+
],
|
|
636
|
+
id: "acme.strava",
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
export const Studio = () => (
|
|
640
|
+
<MountayaStudioHost client={mountaya} plugins={{ install: [strava] }}>
|
|
641
|
+
<MountayaStudio />
|
|
642
|
+
</MountayaStudioHost>
|
|
643
|
+
);
|
|
644
|
+
```
|
|
645
|
+
|
|
646
|
+
**A contribution is data.** A `label`, an optional `icon` and a `run` are enough to get a menu
|
|
647
|
+
item that reads like the ones beside it (the right type scale, the right glyph slot, the right
|
|
648
|
+
destructive tone, the right disabled treatment) without importing anything from this package's
|
|
649
|
+
design system. A contribution that needs more than a row carries a `view` instead: a React node,
|
|
650
|
+
rendered in place, which is what a control with its own popover or a band over the elevation
|
|
651
|
+
curve is.
|
|
652
|
+
|
|
653
|
+
**Gating is two states, and they are the two this package already uses.** A `gate` that refuses
|
|
654
|
+
on a capability, an entitlement or your own predicate HIDES the contribution, the same stance
|
|
655
|
+
the video-export item takes for a viewer whose agreement does not include it. An agent run in
|
|
656
|
+
progress DIMS it and names why, because it is coming back in a moment.
|
|
657
|
+
|
|
658
|
+
**One broken plugin cannot take a menu with it.** Every contribution renders inside its own error
|
|
659
|
+
boundary whose fallback is nothing at all, and all three failure paths arrive at your `onError` as
|
|
660
|
+
one object discriminated on `kind`:
|
|
661
|
+
|
|
662
|
+
```ts
|
|
663
|
+
import { isStudioPluginError } from "@mountaya/studio/plugins";
|
|
664
|
+
import type { StudioPluginFailure } from "@mountaya/studio-react/headless";
|
|
665
|
+
|
|
666
|
+
declare const report: (subject: string, detail: unknown) => void;
|
|
667
|
+
|
|
668
|
+
export const onError = (failure: StudioPluginFailure) => {
|
|
669
|
+
if (failure.kind === "install") {
|
|
670
|
+
// The registry refused the declaration, so there is no contribution to name: producing one
|
|
671
|
+
// is exactly what the refusal prevented. The defects say why it was refused.
|
|
672
|
+
const detail = isStudioPluginError(failure.error) ? failure.error.defects : failure.error;
|
|
673
|
+
|
|
674
|
+
report(failure.plugin.id, detail);
|
|
675
|
+
|
|
676
|
+
return;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
// `run` threw, or `view` threw during render. A `view` failure also carries React's own
|
|
680
|
+
// `info`, whose component stack says where inside the plugin's tree it broke.
|
|
681
|
+
report(failure.contribution.qualifiedId, failure.error);
|
|
682
|
+
};
|
|
683
|
+
```
|
|
684
|
+
|
|
685
|
+
A boundary clears itself when you swap the declaration, so a fixed plugin comes back without
|
|
686
|
+
remounting the studio.
|
|
687
|
+
|
|
688
|
+
**`install` and the engine compose.** Pass an `engine` of your own (a settings screen that
|
|
689
|
+
enables a plugin, a marketplace that loads one on demand), and `install` still reconciles into it:
|
|
690
|
+
a reconciliation takes back only what a declared list installed, never what you installed through
|
|
691
|
+
the engine yourself. The host attaches its tool bus to whichever engine it ends up with, for
|
|
692
|
+
as long as it is mounted, so a plugin's `tools` are dispatchable by the co-pilot either way.
|
|
693
|
+
|
|
694
|
+
The contract and the registry live in `@mountaya/studio/plugins`, framework-free. The slots are a
|
|
695
|
+
closed vocabulary of `@mountaya/studio`, validated with Zod because a manifest can arrive off a
|
|
696
|
+
wire; the studio is TypeScript-only, and no other language SDK implements it. `useStudioPlugins()` hands
|
|
697
|
+
back the live registry for a host that installs and uninstalls at runtime, and `usePluginSlot()`
|
|
698
|
+
is what a surface of your own reads to draw a slot itself.
|
|
699
|
+
|
|
700
|
+
## Configuring the host
|
|
701
|
+
|
|
702
|
+
`MountayaStudioHost` is the one component a consumer mounts, so everything there is to decide
|
|
703
|
+
about a studio is a prop on it. Every optional prop has a stated absence (omit it and the host
|
|
704
|
+
either inherits what is above it or the surface it feeds renders its own off state), so a first
|
|
705
|
+
mount is `client` and `children` and nothing else.
|
|
706
|
+
|
|
707
|
+
<!-- props:start -->
|
|
708
|
+
|
|
709
|
+
<!-- Generated by scripts/generate-readme-props.mjs. Run `npm run generate:readme`. -->
|
|
710
|
+
|
|
711
|
+
#### `MountayaStudioHost`
|
|
712
|
+
|
|
713
|
+
| Prop | Type | |
|
|
714
|
+
| --- | --- | --- |
|
|
715
|
+
| `assets` | `StudioAssetsConfig` | Where the pictures come from: the glyph tables, the relief raster, the activity and layer thumbnails and the routing guide's pictures. |
|
|
716
|
+
| `appearance` | `StudioHostAppearanceConfig` | What it looks like: the scheme, the density, the tokens, the theme, the canvas paint. |
|
|
717
|
+
| `behavior` | `StudioHostBehaviorConfig` | What it does, and what you do instead: `handlers`, `seams`, `confirm`, `notify`, the routers. |
|
|
718
|
+
| `children` **(required)** | `ReactNode` | What the studio mounts inside every provider it wires: a `MountayaStudio`, a `MountayaStudioViewer`, or surfaces you have arranged yourself. |
|
|
719
|
+
| `client` | `Mountaya` | The client every read and write beneath this host runs on. |
|
|
720
|
+
| `data` | `StudioHostDataConfig` | What the studio is showing, and to whom: the catalog, the grants, the store, the viewer. |
|
|
721
|
+
| `i18n` | `StudioI18nConfig` | Which words, and which regional conventions: the language, the locale, both bundles. |
|
|
722
|
+
| `itineraryId` | `string \| null` | The itinerary the studio opens, `null` to clear it, omitted to leave activation to a surface below. |
|
|
723
|
+
| `plugins` | `StudioPluginsConfig` | What a third party ADDS to it: the plugins to install, where a failure goes, the engine. |
|
|
724
|
+
|
|
725
|
+
##### `assets`
|
|
726
|
+
|
|
727
|
+
| Prop | Type | |
|
|
728
|
+
| --- | --- | --- |
|
|
729
|
+
| `activityIconUrl` | `(slug: string) => string \| undefined` | Where an activity's silhouette can be fetched as an image, for the surfaces that composite rather than render: the recorder's focus marker and the elevation profile's follow-marker. |
|
|
730
|
+
| `controlIcons` | `MountayaElementsProviderProps["controlIcons"]` | Glyphs for the map controls. |
|
|
731
|
+
| `demUrl` | `string` | The elevation raster every map in the studio bakes its always-on relief from, as a TileJSON URL. |
|
|
732
|
+
| `importRoutingGuidePictures` | `ImportRoutingGuidePictures` | The pictures the import routing guide argues with, each as a URL you serve. |
|
|
733
|
+
| `layerThumbnail` | `(kind: StudioLayerKind, slug: string) => string \| undefined` | The picture of a map layer, for the card grids that offer one. |
|
|
734
|
+
| `markerIcons` | `MountayaElementsProviderProps["markerIcons"]` | Glyphs for the places an element draws, the waypoint marks on an elevation curve. |
|
|
735
|
+
| `uiIcons` | `MountayaElementsProviderProps["uiIcons"]` | Glyphs for the studio's own surfaces, as distinct from the map controls. |
|
|
736
|
+
|
|
737
|
+
##### `appearance`
|
|
738
|
+
|
|
739
|
+
| Prop | Type | |
|
|
740
|
+
| --- | --- | --- |
|
|
741
|
+
| `className` | `string` | A class of your own on the surface's root element, merged with `.mtya-studio`, which the stylesheet's container queries measure and its token block is declared on. |
|
|
742
|
+
| `colorScheme` | `"dark" \| "light"` | Which colour scheme to paint in. |
|
|
743
|
+
| `density` | `StudioDensity` | How tightly the studio draws its panels, forms and conversation. |
|
|
744
|
+
| `header` | `StudioHeaderOverride` | What `<StudioHeader />` draws in place of the Mountaya lockup: a node of your own, or a `{ icon, title, baseline }` rendered in the studio's own treatment. |
|
|
745
|
+
| `mantine` | `"inherit" \| "provide"` | Whether this host mounts a `MantineProvider` or inherits the one above it. |
|
|
746
|
+
| `paint` | `MapPaintOverrides` | Overrides for what the MAP draws: the itinerary stroke, its casing, the layer ranks, the palette a new segment is assigned from. |
|
|
747
|
+
| `style` | `ElementStyle` | Inline style on the surface's root, merged over the layout it needs for itself and over the tokens, so `style={{ "--mtya-accent": "#7048e8" }}` overrides the one property it names. |
|
|
748
|
+
| `theme` | `MantineThemeOverride` | The Mantine theme this host merges over the studio's published base: the base first, then the density, then this. |
|
|
749
|
+
| `tokens` | `StudioTokens` | Overrides for the `--mtya-*` properties the studio and its elements are drawn with. |
|
|
750
|
+
|
|
751
|
+
##### `behavior`
|
|
752
|
+
|
|
753
|
+
| Prop | Type | |
|
|
754
|
+
| --- | --- | --- |
|
|
755
|
+
| `appOrigin` | `string \| null` | The origin every link that has to work outside this tab is built from: the embed snippet a publisher pastes into their own page, and the share link they send. |
|
|
756
|
+
| `billing` | `StudioBillingGateSeam` | The seam a verb outside the viewer's agreement hands its subject to, so the host attaches its own action. |
|
|
757
|
+
| `confirm` | `StudioToolContext["confirm"]` | The gate the bus awaits before a destructive verb runs. |
|
|
758
|
+
| `copilot` | `StudioCopilotSeam` | The host's binding of the co-pilot: whether it may run for an organization, which model line to name, and what to show in place of the conversation when the host withholds it. |
|
|
759
|
+
| `handlers` | `StudioHandlers<StudioToolContext>` | Handlers to add or replace, spread over the published defaults: a key that names a published verb replaces its handler and leaves the rest of the studio as shipped. |
|
|
760
|
+
| `invalidateAiConfig` | `(organizationId: string) => void` | Marks an organization's AI configuration stale after a co-pilot run is refused for a fault that turns on it: the configuration is missing, or the reader has no access to it. |
|
|
761
|
+
| `invalidateMemberships` | `() => void` | Marks the reader's memberships stale after a co-pilot run is refused or ended for want of access: its start or its stream is answered 402, 403 or 404, a message finds its run gone, or the run ends because its member may not run it there any more (no write role in its organization, or an agreement that does not include Map Studio). |
|
|
762
|
+
| `navigation` | `NavigationSeam \| null` | The router the studio sends a reader through when a surface links somewhere. |
|
|
763
|
+
| `navigationBlocker` | `StudioNavigationBlocker` | The gate that holds a departure while there is unsaved work. |
|
|
764
|
+
| `notify` | `StudioNotify` | How the studio tells a reader something happened. |
|
|
765
|
+
| `onDispatch` | `ToolDispatchObserver` | A telemetry observer, called once per dispatch with its outcome and latency, for every verb a reader runs and every verb the co-pilot runs. |
|
|
766
|
+
| `onSignInRefused` | `() => void` | Asks the host whether the reader is still signed in after the API refused the browser's own session under a co-pilot run: its start, its stream or a message into it is answered 401, as it is once the reader signs out or their session is revoked. |
|
|
767
|
+
| `recognizers` | `readonly ThrownRecognizer[]` | Recognizers for a host's own thrown errors, asked before the status table and before the published ones, which stay. |
|
|
768
|
+
| `recoveryAddendum` | `RecoveryAddendum` | The host's own remedy for a co-pilot call that failed, which the model reads after the playbook's recovery for that tool and code: where in this product a reader finds what the failure says is missing. |
|
|
769
|
+
| `resolvePeerName` | `StudioPeerNameSeam` | How a collaborator's user id becomes a name, for every surface that names a peer. |
|
|
770
|
+
| `routesServerTools` | `boolean` | Whether a co-pilot run names the server tools its model sees, from the tools the conversation's surfaces route to. |
|
|
771
|
+
| `seams` | `StudioSeamOverrides` | The capabilities the studio takes from the world around it, wholly or in part. |
|
|
772
|
+
| `threadsUrl` | `AgentThreadsUrlSeam` | How the open co-pilot thread is mirrored into the address bar, and read back out of it. |
|
|
773
|
+
| `url` | `StudioUrlSeam` | The studio's own slice of the address bar, which a content-open verb patches so a reload reopens what was open. |
|
|
774
|
+
| `video` | `StudioVideoConfig` | What the export-as-video wizard `MountayaStudio` opens is bound to: its director's remedy for a failed call, and the transform its preview map's tile requests ride. |
|
|
775
|
+
|
|
776
|
+
##### `data`
|
|
777
|
+
|
|
778
|
+
| Prop | Type | |
|
|
779
|
+
| --- | --- | --- |
|
|
780
|
+
| `activities` | `readonly CategoryActivities[] \| null` | The activity catalog every surface that names an activity reads. |
|
|
781
|
+
| `capabilities` | `Iterable<ToolCapability>` | What this studio grants. |
|
|
782
|
+
| `organizations` | `StudioOrganizations` | The organizations this reader may write to, for every scope picker in the studio. |
|
|
783
|
+
| `persistence` | `StudioPersistence` | Where a committed write GOES. |
|
|
784
|
+
| `queryClient` | `QueryClient` | The query client every read beneath this host runs on. |
|
|
785
|
+
| `store` | `UiStoreApi` | The studio's state, from `createUiStore()`. |
|
|
786
|
+
| `surface` | `"embedding" \| "studio-embedded"` | The product this host renders: `"studio-embedded"`, the Embedded Studio, where none is stated, or `"embedding"`, Map Publishing's hosted embed served from Mountaya's own origin. |
|
|
787
|
+
| `viewer` | `StudioViewer` | The person reading this studio: their id, their entitlements, and the units they read in. |
|
|
788
|
+
|
|
789
|
+
##### `i18n`
|
|
790
|
+
|
|
791
|
+
| Prop | Type | |
|
|
792
|
+
| --- | --- | --- |
|
|
793
|
+
| `language` | `MapLanguage` | The language a surface reads in. |
|
|
794
|
+
| `languageMark` | `(language: MapLanguage) => ReactNode` | The mark every language picker in the studio draws beside a language name. |
|
|
795
|
+
| `languages` | `readonly MapLanguage[]` | Which languages the studio's own pickers offer. |
|
|
796
|
+
| `locale` | `string` | The locale a NUMBER, a date and a relative moment are written in. |
|
|
797
|
+
| `strings` | `ElementsStringsOverrides` | Copy overrides for the ELEMENTS' own bundle, merged onto the selected language. |
|
|
798
|
+
| `studioStrings` | `StudioStringsOverrides` | The studio's own sentences, merged onto the selected language, key by key: an override that names one sentence leaves the rest of its section as shipped. |
|
|
799
|
+
| `studioTranslations` | `Translations<StudioStrings>` | The STUDIO's words in each language beyond English the page imported, keyed by language: `{ fr: frStudioStrings }` from `@mountaya/studio/strings/fr`, beside the elements' French in `translations`. |
|
|
800
|
+
| `translations` | `Translations<ElementsStrings>` | The elements' words in each language beyond English that the page imported, keyed by language: `{ fr: frElementsStrings }` from `@mountaya/elements/i18n/fr`. |
|
|
801
|
+
|
|
802
|
+
##### `plugins`
|
|
803
|
+
|
|
804
|
+
| Prop | Type | |
|
|
805
|
+
| --- | --- | --- |
|
|
806
|
+
| `engine` | `StudioPluginEngine<ReactNode>` | A plugin engine of your own, instead of the one the host builds. |
|
|
807
|
+
| `install` | `readonly StudioReactPlugin[]` | The plugins this studio installs, reconciled by id whenever the array changes. |
|
|
808
|
+
| `onError` | `StudioPluginErrorReporter` | Where a failed plugin is reported, as ONE object discriminated on `kind`: a `run` that threw, a `view` that threw during render, or an `install` the registry refused. |
|
|
809
|
+
|
|
810
|
+
#### `MountayaStudio`
|
|
811
|
+
|
|
812
|
+
| Prop | Type | |
|
|
813
|
+
| --- | --- | --- |
|
|
814
|
+
| `className` | `string` | A class of your own on the editor's root element. |
|
|
815
|
+
| `style` | `ElementStyle` | Inline style on the editor's root element, merged OVER the layout this surface needs. |
|
|
816
|
+
| `mapClient` | `MountayaMapOptions["client"]` | The client the map draws through. |
|
|
817
|
+
| `transformRequest` | `TileRequestTransform` | Overrides the transform that stamps a credential onto each tile request. |
|
|
818
|
+
| `demTilesUrl` | `string` | The terrain tiles the base map bakes its relief from, as a TileJSON or XYZ template. |
|
|
819
|
+
| `config` | `StudioConfig` | Which controls the studio offers, and which terrains and overlays it may show. |
|
|
820
|
+
| `preserveDrawingBuffer` | `boolean` | Whether the map's WebGL context preserves its drawing buffer. |
|
|
821
|
+
| `constraints` | `StudioConstraintResolver` | The camera's limits: a zoom floor and ceiling, and a boundary it may not leave. |
|
|
822
|
+
| `url` | `StudioUrlSeam` | The slice of the host's URL the studio mirrors its map state into, and restores it from on mount. |
|
|
823
|
+
| `collabEngine` | `CollabEngine \| null` | The live collaboration session for the open itinerary. |
|
|
824
|
+
| `zoneCollabEngine` | `CollabEngine \| null` | The live collaboration session for the open zone. |
|
|
825
|
+
| `googleMapsApiKey` | `string` | The Google Maps key the Street View surfaces probe coverage and open a panorama with. |
|
|
826
|
+
| `streetViewHandle` | `ReactNode` | The draggable handle a reader drops onto the map to open Street View. |
|
|
827
|
+
| `elevationPanel` | `(collapsed: boolean) => ReactNode` | The elevation panel, drawn inside the studio's own docked sheet. |
|
|
828
|
+
| `modals` | `ReactNode` | The host's own portalled surfaces, mounted inside the studio's element context so they read the same glyphs, copy and map. |
|
|
829
|
+
|
|
830
|
+
<!-- props:end -->
|
|
831
|
+
|
|
832
|
+
## Troubleshooting
|
|
833
|
+
|
|
834
|
+
### The studio renders unstyled
|
|
835
|
+
|
|
836
|
+
The application imports no `@mountaya/studio-react/styles.css`, which draws the dialogs, inputs
|
|
837
|
+
and menus as well as the map's canvas, the panels, the rows and the controls. A date picker, a
|
|
838
|
+
file drop target or a code snippet unstyled in a studio that otherwise looks right is an
|
|
839
|
+
application importing `@mantine/core/styles.css` in place of this package's sheet, which carries
|
|
840
|
+
more than that one. [A whole studio](#a-whole-studio) has the import.
|
|
841
|
+
|
|
842
|
+
### `MountayaStudioHost` or a studio hook throws, naming what is missing above it
|
|
843
|
+
|
|
844
|
+
The host throws when it is mounted with no client: pass `client`, or mount a `MountayaProvider`
|
|
845
|
+
from `@mountaya/client-react` above it. A hook of this package that reads a seam throws a
|
|
846
|
+
`MountayaElementsError` naming the hook, the component that supplies the seam and, where the
|
|
847
|
+
seam is a prop, the prop. The component it names is the one to mount: `MountayaStudioHost` for
|
|
848
|
+
the assembled studio, a provider from `@mountaya/studio-react/headless` for an arrangement of
|
|
849
|
+
your own.
|
|
850
|
+
|
|
851
|
+
### `MountayaStudioHost` throws a `MountayaConfigurationError` naming a token minted for `api`
|
|
852
|
+
|
|
853
|
+
Your endpoint minted the studio's session token without `surface: "studio-embedded"`, so it was
|
|
854
|
+
minted for `api`, the surface of your own clients, which a studio does not run on. Add `surface`
|
|
855
|
+
beside `publishable_key` in the `POST /v1/sessions` call, for the editor and a read-only viewer
|
|
856
|
+
alike. A token whose surface cannot be read off it is one that is not the token `postSession`
|
|
857
|
+
answered: hand the client that token as it came.
|
|
858
|
+
|
|
859
|
+
### `MountayaStudioHost` throws a `MountayaConfigurationError` naming a publishable key given no session token
|
|
860
|
+
|
|
861
|
+
The client carries `{ publishableKey }` alone, and a studio runs on a session token minted for
|
|
862
|
+
`studio-embedded`, a read-only viewer included. Have your server mint one with `POST /v1/sessions`
|
|
863
|
+
and `{ publishable_key, surface: "studio-embedded" }`, with `user_id` naming the member an editor
|
|
864
|
+
acts as, and build the client over `useSessionToken`'s `session`, as
|
|
865
|
+
[A whole studio](#a-whole-studio) does. The same refusal names `MountayaStudio`'s or
|
|
866
|
+
`MountayaStudioViewer`'s `mapClient` when a map client of its own carries a key alone.
|
|
867
|
+
|
|
868
|
+
### `MountayaStudioHost` throws a `MountayaConfigurationError` naming the hosted embed
|
|
869
|
+
|
|
870
|
+
The host states `data.surface` as `"embedding"`, which is read-only, and `data.capabilities` grants
|
|
871
|
+
`editor` or `authenticated` beside it. Set `data.capabilities` to `["embedding", "share"]` or leave
|
|
872
|
+
it out, or leave `data.surface` out for an Embedded Studio that edits.
|
|
873
|
+
|
|
874
|
+
### The studio renders nothing, and the page shows no error
|
|
875
|
+
|
|
876
|
+
The client's session token is still on its way, and the host renders nothing beneath it until it
|
|
877
|
+
lands: your endpoint has not answered the first mint yet. Once a mint fails, the studio mounts,
|
|
878
|
+
and what it reads is refused with the mint's error as its `cause`, which `useSessionToken` also
|
|
879
|
+
reports as `error` while it keeps trying.
|
|
880
|
+
|
|
881
|
+
### The map draws, and search, routing or the elevation profile fail
|
|
882
|
+
|
|
883
|
+
Those read the Data API, which requires a session token beside the publishable key, and the
|
|
884
|
+
client held none when it sent them: the mint failed (the error's `cause` is the mint's own), or
|
|
885
|
+
the client was built over `getToken` rather than `session`, so it sent the key alone before the
|
|
886
|
+
first token. Build the client over `session`, as [A whole studio](#a-whole-studio) does.
|
|
887
|
+
|
|
888
|
+
### The studio opens the published itinerary and not the draft, or its read answers `404`
|
|
889
|
+
|
|
890
|
+
The itinerary was read under the publishable key alone, which the API answers with the last
|
|
891
|
+
published snapshot, whose segments and waypoints carry ids of their own that name nothing in the
|
|
892
|
+
draft, and with `404` for an itinerary never published. The client was built over `getToken`
|
|
893
|
+
rather than `session`, or the first mint failed. Build the client over `session`, as
|
|
894
|
+
[A whole studio](#a-whole-studio) does. Or the token was minted without `user_id`: such a token
|
|
895
|
+
reads as the key alone, so mint the editor's with `user_id` set to the member your backend signed
|
|
896
|
+
in.
|
|
897
|
+
|
|
898
|
+
### The map mounts and draws no tile, with nothing thrown
|
|
899
|
+
|
|
900
|
+
The tile worker's address was resolved by no bundler, which the development console names once.
|
|
901
|
+
Vite resolves it, as `examples/studio-vite` builds, and so do both of Next.js's bundlers, as
|
|
902
|
+
`examples/next-app` builds: each writes the worker into its output as an asset of its own. The
|
|
903
|
+
Troubleshooting section of `@mountaya/elements`' README has the fix for a build that does not.
|
|
904
|
+
|
|
905
|
+
### The co-pilot panel never opens
|
|
906
|
+
|
|
907
|
+
The host states no `behavior.copilot`: a studio with no co-pilot seam runs no co-pilot. State the
|
|
908
|
+
seam on `MountayaStudioHost`.
|
|
909
|
+
|
|
910
|
+
### "Export as video" opens two wizards, or a wizard whose preview stays black
|
|
911
|
+
|
|
912
|
+
A `VideoExportWizard` of your own is mounted beside `MountayaStudio`, which mounts one itself. The
|
|
913
|
+
one beside it reads the map's layer catalogue from no map, so its preview resolves no base map.
|
|
914
|
+
Remove yours, and state its `recoveryAddendum` and `transformRequest` on `behavior.video`.
|
|
915
|
+
|
|
916
|
+
Or the viewer is not granted the `copilot` entitlement, and the co-pilot seam states no
|
|
917
|
+
`withheldNotice` to show in the conversation's place. A viewer the co-pilot is withheld from has
|
|
918
|
+
no conversation to reach, so with no node from the host the panel has nothing to draw and stays
|
|
919
|
+
closed. The viewer a host that states none is given holds no entitlement. Build `data.viewer`
|
|
920
|
+
with `usePlatformViewer` ([Who is reading](#who-is-reading)), which holds `copilot` where Mountaya's
|
|
921
|
+
answer for the scope in view lists it. Or supply the node: answer a `withheldNotice` from
|
|
922
|
+
`behavior.copilot` for the viewers the co-pilot is withheld from.
|
|
923
|
+
|
|
924
|
+
### The co-pilot tells a member without edit access about an agreement
|
|
925
|
+
|
|
926
|
+
Mountaya withholds the `copilot` entitlement from a role that does not write in the organization,
|
|
927
|
+
even where the organization's agreement covers the co-pilot, and the panel shows the seam's
|
|
928
|
+
`withheldNotice` for every viewer without it. Answer `CopilotNoAccessCard` as the notice for that
|
|
929
|
+
reader: it says the co-pilot is for an owner, an admin or a contributor, where words about an
|
|
930
|
+
agreement would be false.
|
|
931
|
+
|
|
932
|
+
### The editor opens an itinerary read-only
|
|
933
|
+
|
|
934
|
+
The reader may not edit it. `data.organizations` states a `writable.writableOrgIds` that leaves
|
|
935
|
+
out the organization that owns the itinerary, because the reader's role there reads only; or the
|
|
936
|
+
itinerary is personal and somebody else's; or the organization's agreement does not include Map
|
|
937
|
+
Studio, which the roster's `writeRefusal` answers as `agreement`. After a role changes, read the
|
|
938
|
+
memberships again and hand the host the roster they produce ([Who may edit](#who-may-edit)). A
|
|
939
|
+
studio opened under a session token minted with no `user_id` is read-only throughout: mint the
|
|
940
|
+
token for the member signed in.
|
|
941
|
+
|
|
942
|
+
### A menu, a modal or a tooltip does not show
|
|
943
|
+
|
|
944
|
+
The surface is drawn in a node no document holds. `mountayaStudioTheme` points every portalled
|
|
945
|
+
surface at one node, by its class, and a tree drawn with the theme in a document that holds no
|
|
946
|
+
such node shows no menu, no modal and no tooltip: Mantine draws a surface whose target matches
|
|
947
|
+
nothing in a node it attaches nowhere. `MountayaStudioHost` mounts the node itself. An
|
|
948
|
+
arrangement of your own mounts `StudioPortalScope` inside its root, around its content. The
|
|
949
|
+
scope hands each surface its node as an element, so a studio drawn inside a shadow root keeps
|
|
950
|
+
its surfaces inside it, where the class is found by nobody.
|
|
951
|
+
|
|
952
|
+
### Cmd or Ctrl+S, Enter or Escape does nothing while an edit is armed
|
|
953
|
+
|
|
954
|
+
A key handler of the page prevents the key's default on the window or the document ahead of the
|
|
955
|
+
studio, often to keep the browser's save dialog off Cmd or Ctrl+S (Mantine's `useHotkeys`
|
|
956
|
+
included), and the studio leaves a key whose default a nearer surface prevented. Prevent the
|
|
957
|
+
default only where the studio is not mounted, or let the press through while it is. A second
|
|
958
|
+
editing keymap on the page is the same case: the first to hear the press prevents its default,
|
|
959
|
+
and the other leaves it, so the press acts on the studio whose keymap heard it first.
|
|
960
|
+
|
|
961
|
+
### A surface in a suite throws "useMountaya was called outside a `<MountayaProvider>`"
|
|
962
|
+
|
|
963
|
+
The surface reads through the transport, and the suite mounts it with no client above it. Mount
|
|
964
|
+
it inside `WithMountayaClient` from `@mountaya/studio-react/testing`, with an answer for each
|
|
965
|
+
request it reads keyed by its method and path (`"GET /v1/users/user-1/collections"`). A request
|
|
966
|
+
the table does not name is answered `404`, and none leaves the machine. An answer written
|
|
967
|
+
`{ status, body }` is answered under that status, so a suite reaches a surface's `401`, `403` and
|
|
968
|
+
`5xx` paths through the client's own errors.
|
|
969
|
+
|
|
970
|
+
### A build cannot resolve `terra-draw`, or the video export fails to load `mediabunny`
|
|
971
|
+
|
|
972
|
+
The installer runs with hoisting off (pnpm under `hoist=false`), so the editor's peers that this
|
|
973
|
+
package installs for `@mountaya/elements` and `@mountaya/elements-react` are not reachable from
|
|
974
|
+
them; npm's default layout, npm's linked layout and pnpm's default each place them where they
|
|
975
|
+
resolve. Add them to the application: `terra-draw`, `terra-draw-maplibre-gl-adapter`,
|
|
976
|
+
`@maplibre/maplibre-gl-directions`, `mediabunny` and `@googlemaps/js-api-loader`, at the ranges
|
|
977
|
+
this package's manifest states.
|
|
978
|
+
|
|
979
|
+
### A type-check rejects `import "@mountaya/studio-react/styles.css"` with `TS2882`
|
|
980
|
+
|
|
981
|
+
TypeScript checks a side-effect import, and has no declaration for a stylesheet. Vite and Next.js
|
|
982
|
+
declare one for the application; an application bundled by esbuild alone, or by another bundler
|
|
983
|
+
that ships no such declaration, states it in a `.d.ts` file of its own:
|
|
984
|
+
`declare module "*.css";`.
|
|
985
|
+
|
|
986
|
+
### `npm install` fails with `ERESOLVE`
|
|
987
|
+
|
|
988
|
+
A peer cannot be satisfied by a single version. Every `@mountaya/*` package is published
|
|
989
|
+
together at one version and each pins the others to exactly that version, so installing one at
|
|
990
|
+
another version fails: install every name on the install line at the same one. `maplibre-gl`,
|
|
991
|
+
`react` and `@tanstack/react-query` are ranges, and an application or another package asking
|
|
992
|
+
for a release outside one fails the same way.
|
|
993
|
+
|
|
994
|
+
## Exports
|
|
995
|
+
|
|
996
|
+
<!-- exports:start -->
|
|
997
|
+
|
|
998
|
+
<!-- Generated by scripts/generate-readme-exports.mjs. Run `npm run generate:readme`. -->
|
|
999
|
+
|
|
1000
|
+
#### `@mountaya/studio-react`
|
|
1001
|
+
|
|
1002
|
+
The root also publishes every export of `@mountaya/studio-react/headless` and `@mountaya/studio-react/map`, listed under their own headings.
|
|
1003
|
+
|
|
1004
|
+
| Declared under | Values | Types |
|
|
1005
|
+
| --- | --- | --- |
|
|
1006
|
+
| components | `ActivityIcon`, `AgentEntityIndicator`, `AllowlistField`, `AppModal`, `ConfirmModal`, `CopilotNoAccessCard`, `DescriptiveMenuItem`, `DialogSubject`, `DisabledActionsButton`, `DraftProvenanceBanner`, `DraftSegmentRow`, `EditorListSection`, `EditorSaveFooter`, `EmptyState`, `ErrorAlert`, `FormErrorAlert`, `FullscreenHeader`, `FullscreenModal`, `ItineraryActionsMenu`, `ItineraryForm`, `ItineraryHeaderIdentity`, `ItineraryHeaderMeta`, `ItineraryHeaderTitle`, `ItineraryProfilePanel`, `ItinerarySegmentList`, `ItinerarySubHeader`, `ItineraryWaypointList`, `LanguageSelect`, `ListSkeleton`, `LockedActionsButton`, `METADATA_SEPARATOR`, `ModalFooter`, `MountayaStudio`, `MountayaStudioHost`, `MountayaStudioViewer`, `OrganizationScopeIcon`, `OrganizationScopeItem`, `OrganizationScopeOptionRow`, `PeerEntityIndicator`, `PeerLockTooltip`, `PersistedSegmentRow`, `PresenceRoster`, `PrivacyControl`, `PublicationNotice`, `RadioOptionCard`, `ReadOnlySegmentList`, `RenameInput`, `RowMetadata`, `SegmentGroupModal`, `SegmentList`, `SegmentSeam`, `SegmentSelect`, `ShareViewModal`, `SidenavContentBody`, `SidenavContentHeader`, `SidenavFormActions`, `StagingCreateFooter`, `StudioControls`, `StudioHeader`, `StudioPortalScope`, `StudioSectionBoundary`, `StudioToggleRow`, `SuggestForm`, `UnitPickerField`, `UnpublishedPanel`, `WarningAlert`, `WaypointIconCircle`, `WaypointList`, `WaypointRow`, `ZoneActionsMenu`, `ZoneForm`, `ZoneSubHeader` | `ActivityIconProps`, `AddSegmentButtonProps`, `AgentEntityIndicatorProps`, `AllowlistFieldProps`, `AllowlistVariant`, `AppModalProps`, `ConfirmModalProps`, `DescriptiveMenuItemProps`, `DialogSubjectProps`, `DisabledActionsButtonProps`, `DraftProvenanceBannerProps`, `DraftProvenanceBannerStrings`, `DraftSegmentRowProps`, `EditorListSectionProps`, `EditorSaveFooterProps`, `EditorSaveFooterStrings`, `EmptyStateProps`, `EmptyStateSize`, `ErrorAlertProps`, `FormErrorAlertProps`, `FullscreenHeaderProps`, `FullscreenModalProps`, `ItineraryActionsMenuProps`, `ItineraryActionsMenuStrings`, `ItineraryFormProps`, `ItineraryFormStrings`, `ItineraryHeaderTitleProps`, `ItineraryHeaderTitleStrings`, `ItineraryProfilePanelProps`, `LanguageSelectProps`, `ListSkeletonProps`, `LockedActionsButtonProps`, `MessageRating`, `ModalFooterProps`, `MountayaStudioHostProps`, `MountayaStudioProps`, `MountayaStudioViewerProps`, `OrganizationScopeIconProps`, `OrganizationScopeItemProps`, `OrganizationScopeItemStrings`, `OrganizationScopeOptionRowProps`, `PeerEntityIndicatorProps`, `PeerLockTooltipProps`, `PersistedSegmentRowProps`, `PresenceRosterProps`, `PresenceRosterStrings`, `PrivacyControlProps`, `PublicationNoticeProps`, `RadioOptionCardProps`, `ReadOnlySegmentListProps`, `RenameInputProps`, `RowMetadataProps`, `SegmentListProps`, `SegmentListRow`, `SegmentOption`, `SegmentRowChainActions`, `SegmentRowChainOptions`, `SegmentRowGroupActions`, `SegmentRowGroupRail`, `SegmentRowProps`, `SegmentSeamGroup`, `SegmentSeamProps`, `SegmentSelectProps`, `ShareViewModalProps`, `ShareViewModalStrings`, `SidenavContentBodyProps`, `SidenavContentHeaderProps`, `SidenavFormActionsProps`, `StagingCreateFooterProps`, `StagingCreateFooterStrings`, `StudioControlsProps`, `StudioPortalScopeProps`, `StudioSectionBoundaryProps`, `StudioToggleRowProps`, `UnitPickerFieldProps`, `UnpublishedPanelProps`, `ViewerProfileOptions`, `WarningAlertProps`, `WaypointIconCircleProps`, `WaypointListProps`, `WaypointListRow`, `WaypointRowProps`, `ZoneActionsMenuProps`, `ZoneActionsMenuStrings` |
|
|
1007
|
+
| hooks | `scopeSubjectToSegment`, `useDiscardGuard`, `useItinerarySubject`, `useItineraryUsage`, `useLayerCatalogOptions`, `usePeerLockLabels`, `usePublishableScope`, `usePublishedItinerary`, `useStudioItinerary` | `AgreementLimits`, `CatalogOptionGroup`, `DiscardGuard`, `DiscardGuardCopy`, `DiscardGuardOptions`, `ItinerarySubject`, `ItineraryUsage`, `LayerCatalogOptions`, `PublishedItinerary` |
|
|
1008
|
+
| providers | `AgentThreadsProvider`, `ItineraryViewProvider`, `StudioHostRegistryProvider`, `useAgentThreads`, `useStudioHostRegistry` | `AgentThreadsProviderProps`, `AgentThreadsValue`, `ItineraryViewProviderPersistedProps`, `ItineraryViewProviderPreviewProps`, `StudioHostRegistry`, `StudioHostRegistryProviderProps` |
|
|
1009
|
+
| rules | `ACTIVITY_BADGE_BACKGROUND`, `ACTIVITY_GLYPH_COLOR`, `iconSizes`, `INPUT_LABEL_MARGIN_BOTTOM`, `menuActionIcons`, `mountayaStudioTheme`, `resolvePoiGlyph`, `STUDIO_NAVBAR_WIDTH`, `SWATCH_SECTION_WIDTH`, `SWATCH_SIZE`, `WAYPOINT_FALLBACK_ICON` | `MenuAction`, `StudioHostAppearanceConfig`, `StudioHostBehaviorConfig`, `StudioHostDataConfig`, `StudioPluginsConfig`, `StudioSize`, `StudioSpace`, `StudioTone`, `StudioVideoConfig` |
|
|
1010
|
+
| `@mountaya/elements-react` | none | `ElementStyle` |
|
|
1011
|
+
| `@mountaya/elements/profile` | none | `UnitFormatOptions` |
|
|
1012
|
+
| `@mountaya/studio/agent` | none | `AgentThreadsStore`, `AgentThreadsStoreApi` |
|
|
1013
|
+
| `@mountaya/studio` | none | `CatalogOption`, `EmbedZoomRange` |
|
|
1014
|
+
|
|
1015
|
+
#### `@mountaya/studio-react/copilot`
|
|
1016
|
+
|
|
1017
|
+
| Declared under | Values | Types |
|
|
1018
|
+
| --- | --- | --- |
|
|
1019
|
+
| components | `CopilotPanel` | none |
|
|
1020
|
+
| hooks | `useStudioCopilotInset` | none |
|
|
1021
|
+
|
|
1022
|
+
#### `@mountaya/studio-react/embed`
|
|
1023
|
+
|
|
1024
|
+
| Declared under | Values | Types |
|
|
1025
|
+
| --- | --- | --- |
|
|
1026
|
+
| components | `EmbedBaseMapPicker`, `EmbedFieldControl`, `EmbedThemePicker`, `EmbedTintPicker`, `EmbedToggleSwitch`, `EmbedWizard` | `BaseMapOption`, `EmbedBaseMapPickerProps`, `EmbedConfigPatch`, `EmbedFieldControlProps`, `EmbedThemePickerProps`, `EmbedTintPickerProps`, `EmbedToggleSwitchProps`, `EmbedWizardProps`, `EmbedWizardStrings`, `StudioEmbedKeysSeam`, `StudioEmbedOrganization`, `StudioEmbedOrganizationSeam` |
|
|
1027
|
+
|
|
1028
|
+
#### `@mountaya/studio-react/headless`
|
|
1029
|
+
|
|
1030
|
+
| Declared under | Values | Types |
|
|
1031
|
+
| --- | --- | --- |
|
|
1032
|
+
| hooks | `STREETVIEW_CORRIDOR_METERS`, `useActiveCollabResources`, `useActiveItineraryResource`, `useActiveZoneResource`, `useAgentDriving`, `useBeginSegmentEdit`, `useBeginWaypointEdit`, `useCollectionScope`, `useDeferredClick`, `useEditActions`, `useEscapeKey`, `useInlineRename`, `useLiveAwareSegments`, `useMapHoveredRow`, `usePeerLockHolderId`, `usePlatformViewer`, `usePluginSlot`, `useSegmentList`, `useSegmentRow`, `useSegmentRowActions`, `useShallowSelector`, `useStoreSlice`, `useStreetViewCorridor`, `useStudioApi`, `useStudioCache`, `useStudioDispatch`, `useStudioDispatchUnsafe`, `useStudioEntitlement`, `useStudioFailureAlert`, `useStudioObserve`, `useStudioPreferences`, `useStudioResourceKey`, `useStudioSignedIn`, `useStudioStore`, `useStudioUnits`, `useStudioUrl`, `useStudioUserId`, `useStudioViewer`, `useStudioViewerEntitlement`, `useStudioViewerItineraryLimit`, `useStudioViewerPreferences`, `useStudioViewerUnits`, `useStudioViewerUserId`, `useUiStore`, `useUiStoreApi`, `useUiStoreShallow`, `useWaypointList`, `useWaypointRow`, `useWaypointRowActions` | `BeginSegmentEdit`, `BeginWaypointEdit`, `DeferredClick`, `EditActionsModel`, `InlineRename`, `MapHoveredRow`, `PlatformViewerState`, `ReadableStore`, `SegmentDraftSource`, `SegmentListActions`, `SegmentListModel`, `SegmentRow`, `SegmentRowActions`, `SegmentRowFailure`, `SegmentRowPostureState`, `SegmentRowVerb`, `SegmentSeamModel`, `StreetViewCorridor`, `StudioDispatchFn`, `StudioDispatchOverrides`, `StudioDispatchUnsafeFn`, `StudioFailureReporter`, `StudioPluginItem`, `UseEditActionsOptions`, `UseInlineRenameOptions`, `UsePlatformViewerOptions`, `UseSegmentListOptions`, `UseSegmentRowActionsOptions`, `UseSegmentRowOptions`, `UseStudioDispatch`, `UseStudioDispatchUnsafe`, `UseWaypointListOptions`, `UseWaypointRowActionsOptions`, `UseWaypointRowOptions`, `WaypointListModel`, `WaypointRowActions`, `WaypointRowFailure`, `WaypointRowModel`, `WaypointRowVerb` |
|
|
1033
|
+
| providers | `MountayaStudioProvider`, `StudioBillingGateProvider`, `StudioCopilotProvider`, `StudioNavigationBlockerProvider`, `StudioNotifyProvider`, `StudioOrganizationsProvider`, `StudioPluginsProvider`, `StudioProvider`, `StudioStringsScope`, `useCapability`, `useCopilotAvailability`, `useCopilotModelLine`, `useCopilotSetupAction`, `useCopilotWithheldNotice`, `useStudioActivities`, `useStudioActivityIconUrl`, `useStudioAppOrigin`, `useStudioBillingGate`, `useStudioClock`, `useStudioContext`, `useStudioControlAnchors`, `useStudioDemUrl`, `useStudioDensity`, `useStudioFormatters`, `useStudioGeolocation`, `useStudioHeader`, `useStudioLanguageMark`, `useStudioLanguages`, `useStudioLayerThumbnail`, `useStudioLinks`, `useStudioMapSeams`, `useStudioNavigationBlock`, `useStudioNotify`, `useStudioOrganizations`, `useStudioPeerName`, `useStudioPlugins`, `useStudioScopedStrings`, `useStudioStorage`, `useStudioStrings`, `useStudioTokens`, `useStudioToolContext`, `useStudioWritableOrganizations` | `CopilotAvailability`, `MountayaStudioProviderProps`, `NavigationSeam`, `OrganizationScopeOption`, `ScopedStudioStrings`, `StudioBillingGate`, `StudioBillingGateProviderProps`, `StudioBillingGateSeam`, `StudioBillingSubject`, `StudioContextValue`, `StudioControlAnchors`, `StudioControlKind`, `StudioCopilotProviderProps`, `StudioCopilotSeam`, `StudioLayerKind`, `StudioNavigationBlockerProviderProps`, `StudioNotifyProviderProps`, `StudioOrganizations`, `StudioOrganizationsProviderProps`, `StudioPeerNameSeam`, `StudioPluginErrorReporter`, `StudioPluginFailure`, `StudioPluginsBinding`, `StudioPluginsProviderProps`, `StudioProviderDataConfig`, `StudioProviderProps`, `StudioReactPlugin`, `StudioReactPluginContribution`, `StudioReactPluginEntry`, `StudioReactPluginSubject`, `StudioSeamOverrides`, `StudioStringsScopeProps`, `StudioWritableOrganizations`, `WritableOrganizationOption` |
|
|
1034
|
+
| rules | `createStudioCache`, `isStudioHeaderBrand` | `ImportRoutingGuidePictures`, `StudioAppearanceConfig`, `StudioAssetsConfig`, `StudioBehaviorConfig`, `StudioDataConfig`, `StudioDensity`, `StudioHeaderBrand`, `StudioHeaderOverride`, `StudioI18nConfig`, `StudioTokenName`, `StudioTokens` |
|
|
1035
|
+
|
|
1036
|
+
#### `@mountaya/studio-react/import`
|
|
1037
|
+
|
|
1038
|
+
| Declared under | Values | Types |
|
|
1039
|
+
| --- | --- | --- |
|
|
1040
|
+
| components | `DraftEntityList`, `ImportItineraryContent`, `ImportPreviewLegend`, `ImportRoutingGuideLink` | `DraftEntityListProps`, `DraftEntityListStrings` |
|
|
1041
|
+
| providers | `ImportRoutingGuideProvider`, `useImportRoutingGuide` | `ImportRoutingGuideControls`, `ImportRoutingGuideProviderProps` |
|
|
1042
|
+
| rules | none | `ImportRoutingGuidePictures` |
|
|
1043
|
+
|
|
1044
|
+
#### `@mountaya/studio-react/map`
|
|
1045
|
+
|
|
1046
|
+
| Declared under | Values | Types |
|
|
1047
|
+
| --- | --- | --- |
|
|
1048
|
+
| hooks | `useStudioConstraints`, `useStudioContextMenu`, `useStudioEnrichment`, `useStudioItinerarySelection`, `useStudioLayersScope`, `useStudioMapBindings`, `useStudioMapSync`, `useStudioOverlay`, `useStudioOverlayWithdrawal`, `useStudioPeerDrafts`, `useStudioPoiLayers`, `useStudioPreviewSync`, `useStudioSegmentEditing`, `useStudioSegmentViaPrompt`, `useStudioSplitPicking`, `useStudioSuggestionPicking`, `useStudioTimestamp`, `useStudioUrlState`, `useStudioWaypointEditing`, `useStudioZoneEditing`, `useStudioZoneOriginPicking`, `useStudioZoneSelection` | `PeerDraftSink`, `StudioMapContext`, `StudioMapSeams`, `UseStudioItinerarySelectionOptions`, `UseStudioMapBindingsOptions`, `UseStudioSplitPickingOptions`, `UseStudioZoneSelectionOptions` |
|
|
1049
|
+
| `@mountaya/elements/collab` | `LIVE_SEGMENT_THROTTLE_MS` | none |
|
|
1050
|
+
|
|
1051
|
+
#### `@mountaya/studio-react/testing`
|
|
1052
|
+
|
|
1053
|
+
| Declared under | Values | Types |
|
|
1054
|
+
| --- | --- | --- |
|
|
1055
|
+
| testing | `fakeStudioHostRegistry`, `itineraryFixture`, `makeCollection`, `makeItinerary`, `makeItineraryFixture`, `makeLineSegment`, `makePoiWaypoint`, `unsettledViewer`, `viewerWith`, `WithMountayaClient`, `WithStudioHostRegistry`, `WithViewer` | `MountayaClientAnswers`, `ViewerFixture`, `WithMountayaClientProps`, `WithStudioHostRegistryProps`, `WithViewerProps` |
|
|
1056
|
+
|
|
1057
|
+
#### `@mountaya/studio-react/video`
|
|
1058
|
+
|
|
1059
|
+
| Declared under | Values | Types |
|
|
1060
|
+
| --- | --- | --- |
|
|
1061
|
+
| components | `VideoExportWizard` | `VideoExportWizardProps`, `VideoExportWizardStrings` |
|
|
1062
|
+
|
|
1063
|
+
<!-- exports:end -->
|
|
1064
|
+
|
|
1065
|
+
## Contributing
|
|
1066
|
+
|
|
1067
|
+
Published from
|
|
1068
|
+
[`packages/studio-react`](https://github.com/mountaya/sdk-typescript/tree/main/packages/studio-react)
|
|
1069
|
+
in `mountaya/sdk-typescript`, alongside the rest of the TypeScript SDKs and releasing with
|
|
1070
|
+
them. The rules this package renders are
|
|
1071
|
+
[`packages/studio`](https://github.com/mountaya/sdk-typescript/tree/main/packages/studio) in the same
|
|
1072
|
+
repository, so a change spanning both is one commit. The exports and props tables above are
|
|
1073
|
+
generated: run `npm run generate:readme` rather than editing them, and `npm run lint` checks
|
|
1074
|
+
both.
|
|
1075
|
+
|
|
1076
|
+
[CONTRIBUTING.md](../../CONTRIBUTING.md) covers the setup, the gates `npm run lint` runs, and
|
|
1077
|
+
what the guard tests are guarding. [CHANGELOG.md](CHANGELOG.md) is what changed. A security
|
|
1078
|
+
issue goes to the address in [SECURITY.md](../../SECURITY.md), not to an issue.
|
|
1079
|
+
|
|
1080
|
+
## Licence
|
|
1081
|
+
|
|
1082
|
+
Published under the Mountaya SDK License: source-available, for use with the Mountaya services
|
|
1083
|
+
while an agreement with Mountaya is in force. The terms are in [LICENSE.txt](LICENSE.txt), with a
|
|
1084
|
+
French translation in [LICENCE.fr.txt](LICENCE.fr.txt). Embedded Studio, which this package assembles,
|
|
1085
|
+
comes with a signed agreement.
|
|
1086
|
+
|
|
1087
|
+
The work this package bundles from other projects is listed, with each project's licence, in
|
|
1088
|
+
[THIRD-PARTY-NOTICES.txt](THIRD-PARTY-NOTICES.txt).
|