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.
- package/lib/cjs/index.js +9 -9
- package/lib/cjs/types/hooks/useAppConfigurations.d.ts +1 -2
- package/lib/cjs/types/hooks/useCredentials.d.ts +1 -2
- package/lib/cjs/types/hooks/usePaths.d.ts +1 -2
- package/lib/cjs/types/hooks/useResources.d.ts +1 -2
- package/lib/cjs/types/hooks/useSnackAlert.d.ts +1 -2
- package/lib/esm/index.js +1 -1
- package/lib/esm/types/hooks/useAppConfigurations.d.ts +1 -2
- package/lib/esm/types/hooks/useCredentials.d.ts +1 -2
- package/lib/esm/types/hooks/usePaths.d.ts +1 -2
- package/lib/esm/types/hooks/useResources.d.ts +1 -2
- package/lib/esm/types/hooks/useSnackAlert.d.ts +1 -2
- package/lib/index.d.ts +36 -2
- package/package.json +1 -1
|
@@ -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,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
|
|
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 };
|