@kubb/renderer-jsx 5.0.0-beta.62 → 5.0.0-beta.64

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
@@ -1,8 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_jsx_runtime = require("./jsx-runtime-3ncySO6L.cjs");
2
+ const require_rolldown_runtime = require("./rolldown-runtime-Bx3C2hgW.cjs");
3
+ const require_jsx_runtime = require("./jsx-runtime.cjs");
3
4
  let yaml = require("yaml");
4
5
  let _kubb_ast_factory = require("@kubb/ast/factory");
5
- _kubb_ast_factory = require_jsx_runtime.__toESM(_kubb_ast_factory);
6
+ _kubb_ast_factory = require_rolldown_runtime.__toESM(_kubb_ast_factory, 1);
6
7
  //#region src/components/Callout.tsx
7
8
  const CALLOUT_LABEL = {
8
9
  tip: "TIP",
@@ -12,8 +13,7 @@ const CALLOUT_LABEL = {
12
13
  caution: "CAUTION"
13
14
  };
14
15
  /**
15
- * Renders a GitHub-style alert callout, portable across GitHub, GitLab,
16
- * VitePress, Obsidian, and MDX.
16
+ * Renders a GitHub-style alert callout using the `> [!TYPE]` blockquote syntax.
17
17
  *
18
18
  * Emits a `<File.Source>` block containing `> [!TYPE] Title` followed by the
19
19
  * body with every line prefixed by `> `.
@@ -99,8 +99,8 @@ File.displayName = "File";
99
99
  /**
100
100
  * Marks a block of source text to be associated with the enclosing {@link File}.
101
101
  *
102
- * Children are treated as the source string. When `isExportable` is `true` the
103
- * `name` is used for deduplication and barrel generation.
102
+ * Children are treated as the source string. `isExportable` prepends the `export` keyword,
103
+ * `isIndexable` includes the source in barrel/index generation, and `name` keys deduplication.
104
104
  *
105
105
  * @example Exportable, indexable source block
106
106
  * ```tsx
@@ -198,8 +198,7 @@ File.Source = FileSource;
198
198
  *
199
199
  * Renders a `<File.Source>` block containing `---\n<yaml>\n---`. Place it as
200
200
  * the first child of `<File>` so it appears at the top of the output. Pair with
201
- * `parserMd` to write `.md` files that downstream tooling (VitePress, MDX,
202
- * static-site generators) treats as frontmatter.
201
+ * `parserMd` to write `.md` files whose frontmatter downstream tooling can read.
203
202
  *
204
203
  * @example Page frontmatter at the top of a generated markdown file
205
204
  * ```tsx
@@ -214,7 +213,7 @@ File.Source = FileSource;
214
213
  function Frontmatter({ data }) {
215
214
  return /* @__PURE__ */ require_jsx_runtime.jsx("kubb-source", {
216
215
  name: "frontmatter",
217
- children: `---\n${(0, yaml.stringify)(data).trimEnd()}\n---`
216
+ children: Object.keys(data).length === 0 ? "" : `---\n${(0, yaml.stringify)(data).trimEnd()}\n---`
218
217
  });
219
218
  }
220
219
  Frontmatter.displayName = "Frontmatter";
@@ -304,10 +303,10 @@ Heading.displayName = "Heading";
304
303
  /**
305
304
  * Embeds a raw JSX string verbatim in the generated source code.
306
305
  *
307
- * Use this component when you need to include JSX markup (including fragments
308
- * `<>…</>`) in the body of a generated function or component. The `children`
309
- * prop must be a plain string, expression attributes that reference runtime
310
- * values should be written as template literals.
306
+ * Use this component to include JSX markup (including fragments `<>…</>`) in the
307
+ * body of a generated function or component. The `children` prop must be a plain
308
+ * string. Write expression attributes that reference runtime values as template
309
+ * literals.
311
310
  *
312
311
  * @example
313
312
  * ```tsx
@@ -404,10 +403,10 @@ Type.displayName = "Type";
404
403
  //#endregion
405
404
  //#region src/SyncRuntime.tsx
406
405
  /**
407
- * Walks `element`, resolving arrays, Fragments, and function components
408
- * transparently, then calls `onText` for primitive values and `onHost` for
409
- * every host element encountered. Pure function components are called
410
- * synchronously. Hooks and class components are not supported.
406
+ * Walks `element`, resolving arrays, Fragments, and function components, then
407
+ * calls `onText` for primitive values and `onHost` for each host element.
408
+ * Function components are called synchronously. Hooks and class components are
409
+ * not supported.
411
410
  */
