@kubb/renderer-jsx 5.0.0-beta.94 → 5.0.0-beta.96
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.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
-
import { i as KubbReactNode, n as Key, r as KubbReactElement, t as JSDoc } from "./types-
|
|
2
|
+
import { i as KubbReactNode, n as Key, r as KubbReactElement, t as JSDoc } from "./types-seYG0czS.js";
|
|
3
3
|
import { ExportNode, ImportNode, SourceNode } from "@kubb/ast";
|
|
4
|
-
|
|
5
4
|
//#region src/components/md/Callout.d.ts
|
|
6
5
|
declare const CALLOUT_LABEL: {
|
|
7
6
|
readonly tip: "TIP";
|
|
@@ -44,11 +43,7 @@ type Props$7 = {
|
|
|
44
43
|
* // > Breaking change in v6.
|
|
45
44
|
* ```
|
|
46
45
|
*/
|
|
47
|
-
declare function Callout({
|
|
48
|
-
type,
|
|
49
|
-
title,
|
|
50
|
-
children
|
|
51
|
-
}: Props$7): KubbReactElement;
|
|
46
|
+
declare function Callout({ type, title, children }: Props$7): KubbReactElement;
|
|
52
47
|
declare namespace Callout {
|
|
53
48
|
var displayName: string;
|
|
54
49
|
}
|
|
@@ -110,10 +105,7 @@ type ConstProps = {
|
|
|
110
105
|
* </Const>
|
|
111
106
|
* ```
|
|
112
107
|
*/
|
|
113
|
-
declare function Const({
|
|
114
|
-
children,
|
|
115
|
-
...props
|
|
116
|
-
}: ConstProps): KubbReactElement;
|
|
108
|
+
declare function Const({ children, ...props }: ConstProps): KubbReactElement;
|
|
117
109
|
declare namespace Const {
|
|
118
110
|
var displayName: string;
|
|
119
111
|
}
|
|
@@ -191,10 +183,7 @@ type Props$6<TMeta> = BaseProps & {
|
|
|
191
183
|
* </File>
|
|
192
184
|
* ```
|
|
193
185
|
*/
|
|
194
|
-
declare function File<TMeta extends object = object>({
|
|
195
|
-
children,
|
|
196
|
-
...props
|
|
197
|
-
}: Props$6<TMeta>): KubbReactElement;
|
|
186
|
+
declare function File<TMeta extends object = object>({ children, ...props }: Props$6<TMeta>): KubbReactElement;
|
|
198
187
|
declare namespace File {
|
|
199
188
|
var displayName: string;
|
|
200
189
|
var Export: typeof FileExport;
|
|
@@ -228,10 +217,7 @@ type FileSourceProps = Omit<SourceNode, 'kind' | 'value'> & {
|
|
|
228
217
|
* </File.Source>
|
|
229
218
|
* ```
|
|
230
219
|
*/
|
|
231
|
-
declare function FileSource({
|
|
232
|
-
children,
|
|
233
|
-
...props
|
|
234
|
-
}: FileSourceProps): KubbReactElement;
|
|
220
|
+
declare function FileSource({ children, ...props }: FileSourceProps): KubbReactElement;
|
|
235
221
|
declare namespace FileSource {
|
|
236
222
|
var displayName: string;
|
|
237
223
|
}
|
|
@@ -318,9 +304,7 @@ type Props$5 = {
|
|
|
318
304
|
* </File>
|
|
319
305
|
* ```
|
|
320
306
|
*/
|
|
321
|
-
declare function Frontmatter({
|
|
322
|
-
data
|
|
323
|
-
}: Props$5): KubbReactElement;
|
|
307
|
+
declare function Frontmatter({ data }: Props$5): KubbReactElement;
|
|
324
308
|
declare namespace Frontmatter {
|
|
325
309
|
var displayName: string;
|
|
326
310
|
}
|
|
@@ -401,10 +385,7 @@ type Props$4 = {
|
|
|
401
385
|
* // }
|
|
402
386
|
* ```
|
|
403
387
|
*/
|
|
404
|
-
declare function Function({
|
|
405
|
-
children,
|
|
406
|
-
...props
|
|
407
|
-
}: Props$4): KubbReactElement;
|
|
388
|
+
declare function Function({ children, ...props }: Props$4): KubbReactElement;
|
|
408
389
|
declare namespace Function {
|
|
409
390
|
var displayName: string;
|
|
410
391
|
var Arrow: typeof ArrowFunction;
|
|
@@ -430,10 +411,7 @@ type ArrowFunctionProps = Props$4 & {
|
|
|
430
411
|
* // export const double = (n: number): number => n * 2
|
|
431
412
|
* ```
|
|
432
413
|
*/
|
|
433
|
-
declare function ArrowFunction({
|
|
434
|
-
children,
|
|
435
|
-
...props
|
|
436
|
-
}: ArrowFunctionProps): any;
|
|
414
|
+
declare function ArrowFunction({ children, ...props }: ArrowFunctionProps): any;
|
|
437
415
|
declare namespace ArrowFunction {
|
|
438
416
|
var displayName: string;
|
|
439
417
|
}
|
|
@@ -464,10 +442,7 @@ type Props$3 = {
|
|
|
464
442
|
* // ## Installation
|
|
465
443
|
* ```
|
|
466
444
|
*/
|
|
467
|
-
declare function Heading({
|
|
468
|
-
level,
|
|
469
|
-
children
|
|
470
|
-
}: Props$3): KubbReactElement;
|
|
445
|
+
declare function Heading({ level, children }: Props$3): KubbReactElement;
|
|
471
446
|
declare namespace Heading {
|
|
472
447
|
var displayName: string;
|
|
473
448
|
}
|
|
@@ -500,9 +475,7 @@ type Props$2 = {
|
|
|
500
475
|
* </Function>
|
|
501
476
|
* ```
|
|
502
477
|
*/
|
|
503
|
-
declare function Jsx({
|
|
504
|
-
children
|
|
505
|
-
}: Props$2): KubbReactElement;
|
|
478
|
+
declare function Jsx({ children }: Props$2): KubbReactElement;
|
|
506
479
|
declare namespace Jsx {
|
|
507
480
|
var displayName: string;
|
|
508
481
|
}
|
|
@@ -539,10 +512,7 @@ type Props$1 = {
|
|
|
539
512
|
* // 2. Second
|
|
540
513
|
* ```
|
|
541
514
|
*/
|
|
542
|
-
declare function List({
|
|
543
|
-
ordered,
|
|
544
|
-
items
|
|
545
|
-
}: Props$1): KubbReactElement;
|
|
515
|
+
declare function List({ ordered, items }: Props$1): KubbReactElement;
|
|
546
516
|
declare namespace List {
|
|
547
517
|
var displayName: string;
|
|
548
518
|
}
|
|
@@ -568,9 +538,7 @@ type Props = {
|
|
|
568
538
|
* <Paragraph>{'A pet object with `id` and `name` fields.'}</Paragraph>
|
|
569
539
|
* ```
|
|
570
540
|
*/
|
|
571
|
-
declare function Paragraph({
|
|
572
|
-
children
|
|
573
|
-
}: Props): KubbReactElement;
|
|
541
|
+
declare function Paragraph({ children }: Props): KubbReactElement;
|
|
574
542
|
declare namespace Paragraph {
|
|
575
543
|
var displayName: string;
|
|
576
544
|
}
|
|
@@ -623,10 +591,7 @@ type TypeProps = {
|
|
|
623
591
|
* </Type>
|
|
624
592
|
* ```
|
|
625
593
|
*/
|
|
626
|
-
declare function Type({
|
|
627
|
-
children,
|
|
628
|
-
...props
|
|
629
|
-
}: TypeProps): KubbReactElement;
|
|
594
|
+
declare function Type({ children, ...props }: TypeProps): KubbReactElement;
|
|
630
595
|
declare namespace Type {
|
|
631
596
|
var displayName: string;
|
|
632
597
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
-
import { i as KubbReactNode, r as KubbReactElement } from "./types-
|
|
2
|
+
import { i as KubbReactNode, r as KubbReactElement } from "./types-seYG0czS.js";
|
|
3
3
|
import { Fragment, JSX, jsxDEV } from "./jsx-runtime.js";
|
|
4
|
-
|
|
5
4
|
//#region src/jsx-dev-runtime.d.ts
|
|
6
5
|
type JSXElement = KubbReactElement;
|
|
7
6
|
type ReactNode = KubbReactNode;
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
-
import { i as KubbReactNode, n as Key, r as KubbReactElement } from "./types-
|
|
2
|
+
import { i as KubbReactNode, n as Key, r as KubbReactElement } from "./types-seYG0czS.js";
|
|
3
3
|
import { ArrowFunctionNode, ConstNode, ExportNode, FunctionNode, ImportNode, SourceNode, TypeNode } from "@kubb/ast";
|
|
4
|
-
|
|
5
4
|
//#region src/jsx-namespace.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* JSX contract for `@kubb/renderer-jsx`, resolved through `jsxImportSource`.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
-
|
|
3
2
|
//#region src/types.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Unique key for a Kubb JSX element in lists or conditional renders.
|
|
@@ -42,4 +41,4 @@ type JSDoc = {
|
|
|
42
41
|
};
|
|
43
42
|
//#endregion
|
|
44
43
|
export { KubbReactNode as i, Key as n, KubbReactElement as r, JSDoc as t };
|
|
45
|
-
//# sourceMappingURL=types-
|
|
44
|
+
//# sourceMappingURL=types-seYG0czS.d.ts.map
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as KubbReactNode, n as Key, r as KubbReactElement, t as JSDoc } from "./types-
|
|
1
|
+
import { i as KubbReactNode, n as Key, r as KubbReactElement, t as JSDoc } from "./types-seYG0czS.js";
|
|
2
2
|
export { JSDoc, Key, KubbReactElement, KubbReactNode };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/renderer-jsx",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.96",
|
|
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",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"yaml": "^2.9.0",
|
|
72
|
-
"@kubb/ast": "5.0.0-beta.
|
|
72
|
+
"@kubb/ast": "5.0.0-beta.96"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=22"
|