searchsmartly-ui 1.0.5 → 1.0.7

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
@@ -608,6 +608,9 @@ type MapProps = {
608
608
  longitude: number;
609
609
  radius: number;
610
610
  }[]>>;
611
+ areaTagIndex?: number | null;
612
+ onChangeAreaTags?: (val: Record<string, string[] | unknown>, index: number, isAdd: boolean) => void;
613
+ updateAreaTagIndex?: (val: null | number) => void;
611
614
  };
612
615
 
613
616
  type PinFeature = {
@@ -627,13 +630,18 @@ type PolygonType = {
627
630
  declare const Polygon: FC<PolygonType>;
628
631
 
629
632
  type MapTagsInterface = {
630
- filters: MapProps['filters'] | Record<string, unknown>;
633
+ filters: (MapProps['filters'] | Record<string, unknown>) & {
634
+ areas?: string[];
635
+ };
631
636
  tagIndex: number | null;
637
+ areaTagIndex?: number | null;
632
638
  isochronesTags?: boolean;
633
639
  county: MapboxGeoJSONFeature | null;
634
640
  isochrones: MapProps['isochrones'];
635
641
  resetCounty: () => void;
636
642
  updateTagIndex: (val: null | number) => void;
643
+ updateAreaTagIndex?: (val: null | number) => void;
644
+ onChangeAreaTags?: (val: Record<string, string[] | unknown>, index: number, isAdd: boolean) => void;
637
645
  };
638
646
  declare const MapTags: FC<MapTagsInterface>;
639
647