@pyreon/ui-core 0.15.0 → 0.16.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/lib/index.js +1 -1
- package/package.json +8 -8
- package/src/render.tsx +1 -1
package/lib/index.js
CHANGED
|
@@ -380,7 +380,7 @@ const render = (content, attachProps) => {
|
|
|
380
380
|
if (Array.isArray(content)) return content;
|
|
381
381
|
if (typeof content === "function") {
|
|
382
382
|
if (attachProps && "key" in attachProps) {
|
|
383
|
-
const { key, ...rest } = attachProps;
|
|
383
|
+
const { key: _key, ...rest } = attachProps;
|
|
384
384
|
return h(content, rest);
|
|
385
385
|
}
|
|
386
386
|
return h(content, attachProps ?? {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pyreon/ui-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Core utilities, config, and context for Pyreon UI System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@pyreon/manifest": "0.13.1",
|
|
41
|
-
"@pyreon/typescript": "^0.
|
|
41
|
+
"@pyreon/typescript": "^0.16.0",
|
|
42
42
|
"@vitus-labs/tools-rolldown": "^2.3.0"
|
|
43
43
|
},
|
|
44
|
-
"peerDependencies": {
|
|
45
|
-
"@pyreon/core": "^0.15.0",
|
|
46
|
-
"@pyreon/reactivity": "^0.15.0",
|
|
47
|
-
"@pyreon/styler": "^0.15.0",
|
|
48
|
-
"@pyreon/unistyle": "^0.15.0"
|
|
49
|
-
},
|
|
50
44
|
"engines": {
|
|
51
45
|
"node": ">= 22"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@pyreon/core": "^0.16.0",
|
|
49
|
+
"@pyreon/reactivity": "^0.16.0",
|
|
50
|
+
"@pyreon/styler": "^0.16.0",
|
|
51
|
+
"@pyreon/unistyle": "^0.16.0"
|
|
52
52
|
}
|
|
53
53
|
}
|
package/src/render.tsx
CHANGED
|
@@ -33,7 +33,7 @@ const render: Render = (content, attachProps) => {
|
|
|
33
33
|
// Extract key from props — it's a VNode concept, not a component prop.
|
|
34
34
|
// Passing key inside props causes JSX runtime warnings.
|
|
35
35
|
if (attachProps && 'key' in attachProps) {
|
|
36
|
-
const { key, ...rest } = attachProps
|
|
36
|
+
const { key: _key, ...rest } = attachProps
|
|
37
37
|
return h(content as string | ComponentFn, rest as Props)
|
|
38
38
|
}
|
|
39
39
|
return h(content as string | ComponentFn, (attachProps ?? {}) as Props)
|