@voyantjs/travel-composer-react
v0.81.18
Published
React client utilities for `@voyantjs/travel-composer`.
Readme
@voyantjs/travel-composer-react
React client utilities for @voyantjs/travel-composer.
This package exposes admin/public API clients, validation-aware operations, TanStack Query keys/options, cache writers, provider wiring, and hooks for Trip Envelope composition flows. It supports trip creation, component add, pricing, reserve, checkout handoff, and support-facing component cancellation preview / cancel operations. Draft is represented as a trip lifecycle status, not as the customer/admin object name.
Install
pnpm add @voyantjs/travel-composer-react @voyantjs/travel-composerExports
| Entry | Description |
| --- | --- |
| . | Client, provider, hooks, operations, schemas, and query helpers |
| ./provider | VoyantTravelComposerProvider and context helpers |
| ./hooks | React hooks for Trips, pricing, reserve, checkout, and components |
| ./client | Fetcher and API error utilities |
| ./query-keys | Stable TanStack Query keys |
License
Apache-2.0
