@kubb/renderer-jsx 5.14.6 → 5.15.0

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,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("./rolldown-runtime-ClG-MNz_.cjs");
2
+ require("./rolldown-runtime-BRMrT0dX.cjs");
3
3
  const require_jsx_runtime = require("./jsx-runtime.cjs");
4
4
  let yaml = require("yaml");
5
5
  let _kubb_ast = require("@kubb/ast");
6
- //#region src/components/md/Callout.tsx
6
+ // src/components/md/Callout.tsx
7
7
  const CALLOUT_LABEL = {
8
8
  tip: "TIP",
9
9
  note: "NOTE",
@@ -34,8 +34,7 @@ function Callout({ type, title, children }) {
34
34
  const quoted = children.trimEnd().split("\n").map((line) => line.length > 0 ? `> ${line}` : ">").join("\n");
35
35
  return /* @__PURE__ */ require_jsx_runtime.jsx("kubb-source", { children: `${header}\n${quoted}` });
36
36
  }
37
- //#endregion
38
- //#region src/components/js/Const.tsx
37
+ // src/components/js/Const.tsx
39
38
  /**
40
39
  * Generates a TypeScript constant declaration.
41
40
  *
@@ -60,8 +59,7 @@ function Const({ children, ...props }) {
60
59
  children
61
60
  });
62
61
  }
63
- //#endregion
64
- //#region src/components/File.tsx
62
+ // src/components/File.tsx
65
63
  /**
66
64
  * Declares a generated file entry to be collected by the renderer.
67
65
  *
@@ -160,8 +158,7 @@ function FileImport(props) {
160
158
  File.Export = FileExport;
161
159
  File.Import = FileImport;
162
160
  File.Source = FileSource;
163
- //#endregion
164
- //#region src/components/md/Frontmatter.tsx
161
+ // src/components/md/Frontmatter.tsx
165
162
  /**
166
163
  * Emits a YAML frontmatter envelope at the top of a generated markdown file.
167
164
  *
@@ -183,8 +180,7 @@ function Frontmatter({ data }) {
183
180
  const envelope = Object.keys(data).length === 0 ? "" : `---\n${(0, yaml.stringify)(data).trimEnd()}\n---`;
184
181
  return /* @__PURE__ */ require_jsx_runtime.jsx("kubb-source", { children: envelope });
185
182
  }
186
- //#endregion
187
- //#region src/components/js/Function.tsx
183
+ // src/components/js/Function.tsx
188
184
  /**
189
185
  * Generates a TypeScript function declaration.
190
186
  *
@@ -224,8 +220,7 @@ function ArrowFunction({ children, ...props }) {
224
220
  });
225
221
  }
226
222
  Function.Arrow = ArrowFunction;
227
- //#endregion
228
- //#region src/components/md/Heading.tsx
223
+ // src/components/md/Heading.tsx
229
224
  /**
230
225
  * Renders an ATX-style markdown heading.
231
226
  *
@@ -241,8 +236,7 @@ Function.Arrow = ArrowFunction;
241
236
  function Heading({ level, children }) {
242
237
  return /* @__PURE__ */ require_jsx_runtime.jsx("kubb-source", { children: `${"#".repeat(level)} ${children}` });
243
238
  }
244
- //#endregion
245
- //#region src/components/jsx/Jsx.tsx
239
+ // src/components/jsx/Jsx.tsx
246
240
  /**
247
241
  * Embeds a raw JSX string verbatim in the generated source code.
248
242
  *
@@ -261,8 +255,7 @@ function Heading({ level, children }) {
261
255
  function Jsx({ children }) {
262
256
  return /* @__PURE__ */ require_jsx_runtime.jsx("kubb-jsx", { children });
263
257
  }
264
- //#endregion
265
- //#region src/components/md/List.tsx
258
+ // src/components/md/List.tsx
266
259
  /**
267
260
  * Renders a markdown list.
268
261
  *
@@ -284,8 +277,7 @@ function List({ ordered, items }) {
284
277
  const body = items.map((item, index) => `${ordered ? `${index + 1}.` : "-"} ${item}`).join("\n");
285
278
  return /* @__PURE__ */ require_jsx_runtime.jsx("kubb-source", { children: body });
