@nextelco/common-ui 1.4.98 → 1.4.99

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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { AxiosInstance } from 'axios';
3
- export declare const ApiServiceProvider: React.FC<{
3
+ export declare const ApiProvider: React.FC<{
4
4
  children: React.ReactNode;
5
5
  baseURL: string;
6
6
  token?: string;
@@ -6,9 +6,9 @@ interface RequestOptions {
6
6
  params?: object;
7
7
  responseType?: 'blob';
8
8
  }
9
- declare const useApiService: () => {
9
+ export declare const useApi: () => {
10
10
  request: (options: RequestOptions) => Promise<any | null>;
11
11
  errors: string | null;
12
12
  loading: boolean;
13
13
  };
14
- export default useApiService;
14
+ export {};
@@ -11,4 +11,6 @@ export { default as Operators } from './components/moleculas/Operators/Operators
11
11
  export { default as BreadCrumb } from './components/atoms/BreadCrumb/BreadCrumb';
12
12
  export { default as Loading } from './pages/Loading/Loading';
13
13
  export { useAuth, AuthProvider } from './contexts/authContext';
14
+ export { ApiProvider } from './contexts/apiContext';
15
+ export { useApi } from './hooks/useApi';
14
16
  export { LoggedUser } from './types/LoggedUser';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextelco/common-ui",
3
- "version": "1.4.98",
3
+ "version": "1.4.99",
4
4
  "description": "",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/types/index.d.ts",