@betterinternship/components 2.3.0 → 2.4.1
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/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/_interop_require_default.js +4 -0
- package/dist/_virtual/_interop_require_default.js.map +1 -0
- package/dist/_virtual/_interop_require_wildcard.js +4 -0
- package/dist/_virtual/_interop_require_wildcard.js.map +1 -0
- package/dist/_virtual/action-async-storage-instance.js +4 -0
- package/dist/_virtual/action-async-storage-instance.js.map +1 -0
- package/dist/_virtual/action-async-storage.external.js +4 -0
- package/dist/_virtual/action-async-storage.external.js.map +1 -0
- package/dist/_virtual/action-revalidation-kind.js +4 -0
- package/dist/_virtual/action-revalidation-kind.js.map +1 -0
- package/dist/_virtual/add-base-path.js +4 -0
- package/dist/_virtual/add-base-path.js.map +1 -0
- package/dist/_virtual/add-locale.js +4 -0
- package/dist/_virtual/add-locale.js.map +1 -0
- package/dist/_virtual/add-locale2.js +4 -0
- package/dist/_virtual/add-locale2.js.map +1 -0
- package/dist/_virtual/add-path-prefix.js +4 -0
- package/dist/_virtual/add-path-prefix.js.map +1 -0
- package/dist/_virtual/app-paths.js +4 -0
- package/dist/_virtual/app-paths.js.map +1 -0
- package/dist/_virtual/app-router-context.shared-runtime.js +4 -0
- package/dist/_virtual/app-router-context.shared-runtime.js.map +1 -0
- package/dist/_virtual/app.js +4 -0
- package/dist/_virtual/app.js.map +1 -0
- package/dist/_virtual/async-local-storage.js +4 -0
- package/dist/_virtual/async-local-storage.js.map +1 -0
- package/dist/_virtual/bailout-to-csr.js +4 -0
- package/dist/_virtual/bailout-to-csr.js.map +1 -0
- package/dist/_virtual/blocking-route-messages.js +4 -0
- package/dist/_virtual/blocking-route-messages.js.map +1 -0
- package/dist/_virtual/boundary-constants.js +4 -0
- package/dist/_virtual/boundary-constants.js.map +1 -0
- package/dist/_virtual/boundary-constants2.js +4 -0
- package/dist/_virtual/boundary-constants2.js.map +1 -0
- package/dist/_virtual/boundary-tracking.js +4 -0
- package/dist/_virtual/boundary-tracking.js.map +1 -0
- package/dist/_virtual/constants.js +4 -0
- package/dist/_virtual/constants.js.map +1 -0
- package/dist/_virtual/cookies.js +4 -0
- package/dist/_virtual/cookies.js.map +1 -0
- package/dist/_virtual/deployment-id.js +4 -0
- package/dist/_virtual/deployment-id.js.map +1 -0
- package/dist/_virtual/detect-domain-locale.js +4 -0
- package/dist/_virtual/detect-domain-locale.js.map +1 -0
- package/dist/_virtual/detect-domain-locale2.js +4 -0
- package/dist/_virtual/detect-domain-locale2.js.map +1 -0
- package/dist/_virtual/dynamic-rendering-utils.js +4 -0
- package/dist/_virtual/dynamic-rendering-utils.js.map +1 -0
- package/dist/_virtual/dynamic-rendering.js +4 -0
- package/dist/_virtual/dynamic-rendering.js.map +1 -0
- package/dist/_virtual/ensure-leading-slash.js +4 -0
- package/dist/_virtual/ensure-leading-slash.js.map +1 -0
- package/dist/_virtual/error-once.js +4 -0
- package/dist/_virtual/error-once.js.map +1 -0
- package/dist/_virtual/escape-regexp.js +4 -0
- package/dist/_virtual/escape-regexp.js.map +1 -0
- package/dist/_virtual/find-closest-quality.js +4 -0
- package/dist/_virtual/find-closest-quality.js.map +1 -0
- package/dist/_virtual/forbidden.js +4 -0
- package/dist/_virtual/forbidden.js.map +1 -0
- package/dist/_virtual/format-url.js +4 -0
- package/dist/_virtual/format-url.js.map +1 -0
- package/dist/_virtual/get-domain-locale.js +4 -0
- package/dist/_virtual/get-domain-locale.js.map +1 -0
- package/dist/_virtual/get-dynamic-param.js +4 -0
- package/dist/_virtual/get-dynamic-param.js.map +1 -0
- package/dist/_virtual/get-img-props.js +4 -0
- package/dist/_virtual/get-img-props.js.map +1 -0
- package/dist/_virtual/get-segment-param.js +4 -0
- package/dist/_virtual/get-segment-param.js.map +1 -0
- package/dist/_virtual/has-base-path.js +4 -0
- package/dist/_virtual/has-base-path.js.map +1 -0
- package/dist/_virtual/head-manager-context.shared-runtime.js +4 -0
- package/dist/_virtual/head-manager-context.shared-runtime.js.map +1 -0
- package/dist/_virtual/head.js +4 -0
- package/dist/_virtual/head.js.map +1 -0
- package/dist/_virtual/headers.js +4 -0
- package/dist/_virtual/headers.js.map +1 -0
- package/dist/_virtual/hooks-client-context.shared-runtime.js +4 -0
- package/dist/_virtual/hooks-client-context.shared-runtime.js.map +1 -0
- package/dist/_virtual/hooks-server-context.js +4 -0
- package/dist/_virtual/hooks-server-context.js.map +1 -0
- package/dist/_virtual/http-access-fallback.js +4 -0
- package/dist/_virtual/http-access-fallback.js.map +1 -0
- package/dist/_virtual/image-blur-svg.js +4 -0
- package/dist/_virtual/image-blur-svg.js.map +1 -0
- package/dist/_virtual/image-component.js +4 -0
- package/dist/_virtual/image-component.js.map +1 -0
- package/dist/_virtual/image-config-context.shared-runtime.js +4 -0
- package/dist/_virtual/image-config-context.shared-runtime.js.map +1 -0
- package/dist/_virtual/image-config.js +4 -0
- package/dist/_virtual/image-config.js.map +1 -0
- package/dist/_virtual/image-external.js +4 -0
- package/dist/_virtual/image-external.js.map +1 -0
- package/dist/_virtual/image-loader.js +4 -0
- package/dist/_virtual/image-loader.js.map +1 -0
- package/dist/_virtual/image.js +8 -0
- package/dist/_virtual/image.js.map +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/instant-messages.js +4 -0
- package/dist/_virtual/instant-messages.js.map +1 -0
- package/dist/_virtual/instant-samples.js +4 -0
- package/dist/_virtual/instant-samples.js.map +1 -0
- package/dist/_virtual/instant-samples2.js +4 -0
- package/dist/_virtual/instant-samples2.js.map +1 -0
- package/dist/_virtual/instant-validation-error.js +4 -0
- package/dist/_virtual/instant-validation-error.js.map +1 -0
- package/dist/_virtual/interception-prefix-from-param-type.js +4 -0
- package/dist/_virtual/interception-prefix-from-param-type.js.map +1 -0
- package/dist/_virtual/interception-routes.js +4 -0
- package/dist/_virtual/interception-routes.js.map +1 -0
- package/dist/_virtual/interpolate-as.js +4 -0
- package/dist/_virtual/interpolate-as.js.map +1 -0
- package/dist/_virtual/invariant-error.js +4 -0
- package/dist/_virtual/invariant-error.js.map +1 -0
- package/dist/_virtual/is-dynamic.js +4 -0
- package/dist/_virtual/is-dynamic.js.map +1 -0
- package/dist/_virtual/is-local-url.js +4 -0
- package/dist/_virtual/is-local-url.js.map +1 -0
- package/dist/_virtual/is-next-router-error.js +4 -0
- package/dist/_virtual/is-next-router-error.js.map +1 -0
- package/dist/_virtual/is-postpone.js +4 -0
- package/dist/_virtual/is-postpone.js.map +1 -0
- package/dist/_virtual/link.js +8 -0
- package/dist/_virtual/link.js.map +1 -0
- package/dist/_virtual/link2.js +4 -0
- package/dist/_virtual/link2.js.map +1 -0
- package/dist/_virtual/match-local-pattern.js +4 -0
- package/dist/_virtual/match-local-pattern.js.map +1 -0
- package/dist/_virtual/match-remote-pattern.js +4 -0
- package/dist/_virtual/match-remote-pattern.js.map +1 -0
- package/dist/_virtual/navigation-dynamic-rendering.js +4 -0
- package/dist/_virtual/navigation-dynamic-rendering.js.map +1 -0
- package/dist/_virtual/navigation.js +6 -0
- package/dist/_virtual/navigation.js.map +1 -0
- package/dist/_virtual/navigation.react-server.js +4 -0
- package/dist/_virtual/navigation.react-server.js.map +1 -0
- package/dist/_virtual/navigation2.js +4 -0
- package/dist/_virtual/navigation2.js.map +1 -0
- package/dist/_virtual/normalize-locale-path.js +4 -0
- package/dist/_virtual/normalize-locale-path.js.map +1 -0
- package/dist/_virtual/normalize-locale-path2.js +4 -0
- package/dist/_virtual/normalize-locale-path2.js.map +1 -0
- package/dist/_virtual/normalize-trailing-slash.js +4 -0
- package/dist/_virtual/normalize-trailing-slash.js.map +1 -0
- package/dist/_virtual/not-found.js +4 -0
- package/dist/_virtual/not-found.js.map +1 -0
- package/dist/_virtual/omit.js +4 -0
- package/dist/_virtual/omit.js.map +1 -0
- package/dist/_virtual/parse-loader-tree.js +4 -0
- package/dist/_virtual/parse-loader-tree.js.map +1 -0
- package/dist/_virtual/parse-path.js +4 -0
- package/dist/_virtual/parse-path.js.map +1 -0
- package/dist/_virtual/parse-relative-url.js +4 -0
- package/dist/_virtual/parse-relative-url.js.map +1 -0
- package/dist/_virtual/path-has-prefix.js +4 -0
- package/dist/_virtual/path-has-prefix.js.map +1 -0
- package/dist/_virtual/promise-with-resolvers.js +4 -0
- package/dist/_virtual/promise-with-resolvers.js.map +1 -0
- package/dist/_virtual/querystring.js +4 -0
- package/dist/_virtual/querystring.js.map +1 -0
- package/dist/_virtual/readonly-url-search-params.js +4 -0
- package/dist/_virtual/readonly-url-search-params.js.map +1 -0
- package/dist/_virtual/redirect-error.js +4 -0
- package/dist/_virtual/redirect-error.js.map +1 -0
- package/dist/_virtual/redirect-status-code.js +4 -0
- package/dist/_virtual/redirect-status-code.js.map +1 -0
- package/dist/_virtual/redirect.js +4 -0
- package/dist/_virtual/redirect.js.map +1 -0
- package/dist/_virtual/reflect-utils.js +4 -0
- package/dist/_virtual/reflect-utils.js.map +1 -0
- package/dist/_virtual/reflect.js +4 -0
- package/dist/_virtual/reflect.js.map +1 -0
- package/dist/_virtual/remove-trailing-slash.js +4 -0
- package/dist/_virtual/remove-trailing-slash.js.map +1 -0
- package/dist/_virtual/request-cookies.js +4 -0
- package/dist/_virtual/request-cookies.js.map +1 -0
- package/dist/_virtual/request-idle-callback.js +4 -0
- package/dist/_virtual/request-idle-callback.js.map +1 -0
- package/dist/_virtual/resolve-href.js +4 -0
- package/dist/_virtual/resolve-href.js.map +1 -0
- package/dist/_virtual/resolve-param-value.js +4 -0
- package/dist/_virtual/resolve-param-value.js.map +1 -0
- package/dist/_virtual/route-match-utils.js +4 -0
- package/dist/_virtual/route-match-utils.js.map +1 -0
- package/dist/_virtual/route-matcher.js +4 -0
- package/dist/_virtual/route-matcher.js.map +1 -0
- package/dist/_virtual/route-pattern-normalizer.js +4 -0
- package/dist/_virtual/route-pattern-normalizer.js.map +1 -0
- package/dist/_virtual/route-regex.js +4 -0
- package/dist/_virtual/route-regex.js.map +1 -0
- package/dist/_virtual/router-context.shared-runtime.js +4 -0
- package/dist/_virtual/router-context.shared-runtime.js.map +1 -0
- package/dist/_virtual/runtime-reacts.external.js +4 -0
- package/dist/_virtual/runtime-reacts.external.js.map +1 -0
- package/dist/_virtual/scheduler.js +4 -0
- package/dist/_virtual/scheduler.js.map +1 -0
- package/dist/_virtual/segment.js +4 -0
- package/dist/_virtual/segment.js.map +1 -0
- package/dist/_virtual/server-async-storage.js +4 -0
- package/dist/_virtual/server-async-storage.js.map +1 -0
- package/dist/_virtual/server-inserted-html.shared-runtime.js +4 -0
- package/dist/_virtual/server-inserted-html.shared-runtime.js.map +1 -0
- package/dist/_virtual/side-effect.js +4 -0
- package/dist/_virtual/side-effect.js.map +1 -0
- package/dist/_virtual/sorted-routes.js +4 -0
- package/dist/_virtual/sorted-routes.js.map +1 -0
- package/dist/_virtual/staged-rendering.js +4 -0
- package/dist/_virtual/staged-rendering.js.map +1 -0
- package/dist/_virtual/static-generation-bailout.js +4 -0
- package/dist/_virtual/static-generation-bailout.js.map +1 -0
- package/dist/_virtual/unauthorized.js +4 -0
- package/dist/_virtual/unauthorized.js.map +1 -0
- package/dist/_virtual/unrecognized-action-error.js +4 -0
- package/dist/_virtual/unrecognized-action-error.js.map +1 -0
- package/dist/_virtual/unstable-rethrow.js +4 -0
- package/dist/_virtual/unstable-rethrow.js.map +1 -0
- package/dist/_virtual/use-intersection.js +4 -0
- package/dist/_virtual/use-intersection.js.map +1 -0
- package/dist/_virtual/use-merged-ref.js +4 -0
- package/dist/_virtual/use-merged-ref.js.map +1 -0
- package/dist/_virtual/utils.js +4 -0
- package/dist/_virtual/utils.js.map +1 -0
- package/dist/_virtual/warn-once.js +4 -0
- package/dist/_virtual/warn-once.js.map +1 -0
- package/dist/_virtual/work-async-storage-instance.js +4 -0
- package/dist/_virtual/work-async-storage-instance.js.map +1 -0
- package/dist/_virtual/work-async-storage.external.js +4 -0
- package/dist/_virtual/work-async-storage.external.js.map +1 -0
- package/dist/_virtual/work-unit-async-storage-instance.js +4 -0
- package/dist/_virtual/work-unit-async-storage-instance.js.map +1 -0
- package/dist/_virtual/work-unit-async-storage.external.js +4 -0
- package/dist/_virtual/work-unit-async-storage.external.js.map +1 -0
- package/dist/components/ui/app-header.js +72 -0
- package/dist/components/ui/app-header.js.map +1 -0
- package/dist/components/ui/dropdown-menu.js +61 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/page-header.js +17 -0
- package/dist/components/ui/page-header.js.map +1 -0
- package/dist/components/ui/status-notice.d.ts +14 -0
- package/dist/components/ui/status-notice.js +27 -0
- package/dist/components/ui/status-notice.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +17 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js.map +1 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +49 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js.map +1 -0
- package/dist/node_modules/next/dist/client/add-base-path.js +39 -0
- package/dist/node_modules/next/dist/client/add-base-path.js.map +1 -0
- package/dist/node_modules/next/dist/client/add-locale.js +40 -0
- package/dist/node_modules/next/dist/client/add-locale.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/forbidden.js +62 -0
- package/dist/node_modules/next/dist/client/components/forbidden.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/hooks-server-context.js +51 -0
- package/dist/node_modules/next/dist/client/components/hooks-server-context.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +78 -0
- package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/instant-samples.js +107 -0
- package/dist/node_modules/next/dist/client/components/instant-samples.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/is-next-router-error.js +38 -0
- package/dist/node_modules/next/dist/client/components/is-next-router-error.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/navigation-dynamic-rendering.js +41 -0
- package/dist/node_modules/next/dist/client/components/navigation-dynamic-rendering.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/navigation.js +250 -0
- package/dist/node_modules/next/dist/client/components/navigation.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/navigation.react-server.js +83 -0
- package/dist/node_modules/next/dist/client/components/navigation.react-server.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/not-found.js +56 -0
- package/dist/node_modules/next/dist/client/components/not-found.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js +61 -0
- package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/redirect-error.js +53 -0
- package/dist/node_modules/next/dist/client/components/redirect-error.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/redirect-status-code.js +37 -0
- package/dist/node_modules/next/dist/client/components/redirect-status-code.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/redirect.js +99 -0
- package/dist/node_modules/next/dist/client/components/redirect.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/server-async-storage.js +48 -0
- package/dist/node_modules/next/dist/client/components/server-async-storage.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +51 -0
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/unauthorized.js +63 -0
- package/dist/node_modules/next/dist/client/components/unauthorized.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js +48 -0
- package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js.map +1 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.js +51 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.js.map +1 -0
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +37 -0
- package/dist/node_modules/next/dist/client/detect-domain-locale.js.map +1 -0
- package/dist/node_modules/next/dist/client/get-domain-locale.js +52 -0
- package/dist/node_modules/next/dist/client/get-domain-locale.js.map +1 -0
- package/dist/node_modules/next/dist/client/has-base-path.js +37 -0
- package/dist/node_modules/next/dist/client/has-base-path.js.map +1 -0
- package/dist/node_modules/next/dist/client/image-component.js +351 -0
- package/dist/node_modules/next/dist/client/image-component.js.map +1 -0
- package/dist/node_modules/next/dist/client/link.js +471 -0
- package/dist/node_modules/next/dist/client/link.js.map +1 -0
- package/dist/node_modules/next/dist/client/normalize-locale-path.js +41 -0
- package/dist/node_modules/next/dist/client/normalize-locale-path.js.map +1 -0
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +52 -0
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js.map +1 -0
- package/dist/node_modules/next/dist/client/request-idle-callback.js +53 -0
- package/dist/node_modules/next/dist/client/request-idle-callback.js.map +1 -0
- package/dist/node_modules/next/dist/client/resolve-href.js +129 -0
- package/dist/node_modules/next/dist/client/resolve-href.js.map +1 -0
- package/dist/node_modules/next/dist/client/use-intersection.js +129 -0
- package/dist/node_modules/next/dist/client/use-intersection.js.map +1 -0
- package/dist/node_modules/next/dist/client/use-merged-ref.js +83 -0
- package/dist/node_modules/next/dist/client/use-merged-ref.js.map +1 -0
- package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +341 -0
- package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +1 -0
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +13 -0
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js.map +1 -0
- package/dist/node_modules/next/dist/compiled/picomatch/index.js +13 -0
- package/dist/node_modules/next/dist/compiled/picomatch/index.js.map +1 -0
- package/dist/node_modules/next/dist/lib/constants.js +370 -0
- package/dist/node_modules/next/dist/lib/constants.js.map +1 -0
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +43 -0
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.js.map +1 -0
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +112 -0
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js.map +1 -0
- package/dist/node_modules/next/dist/lib/scheduler.js +71 -0
- package/dist/node_modules/next/dist/lib/scheduler.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js +28 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js +27 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +84 -0
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/blocking-route-messages.js +177 -0
- package/dist/node_modules/next/dist/server/app-render/blocking-route-messages.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +1168 -0
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +39 -0
- package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +47 -0
- package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +427 -0
- package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +42 -0
- package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/staged-rendering.js +331 -0
- package/dist/node_modules/next/dist/server/app-render/staged-rendering.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +28 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +27 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +28 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js.map +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +211 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js.map +1 -0
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +269 -0
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js.map +1 -0
- package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js +29 -0
- package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js.map +1 -0
- package/dist/node_modules/next/dist/server/runtime-reacts.external.js +53 -0
- package/dist/node_modules/next/dist/server/runtime-reacts.external.js.map +1 -0
- package/dist/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +303 -0
- package/dist/node_modules/next/dist/server/web/spec-extension/adapters/headers.js.map +1 -0
- package/dist/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +43 -0
- package/dist/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js.map +1 -0
- package/dist/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +233 -0
- package/dist/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js.map +1 -0
- package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js +38 -0
- package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js +39 -0
- package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +58 -0
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/deployment-id.js +70 -0
- package/dist/node_modules/next/dist/shared/lib/deployment-id.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +34 -0
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/get-img-props.js +614 -0
- package/dist/node_modules/next/dist/shared/lib/get-img-props.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/head.js +178 -0
- package/dist/node_modules/next/dist/shared/lib/head.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +67 -0
- package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +38 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +67 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js +37 -0
- package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +35 -0
- package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/image-config.js +86 -0
- package/dist/node_modules/next/dist/shared/lib/image-config.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/image-external.js +60 -0
- package/dist/node_modules/next/dist/shared/lib/image-external.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/image-loader.js +135 -0
- package/dist/node_modules/next/dist/shared/lib/image-loader.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/instant-messages.js +52 -0
- package/dist/node_modules/next/dist/shared/lib/instant-messages.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +36 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +45 -0
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js +56 -0
- package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js +73 -0
- package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js +39 -0
- package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/routes/app.js +167 -0
- package/dist/node_modules/next/dist/shared/lib/router/routes/app.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +43 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +34 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +72 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +100 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +184 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +91 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +40 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +116 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +68 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +40 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +41 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +34 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +44 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +48 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +58 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +34 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +87 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +37 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +129 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +124 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +60 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +269 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +253 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/segment.js +104 -0
- package/dist/node_modules/next/dist/shared/lib/segment.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +46 -0
- package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/side-effect.js +77 -0
- package/dist/node_modules/next/dist/shared/lib/side-effect.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +35 -0
- package/dist/node_modules/next/dist/shared/lib/utils/error-once.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/utils/reflect-utils.js +72 -0
- package/dist/node_modules/next/dist/shared/lib/utils/reflect-utils.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +35 -0
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js.map +1 -0
- package/dist/node_modules/next/dist/shared/lib/utils.js +210 -0
- package/dist/node_modules/next/dist/shared/lib/utils.js.map +1 -0
- package/dist/node_modules/next/image.js +14 -0
- package/dist/node_modules/next/image.js.map +1 -0
- package/dist/node_modules/next/link.js +14 -0
- package/dist/node_modules/next/link.js.map +1 -0
- package/dist/node_modules/next/navigation.js +14 -0
- package/dist/node_modules/next/navigation.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import { __exports as instantSamples } from '../../../../../../_virtual/instant-samples2.js';
|
|
2
|
+
import { __require as requireCookies } from '../../web/spec-extension/cookies.js';
|
|
3
|
+
import { __require as requireRequestCookies } from '../../web/spec-extension/adapters/request-cookies.js';
|
|
4
|
+
import { __require as requireHeaders } from '../../web/spec-extension/adapters/headers.js';
|
|
5
|
+
import { __require as requireGetSegmentParam } from '../../../shared/lib/router/utils/get-segment-param.js';
|
|
6
|
+
import { __require as requireParseRelativeUrl } from '../../../shared/lib/router/utils/parse-relative-url.js';
|
|
7
|
+
import { __require as requireInvariantError } from '../../../shared/lib/invariant-error.js';
|
|
8
|
+
import { __require as requireInstantValidationError } from './instant-validation-error.js';
|
|
9
|
+
import { __require as requireWorkUnitAsyncStorage_external } from '../work-unit-async-storage.external.js';
|
|
10
|
+
import { __require as requireReflectUtils } from '../../../shared/lib/utils/reflect-utils.js';
|
|
11
|
+
|
|
12
|
+
var hasRequiredInstantSamples;
|
|
13
|
+
|
|
14
|
+
function requireInstantSamples () {
|
|
15
|
+
if (hasRequiredInstantSamples) return instantSamples;
|
|
16
|
+
hasRequiredInstantSamples = 1;
|
|
17
|
+
(function (exports$1) {
|
|
18
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
19
|
+
value: true
|
|
20
|
+
});
|
|
21
|
+
function _export(target, all) {
|
|
22
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: all[name]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
_export(exports$1, {
|
|
28
|
+
assertRootParamInSamples: function() {
|
|
29
|
+
return assertRootParamInSamples;
|
|
30
|
+
},
|
|
31
|
+
createCookiesFromSample: function() {
|
|
32
|
+
return createCookiesFromSample;
|
|
33
|
+
},
|
|
34
|
+
createDraftModeForValidation: function() {
|
|
35
|
+
return createDraftModeForValidation;
|
|
36
|
+
},
|
|
37
|
+
createExhaustiveParamsProxy: function() {
|
|
38
|
+
return createExhaustiveParamsProxy;
|
|
39
|
+
},
|
|
40
|
+
createExhaustiveSearchParamsProxy: function() {
|
|
41
|
+
return createExhaustiveSearchParamsProxy;
|
|
42
|
+
},
|
|
43
|
+
createExhaustiveURLSearchParamsProxy: function() {
|
|
44
|
+
return createExhaustiveURLSearchParamsProxy;
|
|
45
|
+
},
|
|
46
|
+
createHeadersFromSample: function() {
|
|
47
|
+
return createHeadersFromSample;
|
|
48
|
+
},
|
|
49
|
+
createRelativeURLFromSamples: function() {
|
|
50
|
+
return createRelativeURLFromSamples;
|
|
51
|
+
},
|
|
52
|
+
createValidationSampleTracking: function() {
|
|
53
|
+
return createValidationSampleTracking;
|
|
54
|
+
},
|
|
55
|
+
trackMissingSampleError: function() {
|
|
56
|
+
return trackMissingSampleError;
|
|
57
|
+
},
|
|
58
|
+
trackMissingSampleErrorAndThrow: function() {
|
|
59
|
+
return trackMissingSampleErrorAndThrow;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
const _cookies = requireCookies();
|
|
63
|
+
const _requestcookies = requireRequestCookies();
|
|
64
|
+
const _headers = requireHeaders();
|
|
65
|
+
const _getsegmentparam = requireGetSegmentParam();
|
|
66
|
+
const _parserelativeurl = requireParseRelativeUrl();
|
|
67
|
+
const _invarianterror = requireInvariantError();
|
|
68
|
+
const _instantvalidationerror = requireInstantValidationError();
|
|
69
|
+
const _workunitasyncstorageexternal = requireWorkUnitAsyncStorage_external();
|
|
70
|
+
const _reflectutils = requireReflectUtils();
|
|
71
|
+
function createValidationSampleTracking() {
|
|
72
|
+
return {
|
|
73
|
+
missingSampleErrors: []
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function getExpectedSampleTracking() {
|
|
77
|
+
let validationSampleTracking = null;
|
|
78
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
79
|
+
if (workUnitStore) {
|
|
80
|
+
switch(workUnitStore.type){
|
|
81
|
+
case 'request':
|
|
82
|
+
case 'validation-client':
|
|
83
|
+
// TODO(instant-validation-build): do we need any special handling for caches?
|
|
84
|
+
validationSampleTracking = workUnitStore.validationSampleTracking ?? null;
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
if (!validationSampleTracking) {
|
|
89
|
+
throw Object.defineProperty(new _invarianterror.InvariantError('Expected to have a workUnitStore that provides validationSampleTracking'), "__NEXT_ERROR_CODE", {
|
|
90
|
+
value: "E1110",
|
|
91
|
+
enumerable: false,
|
|
92
|
+
configurable: true
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
return validationSampleTracking;
|
|
96
|
+
}
|
|
97
|
+
function trackMissingSampleError(error) {
|
|
98
|
+
const validationSampleTracking = getExpectedSampleTracking();
|
|
99
|
+
validationSampleTracking.missingSampleErrors.push(error);
|
|
100
|
+
}
|
|
101
|
+
function trackMissingSampleErrorAndThrow(error) {
|
|
102
|
+
// TODO(instant-validation-build): this should abort the render
|
|
103
|
+
trackMissingSampleError(error);
|
|
104
|
+
throw error;
|
|
105
|
+
}
|
|
106
|
+
function createCookiesFromSample(sampleCookies, route) {
|
|
107
|
+
const declaredNames = new Set();
|
|
108
|
+
const cookies = new _cookies.RequestCookies(new Headers());
|
|
109
|
+
if (sampleCookies) {
|
|
110
|
+
for (const cookie of sampleCookies){
|
|
111
|
+
declaredNames.add(cookie.name);
|
|
112
|
+
if (cookie.value !== null) {
|
|
113
|
+
cookies.set(cookie.name, cookie.value);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const sealed = _requestcookies.RequestCookiesAdapter.seal(cookies);
|
|
118
|
+
return new Proxy(sealed, {
|
|
119
|
+
get (target, prop, receiver) {
|
|
120
|
+
if (prop === 'has') {
|
|
121
|
+
const originalMethod = Reflect.get(target, prop, receiver);
|
|
122
|
+
const wrappedMethod = function(name) {
|
|
123
|
+
if (!declaredNames.has(name)) {
|
|
124
|
+
trackMissingSampleErrorAndThrow(createMissingCookieSampleError(route, name));
|
|
125
|
+
}
|
|
126
|
+
return originalMethod.call(target, name);
|
|
127
|
+
};
|
|
128
|
+
return wrappedMethod;
|
|
129
|
+
}
|
|
130
|
+
if (prop === 'get') {
|
|
131
|
+
const originalMethod = Reflect.get(target, prop, receiver);
|
|
132
|
+
const wrappedMethod = function(nameOrCookie) {
|
|
133
|
+
let name;
|
|
134
|
+
if (typeof nameOrCookie === 'string') {
|
|
135
|
+
name = nameOrCookie;
|
|
136
|
+
} else if (nameOrCookie && typeof nameOrCookie === 'object' && typeof nameOrCookie.name === 'string') {
|
|
137
|
+
name = nameOrCookie.name;
|
|
138
|
+
} else {
|
|
139
|
+
// This is an invalid input. Pass it through to the original method so it can error.
|
|
140
|
+
return originalMethod.call(target, nameOrCookie);
|
|
141
|
+
}
|
|
142
|
+
if (!declaredNames.has(name)) {
|
|
143
|
+
trackMissingSampleErrorAndThrow(createMissingCookieSampleError(route, name));
|
|
144
|
+
}
|
|
145
|
+
return originalMethod.call(target, name);
|
|
146
|
+
};
|
|
147
|
+
return wrappedMethod;
|
|
148
|
+
}
|
|
149
|
+
// TODO(instant-validation-build): what should getAll do?
|
|
150
|
+
// Maybe we should only allow it if there's an array (possibly empty?)
|
|
151
|
+
return Reflect.get(target, prop, receiver);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
function createMissingCookieSampleError(route, name) {
|
|
156
|
+
return Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route "${route}" accessed cookie "${name}" which is not defined in the \`unstable_samples\` ` + `of \`instant\`. Add it to the sample's \`cookies\` array, ` + `or \`{ name: "${name}", value: null }\` if it should be absent.`), "__NEXT_ERROR_CODE", {
|
|
157
|
+
value: "E1346",
|
|
158
|
+
enumerable: false,
|
|
159
|
+
configurable: true
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
function createHeadersFromSample(rawSampleHeaders, sampleCookies, route) {
|
|
163
|
+
// If we have cookie samples, add a `cookie` header to match.
|
|
164
|
+
// Accessing it will be implicitly allowed by the proxy --
|
|
165
|
+
// if the user defined some cookies, accessing the "cookie" header is also fine.
|
|
166
|
+
const sampleHeaders = rawSampleHeaders ? [
|
|
167
|
+
...rawSampleHeaders
|
|
168
|
+
] : [];
|
|
169
|
+
if (sampleHeaders.find(([name])=>name.toLowerCase() === 'cookie')) {
|
|
170
|
+
throw Object.defineProperty(new _instantvalidationerror.InstantValidationError('Invalid sample: Defining cookies via a "cookie" header is not supported. Use `cookies: [{ name: ..., value: ... }]` instead.'), "__NEXT_ERROR_CODE", {
|
|
171
|
+
value: "E1111",
|
|
172
|
+
enumerable: false,
|
|
173
|
+
configurable: true
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
if (sampleCookies) {
|
|
177
|
+
const cookieHeaderValue = sampleCookies.toString();
|
|
178
|
+
sampleHeaders.push([
|
|
179
|
+
'cookie',
|
|
180
|
+
// if the `cookies` samples were empty, or they were all `null`, then we have no cookies,
|
|
181
|
+
// and the header isn't present, but should remains readable, so we set it to null.
|
|
182
|
+
cookieHeaderValue !== '' ? cookieHeaderValue : null
|
|
183
|
+
]);
|
|
184
|
+
}
|
|
185
|
+
const declaredNames = new Set();
|
|
186
|
+
const headersInit = {};
|
|
187
|
+
for (const [name, value] of sampleHeaders){
|
|
188
|
+
declaredNames.add(name.toLowerCase());
|
|
189
|
+
if (value !== null) {
|
|
190
|
+
headersInit[name.toLowerCase()] = value;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
const sealed = _headers.HeadersAdapter.seal(_headers.HeadersAdapter.from(headersInit));
|
|
194
|
+
return new Proxy(sealed, {
|
|
195
|
+
get (target, prop, receiver) {
|
|
196
|
+
if (prop === 'get' || prop === 'has') {
|
|
197
|
+
const originalMethod = Reflect.get(target, prop, receiver);
|
|
198
|
+
const patchedMethod = function(rawName) {
|
|
199
|
+
const name = rawName.toLowerCase();
|
|
200
|
+
if (!declaredNames.has(name)) {
|
|
201
|
+
trackMissingSampleErrorAndThrow(Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route "${route}" accessed header "${name}" which is not defined in the \`unstable_samples\` ` + `of \`instant\`. Add it to the sample's \`headers\` array, ` + `or \`["${name}", null]\` if it should be absent.`), "__NEXT_ERROR_CODE", {
|
|
202
|
+
value: "E1348",
|
|
203
|
+
enumerable: false,
|
|
204
|
+
configurable: true
|
|
205
|
+
}));
|
|
206
|
+
}
|
|
207
|
+
// typescript can't reconcile a union of functions with a union of return types,
|
|
208
|
+
// so we have to cast the original return type away
|
|
209
|
+
return originalMethod.call(target, name);
|
|
210
|
+
};
|
|
211
|
+
return patchedMethod;
|
|
212
|
+
}
|
|
213
|
+
return Reflect.get(target, prop, receiver);
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
function createDraftModeForValidation() {
|
|
218
|
+
// Create a minimal DraftModeProvider-compatible object
|
|
219
|
+
// that always reports draft mode as disabled.
|
|
220
|
+
//
|
|
221
|
+
// private properties that can't be set from outside the class.
|
|
222
|
+
return {
|
|
223
|
+
get isEnabled () {
|
|
224
|
+
return false;
|
|
225
|
+
},
|
|
226
|
+
enable () {
|
|
227
|
+
throw Object.defineProperty(new Error('Draft mode cannot be enabled during build-time instant validation.'), "__NEXT_ERROR_CODE", {
|
|
228
|
+
value: "E1092",
|
|
229
|
+
enumerable: false,
|
|
230
|
+
configurable: true
|
|
231
|
+
});
|
|
232
|
+
},
|
|
233
|
+
disable () {
|
|
234
|
+
throw Object.defineProperty(new Error('Draft mode cannot be disabled during build-time instant validation.'), "__NEXT_ERROR_CODE", {
|
|
235
|
+
value: "E1094",
|
|
236
|
+
enumerable: false,
|
|
237
|
+
configurable: true
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
function createExhaustiveParamsProxy(underlyingParams, declaredParamNames, route) {
|
|
243
|
+
return new Proxy(underlyingParams, {
|
|
244
|
+
get (target, prop, receiver) {
|
|
245
|
+
if (typeof prop === 'string' && !_reflectutils.wellKnownProperties.has(prop) && // Only error when accessing a param that is part of the route but wasn't provided.
|
|
246
|
+
// accessing properties that aren't expected to be a valid param value is fine.
|
|
247
|
+
prop in underlyingParams && !declaredParamNames.has(prop)) {
|
|
248
|
+
trackMissingSampleErrorAndThrow(Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route "${route}" accessed param "${prop}" which is not defined in the \`unstable_samples\` ` + `of \`instant\`. Add it to the sample's \`params\` object.`), "__NEXT_ERROR_CODE", {
|
|
249
|
+
value: "E1349",
|
|
250
|
+
enumerable: false,
|
|
251
|
+
configurable: true
|
|
252
|
+
}));
|
|
253
|
+
}
|
|
254
|
+
return Reflect.get(target, prop, receiver);
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
function createExhaustiveSearchParamsProxy(searchParams, declaredSearchParamNames, route) {
|
|
259
|
+
return new Proxy(searchParams, {
|
|
260
|
+
get (target, prop, receiver) {
|
|
261
|
+
if (typeof prop === 'string' && !_reflectutils.wellKnownProperties.has(prop) && !declaredSearchParamNames.has(prop)) {
|
|
262
|
+
trackMissingSampleErrorAndThrow(createMissingSearchParamSampleError(route, prop));
|
|
263
|
+
}
|
|
264
|
+
return Reflect.get(target, prop, receiver);
|
|
265
|
+
},
|
|
266
|
+
has (target, prop) {
|
|
267
|
+
if (typeof prop === 'string' && !_reflectutils.wellKnownProperties.has(prop) && !declaredSearchParamNames.has(prop)) {
|
|
268
|
+
trackMissingSampleErrorAndThrow(createMissingSearchParamSampleError(route, prop));
|
|
269
|
+
}
|
|
270
|
+
return Reflect.has(target, prop);
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
function createExhaustiveURLSearchParamsProxy(searchParams, declaredSearchParamNames, route) {
|
|
275
|
+
return new Proxy(searchParams, {
|
|
276
|
+
get (target, prop, receiver) {
|
|
277
|
+
// Intercept method calls that access specific param names
|
|
278
|
+
if (prop === 'get' || prop === 'getAll' || prop === 'has') {
|
|
279
|
+
const originalMathod = Reflect.get(target, prop, receiver);
|
|
280
|
+
return (name)=>{
|
|
281
|
+
if (typeof name === 'string' && !declaredSearchParamNames.has(name)) {
|
|
282
|
+
trackMissingSampleErrorAndThrow(createMissingSearchParamSampleError(route, name));
|
|
283
|
+
}
|
|
284
|
+
return originalMathod.call(target, name);
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
const value = Reflect.get(target, prop, receiver);
|
|
288
|
+
// Prevent `TypeError: Value of "this" must be of type URLSearchParams` for methods
|
|
289
|
+
if (typeof value === 'function' && !Object.hasOwn(target, prop)) {
|
|
290
|
+
return value.bind(target);
|
|
291
|
+
}
|
|
292
|
+
return value;
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
function createMissingSearchParamSampleError(route, name) {
|
|
297
|
+
return Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route "${route}" accessed searchParam "${name}" which is not defined in the \`unstable_samples\` ` + `of \`instant\`. Add it to the sample's \`searchParams\` object, ` + `or \`{ "${name}": null }\` if it should be absent.`), "__NEXT_ERROR_CODE", {
|
|
298
|
+
value: "E1347",
|
|
299
|
+
enumerable: false,
|
|
300
|
+
configurable: true
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
function createRelativeURLFromSamples(route, sampleParams, sampleSearchParams) {
|
|
304
|
+
// Build searchParams query object and URL search string from sample
|
|
305
|
+
const pathname = createPathnameFromRouteAndSampleParams(route, sampleParams ?? {});
|
|
306
|
+
let search = '';
|
|
307
|
+
if (sampleSearchParams) {
|
|
308
|
+
const qs = createURLSearchParamsFromSample(sampleSearchParams).toString();
|
|
309
|
+
if (qs) {
|
|
310
|
+
search = '?' + qs;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
return (0, _parserelativeurl.parseRelativeUrl)(pathname + search, undefined, true);
|
|
314
|
+
}
|
|
315
|
+
function createURLSearchParamsFromSample(sampleSearchParams) {
|
|
316
|
+
const result = new URLSearchParams();
|
|
317
|
+
if (sampleSearchParams) {
|
|
318
|
+
for (const [key, value] of Object.entries(sampleSearchParams)){
|
|
319
|
+
if (value === null || value === undefined) continue;
|
|
320
|
+
if (Array.isArray(value)) {
|
|
321
|
+
for (const v of value){
|
|
322
|
+
result.append(key, v);
|
|
323
|
+
}
|
|
324
|
+
} else {
|
|
325
|
+
result.set(key, value);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return result;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Substitute sample params into `workStore.route` to create a plausible pathname.
|
|
333
|
+
* TODO(instant-validation-build): this logic is somewhat hacky and likely incomplete,
|
|
334
|
+
* but it should be good enough for some initial testing.
|
|
335
|
+
*/ function createPathnameFromRouteAndSampleParams(route, params) {
|
|
336
|
+
let interpolatedSegments = [];
|
|
337
|
+
const rawSegments = route.split('/');
|
|
338
|
+
for (const rawSegment of rawSegments){
|
|
339
|
+
const param = (0, _getsegmentparam.getSegmentParam)(rawSegment);
|
|
340
|
+
if (param) {
|
|
341
|
+
switch(param.paramType){
|
|
342
|
+
case 'catchall':
|
|
343
|
+
case 'optional-catchall':
|
|
344
|
+
{
|
|
345
|
+
let paramValue = params[param.paramName];
|
|
346
|
+
if (paramValue === undefined) {
|
|
347
|
+
// The value for the param was not provided. `usePathname` will detect this and throw
|
|
348
|
+
// before this can surface to userspace. Use `[...NAME]` as a placeholder for the param value
|
|
349
|
+
// in case it pops up somewhere unexpectedly.
|
|
350
|
+
paramValue = [
|
|
351
|
+
rawSegment
|
|
352
|
+
];
|
|
353
|
+
} else if (!Array.isArray(paramValue)) {
|
|
354
|
+
// NOTE: this happens outside of render, so we don't need `trackMissingSampleErrorAndThrow`
|
|
355
|
+
throw Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Expected sample param value for segment '${rawSegment}' to be an array of strings, got ${typeof paramValue}`), "__NEXT_ERROR_CODE", {
|
|
356
|
+
value: "E1104",
|
|
357
|
+
enumerable: false,
|
|
358
|
+
configurable: true
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
interpolatedSegments.push(...paramValue.map((v)=>encodeURIComponent(v)));
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
case 'dynamic':
|
|
365
|
+
{
|
|
366
|
+
let paramValue = params[param.paramName];
|
|
367
|
+
if (paramValue === undefined) {
|
|
368
|
+
// The value for the param was not provided. `usePathname` will detect this and throw
|
|
369
|
+
// before this can surface to userspace. Use `[NAME]` as a placeholder for the param value
|
|
370
|
+
// in case it pops up somewhere unexpectedly.
|
|
371
|
+
paramValue = rawSegment;
|
|
372
|
+
} else if (typeof paramValue !== 'string') {
|
|
373
|
+
// NOTE: this happens outside of render, so we don't need `trackMissingSampleErrorAndThrow`
|
|
374
|
+
throw Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Expected sample param value for segment '${rawSegment}' to be a string, got ${typeof paramValue}`), "__NEXT_ERROR_CODE", {
|
|
375
|
+
value: "E1108",
|
|
376
|
+
enumerable: false,
|
|
377
|
+
configurable: true
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
interpolatedSegments.push(encodeURIComponent(paramValue));
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
case 'catchall-intercepted-(..)(..)':
|
|
384
|
+
case 'catchall-intercepted-(.)':
|
|
385
|
+
case 'catchall-intercepted-(..)':
|
|
386
|
+
case 'catchall-intercepted-(...)':
|
|
387
|
+
case 'dynamic-intercepted-(..)(..)':
|
|
388
|
+
case 'dynamic-intercepted-(.)':
|
|
389
|
+
case 'dynamic-intercepted-(..)':
|
|
390
|
+
case 'dynamic-intercepted-(...)':
|
|
391
|
+
{
|
|
392
|
+
// TODO(instant-validation-build): i don't know how these are supposed to work, or if we can even get them here
|
|
393
|
+
throw Object.defineProperty(new _invarianterror.InvariantError('Not implemented: Validation of interception routes'), "__NEXT_ERROR_CODE", {
|
|
394
|
+
value: "E1106",
|
|
395
|
+
enumerable: false,
|
|
396
|
+
configurable: true
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
default:
|
|
400
|
+
{
|
|
401
|
+
param.paramType;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
} else {
|
|
405
|
+
interpolatedSegments.push(rawSegment);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
return interpolatedSegments.join('/');
|
|
409
|
+
}
|
|
410
|
+
function assertRootParamInSamples(workStore, sampleParams, paramName) {
|
|
411
|
+
if (sampleParams && paramName in sampleParams) ; else {
|
|
412
|
+
const route = workStore.route;
|
|
413
|
+
trackMissingSampleErrorAndThrow(Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route "${route}" accessed root param "${paramName}" which is not defined in the \`unstable_samples\` ` + `of \`instant\`. Add it to the sample's \`params\` object.`), "__NEXT_ERROR_CODE", {
|
|
414
|
+
value: "E1192",
|
|
415
|
+
enumerable: false,
|
|
416
|
+
configurable: true
|
|
417
|
+
}));
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
} (instantSamples));
|
|
423
|
+
return instantSamples;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export { requireInstantSamples as __require };
|
|
427
|
+
//# sourceMappingURL=instant-samples.js.map
|
package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instant-samples.js","sources":["../../../../../../../node_modules/next/dist/server/app-render/instant-validation/instant-samples.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n assertRootParamInSamples: null,\n createCookiesFromSample: null,\n createDraftModeForValidation: null,\n createExhaustiveParamsProxy: null,\n createExhaustiveSearchParamsProxy: null,\n createExhaustiveURLSearchParamsProxy: null,\n createHeadersFromSample: null,\n createRelativeURLFromSamples: null,\n createValidationSampleTracking: null,\n trackMissingSampleError: null,\n trackMissingSampleErrorAndThrow: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n assertRootParamInSamples: function() {\n return assertRootParamInSamples;\n },\n createCookiesFromSample: function() {\n return createCookiesFromSample;\n },\n createDraftModeForValidation: function() {\n return createDraftModeForValidation;\n },\n createExhaustiveParamsProxy: function() {\n return createExhaustiveParamsProxy;\n },\n createExhaustiveSearchParamsProxy: function() {\n return createExhaustiveSearchParamsProxy;\n },\n createExhaustiveURLSearchParamsProxy: function() {\n return createExhaustiveURLSearchParamsProxy;\n },\n createHeadersFromSample: function() {\n return createHeadersFromSample;\n },\n createRelativeURLFromSamples: function() {\n return createRelativeURLFromSamples;\n },\n createValidationSampleTracking: function() {\n return createValidationSampleTracking;\n },\n trackMissingSampleError: function() {\n return trackMissingSampleError;\n },\n trackMissingSampleErrorAndThrow: function() {\n return trackMissingSampleErrorAndThrow;\n }\n});\nconst _cookies = require(\"../../web/spec-extension/cookies\");\nconst _requestcookies = require(\"../../web/spec-extension/adapters/request-cookies\");\nconst _headers = require(\"../../web/spec-extension/adapters/headers\");\nconst _getsegmentparam = require(\"../../../shared/lib/router/utils/get-segment-param\");\nconst _parserelativeurl = require(\"../../../shared/lib/router/utils/parse-relative-url\");\nconst _invarianterror = require(\"../../../shared/lib/invariant-error\");\nconst _instantvalidationerror = require(\"./instant-validation-error\");\nconst _workunitasyncstorageexternal = require(\"../work-unit-async-storage.external\");\nconst _reflectutils = require(\"../../../shared/lib/utils/reflect-utils\");\nfunction createValidationSampleTracking() {\n return {\n missingSampleErrors: []\n };\n}\nfunction getExpectedSampleTracking() {\n let validationSampleTracking = null;\n const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();\n if (workUnitStore) {\n switch(workUnitStore.type){\n case 'request':\n case 'validation-client':\n // TODO(instant-validation-build): do we need any special handling for caches?\n validationSampleTracking = workUnitStore.validationSampleTracking ?? null;\n break;\n case 'cache':\n case 'private-cache':\n case 'unstable-cache':\n case 'prerender-legacy':\n case 'prerender-ppr':\n case 'prerender-client':\n case 'prerender':\n case 'prerender-runtime':\n case 'generate-static-params':\n break;\n default:\n workUnitStore;\n }\n }\n if (!validationSampleTracking) {\n throw Object.defineProperty(new _invarianterror.InvariantError('Expected to have a workUnitStore that provides validationSampleTracking'), \"__NEXT_ERROR_CODE\", {\n value: \"E1110\",\n enumerable: false,\n configurable: true\n });\n }\n return validationSampleTracking;\n}\nfunction trackMissingSampleError(error) {\n const validationSampleTracking = getExpectedSampleTracking();\n validationSampleTracking.missingSampleErrors.push(error);\n}\nfunction trackMissingSampleErrorAndThrow(error) {\n // TODO(instant-validation-build): this should abort the render\n trackMissingSampleError(error);\n throw error;\n}\nfunction createCookiesFromSample(sampleCookies, route) {\n const declaredNames = new Set();\n const cookies = new _cookies.RequestCookies(new Headers());\n if (sampleCookies) {\n for (const cookie of sampleCookies){\n declaredNames.add(cookie.name);\n if (cookie.value !== null) {\n cookies.set(cookie.name, cookie.value);\n }\n }\n }\n const sealed = _requestcookies.RequestCookiesAdapter.seal(cookies);\n return new Proxy(sealed, {\n get (target, prop, receiver) {\n if (prop === 'has') {\n const originalMethod = Reflect.get(target, prop, receiver);\n const wrappedMethod = function(name) {\n if (!declaredNames.has(name)) {\n trackMissingSampleErrorAndThrow(createMissingCookieSampleError(route, name));\n }\n return originalMethod.call(target, name);\n };\n return wrappedMethod;\n }\n if (prop === 'get') {\n const originalMethod = Reflect.get(target, prop, receiver);\n const wrappedMethod = function(nameOrCookie) {\n let name;\n if (typeof nameOrCookie === 'string') {\n name = nameOrCookie;\n } else if (nameOrCookie && typeof nameOrCookie === 'object' && typeof nameOrCookie.name === 'string') {\n name = nameOrCookie.name;\n } else {\n // This is an invalid input. Pass it through to the original method so it can error.\n return originalMethod.call(target, nameOrCookie);\n }\n if (!declaredNames.has(name)) {\n trackMissingSampleErrorAndThrow(createMissingCookieSampleError(route, name));\n }\n return originalMethod.call(target, name);\n };\n return wrappedMethod;\n }\n // TODO(instant-validation-build): what should getAll do?\n // Maybe we should only allow it if there's an array (possibly empty?)\n return Reflect.get(target, prop, receiver);\n }\n });\n}\nfunction createMissingCookieSampleError(route, name) {\n return Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route \"${route}\" accessed cookie \"${name}\" which is not defined in the \\`unstable_samples\\` ` + `of \\`instant\\`. Add it to the sample's \\`cookies\\` array, ` + `or \\`{ name: \"${name}\", value: null }\\` if it should be absent.`), \"__NEXT_ERROR_CODE\", {\n value: \"E1346\",\n enumerable: false,\n configurable: true\n });\n}\nfunction createHeadersFromSample(rawSampleHeaders, sampleCookies, route) {\n // If we have cookie samples, add a `cookie` header to match.\n // Accessing it will be implicitly allowed by the proxy --\n // if the user defined some cookies, accessing the \"cookie\" header is also fine.\n const sampleHeaders = rawSampleHeaders ? [\n ...rawSampleHeaders\n ] : [];\n if (sampleHeaders.find(([name])=>name.toLowerCase() === 'cookie')) {\n throw Object.defineProperty(new _instantvalidationerror.InstantValidationError('Invalid sample: Defining cookies via a \"cookie\" header is not supported. Use `cookies: [{ name: ..., value: ... }]` instead.'), \"__NEXT_ERROR_CODE\", {\n value: \"E1111\",\n enumerable: false,\n configurable: true\n });\n }\n if (sampleCookies) {\n const cookieHeaderValue = sampleCookies.toString();\n sampleHeaders.push([\n 'cookie',\n // if the `cookies` samples were empty, or they were all `null`, then we have no cookies,\n // and the header isn't present, but should remains readable, so we set it to null.\n cookieHeaderValue !== '' ? cookieHeaderValue : null\n ]);\n }\n const declaredNames = new Set();\n const headersInit = {};\n for (const [name, value] of sampleHeaders){\n declaredNames.add(name.toLowerCase());\n if (value !== null) {\n headersInit[name.toLowerCase()] = value;\n }\n }\n const sealed = _headers.HeadersAdapter.seal(_headers.HeadersAdapter.from(headersInit));\n return new Proxy(sealed, {\n get (target, prop, receiver) {\n if (prop === 'get' || prop === 'has') {\n const originalMethod = Reflect.get(target, prop, receiver);\n const patchedMethod = function(rawName) {\n const name = rawName.toLowerCase();\n if (!declaredNames.has(name)) {\n trackMissingSampleErrorAndThrow(Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route \"${route}\" accessed header \"${name}\" which is not defined in the \\`unstable_samples\\` ` + `of \\`instant\\`. Add it to the sample's \\`headers\\` array, ` + `or \\`[\"${name}\", null]\\` if it should be absent.`), \"__NEXT_ERROR_CODE\", {\n value: \"E1348\",\n enumerable: false,\n configurable: true\n }));\n }\n // typescript can't reconcile a union of functions with a union of return types,\n // so we have to cast the original return type away\n return originalMethod.call(target, name);\n };\n return patchedMethod;\n }\n return Reflect.get(target, prop, receiver);\n }\n });\n}\nfunction createDraftModeForValidation() {\n // Create a minimal DraftModeProvider-compatible object\n // that always reports draft mode as disabled.\n //\n // private properties that can't be set from outside the class.\n return {\n get isEnabled () {\n return false;\n },\n enable () {\n throw Object.defineProperty(new Error('Draft mode cannot be enabled during build-time instant validation.'), \"__NEXT_ERROR_CODE\", {\n value: \"E1092\",\n enumerable: false,\n configurable: true\n });\n },\n disable () {\n throw Object.defineProperty(new Error('Draft mode cannot be disabled during build-time instant validation.'), \"__NEXT_ERROR_CODE\", {\n value: \"E1094\",\n enumerable: false,\n configurable: true\n });\n }\n };\n}\nfunction createExhaustiveParamsProxy(underlyingParams, declaredParamNames, route) {\n return new Proxy(underlyingParams, {\n get (target, prop, receiver) {\n if (typeof prop === 'string' && !_reflectutils.wellKnownProperties.has(prop) && // Only error when accessing a param that is part of the route but wasn't provided.\n // accessing properties that aren't expected to be a valid param value is fine.\n prop in underlyingParams && !declaredParamNames.has(prop)) {\n trackMissingSampleErrorAndThrow(Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route \"${route}\" accessed param \"${prop}\" which is not defined in the \\`unstable_samples\\` ` + `of \\`instant\\`. Add it to the sample's \\`params\\` object.`), \"__NEXT_ERROR_CODE\", {\n value: \"E1349\",\n enumerable: false,\n configurable: true\n }));\n }\n return Reflect.get(target, prop, receiver);\n }\n });\n}\nfunction createExhaustiveSearchParamsProxy(searchParams, declaredSearchParamNames, route) {\n return new Proxy(searchParams, {\n get (target, prop, receiver) {\n if (typeof prop === 'string' && !_reflectutils.wellKnownProperties.has(prop) && !declaredSearchParamNames.has(prop)) {\n trackMissingSampleErrorAndThrow(createMissingSearchParamSampleError(route, prop));\n }\n return Reflect.get(target, prop, receiver);\n },\n has (target, prop) {\n if (typeof prop === 'string' && !_reflectutils.wellKnownProperties.has(prop) && !declaredSearchParamNames.has(prop)) {\n trackMissingSampleErrorAndThrow(createMissingSearchParamSampleError(route, prop));\n }\n return Reflect.has(target, prop);\n }\n });\n}\nfunction createExhaustiveURLSearchParamsProxy(searchParams, declaredSearchParamNames, route) {\n return new Proxy(searchParams, {\n get (target, prop, receiver) {\n // Intercept method calls that access specific param names\n if (prop === 'get' || prop === 'getAll' || prop === 'has') {\n const originalMathod = Reflect.get(target, prop, receiver);\n return (name)=>{\n if (typeof name === 'string' && !declaredSearchParamNames.has(name)) {\n trackMissingSampleErrorAndThrow(createMissingSearchParamSampleError(route, name));\n }\n return originalMathod.call(target, name);\n };\n }\n const value = Reflect.get(target, prop, receiver);\n // Prevent `TypeError: Value of \"this\" must be of type URLSearchParams` for methods\n if (typeof value === 'function' && !Object.hasOwn(target, prop)) {\n return value.bind(target);\n }\n return value;\n }\n });\n}\nfunction createMissingSearchParamSampleError(route, name) {\n return Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route \"${route}\" accessed searchParam \"${name}\" which is not defined in the \\`unstable_samples\\` ` + `of \\`instant\\`. Add it to the sample's \\`searchParams\\` object, ` + `or \\`{ \"${name}\": null }\\` if it should be absent.`), \"__NEXT_ERROR_CODE\", {\n value: \"E1347\",\n enumerable: false,\n configurable: true\n });\n}\nfunction createRelativeURLFromSamples(route, sampleParams, sampleSearchParams) {\n // Build searchParams query object and URL search string from sample\n const pathname = createPathnameFromRouteAndSampleParams(route, sampleParams ?? {});\n let search = '';\n if (sampleSearchParams) {\n const qs = createURLSearchParamsFromSample(sampleSearchParams).toString();\n if (qs) {\n search = '?' + qs;\n }\n }\n return (0, _parserelativeurl.parseRelativeUrl)(pathname + search, undefined, true);\n}\nfunction createURLSearchParamsFromSample(sampleSearchParams) {\n const result = new URLSearchParams();\n if (sampleSearchParams) {\n for (const [key, value] of Object.entries(sampleSearchParams)){\n if (value === null || value === undefined) continue;\n if (Array.isArray(value)) {\n for (const v of value){\n result.append(key, v);\n }\n } else {\n result.set(key, value);\n }\n }\n }\n return result;\n}\n/**\n * Substitute sample params into `workStore.route` to create a plausible pathname.\n * TODO(instant-validation-build): this logic is somewhat hacky and likely incomplete,\n * but it should be good enough for some initial testing.\n */ function createPathnameFromRouteAndSampleParams(route, params) {\n let interpolatedSegments = [];\n const rawSegments = route.split('/');\n for (const rawSegment of rawSegments){\n const param = (0, _getsegmentparam.getSegmentParam)(rawSegment);\n if (param) {\n switch(param.paramType){\n case 'catchall':\n case 'optional-catchall':\n {\n let paramValue = params[param.paramName];\n if (paramValue === undefined) {\n // The value for the param was not provided. `usePathname` will detect this and throw\n // before this can surface to userspace. Use `[...NAME]` as a placeholder for the param value\n // in case it pops up somewhere unexpectedly.\n paramValue = [\n rawSegment\n ];\n } else if (!Array.isArray(paramValue)) {\n // NOTE: this happens outside of render, so we don't need `trackMissingSampleErrorAndThrow`\n throw Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Expected sample param value for segment '${rawSegment}' to be an array of strings, got ${typeof paramValue}`), \"__NEXT_ERROR_CODE\", {\n value: \"E1104\",\n enumerable: false,\n configurable: true\n });\n }\n interpolatedSegments.push(...paramValue.map((v)=>encodeURIComponent(v)));\n break;\n }\n case 'dynamic':\n {\n let paramValue = params[param.paramName];\n if (paramValue === undefined) {\n // The value for the param was not provided. `usePathname` will detect this and throw\n // before this can surface to userspace. Use `[NAME]` as a placeholder for the param value\n // in case it pops up somewhere unexpectedly.\n paramValue = rawSegment;\n } else if (typeof paramValue !== 'string') {\n // NOTE: this happens outside of render, so we don't need `trackMissingSampleErrorAndThrow`\n throw Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Expected sample param value for segment '${rawSegment}' to be a string, got ${typeof paramValue}`), \"__NEXT_ERROR_CODE\", {\n value: \"E1108\",\n enumerable: false,\n configurable: true\n });\n }\n interpolatedSegments.push(encodeURIComponent(paramValue));\n break;\n }\n case 'catchall-intercepted-(..)(..)':\n case 'catchall-intercepted-(.)':\n case 'catchall-intercepted-(..)':\n case 'catchall-intercepted-(...)':\n case 'dynamic-intercepted-(..)(..)':\n case 'dynamic-intercepted-(.)':\n case 'dynamic-intercepted-(..)':\n case 'dynamic-intercepted-(...)':\n {\n // TODO(instant-validation-build): i don't know how these are supposed to work, or if we can even get them here\n throw Object.defineProperty(new _invarianterror.InvariantError('Not implemented: Validation of interception routes'), \"__NEXT_ERROR_CODE\", {\n value: \"E1106\",\n enumerable: false,\n configurable: true\n });\n }\n default:\n {\n param.paramType;\n }\n }\n } else {\n interpolatedSegments.push(rawSegment);\n }\n }\n return interpolatedSegments.join('/');\n}\nfunction assertRootParamInSamples(workStore, sampleParams, paramName) {\n if (sampleParams && paramName in sampleParams) {\n // The param is defined in the samples.\n } else {\n const route = workStore.route;\n trackMissingSampleErrorAndThrow(Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route \"${route}\" accessed root param \"${paramName}\" which is not defined in the \\`unstable_samples\\` ` + `of \\`instant\\`. Add it to the sample's \\`params\\` object.`), \"__NEXT_ERROR_CODE\", {\n value: \"E1192\",\n enumerable: false,\n configurable: true\n }));\n }\n}\n\n//# sourceMappingURL=instant-samples.js.map"],"names":["exports","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8"],"mappings":";;;;;;;;;;;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AAcF,EAAA,SAAS,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE;AAC9B,MAAI,IAAI,IAAI,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE;UACpD,UAAU,EAAE,IAAI;AACxB,UAAQ,GAAG,EAAE,GAAG,CAAC,IAAI;AACrB,OAAK,CAAC;AACN,EAAA;EACA,OAAO,CAACA,SAAO,EAAE;MACb,wBAAwB,EAAE,WAAW;AACzC,UAAQ,OAAO,wBAAwB;MACvC,CAAK;MACD,uBAAuB,EAAE,WAAW;AACxC,UAAQ,OAAO,uBAAuB;MACtC,CAAK;MACD,4BAA4B,EAAE,WAAW;AAC7C,UAAQ,OAAO,4BAA4B;MAC3C,CAAK;MACD,2BAA2B,EAAE,WAAW;AAC5C,UAAQ,OAAO,2BAA2B;MAC1C,CAAK;MACD,iCAAiC,EAAE,WAAW;AAClD,UAAQ,OAAO,iCAAiC;MAChD,CAAK;MACD,oCAAoC,EAAE,WAAW;AACrD,UAAQ,OAAO,oCAAoC;MACnD,CAAK;MACD,uBAAuB,EAAE,WAAW;AACxC,UAAQ,OAAO,uBAAuB;MACtC,CAAK;MACD,4BAA4B,EAAE,WAAW;AAC7C,UAAQ,OAAO,4B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SAAS,EAAE;AACtE,MAAI,IAAI,YAAY,IAAI,SAAS,IAAI,YAAY,EAAE,CAE9C,MAAM;AACX,UAAQ,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK;AACrC,UAAQ,+BAA+B,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,uBAAuB,CAAC,sBAAsB,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,uBAAuB,EAAE,SAAS,CAAC,mDAAmD,CAAC,GAAG,CAAC,yDAAyD,CAAC,CAAC,EAAE,mBAAmB,EAAE;cAClS,KAAK,EAAE,OAAO;cACd,UAAU,EAAE,KAAK;AAC7B,cAAY,YAAY,EAAE;AAC1B,WAAS,CAAC,CAAC;AACX,MAAA;AACA,EAAA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
|
package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { __exports as instantValidationError } from '../../../../../../_virtual/instant-validation-error.js';
|
|
2
|
+
|
|
3
|
+
var hasRequiredInstantValidationError;
|
|
4
|
+
|
|
5
|
+
function requireInstantValidationError () {
|
|
6
|
+
if (hasRequiredInstantValidationError) return instantValidationError;
|
|
7
|
+
hasRequiredInstantValidationError = 1;
|
|
8
|
+
(function (exports$1) {
|
|
9
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
function _export(target, all) {
|
|
13
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: all[name]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
_export(exports$1, {
|
|
19
|
+
InstantValidationError: function() {
|
|
20
|
+
return InstantValidationError;
|
|
21
|
+
},
|
|
22
|
+
isInstantValidationError: function() {
|
|
23
|
+
return isInstantValidationError;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
const INSTANT_VALIDATION_ERROR_DIGEST = 'INSTANT_VALIDATION_ERROR';
|
|
27
|
+
function isInstantValidationError(err) {
|
|
28
|
+
return !!(err && typeof err === 'object' && err instanceof Error && err.digest === INSTANT_VALIDATION_ERROR_DIGEST);
|
|
29
|
+
}
|
|
30
|
+
class InstantValidationError extends Error {
|
|
31
|
+
constructor(...args){
|
|
32
|
+
super(...args), this.digest = INSTANT_VALIDATION_ERROR_DIGEST;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
} (instantValidationError));
|
|
38
|
+
return instantValidationError;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { requireInstantValidationError as __require };
|
|
42
|
+
//# sourceMappingURL=instant-validation-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instant-validation-error.js","sources":["../../../../../../../node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n InstantValidationError: null,\n isInstantValidationError: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n InstantValidationError: function() {\n return InstantValidationError;\n },\n isInstantValidationError: function() {\n return isInstantValidationError;\n }\n});\nconst INSTANT_VALIDATION_ERROR_DIGEST = 'INSTANT_VALIDATION_ERROR';\nfunction isInstantValidationError(err) {\n return !!(err && typeof err === 'object' && err instanceof Error && err.digest === INSTANT_VALIDATION_ERROR_DIGEST);\n}\nclass InstantValidationError extends Error {\n constructor(...args){\n super(...args), this.digest = INSTANT_VALIDATION_ERROR_DIGEST;\n }\n}\n\n//# sourceMappingURL=instant-validation-error.js.map"],"names":["exports"],"mappings":";;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AAKF,EAAA,SAAS,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE;AAC9B,MAAI,IAAI,IAAI,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE;UACpD,UAAU,EAAE,IAAI;AACxB,UAAQ,GAAG,EAAE,GAAG,CAAC,IAAI;AACrB,OAAK,CAAC;AACN,EAAA;EACA,OAAO,CAACA,SAAO,EAAE;MACb,sBAAsB,EAAE,WAAW;AACvC,UAAQ,OAAO,sBAAsB;MACrC,CAAK;MACD,wBAAwB,EAAE,WAAW;AACzC,UAAQ,OAAO,wBAAwB;AACvC,MAAA;AACA,GAAC,CAAC;EACF,MAAM,+BAA+B,GAAG,0BAA0B;EAClE,SAAS,wBAAwB,CAAC,GAAG,EAAE;AACvC,MAAI,OAAO,CAAC,EAAE,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,YAAY,KAAK,IAAI,GAAG,CAAC,MAAM,KAAK,+BAA+B,CAAC;AACvH,EAAA;EACA,MAAM,sBAAsB,SAAS,KAAK,CAAC;AAC3C,MAAI,WAAW,CAAC,GAAG,IAAI,CAAC;UAChB,KAAK,CAAC,GAAG,IAAI,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,+BAA+B;AACrE,MAAA;AACA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
|