@mailwoman/react 11.0.0 → 11.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/README.md +2 -2
- package/fonts.css +3 -0
- package/lib/common/About.tsx +6 -5
- package/lib/common/ClientOnly.tsx +6 -4
- package/lib/common/CopyButton.tsx +6 -5
- package/lib/common/KindBadge.tsx +8 -7
- package/lib/common/LoadingIndicator.tsx +7 -7
- package/lib/common/PresetChips.tsx +5 -5
- package/lib/common/confidence-tiers.ts +3 -3
- package/lib/common/cx.ts +6 -6
- package/lib/common/text-tokens.ts +3 -3
- package/lib/common/useBuildInfo.ts +5 -5
- package/lib/common/useClipboard.ts +5 -5
- package/lib/common/useDebouncedValue.ts +6 -6
- package/lib/common.ts +3 -3
- package/lib/index.ts +2 -5
- package/lib/map/AppIdentity.tsx +5 -6
- package/lib/map/CompareToggle.tsx +5 -5
- package/lib/map/DebugInfo.tsx +3 -4
- package/lib/map/Geocoder.tsx +55 -17
- package/lib/map/GeocoderControls.tsx +140 -40
- package/lib/map/GraticuleLayer.tsx +6 -6
- package/lib/map/LoadLedgerList.tsx +96 -0
- package/lib/map/MapCanvas.tsx +19 -16
- package/lib/map/MapChipRow.tsx +3 -4
- package/lib/map/MapCompass.tsx +3 -4
- package/lib/map/MapContextMenu.tsx +206 -0
- package/lib/map/MapControlStack.tsx +3 -4
- package/lib/map/MapFooter.tsx +3 -6
- package/lib/map/MapPlaceCard.tsx +64 -0
- package/lib/map/MapProgressBar.tsx +5 -5
- package/lib/map/MapSearchBar.tsx +5 -4
- package/lib/map/MapSheet.tsx +4 -5
- package/lib/map/OverlayLayers.tsx +11 -10
- package/lib/map/PlaceAutocomplete.tsx +3 -4
- package/lib/map/PlaceMarker.tsx +10 -9
- package/lib/map/ResolvedPlaceLayers.tsx +2 -5
- package/lib/map/ResultCamera.tsx +138 -19
- package/lib/map/ResultOverlay.tsx +2 -5
- package/lib/map/ResultPanel.tsx +10 -5
- package/lib/map/StarfieldLayer.tsx +7 -6
- package/lib/map/VersionPicker.tsx +5 -5
- package/lib/map/fake-runtime.ts +2 -5
- package/lib/map/geometry.ts +3 -6
- package/lib/map/graticule.ts +6 -6
- package/lib/map/jump-curtain.ts +105 -0
- package/lib/map/map-debug.ts +4 -4
- package/lib/map/place-render.ts +32 -14
- package/lib/map/reduced-motion.ts +13 -0
- package/lib/map/starfield.ts +9 -8
- package/lib/map/types.ts +13 -4
- package/lib/map/useCompareState.ts +10 -7
- package/lib/map/useGeocode.ts +42 -12
- package/lib/map/useMapBearing.ts +7 -7
- package/lib/map/useMapPick.ts +277 -0
- package/lib/map/useMapPlaceRender.ts +5 -5
- package/lib/map/usePlaceAutocomplete.ts +2 -5
- package/lib/map.ts +21 -8
- package/lib/network/ReachabilityProvider.tsx +6 -7
- package/lib/pipeline/CandidatePicker.tsx +18 -11
- package/lib/pipeline/ComponentTable.tsx +5 -5
- package/lib/pipeline/ConfidenceCell.tsx +6 -5
- package/lib/pipeline/FailureDiagnostic.tsx +5 -6
- package/lib/pipeline/MatchTable.tsx +46 -0
- package/lib/pipeline/PipelineExplorer.tsx +8 -7
- package/lib/pipeline/QueryForm.tsx +6 -5
- package/lib/pipeline/ResolvedPlace.tsx +6 -6
- package/lib/pipeline/SpanHighlight.tsx +7 -6
- package/lib/pipeline/TimingPanel.tsx +7 -6
- package/lib/pipeline/TreeView.tsx +5 -5
- package/lib/pipeline/copy.ts +6 -6
- package/lib/pipeline/presets.ts +7 -6
- package/lib/pipeline/types.ts +17 -5
- package/lib/pipeline/useParsePipeline.ts +50 -23
- package/lib/pipeline.ts +3 -3
- package/lib/poi/AbstainPanel.tsx +6 -5
- package/lib/poi/LiveResultsBlock.tsx +7 -6
- package/lib/poi/OverpassBlock.tsx +7 -5
- package/lib/poi/POIExplorer.tsx +2 -5
- package/lib/poi/QueryInput.tsx +5 -5
- package/lib/poi/SubjectPanel.tsx +9 -6
- package/lib/poi/runtime.ts +2 -5
- package/lib/poi/types.ts +6 -5
- package/lib/poi/usePOISearch.ts +77 -49
- package/lib/poi.ts +3 -3
- package/lib/runtime/useReleaseRuntime.ts +77 -8
- package/lib/runtime.ts +3 -3
- package/lib/search/SearchModal.tsx +13 -9
- package/lib/search/search.css +3 -0
- package/lib/search/tokens.ts +7 -6
- package/lib/search/types.ts +6 -6
- package/lib/search.ts +3 -3
- package/out/common/About.d.ts +3 -5
- package/out/common/About.d.ts.map +1 -1
- package/out/common/About.js.map +1 -1
- package/out/common/ClientOnly.d.ts +3 -4
- package/out/common/ClientOnly.d.ts.map +1 -1
- package/out/common/ClientOnly.js +5 -4
- package/out/common/ClientOnly.js.map +1 -1
- package/out/common/CopyButton.d.ts +3 -5
- package/out/common/CopyButton.d.ts.map +1 -1
- package/out/common/CopyButton.js.map +1 -1
- package/out/common/KindBadge.d.ts +5 -7
- package/out/common/KindBadge.d.ts.map +1 -1
- package/out/common/KindBadge.js.map +1 -1
- package/out/common/LoadingIndicator.d.ts +0 -10
- package/out/common/LoadingIndicator.d.ts.map +1 -1
- package/out/common/LoadingIndicator.js +6 -7
- package/out/common/LoadingIndicator.js.map +1 -1
- package/out/common/PresetChips.d.ts +2 -5
- package/out/common/PresetChips.d.ts.map +1 -1
- package/out/common/confidence-tiers.d.ts +0 -3
- package/out/common/confidence-tiers.d.ts.map +1 -1
- package/out/common/confidence-tiers.js +2 -3
- package/out/common/confidence-tiers.js.map +1 -1
- package/out/common/cx.d.ts +3 -6
- package/out/common/cx.d.ts.map +1 -1
- package/out/common/cx.js +2 -9
- package/out/common/cx.js.map +1 -1
- package/out/common/text-tokens.d.ts +0 -3
- package/out/common/text-tokens.d.ts.map +1 -1
- package/out/common/text-tokens.js +2 -11
- package/out/common/text-tokens.js.map +1 -1
- package/out/common/useBuildInfo.d.ts +0 -7
- package/out/common/useBuildInfo.d.ts.map +1 -1
- package/out/common/useBuildInfo.js +4 -5
- package/out/common/useBuildInfo.js.map +1 -1
- package/out/common/useClipboard.d.ts +0 -7
- package/out/common/useClipboard.d.ts.map +1 -1
- package/out/common/useClipboard.js +4 -5
- package/out/common/useClipboard.js.map +1 -1
- package/out/common/useDebouncedValue.d.ts +0 -9
- package/out/common/useDebouncedValue.d.ts.map +1 -1
- package/out/common/useDebouncedValue.js +5 -6
- package/out/common/useDebouncedValue.js.map +1 -1
- package/out/common.d.ts +0 -3
- package/out/common.d.ts.map +1 -1
- package/out/common.js +2 -3
- package/out/common.js.map +1 -1
- package/out/index.d.ts +0 -5
- package/out/index.d.ts.map +1 -1
- package/out/index.js +2 -5
- package/out/index.js.map +1 -1
- package/out/map/AppIdentity.d.ts +2 -6
- package/out/map/AppIdentity.d.ts.map +1 -1
- package/out/map/AppIdentity.js.map +1 -1
- package/out/map/CompareToggle.d.ts +2 -5
- package/out/map/CompareToggle.d.ts.map +1 -1
- package/out/map/DebugInfo.d.ts +0 -4
- package/out/map/DebugInfo.d.ts.map +1 -1
- package/out/map/DebugInfo.js +2 -4
- package/out/map/DebugInfo.js.map +1 -1
- package/out/map/Geocoder.d.ts +21 -9
- package/out/map/Geocoder.d.ts.map +1 -1
- package/out/map/Geocoder.js +15 -10
- package/out/map/Geocoder.js.map +1 -1
- package/out/map/GeocoderControls.d.ts +7 -9
- package/out/map/GeocoderControls.d.ts.map +1 -1
- package/out/map/GeocoderControls.js +99 -31
- package/out/map/GeocoderControls.js.map +1 -1
- package/out/map/GraticuleLayer.d.ts +3 -6
- package/out/map/GraticuleLayer.d.ts.map +1 -1
- package/out/map/GraticuleLayer.js +5 -6
- package/out/map/GraticuleLayer.js.map +1 -1
- package/out/map/LoadLedgerList.d.ts +19 -0
- package/out/map/LoadLedgerList.d.ts.map +1 -0
- package/out/map/LoadLedgerList.js +59 -0
- package/out/map/LoadLedgerList.js.map +1 -0
- package/out/map/MapCanvas.d.ts +2 -24
- package/out/map/MapCanvas.d.ts.map +1 -1
- package/out/map/MapCanvas.js +16 -14
- package/out/map/MapCanvas.js.map +1 -1
- package/out/map/MapChipRow.d.ts +0 -4
- package/out/map/MapChipRow.d.ts.map +1 -1
- package/out/map/MapChipRow.js.map +1 -1
- package/out/map/MapCompass.d.ts +0 -4
- package/out/map/MapCompass.d.ts.map +1 -1
- package/out/map/MapCompass.js.map +1 -1
- package/out/map/MapContextMenu.d.ts +88 -0
- package/out/map/MapContextMenu.d.ts.map +1 -0
- package/out/map/MapContextMenu.js +96 -0
- package/out/map/MapContextMenu.js.map +1 -0
- package/out/map/MapControlStack.d.ts +0 -4
- package/out/map/MapControlStack.d.ts.map +1 -1
- package/out/map/MapControlStack.js.map +1 -1
- package/out/map/MapFooter.d.ts +1 -6
- package/out/map/MapFooter.d.ts.map +1 -1
- package/out/map/MapFooter.js +2 -5
- package/out/map/MapFooter.js.map +1 -1
- package/out/map/MapPlaceCard.d.ts +17 -0
- package/out/map/MapPlaceCard.d.ts.map +1 -0
- package/out/map/MapPlaceCard.js +27 -0
- package/out/map/MapPlaceCard.js.map +1 -0
- package/out/map/MapProgressBar.d.ts +2 -5
- package/out/map/MapProgressBar.d.ts.map +1 -1
- package/out/map/MapSearchBar.d.ts +2 -4
- package/out/map/MapSearchBar.d.ts.map +1 -1
- package/out/map/MapSearchBar.js.map +1 -1
- package/out/map/MapSheet.d.ts +1 -5
- package/out/map/MapSheet.d.ts.map +1 -1
- package/out/map/MapSheet.js +2 -4
- package/out/map/MapSheet.js.map +1 -1
- package/out/map/OverlayLayers.d.ts +8 -10
- package/out/map/OverlayLayers.d.ts.map +1 -1
- package/out/map/OverlayLayers.js +10 -10
- package/out/map/OverlayLayers.js.map +1 -1
- package/out/map/PlaceAutocomplete.d.ts +0 -4
- package/out/map/PlaceAutocomplete.d.ts.map +1 -1
- package/out/map/PlaceAutocomplete.js.map +1 -1
- package/out/map/PlaceMarker.d.ts +0 -13
- package/out/map/PlaceMarker.d.ts.map +1 -1
- package/out/map/PlaceMarker.js +9 -9
- package/out/map/PlaceMarker.js.map +1 -1
- package/out/map/ResolvedPlaceLayers.d.ts +0 -5
- package/out/map/ResolvedPlaceLayers.d.ts.map +1 -1
- package/out/map/ResolvedPlaceLayers.js.map +1 -1
- package/out/map/ResultCamera.d.ts +53 -7
- package/out/map/ResultCamera.d.ts.map +1 -1
- package/out/map/ResultCamera.js +103 -17
- package/out/map/ResultCamera.js.map +1 -1
- package/out/map/ResultOverlay.d.ts +0 -5
- package/out/map/ResultOverlay.d.ts.map +1 -1
- package/out/map/ResultOverlay.js +2 -5
- package/out/map/ResultOverlay.js.map +1 -1
- package/out/map/ResultPanel.d.ts +0 -5
- package/out/map/ResultPanel.d.ts.map +1 -1
- package/out/map/ResultPanel.js +2 -1
- package/out/map/ResultPanel.js.map +1 -1
- package/out/map/StarfieldLayer.d.ts +0 -11
- package/out/map/StarfieldLayer.d.ts.map +1 -1
- package/out/map/StarfieldLayer.js +6 -6
- package/out/map/StarfieldLayer.js.map +1 -1
- package/out/map/VersionPicker.d.ts +2 -5
- package/out/map/VersionPicker.d.ts.map +1 -1
- package/out/map/fake-runtime.d.ts +0 -5
- package/out/map/fake-runtime.d.ts.map +1 -1
- package/out/map/fake-runtime.js +2 -5
- package/out/map/fake-runtime.js.map +1 -1
- package/out/map/geometry.d.ts +1 -6
- package/out/map/geometry.d.ts.map +1 -1
- package/out/map/geometry.js +3 -6
- package/out/map/geometry.js.map +1 -1
- package/out/map/graticule.d.ts +3 -6
- package/out/map/graticule.d.ts.map +1 -1
- package/out/map/graticule.js +2 -9
- package/out/map/graticule.js.map +1 -1
- package/out/map/jump-curtain.d.ts +61 -0
- package/out/map/jump-curtain.d.ts.map +1 -0
- package/out/map/jump-curtain.js +69 -0
- package/out/map/jump-curtain.js.map +1 -0
- package/out/map/map-debug.d.ts +1 -4
- package/out/map/map-debug.d.ts.map +1 -1
- package/out/map/map-debug.js +2 -10
- package/out/map/map-debug.js.map +1 -1
- package/out/map/place-render.d.ts +5 -6
- package/out/map/place-render.d.ts.map +1 -1
- package/out/map/place-render.js +21 -12
- package/out/map/place-render.js.map +1 -1
- package/out/map/reduced-motion.d.ts +9 -0
- package/out/map/reduced-motion.d.ts.map +1 -0
- package/out/map/reduced-motion.js +13 -0
- package/out/map/reduced-motion.js.map +1 -0
- package/out/map/starfield.d.ts +0 -14
- package/out/map/starfield.d.ts.map +1 -1
- package/out/map/starfield.js +8 -8
- package/out/map/starfield.js.map +1 -1
- package/out/map/types.d.ts +10 -4
- package/out/map/types.d.ts.map +1 -1
- package/out/map/types.js +2 -7
- package/out/map/types.js.map +1 -1
- package/out/map/useCompareState.d.ts +0 -11
- package/out/map/useCompareState.d.ts.map +1 -1
- package/out/map/useCompareState.js +9 -7
- package/out/map/useCompareState.js.map +1 -1
- package/out/map/useGeocode.d.ts +13 -20
- package/out/map/useGeocode.d.ts.map +1 -1
- package/out/map/useGeocode.js +21 -11
- package/out/map/useGeocode.js.map +1 -1
- package/out/map/useMapBearing.d.ts +2 -9
- package/out/map/useMapBearing.d.ts.map +1 -1
- package/out/map/useMapBearing.js +4 -5
- package/out/map/useMapBearing.js.map +1 -1
- package/out/map/useMapPick.d.ts +28 -0
- package/out/map/useMapPick.d.ts.map +1 -0
- package/out/map/useMapPick.js +206 -0
- package/out/map/useMapPick.js.map +1 -0
- package/out/map/useMapPlaceRender.d.ts +0 -7
- package/out/map/useMapPlaceRender.d.ts.map +1 -1
- package/out/map/useMapPlaceRender.js +4 -5
- package/out/map/useMapPlaceRender.js.map +1 -1
- package/out/map/usePlaceAutocomplete.d.ts +0 -5
- package/out/map/usePlaceAutocomplete.d.ts.map +1 -1
- package/out/map/usePlaceAutocomplete.js +2 -5
- package/out/map/usePlaceAutocomplete.js.map +1 -1
- package/out/map.d.ts +10 -8
- package/out/map.d.ts.map +1 -1
- package/out/map.js +9 -8
- package/out/map.js.map +1 -1
- package/out/network/ReachabilityProvider.d.ts +3 -7
- package/out/network/ReachabilityProvider.d.ts.map +1 -1
- package/out/network/ReachabilityProvider.js +5 -7
- package/out/network/ReachabilityProvider.js.map +1 -1
- package/out/pipeline/CandidatePicker.d.ts +15 -11
- package/out/pipeline/CandidatePicker.d.ts.map +1 -1
- package/out/pipeline/CandidatePicker.js.map +1 -1
- package/out/pipeline/ComponentTable.d.ts +2 -5
- package/out/pipeline/ComponentTable.d.ts.map +1 -1
- package/out/pipeline/ConfidenceCell.d.ts +0 -8
- package/out/pipeline/ConfidenceCell.d.ts.map +1 -1
- package/out/pipeline/ConfidenceCell.js +5 -5
- package/out/pipeline/ConfidenceCell.js.map +1 -1
- package/out/pipeline/FailureDiagnostic.d.ts +2 -6
- package/out/pipeline/FailureDiagnostic.d.ts.map +1 -1
- package/out/pipeline/FailureDiagnostic.js.map +1 -1
- package/out/pipeline/MatchTable.d.ts +7 -0
- package/out/pipeline/MatchTable.d.ts.map +1 -0
- package/out/pipeline/MatchTable.js +18 -0
- package/out/pipeline/MatchTable.js.map +1 -0
- package/out/pipeline/PipelineExplorer.d.ts +5 -7
- package/out/pipeline/PipelineExplorer.d.ts.map +1 -1
- package/out/pipeline/PipelineExplorer.js.map +1 -1
- package/out/pipeline/QueryForm.d.ts +3 -5
- package/out/pipeline/QueryForm.d.ts.map +1 -1
- package/out/pipeline/QueryForm.js.map +1 -1
- package/out/pipeline/ResolvedPlace.d.ts +2 -5
- package/out/pipeline/ResolvedPlace.d.ts.map +1 -1
- package/out/pipeline/SpanHighlight.d.ts +4 -6
- package/out/pipeline/SpanHighlight.d.ts.map +1 -1
- package/out/pipeline/SpanHighlight.js.map +1 -1
- package/out/pipeline/TimingPanel.d.ts +4 -6
- package/out/pipeline/TimingPanel.d.ts.map +1 -1
- package/out/pipeline/TimingPanel.js.map +1 -1
- package/out/pipeline/TreeView.d.ts +2 -5
- package/out/pipeline/TreeView.d.ts.map +1 -1
- package/out/pipeline/copy.d.ts +0 -8
- package/out/pipeline/copy.d.ts.map +1 -1
- package/out/pipeline/copy.js +5 -6
- package/out/pipeline/copy.js.map +1 -1
- package/out/pipeline/presets.d.ts +3 -5
- package/out/pipeline/presets.d.ts.map +1 -1
- package/out/pipeline/presets.js +3 -9
- package/out/pipeline/presets.js.map +1 -1
- package/out/pipeline/types.d.ts +14 -5
- package/out/pipeline/types.d.ts.map +1 -1
- package/out/pipeline/types.js +2 -8
- package/out/pipeline/types.js.map +1 -1
- package/out/pipeline/useParsePipeline.d.ts +6 -6
- package/out/pipeline/useParsePipeline.d.ts.map +1 -1
- package/out/pipeline/useParsePipeline.js +38 -26
- package/out/pipeline/useParsePipeline.js.map +1 -1
- package/out/pipeline.d.ts +0 -3
- package/out/pipeline.d.ts.map +1 -1
- package/out/pipeline.js +2 -3
- package/out/pipeline.js.map +1 -1
- package/out/poi/AbstainPanel.d.ts +3 -5
- package/out/poi/AbstainPanel.d.ts.map +1 -1
- package/out/poi/AbstainPanel.js.map +1 -1
- package/out/poi/LiveResultsBlock.d.ts +4 -6
- package/out/poi/LiveResultsBlock.d.ts.map +1 -1
- package/out/poi/LiveResultsBlock.js.map +1 -1
- package/out/poi/OverpassBlock.d.ts +4 -5
- package/out/poi/OverpassBlock.d.ts.map +1 -1
- package/out/poi/OverpassBlock.js.map +1 -1
- package/out/poi/POIExplorer.d.ts +0 -5
- package/out/poi/POIExplorer.d.ts.map +1 -1
- package/out/poi/POIExplorer.js +2 -5
- package/out/poi/POIExplorer.js.map +1 -1
- package/out/poi/QueryInput.d.ts +2 -5
- package/out/poi/QueryInput.d.ts.map +1 -1
- package/out/poi/SubjectPanel.d.ts +6 -6
- package/out/poi/SubjectPanel.d.ts.map +1 -1
- package/out/poi/SubjectPanel.js.map +1 -1
- package/out/poi/runtime.d.ts +0 -5
- package/out/poi/runtime.d.ts.map +1 -1
- package/out/poi/runtime.js +2 -5
- package/out/poi/runtime.js.map +1 -1
- package/out/poi/types.d.ts +3 -5
- package/out/poi/types.d.ts.map +1 -1
- package/out/poi/types.js +2 -8
- package/out/poi/types.js.map +1 -1
- package/out/poi/usePOISearch.d.ts +7 -5
- package/out/poi/usePOISearch.d.ts.map +1 -1
- package/out/poi/usePOISearch.js +23 -9
- package/out/poi/usePOISearch.js.map +1 -1
- package/out/poi.d.ts +0 -3
- package/out/poi.d.ts.map +1 -1
- package/out/poi.js +2 -3
- package/out/poi.js.map +1 -1
- package/out/runtime/useReleaseRuntime.d.ts +33 -7
- package/out/runtime/useReleaseRuntime.d.ts.map +1 -1
- package/out/runtime/useReleaseRuntime.js +36 -6
- package/out/runtime/useReleaseRuntime.js.map +1 -1
- package/out/runtime.d.ts +0 -3
- package/out/runtime.d.ts.map +1 -1
- package/out/runtime.js +2 -3
- package/out/runtime.js.map +1 -1
- package/out/search/SearchModal.d.ts +0 -12
- package/out/search/SearchModal.d.ts.map +1 -1
- package/out/search/SearchModal.js +12 -9
- package/out/search/SearchModal.js.map +1 -1
- package/out/search/tokens.d.ts +4 -6
- package/out/search/tokens.d.ts.map +1 -1
- package/out/search/tokens.js +6 -6
- package/out/search/tokens.js.map +1 -1
- package/out/search/types.d.ts +3 -6
- package/out/search/types.d.ts.map +1 -1
- package/out/search/types.js +4 -5
- package/out/search/types.js.map +1 -1
- package/out/search.d.ts +0 -3
- package/out/search.d.ts.map +1 -1
- package/out/search.js +2 -3
- package/out/search.js.map +1 -1
- package/package.json +6 -6
- package/styles.css +214 -3
- package/tokens/index.css +3 -0
- package/lib/map/useMapLabelPick.ts +0 -114
- package/out/map/useMapLabelPick.d.ts +0 -13
- package/out/map/useMapLabelPick.d.ts.map +0 -1
- package/out/map/useMapLabelPick.js +0 -95
- package/out/map/useMapLabelPick.js.map +0 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ packages the parse/geocode/POI explorers from the docs site as smaller parts for
|
|
|
6
6
|
## What's in the box
|
|
7
7
|
|
|
8
8
|
The package contains two composed explorers, plus the small presentational units and headless hooks
|
|
9
|
-
they
|
|
9
|
+
they're built from:
|
|
10
10
|
|
|
11
11
|
- **`POIExplorer`** is a self-contained POI-intent tester (classify → subject → OverpassQL). The intent
|
|
12
12
|
path runs entirely offline over `@mailwoman/kind-classifier`, `@mailwoman/poi-taxonomy`, and
|
|
@@ -43,7 +43,7 @@ load from `public.sister.software`. No component imports CSS, so the bare packag
|
|
|
43
43
|
(Playwright / headless Chromium).
|
|
44
44
|
|
|
45
45
|
New React code uses hooks and current idioms: derive values during render, and use refs and reducers
|
|
46
|
-
where they
|
|
46
|
+
where they're idiomatic. Legacy context is out. A lint finding is answered by restructuring the
|
|
47
47
|
component, never by a disable comment.
|
|
48
48
|
|
|
49
49
|
## License
|
package/fonts.css
CHANGED
package/lib/common/About.tsx
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* `About` — the explainer for the browser geocoder: the neural model, the confidence colors, the gazetteer resolver, the byte-range database and the FST prior. It renders no live content.
|
|
5
|
+
* `About` — the explainer for the browser geocoder: the neural model, the confidence colors,
|
|
6
|
+
* the gazetteer resolver, the byte-range database and the FST prior.
|
|
7
|
+
* It renders no live content.
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
import type { ReactNode } from "react"
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
+
* `ClientOnly` — a portable SSR boundary that renders `fallback` on the server and first client paint.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
+
* It swaps to `children()` after mounting, keeping timers, clipboard
|
|
8
|
+
* and dynamic imports off the server render.
|
|
7
9
|
*/
|
|
8
10
|
|
|
9
11
|
import { type ReactNode, useSyncExternalStore } from "react"
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* `CopyButton` — a small presentational button that copies a string and shows a transient checkmark.
|
|
7
|
-
*
|
|
6
|
+
*
|
|
7
|
+
* Wraps {@link useClipboard}.
|
|
8
|
+
* Used by both explorers (OverpassQL copy, parse-JSON copy).
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
import type { ReactNode } from "react"
|
package/lib/common/KindBadge.tsx
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
+
* `KindBadge` — compact display of the Stage 2.5 kind-classifier verdict:
|
|
6
|
+
* the top kind + confidence as a pill, expanding to the alternatives on click.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* pipeline's projection satisfy it without a hard type dependency.
|
|
8
|
+
* Shared by both explorers.
|
|
9
|
+
* The result type is kept structural (`kind: string`) so both the POI query classifier's
|
|
10
|
+
* `QueryKindResult` and the pipeline's projection satisfy it without a hard type dependency.
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
import type { KindView } from "@mailwoman/core/pipeline/client-result"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* LoadingIndicator — pure-CSS loading states for three UX patterns: `pulse` (skeleton bars),
|
|
7
|
-
* `spinner` (rotation ring), and `staged` (a step list with checkmarks).
|
|
8
|
-
*
|
|
9
|
-
* component
|
|
6
|
+
* `spinner` (rotation ring), and `staged` (a step list with checkmarks).
|
|
7
|
+
*
|
|
8
|
+
* SSR-safe: every animation is CSS-driven, so the component renders identically on server and client.
|
|
9
|
+
* Ported from the docs component onto plain (`mw-`-prefixed) class names.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import { memo, type ReactNode } from "react"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
+
* `PresetChips` is the "Try:" row of example buttons shared by both explorers.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
* renders a labeled list and calls `onPick` with the chosen preset's value.
|
|
7
|
+
* Presentational: it renders a labeled list and calls `onPick` with the chosen preset's value.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import type { ReactNode } from "react"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
5
|
* @file Confidence banding shared by every component that colors a span by confidence.
|
|
6
6
|
*
|
|
7
7
|
* It is a presentation choice rather than a model one: the parser emits a continuous confidence and these
|
package/lib/common/cx.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
+
* Tiny classname joiner — the only utility the presentational units need.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* siblings and the React peer.
|
|
7
|
+
* Kept in-package (rather than pulling `classnames`) so `@mailwoman/react` ships zero
|
|
8
|
+
* runtime deps beyond its `@mailwoman/*` siblings and the React peer.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
export type ClassValue = string | number | false | null | undefined | Record<string, boolean>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
5
|
* @file Word tokenization + span ownership shared by the word-level visualizers.
|
|
6
6
|
*
|
|
7
7
|
* A word-level panel splits the raw input on whitespace and assigns each word to its most specific
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* `useBuildInfo()` — reads the deployment's own `build.json`, resolving a failed fetch to `null` because a dev server has no such file and the page must not show an error strip.
|
|
5
|
+
* `useBuildInfo()` — reads the deployment's own `build.json`, resolving a failed fetch to `null`
|
|
6
|
+
* because a dev server has no such file and the page mustn't show an error strip.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { useEffect, useState } from "react"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* `useClipboard` — headless copy-to-clipboard with the async Clipboard API and a legacy `execCommand` fallback for insecure contexts, plus a transient "copied" flag that auto-resets.
|
|
5
|
+
* `useClipboard` — headless copy-to-clipboard with the async Clipboard API and a legacy
|
|
6
|
+
* `execCommand` fallback for insecure contexts, plus a transient "copied" flag that auto-resets.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { useCallback, useEffect, useRef, useState } from "react"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
+
* `useDebouncedValue` — returns a copy of `value` that only updates after `delayMs` of quiet.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* effect (a scheduled clock), so it belongs in an effect.
|
|
7
|
+
* Used by the POI explorer to avoid re-classifying on every keystroke.
|
|
8
|
+
* The timer is an external-sync effect (a scheduled clock), so it belongs in an effect.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { useEffect, useState } from "react"
|
package/lib/common.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
5
|
* @file Common React primitives.
|
|
6
6
|
*/
|
|
7
7
|
|
package/lib/index.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
6
3
|
|
|
7
4
|
/**
|
|
8
5
|
* Re-exports the shared presentational components and hooks that both explorers are built from.
|
package/lib/map/AppIdentity.tsx
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Renders the footer identity with the app name, an optional documentation link and the build
|
|
7
|
-
* commit. This component does not depend on the map.
|
|
5
|
+
* Renders the footer identity with the app name, an optional documentation link and the build commit.
|
|
6
|
+
* This component doesn't depend on the map.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
9
|
import type { ReactNode } from "react"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Renders a compare-mode checkbox and a selector for the second model version, leaving the comparison itself to the host.
|
|
5
|
+
* Renders a compare-mode checkbox and a selector for the second model version,
|
|
6
|
+
* leaving the comparison itself to the host.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import type { ReactNode } from "react"
|
package/lib/map/DebugInfo.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* Display and log build, model and runtime details for bug reports.
|
|
7
6
|
*/
|
|
8
7
|
|
package/lib/map/Geocoder.tsx
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
6
3
|
|
|
7
|
-
import
|
|
4
|
+
import type { ParseResult } from "@mailwoman/core/pipeline/client-result"
|
|
5
|
+
import { type ReactNode, useCallback, useEffect, useEffectEvent, useRef, useState } from "react"
|
|
8
6
|
import type { MapRef } from "react-map-gl/maplibre"
|
|
9
7
|
|
|
8
|
+
import { createJumpCurtain } from "#map/jump-curtain"
|
|
10
9
|
import type { GeocoderPanels, GeocoderRuntime, MapBias } from "#map/types"
|
|
11
10
|
import { useCompareState } from "#map/useCompareState"
|
|
12
11
|
import { useGeocode } from "#map/useGeocode"
|
|
@@ -20,6 +19,7 @@ import { GraticuleLayer } from "./GraticuleLayer.tsx"
|
|
|
20
19
|
import { MapCanvas } from "./MapCanvas.tsx"
|
|
21
20
|
import { OverlayLayers } from "./OverlayLayers.tsx"
|
|
22
21
|
import { ResolvedPlaceLayers } from "./ResolvedPlaceLayers.tsx"
|
|
22
|
+
import { applyCameraTarget } from "./ResultCamera.tsx"
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Props for {@linkcode Geocoder}.
|
|
@@ -37,16 +37,32 @@ export interface GeocoderProps {
|
|
|
37
37
|
panels?: GeocoderPanels
|
|
38
38
|
/**
|
|
39
39
|
* The address that pre-fills the search field.
|
|
40
|
-
* It
|
|
40
|
+
* It isn't run automatically.
|
|
41
41
|
*/
|
|
42
42
|
defaultAddress?: string
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* The field's placeholder while it is empty.
|
|
45
|
+
*
|
|
46
|
+
* @defaultValue `"Search an address or place"`
|
|
47
|
+
*/
|
|
48
|
+
placeholder?: string
|
|
49
|
+
/**
|
|
50
|
+
* The query the host's URL names, such as a permalink's `?q=` value.
|
|
45
51
|
*
|
|
46
52
|
* Unlike {@link GeocoderProps.defaultAddress}, this query is submitted,
|
|
47
53
|
* so a shared link reproduces its result.
|
|
54
|
+
* Each new value is submitted once the runtime is ready, so a host that reads its URL
|
|
55
|
+
* on `popstate` lets the back and forward buttons re-run earlier searches.
|
|
56
|
+
*
|
|
57
|
+
* A value equal to the last submitted query isn't submitted again.
|
|
48
58
|
*/
|
|
49
|
-
|
|
59
|
+
query?: string | null
|
|
60
|
+
/**
|
|
61
|
+
* Called with each parse result, and with `null` when the result is cleared.
|
|
62
|
+
*
|
|
63
|
+
* The host decides what to do with it, such as setting the document title.
|
|
64
|
+
*/
|
|
65
|
+
onResult?: (result: ParseResult | null) => void
|
|
50
66
|
/**
|
|
51
67
|
* The example chips.
|
|
52
68
|
*
|
|
@@ -84,24 +100,27 @@ export interface GeocoderProps {
|
|
|
84
100
|
}
|
|
85
101
|
|
|
86
102
|
interface GeocoderInnerProps extends Required<
|
|
87
|
-
Pick<GeocoderProps, "runtime" | "defaultAddress" | "minBiasZoom" | "applyResultCamera" | "developer">
|
|
103
|
+
Pick<GeocoderProps, "runtime" | "defaultAddress" | "placeholder" | "minBiasZoom" | "applyResultCamera" | "developer">
|
|
88
104
|
> {
|
|
89
105
|
panels: GeocoderPanels
|
|
90
106
|
presets: ReadonlyArray<Preset>
|
|
91
|
-
|
|
107
|
+
query: string | null
|
|
92
108
|
onSubmitQuery?: (query: string) => void
|
|
109
|
+
onResult?: (result: ParseResult | null) => void
|
|
93
110
|
}
|
|
94
111
|
|
|
95
112
|
function GeocoderInner({
|
|
96
113
|
runtime,
|
|
97
114
|
panels,
|
|
98
115
|
defaultAddress,
|
|
116
|
+
placeholder,
|
|
99
117
|
presets,
|
|
100
118
|
minBiasZoom,
|
|
101
119
|
applyResultCamera,
|
|
102
120
|
developer,
|
|
103
|
-
|
|
121
|
+
query,
|
|
104
122
|
onSubmitQuery,
|
|
123
|
+
onResult,
|
|
105
124
|
}: GeocoderInnerProps): ReactNode {
|
|
106
125
|
const mapRef = useRef<MapRef>(null)
|
|
107
126
|
// The controls render outside `<MapCanvas>` and cannot call `useMap()`.
|
|
@@ -117,6 +136,12 @@ function GeocoderInner({
|
|
|
117
136
|
const onMapLoad = useCallback((event: { target: ReturnType<MapRef["getMap"]> }) => {
|
|
118
137
|
// Browser tests read the map from this global.
|
|
119
138
|
;(globalThis as { __mailwomanMapCanvas?: ReturnType<MapRef["getMap"]> }).__mailwomanMapCanvas = event.target
|
|
139
|
+
|
|
140
|
+
// Measurement tools move the camera through the same function a result uses.
|
|
141
|
+
Reflect.set(globalThis, "__mailwomanApplyCameraTarget", (target: Parameters<typeof applyCameraTarget>[1]) =>
|
|
142
|
+
applyCameraTarget(event.target, target, true, createJumpCurtain(event.target))
|
|
143
|
+
)
|
|
144
|
+
|
|
120
145
|
setMap(event.target)
|
|
121
146
|
|
|
122
147
|
const layers = event.target.getStyle()?.layers ?? []
|
|
@@ -129,6 +154,7 @@ function GeocoderInner({
|
|
|
129
154
|
() => () => {
|
|
130
155
|
setMap(null)
|
|
131
156
|
delete (globalThis as { __mailwomanMapCanvas?: ReturnType<MapRef["getMap"]> }).__mailwomanMapCanvas
|
|
157
|
+
Reflect.deleteProperty(globalThis, "__mailwomanApplyCameraTarget")
|
|
132
158
|
},
|
|
133
159
|
[]
|
|
134
160
|
)
|
|
@@ -148,6 +174,13 @@ function GeocoderInner({
|
|
|
148
174
|
const geocode = useGeocode({ runtime, defaultText: defaultAddress, getBias })
|
|
149
175
|
const compare = useCompareState()
|
|
150
176
|
|
|
177
|
+
// The host hears each result as it lands, including the `null` a reset leaves.
|
|
178
|
+
const reportResult = useEffectEvent((result: ParseResult | null) => onResult?.(result))
|
|
179
|
+
|
|
180
|
+
useEffect(() => {
|
|
181
|
+
reportResult(geocode.result)
|
|
182
|
+
}, [geocode.result])
|
|
183
|
+
|
|
151
184
|
const autocomplete = usePlaceAutocomplete({
|
|
152
185
|
text: geocode.text,
|
|
153
186
|
setText: geocode.setText,
|
|
@@ -189,7 +222,8 @@ function GeocoderInner({
|
|
|
189
222
|
>
|
|
190
223
|
<GraticuleLayer beforeID={baseLayerID} />
|
|
191
224
|
<OverlayLayers overlays={runtime.overlays} beforeID={labelLayerID} />
|
|
192
|
-
|
|
225
|
+
{/* A pinned place came from a click on the map, so the camera stays where the visitor put it. */}
|
|
226
|
+
<ResolvedPlaceLayers spec={spec} applyCamera={applyResultCamera && !geocode.pinned} />
|
|
193
227
|
{panels.mapControls}
|
|
194
228
|
</MapCanvas>
|
|
195
229
|
) : null}
|
|
@@ -202,8 +236,8 @@ function GeocoderInner({
|
|
|
202
236
|
compare={compare}
|
|
203
237
|
panels={panels}
|
|
204
238
|
presets={presets}
|
|
205
|
-
placeholder={
|
|
206
|
-
|
|
239
|
+
placeholder={placeholder}
|
|
240
|
+
query={query}
|
|
207
241
|
map={map}
|
|
208
242
|
onSubmitQuery={onSubmitQuery}
|
|
209
243
|
onSelectVersion={onSelectVersion}
|
|
@@ -238,12 +272,14 @@ export function Geocoder({
|
|
|
238
272
|
runtime,
|
|
239
273
|
panels = NO_PANELS,
|
|
240
274
|
defaultAddress = "",
|
|
275
|
+
placeholder = "Search an address or place",
|
|
241
276
|
presets = NO_PRESETS,
|
|
242
277
|
minBiasZoom = 4,
|
|
243
278
|
applyResultCamera = true,
|
|
244
279
|
developer = false,
|
|
245
|
-
|
|
280
|
+
query = null,
|
|
246
281
|
onSubmitQuery,
|
|
282
|
+
onResult,
|
|
247
283
|
}: GeocoderProps): ReactNode {
|
|
248
284
|
return (
|
|
249
285
|
<ClientOnly
|
|
@@ -258,12 +294,14 @@ export function Geocoder({
|
|
|
258
294
|
runtime={runtime}
|
|
259
295
|
panels={panels}
|
|
260
296
|
defaultAddress={defaultAddress}
|
|
297
|
+
placeholder={placeholder}
|
|
261
298
|
presets={presets}
|
|
262
299
|
minBiasZoom={minBiasZoom}
|
|
263
300
|
applyResultCamera={applyResultCamera}
|
|
264
301
|
developer={developer}
|
|
265
|
-
|
|
302
|
+
query={query}
|
|
266
303
|
onSubmitQuery={onSubmitQuery}
|
|
304
|
+
onResult={onResult}
|
|
267
305
|
/>
|
|
268
306
|
)}
|
|
269
307
|
</ClientOnly>
|