@frontegg/types 5.44.1 → 5.45.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.
- package/FronteggAppOptions.d.ts +2 -20
- package/PrivateOptions.d.ts +25 -0
- package/package.json +1 -1
package/FronteggAppOptions.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { RedirectOptions } from '@frontegg/rest-api';
|
|
2
1
|
import { FronteggThemeOptions } from './ThemeOptions';
|
|
3
2
|
import { FronteggMetadata } from './FronteggMetadata';
|
|
4
3
|
import { ContextOptions } from './ContextOptions';
|
|
5
4
|
import { FronteggStoreOptions } from './FronteggStoreOptions';
|
|
6
|
-
import { EnhancedStore } from '@reduxjs/toolkit';
|
|
7
5
|
import { LocalizationsOverrides } from './Localizations';
|
|
8
6
|
import { CustomEventsOptions } from '@frontegg/redux-store';
|
|
9
|
-
|
|
7
|
+
import { PrivateOptions } from './PrivateOptions';
|
|
8
|
+
export interface FronteggAppOptions extends FronteggStoreOptions, PrivateOptions {
|
|
10
9
|
withCompanyName?: boolean;
|
|
11
10
|
contextOptions: ContextOptions;
|
|
12
11
|
events?: CustomEventsOptions;
|
|
@@ -58,18 +57,6 @@ export interface FronteggAppOptions extends FronteggStoreOptions {
|
|
|
58
57
|
* Global metadata object to customize Admin Portal
|
|
59
58
|
*/
|
|
60
59
|
metadata?: FronteggMetadata;
|
|
61
|
-
/**
|
|
62
|
-
* Option to open admin portal as Preview mode without HTTP requests for demo mode purpose
|
|
63
|
-
*/
|
|
64
|
-
previewMode?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Option to display login box as Preview mode without HTTP requests for builder customization mode purpose
|
|
67
|
-
*/
|
|
68
|
-
builderMode?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Connect AdminPortal redirects with the wrapper application router
|
|
71
|
-
*/
|
|
72
|
-
onRedirectTo?: (path: string, options?: RedirectOptions) => void;
|
|
73
60
|
/**
|
|
74
61
|
* Base name for LoginBox router
|
|
75
62
|
*/
|
|
@@ -82,11 +69,6 @@ export interface FronteggAppOptions extends FronteggStoreOptions {
|
|
|
82
69
|
* Option to override i18n localizations in AdminPortal and LoginBox components
|
|
83
70
|
*/
|
|
84
71
|
localizations?: LocalizationsOverrides;
|
|
85
|
-
/**
|
|
86
|
-
* Pass Redux store object created by create Frontegg Store to manage actions and state of the frontegg application
|
|
87
|
-
* mostly used when building your own components.
|
|
88
|
-
*/
|
|
89
|
-
store?: EnhancedStore;
|
|
90
72
|
/**
|
|
91
73
|
* Option to support tracing from the Frontegg login box
|
|
92
74
|
*/
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RedirectOptions } from '@frontegg/rest-api';
|
|
2
|
+
import { EnhancedStore } from '@reduxjs/toolkit';
|
|
3
|
+
export interface PrivateOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Option to open admin portal as Preview mode without HTTP requests for demo mode purpose
|
|
6
|
+
*/
|
|
7
|
+
previewMode?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Option to display login box as Preview mode without HTTP requests for builder customization mode purpose
|
|
10
|
+
*/
|
|
11
|
+
builderMode?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Connect AdminPortal redirects with the wrapper application router
|
|
14
|
+
*/
|
|
15
|
+
onRedirectTo?: (path: string, options?: RedirectOptions) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Pass Redux store object created by create Frontegg Store to manage actions and state of the frontegg application
|
|
18
|
+
* mostly used when building your own components.
|
|
19
|
+
*/
|
|
20
|
+
store?: EnhancedStore;
|
|
21
|
+
/**
|
|
22
|
+
* Option to open admin portal as Preview mode without HTTP requests for demo mode purpose
|
|
23
|
+
*/
|
|
24
|
+
framework?: 'nextjs' | 'react' | 'angular' | 'vuejs' | 'flutter';
|
|
25
|
+
}
|