zudoku 0.13.0 → 0.13.2

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 (165) 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 +11 -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/{CategoryHeading-ovR-zHRq.js → CategoryHeading-3Qtp2yZ8.js} +2 -2
  52. package/lib/{CategoryHeading-ovR-zHRq.js.map → CategoryHeading-3Qtp2yZ8.js.map} +1 -1
  53. package/lib/{DeveloperHint-YeWHKvyr.js → DeveloperHint-BE9DzNhv.js} +2 -2
  54. package/lib/{DeveloperHint-YeWHKvyr.js.map → DeveloperHint-BE9DzNhv.js.map} +1 -1
  55. package/lib/{ErrorPage-CsZAN_za.js → ErrorPage-B0COs372.js} +3 -3
  56. package/lib/{ErrorPage-CsZAN_za.js.map → ErrorPage-B0COs372.js.map} +1 -1
  57. package/lib/Input-CHfE_2Qk.js +2229 -0
  58. package/lib/Input-CHfE_2Qk.js.map +1 -0
  59. package/lib/{Markdown-DapSf3wG.js → Markdown-CWI6lU11.js} +714 -554
  60. package/lib/Markdown-CWI6lU11.js.map +1 -0
  61. package/lib/{MdxPage-BqBWsXZ1.js → MdxPage-C3tlrV4j.js} +6 -6
  62. package/lib/{MdxPage-BqBWsXZ1.js.map → MdxPage-C3tlrV4j.js.map} +1 -1
  63. package/lib/{OperationList-CYrmxPa8.js → OperationList-BO-ES1C5.js} +38 -39
  64. package/lib/OperationList-BO-ES1C5.js.map +1 -0
  65. package/lib/{Route-Q5mqNQrv.js → Route-Dq6zv0Pi.js} +3 -4
  66. package/lib/Route-Dq6zv0Pi.js.map +1 -0
  67. package/lib/SidebarBadge-DmI5hT04.js +503 -0
  68. package/lib/SidebarBadge-DmI5hT04.js.map +1 -0
  69. package/lib/{SlotletProvider-BWwfPzgI.js → SlotletProvider-RvaeLR6z.js} +43 -44
  70. package/lib/{SlotletProvider-BWwfPzgI.js.map → SlotletProvider-RvaeLR6z.js.map} +1 -1
  71. package/lib/ZudokuContext-BEmsYQoq.js +1173 -0
  72. package/lib/ZudokuContext-BEmsYQoq.js.map +1 -0
  73. package/lib/assets/{index-B9EWVYfo.js → index-B_Jk_Yzp.js} +968 -938
  74. package/lib/assets/index-B_Jk_Yzp.js.map +1 -0
  75. package/lib/assets/{worker-BP8Uzflt.js → worker-Bf8vjASY.js} +4581 -4300
  76. package/lib/assets/worker-Bf8vjASY.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-DJqnphbT.js +35 -0
  84. package/lib/{index-Bn6Lc9tq.js.map → index-DJqnphbT.js.map} +1 -1
  85. package/lib/{index-BlJ2rj99.js → index-DNfiZTPV.js} +1123 -974
  86. package/lib/index-DNfiZTPV.js.map +1 -0
  87. package/lib/{index-Dolisrci.js → index-Do_BBSIs.js} +597 -544
  88. package/lib/index-Do_BBSIs.js.map +1 -0
  89. package/lib/{index-BngPzhKn.js → index-Dvh1BL_e.js} +3 -3
  90. package/lib/{index-BngPzhKn.js.map → index-Dvh1BL_e.js.map} +1 -1
  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 +1694 -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 +18 -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/Input-CtVUl3eT.js +0 -2198
  140. package/lib/Input-CtVUl3eT.js.map +0 -1
  141. package/lib/Markdown-DapSf3wG.js.map +0 -1
  142. package/lib/OperationList-CYrmxPa8.js.map +0 -1
  143. package/lib/Route-Q5mqNQrv.js.map +0 -1
  144. package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
  145. package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
  146. package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
  147. package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
  148. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  149. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  150. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  151. package/lib/assets/worker-BP8Uzflt.js.map +0 -1
  152. package/lib/index-BG0g4WW0.js.map +0 -1
  153. package/lib/index-BlJ2rj99.js.map +0 -1
  154. package/lib/index-Bn6Lc9tq.js +0 -9
  155. package/lib/index-CLd8ycZz.js.map +0 -1
  156. package/lib/index-Dolisrci.js.map +0 -1
  157. package/lib/router-D2p7Olpn.js +0 -2971
  158. package/lib/router-D2p7Olpn.js.map +0 -1
  159. package/lib/state-hNe1dw4B.js +0 -548
  160. package/lib/state-hNe1dw4B.js.map +0 -1
  161. package/lib/urql-YhcsXYy8.js +0 -1591
  162. package/lib/urql-YhcsXYy8.js.map +0 -1
  163. package/lib/utils-ByIc_KIM.js.map +0 -1
  164. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  165. 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"}