qalita 2.5.4__py3-none-any.whl → 2.6.1__py3-none-any.whl

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.
Files changed (213) hide show
  1. qalita/_frontend/.next/static/_0oyfpC7N2IGDMa04TT9R/_clientMiddlewareManifest.json +6 -0
  2. qalita/_frontend/.next/static/chunks/236f7e5abd6f09ff.js +4 -0
  3. qalita/_frontend/.next/static/chunks/30ea11065999f7ac.js +1 -0
  4. qalita/_frontend/.next/static/chunks/4dd28bc3f722184a.js +2 -0
  5. qalita/_frontend/.next/static/chunks/711d597b816a80c1.js +1 -0
  6. qalita/_frontend/.next/static/chunks/7340adf74ff47ec0.js +1 -0
  7. qalita/_frontend/.next/static/chunks/a6dad97d9634a72d.js.map +1 -0
  8. qalita/_frontend/.next/static/chunks/{e393fec0d8ba175d.js → ecf559101be0ae12.js} +3 -3
  9. qalita/_frontend/.next/static/chunks/turbopack-25186fc8e1264445.js +4 -0
  10. qalita/_frontend/node_modules/@img/sharp-libvips-linux-x64/versions.json +30 -0
  11. qalita/_frontend/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
  12. qalita/_frontend/node_modules/@next/env/package.json +4 -4
  13. qalita/_frontend/node_modules/next/dist/build/analyze/index.js +242 -0
  14. qalita/_frontend/node_modules/next/dist/build/define-env.js +22 -13
  15. qalita/_frontend/node_modules/next/dist/build/entries.js +5 -5
  16. qalita/_frontend/node_modules/next/dist/build/generate-routes-manifest.js +91 -0
  17. qalita/_frontend/node_modules/next/dist/build/index.js +172 -223
  18. qalita/_frontend/node_modules/next/dist/build/output/log.js +4 -7
  19. qalita/_frontend/node_modules/next/dist/build/segment-config/app/app-segments.js +23 -99
  20. qalita/_frontend/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +3 -3
  21. qalita/_frontend/node_modules/next/dist/build/spinner.js +3 -3
  22. qalita/_frontend/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +137 -0
  23. qalita/_frontend/node_modules/next/dist/build/static-paths/app.js +69 -210
  24. qalita/_frontend/node_modules/next/dist/build/static-paths/utils.js +83 -11
  25. qalita/_frontend/node_modules/next/dist/build/swc/index.js +10 -6
  26. qalita/_frontend/node_modules/next/dist/build/templates/app-page.js +21 -14
  27. qalita/_frontend/node_modules/next/dist/build/templates/app-route.js +8 -10
  28. qalita/_frontend/node_modules/next/dist/build/templates/edge-app-route.js +7 -10
  29. qalita/_frontend/node_modules/next/dist/build/templates/edge-ssr-app.js +16 -20
  30. qalita/_frontend/node_modules/next/dist/build/templates/edge-ssr.js +20 -14
  31. qalita/_frontend/node_modules/next/dist/build/templates/edge-wrapper.js +24 -0
  32. qalita/_frontend/node_modules/next/dist/build/templates/middleware.js +7 -6
  33. qalita/_frontend/node_modules/next/dist/build/templates/pages-edge-api.js +3 -2
  34. qalita/_frontend/node_modules/next/dist/build/turbopack-analyze/index.js +116 -0
  35. qalita/_frontend/node_modules/next/dist/build/turbopack-build/impl.js +2 -1
  36. qalita/_frontend/node_modules/next/dist/build/type-check.js +7 -8
  37. qalita/_frontend/node_modules/next/dist/build/utils.js +45 -4
  38. qalita/_frontend/node_modules/next/dist/build/validate-app-paths.js +242 -0
  39. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js +20 -2
  40. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js +2 -5
  41. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js +4 -11
  42. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-root-params-loader.js +1 -1
  43. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +1 -1
  44. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +3 -0
  45. qalita/_frontend/node_modules/next/dist/build/webpack-build/impl.js +1 -0
  46. qalita/_frontend/node_modules/next/dist/build/webpack-config.js +35 -3
  47. qalita/_frontend/node_modules/next/dist/cli/next-test.js +3 -5
  48. qalita/_frontend/node_modules/next/dist/client/components/app-router-headers.js +5 -0
  49. qalita/_frontend/node_modules/next/dist/client/components/app-router-instance.js +3 -11
  50. qalita/_frontend/node_modules/next/dist/client/components/app-router.js +8 -28
  51. qalita/_frontend/node_modules/next/dist/client/components/navigation-devtools.js +5 -7
  52. qalita/_frontend/node_modules/next/dist/client/components/navigation.js +4 -3
  53. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +3 -22
  54. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +6 -18
  55. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +844 -590
  56. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +4 -76
  57. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +21 -18
  58. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +48 -85
  59. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +25 -10
  60. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +126 -113
  61. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +30 -39
  62. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +0 -1
  63. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/router-reducer.js +2 -2
  64. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/cache-map.js +13 -18
  65. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/cache.js +27 -14
  66. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/lru.js +3 -1
  67. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/navigation.js +176 -133
  68. qalita/_frontend/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +12 -12
  69. qalita/_frontend/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +12 -12
  70. qalita/_frontend/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +3 -3
  71. qalita/_frontend/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
  72. qalita/_frontend/node_modules/next/dist/compiled/react-is/package.json +1 -1
  73. qalita/_frontend/node_modules/next/dist/lib/build-custom-route.js +4 -4
  74. qalita/_frontend/node_modules/next/dist/lib/constants.js +0 -5
  75. qalita/_frontend/node_modules/next/dist/lib/default-transpiled-packages.json +1 -0
  76. qalita/_frontend/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +0 -1
  77. qalita/_frontend/node_modules/next/dist/lib/helpers/get-npx-command.js +3 -3
  78. qalita/_frontend/node_modules/next/dist/lib/inline-static-env.js +1 -1
  79. qalita/_frontend/node_modules/next/dist/lib/known-edge-safe-packages.json +1 -0
  80. qalita/_frontend/node_modules/next/dist/lib/metadata/metadata.js +17 -11
  81. qalita/_frontend/node_modules/next/dist/lib/needs-experimental-react.js +2 -2
  82. qalita/_frontend/node_modules/next/dist/lib/resolve-build-paths.js +44 -76
  83. qalita/_frontend/node_modules/next/dist/lib/server-external-packages.jsonc +103 -0
  84. qalita/_frontend/node_modules/next/dist/lib/static-env.js +6 -6
  85. qalita/_frontend/node_modules/next/dist/lib/turbopack-warning.js +3 -5
  86. qalita/_frontend/node_modules/next/dist/lib/typescript/runTypeCheck.js +61 -5
  87. qalita/_frontend/node_modules/next/dist/lib/typescript/type-paths.js +56 -0
  88. qalita/_frontend/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +6 -17
  89. qalita/_frontend/node_modules/next/dist/lib/verify-typescript-setup.js +10 -2
  90. qalita/_frontend/node_modules/next/dist/lib/worker.js +17 -9
  91. qalita/_frontend/node_modules/next/dist/server/app-render/action-handler.js +113 -77
  92. qalita/_frontend/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +36 -15
  93. qalita/_frontend/node_modules/next/dist/server/app-render/app-render-render-utils.js +36 -15
  94. qalita/_frontend/node_modules/next/dist/server/app-render/app-render-scheduling.js +188 -0
  95. qalita/_frontend/node_modules/next/dist/server/app-render/app-render.js +804 -748
  96. qalita/_frontend/node_modules/next/dist/server/app-render/collect-segment-data.js +8 -2
  97. qalita/_frontend/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +1 -1
  98. qalita/_frontend/node_modules/next/dist/server/app-render/create-error-handler.js +42 -75
  99. qalita/_frontend/node_modules/next/dist/server/app-render/dynamic-rendering.js +127 -14
  100. qalita/_frontend/node_modules/next/dist/server/app-render/encryption-utils.js +3 -108
  101. qalita/_frontend/node_modules/next/dist/server/app-render/encryption.js +4 -3
  102. qalita/_frontend/node_modules/next/dist/server/app-render/flight-render-result.js +3 -2
  103. qalita/_frontend/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +9 -8
  104. qalita/_frontend/node_modules/next/dist/server/app-render/get-layer-assets.js +1 -1
  105. qalita/_frontend/node_modules/next/dist/server/app-render/manifests-singleton.js +257 -0
  106. qalita/_frontend/node_modules/next/dist/server/app-render/prospective-render-utils.js +25 -8
  107. qalita/_frontend/node_modules/next/dist/server/app-render/staged-rendering.js +161 -15
  108. qalita/_frontend/node_modules/next/dist/server/app-render/use-flight-response.js +67 -20
  109. qalita/_frontend/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +2 -2
  110. qalita/_frontend/node_modules/next/dist/server/async-storage/work-store.js +2 -1
  111. qalita/_frontend/node_modules/next/dist/server/base-server.js +32 -23
  112. qalita/_frontend/node_modules/next/dist/server/capsize-font-metrics.json +181516 -0
  113. qalita/_frontend/node_modules/next/dist/server/config-schema.js +8 -1
  114. qalita/_frontend/node_modules/next/dist/server/config-shared.js +83 -2
  115. qalita/_frontend/node_modules/next/dist/server/config.js +24 -17
  116. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-rspack.js +171 -0
  117. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +37 -25
  118. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-types.js +1 -0
  119. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-webpack.js +62 -57
  120. qalita/_frontend/node_modules/next/dist/server/dev/log-requests.js +11 -3
  121. qalita/_frontend/node_modules/next/dist/server/dev/messages.js +10 -0
  122. qalita/_frontend/node_modules/next/dist/server/dev/serialized-errors.js +67 -0
  123. qalita/_frontend/node_modules/next/dist/server/dev/static-paths-worker.js +10 -0
  124. qalita/_frontend/node_modules/next/dist/server/lib/app-info-log.js +1 -1
  125. qalita/_frontend/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +2 -2
  126. qalita/_frontend/node_modules/next/dist/server/lib/dev-bundler-service.js +6 -10
  127. qalita/_frontend/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +4 -4
  128. qalita/_frontend/node_modules/next/dist/server/lib/lazy-result.js +1 -1
  129. qalita/_frontend/node_modules/next/dist/server/lib/patch-fetch.js +9 -9
  130. qalita/_frontend/node_modules/next/dist/server/lib/router-server.js +43 -29
  131. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +0 -21
  132. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/filesystem.js +2 -7
  133. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +8 -4
  134. qalita/_frontend/node_modules/next/dist/server/lib/start-server.js +3 -3
  135. qalita/_frontend/node_modules/next/dist/server/lib/trace/tracer.js +4 -0
  136. qalita/_frontend/node_modules/next/dist/server/load-components.js +3 -9
  137. qalita/_frontend/node_modules/next/dist/server/next-server.js +19 -18
  138. qalita/_frontend/node_modules/next/dist/server/next.js +1 -1
  139. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +570 -0
  140. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/utils.js +60 -3
  141. qalita/_frontend/node_modules/next/dist/server/node-environment.js +1 -0
  142. qalita/_frontend/node_modules/next/dist/server/patch-error-inspect.js +7 -4
  143. qalita/_frontend/node_modules/next/dist/server/request/fallback-params.js +23 -66
  144. qalita/_frontend/node_modules/next/dist/server/route-modules/app-route/module.js +2 -2
  145. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/pages-handler.js +6 -3
  146. qalita/_frontend/node_modules/next/dist/server/route-modules/route-module.js +79 -18
  147. qalita/_frontend/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +28 -4
  148. qalita/_frontend/node_modules/next/dist/server/typescript/rules/config.js +50 -6
  149. qalita/_frontend/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +68 -23
  150. qalita/_frontend/node_modules/next/dist/server/web/edge-route-module-wrapper.js +7 -5
  151. qalita/_frontend/node_modules/next/dist/server/web/sandbox/context.js +8 -9
  152. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +2 -1
  153. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/revalidate.js +7 -3
  154. qalita/_frontend/node_modules/next/dist/shared/lib/action-revalidation-kind.js +31 -0
  155. qalita/_frontend/node_modules/next/dist/shared/lib/constants.js +6 -1
  156. qalita/_frontend/node_modules/next/dist/shared/lib/deployment-id.js +36 -0
  157. qalita/_frontend/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
  158. qalita/_frontend/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +5 -0
  159. qalita/_frontend/node_modules/next/dist/shared/lib/router/routes/app.js +122 -0
  160. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +20 -49
  161. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +6 -6
  162. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +33 -0
  163. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +116 -0
  164. qalita/_frontend/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +3 -24
  165. qalita/_frontend/node_modules/next/dist/shared/lib/segment.js +5 -0
  166. qalita/_frontend/node_modules/next/dist/shared/lib/turbopack/utils.js +6 -5
  167. qalita/_frontend/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
  168. qalita/_frontend/node_modules/next/dist/telemetry/events/build.js +11 -0
  169. qalita/_frontend/node_modules/next/dist/telemetry/events/version.js +2 -2
  170. qalita/_frontend/node_modules/next/package.json +20 -18
  171. qalita/_frontend/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
  172. qalita/_frontend/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
  173. qalita/_frontend/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
  174. qalita/_frontend/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
  175. qalita/_frontend/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
  176. qalita/_frontend/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
  177. qalita/_frontend/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
  178. qalita/_frontend/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
  179. qalita/_frontend/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
  180. qalita/_frontend/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
  181. qalita/_frontend/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
  182. qalita/_frontend/node_modules/typescript/lib/typesMap.json +497 -0
  183. qalita/_frontend/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
  184. qalita/_frontend/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
  185. qalita/_frontend/package.json +3 -3
  186. qalita/_frontend/server.js +1 -1
  187. qalita/commands/pack.py +3 -3
  188. qalita/commands/source.py +1 -1
  189. qalita/internal/utils.py +11 -7
  190. qalita/web/app.py +20 -4
  191. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/METADATA +1 -1
  192. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/RECORD +197 -168
  193. qalita/_frontend/.next/static/chunks/023d923a37d494fc.js +0 -1
  194. qalita/_frontend/.next/static/chunks/247eb132b7f7b574.js +0 -1
  195. qalita/_frontend/.next/static/chunks/bba035711c7e37a2.js +0 -4
  196. qalita/_frontend/.next/static/chunks/c903f9580a4b6572.js +0 -2
  197. qalita/_frontend/.next/static/chunks/cbd55ab9639e1e66.js +0 -1
  198. qalita/_frontend/.next/static/chunks/turbopack-1ad58da399056f41.js +0 -3
  199. qalita/_frontend/node_modules/next/dist/build/deployment-id.js +0 -18
  200. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/apply-flight-data.js +0 -53
  201. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js +0 -105
  202. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fill-cache-with-new-subtree-data.js +0 -110
  203. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fill-lazy-items-till-leaf-with-head.js +0 -131
  204. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.js +0 -25
  205. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js +0 -32
  206. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/refetch-inactive-parallel-segments.js +0 -104
  207. qalita/_frontend/node_modules/next/dist/server/app-render/action-utils.js +0 -90
  208. qalita/_frontend/node_modules/next/dist/server/normalizers/request/prefetch-rsc.js +0 -31
  209. /qalita/_frontend/.next/static/{X4_AlYMbCyee-ZVLjCYMg → _0oyfpC7N2IGDMa04TT9R}/_buildManifest.js +0 -0
  210. /qalita/_frontend/.next/static/{X4_AlYMbCyee-ZVLjCYMg → _0oyfpC7N2IGDMa04TT9R}/_ssgManifest.js +0 -0
  211. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/WHEEL +0 -0
  212. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/entry_points.txt +0 -0
  213. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/licenses/LICENSE +0 -0
