@lunora/react-native 1.0.0-alpha.45 → 1.0.0-alpha.47

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 +20 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -16,8 +16,9 @@ two seams a native app needs that a browser gives you for free: a durable offlin
16
16
  queue backed by `AsyncStorage`, and credentialed requests (there is no cookie jar
17
17
  in React Native, so the session has to be attached explicitly).
18
18
 
19
- This package **re-exports the entire `@lunora/react` surface**, so you import
20
- your hooks and provider from here, and adds:
19
+ This package **re-exports the whole `@lunora/react` surface** (see
20
+ [below](#re-exported-lunorareact-surface)), so you import your hooks and
21
+ provider from here, and adds:
21
22
 
22
23
  - `createLunoraClient(options)` — a `LunoraClient` factory tuned for React
23
24
  Native.
@@ -213,6 +214,23 @@ Everything on `LunoraClientOptions` (`url`, `wsUrl`, `authBasePath`,
213
214
  An explicit `persistence`, `fetch`, or `WebSocket` always takes precedence over
214
215
  the convenience derived from `storage` / `getAuthHeaders`.
215
216
 
217
+ ### Re-exported `@lunora/react` surface
218
+
219
+ Every hook, provider, and auth gate from [`@lunora/react`](../react) is
220
+ re-exported here, wholesale — a new hook there lands on native with no edit to
221
+ this package.
222
+
223
+ The payment kit is **not** part of that surface: `CheckoutButton`,
224
+ `CustomerPortalButton`, and `useCheckout` render a DOM `<button>` and navigate
225
+ via `globalThis.location`, so they ship from the `@lunora/react/payment` subpath
226
+ rather than the `@lunora/react` root, and nothing re-exports them here. Drive
227
+ purchases through the platform's own flow (or a WebView pointed at the web
228
+ checkout URL).
229
+
230
+ `useVoiceAgent` is re-exported but its defaults are Web APIs (`getUserMedia`,
231
+ Web Audio, `WebSocket`): on native, pass your own `createMicrophone` /
232
+ `createSpeaker` implementations.
233
+
216
234
  ### `@lunora/react-native/auth`
217
235
 
218
236
  - `expoBearerToken(authClient)` — reads the better-auth Expo session token (from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/react-native",
3
- "version": "1.0.0-alpha.45",
3
+ "version": "1.0.0-alpha.47",
4
4
  "description": "React Native / Expo integration for Lunora: an AsyncStorage-backed client factory, the useQuery/useMutation/useSubscription hooks, and a one-call better-auth Expo client",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -50,8 +50,8 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@lunora/client": "1.0.0-alpha.65",
54
- "@lunora/react": "1.0.0-alpha.70"
53
+ "@lunora/client": "1.0.0-alpha.67",
54
+ "@lunora/react": "1.0.0-alpha.72"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@better-auth/expo": "^1.7.1",