@frontegg/types 6.152.0 → 6.153.0-alpha.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.
|
@@ -5,6 +5,32 @@ import { DisclaimerOptions } from '../DisclaimerOptions';
|
|
|
5
5
|
interface TitleProps {
|
|
6
6
|
title: string;
|
|
7
7
|
}
|
|
8
|
+
export declare enum SignupFields {
|
|
9
|
+
/**
|
|
10
|
+
* Phone number field wont be displayed in sign up form by default
|
|
11
|
+
* Use this field in signup fields properties to enable it
|
|
12
|
+
* Currently this field will only be externalized to signUpComplete event and will not be sent to the backend
|
|
13
|
+
*/
|
|
14
|
+
phoneNumber = "phoneNumber"
|
|
15
|
+
}
|
|
16
|
+
declare type SignupFieldsProperties = {
|
|
17
|
+
[K in SignupFields]?: {
|
|
18
|
+
/**
|
|
19
|
+
* If true the field in will be rendered in signup form
|
|
20
|
+
* Default false
|
|
21
|
+
*/
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
settings?: {
|
|
24
|
+
validation?: {
|
|
25
|
+
/**
|
|
26
|
+
* If true the field will be required in signup form
|
|
27
|
+
* Default false
|
|
28
|
+
*/
|
|
29
|
+
required?: boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
8
34
|
export interface GoToLoginMessageProps {
|
|
9
35
|
goToLogin: () => void;
|
|
10
36
|
goToLoginMessage: string;
|
|
@@ -76,6 +102,10 @@ export interface SignupPageComponentsTheme {
|
|
|
76
102
|
hideSignUpFields?: {
|
|
77
103
|
hideCompanyName?: boolean;
|
|
78
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* Control the state of the "Sign Up" fields
|
|
107
|
+
*/
|
|
108
|
+
fieldsProperties?: SignupFieldsProperties;
|
|
79
109
|
/**
|
|
80
110
|
* use this flag if you want to show password meter on the sign up form
|
|
81
111
|
*/
|
package/index.js
CHANGED
|
@@ -2,4 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
5
|
+
});
|
|
6
|
+
exports.SignupFields = void 0;
|
|
7
|
+
// interface MessageProps {
|
|
8
|
+
// message: ReactNode;
|
|
9
|
+
// }
|
|
10
|
+
let SignupFields;
|
|
11
|
+
exports.SignupFields = SignupFields;
|
|
12
|
+
(function (SignupFields) {
|
|
13
|
+
SignupFields["phoneNumber"] = "phoneNumber";
|
|
14
|
+
})(SignupFields || (exports.SignupFields = SignupFields = {}));
|
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.153.0-alpha.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.153.0-alpha.0",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|