@abdellatifui/react 3.2.53 → 3.2.55

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,18 +1,14 @@
1
1
  import { AgGridReactProps } from 'ag-grid-react';
2
- import { AxiosDefaults } from 'axios';
3
- import { AxiosHeaderValue } from 'axios';
4
- import { AxiosInstance } from 'axios';
5
- import { AxiosInterceptorManager } from 'axios';
2
+ import { AxiosError } from 'axios';
3
+ import { AxiosRequestConfig } from 'axios';
6
4
  import { AxiosResponse } from 'axios';
7
5
  import { ChangeEvent } from 'react';
8
6
  import { ClassValue } from 'clsx';
9
7
  import { Context } from 'react';
10
- import { CreateAxiosDefaults } from 'axios';
11
8
  import { cva } from 'class-variance-authority';
12
9
  import { default as default_2 } from 'react';
13
10
  import { Dispatch } from 'react';
14
11
  import { ForwardRefExoticComponent } from 'react';
15
- import { HeadersDefaults } from 'axios';
16
12
  import { InternalAxiosRequestConfig } from 'axios';
17
13
  import { IntersectionOptions } from 'react-intersection-observer';
18
14
  import { JSX } from 'react/jsx-runtime';
@@ -21,16 +17,28 @@ import { MutableRefObject } from 'react';
21
17
  import * as React_2 from 'react';
22
18
  import { ReactNode } from 'react';
23
19
  import { RefAttributes } from 'react';
24
- import { RefObject } from 'react';
25
20
  import { SetStateAction } from 'react';
21
+ import { Socket } from 'socket.io-client';
26
22
  import { ThemeDefaultParams } from 'ag-grid-community';
27
23
  import { TooltipProviderProps } from '@radix-ui/react-tooltip';
28
24
  import { ViewState } from 'react-map-gl/maplibre';
29
25
 
30
- export declare const AbuiContext: default_2.Context<unknown>;
26
+ export declare const AbuiContext: default_2.Context<{
27
+ externalApi: {};
28
+ }>;
31
29
 
32
30
  export declare const AbuiContextProvider: (props: any) => JSX.Element;
33
31
 
32
+ export declare type AbuiContextType = {
33
+ children: default_2.ReactNode<HTMLAllCollection>;
34
+ suspense: default_2.ReactNode<HTMLAllCollection>;
35
+ authorization: boolean;
36
+ onReady: (event: any) => void;
37
+ onInit: (event: any) => void;
38
+ api: UseApiProps;
39
+ contentActivityMode: "hidden" | "visible";
40
+ };
41
+
34
42
  export declare const AccordionGroup: (props: any) => JSX.Element;
35
43
 
36
44
  export declare interface AccordionGroupProps {
@@ -54,7 +62,7 @@ export declare interface AccordionGroupProps {
54
62
  }) => void;
55
63
  }
56
64
 
57
- export declare const AccordionItem: (props: any) => JSX.Element;
65
+ export declare const AccordionItem: (props: AccordionItemProps) => JSX.Element;
58
66
 
59
67
  export declare interface AccordionItemProps {
60
68
  value: string;
@@ -62,6 +70,18 @@ export declare interface AccordionItemProps {
62
70
  children: default_2.ReactNode;
63
71
  disabled?: boolean;
64
72
  className?: string;
73
+ defaultOpen?: boolean;
74
+ onOpen?: (params: {
75
+ value: any;
76
+ props: any;
77
+ api: any;
78
+ }) => void;
79
+ onClose?: (params: {
80
+ value: any;
81
+ props: any;
82
+ api: any;
83
+ }) => void;
84
+ delay?: number;
65
85
  }
66
86
 
67
87
  export declare interface AdvancedSpinnerProps extends SpinnerProps {
@@ -348,6 +368,16 @@ export declare interface ExcelFilterProps {
348
368
  tid?: string;
349
369
  }
350
370
 
371
+ declare interface ExtendedAxiosInstance extends Socket {
372
+ socketio: Socket | Record<string, never>;
373
+ ready: boolean;
374
+ socketioConnected: boolean;
375
+ connected: boolean;
376
+ csid: string;
377
+ pool: React.RefObject<InternalAxiosRequestConfig[]>;
378
+ props: UseApiProps;
379
+ }
380
+
351
381
  export declare interface FilterState {
352
382
  [columnField: string]: any[];
353
383
  }
@@ -371,7 +401,7 @@ export declare interface FrequencyProps {
371
401
  */
372
402
  export declare function getRandomColor(): string;
373
403
 
374
- export declare const GetRandomStr: (length?: number, str?: boolean) => string;
404
+ export declare const GetRandomStr: (options: any) => string;
375
405
 
376
406
  export declare const getWholeSpectrum: () => any[];
377
407
 
@@ -726,7 +756,9 @@ declare type NetworkMapProps_2 = {
726
756
  maxZoomOutForLinkCount: number;
727
757
  mapTilesCacheSize: number;
728
758
  nodeSizeScaler: number;
759
+ pathThikness: number;
729
760
  boundMargin: number;
761
+ pathCurvature: number;
730
762
  defaultAnimationLinkColor: string;
731
763
  nodeVirtualizationMethod: 'moving' | 'moveend';
732
764
  linkAnimation: boolean;
@@ -1315,24 +1347,7 @@ export declare interface TooltipProps {
1315
1347
  variant?: 'primary' | 'secondary' | 'outline';
1316
1348
  }
1317
1349
 
1318
- export declare const useApi: (props: UseApiProps) => {
1319
- ready: boolean;
1320
- socketioConnected: boolean;
1321
- connected: boolean;
1322
- csid: string;
1323
- pool: RefObject<any[]>;
1324
- props: UseApiProps;
1325
- create(config?: CreateAxiosDefaults): AxiosInstance;
1326
- defaults: Omit<AxiosDefaults, "headers"> & {
1327
- headers: HeadersDefaults & {
1328
- [key: string]: AxiosHeaderValue;
1329
- };
1330
- };
1331
- interceptors: {
1332
- request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
1333
- response: AxiosInterceptorManager<AxiosResponse>;
1334
- };
1335
- };
1350
+ export declare const useApi: (props: UseApiProps) => ExtendedAxiosInstance;
1336
1351
 
1337
1352
  export declare interface UseApiProps {
1338
1353
  baseUrl?: string;
@@ -1340,15 +1355,15 @@ export declare interface UseApiProps {
1340
1355
  pushToast?: boolean;
1341
1356
  spinner?: boolean;
1342
1357
  debug?: boolean;
1343
- config?: any;
1344
- socketioParams?: any;
1345
- headers?: any;
1358
+ config?: AxiosRequestConfig;
1359
+ socketioParams?: Record<string, any>;
1360
+ headers?: Record<string, string>;
1346
1361
  socketio?: boolean;
1347
- onSuccess?: any;
1348
- onFail?: any;
1349
- onComplete?: any;
1350
- onRequest?: any;
1351
- onFailureRule?: any;
1362
+ onSuccess?: (response: AxiosResponse) => void;
1363
+ onFail?: (error: AxiosError | Error) => void;
1364
+ onComplete?: (error: AxiosError | Error | null, response?: AxiosResponse) => void;
1365
+ onRequest?: (args: any) => void;
1366
+ onFailureRule?: (response: AxiosResponse) => boolean;
1352
1367
  socketBaseUrl?: string;
1353
1368
  notify?: boolean;
1354
1369
  }