@open-tender/cloud 0.1.47 → 0.1.49

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/.DS_Store ADDED
Binary file
@@ -1,17 +1,11 @@
1
- import { RequestError } from '@open-tender/types';
1
+ import { LatLng, RequestError } from '@open-tender/types';
2
2
  import { AppState } from '../app';
3
3
  export interface GeoLocationState {
4
- latLng: {
5
- lat: number;
6
- lng: number;
7
- } | null;
4
+ latLng: LatLng | null;
8
5
  error: RequestError;
9
6
  loading: boolean;
10
7
  }
11
8
  export declare const resetGeolocation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"geolocation/resetGeolocation">, setGeoLatLng: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "geolocation/setGeoLatLng">, setGeoError: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "geolocation/setGeoError">, setGeoLoading: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"geolocation/setGeoLoading">;
12
9
  export declare const selectGeo: (state: AppState) => GeoLocationState;
13
- export declare const selectGeoLatLng: (state: AppState) => {
14
- lat: number;
15
- lng: number;
16
- } | null;
10
+ export declare const selectGeoLatLng: (state: AppState) => LatLng | null;
17
11
  export declare const geolocationReducer: import("redux").Reducer<GeoLocationState, import("redux").AnyAction>;
@@ -1,17 +1,11 @@
1
- import { RequestError } from '@open-tender/types';
1
+ import { LatLng, RequestError } from '@open-tender/types';
2
2
  import { AppState } from '../app';
3
3
  export interface GeoLocationState {
4
- latLng: {
5
- lat: number;
6
- lng: number;
7
- } | null;
4
+ latLng: LatLng | null;
8
5
  error: RequestError;
9
6
  loading: boolean;
10
7
  }
11
8
  export declare const resetGeolocation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"geolocation/resetGeolocation">, setGeoLatLng: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "geolocation/setGeoLatLng">, setGeoError: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "geolocation/setGeoError">, setGeoLoading: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"geolocation/setGeoLoading">;
12
9
  export declare const selectGeo: (state: AppState) => GeoLocationState;
13
- export declare const selectGeoLatLng: (state: AppState) => {
14
- lat: number;
15
- lng: number;
16
- } | null;
10
+ export declare const selectGeoLatLng: (state: AppState) => LatLng | null;
17
11
  export declare const geolocationReducer: import("redux").Reducer<GeoLocationState, import("redux").AnyAction>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -49,8 +49,8 @@
49
49
  "typescript": "^4.8.2"
50
50
  },
51
51
  "peerDependencies": {
52
- "@open-tender/types": "^0.2.42",
53
- "@open-tender/utils": "^0.1.95",
52
+ "@open-tender/types": "^0.2.43",
53
+ "@open-tender/utils": "^0.1.97",
54
54
  "@reduxjs/toolkit": "^1.8.5",
55
55
  "react": "^18.2.0"
56
56
  },