All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
[1.7.0] - 2026-10-30
Added
media:regenerate-thumbnailscommand — rebuilds existing thumbnails in place, replacing JPEG data saved under PNG, GIF, WebP and AVIF extensions. Rows are selected by the extension infile_path, and JPEG and SVG files are skipped. A row counts as failed if any configured size is missing or an exception is thrown; the run continues and exits with a failure code. Thumbnail URLs don't change, so purge any CDN or browser caches that hold the old files. (#69)- New Thumbnails documentation page. (#69)
Changed
MediaProcessingService::getImageSizes()is now public. A subclass that overrides it asprotectedmust make its override public. (#69)
Fixed
- Thumbnails now keep the source image's format —
MediaProcessingServicealways encoded thumbnails as JPEG while keeping the original extension, so PNG, GIF, WebP and AVIF uploads got mislabeled thumbnails that had lost their transparency. SVGs and other formats with no thumbnail encoder are no longer decoded, so Imagick hosts stop saving broken-thumbnail.svgfiles andimageUrl()returns the original instead. (#69)
[1.6.0] - 2026-10-22
Added
enabledoption onuseMediaPicker(React and Vue) — defers the picker's initial media and recently-used fetches untilenabledis true, then loads once. The Vue composable accepts a ref or getter.MediaModalpasses itsopenstate through automatically. (#98)
Changed
- The release workflow now queues documentation and changelog imports on the ArtisanPack UI docs site after each release. The step is skipped when the
DOCS_API_TOKENsecret is not set. (#97)
Fixed
MediaModalno longer fetches while closed —useMediaPicker(React and Vue) gains anenabledoption andMediaModalpasses itsopenstate, so a mounted-but-closed modal makes no/api/mediarequests; the media list and recently used items load the first time the modal opens, closing/reopening doesn't refetch unchanged filters, and page changes orrefresh()calls made while closed are applied on the next open.useMediaLibrarynow honoursautoFetch: falseunder React StrictMode re-runs, and the Vue composable no longer swallows the first filter change whenautoFetchis false. (#98)
[1.5.0] - 2026-09-14
Added
MediaUploadedqueueable event — newArtisanPackUI\MediaLibrary\Events\MediaUploadedLaravel event dispatched fromMediaUploadService::upload()immediately after the synchronousap.mediaLibrary.uploadedhook. Provides a queueable surface so downstream packages (e.g. Keystone's AI alt-text generator) can subscribe withShouldQueuelisteners without running work in the upload request lifecycle. Fires from every upload entry point (helper, trait, Livewire, HTTP controller) since they all funnel through the service. (#90)- Optimization status tracking on Media — persists per-item pipeline state so consumers can render a status badge (optimized / pending / failed / N/A), bytes saved, and generated formats without recomputing. New columns:
optimization_status,optimized_at,optimization_bytes_saved,optimization_original_size,optimization_formats,optimization_error.MediaProcessingService::processImage()now flipspending → optimizedon success andfailedon any pipeline exception (the exception is still surfaced).MediaResourcegains anoptimizationblock with a stable shape (null values for non-image rows). New artisan commandmedia:backfill-optimization-statusmarks existing image rows as optimized so legacy libraries don't render as pending. TypeScript types addOptimizationStatusandMediaOptimization. (#92)
Fixed
- Package buttons now render with
cursor-pointer, hover, andfocus-visibleaffordances so keyboard and pointer users get consistent feedback across the media library UI. (#91)
[1.4.0] - 2026-07-21
Added
- Media pipeline hooks — 13 hooks covering the full upload → process → thumbnail → delete lifecycle, so applications can intercept every stage without subclassing the shipped services. New actions:
ap.mediaLibrary.uploading,ap.mediaLibrary.uploaded,ap.mediaLibrary.beforeProcess,ap.mediaLibrary.thumbnailsGenerated,ap.mediaLibrary.beforeDelete,ap.mediaLibrary.deleted. New filters:ap.mediaLibrary.uploadOptions,ap.mediaLibrary.filenameGenerated,ap.mediaLibrary.allowedMimeTypes,ap.mediaLibrary.maxFileSize,ap.mediaLibrary.storageDisk,ap.mediaLibrary.imageSizes,ap.mediaLibrary.altTextSuggestion. See the "Pipeline hooks" section of the README for the full table and payload signatures. (#86)
Changed
- BREAKING: Renamed the seven
MediaPolicyability filters fromap.media.*toap.mediaLibrary.abilities.*for cross-package consistency with theabilities.sub-namespace pattern used elsewhere in the ArtisanPack UI ecosystem. Old hook names remain registered as deprecation aliases viaartisanpack-ui/hooksdeprecateHook(), so existing subscribers keep firing (an info-level deprecation notice is logged on first use). Aliases will be removed in the next major version. Requiresartisanpack-ui/hooks: ^1.3. (#85)ap.media.viewAny→ap.mediaLibrary.abilities.viewAnyap.media.view→ap.mediaLibrary.abilities.viewap.media.create→ap.mediaLibrary.abilities.createap.media.update→ap.mediaLibrary.abilities.updateap.media.delete→ap.mediaLibrary.abilities.deleteap.media.restore→ap.mediaLibrary.abilities.restoreap.media.forceDelete→ap.mediaLibrary.abilities.forceDelete
[1.3.0] - 2026-07-08
Added
- AI integrations — three vision-powered features consumed by the Livewire, React, and Vue frontends alike through a single set of JSON endpoints (
POST /api/media/{id}/ai/alt-text|tags|description).ai.alt_text— cross-cutting alt-text agent (ships inartisanpack-ui/ai), wired intoMediaEdit,MediaUpload, and the JSON API (#80). Media library injects a stricter default prompt so the model never returns empty for images it classifies as decorative (deferring to any operator override); both surfaces also fall back to a filename-derived stub when the model still declines.media.suggest_tags— newImageTagSuggestionAgentthat picks matching tags from the existingmedia_tagstaxonomy, with an opt-inallow_newmode for out-of-taxonomy suggestions (#81).media.image_description— newImageDescriptionAgentproducing paragraph-length descriptions in short / medium / long tiers, distinct from alt text (#82).
- Shipped
MediaEdit.tsx(React) andMediaEdit.vue(Vue) components gain the same "Suggest with AI" / "Describe with AI" / "Suggest tags" buttons via typed helpers exported fromresources/js/{react,vue}/utils/api.ts. No changes to@artisanpack-ui/reactor@artisanpack-ui/vueare required to adopt the feature. - Livewire
MediaUploadgains upload-time AI suggestions for alt text and description, operating on the pendingTemporaryUploadedFilebefore the record is persisted.
Changed
- BREAKING:
artisanpack-ui/ai^1.0is now a required dependency. Configure credentials viaconfig/artisanpack.phpor the AI settings admin surface before adopting v1.3.
Documentation
- Added the "AI features" section to the README with the endpoint contract and per-surface wiring notes.
- Added
docs/usage/ai-features.mdcovering configuration, endpoints, agent inputs/outputs, and Livewire component wiring.
[1.2.2] - 2026-06-09
Added
- Laravel 13 support. The package now allows
laravel/framework^12.17|^13.0andilluminate/support^12.17.0|^13.0, andorchestra/testbench^10.0|^11.0. PHP 8.3+ is required when using Laravel 13 (enforced by Laravel 13's own constraint); existing users on Laravel 12 remain on PHP 8.2+. Thelaravel/frameworkfloor is aligned withilluminate/support(12.17.0); this matches the floor the package's transitive constraints have effectively required since1.2.0.
[1.2.1] - 2026-05-26
Changed
- Relaxed
artisanpack-ui/securitydependency constraint to allow^1.0|^2.0
Removed
- Removed Claude-related GitHub Actions workflows (
claude.yml,claude-code-review.yml)
[1.2.0] - 2026-04-09
Added
React & Vue Frontend Components
- Complete React component set (11 components) with TypeScript support for Inertia.js applications
- React hooks:
useMediaLibrary,useMediaPicker,useMediaUpload - Complete Vue 3 component set (12 components) with TypeScript support for Inertia.js applications
- Vue composables:
useMediaLibrary,useMediaPicker,useMediaUpload - Shared API utility (
api.ts) with Sanctum-authenticated requests for both stacks - React
Portalutility for rendering modals outside the DOM hierarchy - Vue
FolderNoderecursive component for folder tree rendering
Frontend Installation Command
php artisan media:install-frontendArtisan command for one-step frontend setup- Interactive stack selection (React or Vue) with
--stackoption --forceflag to overwrite previously published files- Automatic display of required npm peer dependencies after publishing
Config API Endpoint
GET /api/media/configpublic endpoint for client-side upload validation- Returns max file size, allowed MIME types grouped by category, allowed extensions, image sizes, and feature flags
- HTTP caching with
Cache-ControlandETagheaders for efficient repeated requests MediaConfigControllerwith MIME type grouping and extension extraction
TypeScript Type Definitions
- Shared
media.d.tstype definitions publishable viamedia-typestag - Full type coverage for media items, folders, tags, and API responses
Publish Groups
media-reacttag for publishing React components and typesmedia-vuetag for publishing Vue components and typesmedia-typestag for publishing shared TypeScript type definitions
Changed
- Updated license in
composer.jsonfromGPL-3.0-or-latertoMITto match the LICENSE file - Added consistent file-level PHPDoc blocks with
@package/@subpackagetags across all source files - Restructured CI workflow: separated lint and test jobs, added dedicated release workflow with Packagist update
- Enabled Claude Code review and Claude Code action GitHub workflows
- Updated documentation with v1.2 frontend components section and upgrading guide
[1.1.0] - 2026-01-23
Added
Livewire 4 Streaming Uploads
- Real-time upload progress using
wire:streamdirective StreamableUploadtrait for custom upload components- Automatic fallback to polling for Livewire 3 compatibility
- Configurable streaming options via
features.streaming_uploadconfig
Visual Editor Integration
MediaPickercomponent for embedding in visual editors and CMS platforms- Full keyboard navigation support (arrow keys, Enter, Escape, Home, End)
- Context-based event dispatching for multiple pickers on same page
- Recently used media tracking with configurable limit
- Quick upload select mode for automatic selection after upload
- Block requirements configuration for per-block-type media constraints
- Block content helpers (
apGetBlockRequirements,apValidateMediaForBlock) HasBlockMediatrait for models with block-based content
Media Statistics Dashboard
MediaStatisticsLivewire component with KPI cards- Sparkline charts showing upload trends over configurable periods
- Storage usage, media counts, and type distribution metrics
- Optional auto-refresh with configurable interval
UI Enhancements
- Glass effects integration with livewire-ui-components v2.0
- Configurable blur and opacity for card overlays and modal backdrops
- Table export functionality (CSV, XLSX, PDF) via
WithTableExporttrait - Enhanced media grid with focus indicators for keyboard navigation
Configuration
features.streaming_upload- Enable/disable Livewire 4 streamingfeatures.streaming_fallback_interval- Polling interval for Livewire 3ui.glass_effects- Glass effect settings (enabled, blur, opacity)ui.stats_dashboard- Statistics component settingsui.table_export- Export formats and limitsvisual_editor- MediaPicker settings (recently used, quick upload, picker defaults)block_requirements- Media constraints per block type
Documentation
- Comprehensive documentation for all v1.1 features
- Visual editor integration guide with examples
- Dashboard and statistics documentation
- Streaming uploads documentation
- Table export documentation
- Updated configuration documentation with all new options
Changed
- Upgraded livewire-ui-components dependency to v2.0
- Enhanced
MediaModalwith keyboard navigation and focus management - Improved test coverage to 580+ tests with 1293 assertions
- Updated README with new features overview and documentation links
Fixed
- Improved screen reader announcements for bulk selection operations
- Fixed focus management in media selection components
[1.0.0] - 2026-01-02
Added
- Comprehensive Livewire component test suite with 150+ test cases covering all 8 components:
- MediaUpload tests for file upload, validation, and progress tracking
- MediaModal tests for selection modes, filtering, and context handling
- MediaLibrary tests for filtering, sorting, and bulk operations
- FolderManager tests for folder CRUD and hierarchy management
- TagManager tests for tag CRUD operations
- MediaEdit tests for metadata editing and tag syncing
- MediaGrid tests for display modes and selection handling
- MediaItem tests for individual media actions
- API endpoint tests for folder move and tag attach/detach operations
- Full test coverage for circular reference prevention in folder moves
Changed
- Promoted from beta to stable release
- All core features now have comprehensive test coverage
Fixed
- Improved test isolation with proper Storage and Gate mocking
[1.0.0-beta2] - 2025-11-23
Added
- Laravel Boost AI guidelines support for better AI-assisted development
- Laravel Pint code style checker integration
- ArtisanPack UI Pint code style configuration
Changed
- Updated GitLab CI pipeline to use PHP 8.4 for all stages
- Updated Symfony HTTP Foundation to v7.3.7 to address security advisories
Fixed
- Fixed GitLab CI build failures due to PHP 8.5 incompatibility
- Resolved Composer dependency conflicts with security-patched packages
[1.0.0-beta1] - 2025-11-03
Added
- Initial beta release of ArtisanPack UI Media Library package
- Comprehensive media library documentation
- Media manager class for media management operations
- Support for multiple modals in media library interface
- Component-based architecture for media library UI
- Media library service provider integration
- Media selection and management functionality