286
279
  }
287
- //#endregion
288
- //#region src/components/md/Paragraph.tsx
280
+ // src/components/md/Paragraph.tsx
289
281
  /**
290
282
  * Renders a markdown paragraph.
291
283
  *
@@ -301,8 +293,7 @@ function List({ ordered, items }) {
301
293
  function Paragraph({ children }) {
302
294
  return /* @__PURE__ */ require_jsx_runtime.jsx("kubb-source", { children });
303
295
  }
304
- //#endregion
305
- //#region src/components/js/Type.tsx
296
+ // src/components/js/Type.tsx
306
297
  /**
307
298
  * Generates a TypeScript type alias declaration.
308
299
  *
@@ -331,8 +322,7 @@ function Type({ children, ...props }) {
331
322
  children
332
323
  });
333
324
  }
334
- //#endregion
335
- //#region src/jsxRenderer.ts
325
+ // src/jsxRenderer.ts
336
326
  /** Walks `element` through arrays, Fragments and function components, calling `onText` and `onHost`. */
337
327
  function walkElement(element, onText, onHost) {
338
328
  if (element == null || typeof element === "boolean") return;
@@ -514,7 +504,6 @@ const jsxRenderer = () => {
514
504
  [Symbol.dispose]() {}
515
505
  };
516
506
  };
517
- //#endregion
518
507
  exports.Callout = Callout;
519
508
  exports.Const = Const;
520
509
  exports.File = File;
package/dist/index.d.cts CHANGED
@@ -1,6 +1,5 @@
1
- import { i as KubbReactNode, n as Key, r as KubbReactElement, t as JSDoc } from "./types-BQObETlT.cjs";
1
+ import { i as KubbReactNode, n as Key, r as KubbReactElement, t as JSDoc } from "./types-D_u8uaRO.cjs";
2
2
  import { ast } from "@kubb/ast";
