@vesk/vesk-cli 0.2.52 → 0.2.54
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/cli.js +32 -6
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -30283,7 +30283,20 @@ function emitNode(ctx2, node, tracked2, effectsVar, parentVar, compPrefix = "__c
|
|
|
30283
30283
|
return null;
|
|
30284
30284
|
}
|
|
30285
30285
|
if (node instanceof SlotNode) {
|
|
30286
|
-
if (!parentVar)
|
|
30286
|
+
if (!parentVar) {
|
|
30287
|
+
if (ctx2.hydrate) {
|
|
30288
|
+
ctx2.push(`if (props.children !== undefined && props.children !== null) {`);
|
|
30289
|
+
ctx2.push(` if (typeof props.children === 'function') {`);
|
|
30290
|
+
ctx2.push(` __pendingChild = props.children(__hydrate);`);
|
|
30291
|
+
ctx2.push(` } else if (__hydrate && __hydrate.root) {`);
|
|
30292
|
+
ctx2.push(` __hydrate.root.appendChild(toDomNode(props.children));`);
|
|
30293
|
+
ctx2.push(` }`);
|
|
30294
|
+
ctx2.push(`}`);
|
|
30295
|
+
} else {
|
|
30296
|
+
ctx2.push(`if (props.children !== undefined && props.children !== null) __pendingChild = toDomNode(props.children);`);
|
|
30297
|
+
}
|
|
30298
|
+
return null;
|
|
30299
|
+
}
|
|
30287
30300
|
if (ctx2.hydrate) {
|
|
30288
30301
|
ctx2.push(`if (props.children !== undefined && props.children !== null) {`);
|
|
30289
30302
|
ctx2.push(` if (typeof props.children === 'function') {`);
|
|
@@ -52066,8 +52079,20 @@ function emitNode2(ctx2, node, tracked2, effectsVar, parentVar, compPrefix = "__
|
|
|
52066
52079
|
return null;
|
|
52067
52080
|
}
|
|
52068
52081
|
if (node instanceof SlotNode) {
|
|
52069
|
-
if (!parentVar)
|
|
52082
|
+
if (!parentVar) {
|
|
52083
|
+
if (ctx2.hydrate) {
|
|
52084
|
+
ctx2.push(`if (props.children !== undefined && props.children !== null) {`);
|
|
52085
|
+
ctx2.push(` if (typeof props.children === 'function') {`);
|
|
52086
|
+
ctx2.push(` __pendingChild = props.children(__hydrate);`);
|
|
52087
|
+
ctx2.push(` } else if (__hydrate && __hydrate.root) {`);
|
|
52088
|
+
ctx2.push(` __hydrate.root.appendChild(toDomNode(props.children));`);
|
|
52089
|
+
ctx2.push(` }`);
|
|
52090
|
+
ctx2.push(`}`);
|
|
52091
|
+
} else {
|
|
52092
|
+
ctx2.push(`if (props.children !== undefined && props.children !== null) __pendingChild = toDomNode(props.children);`);
|
|
52093
|
+
}
|
|
52070
52094
|
return null;
|
|
52095
|
+
}
|
|
52071
52096
|
if (ctx2.hydrate) {
|
|
52072
52097
|
ctx2.push(`if (props.children !== undefined && props.children !== null) {`);
|
|
52073
52098
|
ctx2.push(` if (typeof props.children === 'function') {`);
|
|
@@ -54263,11 +54288,12 @@ function matchUrl(tree, pathname) {
|
|
|
54263
54288
|
function matchNodes(nodes, partIndex) {
|
|
54264
54289
|
for (const node of nodes) {
|
|
54265
54290
|
if (node.isGroup) {
|
|
54266
|
-
|
|
54267
|
-
|
|
54268
|
-
|
|
54291
|
+
const marker = chain.length;
|
|
54292
|
+
if (node.layout || node.page)
|
|
54293
|
+
pushWithStandalone(node);
|
|
54294
|
+
if (matchNodes(node.children, partIndex))
|
|
54269
54295
|
return true;
|
|
54270
|
-
|
|
54296
|
+
chain.length = marker;
|
|
54271
54297
|
if (partIndex >= parts.length && node.page && node.fullPath === "/" + parts.join("/")) {
|
|
54272
54298
|
pushWithStandalone(node);
|
|
54273
54299
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vesk/vesk-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.54",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vesk — compiler-first framework for the post-VDOM web. vesk dev, vesk build.",
|
|
6
6
|
"bin": {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
},
|
|
9
9
|
"main": "./dist/cli.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@vesk/adapter": "^0.2.
|
|
12
|
-
"@vesk/compiler": "^0.2.
|
|
13
|
-
"@vesk/plugin-tailwind": "^0.2.
|
|
14
|
-
"@vesk/runtime": "^0.2.
|
|
11
|
+
"@vesk/adapter": "^0.2.54",
|
|
12
|
+
"@vesk/compiler": "^0.2.54",
|
|
13
|
+
"@vesk/plugin-tailwind": "^0.2.54",
|
|
14
|
+
"@vesk/runtime": "^0.2.54",
|
|
15
15
|
"esrap": "^2.3.0",
|
|
16
16
|
"typescript": "^5.8.0",
|
|
17
17
|
"ws": "^8.18.0",
|