@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
|
@@ -1,9 +1,7 @@
|
|
|
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
|
|
|
4
|
+
import type { LoadLedgerSnapshot } from "@mailwoman/core/load-ledger"
|
|
7
5
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react"
|
|
8
6
|
|
|
9
7
|
/**
|
|
@@ -67,6 +65,11 @@ export interface AssetsLoadContext {
|
|
|
67
65
|
* The step index cannot show it because the model is fetched before the first step begins.
|
|
68
66
|
*/
|
|
69
67
|
setByteFraction: (fraction: number | null) => void
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Reports the load ledger: one entry per artifact, with its bytes, source, state and error.
|
|
71
|
+
*/
|
|
72
|
+
setLedger: (snapshot: LoadLedgerSnapshot) => void
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
/**
|
|
@@ -92,7 +95,7 @@ export interface ReleaseRuntimeConfig<TAssets, TRelease extends ReleaseBase = Re
|
|
|
92
95
|
loadAssets: (release: TRelease, ctx: AssetsLoadContext) => Promise<TAssets>
|
|
93
96
|
|
|
94
97
|
/**
|
|
95
|
-
* Releases resources the garbage collector
|
|
98
|
+
* Releases resources the garbage collector doesn't own, such as an ONNX
|
|
96
99
|
* session's WASM heap or a GPU buffer.
|
|
97
100
|
*
|
|
98
101
|
* The hook calls it when replacing a bundle.
|
|
@@ -139,7 +142,15 @@ export interface ReleaseLoaderState<TAssets, TRelease extends ReleaseBase = Rele
|
|
|
139
142
|
ready: boolean
|
|
140
143
|
|
|
141
144
|
/**
|
|
142
|
-
*
|
|
145
|
+
* Whether the manifest loader answered with no manifest.
|
|
146
|
+
*
|
|
147
|
+
* The hook then loads no release and stays not ready, and a consumer shows no loading status.
|
|
148
|
+
* A page that runs without a model, such as earth under `?no-model`, reaches this state.
|
|
149
|
+
*/
|
|
150
|
+
manifestAbsent: boolean
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* The load progress line, empty once loading finishes, fails, or finds no manifest.
|
|
143
154
|
*/
|
|
144
155
|
loadingProgress: string
|
|
145
156
|
|
|
@@ -167,10 +178,32 @@ export interface ReleaseLoaderState<TAssets, TRelease extends ReleaseBase = Rele
|
|
|
167
178
|
*/
|
|
168
179
|
activeBackend: string
|
|
169
180
|
|
|
181
|
+
/**
|
|
182
|
+
* The load ledger of the current or last asset load, `null` before a load reports one.
|
|
183
|
+
*
|
|
184
|
+
* It stays after a failure so a page can show which artifact failed.
|
|
185
|
+
*/
|
|
186
|
+
loadingLedger: LoadLedgerSnapshot | null
|
|
187
|
+
|
|
170
188
|
/**
|
|
171
189
|
* Switches to another version, clearing any error and reloading the asset bundle.
|
|
172
190
|
*/
|
|
173
191
|
selectVersion: (version: string) => void
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Loads the selected version's asset bundle again, clearing any error.
|
|
195
|
+
*
|
|
196
|
+
* Artifacts that arrived in the failed attempt are read again from the browser's caches.
|
|
197
|
+
*/
|
|
198
|
+
retry: () => void
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Replaces the loaded bundle with `update`'s result, such as one with a reopened gazetteer.
|
|
202
|
+
*
|
|
203
|
+
* While no bundle is loaded, the call returns without calling `update`.
|
|
204
|
+
* The replacement isn't disposed of separately: the hook disposes it as the live bundle.
|
|
205
|
+
*/
|
|
206
|
+
updateAssets: (update: (assets: TAssets) => TAssets) => void
|
|
174
207
|
}
|
|
175
208
|
|
|
176
209
|
/**
|
|
@@ -185,6 +218,7 @@ export function useReleaseRuntime<TAssets, TRelease extends ReleaseBase = Releas
|
|
|
185
218
|
const { initialProgress = "Loading releases…" } = config
|
|
186
219
|
|
|
187
220
|
const [manifest, setManifest] = useState<ReleaseManifest<TRelease> | null>(null)
|
|
221
|
+
const [manifestAbsent, setManifestAbsent] = useState(false)
|
|
188
222
|
const [selectedVersion, setSelectedVersion] = useState<string | null>(null)
|
|
189
223
|
const [assets, setAssets] = useState<TAssets | null>(null)
|
|
190
224
|
const [loadingProgress, setLoadingProgress] = useState<string>(initialProgress)
|
|
@@ -193,6 +227,9 @@ export function useReleaseRuntime<TAssets, TRelease extends ReleaseBase = Releas
|
|
|
193
227
|
const [errorMessage, setErrorMessage] = useState<string | null>(null)
|
|
194
228
|
const [activeBackend, setActiveBackend] = useState<string>("")
|
|
195
229
|
const [loadingByteFraction, setLoadingByteFraction] = useState<number | null>(null)
|
|
230
|
+
const [loadingLedger, setLoadingLedger] = useState<LoadLedgerSnapshot | null>(null)
|
|
231
|
+
// Each retry bumps this, so the load effect runs again for the same version.
|
|
232
|
+
const [loadAttempt, setLoadAttempt] = useState(0)
|
|
196
233
|
|
|
197
234
|
const loadManifestRef = useRef(config.loadManifest)
|
|
198
235
|
const loadAssetsRef = useRef(config.loadAssets)
|
|
@@ -221,10 +258,14 @@ export function useReleaseRuntime<TAssets, TRelease extends ReleaseBase = Releas
|
|
|
221
258
|
if (data) {
|
|
222
259
|
setManifest(data)
|
|
223
260
|
setSelectedVersion(data.defaultVersion)
|
|
261
|
+
} else {
|
|
262
|
+
setManifestAbsent(true)
|
|
263
|
+
setLoadingProgress("")
|
|
224
264
|
}
|
|
225
265
|
} catch (error) {
|
|
226
266
|
if (controller.signal.aborted) return
|
|
227
267
|
setErrorMessage(error instanceof Error ? error.message : String(error))
|
|
268
|
+
setLoadingProgress("")
|
|
228
269
|
}
|
|
229
270
|
})()
|
|
230
271
|
|
|
@@ -262,6 +303,7 @@ export function useReleaseRuntime<TAssets, TRelease extends ReleaseBase = Releas
|
|
|
262
303
|
setLoadingStepLabels([])
|
|
263
304
|
setActiveBackend("")
|
|
264
305
|
setLoadingByteFraction(null)
|
|
306
|
+
setLoadingLedger(null)
|
|
265
307
|
|
|
266
308
|
const ctx: AssetsLoadContext = {
|
|
267
309
|
signal,
|
|
@@ -270,6 +312,7 @@ export function useReleaseRuntime<TAssets, TRelease extends ReleaseBase = Releas
|
|
|
270
312
|
setStepIndex: (index) => guard(() => setLoadingStepIndex(index)),
|
|
271
313
|
setBackend: (backend) => guard(() => setActiveBackend(backend)),
|
|
272
314
|
setByteFraction: (fraction) => guard(() => setLoadingByteFraction(fraction)),
|
|
315
|
+
setLedger: (snapshot) => guard(() => setLoadingLedger(snapshot)),
|
|
273
316
|
}
|
|
274
317
|
|
|
275
318
|
const loaded = await loadAssetsRef.current(release, ctx)
|
|
@@ -287,12 +330,17 @@ export function useReleaseRuntime<TAssets, TRelease extends ReleaseBase = Releas
|
|
|
287
330
|
} catch (error) {
|
|
288
331
|
if (signal.aborted) return
|
|
289
332
|
setErrorMessage(error instanceof Error ? error.message : String(error))
|
|
333
|
+
// The steps and the byte bar describe a load in progress, so a failed load clears them.
|
|
334
|
+
// The ledger stays, because it records the artifact that failed.
|
|
290
335
|
setLoadingProgress("")
|
|
336
|
+
setLoadingStepLabels([])
|
|
337
|
+
setLoadingStepIndex(-1)
|
|
338
|
+
setLoadingByteFraction(null)
|
|
291
339
|
}
|
|
292
340
|
})()
|
|
293
341
|
|
|
294
342
|
return () => controller.abort()
|
|
295
|
-
}, [selectedVersion])
|
|
343
|
+
}, [selectedVersion, loadAttempt])
|
|
296
344
|
|
|
297
345
|
useEffect(() => {
|
|
298
346
|
return () => {
|
|
@@ -311,6 +359,23 @@ export function useReleaseRuntime<TAssets, TRelease extends ReleaseBase = Releas
|
|
|
311
359
|
setErrorMessage(null)
|
|
312
360
|
}, [])
|
|
313
361
|
|
|
362
|
+
const updateAssets = useCallback((update: (assets: TAssets) => TAssets) => {
|
|
363
|
+
const live = liveAssetsRef.current
|
|
364
|
+
|
|
365
|
+
if (!live) return
|
|
366
|
+
|
|
367
|
+
const next = update(live)
|
|
368
|
+
|
|
369
|
+
liveAssetsRef.current = next
|
|
370
|
+
setAssets(next)
|
|
371
|
+
}, [])
|
|
372
|
+
|
|
373
|
+
const retry = useCallback(() => {
|
|
374
|
+
setErrorMessage(null)
|
|
375
|
+
setLoadingProgress(initialProgress)
|
|
376
|
+
setLoadAttempt((attempt) => attempt + 1)
|
|
377
|
+
}, [initialProgress])
|
|
378
|
+
|
|
314
379
|
const selectedRelease = useMemo(
|
|
315
380
|
() => manifest?.releases.find((r) => r.version === selectedVersion) ?? null,
|
|
316
381
|
[manifest, selectedVersion]
|
|
@@ -322,12 +387,16 @@ export function useReleaseRuntime<TAssets, TRelease extends ReleaseBase = Releas
|
|
|
322
387
|
selectedRelease,
|
|
323
388
|
assets,
|
|
324
389
|
ready: assets !== null,
|
|
390
|
+
manifestAbsent,
|
|
325
391
|
loadingProgress,
|
|
326
392
|
loadingStepIndex,
|
|
327
393
|
loadingStepLabels,
|
|
328
394
|
loadingByteFraction,
|
|
329
395
|
errorMessage,
|
|
330
396
|
activeBackend,
|
|
397
|
+
loadingLedger,
|
|
331
398
|
selectVersion,
|
|
399
|
+
retry,
|
|
400
|
+
updateAssets,
|
|
332
401
|
}
|
|
333
402
|
}
|
package/lib/runtime.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 Node-safe release-runtime exports.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -1,13 +1,17 @@
|
|
|
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
|
+
* The docs search modal.
|
|
6
|
+
*
|
|
7
|
+
* A native `<dialog>` opened with `showModal()` supplies the focus trap, the inert background,
|
|
8
|
+
* the backdrop, the close on Escape and the return of focus to the opener.
|
|
9
|
+
* The query field is an `<input type="search">` with the ARIA combobox role.
|
|
10
|
+
*
|
|
11
|
+
* DOM focus stays on the input, and `aria-activedescendant` identifies the selected hit.
|
|
12
|
+
* The component owns no data access: `search` is passed in.
|
|
5
13
|
*
|
|
6
|
-
* The
|
|
7
|
-
* background, the backdrop, the close on Escape and the return of focus to the opener. The query field is an
|
|
8
|
-
* `<input type="search">` with the ARIA combobox role. DOM focus stays on the input, and
|
|
9
|
-
* `aria-activedescendant` identifies the selected hit. The component owns no data access: `search` is
|
|
10
|
-
* passed in. The hits a reader opened are kept as recent hits, a per-viewer convenience in
|
|
14
|
+
* The hits a reader opened are kept as recent hits, a per-viewer convenience in
|
|
11
15
|
* `localStorage`; the modal renders the same without them.
|
|
12
16
|
*/
|
|
13
17
|
|
|
@@ -351,7 +355,7 @@ export function SearchModal({ open, onClose, onNavigate, search, recentKey }: Se
|
|
|
351
355
|
}
|
|
352
356
|
|
|
353
357
|
function onKeyDown(event: KeyboardEvent<HTMLInputElement>) {
|
|
354
|
-
// A key that commits or edits an IME composition
|
|
358
|
+
// A key that commits or edits an IME composition isn't a command.
|
|
355
359
|
if (event.nativeEvent.isComposing) return
|
|
356
360
|
|
|
357
361
|
// The options on screen, if any, answer an earlier query, so the Enter waits for the field's query to settle.
|
package/lib/search/search.css
CHANGED
package/lib/search/tokens.ts
CHANGED
|
@@ -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
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
+
* How a docs search query divides into terms.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
7
|
+
* The query code matches these terms against the index, and the modal emphasizes
|
|
8
|
+
* the same terms in a hit's title, so the two agree on what matched.
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
*
|
|
13
14
|
* The index drops term positions, so a quoted FTS5 string must hold one token.
|
|
14
15
|
* The text is split where the `unicode61` tokenizer splits it, at any character
|
|
15
|
-
* that
|
|
16
|
+
* that's neither a letter nor a digit.
|
|
16
17
|
*/
|
|
17
18
|
export function queryTokens(text: string): string[] {
|
|
18
19
|
return text.split(/[^\p{L}\p{N}]+/u).filter((token) => token !== "")
|
package/lib/search/types.ts
CHANGED
|
@@ -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
|
+
* The record the docs build indexes and the response the search modal renders.
|
|
5
6
|
*
|
|
6
|
-
* The
|
|
7
|
-
* query code share these through `import type`.
|
|
7
|
+
* The modal and the query code share these through `import type`.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -24,7 +24,7 @@ export interface SearchRecord {
|
|
|
24
24
|
*/
|
|
25
25
|
id: string
|
|
26
26
|
/**
|
|
27
|
-
* Site-relative path without the anchor, such as `/docs/
|
|
27
|
+
* Site-relative path without the anchor, such as `/docs/reference/cli`.
|
|
28
28
|
*/
|
|
29
29
|
url: string
|
|
30
30
|
/**
|
package/lib/search.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 The docs search modal and its wire types.
|
|
6
6
|
*/
|
|
7
7
|
|
package/out/common/About.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/**
|
|
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.
|
|
2
|
+
* `About` — the explainer for the browser geocoder: the neural model, the confidence colors,
|
|
3
|
+
* the gazetteer resolver, the byte-range database and the FST prior.
|
|
4
|
+
* It renders no live content.
|
|
7
5
|
*/
|
|
8
6
|
import type { ReactNode } from "react";
|
|
9
7
|
export interface AboutProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"About.d.ts","sourceRoot":"","sources":["../../lib/common/About.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"About.d.ts","sourceRoot":"","sources":["../../lib/common/About.tsx"],"names":[],"mappings":"AAGA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,WAAW,UAAU;IAC1B;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,wBAAgB,KAAK,CAAC,EAAE,WAAkB,EAAE,GAAE,UAAe,GAAG,SAAS,CAkFxE"}
|
package/out/common/About.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"About.js","sourceRoot":"","sources":["../../lib/common/About.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"About.js","sourceRoot":"","sources":["../../lib/common/About.tsx"],"names":[],"mappings":";AAuBA,MAAM,UAAU,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,GAAe,EAAE;IAC5D,MAAM,IAAI,GAAG,CACZ,eAAK,SAAS,EAAC,gBAAgB,aAC9B,mBAAS,SAAS,EAAC,mBAAmB,aACrC,aAAI,SAAS,EAAC,mBAAmB,6BAAkB,EACnD,kRAGmC,+CAAgC,gJAE/D,IACK,EAEV,mBAAS,SAAS,EAAC,mBAAmB,aACrC,aAAI,SAAS,EAAC,mBAAmB,kCAAuB,EACxD,0JAGI,EACJ,cAAI,SAAS,EAAC,kBAAkB,aAC/B,cAAI,SAAS,EAAC,gBAAgB,aAC7B,eAAM,SAAS,EAAC,yCAAyC,GAAG,EAC5D,qCAAsB,0EAClB,EACL,cAAI,SAAS,EAAC,gBAAgB,aAC7B,eAAM,SAAS,EAAC,wCAAwC,GAAG,EAC3D,qCAAsB,oEAClB,EACL,cAAI,SAAS,EAAC,gBAAgB,aAC7B,eAAM,SAAS,EAAC,wCAAwC,GAAG,EAC3D,mCAAoB,gFAChB,IACD,EACL,0IAEC,8CAA6B,4EAC1B,IACK,EAEV,mBAAS,SAAS,EAAC,mBAAmB,aACrC,aAAI,SAAS,EAAC,mBAAmB,6BAAkB,EACnD,yEAC8C,8CAAoC,uVAI9E,IACK,EAEV,mBAAS,SAAS,EAAC,mBAAmB,aACrC,aAAI,SAAS,EAAC,mBAAmB,qCAA0B,EAC3D,mHACyF,GAAG,EAC3F,2CAA4B,6LAEzB,IACK,EAEV,mBAAS,SAAS,EAAC,mBAAmB,aACrC,aAAI,SAAS,EAAC,mBAAmB,0BAAe,EAChD,8BACG,uDAAwC,0cAKvC,IACK,IACL,CACN,CAAA;IAED,IAAI,CAAC,WAAW;QAAE,OAAO,IAAI,CAAA;IAE7B,OAAO,CACN,mBAAS,SAAS,EAAC,UAAU,aAC5B,mBAAS,SAAS,EAAC,mBAAmB,aACrC,eAAM,SAAS,EAAC,gBAAgB,6BAAU,2BAEjC,EACT,IAAI,IACI,CACV,CAAA;AACF,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
2
|
+
* `ClientOnly` — a portable SSR boundary that renders `fallback` on the server and first client paint.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
4
|
+
* It swaps to `children()` after mounting, keeping timers, clipboard
|
|
5
|
+
* and dynamic imports off the server render.
|
|
7
6
|
*/
|
|
8
7
|
import { type ReactNode } from "react";
|
|
9
8
|
export interface ClientOnlyProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientOnly.d.ts","sourceRoot":"","sources":["../../lib/common/ClientOnly.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClientOnly.d.ts","sourceRoot":"","sources":["../../lib/common/ClientOnly.tsx"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAA;AAM5D,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,SAAS,CAAA;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,QAAe,EAAE,EAAE,eAAe,GAAG,SAAS,CAQpF"}
|
package/out/common/ClientOnly.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
4
|
+
* `ClientOnly` — a portable SSR boundary that renders `fallback` on the server and first client paint.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* It swaps to `children()` after mounting, keeping timers, clipboard
|
|
7
|
+
* and dynamic imports off the server render.
|
|
7
8
|
*/
|
|
8
9
|
import { useSyncExternalStore } from "react";
|
|
9
10
|
function subscribeNever() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientOnly.js","sourceRoot":"","sources":["../../lib/common/ClientOnly.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ClientOnly.js","sourceRoot":"","sources":["../../lib/common/ClientOnly.tsx"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;GAKG;AAEH,OAAO,EAAkB,oBAAoB,EAAE,MAAM,OAAO,CAAA;AAE5D,SAAS,cAAc;IACtB,OAAO,GAAG,EAAE,GAAE,CAAC,CAAA;AAChB,CAAC;AAaD,MAAM,UAAU,UAAU,CAAC,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,EAAmB;IACxE,MAAM,OAAO,GAAG,oBAAoB,CACnC,cAAc,EACd,GAAG,EAAE,CAAC,IAAI,EACV,GAAG,EAAE,CAAC,KAAK,CACX,CAAA;IAED,OAAO,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAA;AACvC,CAAC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
2
|
* `CopyButton` — a small presentational button that copies a string and shows a transient checkmark.
|
|
7
|
-
*
|
|
3
|
+
*
|
|
4
|
+
* Wraps {@link useClipboard}.
|
|
5
|
+
* Used by both explorers (OverpassQL copy, parse-JSON copy).
|
|
8
6
|
*/
|
|
9
7
|
import type { ReactNode } from "react";
|
|
10
8
|
export interface CopyButtonProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyButton.d.ts","sourceRoot":"","sources":["../../lib/common/CopyButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CopyButton.d.ts","sourceRoot":"","sources":["../../lib/common/CopyButton.tsx"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,MAAM,WAAW,eAAe;IAC/B;;;;OAIG;IACH,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAA;IAC9B;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,UAAU,CAAC,EAC1B,KAAK,EACL,KAAc,EACd,WAAwB,EACxB,SAAoB,EACpB,QAAQ,GACR,EAAE,eAAe,GAAG,SAAS,CAa7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyButton.js","sourceRoot":"","sources":["../../lib/common/CopyButton.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CopyButton.js","sourceRoot":"","sources":["../../lib/common/CopyButton.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAyBnD,MAAM,UAAU,UAAU,CAAC,EAC1B,KAAK,EACL,KAAK,GAAG,MAAM,EACd,WAAW,GAAG,UAAU,EACxB,SAAS,GAAG,QAAQ,EACpB,QAAQ,GACS;IACjB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,CAAA;IAEvC,OAAO,CACN,iBACC,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,YAEjE,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,GACrB,CACT,CAAA;AACF,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
2
|
+
* `KindBadge` — compact display of the Stage 2.5 kind-classifier verdict:
|
|
3
|
+
* the top kind + confidence as a pill, expanding to the alternatives on click.
|
|
5
4
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* pipeline's projection satisfy it without a hard type dependency.
|
|
5
|
+
* Shared by both explorers.
|
|
6
|
+
* The result type is kept structural (`kind: string`) so both the POI query classifier's
|
|
7
|
+
* `QueryKindResult` and the pipeline's projection satisfy it without a hard type dependency.
|
|
10
8
|
*/
|
|
11
9
|
import type { KindView } from "@mailwoman/core/pipeline/client-result";
|
|
12
10
|
import type { ReactNode } from "react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KindBadge.d.ts","sourceRoot":"","sources":["../../lib/common/KindBadge.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KindBadge.d.ts","sourceRoot":"","sources":["../../lib/common/KindBadge.tsx"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAA;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,WAAW,cAAc;IAC9B,UAAU,EAAE,QAAQ,CAAA;CACpB;AAID,wBAAgB,SAAS,CAAC,EAAE,UAAU,EAAE,EAAE,cAAc,GAAG,SAAS,CAkBnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KindBadge.js","sourceRoot":"","sources":["../../lib/common/KindBadge.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"KindBadge.js","sourceRoot":"","sources":["../../lib/common/KindBadge.tsx"],"names":[],"mappings":";AAmBA,MAAM,SAAS,GAAG,CAAC,CAAS,EAAU,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,CAAA;AAElE,MAAM,UAAU,SAAS,CAAC,EAAE,UAAU,EAAkB;IACvD,OAAO,CACN,mBAAS,SAAS,EAAC,SAAS,aAC3B,mBAAS,SAAS,EAAC,kBAAkB,aACpC,qCAAsB,OAAC,yBAAO,UAAU,CAAC,IAAI,GAAQ,EAAC,GAAG,EACzD,gBAAM,SAAS,EAAC,qBAAqB,kBAAG,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,SAAS,IACxE,EACT,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CACjC,aAAI,SAAS,EAAC,uBAAuB,YACnC,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACrC,yBACC,yBAAO,GAAG,CAAC,IAAI,GAAQ,OAAC,gBAAM,SAAS,EAAC,qBAAqB,kBAAG,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,SAAS,KAD1F,GAAG,CAAC,IAAI,CAEZ,CACL,CAAC,GACE,CACL,CAAC,CAAC,CAAC,IAAI,IACC,CACV,CAAA;AACF,CAAC"}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* LoadingIndicator — pure-CSS loading states for three UX patterns: `pulse` (skeleton bars),
|
|
7
|
-
* `spinner` (rotation ring), and `staged` (a step list with checkmarks). SSR-safe: every animation
|
|
8
|
-
* is CSS-driven, so the component renders identically on server and client. Ported from the docs
|
|
9
|
-
* component onto plain (`mw-`-prefixed) class names.
|
|
10
|
-
*/
|
|
11
1
|
export type LoadingMode = "pulse" | "spinner" | "staged";
|
|
12
2
|
export interface LoadingIndicatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
13
3
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingIndicator.d.ts","sourceRoot":"","sources":["../../lib/common/LoadingIndicator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LoadingIndicator.d.ts","sourceRoot":"","sources":["../../lib/common/LoadingIndicator.tsx"],"names":[],"mappings":"AAeA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAA;AAExD,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAClF;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACnB;AAQD;;GAEG;AACH,eAAO,MAAM,gBAAgB,6DAkB3B,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
3
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
2
4
|
/**
|
|
3
|
-
* @copyright Sister Software
|
|
4
|
-
* @license AGPL-3.0
|
|
5
|
-
* @author Teffen Ellis, et al.
|
|
6
|
-
*
|
|
7
5
|
* LoadingIndicator — pure-CSS loading states for three UX patterns: `pulse` (skeleton bars),
|
|
8
|
-
* `spinner` (rotation ring), and `staged` (a step list with checkmarks).
|
|
9
|
-
*
|
|
10
|
-
* 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.
|
|
11
10
|
*/
|
|
12
11
|
import { memo } from "react";
|
|
13
12
|
import { cx } from "#common/cx";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingIndicator.js","sourceRoot":"","sources":["../../lib/common/LoadingIndicator.tsx"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"LoadingIndicator.js","sourceRoot":"","sources":["../../lib/common/LoadingIndicator.tsx"],"names":[],"mappings":";AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAAkB,MAAM,OAAO,CAAA;AAE5C,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAA;AAuC/B,MAAM,UAAU,GAA+D;IAC9E,KAAK,EAAE,mBAAmB;IAC1B,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,mBAAmB;CAC1B,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAwB,SAAS,gBAAgB,CAAC,EACrF,IAAI,GAAG,SAAS,EAChB,KAAK,EACL,QAAQ,GAAG,CAAC,EACZ,IAAI,GAAG,QAAQ,EACf,KAAK,EACL,UAAU,GAAG,CAAC,CAAC,EACf,SAAS,EACT,GAAG,IAAI,EACP;IACA,OAAO,CACN,eAAK,SAAS,EAAE,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,EAAE,IAAI,EAAC,QAAQ,gBAAa,KAAK,IAAI,SAAS,KAAM,IAAI,aACjG,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,KAAC,SAAS,IAAC,KAAK,EAAE,QAAQ,GAAI,CAAC,CAAC,CAAC,IAAI,EACxD,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,KAAC,WAAW,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACvD,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAC,cAAc,IAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,GAAI,CAAC,CAAC,CAAC,IAAI,EACnF,KAAK,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,mBAAmB,YAAE,KAAK,GAAQ,CAAC,CAAC,CAAC,IAAI,IAC7D,CACN,CAAA;AACF,CAAC,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,IAAI,CAAoB,SAAS,SAAS,CAAC,EAAE,KAAK,EAAE;IACrE,OAAO,CACN,cAAK,SAAS,EAAC,UAAU,YACvB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACxC,cAAa,SAAS,EAAC,eAAe,IAA5B,CAAC,CAA8B,CACzC,CAAC,GACG,CACN,CAAA;AACF,CAAC,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAI,CAAuD,SAAS,WAAW,CAAC,EAAE,IAAI,EAAE;IAC3G,OAAO,cAAK,SAAS,EAAE,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,GAAI,CAAA;AAC9D,CAAC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAI,CAA2C,SAAS,cAAc,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE;IAClH,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM;QAAE,OAAO,IAAI,CAAA;IAExC,OAAO,CACN,aAAI,SAAS,EAAC,WAAW,YACvB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAa,EAAE;YACjC,MAAM,UAAU,GAAG,CAAC,GAAG,UAAU,CAAA;YACjC,MAAM,QAAQ,GAAG,CAAC,KAAK,UAAU,CAAA;YAEjC,OAAO,CACN,cAEC,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE;oBAChC,2BAA2B,EAAE,UAAU;oBACvC,yBAAyB,EAAE,QAAQ;oBACnC,0BAA0B,EAAE,CAAC,UAAU,IAAI,CAAC,QAAQ;iBACpD,CAAC,aAEF,eAAM,SAAS,EAAC,iBAAiB,YAC/B,UAAU,CAAC,CAAC,CAAC,CACb,eAAM,SAAS,EAAC,kBAAkB,GAAG,CACrC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CACd,eAAM,SAAS,EAAC,gBAAgB,GAAG,CACnC,CAAC,CAAC,CAAC,IAAI,GACF,EACP,yBAAO,IAAI,GAAQ,KAdd,CAAC,CAeF,CACL,CAAA;QACF,CAAC,CAAC,GACE,CACL,CAAA;AACF,CAAC,CAAC,CAAA"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
2
|
+
* `PresetChips` is the "Try:" row of example buttons shared by both explorers.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
7
|
-
* renders a labeled list and calls `onPick` with the chosen preset's value.
|
|
4
|
+
* Presentational: it renders a labeled list and calls `onPick` with the chosen preset's value.
|
|
8
5
|
*/
|
|
9
6
|
import type { ReactNode } from "react";
|
|
10
7
|
export interface Preset {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresetChips.d.ts","sourceRoot":"","sources":["../../lib/common/PresetChips.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PresetChips.d.ts","sourceRoot":"","sources":["../../lib/common/PresetChips.tsx"],"names":[],"mappings":"AAGA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,WAAW,MAAM;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IAC9B,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAgB,EAAE,QAAQ,EAAE,EAAE,gBAAgB,GAAG,SAAS,CAmBlH"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
2
|
* @file Confidence banding shared by every component that colors a span by confidence.
|
|
6
3
|
*
|
|
7
4
|
* It is a presentation choice rather than a model one: the parser emits a continuous confidence and these
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confidence-tiers.d.ts","sourceRoot":"","sources":["../../lib/common/confidence-tiers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"confidence-tiers.d.ts","sourceRoot":"","sources":["../../lib/common/confidence-tiers.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAA;AAEtC;;;GAGG;AACH,eAAO,MAAM,kBAAkB,MAAM,CAAA;AAErC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAA;AAEnD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc,CAMjE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,cAAc,CAI9E"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
4
|
* @file Confidence banding shared by every component that colors a span by confidence.
|
|
6
5
|
*
|
|
7
6
|
* It is a presentation choice rather than a model one: the parser emits a continuous confidence and these
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confidence-tiers.js","sourceRoot":"","sources":["../../lib/common/confidence-tiers.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"confidence-tiers.js","sourceRoot":"","sources":["../../lib/common/confidence-tiers.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;GAMG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;AAEtC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAA;AAOrC;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,UAAkB;IAChD,IAAI,UAAU,IAAI,mBAAmB;QAAE,OAAO,MAAM,CAAA;IAEpD,IAAI,UAAU,IAAI,kBAAkB;QAAE,OAAO,KAAK,CAAA;IAElD,OAAO,KAAK,CAAA;AACb,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,UAA0B;IAC7D,IAAI,UAAU,IAAI,IAAI;QAAE,OAAO,KAAK,CAAA;IAEpC,OAAO,cAAc,CAAC,UAAU,CAAC,CAAA;AAClC,CAAC"}
|
package/out/common/cx.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
2
|
+
* Tiny classname joiner — the only utility the presentational units need.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* siblings and the React peer.
|
|
4
|
+
* Kept in-package (rather than pulling `classnames`) so `@mailwoman/react` ships zero
|
|
5
|
+
* runtime deps beyond its `@mailwoman/*` siblings and the React peer.
|
|
9
6
|
*/
|
|
10
7
|
export type ClassValue = string | number | false | null | undefined | Record<string, boolean>;
|
|
11
8
|
/**
|
package/out/common/cx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cx.d.ts","sourceRoot":"","sources":["../../lib/common/cx.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cx.d.ts","sourceRoot":"","sources":["../../lib/common/cx.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAE7F;;;;GAIG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAoBlD"}
|
package/out/common/cx.js
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Tiny classname joiner — the only utility the presentational units need. Kept in-package (rather
|
|
7
|
-
* than pulling `classnames`) so `@mailwoman/react` ships zero runtime deps beyond its `@mailwoman/*`
|
|
8
|
-
* siblings and the React peer.
|
|
9
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
10
3
|
/**
|
|
11
4
|
* Join truthy class tokens.
|
|
12
5
|
*
|
package/out/common/cx.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cx.js","sourceRoot":"","sources":["../../lib/common/cx.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cx.js","sourceRoot":"","sources":["../../lib/common/cx.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAWlE;;;;GAIG;AACH,MAAM,UAAU,EAAE,CAAC,GAAG,MAAoB;IACzC,MAAM,GAAG,GAAa,EAAE,CAAA;IAExB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK;YAAE,SAAQ;QAEpB,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC5D,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;YAEvB,SAAQ;QACT,CAAC;QAED,KAAK,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/C,IAAI,EAAE,EAAE,CAAC;gBACR,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;YACd,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACrB,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
2
|
* @file Word tokenization + span ownership shared by the word-level visualizers.
|
|
6
3
|
*
|
|
7
4
|
* A word-level panel splits the raw input on whitespace and assigns each word to its most specific
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-tokens.d.ts","sourceRoot":"","sources":["../../lib/common/text-tokens.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-tokens.d.ts","sourceRoot":"","sources":["../../lib/common/text-tokens.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAEvD,MAAM,WAAW,SAAS;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;CACX;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,CA2BxD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,EAAE,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG,MAAM,EAAE,CAcrG"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
* @file Word tokenization + span ownership shared by the word-level visualizers.
|
|
6
|
-
*
|
|
7
|
-
* A word-level panel splits the raw input on whitespace and assigns each word to its most specific
|
|
8
|
-
* covering span (the shortest-span owner, the same rule a character-level highlight applies per
|
|
9
|
-
* character). Two panels must agree for the BIO labels to line up between them, so the split and
|
|
10
|
-
* the owner walk live here.
|
|
11
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
12
3
|
/**
|
|
13
4
|
* Tokenize the raw input into words, preserving leading whitespace for each token.
|
|
14
5
|
*/
|