@absolutejs/absolute 0.19.0-beta.1083 → 0.19.0-beta.1084
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 +18 -18
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/components/defer-slot-templates.directive.js +2 -2
- package/dist/angular/components/defer-slot.component.js +3 -3
- package/dist/angular/components/image.component.js +3 -3
- package/dist/angular/components/stream-slot.component.js +3 -3
- package/dist/angular/index.js +43 -43
- package/dist/angular/server.js +31 -31
- package/dist/build.js +42 -42
- package/dist/cli/config/server.js +11 -11
- package/dist/client/index.js +13 -13
- package/dist/index.js +62 -62
- package/dist/islands/index.js +14 -14
- package/dist/react/browser.js +3 -3
- package/dist/react/components/browser/index.js +5 -5
- package/dist/react/components/index.js +7 -7
- package/dist/react/hooks/index.js +2 -2
- package/dist/react/index.js +30 -30
- package/dist/react/jsxDevRuntimeCompat.js +1 -1
- package/dist/react/router/browser.js +2 -2
- package/dist/react/router/index.js +2 -2
- package/dist/react/server.js +13 -13
- package/dist/svelte/index.js +26 -26
- package/dist/svelte/router/page.js +1 -1
- package/dist/svelte/server.js +13 -13
- package/dist/vue/browser.js +3 -3
- package/dist/vue/components/Image.js +1 -1
- package/dist/vue/components/index.js +5 -5
- package/dist/vue/index.js +36 -36
- package/dist/vue/server.js +13 -13
- package/package.json +1 -1
- package/dist/.absolutejs/generated/angular/indexes/angular-example.1g23yr9r.js +0 -167
- package/dist/.absolutejs/generated/react/indexes/ReactExample.e6kzvjqy.js +0 -3
- package/dist/.absolutejs/generated/svelte/client/pages/SvelteExample.5pq2wmw6.js +0 -1
- package/dist/.absolutejs/generated/svelte/indexes/pages/SvelteExample.9zcw5vtg.js +0 -1
- package/dist/.absolutejs/generated/vue/client/pages/VueExample.q47m56s4.js +0 -1
- package/dist/.absolutejs/generated/vue/indexes/VueExample.6bqszcxv.js +0 -1
- package/dist/_prerendered/angular.html +0 -45
- package/dist/_prerendered/angular.meta +0 -1
- package/dist/_prerendered/html.html +0 -70
- package/dist/_prerendered/html.meta +0 -1
- package/dist/_prerendered/htmx.html +0 -239
- package/dist/_prerendered/htmx.meta +0 -1
- package/dist/_prerendered/index.html +0 -70
- package/dist/_prerendered/index.meta +0 -1
- package/dist/_prerendered/react.html +0 -1
- package/dist/_prerendered/react.meta +0 -1
- package/dist/_prerendered/vue.html +0 -41
- package/dist/_prerendered/vue.meta +0 -1
- package/dist/angular/example/angular/pages/angular-example.djr1v9hj.js +0 -373
- package/dist/angular/vendor/angular_common.js +0 -310
- package/dist/angular/vendor/angular_common_http.js +0 -129
- package/dist/angular/vendor/angular_core.js +0 -1177
- package/dist/angular/vendor/angular_core_primitives_di.js +0 -36
- package/dist/angular/vendor/angular_core_primitives_signals.js +0 -132
- package/dist/angular/vendor/angular_platform-browser.js +0 -117
- package/dist/angular/vendor/angular_router.js +0 -6410
- package/dist/angular/vendor/chunk-2c9evnn0.js +0 -4764
- package/dist/angular/vendor/chunk-3evcs0sk.js +0 -2567
- package/dist/angular/vendor/chunk-5h3qyvpj.js +0 -729
- package/dist/angular/vendor/chunk-hgg0w52m.js +0 -62
- package/dist/angular/vendor/chunk-n6rt7w2y.js +0 -23
- package/dist/angular/vendor/chunk-t4tc7c8b.js +0 -28013
- package/dist/angular/vendor/chunk-vqd7j0kb.js +0 -1786
- package/dist/angular/vendor/chunk-yqjkhk8j.js +0 -145
- package/dist/angular/vendor/server/angular_common.js +0 -311
- package/dist/angular/vendor/server/angular_common_http.js +0 -130
- package/dist/angular/vendor/server/angular_core.js +0 -1178
- package/dist/angular/vendor/server/angular_core_primitives_di.js +0 -37
- package/dist/angular/vendor/server/angular_core_primitives_signals.js +0 -133
- package/dist/angular/vendor/server/angular_platform-browser.js +0 -118
- package/dist/angular/vendor/server/angular_platform-server.js +0 -59
- package/dist/angular/vendor/server/angular_router.js +0 -261
- package/dist/angular/vendor/server/angular_ssr.js +0 -11669
- package/dist/angular/vendor/server/chunk-2akxms5e.js +0 -2566
- package/dist/angular/vendor/server/chunk-659a9c3p.js +0 -6218
- package/dist/angular/vendor/server/chunk-8eecnjd1.js +0 -16686
- package/dist/angular/vendor/server/chunk-9jz2apvp.js +0 -743
- package/dist/angular/vendor/server/chunk-dhs2bg35.js +0 -48
- package/dist/angular/vendor/server/chunk-hs2gc8sr.js +0 -1787
- package/dist/angular/vendor/server/chunk-k46n34mb.js +0 -63
- package/dist/angular/vendor/server/chunk-p2fdvyh1.js +0 -4767
- package/dist/angular/vendor/server/chunk-r0w9r4bg.js +0 -730
- package/dist/angular/vendor/server/chunk-vthxj7kd.js +0 -146
- package/dist/angular/vendor/server/chunk-xahr7f2f.js +0 -35534
- package/dist/assets/css/tailwind.generated.css +0 -218
- package/dist/assets/css/vue-example-compiled.abzaxheq.css +0 -32
- package/dist/assets/ico/favicon.ico +0 -0
- package/dist/assets/png/absolutejs-temp.png +0 -0
- package/dist/assets/svg/HTML5_Badge.svg +0 -7
- package/dist/assets/svg/angular.svg +0 -18
- package/dist/assets/svg/htmx-logo-black.svg +0 -9
- package/dist/assets/svg/htmx-logo-white.svg +0 -9
- package/dist/assets/svg/react.svg +0 -1
- package/dist/assets/svg/svelte-logo.svg +0 -1
- package/dist/assets/svg/vue-logo.svg +0 -4
- package/dist/chunk-7pp6gkg8.js +0 -2
- package/dist/chunk-ek2qyx2c.js +0 -11
- package/dist/chunk-ysr5ycdt.js +0 -2
- package/dist/client.tsx +0 -15
- package/dist/example/html/scripts/typescript-example.fqn9zkdh.js +0 -1
- package/dist/html/pages/HTMLExample.html +0 -70
- package/dist/htmx/htmx.min.js +0 -1
- package/dist/htmx/pages/HTMXExample.html +0 -239
- package/dist/htmx.min.js +0 -1
- package/dist/indexes/angular-example.xsx88ph0.css +0 -227
- package/dist/indexes/html-example.s3banzdc.css +0 -221
- package/dist/indexes/htmx-example.5vgssc3f.css +0 -221
- package/dist/indexes/react-example.bz1k8xa2.css +0 -245
- package/dist/indexes/svelte-example.vy3015es.css +0 -221
- package/dist/indexes/vue-example.q4vf2wtq.css +0 -228
- package/dist/manifest.json +0 -26
- package/dist/nested/dynamic-module.txt +0 -1
- package/dist/package-asset.txt +0 -1
- package/dist/react/vendor/chunk-2kh60w9b.js +0 -33
- package/dist/react/vendor/chunk-9g12fvrw.js +0 -236
- package/dist/react/vendor/chunk-rejbymp5.js +0 -837
- package/dist/react/vendor/chunk-wwy122hz.js +0 -200
- package/dist/react/vendor/react-dom.js +0 -44
- package/dist/react/vendor/react-dom_client.js +0 -15864
- package/dist/react/vendor/react-refresh_runtime.js +0 -304
- package/dist/react/vendor/react.js +0 -103
- package/dist/react/vendor/react_jsx-dev-runtime.js +0 -17
- package/dist/react/vendor/react_jsx-runtime.js +0 -22
- package/dist/robots.txt +0 -2
- package/dist/runtime/blob.txt +0 -1
- package/dist/runtime/dir-join.txt +0 -1
- package/dist/runtime/nested/binary.bin +0 -1
- package/dist/runtime/nested/readfile.txt +0 -1
- package/dist/runtime/template.html +0 -1
- package/dist/server.js +0 -92156
- package/dist/sitemap.xml +0 -48
- package/dist/svelte/server/pages/SvelteExample.fxs20w1b.js +0 -290
- package/dist/svelte/vendor/chunk-5qdxn1p3.js +0 -4586
- package/dist/svelte/vendor/chunk-8qdfbbez.js +0 -12
- package/dist/svelte/vendor/chunk-r2jyyfjt.js +0 -4495
- package/dist/svelte/vendor/svelte.js +0 -49
- package/dist/svelte/vendor/svelte_internal.js +0 -2
- package/dist/svelte/vendor/svelte_internal_client.js +0 -395
- package/dist/svelte/vendor/svelte_internal_disclose-version.js +0 -7
- package/dist/svelte/vendor/svelte_internal_flags_async.js +0 -6
- package/dist/svelte/vendor/svelte_internal_flags_legacy.js +0 -6
- package/dist/svelte/vendor/svelte_store.js +0 -99
- package/dist/vue/server/pages/VueExample.fyhmna2p.css +0 -32
- package/dist/vue/server/pages/VueExample.fyhmna2p.js +0 -75
- package/dist/vue/vendor/vue.js +0 -11011
package/dist/svelte/server.js
CHANGED
|
@@ -991,7 +991,7 @@ var serverCacheRoot, compiledModuleCache, originalSourcePathCache, transpiler, e
|
|
|
991
991
|
}
|
|
992
992
|
const resolutionSourcePath = await resolveOriginalSourcePath(sourcePath);
|
|
993
993
|
const source = await Bun.file(sourcePath).text();
|
|
994
|
-
const { compile, preprocess } = await import("
|
|
994
|
+
const { compile, preprocess } = await import("svelte/compiler");
|
|
995
995
|
const loweredAwaitSource = lowerSvelteAwaitSlotSyntax(source);
|
|
996
996
|
const loweredSource = lowerSvelteIslandSyntax(loweredAwaitSource.code, "server");
|
|
997
997
|
const preprocessed = await preprocess(loweredSource.code, createSvelteStylePreprocessor());
|
|
@@ -1072,7 +1072,7 @@ __export(exports_devRouteRegistrationCallsite, {
|
|
|
1072
1072
|
getCurrentRouteRegistrationCallsite: () => getCurrentRouteRegistrationCallsite
|
|
1073
1073
|
});
|
|
1074
1074
|
import { AsyncLocalStorage } from "async_hooks";
|
|
1075
|
-
import { Elysia } from "
|
|
1075
|
+
import { Elysia } from "elysia";
|
|
1076
1076
|
var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES, PAGE_HANDLER_NAMES, pageHandlerWrappers, handlerSourceMentionsPageHelper = (handler) => {
|
|
1077
1077
|
const source = handler.toString();
|
|
1078
1078
|
return PAGE_HANDLER_NAMES.some((name) => source.includes(name));
|
|
@@ -2112,7 +2112,7 @@ var SVELTE_PAGE_ROOT_ID = "__absolute_svelte_root__", renderToReadableStream = a
|
|
|
2112
2112
|
bodyContent
|
|
2113
2113
|
} = {}) => {
|
|
2114
2114
|
try {
|
|
2115
|
-
const { render } = await import("
|
|
2115
|
+
const { render } = await import("svelte/server");
|
|
2116
2116
|
const renderComponent = render;
|
|
2117
2117
|
const rendered = typeof props === "undefined" ? await renderComponent(component) : await renderComponent(component, { props });
|
|
2118
2118
|
const { head, body } = rendered;
|
|
@@ -2678,8 +2678,8 @@ var buildErrorProps = (error) => {
|
|
|
2678
2678
|
return { message: String(error), name: "Error" };
|
|
2679
2679
|
};
|
|
2680
2680
|
var renderReactError = async (conventionPath, errorProps) => {
|
|
2681
|
-
const { createElement } = await import("
|
|
2682
|
-
const { renderToReadableStream } = await import("
|
|
2681
|
+
const { createElement } = await import("react");
|
|
2682
|
+
const { renderToReadableStream } = await import("react-dom/server");
|
|
2683
2683
|
const mod = await import(conventionPath);
|
|
2684
2684
|
const ErrorComponent = mod.default;
|
|
2685
2685
|
if (typeof ErrorComponent !== "function")
|
|
@@ -2692,7 +2692,7 @@ var renderReactError = async (conventionPath, errorProps) => {
|
|
|
2692
2692
|
});
|
|
2693
2693
|
};
|
|
2694
2694
|
var renderSvelteError = async (conventionPath, errorProps) => {
|
|
2695
|
-
const { render } = await import("
|
|
2695
|
+
const { render } = await import("svelte/server");
|
|
2696
2696
|
const mod = await import(conventionPath);
|
|
2697
2697
|
const ErrorComponent = mod.default;
|
|
2698
2698
|
if (!ErrorComponent)
|
|
@@ -2715,8 +2715,8 @@ var unescapeVueStyles = (ssrBody) => {
|
|
|
2715
2715
|
return { body, styles };
|
|
2716
2716
|
};
|
|
2717
2717
|
var renderVueError = async (conventionPath, errorProps) => {
|
|
2718
|
-
const { createSSRApp, h } = await import("
|
|
2719
|
-
const { renderToString } = await import("
|
|
2718
|
+
const { createSSRApp, h } = await import("vue");
|
|
2719
|
+
const { renderToString } = await import("vue/server-renderer");
|
|
2720
2720
|
const mod = await import(conventionPath);
|
|
2721
2721
|
const ErrorComponent = mod.default;
|
|
2722
2722
|
if (!ErrorComponent)
|
|
@@ -2808,8 +2808,8 @@ var renderConventionError = async (framework, pageName, error) => {
|
|
|
2808
2808
|
return null;
|
|
2809
2809
|
};
|
|
2810
2810
|
var renderReactNotFound = async (conventionPath) => {
|
|
2811
|
-
const { createElement } = await import("
|
|
2812
|
-
const { renderToReadableStream } = await import("
|
|
2811
|
+
const { createElement } = await import("react");
|
|
2812
|
+
const { renderToReadableStream } = await import("react-dom/server");
|
|
2813
2813
|
const mod = await import(conventionPath);
|
|
2814
2814
|
const NotFoundComponent = mod.default;
|
|
2815
2815
|
if (typeof NotFoundComponent !== "function")
|
|
@@ -2822,7 +2822,7 @@ var renderReactNotFound = async (conventionPath) => {
|
|
|
2822
2822
|
});
|
|
2823
2823
|
};
|
|
2824
2824
|
var renderSvelteNotFound = async (conventionPath) => {
|
|
2825
|
-
const { render } = await import("
|
|
2825
|
+
const { render } = await import("svelte/server");
|
|
2826
2826
|
const mod = await import(conventionPath);
|
|
2827
2827
|
const NotFoundComponent = mod.default;
|
|
2828
2828
|
if (!NotFoundComponent)
|
|
@@ -2835,8 +2835,8 @@ var renderSvelteNotFound = async (conventionPath) => {
|
|
|
2835
2835
|
});
|
|
2836
2836
|
};
|
|
2837
2837
|
var renderVueNotFound = async (conventionPath) => {
|
|
2838
|
-
const { createSSRApp, h } = await import("
|
|
2839
|
-
const { renderToString } = await import("
|
|
2838
|
+
const { createSSRApp, h } = await import("vue");
|
|
2839
|
+
const { renderToString } = await import("vue/server-renderer");
|
|
2840
2840
|
const mod = await import(conventionPath);
|
|
2841
2841
|
const NotFoundComponent = mod.default;
|
|
2842
2842
|
if (!NotFoundComponent)
|
package/dist/vue/browser.js
CHANGED
|
@@ -143,7 +143,7 @@ var init_islandMarkupAttributes = __esm(() => {
|
|
|
143
143
|
});
|
|
144
144
|
|
|
145
145
|
// src/vue/Island.browser.ts
|
|
146
|
-
import { defineComponent, h } from "
|
|
146
|
+
import { defineComponent, h } from "vue";
|
|
147
147
|
|
|
148
148
|
// src/client/preserveIslandMarkup.ts
|
|
149
149
|
init_islandMarkupAttributes();
|
|
@@ -310,7 +310,7 @@ var Island = defineComponent({
|
|
|
310
310
|
}
|
|
311
311
|
});
|
|
312
312
|
// src/vue/createIsland.browser.ts
|
|
313
|
-
import { defineComponent as defineComponent2, h as h2 } from "
|
|
313
|
+
import { defineComponent as defineComponent2, h as h2 } from "vue";
|
|
314
314
|
var defineRuntimeIslandComponent = (setup) => defineComponent2({
|
|
315
315
|
name: "AbsoluteIsland",
|
|
316
316
|
props: {
|
|
@@ -342,7 +342,7 @@ var createTypedIsland = (_registry) => defineRuntimeIslandComponent((props) => {
|
|
|
342
342
|
});
|
|
343
343
|
});
|
|
344
344
|
// src/vue/useIslandStore.ts
|
|
345
|
-
import { customRef, onBeforeUnmount } from "
|
|
345
|
+
import { customRef, onBeforeUnmount } from "vue";
|
|
346
346
|
|
|
347
347
|
// node_modules/zustand/esm/vanilla.mjs
|
|
348
348
|
var createStoreImpl = (createState) => {
|
|
@@ -99,7 +99,7 @@ var init_constants = __esm(() => {
|
|
|
99
99
|
});
|
|
100
100
|
|
|
101
101
|
// src/vue/components/Image.ts
|
|
102
|
-
import { computed, defineComponent, h, ref } from "
|
|
102
|
+
import { computed, defineComponent, h, ref } from "vue";
|
|
103
103
|
|
|
104
104
|
// src/utils/imageClient.ts
|
|
105
105
|
init_constants();
|
|
@@ -146,7 +146,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
// src/vue/components/Image.ts
|
|
149
|
-
import { computed, defineComponent, h, ref } from "
|
|
149
|
+
import { computed, defineComponent, h, ref } from "vue";
|
|
150
150
|
|
|
151
151
|
// src/utils/imageClient.ts
|
|
152
152
|
init_constants();
|
|
@@ -314,10 +314,10 @@ import {
|
|
|
314
314
|
onBeforeUnmount,
|
|
315
315
|
ref as ref2,
|
|
316
316
|
useSSRContext
|
|
317
|
-
} from "
|
|
317
|
+
} from "vue";
|
|
318
318
|
var renderVueNodesToHtml = async (nodes) => {
|
|
319
|
-
const { createSSRApp, h: createVNode } = await import("
|
|
320
|
-
const { renderToString } = await import("
|
|
319
|
+
const { createSSRApp, h: createVNode } = await import("vue");
|
|
320
|
+
const { renderToString } = await import("vue/server-renderer");
|
|
321
321
|
const app = createSSRApp({
|
|
322
322
|
render: () => createVNode("div", undefined, nodes ?? undefined)
|
|
323
323
|
});
|
|
@@ -523,7 +523,7 @@ var SuspenseSlot = defineComponent2({
|
|
|
523
523
|
}
|
|
524
524
|
});
|
|
525
525
|
// src/vue/components/StreamSlot.ts
|
|
526
|
-
import { defineComponent as defineComponent3, h as h3, useSSRContext as useSSRContext2 } from "
|
|
526
|
+
import { defineComponent as defineComponent3, h as h3, useSSRContext as useSSRContext2 } from "vue";
|
|
527
527
|
var StreamSlot = defineComponent3({
|
|
528
528
|
name: "AbsoluteStreamSlot",
|
|
529
529
|
props: {
|
package/dist/vue/index.js
CHANGED
|
@@ -107,7 +107,7 @@ __export(exports_devRouteRegistrationCallsite, {
|
|
|
107
107
|
getCurrentRouteRegistrationCallsite: () => getCurrentRouteRegistrationCallsite
|
|
108
108
|
});
|
|
109
109
|
import { AsyncLocalStorage } from "async_hooks";
|
|
110
|
-
import { Elysia } from "
|
|
110
|
+
import { Elysia } from "elysia";
|
|
111
111
|
var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES, PAGE_HANDLER_NAMES, pageHandlerWrappers, handlerSourceMentionsPageHelper = (handler) => {
|
|
112
112
|
const source = handler.toString();
|
|
113
113
|
return PAGE_HANDLER_NAMES.some((name) => source.includes(name));
|
|
@@ -1531,16 +1531,16 @@ var initDominoAdapter = (platformServer) => {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
}, loadAngularDeps = async () => {
|
|
1533
1533
|
if (!isProductionRuntime()) {
|
|
1534
|
-
await import("
|
|
1534
|
+
await import("@angular/compiler");
|
|
1535
1535
|
}
|
|
1536
1536
|
const { applyPatches: applyPatches2 } = await Promise.resolve().then(() => (init_angularPatch(), exports_angularPatch));
|
|
1537
1537
|
await applyPatches2();
|
|
1538
1538
|
const useBareSpecifiers = !isProductionRuntime();
|
|
1539
1539
|
const [platformBrowser, platformServer, common, core] = await Promise.all([
|
|
1540
|
-
useBareSpecifiers ? import("
|
|
1541
|
-
useBareSpecifiers ? import("
|
|
1542
|
-
useBareSpecifiers ? import("
|
|
1543
|
-
useBareSpecifiers ? import("
|
|
1540
|
+
useBareSpecifiers ? import("@angular/platform-browser") : import(resolveAngularRuntimePath("@angular/platform-browser")),
|
|
1541
|
+
useBareSpecifiers ? import("@angular/platform-server") : import(resolveAngularRuntimePath("@angular/platform-server")),
|
|
1542
|
+
useBareSpecifiers ? import("@angular/common") : import(resolveAngularRuntimePath("@angular/common")),
|
|
1543
|
+
useBareSpecifiers ? import("@angular/core") : import(resolveAngularRuntimePath("@angular/core"))
|
|
1544
1544
|
]);
|
|
1545
1545
|
if (!isDevelopmentRuntime()) {
|
|
1546
1546
|
core.enableProdMode();
|
|
@@ -1779,8 +1779,8 @@ var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_i
|
|
|
1779
1779
|
const [selector] = firstSelectorGroup;
|
|
1780
1780
|
return typeof selector === "string" && selector.length > 0 ? selector : null;
|
|
1781
1781
|
}, createAngularIslandApp = async () => {
|
|
1782
|
-
const { EnvironmentInjector, provideZonelessChangeDetection } = await import("
|
|
1783
|
-
const { createApplication } = await import("
|
|
1782
|
+
const { EnvironmentInjector, provideZonelessChangeDetection } = await import("@angular/core");
|
|
1783
|
+
const { createApplication } = await import("@angular/platform-browser");
|
|
1784
1784
|
const app = await createApplication({
|
|
1785
1785
|
providers: [provideZonelessChangeDetection()]
|
|
1786
1786
|
});
|
|
@@ -1852,8 +1852,8 @@ var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_i
|
|
|
1852
1852
|
}
|
|
1853
1853
|
return html.slice(start, end + endTag.length);
|
|
1854
1854
|
}, mountAngularIsland = async (component, element, props, islandId) => {
|
|
1855
|
-
await import("
|
|
1856
|
-
const { createComponent, inputBinding } = await import("
|
|
1855
|
+
await import("@angular/compiler");
|
|
1856
|
+
const { createComponent, inputBinding } = await import("@angular/core");
|
|
1857
1857
|
const selector = getAngularIslandSelector(islandId);
|
|
1858
1858
|
const { app, environmentInjector } = await getAngularIslandApp();
|
|
1859
1859
|
let rootElement = element.querySelector(selector);
|
|
@@ -1925,14 +1925,14 @@ var renderAngularIslandToHtmlInternal = async (component, props, islandId) => {
|
|
|
1925
1925
|
match = LEADING_HOISTED_RESOURCE_RE.exec(result);
|
|
1926
1926
|
}
|
|
1927
1927
|
return result.trimStart();
|
|
1928
|
-
}, renderReactIslandToHtml = (component, props) => import("
|
|
1928
|
+
}, renderReactIslandToHtml = (component, props) => import("react").then(({ createElement }) => import("react-dom/server").then(({ renderToString }) => stripLeadingHoistedResources(renderToString(createElement(component, props))))), renderSvelteIslandToHtml = (component, props) => import("svelte/server").then(({ render }) => {
|
|
1929
1929
|
const { body } = render(component, { props });
|
|
1930
1930
|
return body;
|
|
1931
|
-
}), renderVueIslandToHtml = (component, props) => import("
|
|
1931
|
+
}), renderVueIslandToHtml = (component, props) => import("vue").then(({ createSSRApp, h: createVueVNode }) => {
|
|
1932
1932
|
const app = createSSRApp({
|
|
1933
1933
|
render: () => createVueVNode(component, props)
|
|
1934
1934
|
});
|
|
1935
|
-
return import("
|
|
1935
|
+
return import("vue/server-renderer").then(({ renderToString }) => renderToString(app));
|
|
1936
1936
|
});
|
|
1937
1937
|
var init_islandSsr = __esm(() => {
|
|
1938
1938
|
renderAngularIslandToHtml2 = renderAngularIslandToHtmlInternal;
|
|
@@ -3368,7 +3368,7 @@ var serverCacheRoot2, compiledModuleCache2, originalSourcePathCache, transpiler,
|
|
|
3368
3368
|
}
|
|
3369
3369
|
const resolutionSourcePath = await resolveOriginalSourcePath(sourcePath);
|
|
3370
3370
|
const source = await Bun.file(sourcePath).text();
|
|
3371
|
-
const { compile, preprocess } = await import("
|
|
3371
|
+
const { compile, preprocess } = await import("svelte/compiler");
|
|
3372
3372
|
const loweredAwaitSource = lowerSvelteAwaitSlotSyntax(source);
|
|
3373
3373
|
const loweredSource = lowerSvelteIslandSyntax(loweredAwaitSource.code, "server");
|
|
3374
3374
|
const preprocessed = await preprocess(loweredSource.code, createSvelteStylePreprocessor());
|
|
@@ -3481,7 +3481,7 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
|
|
|
3481
3481
|
const cachedModulePath = compiledModuleCache3.get(sourcePath);
|
|
3482
3482
|
if (cachedModulePath)
|
|
3483
3483
|
return cachedModulePath;
|
|
3484
|
-
const compiler = await import("
|
|
3484
|
+
const compiler = await import("@vue/compiler-sfc");
|
|
3485
3485
|
const source = await Bun.file(sourcePath).text();
|
|
3486
3486
|
const { descriptor } = compiler.parse(source, { filename: sourcePath });
|
|
3487
3487
|
const componentId = Bun.hash(sourcePath).toString(BASE_36_RADIX).slice(0, ISLAND_COMPONENT_ID_LENGTH);
|
|
@@ -3802,7 +3802,7 @@ var runWithStreamingSlotRegistry = async (task) => {
|
|
|
3802
3802
|
};
|
|
3803
3803
|
|
|
3804
3804
|
// src/vue/components/Image.ts
|
|
3805
|
-
import { computed, defineComponent, h, ref } from "
|
|
3805
|
+
import { computed, defineComponent, h, ref } from "vue";
|
|
3806
3806
|
|
|
3807
3807
|
// src/utils/imageClient.ts
|
|
3808
3808
|
init_constants();
|
|
@@ -3970,10 +3970,10 @@ import {
|
|
|
3970
3970
|
onBeforeUnmount,
|
|
3971
3971
|
ref as ref2,
|
|
3972
3972
|
useSSRContext
|
|
3973
|
-
} from "
|
|
3973
|
+
} from "vue";
|
|
3974
3974
|
var renderVueNodesToHtml = async (nodes) => {
|
|
3975
|
-
const { createSSRApp, h: createVNode } = await import("
|
|
3976
|
-
const { renderToString } = await import("
|
|
3975
|
+
const { createSSRApp, h: createVNode } = await import("vue");
|
|
3976
|
+
const { renderToString } = await import("vue/server-renderer");
|
|
3977
3977
|
const app = createSSRApp({
|
|
3978
3978
|
render: () => createVNode("div", undefined, nodes ?? undefined)
|
|
3979
3979
|
});
|
|
@@ -4179,7 +4179,7 @@ var SuspenseSlot = defineComponent2({
|
|
|
4179
4179
|
}
|
|
4180
4180
|
});
|
|
4181
4181
|
// src/vue/components/StreamSlot.ts
|
|
4182
|
-
import { defineComponent as defineComponent3, h as h3, useSSRContext as useSSRContext2 } from "
|
|
4182
|
+
import { defineComponent as defineComponent3, h as h3, useSSRContext as useSSRContext2 } from "vue";
|
|
4183
4183
|
var StreamSlot = defineComponent3({
|
|
4184
4184
|
name: "AbsoluteStreamSlot",
|
|
4185
4185
|
props: {
|
|
@@ -4724,8 +4724,8 @@ var buildErrorProps = (error) => {
|
|
|
4724
4724
|
return { message: String(error), name: "Error" };
|
|
4725
4725
|
};
|
|
4726
4726
|
var renderReactError = async (conventionPath, errorProps) => {
|
|
4727
|
-
const { createElement } = await import("
|
|
4728
|
-
const { renderToReadableStream } = await import("
|
|
4727
|
+
const { createElement } = await import("react");
|
|
4728
|
+
const { renderToReadableStream } = await import("react-dom/server");
|
|
4729
4729
|
const mod = await import(conventionPath);
|
|
4730
4730
|
const ErrorComponent = mod.default;
|
|
4731
4731
|
if (typeof ErrorComponent !== "function")
|
|
@@ -4738,7 +4738,7 @@ var renderReactError = async (conventionPath, errorProps) => {
|
|
|
4738
4738
|
});
|
|
4739
4739
|
};
|
|
4740
4740
|
var renderSvelteError = async (conventionPath, errorProps) => {
|
|
4741
|
-
const { render } = await import("
|
|
4741
|
+
const { render } = await import("svelte/server");
|
|
4742
4742
|
const mod = await import(conventionPath);
|
|
4743
4743
|
const ErrorComponent = mod.default;
|
|
4744
4744
|
if (!ErrorComponent)
|
|
@@ -4761,8 +4761,8 @@ var unescapeVueStyles = (ssrBody) => {
|
|
|
4761
4761
|
return { body, styles };
|
|
4762
4762
|
};
|
|
4763
4763
|
var renderVueError = async (conventionPath, errorProps) => {
|
|
4764
|
-
const { createSSRApp, h: h4 } = await import("
|
|
4765
|
-
const { renderToString } = await import("
|
|
4764
|
+
const { createSSRApp, h: h4 } = await import("vue");
|
|
4765
|
+
const { renderToString } = await import("vue/server-renderer");
|
|
4766
4766
|
const mod = await import(conventionPath);
|
|
4767
4767
|
const ErrorComponent = mod.default;
|
|
4768
4768
|
if (!ErrorComponent)
|
|
@@ -4854,8 +4854,8 @@ var renderConventionError = async (framework, pageName, error) => {
|
|
|
4854
4854
|
return null;
|
|
4855
4855
|
};
|
|
4856
4856
|
var renderReactNotFound = async (conventionPath) => {
|
|
4857
|
-
const { createElement } = await import("
|
|
4858
|
-
const { renderToReadableStream } = await import("
|
|
4857
|
+
const { createElement } = await import("react");
|
|
4858
|
+
const { renderToReadableStream } = await import("react-dom/server");
|
|
4859
4859
|
const mod = await import(conventionPath);
|
|
4860
4860
|
const NotFoundComponent = mod.default;
|
|
4861
4861
|
if (typeof NotFoundComponent !== "function")
|
|
@@ -4868,7 +4868,7 @@ var renderReactNotFound = async (conventionPath) => {
|
|
|
4868
4868
|
});
|
|
4869
4869
|
};
|
|
4870
4870
|
var renderSvelteNotFound = async (conventionPath) => {
|
|
4871
|
-
const { render } = await import("
|
|
4871
|
+
const { render } = await import("svelte/server");
|
|
4872
4872
|
const mod = await import(conventionPath);
|
|
4873
4873
|
const NotFoundComponent = mod.default;
|
|
4874
4874
|
if (!NotFoundComponent)
|
|
@@ -4881,8 +4881,8 @@ var renderSvelteNotFound = async (conventionPath) => {
|
|
|
4881
4881
|
});
|
|
4882
4882
|
};
|
|
4883
4883
|
var renderVueNotFound = async (conventionPath) => {
|
|
4884
|
-
const { createSSRApp, h: h4 } = await import("
|
|
4885
|
-
const { renderToString } = await import("
|
|
4884
|
+
const { createSSRApp, h: h4 } = await import("vue");
|
|
4885
|
+
const { renderToString } = await import("vue/server-renderer");
|
|
4886
4886
|
const mod = await import(conventionPath);
|
|
4887
4887
|
const NotFoundComponent = mod.default;
|
|
4888
4888
|
if (!NotFoundComponent)
|
|
@@ -5064,8 +5064,8 @@ var handleVuePageRequest = async (input) => {
|
|
|
5064
5064
|
};
|
|
5065
5065
|
};
|
|
5066
5066
|
const resolvedPage = await resolvePageComponent();
|
|
5067
|
-
const { createSSRApp, h: h4 } = await import("
|
|
5068
|
-
const { renderToWebStream } = await import("
|
|
5067
|
+
const { createSSRApp, h: h4 } = await import("vue");
|
|
5068
|
+
const { renderToWebStream } = await import("vue/server-renderer");
|
|
5069
5069
|
const app = createSSRApp({
|
|
5070
5070
|
render: () => h4(resolvedPage.component, maybeProps ?? null)
|
|
5071
5071
|
});
|
|
@@ -5163,7 +5163,7 @@ var applyVueRouterRedirect = (router, requestedUrl, setRedirect, status = DEFAUL
|
|
|
5163
5163
|
var defineRoutes = (routes) => routes;
|
|
5164
5164
|
var defineVueSetupApp = (hook) => hook;
|
|
5165
5165
|
// src/vue/Island.ts
|
|
5166
|
-
import { defineComponent as defineComponent4, h as h4, onServerPrefetch } from "
|
|
5166
|
+
import { defineComponent as defineComponent4, h as h4, onServerPrefetch } from "vue";
|
|
5167
5167
|
|
|
5168
5168
|
// src/client/preserveIslandMarkup.ts
|
|
5169
5169
|
init_islandMarkupAttributes();
|
|
@@ -5343,7 +5343,7 @@ var Island = defineRuntimeIslandComponent((props) => {
|
|
|
5343
5343
|
// src/vue/createIsland.ts
|
|
5344
5344
|
init_islandMarkupAttributes();
|
|
5345
5345
|
init_renderIslandMarkup();
|
|
5346
|
-
import { defineComponent as defineComponent5, h as h5, onServerPrefetch as onServerPrefetch2 } from "
|
|
5346
|
+
import { defineComponent as defineComponent5, h as h5, onServerPrefetch as onServerPrefetch2 } from "vue";
|
|
5347
5347
|
var defineRuntimeIslandComponent2 = (setup) => defineComponent5({
|
|
5348
5348
|
name: "AbsoluteIsland",
|
|
5349
5349
|
props: {
|
|
@@ -5381,7 +5381,7 @@ var createTypedIsland = (registry) => defineRuntimeIslandComponent2((props) => {
|
|
|
5381
5381
|
});
|
|
5382
5382
|
});
|
|
5383
5383
|
// src/vue/useIslandStore.ts
|
|
5384
|
-
import { customRef, onBeforeUnmount as onBeforeUnmount2 } from "
|
|
5384
|
+
import { customRef, onBeforeUnmount as onBeforeUnmount2 } from "vue";
|
|
5385
5385
|
|
|
5386
5386
|
// node_modules/zustand/esm/vanilla.mjs
|
|
5387
5387
|
var createStoreImpl = (createState) => {
|
|
@@ -5524,7 +5524,7 @@ import {
|
|
|
5524
5524
|
onScopeDispose,
|
|
5525
5525
|
ref as ref3,
|
|
5526
5526
|
shallowRef
|
|
5527
|
-
} from "
|
|
5527
|
+
} from "vue";
|
|
5528
5528
|
var useResource = (fetcher, options = {}) => {
|
|
5529
5529
|
const start = options.start ?? "immediate";
|
|
5530
5530
|
const data = shallowRef(null);
|
package/dist/vue/server.js
CHANGED
|
@@ -107,7 +107,7 @@ __export(exports_devRouteRegistrationCallsite, {
|
|
|
107
107
|
getCurrentRouteRegistrationCallsite: () => getCurrentRouteRegistrationCallsite
|
|
108
108
|
});
|
|
109
109
|
import { AsyncLocalStorage } from "async_hooks";
|
|
110
|
-
import { Elysia } from "
|
|
110
|
+
import { Elysia } from "elysia";
|
|
111
111
|
var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES, PAGE_HANDLER_NAMES, pageHandlerWrappers, handlerSourceMentionsPageHelper = (handler) => {
|
|
112
112
|
const source = handler.toString();
|
|
113
113
|
return PAGE_HANDLER_NAMES.some((name) => source.includes(name));
|
|
@@ -1868,8 +1868,8 @@ var buildErrorProps = (error) => {
|
|
|
1868
1868
|
return { message: String(error), name: "Error" };
|
|
1869
1869
|
};
|
|
1870
1870
|
var renderReactError = async (conventionPath, errorProps) => {
|
|
1871
|
-
const { createElement } = await import("
|
|
1872
|
-
const { renderToReadableStream } = await import("
|
|
1871
|
+
const { createElement } = await import("react");
|
|
1872
|
+
const { renderToReadableStream } = await import("react-dom/server");
|
|
1873
1873
|
const mod = await import(conventionPath);
|
|
1874
1874
|
const ErrorComponent = mod.default;
|
|
1875
1875
|
if (typeof ErrorComponent !== "function")
|
|
@@ -1882,7 +1882,7 @@ var renderReactError = async (conventionPath, errorProps) => {
|
|
|
1882
1882
|
});
|
|
1883
1883
|
};
|
|
1884
1884
|
var renderSvelteError = async (conventionPath, errorProps) => {
|
|
1885
|
-
const { render } = await import("
|
|
1885
|
+
const { render } = await import("svelte/server");
|
|
1886
1886
|
const mod = await import(conventionPath);
|
|
1887
1887
|
const ErrorComponent = mod.default;
|
|
1888
1888
|
if (!ErrorComponent)
|
|
@@ -1905,8 +1905,8 @@ var unescapeVueStyles = (ssrBody) => {
|
|
|
1905
1905
|
return { body, styles };
|
|
1906
1906
|
};
|
|
1907
1907
|
var renderVueError = async (conventionPath, errorProps) => {
|
|
1908
|
-
const { createSSRApp, h } = await import("
|
|
1909
|
-
const { renderToString } = await import("
|
|
1908
|
+
const { createSSRApp, h } = await import("vue");
|
|
1909
|
+
const { renderToString } = await import("vue/server-renderer");
|
|
1910
1910
|
const mod = await import(conventionPath);
|
|
1911
1911
|
const ErrorComponent = mod.default;
|
|
1912
1912
|
if (!ErrorComponent)
|
|
@@ -1998,8 +1998,8 @@ var renderConventionError = async (framework, pageName, error) => {
|
|
|
1998
1998
|
return null;
|
|
1999
1999
|
};
|
|
2000
2000
|
var renderReactNotFound = async (conventionPath) => {
|
|
2001
|
-
const { createElement } = await import("
|
|
2002
|
-
const { renderToReadableStream } = await import("
|
|
2001
|
+
const { createElement } = await import("react");
|
|
2002
|
+
const { renderToReadableStream } = await import("react-dom/server");
|
|
2003
2003
|
const mod = await import(conventionPath);
|
|
2004
2004
|
const NotFoundComponent = mod.default;
|
|
2005
2005
|
if (typeof NotFoundComponent !== "function")
|
|
@@ -2012,7 +2012,7 @@ var renderReactNotFound = async (conventionPath) => {
|
|
|
2012
2012
|
});
|
|
2013
2013
|
};
|
|
2014
2014
|
var renderSvelteNotFound = async (conventionPath) => {
|
|
2015
|
-
const { render } = await import("
|
|
2015
|
+
const { render } = await import("svelte/server");
|
|
2016
2016
|
const mod = await import(conventionPath);
|
|
2017
2017
|
const NotFoundComponent = mod.default;
|
|
2018
2018
|
if (!NotFoundComponent)
|
|
@@ -2025,8 +2025,8 @@ var renderSvelteNotFound = async (conventionPath) => {
|
|
|
2025
2025
|
});
|
|
2026
2026
|
};
|
|
2027
2027
|
var renderVueNotFound = async (conventionPath) => {
|
|
2028
|
-
const { createSSRApp, h } = await import("
|
|
2029
|
-
const { renderToString } = await import("
|
|
2028
|
+
const { createSSRApp, h } = await import("vue");
|
|
2029
|
+
const { renderToString } = await import("vue/server-renderer");
|
|
2030
2030
|
const mod = await import(conventionPath);
|
|
2031
2031
|
const NotFoundComponent = mod.default;
|
|
2032
2032
|
if (!NotFoundComponent)
|
|
@@ -2208,8 +2208,8 @@ var handleVuePageRequest = async (input) => {
|
|
|
2208
2208
|
};
|
|
2209
2209
|
};
|
|
2210
2210
|
const resolvedPage = await resolvePageComponent();
|
|
2211
|
-
const { createSSRApp, h } = await import("
|
|
2212
|
-
const { renderToWebStream } = await import("
|
|
2211
|
+
const { createSSRApp, h } = await import("vue");
|
|
2212
|
+
const { renderToWebStream } = await import("vue/server-renderer");
|
|
2213
2213
|
const app = createSSRApp({
|
|
2214
2214
|
render: () => h(resolvedPage.component, maybeProps ?? null)
|
|
2215
2215
|
});
|