@absolutejs/absolute 0.19.0-beta.1043 → 0.19.0-beta.1044

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 (523) hide show
  1. package/dist/angular/browser.js +10358 -0
  2. package/dist/angular/browser.js.map +260 -0
  3. package/dist/angular/components/constants.js +101 -0
  4. package/dist/angular/components/core/streamingSlotRegistrar.js +58 -0
  5. package/dist/angular/components/core/streamingSlotRegistry.js +114 -0
  6. package/dist/angular/components/defer-slot-payload.js +6 -0
  7. package/dist/angular/components/defer-slot-templates.directive.js +44 -0
  8. package/dist/angular/components/defer-slot.component.js +152 -0
  9. package/dist/angular/components/image.component.js +202 -0
  10. package/dist/angular/components/index.js +4 -0
  11. package/dist/angular/components/stream-slot.component.js +102 -0
  12. package/dist/angular/hmrPreserveCore.ts +188 -0
  13. package/dist/angular/index.js +15793 -0
  14. package/dist/angular/index.js.map +299 -0
  15. package/dist/angular/server.js +6357 -0
  16. package/dist/angular/server.js.map +61 -0
  17. package/dist/build.js +27484 -0
  18. package/dist/build.js.map +146 -0
  19. package/dist/cli/config/client.js +527 -0
  20. package/dist/cli/config/server.js +37130 -0
  21. package/dist/cli/htmx/htmx.min.js +1 -0
  22. package/dist/cli/index.js +180130 -0
  23. package/dist/client/index.js +1267 -0
  24. package/dist/client/index.js.map +31 -0
  25. package/dist/core/streamingSlotRegistrar.js +138 -0
  26. package/dist/core/streamingSlotRegistrar.js.map +10 -0
  27. package/dist/core/streamingSlotRegistry.js +194 -0
  28. package/dist/core/streamingSlotRegistry.js.map +11 -0
  29. package/dist/dev/client/constants.ts +26 -0
  30. package/dist/dev/client/cssUtils.ts +311 -0
  31. package/dist/dev/client/domDiff.ts +226 -0
  32. package/dist/dev/client/domState.ts +423 -0
  33. package/dist/dev/client/domTracker.ts +61 -0
  34. package/dist/dev/client/errorOverlay.ts +445 -0
  35. package/dist/dev/client/frameworkDetect.ts +63 -0
  36. package/dist/dev/client/handlers/angularHmrShim.ts +88 -0
  37. package/dist/dev/client/handlers/angularRemount.ts +362 -0
  38. package/dist/dev/client/handlers/angularRemountWiring.ts +52 -0
  39. package/dist/dev/client/handlers/html.ts +364 -0
  40. package/dist/dev/client/handlers/htmx.ts +278 -0
  41. package/dist/dev/client/handlers/react.ts +108 -0
  42. package/dist/dev/client/handlers/rebuild.ts +153 -0
  43. package/dist/dev/client/handlers/svelte.ts +334 -0
  44. package/dist/dev/client/handlers/vue.ts +292 -0
  45. package/dist/dev/client/headPatch.ts +233 -0
  46. package/dist/dev/client/hmrClient.ts +352 -0
  47. package/dist/dev/client/hmrState.ts +14 -0
  48. package/dist/dev/client/hmrToast.ts +150 -0
  49. package/dist/dev/client/moduleVersions.ts +62 -0
  50. package/dist/dev/client/reactRefreshSetup.ts +31 -0
  51. package/dist/dev/client/vendor/lview/lViewOps.ts +196 -0
  52. package/dist/dev/client/vendor/lview/slotConstants.ts +44 -0
  53. package/dist/dev/client/vendor/reactRefreshRuntime.d.ts +12 -0
  54. package/dist/dev/client/vendor/reactRefreshRuntime.js +313 -0
  55. package/dist/image-client/imageClient.js +69 -0
  56. package/dist/index.js +36383 -0
  57. package/dist/index.js.map +320 -0
  58. package/dist/islands/browser.js +259 -0
  59. package/dist/islands/browser.js.map +15 -0
  60. package/dist/islands/index.js +2415 -0
  61. package/dist/islands/index.js.map +37 -0
  62. package/dist/react/browser.js +374 -0
  63. package/dist/react/browser.js.map +19 -0
  64. package/dist/react/components/browser/index.js +467 -0
  65. package/dist/react/components/index.js +684 -0
  66. package/dist/react/components/index.js.map +18 -0
  67. package/dist/react/hooks/index.js +285 -0
  68. package/dist/react/hooks/index.js.map +14 -0
  69. package/dist/react/index.js +4258 -0
  70. package/dist/react/index.js.map +56 -0
  71. package/dist/react/jsxDevRuntimeCompat.js +90 -0
  72. package/dist/react/jsxDevRuntimeCompat.js.map +10 -0
  73. package/dist/react/router/browser.js +95 -0
  74. package/dist/react/router/browser.js.map +10 -0
  75. package/dist/react/router/index.js +95 -0
  76. package/dist/react/router/index.js.map +10 -0
  77. package/dist/react/server.js +1895 -0
  78. package/dist/react/server.js.map +26 -0
  79. package/dist/src/angular/Island.browser.d.ts +34 -0
  80. package/dist/src/angular/Island.d.ts +29 -0
  81. package/dist/src/angular/angularDeps.d.ts +2 -0
  82. package/dist/src/angular/angularPatch.d.ts +1 -0
  83. package/dist/src/angular/animationProviders.d.ts +2 -0
  84. package/dist/src/angular/browser.d.ts +14 -0
  85. package/dist/src/angular/components/constants.d.ts +96 -0
  86. package/dist/src/angular/components/defer-slot-payload.d.ts +7 -0
  87. package/dist/src/angular/components/defer-slot-templates.directive.d.ts +21 -0
  88. package/dist/src/angular/components/defer-slot.component.d.ts +29 -0
  89. package/dist/src/angular/components/image.component.d.ts +42 -0
  90. package/dist/src/angular/components/index.d.ts +4 -0
  91. package/dist/src/angular/components/stream-slot.component.d.ts +20 -0
  92. package/dist/src/angular/composables/index.d.ts +6 -0
  93. package/dist/src/angular/composables/usePageContext.d.ts +16 -0
  94. package/dist/src/angular/composables/useResource.d.ts +57 -0
  95. package/dist/src/angular/composables/useSubscription.d.ts +33 -0
  96. package/dist/src/angular/composables/useTimers.d.ts +18 -0
  97. package/dist/src/angular/createIsland.browser.d.ts +2 -0
  98. package/dist/src/angular/createIsland.d.ts +2 -0
  99. package/dist/src/angular/deterministicEnv.d.ts +26 -0
  100. package/dist/src/angular/hmrPreserveCore.d.ts +21 -0
  101. package/dist/src/angular/httpTransferCache.d.ts +12 -0
  102. package/dist/src/angular/index.d.ts +14 -0
  103. package/dist/src/angular/injectorPatch.d.ts +1 -0
  104. package/dist/src/angular/islandStore.d.ts +9 -0
  105. package/dist/src/angular/islands.d.ts +4 -0
  106. package/dist/src/angular/lowerDeferSyntax.d.ts +18 -0
  107. package/dist/src/angular/lowerServerIslands.d.ts +1 -0
  108. package/dist/src/angular/pageHandler.d.ts +48 -0
  109. package/dist/src/angular/pendingTask.d.ts +1 -0
  110. package/dist/src/angular/preserveAcrossHmr.d.ts +12 -0
  111. package/dist/src/angular/renderIsland.d.ts +2 -0
  112. package/dist/src/angular/requestProviders.d.ts +5 -0
  113. package/dist/src/angular/resolveAngularPackage.d.ts +19 -0
  114. package/dist/src/angular/routerRedirectProviders.d.ts +6 -0
  115. package/dist/src/angular/server.d.ts +4 -0
  116. package/dist/src/angular/ssrRender.d.ts +13 -0
  117. package/dist/src/angular/ssrSanitizer.d.ts +3 -0
  118. package/dist/src/angular/staticAnalyzeSpaRoutes.d.ts +7 -0
  119. package/dist/src/build/angularLinkerPlugin.d.ts +29 -0
  120. package/dist/src/build/buildAngularVendor.d.ts +40 -0
  121. package/dist/src/build/buildDepVendor.d.ts +2 -0
  122. package/dist/src/build/buildEmberVendor.d.ts +24 -0
  123. package/dist/src/build/buildReactVendor.d.ts +8 -0
  124. package/dist/src/build/buildSvelteVendor.d.ts +6 -0
  125. package/dist/src/build/buildVueVendor.d.ts +6 -0
  126. package/dist/src/build/chainInlineSourcemaps.d.ts +13 -0
  127. package/dist/src/build/compileAngular.d.ts +40 -0
  128. package/dist/src/build/compileEmber.d.ts +43 -0
  129. package/dist/src/build/compileSvelte.d.ts +14 -0
  130. package/dist/src/build/compileTailwind.d.ts +5 -0
  131. package/dist/src/build/compileVue.d.ts +22 -0
  132. package/dist/src/build/externalAssetPlugin.d.ts +2 -0
  133. package/dist/src/build/generateManifest.d.ts +2 -0
  134. package/dist/src/build/generateReactIndexes.d.ts +2 -0
  135. package/dist/src/build/htmlScriptHMRPlugin.d.ts +13 -0
  136. package/dist/src/build/index.d.ts +2 -0
  137. package/dist/src/build/islandEntries.d.ts +32 -0
  138. package/dist/src/build/islandRegistryTransform.d.ts +17 -0
  139. package/dist/src/build/nativeRewrite.d.ts +5 -0
  140. package/dist/src/build/optimizeHtmlImages.d.ts +2 -0
  141. package/dist/src/build/outputLogs.d.ts +1 -0
  142. package/dist/src/build/parseAngularConfigImports.d.ts +9 -0
  143. package/dist/src/build/parseVueSpaRoutes.d.ts +20 -0
  144. package/dist/src/build/resolvePackageImport.d.ts +9 -0
  145. package/dist/src/build/rewriteImports.d.ts +8 -0
  146. package/dist/src/build/rewriteImportsPlugin.d.ts +48 -0
  147. package/dist/src/build/rewriteReactImports.d.ts +7 -0
  148. package/dist/src/build/runAngularHandlerScan.d.ts +7 -0
  149. package/dist/src/build/scanAngularHandlerCalls.d.ts +13 -0
  150. package/dist/src/build/scanAngularPageRoutes.d.ts +10 -0
  151. package/dist/src/build/scanConventions.d.ts +5 -0
  152. package/dist/src/build/scanCssEntryPoints.d.ts +1 -0
  153. package/dist/src/build/scanEntryPoints.d.ts +1 -0
  154. package/dist/src/build/scanRouteRegistrations.d.ts +23 -0
  155. package/dist/src/build/scanVueSsrOnlyPages.d.ts +6 -0
  156. package/dist/src/build/staticIslandPages.d.ts +9 -0
  157. package/dist/src/build/stylePreprocessor.d.ts +26 -0
  158. package/dist/src/build/tailwindCompiler.d.ts +8 -0
  159. package/dist/src/build/updateAssetPaths.d.ts +1 -0
  160. package/dist/src/build/vendorEntrySource.d.ts +1 -0
  161. package/dist/src/build/verifyAngularCoreUniqueness.d.ts +2 -0
  162. package/dist/src/build/vueAutoRouterTransform.d.ts +1 -0
  163. package/dist/src/build/wrapHTMLScript.d.ts +17 -0
  164. package/dist/src/build.d.ts +2 -0
  165. package/dist/src/cli/add/dependencies.d.ts +12 -0
  166. package/dist/src/cli/cache.d.ts +15 -0
  167. package/dist/src/cli/config/absolute/AbsoluteConfigPanel.d.ts +6 -0
  168. package/dist/src/cli/config/absolute/editAbsoluteConfig.d.ts +5 -0
  169. package/dist/src/cli/config/absolute/resolveAbsoluteConfig.d.ts +14 -0
  170. package/dist/src/cli/config/client.d.ts +1 -0
  171. package/dist/src/cli/config/configCert.d.ts +12 -0
  172. package/dist/src/cli/config/eslint/EslintPanel.d.ts +6 -0
  173. package/dist/src/cli/config/eslint/configAst.d.ts +18 -0
  174. package/dist/src/cli/config/eslint/editConfigRule.d.ts +6 -0
  175. package/dist/src/cli/config/eslint/eslintStyles.d.ts +1 -0
  176. package/dist/src/cli/config/eslint/resolveConfig.d.ts +3 -0
  177. package/dist/src/cli/config/eslint/serializeValue.d.ts +9 -0
  178. package/dist/src/cli/config/guards.d.ts +4 -0
  179. package/dist/src/cli/config/packageJson/PackageJsonPanel.d.ts +6 -0
  180. package/dist/src/cli/config/packageJson/editPackageJson.d.ts +9 -0
  181. package/dist/src/cli/config/packageJson/resolvePackageJson.d.ts +9 -0
  182. package/dist/src/cli/config/page/ConfigShell.d.ts +6 -0
  183. package/dist/src/cli/config/page/FieldEditor.d.ts +9 -0
  184. package/dist/src/cli/config/page/PanelHost.d.ts +6 -0
  185. package/dist/src/cli/config/page/configStyles.d.ts +1 -0
  186. package/dist/src/cli/config/panels.d.ts +7 -0
  187. package/dist/src/cli/config/prettier/PrettierPanel.d.ts +6 -0
  188. package/dist/src/cli/config/prettier/editPrettier.d.ts +5 -0
  189. package/dist/src/cli/config/prettier/resolvePrettier.d.ts +11 -0
  190. package/dist/src/cli/config/schema/fromJsonSchema.d.ts +3 -0
  191. package/dist/src/cli/config/schema/fromType.d.ts +2 -0
  192. package/dist/src/cli/config/schema/serialize.d.ts +1 -0
  193. package/dist/src/cli/config/server.d.ts +298 -0
  194. package/dist/src/cli/config/tsconfig/TsconfigPanel.d.ts +6 -0
  195. package/dist/src/cli/config/tsconfig/editTsconfig.d.ts +5 -0
  196. package/dist/src/cli/config/tsconfig/resolveTsconfig.d.ts +8 -0
  197. package/dist/src/cli/config/tsconfig/tsconfigStyles.d.ts +1 -0
  198. package/dist/src/cli/discoverInstances.d.ts +5 -0
  199. package/dist/src/cli/generate/componentTemplates.d.ts +7 -0
  200. package/dist/src/cli/generate/context.d.ts +30 -0
  201. package/dist/src/cli/generate/cssStrategy.d.ts +20 -0
  202. package/dist/src/cli/generate/frameworkKey.d.ts +3 -0
  203. package/dist/src/cli/generate/frameworks.d.ts +40 -0
  204. package/dist/src/cli/generate/generateApi.d.ts +3 -0
  205. package/dist/src/cli/generate/generateComponent.d.ts +4 -0
  206. package/dist/src/cli/generate/generatePage.d.ts +4 -0
  207. package/dist/src/cli/generate/naming.d.ts +5 -0
  208. package/dist/src/cli/generate/navData.d.ts +10 -0
  209. package/dist/src/cli/generate/outcome.d.ts +17 -0
  210. package/dist/src/cli/generate/pageTemplates.d.ts +11 -0
  211. package/dist/src/cli/generate/routeWiring.d.ts +40 -0
  212. package/dist/src/cli/generate/staticNav.d.ts +5 -0
  213. package/dist/src/cli/heapDiff.d.ts +1 -0
  214. package/dist/src/cli/htmx/install.d.ts +6 -0
  215. package/dist/src/cli/index.d.ts +2 -0
  216. package/dist/src/cli/inspectData.d.ts +12 -0
  217. package/dist/src/cli/inspectTui.d.ts +1 -0
  218. package/dist/src/cli/instanceStatus.d.ts +22 -0
  219. package/dist/src/cli/interactive.d.ts +2 -0
  220. package/dist/src/cli/psTui.d.ts +1 -0
  221. package/dist/src/cli/scripts/add.d.ts +1 -0
  222. package/dist/src/cli/scripts/analyze.d.ts +1 -0
  223. package/dist/src/cli/scripts/api.d.ts +1 -0
  224. package/dist/src/cli/scripts/build.d.ts +1 -0
  225. package/dist/src/cli/scripts/compile.d.ts +2 -0
  226. package/dist/src/cli/scripts/dev.d.ts +1 -0
  227. package/dist/src/cli/scripts/doctor.d.ts +1 -0
  228. package/dist/src/cli/scripts/env.d.ts +7 -0
  229. package/dist/src/cli/scripts/eslint.d.ts +16 -0
  230. package/dist/src/cli/scripts/generate.d.ts +1 -0
  231. package/dist/src/cli/scripts/htmx.d.ts +1 -0
  232. package/dist/src/cli/scripts/info.d.ts +1 -0
  233. package/dist/src/cli/scripts/inspect.d.ts +1 -0
  234. package/dist/src/cli/scripts/islands.d.ts +1 -0
  235. package/dist/src/cli/scripts/logs.d.ts +1 -0
  236. package/dist/src/cli/scripts/ls.d.ts +1 -0
  237. package/dist/src/cli/scripts/mem.d.ts +1 -0
  238. package/dist/src/cli/scripts/prettier.d.ts +3 -0
  239. package/dist/src/cli/scripts/ps.d.ts +1 -0
  240. package/dist/src/cli/scripts/remove.d.ts +1 -0
  241. package/dist/src/cli/scripts/routes.d.ts +1 -0
  242. package/dist/src/cli/scripts/start.d.ts +1 -0
  243. package/dist/src/cli/scripts/telemetry.d.ts +5 -0
  244. package/dist/src/cli/scripts/tunnelRelay.d.ts +9 -0
  245. package/dist/src/cli/scripts/typecheck.d.ts +1 -0
  246. package/dist/src/cli/scripts/workspace.d.ts +11 -0
  247. package/dist/src/cli/telemetryEvent.d.ts +1 -0
  248. package/dist/src/cli/tuiPrimitives.d.ts +14 -0
  249. package/dist/src/cli/utils.d.ts +15 -0
  250. package/dist/src/cli/workspaceTui.d.ts +44 -0
  251. package/dist/src/client/hydrators/react.d.ts +3 -0
  252. package/dist/src/client/hydrators/svelte.d.ts +2 -0
  253. package/dist/src/client/hydrators/vue.d.ts +2 -0
  254. package/dist/src/client/index.d.ts +4 -0
  255. package/dist/src/client/islandResolver.d.ts +2 -0
  256. package/dist/src/client/islandRuntime.d.ts +9 -0
  257. package/dist/src/client/islandStore.d.ts +22 -0
  258. package/dist/src/client/preserveIslandMarkup.d.ts +16 -0
  259. package/dist/src/client/streamSwap.d.ts +1 -0
  260. package/dist/src/constants.d.ts +96 -0
  261. package/dist/src/core/angularServerModule.d.ts +1 -0
  262. package/dist/src/core/build.d.ts +14 -0
  263. package/dist/src/core/currentIslandRegistry.d.ts +7 -0
  264. package/dist/src/core/devBuild.d.ts +23 -0
  265. package/dist/src/core/devRouteRegistrationCallsite.d.ts +4 -0
  266. package/dist/src/core/devVendorPaths.d.ts +17 -0
  267. package/dist/src/core/index.d.ts +7 -0
  268. package/dist/src/core/islandManifest.d.ts +3 -0
  269. package/dist/src/core/islandMarkupAttributes.d.ts +12 -0
  270. package/dist/src/core/islandPageContext.d.ts +12 -0
  271. package/dist/src/core/islandSsr.d.ts +6 -0
  272. package/dist/src/core/islands.d.ts +16 -0
  273. package/dist/src/core/loadIslandRegistry.d.ts +1 -0
  274. package/dist/src/core/lookup.d.ts +1 -0
  275. package/dist/src/core/normalizeIslandProps.d.ts +15 -0
  276. package/dist/src/core/pageHandlers.d.ts +5 -0
  277. package/dist/src/core/prepare.d.ts +417 -0
  278. package/dist/src/core/prerender.d.ts +31 -0
  279. package/dist/src/core/renderIslandMarkup.d.ts +13 -0
  280. package/dist/src/core/responseEnhancers.d.ts +10 -0
  281. package/dist/src/core/staticStreaming.d.ts +25 -0
  282. package/dist/src/core/streamingSlotRegistrar.d.ts +16 -0
  283. package/dist/src/core/streamingSlotRegistry.d.ts +2 -0
  284. package/dist/src/core/streamingSlotWarningScope.d.ts +4 -0
  285. package/dist/src/core/svelteServerModule.d.ts +1 -0
  286. package/dist/src/core/vueServerModule.d.ts +1 -0
  287. package/dist/src/core/wrapPageHandlerWithStreamingSlots.d.ts +2 -0
  288. package/dist/src/dev/angular/fastHmrCompiler.d.ts +58 -0
  289. package/dist/src/dev/angular/hmrCompiler.d.ts +2 -0
  290. package/dist/src/dev/angular/hmrImportGenerator.d.ts +3 -0
  291. package/dist/src/dev/angular/hmrInjectionPlugin.d.ts +8 -0
  292. package/dist/src/dev/angular/resolveOwningComponents.d.ts +16 -0
  293. package/dist/src/dev/angular/vendor/translator/api/ast_factory.d.ts +363 -0
  294. package/dist/src/dev/angular/vendor/translator/api/import_generator.d.ts +49 -0
  295. package/dist/src/dev/angular/vendor/translator/context.d.ts +18 -0
  296. package/dist/src/dev/angular/vendor/translator/translator.d.ts +75 -0
  297. package/dist/src/dev/angular/vendor/translator/ts_util.d.ts +12 -0
  298. package/dist/src/dev/angular/vendor/translator/typescript_ast_factory.d.ts +66 -0
  299. package/dist/src/dev/angular/vendor/translator/typescript_translator.d.ts +13 -0
  300. package/dist/src/dev/assetStore.d.ts +8 -0
  301. package/dist/src/dev/buildHMRClient.d.ts +1 -0
  302. package/dist/src/dev/clientManager.d.ts +33 -0
  303. package/dist/src/dev/configResolver.d.ts +16 -0
  304. package/dist/src/dev/dependencyGraph.d.ts +10 -0
  305. package/dist/src/dev/devCert.d.ts +11 -0
  306. package/dist/src/dev/fileHashTracker.d.ts +2 -0
  307. package/dist/src/dev/fileWatcher.d.ts +4 -0
  308. package/dist/src/dev/moduleMapper.d.ts +27 -0
  309. package/dist/src/dev/moduleServer.d.ts +24 -0
  310. package/dist/src/dev/moduleVersionTracker.d.ts +7 -0
  311. package/dist/src/dev/pathUtils.d.ts +8 -0
  312. package/dist/src/dev/reactComponentClassifier.d.ts +2 -0
  313. package/dist/src/dev/rebuildTrigger.d.ts +11 -0
  314. package/dist/src/dev/requestInspector.d.ts +43 -0
  315. package/dist/src/dev/serverEntryWatcher.d.ts +5 -0
  316. package/dist/src/dev/simpleHTMLHMR.d.ts +4 -0
  317. package/dist/src/dev/simpleHTMXHMR.d.ts +4 -0
  318. package/dist/src/dev/transformCache.d.ts +22 -0
  319. package/dist/src/dev/tunnel/client.d.ts +20 -0
  320. package/dist/src/dev/tunnel/protocol.d.ts +85 -0
  321. package/dist/src/dev/tunnel/relay.d.ts +28 -0
  322. package/dist/src/dev/webSocket.d.ts +9 -0
  323. package/dist/src/ember/browser.d.ts +24 -0
  324. package/dist/src/ember/index.d.ts +2 -0
  325. package/dist/src/ember/pageHandler.d.ts +35 -0
  326. package/dist/src/ember/server.d.ts +2 -0
  327. package/dist/src/index.d.ts +7 -0
  328. package/dist/src/islands/browser.d.ts +3 -0
  329. package/dist/src/islands/index.d.ts +3 -0
  330. package/dist/src/islands/pageMetadata.d.ts +13 -0
  331. package/dist/src/islands/sourceMetadata.d.ts +10 -0
  332. package/dist/src/plugins/devtoolsJson.d.ts +58 -0
  333. package/dist/src/plugins/hmr.d.ts +163 -0
  334. package/dist/src/plugins/imageOptimizer.d.ts +67 -0
  335. package/dist/src/plugins/index.d.ts +3 -0
  336. package/dist/src/plugins/networking.d.ts +2 -0
  337. package/dist/src/plugins/pageRouter.d.ts +1 -0
  338. package/dist/src/react/Island.browser.d.ts +2 -0
  339. package/dist/src/react/Island.d.ts +2 -0
  340. package/dist/src/react/bridgeInternals.d.ts +1 -0
  341. package/dist/src/react/browser.d.ts +3 -0
  342. package/dist/src/react/components/Head.d.ts +2 -0
  343. package/dist/src/react/components/Image.d.ts +2 -0
  344. package/dist/src/react/components/JsonLd.d.ts +4 -0
  345. package/dist/src/react/components/StreamSlot.browser.d.ts +10 -0
  346. package/dist/src/react/components/StreamSlot.d.ts +10 -0
  347. package/dist/src/react/components/SuspenseSlot.browser.d.ts +22 -0
  348. package/dist/src/react/components/SuspenseSlot.d.ts +37 -0
  349. package/dist/src/react/components/browser/index.d.ts +5 -0
  350. package/dist/src/react/components/index.d.ts +5 -0
  351. package/dist/src/react/createIsland.browser.d.ts +2 -0
  352. package/dist/src/react/createIsland.d.ts +2 -0
  353. package/dist/src/react/hooks/index.d.ts +3 -0
  354. package/dist/src/react/hooks/useIslandStore.d.ts +3 -0
  355. package/dist/src/react/hooks/useMediaQuery.d.ts +7 -0
  356. package/dist/src/react/index.d.ts +4 -0
  357. package/dist/src/react/jsxDevRuntimeCompat.d.ts +8 -0
  358. package/dist/src/react/pageHandler.d.ts +25 -0
  359. package/dist/src/react/router/UniversalRouter.d.ts +43 -0
  360. package/dist/src/react/router/browser.d.ts +2 -0
  361. package/dist/src/react/router/index.d.ts +2 -0
  362. package/dist/src/react/server.d.ts +1 -0
  363. package/dist/src/react/staticAnalyzeSpaRoutes.d.ts +7 -0
  364. package/dist/src/svelte/browser.d.ts +4 -0
  365. package/dist/src/svelte/createIsland.browser.d.ts +2 -0
  366. package/dist/src/svelte/createIsland.d.ts +2 -0
  367. package/dist/src/svelte/index.d.ts +6 -0
  368. package/dist/src/svelte/islandStore.d.ts +5 -0
  369. package/dist/src/svelte/lowerAwaitSlotSyntax.d.ts +4 -0
  370. package/dist/src/svelte/lowerIslandSyntax.d.ts +4 -0
  371. package/dist/src/svelte/pageHandler.d.ts +28 -0
  372. package/dist/src/svelte/renderIsland.d.ts +2 -0
  373. package/dist/src/svelte/renderToPipeableStream.d.ts +12 -0
  374. package/dist/src/svelte/renderToReadableStream.d.ts +14 -0
  375. package/dist/src/svelte/renderToString.d.ts +9 -0
  376. package/dist/src/svelte/resolveIslandHtml.browser.d.ts +2 -0
  377. package/dist/src/svelte/resolveIslandHtml.d.ts +2 -0
  378. package/dist/src/svelte/router/browser.d.ts +4 -0
  379. package/dist/src/svelte/router/goto.d.ts +15 -0
  380. package/dist/src/svelte/router/hashMode.d.ts +16 -0
  381. package/dist/src/svelte/router/index.d.ts +4 -0
  382. package/dist/src/svelte/router/matchPath.d.ts +30 -0
  383. package/dist/src/svelte/router/page.svelte.d.ts +15 -0
  384. package/dist/src/svelte/router/prefetchCache.d.ts +17 -0
  385. package/dist/src/svelte/router/pushState.d.ts +13 -0
  386. package/dist/src/svelte/router/viewTransitions.d.ts +6 -0
  387. package/dist/src/svelte/server.d.ts +1 -0
  388. package/dist/src/svelte/staticAnalyzeSpaRoutes.d.ts +7 -0
  389. package/dist/src/utils/buildDirectoryLock.d.ts +28 -0
  390. package/dist/src/utils/cleanStaleOutputs.d.ts +1 -0
  391. package/dist/src/utils/cleanup.d.ts +9 -0
  392. package/dist/src/utils/commonAncestor.d.ts +1 -0
  393. package/dist/src/utils/defineConfig.d.ts +39 -0
  394. package/dist/src/utils/defineConvention.d.ts +3 -0
  395. package/dist/src/utils/defineEnv.d.ts +10 -0
  396. package/dist/src/utils/escapeScriptContent.d.ts +1 -0
  397. package/dist/src/utils/formatBytes.d.ts +2 -0
  398. package/dist/src/utils/generateHeadElement.d.ts +4 -0
  399. package/dist/src/utils/generateSitemap.d.ts +21 -0
  400. package/dist/src/utils/generatedDir.d.ts +3 -0
  401. package/dist/src/utils/getDurationString.d.ts +1 -0
  402. package/dist/src/utils/getEnv.d.ts +1 -0
  403. package/dist/src/utils/imageClient.d.ts +13 -0
  404. package/dist/src/utils/imageProcessing.d.ts +33 -0
  405. package/dist/src/utils/index.d.ts +11 -0
  406. package/dist/src/utils/inlinePageCss.d.ts +2 -0
  407. package/dist/src/utils/instanceRegistry.d.ts +13 -0
  408. package/dist/src/utils/jsonLd.d.ts +3 -0
  409. package/dist/src/utils/loadConfig.d.ts +55 -0
  410. package/dist/src/utils/logger.d.ts +56 -0
  411. package/dist/src/utils/networking.d.ts +2 -0
  412. package/dist/src/utils/normalizePath.d.ts +9 -0
  413. package/dist/src/utils/portScan.d.ts +22 -0
  414. package/dist/src/utils/projectRoot.d.ts +17 -0
  415. package/dist/src/utils/registerClientScript.d.ts +36 -0
  416. package/dist/src/utils/resolveConvention.d.ts +10 -0
  417. package/dist/src/utils/resolveDevPort.d.ts +24 -0
  418. package/dist/src/utils/runtimeMode.d.ts +3 -0
  419. package/dist/src/utils/spaRouteCss.d.ts +4 -0
  420. package/dist/src/utils/spaRouteTypes.d.ts +25 -0
  421. package/dist/src/utils/ssrErrorPage.d.ts +1 -0
  422. package/dist/src/utils/startupBanner.d.ts +10 -0
  423. package/dist/src/utils/startupTimings.d.ts +7 -0
  424. package/dist/src/utils/streamingSlotMetricSink.d.ts +18 -0
  425. package/dist/src/utils/streamingSlots.d.ts +76 -0
  426. package/dist/src/utils/stringModifiers.d.ts +3 -0
  427. package/dist/src/utils/userAgentFunctions.d.ts +1 -0
  428. package/dist/src/utils/validateSafePath.d.ts +1 -0
  429. package/dist/src/vue/Island.browser.d.ts +37 -0
  430. package/dist/src/vue/Island.d.ts +36 -0
  431. package/dist/src/vue/browser.d.ts +6 -0
  432. package/dist/src/vue/components/Image.d.ts +74 -0
  433. package/dist/src/vue/components/StreamSlot.d.ts +22 -0
  434. package/dist/src/vue/components/SuspenseSlot.d.ts +26 -0
  435. package/dist/src/vue/components/index.d.ts +3 -0
  436. package/dist/src/vue/createIsland.browser.d.ts +13 -0
  437. package/dist/src/vue/createIsland.d.ts +13 -0
  438. package/dist/src/vue/defineVuePage.d.ts +6 -0
  439. package/dist/src/vue/index.d.ts +9 -0
  440. package/dist/src/vue/pageHandler.d.ts +45 -0
  441. package/dist/src/vue/routerRedirectProviders.d.ts +45 -0
  442. package/dist/src/vue/server.d.ts +2 -0
  443. package/dist/src/vue/staticAnalyzeSpaRoutes.d.ts +7 -0
  444. package/dist/src/vue/useIslandStore.d.ts +3 -0
  445. package/dist/svelte/browser.js +309 -0
  446. package/dist/svelte/browser.js.map +19 -0
  447. package/dist/svelte/components/AwaitSlot.svelte +39 -0
  448. package/dist/svelte/components/AwaitSlot.svelte.d.ts +2 -0
  449. package/dist/svelte/components/Head.svelte +144 -0
  450. package/dist/svelte/components/Head.svelte.d.ts +2 -0
  451. package/dist/svelte/components/Image.svelte +164 -0
  452. package/dist/svelte/components/Image.svelte.d.ts +5 -0
  453. package/dist/svelte/components/Island.svelte +71 -0
  454. package/dist/svelte/components/Island.svelte.d.ts +5 -0
  455. package/dist/svelte/components/JsonLd.svelte +21 -0
  456. package/dist/svelte/components/JsonLd.svelte.d.ts +2 -0
  457. package/dist/svelte/components/StreamSlot.svelte +41 -0
  458. package/dist/svelte/components/StreamSlot.svelte.d.ts +2 -0
  459. package/dist/svelte/index.js +4371 -0
  460. package/dist/svelte/index.js.map +60 -0
  461. package/dist/svelte/router/Link.svelte +124 -0
  462. package/dist/svelte/router/Link.svelte.d.ts +21 -0
  463. package/dist/svelte/router/Route.svelte +54 -0
  464. package/dist/svelte/router/Route.svelte.d.ts +13 -0
  465. package/dist/svelte/router/Router.svelte +189 -0
  466. package/dist/svelte/router/Router.svelte.d.ts +16 -0
  467. package/dist/svelte/router/browser.ts +14 -0
  468. package/dist/svelte/router/goto.ts +89 -0
  469. package/dist/svelte/router/hashMode.ts +31 -0
  470. package/dist/svelte/router/index.ts +23 -0
  471. package/dist/svelte/router/matchPath.ts +136 -0
  472. package/dist/svelte/router/page.d.ts +15 -0
  473. package/dist/svelte/router/page.js +27 -0
  474. package/dist/svelte/router/prefetchCache.ts +85 -0
  475. package/dist/svelte/router/pushState.ts +35 -0
  476. package/dist/svelte/router/viewTransitions.ts +35 -0
  477. package/dist/svelte/server.js +2996 -0
  478. package/dist/svelte/server.js.map +33 -0
  479. package/dist/types/absoluteConfig.d.ts +22 -0
  480. package/dist/types/angular.d.ts +43 -0
  481. package/dist/types/build.d.ts +245 -0
  482. package/dist/types/cli.d.ts +74 -0
  483. package/dist/types/client.d.ts +70 -0
  484. package/dist/types/config.d.ts +50 -0
  485. package/dist/types/conventions.d.ts +26 -0
  486. package/dist/types/ember.d.ts +39 -0
  487. package/dist/types/env.d.ts +2 -0
  488. package/dist/types/eslintConfig.d.ts +68 -0
  489. package/dist/types/globals.d.ts +163 -0
  490. package/dist/types/image.d.ts +77 -0
  491. package/dist/types/index.d.ts +17 -0
  492. package/dist/types/island.d.ts +52 -0
  493. package/dist/types/jsonLd.d.ts +300 -0
  494. package/dist/types/mediaQuery.d.ts +9 -0
  495. package/dist/types/messages.d.ts +152 -0
  496. package/dist/types/metadata.d.ts +51 -0
  497. package/dist/types/packageJson.d.ts +74 -0
  498. package/dist/types/packageJsonPanel.d.ts +29 -0
  499. package/dist/types/prettier.d.ts +26 -0
  500. package/dist/types/react.d.ts +2 -0
  501. package/dist/types/sitemap.d.ts +24 -0
  502. package/dist/types/style-module-shim.d.ts +29 -0
  503. package/dist/types/svelte.d.ts +2 -0
  504. package/dist/types/svelteRouter.d.ts +65 -0
  505. package/dist/types/svelteRouter.ts +91 -0
  506. package/dist/types/telemetry.d.ts +15 -0
  507. package/dist/types/tool.d.ts +11 -0
  508. package/dist/types/tsconfig.d.ts +31 -0
  509. package/dist/types/typeGuards.d.ts +2 -0
  510. package/dist/types/userAgentTypes.d.ts +2 -0
  511. package/dist/types/vue.d.ts +56 -0
  512. package/dist/types/websocket.d.ts +6 -0
  513. package/dist/vue/browser.js +512 -0
  514. package/dist/vue/browser.js.map +22 -0
  515. package/dist/vue/components/Image.js +264 -0
  516. package/dist/vue/components/Image.js.map +12 -0
  517. package/dist/vue/components/index.js +571 -0
  518. package/dist/vue/components/index.js.map +15 -0
  519. package/dist/vue/index.js +5238 -0
  520. package/dist/vue/index.js.map +69 -0
  521. package/dist/vue/server.js +2251 -0
  522. package/dist/vue/server.js.map +32 -0
  523. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import type { FieldNode } from './config';
