zudoku 0.0.0-feat-bundled-types.1c7f1db → 0.0.0-feat-bundled-types.71f1034

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 (58) hide show
  1. package/dist/config/index.d.ts +4 -0
  2. package/dist/config/index.js +2 -0
  3. package/dist/config/index.js.map +1 -0
  4. package/dist/config/validators/InputSidebarSchema.d.ts +5 -1
  5. package/dist/config/validators/InputSidebarSchema.js +18 -0
  6. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  7. package/dist/config/validators/SidebarSchema.d.ts +1 -1
  8. package/dist/config/validators/flat-config.d.ts +420 -0
  9. package/dist/config/validators/flat-config.js +2 -0
  10. package/dist/config/validators/flat-config.js.map +1 -0
  11. package/dist/config/validators/validate.d.ts +40 -40
  12. package/dist/config/validators/validate.js +13 -13
  13. package/dist/config/validators/validate.js.map +1 -1
  14. package/dist/lib/components/Bootstrap.d.ts +2 -2
  15. package/dist/lib/components/Bootstrap.js +0 -2
  16. package/dist/lib/components/Bootstrap.js.map +1 -1
  17. package/dist/lib/components/index.d.ts +1 -1
  18. package/dist/lib/components/navigation/SidebarItem.js +2 -3
  19. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  20. package/dist/vite/build.js +1 -4
  21. package/dist/vite/build.js.map +1 -1
  22. package/lib/{Markdown-Cm4kj26S.js → Markdown-COBDvr4G.js} +307 -304
  23. package/lib/{Markdown-Cm4kj26S.js.map → Markdown-COBDvr4G.js.map} +1 -1
  24. package/lib/{MdxPage-fDGQtB5w.js → MdxPage-Dwb723gn.js} +3 -3
  25. package/lib/{MdxPage-fDGQtB5w.js.map → MdxPage-Dwb723gn.js.map} +1 -1
  26. package/lib/{OasProvider-CFBvfR3r.js → OasProvider-DZq25XRY.js} +2 -2
  27. package/lib/{OasProvider-CFBvfR3r.js.map → OasProvider-DZq25XRY.js.map} +1 -1
  28. package/lib/{OperationList-Xs4KWmsh.js → OperationList-ClZqCrZL.js} +5 -5
  29. package/lib/{OperationList-Xs4KWmsh.js.map → OperationList-ClZqCrZL.js.map} +1 -1
  30. package/lib/{SchemaList-BWaNlmUJ.js → SchemaList-CFiH9XCD.js} +5 -5
  31. package/lib/{SchemaList-BWaNlmUJ.js.map → SchemaList-CFiH9XCD.js.map} +1 -1
  32. package/lib/{SchemaView-DdKJt2ln.js → SchemaView-DcAEVFMX.js} +3 -3
  33. package/lib/{SchemaView-DdKJt2ln.js.map → SchemaView-DcAEVFMX.js.map} +1 -1
  34. package/lib/{Slot-B99cbD-q.js → Slot-CX5MJIIl.js} +3 -3
  35. package/lib/{Slot-B99cbD-q.js.map → Slot-CX5MJIIl.js.map} +1 -1
  36. package/lib/{SyntaxHighlight-Cz6Me7-F.js → SyntaxHighlight-VHPtvkm2.js} +1291 -1265
  37. package/lib/SyntaxHighlight-VHPtvkm2.js.map +1 -0
  38. package/lib/{Toc-Qe7A4uj_.js → Toc-CpVWtbJv.js} +2 -2
  39. package/lib/{Toc-Qe7A4uj_.js.map → Toc-CpVWtbJv.js.map} +1 -1
  40. package/lib/{circular-w5eL5J8a.js → circular-C8T14g4j.js} +2 -2
  41. package/lib/{circular-w5eL5J8a.js.map → circular-C8T14g4j.js.map} +1 -1
  42. package/lib/{createServer-p3yUA8Bu.js → createServer-BNdsMmPY.js} +2625 -2615
  43. package/lib/createServer-BNdsMmPY.js.map +1 -0
  44. package/lib/{index-yqBxBqxF.js → index-DxDMCSQ1.js} +7 -7
  45. package/lib/{index-yqBxBqxF.js.map → index-DxDMCSQ1.js.map} +1 -1
  46. package/lib/ui/SyntaxHighlight.js +1 -1
  47. package/lib/zudoku.components.js +2 -2
  48. package/lib/zudoku.components.js.map +1 -1
  49. package/lib/zudoku.plugin-api-catalog.js +1 -1
  50. package/lib/zudoku.plugin-api-keys.js +1 -1
  51. package/lib/zudoku.plugin-custom-pages.js +1 -1
  52. package/lib/zudoku.plugin-markdown.js +1 -1
  53. package/lib/zudoku.plugin-openapi.js +1 -1
  54. package/package.json +18 -14
  55. package/src/lib/components/Bootstrap.tsx +2 -4
  56. package/src/lib/components/navigation/SidebarItem.tsx +2 -1
  57. package/lib/SyntaxHighlight-Cz6Me7-F.js.map +0 -1
  58. package/lib/createServer-p3yUA8Bu.js.map +0 -1
