zudoku 0.66.0 → 0.66.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.
Files changed (105) hide show
  1. package/dist/config/validators/validate.d.ts +0 -2
  2. package/dist/config/validators/validate.js +0 -1
  3. package/dist/config/validators/validate.js.map +1 -1
  4. package/dist/flat-config.d.ts +1 -1
  5. package/dist/lib/authentication/ui/ZudokuAuthUi.js +5 -1
  6. package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -1
  7. package/dist/vite/config.js +1 -4
  8. package/dist/vite/config.js.map +1 -1
  9. package/lib/ActionButton-DUgvSylL.js +25 -0
  10. package/lib/ActionButton-DUgvSylL.js.map +1 -0
  11. package/lib/{ClaudeLogo-PxFjou9w.js → ClaudeLogo-CGRfGTk2.js} +2 -2
  12. package/lib/{ClaudeLogo-PxFjou9w.js.map → ClaudeLogo-CGRfGTk2.js.map} +1 -1
  13. package/lib/Drawer-Ci7XwhqT.js.map +1 -1
  14. package/lib/{ErrorAlert-BqjbNHIn.js → ErrorAlert-BUlG32M9.js} +6 -6
  15. package/lib/{ErrorAlert-BqjbNHIn.js.map → ErrorAlert-BUlG32M9.js.map} +1 -1
  16. package/lib/{MdxPage-CVFatbHw.js → MdxPage-Bjf72BP3.js} +7 -7
  17. package/lib/{MdxPage-CVFatbHw.js.map → MdxPage-Bjf72BP3.js.map} +1 -1
  18. package/lib/{Mermaid-CIFixY6C.js → Mermaid-D_VSX7_Q.js} +3 -3
  19. package/lib/{Mermaid-CIFixY6C.js.map → Mermaid-D_VSX7_Q.js.map} +1 -1
  20. package/lib/{OAuthErrorPage-Dup79DJk.js → OAuthErrorPage-1Ekji0PK.js} +6 -6
  21. package/lib/{OAuthErrorPage-Dup79DJk.js.map → OAuthErrorPage-1Ekji0PK.js.map} +1 -1
  22. package/lib/{OasProvider-BJeMq29o.js → OasProvider-BZxmTyMM.js} +3 -3
  23. package/lib/{OasProvider-BJeMq29o.js.map → OasProvider-BZxmTyMM.js.map} +1 -1
  24. package/lib/{OperationList-ff3ZvQsO.js → OperationList-B7nPIFB8.js} +329 -348
  25. package/lib/OperationList-B7nPIFB8.js.map +1 -0
  26. package/lib/{RouteGuard-BXy13JSz.js → RouteGuard-9wjejsKm.js} +3 -3
  27. package/lib/{RouteGuard-BXy13JSz.js.map → RouteGuard-9wjejsKm.js.map} +1 -1
  28. package/lib/{RouterError-CKOZTsDD.js → RouterError-DfTZblpv.js} +2 -2
  29. package/lib/{RouterError-CKOZTsDD.js.map → RouterError-DfTZblpv.js.map} +1 -1
  30. package/lib/{SchemaList-BSC1KM3v.js → SchemaList-16_obkku.js} +7 -7
  31. package/lib/{SchemaList-BSC1KM3v.js.map → SchemaList-16_obkku.js.map} +1 -1
  32. package/lib/{SchemaView-CgwJ9gtb.js → SchemaView-eyvR4bRt.js} +3 -3
  33. package/lib/{SchemaView-CgwJ9gtb.js.map → SchemaView-eyvR4bRt.js.map} +1 -1
  34. package/lib/Select-CkxXP5I7.js +243 -0
  35. package/lib/Select-CkxXP5I7.js.map +1 -0
  36. package/lib/Separator-CTPSeW1S.js +27 -0
  37. package/lib/Separator-CTPSeW1S.js.map +1 -0
  38. package/lib/{SignUp-Pm_LGm6T.js → SignUp-D54_QWFy.js} +3 -3
  39. package/lib/{SignUp-Pm_LGm6T.js.map → SignUp-D54_QWFy.js.map} +1 -1
  40. package/lib/{SyntaxHighlight-bkmst3oV.js → SyntaxHighlight-j_HRSPCU.js} +1508 -1492
  41. package/lib/SyntaxHighlight-j_HRSPCU.js.map +1 -0
  42. package/lib/{Toc-TUXNFbKl.js → Toc-z05x698-.js} +2 -2
  43. package/lib/{Toc-TUXNFbKl.js.map → Toc-z05x698-.js.map} +1 -1
  44. package/lib/{ZudokuContext-np1wheDl.js → ZudokuContext-BXldanA8.js} +5 -5
  45. package/lib/{ZudokuContext-np1wheDl.js.map → ZudokuContext-BXldanA8.js.map} +1 -1
  46. package/lib/chunk-PVWAREVJ-dLIqswPy.js.map +1 -1
  47. package/lib/{circular-XPj_dwqA.js → circular-D5sYCIWL.js} +2 -2
  48. package/lib/{circular-XPj_dwqA.js.map → circular-D5sYCIWL.js.map} +1 -1
  49. package/lib/{createServer-D01nCTNp.js → createServer-BlwU7lIr.js} +4 -4
  50. package/lib/{createServer-D01nCTNp.js.map → createServer-BlwU7lIr.js.map} +1 -1
  51. package/lib/createVariantComponent-B9_dVBvu.js +35 -0
  52. package/lib/createVariantComponent-B9_dVBvu.js.map +1 -0
  53. package/lib/{errors-B0hNTPFO.js → errors-BtC4Kn2j.js} +2 -2
  54. package/lib/{errors-B0hNTPFO.js.map → errors-BtC4Kn2j.js.map} +1 -1
  55. package/lib/firebase-Ibm_tv3G.js +7366 -0
  56. package/lib/firebase-Ibm_tv3G.js.map +1 -0
  57. package/lib/{hook-CvSwcbk6.js → hook-BNxidGQq.js} +2 -2
  58. package/lib/{hook-CvSwcbk6.js.map → hook-BNxidGQq.js.map} +1 -1
  59. package/lib/{index-Bjc_QsUR.js → index-CeVTNcfF.js} +452 -476
  60. package/lib/index-CeVTNcfF.js.map +1 -0
  61. package/lib/index-CrcNWbel.js.map +1 -1
  62. package/lib/{index-DnMgJWrI.js → index-Css56y3F.js} +3 -3
  63. package/lib/{index-DnMgJWrI.js.map → index-Css56y3F.js.map} +1 -1
  64. package/lib/{index-mfkNWYG-.js → index-DSOi7zVM.js} +5 -5
  65. package/lib/{index-mfkNWYG-.js.map → index-DSOi7zVM.js.map} +1 -1
  66. package/lib/{index-DscsS121.js → index-eKVhlB94.js} +2 -2
  67. package/lib/{index-DscsS121.js.map → index-eKVhlB94.js.map} +1 -1
  68. package/lib/index.esm-BYObtETB.js.map +1 -1
  69. package/lib/index.esm-BoKBnRoT.js +32 -0
  70. package/lib/index.esm-BoKBnRoT.js.map +1 -0
  71. package/lib/index.esm-DtzT_KoE.js.map +1 -1
  72. package/lib/jsx-runtime-BzflLqGi.js.map +1 -1
  73. package/lib/{mutation-BlmnL5qL.js → mutation-BoVlx8yA.js} +2 -2
  74. package/lib/{mutation-BlmnL5qL.js.map → mutation-BoVlx8yA.js.map} +1 -1
  75. package/lib/ui/Carousel.js.map +1 -1
  76. package/lib/ui/SyntaxHighlight.js +2 -2
  77. package/lib/useMutation-C6RqWmTS.js +97 -0
  78. package/lib/useMutation-C6RqWmTS.js.map +1 -0
  79. package/lib/zudoku.__internal.js +6 -6
  80. package/lib/zudoku.__internal.js.map +1 -1
  81. package/lib/zudoku.auth-auth0.js +1 -1
  82. package/lib/zudoku.auth-azureb2c.js +4 -4
  83. package/lib/zudoku.auth-clerk.js +2 -2
  84. package/lib/zudoku.auth-firebase.js +9 -0
  85. package/lib/zudoku.auth-firebase.js.map +1 -0
  86. package/lib/zudoku.auth-openid.js +4 -4
  87. package/lib/zudoku.auth-supabase.js +4 -4
  88. package/lib/zudoku.components.js +5 -5
  89. package/lib/zudoku.hooks.js +3 -3
  90. package/lib/zudoku.mermaid.js +3 -3
  91. package/lib/zudoku.plugin-api-catalog.js +4 -4
  92. package/lib/zudoku.plugin-api-keys.js +162 -178
  93. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  94. package/lib/zudoku.plugin-custom-pages.js +1 -1
  95. package/lib/zudoku.plugin-markdown.js +1 -1
  96. package/lib/zudoku.plugin-openapi.js +2 -2
  97. package/lib/zudoku.plugin-search-pagefind.js +2 -2
  98. package/lib/zudoku.router.js.map +1 -1
  99. package/package.json +19 -15
  100. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +11 -1
  101. package/lib/OperationList-ff3ZvQsO.js.map +0 -1
  102. package/lib/Select-VmDZ-nKe.js +0 -337
  103. package/lib/Select-VmDZ-nKe.js.map +0 -1
  104. package/lib/SyntaxHighlight-bkmst3oV.js.map +0 -1
  105. package/lib/index-Bjc_QsUR.js.map +0 -1
