@absolutejs/absolute 0.19.0-beta.999 → 0.20.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/LICENSE +21 -13
  2. package/README.md +48 -2
  3. package/dist/angular/browser.js +82 -77
  4. package/dist/angular/browser.js.map +11 -11
  5. package/dist/angular/components/constants.js +43 -0
  6. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  7. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  8. package/dist/angular/hmrPreserveCore.ts +132 -134
  9. package/dist/angular/index.js +1719 -844
  10. package/dist/angular/index.js.map +34 -26
  11. package/dist/angular/server.js +1620 -768
  12. package/dist/angular/server.js.map +28 -20
  13. package/dist/build.js +4935 -2593
  14. package/dist/build.js.map +72 -57
  15. package/dist/cli/config/client.js +578 -0
  16. package/dist/cli/config/server.js +39587 -0
  17. package/dist/cli/htmx/htmx.min.js +1 -0
  18. package/dist/cli/index.js +16828 -3511
  19. package/dist/client/index.js +49 -46
  20. package/dist/client/index.js.map +12 -12
  21. package/dist/core/streamingSlotRegistrar.js +1 -19
  22. package/dist/core/streamingSlotRegistrar.js.map +2 -2
  23. package/dist/core/streamingSlotRegistry.js +1 -19
  24. package/dist/core/streamingSlotRegistry.js.map +2 -2
  25. package/dist/dev/client/cssUtils.ts +98 -41
  26. package/dist/dev/client/domState.ts +2 -0
  27. package/dist/dev/client/errorOverlay.ts +14 -13
  28. package/dist/dev/client/handlers/angularHmrShim.ts +20 -20
  29. package/dist/dev/client/handlers/angularRemount.ts +74 -55
  30. package/dist/dev/client/handlers/angularRemountWiring.ts +1 -2
  31. package/dist/dev/client/handlers/html.ts +144 -41
  32. package/dist/dev/client/handlers/htmx.ts +43 -8
  33. package/dist/dev/client/handlers/react.ts +114 -32
  34. package/dist/dev/client/handlers/rebuild.ts +28 -8
  35. package/dist/dev/client/handlers/svelte.ts +92 -51
  36. package/dist/dev/client/handlers/vue.ts +36 -45
  37. package/dist/dev/client/hmrClient.ts +101 -26
  38. package/dist/dev/client/hmrTiming.ts +141 -0
  39. package/dist/dev/client/hmrToast.ts +22 -24
  40. package/dist/dev/client/reactRefreshSetup.ts +4 -0
  41. package/dist/dev/client/vendor/reactRefreshRuntime.d.ts +12 -0
  42. package/dist/dev/client/vendor/reactRefreshRuntime.js +313 -0
  43. package/dist/dev/serverBootstrap.js +45 -0
  44. package/dist/index.js +7153 -3224
  45. package/dist/index.js.map +118 -86
  46. package/dist/islands/browser.js +1 -19
  47. package/dist/islands/browser.js.map +3 -3
  48. package/dist/islands/index.js +709 -120
  49. package/dist/islands/index.js.map +18 -13
  50. package/dist/mobile/browser.js +428 -0
  51. package/dist/mobile/browser.js.map +12 -0
  52. package/dist/mobile/index.js +3058 -0
  53. package/dist/mobile/index.js.map +35 -0
  54. package/dist/react/browser.js +13 -62
  55. package/dist/react/browser.js.map +5 -6
  56. package/dist/react/components/browser/index.js +23 -13
  57. package/dist/react/components/index.js +30 -34
  58. package/dist/react/components/index.js.map +8 -7
  59. package/dist/react/hooks/index.js +1 -19
  60. package/dist/react/hooks/index.js.map +3 -3
  61. package/dist/react/index.js +1643 -679
  62. package/dist/react/index.js.map +29 -20
  63. package/dist/react/jsxDevRuntimeCompat.js +22 -20
  64. package/dist/react/jsxDevRuntimeCompat.js.map +5 -4
  65. package/dist/react/jsxRuntimeCompat.js +90 -0
  66. package/dist/react/jsxRuntimeCompat.js.map +10 -0
  67. package/dist/react/router/browser.js +77 -0
  68. package/dist/react/router/browser.js.map +10 -0
  69. package/dist/react/router/index.js +77 -0
  70. package/dist/react/router/index.js.map +10 -0
  71. package/dist/react/server.js +950 -565
  72. package/dist/react/server.js.map +16 -11
  73. package/dist/src/angular/components/constants.d.ts +21 -0
  74. package/dist/src/angular/hmrPreserveCore.d.ts +7 -20
  75. package/dist/src/angular/islands.d.ts +1 -1
  76. package/dist/src/angular/pageHandler.d.ts +2 -0
  77. package/dist/src/angular/ssrRender.d.ts +4 -1
  78. package/dist/src/build/bunStringRawUnicodePlugin.d.ts +12 -0
  79. package/dist/src/build/chainInlineSourcemaps.d.ts +1 -0
  80. package/dist/src/build/compileAngular.d.ts +5 -7
  81. package/dist/src/build/compileSvelte.d.ts +3 -0
  82. package/dist/src/build/compileVue.d.ts +3 -1
  83. package/dist/src/build/generateReactIndexes.d.ts +1 -0
  84. package/dist/src/build/islandRegistryTransform.d.ts +17 -0
  85. package/dist/src/build/maskLiterals.d.ts +28 -0
  86. package/dist/src/build/parseVueSpaRoutes.d.ts +5 -0
  87. package/dist/src/build/resolveBuildMode.d.ts +7 -0
  88. package/dist/src/build/serverExternals.d.ts +14 -0
  89. package/dist/src/build/spaSideManifests.d.ts +16 -0
  90. package/dist/src/build/tailwindCompiler.d.ts +0 -1
  91. package/dist/src/cli/add/dependencies.d.ts +13 -0
  92. package/dist/src/cli/config/absolute/AbsoluteConfigPanel.d.ts +6 -0
  93. package/dist/src/cli/config/absolute/editAbsoluteConfig.d.ts +5 -0
  94. package/dist/src/cli/config/absolute/resolveAbsoluteConfig.d.ts +19 -0
  95. package/dist/src/cli/config/auth/AuthPanel.d.ts +6 -0
  96. package/dist/src/cli/config/auth/authCatalog.d.ts +10 -0
  97. package/dist/src/cli/config/auth/authScaffolds.d.ts +16 -0
  98. package/dist/src/cli/config/auth/editAuthConfig.d.ts +5 -0
  99. package/dist/src/cli/config/auth/resolveAuthSettings.d.ts +14 -0
  100. package/dist/src/cli/config/auth/resolveAuthState.d.ts +2 -0
  101. package/dist/src/cli/config/auth/scaffoldAuthFeature.d.ts +6 -0
  102. package/dist/src/cli/config/client.d.ts +1 -0
  103. package/dist/src/cli/config/configCert.d.ts +12 -0
  104. package/dist/src/cli/config/eslint/EslintPanel.d.ts +6 -0
  105. package/dist/src/cli/config/eslint/configAst.d.ts +18 -0
  106. package/dist/src/cli/config/eslint/editConfigRule.d.ts +6 -0
  107. package/dist/src/cli/config/eslint/eslintStyles.d.ts +1 -0
  108. package/dist/src/cli/config/eslint/resolveConfig.d.ts +3 -0
  109. package/dist/src/cli/config/eslint/serializeValue.d.ts +9 -0
  110. package/dist/src/cli/config/guards.d.ts +4 -0
  111. package/dist/src/cli/config/integrations/IntegrationsPanel.d.ts +6 -0
  112. package/dist/src/cli/config/packageJson/PackageJsonPanel.d.ts +6 -0
  113. package/dist/src/cli/config/packageJson/editPackageJson.d.ts +9 -0
  114. package/dist/src/cli/config/packageJson/resolvePackageJson.d.ts +8 -0
  115. package/dist/src/cli/config/page/ConfigShell.d.ts +6 -0
  116. package/dist/src/cli/config/page/FieldEditor.d.ts +9 -0
  117. package/dist/src/cli/config/page/PanelHost.d.ts +6 -0
  118. package/dist/src/cli/config/page/configStyles.d.ts +1 -0
  119. package/dist/src/cli/config/panels.d.ts +7 -0
  120. package/dist/src/cli/config/prettier/PrettierPanel.d.ts +6 -0
  121. package/dist/src/cli/config/prettier/editPrettier.d.ts +5 -0
  122. package/dist/src/cli/config/prettier/resolvePrettier.d.ts +11 -0
  123. package/dist/src/cli/config/schema/fromJsonSchema.d.ts +3 -0
  124. package/dist/src/cli/config/schema/fromType.d.ts +1 -0
  125. package/dist/src/cli/config/schema/serialize.d.ts +1 -0
  126. package/dist/src/cli/config/server.d.ts +527 -0
  127. package/dist/src/cli/config/tsconfig/TsconfigPanel.d.ts +6 -0
  128. package/dist/src/cli/config/tsconfig/editTsconfig.d.ts +5 -0
  129. package/dist/src/cli/config/tsconfig/resolveTsconfig.d.ts +8 -0
  130. package/dist/src/cli/config/tsconfig/tsconfigStyles.d.ts +1 -0
  131. package/dist/src/cli/discoverInstances.d.ts +5 -0
  132. package/dist/src/cli/elysiaOpenApiTypeboxPlugin.d.ts +8 -0
  133. package/dist/src/cli/generate/componentTemplates.d.ts +7 -0
  134. package/dist/src/cli/generate/context.d.ts +30 -0
  135. package/dist/src/cli/generate/cssStrategy.d.ts +20 -0
  136. package/dist/src/cli/generate/frameworkKey.d.ts +3 -0
  137. package/dist/src/cli/generate/frameworks.d.ts +40 -0
  138. package/dist/src/cli/generate/generateApi.d.ts +3 -0
  139. package/dist/src/cli/generate/generateComponent.d.ts +4 -0
  140. package/dist/src/cli/generate/generatePage.d.ts +4 -0
  141. package/dist/src/cli/generate/naming.d.ts +5 -0
  142. package/dist/src/cli/generate/navData.d.ts +10 -0
  143. package/dist/src/cli/generate/outcome.d.ts +17 -0
  144. package/dist/src/cli/generate/pageTemplates.d.ts +11 -0
  145. package/dist/src/cli/generate/routeWiring.d.ts +40 -0
  146. package/dist/src/cli/generate/staticNav.d.ts +5 -0
  147. package/dist/src/cli/heapDiff.d.ts +1 -0
  148. package/dist/src/cli/htmx/install.d.ts +6 -0
  149. package/dist/src/cli/inspectData.d.ts +12 -0
  150. package/dist/src/cli/inspectTui.d.ts +1 -0
  151. package/dist/src/cli/instanceStatus.d.ts +22 -0
  152. package/dist/src/cli/integrations/addPlugin.d.ts +8 -0
  153. package/dist/src/cli/integrations/catalog.d.ts +20 -0
  154. package/dist/src/cli/psTui.d.ts +1 -0
  155. package/dist/src/cli/scripts/add.d.ts +1 -0
  156. package/dist/src/cli/scripts/analyze.d.ts +1 -0
  157. package/dist/src/cli/scripts/api.d.ts +1 -0
  158. package/dist/src/cli/scripts/build.d.ts +1 -1
  159. package/dist/src/cli/scripts/db.d.ts +20 -0
  160. package/dist/src/cli/scripts/dev.d.ts +5 -1
  161. package/dist/src/cli/scripts/doctor.d.ts +1 -0
  162. package/dist/src/cli/scripts/env.d.ts +7 -0
  163. package/dist/src/cli/scripts/eslint.d.ts +37 -2
  164. package/dist/src/cli/scripts/eslintChunked.d.ts +37 -0
  165. package/dist/src/cli/scripts/generate.d.ts +1 -0
  166. package/dist/src/cli/scripts/htmx.d.ts +1 -0
  167. package/dist/src/cli/scripts/inspect.d.ts +1 -0
  168. package/dist/src/cli/scripts/islands.d.ts +1 -0
  169. package/dist/src/cli/scripts/lintProof.d.ts +42 -0
  170. package/dist/src/cli/scripts/logs.d.ts +1 -0
  171. package/dist/src/cli/scripts/ls.d.ts +1 -0
  172. package/dist/src/cli/scripts/mem.d.ts +1 -0
  173. package/dist/src/cli/scripts/mobile.d.ts +1 -0
  174. package/dist/src/cli/scripts/prettier.d.ts +2 -0
  175. package/dist/src/cli/scripts/ps.d.ts +1 -0
  176. package/dist/src/cli/scripts/remove.d.ts +1 -0
  177. package/dist/src/cli/scripts/routes.d.ts +1 -0
  178. package/dist/src/cli/scripts/start.d.ts +6 -1
  179. package/dist/src/cli/scripts/tunnelRelay.d.ts +9 -0
  180. package/dist/src/cli/scripts/workspace.d.ts +3 -1
  181. package/dist/src/cli/serverBundleExternals.d.ts +2 -0
  182. package/dist/src/cli/tuiPrimitives.d.ts +14 -0
  183. package/dist/src/cli/typeGraphCoherence.d.ts +32 -0
  184. package/dist/src/cli/utils.d.ts +3 -1
  185. package/dist/src/cli/workspaceTui.d.ts +2 -1
  186. package/dist/src/client/hydrators/react.d.ts +1 -1
  187. package/dist/src/client/hydrators/svelte.d.ts +1 -1
  188. package/dist/src/client/hydrators/vue.d.ts +1 -1
  189. package/dist/src/client/islandStore.d.ts +3 -3
  190. package/dist/src/client/preserveIslandMarkup.d.ts +4 -1
  191. package/dist/src/constants.d.ts +21 -0
  192. package/dist/src/core/angularServerModule.d.ts +1 -0
  193. package/dist/src/core/build.d.ts +11 -3
  194. package/dist/src/core/devRouteRegistrationCallsite.d.ts +1 -5
  195. package/dist/src/core/index.d.ts +1 -0
  196. package/dist/src/core/pageResponseCache.d.ts +23 -0
  197. package/dist/src/core/prepare.d.ts +192 -154
  198. package/dist/src/core/requestContext.d.ts +18 -0
  199. package/dist/src/dev/angular/fastHmrCompiler.d.ts +5 -3
  200. package/dist/src/dev/angular/hmrCompiler.d.ts +1 -1
  201. package/dist/src/dev/angular/resolveOwningComponents.d.ts +1 -1
  202. package/dist/src/dev/clientManager.d.ts +10 -1
  203. package/dist/src/dev/configResolver.d.ts +2 -0
  204. package/dist/src/dev/moduleMapper.d.ts +1 -1
  205. package/dist/src/dev/moduleServer.d.ts +2 -1
  206. package/dist/src/dev/pathUtils.d.ts +1 -1
  207. package/dist/src/dev/reactComponentClassifier.d.ts +1 -1
  208. package/dist/src/dev/rebuildTrigger.d.ts +4 -0
  209. package/dist/src/dev/requestInspector.d.ts +31 -0
  210. package/dist/src/dev/serverBootstrap.d.ts +1 -0
  211. package/dist/src/dev/serverEntryWatcher.d.ts +3 -3
  212. package/dist/src/dev/tunnel/client.d.ts +20 -0
  213. package/dist/src/dev/tunnel/protocol.d.ts +85 -0
  214. package/dist/src/dev/tunnel/relay.d.ts +28 -0
  215. package/dist/src/dev/webSocket.d.ts +1 -1
  216. package/dist/src/mobile/androidConformance.d.ts +42 -0
  217. package/dist/src/mobile/androidEmulatorController.d.ts +99 -0
  218. package/dist/src/mobile/androidNativeWatcher.d.ts +19 -0
  219. package/dist/src/mobile/androidRelease.d.ts +47 -0
  220. package/dist/src/mobile/androidWebView.d.ts +46 -0
  221. package/dist/src/mobile/artifactStore.d.ts +47 -0
  222. package/dist/src/mobile/associationFiles.d.ts +49 -0
  223. package/dist/src/mobile/browser.d.ts +2 -0
  224. package/dist/src/mobile/buildMetadata.d.ts +10 -0
  225. package/dist/src/mobile/buildPipeline.d.ts +8 -0
  226. package/dist/src/mobile/buildRelease.d.ts +24 -0
  227. package/dist/src/mobile/capacitorBundle.d.ts +28 -0
  228. package/dist/src/mobile/capacitorProject.d.ts +9 -0
  229. package/dist/src/mobile/client.d.ts +35 -0
  230. package/dist/src/mobile/compatibilityDispatcher.d.ts +26 -0
  231. package/dist/src/mobile/config.d.ts +16 -0
  232. package/dist/src/mobile/emulatorDoctor.d.ts +25 -0
  233. package/dist/src/mobile/emulatorInstaller.d.ts +41 -0
  234. package/dist/src/mobile/index.d.ts +19 -0
  235. package/dist/src/mobile/materializedBundle.d.ts +36 -0
  236. package/dist/src/mobile/nativeDeepLinks.d.ts +5 -0
  237. package/dist/src/mobile/pageProtocol.d.ts +89 -0
  238. package/dist/src/mobile/producerContext.d.ts +4 -0
  239. package/dist/src/mobile/producerContextState.d.ts +10 -0
  240. package/dist/src/mobile/releaseArtifact.d.ts +75 -0
  241. package/dist/src/mobile/releaseDoctor.d.ts +13 -0
  242. package/dist/src/mobile/routeMatcher.d.ts +3 -0
  243. package/dist/src/mobile/routeMetadataTransform.d.ts +13 -0
  244. package/dist/src/mobile/shellBootstrap.d.ts +1 -0
  245. package/dist/src/mobile/transport.d.ts +31 -0
  246. package/dist/src/plugins/devtoolsJson.d.ts +6 -47
  247. package/dist/src/plugins/hmr.d.ts +22 -96
  248. package/dist/src/plugins/imageOptimizer.d.ts +150 -62
  249. package/dist/src/plugins/networking.d.ts +2 -2
  250. package/dist/src/plugins/openApiPlugin.d.ts +4 -0
  251. package/dist/src/plugins/telemetryPlugin.d.ts +36 -0
  252. package/dist/src/react/browser.d.ts +0 -2
  253. package/dist/src/react/hooks/useMediaQuery.d.ts +1 -1
  254. package/dist/src/react/index.d.ts +0 -2
  255. package/dist/src/react/jsxDevRuntimeCompat.d.ts +1 -1
  256. package/dist/src/react/jsxRuntimeCompat.d.ts +7 -0
  257. package/dist/src/react/pageHandler.d.ts +8 -0
  258. package/dist/src/react/router/UniversalRouter.d.ts +43 -0
  259. package/dist/src/react/router/browser.d.ts +2 -0
  260. package/dist/src/react/router/index.d.ts +2 -0
  261. package/dist/src/svelte/pageHandler.d.ts +5 -0
  262. package/dist/src/svelte/router/hashMode.d.ts +1 -6
  263. package/dist/src/svelte/router/matchPath.d.ts +4 -24
  264. package/dist/src/svelte/router/page.svelte.d.ts +1 -10
  265. package/dist/src/svelte/router/prefetchCache.d.ts +2 -6
  266. package/dist/src/utils/cleanup.d.ts +1 -0
  267. package/dist/src/utils/defineConvention.d.ts +2 -2
  268. package/dist/src/utils/defineEnv.d.ts +4 -4
  269. package/dist/src/utils/formatBytes.d.ts +2 -0
  270. package/dist/src/utils/generatedDir.d.ts +1 -1
  271. package/dist/src/utils/iconVersion.d.ts +5 -0
  272. package/dist/src/utils/imageProcessing.d.ts +1 -1
  273. package/dist/src/utils/index.d.ts +2 -0
  274. package/dist/src/utils/inlinePageCss.d.ts +9 -0
  275. package/dist/src/utils/instanceRegistry.d.ts +13 -0
  276. package/dist/src/utils/isTestSourcePath.d.ts +1 -0
  277. package/dist/src/utils/jsonLd.d.ts +1 -1
  278. package/dist/src/utils/loadConfig.d.ts +11 -3
  279. package/dist/src/utils/logger.d.ts +2 -0
  280. package/dist/src/utils/portScan.d.ts +22 -0
  281. package/dist/src/utils/projectRoot.d.ts +17 -0
  282. package/dist/src/utils/resolveConvention.d.ts +1 -1
  283. package/dist/src/utils/resolveDevPort.d.ts +4 -1
  284. package/dist/src/utils/runtimeMode.d.ts +1 -1
  285. package/dist/src/utils/spaRouteCss.d.ts +10 -0
  286. package/dist/src/utils/spaRouteManifest.d.ts +8 -0
  287. package/dist/src/utils/stripStringsAndComments.d.ts +18 -0
  288. package/dist/src/utils/userAgentFunctions.d.ts +1 -1
  289. package/dist/src/utils/vueCompiler.d.ts +1 -0
  290. package/dist/src/vue/components/Image.d.ts +2 -2
  291. package/dist/src/vue/defineVuePage.d.ts +1 -11
  292. package/dist/src/vue/index.d.ts +3 -0
  293. package/dist/src/vue/pageHandler.d.ts +5 -0
  294. package/dist/src/vue/resolveGeneratedVueModulePath.d.ts +1 -0
  295. package/dist/src/vue/teleports.d.ts +2 -0
  296. package/dist/src/vue/useResource.d.ts +65 -0
  297. package/dist/svelte/browser.js +1 -19
  298. package/dist/svelte/browser.js.map +3 -3
  299. package/dist/svelte/components/Head.svelte +7 -1
  300. package/dist/svelte/index.js +1281 -543
  301. package/dist/svelte/index.js.map +27 -19
  302. package/dist/svelte/router/Link.svelte.d.ts +3 -3
  303. package/dist/svelte/router/Route.svelte.d.ts +5 -5
  304. package/dist/svelte/router/Router.svelte.d.ts +3 -3
  305. package/dist/svelte/router/hashMode.ts +6 -12
  306. package/dist/svelte/router/matchPath.ts +44 -61
  307. package/dist/svelte/router/page.d.ts +1 -10
  308. package/dist/svelte/router/page.js +6 -6
  309. package/dist/svelte/router/prefetchCache.ts +21 -23
  310. package/dist/svelte/router/viewTransitions.ts +22 -12
  311. package/dist/svelte/server.js +697 -565
  312. package/dist/svelte/server.js.map +14 -11
  313. package/dist/types/absoluteConfig.d.ts +22 -0
  314. package/dist/types/angular.d.ts +4 -1
  315. package/dist/types/authPanel.d.ts +62 -0
  316. package/dist/types/build.d.ts +116 -0
  317. package/dist/types/cli.d.ts +57 -0
  318. package/dist/types/config.d.ts +52 -0
  319. package/dist/types/eslintConfig.d.ts +68 -0
  320. package/dist/types/globals.d.ts +31 -10
  321. package/dist/types/image.d.ts +2 -0
  322. package/dist/types/index.d.ts +1 -0
  323. package/dist/types/integrationsPanel.d.ts +29 -0
  324. package/dist/types/messages.d.ts +12 -0
  325. package/dist/types/packageJson.d.ts +74 -0
  326. package/dist/types/packageJsonPanel.d.ts +29 -0
  327. package/dist/types/prettier.d.ts +26 -0
  328. package/dist/types/tsconfig.d.ts +31 -0
  329. package/dist/types/vue.d.ts +13 -15
  330. package/dist/vue/browser.js +14 -36
  331. package/dist/vue/browser.js.map +5 -5
  332. package/dist/vue/components/Image.js +3 -20
  333. package/dist/vue/components/Image.js.map +3 -3
  334. package/dist/vue/components/index.js +3 -20
  335. package/dist/vue/components/index.js.map +3 -3
  336. package/dist/vue/index.js +1573 -620
  337. package/dist/vue/index.js.map +34 -22
  338. package/dist/vue/server.js +800 -520
  339. package/dist/vue/server.js.map +17 -11
  340. package/package.json +145 -68
  341. package/dist/src/react/UniversalRouter.d.ts +0 -12