@@ -126,16 +126,14 @@ async function runPlaywright(baseDir, nextConfig, testRunnerArgs) {
126
126
  const { version: typeScriptVersion } = await (0, _verifytypescriptsetup.verifyTypeScriptSetup)({
127
127
  dir: baseDir,
128
128
  distDir: nextConfig.distDir,
129
- intentDirs: [
130
- pagesDir,
131
- appDir
132
- ].filter(Boolean),
133
129
  typeCheckPreflight: false,
134
130
  tsconfigPath: nextConfig.typescript.tsconfigPath,
135
131
  disableStaticImages: nextConfig.images.disableStaticImages,
136
132
  hasAppDir: !!appDir,
137
133
  hasPagesDir: !!pagesDir,
138
- isolatedDevBuild: nextConfig.experimental.isolatedDevBuild
134
+ isolatedDevBuild: nextConfig.experimental.isolatedDevBuild,
135
+ appDir: appDir || undefined,
136
+ pagesDir: pagesDir || undefined
139
137
  });
140
138
  const isUsingTypeScript = !!typeScriptVersion;
141
139
  const playwrightConfigFilename = isUsingTypeScript ? 'playwright.config.ts' : 'playwright.config.js';
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  ACTION_HEADER: null,
7
7
  FLIGHT_HEADERS: null,
8
8
  NEXT_ACTION_NOT_FOUND_HEADER: null,
9
+ NEXT_ACTION_REVALIDATED_HEADER: null,
9
10
  NEXT_DID_POSTPONE_HEADER: null,
10
11
  NEXT_HMR_REFRESH_HASH_COOKIE: null,
11
12
  NEXT_HMR_REFRESH_HEADER: null,
@@ -39,6 +40,9 @@ _export(exports, {
39
40
  NEXT_ACTION_NOT_FOUND_HEADER: function() {
40
41
  return NEXT_ACTION_NOT_FOUND_HEADER;
41
42
  },
43
+ NEXT_ACTION_REVALIDATED_HEADER: function() {
44
+ return NEXT_ACTION_REVALIDATED_HEADER;
45
+ },
42
46
  NEXT_DID_POSTPONE_HEADER: function() {
43
47
  return NEXT_DID_POSTPONE_HEADER;
44
48
  },
@@ -113,6 +117,7 @@ const NEXT_IS_PRERENDER_HEADER = 'x-nextjs-prerender';
113
117
  const NEXT_ACTION_NOT_FOUND_HEADER = 'x-nextjs-action-not-found';
114
118
  const NEXT_REQUEST_ID_HEADER = 'x-nextjs-request-id';
115
119
  const NEXT_HTML_REQUEST_ID_HEADER = 'x-nextjs-html-request-id';
120
+ const NEXT_ACTION_REVALIDATED_HEADER = 'x-action-revalidated';
116
121
 
117
122
  if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
118
123
  Object.defineProperty(exports.default, '__esModule', { value: true });
@@ -59,8 +59,7 @@ function runRemainingActions(actionQueue, setState) {
59
59
  if (actionQueue.needsRefresh) {
60
60
  actionQueue.needsRefresh = false;
61
61
  actionQueue.dispatch({
62
- type: _routerreducertypes.ACTION_REFRESH,
63
- origin: window.location.origin
62
+ type: _routerreducertypes.ACTION_REFRESH
64
63
  }, setState);
65
64
  }
66
65
  }
@@ -261,11 +260,6 @@ const publicAppRouterInstance = {
261
260
  fetchStrategy = _types.FetchStrategy.Full;
262
261
  break;
263
262
  }
264
- case _routerreducertypes.PrefetchKind.TEMPORARY:
265
- {
266
- // This concept doesn't exist in the segment cache implementation.
267
- return;
268
- }
269
263
  default:
270
264
  {
271
265
  prefetchKind;
@@ -291,8 +285,7 @@ const publicAppRouterInstance = {
291
285
  refresh: ()=>{
292
286
  (0, _react.startTransition)(()=>{
293
287
  (0, _useactionqueue.dispatchAppRouterAction)({
294
- type: _routerreducertypes.ACTION_REFRESH,
295
- origin: window.location.origin
288
+ type: _routerreducertypes.ACTION_REFRESH
296
289
  });
297
290
  });
298
291
  },
@@ -306,8 +299,7 @@ const publicAppRouterInstance = {
306
299
  } else {
307
300
  (0, _react.startTransition)(()=>{
308
301
  (0, _useactionqueue.dispatchAppRouterAction)({
309
- type: _routerreducertypes.ACTION_HMR_REFRESH,
310
- origin: window.location.origin
302
+ type: _routerreducertypes.ACTION_HMR_REFRESH
311
303
  });
312
304
  });
313
305
  }
@@ -2,21 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- 0 && (module.exports = {
6
- createEmptyCacheNode: null,
7
- default: null
8
- });
9
- function _export(target, all) {
10
- for(var name in all)Object.defineProperty(target, name, {
11
- enumerable: true,
12
- get: all[name]
13
- });
14
- }
15
- _export(exports, {
16
- createEmptyCacheNode: function() {
17
- return createEmptyCacheNode;
18
- },
19
- default: function() {
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
20
8
  return AppRouter;
21
9
  }
22
10
  });
@@ -44,6 +32,7 @@ const _links = require("./links");
44
32
  const _rooterrorboundary = /*#__PURE__*/ _interop_require_default._(require("./errors/root-error-boundary"));
45
33
  const _globalerror = /*#__PURE__*/ _interop_require_default._(require("./builtin/global-error"));
46
34
  const _boundarycomponents = require("../../lib/framework/boundary-components");
35
+ const _deploymentid = require("../../shared/lib/deployment-id");
47
36
  const globalMutable = {};
48
37
  function HistoryUpdater({ appRouterState }) {
49
38
  (0, _react.useInsertionEffect)(()=>{
@@ -57,6 +46,7 @@ function HistoryUpdater({ appRouterState }) {
57
46
  tree,
58
47
  renderedSearch
59
48
  };
49
+ // TODO: Use Navigation API if available
60
50
  const historyState = {
61
51
  ...pushRef.preserveCustomHistoryState ? window.history.state : {},
62
52
  // Identifier is shortened intentionally.
@@ -89,18 +79,6 @@ function HistoryUpdater({ appRouterState }) {
89
79
  ]);
90
80
  return null;
91
81
  }
92
- function createEmptyCacheNode() {
93
- return {
94
- lazyData: null,
95
- rsc: null,
96
- prefetchRsc: null,
97
- head: null,
98
- prefetchHead: null,
99
- parallelRoutes: new Map(),
100
- loading: null,
101
- navigatedAt: -1
102
- };
103
- }
104
82
  function copyNextJsInternalHistoryState(data) {
105
83
  if (data == null) data = {};
106
84
  const currentState = window.history.state;
@@ -260,6 +238,7 @@ function Head({ headCacheNode }) {
260
238
  * Ensures Next.js internal history state is copied to the new history entry.
261
239
  * Ensures usePathname and useSearchParams hold the newly provided url.
262
240
  */ window.history.pushState = function pushState(data, _unused, url) {
241
+ // TODO: Warn when Navigation API is available (navigation.navigate() should be used)
263
242
  // Avoid a loop when Next.js internals trigger pushState/replaceState
264
243
  if (data?.__NA || data?._N) {
265
244
  return originalPushState(data, _unused, url);
@@ -275,6 +254,7 @@ function Head({ headCacheNode }) {
275
254
  * Ensures Next.js internal history state is copied to the new history entry.
276
255
  * Ensures usePathname and useSearchParams hold the newly provided url.
277
256
  */ window.history.replaceState = function replaceState(data, _unused, url) {
257
+ // TODO: Warn when Navigation API is available (navigation.navigate() should be used)
278
258
  // Avoid a loop when Next.js internals trigger pushState/replaceState
279
259
  if (data?.__NA || data?._N) {
280
260
  return originalReplaceState(data, _unused, url);
@@ -495,7 +475,7 @@ function RuntimeStyles() {
495
475
  renderedStylesSize,
496
476
  forceUpdate
497
477
  ]);
498
- const dplId = process.env.NEXT_DEPLOYMENT_ID ? `?dpl=${process.env.NEXT_DEPLOYMENT_ID}` : '';
478
+ const dplId = (0, _deploymentid.getDeploymentIdQueryOrEmptyString)();
499
479
  return [
500
480
  ...runtimeStyles
501
481
  ].map((href, i)=>/*#__PURE__*/ (0, _jsxruntime.jsx)("link", {
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  0 && (module.exports = {
6
- createLayoutSegmentPromises: null,
7
6
  createNestedLayoutNavigationPromises: null,
8
7
  createRootNavigationPromises: null
9
8
  });
@@ -14,9 +13,6 @@ function _export(target, all) {
14
13
  });
15
14
  }
16
15
  _export(exports, {
17
- createLayoutSegmentPromises: function() {
18
- return createLayoutSegmentPromises;
19
- },
20
16
  createNestedLayoutNavigationPromises: function() {
21
17
  return createNestedLayoutNavigationPromises;
22
18
  },
@@ -26,9 +22,11 @@ _export(exports, {
26
22
  });
27
23
  const _hooksclientcontextsharedruntime = require("../../shared/lib/hooks-client-context.shared-runtime");
28
24
  const _segment = require("../../shared/lib/segment");
29
- const _readonlyurlsearchparams = require("./readonly-url-search-params");
30
25
  const layoutSegmentPromisesCache = new WeakMap();
31
- function createLayoutSegmentPromises(tree) {
26
+ /**
27
+ * Creates instrumented promises for layout segment hooks at a given tree level.
28
+ * This is dev-only code for React Suspense DevTools instrumentation.
29
+ */ function createLayoutSegmentPromises(tree) {
32
30
  if (process.env.NODE_ENV === 'production') {
33
31
  return null;
34
32
  }
@@ -76,7 +74,7 @@ function createRootNavigationPromises(tree, pathname, searchParams, pathParams)
76
74
  if (cached) {
77
75
  return cached;
78
76
  }
79
- const readonlySearchParams = new _readonlyurlsearchparams.ReadonlyURLSearchParams(searchParams);
77
+ const readonlySearchParams = new _hooksclientcontextsharedruntime.ReadonlyURLSearchParams(searchParams);
80
78
  const layoutSegmentPromises = createLayoutSegmentPromises(tree);
81
79
  const promises = {
82
80
  pathname: (0, _hooksclientcontextsharedruntime.createDevToolsInstrumentedPromise)('usePathname', pathname),
@@ -28,8 +28,10 @@ function _export(target, all) {
28
28
  });
29
29
  }
30
30
  _export(exports, {
31
+ // We need the same class that was used to instantiate the context value
32
+ // Otherwise instanceof checks will fail in usercode
31
33
  ReadonlyURLSearchParams: function() {
32
- return _navigationreactserver.ReadonlyURLSearchParams;
34
+ return _hooksclientcontextsharedruntime.ReadonlyURLSearchParams;
33
35
  },
34
36
  RedirectType: function() {
35
37
  return _navigationreactserver.RedirectType;
@@ -85,7 +87,6 @@ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
85
87
  const _approutercontextsharedruntime = require("../../shared/lib/app-router-context.shared-runtime");
86
88
  const _hooksclientcontextsharedruntime = require("../../shared/lib/hooks-client-context.shared-runtime");
87
89
  const _segment = require("../../shared/lib/segment");
88
- const _readonlyurlsearchparams = require("./readonly-url-search-params");
89
90
  const _serverinsertedhtmlsharedruntime = require("../../shared/lib/server-inserted-html.shared-runtime");
90
91
  const _unrecognizedactionerror = require("./unrecognized-action-error");
91
92
  const _navigationreactserver = require("./navigation.react-server");
@@ -103,7 +104,7 @@ function useSearchParams() {
103
104
  // available.
104
105
  return null;
105
106
  }
106
- return new _readonlyurlsearchparams.ReadonlyURLSearchParams(searchParams);
107
+ return new _hooksclientcontextsharedruntime.ReadonlyURLSearchParams(searchParams);
107
108
  }, [
108
109
  searchParams
109
110
  ]);
@@ -9,11 +9,10 @@ Object.defineProperty(exports, "createInitialRouterState", {
9
9
  }
10
10
  });
11
11
  const _createhreffromurl = require("./create-href-from-url");
12
- const _filllazyitemstillleafwithhead = require("./fill-lazy-items-till-leaf-with-head");
13
12
  const _computechangedpath = require("./compute-changed-path");
14
- const _refetchinactiveparallelsegments = require("./refetch-inactive-parallel-segments");
15
13
  const _flightdatahelpers = require("../../flight-data-helpers");
16
- function createInitialRouterState({ navigatedAt, initialFlightData, initialCanonicalUrlParts, initialRenderedSearch, initialParallelRoutes, location }) {
14
+ const _pprnavigations = require("./ppr-navigations");
15
+ function createInitialRouterState({ navigatedAt, initialFlightData, initialCanonicalUrlParts, initialRenderedSearch, location }) {
17
16
  // When initialized on the server, the canonical URL is provided as an array of parts.
18
17
  // This is to ensure that when the RSC payload streamed to the client, crawlers don't interpret it
19
18
  // as a URL that should be crawled.
@@ -22,30 +21,12 @@ function createInitialRouterState({ navigatedAt, initialFlightData, initialCanon
22
21
  const { tree: initialTree, seedData: initialSeedData, head: initialHead } = normalizedFlightData;
23
22
  // For the SSR render, seed data should always be available (we only send back a `null` response
24
23
  // in the case of a `loading` segment, pre-PPR.)
25
- const rsc = initialSeedData?.[0];
26
- const loading = initialSeedData?.[2] ?? null;
27
- const cache = {
28
- lazyData: null,
29
- rsc,
30
- prefetchRsc: null,
31
- head: null,
32
- prefetchHead: null,
33
- // The cache gets seeded during the first render. `initialParallelRoutes` ensures the cache from the first render is there during the second render.
34
- parallelRoutes: initialParallelRoutes,
35
- loading,
36
- navigatedAt
37
- };
38
24
  const canonicalUrl = // location.href is read as the initial value for canonicalUrl in the browser
39
25
  // This is safe to do as canonicalUrl can't be rendered, it's only used to control the history updates in the useEffect further down in this file.
40
26
  location ? (0, _createhreffromurl.createHrefFromUrl)(location) : initialCanonicalUrl;
41
- (0, _refetchinactiveparallelsegments.addRefreshMarkerToActiveParallelSegments)(initialTree, canonicalUrl);
42
- // When the cache hasn't been seeded yet we fill the cache with the head.
43
- if (initialParallelRoutes === null || initialParallelRoutes.size === 0) {
44
- (0, _filllazyitemstillleafwithhead.fillLazyItemsTillLeafWithHead)(navigatedAt, cache, undefined, initialTree, initialSeedData, initialHead);
45
- }
46
27
  const initialState = {
47
28
  tree: initialTree,
48
- cache,
29
+ cache: (0, _pprnavigations.createInitialCacheNodeForHydration)(navigatedAt, initialTree, initialSeedData, initialHead),
49
30
  pushRef: {
50
31
  pendingPush: false,
51
32
  mpaNavigation: false,
@@ -29,11 +29,11 @@ const _client = require("react-server-dom-webpack/client");
29
29
  const _approuterheaders = require("../app-router-headers");
30
30
  const _appcallserver = require("../../app-call-server");
31
31
  const _appfindsourcemapurl = require("../../app-find-source-map-url");
32
- const _routerreducertypes = require("./router-reducer-types");
33
32
  const _flightdatahelpers = require("../../flight-data-helpers");
34
33
  const _appbuildid = require("../../app-build-id");
35
34
  const _setcachebustingsearchparam = require("./set-cache-busting-search-param");
36
35
  const _routeparams = require("../../route-params");
36
+ const _deploymentid = require("../../../shared/lib/deployment-id");
37
37
  const createFromReadableStream = _client.createFromReadableStream;
38
38
  const createFromFetch = _client.createFromFetch;
39
39
  let createDebugChannel;
@@ -58,21 +58,13 @@ if (typeof window !== 'undefined') {
58
58
  });
59
59
  }
60
60
  async function fetchServerResponse(url, options) {
61
- const { flightRouterState, nextUrl, prefetchKind } = options;
61
+ const { flightRouterState, nextUrl } = options;
62
62
  const headers = {
63
63
  // Enable flight response
64
64
  [_approuterheaders.RSC_HEADER]: '1',
65
65
  // Provide the current router state
66
66
  [_approuterheaders.NEXT_ROUTER_STATE_TREE_HEADER]: (0, _flightdatahelpers.prepareFlightRouterStateForRequest)(flightRouterState, options.isHmrRefresh)
67
67
  };
68
- /**
69
- * Three cases:
70
- * - `prefetchKind` is `undefined`, it means it's a normal navigation, so we want to prefetch the page data fully
71
- * - `prefetchKind` is `full` - we want to prefetch the whole page so same as above
72
- * - `prefetchKind` is `auto` - if the page is dynamic, prefetch the page data partially, if static prefetch the page data fully
73
- */ if (prefetchKind === _routerreducertypes.PrefetchKind.AUTO) {
74
- headers[_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER] = '1';
75
- }
76
68
  if (process.env.NODE_ENV === 'development' && options.isHmrRefresh) {
77
69
  headers[_approuterheaders.NEXT_HMR_REFRESH_HEADER] = '1';
78
70
  }
@@ -83,11 +75,6 @@ async function fetchServerResponse(url, options) {
83
75
  // but we should preserve the original URL for the canonical URL and error handling.
84
76
  const originalUrl = url;
85
77
  try {
86
- // When creating a "temporary" prefetch (the "on-demand" prefetch that gets created on navigation, if one doesn't exist)
87
- // we send the request with a "high" priority as it's in response to a user interaction that could be blocking a transition.
88
- // Otherwise, all other prefetches are sent with a "low" priority.
89
- // We use "auto" for in all other cases to match the existing default, as this function is shared outside of prefetching.
90
- const fetchPriority = prefetchKind ? prefetchKind === _routerreducertypes.PrefetchKind.TEMPORARY ? 'high' : 'low' : 'auto';
91
78
  if (process.env.NODE_ENV === 'production') {
92
79
  if (process.env.__NEXT_CONFIG_OUTPUT === 'export') {
93
80
  // In "output: export" mode, we can't rely on headers to distinguish
@@ -106,7 +93,7 @@ async function fetchServerResponse(url, options) {
106
93
  // TODO: Remove this check once the old PPR flag is removed
107
94
  const isLegacyPPR = process.env.__NEXT_PPR && !process.env.__NEXT_CACHE_COMPONENTS;
108
95
  const shouldImmediatelyDecode = !isLegacyPPR;
109
- const res = await createFetch(url, headers, fetchPriority, shouldImmediatelyDecode);
96
+ const res = await createFetch(url, headers, 'auto', shouldImmediatelyDecode);
110
97
  const responseUrl = (0, _routeparams.urlToUrlWithoutFlightMarker)(new URL(res.url));
111
98
  const canonicalUrl = res.redirected ? responseUrl : originalUrl;
112
99
  const contentType = res.headers.get('content-type') || '';
@@ -186,8 +173,9 @@ async function createFetch(url, headers, fetchPriority, shouldImmediatelyDecode,
186
173
  if (process.env.__NEXT_TEST_MODE && fetchPriority !== null) {
187
174
  headers['Next-Test-Fetch-Priority'] = fetchPriority;
188
175
  }
189
- if (process.env.NEXT_DEPLOYMENT_ID) {
190
- headers['x-deployment-id'] = process.env.NEXT_DEPLOYMENT_ID;
176
+ const deploymentId = (0, _deploymentid.getDeploymentId)();
177
+ if (deploymentId) {
178
+ headers['x-deployment-id'] = deploymentId;
191
179
  }
192
180
  if (process.env.NODE_ENV !== 'production') {
193
181
  if (self.__next_r) {