@uselingu/react-native-sdk 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +26 -27
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -7,14 +7,14 @@
7
7
 
8
8
  ## Features
9
9
 
10
- **Full-Page Chat UI** - Immersive full-screen chat experience with back navigation
11
- **Message Persistence** - Conversations saved locally and restored automatically
12
- **Hybrid Architecture** - WebView UI with native API performance
13
- **Easy Integration** - Drop-in component for React Native apps
14
- **Session Management** - Automatic session handling and heartbeat
15
- **Customizable** - Full control over colors, position, and behavior
16
- **TypeScript** - Full type safety
17
- **Cross-platform** - Works on iOS and Android
10
+ - **Full-Page Chat UI** - Immersive full-screen chat experience with back navigation
11
+ - **Message Persistence** - Conversations saved locally and restored automatically
12
+ - **Hybrid Architecture** - WebView UI with native API performance
13
+ - **Easy Integration** - Drop-in component for React Native apps
14
+ - **Session Management** - Automatic session handling and heartbeat
15
+ - **Customizable** - Full control over colors, position, and behavior
16
+ - **TypeScript** - Full type safety
17
+ - **Cross-platform** - Works on iOS and Android
18
18
 
19
19
  ---
20
20
 
@@ -69,18 +69,17 @@ export default function App() {
69
69
 
70
70
  | Prop | Type | Required | Default | Description |
71
71
  |------|------|----------|---------|-------------|
72
- | `apiKey` | `string` | Yes | - | Your Lingu API key |
73
- | `baseURL` | `string` | No | `https://api.uselingu.app/api` | API base URL |
74
- | `position` | `ChatPosition` | No | `bottom-right` | FAB position (when closed) |
75
- | `theme` | `ThemeMode` | No | `light` | Theme mode |
76
- | `primaryColor` | `string` | No | `#4ade80` | Primary color |
77
- | `autoOpen` | `boolean` | No | `false` | Auto-open on mount |
78
- | `showBackButton` | `boolean` | No | `true` | Show back button in header |
79
- | `onBackPress` | `() => void` | No | - | Back button callback |
80
- | `onSessionStart` | `(sessionId: string) => void` | No | - | Session start callback |
81
- | `onSessionEnd` | `(sessionId: string) => void` | No | - | Session end callback |
82
- | `onMessageSent` | `(message: string) => void` | No | - | Message sent callback |
83
- | `onMessageReceived` | `(message: string) => void` | ❌ No | - | Message received callback |
72
+ | `apiKey` | `string` | Yes | - | Your Lingu API key |
73
+ | `position` | `ChatPosition` | No | `bottom-right` | FAB position (when closed) |
74
+ | `theme` | `ThemeMode` | No | `light` | Theme mode |
75
+ | `primaryColor` | `string` | No | `#4ade80` | Primary color |
76
+ | `autoOpen` | `boolean` | No | `false` | Auto-open on mount |
77
+ | `showBackButton` | `boolean` | No | `true` | Show back button in header |
78
+ | `onBackPress` | `() => void` | No | - | Back button callback |
79
+ | `onSessionStart` | `(sessionId: string) => void` | No | - | Session start callback |
80
+ | `onSessionEnd` | `(sessionId: string) => void` | No | - | Session end callback |
81
+ | `onMessageSent` | `(message: string) => void` | No | - | Message sent callback |
82
+ | `onMessageReceived` | `(message: string) => void` | No | - | Message received callback |
84
83
 
85
84
  ### Types
86
85
 
@@ -109,9 +108,9 @@ function App() {
109
108
  ### Permissions
110
109
 
111
110
  **No special permissions required!**
112
- - No camera access needed
113
- - No microphone access needed
114
- - Only internet and storage (automatic)
111
+ - No camera access needed
112
+ - No microphone access needed
113
+ - Only internet and storage (automatic)
115
114
 
116
115
  ---
117
116
 
@@ -267,10 +266,10 @@ MIT © Lingu Team
267
266
 
268
267
  ## Support
269
268
 
270
- - 📧 Email: support@uselingu.app
271
- - 💬 Chat: https://uselingu.app
272
- - 📚 Docs: https://docs.uselingu.app
273
- - 🐛 Issues: https://github.com/yourusername/lingu/issues
269
+ - Email: chris@uselingu.app
270
+ - Chat: https://uselingu.app
271
+ - Docs: https://docs.uselingu.app
272
+ - Issues: https://github.com/yourusername/lingu/issues
274
273
 
275
274
  ---
276
275
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uselingu/react-native-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Lingu AI Chat SDK for React Native - Hybrid approach with WebView UI and native API",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -95,4 +95,4 @@
95
95
  "node_modules/",
96
96
  "lib/"
97
97
  ]
98
- }
98
+ }