@frontegg/types 5.19.0 → 5.22.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.
@@ -6,12 +6,14 @@ import { SocialLoginsLocalization } from './socialLogins';
6
6
  import { AcceptInvitationLocalization } from './acceptInvitation';
7
7
  import { ActivateAccountLocalization } from './activateAccount';
8
8
  import { RecoveryMfaLocalization } from './recoveryMfa';
9
+ import { ResetPhoneNumberLocalization } from './resetPhoneNumber';
9
10
  export * from './login';
10
11
  export * from './signup';
11
12
  export * from './forgetPassword';
13
+ export * from './resetPhoneNumber';
12
14
  export * from './resetPassword';
13
15
  export * from './socialLogins';
14
16
  export * from './acceptInvitation';
15
17
  export * from './activateAccount';
16
18
  export * from './recoveryMfa';
17
- export declare type LoginBoxLocalization = LoginLocalization & SignupLocalization & ForgetPasswordLocalization & ResetPasswordLocalization & SocialLoginsLocalization & AcceptInvitationLocalization & ActivateAccountLocalization & RecoveryMfaLocalization;
19
+ export declare type LoginBoxLocalization = LoginLocalization & SignupLocalization & ForgetPasswordLocalization & ResetPhoneNumberLocalization & ResetPasswordLocalization & SocialLoginsLocalization & AcceptInvitationLocalization & ActivateAccountLocalization & RecoveryMfaLocalization;
@@ -150,6 +150,18 @@ export interface LoginLocalization {
150
150
  * Magic link description text if invalid link
151
151
  */
152
152
  invalidMagicLinkText: string;
153
+ /**
154
+ * Oct section title
155
+ */
156
+ smsOtcTitle: string;
157
+ /**
158
+ * Oct section title
159
+ */
160
+ smsOtcMessage: string;
161
+ /**
162
+ * Oct section title
163
+ */
164
+ smsOtcChangePhoneMessage: string;
153
165
  /**
154
166
  * Oct section title
155
167
  */
@@ -0,0 +1,34 @@
1
+ export interface ResetPhoneNumberLocalization {
2
+ /**
3
+ * strings in reset phone number page
4
+ */
5
+ resetPhoneNumber: {
6
+ /**
7
+ * Reset phone number form email input label
8
+ */
9
+ emailInputLabel: string;
10
+ /**
11
+ * Reset phone number form email input placeholder
12
+ */
13
+ emailInputPlaceholder: string;
14
+ /**
15
+ * error message displayed if email is invalid
16
+ */
17
+ emailMustBeValid: string;
18
+ /**
19
+ * error message displayed if email is empty
20
+ */
21
+ emailIsRequired: string;
22
+ continue: string;
23
+ resetPhoneNumberTitle: string;
24
+ resetPhoneOtcTitle: string;
25
+ resetPhoneOtcMessage: string;
26
+ changePhoneNumberTitle: string;
27
+ changePhoneNumberMessage: string;
28
+ phoneInputLabel: string;
29
+ phoneInputPlaceholder: string;
30
+ phoneIsRequired: string;
31
+ phoneIsInvalid: string;
32
+ backToLogin: string;
33
+ };
34
+ }
@@ -1,117 +1,138 @@
1
+ export interface SignupLocalizationOptions {
2
+ /**
3
+ * Sign up page title
4
+ */
5
+ title: string;
6
+ /**
7
+ * Signup name input label
8
+ */
9
+ nameInputLabel: string;
10
+ /**
11
+ * Signup name input placeholder
12
+ */
13
+ nameInputPlaceholder: string;
14
+ /**
15
+ * error message displayed if name is empty
16
+ */
17
+ nameIsRequired: string;
18
+ /**
19
+ * error message displayed if name length less than 3
20
+ */
21
+ nameMinLengthIs3: string;
22
+ /**
23
+ * Signup email input label
24
+ */
25
+ emailInputLabel: string;
26
+ /**
27
+ * Signup email input placeholder
28
+ */
29
+ emailInputPlaceholder: string;
30
+ /**
31
+ * error message displayed if email is invalid
32
+ */
33
+ emailMustBeValid: string;
34
+ /**
35
+ * error message displayed if email is empty
36
+ */
37
+ emailIsRequired: string;
38
+ /**
39
+ * Signup password input label
40
+ */
41
+ passwordInputLabel: string;
42
+ /**
43
+ * Signup password input placeholder
44
+ */
45
+ passwordInputPlaceholder: string;
46
+ /**
47
+ * error message displayed if password is empty
48
+ */
49
+ passwordIsRequired: string;
50
+ /**
51
+ * Signup phone input label
52
+ */
53
+ phoneInputLabel: string;
54
+ /**
55
+ /**
56
+ * Signup phone input placeholder
57
+ */
58
+ phoneInputPlaceholder: string;
59
+ /**
60
+ * error message displayed if phone number is empty
61
+ */
62
+ phoneIsRequired: string;
63
+ /**
64
+ * error message displayed if phone number format is invalid
65
+ */
66
+ phoneIsInvalid: string;
67
+ /**
68
+ * Signup company name input label
69
+ * this input is optional
70
+ */
71
+ companyNameInputLabel: string;
72
+ /**
73
+ * Signup company name input placeholder
74
+ * this input is optional
75
+ */
76
+ companyNameInputPlaceholder: string;
77
+ /**
78
+ * error message displayed if name is empty
79
+ */
80
+ companyNameIsRequired: string;
81
+ /**
82
+ * error message displayed if name length less than 3
83
+ */
84
+ companyNameMinLengthIs3: string;
85
+ /**
86
+ * String displayed as separator for sign up with social login
87
+ */
88
+ signUpWithSocialLogin: string;
89
+ /**
90
+ * Go to login message in signup page header
91
+ */
92
+ loginMessage: string;
93
+ /**
94
+ * Go to login link button text in signup page header
95
+ */
96
+ loginLink: string;
97
+ /**
98
+ * Signup page submit button
99
+ */
100
+ signupButtonText: string;
101
+ /**
102
+ * Text displayed when join tenant invitation failed
103
+ */
104
+ failedJoinTenantTitle: string;
105
+ /**
106
+ * Back to login button text join tenant invitation failed
107
+ */
108
+ failedJoinTenantBackButton: string;
109
+ /**
110
+ * Success title when signup succeeded
111
+ */
112
+ successTitle: string;
113
+ /**
114
+ * Activate description message when signup succeeded and activate required
115
+ */
116
+ successActivateMessage: string;
117
+ /**
118
+ * Redirect to login
119
+ */
120
+ backToLoginLink: string;
121
+ /**
122
+ * Go to login message in signup page header
123
+ */
124
+ successGoToLoginMessage: string;
125
+ /**
126
+ * Go to login link button text in Signup page header
127
+ */
128
+ successGoToLoginButton: string;
129
+ }
1
130
  export interface SignupLocalization {
2
131
  /**
3
132
  * strings in signup page
4
133
  */
5
134
  signup: {
6
- /**
7
- * Sign up page title
8
- */
9
- title: string;
10
- /**
11
- * Signup name input label
12
- */
13
- nameInputLabel: string;
14
- /**
15
- * Signup name input placeholder
16
- */
17
- nameInputPlaceholder: string;
18
- /**
19
- * error message displayed if name is empty
20
- */
21
- nameIsRequired: string;
22
- /**
23
- * error message displayed if name length less than 3
24
- */
25
- nameMinLengthIs3: string;
26
- /**
27
- * Signup email input label
28
- */
29
- emailInputLabel: string;
30
- /**
31
- * Signup email input placeholder
32
- */
33
- emailInputPlaceholder: string;
34
- /**
35
- * error message displayed if email is invalid
36
- */
37
- emailMustBeValid: string;
38
- /**
39
- * error message displayed if email is empty
40
- */
41
- emailIsRequired: string;
42
- /**
43
- * Signup password input label
44
- */
45
- passwordInputLabel: string;
46
- /**
47
- * Signup password input placeholder
48
- */
49
- passwordInputPlaceholder: string;
50
- /**
51
- * error message displayed if password is empty
52
- */
53
- passwordIsRequired: string;
54
- /**
55
- * Signup company name input label
56
- * this input is optional
57
- */
58
- companyNameInputLabel: string;
59
- /**
60
- * Signup company name input placeholder
61
- * this input is optional
62
- */
63
- companyNameInputPlaceholder: string;
64
- /**
65
- * error message displayed if name is empty
66
- */
67
- companyNameIsRequired: string;
68
- /**
69
- * error message displayed if name length less than 3
70
- */
71
- companyNameMinLengthIs3: string;
72
- /**
73
- * String displayed as separator for sign up with social login
74
- */
75
- signUpWithSocialLogin: string;
76
- /**
77
- * Go to login message in signup page header
78
- */
79
- loginMessage: string;
80
- /**
81
- * Go to login link button text in signup page header
82
- */
83
- loginLink: string;
84
- /**
85
- * Signup page submit button
86
- */
87
- signupButtonText: string;
88
- /**
89
- * Text displayed when join tenant invitation failed
90
- */
91
- failedJoinTenantTitle: string;
92
- /**
93
- * Back to login button text join tenant invitation failed
94
- */
95
- failedJoinTenantBackButton: string;
96
- /**
97
- * Success title when signup succeeded
98
- */
99
- successTitle: string;
100
- /**
101
- * Activate description message when signup succeeded and activate required
102
- */
103
- successActivateMessage: string;
104
- /**
105
- * Redirect to login
106
- */
107
- backToLoginLink: string;
108
- /**
109
- * Go to login message in signup page header
110
- */
111
- successGoToLoginMessage: string;
112
- /**
113
- * Go to login link button text in Signup page header
114
- */
115
- successGoToLoginButton: string;
116
- };
135
+ account: SignupLocalizationOptions;
136
+ user: SignupLocalizationOptions;
137
+ } & SignupLocalizationOptions;
117
138
  }
