@kubb/react-fabric 0.12.7 → 0.12.9

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 CHANGED
@@ -1,15 +1,20 @@
1
1
  {
2
2
  "name": "@kubb/react-fabric",
3
- "version": "0.12.7",
4
- "description": "React integration for Kubb, providing JSX runtime support and React component generation capabilities for code generation plugins.",
3
+ "version": "0.12.9",
4
+ "description": "React integration for Kubb's fabric - JSX runtime and component-based code generation with React reconciler for building type-safe generators",
5
5
  "keywords": [
6
6
  "react",
7
7
  "jsx",
8
+ "jsx-runtime",
9
+ "react-reconciler",
8
10
  "component-generation",
9
- "typescript",
10
- "code-generator",
11
11
  "codegen",
12
+ "code-generator",
13
+ "typescript",
14
+ "file-generation",
15
+ "plugin-system",
12
16
  "plugins",
17
+ "fabric",
13
18
  "kubb"
14
19
  ],
15
20
  "repository": {
@@ -103,10 +108,10 @@
103
108
  "remeda": "^2.33.4",
104
109
  "signal-exit": "^4.1.0",
105
110
  "ws": "8.18.0",
106
- "@kubb/fabric-core": "0.12.7"
111
+ "@kubb/fabric-core": "0.12.9"
107
112
  },
108
113
  "devDependencies": {
109
- "@types/react": "^19.2.10",
114
+ "@types/react": "^19.2.11",
110
115
  "@types/react-reconciler": "0.32.0",
111
116
  "@types/ws": "^8.18.1",
112
117
  "react": "19.2.3",
package/src/Renderer.ts CHANGED
@@ -75,7 +75,10 @@ export const Renderer = Reconciler({
75
75
  continue
76
76
  }
77
77
 
78
- setAttribute(node, key, value as DOMNodeAttribute)
78
+ // Skip undefined values to match React's behavior
79
+ if (value !== undefined) {
80
+ setAttribute(node, key, value as DOMNodeAttribute)
81
+ }
79
82
  }
80
83
 
81
84
  return node
@@ -125,7 +128,10 @@ export const Renderer = Reconciler({
125
128
 
126
129
  if (props) {
127
130
  for (const [key, value] of Object.entries(props)) {
128
- setAttribute(node, key, value as DOMNodeAttribute)
131
+ // Skip undefined values to match React's behavior
132
+ if (value !== undefined) {
133
+ setAttribute(node, key, value as DOMNodeAttribute)
134
+ }
129
135
  }
130
136
  }
131
137
  },