@crystaltech/hsms-shared-ui 0.0.3-alpha-0.1 → 0.0.3-beta-0.1
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/components/AccountInfoWithAvatar.d.ts +4 -2
- package/dist/components/LoginView.d.ts +4 -1
- package/dist/components/layout/MainLayout/index.d.ts +3 -2
- package/dist/index.es.js +15892 -24671
- package/dist/index.js +96 -316
- package/dist/routes/ProtectedRoute.d.ts +7 -1
- package/dist/routes/RoutesConfigLayout.d.ts +7 -4
- package/package.json +9 -4
- package/dist/components/styled-components/index.d.ts +0 -5
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { IUserManage } from './layout/MainLayout';
|
|
2
|
-
|
|
3
|
+
interface AccountInfoWithAvatarProps {
|
|
3
4
|
userManage: IUserManage;
|
|
4
|
-
}
|
|
5
|
+
}
|
|
6
|
+
declare const AccountInfoWithAvatar: React.FC<AccountInfoWithAvatarProps>;
|
|
5
7
|
export default AccountInfoWithAvatar;
|
|
@@ -4,17 +4,18 @@ interface IUser {
|
|
|
4
4
|
name: string;
|
|
5
5
|
email: string;
|
|
6
6
|
image: string;
|
|
7
|
+
roles?: string[];
|
|
7
8
|
}
|
|
8
9
|
export interface IUserManage {
|
|
9
10
|
user: IUser;
|
|
10
11
|
redirectUrl: string;
|
|
11
|
-
logoutHandler
|
|
12
|
+
logoutHandler?: () => void;
|
|
12
13
|
}
|
|
13
14
|
export interface ILayoutConfig {
|
|
15
|
+
userManage?: IUserManage;
|
|
14
16
|
navbar: {
|
|
15
17
|
showHamburgerInMobile: boolean;
|
|
16
18
|
themeToggler: boolean;
|
|
17
|
-
userManage?: IUserManage;
|
|
18
19
|
};
|
|
19
20
|
sideDrawer: {
|
|
20
21
|
menuConfig: IMenuConfig[];
|