@@ -1,21 +1,12 @@
1
- import Elysia from 'elysia';
2
1
  import type { HMRState } from '../dev/clientManager';
3
- export declare const hmr: (hmrState: HMRState, manifest: Record<string, string>, moduleServerHandler?: (pathname: string) => Promise<Response | undefined> | Response | undefined) => Elysia<"", {
2
+ export declare const hmr: (hmrState: HMRState, manifest: Record<string, string>, moduleServerHandler?: (pathname: string) => Promise<Response | undefined> | Response | undefined) => import("elysia/types").AddRoute<"", "local", {
4
3
  decorator: {};
5
4
  store: {};
6
5
  derive: {};
7
- resolve: {};
8
6
  }, {
9
7
  typebox: {};
10
- error: {};
11
- }, {
12
- schema: {};
13
- standaloneSchema: {};
14
- macro: {};
15
- macroFn: {};
16
- parser: {};
17
- response: {};
18
- }, {
8
+ error: [];
9
+ }, import("elysia/types").DefaultMetadata, {
19
10
  "@src": {
20
11
  "*": {
21
12
  get: {
@@ -25,18 +16,8 @@ export declare const hmr: (hmrState: HMRState, manifest: Record<string, string>,
25
16
  } & {};
26
17
  query: unknown;
27
18
  headers: unknown;
28
- response: {
29
- 200: Response;
30
- 422: {
31
- type: "validation";
32
- on: string;
33
- summary?: string;
34
- message?: string;
35
- found?: unknown;
36
- property?: string;
37
- expected?: string;
38
- };
39
- };
19
+ response: {};
20
+ error: never;
40
21
  };
41
22
  };
42
23
  };
@@ -50,18 +31,8 @@ export declare const hmr: (hmrState: HMRState, manifest: Record<string, string>,
50
31
  } & {};
51
32
  query: unknown;
52
33
  headers: unknown;
53
- response: {
54
- 200: Response;
55
- 422: {
56
- type: "validation";
57
- on: string;
58
- summary?: string;
59
- message?: string;
60
- found?: unknown;
61
- property?: string;
62
- expected?: string;
63
- };
64
- };
34
+ response: {};
35
+ error: never;
65
36
  };
66
37
  };
