zudoku 0.12.2 → 0.13.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.
Files changed (197) hide show
  1. package/dist/app/main.js +3 -3
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/cli/dev/handler.js +2 -2
  4. package/dist/cli/dev/handler.js.map +1 -1
  5. package/dist/config/validators/validate.d.ts +42 -23
  6. package/dist/config/validators/validate.js +6 -2
  7. package/dist/config/validators/validate.js.map +1 -1
  8. package/dist/index.d.ts +1 -0
  9. package/dist/lib/components/Banner.js +7 -1
  10. package/dist/lib/components/Banner.js.map +1 -1
  11. package/dist/lib/components/Header.js +1 -1
  12. package/dist/lib/components/Header.js.map +1 -1
  13. package/dist/lib/components/Layout.js +1 -1
  14. package/dist/lib/components/Layout.js.map +1 -1
  15. package/dist/lib/components/MobileTopNavigation.js +2 -1
  16. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  17. package/dist/lib/components/Search.js +1 -1
  18. package/dist/lib/components/Search.js.map +1 -1
  19. package/dist/lib/components/SlotletProvider.d.ts +9 -2
  20. package/dist/lib/components/SlotletProvider.js +4 -2
  21. package/dist/lib/components/SlotletProvider.js.map +1 -1
  22. package/dist/lib/components/index.d.ts +2 -1
  23. package/dist/lib/components/index.js.map +1 -1
  24. package/dist/lib/core/DevPortalContext.d.ts +1 -1
  25. package/dist/lib/oas/graphql/index.js +2 -6
  26. package/dist/lib/oas/graphql/index.js.map +1 -1
  27. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
  28. package/dist/lib/plugins/custom-pages/CustomPage.js +10 -0
  29. package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
  30. package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
  31. package/dist/lib/plugins/custom-pages/index.js +11 -0
  32. package/dist/lib/plugins/custom-pages/index.js.map +1 -0
  33. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  34. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  35. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  36. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  37. package/dist/lib/plugins/openapi/Route.d.ts +1 -1
  38. package/dist/lib/plugins/openapi/Route.js +1 -1
  39. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  40. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  41. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  42. package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
  43. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
  44. package/dist/lib/plugins/openapi/client/createWorkerClient.js +1 -1
  45. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
  46. package/dist/lib/plugins/openapi/index.js +1 -1
  47. package/dist/lib/plugins/openapi/index.js.map +1 -1
  48. package/dist/lib/ui/Callout.d.ts +36 -35
  49. package/dist/lib/ui/Callout.js.map +1 -1
  50. package/dist/lib/ui/Drawer.d.ts +8 -10
  51. package/dist/lib/ui/Drawer.js.map +1 -1
  52. package/dist/lib/util/useExposedProps.d.ts +2 -0
  53. package/dist/lib/util/useExposedProps.js +8 -0
  54. package/dist/lib/util/useExposedProps.js.map +1 -0
  55. package/dist/vite/config.js +2 -0
  56. package/dist/vite/config.js.map +1 -1
  57. package/dist/vite/dev-server.d.ts +6 -1
  58. package/dist/vite/dev-server.js +13 -3
  59. package/dist/vite/dev-server.js.map +1 -1
  60. package/dist/vite/plugin-component.js +0 -1
  61. package/dist/vite/plugin-component.js.map +1 -1
  62. package/dist/vite/plugin-custom-pages.d.ts +4 -0
  63. package/dist/vite/plugin-custom-pages.js +30 -0
  64. package/dist/vite/plugin-custom-pages.js.map +1 -0
  65. package/dist/vite/plugin.js +2 -0
  66. package/dist/vite/plugin.js.map +1 -1
  67. package/lib/{AuthenticationPlugin-Bx9FK124.js → AuthenticationPlugin-CbgJ5SAh.js} +3 -3
  68. package/lib/{AuthenticationPlugin-Bx9FK124.js.map → AuthenticationPlugin-CbgJ5SAh.js.map} +1 -1
  69. package/lib/{DeveloperHint-YeWHKvyr.js → DeveloperHint-CiXPc9Xm.js} +2 -2
  70. package/lib/{DeveloperHint-YeWHKvyr.js.map → DeveloperHint-CiXPc9Xm.js.map} +1 -1
  71. package/lib/ErrorPage-B-zoPPVx.js +15 -0
  72. package/lib/{ErrorPage-CsZAN_za.js.map → ErrorPage-B-zoPPVx.js.map} +1 -1
  73. package/lib/Input-QMLhK7Rb.js +2229 -0
  74. package/lib/Input-QMLhK7Rb.js.map +1 -0
  75. package/lib/{Markdown-DapSf3wG.js → Markdown-D6Nze6qq.js} +3281 -5392
  76. package/lib/Markdown-D6Nze6qq.js.map +1 -0
  77. package/lib/{MdxPage-BqBWsXZ1.js → MdxPage-DBhq6-5F.js} +15 -15
  78. package/lib/{MdxPage-BqBWsXZ1.js.map → MdxPage-DBhq6-5F.js.map} +1 -1
  79. package/lib/{OperationList-CYrmxPa8.js → OperationList-Ba24gUd2.js} +50 -51
  80. package/lib/OperationList-Ba24gUd2.js.map +1 -0
  81. package/lib/{Route-Q5mqNQrv.js → Route-DI38nxYt.js} +3 -4
  82. package/lib/Route-DI38nxYt.js.map +1 -0
  83. package/lib/SidebarBadge-B9-VJSQr.js +503 -0
  84. package/lib/SidebarBadge-B9-VJSQr.js.map +1 -0
  85. package/lib/{SlotletProvider-D3UD5Go3.js → SlotletProvider-Cb8mGpBO.js} +46 -46
  86. package/lib/{SlotletProvider-D3UD5Go3.js.map → SlotletProvider-Cb8mGpBO.js.map} +1 -1
  87. package/lib/ZudokuContext-BEmsYQoq.js +1173 -0
  88. package/lib/ZudokuContext-BEmsYQoq.js.map +1 -0
  89. package/lib/assets/{index-B9EWVYfo.js → index-B_Jk_Yzp.js} +968 -938
  90. package/lib/assets/index-B_Jk_Yzp.js.map +1 -0
  91. package/lib/assets/{worker-Bcj4NA2p.js → worker-Bf8vjASY.js} +4582 -4303
  92. package/lib/assets/worker-Bf8vjASY.js.map +1 -0
  93. package/lib/cn-BmFQLtkS.js +2279 -0
  94. package/lib/cn-BmFQLtkS.js.map +1 -0
  95. package/lib/{index-BG0g4WW0.js → index-BRCiYFaL.js} +747 -737
  96. package/lib/index-BRCiYFaL.js.map +1 -0
  97. package/lib/{index-CLd8ycZz.js → index-CkwDvuPt.js} +947 -917
  98. package/lib/index-CkwDvuPt.js.map +1 -0
  99. package/lib/{index-LNp6rxyU.js → index-D06ATMgg.js} +2 -2
  100. package/lib/{index-LNp6rxyU.js.map → index-D06ATMgg.js.map} +1 -1
  101. package/lib/{index-BlJ2rj99.js → index-DA74gNq3.js} +1124 -974
  102. package/lib/index-DA74gNq3.js.map +1 -0
  103. package/lib/index-DJqnphbT.js +35 -0
  104. package/lib/{index-Bn6Lc9tq.js.map → index-DJqnphbT.js.map} +1 -1
  105. package/lib/{index-BngPzhKn.js → index-dgcPryXi.js} +3 -3
  106. package/lib/{index-BngPzhKn.js.map → index-dgcPryXi.js.map} +1 -1
  107. package/lib/{index-Dolisrci.js → index-g_JJcuFg.js} +603 -549
  108. package/lib/index-g_JJcuFg.js.map +1 -0
  109. package/lib/router-Oe6YmY6B.js +3024 -0
  110. package/lib/router-Oe6YmY6B.js.map +1 -0
  111. package/lib/state-CsuHT8ZO.js +183 -0
  112. package/lib/state-CsuHT8ZO.js.map +1 -0
  113. package/lib/urql-core-KJnLL26g.js +1455 -0
  114. package/lib/urql-core-KJnLL26g.js.map +1 -0
  115. package/lib/useExposedProps-Csw8oAlt.js +9 -0
  116. package/lib/useExposedProps-Csw8oAlt.js.map +1 -0
  117. package/lib/{utils-ByIc_KIM.js → utils-Chi3p5nE.js} +4 -4
  118. package/lib/utils-Chi3p5nE.js.map +1 -0
  119. package/lib/zudoku.auth-auth0.js +1 -1
  120. package/lib/zudoku.auth-clerk.js +2 -2
  121. package/lib/zudoku.auth-openid.js +363 -350
  122. package/lib/zudoku.auth-openid.js.map +1 -1
  123. package/lib/zudoku.components.js +1697 -1623
  124. package/lib/zudoku.components.js.map +1 -1
  125. package/lib/zudoku.openapi-worker.js +4599 -4319
  126. package/lib/zudoku.openapi-worker.js.map +1 -1
  127. package/lib/zudoku.plugin-api-keys.js +7 -7
  128. package/lib/zudoku.plugin-custom-pages.js +21 -0
  129. package/lib/zudoku.plugin-custom-pages.js.map +1 -0
  130. package/lib/zudoku.plugin-markdown.js +1 -1
  131. package/lib/zudoku.plugin-openapi.js +8 -8
  132. package/lib/zudoku.plugin-redirect.js +1 -1
  133. package/package.json +61 -68
  134. package/src/app/main.tsx +3 -3
  135. package/src/lib/components/Banner.tsx +12 -2
  136. package/src/lib/components/Header.tsx +4 -2
  137. package/src/lib/components/Layout.tsx +1 -0
  138. package/src/lib/components/MobileTopNavigation.tsx +4 -0
  139. package/src/lib/components/Search.tsx +1 -1
  140. package/src/lib/components/SlotletProvider.tsx +27 -4
  141. package/src/lib/components/index.ts +1 -1
  142. package/src/lib/core/DevPortalContext.ts +1 -1
  143. package/src/lib/oas/graphql/index.ts +3 -11
  144. package/src/lib/plugins/custom-pages/CustomPage.tsx +15 -0
  145. package/src/lib/plugins/custom-pages/index.tsx +24 -0
  146. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  147. package/src/lib/plugins/openapi/OperationList.tsx +1 -1
  148. package/src/lib/plugins/openapi/Route.tsx +1 -2
  149. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  150. package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -6
  151. package/src/lib/plugins/openapi/client/createWorkerClient.ts +1 -6
  152. package/src/lib/plugins/openapi/index.tsx +1 -5
  153. package/src/lib/ui/Callout.tsx +7 -6
  154. package/src/lib/ui/Drawer.tsx +38 -36
  155. package/src/lib/util/useExposedProps.tsx +10 -0
  156. package/dist/lib/plugins/custom-page/index.d.ts +0 -8
  157. package/dist/lib/plugins/custom-page/index.js +0 -12
  158. package/dist/lib/plugins/custom-page/index.js.map +0 -1
  159. package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
  160. package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
  161. package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
  162. package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
  163. package/dist/lib/plugins/openapi/util/urql.js +0 -8
  164. package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
  165. package/lib/CategoryHeading-ovR-zHRq.js +0 -10
  166. package/lib/CategoryHeading-ovR-zHRq.js.map +0 -1
  167. package/lib/ErrorPage-CsZAN_za.js +0 -16
  168. package/lib/Input-CtVUl3eT.js +0 -2198
  169. package/lib/Input-CtVUl3eT.js.map +0 -1
  170. package/lib/Markdown-DapSf3wG.js.map +0 -1
  171. package/lib/OperationList-CYrmxPa8.js.map +0 -1
  172. package/lib/Route-Q5mqNQrv.js.map +0 -1
  173. package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
  174. package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
  175. package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
  176. package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
  177. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  178. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  179. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  180. package/lib/assets/worker-Bcj4NA2p.js.map +0 -1
  181. package/lib/index-BG0g4WW0.js.map +0 -1
  182. package/lib/index-BlJ2rj99.js.map +0 -1
  183. package/lib/index-Bn6Lc9tq.js +0 -9
  184. package/lib/index-CLd8ycZz.js.map +0 -1
  185. package/lib/index-Dolisrci.js.map +0 -1
  186. package/lib/router-D2p7Olpn.js +0 -2971
  187. package/lib/router-D2p7Olpn.js.map +0 -1
  188. package/lib/state-hNe1dw4B.js +0 -548
  189. package/lib/state-hNe1dw4B.js.map +0 -1
  190. package/lib/urql-YhcsXYy8.js +0 -1591
  191. package/lib/urql-YhcsXYy8.js.map +0 -1
  192. package/lib/utils-ByIc_KIM.js.map +0 -1
  193. package/lib/zudoku.plugin-custom-page.js +0 -13
  194. package/lib/zudoku.plugin-custom-page.js.map +0 -1
  195. package/src/lib/plugins/custom-page/index.tsx +0 -22
  196. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  197. package/src/lib/plugins/openapi/util/urql.ts +0 -8
