@softistx/alxia-react-router 0.0.0-stage → 0.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +2085 -2
- package/dist/api-keys/api-keys.d.ts +93 -0
- package/dist/api-keys/api-keys.d.ts.map +1 -0
- package/dist/api-keys/index.d.ts +9 -0
- package/dist/api-keys/index.d.ts.map +1 -0
- package/dist/api-keys/index.js +66 -0
- package/dist/api-keys/index.js.map +10 -0
- package/dist/assets.d.ts +14 -0
- package/dist/assets.d.ts.map +1 -0
- package/dist/chunks/index-0786n4qe.js +25 -0
- package/dist/chunks/index-0786n4qe.js.map +10 -0
- package/dist/chunks/index-1nw5yeek.js +169 -0
- package/dist/chunks/index-1nw5yeek.js.map +11 -0
- package/dist/chunks/index-59vhfj6n.js +10 -0
- package/dist/chunks/index-59vhfj6n.js.map +10 -0
- package/dist/chunks/index-5gqcpyyg.js +34 -0
- package/dist/chunks/index-5gqcpyyg.js.map +10 -0
- package/dist/chunks/index-6jf7zpxz.js +119 -0
- package/dist/chunks/index-6jf7zpxz.js.map +11 -0
- package/dist/chunks/index-8as4j8m3.js +340 -0
- package/dist/chunks/index-8as4j8m3.js.map +16 -0
- package/dist/chunks/index-9xv2a8et.js +108 -0
- package/dist/chunks/index-9xv2a8et.js.map +11 -0
- package/dist/chunks/index-ajtvyq35.js +16 -0
- package/dist/chunks/index-ajtvyq35.js.map +10 -0
- package/dist/chunks/index-c55hxgr5.js +124 -0
- package/dist/chunks/index-c55hxgr5.js.map +14 -0
- package/dist/chunks/index-d42p3mdp.js +19 -0
- package/dist/chunks/index-d42p3mdp.js.map +10 -0
- package/dist/chunks/index-gac44rs5.js +42 -0
- package/dist/chunks/index-gac44rs5.js.map +11 -0
- package/dist/chunks/index-j4ktpcke.js +62 -0
- package/dist/chunks/index-j4ktpcke.js.map +10 -0
- package/dist/chunks/index-mscfme4r.js +12 -0
- package/dist/chunks/index-mscfme4r.js.map +10 -0
- package/dist/chunks/index-pghmb2dm.js +30 -0
- package/dist/chunks/index-pghmb2dm.js.map +10 -0
- package/dist/chunks/index-rfr02vg4.js +40 -0
- package/dist/chunks/index-rfr02vg4.js.map +10 -0
- package/dist/chunks/index-sfhshxqz.js +31 -0
- package/dist/chunks/index-sfhshxqz.js.map +10 -0
- package/dist/chunks/index-skwypsjz.js +357 -0
- package/dist/chunks/index-skwypsjz.js.map +12 -0
- package/dist/chunks/index-sxh06ged.js +118 -0
- package/dist/chunks/index-sxh06ged.js.map +11 -0
- package/dist/chunks/index-t2ph23wk.js +96 -0
- package/dist/chunks/index-t2ph23wk.js.map +13 -0
- package/dist/chunks/index-thyabr5n.js +19 -0
- package/dist/chunks/index-thyabr5n.js.map +10 -0
- package/dist/chunks/index-tx36swjx.js +134 -0
- package/dist/chunks/index-tx36swjx.js.map +11 -0
- package/dist/chunks/index-v2z5k640.js +54 -0
- package/dist/chunks/index-v2z5k640.js.map +11 -0
- package/dist/chunks/index-vr82typq.js +23 -0
- package/dist/chunks/index-vr82typq.js.map +11 -0
- package/dist/chunks/index-whj6h5eg.js +9 -0
- package/dist/chunks/index-whj6h5eg.js.map +10 -0
- package/dist/chunks/index-wyypkfdv.js +130 -0
- package/dist/chunks/index-wyypkfdv.js.map +13 -0
- package/dist/chunks/index-xd5aqy3g.js +90 -0
- package/dist/chunks/index-xd5aqy3g.js.map +10 -0
- package/dist/chunks/index-zdbqzcjp.js +97 -0
- package/dist/chunks/index-zdbqzcjp.js.map +12 -0
- package/dist/chunks/index-zyg8amjc.js +23 -0
- package/dist/chunks/index-zyg8amjc.js.map +10 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +215 -0
- package/dist/cli/index.js.map +13 -0
- package/dist/cli/main.d.ts +13 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/reveal.d.ts +18 -0
- package/dist/cli/reveal.d.ts.map +1 -0
- package/dist/cli/template.d.ts +8 -0
- package/dist/cli/template.d.ts.map +1 -0
- package/dist/context.d.ts +104 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/document/index.d.ts +11 -0
- package/dist/document/index.d.ts.map +1 -0
- package/dist/document/index.js +19 -0
- package/dist/document/index.js.map +9 -0
- package/dist/document/inline-script.d.ts +27 -0
- package/dist/document/inline-script.d.ts.map +1 -0
- package/dist/document/language-store.d.ts +8 -0
- package/dist/document/language-store.d.ts.map +1 -0
- package/dist/document/nonce.d.ts +34 -0
- package/dist/document/nonce.d.ts.map +1 -0
- package/dist/document/page-language.d.ts +39 -0
- package/dist/document/page-language.d.ts.map +1 -0
- package/dist/document/text-direction.d.ts +10 -0
- package/dist/document/text-direction.d.ts.map +1 -0
- package/dist/entry/abort.d.ts +21 -0
- package/dist/entry/abort.d.ts.map +1 -0
- package/dist/entry/create-entry.d.ts +41 -0
- package/dist/entry/create-entry.d.ts.map +1 -0
- package/dist/entry/index.d.ts +8 -0
- package/dist/entry/index.d.ts.map +1 -0
- package/dist/entry/index.js +154 -0
- package/dist/entry/index.js.map +13 -0
- package/dist/entry/root-data.d.ts +27 -0
- package/dist/entry/root-data.d.ts.map +1 -0
- package/dist/entry/whole-page.d.ts +10 -0
- package/dist/entry/whole-page.d.ts.map +1 -0
- package/dist/errors/api-error.d.ts +117 -0
- package/dist/errors/api-error.d.ts.map +1 -0
- package/dist/errors/api-errors.d.ts +122 -0
- package/dist/errors/api-errors.d.ts.map +1 -0
- package/dist/errors/call-failure.d.ts +45 -0
- package/dist/errors/call-failure.d.ts.map +1 -0
- package/dist/errors/catalogue-check.d.ts +24 -0
- package/dist/errors/catalogue-check.d.ts.map +1 -0
- package/dist/errors/catalogue-read.d.ts +33 -0
- package/dist/errors/catalogue-read.d.ts.map +1 -0
- package/dist/errors/catalogue.d.ts +59 -0
- package/dist/errors/catalogue.d.ts.map +1 -0
- package/dist/errors/code-resolver.d.ts +44 -0
- package/dist/errors/code-resolver.d.ts.map +1 -0
- package/dist/errors/cross-site.d.ts +8 -0
- package/dist/errors/cross-site.d.ts.map +1 -0
- package/dist/errors/describe-refusal.d.ts +6 -0
- package/dist/errors/describe-refusal.d.ts.map +1 -0
- package/dist/errors/describe.d.ts +3 -0
- package/dist/errors/describe.d.ts.map +1 -0
- package/dist/errors/fetcher-result.d.ts +33 -0
- package/dist/errors/fetcher-result.d.ts.map +1 -0
- package/dist/errors/field-placement.d.ts +12 -0
- package/dist/errors/field-placement.d.ts.map +1 -0
- package/dist/errors/form-errors.d.ts +8 -0
- package/dist/errors/form-errors.d.ts.map +1 -0
- package/dist/errors/form-refusal.d.ts +25 -0
- package/dist/errors/form-refusal.d.ts.map +1 -0
- package/dist/errors/index.d.ts +21 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +588 -0
- package/dist/errors/index.js.map +26 -0
- package/dist/errors/json-actions.d.ts +38 -0
- package/dist/errors/json-actions.d.ts.map +1 -0
- package/dist/errors/log.d.ts +8 -0
- package/dist/errors/log.d.ts.map +1 -0
- package/dist/errors/message-values.d.ts +11 -0
- package/dist/errors/message-values.d.ts.map +1 -0
- package/dist/errors/messages.d.ts +63 -0
- package/dist/errors/messages.d.ts.map +1 -0
- package/dist/errors/page-path.d.ts +9 -0
- package/dist/errors/page-path.d.ts.map +1 -0
- package/dist/errors/problem-error.d.ts +50 -0
- package/dist/errors/problem-error.d.ts.map +1 -0
- package/dist/errors/provider.d.ts +20 -0
- package/dist/errors/provider.d.ts.map +1 -0
- package/dist/errors/request-id.d.ts +5 -0
- package/dist/errors/request-id.d.ts.map +1 -0
- package/dist/errors/route-error.d.ts +33 -0
- package/dist/errors/route-error.d.ts.map +1 -0
- package/dist/errors/route-refusal.d.ts +20 -0
- package/dist/errors/route-refusal.d.ts.map +1 -0
- package/dist/errors/same-site.d.ts +49 -0
- package/dist/errors/same-site.d.ts.map +1 -0
- package/dist/errors/section-action.d.ts +46 -0
- package/dist/errors/section-action.d.ts.map +1 -0
- package/dist/errors/standard-schema.d.ts +34 -0
- package/dist/errors/standard-schema.d.ts.map +1 -0
- package/dist/errors/submit-form.d.ts +16 -0
- package/dist/errors/submit-form.d.ts.map +1 -0
- package/dist/errors/upstream-headers.d.ts +18 -0
- package/dist/errors/upstream-headers.d.ts.map +1 -0
- package/dist/errors/use-json-fetcher.d.ts +18 -0
- package/dist/errors/use-json-fetcher.d.ts.map +1 -0
- package/dist/fetcher/auth-refusal.d.ts +29 -0
- package/dist/fetcher/auth-refusal.d.ts.map +1 -0
- package/dist/fetcher/index.d.ts +20 -0
- package/dist/fetcher/index.d.ts.map +1 -0
- package/dist/fetcher/index.js +392 -0
- package/dist/fetcher/index.js.map +21 -0
- package/dist/fetcher/section-form.d.ts +24 -0
- package/dist/fetcher/section-form.d.ts.map +1 -0
- package/dist/fetcher/section-reload.d.ts +17 -0
- package/dist/fetcher/section-reload.d.ts.map +1 -0
- package/dist/fetcher/section-save.d.ts +29 -0
- package/dist/fetcher/section-save.d.ts.map +1 -0
- package/dist/fetcher/use-debounced-fetcher.d.ts +57 -0
- package/dist/fetcher/use-debounced-fetcher.d.ts.map +1 -0
- package/dist/fetcher/use-fetcher-answer.d.ts +16 -0
- package/dist/fetcher/use-fetcher-answer.d.ts.map +1 -0
- package/dist/fetcher/use-fetcher-done.d.ts +15 -0
- package/dist/fetcher/use-fetcher-done.d.ts.map +1 -0
- package/dist/fetcher/use-fetcher-promise.d.ts +48 -0
- package/dist/fetcher/use-fetcher-promise.d.ts.map +1 -0
- package/dist/fetcher/use-form-refusal.d.ts +20 -0
- package/dist/fetcher/use-form-refusal.d.ts.map +1 -0
- package/dist/fetcher/use-revalidate-on-focus.d.ts +20 -0
- package/dist/fetcher/use-revalidate-on-focus.d.ts.map +1 -0
- package/dist/fetcher/use-row-save.d.ts +32 -0
- package/dist/fetcher/use-row-save.d.ts.map +1 -0
- package/dist/fetcher/use-section-save.d.ts +46 -0
- package/dist/fetcher/use-section-save.d.ts.map +1 -0
- package/dist/fetcher/use-visible-interval.d.ts +24 -0
- package/dist/fetcher/use-visible-interval.d.ts.map +1 -0
- package/dist/fetcher/use-visible-revalidation.d.ts +10 -0
- package/dist/fetcher/use-visible-revalidation.d.ts.map +1 -0
- package/dist/health.d.ts +21 -0
- package/dist/health.d.ts.map +1 -0
- package/dist/help/check/check.d.ts +35 -0
- package/dist/help/check/check.d.ts.map +1 -0
- package/dist/help/check/index.d.ts +8 -0
- package/dist/help/check/index.d.ts.map +1 -0
- package/dist/help/check/index.js +17 -0
- package/dist/help/check/index.js.map +9 -0
- package/dist/help/check/routes.d.ts +22 -0
- package/dist/help/check/routes.d.ts.map +1 -0
- package/dist/help/guide.d.ts +33 -0
- package/dist/help/guide.d.ts.map +1 -0
- package/dist/help/index.d.ts +16 -0
- package/dist/help/index.d.ts.map +1 -0
- package/dist/help/index.js +192 -0
- package/dist/help/index.js.map +14 -0
- package/dist/help/load.d.ts +39 -0
- package/dist/help/load.d.ts.map +1 -0
- package/dist/help/panel.d.ts +69 -0
- package/dist/help/panel.d.ts.map +1 -0
- package/dist/help/parse-flow.d.ts +27 -0
- package/dist/help/parse-flow.d.ts.map +1 -0
- package/dist/help/react.d.ts +12 -0
- package/dist/help/react.d.ts.map +1 -0
- package/dist/help/resolve.d.ts +24 -0
- package/dist/help/resolve.d.ts.map +1 -0
- package/dist/help/types.d.ts +50 -0
- package/dist/help/types.d.ts.map +1 -0
- package/dist/help/yaml.d.ts +18 -0
- package/dist/help/yaml.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +197 -0
- package/dist/index.js.map +14 -0
- package/dist/link/index.d.ts +7 -0
- package/dist/link/index.d.ts.map +1 -0
- package/dist/link/index.js +16 -0
- package/dist/link/index.js.map +10 -0
- package/dist/link/router-link.d.ts +27 -0
- package/dist/link/router-link.d.ts.map +1 -0
- package/dist/lists/connection-page.d.ts +50 -0
- package/dist/lists/connection-page.d.ts.map +1 -0
- package/dist/lists/index.d.ts +13 -0
- package/dist/lists/index.d.ts.map +1 -0
- package/dist/lists/index.js +205 -0
- package/dist/lists/index.js.map +15 -0
- package/dist/lists/newest-first.d.ts +5 -0
- package/dist/lists/newest-first.d.ts.map +1 -0
- package/dist/lists/nodes-of.d.ts +21 -0
- package/dist/lists/nodes-of.d.ts.map +1 -0
- package/dist/lists/or-failed.d.ts +19 -0
- package/dist/lists/or-failed.d.ts.map +1 -0
- package/dist/lists/use-paged-rows.d.ts +40 -0
- package/dist/lists/use-paged-rows.d.ts.map +1 -0
- package/dist/lists/use-same-route-loading.d.ts +8 -0
- package/dist/lists/use-same-route-loading.d.ts.map +1 -0
- package/dist/lists/use-search-change.d.ts +20 -0
- package/dist/lists/use-search-change.d.ts.map +1 -0
- package/dist/mcp/index.d.ts +8 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +105 -0
- package/dist/mcp/index.js.map +11 -0
- package/dist/mcp/mcp-relay.d.ts +58 -0
- package/dist/mcp/mcp-relay.d.ts.map +1 -0
- package/dist/mcp/relay.d.ts +38 -0
- package/dist/mcp/relay.d.ts.map +1 -0
- package/dist/media/client/error.d.ts +29 -0
- package/dist/media/client/error.d.ts.map +1 -0
- package/dist/media/client/index.d.ts +8 -0
- package/dist/media/client/index.d.ts.map +1 -0
- package/dist/media/client/index.js +133 -0
- package/dist/media/client/index.js.map +11 -0
- package/dist/media/client/upload.d.ts +32 -0
- package/dist/media/client/upload.d.ts.map +1 -0
- package/dist/media/forward.d.ts +14 -0
- package/dist/media/forward.d.ts.map +1 -0
- package/dist/media/headers.d.ts +11 -0
- package/dist/media/headers.d.ts.map +1 -0
- package/dist/media/index.d.ts +9 -0
- package/dist/media/index.d.ts.map +1 -0
- package/dist/media/index.js +396 -0
- package/dist/media/index.js.map +16 -0
- package/dist/media/options.d.ts +114 -0
- package/dist/media/options.d.ts.map +1 -0
- package/dist/media/path.d.ts +12 -0
- package/dist/media/path.d.ts.map +1 -0
- package/dist/media/read.d.ts +11 -0
- package/dist/media/read.d.ts.map +1 -0
- package/dist/media/refusal.d.ts +11 -0
- package/dist/media/refusal.d.ts.map +1 -0
- package/dist/media/respond.d.ts +8 -0
- package/dist/media/respond.d.ts.map +1 -0
- package/dist/media/write.d.ts +13 -0
- package/dist/media/write.d.ts.map +1 -0
- package/dist/navigation/index.d.ts +9 -0
- package/dist/navigation/index.d.ts.map +1 -0
- package/dist/navigation/index.js +48 -0
- package/dist/navigation/index.js.map +11 -0
- package/dist/navigation/use-focus-on-navigate.d.ts +16 -0
- package/dist/navigation/use-focus-on-navigate.d.ts.map +1 -0
- package/dist/navigation/use-route-transition.d.ts +19 -0
- package/dist/navigation/use-route-transition.d.ts.map +1 -0
- package/dist/nonce.d.ts +16 -0
- package/dist/nonce.d.ts.map +1 -0
- package/dist/oauth/answer.d.ts +33 -0
- package/dist/oauth/answer.d.ts.map +1 -0
- package/dist/oauth/binding.d.ts +43 -0
- package/dist/oauth/binding.d.ts.map +1 -0
- package/dist/oauth/consent.d.ts +134 -0
- package/dist/oauth/consent.d.ts.map +1 -0
- package/dist/oauth/grants.d.ts +88 -0
- package/dist/oauth/grants.d.ts.map +1 -0
- package/dist/oauth/index.d.ts +16 -0
- package/dist/oauth/index.d.ts.map +1 -0
- package/dist/oauth/index.js +207 -0
- package/dist/oauth/index.js.map +12 -0
- package/dist/oauth/model.d.ts +13 -0
- package/dist/oauth/model.d.ts.map +1 -0
- package/dist/oauth/react/index.d.ts +7 -0
- package/dist/oauth/react/index.d.ts.map +1 -0
- package/dist/oauth/react/index.js +99 -0
- package/dist/oauth/react/index.js.map +10 -0
- package/dist/oauth/react/use-consent.d.ts +52 -0
- package/dist/oauth/react/use-consent.d.ts.map +1 -0
- package/dist/oidc/dpop.d.ts +80 -0
- package/dist/oidc/dpop.d.ts.map +1 -0
- package/dist/oidc/errors.d.ts +16 -0
- package/dist/oidc/errors.d.ts.map +1 -0
- package/dist/oidc/flow.d.ts +59 -0
- package/dist/oidc/flow.d.ts.map +1 -0
- package/dist/oidc/index.d.ts +11 -0
- package/dist/oidc/index.d.ts.map +1 -0
- package/dist/oidc/index.js +742 -0
- package/dist/oidc/index.js.map +15 -0
- package/dist/oidc/oidc.d.ts +132 -0
- package/dist/oidc/oidc.d.ts.map +1 -0
- package/dist/oidc/revoke.d.ts +28 -0
- package/dist/oidc/revoke.d.ts.map +1 -0
- package/dist/oidc/seal.d.ts +20 -0
- package/dist/oidc/seal.d.ts.map +1 -0
- package/dist/pwa/build/build-worker.d.ts +41 -0
- package/dist/pwa/build/build-worker.d.ts.map +1 -0
- package/dist/pwa/build/index.d.ts +9 -0
- package/dist/pwa/build/index.d.ts.map +1 -0
- package/dist/pwa/build/index.js +9 -0
- package/dist/pwa/build/index.js.map +9 -0
- package/dist/pwa/build/precache.d.ts +17 -0
- package/dist/pwa/build/precache.d.ts.map +1 -0
- package/dist/pwa/index.d.ts +16 -0
- package/dist/pwa/index.d.ts.map +1 -0
- package/dist/pwa/index.js +110 -0
- package/dist/pwa/index.js.map +12 -0
- package/dist/pwa/model/caching.d.ts +46 -0
- package/dist/pwa/model/caching.d.ts.map +1 -0
- package/dist/pwa/model/clear-app-caches.d.ts +9 -0
- package/dist/pwa/model/clear-app-caches.d.ts.map +1 -0
- package/dist/pwa/model/font-precache.d.ts +15 -0
- package/dist/pwa/model/font-precache.d.ts.map +1 -0
- package/dist/pwa/model/manifest.d.ts +80 -0
- package/dist/pwa/model/manifest.d.ts.map +1 -0
- package/dist/pwa/model/precache-list.d.ts +40 -0
- package/dist/pwa/model/precache-list.d.ts.map +1 -0
- package/dist/pwa/model/registration.d.ts +39 -0
- package/dist/pwa/model/registration.d.ts.map +1 -0
- package/dist/pwa/model/start-service-worker.d.ts +24 -0
- package/dist/pwa/model/start-service-worker.d.ts.map +1 -0
- package/dist/pwa/model/storable.d.ts +8 -0
- package/dist/pwa/model/storable.d.ts.map +1 -0
- package/dist/pwa/model/theme-color.d.ts +20 -0
- package/dist/pwa/model/theme-color.d.ts.map +1 -0
- package/dist/pwa/model/update-notice.d.ts +38 -0
- package/dist/pwa/model/update-notice.d.ts.map +1 -0
- package/dist/pwa/model/worker-contract.d.ts +61 -0
- package/dist/pwa/model/worker-contract.d.ts.map +1 -0
- package/dist/pwa/react/index.d.ts +9 -0
- package/dist/pwa/react/index.d.ts.map +1 -0
- package/dist/pwa/react/index.js +75 -0
- package/dist/pwa/react/index.js.map +13 -0
- package/dist/pwa/react/use-online.d.ts +6 -0
- package/dist/pwa/react/use-online.d.ts.map +1 -0
- package/dist/pwa/react/use-service-worker.d.ts +33 -0
- package/dist/pwa/react/use-service-worker.d.ts.map +1 -0
- package/dist/pwa/react/use-update-notice.d.ts +14 -0
- package/dist/pwa/react/use-update-notice.d.ts.map +1 -0
- package/dist/pwa/server/index.d.ts +7 -0
- package/dist/pwa/server/index.d.ts.map +1 -0
- package/dist/pwa/server/index.js +18 -0
- package/dist/pwa/server/index.js.map +10 -0
- package/dist/pwa/server/no-cache.d.ts +22 -0
- package/dist/pwa/server/no-cache.d.ts.map +1 -0
- package/dist/pwa/worker/index.d.ts +9 -0
- package/dist/pwa/worker/index.d.ts.map +1 -0
- package/dist/pwa/worker/index.js +144 -0
- package/dist/pwa/worker/index.js.map +12 -0
- package/dist/pwa/worker/injected.d.ts +15 -0
- package/dist/pwa/worker/injected.d.ts.map +1 -0
- package/dist/pwa/worker/plan.d.ts +65 -0
- package/dist/pwa/worker/plan.d.ts.map +1 -0
- package/dist/pwa/worker/scope.d.ts +18 -0
- package/dist/pwa/worker/scope.d.ts.map +1 -0
- package/dist/pwa/worker/start-worker.d.ts +17 -0
- package/dist/pwa/worker/start-worker.d.ts.map +1 -0
- package/dist/react-router.d.ts +68 -0
- package/dist/react-router.d.ts.map +1 -0
- package/dist/server.d.ts +127 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/session/codes.d.ts +9 -0
- package/dist/session/codes.d.ts.map +1 -0
- package/dist/session/cookies.d.ts +128 -0
- package/dist/session/cookies.d.ts.map +1 -0
- package/dist/session/flow-types.d.ts +235 -0
- package/dist/session/flow-types.d.ts.map +1 -0
- package/dist/session/guard.d.ts +10 -0
- package/dist/session/guard.d.ts.map +1 -0
- package/dist/session/index.d.ts +22 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/session/index.js +1090 -0
- package/dist/session/index.js.map +27 -0
- package/dist/session/land.d.ts +28 -0
- package/dist/session/land.d.ts.map +1 -0
- package/dist/session/link-json.d.ts +22 -0
- package/dist/session/link-json.d.ts.map +1 -0
- package/dist/session/link-land.d.ts +20 -0
- package/dist/session/link-land.d.ts.map +1 -0
- package/dist/session/link-token.d.ts +24 -0
- package/dist/session/link-token.d.ts.map +1 -0
- package/dist/session/link-types.d.ts +142 -0
- package/dist/session/link-types.d.ts.map +1 -0
- package/dist/session/links.d.ts +14 -0
- package/dist/session/links.d.ts.map +1 -0
- package/dist/session/model/index.d.ts +8 -0
- package/dist/session/model/index.d.ts.map +1 -0
- package/dist/session/model/index.js +35 -0
- package/dist/session/model/index.js.map +9 -0
- package/dist/session/model/link-post.d.ts +35 -0
- package/dist/session/model/link-post.d.ts.map +1 -0
- package/dist/session/model/paths.d.ts +24 -0
- package/dist/session/model/paths.d.ts.map +1 -0
- package/dist/session/model/safe-next.d.ts +15 -0
- package/dist/session/model/safe-next.d.ts.map +1 -0
- package/dist/session/model/second-factor.d.ts +16 -0
- package/dist/session/model/second-factor.d.ts.map +1 -0
- package/dist/session/model/site-path.d.ts +10 -0
- package/dist/session/model/site-path.d.ts.map +1 -0
- package/dist/session/model/step-up-answers.d.ts +45 -0
- package/dist/session/model/step-up-answers.d.ts.map +1 -0
- package/dist/session/model/step-up-props.d.ts +22 -0
- package/dist/session/model/step-up-props.d.ts.map +1 -0
- package/dist/session/model/step-up.d.ts +48 -0
- package/dist/session/model/step-up.d.ts.map +1 -0
- package/dist/session/react/index.d.ts +13 -0
- package/dist/session/react/index.d.ts.map +1 -0
- package/dist/session/react/index.js +196 -0
- package/dist/session/react/index.js.map +14 -0
- package/dist/session/react/step-up/answers.d.ts +9 -0
- package/dist/session/react/step-up/answers.d.ts.map +1 -0
- package/dist/session/react/step-up/dialog-props.d.ts +27 -0
- package/dist/session/react/step-up/dialog-props.d.ts.map +1 -0
- package/dist/session/react/step-up/index.d.ts +7 -0
- package/dist/session/react/step-up/index.d.ts.map +1 -0
- package/dist/session/react/step-up/pending-runs.d.ts +21 -0
- package/dist/session/react/step-up/pending-runs.d.ts.map +1 -0
- package/dist/session/react/step-up/phase.d.ts +8 -0
- package/dist/session/react/step-up/phase.d.ts.map +1 -0
- package/dist/session/react/step-up/use-step-up-replay.d.ts +59 -0
- package/dist/session/react/step-up/use-step-up-replay.d.ts.map +1 -0
- package/dist/session/react/step-up/use-step-up-runner.d.ts +70 -0
- package/dist/session/react/step-up/use-step-up-runner.d.ts.map +1 -0
- package/dist/session/react/step-up/use-step-up.d.ts +51 -0
- package/dist/session/react/step-up/use-step-up.d.ts.map +1 -0
- package/dist/session/react/use-code-field.d.ts +37 -0
- package/dist/session/react/use-code-field.d.ts.map +1 -0
- package/dist/session/react/use-link-fragment.d.ts +22 -0
- package/dist/session/react/use-link-fragment.d.ts.map +1 -0
- package/dist/session/react/use-link-param.d.ts +26 -0
- package/dist/session/react/use-link-param.d.ts.map +1 -0
- package/dist/session/react/use-link-post.d.ts +39 -0
- package/dist/session/react/use-link-post.d.ts.map +1 -0
- package/dist/session/react/use-sign-out.d.ts +46 -0
- package/dist/session/react/use-sign-out.d.ts.map +1 -0
- package/dist/session/second-factor.d.ts +22 -0
- package/dist/session/second-factor.d.ts.map +1 -0
- package/dist/session/serialize.d.ts +42 -0
- package/dist/session/serialize.d.ts.map +1 -0
- package/dist/session/sign-in.d.ts +19 -0
- package/dist/session/sign-in.d.ts.map +1 -0
- package/dist/session/signed.d.ts +44 -0
- package/dist/session/signed.d.ts.map +1 -0
- package/dist/session/social-flow.d.ts +22 -0
- package/dist/session/social-flow.d.ts.map +1 -0
- package/dist/session/social-land.d.ts +31 -0
- package/dist/session/social-land.d.ts.map +1 -0
- package/dist/session/social-types.d.ts +136 -0
- package/dist/session/social-types.d.ts.map +1 -0
- package/dist/session/social.d.ts +32 -0
- package/dist/session/social.d.ts.map +1 -0
- package/dist/session/step-up-codes.d.ts +9 -0
- package/dist/session/step-up-codes.d.ts.map +1 -0
- package/dist/session/step-up-signed-out.d.ts +21 -0
- package/dist/session/step-up-signed-out.d.ts.map +1 -0
- package/dist/session/step-up-types.d.ts +127 -0
- package/dist/session/step-up-types.d.ts.map +1 -0
- package/dist/session/step-up.d.ts +17 -0
- package/dist/session/step-up.d.ts.map +1 -0
- package/dist/session/step.d.ts +22 -0
- package/dist/session/step.d.ts.map +1 -0
- package/dist/session/throttle.d.ts +73 -0
- package/dist/session/throttle.d.ts.map +1 -0
- package/dist/session/timed-wait.d.ts +4 -0
- package/dist/session/timed-wait.d.ts.map +1 -0
- package/dist/session/viewer.d.ts +34 -0
- package/dist/session/viewer.d.ts.map +1 -0
- package/dist/subscription/documents.d.ts +3 -0
- package/dist/subscription/documents.d.ts.map +1 -0
- package/dist/subscription/index.d.ts +7 -0
- package/dist/subscription/index.d.ts.map +1 -0
- package/dist/subscription/index.js +359 -0
- package/dist/subscription/index.js.map +14 -0
- package/dist/subscription/proxy.d.ts +54 -0
- package/dist/subscription/proxy.d.ts.map +1 -0
- package/dist/subscription/react/backoff.d.ts +8 -0
- package/dist/subscription/react/backoff.d.ts.map +1 -0
- package/dist/subscription/react/classify.d.ts +15 -0
- package/dist/subscription/react/classify.d.ts.map +1 -0
- package/dist/subscription/react/controller.d.ts +40 -0
- package/dist/subscription/react/controller.d.ts.map +1 -0
- package/dist/subscription/react/fake-timers.d.ts +8 -0
- package/dist/subscription/react/fake-timers.d.ts.map +1 -0
- package/dist/subscription/react/index.d.ts +15 -0
- package/dist/subscription/react/index.d.ts.map +1 -0
- package/dist/subscription/react/index.js +227 -0
- package/dist/subscription/react/index.js.map +17 -0
- package/dist/subscription/react/reconnect.d.ts +9 -0
- package/dist/subscription/react/reconnect.d.ts.map +1 -0
- package/dist/subscription/react/scheduler.d.ts +13 -0
- package/dist/subscription/react/scheduler.d.ts.map +1 -0
- package/dist/subscription/react/timers.d.ts +7 -0
- package/dist/subscription/react/timers.d.ts.map +1 -0
- package/dist/subscription/react/use-live-subscription.d.ts +36 -0
- package/dist/subscription/react/use-live-subscription.d.ts.map +1 -0
- package/dist/subscription/react/versions.d.ts +6 -0
- package/dist/subscription/react/versions.d.ts.map +1 -0
- package/dist/subscription/read.d.ts +17 -0
- package/dist/subscription/read.d.ts.map +1 -0
- package/dist/subscription/refusal.d.ts +11 -0
- package/dist/subscription/refusal.d.ts.map +1 -0
- package/dist/subscription/relay.d.ts +16 -0
- package/dist/subscription/relay.d.ts.map +1 -0
- package/dist/vite/bun.d.ts +21 -0
- package/dist/vite/bun.d.ts.map +1 -0
- package/dist/vite/bundle.d.ts +33 -0
- package/dist/vite/bundle.d.ts.map +1 -0
- package/dist/vite/compress.d.ts +18 -0
- package/dist/vite/compress.d.ts.map +1 -0
- package/dist/vite/config.d.ts +33 -0
- package/dist/vite/config.d.ts.map +1 -0
- package/dist/vite/dev.d.ts +28 -0
- package/dist/vite/dev.d.ts.map +1 -0
- package/dist/vite/entry.d.ts +20 -0
- package/dist/vite/entry.d.ts.map +1 -0
- package/dist/vite/hosts.d.ts +16 -0
- package/dist/vite/hosts.d.ts.map +1 -0
- package/dist/vite/index.d.ts +68 -0
- package/dist/vite/index.d.ts.map +1 -0
- package/dist/vite/index.js +635 -0
- package/dist/vite/index.js.map +22 -0
- package/dist/vite/inline.d.ts +18 -0
- package/dist/vite/inline.d.ts.map +1 -0
- package/dist/vite/node.d.ts +16 -0
- package/dist/vite/node.d.ts.map +1 -0
- package/dist/vite/preview.d.ts +8 -0
- package/dist/vite/preview.d.ts.map +1 -0
- package/dist/vite/runtime.d.ts +8 -0
- package/dist/vite/runtime.d.ts.map +1 -0
- package/dist/vite/socket.d.ts +75 -0
- package/dist/vite/socket.d.ts.map +1 -0
- package/dist/vite/worker.d.ts +16 -0
- package/dist/vite/worker.d.ts.map +1 -0
- package/dist/with-alxia.d.ts +36 -0
- package/dist/with-alxia.d.ts.map +1 -0
- package/docs/README.md +42 -0
- package/docs/guide/api-keys.md +216 -0
- package/docs/guide/beside-the-pages.md +201 -0
- package/docs/guide/csp-nonce.md +166 -0
- package/docs/guide/customising-the-server.md +324 -0
- package/docs/guide/deploying.md +102 -0
- package/docs/guide/document.md +334 -0
- package/docs/guide/errors.md +1147 -0
- package/docs/guide/fetcher.md +355 -0
- package/docs/guide/getting-started.md +112 -0
- package/docs/guide/help.md +325 -0
- package/docs/guide/how-it-works.md +274 -0
- package/docs/guide/link.md +32 -0
- package/docs/guide/lists.md +225 -0
- package/docs/guide/mcp.md +173 -0
- package/docs/guide/media.md +273 -0
- package/docs/guide/navigation.md +52 -0
- package/docs/guide/oauth.md +342 -0
- package/docs/guide/oidc.md +262 -0
- package/docs/guide/openapi.md +51 -0
- package/docs/guide/pwa.md +670 -0
- package/docs/guide/session.md +2105 -0
- package/docs/guide/subscriptions.md +211 -0
- package/docs/guide/testing.md +42 -0
- package/docs/guide/typing-the-loaders.md +311 -0
- package/docs/guide.md +82 -0
- package/docs/roadmap.md +474 -0
- package/docs/troubleshooting.md +3837 -0
- package/package.json +301 -5
package/docs/roadmap.md
ADDED
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
# Roadmap
|
|
2
|
+
|
|
3
|
+
What `@softistx/alxia-react-router` gives an app, and what is coming. This page is
|
|
4
|
+
a direction, not a commitment: the version something shipped in is the only
|
|
5
|
+
number on it. Every release, with each change it made, is in
|
|
6
|
+
[`CHANGELOG.md`](https://github.com/softistx/alxia/blob/develop/packages/react-router/CHANGELOG.md).
|
|
7
|
+
|
|
8
|
+
## Now
|
|
9
|
+
|
|
10
|
+
- **The client build, served compressed.** `react-router build` writes `.br`
|
|
11
|
+
and `.gz` copies beside the compressible files of `build/client`, and the
|
|
12
|
+
server sends the one a browser accepts, with `Vary: Accept-Encoding` and
|
|
13
|
+
the same cache headers. See [the client's
|
|
14
|
+
files](guide/beside-the-pages.md#compressed).
|
|
15
|
+
|
|
16
|
+
- **`@softistx/alxia-react-router/session/react`: the page's hooks around the session
|
|
17
|
+
flows.** `useSignOut`, `useLinkParam`, `useLinkFragment` (a mail link's parameter, read once and optionally dropped
|
|
18
|
+
from the address bar, or with `live: true` following the URL) and `useCodeField` /
|
|
19
|
+
`useOnRefusal` (a one-code field that clears and refocuses on each refusal),
|
|
20
|
+
so an app stops carrying its own copies. See the
|
|
21
|
+
[session guide](guide/session.md#the-pages-hooks).
|
|
22
|
+
|
|
23
|
+
- **`@softistx/alxia-react-router/subscription`: GraphQL subscriptions for the
|
|
24
|
+
browser of a BFF.** `createSubscriptionProxy` gives a resource route's
|
|
25
|
+
`loader` and `action` that relay a subscription over SSE: the server holds
|
|
26
|
+
each allowed document, the bearer comes from the session, the route refuses
|
|
27
|
+
cross-site requests, keeps the stream alive with a heartbeat, aborts the
|
|
28
|
+
upstream with the client and passes a 429 on with `retryAfter`. See the
|
|
29
|
+
[subscriptions guide](guide/subscriptions.md).
|
|
30
|
+
|
|
31
|
+
- **`@softistx/alxia-react-router/subscription/react`: a subscription kept alive in
|
|
32
|
+
the page.** `useLiveSubscription` reconnects with a growing wait, stops on
|
|
33
|
+
a 401 or another refusal repeating cannot change, honours a 429's
|
|
34
|
+
`retryAfter`, drops events older than the highest version per key and reads
|
|
35
|
+
the page again (debounced) after each reopen, with a reconnect-only mode for
|
|
36
|
+
streams that carry the whole state. See the
|
|
37
|
+
[subscriptions guide](guide/subscriptions.md#keep-it-alive-in-the-page).
|
|
38
|
+
|
|
39
|
+
- **`@softistx/alxia-react-router/lists`: hooks for lists whose state is the URL.**
|
|
40
|
+
`useSearchChange` (set or delete search parameters and drop the cursor),
|
|
41
|
+
`useSameRouteLoading` (another search of the same page is loading) and
|
|
42
|
+
`usePagedRows` (append the pages a load-more asks of the same loader, start
|
|
43
|
+
over on a new first page, keep the rows when a page fails). See the
|
|
44
|
+
[lists guide](guide/lists.md).
|
|
45
|
+
|
|
46
|
+
- **`@softistx/alxia-react-router/navigation`: focus and fade on navigation.**
|
|
47
|
+
`useFocusOnNavigate` (focus the page heading after a client `PUSH` or `POP`
|
|
48
|
+
that changed the pathname, not on a reload) and `useRouteTransition` (a
|
|
49
|
+
`transitioning` flag only when the pathname changes). See the
|
|
50
|
+
[navigation guide](guide/navigation.md).
|
|
51
|
+
|
|
52
|
+
- **`@softistx/alxia-react-router/oidc`: a relying party of an external OpenID Connect
|
|
53
|
+
issuer.** `oidcClient` gives `signIn`, `callback`, `requireOidcUser` and
|
|
54
|
+
`logout`: authorization code with PKCE, state and nonce in a `__Host-`
|
|
55
|
+
challenge cookie, discovery, the id token validated against the issuer's keys
|
|
56
|
+
(`jose`, an optional peer), a sealed token cookie, a single-flight refresh
|
|
57
|
+
and RP-initiated logout, optionally revoking the refresh and access tokens
|
|
58
|
+
at logout (`revokeOnLogout`, RFC 7009). It also pushes the authorization request (`par`,
|
|
59
|
+
RFC 9126) and binds tokens with DPoP (`dpop`, RFC 9449, with the
|
|
60
|
+
`use_dpop_nonce` retry and `user.dpop` for calls to a resource). See the
|
|
61
|
+
[OIDC guide](guide/oidc.md).
|
|
62
|
+
|
|
63
|
+
- **`@softistx/alxia-react-router/oauth`: the consent screen of an OAuth server.**
|
|
64
|
+
`oauthConsent` gives a route's `loader` and `action` over the three
|
|
65
|
+
janus-oauth GraphQL calls (passed in as functions): the sign-in round trip,
|
|
66
|
+
`no-store`, the expired state, the step-up refusal and a callback address
|
|
67
|
+
that is only followed when it is http(s). `useConsent`
|
|
68
|
+
(`/oauth/react`) posts the decision, replays it after the shared step-up
|
|
69
|
+
and follows the callback. `oauthGrants` gives the account's connected apps:
|
|
70
|
+
the grants newest first with their scopes mapped, and a revoke that answers
|
|
71
|
+
revoked, already revoked or step-up. See the [OAuth guide](guide/oauth.md).
|
|
72
|
+
|
|
73
|
+
- **`@softistx/alxia-react-router/media`: files relayed through the app's own address.**
|
|
74
|
+
A BFF serves and receives an API's media (images, audio, PDFs) on its own
|
|
75
|
+
origin, streamed both ways, so the page needs no separate media host and no
|
|
76
|
+
extra image source. It builds on `@softistx/alxia-media`, the package that defines
|
|
77
|
+
media kinds and mounts the API's upload and download routes with per-kind
|
|
78
|
+
access rules, byte ranges and cache validators
|
|
79
|
+
([#600](https://github.com/softistx/alxia/issues/600)).
|
|
80
|
+
|
|
81
|
+
- **Moving to the `@softistx` scope.** The package is now `@softistx/alxia-react-router` (it was `@alxia/react-router`). Same code and API; replace the dependency and the imports ([migration guide](https://github.com/softistx/alxia/blob/develop/packages/core/docs/guide/migrating-from-alxia-scope.md)). The old name is deprecated.
|
|
82
|
+
|
|
83
|
+
## Next
|
|
84
|
+
|
|
85
|
+
Nothing queued; see Later.
|
|
86
|
+
|
|
87
|
+
## Later
|
|
88
|
+
|
|
89
|
+
- **A signed device cookie for BFFs.** A cookie the app signs and the
|
|
90
|
+
browser keeps across sessions, so a sign-in can tell a known device from a
|
|
91
|
+
new one.
|
|
92
|
+
- **Hreflang alternates** for an app with one URL per language. Today the
|
|
93
|
+
language is negotiated on a single URL, so there is no alternate to link.
|
|
94
|
+
- **`service-worker.js` served revalidated with no setup.** Today the app
|
|
95
|
+
adds `noCache` for `SERVICE_WORKER_URL` itself.
|
|
96
|
+
- **A check of an offline page's policy.** The offline page declares its
|
|
97
|
+
Content-Security-Policy in a `<meta>`; a check would read the page and
|
|
98
|
+
confirm that each inline script and style is allowed by its hash.
|
|
99
|
+
- **`context.alxia` typed under `Route.LoaderArgs`.** Once react-router's
|
|
100
|
+
`./internal` types and its main entry share one `RouterContextProvider`
|
|
101
|
+
declaration, the generated route types see the shorthand too; today
|
|
102
|
+
they use `withAlxia` or `alxiaOf(context)`.
|
|
103
|
+
- **`page()` under `react-router dev`.** An HTTP request reaches the app
|
|
104
|
+
through `app.fetch`, so a Bun HTML bundle waits for the build.
|
|
105
|
+
- **The logger's duration of a streamed page**, to its last byte rather
|
|
106
|
+
than its first.
|
|
107
|
+
- **A React Router `basename`**, the app served under a path.
|
|
108
|
+
- **One file**, `bun build --compile`, holding the server and the build.
|
|
109
|
+
|
|
110
|
+
## Not planned
|
|
111
|
+
|
|
112
|
+
- **The theme's own boot script.** `InlineScript` renders it with the nonce;
|
|
113
|
+
its text, its storage keys and class names, are the UI library's.
|
|
114
|
+
- **React Router 7.** Its loaders' context is a `RouterContextProvider`
|
|
115
|
+
only behind `future.v8_middleware`, and the line is in maintenance.
|
|
116
|
+
- **Node or Cloudflare.** alxia is a Bun framework; React Router's own
|
|
117
|
+
adapters serve those runtimes.
|
|
118
|
+
- **The pages in the OpenAPI document.** Documents and single-fetch data
|
|
119
|
+
are not something a generated client calls, so `isReactRouterRoute`
|
|
120
|
+
leaves the catch-all out of `matchesSpec`'s check.
|
|
121
|
+
- **A runtime dependency.** The package declares none: `@softistx/alxia` and
|
|
122
|
+
`react-router` are peers.
|
|
123
|
+
- **A `react-router-serve` of its own.** `bun build/server/index.js` is the
|
|
124
|
+
server; there is no separate command to serve a build.
|
|
125
|
+
- **A `reveal folder` target.** react-router-hono-server's `reveal folder`
|
|
126
|
+
writes `app/server/index.ts`. Here the plugin reads `app/server.ts` or
|
|
127
|
+
the file `alxia({ entry })` names, and `reveal` writes that file:
|
|
128
|
+
`alxia({ entry: 'app/server/index.ts' })` gives the folder form.
|
|
129
|
+
- **Several runtimes from one plugin.** react-router-hono-server picks Node,
|
|
130
|
+
Bun, Deno or Cloudflare with a `runtime` option; alxia is Bun's.
|
|
131
|
+
|
|
132
|
+
## Shipped
|
|
133
|
+
|
|
134
|
+
### Unreleased
|
|
135
|
+
|
|
136
|
+
- **`useStepUpRunner` in `@alxia/react-router/session/react`.** `run(request)`
|
|
137
|
+
posts a sensitive action and resolves with its outcome or `'cancelled'`;
|
|
138
|
+
the step-up opens and the same request is replayed once confirmed. See the
|
|
139
|
+
[session guide](guide/session.md#usestepuprunner).
|
|
140
|
+
|
|
141
|
+
- **`@alxia/react-router/help`: the lazy `HelpPanel` and `useGuideRole`.**
|
|
142
|
+
`HelpPanel` loads the flows and the sheet's chunk on the first open, calls
|
|
143
|
+
`onLoadError` once on a failure and lets the next open retry; `useGuideRole`
|
|
144
|
+
and `highestGuideRole` hold the role a guide reader opens on. Both are
|
|
145
|
+
headless. See the [flow docs guide](guide/help.md#the-lazy-panel-helppanel).
|
|
146
|
+
|
|
147
|
+
- **`HelpPanel` hands data to its sheet.** `sheetProps` is forwarded to the
|
|
148
|
+
lazily loaded sheet and typed by the sheet's own props, so the app needs no
|
|
149
|
+
React context of its own. See
|
|
150
|
+
[passing data to the sheet](guide/help.md#passing-data-to-the-sheet-sheetprops).
|
|
151
|
+
|
|
152
|
+
- **`@alxia/react-router/api-keys`: a user's API keys.** `apiKeys` lists
|
|
153
|
+
them newest first, creates one with a secret shown once (never cached),
|
|
154
|
+
revokes one (an unknown key counts as revoked) and answers a step-up for
|
|
155
|
+
the page to replay. See the [API keys guide](guide/api-keys.md).
|
|
156
|
+
|
|
157
|
+
- **A consent request is bound to the browser that opened it.** `mcpRelay`
|
|
158
|
+
sets an httpOnly, `SameSite=Lax` cookie naming the request when
|
|
159
|
+
`/oauth/authorize` redirects to the app's own consent page, and
|
|
160
|
+
`oauthConsent` hands its `caller` the binding (`requireBinding` refuses a
|
|
161
|
+
request another browser opened). See the
|
|
162
|
+
[OAuth guide](guide/oauth.md#bind-the-request-to-the-browser).
|
|
163
|
+
|
|
164
|
+
- **Bind an OAuth grant to what the user picks.** `oauthConsent` takes
|
|
165
|
+
`choices` (what the picker offers) and `requireBound`, passes the posted
|
|
166
|
+
`bound: { type, id }` to `approve`, and `useConsent`'s `approve(bound)`
|
|
167
|
+
posts it. See the [OAuth guide](guide/oauth.md#binding-the-grant-to-something-the-user-picks).
|
|
168
|
+
|
|
169
|
+
- **`mcpRelay` reads core's `MCP_RELAY_PATHS`.** The relay, the API's
|
|
170
|
+
`requireProxySecret` and a deploy's rate limits share one list. See the
|
|
171
|
+
[MCP guide](guide/mcp.md#let-the-api-accept-them-from-the-relay-alone).
|
|
172
|
+
|
|
173
|
+
- **`@alxia/react-router/session`: a mail-link route for `fetch`.**
|
|
174
|
+
`handingOver` answers a request that asks for it (`postLinkArgs` does) with
|
|
175
|
+
a link route's redirects as `{ redirect, replace? }` data, cookies kept, and
|
|
176
|
+
`postLinkRequest` and `postLinkArgs` of `/session/model` return a
|
|
177
|
+
promise-based auth form's refusal, so no app writes the glue. See the
|
|
178
|
+
[session guide](guide/session.md#a-page-that-posts-with-fetch).
|
|
179
|
+
|
|
180
|
+
- **`@alxia/react-router/lists`: a connection's nodes.** `nodesOf` returns
|
|
181
|
+
the nodes of a GraphQL connection's `edges { node }` in order, and `[]` for
|
|
182
|
+
a missing connection, so a loader stops unwrapping it by hand. See the
|
|
183
|
+
[lists guide](guide/lists.md#a-connections-nodes-nodesof).
|
|
184
|
+
|
|
185
|
+
- **`@alxia/react-router/lists`: numbered pages over a cursor connection.**
|
|
186
|
+
`connectionPage` serves a loader's `?page=3` over a GraphQL connection paged
|
|
187
|
+
by cursor: it walks `first`/`after` from the start under the API's cap and
|
|
188
|
+
gives the last page when the one asked is past it. See the
|
|
189
|
+
[lists guide](guide/lists.md#numbered-pages-over-a-cursor-connection-connectionpage).
|
|
190
|
+
|
|
191
|
+
- **`@alxia/react-router/help`: per-role flow docs and the data of a help
|
|
192
|
+
panel.** `loadHelpFlows` parses and validates `docs/flows/<name>.<lang>.md`
|
|
193
|
+
(a front-matter, one `##` per step, four WebP captures) at build time,
|
|
194
|
+
`useHelpFlows` answers the flows of the current route and the user's roles
|
|
195
|
+
in the shape of `HelpSheet`, and `alxia-react-router help check` fails when
|
|
196
|
+
a screen has no flow, a flow cites an unknown route or a capture is
|
|
197
|
+
missing. See the [guide](guide/help.md).
|
|
198
|
+
|
|
199
|
+
- **`@alxia/react-router/media`: media through the BFF.** `proxyMediaRead`
|
|
200
|
+
and `proxyMediaWrite` are the `loader` and `action` of a `/media/*` route
|
|
201
|
+
relaying the API's `@alxia/media` routes: same-site check, the session's
|
|
202
|
+
Bearer, a 413 before the API for a declared length over the kind's limit,
|
|
203
|
+
both bodies streamed, Range and ETag passed through. Opt-in `onRefusal`,
|
|
204
|
+
`onSuccess`, `forwardQuery` and `requireHeaders` word the answers, pass the
|
|
205
|
+
query string and demand a header on writes. See the
|
|
206
|
+
[media guide](guide/media.md).
|
|
207
|
+
- **Link a provider with `socialRoutes()`.** An optional `linkStart` and a
|
|
208
|
+
`link` loader start a link flow for a signed-in user; the one callback
|
|
209
|
+
serves both flows and `complete` is told the `kind`. A `linked` outcome lands
|
|
210
|
+
on the outcome's `returnTo`, else the kept one when not `/`, else
|
|
211
|
+
`paths.linked`, with `?social=linked`. See
|
|
212
|
+
[Linking a provider](guide/session.md#linking-a-provider).
|
|
213
|
+
- **`socialRoutes()` keeps `returnTo`.** The checked `?next` rides in the flow
|
|
214
|
+
cookie and reaches `complete` as `returnTo`; a session or second factor with
|
|
215
|
+
none of its own lands on it. See [Social
|
|
216
|
+
sign-in](guide/session.md#social-sign-in).
|
|
217
|
+
- **`useRevalidateOnFocus` on `/fetcher`.** The route's loaders are read again
|
|
218
|
+
once when the user comes back to the page after being away for at least
|
|
219
|
+
`minHiddenMs` (30 s by default), with no timer. See [Fresh data on
|
|
220
|
+
return](guide/fetcher.md#fresh-data-on-return-userevalidateonfocusoptions).
|
|
221
|
+
|
|
222
|
+
### 0.52.0
|
|
223
|
+
|
|
224
|
+
- **MCP relay** (`@alxia/react-router/mcp`): an app serves an API's MCP and
|
|
225
|
+
OAuth endpoints on its own origin, relayed as a `beforeAll` plugin. See the
|
|
226
|
+
[MCP guide](guide/mcp.md).
|
|
227
|
+
|
|
228
|
+
### 0.41.0
|
|
229
|
+
|
|
230
|
+
- **`useVisibleInterval` and `useVisibleRevalidation` on `/fetcher`.** A
|
|
231
|
+
callback, or a revalidation of the route's loaders, runs every N ms only
|
|
232
|
+
while the page is visible, and at once when a hidden page comes back after
|
|
233
|
+
more than N ms. See [Fresh data while the page is
|
|
234
|
+
visible](guide/fetcher.md#fresh-data-while-the-page-is-visible-usevisibleintervalcallback-ms-options).
|
|
235
|
+
|
|
236
|
+
### 0.40.0
|
|
237
|
+
|
|
238
|
+
- **A delay-only global bucket for `createSignInThrottle`.** With
|
|
239
|
+
`globalMode: 'delay'`, `wait` answers per key only and `globalDelay()` gives
|
|
240
|
+
a bounded delay (capped at `maxDelayMs`) that grows with the failures past
|
|
241
|
+
`globalMax`, so a flood from many addresses is slowed without turning the
|
|
242
|
+
real user away. Refusing stays the default. See [A delay-only global
|
|
243
|
+
bucket](guide/session.md#a-delay-only-global-bucket).
|
|
244
|
+
|
|
245
|
+
### 0.39.0
|
|
246
|
+
|
|
247
|
+
- **`createSignInThrottle` on `/session`.** A failed-attempt throttle for a
|
|
248
|
+
password sign-in: `wait`, `fail` and `clear` per key within a window, a
|
|
249
|
+
bounded number of keys, a global bucket that delays rather than locks, and
|
|
250
|
+
`verify`, which holds password hashing to a small concurrency and refuses
|
|
251
|
+
past a short queue. Per process. See [A sign-in
|
|
252
|
+
throttle](guide/session.md#a-sign-in-throttle).
|
|
253
|
+
|
|
254
|
+
### 0.38.0
|
|
255
|
+
|
|
256
|
+
- **`useFetcherPromise` on `/fetcher`.** `run(submit)` returns a Promise
|
|
257
|
+
settled by the fetcher's next new answer, rejected with an `Error` when your
|
|
258
|
+
`refusal(answer)` returns a message. See [One submission's answer as a
|
|
259
|
+
Promise](guide/fetcher.md#one-submissions-answer-as-a-promise-usefetcherpromisefetcher-options).
|
|
260
|
+
|
|
261
|
+
### 0.35.0
|
|
262
|
+
|
|
263
|
+
- **A health probe in `createServer`.** `health: '/health'` or `{ path,
|
|
264
|
+
check, timeout }` declares `@alxia/core`'s liveness probe, in text, before
|
|
265
|
+
every middleware. See [A health
|
|
266
|
+
probe](guide/customising-the-server.md#a-health-probe).
|
|
267
|
+
|
|
268
|
+
### 0.14.0
|
|
269
|
+
|
|
270
|
+
- **`@alxia/react-router/session` and `/session/model`: a BFF session for a
|
|
271
|
+
janus API.** An app that is the backend of its own pages and calls a GraphQL
|
|
272
|
+
API that signs users in with `@softistx/janus` gets its session from one place:
|
|
273
|
+
`sessionCookies` (the session and, when the API has one, the second-factor
|
|
274
|
+
challenge, in an HttpOnly cookie), `signInFlow` (where a sign-in lands, the second factor,
|
|
275
|
+
the viewer, sign-out), `stepUpSteps` (the code asked before a sensitive
|
|
276
|
+
action), `authLinks` and `TOKEN_PAGE_HEADERS` (the pages a mail's link
|
|
277
|
+
opens). `/session/model` imports nothing and is safe in a component: `safeNext`
|
|
278
|
+
and `signInPath` (redirects that stay on the site), `TOTP_CODE`, and the
|
|
279
|
+
step-up's `stepUpReducer` and `stepUpProps`. Every step that signs in, out, spends or mails refuses a cross-site post. `/errors` gains `attemptsLeftOf`.
|
|
280
|
+
`/errors` also exports `isThrottledReason`, and `attemptsLeftOf` answers `undefined` for a throttled refusal.
|
|
281
|
+
See the [session guide](guide/session.md).
|
|
282
|
+
|
|
283
|
+
### 0.13.0
|
|
284
|
+
|
|
285
|
+
- **`reword` in `createApiErrors`.** An optional
|
|
286
|
+
`reword(text, error, { code, values, language })` words a whole family of
|
|
287
|
+
codes once, such as adding a suffix to every `*.errors.referenced` refusal.
|
|
288
|
+
It runs on the final text of an API error, whatever produced it (the
|
|
289
|
+
catalogue, the API's message or `byCode`), and does not apply to `refused`,
|
|
290
|
+
`unavailable` or the entries of `extensions.fields`. See the
|
|
291
|
+
[errors guide](guide/errors.md).
|
|
292
|
+
|
|
293
|
+
### 0.12.0
|
|
294
|
+
|
|
295
|
+
- **`@alxia/react-router/document` and `/entry`: the boot of a page.**
|
|
296
|
+
`DocumentNonce`, `useNonce`, `InlineScript` and `CspNonceMeta` give the
|
|
297
|
+
root the response's CSP nonce, an inline boot script that carries it and
|
|
298
|
+
the `csp-nonce` meta; `createPageLanguage` and `textDirection` give the
|
|
299
|
+
page's language and text direction. `entry.server.tsx` becomes
|
|
300
|
+
`export { handleRequest as default, streamTimeout } from '@alxia/react-router/entry'`:
|
|
301
|
+
a streamed shell on Bun's web renderer, the whole page for a bot and in SPA
|
|
302
|
+
mode, no body for HEAD, and the nonce handed to the router, with no
|
|
303
|
+
`@react-router/node` and no `node:stream`.
|
|
304
|
+
|
|
305
|
+
### 0.11.0
|
|
306
|
+
|
|
307
|
+
- **`@alxia/react-router/errors`: an API's refusals, worded for the page.**
|
|
308
|
+
A server's GraphQL refusals (`<module>.errors.<slug>`, `params`, `fields`)
|
|
309
|
+
are worded from its error catalogue in the page's language, for forms,
|
|
310
|
+
fetchers, loaders and the error page, with no UI. You get the shape of a
|
|
311
|
+
refusal, the request id and `nextOf`, the catalogue store
|
|
312
|
+
(`createApiMessages`), the form checks' resolver (`apiCodeResolver`), the
|
|
313
|
+
provider (`ApiMessagesProvider`) and the wording of a refusal
|
|
314
|
+
(`createApiErrors`: message, fields and status), the route helpers
|
|
315
|
+
(`routeError`, `errorRequestId`) and the actions' helpers (`fetcherResult`,
|
|
316
|
+
`fetcherRefusal`, `formRefusal`, `submitForm`; `useFormRefusal` on `/fetcher`), the JSON actions (`jsonActions`:
|
|
317
|
+
`readJson` with its same-origin CSRF check, `requireJsonPost`, and
|
|
318
|
+
`readInput` over a Standard Schema) with their fetcher hook
|
|
319
|
+
(`useJsonFetcher`), the catalogue's refresh (`createErrorCatalogue`: read
|
|
320
|
+
on first use with a bounded wait, checked against the API's versions once
|
|
321
|
+
per TTL, `warm()` at startup, `clientMessages()` for the root), and the
|
|
322
|
+
failures of a call (`apiCallFailure`, `operationName`) ([guide](guide/errors.md)).
|
|
323
|
+
|
|
324
|
+
### 0.10.0
|
|
325
|
+
|
|
326
|
+
- **`@alxia/react-router/pwa/worker`.** `startWorker({ contract })` is the
|
|
327
|
+
whole service worker on Workbox: the precache, a page load always from the
|
|
328
|
+
network with the offline page when it fails, hashed bundles cache-first,
|
|
329
|
+
other static files stale-while-revalidate, and the update applied on
|
|
330
|
+
request. An app's `app/service-worker.ts` is a few lines; the `workbox-*`
|
|
331
|
+
packages are optional peers ([guide](guide/pwa.md)).
|
|
332
|
+
- **`@alxia/react-router/pwa/build`.** `buildWorker({ file })` bundles the
|
|
333
|
+
worker after `react-router build`, with the precache list written in: the
|
|
334
|
+
offline page, every route's code and the fonts you name.
|
|
335
|
+
- **`alxia({ worker })`.** With `app/service-worker.ts` in the app,
|
|
336
|
+
`react-router build` writes `build/client/service-worker.js` itself, with
|
|
337
|
+
no script to add; `worker` names another file, tunes the build or turns
|
|
338
|
+
it off.
|
|
339
|
+
|
|
340
|
+
### 0.9.0
|
|
341
|
+
|
|
342
|
+
- **`@alxia/react-router/pwa`.** The code with no UI an installable app
|
|
343
|
+
shares, importing nothing: the service worker's contract and cache names
|
|
344
|
+
(`defineWorkerContract`), which requests the worker caches and which
|
|
345
|
+
responses it may store (`cachingFor`, `isStorable`), the precache list read
|
|
346
|
+
from the build, registering the worker and the update notice's store, the
|
|
347
|
+
web app manifest with its language in `?lang=`, and `clearAppCaches` for
|
|
348
|
+
sign-out. Every app-specific name is an option, so two apps never share a
|
|
349
|
+
default ([guide](guide/pwa.md)).
|
|
350
|
+
- **`@alxia/react-router/pwa/react`.** `useOnline`, `useServiceWorker({
|
|
351
|
+
enabled })` and `useUpdateNotice`, with the page's one `updateNotice`;
|
|
352
|
+
`react` is an optional peer.
|
|
353
|
+
- **`@alxia/react-router/pwa/server`.** `noCache` serves the worker's
|
|
354
|
+
script revalidated on every update check, with the worker's own policy
|
|
355
|
+
(`revalidated` and `WORKER_POLICY` beneath it).
|
|
356
|
+
|
|
357
|
+
### 0.8.0
|
|
358
|
+
|
|
359
|
+
- **`withAlxia(fn)`.** A loader, an action or a middleware given `alxia`,
|
|
360
|
+
typed by `Register`, under the generated `Route.LoaderArgs`, with the
|
|
361
|
+
page's `loaderData` still inferred from what it returns.
|
|
362
|
+
- **`context.alxia`.** The object `alxiaOf(context)` returns, on React
|
|
363
|
+
Router's provider with no import, typed by `Register` with
|
|
364
|
+
`LoaderFunctionArgs` and `ActionFunctionArgs` from `react-router`;
|
|
365
|
+
`alxiaOf(context)` stays the form for the generated `Route.LoaderArgs`.
|
|
366
|
+
- **`ctx.server` in dev.** Under `react-router dev` and `vite preview`, a
|
|
367
|
+
loader's `alxiaOf(context).server` is the server the app's sockets are
|
|
368
|
+
relayed to, so an action's `publish` reaches them as from the build.
|
|
369
|
+
|
|
370
|
+
### 0.7.0
|
|
371
|
+
|
|
372
|
+
- **The public URL behind a proxy.** `createServer({ proxy: trustProxy({ trusted }) })`,
|
|
373
|
+
or `alxia({ proxy })` for a server of your own: React Router's
|
|
374
|
+
`request.url` is the URL the client asked for, the scheme and host the
|
|
375
|
+
trusted proxy said, and `ctx.ip` the client's; a direct client's
|
|
376
|
+
forwarded headers are ignored.
|
|
377
|
+
|
|
378
|
+
### 0.6.0
|
|
379
|
+
|
|
380
|
+
- **Middlewares around the pages.** `beforeAll` and `configure` take
|
|
381
|
+
`use(logger())`, `use(secureHeaders())` and the other middlewares of
|
|
382
|
+
alxia 0.4, which run on the pages, the client's files declared after
|
|
383
|
+
them, and every request no route matches; the request hooks they replaced,
|
|
384
|
+
deprecated in 0.4, were removed in 0.5.
|
|
385
|
+
- **One graceful shutdown.** `start` relies on `@alxia/core`'s `listen`,
|
|
386
|
+
which handles `SIGINT` and `SIGTERM` itself, before `onListen` as
|
|
387
|
+
before: the requests in flight drain within `shutdownTimeout`
|
|
388
|
+
(`listen: { shutdownTimeout }`), readiness turns 503, the `onStop`
|
|
389
|
+
hooks run, then the process exits.
|
|
390
|
+
|
|
391
|
+
### 0.5.0
|
|
392
|
+
|
|
393
|
+
- **Loaders typed by core's `Register`.** `alxiaOf(context)` reads the base
|
|
394
|
+
`@alxia/core`'s `Register` names when this package's names no server, so
|
|
395
|
+
an app that registers its context once types its loaders too. This
|
|
396
|
+
package's `Register` still wins when both are declared.
|
|
397
|
+
|
|
398
|
+
### 0.4.0
|
|
399
|
+
|
|
400
|
+
- **A self-contained build.** `react-router build` bundles every package
|
|
401
|
+
into `build/server/index.js`, React, React Router and alxia included,
|
|
402
|
+
so `build/` runs with no `node_modules` and a Docker image copies it
|
|
403
|
+
alone. Never in dev; `ssr.external` keeps a package external, and
|
|
404
|
+
`ssr.external: true` every package.
|
|
405
|
+
|
|
406
|
+
### 0.3.0
|
|
407
|
+
|
|
408
|
+
- **The server is built for Bun.** `alxia()` adds the `bun` export
|
|
409
|
+
condition to the `ssr` environment's conditions and external
|
|
410
|
+
conditions, keeps `bun` and `bun:*` external whichever runtime runs
|
|
411
|
+
Vite, and targets `esnext`, in dev and in the build, with nothing to
|
|
412
|
+
configure. A package's `bun` variant is the one bundled, and what the
|
|
413
|
+
app sets is kept.
|
|
414
|
+
- **A Docker image on Bun.** The guide's Deploying has a multi-stage
|
|
415
|
+
`Dockerfile` on `oven/bun:1`, running `bun build/server/index.js` as a
|
|
416
|
+
non-root user.
|
|
417
|
+
|
|
418
|
+
### 0.2.0
|
|
419
|
+
|
|
420
|
+
- **A per-request CSP nonce.** `nonceOf(loadContext)` reads the nonce that
|
|
421
|
+
`@alxia/secure-headers`' `nonce: true`, or a `derive` of the app's own,
|
|
422
|
+
put on the context, so `entry.server.tsx` hands it to `<ServerRouter
|
|
423
|
+
nonce>` and React in three lines. Every script of the page carries the
|
|
424
|
+
nonce of its own response's policy, which needs no `'unsafe-inline'`.
|
|
425
|
+
Neither package depends on the other.
|
|
426
|
+
|
|
427
|
+
### 0.1.0
|
|
428
|
+
|
|
429
|
+
- **React Router as a catch-all.** `reactRouter(app, { build })` serves
|
|
430
|
+
documents, single-fetch data, actions, redirects with every cookie, lazy
|
|
431
|
+
route discovery and the error pages, behind every middleware declared
|
|
432
|
+
before it, streamed as React renders them.
|
|
433
|
+
- **The context, typed.** `alxiaOf<App>(context)` reads what alxia's middlewares
|
|
434
|
+
built in any loader, action or middleware, through a key that is one
|
|
435
|
+
object however the server was built; `getLoadContext` sets the app's own
|
|
436
|
+
keys.
|
|
437
|
+
- **The client's files.** `client` serves `assets/` immutable and the
|
|
438
|
+
copies of `public/` with an hour's cache, through the core's `static` and
|
|
439
|
+
`file`.
|
|
440
|
+
- **`HEAD` with headers.** A `HEAD` is answered as its `GET`, less the
|
|
441
|
+
body.
|
|
442
|
+
- **OpenAPI.** `isReactRouterRoute` leaves the catch-all and the client's
|
|
443
|
+
files out of a check of `app.routes` against the document, such as
|
|
444
|
+
`@alxia/openapi`'s `matchesSpec`.
|
|
445
|
+
- **Zero config, with Vite.** `@alxia/react-router/vite`'s `alxia()`,
|
|
446
|
+
anywhere in `plugins`, is all an app from the official template needs.
|
|
447
|
+
Without `app/server.ts` a default server serves the pages; with it,
|
|
448
|
+
`createServer({ beforeAll, configure, getLoadContext, … })` customises
|
|
449
|
+
the app, and the plugin wires React Router's build, the mode and the
|
|
450
|
+
client folder. Under `react-router dev` the server is loaded through
|
|
451
|
+
Vite's SSR runner, with HMR, its own edits live and the app's context keys
|
|
452
|
+
shared. `react-router build` makes `build/server/index.js` the server,
|
|
453
|
+
prerendering included: run, it listens on `PORT` and `HOST` and stops on
|
|
454
|
+
`SIGTERM`; imported, it starts nothing.
|
|
455
|
+
- **`vite preview` serves the built server.** After `react-router build`,
|
|
456
|
+
`bunx --bun vite preview` hands every request to `build/server/index.js`,
|
|
457
|
+
as `bun run start` would answer it: the pages, `/api`, the client's files
|
|
458
|
+
and the app's middlewares. React Router's prerendering runs on the same
|
|
459
|
+
server, so a prerendered page's loader reads `alxiaOf`.
|
|
460
|
+
- **`bunx alxia-react-router reveal`.** The package's bin writes the
|
|
461
|
+
default server into the app, `app/server.ts` or `alxia({ entry })`'s
|
|
462
|
+
file: `createServer()` with `beforeAll`, `configure` and
|
|
463
|
+
`getLoadContext` commented, and the `Register` declaration. It refuses
|
|
464
|
+
to overwrite a file already there unless given `--force`, and runs under
|
|
465
|
+
Bun with no Node.
|
|
466
|
+
- **WebSockets in dev and preview.** An alxia `ws` route connects under
|
|
467
|
+
`react-router dev` and `vite preview` as from the build, with nothing to
|
|
468
|
+
configure: the plugin relays each upgrade Vite does not claim (HMR, its
|
|
469
|
+
proxy) to a `Bun.serve` of the app, so its middlewares, refusals,
|
|
470
|
+
`socket.data` and handlers run as `listen` runs them, and in dev an edit
|
|
471
|
+
to the server is used from the next connection.
|
|
472
|
+
- **Loaders typed with no type argument.** A `Register` declaration beside
|
|
473
|
+
the server types `alxiaOf(context)`; `alxiaOf<typeof server>` and an app
|
|
474
|
+
still work, and with neither it is `BaseContext`.
|