identity-admin-ui 1.2.0 → 1.4.0
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 +12 -12
- package/lib/cjs/types/components/IdentitySnackAlert.d.ts +10 -0
- package/lib/cjs/types/context/AppConfigurationsContext.d.ts +2 -2
- package/lib/cjs/types/context/SnackAlertContext.d.ts +19 -0
- package/lib/cjs/types/helpers/CrudHelper/List/ListProps.d.ts +6 -1
- package/lib/cjs/types/hooks/useAppConfigurations.d.ts +12 -0
- package/lib/cjs/types/hooks/useCredentials.d.ts +2 -0
- package/lib/cjs/types/hooks/usePaths.d.ts +8 -0
- package/lib/cjs/types/hooks/useResources.d.ts +5 -0
- package/lib/cjs/types/hooks/useSnackAlert.d.ts +6 -0
- package/lib/cjs/types/layout/dashboard/config-navigation.d.ts +4 -4
- package/lib/cjs/types/routes/AdminRouter.d.ts +10 -10
- package/lib/cjs/types/routes/paths.d.ts +5 -5
- package/lib/esm/index.js +7 -7
- package/lib/esm/types/components/IdentitySnackAlert.d.ts +10 -0
- package/lib/esm/types/context/AppConfigurationsContext.d.ts +2 -2
- package/lib/esm/types/context/SnackAlertContext.d.ts +19 -0
- package/lib/esm/types/helpers/CrudHelper/List/ListProps.d.ts +6 -1
- package/lib/esm/types/hooks/useAppConfigurations.d.ts +12 -0
- package/lib/esm/types/hooks/useCredentials.d.ts +2 -0
- package/lib/esm/types/hooks/usePaths.d.ts +8 -0
- package/lib/esm/types/hooks/useResources.d.ts +5 -0
- package/lib/esm/types/hooks/useSnackAlert.d.ts +6 -0
- package/lib/esm/types/layout/dashboard/config-navigation.d.ts +4 -4
- package/lib/esm/types/routes/AdminRouter.d.ts +10 -10
- package/lib/esm/types/routes/paths.d.ts +5 -5
- package/lib/index.d.ts +18 -3
- package/package.json +78 -77
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AlertColor } from '@mui/material';
|
|
2
|
+
export interface ISnackAlert {
|
|
3
|
+
message?: string;
|
|
4
|
+
open: boolean;
|
|
5
|
+
severity?: AlertColor;
|
|
6
|
+
horizontalPosition?: 'left' | 'center' | 'right';
|
|
7
|
+
verticalPosition?: 'top' | 'bottom';
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function IdentitySnackAlert({ open, message, severity, horizontalPosition, verticalPosition, onClose }: ISnackAlert): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SizeType } from '../helpers/Types';
|
|
3
|
-
|
|
3
|
+
type AppConfigurations = {
|
|
4
4
|
textFieldSize: SizeType;
|
|
5
5
|
themeLayout?: 'vertical' | 'horizontal' | 'mini';
|
|
6
6
|
defaultRowsPerPage: number;
|
|
@@ -9,7 +9,7 @@ interface AppConfigurations {
|
|
|
9
9
|
loadingLoago?: string;
|
|
10
10
|
navBarLogo?: string;
|
|
11
11
|
miniNavBarLogo?: string;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
declare const AppConfigurationsContext: import("react").Context<AppConfigurations>;
|
|
14
14
|
declare const AppConfigurationsContextProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export { AppConfigurationsContext, AppConfigurationsContextProvider };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AlertColor } from '@mui/material';
|
|
3
|
+
import { SnackbarOrigin } from 'notistack';
|
|
4
|
+
export interface ISnackMessageProps {
|
|
5
|
+
state: boolean;
|
|
6
|
+
message?: string | undefined;
|
|
7
|
+
severity?: AlertColor | undefined;
|
|
8
|
+
position?: SnackbarOrigin;
|
|
9
|
+
}
|
|
10
|
+
declare const SnackAlertContext: import("react").Context<{
|
|
11
|
+
setAlert: (message: string, severity: AlertColor, position?: SnackbarOrigin) => void;
|
|
12
|
+
setErrorAlert: (message: string, position?: SnackbarOrigin) => void;
|
|
13
|
+
setSuccessAlert: (message: string, position?: SnackbarOrigin) => void;
|
|
14
|
+
}>;
|
|
15
|
+
type SnackAlertProviderProps = {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
};
|
|
18
|
+
declare function SnackAlertProvider({ children }: SnackAlertProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { SnackAlertContext, SnackAlertProvider };
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ListParams } from '../../../components/dataGrid/GridTypes';
|
|
2
3
|
export interface IListProps {
|
|
3
4
|
apiRoute: string;
|
|
4
5
|
key?: string;
|
|
5
6
|
path: string;
|
|
6
7
|
modelName: string;
|
|
7
8
|
}
|
|
9
|
+
export interface IActionsProps {
|
|
10
|
+
initialQueryParams: ListParams;
|
|
11
|
+
setParams: React.Dispatch<React.SetStateAction<ListParams>>;
|
|
12
|
+
}
|
|
8
13
|
export interface IListRecordsProps extends IListProps {
|
|
9
|
-
Actions?: (props:
|
|
14
|
+
Actions?: (props: IActionsProps) => JSX.Element;
|
|
10
15
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const useAppConfigurations: () => {
|
|
3
|
+
textFieldSize: import("../helpers/Types").SizeType;
|
|
4
|
+
themeLayout?: "horizontal" | "vertical" | "mini" | undefined;
|
|
5
|
+
defaultRowsPerPage: number;
|
|
6
|
+
themeStretch: boolean;
|
|
7
|
+
setThemeLayout?: import("react").Dispatch<import("react").SetStateAction<"horizontal" | "vertical" | "mini">> | undefined;
|
|
8
|
+
loadingLoago?: string | undefined;
|
|
9
|
+
navBarLogo?: string | undefined;
|
|
10
|
+
miniNavBarLogo?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
export default useAppConfigurations;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const useSnackAlert: () => {
|
|
2
|
+
setAlert: (message: string, severity: import("@mui/material").AlertColor, position?: import("notistack").SnackbarOrigin | undefined) => void;
|
|
3
|
+
setErrorAlert: (message: string, position?: import("notistack").SnackbarOrigin | undefined) => void;
|
|
4
|
+
setSuccessAlert: (message: string, position?: import("notistack").SnackbarOrigin | undefined) => void;
|
|
5
|
+
};
|
|
6
|
+
export default useSnackAlert;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function useNavData(): {
|
|
2
|
-
subheader: string;
|
|
3
|
-
items: any;
|
|
4
|
-
}[];
|
|
1
|
+
export declare function useNavData(): {
|
|
2
|
+
subheader: string;
|
|
3
|
+
items: any;
|
|
4
|
+
}[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SizeType } from '../helpers/Types';
|
|
2
|
-
export declare var SIZE: SizeType;
|
|
3
|
-
export default function AdminRouter(): {
|
|
4
|
-
path: any;
|
|
5
|
-
children: {
|
|
6
|
-
path: string;
|
|
7
|
-
element: import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
children: any[];
|
|
9
|
-
}[];
|
|
10
|
-
};
|
|
1
|
+
import { SizeType } from '../helpers/Types';
|
|
2
|
+
export declare var SIZE: SizeType;
|
|
3
|
+
export default function AdminRouter(): {
|
|
4
|
+
path: any;
|
|
5
|
+
children: {
|
|
6
|
+
path: string;
|
|
7
|
+
element: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
children: any[];
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function path(root: string, sublink: string): string;
|
|
2
|
-
export declare const ADMIN_ROOT = "/admin";
|
|
3
|
-
export declare var ADMIN_PATH: {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
1
|
+
export declare function path(root: string, sublink: string): string;
|
|
2
|
+
export declare const ADMIN_ROOT = "/admin";
|
|
3
|
+
export declare var ADMIN_PATH: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
package/lib/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactElement, ReactNode } from 'react';
|
|
5
|
+
import { GridSortDirection } from '@mui/x-data-grid';
|
|
5
6
|
import * as axios from 'axios';
|
|
6
7
|
import { AxiosRequestConfig } from 'axios';
|
|
7
8
|
|
|
@@ -36,14 +37,28 @@ declare enum PageVariant {
|
|
|
36
37
|
|
|
37
38
|
declare const IdentityPage: (props: IdentityPageProps) => react_jsx_runtime.JSX.Element;
|
|
38
39
|
|
|
40
|
+
interface ListParams {
|
|
41
|
+
page: number;
|
|
42
|
+
perPage: number;
|
|
43
|
+
order?: GridSortDirection;
|
|
44
|
+
orderBy?: string;
|
|
45
|
+
filter?: string;
|
|
46
|
+
scope?: string;
|
|
47
|
+
filters?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
39
50
|
interface IListProps {
|
|
40
51
|
apiRoute: string;
|
|
41
52
|
key?: string;
|
|
42
53
|
path: string;
|
|
43
54
|
modelName: string;
|
|
44
55
|
}
|
|
56
|
+
interface IActionsProps {
|
|
57
|
+
initialQueryParams: ListParams;
|
|
58
|
+
setParams: React.Dispatch<React.SetStateAction<ListParams>>;
|
|
59
|
+
}
|
|
45
60
|
interface IListRecordsProps extends IListProps {
|
|
46
|
-
Actions?: (props:
|
|
61
|
+
Actions?: (props: IActionsProps) => JSX.Element;
|
|
47
62
|
}
|
|
48
63
|
|
|
49
64
|
declare function ListRecords(props: IListRecordsProps): react_jsx_runtime.JSX.Element;
|
|
@@ -331,7 +346,7 @@ declare const PathsContext: react.Context<{
|
|
|
331
346
|
declare const PathsContextProvider: (props: PathsContextConfig) => react_jsx_runtime.JSX.Element;
|
|
332
347
|
declare function path(root: string, sublink: string): string;
|
|
333
348
|
|
|
334
|
-
|
|
349
|
+
type AppConfigurations = {
|
|
335
350
|
textFieldSize: SizeType;
|
|
336
351
|
themeLayout?: 'vertical' | 'horizontal' | 'mini';
|
|
337
352
|
defaultRowsPerPage: number;
|
|
@@ -340,7 +355,7 @@ interface AppConfigurations {
|
|
|
340
355
|
loadingLoago?: string;
|
|
341
356
|
navBarLogo?: string;
|
|
342
357
|
miniNavBarLogo?: string;
|
|
343
|
-
}
|
|
358
|
+
};
|
|
344
359
|
declare const AppConfigurationsContext: react.Context<AppConfigurations>;
|
|
345
360
|
declare const AppConfigurationsContextProvider: (props: any) => react_jsx_runtime.JSX.Element;
|
|
346
361
|
|
package/package.json
CHANGED
|
@@ -1,77 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "identity-admin-ui",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Identity solutions UI package using for identity-admin dashboard",
|
|
5
|
-
"main": "lib/cjs/index.js",
|
|
6
|
-
"module": "lib/esm/index.js",
|
|
7
|
-
"files": [
|
|
8
|
-
"lib/**/*"
|
|
9
|
-
],
|
|
10
|
-
"types": "lib/index.d.ts",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "rollup -c --bundleConfigAsCjs",
|
|
13
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
14
|
-
},
|
|
15
|
-
"author": "",
|
|
16
|
-
"license": "ISC",
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"@emotion/cache": "^11.11.0",
|
|
19
|
-
"@emotion/react": "^11.11.1",
|
|
20
|
-
"@emotion/styled": "^11.11.0",
|
|
21
|
-
"@hookform/resolvers": "^3.2.0",
|
|
22
|
-
"@iconify/react": "^4.1.0",
|
|
23
|
-
"@mui/icons-material": "^5.14.3",
|
|
24
|
-
"@mui/lab": "^5.0.0-alpha.139",
|
|
25
|
-
"@mui/material": "^5.14.
|
|
26
|
-
"@mui/x-data-grid": "^6.11.1",
|
|
27
|
-
"@mui/x-date-pickers": "^6.11.1",
|
|
28
|
-
"@rollup/plugin-commonjs": "^25.0.3",
|
|
29
|
-
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
30
|
-
"@rollup/plugin-typescript": "^11.1.2",
|
|
31
|
-
"@types/autosuggest-highlight": "^3.2.0",
|
|
32
|
-
"@types/axios": "^0.14.0",
|
|
33
|
-
"@types/nprogress": "^0.2.0",
|
|
34
|
-
"@types/numeral": "^2.0.2",
|
|
35
|
-
"@types/react": "^18.2.20",
|
|
36
|
-
"@types/react-beautiful-dnd": "^13.1.4",
|
|
37
|
-
"@types/react-helmet-async": "^1.0.3",
|
|
38
|
-
"@types/react-lazy-load-image-component": "^1.5.3",
|
|
39
|
-
"@types/stylis": "^4.2.0",
|
|
40
|
-
"autosuggest-highlight": "^3.3.4",
|
|
41
|
-
"aws-amplify": "^5.3.
|
|
42
|
-
"axios": "^1.4.0",
|
|
43
|
-
"compressorjs": "^1.2.1",
|
|
44
|
-
"date-fns": "^2.30.0",
|
|
45
|
-
"dayjs": "^1.11.9",
|
|
46
|
-
"framer-motion": "^10.15.0",
|
|
47
|
-
"highlight.js": "^11.8.0",
|
|
48
|
-
"material-ui-phone-number": "^3.0.0",
|
|
49
|
-
"nprogress": "^0.2.0",
|
|
50
|
-
"numeral": "^2.0.6",
|
|
51
|
-
"pluralize": "^8.0.0",
|
|
52
|
-
"react": "^18.2.0",
|
|
53
|
-
"react-beautiful-dnd": "^13.1.1",
|
|
54
|
-
"react-dropzone": "^14.2.3",
|
|
55
|
-
"react-helmet-async": "^1.3.0",
|
|
56
|
-
"react-hook-form": "^7.45.4",
|
|
57
|
-
"react-lazy-load-image-component": "^1.6.0",
|
|
58
|
-
"react-router-dom": "^6.14.2",
|
|
59
|
-
"rollup": "^3.27.0",
|
|
60
|
-
"rollup-plugin-css-bundle": "^1.0.4",
|
|
61
|
-
"rollup-plugin-dts": "^5.3.1",
|
|
62
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
63
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
64
|
-
"rollup-plugin-postcss-modules": "^2.1.1",
|
|
65
|
-
"rollup-plugin-preserve-directives": "^0.2.0",
|
|
66
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
67
|
-
"simplebar-react": "^3.2.4",
|
|
68
|
-
"stylis": "^4.3.0",
|
|
69
|
-
"stylis-plugin-rtl": "^2.1.1",
|
|
70
|
-
"tslib": "^2.6.1",
|
|
71
|
-
"typescript": "^5.1.6",
|
|
72
|
-
"yup": "^1.2.0"
|
|
73
|
-
},
|
|
74
|
-
"dependencies": {
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "identity-admin-ui",
|
|
3
|
+
"version": "1.4.0",
|
|
4
|
+
"description": "Identity solutions UI package using for identity-admin dashboard",
|
|
5
|
+
"main": "lib/cjs/index.js",
|
|
6
|
+
"module": "lib/esm/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib/**/*"
|
|
9
|
+
],
|
|
10
|
+
"types": "lib/index.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "rollup -c --bundleConfigAsCjs",
|
|
13
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
14
|
+
},
|
|
15
|
+
"author": "",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@emotion/cache": "^11.11.0",
|
|
19
|
+
"@emotion/react": "^11.11.1",
|
|
20
|
+
"@emotion/styled": "^11.11.0",
|
|
21
|
+
"@hookform/resolvers": "^3.2.0",
|
|
22
|
+
"@iconify/react": "^4.1.0",
|
|
23
|
+
"@mui/icons-material": "^5.14.3",
|
|
24
|
+
"@mui/lab": "^5.0.0-alpha.139",
|
|
25
|
+
"@mui/material": "^5.14.5",
|
|
26
|
+
"@mui/x-data-grid": "^6.11.1",
|
|
27
|
+
"@mui/x-date-pickers": "^6.11.1",
|
|
28
|
+
"@rollup/plugin-commonjs": "^25.0.3",
|
|
29
|
+
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
30
|
+
"@rollup/plugin-typescript": "^11.1.2",
|
|
31
|
+
"@types/autosuggest-highlight": "^3.2.0",
|
|
32
|
+
"@types/axios": "^0.14.0",
|
|
33
|
+
"@types/nprogress": "^0.2.0",
|
|
34
|
+
"@types/numeral": "^2.0.2",
|
|
35
|
+
"@types/react": "^18.2.20",
|
|
36
|
+
"@types/react-beautiful-dnd": "^13.1.4",
|
|
37
|
+
"@types/react-helmet-async": "^1.0.3",
|
|
38
|
+
"@types/react-lazy-load-image-component": "^1.5.3",
|
|
39
|
+
"@types/stylis": "^4.2.0",
|
|
40
|
+
"autosuggest-highlight": "^3.3.4",
|
|
41
|
+
"aws-amplify": "^5.3.8",
|
|
42
|
+
"axios": "^1.4.0",
|
|
43
|
+
"compressorjs": "^1.2.1",
|
|
44
|
+
"date-fns": "^2.30.0",
|
|
45
|
+
"dayjs": "^1.11.9",
|
|
46
|
+
"framer-motion": "^10.15.0",
|
|
47
|
+
"highlight.js": "^11.8.0",
|
|
48
|
+
"material-ui-phone-number": "^3.0.0",
|
|
49
|
+
"nprogress": "^0.2.0",
|
|
50
|
+
"numeral": "^2.0.6",
|
|
51
|
+
"pluralize": "^8.0.0",
|
|
52
|
+
"react": "^18.2.0",
|
|
53
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
54
|
+
"react-dropzone": "^14.2.3",
|
|
55
|
+
"react-helmet-async": "^1.3.0",
|
|
56
|
+
"react-hook-form": "^7.45.4",
|
|
57
|
+
"react-lazy-load-image-component": "^1.6.0",
|
|
58
|
+
"react-router-dom": "^6.14.2",
|
|
59
|
+
"rollup": "^3.27.0",
|
|
60
|
+
"rollup-plugin-css-bundle": "^1.0.4",
|
|
61
|
+
"rollup-plugin-dts": "^5.3.1",
|
|
62
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
63
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
64
|
+
"rollup-plugin-postcss-modules": "^2.1.1",
|
|
65
|
+
"rollup-plugin-preserve-directives": "^0.2.0",
|
|
66
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
67
|
+
"simplebar-react": "^3.2.4",
|
|
68
|
+
"stylis": "^4.3.0",
|
|
69
|
+
"stylis-plugin-rtl": "^2.1.1",
|
|
70
|
+
"tslib": "^2.6.1",
|
|
71
|
+
"typescript": "^5.1.6",
|
|
72
|
+
"yup": "^1.2.0"
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"notistack": "^3.0.1",
|
|
76
|
+
"react-quill": "^2.0.0"
|
|
77
|
+
}
|
|
78
|
+
}
|