@iblai/web-utils 1.6.7 → 1.6.8
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/index.d.ts +4 -4
- package/dist/index.esm.js +0 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -832,7 +832,7 @@ declare const isWeb: () => boolean;
|
|
|
832
832
|
declare const isNode: () => string | false;
|
|
833
833
|
declare const isExpo: () => any;
|
|
834
834
|
declare const isTauri: () => boolean;
|
|
835
|
-
declare const getPlatform: () => "
|
|
835
|
+
declare const getPlatform: () => "react-native" | "web" | "node" | "unknown";
|
|
836
836
|
declare const safeRequire: (moduleName: string) => any;
|
|
837
837
|
declare const getNextNavigation: () => any;
|
|
838
838
|
|
|
@@ -1575,7 +1575,7 @@ type Props$2 = {
|
|
|
1575
1575
|
* 4. Handles redirects to auth SPA when needed
|
|
1576
1576
|
* 5. Manages public route access state
|
|
1577
1577
|
*/
|
|
1578
|
-
declare function AuthProvider({ children, fallback, middleware, onAuthSuccess, onAuthFailure, redirectToAuthSpa, hasNonExpiredAuthToken, username, pathname, storageService, token, enableStorageSync, skip, }: Props$2): string | number | bigint | boolean |
|
|
1578
|
+
declare function AuthProvider({ children, fallback, middleware, onAuthSuccess, onAuthFailure, redirectToAuthSpa, hasNonExpiredAuthToken, username, pathname, storageService, token, enableStorageSync, skip, }: Props$2): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
1579
1579
|
|
|
1580
1580
|
/**
|
|
1581
1581
|
* Props for the MentorProvider component
|
|
@@ -1608,7 +1608,7 @@ type Props$1 = {
|
|
|
1608
1608
|
* 3. Manages redirection based on mentor availability
|
|
1609
1609
|
* 4. Integrates with tenant context for access control
|
|
1610
1610
|
*/
|
|
1611
|
-
declare function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redirectToAuthSpa, redirectToMentor, onLoadMentorsPermissions, redirectToNoMentorsPage, redirectToCreateMentor, username, isAdmin, mainTenantKey, requestedMentorId, handleMentorNotFound, forceDetermineMentor, onComplete, skip, }: Props$1): string | number | bigint | boolean |
|
|
1611
|
+
declare function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redirectToAuthSpa, redirectToMentor, onLoadMentorsPermissions, redirectToNoMentorsPage, redirectToCreateMentor, username, isAdmin, mainTenantKey, requestedMentorId, handleMentorNotFound, forceDetermineMentor, onComplete, skip, }: Props$1): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
1612
1612
|
|
|
1613
1613
|
/**
|
|
1614
1614
|
* Type definition for the tenant context
|
|
@@ -1672,7 +1672,7 @@ type Props = {
|
|
|
1672
1672
|
* 4. Handles tenant-specific domain redirects
|
|
1673
1673
|
* 5. Maintains tenant access state
|
|
1674
1674
|
*/
|
|
1675
|
-
declare function TenantProvider({ children, fallback, onAuthSuccess, onAuthFailure, currentTenant, requestedTenant, saveCurrentTenant, saveUserTenants, handleTenantSwitch, saveVisitingTenant, removeVisitingTenant, saveUserTokens, saveTenant, onAutoJoinUserToTenant, redirectToAuthSpa, username, isIframed, setUseMentorProvider, skip, onLoadPlatformPermissions, skipCustomDomainCheck, onTenantMismatch, }: Props): string | number | bigint | boolean |
|
|
1675
|
+
declare function TenantProvider({ children, fallback, onAuthSuccess, onAuthFailure, currentTenant, requestedTenant, saveCurrentTenant, saveUserTenants, handleTenantSwitch, saveVisitingTenant, removeVisitingTenant, saveUserTokens, saveTenant, onAutoJoinUserToTenant, redirectToAuthSpa, username, isIframed, setUseMentorProvider, skip, onLoadPlatformPermissions, skipCustomDomainCheck, onTenantMismatch, }: Props): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
1676
1676
|
|
|
1677
1677
|
/**
|
|
1678
1678
|
* Chat area size constants
|
package/dist/index.esm.js
CHANGED
|
@@ -3008,13 +3008,6 @@ function useAuthProvider({ middleware = new Map(), onAuthSuccess, onAuthFailure,
|
|
|
3008
3008
|
return;
|
|
3009
3009
|
}
|
|
3010
3010
|
const { needsRefresh, userDataOutOfSync } = await syncCookiesToLocalStorage(storageService);
|
|
3011
|
-
console.log("[AuthProvider] interval poll result", {
|
|
3012
|
-
needsRefresh,
|
|
3013
|
-
userDataOutOfSync,
|
|
3014
|
-
pathname,
|
|
3015
|
-
currentLogoutTimestamp,
|
|
3016
|
-
lastLogoutTimestampRef: lastLogoutTimestampRef.current,
|
|
3017
|
-
});
|
|
3018
3011
|
if (needsRefresh) {
|
|
3019
3012
|
console.log("[auth-redirect] Cookie sync detected changes from another SPA, refreshing page");
|
|
3020
3013
|
let cookieTenantKey;
|