ethiopia-map 0.1.4 → 0.1.5

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/index.d.ts CHANGED
@@ -9,4 +9,4 @@ export { EthiopiaMapProvider, EthiopiaMapRoot, useEthiopiaMap, } from "./context
9
9
  export { defaultLocations, defaultRegionData, defaultRegionServiceStats, } from "./data/defaultData";
10
10
  export { regionPathMap, type RegionPathMapping } from "./data/regionPaths";
11
11
  export { ETHIOPIA_AUTO_TOUR_SEQUENCE, ETHIOPIA_REGION_IDS } from "./types";
12
- export type { AutoTourStep, ComparisonDirection, ComparisonOutcome, EthiopiaLocationsPanelProps, EthiopiaMapConfig, EthiopiaMapHandle, EthiopiaMapLayer, EthiopiaMapLegendProps, EthiopiaMapProps, EthiopiaMapProviderProps, EthiopiaMapSelection, EthiopiaRegionId, EthiopiaServiceRowsIncrementalConfig, EthiopiaSelectedRegionCardProps, EthiopiaTheme, EthiopiaViewMode, ExportVideoOptions, LatLngLocation, PartialRegionRecord, RegionDatum, RegionRecord, RegionSummaryStat, RegionServiceStats, SelectionAnimationMode, ServiceComparison, ServiceStat, ServiceValueKind, } from "./types";
12
+ export type { AutoTourStep, ComparisonDirection, ComparisonOutcome, EthiopiaLocationsPanelProps, EthiopiaMapConfig, EthiopiaMapHandle, EthiopiaMapLayer, EthiopiaMapEra, EthiopiaMapLegendProps, EthiopiaMapProps, EthiopiaMapProviderProps, EthiopiaMapSelection, EthiopiaRegionId, EthiopiaServiceRowsIncrementalConfig, EthiopiaSelectedRegionCardProps, EthiopiaTheme, EthiopiaViewMode, ExportVideoOptions, LatLngLocation, PartialRegionRecord, RegionDatum, RegionRecord, RegionSummaryStat, RegionServiceStats, SelectionAnimationMode, ServiceComparison, ServiceStat, ServiceValueKind, } from "./types";
package/dist/types.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import type { CSSProperties, ReactNode } from "react";
2
2
  export declare const ETHIOPIA_AUTO_TOUR_SEQUENCE: readonly ["afar", "tigray", "amhara", "benishangul-gumuz", "gambela", "south-west-ethiopia", "south-ethiopia", "sidama", "central-ethiopia", "addis-ababa", "dire-dawa", "harari", "somali", "oromia", null];
3
- export declare const ETHIOPIA_REGION_IDS: readonly ["tigray", "afar", "amhara", "benishangul-gumuz", "gambela", "south-west-ethiopia", "central-ethiopia", "sidama", "south-ethiopia", "oromia", "addis-ababa", "somali", "dire-dawa", "harari"];
3
+ export declare const ETHIOPIA_REGION_IDS: readonly ["tigray", "afar", "amhara", "benishangul-gumuz", "gambela", "south-west-ethiopia", "central-ethiopia", "sidama", "south-ethiopia", "snnpr", "oromia", "addis-ababa", "somali", "dire-dawa", "harari"];
4
4
  export type EthiopiaRegionId = (typeof ETHIOPIA_REGION_IDS)[number];
5
+ export type EthiopiaMapEra = "11-region" | "12-region" | "13-region" | "14-region";
5
6
  export type EthiopiaTheme = "light" | "dark";
6
7
  export type EthiopiaMapLayer = "regions" | "heat" | "terrain";
7
8
  export type EthiopiaViewMode = "map" | "bars";
@@ -67,6 +68,8 @@ export interface EthiopiaMapSelection {
67
68
  }
68
69
  export interface EthiopiaMapConfig {
69
70
  theme?: EthiopiaTheme;
71
+ era?: EthiopiaMapEra;
72
+ year?: number | string;
70
73
  layer?: EthiopiaMapLayer;
71
74
  defaultLayer?: EthiopiaMapLayer;
72
75
  onLayerChange?: (layer: EthiopiaMapLayer) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ethiopia-map",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Interactive Ethiopian map components for React and Next.js applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",