sixseconds-modules 1.1.4 → 1.1.7
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/api/user.d.ts +0 -22
- package/dist/assets/images/index.d.ts +4 -0
- package/dist/assets/svg/index.d.ts +762 -129
- package/dist/components/dialogs/dangerDialog.d.ts +11 -0
- package/dist/components/dialogs/index.d.ts +1 -0
- package/dist/components/elements/backArrow.d.ts +7 -0
- package/dist/components/elements/index.d.ts +2 -0
- package/dist/components/elements/logo.d.ts +6 -0
- package/dist/components/elements/warning.d.ts +6 -0
- package/dist/components/header/dropDownMenu.d.ts +9 -0
- package/dist/components/header/index.d.ts +18 -0
- package/dist/components/header/language.d.ts +12 -0
- package/dist/components/header/notification.d.ts +1 -0
- package/dist/components/header/profile.d.ts +1 -0
- package/dist/components/header/subheaderStyled.d.ts +2 -0
- package/dist/components/header/type.d.ts +17 -0
- package/dist/components/header/userProfile.d.ts +9 -0
- package/dist/components/index.d.ts +2 -5
- package/dist/constants/apis.d.ts +4 -0
- package/dist/constants/common.d.ts +57 -0
- package/dist/constants/dates.d.ts +3 -0
- package/dist/constants/env.d.ts +8 -1
- package/dist/constants/index.d.ts +6 -0
- package/dist/constants/routes.d.ts +13 -0
- package/dist/constants/validation.d.ts +4 -0
- package/dist/hooks/useRtk.d.ts +4 -0
- package/dist/index.cjs.js +578 -464
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.es.js +562 -465
- package/dist/index.es.js.map +1 -1
- package/dist/main.d.ts +0 -1
- package/dist/{redux/store.d.ts → states/index.d.ts} +7 -6
- package/dist/states/reducers/user.d.ts +5 -0
- package/dist/types/custom.d.ts +24 -0
- package/dist/types/htmlElements.d.ts +6 -0
- package/dist/types/index.d.ts +4 -1
- package/dist/types/reactTypes.d.ts +4 -0
- package/dist/utils/common.d.ts +5 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +10 -5
- package/dist/components/GenericDialog.d.ts +0 -8
- package/dist/components/HeaderMenu.d.ts +0 -2
- package/dist/components/LanguageModal.d.ts +0 -1
- package/dist/components/ListModalItems.d.ts +0 -1
- package/dist/components/Logo.d.ts +0 -2
- package/dist/components/LogoutDialog.d.ts +0 -6
- package/dist/components/NotificationModal.d.ts +0 -2
- package/dist/components/NotificationsIcons.d.ts +0 -2
- package/dist/components/ProfileMenu.d.ts +0 -2
- package/dist/components/button.d.ts +0 -1
- package/dist/css/headerStyled.d.ts +0 -2
- package/dist/hooks/userCloseModal.d.ts +0 -3
- package/dist/redux/reducers/ssoAppReducer.d.ts +0 -5
- package/dist/redux/reducers/types/index.d.ts +0 -1
- package/dist/redux/reducers/types/user.d.ts +0 -3
- package/dist/redux/reducers/userProfileReducer.d.ts +0 -3
- package/dist/services/api.d.ts +0 -10
- package/dist/services/axios.d.ts +0 -2
- package/dist/types/user.d.ts +0 -3
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface IProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
setInitialState: any;
|
|
6
|
+
buttonTitle?: string;
|
|
7
|
+
handleClick: () => void;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const DangerDialog: ({ open, setInitialState, title, description, buttonTitle, isLoading, handleClick, }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default DangerDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DangerDialog } from './dangerDialog';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IState } from './type';
|
|
2
|
+
import { SetStateAction } from '../../types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
headerMenuArray: any[];
|
|
5
|
+
initialState: IState;
|
|
6
|
+
setInitialState?: SetStateAction<IState>;
|
|
7
|
+
}
|
|
8
|
+
declare const DropdownMenu: ({ headerMenuArray, initialState }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default DropdownMenu;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { t } from '../../types';
|
|
2
|
+
interface SubHeaderProps {
|
|
3
|
+
isDesktopCollapsed?: boolean;
|
|
4
|
+
userData?: any;
|
|
5
|
+
interFaceLangList?: any;
|
|
6
|
+
endCustomComponents?: any;
|
|
7
|
+
frontCustomComponent?: any;
|
|
8
|
+
centerCustomComponents?: any;
|
|
9
|
+
toggleSiderMenu?: any;
|
|
10
|
+
updateInterfaceLang?: any;
|
|
11
|
+
selectedInterFaceLang?: any;
|
|
12
|
+
logoutHandler?: any;
|
|
13
|
+
isLogo?: boolean;
|
|
14
|
+
isMenu?: boolean;
|
|
15
|
+
t?: t;
|
|
16
|
+
}
|
|
17
|
+
export declare const Header: ({ frontCustomComponent, endCustomComponents, userData, interFaceLangList, centerCustomComponents, updateInterfaceLang, selectedInterFaceLang, logoutHandler, isLogo, isMenu, }: SubHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SetStateAction } from '../../types';
|
|
2
|
+
import { IState } from './type';
|
|
3
|
+
interface IProps {
|
|
4
|
+
setState?: any;
|
|
5
|
+
interFaceLangList?: any;
|
|
6
|
+
userData?: any;
|
|
7
|
+
updateInterfaceLang?: any;
|
|
8
|
+
selectedInterFaceLang?: any;
|
|
9
|
+
setInitialState: SetStateAction<IState>;
|
|
10
|
+
}
|
|
11
|
+
export default function Language({ interFaceLangList, selectedInterFaceLang, setInitialState, }: IProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const SubHeaderStyled: import('@emotion/styled').StyledComponent<import('@mui/material').AppBarOwnProps & Omit<import('@mui/material').PaperOwnProps, "color" | "position" | "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "style" | "color" | "position" | "sx" | "classes" | "className" | "children" | "square" | "elevation" | "variant" | "enableColorOnDark"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
2
|
+
export default SubHeaderStyled;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface IState {
|
|
2
|
+
languages: string[]
|
|
3
|
+
toggles: {
|
|
4
|
+
logout: boolean
|
|
5
|
+
lang: boolean
|
|
6
|
+
dropDownMenu: boolean
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface INotificationState {
|
|
11
|
+
notificationData: Notification[]
|
|
12
|
+
page: number
|
|
13
|
+
currentPage: number
|
|
14
|
+
lastPage: number
|
|
15
|
+
requestAcceptedDialog?: boolean
|
|
16
|
+
userRequest?: any
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IState } from './type';
|
|
2
|
+
import { SetStateAction } from '../../types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
userData: any;
|
|
5
|
+
initialState: IState;
|
|
6
|
+
setInitialState?: SetStateAction<IState>;
|
|
7
|
+
}
|
|
8
|
+
declare const UserProfile: ({ userData, setInitialState }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default UserProfile;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { default as LogoutDialog } from './LogoutDialog';
|
|
4
|
-
import { default as GenericDialog } from './GenericDialog';
|
|
5
|
-
export { NotificationIcons, ProfileMenu, LogoutDialog, GenericDialog };
|
|
1
|
+
export * from './elements/';
|
|
2
|
+
export * from './header/';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare const SERVER_STATUS_CODE: Readonly<{
|
|
2
|
+
notFound: 404;
|
|
3
|
+
badRequest: 400;
|
|
4
|
+
forbidden: 403;
|
|
5
|
+
authenticationDenied: 401;
|
|
6
|
+
serverError: 500;
|
|
7
|
+
success: 200;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const APP_NAMES: Readonly<{
|
|
10
|
+
events: "Events";
|
|
11
|
+
tools: "Tools";
|
|
12
|
+
certHome: "Cert Home";
|
|
13
|
+
cards: "Cards";
|
|
14
|
+
sso: "SSO Admin";
|
|
15
|
+
cardsHome: "Cards Home";
|
|
16
|
+
cardsAdmin: "Cards Admin";
|
|
17
|
+
}>;
|
|
18
|
+
export declare const ALERT_MESSAGES: Readonly<{
|
|
19
|
+
dataNoFount: "Data not found";
|
|
20
|
+
searchNotFount: "Sorry, there are no matches. Try a new search?";
|
|
21
|
+
commonLoadingMessage: "Please wait...";
|
|
22
|
+
submittingSuccessMassage: "Detail Added Successfully";
|
|
23
|
+
allFieldsRequired: "Please fill all required fields";
|
|
24
|
+
NA: "N/A";
|
|
25
|
+
fallbackError: "Something went wrong, Please try again later!";
|
|
26
|
+
networkError: "Please check your internet connection!";
|
|
27
|
+
timeOutError: "Your connection taking too long to get data!";
|
|
28
|
+
}>;
|
|
29
|
+
export declare const ROLES: Readonly<{
|
|
30
|
+
master: "Master";
|
|
31
|
+
distributor: "Distributor";
|
|
32
|
+
coach: "Coach";
|
|
33
|
+
referent: "Referent";
|
|
34
|
+
}>;
|
|
35
|
+
export declare const REGEX: Readonly<{
|
|
36
|
+
email: RegExp;
|
|
37
|
+
mobile: RegExp;
|
|
38
|
+
website: RegExp;
|
|
39
|
+
password: RegExp;
|
|
40
|
+
}>;
|
|
41
|
+
export declare const WEBSITE_LINKS: Readonly<{
|
|
42
|
+
helpDisk: "#";
|
|
43
|
+
instagram: "https://www.instagram.com/6secondseq/";
|
|
44
|
+
facebook: "https://www.facebook.com/sixseconds";
|
|
45
|
+
linkedin: "https://www.linkedin.com/company/six-seconds/";
|
|
46
|
+
youtube: "https://www.youtube.com/c/SixSeconds";
|
|
47
|
+
x: "https://x.com/6s_EQ";
|
|
48
|
+
termsOfService: "https://www.6seconds.org/about/terms-of-use/";
|
|
49
|
+
privacyPolicy: "https://www.6seconds.org/about/policies/privacy/";
|
|
50
|
+
certUrl: "https://cert.6seconds.org/";
|
|
51
|
+
}>;
|
|
52
|
+
export declare const RTK_ERROR_CODES: Readonly<{
|
|
53
|
+
fetchError: "FETCH_ERROR";
|
|
54
|
+
parsingError: "PARSING_ERROR";
|
|
55
|
+
timeOutError: "TIMEOUT_ERROR";
|
|
56
|
+
customError: "CUSTOM_ERROR";
|
|
57
|
+
}>;
|
package/dist/constants/env.d.ts
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const env: Readonly<{
|
|
2
|
+
VITE_MODULES_SSO_FRONTEND_BASE_URL: string;
|
|
3
|
+
VITE_MODULES_TOOLS_FRONTEND_BASE_URL: string;
|
|
4
|
+
VITE_MODULES_EVENTS_FRONTEND_BASE_URL: string;
|
|
5
|
+
VITE_MODULES_CARDS_HOME_FRONTEND_BASE_URL: string;
|
|
6
|
+
VITE_MODULES_CARDS_ADMIN_FRONTEND_BASE_URL: string;
|
|
7
|
+
VITE_MODULES_CERT_FRONTEND_BASE_URL: string;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { APP_NAMES } from './common';
|
|
2
|
+
export declare const SSO_ROUTES: (APP_NAME?: (typeof APP_NAMES)[keyof typeof APP_NAMES]) => {
|
|
3
|
+
languages: string;
|
|
4
|
+
translations: string;
|
|
5
|
+
editProfile: string;
|
|
6
|
+
email: string;
|
|
7
|
+
changePasswordDialog: string;
|
|
8
|
+
viewProfile: string;
|
|
9
|
+
unauthorized: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const ROUTES: {
|
|
12
|
+
home: string;
|
|
13
|
+
};
|