@frontegg/types 6.9.0 → 6.10.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/FronteggStoreOptions.d.ts +1 -0
- package/Localizations/LoginBoxLocalization/activateAccount.d.ts +15 -0
- package/ThemeOptions/DisclaimerOptions.d.ts +25 -0
- package/ThemeOptions/DisclaimerOptions.js +1 -0
- package/ThemeOptions/LoginBoxTheme/ActivateAccountPageTheme.d.ts +7 -0
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.d.ts +2 -23
- package/index.js +1 -1
- package/node/ThemeOptions/DisclaimerOptions.js +5 -0
- package/node/index.js +1 -1
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ export interface AuthOptions extends Partial<Omit<AuthState, 'routes'>> {
|
|
|
3
3
|
keepSessionAlive?: boolean;
|
|
4
4
|
includeQueryParam?: boolean;
|
|
5
5
|
routes?: Partial<AuthPageRoutes>;
|
|
6
|
+
disableSilentRefresh?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface AuditsOptions extends Partial<AuditsState> {
|
|
8
9
|
virtualScroll?: boolean;
|
|
@@ -35,6 +35,10 @@ export interface ActivateAccountLocalization {
|
|
|
35
35
|
* Error displayed when passwords does not match
|
|
36
36
|
*/
|
|
37
37
|
confirmPasswordMustMatch: string;
|
|
38
|
+
/**
|
|
39
|
+
* Error displayed when didn't agree to terms and conditions
|
|
40
|
+
*/
|
|
41
|
+
confirmTermsAndConditionsIsRequired: string;
|
|
38
42
|
/**
|
|
39
43
|
* Active account submit button text
|
|
40
44
|
*/
|
|
@@ -75,5 +79,16 @@ export interface ActivateAccountLocalization {
|
|
|
75
79
|
* Back to login button text in activate account failed section
|
|
76
80
|
*/
|
|
77
81
|
failedBackToLoginButton: string;
|
|
82
|
+
/**
|
|
83
|
+
* Consts for terms and conditions & privacy for activate account page
|
|
84
|
+
*/
|
|
85
|
+
disclaimerText: string;
|
|
86
|
+
disclaimerCheckboxLabel: string;
|
|
87
|
+
disclaimerTextRequired: string;
|
|
88
|
+
termsLinkText: string;
|
|
89
|
+
termsLink: string;
|
|
90
|
+
privacyLinkText: string;
|
|
91
|
+
privacyLink: string;
|
|
92
|
+
termsAndPrivacyConjunctionText: string;
|
|
78
93
|
};
|
|
79
94
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ExtendedCSSProperties } from "../Common";
|
|
2
|
+
export interface DisclaimerOptions {
|
|
3
|
+
hasCheckbox: boolean;
|
|
4
|
+
disclaimerContainerStyle?: ExtendedCSSProperties;
|
|
5
|
+
placement?: 'page' | 'box';
|
|
6
|
+
textStyle?: ExtendedCSSProperties;
|
|
7
|
+
checkBoxStyle?: {
|
|
8
|
+
unchecked?: {
|
|
9
|
+
base?: ExtendedCSSProperties;
|
|
10
|
+
hover?: ExtendedCSSProperties;
|
|
11
|
+
};
|
|
12
|
+
checked?: {
|
|
13
|
+
base?: ExtendedCSSProperties;
|
|
14
|
+
hover?: ExtendedCSSProperties;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
terms: {
|
|
18
|
+
enabled?: boolean;
|
|
19
|
+
linkStyle?: ExtendedCSSProperties;
|
|
20
|
+
};
|
|
21
|
+
privacy: {
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
linkStyle?: ExtendedCSSProperties;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { CustomComponent, LoginBoxCommonTheme, LoginBoxCommonThemeOptions } from '../index';
|
|
2
2
|
import { ExtendedCSSProperties } from '../../Common';
|
|
3
|
+
import { DisclaimerOptions } from '../DisclaimerOptions';
|
|
3
4
|
interface TitleProps {
|
|
4
5
|
title: string;
|
|
5
6
|
}
|
|
6
7
|
interface MessageProps {
|
|
7
8
|
message: string;
|
|
8
9
|
}
|
|
10
|
+
export interface ActivateAccountDisclaimerOptions extends DisclaimerOptions {
|
|
11
|
+
}
|
|
9
12
|
interface ActivateAccountComponentsTheme {
|
|
10
13
|
/**
|
|
11
14
|
* Activate account page container style
|
|
@@ -43,6 +46,10 @@ interface ActivateAccountComponentsTheme {
|
|
|
43
46
|
* Direct css style for Forgot password Page message
|
|
44
47
|
*/
|
|
45
48
|
messageStyle?: ExtendedCSSProperties;
|
|
49
|
+
/**
|
|
50
|
+
* Activate terms of use in 'Activate Account'
|
|
51
|
+
*/
|
|
52
|
+
disclaimer?: ActivateAccountDisclaimerOptions;
|
|
46
53
|
}
|
|
47
54
|
export interface ActivateAccountPageThemeOptions extends LoginBoxCommonThemeOptions, ActivateAccountComponentsTheme {
|
|
48
55
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LoginBoxCommonTheme, LoginBoxCommonThemeOptions } from '../index';
|
|
2
2
|
import { ExtendedCSSProperties } from '../../Common';
|
|
3
3
|
import { CustomComponent } from '../ComponentsOptions';
|
|
4
|
+
import { DisclaimerOptions } from '../DisclaimerOptions';
|
|
4
5
|
interface TitleProps {
|
|
5
6
|
title: string;
|
|
6
7
|
}
|
|
@@ -9,29 +10,7 @@ export interface GoToLoginMessageProps {
|
|
|
9
10
|
goToLoginMessage: string;
|
|
10
11
|
goToLoginButtonText: string;
|
|
11
12
|
}
|
|
12
|
-
export interface SignUpDisclaimerOptions {
|
|
13
|
-
hasCheckbox: boolean;
|
|
14
|
-
disclaimerContainerStyle?: ExtendedCSSProperties;
|
|
15
|
-
placement?: 'page' | 'box';
|
|
16
|
-
textStyle?: ExtendedCSSProperties;
|
|
17
|
-
checkBoxStyle?: {
|
|
18
|
-
unchecked?: {
|
|
19
|
-
base?: ExtendedCSSProperties;
|
|
20
|
-
hover?: ExtendedCSSProperties;
|
|
21
|
-
};
|
|
22
|
-
checked?: {
|
|
23
|
-
base?: ExtendedCSSProperties;
|
|
24
|
-
hover?: ExtendedCSSProperties;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
terms: {
|
|
28
|
-
enabled?: boolean;
|
|
29
|
-
linkStyle?: ExtendedCSSProperties;
|
|
30
|
-
};
|
|
31
|
-
privacy: {
|
|
32
|
-
enabled?: boolean;
|
|
33
|
-
linkStyle?: ExtendedCSSProperties;
|
|
34
|
-
};
|
|
13
|
+
export interface SignUpDisclaimerOptions extends DisclaimerOptions {
|
|
35
14
|
}
|
|
36
15
|
export interface SignupPageComponentsTheme {
|
|
37
16
|
/**
|
package/index.js
CHANGED
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.10.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.10.0",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|