@kubb/renderer-jsx 5.12.8 → 5.13.1
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/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -410,9 +410,10 @@ function collectFileChildren(element) {
|
|
|
410
410
|
if (text.trim()) throw new Error(`[jsx] '${text}' should be part of <File.Source> component when using the <File/> component`);
|
|
411
411
|
}, (host) => {
|
|
412
412
|
if (host.type === "kubb-source") {
|
|
413
|
-
const { name, isTypeOnly, isExportable, isIndexable, children } = host.props;
|
|
413
|
+
const { name, pointer, isTypeOnly, isExportable, isIndexable, children } = host.props;
|
|
414
414
|
sources.push(_kubb_ast.ast.factory.createSource({
|
|
415
415
|
name: name?.toString(),
|
|
416
|
+
...pointer !== void 0 ? { pointer } : {},
|
|
416
417
|
isTypeOnly: !!isTypeOnly,
|
|
417
418
|
isExportable: !!isExportable,
|
|
418
419
|
isIndexable: !!isIndexable,
|
package/dist/index.js
CHANGED
|
@@ -409,9 +409,10 @@ function collectFileChildren(element) {
|
|
|
409
409
|
if (text.trim()) throw new Error(`[jsx] '${text}' should be part of <File.Source> component when using the <File/> component`);
|
|
410
410
|
}, (host) => {
|
|
411
411
|
if (host.type === "kubb-source") {
|
|
412
|
-
const { name, isTypeOnly, isExportable, isIndexable, children } = host.props;
|
|
412
|
+
const { name, pointer, isTypeOnly, isExportable, isIndexable, children } = host.props;
|
|
413
413
|
sources.push(ast.factory.createSource({
|
|
414
414
|
name: name?.toString(),
|
|
415
|
+
...pointer !== void 0 ? { pointer } : {},
|
|
415
416
|
isTypeOnly: !!isTypeOnly,
|
|
416
417
|
isExportable: !!isExportable,
|
|
417
418
|
isIndexable: !!isIndexable,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/renderer-jsx",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.13.1",
|
|
4
4
|
"description": "Self-contained synchronous JSX renderer for Kubb. Turns JSX into FileNodes with built-in components (File, Function, Type, Const). An alternative for the ast.factory syntax.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codegen",
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
"registry": "https://registry.npmjs.org/"
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@kubb/ast": "5.
|
|
97
|
+
"@kubb/ast": "5.13.1",
|
|
98
98
|
"yaml": "^2.9.1"
|
|
99
99
|
},
|
|
100
100
|
"engines": {
|
|
101
|
-
"node": ">=22.
|
|
101
|
+
"node": ">=22.22"
|
|
102
102
|
},
|
|
103
103
|
"scripts": {
|
|
104
104
|
"build": "tsdown",
|