zudoku 0.65.1 → 0.65.2

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.
@@ -95,7 +95,7 @@ export const Playground = ({ server, servers = [], url, method, headers = [], qu
95
95
  let body;
96
96
  switch (data.bodyMode) {
97
97
  case "file":
98
- body = data.file ?? undefined;
98
+ body = data.file || undefined;
99
99
  headers.delete("Content-Type");
100
100
  break;
101
101
  case "multipart": {
@@ -108,7 +108,7 @@ export const Playground = ({ server, servers = [], url, method, headers = [], qu
108
108
  break;
109
109
  }
110
110
  default:
111
- body = data.body ?? undefined;
111
+ body = data.body || undefined;
112
112
  break;
113
113
  }
114
114
  const request = new Request(createUrl(server ?? selectedServer, url, data), { method, headers, body });
@@ -1,7 +1,7 @@
1
1
  import { j as s } from "./jsx-runtime-BzflLqGi.js";
2
2
  import { useMemo as m } from "react";
3
3
  import { O as l } from "./chunk-PVWAREVJ-BMhpCH5D.js";
4
- import { d as j, O as c, G as O } from "./index-I4zC7Yht.js";
4
+ import { d as j, O as c, G as O } from "./index-C_-XS4lp.js";
5
5
  const d = (...r) => {
6
6
  const e = r.filter((t) => !!t).map((t) => t.replace(/(^\/+|\/+$)/g, "")).join("/").replace(/(^\/+|\/+$)/g, "");
7
7
  return e ? `/${e}` : "/";
@@ -33,4 +33,4 @@ const d = (...r) => {
33
33
  export {
34
34
  P as OasProvider
35
35
  };
36
- //# sourceMappingURL=OasProvider-BuBeRIHB.js.map
36
+ //# sourceMappingURL=OasProvider-D88vmZFt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OasProvider-BuBeRIHB.js","sources":["../src/lib/util/joinPath.tsx","../src/lib/plugins/openapi/OasProvider.tsx"],"sourcesContent":["/**\n * @deprecated Use `joinUrl` instead.\n */\nexport const joinPath = (\n ...parts: Array<string | null | undefined | boolean>\n) => {\n const cleanPath = parts\n .filter((part): part is string => Boolean(part))\n .map((part) => part.replace(/(^\\/+|\\/+$)/g, \"\")) // Strip leading and trailing slashes\n .join(\"/\")\n .replace(/(^\\/+|\\/+$)/g, \"\");\n\n return cleanPath ? `/${cleanPath}` : \"/\";\n};\n","import { useMemo } from \"react\";\nimport { Outlet } from \"react-router\";\nimport { joinPath } from \"../../util/joinPath.js\";\nimport type { GraphQLClient } from \"./client/GraphQLClient.js\";\nimport { GraphQLProvider } from \"./client/GraphQLContext.js\";\nimport { OasConfigProvider } from \"./context.js\";\nimport type { OasPluginConfig } from \"./interfaces.js\";\nimport { getVersions } from \"./util/getRoutes.js\";\n\nexport const OasProvider = ({\n basePath,\n version,\n config,\n client,\n}: {\n basePath: string;\n version?: string;\n config: OasPluginConfig;\n client: GraphQLClient;\n}) => {\n const value = useMemo(() => {\n const versions = getVersions(config);\n const firstVersion = Object.values(config.input).at(0);\n const input =\n config.type === \"file\"\n ? {\n type: config.type,\n // biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined\n input: version ? config.input[version]! : firstVersion!,\n }\n : { type: config.type, input: config.input };\n\n return {\n config: {\n ...config,\n version: version ?? versions.at(0),\n versions: Object.fromEntries(\n versions.map((version) => [version, joinPath(basePath, version)]),\n ),\n ...input,\n },\n };\n }, [config, basePath, version]);\n\n return (\n <OasConfigProvider value={value}>\n <GraphQLProvider client={client}>\n <Outlet />\n </GraphQLProvider>\n </OasConfigProvider>\n );\n};\n"],"names":["joinPath","parts","cleanPath","part","OasProvider","basePath","version","config","client","value","useMemo","versions","getVersions","firstVersion","input","jsx","OasConfigProvider","GraphQLProvider","Outlet"],"mappings":";;;;AAGO,MAAMA,IAAW,IACnBC,MACA;AACH,QAAMC,IAAYD,EACf,OAAO,CAACE,MAAyB,EAAQA,CAAK,EAC9C,IAAI,CAACA,MAASA,EAAK,QAAQ,gBAAgB,EAAE,CAAC,EAC9C,KAAK,GAAG,EACR,QAAQ,gBAAgB,EAAE;AAE7B,SAAOD,IAAY,IAAIA,CAAS,KAAK;AACvC,GCJaE,IAAc,CAAC;AAAA,EAC1B,UAAAC;AAAA,EACA,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AACF,MAKM;AACJ,QAAMC,IAAQC,EAAQ,MAAM;AAC1B,UAAMC,IAAWC,EAAYL,CAAM,GAC7BM,IAAe,OAAO,OAAON,EAAO,KAAK,EAAE,GAAG,CAAC,GAC/CO,IACJP,EAAO,SAAS,SACZ;AAAA,MACE,MAAMA,EAAO;AAAA;AAAA,MAEb,OAAOD,IAAUC,EAAO,MAAMD,CAAO,IAAKO;AAAA,IAAA,IAE5C,EAAE,MAAMN,EAAO,MAAM,OAAOA,EAAO,MAAA;AAEzC,WAAO;AAAA,MACL,QAAQ;AAAA,QACN,GAAGA;AAAA,QACH,SAASD,KAAWK,EAAS,GAAG,CAAC;AAAA,QACjC,UAAU,OAAO;AAAA,UACfA,EAAS,IAAI,CAACL,MAAY,CAACA,GAASN,EAASK,GAAUC,CAAO,CAAC,CAAC;AAAA,QAAA;AAAA,QAElE,GAAGQ;AAAA,MAAA;AAAA,IACL;AAAA,EAEJ,GAAG,CAACP,GAAQF,GAAUC,CAAO,CAAC;AAE9B,SACES,gBAAAA,EAAAA,IAACC,KAAkB,OAAAP,GACjB,UAAAM,gBAAAA,EAAAA,IAACE,KAAgB,QAAAT,GACf,UAAAO,gBAAAA,EAAAA,IAACG,GAAA,CAAA,CAAO,EAAA,CACV,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"OasProvider-D88vmZFt.js","sources":["../src/lib/util/joinPath.tsx","../src/lib/plugins/openapi/OasProvider.tsx"],"sourcesContent":["/**\n * @deprecated Use `joinUrl` instead.\n */\nexport const joinPath = (\n ...parts: Array<string | null | undefined | boolean>\n) => {\n const cleanPath = parts\n .filter((part): part is string => Boolean(part))\n .map((part) => part.replace(/(^\\/+|\\/+$)/g, \"\")) // Strip leading and trailing slashes\n .join(\"/\")\n .replace(/(^\\/+|\\/+$)/g, \"\");\n\n return cleanPath ? `/${cleanPath}` : \"/\";\n};\n","import { useMemo } from \"react\";\nimport { Outlet } from \"react-router\";\nimport { joinPath } from \"../../util/joinPath.js\";\nimport type { GraphQLClient } from \"./client/GraphQLClient.js\";\nimport { GraphQLProvider } from \"./client/GraphQLContext.js\";\nimport { OasConfigProvider } from \"./context.js\";\nimport type { OasPluginConfig } from \"./interfaces.js\";\nimport { getVersions } from \"./util/getRoutes.js\";\n\nexport const OasProvider = ({\n basePath,\n version,\n config,\n client,\n}: {\n basePath: string;\n version?: string;\n config: OasPluginConfig;\n client: GraphQLClient;\n}) => {\n const value = useMemo(() => {\n const versions = getVersions(config);\n const firstVersion = Object.values(config.input).at(0);\n const input =\n config.type === \"file\"\n ? {\n type: config.type,\n // biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined\n input: version ? config.input[version]! : firstVersion!,\n }\n : { type: config.type, input: config.input };\n\n return {\n config: {\n ...config,\n version: version ?? versions.at(0),\n versions: Object.fromEntries(\n versions.map((version) => [version, joinPath(basePath, version)]),\n ),\n ...input,\n },\n };\n }, [config, basePath, version]);\n\n return (\n <OasConfigProvider value={value}>\n <GraphQLProvider client={client}>\n <Outlet />\n </GraphQLProvider>\n </OasConfigProvider>\n );\n};\n"],"names":["joinPath","parts","cleanPath","part","OasProvider","basePath","version","config","client","value","useMemo","versions","getVersions","firstVersion","input","jsx","OasConfigProvider","GraphQLProvider","Outlet"],"mappings":";;;;AAGO,MAAMA,IAAW,IACnBC,MACA;AACH,QAAMC,IAAYD,EACf,OAAO,CAACE,MAAyB,EAAQA,CAAK,EAC9C,IAAI,CAACA,MAASA,EAAK,QAAQ,gBAAgB,EAAE,CAAC,EAC9C,KAAK,GAAG,EACR,QAAQ,gBAAgB,EAAE;AAE7B,SAAOD,IAAY,IAAIA,CAAS,KAAK;AACvC,GCJaE,IAAc,CAAC;AAAA,EAC1B,UAAAC;AAAA,EACA,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AACF,MAKM;AACJ,QAAMC,IAAQC,EAAQ,MAAM;AAC1B,UAAMC,IAAWC,EAAYL,CAAM,GAC7BM,IAAe,OAAO,OAAON,EAAO,KAAK,EAAE,GAAG,CAAC,GAC/CO,IACJP,EAAO,SAAS,SACZ;AAAA,MACE,MAAMA,EAAO;AAAA;AAAA,MAEb,OAAOD,IAAUC,EAAO,MAAMD,CAAO,IAAKO;AAAA,IAAA,IAE5C,EAAE,MAAMN,EAAO,MAAM,OAAOA,EAAO,MAAA;AAEzC,WAAO;AAAA,MACL,QAAQ;AAAA,QACN,GAAGA;AAAA,QACH,SAASD,KAAWK,EAAS,GAAG,CAAC;AAAA,QACjC,UAAU,OAAO;AAAA,UACfA,EAAS,IAAI,CAACL,MAAY,CAACA,GAASN,EAASK,GAAUC,CAAO,CAAC,CAAC;AAAA,QAAA;AAAA,QAElE,GAAGQ;AAAA,MAAA;AAAA,IACL;AAAA,EAEJ,GAAG,CAACP,GAAQF,GAAUC,CAAO,CAAC;AAE9B,SACES,gBAAAA,EAAAA,IAACC,KAAkB,OAAAP,GACjB,UAAAM,gBAAAA,EAAAA,IAACE,KAAgB,QAAAT,GACf,UAAAO,gBAAAA,EAAAA,IAACG,GAAA,CAAA,CAAO,EAAA,CACV,EAAA,CACF;AAEJ;"}
@@ -3,7 +3,7 @@ import { b as ha, u as Fa, l as Ba, O as Ha } from "./ZudokuContext-BUZ5hkWB.js"
3
3
  import { H as Ma } from "./index.esm-BnYHxCYC.js";
4
4
  import { ChevronsUpDownIcon as it, CheckIcon as ma, CopyIcon as ya, ChevronDownIcon as za, ExternalLinkIcon as Ue, MinusIcon as Wa, PlusIcon as Ga, InfoIcon as Va, ChevronsDownUpIcon as Pr } from "lucide-react";
5
5
  import { a as Ja, b as Da, u as Qa } from "./chunk-PVWAREVJ-BMhpCH5D.js";
6
- import { u as st, a as $r, g as Ve, e as ga, f as wr, P as Ka, C as Nr, b as kr, c as qr, h as Ya, U as Xa } from "./index-I4zC7Yht.js";
6
+ import { u as st, a as $r, g as Ve, e as ga, f as wr, P as Ka, C as Nr, b as kr, c as qr, h as Ya, U as Xa } from "./index-C_-XS4lp.js";
7
7
  import { S as Za, c as eo, d as to, e as ro, g as no } from "./Select-DFRCS31-.js";
8
8
  import { C as ao } from "./CategoryHeading-DhmodDcq.js";
9
9
  import { I as Ce, T as oo, M as Be, H as Fe, g as io, h as so, i as lo, j as co, k as va, S as uo } from "./ErrorAlert-D5LKLFOd.js";
@@ -15,7 +15,7 @@ import { VisuallyHidden as Or } from "@radix-ui/react-visually-hidden";
15
15
  import { Slot as yo } from "@radix-ui/react-slot";
16
16
  import { c as go } from "./index-DI5SPFK9.js";
17
17
  import * as vo from "@radix-ui/react-separator";
18
- import { S as Rr, i as xo, P as bo, E as Qr, a as jo, b as $o, g as wo } from "./SchemaView-jouS_xvc.js";
18
+ import { S as Rr, i as xo, P as bo, E as Qr, a as jo, b as $o, g as wo } from "./SchemaView-CgDcUNbC.js";
19
19
  import * as Xe from "@radix-ui/react-tabs";
20
20
  import { M as So, B as ba } from "./index-CPws05Tb.js";
21
21
  import { Callout as Kr } from "./ui/Callout.js";
@@ -5685,4 +5685,4 @@ export {
5685
5685
  Hl as OperationList,
5686
5686
  ul as OperationsFragment
5687
5687
  };
5688
- //# sourceMappingURL=OperationList-Cx8TGKhB.js.map
5688
+ //# sourceMappingURL=OperationList-DeBe8FvT.js.map