@oxyhq/services
Version:
Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀
48 lines (39 loc) • 2.08 kB
JavaScript
;
/**
* OxyHQServices Main Export File - Universal (Frontend + Backend)
*
* This exports everything but uses environment detection to avoid crashes.
* - Frontend: Full UI + Core functionality
* - Backend: Core functionality only (UI components are no-ops)
*/
// Core exports
export { OxyServices, OxyAuthenticationError, OxyAuthenticationTimeoutError } from './core';
export { OXY_CLOUD_URL, oxyClient } from './core';
// React context
export { OxyContextProvider,
// Backward compatibility
useOxy } from './ui/context/OxyContext';
// Streamlined provider with built-in bottom sheet
export { default as OxyProvider } from './ui/components/OxyProvider';
// Device management
export { DeviceManager } from './utils/deviceManager';
// Language utilities
export { SUPPORTED_LANGUAGES, getLanguageMetadata, getLanguageName, getNativeLanguageName, normalizeLanguageCode } from './utils/languageUtils';
// Type exports
// UI components and hooks
export { useAuthStore } from './ui/stores/authStore';
export { useAssetStore, useAssets as useAssetsStore, useAsset, useUploadProgress, useAssetLoading, useAssetErrors, useAssetsByApp, useAssetsByEntity, useAssetUsageCount, useIsAssetLinked } from './ui/stores/assetStore';
export { useSessionSocket } from './ui/hooks/useSessionSocket';
export { useAssets, setOxyAssetInstance } from './ui/hooks/useAssets';
export { useFileDownloadUrl, setOxyFileUrlInstance } from './ui/hooks/useFileDownloadUrl';
// UI components
export { OxySignInButton } from './ui/components/OxySignInButton';
export { OxyLogo, FollowButton } from './ui';
// New consolidated utilities
export * from './utils/apiUtils';
export { ErrorCodes, createApiError, handleHttpError, validateRequiredFields, retryWithBackoff } from './utils/errorUtils';
export * from './utils/validationUtils';
export { logger, LogLevel, LogContext, logAuth, logApi, logSession, logUser, logDevice, logPayment, logPerformance } from './utils/loggerUtils';
export * from './utils/asyncUtils';
export * from './utils/hookUtils';
//# sourceMappingURL=index.js.map