zudoku 0.52.2 → 0.53.0

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 (64) hide show
  1. package/dist/app/demo.js +2 -2
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/main.js +4 -4
  4. package/dist/app/standalone.js +3 -3
  5. package/dist/app/standalone.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +2 -2
  7. package/dist/config/validators/validate.js +3 -3
  8. package/dist/config/validators/validate.js.map +1 -1
  9. package/dist/flat-config.d.ts +325 -0
  10. package/dist/lib/components/Banner.js +1 -1
  11. package/dist/lib/components/Banner.js.map +1 -1
  12. package/dist/lib/components/Footer.js +1 -1
  13. package/dist/lib/components/Footer.js.map +1 -1
  14. package/dist/lib/components/Header.js +10 -10
  15. package/dist/lib/components/Header.js.map +1 -1
  16. package/dist/lib/components/Main.js +1 -1
  17. package/dist/lib/components/MobileTopNavigation.js +1 -1
  18. package/dist/lib/components/navigation/NavigationWrapper.js +1 -1
  19. package/dist/lib/core/ZudokuContext.d.ts +4 -4
  20. package/dist/lib/core/ZudokuContext.js +2 -2
  21. package/dist/vite/build.js +1 -1
  22. package/dist/vite/dev-server.js +1 -1
  23. package/lib/{MdxPage-Glqk-5sb.js → MdxPage-swXPJ0gf.js} +2 -2
  24. package/lib/{MdxPage-Glqk-5sb.js.map → MdxPage-swXPJ0gf.js.map} +1 -1
  25. package/lib/{OasProvider-Cks7Ky_-.js → OasProvider-CDAM3TB1.js} +2 -2
  26. package/lib/{OasProvider-Cks7Ky_-.js.map → OasProvider-CDAM3TB1.js.map} +1 -1
  27. package/lib/{OperationList-BP3gUFCx.js → OperationList-C9Hb9ql8.js} +5 -5
  28. package/lib/{OperationList-BP3gUFCx.js.map → OperationList-C9Hb9ql8.js.map} +1 -1
  29. package/lib/{Pagination-D2xTtsFG.js → Pagination-VGlgeCmS.js} +2 -2
  30. package/lib/{Pagination-D2xTtsFG.js.map → Pagination-VGlgeCmS.js.map} +1 -1
  31. package/lib/{SchemaList-BQOuyEO7.js → SchemaList-BAbh1BXO.js} +3 -3
  32. package/lib/{SchemaList-BQOuyEO7.js.map → SchemaList-BAbh1BXO.js.map} +1 -1
  33. package/lib/{SchemaView-C6fqo8Th.js → SchemaView-C2Io712T.js} +3 -3
  34. package/lib/{SchemaView-C6fqo8Th.js.map → SchemaView-C2Io712T.js.map} +1 -1
  35. package/lib/{SignUp-M9Jz4SXJ.js → SignUp-5RUdVhnq.js} +2 -2
  36. package/lib/{SignUp-M9Jz4SXJ.js.map → SignUp-5RUdVhnq.js.map} +1 -1
  37. package/lib/{circular-BNp-4wdn.js → circular-B42RaanD.js} +2 -2
  38. package/lib/{circular-BNp-4wdn.js.map → circular-B42RaanD.js.map} +1 -1
  39. package/lib/{createServer-D7OPYwXA.js → createServer-BKFsRuuk.js} +3 -3
  40. package/lib/{createServer-D7OPYwXA.js.map → createServer-BKFsRuuk.js.map} +1 -1
  41. package/lib/{errors-C473PjdR.js → errors-CF2X_x5o.js} +3 -3
  42. package/lib/{errors-C473PjdR.js.map → errors-CF2X_x5o.js.map} +1 -1
  43. package/lib/{index-BLRAtPoq.js → index-B6Re5_cx.js} +7 -7
  44. package/lib/{index-BLRAtPoq.js.map → index-B6Re5_cx.js.map} +1 -1
  45. package/lib/{index-Chtnw-sn.js → index-CLy1XyH0.js} +13 -13
  46. package/lib/{index-Chtnw-sn.js.map → index-CLy1XyH0.js.map} +1 -1
  47. package/lib/zudoku.auth-azureb2c.js +1 -1
  48. package/lib/zudoku.auth-clerk.js +1 -1
  49. package/lib/zudoku.auth-openid.js +1 -1
  50. package/lib/zudoku.components.js +1 -1
  51. package/lib/zudoku.plugin-api-catalog.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 +1 -1
  55. package/src/app/demo.tsx +2 -2
  56. package/src/app/main.tsx +4 -4
  57. package/src/app/standalone.tsx +3 -3
  58. package/src/lib/components/Banner.tsx +1 -1
  59. package/src/lib/components/Footer.tsx +1 -1
  60. package/src/lib/components/Header.tsx +15 -17
  61. package/src/lib/components/Main.tsx +1 -1
  62. package/src/lib/components/MobileTopNavigation.tsx +2 -2
  63. package/src/lib/components/navigation/NavigationWrapper.tsx +1 -1
  64. package/src/lib/core/ZudokuContext.ts +5 -5
