zudoku 0.23.4 → 0.23.6

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.
Files changed (59) hide show
  1. package/dist/config/validators/common.d.ts +37 -37
  2. package/dist/config/validators/common.js +4 -1
  3. package/dist/config/validators/common.js.map +1 -1
  4. package/dist/config/validators/validate.d.ts +14 -14
  5. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -9
  6. package/dist/lib/components/navigation/SidebarBadge.js +0 -9
  7. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  8. package/dist/lib/plugins/openapi/OperationList.js +10 -34
  9. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  10. package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -1
  11. package/dist/lib/plugins/openapi/OperationListItem.js +14 -4
  12. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  13. package/dist/lib/plugins/openapi/Route.d.ts +4 -2
  14. package/dist/lib/plugins/openapi/Route.js +25 -2
  15. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  16. package/dist/lib/plugins/openapi/Sidecar.js +2 -12
  17. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  18. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  19. package/dist/lib/plugins/openapi/index.js +12 -12
  20. package/dist/lib/plugins/openapi/index.js.map +1 -1
  21. package/dist/lib/plugins/openapi/interfaces.d.ts +19 -0
  22. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  23. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  24. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  25. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  26. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  27. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  28. package/dist/vite/config.js +2 -1
  29. package/dist/vite/config.js.map +1 -1
  30. package/dist/vite/plugin-api.js +39 -15
  31. package/dist/vite/plugin-api.js.map +1 -1
  32. package/lib/{OperationList-C7ac3kR5.js → OperationList-n4U_BHmO.js} +1886 -1838
  33. package/lib/OperationList-n4U_BHmO.js.map +1 -0
  34. package/lib/Route-C8nwd9A2.js +37 -0
  35. package/lib/Route-C8nwd9A2.js.map +1 -0
  36. package/lib/StaggeredRender-DgsamH_G.js +17 -0
  37. package/lib/StaggeredRender-DgsamH_G.js.map +1 -0
  38. package/lib/context-h_UkBLvr.js.map +1 -1
  39. package/lib/{index-C8ubT49C.js → index-DStSNvP-.js} +442 -437
  40. package/lib/{index-C8ubT49C.js.map → index-DStSNvP-.js.map} +1 -1
  41. package/lib/zudoku.components.js +385 -363
  42. package/lib/zudoku.components.js.map +1 -1
  43. package/lib/zudoku.plugin-openapi.js +1 -1
  44. package/package.json +1 -1
  45. package/src/lib/components/navigation/SidebarBadge.tsx +0 -10
  46. package/src/lib/plugins/openapi/OperationList.tsx +45 -50
  47. package/src/lib/plugins/openapi/OperationListItem.tsx +31 -2
  48. package/src/lib/plugins/openapi/Route.tsx +45 -9
  49. package/src/lib/plugins/openapi/Sidecar.tsx +2 -16
  50. package/src/lib/plugins/openapi/context.tsx +2 -2
  51. package/src/lib/plugins/openapi/index.tsx +35 -28
  52. package/src/lib/plugins/openapi/interfaces.ts +22 -1
  53. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  54. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  55. package/lib/OperationList-C7ac3kR5.js.map +0 -1
  56. package/lib/Route-C9cYcP-j.js +0 -11
  57. package/lib/Route-C9cYcP-j.js.map +0 -1
  58. package/lib/SidebarBadge-Bm793GDY.js +0 -51
  59. package/lib/SidebarBadge-Bm793GDY.js.map +0 -1
@@ -41,7 +41,7 @@ declare const ApiSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
41
41
  }[] | undefined;
42
42
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
43
43
  type: z.ZodLiteral<"file">;
44
- input: z.ZodString;
44
+ input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
45
45
  }, {
46
46
  id: z.ZodOptional<z.ZodString>;
47
47
  server: z.ZodOptional<z.ZodString>;
@@ -60,7 +60,7 @@ declare const ApiSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
60
60
  postProcessors: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodPromise<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>]>>, "many">>;
