identity-admin-ui 1.4.0 → 1.4.2

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.
@@ -4,3 +4,4 @@ export * from "./Resource";
4
4
  export * from "./PathsContext";
5
5
  export * from "./AppConfigurationsContext";
6
6
  export * from "./CredentialsContext";
7
+ export * from "./SnackAlertContext";
@@ -0,0 +1 @@
1
+ export * from './ListProps';
@@ -0,0 +1,3 @@
1
+ export * from './EnumHelper';
2
+ export * from './Types';
3
+ export * from './CrudHelper/List';
@@ -1,3 +1,8 @@
1
1
  export * from './useApi';
2
2
  export * from './RequetState';
3
3
  export * from './useNavData';
4
+ export * from './useAppConfigurations';
5
+ export * from './useResources';
6
+ export * from './useCredentials';
7
+ export * from './useSnackAlert';
8
+ export * from './usePaths';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const useAppConfigurations: () => {
3
- textFieldSize: import("../helpers/Types").SizeType;
3
+ textFieldSize: import("../helpers").SizeType;
4
4
  themeLayout?: "horizontal" | "vertical" | "mini" | undefined;
5
5
  defaultRowsPerPage: number;
6
6
  themeStretch: boolean;
package/lib/index.d.ts CHANGED
@@ -5,6 +5,8 @@ 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';
9
+ import { SnackbarOrigin } from 'notistack';
8
10
 
9
11
  type TLink = {
10
12
  href?: string;
@@ -132,21 +134,6 @@ declare function useNavData(): {
132
134
  items: any;
133
135
  }[];
134
136
 
135
- declare const ApiContext: react.Context<ApiContextProps>;
136
- interface ApiContextProps {
137
- statusCode: number | null;
138
- dashbaordUrlPrefix?: string;
139
- }
140
- interface ApiContextConfig {
141
- language: string;
142
- baseUrl: string;
143
- onLogout: () => void;
144
- sleepTime?: number;
145
- children: any;
146
- dashbaordUrlPrefix?: string;
147
- }
148
- declare const ApiContextProvider: (props: ApiContextConfig) => react_jsx_runtime.JSX.Element;
149
-
150
137
  declare enum ActionTypes {
151
138
  RECORD = "RECORD",
152
139
  Resource = "RESOUCRE"
@@ -186,6 +173,21 @@ declare enum FileTypes {
186
173
  AUDIO = "AUDIO"
187
174
  }
188
175
 
176
+ declare const ApiContext: react.Context<ApiContextProps>;
177
+ interface ApiContextProps {
178
+ statusCode: number | null;
179
+ dashbaordUrlPrefix?: string;
180
+ }
181
+ interface ApiContextConfig {
182
+ language: string;
183
+ baseUrl: string;
184
+ onLogout: () => void;
185
+ sleepTime?: number;
186
+ children: any;
187
+ dashbaordUrlPrefix?: string;
188
+ }
189
+ declare const ApiContextProvider: (props: ApiContextConfig) => react_jsx_runtime.JSX.Element;
190
+
189
191
  interface IResource {
190
192
  filterProperties: string[];
191
193
  quickFilterProperties: string[];
@@ -374,6 +376,22 @@ interface CredentialProps extends CredentialKeys {
374
376
  }
375
377
  declare const CredentialsContextProvider: (props: CredentialProps) => react_jsx_runtime.JSX.Element;
376
378
 
379
+ interface ISnackMessageProps {
380
+ state: boolean;
381
+ message?: string | undefined;
382
+ severity?: AlertColor | undefined;
383
+ position?: SnackbarOrigin;
384
+ }
385
+ declare const SnackAlertContext: react.Context<{
386
+ setAlert: (message: string, severity: AlertColor, position?: SnackbarOrigin) => void;
387
+ setErrorAlert: (message: string, position?: SnackbarOrigin) => void;
388
+ setSuccessAlert: (message: string, position?: SnackbarOrigin) => void;
389
+ }>;
390
+ type SnackAlertProviderProps = {
391
+ children: ReactNode;
392
+ };
393
+ declare function SnackAlertProvider({ children }: SnackAlertProviderProps): react_jsx_runtime.JSX.Element;
394
+
377
395
  declare const IdentityClient: axios.AxiosInstance;
378
396
  declare module 'axios' {
379
397
  interface AxiosRequestConfig {
@@ -419,4 +437,4 @@ declare function DashBoardRouter(props: any): {
419
437
  }[];
420
438
  };
421
439
 
422
- export { ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, IAction, IActionMin, IExtarAction, IExtras, IFilter, IMainProperty, IParent, IProperty, ISchemaObject, 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, State, ThemeProps, ThemeProvider, orderTypes, path, useApi, useNavData };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin-ui",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
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",