nexa-runtime 0.8.2 → 0.8.4
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/vdom/dom.js +3 -0
- package/dist/vdom/mountComponent.js +2 -1
- package/package.json +2 -2
package/dist/vdom/dom.js
CHANGED
|
@@ -70,11 +70,12 @@ export function mountComponent(vnode, parent, options, anchor = null) {
|
|
|
70
70
|
childSlots = extractSlots(vnode.children);
|
|
71
71
|
}
|
|
72
72
|
const slotsSignal = signal(childSlots);
|
|
73
|
-
// Use a proxy or dynamic getters for slots to ensure they are always fresh
|
|
74
73
|
const slotsProxy = new Proxy({}, {
|
|
75
74
|
get(_, name) {
|
|
76
75
|
if (name === 'value')
|
|
77
76
|
return slotsSignal.value;
|
|
77
|
+
if (name !== 'default' && !(slotsSignal.value && name in slotsSignal.value))
|
|
78
|
+
return null;
|
|
78
79
|
return (props) => {
|
|
79
80
|
const slotData = slotsSignal.value[name] || (name === 'default' && slotsSignal.value.default ? slotsSignal.value.default : null);
|
|
80
81
|
if (!slotData)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexa-runtime",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"nexa-reactivity": "0.8.
|
|
16
|
+
"nexa-reactivity": "0.8.4"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"dist"
|