commit 3a59bf85c255125b4c887beea9ad262822492d5c parent 3588f7ffc33acd17e39fc558ee80300279865fd6 Author: triesap <triesap@radroots.dev> Date: Mon, 22 Dec 2025 14:49:27 +0000 apps-lib-pwa: introduce `@radroots/geo` and migrate geospatial type imports Diffstat:
6 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/apps-lib-pwa/package.json b/apps-lib-pwa/package.json @@ -80,6 +80,7 @@ "@radroots/apps-lib": "*", "@radroots/events-bindings": "*", "@radroots/client": "*", + "@radroots/geo": "*", "@radroots/tangle-schema-bindings": "*", "@radroots/themes": "*", "@radroots/utils": "*", @@ -95,4 +96,4 @@ "sveltekit-search-params": "^3.0.0", "zod": "^4.0.5" } -} -\ No newline at end of file +} diff --git a/apps-lib-pwa/src/lib/components/farm/farms-add-map.svelte b/apps-lib-pwa/src/lib/components/farm/farms-add-map.svelte @@ -6,10 +6,10 @@ import { focus_map_marker } from "$lib/utils/map"; import { Fade, geop_is_valid, get_context } from "@radroots/apps-lib"; import { - handle_err, type GeocoderReverseResult, type GeolocationPoint, - } from "@radroots/utils"; + } from "@radroots/geo"; + import { handle_err } from "@radroots/utils"; import { onMount } from "svelte"; const { lc_geop_current, lc_geocode } = get_context(`lib`); diff --git a/apps-lib-pwa/src/lib/components/farm/farms-preview-card.svelte b/apps-lib-pwa/src/lib/components/farm/farms-preview-card.svelte @@ -9,9 +9,9 @@ geol_lng_fmt, parse_geol_point_tup, parse_tup_geop_point, - type CallbackPromiseGeneric, type GeolocationPointTuple, - } from "@radroots/utils"; + } from "@radroots/geo"; + import type { CallbackPromiseGeneric } from "@radroots/utils"; import { onMount } from "svelte"; const { ls, locale } = get_context(`lib`); diff --git a/apps-lib-pwa/src/lib/components/map/map-marker-area.svelte b/apps-lib-pwa/src/lib/components/map/map-marker-area.svelte @@ -4,7 +4,7 @@ import { type GeocoderReverseResult, type GeolocationPoint, - } from "@radroots/utils"; + } from "@radroots/geo"; import { Marker, Popup } from "svelte-maplibre"; import MapMarkerAreaDisplay from "./map-marker-area-display.svelte"; diff --git a/apps-lib-pwa/src/lib/types/views/farms.ts b/apps-lib-pwa/src/lib/types/views/farms.ts @@ -1,5 +1,5 @@ import type { Farm } from "@radroots/tangle-schema-bindings"; -import type { GeocoderReverseResult, GeolocationPoint, LocationBasis } from "@radroots/utils"; +import type { GeocoderReverseResult, GeolocationPoint, LocationBasis } from "@radroots/geo"; export type FarmExtended = { farm: Farm; @@ -38,4 +38,4 @@ export type IViewFarmsProductsAddSubmitPayload = { quantity_label: string; geolocation_point: GeolocationPoint; geocode_result: GeocoderReverseResult; -}; -\ No newline at end of file +}; diff --git a/apps-lib-pwa/src/lib/views/farms/farms-add.svelte b/apps-lib-pwa/src/lib/views/farms/farms-add.svelte @@ -26,13 +26,15 @@ import { geol_lat_fmt, geol_lng_fmt, - handle_err, - parse_float, parse_geocode_address, - type CallbackPromiseGeneric, type GeocoderReverseResult, type GeolocationAddress, type GeolocationPoint, + } from "@radroots/geo"; + import { + handle_err, + parse_float, + type CallbackPromiseGeneric, } from "@radroots/utils"; import { onMount } from "svelte";