zudoku 0.13.0 → 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 (168) hide show
  1. package/dist/cli/dev/handler.js +2 -2
  2. package/dist/cli/dev/handler.js.map +1 -1
  3. package/dist/config/validators/validate.d.ts +27 -13
  4. package/dist/config/validators/validate.js +3 -1
  5. package/dist/config/validators/validate.js.map +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/lib/components/Header.js +1 -1
  8. package/dist/lib/components/Header.js.map +1 -1
  9. package/dist/lib/components/MobileTopNavigation.js +2 -1
  10. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  11. package/dist/lib/components/Search.js +1 -1
  12. package/dist/lib/components/Search.js.map +1 -1
  13. package/dist/lib/components/SlotletProvider.d.ts +6 -2
  14. package/dist/lib/components/SlotletProvider.js +3 -5
  15. package/dist/lib/components/SlotletProvider.js.map +1 -1
  16. package/dist/lib/components/index.d.ts +2 -1
  17. package/dist/lib/components/index.js.map +1 -1
  18. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
  19. package/dist/lib/plugins/custom-pages/CustomPage.js +10 -0
  20. package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
  21. package/dist/lib/plugins/custom-pages/index.d.ts +8 -6
  22. package/dist/lib/plugins/custom-pages/index.js +3 -4
  23. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  24. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  25. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  26. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  27. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  28. package/dist/lib/plugins/openapi/Route.d.ts +1 -1
  29. package/dist/lib/plugins/openapi/Route.js +1 -1
  30. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  31. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  32. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  33. package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
  34. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
  35. package/dist/lib/plugins/openapi/client/createWorkerClient.js +1 -1
  36. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
  37. package/dist/lib/plugins/openapi/index.js +1 -1
  38. package/dist/lib/plugins/openapi/index.js.map +1 -1
  39. package/dist/lib/ui/Callout.d.ts +36 -35
  40. package/dist/lib/ui/Callout.js.map +1 -1
  41. package/dist/lib/ui/Drawer.d.ts +8 -10
  42. package/dist/lib/ui/Drawer.js.map +1 -1
  43. package/dist/lib/util/useExposedProps.d.ts +2 -0
  44. package/dist/lib/util/useExposedProps.js +8 -0
  45. package/dist/lib/util/useExposedProps.js.map +1 -0
  46. package/dist/vite/dev-server.d.ts +6 -1
  47. package/dist/vite/dev-server.js +4 -2
  48. package/dist/vite/dev-server.js.map +1 -1
  49. package/lib/{AuthenticationPlugin-Bx9FK124.js → AuthenticationPlugin-CbgJ5SAh.js} +3 -3
  50. package/lib/{AuthenticationPlugin-Bx9FK124.js.map → AuthenticationPlugin-CbgJ5SAh.js.map} +1 -1
  51. package/lib/{DeveloperHint-YeWHKvyr.js → DeveloperHint-CiXPc9Xm.js} +2 -2
  52. package/lib/{DeveloperHint-YeWHKvyr.js.map → DeveloperHint-CiXPc9Xm.js.map} +1 -1
  53. package/lib/ErrorPage-B-zoPPVx.js +15 -0
  54. package/lib/{ErrorPage-CsZAN_za.js.map → ErrorPage-B-zoPPVx.js.map} +1 -1
  55. package/lib/Input-QMLhK7Rb.js +2229 -0
  56. package/lib/Input-QMLhK7Rb.js.map +1 -0
  57. package/lib/{Markdown-DapSf3wG.js → Markdown-D6Nze6qq.js} +3281 -5392
  58. package/lib/Markdown-D6Nze6qq.js.map +1 -0
  59. package/lib/{MdxPage-BqBWsXZ1.js → MdxPage-DBhq6-5F.js} +15 -15
  60. package/lib/{MdxPage-BqBWsXZ1.js.map → MdxPage-DBhq6-5F.js.map} +1 -1
  61. package/lib/{OperationList-CYrmxPa8.js → OperationList-Ba24gUd2.js} +50 -51
  62. package/lib/OperationList-Ba24gUd2.js.map +1 -0
  63. package/lib/{Route-Q5mqNQrv.js → Route-DI38nxYt.js} +3 -4
  64. package/lib/Route-DI38nxYt.js.map +1 -0
  65. package/lib/SidebarBadge-B9-VJSQr.js +503 -0
  66. package/lib/SidebarBadge-B9-VJSQr.js.map +1 -0
  67. package/lib/{SlotletProvider-BWwfPzgI.js → SlotletProvider-Cb8mGpBO.js} +42 -44
  68. package/lib/{SlotletProvider-BWwfPzgI.js.map → SlotletProvider-Cb8mGpBO.js.map} +1 -1
  69. package/lib/ZudokuContext-BEmsYQoq.js +1173 -0
  70. package/lib/ZudokuContext-BEmsYQoq.js.map +1 -0
  71. package/lib/assets/{index-B9EWVYfo.js → index-B_Jk_Yzp.js} +968 -938
  72. package/lib/assets/index-B_Jk_Yzp.js.map +1 -0
  73. package/lib/assets/{worker-BP8Uzflt.js → worker-Bf8vjASY.js} +4581 -4300
  74. package/lib/assets/worker-Bf8vjASY.js.map +1 -0
  75. package/lib/cn-BmFQLtkS.js +2279 -0
  76. package/lib/cn-BmFQLtkS.js.map +1 -0
  77. package/lib/{index-BG0g4WW0.js → index-BRCiYFaL.js} +747 -737
  78. package/lib/index-BRCiYFaL.js.map +1 -0
  79. package/lib/{index-CLd8ycZz.js → index-CkwDvuPt.js} +947 -917
  80. package/lib/index-CkwDvuPt.js.map +1 -0
  81. package/lib/{index-LNp6rxyU.js → index-D06ATMgg.js} +2 -2
  82. package/lib/{index-LNp6rxyU.js.map → index-D06ATMgg.js.map} +1 -1
  83. package/lib/{index-BlJ2rj99.js → index-DA74gNq3.js} +1124 -974
  84. package/lib/index-DA74gNq3.js.map +1 -0
  85. package/lib/index-DJqnphbT.js +35 -0
  86. package/lib/{index-Bn6Lc9tq.js.map → index-DJqnphbT.js.map} +1 -1
  87. package/lib/{index-BngPzhKn.js → index-dgcPryXi.js} +3 -3
  88. package/lib/{index-BngPzhKn.js.map → index-dgcPryXi.js.map} +1 -1
  89. package/lib/{index-Dolisrci.js → index-g_JJcuFg.js} +603 -549
  90. package/lib/index-g_JJcuFg.js.map +1 -0
  91. package/lib/router-Oe6YmY6B.js +3024 -0
  92. package/lib/router-Oe6YmY6B.js.map +1 -0
  93. package/lib/state-CsuHT8ZO.js +183 -0
  94. package/lib/state-CsuHT8ZO.js.map +1 -0
  95. package/lib/urql-core-KJnLL26g.js +1455 -0
  96. package/lib/urql-core-KJnLL26g.js.map +1 -0
  97. package/lib/useExposedProps-Csw8oAlt.js +9 -0
  98. package/lib/useExposedProps-Csw8oAlt.js.map +1 -0
  99. package/lib/{utils-ByIc_KIM.js → utils-Chi3p5nE.js} +4 -4
  100. package/lib/utils-Chi3p5nE.js.map +1 -0
  101. package/lib/zudoku.auth-auth0.js +1 -1
  102. package/lib/zudoku.auth-clerk.js +2 -2
  103. package/lib/zudoku.auth-openid.js +363 -350
  104. package/lib/zudoku.auth-openid.js.map +1 -1
  105. package/lib/zudoku.components.js +1695 -1628
  106. package/lib/zudoku.components.js.map +1 -1
  107. package/lib/zudoku.openapi-worker.js +4599 -4317
  108. package/lib/zudoku.openapi-worker.js.map +1 -1
  109. package/lib/zudoku.plugin-api-keys.js +7 -7
  110. package/lib/zudoku.plugin-custom-pages.js +16 -8
  111. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  112. package/lib/zudoku.plugin-markdown.js +1 -1
  113. package/lib/zudoku.plugin-openapi.js +8 -8
  114. package/lib/zudoku.plugin-redirect.js +1 -1
  115. package/package.json +58 -65
  116. package/src/lib/components/Header.tsx +2 -2
  117. package/src/lib/components/MobileTopNavigation.tsx +4 -0
  118. package/src/lib/components/Search.tsx +1 -1
  119. package/src/lib/components/SlotletProvider.tsx +14 -7
  120. package/src/lib/components/index.ts +1 -1
  121. package/src/lib/plugins/custom-pages/CustomPage.tsx +15 -0
  122. package/src/lib/plugins/custom-pages/index.tsx +11 -9
  123. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  124. package/src/lib/plugins/openapi/OperationList.tsx +1 -1
  125. package/src/lib/plugins/openapi/Route.tsx +1 -2
  126. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  127. package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -6
  128. package/src/lib/plugins/openapi/client/createWorkerClient.ts +1 -6
  129. package/src/lib/plugins/openapi/index.tsx +1 -5
  130. package/src/lib/ui/Callout.tsx +7 -6
  131. package/src/lib/ui/Drawer.tsx +38 -36
  132. package/src/lib/util/useExposedProps.tsx +10 -0
  133. package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
  134. package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
  135. package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
  136. package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
  137. package/dist/lib/plugins/openapi/util/urql.js +0 -8
  138. package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
  139. package/lib/CategoryHeading-ovR-zHRq.js +0 -10
  140. package/lib/CategoryHeading-ovR-zHRq.js.map +0 -1
  141. package/lib/ErrorPage-CsZAN_za.js +0 -16
  142. package/lib/Input-CtVUl3eT.js +0 -2198
  143. package/lib/Input-CtVUl3eT.js.map +0 -1
  144. package/lib/Markdown-DapSf3wG.js.map +0 -1
  145. package/lib/OperationList-CYrmxPa8.js.map +0 -1
  146. package/lib/Route-Q5mqNQrv.js.map +0 -1
  147. package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
  148. package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
  149. package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
  150. package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
  151. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  152. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  153. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  154. package/lib/assets/worker-BP8Uzflt.js.map +0 -1
  155. package/lib/index-BG0g4WW0.js.map +0 -1
  156. package/lib/index-BlJ2rj99.js.map +0 -1
  157. package/lib/index-Bn6Lc9tq.js +0 -9
  158. package/lib/index-CLd8ycZz.js.map +0 -1
  159. package/lib/index-Dolisrci.js.map +0 -1
  160. package/lib/router-D2p7Olpn.js +0 -2971
  161. package/lib/router-D2p7Olpn.js.map +0 -1
  162. package/lib/state-hNe1dw4B.js +0 -548
  163. package/lib/state-hNe1dw4B.js.map +0 -1
  164. package/lib/urql-YhcsXYy8.js +0 -1591
  165. package/lib/urql-YhcsXYy8.js.map +0 -1
  166. package/lib/utils-ByIc_KIM.js.map +0 -1
  167. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  168. package/src/lib/plugins/openapi/util/urql.ts +0 -8
@@ -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 +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