@acuteinfo/common-screens 1.0.64 → 1.0.66
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/pages/appbar/appBar.d.ts +11 -1
- package/dist/pages/auth/authController.d.ts +6 -0
- package/dist/pages/auth/forgotPassword.d.ts +6 -0
- package/dist/pages/auth/forgotPasswordField.d.ts +3 -1
- package/dist/pages/auth/usernamePassword.d.ts +2 -1
- package/package.json +2 -2
|
@@ -15,7 +15,17 @@ interface AppbarWrapperProps {
|
|
|
15
15
|
handleProfile?: Function;
|
|
16
16
|
navigate: NavigateFunction;
|
|
17
17
|
hideGreetings?: boolean;
|
|
18
|
-
|
|
18
|
+
menuIconConfig?: {
|
|
19
|
+
menuIconPosition?: "left" | "right";
|
|
20
|
+
OpenIconComponent?: React.ReactNode;
|
|
21
|
+
CloseIconComponent?: React.ReactNode;
|
|
22
|
+
};
|
|
23
|
+
optionalComponents?: {
|
|
24
|
+
Component: React.ComponentType<any>;
|
|
25
|
+
props?: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
}[];
|
|
19
29
|
}
|
|
20
30
|
export declare const AppbarWrapper: React.FC<AppbarWrapperProps>;
|
|
21
31
|
export declare const checkDateAndDisplay: (dateStr: string) => string;
|
|
@@ -16,6 +16,12 @@ interface AuthControllerProps {
|
|
|
16
16
|
ResetPassword: ResetPasswordFnType;
|
|
17
17
|
LanguageComponent?: React.ComponentType<any>;
|
|
18
18
|
forgotPasswordEndpoint: string;
|
|
19
|
+
/**
|
|
20
|
+
* Prevents characters input from specified string in username field
|
|
21
|
+
*
|
|
22
|
+
* e.g. "!@#". Characters `!`, `@`, `#` will be prevented in username field
|
|
23
|
+
*/
|
|
24
|
+
preventSpecialChars?: string | null;
|
|
19
25
|
}
|
|
20
26
|
export declare const AuthControllerWrapper: React.FC<AuthControllerProps>;
|
|
21
27
|
export {};
|
|
@@ -18,6 +18,12 @@ interface ForgotPasswordControllerProps {
|
|
|
18
18
|
screenFlag: "password" | "totp";
|
|
19
19
|
navigate: NavigateFunction;
|
|
20
20
|
loginPageEndpoint: string;
|
|
21
|
+
/**
|
|
22
|
+
* Prevents characters input from specified string in username field
|
|
23
|
+
*
|
|
24
|
+
* e.g. "!@#". Characters `!`, `@`, `#` will be prevented in username field
|
|
25
|
+
*/
|
|
26
|
+
preventSpecialChars?: string | null;
|
|
21
27
|
}
|
|
22
28
|
export declare const ForgotPasswordControllerWrapper: React.FC<ForgotPasswordControllerProps>;
|
|
23
29
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export declare const ForgotPasswordFields: ({ classes, loginState, onSubmit, navigate, loginPageEndpoint, }: {
|
|
1
|
+
export declare const ForgotPasswordFields: ({ classes, loginState, onSubmit, navigate, loginPageEndpoint, preventSpecialChars, validatePassword }: {
|
|
2
2
|
classes: any;
|
|
3
3
|
loginState: any;
|
|
4
4
|
onSubmit: any;
|
|
5
5
|
navigate: any;
|
|
6
6
|
loginPageEndpoint: any;
|
|
7
|
+
preventSpecialChars: any;
|
|
8
|
+
validatePassword: any;
|
|
7
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare const UsernamePasswordField: ({ classes, loginState, verifyUsernamePassword, forgotPasswordEndpoint, }: {
|
|
1
|
+
export declare const UsernamePasswordField: ({ classes, loginState, verifyUsernamePassword, forgotPasswordEndpoint, preventSpecialChars, }: {
|
|
2
2
|
classes: any;
|
|
3
3
|
loginState: any;
|
|
4
4
|
verifyUsernamePassword: any;
|
|
5
5
|
forgotPasswordEndpoint: any;
|
|
6
|
+
preventSpecialChars: any;
|
|
6
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acuteinfo/common-screens",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.66",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@acuteinfo/common-base": "^1.0.
|
|
15
|
+
"@acuteinfo/common-base": "^1.0.41",
|
|
16
16
|
"@emotion/react": "^11.11.1",
|
|
17
17
|
"@emotion/styled": "^11.11.0",
|
|
18
18
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|