@@ -2546,7 +2546,7 @@ const nc = Ai({
2546
2546
  alt: e
2547
2547
  }
2548
2548
  ) : e, ic = (e) => /^https?:/.test(e), cc = () => {
2549
- const { page: e } = Yc(), t = e?.footer;
2549
+ const { site: e } = Yc(), t = e?.footer;
2550
2550
  return t ? /* @__PURE__ */ a.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ a.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
2551
2551
  /* @__PURE__ */ a.jsxs(
2552
2552
  "div",
@@ -2666,7 +2666,7 @@ const kt = {
2666
2666
  caution: "bg-orange-500",
2667
2667
  danger: "bg-rose-500"
2668
2668
  }, lc = () => {
2669
- const { page: e } = M(), [t, r] = G(!0);
2669
+ const { site: e } = M(), [t, r] = G(!0);
2670
2670
  if (!e?.banner || !t)
2671
2671
  return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
2672
2672
  const n = e.banner.color && e.banner.color in kt ? kt[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = n ? {} : { backgroundColor: e.banner.color };
@@ -3288,7 +3288,7 @@ const wr = ({ className: e }) => {
3288
3288
  return /* @__PURE__ */ a.jsxs(
3289
3289
  co,
3290
3290
  {
3291
- direction: t.page?.dir === "rtl" ? "left" : "right",
3291
+ direction: t.site?.dir === "rtl" ? "left" : "right",
3292
3292
  open: n,
3293
3293
  onOpenChange: (i) => o(i),
3294
3294
  children: [
@@ -3311,7 +3311,7 @@ const wr = ({ className: e }) => {
3311
3311
  s.map((i) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => o(!1), children: /* @__PURE__ */ a.jsx(kr, { ...i }) }) }, i.label))
3312
3312
  ] })
3313
3313
  ] }),
3314
- t.page?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(yr, { className: "grow-0 justify-center gap-1" })
3314
+ t.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(yr, { className: "grow-0 justify-center gap-1" })
3315
3315
  ] })
3316
3316
  }
3317
3317
  )
