4b712de788
## Summary - Rename `effect-fc-next` to `effect-view` and update package metadata, internal symbols, imports, and repository references. - Promote the Effect 4 example to `packages/example` and move the legacy Effect 3 example to `packages/effect-fc-example`. - Add `effect-view` to the npm publishing workflow. - Update the Vite Fast Refresh plugin for `effect-view` and rename `effectViewPlugin()` to `effectView()`. - Upgrade Effect, React, TypeScript, build tooling, and related dependencies. - Refresh the documentation and homepage. ## Documentation - Add a dedicated Async guide covering: - Suspense fallbacks - Hook ordering - Memoization - Structural prop equality - Clarify synchronous and asynchronous component behavior. - Document runner scope and service requirements. - Explain stable construction of Query, Mutation, and Form instances. - Expand focused Lens and Form examples, including curried focus helpers. - Document the optional `@effect/platform-browser` dependency for window-focus query refresh. - Improve the Forms guide structure and examples. - Fix responsive homepage headline wrapping and update homepage copy. ## Notable API changes - Package rename: ```diff - effect-fc-next + effect-view --------- Co-authored-by: Julien Valverdé <julien.valverde@mailo.com> Reviewed-on: #59
150 lines
4.2 KiB
TypeScript
150 lines
4.2 KiB
TypeScript
/* eslint-disable */
|
|
|
|
// @ts-nocheck
|
|
|
|
// noinspection JSUnusedGlobalSymbols
|
|
|
|
// This file was automatically generated by TanStack Router.
|
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
|
|
import { Route as rootRouteImport } from './routes/__root'
|
|
import { Route as IndexRouteImport } from './routes/index'
|
|
import { Route as AsyncRouteImport } from './routes/async'
|
|
import { Route as BlankRouteImport } from './routes/blank'
|
|
import { Route as FormRouteImport } from './routes/form'
|
|
import { Route as LensformRouteImport } from './routes/lensform'
|
|
import { Route as QueryRouteImport } from './routes/query'
|
|
|
|
const IndexRoute = IndexRouteImport.update({
|
|
id: '/',
|
|
path: '/',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const AsyncRoute = AsyncRouteImport.update({
|
|
id: '/async',
|
|
path: '/async',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const BlankRoute = BlankRouteImport.update({
|
|
id: '/blank',
|
|
path: '/blank',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const FormRoute = FormRouteImport.update({
|
|
id: '/form',
|
|
path: '/form',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const LensformRoute = LensformRouteImport.update({
|
|
id: '/lensform',
|
|
path: '/lensform',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const QueryRoute = QueryRouteImport.update({
|
|
id: '/query',
|
|
path: '/query',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
|
|
export interface FileRoutesByFullPath {
|
|
'/': typeof IndexRoute
|
|
'/async': typeof AsyncRoute
|
|
'/blank': typeof BlankRoute
|
|
'/form': typeof FormRoute
|
|
'/lensform': typeof LensformRoute
|
|
'/query': typeof QueryRoute
|
|
}
|
|
export interface FileRoutesByTo {
|
|
'/': typeof IndexRoute
|
|
'/async': typeof AsyncRoute
|
|
'/blank': typeof BlankRoute
|
|
'/form': typeof FormRoute
|
|
'/lensform': typeof LensformRoute
|
|
'/query': typeof QueryRoute
|
|
}
|
|
export interface FileRoutesById {
|
|
__root__: typeof rootRouteImport
|
|
'/': typeof IndexRoute
|
|
'/async': typeof AsyncRoute
|
|
'/blank': typeof BlankRoute
|
|
'/form': typeof FormRoute
|
|
'/lensform': typeof LensformRoute
|
|
'/query': typeof QueryRoute
|
|
}
|
|
export interface FileRouteTypes {
|
|
fileRoutesByFullPath: FileRoutesByFullPath
|
|
fullPaths: '/' | '/async' | '/blank' | '/form' | '/lensform' | '/query'
|
|
fileRoutesByTo: FileRoutesByTo
|
|
to: '/' | '/async' | '/blank' | '/form' | '/lensform' | '/query'
|
|
id: '__root__' | '/' | '/async' | '/blank' | '/form' | '/lensform' | '/query'
|
|
fileRoutesById: FileRoutesById
|
|
}
|
|
export interface RootRouteChildren {
|
|
IndexRoute: typeof IndexRoute
|
|
AsyncRoute: typeof AsyncRoute
|
|
BlankRoute: typeof BlankRoute
|
|
FormRoute: typeof FormRoute
|
|
LensformRoute: typeof LensformRoute
|
|
QueryRoute: typeof QueryRoute
|
|
}
|
|
|
|
declare module '@tanstack/react-router' {
|
|
interface FileRoutesByPath {
|
|
'/': {
|
|
id: '/'
|
|
path: '/'
|
|
fullPath: '/'
|
|
preLoaderRoute: typeof IndexRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/async': {
|
|
id: '/async'
|
|
path: '/async'
|
|
fullPath: '/async'
|
|
preLoaderRoute: typeof AsyncRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/blank': {
|
|
id: '/blank'
|
|
path: '/blank'
|
|
fullPath: '/blank'
|
|
preLoaderRoute: typeof BlankRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/form': {
|
|
id: '/form'
|
|
path: '/form'
|
|
fullPath: '/form'
|
|
preLoaderRoute: typeof FormRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/lensform': {
|
|
id: '/lensform'
|
|
path: '/lensform'
|
|
fullPath: '/lensform'
|
|
preLoaderRoute: typeof LensformRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/query': {
|
|
id: '/query'
|
|
path: '/query'
|
|
fullPath: '/query'
|
|
preLoaderRoute: typeof QueryRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
}
|
|
}
|
|
|
|
const rootRouteChildren: RootRouteChildren = {
|
|
IndexRoute: IndexRoute,
|
|
AsyncRoute: AsyncRoute,
|
|
BlankRoute: BlankRoute,
|
|
FormRoute: FormRoute,
|
|
LensformRoute: LensformRoute,
|
|
QueryRoute: QueryRoute,
|
|
}
|
|
export const routeTree = rootRouteImport
|
|
._addFileChildren(rootRouteChildren)
|
|
._addFileTypes<FileRouteTypes>()
|