@kubb/renderer-jsx 5.13.1 → 5.14.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 CHANGED
@@ -410,13 +410,14 @@ 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, pointer, isTypeOnly, isExportable, isIndexable, children } = host.props;
413
+ const { name, pointer, isTypeOnly, isExportable, isIndexable, inline, children } = host.props;
414
414
  sources.push(_kubb_ast.ast.factory.createSource({
415
415
  name: name?.toString(),
416
416
  ...pointer !== void 0 ? { pointer } : {},
417
417
  isTypeOnly: !!isTypeOnly,
418
418
  isExportable: !!isExportable,
419
419
  isIndexable: !!isIndexable,
420
+ ...inline ? { inline } : {},
420
421
  nodes: collectCodeNodes(children)
421
422
  }));
422
423
  return;
package/dist/index.js CHANGED
@@ -409,13 +409,14 @@ 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, pointer, isTypeOnly, isExportable, isIndexable, children } = host.props;
412
+ const { name, pointer, isTypeOnly, isExportable, isIndexable, inline, children } = host.props;
413
413
  sources.push(ast.factory.createSource({
414
414
  name: name?.toString(),
415
415
  ...pointer !== void 0 ? { pointer } : {},
416
416
  isTypeOnly: !!isTypeOnly,
417
417
  isExportable: !!isExportable,
418
418
  isIndexable: !!isIndexable,
419
+ ...inline ? { inline } : {},
419
420
  nodes: collectCodeNodes(children)
420
421
  }));
421
422
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/renderer-jsx",
3
- "version": "5.13.1",
3
+ "version": "5.14.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,7 +94,7 @@
94
94
  "registry": "https://registry.npmjs.org/"
95
95
  },
96
96
  "dependencies": {
97
- "@kubb/ast": "5.13.1",
97
+ "@kubb/ast": "5.14.1",
98
98
  "yaml": "^2.9.1"
99
99
  },
100
100
  "engines": {