@absolutejs/absolute 0.19.0-beta.398 → 0.19.0-beta.399
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/build.js +20 -4
- package/dist/build.js.map +3 -3
- package/dist/index.js +20 -4
- package/dist/index.js.map +3 -3
- package/dist/vue/index.js +20 -4
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +20 -4
- package/dist/vue/server.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -176373,7 +176373,23 @@ var init_pageHandler3 = __esm(() => {
|
|
|
176373
176373
|
// src/vue/pageHandler.ts
|
|
176374
176374
|
import { readdir as readdir4 } from "fs/promises";
|
|
176375
176375
|
import { basename as basename11, dirname as dirname11 } from "path";
|
|
176376
|
-
var ssrDirty4 = false, hydrateSlotPreamble = "window.__ABS_SLOT_HYDRATION_PENDING__=true;",
|
|
176376
|
+
var ssrDirty4 = false, hydrateSlotPreamble = "window.__ABS_SLOT_HYDRATION_PENDING__=true;", hydrateSlotReleaseScript = `(function() {
|
|
176377
|
+
var releaseSlots = function() {
|
|
176378
|
+
if (window.__ABS_SLOT_HYDRATION_PENDING__ !== false) {
|
|
176379
|
+
window.__ABS_SLOT_HYDRATION_PENDING__ = false;
|
|
176380
|
+
}
|
|
176381
|
+
if (typeof window.__ABS_SLOT_FLUSH__ === "function") {
|
|
176382
|
+
window.__ABS_SLOT_FLUSH__();
|
|
176383
|
+
}
|
|
176384
|
+
};
|
|
176385
|
+
if (typeof requestAnimationFrame === "function") {
|
|
176386
|
+
requestAnimationFrame(function() {
|
|
176387
|
+
requestAnimationFrame(releaseSlots);
|
|
176388
|
+
});
|
|
176389
|
+
} else if (typeof setTimeout === "function") {
|
|
176390
|
+
setTimeout(releaseSlots, 0);
|
|
176391
|
+
}
|
|
176392
|
+
})();`, injectSlotPreamble = (headTag) => headTag.includes("</head>") ? headTag.replace("</head>", `<script>${hydrateSlotPreamble}</script></head>`) : `${headTag}<script>${hydrateSlotPreamble}</script>`, injectSlotReleaseScript = (content) => content + `<script>${hydrateSlotReleaseScript}</script>`, isRecord9 = (value) => typeof value === "object" && value !== null, isGenericVueComponent = (value) => typeof value === "function" || isRecord9(value), readHasIslands2 = (value) => {
|
|
176377
176393
|
if (!isRecord9(value))
|
|
176378
176394
|
return false;
|
|
176379
176395
|
const hasIslands = value["__ABSOLUTE_PAGE_HAS_ISLANDS__"];
|
|
@@ -176397,7 +176413,7 @@ var ssrDirty4 = false, hydrateSlotPreamble = "window.__ABS_SLOT_HYDRATION_PENDIN
|
|
|
176397
176413
|
const propsScript = `window.__INITIAL_PROPS__=${JSON.stringify(maybeProps ?? {})};`;
|
|
176398
176414
|
const hydratedHead = injectSlotPreamble(headTag);
|
|
176399
176415
|
const dirtyFlag = "window.__SSR_DIRTY__=true;";
|
|
176400
|
-
const html = `<!DOCTYPE html><html>${hydratedHead}<body><div id="root"></div>` + `<script>${propsScript}${dirtyFlag}</script>` + `<script type="module" src="${indexPath}"></script>` + `</body></html>`;
|
|
176416
|
+
const html = `<!DOCTYPE html><html>${hydratedHead}<body><div id="root"></div>` + `<script>${propsScript}${dirtyFlag}</script>` + injectSlotReleaseScript(`<script type="module" src="${indexPath}"></script>`) + `</body></html>`;
|
|
176401
176417
|
return new Response(html, {
|
|
176402
176418
|
headers: { "Content-Type": "text/html" }
|
|
176403
176419
|
});
|
|
@@ -176434,7 +176450,7 @@ var ssrDirty4 = false, hydrateSlotPreamble = "window.__ABS_SLOT_HYDRATION_PENDIN
|
|
|
176434
176450
|
});
|
|
176435
176451
|
const bodyStream = renderToWebStream(app);
|
|
176436
176452
|
const head = `<!DOCTYPE html><html>${injectSlotPreamble(headTag)}<body><div id="root">`;
|
|
176437
|
-
const tail = `</div><script>window.__INITIAL_PROPS__=${JSON.stringify(maybeProps ?? {})}</script
|
|
176453
|
+
const tail = `</div><script>window.__INITIAL_PROPS__=${JSON.stringify(maybeProps ?? {})}</script>${injectSlotReleaseScript(`<script type="module" src="${indexPath}"></script>`)}</body></html>`;
|
|
176438
176454
|
const stream = new ReadableStream({
|
|
176439
176455
|
start(controller) {
|
|
176440
176456
|
controller.enqueue(head);
|
|
@@ -187610,5 +187626,5 @@ export {
|
|
|
187610
187626
|
ANGULAR_INIT_TIMEOUT_MS
|
|
187611
187627
|
};
|
|
187612
187628
|
|
|
187613
|
-
//# debugId=
|
|
187629
|
+
//# debugId=65A6354D86A31CEC64756E2164756E21
|
|
187614
187630
|
//# sourceMappingURL=index.js.map
|