Capell Inertia React Adapter
Package docs status
Section titled “Package docs status”This page is generated from public package documentation in capell-4/packages and the package manifest checked into the source repository.
| Field | Value |
|---|---|
| Composer package | capell-app/inertia-react-adapter |
| Package slug | inertia-react-adapter |
| Product group | Capell Frontend |
| Tier | core |
| Bundle | frontend |
| Runtime contexts | frontend |
| Capell version | ^4.0 |
| Source repository | capell-app/packages |
| Source path | packages/inertia-react-adapter |
| Docs source | packages/inertia-react-adapter/docs |
| Manifest | capell.json |
The React adapter registers React dependencies and the Capell Inertia React application entrypoint for Inertia-powered Capell pages and package routes.
At A Glance
Section titled “At A Glance”- Package:
capell-app/inertia-react-adapter - Namespace:
Capell\InertiaReactAdapter\ - Surfaces: public frontend
- Service provider:
Capell\InertiaReactAdapter\Providers\InertiaReactAdapterServiceProvider - Capell dependencies:
capell-app/core,capell-app/inertia - Framework dependencies:
@inertiajs/react,@vitejs/plugin-react,react,react-dom
Why It Helps Your Capell Workflow
Section titled “Why It Helps Your Capell Workflow”For teams, the adapter is the installable switch that lets a Capell Inertia theme use React components.
For developers, it registers the react adapter key, NPM dependencies, build asset entrypoint, and component names through Capell’s vendor asset system instead of requiring each app to hand-wire React bootstrapping.
What It Adds
Section titled “What It Adds”- React adapter metadata in
InertiaAdapterRegistry. - NPM dependency declarations for React and the Inertia React adapter.
- Build asset
vendor/capell/inertia-reactwith entrypointresources/js/app.jsx. - Default component map for
Capell/PageandCapell/Bookings/Request. - A vendor asset condition that defers to the bookings-specific React component pack when that package is installed.
Boundaries
Section titled “Boundaries”- This package owns generic React bootstrapping only.
- Feature-specific React components can live in theme/component packages such as
capell-app/theme-inertia-bookings-react. - It owns no migrations, settings, routes, admin resources, or public Blade views.
Testing
Section titled “Testing”vendor/bin/pest packages/inertia-react-adapter/tests --configuration=phpunit.xml