61
61
  }>, "strip", z.ZodTypeAny, {
62
62
  type: "file";
63
- input: string;
63
+ input: string | string[];
64
64
  server?: string | undefined;
65
65
  id?: string | undefined;
66
66
  navigationId?: string | undefined;
@@ -71,7 +71,7 @@ declare const ApiSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
71
71
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
72
72
  }, {
73
73
  type: "file";
74
- input: string;
74
+ input: string | string[];
75
75
  server?: string | undefined;
76
76
  id?: string | undefined;
77
77
  navigationId?: string | undefined;
@@ -811,7 +811,7 @@ export declare const CommonConfigSchema: z.ZodObject<{
811
811
  }[] | undefined;
812
812
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
813
813
  type: z.ZodLiteral<"file">;
814
- input: z.ZodString;
814
+ input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
815
815
  }, {
816
816
  id: z.ZodOptional<z.ZodString>;
817
817
  server: z.ZodOptional<z.ZodString>;
@@ -830,7 +830,7 @@ export declare const CommonConfigSchema: z.ZodObject<{
830
830
  postProcessors: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodPromise<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>]>>, "many">>;
831
831
  }>, "strip", z.ZodTypeAny, {
832
832
  type: "file";
833
- input: string;
833
+ input: string | string[];
834
834
  server?: string | undefined;
835
835
  id?: string | undefined;
836
836
  navigationId?: string | undefined;
@@ -841,7 +841,7 @@ export declare const CommonConfigSchema: z.ZodObject<{
841
841
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
842
842
  }, {
843
843
  type: "file";
844
- input: string;
844
+ input: string | string[];
845
845
  server?: string | undefined;
846
846
  id?: string | undefined;
847
847
  navigationId?: string | undefined;
@@ -926,7 +926,7 @@ export declare const CommonConfigSchema: z.ZodObject<{
926
926
  }[] | undefined;
927
927
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
928
928
  type: z.ZodLiteral<"file">;
929
- input: z.ZodString;
929
+ input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
930
930
  }, {
931
931
  id: z.ZodOptional<z.ZodString>;
932
932
  server: z.ZodOptional<z.ZodString>;
@@ -945,7 +945,7 @@ export declare const CommonConfigSchema: z.ZodObject<{
945
945
  postProcessors: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodPromise<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>]>>, "many">>;
946
946
  }>, "strip", z.ZodTypeAny, {
947
947
  type: "file";
948
- input: string;
948
+ input: string | string[];
949
949
  server?: string | undefined;
950
950
  id?: string | undefined;
951
951
  navigationId?: string | undefined;
@@ -956,7 +956,7 @@ export declare const CommonConfigSchema: z.ZodObject<{
956
956
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
957
957
  }, {
958
958
  type: "file";
959
- input: string;
959
+ input: string | string[];
960
960
  server?: string | undefined;
961
961
  id?: string | undefined;
962
962
  navigationId?: string | undefined;
@@ -1283,7 +1283,7 @@ export declare const CommonConfigSchema: z.ZodObject<{
1283
1283
  }[] | undefined;
1284
1284
  } | {
1285
1285
  type: "file";
1286
- input: string;
1286
+ input: string | string[];
1287
1287
  server?: string | undefined;
1288
1288
  id?: string | undefined;
1289
1289
  navigationId?: string | undefined;
@@ -1314,7 +1314,7 @@ export declare const CommonConfigSchema: z.ZodObject<{
1314
1314
  }[] | undefined;
1315
1315
  } | {
1316
1316
  type: "file";
1317
- input: string;
1317
+ input: string | string[];
1318
1318
  server?: string | undefined;
1319
1319
  id?: string | undefined;
1320
1320
  navigationId?: string | undefined;
@@ -1526,7 +1526,7 @@ export declare const CommonConfigSchema: z.ZodObject<{
1526
1526
  }[] | undefined;
1527
1527
  } | {
1528
1528
  type: "file";
1529
- input: string;
1529
+ input: string | string[];
1530
1530
  server?: string | undefined;
1531
1531
  id?: string | undefined;
1532
1532
  navigationId?: string | undefined;
@@ -1557,7 +1557,7 @@ export declare const CommonConfigSchema: z.ZodObject<{
1557
1557
  }[] | undefined;
1558
1558
  } | {
1559
1559
  type: "file";
1560
- input: string;
1560
+ input: string | string[];
1561
1561
  server?: string | undefined;
1562
1562
  id?: string | undefined;
1563
1563
  navigationId?: string | undefined;
@@ -2221,7 +2221,7 @@ declare const CommonConfigSchemaPartial: z.ZodObject<{
2221
2221
  }[] | undefined;
2222
2222
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
2223
2223
  type: z.ZodLiteral<"file">;
2224
- input: z.ZodString;
2224
+ input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
2225
2225
  }, {
2226
2226
  id: z.ZodOptional<z.ZodString>;
2227
2227
  server: z.ZodOptional<z.ZodString>;
@@ -2240,7 +2240,7 @@ declare const CommonConfigSchemaPartial: z.ZodObject<{
2240
2240
  postProcessors: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodPromise<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>]>>, "many">>;
2241
2241
  }>, "strip", z.ZodTypeAny, {
2242
2242
  type: "file";
2243
- input: string;
2243
+ input: string | string[];
2244
2244
  server?: string | undefined;
2245
2245
  id?: string | undefined;
2246
2246
  navigationId?: string | undefined;
@@ -2251,7 +2251,7 @@ declare const CommonConfigSchemaPartial: z.ZodObject<{
2251
2251
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
2252
2252
  }, {
2253
2253
  type: "file";
2254
- input: string;
2254
+ input: string | string[];
2255
2255
  server?: string | undefined;
2256
2256
  id?: string | undefined;
2257
2257
  navigationId?: string | undefined;
@@ -2336,7 +2336,7 @@ declare const CommonConfigSchemaPartial: z.ZodObject<{
2336
2336
  }[] | undefined;
2337
2337
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
2338
2338
  type: z.ZodLiteral<"file">;
2339
- input: z.ZodString;
2339
+ input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
2340
2340
  }, {
2341
2341
  id: z.ZodOptional<z.ZodString>;
2342
2342
  server: z.ZodOptional<z.ZodString>;
@@ -2355,7 +2355,7 @@ declare const CommonConfigSchemaPartial: z.ZodObject<{
2355
2355
  postProcessors: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodPromise<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>]>>, "many">>;
2356
2356
  }>, "strip", z.ZodTypeAny, {
2357
2357
  type: "file";
2358
- input: string;
2358
+ input: string | string[];
2359
2359
  server?: string | undefined;
2360
2360
  id?: string | undefined;
2361
2361
  navigationId?: string | undefined;
@@ -2366,7 +2366,7 @@ declare const CommonConfigSchemaPartial: z.ZodObject<{
2366
2366
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
2367
2367
  }, {
2368
2368
  type: "file";
2369
- input: string;
2369
+ input: string | string[];
2370
2370
  server?: string | undefined;
2371
2371
  id?: string | undefined;
2372
2372
  navigationId?: string | undefined;
@@ -2702,7 +2702,7 @@ declare const CommonConfigSchemaPartial: z.ZodObject<{
2702
2702
  }[] | undefined;
2703
2703
  } | {
2704
2704
  type: "file";
2705
- input: string;
2705
+ input: string | string[];
2706
2706
  server?: string | undefined;
2707
2707
  id?: string | undefined;
2708
2708
  navigationId?: string | undefined;
@@ -2733,7 +2733,7 @@ declare const CommonConfigSchemaPartial: z.ZodObject<{
2733
2733
  }[] | undefined;
2734
2734
  } | {
2735
2735
  type: "file";
2736
- input: string;
2736
+ input: string | string[];
2737
2737
  server?: string | undefined;
2738
2738
  id?: string | undefined;
2739
2739
  navigationId?: string | undefined;
@@ -2945,7 +2945,7 @@ declare const CommonConfigSchemaPartial: z.ZodObject<{
2945
2945
  }[] | undefined;
2946
2946
  } | {
2947
2947
  type: "file";
2948
- input: string;
2948
+ input: string | string[];
2949
2949
  server?: string | undefined;
2950
2950
  id?: string | undefined;
2951
2951
  navigationId?: string | undefined;
@@ -2976,7 +2976,7 @@ declare const CommonConfigSchemaPartial: z.ZodObject<{
2976
2976
  }[] | undefined;
2977
2977
  } | {
2978
2978
  type: "file";
2979
- input: string;
2979
+ input: string | string[];
2980
2980
  server?: string | undefined;
2981
2981
  id?: string | undefined;
2982
2982
  navigationId?: string | undefined;
@@ -3630,7 +3630,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
3630
3630
  }[] | undefined;
3631
3631
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3632
3632
  type: z.ZodLiteral<"file">;
3633
- input: z.ZodString;
3633
+ input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
3634
3634
  }, {
3635
3635
  id: z.ZodOptional<z.ZodString>;
3636
3636
  server: z.ZodOptional<z.ZodString>;
@@ -3649,7 +3649,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
3649
3649
  postProcessors: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodPromise<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>]>>, "many">>;
3650
3650
  }>, "strip", z.ZodTypeAny, {
3651
3651
  type: "file";
3652
- input: string;
3652
+ input: string | string[];
3653
3653
  server?: string | undefined;
3654
3654
  id?: string | undefined;
3655
3655
  navigationId?: string | undefined;
@@ -3660,7 +3660,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
3660
3660
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
3661
3661
  }, {
3662
3662
  type: "file";
3663
- input: string;
3663
+ input: string | string[];
3664
3664
  server?: string | undefined;
3665
3665
  id?: string | undefined;
3666
3666
  navigationId?: string | undefined;
@@ -3745,7 +3745,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
3745
3745
  }[] | undefined;
3746
3746
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3747
3747
  type: z.ZodLiteral<"file">;
3748
- input: z.ZodString;
3748
+ input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
3749
3749
  }, {
3750
3750
  id: z.ZodOptional<z.ZodString>;
3751
3751
  server: z.ZodOptional<z.ZodString>;
@@ -3764,7 +3764,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
3764
3764
  postProcessors: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodPromise<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>]>>, "many">>;
3765
3765
  }>, "strip", z.ZodTypeAny, {
3766
3766
  type: "file";
3767
- input: string;
3767
+ input: string | string[];
3768
3768
  server?: string | undefined;
3769
3769
  id?: string | undefined;
3770
3770
  navigationId?: string | undefined;
@@ -3775,7 +3775,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
3775
3775
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
3776
3776
  }, {
3777
3777
  type: "file";
3778
- input: string;
3778
+ input: string | string[];
3779
3779
  server?: string | undefined;
3780
3780
  id?: string | undefined;
3781
3781
  navigationId?: string | undefined;
@@ -4111,7 +4111,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
4111
4111
  }[] | undefined;
