zudoku 0.21.9 → 0.21.11
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/client.d.ts +7 -0
- package/dist/cli/cli.js +0 -2
- package/dist/cli/cli.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +3 -3
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +3 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/vite/build.js +4 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +5 -1
- package/dist/vite/config.js +26 -15
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +4 -1
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.js +5 -3
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-config.js +20 -0
- package/dist/vite/plugin-config.js.map +1 -1
- package/lib/{Markdown-BG8gTFF9.js → Markdown-CdkU5HcM.js} +3 -3
- package/lib/{Markdown-BG8gTFF9.js.map → Markdown-CdkU5HcM.js.map} +1 -1
- package/lib/{MdxPage-C9HUjGAe.js → MdxPage-ChziqNPp.js} +2 -2
- package/lib/{MdxPage-C9HUjGAe.js.map → MdxPage-ChziqNPp.js.map} +1 -1
- package/lib/{OperationList-JQJ5m-tq.js → OperationList-CQKkyrZH.js} +23 -20
- package/lib/{OperationList-JQJ5m-tq.js.map → OperationList-CQKkyrZH.js.map} +1 -1
- package/lib/{SlotletProvider-B791v6_c.js → SlotletProvider-D77pO-fA.js} +2 -2
- package/lib/{SlotletProvider-B791v6_c.js.map → SlotletProvider-D77pO-fA.js.map} +1 -1
- package/lib/{index-BVYc-SPd.js → index-DjB6H4GT.js} +2 -2
- package/lib/{index-BVYc-SPd.js.map → index-DjB6H4GT.js.map} +1 -1
- package/lib/zudoku.components.js +2 -2
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +2 -3
- package/src/lib/components/Heading.tsx +13 -13
- package/src/lib/plugins/openapi/OperationList.tsx +2 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -16,7 +16,7 @@ var J = (e, t, r, s) => ({
|
|
|
16
16
|
import { a as He, H as me } from "./index.esm-Bm8pj-bc.js";
|
|
17
17
|
import { d as jt, R as wt, N as ae, u as St, L as ge } from "./index-Yn8c3UWE.js";
|
|
18
18
|
import { u as Nt } from "./state-tsXBLONe.js";
|
|
19
|
-
import { E as Ue, S as O, a as Et, R as Ct } from "./SlotletProvider-
|
|
19
|
+
import { E as Ue, S as O, a as Et, R as Ct } from "./SlotletProvider-D77pO-fA.js";
|
|
20
20
|
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
21
21
|
import { Button as Pt } from "./ui/Button.js";
|
|
22
22
|
import { Callout as kt } from "./ui/Callout.js";
|
|
@@ -32,7 +32,7 @@ import { C as je } from "./ClientOnly-E7hGysn1.js";
|
|
|
32
32
|
import { ChevronRightIcon as Xt, ExternalLinkIcon as Jt, CircleXIcon as Gt, SearchIcon as er, MoonStarIcon as tr, SunIcon as rr, MenuIcon as ar, PanelLeftIcon as sr } from "lucide-react";
|
|
33
33
|
import { Drawer as et, DrawerTrigger as tt, DrawerContent as rt, DrawerTitle as at } from "./ui/Drawer.js";
|
|
34
34
|
import { c as R } from "./cn-BmFQLtkS.js";
|
|
35
|
-
import { u as we, a as nr, V as ir } from "./Markdown-
|
|
35
|
+
import { u as we, a as nr, V as ir } from "./Markdown-CdkU5HcM.js";
|
|
36
36
|
import { c as or, a as lr } from "./index-BuAyrJe3.js";
|
|
37
37
|
import { A as cr, M as ur, u as dr } from "./AnchorLink-BR0MvI7n.js";
|
|
38
38
|
import * as oe from "@radix-ui/react-collapsible";
|
|
@@ -2,7 +2,7 @@ import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
|
2
2
|
import { s as n } from "./index-LNp6rxyU.js";
|
|
3
3
|
import { Fragment as x } from "react";
|
|
4
4
|
import { Head as f, Link as h } from "./zudoku.components.js";
|
|
5
|
-
import { M as u } from "./Markdown-
|
|
5
|
+
import { M as u } from "./Markdown-CdkU5HcM.js";
|
|
6
6
|
import { u as j } from "./useExposedProps-CTPtylCV.js";
|
|
7
7
|
const b = ({
|
|
8
8
|
items: l,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
2
2
|
import { RotateCwIcon as g, TrashIcon as f, EyeOffIcon as j, EyeIcon as v, CheckIcon as w, CopyIcon as b, FileKey2Icon as K } from "lucide-react";
|
|
3
|
-
import { D as k, S as m, R as N } from "./SlotletProvider-
|
|
3
|
+
import { D as k, S as m, R as N } from "./SlotletProvider-D77pO-fA.js";
|
|
4
4
|
import { i as c } from "./invariant-Caa8-XvF.js";
|
|
5
5
|
import { u as d, S as I, a as S, b as A, c as C, d as E, e as x } from "./Select-O9ZM3ZgX.js";
|
|
6
6
|
import { a as P } from "./index.esm-C5mr_sKO.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as o } from "./jsx-runtime-B6kdoens.js";
|
|
2
2
|
import a from "react";
|
|
3
|
-
import { P as n } from "./Markdown-
|
|
3
|
+
import { P as n } from "./Markdown-CdkU5HcM.js";
|
|
4
4
|
import { c } from "./cn-BmFQLtkS.js";
|
|
5
5
|
import { u as p } from "./useExposedProps-CTPtylCV.js";
|
|
6
6
|
const u = ({
|
|
@@ -74,7 +74,7 @@ const C = (n) => ({
|
|
|
74
74
|
const h = {
|
|
75
75
|
path: r,
|
|
76
76
|
lazy: async () => {
|
|
77
|
-
const { MdxPage: l } = await import("./MdxPage-
|
|
77
|
+
const { MdxPage: l } = await import("./MdxPage-ChziqNPp.js"), { default: p, ...g } = await a();
|
|
78
78
|
return {
|
|
79
79
|
element: /* @__PURE__ */ P.jsx(
|
|
80
80
|
l,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zudoku",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://zudoku.dev",
|
|
6
6
|
"repository": {
|
|
@@ -160,7 +160,6 @@
|
|
|
160
160
|
"class-variance-authority": "0.7.0",
|
|
161
161
|
"clsx": "2.1.1",
|
|
162
162
|
"cmdk": "1.0.4",
|
|
163
|
-
"dotenv": "16.4.5",
|
|
164
163
|
"embla-carousel-react": "8.3.1",
|
|
165
164
|
"estree-util-value-to-estree": "3.2.1",
|
|
166
165
|
"express": "4.21.1",
|
|
@@ -203,7 +202,6 @@
|
|
|
203
202
|
"strip-ansi": "7.1.0",
|
|
204
203
|
"tailwind-merge": "2.5.4",
|
|
205
204
|
"tailwindcss": "3.4.13",
|
|
206
|
-
"tsx": "^4.19.2",
|
|
207
205
|
"ulidx": "2.4.1",
|
|
208
206
|
"unist-util-visit": "5.0.0",
|
|
209
207
|
"urql": "4.1.0",
|
|
@@ -235,6 +233,7 @@
|
|
|
235
233
|
"react": "18.3.1",
|
|
236
234
|
"react-dom": "18.3.1",
|
|
237
235
|
"rollup-plugin-visualizer": "5.12.0",
|
|
236
|
+
"tsx": "^4.19.2",
|
|
238
237
|
"typescript": "5.7.2",
|
|
239
238
|
"vitest": "2.1.8"
|
|
240
239
|
},
|
|
@@ -38,23 +38,22 @@ const getComponent = (level: number) => {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
41
|
+
export type HeadingProps = React.ButtonHTMLAttributes<HTMLButtonElement> &
|
|
42
|
+
VariantProps<typeof heading> & {
|
|
43
|
+
children: ReactNode;
|
|
44
|
+
className?: string;
|
|
45
|
+
id?: string;
|
|
46
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
47
|
+
registerSidebarAnchor?: boolean;
|
|
48
|
+
};
|
|
50
49
|
|
|
51
|
-
export const Heading
|
|
50
|
+
export const Heading = ({
|
|
52
51
|
level,
|
|
53
52
|
children,
|
|
54
53
|
id,
|
|
55
54
|
className,
|
|
56
55
|
registerSidebarAnchor,
|
|
57
|
-
}) => {
|
|
56
|
+
}: HeadingProps) => {
|
|
58
57
|
const Component = getComponent(level ?? 1);
|
|
59
58
|
const { ref } = useRegisterAnchorElement();
|
|
60
59
|
|
|
@@ -67,10 +66,11 @@ export const Heading: React.FC<HeadingProps> = ({
|
|
|
67
66
|
{id && (
|
|
68
67
|
<a
|
|
69
68
|
href={`#${id}`}
|
|
70
|
-
className="no-underline absolute text-primary -left-[0.8em] pr-2.5 opacity-0 group-hover:opacity-50 hover:!opacity-100 transition-opacity duration-200"
|
|
69
|
+
className="before:content-['#'] no-underline absolute text-primary -left-[0.8em] pr-2.5 opacity-0 group-hover:opacity-50 hover:!opacity-100 transition-opacity duration-200"
|
|
71
70
|
aria-label={`Link to ${id}`}
|
|
72
71
|
>
|
|
73
|
-
|
|
72
|
+
{/* Zero width space */}
|
|
73
|
+
​
|
|
74
74
|
</a>
|
|
75
75
|
)}
|
|
76
76
|
{children}
|
|
@@ -180,7 +180,8 @@ export const OperationList = () => {
|
|
|
180
180
|
{result.data.schema.tags
|
|
181
181
|
.filter((tag) => tag.operations.length > 0)
|
|
182
182
|
.map((tag) => (
|
|
183
|
-
|
|
183
|
+
// px, -mx is so that `content-visibility` doesn't cut off overflown heading anchor links '#'
|
|
184
|
+
<div key={tag.name} className="px-6 -mx-6 [content-visibility:auto]">
|
|
184
185
|
{tag.name && <CategoryHeading>{tag.name}</CategoryHeading>}
|
|
185
186
|
{tag.description && (
|
|
186
187
|
<Markdown
|