@@ -0,0 +1,35 @@
1
+ import { j as l } from "./jsx-runtime-BzflLqGi.js";
2
+ import * as n from "react";
3
+ import { c as i } from "./cn-dYga0KKN.js";
4
+ import { Slot as d } from "@radix-ui/react-slot";
5
+ const f = n.forwardRef(
6
+ ({ className: e, type: o, ...r }, t) => /* @__PURE__ */ l.jsx(
7
+ "input",
8
+ {
9
+ type: o,
10
+ className: i(
11
+ "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
12
+ e
13
+ ),
14
+ ref: t,
15
+ ...r
16
+ }
17
+ )
18
+ );
19
+ f.displayName = "Input";
20
+ const x = (e, o) => {
21
+ const r = n.forwardRef(({ className: t, asChild: s, ...a }, m) => {
22
+ const p = s ? d : e;
23
+ return n.createElement(p, {
24
+ ...a,
25
+ ref: m,
26
+ className: typeof o == "function" ? o({ className: t }) : i(o, t)
27
+ });
28
+ });
29
+ return r.displayName = typeof e == "string" ? `VariantComponent(${e})` : `VariantComponent(${e.displayName || e.name || "Component"})`, r;
30
+ };
31
+ export {
32
+ f as I,
33
+ x as c
34
+ };
35
+ //# sourceMappingURL=createVariantComponent-B9_dVBvu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createVariantComponent-B9_dVBvu.js","sources":["../src/lib/ui/Input.tsx","../src/lib/util/createVariantComponent.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../util/cn.js\";\n\ntype InputProps = React.InputHTMLAttributes<HTMLInputElement>;\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\nInput.displayName = \"Input\";\n\nexport { Input };\n","import { Slot } from \"@radix-ui/react-slot\";\nimport type { cva } from \"class-variance-authority\";\nimport type { ClassValue } from \"clsx\";\nimport type { HTMLElementType, JSX } from \"react\";\nimport * as React from \"react\";\nimport { cn } from \"./cn.js\";\n\ntype ComponentOrElement =\n | HTMLElementType\n // biome-ignore lint/suspicious/noExplicitAny: Need to accept any component type\n | React.ComponentType<any>\n // biome-ignore lint/suspicious/noExplicitAny: Need to accept any component type\n | React.ForwardRefExoticComponent<any>;\n\ntype PropsOf<T> = T extends HTMLElementType\n ? JSX.IntrinsicElements[T]\n : T extends React.ComponentType<infer P>\n ? P\n : T extends React.ForwardRefExoticComponent<infer P>\n ? P\n : never;\n\ntype RefOf<T> = T extends HTMLElementType\n ? T extends keyof HTMLElementTagNameMap\n ? HTMLElementTagNameMap[T]\n : HTMLElement\n : T extends React.ForwardRefExoticComponent<React.RefAttributes<infer R>>\n ? R\n : HTMLElement;\n\nconst createVariantComponent = <\n E extends ComponentOrElement,\n C extends ReturnType<typeof cva>,\n>(\n tag: E,\n cvx: ClassValue | C,\n // variantProps: Array<keyof VariantProps<C>> = [],\n) => {\n const MyVariant = React.forwardRef<\n RefOf<E>,\n PropsOf<E> & { className?: ClassValue; asChild?: boolean }\n >(({ className, asChild, ...props }, ref) => {\n const Comp = asChild ? Slot : tag;\n\n return React.createElement(Comp, {\n ...props,\n ref: ref as React.Ref<HTMLElement>,\n className:\n typeof cvx === \"function\" ? cvx({ className }) : cn(cvx, className),\n });\n });\n\n MyVariant.displayName =\n typeof tag === \"string\"\n ? `VariantComponent(${tag})`\n : `VariantComponent(${tag.displayName || tag.name || \"Component\"})`;\n\n return MyVariant;\n};\n\nexport default createVariantComponent;\n"],"names":["Input","React","className","type","props","ref","jsx","cn","createVariantComponent","tag","cvx","MyVariant","asChild","Comp","Slot"],"mappings":";;;;AAKA,MAAMA,IAAQC,EAAM;AAAA,EAClB,CAAC,EAAE,WAAAC,GAAW,MAAAC,GAAM,GAAGC,EAAA,GAASC,MAE5BC,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAAH;AAAA,MACA,WAAWI;AAAA,QACT;AAAA,QACAL;AAAA,MAAA;AAAA,MAEF,KAAAG;AAAA,MACC,GAAGD;AAAA,IAAA;AAAA,EAAA;AAIZ;AACAJ,EAAM,cAAc;ACUpB,MAAMQ,IAAyB,CAI7BC,GACAC,MAEG;AACH,QAAMC,IAAYV,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,SAAAU,GAAS,GAAGR,EAAA,GAASC,MAAQ;AAC3C,UAAMQ,IAAOD,IAAUE,IAAOL;AAE9B,WAAOR,EAAM,cAAcY,GAAM;AAAA,MAC/B,GAAGT;AAAA,MACH,KAAAC;AAAA,MACA,WACE,OAAOK,KAAQ,aAAaA,EAAI,EAAE,WAAAR,GAAW,IAAIK,EAAGG,GAAKR,CAAS;AAAA,IAAA,CACrE;AAAA,EACH,CAAC;AAED,SAAAS,EAAU,cACR,OAAOF,KAAQ,WACX,oBAAoBA,CAAG,MACvB,oBAAoBA,EAAI,eAAeA,EAAI,QAAQ,WAAW,KAE7DE;AACT;"}
@@ -1,6 +1,6 @@
1
1
  import { j as t } from "./jsx-runtime-BzflLqGi.js";