67
38
  };
@@ -75,18 +46,8 @@ export declare const hmr: (hmrState: HMRState, manifest: Record<string, string>,
75
46
  } & {};
76
47
  query: unknown;
77
48
  headers: unknown;
78
- response: {
79
- 200: Response;
80
- 422: {
81
- type: "validation";
82
- on: string;
83
- summary?: string;
84
- message?: string;
85
- found?: unknown;
86
- property?: string;
87
- expected?: string;
88
- };
89
- };
49
+ response: {};
50
+ error: never;
90
51
  };
91
52
  };
92
53
  };
@@ -102,62 +63,27 @@ export declare const hmr: (hmrState: HMRState, manifest: Record<string, string>,
102
63
  headers: unknown;
103
64
  response: {
104
65
  200: Response;
105
- 422: {
106
- type: "validation";
107
- on: string;
108
- summary?: string;
109
- message?: string;
110
- found?: unknown;
111
- property?: string;
112
- expected?: string;
113
- };
114
66
  };
67
+ error: never;
115
68
  };
116
69
  };
117
70
  };
118
71
  } & {
119
72
  hmr: {
120
- subscribe: {
121
- body: unknown;
122
- params: {};
123
- query: unknown;
124
- headers: unknown;
125
- response: {
126
- 200: Response;
127
- };
128
- };
129
- };
130
- } & {
131
- "hmr-status": {
132
- get: {
133
- body: unknown;
134
- params: {};
135
- query: unknown;
136
- headers: unknown;
137
- response: {
138
- 200: Response | {
139
- connectedClients: number;
140
- isRebuilding: boolean;
141
- manifestKeys: string[];
142
- rebuildCount: number;
143
- rebuildQueue: string[];
144
- timestamp: number;
145
- };
146
- };
147
- };
73
+ subscribe: import("elysia/types").CreateWSEdenResponse<"/hmr", import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, "/hmr">, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, import("elysia/types").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, "/hmr">, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, void, {}, [], "/hmr">>;
148
74
  };
149
- }, {
75
+ }, import("elysia/types").DefaultEphemeral, {
150
76
  derive: {};
151
- resolve: {};
152
77
  schema: {};
153
- standaloneSchema: {};
78
+ schemas: {};
154
79
  response: {};
155
- }, {
156
- derive: {};
157
- resolve: {};
158
- schema: {};
159
- standaloneSchema: {};
160
- response: {
161
- 200: Response;
162
- };
80
+ error: [];
81
+ }, "get", "/hmr-status", import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, "/hmr-status">, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, () => {
82
+ connectedClients: number;
83
+ entryWatcherReady: boolean;
84
+ isRebuilding: boolean;
85
+ manifestKeys: string[];
86
+ rebuildCount: number;
87
+ rebuildQueue: string[];
88
+ timestamp: number;
163
89
  }>;
