zudoku 0.32.0 → 0.32.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/app/tailwind.js +6 -0
- package/dist/app/tailwind.js.map +1 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +15 -15
- package/dist/config/validators/InputSidebarSchema.js +10 -1
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +40 -40
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +19 -19
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/TopNavigation.js +3 -2
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +2 -0
- package/dist/lib/components/navigation/SidebarBadge.js +3 -1
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +1 -1
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +3 -1
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +2 -2
- package/dist/lib/plugins/api-catalog/Catalog.js +11 -24
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-catalog/index.d.ts +1 -0
- package/dist/lib/plugins/api-catalog/index.js +37 -8
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +2 -2
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +0 -11
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +1 -1
- package/dist/lib/ui/Button.d.ts +1 -1
- package/dist/lib/ui/Command.d.ts +1 -1
- package/dist/lib/ui/SyntaxHighlight.d.ts +14 -0
- package/dist/lib/{components → ui}/SyntaxHighlight.js +9 -6
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
- package/dist/lib/ui/util.d.ts +2 -0
- package/dist/lib/ui/util.js +3 -0
- package/dist/lib/ui/util.js.map +1 -0
- package/dist/lib/util/MdxComponents.js +1 -1
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/vite/config.js +4 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-api.js +2 -2
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-sidebar.js +3 -9
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/lib/{AuthenticationPlugin-_YVa673u.js → AuthenticationPlugin-BlxA4Mbn.js} +4 -4
- package/lib/{AuthenticationPlugin-_YVa673u.js.map → AuthenticationPlugin-BlxA4Mbn.js.map} +1 -1
- package/lib/{CategoryHeading-MYL1u_6K.js → CategoryHeading-DpB47wvk.js} +3 -3
- package/lib/{CategoryHeading-MYL1u_6K.js.map → CategoryHeading-DpB47wvk.js.map} +1 -1
- package/lib/{Markdown-8mv9nhGd.js → Markdown-Cr9sYpR_.js} +4800 -4729
- package/lib/Markdown-Cr9sYpR_.js.map +1 -0
- package/lib/{MdxPage-GM1T5jmO.js → MdxPage-Dt-UEQl8.js} +10 -10
- package/lib/MdxPage-Dt-UEQl8.js.map +1 -0
- package/lib/{OasProvider-IS9wBrb7.js → OasProvider-WVtvHP5H.js} +6 -6
- package/lib/{OasProvider-IS9wBrb7.js.map → OasProvider-WVtvHP5H.js.map} +1 -1
- package/lib/{OperationList-BTmRbbXk.js → OperationList-DhOwupvv.js} +18 -19
- package/lib/{OperationList-BTmRbbXk.js.map → OperationList-DhOwupvv.js.map} +1 -1
- package/lib/Select-D9hI1G-y.js +223 -0
- package/lib/{Select-D9CKL33X.js.map → Select-D9hI1G-y.js.map} +1 -1
- package/lib/{SlotletProvider-D0mFmGJu.js → SlotletProvider-CEfNOA8i.js} +53 -53
- package/lib/{SlotletProvider-D0mFmGJu.js.map → SlotletProvider-CEfNOA8i.js.map} +1 -1
- package/lib/{Spinner-BlzrEEk1.js → Spinner-1KrEmx1V.js} +3 -3
- package/lib/{Spinner-BlzrEEk1.js.map → Spinner-1KrEmx1V.js.map} +1 -1
- package/lib/{SyntaxHighlight-B0L4SC_N.js → SyntaxHighlight-CcnUjERD.js} +445 -445
- package/lib/SyntaxHighlight-CcnUjERD.js.map +1 -0
- package/lib/{chunk-SYFQ2XB5-QijJrSf0.js → chunk-IR6S3I6Y-D_3UmFIn.js} +597 -597
- package/lib/chunk-IR6S3I6Y-D_3UmFIn.js.map +1 -0
- package/lib/{circular-DxaIIlWD.js → circular-v7K6lDDh.js} +1413 -1413
- package/lib/{circular-DxaIIlWD.js.map → circular-v7K6lDDh.js.map} +1 -1
- package/lib/context-DLCwaMXN.js +22 -0
- package/lib/{context-rwLGh-6_.js.map → context-DLCwaMXN.js.map} +1 -1
- package/lib/{createServer-DSQiPwjN.js → createServer-DMf6O2Rz.js} +3669 -3562
- package/lib/createServer-DMf6O2Rz.js.map +1 -0
- package/lib/{hook-C_t2ISLC.js → hook-CWwSAAlH.js} +384 -379
- package/lib/hook-CWwSAAlH.js.map +1 -0
- package/lib/index-Bn6Lc9tq.js +9 -0
- package/lib/index-Bn6Lc9tq.js.map +1 -0
- package/lib/index-CPNSgwSb.js +36 -0
- package/lib/{index-Djenk2Hj.js.map → index-CPNSgwSb.js.map} +1 -1
- package/lib/{index-BANyVRgL.js → index-Do_30Hpk.js} +78 -78
- package/lib/index-Do_30Hpk.js.map +1 -0
- package/lib/{index-B7mqiOei.js → index-Du5aNddU.js} +101 -101
- package/lib/index-Du5aNddU.js.map +1 -0
- package/lib/{index-CjJS0l4l.js → index-LNp6rxyU.js} +2 -2
- package/lib/{index-CjJS0l4l.js.map → index-LNp6rxyU.js.map} +1 -1
- package/lib/{index.esm-CrSoEshU.js → index.esm--gIChbWs.js} +3 -3
- package/lib/{index.esm-CrSoEshU.js.map → index.esm--gIChbWs.js.map} +1 -1
- package/lib/{index.esm-9-TF9KQB.js → index.esm-CQHE3GEU.js} +52 -53
- package/lib/{index.esm-9-TF9KQB.js.map → index.esm-CQHE3GEU.js.map} +1 -1
- package/lib/joinUrl-10po2Jdj.js +20 -0
- package/lib/{joinUrl-nLx9pD-Z.js.map → joinUrl-10po2Jdj.js.map} +1 -1
- package/lib/{jsx-runtime-Bdg6XQ1m.js → jsx-runtime-CYK1ROHF.js} +99 -99
- package/lib/{jsx-runtime-Bdg6XQ1m.js.map → jsx-runtime-CYK1ROHF.js.map} +1 -1
- package/lib/{mutation-Cm3O9f3X.js → mutation-B0wxqzSN.js} +26 -26
- package/lib/{mutation-Cm3O9f3X.js.map → mutation-B0wxqzSN.js.map} +1 -1
- package/lib/post-processors/removeExtensions.js +4 -4
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +2 -2
- package/lib/ui/Alert.js +2 -2
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +2 -2
- package/lib/ui/Breadcrumb.js +4 -4
- package/lib/ui/Button.js +2 -2
- package/lib/ui/Callout.js +4 -4
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +1 -1
- package/lib/ui/Checkbox.js +2 -2
- package/lib/ui/Command.js +2 -2
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Drawer.js +521 -543
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/Form.js +5 -5
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Label.js +2 -2
- package/lib/ui/Pagination.js +10 -10
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +10 -0
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +2 -2
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +1 -1
- package/lib/ui/util.js +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/{useExposedProps-Bbf99zic.js → useExposedProps-RIvey2Oy.js} +2 -2
- package/lib/{useExposedProps-Bbf99zic.js.map → useExposedProps-RIvey2Oy.js.map} +1 -1
- package/lib/{useScrollToAnchor-BGEcH3HM.js → useScrollToAnchor-C-sRxs9o.js} +13 -9
- package/lib/useScrollToAnchor-C-sRxs9o.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +18 -18
- package/lib/zudoku.auth-openid.js +255 -295
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +305 -298
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.icons.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +91 -108
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +6 -6
- package/lib/zudoku.plugin-custom-pages.js +3 -3
- package/lib/zudoku.plugin-markdown.js +2 -2
- package/lib/zudoku.plugin-openapi.js +6 -6
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +9 -9
- package/package.json +49 -50
- package/src/app/tailwind.ts +6 -0
- package/src/lib/components/Header.tsx +1 -1
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/components/TopNavigation.tsx +13 -9
- package/src/lib/components/index.ts +2 -0
- package/src/lib/components/navigation/SidebarBadge.tsx +4 -1
- package/src/lib/components/navigation/SidebarItem.tsx +1 -0
- package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
- package/src/lib/oas/graphql/index.ts +4 -1
- package/src/lib/plugins/api-catalog/Catalog.tsx +31 -94
- package/src/lib/plugins/api-catalog/index.tsx +54 -9
- package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -2
- package/src/lib/plugins/openapi/graphql/gql.ts +9 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +1 -1
- package/src/lib/{components → ui}/SyntaxHighlight.tsx +23 -8
- package/src/lib/ui/util.tsx +3 -0
- package/src/lib/util/MdxComponents.tsx +1 -1
- package/dist/lib/components/SyntaxHighlight.d.ts +0 -12
- package/dist/lib/components/SyntaxHighlight.js.map +0 -1
- package/lib/Markdown-8mv9nhGd.js.map +0 -1
- package/lib/MdxPage-GM1T5jmO.js.map +0 -1
- package/lib/Select-D9CKL33X.js +0 -223
- package/lib/SyntaxHighlight-B0L4SC_N.js.map +0 -1
- package/lib/chunk-SYFQ2XB5-QijJrSf0.js.map +0 -1
- package/lib/context-rwLGh-6_.js +0 -22
- package/lib/createServer-DSQiPwjN.js.map +0 -1
- package/lib/hook-C_t2ISLC.js.map +0 -1
- package/lib/index-B7mqiOei.js.map +0 -1
- package/lib/index-BANyVRgL.js.map +0 -1
- package/lib/index-Djenk2Hj.js +0 -36
- package/lib/joinUrl-nLx9pD-Z.js +0 -20
- package/lib/useScrollToAnchor-BGEcH3HM.js.map +0 -1
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
var M = (s) => {
|
|
2
|
+
throw TypeError(s);
|
|
3
|
+
};
|
|
4
|
+
var j = (s, t, e) => t.has(s) || M("Cannot " + e);
|
|
5
|
+
var r = (s, t, e) => (j(s, t, "read from private field"), e ? e.call(s) : t.get(s)), x = (s, t, e) => t.has(s) ? M("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), y = (s, t, e, a) => (j(s, t, "write to private field"), a ? a.call(s, e) : t.set(s, e), e), g = (s, t, e) => (j(s, t, "access private method"), e);
|
|
6
|
+
import * as l from "react";
|
|
7
|
+
import { g as K } from "./mutation-B0wxqzSN.js";
|
|
8
|
+
import { S as L, s as T, h as E, n as U, e as z, f as P, g as V } from "./hook-CWwSAAlH.js";
|
|
9
|
+
import { j as i } from "./jsx-runtime-CYK1ROHF.js";
|
|
10
|
+
import * as o from "@radix-ui/react-select";
|
|
11
|
+
import { ChevronDown as k, ChevronUp as G, Check as q } from "lucide-react";
|
|
12
|
+
import { c as p } from "./cn-qaFjX9_3.js";
|
|
13
|
+
var h, m, n, c, u, N, C, I, A = (I = class extends L {
|
|
14
|
+
constructor(t, e) {
|
|
15
|
+
super();
|
|
16
|
+
x(this, u);
|
|
17
|
+
x(this, h);
|
|
18
|
+
x(this, m);
|
|
19
|
+
x(this, n);
|
|
20
|
+
x(this, c);
|
|
21
|
+
y(this, h, t), this.setOptions(e), this.bindMethods(), g(this, u, N).call(this);
|
|
22
|
+
}
|
|
23
|
+
bindMethods() {
|
|
24
|
+
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
|
25
|
+
}
|
|
26
|
+
setOptions(t) {
|
|
27
|
+
var a;
|
|
28
|
+
const e = this.options;
|
|
29
|
+
this.options = r(this, h).defaultMutationOptions(t), T(this.options, e) || r(this, h).getMutationCache().notify({
|
|
30
|
+
type: "observerOptionsUpdated",
|
|
31
|
+
mutation: r(this, n),
|
|
32
|
+
observer: this
|
|
33
|
+
}), e != null && e.mutationKey && this.options.mutationKey && E(e.mutationKey) !== E(this.options.mutationKey) ? this.reset() : ((a = r(this, n)) == null ? void 0 : a.state.status) === "pending" && r(this, n).setOptions(this.options);
|
|
34
|
+
}
|
|
35
|
+
onUnsubscribe() {
|
|
36
|
+
var t;
|
|
37
|
+
this.hasListeners() || (t = r(this, n)) == null || t.removeObserver(this);
|
|
38
|
+
}
|
|
39
|
+
onMutationUpdate(t) {
|
|
40
|
+
g(this, u, N).call(this), g(this, u, C).call(this, t);
|
|
41
|
+
}
|
|
42
|
+
getCurrentResult() {
|
|
43
|
+
return r(this, m);
|
|
44
|
+
}
|
|
45
|
+
reset() {
|
|
46
|
+
var t;
|
|
47
|
+
(t = r(this, n)) == null || t.removeObserver(this), y(this, n, void 0), g(this, u, N).call(this), g(this, u, C).call(this);
|
|
48
|
+
}
|
|
49
|
+
mutate(t, e) {
|
|
50
|
+
var a;
|
|
51
|
+
return y(this, c, e), (a = r(this, n)) == null || a.removeObserver(this), y(this, n, r(this, h).getMutationCache().build(r(this, h), this.options)), r(this, n).addObserver(this), r(this, n).execute(t);
|
|
52
|
+
}
|
|
53
|
+
}, h = new WeakMap(), m = new WeakMap(), n = new WeakMap(), c = new WeakMap(), u = new WeakSet(), N = function() {
|
|
54
|
+
var e;
|
|
55
|
+
const t = ((e = r(this, n)) == null ? void 0 : e.state) ?? K();
|
|
56
|
+
y(this, m, {
|
|
57
|
+
...t,
|
|
58
|
+
isPending: t.status === "pending",
|
|
59
|
+
isSuccess: t.status === "success",
|
|
60
|
+
isError: t.status === "error",
|
|
61
|
+
isIdle: t.status === "idle",
|
|
62
|
+
mutate: this.mutate,
|
|
63
|
+
reset: this.reset
|
|
64
|
+
});
|
|
65
|
+
}, C = function(t) {
|
|
66
|
+
U.batch(() => {
|
|
67
|
+
var e, a, d, w, f, S, R, O;
|
|
68
|
+
if (r(this, c) && this.hasListeners()) {
|
|
69
|
+
const b = r(this, m).variables, v = r(this, m).context;
|
|
70
|
+
(t == null ? void 0 : t.type) === "success" ? ((a = (e = r(this, c)).onSuccess) == null || a.call(e, t.data, b, v), (w = (d = r(this, c)).onSettled) == null || w.call(d, t.data, null, b, v)) : (t == null ? void 0 : t.type) === "error" && ((S = (f = r(this, c)).onError) == null || S.call(f, t.error, b, v), (O = (R = r(this, c)).onSettled) == null || O.call(
|
|
71
|
+
R,
|
|
72
|
+
void 0,
|
|
73
|
+
t.error,
|
|
74
|
+
b,
|
|
75
|
+
v
|
|
76
|
+
));
|
|
77
|
+
}
|
|
78
|
+
this.listeners.forEach((b) => {
|
|
79
|
+
b(r(this, m));
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
}, I);
|
|
83
|
+
function et(s, t) {
|
|
84
|
+
const e = z(t), [a] = l.useState(
|
|
85
|
+
() => new A(
|
|
86
|
+
e,
|
|
87
|
+
s
|
|
88
|
+
)
|
|
89
|
+
);
|
|
90
|
+
l.useEffect(() => {
|
|
91
|
+
a.setOptions(s);
|
|
92
|
+
}, [a, s]);
|
|
93
|
+
const d = l.useSyncExternalStore(
|
|
94
|
+
l.useCallback(
|
|
95
|
+
(f) => a.subscribe(U.batchCalls(f)),
|
|
96
|
+
[a]
|
|
97
|
+
),
|
|
98
|
+
() => a.getCurrentResult(),
|
|
99
|
+
() => a.getCurrentResult()
|
|
100
|
+
), w = l.useCallback(
|
|
101
|
+
(f, S) => {
|
|
102
|
+
a.mutate(f, S).catch(P);
|
|
103
|
+
},
|
|
104
|
+
[a]
|
|
105
|
+
);
|
|
106
|
+
if (d.error && V(a.options.throwOnError, [d.error]))
|
|
107
|
+
throw d.error;
|
|
108
|
+
return { ...d, mutate: w, mutateAsync: d.mutate };
|
|
109
|
+
}
|
|
110
|
+
const st = o.Root, at = o.Group, rt = o.Value, Q = l.forwardRef(({ className: s, children: t, ...e }, a) => /* @__PURE__ */ i.jsxs(
|
|
111
|
+
o.Trigger,
|
|
112
|
+
{
|
|
113
|
+
ref: a,
|
|
114
|
+
className: p(
|
|
115
|
+
"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
116
|
+
s
|
|
117
|
+
),
|
|
118
|
+
...e,
|
|
119
|
+
children: [
|
|
120
|
+
/* @__PURE__ */ i.jsx("span", { className: "truncate", children: t }),
|
|
121
|
+
/* @__PURE__ */ i.jsx(o.Icon, { asChild: !0, children: /* @__PURE__ */ i.jsx(k, { className: "flex-shrink-0 h-4 w-4 opacity-50" }) })
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
));
|
|
125
|
+
Q.displayName = o.Trigger.displayName;
|
|
126
|
+
const B = l.forwardRef(({ className: s, ...t }, e) => /* @__PURE__ */ i.jsx(
|
|
127
|
+
o.ScrollUpButton,
|
|
128
|
+
{
|
|
129
|
+
ref: e,
|
|
130
|
+
className: p(
|
|
131
|
+
"flex cursor-default items-center justify-center py-1",
|
|
132
|
+
s
|
|
133
|
+
),
|
|
134
|
+
...t,
|
|
135
|
+
children: /* @__PURE__ */ i.jsx(G, { className: "h-4 w-4" })
|
|
136
|
+
}
|
|
137
|
+
));
|
|
138
|
+
B.displayName = o.ScrollUpButton.displayName;
|
|
139
|
+
const D = l.forwardRef(({ className: s, ...t }, e) => /* @__PURE__ */ i.jsx(
|
|
140
|
+
o.ScrollDownButton,
|
|
141
|
+
{
|
|
142
|
+
ref: e,
|
|
143
|
+
className: p(
|
|
144
|
+
"flex cursor-default items-center justify-center py-1",
|
|
145
|
+
s
|
|
146
|
+
),
|
|
147
|
+
...t,
|
|
148
|
+
children: /* @__PURE__ */ i.jsx(k, { className: "h-4 w-4" })
|
|
149
|
+
}
|
|
150
|
+
));
|
|
151
|
+
D.displayName = o.ScrollDownButton.displayName;
|
|
152
|
+
const F = l.forwardRef(({ className: s, children: t, position: e = "popper", ...a }, d) => /* @__PURE__ */ i.jsx(o.Portal, { children: /* @__PURE__ */ i.jsxs(
|
|
153
|
+
o.Content,
|
|
154
|
+
{
|
|
155
|
+
ref: d,
|
|
156
|
+
className: p(
|
|
157
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
158
|
+
e === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
159
|
+
s
|
|
160
|
+
),
|
|
161
|
+
position: e,
|
|
162
|
+
...a,
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ i.jsx(B, {}),
|
|
165
|
+
/* @__PURE__ */ i.jsx(
|
|
166
|
+
o.Viewport,
|
|
167
|
+
{
|
|
168
|
+
className: p(
|
|
169
|
+
e === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",
|
|
170
|
+
"divide-y"
|
|
171
|
+
),
|
|
172
|
+
children: t
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
/* @__PURE__ */ i.jsx(D, {})
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
) }));
|
|
179
|
+
F.displayName = o.Content.displayName;
|
|
180
|
+
const H = l.forwardRef(({ className: s, ...t }, e) => /* @__PURE__ */ i.jsx(
|
|
181
|
+
o.Label,
|
|
182
|
+
{
|
|
183
|
+
ref: e,
|
|
184
|
+
className: p("py-1.5 pl-8 pr-2 text-sm font-semibold", s),
|
|
185
|
+
...t
|
|
186
|
+
}
|
|
187
|
+
));
|
|
188
|
+
H.displayName = o.Label.displayName;
|
|
189
|
+
const J = l.forwardRef(({ className: s, children: t, ...e }, a) => /* @__PURE__ */ i.jsxs(
|
|
190
|
+
o.Item,
|
|
191
|
+
{
|
|
192
|
+
ref: a,
|
|
193
|
+
className: p(
|
|
194
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
195
|
+
s
|
|
196
|
+
),
|
|
197
|
+
...e,
|
|
198
|
+
children: [
|
|
199
|
+
/* @__PURE__ */ i.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ i.jsx(o.ItemIndicator, { children: /* @__PURE__ */ i.jsx(q, { className: "h-4 w-4" }) }) }),
|
|
200
|
+
/* @__PURE__ */ i.jsx(o.ItemText, { children: t })
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
));
|
|
204
|
+
J.displayName = o.Item.displayName;
|
|
205
|
+
const W = l.forwardRef(({ className: s, ...t }, e) => /* @__PURE__ */ i.jsx(
|
|
206
|
+
o.Separator,
|
|
207
|
+
{
|
|
208
|
+
ref: e,
|
|
209
|
+
className: p("-mx-1 my-1 h-px bg-muted", s),
|
|
210
|
+
...t
|
|
211
|
+
}
|
|
212
|
+
));
|
|
213
|
+
W.displayName = o.Separator.displayName;
|
|
214
|
+
export {
|
|
215
|
+
st as S,
|
|
216
|
+
Q as a,
|
|
217
|
+
rt as b,
|
|
218
|
+
F as c,
|
|
219
|
+
at as d,
|
|
220
|
+
J as e,
|
|
221
|
+
et as u
|
|
222
|
+
};
|
|
223
|
+
//# sourceMappingURL=Select-D9hI1G-y.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select-D9CKL33X.js","sources":["../../../node_modules/.pnpm/@tanstack+query-core@5.64.2/node_modules/@tanstack/query-core/build/modern/mutationObserver.js","../../../node_modules/.pnpm/@tanstack+react-query@5.64.2_react@19.0.0/node_modules/@tanstack/react-query/build/modern/useMutation.js","../src/lib/ui/Select.tsx"],"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","import * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { Check, ChevronDown, ChevronUp } from \"lucide-react\";\nimport * as React from \"react\";\nimport { cn } from \"../util/cn.js\";\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n {...props}\n >\n <span className=\"truncate\">{children}</span>\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"flex-shrink-0 h-4 w-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronUp className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronDown className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n \"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\",\n \"divide-y\",\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn(\"py-1.5 pl-8 pr-2 text-sm font-semibold\", className)}\n {...props}\n />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n"],"names":["MutationObserver","_a","Subscribable","client","options","__privateAdd","_MutationObserver_instances","_client","_currentResult","_currentMutation","_mutateOptions","__privateSet","__privateMethod","updateResult_fn","prevOptions","__privateGet","shallowEqualObjects","hashKey","action","notify_fn","variables","state","getDefaultState","notifyManager","context","_b","_d","_c","_f","_e","_h","_g","listener","useMutation","queryClient","useQueryClient","observer","React","result","onStoreChange","mutate","mutateOptions","noop","shouldThrowError","Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","className","children","props","ref","jsxs","cn","jsx","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","Check","SelectSeparator"],"mappings":";;;;;;;;;;;;4BAKIA,KAAmBC,IAAA,cAAcC,EAAa;AAAA,EAKhD,YAAYC,GAAQC,GAAS;AAC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;AAAA,EAACR,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAO;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAL;AAAA,IACF;AAAA,IACC,GAAGE;AAAA,IAEJ,UAAA;AAAA,MAAAI,gBAAAA,EAAA,IAAC,QAAK,EAAA,WAAU,gEACd,UAAAA,gBAAAA,EAAA,IAACV,EAAgB,eAAhB,EACC,UAAAU,gBAAAA,EAAA,IAACS,GAAM,EAAA,WAAU,UAAU,CAAA,EAC7B,CAAA,GACF;AAAA,MAECT,gBAAAA,EAAAA,IAAAV,EAAgB,UAAhB,EAA0B,UAAAK,EAAS,CAAA;AAAA,IAAA;AAAA,EAAA;AACtC,CACD;AACDa,EAAW,cAAclB,EAAgB,KAAK;AAE9C,MAAMoB,IAAkB5B,EAAM,WAG5B,CAAC,EAAE,WAAAY,GAAW,GAAGE,EAAM,GAAGC,MAC1BG,gBAAAA,EAAA;AAAA,EAACV,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAO;AAAA,IACA,WAAWE,EAAG,4BAA4BL,CAAS;AAAA,IAClD,GAAGE;AAAA,EAAA;AACN,CACD;AACDc,EAAgB,cAAcpB,EAAgB,UAAU;","x_google_ignoreList":[0,1]}
|
|
1
|
+
{"version":3,"file":"Select-D9hI1G-y.js","sources":["../../../node_modules/.pnpm/@tanstack+query-core@5.66.4/node_modules/@tanstack/query-core/build/modern/mutationObserver.js","../../../node_modules/.pnpm/@tanstack+react-query@5.66.6_react@19.0.0/node_modules/@tanstack/react-query/build/modern/useMutation.js","../src/lib/ui/Select.tsx"],"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","import * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { Check, ChevronDown, ChevronUp } from \"lucide-react\";\nimport * as React from \"react\";\nimport { cn } from \"../util/cn.js\";\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n {...props}\n >\n <span className=\"truncate\">{children}</span>\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"flex-shrink-0 h-4 w-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronUp className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronDown className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n \"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\",\n \"divide-y\",\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn(\"py-1.5 pl-8 pr-2 text-sm font-semibold\", className)}\n {...props}\n />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n"],"names":["MutationObserver","_a","Subscribable","client","options","__privateAdd","_MutationObserver_instances","_client","_currentResult","_currentMutation","_mutateOptions","__privateSet","__privateMethod","updateResult_fn","prevOptions","__privateGet","shallowEqualObjects","hashKey","action","notify_fn","variables","state","getDefaultState","notifyManager","context","_b","_d","_c","_f","_e","_h","_g","listener","useMutation","queryClient","useQueryClient","observer","React","result","onStoreChange","mutate","mutateOptions","noop","shouldThrowError","Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","className","children","props","ref","jsxs","cn","jsx","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","Check","SelectSeparator"],"mappings":";;;;;;;;;;;;4BAKIA,KAAmBC,IAAA,cAAcC,EAAa;AAAA,EAKhD,YAAYC,GAAQC,GAAS;AAC3B,UAAO;AANY,IAAAC,EAAA,MAAAC;AACrB,IAAAD,EAAA,MAAAE;AACA,IAAAF,EAAA,MAAAG;AACA,IAAAH,EAAA,MAAAI;AACA,IAAAJ,EAAA,MAAAK;AAGE,IAAAC,EAAA,MAAKJ,GAAUJ,IACf,KAAK,WAAWC,CAAO,GACvB,KAAK,YAAa,GAClBQ,EAAA,MAAKN,GAAAO,GAAL;AAAA,EACJ;AAAA,EACE,cAAc;AACZ,SAAK,SAAS,KAAK,OAAO,KAAK,IAAI,GACnC,KAAK,QAAQ,KAAK,MAAM,KAAK,IAAI;AAAA,EACrC;AAAA,EACE,WAAWT,GAAS;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,IAAA;AAAA,EAAA;AACtC,CACD;AACDa,EAAW,cAAclB,EAAgB,KAAK;AAE9C,MAAMoB,IAAkB5B,EAAM,WAG5B,CAAC,EAAE,WAAAY,GAAW,GAAGE,EAAM,GAAGC,MAC1BG,gBAAAA,EAAA;AAAA,EAACV,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAO;AAAA,IACA,WAAWE,EAAG,4BAA4BL,CAAS;AAAA,IAClD,GAAGE;AAAA,EAAA;AACN,CACD;AACDc,EAAgB,cAAcpB,EAAgB,UAAU;","x_google_ignoreList":[0,1]}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { c as N, L as Y, g as $, i as O } from "./chunk-
|
|
1
|
+
import { j as n } from "./jsx-runtime-CYK1ROHF.js";
|
|
2
|
+
import { c as N, L as Y, g as $, i as O } from "./chunk-IR6S3I6Y-D_3UmFIn.js";
|
|
3
3
|
import { UnlinkIcon as w } from "lucide-react";
|
|
4
|
-
import { C as M } from "./CategoryHeading-
|
|
4
|
+
import { C as M } from "./CategoryHeading-DpB47wvk.js";
|
|
5
5
|
import { Callout as b } from "./ui/Callout.js";
|
|
6
|
-
import { M as F,
|
|
6
|
+
import { M as F, H as L, P as I } from "./Markdown-Cr9sYpR_.js";
|
|
7
7
|
import { Z as C } from "./invariant-Caa8-XvF.js";
|
|
8
8
|
import v, { useContext as k } from "react";
|
|
9
|
-
import { u as D } from "./useExposedProps-
|
|
9
|
+
import { u as D } from "./useExposedProps-RIvey2Oy.js";
|
|
10
10
|
const g = ({
|
|
11
11
|
children: r,
|
|
12
12
|
className: s
|
|
13
13
|
}) => {
|
|
14
14
|
if (process.env.NODE_ENV === "development")
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
typeof r == "string" ? /* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ n.jsx(b, { type: "caution", title: "Developer hint", className: s, children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
16
|
+
typeof r == "string" ? /* @__PURE__ */ n.jsx(F, { content: r }) : /* @__PURE__ */ n.jsx("div", { children: r }),
|
|
17
|
+
/* @__PURE__ */ n.jsx("small", { className: "italic", children: "Note: This hint is only shown in development mode." })
|
|
18
18
|
] }) });
|
|
19
19
|
}, U = () => {
|
|
20
20
|
const r = N();
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ n.jsxs("div", { className: I + " h-full pt-[--padding-content-top]", children: [
|
|
22
|
+
/* @__PURE__ */ n.jsx(M, { children: "404" }),
|
|
23
|
+
/* @__PURE__ */ n.jsxs(L, { level: 1, className: "flex gap-3.5 items-center", children: [
|
|
24
24
|
"Page not found",
|
|
25
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ n.jsx(w, { size: 24 })
|
|
26
26
|
] }),
|
|
27
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ n.jsxs(g, { children: [
|
|
28
28
|
"Start by adding a file at",
|
|
29
29
|
" ",
|
|
30
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ n.jsxs("code", { children: [
|
|
31
31
|
"{PROJECT_ROOT}",
|
|
32
32
|
"/",
|
|
33
33
|
r["*"],
|
|
@@ -36,22 +36,22 @@ const g = ({
|
|
|
36
36
|
" ",
|
|
37
37
|
"and add some content to make this error go away."
|
|
38
38
|
] }),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ n.jsx("p", { children: "It seems that the page you are looking for does not exist or may have been moved. Please check the URL for any typos or use the navigation menu to find the correct page." }),
|
|
40
|
+
/* @__PURE__ */ n.jsx(Y, { to: "/", children: "Go back home" })
|
|
41
41
|
] });
|
|
42
42
|
};
|
|
43
43
|
function z({ error: r }) {
|
|
44
|
-
const s = r instanceof Error ? r.message : "Something went wrong", a = r instanceof C ? r.developerHint : void 0, c = r instanceof C ? r.title : "Something went wrong",
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
a && /* @__PURE__ */
|
|
49
|
-
|
|
44
|
+
const s = r instanceof Error ? r.message : "Something went wrong", a = r instanceof C ? r.developerHint : void 0, c = r instanceof C ? r.title : "Something went wrong", l = r instanceof Error ? r.stack : void 0, u = r instanceof Error ? r.cause : void 0;
|
|
45
|
+
return /* @__PURE__ */ n.jsx("div", { className: "flex h-screen max-h-[calc(100vh-var(--header-height))] min-h-full items-center justify-center bg-primary-background px-4 py-16 lg:px-8", children: /* @__PURE__ */ n.jsxs("div", { className: "mx-auto max-w-[85%] sm:max-w-[50%]", children: [
|
|
46
|
+
/* @__PURE__ */ n.jsx("h1", { className: "text-4xl font-bold tracking-tight text-h1-text sm:text-5xl", children: c }),
|
|
47
|
+
/* @__PURE__ */ n.jsx("p", { className: "mt-5 text-h1-text", children: s }),
|
|
48
|
+
a && /* @__PURE__ */ n.jsx(g, { className: "mb-4", children: a }),
|
|
49
|
+
u instanceof Error ? /* @__PURE__ */ n.jsx("pre", { className: "mt-5 max-h-[400px] w-full overflow-scroll rounded-md border border-input-border bg-input-background p-3 text-property-name-text text-red-700", children: u.stack }) : l ? /* @__PURE__ */ n.jsx("pre", { className: "mt-5 max-h-[400px] w-full overflow-scroll rounded-md border border-input-border bg-input-background p-3 text-property-name-text text-red-700", children: l }) : null
|
|
50
50
|
] }) });
|
|
51
51
|
}
|
|
52
52
|
function re() {
|
|
53
53
|
const r = $();
|
|
54
|
-
return O(r) && r.status === 404 ? /* @__PURE__ */
|
|
54
|
+
return O(r) && r.status === 404 ? /* @__PURE__ */ n.jsx(U, {}) : /* @__PURE__ */ n.jsx(z, { error: r });
|
|
55
55
|
}
|
|
56
56
|
var R = { exports: {} }, t = {};
|
|
57
57
|
/**
|
|
@@ -67,7 +67,7 @@ var P;
|
|
|
67
67
|
function q() {
|
|
68
68
|
if (P) return t;
|
|
69
69
|
P = 1;
|
|
70
|
-
var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"),
|
|
70
|
+
var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.consumer"), f = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), S = Symbol.for("react.client.reference");
|
|
71
71
|
function i(e) {
|
|
72
72
|
if (typeof e == "object" && e !== null) {
|
|
73
73
|
var T = e.$$typeof;
|
|
@@ -75,7 +75,7 @@ function q() {
|
|
|
75
75
|
case r:
|
|
76
76
|
switch (e = e.type, e) {
|
|
77
77
|
case a:
|
|
78
|
-
case
|
|
78
|
+
case l:
|
|
79
79
|
case c:
|
|
80
80
|
case E:
|
|
81
81
|
case d:
|
|
@@ -87,7 +87,7 @@ function q() {
|
|
|
87
87
|
case _:
|
|
88
88
|
case p:
|
|
89
89
|
return e;
|
|
90
|
-
case
|
|
90
|
+
case u:
|
|
91
91
|
return e;
|
|
92
92
|
default:
|
|
93
93
|
return T;
|
|
@@ -98,8 +98,8 @@ function q() {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
return t.ContextConsumer =
|
|
102
|
-
return i(e) ===
|
|
101
|
+
return t.ContextConsumer = u, t.ContextProvider = f, t.Element = r, t.ForwardRef = m, t.Fragment = a, t.Lazy = _, t.Memo = p, t.Portal = s, t.Profiler = l, t.StrictMode = c, t.Suspense = E, t.SuspenseList = d, t.isContextConsumer = function(e) {
|
|
102
|
+
return i(e) === u;
|
|
103
103
|
}, t.isContextProvider = function(e) {
|
|
104
104
|
return i(e) === f;
|
|
105
105
|
}, t.isElement = function(e) {
|
|
@@ -115,7 +115,7 @@ function q() {
|
|
|
115
115
|
}, t.isPortal = function(e) {
|
|
116
116
|
return i(e) === s;
|
|
117
117
|
}, t.isProfiler = function(e) {
|
|
118
|
-
return i(e) ===
|
|
118
|
+
return i(e) === l;
|
|
119
119
|
}, t.isStrictMode = function(e) {
|
|
120
120
|
return i(e) === c;
|
|
121
121
|
}, t.isSuspense = function(e) {
|
|
@@ -123,10 +123,10 @@ function q() {
|
|
|
123
123
|
}, t.isSuspenseList = function(e) {
|
|
124
124
|
return i(e) === d;
|
|
125
125
|
}, t.isValidElementType = function(e) {
|
|
126
|
-
return typeof e == "string" || typeof e == "function" || e === a || e ===
|
|
126
|
+
return typeof e == "string" || typeof e == "function" || e === a || e === l || e === c || e === E || e === d || e === x || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === p || e.$$typeof === f || e.$$typeof === u || e.$$typeof === m || e.$$typeof === S || e.getModuleId !== void 0);
|
|
127
127
|
}, t.typeOf = i, t;
|
|
128
128
|
}
|
|
129
|
-
var
|
|
129
|
+
var o = {};
|
|
130
130
|
/**
|
|
131
131
|
* @license React
|
|
132
132
|
* react-is.development.js
|
|
@@ -146,8 +146,8 @@ function V() {
|
|
|
146
146
|
case s:
|
|
147
147
|
switch (e = e.type, e) {
|
|
148
148
|
case c:
|
|
149
|
-
case l:
|
|
150
149
|
case u:
|
|
150
|
+
case l:
|
|
151
151
|
case d:
|
|
152
152
|
case p:
|
|
153
153
|
return e;
|
|
@@ -169,35 +169,35 @@ function V() {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
var s = Symbol.for("react.transitional.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"),
|
|
173
|
-
|
|
172
|
+
var s = Symbol.for("react.transitional.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.consumer"), m = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), i = Symbol.for("react.client.reference");
|
|
173
|
+
o.ContextConsumer = f, o.ContextProvider = m, o.Element = s, o.ForwardRef = E, o.Fragment = c, o.Lazy = x, o.Memo = _, o.Portal = a, o.Profiler = u, o.StrictMode = l, o.Suspense = d, o.SuspenseList = p, o.isContextConsumer = function(e) {
|
|
174
174
|
return r(e) === f;
|
|
175
|
-
},
|
|
175
|
+
}, o.isContextProvider = function(e) {
|
|
176
176
|
return r(e) === m;
|
|
177
|
-
},
|
|
177
|
+
}, o.isElement = function(e) {
|
|
178
178
|
return typeof e == "object" && e !== null && e.$$typeof === s;
|
|
179
|
-
},
|
|
179
|
+
}, o.isForwardRef = function(e) {
|
|
180
180
|
return r(e) === E;
|
|
181
|
-
},
|
|
181
|
+
}, o.isFragment = function(e) {
|
|
182
182
|
return r(e) === c;
|
|
183
|
-
},
|
|
183
|
+
}, o.isLazy = function(e) {
|
|
184
184
|
return r(e) === x;
|
|
185
|
-
},
|
|
185
|
+
}, o.isMemo = function(e) {
|
|
186
186
|
return r(e) === _;
|
|
187
|
-
},
|
|
187
|
+
}, o.isPortal = function(e) {
|
|
188
188
|
return r(e) === a;
|
|
189
|
-
},
|
|
190
|
-
return r(e) === l;
|
|
191
|
-
}, n.isStrictMode = function(e) {
|
|
189
|
+
}, o.isProfiler = function(e) {
|
|
192
190
|
return r(e) === u;
|
|
193
|
-
},
|
|
191
|
+
}, o.isStrictMode = function(e) {
|
|
192
|
+
return r(e) === l;
|
|
193
|
+
}, o.isSuspense = function(e) {
|
|
194
194
|
return r(e) === d;
|
|
195
|
-
},
|
|
195
|
+
}, o.isSuspenseList = function(e) {
|
|
196
196
|
return r(e) === p;
|
|
197
|
-
},
|
|
198
|
-
return typeof e == "string" || typeof e == "function" || e === c || e ===
|
|
199
|
-
},
|
|
200
|
-
}()),
|
|
197
|
+
}, o.isValidElementType = function(e) {
|
|
198
|
+
return typeof e == "string" || typeof e == "function" || e === c || e === u || e === l || e === d || e === p || e === S || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === _ || e.$$typeof === m || e.$$typeof === f || e.$$typeof === E || e.$$typeof === i || e.getModuleId !== void 0);
|
|
199
|
+
}, o.typeOf = r;
|
|
200
|
+
}()), o;
|
|
201
201
|
}
|
|
202
202
|
var y;
|
|
203
203
|
function H() {
|
|
@@ -207,7 +207,7 @@ var j = /* @__PURE__ */ H();
|
|
|
207
207
|
const A = v.createContext({}), te = ({
|
|
208
208
|
slotlets: r,
|
|
209
209
|
children: s
|
|
210
|
-
}) => /* @__PURE__ */
|
|
210
|
+
}) => /* @__PURE__ */ n.jsx(A.Provider, { value: r, children: s }), oe = ({ name: r }) => {
|
|
211
211
|
const s = k(A), a = s == null ? void 0 : s[r], c = D();
|
|
212
212
|
return j.isValidElementType(a) ? v.createElement(a, c) : a;
|
|
213
213
|
};
|
|
@@ -215,7 +215,7 @@ export {
|
|
|
215
215
|
g as D,
|
|
216
216
|
z as E,
|
|
217
217
|
re as R,
|
|
218
|
-
|
|
218
|
+
oe as S,
|
|
219
219
|
te as a
|
|
220
220
|
};
|
|
221
|
-
//# sourceMappingURL=SlotletProvider-
|
|
221
|
+
//# sourceMappingURL=SlotletProvider-CEfNOA8i.js.map
|