@frontegg/types 7.75.0-alpha.2 → 7.76.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.
@@ -1,4 +1,5 @@
1
1
  import { CMCComponentProps } from './base-component';
2
- export interface ChangePasswordFormProps extends CMCComponentProps {
2
+ export interface ChangePasswordFormProps extends CMCComponentProps<{
3
3
  onCompleteCallback?: (success: boolean) => void;
4
+ }> {
4
5
  }
@@ -0,0 +1,6 @@
1
+ import { CMCComponentProps } from './base-component';
2
+ export interface EditEmailFormProps extends CMCComponentProps<{
3
+ onClose?: () => void;
4
+ onVerify?: (success?: boolean) => void;
5
+ }> {
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -4,3 +4,4 @@ export * from './ProfilePage';
4
4
  export * from './base-component';
5
5
  export * from './ChangePasswordForm';
6
6
  export * from './ApiTokensTable';
7
+ export * from './EditEmailForm';
@@ -3,4 +3,5 @@ export * from './InviteUserDialog';
3
3
  export * from './ProfilePage';
4
4
  export * from './base-component';
5
5
  export * from './ChangePasswordForm';
6
- export * from './ApiTokensTable';
6
+ export * from './ApiTokensTable';
7
+ export * from './EditEmailForm';
@@ -35,6 +35,10 @@ export interface ProfileLocalization {
35
35
  * Settings Phone row tooltip
36
36
  */
37
37
  phoneTooltip: string;
38
+ /**
39
+ * Settings Username row title
40
+ */
41
+ username: string;
38
42
  /**
39
43
  * Settings Address row title
40
44
  */
@@ -164,6 +168,35 @@ export interface ProfileLocalization {
164
168
  */
165
169
  save: string;
166
170
  };
171
+ /**
172
+ * Edit username dialog strings
173
+ */
174
+ profile_EditUsername: {
175
+ /**
176
+ * Dialog title
177
+ */
178
+ title: string;
179
+ /**
180
+ * Edit username input label
181
+ */
182
+ usernameInputLabel: string;
183
+ /**
184
+ * Edit username dialog cancel button text
185
+ */
186
+ cancel: string;
187
+ /**
188
+ * Edit username dialog submit button text
189
+ */
190
+ save: string;
191
+ /**
192
+ * Error displayed if username input is too long
193
+ */
194
+ usernameIsTooLong: string;
195
+ /**
196
+ * Error displayed if username input is invalid
197
+ */
198
+ usernameInvalid: string;
199
+ };
167
200
  /**
168
201
  * Edit phone numbers dialog strings
169
202
  */
@@ -1,7 +1,7 @@
1
1
  import { Localization, ValidationLocalization } from './LocalizationType';
2
2
  import { LoginBoxLocalization } from './LoginBoxLocalization';
3
3
  import { AdminPortalLocalization } from './AdminPortalLocalizations';
4
- type DeepPartial<T> = T extends string ? T : T extends Record<string, any> ? {
4
+ export type DeepPartial<T> = T extends string ? T : T extends Record<string, any> ? {
5
5
  [P in keyof T]?: DeepPartial<T[P]>;
6
6
  } : T;
7
7
  type Languages = 'en' | 'he';
@@ -9,6 +9,9 @@ export type LocalizationsOverrides = DeepPartial<{
9
9
  [k in Languages]: LocalizationOverrides;
10
10
  }> & {
11
11
  defaultLanguage?: Languages;
12
+ autoTranslate?: {
13
+ enabled?: boolean;
14
+ };
12
15
  };
13
16
  export type ValidationLocalizationOverrides = Partial<ValidationLocalization>;
14
17
  export type LoginBoxLocalizationOverrides = Partial<{
@@ -7,6 +7,9 @@ export type Localizations = {
7
7
  [k in Languages]: Localization;
8
8
  } & {
9
9
  defaultLanguage?: Languages;
10
+ autoTranslate?: {
11
+ enabled?: boolean;
12
+ };
10
13
  };
11
14
  export interface ValidationLocalization {
12
15
  /**
@@ -33,6 +33,14 @@ 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;
36
44
  /**
37
45
  * error message displayed if email is invalid
38
46
  */
@@ -383,6 +391,8 @@ export interface LoginLocalization {
383
391
  phoneIsRequired: string;
384
392
  phoneIsInvalid: string;
385
393
  phoneFormatIsInvalid: string;
394
+ usernameIsRequired: string;
395
+ usernameIsInvalid: string;
386
396
  promptPasskeysTitle: string;
387
397
  promptFirstItemTitle: string;
388
398
  promptFirstItemSubtitle: string;
@@ -10,6 +10,7 @@ export interface FieldSettings {
10
10
  }
11
11
  export declare enum ProfilePageFields {
12
12
  Name = "name",
13
+ Username = "username",
13
14
  PhoneNumber = "phoneNumber",
14
15
  Address = "address",
15
16
  JobTitle = "jobTitle"
@@ -18,6 +19,7 @@ export interface MapProfileFieldToAppearance extends Record<keyof ProfilePageFie
18
19
  [ProfilePageFields.Address]: HiddenOrEdit;
19
20
  [ProfilePageFields.JobTitle]: HiddenOrEdit;
20
21
  [ProfilePageFields.Name]: HiddenOrEdit;
22
+ [ProfilePageFields.Username]: HiddenOrEdit;
21
23
  [ProfilePageFields.PhoneNumber]: HiddenOrEdit;
22
24
  }
23
25
  export declare enum PrivacyPageFields {
@@ -1,6 +1,7 @@
1
1
  export let ProfilePageFields;
2
2
  (function (ProfilePageFields) {
3
3
  ProfilePageFields["Name"] = "name";
4
+ ProfilePageFields["Username"] = "username";
4
5
  ProfilePageFields["PhoneNumber"] = "phoneNumber";
5
6
  ProfilePageFields["Address"] = "address";
6
7
  ProfilePageFields["JobTitle"] = "jobTitle";
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.75.0-alpha.2
1
+ /** @license Frontegg v7.76.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.
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -68,4 +68,15 @@ Object.keys(_ApiTokensTable).forEach(function (key) {
68
68
  return _ApiTokensTable[key];
69
69
  }
70
70
  });
71
+ });
72
+ var _EditEmailForm = require("./EditEmailForm");
73
+ Object.keys(_EditEmailForm).forEach(function (key) {
74
+ if (key === "default" || key === "__esModule") return;
75
+ if (key in exports && exports[key] === _EditEmailForm[key]) return;
76
+ Object.defineProperty(exports, key, {
77
+ enumerable: true,
78
+ get: function () {
79
+ return _EditEmailForm[key];
80
+ }
81
+ });
71
82
  });
@@ -8,6 +8,7 @@ let ProfilePageFields;
8
8
  exports.ProfilePageFields = ProfilePageFields;
9
9
  (function (ProfilePageFields) {
10
10
  ProfilePageFields["Name"] = "name";
11
+ ProfilePageFields["Username"] = "username";
11
12
  ProfilePageFields["PhoneNumber"] = "phoneNumber";
12
13
  ProfilePageFields["Address"] = "address";
13
14
  ProfilePageFields["JobTitle"] = "jobTitle";
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.75.0-alpha.2
1
+ /** @license Frontegg v7.76.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.75.0-alpha.2",
3
+ "version": "7.76.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.75.0-alpha.2",
9
+ "@frontegg/redux-store": "7.76.0-alpha.0",
10
10
  "csstype": "^3.0.9",
11
11
  "deepmerge": "^4.2.2"
12
12
  },