@frontegg/types 7.74.0-alpha.1 → 7.75.0-alpha.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.
@@ -16,6 +16,7 @@ import { ProvisioningLocalization } from './provisioning';
16
16
  import { UsersGroupsLocalization } from './groups';
17
17
  import { AllAccountsLocalization } from './allAccounts';
18
18
  import { AppDialogLocalization } from './appDialog';
19
+ import { SharedLocalization } from './shared';
19
20
  export * from './navigation';
20
21
  export * from './profile';
21
22
  export * from './personalTokens';
@@ -34,4 +35,5 @@ export * from './allUsers';
34
35
  export * from './provisioning';
35
36
  export * from './allAccounts';
36
37
  export * from './appDialog';
37
- export type AdminPortalLocalization = NavigationLocalization & ProfileLocalization & PersonalTokensLocalization & AuditLogsLocalization & ApiTokensLocalization & AccountSettingsLocalization & PrivacyLocalization & SecurityLocalization & RolesLocalization & SsoLocalization & UsersLocalization & UsersGroupsLocalization & WebhooksLocalization & SubscriptionsLocalization & AllUsersLocalization & ProvisioningLocalization & AllAccountsLocalization & AppDialogLocalization;
38
+ export * from './shared';
39
+ export type AdminPortalLocalization = NavigationLocalization & ProfileLocalization & PersonalTokensLocalization & AuditLogsLocalization & ApiTokensLocalization & AccountSettingsLocalization & PrivacyLocalization & SecurityLocalization & RolesLocalization & SsoLocalization & UsersLocalization & UsersGroupsLocalization & WebhooksLocalization & SubscriptionsLocalization & AllUsersLocalization & ProvisioningLocalization & AllAccountsLocalization & AppDialogLocalization & SharedLocalization;
@@ -16,4 +16,5 @@ export * from './allUsers';
16
16
  export * from './provisioning';
17
17
  export * from './allAccounts';
18
18
  export * from './appDialog';
19
+ export * from './shared';
19
20
  export {};
@@ -266,4 +266,73 @@ export interface ProfileLocalization {
266
266
  */
267
267
  save: string;
268
268
  };
269
+ /**
270
+ * Edit email dialog strings
271
+ */
272
+ profile_EditEmail: {
273
+ /**
274
+ * Dialog title
275
+ */
276
+ title: string;
277
+ /**
278
+ * Enter your email title
279
+ */
280
+ enterYourEmailTitle: string;
281
+ /**
282
+ * Email input label
283
+ */
284
+ emailInputLabel: string;
285
+ /**
286
+ * Email input placeholder
287
+ */
288
+ emailInputPlaceholder: string;
289
+ /**
290
+ * Enter a new email address to receive a 6-digit verification code
291
+ */
292
+ enterNewEmailDescription: string;
293
+ /**
294
+ * Error displayed if email input is empty
295
+ */
296
+ emailIsRequired: string;
297
+ /**
298
+ * Error displayed if email input is invalid
299
+ */
300
+ invalidEmailFormat: string;
301
+ /**
302
+ * Error displayed if email is the same as the old one
303
+ */
304
+ sameAsOldEmailError: string;
305
+ /**
306
+ * Edit email dialog cancel button text
307
+ */
308
+ cancel: string;
309
+ /**
310
+ * Edit email dialog next button text
311
+ */
312
+ next: string;
313
+ /**
314
+ * OTC view title
315
+ */
316
+ otcTitle: string;
317
+ /**
318
+ * OTC view description (e.g., "Please enter the 6-digit code...")
319
+ */
320
+ otcDescription: string;
321
+ /**
322
+ * OTC view back button text
323
+ */
324
+ otcBackButton: string;
325
+ /**
326
+ * OTC view verify button text
327
+ */
328
+ otcVerifyButton: string;
329
+ /**
330
+ * Error displayed if OTC input is empty
331
+ */
332
+ otcIsRequired: string;
333
+ /**
334
+ * Error displayed if OTC input is not 6 digits
335
+ */
336
+ otcMustBe6Digits: string;
337
+ };
269
338
  }
