@absolutejs/absolute 0.20.0-beta.130 → 0.20.0-beta.131
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/CHANGELOG.md +21 -0
- package/changelog.json +41 -0
- package/dist/angular/browser.js +406 -396
- package/dist/angular/browser.js.map +4 -4
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -3
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -4
- package/dist/angular/index.js +560 -701
- package/dist/angular/index.js.map +5 -5
- package/dist/angular/server.js +197 -338
- package/dist/angular/server.js.map +5 -5
- package/dist/build/buildWorker.js +27 -35
- package/dist/build.js +3833 -5876
- package/dist/build.js.map +4 -4
- package/dist/cli/{add-9sa7e3vd.js → add-hvqeg5sz.js} +23 -25
- package/dist/cli/{analyze-c1sep5y9.js → analyze-c2x2aym5.js} +6 -7
- package/dist/cli/androidEmulatorController-j73a1br6.js +22 -0
- package/dist/cli/{androidNativeWatcher-dnp95nk2.js → androidNativeWatcher-ctbnsr1v.js} +11 -14
- package/dist/cli/{api-2hd8cahp.js → api-rk13rfd9.js} +11 -13
- package/dist/cli/{build-857rc1ds.js → build-20y4b6rj.js} +8 -9
- package/dist/cli/{buildDepVendor-8akhr8n8.js → buildDepVendor-axqvbbm6.js} +5 -170
- package/dist/cli/{compile-9by2vxy5.js → compile-qygwqezx.js} +43 -48
- package/dist/cli/config/client.js +8 -8
- package/dist/cli/config/server.js +5615 -5595
- package/dist/cli/config-3te1fbry.js +7 -0
- package/dist/cli/{db-8wweexdp.js → db-p8pc325y.js} +5 -13
- package/dist/cli/{dev-qg7fr16s.js → dev-6f0gry3y.js} +75 -77
- package/dist/cli/{devCert-avr89zf3.js → devCert-n33ep8pg.js} +0 -3
- package/dist/cli/{doctor-mbh9bk05.js → doctor-8rm8p4dm.js} +13 -14
- package/dist/cli/emulatorDoctor-cwa70kgt.js +17 -0
- package/dist/cli/emulatorInstaller-dx3fmm2m.js +14 -0
- package/dist/cli/env-2107nff1.js +11 -0
- package/dist/cli/eslint-zz0t0kfp.js +17 -0
- package/dist/cli/eslintChunked-wg10jj9m.js +12 -0
- package/dist/cli/expoDevController-s70fj7vf.js +16 -0
- package/dist/cli/{expoNativeWatcher-rmc95bak.js → expoNativeWatcher-aakp7xvj.js} +1 -5
- package/dist/cli/expoProject-zy02tbfg.js +10 -0
- package/dist/cli/{generate-069p0dk3.js → generate-nz4w03yz.js} +19 -21
- package/dist/cli/{heapDiff-87v24x7p.js → heapDiff-2etr2r26.js} +5 -6
- package/dist/cli/{htmx-5wh1jh75.js → htmx-0xcaqrny.js} +12 -14
- package/dist/cli/{index-sjvydg2r.js → index-1ff9q1vx.js} +7 -7
- package/dist/cli/{index-rqbk0b30.js → index-1qewxkgy.js} +26 -26
- package/dist/cli/{index-prwyfnn3.js → index-1x1vah31.js} +2 -2
- package/dist/cli/{index-ddakkws4.js → index-31j3beht.js} +13 -13
- package/dist/cli/{index-j2nw3edf.js → index-3gtnqd57.js} +5 -5
- package/dist/cli/{index-54q7pxcx.js → index-434b7j4a.js} +2 -32
- package/dist/cli/{index-w5vswatm.js → index-43a1vvb7.js} +6 -10
- package/dist/cli/{index-nxcwg9ma.js → index-5sjk7daj.js} +31 -31
- package/dist/cli/{index-6j1xaheg.js → index-73sk1ney.js} +5 -5
- package/dist/cli/{index-3x5wpx5d.js → index-8kdmmgvc.js} +2 -2
- package/dist/cli/{index-1ys3dnrs.js → index-8w2wazrk.js} +34 -34
- package/dist/cli/{index-wtfnv3n2.js → index-92hmw204.js} +3 -3
- package/dist/cli/{index-vdbn8brx.js → index-9ehbfmeq.js} +38 -41
- package/dist/cli/{index-mywsk201.js → index-fde3c297.js} +1 -1
- package/dist/cli/{index-255xs63d.js → index-j57pgg5m.js} +10 -10
- package/dist/cli/{index-5cgsrv62.js → index-jcjwsdqt.js} +13 -182
- package/dist/cli/{index-00wfffav.js → index-k4t9k1xk.js} +5 -5
- package/dist/cli/{index-yxgaf8j0.js → index-m1vntzf1.js} +7 -5
- package/dist/cli/{index-9r7n9dqp.js → index-ma1dw7x2.js} +1 -1
- package/dist/cli/index-pch0v1z6.js +60 -0
- package/dist/cli/{index-8nym68py.js → index-ppxed116.js} +1 -1
- package/dist/cli/{index-9kwmb3c0.js → index-qyxd5n9a.js} +3 -3
- package/dist/cli/{index-tn4crd40.js → index-r62705dc.js} +12 -12
- package/dist/cli/{index-wctgx65x.js → index-r6k4xmdb.js} +21 -21
- package/dist/cli/{index-hty8111z.js → index-r915cvqp.js} +17 -17
- package/dist/cli/{index-exdd5k1g.js → index-rrxeqrbn.js} +2 -2
- package/dist/cli/{index-keg69zm1.js → index-snbzdwb9.js} +5 -5
- package/dist/cli/{index-v26ze17p.js → index-thqwfzy8.js} +3 -3
- package/dist/cli/{index-0hr7c4qe.js → index-vdnmqkt8.js} +14 -18
- package/dist/cli/{index-vkkqe08e.js → index-vj2v38sq.js} +29 -29
- package/dist/cli/{index-erngp7a9.js → index-wy0yh4jj.js} +16 -16
- package/dist/cli/{index-1cypb2zn.js → index-xcr3r6a1.js} +8 -8
- package/dist/cli/index.js +44 -48
- package/dist/cli/{info-d74dr585.js → info-kx5510rq.js} +7 -7
- package/dist/cli/{inspect-23chj4nc.js → inspect-5dj06x0m.js} +18 -20
- package/dist/cli/{iosNativeWatcher-kggp7j9a.js → iosNativeWatcher-zx49pzej.js} +12 -16
- package/dist/cli/iosSimulatorController-haa1cc3p.js +23 -0
- package/dist/cli/{islands-wpqgmwh0.js → islands-z4adh55n.js} +8 -9
- package/dist/cli/{lintProof-wx3b6dzy.js → lintProof-qcwdvzcz.js} +12 -17
- package/dist/cli/{logs-bx2n5ey6.js → logs-3p2vrq5h.js} +8 -10
- package/dist/cli/{ls-kvmcmd2j.js → ls-nkspq73y.js} +13 -14
- package/dist/cli/{mem-apbk7bx4.js → mem-h3f497cr.js} +10 -14
- package/dist/cli/{migrate-p4rp5r6b.js → migrate-52bqqp08.js} +7 -8
- package/dist/cli/{mobile-43q3zmjf.js → mobile-w295dx0t.js} +572 -575
- package/dist/cli/nativeAuth-ysv0x5dy.js +27 -0
- package/dist/cli/patchedBun-m7vj5sks.js +9 -0
- package/dist/cli/prerender-mfnwsvyt.js +7 -0
- package/dist/cli/{prettier-vtk5yaw4.js → prettier-c1624g36.js} +2 -6
- package/dist/cli/{ps-8y28kzmb.js → ps-0jedm91n.js} +12 -16
- package/dist/cli/{psTui-8e96mwgz.js → psTui-tpr5nbmc.js} +28 -30
- package/dist/cli/remoteMacProtocol-v3ax0y0f.js +41 -0
- package/dist/cli/{remove-3fd1z2hx.js → remove-z0brj5nd.js} +16 -18
- package/dist/cli/{rewriteImports-d1gmaa68.js → rewriteImports-k6rjjmg1.js} +2 -100
- package/dist/cli/{routes-0xpanj8z.js → routes-ey0sw1eq.js} +7 -9
- package/dist/cli/start-36w63t6h.js +20 -0
- package/dist/cli/telemetry-3wnc06wa.js +9 -0
- package/dist/cli/{tunnelRelay-5at2v8w6.js → tunnelRelay-19ay0fxn.js} +3 -4
- package/dist/cli/{typecheck-yj9s13eb.js → typecheck-nmf6e7k7.js} +147 -149
- package/dist/cli/{workspace-m56sgfkc.js → workspace-yetzedke.js} +32 -36
- package/dist/client/chunks/{index-dk743xs6.js → index-8m2qq61n.js} +12 -8
- package/dist/client/chunks/{index-dk743xs6.js.map → index-8m2qq61n.js.map} +4 -3
- package/dist/client/chunks/{index-m35nbkdp.js → islands-rc28k5sx.js} +104 -42
- package/dist/client/chunks/islands-rc28k5sx.js.map +15 -0
- package/dist/client/chunks/{react-yq4ss9y4.js → react-dcvkaba2.js} +5 -7
- package/dist/client/chunks/{react-yq4ss9y4.js.map → react-dcvkaba2.js.map} +2 -2
- package/dist/client/chunks/{svelte-s0c964kb.js → svelte-4yfa5bxa.js} +2 -4
- package/dist/client/chunks/{svelte-s0c964kb.js.map → svelte-4yfa5bxa.js.map} +2 -2
- package/dist/client/chunks/{vue-rdskrnyg.js → vue-a84fzp3v.js} +2 -4
- package/dist/client/chunks/{vue-rdskrnyg.js.map → vue-a84fzp3v.js.map} +2 -2
- package/dist/client/index.js +42 -15
- package/dist/client/index.js.map +2 -2
- package/dist/client/prefetch.js +1 -3
- package/dist/client/prefetch.js.map +2 -2
- package/dist/core/streamingSlotRegistrar.js +1 -64
- package/dist/core/streamingSlotRegistrar.js.map +2 -2
- package/dist/core/streamingSlotRegistry.js +1 -64
- package/dist/core/streamingSlotRegistry.js.map +2 -2
- package/dist/dev/serverBootstrap.js +1802 -2018
- package/dist/index.js +5247 -8794
- package/dist/index.js.map +9 -20
- package/dist/islands/browser.js +13 -3
- package/dist/islands/browser.js.map +2 -2
- package/dist/islands/index.js +26 -142
- package/dist/islands/index.js.map +2 -2
- package/dist/mobile/browser.js +13 -3
- package/dist/mobile/browser.js.map +2 -2
- package/dist/mobile/index.js +1067 -2182
- package/dist/mobile/index.js.map +2 -2
- package/dist/mobile/remoteMacAgentEntry.js +156 -156
- package/dist/mobile/shellAuth.js +0 -16
- package/dist/mobile/shellBootstrap.js +734 -724
- package/dist/mobile/shellExpoAuth.js +4 -18
- package/dist/mobile/shellExpoDevices.js +0 -16
- package/dist/mobile/shellExpoSync.js +0 -16
- package/dist/mobile/shellSync.js +3 -19
- package/dist/mobile/shellUpdate.js +5 -21
- package/dist/mobile/uiPrimitives.js +0 -16
- package/dist/react/browser.js +15 -5
- package/dist/react/browser.js.map +2 -2
- package/dist/react/components/index.js +68 -58
- package/dist/react/components/index.js.map +4 -4
- package/dist/react/hooks/index.js +1 -63
- package/dist/react/hooks/index.js.map +2 -2
- package/dist/react/index.js +56 -195
- package/dist/react/index.js.map +5 -5
- package/dist/react/jsxDevRuntimeCompat.js +1 -64
- package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
- package/dist/react/jsxRuntimeCompat.js +1 -64
- package/dist/react/jsxRuntimeCompat.js.map +2 -2
- package/dist/react/router/browser.js +1 -64
- package/dist/react/router/browser.js.map +2 -2
- package/dist/react/router/index.js +1 -64
- package/dist/react/router/index.js.map +2 -2
- package/dist/react/server.js +38 -51
- package/dist/react/server.js.map +5 -5
- package/dist/src/cli/config/server.d.ts +7 -129
- package/dist/src/cli/patchedBun.d.ts +14 -14
- package/dist/src/core/prepare.d.ts +149 -1805
- package/dist/src/core/requestContext.d.ts +1 -1
- package/dist/src/dev/requestInspector.d.ts +1 -1
- package/dist/src/mobile/associationFiles.d.ts +2 -2
- package/dist/src/mobile/compatibilityDispatcher.d.ts +1 -1
- package/dist/src/mobile/mobilePreview.d.ts +8 -130
- package/dist/src/mobile/updateServer.d.ts +2 -2
- package/dist/src/plugins/devtoolsJson.d.ts +2 -2
- package/dist/src/plugins/hmr.d.ts +2 -2
- package/dist/src/plugins/imageOptimizer.d.ts +2 -151
- package/dist/src/plugins/telemetryPlugin.d.ts +1 -19
- package/dist/svelte/browser.js +13 -3
- package/dist/svelte/browser.js.map +2 -2
- package/dist/svelte/index.js +66 -210
- package/dist/svelte/index.js.map +5 -5
- package/dist/svelte/server.js +51 -99
- package/dist/svelte/server.js.map +5 -5
- package/dist/types/globals.d.ts +0 -6
- package/dist/vue/browser.js +13 -3
- package/dist/vue/browser.js.map +2 -2
- package/dist/vue/components/Image.js +13 -3
- package/dist/vue/components/Image.js.map +2 -2
- package/dist/vue/components/index.js +62 -50
- package/dist/vue/components/index.js.map +4 -4
- package/dist/vue/index.js +1115 -1258
- package/dist/vue/index.js.map +10 -10
- package/dist/vue/server.js +42 -59
- package/dist/vue/server.js.map +5 -5
- package/package.json +9 -9
- package/dist/cli/androidEmulatorController-sj141e1c.js +0 -30
- package/dist/cli/config-rjeexvza.js +0 -8
- package/dist/cli/emulatorDoctor-gzarrsex.js +0 -18
- package/dist/cli/emulatorInstaller-pjw4ex6q.js +0 -15
- package/dist/cli/env-4f6f6z69.js +0 -14
- package/dist/cli/eslint-qfkxe89p.js +0 -20
- package/dist/cli/eslintChunked-7ef700pn.js +0 -21
- package/dist/cli/expoDevController-weywa74d.js +0 -26
- package/dist/cli/expoProject-w2pzjwnx.js +0 -11
- package/dist/cli/index-1rabqyq0.js +0 -7
- package/dist/cli/index-ar4gz15x.js +0 -60
- package/dist/cli/iosSimulatorController-xcxxfkzx.js +0 -34
- package/dist/cli/nativeAuth-zx4tsb1f.js +0 -38
- package/dist/cli/patchedBun-zjtrn2s4.js +0 -38
- package/dist/cli/prerender-yex2zwj3.js +0 -18
- package/dist/cli/remoteMacProtocol-r38jhg44.js +0 -69
- package/dist/cli/start-gzhrkhxe.js +0 -23
- package/dist/cli/telemetry-94rka1w2.js +0 -14
- package/dist/client/chunks/angularPatch-arh4sr68.js +0 -157
- package/dist/client/chunks/angularPatch-arh4sr68.js.map +0 -10
- package/dist/client/chunks/index-jrcwp722.js +0 -12
- package/dist/client/chunks/index-jrcwp722.js.map +0 -10
- package/dist/client/chunks/index-m35nbkdp.js.map +0 -12
- package/dist/client/chunks/index-qxjc7kc5.js +0 -12
- package/dist/client/chunks/index-qxjc7kc5.js.map +0 -9
- package/dist/client/chunks/islands-50dg63j9.js +0 -284
- package/dist/client/chunks/islands-50dg63j9.js.map +0 -14
- /package/dist/cli/{index-me8nczrw.js → index-039rh39e.js} +0 -0
- /package/dist/cli/{index-bw4ktfnz.js → index-1y5mmnwg.js} +0 -0
- /package/dist/cli/{index-5xfxd7xa.js → index-3wm8p7rg.js} +0 -0
- /package/dist/cli/{index-4rme31py.js → index-420h9hq7.js} +0 -0
- /package/dist/cli/{index-4rhxthsy.js → index-65kqn88a.js} +0 -0
- /package/dist/cli/{index-r8x3839e.js → index-71gchbzt.js} +0 -0
- /package/dist/cli/{index-s2tazax7.js → index-92g14j47.js} +0 -0
- /package/dist/cli/{index-j66p8hn5.js → index-bwsa6ax4.js} +0 -0
- /package/dist/cli/{index-bzs19w3r.js → index-e6ysp900.js} +0 -0
- /package/dist/cli/{index-06cmrcdq.js → index-h7qhz02e.js} +0 -0
- /package/dist/cli/{index-6h54jqdq.js → index-hg54jyts.js} +0 -0
- /package/dist/cli/{index-czwrxgdj.js → index-hxqprc80.js} +0 -0
- /package/dist/cli/{index-zh6hhrwy.js → index-jjfbjv1z.js} +0 -0
- /package/dist/cli/{index-fc9vxw56.js → index-prs14ys9.js} +0 -0
- /package/dist/cli/{index-v1k46q3x.js → index-tx0kx9zx.js} +0 -0
- /package/dist/cli/{index-fhaf3tdk.js → index-x8x0f3ha.js} +0 -0
- /package/dist/cli/{index-18q9qc7f.js → index-ypcqx24p.js} +0 -0
package/dist/react/index.js
CHANGED
|
@@ -18,7 +18,7 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
18
18
|
return cached;
|
|
19
19
|
}
|
|
20
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
21
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
21
|
+
const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
22
|
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
23
23
|
for (let key of __getOwnPropNames(mod))
|
|
24
24
|
if (!__hasOwnProp.call(to, key))
|
|
@@ -59,7 +59,17 @@ var __legacyMetadataTS = (k, v) => {
|
|
|
59
59
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
60
60
|
return Reflect.metadata(k, v);
|
|
61
61
|
};
|
|
62
|
-
var __esm = (fn, res) => () =>
|
|
62
|
+
var __esm = (fn, res, err) => () => {
|
|
63
|
+
if (fn)
|
|
64
|
+
try {
|
|
65
|
+
res = fn(fn = 0);
|
|
66
|
+
} catch (e) {
|
|
67
|
+
err = [e];
|
|
68
|
+
}
|
|
69
|
+
if (err)
|
|
70
|
+
throw err[0];
|
|
71
|
+
return res;
|
|
72
|
+
};
|
|
63
73
|
var __require = import.meta.require;
|
|
64
74
|
|
|
65
75
|
// src/core/islandPageContext.ts
|
|
@@ -266,13 +276,6 @@ var BOOTSTRAP_MANIFEST_KEY = "BootstrapClient", ISLAND_MARKER = 'data-island="tr
|
|
|
266
276
|
};
|
|
267
277
|
|
|
268
278
|
// src/core/devRouteRegistrationCallsite.ts
|
|
269
|
-
var exports_devRouteRegistrationCallsite = {};
|
|
270
|
-
__export(exports_devRouteRegistrationCallsite, {
|
|
271
|
-
getCurrentRouteRegistrationCallsite: () => getCurrentRouteRegistrationCallsite,
|
|
272
|
-
getOriginalPageHandlerSource: () => getOriginalPageHandlerSource,
|
|
273
|
-
isPageHandler: () => isPageHandler,
|
|
274
|
-
patchElysiaRouteRegistrationCallsites: () => patchElysiaRouteRegistrationCallsites
|
|
275
|
-
});
|
|
276
279
|
import { AsyncLocalStorage } from "async_hooks";
|
|
277
280
|
import { Elysia } from "elysia";
|
|
278
281
|
var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, NODE_ENV_KEY = "NODE_ENV", ROUTE_METHOD_NAMES, PAGE_HANDLER_NAMES, pageHandlerWrappers, isPageHandlerFunction = (value) => typeof value === "function", handlerSourceMentionsPageHelper = (handler) => {
|
|
@@ -289,12 +292,12 @@ var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, NODE_ENV_KEY = "NODE
|
|
|
289
292
|
if (pageHandlerWrappers.has(handler))
|
|
290
293
|
return true;
|
|
291
294
|
return handlerSourceMentionsPageHelper(handler);
|
|
292
|
-
},
|
|
295
|
+
}, isObjectRecord = (value) => Boolean(value) && typeof value === "object", isAsyncLocalStorage = (value) => isObjectRecord(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function", isRouteMethod = (value) => typeof value === "function", getRouteCallsiteStorage = () => {
|
|
293
296
|
const value = Reflect.get(globalThis, ROUTE_CALLSITE_STORAGE_KEY);
|
|
294
297
|
if (value === null || typeof value === "undefined") {
|
|
295
298
|
return;
|
|
296
299
|
}
|
|
297
|
-
return
|
|
300
|
+
return isAsyncLocalStorage(value) ? value : undefined;
|
|
298
301
|
}, ensureRouteCallsiteStorage = () => {
|
|
299
302
|
const existing = getRouteCallsiteStorage();
|
|
300
303
|
if (existing) {
|
|
@@ -375,11 +378,6 @@ var init_devRouteRegistrationCallsite = __esm(() => {
|
|
|
375
378
|
});
|
|
376
379
|
|
|
377
380
|
// src/utils/ssrErrorPage.ts
|
|
378
|
-
var exports_ssrErrorPage = {};
|
|
379
|
-
__export(exports_ssrErrorPage, {
|
|
380
|
-
buildErrorPage: () => buildErrorPage,
|
|
381
|
-
ssrErrorPage: () => ssrErrorPage
|
|
382
|
-
});
|
|
383
381
|
var errorPageHtml = ({
|
|
384
382
|
framework,
|
|
385
383
|
hint,
|
|
@@ -451,19 +449,6 @@ ${error ?? "The dev-server terminal has the build output."}`,
|
|
|
451
449
|
});
|
|
452
450
|
|
|
453
451
|
// src/core/requestContext.ts
|
|
454
|
-
var exports_requestContext = {};
|
|
455
|
-
__export(exports_requestContext, {
|
|
456
|
-
absoluteRequestContext: () => absoluteRequestContext,
|
|
457
|
-
devBuildErrorResponse: () => devBuildErrorResponse,
|
|
458
|
-
getCurrentAbsoluteRequest: () => getCurrentAbsoluteRequest,
|
|
459
|
-
getDevPageWarmer: () => getDevPageWarmer,
|
|
460
|
-
getMissingAssets: () => getMissingAssets,
|
|
461
|
-
recordMissingAsset: () => recordMissingAsset,
|
|
462
|
-
resolveDeferredPageAssets: () => resolveDeferredPageAssets,
|
|
463
|
-
runWithAbsoluteRequest: () => runWithAbsoluteRequest,
|
|
464
|
-
setDevPageWarmer: () => setDevPageWarmer,
|
|
465
|
-
withDeferredStylesheets: () => withDeferredStylesheets
|
|
466
|
-
});
|
|
467
452
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "async_hooks";
|
|
468
453
|
import { Elysia as Elysia2 } from "elysia";
|
|
469
454
|
var REQUEST_STORAGE_KEY, PAGE_WARMER_KEY, isAbsoluteRequestStorage = (value) => typeof value === "object" && value !== null && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function", getRequestStorage = () => {
|
|
@@ -942,26 +927,26 @@ var streamSwapRuntime = () => {
|
|
|
942
927
|
absoluteWindow.__ABS_SLOT_PENDING__ = absoluteWindow.__ABS_SLOT_PENDING__ ?? {};
|
|
943
928
|
const consumers = absoluteWindow.__ABS_SLOT_CONSUMERS__;
|
|
944
929
|
const pending = absoluteWindow.__ABS_SLOT_PENDING__;
|
|
945
|
-
const
|
|
930
|
+
const isObjectRecord = (value) => Boolean(value) && typeof value === "object";
|
|
946
931
|
const isPatchedPendingEntry = (value) => {
|
|
947
|
-
if (!
|
|
932
|
+
if (!isObjectRecord(value))
|
|
948
933
|
return false;
|
|
949
934
|
return value.domPatched === true && "payload" in value;
|
|
950
935
|
};
|
|
951
936
|
const unwrapPendingPayload = (value) => isPatchedPendingEntry(value) ? value.payload : value;
|
|
952
937
|
const canApplyImmediately = () => absoluteWindow.__ABS_SLOT_HYDRATION_PENDING__ !== true;
|
|
953
938
|
const isAngularDeferPayload = (payload) => {
|
|
954
|
-
if (!
|
|
939
|
+
if (!isObjectRecord(payload))
|
|
955
940
|
return false;
|
|
956
941
|
return payload.kind === "angular-defer";
|
|
957
942
|
};
|
|
958
943
|
const isVueSuspensePayload = (payload) => {
|
|
959
|
-
if (!
|
|
944
|
+
if (!isObjectRecord(payload))
|
|
960
945
|
return false;
|
|
961
946
|
return payload.kind === "vue-suspense";
|
|
962
947
|
};
|
|
963
948
|
const resolveHtml = (payload) => {
|
|
964
|
-
if (!
|
|
949
|
+
if (!isObjectRecord(payload)) {
|
|
965
950
|
return typeof payload === "string" ? payload : "";
|
|
966
951
|
}
|
|
967
952
|
if (typeof payload.html === "string") {
|
|
@@ -2028,8 +2013,8 @@ var CONVENTIONS_KEY = "__absoluteConventions", isConventionsMap = (value) => Boo
|
|
|
2028
2013
|
}
|
|
2029
2014
|
return null;
|
|
2030
2015
|
}, NOT_FOUND_PRIORITY, renderFirstNotFound = async () => {
|
|
2031
|
-
const renderNext = async (
|
|
2032
|
-
const [framework, ...remaining] =
|
|
2016
|
+
const renderNext = async (frameworks) => {
|
|
2017
|
+
const [framework, ...remaining] = frameworks;
|
|
2033
2018
|
if (!framework) {
|
|
2034
2019
|
return null;
|
|
2035
2020
|
}
|
|
@@ -2181,8 +2166,8 @@ var toIslandFrameworkSegment = (framework) => framework[0]?.toUpperCase() + fram
|
|
|
2181
2166
|
return found ? entries : undefined;
|
|
2182
2167
|
}, getIslandManifestEntries = (manifest) => {
|
|
2183
2168
|
const islands = {};
|
|
2184
|
-
const
|
|
2185
|
-
for (const framework of
|
|
2169
|
+
const frameworks = ["react", "svelte", "vue", "angular"];
|
|
2170
|
+
for (const framework of frameworks) {
|
|
2186
2171
|
const prefix = `Island${toIslandFrameworkSegment(framework)}`;
|
|
2187
2172
|
const entries = collectFrameworkIslands(manifest, prefix);
|
|
2188
2173
|
if (entries)
|
|
@@ -2285,10 +2270,6 @@ var init_resolveAngularPackage = () => {};
|
|
|
2285
2270
|
var ENV_VAR = "NODE_ENV", isDevelopmentRuntime = () => process.env[ENV_VAR] === "development", isProductionRuntime = () => process.env[ENV_VAR] === "production";
|
|
2286
2271
|
|
|
2287
2272
|
// src/angular/angularPatch.ts
|
|
2288
|
-
var exports_angularPatch = {};
|
|
2289
|
-
__export(exports_angularPatch, {
|
|
2290
|
-
applyPatches: () => applyPatches
|
|
2291
|
-
});
|
|
2292
2273
|
var ensureHead = (doc) => {
|
|
2293
2274
|
if (!doc || doc.head || !doc.documentElement) {
|
|
2294
2275
|
return;
|
|
@@ -2444,8 +2425,8 @@ var initDominoAdapter = (platformServer) => {
|
|
|
2444
2425
|
if (!isProductionRuntime()) {
|
|
2445
2426
|
await import("@angular/compiler");
|
|
2446
2427
|
}
|
|
2447
|
-
|
|
2448
|
-
await
|
|
2428
|
+
await Promise.resolve().then(() => init_angularPatch());
|
|
2429
|
+
await applyPatches();
|
|
2449
2430
|
const useBareSpecifiers = !isProductionRuntime();
|
|
2450
2431
|
const [platformBrowser, platformServer, common, core] = await Promise.all([
|
|
2451
2432
|
useBareSpecifiers ? import("@angular/platform-browser") : import(resolveAngularRuntimePath("@angular/platform-browser")),
|
|
@@ -2661,49 +2642,7 @@ var init_ssrRender = __esm(() => {
|
|
|
2661
2642
|
});
|
|
2662
2643
|
|
|
2663
2644
|
// src/angular/islands.ts
|
|
2664
|
-
var
|
|
2665
|
-
__export(exports_islands, {
|
|
2666
|
-
getAngularIslandSelector: () => getAngularIslandSelector,
|
|
2667
|
-
isAngularComponent: () => isAngularComponent,
|
|
2668
|
-
mountAngularIsland: () => mountAngularIsland,
|
|
2669
|
-
renderAngularIslandToHtml: () => renderAngularIslandToHtml
|
|
2670
|
-
});
|
|
2671
|
-
var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_islandId) => angularIslandSelector, isAngularComponent = (value) => typeof value === "function", getSelectorFromRenderedIsland = (rootElement) => {
|
|
2672
|
-
const firstChild = rootElement.firstElementChild;
|
|
2673
|
-
if (!(firstChild instanceof HTMLElement)) {
|
|
2674
|
-
return null;
|
|
2675
|
-
}
|
|
2676
|
-
const selector = firstChild.tagName.toLowerCase();
|
|
2677
|
-
return selector.length > 0 ? selector : null;
|
|
2678
|
-
}, getClientAngularComponentSelector = (component) => {
|
|
2679
|
-
const maybeDef = Reflect.get(component, "\u0275cmp");
|
|
2680
|
-
if (typeof maybeDef !== "object" || maybeDef === null) {
|
|
2681
|
-
return null;
|
|
2682
|
-
}
|
|
2683
|
-
const maybeSelectors = Reflect.get(maybeDef, "selectors");
|
|
2684
|
-
if (!Array.isArray(maybeSelectors)) {
|
|
2685
|
-
return null;
|
|
2686
|
-
}
|
|
2687
|
-
const [firstSelectorGroup] = maybeSelectors;
|
|
2688
|
-
if (!Array.isArray(firstSelectorGroup)) {
|
|
2689
|
-
return null;
|
|
2690
|
-
}
|
|
2691
|
-
const [selector] = firstSelectorGroup;
|
|
2692
|
-
return typeof selector === "string" && selector.length > 0 ? selector : null;
|
|
2693
|
-
}, createAngularIslandApp = async () => {
|
|
2694
|
-
const { EnvironmentInjector, provideZonelessChangeDetection } = await import("@angular/core");
|
|
2695
|
-
const { createApplication } = await import("@angular/platform-browser");
|
|
2696
|
-
const app = await createApplication({
|
|
2697
|
-
providers: [provideZonelessChangeDetection()]
|
|
2698
|
-
});
|
|
2699
|
-
const environmentInjector = app.injector.get(EnvironmentInjector);
|
|
2700
|
-
return { app, environmentInjector };
|
|
2701
|
-
}, angularIslandAppPromise = null, getAngularIslandApp = async () => {
|
|
2702
|
-
if (!angularIslandAppPromise) {
|
|
2703
|
-
angularIslandAppPromise = createAngularIslandApp();
|
|
2704
|
-
}
|
|
2705
|
-
return angularIslandAppPromise;
|
|
2706
|
-
}, wrapperMetadataCache, requestRenderCache, getRequestRenderCache = () => {
|
|
2645
|
+
var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_islandId) => angularIslandSelector, wrapperMetadataCache, requestRenderCache, getRequestRenderCache = () => {
|
|
2707
2646
|
const requestId = getSsrContextId();
|
|
2708
2647
|
if (!requestId) {
|
|
2709
2648
|
return null;
|
|
@@ -2765,36 +2704,6 @@ var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_i
|
|
|
2765
2704
|
throw new Error(`Could not close Angular island root "${selector}".`);
|
|
2766
2705
|
}
|
|
2767
2706
|
return html.slice(start, end + endTag.length);
|
|
2768
|
-
}, mountAngularIsland = async (component, element, props, islandId) => {
|
|
2769
|
-
await import("@angular/compiler");
|
|
2770
|
-
const { createComponent, inputBinding } = await import("@angular/core");
|
|
2771
|
-
const selector = getAngularIslandSelector(islandId);
|
|
2772
|
-
const { app, environmentInjector } = await getAngularIslandApp();
|
|
2773
|
-
let rootElement = element.querySelector(selector);
|
|
2774
|
-
if (!(rootElement instanceof HTMLElement)) {
|
|
2775
|
-
element.innerHTML = `<${selector}></${selector}>`;
|
|
2776
|
-
rootElement = element.querySelector(selector);
|
|
2777
|
-
}
|
|
2778
|
-
if (!(rootElement instanceof HTMLElement))
|
|
2779
|
-
return app;
|
|
2780
|
-
const componentSelector = getClientAngularComponentSelector(component) ?? getSelectorFromRenderedIsland(rootElement);
|
|
2781
|
-
if (!componentSelector)
|
|
2782
|
-
return app;
|
|
2783
|
-
rootElement.innerHTML = `<${componentSelector}></${componentSelector}>`;
|
|
2784
|
-
const hostElement = rootElement.querySelector(componentSelector);
|
|
2785
|
-
if (!(hostElement instanceof HTMLElement))
|
|
2786
|
-
return app;
|
|
2787
|
-
const bindings = Object.entries(props).map(([key, value]) => inputBinding(key, () => value));
|
|
2788
|
-
const componentRef = createComponent(component, {
|
|
2789
|
-
bindings,
|
|
2790
|
-
environmentInjector,
|
|
2791
|
-
hostElement
|
|
2792
|
-
});
|
|
2793
|
-
app.attachView(componentRef.hostView);
|
|
2794
|
-
componentRef.changeDetectorRef.detectChanges();
|
|
2795
|
-
window.__ABS_ANGULAR_ISLAND_APPS__ ??= [];
|
|
2796
|
-
window.__ABS_ANGULAR_ISLAND_APPS__.push(app);
|
|
2797
|
-
return app;
|
|
2798
2707
|
}, renderAngularIslandToHtml = async (component, props, islandId) => {
|
|
2799
2708
|
const requestCache = getRequestRenderCache();
|
|
2800
2709
|
const renderCacheKey = getIslandRenderCacheKey(component, props);
|
|
@@ -2829,8 +2738,8 @@ var init_islands2 = __esm(() => {
|
|
|
2829
2738
|
|
|
2830
2739
|
// src/core/islandSsr.ts
|
|
2831
2740
|
var renderAngularIslandToHtmlInternal = async (component, props, islandId) => {
|
|
2832
|
-
|
|
2833
|
-
return
|
|
2741
|
+
await Promise.resolve().then(() => init_islands2());
|
|
2742
|
+
return renderAngularIslandToHtml(component, props, islandId);
|
|
2834
2743
|
}, renderAngularIslandToHtml2, LEADING_HOISTED_RESOURCE_RE, stripLeadingHoistedResources = (html) => {
|
|
2835
2744
|
let result = html;
|
|
2836
2745
|
let match = LEADING_HOISTED_RESOURCE_RE.exec(result);
|
|
@@ -3169,25 +3078,9 @@ var init_specifierRewriter = __esm(() => {
|
|
|
3169
3078
|
});
|
|
3170
3079
|
|
|
3171
3080
|
// src/build/rewriteImportsPlugin.ts
|
|
3172
|
-
var exports_rewriteImportsPlugin = {};
|
|
3173
|
-
__export(exports_rewriteImportsPlugin, {
|
|
3174
|
-
buildWithImportRewrite: () => buildWithImportRewrite,
|
|
3175
|
-
fixMissingReExportNamespacesInContent: () => fixMissingReExportNamespacesInContent,
|
|
3176
|
-
jsRewriteImports: () => jsRewriteImports,
|
|
3177
|
-
rewriteBuildOutputs: () => rewriteBuildOutputs,
|
|
3178
|
-
rewriteBuildOutputsWith: () => rewriteBuildOutputsWith,
|
|
3179
|
-
rewriteImportsInContent: () => rewriteImportsInContent,
|
|
3180
|
-
rewriteVendorDirectories: () => rewriteVendorDirectories
|
|
3181
|
-
});
|
|
3182
3081
|
import { readdir } from "fs/promises";
|
|
3183
3082
|
import { join as join2 } from "path";
|
|
3184
|
-
var REEXPORT_PATTERN, IMPORT_PATH_PATTERN, isMissingFile = (error) => error instanceof Error && ("code" in error) && error.code === "ENOENT",
|
|
3185
|
-
const result = await pendingBuild;
|
|
3186
|
-
if (result.outputs.length > 0) {
|
|
3187
|
-
await rewriteBuildOutputs(result.outputs, vendorPaths);
|
|
3188
|
-
}
|
|
3189
|
-
return result;
|
|
3190
|
-
}, fixMissingReExportNamespacesInContent = (content) => {
|
|
3083
|
+
var REEXPORT_PATTERN, IMPORT_PATH_PATTERN, isMissingFile = (error) => error instanceof Error && ("code" in error) && error.code === "ENOENT", fixMissingReExportNamespacesInContent = (content) => {
|
|
3191
3084
|
const missing = collectMissingNamespaceImports(content);
|
|
3192
3085
|
if (missing.length === 0)
|
|
3193
3086
|
return content;
|
|
@@ -3230,10 +3123,6 @@ ${content}`;
|
|
|
3230
3123
|
missing.push({ ident, path: sourcePath });
|
|
3231
3124
|
}
|
|
3232
3125
|
return missing;
|
|
3233
|
-
}, jsRewriteImports = (content, replacements) => rewriteSpecifiers(content, compileSpecifierRewriter(Object.fromEntries(replacements)), { sweep: false }), rewriteBuildOutputs = async (outputs, vendorPaths) => {
|
|
3234
|
-
if (Object.keys(vendorPaths).length === 0)
|
|
3235
|
-
return;
|
|
3236
|
-
await Promise.all(outputs.filter(isReadableArtifact).map((artifact) => rewriteArtifact(artifact, vendorPaths)));
|
|
3237
3126
|
}, isReadableArtifact = (artifact) => artifact.path.endsWith(".js"), readArtifactText = async (artifact) => {
|
|
3238
3127
|
try {
|
|
3239
3128
|
return await artifact.text();
|
|
@@ -3308,12 +3197,12 @@ var serverCacheRoot, compiledModuleCache, ANGULAR_SPECIFIER_RE, getCachedModuleP
|
|
|
3308
3197
|
const relativeSourcePath = relative(process.cwd(), sourcePath).replace(/\\/g, "/");
|
|
3309
3198
|
const normalizedSourcePath = relativeSourcePath.startsWith("..") ? sourcePath.replace(/[:\\/]/g, "_") : relativeSourcePath;
|
|
3310
3199
|
return join3(serverCacheRoot, `${normalizedSourcePath}.server.js`);
|
|
3311
|
-
}, collectVendorPaths = (
|
|
3200
|
+
}, collectVendorPaths = (code) => {
|
|
3312
3201
|
const vendorPaths = {};
|
|
3313
3202
|
if (!isProductionRuntime()) {
|
|
3314
3203
|
return vendorPaths;
|
|
3315
3204
|
}
|
|
3316
|
-
const specifiers = new Set([...
|
|
3205
|
+
const specifiers = new Set([...code.matchAll(ANGULAR_SPECIFIER_RE)].map((match) => match[1]));
|
|
3317
3206
|
specifiers.forEach((specifier) => {
|
|
3318
3207
|
if (!specifier)
|
|
3319
3208
|
return;
|
|
@@ -3333,13 +3222,13 @@ var serverCacheRoot, compiledModuleCache, ANGULAR_SPECIFIER_RE, getCachedModuleP
|
|
|
3333
3222
|
});
|
|
3334
3223
|
const entry = result.outputs.find((output) => output.kind === "entry-point");
|
|
3335
3224
|
if (!result.success || !entry) {
|
|
3336
|
-
const message = result.logs.map((
|
|
3225
|
+
const message = result.logs.map((log) => String(log)).join(`
|
|
3337
3226
|
`);
|
|
3338
3227
|
throw new Error(`Failed to compile Angular island server module for "${sourcePath}":
|
|
3339
3228
|
${message}`);
|
|
3340
3229
|
}
|
|
3341
|
-
const
|
|
3342
|
-
const rewritten = rewriteImportsInContent(
|
|
3230
|
+
const code = await entry.text();
|
|
3231
|
+
const rewritten = rewriteImportsInContent(code, collectVendorPaths(code));
|
|
3343
3232
|
const modulePath = getCachedModulePath(sourcePath);
|
|
3344
3233
|
await mkdir(dirname(modulePath), { recursive: true });
|
|
3345
3234
|
await Bun.write(modulePath, rewritten);
|
|
@@ -3541,26 +3430,6 @@ var init_lowerAwaitSlotSyntax = __esm(() => {
|
|
|
3541
3430
|
});
|
|
3542
3431
|
|
|
3543
3432
|
// src/build/stylePreprocessor.ts
|
|
3544
|
-
var exports_stylePreprocessor = {};
|
|
3545
|
-
__export(exports_stylePreprocessor, {
|
|
3546
|
-
addStyleImporter: () => addStyleImporter,
|
|
3547
|
-
compileStyleFileIfNeeded: () => compileStyleFileIfNeeded,
|
|
3548
|
-
compileStyleFileIfNeededSync: () => compileStyleFileIfNeededSync,
|
|
3549
|
-
compileStyleSource: () => compileStyleSource,
|
|
3550
|
-
createStylePreprocessorPlugin: () => createStylePreprocessorPlugin,
|
|
3551
|
-
createStyleTransformConfig: () => createStyleTransformConfig,
|
|
3552
|
-
createSvelteStylePreprocessor: () => createSvelteStylePreprocessor,
|
|
3553
|
-
findStyleEntriesImporting: () => findStyleEntriesImporting,
|
|
3554
|
-
forgetStyleEntry: () => forgetStyleEntry,
|
|
3555
|
-
getCssOutputExtension: () => getCssOutputExtension,
|
|
3556
|
-
getStyleBaseName: () => getStyleBaseName,
|
|
3557
|
-
isPreprocessableStylePath: () => isPreprocessableStylePath,
|
|
3558
|
-
isStyleModulePath: () => isStyleModulePath,
|
|
3559
|
-
isStylePath: () => isStylePath,
|
|
3560
|
-
recordStyleOutput: () => recordStyleOutput,
|
|
3561
|
-
stylePreprocessorPlugin: () => stylePreprocessorPlugin
|
|
3562
|
-
});
|
|
3563
|
-
import { createHash as createHash2 } from "crypto";
|
|
3564
3433
|
import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
|
|
3565
3434
|
import { readFile } from "fs/promises";
|
|
3566
3435
|
import { createRequire } from "module";
|
|
@@ -3891,16 +3760,6 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
3891
3760
|
importers.push(entry);
|
|
3892
3761
|
}
|
|
3893
3762
|
return importers;
|
|
3894
|
-
}, recordStyleOutput = (entry, css) => {
|
|
3895
|
-
const key = resolve3(entry);
|
|
3896
|
-
const hash = createHash2("sha1").update(css).digest("hex");
|
|
3897
|
-
const previous = styleOutputHashes.get(key);
|
|
3898
|
-
styleOutputHashes.set(key, hash);
|
|
3899
|
-
return previous !== hash;
|
|
3900
|
-
}, forgetStyleEntry = (entry) => {
|
|
3901
|
-
const key = resolve3(entry);
|
|
3902
|
-
styleDependencyGraph.delete(key);
|
|
3903
|
-
styleOutputHashes.delete(key);
|
|
3904
3763
|
}, compileStyleSource = async (filePath, source, languageHint, config) => {
|
|
3905
3764
|
const language = getStyleLanguage(languageHint ?? filePath);
|
|
3906
3765
|
const rawContents = source ?? await readFile(filePath, "utf-8");
|
|
@@ -4131,7 +3990,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
4131
3990
|
throw new Error(`Unable to compile ${filePath}: Stylus styleUrl preprocessing is async-only. Import the Stylus file from a bundled entrypoint or use SCSS/CSS for Angular styleUrl.`);
|
|
4132
3991
|
}
|
|
4133
3992
|
return resolveCssImportsSync(rawContents, dirname2(filePath), new Set([filePath]));
|
|
4134
|
-
}
|
|
3993
|
+
};
|
|
4135
3994
|
var init_stylePreprocessor = __esm(() => {
|
|
4136
3995
|
CSS_EXTENSION_PATTERN = /\.css$/i;
|
|
4137
3996
|
STYLE_EXTENSION_PATTERN = /\.(s[ac]ss|less|styl(?:us)?)$/i;
|
|
@@ -4368,8 +4227,8 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
|
|
|
4368
4227
|
return;
|
|
4369
4228
|
}
|
|
4370
4229
|
await Bun.write(path, content);
|
|
4371
|
-
}, stripExports = (
|
|
4372
|
-
const lines =
|
|
4230
|
+
}, stripExports = (code) => code.replace(/export\s+default/, "const script ="), mergeVueImports = (code) => {
|
|
4231
|
+
const lines = code.split(`
|
|
4373
4232
|
`);
|
|
4374
4233
|
const specifierSet = new Set;
|
|
4375
4234
|
const vueImportRegex = /^import\s+{([^}]+)}\s+from\s+['"]vue['"];?$/;
|
|
@@ -4602,6 +4461,16 @@ var init_renderIslandMarkup = __esm(() => {
|
|
|
4602
4461
|
resolvedServerBuildComponentCache = new Map;
|
|
4603
4462
|
});
|
|
4604
4463
|
|
|
4464
|
+
// src/react/pageHandler.ts
|
|
4465
|
+
init_devRouteRegistrationCallsite();
|
|
4466
|
+
init_requestContext();
|
|
4467
|
+
init_pageProtocol();
|
|
4468
|
+
init_pageResponseCache();
|
|
4469
|
+
|
|
4470
|
+
// src/core/responseEnhancers.ts
|
|
4471
|
+
init_streamingSlots();
|
|
4472
|
+
init_pageResponseCache();
|
|
4473
|
+
|
|
4605
4474
|
// src/core/streamingSlotRegistrar.ts
|
|
4606
4475
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
4607
4476
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
@@ -4613,9 +4482,9 @@ var getRegisteredStreamingSlotRegistrar = () => {
|
|
|
4613
4482
|
}
|
|
4614
4483
|
return;
|
|
4615
4484
|
};
|
|
4616
|
-
var
|
|
4617
|
-
var isStreamingSlotWarningController = (value) =>
|
|
4618
|
-
var isStreamingSlotCollectionController = (value) =>
|
|
4485
|
+
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
4486
|
+
var isStreamingSlotWarningController = (value) => isObjectRecord2(value) && ("maybeWarn" in value) && typeof value.maybeWarn === "function";
|
|
4487
|
+
var isStreamingSlotCollectionController = (value) => isObjectRecord2(value) && ("isCollecting" in value) && typeof value.isCollecting === "function";
|
|
4619
4488
|
var getWarningController = () => {
|
|
4620
4489
|
const value = Reflect.get(globalThis, STREAMING_SLOT_WARNING_STORAGE_KEY);
|
|
4621
4490
|
if (value === null || typeof value === "undefined")
|
|
@@ -4651,14 +4520,14 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
4651
4520
|
|
|
4652
4521
|
// src/core/streamingSlotRegistry.ts
|
|
4653
4522
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
4654
|
-
var
|
|
4655
|
-
var
|
|
4523
|
+
var isObjectRecord3 = (value) => Boolean(value) && typeof value === "object";
|
|
4524
|
+
var isAsyncLocalStorage2 = (value) => isObjectRecord3(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
|
4656
4525
|
var getStorageGlobal = () => {
|
|
4657
4526
|
const value = Reflect.get(globalThis, STREAMING_SLOT_STORAGE_KEY);
|
|
4658
4527
|
if (value === null || typeof value === "undefined") {
|
|
4659
4528
|
return value;
|
|
4660
4529
|
}
|
|
4661
|
-
return
|
|
4530
|
+
return isAsyncLocalStorage2(value) ? value : undefined;
|
|
4662
4531
|
};
|
|
4663
4532
|
var isServerRuntime = () => typeof process !== "undefined" && typeof process.versions?.node === "string";
|
|
4664
4533
|
var ensureAsyncLocalStorage = async () => {
|
|
@@ -4710,15 +4579,7 @@ var runWithStreamingSlotRegistry = async (task) => {
|
|
|
4710
4579
|
});
|
|
4711
4580
|
};
|
|
4712
4581
|
|
|
4713
|
-
// src/react/pageHandler.ts
|
|
4714
|
-
init_devRouteRegistrationCallsite();
|
|
4715
|
-
init_requestContext();
|
|
4716
|
-
init_pageProtocol();
|
|
4717
|
-
init_pageResponseCache();
|
|
4718
|
-
|
|
4719
4582
|
// src/core/responseEnhancers.ts
|
|
4720
|
-
init_streamingSlots();
|
|
4721
|
-
init_pageResponseCache();
|
|
4722
4583
|
var toResponse = async (responseLike) => responseLike;
|
|
4723
4584
|
var cloneHeaders = (response) => {
|
|
4724
4585
|
const headers = new Headers(response.headers);
|
|
@@ -4950,7 +4811,7 @@ init_islandMarkupAttributes();
|
|
|
4950
4811
|
init_renderIslandMarkup();
|
|
4951
4812
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
4952
4813
|
var createTypedIsland = (registry) => {
|
|
4953
|
-
const
|
|
4814
|
+
const Island = async (props) => {
|
|
4954
4815
|
if (typeof window !== "undefined") {
|
|
4955
4816
|
return /* @__PURE__ */ jsx2("div", {
|
|
4956
4817
|
...getIslandMarkerAttributes(props),
|
|
@@ -4963,7 +4824,7 @@ var createTypedIsland = (registry) => {
|
|
|
4963
4824
|
dangerouslySetInnerHTML: { __html: result.html }
|
|
4964
4825
|
});
|
|
4965
4826
|
};
|
|
4966
|
-
return
|
|
4827
|
+
return Island;
|
|
4967
4828
|
};
|
|
4968
4829
|
// src/react/hooks/useIslandStore.ts
|
|
4969
4830
|
import { useSyncExternalStore } from "react";
|
|
@@ -5076,5 +4937,5 @@ export {
|
|
|
5076
4937
|
useIslandStore
|
|
5077
4938
|
};
|
|
5078
4939
|
|
|
5079
|
-
//# debugId=
|
|
4940
|
+
//# debugId=F48C1B7CA3B812A664756E2164756E21
|
|
5080
4941
|
//# sourceMappingURL=index.js.map
|