@iblai/web-utils 1.1.5 → 1.1.7

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 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: () => "web" | "react-native" | "node" | "unknown";
814
+ declare const getPlatform: () => "react-native" | "web" | "node" | "unknown";
815
815
  declare const safeRequire: (moduleName: string) => any;
816
816
  declare const getNextNavigation: () => any;
817
817
 
package/dist/index.esm.js CHANGED
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import * as React from 'react';
2
3
  import React__default, { useState, useRef, useEffect, createContext, useContext, useCallback, useDebugValue, useMemo, useLayoutEffect } from 'react';
3
4
  import { useRenewSubscriptionMutation, useLazyGetUserAppsQuery, useCreateStripeCustomerPortalMutation, useLazyGetFreeUsageCountQuery, useGetTenantMetadataQuery, useLazyGetStripeContextQuery, useUpdateUserTrialStatusMutation, useLazyGetAccountBillingInfoQuery, useLazyRefreshJwtTokenQuery, useLazyGetUserTenantsQuery, useJoinTenantMutation, useLazyGetTenantMetadataQuery, useGetAppTokensMutation, useGetCustomDomainsQuery, useGetRbacPermissionsMutation, useLazyGetMentorsQuery, useLazySeedMentorsQuery, useLazyGetMentorPublicSettingsQuery, useLazyGetRecentlyAccessedMentorsQuery, useCreateSessionIdMutation, useLazyGetSessionIdQuery, useLazyGetSharedSessionIdQuery, useEditSessionMutation, useGetToolsQuery, useGetPromptsSearchQuery, useUpdateUserAccountMutation, useGetUserMetadataQuery, useUploadProfileImageMutation, useRemoveProfileImageMutation } from '@iblai/data-layer';
@@ -1204,11 +1205,6 @@ const safeRequire = (moduleName) => {
1204
1205
  if (typeof __non_webpack_require__ !== "undefined") {
1205
1206
  return __non_webpack_require__(moduleName);
1206
1207
  }
1207
- // eslint-disable-next-line no-undef, @typescript-eslint/no-require-imports
1208
- if (typeof require !== "undefined") {
1209
- // eslint-disable-next-line no-undef, @typescript-eslint/no-require-imports
1210
- return require(moduleName);
1211
- }
1212
1208
  }
1213
1209
  catch (error) {
1214
1210
  console.warn(`Failed to require ${moduleName}:`, error);