defuss-astro 1.3.1 → 1.3.3
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/client.cjs +1 -1
- package/dist/client.mjs +2 -2
- package/dist/endpoint/image-endpoint.cjs +0 -0
- package/dist/endpoint/image-endpoint.d.cts +1 -1
- package/dist/endpoint/image-endpoint.d.mts +1 -1
- package/dist/endpoint/image-endpoint.mjs +0 -0
- package/dist/index.cjs +0 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +0 -0
- package/dist/server.cjs +1 -1
- package/dist/server.mjs +2 -2
- package/package.json +13 -14
package/dist/client.cjs
CHANGED
|
@@ -137,7 +137,7 @@ var client = (element) => async (Component, props, { default: children, ...slott
|
|
|
137
137
|
client$1.hydrate(roots, Array.from(element.childNodes));
|
|
138
138
|
} else {
|
|
139
139
|
element.innerHTML = "";
|
|
140
|
-
let roots = client$1.
|
|
140
|
+
let roots = client$1.renderSync(Component(componentProps), element);
|
|
141
141
|
if (!Array.isArray(roots)) {
|
|
142
142
|
roots = [roots];
|
|
143
143
|
}
|
package/dist/client.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRef, hydrate,
|
|
1
|
+
import { createRef, hydrate, renderSync } from 'defuss/client';
|
|
2
2
|
import { S as StaticHtml } from './render-viAgneG-.mjs';
|
|
3
3
|
import { jsx } from 'defuss/jsx-runtime';
|
|
4
4
|
import 'defuss';
|
|
@@ -133,7 +133,7 @@ var client = (element) => async (Component, props, { default: children, ...slott
|
|
|
133
133
|
hydrate(roots, Array.from(element.childNodes));
|
|
134
134
|
} else {
|
|
135
135
|
element.innerHTML = "";
|
|
136
|
-
let roots =
|
|
136
|
+
let roots = renderSync(Component(componentProps), element);
|
|
137
137
|
if (!Array.isArray(roots)) {
|
|
138
138
|
roots = [roots];
|
|
139
139
|
}
|
|
File without changes
|
|
File without changes
|
package/dist/index.cjs
CHANGED
|
File without changes
|
package/dist/index.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ interface Options extends Pick<DefussVitePluginOptions, "exclude" | "include"> {
|
|
|
5
5
|
devtools?: boolean;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
declare const nodeRequire:
|
|
8
|
+
declare const nodeRequire: NodeJS.Require;
|
|
9
9
|
declare const getContainerRenderer: () => ContainerRenderer;
|
|
10
10
|
declare function export_default({ include, exclude, devtools }?: Options): AstroIntegration;
|
|
11
11
|
|
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ interface Options extends Pick<DefussVitePluginOptions, "exclude" | "include"> {
|
|
|
5
5
|
devtools?: boolean;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
declare const nodeRequire:
|
|
8
|
+
declare const nodeRequire: NodeJS.Require;
|
|
9
9
|
declare const getContainerRenderer: () => ContainerRenderer;
|
|
10
10
|
declare function export_default({ include, exclude, devtools }?: Options): AstroIntegration;
|
|
11
11
|
|
package/dist/index.mjs
CHANGED
|
File without changes
|
package/dist/server.cjs
CHANGED
|
@@ -49,7 +49,7 @@ async function renderToStaticMarkup(Component, props, { default: children, ...sl
|
|
|
49
49
|
let roots;
|
|
50
50
|
let html = "";
|
|
51
51
|
const attrs = {};
|
|
52
|
-
roots = server.
|
|
52
|
+
roots = server.renderSync(vdom, document.documentElement, {
|
|
53
53
|
browserGlobals
|
|
54
54
|
});
|
|
55
55
|
for (const [key, value] of Object.entries(props)) {
|
package/dist/server.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getBrowserGlobals, getDocument, createInPlaceErrorMessageVNode,
|
|
1
|
+
import { getBrowserGlobals, getDocument, createInPlaceErrorMessageVNode, renderSync, renderToString } from 'defuss/server';
|
|
2
2
|
import { S as StaticHtml } from './render-viAgneG-.mjs';
|
|
3
3
|
import 'defuss';
|
|
4
4
|
|
|
@@ -47,7 +47,7 @@ async function renderToStaticMarkup(Component, props, { default: children, ...sl
|
|
|
47
47
|
let roots;
|
|
48
48
|
let html = "";
|
|
49
49
|
const attrs = {};
|
|
50
|
-
roots =
|
|
50
|
+
roots = renderSync(vdom, document.documentElement, {
|
|
51
51
|
browserGlobals
|
|
52
52
|
});
|
|
53
53
|
for (const [key, value] of Object.entries(props)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "defuss-astro",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -18,13 +18,6 @@
|
|
|
18
18
|
"url": "git+https://github.com/kyr0/defuss.git",
|
|
19
19
|
"type": "git"
|
|
20
20
|
},
|
|
21
|
-
"scripts": {
|
|
22
|
-
"clean": "rm -rf ./dist && rm -rf ./node_modules/.pnpm",
|
|
23
|
-
"pretest": "pnpm run build",
|
|
24
|
-
"prebuild": "pnpm run clean",
|
|
25
|
-
"build": "pkgroll",
|
|
26
|
-
"postbuild": "tsx ./scripts/finalize-build.ts"
|
|
27
|
-
},
|
|
28
21
|
"author": "Aron Homberg <info@aron-homberg.de>",
|
|
29
22
|
"sideEffects": false,
|
|
30
23
|
"exports": {
|
|
@@ -78,17 +71,23 @@
|
|
|
78
71
|
"node": "^18.17.1 || ^20.3.0 || >=21.0.0"
|
|
79
72
|
},
|
|
80
73
|
"dependencies": {
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"astro": "^5.7.2",
|
|
84
|
-
"vite": "^6.2.6",
|
|
74
|
+
"astro": "^5.8.0",
|
|
75
|
+
"vite": "^6.3.5",
|
|
85
76
|
"fast-glob": "^3.3.2",
|
|
86
77
|
"svgo": "^3.3.2",
|
|
87
78
|
"lightningimg-node": "^0.3.3",
|
|
88
79
|
"purgecss": "^7.0.2",
|
|
89
|
-
"file-type": "^19.6.0"
|
|
80
|
+
"file-type": "^19.6.0",
|
|
81
|
+
"defuss": "2.0.5",
|
|
82
|
+
"defuss-vite": "1.1.1"
|
|
90
83
|
},
|
|
91
84
|
"peerDependencies": {
|
|
92
85
|
"@minify-html/node": "^0.15.0"
|
|
86
|
+
},
|
|
87
|
+
"scripts": {
|
|
88
|
+
"clean": "rm -rf ./dist && rm -rf ./node_modules/.pnpm",
|
|
89
|
+
"prebuild": "pnpm run clean",
|
|
90
|
+
"build": "pkgroll",
|
|
91
|
+
"postbuild": "tsx ./scripts/finalize-build.ts"
|
|
93
92
|
}
|
|
94
|
-
}
|
|
93
|
+
}
|