@@ -1,67 +1,155 @@
1
1
  import { Elysia } from 'elysia';
2
2
  import type { ImageConfig } from '../../types/image';
3
- export declare const imageOptimizer: (config: ImageConfig | undefined, buildDir: string) => Elysia<"", {
4
- decorator: {};
5
- store: {};
6
- derive: {};
7
- resolve: {};
8
- }, {
3
+ export declare const imageOptimizer: (config: ImageConfig | undefined, buildDir: string) => Elysia<"", "local", import("elysia/types").DefaultSingleton, {
9
4
  typebox: {};
10
- error: {};
11
- }, {
12
- schema: {};
13
- standaloneSchema: {};
14
- macro: {};
15
- macroFn: {};
16
- parser: {};
17
- response: {};
18
- }, {}, {
19
- derive: {};
20
- resolve: {};
21
- schema: {};
22
- standaloneSchema: {};
23
- response: {};
24
- }, {
25
- derive: {};
26
- resolve: {};
27
- schema: {};
28
- standaloneSchema: {};
29
- response: {};
30
- }> | Elysia<"", {
31
- decorator: {};
32
- store: {};
33
- derive: {};
34
- resolve: {};
35
- }, {
5
+ error: [];
6
+ }, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral> | import("elysia/types").AddRoute<"", "local", import("elysia/types").DefaultSingleton, {
36
7
  typebox: {};
37
- error: {};
38
- }, {
39
- schema: {};
40
- standaloneSchema: {};
41
- macro: {};
42
- macroFn: {};
43
- parser: {};
44
- response: {};
45
- }, {
46
- [x: string]: {
47
- get: {
48
- body: unknown;
49
- params: {};
50
- query: unknown;
51
- headers: unknown;
52
- response: {};
53
- };
8
+ error: [];
9
+ }, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral, "get", string, import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, `/${string}`>, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, ({ query, request }: {
10
+ body: unknown;
11
+ query: Record<string, string | undefined>;
12
+ params: {};
13
+ headers: Record<string, string | undefined>;
14
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
15
+ server: import("elysia").Server | null;
16
+ redirect: import("elysia").redirect;
17
+ set: {
18
+ headers: import("elysia").HTTPHeaders;
19
+ status?: number | keyof import("elysia").StatusMap;
20
+ cookie?: Record<string, import("elysia").BaseCookie>;
54
21
  };
55
- }, {
56
- derive: {};
57
- resolve: {};
58
- schema: {};
59
- standaloneSchema: {};
60
- response: {};
61
- }, {
62
- derive: {};
63
- resolve: {};
64
- schema: {};
65
- standaloneSchema: {};
66
- response: {};
67
- }>;
22
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 500 | 100 | 200 | 400 | 404 | 300 | 304 | 426 | 302 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 301 | 303 | 307 | 308 | 401 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
23
+ readonly 100: "Continue";
24
+ readonly 101: "Switching Protocols";
25
+ readonly 102: "Processing";
26
+ readonly 103: "Early Hints";
27
+ readonly 200: "OK";
28
+ readonly 201: "Created";
29
+ readonly 202: "Accepted";
30
+ readonly 203: "Non-Authoritative Information";
31
+ readonly 204: "No Content";
32
+ readonly 205: "Reset Content";
33
+ readonly 206: "Partial Content";
34
+ readonly 207: "Multi-Status";
35
+ readonly 208: "Already Reported";
36
+ readonly 300: "Multiple Choices";
37
+ readonly 301: "Moved Permanently";
38
+ readonly 302: "Found";
39
+ readonly 303: "See Other";
40
+ readonly 304: "Not Modified";
41
+ readonly 307: "Temporary Redirect";
42
+ readonly 308: "Permanent Redirect";
43
+ readonly 400: "Bad Request";
44
+ readonly 401: "Unauthorized";
45
+ readonly 402: "Payment Required";
46
+ readonly 403: "Forbidden";
47
+ readonly 404: "Not Found";
48
+ readonly 405: "Method Not Allowed";
49
+ readonly 406: "Not Acceptable";
50
+ readonly 407: "Proxy Authentication Required";
51
+ readonly 408: "Request Timeout";
52
+ readonly 409: "Conflict";
53
+ readonly 410: "Gone";
54
+ readonly 411: "Length Required";
55
+ readonly 412: "Precondition Failed";
56
+ readonly 413: "Payload Too Large";
57
+ readonly 414: "URI Too Long";
58
+ readonly 415: "Unsupported Media Type";
59
+ readonly 416: "Range Not Satisfiable";
60
+ readonly 417: "Expectation Failed";
61
+ readonly 418: "I'm a teapot";
62
+ readonly 420: "Enhance Your Calm";
63
+ readonly 421: "Misdirected Request";
64
+ readonly 422: "Unprocessable Content";
65
+ readonly 423: "Locked";
66
+ readonly 424: "Failed Dependency";
67
+ readonly 425: "Too Early";
68
+ readonly 426: "Upgrade Required";
69
+ readonly 428: "Precondition Required";
70
+ readonly 429: "Too Many Requests";
71
+ readonly 431: "Request Header Fields Too Large";
72
+ readonly 451: "Unavailable For Legal Reasons";
73
+ readonly 500: "Internal Server Error";
74
+ readonly 501: "Not Implemented";
75
+ readonly 502: "Bad Gateway";
76
+ readonly 503: "Service Unavailable";
77
+ readonly 504: "Gateway Timeout";
78
+ readonly 505: "HTTP Version Not Supported";
79
+ readonly 506: "Variant Also Negotiates";
80
+ readonly 507: "Insufficient Storage";
81
+ readonly 508: "Loop Detected";
82
+ readonly 510: "Not Extended";
83
+ readonly 511: "Network Authentication Required";
84
+ }[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaStatus<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
85
+ readonly Continue: 100;
86
+ readonly "Switching Protocols": 101;
87
+ readonly Processing: 102;
88
+ readonly "Early Hints": 103;
89
+ readonly OK: 200;
90
+ readonly Created: 201;
91
+ readonly Accepted: 202;
92
+ readonly "Non-Authoritative Information": 203;
93
+ readonly "No Content": 204;
94
+ readonly "Reset Content": 205;
95
+ readonly "Partial Content": 206;
96
+ readonly "Multi-Status": 207;
97
+ readonly "Already Reported": 208;
98
+ readonly "Multiple Choices": 300;
99
+ readonly "Moved Permanently": 301;
100
+ readonly Found: 302;
101
+ readonly "See Other": 303;
102
+ readonly "Not Modified": 304;
103
+ readonly "Temporary Redirect": 307;
104
+ readonly "Permanent Redirect": 308;
105
+ readonly "Bad Request": 400;
106
+ readonly Unauthorized: 401;
107
+ readonly "Payment Required": 402;
108
+ readonly Forbidden: 403;
109
+ readonly "Not Found": 404;
110
+ readonly "Method Not Allowed": 405;
111
+ readonly "Not Acceptable": 406;
112
+ readonly "Proxy Authentication Required": 407;
113
+ readonly "Request Timeout": 408;
114
+ readonly Conflict: 409;
115
+ readonly Gone: 410;
116
+ readonly "Length Required": 411;
117
+ readonly "Precondition Failed": 412;
118
+ readonly "Payload Too Large": 413;
119
+ readonly "URI Too Long": 414;
120
+ readonly "Unsupported Media Type": 415;
121
+ readonly "Range Not Satisfiable": 416;
122
+ readonly "Expectation Failed": 417;
123
+ readonly "I'm a teapot": 418;
124
+ readonly "Enhance Your Calm": 420;
125
+ readonly "Misdirected Request": 421;
126
+ readonly "Unprocessable Content": 422;
127
+ readonly Locked: 423;
128
+ readonly "Failed Dependency": 424;
129
+ readonly "Too Early": 425;
130
+ readonly "Upgrade Required": 426;
131
+ readonly "Precondition Required": 428;
132
+ readonly "Too Many Requests": 429;
133
+ readonly "Request Header Fields Too Large": 431;
134
+ readonly "Unavailable For Legal Reasons": 451;
135
+ readonly "Internal Server Error": 500;
136
+ readonly "Not Implemented": 501;
137
+ readonly "Bad Gateway": 502;
138
+ readonly "Service Unavailable": 503;
139
+ readonly "Gateway Timeout": 504;
140
+ readonly "HTTP Version Not Supported": 505;
141
+ readonly "Variant Also Negotiates": 506;
142
+ readonly "Insufficient Storage": 507;
143
+ readonly "Loop Detected": 508;
144
+ readonly "Not Extended": 510;
145
+ readonly "Network Authentication Required": 511;
146
+ }[Code] : Code>;
147
+ defer: (fn: import("elysia/types").AfterResponseHandler<NoInfer<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, `/${string}`>, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>>, NoInfer<import("elysia/types").DefaultSingleton & {
148
+ derive: {};
149
+ }>>) => import("elysia/types").MaybePromise<void>;
150
+ readonly path: string;
151
+ route?: string | undefined;
152
+ rid?: string | undefined;
153
+ request: Request;
154
+ store: {};
155
+ }) => Promise<Response | undefined>>;
@@ -1,2 +1,2 @@
1
- import { Elysia } from 'elysia';
2
- export declare const networking: <A extends Elysia>(app: A) => A;
1
+ import { type AnyElysia } from 'elysia';
2
+ export declare const networking: <A extends AnyElysia>(app: A) => A;
@@ -0,0 +1,4 @@
1
+ import type { AnyElysia } from 'elysia';
2
+ import type { BuildConfig } from '../../types/build';
3
+ export declare const openApiEnabled: (config: BuildConfig, isDev: boolean) => boolean;
4
+ export declare const withOpenApi: (app: AnyElysia, config: BuildConfig, cwd: string, isDev: boolean) => Promise<AnyElysia>;
@@ -0,0 +1,36 @@
1
+ import type { AnyElysia } from 'elysia';
2
+ import type { BuildConfig } from '../../types/build';
3
+ export declare const withTelemetry: (app: AnyElysia, config: BuildConfig, cwd: string) => Promise<AnyElysia | import("elysia").Elysia<any, any, {
4
+ decorator: any;
5
+ store: {
6
+ [x: string]: any;
7
+ };
8
+ derive: any;
9
+ }, {
10
+ typebox: any;
11
+ error: any[];
12
+ }, any, {
13
+ [x: string]: any;
14
+ } & ({
15
+ [x: string]: any;
16
+ } | {
17
+ [x: string]: {
18
+ [x: string]: any;
19
+ };
20
+ } | {
21
+ [x: string]: {
22
+ [x: string]: {
23
+ [x: string]: any;
24
+ };
25
+ };
26
+ } | {
27
+ [x: string]: {
28
+ [x: string]: any;
29
+ };
30
+ }), any, {
31
+ derive: any;
32
+ schema: any;
33
+ schemas: any;
34
+ response: any;
35
+ error: any[];
36
+ }>>;
@@ -1,5 +1,3 @@
1
1
  export { Island } from './Island.browser';
