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