zudoku 0.35.3 → 0.35.5
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/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -0
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
- package/dist/lib/plugins/openapi/ParamInfos.js +34 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
- package/dist/lib/plugins/openapi/ParameterListItem.js +7 -4
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +1 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js +2 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +9 -8
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/lib/ui/Button.js +1 -0
- package/dist/lib/ui/Button.js.map +1 -1
- package/lib/{OasProvider-7Z9UwS9y.js → OasProvider-CJ8KOnsH.js} +2 -2
- package/lib/{OasProvider-7Z9UwS9y.js.map → OasProvider-CJ8KOnsH.js.map} +1 -1
- package/lib/{OperationList-a7wnHdXv.js → OperationList-C4rpJdcE.js} +1081 -1049
- package/lib/OperationList-C4rpJdcE.js.map +1 -0
- package/lib/{Spinner-1KrEmx1V.js → Spinner-C6n4eOvh.js} +13 -12
- package/lib/Spinner-C6n4eOvh.js.map +1 -0
- package/lib/{index-UmhI2mj7.js → index-Dowg8c_k.js} +7 -5
- package/lib/index-Dowg8c_k.js.map +1 -0
- package/lib/ui/ActionButton.js +1 -1
- package/lib/ui/Button.js +12 -11
- package/lib/ui/Button.js.map +1 -1
- package/lib/zudoku.components.js +2 -2
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +1 -1
- package/src/app/main.css +4 -0
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/plugins/openapi/OperationList.tsx +1 -0
- package/src/lib/plugins/openapi/ParamInfos.tsx +64 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +26 -22
- package/src/lib/plugins/openapi/graphql/gql.ts +3 -3
- package/src/lib/plugins/openapi/graphql/graphql.ts +3 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +22 -34
- package/src/lib/ui/Button.tsx +3 -1
- package/lib/OperationList-a7wnHdXv.js.map +0 -1
- package/lib/Spinner-1KrEmx1V.js.map +0 -1
- package/lib/index-UmhI2mj7.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as r } from "./jsx-runtime-CYK1ROHF.js";
|
|
2
2
|
import { Slot as d } from "@radix-ui/react-slot";
|
|
3
|
-
import { c } from "./index-CPNSgwSb.js";
|
|
4
|
-
import * as
|
|
3
|
+
import { c as u } from "./index-CPNSgwSb.js";
|
|
4
|
+
import * as c from "react";
|
|
5
5
|
import { c as m } from "./cn-qaFjX9_3.js";
|
|
6
|
-
import { LoaderCircle as
|
|
7
|
-
const
|
|
6
|
+
import { LoaderCircle as f } from "lucide-react";
|
|
7
|
+
const l = u(
|
|
8
8
|
"not-prose inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
@@ -14,7 +14,8 @@ const f = c(
|
|
|
14
14
|
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
15
15
|
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
16
16
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
17
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
17
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
18
|
+
expand: "flex gap-1.5 border bg-transparent rounded-xl text-muted-foreground hover:text-foreground"
|
|
18
19
|
},
|
|
19
20
|
size: {
|
|
20
21
|
default: "h-9 px-4 py-2",
|
|
@@ -29,13 +30,13 @@ const f = c(
|
|
|
29
30
|
size: "default"
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
|
-
), p =
|
|
33
|
-
({ className: e, variant:
|
|
33
|
+
), p = c.forwardRef(
|
|
34
|
+
({ className: e, variant: t, size: o, asChild: n = !1, ...s }, a) => {
|
|
34
35
|
const i = n ? d : "button";
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ r.jsx(
|
|
36
37
|
i,
|
|
37
38
|
{
|
|
38
|
-
className: m(
|
|
39
|
+
className: m(l({ variant: t, size: o, className: e })),
|
|
39
40
|
ref: a,
|
|
40
41
|
...s
|
|
41
42
|
}
|
|
@@ -43,9 +44,9 @@ const f = c(
|
|
|
43
44
|
}
|
|
44
45
|
);
|
|
45
46
|
p.displayName = "Button";
|
|
46
|
-
const y = ({ size: e = 16 }) => /* @__PURE__ */
|
|
47
|
+
const y = ({ size: e = 16 }) => /* @__PURE__ */ r.jsx(f, { size: e, className: "animate-spin" });
|
|
47
48
|
export {
|
|
48
49
|
p as B,
|
|
49
50
|
y as S
|
|
50
51
|
};
|
|
51
|
-
//# sourceMappingURL=Spinner-
|
|
52
|
+
//# sourceMappingURL=Spinner-C6n4eOvh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner-C6n4eOvh.js","sources":["../src/lib/ui/Button.tsx","../src/lib/components/Spinner.tsx"],"sourcesContent":["import { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { cn } from \"../util/cn.js\";\n\nexport const buttonVariants = cva(\n \"not-prose inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50\",\n {\n variants: {\n variant: {\n default:\n \"bg-primary text-primary-foreground shadow hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground\",\n secondary:\n \"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\",\n expand:\n \"flex gap-1.5 border bg-transparent rounded-xl text-muted-foreground hover:text-foreground\",\n },\n size: {\n default: \"h-9 px-4 py-2\",\n sm: \"h-8 rounded-md px-3 text-xs\",\n lg: \"h-10 rounded-md px-8\",\n xl: \"h-14 rounded-lg px-10 text-lg\",\n icon: \"h-9 w-9\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n}\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\";\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n {...props}\n />\n );\n },\n);\nButton.displayName = \"Button\";\n","import { LoaderCircle } from \"lucide-react\";\n\nexport const Spinner = ({ size = 16 }: { size?: number }) => (\n <LoaderCircle size={size} className=\"animate-spin\" />\n);\n"],"names":["buttonVariants","cva","Button","React","className","variant","size","asChild","props","ref","Comp","Slot","jsx","cn","Spinner","LoaderCircle"],"mappings":";;;;;;AAKO,MAAMA,IAAiBC;AAAA,EAC5B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,WACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,QACE;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MAAA;AAAA,IAEV;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IAAA;AAAA,EACR;AAEJ,GAQaC,IAASC,EAAM;AAAA,EAC1B,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,MAAAC,GAAM,SAAAC,IAAU,IAAO,GAAGC,EAAM,GAAGC,MAAQ;AAC1D,UAAAC,IAAOH,IAAUI,IAAO;AAE5B,WAAAC,gBAAAA,EAAA;AAAA,MAACF;AAAA,MAAA;AAAA,QACC,WAAWG,EAAGb,EAAe,EAAE,SAAAK,GAAS,MAAAC,GAAM,WAAAF,EAAA,CAAW,CAAC;AAAA,QAC1D,KAAAK;AAAA,QACC,GAAGD;AAAA,MAAA;AAAA,IACN;AAAA,EAAA;AAGN;AACAN,EAAO,cAAc;ACtDR,MAAAY,IAAU,CAAC,EAAE,MAAAR,IAAO,SAC9BM,gBAAAA,MAAAG,GAAA,EAAa,MAAAT,GAAY,WAAU,eAAe,CAAA;"}
|
|
@@ -24,7 +24,7 @@ import { c as p } from "./cn-qaFjX9_3.js";
|
|
|
24
24
|
import { Tabs as jt, TabsList as vt, TabsTrigger as z, TabsContent as H } from "./ui/Tabs.js";
|
|
25
25
|
import { u as cs, o as ms } from "./objectEntries-BS7aAgOm.js";
|
|
26
26
|
import { z as us } from "./index-DwT-v3zK.js";
|
|
27
|
-
import { B as L, S as ps } from "./Spinner-
|
|
27
|
+
import { B as L, S as ps } from "./Spinner-C6n4eOvh.js";
|
|
28
28
|
import * as b from "@radix-ui/react-dropdown-menu";
|
|
29
29
|
import * as Te from "@radix-ui/react-checkbox";
|
|
30
30
|
import * as oe from "@radix-ui/react-popover";
|
|
@@ -101,6 +101,7 @@ const Rs = new J(
|
|
|
101
101
|
required
|
|
102
102
|
schema
|
|
103
103
|
style
|
|
104
|
+
explode
|
|
104
105
|
examples {
|
|
105
106
|
name
|
|
106
107
|
description
|
|
@@ -196,6 +197,7 @@ const Rs = new J(
|
|
|
196
197
|
required
|
|
197
198
|
schema
|
|
198
199
|
style
|
|
200
|
+
explode
|
|
199
201
|
examples {
|
|
200
202
|
name
|
|
201
203
|
description
|
|
@@ -285,7 +287,7 @@ const Rs = new J(
|
|
|
285
287
|
}
|
|
286
288
|
`), Ds = {
|
|
287
289
|
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": ks,
|
|
288
|
-
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": Rs,
|
|
290
|
+
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": Rs,
|
|
289
291
|
"\n query AllOperations(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tags(name: $tag) {\n name\n description\n }\n operations(tag: $tag, untagged: $untagged) {\n slug\n ...OperationsFragment\n }\n }\n }\n": Os,
|
|
290
292
|
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": As,
|
|
291
293
|
"\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n tags {\n name\n }\n }\n }\n": Ls,
|
|
@@ -1973,7 +1975,7 @@ const xn = {
|
|
|
1973
1975
|
}), xt = (t) => ({
|
|
1974
1976
|
path: t.routePath,
|
|
1975
1977
|
async lazy() {
|
|
1976
|
-
const { OasProvider: s } = await import("./OasProvider-
|
|
1978
|
+
const { OasProvider: s } = await import("./OasProvider-CJ8KOnsH.js");
|
|
1977
1979
|
return {
|
|
1978
1980
|
element: /* @__PURE__ */ e.jsx(
|
|
1979
1981
|
s,
|
|
@@ -1994,7 +1996,7 @@ const xn = {
|
|
|
1994
1996
|
}) => ({
|
|
1995
1997
|
path: t,
|
|
1996
1998
|
async lazy() {
|
|
1997
|
-
const { OperationList: a } = await import("./OperationList-
|
|
1999
|
+
const { OperationList: a } = await import("./OperationList-C4rpJdcE.js");
|
|
1998
2000
|
return { element: /* @__PURE__ */ e.jsx(a, { tag: s, untagged: n }) };
|
|
1999
2001
|
}
|
|
2000
2002
|
}), $n = (t, s) => {
|
|
@@ -2200,4 +2202,4 @@ export {
|
|
|
2200
2202
|
mn as m,
|
|
2201
2203
|
ia as o
|
|
2202
2204
|
};
|
|
2203
|
-
//# sourceMappingURL=index-
|
|
2205
|
+
//# sourceMappingURL=index-Dowg8c_k.js.map
|