@@ -0,0 +1,6 @@
1
+ export interface SharedLocalization {
2
+ shared_ResendCode: {
3
+ otcResend: string;
4
+ otcResending: string;
5
+ };
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -4,7 +4,9 @@ import { AdminPortalLocalization } from './AdminPortalLocalizations';
4
4
  type Languages = 'en' | 'he';
5
5
  export type LocalizationsOverrides = Partial<{
6
6
  [k in Languages]: LocalizationOverrides;
7
- }>;
7
+ }> & {
8
+ defaultLanguage?: Languages;
9
+ };
8
10
  export type ValidationLocalizationOverrides = Partial<ValidationLocalization>;
9
11
  export type LoginBoxLocalizationOverrides = Partial<{
10
12
  [key in keyof LoginBoxLocalization]: Partial<LoginBoxLocalization[key]>;
@@ -5,6 +5,8 @@ import { FronteggErrorCode } from '@frontegg/rest-api/error';
5
5
  type Languages = 'en' | string;
6
6
  export type Localizations = {
7
7
  [k in Languages]: Localization;
8
+ } & {
9
+ defaultLanguage?: Languages;
8
10
  };
9
11
  export interface ValidationLocalization {
10
12
  /**
@@ -33,14 +33,6 @@ export interface LoginLocalization {
33
33
  emailOrPhonePlaceHolder: string;
34
34
  phonePlaceholder: string;
35
35
  phoneInputLabel: string;
36
- emailPhoneOrUsernameInputLabel: string;
37
- emailPhoneOrUsernamePlaceHolder: string;
38
- usernameOrEmailInputLabel: string;
39
- usernameOrEmailPlaceHolder: string;
40
- usernameOrPhoneInputLabel: string;
41
- usernameOrPhonePlaceHolder: string;
42
- usernameInputLabel: string;
43
- usernamePlaceHolder: string;
44
36
  /**
45
37
  * error message displayed if email is invalid
46
38
  */
@@ -391,8 +383,6 @@ export interface LoginLocalization {
391
383
  phoneIsRequired: string;
392
384
  phoneIsInvalid: string;
393
385
  phoneFormatIsInvalid: string;
394
- usernameIsRequired: string;
395
- usernameIsInvalid: string;
396
386
  promptPasskeysTitle: string;
397
387
  promptFirstItemTitle: string;
398
388
  promptFirstItemSubtitle: string;
@@ -19,6 +19,10 @@ export interface YupString {
19
19
  required: (message?: string) => YupString;
20
20
  email: (message?: string) => YupString;
21
21
  typeError: (message?: string) => YupString;
22
+ matches: (regex: RegExp, message?: string | {
23
+ message?: string;
24
+ excludeEmptyString?: boolean;
25
+ }) => YupString;
22
26
  }
23
27
  /**
24
28
  * Minimal Yup number schema.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.74.0-alpha.1
1
+ /** @license Frontegg v7.75.0-alpha.0
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.
@@ -200,4 +200,15 @@ Object.keys(_appDialog).forEach(function (key) {
200
200
  return _appDialog[key];
201
201
  }
202
202
  });
203
+ });
204
+ var _shared = require("./shared");
205
+ Object.keys(_shared).forEach(function (key) {
206
+ if (key === "default" || key === "__esModule") return;
207
+ if (key in exports && exports[key] === _shared[key]) return;
208
+ Object.defineProperty(exports, key, {
209
+ enumerable: true,
210
+ get: function () {
211
+ return _shared[key];
212
+ }
213
+ });
203
214
  });
@@ -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.74.0-alpha.1
1
+ /** @license Frontegg v7.75.0-alpha.0
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.74.0-alpha.1",
3
+ "version": "7.75.0-alpha.0",
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.74.0-alpha.1",
9
+ "@frontegg/redux-store": "7.75.0-alpha.0",
10
10
  "csstype": "^3.0.9",
11
11
  "deepmerge": "^4.2.2"
12
12
  },