4112
4112
  } | {
4113
4113
  type: "file";
4114
- input: string;
4114
+ input: string | string[];
4115
4115
  server?: string | undefined;
4116
4116
  id?: string | undefined;
4117
4117
  navigationId?: string | undefined;
@@ -4142,7 +4142,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
4142
4142
  }[] | undefined;
4143
4143
  } | {
4144
4144
  type: "file";
4145
- input: string;
4145
+ input: string | string[];
4146
4146
  server?: string | undefined;
4147
4147
  id?: string | undefined;
4148
4148
  navigationId?: string | undefined;
@@ -4354,7 +4354,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
4354
4354
  }[] | undefined;
4355
4355
  } | {
4356
4356
  type: "file";
4357
- input: string;
4357
+ input: string | string[];
4358
4358
  server?: string | undefined;
4359
4359
  id?: string | undefined;
4360
4360
  navigationId?: string | undefined;
@@ -4385,7 +4385,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
4385
4385
  }[] | undefined;
4386
4386
  } | {
4387
4387
  type: "file";
4388
- input: string;
4388
+ input: string | string[];
4389
4389
  server?: string | undefined;
4390
4390
  id?: string | undefined;
4391
4391
  navigationId?: string | undefined;
@@ -4597,7 +4597,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
4597
4597
  }[] | undefined;
