@rachelallyson/hero-hook-form 2.1.3 → 2.2.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.
package/CHANGELOG.md CHANGED
@@ -2,7 +2,41 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- ## [2.1.3] - 2025-01-28
5
+ ## [2.2.0] - 2026-01-13
6
+
7
+ ### Added
8
+
9
+ - **Content Field Type**: New `content` field type for adding headers, questions, or custom content between form fields
10
+ - Supports simple title/description rendering
11
+ - Supports custom render functions for full control
12
+ - Works seamlessly with all form types (ZodForm, ConfigurableForm, ServerActionForm)
13
+ - Does not require a schema field name, making it perfect for non-form content
14
+ - Added `FormFieldHelpers.content()` helper function
15
+ - Added `BasicFormBuilder.content()` builder method
16
+ - Comprehensive test coverage with 7 passing tests
17
+
18
+ ### Example Usage
19
+
20
+ ```tsx
21
+ // Simple header
22
+ {
23
+ type: "content",
24
+ title: "Personal Information",
25
+ description: "Please provide your details below."
26
+ }
27
+
28
+ // Using helper
29
+ FormFieldHelpers.content("Section Header", "Description text")
30
+
31
+ // Using builder
32
+ createBasicFormBuilder()
33
+ .input("name", "Name")
34
+ .content("Section Header")
35
+ .input("email", "Email")
36
+ .build()
37
+ ```
38
+
39
+ ## [2.1.3] - 2026-01-13
6
40
 
7
41
  ### Fixed
8
42
 
@@ -21,7 +55,7 @@ All notable changes to this project will be documented in this file.
21
55
  - Tests successful form submission
22
56
  - Tests validation error handling with submission helpers
23
57
 
24
- ## [2.1.2] - 2025-01-28
58
+ ## [2.1.2] - 2026-01-13
25
59
 
26
60
  ### Added
27
61
 
@@ -34,14 +68,14 @@ All notable changes to this project will be documented in this file.
34
68
  - **ZodForm FormProvider**: Wrapped ZodForm component with FormProvider to ensure form context is properly available
35
69
  - Fixes issues with form context not being accessible in nested components
36
70
 
37
- ## [2.1.1] - 2025-01-28
71
+ ## [2.1.1] - 2026-01-12
38
72
 
39
73
  ### Fixed
40
74
 
41
75
  - **ServerActionForm imports**: Use `#ui` alias for HeroUI imports to support both `@heroui/react` and individual package imports
42
76
  - Ensures compatibility across different HeroUI installation patterns
43
77
 
44
- ## [2.1.0] - 2025-01-28
78
+ ## [2.1.0] - 2026-01-12
45
79
 
46
80
  ### Added
47
81