@gate-forge/pack-react-router
v0.19.2
Published
Generic React Router page reader: JSX and object route trees become ui.page resources (page:loads, page:data-ok obligations).
Readme
@gate-forge/pack-react-router
Reads React Router JSX <Route> trees and createBrowserRouter / useRoutes route objects, resolves relative children, and emits plane-qualified ui.page resources with path parameters and source locations. Redirect-only and catch-all routes are excluded; unreadable paths become PAGE_ROUTE_UNRESOLVED entries.
Configure pages.router: react-router and owner-declared pages.audiences in .gateforge.yml. Frameworks without React Router can use pages.router: manual and .gateforge/pages.yml:
pages:
- path: /orders/:id
audience: tenant
source: src/routes.tsx:12The manual inventory requires an absolute route path, audience name, and repo-relative file:line source. Each plane-resolved page creates page:loads and page:data-ok obligations; both remain missing until a page proof channel is available.
