@absolutejs/absolute 0.19.0-beta.838 → 0.19.0-beta.839
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/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/react/index.js +17 -2
- package/dist/react/index.js.map +3 -3
- package/dist/react/server.js +17 -2
- package/dist/react/server.js.map +3 -3
- package/dist/src/react/pageHandler.d.ts +6 -0
- package/dist/src/svelte/pageHandler.d.ts +5 -0
- package/dist/src/vue/index.d.ts +1 -0
- package/dist/src/vue/routerRedirectProviders.d.ts +45 -0
- package/dist/src/vue/server.d.ts +1 -0
- package/dist/svelte/index.js +17 -2
- package/dist/svelte/index.js.map +3 -3
- package/dist/svelte/server.js +17 -2
- package/dist/svelte/server.js.map +3 -3
- package/dist/vue/index.js +37 -2
- package/dist/vue/index.js.map +5 -4
- package/dist/vue/server.js +38 -3
- package/dist/vue/server.js.map +6 -5
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-njlCoJ/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-njlCoJ/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-njlCoJ/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/react/index.js
CHANGED
|
@@ -3441,6 +3441,16 @@ var renderFirstNotFound = async () => {
|
|
|
3441
3441
|
};
|
|
3442
3442
|
|
|
3443
3443
|
// src/react/pageHandler.ts
|
|
3444
|
+
var resolveRequestPathname = (request) => {
|
|
3445
|
+
if (!request)
|
|
3446
|
+
return;
|
|
3447
|
+
try {
|
|
3448
|
+
const parsed = new URL(request.url);
|
|
3449
|
+
return `${parsed.pathname}${parsed.search}`;
|
|
3450
|
+
} catch {
|
|
3451
|
+
return;
|
|
3452
|
+
}
|
|
3453
|
+
};
|
|
3444
3454
|
var buildRefreshSetup = () => {
|
|
3445
3455
|
if (false) {}
|
|
3446
3456
|
return "window.__REFRESH_BUFFER__=[];" + "window.$RefreshReg$=function(t,i){window.__REFRESH_BUFFER__.push([t,i])};" + "window.$RefreshSig$=function(){return function(t){return t}};";
|
|
@@ -3459,7 +3469,12 @@ var handleReactPageRequest = async (input) => {
|
|
|
3459
3469
|
const Page = input.Page;
|
|
3460
3470
|
const resolvedIndex = input.index;
|
|
3461
3471
|
const options = input;
|
|
3462
|
-
const
|
|
3472
|
+
const userProps = input.props;
|
|
3473
|
+
const requestPathname = resolveRequestPathname(input.request);
|
|
3474
|
+
const maybeProps = requestPathname !== undefined && (!userProps || !("url" in userProps)) ? {
|
|
3475
|
+
...userProps ?? {},
|
|
3476
|
+
url: requestPathname
|
|
3477
|
+
} : userProps;
|
|
3463
3478
|
const pageName = Page.name || Page.displayName || "";
|
|
3464
3479
|
if (isSsrCacheDirty("react")) {
|
|
3465
3480
|
return buildDirtyResponse(resolvedIndex, maybeProps);
|
|
@@ -3666,5 +3681,5 @@ export {
|
|
|
3666
3681
|
Island
|
|
3667
3682
|
};
|
|
3668
3683
|
|
|
3669
|
-
//# debugId=
|
|
3684
|
+
//# debugId=BB69A5C316931E8C64756E2164756E21
|
|
3670
3685
|
//# sourceMappingURL=index.js.map
|