zenit-sdk 0.1.0 → 0.1.2
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/dist/{chunk-PCTRVN4O.mjs → chunk-URDEEWUZ.mjs} +446 -94
- package/dist/chunk-URDEEWUZ.mjs.map +1 -0
- package/dist/{index-DvcYGhqj.d.mts → index-BSljZaYk.d.mts} +13 -0
- package/dist/{index-DvcYGhqj.d.ts → index-BSljZaYk.d.ts} +13 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +527 -170
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -5
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +518 -166
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-PCTRVN4O.mjs.map +0 -1
|
@@ -619,6 +619,8 @@ interface ZenitMapRef {
|
|
|
619
619
|
padding?: [number, number];
|
|
620
620
|
animate?: boolean;
|
|
621
621
|
}) => void;
|
|
622
|
+
fitToBbox: (bbox: Bbox, padding?: number) => void;
|
|
623
|
+
fitToGeoJson: (fc: GeoJsonFeatureCollection, padding?: number) => void;
|
|
622
624
|
setView: (coordinates: {
|
|
623
625
|
lat: number;
|
|
624
626
|
lon: number;
|
|
@@ -626,6 +628,8 @@ interface ZenitMapRef {
|
|
|
626
628
|
getLayerSnapshot: () => LayerSnapshot[];
|
|
627
629
|
restoreLayerSnapshot: (snapshot: LayerSnapshot[]) => void;
|
|
628
630
|
highlightFeature: (layerId: number | string, featureId?: number | string) => void;
|
|
631
|
+
updateLayerGeoJson: (layerId: number | string, featureCollection: GeoJsonFeatureCollection) => void;
|
|
632
|
+
restoreLayerGeoJson: (layerId: number | string) => void;
|
|
629
633
|
getMapInstance: () => L.Map | null;
|
|
630
634
|
}
|
|
631
635
|
interface ZenitMapProps {
|
|
@@ -698,6 +702,15 @@ interface ZenitLayerManagerProps {
|
|
|
698
702
|
displayOrder?: number | null;
|
|
699
703
|
}>;
|
|
700
704
|
onZoomToLayer?: (layerId: number | string, bboxGeometry?: GeoJsonPolygon | null) => void;
|
|
705
|
+
onApplyLayerFilter?: (params: {
|
|
706
|
+
layerId: number | string;
|
|
707
|
+
field: string;
|
|
708
|
+
value: string;
|
|
709
|
+
}) => Promise<void> | void;
|
|
710
|
+
onClearLayerFilter?: (params: {
|
|
711
|
+
layerId: number | string;
|
|
712
|
+
field?: string;
|
|
713
|
+
}) => Promise<void> | void;
|
|
701
714
|
}
|
|
702
715
|
declare const ZenitLayerManager: React.FC<ZenitLayerManagerProps>;
|
|
703
716
|
|
|
@@ -619,6 +619,8 @@ interface ZenitMapRef {
|
|
|
619
619
|
padding?: [number, number];
|
|
620
620
|
animate?: boolean;
|
|
621
621
|
}) => void;
|
|
622
|
+
fitToBbox: (bbox: Bbox, padding?: number) => void;
|
|
623
|
+
fitToGeoJson: (fc: GeoJsonFeatureCollection, padding?: number) => void;
|
|
622
624
|
setView: (coordinates: {
|
|
623
625
|
lat: number;
|
|
624
626
|
lon: number;
|
|
@@ -626,6 +628,8 @@ interface ZenitMapRef {
|
|
|
626
628
|
getLayerSnapshot: () => LayerSnapshot[];
|
|
627
629
|
restoreLayerSnapshot: (snapshot: LayerSnapshot[]) => void;
|
|
628
630
|
highlightFeature: (layerId: number | string, featureId?: number | string) => void;
|
|
631
|
+
updateLayerGeoJson: (layerId: number | string, featureCollection: GeoJsonFeatureCollection) => void;
|
|
632
|
+
restoreLayerGeoJson: (layerId: number | string) => void;
|
|
629
633
|
getMapInstance: () => L.Map | null;
|
|
630
634
|
}
|
|
631
635
|
interface ZenitMapProps {
|
|
@@ -698,6 +702,15 @@ interface ZenitLayerManagerProps {
|
|
|
698
702
|
displayOrder?: number | null;
|
|
699
703
|
}>;
|
|
700
704
|
onZoomToLayer?: (layerId: number | string, bboxGeometry?: GeoJsonPolygon | null) => void;
|
|
705
|
+
onApplyLayerFilter?: (params: {
|
|
706
|
+
layerId: number | string;
|
|
707
|
+
field: string;
|
|
708
|
+
value: string;
|
|
709
|
+
}) => Promise<void> | void;
|
|
710
|
+
onClearLayerFilter?: (params: {
|
|
711
|
+
layerId: number | string;
|
|
712
|
+
field?: string;
|
|
713
|
+
}) => Promise<void> | void;
|
|
701
714
|
}
|
|
702
715
|
declare const ZenitLayerManager: React.FC<ZenitLayerManagerProps>;
|
|
703
716
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MapDto, N as NormalizedMapLayer, G as GeoJsonFeature, B as Bbox, a as GeoJsonFeatureCollection, F as FilterMultipleMetadata, L as LayerFilters, b as GeoJsonRequestOptions, c as GeoJsonPolygon } from './index-
|
|
2
|
-
export { O as ApiEnvelope, P as ApiResponseData, ai as ChatRequestDto, ad as ChatRequestOptions, ak as ChatResponseDto, ac as ChatServiceConfig, ae as ChatStreamCallbacks, D as DEFAULT_MAX_FEATURES_FULL_GEOJSON, a8 as EffectiveLayerState, a4 as FilterMultipleLayerMeta, a5 as FilterMultipleWithFallbackResult, a3 as FilterValue, ar as FloatingChatBox, as as FloatingChatBoxProps, T as GeoJsonBBoxRequest, J as GeoJsonGeometryCollection, W as GeoJsonIntersectRequest, I as GeoJsonPoint, o as HttpClient, H as HttpClientOptions, X as LayerAoi, a6 as LayerBaseState, K as LayerDataStrategy, C as LayerDto, a1 as LayerFeatureCatalogItem, a2 as LayerFeaturesCatalogDto, Q as LayerMetadata, a7 as LayerOverrideState, an as LayerSnapshot, av as LayerStyle, E as LayerSummary, $ as LoadLayerDataParams, a0 as LoadLayerDataResult, f as LoginRequest, g as LoginResponse, s as MapLayerConfig, q as MapSettings, h as MeResponse, R as RefreshResponse, Y as ResolveLayerStrategyParams, _ as ResolveLayerStrategyResult, j as SdkTokenExchangeResponse, S as SdkTokenValidateResponse, aj as SuggestedAction, U as UserSummary, V as ValidateResponse, i as ZenitAuthClient, d as ZenitClient, aq as ZenitFeatureFilterPanel, ap as ZenitLayerManager, A as ZenitLayersClient, al as ZenitMap, ao as ZenitMapProps, am as ZenitMapRef, p as ZenitMapsClient, e as ZenitRuntimeConfig, k as ZenitSdkAuthClient, Z as ZenitSdkConfig, l as ZenitSdkError, aA as ZoomOpacityOptions, aa as applyLayerOverrides, x as buildAoiFromFeatureCollection, u as buildFilterMultipleParams, t as buildLayerFilters, z as buildLimitedMessage, aB as clampNumber, aC as clampOpacity, ah as createChatService, az as getAccentByLayerId, aG as getEffectiveLayerOpacity, ax as getLayerColor, aF as getLayerZoomOpacityFactor, ay as getStyleByLayerId, aE as getZoomOpacityFactor, a9 as initLayerStates, aD as isPolygonLayer, m as mergeFilters, n as normalizeFilters, ab as resetOverrides, aw as resolveLayerAccent, y as resolveLayerStrategy, r as resolveRuntimeConfig, af as sendMessage, ag as sendMessageStream, w as shouldSkipGeojsonDownload, v as shouldUseFilterMultiple, at as useSendMessage, au as useSendMessageStream } from './index-
|
|
1
|
+
import { M as MapDto, N as NormalizedMapLayer, G as GeoJsonFeature, B as Bbox, a as GeoJsonFeatureCollection, F as FilterMultipleMetadata, L as LayerFilters, b as GeoJsonRequestOptions, c as GeoJsonPolygon } from './index-BSljZaYk.mjs';
|
|
2
|
+
export { O as ApiEnvelope, P as ApiResponseData, ai as ChatRequestDto, ad as ChatRequestOptions, ak as ChatResponseDto, ac as ChatServiceConfig, ae as ChatStreamCallbacks, D as DEFAULT_MAX_FEATURES_FULL_GEOJSON, a8 as EffectiveLayerState, a4 as FilterMultipleLayerMeta, a5 as FilterMultipleWithFallbackResult, a3 as FilterValue, ar as FloatingChatBox, as as FloatingChatBoxProps, T as GeoJsonBBoxRequest, J as GeoJsonGeometryCollection, W as GeoJsonIntersectRequest, I as GeoJsonPoint, o as HttpClient, H as HttpClientOptions, X as LayerAoi, a6 as LayerBaseState, K as LayerDataStrategy, C as LayerDto, a1 as LayerFeatureCatalogItem, a2 as LayerFeaturesCatalogDto, Q as LayerMetadata, a7 as LayerOverrideState, an as LayerSnapshot, av as LayerStyle, E as LayerSummary, $ as LoadLayerDataParams, a0 as LoadLayerDataResult, f as LoginRequest, g as LoginResponse, s as MapLayerConfig, q as MapSettings, h as MeResponse, R as RefreshResponse, Y as ResolveLayerStrategyParams, _ as ResolveLayerStrategyResult, j as SdkTokenExchangeResponse, S as SdkTokenValidateResponse, aj as SuggestedAction, U as UserSummary, V as ValidateResponse, i as ZenitAuthClient, d as ZenitClient, aq as ZenitFeatureFilterPanel, ap as ZenitLayerManager, A as ZenitLayersClient, al as ZenitMap, ao as ZenitMapProps, am as ZenitMapRef, p as ZenitMapsClient, e as ZenitRuntimeConfig, k as ZenitSdkAuthClient, Z as ZenitSdkConfig, l as ZenitSdkError, aA as ZoomOpacityOptions, aa as applyLayerOverrides, x as buildAoiFromFeatureCollection, u as buildFilterMultipleParams, t as buildLayerFilters, z as buildLimitedMessage, aB as clampNumber, aC as clampOpacity, ah as createChatService, az as getAccentByLayerId, aG as getEffectiveLayerOpacity, ax as getLayerColor, aF as getLayerZoomOpacityFactor, ay as getStyleByLayerId, aE as getZoomOpacityFactor, a9 as initLayerStates, aD as isPolygonLayer, m as mergeFilters, n as normalizeFilters, ab as resetOverrides, aw as resolveLayerAccent, y as resolveLayerStrategy, r as resolveRuntimeConfig, af as sendMessage, ag as sendMessageStream, w as shouldSkipGeojsonDownload, v as shouldUseFilterMultiple, at as useSendMessage, au as useSendMessageStream } from './index-BSljZaYk.mjs';
|
|
3
3
|
export { ChevronLeft, ChevronRight, Eye, EyeOff, Layers, Upload, X, ZoomIn } from 'lucide-react';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'leaflet';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MapDto, N as NormalizedMapLayer, G as GeoJsonFeature, B as Bbox, a as GeoJsonFeatureCollection, F as FilterMultipleMetadata, L as LayerFilters, b as GeoJsonRequestOptions, c as GeoJsonPolygon } from './index-
|
|
2
|
-
export { O as ApiEnvelope, P as ApiResponseData, ai as ChatRequestDto, ad as ChatRequestOptions, ak as ChatResponseDto, ac as ChatServiceConfig, ae as ChatStreamCallbacks, D as DEFAULT_MAX_FEATURES_FULL_GEOJSON, a8 as EffectiveLayerState, a4 as FilterMultipleLayerMeta, a5 as FilterMultipleWithFallbackResult, a3 as FilterValue, ar as FloatingChatBox, as as FloatingChatBoxProps, T as GeoJsonBBoxRequest, J as GeoJsonGeometryCollection, W as GeoJsonIntersectRequest, I as GeoJsonPoint, o as HttpClient, H as HttpClientOptions, X as LayerAoi, a6 as LayerBaseState, K as LayerDataStrategy, C as LayerDto, a1 as LayerFeatureCatalogItem, a2 as LayerFeaturesCatalogDto, Q as LayerMetadata, a7 as LayerOverrideState, an as LayerSnapshot, av as LayerStyle, E as LayerSummary, $ as LoadLayerDataParams, a0 as LoadLayerDataResult, f as LoginRequest, g as LoginResponse, s as MapLayerConfig, q as MapSettings, h as MeResponse, R as RefreshResponse, Y as ResolveLayerStrategyParams, _ as ResolveLayerStrategyResult, j as SdkTokenExchangeResponse, S as SdkTokenValidateResponse, aj as SuggestedAction, U as UserSummary, V as ValidateResponse, i as ZenitAuthClient, d as ZenitClient, aq as ZenitFeatureFilterPanel, ap as ZenitLayerManager, A as ZenitLayersClient, al as ZenitMap, ao as ZenitMapProps, am as ZenitMapRef, p as ZenitMapsClient, e as ZenitRuntimeConfig, k as ZenitSdkAuthClient, Z as ZenitSdkConfig, l as ZenitSdkError, aA as ZoomOpacityOptions, aa as applyLayerOverrides, x as buildAoiFromFeatureCollection, u as buildFilterMultipleParams, t as buildLayerFilters, z as buildLimitedMessage, aB as clampNumber, aC as clampOpacity, ah as createChatService, az as getAccentByLayerId, aG as getEffectiveLayerOpacity, ax as getLayerColor, aF as getLayerZoomOpacityFactor, ay as getStyleByLayerId, aE as getZoomOpacityFactor, a9 as initLayerStates, aD as isPolygonLayer, m as mergeFilters, n as normalizeFilters, ab as resetOverrides, aw as resolveLayerAccent, y as resolveLayerStrategy, r as resolveRuntimeConfig, af as sendMessage, ag as sendMessageStream, w as shouldSkipGeojsonDownload, v as shouldUseFilterMultiple, at as useSendMessage, au as useSendMessageStream } from './index-
|
|
1
|
+
import { M as MapDto, N as NormalizedMapLayer, G as GeoJsonFeature, B as Bbox, a as GeoJsonFeatureCollection, F as FilterMultipleMetadata, L as LayerFilters, b as GeoJsonRequestOptions, c as GeoJsonPolygon } from './index-BSljZaYk.js';
|
|
2
|
+
export { O as ApiEnvelope, P as ApiResponseData, ai as ChatRequestDto, ad as ChatRequestOptions, ak as ChatResponseDto, ac as ChatServiceConfig, ae as ChatStreamCallbacks, D as DEFAULT_MAX_FEATURES_FULL_GEOJSON, a8 as EffectiveLayerState, a4 as FilterMultipleLayerMeta, a5 as FilterMultipleWithFallbackResult, a3 as FilterValue, ar as FloatingChatBox, as as FloatingChatBoxProps, T as GeoJsonBBoxRequest, J as GeoJsonGeometryCollection, W as GeoJsonIntersectRequest, I as GeoJsonPoint, o as HttpClient, H as HttpClientOptions, X as LayerAoi, a6 as LayerBaseState, K as LayerDataStrategy, C as LayerDto, a1 as LayerFeatureCatalogItem, a2 as LayerFeaturesCatalogDto, Q as LayerMetadata, a7 as LayerOverrideState, an as LayerSnapshot, av as LayerStyle, E as LayerSummary, $ as LoadLayerDataParams, a0 as LoadLayerDataResult, f as LoginRequest, g as LoginResponse, s as MapLayerConfig, q as MapSettings, h as MeResponse, R as RefreshResponse, Y as ResolveLayerStrategyParams, _ as ResolveLayerStrategyResult, j as SdkTokenExchangeResponse, S as SdkTokenValidateResponse, aj as SuggestedAction, U as UserSummary, V as ValidateResponse, i as ZenitAuthClient, d as ZenitClient, aq as ZenitFeatureFilterPanel, ap as ZenitLayerManager, A as ZenitLayersClient, al as ZenitMap, ao as ZenitMapProps, am as ZenitMapRef, p as ZenitMapsClient, e as ZenitRuntimeConfig, k as ZenitSdkAuthClient, Z as ZenitSdkConfig, l as ZenitSdkError, aA as ZoomOpacityOptions, aa as applyLayerOverrides, x as buildAoiFromFeatureCollection, u as buildFilterMultipleParams, t as buildLayerFilters, z as buildLimitedMessage, aB as clampNumber, aC as clampOpacity, ah as createChatService, az as getAccentByLayerId, aG as getEffectiveLayerOpacity, ax as getLayerColor, aF as getLayerZoomOpacityFactor, ay as getStyleByLayerId, aE as getZoomOpacityFactor, a9 as initLayerStates, aD as isPolygonLayer, m as mergeFilters, n as normalizeFilters, ab as resetOverrides, aw as resolveLayerAccent, y as resolveLayerStrategy, r as resolveRuntimeConfig, af as sendMessage, ag as sendMessageStream, w as shouldSkipGeojsonDownload, v as shouldUseFilterMultiple, at as useSendMessage, au as useSendMessageStream } from './index-BSljZaYk.js';
|
|
3
3
|
export { ChevronLeft, ChevronRight, Eye, EyeOff, Layers, Upload, X, ZoomIn } from 'lucide-react';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'leaflet';
|