@kubb/renderer-jsx 5.0.0-beta.67 → 5.0.0-beta.69

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
@@ -582,6 +582,7 @@ function* walkFiles(element) {
582
582
  meta: props["meta"] || {},
583
583
  footer: props["footer"],
584
584
  banner: props["banner"],
585
+ copy: props["copy"],
585
586
  sources,
586
587
  exports,
587
588
  imports
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
2
- import { d as KubbReactNode, n as Key, t as JSDoc, u as KubbReactElement } from "./types-CC4v2M00.js";
2
+ import { d as KubbReactNode, n as Key, t as JSDoc, u as KubbReactElement } from "./types-OZ23urxc.js";
3
3
  import { ExportNode, FileNode, ImportNode, SourceNode } from "@kubb/ast";
4
4
 
5
5
  //#region src/components/Callout.d.ts
@@ -163,6 +163,13 @@ type Props$6<TMeta> = BaseProps & {
163
163
  * Accepts `null` so `resolver.resolveFooter()` results can be passed directly.
164
164
  */
165
165
  footer?: string | null;
166
+ /**
167
+ * Absolute on-disk path to copy verbatim into the output, bypassing the parser. Use to emit a
168
+ * real source file shipped inside a package (a template) into the generated folder. Only
169
+ * `banner`/`footer` are applied around the copied content; child source blocks are ignored for
170
+ * output but still drive barrel generation.
171
+ */
172
+ copy?: string | null;
166
173
  /**
167
174
  * Child nodes rendered as the content of this file (source blocks, imports, exports).
168
175
  */
package/dist/index.js CHANGED
@@ -581,6 +581,7 @@ function* walkFiles(element) {
581
581
  meta: props["meta"] || {},
582
582
  footer: props["footer"],
583
583
  banner: props["banner"],
584
+ copy: props["copy"],
584
585
  sources,
585
586
  exports,
586
587
  imports
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
2
- import { d as KubbReactNode, u as KubbReactElement } from "./types-CC4v2M00.js";
2
+ import { d as KubbReactNode, u as KubbReactElement } from "./types-OZ23urxc.js";
3
3
  import { Fragment, JSX, jsxDEV } from "./jsx-runtime.js";
4
4
 
5
5
  //#region src/jsx-dev-runtime.d.ts
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
2
- import { a as KubbExportProps, c as KubbImportProps, d as KubbReactNode, f as KubbSourceProps, i as KubbConstProps, l as KubbJsxProps, m as LineBreakProps, n as Key, o as KubbFileProps, p as KubbTypeProps, r as KubbArrowFunctionProps, s as KubbFunctionProps, u as KubbReactElement } from "./types-CC4v2M00.js";
2
+ import { a as KubbExportProps, c as KubbImportProps, d as KubbReactNode, f as KubbSourceProps, i as KubbConstProps, l as KubbJsxProps, m as LineBreakProps, n as Key, o as KubbFileProps, p as KubbTypeProps, r as KubbArrowFunctionProps, s as KubbFunctionProps, u as KubbReactElement } from "./types-OZ23urxc.js";
3
3
 
4
4
  //#region src/jsx-namespace.d.ts
5
5
  /**
@@ -36,7 +36,11 @@ type KubbFileProps = {
36
36
  children?: KubbReactNode;
37
37
  baseName: string;
38
38
  path: string;
39
- override?: boolean | null;
39
+ /**
40
+ * Absolute on-disk path to copy verbatim into the output, bypassing the parser. Use to emit a
41
+ * real source file shipped inside a package (a template) into the generated folder.
42
+ */
43
+ copy?: string | null;
40
44
  meta?: FileNode['meta'] | null;
41
45
  };
42
46
  /**
@@ -112,4 +116,4 @@ type JSDoc = {
112
116
  };
113
117
  //#endregion
114
118
  export { KubbExportProps as a, KubbImportProps as c, KubbReactNode as d, KubbSourceProps as f, KubbConstProps as i, KubbJsxProps as l, LineBreakProps as m, Key as n, KubbFileProps as o, KubbTypeProps as p, KubbArrowFunctionProps as r, KubbFunctionProps as s, JSDoc as t, KubbReactElement as u };
115
- //# sourceMappingURL=types-CC4v2M00.d.ts.map
119
+ //# sourceMappingURL=types-OZ23urxc.d.ts.map
package/dist/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as KubbExportProps, c as KubbImportProps, d as KubbReactNode, f as KubbSourceProps, i as KubbConstProps, l as KubbJsxProps, m as LineBreakProps, n as Key, o as KubbFileProps, p as KubbTypeProps, r as KubbArrowFunctionProps, s as KubbFunctionProps, t as JSDoc, u as KubbReactElement } from "./types-CC4v2M00.js";
1
+ import { a as KubbExportProps, c as KubbImportProps, d as KubbReactNode, f as KubbSourceProps, i as KubbConstProps, l as KubbJsxProps, m as LineBreakProps, n as Key, o as KubbFileProps, p as KubbTypeProps, r as KubbArrowFunctionProps, s as KubbFunctionProps, t as JSDoc, u as KubbReactElement } from "./types-OZ23urxc.js";
2
2
  export { JSDoc, Key, KubbArrowFunctionProps, KubbConstProps, KubbExportProps, KubbFileProps, KubbFunctionProps, KubbImportProps, KubbJsxProps, KubbReactElement, KubbReactNode, KubbSourceProps, KubbTypeProps, LineBreakProps };
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@kubb/renderer-jsx",
3
- "version": "5.0.0-beta.67",
3
+ "version": "5.0.0-beta.69",
4
4
  "description": "Self-contained synchronous JSX renderer for Kubb. Turns JSX into FileNodes with built-in components (File, Function, Type, Const) for component-based, type-safe code generation. No React dependency.",
5
5
  "keywords": [
6
6
  "codegen",
7
7
  "jsx",
8
8
  "jsx-runtime",
9
9
  "kubb",
10
+ "meta-framework",
10
11
  "typescript"
11
12
  ],
12
13
  "license": "MIT",
@@ -68,7 +69,7 @@
68
69
  },
69
70
  "dependencies": {
70
71
  "yaml": "^2.9.0",
71
- "@kubb/ast": "5.0.0-beta.67"
72
+ "@kubb/ast": "5.0.0-beta.69"
72
73
  },
73
74
  "devDependencies": {
74
75
  "@internals/utils": "0.0.0"