@@ -1,11 +1,7 @@
1
1
  import { matchPath, useRouteError, type RouteObject } from "react-router-dom";
2
+ import { Client as UrqlClient, cacheExchange, fetchExchange } from "urql";
2
3
  import { type DevPortalPlugin } from "../../core/plugins.js";
3
4
  import { graphql } from "./graphql/index.js";
4
- import {
5
- Client as UrqlClient,
6
- cacheExchange,
7
- fetchExchange,
8
- } from "./util/urql.js";
9
5
 
10
6
  import { useQuery } from "@tanstack/react-query";
11
7
  import { CirclePlayIcon, LogInIcon } from "lucide-react";
@@ -2,6 +2,7 @@ import {
2
2
  AlertTriangleIcon,
3
3
  InfoIcon,
4
4
  LightbulbIcon,
5
+ type LucideIcon,
5
6
  ShieldAlertIcon,
6
7
  } from "lucide-react";
7
8
  import type { ReactNode } from "react";
@@ -14,7 +15,7 @@ const stylesMap = {
14
15
  iconColor: "text-gray-600 dark:text-zinc-300",
15
16
  titleColor: "text-gray-600 dark:text-zinc-300",
16
17
  textColor: "text-gray-600 dark:text-zinc-300",
17
- Icon: InfoIcon,
18
+ Icon: InfoIcon as LucideIcon,
18
19
  },