4598
4598
  } | {
4599
4599
  type: "file";
4600
- input: string;
4600
+ input: string | string[];
4601
4601
  server?: string | undefined;
4602
4602
  id?: string | undefined;
4603
4603
  navigationId?: string | undefined;
@@ -4628,7 +4628,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
4628
4628
  }[] | undefined;
4629
4629
  } | {
4630
4630
  type: "file";
4631
- input: string;
4631
+ input: string | string[];
4632
4632
  server?: string | undefined;
4633
4633
  id?: string | undefined;
4634
4634
  navigationId?: string | undefined;
@@ -4840,7 +4840,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
4840
4840
  }[] | undefined;
4841
4841
  } | {
4842
4842
  type: "file";
4843
- input: string;
4843
+ input: string | string[];
4844
4844
  server?: string | undefined;
4845
4845
  id?: string | undefined;
4846
4846
  navigationId?: string | undefined;
@@ -4871,7 +4871,7 @@ export declare const CommonConfig: z.ZodEffects<z.ZodObject<{
4871
4871
  }[] | undefined;
4872
4872
  } | {
4873
4873
  type: "file";
4874
- input: string;
4874
+ input: string | string[];
4875
4875
  server?: string | undefined;
4876
4876
  id?: string | undefined;
4877
4877
  navigationId?: string | undefined;
@@ -45,7 +45,10 @@ const ApiSchema = z.union([
45
45
  .object({ type: z.literal("url"), input: z.string() })
46
46
  .merge(ApiConfigSchema),
47
47
  z
48
- .object({ type: z.literal("file"), input: z.string() })
48
+ .object({
49
+ type: z.literal("file"),
50
+ input: z.union([z.string(), z.array(z.string())]),
51
+ })
49
52
  .merge(ApiConfigSchema)
50
53
  .merge(z.object({ postProcessors: ApiPostProcessorSchema.array().optional() })),
51
54
  z
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/config/validators/common.ts"],"names":[],"mappings":"AACA,OAAO,CAON,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;AAE7C,M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kBAAkB,CAAC,OAAO,EAAE,CAAC;AAC/D,MAAM,CAAC,MAAM,YAAY,GAAG,yBAAyB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AAa1E,MAAM,UAAU,oBAAoB,CAAC,MAAe;IAClD,MAAM,gBAAgB,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAExD,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC;QAC9B,sCAAsC;QACtC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;QAClC,sCAAsC;QACtC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC5D,CAAC;AACH,CAAC"}
@@ -597,7 +597,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
597
597
  }[] | undefined;
598
598
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
599
599
  type: z.ZodLiteral<"file">;
600
- input: z.ZodString;
600
+ input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
601
601
  }, {
602
602
  id: z.ZodOptional<z.ZodString>;
603
603
  server: z.ZodOptional<z.ZodString>;
@@ -616,7 +616,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
616
616
  postProcessors: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodPromise<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>]>>, "many">>;
617
617
  }>, "strip", z.ZodTypeAny, {
618
618
  type: "file";
619
- input: string;
619
+ input: string | string[];
620
620
  server?: string | undefined;
621
621
  id?: string | undefined;
622
622
  navigationId?: string | undefined;
@@ -627,7 +627,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
627
627
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
628
628
  }, {
629
629
  type: "file";
630
- input: string;
630
+ input: string | string[];
631
631
  server?: string | undefined;
632
632
  id?: string | undefined;
633
633
  navigationId?: string | undefined;
@@ -712,7 +712,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
712
712
  }[] | undefined;
