vinext 0.0.54 → 0.1.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 +52 -15
- package/dist/build/clean-output.d.ts +1 -2
- package/dist/build/clean-output.js +0 -2
- package/dist/build/client-build-config.d.ts +16 -3
- package/dist/build/client-build-config.js +29 -4
- package/dist/build/css-url-assets.d.ts +29 -0
- package/dist/build/css-url-assets.js +211 -0
- package/dist/build/google-fonts/build-url.d.ts +1 -2
- package/dist/build/google-fonts/build-url.js +0 -2
- package/dist/build/google-fonts/fallback-metrics-data.js +0 -2
- package/dist/build/google-fonts/fallback-metrics.d.ts +1 -2
- package/dist/build/google-fonts/fallback-metrics.js +0 -2
- package/dist/build/google-fonts/font-data.js +0 -2
- package/dist/build/google-fonts/font-metadata.d.ts +1 -2
- package/dist/build/google-fonts/font-metadata.js +0 -2
- package/dist/build/google-fonts/get-axes.d.ts +1 -2
- package/dist/build/google-fonts/get-axes.js +0 -2
- package/dist/build/google-fonts/sort-variants.d.ts +1 -2
- package/dist/build/google-fonts/sort-variants.js +0 -2
- package/dist/build/google-fonts/validate.d.ts +1 -2
- package/dist/build/google-fonts/validate.js +0 -2
- package/dist/build/inline-css.d.ts +1 -2
- package/dist/build/inline-css.js +0 -2
- package/dist/build/layout-classification-types.d.ts +1 -2
- package/dist/build/layout-classification.d.ts +2 -3
- package/dist/build/layout-classification.js +1 -3
- package/dist/build/next-client-runtime-manifests.d.ts +14 -0
- package/dist/build/next-client-runtime-manifests.js +39 -0
- package/dist/build/nitro-route-rules.d.ts +1 -2
- package/dist/build/nitro-route-rules.js +0 -2
- package/dist/build/precompress.d.ts +1 -2
- package/dist/build/precompress.js +0 -2
- package/dist/build/prerender.d.ts +2 -3
- package/dist/build/prerender.js +14 -2
- package/dist/build/report.d.ts +1 -2
- package/dist/build/report.js +0 -2
- package/dist/build/route-classification-injector.d.ts +1 -2
- package/dist/build/route-classification-injector.js +4 -6
- package/dist/build/route-classification-manifest.d.ts +5 -6
- package/dist/build/route-classification-manifest.js +5 -7
- package/dist/build/run-prerender.d.ts +1 -2
- package/dist/build/run-prerender.js +15 -7
- package/dist/build/server-manifest.d.ts +1 -2
- package/dist/build/server-manifest.js +0 -2
- package/dist/build/ssr-manifest.d.ts +1 -2
- package/dist/build/ssr-manifest.js +2 -4
- package/dist/build/standalone.d.ts +1 -2
- package/dist/build/standalone.js +0 -2
- package/dist/build/static-export.d.ts +2 -3
- package/dist/build/static-export.js +0 -2
- package/dist/cache/cache-adapters-virtual.d.ts +50 -0
- package/dist/cache/cache-adapters-virtual.js +45 -0
- package/dist/check.d.ts +33 -2
- package/dist/check.js +321 -27
- package/dist/cli-args.d.ts +1 -2
- package/dist/cli-args.js +0 -2
- package/dist/cli.js +7 -13
- package/dist/client/instrumentation-client-inject.d.ts +1 -2
- package/dist/client/instrumentation-client-inject.js +0 -2
- package/dist/client/instrumentation-client-state.d.ts +1 -2
- package/dist/client/instrumentation-client-state.js +0 -2
- package/dist/client/instrumentation-client.d.ts +1 -2
- package/dist/client/instrumentation-client.js +0 -2
- package/dist/client/navigation-runtime.d.ts +2 -2
- package/dist/client/navigation-runtime.js +1 -3
- package/dist/client/pages-router-link-navigation.d.ts +1 -2
- package/dist/client/pages-router-link-navigation.js +0 -2
- package/dist/client/validate-module-path.d.ts +1 -2
- package/dist/client/validate-module-path.js +0 -2
- package/dist/client/vinext-next-data.d.ts +1 -2
- package/dist/client/vinext-next-data.js +0 -2
- package/dist/client/window-next.d.ts +1 -2
- package/dist/client/window-next.js +0 -2
- package/dist/cloudflare/index.d.ts +1 -1
- package/dist/cloudflare/index.js +1 -1
- package/dist/cloudflare/src/cache/cdn-adapter.runtime.js +97 -0
- package/dist/cloudflare/{kv-cache-handler.d.ts → src/cache/kv-data-adapter.runtime.d.ts} +25 -6
- package/dist/cloudflare/{kv-cache-handler.js → src/cache/kv-data-adapter.runtime.js} +36 -28
- package/dist/cloudflare/src/utils/cache-control-metadata.js +20 -0
- package/dist/cloudflare/tpr.d.ts +2 -3
- package/dist/cloudflare/tpr.js +8 -8
- package/dist/config/config-matchers.d.ts +1 -2
- package/dist/config/config-matchers.js +0 -2
- package/dist/config/dotenv.d.ts +1 -2
- package/dist/config/dotenv.js +0 -2
- package/dist/config/next-config.d.ts +30 -3
- package/dist/config/next-config.js +47 -8
- package/dist/config/tsconfig-paths.d.ts +12 -4
- package/dist/config/tsconfig-paths.js +58 -31
- package/dist/deploy.d.ts +48 -3
- package/dist/deploy.js +141 -112
- package/dist/entries/app-browser-entry.d.ts +1 -2
- package/dist/entries/app-browser-entry.js +0 -2
- package/dist/entries/app-rsc-entry.d.ts +6 -5
- package/dist/entries/app-rsc-entry.js +62 -61
- package/dist/entries/app-rsc-manifest.d.ts +1 -2
- package/dist/entries/app-rsc-manifest.js +42 -12
- package/dist/entries/app-ssr-entry.d.ts +1 -2
- package/dist/entries/app-ssr-entry.js +0 -2
- package/dist/entries/pages-client-entry.d.ts +3 -3
- package/dist/entries/pages-client-entry.js +16 -5
- package/dist/entries/pages-entry-helpers.d.ts +2 -11
- package/dist/entries/pages-entry-helpers.js +1 -20
- package/dist/entries/pages-server-entry.d.ts +2 -3
- package/dist/entries/pages-server-entry.js +94 -670
- package/dist/entries/runtime-entry-module.d.ts +1 -2
- package/dist/entries/runtime-entry-module.js +0 -2
- package/dist/index.d.ts +22 -2
- package/dist/index.js +297 -140
- package/dist/init.d.ts +1 -2
- package/dist/init.js +1 -3
- package/dist/plugins/ast-utils.d.ts +20 -0
- package/dist/plugins/ast-utils.js +78 -0
- package/dist/plugins/async-hooks-stub.d.ts +1 -2
- package/dist/plugins/async-hooks-stub.js +0 -2
- package/dist/plugins/client-reference-dedup.d.ts +1 -2
- package/dist/plugins/client-reference-dedup.js +4 -8
- package/dist/plugins/css-data-url.d.ts +1 -2
- package/dist/plugins/css-data-url.js +0 -2
- package/dist/plugins/fonts.d.ts +13 -3
- package/dist/plugins/fonts.js +19 -13
- package/dist/plugins/import-meta-url.d.ts +16 -0
- package/dist/plugins/import-meta-url.js +347 -0
- package/dist/plugins/instrumentation-client.d.ts +1 -2
- package/dist/plugins/instrumentation-client.js +0 -2
- package/dist/plugins/middleware-server-only.d.ts +1 -2
- package/dist/plugins/middleware-server-only.js +0 -2
- package/dist/plugins/og-assets.d.ts +32 -8
- package/dist/plugins/og-assets.js +126 -34
- package/dist/plugins/optimize-imports.d.ts +1 -2
- package/dist/plugins/optimize-imports.js +9 -17
- package/dist/plugins/postcss.d.ts +1 -2
- package/dist/plugins/postcss.js +0 -2
- package/dist/plugins/remove-console.d.ts +1 -2
- package/dist/plugins/remove-console.js +0 -2
- package/dist/plugins/rsc-client-reference-loaders.d.ts +1 -2
- package/dist/plugins/rsc-client-reference-loaders.js +0 -2
- package/dist/plugins/rsc-client-shim-excludes.d.ts +1 -2
- package/dist/plugins/rsc-client-shim-excludes.js +0 -2
- package/dist/plugins/sass.d.ts +1 -2
- package/dist/plugins/sass.js +0 -2
- package/dist/plugins/server-externals-manifest.d.ts +1 -2
- package/dist/plugins/server-externals-manifest.js +0 -2
- package/dist/plugins/strip-server-exports.d.ts +1 -2
- package/dist/plugins/strip-server-exports.js +0 -2
- package/dist/routing/app-route-graph.d.ts +2 -9
- package/dist/routing/app-route-graph.js +9 -30
- package/dist/routing/app-router.d.ts +1 -2
- package/dist/routing/app-router.js +0 -2
- package/dist/routing/file-matcher.d.ts +6 -2
- package/dist/routing/file-matcher.js +15 -7
- package/dist/routing/pages-router.d.ts +1 -2
- package/dist/routing/pages-router.js +0 -2
- package/dist/routing/route-matching.d.ts +1 -2
- package/dist/routing/route-matching.js +0 -2
- package/dist/routing/route-pattern.d.ts +1 -2
- package/dist/routing/route-pattern.js +0 -2
- package/dist/routing/route-trie.d.ts +1 -2
- package/dist/routing/route-trie.js +0 -2
- package/dist/routing/route-validation.d.ts +1 -2
- package/dist/routing/route-validation.js +0 -2
- package/dist/routing/utils.d.ts +44 -2
- package/dist/routing/utils.js +62 -3
- package/dist/server/api-handler.d.ts +1 -2
- package/dist/server/api-handler.js +0 -2
- package/dist/server/app-bfcache-id.d.ts +5 -0
- package/dist/server/app-bfcache-id.js +5 -0
- package/dist/server/app-browser-action-result.d.ts +9 -17
- package/dist/server/app-browser-action-result.js +25 -16
- package/dist/server/app-browser-client-reuse-manifest.d.ts +12 -0
- package/dist/server/app-browser-client-reuse-manifest.js +101 -0
- package/dist/server/app-browser-entry.js +352 -115
- package/dist/server/app-browser-error.d.ts +1 -2
- package/dist/server/app-browser-error.js +0 -2
- package/dist/server/app-browser-hydration.d.ts +1 -2
- package/dist/server/app-browser-hydration.js +0 -2
- package/dist/server/app-browser-interception-context.d.ts +1 -2
- package/dist/server/app-browser-interception-context.js +0 -2
- package/dist/server/app-browser-mpa-navigation.d.ts +16 -0
- package/dist/server/app-browser-mpa-navigation.js +42 -0
- package/dist/server/app-browser-navigation-controller.d.ts +5 -4
- package/dist/server/app-browser-navigation-controller.js +3 -3
- package/dist/server/app-browser-popstate.d.ts +4 -3
- package/dist/server/app-browser-popstate.js +15 -3
- package/dist/server/app-browser-rsc-redirect.d.ts +1 -2
- package/dist/server/app-browser-rsc-redirect.js +0 -2
- package/dist/server/app-browser-state.d.ts +28 -4
- package/dist/server/app-browser-state.js +195 -11
- package/dist/server/app-browser-stream.d.ts +1 -2
- package/dist/server/app-browser-stream.js +0 -2
- package/dist/server/app-browser-visible-commit.d.ts +2 -3
- package/dist/server/app-browser-visible-commit.js +24 -17
- package/dist/server/app-client-reference-preloader.d.ts +1 -2
- package/dist/server/app-client-reference-preloader.js +0 -2
- package/dist/server/app-elements-wire.d.ts +14 -8
- package/dist/server/app-elements-wire.js +45 -24
- package/dist/server/app-elements.d.ts +2 -3
- package/dist/server/app-elements.js +2 -4
- package/dist/server/app-fallback-renderer.d.ts +5 -5
- package/dist/server/app-fallback-renderer.js +4 -3
- package/dist/server/app-history-state.d.ts +18 -2
- package/dist/server/app-history-state.js +68 -10
- package/dist/server/app-hook-warning-suppression.d.ts +1 -2
- package/dist/server/app-hook-warning-suppression.js +0 -2
- package/dist/server/app-inline-css-client.d.ts +1 -2
- package/dist/server/app-inline-css-client.js +0 -2
- package/dist/server/app-interception-context-header.d.ts +1 -2
- package/dist/server/app-interception-context-header.js +0 -2
- package/dist/server/app-layout-param-observation.d.ts +43 -0
- package/dist/server/app-layout-param-observation.js +168 -0
- package/dist/server/app-middleware.d.ts +1 -2
- package/dist/server/app-middleware.js +0 -2
- package/dist/server/app-mounted-slots-header.d.ts +1 -2
- package/dist/server/app-mounted-slots-header.js +0 -2
- package/dist/server/app-optimistic-routing.d.ts +1 -2
- package/dist/server/app-optimistic-routing.js +0 -2
- package/dist/server/app-page-boundary-render.d.ts +4 -3
- package/dist/server/app-page-boundary-render.js +20 -11
- package/dist/server/app-page-boundary.d.ts +11 -2
- package/dist/server/app-page-boundary.js +13 -4
- package/dist/server/app-page-cache.d.ts +3 -3
- package/dist/server/app-page-cache.js +36 -11
- package/dist/server/app-page-dispatch.d.ts +19 -5
- package/dist/server/app-page-dispatch.js +119 -24
- package/dist/server/app-page-element-builder.d.ts +3 -2
- package/dist/server/app-page-element-builder.js +9 -11
- package/dist/server/app-page-execution.d.ts +8 -3
- package/dist/server/app-page-execution.js +55 -24
- package/dist/server/app-page-head.d.ts +1 -2
- package/dist/server/app-page-head.js +6 -6
- package/dist/server/app-page-method.d.ts +1 -2
- package/dist/server/app-page-method.js +0 -2
- package/dist/server/app-page-params.d.ts +2 -2
- package/dist/server/app-page-params.js +14 -3
- package/dist/server/app-page-probe.d.ts +90 -2
- package/dist/server/app-page-probe.js +201 -6
- package/dist/server/app-page-render-identity.d.ts +1 -2
- package/dist/server/app-page-render-identity.js +0 -2
- package/dist/server/app-page-render-observation.d.ts +1 -2
- package/dist/server/app-page-render-observation.js +0 -2
- package/dist/server/app-page-render.d.ts +9 -3
- package/dist/server/app-page-render.js +167 -10
- package/dist/server/app-page-request.d.ts +4 -3
- package/dist/server/app-page-request.js +1 -3
- package/dist/server/app-page-response.d.ts +2 -2
- package/dist/server/app-page-response.js +5 -3
- package/dist/server/app-page-route-wiring.d.ts +14 -3
- package/dist/server/app-page-route-wiring.js +63 -11
- package/dist/server/app-page-search-params-observation.d.ts +10 -0
- package/dist/server/app-page-search-params-observation.js +20 -0
- package/dist/server/app-page-segment-state.d.ts +1 -2
- package/dist/server/app-page-segment-state.js +1 -8
- package/dist/server/app-page-stream.d.ts +19 -9
- package/dist/server/app-page-stream.js +28 -10
- package/dist/server/app-pages-bridge.d.ts +25 -0
- package/dist/server/app-pages-bridge.js +34 -0
- package/dist/server/app-post-middleware-context.d.ts +1 -2
- package/dist/server/app-post-middleware-context.js +0 -2
- package/dist/server/app-ppr-fallback-shell.d.ts +21 -0
- package/dist/server/app-ppr-fallback-shell.js +82 -0
- package/dist/server/app-prerender-endpoints.d.ts +1 -2
- package/dist/server/app-prerender-endpoints.js +0 -2
- package/dist/server/app-prerender-static-params.d.ts +15 -2
- package/dist/server/app-prerender-static-params.js +44 -13
- package/dist/server/app-render-dependency.d.ts +3 -2
- package/dist/server/app-render-dependency.js +9 -3
- package/dist/server/app-request-context.d.ts +1 -2
- package/dist/server/app-request-context.js +0 -2
- package/dist/server/app-route-handler-cache.d.ts +1 -2
- package/dist/server/app-route-handler-cache.js +0 -2
- package/dist/server/app-route-handler-dispatch.d.ts +1 -2
- package/dist/server/app-route-handler-dispatch.js +0 -2
- package/dist/server/app-route-handler-execution.d.ts +1 -2
- package/dist/server/app-route-handler-execution.js +2 -4
- package/dist/server/app-route-handler-policy.d.ts +1 -2
- package/dist/server/app-route-handler-policy.js +0 -2
- package/dist/server/app-route-handler-response.d.ts +2 -3
- package/dist/server/app-route-handler-response.js +8 -7
- package/dist/server/app-route-handler-runtime.d.ts +1 -2
- package/dist/server/app-route-handler-runtime.js +0 -2
- package/dist/server/app-route-module-loader.d.ts +43 -0
- package/dist/server/app-route-module-loader.js +32 -0
- package/dist/server/app-router-entry.d.ts +1 -2
- package/dist/server/app-router-entry.js +2 -2
- package/dist/server/app-rsc-cache-busting.d.ts +12 -3
- package/dist/server/app-rsc-cache-busting.js +21 -10
- package/dist/server/app-rsc-embedded-chunks.d.ts +1 -2
- package/dist/server/app-rsc-embedded-chunks.js +0 -2
- package/dist/server/app-rsc-error-handler.d.ts +1 -2
- package/dist/server/app-rsc-error-handler.js +0 -2
- package/dist/server/app-rsc-errors.d.ts +1 -2
- package/dist/server/app-rsc-errors.js +0 -2
- package/dist/server/app-rsc-handler.d.ts +16 -2
- package/dist/server/app-rsc-handler.js +32 -14
- package/dist/server/app-rsc-render-mode.d.ts +1 -2
- package/dist/server/app-rsc-render-mode.js +0 -2
- package/dist/server/app-rsc-request-normalization.d.ts +4 -5
- package/dist/server/app-rsc-request-normalization.js +2 -4
- package/dist/server/app-rsc-response-finalizer.d.ts +1 -2
- package/dist/server/app-rsc-response-finalizer.js +2 -2
- package/dist/server/app-rsc-route-matching.d.ts +1 -2
- package/dist/server/app-rsc-route-matching.js +0 -2
- package/dist/server/app-segment-config.d.ts +5 -3
- package/dist/server/app-segment-config.js +12 -3
- package/dist/server/app-server-action-execution.d.ts +12 -2
- package/dist/server/app-server-action-execution.js +200 -25
- package/dist/server/app-ssr-entry.d.ts +5 -4
- package/dist/server/app-ssr-entry.js +31 -15
- package/dist/server/app-ssr-error-meta.d.ts +1 -2
- package/dist/server/app-ssr-error-meta.js +0 -2
- package/dist/server/app-ssr-stream.d.ts +1 -2
- package/dist/server/app-ssr-stream.js +31 -3
- package/dist/server/app-static-generation.d.ts +1 -2
- package/dist/server/app-static-generation.js +0 -2
- package/dist/server/app-visited-response-cache.d.ts +23 -0
- package/dist/server/app-visited-response-cache.js +19 -0
- package/dist/server/artifact-compatibility.d.ts +2 -2
- package/dist/server/artifact-compatibility.js +12 -7
- package/dist/server/cache-control.d.ts +15 -2
- package/dist/server/cache-control.js +21 -3
- package/dist/server/cache-headers.d.ts +1 -2
- package/dist/server/cache-headers.js +0 -2
- package/dist/server/cache-proof.d.ts +1 -2
- package/dist/server/cache-proof.js +0 -2
- package/dist/server/client-reuse-manifest.d.ts +10 -5
- package/dist/server/client-reuse-manifest.js +7 -10
- package/dist/server/client-trace-metadata.d.ts +1 -2
- package/dist/server/client-trace-metadata.js +0 -2
- package/dist/server/cookie-utils.d.ts +1 -2
- package/dist/server/cookie-utils.js +0 -2
- package/dist/server/csp.d.ts +1 -2
- package/dist/server/csp.js +0 -2
- package/dist/server/default-global-error-module.d.ts +1 -2
- package/dist/server/default-global-error-module.js +0 -2
- package/dist/server/default-not-found-module.d.ts +1 -2
- package/dist/server/default-not-found-module.js +0 -2
- package/dist/server/dev-error-overlay-store.d.ts +20 -4
- package/dist/server/dev-error-overlay-store.js +23 -4
- package/dist/server/dev-error-overlay.d.ts +39 -3
- package/dist/server/dev-error-overlay.js +952 -164
- package/dist/server/dev-initial-server-error.d.ts +9 -0
- package/dist/server/dev-initial-server-error.js +26 -0
- package/dist/server/dev-lockfile.d.ts +1 -2
- package/dist/server/dev-lockfile.js +0 -2
- package/dist/server/dev-module-runner.d.ts +1 -2
- package/dist/server/dev-module-runner.js +0 -2
- package/dist/server/dev-origin-check.d.ts +1 -2
- package/dist/server/dev-origin-check.js +0 -2
- package/dist/server/dev-route-files.d.ts +1 -2
- package/dist/server/dev-route-files.js +0 -2
- package/dist/server/dev-server.d.ts +2 -3
- package/dist/server/dev-server.js +127 -28
- package/dist/server/dev-stack-sourcemap-endpoint.d.ts +4 -0
- package/dist/server/dev-stack-sourcemap-endpoint.js +4 -0
- package/dist/server/dev-stack-sourcemap.d.ts +43 -0
- package/dist/server/dev-stack-sourcemap.js +443 -0
- package/dist/server/document-initial-head.d.ts +6 -0
- package/dist/server/document-initial-head.js +33 -0
- package/dist/server/edge-api-runtime.d.ts +1 -2
- package/dist/server/edge-api-runtime.js +0 -2
- package/dist/server/file-based-metadata.d.ts +1 -2
- package/dist/server/file-based-metadata.js +0 -2
- package/dist/server/headers.d.ts +3 -2
- package/dist/server/headers.js +3 -3
- package/dist/server/html.d.ts +1 -2
- package/dist/server/html.js +0 -2
- package/dist/server/http-error-responses.d.ts +1 -2
- package/dist/server/http-error-responses.js +0 -2
- package/dist/server/image-optimization.d.ts +1 -2
- package/dist/server/image-optimization.js +0 -2
- package/dist/server/implicit-tags.d.ts +1 -2
- package/dist/server/implicit-tags.js +0 -2
- package/dist/server/instrumentation-runtime.d.ts +1 -2
- package/dist/server/instrumentation-runtime.js +0 -2
- package/dist/server/instrumentation.d.ts +1 -2
- package/dist/server/instrumentation.js +0 -2
- package/dist/server/isr-cache.d.ts +10 -3
- package/dist/server/isr-cache.js +13 -28
- package/dist/server/metadata-route-build-data.d.ts +1 -2
- package/dist/server/metadata-route-build-data.js +0 -2
- package/dist/server/metadata-route-response.d.ts +1 -2
- package/dist/server/metadata-route-response.js +0 -2
- package/dist/server/metadata-routes.d.ts +1 -2
- package/dist/server/metadata-routes.js +0 -2
- package/dist/server/middleware-matcher.d.ts +1 -2
- package/dist/server/middleware-matcher.js +0 -2
- package/dist/server/middleware-request-headers.d.ts +1 -2
- package/dist/server/middleware-request-headers.js +0 -2
- package/dist/server/middleware-response-headers.d.ts +1 -2
- package/dist/server/middleware-response-headers.js +0 -2
- package/dist/server/middleware-runtime.d.ts +1 -2
- package/dist/server/middleware-runtime.js +14 -5
- package/dist/server/middleware.d.ts +2 -3
- package/dist/server/middleware.js +0 -2
- package/dist/server/navigation-planner.d.ts +16 -2
- package/dist/server/navigation-planner.js +1 -3
- package/dist/server/navigation-trace.d.ts +1 -2
- package/dist/server/navigation-trace.js +0 -2
- package/dist/server/next-error-digest.d.ts +1 -2
- package/dist/server/next-error-digest.js +0 -2
- package/dist/server/normalize-path.d.ts +1 -2
- package/dist/server/normalize-path.js +0 -2
- package/dist/server/pages-api-route.d.ts +1 -2
- package/dist/server/pages-api-route.js +1 -3
- package/dist/server/pages-asset-tags.d.ts +66 -0
- package/dist/server/pages-asset-tags.js +116 -0
- package/dist/server/pages-body-parser-config.d.ts +1 -2
- package/dist/server/pages-body-parser-config.js +0 -2
- package/dist/server/pages-data-route.d.ts +39 -2
- package/dist/server/pages-data-route.js +46 -3
- package/dist/server/pages-default-404.d.ts +1 -2
- package/dist/server/pages-default-404.js +0 -2
- package/dist/server/pages-document-initial-props.d.ts +84 -3
- package/dist/server/pages-document-initial-props.js +127 -3
- package/dist/server/pages-get-initial-props.d.ts +17 -0
- package/dist/server/pages-get-initial-props.js +50 -0
- package/dist/server/pages-i18n.d.ts +1 -2
- package/dist/server/pages-i18n.js +0 -2
- package/dist/server/pages-media-type.d.ts +1 -2
- package/dist/server/pages-media-type.js +1 -2
- package/dist/server/pages-node-compat.d.ts +9 -2
- package/dist/server/pages-node-compat.js +35 -4
- package/dist/server/pages-page-data.d.ts +7 -3
- package/dist/server/pages-page-data.js +75 -33
- package/dist/server/pages-page-handler.d.ts +90 -0
- package/dist/server/pages-page-handler.js +335 -0
- package/dist/server/pages-page-method.d.ts +1 -2
- package/dist/server/pages-page-method.js +0 -2
- package/dist/server/pages-page-response.d.ts +15 -2
- package/dist/server/pages-page-response.js +39 -12
- package/dist/server/pages-serializable-props.d.ts +1 -2
- package/dist/server/pages-serializable-props.js +0 -2
- package/dist/server/pregenerated-concrete-paths.d.ts +32 -0
- package/dist/server/pregenerated-concrete-paths.js +78 -0
- package/dist/server/prerender-route-params.d.ts +13 -3
- package/dist/server/prerender-route-params.js +30 -11
- package/dist/server/prerender-work-unit-setup.d.ts +1 -2
- package/dist/server/prerender-work-unit-setup.js +0 -2
- package/dist/server/prod-server.d.ts +2 -4
- package/dist/server/prod-server.js +13 -8
- package/dist/server/proxy-trust.d.ts +1 -2
- package/dist/server/proxy-trust.js +0 -2
- package/dist/server/request-log.d.ts +1 -2
- package/dist/server/request-log.js +0 -2
- package/dist/server/request-pipeline.d.ts +14 -2
- package/dist/server/request-pipeline.js +42 -3
- package/dist/server/rsc-stream-hints.d.ts +1 -2
- package/dist/server/rsc-stream-hints.js +0 -2
- package/dist/server/seed-cache.d.ts +6 -2
- package/dist/server/seed-cache.js +10 -8
- package/dist/server/server-action-not-found.d.ts +1 -2
- package/dist/server/server-action-not-found.js +0 -2
- package/dist/server/server-globals.d.ts +1 -2
- package/dist/server/server-globals.js +0 -2
- package/dist/server/skip-cache-proof.d.ts +23 -3
- package/dist/server/skip-cache-proof.js +81 -14
- package/dist/server/socket-error-backstop.d.ts +1 -2
- package/dist/server/socket-error-backstop.js +0 -2
- package/dist/server/static-file-cache.d.ts +1 -2
- package/dist/server/static-file-cache.js +0 -2
- package/dist/server/static-layout-client-reuse-proof.d.ts +15 -0
- package/dist/server/static-layout-client-reuse-proof.js +33 -0
- package/dist/server/streaming-metadata.d.ts +1 -2
- package/dist/server/streaming-metadata.js +0 -2
- package/dist/server/worker-utils.d.ts +1 -2
- package/dist/server/worker-utils.js +3 -6
- package/dist/shims/amp.d.ts +1 -2
- package/dist/shims/amp.js +0 -2
- package/dist/shims/app-router-scroll-state.d.ts +1 -2
- package/dist/shims/app-router-scroll-state.js +0 -2
- package/dist/shims/app-router-scroll.d.ts +3 -5
- package/dist/shims/app-router-scroll.js +0 -2
- package/dist/shims/app.d.ts +1 -2
- package/dist/shims/app.js +0 -2
- package/dist/shims/before-interactive-context.d.ts +1 -2
- package/dist/shims/before-interactive-context.js +0 -2
- package/dist/shims/cache-for-request.d.ts +1 -2
- package/dist/shims/cache-for-request.js +0 -2
- package/dist/shims/cache-runtime.d.ts +20 -5
- package/dist/shims/cache-runtime.js +35 -30
- package/dist/shims/cache.d.ts +68 -7
- package/dist/shims/cache.js +179 -25
- package/dist/shims/cdn-cache.d.ts +125 -0
- package/dist/shims/cdn-cache.js +100 -0
- package/dist/shims/client-hook-error.d.ts +1 -2
- package/dist/shims/client-hook-error.js +0 -2
- package/dist/shims/client-locale.d.ts +1 -2
- package/dist/shims/client-locale.js +1 -3
- package/dist/shims/compat-router.d.ts +1 -2
- package/dist/shims/compat-router.js +0 -2
- package/dist/shims/config.d.ts +1 -2
- package/dist/shims/config.js +0 -2
- package/dist/shims/constants.d.ts +1 -2
- package/dist/shims/constants.js +0 -2
- package/dist/shims/default-global-error.d.ts +3 -4
- package/dist/shims/default-global-error.js +0 -2
- package/dist/shims/default-not-found.d.ts +1 -2
- package/dist/shims/default-not-found.js +0 -2
- package/dist/shims/document.d.ts +11 -7
- package/dist/shims/document.js +7 -10
- package/dist/shims/dynamic.d.ts +1 -2
- package/dist/shims/dynamic.js +0 -2
- package/dist/shims/error-boundary.d.ts +16 -12
- package/dist/shims/error-boundary.js +60 -28
- package/dist/shims/error.d.ts +1 -2
- package/dist/shims/error.js +0 -2
- package/dist/shims/fetch-cache.d.ts +3 -2
- package/dist/shims/fetch-cache.js +18 -9
- package/dist/shims/font-google-base.d.ts +1 -2
- package/dist/shims/font-google-base.js +1 -13
- package/dist/shims/font-local.d.ts +1 -2
- package/dist/shims/font-local.js +1 -15
- package/dist/shims/font-utils.d.ts +7 -2
- package/dist/shims/font-utils.js +13 -3
- package/dist/shims/form.d.ts +12 -5
- package/dist/shims/form.js +98 -21
- package/dist/shims/hash-scroll.d.ts +4 -2
- package/dist/shims/hash-scroll.js +13 -3
- package/dist/shims/head-state.d.ts +2 -2
- package/dist/shims/head-state.js +18 -5
- package/dist/shims/head.d.ts +35 -2
- package/dist/shims/head.js +113 -16
- package/dist/shims/headers.d.ts +9 -2
- package/dist/shims/headers.js +13 -3
- package/dist/shims/i18n-context.d.ts +1 -2
- package/dist/shims/i18n-context.js +0 -2
- package/dist/shims/i18n-state.d.ts +1 -2
- package/dist/shims/i18n-state.js +0 -2
- package/dist/shims/image-config.d.ts +1 -2
- package/dist/shims/image-config.js +0 -2
- package/dist/shims/image.d.ts +1 -2
- package/dist/shims/image.js +1 -3
- package/dist/shims/internal/als-registry.d.ts +1 -2
- package/dist/shims/internal/als-registry.js +0 -2
- package/dist/shims/internal/api-utils.d.ts +1 -2
- package/dist/shims/internal/app-route-detection.d.ts +1 -2
- package/dist/shims/internal/app-route-detection.js +0 -2
- package/dist/shims/internal/app-router-context.d.ts +1 -2
- package/dist/shims/internal/app-router-context.js +0 -2
- package/dist/shims/internal/cookie-serialize.d.ts +1 -2
- package/dist/shims/internal/cookie-serialize.js +0 -2
- package/dist/shims/internal/make-hanging-promise.d.ts +1 -2
- package/dist/shims/internal/make-hanging-promise.js +0 -2
- package/dist/shims/internal/pages-data-fetch-dedup.d.ts +55 -0
- package/dist/shims/internal/pages-data-fetch-dedup.js +68 -0
- package/dist/shims/internal/pages-data-target.d.ts +1 -2
- package/dist/shims/internal/pages-data-target.js +0 -2
- package/dist/shims/internal/pages-data-url.d.ts +1 -2
- package/dist/shims/internal/pages-data-url.js +0 -2
- package/dist/shims/internal/parse-cookie-header.d.ts +1 -2
- package/dist/shims/internal/parse-cookie-header.js +0 -2
- package/dist/shims/internal/router-context.d.ts +2 -4
- package/dist/shims/internal/router-context.js +0 -2
- package/dist/shims/internal/utils.d.ts +1 -2
- package/dist/shims/internal/utils.js +0 -2
- package/dist/shims/internal/work-unit-async-storage.d.ts +1 -2
- package/dist/shims/internal/work-unit-async-storage.js +0 -2
- package/dist/shims/layout-segment-context.d.ts +2 -4
- package/dist/shims/layout-segment-context.js +0 -2
- package/dist/shims/legacy-image.d.ts +1 -2
- package/dist/shims/legacy-image.js +0 -2
- package/dist/shims/link-prefetch.d.ts +1 -2
- package/dist/shims/link-prefetch.js +0 -2
- package/dist/shims/link.d.ts +2 -2
- package/dist/shims/link.js +47 -15
- package/dist/shims/metadata.d.ts +4 -5
- package/dist/shims/metadata.js +1 -3
- package/dist/shims/navigation-state.d.ts +1 -2
- package/dist/shims/navigation-state.js +0 -2
- package/dist/shims/navigation.d.ts +61 -7
- package/dist/shims/navigation.js +244 -47
- package/dist/shims/navigation.react-server.d.ts +1 -2
- package/dist/shims/navigation.react-server.js +0 -2
- package/dist/shims/offline.d.ts +1 -2
- package/dist/shims/offline.js +0 -2
- package/dist/shims/og.d.ts +1 -2
- package/dist/shims/og.js +2 -4
- package/dist/shims/pages-router-runtime.d.ts +7 -2
- package/dist/shims/pages-router-runtime.js +11 -3
- package/dist/shims/ppr-fallback-shell.d.ts +29 -0
- package/dist/shims/ppr-fallback-shell.js +149 -0
- package/dist/shims/readonly-url-search-params.d.ts +1 -2
- package/dist/shims/readonly-url-search-params.js +0 -2
- package/dist/shims/request-context.d.ts +9 -5
- package/dist/shims/request-context.js +0 -2
- package/dist/shims/request-state-types.d.ts +1 -1
- package/dist/shims/root-params.d.ts +1 -2
- package/dist/shims/root-params.js +0 -2
- package/dist/shims/router-state.d.ts +1 -2
- package/dist/shims/router-state.js +0 -2
- package/dist/shims/router.d.ts +1 -2
- package/dist/shims/router.js +172 -37
- package/dist/shims/script-nonce-context.d.ts +1 -2
- package/dist/shims/script-nonce-context.js +0 -2
- package/dist/shims/script.d.ts +1 -2
- package/dist/shims/script.js +0 -2
- package/dist/shims/server.d.ts +1 -2
- package/dist/shims/server.js +0 -2
- package/dist/shims/slot.d.ts +11 -4
- package/dist/shims/slot.js +121 -9
- package/dist/shims/thenable-params.d.ts +6 -3
- package/dist/shims/thenable-params.js +131 -12
- package/dist/shims/unified-request-context.d.ts +1 -2
- package/dist/shims/unified-request-context.js +3 -2
- package/dist/shims/unrecognized-action-error.d.ts +1 -2
- package/dist/shims/unrecognized-action-error.js +0 -2
- package/dist/shims/url-safety.d.ts +1 -2
- package/dist/shims/url-safety.js +0 -2
- package/dist/shims/url-utils.d.ts +1 -2
- package/dist/shims/url-utils.js +0 -2
- package/dist/shims/use-merged-ref.d.ts +1 -2
- package/dist/shims/use-merged-ref.js +0 -2
- package/dist/shims/web-vitals.d.ts +1 -2
- package/dist/shims/web-vitals.js +0 -2
- package/dist/typegen.d.ts +1 -2
- package/dist/typegen.js +2 -9
- package/dist/utils/asset-prefix.d.ts +1 -2
- package/dist/utils/asset-prefix.js +0 -2
- package/dist/utils/base-path.d.ts +1 -2
- package/dist/utils/base-path.js +0 -2
- package/dist/utils/cache-control-metadata.d.ts +1 -4
- package/dist/utils/cache-control-metadata.js +1 -3
- package/dist/utils/client-build-manifest.d.ts +14 -0
- package/dist/utils/client-build-manifest.js +52 -0
- package/dist/utils/compare.d.ts +4 -0
- package/dist/utils/compare.js +8 -0
- package/dist/utils/dev-error-recovery-event.d.ts +4 -0
- package/dist/utils/dev-error-recovery-event.js +4 -0
- package/dist/utils/domain-locale.d.ts +1 -2
- package/dist/utils/domain-locale.js +2 -4
- package/dist/utils/encode-cache-tag.d.ts +1 -2
- package/dist/utils/encode-cache-tag.js +0 -2
- package/dist/utils/error-cause.d.ts +1 -2
- package/dist/utils/error-cause.js +0 -2
- package/dist/utils/hash.d.ts +1 -2
- package/dist/utils/hash.js +1 -3
- package/dist/utils/html-limited-bots.d.ts +1 -2
- package/dist/utils/html-limited-bots.js +0 -2
- package/dist/utils/lazy-chunks.d.ts +1 -2
- package/dist/utils/lazy-chunks.js +0 -2
- package/dist/utils/manifest-paths.d.ts +8 -3
- package/dist/utils/manifest-paths.js +15 -3
- package/dist/utils/mdx-scan.d.ts +1 -2
- package/dist/utils/mdx-scan.js +0 -2
- package/dist/utils/navigation-signal.d.ts +1 -2
- package/dist/utils/navigation-signal.js +0 -2
- package/dist/utils/number.d.ts +4 -0
- package/dist/utils/number.js +6 -0
- package/dist/utils/path.d.ts +4 -2
- package/dist/utils/path.js +5 -3
- package/dist/utils/prerender-output-paths.d.ts +1 -2
- package/dist/utils/prerender-output-paths.js +0 -2
- package/dist/utils/project.d.ts +1 -2
- package/dist/utils/project.js +0 -2
- package/dist/utils/promise.d.ts +4 -0
- package/dist/utils/promise.js +6 -0
- package/dist/utils/public-routes.d.ts +1 -2
- package/dist/utils/public-routes.js +0 -2
- package/dist/utils/query.d.ts +1 -2
- package/dist/utils/query.js +0 -2
- package/dist/utils/record.d.ts +1 -2
- package/dist/utils/record.js +0 -2
- package/dist/utils/regex.d.ts +4 -0
- package/dist/utils/regex.js +6 -0
- package/dist/utils/safe-json-file.d.ts +1 -2
- package/dist/utils/safe-json-file.js +0 -2
- package/dist/utils/sorted-array.d.ts +1 -2
- package/dist/utils/sorted-array.js +0 -2
- package/dist/utils/text-stream.d.ts +1 -2
- package/dist/utils/text-stream.js +0 -2
- package/dist/utils/vinext-root.d.ts +1 -2
- package/dist/utils/vinext-root.js +0 -2
- package/dist/utils/vite-version.d.ts +10 -0
- package/dist/utils/vite-version.js +34 -0
- package/package.json +20 -7
- package/dist/build/clean-output.js.map +0 -1
- package/dist/build/client-build-config.js.map +0 -1
- package/dist/build/google-fonts/build-url.js.map +0 -1
- package/dist/build/google-fonts/fallback-metrics-data.js.map +0 -1
- package/dist/build/google-fonts/fallback-metrics.js.map +0 -1
- package/dist/build/google-fonts/font-data.js.map +0 -1
- package/dist/build/google-fonts/font-metadata.js.map +0 -1
- package/dist/build/google-fonts/get-axes.js.map +0 -1
- package/dist/build/google-fonts/sort-variants.js.map +0 -1
- package/dist/build/google-fonts/validate.js.map +0 -1
- package/dist/build/inline-css.js.map +0 -1
- package/dist/build/layout-classification.js.map +0 -1
- package/dist/build/nitro-route-rules.js.map +0 -1
- package/dist/build/precompress.js.map +0 -1
- package/dist/build/prerender.js.map +0 -1
- package/dist/build/report.js.map +0 -1
- package/dist/build/route-classification-injector.js.map +0 -1
- package/dist/build/route-classification-manifest.js.map +0 -1
- package/dist/build/run-prerender.js.map +0 -1
- package/dist/build/server-manifest.js.map +0 -1
- package/dist/build/ssr-manifest.js.map +0 -1
- package/dist/build/standalone.js.map +0 -1
- package/dist/build/static-export.js.map +0 -1
- package/dist/check.js.map +0 -1
- package/dist/cli-args.js.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/client/instrumentation-client-inject.js.map +0 -1
- package/dist/client/instrumentation-client-state.js.map +0 -1
- package/dist/client/instrumentation-client.js.map +0 -1
- package/dist/client/navigation-runtime.js.map +0 -1
- package/dist/client/pages-router-link-navigation.js.map +0 -1
- package/dist/client/validate-module-path.js.map +0 -1
- package/dist/client/vinext-next-data.js.map +0 -1
- package/dist/client/window-next.js.map +0 -1
- package/dist/cloudflare/kv-cache-handler.js.map +0 -1
- package/dist/cloudflare/tpr.js.map +0 -1
- package/dist/config/config-matchers.js.map +0 -1
- package/dist/config/dotenv.js.map +0 -1
- package/dist/config/next-config.js.map +0 -1
- package/dist/config/tsconfig-paths.js.map +0 -1
- package/dist/deploy.js.map +0 -1
- package/dist/entries/app-browser-entry.js.map +0 -1
- package/dist/entries/app-rsc-entry.js.map +0 -1
- package/dist/entries/app-rsc-manifest.js.map +0 -1
- package/dist/entries/app-ssr-entry.js.map +0 -1
- package/dist/entries/pages-client-entry.js.map +0 -1
- package/dist/entries/pages-entry-helpers.js.map +0 -1
- package/dist/entries/pages-server-entry.js.map +0 -1
- package/dist/entries/runtime-entry-module.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/init.js.map +0 -1
- package/dist/plugins/async-hooks-stub.js.map +0 -1
- package/dist/plugins/client-reference-dedup.js.map +0 -1
- package/dist/plugins/css-data-url.js.map +0 -1
- package/dist/plugins/fonts.js.map +0 -1
- package/dist/plugins/instrumentation-client.js.map +0 -1
- package/dist/plugins/middleware-server-only.js.map +0 -1
- package/dist/plugins/og-assets.js.map +0 -1
- package/dist/plugins/optimize-imports.js.map +0 -1
- package/dist/plugins/postcss.js.map +0 -1
- package/dist/plugins/remove-console.js.map +0 -1
- package/dist/plugins/rsc-client-reference-loaders.js.map +0 -1
- package/dist/plugins/rsc-client-shim-excludes.js.map +0 -1
- package/dist/plugins/sass.js.map +0 -1
- package/dist/plugins/server-externals-manifest.js.map +0 -1
- package/dist/plugins/strip-server-exports.js.map +0 -1
- package/dist/routing/app-route-graph.js.map +0 -1
- package/dist/routing/app-router.js.map +0 -1
- package/dist/routing/file-matcher.js.map +0 -1
- package/dist/routing/pages-router.js.map +0 -1
- package/dist/routing/route-matching.js.map +0 -1
- package/dist/routing/route-pattern.js.map +0 -1
- package/dist/routing/route-trie.js.map +0 -1
- package/dist/routing/route-validation.js.map +0 -1
- package/dist/routing/utils.js.map +0 -1
- package/dist/server/api-handler.js.map +0 -1
- package/dist/server/app-browser-action-result.js.map +0 -1
- package/dist/server/app-browser-entry.js.map +0 -1
- package/dist/server/app-browser-error.js.map +0 -1
- package/dist/server/app-browser-hydration.js.map +0 -1
- package/dist/server/app-browser-interception-context.js.map +0 -1
- package/dist/server/app-browser-navigation-controller.js.map +0 -1
- package/dist/server/app-browser-popstate.js.map +0 -1
- package/dist/server/app-browser-rsc-redirect.js.map +0 -1
- package/dist/server/app-browser-state.js.map +0 -1
- package/dist/server/app-browser-stream.js.map +0 -1
- package/dist/server/app-browser-visible-commit.js.map +0 -1
- package/dist/server/app-client-reference-preloader.js.map +0 -1
- package/dist/server/app-elements-wire.js.map +0 -1
- package/dist/server/app-elements.js.map +0 -1
- package/dist/server/app-fallback-renderer.js.map +0 -1
- package/dist/server/app-history-state.js.map +0 -1
- package/dist/server/app-hook-warning-suppression.js.map +0 -1
- package/dist/server/app-inline-css-client.js.map +0 -1
- package/dist/server/app-interception-context-header.js.map +0 -1
- package/dist/server/app-middleware.js.map +0 -1
- package/dist/server/app-mounted-slots-header.js.map +0 -1
- package/dist/server/app-optimistic-routing.js.map +0 -1
- package/dist/server/app-page-boundary-render.js.map +0 -1
- package/dist/server/app-page-boundary.js.map +0 -1
- package/dist/server/app-page-cache.js.map +0 -1
- package/dist/server/app-page-dispatch.js.map +0 -1
- package/dist/server/app-page-element-builder.js.map +0 -1
- package/dist/server/app-page-execution.js.map +0 -1
- package/dist/server/app-page-head.js.map +0 -1
- package/dist/server/app-page-method.js.map +0 -1
- package/dist/server/app-page-params.js.map +0 -1
- package/dist/server/app-page-probe.js.map +0 -1
- package/dist/server/app-page-render-identity.js.map +0 -1
- package/dist/server/app-page-render-observation.js.map +0 -1
- package/dist/server/app-page-render.js.map +0 -1
- package/dist/server/app-page-request.js.map +0 -1
- package/dist/server/app-page-response.js.map +0 -1
- package/dist/server/app-page-route-wiring.js.map +0 -1
- package/dist/server/app-page-segment-state.js.map +0 -1
- package/dist/server/app-page-stream.js.map +0 -1
- package/dist/server/app-post-middleware-context.js.map +0 -1
- package/dist/server/app-prerender-endpoints.js.map +0 -1
- package/dist/server/app-prerender-static-params.js.map +0 -1
- package/dist/server/app-render-dependency.js.map +0 -1
- package/dist/server/app-request-context.js.map +0 -1
- package/dist/server/app-route-handler-cache.js.map +0 -1
- package/dist/server/app-route-handler-dispatch.js.map +0 -1
- package/dist/server/app-route-handler-execution.js.map +0 -1
- package/dist/server/app-route-handler-policy.js.map +0 -1
- package/dist/server/app-route-handler-response.js.map +0 -1
- package/dist/server/app-route-handler-runtime.js.map +0 -1
- package/dist/server/app-router-entry.js.map +0 -1
- package/dist/server/app-rsc-cache-busting.js.map +0 -1
- package/dist/server/app-rsc-embedded-chunks.js.map +0 -1
- package/dist/server/app-rsc-error-handler.js.map +0 -1
- package/dist/server/app-rsc-errors.js.map +0 -1
- package/dist/server/app-rsc-handler.js.map +0 -1
- package/dist/server/app-rsc-render-mode.js.map +0 -1
- package/dist/server/app-rsc-request-normalization.js.map +0 -1
- package/dist/server/app-rsc-response-finalizer.js.map +0 -1
- package/dist/server/app-rsc-route-matching.js.map +0 -1
- package/dist/server/app-segment-config.js.map +0 -1
- package/dist/server/app-server-action-execution.js.map +0 -1
- package/dist/server/app-ssr-entry.js.map +0 -1
- package/dist/server/app-ssr-error-meta.js.map +0 -1
- package/dist/server/app-ssr-stream.js.map +0 -1
- package/dist/server/app-static-generation.js.map +0 -1
- package/dist/server/artifact-compatibility.js.map +0 -1
- package/dist/server/cache-control.js.map +0 -1
- package/dist/server/cache-headers.js.map +0 -1
- package/dist/server/cache-proof.js.map +0 -1
- package/dist/server/client-reuse-manifest.js.map +0 -1
- package/dist/server/client-trace-metadata.js.map +0 -1
- package/dist/server/cookie-utils.js.map +0 -1
- package/dist/server/csp.js.map +0 -1
- package/dist/server/default-global-error-module.js.map +0 -1
- package/dist/server/default-not-found-module.js.map +0 -1
- package/dist/server/dev-error-overlay-store.js.map +0 -1
- package/dist/server/dev-error-overlay.js.map +0 -1
- package/dist/server/dev-lockfile.js.map +0 -1
- package/dist/server/dev-module-runner.js.map +0 -1
- package/dist/server/dev-origin-check.js.map +0 -1
- package/dist/server/dev-route-files.js.map +0 -1
- package/dist/server/dev-server.js.map +0 -1
- package/dist/server/edge-api-runtime.js.map +0 -1
- package/dist/server/file-based-metadata.js.map +0 -1
- package/dist/server/headers.js.map +0 -1
- package/dist/server/html.js.map +0 -1
- package/dist/server/http-error-responses.js.map +0 -1
- package/dist/server/image-optimization.js.map +0 -1
- package/dist/server/implicit-tags.js.map +0 -1
- package/dist/server/instrumentation-runtime.js.map +0 -1
- package/dist/server/instrumentation.js.map +0 -1
- package/dist/server/isr-cache.js.map +0 -1
- package/dist/server/metadata-route-build-data.js.map +0 -1
- package/dist/server/metadata-route-response.js.map +0 -1
- package/dist/server/metadata-routes.js.map +0 -1
- package/dist/server/middleware-matcher.js.map +0 -1
- package/dist/server/middleware-request-headers.js.map +0 -1
- package/dist/server/middleware-response-headers.js.map +0 -1
- package/dist/server/middleware-runtime.js.map +0 -1
- package/dist/server/middleware.js.map +0 -1
- package/dist/server/navigation-planner.js.map +0 -1
- package/dist/server/navigation-trace.js.map +0 -1
- package/dist/server/next-error-digest.js.map +0 -1
- package/dist/server/normalize-path.js.map +0 -1
- package/dist/server/pages-api-route.js.map +0 -1
- package/dist/server/pages-body-parser-config.js.map +0 -1
- package/dist/server/pages-data-route.js.map +0 -1
- package/dist/server/pages-default-404.js.map +0 -1
- package/dist/server/pages-document-initial-props.js.map +0 -1
- package/dist/server/pages-i18n.js.map +0 -1
- package/dist/server/pages-media-type.js.map +0 -1
- package/dist/server/pages-node-compat.js.map +0 -1
- package/dist/server/pages-page-data.js.map +0 -1
- package/dist/server/pages-page-method.js.map +0 -1
- package/dist/server/pages-page-response.js.map +0 -1
- package/dist/server/pages-serializable-props.js.map +0 -1
- package/dist/server/prerender-route-params.js.map +0 -1
- package/dist/server/prerender-work-unit-setup.js.map +0 -1
- package/dist/server/prod-server.js.map +0 -1
- package/dist/server/proxy-trust.js.map +0 -1
- package/dist/server/request-log.js.map +0 -1
- package/dist/server/request-pipeline.js.map +0 -1
- package/dist/server/rsc-stream-hints.js.map +0 -1
- package/dist/server/seed-cache.js.map +0 -1
- package/dist/server/server-action-not-found.js.map +0 -1
- package/dist/server/server-globals.js.map +0 -1
- package/dist/server/skip-cache-proof.js.map +0 -1
- package/dist/server/socket-error-backstop.js.map +0 -1
- package/dist/server/static-file-cache.js.map +0 -1
- package/dist/server/streaming-metadata.js.map +0 -1
- package/dist/server/worker-utils.js.map +0 -1
- package/dist/shims/amp.js.map +0 -1
- package/dist/shims/app-router-scroll-state.js.map +0 -1
- package/dist/shims/app-router-scroll.js.map +0 -1
- package/dist/shims/app.js.map +0 -1
- package/dist/shims/before-interactive-context.js.map +0 -1
- package/dist/shims/cache-for-request.js.map +0 -1
- package/dist/shims/cache-runtime.js.map +0 -1
- package/dist/shims/cache.js.map +0 -1
- package/dist/shims/client-hook-error.js.map +0 -1
- package/dist/shims/client-locale.js.map +0 -1
- package/dist/shims/compat-router.js.map +0 -1
- package/dist/shims/config.js.map +0 -1
- package/dist/shims/constants.js.map +0 -1
- package/dist/shims/default-global-error.js.map +0 -1
- package/dist/shims/default-not-found.js.map +0 -1
- package/dist/shims/document.js.map +0 -1
- package/dist/shims/dynamic.js.map +0 -1
- package/dist/shims/error-boundary.js.map +0 -1
- package/dist/shims/error.js.map +0 -1
- package/dist/shims/fetch-cache.js.map +0 -1
- package/dist/shims/font-google-base.js.map +0 -1
- package/dist/shims/font-local.js.map +0 -1
- package/dist/shims/font-utils.js.map +0 -1
- package/dist/shims/form.js.map +0 -1
- package/dist/shims/hash-scroll.js.map +0 -1
- package/dist/shims/head-state.js.map +0 -1
- package/dist/shims/head.js.map +0 -1
- package/dist/shims/headers.js.map +0 -1
- package/dist/shims/i18n-context.js.map +0 -1
- package/dist/shims/i18n-state.js.map +0 -1
- package/dist/shims/image-config.js.map +0 -1
- package/dist/shims/image.js.map +0 -1
- package/dist/shims/internal/als-registry.js.map +0 -1
- package/dist/shims/internal/app-route-detection.js.map +0 -1
- package/dist/shims/internal/app-router-context.js.map +0 -1
- package/dist/shims/internal/cookie-serialize.js.map +0 -1
- package/dist/shims/internal/make-hanging-promise.js.map +0 -1
- package/dist/shims/internal/pages-data-target.js.map +0 -1
- package/dist/shims/internal/pages-data-url.js.map +0 -1
- package/dist/shims/internal/parse-cookie-header.js.map +0 -1
- package/dist/shims/internal/router-context.js.map +0 -1
- package/dist/shims/internal/utils.js.map +0 -1
- package/dist/shims/internal/work-unit-async-storage.js.map +0 -1
- package/dist/shims/layout-segment-context.js.map +0 -1
- package/dist/shims/legacy-image.js.map +0 -1
- package/dist/shims/link-prefetch.js.map +0 -1
- package/dist/shims/link.js.map +0 -1
- package/dist/shims/metadata.js.map +0 -1
- package/dist/shims/navigation-state.js.map +0 -1
- package/dist/shims/navigation.js.map +0 -1
- package/dist/shims/navigation.react-server.js.map +0 -1
- package/dist/shims/offline.js.map +0 -1
- package/dist/shims/og.js.map +0 -1
- package/dist/shims/pages-router-runtime.js.map +0 -1
- package/dist/shims/readonly-url-search-params.js.map +0 -1
- package/dist/shims/request-context.js.map +0 -1
- package/dist/shims/root-params.js.map +0 -1
- package/dist/shims/router-state.js.map +0 -1
- package/dist/shims/router.js.map +0 -1
- package/dist/shims/script-nonce-context.js.map +0 -1
- package/dist/shims/script.js.map +0 -1
- package/dist/shims/server.js.map +0 -1
- package/dist/shims/slot.js.map +0 -1
- package/dist/shims/thenable-params.js.map +0 -1
- package/dist/shims/unified-request-context.js.map +0 -1
- package/dist/shims/unrecognized-action-error.js.map +0 -1
- package/dist/shims/url-safety.js.map +0 -1
- package/dist/shims/url-utils.js.map +0 -1
- package/dist/shims/use-merged-ref.js.map +0 -1
- package/dist/shims/web-vitals.js.map +0 -1
- package/dist/typegen.js.map +0 -1
- package/dist/utils/asset-prefix.js.map +0 -1
- package/dist/utils/base-path.js.map +0 -1
- package/dist/utils/cache-control-metadata.js.map +0 -1
- package/dist/utils/domain-locale.js.map +0 -1
- package/dist/utils/encode-cache-tag.js.map +0 -1
- package/dist/utils/error-cause.js.map +0 -1
- package/dist/utils/hash.js.map +0 -1
- package/dist/utils/html-limited-bots.js.map +0 -1
- package/dist/utils/lazy-chunks.js.map +0 -1
- package/dist/utils/manifest-paths.js.map +0 -1
- package/dist/utils/mdx-scan.js.map +0 -1
- package/dist/utils/navigation-signal.js.map +0 -1
- package/dist/utils/path.js.map +0 -1
- package/dist/utils/prerender-output-paths.js.map +0 -1
- package/dist/utils/project.js.map +0 -1
- package/dist/utils/public-routes.js.map +0 -1
- package/dist/utils/query.js.map +0 -1
- package/dist/utils/record.js.map +0 -1
- package/dist/utils/safe-json-file.js.map +0 -1
- package/dist/utils/sorted-array.js.map +0 -1
- package/dist/utils/text-stream.js.map +0 -1
- package/dist/utils/vinext-root.js.map +0 -1
|
@@ -2,7 +2,7 @@ import { getOrCreateAls } from "./internal/als-registry.js";
|
|
|
2
2
|
import { getRequestContext, isInsideUnifiedScope, runWithUnifiedStateMutation } from "./unified-request-context.js";
|
|
3
3
|
import { getRequestExecutionContext } from "./request-context.js";
|
|
4
4
|
import { encodeCacheTags } from "../utils/encode-cache-tag.js";
|
|
5
|
-
import {
|
|
5
|
+
import { getDataCacheHandler } from "./cache.js";
|
|
6
6
|
//#region src/shims/fetch-cache.ts
|
|
7
7
|
/**
|
|
8
8
|
* Extended fetch() with Next.js caching semantics.
|
|
@@ -288,6 +288,7 @@ if (globalThis.FinalizationRegistry) _responseBodyRegistry = new FinalizationReg
|
|
|
288
288
|
if (stream && !stream.locked) stream.cancel("Response object has been garbage collected").then(_noop, _noop);
|
|
289
289
|
});
|
|
290
290
|
const _fallbackState = _g[_FALLBACK_KEY] ??= {
|
|
291
|
+
cacheableFetchUrls: /* @__PURE__ */ new Set(),
|
|
291
292
|
currentRequestTags: [],
|
|
292
293
|
currentFetchSoftTags: [],
|
|
293
294
|
currentFetchCacheMode: null,
|
|
@@ -304,6 +305,7 @@ function _getState() {
|
|
|
304
305
|
* in single-threaded contexts where ALS.run() isn't used.
|
|
305
306
|
*/
|
|
306
307
|
function _resetFallbackState(isFetchDedupeActive) {
|
|
308
|
+
_fallbackState.cacheableFetchUrls = /* @__PURE__ */ new Set();
|
|
307
309
|
_fallbackState.currentRequestTags = [];
|
|
308
310
|
_fallbackState.currentFetchSoftTags = [];
|
|
309
311
|
_fallbackState.currentFetchCacheMode = null;
|
|
@@ -317,6 +319,12 @@ function getFetchObservationUrl(input) {
|
|
|
317
319
|
function recordDynamicFetchObservation(input) {
|
|
318
320
|
_getState().dynamicFetchUrls.add(getFetchObservationUrl(input));
|
|
319
321
|
}
|
|
322
|
+
function recordCacheableFetchObservation(input) {
|
|
323
|
+
_getState().cacheableFetchUrls.add(getFetchObservationUrl(input));
|
|
324
|
+
}
|
|
325
|
+
function peekCacheableFetchObservations() {
|
|
326
|
+
return [..._getState().cacheableFetchUrls].sort();
|
|
327
|
+
}
|
|
320
328
|
function peekDynamicFetchObservations() {
|
|
321
329
|
return [..._getState().dynamicFetchUrls].sort();
|
|
322
330
|
}
|
|
@@ -496,7 +504,12 @@ function createPatchedFetch() {
|
|
|
496
504
|
recordDynamicFetchObservation(input);
|
|
497
505
|
return dedupeFetch(input, cleanInit);
|
|
498
506
|
}
|
|
507
|
+
recordCacheableFetchObservation(input);
|
|
508
|
+
const reqTags = _getState().currentRequestTags;
|
|
499
509
|
const tags = encodeCacheTags(nextOpts?.tags ?? []);
|
|
510
|
+
if (tags.length > 0) {
|
|
511
|
+
for (const tag of tags) if (!reqTags.includes(tag)) reqTags.push(tag);
|
|
512
|
+
}
|
|
500
513
|
const softTags = _getState().currentFetchSoftTags;
|
|
501
514
|
let fetchInit = stripNextFromInit(init, cacheDirective);
|
|
502
515
|
let cacheKey;
|
|
@@ -511,11 +524,7 @@ function createPatchedFetch() {
|
|
|
511
524
|
}
|
|
512
525
|
throw err;
|
|
513
526
|
}
|
|
514
|
-
const handler =
|
|
515
|
-
const reqTags = _getState().currentRequestTags;
|
|
516
|
-
if (tags.length > 0) {
|
|
517
|
-
for (const tag of tags) if (!reqTags.includes(tag)) reqTags.push(tag);
|
|
518
|
-
}
|
|
527
|
+
const handler = getDataCacheHandler();
|
|
519
528
|
try {
|
|
520
529
|
const cached = await handler.get(cacheKey, {
|
|
521
530
|
kind: "FETCH",
|
|
@@ -652,6 +661,7 @@ function withFetchCache() {
|
|
|
652
661
|
async function runWithFetchCache(fn) {
|
|
653
662
|
_ensurePatchInstalled();
|
|
654
663
|
if (isInsideUnifiedScope()) return await runWithUnifiedStateMutation((uCtx) => {
|
|
664
|
+
uCtx.cacheableFetchUrls = /* @__PURE__ */ new Set();
|
|
655
665
|
uCtx.currentRequestTags = [];
|
|
656
666
|
uCtx.currentFetchSoftTags = [];
|
|
657
667
|
uCtx.dynamicFetchUrls = /* @__PURE__ */ new Set();
|
|
@@ -659,6 +669,7 @@ async function runWithFetchCache(fn) {
|
|
|
659
669
|
uCtx.currentFetchDedupeEntries = /* @__PURE__ */ new Map();
|
|
660
670
|
}, fn);
|
|
661
671
|
return _als.run({
|
|
672
|
+
cacheableFetchUrls: /* @__PURE__ */ new Set(),
|
|
662
673
|
currentRequestTags: [],
|
|
663
674
|
currentFetchSoftTags: [],
|
|
664
675
|
currentFetchCacheMode: null,
|
|
@@ -700,6 +711,4 @@ function getOriginalFetch() {
|
|
|
700
711
|
return originalFetch;
|
|
701
712
|
}
|
|
702
713
|
//#endregion
|
|
703
|
-
export { _resetPendingRefetches, consumeDynamicFetchObservations, ensureFetchPatch, getCollectedFetchTags, getOriginalFetch, peekDynamicFetchObservations, runWithFetchCache, runWithFetchDedupe, setCurrentFetchCacheMode, setCurrentFetchSoftTags, withFetchCache };
|
|
704
|
-
|
|
705
|
-
//# sourceMappingURL=fetch-cache.js.map
|
|
714
|
+
export { _resetPendingRefetches, consumeDynamicFetchObservations, ensureFetchPatch, getCollectedFetchTags, getOriginalFetch, peekCacheableFetchObservations, peekDynamicFetchObservations, runWithFetchCache, runWithFetchDedupe, setCurrentFetchCacheMode, setCurrentFetchSoftTags, withFetchCache };
|
|
@@ -79,5 +79,4 @@ type FontLoader = (options?: FontLoaderOptions) => FontResult;
|
|
|
79
79
|
declare function createFontLoader(family: string): FontLoader;
|
|
80
80
|
declare const googleFonts: Record<string, FontLoader>;
|
|
81
81
|
//#endregion
|
|
82
|
-
export { FontLoader, FontOptions, FontResult, buildGoogleFontsUrl, createFontLoader, googleFonts as default, getSSRFontLinks, getSSRFontPreloads, getSSRFontStyles };
|
|
83
|
-
//# sourceMappingURL=font-google-base.d.ts.map
|
|
82
|
+
export { FontLoader, FontOptions, FontResult, buildGoogleFontsUrl, createFontLoader, googleFonts as default, getSSRFontLinks, getSSRFontPreloads, getSSRFontStyles };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { escapeCSSString, formatFontClassRule, resolveSingleFaceStyle, sanitizeCSSVarName, sanitizeFallback } from "./font-utils.js";
|
|
1
|
+
import { escapeCSSString, formatFontClassRule, getFontMimeType, resolveSingleFaceStyle, sanitizeCSSVarName, sanitizeFallback } from "./font-utils.js";
|
|
2
2
|
import { buildGoogleFontsUrl as buildGoogleFontsUrl$1 } from "../build/google-fonts/build-url.js";
|
|
3
3
|
//#region src/shims/font-google-base.ts
|
|
4
4
|
/**
|
|
@@ -206,16 +206,6 @@ function getSSRFontPreloads() {
|
|
|
206
206
|
return [...ssrFontPreloads];
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
209
|
-
* Determine the MIME type for a font file based on its extension.
|
|
210
|
-
*/
|
|
211
|
-
function getFontMimeType(pathOrUrl) {
|
|
212
|
-
if (pathOrUrl.endsWith(".woff2")) return "font/woff2";
|
|
213
|
-
if (pathOrUrl.endsWith(".woff")) return "font/woff";
|
|
214
|
-
if (pathOrUrl.endsWith(".ttf")) return "font/ttf";
|
|
215
|
-
if (pathOrUrl.endsWith(".otf")) return "font/opentype";
|
|
216
|
-
return "font/woff2";
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
209
|
* Extract font file URLs from @font-face CSS rules.
|
|
220
210
|
* Parses url('...') references from the CSS text.
|
|
221
211
|
*/
|
|
@@ -313,5 +303,3 @@ const googleFonts = new Proxy({}, { get(_target, prop) {
|
|
|
313
303
|
} });
|
|
314
304
|
//#endregion
|
|
315
305
|
export { buildGoogleFontsUrl, createFontLoader, googleFonts as default, getSSRFontLinks, getSSRFontPreloads, getSSRFontStyles };
|
|
316
|
-
|
|
317
|
-
//# sourceMappingURL=font-google-base.js.map
|
|
@@ -47,5 +47,4 @@ declare function getSSRFontPreloads(): Array<{
|
|
|
47
47
|
}>;
|
|
48
48
|
declare function localFont(options: LocalFontOptions): FontResult;
|
|
49
49
|
//#endregion
|
|
50
|
-
export { localFont as default, getSSRFontPreloads, getSSRFontStyles };
|
|
51
|
-
//# sourceMappingURL=font-local.d.ts.map
|
|
50
|
+
export { localFont as default, getSSRFontPreloads, getSSRFontStyles };
|
package/dist/shims/font-local.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { escapeCSSString, formatFontClassRule, resolveSingleFaceStyle, sanitizeCSSVarName, sanitizeFallback, sanitizeFontDescriptorValue } from "./font-utils.js";
|
|
1
|
+
import { escapeCSSString, formatFontClassRule, getFontMimeType, resolveSingleFaceStyle, sanitizeCSSVarName, sanitizeFallback, sanitizeFontDescriptorValue } from "./font-utils.js";
|
|
2
2
|
//#region src/shims/font-local.ts
|
|
3
3
|
/**
|
|
4
4
|
* next/font/local shim
|
|
@@ -151,18 +151,6 @@ function normalizeSources(options) {
|
|
|
151
151
|
return [options.src];
|
|
152
152
|
}
|
|
153
153
|
/**
|
|
154
|
-
* Determine the MIME type for a font file based on its extension.
|
|
155
|
-
* Uses endsWith() only — matching the approach in generateFontFaceCSS —
|
|
156
|
-
* to avoid false positives from substring matches (e.g. ".woff" matching ".woff2").
|
|
157
|
-
*/
|
|
158
|
-
function getFontMimeType(pathOrUrl) {
|
|
159
|
-
if (pathOrUrl.endsWith(".woff2")) return "font/woff2";
|
|
160
|
-
if (pathOrUrl.endsWith(".woff")) return "font/woff";
|
|
161
|
-
if (pathOrUrl.endsWith(".ttf")) return "font/ttf";
|
|
162
|
-
if (pathOrUrl.endsWith(".otf")) return "font/opentype";
|
|
163
|
-
return "font/woff2";
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
154
|
* Collect font source URLs for preload link generation.
|
|
167
155
|
* Only collects on the server (SSR). Deduplicates by href using a Set for O(1) lookups.
|
|
168
156
|
*/
|
|
@@ -205,5 +193,3 @@ function localFont(options) {
|
|
|
205
193
|
}
|
|
206
194
|
//#endregion
|
|
207
195
|
export { localFont as default, getSSRFontPreloads, getSSRFontStyles };
|
|
208
|
-
|
|
209
|
-
//# sourceMappingURL=font-local.js.map
|
|
@@ -46,6 +46,11 @@ declare function resolveFontStyle(style: string | string[] | undefined): string
|
|
|
46
46
|
declare function resolveGoogleFontStyle(style: string | string[] | undefined): string | undefined;
|
|
47
47
|
declare function resolveSingleFaceStyle(input: FontFaceStyleInput): FontStyle;
|
|
48
48
|
declare function formatFontClassRule(className: string, style: FontStyle): string;
|
|
49
|
+
/**
|
|
50
|
+
* Determine the MIME type for a font file based on its extension.
|
|
51
|
+
* Uses endsWith() only to avoid false positives from substring matches
|
|
52
|
+
* (e.g. ".woff" matching ".woff2").
|
|
53
|
+
*/
|
|
54
|
+
declare function getFontMimeType(pathOrUrl: string): string;
|
|
49
55
|
//#endregion
|
|
50
|
-
export { FontFaceStyleInput, FontStyle, escapeCSSString, formatFontClassRule, resolveFontStyle, resolveFontWeight, resolveGoogleFontStyle, resolveSingleFaceStyle, sanitizeCSSVarName, sanitizeFallback, sanitizeFontDescriptorValue, singleFontOptionValue };
|
|
51
|
-
//# sourceMappingURL=font-utils.d.ts.map
|
|
56
|
+
export { FontFaceStyleInput, FontStyle, escapeCSSString, formatFontClassRule, getFontMimeType, resolveFontStyle, resolveFontWeight, resolveGoogleFontStyle, resolveSingleFaceStyle, sanitizeCSSVarName, sanitizeFallback, sanitizeFontDescriptorValue, singleFontOptionValue };
|
package/dist/shims/font-utils.js
CHANGED
|
@@ -91,7 +91,17 @@ function formatFontClassRule(className, style) {
|
|
|
91
91
|
...fontStyle ? [`font-style: ${fontStyle}`] : []
|
|
92
92
|
].join("; ")}; }\n`;
|
|
93
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* Determine the MIME type for a font file based on its extension.
|
|
96
|
+
* Uses endsWith() only to avoid false positives from substring matches
|
|
97
|
+
* (e.g. ".woff" matching ".woff2").
|
|
98
|
+
*/
|
|
99
|
+
function getFontMimeType(pathOrUrl) {
|
|
100
|
+
if (pathOrUrl.endsWith(".woff2")) return "font/woff2";
|
|
101
|
+
if (pathOrUrl.endsWith(".woff")) return "font/woff";
|
|
102
|
+
if (pathOrUrl.endsWith(".ttf")) return "font/ttf";
|
|
103
|
+
if (pathOrUrl.endsWith(".otf")) return "font/opentype";
|
|
104
|
+
return "font/woff2";
|
|
105
|
+
}
|
|
94
106
|
//#endregion
|
|
95
|
-
export { escapeCSSString, formatFontClassRule, resolveFontStyle, resolveFontWeight, resolveGoogleFontStyle, resolveSingleFaceStyle, sanitizeCSSVarName, sanitizeFallback, sanitizeFontDescriptorValue, singleFontOptionValue };
|
|
96
|
-
|
|
97
|
-
//# sourceMappingURL=font-utils.js.map
|
|
107
|
+
export { escapeCSSString, formatFontClassRule, getFontMimeType, resolveFontStyle, resolveFontWeight, resolveGoogleFontStyle, resolveSingleFaceStyle, sanitizeCSSVarName, sanitizeFallback, sanitizeFontDescriptorValue, singleFontOptionValue };
|
package/dist/shims/form.d.ts
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import * as _$react from "react";
|
|
2
1
|
import { FormHTMLAttributes, useActionState } from "react";
|
|
3
2
|
|
|
4
3
|
//#region src/shims/form.d.ts
|
|
5
|
-
declare const Form:
|
|
4
|
+
declare const Form: import("react").ForwardRefExoticComponent<{
|
|
6
5
|
/** Target URL for GET forms, or server action for POST forms */action: string | ((formData: FormData) => void | Promise<void>); /** Replace instead of push in history (default: false) */
|
|
7
6
|
replace?: boolean; /** Scroll to top after navigation (default: true) */
|
|
8
7
|
scroll?: boolean;
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Controls whether the form's target URL is prefetched when the form enters
|
|
10
|
+
* the viewport. Only applies to App Router with a string `action`.
|
|
11
|
+
* - `null` (default): prefetch automatically (production only)
|
|
12
|
+
* - `false`: disable prefetching
|
|
13
|
+
*
|
|
14
|
+
* In pages dir, prefetch is not supported and the prop has no effect.
|
|
15
|
+
*/
|
|
16
|
+
prefetch?: false | null;
|
|
17
|
+
} & Omit<FormHTMLAttributes<HTMLFormElement>, "method" | "encType" | "target"> & import("react").RefAttributes<HTMLFormElement>>;
|
|
10
18
|
//#endregion
|
|
11
|
-
export { Form as default, useActionState };
|
|
12
|
-
//# sourceMappingURL=form.d.ts.map
|
|
19
|
+
export { Form as default, useActionState };
|
package/dist/shims/form.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { VINEXT_MOUNTED_SLOTS_HEADER } from "../server/headers.js";
|
|
2
3
|
import { isDangerousScheme } from "./url-safety.js";
|
|
4
|
+
import { AppElementsWire } from "../server/app-elements-wire.js";
|
|
5
|
+
import "../server/app-elements.js";
|
|
3
6
|
import { toSameOriginPath, withBasePath } from "./url-utils.js";
|
|
4
7
|
import { hasAppNavigationRuntime } from "../client/navigation-runtime.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
8
|
+
import { createRscRequestHeaders, createRscRequestUrl } from "../server/app-rsc-cache-busting.js";
|
|
9
|
+
import { getMountedSlotsHeader, getPrefetchInterceptionContext, getPrefetchedUrls, hasPrefetchCacheEntryForNavigation, navigateClientSide, prefetchRscResponse } from "./navigation.js";
|
|
10
|
+
import { useMergedRef } from "./use-merged-ref.js";
|
|
11
|
+
import { forwardRef, useActionState, useCallback, useEffect, useRef } from "react";
|
|
7
12
|
import { jsx } from "react/jsx-runtime";
|
|
8
13
|
//#region src/shims/form.tsx
|
|
9
14
|
/**
|
|
@@ -24,6 +29,11 @@ import { jsx } from "react/jsx-runtime";
|
|
|
24
29
|
* </Form>
|
|
25
30
|
*/
|
|
26
31
|
const __basePath = process.env.__NEXT_ROUTER_BASEPATH ?? "";
|
|
32
|
+
const DISALLOWED_FORM_PROPS = [
|
|
33
|
+
"method",
|
|
34
|
+
"encType",
|
|
35
|
+
"target"
|
|
36
|
+
];
|
|
27
37
|
const SUPPORTED_FORM_ENCTYPE = "application/x-www-form-urlencoded";
|
|
28
38
|
const SUPPORTED_FORM_METHOD = "GET";
|
|
29
39
|
const SUPPORTED_FORM_TARGET = "_self";
|
|
@@ -45,8 +55,13 @@ function getSubmitter(nativeEvent) {
|
|
|
45
55
|
if (submitter instanceof HTMLButtonElement || submitter instanceof HTMLInputElement) return submitter;
|
|
46
56
|
return null;
|
|
47
57
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
58
|
+
function hasReactServerActionAttributes(submitter) {
|
|
59
|
+
const name = submitter.getAttribute("name");
|
|
60
|
+
return Boolean(name && (name.startsWith("$ACTION_ID_") || name.startsWith("$ACTION_REF_")));
|
|
61
|
+
}
|
|
62
|
+
function hasReactClientActionAttributes(submitter) {
|
|
63
|
+
const action = submitter.getAttribute("formAction");
|
|
64
|
+
return Boolean(action && /\s*javascript:/i.test(action));
|
|
50
65
|
}
|
|
51
66
|
function getEffectiveAction(submitter, formAction) {
|
|
52
67
|
return submitter?.getAttribute("formaction") ?? formAction;
|
|
@@ -65,17 +80,17 @@ function checkFormActionUrl(action, source) {
|
|
|
65
80
|
function hasUnsupportedSubmitterAttributes(submitter) {
|
|
66
81
|
const formEncType = submitter.getAttribute("formenctype");
|
|
67
82
|
if (formEncType !== null && formEncType !== SUPPORTED_FORM_ENCTYPE) {
|
|
68
|
-
console.error(`<Form>'s \`encType\` was set to an unsupported value via \`formEncType="${formEncType}"\`. This will disable <Form>'s navigation functionality. If you need this, use a native <form> element instead.`);
|
|
83
|
+
if (process.env.NODE_ENV !== "production") console.error(`<Form>'s \`encType\` was set to an unsupported value via \`formEncType="${formEncType}"\`. This will disable <Form>'s navigation functionality. If you need this, use a native <form> element instead.`);
|
|
69
84
|
return true;
|
|
70
85
|
}
|
|
71
86
|
const formMethod = submitter.getAttribute("formmethod");
|
|
72
87
|
if (formMethod !== null && formMethod.toUpperCase() !== SUPPORTED_FORM_METHOD) {
|
|
73
|
-
console.error(`<Form>'s \`method\` was set to an unsupported value via \`formMethod="${formMethod}"\`. This will disable <Form>'s navigation functionality. If you need this, use a native <form> element instead.`);
|
|
88
|
+
if (process.env.NODE_ENV !== "production") console.error(`<Form>'s \`method\` was set to an unsupported value via \`formMethod="${formMethod}"\`. This will disable <Form>'s navigation functionality. If you need this, use a native <form> element instead.`);
|
|
74
89
|
return true;
|
|
75
90
|
}
|
|
76
91
|
const formTarget = submitter.getAttribute("formtarget");
|
|
77
92
|
if (formTarget !== null && formTarget !== SUPPORTED_FORM_TARGET) {
|
|
78
|
-
console.error(`<Form>'s \`target\` was set to an unsupported value via \`formTarget="${formTarget}"\`. This will disable <Form>'s navigation functionality. If you need this, use a native <form> element instead.`);
|
|
93
|
+
if (process.env.NODE_ENV !== "production") console.error(`<Form>'s \`target\` was set to an unsupported value via \`formTarget="${formTarget}"\`. This will disable <Form>'s navigation functionality. If you need this, use a native <form> element instead.`);
|
|
79
94
|
return true;
|
|
80
95
|
}
|
|
81
96
|
return false;
|
|
@@ -84,7 +99,10 @@ function createFormSubmitDestinationUrl(action, form, submitter) {
|
|
|
84
99
|
const targetUrl = new URL(action, window.location.href);
|
|
85
100
|
if (targetUrl.searchParams.size) targetUrl.search = "";
|
|
86
101
|
const formData = buildFormData(form, submitter);
|
|
87
|
-
for (const [name, value] of formData)
|
|
102
|
+
for (const [name, value] of formData) if (typeof value !== "string") {
|
|
103
|
+
if (process.env.NODE_ENV !== "production") console.warn("<Form> only supports file inputs if `action` is a function. File inputs cannot be used if `action` is a string, because files cannot be encoded as search params.");
|
|
104
|
+
targetUrl.searchParams.append(name, value.name);
|
|
105
|
+
} else targetUrl.searchParams.append(name, value);
|
|
88
106
|
return toSameOriginPath(targetUrl.href) ?? targetUrl.href;
|
|
89
107
|
}
|
|
90
108
|
function buildFormData(form, submitter) {
|
|
@@ -98,31 +116,92 @@ function buildFormData(form, submitter) {
|
|
|
98
116
|
}
|
|
99
117
|
}
|
|
100
118
|
const Form = forwardRef(function Form(props, ref) {
|
|
101
|
-
const { action, replace = false, scroll = true, onSubmit, ...rest } = props;
|
|
119
|
+
const { action, replace = false, scroll = true, prefetch = null, onSubmit, ...rest } = props;
|
|
120
|
+
const isNavigatingForm = typeof action === "string";
|
|
121
|
+
if (process.env.NODE_ENV !== "production") {
|
|
122
|
+
if (typeof action === "string") checkFormActionUrl(action, "action");
|
|
123
|
+
if (!(props.prefetch === void 0 || props.prefetch === false || props.prefetch === null)) console.error("The `prefetch` prop of <Form> must be `false` or `null`");
|
|
124
|
+
if (props.prefetch !== void 0 && !isNavigatingForm) console.error("Passing `prefetch` to a <Form> whose `action` is a function has no effect.");
|
|
125
|
+
if (!isNavigatingForm && (props.replace !== void 0 || props.scroll !== void 0)) console.error("Passing `replace` or `scroll` to a <Form> whose `action` is a function has no effect.\nSee the relevant docs to learn how to control this behavior for navigations triggered from actions:\n `redirect()` - https://nextjs.org/docs/app/api-reference/functions/redirect#parameters\n `router.replace()` - https://nextjs.org/docs/app/api-reference/functions/use-router#userouter\n");
|
|
126
|
+
}
|
|
127
|
+
const cleanRest = { ...rest };
|
|
128
|
+
for (const key of DISALLOWED_FORM_PROPS) if (key in cleanRest) {
|
|
129
|
+
if (process.env.NODE_ENV !== "production") console.error(`<Form> does not support changing \`${key}\`. ` + (isNavigatingForm ? "If you'd like to use it to perform a mutation, consider making `action` a function instead.\nLearn more: https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations" : ""));
|
|
130
|
+
delete cleanRest[key];
|
|
131
|
+
}
|
|
132
|
+
const formRef = useRef(null);
|
|
133
|
+
const setRefs = useMergedRef(useCallback((node) => {
|
|
134
|
+
formRef.current = node;
|
|
135
|
+
}, []), ref ?? null);
|
|
136
|
+
const actionHref = typeof action === "string" ? withBasePath(action, __basePath) : "";
|
|
137
|
+
useEffect(() => {
|
|
138
|
+
if (typeof action !== "string") return;
|
|
139
|
+
if (prefetch === false || process.env.NODE_ENV !== "production") return;
|
|
140
|
+
if (!isSafeAction(action)) return;
|
|
141
|
+
if (!hasAppNavigationRuntime()) return;
|
|
142
|
+
const node = formRef.current;
|
|
143
|
+
if (!node) return;
|
|
144
|
+
if (typeof IntersectionObserver === "undefined") return;
|
|
145
|
+
const observer = new IntersectionObserver((entries) => {
|
|
146
|
+
for (const entry of entries) if (entry.isIntersecting || entry.intersectionRatio > 0) {
|
|
147
|
+
(async () => {
|
|
148
|
+
const interceptionContext = getPrefetchInterceptionContext(actionHref);
|
|
149
|
+
const mountedSlotsHeader = getMountedSlotsHeader();
|
|
150
|
+
const headers = createRscRequestHeaders({ interceptionContext });
|
|
151
|
+
if (mountedSlotsHeader) headers.set(VINEXT_MOUNTED_SLOTS_HEADER, mountedSlotsHeader);
|
|
152
|
+
const rscUrl = await createRscRequestUrl(actionHref, headers);
|
|
153
|
+
const cacheKey = AppElementsWire.encodeCacheKey(rscUrl, interceptionContext);
|
|
154
|
+
const prefetched = getPrefetchedUrls();
|
|
155
|
+
if (prefetched.has(cacheKey)) return;
|
|
156
|
+
if (hasPrefetchCacheEntryForNavigation(rscUrl, interceptionContext, mountedSlotsHeader)) return;
|
|
157
|
+
prefetched.add(cacheKey);
|
|
158
|
+
prefetchRscResponse(rscUrl, fetch(rscUrl, {
|
|
159
|
+
headers,
|
|
160
|
+
credentials: "include",
|
|
161
|
+
priority: "low",
|
|
162
|
+
purpose: "prefetch"
|
|
163
|
+
}), interceptionContext, mountedSlotsHeader, void 0, {
|
|
164
|
+
cacheForNavigation: true,
|
|
165
|
+
optimisticRouteShell: false
|
|
166
|
+
});
|
|
167
|
+
})();
|
|
168
|
+
observer.unobserve(node);
|
|
169
|
+
}
|
|
170
|
+
}, { rootMargin: "200px" });
|
|
171
|
+
observer.observe(node);
|
|
172
|
+
return () => {
|
|
173
|
+
observer.unobserve(node);
|
|
174
|
+
};
|
|
175
|
+
}, [
|
|
176
|
+
action,
|
|
177
|
+
prefetch,
|
|
178
|
+
actionHref
|
|
179
|
+
]);
|
|
102
180
|
if (typeof action === "function") return /* @__PURE__ */ jsx("form", {
|
|
103
|
-
ref,
|
|
181
|
+
ref: setRefs,
|
|
104
182
|
action,
|
|
105
183
|
onSubmit,
|
|
106
|
-
...
|
|
184
|
+
...cleanRest
|
|
107
185
|
});
|
|
108
|
-
if (process.env.NODE_ENV !== "production") checkFormActionUrl(action, "action");
|
|
109
186
|
if (!isSafeAction(action)) {
|
|
110
187
|
if (process.env.NODE_ENV !== "production") console.warn(`<Form> blocked unsafe action: ${action}`);
|
|
111
188
|
return /* @__PURE__ */ jsx("form", {
|
|
112
|
-
ref,
|
|
189
|
+
ref: setRefs,
|
|
113
190
|
onSubmit,
|
|
114
|
-
...
|
|
191
|
+
...cleanRest
|
|
115
192
|
});
|
|
116
193
|
}
|
|
117
|
-
const actionHref = withBasePath(action, __basePath);
|
|
118
194
|
async function handleSubmit(e) {
|
|
119
195
|
if (onSubmit) {
|
|
120
196
|
onSubmit(e);
|
|
121
197
|
if (e.defaultPrevented) return;
|
|
122
198
|
}
|
|
123
199
|
const submitter = getSubmitter(e.nativeEvent);
|
|
124
|
-
if (submitter
|
|
125
|
-
|
|
200
|
+
if (submitter) {
|
|
201
|
+
if (process.env.NODE_ENV !== "production" && hasReactServerActionAttributes(submitter)) return;
|
|
202
|
+
if (hasUnsupportedSubmitterAttributes(submitter)) return;
|
|
203
|
+
if (hasReactClientActionAttributes(submitter)) return;
|
|
204
|
+
}
|
|
126
205
|
const effectiveAction = getEffectiveAction(submitter, actionHref);
|
|
127
206
|
if (process.env.NODE_ENV !== "production" && submitter?.getAttribute("formaction") !== null) checkFormActionUrl(effectiveAction, "formAction");
|
|
128
207
|
if (!isSafeAction(effectiveAction)) {
|
|
@@ -145,15 +224,13 @@ const Form = forwardRef(function Form(props, ref) {
|
|
|
145
224
|
}
|
|
146
225
|
}
|
|
147
226
|
return /* @__PURE__ */ jsx("form", {
|
|
148
|
-
ref,
|
|
227
|
+
ref: setRefs,
|
|
149
228
|
action: actionHref,
|
|
150
229
|
onSubmit: (event) => {
|
|
151
230
|
handleSubmit(event);
|
|
152
231
|
},
|
|
153
|
-
...
|
|
232
|
+
...cleanRest
|
|
154
233
|
});
|
|
155
234
|
});
|
|
156
235
|
//#endregion
|
|
157
236
|
export { Form as default, useActionState };
|
|
158
|
-
|
|
159
|
-
//# sourceMappingURL=form.js.map
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
declare function decodeHashFragment(fragment: string): string;
|
|
3
3
|
declare function scrollToHashTarget(hash: string): void;
|
|
4
4
|
declare function scrollToHashTargetOnNextFrame(hash: string): void;
|
|
5
|
+
declare function retryScrollTo(x: number, y: number, opts?: {
|
|
6
|
+
shouldContinue?: () => boolean;
|
|
7
|
+
}): void;
|
|
5
8
|
//#endregion
|
|
6
|
-
export { decodeHashFragment, scrollToHashTarget, scrollToHashTargetOnNextFrame };
|
|
7
|
-
//# sourceMappingURL=hash-scroll.d.ts.map
|
|
9
|
+
export { decodeHashFragment, retryScrollTo, scrollToHashTarget, scrollToHashTargetOnNextFrame };
|
|
@@ -24,7 +24,17 @@ function scrollToHashTargetOnNextFrame(hash) {
|
|
|
24
24
|
scrollToHashTarget(hash);
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
+
function retryScrollTo(x, y, opts) {
|
|
28
|
+
const shouldContinue = opts?.shouldContinue ?? (() => true);
|
|
29
|
+
let attempts = 0;
|
|
30
|
+
const restore = () => {
|
|
31
|
+
if (!shouldContinue()) return;
|
|
32
|
+
window.scrollTo(x, y);
|
|
33
|
+
if (!shouldContinue() || Math.abs(window.scrollY - y) <= 1 || attempts >= 60) return;
|
|
34
|
+
attempts += 1;
|
|
35
|
+
requestAnimationFrame(restore);
|
|
36
|
+
};
|
|
37
|
+
restore();
|
|
38
|
+
}
|
|
27
39
|
//#endregion
|
|
28
|
-
export { decodeHashFragment, scrollToHashTarget, scrollToHashTargetOnNextFrame };
|
|
29
|
-
|
|
30
|
-
//# sourceMappingURL=hash-scroll.js.map
|
|
40
|
+
export { decodeHashFragment, retryScrollTo, scrollToHashTarget, scrollToHashTargetOnNextFrame };
|
|
@@ -3,6 +3,7 @@ import React from "react";
|
|
|
3
3
|
//#region src/shims/head-state.d.ts
|
|
4
4
|
type HeadState = {
|
|
5
5
|
ssrHeadChildren: React.ReactNode[];
|
|
6
|
+
documentInitialHead: React.ReactNode[];
|
|
6
7
|
};
|
|
7
8
|
/**
|
|
8
9
|
* Run a function within a head state ALS scope.
|
|
@@ -12,5 +13,4 @@ type HeadState = {
|
|
|
12
13
|
declare function runWithHeadState<T>(fn: () => Promise<T>): Promise<T>;
|
|
13
14
|
declare function runWithHeadState<T>(fn: () => T | Promise<T>): T | Promise<T>;
|
|
14
15
|
//#endregion
|
|
15
|
-
export { HeadState, runWithHeadState };
|
|
16
|
-
//# sourceMappingURL=head-state.d.ts.map
|
|
16
|
+
export { HeadState, runWithHeadState };
|
package/dist/shims/head-state.js
CHANGED
|
@@ -5,7 +5,10 @@ import { _registerHeadStateAccessors } from "./head.js";
|
|
|
5
5
|
const _FALLBACK_KEY = Symbol.for("vinext.head.fallback");
|
|
6
6
|
const _g = globalThis;
|
|
7
7
|
const _als = getOrCreateAls("vinext.head.als");
|
|
8
|
-
const _fallbackState = _g[_FALLBACK_KEY] ??= {
|
|
8
|
+
const _fallbackState = _g[_FALLBACK_KEY] ??= {
|
|
9
|
+
ssrHeadChildren: [],
|
|
10
|
+
documentInitialHead: []
|
|
11
|
+
};
|
|
9
12
|
function _getState() {
|
|
10
13
|
if (isInsideUnifiedScope()) return getRequestContext();
|
|
11
14
|
return _als.getStore() ?? _fallbackState;
|
|
@@ -13,18 +16,28 @@ function _getState() {
|
|
|
13
16
|
function runWithHeadState(fn) {
|
|
14
17
|
if (isInsideUnifiedScope()) return runWithUnifiedStateMutation((uCtx) => {
|
|
15
18
|
uCtx.ssrHeadChildren = [];
|
|
19
|
+
uCtx.documentInitialHead = [];
|
|
20
|
+
}, fn);
|
|
21
|
+
return _als.run({
|
|
22
|
+
ssrHeadChildren: [],
|
|
23
|
+
documentInitialHead: []
|
|
16
24
|
}, fn);
|
|
17
|
-
return _als.run({ ssrHeadChildren: [] }, fn);
|
|
18
25
|
}
|
|
19
26
|
_registerHeadStateAccessors({
|
|
20
27
|
getSSRHeadChildren() {
|
|
21
28
|
return _getState().ssrHeadChildren;
|
|
22
29
|
},
|
|
23
30
|
resetSSRHead() {
|
|
24
|
-
_getState()
|
|
31
|
+
const s = _getState();
|
|
32
|
+
s.ssrHeadChildren = [];
|
|
33
|
+
s.documentInitialHead = [];
|
|
34
|
+
},
|
|
35
|
+
getDocumentInitialHead() {
|
|
36
|
+
return _getState().documentInitialHead;
|
|
37
|
+
},
|
|
38
|
+
setDocumentInitialHead(head) {
|
|
39
|
+
_getState().documentInitialHead = head;
|
|
25
40
|
}
|
|
26
41
|
});
|
|
27
42
|
//#endregion
|
|
28
43
|
export { runWithHeadState };
|
|
29
|
-
|
|
30
|
-
//# sourceMappingURL=head-state.js.map
|
package/dist/shims/head.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import React from "react";
|
|
|
4
4
|
type HeadProps = {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
};
|
|
7
|
+
/** @internal — exposed for unit tests of the client head projection. */
|
|
8
|
+
declare const _clientHeadChildren: Map<symbol, React.ReactNode>;
|
|
7
9
|
/**
|
|
8
10
|
* Register ALS-backed state accessors. Called by head-state.ts on import.
|
|
9
11
|
* @internal
|
|
@@ -11,9 +13,21 @@ type HeadProps = {
|
|
|
11
13
|
declare function _registerHeadStateAccessors(accessors: {
|
|
12
14
|
getSSRHeadChildren: () => React.ReactNode[];
|
|
13
15
|
resetSSRHead: () => void;
|
|
16
|
+
getDocumentInitialHead?: () => React.ReactNode[];
|
|
17
|
+
setDocumentInitialHead?: (head: React.ReactNode[]) => void;
|
|
14
18
|
}): void;
|
|
15
19
|
/** Reset the SSR head collector. Call before render. */
|
|
16
20
|
declare function resetSSRHead(): void;
|
|
21
|
+
/**
|
|
22
|
+
* Register head tags returned by a user `_document.getInitialProps()` call.
|
|
23
|
+
* Mirrors Next.js: `_document` may extend the head array passed to its render,
|
|
24
|
+
* and those tags are merged into the final `<head>` output. We treat them the
|
|
25
|
+
* same as `next/head` children — they go through the same dedupe pipeline so
|
|
26
|
+
* later tags (by key or meta-type) win, matching Next.js semantics.
|
|
27
|
+
*
|
|
28
|
+
* Pass an empty array (or simply don't call this) to skip the merge.
|
|
29
|
+
*/
|
|
30
|
+
declare function setDocumentInitialHead(head: React.ReactNode[]): void;
|
|
17
31
|
/** Get collected head HTML. Call after render. */
|
|
18
32
|
declare function getSSRHeadHTML(): string;
|
|
19
33
|
type HeadDOMElement = Pick<HTMLElement, "innerHTML" | "setAttribute" | "textContent">;
|
|
@@ -32,9 +46,28 @@ declare function escapeAttr(s: string): string;
|
|
|
32
46
|
*/
|
|
33
47
|
declare function escapeInlineContent(content: string, tag: string): string;
|
|
34
48
|
declare function _applyHeadPropsToElement(domEl: HeadDOMElement, props: Record<string, unknown>): void;
|
|
49
|
+
/**
|
|
50
|
+
* Reconcile the document <head> against the desired projection.
|
|
51
|
+
*
|
|
52
|
+
* Mirrors Next.js's client `head-manager.ts` `updateElements()`: rather than
|
|
53
|
+
* wiping every [data-next-head] node and re-appending (which reorders the
|
|
54
|
+
* SSR-emitted tags to the end of <head> and causes flicker on each update),
|
|
55
|
+
* we diff the desired tags against the existing ones with isEqualNode(). Tags
|
|
56
|
+
* that already match are left untouched in their original DOM position, only
|
|
57
|
+
* genuinely new tags are inserted, and stale tags are removed.
|
|
58
|
+
*
|
|
59
|
+
* The desired list seeds defaultHead() (charset + viewport) ahead of user
|
|
60
|
+
* tags — matching the SSR path in getSSRHeadHTML() and Next.js's
|
|
61
|
+
* reduceComponents(), which always concatenates defaultHead() on both server
|
|
62
|
+
* and client. Without it the first <Head> mount after hydration would drop the
|
|
63
|
+
* server-rendered defaults. Users can still override via key="charset" /
|
|
64
|
+
* key="viewport" through the dedupe pipeline.
|
|
65
|
+
*
|
|
66
|
+
* @internal — exported for unit tests; called from the Head client effect.
|
|
67
|
+
*/
|
|
68
|
+
declare function _syncClientHead(): void;
|
|
35
69
|
declare function Head({
|
|
36
70
|
children
|
|
37
71
|
}: HeadProps): null;
|
|
38
72
|
//#endregion
|
|
39
|
-
export { _applyHeadPropsToElement, _registerHeadStateAccessors, Head as default, escapeAttr, escapeInlineContent, getSSRHeadHTML, isSafeAttrName, reduceHeadChildren, resetSSRHead };
|
|
40
|
-
//# sourceMappingURL=head.d.ts.map
|
|
73
|
+
export { _applyHeadPropsToElement, _clientHeadChildren, _registerHeadStateAccessors, _syncClientHead, Head as default, escapeAttr, escapeInlineContent, getSSRHeadHTML, isSafeAttrName, reduceHeadChildren, resetSSRHead, setDocumentInitialHead };
|