@abdellatifui/react 3.0.1 → 3.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/dist/nextgen.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  /// <reference types="react" />
2
2
 
3
3
  import { AgGridReactProps } from 'ag-grid-react';
4
- import { AxiosInstance } from 'axios';
4
+ import { AxiosDefaults } from 'axios';
5
+ import { AxiosHeaderValue } from 'axios';
6
+ import { AxiosInterceptorManager } from 'axios';
7
+ import { AxiosResponse } from 'axios';
5
8
  import { ChangeEvent } from 'react';
6
9
  import { ClassValue } from 'clsx';
7
10
  import { Context } from 'react';
@@ -9,8 +12,11 @@ import { cva } from 'class-variance-authority';
9
12
  import { default as default_2 } from 'react';
10
13
  import { Dispatch } from 'react';
11
14
  import { ForwardRefExoticComponent } from 'react';
15
+ import { HeadersDefaults } from 'axios';
16
+ import { InternalAxiosRequestConfig } from 'axios';
12
17
  import { JSX as JSX_2 } from 'react/jsx-runtime';
13
18
  import { MUIStyledCommonProps } from '@mui/system';
19
+ import { MutableRefObject } from 'react';
14
20
  import * as React_2 from 'react';
15
21
  import { ReactNode } from 'react';
16
22
  import { RefAttributes } from 'react';
@@ -269,7 +275,21 @@ export declare const Tooltip: StyledComponent< {
269
275
  className: any;
270
276
  } & MUIStyledCommonProps<Theme>, {}, {}>;
271
277
 
272
- export declare const useApi: (props: any) => AxiosInstance;
278
+ export declare const useApi: (props: any) => {
279
+ ready: any;
280
+ socketioConnected: any;
281
+ pool: MutableRefObject<any[]>;
282
+ props: any;
283
+ defaults: Omit<AxiosDefaults<any>, "headers"> & {
284
+ headers: HeadersDefaults & {
285
+ [key: string]: AxiosHeaderValue;
286
+ };
287
+ };
288
+ interceptors: {
289
+ request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>;
290
+ response: AxiosInterceptorManager<AxiosResponse<any, any>>;
291
+ };
292
+ };
273
293
 
274
294
  export declare function useBoxSize(ref: any): ({
275
295
  y: number;
@@ -279,7 +299,9 @@ y: number;
279
299
  x: number;
280
300
  }>>)[];
281
301
 
282
- export declare const useRandomId: (length?: number, beginstr?: boolean, forcss?: boolean) => undefined;
302
+ export declare const useGeneratedId: (length?: number, beginstr?: boolean, forcss?: boolean) => string;
303
+
304
+ export declare const useRandomId: (length?: number) => string;
283
305
 
284
306
  export declare const useStore: (props?: {}) => {}[];
285
307