@frontegg/types 7.75.0-alpha.0 → 7.75.0-alpha.1

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,7 +16,6 @@ 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';
20
19
  export * from './navigation';
21
20
  export * from './profile';
22
21
  export * from './personalTokens';
@@ -35,5 +34,4 @@ export * from './allUsers';
35
34
  export * from './provisioning';
36
35
  export * from './allAccounts';
37
36
  export * from './appDialog';
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;
37
+ export type AdminPortalLocalization = NavigationLocalization & ProfileLocalization & PersonalTokensLocalization & AuditLogsLocalization & ApiTokensLocalization & AccountSettingsLocalization & PrivacyLocalization & SecurityLocalization & RolesLocalization & SsoLocalization & UsersLocalization & UsersGroupsLocalization & WebhooksLocalization & SubscriptionsLocalization & AllUsersLocalization & ProvisioningLocalization & AllAccountsLocalization & AppDialogLocalization;
@@ -16,5 +16,4 @@ export * from './allUsers';
16
16
  export * from './provisioning';
17
17
  export * from './allAccounts';
18
18
  export * from './appDialog';
19
- export * from './shared';
20
19
  export {};
@@ -266,73 +266,4 @@ 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
- };
338
269
  }
@@ -1,8 +1,11 @@
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> ? {
5
+ [P in keyof T]?: DeepPartial<T[P]>;
6
+ } : T;
4
7
  type Languages = 'en' | 'he';
5
- export type LocalizationsOverrides = Partial<{
8
+ export type LocalizationsOverrides = DeepPartial<{
6
9
  [k in Languages]: LocalizationOverrides;
7
10
  }> & {
8
11
  defaultLanguage?: Languages;
@@ -221,11 +221,7 @@ export interface SignupLocalization {
221
221
  * strings in signup page
222
222
  */
223
223
  signup: {
224
- account: Omit<SignupLocalizationOptions, 'title'> & {
225
- title?: string;
226
- };
227
- user: Omit<SignupLocalizationOptions, 'title'> & {
228
- title?: string;
229
- };
224
+ account: SignupLocalizationOptions;
225
+ user: SignupLocalizationOptions;
230
226
  } & SignupLocalizationOptions;
231
227
  }
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.75.0-alpha.0
1
+ /** @license Frontegg v7.75.0-alpha.1
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,15 +200,4 @@ 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
- });
214
203
  });
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.75.0-alpha.0
1
+ /** @license Frontegg v7.75.0-alpha.1
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.0",
3
+ "version": "7.75.0-alpha.1",
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.0",
9
+ "@frontegg/redux-store": "7.75.0-alpha.1",
10
10
  "csstype": "^3.0.9",
11
11
  "deepmerge": "^4.2.2"
12
12
  },
@@ -1,6 +0,0 @@
1
- export interface SharedLocalization {
2
- shared_ResendCode: {
3
- otcResend: string;
4
- otcResending: string;
5
- };
6
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });