zudoku 0.3.0-dev.77 → 0.3.0-dev.78
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/config/validators/validate.d.ts +130 -130
- package/dist/lib/components/DevPortal.js +11 -2
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/core/plugins.d.ts +3 -0
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +2 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +8 -16
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +18 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -6
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +15 -15
- package/dist/lib/plugins/openapi/graphql/graphql.js +67 -67
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +8 -0
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +2 -3
- package/dist/lib/plugins/openapi/playground/PathParams.js +3 -4
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +22 -10
- package/dist/lib/plugins/openapi/playground/Playground.js +37 -25
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +2 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/QueryParams.js +10 -5
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/util/fetchTimeout.d.ts +1 -0
- package/dist/lib/util/fetchTimeout.js +14 -0
- package/dist/lib/util/fetchTimeout.js.map +1 -0
- package/lib/{CategoryHeading-D0V23fMT.js → CategoryHeading-DCmchnA1.js} +2 -2
- package/lib/{CategoryHeading-D0V23fMT.js.map → CategoryHeading-DCmchnA1.js.map} +1 -1
- package/lib/{Combination-CgxP9BB4.js → Combination-BIdpLnWg.js} +27 -33
- package/lib/Combination-BIdpLnWg.js.map +1 -0
- package/lib/DeveloperHint-DQVwIery.js +10 -0
- package/lib/DeveloperHint-DQVwIery.js.map +1 -0
- package/lib/{Input-BcZoDid4.js → Input-qyZciIJp.js} +3 -3
- package/lib/{Input-BcZoDid4.js.map → Input-qyZciIJp.js.map} +1 -1
- package/lib/{Markdown-IsabnbGN.js → Markdown-QsZ-PHET.js} +3 -3
- package/lib/{Markdown-IsabnbGN.js.map → Markdown-QsZ-PHET.js.map} +1 -1
- package/lib/{MdxPage-B1B2Inj5.js → MdxPage-V4FCB0C_.js} +3 -3
- package/lib/{MdxPage-B1B2Inj5.js.map → MdxPage-V4FCB0C_.js.map} +1 -1
- package/lib/OperationList-qfNEBPAx.js +4397 -0
- package/lib/OperationList-qfNEBPAx.js.map +1 -0
- package/lib/{Route-D0Ub80Oa.js → Route-CogU1ofM.js} +2 -2
- package/lib/{Route-D0Ub80Oa.js.map → Route-CogU1ofM.js.map} +1 -1
- package/lib/{SlotletProvider-CJXWb2gw.js → SlotletProvider-D_Vz-7c_.js} +4 -4
- package/lib/{SlotletProvider-CJXWb2gw.js.map → SlotletProvider-D_Vz-7c_.js.map} +1 -1
- package/lib/Spinner-yPSFgoZ8.js +244 -0
- package/lib/Spinner-yPSFgoZ8.js.map +1 -0
- package/lib/index-BpO_SgPQ.js +124 -0
- package/lib/index-BpO_SgPQ.js.map +1 -0
- package/lib/index-DccqEFTy.js +1878 -0
- package/lib/index-DccqEFTy.js.map +1 -0
- package/lib/{urql-DMlBWUKL.js → urql-DrBfkb92.js} +2 -3
- package/lib/{urql-DMlBWUKL.js.map → urql-DrBfkb92.js.map} +1 -1
- package/lib/zudoku.components.js +352 -348
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +7 -6
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -4
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/components/DevPortal.tsx +14 -5
- package/src/lib/core/plugins.ts +7 -0
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +9 -17
- package/src/lib/plugins/openapi/Sidecar.tsx +23 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +8 -8
- package/src/lib/plugins/openapi/graphql/graphql.ts +80 -80
- package/src/lib/plugins/openapi/index.tsx +15 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +14 -20
- package/src/lib/plugins/openapi/playground/Playground.tsx +69 -45
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +8 -6
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +86 -72
- package/src/lib/util/fetchTimeout.tsx +21 -0
- package/lib/Combination-CgxP9BB4.js.map +0 -1
- package/lib/OperationList-B2nsuf1v.js +0 -5471
- package/lib/OperationList-B2nsuf1v.js.map +0 -1
- package/lib/Spinner-BhtSoFka.js +0 -359
- package/lib/Spinner-BhtSoFka.js.map +0 -1
- package/lib/index-BC2Ob2BR.js +0 -727
- package/lib/index-BC2Ob2BR.js.map +0 -1
|
@@ -83,11 +83,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
83
83
|
ring: z.ZodOptional<z.ZodString>;
|
|
84
84
|
radius: z.ZodOptional<z.ZodString>;
|
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
|
86
|
-
destructive?: string | undefined;
|
|
87
|
-
secondary?: string | undefined;
|
|
88
86
|
input?: string | undefined;
|
|
89
87
|
radius?: string | undefined;
|
|
90
88
|
border?: string | undefined;
|
|
89
|
+
destructive?: string | undefined;
|
|
90
|
+
secondary?: string | undefined;
|
|
91
91
|
muted?: string | undefined;
|
|
92
92
|
background?: string | undefined;
|
|
93
93
|
foreground?: string | undefined;
|
|
@@ -104,11 +104,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
104
104
|
destructiveForeground?: string | undefined;
|
|
105
105
|
ring?: string | undefined;
|
|
106
106
|
}, {
|
|
107
|
-
destructive?: string | undefined;
|
|
108
|
-
secondary?: string | undefined;
|
|
109
107
|
input?: string | undefined;
|
|
110
108
|
radius?: string | undefined;
|
|
111
109
|
border?: string | undefined;
|
|
110
|
+
destructive?: string | undefined;
|
|
111
|
+
secondary?: string | undefined;
|
|
112
112
|
muted?: string | undefined;
|
|
113
113
|
background?: string | undefined;
|
|
114
114
|
foreground?: string | undefined;
|
|
@@ -147,11 +147,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
147
147
|
ring: z.ZodOptional<z.ZodString>;
|
|
148
148
|
radius: z.ZodOptional<z.ZodString>;
|
|
149
149
|
}, "strip", z.ZodTypeAny, {
|
|
150
|
-
destructive?: string | undefined;
|
|
151
|
-
secondary?: string | undefined;
|
|
152
150
|
input?: string | undefined;
|
|
153
151
|
radius?: string | undefined;
|
|
154
152
|
border?: string | undefined;
|
|
153
|
+
destructive?: string | undefined;
|
|
154
|
+
secondary?: string | undefined;
|
|
155
155
|
muted?: string | undefined;
|
|
156
156
|
background?: string | undefined;
|
|
157
157
|
foreground?: string | undefined;
|
|
@@ -168,11 +168,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
168
168
|
destructiveForeground?: string | undefined;
|
|
169
169
|
ring?: string | undefined;
|
|
170
170
|
}, {
|
|
171
|
-
destructive?: string | undefined;
|
|
172
|
-
secondary?: string | undefined;
|
|
173
171
|
input?: string | undefined;
|
|
174
172
|
radius?: string | undefined;
|
|
175
173
|
border?: string | undefined;
|
|
174
|
+
destructive?: string | undefined;
|
|
175
|
+
secondary?: string | undefined;
|
|
176
176
|
muted?: string | undefined;
|
|
177
177
|
background?: string | undefined;
|
|
178
178
|
foreground?: string | undefined;
|
|
@@ -191,11 +191,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
191
191
|
}>>;
|
|
192
192
|
}, "strip", z.ZodTypeAny, {
|
|
193
193
|
dark?: {
|
|
194
|
-
destructive?: string | undefined;
|
|
195
|
-
secondary?: string | undefined;
|
|
196
194
|
input?: string | undefined;
|
|
197
195
|
radius?: string | undefined;
|
|
198
196
|
border?: string | undefined;
|
|
197
|
+
destructive?: string | undefined;
|
|
198
|
+
secondary?: string | undefined;
|
|
199
199
|
muted?: string | undefined;
|
|
200
200
|
background?: string | undefined;
|
|
201
201
|
foreground?: string | undefined;
|
|
@@ -213,11 +213,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
213
213
|
ring?: string | undefined;
|
|
214
214
|
} | undefined;
|
|
215
215
|
light?: {
|
|
216
|
-
destructive?: string | undefined;
|
|
217
|
-
secondary?: string | undefined;
|
|
218
216
|
input?: string | undefined;
|
|
219
217
|
radius?: string | undefined;
|
|
220
218
|
border?: string | undefined;
|
|
219
|
+
destructive?: string | undefined;
|
|
220
|
+
secondary?: string | undefined;
|
|
221
221
|
muted?: string | undefined;
|
|
222
222
|
background?: string | undefined;
|
|
223
223
|
foreground?: string | undefined;
|
|
@@ -236,11 +236,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
236
236
|
} | undefined;
|
|
237
237
|
}, {
|
|
238
238
|
dark?: {
|
|
239
|
-
destructive?: string | undefined;
|
|
240
|
-
secondary?: string | undefined;
|
|
241
239
|
input?: string | undefined;
|
|
242
240
|
radius?: string | undefined;
|
|
243
241
|
border?: string | undefined;
|
|
242
|
+
destructive?: string | undefined;
|
|
243
|
+
secondary?: string | undefined;
|
|
244
244
|
muted?: string | undefined;
|
|
245
245
|
background?: string | undefined;
|
|
246
246
|
foreground?: string | undefined;
|
|
@@ -258,11 +258,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
258
258
|
ring?: string | undefined;
|
|
259
259
|
} | undefined;
|
|
260
260
|
light?: {
|
|
261
|
-
destructive?: string | undefined;
|
|
262
|
-
secondary?: string | undefined;
|
|
263
261
|
input?: string | undefined;
|
|
264
262
|
radius?: string | undefined;
|
|
265
263
|
border?: string | undefined;
|
|
264
|
+
destructive?: string | undefined;
|
|
265
|
+
secondary?: string | undefined;
|
|
266
266
|
muted?: string | undefined;
|
|
267
267
|
background?: string | undefined;
|
|
268
268
|
foreground?: string | undefined;
|
|
@@ -399,13 +399,13 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
399
399
|
server: z.ZodOptional<z.ZodString>;
|
|
400
400
|
path: z.ZodOptional<z.ZodString>;
|
|
401
401
|
}>, "strip", z.ZodTypeAny, {
|
|
402
|
-
type: "url";
|
|
403
402
|
input: string;
|
|
403
|
+
type: "url";
|
|
404
404
|
path?: string | undefined;
|
|
405
405
|
server?: string | undefined;
|
|
406
406
|
}, {
|
|
407
|
-
type: "url";
|
|
408
407
|
input: string;
|
|
408
|
+
type: "url";
|
|
409
409
|
path?: string | undefined;
|
|
410
410
|
server?: string | undefined;
|
|
411
411
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -415,13 +415,13 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
415
415
|
server: z.ZodOptional<z.ZodString>;
|
|
416
416
|
path: z.ZodOptional<z.ZodString>;
|
|
417
417
|
}>, "strip", z.ZodTypeAny, {
|
|
418
|
-
type: "yaml";
|
|
419
418
|
input: string;
|
|
419
|
+
type: "yaml";
|
|
420
420
|
path?: string | undefined;
|
|
421
421
|
server?: string | undefined;
|
|
422
422
|
}, {
|
|
423
|
-
type: "yaml";
|
|
424
423
|
input: string;
|
|
424
|
+
type: "yaml";
|
|
425
425
|
path?: string | undefined;
|
|
426
426
|
server?: string | undefined;
|
|
427
427
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -431,17 +431,17 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
431
431
|
server: z.ZodOptional<z.ZodString>;
|
|
432
432
|
path: z.ZodOptional<z.ZodString>;
|
|
433
433
|
}>, "strip", z.ZodTypeAny, {
|
|
434
|
-
type: "json";
|
|
435
434
|
input: {} & {
|
|
436
435
|
[k: string]: unknown;
|
|
437
436
|
};
|
|
437
|
+
type: "json";
|
|
438
438
|
path?: string | undefined;
|
|
439
439
|
server?: string | undefined;
|
|
440
440
|
}, {
|
|
441
|
-
type: "json";
|
|
442
441
|
input: {} & {
|
|
443
442
|
[k: string]: unknown;
|
|
444
443
|
};
|
|
444
|
+
type: "json";
|
|
445
445
|
path?: string | undefined;
|
|
446
446
|
server?: string | undefined;
|
|
447
447
|
}>]>, z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -451,13 +451,13 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
451
451
|
server: z.ZodOptional<z.ZodString>;
|
|
452
452
|
path: z.ZodOptional<z.ZodString>;
|
|
453
453
|
}>, "strip", z.ZodTypeAny, {
|
|
454
|
-
type: "url";
|
|
455
454
|
input: string;
|
|
455
|
+
type: "url";
|
|
456
456
|
path?: string | undefined;
|
|
457
457
|
server?: string | undefined;
|
|
458
458
|
}, {
|
|
459
|
-
type: "url";
|
|
460
459
|
input: string;
|
|
460
|
+
type: "url";
|
|
461
461
|
path?: string | undefined;
|
|
462
462
|
server?: string | undefined;
|
|
463
463
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -467,13 +467,13 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
467
467
|
server: z.ZodOptional<z.ZodString>;
|
|
468
468
|
path: z.ZodOptional<z.ZodString>;
|
|
469
469
|
}>, "strip", z.ZodTypeAny, {
|
|
470
|
-
type: "yaml";
|
|
471
470
|
input: string;
|
|
471
|
+
type: "yaml";
|
|
472
472
|
path?: string | undefined;
|
|
473
473
|
server?: string | undefined;
|
|
474
474
|
}, {
|
|
475
|
-
type: "yaml";
|
|
476
475
|
input: string;
|
|
476
|
+
type: "yaml";
|
|
477
477
|
path?: string | undefined;
|
|
478
478
|
server?: string | undefined;
|
|
479
479
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -483,17 +483,17 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
483
483
|
server: z.ZodOptional<z.ZodString>;
|
|
484
484
|
path: z.ZodOptional<z.ZodString>;
|
|
485
485
|
}>, "strip", z.ZodTypeAny, {
|
|
486
|
-
type: "json";
|
|
487
486
|
input: {} & {
|
|
488
487
|
[k: string]: unknown;
|
|
489
488
|
};
|
|
489
|
+
type: "json";
|
|
490
490
|
path?: string | undefined;
|
|
491
491
|
server?: string | undefined;
|
|
492
492
|
}, {
|
|
493
|
-
type: "json";
|
|
494
493
|
input: {} & {
|
|
495
494
|
[k: string]: unknown;
|
|
496
495
|
};
|
|
496
|
+
type: "json";
|
|
497
497
|
path?: string | undefined;
|
|
498
498
|
server?: string | undefined;
|
|
499
499
|
}>]>, "many">]>>;
|
|
@@ -580,54 +580,13 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
580
580
|
rehypePlugins?: Options["rehypePlugins"];
|
|
581
581
|
}>>;
|
|
582
582
|
}, "strip", z.ZodTypeAny, {
|
|
583
|
-
navigation?: NavigationItem[] | undefined;
|
|
584
|
-
authentication?: {
|
|
585
|
-
type: "clerk";
|
|
586
|
-
clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
|
|
587
|
-
redirectToAfterSignUp?: string | undefined;
|
|
588
|
-
redirectToAfterSignIn?: string | undefined;
|
|
589
|
-
redirectToAfterSignOut?: string | undefined;
|
|
590
|
-
} | {
|
|
591
|
-
type: "auth0";
|
|
592
|
-
clientId: string;
|
|
593
|
-
domain: string;
|
|
594
|
-
redirectToAfterSignUp?: string | undefined;
|
|
595
|
-
redirectToAfterSignIn?: string | undefined;
|
|
596
|
-
redirectToAfterSignOut?: string | undefined;
|
|
597
|
-
audience?: string | undefined;
|
|
598
|
-
} | undefined;
|
|
599
|
-
metadata?: {
|
|
600
|
-
title?: string | undefined;
|
|
601
|
-
logo?: string | undefined;
|
|
602
|
-
description?: string | undefined;
|
|
603
|
-
favicon?: string | undefined;
|
|
604
|
-
generator?: string | undefined;
|
|
605
|
-
applicationName?: string | undefined;
|
|
606
|
-
referrer?: string | undefined;
|
|
607
|
-
keywords?: string[] | undefined;
|
|
608
|
-
authors?: string[] | undefined;
|
|
609
|
-
creator?: string | undefined;
|
|
610
|
-
publisher?: string | undefined;
|
|
611
|
-
} | undefined;
|
|
612
|
-
page?: {
|
|
613
|
-
pageTitle?: string | undefined;
|
|
614
|
-
logo?: {
|
|
615
|
-
src: {
|
|
616
|
-
dark: string;
|
|
617
|
-
light: string;
|
|
618
|
-
};
|
|
619
|
-
width?: string | undefined;
|
|
620
|
-
alt?: string | undefined;
|
|
621
|
-
} | undefined;
|
|
622
|
-
logoUrl?: string | undefined;
|
|
623
|
-
} | undefined;
|
|
624
583
|
theme?: {
|
|
625
584
|
dark?: {
|
|
626
|
-
destructive?: string | undefined;
|
|
627
|
-
secondary?: string | undefined;
|
|
628
585
|
input?: string | undefined;
|
|
629
586
|
radius?: string | undefined;
|
|
630
587
|
border?: string | undefined;
|
|
588
|
+
destructive?: string | undefined;
|
|
589
|
+
secondary?: string | undefined;
|
|
631
590
|
muted?: string | undefined;
|
|
632
591
|
background?: string | undefined;
|
|
633
592
|
foreground?: string | undefined;
|
|
@@ -645,11 +604,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
645
604
|
ring?: string | undefined;
|
|
646
605
|
} | undefined;
|
|
647
606
|
light?: {
|
|
648
|
-
destructive?: string | undefined;
|
|
649
|
-
secondary?: string | undefined;
|
|
650
607
|
input?: string | undefined;
|
|
651
608
|
radius?: string | undefined;
|
|
652
609
|
border?: string | undefined;
|
|
610
|
+
destructive?: string | undefined;
|
|
611
|
+
secondary?: string | undefined;
|
|
653
612
|
muted?: string | undefined;
|
|
654
613
|
background?: string | undefined;
|
|
655
614
|
foreground?: string | undefined;
|
|
@@ -667,6 +626,47 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
667
626
|
ring?: string | undefined;
|
|
668
627
|
} | undefined;
|
|
669
628
|
} | undefined;
|
|
629
|
+
metadata?: {
|
|
630
|
+
title?: string | undefined;
|
|
631
|
+
logo?: string | undefined;
|
|
632
|
+
description?: string | undefined;
|
|
633
|
+
favicon?: string | undefined;
|
|
634
|
+
generator?: string | undefined;
|
|
635
|
+
applicationName?: string | undefined;
|
|
636
|
+
referrer?: string | undefined;
|
|
637
|
+
keywords?: string[] | undefined;
|
|
638
|
+
authors?: string[] | undefined;
|
|
639
|
+
creator?: string | undefined;
|
|
640
|
+
publisher?: string | undefined;
|
|
641
|
+
} | undefined;
|
|
642
|
+
navigation?: NavigationItem[] | undefined;
|
|
643
|
+
page?: {
|
|
644
|
+
pageTitle?: string | undefined;
|
|
645
|
+
logo?: {
|
|
646
|
+
src: {
|
|
647
|
+
dark: string;
|
|
648
|
+
light: string;
|
|
649
|
+
};
|
|
650
|
+
width?: string | undefined;
|
|
651
|
+
alt?: string | undefined;
|
|
652
|
+
} | undefined;
|
|
653
|
+
logoUrl?: string | undefined;
|
|
654
|
+
} | undefined;
|
|
655
|
+
authentication?: {
|
|
656
|
+
type: "clerk";
|
|
657
|
+
clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
|
|
658
|
+
redirectToAfterSignUp?: string | undefined;
|
|
659
|
+
redirectToAfterSignIn?: string | undefined;
|
|
660
|
+
redirectToAfterSignOut?: string | undefined;
|
|
661
|
+
} | {
|
|
662
|
+
type: "auth0";
|
|
663
|
+
clientId: string;
|
|
664
|
+
domain: string;
|
|
665
|
+
redirectToAfterSignUp?: string | undefined;
|
|
666
|
+
redirectToAfterSignIn?: string | undefined;
|
|
667
|
+
redirectToAfterSignOut?: string | undefined;
|
|
668
|
+
audience?: string | undefined;
|
|
669
|
+
} | undefined;
|
|
670
670
|
slotlets?: Record<string, ReactNode> | undefined;
|
|
671
671
|
mdx?: {
|
|
672
672
|
components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
|
|
@@ -679,37 +679,37 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
679
679
|
files?: string | undefined;
|
|
680
680
|
} | undefined;
|
|
681
681
|
apis?: {
|
|
682
|
-
type: "url";
|
|
683
682
|
input: string;
|
|
683
|
+
type: "url";
|
|
684
684
|
path?: string | undefined;
|
|
685
685
|
server?: string | undefined;
|
|
686
686
|
} | {
|
|
687
|
-
type: "yaml";
|
|
688
687
|
input: string;
|
|
688
|
+
type: "yaml";
|
|
689
689
|
path?: string | undefined;
|
|
690
690
|
server?: string | undefined;
|
|
691
691
|
} | {
|
|
692
|
-
type: "json";
|
|
693
692
|
input: {} & {
|
|
694
693
|
[k: string]: unknown;
|
|
695
694
|
};
|
|
695
|
+
type: "json";
|
|
696
696
|
path?: string | undefined;
|
|
697
697
|
server?: string | undefined;
|
|
698
698
|
} | ({
|
|
699
|
-
type: "url";
|
|
700
699
|
input: string;
|
|
700
|
+
type: "url";
|
|
701
701
|
path?: string | undefined;
|
|
702
702
|
server?: string | undefined;
|
|
703
703
|
} | {
|
|
704
|
-
type: "yaml";
|
|
705
704
|
input: string;
|
|
705
|
+
type: "yaml";
|
|
706
706
|
path?: string | undefined;
|
|
707
707
|
server?: string | undefined;
|
|
708
708
|
} | {
|
|
709
|
-
type: "json";
|
|
710
709
|
input: {} & {
|
|
711
710
|
[k: string]: unknown;
|
|
712
711
|
};
|
|
712
|
+
type: "json";
|
|
713
713
|
path?: string | undefined;
|
|
714
714
|
server?: string | undefined;
|
|
715
715
|
})[] | undefined;
|
|
@@ -743,54 +743,13 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
743
743
|
rehypePlugins?: Options["rehypePlugins"];
|
|
744
744
|
} | undefined;
|
|
745
745
|
}, {
|
|
746
|
-
navigation?: NavigationItem[] | undefined;
|
|
747
|
-
authentication?: {
|
|
748
|
-
type: "clerk";
|
|
749
|
-
clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
|
|
750
|
-
redirectToAfterSignUp?: string | undefined;
|
|
751
|
-
redirectToAfterSignIn?: string | undefined;
|
|
752
|
-
redirectToAfterSignOut?: string | undefined;
|
|
753
|
-
} | {
|
|
754
|
-
type: "auth0";
|
|
755
|
-
clientId: string;
|
|
756
|
-
domain: string;
|
|
757
|
-
redirectToAfterSignUp?: string | undefined;
|
|
758
|
-
redirectToAfterSignIn?: string | undefined;
|
|
759
|
-
redirectToAfterSignOut?: string | undefined;
|
|
760
|
-
audience?: string | undefined;
|
|
761
|
-
} | undefined;
|
|
762
|
-
metadata?: {
|
|
763
|
-
title?: string | undefined;
|
|
764
|
-
logo?: string | undefined;
|
|
765
|
-
description?: string | undefined;
|
|
766
|
-
favicon?: string | undefined;
|
|
767
|
-
generator?: string | undefined;
|
|
768
|
-
applicationName?: string | undefined;
|
|
769
|
-
referrer?: string | undefined;
|
|
770
|
-
keywords?: string[] | undefined;
|
|
771
|
-
authors?: string[] | undefined;
|
|
772
|
-
creator?: string | undefined;
|
|
773
|
-
publisher?: string | undefined;
|
|
774
|
-
} | undefined;
|
|
775
|
-
page?: {
|
|
776
|
-
pageTitle?: string | undefined;
|
|
777
|
-
logo?: {
|
|
778
|
-
src: {
|
|
779
|
-
dark: string;
|
|
780
|
-
light: string;
|
|
781
|
-
};
|
|
782
|
-
width?: string | undefined;
|
|
783
|
-
alt?: string | undefined;
|
|
784
|
-
} | undefined;
|
|
785
|
-
logoUrl?: string | undefined;
|
|
786
|
-
} | undefined;
|
|
787
746
|
theme?: {
|
|
788
747
|
dark?: {
|
|
789
|
-
destructive?: string | undefined;
|
|
790
|
-
secondary?: string | undefined;
|
|
791
748
|
input?: string | undefined;
|
|
792
749
|
radius?: string | undefined;
|
|
793
750
|
border?: string | undefined;
|
|
751
|
+
destructive?: string | undefined;
|
|
752
|
+
secondary?: string | undefined;
|
|
794
753
|
muted?: string | undefined;
|
|
795
754
|
background?: string | undefined;
|
|
796
755
|
foreground?: string | undefined;
|
|
@@ -808,11 +767,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
808
767
|
ring?: string | undefined;
|
|
809
768
|
} | undefined;
|
|
810
769
|
light?: {
|
|
811
|
-
destructive?: string | undefined;
|
|
812
|
-
secondary?: string | undefined;
|
|
813
770
|
input?: string | undefined;
|
|
814
771
|
radius?: string | undefined;
|
|
815
772
|
border?: string | undefined;
|
|
773
|
+
destructive?: string | undefined;
|
|
774
|
+
secondary?: string | undefined;
|
|
816
775
|
muted?: string | undefined;
|
|
817
776
|
background?: string | undefined;
|
|
818
777
|
foreground?: string | undefined;
|
|
@@ -830,6 +789,47 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
830
789
|
ring?: string | undefined;
|
|
831
790
|
} | undefined;
|
|
832
791
|
} | undefined;
|
|
792
|
+
metadata?: {
|
|
793
|
+
title?: string | undefined;
|
|
794
|
+
logo?: string | undefined;
|
|
795
|
+
description?: string | undefined;
|
|
796
|
+
favicon?: string | undefined;
|
|
797
|
+
generator?: string | undefined;
|
|
798
|
+
applicationName?: string | undefined;
|
|
799
|
+
referrer?: string | undefined;
|
|
800
|
+
keywords?: string[] | undefined;
|
|
801
|
+
authors?: string[] | undefined;
|
|
802
|
+
creator?: string | undefined;
|
|
803
|
+
publisher?: string | undefined;
|
|
804
|
+
} | undefined;
|
|
805
|
+
navigation?: NavigationItem[] | undefined;
|
|
806
|
+
page?: {
|
|
807
|
+
pageTitle?: string | undefined;
|
|
808
|
+
logo?: {
|
|
809
|
+
src: {
|
|
810
|
+
dark: string;
|
|
811
|
+
light: string;
|
|
812
|
+
};
|
|
813
|
+
width?: string | undefined;
|
|
814
|
+
alt?: string | undefined;
|
|
815
|
+
} | undefined;
|
|
816
|
+
logoUrl?: string | undefined;
|
|
817
|
+
} | undefined;
|
|
818
|
+
authentication?: {
|
|
819
|
+
type: "clerk";
|
|
820
|
+
clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
|
|
821
|
+
redirectToAfterSignUp?: string | undefined;
|
|
822
|
+
redirectToAfterSignIn?: string | undefined;
|
|
823
|
+
redirectToAfterSignOut?: string | undefined;
|
|
824
|
+
} | {
|
|
825
|
+
type: "auth0";
|
|
826
|
+
clientId: string;
|
|
827
|
+
domain: string;
|
|
828
|
+
redirectToAfterSignUp?: string | undefined;
|
|
829
|
+
redirectToAfterSignIn?: string | undefined;
|
|
830
|
+
redirectToAfterSignOut?: string | undefined;
|
|
831
|
+
audience?: string | undefined;
|
|
832
|
+
} | undefined;
|
|
833
833
|
slotlets?: Record<string, ReactNode> | undefined;
|
|
834
834
|
mdx?: {
|
|
835
835
|
components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
|
|
@@ -842,37 +842,37 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
842
842
|
files?: string | undefined;
|
|
843
843
|
} | undefined;
|
|
844
844
|
apis?: {
|
|
845
|
-
type: "url";
|
|
846
845
|
input: string;
|
|
846
|
+
type: "url";
|
|
847
847
|
path?: string | undefined;
|
|
848
848
|
server?: string | undefined;
|
|
849
849
|
} | {
|
|
850
|
-
type: "yaml";
|
|
851
850
|
input: string;
|
|
851
|
+
type: "yaml";
|
|
852
852
|
path?: string | undefined;
|
|
853
853
|
server?: string | undefined;
|
|
854
854
|
} | {
|
|
855
|
-
type: "json";
|
|
856
855
|
input: {} & {
|
|
857
856
|
[k: string]: unknown;
|
|
858
857
|
};
|
|
858
|
+
type: "json";
|
|
859
859
|
path?: string | undefined;
|
|
860
860
|
server?: string | undefined;
|
|
861
861
|
} | ({
|
|
862
|
-
type: "url";
|
|
863
862
|
input: string;
|
|
863
|
+
type: "url";
|
|
864
864
|
path?: string | undefined;
|
|
865
865
|
server?: string | undefined;
|
|
866
866
|
} | {
|
|
867
|
-
type: "yaml";
|
|
868
867
|
input: string;
|
|
868
|
+
type: "yaml";
|
|
869
869
|
path?: string | undefined;
|
|
870
870
|
server?: string | undefined;
|
|
871
871
|
} | {
|
|
872
|
-
type: "json";
|
|
873
872
|
input: {} & {
|
|
874
873
|
[k: string]: unknown;
|
|
875
874
|
};
|
|
875
|
+
type: "json";
|
|
876
876
|
path?: string | undefined;
|
|
877
877
|
server?: string | undefined;
|
|
878
878
|
})[] | undefined;
|
|
@@ -6,7 +6,7 @@ import { Fragment, memo, useContext, useEffect, useMemo, useRef, useState, } fro
|
|
|
6
6
|
import { ErrorBoundary } from "react-error-boundary";
|
|
7
7
|
import { Outlet, useNavigate, useNavigation } from "react-router-dom";
|
|
8
8
|
import { DevPortalContext, queryClient, } from "../core/DevPortalContext.js";
|
|
9
|
-
import { hasHead } from "../core/plugins.js";
|
|
9
|
+
import { hasHead, isMdxProviderPlugin } from "../core/plugins.js";
|
|
10
10
|
import { TopLevelError } from "../errors/TopLevelError.js";
|
|
11
11
|
import { StaggeredRenderContext } from "../plugins/openapi/StaggeredRender.js";
|
|
12
12
|
import { MdxComponents } from "../util/MdxComponents.js";
|
|
@@ -21,7 +21,16 @@ export const DevPortalSystemPaths = {
|
|
|
21
21
|
};
|
|
22
22
|
const DevPortalInner = ({ children, ...props }) => {
|
|
23
23
|
const components = useMemo(() => ({ ...DEFAULT_COMPONENTS, ...props.overrides }), [props.overrides]);
|
|
24
|
-
const mdxComponents = useMemo(() =>
|
|
24
|
+
const mdxComponents = useMemo(() => {
|
|
25
|
+
const componentsFromPlugins = (props.plugins ?? [])
|
|
26
|
+
.filter(isMdxProviderPlugin)
|
|
27
|
+
.flatMap((plugin) => plugin.getMdxComponents ? [plugin.getMdxComponents()] : []);
|
|
28
|
+
return {
|
|
29
|
+
...componentsFromPlugins.reduce((acc, curr) => ({ ...acc, ...curr }), {}),
|
|
30
|
+
...MdxComponents,
|
|
31
|
+
...props.mdx?.components,
|
|
32
|
+
};
|
|
33
|
+
}, [props.mdx?.components, props.plugins]);
|
|
25
34
|
const [isInitialized, setIsInitialized] = useState(false);
|
|
26
35
|
const { stagger } = useContext(StaggeredRenderContext);
|
|
27
36
|
const [didNavigate, setDidNavigate] = useState(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevPortal.js","sourceRoot":"","sources":["../../../src/lib/components/DevPortal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EACL,QAAQ,EACR,IAAI,EAEJ,UAAU,EACV,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EACL,gBAAgB,EAChB,WAAW,GAEZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"DevPortal.js","sourceRoot":"","sources":["../../../src/lib/components/DevPortal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EACL,QAAQ,EACR,IAAI,EAEJ,UAAU,EACV,SAAS,EACT,OAAO,EACP,MAAM,E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pB,QAAQ,IAAI,KAAC,MAAM,KAAG,GACA,GACT,GACC,GACP,GACJ,GACI,GACY,IACd,CACvB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,KAAK,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC;AAEnC,MAAM,SAAS,GAAG,CAAC,KAA2B,EAAE,EAAE;IAChD,OAAO,CACL,KAAC,aAAa,IAAC,iBAAiB,EAAE,aAAa,YAC7C,KAAC,KAAK,OAAK,KAAK,GAAI,GACN,CACjB,CAAC;AACJ,CAAC,CAAC;AACF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { type ReactNode } from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const heading: (props?: ({
|
|
4
|
-
level?:
|
|
4
|
+
level?: 2 | 1 | 6 | 5 | 4 | 3 | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface HeadingProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof heading> {
|
|
7
7
|
children: ReactNode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ReactElement } from "react";
|
|
2
2
|
import { NavigateFunction, type RouteObject } from "react-router-dom";
|
|
3
|
+
import { MdxComponentsType } from "../util/MdxComponents.js";
|
|
3
4
|
import { DevPortalContext, type ApiIdentity, type NavigationCategory } from "./DevPortalContext.js";
|
|
4
5
|
export type PluginNavigationCategory = {
|
|
5
6
|
path: string;
|
|
@@ -25,9 +26,11 @@ export interface CommonPlugin {
|
|
|
25
26
|
navigate: NavigateFunction;
|
|
26
27
|
}) => Promise<void | boolean> | void | boolean;
|
|
27
28
|
getHead?: () => ReactElement | undefined;
|
|
29
|
+
getMdxComponents?: () => MdxComponentsType;
|
|
28
30
|
}
|
|
29
31
|
export declare const isProfileMenuPlugin: (obj: DevPortalPlugin) => obj is ProfileMenuPlugin;
|
|
30
32
|
export declare const isNavigationPlugin: (obj: DevPortalPlugin) => obj is NavigationPlugin;
|
|
31
33
|
export declare const needsInitialization: (obj: DevPortalPlugin) => obj is CommonPlugin;
|
|
32
34
|
export declare const hasHead: (obj: DevPortalPlugin) => obj is CommonPlugin;
|
|
35
|
+
export declare const isMdxProviderPlugin: (obj: DevPortalPlugin) => obj is CommonPlugin;
|
|
33
36
|
export declare const isApiIdentityPlugin: (obj: DevPortalPlugin) => obj is ApiIdentityPlugin;
|
package/dist/lib/core/plugins.js
CHANGED
|
@@ -2,5 +2,6 @@ export const isProfileMenuPlugin = (obj) => "getProfileMenuItems" in obj && type
|
|
|
2
2
|
export const isNavigationPlugin = (obj) => "getRoutes" in obj && typeof obj.getRoutes === "function";
|
|
3
3
|
export const needsInitialization = (obj) => "initialize" in obj && typeof obj.initialize === "function";
|
|
4
4
|
export const hasHead = (obj) => "getHead" in obj && typeof obj.getHead === "function";
|
|
5
|
+
export const isMdxProviderPlugin = (obj) => "getMdxComponents" in obj && typeof obj.getMdxComponents === "function";
|
|
5
6
|
export const isApiIdentityPlugin = (obj) => "getIdentities" in obj && typeof obj.getIdentities === "function";
|
|
6
7
|
//# sourceMappingURL=plugins.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/lib/core/plugins.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/lib/core/plugins.ts"],"names":[],"mappings":"AA+CA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,GAAoB,EACM,EAAE,CAC5B,qBAAqB,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,mBAAmB,KAAK,UAAU,CAAC;AAEhF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,GAAoB,EACK,EAAE,CAC3B,WAAW,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,SAAS,KAAK,UAAU,CAAC;AAE5D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,GAAoB,EACC,EAAE,CACvB,YAAY,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,UAAU,KAAK,UAAU,CAAC;AAE9D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAoB,EAAuB,EAAE,CACnE,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,UAAU,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,GAAoB,EACC,EAAE,CACvB,kBAAkB,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,gBAAgB,KAAK,UAAU,CAAC;AAE1E,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,GAAoB,EACM,EAAE,CAC5B,eAAe,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,aAAa,KAAK,UAAU,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { OperationListItemResult } from "./OperationList.js";
|
|
2
|
-
export declare const PlaygroundDialogWrapper: ({ operation, }: {
|
|
2
|
+
export declare const PlaygroundDialogWrapper: ({ server, operation, }: {
|
|
3
|
+
server: string;
|
|
3
4
|
operation: OperationListItemResult;
|
|
4
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,31 +1,23 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { PlaygroundDialog } from "./playground/PlaygroundDialog.js";
|
|
3
|
-
export const PlaygroundDialogWrapper = ({ operation, }) => {
|
|
3
|
+
export const PlaygroundDialogWrapper = ({ server, operation, }) => {
|
|
4
4
|
const headers = operation.parameters
|
|
5
5
|
?.filter((p) => p.in === "header")
|
|
6
6
|
.map((p) => ({
|
|
7
7
|
name: p.name,
|
|
8
|
-
|
|
8
|
+
defaultValue: p.examples?.find((x) => x.value)?.value ?? "",
|
|
9
9
|
}));
|
|
10
10
|
const queryParams = operation.parameters
|
|
11
11
|
?.filter((p) => p.in === "query")
|
|
12
12
|
.sort((a, b) => (a.required && !b.required ? -1 : 1))
|
|
13
|
-
.map((p) => {
|
|
14
|
-
return {
|
|
15
|
-
name: p.name,
|
|
16
|
-
value: "",
|
|
17
|
-
active: p.required ?? false,
|
|
18
|
-
isRequired: p.required ?? false,
|
|
19
|
-
};
|
|
20
|
-
});
|
|
21
|
-
const pathParams = operation.parameters
|
|
22
|
-
?.filter((p) => p.in === "path")
|
|
23
13
|
.map((p) => ({
|
|
24
14
|
name: p.name,
|
|
25
|
-
|
|
15
|
+
defaultActive: p.required ?? false,
|
|
16
|
+
isRequired: p.required ?? false,
|
|
26
17
|
}));
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
const pathParams = operation.parameters
|
|
19
|
+
?.filter((p) => p.in === "path")
|
|
20
|
+
.map((p) => ({ name: p.name }));
|
|
21
|
+
return (_jsx(PlaygroundDialog, { server: server, method: operation.method, url: operation.path, headers: headers, queryParams: queryParams, pathParams: pathParams }));
|
|
30
22
|
};
|
|
31
23
|
//# sourceMappingURL=PlaygroundDialogWrapper.js.map
|