@absolutejs/absolute 0.19.0-beta.727 → 0.19.0-beta.729
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/index.js +1 -5
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +1 -5
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +40 -21
- package/dist/build.js.map +3 -3
- package/dist/index.js +40 -21
- package/dist/index.js.map +3 -3
- package/dist/react/index.js +4 -10
- package/dist/react/index.js.map +3 -3
- package/dist/react/server.js +1 -7
- package/dist/react/server.js.map +3 -3
- package/dist/src/angular/pageHandler.d.ts +0 -5
- package/dist/src/react/pageHandler.d.ts +0 -3
- package/dist/src/vue/pageHandler.d.ts +0 -3
- package/dist/svelte/index.js +1 -5
- package/dist/svelte/index.js.map +3 -3
- package/dist/svelte/server.js +1 -5
- package/dist/svelte/server.js.map +3 -3
- package/dist/vue/index.js +1 -5
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +1 -5
- package/dist/vue/server.js.map +3 -3
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -1028,14 +1028,14 @@ var defineIslandComponent = (component, options) => ({
|
|
|
1028
1028
|
component,
|
|
1029
1029
|
export: options.export,
|
|
1030
1030
|
source: options.source
|
|
1031
|
-
}), defineIslandRegistry = (registry) => registry,
|
|
1031
|
+
}), defineIslandRegistry = (registry) => registry, isRecord2 = (value) => typeof value === "object" && value !== null, getIslandBuildReference = (component) => {
|
|
1032
1032
|
if (!isIslandComponentDefinition(component))
|
|
1033
1033
|
return null;
|
|
1034
1034
|
return {
|
|
1035
1035
|
export: component.export,
|
|
1036
1036
|
source: component.source
|
|
1037
1037
|
};
|
|
1038
|
-
}, isIslandComponentDefinition = (value) =>
|
|
1038
|
+
}, isIslandComponentDefinition = (value) => isRecord2(value) && ("component" in value) && ("source" in value) && typeof value.source === "string", parseIslandProps = (rawProps) => {
|
|
1039
1039
|
if (!rawProps)
|
|
1040
1040
|
return {};
|
|
1041
1041
|
return JSON.parse(rawProps);
|
|
@@ -2510,7 +2510,7 @@ var init_svelteServerModule = __esm(() => {
|
|
|
2510
2510
|
var islandSequence = 0, resolvedServerComponentCache, resolvedServerBuildComponentCache, nextIslandId = () => {
|
|
2511
2511
|
islandSequence += 1;
|
|
2512
2512
|
return `island-${islandSequence}`;
|
|
2513
|
-
},
|
|
2513
|
+
}, isRecord3 = (value) => typeof value === "object" && value !== null, isReactServerIslandComponent = (value) => typeof value === "function", isSvelteServerIslandComponent = (value) => typeof value === "function", isVueServerIslandComponent = (value) => typeof value === "function" || isRecord3(value), isAngularServerIslandComponent = (value) => typeof value === "function", resolveBuildReferencePath = (source, registryPath) => {
|
|
2514
2514
|
if (source.startsWith("file://"))
|
|
2515
2515
|
return new URL(source).pathname;
|
|
2516
2516
|
if (source.startsWith("."))
|
|
@@ -3344,9 +3344,6 @@ var renderFirstNotFound = async () => {
|
|
|
3344
3344
|
};
|
|
3345
3345
|
|
|
3346
3346
|
// src/react/pageHandler.ts
|
|
3347
|
-
var isRecord2 = (value) => typeof value === "object" && value !== null;
|
|
3348
|
-
var isReactComponent = (value) => typeof value === "function";
|
|
3349
|
-
var isReactPageRequestInput = (value) => isRecord2(value) && isReactComponent(value.Page) && typeof value.index === "string";
|
|
3350
3347
|
var buildRefreshSetup = () => {
|
|
3351
3348
|
if (false) {}
|
|
3352
3349
|
return "window.__REFRESH_BUFFER__=[];" + "window.$RefreshReg$=function(t,i){window.__REFRESH_BUFFER__.push([t,i])};" + "window.$RefreshSig$=function(){return function(t){return t}};";
|
|
@@ -3362,9 +3359,6 @@ var buildDirtyResponse = (index, maybeProps) => {
|
|
|
3362
3359
|
});
|
|
3363
3360
|
};
|
|
3364
3361
|
var handleReactPageRequest = async (input) => {
|
|
3365
|
-
if (!isReactPageRequestInput(input)) {
|
|
3366
|
-
throw new Error("React page handler requires an object input with Page and index.");
|
|
3367
|
-
}
|
|
3368
3362
|
const Page = input.Page;
|
|
3369
3363
|
const resolvedIndex = input.index;
|
|
3370
3364
|
const options = input;
|
|
@@ -3569,5 +3563,5 @@ export {
|
|
|
3569
3563
|
Island
|
|
3570
3564
|
};
|
|
3571
3565
|
|
|
3572
|
-
//# debugId=
|
|
3566
|
+
//# debugId=20C27A82246F163F64756E2164756E21
|
|
3573
3567
|
//# sourceMappingURL=index.js.map
|