identity-admin-ui 1.4.2 → 1.4.4

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,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const useAppConfigurations: () => {
2
+ export declare const useAppConfigurations: () => {
3
3
  textFieldSize: import("../helpers").SizeType;
4
4
  themeLayout?: "horizontal" | "vertical" | "mini" | undefined;
5
5
  defaultRowsPerPage: number;
@@ -9,4 +9,3 @@ declare const useAppConfigurations: () => {
9
9
  navBarLogo?: string | undefined;
10
10
  miniNavBarLogo?: string | undefined;
11
11
  };
12
- export default useAppConfigurations;
@@ -1,2 +1 @@
1
- declare const useCredentials: () => import("../context").CredentialKeys;
2
- export default useCredentials;
1
+ export declare const useCredentials: () => import("../context").CredentialKeys;
@@ -1,8 +1,7 @@
1
- declare const usePaths: () => {
1
+ export declare const usePaths: () => {
2
2
  paths: {
3
3
  [key: string]: import("../context").ResourcePaths;
4
4
  };
5
5
  root: string;
6
6
  home: string;
7
7
  };
8
- export default usePaths;
@@ -1,5 +1,4 @@
1
- declare const useResources: () => {
1
+ export declare const useResources: () => {
2
2
  resources: import("../context").ResourceResponse;
3
3
  getResources: () => void;
4
4
  };
5
- export default useResources;
@@ -1,6 +1,5 @@
1
- declare const useSnackAlert: () => {
1
+ export declare const useSnackAlert: () => {
2
2
  setAlert: (message: string, severity: import("@mui/material").AlertColor, position?: import("notistack").SnackbarOrigin | undefined) => void;
3
3
  setErrorAlert: (message: string, position?: import("notistack").SnackbarOrigin | undefined) => void;
4
4
  setSuccessAlert: (message: string, position?: import("notistack").SnackbarOrigin | undefined) => void;
5
5
  };
6
- export default useSnackAlert;
package/lib/index.d.ts CHANGED
@@ -5,8 +5,10 @@ import { ReactElement, ReactNode } from 'react';
5
5
  import { GridSortDirection } from '@mui/x-data-grid';
6
6
  import * as axios from 'axios';
7
7
  import { AxiosRequestConfig } from 'axios';
8
- import { AlertColor } from '@mui/material';
8
+ import * as notistack from 'notistack';
9
9
  import { SnackbarOrigin } from 'notistack';
10
+ import * as _mui_material from '@mui/material';
11
+ import { AlertColor } from '@mui/material';
10
12
 
11
13
  type TLink = {
12
14
  href?: string;
@@ -173,6 +175,17 @@ declare enum FileTypes {
173
175
  AUDIO = "AUDIO"
174
176
  }
175
177
 
178
+ declare const useAppConfigurations: () => {
179
+ textFieldSize: SizeType;
180
+ themeLayout?: "horizontal" | "vertical" | "mini" | undefined;
181
+ defaultRowsPerPage: number;
182
+ themeStretch: boolean;
183
+ setThemeLayout?: react.Dispatch<react.SetStateAction<"horizontal" | "vertical" | "mini">> | undefined;
184
+ loadingLoago?: string | undefined;
185
+ navBarLogo?: string | undefined;
186
+ miniNavBarLogo?: string | undefined;
187
+ };
188
+
176
189
  declare const ApiContext: react.Context<ApiContextProps>;
177
190
  interface ApiContextProps {
178
191
  statusCode: number | null;
@@ -392,6 +405,27 @@ type SnackAlertProviderProps = {
392
405
  };
393
406
  declare function SnackAlertProvider({ children }: SnackAlertProviderProps): react_jsx_runtime.JSX.Element;
394
407
 
408
+ declare const useResources: () => {
409
+ resources: ResourceResponse;
410
+ getResources: () => void;
411
+ };
412
+
413
+ declare const useCredentials: () => CredentialKeys;
414
+
415
+ declare const useSnackAlert: () => {
416
+ setAlert: (message: string, severity: _mui_material.AlertColor, position?: notistack.SnackbarOrigin | undefined) => void;
417
+ setErrorAlert: (message: string, position?: notistack.SnackbarOrigin | undefined) => void;
418
+ setSuccessAlert: (message: string, position?: notistack.SnackbarOrigin | undefined) => void;
419
+ };
420
+
421
+ declare const usePaths: () => {
422
+ paths: {
423
+ [key: string]: ResourcePaths;
424
+ };
425
+ root: string;
426
+ home: string;
427
+ };
428
+
395
429
  declare const IdentityClient: axios.AxiosInstance;
396
430
  declare module 'axios' {
397
431
  interface AxiosRequestConfig {
@@ -437,4 +471,4 @@ declare function DashBoardRouter(props: any): {
437
471
  }[];
438
472
  };
439
473
 
440
- export { ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, IAction, IActionMin, IExtarAction, IExtras, IFilter, IMainProperty, IParent, IProperty, ISchemaObject, ISnackMessageProps, IState, IdentityClient, CreateEdit as IdentityEdit, ListRecords as IdentityList, IdentityPage, IdentityPageProps, DashBoardRouter as IdentityRouter, ShowRecord as IdentityShow, PageVariant, PathsContext, PathsContextConfig, PathsContextProvider, RequestConfig, RequestState, ResourcePaths, ResourceResponse, ResourcesContext, ResourcesContextConfig, ResourcesContextProvider, SettingsValueProps, Severity, SnackAlertContext, SnackAlertProvider, State, ThemeProps, ThemeProvider, orderTypes, path, useApi, useNavData };
474
+ export { ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, IAction, IActionMin, IExtarAction, IExtras, IFilter, IMainProperty, IParent, IProperty, ISchemaObject, ISnackMessageProps, IState, IdentityClient, CreateEdit as IdentityEdit, ListRecords as IdentityList, IdentityPage, IdentityPageProps, DashBoardRouter as IdentityRouter, ShowRecord as IdentityShow, PageVariant, PathsContext, PathsContextConfig, PathsContextProvider, RequestConfig, RequestState, ResourcePaths, ResourceResponse, ResourcesContext, ResourcesContextConfig, ResourcesContextProvider, SettingsValueProps, Severity, SnackAlertContext, SnackAlertProvider, State, ThemeProps, ThemeProvider, orderTypes, path, useApi, useAppConfigurations, useCredentials, useNavData, usePaths, useResources, useSnackAlert };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin-ui",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "Identity solutions UI package using for identity-admin dashboard",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.js",