@asgardeo/react 0.5.31 → 0.5.32
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.
|
@@ -43,7 +43,11 @@ export type AsgardeoContextProps = {
|
|
|
43
43
|
* @remark This is the programmatic version of the `SignInButton` component.
|
|
44
44
|
* TODO: Fix the types.
|
|
45
45
|
*/
|
|
46
|
-
signIn: any
|
|
46
|
+
signIn: (...args: any) => Promise<any>;
|
|
47
|
+
/**
|
|
48
|
+
* Silent sign-in function to re-authenticate the user without user interaction.
|
|
49
|
+
* @remark This is the programmatic version of the `SilentSignIn` component.
|
|
50
|
+
*/
|
|
47
51
|
signInSilently: AsgardeoReactClient['signInSilently'];
|
|
48
52
|
/**
|
|
49
53
|
* Sign-out function to terminate the authentication session.
|
|
@@ -54,9 +58,8 @@ export type AsgardeoContextProps = {
|
|
|
54
58
|
/**
|
|
55
59
|
* Sign-up function to initiate the registration process.
|
|
56
60
|
* @remark This is the programmatic version of the `SignUpButton` component.
|
|
57
|
-
* FIXME: Fix the types.
|
|
58
61
|
*/
|
|
59
|
-
signUp: any
|
|
62
|
+
signUp: (...args: any[]) => Promise<any>;
|
|
60
63
|
user: any;
|
|
61
64
|
organization: Organization;
|
|
62
65
|
/**
|
package/dist/index.js
CHANGED
|
@@ -28,10 +28,10 @@ var AsgardeoContext = createContext({
|
|
|
28
28
|
isLoading: true,
|
|
29
29
|
isSignedIn: false,
|
|
30
30
|
organization: null,
|
|
31
|
-
signIn:
|
|
32
|
-
signInSilently:
|
|
33
|
-
signOut:
|
|
34
|
-
signUp:
|
|
31
|
+
signIn: () => Promise.resolve({}),
|
|
32
|
+
signInSilently: () => Promise.resolve({}),
|
|
33
|
+
signOut: () => Promise.resolve({}),
|
|
34
|
+
signUp: () => Promise.resolve({}),
|
|
35
35
|
user: null,
|
|
36
36
|
http: {
|
|
37
37
|
request: () => null,
|
|
@@ -7651,7 +7651,7 @@ var CheckboxInput = ({
|
|
|
7651
7651
|
}) => {
|
|
7652
7652
|
const config = component.config || {};
|
|
7653
7653
|
const fieldName = config["identifier"] || config["name"] || component.id;
|
|
7654
|
-
const value = formValues[fieldName] ||
|
|
7654
|
+
const value = formValues[fieldName] || false;
|
|
7655
7655
|
const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
|
|
7656
7656
|
return createField({
|
|
7657
7657
|
type: FieldType8.Checkbox,
|