ethio-map-kit 0.1.3 → 0.1.4

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/types.d.ts CHANGED
@@ -45,6 +45,10 @@ export interface EthiopiaServiceRowsIncrementalConfig {
45
45
  step?: number;
46
46
  thresholdPx?: number;
47
47
  showMoreFallback?: boolean;
48
+ animateNewRows?: boolean;
49
+ rowAnimationDelayMs?: number;
50
+ rowAnimationDurationMs?: number;
51
+ sentinelVisible?: boolean;
48
52
  }
49
53
  export interface LatLngLocation {
50
54
  id?: string | number;
@@ -64,6 +68,8 @@ export interface EthiopiaMapSelection {
64
68
  export interface EthiopiaMapConfig {
65
69
  theme?: EthiopiaTheme;
66
70
  layer?: EthiopiaMapLayer;
71
+ defaultLayer?: EthiopiaMapLayer;
72
+ onLayerChange?: (layer: EthiopiaMapLayer) => void;
67
73
  viewMode?: EthiopiaViewMode;
68
74
  selectionAnimation?: SelectionAnimationMode;
69
75
  showLabels?: boolean;
@@ -95,6 +101,9 @@ export interface EthiopiaMapProps extends Omit<EthiopiaMapProviderProps, "childr
95
101
  inMapStatsListStyle?: CSSProperties;
96
102
  inMapStatsEmptyText?: string;
97
103
  incrementalRows?: EthiopiaServiceRowsIncrementalConfig;
104
+ showLayerControl?: boolean;
105
+ layerControlClassName?: string;
106
+ layerControlLabels?: Partial<Record<"regions" | "terrain", string>>;
98
107
  }
99
108
  export interface EthiopiaMapLegendProps {
100
109
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ethio-map-kit",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Type-safe React components for an interactive Ethiopia regional SVG map.",
5
5
  "type": "module",
6
6
  "license": "MIT",