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.
- package/dist/cli/dev/handler.js +2 -2
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/validators/validate.d.ts +27 -13
- package/dist/config/validators/validate.js +3 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +2 -1
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +6 -2
- package/dist/lib/components/SlotletProvider.js +3 -5
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +2 -1
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
- package/dist/lib/plugins/custom-pages/index.d.ts +8 -6
- package/dist/lib/plugins/custom-pages/index.js +3 -4
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +1 -1
- package/dist/lib/plugins/openapi/Route.js +1 -1
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +1 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +36 -35
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Drawer.d.ts +8 -10
- package/dist/lib/ui/Drawer.js.map +1 -1
- package/dist/lib/util/useExposedProps.d.ts +2 -0
- package/dist/lib/util/useExposedProps.js +8 -0
- package/dist/lib/util/useExposedProps.js.map +1 -0
- package/dist/vite/dev-server.d.ts +6 -1
- package/dist/vite/dev-server.js +4 -2
- package/dist/vite/dev-server.js.map +1 -1
- package/lib/{AuthenticationPlugin-Bx9FK124.js → AuthenticationPlugin-CbgJ5SAh.js} +3 -3
- package/lib/{AuthenticationPlugin-Bx9FK124.js.map → AuthenticationPlugin-CbgJ5SAh.js.map} +1 -1
- package/lib/{CategoryHeading-ovR-zHRq.js → CategoryHeading-3Qtp2yZ8.js} +2 -2
- package/lib/{CategoryHeading-ovR-zHRq.js.map → CategoryHeading-3Qtp2yZ8.js.map} +1 -1
- package/lib/{DeveloperHint-YeWHKvyr.js → DeveloperHint-BE9DzNhv.js} +2 -2
- package/lib/{DeveloperHint-YeWHKvyr.js.map → DeveloperHint-BE9DzNhv.js.map} +1 -1
- package/lib/{ErrorPage-CsZAN_za.js → ErrorPage-B0COs372.js} +3 -3
- package/lib/{ErrorPage-CsZAN_za.js.map → ErrorPage-B0COs372.js.map} +1 -1
- package/lib/Input-CHfE_2Qk.js +2229 -0
- package/lib/Input-CHfE_2Qk.js.map +1 -0
- package/lib/{Markdown-DapSf3wG.js → Markdown-CWI6lU11.js} +714 -554
- package/lib/Markdown-CWI6lU11.js.map +1 -0
- package/lib/{MdxPage-BqBWsXZ1.js → MdxPage-C3tlrV4j.js} +6 -6
- package/lib/{MdxPage-BqBWsXZ1.js.map → MdxPage-C3tlrV4j.js.map} +1 -1
- package/lib/{OperationList-CYrmxPa8.js → OperationList-BO-ES1C5.js} +38 -39
- package/lib/OperationList-BO-ES1C5.js.map +1 -0
- package/lib/{Route-Q5mqNQrv.js → Route-Dq6zv0Pi.js} +3 -4
- package/lib/Route-Dq6zv0Pi.js.map +1 -0
- package/lib/SidebarBadge-DmI5hT04.js +503 -0
- package/lib/SidebarBadge-DmI5hT04.js.map +1 -0
- package/lib/{SlotletProvider-BWwfPzgI.js → SlotletProvider-RvaeLR6z.js} +43 -44
- package/lib/{SlotletProvider-BWwfPzgI.js.map → SlotletProvider-RvaeLR6z.js.map} +1 -1
- package/lib/ZudokuContext-BEmsYQoq.js +1173 -0
- package/lib/ZudokuContext-BEmsYQoq.js.map +1 -0
- package/lib/assets/{index-B9EWVYfo.js → index-B_Jk_Yzp.js} +968 -938
- package/lib/assets/index-B_Jk_Yzp.js.map +1 -0
- package/lib/assets/{worker-BP8Uzflt.js → worker-Bf8vjASY.js} +4581 -4300
- package/lib/assets/worker-Bf8vjASY.js.map +1 -0
- package/lib/{index-BG0g4WW0.js → index-BRCiYFaL.js} +747 -737
- package/lib/index-BRCiYFaL.js.map +1 -0
- package/lib/{index-CLd8ycZz.js → index-CkwDvuPt.js} +947 -917
- package/lib/index-CkwDvuPt.js.map +1 -0
- package/lib/{index-LNp6rxyU.js → index-D06ATMgg.js} +2 -2
- package/lib/{index-LNp6rxyU.js.map → index-D06ATMgg.js.map} +1 -1
- package/lib/index-DJqnphbT.js +35 -0
- package/lib/{index-Bn6Lc9tq.js.map → index-DJqnphbT.js.map} +1 -1
- package/lib/{index-BlJ2rj99.js → index-DNfiZTPV.js} +1123 -974
- package/lib/index-DNfiZTPV.js.map +1 -0
- package/lib/{index-Dolisrci.js → index-Do_BBSIs.js} +597 -544
- package/lib/index-Do_BBSIs.js.map +1 -0
- package/lib/{index-BngPzhKn.js → index-Dvh1BL_e.js} +3 -3
- package/lib/{index-BngPzhKn.js.map → index-Dvh1BL_e.js.map} +1 -1
- package/lib/router-Oe6YmY6B.js +3024 -0
- package/lib/router-Oe6YmY6B.js.map +1 -0
- package/lib/state-CsuHT8ZO.js +183 -0
- package/lib/state-CsuHT8ZO.js.map +1 -0
- package/lib/urql-core-KJnLL26g.js +1455 -0
- package/lib/urql-core-KJnLL26g.js.map +1 -0
- package/lib/useExposedProps-Csw8oAlt.js +9 -0
- package/lib/useExposedProps-Csw8oAlt.js.map +1 -0
- package/lib/{utils-ByIc_KIM.js → utils-Chi3p5nE.js} +4 -4
- package/lib/utils-Chi3p5nE.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +363 -350
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1694 -1628
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +4599 -4317
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +7 -7
- package/lib/zudoku.plugin-custom-pages.js +16 -8
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +8 -8
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/package.json +58 -65
- package/src/lib/components/Header.tsx +2 -2
- package/src/lib/components/MobileTopNavigation.tsx +4 -0
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/SlotletProvider.tsx +14 -7
- package/src/lib/components/index.ts +1 -1
- package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
- package/src/lib/plugins/custom-pages/index.tsx +11 -9
- package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/Route.tsx +1 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -6
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +1 -6
- package/src/lib/plugins/openapi/index.tsx +1 -5
- package/src/lib/ui/Callout.tsx +7 -6
- package/src/lib/ui/Drawer.tsx +38 -36
- package/src/lib/util/useExposedProps.tsx +10 -0
- package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
- package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
- package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
- package/dist/lib/plugins/openapi/util/urql.js +0 -8
- package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
- package/lib/Input-CtVUl3eT.js +0 -2198
- package/lib/Input-CtVUl3eT.js.map +0 -1
- package/lib/Markdown-DapSf3wG.js.map +0 -1
- package/lib/OperationList-CYrmxPa8.js.map +0 -1
- package/lib/Route-Q5mqNQrv.js.map +0 -1
- package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
- package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
- package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
- package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/assets/index-B9EWVYfo.js.map +0 -1
- package/lib/assets/worker-BP8Uzflt.js.map +0 -1
- package/lib/index-BG0g4WW0.js.map +0 -1
- package/lib/index-BlJ2rj99.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-CLd8ycZz.js.map +0 -1
- package/lib/index-Dolisrci.js.map +0 -1
- package/lib/router-D2p7Olpn.js +0 -2971
- package/lib/router-D2p7Olpn.js.map +0 -1
- package/lib/state-hNe1dw4B.js +0 -548
- package/lib/state-hNe1dw4B.js.map +0 -1
- package/lib/urql-YhcsXYy8.js +0 -1591
- package/lib/urql-YhcsXYy8.js.map +0 -1
- package/lib/utils-ByIc_KIM.js.map +0 -1
- package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
- package/src/lib/plugins/openapi/util/urql.ts +0 -8
package/src/lib/ui/Drawer.tsx
CHANGED
|
@@ -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
|
|
23
|
-
React.
|
|
24
|
-
|
|
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
|
|
35
|
-
React.ElementRef<typeof DrawerPrimitive.Content>,
|
|
34
|
+
const DrawerContent: React.ForwardRefExoticComponent<
|
|
36
35
|
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> & {
|
|
37
36
|
hideBar?: boolean;
|
|
38
|
-
}
|
|
39
|
-
>
|
|
40
|
-
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
|
82
|
-
React.
|
|
83
|
-
|
|
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
|
|
97
|
-
React.
|
|
98
|
-
|
|
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 +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"}
|