@semiont/frontend 0.3.2 → 0.3.4
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/package.json +1 -1
- package/standalone/apps/frontend/.next/BUILD_ID +1 -1
- package/standalone/apps/frontend/.next/app-path-routes-manifest.json +5 -5
- package/standalone/apps/frontend/.next/build-manifest.json +6 -6
- package/standalone/apps/frontend/.next/prerender-manifest.json +3 -3
- package/standalone/apps/frontend/.next/react-loadable-manifest.json +2 -2
- package/standalone/apps/frontend/.next/required-server-files.json +18 -6
- package/standalone/apps/frontend/.next/routes-manifest.json +1 -0
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js +776 -516
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js +1718 -1455
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page.js +724 -461
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js +370 -109
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js +581 -318
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js +449 -186
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js +430 -168
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js +31 -16
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js +388 -126
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js +537 -275
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js +388 -126
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js +745 -482
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js +366 -103
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js +600 -339
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js +956 -691
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js +1699 -1436
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page.js +390 -127
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js +1779 -1518
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js +1601 -1338
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js +2048 -1785
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/page.js +462 -204
- package/standalone/apps/frontend/.next/server/app/[locale]/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js +476 -216
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js +489 -229
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error/page.js +627 -240
- package/standalone/apps/frontend/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.html +1 -2
- package/standalone/apps/frontend/.next/server/app/_global-error.rsc +13 -9
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_full.segment.rsc +13 -9
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_global-error.segment.rsc +2 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_index.segment.rsc +2 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found/page.js +814 -559
- package/standalone/apps/frontend/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.html +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.rsc +8 -6
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_full.segment.rsc +8 -6
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_not-found.segment.rsc +2 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js +54 -39
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js +49 -34
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js +24 -9
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js +24 -9
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app-paths-manifest.json +5 -5
- package/standalone/apps/frontend/.next/server/chunks/2617.js +43 -7
- package/standalone/apps/frontend/.next/server/chunks/3144.js +7 -3
- package/standalone/apps/frontend/.next/server/chunks/4741.js +60 -252
- package/standalone/apps/frontend/.next/server/chunks/730.js +1 -1
- package/standalone/apps/frontend/.next/server/chunks/7420.js +21 -288
- package/standalone/apps/frontend/.next/server/chunks/7873.js +24 -2
- package/standalone/apps/frontend/.next/server/chunks/{7246.js → 8569.js} +1169 -282
- package/standalone/apps/frontend/.next/server/chunks/{2628.js → 9927.js} +11422 -4290
- package/standalone/apps/frontend/.next/server/middleware-build-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/middleware.js +17991 -10692
- package/standalone/apps/frontend/.next/server/pages/404.html +1 -1
- package/standalone/apps/frontend/.next/server/pages/500.html +1 -2
- package/standalone/apps/frontend/.next/server/prefetch-hints.json +1 -0
- package/standalone/apps/frontend/.next/server/server-reference-manifest.json +1 -1
- package/standalone/apps/frontend/.next/static/I_XveRdyStDMqYJPcAAy5/_buildManifest.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/1315.3f76aa23520d903e.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/{432.4c1d971431c60454.js → 432.8cb455bfe72957a9.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/87c73c54-e11922cda838f8cc.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/{891cff7f-c20ce667b1225aa7.js → 891cff7f-d7677a8f46c597cc.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/{layout-4b67f7b5d5ba4728.js → layout-956ba0ffa1199bff.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/{layout-f76e1916749e66f6.js → layout-262d8dd6c6e33738.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/{layout-a403fd7a4877cc04.js → layout-c072ce8c7aeaa92e.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/{layout-2d4e9c2be4b4a4c7.js → layout-b60605082e447f42.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/common-42653c14d34c8864.js +69 -0
- package/standalone/apps/frontend/.next/static/chunks/framework-b879567b90d34fb5.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/vendors-63213253c18580f4.js +40 -0
- package/standalone/apps/frontend/.next/static/chunks/{webpack-abf2ad17f175f867.js → webpack-a0284d55d288650f.js} +1 -1
- package/standalone/apps/frontend/package.json +5 -5
- package/standalone/apps/frontend/server.js +1 -1
- package/standalone/node_modules/@next/env/package.json +1 -1
- package/standalone/node_modules/next/dist/build/adapter/setup-node-env.external.js +15 -0
- package/standalone/node_modules/next/dist/build/analysis/extract-const-value.js +78 -63
- package/standalone/node_modules/next/dist/build/analysis/get-page-static-info.js +64 -40
- package/standalone/node_modules/next/dist/build/create-compiler-aliases.js +2 -0
- package/standalone/node_modules/next/dist/build/define-env.js +29 -11
- package/standalone/node_modules/next/dist/build/duration-to-string.js +1 -1
- package/standalone/node_modules/next/dist/build/entries.js +55 -295
- package/standalone/node_modules/next/dist/build/file-classifier.js +76 -0
- package/standalone/node_modules/next/dist/build/get-supported-browsers.js +38 -0
- package/standalone/node_modules/next/dist/build/load-jsconfig.js +7 -7
- package/standalone/node_modules/next/dist/build/lockfile.js +90 -9
- package/standalone/node_modules/next/dist/build/next-config-ts/transpile-config.js +128 -49
- package/standalone/node_modules/next/dist/build/print-build-errors.js +72 -0
- package/standalone/node_modules/next/dist/build/route-discovery.js +353 -0
- package/standalone/node_modules/next/dist/build/segment-config/app/app-segment-config.js +34 -17
- package/standalone/node_modules/next/dist/build/static-paths/app.js +68 -15
- package/standalone/node_modules/next/dist/build/static-paths/pages.js +3 -3
- package/standalone/node_modules/next/dist/build/swc/index.js +125 -48
- package/standalone/node_modules/next/dist/build/swc/loaderWorkerPool.js +40 -0
- package/standalone/node_modules/next/dist/build/swc/options.js +23 -6
- package/standalone/node_modules/next/dist/build/utils.js +48 -94
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/index.js +14 -3
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/global.js +4 -2
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/modules.js +4 -2
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/next-font.js +1 -0
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +5 -5
- package/standalone/node_modules/next/dist/build/webpack/config/index.js +3 -2
- package/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +2 -1
- package/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-url-parser.js +8 -1
- package/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +13 -4
- package/standalone/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js +3 -1
- package/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin-utils.js +2 -16
- package/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +2 -2
- package/standalone/node_modules/next/dist/build/webpack/plugins/deferred-entries-plugin.js +106 -0
- package/standalone/node_modules/next/dist/build/webpack/plugins/flight-client-entry-plugin.js +16 -8
- package/standalone/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +24 -11
- package/standalone/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +21 -2
- package/standalone/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +6 -5
- package/standalone/node_modules/next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js +10 -14
- package/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.js +18 -4
- package/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseScss.js +5 -4
- package/standalone/node_modules/next/dist/build/webpack-config.js +18 -8
- package/standalone/node_modules/next/dist/cli/next-test.js +4 -3
- package/standalone/node_modules/next/dist/client/app-find-source-map-url.js +2 -1
- package/standalone/node_modules/next/dist/client/components/app-router-headers.js +10 -0
- package/standalone/node_modules/next/dist/client/components/app-router-instance.js +82 -4
- package/standalone/node_modules/next/dist/client/components/app-router.js +39 -20
- package/standalone/node_modules/next/dist/client/components/builtin/app-error.js +29 -65
- package/standalone/node_modules/next/dist/client/components/builtin/error-styles.js +165 -0
- package/standalone/node_modules/next/dist/client/components/builtin/global-error.js +56 -38
- package/standalone/node_modules/next/dist/client/components/error-boundary.js +16 -6
- package/standalone/node_modules/next/dist/client/components/forbidden.js +1 -1
- package/standalone/node_modules/next/dist/client/components/handle-isr-error.js +3 -4
- package/standalone/node_modules/next/dist/client/components/links.js +7 -0
- package/standalone/node_modules/next/dist/client/components/navigation-untracked.js +2 -0
- package/standalone/node_modules/next/dist/client/components/navigation.js +27 -0
- package/standalone/node_modules/next/dist/client/components/navigation.react-server.js +5 -2
- package/standalone/node_modules/next/dist/client/components/not-found.js +1 -1
- package/standalone/node_modules/next/dist/client/components/redirect-boundary.js +1 -1
- package/standalone/node_modules/next/dist/client/components/redirect-error.js +0 -9
- package/standalone/node_modules/next/dist/client/components/redirect.js +2 -2
- package/standalone/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +73 -0
- package/standalone/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +102 -8
- package/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +165 -48
- package/standalone/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +19 -11
- package/standalone/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +669 -457
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/committed-state.js +49 -0
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +19 -20
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +5 -117
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +34 -19
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +16 -32
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +85 -57
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +12 -10
- package/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +10 -1
- package/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer.js +1 -1
- package/standalone/node_modules/next/dist/client/components/segment-cache/bfcache.js +128 -0
- package/standalone/node_modules/next/dist/client/components/segment-cache/cache.js +732 -231
- package/standalone/node_modules/next/dist/client/components/segment-cache/lru.js +13 -6
- package/standalone/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +194 -0
- package/standalone/node_modules/next/dist/client/components/segment-cache/navigation.js +388 -250
- package/standalone/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +543 -0
- package/standalone/node_modules/next/dist/client/components/segment-cache/scheduler.js +154 -55
- package/standalone/node_modules/next/dist/client/components/segment-cache/vary-path.js +63 -1
- package/standalone/node_modules/next/dist/client/components/unauthorized.js +1 -1
- package/standalone/node_modules/next/dist/client/components/use-action-queue.js +49 -3
- package/standalone/node_modules/next/dist/client/dev/hot-reloader/app/hot-reloader-app.js +9 -1
- package/standalone/node_modules/next/dist/client/flight-data-helpers.js +42 -29
- package/standalone/node_modules/next/dist/client/lib/javascript-url.js +32 -0
- package/standalone/node_modules/next/dist/client/lib/promise.js +53 -0
- package/standalone/node_modules/next/dist/client/{app-build-id.js → navigation-build-id.js} +17 -13
- package/standalone/node_modules/next/dist/client/react-client-callbacks/on-recoverable-error.js +14 -0
- package/standalone/node_modules/next/dist/client/route-loader.js +9 -46
- package/standalone/node_modules/next/dist/client/router.js +1 -1
- package/standalone/node_modules/next/dist/compiled/@next/font/dist/google/font-data.json +74 -3
- package/standalone/node_modules/next/dist/compiled/babel/bundle.js +1 -1
- package/standalone/node_modules/next/dist/compiled/babel-packages/packages-bundle.js +4 -4
- package/standalone/node_modules/next/dist/compiled/browserslist/index.js +1 -1
- package/standalone/node_modules/next/dist/compiled/http-proxy/index.js +5 -5
- package/standalone/node_modules/next/dist/compiled/next-devtools/index.js +2209 -23
- package/standalone/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +42 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +42 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +42 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +42 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +2 -2
- package/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
- package/standalone/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +10 -10
- package/standalone/node_modules/next/dist/compiled/react-is/package.json +1 -1
- package/standalone/node_modules/next/dist/compiled/tar/index.min.js +1 -0
- package/standalone/node_modules/next/dist/compiled/tar/package.json +1 -1
- package/standalone/node_modules/next/dist/compiled/unistore/unistore.js +1 -1
- package/standalone/node_modules/next/dist/lib/bundler.js +97 -0
- package/standalone/node_modules/next/dist/lib/constants.js +19 -4
- package/standalone/node_modules/next/dist/lib/download-swc.js +2 -2
- package/standalone/node_modules/next/dist/lib/find-root.js +11 -7
- package/standalone/node_modules/next/dist/lib/format-server-error.js +1 -0
- package/standalone/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +3 -20
- package/standalone/node_modules/next/dist/lib/interop-default.js +1 -0
- package/standalone/node_modules/next/dist/lib/is-interception-route-rewrite.js +18 -0
- package/standalone/node_modules/next/dist/lib/load-custom-routes.js +49 -5
- package/standalone/node_modules/next/dist/lib/memory/trace.js +109 -0
- package/standalone/node_modules/next/dist/lib/metadata/get-metadata-route.js +11 -2
- package/standalone/node_modules/next/dist/lib/needs-experimental-react.js +2 -2
- package/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +5 -5
- package/standalone/node_modules/next/dist/lib/try-to-parse-path.js +1 -2
- package/standalone/node_modules/next/dist/lib/turbopack-warning.js +0 -1
- package/standalone/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +6 -3
- package/standalone/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +1 -1
- package/standalone/node_modules/next/dist/lib/typescript/missingDependencyError.js +1 -1
- package/standalone/node_modules/next/dist/lib/typescript/runTypeCheck.js +6 -8
- package/standalone/node_modules/next/dist/lib/typescript/type-paths.js +7 -12
- package/standalone/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +17 -7
- package/standalone/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +9 -12
- package/standalone/node_modules/next/dist/lib/verify-typescript-setup.js +66 -16
- package/standalone/node_modules/next/dist/next-devtools/server/shared.js +6 -10
- package/standalone/node_modules/next/dist/next-devtools/shared/webpack-module-path.js +4 -4
- package/standalone/node_modules/next/dist/next-devtools/userspace/app/app-dev-overlay-error-boundary.js +22 -4
- package/standalone/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js +7 -1
- package/standalone/node_modules/next/dist/next-devtools/userspace/app/forward-logs.js +18 -13
- package/standalone/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js +7 -4
- package/standalone/node_modules/next/dist/server/app-render/action-handler.js +83 -15
- package/standalone/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +0 -82
- package/standalone/node_modules/next/dist/server/app-render/app-render-render-utils.js +45 -81
- package/standalone/node_modules/next/dist/server/app-render/app-render.js +1746 -803
- package/standalone/node_modules/next/dist/server/app-render/create-component-tree.js +136 -50
- package/standalone/node_modules/next/dist/server/app-render/create-error-handler.js +6 -4
- package/standalone/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +52 -26
- package/standalone/node_modules/next/dist/server/app-render/csrf-protection.js +14 -3
- package/standalone/node_modules/next/dist/server/app-render/debug-channel-server.js +30 -0
- package/standalone/node_modules/next/dist/server/app-render/debug-channel-server.web.js +71 -0
- package/standalone/node_modules/next/dist/server/app-render/dynamic-rendering.js +353 -37
- package/standalone/node_modules/next/dist/server/app-render/get-asset-query-string.js +2 -2
- package/standalone/node_modules/next/dist/server/app-render/get-layer-assets.js +1 -1
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +13 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +18 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-config.js +181 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples-client.js +128 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +432 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +33 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/stream-utils.js +96 -0
- package/standalone/node_modules/next/dist/server/app-render/manifests-singleton.js +8 -1
- package/standalone/node_modules/next/dist/server/app-render/postponed-state.js +2 -1
- package/standalone/node_modules/next/dist/server/app-render/prospective-render-utils.js +1 -0
- package/standalone/node_modules/next/dist/server/app-render/segment-explorer-path.js +35 -10
- package/standalone/node_modules/next/dist/server/app-render/staged-rendering.js +142 -72
- package/standalone/node_modules/next/dist/server/app-render/stale-time.js +111 -0
- package/standalone/node_modules/next/dist/server/app-render/stream-ops.js +106 -0
- package/standalone/node_modules/next/dist/server/app-render/stream-ops.web.js +163 -0
- package/standalone/node_modules/next/dist/server/app-render/types.js +10 -4
- package/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +3 -1
- package/standalone/node_modules/next/dist/server/app-render/vary-params.js +336 -0
- package/standalone/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +59 -12
- package/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +54 -26
- package/standalone/node_modules/next/dist/server/async-storage/request-store.js +4 -4
- package/standalone/node_modules/next/dist/server/async-storage/work-store.js +2 -5
- package/standalone/node_modules/next/dist/server/base-server.js +65 -53
- package/standalone/node_modules/next/dist/server/config-schema.js +93 -8
- package/standalone/node_modules/next/dist/server/config-shared.js +57 -7
- package/standalone/node_modules/next/dist/server/config.js +96 -25
- package/standalone/node_modules/next/dist/server/dev/browser-logs/file-logger.js +9 -6
- package/standalone/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +46 -0
- package/standalone/node_modules/next/dist/server/dev/browser-logs/source-map.js +1 -4
- package/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +264 -33
- package/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +8 -4
- package/standalone/node_modules/next/dist/server/dev/log-requests.js +10 -2
- package/standalone/node_modules/next/dist/server/dev/middleware-turbopack.js +20 -10
- package/standalone/node_modules/next/dist/server/dev/middleware-webpack.js +13 -3
- package/standalone/node_modules/next/dist/server/dev/next-dev-server.js +19 -6
- package/standalone/node_modules/next/dist/server/dev/on-demand-entry-handler.js +69 -0
- package/standalone/node_modules/next/dist/server/dev/require-cache.js +51 -21
- package/standalone/node_modules/next/dist/server/dev/server-action-logger.js +37 -0
- package/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +1 -0
- package/standalone/node_modules/next/dist/server/dev/turbopack-utils.js +6 -15
- package/standalone/node_modules/next/dist/server/dynamic-rendering-utils.js +22 -0
- package/standalone/node_modules/next/dist/server/image-optimizer.js +157 -27
- package/standalone/node_modules/next/dist/server/lib/app-info-log.js +16 -38
- package/standalone/node_modules/next/dist/server/lib/cache-control.js +1 -1
- package/standalone/node_modules/next/dist/server/lib/clone-response.js +16 -16
- package/standalone/node_modules/next/dist/server/lib/cpu-profile.js +47 -16
- package/standalone/node_modules/next/dist/server/lib/dev-bundler-service.js +2 -2
- package/standalone/node_modules/next/dist/server/lib/disk-lru-cache.external.js +57 -0
- package/standalone/node_modules/next/dist/server/lib/find-page-file.js +27 -7
- package/standalone/node_modules/next/dist/server/lib/implicit-tags.js +3 -3
- package/standalone/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +5 -3
- package/standalone/node_modules/next/dist/server/lib/incremental-cache/index.js +32 -10
- package/standalone/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +18 -1
- package/standalone/node_modules/next/dist/server/lib/install-code-frame.js +22 -0
- package/standalone/node_modules/next/dist/server/lib/lru-cache.js +9 -1
- package/standalone/node_modules/next/dist/server/lib/patch-fetch.js +40 -7
- package/standalone/node_modules/next/dist/server/lib/postponed-request-body.js +64 -0
- package/standalone/node_modules/next/dist/server/lib/render-server.js +4 -1
- package/standalone/node_modules/next/dist/server/lib/router-server.js +24 -13
- package/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site-dev.js +110 -0
- package/standalone/node_modules/next/dist/server/lib/router-utils/filesystem.js +16 -15
- package/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +32 -11
- package/standalone/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +3 -3
- package/standalone/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js +71 -71
- package/standalone/node_modules/next/dist/server/lib/router-utils/typegen.js +247 -2
- package/standalone/node_modules/next/dist/server/lib/server-ipc/utils.js +2 -1
- package/standalone/node_modules/next/dist/server/lib/start-server.js +73 -39
- package/standalone/node_modules/next/dist/server/lib/trace/tracer.js +11 -1
- package/standalone/node_modules/next/dist/server/lib/utils.js +40 -11
- package/standalone/node_modules/next/dist/server/load-components.js +2 -0
- package/standalone/node_modules/next/dist/server/load-manifest.external.js +37 -17
- package/standalone/node_modules/next/dist/server/mcp/tools/get-errors.js +11 -4
- package/standalone/node_modules/next/dist/server/mcp/tools/get-logs.js +9 -3
- package/standalone/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +52 -44
- package/standalone/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +6 -2
- package/standalone/node_modules/next/dist/server/mcp/tools/get-routes.js +44 -79
- package/standalone/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +12 -4
- package/standalone/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +62 -72
- package/standalone/node_modules/next/dist/server/next-server.js +69 -99
- package/standalone/node_modules/next/dist/server/next.js +3 -0
- package/standalone/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +61 -6
- package/standalone/node_modules/next/dist/server/node-environment-extensions/date.js +4 -4
- package/standalone/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +13 -6
- package/standalone/node_modules/next/dist/server/node-environment-extensions/{utils.js → io-utils.js} +14 -5
- package/standalone/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +8 -8
- package/standalone/node_modules/next/dist/server/node-environment-extensions/process-error-handlers.js +91 -0
- package/standalone/node_modules/next/dist/server/node-environment-extensions/random.js +2 -2
- package/standalone/node_modules/next/dist/server/node-environment-extensions/{unhandled-rejection.js → unhandled-rejection.external.js} +23 -4
- package/standalone/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +3 -3
- package/standalone/node_modules/next/dist/server/node-environment.js +1 -1
- package/standalone/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +2 -1
- package/standalone/node_modules/next/dist/server/patch-error-inspect.js +37 -20
- package/standalone/node_modules/next/dist/server/render-result.js +9 -0
- package/standalone/node_modules/next/dist/server/render.js +27 -25
- package/standalone/node_modules/next/dist/server/require-hook.js +19 -8
- package/standalone/node_modules/next/dist/server/response-cache/utils.js +1 -0
- package/standalone/node_modules/next/dist/server/resume-data-cache/cache-store.js +35 -23
- package/standalone/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +16 -7
- package/standalone/node_modules/next/dist/server/revalidation-utils.js +12 -7
- package/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +2 -1
- package/standalone/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +4 -1
- package/standalone/node_modules/next/dist/server/route-modules/app-page/module.js +31 -1
- package/standalone/node_modules/next/dist/server/route-modules/app-page/normalize-request-url.js +25 -0
- package/standalone/node_modules/next/dist/server/route-modules/pages/pages-handler.js +31 -8
- package/standalone/node_modules/next/dist/server/route-modules/route-module.js +71 -18
- package/standalone/node_modules/next/dist/server/stream-utils/encoded-tags.js +8 -0
- package/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +239 -58
- package/standalone/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +7 -2
- package/standalone/node_modules/next/dist/server/typescript/constant.js +1 -0
- package/standalone/node_modules/next/dist/server/typescript/rules/config.js +14 -3
- package/standalone/node_modules/next/dist/server/web/adapter.js +7 -3
- package/standalone/node_modules/next/dist/server/web/next-url.js +6 -2
- package/standalone/node_modules/next/dist/server/web/sandbox/sandbox.js +3 -0
- package/standalone/node_modules/next/dist/shared/lib/app-router-types.js +30 -11
- package/standalone/node_modules/next/dist/shared/lib/constants.js +7 -7
- package/standalone/node_modules/next/dist/shared/lib/deployment-id.js +37 -10
- package/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
- package/standalone/node_modules/next/dist/shared/lib/errors/code-frame.js +20 -0
- package/standalone/node_modules/next/dist/shared/lib/format-webpack-messages.js +22 -2
- package/standalone/node_modules/next/dist/shared/lib/image-config.js +3 -1
- package/standalone/node_modules/next/dist/shared/lib/is-internal.js +2 -0
- package/standalone/node_modules/next/dist/shared/lib/magic-identifier.js +6 -6
- package/standalone/node_modules/next/dist/shared/lib/router/router.js +32 -0
- package/standalone/node_modules/next/dist/shared/lib/router/utils/app-paths.js +11 -0
- package/standalone/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +11 -4
- package/standalone/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +3 -2
- package/standalone/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +9 -2
- package/standalone/node_modules/next/dist/shared/lib/router/utils/parse-url.js +8 -2
- package/standalone/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.js +32 -0
- package/standalone/node_modules/next/dist/shared/lib/server-reference-info.js +4 -0
- package/standalone/node_modules/next/dist/shared/lib/size-limit.js +6 -1
- package/standalone/node_modules/next/dist/shared/lib/turbopack/compilation-events.js +47 -10
- package/standalone/node_modules/next/dist/shared/lib/turbopack/manifest-loader.js +90 -116
- package/standalone/node_modules/next/dist/shared/lib/turbopack/utils.js +14 -26
- package/standalone/node_modules/next/dist/shared/lib/utils/reflect-utils.js +69 -0
- package/standalone/node_modules/next/dist/shared/lib/utils.js +2 -2
- package/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/standalone/node_modules/next/dist/trace/index.js +4 -0
- package/standalone/node_modules/next/dist/trace/report/to-json-build.js +11 -108
- package/standalone/node_modules/next/dist/trace/report/to-json.js +52 -38
- package/standalone/node_modules/next/dist/trace/trace.js +15 -1
- package/standalone/node_modules/next/package.json +21 -23
- package/standalone/node_modules/react/cjs/react.development.js +1284 -0
- package/standalone/package.json +3 -3
- package/standalone/packages/core/package.json +1 -1
- package/standalone/apps/frontend/.next/static/chunks/1315.18c68981a2eab4fe.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/87c73c54-c5fda2db2a4bd732.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/common-d9b436492e46bb05.js +0 -69
- package/standalone/apps/frontend/.next/static/chunks/framework-86c2a58f458066a5.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/vendors-c7197feb11002a6e.js +0 -10
- package/standalone/apps/frontend/.next/static/kMwuefB4Z1_6Xta5NPqs1/_buildManifest.js +0 -1
- package/standalone/node_modules/next/dist/client/components/router-reducer/handle-mutable.js +0 -66
- package/standalone/node_modules/next/dist/compiled/babel/code-frame.js +0 -1
- package/standalone/node_modules/next/dist/compiled/babel-code-frame/index.js +0 -1
- package/standalone/node_modules/next/dist/compiled/babel-code-frame/package.json +0 -1
- package/standalone/node_modules/next/dist/compiled/tar/index.js +0 -1
- package/standalone/node_modules/next/dist/server/app-render/staged-validation.js +0 -32
- package/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site.js +0 -76
- package/standalone/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +0 -52
- package/standalone/node_modules/typescript/lib/typescript.js +0 -200276
- package/standalone/node_modules/typescript/package.json +0 -120
- /package/standalone/apps/frontend/.next/static/{kMwuefB4Z1_6Xta5NPqs1 → I_XveRdyStDMqYJPcAAy5}/_ssgManifest.js +0 -0
|
@@ -36,653 +36,217 @@ module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.j
|
|
|
36
36
|
|
|
37
37
|
/***/ }),
|
|
38
38
|
|
|
39
|
-
/***/
|
|
40
|
-
/***/ ((module) => {
|
|
41
|
-
|
|
42
|
-
"use strict";
|
|
43
|
-
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
44
|
-
|
|
45
|
-
/***/ }),
|
|
46
|
-
|
|
47
|
-
/***/ 19771:
|
|
48
|
-
/***/ ((module) => {
|
|
49
|
-
|
|
50
|
-
"use strict";
|
|
51
|
-
module.exports = require("process");
|
|
52
|
-
|
|
53
|
-
/***/ }),
|
|
54
|
-
|
|
55
|
-
/***/ 26713:
|
|
39
|
+
/***/ 17891:
|
|
56
40
|
/***/ ((module) => {
|
|
57
41
|
|
|
58
42
|
"use strict";
|
|
59
|
-
module.exports = require("next/dist/shared/lib/router/utils/
|
|
43
|
+
module.exports = require("next/dist/shared/lib/router/utils/get-segment-param");
|
|
60
44
|
|
|
61
45
|
/***/ }),
|
|
62
46
|
|
|
63
|
-
/***/
|
|
47
|
+
/***/ 19121:
|
|
64
48
|
/***/ ((module) => {
|
|
65
49
|
|
|
66
50
|
"use strict";
|
|
67
|
-
module.exports = require("
|
|
51
|
+
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
68
52
|
|
|
69
53
|
/***/ }),
|
|
70
54
|
|
|
71
|
-
/***/
|
|
55
|
+
/***/ 19771:
|
|
72
56
|
/***/ ((module) => {
|
|
73
57
|
|
|
74
58
|
"use strict";
|
|
75
|
-
module.exports = require("
|
|
59
|
+
module.exports = require("process");
|
|
76
60
|
|
|
77
61
|
/***/ }),
|
|
78
62
|
|
|
79
|
-
/***/
|
|
63
|
+
/***/ 20915:
|
|
80
64
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
81
65
|
|
|
82
66
|
"use strict";
|
|
83
67
|
__webpack_require__.r(__webpack_exports__);
|
|
84
68
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
85
|
-
/* harmony export */
|
|
69
|
+
/* harmony export */ __next_app__: () => (/* binding */ __next_app__),
|
|
70
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
71
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule)
|
|
86
72
|
/* harmony export */ });
|
|
87
|
-
/* harmony import */ var
|
|
88
|
-
/* harmony import */ var
|
|
89
|
-
|
|
73
|
+
/* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80666);
|
|
74
|
+
/* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__);
|
|
75
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51421);
|
|
76
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4675);
|
|
77
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29796);
|
|
78
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__);
|
|
79
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(54046);
|
|
80
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__);
|
|
81
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74928);
|
|
82
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__);
|
|
83
|
+
/* harmony import */ var next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19727);
|
|
84
|
+
/* harmony import */ var next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24268);
|
|
85
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(60402);
|
|
86
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__);
|
|
87
|
+
/* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(22040);
|
|
88
|
+
/* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__);
|
|
89
|
+
/* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27186);
|
|
90
|
+
/* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__);
|
|
91
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(49228);
|
|
92
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__);
|
|
93
|
+
/* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(97485);
|
|
94
|
+
/* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__);
|
|
95
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(261);
|
|
96
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__);
|
|
97
|
+
/* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80885);
|
|
98
|
+
/* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__);
|
|
99
|
+
/* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7162);
|
|
100
|
+
/* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__);
|
|
101
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(26713);
|
|
102
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__);
|
|
103
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(70972);
|
|
104
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__);
|
|
105
|
+
/* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(57341);
|
|
106
|
+
/* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__);
|
|
107
|
+
/* harmony import */ var next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(95105);
|
|
108
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(38038);
|
|
109
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__);
|
|
110
|
+
/* harmony import */ var next_dist_server_stream_utils_encoded_tags__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(29898);
|
|
111
|
+
/* harmony import */ var next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(62918);
|
|
112
|
+
/* harmony import */ var next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__);
|
|
113
|
+
/* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(98798);
|
|
114
|
+
/* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__);
|
|
115
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(86439);
|
|
116
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__);
|
|
117
|
+
/* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(77068);
|
|
118
|
+
/* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__);
|
|
119
|
+
/* harmony import */ var next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(31214);
|
|
120
|
+
/* harmony import */ var next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__);
|
|
121
|
+
/* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(35402);
|
|
122
|
+
/* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__);
|
|
123
|
+
/* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(29059);
|
|
124
|
+
/* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__);
|
|
125
|
+
/* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(70722);
|
|
126
|
+
/* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__);
|
|
127
|
+
/* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(31182);
|
|
128
|
+
/* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__);
|
|
129
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(43954);
|
|
130
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__);
|
|
131
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(17891);
|
|
132
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__);
|
|
133
|
+
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
134
|
+
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__) if(["default","__next_app__","routeModule","handler"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__[__WEBPACK_IMPORT_KEY__]
|
|
135
|
+
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
136
|
+
const module0 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 95235));
|
|
137
|
+
const module1 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 25195));
|
|
138
|
+
const module2 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
|
|
139
|
+
const module3 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 72353));
|
|
140
|
+
const module4 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 4253, 23));
|
|
141
|
+
const module5 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 49184, 23));
|
|
142
|
+
const module6 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 57149));
|
|
143
|
+
const module7 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
|
|
144
|
+
const module8 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 28310));
|
|
145
|
+
const module9 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 12156));
|
|
146
|
+
const module10 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
|
|
147
|
+
const module11 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
|
|
148
|
+
const module12 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
|
|
149
|
+
const page13 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 30090));
|
|
90
150
|
|
|
91
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__.registerClientReference)(
|
|
92
|
-
function() { throw new Error("Attempted to call the default export of \"/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/know/resource/[id]/page.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."); },
|
|
93
|
-
"/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/know/resource/[id]/page.tsx",
|
|
94
|
-
"default",
|
|
95
|
-
));
|
|
96
151
|
|
|
97
152
|
|
|
98
|
-
/***/ }),
|
|
99
153
|
|
|
100
|
-
/***/ 33338:
|
|
101
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
102
154
|
|
|
103
|
-
"use strict";
|
|
104
|
-
// ESM COMPAT FLAG
|
|
105
|
-
__webpack_require__.r(__webpack_exports__);
|
|
106
155
|
|
|
107
|
-
// EXPORTS
|
|
108
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
109
|
-
"default": () => (/* binding */ KnowledgeResourcePage)
|
|
110
|
-
});
|
|
111
156
|
|
|
112
|
-
// EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js
|
|
113
|
-
var react_jsx_runtime = __webpack_require__(92692);
|
|
114
|
-
// EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
|
|
115
|
-
var react = __webpack_require__(71277);
|
|
116
|
-
// EXTERNAL MODULE: ../../node_modules/next/dist/api/navigation.js
|
|
117
|
-
var navigation = __webpack_require__(67994);
|
|
118
|
-
// EXTERNAL MODULE: ../../node_modules/use-intl/dist/esm/production/react.js + 18 modules
|
|
119
|
-
var production_react = __webpack_require__(23211);
|
|
120
|
-
// EXTERNAL MODULE: ../../packages/react-ui/dist/index.mjs + 27 modules
|
|
121
|
-
var dist = __webpack_require__(76552);
|
|
122
|
-
;// __barrel_optimize__?names=useResources!=!../../packages/react-ui/dist/index.mjs
|
|
123
157
|
|
|
124
158
|
|
|
125
|
-
// EXTERNAL MODULE: ../../packages/core/dist/index.js
|
|
126
|
-
var core_dist = __webpack_require__(4698);
|
|
127
|
-
// EXTERNAL MODULE: ./src/lib/routing.ts
|
|
128
|
-
var routing = __webpack_require__(46391);
|
|
129
|
-
;// __barrel_optimize__?names=ResourceErrorState,ResourceLoadingState,ResourceViewerPage!=!../../packages/react-ui/dist/index.mjs
|
|
130
159
|
|
|
131
160
|
|
|
132
|
-
// EXTERNAL MODULE: ./src/components/toolbar/ToolbarPanels.tsx + 4 modules
|
|
133
|
-
var ToolbarPanels = __webpack_require__(50436);
|
|
134
|
-
;// ./src/app/[locale]/know/resource/[id]/page.tsx
|
|
135
|
-
/* __next_internal_client_entry_do_not_use__ default auto */
|
|
136
|
-
/**
|
|
137
|
-
* Resource Viewer Page - Minimal Next.js routing wrapper
|
|
138
|
-
*
|
|
139
|
-
* Handles only Next.js routing and initial resource loading.
|
|
140
|
-
* All other concerns (data loading, events, UI state) are handled by ResourceViewerPage.
|
|
141
|
-
*/
|
|
142
161
|
|
|
143
162
|
|
|
144
163
|
|
|
145
164
|
|
|
146
165
|
|
|
147
|
-
// Feature components
|
|
148
166
|
|
|
149
167
|
|
|
150
|
-
/**
|
|
151
|
-
* Main page component - handles only routing and initial resource load
|
|
152
|
-
*/ function KnowledgeResourcePage() {
|
|
153
|
-
const params = (0,navigation.useParams)();
|
|
154
|
-
const locale = (0,production_react/* useLocale */.Ym)();
|
|
155
|
-
// The URL param is the bare resource ID
|
|
156
|
-
const rId = (0,core_dist/* resourceId */.a)(params?.id);
|
|
157
|
-
// Load only the resource descriptor - everything else is loaded by ResourceViewerPage
|
|
158
|
-
const resources = (0,dist.useResources)();
|
|
159
|
-
const { data: docData, isLoading, isError, error, refetch: refetchDocument } = resources.get.useQuery(rId);
|
|
160
|
-
// Log error for debugging
|
|
161
|
-
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
162
|
-
if (isError && !isLoading) {
|
|
163
|
-
console.error(`[Document] Failed to load resource ${rId}:`, error);
|
|
164
|
-
}
|
|
165
|
-
}, [
|
|
166
|
-
isError,
|
|
167
|
-
isLoading,
|
|
168
|
-
rId,
|
|
169
|
-
error
|
|
170
|
-
]);
|
|
171
|
-
// Early return: Loading state
|
|
172
|
-
if (isLoading || !docData) {
|
|
173
|
-
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.ResourceLoadingState, {});
|
|
174
|
-
}
|
|
175
|
-
// Early return: Error state
|
|
176
|
-
if (isError) {
|
|
177
|
-
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.ResourceErrorState, {
|
|
178
|
-
error: error,
|
|
179
|
-
onRetry: ()=>refetchDocument()
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
// Early return: ResourceDescriptor not found
|
|
183
|
-
if (!docData.resource) {
|
|
184
|
-
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.ResourceErrorState, {
|
|
185
|
-
error: new Error('Resource not found'),
|
|
186
|
-
onRetry: ()=>refetchDocument()
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
const resource = docData.resource;
|
|
190
|
-
// resource['@id'] is now a bare ID
|
|
191
|
-
const canonicalId = (0,core_dist/* resourceId */.a)(resource['@id']);
|
|
192
|
-
// Render with minimal props - all data loading/events handled inside ResourceViewerPage
|
|
193
|
-
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.ResourceViewerPage, {
|
|
194
|
-
resource: resource,
|
|
195
|
-
rUri: canonicalId,
|
|
196
|
-
locale: locale,
|
|
197
|
-
Link: routing/* Link */.N,
|
|
198
|
-
routes: routing/* routes */.J,
|
|
199
|
-
ToolbarPanels: ToolbarPanels/* ToolbarPanels */.t,
|
|
200
|
-
refetchDocument: refetchDocument
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
168
|
|
|
204
169
|
|
|
205
|
-
/***/ }),
|
|
206
170
|
|
|
207
|
-
/***/ 33873:
|
|
208
|
-
/***/ ((module) => {
|
|
209
171
|
|
|
210
|
-
"use strict";
|
|
211
|
-
module.exports = require("path");
|
|
212
172
|
|
|
213
|
-
/***/ }),
|
|
214
173
|
|
|
215
|
-
/***/ 41025:
|
|
216
|
-
/***/ ((module) => {
|
|
217
174
|
|
|
218
|
-
"use strict";
|
|
219
|
-
module.exports = require("next/dist/server/app-render/dynamic-access-async-storage.external.js");
|
|
220
175
|
|
|
221
|
-
/***/ }),
|
|
222
176
|
|
|
223
|
-
|
|
224
|
-
|
|
177
|
+
// We inject the tree and pages here so that we can use them in the route
|
|
178
|
+
// module.
|
|
179
|
+
const tree = {
|
|
180
|
+
children: [
|
|
181
|
+
'',
|
|
182
|
+
{
|
|
183
|
+
children: [
|
|
184
|
+
'[locale]',
|
|
185
|
+
{
|
|
186
|
+
children: [
|
|
187
|
+
'know',
|
|
188
|
+
{
|
|
189
|
+
children: [
|
|
190
|
+
'resource',
|
|
191
|
+
{
|
|
192
|
+
children: [
|
|
193
|
+
'[id]',
|
|
194
|
+
{
|
|
195
|
+
children: ['__PAGE__', {}, {
|
|
196
|
+
page: [page13, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/know/resource/[id]/page.tsx"],
|
|
197
|
+
|
|
198
|
+
}]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
'global-error': [module12, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
|
|
202
|
+
|
|
203
|
+
},
|
|
204
|
+
[]
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
'global-error': [module11, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
|
|
209
|
+
|
|
210
|
+
},
|
|
211
|
+
[]
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
'layout': [module9, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/know/layout.tsx"],
|
|
216
|
+
'global-error': [module10, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
|
|
217
|
+
|
|
218
|
+
},
|
|
219
|
+
[]
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
'layout': [module6, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/layout.tsx"],
|
|
224
|
+
'global-error': [module7, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
|
|
225
|
+
'not-found': [module8, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/not-found.tsx"],
|
|
226
|
+
|
|
227
|
+
},
|
|
228
|
+
["_not-found","_global-error","api"]
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
'layout': [module0, "/home/runner/work/semiont/semiont/apps/frontend/src/app/layout.tsx"],
|
|
233
|
+
'error': [module1, "/home/runner/work/semiont/semiont/apps/frontend/src/app/error.tsx"],
|
|
234
|
+
'global-error': [module2, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
|
|
235
|
+
'not-found': [module3, "/home/runner/work/semiont/semiont/apps/frontend/src/app/not-found.tsx"],
|
|
236
|
+
'forbidden': [module4, "next/dist/client/components/builtin/forbidden.js"],
|
|
237
|
+
'unauthorized': [module5, "next/dist/client/components/builtin/unauthorized.js"],
|
|
238
|
+
|
|
239
|
+
},
|
|
240
|
+
[]
|
|
241
|
+
]
|
|
242
|
+
}.children;
|
|
243
|
+
const __next_app_require__ = __webpack_require__
|
|
244
|
+
const __next_app_load_chunk__ = () => Promise.resolve()
|
|
245
|
+
const __next_app__ = {
|
|
246
|
+
require: __next_app_require__,
|
|
247
|
+
loadChunk: __next_app_load_chunk__
|
|
248
|
+
};
|
|
225
249
|
|
|
226
|
-
"use strict";
|
|
227
|
-
module.exports = require("next/dist/shared/lib/router/utils/interception-routes");
|
|
228
|
-
|
|
229
|
-
/***/ }),
|
|
230
|
-
|
|
231
|
-
/***/ 50436:
|
|
232
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
233
|
-
|
|
234
|
-
"use strict";
|
|
235
|
-
|
|
236
|
-
// EXPORTS
|
|
237
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
238
|
-
t: () => (/* binding */ ToolbarPanels)
|
|
239
|
-
});
|
|
240
|
-
|
|
241
|
-
// EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js
|
|
242
|
-
var react_jsx_runtime = __webpack_require__(92692);
|
|
243
|
-
// EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
|
|
244
|
-
var react = __webpack_require__(71277);
|
|
245
|
-
// EXTERNAL MODULE: ../../packages/react-ui/dist/index.mjs + 27 modules
|
|
246
|
-
var dist = __webpack_require__(76552);
|
|
247
|
-
;// __barrel_optimize__?names=ResizeHandle,SettingsPanel,useEventSubscriptions,usePanelWidth!=!../../packages/react-ui/dist/index.mjs
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
// EXTERNAL MODULE: ../../node_modules/next-auth/react/index.js
|
|
251
|
-
var next_auth_react = __webpack_require__(62341);
|
|
252
|
-
// EXTERNAL MODULE: ../../node_modules/next/dist/api/image.js
|
|
253
|
-
var api_image = __webpack_require__(93523);
|
|
254
|
-
// EXTERNAL MODULE: ../../node_modules/next-intl/dist/esm/production/react-client/index.js
|
|
255
|
-
var react_client = __webpack_require__(56305);
|
|
256
|
-
;// __barrel_optimize__?names=formatTime,sanitizeImageURL,useSessionExpiry!=!../../packages/react-ui/dist/index.mjs
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
// EXTERNAL MODULE: ./src/hooks/useAuth.ts + 1 modules
|
|
260
|
-
var useAuth = __webpack_require__(31039);
|
|
261
|
-
;// ./src/components/UserPanel.tsx
|
|
262
|
-
/* __next_internal_client_entry_do_not_use__ UserPanel auto */
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
// Fallback avatar when image fails to load or is invalid
|
|
270
|
-
const FALLBACK_AVATAR = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iMTYiIGZpbGw9IiM2QjcyODAiLz4KPHBhdGggZD0iTTE2IDE2QzE4LjIwOTEgMTYgMjAgMTQuMjA5MSAyMCAxMkMyMCA5Ljc5MDg2IDE4LjIwOTEgOCAxNiA4QzEzLjc5MDkgOCAxMiA5Ljc5MDg2IDEyIDEyQzEyIDE0LjIwOTEgMTMuNzkwOSAxNiAxNiAxNloiIGZpbGw9IiNFNUU3RUIiLz4KPHBhdGggZD0iTTI0IDI1QzI0IDIxLjY4NjMgMjAuNDE4MyAxOSAxNiAxOUMxMS41ODE3IDE5IDggMjEuNjg2MyA4IDI1IiBzdHJva2U9IiNFNUU3RUIiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPg==';
|
|
271
|
-
function UserPanel() {
|
|
272
|
-
const t = (0,react_client/* useTranslations */.c)('UserPanel');
|
|
273
|
-
const { displayName, avatarUrl, userDomain, isAdmin, isModerator } = (0,useAuth/* useAuth */.As)();
|
|
274
|
-
const [imageError, setImageError] = (0,react.useState)(false);
|
|
275
|
-
const { timeRemaining } = (0,dist.useSessionExpiry)();
|
|
276
|
-
const sessionTimeFormatted = (0,dist.formatTime)(timeRemaining) ?? 'Unknown';
|
|
277
|
-
// Sanitize and validate the profile image URL
|
|
278
|
-
const profileImageUrl = (()=>{
|
|
279
|
-
if (!avatarUrl || imageError) {
|
|
280
|
-
return FALLBACK_AVATAR;
|
|
281
|
-
}
|
|
282
|
-
const sanitized = (0,dist.sanitizeImageURL)(avatarUrl);
|
|
283
|
-
if (!sanitized) {
|
|
284
|
-
console.warn('Invalid profile image URL detected, using fallback');
|
|
285
|
-
return FALLBACK_AVATAR;
|
|
286
|
-
}
|
|
287
|
-
return sanitized;
|
|
288
|
-
})();
|
|
289
|
-
const handleSignOut = async ()=>{
|
|
290
|
-
await (0,next_auth_react.signOut)({
|
|
291
|
-
callbackUrl: '/'
|
|
292
|
-
});
|
|
293
|
-
};
|
|
294
|
-
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
295
|
-
className: "semiont-user-panel",
|
|
296
|
-
children: [
|
|
297
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("h3", {
|
|
298
|
-
className: "semiont-user-panel__title",
|
|
299
|
-
children: t('account')
|
|
300
|
-
}),
|
|
301
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
302
|
-
className: "space-y-4",
|
|
303
|
-
children: [
|
|
304
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
305
|
-
className: "flex items-center gap-3",
|
|
306
|
-
children: [
|
|
307
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(api_image["default"], {
|
|
308
|
-
src: profileImageUrl,
|
|
309
|
-
alt: t('profileAlt', {
|
|
310
|
-
name: displayName || t('user')
|
|
311
|
-
}),
|
|
312
|
-
width: 48,
|
|
313
|
-
height: 48,
|
|
314
|
-
className: "w-12 h-12 rounded-full object-cover",
|
|
315
|
-
onError: ()=>setImageError(true),
|
|
316
|
-
unoptimized: profileImageUrl === FALLBACK_AVATAR,
|
|
317
|
-
sizes: "48px",
|
|
318
|
-
quality: 85
|
|
319
|
-
}),
|
|
320
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
321
|
-
className: "flex-1 min-w-0",
|
|
322
|
-
children: [
|
|
323
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
324
|
-
className: "semiont-panel-text",
|
|
325
|
-
children: displayName || t('user')
|
|
326
|
-
}),
|
|
327
|
-
userDomain && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
328
|
-
className: "semiont-panel-text-secondary",
|
|
329
|
-
children: [
|
|
330
|
-
"@",
|
|
331
|
-
userDomain
|
|
332
|
-
]
|
|
333
|
-
})
|
|
334
|
-
]
|
|
335
|
-
})
|
|
336
|
-
]
|
|
337
|
-
}),
|
|
338
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
339
|
-
children: [
|
|
340
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("label", {
|
|
341
|
-
className: "semiont-panel-label",
|
|
342
|
-
children: t('session')
|
|
343
|
-
}),
|
|
344
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
345
|
-
className: "semiont-session-box",
|
|
346
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
347
|
-
className: "semiont-panel-hint",
|
|
348
|
-
children: t('expiresIn', {
|
|
349
|
-
time: sessionTimeFormatted
|
|
350
|
-
})
|
|
351
|
-
})
|
|
352
|
-
})
|
|
353
|
-
]
|
|
354
|
-
}),
|
|
355
|
-
(isAdmin || isModerator) && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
356
|
-
children: [
|
|
357
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("label", {
|
|
358
|
-
className: "semiont-panel-label",
|
|
359
|
-
children: t('privileges')
|
|
360
|
-
}),
|
|
361
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
362
|
-
className: "space-y-1",
|
|
363
|
-
children: [
|
|
364
|
-
isAdmin && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
365
|
-
className: "semiont-privilege-badge semiont-privilege-badge--admin",
|
|
366
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
367
|
-
className: "semiont-privilege-text",
|
|
368
|
-
children: t('administrator')
|
|
369
|
-
})
|
|
370
|
-
}),
|
|
371
|
-
isModerator && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
372
|
-
className: "semiont-privilege-badge semiont-privilege-badge--moderator",
|
|
373
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
374
|
-
className: "semiont-privilege-text",
|
|
375
|
-
children: t('moderator')
|
|
376
|
-
})
|
|
377
|
-
})
|
|
378
|
-
]
|
|
379
|
-
})
|
|
380
|
-
]
|
|
381
|
-
}),
|
|
382
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
383
|
-
className: "semiont-panel-divider",
|
|
384
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("button", {
|
|
385
|
-
onClick: handleSignOut,
|
|
386
|
-
className: "semiont-signout-button",
|
|
387
|
-
children: t('signOut')
|
|
388
|
-
})
|
|
389
|
-
})
|
|
390
|
-
]
|
|
391
|
-
})
|
|
392
|
-
]
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
// EXTERNAL MODULE: ../../node_modules/use-intl/dist/esm/production/react.js + 18 modules
|
|
397
|
-
var production_react = __webpack_require__(23211);
|
|
398
|
-
// EXTERNAL MODULE: ./src/i18n/routing.ts
|
|
399
|
-
var routing = __webpack_require__(99704);
|
|
400
|
-
;// __barrel_optimize__?names=COMMON_PANELS!=!../../packages/react-ui/dist/index.mjs
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
;// ./src/components/toolbar/ToolbarPanels.tsx
|
|
404
|
-
/* __next_internal_client_entry_do_not_use__ ToolbarPanels auto */
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* Renders the toolbar panel container with common panels (user, settings)
|
|
413
|
-
* and any context-specific panels passed as children.
|
|
414
|
-
*
|
|
415
|
-
* Settings changes are handled via GlobalSettingsEventBus - no callbacks needed.
|
|
416
|
-
*
|
|
417
|
-
* @example
|
|
418
|
-
* // Simple context (compose, discover, moderate, admin pages)
|
|
419
|
-
* <ToolbarPanels
|
|
420
|
-
* activePanel={activePanel}
|
|
421
|
-
* theme={theme}
|
|
422
|
-
* showLineNumbers={showLineNumbers}
|
|
423
|
-
* />
|
|
424
|
-
*
|
|
425
|
-
* @example
|
|
426
|
-
* // Document context with custom panels
|
|
427
|
-
* <ToolbarPanels
|
|
428
|
-
* activePanel={activePanel}
|
|
429
|
-
* theme={theme}
|
|
430
|
-
* showLineNumbers={showLineNumbers}
|
|
431
|
-
* >
|
|
432
|
-
* {activePanel === 'annotations' && <UnifiedAnnotationsPanel ... />}
|
|
433
|
-
* {activePanel === 'history' && <AnnotationHistory ... />}
|
|
434
|
-
* {activePanel === 'info' && <ResourceInfoPanel ... />}
|
|
435
|
-
* {activePanel === 'collaboration' && <CollaborationPanel ... />}
|
|
436
|
-
* {activePanel === 'jsonld' && <JsonLdPanel ... />}
|
|
437
|
-
* </ToolbarPanels>
|
|
438
|
-
*/ function ToolbarPanels({ activePanel, theme, showLineNumbers, hoverDelayMs, children }) {
|
|
439
|
-
const locale = (0,production_react/* useLocale */.Ym)();
|
|
440
|
-
const router = (0,routing/* useRouter */.rd)();
|
|
441
|
-
const pathname = (0,routing/* usePathname */.a8)();
|
|
442
|
-
const [isPending, startTransition] = (0,react.useTransition)();
|
|
443
|
-
// Panel width management with localStorage persistence
|
|
444
|
-
const { width, setWidth, minWidth, maxWidth } = (0,dist.usePanelWidth)();
|
|
445
|
-
// Handle locale change events
|
|
446
|
-
const handleLocaleChanged = (0,react.useCallback)(({ locale: newLocale })=>{
|
|
447
|
-
if (!pathname) return;
|
|
448
|
-
startTransition(()=>{
|
|
449
|
-
// The router from @/i18n/routing is locale-aware and will handle the locale prefix
|
|
450
|
-
router.replace(pathname, {
|
|
451
|
-
locale: newLocale
|
|
452
|
-
});
|
|
453
|
-
});
|
|
454
|
-
}, [
|
|
455
|
-
pathname,
|
|
456
|
-
router,
|
|
457
|
-
startTransition
|
|
458
|
-
]);
|
|
459
|
-
// Subscribe to locale change events
|
|
460
|
-
(0,dist.useEventSubscriptions)({
|
|
461
|
-
'settings:locale-changed': handleLocaleChanged
|
|
462
|
-
});
|
|
463
|
-
// Don't render container if no panel is active
|
|
464
|
-
if (!activePanel) {
|
|
465
|
-
return null;
|
|
466
|
-
}
|
|
467
|
-
// In simple context (no children), only user and settings panels are valid.
|
|
468
|
-
// If a resource-specific panel is still active from a previous route, hide the container.
|
|
469
|
-
if (!children && !dist.COMMON_PANELS.includes(activePanel)) {
|
|
470
|
-
return null;
|
|
471
|
-
}
|
|
472
|
-
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
473
|
-
className: "semiont-toolbar-panels",
|
|
474
|
-
style: {
|
|
475
|
-
width: `${width}px`,
|
|
476
|
-
position: 'relative'
|
|
477
|
-
},
|
|
478
|
-
children: [
|
|
479
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.ResizeHandle, {
|
|
480
|
-
onResize: setWidth,
|
|
481
|
-
minWidth: minWidth,
|
|
482
|
-
maxWidth: maxWidth,
|
|
483
|
-
position: "left",
|
|
484
|
-
ariaLabel: "Resize right panel"
|
|
485
|
-
}),
|
|
486
|
-
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
487
|
-
className: "semiont-toolbar-panels__content",
|
|
488
|
-
children: [
|
|
489
|
-
children,
|
|
490
|
-
activePanel === 'user' && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(UserPanel, {}),
|
|
491
|
-
activePanel === 'settings' && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.SettingsPanel, {
|
|
492
|
-
showLineNumbers: showLineNumbers,
|
|
493
|
-
theme: theme,
|
|
494
|
-
hoverDelayMs: hoverDelayMs,
|
|
495
|
-
locale: locale,
|
|
496
|
-
isPendingLocaleChange: isPending
|
|
497
|
-
})
|
|
498
|
-
]
|
|
499
|
-
})
|
|
500
|
-
]
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
/***/ }),
|
|
506
|
-
|
|
507
|
-
/***/ 55511:
|
|
508
|
-
/***/ ((module) => {
|
|
509
|
-
|
|
510
|
-
"use strict";
|
|
511
|
-
module.exports = require("crypto");
|
|
512
|
-
|
|
513
|
-
/***/ }),
|
|
514
|
-
|
|
515
|
-
/***/ 62893:
|
|
516
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
517
|
-
|
|
518
|
-
"use strict";
|
|
519
|
-
__webpack_require__.r(__webpack_exports__);
|
|
520
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
521
|
-
/* harmony export */ GlobalError: () => (/* reexport safe */ _home_runner_work_semiont_semiont_apps_frontend_src_app_global_error_tsx__WEBPACK_IMPORTED_MODULE_25__["default"]),
|
|
522
|
-
/* harmony export */ __next_app__: () => (/* binding */ __next_app__),
|
|
523
|
-
/* harmony export */ handler: () => (/* binding */ handler),
|
|
524
|
-
/* harmony export */ routeModule: () => (/* binding */ routeModule)
|
|
525
|
-
/* harmony export */ });
|
|
526
|
-
/* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80666);
|
|
527
|
-
/* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__);
|
|
528
|
-
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51421);
|
|
529
|
-
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4675);
|
|
530
|
-
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29796);
|
|
531
|
-
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__);
|
|
532
|
-
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(54046);
|
|
533
|
-
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__);
|
|
534
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74928);
|
|
535
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__);
|
|
536
|
-
/* harmony import */ var next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19727);
|
|
537
|
-
/* harmony import */ var next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24268);
|
|
538
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(60402);
|
|
539
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__);
|
|
540
|
-
/* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(22040);
|
|
541
|
-
/* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__);
|
|
542
|
-
/* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27186);
|
|
543
|
-
/* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__);
|
|
544
|
-
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(49228);
|
|
545
|
-
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__);
|
|
546
|
-
/* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(97485);
|
|
547
|
-
/* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__);
|
|
548
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(261);
|
|
549
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__);
|
|
550
|
-
/* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80885);
|
|
551
|
-
/* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__);
|
|
552
|
-
/* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7162);
|
|
553
|
-
/* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__);
|
|
554
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(26713);
|
|
555
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__);
|
|
556
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(70972);
|
|
557
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__);
|
|
558
|
-
/* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(57341);
|
|
559
|
-
/* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__);
|
|
560
|
-
/* harmony import */ var next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(95105);
|
|
561
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(38038);
|
|
562
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__);
|
|
563
|
-
/* harmony import */ var next_dist_server_stream_utils_encoded_tags__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(29898);
|
|
564
|
-
/* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(98798);
|
|
565
|
-
/* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__);
|
|
566
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(86439);
|
|
567
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_23__);
|
|
568
|
-
/* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(77068);
|
|
569
|
-
/* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_24__);
|
|
570
|
-
/* harmony import */ var _home_runner_work_semiont_semiont_apps_frontend_src_app_global_error_tsx__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(56357);
|
|
571
|
-
/* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(35402);
|
|
572
|
-
/* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26__);
|
|
573
|
-
/* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(29059);
|
|
574
|
-
/* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_27__);
|
|
575
|
-
/* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(70722);
|
|
576
|
-
/* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_28__);
|
|
577
|
-
/* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(31182);
|
|
578
|
-
/* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_29__);
|
|
579
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(43954);
|
|
580
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_30__);
|
|
581
|
-
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
582
|
-
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26__) if(["default","GlobalError","__next_app__","routeModule","handler"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26__[__WEBPACK_IMPORT_KEY__]
|
|
583
|
-
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
584
|
-
const module0 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 95235));
|
|
585
|
-
const module1 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 25195));
|
|
586
|
-
const module2 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
|
|
587
|
-
const module3 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 72353));
|
|
588
|
-
const module4 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 4253, 23));
|
|
589
|
-
const module5 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 49184, 23));
|
|
590
|
-
const module6 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 57149));
|
|
591
|
-
const module7 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 28310));
|
|
592
|
-
const module8 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 12156));
|
|
593
|
-
const page9 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 30090));
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
// We inject the tree and pages here so that we can use them in the route
|
|
620
|
-
// module.
|
|
621
|
-
const tree = {
|
|
622
|
-
children: [
|
|
623
|
-
'',
|
|
624
|
-
{
|
|
625
|
-
children: [
|
|
626
|
-
'[locale]',
|
|
627
|
-
{
|
|
628
|
-
children: [
|
|
629
|
-
'know',
|
|
630
|
-
{
|
|
631
|
-
children: [
|
|
632
|
-
'resource',
|
|
633
|
-
{
|
|
634
|
-
children: [
|
|
635
|
-
'[id]',
|
|
636
|
-
{
|
|
637
|
-
children: ['__PAGE__', {}, {
|
|
638
|
-
page: [page9, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/know/resource/[id]/page.tsx"],
|
|
639
|
-
|
|
640
|
-
}]
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}
|
|
646
|
-
]
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
}
|
|
652
|
-
]
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
'layout': [module8, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/know/layout.tsx"],
|
|
656
|
-
|
|
657
|
-
}
|
|
658
|
-
]
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
'layout': [module6, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/layout.tsx"],
|
|
662
|
-
'not-found': [module7, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/not-found.tsx"],
|
|
663
|
-
|
|
664
|
-
}
|
|
665
|
-
]
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
'layout': [module0, "/home/runner/work/semiont/semiont/apps/frontend/src/app/layout.tsx"],
|
|
669
|
-
'error': [module1, "/home/runner/work/semiont/semiont/apps/frontend/src/app/error.tsx"],
|
|
670
|
-
'global-error': [module2, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
|
|
671
|
-
'not-found': [module3, "/home/runner/work/semiont/semiont/apps/frontend/src/app/not-found.tsx"],
|
|
672
|
-
'forbidden': [module4, "next/dist/client/components/builtin/forbidden.js"],
|
|
673
|
-
'unauthorized': [module5, "next/dist/client/components/builtin/unauthorized.js"],
|
|
674
|
-
|
|
675
|
-
}
|
|
676
|
-
]
|
|
677
|
-
}.children;
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
const __next_app_require__ = __webpack_require__
|
|
681
|
-
const __next_app_load_chunk__ = () => Promise.resolve()
|
|
682
|
-
const __next_app__ = {
|
|
683
|
-
require: __next_app_require__,
|
|
684
|
-
loadChunk: __next_app_load_chunk__
|
|
685
|
-
};
|
|
686
250
|
|
|
687
251
|
|
|
688
252
|
|
|
@@ -706,12 +270,53 @@ const routeModule = new next_dist_server_route_modules_app_page_module_compiled_
|
|
|
706
270
|
distDir: ".next" || 0,
|
|
707
271
|
relativeProjectDir: false || ''
|
|
708
272
|
});
|
|
273
|
+
function buildDynamicSegmentPlaceholder(param) {
|
|
274
|
+
const { repeat, optional } = (0,next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__.getParamProperties)(param.paramType);
|
|
275
|
+
if (optional) {
|
|
276
|
+
return `[[...${param.paramName}]]`;
|
|
277
|
+
}
|
|
278
|
+
if (repeat) {
|
|
279
|
+
return `[...${param.paramName}]`;
|
|
280
|
+
}
|
|
281
|
+
return `[${param.paramName}]`;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Builds the cache key for the most complete prerenderable shell we can derive
|
|
285
|
+
* from the shell that matched this request. Only params that can still be
|
|
286
|
+
* filled by `generateStaticParams` are substituted; fully dynamic params stay
|
|
287
|
+
* as placeholders so a request like `/c/foo` can complete `/[one]/[two]` into
|
|
288
|
+
* `/c/[two]` rather than `/c/foo`.
|
|
289
|
+
*/ function buildCompletedShellCacheKey(fallbackPathname, remainingPrerenderableParams, params) {
|
|
290
|
+
const prerenderableParamsByName = new Map(remainingPrerenderableParams.map((param)=>[
|
|
291
|
+
param.paramName,
|
|
292
|
+
param
|
|
293
|
+
]));
|
|
294
|
+
return fallbackPathname.split('/').map((segment)=>{
|
|
295
|
+
const segmentParam = (0,next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__.getSegmentParam)(segment);
|
|
296
|
+
if (!segmentParam) {
|
|
297
|
+
return segment;
|
|
298
|
+
}
|
|
299
|
+
const remainingParam = prerenderableParamsByName.get(segmentParam.paramName);
|
|
300
|
+
if (!remainingParam) {
|
|
301
|
+
return segment;
|
|
302
|
+
}
|
|
303
|
+
const value = params == null ? void 0 : params[remainingParam.paramName];
|
|
304
|
+
if (!value) {
|
|
305
|
+
return segment;
|
|
306
|
+
}
|
|
307
|
+
const encodedValue = Array.isArray(value) ? value.map((item)=>encodeURIComponent(item)).join('/') : encodeURIComponent(value);
|
|
308
|
+
return segment.replace(buildDynamicSegmentPlaceholder(remainingParam), encodedValue);
|
|
309
|
+
}).join('/') || '/';
|
|
310
|
+
}
|
|
709
311
|
async function handler(req, res, ctx) {
|
|
710
|
-
var _this;
|
|
312
|
+
var _this, _prerenderManifest_routes_resolvedPathname, _prerenderInfo_fallbackRootParams, _prerenderInfo_fallbackRouteParams;
|
|
313
|
+
if (ctx.requestMeta) {
|
|
314
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.setRequestMeta)(req, ctx.requestMeta);
|
|
315
|
+
}
|
|
711
316
|
if (routeModule.isDev) {
|
|
712
317
|
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
713
318
|
}
|
|
714
|
-
const isMinimalMode = Boolean(
|
|
319
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'minimalMode'));
|
|
715
320
|
let srcPage = "/[locale]/know/resource/[id]/page";
|
|
716
321
|
// turbopack doesn't normalize `/index` in the page name
|
|
717
322
|
// so we need to to process dynamic routes properly
|
|
@@ -731,7 +336,7 @@ async function handler(req, res, ctx) {
|
|
|
731
336
|
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
732
337
|
return null;
|
|
733
338
|
}
|
|
734
|
-
const { buildId, query, params, pageIsDynamic, buildManifest, nextFontManifest, reactLoadableManifest, serverActionsManifest, clientReferenceManifest, subresourceIntegrityManifest, prerenderManifest, isDraftMode, resolvedPathname, revalidateOnlyGenerated, routerServerContext, nextConfig, parsedUrl, interceptionRoutePatterns, deploymentId } = prepareResult;
|
|
339
|
+
const { buildId, query, params, pageIsDynamic, buildManifest, nextFontManifest, reactLoadableManifest, serverActionsManifest, clientReferenceManifest, subresourceIntegrityManifest, prerenderManifest, isDraftMode, resolvedPathname, revalidateOnlyGenerated, routerServerContext, nextConfig, parsedUrl, interceptionRoutePatterns, deploymentId, clientAssetToken } = prepareResult;
|
|
735
340
|
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__.normalizeAppPath)(srcPage);
|
|
736
341
|
let { isOnDemandRevalidate } = prepareResult;
|
|
737
342
|
// We use the resolvedPathname instead of the parsedUrl.pathname because it
|
|
@@ -741,7 +346,8 @@ async function handler(req, res, ctx) {
|
|
|
741
346
|
// treat the pathname as dynamic. Currently, there's a bug in the PPR
|
|
742
347
|
// implementation that incorrectly leaves %%drp placeholders in the output of
|
|
743
348
|
// parallel routes. This is addressed with cacheComponents.
|
|
744
|
-
const
|
|
349
|
+
const prerenderMatch = nextConfig.experimental.ppr && !nextConfig.cacheComponents && (0,next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__.isInterceptionRouteAppPath)(resolvedPathname) ? null : routeModule.match(resolvedPathname, prerenderManifest);
|
|
350
|
+
const prerenderInfo = (prerenderMatch == null ? void 0 : prerenderMatch.route) ?? null;
|
|
745
351
|
const isPrerendered = !!prerenderManifest.routes[resolvedPathname];
|
|
746
352
|
const userAgent = req.headers['user-agent'] || '';
|
|
747
353
|
const botType = (0,next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__.getBotType)(userAgent);
|
|
@@ -758,15 +364,65 @@ async function handler(req, res, ctx) {
|
|
|
758
364
|
* If the route being rendered is an app page, and the ppr feature has been
|
|
759
365
|
* enabled, then the given route _could_ support PPR.
|
|
760
366
|
*/ const couldSupportPPR = (0,next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__.checkIsAppPPREnabled)(nextConfig.experimental.ppr);
|
|
367
|
+
// Stash postponed state for server actions when in minimal mode.
|
|
368
|
+
// We extract it here so the RDC is available for the re-render after the action completes.
|
|
369
|
+
const resumeStateLengthHeader = req.headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_RESUME_STATE_LENGTH_HEADER];
|
|
370
|
+
if (!(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') && isMinimalMode && couldSupportPPR && isPossibleServerAction && resumeStateLengthHeader && typeof resumeStateLengthHeader === 'string') {
|
|
371
|
+
const stateLength = parseInt(resumeStateLengthHeader, 10);
|
|
372
|
+
const { maxPostponedStateSize, maxPostponedStateSizeBytes } = (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize);
|
|
373
|
+
if (!isNaN(stateLength) && stateLength > 0) {
|
|
374
|
+
var _nextConfig_experimental_serverActions;
|
|
375
|
+
if (stateLength > maxPostponedStateSizeBytes) {
|
|
376
|
+
res.statusCode = 413;
|
|
377
|
+
res.end((0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getPostponedStateExceededErrorMessage)(maxPostponedStateSize));
|
|
378
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
379
|
+
return null;
|
|
380
|
+
}
|
|
381
|
+
// Calculate max total body size to prevent buffering excessively large
|
|
382
|
+
// payloads before the action handler checks. We use stateLength (not
|
|
383
|
+
// maxPostponedStateSizeBytes) so the postponed state doesn't eat into
|
|
384
|
+
// the action body budget - it's already validated above.
|
|
385
|
+
const defaultActionBodySizeLimit = '1 MB';
|
|
386
|
+
const actionBodySizeLimit = ((_nextConfig_experimental_serverActions = nextConfig.experimental.serverActions) == null ? void 0 : _nextConfig_experimental_serverActions.bodySizeLimit) ?? defaultActionBodySizeLimit;
|
|
387
|
+
const actionBodySizeLimitBytes = actionBodySizeLimit !== defaultActionBodySizeLimit ? (__webpack_require__(32683).parse)(actionBodySizeLimit) : 1024 * 1024 // 1 MB
|
|
388
|
+
;
|
|
389
|
+
const maxTotalBodySize = stateLength + actionBodySizeLimitBytes;
|
|
390
|
+
const fullBody = await (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.readBodyWithSizeLimit)(req, maxTotalBodySize);
|
|
391
|
+
if (fullBody === null) {
|
|
392
|
+
res.statusCode = 413;
|
|
393
|
+
res.end(`Request body exceeded limit. ` + `To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit`);
|
|
394
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
395
|
+
return null;
|
|
396
|
+
}
|
|
397
|
+
if (fullBody.length >= stateLength) {
|
|
398
|
+
// Extract postponed state from the beginning
|
|
399
|
+
const postponedState = fullBody.subarray(0, stateLength).toString('utf8');
|
|
400
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'postponed', postponedState);
|
|
401
|
+
// Store the remaining action body for the action handler
|
|
402
|
+
const actionBody = fullBody.subarray(stateLength);
|
|
403
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'actionBody', actionBody);
|
|
404
|
+
} else {
|
|
405
|
+
throw Object.defineProperty(new Error(`invariant: expected ${stateLength} bytes of postponed state but only received ${fullBody.length} bytes`), "__NEXT_ERROR_CODE", {
|
|
406
|
+
value: "E979",
|
|
407
|
+
enumerable: false,
|
|
408
|
+
configurable: true
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
761
413
|
if (!(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') && couldSupportPPR && req.headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_RESUME_HEADER] === '1' && req.method === 'POST') {
|
|
414
|
+
const { maxPostponedStateSize, maxPostponedStateSizeBytes } = (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize);
|
|
762
415
|
// Decode the postponed state from the request body, it will come as
|
|
763
416
|
// an array of buffers, so collect them and then concat them to form
|
|
764
417
|
// the string.
|
|
765
|
-
const body =
|
|
766
|
-
|
|
767
|
-
|
|
418
|
+
const body = await (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.readBodyWithSizeLimit)(req, maxPostponedStateSizeBytes);
|
|
419
|
+
if (body === null) {
|
|
420
|
+
res.statusCode = 413;
|
|
421
|
+
res.end((0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getPostponedStateExceededErrorMessage)(maxPostponedStateSize));
|
|
422
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
423
|
+
return null;
|
|
768
424
|
}
|
|
769
|
-
const postponed =
|
|
425
|
+
const postponed = body.toString('utf8');
|
|
770
426
|
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'postponed', postponed);
|
|
771
427
|
}
|
|
772
428
|
// When enabled, this will allow the use of the `?__nextppronly` query to
|
|
@@ -775,14 +431,29 @@ async function handler(req, res, ctx) {
|
|
|
775
431
|
// When enabled, this will allow the use of the `?__nextppronly` query
|
|
776
432
|
// to enable debugging of the fallback shell.
|
|
777
433
|
const hasDebugFallbackShellQuery = hasDebugStaticShellQuery && query.__nextppronly === 'fallback';
|
|
434
|
+
// Whether the testing API is exposed (dev mode or explicit flag)
|
|
435
|
+
const exposeTestingApi = routeModule.isDev === true || nextConfig.experimental.exposeTestingApiInProductionBuild === true;
|
|
436
|
+
// Enable the Instant Navigation Testing API. Renders only the prefetched
|
|
437
|
+
// portion of the page, excluding dynamic content. This allows tests to
|
|
438
|
+
// assert on the prefetched UI state deterministically.
|
|
439
|
+
// - Header: Used for client-side navigations where we can set request headers
|
|
440
|
+
// - Cookie: Used for MPA navigations (page reload, full page load) where we
|
|
441
|
+
// can't set request headers. Only applies to document requests (no RSC
|
|
442
|
+
// header) - RSC requests should proceed normally even during a locked scope,
|
|
443
|
+
// with blocking happening on the client side.
|
|
444
|
+
const isInstantNavigationTest = exposeTestingApi && (req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_INSTANT_PREFETCH_HEADER] === '1' || req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_HEADER] === undefined && typeof req.headers.cookie === 'string' && req.headers.cookie.includes(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_INSTANT_TEST_COOKIE + '='));
|
|
778
445
|
// This page supports PPR if it is marked as being `PARTIALLY_STATIC` in the
|
|
779
446
|
// prerender manifest and this is an app page.
|
|
780
|
-
const isRoutePPREnabled =
|
|
447
|
+
const isRoutePPREnabled = // When the instant navigation testing API is active, enable the PPR
|
|
448
|
+
// prerender path even without Cache Components. In dev mode without CC,
|
|
449
|
+
// static pages need this path to produce buffered segment data (the
|
|
450
|
+
// legacy prerender path hangs in dev mode).
|
|
451
|
+
(couldSupportPPR || isInstantNavigationTest) && (((_this = prerenderManifest.routes[normalizedSrcPage] ?? prerenderManifest.dynamicRoutes[normalizedSrcPage]) == null ? void 0 : _this.renderingMode) === 'PARTIALLY_STATIC' || // Ideally we'd want to check the appConfig to see if this page has PPR
|
|
781
452
|
// enabled or not, but that would require plumbing the appConfig through
|
|
782
453
|
// to the server during development. We assume that the page supports it
|
|
783
|
-
// but only during development.
|
|
784
|
-
hasDebugStaticShellQuery && (
|
|
785
|
-
const isDebugStaticShell = hasDebugStaticShellQuery && isRoutePPREnabled;
|
|
454
|
+
// but only during development or when the testing API is exposed.
|
|
455
|
+
(hasDebugStaticShellQuery || isInstantNavigationTest) && (exposeTestingApi || (routerServerContext == null ? void 0 : routerServerContext.experimentalTestProxy) === true));
|
|
456
|
+
const isDebugStaticShell = (hasDebugStaticShellQuery || isInstantNavigationTest) && isRoutePPREnabled;
|
|
786
457
|
// We should enable debugging dynamic accesses when the static shell
|
|
787
458
|
// debugging has been enabled and we're also in development mode.
|
|
788
459
|
const isDebugDynamicAccesses = isDebugStaticShell && routeModule.isDev === true;
|
|
@@ -794,7 +465,11 @@ async function handler(req, res, ctx) {
|
|
|
794
465
|
// If PPR is enabled, and this is a RSC request (but not a prefetch), then
|
|
795
466
|
// we can use this fact to only generate the flight data for the request
|
|
796
467
|
// because we can't cache the HTML (as it's also dynamic).
|
|
797
|
-
|
|
468
|
+
const staticPrefetchDataRoute = (_prerenderManifest_routes_resolvedPathname = prerenderManifest.routes[resolvedPathname]) == null ? void 0 : _prerenderManifest_routes_resolvedPathname.prefetchDataRoute;
|
|
469
|
+
let isDynamicRSCRequest = isRoutePPREnabled && isRSCRequest && !isPrefetchRSCRequest && // If generated at build time, treat the RSC request as static
|
|
470
|
+
// so we can serve the prebuilt .rsc without a dynamic render.
|
|
471
|
+
// Only do this for routes that have a concrete prefetchDataRoute.
|
|
472
|
+
!staticPrefetchDataRoute;
|
|
798
473
|
// During a PPR revalidation, the RSC request is not dynamic if we do not have the postponed data.
|
|
799
474
|
// We only attach the postponed data during a resume. If there's no postponed data, then it must be a revalidation.
|
|
800
475
|
// This is to ensure that we don't bypass the cache during a revalidation.
|
|
@@ -810,10 +485,11 @@ async function handler(req, res, ctx) {
|
|
|
810
485
|
// being true for a revalidate due to modifying the base-server this.renderOpts
|
|
811
486
|
// when fixing this to correct logic it causes hydration issue since we set
|
|
812
487
|
// serveStreamingMetadata to true during export
|
|
813
|
-
const serveStreamingMetadata =
|
|
814
|
-
const isSSG = Boolean((prerenderInfo || isPrerendered || prerenderManifest.routes[normalizedSrcPage]) && // If this is a
|
|
815
|
-
// to serve a static response.
|
|
816
|
-
|
|
488
|
+
const serveStreamingMetadata = botType && isRoutePPREnabled ? false : !userAgent ? true : (0,next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__.shouldServeStreamingMetadata)(userAgent, nextConfig.htmlLimitedBots);
|
|
489
|
+
const isSSG = Boolean((prerenderInfo || isPrerendered || prerenderManifest.routes[normalizedSrcPage]) && // If this is a bot request and PPR is enabled, then we don't want
|
|
490
|
+
// to serve a static response. This applies to both DOM bots (like Googlebot)
|
|
491
|
+
// and HTML-limited bots.
|
|
492
|
+
!(botType && isRoutePPREnabled));
|
|
817
493
|
// When a page supports cacheComponents, we can support RDC for Navigations
|
|
818
494
|
const supportsRDCForNavigations = isRoutePPREnabled && nextConfig.cacheComponents === true;
|
|
819
495
|
// In development, we always want to generate dynamic HTML.
|
|
@@ -830,18 +506,37 @@ async function handler(req, res, ctx) {
|
|
|
830
506
|
// RSC request, we'll pass the minimal postponed data to the render
|
|
831
507
|
// which will trigger the `supportsDynamicResponse` to be true.
|
|
832
508
|
isDynamicRSCRequest && !isMinimalMode : isDynamicRSCRequest);
|
|
833
|
-
// When
|
|
834
|
-
|
|
509
|
+
// When bots request PPR page, perform the full dynamic rendering.
|
|
510
|
+
// This applies to both DOM bots (like Googlebot) and HTML-limited bots.
|
|
511
|
+
const shouldWaitOnAllReady = Boolean(botType) && isRoutePPREnabled;
|
|
512
|
+
const remainingPrerenderableParams = (prerenderInfo == null ? void 0 : prerenderInfo.remainingPrerenderableParams) ?? [];
|
|
513
|
+
const hasUnresolvedRootFallbackParams = (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === null && (((_prerenderInfo_fallbackRootParams = prerenderInfo.fallbackRootParams) == null ? void 0 : _prerenderInfo_fallbackRootParams.length) ?? 0) > 0;
|
|
835
514
|
let ssgCacheKey = null;
|
|
836
515
|
if (!isDraftMode && isSSG && !supportsDynamicResponse && !isPossibleServerAction && !minimalPostponed && !isDynamicRSCRequest) {
|
|
837
|
-
|
|
516
|
+
// For normal SSG routes we cache by the fully resolved pathname. For
|
|
517
|
+
// partial fallbacks we instead derive the cache key from the shell
|
|
518
|
+
// that matched this request so `/prefix/[one]/[two]` can specialize into
|
|
519
|
+
// `/prefix/c/[two]` without promoting all the way to `/prefix/c/foo`.
|
|
520
|
+
const fallbackPathname = prerenderMatch ? typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : prerenderMatch.source : null;
|
|
521
|
+
if (nextConfig.experimental.partialFallbacks === true && fallbackPathname && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) && !hasUnresolvedRootFallbackParams) {
|
|
522
|
+
if (remainingPrerenderableParams.length > 0) {
|
|
523
|
+
const completedShellCacheKey = buildCompletedShellCacheKey(fallbackPathname, remainingPrerenderableParams, params);
|
|
524
|
+
// If applying the current request params doesn't make the shell any
|
|
525
|
+
// more complete, then this shell is already at its most complete
|
|
526
|
+
// form and should remain shared rather than creating a new cache entry.
|
|
527
|
+
ssgCacheKey = completedShellCacheKey !== fallbackPathname ? completedShellCacheKey : null;
|
|
528
|
+
}
|
|
529
|
+
} else {
|
|
530
|
+
ssgCacheKey = resolvedPathname;
|
|
531
|
+
}
|
|
838
532
|
}
|
|
839
533
|
// the staticPathKey differs from ssgCacheKey since
|
|
840
534
|
// ssgCacheKey is null in dev since we're always in "dynamic"
|
|
841
|
-
// mode in dev to bypass the cache
|
|
842
|
-
//
|
|
535
|
+
// mode in dev to bypass the cache. It can also be null for partial
|
|
536
|
+
// fallback shells that should remain shared and must not create a
|
|
537
|
+
// param-specific ISR entry, but we still need to honor fallback handling.
|
|
843
538
|
let staticPathKey = ssgCacheKey;
|
|
844
|
-
if (!staticPathKey && routeModule.isDev) {
|
|
539
|
+
if (!staticPathKey && (routeModule.isDev || isSSG && pageIsDynamic && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams))) {
|
|
845
540
|
staticPathKey = resolvedPathname;
|
|
846
541
|
}
|
|
847
542
|
// If this is a request for an app path that should be statically generated
|
|
@@ -851,9 +546,8 @@ async function handler(req, res, ctx) {
|
|
|
851
546
|
(0,next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__/* .stripFlightHeaders */ .d)(req.headers);
|
|
852
547
|
}
|
|
853
548
|
const ComponentMod = {
|
|
854
|
-
...
|
|
549
|
+
...next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__,
|
|
855
550
|
tree,
|
|
856
|
-
GlobalError: _home_runner_work_semiont_semiont_apps_frontend_src_app_global_error_tsx__WEBPACK_IMPORTED_MODULE_25__["default"],
|
|
857
551
|
handler,
|
|
858
552
|
routeModule,
|
|
859
553
|
__next_app__
|
|
@@ -871,6 +565,8 @@ async function handler(req, res, ctx) {
|
|
|
871
565
|
const method = req.method || 'GET';
|
|
872
566
|
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.getTracer)();
|
|
873
567
|
const activeSpan = tracer.getActiveScopeSpan();
|
|
568
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
569
|
+
const remainingFallbackRouteParams = nextConfig.experimental.partialFallbacks === true && remainingPrerenderableParams.length > 0 ? (prerenderInfo == null ? void 0 : (_prerenderInfo_fallbackRouteParams = prerenderInfo.fallbackRouteParams) == null ? void 0 : _prerenderInfo_fallbackRouteParams.filter((param)=>!remainingPrerenderableParams.some((prerenderableParam)=>prerenderableParam.paramName === param.paramName))) ?? [] : [];
|
|
874
570
|
const render404 = async ()=>{
|
|
875
571
|
// TODO: should route-module itself handle rendering the 404
|
|
876
572
|
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
@@ -883,6 +579,7 @@ async function handler(req, res, ctx) {
|
|
|
883
579
|
try {
|
|
884
580
|
const varyHeader = routeModule.getVaryHeader(resolvedPathname, interceptionRoutePatterns);
|
|
885
581
|
res.setHeader('Vary', varyHeader);
|
|
582
|
+
let parentSpan;
|
|
886
583
|
const invokeRouteModule = async (span, context)=>{
|
|
887
584
|
const nextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__.NodeNextRequest(req);
|
|
888
585
|
const nextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__.NodeNextResponse(res);
|
|
@@ -910,19 +607,29 @@ async function handler(req, res, ctx) {
|
|
|
910
607
|
'next.span_name': name
|
|
911
608
|
});
|
|
912
609
|
span.updateName(name);
|
|
610
|
+
// Propagate http.route to the parent span if one exists (e.g.
|
|
611
|
+
// a platform-created HTTP span in adapter deployments).
|
|
612
|
+
if (parentSpan && parentSpan !== span) {
|
|
613
|
+
parentSpan.setAttribute('http.route', route);
|
|
614
|
+
parentSpan.updateName(name);
|
|
615
|
+
}
|
|
913
616
|
} else {
|
|
914
617
|
span.updateName(`${method} ${srcPage}`);
|
|
915
618
|
}
|
|
916
619
|
});
|
|
917
620
|
};
|
|
918
|
-
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'incrementalCache');
|
|
621
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);
|
|
622
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
623
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
919
624
|
const doRender = async ({ span, postponed, fallbackRouteParams, forceStaticRender })=>{
|
|
920
625
|
const context = {
|
|
921
626
|
query,
|
|
922
627
|
params,
|
|
923
628
|
page: normalizedSrcPage,
|
|
924
629
|
sharedContext: {
|
|
925
|
-
buildId
|
|
630
|
+
buildId,
|
|
631
|
+
deploymentId,
|
|
632
|
+
clientAssetToken
|
|
926
633
|
},
|
|
927
634
|
serverComponentsHmrCache: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'serverComponentsHmrCache'),
|
|
928
635
|
fallbackRouteParams,
|
|
@@ -958,7 +665,6 @@ async function handler(req, res, ctx) {
|
|
|
958
665
|
trailingSlash: nextConfig.trailingSlash,
|
|
959
666
|
images: nextConfig.images,
|
|
960
667
|
previewProps: prerenderManifest.preview,
|
|
961
|
-
deploymentId: deploymentId,
|
|
962
668
|
enableTainting: nextConfig.experimental.taint,
|
|
963
669
|
htmlLimitedBots: nextConfig.htmlLimitedBots,
|
|
964
670
|
reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
|
|
@@ -967,8 +673,9 @@ async function handler(req, res, ctx) {
|
|
|
967
673
|
cacheLifeProfiles: nextConfig.cacheLife,
|
|
968
674
|
basePath: nextConfig.basePath,
|
|
969
675
|
serverActions: nextConfig.experimental.serverActions,
|
|
676
|
+
logServerFunctions: typeof nextConfig.logging === 'object' && Boolean(nextConfig.logging.serverFunctions),
|
|
970
677
|
...isDebugStaticShell || isDebugDynamicAccesses || isDebugFallbackShell ? {
|
|
971
|
-
|
|
678
|
+
isBuildTimePrerendering: true,
|
|
972
679
|
supportsDynamicResponse: false,
|
|
973
680
|
isStaticGeneration: true,
|
|
974
681
|
isDebugDynamicAccesses: isDebugDynamicAccesses
|
|
@@ -979,11 +686,14 @@ async function handler(req, res, ctx) {
|
|
|
979
686
|
expireTime: nextConfig.expireTime,
|
|
980
687
|
staleTimes: nextConfig.experimental.staleTimes,
|
|
981
688
|
dynamicOnHover: Boolean(nextConfig.experimental.dynamicOnHover),
|
|
689
|
+
optimisticRouting: Boolean(nextConfig.experimental.optimisticRouting),
|
|
982
690
|
inlineCss: Boolean(nextConfig.experimental.inlineCss),
|
|
691
|
+
prefetchInlining: nextConfig.experimental.prefetchInlining ?? false,
|
|
983
692
|
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
693
|
+
cachedNavigations: Boolean(nextConfig.experimental.cachedNavigations),
|
|
984
694
|
clientTraceMetadata: nextConfig.experimental.clientTraceMetadata || [],
|
|
985
695
|
clientParamParsingOrigins: nextConfig.experimental.clientParamParsingOrigins,
|
|
986
|
-
maxPostponedStateSizeBytes: (0,
|
|
696
|
+
maxPostponedStateSizeBytes: (0,next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__.parseMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize)
|
|
987
697
|
},
|
|
988
698
|
waitUntil: ctx.waitUntil,
|
|
989
699
|
onClose: (cb)=>{
|
|
@@ -991,15 +701,9 @@ async function handler(req, res, ctx) {
|
|
|
991
701
|
},
|
|
992
702
|
onAfterTaskError: ()=>{},
|
|
993
703
|
onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext),
|
|
994
|
-
err: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'invokeError')
|
|
995
|
-
dev: routeModule.isDev
|
|
704
|
+
err: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'invokeError')
|
|
996
705
|
}
|
|
997
706
|
};
|
|
998
|
-
if (isDebugStaticShell || isDebugDynamicAccesses) {
|
|
999
|
-
context.renderOpts.nextExport = true;
|
|
1000
|
-
context.renderOpts.supportsDynamicResponse = false;
|
|
1001
|
-
context.renderOpts.isDebugDynamicAccesses = isDebugDynamicAccesses;
|
|
1002
|
-
}
|
|
1003
707
|
// When we're revalidating in the background, we should not allow dynamic
|
|
1004
708
|
// responses.
|
|
1005
709
|
if (forceStaticRender) {
|
|
@@ -1062,6 +766,16 @@ async function handler(req, res, ctx) {
|
|
|
1062
766
|
if (prerenderInfo) {
|
|
1063
767
|
fallbackMode = (0,next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.parseFallbackField)(prerenderInfo.fallback);
|
|
1064
768
|
}
|
|
769
|
+
if (nextConfig.experimental.partialFallbacks === true && (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === null && !hasUnresolvedRootFallbackParams && remainingPrerenderableParams.length > 0) {
|
|
770
|
+
// Generic source shells without unresolved root params don't have a
|
|
771
|
+
// concrete fallback file of their own, so they're marked as blocking.
|
|
772
|
+
// When we can complete the shell into a more specific
|
|
773
|
+
// prerendered shell for this request, treat it like a prerender
|
|
774
|
+
// fallback so we can serve that shell instead of blocking on the full
|
|
775
|
+
// route. Root-param shells stay blocking, since unknown root branches
|
|
776
|
+
// should not inherit a shell from another generated branch.
|
|
777
|
+
fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.PRERENDER;
|
|
778
|
+
}
|
|
1065
779
|
// When serving a HTML bot request, we want to serve a blocking render and
|
|
1066
780
|
// not the prerendered page. This ensures that the correct content is served
|
|
1067
781
|
// to the bot in the head.
|
|
@@ -1086,10 +800,10 @@ async function handler(req, res, ctx) {
|
|
|
1086
800
|
// getStaticPaths.
|
|
1087
801
|
(isProduction || prerenderInfo) && // When fallback isn't present, abort this render so we 404
|
|
1088
802
|
fallbackMode === next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.NOT_FOUND) {
|
|
1089
|
-
if (nextConfig.
|
|
803
|
+
if (nextConfig.adapterPath) {
|
|
1090
804
|
return await render404();
|
|
1091
805
|
}
|
|
1092
|
-
throw new
|
|
806
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__.NoFallbackError();
|
|
1093
807
|
}
|
|
1094
808
|
// When cacheComponents is enabled, we can use the fallback
|
|
1095
809
|
// response if the request is not a dynamic RSC request because the
|
|
@@ -1098,10 +812,19 @@ async function handler(req, res, ctx) {
|
|
|
1098
812
|
// contains param references, and therefore we can't use the fallback.
|
|
1099
813
|
if (isRoutePPREnabled && (nextConfig.cacheComponents ? !isDynamicRSCRequest : !isRSCRequest)) {
|
|
1100
814
|
const cacheKey = isProduction && typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : normalizedSrcPage;
|
|
1101
|
-
const fallbackRouteParams = //
|
|
1102
|
-
//
|
|
1103
|
-
|
|
815
|
+
const fallbackRouteParams = // In production or when debugging the static shell (e.g. instant
|
|
816
|
+
// navigation testing), use the prerender manifest's fallback
|
|
817
|
+
// route params which correctly identifies which params are
|
|
818
|
+
// unknown. Note: in dev, this block is only entered for
|
|
819
|
+
// non-prerendered URLs (guarded by the outer condition).
|
|
820
|
+
(isProduction || isDebugStaticShell) && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : // fallback (simulating the worst-case shell).
|
|
1104
821
|
isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
|
|
822
|
+
// When rendering a debug static shell, override the fallback
|
|
823
|
+
// params on the request so that the staged rendering correctly
|
|
824
|
+
// defers params that are not statically known.
|
|
825
|
+
if (isDebugStaticShell && fallbackRouteParams) {
|
|
826
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'fallbackParams', fallbackRouteParams);
|
|
827
|
+
}
|
|
1105
828
|
// We use the response cache here to handle the revalidation and
|
|
1106
829
|
// management of the fallback shell.
|
|
1107
830
|
const fallbackResponse = await routeModule.handleResponse({
|
|
@@ -1117,8 +840,12 @@ async function handler(req, res, ctx) {
|
|
|
1117
840
|
// We pass `undefined` as rendering a fallback isn't resumed
|
|
1118
841
|
// here.
|
|
1119
842
|
postponed: undefined,
|
|
843
|
+
// Always serve the shell that matched this request
|
|
844
|
+
// immediately. If there are still prerenderable params left,
|
|
845
|
+
// the background path below will complete the shell into a
|
|
846
|
+
// more specific cache entry for later requests.
|
|
1120
847
|
fallbackRouteParams,
|
|
1121
|
-
forceStaticRender:
|
|
848
|
+
forceStaticRender: true
|
|
1122
849
|
}),
|
|
1123
850
|
waitUntil: ctx.waitUntil,
|
|
1124
851
|
isMinimalMode
|
|
@@ -1127,6 +854,39 @@ async function handler(req, res, ctx) {
|
|
|
1127
854
|
if (fallbackResponse === null) return null;
|
|
1128
855
|
// Otherwise, if we did get a fallback response, we should return it.
|
|
1129
856
|
if (fallbackResponse) {
|
|
857
|
+
if (!isMinimalMode && isRoutePPREnabled && // Match the build-time contract: only fallback shells that can
|
|
858
|
+
// still be completed with prerenderable params should upgrade.
|
|
859
|
+
remainingPrerenderableParams.length > 0 && nextConfig.experimental.partialFallbacks === true && ssgCacheKey && incrementalCache && !isOnDemandRevalidate && !isDebugFallbackShell && // The testing API relies on deterministic shell behavior, so
|
|
860
|
+
// don't upgrade fallback shells in the background when it's
|
|
861
|
+
// exposed.
|
|
862
|
+
!exposeTestingApi && // Instant Navigation Testing API requests intentionally keep
|
|
863
|
+
// the route in shell mode; don't upgrade these in background.
|
|
864
|
+
!isInstantNavigationTest && // Avoid background revalidate during prefetches; this can trigger
|
|
865
|
+
// static prerender errors that surface as 500s for the prefetch
|
|
866
|
+
// request itself.
|
|
867
|
+
!isPrefetchRSCRequest) {
|
|
868
|
+
(0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__.scheduleOnNextTick)(async ()=>{
|
|
869
|
+
const responseCache = routeModule.getResponseCache(req);
|
|
870
|
+
try {
|
|
871
|
+
// Only the params that were just specialized should be
|
|
872
|
+
// removed from the fallback render. Any remaining fallback
|
|
873
|
+
// params stay deferred so the revalidated result is a more
|
|
874
|
+
// specific shell (e.g. `/prefix/c/[two]`), not a fully
|
|
875
|
+
// concrete route (`/prefix/c/foo`).
|
|
876
|
+
await responseCache.revalidate(ssgCacheKey, incrementalCache, isRoutePPREnabled, false, (c)=>{
|
|
877
|
+
return doRender({
|
|
878
|
+
span: c.span,
|
|
879
|
+
postponed: undefined,
|
|
880
|
+
fallbackRouteParams: remainingFallbackRouteParams.length > 0 ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(remainingFallbackRouteParams) : null,
|
|
881
|
+
forceStaticRender: true
|
|
882
|
+
});
|
|
883
|
+
}, // We don't have a prior entry for this param-specific shell.
|
|
884
|
+
null, hasResolved, ctx.waitUntil);
|
|
885
|
+
} catch (err) {
|
|
886
|
+
console.error('Error revalidating the page in the background', err);
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
}
|
|
1130
890
|
// Remove the cache control from the response to prevent it from being
|
|
1131
891
|
// used in the surrounding cache.
|
|
1132
892
|
delete fallbackResponse.cacheControl;
|
|
@@ -1137,12 +897,15 @@ async function handler(req, res, ctx) {
|
|
|
1137
897
|
// Only requests that aren't revalidating can be resumed. If we have the
|
|
1138
898
|
// minimal postponed data, then we should resume the render with it.
|
|
1139
899
|
let postponed = !isOnDemandRevalidate && !isRevalidating && minimalPostponed ? minimalPostponed : undefined;
|
|
1140
|
-
// If this is a dynamic RSC request
|
|
1141
|
-
// the static render (if available). This
|
|
1142
|
-
// resume data cache (RDC) from the static
|
|
1143
|
-
// is consistent between the static and
|
|
900
|
+
// If this is a dynamic RSC request or a server action request, we should
|
|
901
|
+
// use the postponed data from the static render (if available). This
|
|
902
|
+
// ensures that we can utilize the resume data cache (RDC) from the static
|
|
903
|
+
// render to ensure that the data is consistent between the static and
|
|
904
|
+
// dynamic renders (for navigations) or when re-rendering after a server
|
|
905
|
+
// action.
|
|
1144
906
|
if (// Only enable RDC for Navigations if the feature is enabled.
|
|
1145
|
-
supportsRDCForNavigations && "nodejs" !== 'edge' && !isMinimalMode && incrementalCache &&
|
|
907
|
+
supportsRDCForNavigations && "nodejs" !== 'edge' && !isMinimalMode && incrementalCache && // Include both dynamic RSC requests (navigations) and server actions
|
|
908
|
+
(isDynamicRSCRequest || isPossibleServerAction) && // We don't typically trigger an on-demand revalidation for dynamic RSC
|
|
1146
909
|
// requests, as we're typically revalidating the page in the background
|
|
1147
910
|
// instead. However, if the cache entry is stale, we should trigger a
|
|
1148
911
|
// background revalidation on dynamic RSC requests. This prevents us
|
|
@@ -1167,7 +930,7 @@ async function handler(req, res, ctx) {
|
|
|
1167
930
|
(incrementalCacheEntry.isStale === -1 || incrementalCacheEntry.isStale === true)) {
|
|
1168
931
|
// We want to schedule this on the next tick to ensure that the
|
|
1169
932
|
// render is not blocked on it.
|
|
1170
|
-
(0,
|
|
933
|
+
(0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__.scheduleOnNextTick)(async ()=>{
|
|
1171
934
|
const responseCache = routeModule.getResponseCache(req);
|
|
1172
935
|
try {
|
|
1173
936
|
await responseCache.revalidate(resolvedPathname, incrementalCache, isRoutePPREnabled, false, (c)=>responseGenerator({
|
|
@@ -1204,11 +967,21 @@ async function handler(req, res, ctx) {
|
|
|
1204
967
|
}
|
|
1205
968
|
};
|
|
1206
969
|
}
|
|
1207
|
-
const fallbackRouteParams = //
|
|
1208
|
-
//
|
|
1209
|
-
//
|
|
1210
|
-
isProduction && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams)
|
|
1211
|
-
|
|
970
|
+
const fallbackRouteParams = // In production or when debugging the static shell for a
|
|
971
|
+
// non-prerendered URL, use the prerender manifest's fallback route
|
|
972
|
+
// params which correctly identifies which params are unknown.
|
|
973
|
+
(isProduction && (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'renderFallbackShell') || isDebugStaticShell && !isPrerendered) && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
|
|
974
|
+
// For staged dynamic rendering (Cached Navigations) and debug static
|
|
975
|
+
// shell rendering, pass the fallback params via request meta so the
|
|
976
|
+
// RequestStore knows which params to defer. We don't pass them as
|
|
977
|
+
// fallbackRouteParams because that would replace actual param values
|
|
978
|
+
// with opaque placeholders during segment resolution.
|
|
979
|
+
if ((isProduction || isDebugStaticShell) && nextConfig.cacheComponents && !isPrerendered && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams)) {
|
|
980
|
+
const fallbackParams = (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams);
|
|
981
|
+
if (fallbackParams) {
|
|
982
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'fallbackParams', fallbackParams);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
1212
985
|
// Perform the render.
|
|
1213
986
|
return doRender({
|
|
1214
987
|
span,
|
|
@@ -1239,7 +1012,7 @@ async function handler(req, res, ctx) {
|
|
|
1239
1012
|
}
|
|
1240
1013
|
// In dev, we should not cache pages for any reason.
|
|
1241
1014
|
if (routeModule.isDev) {
|
|
1242
|
-
res.setHeader('Cache-Control', 'no-
|
|
1015
|
+
res.setHeader('Cache-Control', 'no-cache, must-revalidate');
|
|
1243
1016
|
}
|
|
1244
1017
|
if (!cacheEntry) {
|
|
1245
1018
|
if (ssgCacheKey) {
|
|
@@ -1265,6 +1038,16 @@ async function handler(req, res, ctx) {
|
|
|
1265
1038
|
});
|
|
1266
1039
|
}
|
|
1267
1040
|
const didPostpone = typeof cacheEntry.value.postponed === 'string';
|
|
1041
|
+
// Set the build ID header for RSC navigation requests when deploymentId is configured. This
|
|
1042
|
+
// corresponds with maybeAppendBuildIdToRSCPayload in app-render.tsx which omits the build ID
|
|
1043
|
+
// from the RSC payload when deploymentId is set (relying on this header instead). Server
|
|
1044
|
+
// actions are excluded here because action redirect responses get the deployment ID header
|
|
1045
|
+
// from the pre-fetched redirect target (via createRedirectRenderResult in action-handler.ts
|
|
1046
|
+
// which copies headers from the internal RSC fetch).
|
|
1047
|
+
// For static prerenders served from CDN, routes-manifest.json adds a header.
|
|
1048
|
+
if (isRSCRequest && !isPossibleServerAction && deploymentId) {
|
|
1049
|
+
res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_NAV_DEPLOYMENT_ID_HEADER, deploymentId);
|
|
1050
|
+
}
|
|
1268
1051
|
if (isSSG && // We don't want to send a cache header for requests that contain dynamic
|
|
1269
1052
|
// data. If this is a Dynamic RSC request or wasn't a Prefetch RSC
|
|
1270
1053
|
// request, then we should set the cache header.
|
|
@@ -1325,7 +1108,7 @@ async function handler(req, res, ctx) {
|
|
|
1325
1108
|
};
|
|
1326
1109
|
} else {
|
|
1327
1110
|
cacheControl = {
|
|
1328
|
-
revalidate: next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.
|
|
1111
|
+
revalidate: next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.CACHE_ONE_YEAR_SECONDS,
|
|
1329
1112
|
expire: undefined
|
|
1330
1113
|
};
|
|
1331
1114
|
}
|
|
@@ -1353,7 +1136,7 @@ async function handler(req, res, ctx) {
|
|
|
1353
1136
|
const matchedSegment = cachedData.segmentData.get(segmentPrefetchHeader);
|
|
1354
1137
|
if (matchedSegment !== undefined) {
|
|
1355
1138
|
// Cache hit
|
|
1356
|
-
return (0,
|
|
1139
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1357
1140
|
req,
|
|
1358
1141
|
res,
|
|
1359
1142
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1369,7 +1152,7 @@ async function handler(req, res, ctx) {
|
|
|
1369
1152
|
// don't bother to respond with 404, because these requests are only
|
|
1370
1153
|
// issued as part of a prefetch.
|
|
1371
1154
|
res.statusCode = 204;
|
|
1372
|
-
return (0,
|
|
1155
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1373
1156
|
req,
|
|
1374
1157
|
res,
|
|
1375
1158
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1424,7 +1207,7 @@ async function handler(req, res, ctx) {
|
|
|
1424
1207
|
res.statusCode = cachedData.status;
|
|
1425
1208
|
}
|
|
1426
1209
|
// Redirect information is encoded in RSC payload, so we don't need to use redirect status codes
|
|
1427
|
-
if (!isMinimalMode && cachedData.status &&
|
|
1210
|
+
if (!isMinimalMode && cachedData.status && next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__.RedirectStatusCode[cachedData.status] && isRSCRequest) {
|
|
1428
1211
|
res.statusCode = 200;
|
|
1429
1212
|
}
|
|
1430
1213
|
// Mark that the request did postpone.
|
|
@@ -1442,7 +1225,7 @@ async function handler(req, res, ctx) {
|
|
|
1442
1225
|
if (cachedData.html.contentType !== next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER) {
|
|
1443
1226
|
if (nextConfig.cacheComponents) {
|
|
1444
1227
|
res.statusCode = 404;
|
|
1445
|
-
return (0,
|
|
1228
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1446
1229
|
req,
|
|
1447
1230
|
res,
|
|
1448
1231
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1452,14 +1235,14 @@ async function handler(req, res, ctx) {
|
|
|
1452
1235
|
});
|
|
1453
1236
|
} else {
|
|
1454
1237
|
// Otherwise this case is not expected.
|
|
1455
|
-
throw Object.defineProperty(new
|
|
1238
|
+
throw Object.defineProperty(new next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__.InvariantError(`Expected RSC response, got ${cachedData.html.contentType}`), "__NEXT_ERROR_CODE", {
|
|
1456
1239
|
value: "E789",
|
|
1457
1240
|
enumerable: false,
|
|
1458
1241
|
configurable: true
|
|
1459
1242
|
});
|
|
1460
1243
|
}
|
|
1461
1244
|
}
|
|
1462
|
-
return (0,
|
|
1245
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1463
1246
|
req,
|
|
1464
1247
|
res,
|
|
1465
1248
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1470,7 +1253,7 @@ async function handler(req, res, ctx) {
|
|
|
1470
1253
|
}
|
|
1471
1254
|
// As this isn't a prefetch request, we should serve the static flight
|
|
1472
1255
|
// data.
|
|
1473
|
-
return (0,
|
|
1256
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1474
1257
|
req,
|
|
1475
1258
|
res,
|
|
1476
1259
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1479,8 +1262,29 @@ async function handler(req, res, ctx) {
|
|
|
1479
1262
|
cacheControl: cacheEntry.cacheControl
|
|
1480
1263
|
});
|
|
1481
1264
|
}
|
|
1482
|
-
// This is a request for HTML data.
|
|
1483
|
-
const body = cachedData.html;
|
|
1265
|
+
// This is a request for HTML data.
|
|
1266
|
+
const body = cachedData.html;
|
|
1267
|
+
// Instant Navigation Testing API: serve the static shell with an
|
|
1268
|
+
// injected script that sets self.__next_instant_test and kicks off a
|
|
1269
|
+
// static RSC fetch for hydration. The transform stream also appends
|
|
1270
|
+
// closing </body></html> tags so the browser can parse the full document.
|
|
1271
|
+
// In dev mode, also inject self.__next_r so the HMR WebSocket and
|
|
1272
|
+
// debug channel can initialize.
|
|
1273
|
+
if (isInstantNavigationTest && isDebugStaticShell) {
|
|
1274
|
+
const instantTestRequestId = routeModule.isDev === true ? crypto.randomUUID() : null;
|
|
1275
|
+
body.pipeThrough((0,next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__.createInstantTestScriptInsertionTransformStream)(instantTestRequestId));
|
|
1276
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1277
|
+
req,
|
|
1278
|
+
res,
|
|
1279
|
+
generateEtags: nextConfig.generateEtags,
|
|
1280
|
+
poweredByHeader: nextConfig.poweredByHeader,
|
|
1281
|
+
result: body,
|
|
1282
|
+
cacheControl: {
|
|
1283
|
+
revalidate: 0,
|
|
1284
|
+
expire: undefined
|
|
1285
|
+
}
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1484
1288
|
// If there's no postponed state, we should just serve the HTML. This
|
|
1485
1289
|
// should also be the case for a resume request because it's completed
|
|
1486
1290
|
// as a server render (rather than a static render).
|
|
@@ -1489,7 +1293,7 @@ async function handler(req, res, ctx) {
|
|
|
1489
1293
|
// that's between the static and dynamic parts so we can compare the
|
|
1490
1294
|
// chunks and add assertions.
|
|
1491
1295
|
if (false) {}
|
|
1492
|
-
return (0,
|
|
1296
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1493
1297
|
req,
|
|
1494
1298
|
res,
|
|
1495
1299
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1511,7 +1315,7 @@ async function handler(req, res, ctx) {
|
|
|
1511
1315
|
controller.close();
|
|
1512
1316
|
}
|
|
1513
1317
|
}));
|
|
1514
|
-
return (0,
|
|
1318
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1515
1319
|
req,
|
|
1516
1320
|
res,
|
|
1517
1321
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1568,7 +1372,7 @@ async function handler(req, res, ctx) {
|
|
|
1568
1372
|
console.error("couldn't abort transformer", e);
|
|
1569
1373
|
});
|
|
1570
1374
|
});
|
|
1571
|
-
return (0,
|
|
1375
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1572
1376
|
req,
|
|
1573
1377
|
res,
|
|
1574
1378
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1585,9 +1389,10 @@ async function handler(req, res, ctx) {
|
|
|
1585
1389
|
};
|
|
1586
1390
|
// TODO: activeSpan code path is for when wrapped by
|
|
1587
1391
|
// next-server can be removed when this is no longer used
|
|
1588
|
-
if (activeSpan) {
|
|
1392
|
+
if (isWrappedByNextServer && activeSpan) {
|
|
1589
1393
|
await handleResponse(activeSpan);
|
|
1590
1394
|
} else {
|
|
1395
|
+
parentSpan = tracer.getActiveScopeSpan();
|
|
1591
1396
|
return await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__.BaseServerSpan.handleRequest, {
|
|
1592
1397
|
spanName: `${method} ${srcPage}`,
|
|
1593
1398
|
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.SpanKind.SERVER,
|
|
@@ -1595,41 +1400,501 @@ async function handler(req, res, ctx) {
|
|
|
1595
1400
|
'http.method': method,
|
|
1596
1401
|
'http.target': req.url
|
|
1597
1402
|
}
|
|
1598
|
-
}, handleResponse));
|
|
1403
|
+
}, handleResponse), undefined, !isWrappedByNextServer);
|
|
1404
|
+
}
|
|
1405
|
+
} catch (err) {
|
|
1406
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__.NoFallbackError)) {
|
|
1407
|
+
const silenceLog = false;
|
|
1408
|
+
await routeModule.onRequestError(req, err, {
|
|
1409
|
+
routerKind: 'App Router',
|
|
1410
|
+
routePath: srcPage,
|
|
1411
|
+
routeType: 'render',
|
|
1412
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__/* .getRevalidateReason */ .c)({
|
|
1413
|
+
isStaticGeneration: isSSG,
|
|
1414
|
+
isOnDemandRevalidate
|
|
1415
|
+
})
|
|
1416
|
+
}, silenceLog, routerServerContext);
|
|
1417
|
+
}
|
|
1418
|
+
// rethrow so that we can handle serving error page
|
|
1419
|
+
throw err;
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
// TODO: omit this from production builds, only test builds should include it
|
|
1423
|
+
/**
|
|
1424
|
+
* Creates a readable stream that emits a PPR boundary sentinel.
|
|
1425
|
+
*
|
|
1426
|
+
* @returns A readable stream that emits a PPR boundary sentinel.
|
|
1427
|
+
*/ function createPPRBoundarySentinel() {
|
|
1428
|
+
return new ReadableStream({
|
|
1429
|
+
start (controller) {
|
|
1430
|
+
controller.enqueue(new TextEncoder().encode('<!-- PPR_BOUNDARY_SENTINEL -->'));
|
|
1431
|
+
controller.close();
|
|
1432
|
+
}
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
//# sourceMappingURL=app-page.js.map
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
/***/ }),
|
|
1440
|
+
|
|
1441
|
+
/***/ 26713:
|
|
1442
|
+
/***/ ((module) => {
|
|
1443
|
+
|
|
1444
|
+
"use strict";
|
|
1445
|
+
module.exports = require("next/dist/shared/lib/router/utils/is-bot");
|
|
1446
|
+
|
|
1447
|
+
/***/ }),
|
|
1448
|
+
|
|
1449
|
+
/***/ 28354:
|
|
1450
|
+
/***/ ((module) => {
|
|
1451
|
+
|
|
1452
|
+
"use strict";
|
|
1453
|
+
module.exports = require("util");
|
|
1454
|
+
|
|
1455
|
+
/***/ }),
|
|
1456
|
+
|
|
1457
|
+
/***/ 29294:
|
|
1458
|
+
/***/ ((module) => {
|
|
1459
|
+
|
|
1460
|
+
"use strict";
|
|
1461
|
+
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
1462
|
+
|
|
1463
|
+
/***/ }),
|
|
1464
|
+
|
|
1465
|
+
/***/ 30090:
|
|
1466
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1467
|
+
|
|
1468
|
+
"use strict";
|
|
1469
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1470
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1471
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1472
|
+
/* harmony export */ });
|
|
1473
|
+
/* harmony import */ var react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30274);
|
|
1474
|
+
/* harmony import */ var react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__);
|
|
1475
|
+
// This file is generated by the Webpack next-flight-loader.
|
|
1476
|
+
|
|
1477
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__.registerClientReference)(
|
|
1478
|
+
function() { throw new Error("Attempted to call the default export of \"/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/know/resource/[id]/page.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."); },
|
|
1479
|
+
"/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/know/resource/[id]/page.tsx",
|
|
1480
|
+
"default",
|
|
1481
|
+
));
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
/***/ }),
|
|
1485
|
+
|
|
1486
|
+
/***/ 33338:
|
|
1487
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1488
|
+
|
|
1489
|
+
"use strict";
|
|
1490
|
+
// ESM COMPAT FLAG
|
|
1491
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1492
|
+
|
|
1493
|
+
// EXPORTS
|
|
1494
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1495
|
+
"default": () => (/* binding */ KnowledgeResourcePage)
|
|
1496
|
+
});
|
|
1497
|
+
|
|
1498
|
+
// EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js
|
|
1499
|
+
var react_jsx_runtime = __webpack_require__(92692);
|
|
1500
|
+
// EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
|
|
1501
|
+
var react = __webpack_require__(71277);
|
|
1502
|
+
// EXTERNAL MODULE: ../../node_modules/next/dist/api/navigation.js
|
|
1503
|
+
var navigation = __webpack_require__(67994);
|
|
1504
|
+
// EXTERNAL MODULE: ../../node_modules/use-intl/dist/esm/production/react.js + 18 modules
|
|
1505
|
+
var production_react = __webpack_require__(23211);
|
|
1506
|
+
// EXTERNAL MODULE: ../../packages/react-ui/dist/index.mjs + 27 modules
|
|
1507
|
+
var dist = __webpack_require__(76552);
|
|
1508
|
+
;// __barrel_optimize__?names=useResources!=!../../packages/react-ui/dist/index.mjs
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
// EXTERNAL MODULE: ../../packages/core/dist/index.js
|
|
1512
|
+
var core_dist = __webpack_require__(4698);
|
|
1513
|
+
// EXTERNAL MODULE: ./src/lib/routing.ts
|
|
1514
|
+
var routing = __webpack_require__(46391);
|
|
1515
|
+
;// __barrel_optimize__?names=ResourceErrorState,ResourceLoadingState,ResourceViewerPage!=!../../packages/react-ui/dist/index.mjs
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
// EXTERNAL MODULE: ./src/components/toolbar/ToolbarPanels.tsx + 4 modules
|
|
1519
|
+
var ToolbarPanels = __webpack_require__(50436);
|
|
1520
|
+
;// ./src/app/[locale]/know/resource/[id]/page.tsx
|
|
1521
|
+
/* __next_internal_client_entry_do_not_use__ default auto */
|
|
1522
|
+
/**
|
|
1523
|
+
* Resource Viewer Page - Minimal Next.js routing wrapper
|
|
1524
|
+
*
|
|
1525
|
+
* Handles only Next.js routing and initial resource loading.
|
|
1526
|
+
* All other concerns (data loading, events, UI state) are handled by ResourceViewerPage.
|
|
1527
|
+
*/
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
// Feature components
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Main page component - handles only routing and initial resource load
|
|
1538
|
+
*/ function KnowledgeResourcePage() {
|
|
1539
|
+
const params = (0,navigation.useParams)();
|
|
1540
|
+
const locale = (0,production_react/* useLocale */.Ym)();
|
|
1541
|
+
// The URL param is the bare resource ID
|
|
1542
|
+
const rId = (0,core_dist/* resourceId */.a)(params?.id);
|
|
1543
|
+
// Load only the resource descriptor - everything else is loaded by ResourceViewerPage
|
|
1544
|
+
const resources = (0,dist.useResources)();
|
|
1545
|
+
const { data: docData, isLoading, isError, error, refetch: refetchDocument } = resources.get.useQuery(rId);
|
|
1546
|
+
// Log error for debugging
|
|
1547
|
+
process.env.__NEXT_PRIVATE_MINIMIZE_MACRO_FALSE && (0,react.useEffect)(()=>{
|
|
1548
|
+
if (isError && !isLoading) {
|
|
1549
|
+
console.error(`[Document] Failed to load resource ${rId}:`, error);
|
|
1550
|
+
}
|
|
1551
|
+
}, [
|
|
1552
|
+
isError,
|
|
1553
|
+
isLoading,
|
|
1554
|
+
rId,
|
|
1555
|
+
error
|
|
1556
|
+
]);
|
|
1557
|
+
// Early return: Loading state
|
|
1558
|
+
if (isLoading || !docData) {
|
|
1559
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.ResourceLoadingState, {});
|
|
1560
|
+
}
|
|
1561
|
+
// Early return: Error state
|
|
1562
|
+
if (isError) {
|
|
1563
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.ResourceErrorState, {
|
|
1564
|
+
error: error,
|
|
1565
|
+
onRetry: ()=>refetchDocument()
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1568
|
+
// Early return: ResourceDescriptor not found
|
|
1569
|
+
if (!docData.resource) {
|
|
1570
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.ResourceErrorState, {
|
|
1571
|
+
error: new Error('Resource not found'),
|
|
1572
|
+
onRetry: ()=>refetchDocument()
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
const resource = docData.resource;
|
|
1576
|
+
// resource['@id'] is now a bare ID
|
|
1577
|
+
const canonicalId = (0,core_dist/* resourceId */.a)(resource['@id']);
|
|
1578
|
+
// Render with minimal props - all data loading/events handled inside ResourceViewerPage
|
|
1579
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.ResourceViewerPage, {
|
|
1580
|
+
resource: resource,
|
|
1581
|
+
rUri: canonicalId,
|
|
1582
|
+
locale: locale,
|
|
1583
|
+
Link: routing/* Link */.N,
|
|
1584
|
+
routes: routing/* routes */.J,
|
|
1585
|
+
ToolbarPanels: ToolbarPanels/* ToolbarPanels */.t,
|
|
1586
|
+
refetchDocument: refetchDocument
|
|
1587
|
+
});
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
/***/ }),
|
|
1592
|
+
|
|
1593
|
+
/***/ 33873:
|
|
1594
|
+
/***/ ((module) => {
|
|
1595
|
+
|
|
1596
|
+
"use strict";
|
|
1597
|
+
module.exports = require("path");
|
|
1598
|
+
|
|
1599
|
+
/***/ }),
|
|
1600
|
+
|
|
1601
|
+
/***/ 41025:
|
|
1602
|
+
/***/ ((module) => {
|
|
1603
|
+
|
|
1604
|
+
"use strict";
|
|
1605
|
+
module.exports = require("next/dist/server/app-render/dynamic-access-async-storage.external.js");
|
|
1606
|
+
|
|
1607
|
+
/***/ }),
|
|
1608
|
+
|
|
1609
|
+
/***/ 43954:
|
|
1610
|
+
/***/ ((module) => {
|
|
1611
|
+
|
|
1612
|
+
"use strict";
|
|
1613
|
+
module.exports = require("next/dist/shared/lib/router/utils/interception-routes");
|
|
1614
|
+
|
|
1615
|
+
/***/ }),
|
|
1616
|
+
|
|
1617
|
+
/***/ 50436:
|
|
1618
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1619
|
+
|
|
1620
|
+
"use strict";
|
|
1621
|
+
|
|
1622
|
+
// EXPORTS
|
|
1623
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1624
|
+
t: () => (/* binding */ ToolbarPanels)
|
|
1625
|
+
});
|
|
1626
|
+
|
|
1627
|
+
// EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js
|
|
1628
|
+
var react_jsx_runtime = __webpack_require__(92692);
|
|
1629
|
+
// EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
|
|
1630
|
+
var react = __webpack_require__(71277);
|
|
1631
|
+
// EXTERNAL MODULE: ../../packages/react-ui/dist/index.mjs + 27 modules
|
|
1632
|
+
var dist = __webpack_require__(76552);
|
|
1633
|
+
;// __barrel_optimize__?names=ResizeHandle,SettingsPanel,useEventSubscriptions,usePanelWidth!=!../../packages/react-ui/dist/index.mjs
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
// EXTERNAL MODULE: ../../node_modules/next-auth/react/index.js
|
|
1637
|
+
var next_auth_react = __webpack_require__(62341);
|
|
1638
|
+
// EXTERNAL MODULE: ../../node_modules/next/dist/api/image.js
|
|
1639
|
+
var api_image = __webpack_require__(93523);
|
|
1640
|
+
// EXTERNAL MODULE: ../../node_modules/next-intl/dist/esm/production/react-client/index.js
|
|
1641
|
+
var react_client = __webpack_require__(56305);
|
|
1642
|
+
;// __barrel_optimize__?names=formatTime,sanitizeImageURL,useSessionExpiry!=!../../packages/react-ui/dist/index.mjs
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
// EXTERNAL MODULE: ./src/hooks/useAuth.ts + 1 modules
|
|
1646
|
+
var useAuth = __webpack_require__(31039);
|
|
1647
|
+
;// ./src/components/UserPanel.tsx
|
|
1648
|
+
/* __next_internal_client_entry_do_not_use__ UserPanel auto */
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
// Fallback avatar when image fails to load or is invalid
|
|
1656
|
+
const FALLBACK_AVATAR = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iMTYiIGZpbGw9IiM2QjcyODAiLz4KPHBhdGggZD0iTTE2IDE2QzE4LjIwOTEgMTYgMjAgMTQuMjA5MSAyMCAxMkMyMCA5Ljc5MDg2IDE4LjIwOTEgOCAxNiA4QzEzLjc5MDkgOCAxMiA5Ljc5MDg2IDEyIDEyQzEyIDE0LjIwOTEgMTMuNzkwOSAxNiAxNiAxNloiIGZpbGw9IiNFNUU3RUIiLz4KPHBhdGggZD0iTTI0IDI1QzI0IDIxLjY4NjMgMjAuNDE4MyAxOSAxNiAxOUMxMS41ODE3IDE5IDggMjEuNjg2MyA4IDI1IiBzdHJva2U9IiNFNUU3RUIiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPg==';
|
|
1657
|
+
function UserPanel() {
|
|
1658
|
+
const t = (0,react_client/* useTranslations */.c)('UserPanel');
|
|
1659
|
+
const { displayName, avatarUrl, userDomain, isAdmin, isModerator } = (0,useAuth/* useAuth */.As)();
|
|
1660
|
+
const [imageError, setImageError] = (0,react.useState)(false);
|
|
1661
|
+
const { timeRemaining } = (0,dist.useSessionExpiry)();
|
|
1662
|
+
const sessionTimeFormatted = (0,dist.formatTime)(timeRemaining) ?? 'Unknown';
|
|
1663
|
+
// Sanitize and validate the profile image URL
|
|
1664
|
+
const profileImageUrl = (()=>{
|
|
1665
|
+
if (!avatarUrl || imageError) {
|
|
1666
|
+
return FALLBACK_AVATAR;
|
|
1599
1667
|
}
|
|
1600
|
-
|
|
1601
|
-
if (!
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
routerKind: 'App Router',
|
|
1605
|
-
routePath: srcPage,
|
|
1606
|
-
routeType: 'render',
|
|
1607
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__/* .getRevalidateReason */ .c)({
|
|
1608
|
-
isStaticGeneration: isSSG,
|
|
1609
|
-
isOnDemandRevalidate
|
|
1610
|
-
})
|
|
1611
|
-
}, silenceLog, routerServerContext);
|
|
1668
|
+
const sanitized = (0,dist.sanitizeImageURL)(avatarUrl);
|
|
1669
|
+
if (!sanitized) {
|
|
1670
|
+
console.warn('Invalid profile image URL detected, using fallback');
|
|
1671
|
+
return FALLBACK_AVATAR;
|
|
1612
1672
|
}
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1673
|
+
return sanitized;
|
|
1674
|
+
})();
|
|
1675
|
+
const handleSignOut = async ()=>{
|
|
1676
|
+
await (0,next_auth_react.signOut)({
|
|
1677
|
+
callbackUrl: '/'
|
|
1678
|
+
});
|
|
1679
|
+
};
|
|
1680
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
1681
|
+
className: "semiont-user-panel",
|
|
1682
|
+
children: [
|
|
1683
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("h3", {
|
|
1684
|
+
className: "semiont-user-panel__title",
|
|
1685
|
+
children: t('account')
|
|
1686
|
+
}),
|
|
1687
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
1688
|
+
className: "space-y-4",
|
|
1689
|
+
children: [
|
|
1690
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
1691
|
+
className: "flex items-center gap-3",
|
|
1692
|
+
children: [
|
|
1693
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(api_image["default"], {
|
|
1694
|
+
src: profileImageUrl,
|
|
1695
|
+
alt: t('profileAlt', {
|
|
1696
|
+
name: displayName || t('user')
|
|
1697
|
+
}),
|
|
1698
|
+
width: 48,
|
|
1699
|
+
height: 48,
|
|
1700
|
+
className: "w-12 h-12 rounded-full object-cover",
|
|
1701
|
+
onError: ()=>setImageError(true),
|
|
1702
|
+
unoptimized: profileImageUrl === FALLBACK_AVATAR,
|
|
1703
|
+
sizes: "48px",
|
|
1704
|
+
quality: 85
|
|
1705
|
+
}),
|
|
1706
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
1707
|
+
className: "flex-1 min-w-0",
|
|
1708
|
+
children: [
|
|
1709
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
1710
|
+
className: "semiont-panel-text",
|
|
1711
|
+
children: displayName || t('user')
|
|
1712
|
+
}),
|
|
1713
|
+
userDomain && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
1714
|
+
className: "semiont-panel-text-secondary",
|
|
1715
|
+
children: [
|
|
1716
|
+
"@",
|
|
1717
|
+
userDomain
|
|
1718
|
+
]
|
|
1719
|
+
})
|
|
1720
|
+
]
|
|
1721
|
+
})
|
|
1722
|
+
]
|
|
1723
|
+
}),
|
|
1724
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
1725
|
+
children: [
|
|
1726
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("label", {
|
|
1727
|
+
className: "semiont-panel-label",
|
|
1728
|
+
children: t('session')
|
|
1729
|
+
}),
|
|
1730
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
1731
|
+
className: "semiont-session-box",
|
|
1732
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
1733
|
+
className: "semiont-panel-hint",
|
|
1734
|
+
children: t('expiresIn', {
|
|
1735
|
+
time: sessionTimeFormatted
|
|
1736
|
+
})
|
|
1737
|
+
})
|
|
1738
|
+
})
|
|
1739
|
+
]
|
|
1740
|
+
}),
|
|
1741
|
+
(isAdmin || isModerator) && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
1742
|
+
children: [
|
|
1743
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("label", {
|
|
1744
|
+
className: "semiont-panel-label",
|
|
1745
|
+
children: t('privileges')
|
|
1746
|
+
}),
|
|
1747
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
1748
|
+
className: "space-y-1",
|
|
1749
|
+
children: [
|
|
1750
|
+
isAdmin && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
1751
|
+
className: "semiont-privilege-badge semiont-privilege-badge--admin",
|
|
1752
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
1753
|
+
className: "semiont-privilege-text",
|
|
1754
|
+
children: t('administrator')
|
|
1755
|
+
})
|
|
1756
|
+
}),
|
|
1757
|
+
isModerator && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
1758
|
+
className: "semiont-privilege-badge semiont-privilege-badge--moderator",
|
|
1759
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
|
|
1760
|
+
className: "semiont-privilege-text",
|
|
1761
|
+
children: t('moderator')
|
|
1762
|
+
})
|
|
1763
|
+
})
|
|
1764
|
+
]
|
|
1765
|
+
})
|
|
1766
|
+
]
|
|
1767
|
+
}),
|
|
1768
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
1769
|
+
className: "semiont-panel-divider",
|
|
1770
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("button", {
|
|
1771
|
+
onClick: handleSignOut,
|
|
1772
|
+
className: "semiont-signout-button",
|
|
1773
|
+
children: t('signOut')
|
|
1774
|
+
})
|
|
1775
|
+
})
|
|
1776
|
+
]
|
|
1777
|
+
})
|
|
1778
|
+
]
|
|
1779
|
+
});
|
|
1616
1780
|
}
|
|
1617
|
-
|
|
1781
|
+
|
|
1782
|
+
// EXTERNAL MODULE: ../../node_modules/use-intl/dist/esm/production/react.js + 18 modules
|
|
1783
|
+
var production_react = __webpack_require__(23211);
|
|
1784
|
+
// EXTERNAL MODULE: ./src/i18n/routing.ts
|
|
1785
|
+
var routing = __webpack_require__(99704);
|
|
1786
|
+
;// __barrel_optimize__?names=COMMON_PANELS!=!../../packages/react-ui/dist/index.mjs
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
;// ./src/components/toolbar/ToolbarPanels.tsx
|
|
1790
|
+
/* __next_internal_client_entry_do_not_use__ ToolbarPanels auto */
|
|
1791
|
+
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
|
|
1796
|
+
|
|
1618
1797
|
/**
|
|
1619
|
-
*
|
|
1798
|
+
* Renders the toolbar panel container with common panels (user, settings)
|
|
1799
|
+
* and any context-specific panels passed as children.
|
|
1620
1800
|
*
|
|
1621
|
-
*
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1801
|
+
* Settings changes are handled via GlobalSettingsEventBus - no callbacks needed.
|
|
1802
|
+
*
|
|
1803
|
+
* @example
|
|
1804
|
+
* // Simple context (compose, discover, moderate, admin pages)
|
|
1805
|
+
* <ToolbarPanels
|
|
1806
|
+
* activePanel={activePanel}
|
|
1807
|
+
* theme={theme}
|
|
1808
|
+
* showLineNumbers={showLineNumbers}
|
|
1809
|
+
* />
|
|
1810
|
+
*
|
|
1811
|
+
* @example
|
|
1812
|
+
* // Document context with custom panels
|
|
1813
|
+
* <ToolbarPanels
|
|
1814
|
+
* activePanel={activePanel}
|
|
1815
|
+
* theme={theme}
|
|
1816
|
+
* showLineNumbers={showLineNumbers}
|
|
1817
|
+
* >
|
|
1818
|
+
* {activePanel === 'annotations' && <UnifiedAnnotationsPanel ... />}
|
|
1819
|
+
* {activePanel === 'history' && <AnnotationHistory ... />}
|
|
1820
|
+
* {activePanel === 'info' && <ResourceInfoPanel ... />}
|
|
1821
|
+
* {activePanel === 'collaboration' && <CollaborationPanel ... />}
|
|
1822
|
+
* {activePanel === 'jsonld' && <JsonLdPanel ... />}
|
|
1823
|
+
* </ToolbarPanels>
|
|
1824
|
+
*/ function ToolbarPanels({ activePanel, theme, showLineNumbers, hoverDelayMs, children }) {
|
|
1825
|
+
const locale = (0,production_react/* useLocale */.Ym)();
|
|
1826
|
+
const router = (0,routing/* useRouter */.rd)();
|
|
1827
|
+
const pathname = (0,routing/* usePathname */.a8)();
|
|
1828
|
+
const [isPending, startTransition] = (0,react.useTransition)();
|
|
1829
|
+
// Panel width management with localStorage persistence
|
|
1830
|
+
const { width, setWidth, minWidth, maxWidth } = (0,dist.usePanelWidth)();
|
|
1831
|
+
// Handle locale change events
|
|
1832
|
+
const handleLocaleChanged = (0,react.useCallback)(({ locale: newLocale })=>{
|
|
1833
|
+
if (!pathname) return;
|
|
1834
|
+
startTransition(()=>{
|
|
1835
|
+
// The router from @/i18n/routing is locale-aware and will handle the locale prefix
|
|
1836
|
+
router.replace(pathname, {
|
|
1837
|
+
locale: newLocale
|
|
1838
|
+
});
|
|
1839
|
+
});
|
|
1840
|
+
}, [
|
|
1841
|
+
pathname,
|
|
1842
|
+
router,
|
|
1843
|
+
startTransition
|
|
1844
|
+
]);
|
|
1845
|
+
// Subscribe to locale change events
|
|
1846
|
+
(0,dist.useEventSubscriptions)({
|
|
1847
|
+
'settings:locale-changed': handleLocaleChanged
|
|
1848
|
+
});
|
|
1849
|
+
// Don't render container if no panel is active
|
|
1850
|
+
if (!activePanel) {
|
|
1851
|
+
return null;
|
|
1852
|
+
}
|
|
1853
|
+
// In simple context (no children), only user and settings panels are valid.
|
|
1854
|
+
// If a resource-specific panel is still active from a previous route, hide the container.
|
|
1855
|
+
if (!children && !dist.COMMON_PANELS.includes(activePanel)) {
|
|
1856
|
+
return null;
|
|
1857
|
+
}
|
|
1858
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
1859
|
+
className: "semiont-toolbar-panels",
|
|
1860
|
+
style: {
|
|
1861
|
+
width: `${width}px`,
|
|
1862
|
+
position: 'relative'
|
|
1863
|
+
},
|
|
1864
|
+
children: [
|
|
1865
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.ResizeHandle, {
|
|
1866
|
+
onResize: setWidth,
|
|
1867
|
+
minWidth: minWidth,
|
|
1868
|
+
maxWidth: maxWidth,
|
|
1869
|
+
position: "left",
|
|
1870
|
+
ariaLabel: "Resize right panel"
|
|
1871
|
+
}),
|
|
1872
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
1873
|
+
className: "semiont-toolbar-panels__content",
|
|
1874
|
+
children: [
|
|
1875
|
+
children,
|
|
1876
|
+
activePanel === 'user' && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(UserPanel, {}),
|
|
1877
|
+
activePanel === 'settings' && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.SettingsPanel, {
|
|
1878
|
+
showLineNumbers: showLineNumbers,
|
|
1879
|
+
theme: theme,
|
|
1880
|
+
hoverDelayMs: hoverDelayMs,
|
|
1881
|
+
locale: locale,
|
|
1882
|
+
isPendingLocaleChange: isPending
|
|
1883
|
+
})
|
|
1884
|
+
]
|
|
1885
|
+
})
|
|
1886
|
+
]
|
|
1628
1887
|
});
|
|
1629
1888
|
}
|
|
1630
1889
|
|
|
1631
|
-
//# sourceMappingURL=app-page.js.map
|
|
1632
1890
|
|
|
1891
|
+
/***/ }),
|
|
1892
|
+
|
|
1893
|
+
/***/ 55511:
|
|
1894
|
+
/***/ ((module) => {
|
|
1895
|
+
|
|
1896
|
+
"use strict";
|
|
1897
|
+
module.exports = require("crypto");
|
|
1633
1898
|
|
|
1634
1899
|
/***/ }),
|
|
1635
1900
|
|
|
@@ -1688,7 +1953,7 @@ module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
|
1688
1953
|
var __webpack_require__ = require("../../../../../webpack-runtime.js");
|
|
1689
1954
|
__webpack_require__.C(exports);
|
|
1690
1955
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
1691
|
-
var __webpack_exports__ = __webpack_require__.X(0, [
|
|
1956
|
+
var __webpack_exports__ = __webpack_require__.X(0, [8569,4741,9927,7420,2617,7780,3144,8255,9988,5015], () => (__webpack_exec__(20915)));
|
|
1692
1957
|
module.exports = __webpack_exports__;
|
|
1693
1958
|
|
|
1694
1959
|
})();
|