@frontegg/types 4.42.2 → 4.43.0-dashboard

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.
Files changed (35) hide show
  1. package/Common.d.ts +3 -0
  2. package/ContextOptions.d.ts +1 -1
  3. package/FronteggAppInstance.d.ts +1 -0
  4. package/FronteggAppOptions.d.ts +4 -0
  5. package/FronteggMetadata.d.ts +5 -0
  6. package/Localizations/AdminPortalLocalizations/navigation.d.ts +4 -0
  7. package/Localizations/AdminPortalLocalizations/sso.d.ts +27 -0
  8. package/Localizations/LocalizationOverrides.d.ts +1 -0
  9. package/Localizations/LocalizationType.d.ts +1 -0
  10. package/Localizations/LoginBoxLocalization/acceptInvitation.d.ts +4 -0
  11. package/Localizations/LoginBoxLocalization/activateAccount.d.ts +4 -0
  12. package/Localizations/LoginBoxLocalization/forgetPassword.d.ts +8 -0
  13. package/Localizations/LoginBoxLocalization/index.d.ts +8 -0
  14. package/Localizations/LoginBoxLocalization/login.d.ts +16 -0
  15. package/Localizations/LoginBoxLocalization/resetPassword.d.ts +8 -0
  16. package/Localizations/LoginBoxLocalization/signup.d.ts +8 -0
  17. package/Metadata/index.d.ts +2 -0
  18. package/ThemeOptions/ComponentsOptions.d.ts +63 -0
  19. package/ThemeOptions/LoginBoxTheme/AcceptInvitationTheme.d.ts +21 -0
  20. package/ThemeOptions/LoginBoxTheme/ActivateAccountPageTheme.d.ts +52 -0
  21. package/ThemeOptions/LoginBoxTheme/CustomLoginComponents.d.ts +12 -0
  22. package/ThemeOptions/LoginBoxTheme/ForgotPasswordTheme.d.ts +46 -0
  23. package/ThemeOptions/LoginBoxTheme/LoaderTheme.d.ts +7 -0
  24. package/ThemeOptions/LoginBoxTheme/LoginBoxCommon.d.ts +171 -0
  25. package/ThemeOptions/LoginBoxTheme/LoginPageTheme.d.ts +119 -0
  26. package/ThemeOptions/LoginBoxTheme/ResetPasswordTheme.d.ts +48 -0
  27. package/ThemeOptions/LoginBoxTheme/SignupPageTheme.d.ts +46 -0
  28. package/ThemeOptions/LoginBoxTheme/SocialLoginsTheme.d.ts +36 -0
  29. package/ThemeOptions/LoginBoxTheme/index.d.ts +51 -0
  30. package/ThemeOptions/LoginBoxThemeOptions.d.ts +3 -8
  31. package/ThemeOptions/helpers.d.ts +0 -0
  32. package/ThemeOptions/index.d.ts +6 -190
  33. package/index.js +16 -5
  34. package/node/index.js +16 -5
  35. package/package.json +2 -2
package/node/index.js CHANGED
@@ -329,6 +329,7 @@ const getPalette = (theme, defaultTheme) => {
329
329
 
330
330
  const defaultMetadata = {
331
331
  theme: {},
332
+ themeV2: {},
332
333
  navigation: {
333
334
  usage: {
334
335
  visibility: 'hidden',
@@ -336,7 +337,7 @@ const defaultMetadata = {
336
337
  featureFlag: 'fe-usage-page',
337
338
  },
338
339
  webhooks: {
339
- visibility: 'byPermissions',
340
+ visibility: 'hidden',
340
341
  permissions: ['fe.connectivity.read.webhooks'],
341
342
  },
342
343
  roles: {
@@ -352,10 +353,10 @@ const defaultMetadata = {
352
353
  },
353
354
  },
354
355
  personalApiTokens: {
355
- visibility: 'always',
356
+ visibility: 'hidden',
356
357
  },
357
358
  apiTokens: {
358
- visibility: 'byPermissions',
359
+ visibility: 'hidden',
359
360
  permissions: ['fe.secure.read.tenantApiTokens'],
360
361
  },
361
362
  profile: {
@@ -372,7 +373,10 @@ const defaultMetadata = {
372
373
  permissions: ['fe.secure.read.securityPolicy'],
373
374
  },
374
375
  sso: {
375
- visibility: 'byPermissions',
376
+ visibility: 'hidden',
377
+ },
378
+ multipleSSO: {
379
+ visibility: 'hidden',
376
380
  permissions: ['fe.secure.read.samlConfiguration'],
377
381
  },
378
382
  audits: {
@@ -388,6 +392,7 @@ const defaultMetadata = {
388
392
  class Metadata {
389
393
  constructor() {
390
394
  this._theme = defaultMetadata.theme;
395
+ this._themeV2 = defaultMetadata.themeV2;
391
396
  this._navigation = defaultMetadata.navigation;
392
397
  }
393
398
  static getInstance(name = 'default') {
@@ -405,19 +410,25 @@ class Metadata {
405
410
  var _a;
406
411
  return (_a = this._theme) !== null && _a !== void 0 ? _a : {};
407
412
  }
413
+ get themeV2() {
414
+ var _a;
415
+ return (_a = this._themeV2) !== null && _a !== void 0 ? _a : {};
416
+ }
408
417
  get navigation() {
409
418
  var _a;
410
419
  return (_a = this._navigation) !== null && _a !== void 0 ? _a : {};
411
420
  }
412
421
  set(metadata) {
413
- var _a, _b, _c;
422
+ var _a, _b, _c, _d, _e;
414
423
  try {
415
424
  this._navigation = cjs.all([(_a = defaultMetadata.navigation) !== null && _a !== void 0 ? _a : {}, (_b = metadata === null || metadata === void 0 ? void 0 : metadata.navigation) !== null && _b !== void 0 ? _b : {}]);
416
425
  this._theme = cjs.all([(_c = defaultMetadata.theme) !== null && _c !== void 0 ? _c : {}, getPalette(metadata === null || metadata === void 0 ? void 0 : metadata.theme, defaultMetadata.theme)]);
426
+ this._themeV2 = cjs.all([(_d = defaultMetadata.themeV2) !== null && _d !== void 0 ? _d : {}, (_e = metadata === null || metadata === void 0 ? void 0 : metadata.themeV2) !== null && _e !== void 0 ? _e : {}]);
417
427
  }
418
428
  catch (e) {
419
429
  this._navigation = defaultMetadata.navigation;
420
430
  this._theme = defaultMetadata.theme;
431
+ this._themeV2 = defaultMetadata.themeV2;
421
432
  }
422
433
  }
423
434
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/types",
3
- "version": "4.42.2",
3
+ "version": "4.43.0-dashboard",
4
4
  "main": "./node/index.js",
5
5
  "module": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -9,4 +9,4 @@
9
9
  "dependencies": {
10
10
  "csstype": "^3.0.9"
11
11
  }
12
- }
12
+ }