Skip to content

Capell Inertia React Adapter

This page is generated from public package documentation in capell-4/packages and the package manifest checked into the source repository.

FieldValue
Composer packagecapell-app/inertia-react-adapter
Package sluginertia-react-adapter
Product groupCapell Frontend
Tiercore
Bundlefrontend
Runtime contextsfrontend
Capell version^4.0
Source repositorycapell-app/packages
Source pathpackages/inertia-react-adapter
Docs sourcepackages/inertia-react-adapter/docs
Manifestcapell.json

The React adapter registers React dependencies and the Capell Inertia React application entrypoint for Inertia-powered Capell pages and package routes.

  • 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

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.

  • React adapter metadata in InertiaAdapterRegistry.
  • NPM dependency declarations for React and the Inertia React adapter.
  • Build asset vendor/capell/inertia-react with entrypoint resources/js/app.jsx.
  • Default component map for Capell/Page and Capell/Bookings/Request.
  • A vendor asset condition that defers to the bookings-specific React component pack when that package is installed.
  • 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.
Terminal window
vendor/bin/pest packages/inertia-react-adapter/tests --configuration=phpunit.xml