@frontegg/types 6.168.0-alpha.0 → 6.169.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.
- package/Localizations/LoginBoxLocalization/index.d.ts +3 -1
- package/Localizations/LoginBoxLocalization/index.js +1 -0
- package/Localizations/LoginBoxLocalization/openApp.d.ts +23 -0
- package/Localizations/LoginBoxLocalization/openApp.js +1 -0
- package/PrivateOptions.d.ts +5 -0
- package/ThemeOptions/LoginBoxTheme/OpenAppPageTheme.d.ts +39 -0
- package/ThemeOptions/LoginBoxTheme/OpenAppPageTheme.js +1 -0
- package/ThemeOptions/LoginBoxTheme/index.d.ts +4 -0
- package/ThemeOptions/LoginBoxTheme/index.js +1 -0
- package/index.js +1 -1
- package/node/Localizations/LoginBoxLocalization/index.js +11 -0
- package/node/Localizations/LoginBoxLocalization/openApp.js +5 -0
- package/node/ThemeOptions/LoginBoxTheme/OpenAppPageTheme.js +5 -0
- package/node/ThemeOptions/LoginBoxTheme/index.js +11 -0
- package/node/index.js +1 -1
- package/package.json +2 -2
|
@@ -9,6 +9,7 @@ import { RecoveryMfaLocalization } from './recoveryMfa';
|
|
|
9
9
|
import { ResetPhoneNumberLocalization } from './resetPhoneNumber';
|
|
10
10
|
import { ImpersonateLocalization } from './impersonate';
|
|
11
11
|
import { StepUpLocalization } from './stepUp';
|
|
12
|
+
import { OpenAppLocalization } from './openApp';
|
|
12
13
|
export * from './login';
|
|
13
14
|
export * from './stepUp';
|
|
14
15
|
export * from './signup';
|
|
@@ -21,4 +22,5 @@ export * from './activateAccount';
|
|
|
21
22
|
export * from './recoveryMfa';
|
|
22
23
|
export * from './SplitPageTypes';
|
|
23
24
|
export * from './impersonate';
|
|
24
|
-
export
|
|
25
|
+
export * from './openApp';
|
|
26
|
+
export declare type LoginBoxLocalization = LoginLocalization & StepUpLocalization & SignupLocalization & ForgetPasswordLocalization & ResetPhoneNumberLocalization & ResetPasswordLocalization & SocialLoginsLocalization & AcceptInvitationLocalization & ActivateAccountLocalization & ImpersonateLocalization & RecoveryMfaLocalization & OpenAppLocalization;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface OpenAppLocalization {
|
|
2
|
+
/**
|
|
3
|
+
* strings in step up page
|
|
4
|
+
*/
|
|
5
|
+
openApp: {
|
|
6
|
+
/**
|
|
7
|
+
* open app page title
|
|
8
|
+
*/
|
|
9
|
+
title: string;
|
|
10
|
+
/**
|
|
11
|
+
* open app page title
|
|
12
|
+
*/
|
|
13
|
+
description: string;
|
|
14
|
+
/**
|
|
15
|
+
* open app page "open" button text
|
|
16
|
+
*/
|
|
17
|
+
buttonText: string;
|
|
18
|
+
/**
|
|
19
|
+
* back to login button text
|
|
20
|
+
*/
|
|
21
|
+
backToLogin: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/PrivateOptions.d.ts
CHANGED
|
@@ -32,4 +32,9 @@ export interface PrivateOptions {
|
|
|
32
32
|
* default: undefined
|
|
33
33
|
*/
|
|
34
34
|
overrideFeatureFlags?: Record<string, 'on' | 'off'>;
|
|
35
|
+
/**
|
|
36
|
+
* Open App route will be used to redirect user to the app after login
|
|
37
|
+
* default: false
|
|
38
|
+
*/
|
|
39
|
+
enableOpenAppRoute?: boolean;
|
|
35
40
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CustomComponent, LoginBoxCommonTheme, LoginBoxCommonThemeOptions } from '../index';
|
|
2
|
+
import { ExtendedCSSProperties } from '../../Common';
|
|
3
|
+
interface TitleProps {
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
6
|
+
interface MessageProps {
|
|
7
|
+
message: string;
|
|
8
|
+
}
|
|
9
|
+
interface OpenAppPageComponentsTheme {
|
|
10
|
+
/**
|
|
11
|
+
* Activate account page container style
|
|
12
|
+
*/
|
|
13
|
+
containerStyle?: ExtendedCSSProperties;
|
|
14
|
+
/**
|
|
15
|
+
* Activate account page title default is 'Activate Account'
|
|
16
|
+
* displayed in forgot password form screen
|
|
17
|
+
* passing 'null' will hide the title
|
|
18
|
+
*/
|
|
19
|
+
title?: CustomComponent<TitleProps>;
|
|
20
|
+
/**
|
|
21
|
+
* Direct css style for Forgot password Page title
|
|
22
|
+
*/
|
|
23
|
+
titleStyle?: ExtendedCSSProperties;
|
|
24
|
+
/**
|
|
25
|
+
* Activate account page message default is hidden
|
|
26
|
+
* displayed in forgot password form screen
|
|
27
|
+
* passing 'null' will hide the message
|
|
28
|
+
*/
|
|
29
|
+
message?: CustomComponent<MessageProps>;
|
|
30
|
+
/**
|
|
31
|
+
* Direct css style for Forgot password Page message
|
|
32
|
+
*/
|
|
33
|
+
messageStyle?: ExtendedCSSProperties;
|
|
34
|
+
}
|
|
35
|
+
export interface OpenAppPageThemeOptions extends LoginBoxCommonThemeOptions, OpenAppPageComponentsTheme {
|
|
36
|
+
}
|
|
37
|
+
export interface OpenAppPageTheme extends LoginBoxCommonTheme, OpenAppPageComponentsTheme {
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,6 +10,7 @@ import { LoaderTheme, LoaderThemeOptions } from './LoaderTheme';
|
|
|
10
10
|
import { SignupPageTheme } from './SignupPageTheme';
|
|
11
11
|
import { ResetPhoneNumberPageTheme, ResetPhoneNumberPageThemeOptions } from './ResetPhoneNumberTheme';
|
|
12
12
|
import { StepUpTheme, StepUpThemeOptions } from './StepUpTheme';
|
|
13
|
+
import { OpenAppPageTheme, OpenAppPageThemeOptions } from './OpenAppPageTheme';
|
|
13
14
|
export * from './LoginBoxCommon';
|
|
14
15
|
export * from './LoginPageTheme';
|
|
15
16
|
export * from './SignupPageTheme';
|
|
@@ -20,6 +21,7 @@ export * from './ResetPhoneNumberTheme';
|
|
|
20
21
|
export * from './ResetPasswordTheme';
|
|
21
22
|
export * from './ActivateAccountPageTheme';
|
|
22
23
|
export * from './AcceptInvitationTheme';
|
|
24
|
+
export * from './OpenAppPageTheme';
|
|
23
25
|
export interface AuthPageThemeOptions extends BaseThemeOptions, AuthPageCustomComponents {
|
|
24
26
|
style?: ExtendedCSSProperties;
|
|
25
27
|
layout?: {
|
|
@@ -40,6 +42,7 @@ export interface LoginBoxThemeOptions extends LoginBoxCommonThemeOptions {
|
|
|
40
42
|
login?: LoginPageThemeOptions;
|
|
41
43
|
stepUp?: StepUpThemeOptions;
|
|
42
44
|
signup?: SignupPageThemeOptions;
|
|
45
|
+
openApp?: OpenAppPageThemeOptions;
|
|
43
46
|
loader?: LoaderThemeOptions;
|
|
44
47
|
}
|
|
45
48
|
export interface LoginBoxTheme extends LoginBoxCommonTheme {
|
|
@@ -53,5 +56,6 @@ export interface LoginBoxTheme extends LoginBoxCommonTheme {
|
|
|
53
56
|
stepUp: StepUpTheme;
|
|
54
57
|
signup: SignupPageTheme;
|
|
55
58
|
socialLogins: SocialLoginsTheme;
|
|
59
|
+
openApp: OpenAppPageTheme;
|
|
56
60
|
loader: LoaderTheme;
|
|
57
61
|
}
|
package/index.js
CHANGED
|
@@ -134,4 +134,15 @@ Object.keys(_impersonate).forEach(function (key) {
|
|
|
134
134
|
return _impersonate[key];
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
|
+
});
|
|
138
|
+
var _openApp = require("./openApp");
|
|
139
|
+
Object.keys(_openApp).forEach(function (key) {
|
|
140
|
+
if (key === "default" || key === "__esModule") return;
|
|
141
|
+
if (key in exports && exports[key] === _openApp[key]) return;
|
|
142
|
+
Object.defineProperty(exports, key, {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function () {
|
|
145
|
+
return _openApp[key];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
137
148
|
});
|
|
@@ -112,4 +112,15 @@ Object.keys(_AcceptInvitationTheme).forEach(function (key) {
|
|
|
112
112
|
return _AcceptInvitationTheme[key];
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
|
+
});
|
|
116
|
+
var _OpenAppPageTheme = require("./OpenAppPageTheme");
|
|
117
|
+
Object.keys(_OpenAppPageTheme).forEach(function (key) {
|
|
118
|
+
if (key === "default" || key === "__esModule") return;
|
|
119
|
+
if (key in exports && exports[key] === _OpenAppPageTheme[key]) return;
|
|
120
|
+
Object.defineProperty(exports, key, {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _OpenAppPageTheme[key];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
115
126
|
});
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/types",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.169.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": "6.
|
|
9
|
+
"@frontegg/redux-store": "6.169.0",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|