@@ -0,0 +1,71 @@
1
+ import { CustomComponent, LoginBoxCommonTheme, LoginBoxCommonThemeOptions } from '../index';
2
+ import { ExtendedCSSProperties } from '../../Common';
3
+ interface TitleProps {
4
+ title: string;
5
+ }
6
+ interface MessageProps {
7
+ message: string;
8
+ }
9
+ interface ResetPhoneNumberComponentsTheme {
10
+ /**
11
+ * Reset phone number page container style
12
+ */
13
+ containerStyle?: ExtendedCSSProperties;
14
+ /**
15
+ * Reset phone number page title default is 'Change phone number'
16
+ * displayed in reset phone number form screen
17
+ * passing 'null' will hide the title
18
+ */
19
+ resetPhoneNumberTitle?: CustomComponent<TitleProps>;
20
+ /**
21
+ * Direct css style for Reset phone number page title
22
+ */
23
+ resetPhoneNumberTitleStyle?: ExtendedCSSProperties;
24
+ /**
25
+ * Reset phone number page title default is 'Verify that it’s you'
26
+ * displayed in verify reset phone number form screen
27
+ * passing 'null' will hide the title
28
+ */
29
+ verifyResetPhoneNumberTitle?: CustomComponent<TitleProps>;
30
+ /**
31
+ * Direct css style for verify reset phone number page title
32
+ */
33
+ verifyResetPhoneNumberTitleStyle?: ExtendedCSSProperties;
34
+ /**
35
+ * Verify reset phone number page message default:
36
+ * 'Please enter the six-digit code we have sent to your email'
37
+ * displayed in verify reset phone number form screen
38
+ * passing 'null' will hide the message
39
+ */
40
+ verifyResetPhoneNumberMessage?: CustomComponent<MessageProps>;
41
+ /**
42
+ * Direct css style for verify reset phone number page message
43
+ */
44
+ verifyResetPhoneNumberMessageStyle?: ExtendedCSSProperties;
45
+ /**
46
+ * Change phone number page title default is 'Enter your phone number'
47
+ * displayed in change phone number form screen
48
+ * passing 'null' will hide the title
49
+ */
50
+ changePhoneNumberTitle?: CustomComponent<TitleProps>;
51
+ /**
52
+ * Direct css style for change phone number page title
53
+ */
54
+ changePhoneNumberTitleStyle?: ExtendedCSSProperties;
55
+ /**
56
+ * Verify reset phone number page message default:
57
+ * 'Please enter your phone number below'
58
+ * displayed in change phone number form screen
59
+ * passing 'null' will hide the message
60
+ */
61
+ changePhoneNumberMessage?: CustomComponent<MessageProps>;
62
+ /**
63
+ * Direct css style for verify reset phone number page message
64
+ */
65
+ changePhoneNumberMessageStyle?: ExtendedCSSProperties;
66
+ }
67
+ export interface ResetPhoneNumberPageThemeOptions extends LoginBoxCommonThemeOptions, ResetPhoneNumberComponentsTheme {
68
+ }
69
+ export interface ResetPhoneNumberPageTheme extends LoginBoxCommonTheme, ResetPhoneNumberComponentsTheme {
70
+ }
71
+ export {};
@@ -10,6 +10,26 @@ export interface GoToLoginMessageProps {
10
10
  goToLoginButtonText: string;
11
11
  }
