@behivetech/forms.form-provider 0.1.4 → 0.1.5

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/package.json +5 -5
  2. package/docs.json +0 -57
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@behivetech/forms.form-provider",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
@@ -39,10 +39,10 @@
39
39
  "tsup": "^8.5.1",
40
40
  "typescript": "^6.0.3",
41
41
  "vitest": "^4.1.10",
42
- "@behivetech/forms.form-field": "0.3.2",
43
- "@bht-component-registry/env": "0.1.0",
44
- "@behivetech/atoms.text-field": "0.3.2",
45
- "@behivetech/atoms.button": "0.4.2"
42
+ "@behivetech/atoms.button": "0.4.3",
43
+ "@behivetech/atoms.text-field": "0.3.3",
44
+ "@behivetech/forms.form-field": "0.3.3",
45
+ "@bht-component-registry/env": "0.1.0"
46
46
  },
47
47
  "repository": {
48
48
  "type": "git",
package/docs.json DELETED
@@ -1,57 +0,0 @@
1
- {
2
- "$schema": "https://github.com/behivetech/bht-component-registry/docs.schema.json",
3
- "version": 2,
4
- "generatedAt": "2026-10-20T05:50:04.618Z",
5
- "docs": [
6
- {
7
- "displayName": "Form",
8
- "description": "Convenience wrapper for the common case: a `<form>` whose submit is wired\nto react-hook-form's `handleSubmit`, with `FormProvider` already applied\nso descendants can use `useFormContext()`. For editing UIs with no submit\nmoment (live/instant field-by-field updates), use the bare atoms +\n`FormField` instead — this component assumes a real submit action exists.",
9
- "extendsNative": true,
10
- "props": [
11
- {
12
- "name": "children",
13
- "type": "ReactNode",
14
- "required": true,
15
- "defaultValue": null,
16
- "description": "Form content, typically FormField-wrapped controls"
17
- },
18
- {
19
- "name": "methods",
20
- "type": "UseFormReturn<TFieldValues>",
21
- "required": true,
22
- "defaultValue": null,
23
- "description": "The return value of `useForm()`"
24
- },
25
- {
26
- "name": "onSubmit",
27
- "type": "SubmitHandler<TFieldValues>",
28
- "required": true,
29
- "defaultValue": null,
30
- "description": "Called with the validated values when the form is submitted"
31
- }
32
- ]
33
- },
34
- {
35
- "displayName": "FormProvider",
36
- "description": "Thin wrapper around react-hook-form's `FormProvider`. Import this (and\n`useForm`, `Controller`, etc.) from this package instead of importing\n`react-hook-form` directly anywhere else — this is the one place that\nknows about the underlying form library, so it can be swapped later\nwithout touching every consumer.",
37
- "extendsNative": false,
38
- "props": [
39
- {
40
- "name": "children",
41
- "type": "ReactNode",
42
- "required": true,
43
- "defaultValue": null,
44
- "description": "Descendants that will consume the form context via `useFormContext()`"
45
- },
46
- {
47
- "name": "methods",
48
- "type": "UseFormReturn<TFieldValues>",
49
- "required": true,
50
- "defaultValue": null,
51
- "description": "The return value of `useForm()` (re-exported from this package)"
52
- }
53
- ]
54
- }
55
- ],
56
- "functions": []
57
- }