2
2
  export { createTypedIsland } from './createIsland.browser';
3
- export { UniversalRouter } from './UniversalRouter';
4
- export type { UniversalRouterProps } from './UniversalRouter';
5
3
  export { useIslandStore } from './hooks/useIslandStore';
@@ -1,5 +1,5 @@
1
1
  import { Breakpoint, Breakpoints } from '../../../types/mediaQuery';
2
- export declare const UserAgentProvider: import("react").Provider<"bot" | "phone" | "tablet" | "tv" | "console" | "car" | "iot" | "desktop" | "other" | null>;
2
+ export declare const UserAgentProvider: import("react").Provider<"console" | "other" | "bot" | "phone" | "tablet" | "tv" | "car" | "iot" | "desktop" | null>;
3
3
  export declare const useMediaQuery: (customBreakpoints?: Breakpoints) => {
4
4
  breakpoint: string;
5
5
  isSizeOrGreater: (target: Breakpoint) => boolean;
@@ -1,6 +1,4 @@
1
1
  export { handleReactPageRequest } from './pageHandler';
2
2
  export { Island } from './Island';
3
3
  export { createTypedIsland } from './createIsland';
4
- export { UniversalRouter } from './UniversalRouter';
5
- export type { UniversalRouterProps } from './UniversalRouter';
6
4
  export { useIslandStore } from './hooks/useIslandStore';
@@ -1,4 +1,4 @@
1
- import { Fragment, jsx } from 'react/jsx-runtime';
1
+ import { Fragment, jsx } from './jsxRuntimeCompat';
2
2
  type JSXType = Parameters<typeof jsx>[0];
3
3
  type JSXKey = Parameters<typeof jsx>[2];
4
4
  type JSXProps = Parameters<typeof jsx>[1] & {
@@ -0,0 +1,7 @@
1
+ import { Fragment, jsx as reactJsx } from 'react/jsx-runtime';
2
+ type JSXType = Parameters<typeof reactJsx>[0];
3
+ type JSXProps = Parameters<typeof reactJsx>[1];
4
+ type JSXKey = Parameters<typeof reactJsx>[2];
5
+ export { Fragment };
6
+ export declare const jsx: (type: JSXType, props: JSXProps, key?: JSXKey) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
7
+ export declare const jsxs: (type: JSXType, props: JSXProps, key?: JSXKey) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
@@ -1,9 +1,17 @@
1
1
  import type { ComponentType as ReactComponent } from 'react';
2
+ import type { AbsoluteMobileBuildPageMetadata } from '../mobile/buildMetadata';
2
3
  import { type StreamingSlotEnhancerOptions } from '../core/responseEnhancers';
3
4
  type ReactPageRenderOptions = StreamingSlotEnhancerOptions & {
4
5
  collectStreamingSlots?: boolean;
6
+ /** Buffer this page's stream so it can carry a content-hash `ETag` and
7
+ * serve a `304` on repeat visits, at the cost of streaming's fast first
8
+ * byte. Only worth it on pages static enough that the 304 beats the
9
+ * stream. See {@link PageCacheOptions.bufferStreamForEtag}. */
10
+ bufferStreamForEtag?: boolean;
5
11
  };
6
12
  export type ReactPageRequestInput<Props extends Record<string, unknown> = Record<never, never>> = ReactPageRenderOptions & {
13
+ /** @internal Build-generated mobile identity. Application code must not set this. */
14
+ __absoluteMobile?: AbsoluteMobileBuildPageMetadata;
7
15
  Page: ReactComponent<Props>;
8
16
  index: string;
9
17
  /** The incoming Elysia request. When provided, the request's pathname
@@ -0,0 +1,43 @@
1
+ import { type ReactNode } from 'react';
2
+ export type UniversalRouterProps = {
3
+ /** The request URL to seed `<StaticRouter>` with on the server. Pages
4
+ * typically forward `props.url` (auto-injected by handleReactPageRequest
5
+ * from `request.url`). Ignored in the browser, where `<BrowserRouter>`
6
+ * reads `window.location` directly. Defaults to '/'. */
7
+ url?: string;
8
+ children?: ReactNode;
9
+ };
10
+ /** SSR-safe wrapper around react-router that picks `<StaticRouter>` on the
11
+ * server and `<BrowserRouter>` in the browser. Without it, every SPA page
12
+ * has to write its own `typeof window === 'undefined'` branch and import
13
+ * both routers — boilerplate that's the same in every page.
14
+ *
15
+ * Usage:
16
+ *
17
+ * import { UniversalRouter } from '@absolutejs/absolute/react/router';
18
+ *
19
+ * export const MySpa = ({ url }: { url?: string }) => (
20
+ * <html>
21
+ * <Head />
22
+ * <body>
23
+ * <UniversalRouter url={url}>
24
+ * <Routes>
25
+ * <Route path="/foo" element={<Foo />} />
26
+ * </Routes>
27
+ * </UniversalRouter>
28
+ * </body>
29
+ * </html>
30
+ * );
31
+ *
32
+ * This component lives on its own `@absolutejs/absolute/react/router`
33
+ * subpath rather than the main `@absolutejs/absolute/react` barrel so the
34
+ * static `import 'react-router'` below only loads for consumers who
35
+ * actually use the router — importing `Head`/`Image`/`Island` from
36
+ * `@absolutejs/absolute/react` does not pull react-router into the bundle,
37
+ * so projects that don't route aren't forced to install it.
38
+ *
39
+ * `<BrowserRouter>` reads `window.history` at construction, so it throws
40
+ * if instantiated on the server. The `typeof window` check has to live at
41
+ * render time (not import time) because the module is loaded in both
42
+ * environments. */
43
+ export declare const UniversalRouter: ({ url, children }: UniversalRouterProps) => import("react").FunctionComponentElement<import("react-router").StaticRouterProps> | import("react").FunctionComponentElement<import("react-router").BrowserRouterProps>;
@@ -0,0 +1,2 @@
1
+ export { UniversalRouter } from './UniversalRouter';
2
+ export type { UniversalRouterProps } from './UniversalRouter';
@@ -0,0 +1,2 @@
1
+ export { UniversalRouter } from './UniversalRouter';
2
+ export type { UniversalRouterProps } from './UniversalRouter';
@@ -5,6 +5,11 @@ export type SveltePageRenderOptions = {
5
5
  collectStreamingSlots?: boolean;
6
6
  bodyContent?: string;
7
7
  headContent?: string;
8
+ /** Buffer this page's stream so it can carry a content-hash `ETag` and
9
+ * serve a `304` on repeat visits, at the cost of streaming's fast first
10
+ * byte. Only worth it on pages static enough that the 304 beats the
11
+ * stream. See {@link PageCacheOptions.bufferStreamForEtag}. */
12
+ bufferStreamForEtag?: boolean;
8
13
  } & StreamingSlotEnhancerOptions;
9
14
  type HasNoSvelteProps<Props> = [Props] extends [never] ? true : keyof Props extends never ? true : false;
10
15
  export type SveltePageRequestInput<Component extends SvelteComponent<never> = SvelteComponent<Record<never, never>>> = SveltePageRenderOptions & {
@@ -12,10 +12,5 @@
12
12
  * Returns the part after `#/`, prefixed with `/` so it parses as a
13
13
  * normal pathname.
14
14
  */
15
- export declare const hashPathnameOf: (url: URL) => string;
16
- /**
17
- * Build a hash URL from a routable pathname. Used by goto() / pushState()
18
- * when in hash mode — converts `/dashboard/settings` to `#/dashboard/settings`
19
- * and writes the result back to the URL.
20
- */
21
15
  export declare const buildHashHref: (pathname: string) => string;
16
+ export declare const hashPathnameOf: (url: URL) => string;
@@ -17,34 +17,14 @@ type CompiledPattern = {
17
17
  * Compile a `<Route path>` pattern into segments + a specificity score.
18
18
  * Higher score = more specific (longer static prefix beats parameterised).
19
19
  */
20
- export declare const compilePattern: (pattern: string) => CompiledPattern;
21
- /**
22
- * Match a URL pathname against a compiled pattern. Returns the extracted
23
- * params on a successful match, or a miss otherwise.
24
- */
25
- export declare const matchPattern: <Path extends string>(pattern: CompiledPattern, pathname: string) => RouteMatchResult<ExtractRouteParams<Path>>;
26
- /**
27
- * Stable comparator for compiled patterns. Higher specificity sorts first.
28
- * When two patterns have equal score, declaration order (the original index)
29
- * decides — passed in via the `index` field on each entry.
30
- */
31
- export declare const comparePatterns: (a: {
20
+ export declare const comparePatterns: (left: {
32
21
  score: number;
33
22
  index: number;
34
- }, b: {
23
+ }, right: {
35
24
  score: number;
36
25
  index: number;
37
26
  }) => number;
38
- /**
39
- * Join a basepath stack with a child pattern, producing an absolute pattern
40
- * that the route matcher can compile against an incoming pathname.
41
- *
42
- * Handles slash edge cases:
43
- * joinBasepath('', '/users') → '/users'
44
- * joinBasepath('/portal', '/users') → '/portal/users'
45
- * joinBasepath('/portal/', '/users') → '/portal/users'
46
- * joinBasepath('/portal', 'users') → '/portal/users'
47
- * joinBasepath('/portal', '/') → '/portal'
48
- */
27
+ export declare const compilePattern: (pattern: string) => CompiledPattern;
49
28
  export declare const joinBasepath: (basepath: string, pattern: string) => string;
29
+ export declare const matchPattern: <Path extends string>(pattern: CompiledPattern, pathname: string) => RouteMatchResult<ExtractRouteParams<Path>>;
50
30
  export {};
@@ -11,14 +11,5 @@ import type { PageState } from '../../../types/svelteRouter';
11
11
  * Backed by `$state`. Direct property access in templates re-renders.
12
12
  */
13
13
  export declare const page: PageState;
14
- /**
15
- * Internal — only Router.svelte and the navigation primitives call this.
16
- * Replaces the entire page state in one assignment so subscribers fire
17
- * once per navigation rather than once per mutated field.
18
- */
19
- export declare const setPage: (next: Partial<PageState>) => void;
20
- /**
21
- * Internal — used during SSR to seed the page state before render so
22
- * `<Route>` blocks see the correct `page.url`.
23
- */
24
14
  export declare const seedPage: (url: URL, params?: Record<string, string | undefined>) => void;
15
+ export declare const setPage: (next: Partial<PageState>) => void;
@@ -2,13 +2,9 @@
2
2
  * Prefetch a URL into the in-memory cache. No-op if the user has signalled
3
3
  * data-saver / reduced-data, or if the URL is already cached.
4
4
  */
5
- export declare const prefetch: (url: string) => void;
6
- /**
7
- * Consume a cached prefetch entry on actual navigation, removing it from
8
- * the cache. Returns the cached Promise<Response> or undefined.
9
- */
10
- export declare const consumePrefetch: (url: string) => Promise<Response> | undefined;
11
5
  export declare const clearPrefetchCache: () => void;
6
+ export declare const consumePrefetch: (url: string) => Promise<Response> | undefined;
7
+ export declare const prefetch: (url: string) => void;
12
8
  type HoverHandle = {
13
9
  cancel: () => void;
14
10
  };
@@ -5,5 +5,6 @@ type CleanupProps = {
5
5
  vueDir?: string;
6
6
  preserveAngularGenerated?: boolean;
7
7
  };
8
+ export declare const removeIfExists: (path: string) => Promise<void>;
8
9
  export declare const cleanup: ({ angularDir, reactDir, svelteDir, vueDir, preserveAngularGenerated }: CleanupProps) => Promise<void>;
9
10
  export {};