zudoku 0.46.1 → 0.46.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.
- package/dist/config/validators/validate.d.ts +12 -12
- package/dist/config/validators/validate.js +3 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +0 -5
- package/dist/lib/authentication/AuthenticationPlugin.js +0 -12
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +110 -15
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +3 -3
- package/dist/lib/plugins/api-keys/index.js +14 -14
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +11 -91
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +22 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.js +25 -25
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +3 -8
- package/dist/lib/plugins/openapi/playground/Playground.js +70 -65
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +4 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +29 -20
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +2 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
- package/dist/lib/shiki.d.ts +8 -12
- package/dist/lib/shiki.js +11 -13
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/CodeBlock.js +1 -1
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +3 -1
- package/dist/lib/ui/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/util/humanFileSize.d.ts +6 -0
- package/dist/lib/util/humanFileSize.js +14 -0
- package/dist/lib/util/humanFileSize.js.map +1 -0
- package/dist/lib/util/humanFileSize.test.d.ts +1 -0
- package/dist/lib/util/humanFileSize.test.js +22 -0
- package/dist/lib/util/humanFileSize.test.js.map +1 -0
- package/lib/{Callout-BkgOUkoZ.js → Callout-CoVxYafP.js} +2 -2
- package/lib/{Callout-BkgOUkoZ.js.map → Callout-CoVxYafP.js.map} +1 -1
- package/lib/{Dialog-Du6WMcIA.js → Dialog-BxpuVLh9.js} +25 -25
- package/lib/Dialog-BxpuVLh9.js.map +1 -0
- package/lib/{Markdown-BRAyzyUJ.js → Markdown-Cm4kj26S.js} +6 -5
- package/lib/{Markdown-BRAyzyUJ.js.map → Markdown-Cm4kj26S.js.map} +1 -1
- package/lib/{MdxPage-B3v1BSKr.js → MdxPage-fDGQtB5w.js} +5 -5
- package/lib/{MdxPage-B3v1BSKr.js.map → MdxPage-fDGQtB5w.js.map} +1 -1
- package/lib/{OasProvider-5jrFuhVk.js → OasProvider-CFBvfR3r.js} +3 -3
- package/lib/{OasProvider-5jrFuhVk.js.map → OasProvider-CFBvfR3r.js.map} +1 -1
- package/lib/{OperationList-BmoMLQPO.js → OperationList-Xs4KWmsh.js} +1139 -1131
- package/lib/OperationList-Xs4KWmsh.js.map +1 -0
- package/lib/{Pagination-Cr0fWZS3.js → Pagination-CCxhL836.js} +2 -2
- package/lib/{Pagination-Cr0fWZS3.js.map → Pagination-CCxhL836.js.map} +1 -1
- package/lib/{RouteGuard-PrSVLbSr.js → RouteGuard-CZ_uLv3g.js} +6 -6
- package/lib/{RouteGuard-PrSVLbSr.js.map → RouteGuard-CZ_uLv3g.js.map} +1 -1
- package/lib/{SchemaList-B4riYLoP.js → SchemaList-BWaNlmUJ.js} +6 -6
- package/lib/{SchemaList-B4riYLoP.js.map → SchemaList-BWaNlmUJ.js.map} +1 -1
- package/lib/{SchemaView-CPZ6RgsF.js → SchemaView-DdKJt2ln.js} +3 -3
- package/lib/{SchemaView-CPZ6RgsF.js.map → SchemaView-DdKJt2ln.js.map} +1 -1
- package/lib/{SignUp-CWaiH0tY.js → SignUp-B-1Pvc-8.js} +3 -3
- package/lib/{SignUp-CWaiH0tY.js.map → SignUp-B-1Pvc-8.js.map} +1 -1
- package/lib/{Slot-Bo6K4tnb.js → Slot-B99cbD-q.js} +11 -11
- package/lib/{Slot-Bo6K4tnb.js.map → Slot-B99cbD-q.js.map} +1 -1
- package/lib/{SyntaxHighlight-DedRjJNr.js → SyntaxHighlight-Cz6Me7-F.js} +4474 -3323
- package/lib/SyntaxHighlight-Cz6Me7-F.js.map +1 -0
- package/lib/{Toc-lL3fzNkl.js → Toc-Qe7A4uj_.js} +2 -2
- package/lib/{Toc-lL3fzNkl.js.map → Toc-Qe7A4uj_.js.map} +1 -1
- package/lib/{chunk-BAXFHI7N-C9WnHsLV.js → chunk-DQRVZFIR-BblmKnHy.js} +697 -697
- package/lib/chunk-DQRVZFIR-BblmKnHy.js.map +1 -0
- package/lib/{circular-oB4auIIg.js → circular-w5eL5J8a.js} +1812 -1807
- package/lib/circular-w5eL5J8a.js.map +1 -0
- package/lib/{createServer-DCB82j2t.js → createServer-p3yUA8Bu.js} +3648 -3493
- package/lib/createServer-p3yUA8Bu.js.map +1 -0
- package/lib/{hook-DawSLaZr.js → hook-k7PfUIsj.js} +10 -10
- package/lib/{hook-DawSLaZr.js.map → hook-k7PfUIsj.js.map} +1 -1
- package/lib/{index-BXYvD5-7.js → index-yqBxBqxF.js} +1053 -1095
- package/lib/index-yqBxBqxF.js.map +1 -0
- package/lib/index.esm-Cp4wkyud.js +1236 -0
- package/lib/index.esm-Cp4wkyud.js.map +1 -0
- package/lib/{mutation-oxMvODNQ.js → mutation-BSeQ8pEK.js} +2 -2
- package/lib/{mutation-oxMvODNQ.js.map → mutation-BSeQ8pEK.js.map} +1 -1
- package/lib/react-nprogress.esm-C2MPXjiJ.js +389 -0
- package/lib/react-nprogress.esm-C2MPXjiJ.js.map +1 -0
- package/lib/ui/CodeBlock.js +17 -16
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/Command.js +1 -1
- package/lib/ui/Dialog.js +25 -25
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Form.js +1 -1
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/{useExposedProps-DG8J6ewJ.js → useExposedProps-BZQkZneR.js} +2 -2
- package/lib/{useExposedProps-DG8J6ewJ.js.map → useExposedProps-BZQkZneR.js.map} +1 -1
- package/lib/{useMutation-C_j3dA_L.js → useMutation-CZSmsIGW.js} +3 -3
- package/lib/{useMutation-C_j3dA_L.js.map → useMutation-CZSmsIGW.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +57 -66
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1698 -2082
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +11 -11
- package/lib/zudoku.plugin-api-catalog.js +5 -5
- package/lib/zudoku.plugin-api-keys.js +473 -4970
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +5 -5
- package/package.json +33 -34
- package/src/lib/authentication/AuthenticationPlugin.tsx +0 -14
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +193 -48
- package/src/lib/plugins/api-keys/index.tsx +25 -18
- package/src/lib/plugins/openapi/Sidecar.tsx +11 -97
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +46 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +4 -1
- package/src/lib/plugins/openapi/playground/Headers.tsx +110 -106
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +13 -11
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
- package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +127 -211
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +2 -1
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +74 -39
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +4 -1
- package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
- package/src/lib/shiki.ts +21 -22
- package/src/lib/ui/CodeBlock.tsx +1 -0
- package/src/lib/ui/Dialog.tsx +11 -7
- package/src/lib/util/humanFileSize.test.ts +24 -0
- package/src/lib/util/humanFileSize.ts +16 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -19
- package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
- package/lib/Dialog-Du6WMcIA.js.map +0 -1
- package/lib/OperationList-BmoMLQPO.js.map +0 -1
- package/lib/SyntaxHighlight-DedRjJNr.js.map +0 -1
- package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +0 -1
- package/lib/circular-oB4auIIg.js.map +0 -1
- package/lib/createServer-DCB82j2t.js.map +0 -1
- package/lib/index-BXYvD5-7.js.map +0 -1
- package/lib/index.esm-DSfX_eMP.js +0 -1216
- package/lib/index.esm-DSfX_eMP.js.map +0 -1
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -70
package/lib/ui/Dialog.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as o } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as a from "@radix-ui/react-dialog";
|
|
3
|
-
import { X as r } from "lucide-react";
|
|
4
3
|
import * as l from "react";
|
|
4
|
+
import { XIcon as c } from "lucide-react";
|
|
5
5
|
import { c as i } from "../cn-wvCW-ho6.js";
|
|
6
|
-
const
|
|
6
|
+
const j = a.Root, b = a.Trigger, m = a.Portal, h = a.Close, n = l.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o.jsx(
|
|
7
7
|
a.Overlay,
|
|
8
8
|
{
|
|
9
9
|
ref: s,
|
|
@@ -15,29 +15,29 @@ const D = a.Root, j = a.Trigger, c = a.Portal, b = a.Close, n = l.forwardRef(({
|
|
|
15
15
|
}
|
|
16
16
|
));
|
|
17
17
|
n.displayName = a.Overlay.displayName;
|
|
18
|
-
const
|
|
18
|
+
const f = l.forwardRef(({ className: e, children: t, showCloseButton: s = !0, ...d }, r) => /* @__PURE__ */ o.jsxs(m, { children: [
|
|
19
19
|
/* @__PURE__ */ o.jsx(n, {}),
|
|
20
20
|
/* @__PURE__ */ o.jsxs(
|
|
21
21
|
a.Content,
|
|
22
22
|
{
|
|
23
|
-
ref:
|
|
23
|
+
ref: r,
|
|
24
24
|
className: i(
|
|
25
25
|
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
26
26
|
e
|
|
27
27
|
),
|
|
28
|
-
...
|
|
28
|
+
...d,
|
|
29
29
|
children: [
|
|
30
30
|
t,
|
|
31
|
-
/* @__PURE__ */ o.jsxs(a.Close, { className: "absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
32
|
-
/* @__PURE__ */ o.jsx(
|
|
31
|
+
s && /* @__PURE__ */ o.jsxs(a.Close, { className: "absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
32
|
+
/* @__PURE__ */ o.jsx(c, { className: "h-4 w-4" }),
|
|
33
33
|
/* @__PURE__ */ o.jsx("span", { className: "sr-only", children: "Close" })
|
|
34
34
|
] })
|
|
35
35
|
]
|
|
36
36
|
}
|
|
37
37
|
)
|
|
38
38
|
] }));
|
|
39
|
-
|
|
40
|
-
const
|
|
39
|
+
f.displayName = a.Content.displayName;
|
|
40
|
+
const p = ({
|
|
41
41
|
className: e,
|
|
42
42
|
...t
|
|
43
43
|
}) => /* @__PURE__ */ o.jsx(
|
|
@@ -50,8 +50,8 @@ const f = ({
|
|
|
50
50
|
...t
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
|
|
54
|
-
const
|
|
53
|
+
p.displayName = "DialogHeader";
|
|
54
|
+
const g = ({
|
|
55
55
|
className: e,
|
|
56
56
|
...t
|
|
57
57
|
}) => /* @__PURE__ */ o.jsx(
|
|
@@ -64,8 +64,8 @@ const p = ({
|
|
|
64
64
|
...t
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
|
-
|
|
68
|
-
const
|
|
67
|
+
g.displayName = "DialogFooter";
|
|
68
|
+
const x = l.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o.jsx(
|
|
69
69
|
a.Title,
|
|
70
70
|
{
|
|
71
71
|
ref: s,
|
|
@@ -76,8 +76,8 @@ const g = l.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o.jsx(
|
|
|
76
76
|
...t
|
|
77
77
|
}
|
|
78
78
|
));
|
|
79
|
-
|
|
80
|
-
const
|
|
79
|
+
x.displayName = a.Title.displayName;
|
|
80
|
+
const u = l.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o.jsx(
|
|
81
81
|
a.Description,
|
|
82
82
|
{
|
|
83
83
|
ref: s,
|
|
@@ -85,17 +85,17 @@ const x = l.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o.jsx(
|
|
|
85
85
|
...t
|
|
86
86
|
}
|
|
87
87
|
));
|
|
88
|
-
|
|
88
|
+
u.displayName = a.Description.displayName;
|
|
89
89
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
j as Dialog,
|
|
91
|
+
h as DialogClose,
|
|
92
|
+
f as DialogContent,
|
|
93
|
+
u as DialogDescription,
|
|
94
|
+
g as DialogFooter,
|
|
95
|
+
p as DialogHeader,
|
|
96
96
|
n as DialogOverlay,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
m as DialogPortal,
|
|
98
|
+
x as DialogTitle,
|
|
99
|
+
b as DialogTrigger
|
|
100
100
|
};
|
|
101
101
|
//# sourceMappingURL=Dialog.js.map
|
package/lib/ui/Dialog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.js","sources":["../../src/lib/ui/Dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport
|
|
1
|
+
{"version":3,"file":"Dialog.js","sources":["../../src/lib/ui/Dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport * as React from \"react\";\n\nimport { XIcon } from \"lucide-react\";\nimport { cn } from \"../util/cn.js\";\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean;\n }\n>(({ className, children, showCloseButton = true, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\n <XIcon className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n));\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\nconst DialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col space-y-1.5 text-center sm:text-left\",\n className,\n )}\n {...props}\n />\n);\nDialogHeader.displayName = \"DialogHeader\";\n\nconst DialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n className,\n )}\n {...props}\n />\n);\nDialogFooter.displayName = \"DialogFooter\";\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\n \"text-lg font-semibold leading-none tracking-tight\",\n className,\n )}\n {...props}\n />\n));\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"names":["Dialog","DialogPrimitive","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","React","className","props","ref","jsx","cn","DialogContent","children","showCloseButton","jsxs","XIcon","DialogHeader","DialogFooter","DialogTitle","DialogDescription"],"mappings":";;;;;AAMA,MAAMA,IAASC,EAAgB,MAEzBC,IAAgBD,EAAgB,SAEhCE,IAAeF,EAAgB,QAE/BG,IAAcH,EAAgB,OAE9BI,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1BC,gBAAAA,EAAA;AAAA,EAACT,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAc,cAAcJ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M,GAAGC,MAC1BC,gBAAAA,EAAA;AAAA,EAACT,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDW,EAAY,cAAclB,EAAgB,MAAM;AAE1C,MAAAmB,IAAoBd,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1BC,gBAAAA,EAAA;AAAA,EAACT,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWE,EAAG,iCAAiCJ,CAAS;AAAA,IACvD,GAAGC;AAAA,EAAA;AACN,CACD;AACDY,EAAkB,cAAcnB,EAAgB,YAAY;"}
|
package/lib/ui/Form.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as i } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { Slot as F } from "@radix-ui/react-slot";
|
|
3
3
|
import * as s from "react";
|
|
4
|
-
import { u, F as x, C as p } from "../index.esm-
|
|
4
|
+
import { u, F as x, C as p } from "../index.esm-Cp4wkyud.js";
|
|
5
5
|
import { c as a } from "../cn-wvCW-ho6.js";
|
|
6
6
|
import { Label as I } from "./Label.js";
|
|
7
7
|
const $ = x, f = s.createContext(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../hook-
|
|
4
|
-
import { S as g } from "../SyntaxHighlight-
|
|
3
|
+
import "../hook-k7PfUIsj.js";
|
|
4
|
+
import { S as g } from "../SyntaxHighlight-Cz6Me7-F.js";
|
|
5
5
|
import "../invariant-DAFpPywt.js";
|
|
6
6
|
import "./CodeBlock.js";
|
|
7
7
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as t, a as c, b as n, c as u } from "./chunk-
|
|
1
|
+
import { u as t, a as c, b as n, c as u } from "./chunk-DQRVZFIR-BblmKnHy.js";
|
|
2
2
|
const i = () => {
|
|
3
3
|
const a = t(), s = c(), [e, o] = n(), r = u();
|
|
4
4
|
return { location: a, navigate: s, params: r, searchParams: e, setSearchParams: o };
|
|
@@ -6,4 +6,4 @@ const i = () => {
|
|
|
6
6
|
export {
|
|
7
7
|
i as u
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=useExposedProps-
|
|
9
|
+
//# sourceMappingURL=useExposedProps-BZQkZneR.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExposedProps-
|
|
1
|
+
{"version":3,"file":"useExposedProps-BZQkZneR.js","sources":["../src/lib/util/useExposedProps.tsx"],"sourcesContent":["import {\n type Location,\n type NavigateFunction,\n type Params,\n type SetURLSearchParams,\n useLocation,\n useNavigate,\n useParams,\n useSearchParams,\n} from \"react-router\";\n\nexport type ExposedComponentProps = {\n location: Location;\n navigate: NavigateFunction;\n searchParams: URLSearchParams;\n setSearchParams: SetURLSearchParams;\n params: Params;\n};\n\nexport const useExposedProps = (): ExposedComponentProps => {\n const location = useLocation();\n const navigate = useNavigate();\n const [searchParams, setSearchParams] = useSearchParams();\n const params = useParams();\n\n return { location, navigate, params, searchParams, setSearchParams };\n};\n"],"names":["useExposedProps","location","useLocation","navigate","useNavigate","searchParams","setSearchParams","useSearchParams","params","useParams"],"mappings":";AAmBO,MAAMA,IAAkB,MAA6B;AAC1D,QAAMC,IAAWC,EAAY,GACvBC,IAAWC,EAAY,GACvB,CAACC,GAAcC,CAAe,IAAIC,EAAgB,GAClDC,IAASC,EAAU;AAEzB,SAAO,EAAE,UAAAR,GAAU,UAAAE,GAAU,QAAAK,GAAQ,cAAAH,GAAc,iBAAAC,EAAgB;AACrE;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
|
-
import { g as l } from "./mutation-
|
|
3
|
-
import { S as p, s as d, h, n as a,
|
|
2
|
+
import { g as l } from "./mutation-BSeQ8pEK.js";
|
|
3
|
+
import { S as p, s as d, h, n as a, e as b, f as m, g as f } from "./hook-k7PfUIsj.js";
|
|
4
4
|
var v = class extends p {
|
|
5
5
|
#e;
|
|
6
6
|
#i = void 0;
|
|
@@ -94,4 +94,4 @@ function g(t, s) {
|
|
|
94
94
|
export {
|
|
95
95
|
g as u
|
|
96
96
|
};
|
|
97
|
-
//# sourceMappingURL=useMutation-
|
|
97
|
+
//# sourceMappingURL=useMutation-CZSmsIGW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMutation-
|
|
1
|
+
{"version":3,"file":"useMutation-CZSmsIGW.js","sources":["../../../node_modules/.pnpm/@tanstack+query-core@5.74.3/node_modules/@tanstack/query-core/build/modern/mutationObserver.js","../../../node_modules/.pnpm/@tanstack+react-query@5.74.3_react@19.1.0/node_modules/@tanstack/react-query/build/modern/useMutation.js"],"sourcesContent":["// src/mutationObserver.ts\nimport { getDefaultState } from \"./mutation.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Subscribable } from \"./subscribable.js\";\nimport { hashKey, shallowEqualObjects } from \"./utils.js\";\nvar MutationObserver = class extends Subscribable {\n #client;\n #currentResult = void 0;\n #currentMutation;\n #mutateOptions;\n constructor(client, options) {\n super();\n this.#client = client;\n this.setOptions(options);\n this.bindMethods();\n this.#updateResult();\n }\n bindMethods() {\n this.mutate = this.mutate.bind(this);\n this.reset = this.reset.bind(this);\n }\n setOptions(options) {\n const prevOptions = this.options;\n this.options = this.#client.defaultMutationOptions(options);\n if (!shallowEqualObjects(this.options, prevOptions)) {\n this.#client.getMutationCache().notify({\n type: \"observerOptionsUpdated\",\n mutation: this.#currentMutation,\n observer: this\n });\n }\n if (prevOptions?.mutationKey && this.options.mutationKey && hashKey(prevOptions.mutationKey) !== hashKey(this.options.mutationKey)) {\n this.reset();\n } else if (this.#currentMutation?.state.status === \"pending\") {\n this.#currentMutation.setOptions(this.options);\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#currentMutation?.removeObserver(this);\n }\n }\n onMutationUpdate(action) {\n this.#updateResult();\n this.#notify(action);\n }\n getCurrentResult() {\n return this.#currentResult;\n }\n reset() {\n this.#currentMutation?.removeObserver(this);\n this.#currentMutation = void 0;\n this.#updateResult();\n this.#notify();\n }\n mutate(variables, options) {\n this.#mutateOptions = options;\n this.#currentMutation?.removeObserver(this);\n this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);\n this.#currentMutation.addObserver(this);\n return this.#currentMutation.execute(variables);\n }\n #updateResult() {\n const state = this.#currentMutation?.state ?? getDefaultState();\n this.#currentResult = {\n ...state,\n isPending: state.status === \"pending\",\n isSuccess: state.status === \"success\",\n isError: state.status === \"error\",\n isIdle: state.status === \"idle\",\n mutate: this.mutate,\n reset: this.reset\n };\n }\n #notify(action) {\n notifyManager.batch(() => {\n if (this.#mutateOptions && this.hasListeners()) {\n const variables = this.#currentResult.variables;\n const context = this.#currentResult.context;\n if (action?.type === \"success\") {\n this.#mutateOptions.onSuccess?.(action.data, variables, context);\n this.#mutateOptions.onSettled?.(action.data, null, variables, context);\n } else if (action?.type === \"error\") {\n this.#mutateOptions.onError?.(action.error, variables, context);\n this.#mutateOptions.onSettled?.(\n void 0,\n action.error,\n variables,\n context\n );\n }\n }\n this.listeners.forEach((listener) => {\n listener(this.#currentResult);\n });\n });\n }\n};\nexport {\n MutationObserver\n};\n//# sourceMappingURL=mutationObserver.js.map","\"use client\";\n\n// src/useMutation.ts\nimport * as React from \"react\";\nimport { MutationObserver, notifyManager } from \"@tanstack/query-core\";\nimport { useQueryClient } from \"./QueryClientProvider.js\";\nimport { noop, shouldThrowError } from \"./utils.js\";\nfunction useMutation(options, queryClient) {\n const client = useQueryClient(queryClient);\n const [observer] = React.useState(\n () => new MutationObserver(\n client,\n options\n )\n );\n React.useEffect(() => {\n observer.setOptions(options);\n }, [observer, options]);\n const result = React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) => observer.subscribe(notifyManager.batchCalls(onStoreChange)),\n [observer]\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult()\n );\n const mutate = React.useCallback(\n (variables, mutateOptions) => {\n observer.mutate(variables, mutateOptions).catch(noop);\n },\n [observer]\n );\n if (result.error && shouldThrowError(observer.options.throwOnError, [result.error])) {\n throw result.error;\n }\n return { ...result, mutate, mutateAsync: result.mutate };\n}\nexport {\n useMutation\n};\n//# sourceMappingURL=useMutation.js.map"],"names":["MutationObserver","Subscribable","#client","#currentResult","#currentMutation","#mutateOptions","client","options","#updateResult","prevOptions","shallowEqualObjects","hashKey","action","#notify","variables","state","getDefaultState","notifyManager","context","listener","useMutation","queryClient","useQueryClient","observer","React","result","onStoreChange","mutate","mutateOptions","noop","shouldThrowError"],"mappings":";;;AAKA,IAAIA,IAAmB,cAAcC,EAAa;AAAA,EAChDC;AAAA,EACAC,KAAiB;AAAA,EACjBC;AAAA,EACAC;AAAA,EACA,YAAYC,GAAQC,GAAS;AAC3B,UAAO,GACP,KAAKL,KAAUI,GACf,KAAK,WAAWC,CAAO,GACvB,KAAK,YAAa,GAClB,KAAKC,GAAe;AAAA,EACxB;AAAA,EACE,cAAc;AACZ,SAAK,SAAS,KAAK,OAAO,KAAK,IAAI,GACnC,KAAK,QAAQ,KAAK,MAAM,KAAK,IAAI;AAAA,EACrC;AAAA,EACE,WAAWD,GAAS;AAClB,UAAME,IAAc,KAAK;AACzB,SAAK,UAAU,KAAKP,GAAQ,uBAAuBK,CAAO,GACrDG,EAAoB,KAAK,SAASD,CAAW,KAChD,KAAKP,GAAQ,iBAAkB,EAAC,OAAO;AAAA,MACrC,MAAM;AAAA,MACN,UAAU,KAAKE;AAAA,MACf,UAAU;AAAA,IAClB,CAAO,GAECK,GAAa,eAAe,KAAK,QAAQ,eAAeE,EAAQF,EAAY,WAAW,MAAME,EAAQ,KAAK,QAAQ,WAAW,IAC/H,KAAK,MAAO,IACH,KAAKP,IAAkB,MAAM,WAAW,aACjD,KAAKA,G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@
|
|
|
1
1
|
import { j as l } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { LogOutIcon as f } from "lucide-react";
|
|
3
|
-
import { S as g, a as p, b as w } from "./SignUp-
|
|
4
|
-
import { u as r } from "./hook-
|
|
3
|
+
import { S as g, a as p, b as w } from "./SignUp-B-1Pvc-8.js";
|
|
4
|
+
import { u as r } from "./hook-k7PfUIsj.js";
|
|
5
5
|
const y = ({
|
|
6
6
|
clerkPubKey: d,
|
|
7
7
|
redirectToAfterSignOut: c = "/",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as L } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { g as Pe, Z as Le } from "./invariant-DAFpPywt.js";
|
|
3
3
|
import { C as Ue } from "./ClientOnly-E7hGysn1.js";
|
|
4
|
-
import { d as xe,
|
|
4
|
+
import { d as xe, j as fe, u as x } from "./hook-k7PfUIsj.js";
|
|
5
5
|
import { LogOutIcon as Ce } from "lucide-react";
|
|
6
|
-
import { S as Ie, a as je, b as Oe } from "./SignUp-
|
|
7
|
-
import { N as ze } from "./chunk-
|
|
6
|
+
import { S as Ie, a as je, b as Oe } from "./SignUp-B-1Pvc-8.js";
|
|
7
|
+
import { N as ze } from "./chunk-DQRVZFIR-BblmKnHy.js";
|
|
8
8
|
import { useZudoku as Je } from "./zudoku.components.js";
|
|
9
9
|
var J = { exports: {} }, De = J.exports, re;
|
|
10
10
|
function Ne() {
|
|
@@ -20,8 +20,8 @@ function Ne() {
|
|
|
20
20
|
"warn",
|
|
21
21
|
"error"
|
|
22
22
|
], r = {}, i = null;
|
|
23
|
-
function c(l,
|
|
24
|
-
var u = l[
|
|
23
|
+
function c(l, m) {
|
|
24
|
+
var u = l[m];
|
|
25
25
|
if (typeof u.bind == "function")
|
|
26
26
|
return u.bind(l);
|
|
27
27
|
try {
|
|
@@ -39,9 +39,9 @@ function Ne() {
|
|
|
39
39
|
return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ? f : console[l] !== void 0 ? c(console, l) : console.log !== void 0 ? c(console, "log") : e;
|
|
40
40
|
}
|
|
41
41
|
function p() {
|
|
42
|
-
for (var l = this.getLevel(),
|
|
43
|
-
var u = s[
|
|
44
|
-
this[u] =
|
|
42
|
+
for (var l = this.getLevel(), m = 0; m < s.length; m++) {
|
|
43
|
+
var u = s[m];
|
|
44
|
+
this[u] = m < l ? e : this.methodFactory(u, l, this.name);
|
|
45
45
|
}
|
|
46
46
|
if (this.log = this.debug, typeof console === n && l < this.levels.SILENT)
|
|
47
47
|
return "No console available for logging";
|
|
@@ -51,22 +51,22 @@ function Ne() {
|
|
|
51
51
|
typeof console !== n && (p.call(this), this[l].apply(this, arguments));
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
function b(l,
|
|
54
|
+
function b(l, m, u) {
|
|
55
55
|
return y(l) || A.apply(this, arguments);
|
|
56
56
|
}
|
|
57
|
-
function h(l,
|
|
57
|
+
function h(l, m) {
|
|
58
58
|
var u = this, O, H, P, _ = "loglevel";
|
|
59
59
|
typeof l == "string" ? _ += ":" + l : typeof l == "symbol" && (_ = void 0);
|
|
60
|
-
function
|
|
61
|
-
var
|
|
60
|
+
function Ee(d) {
|
|
61
|
+
var g = (s[d] || "silent").toUpperCase();
|
|
62
62
|
if (!(typeof window === n || !_)) {
|
|
63
63
|
try {
|
|
64
|
-
window.localStorage[_] =
|
|
64
|
+
window.localStorage[_] = g;
|
|
65
65
|
return;
|
|
66
66
|
} catch {
|
|
67
67
|
}
|
|
68
68
|
try {
|
|
69
|
-
window.document.cookie = encodeURIComponent(_) + "=" +
|
|
69
|
+
window.document.cookie = encodeURIComponent(_) + "=" + g + ";";
|
|
70
70
|
} catch {
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -80,16 +80,16 @@ function Ne() {
|
|
|
80
80
|
}
|
|
81
81
|
if (typeof d === n)
|
|
82
82
|
try {
|
|
83
|
-
var
|
|
83
|
+
var g = window.document.cookie, z = encodeURIComponent(_), ne = g.indexOf(z + "=");
|
|
84
84
|
ne !== -1 && (d = /^([^;]+)/.exec(
|
|
85
|
-
|
|
85
|
+
g.slice(ne + z.length + 1)
|
|
86
86
|
)[1]);
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
89
|
return u.levels[d] === void 0 && (d = void 0), d;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ke() {
|
|
93
93
|
if (!(typeof window === n || !_)) {
|
|
94
94
|
try {
|
|
95
95
|
window.localStorage.removeItem(_);
|
|
@@ -102,9 +102,9 @@ function Ne() {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
function U(d) {
|
|
105
|
-
var
|
|
106
|
-
if (typeof
|
|
107
|
-
return
|
|
105
|
+
var g = d;
|
|
106
|
+
if (typeof g == "string" && u.levels[g.toUpperCase()] !== void 0 && (g = u.levels[g.toUpperCase()]), typeof g == "number" && g >= 0 && g <= u.levels.SILENT)
|
|
107
|
+
return g;
|
|
108
108
|
throw new TypeError("log.setLevel() called with invalid level: " + d);
|
|
109
109
|
}
|
|
110
110
|
u.name = l, u.levels = {
|
|
@@ -114,14 +114,14 @@ function Ne() {
|
|
|
114
114
|
WARN: 3,
|
|
115
115
|
ERROR: 4,
|
|
116
116
|
SILENT: 5
|
|
117
|
-
}, u.methodFactory =
|
|
117
|
+
}, u.methodFactory = m || b, u.getLevel = function() {
|
|
118
118
|
return P ?? H ?? O;
|
|
119
|
-
}, u.setLevel = function(d,
|
|
120
|
-
return P = U(d),
|
|
119
|
+
}, u.setLevel = function(d, g) {
|
|
120
|
+
return P = U(d), g !== !1 && Ee(P), p.call(u);
|
|
121
121
|
}, u.setDefaultLevel = function(d) {
|
|
122
122
|
H = U(d), ee() || u.setLevel(d, !1);
|
|
123
123
|
}, u.resetLevel = function() {
|
|
124
|
-
P = null,
|
|
124
|
+
P = null, ke(), p.call(u);
|
|
125
125
|
}, u.enableAll = function(d) {
|
|
126
126
|
u.setLevel(u.levels.TRACE, d);
|
|
127
127
|
}, u.disableAll = function(d) {
|
|
@@ -136,12 +136,12 @@ function Ne() {
|
|
|
136
136
|
var te = ee();
|
|
137
137
|
te != null && (P = U(te)), p.call(u);
|
|
138
138
|
}
|
|
139
|
-
i = new h(), i.getLogger = function(
|
|
140
|
-
if (typeof
|
|
139
|
+
i = new h(), i.getLogger = function(m) {
|
|
140
|
+
if (typeof m != "symbol" && typeof m != "string" || m === "")
|
|
141
141
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
142
|
-
var u = r[
|
|
143
|
-
return u || (u = r[
|
|
144
|
-
|
|
142
|
+
var u = r[m];
|
|
143
|
+
return u || (u = r[m] = new h(
|
|
144
|
+
m,
|
|
145
145
|
i.methodFactory
|
|
146
146
|
)), u;
|
|
147
147
|
};
|
|
@@ -168,7 +168,7 @@ function V(t, e) {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
const N = Symbol(), Ke = Symbol(), G = Symbol(), He = Symbol(), $e = Symbol(), Fe = Symbol(), Me = new TextEncoder(), Be = new TextDecoder();
|
|
171
|
-
function
|
|
171
|
+
function E(t) {
|
|
172
172
|
return typeof t == "string" ? Me.encode(t) : Be.decode(t);
|
|
173
173
|
}
|
|
174
174
|
const ie = 32768;
|
|
@@ -323,7 +323,7 @@ function rt() {
|
|
|
323
323
|
async function ot(t) {
|
|
324
324
|
if (!w(t))
|
|
325
325
|
throw new TypeError('"codeVerifier" must be a non-empty string');
|
|
326
|
-
return T(await crypto.subtle.digest("SHA-256",
|
|
326
|
+
return T(await crypto.subtle.digest("SHA-256", E(t)));
|
|
327
327
|
}
|
|
328
328
|
function se(t) {
|
|
329
329
|
return encodeURIComponent(t).replace(/%20/g, "+");
|
|
@@ -387,7 +387,7 @@ function K(t) {
|
|
|
387
387
|
const e = t?.[N];
|
|
388
388
|
return typeof e == "number" && Number.isFinite(e) ? e : 0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function me(t) {
|
|
391
391
|
const e = t?.[Ke];
|
|
392
392
|
return typeof e == "number" && Number.isFinite(e) && Math.sign(e) !== -1 ? e : 30;
|
|
393
393
|
}
|
|
@@ -443,7 +443,7 @@ async function lt(t, e, n, o, s) {
|
|
|
443
443
|
async function dt(t, e, n) {
|
|
444
444
|
if (!n.usages.includes("sign"))
|
|
445
445
|
throw new TypeError('CryptoKey instances used for signing assertions must include "sign" in their "usages"');
|
|
446
|
-
const o = `${T(
|
|
446
|
+
const o = `${T(E(JSON.stringify(t)))}.${T(E(JSON.stringify(e)))}`, s = T(await crypto.subtle.sign(Te(n), n, E(o)));
|
|
447
447
|
return `${o}.${s}`;
|
|
448
448
|
}
|
|
449
449
|
async function ht(t, e, n, o, s, r) {
|
|
@@ -466,7 +466,7 @@ async function ht(t, e, n, o, s, r) {
|
|
|
466
466
|
htm: o,
|
|
467
467
|
nonce: f,
|
|
468
468
|
htu: `${n.origin}${n.pathname}`,
|
|
469
|
-
ath: r ? T(await crypto.subtle.digest("SHA-256",
|
|
469
|
+
ath: r ? T(await crypto.subtle.digest("SHA-256", E(r))) : void 0
|
|
470
470
|
};
|
|
471
471
|
e[He]?.(p, A), t.set("dpop", await dt(p, A, i));
|
|
472
472
|
}
|
|
@@ -483,7 +483,7 @@ function ue(t, e, n) {
|
|
|
483
483
|
throw n ? new TypeError(`"as.mtls_endpoint_aliases.${e}" must be a string`) : new TypeError(`"as.${e}" must be a string`);
|
|
484
484
|
return new URL(t);
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function ge(t, e, n = !1) {
|
|
487
487
|
return n && t.mtls_endpoint_aliases && e in t.mtls_endpoint_aliases ? ue(t.mtls_endpoint_aliases[e], e, n) : ue(t[e], e, n);
|
|
488
488
|
}
|
|
489
489
|
function ye(t, e) {
|
|
@@ -506,15 +506,15 @@ async function wt(t, e, n, o, s, r) {
|
|
|
506
506
|
signal: r?.signal ? Xe(r.signal) : null
|
|
507
507
|
}).then(Z);
|
|
508
508
|
}
|
|
509
|
-
async function
|
|
509
|
+
async function mt(t, e, n, o) {
|
|
510
510
|
I(t), j(e);
|
|
511
|
-
const s =
|
|
511
|
+
const s = ge(t, "userinfo_endpoint", ye(e, o)), r = W(o?.headers);
|
|
512
512
|
return e.userinfo_signed_response_alg ? r.set("accept", "application/jwt") : (r.set("accept", "application/json"), r.append("accept", "application/jwt")), wt(n, "GET", s, r, null, {
|
|
513
513
|
...o,
|
|
514
514
|
[N]: K(e)
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
|
-
async function
|
|
517
|
+
async function gt(t, e, n, o, s, r, i) {
|
|
518
518
|
return await lt(t, e, s, r), r.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"), (i?.[G] || fetch)(o.href, {
|
|
519
519
|
body: s,
|
|
520
520
|
headers: Object.fromEntries(r.entries()),
|
|
@@ -524,10 +524,10 @@ async function mt(t, e, n, o, s, r, i) {
|
|
|
524
524
|
}).then(Z);
|
|
525
525
|
}
|
|
526
526
|
async function be(t, e, n, o, s) {
|
|
527
|
-
const r =
|
|
527
|
+
const r = ge(t, "token_endpoint", ye(e, s));
|
|
528
528
|
o.set("grant_type", n);
|
|
529
529
|
const i = W(s?.headers);
|
|
530
|
-
return i.set("accept", "application/json"),
|
|
530
|
+
return i.set("accept", "application/json"), gt(t, e, "POST", r, o, i, s);
|
|
531
531
|
}
|
|
532
532
|
async function yt(t, e, n, o) {
|
|
533
533
|
if (I(t), j(e), !w(n))
|
|
@@ -578,7 +578,7 @@ async function ve(t, e, n, o = !1, s = !1) {
|
|
|
578
578
|
if (r.id_token !== void 0 && !w(r.id_token))
|
|
579
579
|
throw new a('"response" body "id_token" property must be a non-empty string');
|
|
580
580
|
if (r.id_token) {
|
|
581
|
-
const { claims: i, jwt: c } = await Ct(r.id_token, It.bind(void 0, e.id_token_signed_response_alg, t.id_token_signing_alg_values_supported), Ae, K(e),
|
|
581
|
+
const { claims: i, jwt: c } = await Ct(r.id_token, It.bind(void 0, e.id_token_signed_response_alg, t.id_token_signing_alg_values_supported), Ae, K(e), me(e), e[$e]).then(kt.bind(void 0, ["aud", "exp", "iat", "iss", "sub"])).then(St.bind(void 0, t.issuer)).then(vt.bind(void 0, e.client_id));
|
|
582
582
|
if (Array.isArray(i.aud) && i.aud.length !== 1) {
|
|
583
583
|
if (i.azp === void 0)
|
|
584
584
|
throw new a('ID Token "aud" (audience) claim includes additional untrusted audiences');
|
|
@@ -625,7 +625,7 @@ async function At(t, e, n, o, s, r) {
|
|
|
625
625
|
const c = new URLSearchParams(r?.additionalParameters);
|
|
626
626
|
return c.set("redirect_uri", o), c.set("code_verifier", s), c.set("code", i), be(t, e, "authorization_code", c, r);
|
|
627
627
|
}
|
|
628
|
-
const
|
|
628
|
+
const Et = {
|
|
629
629
|
aud: "audience",
|
|
630
630
|
c_hash: "code hash",
|
|
631
631
|
client_id: "client id",
|
|
@@ -641,10 +641,10 @@ const kt = {
|
|
|
641
641
|
htu: "http uri",
|
|
642
642
|
cnf: "confirmation"
|
|
643
643
|
};
|
|
644
|
-
function
|
|
644
|
+
function kt(t, e) {
|
|
645
645
|
for (const n of t)
|
|
646
646
|
if (e.claims[n] === void 0)
|
|
647
|
-
throw new a(`JWT "${n}" (${
|
|
647
|
+
throw new a(`JWT "${n}" (${Et[n]}) claim missing`);
|
|
648
648
|
return e;
|
|
649
649
|
}
|
|
650
650
|
const Rt = Symbol(), $ = Symbol();
|
|
@@ -661,7 +661,7 @@ async function Pt(t, e, n, o, s) {
|
|
|
661
661
|
if (s !== $) {
|
|
662
662
|
if (typeof s != "number" || s < 0)
|
|
663
663
|
throw new TypeError('"maxAge" must be a non-negative number');
|
|
664
|
-
const c = Q() + K(e), f =
|
|
664
|
+
const c = Q() + K(e), f = me(e);
|
|
665
665
|
if (i.auth_time + s < c - f)
|
|
666
666
|
throw new a("too much time has elapsed since the last End-User authentication");
|
|
667
667
|
}
|
|
@@ -742,7 +742,7 @@ function Te(t) {
|
|
|
742
742
|
const Ae = Symbol();
|
|
743
743
|
async function xt(t, e, n, o) {
|
|
744
744
|
const s = `${t}.${e}`;
|
|
745
|
-
if (!await crypto.subtle.verify(Te(n), n, o,
|
|
745
|
+
if (!await crypto.subtle.verify(Te(n), n, o, E(s)))
|
|
746
746
|
throw new a("JWT signature verification failed");
|
|
747
747
|
}
|
|
748
748
|
async function Ct(t, e, n, o, s, r) {
|
|
@@ -756,7 +756,7 @@ async function Ct(t, e, n, o, s, r) {
|
|
|
756
756
|
throw new a("Invalid JWT");
|
|
757
757
|
let p;
|
|
758
758
|
try {
|
|
759
|
-
p = JSON.parse(
|
|
759
|
+
p = JSON.parse(E(T(i)));
|
|
760
760
|
} catch (l) {
|
|
761
761
|
throw new a("failed to parse JWT Header body as base64url encoded JSON", { cause: l });
|
|
762
762
|
}
|
|
@@ -769,7 +769,7 @@ async function Ct(t, e, n, o, s, r) {
|
|
|
769
769
|
n !== Ae && (b = await n(p), await xt(i, c, b, A));
|
|
770
770
|
let h;
|
|
771
771
|
try {
|
|
772
|
-
h = JSON.parse(
|
|
772
|
+
h = JSON.parse(E(T(c)));
|
|
773
773
|
} catch (l) {
|
|
774
774
|
throw new a("failed to parse JWT Payload body as base64url encoded JSON", { cause: l });
|
|
775
775
|
}
|
|
@@ -872,15 +872,6 @@ class Jt {
|
|
|
872
872
|
}
|
|
873
873
|
];
|
|
874
874
|
}
|
|
875
|
-
async getSidebar(e) {
|
|
876
|
-
return e.startsWith("/settings") ? [
|
|
877
|
-
{
|
|
878
|
-
type: "link",
|
|
879
|
-
label: "Logout",
|
|
880
|
-
href: "/signout"
|
|
881
|
-
}
|
|
882
|
-
] : [];
|
|
883
|
-
}
|
|
884
875
|
getProfileMenuItems() {
|
|
885
876
|
return [
|
|
886
877
|
{
|
|
@@ -921,9 +912,9 @@ function Nt({
|
|
|
921
912
|
});
|
|
922
913
|
return /* @__PURE__ */ L.jsx(ze, { to: n.data });
|
|
923
914
|
}
|
|
924
|
-
class
|
|
915
|
+
class k extends Error {
|
|
925
916
|
}
|
|
926
|
-
class de extends
|
|
917
|
+
class de extends k {
|
|
927
918
|
constructor(e, n, o) {
|
|
928
919
|
super(e, o), this.error = n;
|
|
929
920
|
}
|
|
@@ -973,7 +964,7 @@ class Wt extends Jt {
|
|
|
973
964
|
if (q(e))
|
|
974
965
|
throw oe.error("Bad Token Response", e), new de("Bad Token Response", e);
|
|
975
966
|
if (!e.expires_in)
|
|
976
|
-
throw new
|
|
967
|
+
throw new k("No expires_in in response");
|
|
977
968
|
const n = {
|
|
978
969
|
accessToken: e.access_token,
|
|
979
970
|
refreshToken: e.refresh_token,
|
|
@@ -1002,7 +993,7 @@ class Wt extends Jt {
|
|
|
1002
993
|
}) {
|
|
1003
994
|
const o = "S256", s = await this.getAuthServer();
|
|
1004
995
|
if (!s.authorization_endpoint)
|
|
1005
|
-
throw new
|
|
996
|
+
throw new k("No authorization endpoint");
|
|
1006
997
|
const r = nt(), i = await ot(r);
|
|
1007
998
|
sessionStorage.setItem(F, r);
|
|
1008
999
|
const c = new URL(
|
|
@@ -1023,7 +1014,7 @@ class Wt extends Jt {
|
|
|
1023
1014
|
async getAccessToken() {
|
|
1024
1015
|
const e = await this.getAuthServer(), { providerData: n } = x.getState();
|
|
1025
1016
|
if (!n)
|
|
1026
|
-
throw new
|
|
1017
|
+
throw new k("User is not authenticated");
|
|
1027
1018
|
const o = n;
|
|
1028
1019
|
if (new Date(o.expiresOn) < /* @__PURE__ */ new Date()) {
|
|
1029
1020
|
if (!o.refreshToken)
|
|
@@ -1043,7 +1034,7 @@ class Wt extends Jt {
|
|
|
1043
1034
|
s
|
|
1044
1035
|
);
|
|
1045
1036
|
if (!r.access_token)
|
|
1046
|
-
throw new
|
|
1037
|
+
throw new k("No access token in response");
|
|
1047
1038
|
return this.setTokensFromResponse(r), r.access_token.toString();
|
|
1048
1039
|
} else
|
|
1049
1040
|
return o.accessToken;
|
|
@@ -1072,10 +1063,10 @@ class Wt extends Jt {
|
|
|
1072
1063
|
handleCallback = async () => {
|
|
1073
1064
|
const e = new URL(window.location.href), n = e.searchParams.get("state"), o = sessionStorage.getItem(M);
|
|
1074
1065
|
if (sessionStorage.removeItem(M), n !== o)
|
|
1075
|
-
throw new
|
|
1066
|
+
throw new k("Invalid state parameter");
|
|
1076
1067
|
const s = sessionStorage.getItem(F);
|
|
1077
1068
|
if (sessionStorage.removeItem(F), !s)
|
|
1078
|
-
throw new
|
|
1069
|
+
throw new k("No code verifier found in state.");
|
|
1079
1070
|
const r = await this.getAuthServer(), i = zt(
|
|
1080
1071
|
r,
|
|
1081
1072
|
this.client,
|
|
@@ -1101,7 +1092,7 @@ class Wt extends Jt {
|
|
|
1101
1092
|
f
|
|
1102
1093
|
);
|
|
1103
1094
|
this.setTokensFromResponse(y);
|
|
1104
|
-
const p = await this.getAccessToken(), b = await (await
|
|
1095
|
+
const p = await this.getAccessToken(), b = await (await mt(
|
|
1105
1096
|
r,
|
|
1106
1097
|
this.client,
|
|
1107
1098
|
p
|