magneto365.ui 2.59.3 → 2.59.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,3 +1,4 @@
1
+ import { IAvatar } from '@components/UI/atoms';
1
2
  import { IMenuIcon } from '../MenuIcon/MenuIcon.interface';
2
3
  export interface IListMenuIcons {
3
4
  urlParam: string;
@@ -6,6 +7,8 @@ export interface IListMenuIcons {
6
7
  logout: ILogout;
7
8
  settings: ISettings;
8
9
  haveGif?: boolean;
10
+ profileImage: IAvatar;
11
+ isAuthenticated: boolean;
9
12
  }
10
13
  export interface IMenuItems {
11
14
  title?: string;
@@ -21,4 +21,6 @@ export interface IlistMenuUserProps {
21
21
  menuItems1440?: IMenuItems[];
22
22
  logout: ILogout;
23
23
  settings: ISettings;
24
+ profileImage: IAvatar;
25
+ isAuthenticated: boolean;
24
26
  }
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
2
  import { IMegaMenuContext, IMegaMenuJobs, IMegaMenuSocialHeader, IMegaMenuMainHeader } from './MegaMenuContext.interface';
3
+ import { IlistMenuUserProps } from '@components/UI/organism';
3
4
  export declare const MegaMenuProvider: React.FC<IMegaMenuContext>;
4
5
  export declare const useMegaMenu: () => IMegaMenuContext;
5
6
  export declare const useMegaMenuSocialHeader: () => IMegaMenuSocialHeader;
6
7
  export declare const useMegaMenuJobs: () => IMegaMenuJobs;
7
8
  export declare const useMegaMenuMain: () => IMegaMenuMainHeader;
9
+ export declare const useLoggedInUser: () => IlistMenuUserProps;
@@ -1,5 +1,6 @@
1
1
  import { IMegaMenuTab } from '@components/UI/atoms/MegaMenuTab/MegaMenuTab.interface';
2
2
  import { ISearchbar } from '@components/UI/molecules';
3
+ import { IlistMenuUserProps } from '@components/UI/organism';
3
4
  import { ReactNode } from 'react';
4
5
  export interface IMegaMenuLink {
5
6
  label: string;
@@ -43,4 +44,5 @@ export interface IMegaMenuContext {
43
44
  socialHeaderProps: IMegaMenuSocialHeader;
44
45
  jobsProps: IMegaMenuJobs;
45
46
  mainHeaderProps: IMegaMenuMainHeader;
47
+ listMenuUserProps: IlistMenuUserProps;
46
48
  }
@@ -18,6 +18,15 @@ export declare const filterProps: {
18
18
  };
19
19
  export declare const megaMenuCards: IMegaMenuCards;
20
20
  export declare const megaMenuJobsIcons: any[];
21
+ export declare const megaMenuUserLoggedIcons: {
22
+ allJobs: any;
23
+ suggestedJobs: any;
24
+ savedJobs: any;
25
+ inProcess: any;
26
+ resume: any;
27
+ settings: any;
28
+ help: any;
29
+ };
21
30
  export declare const mobileSocialIcons: any[];
22
31
  export declare const megaMenuJobs: IMegaMenuJobs;
23
32
  export declare const megaMenuBreadcrumbs: {
@@ -0,0 +1 @@
1
+ export declare const getIcons: (iconName?: string | undefined) => any;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React$1, { ChangeEvent, FC, ReactNode, Ref, SetStateAction } from 'react';
3
- import { IDateDropdown as IDateDropdown$1, IconProps as IconProps$1, ISearchItem as ISearchItem$1, IJobCompanyLogo as IJobCompanyLogo$1, IJobHeader as IJobHeader$1, IShareButton as IShareButton$1, IImage as IImage$1, IMainButton as IMainButton$1, ILinkProps as ILinkProps$1, ILogoComponent as ILogoComponent$1 } from '@components/UI/atoms';
3
+ import { IDateDropdown as IDateDropdown$1, IconProps as IconProps$1, ISearchItem as ISearchItem$1, IJobCompanyLogo as IJobCompanyLogo$1, IJobHeader as IJobHeader$1, IShareButton as IShareButton$1, IImage as IImage$1, IAvatar as IAvatar$1, IMainButton as IMainButton$1, ILinkProps as ILinkProps$1, ILogoComponent as ILogoComponent$1 } from '@components/UI/atoms';
4
4
  import { IconProps as IconProps$2 } from '@components/UI/atoms/Icon';
5
5
  import { ISaveButton as ISaveButton$1 } from '@components/UI/atoms/SaveButton';
6
6
  import { ICustomText as ICustomText$1 } from '@components/UI/atoms/Text/Text.interface';
@@ -11,7 +11,7 @@ import { IMegaMenuCard as IMegaMenuCard$1, IFiltersRef as IFiltersRef$1, IDatePi
11
11
  import { IMegaMenuLink as IMegaMenuLink$1 } from '@components/UI/template/MegaMenu/MegaMenuContext.interface';
12
12
  import { IToggleButton as IToggleButton$1, IToggleButtonOnchangeValues as IToggleButtonOnchangeValues$1 } from '@components/UI/atoms/ToggleButton/ToggleButton.interface';
13
13
  import * as _components_UI_organism from '@components/UI/organism';
14
- import { IMobileDatePicker as IMobileDatePicker$1, IDatePickerComponent as IDatePickerComponent$1, IJobDetailsDrawer as IJobDetailsDrawer$1, IMobileJobDetailsDrawer as IMobileJobDetailsDrawer$1, IHeaderAnalystProps as IHeaderAnalystProps$1, IModalAnalyst as IModalAnalyst$1, INavMenuAnalystRegion as INavMenuAnalystRegion$1 } from '@components/UI/organism';
14
+ import { IMobileDatePicker as IMobileDatePicker$1, IDatePickerComponent as IDatePickerComponent$1, IJobDetailsDrawer as IJobDetailsDrawer$1, IMobileJobDetailsDrawer as IMobileJobDetailsDrawer$1, IHeaderAnalystProps as IHeaderAnalystProps$1, IModalAnalyst as IModalAnalyst$1, INavMenuAnalystRegion as INavMenuAnalystRegion$1, IlistMenuUserProps as IlistMenuUserProps$1 } from '@components/UI/organism';
15
15
  import { IListMenuText as IListMenuText$1 } from '@components/UI/molecules/ListMenuText/ListMenuText.interface';
16
16
  import { IJobCompanyHeader as IJobCompanyHeader$1 } from '@components/UI/molecules/JobCompanyHeader';
17
17
  import { ISimilarJobsCard as ISimilarJobsCard$1 } from '@components/UI/molecules/SimilarJobsCard/SimilarJobsCard.interface';
@@ -2420,6 +2420,8 @@ interface IListMenuIcons {
2420
2420
  logout: ILogout;
2421
2421
  settings: ISettings;
2422
2422
  haveGif?: boolean;
2423
+ profileImage: IAvatar$1;
2424
+ isAuthenticated: boolean;
2423
2425
  }
2424
2426
  interface IMenuItems {
2425
2427
  title?: string;
@@ -3622,6 +3624,8 @@ interface IlistMenuUserProps {
3622
3624
  menuItems1440?: IMenuItems[];
3623
3625
  logout: ILogout;
3624
3626
  settings: ISettings;
3627
+ profileImage: IAvatar;
3628
+ isAuthenticated: boolean;
3625
3629
  }
3626
3630
 
3627
3631
  /**
@@ -5695,6 +5699,7 @@ interface IMegaMenuContext {
5695
5699
  socialHeaderProps: IMegaMenuSocialHeader;
5696
5700
  jobsProps: IMegaMenuJobs;
5697
5701
  mainHeaderProps: IMegaMenuMainHeader;
5702
+ listMenuUserProps: IlistMenuUserProps$1;
5698
5703
  }
5699
5704
 
5700
5705
  declare const MegaMenu: React$1.FC<IMegaMenuContext & IMegaMenu> & {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/W170/talenta.magneto365.ui.git"
6
6
  },
7
- "version": "2.59.3",
7
+ "version": "2.59.4",
8
8
  "description": "Magneto365 UI common components",
9
9
  "scripts": {
10
10
  "lint": "eslint ./src --ext .js,.ts,.jsx,.tsx",