2
2
  import { LogOutIcon as n } from "lucide-react";
3
- import { S as i, a, b as u } from "./SignUp-Pm_LGm6T.js";
3
+ import { S as i, a, b as u } from "./SignUp-D54_QWFy.js";
4
4
  import { Z as m } from "./invariant-CGOLuIIz.js";
5
5
  class h {
6
6
  getRoutes() {
@@ -42,4 +42,4 @@ export {
42
42
  h as C,
43
43
  f as O
44
44
  };
45
- //# sourceMappingURL=errors-B0hNTPFO.js.map
45
+ //# sourceMappingURL=errors-BtC4Kn2j.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors-B0hNTPFO.js","sources":["../src/lib/authentication/AuthenticationPlugin.tsx","../src/lib/authentication/errors.ts"],"sourcesContent":["import { LogOutIcon } from \"lucide-react\";\nimport type {\n CommonPlugin,\n NavigationPlugin,\n ProfileMenuPlugin,\n} from \"../core/plugins.js\";\nimport { SignIn } from \"./components/SignIn.js\";\nimport { SignOut } from \"./components/SignOut.js\";\nimport { SignUp } from \"./components/SignUp.js\";\n\ntype PluginInterface = NavigationPlugin & CommonPlugin & ProfileMenuPlugin;\n\nexport class CoreAuthenticationPlugin implements PluginInterface {\n getRoutes() {\n return [\n {\n path: \"/signout\",\n element: <SignOut />,\n },\n {\n path: \"/signin\",\n element: <SignIn />,\n },\n {\n path: \"/signup\",\n element: <SignUp />,\n },\n ];\n }\n\n getProfileMenuItems() {\n return [\n {\n label: \"Logout\",\n path: \"/signout\",\n category: \"bottom\",\n icon: LogOutIcon,\n } as const,\n ];\n }\n}\n","import type { OAuth2Error } from \"oauth4webapi\";\nimport { ZudokuError, type ZudokuErrorOptions } from \"../util/invariant.js\";\n\nexport class AuthorizationError extends Error {}\n\nexport class OAuthAuthorizationError extends ZudokuError {\n constructor(\n message: string,\n public error: OAuth2Error,\n options?: ZudokuErrorOptions,\n ) {\n super(message, options);\n }\n}\n\nexport type OAuthErrorType =\n // Authorization errors\n | \"invalid_request\"\n | \"unauthorized_client\"\n | \"access_denied\"\n | \"unsupported_response_type\"\n | \"invalid_scope\"\n | \"server_error\"\n | \"temporarily_unavailable\"\n // Token errors\n | \"invalid_client\"\n | \"invalid_grant\"\n | \"unsupported_grant_type\"\n // Custom errors\n | \"invalid_state\"\n | \"missing_code_verifier\"\n | \"network_error\"\n | \"token_expired\"\n | \"configuration_error\"\n | \"unknown_error\";\n"],"names":["CoreAuthenticationPlugin","SignOut","SignIn","SignUp","LogOutIcon","AuthorizationError","OAuthAuthorizationError","ZudokuError","message","error","options"],"mappings":";;;;AAYO,MAAMA,EAAoD;AAAA,EAC/D,YAAY;AACV,WAAO;AAAA,MACL;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAA,CAAA,CAAQ;AAAA,MAAA;AAAA,MAEpB;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAA,CAAA,CAAO;AAAA,MAAA;AAAA,MAEnB;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAA,CAAA,CAAO;AAAA,MAAA;AAAA,IACnB;AAAA,EAEJ;AAAA,EAEA,sBAAsB;AACpB,WAAO;AAAA,MACL;AAAA,QACE,OAAO;AAAA,QACP,MAAM;AAAA,QACN,UAAU;AAAA,QACV,MAAMC;AAAA,MAAA;AAAA,IACR;AAAA,EAEJ;AACF;ACrCO,MAAMC,UAA2B,MAAM;AAAC;AAExC,MAAMC,UAAgCC,EAAY;AAAA,EACvD,YACEC,GACOC,GACPC,GACA;AACA,UAAMF,GAASE,CAAO,GAHf,KAAA,QAAAD;AAAA,EAIT;AACF;"}
1
+ {"version":3,"file":"errors-BtC4Kn2j.js","sources":["../src/lib/authentication/AuthenticationPlugin.tsx","../src/lib/authentication/errors.ts"],"sourcesContent":["import { LogOutIcon } from \"lucide-react\";\nimport type {\n CommonPlugin,\n NavigationPlugin,\n ProfileMenuPlugin,\n} from \"../core/plugins.js\";\nimport { SignIn } from \"./components/SignIn.js\";\nimport { SignOut } from \"./components/SignOut.js\";\nimport { SignUp } from \"./components/SignUp.js\";\n\ntype PluginInterface = NavigationPlugin & CommonPlugin & ProfileMenuPlugin;\n\nexport class CoreAuthenticationPlugin implements PluginInterface {\n getRoutes() {\n return [\n {\n path: \"/signout\",\n element: <SignOut />,\n },\n {\n path: \"/signin\",\n element: <SignIn />,\n },\n {\n path: \"/signup\",\n element: <SignUp />,\n },\n ];\n }\n\n getProfileMenuItems() {\n return [\n {\n label: \"Logout\",\n path: \"/signout\",\n category: \"bottom\",\n icon: LogOutIcon,\n } as const,\n ];\n }\n}\n","import type { OAuth2Error } from \"oauth4webapi\";\nimport { ZudokuError, type ZudokuErrorOptions } from \"../util/invariant.js\";\n\nexport class AuthorizationError extends Error {}\n\nexport class OAuthAuthorizationError extends ZudokuError {\n constructor(\n message: string,\n public error: OAuth2Error,\n options?: ZudokuErrorOptions,\n ) {\n super(message, options);\n }\n}\n\nexport type OAuthErrorType =\n // Authorization errors\n | \"invalid_request\"\n | \"unauthorized_client\"\n | \"access_denied\"\n | \"unsupported_response_type\"\n | \"invalid_scope\"\n | \"server_error\"\n | \"temporarily_unavailable\"\n // Token errors\n | \"invalid_client\"\n | \"invalid_grant\"\n | \"unsupported_grant_type\"\n // Custom errors\n | \"invalid_state\"\n | \"missing_code_verifier\"\n | \"network_error\"\n | \"token_expired\"\n | \"configuration_error\"\n | \"unknown_error\";\n"],"names":["CoreAuthenticationPlugin","SignOut","SignIn","SignUp","LogOutIcon","AuthorizationError","OAuthAuthorizationError","ZudokuError","message","error","options"],"mappings":";;;;AAYO,MAAMA,EAAoD;AAAA,EAC/D,YAAY;AACV,WAAO;AAAA,MACL;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAA,CAAA,CAAQ;AAAA,MAAA;AAAA,MAEpB;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAA,CAAA,CAAO;AAAA,MAAA;AAAA,MAEnB;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAA,CAAA,CAAO;AAAA,MAAA;AAAA,IACnB;AAAA,EAEJ;AAAA,EAEA,sBAAsB;AACpB,WAAO;AAAA,MACL;AAAA,QACE,OAAO;AAAA,QACP,MAAM;AAAA,QACN,UAAU;AAAA,QACV,MAAMC;AAAA,MAAA;AAAA,IACR;AAAA,EAEJ;AACF;ACrCO,MAAMC,UAA2B,MAAM;AAAC;AAExC,MAAMC,UAAgCC,EAAY;AAAA,EACvD,YACEC,GACOC,GACPC,GACA;AACA,UAAMF,GAASE,CAAO,GAHf,KAAA,QAAAD;AAAA,EAIT;AACF;"}