fumadocs-openapi 10.9.1 → 10.10.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/css/generated/shared.css +61 -45
- package/dist/_openapi/types.d.ts +27 -1
- package/dist/index.d.ts +5 -4
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.js +1 -1
- package/dist/playground/client.d.ts +1 -1
- package/dist/requests/generators/all.d.ts +1 -1
- package/dist/requests/generators/all.js +1 -0
- package/dist/scalar/client.js +1 -4
- package/dist/types.d.ts +3 -16
- package/dist/ui/base.d.ts +2 -1
- package/dist/ui/base.js +4 -19
- package/dist/ui/client/index.d.ts +15 -10
- package/dist/ui/components/accordion.js +36 -11
- package/dist/ui/components/dialog.js +29 -32
- package/dist/ui/components/heading.js +22 -0
- package/dist/ui/components/select-tab.js +24 -9
- package/dist/ui/contexts/api.js +1 -7
- package/dist/ui/create-client.d.ts +2 -1
- package/dist/ui/create-client.js +8 -26
- package/dist/ui/operation/client.js +1 -1
- package/dist/ui/operation/index.js +145 -141
- package/dist/ui/operation/request-tabs.js +4 -1
- package/dist/ui/operation/response-tabs.js +4 -1
- package/dist/ui/operation/usage-tabs/index.js +2 -8
- package/dist/ui/schema/client.js +339 -289
- package/dist/utils/auto-anchor.client.js +20 -0
- package/dist/utils/auto-anchor.js +17 -0
- package/dist/utils/merge-refs.js +11 -0
- package/dist/utils/pages/builder.d.ts +2 -4
- package/dist/utils/pages/preset-auto.d.ts +1 -2
- package/package.json +5 -6
package/css/generated/shared.css
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
@source inline("!isDefined");
|
|
2
|
-
@source inline("!last");
|
|
3
2
|
@source inline("*:data-[collapsible=true]:order-last");
|
|
4
3
|
@source inline("*:min-w-0");
|
|
5
4
|
@source inline("---");
|
|
6
5
|
@source inline("--fd-docs-row-1");
|
|
7
|
-
@source inline("--
|
|
6
|
+
@source inline("--min-height");
|
|
8
7
|
@source inline("-mode");
|
|
9
8
|
@source inline("-ms-2");
|
|
10
|
-
@source inline("-mt-px");
|
|
11
9
|
@source inline("-mx-2");
|
|
12
10
|
@source inline("-translate-x-1/2");
|
|
13
11
|
@source inline("-translate-y-1/2");
|
|
@@ -34,6 +32,7 @@
|
|
|
34
32
|
@source inline("a");
|
|
35
33
|
@source inline("absolute");
|
|
36
34
|
@source inline("access_token");
|
|
35
|
+
@source inline("accordion");
|
|
37
36
|
@source inline("active");
|
|
38
37
|
@source inline("actual");
|
|
39
38
|
@source inline("adapter");
|
|
@@ -48,6 +47,11 @@
|
|
|
48
47
|
@source inline("allow");
|
|
49
48
|
@source inline("already");
|
|
50
49
|
@source inline("alt");
|
|
50
|
+
@source inline("always");
|
|
51
|
+
@source inline("an");
|
|
52
|
+
@source inline("anchor");
|
|
53
|
+
@source inline("anchorIdStartsWith");
|
|
54
|
+
@source inline("anchorSegments");
|
|
51
55
|
@source inline("and");
|
|
52
56
|
@source inline("animate-spin");
|
|
53
57
|
@source inline("another");
|
|
@@ -57,6 +61,7 @@
|
|
|
57
61
|
@source inline("apiExample");
|
|
58
62
|
@source inline("apiKey");
|
|
59
63
|
@source inline("apiPlayground");
|
|
64
|
+
@source inline("applicable");
|
|
60
65
|
@source inline("application/javascript");
|
|
61
66
|
@source inline("application/json");
|
|
62
67
|
@source inline("application/x-javascript");
|
|
@@ -66,6 +71,7 @@
|
|
|
66
71
|
@source inline("aria-label");
|
|
67
72
|
@source inline("array");
|
|
68
73
|
@source inline("as");
|
|
74
|
+
@source inline("asSchema");
|
|
69
75
|
@source inline("assume");
|
|
70
76
|
@source inline("async");
|
|
71
77
|
@source inline("auth-specific");
|
|
@@ -93,12 +99,14 @@
|
|
|
93
99
|
@source inline("be");
|
|
94
100
|
@source inline("because");
|
|
95
101
|
@source inline("before");
|
|
102
|
+
@source inline("behavior");
|
|
96
103
|
@source inline("between");
|
|
97
104
|
@source inline("bg-black/30");
|
|
98
105
|
@source inline("bg-fd-background/50");
|
|
99
106
|
@source inline("bg-fd-card");
|
|
100
107
|
@source inline("bg-fd-muted");
|
|
101
108
|
@source inline("bg-fd-popover");
|
|
109
|
+
@source inline("bg-fd-primary");
|
|
102
110
|
@source inline("bg-fd-primary/10");
|
|
103
111
|
@source inline("bg-fd-secondary");
|
|
104
112
|
@source inline("binary");
|
|
@@ -116,7 +124,6 @@
|
|
|
116
124
|
@source inline("border-fd-primary/20");
|
|
117
125
|
@source inline("border-s");
|
|
118
126
|
@source inline("border-t");
|
|
119
|
-
@source inline("border-x");
|
|
120
127
|
@source inline("border-y");
|
|
121
128
|
@source inline("both");
|
|
122
129
|
@source inline("boundary");
|
|
@@ -139,11 +146,9 @@
|
|
|
139
146
|
@source inline("case");
|
|
140
147
|
@source inline("catch");
|
|
141
148
|
@source inline("causes");
|
|
142
|
-
@source inline("change");
|
|
143
149
|
@source inline("changes");
|
|
144
150
|
@source inline("charset");
|
|
145
151
|
@source inline("check");
|
|
146
|
-
@source inline("child");
|
|
147
152
|
@source inline("children");
|
|
148
153
|
@source inline("class-variance-authority");
|
|
149
154
|
@source inline("className");
|
|
@@ -159,6 +164,7 @@
|
|
|
159
164
|
@source inline("client_id");
|
|
160
165
|
@source inline("client_secret");
|
|
161
166
|
@source inline("cloned");
|
|
167
|
+
@source inline("closed");
|
|
162
168
|
@source inline("cn");
|
|
163
169
|
@source inline("code");
|
|
164
170
|
@source inline("codeProps");
|
|
@@ -176,12 +182,9 @@
|
|
|
176
182
|
@source inline("conditions");
|
|
177
183
|
@source inline("configuration");
|
|
178
184
|
@source inline("const");
|
|
179
|
-
@source inline("container");
|
|
180
|
-
@source inline("containerRef");
|
|
181
185
|
@source inline("content");
|
|
182
186
|
@source inline("contentType");
|
|
183
187
|
@source inline("contentTypes");
|
|
184
|
-
@source inline("context");
|
|
185
188
|
@source inline("cookie");
|
|
186
189
|
@source inline("cookieParameters");
|
|
187
190
|
@source inline("cookies");
|
|
@@ -189,6 +192,7 @@
|
|
|
189
192
|
@source inline("could");
|
|
190
193
|
@source inline("createAutoPreset");
|
|
191
194
|
@source inline("createCodeSample");
|
|
195
|
+
@source inline("createCodeUsageGeneratorRegistry");
|
|
192
196
|
@source inline("createContext");
|
|
193
197
|
@source inline("createMethod");
|
|
194
198
|
@source inline("createProxy");
|
|
@@ -198,7 +202,6 @@
|
|
|
198
202
|
@source inline("csv");
|
|
199
203
|
@source inline("ctx");
|
|
200
204
|
@source inline("current");
|
|
201
|
-
@source inline("currentRef");
|
|
202
205
|
@source inline("currentValue");
|
|
203
206
|
@source inline("customization");
|
|
204
207
|
@source inline("cva");
|
|
@@ -217,13 +220,14 @@
|
|
|
217
220
|
@source inline("data-[state=open]:animate-fd-accordion-down");
|
|
218
221
|
@source inline("data-[state=open]:animate-fd-dialog-in");
|
|
219
222
|
@source inline("data-[state=open]:animate-fd-fade-in");
|
|
220
|
-
@source inline("data-[state=open]:
|
|
223
|
+
@source inline("data-[state=open]:border-b-0");
|
|
221
224
|
@source inline("data-[state=open]:text-fd-accent-foreground");
|
|
222
225
|
@source inline("data-collapsible");
|
|
223
226
|
@source inline("data-object-search-input");
|
|
224
227
|
@source inline("data-placeholder:text-fd-muted-foreground");
|
|
225
228
|
@source inline("data-type");
|
|
226
229
|
@source inline("dataEngine");
|
|
230
|
+
@source inline("decoded");
|
|
227
231
|
@source inline("default");
|
|
228
232
|
@source inline("defaultAdapters");
|
|
229
233
|
@source inline("defaultColor");
|
|
@@ -235,7 +239,9 @@
|
|
|
235
239
|
@source inline("defaultValue");
|
|
236
240
|
@source inline("defaultValues");
|
|
237
241
|
@source inline("deferredValue");
|
|
242
|
+
@source inline("define");
|
|
238
243
|
@source inline("definitions");
|
|
244
|
+
@source inline("delete");
|
|
239
245
|
@source inline("deprecated");
|
|
240
246
|
@source inline("depth");
|
|
241
247
|
@source inline("dereference");
|
|
@@ -255,8 +261,6 @@
|
|
|
255
261
|
@source inline("displayName");
|
|
256
262
|
@source inline("displayNames");
|
|
257
263
|
@source inline("div");
|
|
258
|
-
@source inline("divide-fd-border");
|
|
259
|
-
@source inline("divide-y");
|
|
260
264
|
@source inline("do");
|
|
261
265
|
@source inline("doc");
|
|
262
266
|
@source inline("document");
|
|
@@ -296,7 +300,6 @@
|
|
|
296
300
|
@source inline("examples");
|
|
297
301
|
@source inline("exclusiveMax");
|
|
298
302
|
@source inline("exclusiveMin");
|
|
299
|
-
@source inline("expand");
|
|
300
303
|
@source inline("export");
|
|
301
304
|
@source inline("extends");
|
|
302
305
|
@source inline("factory");
|
|
@@ -321,7 +324,6 @@
|
|
|
321
324
|
@source inline("fine");
|
|
322
325
|
@source inline("first");
|
|
323
326
|
@source inline("first:border-t-0");
|
|
324
|
-
@source inline("first:rounded-tr-xl");
|
|
325
327
|
@source inline("firstItemRef");
|
|
326
328
|
@source inline("fixed");
|
|
327
329
|
@source inline("flex");
|
|
@@ -334,6 +336,7 @@
|
|
|
334
336
|
@source inline("focus-visible:outline-none");
|
|
335
337
|
@source inline("focus-visible:ring-1");
|
|
336
338
|
@source inline("focus-visible:ring-fd-ring");
|
|
339
|
+
@source inline("focus-within:[&_svg]:text-fd-primary");
|
|
337
340
|
@source inline("focus-within:ring-2");
|
|
338
341
|
@source inline("focus-within:ring-fd-ring");
|
|
339
342
|
@source inline("focus:bg-fd-accent");
|
|
@@ -395,7 +398,6 @@
|
|
|
395
398
|
@source inline("ghost");
|
|
396
399
|
@source inline("github-dark");
|
|
397
400
|
@source inline("github-light");
|
|
398
|
-
@source inline("github-slugger");
|
|
399
401
|
@source inline("given");
|
|
400
402
|
@source inline("grant_type");
|
|
401
403
|
@source inline("green");
|
|
@@ -406,8 +408,9 @@
|
|
|
406
408
|
@source inline("group-data-[state=open]:rotate-180");
|
|
407
409
|
@source inline("group-focus-visible/accordion:text-fd-primary");
|
|
408
410
|
@source inline("group/accordion");
|
|
411
|
+
@source inline("group/property");
|
|
409
412
|
@source inline("groupId");
|
|
410
|
-
@source inline("h-
|
|
413
|
+
@source inline("h-10");
|
|
411
414
|
@source inline("h-9");
|
|
412
415
|
@source inline("h-[240px]");
|
|
413
416
|
@source inline("h-px");
|
|
@@ -422,8 +425,10 @@
|
|
|
422
425
|
@source inline("headerParameters");
|
|
423
426
|
@source inline("headers");
|
|
424
427
|
@source inline("headingLevel");
|
|
428
|
+
@source inline("height");
|
|
425
429
|
@source inline("hidden");
|
|
426
430
|
@source inline("hiddenProperties");
|
|
431
|
+
@source inline("highlighted");
|
|
427
432
|
@source inline("highlighter");
|
|
428
433
|
@source inline("hook");
|
|
429
434
|
@source inline("hover:bg-fd-accent");
|
|
@@ -447,14 +452,16 @@
|
|
|
447
452
|
@source inline("imports");
|
|
448
453
|
@source inline("in");
|
|
449
454
|
@source inline("include");
|
|
455
|
+
@source inline("index");
|
|
456
|
+
@source inline("indexItemMatch");
|
|
450
457
|
@source inline("infer");
|
|
451
458
|
@source inline("info");
|
|
452
459
|
@source inline("infoTags");
|
|
453
460
|
@source inline("initAuthInputs");
|
|
454
461
|
@source inline("initial");
|
|
455
|
-
@source inline("initialPath");
|
|
456
462
|
@source inline("inline-flex");
|
|
457
463
|
@source inline("input");
|
|
464
|
+
@source inline("inputContainer");
|
|
458
465
|
@source inline("inputs");
|
|
459
466
|
@source inline("inset-0");
|
|
460
467
|
@source inline("instanceof");
|
|
@@ -480,7 +487,6 @@
|
|
|
480
487
|
@source inline("itemId");
|
|
481
488
|
@source inline("items");
|
|
482
489
|
@source inline("items-center");
|
|
483
|
-
@source inline("items-end");
|
|
484
490
|
@source inline("items-start");
|
|
485
491
|
@source inline("j");
|
|
486
492
|
@source inline("js");
|
|
@@ -496,11 +502,8 @@
|
|
|
496
502
|
@source inline("labelVariants");
|
|
497
503
|
@source inline("lang");
|
|
498
504
|
@source inline("langs");
|
|
499
|
-
@source inline("last");
|
|
500
|
-
@source inline("last:border-b");
|
|
501
505
|
@source inline("last:border-b-0");
|
|
502
506
|
@source inline("last:mb-0");
|
|
503
|
-
@source inline("last:rounded-b-xl");
|
|
504
507
|
@source inline("latest");
|
|
505
508
|
@source inline("layer");
|
|
506
509
|
@source inline("layout");
|
|
@@ -518,6 +521,7 @@
|
|
|
518
521
|
@source inline("load");
|
|
519
522
|
@source inline("loaderPlugin");
|
|
520
523
|
@source inline("localStorage");
|
|
524
|
+
@source inline("longer");
|
|
521
525
|
@source inline("lucide-react");
|
|
522
526
|
@source inline("map");
|
|
523
527
|
@source inline("max");
|
|
@@ -529,7 +533,7 @@
|
|
|
529
533
|
@source inline("may");
|
|
530
534
|
@source inline("mb-1");
|
|
531
535
|
@source inline("mb-2");
|
|
532
|
-
@source inline("mb-
|
|
536
|
+
@source inline("mb-auto");
|
|
533
537
|
@source inline("md");
|
|
534
538
|
@source inline("mdxComponents");
|
|
535
539
|
@source inline("me-auto");
|
|
@@ -538,6 +542,7 @@
|
|
|
538
542
|
@source inline("mediaType");
|
|
539
543
|
@source inline("merge");
|
|
540
544
|
@source inline("mergeAllOf");
|
|
545
|
+
@source inline("mergeRefs");
|
|
541
546
|
@source inline("message");
|
|
542
547
|
@source inline("meta");
|
|
543
548
|
@source inline("metaData");
|
|
@@ -545,18 +550,17 @@
|
|
|
545
550
|
@source inline("migrated");
|
|
546
551
|
@source inline("mime");
|
|
547
552
|
@source inline("min");
|
|
548
|
-
@source inline("min-h-(--
|
|
553
|
+
@source inline("min-h-(--min-height,0)");
|
|
549
554
|
@source inline("min-w-0");
|
|
550
555
|
@source inline("missing");
|
|
551
556
|
@source inline("modify");
|
|
552
|
-
@source inline("moon");
|
|
553
557
|
@source inline("mounted");
|
|
554
558
|
@source inline("ms-2");
|
|
555
559
|
@source inline("ms-auto");
|
|
556
560
|
@source inline("mt-0!");
|
|
557
561
|
@source inline("mt-10");
|
|
558
562
|
@source inline("mt-2");
|
|
559
|
-
@source inline("mt-
|
|
563
|
+
@source inline("mt-3");
|
|
560
564
|
@source inline("multipart/form-data");
|
|
561
565
|
@source inline("multiple");
|
|
562
566
|
@source inline("must");
|
|
@@ -575,12 +579,12 @@
|
|
|
575
579
|
@source inline("never");
|
|
576
580
|
@source inline("new");
|
|
577
581
|
@source inline("newKey");
|
|
582
|
+
@source inline("next");
|
|
583
|
+
@source inline("no");
|
|
578
584
|
@source inline("no-cache");
|
|
579
|
-
@source inline("node");
|
|
580
585
|
@source inline("node:fs");
|
|
581
586
|
@source inline("node:path");
|
|
582
587
|
@source inline("non-RSC");
|
|
583
|
-
@source inline("non-string");
|
|
584
588
|
@source inline("not");
|
|
585
589
|
@source inline("not-last:pb-0");
|
|
586
590
|
@source inline("not-prose");
|
|
@@ -591,6 +595,7 @@
|
|
|
591
595
|
@source inline("obj");
|
|
592
596
|
@source inline("object");
|
|
593
597
|
@source inline("objectSearchOverrides");
|
|
598
|
+
@source inline("objects");
|
|
594
599
|
@source inline("of");
|
|
595
600
|
@source inline("off");
|
|
596
601
|
@source inline("omit");
|
|
@@ -607,11 +612,11 @@
|
|
|
607
612
|
@source inline("one");
|
|
608
613
|
@source inline("oneOf");
|
|
609
614
|
@source inline("only");
|
|
615
|
+
@source inline("opacity-80");
|
|
610
616
|
@source inline("open");
|
|
611
617
|
@source inline("openApiData");
|
|
612
618
|
@source inline("openIdConnect");
|
|
613
619
|
@source inline("openapi");
|
|
614
|
-
@source inline("openapi-types");
|
|
615
620
|
@source inline("openid");
|
|
616
621
|
@source inline("operation");
|
|
617
622
|
@source inline("operationId");
|
|
@@ -627,7 +632,8 @@
|
|
|
627
632
|
@source inline("outline-none");
|
|
628
633
|
@source inline("overflow-auto");
|
|
629
634
|
@source inline("overflow-hidden");
|
|
630
|
-
@source inline("
|
|
635
|
+
@source inline("overflow-x-auto");
|
|
636
|
+
@source inline("overflow-y-hidden");
|
|
631
637
|
@source inline("overview");
|
|
632
638
|
@source inline("p-1");
|
|
633
639
|
@source inline("p-1.5");
|
|
@@ -650,13 +656,14 @@
|
|
|
650
656
|
@source inline("parseSecurities");
|
|
651
657
|
@source inline("parsed");
|
|
652
658
|
@source inline("parsedState");
|
|
659
|
+
@source inline("part");
|
|
653
660
|
@source inline("parts");
|
|
654
661
|
@source inline("pass");
|
|
655
662
|
@source inline("password");
|
|
656
663
|
@source inline("path");
|
|
664
|
+
@source inline("pathIndex");
|
|
657
665
|
@source inline("pathItem");
|
|
658
666
|
@source inline("pathName");
|
|
659
|
-
@source inline("pathNodes");
|
|
660
667
|
@source inline("pathParameters");
|
|
661
668
|
@source inline("paths");
|
|
662
669
|
@source inline("pattern");
|
|
@@ -665,6 +672,8 @@
|
|
|
665
672
|
@source inline("pb-0");
|
|
666
673
|
@source inline("pb-2");
|
|
667
674
|
@source inline("pe-2");
|
|
675
|
+
@source inline("pe-3");
|
|
676
|
+
@source inline("peer");
|
|
668
677
|
@source inline("peer-disabled:cursor-not-allowed");
|
|
669
678
|
@source inline("peer-disabled:opacity-70");
|
|
670
679
|
@source inline("perhaps");
|
|
@@ -681,6 +690,8 @@
|
|
|
681
690
|
@source inline("playgrounds");
|
|
682
691
|
@source inline("please");
|
|
683
692
|
@source inline("plugins");
|
|
693
|
+
@source inline("popover");
|
|
694
|
+
@source inline("popoverRef");
|
|
684
695
|
@source inline("position");
|
|
685
696
|
@source inline("pre");
|
|
686
697
|
@source inline("prefix");
|
|
@@ -704,6 +715,7 @@
|
|
|
704
715
|
@source inline("ps-2");
|
|
705
716
|
@source inline("ps-4.5");
|
|
706
717
|
@source inline("ps-6");
|
|
718
|
+
@source inline("pt-0");
|
|
707
719
|
@source inline("pt-1");
|
|
708
720
|
@source inline("pt-2");
|
|
709
721
|
@source inline("pt-2.5");
|
|
@@ -732,11 +744,9 @@
|
|
|
732
744
|
@source inline("readOnly");
|
|
733
745
|
@source inline("readonly");
|
|
734
746
|
@source inline("records");
|
|
735
|
-
@source inline("recover");
|
|
736
747
|
@source inline("red");
|
|
737
748
|
@source inline("redirect_uri");
|
|
738
749
|
@source inline("ref");
|
|
739
|
-
@source inline("refCallback");
|
|
740
750
|
@source inline("reference");
|
|
741
751
|
@source inline("refs");
|
|
742
752
|
@source inline("registerDefault");
|
|
@@ -756,13 +766,12 @@
|
|
|
756
766
|
@source inline("renderOperationLayout");
|
|
757
767
|
@source inline("renderPageLayout");
|
|
758
768
|
@source inline("renderParameterField");
|
|
759
|
-
@source inline("renderRef");
|
|
760
769
|
@source inline("renderRequestTabs");
|
|
761
770
|
@source inline("renderRequestTabsDefault");
|
|
762
771
|
@source inline("renderResponseTabs");
|
|
763
772
|
@source inline("renderResponseTabsDefault");
|
|
764
773
|
@source inline("renderTranslation");
|
|
765
|
-
@source inline("
|
|
774
|
+
@source inline("renderTypeInfoTrigger");
|
|
766
775
|
@source inline("renderWebhookLayout");
|
|
767
776
|
@source inline("rendered");
|
|
768
777
|
@source inline("renderer");
|
|
@@ -805,13 +814,15 @@
|
|
|
805
814
|
@source inline("returning");
|
|
806
815
|
@source inline("role");
|
|
807
816
|
@source inline("root");
|
|
817
|
+
@source inline("rootId");
|
|
808
818
|
@source inline("rotate-90");
|
|
809
819
|
@source inline("rounded-lg");
|
|
810
820
|
@source inline("rounded-md");
|
|
811
|
-
@source inline("rounded-
|
|
821
|
+
@source inline("rounded-sm");
|
|
812
822
|
@source inline("rounded-xl");
|
|
813
823
|
@source inline("route");
|
|
814
824
|
@source inline("s");
|
|
825
|
+
@source inline("s-highlight");
|
|
815
826
|
@source inline("safeParse");
|
|
816
827
|
@source inline("same");
|
|
817
828
|
@source inline("sample");
|
|
@@ -821,7 +832,6 @@
|
|
|
821
832
|
@source inline("schemaDefault");
|
|
822
833
|
@source inline("schemaExample");
|
|
823
834
|
@source inline("schemaFormat");
|
|
824
|
-
@source inline("schemaHideArray");
|
|
825
835
|
@source inline("schemaId");
|
|
826
836
|
@source inline("schemaItems");
|
|
827
837
|
@source inline("schemaLength");
|
|
@@ -842,20 +852,20 @@
|
|
|
842
852
|
@source inline("scroll");
|
|
843
853
|
@source inline("scroll-m-20");
|
|
844
854
|
@source inline("scrollTop");
|
|
845
|
-
@source inline("scrollWidth");
|
|
846
855
|
@source inline("search");
|
|
847
856
|
@source inline("secondary");
|
|
848
857
|
@source inline("seconds");
|
|
858
|
+
@source inline("section");
|
|
849
859
|
@source inline("securities");
|
|
850
860
|
@source inline("security");
|
|
851
861
|
@source inline("securityId");
|
|
852
862
|
@source inline("securitySchemes");
|
|
863
|
+
@source inline("segments");
|
|
853
864
|
@source inline("segs");
|
|
854
865
|
@source inline("select-none");
|
|
855
866
|
@source inline("selected");
|
|
856
867
|
@source inline("selectedType");
|
|
857
868
|
@source inline("selector");
|
|
858
|
-
@source inline("selectorNode");
|
|
859
869
|
@source inline("sep");
|
|
860
870
|
@source inline("separator");
|
|
861
871
|
@source inline("server");
|
|
@@ -885,7 +895,6 @@
|
|
|
885
895
|
@source inline("setShow");
|
|
886
896
|
@source inline("setStore");
|
|
887
897
|
@source inline("setToken");
|
|
888
|
-
@source inline("setTruncated");
|
|
889
898
|
@source inline("setType");
|
|
890
899
|
@source inline("setValue");
|
|
891
900
|
@source inline("shadow-lg");
|
|
@@ -913,19 +922,20 @@
|
|
|
913
922
|
@source inline("slot");
|
|
914
923
|
@source inline("slotType");
|
|
915
924
|
@source inline("slots");
|
|
916
|
-
@source inline("slug");
|
|
917
|
-
@source inline("slugger");
|
|
918
925
|
@source inline("sm");
|
|
919
926
|
@source inline("sm:flex-row");
|
|
920
927
|
@source inline("sm:gap-2");
|
|
921
928
|
@source inline("sm:justify-end");
|
|
922
929
|
@source inline("sm:text-start");
|
|
930
|
+
@source inline("smooth");
|
|
923
931
|
@source inline("so");
|
|
924
932
|
@source inline("source");
|
|
925
933
|
@source inline("spec");
|
|
926
934
|
@source inline("specify");
|
|
927
935
|
@source inline("src");
|
|
936
|
+
@source inline("stable");
|
|
928
937
|
@source inline("state");
|
|
938
|
+
@source inline("states");
|
|
929
939
|
@source inline("staticSource");
|
|
930
940
|
@source inline("status");
|
|
931
941
|
@source inline("statusBadRequest");
|
|
@@ -960,8 +970,11 @@
|
|
|
960
970
|
@source inline("switch");
|
|
961
971
|
@source inline("t");
|
|
962
972
|
@source inline("tab");
|
|
973
|
+
@source inline("tabDepth");
|
|
974
|
+
@source inline("tabValues");
|
|
963
975
|
@source inline("tabs");
|
|
964
976
|
@source inline("tag");
|
|
977
|
+
@source inline("target");
|
|
965
978
|
@source inline("test");
|
|
966
979
|
@source inline("testQuery");
|
|
967
980
|
@source inline("text");
|
|
@@ -975,6 +988,7 @@
|
|
|
975
988
|
@source inline("text-fd-muted-foreground/70");
|
|
976
989
|
@source inline("text-fd-popover-foreground");
|
|
977
990
|
@source inline("text-fd-primary");
|
|
991
|
+
@source inline("text-fd-primary-foreground");
|
|
978
992
|
@source inline("text-fd-secondary-foreground");
|
|
979
993
|
@source inline("text-green-500");
|
|
980
994
|
@source inline("text-green-600");
|
|
@@ -997,11 +1011,11 @@
|
|
|
997
1011
|
@source inline("that");
|
|
998
1012
|
@source inline("the");
|
|
999
1013
|
@source inline("their");
|
|
1000
|
-
@source inline("theme");
|
|
1001
1014
|
@source inline("themes");
|
|
1002
1015
|
@source inline("this");
|
|
1003
1016
|
@source inline("through");
|
|
1004
1017
|
@source inline("throw");
|
|
1018
|
+
@source inline("tiem");
|
|
1005
1019
|
@source inline("timeout");
|
|
1006
1020
|
@source inline("timerRef");
|
|
1007
1021
|
@source inline("tips");
|
|
@@ -1018,6 +1032,7 @@
|
|
|
1018
1032
|
@source inline("tokenInfo");
|
|
1019
1033
|
@source inline("token_type");
|
|
1020
1034
|
@source inline("toolbar");
|
|
1035
|
+
@source inline("top");
|
|
1021
1036
|
@source inline("top-0");
|
|
1022
1037
|
@source inline("top-1/2");
|
|
1023
1038
|
@source inline("top-10");
|
|
@@ -1060,6 +1075,7 @@
|
|
|
1060
1075
|
@source inline("usageTabs");
|
|
1061
1076
|
@source inline("usages");
|
|
1062
1077
|
@source inline("use");
|
|
1078
|
+
@source inline("useAnchorId");
|
|
1063
1079
|
@source inline("useApiClient");
|
|
1064
1080
|
@source inline("useApiContext");
|
|
1065
1081
|
@source inline("useAuth");
|
|
@@ -1108,10 +1124,10 @@
|
|
|
1108
1124
|
@source inline("warn");
|
|
1109
1125
|
@source inline("we");
|
|
1110
1126
|
@source inline("webhook");
|
|
1127
|
+
@source inline("webhookCallbacks");
|
|
1111
1128
|
@source inline("webhooks");
|
|
1112
1129
|
@source inline("when");
|
|
1113
1130
|
@source inline("whitespace-pre-wrap");
|
|
1114
|
-
@source inline("width");
|
|
1115
1131
|
@source inline("will");
|
|
1116
1132
|
@source inline("with");
|
|
1117
1133
|
@source inline("withBase");
|
|
@@ -1119,7 +1135,6 @@
|
|
|
1119
1135
|
@source inline("wrap");
|
|
1120
1136
|
@source inline("wrap-break-word");
|
|
1121
1137
|
@source inline("wrapLazy");
|
|
1122
|
-
@source inline("wrapper");
|
|
1123
1138
|
@source inline("wrapping");
|
|
1124
1139
|
@source inline("wraps");
|
|
1125
1140
|
@source inline("write");
|
|
@@ -1132,4 +1147,5 @@
|
|
|
1132
1147
|
@source inline("yellow");
|
|
1133
1148
|
@source inline("you");
|
|
1134
1149
|
@source inline("your");
|
|
1150
|
+
@source inline("z-20");
|
|
1135
1151
|
@source inline("z-50");
|
package/dist/_openapi/types.d.ts
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
//#region src/_openapi/types.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* These types are copied from openapi-types, with two modifications:
|
|
4
|
+
*
|
|
5
|
+
* - all attributes are optional, you can't rely on the specification for user input
|
|
6
|
+
* - extensions (basically any attributes, not only prefixed with an `x-`) are allowed
|
|
7
|
+
*
|
|
8
|
+
* We deal with user input and can't assume they really stick to any official specification.
|
|
9
|
+
*/
|
|
10
|
+
/** any other attribute, for example x-* extensions */
|
|
11
|
+
declare namespace OpenAPI {
|
|
12
|
+
type Document<T = {}> = OpenAPIV2.Document<T> | OpenAPIV3.Document<T> | OpenAPIV3_1.Document<T> | OpenAPIV3_2.Document<T>;
|
|
13
|
+
type Operation<T = {}> = OpenAPIV2.OperationObject<T> | OpenAPIV3.OperationObject<T> | OpenAPIV3_1.OperationObject<T> | OpenAPIV3_2.OperationObject<T>;
|
|
14
|
+
type Request = {
|
|
15
|
+
body?: any;
|
|
16
|
+
headers?: object;
|
|
17
|
+
params?: object;
|
|
18
|
+
query?: object;
|
|
19
|
+
};
|
|
20
|
+
type ResponseObject = OpenAPIV2.ResponseObject | OpenAPIV3.ResponseObject | OpenAPIV3_1.ResponseObject | OpenAPIV3_2.ResponseObject;
|
|
21
|
+
type HeaderObject = OpenAPIV2.HeaderObject | OpenAPIV3.HeaderObject | OpenAPIV3_1.HeaderObject | OpenAPIV3_2.HeaderObject;
|
|
22
|
+
type Parameter = OpenAPIV3_2.ReferenceObject | OpenAPIV3_2.ParameterObject | OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.ParameterObject | OpenAPIV3.ReferenceObject | OpenAPIV3.ParameterObject | OpenAPIV2.ReferenceObject | OpenAPIV2.Parameter;
|
|
23
|
+
type Parameters = (OpenAPIV3_2.ReferenceObject | OpenAPIV3_2.ParameterObject)[] | (OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.ParameterObject)[] | (OpenAPIV3.ReferenceObject | OpenAPIV3.ParameterObject)[] | (OpenAPIV2.ReferenceObject | OpenAPIV2.Parameter)[];
|
|
24
|
+
type ExampleObject = OpenAPIV2.ExampleObject | OpenAPIV3.ExampleObject | OpenAPIV3_1.ExampleObject | OpenAPIV3_2.ExampleObject;
|
|
25
|
+
type SchemaObject = OpenAPIV2.SchemaObject | OpenAPIV3.SchemaObject | OpenAPIV3_1.SchemaObject | OpenAPIV3_2.SchemaObject;
|
|
26
|
+
type HttpMethod = OpenAPIV2.HttpMethods | OpenAPIV3.HttpMethods | OpenAPIV3_1.HttpMethods | OpenAPIV3_2.HttpMethods;
|
|
27
|
+
}
|
|
2
28
|
declare namespace OpenAPIV3_2 {
|
|
3
29
|
type Modify<T, R> = Omit<T, keyof R> & R;
|
|
4
30
|
export type PathsWebhooksComponents<T = {}> = {
|
|
@@ -877,4 +903,4 @@ type IJsonSchema = {
|
|
|
877
903
|
$ref?: string;
|
|
878
904
|
};
|
|
879
905
|
//#endregion
|
|
880
|
-
export { OpenAPIV3, OpenAPIV3_2 };
|
|
906
|
+
export { OpenAPI, OpenAPIV2, OpenAPIV3, OpenAPIV3_1, OpenAPIV3_2 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MediaAdapter } from "./requests/media/adapter.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { OpenAPI, OpenAPIV2, OpenAPIV3, OpenAPIV3_1, OpenAPIV3_2 } from "./_openapi/types.js";
|
|
3
|
+
import { OperationOutput, OutputEntry, OutputGroup, PageOutput, PagesBuilder, PagesBuilderConfig, WebhookOutput } from "./utils/pages/builder.js";
|
|
4
|
+
import { SchemaToPagesOptions } from "./utils/pages/preset-auto.js";
|
|
5
|
+
import { MethodInformation, RenderContext } from "./types.js";
|
|
5
6
|
import { Config, OutputFile, generateFiles, generateFilesOnly } from "./generate-file.js";
|
|
6
|
-
export {
|
|
7
|
+
export { Config, type MediaAdapter, type MethodInformation, type OpenAPI, type OpenAPIV2, type OpenAPIV3, type OpenAPIV3_1, type OpenAPIV3_2, type OperationOutput, type OutputEntry, OutputFile, type OutputGroup, type PageOutput, type PagesBuilder, type PagesBuilderConfig, type RenderContext, type SchemaToPagesOptions, type WebhookOutput, generateFiles, generateFilesOnly };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _path } from "./shared/pathe.M-eThtNZ.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.mjs
|
|
3
|
-
const delimiter = globalThis.process?.platform === "win32" ? ";" : ":";
|
|
3
|
+
const delimiter = /* @__PURE__ */ (() => globalThis.process?.platform === "win32" ? ";" : ":")();
|
|
4
4
|
const _platforms = {
|
|
5
5
|
posix: void 0,
|
|
6
6
|
win32: void 0
|
|
@@ -50,7 +50,7 @@ interface PlaygroundClientOptions {
|
|
|
50
50
|
* for updating values, use:
|
|
51
51
|
* - the `Custom.useController()` from `fumadocs-openapi/playground/client`.
|
|
52
52
|
*
|
|
53
|
-
* Recommended types packages: `json-schema-typed
|
|
53
|
+
* Recommended types packages: `json-schema-typed`.
|
|
54
54
|
*/
|
|
55
55
|
renderParameterField?: (fieldName: FieldKey, param: ParameterObject) => ReactNode;
|
|
56
56
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CodeUsageGeneratorRegistry } from "./index.js";
|
|
2
2
|
|
|
3
3
|
//#region src/requests/generators/all.d.ts
|
|
4
|
-
declare function registerDefault(registry: CodeUsageGeneratorRegistry):
|
|
4
|
+
declare function registerDefault(registry: CodeUsageGeneratorRegistry): CodeUsageGeneratorRegistry;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { registerDefault };
|
package/dist/scalar/client.js
CHANGED
|
@@ -12,10 +12,7 @@ import "@scalar/api-client-react/style.css";
|
|
|
12
12
|
function ScalarPlayground({ path, method, spec }) {
|
|
13
13
|
const { resolvedTheme } = useTheme();
|
|
14
14
|
const [mounted, setMounted] = useState(false);
|
|
15
|
-
const client = useApiClient({ configuration: {
|
|
16
|
-
theme: "moon",
|
|
17
|
-
spec
|
|
18
|
-
} });
|
|
15
|
+
const client = useApiClient({ configuration: { content: spec } });
|
|
19
16
|
useEffect(() => {
|
|
20
17
|
setMounted(true);
|
|
21
18
|
}, []);
|