@betterinternship/components 2.4.1 → 2.4.3

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