zudoku 0.4.2-dev.3 → 0.4.2-dev.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.
Files changed (37) hide show
  1. package/dist/lib/components/Header.js +1 -3
  2. package/dist/lib/components/Header.js.map +1 -1
  3. package/dist/lib/components/Layout.js +3 -1
  4. package/dist/lib/components/Layout.js.map +1 -1
  5. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  6. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  7. package/dist/lib/plugins/markdown/Toc.js +1 -1
  8. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  9. package/dist/lib/plugins/openapi/index.js +1 -1
  10. package/dist/lib/plugins/openapi/index.js.map +1 -1
  11. package/dist/lib/plugins/openapi/playground/Playground.js +9 -3
  12. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  13. package/dist/lib/plugins/openapi/playground/ResponseTab.js +3 -1
  14. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -1
  15. package/lib/{MdxPage-AzVbIhda.js → MdxPage-ZBoR_Zce.js} +2 -2
  16. package/lib/MdxPage-ZBoR_Zce.js.map +1 -0
  17. package/lib/{OperationList-CCwy1nfs.js → OperationList-pmOTKxgd.js} +2 -2
  18. package/lib/{OperationList-CCwy1nfs.js.map → OperationList-pmOTKxgd.js.map} +1 -1
  19. package/lib/{Route-bSTdQP2q.js → Route-CS3AkrVN.js} +2 -2
  20. package/lib/{Route-bSTdQP2q.js.map → Route-CS3AkrVN.js.map} +1 -1
  21. package/lib/{index-Sapny0Di.js → index-DGUP_dsJ.js} +594 -588
  22. package/lib/index-DGUP_dsJ.js.map +1 -0
  23. package/lib/zudoku.components.js +58 -60
  24. package/lib/zudoku.components.js.map +1 -1
  25. package/lib/zudoku.plugin-markdown.js +1 -1
  26. package/lib/zudoku.plugin-openapi.js +1 -1
  27. package/package.json +1 -1
  28. package/src/app/main.css +7 -4
  29. package/src/lib/components/Header.tsx +1 -2
  30. package/src/lib/components/Layout.tsx +5 -4
  31. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  32. package/src/lib/plugins/markdown/Toc.tsx +1 -1
  33. package/src/lib/plugins/openapi/index.tsx +1 -1
  34. package/src/lib/plugins/openapi/playground/Playground.tsx +10 -4
  35. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +2 -1
  36. package/lib/MdxPage-AzVbIhda.js.map +0 -1
  37. package/lib/index-Sapny0Di.js.map +0 -1
@@ -1890,64 +1890,61 @@ const gs = () => {
1890
1890
  )) }) })
1891
1891
  ] }, e.label) : /* @__PURE__ */ a.jsx(Ge, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(Vn, { children: e.label }, e.label) }), Jn = Lt(function() {
1892
1892
  const t = ft(), [n, r] = Fr(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = ft(), u = Ne(), { page: l, plugins: v } = u, p = v.filter((h) => Ha(h)).flatMap((h) => h.getProfileMenuItems(u)).map((h) => /* @__PURE__ */ a.jsx(Wn, { item: h }, h.label)), d = n ? ma : va;
1893
- return (
1894
- // margin-left is to prevent layout jumping when scrollbar appears/disappears
1895
- /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 z-10 bg-background/80 backdrop-blur left-0 right-0 2xl:ml-[--scrollbar-width]", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1896
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
1897
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Ge, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1898
- (l == null ? void 0 : l.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1899
- /* @__PURE__ */ a.jsx(
1900
- "img",
1901
- {
1902
- src: l.logo.src.light,
1903
- alt: l.logo.alt ?? l.pageTitle,
1904
- style: { width: l.logo.width },
1905
- className: b("h-10", n && "hidden"),
1906
- loading: "lazy"
1907
- }
1908
- ),
1909
- /* @__PURE__ */ a.jsx(
1910
- "img",
1911
- {
1912
- src: l.logo.src.dark,
1913
- alt: l.logo.alt ?? l.pageTitle,
1914
- style: { width: l.logo.width },
1915
- className: b("h-10", !n && "hidden"),
1916
- loading: "lazy"
1917
- }
1918
- )
1893
+ return /* @__PURE__ */ a.jsx("header", { className: "sticky top-0 z-10 bg-background/80 backdrop-blur w-full", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1894
+ /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
1895
+ /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Ge, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1896
+ (l == null ? void 0 : l.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1897
+ /* @__PURE__ */ a.jsx(
1898
+ "img",
1899
+ {
1900
+ src: l.logo.src.light,
1901
+ alt: l.logo.alt ?? l.pageTitle,
1902
+ style: { width: l.logo.width },
1903
+ className: b("h-10", n && "hidden"),
1904
+ loading: "lazy"
1905
+ }
1906
+ ),
1907
+ /* @__PURE__ */ a.jsx(
1908
+ "img",
1909
+ {
1910
+ src: l.logo.src.dark,
1911
+ alt: l.logo.alt ?? l.pageTitle,
1912
+ style: { width: l.logo.width },
1913
+ className: b("h-10", !n && "hidden"),
1914
+ loading: "lazy"
1915
+ }
1916
+ )
1917
+ ] }),
1918
+ /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
1919
+ ] }) }) }),
1920
+ /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1921
+ /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(gs, {}) }),
1922
+ /* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1923
+ /* @__PURE__ */ a.jsx(se, { name: "head-navigation-start" }),
1924
+ i && !o ? /* @__PURE__ */ a.jsx($e, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : p.length > 0 && /* @__PURE__ */ a.jsxs(ls, { modal: !1, children: [
1925
+ /* @__PURE__ */ a.jsx(ds, { asChild: !0, children: /* @__PURE__ */ a.jsx($e, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
1926
+ /* @__PURE__ */ a.jsxs(zn, { className: "w-56", children: [
1927
+ /* @__PURE__ */ a.jsx(Yn, { children: "My Account" }),
1928
+ /* @__PURE__ */ a.jsx(Xn, {}),
1929
+ p
1930
+ ] })
1919
1931
  ] }),
1920
- /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
1921
- ] }) }) }),
1922
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1923
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(gs, {}) }),
1924
- /* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1925
- /* @__PURE__ */ a.jsx(se, { name: "head-navigation-start" }),
1926
- i && !o ? /* @__PURE__ */ a.jsx($e, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : p.length > 0 && /* @__PURE__ */ a.jsxs(ls, { modal: !1, children: [
1927
- /* @__PURE__ */ a.jsx(ds, { asChild: !0, children: /* @__PURE__ */ a.jsx($e, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
1928
- /* @__PURE__ */ a.jsxs(zn, { className: "w-56", children: [
1929
- /* @__PURE__ */ a.jsx(Yn, { children: "My Account" }),
1930
- /* @__PURE__ */ a.jsx(Xn, {}),
1931
- p
1932
- ] })
1933
- ] }),
1934
- /* @__PURE__ */ a.jsx(
1935
- "button",
1936
- {
1937
- type: "button",
1938
- "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
1939
- className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
1940
- onClick: r,
1941
- children: /* @__PURE__ */ a.jsx(d, { size: 18 })
1942
- }
1943
- ),
1944
- /* @__PURE__ */ a.jsx(se, { name: "head-navigation-end" })
1945
- ] })
1932
+ /* @__PURE__ */ a.jsx(
1933
+ "button",
1934
+ {
1935
+ type: "button",
1936
+ "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
1937
+ className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
1938
+ onClick: r,
1939
+ children: /* @__PURE__ */ a.jsx(d, { size: 18 })
1940
+ }
1941
+ ),
1942
+ /* @__PURE__ */ a.jsx(se, { name: "head-navigation-end" })
1946
1943
  ] })
1947
- ] }),
1948
- /* @__PURE__ */ a.jsx(vs, {})
1949
- ] }) })
1950
- );
1944
+ ] })
1945
+ ] }),
1946
+ /* @__PURE__ */ a.jsx(vs, {})
1947
+ ] }) });
1951
1948
  }), Zn = {
1952
1949
  Header: Jn
1953
1950
  }, xs = Ot(Zn), ys = xs.Provider, ws = (e) => {
@@ -2202,7 +2199,7 @@ const Ss = ({
2202
2199
  className: b(
2203
2200
  "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
2204
2201
  "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
2205
- "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
2202
+ "w-[--side-nav-width] h-full scroll-pt-2 gap-2",
2206
2203
  t
2207
2204
  ),
2208
2205
  ref: r,
@@ -2239,18 +2236,19 @@ const Es = () => {
2239
2236
  (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
2240
2237
  ] }),
2241
2238
  /* @__PURE__ */ a.jsx(Jn, {}),
2242
- /* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
2239
+ /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsxs(
2243
2240
  Ft,
2244
2241
  {
2245
- fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(ha, {}) }),
2242
+ fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(ha, {}) }),
2246
2243
  children: [
2247
2244
  /* @__PURE__ */ a.jsx(Es, {}),
2248
2245
  /* @__PURE__ */ a.jsxs(
2249
2246
  "main",
2250
2247
  {
2251
2248
  className: b(
2252
- "dark:border-white/10 translate-x-0 h-full",
2249
+ "dark:border-white/10 translate-x-0",
2253
2250
  "lg:overflow-visible",
2251
+ // This works in tandem with the `SidebarWrapper` component
2254
2252
  "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
2255
2253
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
2256
2254
  ),