@asgardeo/react 0.5.29 → 0.5.31
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 +4 -3
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +3 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -193,4 +193,4 @@ export { default as getSchemas, GetSchemasConfig } from './api/getSchemas';
|
|
|
193
193
|
export { default as updateMeProfile, UpdateMeProfileConfig } from './api/updateMeProfile';
|
|
194
194
|
export { default as getMeProfile } from './api/getScim2Me';
|
|
195
195
|
export * from './api/getScim2Me';
|
|
196
|
-
export { AsgardeoRuntimeError, http, getActiveTheme } from '@asgardeo/browser';
|
|
196
|
+
export { AsgardeoRuntimeError, http, getActiveTheme, navigate } from '@asgardeo/browser';
|
package/dist/index.js
CHANGED
|
@@ -62,7 +62,8 @@ import {
|
|
|
62
62
|
extractUserClaimsFromIdToken,
|
|
63
63
|
navigate,
|
|
64
64
|
getRedirectBasedSignUpUrl,
|
|
65
|
-
Platform
|
|
65
|
+
Platform,
|
|
66
|
+
isEmpty
|
|
66
67
|
} from "@asgardeo/browser";
|
|
67
68
|
|
|
68
69
|
// src/__temp__/api.ts
|
|
@@ -740,7 +741,7 @@ var AsgardeoReactClient = class extends AsgardeoBrowserClient {
|
|
|
740
741
|
const arg1 = args[0];
|
|
741
742
|
const arg2 = args[1];
|
|
742
743
|
const config = await this.asgardeo.getConfigData();
|
|
743
|
-
if (config.platform === Platform.AsgardeoV2) {
|
|
744
|
+
if (config.platform === Platform.AsgardeoV2 && typeof arg1 === "object" && !isEmpty(arg1) && ("flowId" in arg1 || "applicationId" in arg1)) {
|
|
744
745
|
const sessionDataKey = new URL(window.location.href).searchParams.get("sessionDataKey");
|
|
745
746
|
return executeEmbeddedSignInFlowV2({
|
|
746
747
|
payload: arg1,
|
|
@@ -1579,7 +1580,7 @@ var AsgardeoProvider = ({
|
|
|
1579
1580
|
_baseUrl2 = `${(await asgardeo.getConfiguration()).baseUrl}/o`;
|
|
1580
1581
|
setBaseUrl(_baseUrl2);
|
|
1581
1582
|
}
|
|
1582
|
-
if (config.platform
|
|
1583
|
+
if (config.platform === Platform2.AsgardeoV2) {
|
|
1583
1584
|
setUser(extractUserClaimsFromIdToken2(decodedToken));
|
|
1584
1585
|
} else {
|
|
1585
1586
|
try {
|
|
@@ -1643,7 +1644,7 @@ var AsgardeoProvider = ({
|
|
|
1643
1644
|
await fetchBranding();
|
|
1644
1645
|
}, [fetchBranding]);
|
|
1645
1646
|
useEffect5(() => {
|
|
1646
|
-
if (config.platform
|
|
1647
|
+
if (config.platform === Platform2.AsgardeoV2) {
|
|
1647
1648
|
return;
|
|
1648
1649
|
}
|
|
1649
1650
|
const shouldFetchBranding = preferences?.theme?.inheritFromBranding !== false;
|
|
@@ -13182,7 +13183,7 @@ var OrganizationSwitcher = ({
|
|
|
13182
13183
|
var OrganizationSwitcher_default = OrganizationSwitcher;
|
|
13183
13184
|
|
|
13184
13185
|
// src/index.ts
|
|
13185
|
-
import { AsgardeoRuntimeError as AsgardeoRuntimeError9, http, getActiveTheme as getActiveTheme2 } from "@asgardeo/browser";
|
|
13186
|
+
import { AsgardeoRuntimeError as AsgardeoRuntimeError9, http, getActiveTheme as getActiveTheme2, navigate as navigate4 } from "@asgardeo/browser";
|
|
13186
13187
|
export {
|
|
13187
13188
|
Alert_default as Alert,
|
|
13188
13189
|
AlertDescription,
|
|
@@ -13288,6 +13289,7 @@ export {
|
|
|
13288
13289
|
getOrganization_default as getOrganization,
|
|
13289
13290
|
getSchemas_default as getSchemas,
|
|
13290
13291
|
http,
|
|
13292
|
+
navigate4 as navigate,
|
|
13291
13293
|
updateMeProfile_default as updateMeProfile,
|
|
13292
13294
|
updateOrganization_default as updateOrganization,
|
|
13293
13295
|
useAlertVariant,
|