19
20
  tip: {
20
21
  border: "border-green-500 dark:border-green-800",
@@ -22,7 +23,7 @@ const stylesMap = {
22
23
  iconColor: "text-green-600 dark:text-green-200",
23
24
  titleColor: "text-green-700 dark:text-green-200",
24
25
  textColor: "text-green-600 dark:text-green-50",
25
- Icon: LightbulbIcon,
26
+ Icon: LightbulbIcon as LucideIcon,
26
27
  },
27
28
  info: {
28
29
  border: "border-blue-400 dark:border-blue-900/60",
@@ -30,7 +31,7 @@ const stylesMap = {
30
31
  iconColor: "text-blue-400 dark:text-blue-200",
31
32
  titleColor: "text-blue-700 dark:text-blue-200",
32
33
  textColor: "text-blue-600 dark:text-blue-100",
33
- Icon: InfoIcon,
34
+ Icon: InfoIcon as LucideIcon,
34
35
  },
35
36
  caution: {
36
37
  border: "border-yellow-400 dark:border-yellow-400/25",
@@ -38,7 +39,7 @@ const stylesMap = {
38
39
  iconColor: "text-yellow-500 dark:text-yellow-300",
39
40
  titleColor: "text-yellow-600 dark:text-yellow-300",
40
41
  textColor: "text-yellow-700 dark:text-yellow-200",
41
- Icon: AlertTriangleIcon,
42
+ Icon: AlertTriangleIcon as LucideIcon,
42
43
  },
43
44
  danger: {
44
45
  border: "border-rose-400 dark:border-rose-800",
@@ -46,9 +47,9 @@ const stylesMap = {
46
47
  iconColor: "text-rose-400 dark:text-rose-300",
47
48
  titleColor: "text-rose-800 dark:text-rose-300",
48
49
  textColor: "text-rose-700 dark:text-rose-100",
49
- Icon: ShieldAlertIcon,
50
+ Icon: ShieldAlertIcon as LucideIcon,
50
51
  },
51
- };
52
+ } as const;
52
53
 
53
54
  type CalloutProps = {
54
55
  type: keyof typeof stylesMap;
@@ -13,16 +13,16 @@ const Drawer = ({
13
13
  );
14
14
  Drawer.displayName = "Drawer";
15
15
 
16
- const DrawerTrigger = DrawerPrimitive.Trigger;
16
+ const DrawerTrigger: typeof DrawerPrimitive.Trigger = DrawerPrimitive.Trigger;
17
17
 
18
- const DrawerPortal = DrawerPrimitive.Portal;
18
+ const DrawerPortal: typeof DrawerPrimitive.Portal = DrawerPrimitive.Portal;
19
19
 
20
- const DrawerClose = DrawerPrimitive.Close;
20
+ const DrawerClose: typeof DrawerPrimitive.Close = DrawerPrimitive.Close;
21
21
 
22
- const DrawerOverlay = React.forwardRef<
23
- React.ElementRef<typeof DrawerPrimitive.Overlay>,
24
- React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>
25
- >(({ className, ...props }, ref) => (
22
+ const DrawerOverlay: React.ForwardRefExoticComponent<
23
+ React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay> &
24
+ React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Overlay>>
25
+ > = React.forwardRef(({ className, ...props }, ref) => (
26
26
  <DrawerPrimitive.Overlay
27
27
  ref={ref}
28
28
  className={cn("fixed inset-0 z-50 bg-black/80", className)}
@@ -31,29 +31,31 @@ const DrawerOverlay = React.forwardRef<
31
31
  ));
32
32
  DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
33
33
 
34
- const DrawerContent = React.forwardRef<
35
- React.ElementRef<typeof DrawerPrimitive.Content>,
34
+ const DrawerContent: React.ForwardRefExoticComponent<
36
35
  React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> & {
37
36
  hideBar?: boolean;
38
- }
39
- >(({ className, children, hideBar = true, ...props }, ref) => (
40
- <DrawerPortal>
41
- <DrawerOverlay />
42
- <DrawerPrimitive.Content
43
- ref={ref}
44
- className={cn(
45
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
46
- className,
47
- )}
48
- {...props}
49
- >
50
- {!hideBar && (
51
- <div className="mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" />
52
- )}
53
- {children}
54
- </DrawerPrimitive.Content>
55
- </DrawerPortal>
56
- ));
37
+ } & React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Content>>
38
+ > = React.forwardRef(
39
+ ({ className, children, hideBar = true, ...props }, ref) => (
40
+ <DrawerPortal>
41
+ <DrawerOverlay />
42
+ <DrawerPrimitive.Content
43
+ ref={ref}
44
+ className={cn(
45
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
46
+ className,
47
+ )}
48
+ {...props}
49
+ >
50
+ {!hideBar && (
51
+ <div className="mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" />
52
+ )}
53
+ {children}
54
+ </DrawerPrimitive.Content>
55
+ </DrawerPortal>
56
+ ),
57
+ );
58
+
57
59
  DrawerContent.displayName = "DrawerContent";
58
60
 
59
61
  const DrawerHeader = ({
@@ -78,10 +80,10 @@ const DrawerFooter = ({
78
80
  );
79
81
  DrawerFooter.displayName = "DrawerFooter";
80
82
 
81
- const DrawerTitle = React.forwardRef<
82
- React.ElementRef<typeof DrawerPrimitive.Title>,
83
- React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>
84
- >(({ className, ...props }, ref) => (
83
+ const DrawerTitle: React.ForwardRefExoticComponent<
84
+ React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> &
85
+ React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Title>>
86
+ > = React.forwardRef(({ className, ...props }, ref) => (
85
87
  <DrawerPrimitive.Title
86
88
  ref={ref}
87
89
  className={cn(
@@ -93,10 +95,10 @@ const DrawerTitle = React.forwardRef<
93
95
  ));
94
96
  DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
95
97
 
96
- const DrawerDescription = React.forwardRef<
97
- React.ElementRef<typeof DrawerPrimitive.Description>,
98
- React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>
99
- >(({ className, ...props }, ref) => (
98
+ const DrawerDescription: React.ForwardRefExoticComponent<
99
+ React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> &
100
+ React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Description>>
101
+ > = React.forwardRef(({ className, ...props }, ref) => (
100
102
  <DrawerPrimitive.Description
101
103
  ref={ref}
102
104
  className={cn("text-sm text-muted-foreground", className)}
@@ -0,0 +1,10 @@
1
+ import { useLocation, useNavigate, useSearchParams } from "react-router-dom";
2
+ import type { ExposedComponentProps } from "../components/SlotletProvider.js";
3
+
4
+ export const useExposedProps = (): ExposedComponentProps => {
5
+ const location = useLocation();
6
+ const navigate = useNavigate();
7
+ const [searchParams, setSearchParams] = useSearchParams();
8
+
9
+ return { location, navigate, searchParams, setSearchParams };
10
+ };
@@ -1,8 +0,0 @@
1
- import type { ReactNode } from "react";
2
- import type { DevPortalPlugin, NavigationPlugin } from "../../core/plugins.js";
3
- type CustomPageConfig = Array<{
4
- path: string;
5
- element: ReactNode;
6
- }>;
7
- export declare const customPagePlugin: (config: CustomPageConfig) => DevPortalPlugin & NavigationPlugin;
8
- export {};
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ProseClasses } from "../../components/Markdown.js";
3
- export const customPagePlugin = (config) => {
4
- return {
5
- getRoutes: () => config.map(({ path, element }) => ({
6
- path,
7
- // TODO: we should componentize prose pages
8
- element: _jsx("div", { className: ProseClasses + " max-w-full", children: element }),
9
- })),
10
- };
11
- };
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/plugins/custom-page/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAQ5D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,MAAwB,EACY,EAAE;IACtC,OAAO;QACL,SAAS,EAAE,GAAkB,EAAE,CAC7B,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;YACjC,IAAI;YACJ,2CAA2C;YAC3C,OAAO,EAAE,cAAK,SAAS,EAAE,YAAY,GAAG,aAAa,YAAG,OAAO,GAAO;SACvE,CAAC,CAAC;KACN,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export declare const Editor: () => void;
@@ -1,5 +0,0 @@
1
- export const Editor = () => {
2
- // const XoXo = lazy(() => import("@monaco-editor/react"));
3
- // return <XoXo />;
4
- };
5
- //# sourceMappingURL=Editor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Editor.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/playground/Editor.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,EAAE;IACzB,2DAA2D;IAC3D,mBAAmB;AACrB,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- import * as urql from "urql";
2
- export declare const useQuery: typeof urql.useQuery;
3
- export declare const Provider: import("react").Provider<object | urql.Client>;
4
- export declare const cacheExchange: urql.Exchange;
5
- export declare const fetchExchange: urql.Exchange;
6
- export declare const mapExchange: ({ onOperation, onResult, onError, }: urql.MapExchangeOpts) => urql.Exchange;
7
- export declare const Client: new (opts: urql.ClientOptions) => urql.Client;
@@ -1,8 +0,0 @@
1
- import * as urql from "urql";
2
- export const useQuery = urql.useQuery;
3
- export const Provider = urql.Provider;
4
- export const cacheExchange = urql.cacheExchange;
5
- export const fetchExchange = urql.fetchExchange;
6
- export const mapExchange = urql.mapExchange;
7
- export const Client = urql.Client;
8
- //# sourceMappingURL=urql.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"urql.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/util/urql.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;AACtC,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;AACtC,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;AAChD,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;AAChD,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;AAC5C,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC"}
@@ -1,10 +0,0 @@
1
- import { j as s } from "./jsx-runtime-B6kdoens.js";
2
- import { c as m } from "./Markdown-DapSf3wG.js";
3
- const a = ({
4
- children: t,
5
- className: r
6
- }) => /* @__PURE__ */ s.jsx("div", { className: m("text-sm font-semibold text-primary mb-2", r), children: t });
7
- export {
8
- a as C
9
- };
10
- //# sourceMappingURL=CategoryHeading-ovR-zHRq.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CategoryHeading-ovR-zHRq.js","sources":["../src/lib/components/CategoryHeading.tsx"],"sourcesContent":["import { cx } from \"class-variance-authority\";\nimport type { ReactNode } from \"react\";\n\nexport const CategoryHeading = ({\n children,\n className,\n}: {\n children: ReactNode;\n className?: string;\n}) => {\n return (\n <div className={cx(\"text-sm font-semibold text-primary mb-2\", className)}>\n {children}\n </div>\n );\n};\n"],"names":["CategoryHeading","children","className","cx"],"mappings":";;AAGO,MAAMA,IAAkB,CAAC;AAAA,EAC9B,UAAAC;AAAA,EACA,WAAAC;AACF,4BAKK,OAAI,EAAA,WAAWC,EAAG,2CAA2CD,CAAS,GACpE,UAAAD,EACH,CAAA;"}
@@ -1,16 +0,0 @@
1
- import { j as r } from "./jsx-runtime-B6kdoens.js";
2
- import { C as o } from "./CategoryHeading-ovR-zHRq.js";
3
- import { P as n, H as i } from "./Markdown-DapSf3wG.js";
4
- const d = ({
5
- title: e = "An error occurred",
6
- message: a,
7
- category: s
8
- }) => /* @__PURE__ */ r.jsxs("div", { className: n + " h-full pt-[--padding-content-top]", children: [
9
- s && /* @__PURE__ */ r.jsx(o, { children: s }),
10
- e && /* @__PURE__ */ r.jsx(i, { level: 1, className: "flex gap-3.5 items-center", children: e }),
11
- /* @__PURE__ */ r.jsx("p", { children: a })
12
- ] });
13
- export {
14
- d as E
15
- };
16
- //# sourceMappingURL=ErrorPage-CsZAN_za.js.map