@frontegg/types 7.76.0-alpha.0 → 7.76.0-alpha.2

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,5 +1,6 @@
1
1
  import { PasswordStrengthLocalization } from './passwordStrength';
2
2
  export * from './passwordStrength';
3
+ export * from './otc';
3
4
  interface ErrorLocalizations {
4
5
  errors: {
5
6
  genericErrorMessage: string;
@@ -1,2 +1,3 @@
1
1
  export * from './passwordStrength';
2
+ export * from './otc';
2
3
  export {};
@@ -0,0 +1,47 @@
1
+ export interface OtcLocalization {
2
+ /**
3
+ * Oct section title
4
+ */
5
+ otcTitle: string;
6
+ /**
7
+ * Otc input label
8
+ */
9
+ otcInputLabel: string;
10
+ /**
11
+ * Text Continue
12
+ */
13
+ otcContinue: string;
14
+ /**
15
+ * Text Back
16
+ */
17
+ otcBack?: string;
18
+ /**
19
+ * Text Resend
20
+ */
21
+ otcResend?: string;
22
+ /**
23
+ * Text resending in progress
24
+ */
25
+ otcResending?: string;
26
+ /**
27
+ * Otc input error message if it's empty
28
+ */
29
+ otcCodeIsRequired?: string;
30
+ /**
31
+ * Text `the OTC has a wrong length`
32
+ */
33
+ otcInvalidLengthCode?: string;
34
+ /**
35
+ * Text HaventReceivedCode
36
+ */
37
+ otcHaventReceivedCode?: string;
38
+ /**
39
+ * Oct section message
40
+ * EX: "We sent you a six digit code at {{email}}"
41
+ */
42
+ otcMessage?: string;
43
+ /**
44
+ * Otc input placeholder
45
+ */
46
+ otcInputPlaceholder?: string;
47
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -19,6 +19,22 @@ export interface ForgetPasswordLocalization {
19
19
  * Forget password form email input placeholder
20
20
  */
21
21
  emailInputPlaceholder: string;
22
+ /**
23
+ * Forget password form email or phone input label
24
+ */
25
+ emailOrPhoneInputLabel: string;
26
+ /**
27
+ * Forget password form email or phone input placeholder
28
+ */
29
+ emailOrPhonePlaceHolder: string;
30
+ /**
31
+ * Forget password form phone input label
32
+ */
33
+ phoneInputLabel: string;
34
+ /**
35
+ * Forget password form phone input placeholder
36
+ */
37
+ phonePlaceholder: string;
22
38
  /**
23
39
  * error message displayed if email is invalid
24
40
  */
@@ -27,9 +43,49 @@ export interface ForgetPasswordLocalization {
27
43
  * error message displayed if email is empty
28
44
  */
29
45
  emailIsRequired: string;
46
+ /**
47
+ * error message displayed if phone is invalid
48
+ */
49
+ phoneIsInvalid: string;
50
+ /**
51
+ * error message displayed if phone is empty
52
+ */
53
+ phoneIsRequired: string;
54
+ /**
55
+ * Text for submit button
56
+ */
30
57
  submitButtonText: string;
58
+ /**
59
+ * Text for back to login link
60
+ */
31
61
  backToLogin: string;
62
+ /**
63
+ * Title displayed on success screen
64
+ */
32
65
  resetEmailSentTitle: string;
66
+ /**
67
+ * Message displayed on success screen (use {{identifier}} for placeholder)
68
+ */
33
69
  resetEmailSentMessage: string;
70
+ /**
71
+ * Title for the password recovery method selection screen
72
+ * @default Password recovery
73
+ */
74
+ passwordRecoveryTitle?: string;
75
+ /**
76
+ * Subtitle for the password recovery method selection screen
77
+ * @default To continue, choose one of these methods
78
+ */
79
+ passwordRecoverySubtitle?: string;
80
+ /**
81
+ * Text for the email recovery option button
82
+ * @default Send an email with link
83
+ */
84
+ emailOptionTitle?: string;
85
+ /**
86
+ * Text for the SMS recovery option button
87
+ * @default Send a SMS code
88
+ */
89
+ smsOptionTitle?: string;
34
90
  };
35
91
  }
@@ -1,5 +1,6 @@
1
1
  import { TestimonialComponentLocalization, TitleDescriptionComponentLocalization, ValuesComponentLocalization } from './SplitPageTypes';
2
2
  import { PrestepLocalization } from './prestep';
3
+ import { OtcLocalization } from '../Common/otc';
3
4
  export interface LoginLocalization {
4
5
  /**
5
6
  * strings in login page
@@ -210,47 +211,6 @@ export interface LoginLocalization {
210
211
  * Oct section title
211
212
  */
212
213
  smsOtcChangePhoneMessage: string;
213
- /**
214
- * Oct section title
215
- */
216
- otcTitle: string;
217
- /**
218
- * Oct section message
219
- * EX: "We sent you a six digit code at {{email}}"
220
- */
221
- otcMessage: string;
222
- /**
223
- * Otc input label
224
- */
225
- otcInputLabel: string;
226
- /**
227
- * Otc input placeholder
228
- */
229
- otcInputPlaceholder: string;
230
- /**
231
- * Otc input error message if it's empty
232
- */
233
- otcCodeIsRequired: string;
234
- /**
235
- * Text Continue
236
- */
237
- otcContinue: string;
238
- /**
239
- * Text HaventReceivedCode
240
- */
241
- otcHaventReceivedCode: string;
242
- /**
243
- * Text Resend
244
- */
245
- otcResend: string;
246
- /**
247
- * Text resending in progress
248
- */
249
- otcResending: string;
250
- /**
251
- * Text `the OTC has a wrong length`
252
- */
253
- otcInvalidLengthCode: string;
254
214
  /**
255
215
  * Text to be displayed when redirecting to SSO provider url
256
216
  */
@@ -549,5 +509,5 @@ export interface LoginLocalization {
549
509
  * Generic error page message title for login
550
510
  */
551
511
  genericErrorPageTitle: string;
552
- } & PrestepLocalization;
512
+ } & PrestepLocalization & OtcLocalization;
553
513
  }
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.76.0-alpha.0
1
+ /** @license Frontegg v7.76.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -13,4 +13,15 @@ Object.keys(_passwordStrength).forEach(function (key) {
13
13
  return _passwordStrength[key];
14
14
  }
15
15
  });
16
+ });
17
+ var _otc = require("./otc");
18
+ Object.keys(_otc).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _otc[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _otc[key];
25
+ }
26
+ });
16
27
  });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.76.0-alpha.0
1
+ /** @license Frontegg v7.76.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/types",
3
- "version": "7.76.0-alpha.0",
3
+ "version": "7.76.0-alpha.2",
4
4
  "main": "./node/index.js",
5
5
  "author": "Frontegg LTD",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
8
  "@babel/runtime": "^7.18.6",
9
- "@frontegg/redux-store": "7.76.0-alpha.0",
9
+ "@frontegg/redux-store": "7.76.0-alpha.2",
10
10
  "csstype": "^3.0.9",
11
11
  "deepmerge": "^4.2.2"
12
12
  },