713
713
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
714
714
  type: z.ZodLiteral<"file">;
715
- input: z.ZodString;
715
+ input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
716
716
  }, {
717
717
  id: z.ZodOptional<z.ZodString>;
718
718
  server: z.ZodOptional<z.ZodString>;
@@ -731,7 +731,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
731
731
  postProcessors: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodPromise<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>]>>, "many">>;
732
732
  }>, "strip", z.ZodTypeAny, {
733
733
  type: "file";
734
- input: string;
734
+ input: string | string[];
735
735
  server?: string | undefined;
736
736
  id?: string | undefined;
737
737
  navigationId?: string | undefined;
@@ -742,7 +742,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
742
742
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
743
743
  }, {
744
744
  type: "file";
745
- input: string;
745
+ input: string | string[];
746
746
  server?: string | undefined;
747
747
  id?: string | undefined;
748
748
  navigationId?: string | undefined;
@@ -1106,7 +1106,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1106
1106
  }[] | undefined;
1107
1107
  } | {
1108
1108
  type: "file";
1109
- input: string;
1109
+ input: string | string[];
1110
1110
  server?: string | undefined;
1111
1111
  id?: string | undefined;
1112
1112
  navigationId?: string | undefined;
@@ -1137,7 +1137,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1137
1137
  }[] | undefined;