3
- //#region src/components/md/Callout.d.ts
4
3
  declare const CALLOUT_LABEL: {
5
4
  readonly tip: 'TIP';
6
5
  readonly note: 'NOTE';
@@ -43,8 +42,6 @@ type Props$7 = {
43
42
  * ```
44
43
  */
45
44
  export declare function Callout({ type, title, children }: Props$7): KubbReactElement;
46
- //#endregion
47
- //#region src/components/js/Const.d.ts
48
45
  type ConstProps = Omit<ast.ConstNode, 'kind' | 'nodes'> & {
49
46
  key?: Key;
50
47
  /**
@@ -71,8 +68,6 @@ type ConstProps = Omit<ast.ConstNode, 'kind' | 'nodes'> & {
71
68
  * ```
72
69
  */
73
70
  export declare function Const({ children, ...props }: ConstProps): KubbReactElement;
74
- //#endregion
75
- //#region src/components/File.d.ts
76
71
  type BasePropsWithBaseName = {
77
72
  /**
78
73
  * Base file name including extension, derived from the input path.
@@ -226,8 +221,6 @@ type FileImportProps = Omit<ast.ImportNode, 'kind'> & {
226
221
  * ```
227
222
  */
228
223
  declare function FileImport(props: FileImportProps): KubbReactElement;
229
- //#endregion
230
- //#region src/components/md/Frontmatter.d.ts
231
224
  type Props$5 = {
232
225
  key?: Key;
233
226
  /**
@@ -256,8 +249,6 @@ type Props$5 = {
256
249
  * ```
257
250
  */
258
251
  export declare function Frontmatter({ data }: Props$5): KubbReactElement;
259
- //#endregion
260
- //#region src/components/js/Function.d.ts
261
252
  type Props$4 = Omit<ast.FunctionNode, 'kind' | 'nodes'> & {
262
253
  key?: Key;
263
254
  /**
@@ -303,8 +294,6 @@ type ArrowFunctionProps = Omit<ast.ArrowFunctionNode, 'kind' | 'nodes'> & {
303
294
  * ```
304
295
  */
305
296
  declare function ArrowFunction({ children, ...props }: ArrowFunctionProps): KubbReactElement;
306
- //#endregion
307
- //#region src/components/md/Heading.d.ts
308
297
  type Level = 1 | 2 | 3 | 4 | 5 | 6;
309
298
  type Props$3 = {
310
299
  key?: Key;
@@ -331,8 +320,6 @@ type Props$3 = {
331
320
  * ```
332
321
  */
333
322
  export declare function Heading({ level, children }: Props$3): KubbReactElement;
334
- //#endregion
335
- //#region src/components/jsx/Jsx.d.ts
336
323
  type Props$2 = {
337
324
  key?: Key;
338
325
  /**
@@ -362,8 +349,6 @@ type Props$2 = {
362
349
  * ```
363
350
  */
364
351
  export declare function Jsx({ children }: Props$2): KubbReactElement;
365
- //#endregion
366
- //#region src/components/md/List.d.ts
367
352
  type Props$1 = {
368
353
  key?: Key;
369
354
  /**
@@ -396,8 +381,6 @@ type Props$1 = {
396
381
  * ```
397
382
  */
398
383
  export declare function List({ ordered, items }: Props$1): KubbReactElement;
399
- //#endregion
400
- //#region src/components/md/Paragraph.d.ts
401
384
  type Props = {
402
385
  key?: Key;
403
386
  /**
@@ -419,8 +402,6 @@ type Props = {
419
402
  * ```
420
403
  */
421
404
  export declare function Paragraph({ children }: Props): KubbReactElement;
422
- //#endregion
423
- //#region src/components/js/Type.d.ts
424
405
  type TypeProps = Omit<ast.TypeNode, 'kind' | 'nodes'> & {
425
406
  key?: Key;
426
407
  /**
@@ -450,8 +431,6 @@ type TypeProps = Omit<ast.TypeNode, 'kind' | 'nodes'> & {
450
431
  * ```
451
432
  */
452
433
  export declare function Type({ children, ...props }: TypeProps): KubbReactElement;
453
- //#endregion
454
- //#region src/jsxRenderer.d.ts
455
434
  /**
456
435
  * Factory for a renderer that walks the JSX tree in a single recursive pass,
457
436
  * with no React reconciler or scheduler. Pass it as the `renderer` property on
@@ -482,6 +461,5 @@ export declare const jsxRenderer: () => {
482
461
  readonly files: ast.FileNode[];
483
462
  [Symbol.dispose](): void;
484
463
  };
485
- //#endregion
486
464
  export type { JSDoc, Key, KubbReactElement, KubbReactNode };
487
465
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { i as KubbReactNode, n as Key, r as KubbReactElement, t as JSDoc } from "./types-BQObETlT.js";
1
+ import { i as KubbReactNode, n as Key, r as KubbReactElement, t as JSDoc } from "./types-D_u8uaRO.js";
2
2
  import { ast } from "@kubb/ast";
3
- //#region src/components/md/Callout.d.ts
4
3
  declare const CALLOUT_LABEL: {
5
4
  readonly tip: 'TIP';
6
5
  readonly note: 'NOTE';
@@ -43,8 +42,6 @@ type Props$7 = {
43
42
  * ```
44
43
  */
45
44
  export declare function Callout({ type, title, children }: Props$7): KubbReactElement;
46
- //#endregion
47
- //#region src/components/js/Const.d.ts
48
45
  type ConstProps = Omit<ast.ConstNode, 'kind' | 'nodes'> & {
49
46
  key?: Key;
50
47
  /**
@@ -71,8 +68,6 @@ type ConstProps = Omit<ast.ConstNode, 'kind' | 'nodes'> & {
71
68
  * ```
72
69
  */
73
70
  export declare function Const({ children, ...props }: ConstProps): KubbReactElement;
74
- //#endregion
75
- //#region src/components/File.d.ts
76
71
  type BasePropsWithBaseName = {
77
72
  /**
78
73
  * Base file name including extension, derived from the input path.
@@ -226,8 +221,6 @@ type FileImportProps = Omit<ast.ImportNode, 'kind'> & {
226
221
  * ```
227
222
  */
228
223
  declare function FileImport(props: FileImportProps): KubbReactElement;
229
- //#endregion
230
- //#region src/components/md/Frontmatter.d.ts
231
224
  type Props$5 = {
232
225
  key?: Key;
233
226
  /**
@@ -256,8 +249,6 @@ type Props$5 = {
256
249
  * ```
257
250
  */
258
251
  export declare function Frontmatter({ data }: Props$5): KubbReactElement;
259
- //#endregion
260
- //#region src/components/js/Function.d.ts
261
252
  type Props$4 = Omit<ast.FunctionNode, 'kind' | 'nodes'> & {
262
253
  key?: Key;
263
254
  /**
@@ -303,8 +294,6 @@ type ArrowFunctionProps = Omit<ast.ArrowFunctionNode, 'kind' | 'nodes'> & {
303
294
  * ```
304
295
  */
305
296
  declare function ArrowFunction({ children, ...props }: ArrowFunctionProps): KubbReactElement;
306
- //#endregion
307
- //#region src/components/md/Heading.d.ts
308
297
  type Level = 1 | 2 | 3 | 4 | 5 | 6;
309
298
  type Props$3 = {
310
299
  key?: Key;
@@ -331,8 +320,6 @@ type Props$3 = {
331
320
  * ```
332
321
  */
333
322
  export declare function Heading({ level, children }: Props$3): KubbReactElement;
334
- //#endregion
335
- //#region src/components/jsx/Jsx.d.ts
336
323
  type Props$2 = {
337
324
  key?: Key;
338
325
  /**
@@ -362,8 +349,6 @@ type Props$2 = {
362
349
  * ```
363
350
  */
364
351
  export declare function Jsx({ children }: Props$2): KubbReactElement;
365
- //#endregion
366
- //#region src/components/md/List.d.ts
367
352
  type Props$1 = {
368
353
  key?: Key;
369
354
  /**
@@ -396,8 +381,6 @@ type Props$1 = {
396
381
  * ```
397
382
  */
398
383
  export declare function List({ ordered, items }: Props$1): KubbReactElement;
399
- //#endregion
400
- //#region src/components/md/Paragraph.d.ts
401
384
  type Props = {
402
385
  key?: Key;
403
386
  /**
@@ -419,8 +402,6 @@ type Props = {
419
402
  * ```
420
403
  */
421
404
  export declare function Paragraph({ children }: Props): KubbReactElement;
422
- //#endregion
423
- //#region src/components/js/Type.d.ts
424
405
  type TypeProps = Omit<ast.TypeNode, 'kind' | 'nodes'> & {
425
406
  key?: Key;
426
407
  /**
@@ -450,8 +431,6 @@ type TypeProps = Omit<ast.TypeNode, 'kind' | 'nodes'> & {
450
431
  * ```
451
432
  */
452
433
  export declare function Type({ children, ...props }: TypeProps): KubbReactElement;
453
- //#endregion
454
- //#region src/jsxRenderer.d.ts
455
434
  /**
456
435
  * Factory for a renderer that walks the JSX tree in a single recursive pass,
457
436
  * with no React reconciler or scheduler. Pass it as the `renderer` property on
@@ -482,6 +461,5 @@ export declare const jsxRenderer: () => {
482
461
  readonly files: ast.FileNode[];
483
462
  [Symbol.dispose](): void;
484
463
  };
485
- //#endregion
486
464
  export type { JSDoc, Key, KubbReactElement, KubbReactNode };
487
465
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import "./rolldown-runtime-C0LytTxp.js";
1
+ import "./rolldown-runtime-BowF1xt-.js";
2
2
  import { Fragment, isKubbElement, jsx } from "./jsx-runtime.js";
3
3
  import { stringify } from "yaml";
4
4
  import { ast } from "@kubb/ast";
5
- //#region src/components/md/Callout.tsx
5
+ // src/components/md/Callout.tsx
6
6
  const CALLOUT_LABEL = {
7
7
  tip: "TIP",
8
8
  note: "NOTE",
@@ -33,8 +33,7 @@ function Callout({ type, title, children }) {
33
33
  const quoted = children.trimEnd().split("\n").map((line) => line.length > 0 ? `> ${line}` : ">").join("\n");
34
34
  return /* @__PURE__ */ jsx("kubb-source", { children: `${header}\n${quoted}` });
35
35
  }
36
- //#endregion
37
- //#region src/components/js/Const.tsx
36
+ // src/components/js/Const.tsx
38
37
  /**
39
38
  * Generates a TypeScript constant declaration.
40
39
  *
@@ -59,8 +58,7 @@ function Const({ children, ...props }) {
59
58
  children
60
59
  });
61
60
  }
62
- //#endregion
63
- //#region src/components/File.tsx
61
+ // src/components/File.tsx
64
62
  /**
65
63
  * Declares a generated file entry to be collected by the renderer.
66
64
  *
@@ -159,8 +157,7 @@ function FileImport(props) {
159
157
  File.Export = FileExport;
160
158
  File.Import = FileImport;
161
159
  File.Source = FileSource;
162
- //#endregion
163
- //#region src/components/md/Frontmatter.tsx
160
+ // src/components/md/Frontmatter.tsx
164
161
  /**
165
162
  * Emits a YAML frontmatter envelope at the top of a generated markdown file.
166
163
  *
@@ -182,8 +179,7 @@ function Frontmatter({ data }) {
182
179
  const envelope = Object.keys(data).length === 0 ? "" : `---\n${stringify(data).trimEnd()}\n---`;
183
180
  return /* @__PURE__ */ jsx("kubb-source", { children: envelope });
184
181
  }
185
- //#endregion
186
- //#region src/components/js/Function.tsx
182
+ // src/components/js/Function.tsx
187
183
  /**
188
184
  * Generates a TypeScript function declaration.
189
185
  *
@@ -223,8 +219,7 @@ function ArrowFunction({ children, ...props }) {
223
219
  });
224
220
  }
225
221
  Function.Arrow = ArrowFunction;
226
- //#endregion
227
- //#region src/components/md/Heading.tsx
222
+ // src/components/md/Heading.tsx
228
223
  /**
229
224
  * Renders an ATX-style markdown heading.
230
225
  *
@@ -240,8 +235,7 @@ Function.Arrow = ArrowFunction;
240
235
  function Heading({ level, children }) {
241
236
  return /* @__PURE__ */ jsx("kubb-source", { children: `${"#".repeat(level)} ${children}` });
242
237
  }
243
- //#endregion
244
- //#region src/components/jsx/Jsx.tsx
238
+ // src/components/jsx/Jsx.tsx
245
239
  /**
246
240
  * Embeds a raw JSX string verbatim in the generated source code.
247
241
  *
@@ -260,8 +254,7 @@ function Heading({ level, children }) {
260
254
  function Jsx({ children }) {
261
255
  return /* @__PURE__ */ jsx("kubb-jsx", { children });
262
256
  }
263
- //#endregion
264
- //#region src/components/md/List.tsx
257
+ // src/components/md/List.tsx
265
258
  /**
266
259
  * Renders a markdown list.
267
260
  *
@@ -283,8 +276,7 @@ function List({ ordered, items }) {
283
276
  const body = items.map((item, index) => `${ordered ? `${index + 1}.` : "-"} ${item}`).join("\n");
284
277
  return /* @__PURE__ */ jsx("kubb-source", { children: body });
285
278
  }
286
- //#endregion
287
- //#region src/components/md/Paragraph.tsx
279
+ // src/components/md/Paragraph.tsx
288
280
  /**
289
281
  * Renders a markdown paragraph.
290
282
  *
@@ -300,8 +292,7 @@ function List({ ordered, items }) {
300
292
  function Paragraph({ children }) {
301
293
  return /* @__PURE__ */ jsx("kubb-source", { children });
302
294
  }
303
- //#endregion
304
- //#region src/components/js/Type.tsx
295
+ // src/components/js/Type.tsx
305
296
  /**
306
297
  * Generates a TypeScript type alias declaration.
307
298
  *
@@ -330,8 +321,7 @@ function Type({ children, ...props }) {
330
321
  children
331
322
  });
332
323
  }
333
- //#endregion
334
- //#region src/jsxRenderer.ts
324
+ // src/jsxRenderer.ts
335
325
  /** Walks `element` through arrays, Fragments and function components, calling `onText` and `onHost`. */
336
326
  function walkElement(element, onText, onHost) {
337
327
  if (element == null || typeof element === "boolean") return;
@@ -513,7 +503,6 @@ const jsxRenderer = () => {
513
503
  [Symbol.dispose]() {}
514
504
  };
515
505
  };
516
- //#endregion
517
506
  export { Callout, Const, File, Frontmatter, Function, Heading, Jsx, List, Paragraph, Type, jsxRenderer };
518
507
 
519
508
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("./rolldown-runtime-ClG-MNz_.cjs");
3
- //#region src/jsx-runtime.ts
2
+ require("./rolldown-runtime-BRMrT0dX.cjs");
3
+ // src/jsx-runtime.ts
4
4
  const KUBB_ELEMENT = Symbol.for("kubb.element");
5
5
  /**
6
6
  * Fragment marker. A `<>…</>` compiles to `jsx(Fragment, …)`, and the renderer
@@ -30,7 +30,6 @@ function isKubbElement(value) {
30
30
  const jsx = createElement;
31
31
  const jsxs = createElement;
32
32
  const jsxDEV = createElement;
33
- //#endregion
34
33
  exports.Fragment = Fragment;
35
34
  exports.isKubbElement = isKubbElement;
36
35
  exports.jsx = jsx;
@@ -1,6 +1,5 @@
1
- import { i as KubbReactNode, n as Key, r as KubbReactElement } from "./types-BQObETlT.cjs";
1
+ import { i as KubbReactNode, n as Key, r as KubbReactElement } from "./types-D_u8uaRO.cjs";
2
2
  import { ast } from "@kubb/ast";
3
- //#region src/jsx-namespace.d.ts
4
3
  /**
5
4
  * JSX contract for `@kubb/renderer-jsx`, resolved through `jsxImportSource`.
6
5
  *
@@ -55,8 +54,6 @@ declare namespace JSX {
55
54
  br: {};
56
55
  }
57
56
  }
58
- //#endregion
59
- //#region src/jsx-runtime.d.ts
60
57
  /**
61
58
  * Fragment marker. A `<>…</>` compiles to `jsx(Fragment, …)`, and the renderer
62
59
  * unwraps it while walking the tree.
@@ -76,6 +73,5 @@ export declare function isKubbElement(value: unknown): value is KubbReactElement
76
73
  export declare const jsx: typeof createElement;
77
74
  export declare const jsxs: typeof createElement;
78
75
  export declare const jsxDEV: typeof createElement;
79
- //#endregion
80
76
  export type { JSX };
81
77
  //# sourceMappingURL=jsx-runtime.d.cts.map
@@ -1,6 +1,5 @@
1
- import { i as KubbReactNode, n as Key, r as KubbReactElement } from "./types-BQObETlT.js";
1
+ import { i as KubbReactNode, n as Key, r as KubbReactElement } from "./types-D_u8uaRO.js";
2
2
  import { ast } from "@kubb/ast";
3
- //#region src/jsx-namespace.d.ts
4
3
  /**
5
4
  * JSX contract for `@kubb/renderer-jsx`, resolved through `jsxImportSource`.
6
5
  *
@@ -55,8 +54,6 @@ declare namespace JSX {
55
54
  br: {};
56
55
  }
57
56
  }
58
- //#endregion
59
- //#region src/jsx-runtime.d.ts
60
57
  /**
61
58
  * Fragment marker. A `<>…</>` compiles to `jsx(Fragment, …)`, and the renderer
62
59
  * unwraps it while walking the tree.
@@ -76,6 +73,5 @@ export declare function isKubbElement(value: unknown): value is KubbReactElement
76
73
  export declare const jsx: typeof createElement;
77
74
  export declare const jsxs: typeof createElement;
78
75
  export declare const jsxDEV: typeof createElement;
79
- //#endregion
80
76
  export type { JSX };
81
77
  //# sourceMappingURL=jsx-runtime.d.ts.map
@@ -1,5 +1,5 @@
1
- import "./rolldown-runtime-C0LytTxp.js";
2
- //#region src/jsx-runtime.ts
1
+ import "./rolldown-runtime-BowF1xt-.js";
2
+ // src/jsx-runtime.ts
3
3
  const KUBB_ELEMENT = Symbol.for("kubb.element");
4
4
  /**
5
5
  * Fragment marker. A `<>…</>` compiles to `jsx(Fragment, …)`, and the renderer
@@ -29,7 +29,6 @@ function isKubbElement(value) {
29
29
  const jsx = createElement;
30
30
  const jsxs = createElement;
31
31
  const jsxDEV = createElement;
32
- //#endregion
33
32
  export { Fragment, isKubbElement, jsx, jsxDEV, jsxs };
34
33
 
35
34
  //# sourceMappingURL=jsx-runtime.js.map
@@ -1,10 +1,9 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var __defProp = Object.defineProperty;
3
3
  var __name = (target, value) => __defProp(target, "name", {
4
4
  value,
5
5
  configurable: true
6
6
  });
7
- //#endregion
8
7
  Object.defineProperty(exports, "__name", {
9
8
  enumerable: true,
10
9
  get: function() {
@@ -1,8 +1,7 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var __defProp = Object.defineProperty;
3
3
  var __name = (target, value) => __defProp(target, "name", {
4
4
  value,
5
5
  configurable: true
6
6
  });
7
- //#endregion
8
7
  export { __name as t };
@@ -1,5 +1,4 @@
1
1
  import { ast } from "@kubb/ast";
2
- //#region src/types.d.ts
3
2
  /**
4
3
  * Unique key for a Kubb JSX element in lists or conditional renders.
5
4
  */
@@ -32,6 +31,5 @@ type KubbReactNode = KubbReactElement | string | number | bigint | boolean | nul
32
31
  * ```
33
32
  */
34
33
  type JSDoc = ast.JSDocNode;
35
- //#endregion
36
34
  export { KubbReactNode as i, Key as n, KubbReactElement as r, JSDoc as t };
37
- //# sourceMappingURL=types-BQObETlT.d.ts.map
35
+ //# sourceMappingURL=types-D_u8uaRO.d.cts.map
@@ -1,5 +1,4 @@
1
1
  import { ast } from "@kubb/ast";
2
- //#region src/types.d.ts
3
2
  /**
4
3
  * Unique key for a Kubb JSX element in lists or conditional renders.
5
4
  */
@@ -32,6 +31,5 @@ type KubbReactNode = KubbReactElement | string | number | bigint | boolean | nul
32
31
  * ```
33
32
  */
34
33
  type JSDoc = ast.JSDocNode;
35
- //#endregion
36
34
  export { KubbReactNode as i, Key as n, KubbReactElement as r, JSDoc as t };
37
- //# sourceMappingURL=types-BQObETlT.d.cts.map
35
+ //# sourceMappingURL=types-D_u8uaRO.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/renderer-jsx",
3
- "version": "5.14.6",
3
+ "version": "5.15.0",
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.14.6",
97
+ "@kubb/ast": "5.15.0",
98
98
  "yaml": "^2.9.1"
99
99
  },
100
100
  "engines": {