412
411
  function walkElement(element, onText, onHost) {
413
412
  if (element == null || typeof element === "boolean") return;
@@ -597,8 +596,7 @@ function* walkFiles(element) {
597
596
  * DOM. No React fiber, scheduler, or work loop is involved.
598
597
  *
599
598
  * All components must be pure functions. Hooks and class components are not
600
- * supported. Produces identical output to the React-backed {@link Runtime} at
601
- * approximately 2, 4× the speed and a fraction of the allocations.
599
+ * supported.
602
600
  */
603
601
  var SyncRuntime = class {
604
602
  /**
@@ -632,14 +630,14 @@ var SyncRuntime = class {
632
630
  //#endregion
633
631
  //#region src/createRenderer.tsx
634
632
  /**
635
- * Renderer that walks the JSX tree in a single recursive pass, with no React
636
- * reconciler or scheduler. Pass as the `renderer` property on
637
- * `defineGenerator`. Kubb core stays generic, with no hard dependency on
638
- * `@kubb/renderer-jsx`.
633
+ * Factory for a renderer that walks the JSX tree in a single recursive pass,
634
+ * with no React reconciler or scheduler. Pass it as the `renderer` property on
635
+ * `defineGenerator`. Kubb core calls the factory once per render cycle and stays
636
+ * generic, with no hard dependency on `@kubb/renderer-jsx`.
639
637
  *
640
638
  * Every component must be a pure function. Hooks, suspense, and class
641
- * components are not supported. It also exposes `stream()` for incremental
642
- * file emission.
639
+ * components are not supported. The returned renderer also exposes `stream()`
640
+ * for incremental file emission.
643
641
  *
644
642
  * @example Wire up a JSX generator
645
643
  * ```tsx
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { t as __name } from "./chunk-C0LytTxp.js";
2
- import { d as KubbReactNode, n as Key, t as JSDoc, u as KubbReactElement } from "./types-UI1cZVah.js";
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";
3
3
  import { ExportNode, FileNode, ImportNode, SourceNode } from "@kubb/ast";
4
4
 
5
5
  //#region src/components/Callout.d.ts
@@ -28,8 +28,7 @@ type Props$7 = {
28
28
  children: string;
29
29
  };
30
30
  /**
31
- * Renders a GitHub-style alert callout, portable across GitHub, GitLab,
32
- * VitePress, Obsidian, and MDX.
31
+ * Renders a GitHub-style alert callout using the `> [!TYPE]` blockquote syntax.
33
32
  *
34
33
  * Emits a `<File.Source>` block containing `> [!TYPE] Title` followed by the
35
34
  * body with every line prefixed by `> `.
@@ -68,7 +67,6 @@ type ConstProps = {
68
67
  * Emit the `export` keyword before the `const` declaration.
69
68
  * - `true` generates `export const name = …`
70
69
  * - `false` generates `const name = …`
71
- * @default false
72
70
  */
73
71
  export?: boolean | null;
74
72
  /**
@@ -84,14 +82,13 @@ type ConstProps = {
84
82
  */
85
83
  JSDoc?: JSDoc | null;
86
84
  /**
87
- * Append `as const` after the initialiser, enabling TypeScript const assertions.
85
+ * Append `as const` after the initializer, enabling TypeScript const assertions.
88
86
  * - `true` generates `const name = … as const`
89
87
  * - `false` generates `const name = …`
90
- * @default false
91
88
  */
92
89
  asConst?: boolean | null;
93
90
  /**
94
- * Child nodes rendered as the initialiser expression of the constant.
91
+ * Child nodes rendered as the initializer expression of the constant.
95
92
  */
96
93
  children?: KubbReactNode;
97
94
  };
@@ -153,8 +150,7 @@ type BaseProps = BasePropsWithBaseName | BasePropsWithoutBaseName;
153
150
  type Props$6<TMeta> = BaseProps & {
154
151
  key?: Key;
155
152
  /**
156
- * Arbitrary metadata attached to the file node.
157
- * Used by plugins for barrel generation and custom post-processing.
153
+ * Arbitrary metadata attached to the file node for plugins to read.
158
154
  */
159
155
  meta?: TMeta | null;
160
156
  /**
@@ -208,8 +204,8 @@ type FileSourceProps = Omit<SourceNode, 'kind' | 'value'> & {
208
204
  /**
209
205
  * Marks a block of source text to be associated with the enclosing {@link File}.
210
206
  *
211
- * Children are treated as the source string. When `isExportable` is `true` the
212
- * `name` is used for deduplication and barrel generation.
207
+ * Children are treated as the source string. `isExportable` prepends the `export` keyword,
208
+ * `isIndexable` includes the source in barrel/index generation, and `name` keys deduplication.
213
209
  *
214
210
  * @example Exportable, indexable source block
215
211
  * ```tsx
@@ -294,7 +290,7 @@ type Props$5 = {
294
290
  * Plain object serialized as YAML between `---` fences.
295
291
  *
296
292
  * @example
297
- * `data: { title: 'Pets', layout: 'doc' }`
293
+ * `{ title: 'Pets', layout: 'doc' }`
298
294
  */
299
295
  data: Record<string, unknown>;
300
296
  };
@@ -303,8 +299,7 @@ type Props$5 = {
303
299
  *
304
300
  * Renders a `<File.Source>` block containing `---\n<yaml>\n---`. Place it as
305
301
  * the first child of `<File>` so it appears at the top of the output. Pair with
306
- * `parserMd` to write `.md` files that downstream tooling (VitePress, MDX,
307
- * static-site generators) treats as frontmatter.
302
+ * `parserMd` to write `.md` files whose frontmatter downstream tooling can read.
308
303
  *
309
304
  * @example Page frontmatter at the top of a generated markdown file
310
305
  * ```tsx
@@ -336,7 +331,6 @@ type Props$4 = {
336
331
  /**
337
332
  * Emit `default` after the `export` keyword, making this the module's default export.
338
333
  * Requires `export` to also be `true`.
339
- * @default false
340
334
  */
341
335
  default?: boolean | null;
342
336
  /**
@@ -350,14 +344,12 @@ type Props$4 = {
350
344
  * Emit the `export` keyword before the function declaration.
351
345
  * - `true` generates `export function name(…) { … }`
352
346
  * - `false` generates `function name(…) { … }`
353
- * @default false
354
347
  */
355
348
  export?: boolean | null;
356
349
  /**
357
350
  * Emit the `async` keyword, making this an async function.
358
351
  * The return type is automatically wrapped in `Promise<returnType>` when both
359
352
  * `async` and `returnType` are set.
360
- * @default false
361
353
  */
362
354
  async?: boolean | null;
363
355
  /**
@@ -415,7 +407,6 @@ type ArrowFunctionProps = Props$4 & {
415
407
  * Render the arrow function as a single-line expression (no braces around the body).
416
408
  * - `true` generates `const name = (…) => expression`
417
409
  * - `false` generates `const name = (…) => { … }`
418
- * @default false
419
410
  */
420
411
  singleLine?: boolean | null;
421
412
  };
@@ -477,8 +468,9 @@ declare namespace Heading {
477
468
  //#region src/components/Jsx.d.ts
478
469
  type Props$2 = {
479
470
  /**
480
- * Raw JSX string to embed verbatim in the generated code.
481
- * Supports JSX fragments (`<>…</>`), elements, and any valid JSX syntax.
471
+ * Raw JSX string embedded verbatim in the generated code, including
472
+ * fragments (`<>…</>`).
473
+ *
482
474
  * @example
483
475
  * ```tsx
484
476
  * <Jsx>{'<>\n <a href={href}>Open</a>\n</>'}</Jsx>
@@ -489,10 +481,10 @@ type Props$2 = {
489
481
  /**
490
482
  * Embeds a raw JSX string verbatim in the generated source code.
491
483
  *
492
- * Use this component when you need to include JSX markup (including fragments
493
- * `<>…</>`) in the body of a generated function or component. The `children`
494
- * prop must be a plain string, expression attributes that reference runtime
495
- * values should be written as template literals.
484
+ * Use this component to include JSX markup (including fragments `<>…</>`) in the
485
+ * body of a generated function or component. The `children` prop must be a plain
486
+ * string. Write expression attributes that reference runtime values as template
487
+ * literals.
496
488
  *
497
489
  * @example
498
490
  * ```tsx
@@ -591,7 +583,6 @@ type TypeProps = {
591
583
  * Emit the `export` keyword before the type alias declaration.
592
584
  * - `true` generates `export type Name = …`
593
585
  * - `false` generates `type Name = …`
594
- * @default false
595
586
  */
596
587
  export?: boolean | null;
597
588
  /**
@@ -635,14 +626,14 @@ declare namespace Type {
635
626
  //#endregion
636
627
  //#region src/createRenderer.d.ts
637
628
  /**
638
- * Renderer that walks the JSX tree in a single recursive pass, with no React
639
- * reconciler or scheduler. Pass as the `renderer` property on
640
- * `defineGenerator`. Kubb core stays generic, with no hard dependency on
641
- * `@kubb/renderer-jsx`.
629
+ * Factory for a renderer that walks the JSX tree in a single recursive pass,
630
+ * with no React reconciler or scheduler. Pass it as the `renderer` property on
631
+ * `defineGenerator`. Kubb core calls the factory once per render cycle and stays
632
+ * generic, with no hard dependency on `@kubb/renderer-jsx`.
642
633
  *
643
634
  * Every component must be a pure function. Hooks, suspense, and class
644
- * components are not supported. It also exposes `stream()` for incremental
645
- * file emission.
635
+ * components are not supported. The returned renderer also exposes `stream()`
636
+ * for incremental file emission.
646
637
  *
647
638
  * @example Wire up a JSX generator
648
639
  * ```tsx
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-C0LytTxp.js";
1
+ import "./rolldown-runtime-C0LytTxp.js";
2
2
  import { Fragment, jsx } from "./jsx-runtime.js";
3
3
  import { stringify } from "yaml";
4
4
  import * as factory from "@kubb/ast/factory";
@@ -11,8 +11,7 @@ const CALLOUT_LABEL = {
11
11
  caution: "CAUTION"
12
12
  };
13
13
  /**
14
- * Renders a GitHub-style alert callout, portable across GitHub, GitLab,
15
- * VitePress, Obsidian, and MDX.
14
+ * Renders a GitHub-style alert callout using the `> [!TYPE]` blockquote syntax.
16
15
  *
17
16
  * Emits a `<File.Source>` block containing `> [!TYPE] Title` followed by the
18
17
  * body with every line prefixed by `> `.
@@ -98,8 +97,8 @@ File.displayName = "File";
98
97
  /**
99
98
  * Marks a block of source text to be associated with the enclosing {@link File}.
100
99
  *
101
- * Children are treated as the source string. When `isExportable` is `true` the
102
- * `name` is used for deduplication and barrel generation.
100
+ * Children are treated as the source string. `isExportable` prepends the `export` keyword,
101
+ * `isIndexable` includes the source in barrel/index generation, and `name` keys deduplication.
103
102
  *
104
103
  * @example Exportable, indexable source block
105
104
  * ```tsx
@@ -197,8 +196,7 @@ File.Source = FileSource;
197
196
  *
198
197
  * Renders a `<File.Source>` block containing `---\n<yaml>\n---`. Place it as
199
198
  * the first child of `<File>` so it appears at the top of the output. Pair with
200
- * `parserMd` to write `.md` files that downstream tooling (VitePress, MDX,
201
- * static-site generators) treats as frontmatter.
199
+ * `parserMd` to write `.md` files whose frontmatter downstream tooling can read.
202
200
  *
203
201
  * @example Page frontmatter at the top of a generated markdown file
204
202
  * ```tsx
@@ -213,7 +211,7 @@ File.Source = FileSource;
213
211
  function Frontmatter({ data }) {
214
212
  return /* @__PURE__ */ jsx("kubb-source", {
215
213
  name: "frontmatter",
216
- children: `---\n${stringify(data).trimEnd()}\n---`
214
+ children: Object.keys(data).length === 0 ? "" : `---\n${stringify(data).trimEnd()}\n---`
217
215
  });
218
216
  }
219
217
  Frontmatter.displayName = "Frontmatter";
@@ -303,10 +301,10 @@ Heading.displayName = "Heading";
303
301
  /**
304
302
  * Embeds a raw JSX string verbatim in the generated source code.
305
303
  *
306
- * Use this component when you need to include JSX markup (including fragments
307
- * `<>…</>`) in the body of a generated function or component. The `children`
308
- * prop must be a plain string, expression attributes that reference runtime
309
- * values should be written as template literals.
304
+ * Use this component to include JSX markup (including fragments `<>…</>`) in the
305
+ * body of a generated function or component. The `children` prop must be a plain
306
+ * string. Write expression attributes that reference runtime values as template
307
+ * literals.
310
308
  *
311
309
  * @example
312
310
  * ```tsx
@@ -403,10 +401,10 @@ Type.displayName = "Type";
403
401
  //#endregion
404
402
  //#region src/SyncRuntime.tsx
405
403
  /**
406
- * Walks `element`, resolving arrays, Fragments, and function components
407
- * transparently, then calls `onText` for primitive values and `onHost` for
408
- * every host element encountered. Pure function components are called
409
- * synchronously. Hooks and class components are not supported.
404
+ * Walks `element`, resolving arrays, Fragments, and function components, then
405
+ * calls `onText` for primitive values and `onHost` for each host element.
406
+ * Function components are called synchronously. Hooks and class components are
407
+ * not supported.
410
408
  */
411
409
  function walkElement(element, onText, onHost) {
412
410
  if (element == null || typeof element === "boolean") return;
@@ -596,8 +594,7 @@ function* walkFiles(element) {
596
594
  * DOM. No React fiber, scheduler, or work loop is involved.
597
595
  *
598
596
  * All components must be pure functions. Hooks and class components are not
599
- * supported. Produces identical output to the React-backed {@link Runtime} at
600
- * approximately 2, 4× the speed and a fraction of the allocations.
597
+ * supported.
601
598
  */
602
599
  var SyncRuntime = class {
603
600
  /**
@@ -631,14 +628,14 @@ var SyncRuntime = class {
631
628
  //#endregion
632
629
  //#region src/createRenderer.tsx
633
630
  /**
634
- * Renderer that walks the JSX tree in a single recursive pass, with no React
635
- * reconciler or scheduler. Pass as the `renderer` property on
636
- * `defineGenerator`. Kubb core stays generic, with no hard dependency on
637
- * `@kubb/renderer-jsx`.
631
+ * Factory for a renderer that walks the JSX tree in a single recursive pass,
632
+ * with no React reconciler or scheduler. Pass it as the `renderer` property on
633
+ * `defineGenerator`. Kubb core calls the factory once per render cycle and stays
634
+ * generic, with no hard dependency on `@kubb/renderer-jsx`.
638
635
  *
639
636
  * Every component must be a pure function. Hooks, suspense, and class
640
- * components are not supported. It also exposes `stream()` for incremental
641
- * file emission.
637
+ * components are not supported. The returned renderer also exposes `stream()`
638
+ * for incremental file emission.
642
639
  *
643
640
  * @example Wire up a JSX generator
644
641
  * ```tsx
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_jsx_runtime = require("./jsx-runtime-3ncySO6L.cjs");
2
+ const require_jsx_runtime = require("./jsx-runtime.cjs");
3
3
  exports.Fragment = require_jsx_runtime.Fragment;
4
4
  exports.jsxDEV = require_jsx_runtime.jsxDEV;
@@ -1,5 +1,5 @@
1
- import { t as __name } from "./chunk-C0LytTxp.js";
2
- import { d as KubbReactNode, u as KubbReactElement } from "./types-UI1cZVah.js";
1
+ import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
2
+ import { d as KubbReactNode, u as KubbReactElement } from "./types-CC4v2M00.js";
3
3
  import { Fragment, JSX, jsxDEV } from "./jsx-runtime.js";
4
4
 
5
5
  //#region src/jsx-dev-runtime.d.ts
@@ -1,6 +1,33 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_jsx_runtime = require("./jsx-runtime-3ncySO6L.cjs");
3
- exports.Fragment = require_jsx_runtime.Fragment;
4
- exports.jsx = require_jsx_runtime.jsx;
5
- exports.jsxDEV = require_jsx_runtime.jsxDEV;
6
- exports.jsxs = require_jsx_runtime.jsxs;
2
+ require("./rolldown-runtime-Bx3C2hgW.cjs");
3
+ //#region src/jsx-runtime.ts
4
+ const KUBB_ELEMENT = Symbol.for("kubb.element");
5
+ /**
6
+ * Fragment marker. A `<>…</>` compiles to `jsx(Fragment, …)`, and the renderer
7
+ * unwraps it while walking the tree.
8
+ */
9
+ const Fragment = Symbol.for("kubb.fragment");
10
+ /**
11
+ * Create a Kubb JSX element. The automatic JSX runtime calls this for every tag,
12
+ * so the renderer never depends on React at runtime. The `type` is a host
13
+ * string, a function component, or `Fragment`, and children are folded into
14
+ * `props`.
15
+ */
16
+ function createElement(type, props, key) {
17
+ return {
18
+ $$typeof: KUBB_ELEMENT,
19
+ type,
20
+ key: key ?? null,
21
+ props: props ?? {}
22
+ };
23
+ }
24
+ const jsx = createElement;
25
+ const jsxs = createElement;
26
+ const jsxDEV = createElement;
27
+ //#endregion
28
+ exports.Fragment = Fragment;
29
+ exports.jsx = jsx;
30
+ exports.jsxDEV = jsxDEV;
31
+ exports.jsxs = jsxs;
32
+
33
+ //# sourceMappingURL=jsx-runtime.cjs.map
@@ -1,14 +1,13 @@
1
- import { t as __name } from "./chunk-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-UI1cZVah.js";
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";
3
3
 
4
4
  //#region src/jsx-namespace.d.ts
5
5
  /**
6
6
  * JSX contract for `@kubb/renderer-jsx`, resolved through `jsxImportSource`.
7
7
  *
8
8
  * It is self-contained and does not extend `React.JSX`. The renderer only emits
9
- * the custom `kubb-*` hosts plus `br`, `indent`, and `dedent`, and supports
10
- * pure function components, so the HTML element and class-component machinery
11
- * from `@types/react` is not needed.
9
+ * the custom `kubb-*` hosts plus `br`, and supports pure function components, so
10
+ * the HTML element and class-component machinery from `@types/react` is not needed.
12
11
  */
13
12
  declare namespace JSX {
14
13
  type ElementType = string | ((props: any) => KubbReactNode);
@@ -1,4 +1,4 @@
1
- import "./chunk-C0LytTxp.js";
1
+ import "./rolldown-runtime-C0LytTxp.js";
2
2
  //#region src/jsx-runtime.ts
3
3
  const KUBB_ELEMENT = Symbol.for("kubb.element");
4
4
  /**
@@ -24,37 +24,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
- //#region src/jsx-runtime.ts
28
- const KUBB_ELEMENT = Symbol.for("kubb.element");
29
- /**
30
- * Fragment marker. A `<>…</>` compiles to `jsx(Fragment, …)`, and the renderer
31
- * unwraps it while walking the tree.
32
- */
33
- const Fragment = Symbol.for("kubb.fragment");
34
- /**
35
- * Create a Kubb JSX element. The automatic JSX runtime calls this for every tag,
36
- * so the renderer never depends on React at runtime. The `type` is a host
37
- * string, a function component, or `Fragment`, and children are folded into
38
- * `props`.
39
- */
40
- function createElement(type, props, key) {
41
- return {
42
- $$typeof: KUBB_ELEMENT,
43
- type,
44
- key: key ?? null,
45
- props: props ?? {}
46
- };
47
- }
48
- const jsx = createElement;
49
- const jsxs = createElement;
50
- const jsxDEV = createElement;
51
- //#endregion
52
- Object.defineProperty(exports, "Fragment", {
53
- enumerable: true,
54
- get: function() {
55
- return Fragment;
56
- }
57
- });
58
27
  Object.defineProperty(exports, "__name", {
59
28
  enumerable: true,
60
29
  get: function() {
@@ -67,23 +36,3 @@ Object.defineProperty(exports, "__toESM", {
67
36
  return __toESM;
68
37
  }
69
38
  });
70
- Object.defineProperty(exports, "jsx", {
71
- enumerable: true,
72
- get: function() {
73
- return jsx;
74
- }
75
- });
76
- Object.defineProperty(exports, "jsxDEV", {
77
- enumerable: true,
78
- get: function() {
79
- return jsxDEV;
80
- }
81
- });
82
- Object.defineProperty(exports, "jsxs", {
83
- enumerable: true,
84
- get: function() {
85
- return jsxs;
86
- }
87
- });
88
-
89
- //# sourceMappingURL=jsx-runtime-3ncySO6L.cjs.map
@@ -1,4 +1,4 @@
1
- import { t as __name } from "./chunk-C0LytTxp.js";
1
+ import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
2
2
  import { ArrowFunctionNode, ConstNode, ExportNode, FileNode, FunctionNode, ImportNode, SourceNode, TypeNode } from "@kubb/ast";
3
3
 
4
4
  //#region src/types.d.ts
@@ -112,4 +112,4 @@ type JSDoc = {
112
112
  };
113
113
  //#endregion
114
114
  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-UI1cZVah.d.ts.map
115
+ //# sourceMappingURL=types-CC4v2M00.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-UI1cZVah.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-CC4v2M00.js";
2
2
  export { JSDoc, Key, KubbArrowFunctionProps, KubbConstProps, KubbExportProps, KubbFileProps, KubbFunctionProps, KubbImportProps, KubbJsxProps, KubbReactElement, KubbReactNode, KubbSourceProps, KubbTypeProps, LineBreakProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/renderer-jsx",
3
- "version": "5.0.0-beta.62",
3
+ "version": "5.0.0-beta.64",
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",
@@ -17,7 +17,6 @@
17
17
  "directory": "packages/renderer-jsx"
18
18
  },
19
19
  "files": [
20
- "src",
21
20
  "dist",
22
21
  "*.d.ts",
23
22
  "*.d.cts",
@@ -75,7 +74,7 @@
75
74
  },
76
75
  "dependencies": {
77
76
  "yaml": "^2.9.0",
78
- "@kubb/ast": "5.0.0-beta.62"
77
+ "@kubb/ast": "5.0.0-beta.64"
79
78
  },
80
79
  "devDependencies": {
81
80
  "@internals/utils": "0.0.0"