12
12
  export interface SignupPageComponentsTheme {
13
+ /**
14
+ * Signup page title default is 'Account Sign Up'
15
+ * displayed in sign up screen when no tenant invitation token is active
16
+ * passing 'null' will hide the title
17
+ */
18
+ accountTitle?: CustomComponent<TitleProps>;
19
+ /**
20
+ * Direct css style for Account Sign Up title
21
+ */
22
+ accountTitleStyle?: ExtendedCSSProperties;
23
+ /**
24
+ * Signup page title default is 'User Sign Up'
25
+ * displayed in sign up screen when tenant invitation token is active
26
+ * passing 'null' will hide the title
27
+ */
28
+ userTitle?: CustomComponent<TitleProps>;
29
+ /**
30
+ * Direct css style for User Sign Up title
31
+ */
32
+ userTitleStyle?: ExtendedCSSProperties;
13
33
  /**
14
34
  * Login page container style
15
35
  */
@@ -9,12 +9,14 @@ import { LoginPageTheme, LoginPageThemeOptions } from './LoginPageTheme';
9
9
  import { SocialLoginsTheme, SocialLoginsThemeOptions } from './SocialLoginsTheme';
10
10
  import { LoaderTheme, LoaderThemeOptions } from './LoaderTheme';
11
11
  import { SignupPageTheme } from './SignupPageTheme';
12
+ import { ResetPhoneNumberPageTheme, ResetPhoneNumberPageThemeOptions } from './ResetPhoneNumberTheme';
12
13
  export * from './LoginBoxCommon';
13
14
  export * from './LoginPageTheme';
14
15
  export * from './SignupPageTheme';
15
16
  export * from './CustomLoginComponents';
16
17
  export * from './SocialLoginsTheme';
17
18
  export * from './ForgotPasswordTheme';
19
+ export * from './ResetPhoneNumberTheme';
18
20
  export * from './ResetPasswordTheme';
19
21
  export * from './ActivateAccountPageTheme';
20
22
  export * from './AcceptInvitationTheme';
@@ -32,6 +34,7 @@ export interface LoginBoxThemeOptions extends LoginBoxCommonThemeOptions {
32
34
  acceptInvitation?: AcceptInvitationPageThemeOptions;
33
35
  activateAccount?: ActivateAccountPageThemeOptions;
34
36
  forgotPassword?: ForgotPasswordPageThemeOptions;
37
+ resetPhoneNumber?: ResetPhoneNumberPageThemeOptions;
35
38
  resetPassword?: ResetPasswordPageThemeOptions;
36
39
  login?: LoginPageThemeOptions;
37
40
  signup?: SignupPageThemeOptions;
@@ -43,6 +46,7 @@ export interface LoginBoxTheme extends LoginBoxCommonTheme {
43
46
  acceptInvitation: AcceptInvitationPageTheme;
44
47
  activateAccount: ActivateAccountPageTheme;
45
48
  forgotPassword: ForgotPasswordPageTheme;
49
+ resetPhoneNumber: ResetPhoneNumberPageTheme;
46
50
  resetPassword: ResetPasswordPageTheme;
47
51
  login: LoginPageTheme;
48
52
  signup: SignupPageTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/types",
3
- "version": "5.19.0",
3
+ "version": "5.22.0",
4
4
  "main": "./node/index.js",
5
5
  "module": "./index.js",
6
6
  "types": "./index.d.ts",