@iblai/web-utils 1.1.4 → 1.1.6
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 +2 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -811,7 +811,7 @@ declare const isWeb: () => boolean;
|
|
|
811
811
|
declare const isNode: () => any;
|
|
812
812
|
declare const isExpo: () => any;
|
|
813
813
|
declare const isTauri: () => boolean;
|
|
814
|
-
declare const getPlatform: () => "
|
|
814
|
+
declare const getPlatform: () => "web" | "react-native" | "node" | "unknown";
|
|
815
815
|
declare const safeRequire: (moduleName: string) => any;
|
|
816
816
|
declare const getNextNavigation: () => any;
|
|
817
817
|
|
|
@@ -1506,7 +1506,7 @@ type Props$2 = {
|
|
|
1506
1506
|
* 4. Handles redirects to auth SPA when needed
|
|
1507
1507
|
* 5. Manages public route access state
|
|
1508
1508
|
*/
|
|
1509
|
-
declare function AuthProvider({ children, fallback, middleware, onAuthSuccess, onAuthFailure, redirectToAuthSpa, hasNonExpiredAuthToken, username, pathname, skipAuthCheck, 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> |
|
|
1509
|
+
declare function AuthProvider({ children, fallback, middleware, onAuthSuccess, onAuthFailure, redirectToAuthSpa, hasNonExpiredAuthToken, username, pathname, skipAuthCheck, storageService, token, enableStorageSync, skip, }: Props$2): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | 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> | null | undefined;
|
|
1510
1510
|
|
|
1511
1511
|
/**
|
|
1512
1512
|
* Props for the MentorProvider component
|
|
@@ -1539,7 +1539,7 @@ type Props$1 = {
|
|
|
1539
1539
|
* 3. Manages redirection based on mentor availability
|
|
1540
1540
|
* 4. Integrates with tenant context for access control
|
|
1541
1541
|
*/
|
|
1542
|
-
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> |
|
|
1542
|
+
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 | react_jsx_runtime.JSX.Element | 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> | null | undefined;
|
|
1543
1543
|
|
|
1544
1544
|
/**
|
|
1545
1545
|
* Type definition for the tenant context
|
|
@@ -1601,7 +1601,7 @@ type Props = {
|
|
|
1601
1601
|
* 4. Handles tenant-specific domain redirects
|
|
1602
1602
|
* 5. Maintains tenant access state
|
|
1603
1603
|
*/
|
|
1604
|
-
declare function TenantProvider({ children, fallback, onAuthSuccess, onAuthFailure, currentTenant, requestedTenant, saveCurrentTenant, saveUserTenants, handleTenantSwitch, saveVisitingTenant, removeVisitingTenant, saveUserTokens, saveTenant, onAutoJoinUserToTenant, redirectToAuthSpa, username, isIframed, setUseMentorProvider, skip, onLoadPlatformPermissions, }: 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> |
|
|
1604
|
+
declare function TenantProvider({ children, fallback, onAuthSuccess, onAuthFailure, currentTenant, requestedTenant, saveCurrentTenant, saveUserTenants, handleTenantSwitch, saveVisitingTenant, removeVisitingTenant, saveUserTokens, saveTenant, onAutoJoinUserToTenant, redirectToAuthSpa, username, isIframed, setUseMentorProvider, skip, onLoadPlatformPermissions, }: Props): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | 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> | null | undefined;
|
|
1605
1605
|
|
|
1606
1606
|
/**
|
|
1607
1607
|
* Chat area size constants
|
package/dist/index.esm.js
CHANGED
|
@@ -1199,16 +1199,10 @@ const getPlatform = () => {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
return "unknown";
|
|
1201
1201
|
};
|
|
1202
|
-
// Safe access to platform-specific APIs
|
|
1203
1202
|
const safeRequire = (moduleName) => {
|
|
1204
1203
|
try {
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
// webpackIgnore prevents webpack from creating a context module for this dynamic require,
|
|
1208
|
-
// avoiding "Critical dependency" warnings and RSC bundle corruption.
|
|
1209
|
-
// The module is resolved at runtime by Node.js (server) or webpack's runtime (client).
|
|
1210
|
-
// eslint-disable-next-line no-undef, @typescript-eslint/no-require-imports
|
|
1211
|
-
return require(/* webpackIgnore: true */ moduleName);
|
|
1204
|
+
if (typeof __non_webpack_require__ !== "undefined") {
|
|
1205
|
+
return __non_webpack_require__(moduleName);
|
|
1212
1206
|
}
|
|
1213
1207
|
}
|
|
1214
1208
|
catch (error) {
|