@molecule/app-react-native 2.0.0 → 3.0.0

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 +130 -79
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-10-25T20:03:36.978Z
6
+ Generated: 2026-10-27T23:36:39.690Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-react-native
@@ -279,7 +279,7 @@ Form controller interface.
279
279
  All form providers must implement this interface.
280
280
 
281
281
  ```typescript
282
- interface FormController<T extends Record<string, unknown> = Record<string, unknown>> {
282
+ interface FormController<T extends FormValuesConstraint<T> = Record<string, unknown>> {
283
283
  /**
284
284
  * Gets the current form state.
285
285
  */
@@ -387,7 +387,7 @@ interface FormController<T extends Record<string, unknown> = Record<string, unkn
387
387
  Form creation options.
388
388
 
389
389
  ```typescript
390
- interface FormOptions<T extends Record<string, unknown>> {
390
+ interface FormOptions<T extends FormValuesConstraint<T>> {
391
391
  /**
392
392
  * Default values, captured as the form's clean baseline when the controller
393
393
  * is created. Mutating this object afterwards does not change the baseline.
@@ -839,7 +839,7 @@ provider (`createForm` from `@molecule/app-forms`), which uses the built-in
839
839
  native provider until the app bonds its own.
840
840
 
841
841
  ```typescript
842
- interface UseFormOptions<T extends Record<string, unknown>> extends FormOptions<T> {
842
+ interface UseFormOptions<T extends FormValuesConstraint<T>> extends FormOptions<T> {
843
843
  /**
844
844
  * Explicit form factory for this one form. Defaults to the bonded forms
845
845
  * provider; pass it only to pin a specific provider instance.
@@ -853,7 +853,7 @@ interface UseFormOptions<T extends Record<string, unknown>> extends FormOptions<
853
853
  Result of useForm hook.
854
854
 
855
855
  ```typescript
856
- interface UseFormResult<T extends Record<string, unknown>> {
856
+ interface UseFormResult<T extends FormValuesConstraint<T>> {
857
857
  formState: FormState<T>
858
858
  isValid: boolean
859
859
  isDirty: boolean
@@ -1002,8 +1002,11 @@ interface UsePlatformResult {
1002
1002
 
1003
1003
  Configuration for a profile form; transport stays in the auth bond.
1004
1004
 
1005
+ `TValues` is the page's own controlled-values type, named once as an
1006
+ `interface` or a type alias — both satisfy the shared form-values constraint.
1007
+
1005
1008
  ```typescript
1006
- interface UseProfileFormOptions<TUser, TValues extends Record<string, unknown>> extends Omit<
1009
+ interface UseProfileFormOptions<TUser, TValues extends FormValuesConstraint<TValues>> extends Omit<
1007
1010
  UseFormOptions<TValues>,
1008
1011
  'defaultValues'
1009
1012
  > {
@@ -1038,7 +1041,7 @@ interface UseProfileFormOptions<TUser, TValues extends Record<string, unknown>>
1038
1041
  Controlled profile form state and native form bindings.
1039
1042
 
1040
1043
  ```typescript
1041
- interface UseProfileFormResult<TUser, TValues extends Record<string, unknown>> extends Omit<
1044
+ interface UseProfileFormResult<TUser, TValues extends FormValuesConstraint<TValues>> extends Omit<
1042
1045
  UseFormResult<TValues>,
1043
1046
  'register' | 'handleSubmit' | 'reset'
1044
1047
  > {
@@ -1167,6 +1170,43 @@ interface UseStorageValueResult<T> {
1167
1170
  }
1168
1171
  ```
1169
1172
 
1173
+ #### `UseStoragePreferenceOptions`
1174
+
1175
+ Options for {@link useStoragePreference}.
1176
+
1177
+ ```typescript
1178
+ interface UseStoragePreferenceOptions<T> {
1179
+ /**
1180
+ * Value reported until the provider supplies one. It is NEVER written to
1181
+ * storage: a default is a display fallback, not a decision the user made.
1182
+ */
1183
+ defaultValue?: T
1184
+ }
1185
+ ```
1186
+
1187
+ #### `UseStoragePreferenceResult`
1188
+
1189
+ Result of {@link useStoragePreference}.
1190
+
1191
+ ```typescript
1192
+ interface UseStoragePreferenceResult<T> {
1193
+ /** The persisted value, or `defaultValue` while none is known. */
1194
+ value: T | undefined
1195
+ /**
1196
+ * Writes the value through the preference store: subscribers update
1197
+ * immediately and persistence is best-effort.
1198
+ */
1199
+ setValue: (next: T | ((previous: T | undefined) => T)) => void
1200
+ /** Removes the key through the preference store. */
1201
+ removeValue: () => void
1202
+ /**
1203
+ * `true` once the store has a definite answer — the synchronous snapshot on
1204
+ * a synchronous provider, or the hydration result on an asynchronous one.
1205
+ */
1206
+ ready: boolean
1207
+ }
1208
+ ```
1209
+
1170
1210
  #### `UseVerifyPaymentReturnOptions`
1171
1211
 
1172
1212
  Options for {@link useVerifyPaymentReturn}.
@@ -1959,7 +1999,10 @@ Pass the same generics the client was created with —
1959
1999
  the app's own fields.
1960
2000
 
1961
2001
  ```typescript
1962
- function useAuthClient(): AuthClient<T, TRegister>
2002
+ function useAuthClient<
2003
+ T = unknown,
2004
+ TRegister extends RegisterExtraShape<TRegister> = Record<never, never>,
2005
+ >(): AuthClient<T, TRegister>
1963
2006
  ```
1964
2007
 
1965
2008
  **Returns:** The auth client from context
@@ -1989,7 +2032,10 @@ call (and `requestBody` receives the same payload). Without it, `register`
1989
2032
  accepts only the base fields.
1990
2033
 
1991
2034
  ```typescript
1992
- function useAuth(options?: UseAuthOptions): UseAuthResult<T, TRegister>
2035
+ function useAuth<
2036
+ T = unknown,
2037
+ TRegister extends RegisterExtraShape<TRegister> = Record<never, never>,
2038
+ >(options?: UseAuthOptions): UseAuthResult<T, TRegister>
1993
2039
  ```
1994
2040
 
1995
2041
  - `options` — Hook options
@@ -2001,7 +2047,7 @@ function useAuth(options?: UseAuthOptions): UseAuthResult<T, TRegister>
2001
2047
  Hook to get just the authenticated user.
2002
2048
 
2003
2049
  ```typescript
2004
- function useUser(): T | null
2050
+ function useUser<T = unknown>(): T | null
2005
2051
  ```
2006
2052
 
2007
2053
  **Returns:** The authenticated user or null
@@ -2163,7 +2209,9 @@ wires a form library once (`setProvider` from `@molecule/app-forms`) and
2163
2209
  every form picks it up. Passing `createForm` overrides that for one form.
2164
2210
 
2165
2211
  ```typescript
2166
- function useForm(options?: UseFormOptions<T>): UseFormResult<T>
2212
+ function useForm<T extends FormValuesConstraint<T> = Record<string, unknown>>(
2213
+ options?: UseFormOptions<T>,
2214
+ ): UseFormResult<T>
2167
2215
  ```
2168
2216
 
2169
2217
  - `options` — Form options. `defaultValues`, `mode` and the form-level `validate` are forwarded to the provider; omit the options entirely for a form whose fields are registered with their own defaults.
@@ -2175,7 +2223,10 @@ function useForm(options?: UseFormOptions<T>): UseFormResult<T>
2175
2223
  Hook to watch a specific field value.
2176
2224
 
2177
2225
  ```typescript
2178
- function useWatch(form: FormController<T>, name: K): T[K]
2226
+ function useWatch<T extends FormValuesConstraint<T>, K extends keyof T>(
2227
+ form: FormController<T>,
2228
+ name: K,
2229
+ ): T[K]
2179
2230
  ```
2180
2231
 
2181
2232
  - `form` — Form controller
@@ -2188,7 +2239,10 @@ function useWatch(form: FormController<T>, name: K): T[K]
2188
2239
  Hook to get field-level state.
2189
2240
 
2190
2241
  ```typescript
2191
- function useFieldState(form: FormController<T>, name: keyof T): FieldState<T[keyof T]>
2242
+ function useFieldState<T extends FormValuesConstraint<T>>(
2243
+ form: FormController<T>,
2244
+ name: keyof T,
2245
+ ): FieldState<T[keyof T]>
2192
2246
  ```
2193
2247
 
2194
2248
  - `form` — Form controller
@@ -2220,7 +2274,7 @@ the client does replace `execute` (it selects a different request) and
2220
2274
  re-runs such an effect.
2221
2275
 
2222
2276
  ```typescript
2223
- function useHttp(
2277
+ function useHttp<T>(
2224
2278
  method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE',
2225
2279
  url: string,
2226
2280
  options?: UseHttpOptions<T>,
@@ -2238,7 +2292,7 @@ function useHttp(
2238
2292
  Hook for GET requests.
2239
2293
 
2240
2294
  ```typescript
2241
- function useGet(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2295
+ function useGet<T>(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2242
2296
  ```
2243
2297
 
2244
2298
  - `url` — Request URL to fetch from.
@@ -2251,7 +2305,7 @@ function useGet(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2251
2305
  Hook for POST requests.
2252
2306
 
2253
2307
  ```typescript
2254
- function usePost(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2308
+ function usePost<T>(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2255
2309
  ```
2256
2310
 
2257
2311
  - `url` — Request URL to post to.
@@ -2264,7 +2318,7 @@ function usePost(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2264
2318
  Hook for PUT requests.
2265
2319
 
2266
2320
  ```typescript
2267
- function usePut(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2321
+ function usePut<T>(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2268
2322
  ```
2269
2323
 
2270
2324
  - `url` — Request URL to send the PUT request to.
@@ -2277,7 +2331,7 @@ function usePut(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2277
2331
  Hook for PATCH requests.
2278
2332
 
2279
2333
  ```typescript
2280
- function usePatch(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2334
+ function usePatch<T>(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2281
2335
  ```
2282
2336
 
2283
2337
  - `url` — Request URL to send the PATCH request to.
@@ -2290,7 +2344,7 @@ function usePatch(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2290
2344
  Hook for DELETE requests.
2291
2345
 
2292
2346
  ```typescript
2293
- function useDelete(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2347
+ function useDelete<T>(url: string, options?: UseHttpOptions<T>): UseHttpResult<T>
2294
2348
  ```
2295
2349
 
2296
2350
  - `url` — Request URL of the resource to delete.
@@ -2353,7 +2407,7 @@ no separate `useRegister` hook. Use `usePromise(register)` when the form
2353
2407
  needs the same pending/error tracking as this login hook.
2354
2408
 
2355
2409
  ```typescript
2356
- function useLogin(): UseLoginReturn<T>
2410
+ function useLogin<T = unknown>(): UseLoginReturn<T>
2357
2411
  ```
2358
2412
 
2359
2413
  **Returns:** Login state and action
@@ -2448,7 +2502,7 @@ the clean baseline; edits made while saving remain dirty. No request is made
2448
2502
  for a patch with no fields. A failed request retains the edits and shared user.
2449
2503
 
2450
2504
  ```typescript
2451
- function useProfileForm(
2505
+ function useProfileForm<TUser, TValues extends FormValuesConstraint<TValues>>(
2452
2506
  options: UseProfileFormOptions<TUser, TValues>,
2453
2507
  ): UseProfileFormResult<TUser, TValues>
2454
2508
  ```
@@ -2506,7 +2560,7 @@ function useLocation(): RouteLocation
2506
2560
  Hook to get route parameters.
2507
2561
 
2508
2562
  ```typescript
2509
- function useParams(): T
2563
+ function useParams<T extends Record<string, string> = RouteParams>(): T
2510
2564
  ```
2511
2565
 
2512
2566
  **Returns:** The current route parameters
@@ -2516,7 +2570,7 @@ function useParams(): T
2516
2570
  Hook to get query parameters.
2517
2571
 
2518
2572
  ```typescript
2519
- function useQuery(): T
2573
+ function useQuery<T extends QueryParams = QueryParams>(): T
2520
2574
  ```
2521
2575
 
2522
2576
  **Returns:** The current query parameters
@@ -2549,7 +2603,10 @@ function useIsActive(path: string, exact?: boolean): boolean
2549
2603
  Hook for user registration with async state tracking.
2550
2604
 
2551
2605
  ```typescript
2552
- function useSignup(): UseSignupReturn<T, TRegister>
2606
+ function useSignup<
2607
+ T = unknown,
2608
+ TRegister extends RegisterExtraShape<TRegister> = Record<never, never>,
2609
+ >(): UseSignupReturn<T, TRegister>
2553
2610
  ```
2554
2611
 
2555
2612
  **Returns:** Signup state and action
@@ -2569,7 +2626,10 @@ function useStorageProvider(): StorageProvider
2569
2626
  Hook to manage a single storage value with React state sync.
2570
2627
 
2571
2628
  ```typescript
2572
- function useStorageValue(key: string, options?: UseStorageValueOptions<T>): UseStorageValueResult<T>
2629
+ function useStorageValue<T>(
2630
+ key: string,
2631
+ options?: UseStorageValueOptions<T>,
2632
+ ): UseStorageValueResult<T>
2573
2633
  ```
2574
2634
 
2575
2635
  - `key` — Storage key
@@ -2577,6 +2637,33 @@ function useStorageValue(key: string, options?: UseStorageValueOptions<T>): UseS
2577
2637
 
2578
2638
  **Returns:** Storage value state (value, loading, error) and mutators (setValue, removeValue).
2579
2639
 
2640
+ #### `useStoragePreference(key, options)`
2641
+
2642
+ Subscribes React state to ONE persisted preference.
2643
+
2644
+ This is the component-side half of `getPreferenceStore()`: a render-time value
2645
+ is available immediately when the bonded provider can answer synchronously,
2646
+ and an asynchronous provider's hydration CONVERGES onto the same component
2647
+ without a remount. Ordering is the store's: a read that started before a
2648
+ newer write, remove or external change is discarded, so a slow hydration
2649
+ never overwrites an edit the user already made.
2650
+
2651
+ Pass `null` for `key` while the real key is unknown (no project selected
2652
+ yet): the hook then behaves as local state around `defaultValue` and persists
2653
+ nothing.
2654
+
2655
+ ```typescript
2656
+ function useStoragePreference<T = unknown>(
2657
+ key: string | null | undefined,
2658
+ options?: UseStoragePreferenceOptions<T>,
2659
+ ): UseStoragePreferenceResult<T>
2660
+ ```
2661
+
2662
+ - `key` — The storage key, or `null` when there is nothing to persist.
2663
+ - `options` — `defaultValue`, reported until the provider supplies one.
2664
+
2665
+ **Returns:** The current value, its mutators, and whether it is definite yet.
2666
+
2580
2667
  #### `useStorage()`
2581
2668
 
2582
2669
  Hook for simple storage operations without React state sync.
@@ -2621,7 +2708,7 @@ the state context. A store minted outside the `state` bond — the direct
2621
2708
  therefore as valid here as one `@molecule/app-state`'s `createStore()` made.
2622
2709
 
2623
2710
  ```typescript
2624
- function useStore(store: Store<T>, options?: UseStoreOptions<T, S>): S
2711
+ function useStore<T, S = T>(store: Store<T>, options?: UseStoreOptions<T, S>): S
2625
2712
  ```
2626
2713
 
2627
2714
  - `store` — The store to subscribe to
@@ -2634,7 +2721,7 @@ function useStore(store: Store<T>, options?: UseStoreOptions<T, S>): S
2634
2721
  Hook to get the store's setState function.
2635
2722
 
2636
2723
  ```typescript
2637
- function useSetStore(store: Store<T>): (partial: Partial<T> | ((state: T) => Partial<T>)) => void
2724
+ function useSetStore<T>(store: Store<T>): Store<T>['setState']
2638
2725
  ```
2639
2726
 
2640
2727
  - `store` — The store to get setState from
@@ -2646,7 +2733,7 @@ function useSetStore(store: Store<T>): (partial: Partial<T> | ((state: T) => Par
2646
2733
  Hook to create a bound action for a store.
2647
2734
 
2648
2735
  ```typescript
2649
- function useStoreAction(
2736
+ function useStoreAction<T, Args extends unknown[], R>(
2650
2737
  store: Store<T>,
2651
2738
  action: (setState: Store<T>['setState'], getState: Store<T>['getState']) => (...args: Args) => R,
2652
2739
  ): (...args: Args) => R
@@ -2702,7 +2789,7 @@ function useThemeMode(): 'light' | 'dark'
2702
2789
  Hook to get theme colors.
2703
2790
 
2704
2791
  ```typescript
2705
- function useThemeColors(): ThemeColors
2792
+ function useThemeColors(): Theme['colors']
2706
2793
  ```
2707
2794
 
2708
2795
  **Returns:** The current theme colors
@@ -2863,10 +2950,7 @@ function useWorkspace(): UseWorkspaceResult
2863
2950
  Provider for state management.
2864
2951
 
2865
2952
  ```typescript
2866
- function StateProvider({
2867
- provider,
2868
- children,
2869
- }: StateProviderProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>
2953
+ function StateProvider({ provider, children }: StateProviderProps): React.ReactElement
2870
2954
  ```
2871
2955
 
2872
2956
  - `props` — Component props (see {@link StateProviderProps}).
@@ -2878,10 +2962,7 @@ function StateProvider({
2878
2962
  Provider for authentication.
2879
2963
 
2880
2964
  ```typescript
2881
- function AuthProvider({
2882
- client,
2883
- children,
2884
- }: AuthProviderProps<T>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>
2965
+ function AuthProvider<T = unknown>({ client, children }: AuthProviderProps<T>): React.ReactElement
2885
2966
  ```
2886
2967
 
2887
2968
  - `props` — Component props (see {@link AuthProviderProps}).
@@ -2893,10 +2974,7 @@ function AuthProvider({
2893
2974
  Provider for theming.
2894
2975
 
2895
2976
  ```typescript
2896
- function ThemeProvider({
2897
- provider,
2898
- children,
2899
- }: ThemeProviderProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>
2977
+ function ThemeProvider({ provider, children }: ThemeProviderProps): React.ReactElement
2900
2978
  ```
2901
2979
 
2902
2980
  - `props` — Component props (see {@link ThemeProviderProps}).
@@ -2908,10 +2986,7 @@ function ThemeProvider({
2908
2986
  Provider for routing.
2909
2987
 
2910
2988
  ```typescript
2911
- function RouterProvider({
2912
- router,
2913
- children,
2914
- }: RouterProviderProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>
2989
+ function RouterProvider({ router, children }: RouterProviderProps): React.ReactElement
2915
2990
  ```
2916
2991
 
2917
2992
  - `props` — Component props (see {@link RouterProviderProps}).
@@ -2923,10 +2998,7 @@ function RouterProvider({
2923
2998
  Provider for internationalization.
2924
2999
 
2925
3000
  ```typescript
2926
- function I18nProvider({
2927
- provider,
2928
- children,
2929
- }: I18nProviderProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>
3001
+ function I18nProvider({ provider, children }: I18nProviderProps): React.ReactElement
2930
3002
  ```
2931
3003
 
2932
3004
  - `props` — Component props (see {@link I18nProviderProps}).
@@ -2938,10 +3010,7 @@ function I18nProvider({
2938
3010
  Provider for HTTP client.
2939
3011
 
2940
3012
  ```typescript
2941
- function HttpProvider({
2942
- client,
2943
- children,
2944
- }: HttpProviderProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>
3013
+ function HttpProvider({ client, children }: HttpProviderProps): React.ReactElement
2945
3014
  ```
2946
3015
 
2947
3016
  - `props` — Component props (see {@link HttpProviderProps}).
@@ -2953,10 +3022,7 @@ function HttpProvider({
2953
3022
  Provider for storage.
2954
3023
 
2955
3024
  ```typescript
2956
- function StorageProvider({
2957
- provider,
2958
- children,
2959
- }: StorageProviderProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>
3025
+ function StorageProvider({ provider, children }: StorageProviderProps): React.ReactElement
2960
3026
  ```
2961
3027
 
2962
3028
  - `props` — Component props (see {@link StorageProviderProps}).
@@ -2968,10 +3034,7 @@ function StorageProvider({
2968
3034
  Provider for logging.
2969
3035
 
2970
3036
  ```typescript
2971
- function LoggerProvider({
2972
- provider,
2973
- children,
2974
- }: LoggerProviderProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>
3037
+ function LoggerProvider({ provider, children }: LoggerProviderProps): React.ReactElement
2975
3038
  ```
2976
3039
 
2977
3040
  - `props` — Component props (see {@link LoggerProviderProps}).
@@ -2983,10 +3046,7 @@ function LoggerProvider({
2983
3046
  Provider for AI chat.
2984
3047
 
2985
3048
  ```typescript
2986
- function ChatProvider({
2987
- provider,
2988
- children,
2989
- }: ChatProviderProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>
3049
+ function ChatProvider({ provider, children }: ChatProviderProps): React.ReactElement
2990
3050
  ```
2991
3051
 
2992
3052
  - `props` — Component props (see {@link ChatProviderProps}).
@@ -2998,10 +3058,7 @@ function ChatProvider({
2998
3058
  Provider for IDE workspace.
2999
3059
 
3000
3060
  ```typescript
3001
- function WorkspaceProvider({
3002
- provider,
3003
- children,
3004
- }: WorkspaceProviderProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>
3061
+ function WorkspaceProvider({ provider, children }: WorkspaceProviderProps): React.ReactElement
3005
3062
  ```
3006
3063
 
3007
3064
  - `props` — Component props (see {@link WorkspaceProviderProps}).
@@ -3013,10 +3070,7 @@ function WorkspaceProvider({
3013
3070
  Provider for code editor.
3014
3071
 
3015
3072
  ```typescript
3016
- function EditorProvider({
3017
- provider,
3018
- children,
3019
- }: EditorProviderProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>
3073
+ function EditorProvider({ provider, children }: EditorProviderProps): React.ReactElement
3020
3074
  ```
3021
3075
 
3022
3076
  - `props` — Component props (see {@link EditorProviderProps}).
@@ -3028,10 +3082,7 @@ function EditorProvider({
3028
3082
  Provider for live preview.
3029
3083
 
3030
3084
  ```typescript
3031
- function PreviewProvider({
3032
- provider,
3033
- children,
3034
- }: PreviewProviderProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>
3085
+ function PreviewProvider({ provider, children }: PreviewProviderProps): React.ReactElement
3035
3086
  ```
3036
3087
 
3037
3088
  - `props` — Component props (see {@link PreviewProviderProps}).
@@ -3063,7 +3114,7 @@ function MoleculeProvider({
3063
3114
  workspace,
3064
3115
  editor,
3065
3116
  preview,
3066
- }: MoleculeProviderProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>
3117
+ }: MoleculeProviderProps): React.ReactElement
3067
3118
  ```
3068
3119
 
3069
3120
  - `props` — Component props (see {@link MoleculeProviderProps}) — each service is optional, and ONLY the services passed are provided to the tree.
@@ -3231,7 +3282,7 @@ Peer dependencies:
3231
3282
 
3232
3283
  - `@molecule/app-keyboard` ^1.0.1
3233
3284
  - `@molecule/app-lifecycle` ^1.0.1
3234
- - `@molecule/app-react` ^2.0.0
3285
+ - `@molecule/app-react` ^3.0.0
3235
3286
  - `react` ^18.0.0 || ^19.0.0
3236
3287
  - `react-native` >=0.72.0
3237
3288
  - `react-native-safe-area-context` >=4.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-react-native",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "React Native framework bindings for molecule.dev",
5
5
  "homepage": "https://www.molecule.dev/packages/app-react-native",
6
6
  "type": "module",
@@ -33,7 +33,7 @@
33
33
  "directory": "packages/app/frameworks/react-native"
34
34
  },
35
35
  "devDependencies": {
36
- "@molecule/app-react": "2.0.0",
36
+ "@molecule/app-react": "3.0.0",
37
37
  "@types/node": "26.6.5",
38
38
  "react": "19.3.1",
39
39
  "typescript": "6.0.3",
@@ -42,7 +42,7 @@
42
42
  "peerDependencies": {
43
43
  "@molecule/app-keyboard": "^1.0.1",
44
44
  "@molecule/app-lifecycle": "^1.0.1",
45
- "@molecule/app-react": "^2.0.0",
45
+ "@molecule/app-react": "^3.0.0",
46
46
  "react": "^18.0.0 || ^19.0.0",
47
47
  "react-native": ">=0.72.0",
48
48
  "react-native-safe-area-context": ">=4.0.0"