@mailwoman/react 10.0.0 → 10.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 +17 -16
- package/fonts.css +97 -22
- package/lib/common/About.tsx +7 -7
- package/lib/common/ClientOnly.tsx +2 -14
- package/lib/common/CopyButton.tsx +3 -1
- package/lib/common/LoadingIndicator.tsx +4 -2
- package/lib/common/PresetChips.tsx +9 -8
- package/lib/common/confidence-tiers.ts +7 -6
- package/lib/common/cx.ts +3 -1
- package/lib/common/text-tokens.ts +7 -4
- package/lib/common/useBuildInfo.ts +54 -0
- package/lib/common/useClipboard.ts +2 -11
- package/lib/common.ts +22 -0
- package/lib/index.ts +27 -17
- package/lib/map/AppIdentity.tsx +85 -0
- package/lib/map/BackendControl.tsx +9 -10
- package/lib/map/CompareToggle.tsx +8 -31
- package/lib/map/DebugInfo.tsx +88 -0
- package/lib/map/Geocoder.tsx +60 -46
- package/lib/map/GeocoderControls.tsx +430 -134
- package/lib/map/GraticuleLayer.tsx +54 -0
- package/lib/map/MapCanvas.tsx +23 -12
- package/lib/map/MapChipRow.tsx +4 -8
- package/lib/map/MapCompass.tsx +15 -24
- package/lib/map/MapControlStack.tsx +8 -9
- package/lib/map/MapFooter.tsx +2 -16
- package/lib/map/MapProgressBar.tsx +10 -13
- package/lib/map/MapSearchBar.tsx +31 -17
- package/lib/map/MapSheet.tsx +24 -15
- package/lib/map/OverlayLayers.tsx +1 -1
- package/lib/map/PlaceAutocomplete.tsx +10 -21
- package/lib/map/PlaceMarker.tsx +4 -2
- package/lib/map/ResolvedPlaceLayers.tsx +5 -14
- package/lib/map/ResultCamera.tsx +8 -31
- package/lib/map/ResultOverlay.tsx +2 -12
- package/lib/map/ResultPanel.tsx +1 -20
- package/lib/map/VersionPicker.tsx +10 -19
- package/lib/map/fake-runtime.ts +10 -12
- package/lib/map/geometry.ts +14 -47
- package/lib/map/graticule.ts +80 -0
- package/lib/map/map-debug.ts +1 -1
- package/lib/map/place-render.ts +28 -60
- package/lib/map/types.ts +58 -104
- package/lib/map/useCompareState.ts +5 -4
- package/lib/map/useGeocode.ts +7 -5
- package/lib/map/useMapBearing.ts +13 -13
- package/lib/map/useMapLabelPick.ts +21 -30
- package/lib/map/useMapPlaceRender.ts +2 -6
- package/lib/map/usePlaceAutocomplete.ts +44 -50
- package/lib/map.ts +95 -0
- package/lib/pipeline/CandidatePicker.tsx +13 -5
- package/lib/pipeline/ConfidenceCell.tsx +1 -1
- package/lib/pipeline/FailureDiagnostic.tsx +8 -2
- package/lib/pipeline/QueryForm.tsx +5 -2
- package/lib/pipeline/ResolvedPlace.tsx +1 -1
- package/lib/pipeline/SpanHighlight.tsx +7 -5
- package/lib/pipeline/TimingPanel.tsx +1 -1
- package/lib/pipeline/TreeView.tsx +1 -1
- package/lib/pipeline/copy.ts +22 -25
- package/lib/pipeline/presets.ts +15 -13
- package/lib/pipeline/types.ts +21 -14
- package/lib/pipeline/useParsePipeline.ts +16 -13
- package/lib/pipeline.ts +36 -0
- package/lib/poi/AbstainPanel.tsx +1 -1
- package/lib/poi/LiveResultsBlock.tsx +2 -1
- package/lib/poi/POIExplorer.tsx +24 -15
- package/lib/poi/QueryInput.tsx +1 -1
- package/lib/poi/SubjectPanel.tsx +4 -3
- package/lib/poi/runtime.ts +5 -16
- package/lib/poi/types.ts +39 -27
- package/lib/poi/usePOISearch.ts +39 -44
- package/lib/poi.ts +39 -0
- package/lib/runtime/useReleaseRuntime.ts +125 -74
- package/lib/search/SearchModal.tsx +317 -0
- package/lib/search/search.css +144 -0
- package/lib/search/types.ts +67 -0
- package/lib/search.ts +11 -0
- package/out/common/About.d.ts +5 -5
- package/out/common/About.d.ts.map +1 -1
- package/out/common/About.js +1 -1
- package/out/common/About.js.map +1 -1
- package/out/common/ClientOnly.d.ts +2 -11
- package/out/common/ClientOnly.d.ts.map +1 -1
- package/out/common/ClientOnly.js +1 -13
- package/out/common/ClientOnly.js.map +1 -1
- package/out/common/CopyButton.d.ts +3 -1
- package/out/common/CopyButton.d.ts.map +1 -1
- package/out/common/CopyButton.js.map +1 -1
- package/out/common/LoadingIndicator.d.ts +4 -2
- package/out/common/LoadingIndicator.d.ts.map +1 -1
- package/out/common/LoadingIndicator.js.map +1 -1
- package/out/common/PresetChips.d.ts +9 -8
- package/out/common/PresetChips.d.ts.map +1 -1
- package/out/common/PresetChips.js.map +1 -1
- package/out/common/confidence-tiers.d.ts +7 -6
- package/out/common/confidence-tiers.d.ts.map +1 -1
- package/out/common/confidence-tiers.js +7 -6
- package/out/common/confidence-tiers.js.map +1 -1
- package/out/common/cx.d.ts +3 -1
- package/out/common/cx.d.ts.map +1 -1
- package/out/common/cx.js +3 -1
- package/out/common/cx.js.map +1 -1
- package/out/common/text-tokens.d.ts +4 -3
- package/out/common/text-tokens.d.ts.map +1 -1
- package/out/common/text-tokens.js +6 -3
- package/out/common/text-tokens.js.map +1 -1
- package/out/common/useBuildInfo.d.ts +27 -0
- package/out/common/useBuildInfo.d.ts.map +1 -0
- package/out/common/useBuildInfo.js +32 -0
- package/out/common/useBuildInfo.js.map +1 -0
- package/out/common/useClipboard.d.ts +1 -3
- package/out/common/useClipboard.d.ts.map +1 -1
- package/out/common/useClipboard.js +2 -11
- package/out/common/useClipboard.js.map +1 -1
- package/out/common.d.ts +22 -0
- package/out/common.d.ts.map +1 -0
- package/out/common.js +15 -0
- package/out/common.js.map +1 -0
- package/out/index.d.ts +26 -16
- package/out/index.d.ts.map +1 -1
- package/out/index.js +21 -15
- package/out/index.js.map +1 -1
- package/out/map/AppIdentity.d.ts +42 -0
- package/out/map/AppIdentity.d.ts.map +1 -0
- package/out/map/AppIdentity.js +16 -0
- package/out/map/AppIdentity.js.map +1 -0
- package/out/map/BackendControl.d.ts +9 -10
- package/out/map/BackendControl.d.ts.map +1 -1
- package/out/map/BackendControl.js +1 -1
- package/out/map/BackendControl.js.map +1 -1
- package/out/map/CompareToggle.d.ts +8 -31
- package/out/map/CompareToggle.d.ts.map +1 -1
- package/out/map/CompareToggle.js +4 -1
- package/out/map/CompareToggle.js.map +1 -1
- package/out/map/DebugInfo.d.ts +34 -0
- package/out/map/DebugInfo.d.ts.map +1 -0
- package/out/map/DebugInfo.js +39 -0
- package/out/map/DebugInfo.js.map +1 -0
- package/out/map/Geocoder.d.ts +41 -30
- package/out/map/Geocoder.d.ts.map +1 -1
- package/out/map/Geocoder.js +20 -36
- package/out/map/Geocoder.js.map +1 -1
- package/out/map/GeocoderControls.d.ts +14 -42
- package/out/map/GeocoderControls.d.ts.map +1 -1
- package/out/map/GeocoderControls.js +250 -38
- package/out/map/GeocoderControls.js.map +1 -1
- package/out/map/GraticuleLayer.d.ts +28 -0
- package/out/map/GraticuleLayer.d.ts.map +1 -0
- package/out/map/GraticuleLayer.js +25 -0
- package/out/map/GraticuleLayer.js.map +1 -0
- package/out/map/MapCanvas.d.ts +23 -12
- package/out/map/MapCanvas.d.ts.map +1 -1
- package/out/map/MapCanvas.js +5 -2
- package/out/map/MapCanvas.js.map +1 -1
- package/out/map/MapChipRow.d.ts +4 -8
- package/out/map/MapChipRow.d.ts.map +1 -1
- package/out/map/MapChipRow.js.map +1 -1
- package/out/map/MapCompass.d.ts +11 -20
- package/out/map/MapCompass.d.ts.map +1 -1
- package/out/map/MapCompass.js +5 -1
- package/out/map/MapCompass.js.map +1 -1
- package/out/map/MapControlStack.d.ts +8 -9
- package/out/map/MapControlStack.d.ts.map +1 -1
- package/out/map/MapControlStack.js +4 -1
- package/out/map/MapControlStack.js.map +1 -1
- package/out/map/MapFooter.d.ts +2 -15
- package/out/map/MapFooter.d.ts.map +1 -1
- package/out/map/MapFooter.js +0 -14
- package/out/map/MapFooter.js.map +1 -1
- package/out/map/MapProgressBar.d.ts +10 -13
- package/out/map/MapProgressBar.d.ts.map +1 -1
- package/out/map/MapProgressBar.js.map +1 -1
- package/out/map/MapSearchBar.d.ts +16 -17
- package/out/map/MapSearchBar.d.ts.map +1 -1
- package/out/map/MapSearchBar.js +6 -0
- package/out/map/MapSearchBar.js.map +1 -1
- package/out/map/MapSheet.d.ts +15 -12
- package/out/map/MapSheet.d.ts.map +1 -1
- package/out/map/MapSheet.js +8 -12
- package/out/map/MapSheet.js.map +1 -1
- package/out/map/OverlayLayers.d.ts +1 -1
- package/out/map/OverlayLayers.js +1 -1
- package/out/map/PlaceAutocomplete.d.ts +10 -21
- package/out/map/PlaceAutocomplete.d.ts.map +1 -1
- package/out/map/PlaceAutocomplete.js +2 -1
- package/out/map/PlaceAutocomplete.js.map +1 -1
- package/out/map/PlaceMarker.d.ts +4 -2
- package/out/map/PlaceMarker.d.ts.map +1 -1
- package/out/map/PlaceMarker.js +3 -1
- package/out/map/PlaceMarker.js.map +1 -1
- package/out/map/ResolvedPlaceLayers.d.ts +5 -14
- package/out/map/ResolvedPlaceLayers.d.ts.map +1 -1
- package/out/map/ResolvedPlaceLayers.js +1 -1
- package/out/map/ResolvedPlaceLayers.js.map +1 -1
- package/out/map/ResultCamera.d.ts +8 -31
- package/out/map/ResultCamera.d.ts.map +1 -1
- package/out/map/ResultCamera.js +3 -28
- package/out/map/ResultCamera.js.map +1 -1
- package/out/map/ResultOverlay.d.ts +2 -12
- package/out/map/ResultOverlay.d.ts.map +1 -1
- package/out/map/ResultOverlay.js +1 -2
- package/out/map/ResultOverlay.js.map +1 -1
- package/out/map/ResultPanel.d.ts +1 -20
- package/out/map/ResultPanel.d.ts.map +1 -1
- package/out/map/ResultPanel.js.map +1 -1
- package/out/map/VersionPicker.d.ts +7 -19
- package/out/map/VersionPicker.d.ts.map +1 -1
- package/out/map/VersionPicker.js +5 -2
- package/out/map/VersionPicker.js.map +1 -1
- package/out/map/fake-runtime.d.ts +9 -11
- package/out/map/fake-runtime.d.ts.map +1 -1
- package/out/map/fake-runtime.js +9 -12
- package/out/map/fake-runtime.js.map +1 -1
- package/out/map/geometry.d.ts +13 -34
- package/out/map/geometry.d.ts.map +1 -1
- package/out/map/geometry.js +9 -34
- package/out/map/geometry.js.map +1 -1
- package/out/map/graticule.d.ts +17 -0
- package/out/map/graticule.d.ts.map +1 -0
- package/out/map/graticule.js +67 -0
- package/out/map/graticule.js.map +1 -0
- package/out/map/map-debug.d.ts +1 -1
- package/out/map/map-debug.js +1 -1
- package/out/map/place-render.d.ts +23 -43
- package/out/map/place-render.d.ts.map +1 -1
- package/out/map/place-render.js +4 -39
- package/out/map/place-render.js.map +1 -1
- package/out/map/types.d.ts +58 -102
- package/out/map/types.d.ts.map +1 -1
- package/out/map/types.js +1 -10
- package/out/map/types.js.map +1 -1
- package/out/map/useCompareState.d.ts +5 -4
- package/out/map/useCompareState.d.ts.map +1 -1
- package/out/map/useCompareState.js +3 -3
- package/out/map/useCompareState.js.map +1 -1
- package/out/map/useGeocode.d.ts +5 -3
- package/out/map/useGeocode.d.ts.map +1 -1
- package/out/map/useGeocode.js +4 -4
- package/out/map/useGeocode.js.map +1 -1
- package/out/map/useMapBearing.d.ts +11 -11
- package/out/map/useMapBearing.d.ts.map +1 -1
- package/out/map/useMapBearing.js +6 -11
- package/out/map/useMapBearing.js.map +1 -1
- package/out/map/useMapLabelPick.d.ts +4 -14
- package/out/map/useMapLabelPick.d.ts.map +1 -1
- package/out/map/useMapLabelPick.js +21 -30
- package/out/map/useMapLabelPick.js.map +1 -1
- package/out/map/useMapPlaceRender.d.ts +2 -6
- package/out/map/useMapPlaceRender.d.ts.map +1 -1
- package/out/map/useMapPlaceRender.js +2 -6
- package/out/map/useMapPlaceRender.js.map +1 -1
- package/out/map/usePlaceAutocomplete.d.ts +30 -28
- package/out/map/usePlaceAutocomplete.d.ts.map +1 -1
- package/out/map/usePlaceAutocomplete.js +6 -33
- package/out/map/usePlaceAutocomplete.js.map +1 -1
- package/out/map.d.ts +69 -0
- package/out/map.d.ts.map +1 -0
- package/out/map.js +46 -0
- package/out/map.js.map +1 -0
- package/out/pipeline/CandidatePicker.d.ts +12 -2
- package/out/pipeline/CandidatePicker.d.ts.map +1 -1
- package/out/pipeline/CandidatePicker.js +1 -1
- package/out/pipeline/CandidatePicker.js.map +1 -1
- package/out/pipeline/ConfidenceCell.d.ts +1 -1
- package/out/pipeline/ConfidenceCell.js +1 -1
- package/out/pipeline/FailureDiagnostic.d.ts +8 -2
- package/out/pipeline/FailureDiagnostic.d.ts.map +1 -1
- package/out/pipeline/FailureDiagnostic.js +3 -0
- package/out/pipeline/FailureDiagnostic.js.map +1 -1
- package/out/pipeline/QueryForm.d.ts +5 -2
- package/out/pipeline/QueryForm.d.ts.map +1 -1
- package/out/pipeline/QueryForm.js.map +1 -1
- package/out/pipeline/SpanHighlight.d.ts +4 -3
- package/out/pipeline/SpanHighlight.d.ts.map +1 -1
- package/out/pipeline/SpanHighlight.js +3 -2
- package/out/pipeline/SpanHighlight.js.map +1 -1
- package/out/pipeline/TimingPanel.d.ts +1 -1
- package/out/pipeline/TreeView.d.ts +1 -1
- package/out/pipeline/copy.d.ts +1 -1
- package/out/pipeline/copy.d.ts.map +1 -1
- package/out/pipeline/copy.js +4 -3
- package/out/pipeline/copy.js.map +1 -1
- package/out/pipeline/presets.d.ts +5 -4
- package/out/pipeline/presets.d.ts.map +1 -1
- package/out/pipeline/presets.js +15 -13
- package/out/pipeline/presets.js.map +1 -1
- package/out/pipeline/types.d.ts +21 -14
- package/out/pipeline/types.d.ts.map +1 -1
- package/out/pipeline/types.js +2 -4
- package/out/pipeline/types.js.map +1 -1
- package/out/pipeline/useParsePipeline.d.ts +14 -9
- package/out/pipeline/useParsePipeline.d.ts.map +1 -1
- package/out/pipeline/useParsePipeline.js +7 -8
- package/out/pipeline/useParsePipeline.js.map +1 -1
- package/out/pipeline.d.ts +33 -0
- package/out/pipeline.d.ts.map +1 -0
- package/out/pipeline.js +21 -0
- package/out/pipeline.js.map +1 -0
- package/out/poi/AbstainPanel.d.ts +1 -1
- package/out/poi/LiveResultsBlock.d.ts +2 -1
- package/out/poi/LiveResultsBlock.d.ts.map +1 -1
- package/out/poi/LiveResultsBlock.js.map +1 -1
- package/out/poi/POIExplorer.d.ts +22 -12
- package/out/poi/POIExplorer.d.ts.map +1 -1
- package/out/poi/POIExplorer.js +9 -8
- package/out/poi/POIExplorer.js.map +1 -1
- package/out/poi/QueryInput.d.ts +1 -1
- package/out/poi/SubjectPanel.d.ts +2 -2
- package/out/poi/SubjectPanel.d.ts.map +1 -1
- package/out/poi/SubjectPanel.js +2 -1
- package/out/poi/SubjectPanel.js.map +1 -1
- package/out/poi/runtime.d.ts +5 -14
- package/out/poi/runtime.d.ts.map +1 -1
- package/out/poi/runtime.js +5 -16
- package/out/poi/runtime.js.map +1 -1
- package/out/poi/types.d.ts +39 -27
- package/out/poi/types.d.ts.map +1 -1
- package/out/poi/types.js +2 -4
- package/out/poi/types.js.map +1 -1
- package/out/poi/usePOISearch.d.ts +28 -17
- package/out/poi/usePOISearch.d.ts.map +1 -1
- package/out/poi/usePOISearch.js +6 -32
- package/out/poi/usePOISearch.js.map +1 -1
- package/out/poi.d.ts +23 -0
- package/out/poi.d.ts.map +1 -0
- package/out/poi.js +15 -0
- package/out/poi.js.map +1 -0
- package/out/runtime/useReleaseRuntime.d.ts +64 -65
- package/out/runtime/useReleaseRuntime.d.ts.map +1 -1
- package/out/runtime/useReleaseRuntime.js +31 -26
- package/out/runtime/useReleaseRuntime.js.map +1 -1
- package/out/{runtime/index.d.ts → runtime.d.ts} +1 -1
- package/out/runtime.d.ts.map +1 -0
- package/out/{runtime/index.js → runtime.js} +1 -1
- package/out/runtime.js.map +1 -0
- package/out/search/SearchModal.d.ts +33 -0
- package/out/search/SearchModal.d.ts.map +1 -0
- package/out/search/SearchModal.js +187 -0
- package/out/search/SearchModal.js.map +1 -0
- package/out/search/types.d.ts +64 -0
- package/out/search/types.d.ts.map +1 -0
- package/out/search/types.js +13 -0
- package/out/search/types.js.map +1 -0
- package/out/search.d.ts +11 -0
- package/out/search.d.ts.map +1 -0
- package/out/search.js +9 -0
- package/out/search.js.map +1 -0
- package/package.json +60 -142
- package/styles.css +482 -266
- package/tokens/index.css +24 -6
- package/tokens/tokens.json +114 -6
- package/lib/common/index.ts +0 -22
- package/lib/map/index.ts +0 -95
- package/lib/pipeline/index.ts +0 -36
- package/lib/poi/index.ts +0 -39
- package/out/common/index.d.ts +0 -22
- package/out/common/index.d.ts.map +0 -1
- package/out/common/index.js +0 -15
- package/out/common/index.js.map +0 -1
- package/out/map/index.d.ts +0 -69
- package/out/map/index.d.ts.map +0 -1
- package/out/map/index.js +0 -46
- package/out/map/index.js.map +0 -1
- package/out/pipeline/index.d.ts +0 -33
- package/out/pipeline/index.d.ts.map +0 -1
- package/out/pipeline/index.js +0 -21
- package/out/pipeline/index.js.map +0 -1
- package/out/poi/index.d.ts +0 -23
- package/out/poi/index.d.ts.map +0 -1
- package/out/poi/index.js +0 -15
- package/out/poi/index.js.map +0 -1
- package/out/runtime/index.d.ts.map +0 -1
- package/out/runtime/index.js.map +0 -1
- package/styleframe.config.ts +0 -329
- package/vitest.node.config.ts +0 -20
- /package/lib/{runtime/index.ts → runtime.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FailureDiagnostic.js","sourceRoot":"","sources":["../../lib/pipeline/FailureDiagnostic.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FailureDiagnostic.js","sourceRoot":"","sources":["../../lib/pipeline/FailureDiagnostic.tsx"],"names":[],"mappings":";AAmBA;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAAE,KAAK,EAA0B;IAClE,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,UAAU,CAAC,CAAA;IAC3D,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,UAAU,CAAC,CAAA;IAC3D,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAA;IAEvD,MAAM,KAAK,GAAa,EAAE,CAAA;IAE1B,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW,EAAE,CAAC;QAClC,KAAK,CAAC,IAAI,CACT,yGAAyG,CACzG,CAAA;IACF,CAAC;IAED,IAAI,WAAW,IAAI,CAAC,WAAW,EAAE,CAAC;QACjC,KAAK,CAAC,IAAI,CACT,qIAAqI,CACrI,CAAA;IACF,CAAC;IAED,IAAI,WAAW,IAAI,CAAC,SAAS,EAAE,CAAC;QAC/B,KAAK,CAAC,IAAI,CACT,yHAAyH,CACzH,CAAA;IACF,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QACnB,KAAK,CAAC,IAAI,CAAC,qFAAqF,CAAC,CAAA;IAClG,CAAC;IAED,OAAO,CACN,eAAK,SAAS,EAAC,YAAY,aAC1B,4CAAyB,EACzB,uBACE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACvB,uBAAa,IAAI,IAAR,CAAC,CAAa,CACvB,CAAC,GACE,IACA,CACN,CAAA;AACF,CAAC"}
|
|
@@ -15,11 +15,14 @@ export interface QueryFormProps {
|
|
|
15
15
|
busy?: boolean;
|
|
16
16
|
placeholder?: string;
|
|
17
17
|
/**
|
|
18
|
-
* Keydown on the input — the hook a combobox (the demo's place-autocomplete)
|
|
18
|
+
* Keydown on the input — the hook a combobox (the demo's place-autocomplete)
|
|
19
|
+
* needs for arrow/Enter/Esc nav.
|
|
19
20
|
*/
|
|
20
21
|
onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
21
22
|
/**
|
|
22
|
-
* Override for extra `<input>` attributes (aria-combobox props, `autoComplete`, …).
|
|
23
|
+
* Override for extra `<input>` attributes (aria-combobox props, `autoComplete`, …).
|
|
24
|
+
*
|
|
25
|
+
* Merged last.
|
|
23
26
|
*/
|
|
24
27
|
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
25
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryForm.d.ts","sourceRoot":"","sources":["../../lib/pipeline/QueryForm.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAI1E,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB
|
|
1
|
+
{"version":3,"file":"QueryForm.d.ts","sourceRoot":"","sources":["../../lib/pipeline/QueryForm.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAI1E,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC5D;;;;OAIG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAA;CAClD;AAED,wBAAgB,SAAS,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,SAAS,EACT,UAAU,GACV,EAAE,cAAc,GAAG,SAAS,CA+B5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryForm.js","sourceRoot":"","sources":["../../lib/pipeline/QueryForm.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"QueryForm.js","sourceRoot":"","sources":["../../lib/pipeline/QueryForm.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAAgC,CAAA;AAsBjE,MAAM,UAAU,SAAS,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,SAAS,EACT,UAAU,GACM;IAChB,OAAO,CACN,gBACC,SAAS,EAAC,UAAU,EACpB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;YACf,CAAC,CAAC,cAAc,EAAE,CAAA;YAClB,QAAQ,EAAE,CAAA;QACX,CAAC,aAED,gBAAO,OAAO,EAAC,mBAAmB,wBAAgB,EAClD,gBACC,EAAE,EAAC,mBAAmB,EACtB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACzC,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,KAChB,UAAU,GACb,EACF,iBAAQ,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,QAAQ,IAAI,IAAI,YAC9C,IAAI,CAAC,CAAC,CAAC,CACP,8BACC,KAAC,gBAAgB,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,GAAG,sBAC9C,CACH,CAAC,CAAC,CAAC,CACH,iBAAiB,CACjB,GACO,IACH,CACP,CAAA;AACF,CAAC"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
6
|
* `SpanHighlight` — a displaCy-style span ribbon over the raw input: each tagged span is a column with the text on
|
|
7
|
-
* top, tinted by its confidence tier,
|
|
8
|
-
* plain text, so a dropped span is visible as a literal break in the
|
|
7
|
+
* top, tinted by its confidence tier, with the tag beneath. Gaps (delimiters, unparsed characters) fall through as
|
|
8
|
+
* plain text, so a dropped span is visible as a literal break in the color.
|
|
9
9
|
*/
|
|
10
10
|
import type { ParsedComponent } from "@mailwoman/core/pipeline/client-result";
|
|
11
11
|
import type { ReactNode } from "react";
|
|
@@ -15,7 +15,8 @@ export interface SpanHighlightProps {
|
|
|
15
15
|
*/
|
|
16
16
|
input: string;
|
|
17
17
|
/**
|
|
18
|
-
* Flattened parse nodes
|
|
18
|
+
* Flattened parse nodes.
|
|
19
|
+
* Only those with numeric `start`/`end` are rendered.
|
|
19
20
|
*/
|
|
20
21
|
nodes: ParsedComponent[];
|
|
21
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpanHighlight.d.ts","sourceRoot":"","sources":["../../lib/pipeline/SpanHighlight.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,MAAM,WAAW,kBAAkB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb
|
|
1
|
+
{"version":3,"file":"SpanHighlight.d.ts","sourceRoot":"","sources":["../../lib/pipeline/SpanHighlight.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,MAAM,WAAW,kBAAkB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,KAAK,EAAE,eAAe,EAAE,CAAA;CACxB;AASD,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,kBAAkB,GAAG,SAAS,CA+D7E"}
|
|
@@ -12,8 +12,9 @@ export function SpanHighlight({ input, nodes }) {
|
|
|
12
12
|
n.end <= input.length);
|
|
13
13
|
if (!spans.length)
|
|
14
14
|
return null;
|
|
15
|
-
// Per-character owner: the most specific (shortest) span covering it,
|
|
16
|
-
//
|
|
15
|
+
// Per-character owner: the most specific (shortest) span covering it,
|
|
16
|
+
// the same rule the word-level panels apply per word.
|
|
17
|
+
// The leaf always wins whatever nesting the tree hands over, so every character renders once.
|
|
17
18
|
const characters = Array.from({ length: input.length }, (_, i) => ({ start: i, end: i + 1 }));
|
|
18
19
|
const owner = shortestSpanOwners(characters, spans);
|
|
19
20
|
// Coalesce runs of the same owner into segments.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpanHighlight.js","sourceRoot":"","sources":["../../lib/pipeline/SpanHighlight.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"SpanHighlight.js","sourceRoot":"","sources":["../../lib/pipeline/SpanHighlight.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAqBxD,MAAM,UAAU,aAAa,CAAC,EAAE,KAAK,EAAE,KAAK,EAAsB;IACjE,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAA;IAEvB,yDAAyD;IACzD,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CACzB,CAAC,CAAC,EAAa,EAAE,CAChB,OAA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AC,EAAE,CAAC,CAAA;YAE3G,IAAI,GAAG,CAAC,CAAA;QACT,CAAC;IACF,CAAC;IAED,OAAO,CACN,eAAK,SAAS,EAAC,UAAU,aACxB,eAAK,SAAS,EAAC,kBAAkB,aAChC,wCAAuB,EACvB,eAAM,SAAS,EAAC,wCAAwC,GAAG,UAC3D,eAAM,SAAS,EAAC,wCAAwC,GAAG,UAC3D,eAAM,SAAS,EAAC,yCAAyC,GAAG,aACvD,EACN,cAAK,SAAS,EAAC,iBAAiB,YAC9B,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CACxB,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CACV,gBAEC,SAAS,EAAE,gCAAgC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,EACrF,KAAK,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,aAEpG,eAAM,SAAS,EAAC,gBAAgB,YAAE,GAAG,CAAC,IAAI,GAAQ,EAClD,eAAM,SAAS,EAAC,eAAe,YAAE,GAAG,CAAC,IAAI,CAAC,GAAG,GAAQ,KALhD,CAAC,CAMA,CACP,CAAC,CAAC,CAAC,CACH,eAAc,SAAS,EAAC,eAAe,YACrC,GAAG,CAAC,IAAI,IADC,CAAC,CAEL,CACP,CACD,GACI,IACD,CACN,CAAA;AACF,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
6
|
* `TimingPanel` — the per-stage timing breakdown: a stacked bar sized by each stage's wall-clock, plus a legend.
|
|
7
|
-
* Stage
|
|
7
|
+
* Stage colors are distinct hues, never the confidence red/amber/green, because they encode the pipeline stage and
|
|
8
8
|
* not quality.
|
|
9
9
|
*/
|
|
10
10
|
import type { StageTiming } from "@mailwoman/core/pipeline/client-result";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
6
|
* `TreeView` — the parse's containment tree as nested lists with a guide rail per level. The tag tint follows the
|
|
7
|
-
* confidence tier
|
|
7
|
+
* confidence tier. the value and score render in monospace.
|
|
8
8
|
*/
|
|
9
9
|
import type { ReactNode } from "react";
|
|
10
10
|
export interface TreeViewProps {
|
package/out/pipeline/copy.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
6
|
* Builds the "Copy JSON" payload for a parse result — the components + the selected resolved place,
|
|
7
|
-
* pretty-printed. Pure
|
|
7
|
+
* pretty-printed. Pure. shared by the explorer's copy button.
|
|
8
8
|
*/
|
|
9
9
|
import type { ParseResult, ResolvedPlaceView } from "@mailwoman/core/pipeline/client-result";
|
|
10
10
|
export declare function buildParsePayload(result: ParseResult, selected: ResolvedPlaceView | null): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../lib/pipeline/copy.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../lib/pipeline/copy.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAE5F,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,GAAG,IAAI,GAAG,MAAM,CAqBjG"}
|
package/out/pipeline/copy.js
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
6
|
* Builds the "Copy JSON" payload for a parse result — the components + the selected resolved place,
|
|
7
|
-
* pretty-printed. Pure
|
|
7
|
+
* pretty-printed. Pure. shared by the explorer's copy button.
|
|
8
8
|
*/
|
|
9
|
+
import { prettyJSON } from "@mailwoman/core/json";
|
|
9
10
|
export function buildParsePayload(result, selected) {
|
|
10
|
-
return
|
|
11
|
+
return prettyJSON({
|
|
11
12
|
input: result.input,
|
|
12
13
|
components: result.nodes.map((node) => ({
|
|
13
14
|
tag: node.tag,
|
|
@@ -26,6 +27,6 @@ export function buildParsePayload(result, selected) {
|
|
|
26
27
|
score: selected.score,
|
|
27
28
|
}
|
|
28
29
|
: null,
|
|
29
|
-
}
|
|
30
|
+
});
|
|
30
31
|
}
|
|
31
32
|
//# sourceMappingURL=copy.js.map
|
package/out/pipeline/copy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy.js","sourceRoot":"","sources":["../../lib/pipeline/copy.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"copy.js","sourceRoot":"","sources":["../../lib/pipeline/copy.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAGjD,MAAM,UAAU,iBAAiB,CAAC,MAAmB,EAAE,QAAkC;IACxF,OAAO,UAAU,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACvC,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI;YACzB,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,IAAI;YACnC,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI;YACzB,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,IAAI;SACrB,CAAC,CAAC;QACH,QAAQ,EAAE,QAAQ;YACjB,CAAC,CAAC;gBACA,IAAI,EAAE,QAAQ,CAAC,IAAI;gBACnB,SAAS,EAAE,QAAQ,CAAC,SAAS;gBAC7B,EAAE,EAAE,QAAQ,CAAC,EAAE;gBACf,GAAG,EAAE,QAAQ,CAAC,GAAG;gBACjB,GAAG,EAAE,QAAQ,CAAC,GAAG;gBACjB,KAAK,EAAE,QAAQ,CAAC,KAAK;aACrB;YACF,CAAC,CAAC,IAAI;KACP,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -3,17 +3,18 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* Default query + example addresses for the pipeline explorer. Hosts can override via props
|
|
6
|
+
* Default query + example addresses for the pipeline explorer. Hosts can override via props. These
|
|
7
7
|
* mirror the docs demo's set so the extracted component looks identical out of the box.
|
|
8
8
|
*/
|
|
9
9
|
import type { Preset } from "../common/PresetChips.tsx";
|
|
10
10
|
/**
|
|
11
|
-
* Address the pipeline explorer opens on.
|
|
12
|
-
*
|
|
11
|
+
* Address the pipeline explorer opens on.
|
|
12
|
+
*
|
|
13
|
+
* It exercises every stage (house number, street, directional, locality and region) in one line.
|
|
13
14
|
*/
|
|
14
15
|
export declare const PIPELINE_DEFAULT_ADDRESS = "1600 Pennsylvania Ave NW, Washington, DC 20500";
|
|
15
16
|
/**
|
|
16
|
-
* Preset inputs offered in the explorer, each picked to show a different parse
|
|
17
|
+
* Preset inputs offered in the explorer, each picked to show a different parse behavior.
|
|
17
18
|
*/
|
|
18
19
|
export declare const PIPELINE_PRESETS: ReadonlyArray<Preset>;
|
|
19
20
|
//# sourceMappingURL=presets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../lib/pipeline/presets.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAEvD
|
|
1
|
+
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../lib/pipeline/presets.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAEvD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,mDAAmD,CAAA;AAIxF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,MAAM,CAyBlD,CAAA"}
|
package/out/pipeline/presets.js
CHANGED
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* Default query + example addresses for the pipeline explorer. Hosts can override via props
|
|
6
|
+
* Default query + example addresses for the pipeline explorer. Hosts can override via props. These
|
|
7
7
|
* mirror the docs demo's set so the extracted component looks identical out of the box.
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
|
-
* Address the pipeline explorer opens on.
|
|
11
|
-
*
|
|
10
|
+
* Address the pipeline explorer opens on.
|
|
11
|
+
*
|
|
12
|
+
* It exercises every stage (house number, street, directional, locality and region) in one line.
|
|
12
13
|
*/
|
|
13
14
|
export const PIPELINE_DEFAULT_ADDRESS = "1600 Pennsylvania Ave NW, Washington, DC 20500";
|
|
14
|
-
// `country` mirrors the docs `EXAMPLE_ADDRESSES` set
|
|
15
|
-
//
|
|
16
|
-
// locale structural routing can't detect (NZ) still fires; free-typed input drops to structural detection.
|
|
15
|
+
// `country` mirrors the docs `EXAMPLE_ADDRESSES` set and is kept in parity.
|
|
16
|
+
// A host that wires the pair prior pins the country while the input equals the preset text.
|
|
17
17
|
/**
|
|
18
|
-
* Preset inputs offered in the explorer, each picked to show a different parse
|
|
18
|
+
* Preset inputs offered in the explorer, each picked to show a different parse behavior.
|
|
19
19
|
*/
|
|
20
20
|
export const PIPELINE_PRESETS = [
|
|
21
21
|
{ label: "White House", value: "1600 Pennsylvania Ave NW, Washington, DC 20500", country: "us" },
|
|
@@ -28,17 +28,19 @@ export const PIPELINE_PRESETS = [
|
|
|
28
28
|
{ label: "Berlin (native order)", value: "Straußstraße 27, 12623 Berlin", country: "de" },
|
|
29
29
|
{ label: "Berlin city-state (int'l order)", value: "5 Hauptstraße, Berlin, Berlin 10115", country: "de" },
|
|
30
30
|
{ label: "Paris (street fall-through)", value: "181 Rue du Chevaleret, Paris", country: "fr" },
|
|
31
|
-
//
|
|
32
|
-
//
|
|
31
|
+
// "Henbury" flips to dependent_locality via the en-gb pair-index prior.
|
|
32
|
+
// The UK postcode is structurally detectable, in parity with the docs EXAMPLE_ADDRESSES.
|
|
33
33
|
{
|
|
34
34
|
label: "Macclesfield (GB dependent_locality)",
|
|
35
35
|
value: "41 Hightree Drive, Henbury, Macclesfield, SK11 9PD",
|
|
36
36
|
country: "gb",
|
|
37
37
|
},
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
// "
|
|
41
|
-
//
|
|
38
|
+
// Plimmerton is a suburb (dependent_locality) of Porirua.
|
|
39
|
+
// The postcode is deliberately omitted, since a trailing "Porirua 5026" folds "porirua
|
|
40
|
+
// 5026" in segment mode and misses the index's bare "porirua" key.
|
|
41
|
+
// The `country: "nz"` pin is required, since locale-hint cannot structurally
|
|
42
|
+
// detect NZ (a 4-digit postcode is not distinctive).
|
|
43
|
+
// Only the pin selects the nz index.
|
|
42
44
|
{ label: "Plimmerton (NZ dependent_locality)", value: "35 Steyne Avenue, Plimmerton, Porirua", country: "nz" },
|
|
43
45
|
];
|
|
44
46
|
//# sourceMappingURL=presets.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.js","sourceRoot":"","sources":["../../lib/pipeline/presets.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH
|
|
1
|
+
{"version":3,"file":"presets.js","sourceRoot":"","sources":["../../lib/pipeline/presets.ts"],"names":[],"mappings":"AAAA;;;;;;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AAqC;IACrC,EAAE,KAAK,EAAE,oCAAoC,EAAE,KAAK,EAAE,uCAAuC,EAAE,OAAO,EAAE,IAAI,EAAE;CAC9G,CAAA"}
|
package/out/pipeline/types.d.ts
CHANGED
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* Types for the pipeline (parse + resolve) explorer. The
|
|
7
|
-
*
|
|
8
|
-
* (the docs site's RuntimeEmbed, or any app) owns loading ONNX/WOF and executing a parse. That keeps
|
|
9
|
-
* onnxruntime-web, sql.js-httpvfs, and node builtins entirely out of this package's browser graph.
|
|
6
|
+
* Types for the pipeline (parse + resolve) explorer. The runtime is injected as a {@link PipelineRuntime},
|
|
7
|
+
* keeping onnxruntime-web, sqlite-wasm and node builtins out of this package's browser graph.
|
|
10
8
|
*/
|
|
11
9
|
import type { ParseResult } from "@mailwoman/core/pipeline/client-result";
|
|
12
10
|
import type { ReactNode } from "react";
|
|
@@ -17,10 +15,19 @@ export interface PipelineLoadingState {
|
|
|
17
15
|
progress?: string;
|
|
18
16
|
stepLabels: string[];
|
|
19
17
|
stepIndex: number;
|
|
18
|
+
/**
|
|
19
|
+
* Bytes received over bytes expected for the asset being fetched right now, in [0, 1],
|
|
20
|
+
* or `null` when no download is in progress or the response declares no length.
|
|
21
|
+
*
|
|
22
|
+
* The step index cannot report this download because the model is fetched before the first step begins.
|
|
23
|
+
*/
|
|
24
|
+
byteFraction?: number | null;
|
|
20
25
|
}
|
|
21
26
|
/**
|
|
22
|
-
* The injected parse runtime.
|
|
23
|
-
*
|
|
27
|
+
* The injected parse runtime.
|
|
28
|
+
*
|
|
29
|
+
* The host implements this interface and supplies the model and gazetteer,
|
|
30
|
+
* keeping both imports out of this package.
|
|
24
31
|
*/
|
|
25
32
|
export interface PipelineRuntime {
|
|
26
33
|
/**
|
|
@@ -28,7 +35,8 @@ export interface PipelineRuntime {
|
|
|
28
35
|
*/
|
|
29
36
|
ready: boolean;
|
|
30
37
|
/**
|
|
31
|
-
* Execute a full parse+resolve, reporting stage progress via `onStage`
|
|
38
|
+
* Execute a full parse+resolve, reporting stage progress via `onStage`
|
|
39
|
+
* (0-based index into `parseStageLabels`).
|
|
32
40
|
*/
|
|
33
41
|
runParse: (input: string, hooks: {
|
|
34
42
|
onStage: (stage: number) => void;
|
|
@@ -47,17 +55,16 @@ export interface PipelineRuntime {
|
|
|
47
55
|
errorMessage?: string | null;
|
|
48
56
|
}
|
|
49
57
|
/**
|
|
50
|
-
* Optional host-injected panels
|
|
51
|
-
*
|
|
52
|
-
* components nor their heavy data types.
|
|
58
|
+
* Optional host-injected panels, kept as `ReactNode` thunks so this package needs
|
|
59
|
+
* neither the host's components nor their data types.
|
|
53
60
|
*/
|
|
54
61
|
export interface PipelinePanels {
|
|
55
62
|
/**
|
|
56
|
-
* Rendered above the form
|
|
63
|
+
* Rendered above the form.
|
|
57
64
|
*/
|
|
58
65
|
header?: ReactNode;
|
|
59
66
|
/**
|
|
60
|
-
* Rendered below everything
|
|
67
|
+
* Rendered below everything.
|
|
61
68
|
*/
|
|
62
69
|
footer?: ReactNode;
|
|
63
70
|
/**
|
|
@@ -65,7 +72,7 @@ export interface PipelinePanels {
|
|
|
65
72
|
*/
|
|
66
73
|
versionControl?: ReactNode;
|
|
67
74
|
/**
|
|
68
|
-
* Backend indicator +
|
|
75
|
+
* Backend indicator + wasm toggle.
|
|
69
76
|
*/
|
|
70
77
|
backendControl?: ReactNode;
|
|
71
78
|
/**
|
|
@@ -77,7 +84,7 @@ export interface PipelinePanels {
|
|
|
77
84
|
*/
|
|
78
85
|
extras?: (result: ParseResult) => ReactNode;
|
|
79
86
|
/**
|
|
80
|
-
* Rendered in place of the resolved-place panel when
|
|
87
|
+
* Rendered in place of the resolved-place panel when no place resolved (host's FailureDiagnostic).
|
|
81
88
|
*/
|
|
82
89
|
failure?: (result: ParseResult) => ReactNode;
|
|
83
90
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../lib/pipeline/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../lib/pipeline/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,KAAK,EAAE,OAAO,CAAA;IACd;;;OAGG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;KAAE,KAAK,OAAO,CAAC,WAAW,CAAC,CAAA;IAC9F;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAA;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,SAAS,CAAA;IAC3C;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,SAAS,CAAA;CAC5C"}
|
package/out/pipeline/types.js
CHANGED
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* Types for the pipeline (parse + resolve) explorer. The
|
|
7
|
-
*
|
|
8
|
-
* (the docs site's RuntimeEmbed, or any app) owns loading ONNX/WOF and executing a parse. That keeps
|
|
9
|
-
* onnxruntime-web, sql.js-httpvfs, and node builtins entirely out of this package's browser graph.
|
|
6
|
+
* Types for the pipeline (parse + resolve) explorer. The runtime is injected as a {@link PipelineRuntime},
|
|
7
|
+
* keeping onnxruntime-web, sqlite-wasm and node builtins out of this package's browser graph.
|
|
10
8
|
*/
|
|
11
9
|
export {};
|
|
12
10
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../lib/pipeline/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../lib/pipeline/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
|
|
@@ -3,17 +3,21 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* to the injected {@link PipelineRuntime}. No model or gazetteer code lives here — it just drives the
|
|
9
|
-
* contract and shapes the UI state.
|
|
6
|
+
* The headless core of the pipeline explorer. It owns query text, busy/stage flags, result and candidate selection.
|
|
7
|
+
* It delegates parse and resolve to the injected {@link PipelineRuntime}.
|
|
10
8
|
*/
|
|
11
9
|
import type { ParseResult, ResolvedPlaceView } from "@mailwoman/core/pipeline/client-result";
|
|
12
10
|
import type { PipelineRuntime } from "#pipeline/types";
|
|
11
|
+
/**
|
|
12
|
+
* The runtime and starting text for {@link useParsePipeline}.
|
|
13
|
+
*/
|
|
13
14
|
export interface UseParsePipelineOptions {
|
|
14
15
|
runtime: PipelineRuntime;
|
|
15
16
|
defaultText: string;
|
|
16
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* The state and handlers that {@link useParsePipeline} returns.
|
|
20
|
+
*/
|
|
17
21
|
export interface UseParsePipeline {
|
|
18
22
|
text: string;
|
|
19
23
|
setText: (text: string) => void;
|
|
@@ -31,16 +35,17 @@ export interface UseParsePipeline {
|
|
|
31
35
|
*/
|
|
32
36
|
selectedCandidate: ResolvedPlaceView | null;
|
|
33
37
|
/**
|
|
34
|
-
* Parse and resolve the current text
|
|
35
|
-
*
|
|
36
|
-
* Pass `query` to submit a value the field has not re-rendered with yet — a preset press sets the text and submits in
|
|
37
|
-
* one handler, and that state update is not visible to this call.
|
|
38
|
+
* Parse and resolve the current text, safe to bind to a form's `onSubmit`;
|
|
39
|
+
* pass `query` to submit a value the field has not re-rendered with yet.
|
|
38
40
|
*/
|
|
39
41
|
submit: (query?: string) => Promise<void>;
|
|
40
42
|
/**
|
|
41
|
-
* Clear the result
|
|
43
|
+
* Clear the result, used when a preset replaces the input.
|
|
42
44
|
*/
|
|
43
45
|
reset: () => void;
|
|
44
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Drives the injected runtime and exposes the explorer's UI state.
|
|
49
|
+
*/
|
|
45
50
|
export declare function useParsePipeline({ runtime, defaultText }: UseParsePipelineOptions): UseParsePipeline;
|
|
46
51
|
//# sourceMappingURL=useParsePipeline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useParsePipeline.d.ts","sourceRoot":"","sources":["../../lib/pipeline/useParsePipeline.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"useParsePipeline.d.ts","sourceRoot":"","sources":["../../lib/pipeline/useParsePipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAG5F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACvC,OAAO,EAAE,eAAe,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,sBAAsB,EAAE,MAAM,CAAA;IAC9B,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC;;OAEG;IACH,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC3C;;;OAGG;IACH,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACzC;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;CACjB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,uBAAuB,GAAG,gBAAgB,CAmDpG"}
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* to the injected {@link PipelineRuntime}. No model or gazetteer code lives here — it just drives the
|
|
9
|
-
* contract and shapes the UI state.
|
|
6
|
+
* The headless core of the pipeline explorer. It owns query text, busy/stage flags, result and candidate selection.
|
|
7
|
+
* It delegates parse and resolve to the injected {@link PipelineRuntime}.
|
|
10
8
|
*/
|
|
11
9
|
import { useCallback, useState } from "react";
|
|
10
|
+
/**
|
|
11
|
+
* Drives the injected runtime and exposes the explorer's UI state.
|
|
12
|
+
*/
|
|
12
13
|
export function useParsePipeline({ runtime, defaultText }) {
|
|
13
14
|
const [text, setText] = useState(defaultText);
|
|
14
15
|
const [busy, setBusy] = useState(false);
|
|
@@ -16,9 +17,8 @@ export function useParsePipeline({ runtime, defaultText }) {
|
|
|
16
17
|
const [result, setResult] = useState(null);
|
|
17
18
|
const [selectedCandidateIndex, setSelectedCandidateIndex] = useState(0);
|
|
18
19
|
const [parseError, setParseError] = useState(null);
|
|
19
|
-
// `
|
|
20
|
-
//
|
|
21
|
-
// address before it. A caller that already knows the query passes it; the field's own submit passes nothing.
|
|
20
|
+
// `setText` does not reach this closure before the call after it runs,
|
|
21
|
+
// so a caller that already knows the query passes it.
|
|
22
22
|
const submit = useCallback(async (query) => {
|
|
23
23
|
if (!runtime.ready || busy)
|
|
24
24
|
return;
|
|
@@ -40,7 +40,6 @@ export function useParsePipeline({ runtime, defaultText }) {
|
|
|
40
40
|
}
|
|
41
41
|
}, [runtime, text, busy]);
|
|
42
42
|
const reset = useCallback(() => setResult(null), []);
|
|
43
|
-
// Derived during render — no effect needed.
|
|
44
43
|
const selectedCandidate = result ? (result.candidates[selectedCandidateIndex] ?? result.candidates[0] ?? null) : null;
|
|
45
44
|
return {
|
|
46
45
|
text,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useParsePipeline.js","sourceRoot":"","sources":["../../lib/pipeline/useParsePipeline.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"useParsePipeline.js","sourceRoot":"","sources":["../../lib/pipeline/useParsePipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,WAAW,EAAE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O,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;QACtE,CAAC;gBAAS,CAAC;YACV,OAAO,CAAC,KAAK,CAAC,CAAA;YACd,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;QAClB,CAAC;IACF,CAAC,EACD,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACrB,CAAA;IAED,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;IAEpD,MAAM,iBAAiB,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,sBAAsB,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAErH,OAAO;QACN,IAAI;QACJ,OAAO;QACP,IAAI;QACJ,UAAU;QACV,MAAM;QACN,UAAU;QACV,sBAAsB;QACtB,eAAe,EAAE,yBAAyB;QAC1C,iBAAiB;QACjB,MAAM;QACN,KAAK;KACL,CAAA;AACF,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
* @file Pipeline explorer components, visualizers, hooks and interfaces.
|
|
6
|
+
*/
|
|
7
|
+
export { About } from "./common/About.tsx";
|
|
8
|
+
export { FailureDiagnostic } from "./pipeline/FailureDiagnostic.tsx";
|
|
9
|
+
export type { FailureDiagnosticProps } from "./pipeline/FailureDiagnostic.tsx";
|
|
10
|
+
export { SpanHighlight } from "./pipeline/SpanHighlight.tsx";
|
|
11
|
+
export type { SpanHighlightProps } from "./pipeline/SpanHighlight.tsx";
|
|
12
|
+
export { TimingPanel } from "./pipeline/TimingPanel.tsx";
|
|
13
|
+
export type { TimingPanelProps } from "./pipeline/TimingPanel.tsx";
|
|
14
|
+
export { TreeView } from "./pipeline/TreeView.tsx";
|
|
15
|
+
export type { TreeViewProps } from "./pipeline/TreeView.tsx";
|
|
16
|
+
export { CandidatePicker } from "./pipeline/CandidatePicker.tsx";
|
|
17
|
+
export type { CandidatePickerProps } from "./pipeline/CandidatePicker.tsx";
|
|
18
|
+
export { ComponentTable } from "./pipeline/ComponentTable.tsx";
|
|
19
|
+
export type { ComponentTableProps } from "./pipeline/ComponentTable.tsx";
|
|
20
|
+
export { ConfidenceCell } from "./pipeline/ConfidenceCell.tsx";
|
|
21
|
+
export type { ConfidenceCellProps } from "./pipeline/ConfidenceCell.tsx";
|
|
22
|
+
export { buildParsePayload } from "#pipeline/copy";
|
|
23
|
+
export { PIPELINE_DEFAULT_ADDRESS, PIPELINE_PRESETS } from "#pipeline/presets";
|
|
24
|
+
export { PipelineExplorer } from "./pipeline/PipelineExplorer.tsx";
|
|
25
|
+
export type { PipelineExplorerProps } from "./pipeline/PipelineExplorer.tsx";
|
|
26
|
+
export { QueryForm } from "./pipeline/QueryForm.tsx";
|
|
27
|
+
export type { QueryFormProps } from "./pipeline/QueryForm.tsx";
|
|
28
|
+
export { ResolvedPlace } from "./pipeline/ResolvedPlace.tsx";
|
|
29
|
+
export type { ResolvedPlaceProps } from "./pipeline/ResolvedPlace.tsx";
|
|
30
|
+
export type { PipelineLoadingState, PipelinePanels, PipelineRuntime } from "#pipeline/types";
|
|
31
|
+
export { useParsePipeline } from "#pipeline/useParsePipeline";
|
|
32
|
+
export type { UseParsePipeline, UseParsePipelineOptions } from "#pipeline/useParsePipeline";
|
|
33
|
+
//# sourceMappingURL=pipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../lib/pipeline.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,iBAAiB,EAAE,M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gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,YAAY,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA"}
|
package/out/pipeline.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
* @file Pipeline explorer components, visualizers, hooks and interfaces.
|
|
6
|
+
*/
|
|
7
|
+
export { About } from "./common/About.js";
|
|
8
|
+
export { FailureDiagnostic } from "./pipeline/FailureDiagnostic.js";
|
|
9
|
+
export { SpanHighlight } from "./pipeline/SpanHighlight.js";
|
|
10
|
+
export { TimingPanel } from "./pipeline/TimingPanel.js";
|
|
11
|
+
export { TreeView } from "./pipeline/TreeView.js";
|
|
12
|
+
export { CandidatePicker } from "./pipeline/CandidatePicker.js";
|
|
13
|
+
export { ComponentTable } from "./pipeline/ComponentTable.js";
|
|
14
|
+
export { ConfidenceCell } from "./pipeline/ConfidenceCell.js";
|
|
15
|
+
export { buildParsePayload } from "#pipeline/copy";
|
|
16
|
+
export { PIPELINE_DEFAULT_ADDRESS, PIPELINE_PRESETS } from "#pipeline/presets";
|
|
17
|
+
export { PipelineExplorer } from "./pipeline/PipelineExplorer.js";
|
|
18
|
+
export { QueryForm } from "./pipeline/QueryForm.js";
|
|
19
|
+
export { ResolvedPlace } from "./pipeline/ResolvedPlace.js";
|
|
20
|
+
export { useParsePipeline } from "#pipeline/useParsePipeline";
|
|
21
|
+
//# sourceMappingURL=pipeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../lib/pipeline.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAoB,CAAA;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAkC,CAAA;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA8B,CAAA;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA4B,CAAA;AAExD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAyB,CAAA;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAAgC,CAAA;AAEhE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA+B,CAAA;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA+B,CAAA;AAE9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAiC,CAAA;AAElE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAA0B,CAAA;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA8B,CAAA;AAK5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* `AbstainPanel` — shown when the query
|
|
6
|
+
* `AbstainPanel` — shown when the query has no POI intent (it parses as an address). Names the
|
|
7
7
|
* classifier's kind so the abstention is legible. Presentational.
|
|
8
8
|
*/
|
|
9
9
|
import type { ReactNode } from "react";
|
|
@@ -11,7 +11,8 @@ import type { ReactNode } from "react";
|
|
|
11
11
|
import type { LiveSearchState } from "#poi/types";
|
|
12
12
|
export interface LiveResultsBlockProps {
|
|
13
13
|
/**
|
|
14
|
-
* Subject label for empty-state copy — a category ("No hospital results near …")
|
|
14
|
+
* Subject label for empty-state copy — a category ("No hospital results near …")
|
|
15
|
+
* or a brand ("No chevron results …").
|
|
15
16
|
*/
|
|
16
17
|
subjectLabel: string;
|
|
17
18
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveResultsBlock.d.ts","sourceRoot":"","sources":["../../lib/poi/LiveResultsBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,WAAW,qBAAqB;IACrC
|
|
1
|
+
{"version":3,"file":"LiveResultsBlock.d.ts","sourceRoot":"","sources":["../../lib/poi/LiveResultsBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,WAAW,qBAAqB;IACrC;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,eAAe,CAAA;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,qBAAqB,GAAG,SAAS,CA6C5G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveResultsBlock.js","sourceRoot":"","sources":["../../lib/poi/LiveResultsBlock.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"LiveResultsBlock.js","sourceRoot":"","sources":["../../lib/poi/LiveResultsBlock.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAiB7C,MAAM,UAAU,gBAAgB,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAyB;IAChG,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,EAAE,CA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