@@ -4,7 +4,7 @@ import { d as b, m as j } from "./chunk-DQRVZFIR-BblmKnHy.js";
4
4
  import { u as x, d as y, j as m } from "./hook-k7PfUIsj.js";
5
5
  import { H as v } from "./index.esm-BFcSKCe-.js";
6
6
  import { Link as N } from "./zudoku.components.js";
7
- import { H as S, M as w } from "./Markdown-Cm4kj26S.js";
7
+ import { H as S, M as w } from "./Markdown-COBDvr4G.js";
8
8
  const H = ({
9
9
  items: r,
10
10
  filterCatalogItems: o = (n) => n,
@@ -1,6 +1,6 @@
1
1
  import { j as e } from "./jsx-runtime-C5mzlN2N.js";
2
2
  import { CheckIcon as _, XIcon as se, PencilLineIcon as ne, RotateCwIcon as ie, EyeOffIcon as re, EyeIcon as ae, CopyIcon as oe, TrashIcon as le, KeyRoundIcon as de } from "lucide-react";
3
- import { D as ce, S as F, R as ue } from "./Slot-B99cbD-q.js";
3
+ import { D as ce, S as F, R as ue } from "./Slot-CX5MJIIl.js";
4
4
  import { i as P } from "./invariant-DAFpPywt.js";
5
5
  import { O as he, L as Q } from "./chunk-DQRVZFIR-BblmKnHy.js";
6
6
  import { i as fe, k as pe, e as xe, d as me } from "./hook-k7PfUIsj.js";
@@ -1,6 +1,6 @@
1
1
  import { j as o } from "./jsx-runtime-C5mzlN2N.js";
2
2
  import a from "react";
3
- import { P as n } from "./Markdown-Cm4kj26S.js";
3
+ import { P as n } from "./Markdown-COBDvr4G.js";
4
4
  import { c } from "./cn-wvCW-ho6.js";
5
5
  import { u as p } from "./useExposedProps-BZQkZneR.js";
6
6
  const u = ({
@@ -50,7 +50,7 @@ const m = (a) => ({
50
50
  const c = {
51
51
  path: e,
52
52
  lazy: async () => {
53
- const { MdxPage: u } = await import("./MdxPage-fDGQtB5w.js"), { default: h, ...p } = await i();
53
+ const { MdxPage: u } = await import("./MdxPage-Dwb723gn.js"), { default: h, ...p } = await i();
54
54
  return {
55
55
  element: /* @__PURE__ */ f.jsx(
56
56
  u,
@@ -3,7 +3,7 @@ import "lucide-react";
3
3
  import "./chunk-DQRVZFIR-BblmKnHy.js";
4
4
  import "./hook-k7PfUIsj.js";
5
5
  import "./ui/Button.js";
6
- import { F as a, U as s, H as n } from "./index-yqBxBqxF.js";
6
+ import { F as a, U as s, H as n } from "./index-DxDMCSQ1.js";
7
7
  export {
8
8
  a as GetSidebarOperationsQuery,
9
9
  s as UNTAGGED_PATH,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zudoku",
3
- "version": "0.0.0-feat-bundled-types.1c7f1db",
3
+ "version": "0.0.0-feat-bundled-types.71f1034",
4
4
  "type": "module",
5
5
  "homepage": "https://zudoku.dev",
6
6
  "repository": {
@@ -28,6 +28,10 @@
28
28
  "import": "./dist/index.js",
29
29
  "types": "./dist/index.d.ts"
30
30
  },
31
+ "./config": {
32
+ "import": "./dist/config/index.js",
33
+ "types": "./dist/config/index.d.ts"
34
+ },
31
35
  "./ui/*": {
32
36
  "import": "./lib/ui/*.js",
33
37
  "types": "./dist/lib/ui/*.d.ts"
@@ -160,10 +164,10 @@
160
164
  "@radix-ui/react-visually-hidden": "1.2.3",
161
165
  "@scalar/openapi-parser": "0.10.17",
162
166
  "@sentry/node": "9.12.0",
163
- "@shikijs/langs": "3.4.2",
164
- "@shikijs/rehype": "3.4.2",
165
- "@shikijs/themes": "3.4.2",
166
- "@shikijs/transformers": "3.4.2",
167
+ "@shikijs/langs": "3.5.0",
168
+ "@shikijs/rehype": "3.5.0",
169
+ "@shikijs/themes": "3.5.0",
170
+ "@shikijs/transformers": "3.5.0",
167
171
  "@sindresorhus/slugify": "2.2.1",
168
172
  "@stefanprobst/rehype-extract-toc": "3.0.0",
169
173
  "@tailwindcss/typography": "0.5.16",
@@ -183,14 +187,14 @@
183
187
  "devlop": "^1.1.0",
184
188
  "dotenv": "16.5.0",
185
189
  "embla-carousel-react": "8.6.0",
186
- "estree-util-value-to-estree": "3.3.3",
190
+ "estree-util-value-to-estree": "3.4.0",
187
191
  "express": "5.1.0",
188
192
  "fast-equals": "5.2.2",
189
193
  "framer-motion": "^12.12.2",
190
- "glob": "11.0.1",
194
+ "glob": "11.0.2",
191
195
  "graphql": "16.11.0",
192
196
  "graphql-type-json": "0.3.2",
193
- "graphql-yoga": "5.13.3",
197
+ "graphql-yoga": "5.13.5",
194
198
  "gray-matter": "4.0.3",
195
199
  "hast-util-to-jsx-runtime": "^2.3.6",
196
200
  "hast-util-to-string": "3.0.1",
@@ -227,7 +231,7 @@
227
231
  "remark-rehype": "^11.1.2",
228
232
  "rollup": "4.41.1",
229
233
  "semver": "7.7.1",
230
- "shiki": "3.4.2",
234
+ "shiki": "3.5.0",
231
235
  "sitemap": "8.0.0",
232
236
  "spin-delay": "2.0.1",
233
237
  "strip-ansi": "7.1.0",
@@ -248,7 +252,6 @@
248
252
  "devDependencies": {
249
253
  "@graphql-codegen/cli": "5.0.6",
250
254
  "@graphql-codegen/client-preset": "4.8.0",
251
- "@microsoft/api-extractor": "7.52.8",
252
255
  "@testing-library/dom": "10.4.0",
253
256
  "@testing-library/jest-dom": "6.6.3",
254
257
  "@testing-library/react": "16.3.0",
@@ -265,15 +268,17 @@
265
268
  "@types/semver": "7.7.0",
266
269
  "@types/unist": "^3.0.3",
267
270
  "@types/yargs": "17.0.33",
268
- "@vitest/coverage-v8": "3.1.1",
271
+ "@vitest/coverage-v8": "3.2.1",
269
272
  "esbuild": "0.25.1",
270
273
  "happy-dom": "17.5.6",
271
274
  "mdast-util-mdx": "3.0.0",
272
275
  "react": "19.1.0",
273
276
  "react-dom": "19.1.0",
274
277
  "rollup-plugin-visualizer": "5.14.0",
278
+ "tsx": "4.19.4",
275
279
  "typescript": "5.8.3",
276
- "vitest": "3.1.4"
280
+ "vitest": "3.1.4",
281
+ "zod-to-ts": "1.2.0"
277
282
  },
278
283
  "peerDependencies": {
279
284
  "react": ">=19",
@@ -293,8 +298,7 @@
293
298
  "build:standalone:html": "cp ./src/app/standalone.html ./standalone/standalone.html && cp ./src/app/demo.html ./standalone/demo.html && cp ./src/app/demo-cdn.html ./standalone/index.html && cp standalone/zudoku.css standalone/style.css",
294
299
  "clean": "tsc --build --clean",
295
300
  "codegen": "graphql-codegen --config ./src/codegen.ts",
296
- "test": "vitest run",
297
- "extract-api": "node scripts/extract-api.js"
301
+ "test": "vitest run"
298
302
  },
299
303
  "module": "./dist/index.js",
300
304
  "types": "./dist/index.d.ts"
@@ -3,9 +3,7 @@ import {
3
3
  QueryClient,
4
4
  QueryClientProvider,
5
5
  } from "@tanstack/react-query";
6
- // `HelmetData` can't be a type import because otherwise API Extractor will fail
7
- // eslint-disable-next-line @typescript-eslint/consistent-type-imports
8
- import { HelmetData, HelmetProvider } from "@zudoku/react-helmet-async";
6
+ import { type HelmetData, HelmetProvider } from "@zudoku/react-helmet-async";
9
7
  import { StrictMode } from "react";
10
8
  import {
11
9
  type createBrowserRouter,
@@ -54,7 +52,7 @@ const BootstrapStatic = ({
54
52
  helmetContext,
55
53
  bypassProtection = false,
56
54
  }: {
57
- helmetContext: (typeof HelmetData)["context"];
55
+ helmetContext: HelmetData["context"];
58
56
  context: StaticHandlerContext;
59
57
  queryClient: QueryClient;
60
58
  router: ReturnType<typeof createStaticRouter>;
@@ -112,10 +112,10 @@ export const SidebarItem = ({
112
112
  {...{ [DATA_ANCHOR_ATTR]: item.href.split("#")[1] }}
113
113
  className={navigationListItem({
114
114
  isActive: item.href === [location.pathname, activeAnchor].join("#"),
115
- className: item.badge?.placement !== "start" && "justify-between",
116
115
  })}
117
116
  onClick={onRequestClose}
118
117
  >
118
+ {item.icon && <item.icon size={16} className="align-[-0.125em]" />}
119
119
  {item.badge ? (
120
120
  <>
121
121
  <TruncatedLabel label={item.label} />
@@ -133,6 +133,7 @@ export const SidebarItem = ({
133
133
  rel="noopener noreferrer"
134
134
  onClick={onRequestClose}
135
135
  >
136
+ {item.icon && <item.icon size={16} className="align-[-0.125em]" />}
136
137
  <span className="whitespace-normal">{item.label}</span>
137
138
  {/* This prevents that the icon would be positioned in its own line if the text fills a line entirely */}
138
139
  <span className="whitespace-nowrap">