@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.
- package/dist/angular/browser.js +10358 -0
- package/dist/angular/browser.js.map +260 -0
- package/dist/angular/components/constants.js +101 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +58 -0
- package/dist/angular/components/core/streamingSlotRegistry.js +114 -0
- package/dist/angular/components/defer-slot-payload.js +6 -0
- package/dist/angular/components/defer-slot-templates.directive.js +44 -0
- package/dist/angular/components/defer-slot.component.js +152 -0
- package/dist/angular/components/image.component.js +202 -0
- package/dist/angular/components/index.js +4 -0
- package/dist/angular/components/stream-slot.component.js +102 -0
- package/dist/angular/hmrPreserveCore.ts +188 -0
- package/dist/angular/index.js +15793 -0
- package/dist/angular/index.js.map +299 -0
- package/dist/angular/server.js +6357 -0
- package/dist/angular/server.js.map +61 -0
- package/dist/build.js +27484 -0
- package/dist/build.js.map +146 -0
- package/dist/cli/config/client.js +527 -0
- package/dist/cli/config/server.js +37130 -0
- package/dist/cli/htmx/htmx.min.js +1 -0
- package/dist/cli/index.js +180130 -0
- package/dist/client/index.js +1267 -0
- package/dist/client/index.js.map +31 -0
- package/dist/core/streamingSlotRegistrar.js +138 -0
- package/dist/core/streamingSlotRegistrar.js.map +10 -0
- package/dist/core/streamingSlotRegistry.js +194 -0
- package/dist/core/streamingSlotRegistry.js.map +11 -0
- package/dist/dev/client/constants.ts +26 -0
- package/dist/dev/client/cssUtils.ts +311 -0
- package/dist/dev/client/domDiff.ts +226 -0
- package/dist/dev/client/domState.ts +423 -0
- package/dist/dev/client/domTracker.ts +61 -0
- package/dist/dev/client/errorOverlay.ts +445 -0
- package/dist/dev/client/frameworkDetect.ts +63 -0
- package/dist/dev/client/handlers/angularHmrShim.ts +88 -0
- package/dist/dev/client/handlers/angularRemount.ts +362 -0
- package/dist/dev/client/handlers/angularRemountWiring.ts +52 -0
- package/dist/dev/client/handlers/html.ts +364 -0
- package/dist/dev/client/handlers/htmx.ts +278 -0
- package/dist/dev/client/handlers/react.ts +108 -0
- package/dist/dev/client/handlers/rebuild.ts +153 -0
- package/dist/dev/client/handlers/svelte.ts +334 -0
- package/dist/dev/client/handlers/vue.ts +292 -0
- package/dist/dev/client/headPatch.ts +233 -0
- package/dist/dev/client/hmrClient.ts +352 -0
- package/dist/dev/client/hmrState.ts +14 -0
- package/dist/dev/client/hmrToast.ts +150 -0
- package/dist/dev/client/moduleVersions.ts +62 -0
- package/dist/dev/client/reactRefreshSetup.ts +31 -0
- package/dist/dev/client/vendor/lview/lViewOps.ts +196 -0
- package/dist/dev/client/vendor/lview/slotConstants.ts +44 -0
- package/dist/dev/client/vendor/reactRefreshRuntime.d.ts +12 -0
- package/dist/dev/client/vendor/reactRefreshRuntime.js +313 -0
- package/dist/image-client/imageClient.js +69 -0
- package/dist/index.js +36383 -0
- package/dist/index.js.map +320 -0
- package/dist/islands/browser.js +259 -0
- package/dist/islands/browser.js.map +15 -0
- package/dist/islands/index.js +2415 -0
- package/dist/islands/index.js.map +37 -0
- package/dist/react/browser.js +374 -0
- package/dist/react/browser.js.map +19 -0
- package/dist/react/components/browser/index.js +467 -0
- package/dist/react/components/index.js +684 -0
- package/dist/react/components/index.js.map +18 -0
- package/dist/react/hooks/index.js +285 -0
- package/dist/react/hooks/index.js.map +14 -0
- package/dist/react/index.js +4258 -0
- package/dist/react/index.js.map +56 -0
- package/dist/react/jsxDevRuntimeCompat.js +90 -0
- package/dist/react/jsxDevRuntimeCompat.js.map +10 -0
- package/dist/react/router/browser.js +95 -0
- package/dist/react/router/browser.js.map +10 -0
- package/dist/react/router/index.js +95 -0
- package/dist/react/router/index.js.map +10 -0
- package/dist/react/server.js +1895 -0
- package/dist/react/server.js.map +26 -0
- package/dist/src/angular/Island.browser.d.ts +34 -0
- package/dist/src/angular/Island.d.ts +29 -0
- package/dist/src/angular/angularDeps.d.ts +2 -0
- package/dist/src/angular/angularPatch.d.ts +1 -0
- package/dist/src/angular/animationProviders.d.ts +2 -0
- package/dist/src/angular/browser.d.ts +14 -0
- package/dist/src/angular/components/constants.d.ts +96 -0
- package/dist/src/angular/components/defer-slot-payload.d.ts +7 -0
- package/dist/src/angular/components/defer-slot-templates.directive.d.ts +21 -0
- package/dist/src/angular/components/defer-slot.component.d.ts +29 -0
- package/dist/src/angular/components/image.component.d.ts +42 -0
- package/dist/src/angular/components/index.d.ts +4 -0
- package/dist/src/angular/components/stream-slot.component.d.ts +20 -0
- package/dist/src/angular/composables/index.d.ts +6 -0
- package/dist/src/angular/composables/usePageContext.d.ts +16 -0
- package/dist/src/angular/composables/useResource.d.ts +57 -0
- package/dist/src/angular/composables/useSubscription.d.ts +33 -0
- package/dist/src/angular/composables/useTimers.d.ts +18 -0
- package/dist/src/angular/createIsland.browser.d.ts +2 -0
- package/dist/src/angular/createIsland.d.ts +2 -0
- package/dist/src/angular/deterministicEnv.d.ts +26 -0
- package/dist/src/angular/hmrPreserveCore.d.ts +21 -0
- package/dist/src/angular/httpTransferCache.d.ts +12 -0
- package/dist/src/angular/index.d.ts +14 -0
- package/dist/src/angular/injectorPatch.d.ts +1 -0
- package/dist/src/angular/islandStore.d.ts +9 -0
- package/dist/src/angular/islands.d.ts +4 -0
- package/dist/src/angular/lowerDeferSyntax.d.ts +18 -0
- package/dist/src/angular/lowerServerIslands.d.ts +1 -0
- package/dist/src/angular/pageHandler.d.ts +48 -0
- package/dist/src/angular/pendingTask.d.ts +1 -0
- package/dist/src/angular/preserveAcrossHmr.d.ts +12 -0
- package/dist/src/angular/renderIsland.d.ts +2 -0
- package/dist/src/angular/requestProviders.d.ts +5 -0
- package/dist/src/angular/resolveAngularPackage.d.ts +19 -0
- package/dist/src/angular/routerRedirectProviders.d.ts +6 -0
- package/dist/src/angular/server.d.ts +4 -0
- package/dist/src/angular/ssrRender.d.ts +13 -0
- package/dist/src/angular/ssrSanitizer.d.ts +3 -0
- package/dist/src/angular/staticAnalyzeSpaRoutes.d.ts +7 -0
- package/dist/src/build/angularLinkerPlugin.d.ts +29 -0
- package/dist/src/build/buildAngularVendor.d.ts +40 -0
- package/dist/src/build/buildDepVendor.d.ts +2 -0
- package/dist/src/build/buildEmberVendor.d.ts +24 -0
- package/dist/src/build/buildReactVendor.d.ts +8 -0
- package/dist/src/build/buildSvelteVendor.d.ts +6 -0
- package/dist/src/build/buildVueVendor.d.ts +6 -0
- package/dist/src/build/chainInlineSourcemaps.d.ts +13 -0
- package/dist/src/build/compileAngular.d.ts +40 -0
- package/dist/src/build/compileEmber.d.ts +43 -0
- package/dist/src/build/compileSvelte.d.ts +14 -0
- package/dist/src/build/compileTailwind.d.ts +5 -0
- package/dist/src/build/compileVue.d.ts +22 -0
- package/dist/src/build/externalAssetPlugin.d.ts +2 -0
- package/dist/src/build/generateManifest.d.ts +2 -0
- package/dist/src/build/generateReactIndexes.d.ts +2 -0
- package/dist/src/build/htmlScriptHMRPlugin.d.ts +13 -0
- package/dist/src/build/index.d.ts +2 -0
- package/dist/src/build/islandEntries.d.ts +32 -0
- package/dist/src/build/islandRegistryTransform.d.ts +17 -0
- package/dist/src/build/nativeRewrite.d.ts +5 -0
- package/dist/src/build/optimizeHtmlImages.d.ts +2 -0
- package/dist/src/build/outputLogs.d.ts +1 -0
- package/dist/src/build/parseAngularConfigImports.d.ts +9 -0
- package/dist/src/build/parseVueSpaRoutes.d.ts +20 -0
- package/dist/src/build/resolvePackageImport.d.ts +9 -0
- package/dist/src/build/rewriteImports.d.ts +8 -0
- package/dist/src/build/rewriteImportsPlugin.d.ts +48 -0
- package/dist/src/build/rewriteReactImports.d.ts +7 -0
- package/dist/src/build/runAngularHandlerScan.d.ts +7 -0
- package/dist/src/build/scanAngularHandlerCalls.d.ts +13 -0
- package/dist/src/build/scanAngularPageRoutes.d.ts +10 -0
- package/dist/src/build/scanConventions.d.ts +5 -0
- package/dist/src/build/scanCssEntryPoints.d.ts +1 -0
- package/dist/src/build/scanEntryPoints.d.ts +1 -0
- package/dist/src/build/scanRouteRegistrations.d.ts +23 -0
- package/dist/src/build/scanVueSsrOnlyPages.d.ts +6 -0
- package/dist/src/build/staticIslandPages.d.ts +9 -0
- package/dist/src/build/stylePreprocessor.d.ts +26 -0
- package/dist/src/build/tailwindCompiler.d.ts +8 -0
- package/dist/src/build/updateAssetPaths.d.ts +1 -0
- package/dist/src/build/vendorEntrySource.d.ts +1 -0
- package/dist/src/build/verifyAngularCoreUniqueness.d.ts +2 -0
- package/dist/src/build/vueAutoRouterTransform.d.ts +1 -0
- package/dist/src/build/wrapHTMLScript.d.ts +17 -0
- package/dist/src/build.d.ts +2 -0
- package/dist/src/cli/add/dependencies.d.ts +12 -0
- package/dist/src/cli/cache.d.ts +15 -0
- package/dist/src/cli/config/absolute/AbsoluteConfigPanel.d.ts +6 -0
- package/dist/src/cli/config/absolute/editAbsoluteConfig.d.ts +5 -0
- package/dist/src/cli/config/absolute/resolveAbsoluteConfig.d.ts +14 -0
- package/dist/src/cli/config/client.d.ts +1 -0
- package/dist/src/cli/config/configCert.d.ts +12 -0
- package/dist/src/cli/config/eslint/EslintPanel.d.ts +6 -0
- package/dist/src/cli/config/eslint/configAst.d.ts +18 -0
- package/dist/src/cli/config/eslint/editConfigRule.d.ts +6 -0
- package/dist/src/cli/config/eslint/eslintStyles.d.ts +1 -0
- package/dist/src/cli/config/eslint/resolveConfig.d.ts +3 -0
- package/dist/src/cli/config/eslint/serializeValue.d.ts +9 -0
- package/dist/src/cli/config/guards.d.ts +4 -0
- package/dist/src/cli/config/packageJson/PackageJsonPanel.d.ts +6 -0
- package/dist/src/cli/config/packageJson/editPackageJson.d.ts +9 -0
- package/dist/src/cli/config/packageJson/resolvePackageJson.d.ts +9 -0
- package/dist/src/cli/config/page/ConfigShell.d.ts +6 -0
- package/dist/src/cli/config/page/FieldEditor.d.ts +9 -0
- package/dist/src/cli/config/page/PanelHost.d.ts +6 -0
- package/dist/src/cli/config/page/configStyles.d.ts +1 -0
- package/dist/src/cli/config/panels.d.ts +7 -0
- package/dist/src/cli/config/prettier/PrettierPanel.d.ts +6 -0
- package/dist/src/cli/config/prettier/editPrettier.d.ts +5 -0
- package/dist/src/cli/config/prettier/resolvePrettier.d.ts +11 -0
- package/dist/src/cli/config/schema/fromJsonSchema.d.ts +3 -0
- package/dist/src/cli/config/schema/fromType.d.ts +2 -0
- package/dist/src/cli/config/schema/serialize.d.ts +1 -0
- package/dist/src/cli/config/server.d.ts +298 -0
- package/dist/src/cli/config/tsconfig/TsconfigPanel.d.ts +6 -0
- package/dist/src/cli/config/tsconfig/editTsconfig.d.ts +5 -0
- package/dist/src/cli/config/tsconfig/resolveTsconfig.d.ts +8 -0
- package/dist/src/cli/config/tsconfig/tsconfigStyles.d.ts +1 -0
- package/dist/src/cli/discoverInstances.d.ts +5 -0
- package/dist/src/cli/generate/componentTemplates.d.ts +7 -0
- package/dist/src/cli/generate/context.d.ts +30 -0
- package/dist/src/cli/generate/cssStrategy.d.ts +20 -0
- package/dist/src/cli/generate/frameworkKey.d.ts +3 -0
- package/dist/src/cli/generate/frameworks.d.ts +40 -0
- package/dist/src/cli/generate/generateApi.d.ts +3 -0
- package/dist/src/cli/generate/generateComponent.d.ts +4 -0
- package/dist/src/cli/generate/generatePage.d.ts +4 -0
- package/dist/src/cli/generate/naming.d.ts +5 -0
- package/dist/src/cli/generate/navData.d.ts +10 -0
- package/dist/src/cli/generate/outcome.d.ts +17 -0
- package/dist/src/cli/generate/pageTemplates.d.ts +11 -0
- package/dist/src/cli/generate/routeWiring.d.ts +40 -0
- package/dist/src/cli/generate/staticNav.d.ts +5 -0
- package/dist/src/cli/heapDiff.d.ts +1 -0
- package/dist/src/cli/htmx/install.d.ts +6 -0
- package/dist/src/cli/index.d.ts +2 -0
- package/dist/src/cli/inspectData.d.ts +12 -0
- package/dist/src/cli/inspectTui.d.ts +1 -0
- package/dist/src/cli/instanceStatus.d.ts +22 -0
- package/dist/src/cli/interactive.d.ts +2 -0
- package/dist/src/cli/psTui.d.ts +1 -0
- package/dist/src/cli/scripts/add.d.ts +1 -0
- package/dist/src/cli/scripts/analyze.d.ts +1 -0
- package/dist/src/cli/scripts/api.d.ts +1 -0
- package/dist/src/cli/scripts/build.d.ts +1 -0
- package/dist/src/cli/scripts/compile.d.ts +2 -0
- package/dist/src/cli/scripts/dev.d.ts +1 -0
- package/dist/src/cli/scripts/doctor.d.ts +1 -0
- package/dist/src/cli/scripts/env.d.ts +7 -0
- package/dist/src/cli/scripts/eslint.d.ts +16 -0
- package/dist/src/cli/scripts/generate.d.ts +1 -0
- package/dist/src/cli/scripts/htmx.d.ts +1 -0
- package/dist/src/cli/scripts/info.d.ts +1 -0
- package/dist/src/cli/scripts/inspect.d.ts +1 -0
- package/dist/src/cli/scripts/islands.d.ts +1 -0
- package/dist/src/cli/scripts/logs.d.ts +1 -0
- package/dist/src/cli/scripts/ls.d.ts +1 -0
- package/dist/src/cli/scripts/mem.d.ts +1 -0
- package/dist/src/cli/scripts/prettier.d.ts +3 -0
- package/dist/src/cli/scripts/ps.d.ts +1 -0
- package/dist/src/cli/scripts/remove.d.ts +1 -0
- package/dist/src/cli/scripts/routes.d.ts +1 -0
- package/dist/src/cli/scripts/start.d.ts +1 -0
- package/dist/src/cli/scripts/telemetry.d.ts +5 -0
- package/dist/src/cli/scripts/tunnelRelay.d.ts +9 -0
- package/dist/src/cli/scripts/typecheck.d.ts +1 -0
- package/dist/src/cli/scripts/workspace.d.ts +11 -0
- package/dist/src/cli/telemetryEvent.d.ts +1 -0
- package/dist/src/cli/tuiPrimitives.d.ts +14 -0
- package/dist/src/cli/utils.d.ts +15 -0
- package/dist/src/cli/workspaceTui.d.ts +44 -0
- package/dist/src/client/hydrators/react.d.ts +3 -0
- package/dist/src/client/hydrators/svelte.d.ts +2 -0
- package/dist/src/client/hydrators/vue.d.ts +2 -0
- package/dist/src/client/index.d.ts +4 -0
- package/dist/src/client/islandResolver.d.ts +2 -0
- package/dist/src/client/islandRuntime.d.ts +9 -0
- package/dist/src/client/islandStore.d.ts +22 -0
- package/dist/src/client/preserveIslandMarkup.d.ts +16 -0
- package/dist/src/client/streamSwap.d.ts +1 -0
- package/dist/src/constants.d.ts +96 -0
- package/dist/src/core/angularServerModule.d.ts +1 -0
- package/dist/src/core/build.d.ts +14 -0
- package/dist/src/core/currentIslandRegistry.d.ts +7 -0
- package/dist/src/core/devBuild.d.ts +23 -0
- package/dist/src/core/devRouteRegistrationCallsite.d.ts +4 -0
- package/dist/src/core/devVendorPaths.d.ts +17 -0
- package/dist/src/core/index.d.ts +7 -0
- package/dist/src/core/islandManifest.d.ts +3 -0
- package/dist/src/core/islandMarkupAttributes.d.ts +12 -0
- package/dist/src/core/islandPageContext.d.ts +12 -0
- package/dist/src/core/islandSsr.d.ts +6 -0
- package/dist/src/core/islands.d.ts +16 -0
- package/dist/src/core/loadIslandRegistry.d.ts +1 -0
- package/dist/src/core/lookup.d.ts +1 -0
- package/dist/src/core/normalizeIslandProps.d.ts +15 -0
- package/dist/src/core/pageHandlers.d.ts +5 -0
- package/dist/src/core/prepare.d.ts +417 -0
- package/dist/src/core/prerender.d.ts +31 -0
- package/dist/src/core/renderIslandMarkup.d.ts +13 -0
- package/dist/src/core/responseEnhancers.d.ts +10 -0
- package/dist/src/core/staticStreaming.d.ts +25 -0
- package/dist/src/core/streamingSlotRegistrar.d.ts +16 -0
- package/dist/src/core/streamingSlotRegistry.d.ts +2 -0
- package/dist/src/core/streamingSlotWarningScope.d.ts +4 -0
- package/dist/src/core/svelteServerModule.d.ts +1 -0
- package/dist/src/core/vueServerModule.d.ts +1 -0
- package/dist/src/core/wrapPageHandlerWithStreamingSlots.d.ts +2 -0
- package/dist/src/dev/angular/fastHmrCompiler.d.ts +58 -0
- package/dist/src/dev/angular/hmrCompiler.d.ts +2 -0
- package/dist/src/dev/angular/hmrImportGenerator.d.ts +3 -0
- package/dist/src/dev/angular/hmrInjectionPlugin.d.ts +8 -0
- package/dist/src/dev/angular/resolveOwningComponents.d.ts +16 -0
- package/dist/src/dev/angular/vendor/translator/api/ast_factory.d.ts +363 -0
- package/dist/src/dev/angular/vendor/translator/api/import_generator.d.ts +49 -0
- package/dist/src/dev/angular/vendor/translator/context.d.ts +18 -0
- package/dist/src/dev/angular/vendor/translator/translator.d.ts +75 -0
- package/dist/src/dev/angular/vendor/translator/ts_util.d.ts +12 -0
- package/dist/src/dev/angular/vendor/translator/typescript_ast_factory.d.ts +66 -0
- package/dist/src/dev/angular/vendor/translator/typescript_translator.d.ts +13 -0
- package/dist/src/dev/assetStore.d.ts +8 -0
- package/dist/src/dev/buildHMRClient.d.ts +1 -0
- package/dist/src/dev/clientManager.d.ts +33 -0
- package/dist/src/dev/configResolver.d.ts +16 -0
- package/dist/src/dev/dependencyGraph.d.ts +10 -0
- package/dist/src/dev/devCert.d.ts +11 -0
- package/dist/src/dev/fileHashTracker.d.ts +2 -0
- package/dist/src/dev/fileWatcher.d.ts +4 -0
- package/dist/src/dev/moduleMapper.d.ts +27 -0
- package/dist/src/dev/moduleServer.d.ts +24 -0
- package/dist/src/dev/moduleVersionTracker.d.ts +7 -0
- package/dist/src/dev/pathUtils.d.ts +8 -0
- package/dist/src/dev/reactComponentClassifier.d.ts +2 -0
- package/dist/src/dev/rebuildTrigger.d.ts +11 -0
- package/dist/src/dev/requestInspector.d.ts +43 -0
- package/dist/src/dev/serverEntryWatcher.d.ts +5 -0
- package/dist/src/dev/simpleHTMLHMR.d.ts +4 -0
- package/dist/src/dev/simpleHTMXHMR.d.ts +4 -0
- package/dist/src/dev/transformCache.d.ts +22 -0
- package/dist/src/dev/tunnel/client.d.ts +20 -0
- package/dist/src/dev/tunnel/protocol.d.ts +85 -0
- package/dist/src/dev/tunnel/relay.d.ts +28 -0
- package/dist/src/dev/webSocket.d.ts +9 -0
- package/dist/src/ember/browser.d.ts +24 -0
- package/dist/src/ember/index.d.ts +2 -0
- package/dist/src/ember/pageHandler.d.ts +35 -0
- package/dist/src/ember/server.d.ts +2 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/src/islands/browser.d.ts +3 -0
- package/dist/src/islands/index.d.ts +3 -0
- package/dist/src/islands/pageMetadata.d.ts +13 -0
- package/dist/src/islands/sourceMetadata.d.ts +10 -0
- package/dist/src/plugins/devtoolsJson.d.ts +58 -0
- package/dist/src/plugins/hmr.d.ts +163 -0
- package/dist/src/plugins/imageOptimizer.d.ts +67 -0
- package/dist/src/plugins/index.d.ts +3 -0
- package/dist/src/plugins/networking.d.ts +2 -0
- package/dist/src/plugins/pageRouter.d.ts +1 -0
- package/dist/src/react/Island.browser.d.ts +2 -0
- package/dist/src/react/Island.d.ts +2 -0
- package/dist/src/react/bridgeInternals.d.ts +1 -0
- package/dist/src/react/browser.d.ts +3 -0
- package/dist/src/react/components/Head.d.ts +2 -0
- package/dist/src/react/components/Image.d.ts +2 -0
- package/dist/src/react/components/JsonLd.d.ts +4 -0
- package/dist/src/react/components/StreamSlot.browser.d.ts +10 -0
- package/dist/src/react/components/StreamSlot.d.ts +10 -0
- package/dist/src/react/components/SuspenseSlot.browser.d.ts +22 -0
- package/dist/src/react/components/SuspenseSlot.d.ts +37 -0
- package/dist/src/react/components/browser/index.d.ts +5 -0
- package/dist/src/react/components/index.d.ts +5 -0
- package/dist/src/react/createIsland.browser.d.ts +2 -0
- package/dist/src/react/createIsland.d.ts +2 -0
- package/dist/src/react/hooks/index.d.ts +3 -0
- package/dist/src/react/hooks/useIslandStore.d.ts +3 -0
- package/dist/src/react/hooks/useMediaQuery.d.ts +7 -0
- package/dist/src/react/index.d.ts +4 -0
- package/dist/src/react/jsxDevRuntimeCompat.d.ts +8 -0
- package/dist/src/react/pageHandler.d.ts +25 -0
- package/dist/src/react/router/UniversalRouter.d.ts +43 -0
- package/dist/src/react/router/browser.d.ts +2 -0
- package/dist/src/react/router/index.d.ts +2 -0
- package/dist/src/react/server.d.ts +1 -0
- package/dist/src/react/staticAnalyzeSpaRoutes.d.ts +7 -0
- package/dist/src/svelte/browser.d.ts +4 -0
- package/dist/src/svelte/createIsland.browser.d.ts +2 -0
- package/dist/src/svelte/createIsland.d.ts +2 -0
- package/dist/src/svelte/index.d.ts +6 -0
- package/dist/src/svelte/islandStore.d.ts +5 -0
- package/dist/src/svelte/lowerAwaitSlotSyntax.d.ts +4 -0
- package/dist/src/svelte/lowerIslandSyntax.d.ts +4 -0
- package/dist/src/svelte/pageHandler.d.ts +28 -0
- package/dist/src/svelte/renderIsland.d.ts +2 -0
- package/dist/src/svelte/renderToPipeableStream.d.ts +12 -0
- package/dist/src/svelte/renderToReadableStream.d.ts +14 -0
- package/dist/src/svelte/renderToString.d.ts +9 -0
- package/dist/src/svelte/resolveIslandHtml.browser.d.ts +2 -0
- package/dist/src/svelte/resolveIslandHtml.d.ts +2 -0
- package/dist/src/svelte/router/browser.d.ts +4 -0
- package/dist/src/svelte/router/goto.d.ts +15 -0
- package/dist/src/svelte/router/hashMode.d.ts +16 -0
- package/dist/src/svelte/router/index.d.ts +4 -0
- package/dist/src/svelte/router/matchPath.d.ts +30 -0
- package/dist/src/svelte/router/page.svelte.d.ts +15 -0
- package/dist/src/svelte/router/prefetchCache.d.ts +17 -0
- package/dist/src/svelte/router/pushState.d.ts +13 -0
- package/dist/src/svelte/router/viewTransitions.d.ts +6 -0
- package/dist/src/svelte/server.d.ts +1 -0
- package/dist/src/svelte/staticAnalyzeSpaRoutes.d.ts +7 -0
- package/dist/src/utils/buildDirectoryLock.d.ts +28 -0
- package/dist/src/utils/cleanStaleOutputs.d.ts +1 -0
- package/dist/src/utils/cleanup.d.ts +9 -0
- package/dist/src/utils/commonAncestor.d.ts +1 -0
- package/dist/src/utils/defineConfig.d.ts +39 -0
- package/dist/src/utils/defineConvention.d.ts +3 -0
- package/dist/src/utils/defineEnv.d.ts +10 -0
- package/dist/src/utils/escapeScriptContent.d.ts +1 -0
- package/dist/src/utils/formatBytes.d.ts +2 -0
- package/dist/src/utils/generateHeadElement.d.ts +4 -0
- package/dist/src/utils/generateSitemap.d.ts +21 -0
- package/dist/src/utils/generatedDir.d.ts +3 -0
- package/dist/src/utils/getDurationString.d.ts +1 -0
- package/dist/src/utils/getEnv.d.ts +1 -0
- package/dist/src/utils/imageClient.d.ts +13 -0
- package/dist/src/utils/imageProcessing.d.ts +33 -0
- package/dist/src/utils/index.d.ts +11 -0
- package/dist/src/utils/inlinePageCss.d.ts +2 -0
- package/dist/src/utils/instanceRegistry.d.ts +13 -0
- package/dist/src/utils/jsonLd.d.ts +3 -0
- package/dist/src/utils/loadConfig.d.ts +55 -0
- package/dist/src/utils/logger.d.ts +56 -0
- package/dist/src/utils/networking.d.ts +2 -0
- package/dist/src/utils/normalizePath.d.ts +9 -0
- package/dist/src/utils/portScan.d.ts +22 -0
- package/dist/src/utils/projectRoot.d.ts +17 -0
- package/dist/src/utils/registerClientScript.d.ts +36 -0
- package/dist/src/utils/resolveConvention.d.ts +10 -0
- package/dist/src/utils/resolveDevPort.d.ts +24 -0
- package/dist/src/utils/runtimeMode.d.ts +3 -0
- package/dist/src/utils/spaRouteCss.d.ts +4 -0
- package/dist/src/utils/spaRouteTypes.d.ts +25 -0
- package/dist/src/utils/ssrErrorPage.d.ts +1 -0
- package/dist/src/utils/startupBanner.d.ts +10 -0
- package/dist/src/utils/startupTimings.d.ts +7 -0
- package/dist/src/utils/streamingSlotMetricSink.d.ts +18 -0
- package/dist/src/utils/streamingSlots.d.ts +76 -0
- package/dist/src/utils/stringModifiers.d.ts +3 -0
- package/dist/src/utils/userAgentFunctions.d.ts +1 -0
- package/dist/src/utils/validateSafePath.d.ts +1 -0
- package/dist/src/vue/Island.browser.d.ts +37 -0
- package/dist/src/vue/Island.d.ts +36 -0
- package/dist/src/vue/browser.d.ts +6 -0
- package/dist/src/vue/components/Image.d.ts +74 -0
- package/dist/src/vue/components/StreamSlot.d.ts +22 -0
- package/dist/src/vue/components/SuspenseSlot.d.ts +26 -0
- package/dist/src/vue/components/index.d.ts +3 -0
- package/dist/src/vue/createIsland.browser.d.ts +13 -0
- package/dist/src/vue/createIsland.d.ts +13 -0
- package/dist/src/vue/defineVuePage.d.ts +6 -0
- package/dist/src/vue/index.d.ts +9 -0
- package/dist/src/vue/pageHandler.d.ts +45 -0
- package/dist/src/vue/routerRedirectProviders.d.ts +45 -0
- package/dist/src/vue/server.d.ts +2 -0
- package/dist/src/vue/staticAnalyzeSpaRoutes.d.ts +7 -0
- package/dist/src/vue/useIslandStore.d.ts +3 -0
- package/dist/svelte/browser.js +309 -0
- package/dist/svelte/browser.js.map +19 -0
- package/dist/svelte/components/AwaitSlot.svelte +39 -0
- package/dist/svelte/components/AwaitSlot.svelte.d.ts +2 -0
- package/dist/svelte/components/Head.svelte +144 -0
- package/dist/svelte/components/Head.svelte.d.ts +2 -0
- package/dist/svelte/components/Image.svelte +164 -0
- package/dist/svelte/components/Image.svelte.d.ts +5 -0
- package/dist/svelte/components/Island.svelte +71 -0
- package/dist/svelte/components/Island.svelte.d.ts +5 -0
- package/dist/svelte/components/JsonLd.svelte +21 -0
- package/dist/svelte/components/JsonLd.svelte.d.ts +2 -0
- package/dist/svelte/components/StreamSlot.svelte +41 -0
- package/dist/svelte/components/StreamSlot.svelte.d.ts +2 -0
- package/dist/svelte/index.js +4371 -0
- package/dist/svelte/index.js.map +60 -0
- package/dist/svelte/router/Link.svelte +124 -0
- package/dist/svelte/router/Link.svelte.d.ts +21 -0
- package/dist/svelte/router/Route.svelte +54 -0
- package/dist/svelte/router/Route.svelte.d.ts +13 -0
- package/dist/svelte/router/Router.svelte +189 -0
- package/dist/svelte/router/Router.svelte.d.ts +16 -0
- package/dist/svelte/router/browser.ts +14 -0
- package/dist/svelte/router/goto.ts +89 -0
- package/dist/svelte/router/hashMode.ts +31 -0
- package/dist/svelte/router/index.ts +23 -0
- package/dist/svelte/router/matchPath.ts +136 -0
- package/dist/svelte/router/page.d.ts +15 -0
- package/dist/svelte/router/page.js +27 -0
- package/dist/svelte/router/prefetchCache.ts +85 -0
- package/dist/svelte/router/pushState.ts +35 -0
- package/dist/svelte/router/viewTransitions.ts +35 -0
- package/dist/svelte/server.js +2996 -0
- package/dist/svelte/server.js.map +33 -0
- package/dist/types/absoluteConfig.d.ts +22 -0
- package/dist/types/angular.d.ts +43 -0
- package/dist/types/build.d.ts +245 -0
- package/dist/types/cli.d.ts +74 -0
- package/dist/types/client.d.ts +70 -0
- package/dist/types/config.d.ts +50 -0
- package/dist/types/conventions.d.ts +26 -0
- package/dist/types/ember.d.ts +39 -0
- package/dist/types/env.d.ts +2 -0
- package/dist/types/eslintConfig.d.ts +68 -0
- package/dist/types/globals.d.ts +163 -0
- package/dist/types/image.d.ts +77 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/island.d.ts +52 -0
- package/dist/types/jsonLd.d.ts +300 -0
- package/dist/types/mediaQuery.d.ts +9 -0
- package/dist/types/messages.d.ts +152 -0
- package/dist/types/metadata.d.ts +51 -0
- package/dist/types/packageJson.d.ts +74 -0
- package/dist/types/packageJsonPanel.d.ts +29 -0
- package/dist/types/prettier.d.ts +26 -0
- package/dist/types/react.d.ts +2 -0
- package/dist/types/sitemap.d.ts +24 -0
- package/dist/types/style-module-shim.d.ts +29 -0
- package/dist/types/svelte.d.ts +2 -0
- package/dist/types/svelteRouter.d.ts +65 -0
- package/dist/types/svelteRouter.ts +91 -0
- package/dist/types/telemetry.d.ts +15 -0
- package/dist/types/tool.d.ts +11 -0
- package/dist/types/tsconfig.d.ts +31 -0
- package/dist/types/typeGuards.d.ts +2 -0
- package/dist/types/userAgentTypes.d.ts +2 -0
- package/dist/types/vue.d.ts +56 -0
- package/dist/types/websocket.d.ts +6 -0
- package/dist/vue/browser.js +512 -0
- package/dist/vue/browser.js.map +22 -0
- package/dist/vue/components/Image.js +264 -0
- package/dist/vue/components/Image.js.map +12 -0
- package/dist/vue/components/index.js +571 -0
- package/dist/vue/components/index.js.map +15 -0
- package/dist/vue/index.js +5238 -0
- package/dist/vue/index.js.map +69 -0
- package/dist/vue/server.js +2251 -0
- package/dist/vue/server.js.map +32 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Module-level dev vendor paths state.
|
|
2
|
+
* Set by devBuild() before the initial build so that build() can
|
|
3
|
+
* externalize React and rewrite imports to stable vendor files.
|
|
4
|
+
* Production builds never call setDevVendorPaths, so the getter
|
|
5
|
+
* returns null and build() bundles React normally. */
|
|
6
|
+
export declare const getDevVendorPaths: () => Record<string, string> | null;
|
|
7
|
+
export declare const setDevVendorPaths: (paths: Record<string, string>) => void;
|
|
8
|
+
export declare const getAngularVendorPaths: () => Record<string, string> | null;
|
|
9
|
+
export declare const setAngularVendorPaths: (paths: Record<string, string>) => void;
|
|
10
|
+
export declare const getAngularServerVendorPaths: () => Record<string, string> | null;
|
|
11
|
+
export declare const setAngularServerVendorPaths: (paths: Record<string, string>) => void;
|
|
12
|
+
export declare const getSvelteVendorPaths: () => Record<string, string> | null;
|
|
13
|
+
export declare const setSvelteVendorPaths: (paths: Record<string, string>) => void;
|
|
14
|
+
export declare const getVueVendorPaths: () => Record<string, string> | null;
|
|
15
|
+
export declare const setVueVendorPaths: (paths: Record<string, string>) => void;
|
|
16
|
+
export declare const getEmberVendorPaths: () => Record<string, string> | null;
|
|
17
|
+
export declare const setEmberVendorPaths: (paths: Record<string, string>) => void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IslandFramework } from '../../types/island';
|
|
2
|
+
export declare const getIslandManifestEntries: (manifest: Record<string, string>) => Partial<Record<IslandFramework, Record<string, string>>>;
|
|
3
|
+
export declare const getIslandManifestKey: (framework: IslandFramework, component: string) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RuntimeIslandRenderProps } from '../../types/island';
|
|
2
|
+
type IslandMarkerAttributes = {
|
|
3
|
+
'data-component': string;
|
|
4
|
+
'data-framework': string;
|
|
5
|
+
'data-hydrate': string;
|
|
6
|
+
'data-island': 'true';
|
|
7
|
+
'data-island-id'?: string;
|
|
8
|
+
'data-props': string;
|
|
9
|
+
};
|
|
10
|
+
export declare const getIslandMarkerAttributes: (props: RuntimeIslandRenderProps, islandId?: string) => IslandMarkerAttributes;
|
|
11
|
+
export declare const serializeIslandAttributes: (attributes: Record<string, string>) => string;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
var __absoluteManifest: Record<string, string> | undefined;
|
|
3
|
+
var __ABS_ISLAND_STATE__: Record<string, Record<string, unknown>> | undefined;
|
|
4
|
+
}
|
|
5
|
+
export declare const htmlContainsIslands: (html: string) => boolean;
|
|
6
|
+
export declare const injectIslandPageContext: (html: string, options?: {
|
|
7
|
+
hasIslands?: boolean;
|
|
8
|
+
}) => string;
|
|
9
|
+
export declare const injectIslandPageContextStream: (stream: ReadableStream<string | Uint8Array>, options?: {
|
|
10
|
+
hasIslands?: boolean;
|
|
11
|
+
}) => ReadableStream<string | Uint8Array<ArrayBufferLike>>;
|
|
12
|
+
export declare const setCurrentIslandManifest: (manifest: Record<string, string>) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type ReactComponentType<Props extends Record<string, unknown>> = import('react').ComponentType<Props>;
|
|
2
|
+
export declare const renderAngularIslandToHtml: (component: import("@angular/core").Type<object>, props: Record<string, unknown>, islandId: string) => Promise<string>;
|
|
3
|
+
export declare const renderReactIslandToHtml: <Props extends Record<string, unknown>>(component: ReactComponentType<Props>, props: Props) => Promise<string>;
|
|
4
|
+
export declare const renderSvelteIslandToHtml: <Props extends Record<string, unknown>>(component: import("svelte").Component<Props>, props: Props) => Promise<string>;
|
|
5
|
+
export declare const renderVueIslandToHtml: <Props extends Record<string, unknown>>(component: import("vue").Component<Props>, props: Props) => Promise<string>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IslandComponentDefinition, IslandRegistry, IslandRegistryInput } from '../../types/island';
|
|
2
|
+
export declare const defineIslandComponent: <Component>(component: Component, options: {
|
|
3
|
+
export?: string;
|
|
4
|
+
source: string;
|
|
5
|
+
}) => IslandComponentDefinition<Component>;
|
|
6
|
+
export declare const defineIslandRegistry: <T extends IslandRegistryInput>(registry: IslandRegistry<T>) => T;
|
|
7
|
+
export declare const getIslandBuildReference: <Component>(component: Component | IslandComponentDefinition<Component>) => {
|
|
8
|
+
export: string | undefined;
|
|
9
|
+
source: string;
|
|
10
|
+
} | null;
|
|
11
|
+
export declare const isIslandComponentDefinition: <Component>(value: Component | IslandComponentDefinition<Component>) => value is IslandComponentDefinition<Component>;
|
|
12
|
+
export declare function getIslandComponent<Component>(component: Component): Component;
|
|
13
|
+
export declare function getIslandComponent<Component>(component: IslandComponentDefinition<Component>): Component;
|
|
14
|
+
export declare const parseIslandProps: (rawProps: string | null) => any;
|
|
15
|
+
export declare const serializeIslandProps: (props: unknown) => string;
|
|
16
|
+
export { getIslandManifestEntries, getIslandManifestKey } from './islandManifest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const loadIslandRegistry: (registryPath: string) => Promise<Partial<Record<import("..").IslandFramework, Record<string, unknown>>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const asset: (source: Record<string, string>, name: string) => string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IslandFramework, IslandHydrate } from '../../types/island';
|
|
2
|
+
type RawIslandProps = {
|
|
3
|
+
component: string;
|
|
4
|
+
framework: string;
|
|
5
|
+
hydrate?: string | undefined;
|
|
6
|
+
props: unknown;
|
|
7
|
+
};
|
|
8
|
+
export declare const normalizeRuntimeIslandRenderProps: (raw: RawIslandProps) => {
|
|
9
|
+
component: string;
|
|
10
|
+
framework: IslandFramework;
|
|
11
|
+
hydrate: IslandHydrate | undefined;
|
|
12
|
+
props: Record<string, unknown>;
|
|
13
|
+
};
|
|
14
|
+
export declare const normalizeIslandProps: (value: unknown) => Record<string, unknown>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type StreamingSlotEnhancerOptions } from './responseEnhancers';
|
|
2
|
+
export type StaticPageRequestOptions = StreamingSlotEnhancerOptions;
|
|
3
|
+
export type HTMLPageRequestOptions = StaticPageRequestOptions;
|
|
4
|
+
export declare const handleHTMLPageRequest: (pagePath: string, options?: HTMLPageRequestOptions) => Promise<Response>;
|
|
5
|
+
export declare const handleHTMXPageRequest: (pagePath: string) => Promise<Response>;
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
export declare const prepare: (configOrPath?: string) => Promise<{
|
|
3
|
+
absolutejs: Elysia<"", {
|
|
4
|
+
decorator: {};
|
|
5
|
+
store: {};
|
|
6
|
+
derive: {};
|
|
7
|
+
resolve: {};
|
|
8
|
+
}, {
|
|
9
|
+
typebox: {};
|
|
10
|
+
error: {};
|
|
11
|
+
} & {
|
|
12
|
+
typebox: {};
|
|
13
|
+
error: {};
|
|
14
|
+
}, {
|
|
15
|
+
schema: {};
|
|
16
|
+
standaloneSchema: {};
|
|
17
|
+
macro: {};
|
|
18
|
+
macroFn: {};
|
|
19
|
+
parser: {};
|
|
20
|
+
response: {};
|
|
21
|
+
} & {
|
|
22
|
+
schema: {};
|
|
23
|
+
standaloneSchema: {};
|
|
24
|
+
macro: {};
|
|
25
|
+
macroFn: {};
|
|
26
|
+
parser: {};
|
|
27
|
+
response: {};
|
|
28
|
+
} & {
|
|
29
|
+
schema: {};
|
|
30
|
+
standaloneSchema: {};
|
|
31
|
+
macro: {};
|
|
32
|
+
macroFn: {};
|
|
33
|
+
parser: {};
|
|
34
|
+
response: {};
|
|
35
|
+
} & {
|
|
36
|
+
schema: {};
|
|
37
|
+
standaloneSchema: {};
|
|
38
|
+
macro: {};
|
|
39
|
+
macroFn: {};
|
|
40
|
+
parser: {};
|
|
41
|
+
response: {
|
|
42
|
+
200: Response;
|
|
43
|
+
};
|
|
44
|
+
} & {
|
|
45
|
+
schema: {};
|
|
46
|
+
standaloneSchema: {};
|
|
47
|
+
macro: {};
|
|
48
|
+
macroFn: {};
|
|
49
|
+
parser: {};
|
|
50
|
+
response: {
|
|
51
|
+
200: Response;
|
|
52
|
+
};
|
|
53
|
+
}, (((({
|
|
54
|
+
__absolute: {
|
|
55
|
+
requests: {
|
|
56
|
+
get: {
|
|
57
|
+
body: unknown;
|
|
58
|
+
params: {};
|
|
59
|
+
query: unknown;
|
|
60
|
+
headers: unknown;
|
|
61
|
+
response: {
|
|
62
|
+
200: import("..").RequestRecord[];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
} & {
|
|
68
|
+
".well-known": {
|
|
69
|
+
appspecific: {
|
|
70
|
+
"com.chrome.devtools.json": {
|
|
71
|
+
get: {
|
|
72
|
+
body: unknown;
|
|
73
|
+
params: {};
|
|
74
|
+
query: unknown;
|
|
75
|
+
headers: unknown;
|
|
76
|
+
response: {
|
|
77
|
+
200: {
|
|
78
|
+
workspace: {
|
|
79
|
+
root: string;
|
|
80
|
+
uuid: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}) | ({
|
|
89
|
+
__absolute: {
|
|
90
|
+
requests: {
|
|
91
|
+
get: {
|
|
92
|
+
body: unknown;
|
|
93
|
+
params: {};
|
|
94
|
+
query: unknown;
|
|
95
|
+
headers: unknown;
|
|
96
|
+
response: {
|
|
97
|
+
200: import("..").RequestRecord[];
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
} & {
|
|
103
|
+
".well-known": {
|
|
104
|
+
appspecific: {
|
|
105
|
+
"com.chrome.devtools.json": {
|
|
106
|
+
get: {
|
|
107
|
+
body: unknown;
|
|
108
|
+
params: {};
|
|
109
|
+
query: unknown;
|
|
110
|
+
headers: unknown;
|
|
111
|
+
response: {
|
|
112
|
+
200: {
|
|
113
|
+
workspace: {
|
|
114
|
+
root: string;
|
|
115
|
+
uuid: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
} & {
|
|
124
|
+
[x: string]: {
|
|
125
|
+
get: {
|
|
126
|
+
body: unknown;
|
|
127
|
+
params: {};
|
|
128
|
+
query: unknown;
|
|
129
|
+
headers: unknown;
|
|
130
|
+
response: {};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
})) & {
|
|
134
|
+
"@src": {
|
|
135
|
+
"*": {
|
|
136
|
+
get: {
|
|
137
|
+
body: unknown;
|
|
138
|
+
params: {
|
|
139
|
+
"*": string;
|
|
140
|
+
} & {};
|
|
141
|
+
query: unknown;
|
|
142
|
+
headers: unknown;
|
|
143
|
+
response: {
|
|
144
|
+
200: Response;
|
|
145
|
+
422: {
|
|
146
|
+
type: "validation";
|
|
147
|
+
on: string;
|
|
148
|
+
summary?: string;
|
|
149
|
+
message?: string;
|
|
150
|
+
found?: unknown;
|
|
151
|
+
property?: string;
|
|
152
|
+
expected?: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
} & {
|
|
159
|
+
"@stub": {
|
|
160
|
+
"*": {
|
|
161
|
+
get: {
|
|
162
|
+
body: unknown;
|
|
163
|
+
params: {
|
|
164
|
+
"*": string;
|
|
165
|
+
} & {};
|
|
166
|
+
query: unknown;
|
|
167
|
+
headers: unknown;
|
|
168
|
+
response: {
|
|
169
|
+
200: Response;
|
|
170
|
+
422: {
|
|
171
|
+
type: "validation";
|
|
172
|
+
on: string;
|
|
173
|
+
summary?: string;
|
|
174
|
+
message?: string;
|
|
175
|
+
found?: unknown;
|
|
176
|
+
property?: string;
|
|
177
|
+
expected?: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
} & {
|
|
184
|
+
"@hmr": {
|
|
185
|
+
"*": {
|
|
186
|
+
get: {
|
|
187
|
+
body: unknown;
|
|
188
|
+
params: {
|
|
189
|
+
"*": string;
|
|
190
|
+
} & {};
|
|
191
|
+
query: unknown;
|
|
192
|
+
headers: unknown;
|
|
193
|
+
response: {
|
|
194
|
+
200: Response;
|
|
195
|
+
422: {
|
|
196
|
+
type: "validation";
|
|
197
|
+
on: string;
|
|
198
|
+
summary?: string;
|
|
199
|
+
message?: string;
|
|
200
|
+
found?: unknown;
|
|
201
|
+
property?: string;
|
|
202
|
+
expected?: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
} & {
|
|
209
|
+
"@ng": {
|
|
210
|
+
"*": {
|
|
211
|
+
get: {
|
|
212
|
+
body: unknown;
|
|
213
|
+
params: {
|
|
214
|
+
"*": string;
|
|
215
|
+
} & {};
|
|
216
|
+
query: unknown;
|
|
217
|
+
headers: unknown;
|
|
218
|
+
response: {
|
|
219
|
+
200: Response;
|
|
220
|
+
422: {
|
|
221
|
+
type: "validation";
|
|
222
|
+
on: string;
|
|
223
|
+
summary?: string;
|
|
224
|
+
message?: string;
|
|
225
|
+
found?: unknown;
|
|
226
|
+
property?: string;
|
|
227
|
+
expected?: string;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
} & {
|
|
234
|
+
hmr: {
|
|
235
|
+
subscribe: {
|
|
236
|
+
body: unknown;
|
|
237
|
+
params: {};
|
|
238
|
+
query: unknown;
|
|
239
|
+
headers: unknown;
|
|
240
|
+
response: {
|
|
241
|
+
200: Response;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
} & {
|
|
246
|
+
"hmr-status": {
|
|
247
|
+
get: {
|
|
248
|
+
body: unknown;
|
|
249
|
+
params: {};
|
|
250
|
+
query: unknown;
|
|
251
|
+
headers: unknown;
|
|
252
|
+
response: {
|
|
253
|
+
200: Response | {
|
|
254
|
+
connectedClients: number;
|
|
255
|
+
isRebuilding: boolean;
|
|
256
|
+
manifestKeys: string[];
|
|
257
|
+
rebuildCount: number;
|
|
258
|
+
rebuildQueue: string[];
|
|
259
|
+
timestamp: number;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
}) & {}) & {}, {
|
|
265
|
+
derive: {};
|
|
266
|
+
resolve: {};
|
|
267
|
+
schema: {};
|
|
268
|
+
standaloneSchema: {};
|
|
269
|
+
response: {};
|
|
270
|
+
}, {
|
|
271
|
+
derive: {};
|
|
272
|
+
resolve: {};
|
|
273
|
+
schema: {};
|
|
274
|
+
standaloneSchema: {};
|
|
275
|
+
response: {};
|
|
276
|
+
} & {
|
|
277
|
+
derive: {};
|
|
278
|
+
resolve: {};
|
|
279
|
+
schema: {};
|
|
280
|
+
standaloneSchema: {};
|
|
281
|
+
response: {};
|
|
282
|
+
} & {
|
|
283
|
+
derive: {};
|
|
284
|
+
resolve: {};
|
|
285
|
+
schema: {};
|
|
286
|
+
standaloneSchema: {};
|
|
287
|
+
response: {};
|
|
288
|
+
} & {
|
|
289
|
+
derive: {};
|
|
290
|
+
resolve: {};
|
|
291
|
+
schema: {};
|
|
292
|
+
standaloneSchema: {};
|
|
293
|
+
response: {};
|
|
294
|
+
}>;
|
|
295
|
+
manifest: Record<string, string>;
|
|
296
|
+
} | {
|
|
297
|
+
absolutejs: Elysia<"", {
|
|
298
|
+
decorator: {};
|
|
299
|
+
store: {};
|
|
300
|
+
derive: {};
|
|
301
|
+
resolve: {};
|
|
302
|
+
}, {
|
|
303
|
+
typebox: {};
|
|
304
|
+
error: {};
|
|
305
|
+
} & {
|
|
306
|
+
typebox: {};
|
|
307
|
+
error: {};
|
|
308
|
+
}, {
|
|
309
|
+
schema: {};
|
|
310
|
+
standaloneSchema: {};
|
|
311
|
+
macro: {};
|
|
312
|
+
macroFn: {};
|
|
313
|
+
parser: {};
|
|
314
|
+
response: {};
|
|
315
|
+
} & {
|
|
316
|
+
schema: {};
|
|
317
|
+
standaloneSchema: {};
|
|
318
|
+
macro: {};
|
|
319
|
+
macroFn: {};
|
|
320
|
+
parser: {};
|
|
321
|
+
response: {};
|
|
322
|
+
} & {
|
|
323
|
+
schema: {};
|
|
324
|
+
standaloneSchema: {};
|
|
325
|
+
macro: {};
|
|
326
|
+
macroFn: {};
|
|
327
|
+
parser: {};
|
|
328
|
+
response: {
|
|
329
|
+
200: Response;
|
|
330
|
+
};
|
|
331
|
+
}, {
|
|
332
|
+
".absolutejs": {
|
|
333
|
+
"*": {
|
|
334
|
+
get: {
|
|
335
|
+
body: unknown;
|
|
336
|
+
params: {
|
|
337
|
+
"*": string;
|
|
338
|
+
} & {};
|
|
339
|
+
query: unknown;
|
|
340
|
+
headers: unknown;
|
|
341
|
+
response: {
|
|
342
|
+
200: Bun.BunFile | "Not Found";
|
|
343
|
+
422: {
|
|
344
|
+
type: "validation";
|
|
345
|
+
on: string;
|
|
346
|
+
summary?: string;
|
|
347
|
+
message?: string;
|
|
348
|
+
found?: unknown;
|
|
349
|
+
property?: string;
|
|
350
|
+
expected?: string;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
} | ({
|
|
357
|
+
[x: string]: {
|
|
358
|
+
get: {
|
|
359
|
+
body: unknown;
|
|
360
|
+
params: {};
|
|
361
|
+
query: unknown;
|
|
362
|
+
headers: unknown;
|
|
363
|
+
response: {};
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
} & {
|
|
367
|
+
".absolutejs": {
|
|
368
|
+
"*": {
|
|
369
|
+
get: {
|
|
370
|
+
body: unknown;
|
|
371
|
+
params: {
|
|
372
|
+
"*": string;
|
|
373
|
+
} & {};
|
|
374
|
+
query: unknown;
|
|
375
|
+
headers: unknown;
|
|
376
|
+
response: {
|
|
377
|
+
200: Bun.BunFile | "Not Found";
|
|
378
|
+
422: {
|
|
379
|
+
type: "validation";
|
|
380
|
+
on: string;
|
|
381
|
+
summary?: string;
|
|
382
|
+
message?: string;
|
|
383
|
+
found?: unknown;
|
|
384
|
+
property?: string;
|
|
385
|
+
expected?: string;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
}), {
|
|
392
|
+
derive: {};
|
|
393
|
+
resolve: {};
|
|
394
|
+
schema: {};
|
|
395
|
+
standaloneSchema: {};
|
|
396
|
+
response: {};
|
|
397
|
+
}, {
|
|
398
|
+
derive: {};
|
|
399
|
+
resolve: {};
|
|
400
|
+
schema: {};
|
|
401
|
+
standaloneSchema: {};
|
|
402
|
+
response: {};
|
|
403
|
+
} & {
|
|
404
|
+
derive: {};
|
|
405
|
+
resolve: {};
|
|
406
|
+
schema: {};
|
|
407
|
+
standaloneSchema: {};
|
|
408
|
+
response: {};
|
|
409
|
+
} & {
|
|
410
|
+
derive: {};
|
|
411
|
+
resolve: {};
|
|
412
|
+
schema: {};
|
|
413
|
+
standaloneSchema: {};
|
|
414
|
+
response: {};
|
|
415
|
+
}>;
|
|
416
|
+
manifest: Record<string, string>;
|
|
417
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { StaticConfig } from '../../types/build';
|
|
2
|
+
export type PrerenderResult = {
|
|
3
|
+
/** Map of route path → rendered HTML file path on disk */
|
|
4
|
+
routes: Map<string, string>;
|
|
5
|
+
/** Directory where pre-rendered files are stored */
|
|
6
|
+
dir: string;
|
|
7
|
+
};
|
|
8
|
+
type LogFn = (message: string) => void;
|
|
9
|
+
/** Header used to bypass the prerender cache during ISR re-renders */
|
|
10
|
+
export declare const PRERENDER_BYPASS_HEADER = "X-Absolute-Prerender-Bypass";
|
|
11
|
+
/** Convert a URL path to a filename: "/" → "index.html", "/vue" → "vue.html" */
|
|
12
|
+
export declare const routeToFilename: (route: string) => string;
|
|
13
|
+
/** Read the render timestamp for a pre-rendered page. Returns 0 if not found. */
|
|
14
|
+
export declare const readTimestamp: (htmlPath: string) => number;
|
|
15
|
+
/**
|
|
16
|
+
* Re-render a single route by fetching it from the running server
|
|
17
|
+
* with the bypass header so it hits SSR instead of the cache.
|
|
18
|
+
*/
|
|
19
|
+
export declare const rerenderRoute: (route: string, port: number, prerenderDir: string) => Promise<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Pre-render routes by fetching them from a running server and saving the HTML to disk.
|
|
22
|
+
*
|
|
23
|
+
* Used by both `absolute start` (SSG) and `absolute compile`.
|
|
24
|
+
*/
|
|
25
|
+
export declare const prerender: (port: number, outDir: string, staticConfig: StaticConfig, log?: LogFn) => Promise<PrerenderResult>;
|
|
26
|
+
/**
|
|
27
|
+
* Start the bundled production server, wait for it to be ready, pre-render,
|
|
28
|
+
* then kill it.
|
|
29
|
+
*/
|
|
30
|
+
export declare const prerenderWithServer: (serverBundlePath: string, port: number, outDir: string, staticConfig: StaticConfig, env: Record<string, string>, log?: LogFn) => Promise<PrerenderResult>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IslandRegistry, IslandRegistryInput, RuntimeIslandRenderProps } from '../../types/island';
|
|
2
|
+
export declare const renderIslandMarkup: <T extends IslandRegistryInput>(registry: IslandRegistry<T> | T, props: RuntimeIslandRenderProps) => Promise<string>;
|
|
3
|
+
export declare const renderIslandResult: <T extends IslandRegistryInput>(registry: IslandRegistry<T> | T, props: RuntimeIslandRenderProps) => Promise<{
|
|
4
|
+
attributes: {
|
|
5
|
+
'data-component': string;
|
|
6
|
+
'data-framework': string;
|
|
7
|
+
'data-hydrate': string;
|
|
8
|
+
'data-island': "true";
|
|
9
|
+
'data-island-id'?: string;
|
|
10
|
+
'data-props': string;
|
|
11
|
+
};
|
|
12
|
+
html: string;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type AppendStreamingSlotsOptions, type StreamingSlotPolicy, type StreamingSlot } from '../utils/streamingSlots';
|
|
2
|
+
type ResponseLike = Response | Promise<Response>;
|
|
3
|
+
export type StreamingSlotEnhancerOptions = Omit<AppendStreamingSlotsOptions, 'injectRuntime'> & {
|
|
4
|
+
streamingSlots?: StreamingSlot[];
|
|
5
|
+
policy?: StreamingSlotPolicy;
|
|
6
|
+
};
|
|
7
|
+
export declare const enhanceHtmlResponseWithStreamingSlots: (response: Response, { nonce, onError, runtimePlacement, runtimePreludeScript, streamingSlots, policy }?: StreamingSlotEnhancerOptions) => Response;
|
|
8
|
+
export declare const withStreamingSlots: (responseLike: ResponseLike, options?: StreamingSlotEnhancerOptions) => Promise<Response>;
|
|
9
|
+
export declare const withRegisteredStreamingSlots: (renderResponse: () => ResponseLike, options?: StreamingSlotEnhancerOptions) => Promise<Response>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { StreamingSlotPatchPayload } from '../utils/streamingSlots';
|
|
2
|
+
export type StaticStreamingSlotResolver = () => Promise<StreamingSlotPatchPayload> | StreamingSlotPatchPayload;
|
|
3
|
+
export type StaticStreamingSlotDefinition = {
|
|
4
|
+
resolve: StaticStreamingSlotResolver;
|
|
5
|
+
timeoutMs?: number;
|
|
6
|
+
errorHtml?: string;
|
|
7
|
+
};
|
|
8
|
+
export type StaticStreamingSlotDefinitions = Record<string, StaticStreamingSlotResolver | StaticStreamingSlotDefinition>;
|
|
9
|
+
export declare const defineStaticStreamingSlots: <const T extends StaticStreamingSlotDefinitions>(slots: T) => T;
|
|
10
|
+
type StaticStreamingTagDefinition = {
|
|
11
|
+
errorHtml?: string;
|
|
12
|
+
fallbackHtml: string;
|
|
13
|
+
id: string;
|
|
14
|
+
resolver: string;
|
|
15
|
+
timeoutMs?: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const extractStaticStreamingTags: (html: string) => StaticStreamingTagDefinition[];
|
|
18
|
+
export declare const loadStaticStreamingSlots: (pagePath: string, html: string) => Promise<{
|
|
19
|
+
errorHtml: string | undefined;
|
|
20
|
+
fallbackHtml: string;
|
|
21
|
+
id: string;
|
|
22
|
+
resolve: StaticStreamingSlotResolver;
|
|
23
|
+
timeoutMs: number | undefined;
|
|
24
|
+
}[]>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StreamingSlot } from '../utils/streamingSlots';
|
|
2
|
+
type StreamingSlotRegistrar = (slot: StreamingSlot) => void;
|
|
3
|
+
type StreamingSlotWarningController = {
|
|
4
|
+
maybeWarn(primitiveName: string): void;
|
|
5
|
+
};
|
|
6
|
+
type StreamingSlotCollectionController = {
|
|
7
|
+
isCollecting(): boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const hasRegisteredStreamingSlotRegistrar: () => boolean;
|
|
10
|
+
export declare const isStreamingSlotCollectionActive: () => boolean;
|
|
11
|
+
export declare const registerStreamingSlot: (slot: StreamingSlot) => void;
|
|
12
|
+
export declare const setStreamingSlotCollectionController: (controller: StreamingSlotCollectionController | null) => void;
|
|
13
|
+
export declare const setStreamingSlotRegistrar: (nextRegistrar: StreamingSlotRegistrar | null) => void;
|
|
14
|
+
export declare const setStreamingSlotWarningController: (controller: StreamingSlotWarningController | null) => void;
|
|
15
|
+
export declare const warnMissingStreamingSlotCollector: (primitiveName: string) => void;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const compileSvelteServerModule: (sourcePath: string) => Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const compileVueServerModule: (sourcePath: string) => Promise<string>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { withRegisteredStreamingSlots } from './responseEnhancers';
|
|
2
|
+
export declare const wrapPageHandlerWithStreamingSlots: <T extends (...args: unknown[]) => Response | Promise<Response>>(handler: T, options?: Parameters<typeof withRegisteredStreamingSlots>[1]) => (...args: Parameters<T>) => Promise<Response>;
|