@asgardeo/react 0.5.30 → 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.
package/dist/cjs/index.js
CHANGED
|
@@ -135,6 +135,7 @@ __export(index_exports, {
|
|
|
135
135
|
getOrganization: () => getOrganization_default,
|
|
136
136
|
getSchemas: () => getSchemas_default,
|
|
137
137
|
http: () => import_browser74.http,
|
|
138
|
+
navigate: () => import_browser74.navigate,
|
|
138
139
|
updateMeProfile: () => updateMeProfile_default,
|
|
139
140
|
updateOrganization: () => updateOrganization_default,
|
|
140
141
|
useAlertVariant: () => useAlertVariant,
|
|
@@ -172,10 +173,10 @@ var AsgardeoContext = (0, import_react.createContext)({
|
|
|
172
173
|
isLoading: true,
|
|
173
174
|
isSignedIn: false,
|
|
174
175
|
organization: null,
|
|
175
|
-
signIn:
|
|
176
|
-
signInSilently:
|
|
177
|
-
signOut:
|
|
178
|
-
signUp:
|
|
176
|
+
signIn: () => Promise.resolve({}),
|
|
177
|
+
signInSilently: () => Promise.resolve({}),
|
|
178
|
+
signOut: () => Promise.resolve({}),
|
|
179
|
+
signUp: () => Promise.resolve({}),
|
|
179
180
|
user: null,
|
|
180
181
|
http: {
|
|
181
182
|
request: () => null,
|
|
@@ -855,7 +856,7 @@ var AsgardeoReactClient = class extends import_browser6.AsgardeoBrowserClient {
|
|
|
855
856
|
const arg1 = args[0];
|
|
856
857
|
const arg2 = args[1];
|
|
857
858
|
const config = await this.asgardeo.getConfigData();
|
|
858
|
-
if (config.platform === import_browser6.Platform.AsgardeoV2 && typeof arg1 === "object" && !(0, import_browser6.isEmpty)(arg1)) {
|
|
859
|
+
if (config.platform === import_browser6.Platform.AsgardeoV2 && typeof arg1 === "object" && !(0, import_browser6.isEmpty)(arg1) && ("flowId" in arg1 || "applicationId" in arg1)) {
|
|
859
860
|
const sessionDataKey = new URL(window.location.href).searchParams.get("sessionDataKey");
|
|
860
861
|
return (0, import_browser6.executeEmbeddedSignInFlowV2)({
|
|
861
862
|
payload: arg1,
|
|
@@ -1686,7 +1687,7 @@ var AsgardeoProvider = ({
|
|
|
1686
1687
|
_baseUrl2 = `${(await asgardeo.getConfiguration()).baseUrl}/o`;
|
|
1687
1688
|
setBaseUrl(_baseUrl2);
|
|
1688
1689
|
}
|
|
1689
|
-
if (config.platform
|
|
1690
|
+
if (config.platform === import_browser12.Platform.AsgardeoV2) {
|
|
1690
1691
|
setUser((0, import_browser12.extractUserClaimsFromIdToken)(decodedToken));
|
|
1691
1692
|
} else {
|
|
1692
1693
|
try {
|
|
@@ -7724,7 +7725,7 @@ var CheckboxInput = ({
|
|
|
7724
7725
|
}) => {
|
|
7725
7726
|
const config = component.config || {};
|
|
7726
7727
|
const fieldName = config["identifier"] || config["name"] || component.id;
|
|
7727
|
-
const value = formValues[fieldName] ||
|
|
7728
|
+
const value = formValues[fieldName] || false;
|
|
7728
7729
|
const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
|
|
7729
7730
|
return createField({
|
|
7730
7731
|
type: import_browser51.FieldType.Checkbox,
|