Skip to content

Commit 94ec3a6

Browse files
committed
docs: update README and CHANGELOG for v1.0.5
- Add Flexible Field Support to features list in README - Add usage example for nova-flexible-content integration - Link to detailed flexible field documentation - Update CHANGELOG with v1.0.5 release notes - Document all new methods and technical changes
1 parent 6d4141e commit 94ec3a6

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22

33
All notable changes to `nova-dependency-container` will be documented in this file.
44

5+
## [1.0.5] - 2025-11-25
6+
7+
### Added
8+
- Added support for [whitecube/nova-flexible-content](https://github.com/whitecube/nova-flexible-content) Flexible field layouts ([#2](https://github.com/iamgerwin/nova-dependency-container/issues/2))
9+
- Added context-aware dependency resolution for nested field structures
10+
- Added automatic detection of Flexible field attribute prefixes
11+
- Added support for multiple Flexible attribute formats (double underscore and bracket notation)
12+
- Added comprehensive documentation for Flexible field support (`docs/flexible-field-support.md`)
13+
14+
### Changed
15+
- Enhanced `findFieldByAttribute()` method to support prefix-based field lookups
16+
- Enhanced `getFieldValue()` method to check multiple attribute formats
17+
- Enhanced `handleFieldChanged()` to cache both full and base attribute values
18+
19+
### Technical
20+
- Implemented `getFlexibleContextPrefix()` for detecting Flexible field context
21+
- Implemented `extractBaseAttribute()` for parsing prefixed attribute names
22+
- Implemented `getFlexibleAttributeFormats()` for generating alternative attribute patterns
23+
- Updated both `FormField.vue` and `DetailField.vue` components
24+
525
## [1.0.4] - 2025-11-25
626

727
### Fixed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ A Laravel Nova field container allowing fields to depend on other field values.
1414
- **Conditional Field Display**: Show/hide fields based on other field values
1515
- **Multiple Dependency Types**: Support for various comparison operators
1616
- **Complex Logic**: Chain multiple conditions together
17+
- **Flexible Field Support**: Works with [whitecube/nova-flexible-content](https://github.com/whitecube/nova-flexible-content) layouts
1718
- **Nova 4 & 5 Compatible**: Works with Laravel Nova 4.x and 5.x (tested with Nova 4.35.x and Nova 5.7.5)
1819
- **Laravel 12 Ready**: Full support for Laravel 11.x and 12.x
1920
- **PHP 8.3 Support**: Modern PHP features and type safety
@@ -187,6 +188,41 @@ CustomTextField::make('Special Field')
187188
->dependsOn('type', 'custom')
188189
```
189190

191+
### Using with Flexible Fields
192+
193+
`NovaDependencyContainer` works seamlessly with [whitecube/nova-flexible-content](https://github.com/whitecube/nova-flexible-content) Flexible fields:
194+
195+
```php
196+
use Iamgerwin\NovaDependencyContainer\NovaDependencyContainer;
197+
use Whitecube\NovaFlexibleContent\Flexible;
198+
use Laravel\Nova\Fields\Select;
199+
use Laravel\Nova\Fields\Text;
200+
201+
Flexible::make('Overlay Items')
202+
->addLayout('Overlay Item', 'overlay_item', [
203+
Select::make('Type')
204+
->options([
205+
'Default' => 'Default',
206+
'Location' => 'Location',
207+
'Contact Us' => 'Contact Us',
208+
]),
209+
210+
NovaDependencyContainer::make([
211+
Text::make('Recipient Email', 'recipient_email')
212+
->rules('nullable', 'email', 'max:255'),
213+
])->dependsOn('type', 'Contact Us'),
214+
215+
NovaDependencyContainer::make([
216+
Text::make('Location Name', 'location_name'),
217+
Text::make('Address', 'address'),
218+
])->dependsOn('type', 'Location'),
219+
]),
220+
```
221+
222+
The package automatically detects the Flexible field context and resolves field attributes correctly, even with dynamically prefixed attribute names.
223+
224+
For more details, see the [Flexible Field Support documentation](docs/flexible-field-support.md).
225+
190226
## Advanced Examples
191227

192228
### Multi-Step Form

0 commit comments

Comments
 (0)