@jxsuite/site 2.1.0 → 2.2.0
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/package.json +2 -2
- package/src/layout.ts +2 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jxsuite/site",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "What a Jx project's page at a route consists of — routing, layout, context, head and the document that boots it",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test:coverage": "bun test --isolate --coverage"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@jxsuite/runtime": "^5.
|
|
34
|
+
"@jxsuite/runtime": "^5.2.0",
|
|
35
35
|
"@jxsuite/schema": "^4.0.0"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/layout.ts
CHANGED
|
@@ -178,11 +178,9 @@ function fillSlots(
|
|
|
178
178
|
newChildren.push(...defaults);
|
|
179
179
|
// Don't clear defaults — only one default slot should exist,
|
|
180
180
|
// But if there are multiple, the first one wins
|
|
181
|
-
} else {
|
|
181
|
+
} else if (Array.isArray(child.children)) {
|
|
182
182
|
// No matching content — keep slot's fallback children
|
|
183
|
-
|
|
184
|
-
newChildren.push(...child.children);
|
|
185
|
-
}
|
|
183
|
+
newChildren.push(...child.children);
|
|
186
184
|
}
|
|
187
185
|
} else {
|
|
188
186
|
// Not a slot — recurse into it
|