zudoku 0.11.0 → 0.12.1

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.
@@ -6,7 +6,7 @@ import { c as Ce, g as Ie } from "./_commonjsHelpers-BkfeUUK-.js";
6
6
  import { A as je } from "./AuthenticationPlugin-Bx9FK124.js";
7
7
  import { useState as Je, useRef as Oe, useEffect as Ne } from "react";
8
8
  import { D as ze } from "./DeveloperHint-YeWHKvyr.js";
9
- import { E as De } from "./ErrorPage-Dri5_2lr.js";
9
+ import { E as De } from "./ErrorPage-CsZAN_za.js";
10
10
  import { S as Ke } from "./Spinner-3cQDBVGr.js";
11
11
  import { S as We } from "./Markdown-DapSf3wG.js";
12
12
  import { a as He } from "./index-BG0g4WW0.js";
@@ -1,11 +1,11 @@
1
1
  import "./jsx-runtime-B6kdoens.js";
2
- import { o as u } from "./index-DyJyULzS.js";
2
+ import { o as u } from "./index-BlJ2rj99.js";
3
3
  import "./urql-YhcsXYy8.js";
4
4
  import "./ZudokuContext-cr-pTRY1.js";
5
5
  import "lucide-react";
6
6
  import "zudoku/openapi-worker";
7
7
  import "./index-Dolisrci.js";
8
- import "./ErrorPage-Dri5_2lr.js";
8
+ import "./ErrorPage-CsZAN_za.js";
9
9
  import "./Markdown-DapSf3wG.js";
10
10
  import "./joinPath-B7kNnUX4.js";
11
11
  import "./router-D2p7Olpn.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zudoku",
3
- "version": "0.11.0",
3
+ "version": "0.12.1",
4
4
  "type": "module",
5
5
  "homepage": "https://zudoku.dev",
6
6
  "repository": {
@@ -1,5 +1,4 @@
1
1
  import type { ReactNode } from "react";
2
- import { Link } from "react-router-dom";
3
2
  import { CategoryHeading } from "./CategoryHeading.js";
4
3
  import { Heading } from "./Heading.js";
5
4
  import { ProseClasses } from "./Markdown.js";
@@ -22,7 +21,6 @@ export const ErrorPage = ({
22
21
  </Heading>
23
22
  )}
24
23
  <p>{message}</p>
25
- <Link to="/">Go back home</Link>
26
24
  </div>
27
25
  );
28
26
  };
@@ -330,7 +330,7 @@ export const Playground = ({
330
330
  </TabsContent>
331
331
  </Tabs>
332
332
  </div>
333
- <div className="p-8 bg-muted/70">
333
+ <div className="min-w-0 p-8 bg-muted/70">
334
334
  {queryMutation.error ? (
335
335
  <div className="flex flex-col gap-2">
336
336
  {formState.pathParams.some((p) => p.value === "") && (
@@ -54,7 +54,6 @@ export const ResponseTab = ({
54
54
  view === "raw" ? (jsonContent ? "plain" : detectedLanguage) : "json"
55
55
  }
56
56
  noBackground
57
- showLanguageIndicator
58
57
  // playground dialog has h-5/6 ≈ 83.333vh
59
58
  className="overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]"
60
59
  code={view === "raw" ? body : beautifiedBody}
@@ -1,18 +0,0 @@
1
- import { j as r } from "./jsx-runtime-B6kdoens.js";
2
- import { L as a } from "./index-BG0g4WW0.js";
3
- import { C as n } from "./CategoryHeading-ovR-zHRq.js";
4
- import { P as i, H as t } from "./Markdown-DapSf3wG.js";
5
- const p = ({
6
- title: e = "An error occurred",
7
- message: o,
8
- category: s
9
- }) => /* @__PURE__ */ r.jsxs("div", { className: i + " h-full pt-[--padding-content-top]", children: [
10
- s && /* @__PURE__ */ r.jsx(n, { children: s }),
11
- e && /* @__PURE__ */ r.jsx(t, { level: 1, className: "flex gap-3.5 items-center", children: e }),
12
- /* @__PURE__ */ r.jsx("p", { children: o }),
13
- /* @__PURE__ */ r.jsx(a, { to: "/", children: "Go back home" })
14
- ] });
15
- export {
16
- p as E
17
- };
18
- //# sourceMappingURL=ErrorPage-Dri5_2lr.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorPage-Dri5_2lr.js","sources":["../src/lib/components/ErrorPage.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { CategoryHeading } from \"./CategoryHeading.js\";\nimport { Heading } from \"./Heading.js\";\nimport { ProseClasses } from \"./Markdown.js\";\n\nexport const ErrorPage = ({\n title = \"An error occurred\",\n message,\n category,\n}: {\n title?: ReactNode;\n message?: ReactNode;\n category?: ReactNode;\n}) => {\n return (\n <div className={ProseClasses + \" h-full pt-[--padding-content-top]\"}>\n {category && <CategoryHeading>{category}</CategoryHeading>}\n {title && (\n <Heading level={1} className=\"flex gap-3.5 items-center\">\n {title}\n </Heading>\n )}\n <p>{message}</p>\n <Link to=\"/\">Go back home</Link>\n </div>\n );\n};\n"],"names":["ErrorPage","title","message","category","jsxs","ProseClasses","jsx","CategoryHeading","Heading","Link"],"mappings":";;;;AAMO,MAAMA,IAAY,CAAC;AAAA,EACxB,OAAAC,IAAQ;AAAA,EACR,SAAAC;AAAA,EACA,UAAAC;AACF,MAMKC,gBAAAA,EAAAA,KAAA,OAAA,EAAI,WAAWC,IAAe,sCAC5B,UAAA;AAAA,EAAYF,KAAAG,gBAAAA,EAAAA,IAACC,KAAiB,UAASJ,EAAA,CAAA;AAAA,EACvCF,KACEK,gBAAAA,EAAAA,IAAAE,GAAA,EAAQ,OAAO,GAAG,WAAU,6BAC1B,UACHP,GAAA;AAAA,EAEFK,gBAAAA,EAAAA,IAAC,OAAG,UAAQJ,EAAA,CAAA;AAAA,EACXI,gBAAAA,EAAA,IAAAG,GAAA,EAAK,IAAG,KAAI,UAAY,gBAAA;AAC3B,EAAA,CAAA;"}