@@ -3328,7 +3328,7 @@ const wr = ({ className: e }) => {
3328
3328
  e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
3329
3329
  e.label
3330
3330
  ] }, e.label) }), zr = Wt(function() {
3331
- const t = ne(), { isAuthenticated: r, profile: n, isAuthEnabled: o } = ne(), s = M(), { page: i, plugins: u, options: p } = s, f = u.filter((l) => Hn(l)).flatMap((l) => l.getProfileMenuItems(s)).sort((l) => l.weight ?? 0), x = i?.logo ? /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : ee(p.basePath, i.logo.src.light) : void 0, m = i?.logo ? /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : ee(p.basePath, i.logo.src.dark) : void 0, h = "inset-shadow-[0_-1px_0_0_var(--border)]";
3331
+ const t = ne(), { isAuthenticated: r, profile: n, isAuthEnabled: o } = ne(), s = M(), { site: i, plugins: u, options: p } = s, f = u.filter((l) => Hn(l)).flatMap((l) => l.getProfileMenuItems(s)).sort((l) => l.weight ?? 0), x = i?.logo ? /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : ee(p.basePath, i.logo.src.light) : void 0, m = i?.logo ? /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : ee(p.basePath, i.logo.src.dark) : void 0, h = "inset-shadow-[0_-1px_0_0_var(--border)]";
3332
3332
  return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
3333
3333
  /* @__PURE__ */ a.jsx(lc, {}),
3334
3334
  /* @__PURE__ */ a.jsxs("div", { className: N(h, "relative"), children: [
@@ -3340,7 +3340,7 @@ const wr = ({ className: e }) => {
3340
3340
  "img",
3341
3341
  {
3342
3342
  src: x,
3343
- alt: i.logo.alt ?? i.pageTitle,
3343
+ alt: i.logo.alt ?? i.title,
3344
3344
  style: { width: i.logo.width },
3345
3345
  className: "max-h-(--top-header-height) dark:hidden",
3346
3346
  loading: "lazy"
@@ -3350,14 +3350,14 @@ const wr = ({ className: e }) => {
3350
3350
  "img",
3351
3351
  {
3352
3352
  src: m,
3353
- alt: i.logo.alt ?? i.pageTitle,
3353
+ alt: i.logo.alt ?? i.title,
3354
3354
  style: { width: i.logo.width },
3355
3355
  className: "max-h-(--top-header-height) hidden dark:block",
3356
3356
  loading: "lazy"
3357
3357
  }
3358
3358
  )
3359
3359
  ] }),
3360
- /* @__PURE__ */ a.jsx("span", { className: "font-semibold text-2xl", children: i?.pageTitle })
3360
+ /* @__PURE__ */ a.jsx("span", { className: "font-semibold text-2xl", children: i?.title })
3361
3361
  ] }) }) }),
3362
3362
  /* @__PURE__ */ a.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ a.jsx(wr, { className: "pointer-events-auto" }) }),
3363
3363
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-8", children: [
@@ -3489,7 +3489,7 @@ const Sr = ({
3489
3489
  children: e
3490
3490
  }
3491
3491
  ),
3492
- /* @__PURE__ */ a.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: r.page?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(yr, {}) })
3492
+ /* @__PURE__ */ a.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: r.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(yr, {}) })
3493
3493
  ] });
3494
3494
  };
3495
3495
  Sr.displayName = "NavigationWrapper";
@@ -3531,7 +3531,7 @@ const Cc = ({
3531
3531
  return /* @__PURE__ */ a.jsxs(
3532
3532
  Pr,
3533
3533
  {
3534
- direction: i.page?.dir === "rtl" ? "right" : "left",
3534
+ direction: i.site?.dir === "rtl" ? "right" : "left",
3535
3535
  open: t,
3536
3536
  onOpenChange: (u) => r(u),
3537
3537
  children: [
@@ -3783,7 +3783,7 @@ class Qc {
3783
3783
  plugins;
3784
3784
  navigation;
3785
3785
  meta;
3786
- page;
3786
+ site;
3787
3787
  authentication;
3788
3788
  queryClient;
3789
3789
  options;
@@ -3795,7 +3795,7 @@ class Qc {
3795
3795
  (o) => rt(o) ? o.getProtectedRoutes?.() ?? [] : []
3796
3796
  ) ?? []
3797
3797
  );
3798
- this.queryClient = r, this.options = { ...t, protectedRoutes: n }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(rt), this.authentication = this.plugins.find(Kn), this.meta = t.metadata, this.page = t.page, this.plugins.forEach((o) => {
3798
+ this.queryClient = r, this.options = { ...t, protectedRoutes: n }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(rt), this.authentication = this.plugins.find(Kn), this.meta = t.metadata, this.site = t.site, this.plugins.forEach((o) => {
3799
3799
  Wn(o) && Lc(o.events).forEach(([s, i]) => {
3800
3800
  this.emitter.on(s, i);
3801
3801
  });
@@ -3916,4 +3916,4 @@ export {
3916
3916
  Lc as o,
3917
3917
  Yc as u
3918
3918
  };
3919
- //# sourceMappingURL=index-Chtnw-sn.js.map
3919
+ //# sourceMappingURL=index-CLy1XyH0.js.map