1138
1138
  } | {
1139
1139
  type: "file";
1140
- input: string;
1140
+ input: string | string[];
1141
1141
  server?: string | undefined;
1142
1142
  id?: string | undefined;
1143
1143
  navigationId?: string | undefined;
@@ -1364,7 +1364,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1364
1364
  }[] | undefined;
1365
1365
  } | {
1366
1366
  type: "file";
1367
- input: string;
1367
+ input: string | string[];
1368
1368
  server?: string | undefined;
1369
1369
  id?: string | undefined;
1370
1370
  navigationId?: string | undefined;
@@ -1395,7 +1395,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1395
1395
  }[] | undefined;
1396
1396
  } | {
1397
1397
  type: "file";
1398
- input: string;
1398
+ input: string | string[];
1399
1399
  server?: string | undefined;
1400
1400
  id?: string | undefined;
1401
1401
  navigationId?: string | undefined;
@@ -1622,7 +1622,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1622
1622
  }[] | undefined;
1623
1623
  } | {
1624
1624
  type: "file";
1625
- input: string;
1625
+ input: string | string[];
1626
1626
  server?: string | undefined;
1627
1627
  id?: string | undefined;
1628
1628
  navigationId?: string | undefined;
@@ -1653,7 +1653,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1653
1653
  }[] | undefined;
1654
1654
  } | {
1655
1655
  type: "file";
1656
- input: string;
1656
+ input: string | string[];
1657
1657
  server?: string | undefined;
1658
1658
  id?: string | undefined;
1659
1659
  navigationId?: string | undefined;
@@ -1880,7 +1880,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1880
1880
  }[] | undefined;
1881
1881
  } | {
1882
1882
  type: "file";
1883
- input: string;
1883
+ input: string | string[];
1884
1884
  server?: string | undefined;
1885
1885
  id?: string | undefined;
1886
1886
  navigationId?: string | undefined;
@@ -1911,7 +1911,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1911
1911
  }[] | undefined;
