zudoku 0.35.3 → 0.35.4
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/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 +5 -4
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +6 -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-BbSqUQka.js} +2 -2
- package/lib/{OasProvider-7Z9UwS9y.js.map → OasProvider-BbSqUQka.js.map} +1 -1
- package/lib/{OperationList-a7wnHdXv.js → OperationList-CENzwqY8.js} +1063 -1029
- package/lib/OperationList-CENzwqY8.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-BVhQWA89.js} +4 -4
- package/lib/{index-UmhI2mj7.js.map → index-BVhQWA89.js.map} +1 -1
- 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/lib/components/Layout.tsx +1 -1
- package/src/lib/plugins/openapi/ParamInfos.tsx +64 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +9 -11
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +17 -33
- 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/ui/ActionButton.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as s } from "../jsx-runtime-CYK1ROHF.js";
|
|
2
2
|
import { forwardRef as m } from "react";
|
|
3
|
-
import { B as c, S as n } from "../Spinner-
|
|
3
|
+
import { B as c, S as n } from "../Spinner-C6n4eOvh.js";
|
|
4
4
|
import { c as r } from "../cn-qaFjX9_3.js";
|
|
5
5
|
const l = m(
|
|
6
6
|
({ isPending: t, children: e, className: o, ...a }, i) => /* @__PURE__ */ s.jsxs(
|
package/lib/ui/Button.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Slot as
|
|
3
|
-
import { c } from "../index-CPNSgwSb.js";
|
|
4
|
-
import * as
|
|
1
|
+
import { j as d } from "../jsx-runtime-CYK1ROHF.js";
|
|
2
|
+
import { Slot as i } from "@radix-ui/react-slot";
|
|
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
|
-
const f =
|
|
6
|
+
const f = u(
|
|
7
7
|
"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",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -13,7 +13,8 @@ const f = c(
|
|
|
13
13
|
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
14
14
|
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
15
15
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
16
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
16
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
17
|
+
expand: "flex gap-1.5 border bg-transparent rounded-xl text-muted-foreground hover:text-foreground"
|
|
17
18
|
},
|
|
18
19
|
size: {
|
|
19
20
|
default: "h-9 px-4 py-2",
|
|
@@ -28,13 +29,13 @@ const f = c(
|
|
|
28
29
|
size: "default"
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
|
-
), l =
|
|
32
|
-
({ className: e, variant:
|
|
33
|
-
const a = o ?
|
|
34
|
-
return /* @__PURE__ */
|
|
32
|
+
), l = c.forwardRef(
|
|
33
|
+
({ className: e, variant: r, size: t, asChild: o = !1, ...n }, s) => {
|
|
34
|
+
const a = o ? i : "button";
|
|
35
|
+
return /* @__PURE__ */ d.jsx(
|
|
35
36
|
a,
|
|
36
37
|
{
|
|
37
|
-
className: m(f({ variant:
|
|
38
|
+
className: m(f({ variant: r, size: t, className: e })),
|
|
38
39
|
ref: s,
|
|
39
40
|
...n
|
|
40
41
|
}
|
package/lib/ui/Button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../src/lib/ui/Button.tsx"],"sourcesContent":["import { Slot } from \"@radix-ui/react-slot\";\nimport { cva, 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 },\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"],"names":["buttonVariants","cva","Button","React","className","variant","size","asChild","props","ref","Comp","Slot","jsx","cn"],"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,
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../src/lib/ui/Button.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"],"names":["buttonVariants","cva","Button","React","className","variant","size","asChild","props","ref","Comp","Slot","jsx","cn"],"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;"}
|
package/lib/zudoku.components.js
CHANGED
|
@@ -31,7 +31,7 @@ import Yt, { createContext as fe, StrictMode as Ye, useRef as se, useEffect as F
|
|
|
31
31
|
import * as Gt from "react-dom";
|
|
32
32
|
import { C as ge } from "./ClientOnly-E7hGysn1.js";
|
|
33
33
|
import { s as Wt, S as De, u as Jt, a as es, H as ts, P as ss, b as rs, V as ns, M as as } from "./Markdown-hBN9vkm5.js";
|
|
34
|
-
import { B as oe, S as Xe } from "./Spinner-
|
|
34
|
+
import { B as oe, S as Xe } from "./Spinner-C6n4eOvh.js";
|
|
35
35
|
import { c as E } from "./cn-qaFjX9_3.js";
|
|
36
36
|
import { isSearchPlugin as is, isProfileMenuPlugin as os, isNavigationPlugin as ls, isEventConsumerPlugin as cs, needsInitialization as us, isApiIdentityPlugin as ds, isMdxProviderPlugin as hs, hasHead as fs } from "./zudoku.plugins.js";
|
|
37
37
|
import { DropdownMenu as ms, DropdownMenuTrigger as gs, DropdownMenuContent as ps, DropdownMenuLabel as xs, DropdownMenuSeparator as ne, DropdownMenuSub as ys, DropdownMenuSubTrigger as vs, DropdownMenuPortal as bs, DropdownMenuSubContent as js, DropdownMenuItem as ws } from "./ui/DropdownMenu.js";
|
|
@@ -1108,7 +1108,7 @@ const nr = ({
|
|
|
1108
1108
|
]
|
|
1109
1109
|
}
|
|
1110
1110
|
);
|
|
1111
|
-
}, Ie = () => /* @__PURE__ */ r.jsx("main", { className: "col-span-full grid place-items-center", children: /* @__PURE__ */ r.jsx(Xe, {}) }), ir = ({ children: t }) => {
|
|
1111
|
+
}, Ie = () => /* @__PURE__ */ r.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ r.jsx(Xe, {}) }), ir = ({ children: t }) => {
|
|
1112
1112
|
const e = te(), { setActiveAnchor: s } = Jt(), { meta: n, authentication: a } = O();
|
|
1113
1113
|
es(), Vs();
|
|
1114
1114
|
const o = se(e.pathname);
|