@autobusal/map 0.0.2 → 0.0.3

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/Column/Column.tsx CHANGED
@@ -7,7 +7,7 @@ import { HiOutlineRefresh, HiOutlineSearch } from 'react-icons/hi';
7
7
  import { Button } from '@autobusal/common';
8
8
  import { display, validate } from '@autobusal/utilities';
9
9
  import { Container, Items, Item, ButtonClear, Actions } from './styles';
10
- import { CityData } from '@autobusal/providers/types';
10
+ import { CityData } from '@autobusal/providers/types/locations';
11
11
  import { SearchForm } from '../types';
12
12
 
13
13
  interface Props {
@@ -1,7 +1,7 @@
1
1
  import { MapContainer, TileLayer, Marker, Popup, Polyline } from 'react-leaflet';
2
2
  import { getPosition } from '@autobusal/utilities';
3
3
  import { Container } from './styles';
4
- import { CityData } from '@autobusal/providers/types';
4
+ import { CityData } from '@autobusal/providers/types/locations';
5
5
 
6
6
  interface Props {
7
7
  cities: CityData[]
package/Map.tsx CHANGED
@@ -3,7 +3,7 @@ import { TFunction } from 'i18next';
3
3
  import { Meta } from '@autobusal/common';
4
4
  import Column from './Column/Column';
5
5
  import Display from './Display/Display';
6
- import { CityData } from '@autobusal/providers/types';
6
+ import { CityData } from '@autobusal/providers/types/locations';
7
7
  import { GetLocations } from './services';
8
8
 
9
9
  interface Props {
package/package.json CHANGED
@@ -1,19 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/map",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
- "main": "index.ts",
6
- "dependencies": {
7
- "@autobusal/common": "^0.0.8",
8
- "@autobusal/providers": "^1.0.16",
9
- "@autobusal/utilities": "^0.0.2",
10
- "@tanstack/react-query": "^5.17.19",
11
- "i18next": "^23.7.18",
12
- "react": "^18.2.0",
13
- "react-hook-form": "^7.49.3",
14
- "react-icons": "^5.0.1",
15
- "react-leaflet": "^4.2.1",
16
- "react-router-dom": "^6.21.3",
17
- "styled-components": "^6.1.8"
18
- }
5
+ "main": "index.ts"
19
6
  }
package/services.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useSuspenseQuery, UseSuspenseQueryResult } from '@tanstack/react-query';
2
2
  import { apiClient } from '@autobusal/providers';
3
- import { CityData } from '@autobusal/providers/types';
3
+ import { CityData } from '@autobusal/providers/types/locations';
4
4
 
5
5
  export const GetLocations = (): UseSuspenseQueryResult<CityData[]> => (
6
6
  useSuspenseQuery({