2
+ export type AbsoluteConfigState = {
3
+ /** False when the BuildConfig type couldn't be resolved (catalog empty). */
4
+ available: boolean;
5
+ configPath: string | null;
6
+ /** Values literally present in defineConfig({...}), read recursively. */
7
+ current: Record<string, unknown>;
8
+ /** Top-level keys whose value contains code (refs/calls) — not form-editable. */
9
+ opaqueKeys: string[];
10
+ /** Recursive field catalog introspected from BaseBuildConfig. */
11
+ fields: FieldNode[];
12
+ };
13
+ export type AbsoluteConfigEditRequest = {
14
+ name: string;
15
+ remove?: boolean;
16
+ value?: unknown;
17
+ };
18
+ export type AbsoluteConfigEditResult = {
19
+ message: string;
20
+ ok: boolean;
21
+ state: AbsoluteConfigState | null;
22
+ };
@@ -0,0 +1,43 @@
1
+ export type AngularDeps = {
2
+ APP_BASE_HREF: typeof import('@angular/common').APP_BASE_HREF;
3
+ bootstrapApplication: typeof import('@angular/platform-browser').bootstrapApplication;
4
+ Component: typeof import('@angular/core').Component;
5
+ DomSanitizer: typeof import('@angular/platform-browser').DomSanitizer;
6
+ ENVIRONMENT_INITIALIZER: typeof import('@angular/core').ENVIRONMENT_INITIALIZER;
7
+ inject: typeof import('@angular/core').inject;
8
+ InjectionToken: typeof import('@angular/core').InjectionToken;
9
+ NgComponentOutlet: typeof import('@angular/common').NgComponentOutlet;
10
+ provideClientHydration: typeof import('@angular/platform-browser').provideClientHydration;
11
+ provideServerRendering: typeof import('@angular/platform-server').provideServerRendering;
12
+ provideZonelessChangeDetection: typeof import('@angular/core').provideZonelessChangeDetection;
13
+ reflectComponentType: typeof import('@angular/core').reflectComponentType;
14
+ renderApplication: typeof import('@angular/platform-server').renderApplication;
15
+ REQUEST: typeof import('@angular/core').REQUEST;
16
+ REQUEST_CONTEXT: typeof import('@angular/core').REQUEST_CONTEXT;
17
+ RESPONSE_INIT: typeof import('@angular/core').RESPONSE_INIT;
18
+ Sanitizer: typeof import('@angular/core').Sanitizer;
19
+ SecurityContext: typeof import('@angular/core').SecurityContext;
20
+ withHttpTransferCacheOptions: typeof import('@angular/platform-browser').withHttpTransferCacheOptions;
21
+ };
22
+ /**
23
+ * Cached render data per route. The `headTag` is captured once when
24
+ * the page module is registered so subsequent renders skip the
25
+ * filesystem read. The `requestContext` is the per-request payload
26
+ * the backend handler passed under `requestContext`, kept for HMR
27
+ * replay.
28
+ */
29
+ export type CachedRouteData = {
30
+ requestContext: unknown;
31
+ headTag: `<head>${string}</head>`;
32
+ };
33
+ /**
34
+ * One entry in the build-emitted route-mounts map. The SSR handler
35
+ * tests each request URL against `pattern` and uses the matching
36
+ * `basePath` as `APP_BASE_HREF` so sub-router pages (mounted at
37
+ * `/portal/*`, `/admin/*`, etc.) get the right router base without
38
+ * the page explicitly overriding it.
39
+ */
40
+ export type AngularRouteMount = {
41
+ pattern: RegExp;
42
+ basePath: string;
43
+ };
@@ -0,0 +1,245 @@
1
+ import { build } from '../src/core/build';
2
+ import { devBuild } from '../src/core/devBuild';
3
+ import type { BuildConfig as BunBuildConfig } from 'bun';
4
+ import type { ImageConfig } from './image';
5
+ import type { SitemapConfig } from './sitemap';
6
+ export type BunBuildPassKey = 'server' | 'reactClient' | 'nonReactClient' | 'islandClient' | 'globalCss' | 'vueCss';
7
+ export type ReservedBunBuildConfigKey = 'entrypoints' | 'outdir' | 'outfile' | 'root' | 'target' | 'format' | 'throw' | 'compile';
8
+ type DistributivePartialOmit<T, K extends PropertyKey> = T extends unknown ? Partial<Omit<T, Extract<keyof T, K>>> : never;
9
+ export type BunBuildConfigOverride = DistributivePartialOmit<BunBuildConfig, ReservedBunBuildConfigKey>;
10
+ export type BunBuildPassConfig = {
11
+ default?: BunBuildConfigOverride;
12
+ } & Partial<Record<BunBuildPassKey, BunBuildConfigOverride>>;
13
+ export type BuildOptions = {
14
+ /** When true, build() throws on error instead of exit(1) - used by HMR rebuilds */
15
+ throwOnError?: boolean;
16
+ /** When true, HMR client code is injected into built assets. Set by devBuild(). */
17
+ injectHMR?: boolean;
18
+ hmr?: {
19
+ debounceMs?: number;
20
+ };
21
+ /** Base manifest to merge into for incremental builds */
22
+ baseManifest?: Record<string, string>;
23
+ };
24
+ export type StylesConfig = {
25
+ path: string;
26
+ ignore?: string[];
27
+ };
28
+ export type SassPreprocessorOptions = {
29
+ /**
30
+ * Additional directories used when resolving Sass/SCSS @use, @forward, and @import.
31
+ * The current file directory and project root are always included.
32
+ */
33
+ loadPaths?: string[];
34
+ /** Source prepended to every Sass/SCSS file before compilation. */
35
+ additionalData?: string;
36
+ /** Select the Sass implementation package. Defaults to "sass". */
37
+ implementation?: 'sass' | 'sass-embedded';
38
+ };
39
+ export type LessPreprocessorOptions = {
40
+ /**
41
+ * Additional directories used when resolving Less @import.
42
+ * The current file directory and project root are always included.
43
+ */
44
+ paths?: string[];
45
+ /** Source prepended to every Less file before compilation. */
46
+ additionalData?: string;
47
+ /** Extra Less render options forwarded to less.render(). */
48
+ options?: Record<string, unknown>;
49
+ };
50
+ export type StylusPreprocessorOptions = {
51
+ /**
52
+ * Additional directories used when resolving Stylus @import.
53
+ * The current file directory and project root are always included.
54
+ */
55
+ paths?: string[];
56
+ /** Source prepended to every Stylus file before compilation. */
57
+ additionalData?: string;
58
+ /** Extra Stylus renderer options forwarded to stylus.set(). */
59
+ options?: Record<string, unknown>;
60
+ };
61
+ export type PostCSSConfig = false | {
62
+ /**
63
+ * Inline PostCSS plugins. Import plugins in absolute.config.ts and pass
64
+ * initialized plugin instances here.
65
+ */
66
+ plugins?: unknown[] | Record<string, unknown>;
67
+ /** Extra options forwarded to postcss.process(). */
68
+ options?: Record<string, unknown>;
69
+ /** Explicit PostCSS config file, such as ./postcss.config.cjs. */
70
+ config?: string;
71
+ };
72
+ export type StylePreprocessorConfig = {
73
+ /**
74
+ * Import aliases for preprocessor imports, e.g. { "@styles/*": "src/styles/*" }.
75
+ * tsconfig compilerOptions.paths are also loaded automatically when available.
76
+ */
77
+ aliases?: Record<string, string | string[]>;
78
+ sass?: SassPreprocessorOptions;
79
+ scss?: SassPreprocessorOptions;
80
+ less?: LessPreprocessorOptions;
81
+ postcss?: PostCSSConfig;
82
+ stylus?: StylusPreprocessorOptions;
83
+ };
84
+ export type TailwindConfig = {
85
+ input: string;
86
+ output: string;
87
+ };
88
+ export type StaticConfig = {
89
+ /** Routes to pre-render at build time. Use "all" to crawl from / and discover all linked pages. */
90
+ routes: string[] | 'all';
91
+ /** Revalidation interval in seconds. When set, stale pages are re-rendered in the background (ISR). */
92
+ revalidate?: number;
93
+ };
94
+ export type HttpReadyConfig = {
95
+ type?: 'http';
96
+ path?: string;
97
+ url?: string;
98
+ method?: 'GET' | 'HEAD';
99
+ expectStatus?: number | number[];
100
+ headers?: Record<string, string>;
101
+ intervalMs?: number;
102
+ timeoutMs?: number;
103
+ };
104
+ export type TcpReadyConfig = {
105
+ type: 'tcp';
106
+ host?: string;
107
+ port: number;
108
+ intervalMs?: number;
109
+ timeoutMs?: number;
110
+ };
111
+ export type CommandReadyConfig = {
112
+ type: 'command';
113
+ command: string[];
114
+ intervalMs?: number;
115
+ timeoutMs?: number;
116
+ };
117
+ export type DelayReadyConfig = {
118
+ type: 'delay';
119
+ ms: number;
120
+ };
121
+ export type ServiceReadyConfig = false | string | HttpReadyConfig | TcpReadyConfig | CommandReadyConfig | DelayReadyConfig;
122
+ export type ServiceShutdownConfig = false | string[] | {
123
+ command: string[];
124
+ timeoutMs?: number;
125
+ };
126
+ export type ServiceVisibility = 'public' | 'internal';
127
+ export type BaseBuildConfig = {
128
+ buildDirectory?: string;
129
+ assetsDirectory?: string;
130
+ publicDirectory?: string;
131
+ islands?: {
132
+ registry: string;
133
+ bootstrap?: string;
134
+ };
135
+ reactDirectory?: string;
136
+ vueDirectory?: string;
137
+ angularDirectory?: string;
138
+ /** Per-framework Angular config. `providers` is the global default
139
+ * DI provider array every page gets at SSR + client bootstrap.
140
+ * Write it as a real typed value (`providers: appProviders`) so
141
+ * TypeScript catches a missing import or renamed binding at
142
+ * compile time. The framework AST-parses absolute.config.ts at
143
+ * build time to find the import path of the binding referenced
144
+ * here, then bakes a matching import into every per-page generated
145
+ * providers file. Per-page additions (e.g. `provideRouter(routes)`)
146
+ * come from page-level `export const routes` and are auto-wired by
147
+ * the build — users never write `provideRouter` themselves. */
148
+ angular?: {
149
+ providers?: ReadonlyArray<import('@angular/core').Provider | import('@angular/core').EnvironmentProviders>;
150
+ };
151
+ astroDirectory?: string;
152
+ svelteDirectory?: string;
153
+ emberDirectory?: string;
154
+ htmlDirectory?: string;
155
+ htmxDirectory?: string;
156
+ stylesConfig?: string | StylesConfig;
157
+ stylePreprocessors?: StylePreprocessorConfig;
158
+ postcss?: PostCSSConfig;
159
+ tailwind?: TailwindConfig;
160
+ /**
161
+ * Bun build options applied to Absolute's app output build passes.
162
+ * Framework-owned fields such as entrypoints, outdir, root, target,
163
+ * format, throw, and compile are intentionally not user-configurable.
164
+ */
165
+ bunBuild?: BunBuildConfigOverride | BunBuildPassConfig;
166
+ options?: BuildOptions;
167
+ incrementalFiles?: string[];
168
+ mode?: 'production' | 'development';
169
+ dev?: {
170
+ /** Dev server port (env: ABSOLUTE_PORT, default 3000). */
171
+ port?: number;
172
+ /** When `port` is busy, probe up to `portRange-1` neighboring ports
173
+ * before failing (env: ABSOLUTE_PORT_RANGE, default 10). */
174
+ portRange?: number;
175
+ /** When true, refuse to start if `port` is busy instead of falling
176
+ * through to the next free port (env: ABSOLUTE_STRICT_PORT, default false). */
177
+ strictPort?: boolean;
178
+ /** Bind host (env: ABSOLUTE_HOST, default "localhost"). */
179
+ host?: string;
180
+ https?: boolean;
181
+ /** Extra directories to add to the dev file watcher's positive
182
+ * include list. Anything outside the configured framework dirs,
183
+ * conventional source dirs (`src/`, `db/`, `assets/`, `styles/`),
184
+ * and these `watchDirs` is implicitly ignored. */
185
+ watchDirs?: string[];
186
+ /** Expose the dev server to the public internet through a self-hosted
187
+ * AbsoluteJS reverse-tunnel relay (for webhooks: Twilio, Stripe, OAuth).
188
+ * Run the relay with `absolute tunnel-relay` on a public host; point a
189
+ * dev client at it here. Prints a `Public:` URL on start. */
190
+ tunnel?: {
191
+ /** Relay base URL, e.g. `https://my-relay.ondigitalocean.app`
192
+ * (env: ABSOLUTE_TUNNEL_RELAY). */
193
+ relay?: string;
194
+ /** Shared secret matching the relay's token (env: ABSOLUTE_TUNNEL_TOKEN). */
195
+ token?: string;
196
+ };
197
+ devtools?: {
198
+ projectRoot?: string;
199
+ uuid?: string;
200
+ uuidCachePath?: string;
201
+ normalizeForWindowsContainer?: boolean;
202
+ };
203
+ };
204
+ static?: StaticConfig;
205
+ images?: ImageConfig;
206
+ sitemap?: SitemapConfig;
207
+ };
208
+ export type AbsoluteServiceConfig = BaseBuildConfig & {
209
+ kind?: 'absolute';
210
+ cwd?: string;
211
+ config?: string;
212
+ dependsOn?: string[];
213
+ entry?: string;
214
+ env?: Record<string, string>;
215
+ ready?: ServiceReadyConfig;
216
+ shutdown?: ServiceShutdownConfig;
217
+ port?: number;
218
+ visibility?: ServiceVisibility;
219
+ command?: never;
220
+ };
221
+ export type CommandServiceConfig = {
222
+ kind: 'command';
223
+ command: string[];
224
+ cwd?: string;
225
+ dependsOn?: string[];
226
+ env?: Record<string, string>;
227
+ ready?: ServiceReadyConfig;
228
+ shutdown?: ServiceShutdownConfig;
229
+ port?: number;
230
+ visibility?: ServiceVisibility;
231
+ entry?: never;
232
+ config?: never;
233
+ };
234
+ export type ServiceConfig = AbsoluteServiceConfig | CommandServiceConfig;
235
+ export type WorkspaceConfig = Record<string, ServiceConfig>;
236
+ export type BuildConfig = AbsoluteServiceConfig;
237
+ export type ConfigInput = BuildConfig | WorkspaceConfig;
238
+ export type ReservedConfigKey = keyof BuildConfig;
239
+ export type BuildResult = ReturnType<typeof build>;
240
+ export type DevBuildResult = ReturnType<typeof devBuild>;
241
+ export type Result = BuildResult | DevBuildResult;
242
+ export type Prettify<T> = {
243
+ [K in keyof T]: T[K];
244
+ } & {};
245
+ export {};
@@ -0,0 +1,74 @@
1
+ export type Action = () => void | Promise<void>;
2
+ export type Actions = {
3
+ clear: Action;
4
+ heapSnapshot: Action;
5
+ help: Action;
6
+ open: Action;
7
+ pause: Action;
8
+ quit: Action;
9
+ restart: Action;
10
+ shell: (command: string) => Promise<void>;
11
+ };
12
+ export type DbScripts = {
13
+ upCommand: string;
14
+ downCommand: string;
15
+ };
16
+ export type InstanceRecord = {
17
+ command: string[];
18
+ configPath: string | null;
19
+ controllerPid: number;
20
+ cwd: string;
21
+ frameworks: string[];
22
+ host: string;
23
+ https: boolean;
24
+ logFile: string | null;
25
+ name: string;
26
+ pid: number;
27
+ port: number | null;
28
+ ppid: number;
29
+ source: InstanceSource;
30
+ startedAt: string;
31
+ };
32
+ export type InstanceSource = 'compiled' | 'dev' | 'standalone' | 'start' | 'untracked' | 'workspace';
33
+ export type InstanceStatus = 'ready' | 'starting' | 'stopped';
34
+ export type InteractiveHandler = {
35
+ clearPrompt: () => void;
36
+ dispose: () => void;
37
+ showPrompt: () => void;
38
+ };
39
+ export type LiveInstance = InstanceRecord & {
40
+ memoryBytes: number | null;
41
+ status: InstanceStatus;
42
+ uptimeMs: number;
43
+ url: string | null;
44
+ };
45
+ export type RequestKind = 'api' | 'asset' | 'hmr' | 'internal' | 'page';
46
+ export type RequestRecord = {
47
+ at: number;
48
+ durationMs: number;
49
+ kind: RequestKind;
50
+ method: string;
51
+ path: string;
52
+ query: string;
53
+ requestHeaders: Record<string, string>;
54
+ responseHeaders: Record<string, string>;
55
+ size: number | null;
56
+ status: number;
57
+ };
58
+ export type TuiColors = {
59
+ bold: string;
60
+ cyan: string;
61
+ dim: string;
62
+ green: string;
63
+ red: string;
64
+ reset: string;
65
+ yellow: string;
66
+ };
67
+ export type TuiInput = {
68
+ destroy: () => void;
69
+ off: (event: 'data', listener: (chunk: Buffer) => void) => void;
70
+ on: (event: 'data', listener: (chunk: Buffer) => void) => void;
71
+ pause: () => void;
72
+ resume: () => void;
73
+ setRawMode?: (enabled: boolean) => void;
74
+ };
@@ -0,0 +1,70 @@
1
+ export type ErrorOverlayOptions = {
2
+ column?: number;
3
+ file?: string;
4
+ framework?: string;
5
+ kind?: 'compilation' | 'runtime';
6
+ line?: number;
7
+ lineText?: string;
8
+ message?: string;
9
+ /** Full Error.stack (or pre-formatted multi-line trace). Optional —
10
+ * if `message` already starts with the error name + first line of
11
+ * the stack (e.g. `${err.name}: ${err.message}\n${err.stack}`), the
12
+ * overlay deduplicates internally. */
13
+ stack?: string;
14
+ };
15
+ export type DOMStateEntry = {
16
+ checked?: boolean;
17
+ id?: string;
18
+ idx: number;
19
+ name?: string;
20
+ open?: boolean;
21
+ selEnd?: number;
22
+ selStart?: number;
23
+ selected?: boolean;
24
+ tag: string;
25
+ text?: string;
26
+ type?: string;
27
+ value?: string;
28
+ values?: string[];
29
+ };
30
+ export type DOMStateSnapshot = {
31
+ activeKey: string | null;
32
+ items: DOMStateEntry[];
33
+ };
34
+ export type SavedState = {
35
+ forms: Record<string, Record<string, boolean | string>>;
36
+ scroll: {
37
+ window: {
38
+ x: number;
39
+ y: number;
40
+ };
41
+ };
42
+ };
43
+ export type HTMXSavedState = {
44
+ componentState: {
45
+ count: number;
46
+ };
47
+ forms: Record<string, Record<string, boolean | string>>;
48
+ scroll: {
49
+ window: {
50
+ x: number;
51
+ y: number;
52
+ };
53
+ };
54
+ };
55
+ export type ScriptInfo = {
56
+ src: string;
57
+ type: string;
58
+ };
59
+ export type CSSUpdateResult = {
60
+ linksToActivate: HTMLLinkElement[];
61
+ linksToRemove: HTMLLinkElement[];
62
+ linksToWaitFor: Promise<void>[];
63
+ };
64
+ export declare const hmrState: {
65
+ isConnected: boolean;
66
+ isFirstHMRUpdate: boolean;
67
+ isHMRUpdating: boolean;
68
+ pingInterval: ReturnType<typeof setInterval> | null;
69
+ reconnectTimeout: ReturnType<typeof setTimeout> | null;
70
+ };
@@ -0,0 +1,50 @@
1
+ export type ConfigPanelId = 'absolute' | 'package' | 'eslint' | 'tsconfig' | 'prettier';
2
+ export type ConfigPanelStatus = 'ready' | 'soon';
3
+ export type ConfigPanelMeta = {
4
+ /** One-line description shown under the panel name in the sidebar. */
5
+ blurb: string;
6
+ id: ConfigPanelId;
7
+ label: string;
8
+ /** `'ready'` panels are interactive; `'soon'` panels render a placeholder. */
9
+ status: ConfigPanelStatus;
10
+ };
11
+ /** A normalized, recursive description of a value's shape — produced from a TS
12
+ * type (config panels) or a JSON Schema (ESLint rule options), and consumed by
13
+ * the recursive FieldEditor so every value gets a real UI instead of raw JSON.
14
+ * `opaque` is the last resort: a value we can't safely structure-edit (e.g. it
15
+ * references an imported binding); `typeText` is shown for it. */
16
+ export type FieldSchema = {
17
+ kind: 'string';
18
+ } | {
19
+ kind: 'number';
20
+ } | {
21
+ kind: 'boolean';
22
+ } | {
23
+ kind: 'enum';
24
+ choices: (string | number)[];
25
+ } | {
26
+ kind: 'array';
27
+ item: FieldSchema;
28
+ } | {
29
+ kind: 'tuple';
30
+ items: FieldSchema[];
31
+ } | {
32
+ kind: 'object';
33
+ fields: FieldNode[];
34
+ } | {
35
+ kind: 'record';
36
+ value: FieldSchema;
37
+ } | {
38
+ kind: 'union';
39
+ variants: FieldSchema[];
40
+ } | {
41
+ kind: 'opaque';
42
+ typeText: string;
43
+ };
44
+ /** A named field within an object schema (or a top-level config field). */
45
+ export type FieldNode = {
46
+ description: string;
47
+ name: string;
48
+ optional: boolean;
49
+ schema: FieldSchema;
50
+ };
@@ -0,0 +1,26 @@
1
+ export type ConventionKind = 'error' | 'loading' | 'not-found';
2
+ export type PageConventions = {
3
+ error?: string;
4
+ loading?: string;
5
+ };
6
+ export type FrameworkConventions = {
7
+ error?: string;
8
+ loading?: string;
9
+ notFound?: string;
10
+ };
11
+ export type FrameworkConventionEntry = {
12
+ defaults?: FrameworkConventions;
13
+ pages?: Record<string, PageConventions>;
14
+ };
15
+ export type ConventionsMap = {
16
+ react?: FrameworkConventionEntry;
17
+ svelte?: FrameworkConventionEntry;
18
+ vue?: FrameworkConventionEntry;
19
+ angular?: FrameworkConventionEntry;
20
+ ember?: FrameworkConventionEntry;
21
+ html?: FrameworkConventionEntry;
22
+ };
23
+ export type ErrorPageProps = Pick<Error, 'name' | 'message' | 'stack'>;
24
+ export type HtmlDocument = `<!DOCTYPE html>${string}` | `<!doctype html>${string}`;
25
+ export type RenderErrorPage = (error: ErrorPageProps) => HtmlDocument;
26
+ export type RenderNotFoundPage = () => HtmlDocument;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Type surface for the AbsoluteJS Ember adapter.
3
+ *
4
+ * Mirrors `types/angular.ts` in shape because both frameworks compile
5
+ * components separately from props and surface them through a "page
6
+ * definition" object rather than a callable component.
7
+ *
8
+ * Glimmer carries component args through the `Args` type parameter on
9
+ * `Component<{ Args: ... }>`. We extract from there.
10
+ */
11
+ /**
12
+ * Structural shape of a Glimmer component class. We avoid importing
13
+ * `@glimmer/component` here because the AbsoluteJS package shouldn't
14
+ * pull Glimmer types into every consumer's type-check just to describe
15
+ * page modules. Users get the real type via Glint or by importing
16
+ * `@glimmer/component` directly in their own code.
17
+ */
18
+ export type EmberComponentLike<Args = unknown> = abstract new (owner: unknown, args: Args) => object;
19
+ /**
20
+ * Page definition expected from `*.gjs` / `*.gts` page modules. The
21
+ * default export is the Glimmer component; the page handler infers
22
+ * `Args` from its declared signature.
23
+ */
24
+ export type EmberPageDefinition<Args extends Record<string, unknown> = Record<never, never>> = {
25
+ component: EmberComponentLike<Args>;
26
+ __absoluteEmberPageProps?: Args;
27
+ };
28
+ /**
29
+ * Pull the props type out of a page module's default export.
30
+ */
31
+ export type EmberPagePropsOf<Page> = Page extends {
32
+ default: EmberComponentLike<infer Args>;
33
+ } ? Args extends Record<string, unknown> ? Args : Record<never, never> : Page extends EmberComponentLike<infer Args> ? Args extends Record<string, unknown> ? Args : Record<never, never> : Record<never, never>;
34
+ /**
35
+ * `true` if `Props` has no required keys — the page handler uses this
36
+ * to decide whether `props` is required or optional in
37
+ * `EmberPageRequestInput`.
38
+ */
39
+ export type EmberPageHasOptionalProps<Props> = [Props] extends [never] ? true : keyof Props extends never ? true : false;
@@ -0,0 +1,2 @@
1
+ import type { Static, TObject, TProperties } from '@sinclair/typebox';
2
+ export type InferEnv<T extends TProperties> = Readonly<Static<TObject<T>>>;
@@ -0,0 +1,68 @@
1
+ export type RuleSeverity = 'off' | 'warn' | 'error';
2
+ /** `'core'` for ESLint built-ins, otherwise the plugin prefix (e.g.
3
+ * `'@typescript-eslint'`, `'@stylistic'`, `'absolute'`, `'promise'`). */
4
+ export type RuleSource = string;
5
+ export type RuleMeta = {
6
+ deprecated: boolean;
7
+ description: string | null;
8
+ docsUrl: string | null;
9
+ /** `'code'` or `'whitespace'` when the rule ships an autofix. */
10
+ fixable: string | null;
11
+ hasSuggestions: boolean;
12
+ /** Full rule id, e.g. `'no-debugger'` or `'@typescript-eslint/no-explicit-any'`. */
13
+ name: string;
14
+ /** JSON-schema-ish options descriptor used to drive the options editor. */
15
+ schema: unknown;
16
+ shortName: string;
17
+ source: RuleSource;
18
+ /** `'problem' | 'suggestion' | 'layout'` per the rule's metadata. */
19
+ type: string | null;
20
+ };
21
+ /** A rule literally written into a source block's `rules` object — the
22
+ * unit the Studio can edit in place. */
23
+ export type ConfiguredRule = {
24
+ name: string;
25
+ options: unknown[];
26
+ /** Verbatim source text of the value node (for diff display). */
27
+ rawValue: string;
28
+ severity: RuleSeverity;
29
+ };
30
+ export type ConfigBlock = {
31
+ files: string[];
32
+ /** A standalone `{ ignores: [...] }` block — has no editable rules. */
33
+ isGlobalIgnore: boolean;
34
+ /** Human label derived from the block's `files` patterns. */
35
+ label: string;
36
+ rules: ConfiguredRule[];
37
+ /** Index into the source `defineConfig([...])` array element list. */
38
+ sourceIndex: number;
39
+ };
40
+ export type EffectiveRule = {
41
+ name: string;
42
+ options: unknown[];
43
+ severity: RuleSeverity;
44
+ };
45
+ export type RuleCatalog = {
46
+ configPath: string;
47
+ /** Editable source blocks with the rules they literally configure. */
48
+ blocks: ConfigBlock[];
49
+ /** Resolved ruleset for `representativeFile`, after all blocks merge. */
50
+ effective: EffectiveRule[];
51
+ generatedAt: string;
52
+ /** Every rule available from core + every loaded plugin. */
53
+ meta: RuleMeta[];
54
+ representativeFile: string;
55
+ };
56
+ export type RuleEditRequest = {
57
+ name: string;
58
+ options?: unknown[];
59
+ severity: RuleSeverity;
60
+ /** Source block to edit. When the rule is absent there, it is inserted
61
+ * in sorted position; pass the broad block to add a project-wide rule. */
62
+ sourceIndex: number;
63
+ };
64
+ export type RuleEditResult = {
65
+ catalog: RuleCatalog | null;
66
+ message: string | null;
67
+ ok: boolean;
68
+ };