cosmic-ai-genius 0.3.46 → 0.3.48

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/README.md CHANGED
@@ -1,31 +1,48 @@
1
- # cosmic-ai-genius
1
+ # Genius SDK
2
2
 
3
- Private AI SDK for internal use only.
3
+ A powerful, customizable AI chatbot SDK for React applications with voice capabilities and modern UI design.
4
4
 
5
- ## iOS Safari Z-Index Issues Fix
5
+ ## Quick Start
6
6
 
7
- When integrating with ReScript/Tailwind CSS projects, you may experience z-index positioning issues specifically on iOS Safari. This has been fixed in v0.0.1+.
7
+ ```bash
8
+ npm install @genius/sdk-js
9
+ ```
8
10
 
9
- ### Solution
11
+ ```typescript
12
+ import { GeniusChatbotProvider, GeniusToggle } from '@genius/sdk-js';
13
+ import '@genius/sdk-js/css';
10
14
 
11
- 1. **Automatic Fix**: The SDK now uses iOS Safari compatible z-index values (1500-1800 range) instead of high values (9998-10000) that don't work reliably on iOS Safari.
15
+ function App() {
16
+ return (
17
+ <GeniusChatbotProvider config={{
18
+ welcomeMessage: "Hi! How can I help you today?",
19
+ baseUrl: "http://localhost:8001"
20
+ }}>
21
+ <div className="app">
22
+ <h1>My App</h1>
23
+ <GeniusToggle />
24
+ </div>
25
+ </GeniusChatbotProvider>
26
+ );
27
+ }
28
+ ```
12
29
 
13
- 2. **Manual Override** (if needed):
14
- ```css
15
- .genius-toggle-button { z-index: 1500 !important; }
16
- .genius-chatbot-wrapper { z-index: 1600 !important; }
17
- .genius-chatbot-mobile-wrapper { z-index: 1700 !important; }
18
- .genius-voice-call-container { z-index: 1800 !important; }
19
- ```
30
+ ## Documentation
20
31
 
21
- 3. **Hardware Acceleration**: The SDK now uses `transform: translateZ(0)` and `will-change: transform` to create proper stacking contexts on iOS Safari.
32
+ For comprehensive documentation including installation guides, integration examples, troubleshooting, and advanced features, see:
22
33
 
23
- ### Z-Index Hierarchy
24
- - 1500: Toggle Button (above Tailwind's max z-index of 1250)
25
- - 1600: Main Chatbot Container
26
- - 1700: Mobile Chatbot Overlay
27
- - 1800: Voice Call Component
34
+ **[📚 Complete Documentation](./DOCUMENTATION.md)**
28
35
 
29
- ---
36
+ ## Key Features
30
37
 
31
- (c) Cosmic AI Team
38
+ - 🤖 AI-powered chatbot with streaming responses
39
+ - 🎤 Voice capabilities with microphone permissions
40
+ - 📊 Data visualization with charts and tables
41
+ - 📱 Mobile-optimized components
42
+ - 🎨 Customizable themes and positioning
43
+ - 🔧 ReScript bindings for type safety
44
+ - 🍎 iOS Safari compatibility fixes
45
+
46
+ ## License
47
+
48
+ MIT License - (c) 2024 Genius Team