@wrikka/solid-framework 0.0.0-stage → 0.15.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/README.md +104 -3
- package/dist/vite.d.ts +661 -0
- package/dist/vite.d.ts.map +1 -0
- package/dist/vite.js +10 -0
- package/dist/vite.js.map +1 -0
- package/package.json +247 -5
- package/src/actions/index.ts +5 -0
- package/src/actions/modules/action/adapters/http/handler.ts +80 -0
- package/src/actions/modules/action/application/index.ts +1 -0
- package/src/actions/modules/action/application/usecases/create-action.ts +92 -0
- package/src/actions/modules/action/application/usecases/index.ts +2 -0
- package/src/actions/modules/action/application/usecases/registry.ts +20 -0
- package/src/actions/modules/action/index.ts +2 -0
- package/src/actions/presentation/index.ts +1 -0
- package/src/actions/presentation/useSubmission.ts +46 -0
- package/src/actions/types/index.ts +35 -0
- package/src/app/index.ts +126 -0
- package/src/app/modules/ai/domain/operations/handler.ts +46 -0
- package/src/app/modules/ai/domain/operations/llms.ts +54 -0
- package/src/app/modules/ai/domain/operations/mcp.ts +134 -0
- package/src/app/modules/ai/index.ts +3 -0
- package/src/app/modules/api-docs/domain/operations/openapi.ts +113 -0
- package/src/app/modules/api-docs/index.ts +1 -0
- package/src/app/modules/app-def/index.ts +225 -0
- package/src/app/modules/auth/application/usecases/auth.ts +161 -0
- package/src/app/modules/auth/application/usecases/oauth.ts +105 -0
- package/src/app/modules/auth/index.ts +2 -0
- package/src/app/modules/cache/adapters/edge-kv.ts +55 -0
- package/src/app/modules/cache/adapters/fs.ts +58 -0
- package/src/app/modules/cache/adapters/memory.ts +13 -0
- package/src/app/modules/cache/domain/operations/tags.ts +114 -0
- package/src/app/modules/cache/index.ts +7 -0
- package/src/app/modules/cache/ports/store.ts +14 -0
- package/src/app/modules/config/domain/index.ts +1 -0
- package/src/app/modules/config/domain/models/config.ts +72 -0
- package/src/app/modules/config/domain/models/index.ts +1 -0
- package/src/app/modules/config/index.ts +1 -0
- package/src/app/modules/content/domain/operations/collection.ts +109 -0
- package/src/app/modules/content/index.ts +8 -0
- package/src/app/modules/content/presentation/Markdown.tsx +78 -0
- package/src/app/modules/conventions/domain/index.ts +1 -0
- package/src/app/modules/conventions/domain/operations/index.ts +1 -0
- package/src/app/modules/conventions/domain/operations/scan.ts +73 -0
- package/src/app/modules/conventions/index.ts +1 -0
- package/src/app/modules/db/application/usecases/db.ts +49 -0
- package/src/app/modules/db/index.ts +1 -0
- package/src/app/modules/deploy/adapters/aws-lambda.ts +54 -0
- package/src/app/modules/deploy/adapters/bun.ts +15 -0
- package/src/app/modules/deploy/adapters/cloudflare.ts +15 -0
- package/src/app/modules/deploy/adapters/deno.ts +15 -0
- package/src/app/modules/deploy/adapters/netlify.ts +18 -0
- package/src/app/modules/deploy/adapters/node.ts +63 -0
- package/src/app/modules/deploy/adapters/vercel.ts +22 -0
- package/src/app/modules/deploy/domain/models/preset.ts +38 -0
- package/src/app/modules/deploy/domain/operations/presets.ts +92 -0
- package/src/app/modules/deploy/index.ts +9 -0
- package/src/app/modules/draft/domain/operations/draft-mode.ts +125 -0
- package/src/app/modules/draft/index.ts +1 -0
- package/src/app/modules/env/domain/operations/create-env.ts +156 -0
- package/src/app/modules/env/index.ts +1 -0
- package/src/app/modules/file-routes/application/usecases/api-client.ts +120 -0
- package/src/app/modules/file-routes/domain/errors.ts +61 -0
- package/src/app/modules/file-routes/domain/index.ts +63 -0
- package/src/app/modules/file-routes/domain/models/index.ts +1 -0
- package/src/app/modules/file-routes/domain/models/route.ts +38 -0
- package/src/app/modules/file-routes/domain/operations/actions.ts +107 -0
- package/src/app/modules/file-routes/domain/operations/api.ts +87 -0
- package/src/app/modules/file-routes/domain/operations/codegen.ts +76 -0
- package/src/app/modules/file-routes/domain/operations/content.ts +61 -0
- package/src/app/modules/file-routes/domain/operations/defer.ts +245 -0
- package/src/app/modules/file-routes/domain/operations/index.ts +65 -0
- package/src/app/modules/file-routes/domain/operations/loader.ts +138 -0
- package/src/app/modules/file-routes/domain/operations/manifest.ts +229 -0
- package/src/app/modules/file-routes/domain/operations/match.ts +75 -0
- package/src/app/modules/file-routes/domain/operations/static-params.ts +58 -0
- package/src/app/modules/file-routes/domain/operations/typed.ts +127 -0
- package/src/app/modules/file-routes/index.ts +143 -0
- package/src/app/modules/file-routes/presentation/DevtoolsOverlay.tsx +234 -0
- package/src/app/modules/file-routes/presentation/FileRoutes.ts +254 -0
- package/src/app/modules/file-routes/presentation/Form.tsx +122 -0
- package/src/app/modules/file-routes/presentation/Link.tsx +132 -0
- package/src/app/modules/file-routes/presentation/ServerComponent.tsx +100 -0
- package/src/app/modules/file-routes/presentation/content-page.tsx +26 -0
- package/src/app/modules/file-routes/presentation/dev-events.ts +112 -0
- package/src/app/modules/file-routes/presentation/index.ts +98 -0
- package/src/app/modules/file-routes/presentation/loader-cache.ts +96 -0
- package/src/app/modules/file-routes/presentation/loader-data.ts +207 -0
- package/src/app/modules/file-routes/presentation/location.ts +217 -0
- package/src/app/modules/file-routes/presentation/normalize-route.ts +155 -0
- package/src/app/modules/file-routes/presentation/page-tree.ts +211 -0
- package/src/app/modules/file-routes/presentation/route-contexts.ts +89 -0
- package/src/app/modules/file-routes/presentation/route-def.ts +154 -0
- package/src/app/modules/file-routes/presentation/route-fallbacks.ts +66 -0
- package/src/app/modules/file-routes/presentation/route-modules.ts +138 -0
- package/src/app/modules/file-routes/presentation/slot.tsx +43 -0
- package/src/app/modules/file-routes/presentation/status.ts +13 -0
- package/src/app/modules/file-routes/presentation/use-action.ts +81 -0
- package/src/app/modules/file-routes/presentation/use-optimistic.ts +50 -0
- package/src/app/modules/file-routes/presentation/use-preload.ts +38 -0
- package/src/app/modules/file-routes/presentation/use-route.ts +254 -0
- package/src/app/modules/flash/domain/operations/flash.ts +70 -0
- package/src/app/modules/flash/index.ts +1 -0
- package/src/app/modules/fonts/domain/operations/font.ts +91 -0
- package/src/app/modules/fonts/index.ts +1 -0
- package/src/app/modules/i18n/domain/operations/i18n-middleware.ts +76 -0
- package/src/app/modules/i18n/domain/operations/locale.ts +39 -0
- package/src/app/modules/i18n/index.ts +3 -0
- package/src/app/modules/i18n/presentation/use-locale.ts +16 -0
- package/src/app/modules/middleware/domain/operations/request-id.ts +33 -0
- package/src/app/modules/middleware/domain/operations/run.ts +29 -0
- package/src/app/modules/middleware/index.ts +7 -0
- package/src/app/modules/route-rules/domain/index.ts +1 -0
- package/src/app/modules/route-rules/domain/operations/ab-variant.ts +58 -0
- package/src/app/modules/route-rules/domain/operations/index.ts +4 -0
- package/src/app/modules/route-rules/domain/operations/match.ts +51 -0
- package/src/app/modules/route-rules/domain/operations/rate-limit.ts +63 -0
- package/src/app/modules/route-rules/domain/operations/security.ts +67 -0
- package/src/app/modules/route-rules/index.ts +1 -0
- package/src/app/modules/runtime-config/application/index.ts +1 -0
- package/src/app/modules/runtime-config/application/usecases/index.ts +1 -0
- package/src/app/modules/runtime-config/application/usecases/runtime-config.ts +42 -0
- package/src/app/modules/runtime-config/index.ts +1 -0
- package/src/app/modules/seo/domain/operations/og.ts +66 -0
- package/src/app/modules/seo/domain/operations/site.ts +106 -0
- package/src/app/modules/seo/index.ts +2 -0
- package/src/app/modules/server-entry/application/index.ts +1 -0
- package/src/app/modules/server-entry/application/usecases/create-app-server.ts +205 -0
- package/src/app/modules/server-entry/application/usecases/devtools-handler.ts +31 -0
- package/src/app/modules/server-entry/application/usecases/image-handler.ts +38 -0
- package/src/app/modules/server-entry/application/usecases/index.ts +3 -0
- package/src/app/modules/server-entry/application/usecases/ops-handler.ts +55 -0
- package/src/app/modules/server-entry/application/usecases/prerender-cache.ts +59 -0
- package/src/app/modules/server-entry/application/usecases/route-render.ts +276 -0
- package/src/app/modules/server-entry/application/usecases/routed-entry.ts +194 -0
- package/src/app/modules/server-entry/application/usecases/static-handler.ts +20 -0
- package/src/app/modules/server-entry/application/usecases/zone-handler.ts +37 -0
- package/src/app/modules/server-entry/index.ts +1 -0
- package/src/app/modules/session/index.ts +77 -0
- package/src/app/modules/static/domain/operations/serve.ts +88 -0
- package/src/app/modules/static/index.ts +1 -0
- package/src/app/presentation/App.tsx +34 -0
- package/src/app/presentation/define-config.ts +11 -0
- package/src/app/presentation/index.ts +3 -0
- package/src/app/presentation/providers.ts +80 -0
- package/src/app/types/index.ts +273 -0
- package/src/assets/adapters/sharp.ts +83 -0
- package/src/assets/index.ts +6 -0
- package/src/assets/modules/assets/domain/index.ts +1 -0
- package/src/assets/modules/assets/domain/operations/image.ts +67 -0
- package/src/assets/modules/assets/domain/operations/index.ts +2 -0
- package/src/assets/modules/assets/domain/operations/manifest.ts +29 -0
- package/src/assets/modules/assets/index.ts +1 -0
- package/src/assets/presentation/Image.tsx +90 -0
- package/src/assets/presentation/index.ts +1 -0
- package/src/assets/types/index.ts +21 -0
- package/src/cli/bin.ts +8 -0
- package/src/cli/commands.ts +145 -0
- package/src/cli/doctor.ts +111 -0
- package/src/cli/index.ts +3 -0
- package/src/cli/infra.ts +38 -0
- package/src/cli/migrate.ts +119 -0
- package/src/cli/nav.ts +164 -0
- package/src/cli/ops.ts +135 -0
- package/src/cli/routes.ts +240 -0
- package/src/cli/scaffold.ts +217 -0
- package/src/devtools/App.tsx +14 -0
- package/src/devtools/adapters/connector.ts +23 -0
- package/src/devtools/adapters/index.ts +4 -0
- package/src/devtools/index.ts +26 -0
- package/src/devtools/modules/component-inspector/application/index.ts +4 -0
- package/src/devtools/modules/component-inspector/application/usecases/component-inspector.ts +67 -0
- package/src/devtools/modules/component-inspector/application/usecases/index.ts +5 -0
- package/src/devtools/modules/component-inspector/application/usecases/useComponentInspector.ts +52 -0
- package/src/devtools/modules/component-inspector/domain/events/component-events.ts +37 -0
- package/src/devtools/modules/component-inspector/domain/events/index.ts +4 -0
- package/src/devtools/modules/component-inspector/domain/index.ts +7 -0
- package/src/devtools/modules/component-inspector/domain/models/component-node.ts +30 -0
- package/src/devtools/modules/component-inspector/domain/models/component-tree.ts +20 -0
- package/src/devtools/modules/component-inspector/domain/models/index.ts +5 -0
- package/src/devtools/modules/component-inspector/domain/operations/component-operations.ts +63 -0
- package/src/devtools/modules/component-inspector/domain/operations/index.ts +4 -0
- package/src/devtools/modules/component-inspector/index.ts +7 -0
- package/src/devtools/modules/devtools/application/index.ts +4 -0
- package/src/devtools/modules/devtools/application/usecases/devtools.ts +60 -0
- package/src/devtools/modules/devtools/application/usecases/index.ts +5 -0
- package/src/devtools/modules/devtools/application/usecases/useDevtools.ts +47 -0
- package/src/devtools/modules/devtools/domain/events/devtools-events.ts +56 -0
- package/src/devtools/modules/devtools/domain/events/index.ts +4 -0
- package/src/devtools/modules/devtools/domain/index.ts +8 -0
- package/src/devtools/modules/devtools/domain/models/devtools-state.ts +15 -0
- package/src/devtools/modules/devtools/domain/models/index.ts +4 -0
- package/src/devtools/modules/devtools/domain/operations/devtools-operations.ts +27 -0
- package/src/devtools/modules/devtools/domain/operations/index.ts +4 -0
- package/src/devtools/modules/devtools/domain/validators/devtools-validators.ts +36 -0
- package/src/devtools/modules/devtools/domain/validators/index.ts +4 -0
- package/src/devtools/modules/devtools/index.ts +7 -0
- package/src/devtools/modules/devtools/ports/connector.ts +10 -0
- package/src/devtools/modules/devtools/ports/index.ts +4 -0
- package/src/devtools/modules/timeline/application/index.ts +4 -0
- package/src/devtools/modules/timeline/application/usecases/index.ts +5 -0
- package/src/devtools/modules/timeline/application/usecases/timeline.ts +61 -0
- package/src/devtools/modules/timeline/application/usecases/useTimeline.ts +37 -0
- package/src/devtools/modules/timeline/domain/events/index.ts +4 -0
- package/src/devtools/modules/timeline/domain/events/timeline-events.ts +34 -0
- package/src/devtools/modules/timeline/domain/index.ts +7 -0
- package/src/devtools/modules/timeline/domain/models/index.ts +4 -0
- package/src/devtools/modules/timeline/domain/models/timeline-event.ts +27 -0
- package/src/devtools/modules/timeline/domain/operations/index.ts +4 -0
- package/src/devtools/modules/timeline/domain/operations/timeline-operations.ts +28 -0
- package/src/devtools/modules/timeline/index.ts +7 -0
- package/src/devtools/presentation/DevtoolsPanel.tsx +80 -0
- package/src/devtools/presentation/components/ComponentTreeView.tsx +79 -0
- package/src/devtools/presentation/components/StateInspector.tsx +70 -0
- package/src/devtools/presentation/components/TimelineView.tsx +52 -0
- package/src/devtools/presentation/components/index.ts +7 -0
- package/src/devtools/presentation/composables/index.ts +7 -0
- package/src/devtools/presentation/composables/useComponentInspector.ts +52 -0
- package/src/devtools/presentation/index.ts +5 -0
- package/src/devtools/shared/errors/index.ts +23 -0
- package/src/devtools/shared/index.ts +7 -0
- package/src/devtools/shared/types/index.ts +6 -0
- package/src/devtools/shared/types/option.ts +58 -0
- package/src/devtools/shared/types/result.ts +53 -0
- package/src/devtools/shared/utils/index.ts +32 -0
- package/src/devtools/style.css +2 -0
- package/src/head/index.ts +5 -0
- package/src/head/modules/head/application/index.ts +1 -0
- package/src/head/modules/head/application/usecases/head-manager.ts +68 -0
- package/src/head/modules/head/application/usecases/index.ts +1 -0
- package/src/head/modules/head/domain/index.ts +3 -0
- package/src/head/modules/head/domain/models/head-tag.ts +73 -0
- package/src/head/modules/head/domain/models/index.ts +1 -0
- package/src/head/modules/head/domain/operations/dedupe.ts +18 -0
- package/src/head/modules/head/domain/operations/index.ts +2 -0
- package/src/head/modules/head/domain/operations/render-tags.ts +43 -0
- package/src/head/modules/head/domain/validators/index.ts +12 -0
- package/src/head/modules/head/index.ts +3 -0
- package/src/head/modules/head/ports/index.ts +11 -0
- package/src/head/presentation/HeadProvider.tsx +42 -0
- package/src/head/presentation/Tags.tsx +90 -0
- package/src/head/presentation/head-context.ts +11 -0
- package/src/head/presentation/index.ts +3 -0
- package/src/head/presentation/useHead.ts +77 -0
- package/src/head/shared/index.ts +1 -0
- package/src/head/shared/types/index.ts +5 -0
- package/src/head/types/index.ts +47 -0
- package/src/hooks/adapters/config/constants.ts +12 -0
- package/src/hooks/adapters/config/index.ts +48 -0
- package/src/hooks/adapters/index.ts +13 -0
- package/src/hooks/adapters/monaco/index.ts +96 -0
- package/src/hooks/adapters/qr/index.ts +65 -0
- package/src/hooks/index.ts +21 -0
- package/src/hooks/modules/array/application/index.ts +2 -0
- package/src/hooks/modules/array/application/usecases/index.ts +123 -0
- package/src/hooks/modules/array/domain/events/index.ts +5 -0
- package/src/hooks/modules/array/domain/index.ts +3 -0
- package/src/hooks/modules/array/domain/models/index.ts +2 -0
- package/src/hooks/modules/array/domain/operations/create.ts +10 -0
- package/src/hooks/modules/array/domain/operations/index.ts +31 -0
- package/src/hooks/modules/array/domain/operations/modify.ts +61 -0
- package/src/hooks/modules/array/domain/operations/query.ts +36 -0
- package/src/hooks/modules/array/domain/validators/index.ts +5 -0
- package/src/hooks/modules/array/index.ts +5 -0
- package/src/hooks/modules/array/types/index.ts +9 -0
- package/src/hooks/modules/counter/application/index.ts +12 -0
- package/src/hooks/modules/counter/application/usecases/index.ts +156 -0
- package/src/hooks/modules/counter/domain/events/index.ts +6 -0
- package/src/hooks/modules/counter/domain/index.ts +21 -0
- package/src/hooks/modules/counter/domain/models/index.ts +2 -0
- package/src/hooks/modules/counter/domain/operations/calculate.ts +22 -0
- package/src/hooks/modules/counter/domain/operations/create.ts +22 -0
- package/src/hooks/modules/counter/domain/operations/index.ts +25 -0
- package/src/hooks/modules/counter/domain/operations/modify.ts +78 -0
- package/src/hooks/modules/counter/domain/operations/query.ts +38 -0
- package/src/hooks/modules/counter/domain/operations/validate.ts +58 -0
- package/src/hooks/modules/counter/domain/validators/counter-validators.ts +19 -0
- package/src/hooks/modules/counter/domain/validators/index.ts +2 -0
- package/src/hooks/modules/counter/index.ts +6 -0
- package/src/hooks/modules/counter/ports/index.ts +7 -0
- package/src/hooks/modules/counter/types/index.ts +13 -0
- package/src/hooks/modules/editor/application/index.ts +6 -0
- package/src/hooks/modules/editor/application/useCodeEditor.ts +81 -0
- package/src/hooks/modules/editor/domain/events/editor-events.ts +16 -0
- package/src/hooks/modules/editor/domain/events/index.ts +6 -0
- package/src/hooks/modules/editor/domain/index.ts +7 -0
- package/src/hooks/modules/editor/domain/models/editor.ts +16 -0
- package/src/hooks/modules/editor/domain/models/index.ts +6 -0
- package/src/hooks/modules/editor/domain/validators/index.ts +34 -0
- package/src/hooks/modules/editor/index.ts +8 -0
- package/src/hooks/modules/editor/types/index.ts +34 -0
- package/src/hooks/modules/sensor/application/index.ts +2 -0
- package/src/hooks/modules/sensor/application/usecases/index.ts +25 -0
- package/src/hooks/modules/sensor/domain/events/index.ts +12 -0
- package/src/hooks/modules/sensor/domain/index.ts +10 -0
- package/src/hooks/modules/sensor/domain/models/index.ts +7 -0
- package/src/hooks/modules/sensor/domain/operations/gamepad.ts +16 -0
- package/src/hooks/modules/sensor/domain/operations/index.ts +12 -0
- package/src/hooks/modules/sensor/domain/operations/motion.ts +10 -0
- package/src/hooks/modules/sensor/domain/operations/orientation.ts +10 -0
- package/src/hooks/modules/sensor/domain/validators/index.ts +2 -0
- package/src/hooks/modules/sensor/index.ts +10 -0
- package/src/hooks/modules/sensor/ports/index.ts +8 -0
- package/src/hooks/modules/sensor/types/index.ts +29 -0
- package/src/hooks/modules/storage/application/index.ts +2 -0
- package/src/hooks/modules/storage/application/usecases/index.ts +18 -0
- package/src/hooks/modules/storage/domain/events/index.ts +5 -0
- package/src/hooks/modules/storage/domain/index.ts +6 -0
- package/src/hooks/modules/storage/domain/models/index.ts +6 -0
- package/src/hooks/modules/storage/domain/models/storage.ts +11 -0
- package/src/hooks/modules/storage/domain/operations/index.ts +8 -0
- package/src/hooks/modules/storage/domain/operations/serialize.ts +22 -0
- package/src/hooks/modules/storage/domain/operations/validate.ts +7 -0
- package/src/hooks/modules/storage/domain/validators/index.ts +2 -0
- package/src/hooks/modules/storage/index.ts +6 -0
- package/src/hooks/modules/storage/ports/index.ts +7 -0
- package/src/hooks/modules/storage/types/index.ts +6 -0
- package/src/hooks/modules/time/application/index.ts +2 -0
- package/src/hooks/modules/time/application/usecases/index.ts +5 -0
- package/src/hooks/modules/time/application/usecases/use-debounce.ts +10 -0
- package/src/hooks/modules/time/application/usecases/use-interval.ts +10 -0
- package/src/hooks/modules/time/application/usecases/use-throttle.ts +10 -0
- package/src/hooks/modules/time/application/usecases/use-timeout.ts +10 -0
- package/src/hooks/modules/time/domain/events/index.ts +6 -0
- package/src/hooks/modules/time/domain/index.ts +12 -0
- package/src/hooks/modules/time/domain/models/index.ts +6 -0
- package/src/hooks/modules/time/domain/models/time.ts +16 -0
- package/src/hooks/modules/time/domain/operations/calculate.ts +8 -0
- package/src/hooks/modules/time/domain/operations/index.ts +11 -0
- package/src/hooks/modules/time/domain/operations/validate.ts +11 -0
- package/src/hooks/modules/time/domain/validators/index.ts +2 -0
- package/src/hooks/modules/time/index.ts +5 -0
- package/src/hooks/modules/time/ports/index.ts +9 -0
- package/src/hooks/modules/time/types/index.ts +18 -0
- package/src/hooks/modules/toggle/application/index.ts +2 -0
- package/src/hooks/modules/toggle/application/usecases/index.ts +48 -0
- package/src/hooks/modules/toggle/domain/events/index.ts +4 -0
- package/src/hooks/modules/toggle/domain/index.ts +11 -0
- package/src/hooks/modules/toggle/domain/models/index.ts +7 -0
- package/src/hooks/modules/toggle/domain/operations/create.ts +11 -0
- package/src/hooks/modules/toggle/domain/operations/index.ts +12 -0
- package/src/hooks/modules/toggle/domain/operations/modify.ts +18 -0
- package/src/hooks/modules/toggle/domain/operations/query.ts +9 -0
- package/src/hooks/modules/toggle/domain/validators/index.ts +2 -0
- package/src/hooks/modules/toggle/index.ts +6 -0
- package/src/hooks/modules/toggle/ports/index.ts +5 -0
- package/src/hooks/modules/toggle/types/index.ts +9 -0
- package/src/hooks/presentation/index.ts +2 -0
- package/src/hooks/presentation/solid/animation/index.ts +11 -0
- package/src/hooks/presentation/solid/animation/useElapsedTime.ts +75 -0
- package/src/hooks/presentation/solid/animation/useInterval.ts +68 -0
- package/src/hooks/presentation/solid/animation/useIntervalFn.ts +54 -0
- package/src/hooks/presentation/solid/animation/useNow.ts +57 -0
- package/src/hooks/presentation/solid/animation/useRafFn.ts +57 -0
- package/src/hooks/presentation/solid/animation/useTimeout.ts +55 -0
- package/src/hooks/presentation/solid/animation/useTimeoutFn.ts +55 -0
- package/src/hooks/presentation/solid/animation/useTimestamp.ts +61 -0
- package/src/hooks/presentation/solid/animation/useTransition.ts +87 -0
- package/src/hooks/presentation/solid/array/index.ts +14 -0
- package/src/hooks/presentation/solid/array/useArrayConcat.ts +18 -0
- package/src/hooks/presentation/solid/array/useArrayEvery.ts +8 -0
- package/src/hooks/presentation/solid/array/useArrayFilter.ts +8 -0
- package/src/hooks/presentation/solid/array/useArrayFind.ts +8 -0
- package/src/hooks/presentation/solid/array/useArrayIncludes.ts +8 -0
- package/src/hooks/presentation/solid/array/useArrayMap.ts +8 -0
- package/src/hooks/presentation/solid/array/useArrayPop.ts +18 -0
- package/src/hooks/presentation/solid/array/useArrayPush.ts +15 -0
- package/src/hooks/presentation/solid/array/useArrayReduce.ts +9 -0
- package/src/hooks/presentation/solid/array/useArrayShift.ts +18 -0
- package/src/hooks/presentation/solid/array/useArraySome.ts +8 -0
- package/src/hooks/presentation/solid/array/useArraySort.ts +12 -0
- package/src/hooks/presentation/solid/browser/index.ts +35 -0
- package/src/hooks/presentation/solid/browser/useBarcode.ts +15 -0
- package/src/hooks/presentation/solid/browser/useBattery.ts +37 -0
- package/src/hooks/presentation/solid/browser/useBeacon.ts +4 -0
- package/src/hooks/presentation/solid/browser/useBluetooth.ts +15 -0
- package/src/hooks/presentation/solid/browser/useClipboard.ts +17 -0
- package/src/hooks/presentation/solid/browser/useClipboardAdvanced.ts +54 -0
- package/src/hooks/presentation/solid/browser/useConnection.ts +22 -0
- package/src/hooks/presentation/solid/browser/useCredential.ts +18 -0
- package/src/hooks/presentation/solid/browser/useDisplayMedia.ts +24 -0
- package/src/hooks/presentation/solid/browser/useFaceDetection.ts +20 -0
- package/src/hooks/presentation/solid/browser/useFullscreen.ts +33 -0
- package/src/hooks/presentation/solid/browser/useGeolocation.ts +64 -0
- package/src/hooks/presentation/solid/browser/useLocalStorage.ts +11 -0
- package/src/hooks/presentation/solid/browser/useMediaDevices.ts +24 -0
- package/src/hooks/presentation/solid/browser/useMemory.ts +9 -0
- package/src/hooks/presentation/solid/browser/useNetwork.ts +43 -0
- package/src/hooks/presentation/solid/browser/useNotification.ts +21 -0
- package/src/hooks/presentation/solid/browser/usePayment.ts +17 -0
- package/src/hooks/presentation/solid/browser/usePerformance.ts +13 -0
- package/src/hooks/presentation/solid/browser/usePush.ts +12 -0
- package/src/hooks/presentation/solid/browser/useQrCode.ts +11 -0
- package/src/hooks/presentation/solid/browser/useScreenOrientation.ts +37 -0
- package/src/hooks/presentation/solid/browser/useServiceWorker.ts +29 -0
- package/src/hooks/presentation/solid/browser/useSessionStorage.ts +11 -0
- package/src/hooks/presentation/solid/browser/useShare.ts +12 -0
- package/src/hooks/presentation/solid/browser/useSpeechRecognition.ts +71 -0
- package/src/hooks/presentation/solid/browser/useSpeechSynthesis.ts +54 -0
- package/src/hooks/presentation/solid/browser/useStorage.ts +22 -0
- package/src/hooks/presentation/solid/browser/useTextDetection.ts +20 -0
- package/src/hooks/presentation/solid/browser/useUsb.ts +15 -0
- package/src/hooks/presentation/solid/browser/useUserMedia.ts +24 -0
- package/src/hooks/presentation/solid/browser/useVibration.ts +12 -0
- package/src/hooks/presentation/solid/browser/useWakeLock.ts +29 -0
- package/src/hooks/presentation/solid/browser/useWebAuthn.ts +35 -0
- package/src/hooks/presentation/solid/elements/index.ts +51 -0
- package/src/hooks/presentation/solid/elements/useActive.ts +33 -0
- package/src/hooks/presentation/solid/elements/useAudio.ts +82 -0
- package/src/hooks/presentation/solid/elements/useBreakpoints.ts +56 -0
- package/src/hooks/presentation/solid/elements/useCanvas.ts +43 -0
- package/src/hooks/presentation/solid/elements/useClick.ts +49 -0
- package/src/hooks/presentation/solid/elements/useDrag.ts +56 -0
- package/src/hooks/presentation/solid/elements/useDraggable.ts +57 -0
- package/src/hooks/presentation/solid/elements/useDraggableHandle.ts +92 -0
- package/src/hooks/presentation/solid/elements/useDrop.ts +54 -0
- package/src/hooks/presentation/solid/elements/useDropZone.ts +67 -0
- package/src/hooks/presentation/solid/elements/useElementBounding.ts +52 -0
- package/src/hooks/presentation/solid/elements/useElementSize.ts +30 -0
- package/src/hooks/presentation/solid/elements/useElementVisibility.ts +33 -0
- package/src/hooks/presentation/solid/elements/useFileDialog.ts +33 -0
- package/src/hooks/presentation/solid/elements/useFileInput.ts +20 -0
- package/src/hooks/presentation/solid/elements/useFocus.ts +49 -0
- package/src/hooks/presentation/solid/elements/useHover.ts +33 -0
- package/src/hooks/presentation/solid/elements/useImagePreview.ts +27 -0
- package/src/hooks/presentation/solid/elements/useImageUpload.ts +66 -0
- package/src/hooks/presentation/solid/elements/useInfiniteScroll.ts +52 -0
- package/src/hooks/presentation/solid/elements/useIntersectionAdvanced.ts +43 -0
- package/src/hooks/presentation/solid/elements/useIntersectionObserver.ts +40 -0
- package/src/hooks/presentation/solid/elements/useLayout.ts +47 -0
- package/src/hooks/presentation/solid/elements/useLongPress.ts +54 -0
- package/src/hooks/presentation/solid/elements/useMagicKeys.ts +60 -0
- package/src/hooks/presentation/solid/elements/useMediaQuery.ts +24 -0
- package/src/hooks/presentation/solid/elements/useModal.ts +24 -0
- package/src/hooks/presentation/solid/elements/useMouse.ts +51 -0
- package/src/hooks/presentation/solid/elements/useMutationObserver.ts +38 -0
- package/src/hooks/presentation/solid/elements/useOnClickOutside.ts +25 -0
- package/src/hooks/presentation/solid/elements/useOnKeyStroke.ts +33 -0
- package/src/hooks/presentation/solid/elements/useParallax.ts +34 -0
- package/src/hooks/presentation/solid/elements/usePerformanceObserver.ts +30 -0
- package/src/hooks/presentation/solid/elements/usePinch.ts +61 -0
- package/src/hooks/presentation/solid/elements/usePopover.ts +54 -0
- package/src/hooks/presentation/solid/elements/useResize.ts +34 -0
- package/src/hooks/presentation/solid/elements/useResizeObserver.ts +42 -0
- package/src/hooks/presentation/solid/elements/useRotate.ts +42 -0
- package/src/hooks/presentation/solid/elements/useScroll.ts +97 -0
- package/src/hooks/presentation/solid/elements/useScrollTo.ts +30 -0
- package/src/hooks/presentation/solid/elements/useSortable.ts +22 -0
- package/src/hooks/presentation/solid/elements/useSplitter.ts +61 -0
- package/src/hooks/presentation/solid/elements/useSticky.ts +33 -0
- package/src/hooks/presentation/solid/elements/useSvg.ts +31 -0
- package/src/hooks/presentation/solid/elements/useSwipe.ts +87 -0
- package/src/hooks/presentation/solid/elements/useTabs.ts +44 -0
- package/src/hooks/presentation/solid/elements/useTooltip.ts +57 -0
- package/src/hooks/presentation/solid/elements/useVideo.ts +83 -0
- package/src/hooks/presentation/solid/elements/useVirtualList.ts +43 -0
- package/src/hooks/presentation/solid/elements/useWebgl.ts +36 -0
- package/src/hooks/presentation/solid/index.ts +11 -0
- package/src/hooks/presentation/solid/math/index.ts +10 -0
- package/src/hooks/presentation/solid/math/useAbs.ts +9 -0
- package/src/hooks/presentation/solid/math/useCeil.ts +9 -0
- package/src/hooks/presentation/solid/math/useClamp.ts +24 -0
- package/src/hooks/presentation/solid/math/useExp.ts +9 -0
- package/src/hooks/presentation/solid/math/useFloor.ts +9 -0
- package/src/hooks/presentation/solid/math/useLog.ts +21 -0
- package/src/hooks/presentation/solid/math/useMath.ts +3 -0
- package/src/hooks/presentation/solid/math/useOffset.ts +20 -0
- package/src/hooks/presentation/solid/math/usePow.ts +16 -0
- package/src/hooks/presentation/solid/math/useRound.ts +24 -0
- package/src/hooks/presentation/solid/math/useSign.ts +9 -0
- package/src/hooks/presentation/solid/math/useSqrt.ts +9 -0
- package/src/hooks/presentation/solid/network/index.ts +5 -0
- package/src/hooks/presentation/solid/network/useEventSource.ts +87 -0
- package/src/hooks/presentation/solid/network/useFetch.ts +187 -0
- package/src/hooks/presentation/solid/network/useWebSocket.ts +120 -0
- package/src/hooks/presentation/solid/sensors/index.ts +21 -0
- package/src/hooks/presentation/solid/sensors/useAbsoluteOrientation.ts +41 -0
- package/src/hooks/presentation/solid/sensors/useAccelerometer.ts +39 -0
- package/src/hooks/presentation/solid/sensors/useAmbientLight.ts +35 -0
- package/src/hooks/presentation/solid/sensors/useDeviceMotion.ts +50 -0
- package/src/hooks/presentation/solid/sensors/useDeviceOrientation.ts +38 -0
- package/src/hooks/presentation/solid/sensors/useGamepad.ts +52 -0
- package/src/hooks/presentation/solid/sensors/useGamepadRumble.ts +28 -0
- package/src/hooks/presentation/solid/sensors/useGravity.ts +39 -0
- package/src/hooks/presentation/solid/sensors/useGyroscope.ts +39 -0
- package/src/hooks/presentation/solid/sensors/useHID.ts +19 -0
- package/src/hooks/presentation/solid/sensors/useLinearAcceleration.ts +41 -0
- package/src/hooks/presentation/solid/sensors/useMagnetometer.ts +39 -0
- package/src/hooks/presentation/solid/sensors/useMotion.ts +31 -0
- package/src/hooks/presentation/solid/sensors/useNFC.ts +19 -0
- package/src/hooks/presentation/solid/sensors/usePressure.ts +35 -0
- package/src/hooks/presentation/solid/sensors/useProximity.ts +38 -0
- package/src/hooks/presentation/solid/sensors/useRelativeOrientation.ts +41 -0
- package/src/hooks/presentation/solid/sensors/useSerial.ts +18 -0
- package/src/hooks/presentation/solid/sensors/useShake.ts +54 -0
- package/src/hooks/presentation/solid/sensors/useTilt.ts +31 -0
- package/src/hooks/presentation/solid/state/createSharedComposable.ts +24 -0
- package/src/hooks/presentation/solid/state/index.ts +14 -0
- package/src/hooks/presentation/solid/state/reactivity.ts +43 -0
- package/src/hooks/presentation/solid/state/refDebounced.ts +27 -0
- package/src/hooks/presentation/solid/state/refThrottled.ts +39 -0
- package/src/hooks/presentation/solid/state/syncRef.ts +24 -0
- package/src/hooks/presentation/solid/state/toRef.ts +18 -0
- package/src/hooks/presentation/solid/state/useArray.ts +55 -0
- package/src/hooks/presentation/solid/state/useCounter.ts +24 -0
- package/src/hooks/presentation/solid/state/useToggle.ts +20 -0
- package/src/hooks/presentation/solid/time/index.ts +6 -0
- package/src/hooks/presentation/solid/time/useDebounceFn.ts +18 -0
- package/src/hooks/presentation/solid/time/useInterval.ts +44 -0
- package/src/hooks/presentation/solid/time/useThrottleFn.ts +30 -0
- package/src/hooks/presentation/solid/time/useTimeout.ts +37 -0
- package/src/hooks/presentation/solid/time/watchDebounced.ts +19 -0
- package/src/hooks/presentation/solid/time/watchPausable.ts +29 -0
- package/src/hooks/presentation/solid/time/whenever.ts +13 -0
- package/src/hooks/presentation/solid/utilities/index.ts +8 -0
- package/src/hooks/presentation/solid/utilities/useArrayEvery.ts +8 -0
- package/src/hooks/presentation/solid/utilities/useArrayFilter.ts +11 -0
- package/src/hooks/presentation/solid/utilities/useArrayFind.ts +8 -0
- package/src/hooks/presentation/solid/utilities/useArrayIncludes.ts +8 -0
- package/src/hooks/presentation/solid/utilities/useArrayMap.ts +8 -0
- package/src/hooks/presentation/solid/utilities/useArrayReduce.ts +9 -0
- package/src/hooks/presentation/solid/utilities/useArraySome.ts +8 -0
- package/src/hooks/presentation/solid/utilities/useArraySort.ts +12 -0
- package/src/hooks/presentation/solid/utilities/useClamp.ts +24 -0
- package/src/hooks/presentation/solid/utilities/useDebounce.ts +32 -0
- package/src/hooks/presentation/solid/utilities/useEventBus.ts +57 -0
- package/src/hooks/presentation/solid/utilities/useMemoize.ts +15 -0
- package/src/hooks/presentation/solid/utilities/useOffset.ts +20 -0
- package/src/hooks/presentation/solid/utilities/useRound.ts +24 -0
- package/src/hooks/presentation/solid/utilities/useSorted.ts +12 -0
- package/src/hooks/presentation/solid/utilities/useThrottle.ts +44 -0
- package/src/hooks/presentation/solid/utilities/useToNumber.ts +11 -0
- package/src/hooks/presentation/solid/utilities/useToString.ts +10 -0
- package/src/hooks/realtime/use-sse.ts +70 -0
- package/src/hooks/shared/constants/index.ts +4 -0
- package/src/hooks/shared/errors/index.ts +1 -0
- package/src/hooks/shared/errors/validation-error.ts +28 -0
- package/src/hooks/shared/index.ts +8 -0
- package/src/hooks/shared/types/index.ts +17 -0
- package/src/hooks/shared/types/option.ts +17 -0
- package/src/hooks/shared/types/result.ts +34 -0
- package/src/hooks/shared/types/utilities.ts +102 -0
- package/src/hooks/shared/utils/identity.ts +2 -0
- package/src/hooks/shared/utils/index.ts +4 -0
- package/src/hooks/shared/utils/logger.ts +69 -0
- package/src/hooks/shared/utils/pipe.ts +5 -0
- package/src/hooks/shared/utils/result.ts +9 -0
- package/src/hooks/test/counter.test.ts +25 -0
- package/src/index.ts +16 -0
- package/src/internal.ts +61 -0
- package/src/query/adapters/devtools/index.ts +29 -0
- package/src/query/adapters/persistence/index.ts +62 -0
- package/src/query/adapters/solid/index.ts +10 -0
- package/src/query/adapters/solid/solid-query-context.ts +29 -0
- package/src/query/adapters/solid/solid-query-empty-result.ts +34 -0
- package/src/query/adapters/solid/solid-query-options.ts +52 -0
- package/src/query/adapters/solid/solid-query-use-infinite.ts +228 -0
- package/src/query/adapters/solid/solid-query-use-mutation.ts +54 -0
- package/src/query/adapters/solid/solid-query-use-query.ts +75 -0
- package/src/query/adapters/solid/solid.test.ts +53 -0
- package/src/query/adapters/validation/index.ts +20 -0
- package/src/query/index.test.ts +203 -0
- package/src/query/index.ts +4 -0
- package/src/query/modules/query/application/usecases/query-client-data.ts +29 -0
- package/src/query/modules/query/application/usecases/query-client-helpers.ts +49 -0
- package/src/query/modules/query/application/usecases/query-client-infinite.ts +39 -0
- package/src/query/modules/query/application/usecases/query-client.ts +251 -0
- package/src/query/modules/query/domain/models/mutation-cache.ts +115 -0
- package/src/query/modules/query/domain/models/mutation.ts +207 -0
- package/src/query/modules/query/domain/models/query-cache.ts +119 -0
- package/src/query/modules/query/domain/models/query-environment.ts +16 -0
- package/src/query/modules/query/domain/models/query-observer.ts +162 -0
- package/src/query/modules/query/domain/models/query-operations.ts +76 -0
- package/src/query/modules/query/domain/models/query.ts +239 -0
- package/src/query/modules/query/domain/operations/index.ts +76 -0
- package/src/query/modules/query/index.ts +9 -0
- package/src/query/modules/query/ports/index.ts +53 -0
- package/src/query/modules/query/types/index.ts +239 -0
- package/src/query/shared/index.ts +48 -0
- package/src/render/adapters/index.ts +1 -0
- package/src/render/adapters/solid-web/hydration.ts +35 -0
- package/src/render/adapters/solid-web/index.ts +3 -0
- package/src/render/adapters/solid-web/renderer.ts +20 -0
- package/src/render/index.ts +7 -0
- package/src/render/modules/render/application/index.ts +1 -0
- package/src/render/modules/render/application/usecases/index.ts +4 -0
- package/src/render/modules/render/application/usecases/remote-island.ts +46 -0
- package/src/render/modules/render/application/usecases/render-page.ts +86 -0
- package/src/render/modules/render/application/usecases/render-shell.ts +56 -0
- package/src/render/modules/render/application/usecases/stream-page.ts +159 -0
- package/src/render/modules/render/domain/index.ts +3 -0
- package/src/render/modules/render/domain/models/context.ts +34 -0
- package/src/render/modules/render/domain/models/document.ts +26 -0
- package/src/render/modules/render/domain/models/index.ts +2 -0
- package/src/render/modules/render/domain/operations/document.ts +58 -0
- package/src/render/modules/render/domain/operations/hydration.ts +58 -0
- package/src/render/modules/render/domain/operations/index.ts +3 -0
- package/src/render/modules/render/domain/operations/rsc.ts +53 -0
- package/src/render/modules/render/domain/validators/index.ts +11 -0
- package/src/render/modules/render/index.ts +3 -0
- package/src/render/modules/render/ports/index.ts +17 -0
- package/src/render/presentation/ClientComponent.tsx +42 -0
- package/src/render/presentation/Document.tsx +45 -0
- package/src/render/presentation/Island.tsx +146 -0
- package/src/render/presentation/RemoteIsland.tsx +68 -0
- package/src/render/presentation/entries.ts +83 -0
- package/src/render/presentation/index.ts +5 -0
- package/src/render/shared/index.ts +2 -0
- package/src/render/shared/types/index.ts +9 -0
- package/src/render/shared/utils/index.ts +1 -0
- package/src/render/shared/utils/result.ts +30 -0
- package/src/render/types/index.ts +58 -0
- package/src/router/adapters/index.ts +1 -0
- package/src/router/adapters/solid-start/index.ts +42 -0
- package/src/router/cli/bundle-analyzer.ts +142 -0
- package/src/router/cli/index.ts +3 -0
- package/src/router/cli/migration-cli.ts +217 -0
- package/src/router/cli/route-generator-config.ts +109 -0
- package/src/router/cli/route-generator-templates.ts +117 -0
- package/src/router/cli/route-generator-types.ts +9 -0
- package/src/router/cli/route-generator-utils.ts +40 -0
- package/src/router/cli/route-generator.ts +64 -0
- package/src/router/index.test.ts +7 -0
- package/src/router/index.ts +21 -0
- package/src/router/modules/navigation/application/index.ts +1 -0
- package/src/router/modules/navigation/application/usecases.ts +42 -0
- package/src/router/modules/navigation/domain/index.ts +2 -0
- package/src/router/modules/navigation/domain/models.ts +44 -0
- package/src/router/modules/navigation/domain/operations.ts +28 -0
- package/src/router/modules/navigation/index.ts +3 -0
- package/src/router/modules/navigation/types/index.ts +15 -0
- package/src/router/modules/route-cache/application/usecases/index.ts +74 -0
- package/src/router/modules/route-cache/domain/models/index.ts +63 -0
- package/src/router/modules/route-cache/domain/operations/cache-evict.ts +104 -0
- package/src/router/modules/route-cache/domain/operations/cache-invalidate.ts +101 -0
- package/src/router/modules/route-cache/domain/operations/cache-read.ts +74 -0
- package/src/router/modules/route-cache/domain/operations/cache-write.ts +62 -0
- package/src/router/modules/route-cache/domain/operations/index.ts +4 -0
- package/src/router/modules/route-cache/domain/validators/index.ts +25 -0
- package/src/router/modules/route-cache/index.ts +8 -0
- package/src/router/modules/route-cache/ports/index.ts +20 -0
- package/src/router/modules/route-cache/types/index.ts +8 -0
- package/src/router/modules/route-error-tracking/application/usecases/index.ts +182 -0
- package/src/router/modules/route-error-tracking/domain/index.ts +5 -0
- package/src/router/modules/route-error-tracking/domain/models/index.ts +130 -0
- package/src/router/modules/route-error-tracking/domain/operations/error-cleanup.ts +50 -0
- package/src/router/modules/route-error-tracking/domain/operations/error-queries.ts +103 -0
- package/src/router/modules/route-error-tracking/domain/operations/error-recording.ts +112 -0
- package/src/router/modules/route-error-tracking/domain/operations/error-reporting.ts +55 -0
- package/src/router/modules/route-error-tracking/domain/operations/index.ts +4 -0
- package/src/router/modules/route-error-tracking/domain/validators/index.ts +46 -0
- package/src/router/modules/route-error-tracking/index.ts +8 -0
- package/src/router/modules/route-error-tracking/ports/index.ts +20 -0
- package/src/router/modules/route-error-tracking/types/index.ts +6 -0
- package/src/router/modules/route-feature-flags/application/usecases/index.ts +159 -0
- package/src/router/modules/route-feature-flags/domain/index.ts +5 -0
- package/src/router/modules/route-feature-flags/domain/models/index.ts +102 -0
- package/src/router/modules/route-feature-flags/domain/operations/feature-flag-audit.ts +37 -0
- package/src/router/modules/route-feature-flags/domain/operations/feature-flag-conditions.ts +52 -0
- package/src/router/modules/route-feature-flags/domain/operations/feature-flag-flags.ts +205 -0
- package/src/router/modules/route-feature-flags/domain/operations/feature-flag-routes.ts +54 -0
- package/src/router/modules/route-feature-flags/domain/operations/feature-flag-segments.ts +22 -0
- package/src/router/modules/route-feature-flags/domain/operations/feature-flag-statistics.ts +22 -0
- package/src/router/modules/route-feature-flags/domain/operations/index.ts +6 -0
- package/src/router/modules/route-feature-flags/domain/validators/index.ts +40 -0
- package/src/router/modules/route-feature-flags/index.ts +8 -0
- package/src/router/modules/route-feature-flags/ports/index.ts +23 -0
- package/src/router/modules/route-feature-flags/types/index.ts +7 -0
- package/src/router/modules/route-i18n/application/usecases/index.ts +81 -0
- package/src/router/modules/route-i18n/domain/models/index.ts +85 -0
- package/src/router/modules/route-i18n/domain/operations/index.ts +201 -0
- package/src/router/modules/route-i18n/domain/validators/index.ts +43 -0
- package/src/router/modules/route-i18n/index.ts +8 -0
- package/src/router/modules/route-i18n/ports/index.ts +20 -0
- package/src/router/modules/route-i18n/types/index.ts +7 -0
- package/src/router/modules/route-navigation-timeline/application/usecases/index.ts +182 -0
- package/src/router/modules/route-navigation-timeline/domain/index.ts +5 -0
- package/src/router/modules/route-navigation-timeline/domain/models/index.ts +143 -0
- package/src/router/modules/route-navigation-timeline/domain/operations/index.ts +177 -0
- package/src/router/modules/route-navigation-timeline/domain/validators/index.ts +19 -0
- package/src/router/modules/route-navigation-timeline/index.ts +8 -0
- package/src/router/modules/route-navigation-timeline/ports/index.ts +30 -0
- package/src/router/modules/route-navigation-timeline/types/index.ts +5 -0
- package/src/router/modules/route-performance/application/usecases/index.ts +166 -0
- package/src/router/modules/route-performance/domain/models/index.ts +96 -0
- package/src/router/modules/route-performance/domain/operations/index.ts +5 -0
- package/src/router/modules/route-performance/domain/operations/performance-cleanup.ts +29 -0
- package/src/router/modules/route-performance/domain/operations/performance-queries.ts +91 -0
- package/src/router/modules/route-performance/domain/operations/performance-recording.ts +151 -0
- package/src/router/modules/route-performance/domain/operations/performance-reporting.ts +32 -0
- package/src/router/modules/route-performance/domain/operations/performance-tracking.ts +75 -0
- package/src/router/modules/route-performance/domain/validators/index.ts +55 -0
- package/src/router/modules/route-performance/index.ts +8 -0
- package/src/router/modules/route-performance/ports/index.ts +25 -0
- package/src/router/modules/route-performance/types/index.ts +6 -0
- package/src/router/modules/route-security/application/usecases/index.ts +153 -0
- package/src/router/modules/route-security/domain/models/index.ts +216 -0
- package/src/router/modules/route-security/domain/operations/index.ts +165 -0
- package/src/router/modules/route-security/domain/validators/index.ts +32 -0
- package/src/router/modules/route-security/index.ts +8 -0
- package/src/router/modules/route-security/ports/index.ts +31 -0
- package/src/router/modules/route-security/types/index.ts +11 -0
- package/src/router/modules/route-testing/application/usecases/index.ts +131 -0
- package/src/router/modules/route-testing/domain/models/index.ts +217 -0
- package/src/router/modules/route-testing/domain/operations/contract-testing-operations.ts +239 -0
- package/src/router/modules/route-testing/domain/operations/e2e-testing-operations.ts +167 -0
- package/src/router/modules/route-testing/domain/operations/index.ts +3 -0
- package/src/router/modules/route-testing/domain/operations/route-testing-core.ts +48 -0
- package/src/router/modules/route-testing/domain/validators/index.ts +34 -0
- package/src/router/modules/route-testing/index.ts +8 -0
- package/src/router/modules/route-testing/ports/index.ts +21 -0
- package/src/router/modules/route-testing/types/index.ts +13 -0
- package/src/router/modules/routing/application/index.ts +7 -0
- package/src/router/modules/routing/application/usecases.ts +49 -0
- package/src/router/modules/routing/domain/ab-testing.ts +86 -0
- package/src/router/modules/routing/domain/analytics.ts +88 -0
- package/src/router/modules/routing/domain/caching-evict.ts +104 -0
- package/src/router/modules/routing/domain/caching-invalidate.ts +101 -0
- package/src/router/modules/routing/domain/caching-read.ts +74 -0
- package/src/router/modules/routing/domain/caching-state.ts +38 -0
- package/src/router/modules/routing/domain/caching-types.ts +38 -0
- package/src/router/modules/routing/domain/caching-write.ts +62 -0
- package/src/router/modules/routing/domain/caching.ts +6 -0
- package/src/router/modules/routing/domain/code-splitting.ts +226 -0
- package/src/router/modules/routing/domain/contract-factory.ts +37 -0
- package/src/router/modules/routing/domain/contract-testing.ts +13 -0
- package/src/router/modules/routing/domain/contract-types.ts +32 -0
- package/src/router/modules/routing/domain/contract-validator.ts +246 -0
- package/src/router/modules/routing/domain/dynamic-imports.ts +67 -0
- package/src/router/modules/routing/domain/e2e-testing.ts +267 -0
- package/src/router/modules/routing/domain/error-boundaries.ts +54 -0
- package/src/router/modules/routing/domain/error-tracking.ts +277 -0
- package/src/router/modules/routing/domain/feature-flags.ts +255 -0
- package/src/router/modules/routing/domain/guards.ts +104 -0
- package/src/router/modules/routing/domain/i18n.ts +230 -0
- package/src/router/modules/routing/domain/index.ts +30 -0
- package/src/router/modules/routing/domain/interactive-docs-advanced-sections.ts +164 -0
- package/src/router/modules/routing/domain/interactive-docs-core-sections.ts +198 -0
- package/src/router/modules/routing/domain/interactive-docs.ts +154 -0
- package/src/router/modules/routing/domain/isr.ts +35 -0
- package/src/router/modules/routing/domain/middleware.ts +79 -0
- package/src/router/modules/routing/domain/models.ts +95 -0
- package/src/router/modules/routing/domain/navigation-timeline.ts +243 -0
- package/src/router/modules/routing/domain/operations.ts +36 -0
- package/src/router/modules/routing/domain/optimized-matcher.ts +75 -0
- package/src/router/modules/routing/domain/performance-alert-manager.ts +28 -0
- package/src/router/modules/routing/domain/performance-monitoring.ts +287 -0
- package/src/router/modules/routing/domain/performance-report.ts +29 -0
- package/src/router/modules/routing/domain/performance-types.ts +19 -0
- package/src/router/modules/routing/domain/predictive-preloading.ts +296 -0
- package/src/router/modules/routing/domain/rbac.ts +219 -0
- package/src/router/modules/routing/domain/resource-routes.ts +64 -0
- package/src/router/modules/routing/domain/route-autocomplete.ts +176 -0
- package/src/router/modules/routing/domain/route-groups.ts +63 -0
- package/src/router/modules/routing/domain/security-scanner.ts +225 -0
- package/src/router/modules/routing/domain/server-actions.ts +71 -0
- package/src/router/modules/routing/domain/testing.ts +80 -0
- package/src/router/modules/routing/domain/type-safe-links.ts +72 -0
- package/src/router/modules/routing/domain/validators.ts +23 -0
- package/src/router/modules/routing/index.ts +4 -0
- package/src/router/modules/routing/ports/index.ts +1 -0
- package/src/router/modules/routing/ports/router-port.ts +15 -0
- package/src/router/modules/routing/types/index.ts +14 -0
- package/src/router/modules/routing-core/application/usecases/index.ts +49 -0
- package/src/router/modules/routing-core/domain/models/index.ts +95 -0
- package/src/router/modules/routing-core/domain/operations/index.ts +36 -0
- package/src/router/modules/routing-core/domain/validators/index.ts +28 -0
- package/src/router/modules/routing-core/index.ts +8 -0
- package/src/router/modules/routing-core/ports/index.ts +16 -0
- package/src/router/modules/routing-core/types/index.ts +25 -0
- package/src/router/presentation/index.ts +1 -0
- package/src/router/presentation/solid/components/index.ts +1 -0
- package/src/router/presentation/solid/components/route-visualizer-details.tsx +37 -0
- package/src/router/presentation/solid/components/route-visualizer-helpers.ts +56 -0
- package/src/router/presentation/solid/components/route-visualizer-tree.tsx +99 -0
- package/src/router/presentation/solid/components/route-visualizer-types.ts +41 -0
- package/src/router/presentation/solid/components/route-visualizer.tsx +110 -0
- package/src/router/presentation/solid/components/router.ts +82 -0
- package/src/router/presentation/solid/devtools/index.ts +2 -0
- package/src/router/presentation/solid/devtools/router-devtools-panel.tsx +141 -0
- package/src/router/presentation/solid/devtools/router-inspector.ts +54 -0
- package/src/router/presentation/solid/hmr.ts +77 -0
- package/src/router/presentation/solid/index.ts +7 -0
- package/src/router/presentation/solid/lazy-loading.ts +111 -0
- package/src/router/presentation/solid/preloading.ts +81 -0
- package/src/router/presentation/solid/route-state.ts +58 -0
- package/src/router/presentation/solid/signals/index.ts +2 -0
- package/src/router/presentation/solid/signals/route-state.ts +39 -0
- package/src/router/presentation/solid/signals/search-params.ts +31 -0
- package/src/router/shared/constants/index.ts +6 -0
- package/src/router/shared/errors/enhanced-errors.ts +94 -0
- package/src/router/shared/errors/index.ts +30 -0
- package/src/router/shared/index.ts +4 -0
- package/src/router/shared/types/either.ts +55 -0
- package/src/router/shared/types/index.ts +5 -0
- package/src/router/shared/types/option.ts +20 -0
- package/src/router/shared/types/result.ts +34 -0
- package/src/router/shared/types/route-inference.ts +49 -0
- package/src/router/shared/types/routing.ts +31 -0
- package/src/router/shared/utils/index.ts +3 -0
- package/src/router/shared/utils/path.ts +43 -0
- package/src/router/shared/utils/result.ts +5 -0
- package/src/router/shared/utils/time-condition.ts +53 -0
- package/src/router/vite-plugin/index.ts +2 -0
- package/src/router/vite-plugin/vite-plugin-core.ts +79 -0
- package/src/router/vite-plugin/vite-plugin-options-advanced.ts +127 -0
- package/src/router/vite-plugin/vite-plugin-options-features.ts +117 -0
- package/src/router/vite-plugin/vite-plugin-options-routing.ts +70 -0
- package/src/router/vite-plugin/vite-plugin-options.ts +23 -0
- package/src/server/adapters/index.ts +2 -0
- package/src/server/adapters/platforms.ts +79 -0
- package/src/server/adapters/web-server/index.ts +281 -0
- package/src/server/index.ts +13 -0
- package/src/server/modules/http/domain/operations/cookies.ts +151 -0
- package/src/server/modules/http/domain/operations/metrics.ts +103 -0
- package/src/server/modules/http/domain/operations/request-context.ts +36 -0
- package/src/server/modules/http/domain/operations/session-store.ts +98 -0
- package/src/server/modules/http/index.ts +15 -0
- package/src/server/modules/loaders/application/index.ts +1 -0
- package/src/server/modules/loaders/application/usecases/create-route-loader.ts +88 -0
- package/src/server/modules/loaders/application/usecases/dehydrate.ts +21 -0
- package/src/server/modules/loaders/application/usecases/index.ts +2 -0
- package/src/server/modules/loaders/index.ts +1 -0
- package/src/server/modules/realtime/domain/operations/channels.ts +241 -0
- package/src/server/modules/realtime/domain/operations/sse.ts +63 -0
- package/src/server/modules/realtime/index.ts +2 -0
- package/src/server/modules/server-functions/adapters/http/handler.ts +128 -0
- package/src/server/modules/server-functions/application/index.ts +1 -0
- package/src/server/modules/server-functions/application/usecases/batch.ts +135 -0
- package/src/server/modules/server-functions/application/usecases/create-server-fn.ts +272 -0
- package/src/server/modules/server-functions/application/usecases/csrf.ts +67 -0
- package/src/server/modules/server-functions/application/usecases/index.ts +6 -0
- package/src/server/modules/server-functions/application/usecases/live.ts +172 -0
- package/src/server/modules/server-functions/application/usecases/registry.ts +22 -0
- package/src/server/modules/server-functions/application/usecases/scheduler.ts +115 -0
- package/src/server/modules/server-functions/domain/index.ts +24 -0
- package/src/server/modules/server-functions/domain/models/execution-result.ts +18 -0
- package/src/server/modules/server-functions/domain/models/index.ts +1 -0
- package/src/server/modules/server-functions/domain/operations/result.ts +61 -0
- package/src/server/modules/server-functions/domain/operations/serialize.ts +134 -0
- package/src/server/modules/server-functions/domain/operations/stream.ts +107 -0
- package/src/server/modules/server-functions/index.ts +3 -0
- package/src/server/modules/server-only/index.ts +30 -0
- package/src/server/node.ts +10 -0
- package/src/server/shared/errors/index.ts +1 -0
- package/src/server/shared/errors/server-fn-error.ts +27 -0
- package/src/server/shared/index.ts +2 -0
- package/src/server/shared/types/index.ts +5 -0
- package/src/server/types/index.ts +65 -0
- package/src/stores/adapters/analytics/index.ts +5 -0
- package/src/stores/adapters/analytics/monitoring.ts +164 -0
- package/src/stores/adapters/devtools/index.ts +80 -0
- package/src/stores/adapters/persistence/index.ts +5 -0
- package/src/stores/adapters/persistence/versioning.ts +142 -0
- package/src/stores/adapters/router/index.ts +144 -0
- package/src/stores/adapters/storage/index.ts +6 -0
- package/src/stores/adapters/storage/indexed-db.ts +83 -0
- package/src/stores/adapters/storage/local-storage.ts +44 -0
- package/src/stores/adapters/storage/session-storage.ts +44 -0
- package/src/stores/adapters/sync/index.ts +5 -0
- package/src/stores/adapters/sync/tab-sync.ts +148 -0
- package/src/stores/adapters/validation/arktype-validator.ts +32 -0
- package/src/stores/adapters/validation/error-handling.ts +27 -0
- package/src/stores/adapters/validation/index.ts +61 -0
- package/src/stores/adapters/validation/schemas/api-schemas.ts +30 -0
- package/src/stores/adapters/validation/schemas/common-schemas.ts +32 -0
- package/src/stores/adapters/validation/schemas/config-schemas.ts +22 -0
- package/src/stores/adapters/validation/schemas/constraint-schemas.ts +34 -0
- package/src/stores/adapters/validation/schemas/ecommerce-schemas.ts +43 -0
- package/src/stores/adapters/validation/schemas/form-schemas.ts +27 -0
- package/src/stores/adapters/validation/schemas/primitive-schemas.ts +9 -0
- package/src/stores/adapters/validation/schemas/store-schemas.ts +52 -0
- package/src/stores/adapters/validation/schemas.ts +11 -0
- package/src/stores/index.ts +13 -0
- package/src/stores/modules/query/index.ts +24 -0
- package/src/stores/modules/query/mutation-state.ts +33 -0
- package/src/stores/modules/query/mutation-store.ts +59 -0
- package/src/stores/modules/query/query-builder.ts +25 -0
- package/src/stores/modules/query/query-cache.ts +65 -0
- package/src/stores/modules/query/query-manager.ts +103 -0
- package/src/stores/modules/query/query-state.ts +39 -0
- package/src/stores/modules/query/query-store.ts +81 -0
- package/src/stores/modules/store/application/usecases/index.ts +217 -0
- package/src/stores/modules/store/domain/models/index.ts +38 -0
- package/src/stores/modules/store/domain/operations/actions.ts +120 -0
- package/src/stores/modules/store/domain/operations/composition.ts +205 -0
- package/src/stores/modules/store/domain/operations/derived-operations.ts +21 -0
- package/src/stores/modules/store/domain/operations/diffing.ts +272 -0
- package/src/stores/modules/store/domain/operations/event-bus.ts +255 -0
- package/src/stores/modules/store/domain/operations/history-operations.ts +101 -0
- package/src/stores/modules/store/domain/operations/hydration.ts +159 -0
- package/src/stores/modules/store/domain/operations/immutable.ts +173 -0
- package/src/stores/modules/store/domain/operations/index.ts +21 -0
- package/src/stores/modules/store/domain/operations/middleware.ts +193 -0
- package/src/stores/modules/store/domain/operations/mutations.ts +14 -0
- package/src/stores/modules/store/domain/operations/normalization.ts +195 -0
- package/src/stores/modules/store/domain/operations/optimistic.ts +171 -0
- package/src/stores/modules/store/domain/operations/persistence-operations.ts +26 -0
- package/src/stores/modules/store/domain/operations/queries.ts +296 -0
- package/src/stores/modules/store/domain/operations/selectors.ts +112 -0
- package/src/stores/modules/store/domain/operations/store-operations.ts +52 -0
- package/src/stores/modules/store/domain/operations/time-machine.ts +240 -0
- package/src/stores/modules/store/domain/operations/transactions.ts +198 -0
- package/src/stores/modules/store/domain/validators/action-validators.ts +20 -0
- package/src/stores/modules/store/domain/validators/history-validators.ts +19 -0
- package/src/stores/modules/store/domain/validators/index.ts +7 -0
- package/src/stores/modules/store/domain/validators/persistence-validators.ts +23 -0
- package/src/stores/modules/store/domain/validators/store-validators.ts +41 -0
- package/src/stores/modules/store/index.ts +9 -0
- package/src/stores/modules/store/ports/index.ts +104 -0
- package/src/stores/modules/store/types/index.ts +35 -0
- package/src/stores/shared/constants/index.ts +50 -0
- package/src/stores/shared/errors/index.ts +122 -0
- package/src/stores/shared/index.ts +7 -0
- package/src/stores/shared/schema-generator.ts +262 -0
- package/src/stores/shared/types/index.ts +147 -0
- package/src/testing/index.ts +90 -0
- package/src/vite/auto-imports.ts +65 -0
- package/src/vite/client.d.ts +25 -0
- package/src/vite/dev-middleware.ts +142 -0
- package/src/vite/index.ts +9 -0
- package/src/vite/plugin.ts +277 -0
- package/src/vite/prerender.ts +72 -0
- package/src/vite/server-fn-ids.ts +52 -0
- package/src/vite/types/index.ts +24 -0
- package/src/vite/virtual-modules.ts +68 -0
package/dist/vite.d.ts
ADDED
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
import "solid-js";
|
|
2
|
+
import { IncomingMessage, ServerResponse } from "node:http";
|
|
3
|
+
import { Plugin, ViteDevServer } from "vite";
|
|
4
|
+
//#region src/vite/auto-imports.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Auto Imports
|
|
7
|
+
* Conservative transform: inject framework imports for configured identifiers
|
|
8
|
+
* that are used but not declared — the Nuxt auto-import equivalent
|
|
9
|
+
*/
|
|
10
|
+
export declare const FRAMEWORK_AUTO_IMPORTS: Record<string, string>;
|
|
11
|
+
/**
|
|
12
|
+
* Returns the import statements to prepend, or null when nothing is needed.
|
|
13
|
+
* Only injects names that are (a) called/used, (b) not already imported,
|
|
14
|
+
* (c) not locally declared (const/let/function/class/import).
|
|
15
|
+
*/
|
|
16
|
+
export declare const injectAutoImports: (code: string, map: Record<string, string | string[]>) => string | null;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/render/types/index.d.ts
|
|
19
|
+
type RenderMode = "ssr" | "stream" | "csr" | "islands";
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/app/types/index.d.ts
|
|
22
|
+
/**
|
|
23
|
+
* Per-route rendering/cache rules — the routeRules equivalent.
|
|
24
|
+
* Patterns support `*` (one segment) and `**` (any depth).
|
|
25
|
+
*/
|
|
26
|
+
interface RouteRule {
|
|
27
|
+
/**
|
|
28
|
+
* Render strategy — `data-only` runs the route loader on the server
|
|
29
|
+
* and ships a CSR shell with the data preloaded (TanStack Start's
|
|
30
|
+
* `ssr: 'data-only'` equivalent)
|
|
31
|
+
*/
|
|
32
|
+
mode?: RenderMode | "ssg" | "prerender" | "data-only" | "ppr";
|
|
33
|
+
headers?: Record<string, string>;
|
|
34
|
+
/**
|
|
35
|
+
* Cache/ISR — maxAge is the revalidate window (seconds) for
|
|
36
|
+
* prerendered routes and the Cache-Control max-age
|
|
37
|
+
*/
|
|
38
|
+
cache?: {
|
|
39
|
+
maxAge?: number;
|
|
40
|
+
swr?: boolean;
|
|
41
|
+
tags?: string[];
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Per-route middleware — runs after config.middleware when this rule
|
|
45
|
+
* matches the request pathname. Return a Response to short-circuit.
|
|
46
|
+
*/
|
|
47
|
+
middleware?: AppMiddleware[];
|
|
48
|
+
/**
|
|
49
|
+
* Security headers for matched routes — `true` applies the safe
|
|
50
|
+
* default set (nosniff, frame DENY, referrer policy, HSTS);
|
|
51
|
+
* `csp` enables a nonce-based Content-Security-Policy whose nonce
|
|
52
|
+
* is exposed as context.state.cspNonce and applied to the
|
|
53
|
+
* hydration script
|
|
54
|
+
*/
|
|
55
|
+
security?: SecurityHeaders | boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Rate limit — fixed-window token bucket per client key.
|
|
58
|
+
* `rpm` requests per `window` ms (default 60/60s); `key` customizes
|
|
59
|
+
* the bucket key (default: client ip + pattern)
|
|
60
|
+
*/
|
|
61
|
+
rateLimit?: {
|
|
62
|
+
rpm?: number;
|
|
63
|
+
window?: number;
|
|
64
|
+
key?: (ctx: {
|
|
65
|
+
request: Request;
|
|
66
|
+
}) => string;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* A/B split — `weight` fraction of clients are rewritten to
|
|
70
|
+
* `route` (sticky via `__ab_<pattern>` cookie)
|
|
71
|
+
*/
|
|
72
|
+
variant?: {
|
|
73
|
+
route: string;
|
|
74
|
+
weight: number;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Sitemap metadata for matched routes — priority/changefreq/
|
|
78
|
+
* lastmod merge into the generated sitemap.xml entries
|
|
79
|
+
*/
|
|
80
|
+
sitemap?: {
|
|
81
|
+
priority?: number;
|
|
82
|
+
changefreq?: string;
|
|
83
|
+
lastmod?: string;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
interface SecurityHeaders {
|
|
87
|
+
/** CSP directives — {nonce} is replaced per request */
|
|
88
|
+
csp?: string | Record<string, string[]>;
|
|
89
|
+
/** X-Frame-Options — default DENY when security is enabled */
|
|
90
|
+
frameOptions?: "DENY" | "SAMEORIGIN";
|
|
91
|
+
/** Referrer-Policy — default strict-origin-when-cross-origin */
|
|
92
|
+
referrerPolicy?: string;
|
|
93
|
+
/** Strict-Transport-Security — default "max-age=31536000; includeSubDomains" */
|
|
94
|
+
hsts?: string;
|
|
95
|
+
/** X-Content-Type-Options: nosniff — default true */
|
|
96
|
+
noSniff?: boolean;
|
|
97
|
+
}
|
|
98
|
+
type RouteRules = Record<string, RouteRule>;
|
|
99
|
+
/** Per-request state bag middleware writes into and render reads */
|
|
100
|
+
interface MiddlewareContext<TState extends Record<string, unknown> = Record<string, unknown>> {
|
|
101
|
+
request: Request;
|
|
102
|
+
url: URL;
|
|
103
|
+
/** Shared state — exposed on the render context and route loaders */
|
|
104
|
+
state: TState;
|
|
105
|
+
/** Params from the matched file route, when available */
|
|
106
|
+
params?: Record<string, string>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Server middleware — runs before routing/rendering. Return a Response
|
|
110
|
+
* to short-circuit (redirect, auth deny), otherwise call through.
|
|
111
|
+
* Generic over the shared state bag so downstream loaders/actions
|
|
112
|
+
* consume `state` type-safely via useRouteState<T>()
|
|
113
|
+
*/
|
|
114
|
+
type AppMiddleware<TState extends Record<string, unknown> = Record<string, unknown>> = ((ctx: MiddlewareContext<TState>) => undefined | Response | Promise<undefined | Response>) & {
|
|
115
|
+
/** Execution order — lower runs first; default 0 */
|
|
116
|
+
order?: number;
|
|
117
|
+
};
|
|
118
|
+
/** Framework plugin — the Nuxt-module equivalent */
|
|
119
|
+
interface FrameworkPlugin {
|
|
120
|
+
name: string;
|
|
121
|
+
/** Mutate/patch resolved config at startup */
|
|
122
|
+
config?: (config: SolidFrameworkConfig) => Partial<SolidFrameworkConfig> | undefined;
|
|
123
|
+
/** Called when the file-route manifest is built (dev/build) */
|
|
124
|
+
routesResolved?: (manifest: unknown) => void;
|
|
125
|
+
/** Source transform hook inside the vite plugin */
|
|
126
|
+
transform?: (code: string, id: string) => string | null | undefined;
|
|
127
|
+
}
|
|
128
|
+
interface ImagesConfig {
|
|
129
|
+
/** Endpoint path — default "/_image" */
|
|
130
|
+
endpoint?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Transformer port — receives parsed params, returns the optimized
|
|
133
|
+
* image Response. Default redirects to the original asset.
|
|
134
|
+
*/
|
|
135
|
+
transformer?: (params: {
|
|
136
|
+
src: string;
|
|
137
|
+
width?: number;
|
|
138
|
+
quality?: number;
|
|
139
|
+
format?: string;
|
|
140
|
+
request: Request;
|
|
141
|
+
}) => Promise<Response> | Response;
|
|
142
|
+
/**
|
|
143
|
+
* Remote image allowlist (SSRF guard) — absolute `src` URLs are only
|
|
144
|
+
* fetched when the host matches a pattern ("cdn.example.com" or
|
|
145
|
+
* "*.example.com"). When unset, only same-origin sources resolve.
|
|
146
|
+
*/
|
|
147
|
+
remotePatterns?: string[];
|
|
148
|
+
}
|
|
149
|
+
interface SolidFrameworkConfig {
|
|
150
|
+
/** Routes directory — default "src/routes" */
|
|
151
|
+
routesDir: string;
|
|
152
|
+
/** Default render mode when no route rule matches — default "stream" */
|
|
153
|
+
renderMode: RenderMode;
|
|
154
|
+
/** Path-pattern rules — `rules: { "/blog/**": { mode: "prerender" } }` */
|
|
155
|
+
rules: RouteRules;
|
|
156
|
+
/** @deprecated renamed to `rules` — routeRules is Nuxt's name */
|
|
157
|
+
routeRules?: RouteRules;
|
|
158
|
+
/** Path prefixes served by web-server API routes — default ["/api"] */
|
|
159
|
+
apiPrefixes: string[];
|
|
160
|
+
/** Default document metadata */
|
|
161
|
+
head: {
|
|
162
|
+
title?: string;
|
|
163
|
+
lang?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Asset preload hints — entry chunks/styles emitted into <head> on
|
|
166
|
+
* every HTML response; pair with the build's preload-manifest.json
|
|
167
|
+
*/
|
|
168
|
+
preloads?: string[];
|
|
169
|
+
};
|
|
170
|
+
/** Auto-import framework APIs in .tsx/.ts sources */
|
|
171
|
+
autoImports: boolean;
|
|
172
|
+
/** Server/client entry files */
|
|
173
|
+
entries: {
|
|
174
|
+
server: string;
|
|
175
|
+
client: string;
|
|
176
|
+
};
|
|
177
|
+
/** Extra public env prefixes exposed to the client — default ["PUBLIC_"] */
|
|
178
|
+
publicEnvPrefixes: string[];
|
|
179
|
+
/** Server middleware chain — runs before the render pipeline */
|
|
180
|
+
middleware?: AppMiddleware[];
|
|
181
|
+
/** Framework plugins */
|
|
182
|
+
plugins?: FrameworkPlugin[];
|
|
183
|
+
/**
|
|
184
|
+
* Layers — base configs merged shallow-first; this config wins.
|
|
185
|
+
* Compose app presets: `extends: [shopLayer]`
|
|
186
|
+
*/
|
|
187
|
+
extends?: Partial<SolidFrameworkConfig>[];
|
|
188
|
+
/**
|
|
189
|
+
* Observability hooks — `instrumentation.ts` convention:
|
|
190
|
+
* export const register = () => initTelemetry();
|
|
191
|
+
* export const onRequest = (e) => span(e);
|
|
192
|
+
* register() runs once at server boot; onRequest runs after
|
|
193
|
+
* every response with {method, path, status, ms}
|
|
194
|
+
*/
|
|
195
|
+
instrumentation?: {
|
|
196
|
+
register?: () => void | Promise<void>;
|
|
197
|
+
onRequest?: (event: {
|
|
198
|
+
method: string;
|
|
199
|
+
path: string;
|
|
200
|
+
status: number;
|
|
201
|
+
ms: number;
|
|
202
|
+
}) => void;
|
|
203
|
+
/** Thrown errors reach onError before the 500 response */
|
|
204
|
+
onError?: (event: {
|
|
205
|
+
method: string;
|
|
206
|
+
path: string;
|
|
207
|
+
error: unknown;
|
|
208
|
+
}) => void;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Multi-zone — requests under `prefix` proxy to `target` origin
|
|
212
|
+
* (another app/zone); prefix is stripped before forwarding
|
|
213
|
+
*/
|
|
214
|
+
zones?: {
|
|
215
|
+
prefix: string;
|
|
216
|
+
target: string;
|
|
217
|
+
}[];
|
|
218
|
+
/** Image optimization endpoint config */
|
|
219
|
+
images?: ImagesConfig;
|
|
220
|
+
/**
|
|
221
|
+
* Build-time prerendering — after the SSR build, listed routes are
|
|
222
|
+
* rendered through the built server entry and written to outDir as
|
|
223
|
+
* static HTML. crawlLinks discovers additional pages via anchors.
|
|
224
|
+
*/
|
|
225
|
+
prerender?: {
|
|
226
|
+
routes?: string[];
|
|
227
|
+
crawlLinks?: boolean;
|
|
228
|
+
/** Output directory for static pages — default "<root>/dist" */
|
|
229
|
+
outDir?: string;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Production static file serving — directories tried in order for
|
|
233
|
+
* GET requests before the render fallback (e.g. ["dist", "public"])
|
|
234
|
+
*/
|
|
235
|
+
static?: {
|
|
236
|
+
dirs: string[];
|
|
237
|
+
immutablePrefix?: string;
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* PWA — emit sw.js (precache + cache-first GET strategy) and an
|
|
241
|
+
* optional manifest.webmanifest into the client build
|
|
242
|
+
*/
|
|
243
|
+
pwa?: {
|
|
244
|
+
/** Extra URLs precached at install — "/" is always included */
|
|
245
|
+
precache?: string[];
|
|
246
|
+
manifest?: {
|
|
247
|
+
name?: string;
|
|
248
|
+
shortName?: string;
|
|
249
|
+
startUrl?: string;
|
|
250
|
+
display?: string;
|
|
251
|
+
background?: string;
|
|
252
|
+
theme?: string;
|
|
253
|
+
icons?: {
|
|
254
|
+
src: string;
|
|
255
|
+
sizes: string;
|
|
256
|
+
type?: string;
|
|
257
|
+
}[];
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* i18n routing — locale-prefixed paths (`/en/about`), stripped
|
|
262
|
+
* before route matching; locale exposed via useLocale()
|
|
263
|
+
*/
|
|
264
|
+
i18n?: {
|
|
265
|
+
locales: string[];
|
|
266
|
+
defaultLocale: string;
|
|
267
|
+
strategy?: "prefix" | "prefix_except_default";
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region src/vite/dev-middleware.d.ts
|
|
272
|
+
/**
|
|
273
|
+
* Vite middleware factory — SSRs page requests through the app server entry
|
|
274
|
+
*/
|
|
275
|
+
export declare const createSsrMiddleware: (server: ViteDevServer, config: SolidFrameworkConfig) => ((req: IncomingMessage, res: ServerResponse, next: (err?: unknown) => void) => void);
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region src/router/shared/types/routing.d.ts
|
|
278
|
+
type RoutePath = string;
|
|
279
|
+
type RouteConfig = {
|
|
280
|
+
path: RoutePath;
|
|
281
|
+
component?: () => unknown;
|
|
282
|
+
loaders?: () => Promise<unknown>;
|
|
283
|
+
meta?: Record<string, unknown>;
|
|
284
|
+
};
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region src/router/vite-plugin/vite-plugin-options-advanced.d.ts
|
|
287
|
+
interface SolidRouterPluginAdvancedOptions {
|
|
288
|
+
/**
|
|
289
|
+
* Enable caching
|
|
290
|
+
* @default true
|
|
291
|
+
*/
|
|
292
|
+
caching?: boolean;
|
|
293
|
+
/**
|
|
294
|
+
* Caching configuration
|
|
295
|
+
*/
|
|
296
|
+
cachingConfig?: {
|
|
297
|
+
/**
|
|
298
|
+
* Cache strategy
|
|
299
|
+
* @default "swr"
|
|
300
|
+
*/
|
|
301
|
+
strategy?: "swr" | "stale-while-revalidate" | "network-first";
|
|
302
|
+
/**
|
|
303
|
+
* Max cache size
|
|
304
|
+
* @default 100
|
|
305
|
+
*/
|
|
306
|
+
maxSize?: number;
|
|
307
|
+
/**
|
|
308
|
+
* Eviction policy
|
|
309
|
+
* @default "lru"
|
|
310
|
+
*/
|
|
311
|
+
evictionPolicy?: "lru" | "fifo" | "lfu";
|
|
312
|
+
/**
|
|
313
|
+
* Default TTL (ms)
|
|
314
|
+
* @default 5000
|
|
315
|
+
*/
|
|
316
|
+
defaultTtl?: number;
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* Enable predictive preloading
|
|
320
|
+
* @default false
|
|
321
|
+
*/
|
|
322
|
+
predictivePreloading?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* Predictive preloading configuration
|
|
325
|
+
*/
|
|
326
|
+
preloadingConfig?: {
|
|
327
|
+
/**
|
|
328
|
+
* Preload threshold (probability)
|
|
329
|
+
* @default 0.5
|
|
330
|
+
*/
|
|
331
|
+
threshold?: number;
|
|
332
|
+
/**
|
|
333
|
+
* Max routes to preload
|
|
334
|
+
* @default 3
|
|
335
|
+
*/
|
|
336
|
+
maxRoutes?: number;
|
|
337
|
+
/**
|
|
338
|
+
* History length for predictions
|
|
339
|
+
* @default 100
|
|
340
|
+
*/
|
|
341
|
+
historyLength?: number;
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* Enable error tracking
|
|
345
|
+
* @default false
|
|
346
|
+
*/
|
|
347
|
+
errorTracking?: boolean;
|
|
348
|
+
/**
|
|
349
|
+
* Error tracking configuration
|
|
350
|
+
*/
|
|
351
|
+
errorTrackingConfig?: {
|
|
352
|
+
/**
|
|
353
|
+
* Error tracking endpoint
|
|
354
|
+
*/
|
|
355
|
+
endpoint?: string;
|
|
356
|
+
/**
|
|
357
|
+
* Max errors to store
|
|
358
|
+
* @default 1000
|
|
359
|
+
*/
|
|
360
|
+
maxErrors?: number;
|
|
361
|
+
/**
|
|
362
|
+
* Enable error aggregation
|
|
363
|
+
* @default true
|
|
364
|
+
*/
|
|
365
|
+
aggregation?: boolean;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* Custom routes
|
|
369
|
+
*/
|
|
370
|
+
routes?: RouteConfig[];
|
|
371
|
+
/**
|
|
372
|
+
* Generate TypeScript types for routes
|
|
373
|
+
* @default true
|
|
374
|
+
*/
|
|
375
|
+
generateTypes?: boolean;
|
|
376
|
+
/**
|
|
377
|
+
* Output directory for generated types
|
|
378
|
+
* @default "src/types"
|
|
379
|
+
*/
|
|
380
|
+
typesOutputDir?: string;
|
|
381
|
+
/**
|
|
382
|
+
* Enable HMR for routes
|
|
383
|
+
* @default true
|
|
384
|
+
*/
|
|
385
|
+
hmr?: boolean;
|
|
386
|
+
/**
|
|
387
|
+
* HMR configuration
|
|
388
|
+
*/
|
|
389
|
+
hmrConfig?: {
|
|
390
|
+
/**
|
|
391
|
+
* Enable overlay
|
|
392
|
+
* @default true
|
|
393
|
+
*/
|
|
394
|
+
overlay?: boolean;
|
|
395
|
+
/**
|
|
396
|
+
* HMR timeout (ms)
|
|
397
|
+
* @default 1000
|
|
398
|
+
*/
|
|
399
|
+
timeout?: number;
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
//#endregion
|
|
403
|
+
//#region src/router/vite-plugin/vite-plugin-options-features.d.ts
|
|
404
|
+
interface SolidRouterPluginFeatureOptions {
|
|
405
|
+
/**
|
|
406
|
+
* Enable code splitting
|
|
407
|
+
* @default true
|
|
408
|
+
*/
|
|
409
|
+
codeSplitting?: boolean;
|
|
410
|
+
/**
|
|
411
|
+
* Code splitting configuration
|
|
412
|
+
*/
|
|
413
|
+
codeSplittingConfig?: {
|
|
414
|
+
/**
|
|
415
|
+
* Splitting strategy
|
|
416
|
+
* @default "auto"
|
|
417
|
+
*/
|
|
418
|
+
strategy?: "auto" | "manual" | "aggressive";
|
|
419
|
+
/**
|
|
420
|
+
* Enable device-specific splitting
|
|
421
|
+
* @default false
|
|
422
|
+
*/
|
|
423
|
+
deviceSpecific?: boolean;
|
|
424
|
+
/**
|
|
425
|
+
* Bundle size threshold for splitting (KB)
|
|
426
|
+
* @default 100
|
|
427
|
+
*/
|
|
428
|
+
bundleSizeThreshold?: number;
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* Enable i18n support
|
|
432
|
+
* @default false
|
|
433
|
+
*/
|
|
434
|
+
i18n?: boolean;
|
|
435
|
+
/**
|
|
436
|
+
* i18n configuration
|
|
437
|
+
*/
|
|
438
|
+
i18nConfig?: {
|
|
439
|
+
/**
|
|
440
|
+
* Default locale
|
|
441
|
+
* @default "en"
|
|
442
|
+
*/
|
|
443
|
+
defaultLocale?: string;
|
|
444
|
+
/**
|
|
445
|
+
* Supported locales
|
|
446
|
+
*/
|
|
447
|
+
supportedLocales?: string[];
|
|
448
|
+
/**
|
|
449
|
+
* Locale detection methods
|
|
450
|
+
* @default ["path", "header"]
|
|
451
|
+
*/
|
|
452
|
+
detection?: Array<"path" | "header" | "cookie" | "query">;
|
|
453
|
+
/**
|
|
454
|
+
* Directory containing locale files
|
|
455
|
+
* @default "src/locales"
|
|
456
|
+
*/
|
|
457
|
+
localesDir?: string;
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* Enable feature flags
|
|
461
|
+
* @default false
|
|
462
|
+
*/
|
|
463
|
+
featureFlags?: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* Feature flags configuration
|
|
466
|
+
*/
|
|
467
|
+
featureFlagsConfig?: {
|
|
468
|
+
/**
|
|
469
|
+
* API endpoint for feature flags
|
|
470
|
+
*/
|
|
471
|
+
apiEndpoint?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Enable local feature flags
|
|
474
|
+
* @default true
|
|
475
|
+
*/
|
|
476
|
+
localFlags?: boolean;
|
|
477
|
+
/**
|
|
478
|
+
* Enable audit logging
|
|
479
|
+
* @default false
|
|
480
|
+
*/
|
|
481
|
+
auditLogging?: boolean;
|
|
482
|
+
};
|
|
483
|
+
/**
|
|
484
|
+
* Enable security scanning
|
|
485
|
+
* @default false
|
|
486
|
+
*/
|
|
487
|
+
securityScanning?: boolean;
|
|
488
|
+
/**
|
|
489
|
+
* Security scanning configuration
|
|
490
|
+
*/
|
|
491
|
+
securityConfig?: {
|
|
492
|
+
/**
|
|
493
|
+
* Enable specific security rules
|
|
494
|
+
*/
|
|
495
|
+
rules?: Array<"open-redirect" | "path-traversal" | "missing-auth" | "sensitive-data" | "parameter-injection">;
|
|
496
|
+
/**
|
|
497
|
+
* Severity threshold for reporting
|
|
498
|
+
* @default "medium"
|
|
499
|
+
*/
|
|
500
|
+
severityThreshold?: "low" | "medium" | "high";
|
|
501
|
+
/**
|
|
502
|
+
* Auto-fix issues
|
|
503
|
+
* @default false
|
|
504
|
+
*/
|
|
505
|
+
autoFix?: boolean;
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
//#endregion
|
|
509
|
+
//#region src/router/vite-plugin/vite-plugin-options-routing.d.ts
|
|
510
|
+
interface SolidRouterPluginRoutingOptions {
|
|
511
|
+
/**
|
|
512
|
+
* Directory containing route files
|
|
513
|
+
* @default "src/routes"
|
|
514
|
+
*/
|
|
515
|
+
routesDir?: string;
|
|
516
|
+
/**
|
|
517
|
+
* File extensions to scan for routes
|
|
518
|
+
* @default [".tsx", ".ts", ".jsx", ".js"]
|
|
519
|
+
*/
|
|
520
|
+
routeExtensions?: string[];
|
|
521
|
+
/**
|
|
522
|
+
* Enable auto-import of router components
|
|
523
|
+
* @default true
|
|
524
|
+
*/
|
|
525
|
+
autoImport?: boolean;
|
|
526
|
+
/**
|
|
527
|
+
* Auto-import configuration
|
|
528
|
+
*/
|
|
529
|
+
autoImportConfig?: {
|
|
530
|
+
/**
|
|
531
|
+
* Components to auto-import
|
|
532
|
+
*/
|
|
533
|
+
components?: string[];
|
|
534
|
+
/**
|
|
535
|
+
* Composables to auto-import
|
|
536
|
+
*/
|
|
537
|
+
composables?: string[];
|
|
538
|
+
/**
|
|
539
|
+
* Directories to scan for auto-imports
|
|
540
|
+
*/
|
|
541
|
+
dirs?: string[];
|
|
542
|
+
};
|
|
543
|
+
/**
|
|
544
|
+
* Enable DevTools integration
|
|
545
|
+
* @default true in development
|
|
546
|
+
*/
|
|
547
|
+
devTools?: boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Enable performance monitoring
|
|
550
|
+
* @default false
|
|
551
|
+
*/
|
|
552
|
+
performanceMonitoring?: boolean;
|
|
553
|
+
/**
|
|
554
|
+
* Performance monitoring configuration
|
|
555
|
+
*/
|
|
556
|
+
performanceConfig?: {
|
|
557
|
+
/**
|
|
558
|
+
* Threshold for slow load time (ms)
|
|
559
|
+
* @default 1000
|
|
560
|
+
*/
|
|
561
|
+
slowLoadThreshold?: number;
|
|
562
|
+
/**
|
|
563
|
+
* Threshold for slow render time (ms)
|
|
564
|
+
* @default 500
|
|
565
|
+
*/
|
|
566
|
+
slowRenderThreshold?: number;
|
|
567
|
+
/**
|
|
568
|
+
* Enable performance alerts
|
|
569
|
+
* @default true
|
|
570
|
+
*/
|
|
571
|
+
alerts?: boolean;
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
//#endregion
|
|
575
|
+
//#region src/router/vite-plugin/vite-plugin-options.d.ts
|
|
576
|
+
interface PluginLogger {
|
|
577
|
+
log: (message: string) => void;
|
|
578
|
+
}
|
|
579
|
+
interface SolidRouterPluginOptions extends SolidRouterPluginRoutingOptions, SolidRouterPluginFeatureOptions, SolidRouterPluginAdvancedOptions {
|
|
580
|
+
/**
|
|
581
|
+
* Optional logger for plugin messages. When omitted, plugin logs are silent.
|
|
582
|
+
*/
|
|
583
|
+
logger?: PluginLogger;
|
|
584
|
+
}
|
|
585
|
+
//#endregion
|
|
586
|
+
//#region src/vite/types/index.d.ts
|
|
587
|
+
export interface SolidFrameworkPluginOptions {
|
|
588
|
+
/** Framework config (also emitted to virtual:solid-framework/config) */
|
|
589
|
+
config?: Partial<SolidFrameworkConfig>;
|
|
590
|
+
/** Router plugin options — pass false to disable route codegen plugin */
|
|
591
|
+
router?: SolidRouterPluginOptions | false;
|
|
592
|
+
/**
|
|
593
|
+
* Auto-import map: export name → module specifier.
|
|
594
|
+
* true = framework defaults; false = disabled; object = merged with defaults
|
|
595
|
+
*/
|
|
596
|
+
autoImports?: Record<string, string | string[]> | boolean;
|
|
597
|
+
/** Serve SSR through the dev middleware — default true */
|
|
598
|
+
ssrMiddleware?: boolean;
|
|
599
|
+
}
|
|
600
|
+
export declare const VIRTUAL_CONFIG = "virtual:solid-framework/config";
|
|
601
|
+
export declare const VIRTUAL_ROUTES = "virtual:solid-framework/routes";
|
|
602
|
+
export declare const VIRTUAL_SERVER_FNS = "virtual:solid-framework/server-fns";
|
|
603
|
+
//#endregion
|
|
604
|
+
//#region src/vite/plugin.d.ts
|
|
605
|
+
export declare const solidFramework: (options?: SolidFrameworkPluginOptions) => Plugin[];
|
|
606
|
+
//#endregion
|
|
607
|
+
//#region src/vite/prerender.d.ts
|
|
608
|
+
/**
|
|
609
|
+
* Build-time Prerender
|
|
610
|
+
* Renders routes through the built server entry and writes static
|
|
611
|
+
* HTML to outDir — the SSG equivalent of Nitro's prerender, with
|
|
612
|
+
* crawlLinks discovering pages from rendered anchors
|
|
613
|
+
*/
|
|
614
|
+
/** Same-origin links found in rendered HTML — `href="/path"` */
|
|
615
|
+
export declare const extractLinks: (html: string) => string[];
|
|
616
|
+
export interface PrerenderResult {
|
|
617
|
+
path: string;
|
|
618
|
+
file: string;
|
|
619
|
+
status: number;
|
|
620
|
+
}
|
|
621
|
+
export declare const prerenderToDisk: (handler: (request: Request) => Promise<Response>, options: {
|
|
622
|
+
routes?: string[];
|
|
623
|
+
crawlLinks?: boolean;
|
|
624
|
+
outDir: string;
|
|
625
|
+
/** Base origin for constructed requests — default http://localhost */
|
|
626
|
+
base?: string;
|
|
627
|
+
}) => Promise<PrerenderResult[]>;
|
|
628
|
+
//#endregion
|
|
629
|
+
//#region src/vite/server-fn-ids.d.ts
|
|
630
|
+
/**
|
|
631
|
+
* Server Fn Id Transform
|
|
632
|
+
* Injects stable ids into `createServerFn({ ... })` calls that omit
|
|
633
|
+
* `id` — the hash derives from file path + call index so the client
|
|
634
|
+
* and server bundles agree without a runtime handshake
|
|
635
|
+
*/
|
|
636
|
+
export declare const injectServerFnIds: (code: string, fileId: string) => string;
|
|
637
|
+
//#endregion
|
|
638
|
+
//#region src/vite/virtual-modules.d.ts
|
|
639
|
+
export declare const configModuleCode: (config: SolidFrameworkConfig, instrumentationPath?: string) => string;
|
|
640
|
+
/**
|
|
641
|
+
* Route manifest — Vite glob import over the routes directory, plus a
|
|
642
|
+
* prebuilt RouteManifest for <FileRoutes>. Convention files
|
|
643
|
+
* (error/loading/not-found/layout) are included in the modules map.
|
|
644
|
+
*/
|
|
645
|
+
export declare const routesModuleCode: (routesDir: string) => string;
|
|
646
|
+
/**
|
|
647
|
+
* Server function registry — eager glob of server modules so every
|
|
648
|
+
* createServerFn descriptor registers itself on the server bundle.
|
|
649
|
+
* Conventions:
|
|
650
|
+
* *.server.ts — server-only code (stubbed out of client bundles)
|
|
651
|
+
* *.fn.ts — isomorphic createServerFn definitions (client ships the
|
|
652
|
+
* remote caller only; handler executes server-side)
|
|
653
|
+
*/
|
|
654
|
+
export declare const serverFnsModuleCode: () => string;
|
|
655
|
+
/**
|
|
656
|
+
* Stub emitted when a .server module leaks into the client bundle
|
|
657
|
+
*/
|
|
658
|
+
export declare const serverStubCode: (id: string) => string;
|
|
659
|
+
export declare const isServerModuleId: (id: string) => boolean;
|
|
660
|
+
//#endregion
|
|
661
|
+
//# sourceMappingURL=vite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.d.ts","names":[],"sources":["../src/vite/auto-imports.ts","../src/render/types/index.ts","../src/app/types/index.ts","../src/vite/dev-middleware.ts","../src/router/shared/types/routing.ts","../src/router/vite-plugin/vite-plugin-options-advanced.ts","../src/router/vite-plugin/vite-plugin-options-features.ts","../src/router/vite-plugin/vite-plugin-options-routing.ts","../src/router/vite-plugin/vite-plugin-options.ts","../src/vite/types/index.ts","../src/vite/plugin.ts","../src/vite/prerender.ts","../src/vite/server-fn-ids.ts","../src/vite/virtual-modules.ts"],"mappings":";;;;;;;;;qBAMa,wBAAwB;;;;;;qBA0BxB,oBAAiB,cACjB,KACP;;;KC3BM;;;;;;;UCIK;;;;;;EAMhB,OAAO;EACP,UAAU;;;;;EAKV;IAAU;IAAiB;IAAe;;;;;;EAK1C,aAAa;;;;;;;;EAQb,WAAW;;;;;;EAMX;IACC;IACA;IACA,OAAO;MAAO,SAAS;;;;;;;EAMxB;IAAY;IAAe;;;;;;EAK3B;IACC;IACA;IACA;;;UAIe;;EAEhB,eAAe;;EAEf;;EAEA;;EAEA;;EAEA;;KAGW,aAAa,eAAe;;UAGvB,kBAChB,eAAe,0BAA0B;EAEzC,SAAS;EACT,KAAK;;EAEL,OAAO;;EAEP,SAAS;;;;;;;;KASE,cACX,eAAe,0BAA0B,6BAEzC,KAAK,kBAAkB,wBACP,WAAW,oBAAoB;;EAE/C;;;UAmBgB;EAChB;;EAEA,UACC,QAAQ,yBACJ,QAAQ;;EAEb,kBAAkB;;EAElB,aAAa,cAAc;;UAGX;;EAEhB;;;;;EAKA,eAAe;IACd;IACA;IACA;IACA;IACA,SAAS;QACJ,QAAQ,YAAY;;;;;;EAM1B;;UAGgB;;EAEhB;;EAEA,YAAY;;EAEZ,OAAO;;EAEP,aAAa;;EAEb;;EAEA;IACC;IACA;;;;;IAKA;;;EAGD;;EAEA;IAAW;IAAgB;;;EAE3B;;EAEA,aAAa;;EAEb,UAAU;;;;;EAKV,UAAU,QAAQ;;;;;;;;EAQlB;IACC,wBAAwB;IACxB,aAAa;MACZ;MACA;MACA;MACA;;;IAGD,WAAW;MAAS;MAAgB;MAAc;;;;;;;EAMnD;IAAU;IAAgB;;;EAE1B,SAAS;;;;;;EAMT;IACC;IACA;;IAEA;;;;;;EAMD;IAAW;IAAgB;;;;;;EAK3B;;IAEC;IACA;MACC;MACA;MACA;MACA;MACA;MACA;MACA;QAAU;QAAa;QAAe;;;;;;;;EAOxC;IACC;IACA;IACA;;;;;;;;qBC7KW,sBAAmB,QACvB,eAAa,QACb,2BAER,KAAK,iBACL,KAAK,gBACL,OAAO;;;KCxFI;KAUA;EACX,MAAM;EACN;EACA,gBAAgB;EAChB,OAAO;;;;UCbS;;;;;EAKhB;;;;EAKA;;;;;IAKC;;;;;IAKA;;;;;IAKA;;;;;IAKA;;;;;;EAOD;;;;EAKA;;;;;IAKC;;;;;IAKA;;;;;IAKA;;;;;;EAOD;;;;EAKA;;;;IAIC;;;;;IAKA;;;;;IAKA;;;;;EAMD,SAAS;;;;;EAMT;;;;;EAMA;;;;;EAMA;;;;EAKA;;;;;IAKC;;;;;IAKA;;;;;UC5He;;;;;EAKhB;;;;EAKA;;;;;IAKC;;;;;IAKA;;;;;IAKA;;;;;;EAOD;;;;EAKA;;;;;IAKC;;;;IAIA;;;;;IAKA,YAAY;;;;;IAKZ;;;;;;EAOD;;;;EAKA;;;;IAIC;;;;;IAKA;;;;;IAKA;;;;;;EAOD;;;;EAKA;;;;IAIC,QAAQ;;;;;IAWR;;;;;IAKA;;;;;UClHe;;;;;EAKhB;;;;;EAMA;;;;;EAMA;;;;EAKA;;;;IAIC;;;;IAIA;;;;IAIA;;;;;;EAOD;;;;;EAMA;;;;EAKA;;;;;IAKC;;;;;IAKA;;;;;IAKA;;;;;UC/De;EAChB,MAAM;;UAGU,iCACR,iCACP,iCACA;;;;EAID,SAAS;;;;iBCRO;;EAEhB,SAAS,QAAQ;;EAEjB,SAAS;;;;;EAKT,cAAc;;EAEd;;qBAGY;qBACA;qBACA;;;qBCQA,iBAAc,UACjB,gCACP;;;;;;;;;;qBCtBU,eAAY;iBASR;EAChB;EACA;EACA;;qBAWY,kBAAe,UACjB,SAAS,YAAY,QAAQ,WAAS;EAE/C;EACA;EACA;;EAEA;MAEC,QAAQ;;;;;;;;;qBCjBE,oBAAiB,cAAgB;;;qBCnBjC,mBAAgB,QACpB,sBAAoB;;;;;;qBAqBhB,mBAAgB;;;;;;;;;qBAmBhB;;;;qBAUA,iBAAc;qBAQd,mBAAgB"}
|