Releases: hdaklue/actioncrumb
Releases · hdaklue/actioncrumb
2.0.12
Fix: WireStep rendering and template structure - Remove wrapper div conflicts in WireStep component templates - Add error handling for failed component instantiation with fallback rendering - Update component templates to render content without outer containers - Ensure proper separation between actioncrumb container and component content - Add logging for WireStep component errors to aid debugging - Components now mount and render correctly in breadcrumb context
2.0.11
Fix: WireStep component mounting and action rendering Major improvements to WireStep functionality: - Replace static WireStep rendering with @livewire() for proper component lifecycle - Add renderStepActions() method to HasActionCrumbs trait for action-only rendering - Update actioncrumb template to use @livewire() for WireStep components - Create step-actions.blade.php template for standalone action rendering - Update documentation with new v2.0 usage patterns - Add example templates showing proper component structure - Update demo components to use new HasActionCrumbs pattern Key fixes: - mount() method now gets called properly with parameters - Component lifecycle works correctly - Actions render through renderStepActions() method - Proper separation of concerns between step rendering and action rendering Breaking changes: - WireStep components should use HasActionCrumbs instead of HasCrumbSteps - Component templates should use renderStepActions() instead of renderCrumbSteps() - Components now render as breadcrumb steps directly
2.0.10
2.0.9
Add: Complete closure support to WireStep matching Step API - Add Closure import and update property types (label, url, visible, enabled) - Update method signatures to accept Closure parameters - Enhance getter methods to handle Closure execution with proper null handling - Remove embedded Livewire component rendering from WireStep template - Fix dropdown rendering and extra empty step issues - Add 5 comprehensive tests for closure functionality WireStep now has complete API parity with Step for closure support Tests: 5 new closure tests added (118 total tests passing)
2.0.8
Fix: WireStep action rendering in Blade template - Add complete action dropdown logic for WireStep rendering in actioncrumb.blade.php - Include desktop dropdown and mobile modal action handling with Alpine.js - Add comprehensive tests for WireStep action functionality - Update documentation with WireStep action examples and bug fix details Tests: 4 new action tests added (113 total tests passing)
2.0.7
Fix: Remove problematic event listeners approach - Remove getListeners() method from HasActionCrumbs trait entirely - Update frontend templates to call handleActioncrumbAction() directly - Eliminates "Only arrays and Traversables can be unpacked" error - Cleaner, more direct approach without event dispatching - Update tests and documentation to reflect the simplified approach This fixes the root cause by avoiding array_merge on potentially non-array values
2.0.6
Update: Comprehensive documentation improvements and bug fixes - Add comprehensive testing documentation with 109+ test coverage - Document recent bug fixes including array unpacking error resolution - Update API reference with WireStep consistency improvements - Add performance testing examples and best practices - Remove problematic WireStep render method for template-based rendering - Enhance troubleshooting section with detailed fix explanations
2.0.5
Fix: array unpacking error and API consistency - Fix array unpacking error in HasActionCrumbs getListeners() method - Add missing methods to WireStep for API consistency with Step class - Add isClickable(), hasRoute(), hasUrl(), getId() methods to WireStep - Ensure safe array handling when merging parent listeners These changes resolve the "Only arrays and Traversables can be unpacked" error and provide consistent API surface between Step and WireStep classes.