v1.2.0
·
10 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
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