1912
1912
  } | {
1913
1913
  type: "file";
1914
- input: string;
1914
+ input: string | string[];
1915
1915
  server?: string | undefined;
1916
1916
  id?: string | undefined;
1917
1917
  navigationId?: string | undefined;
@@ -1,12 +1,3 @@
1
- export declare const TextColorMap: {
2
- green: string;
3
- blue: string;
4
- yellow: string;
5
- red: string;
6
- purple: string;
7
- indigo: string;
8
- gray: string;
9
- };
10
1
  export declare const ColorMap: {
11
2
  green: string;
12
3
  blue: string;
@@ -1,14 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from "../../util/cn.js";
3
- export const TextColorMap = {
4
- green: "text-green-600",
5
- blue: "text-sky-600",
6
- yellow: "text-yellow-600",
7
- red: "text-red-600",
8
- purple: "text-purple-600",
9
- indigo: "text-indigo-600",
10
- gray: "text-gray-600",
11
- };
12
3
  export const ColorMap = {
13
4
  green: "bg-green-400 dark:bg-green-800",
14
5
  blue: "bg-sky-400 dark:bg-sky-800",
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarBadge.js","sourceRoot":"","sources":["../../../../src/lib/components/navigation/SidebarBadge.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,cAAc;IACpB,MAAM,EAAE,iBAAiB;IACzB,GAAG,EAAE,cAAc;IACnB,MAAM,EAAE,iBAAiB;IACzB,MAAM,EAAE,iBAAiB;IACzB,IAAI,EAAE,eAAe;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,gCAAgC;IACvC,IAAI,EAAE,4BAA4B;IAClC,MAAM,EAAE,kCAAkC;IAC1C,GAAG,EAAE,4BAA4B;IACjC,MAAM,EAAE,kCAAkC;IAC1C,MAAM,EAAE,kCAAkC;IAC1C,IAAI,EAAE,8BAA8B;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,SAAS,GAKV,EAAE,EAAE;IACH,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,sKAAsK,EACtK,QAAQ,CAAC,KAAK,CAAC,EACf,SAAS,CACV,YAEA,KAAK,GACD,CACR,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"SidebarBadge.js","sourceRoot":"","sources":["../../../../src/lib/components/navigation/SidebarBadge.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,gCAAgC;IACvC,IAAI,EAAE,4BAA4B;IAClC,MAAM,EAAE,kCAAkC;IAC1C,GAAG,EAAE,4BAA4B;IACjC,MAAM,EAAE,kCAAkC;IAC1C,MAAM,EAAE,kCAAkC;IAC1C,IAAI,EAAE,8BAA8B;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,SAAS,GAKV,EAAE,EAAE;IACH,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,sKAAsK,EACtK,QAAQ,CAAC,KAAK,CAAC,EACf,SAAS,CACV,YAEA,KAAK,GACD,CACR,CAAC;AACJ,CAAC,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useSuspenseQuery } from "@tanstack/react-query";
3
3
  import { Helmet } from "@zudoku/react-helmet-async";
4
+ import { useNavigate } from "react-router";
5
+ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "zudoku/ui/Select.js";
6
+ import { useSelectedServerStore } from "../../authentication/state.js";
4
7
  import { CategoryHeading } from "../../components/CategoryHeading.js";
5
8
  import { Heading } from "../../components/Heading.js";
6
9
  import { Markdown, ProseClasses } from "../../components/Markdown.js";
@@ -11,6 +14,7 @@ import StaggeredRender from "./StaggeredRender.js";
11
14
  import { useCreateQuery } from "./client/useCreateQuery.js";
12
15
  import { useOasConfig } from "./context.js";
13
16
  import { graphql } from "./graphql/index.js";
17
+ import { sanitizeMarkdownForMetatag } from "./util/sanitizeMarkdownForMetatag.js";
14
18
  export const OperationsFragment = graphql(/* GraphQL */ `
15
19
  fragment OperationsFragment on OperationItem {
16
20
  slug
@@ -93,55 +97,27 @@ const AllOperationsQuery = graphql(/* GraphQL */ `
93
97
  }
94
98
  }
95
99
  `);
96
- /**
97
- * @description Clean up a commonmark formatted description for use in the meta
98
- * description.
99
- */
100
- function cleanDescription(description, maxLength = 160) {
101
- if (!description) {
102
- return "";
103
- }
104
- // Replace Markdown links [text](url) with just "text"
105
- description = description.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1");
106
- // Remove Markdown image syntax: ![alt](url)
107
- description = description.replace(/!\[.*?\]\(.*?\)/g, "");
108
- // Remove other Markdown syntax (e.g., **bold**, _italic_, `code`)
109
- description = description.replace(/[_*`~]/g, "");
110
- // Remove headings (# Heading), blockquotes (> Quote), and horizontal rules (--- or ***)
111
- description = description.replace(/^(?:>|\s*#+|-{3,}|\*{3,})/gm, "");
112
- // Remove any remaining formatting characters
113
- description = description.replace(/[|>{}[\]]/g, "");
114
- // Collapse multiple spaces and trim the text
115
- description = description.replace(/\s+/g, " ").trim();
116
- // Limit to the specified maximum length
117
- description = description.substring(0, maxLength);
118
- // Escape for HTML safety
119
- return description
120
- .replace(/&/g, "&amp;")
121
- .replace(/</g, "&lt;")
122
- .replace(/>/g, "&gt;")
123
- .replace(/"/g, "&quot;")
124
- .replace(/'/g, "&#039;");
125
- }
126
100
  export const OperationList = () => {
127
- const { input, type } = useOasConfig();
101
+ const { input, type, versions, version } = useOasConfig();
128
102
  const query = useCreateQuery(AllOperationsQuery, { input, type });
103
+ const { selectedServer } = useSelectedServerStore();
129
104
  const result = useSuspenseQuery(query);
130
105
  const title = result.data.schema.title;
131
106
  const summary = result.data.schema.summary;
132
107
  const description = result.data.schema.description;
108
+ const navigate = useNavigate();
133
109
  // The summary property is preferable here as it is a short description of
134
110
  // the API, whereas the description property is typically longer and supports
135
111
  // commonmark formatting, making it ill-suited for use in the meta description
136
112
  const metaDescription = summary
137
113
  ? summary
138
114
  : description
139
- ? cleanDescription(description)
115
+ ? sanitizeMarkdownForMetatag(description)
140
116
  : undefined;
141
- return (_jsxs("div", { className: "pt-[--padding-content-top]", children: [_jsxs(Helmet, { children: [_jsx("title", { children: title }), metaDescription && (_jsx("meta", { name: "description", content: metaDescription }))] }), _jsxs("div", { className: cn(ProseClasses, "mb-16 max-w-full prose-img:max-w-prose"), children: [_jsx(CategoryHeading, { children: "Overview" }), _jsx(Heading, { level: 1, id: "description", registerSidebarAnchor: true, children: title }), _jsx(Markdown, { content: result.data.schema.description ?? "" })] }), _jsx("hr", {}), _jsx("div", { className: "my-4 flex justify-end", children: _jsx(Endpoint, {}) }), result.data.schema.tags
117
+ return (_jsxs("div", { className: "pt-[--padding-content-top]", children: [_jsxs(Helmet, { children: [_jsx("title", { children: title }), metaDescription && (_jsx("meta", { name: "description", content: metaDescription }))] }), _jsxs("div", { className: cn(ProseClasses, "mb-16 max-w-full prose-img:max-w-prose"), children: [_jsxs("div", { className: "flex", children: [_jsxs("div", { className: "flex-1", children: [_jsx(CategoryHeading, { children: "Overview" }), _jsx(Heading, { level: 1, id: "description", registerSidebarAnchor: true, children: title })] }), _jsx("div", { children: Object.entries(versions).length > 1 && (_jsxs(Select, { onValueChange: (version) => navigate(versions[version]), defaultValue: version, children: [_jsx(SelectTrigger, { className: "w-[180px]", children: _jsx(SelectValue, { placeholder: "Select version" }) }), _jsx(SelectContent, { children: Object.entries(versions).map(([version]) => (_jsx(SelectItem, { value: version, children: version }, version))) })] })) })] }), _jsx(Markdown, { content: result.data.schema.description ?? "" })] }), _jsx("hr", {}), _jsx("div", { className: "my-4 flex items-center justify-end gap-4", children: _jsx(Endpoint, {}) }), result.data.schema.tags
142
118
  .filter((tag) => tag.operations.length > 0)
143
119
  .map((tag) => (
144
120
  // px, -mx is so that `content-visibility` doesn't cut off overflown heading anchor links '#'
145
- _jsxs("div", { className: "px-6 -mx-6 [content-visibility:auto]", children: [tag.name && _jsx(CategoryHeading, { children: tag.name }), tag.description && (_jsx(Markdown, { className: `${ProseClasses} max-w-full prose-img:max-w-prose w-full mt-2 mb-12`, content: tag.description })), _jsx("div", { className: "operation mb-12", children: _jsx(StaggeredRender, { children: tag.operations.map((fragment) => (_jsx(OperationListItem, { operationFragment: fragment }, fragment.slug))) }) })] }, tag.name)))] }));
121
+ _jsxs("div", { className: "px-6 -mx-6 [content-visibility:auto]", children: [tag.name && _jsx(CategoryHeading, { children: tag.name }), tag.description && (_jsx(Markdown, { className: `${ProseClasses} max-w-full prose-img:max-w-prose w-full mt-2 mb-12`, content: tag.description })), _jsx("div", { className: "operation mb-12", children: _jsx(StaggeredRender, { children: tag.operations.map((fragment) => (_jsx(OperationListItem, { serverUrl: selectedServer ?? result.data.schema.url, operationFragment: fragment }, fragment.slug))) }) })] }, tag.name)))] }));
146
122
  };
147
123
  //# sourceMappingURL=OperationList.js.map