zudoku 0.35.2 → 0.35.4

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 (73) hide show
  1. package/dist/lib/components/InlineCode.js +2 -9
  2. package/dist/lib/components/InlineCode.js.map +1 -1
  3. package/dist/lib/components/Layout.js +2 -2
  4. package/dist/lib/components/Layout.js.map +1 -1
  5. package/dist/lib/errors/ErrorAlert.js +6 -1
  6. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  7. package/dist/lib/plugins/openapi/OperationListItem.js +3 -11
  8. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  9. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  10. package/dist/lib/plugins/openapi/ParamInfos.js +34 -0
  11. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  12. package/dist/lib/plugins/openapi/ParameterListItem.js +6 -4
  13. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  14. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  15. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  16. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  17. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  18. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  19. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  20. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +7 -8
  21. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  22. package/dist/lib/ui/Button.d.ts +2 -2
  23. package/dist/lib/ui/Button.js +1 -0
  24. package/dist/lib/ui/Button.js.map +1 -1
  25. package/dist/lib/ui/SyntaxHighlight.js +2 -0
  26. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  27. package/lib/{Markdown-D1Y3cd9l.js → Markdown-hBN9vkm5.js} +1045 -1026
  28. package/lib/Markdown-hBN9vkm5.js.map +1 -0
  29. package/lib/{MdxPage-CUL_SQzW.js → MdxPage-UCWwxhzC.js} +2 -2
  30. package/lib/{MdxPage-CUL_SQzW.js.map → MdxPage-UCWwxhzC.js.map} +1 -1
  31. package/lib/{OasProvider-_ye9MUAd.js → OasProvider-BbSqUQka.js} +2 -2
  32. package/lib/{OasProvider-_ye9MUAd.js.map → OasProvider-BbSqUQka.js.map} +1 -1
  33. package/lib/{OperationList-Br5x22KD.js → OperationList-CENzwqY8.js} +1992 -1935
  34. package/lib/OperationList-CENzwqY8.js.map +1 -0
  35. package/lib/SlotletProvider-D-XPr1Wg.js +338 -0
  36. package/lib/SlotletProvider-D-XPr1Wg.js.map +1 -0
  37. package/lib/{Spinner-1KrEmx1V.js → Spinner-C6n4eOvh.js} +13 -12
  38. package/lib/Spinner-C6n4eOvh.js.map +1 -0
  39. package/lib/SyntaxHighlight-BEoSoPEo.js +2890 -0
  40. package/lib/SyntaxHighlight-BEoSoPEo.js.map +1 -0
  41. package/lib/{index-C7TIhpXK.js → index-BVhQWA89.js} +5 -5
  42. package/lib/{index-C7TIhpXK.js.map → index-BVhQWA89.js.map} +1 -1
  43. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  44. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  45. package/lib/ui/ActionButton.js +1 -1
  46. package/lib/ui/Button.js +12 -11
  47. package/lib/ui/Button.js.map +1 -1
  48. package/lib/ui/SyntaxHighlight.js +8 -2883
  49. package/lib/ui/SyntaxHighlight.js.map +1 -1
  50. package/lib/zudoku.components.js +40 -40
  51. package/lib/zudoku.components.js.map +1 -1
  52. package/lib/zudoku.plugin-api-catalog.js +1 -1
  53. package/lib/zudoku.plugin-api-keys.js +1 -1
  54. package/lib/zudoku.plugin-custom-pages.js +1 -1
  55. package/lib/zudoku.plugin-markdown.js +1 -1
  56. package/lib/zudoku.plugin-openapi.js +1 -1
  57. package/package.json +1 -1
  58. package/src/lib/components/InlineCode.tsx +11 -16
  59. package/src/lib/components/Layout.tsx +2 -2
  60. package/src/lib/errors/ErrorAlert.tsx +24 -17
  61. package/src/lib/plugins/openapi/OperationListItem.tsx +4 -16
  62. package/src/lib/plugins/openapi/ParamInfos.tsx +64 -0
  63. package/src/lib/plugins/openapi/ParameterListItem.tsx +12 -12
  64. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  65. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  66. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +19 -28
  67. package/src/lib/ui/Button.tsx +3 -1
  68. package/src/lib/ui/SyntaxHighlight.tsx +2 -0
  69. package/lib/Markdown-D1Y3cd9l.js.map +0 -1
  70. package/lib/OperationList-Br5x22KD.js.map +0 -1
  71. package/lib/SlotletProvider-iDmNlxD5.js +0 -221
  72. package/lib/SlotletProvider-iDmNlxD5.js.map +0 -1
  73. package/lib/Spinner-1KrEmx1V.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ Prism.languages.jsstacktrace = { "error-message": { pattern: /^\S.*/m, alias: "string" }, "stack-frame": { pattern: /(^[ \t]+)at[ \t].*/m, lookbehind: !0, inside: { "not-my-code": { pattern: /^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m, alias: "comment" }, filename: { pattern: /(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/, lookbehind: !0, alias: "url" }, function: { pattern: /(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/, lookbehind: !0, inside: { punctuation: /\./ } }, punctuation: /[()]/, keyword: /\b(?:at|new)\b/, alias: { pattern: /\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/, alias: "variable" }, "line-number": { pattern: /:\d+(?::\d+)?\b/, alias: "number", inside: { punctuation: /:/ } } } } };
2
+ //# sourceMappingURL=prism-jsstacktrace.min-BfobCF2F.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prism-jsstacktrace.min-BfobCF2F.js","sources":["../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-jsstacktrace.min.js"],"sourcesContent":["Prism.languages.jsstacktrace={\"error-message\":{pattern:/^\\S.*/m,alias:\"string\"},\"stack-frame\":{pattern:/(^[ \\t]+)at[ \\t].*/m,lookbehind:!0,inside:{\"not-my-code\":{pattern:/^at[ \\t]+(?!\\s)(?:node\\.js|<unknown>|.*(?:node_modules|\\(<anonymous>\\)|\\(<unknown>|<anonymous>$|\\(internal\\/|\\(node\\.js)).*/m,alias:\"comment\"},filename:{pattern:/(\\bat\\s+(?!\\s)|\\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:\"url\"},function:{pattern:/(\\bat\\s+(?:new\\s+)?)(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF<][.$\\w\\xA0-\\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\\./}},punctuation:/[()]/,keyword:/\\b(?:at|new)\\b/,alias:{pattern:/\\[(?:as\\s+)?(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF][$\\w\\xA0-\\uFFFF]*\\]/,alias:\"variable\"},\"line-number\":{pattern:/:\\d+(?::\\d+)?\\b/,alias:\"number\",inside:{punctuation:/:/}}}}};"],"names":[],"mappings":"AAAA,MAAM,UAAU,eAAa,EAAC,iBAAgB,EAAC,SAAQ,UAAS,OAAM,SAAQ,GAAE,eAAc,EAAC,SAAQ,uBAAsB,YAAW,IAAG,QAAO,EAAC,eAAc,EAAC,SAAQ,gIAA+H,OAAM,UAAS,GAAE,UAAS,EAAC,SAAQ,gDAA+C,YAAW,IAAG,OAAM,MAAK,GAAE,UAAS,EAAC,SAAQ,wEAAuE,YAAW,IAAG,QAAO,EAAC,aAAY,KAAI,EAAC,GAAE,aAAY,QAAO,SAAQ,kBAAiB,OAAM,EAAC,SAAQ,8DAA6D,OAAM,WAAU,GAAE,eAAc,EAAC,SAAQ,mBAAkB,OAAM,UAAS,QAAO,EAAC,aAAY,IAAG,EAAC,EAAC,EAAC,EAAC;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  import { j as s } from "../jsx-runtime-CYK1ROHF.js";
2
2
  import { forwardRef as m } from "react";
3
- import { B as c, S as n } from "../Spinner-1KrEmx1V.js";
3
+ import { B as c, S as n } from "../Spinner-C6n4eOvh.js";
4
4
  import { c as r } from "../cn-qaFjX9_3.js";
5
5
  const l = m(
6
6
  ({ isPending: t, children: e, className: o, ...a }, i) => /* @__PURE__ */ s.jsxs(
package/lib/ui/Button.js CHANGED
@@ -1,9 +1,9 @@
1
- import { j as i } from "../jsx-runtime-CYK1ROHF.js";
2
- import { Slot as d } from "@radix-ui/react-slot";
3
- import { c } from "../index-CPNSgwSb.js";
4
- import * as u from "react";
1
+ import { j as d } from "../jsx-runtime-CYK1ROHF.js";
2
+ import { Slot as i } from "@radix-ui/react-slot";
3
+ import { c as u } from "../index-CPNSgwSb.js";
4
+ import * as c from "react";
5
5
  import { c as m } from "../cn-qaFjX9_3.js";
6
- const f = c(
6
+ const f = u(
7
7
  "not-prose inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
8
8
  {
9
9
  variants: {
@@ -13,7 +13,8 @@ const f = c(
13
13
  outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
14
14
  secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
15
15
  ghost: "hover:bg-accent hover:text-accent-foreground",
16
- link: "text-primary underline-offset-4 hover:underline"
16
+ link: "text-primary underline-offset-4 hover:underline",
17
+ expand: "flex gap-1.5 border bg-transparent rounded-xl text-muted-foreground hover:text-foreground"
17
18
  },
18
19
  size: {
19
20
  default: "h-9 px-4 py-2",
@@ -28,13 +29,13 @@ const f = c(
28
29
  size: "default"
29
30
  }
30
31
  }
31
- ), l = u.forwardRef(
32
- ({ className: e, variant: t, size: r, asChild: o = !1, ...n }, s) => {
33
- const a = o ? d : "button";
34
- return /* @__PURE__ */ i.jsx(
32
+ ), l = c.forwardRef(
33
+ ({ className: e, variant: r, size: t, asChild: o = !1, ...n }, s) => {
34
+ const a = o ? i : "button";
35
+ return /* @__PURE__ */ d.jsx(
35
36
  a,
36
37
  {
37
- className: m(f({ variant: t, size: r, className: e })),
38
+ className: m(f({ variant: r, size: t, className: e })),
38
39
  ref: s,
39
40
  ...n
40
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":["../../src/lib/ui/Button.tsx"],"sourcesContent":["import { Slot } from \"@radix-ui/react-slot\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { cn } from \"../util/cn.js\";\n\nexport const buttonVariants = cva(\n \"not-prose inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50\",\n {\n variants: {\n variant: {\n default:\n \"bg-primary text-primary-foreground shadow hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground\",\n secondary:\n \"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2\",\n sm: \"h-8 rounded-md px-3 text-xs\",\n lg: \"h-10 rounded-md px-8\",\n xl: \"h-14 rounded-lg px-10 text-lg\",\n icon: \"h-9 w-9\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n}\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\";\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n {...props}\n />\n );\n },\n);\nButton.displayName = \"Button\";\n"],"names":["buttonVariants","cva","Button","React","className","variant","size","asChild","props","ref","Comp","Slot","jsx","cn"],"mappings":";;;;;AAKO,MAAMA,IAAiBC;AAAA,EAC5B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,WACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,MACR;AAAA,MACA,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MAAA;AAAA,IAEV;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IAAA;AAAA,EACR;AAEJ,GAQaC,IAASC,EAAM;AAAA,EAC1B,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,MAAAC,GAAM,SAAAC,IAAU,IAAO,GAAGC,EAAM,GAAGC,MAAQ;AAC1D,UAAAC,IAAOH,IAAUI,IAAO;AAE5B,WAAAC,gBAAAA,EAAA;AAAA,MAACF;AAAA,MAAA;AAAA,QACC,WAAWG,EAAGb,EAAe,EAAE,SAAAK,GAAS,MAAAC,GAAM,WAAAF,EAAA,CAAW,CAAC;AAAA,QAC1D,KAAAK;AAAA,QACC,GAAGD;AAAA,MAAA;AAAA,IACN;AAAA,EAAA;AAGN;AACAN,EAAO,cAAc;"}
1
+ {"version":3,"file":"Button.js","sources":["../../src/lib/ui/Button.tsx"],"sourcesContent":["import { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { cn } from \"../util/cn.js\";\n\nexport const buttonVariants = cva(\n \"not-prose inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50\",\n {\n variants: {\n variant: {\n default:\n \"bg-primary text-primary-foreground shadow hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground\",\n secondary:\n \"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\",\n expand:\n \"flex gap-1.5 border bg-transparent rounded-xl text-muted-foreground hover:text-foreground\",\n },\n size: {\n default: \"h-9 px-4 py-2\",\n sm: \"h-8 rounded-md px-3 text-xs\",\n lg: \"h-10 rounded-md px-8\",\n xl: \"h-14 rounded-lg px-10 text-lg\",\n icon: \"h-9 w-9\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n}\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\";\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n {...props}\n />\n );\n },\n);\nButton.displayName = \"Button\";\n"],"names":["buttonVariants","cva","Button","React","className","variant","size","asChild","props","ref","Comp","Slot","jsx","cn"],"mappings":";;;;;AAKO,MAAMA,IAAiBC;AAAA,EAC5B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,WACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,QACE;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MAAA;AAAA,IAEV;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IAAA;AAAA,EACR;AAEJ,GAQaC,IAASC,EAAM;AAAA,EAC1B,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,MAAAC,GAAM,SAAAC,IAAU,IAAO,GAAGC,EAAM,GAAGC,MAAQ;AAC1D,UAAAC,IAAOH,IAAUI,IAAO;AAE5B,WAAAC,gBAAAA,EAAA;AAAA,MAACF;AAAA,MAAA;AAAA,QACC,WAAWG,EAAGb,EAAe,EAAE,SAAAK,GAAS,MAAAC,GAAM,WAAAF,EAAA,CAAW,CAAC;AAAA,QAC1D,KAAAK;AAAA,QACC,GAAGD;AAAA,MAAA;AAAA,IACN;AAAA,EAAA;AAGN;AACAN,EAAO,cAAc;"}