@instantdb/components 1.0.4 → 1.0.5
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/.turbo/turbo-build.log +5 -5
- package/dist/components/explorer/inner-explorer.d.ts.map +1 -1
- package/dist/hooks/__tests__/explorer.test.d.ts +2 -0
- package/dist/hooks/__tests__/explorer.test.d.ts.map +1 -0
- package/dist/hooks/explorer.d.ts +4 -0
- package/dist/hooks/explorer.d.ts.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.js +203 -192
- package/package.json +6 -6
- package/src/components/explorer/inner-explorer.tsx +16 -3
- package/src/hooks/__tests__/explorer.test.ts +109 -0
- package/src/hooks/explorer.tsx +13 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as h, jsx as r, Fragment as j } from "react/jsx-runtime";
|
|
2
2
|
import { toast as Nt, Toaster as fa } from "sonner";
|
|
3
|
-
import { Toaster as
|
|
3
|
+
import { Toaster as rl, toast as al } from "sonner";
|
|
4
4
|
import { VisuallyHidden as ma } from "@radix-ui/react-visually-hidden";
|
|
5
5
|
import { Editor as ba, DiffEditor as wa } from "@monaco-editor/react";
|
|
6
6
|
import _e from "clsx";
|
|
@@ -711,7 +711,10 @@ function Pn(e) {
|
|
|
711
711
|
function Jt(e, t) {
|
|
712
712
|
return e.name === "id" ? -1 : t.name === "id" ? 1 : e.name < t.name ? -1 : e.name > t.name ? 1 : 0;
|
|
713
713
|
}
|
|
714
|
-
function qn(e, t) {
|
|
714
|
+
function qn(e, t, a) {
|
|
715
|
+
return t || (e ? [] : a);
|
|
716
|
+
}
|
|
717
|
+
function Gn(e, t) {
|
|
715
718
|
const a = {};
|
|
716
719
|
return e && (a[e[0]] = e[1]), t?.length && (a.or = t.map(([n, o, l]) => {
|
|
717
720
|
switch (o) {
|
|
@@ -724,8 +727,8 @@ function qn(e, t) {
|
|
|
724
727
|
}
|
|
725
728
|
})), a;
|
|
726
729
|
}
|
|
727
|
-
function
|
|
728
|
-
const c = g ? "asc" : "desc", p =
|
|
730
|
+
function Hn(e, t, a, n, o, l, i, g) {
|
|
731
|
+
const c = g ? "asc" : "desc", p = Gn(a, n), m = t ? {
|
|
729
732
|
[t.name]: {
|
|
730
733
|
...Object.fromEntries(
|
|
731
734
|
t.attrs.filter((f) => f.type === "ref").map((f) => [f.name, { $: { fields: ["id"] } }])
|
|
@@ -752,7 +755,7 @@ function Gn(e, t, a, n, o, l, i, g) {
|
|
|
752
755
|
allCount: s
|
|
753
756
|
};
|
|
754
757
|
}
|
|
755
|
-
function
|
|
758
|
+
function Wn(e) {
|
|
756
759
|
const [t, a] = C({ namespaces: null, attrs: null });
|
|
757
760
|
return e.useQuery({ ____explorer___: {} }), P(() => {
|
|
758
761
|
function n(o) {
|
|
@@ -773,7 +776,7 @@ const er = (e) => {
|
|
|
773
776
|
} catch (a) {
|
|
774
777
|
return console.error("Failed to parse column visibility", a), {};
|
|
775
778
|
}
|
|
776
|
-
},
|
|
779
|
+
}, Vn = (e) => {
|
|
777
780
|
const [t, a] = C(
|
|
778
781
|
er(e.appId)
|
|
779
782
|
);
|
|
@@ -795,7 +798,7 @@ function tr(e) {
|
|
|
795
798
|
} catch {
|
|
796
799
|
}
|
|
797
800
|
}
|
|
798
|
-
function
|
|
801
|
+
function Yn(e, t) {
|
|
799
802
|
if (typeof window > "u")
|
|
800
803
|
throw new Error("useLocalStorage/setState needs to run on the client");
|
|
801
804
|
const a = JSON.stringify(t);
|
|
@@ -822,9 +825,9 @@ function Rt(e, t) {
|
|
|
822
825
|
n,
|
|
823
826
|
() => a.current,
|
|
824
827
|
() => t
|
|
825
|
-
), (l) =>
|
|
828
|
+
), (l) => Yn(e, l)];
|
|
826
829
|
}
|
|
827
|
-
function
|
|
830
|
+
function Kn(e) {
|
|
828
831
|
const t = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"];
|
|
829
832
|
let a = 0;
|
|
830
833
|
if (!e) return "0 bytes";
|
|
@@ -832,7 +835,7 @@ function Yn(e) {
|
|
|
832
835
|
e /= 1024, a++;
|
|
833
836
|
return e.toFixed(2) + " " + t[a];
|
|
834
837
|
}
|
|
835
|
-
const
|
|
838
|
+
const Xn = (e, t) => {
|
|
836
839
|
const a = document.querySelector(`.th-${e}`);
|
|
837
840
|
if (!a)
|
|
838
841
|
throw new Error(`Element with class th-${e} not found`);
|
|
@@ -852,7 +855,7 @@ const Kn = (e, t) => {
|
|
|
852
855
|
document.body.removeChild(o);
|
|
853
856
|
}
|
|
854
857
|
};
|
|
855
|
-
function
|
|
858
|
+
function Zn() {
|
|
856
859
|
const e = X(null), [t, a] = C(!1);
|
|
857
860
|
return yt(() => {
|
|
858
861
|
const { current: n } = e;
|
|
@@ -862,7 +865,7 @@ function Xn() {
|
|
|
862
865
|
})();
|
|
863
866
|
}, [e]), { ref: e, isOverflow: t, setIsOverflow: a };
|
|
864
867
|
}
|
|
865
|
-
const
|
|
868
|
+
const Qn = ({
|
|
866
869
|
header: e,
|
|
867
870
|
table: t,
|
|
868
871
|
headerGroup: a,
|
|
@@ -973,11 +976,11 @@ const Zn = ({
|
|
|
973
976
|
},
|
|
974
977
|
e.id
|
|
975
978
|
);
|
|
976
|
-
},
|
|
979
|
+
}, Jn = ({ cell: e }) => {
|
|
977
980
|
const t = e.column.getIsResizing(), { history: a } = ut(), n = e.column.columnDef.meta, { isDragging: o, setNodeRef: l, transform: i } = yr({
|
|
978
981
|
id: e.column.id,
|
|
979
982
|
disabled: e.column.id === "select-col"
|
|
980
|
-
}), [g, c] = C(!1), { ref: p, isOverflow: m, setIsOverflow: d } =
|
|
983
|
+
}), [g, c] = C(!1), { ref: p, isOverflow: m, setIsOverflow: d } = Zn(), u = (m || Se(e.getValue())) && !n?.isLink;
|
|
981
984
|
P(() => {
|
|
982
985
|
const w = new ResizeObserver(() => {
|
|
983
986
|
const v = p.current.scrollWidth > p.current.clientWidth || p.current.scrollHeight > p.current.clientHeight;
|
|
@@ -1040,7 +1043,7 @@ const Zn = ({
|
|
|
1040
1043
|
{
|
|
1041
1044
|
className: O(Se(b) && "p-0"),
|
|
1042
1045
|
side: "bottom",
|
|
1043
|
-
children: typeof b == "string" ? lt(e.column.columnDef.cell, e.getContext()) : /* @__PURE__ */ r(
|
|
1046
|
+
children: typeof b == "string" ? lt(e.column.columnDef.cell, e.getContext()) : /* @__PURE__ */ r(eo, { pretty: !0, data: b })
|
|
1044
1047
|
}
|
|
1045
1048
|
)
|
|
1046
1049
|
] });
|
|
@@ -1048,7 +1051,7 @@ const Zn = ({
|
|
|
1048
1051
|
function Tr(e, t) {
|
|
1049
1052
|
return Se(e) ? JSON.stringify(e, null, t ? 2 : void 0) : String(e);
|
|
1050
1053
|
}
|
|
1051
|
-
function
|
|
1054
|
+
function eo({ data: e, pretty: t }) {
|
|
1052
1055
|
const a = Tr(e, t), n = de();
|
|
1053
1056
|
return t && Se(e) ? /* @__PURE__ */ r(
|
|
1054
1057
|
$t,
|
|
@@ -1059,7 +1062,7 @@ function Jn({ data: e, pretty: t }) {
|
|
|
1059
1062
|
}
|
|
1060
1063
|
) : /* @__PURE__ */ r(j, { children: a });
|
|
1061
1064
|
}
|
|
1062
|
-
const
|
|
1065
|
+
const to = ({
|
|
1063
1066
|
visiblity: e,
|
|
1064
1067
|
localDates: t,
|
|
1065
1068
|
setLocalDates: a
|
|
@@ -1119,7 +1122,7 @@ const eo = ({
|
|
|
1119
1122
|
)
|
|
1120
1123
|
] });
|
|
1121
1124
|
};
|
|
1122
|
-
async function
|
|
1125
|
+
async function ro({
|
|
1123
1126
|
appId: e,
|
|
1124
1127
|
attrId: t,
|
|
1125
1128
|
jobType: a,
|
|
@@ -1174,7 +1177,7 @@ function me(e) {
|
|
|
1174
1177
|
function be(e) {
|
|
1175
1178
|
return e.job_status === "completed" || e.job_status === "errored";
|
|
1176
1179
|
}
|
|
1177
|
-
const
|
|
1180
|
+
const ao = ({
|
|
1178
1181
|
attr: e,
|
|
1179
1182
|
appId: t,
|
|
1180
1183
|
isRequired: a,
|
|
@@ -1253,7 +1256,7 @@ const ro = ({
|
|
|
1253
1256
|
running: p,
|
|
1254
1257
|
apply: w
|
|
1255
1258
|
};
|
|
1256
|
-
},
|
|
1259
|
+
}, no = () => {
|
|
1257
1260
|
const [e, t] = C({});
|
|
1258
1261
|
return {
|
|
1259
1262
|
notes: e,
|
|
@@ -1267,7 +1270,7 @@ const ro = ({
|
|
|
1267
1270
|
});
|
|
1268
1271
|
}
|
|
1269
1272
|
};
|
|
1270
|
-
},
|
|
1273
|
+
}, oo = (e, t, a) => {
|
|
1271
1274
|
const n = t.name, o = [];
|
|
1272
1275
|
return t.attrs.forEach((l) => {
|
|
1273
1276
|
o.push([
|
|
@@ -1297,7 +1300,7 @@ const ro = ({
|
|
|
1297
1300
|
});
|
|
1298
1301
|
}), o;
|
|
1299
1302
|
};
|
|
1300
|
-
function
|
|
1303
|
+
function io({
|
|
1301
1304
|
db: e,
|
|
1302
1305
|
namespace: t,
|
|
1303
1306
|
namespaces: a,
|
|
@@ -1318,7 +1321,7 @@ function oo({
|
|
|
1318
1321
|
f("Namespace name cannot start with $");
|
|
1319
1322
|
return;
|
|
1320
1323
|
}
|
|
1321
|
-
const _ =
|
|
1324
|
+
const _ = oo(x, t, a);
|
|
1322
1325
|
await e.core._reactor.pushOps(_), g.push(
|
|
1323
1326
|
{
|
|
1324
1327
|
namespace: x
|
|
@@ -1326,7 +1329,7 @@ function oo({
|
|
|
1326
1329
|
!0
|
|
1327
1330
|
), oe("Renamed namespace to " + x), u(""), m({ type: "main" });
|
|
1328
1331
|
}
|
|
1329
|
-
const v =
|
|
1332
|
+
const v = no(), k = se(() => p.type === "edit" && t.attrs.find(
|
|
1330
1333
|
(x) => x.id === p.attrId && x.isForward === p.isForward
|
|
1331
1334
|
), [
|
|
1332
1335
|
p.type === "edit" ? p.attrId : null,
|
|
@@ -1471,7 +1474,7 @@ function oo({
|
|
|
1471
1474
|
}
|
|
1472
1475
|
)
|
|
1473
1476
|
] }) : p.type === "add" ? /* @__PURE__ */ r(
|
|
1474
|
-
|
|
1477
|
+
lo,
|
|
1475
1478
|
{
|
|
1476
1479
|
db: e,
|
|
1477
1480
|
namespace: t,
|
|
@@ -1491,7 +1494,7 @@ function oo({
|
|
|
1491
1494
|
onConfirm: b
|
|
1492
1495
|
}
|
|
1493
1496
|
) : p.type === "edit" && k ? /* @__PURE__ */ r(
|
|
1494
|
-
|
|
1497
|
+
bo,
|
|
1495
1498
|
{
|
|
1496
1499
|
db: e,
|
|
1497
1500
|
attr: k,
|
|
@@ -1545,7 +1548,7 @@ function _r({
|
|
|
1545
1548
|
] })
|
|
1546
1549
|
] });
|
|
1547
1550
|
}
|
|
1548
|
-
function
|
|
1551
|
+
function lo({
|
|
1549
1552
|
db: e,
|
|
1550
1553
|
namespace: t,
|
|
1551
1554
|
namespaces: a,
|
|
@@ -1980,7 +1983,7 @@ function Dr({
|
|
|
1980
1983
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
1981
1984
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Relationship" }),
|
|
1982
1985
|
/* @__PURE__ */ r(
|
|
1983
|
-
|
|
1986
|
+
so,
|
|
1984
1987
|
{
|
|
1985
1988
|
disabled: !v || w.attr.disabled,
|
|
1986
1989
|
value: o,
|
|
@@ -1998,7 +2001,7 @@ function Dr({
|
|
|
1998
2001
|
"div",
|
|
1999
2002
|
{
|
|
2000
2003
|
className: "text-xs wrap-break-word text-gray-500 dark:text-neutral-400",
|
|
2001
|
-
children: v ?
|
|
2004
|
+
children: v ? co[o](
|
|
2002
2005
|
a,
|
|
2003
2006
|
n,
|
|
2004
2007
|
e,
|
|
@@ -2069,7 +2072,7 @@ function Dr({
|
|
|
2069
2072
|
] })
|
|
2070
2073
|
] });
|
|
2071
2074
|
}
|
|
2072
|
-
function
|
|
2075
|
+
function so({
|
|
2073
2076
|
value: e,
|
|
2074
2077
|
disabled: t,
|
|
2075
2078
|
onChange: a,
|
|
@@ -2109,7 +2112,7 @@ function lo({
|
|
|
2109
2112
|
}
|
|
2110
2113
|
);
|
|
2111
2114
|
}
|
|
2112
|
-
const
|
|
2115
|
+
const co = {
|
|
2113
2116
|
"many-many": (e, t, a, n) => /* @__PURE__ */ h(j, { children: [
|
|
2114
2117
|
/* @__PURE__ */ r("strong", { children: e }),
|
|
2115
2118
|
" can have many ",
|
|
@@ -2153,7 +2156,7 @@ const so = {
|
|
|
2153
2156
|
/* @__PURE__ */ r("strong", { children: n })
|
|
2154
2157
|
] })
|
|
2155
2158
|
};
|
|
2156
|
-
async function
|
|
2159
|
+
async function uo({
|
|
2157
2160
|
appId: e,
|
|
2158
2161
|
attr: t,
|
|
2159
2162
|
isRequired: a,
|
|
@@ -2167,7 +2170,7 @@ async function co({
|
|
|
2167
2170
|
l.current?.();
|
|
2168
2171
|
const g = `${t.namespace}.${t.name}`;
|
|
2169
2172
|
try {
|
|
2170
|
-
const c = await
|
|
2173
|
+
const c = await ro(
|
|
2171
2174
|
{
|
|
2172
2175
|
appId: e,
|
|
2173
2176
|
attrId: t.id,
|
|
@@ -2196,7 +2199,7 @@ async function co({
|
|
|
2196
2199
|
return console.error(c), le(`Unexpected error while updating ${g}`), "errored";
|
|
2197
2200
|
}
|
|
2198
2201
|
}
|
|
2199
|
-
const
|
|
2202
|
+
const po = ({
|
|
2200
2203
|
pendingJob: e,
|
|
2201
2204
|
runningJob: t,
|
|
2202
2205
|
value: a,
|
|
@@ -2271,7 +2274,7 @@ const uo = ({
|
|
|
2271
2274
|
}
|
|
2272
2275
|
)
|
|
2273
2276
|
] });
|
|
2274
|
-
},
|
|
2277
|
+
}, go = ({
|
|
2275
2278
|
pendingJob: e,
|
|
2276
2279
|
runningJob: t,
|
|
2277
2280
|
value: a,
|
|
@@ -2327,7 +2330,7 @@ const uo = ({
|
|
|
2327
2330
|
}
|
|
2328
2331
|
)
|
|
2329
2332
|
] });
|
|
2330
|
-
},
|
|
2333
|
+
}, ho = ({
|
|
2331
2334
|
pendingJob: e,
|
|
2332
2335
|
runningJob: t,
|
|
2333
2336
|
value: a,
|
|
@@ -2383,7 +2386,7 @@ const uo = ({
|
|
|
2383
2386
|
}
|
|
2384
2387
|
)
|
|
2385
2388
|
] });
|
|
2386
|
-
},
|
|
2389
|
+
}, fo = ({
|
|
2387
2390
|
pendingJob: e,
|
|
2388
2391
|
runningJob: t,
|
|
2389
2392
|
value: a,
|
|
@@ -2439,14 +2442,14 @@ const uo = ({
|
|
|
2439
2442
|
}
|
|
2440
2443
|
)
|
|
2441
2444
|
] });
|
|
2442
|
-
},
|
|
2445
|
+
}, mo = ({
|
|
2443
2446
|
appId: e,
|
|
2444
2447
|
attr: t,
|
|
2445
2448
|
constraints: a
|
|
2446
2449
|
}) => {
|
|
2447
2450
|
const [n, o] = C(
|
|
2448
2451
|
t.isRequired || !1
|
|
2449
|
-
), [l, i] = C(t.isIndex), [g, c] = C(t.isUniq), [p, m] = C(t.checkedDataType || "any"), d = de(), { isPending: u, pending: s, apply: f, isRunning: b, running: w, progress: v } =
|
|
2452
|
+
), [l, i] = C(t.isIndex), [g, c] = C(t.isUniq), [p, m] = C(t.checkedDataType || "any"), d = de(), { isPending: u, pending: s, apply: f, isRunning: b, running: w, progress: v } = ao({
|
|
2450
2453
|
attr: t,
|
|
2451
2454
|
appId: e,
|
|
2452
2455
|
token: d.adminToken,
|
|
@@ -2458,7 +2461,7 @@ const uo = ({
|
|
|
2458
2461
|
return /* @__PURE__ */ r("div", { children: /* @__PURE__ */ h("div", { className: "flex flex-col gap-2", children: [
|
|
2459
2462
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Constraints" }),
|
|
2460
2463
|
/* @__PURE__ */ r(
|
|
2461
|
-
|
|
2464
|
+
go,
|
|
2462
2465
|
{
|
|
2463
2466
|
pendingJob: s.require,
|
|
2464
2467
|
runningJob: w.require,
|
|
@@ -2470,7 +2473,7 @@ const uo = ({
|
|
|
2470
2473
|
}
|
|
2471
2474
|
),
|
|
2472
2475
|
/* @__PURE__ */ r(
|
|
2473
|
-
|
|
2476
|
+
ho,
|
|
2474
2477
|
{
|
|
2475
2478
|
pendingJob: s.index,
|
|
2476
2479
|
runningJob: w.index,
|
|
@@ -2482,7 +2485,7 @@ const uo = ({
|
|
|
2482
2485
|
}
|
|
2483
2486
|
),
|
|
2484
2487
|
/* @__PURE__ */ r(
|
|
2485
|
-
|
|
2488
|
+
fo,
|
|
2486
2489
|
{
|
|
2487
2490
|
pendingJob: s.unique,
|
|
2488
2491
|
runningJob: w.unique,
|
|
@@ -2494,7 +2497,7 @@ const uo = ({
|
|
|
2494
2497
|
}
|
|
2495
2498
|
),
|
|
2496
2499
|
/* @__PURE__ */ r(
|
|
2497
|
-
|
|
2500
|
+
po,
|
|
2498
2501
|
{
|
|
2499
2502
|
pendingJob: s.type,
|
|
2500
2503
|
runningJob: w.type,
|
|
@@ -2519,7 +2522,7 @@ const uo = ({
|
|
|
2519
2522
|
)
|
|
2520
2523
|
] }) });
|
|
2521
2524
|
};
|
|
2522
|
-
function
|
|
2525
|
+
function bo({
|
|
2523
2526
|
db: e,
|
|
2524
2527
|
attr: t,
|
|
2525
2528
|
onClose: a,
|
|
@@ -2547,7 +2550,7 @@ function mo({
|
|
|
2547
2550
|
async function I() {
|
|
2548
2551
|
if (!t.linkConfig.reverse)
|
|
2549
2552
|
throw new Error("No reverse link config");
|
|
2550
|
-
if (_ !== M && await
|
|
2553
|
+
if (_ !== M && await uo({
|
|
2551
2554
|
appId: l,
|
|
2552
2555
|
attr: t,
|
|
2553
2556
|
isRequired: _,
|
|
@@ -2637,7 +2640,7 @@ function mo({
|
|
|
2637
2640
|
] }),
|
|
2638
2641
|
t.type === "blob" ? /* @__PURE__ */ h(j, { children: [
|
|
2639
2642
|
/* @__PURE__ */ r(
|
|
2640
|
-
|
|
2643
|
+
mo,
|
|
2641
2644
|
{
|
|
2642
2645
|
appId: l,
|
|
2643
2646
|
attr: t,
|
|
@@ -2763,7 +2766,7 @@ const Ge = [
|
|
|
2763
2766
|
{ value: "boolean", label: "boolean" },
|
|
2764
2767
|
{ value: "json", label: "json" }
|
|
2765
2768
|
];
|
|
2766
|
-
function
|
|
2769
|
+
function wo({
|
|
2767
2770
|
onSave: e,
|
|
2768
2771
|
onChange: t,
|
|
2769
2772
|
onKeyDown: a,
|
|
@@ -2798,27 +2801,27 @@ const vt = {
|
|
|
2798
2801
|
boolean: !1,
|
|
2799
2802
|
json: {}
|
|
2800
2803
|
};
|
|
2801
|
-
function
|
|
2804
|
+
function vo(e) {
|
|
2802
2805
|
return e ? e === "date" ? Ge.filter(
|
|
2803
2806
|
(t) => t.value === "string" || t.value === "number"
|
|
2804
2807
|
) : Ge.filter((t) => t.value === e) : Ge;
|
|
2805
2808
|
}
|
|
2806
2809
|
const Fr = (e) => !!e && typeof e == "object";
|
|
2807
|
-
function
|
|
2810
|
+
function yo(e) {
|
|
2808
2811
|
try {
|
|
2809
2812
|
return JSON.parse(e), !0;
|
|
2810
2813
|
} catch {
|
|
2811
2814
|
return !1;
|
|
2812
2815
|
}
|
|
2813
2816
|
}
|
|
2814
|
-
function
|
|
2817
|
+
function ko(e) {
|
|
2815
2818
|
try {
|
|
2816
2819
|
return JSON.parse(e);
|
|
2817
2820
|
} catch {
|
|
2818
2821
|
return e;
|
|
2819
2822
|
}
|
|
2820
2823
|
}
|
|
2821
|
-
function
|
|
2824
|
+
function xo(e, t) {
|
|
2822
2825
|
if (e.checkedDataType)
|
|
2823
2826
|
return e.checkedDataType === "date" ? "string" : e.checkedDataType;
|
|
2824
2827
|
if (t != null) {
|
|
@@ -2843,11 +2846,11 @@ function ar(e, t) {
|
|
|
2843
2846
|
if (t === "string")
|
|
2844
2847
|
return Fr(e) ? JSON.stringify(e) : String(e);
|
|
2845
2848
|
if (t === "json")
|
|
2846
|
-
return
|
|
2849
|
+
return ko(e);
|
|
2847
2850
|
}
|
|
2848
2851
|
return e;
|
|
2849
2852
|
}
|
|
2850
|
-
function
|
|
2853
|
+
function So(e) {
|
|
2851
2854
|
return Cn(e) ? null : "Invalid UUID.";
|
|
2852
2855
|
}
|
|
2853
2856
|
function nr({
|
|
@@ -2891,7 +2894,7 @@ function nr({
|
|
|
2891
2894
|
] }) })
|
|
2892
2895
|
] }) });
|
|
2893
2896
|
}
|
|
2894
|
-
function
|
|
2897
|
+
function No({
|
|
2895
2898
|
q: e,
|
|
2896
2899
|
option: t,
|
|
2897
2900
|
uniqueAttrs: a,
|
|
@@ -2949,7 +2952,7 @@ function So({
|
|
|
2949
2952
|
t.id
|
|
2950
2953
|
);
|
|
2951
2954
|
}
|
|
2952
|
-
function
|
|
2955
|
+
function Eo({
|
|
2953
2956
|
db: e,
|
|
2954
2957
|
namespace: t,
|
|
2955
2958
|
onLinkRef: a,
|
|
@@ -3015,7 +3018,7 @@ function No({
|
|
|
3015
3018
|
static: !0,
|
|
3016
3019
|
className: "absolute left-0 z-10 mt-1 max-h-[25vh] w-full divide-y overflow-scroll rounded-md border border-gray-300 bg-white shadow-lg empty:invisible dark:border-neutral-700 dark:bg-neutral-800",
|
|
3017
3020
|
children: (s || []).map((f) => /* @__PURE__ */ r(
|
|
3018
|
-
|
|
3021
|
+
No,
|
|
3019
3022
|
{
|
|
3020
3023
|
q: l,
|
|
3021
3024
|
option: f,
|
|
@@ -3035,7 +3038,7 @@ function No({
|
|
|
3035
3038
|
u ? "query-loading" : "query-loaded"
|
|
3036
3039
|
) });
|
|
3037
3040
|
}
|
|
3038
|
-
function
|
|
3041
|
+
function Co({
|
|
3039
3042
|
db: e,
|
|
3040
3043
|
item: t,
|
|
3041
3044
|
attr: a,
|
|
@@ -3092,7 +3095,7 @@ function Eo({
|
|
|
3092
3095
|
] }, u);
|
|
3093
3096
|
}),
|
|
3094
3097
|
g ? /* @__PURE__ */ r(
|
|
3095
|
-
|
|
3098
|
+
Eo,
|
|
3096
3099
|
{
|
|
3097
3100
|
namespace: n,
|
|
3098
3101
|
onLinkRef: (u) => l(a, u),
|
|
@@ -3103,7 +3106,7 @@ function Eo({
|
|
|
3103
3106
|
) : /* @__PURE__ */ r(V, { variant: "secondary", onClick: () => c(!0), children: m === "many" || !d ? "Add link" : "Replace link" })
|
|
3104
3107
|
] });
|
|
3105
3108
|
}
|
|
3106
|
-
const
|
|
3109
|
+
const Io = (e, t) => {
|
|
3107
3110
|
switch (e.name) {
|
|
3108
3111
|
case "$files":
|
|
3109
3112
|
return t.type === "blob" && t.name === "path";
|
|
@@ -3112,7 +3115,7 @@ const Co = (e, t) => {
|
|
|
3112
3115
|
default:
|
|
3113
3116
|
return t.type === "blob";
|
|
3114
3117
|
}
|
|
3115
|
-
},
|
|
3118
|
+
}, Ao = (e) => {
|
|
3116
3119
|
switch (e.namespace) {
|
|
3117
3120
|
case "$streams":
|
|
3118
3121
|
return !1;
|
|
@@ -3128,10 +3131,10 @@ function or({
|
|
|
3128
3131
|
}) {
|
|
3129
3132
|
const o = a.id ? "edit" : "add", l = de(), i = [], g = [];
|
|
3130
3133
|
for (const S of t.attrs)
|
|
3131
|
-
S.name !== "id" && (
|
|
3134
|
+
S.name !== "id" && (Io(t, S) && i.push(S), S.type === "ref" && Ao(S) && g.push(S));
|
|
3132
3135
|
const c = i.reduce(
|
|
3133
3136
|
(S, T) => {
|
|
3134
|
-
const I = a[T.name], A =
|
|
3137
|
+
const I = a[T.name], A = xo(T, I), D = o === "add" ? T.isRequired ? vt[A] : null : I;
|
|
3135
3138
|
return {
|
|
3136
3139
|
...S,
|
|
3137
3140
|
[T.name]: {
|
|
@@ -3190,7 +3193,7 @@ function or({
|
|
|
3190
3193
|
[S]: { type: "json", value: void 0, error: "Invalid JSON" }
|
|
3191
3194
|
} : {
|
|
3192
3195
|
...I,
|
|
3193
|
-
[S]:
|
|
3196
|
+
[S]: yo(T) ? { type: "json", value: JSON.parse(T), error: null } : { ...A, type: "json", error: "Invalid JSON" }
|
|
3194
3197
|
};
|
|
3195
3198
|
});
|
|
3196
3199
|
}, G = (S, T) => {
|
|
@@ -3324,7 +3327,7 @@ function or({
|
|
|
3324
3327
|
{
|
|
3325
3328
|
className: "flex w-full flex-1 rounded-xs border-gray-200 bg-white px-3 py-1 placeholder:text-gray-400 dark:border-neutral-700 dark:bg-neutral-800",
|
|
3326
3329
|
value: p.id?.value ?? "",
|
|
3327
|
-
onChange: (S) => M("id", S.target.value,
|
|
3330
|
+
onChange: (S) => M("id", S.target.value, So)
|
|
3328
3331
|
}
|
|
3329
3332
|
) }),
|
|
3330
3333
|
" ",
|
|
@@ -3352,7 +3355,7 @@ function or({
|
|
|
3352
3355
|
{
|
|
3353
3356
|
className: "w-24 rounded-sm px-2 py-0.5 text-sm",
|
|
3354
3357
|
value: A,
|
|
3355
|
-
options:
|
|
3358
|
+
options: vo(S.checkedDataType),
|
|
3356
3359
|
onChange: (W) => q(
|
|
3357
3360
|
S.name,
|
|
3358
3361
|
W.value
|
|
@@ -3402,7 +3405,7 @@ function or({
|
|
|
3402
3405
|
onChange: (W) => M(S.name, W.target.value)
|
|
3403
3406
|
}
|
|
3404
3407
|
) : /* @__PURE__ */ r(
|
|
3405
|
-
|
|
3408
|
+
wo,
|
|
3406
3409
|
{
|
|
3407
3410
|
tabIndex: I,
|
|
3408
3411
|
value: D ?? "",
|
|
@@ -3443,7 +3446,7 @@ function or({
|
|
|
3443
3446
|
] })
|
|
3444
3447
|
] }),
|
|
3445
3448
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-1", children: /* @__PURE__ */ r(
|
|
3446
|
-
|
|
3449
|
+
Co,
|
|
3447
3450
|
{
|
|
3448
3451
|
db: e,
|
|
3449
3452
|
item: a,
|
|
@@ -3477,8 +3480,8 @@ function or({
|
|
|
3477
3480
|
] })
|
|
3478
3481
|
] });
|
|
3479
3482
|
}
|
|
3480
|
-
const
|
|
3481
|
-
function
|
|
3483
|
+
const Ro = [];
|
|
3484
|
+
function To(e, t, a, n = !1) {
|
|
3482
3485
|
if (e.length === 0) return;
|
|
3483
3486
|
const o = t.filter(
|
|
3484
3487
|
(c) => c.id !== "select-col" && c.header !== void 0 && !c.meta?.isLink
|
|
@@ -3496,7 +3499,7 @@ function Ro(e, t, a, n = !1) {
|
|
|
3496
3499
|
}), g = sn(i)(l);
|
|
3497
3500
|
n ? (dn(i)(g), oe("CSV file downloaded")) : (We(g.toString()), oe("CSV copied to clipboard"));
|
|
3498
3501
|
}
|
|
3499
|
-
function
|
|
3502
|
+
function Oo(e, t, a, n = !1) {
|
|
3500
3503
|
if (e.length === 0) return;
|
|
3501
3504
|
const o = t.filter(
|
|
3502
3505
|
(c) => c.id !== "select-col" && c.header !== void 0 && !c.meta?.isLink
|
|
@@ -3510,7 +3513,7 @@ function To(e, t, a, n = !1) {
|
|
|
3510
3513
|
} else
|
|
3511
3514
|
We(g), oe("Markdown copied to clipboard");
|
|
3512
3515
|
}
|
|
3513
|
-
function
|
|
3516
|
+
function _o(e, t, a, n = !1) {
|
|
3514
3517
|
if (e.length === 0) return;
|
|
3515
3518
|
const o = t.filter(
|
|
3516
3519
|
(g) => g.id !== "select-col" && g.header !== void 0 && !g.meta?.isLink
|
|
@@ -3527,7 +3530,7 @@ function Oo(e, t, a, n = !1) {
|
|
|
3527
3530
|
} else
|
|
3528
3531
|
We(i), oe("JSON copied to clipboard");
|
|
3529
3532
|
}
|
|
3530
|
-
const
|
|
3533
|
+
const Do = ({ db: e, namespaces: t }) => {
|
|
3531
3534
|
const { explorerState: a, history: n } = ut(), o = de(), l = a, i = t.find(
|
|
3532
3535
|
(E) => E.id === l.namespace
|
|
3533
3536
|
), [g, c] = C(50), [p, m] = C([]), [d, u] = C(!1), [s, f] = C(""), [b, w] = C(!1), [v, k] = C(null), [x, _] = C(null), [q, M] = C(!1), L = X(null), [G, H] = C({}), Y = X(null), z = i?.name?.startsWith("$") ?? !1, B = i?.name ?? "", S = z && !["$users", "$files", "$streams"].includes(B), T = G[B] || 0, I = l?.sortAttr || "serverCreatedAt", A = l?.sortAsc ?? !0, D = (E, N) => {
|
|
@@ -3543,16 +3546,16 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
3543
3546
|
}
|
|
3544
3547
|
return Be;
|
|
3545
3548
|
});
|
|
3546
|
-
}, [F, Q] = C([]), { itemsRes: re, allCount: W } =
|
|
3549
|
+
}, [F, Q] = C([]), { itemsRes: re, allCount: W } = Hn(
|
|
3547
3550
|
e,
|
|
3548
3551
|
i,
|
|
3549
3552
|
l?.where,
|
|
3550
|
-
l?.filters
|
|
3553
|
+
qn(l?.where, l?.filters, F),
|
|
3551
3554
|
g,
|
|
3552
3555
|
T,
|
|
3553
3556
|
I,
|
|
3554
3557
|
A
|
|
3555
|
-
), ie = re.data?.[i?.name ?? ""] ??
|
|
3558
|
+
), ie = re.data?.[i?.name ?? ""] ?? Ro;
|
|
3556
3559
|
function ye(E, N) {
|
|
3557
3560
|
return E.filter((R) => N[R.id]);
|
|
3558
3561
|
}
|
|
@@ -3561,7 +3564,7 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
3561
3564
|
if (u(!0), p.length === 0)
|
|
3562
3565
|
return;
|
|
3563
3566
|
const [E] = p;
|
|
3564
|
-
await
|
|
3567
|
+
await zo(
|
|
3565
3568
|
o.adminToken,
|
|
3566
3569
|
o.appId,
|
|
3567
3570
|
E,
|
|
@@ -3578,7 +3581,7 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
3578
3581
|
Gt(E, 285);
|
|
3579
3582
|
return;
|
|
3580
3583
|
}
|
|
3581
|
-
const N =
|
|
3584
|
+
const N = Xn(E, 800);
|
|
3582
3585
|
Gt(E, N);
|
|
3583
3586
|
}, Gt = (E, N = 200) => {
|
|
3584
3587
|
if (!i)
|
|
@@ -3681,7 +3684,7 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
3681
3684
|
}
|
|
3682
3685
|
);
|
|
3683
3686
|
if (N.name === "size")
|
|
3684
|
-
return
|
|
3687
|
+
return Kn(R.row.original[N.name]);
|
|
3685
3688
|
}
|
|
3686
3689
|
if (N.checkedDataType === "boolean")
|
|
3687
3690
|
return R.row.original[N.name] ? "true" : "false";
|
|
@@ -3689,7 +3692,7 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
3689
3692
|
const $ = Ma(R.row.original[N.name]);
|
|
3690
3693
|
return ke && $?.toLocaleString() || R.row.original[N.name];
|
|
3691
3694
|
}
|
|
3692
|
-
return Se(R.row.original[N.name]) ? /* @__PURE__ */ r(
|
|
3695
|
+
return Se(R.row.original[N.name]) ? /* @__PURE__ */ r(Fo, { data: R.row.original[N.name] }) : R.row.original[N.name];
|
|
3693
3696
|
}
|
|
3694
3697
|
});
|
|
3695
3698
|
}), E;
|
|
@@ -3711,7 +3714,7 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
3711
3714
|
});
|
|
3712
3715
|
}
|
|
3713
3716
|
qt(!1), ae.setColumnSizing(() => ({ ...E }));
|
|
3714
|
-
}, ia = "onChange", la = "ltr", et =
|
|
3717
|
+
}, ia = "onChange", la = "ltr", et = Vn({
|
|
3715
3718
|
appId: o.appId,
|
|
3716
3719
|
attrs: i?.attrs,
|
|
3717
3720
|
namespaceId: i?.id
|
|
@@ -3953,7 +3956,7 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
3953
3956
|
open: !!v,
|
|
3954
3957
|
onClose: () => k(null),
|
|
3955
3958
|
children: i ? /* @__PURE__ */ r(
|
|
3956
|
-
|
|
3959
|
+
io,
|
|
3957
3960
|
{
|
|
3958
3961
|
readOnly: S,
|
|
3959
3962
|
isSystemCatalogNs: z,
|
|
@@ -4038,7 +4041,15 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
4038
4041
|
/* @__PURE__ */ r(
|
|
4039
4042
|
Mn,
|
|
4040
4043
|
{
|
|
4041
|
-
onSearchChange: (E) =>
|
|
4044
|
+
onSearchChange: (E) => {
|
|
4045
|
+
Q(E), n.push(
|
|
4046
|
+
(N) => ({
|
|
4047
|
+
...N,
|
|
4048
|
+
filters: E.length ? E : void 0
|
|
4049
|
+
}),
|
|
4050
|
+
!0
|
|
4051
|
+
);
|
|
4052
|
+
},
|
|
4042
4053
|
attrs: i?.attrs,
|
|
4043
4054
|
initialFilters: l?.filters || []
|
|
4044
4055
|
},
|
|
@@ -4249,7 +4260,7 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
4249
4260
|
ie,
|
|
4250
4261
|
Ee
|
|
4251
4262
|
);
|
|
4252
|
-
|
|
4263
|
+
To(
|
|
4253
4264
|
N,
|
|
4254
4265
|
Le,
|
|
4255
4266
|
i.name,
|
|
@@ -4272,7 +4283,7 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
4272
4283
|
ie,
|
|
4273
4284
|
Ee
|
|
4274
4285
|
);
|
|
4275
|
-
|
|
4286
|
+
Oo(
|
|
4276
4287
|
N,
|
|
4277
4288
|
Le,
|
|
4278
4289
|
i.name,
|
|
@@ -4295,7 +4306,7 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
4295
4306
|
ie,
|
|
4296
4307
|
Ee
|
|
4297
4308
|
);
|
|
4298
|
-
|
|
4309
|
+
_o(
|
|
4299
4310
|
N,
|
|
4300
4311
|
Le,
|
|
4301
4312
|
i.name,
|
|
@@ -4341,7 +4352,7 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
4341
4352
|
] }),
|
|
4342
4353
|
/* @__PURE__ */ r("div", { className: "grow" }),
|
|
4343
4354
|
/* @__PURE__ */ r("div", { className: "px-2", children: /* @__PURE__ */ r(
|
|
4344
|
-
|
|
4355
|
+
to,
|
|
4345
4356
|
{
|
|
4346
4357
|
localDates: ke,
|
|
4347
4358
|
setLocalDates: ea,
|
|
@@ -4394,7 +4405,7 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
4394
4405
|
items: Fe,
|
|
4395
4406
|
strategy: Wt,
|
|
4396
4407
|
children: E.headers.map((N, R) => /* @__PURE__ */ r(
|
|
4397
|
-
|
|
4408
|
+
Qn,
|
|
4398
4409
|
{
|
|
4399
4410
|
header: N,
|
|
4400
4411
|
table: ae,
|
|
@@ -4424,7 +4435,7 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
4424
4435
|
{
|
|
4425
4436
|
items: Fe,
|
|
4426
4437
|
strategy: Wt,
|
|
4427
|
-
children: /* @__PURE__ */ r(
|
|
4438
|
+
children: /* @__PURE__ */ r(Jn, { cell: N }, N.id)
|
|
4428
4439
|
},
|
|
4429
4440
|
N.id
|
|
4430
4441
|
))
|
|
@@ -4451,31 +4462,31 @@ const _o = ({ db: e, namespaces: t }) => {
|
|
|
4451
4462
|
] })
|
|
4452
4463
|
] });
|
|
4453
4464
|
};
|
|
4454
|
-
function
|
|
4465
|
+
function Lo(e, t) {
|
|
4455
4466
|
return Se(e) ? JSON.stringify(e, null, t ? 2 : void 0) : String(e);
|
|
4456
4467
|
}
|
|
4457
|
-
function
|
|
4458
|
-
const a = de(), n =
|
|
4468
|
+
function Fo({ data: e, pretty: t }) {
|
|
4469
|
+
const a = de(), n = Lo(e, t);
|
|
4459
4470
|
return t && Se(e) ? /* @__PURE__ */ r($t, { darkMode: a.darkMode, code: n, language: "json" }) : /* @__PURE__ */ r(j, { children: n });
|
|
4460
4471
|
}
|
|
4461
|
-
async function
|
|
4472
|
+
async function $o(e, t) {
|
|
4462
4473
|
const a = await fetch(e, t), n = await a.json();
|
|
4463
4474
|
return a.status === 200 ? Promise.resolve(n) : Promise.reject({ status: a.status, body: n });
|
|
4464
4475
|
}
|
|
4465
|
-
async function
|
|
4476
|
+
async function zo(e, t, a, n, o) {
|
|
4466
4477
|
const l = {
|
|
4467
4478
|
app_id: t,
|
|
4468
4479
|
path: n || a.name,
|
|
4469
4480
|
authorization: `Bearer ${e}`,
|
|
4470
4481
|
"content-type": a.type
|
|
4471
4482
|
};
|
|
4472
|
-
return await
|
|
4483
|
+
return await $o(`${o}/dash/apps/${t}/storage/upload`, {
|
|
4473
4484
|
method: "PUT",
|
|
4474
4485
|
headers: l,
|
|
4475
4486
|
body: a
|
|
4476
4487
|
});
|
|
4477
4488
|
}
|
|
4478
|
-
function
|
|
4489
|
+
function Bo(e, t) {
|
|
4479
4490
|
const a = (n) => {
|
|
4480
4491
|
e.current && n.target instanceof HTMLElement && !e.current.contains(n.target) && t();
|
|
4481
4492
|
};
|
|
@@ -4483,7 +4494,7 @@ function zo(e, t) {
|
|
|
4483
4494
|
document.removeEventListener("click", a);
|
|
4484
4495
|
}));
|
|
4485
4496
|
}
|
|
4486
|
-
const
|
|
4497
|
+
const jo = ({
|
|
4487
4498
|
namespaces: e,
|
|
4488
4499
|
db: t,
|
|
4489
4500
|
appId: a
|
|
@@ -4494,7 +4505,7 @@ const Bo = ({
|
|
|
4494
4505
|
`${a}:recentExplorerNamespace`,
|
|
4495
4506
|
i?.id || ""
|
|
4496
4507
|
);
|
|
4497
|
-
|
|
4508
|
+
Bo(p, () => {
|
|
4498
4509
|
c(!1);
|
|
4499
4510
|
}), P(
|
|
4500
4511
|
function() {
|
|
@@ -4613,11 +4624,11 @@ const Bo = ({
|
|
|
4613
4624
|
children: /* @__PURE__ */ r(Ya, { height: "1rem", className: "dark:text-white" })
|
|
4614
4625
|
}
|
|
4615
4626
|
) }),
|
|
4616
|
-
n.explorerState && /* @__PURE__ */ r(
|
|
4627
|
+
n.explorerState && /* @__PURE__ */ r(Do, { namespaces: e, db: t })
|
|
4617
4628
|
]
|
|
4618
4629
|
}
|
|
4619
4630
|
);
|
|
4620
|
-
},
|
|
4631
|
+
}, Mo = ({
|
|
4621
4632
|
appId: e,
|
|
4622
4633
|
apiURI: t,
|
|
4623
4634
|
websocketURI: a,
|
|
@@ -4634,7 +4645,7 @@ const Bo = ({
|
|
|
4634
4645
|
}),
|
|
4635
4646
|
[e, t, a, n]
|
|
4636
4647
|
);
|
|
4637
|
-
class
|
|
4648
|
+
class Uo extends dr {
|
|
4638
4649
|
state = {
|
|
4639
4650
|
hasError: !1,
|
|
4640
4651
|
error: null
|
|
@@ -4688,7 +4699,7 @@ const Tt = cr({ props: null, history: { push: () => {
|
|
|
4688
4699
|
"useExplorerProps must be used within an Explorer component"
|
|
4689
4700
|
);
|
|
4690
4701
|
return { explorerState: e.props.explorerState, history: e.history };
|
|
4691
|
-
}, $r = (e) => e.explorerState !== void 0 || e.setExplorerState !== void 0,
|
|
4702
|
+
}, $r = (e) => e.explorerState !== void 0 || e.setExplorerState !== void 0, Po = (e, t, a) => {
|
|
4692
4703
|
const n = $r(e);
|
|
4693
4704
|
return {
|
|
4694
4705
|
...e,
|
|
@@ -4701,10 +4712,10 @@ const Tt = cr({ props: null, history: { push: () => {
|
|
|
4701
4712
|
setExplorerState: e.setExplorerState || a,
|
|
4702
4713
|
useShadowDOM: e.useShadowDOM === void 0 ? !0 : e.useShadowDOM
|
|
4703
4714
|
};
|
|
4704
|
-
},
|
|
4715
|
+
}, Qi = (e) => {
|
|
4705
4716
|
const [t, a] = C(
|
|
4706
4717
|
null
|
|
4707
|
-
), n =
|
|
4718
|
+
), n = Po(
|
|
4708
4719
|
e,
|
|
4709
4720
|
t,
|
|
4710
4721
|
a
|
|
@@ -4726,7 +4737,7 @@ const Tt = cr({ props: null, history: { push: () => {
|
|
|
4726
4737
|
}
|
|
4727
4738
|
return w;
|
|
4728
4739
|
});
|
|
4729
|
-
}, [l]), m =
|
|
4740
|
+
}, [l]), m = Mo({
|
|
4730
4741
|
appId: n.appId,
|
|
4731
4742
|
apiURI: n.apiURI,
|
|
4732
4743
|
websocketURI: n.websocketURI,
|
|
@@ -4739,7 +4750,7 @@ const Tt = cr({ props: null, history: { push: () => {
|
|
|
4739
4750
|
}
|
|
4740
4751
|
u.current !== n.appId && (u.current = n.appId, g([]), $r(e) || a(null));
|
|
4741
4752
|
}, [n.appId, e]);
|
|
4742
|
-
const s =
|
|
4753
|
+
const s = Wn(m), f = se(
|
|
4743
4754
|
() => ({
|
|
4744
4755
|
props: n,
|
|
4745
4756
|
history: {
|
|
@@ -4749,9 +4760,9 @@ const Tt = cr({ props: null, history: { push: () => {
|
|
|
4749
4760
|
}
|
|
4750
4761
|
}),
|
|
4751
4762
|
[n, c, p, i]
|
|
4752
|
-
), b = n.useShadowDOM ?
|
|
4753
|
-
return /* @__PURE__ */ r(Tt.Provider, { value: f, children: /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(
|
|
4754
|
-
|
|
4763
|
+
), b = n.useShadowDOM ? qo : He.Fragment;
|
|
4764
|
+
return /* @__PURE__ */ r(Tt.Provider, { value: f, children: /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(Uo, { children: /* @__PURE__ */ r(
|
|
4765
|
+
jo,
|
|
4755
4766
|
{
|
|
4756
4767
|
appId: n.appId,
|
|
4757
4768
|
db: m,
|
|
@@ -4769,7 +4780,7 @@ function Xe() {
|
|
|
4769
4780
|
function pt() {
|
|
4770
4781
|
return dt(Ot).darkMode;
|
|
4771
4782
|
}
|
|
4772
|
-
const
|
|
4783
|
+
const qo = ({ children: e }) => {
|
|
4773
4784
|
const t = X(null), a = X(null), [n, o] = C(null), i = de().darkMode;
|
|
4774
4785
|
P(() => {
|
|
4775
4786
|
if (t.current && !n)
|
|
@@ -4800,7 +4811,7 @@ function zr({
|
|
|
4800
4811
|
}) {
|
|
4801
4812
|
return /* @__PURE__ */ r(J.Root, { "data-slot": "select", ...e });
|
|
4802
4813
|
}
|
|
4803
|
-
function
|
|
4814
|
+
function Go({
|
|
4804
4815
|
...e
|
|
4805
4816
|
}) {
|
|
4806
4817
|
return /* @__PURE__ */ r(J.Group, { "data-slot": "select-group", ...e });
|
|
@@ -4860,7 +4871,7 @@ function Mr({
|
|
|
4860
4871
|
position: a,
|
|
4861
4872
|
...n,
|
|
4862
4873
|
children: [
|
|
4863
|
-
/* @__PURE__ */ r(
|
|
4874
|
+
/* @__PURE__ */ r(Vo, {}),
|
|
4864
4875
|
/* @__PURE__ */ r(
|
|
4865
4876
|
J.Viewport,
|
|
4866
4877
|
{
|
|
@@ -4871,12 +4882,12 @@ function Mr({
|
|
|
4871
4882
|
children: t
|
|
4872
4883
|
}
|
|
4873
4884
|
),
|
|
4874
|
-
/* @__PURE__ */ r(
|
|
4885
|
+
/* @__PURE__ */ r(Yo, {})
|
|
4875
4886
|
]
|
|
4876
4887
|
}
|
|
4877
4888
|
) });
|
|
4878
4889
|
}
|
|
4879
|
-
function
|
|
4890
|
+
function Ho({
|
|
4880
4891
|
className: e,
|
|
4881
4892
|
...t
|
|
4882
4893
|
}) {
|
|
@@ -4910,7 +4921,7 @@ function Ur({
|
|
|
4910
4921
|
}
|
|
4911
4922
|
);
|
|
4912
4923
|
}
|
|
4913
|
-
function
|
|
4924
|
+
function Wo({
|
|
4914
4925
|
className: e,
|
|
4915
4926
|
...t
|
|
4916
4927
|
}) {
|
|
@@ -4923,7 +4934,7 @@ function Ho({
|
|
|
4923
4934
|
}
|
|
4924
4935
|
);
|
|
4925
4936
|
}
|
|
4926
|
-
function
|
|
4937
|
+
function Vo({
|
|
4927
4938
|
className: e,
|
|
4928
4939
|
...t
|
|
4929
4940
|
}) {
|
|
@@ -4940,7 +4951,7 @@ function Wo({
|
|
|
4940
4951
|
}
|
|
4941
4952
|
);
|
|
4942
4953
|
}
|
|
4943
|
-
function
|
|
4954
|
+
function Yo({
|
|
4944
4955
|
className: e,
|
|
4945
4956
|
...t
|
|
4946
4957
|
}) {
|
|
@@ -7929,7 +7940,7 @@ y.languages.wasm = {
|
|
|
7929
7940
|
number: /[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,
|
|
7930
7941
|
punctuation: /[()]/
|
|
7931
7942
|
};
|
|
7932
|
-
var
|
|
7943
|
+
var Ko = {
|
|
7933
7944
|
plain: {
|
|
7934
7945
|
backgroundColor: "#2a2734",
|
|
7935
7946
|
color: "#9a86fd"
|
|
@@ -7995,10 +8006,10 @@ var Yo = {
|
|
|
7995
8006
|
color: "#c4b9fe"
|
|
7996
8007
|
}
|
|
7997
8008
|
}]
|
|
7998
|
-
},
|
|
8009
|
+
}, Xo = {
|
|
7999
8010
|
// $FlowFixMe
|
|
8000
8011
|
Prism: y,
|
|
8001
|
-
theme:
|
|
8012
|
+
theme: Ko
|
|
8002
8013
|
};
|
|
8003
8014
|
function Ue(e, t, a) {
|
|
8004
8015
|
return t in e ? Object.defineProperty(e, t, {
|
|
@@ -8018,7 +8029,7 @@ function he() {
|
|
|
8018
8029
|
return e;
|
|
8019
8030
|
}, he.apply(this, arguments);
|
|
8020
8031
|
}
|
|
8021
|
-
var
|
|
8032
|
+
var Zo = /\r\n|\r|\n/, ir = function(e) {
|
|
8022
8033
|
e.length === 0 ? e.push({
|
|
8023
8034
|
types: ["plain"],
|
|
8024
8035
|
content: `
|
|
@@ -8029,7 +8040,7 @@ var Xo = /\r\n|\r|\n/, ir = function(e) {
|
|
|
8029
8040
|
}, lr = function(e, t) {
|
|
8030
8041
|
var a = e.length;
|
|
8031
8042
|
return a > 0 && e[a - 1] === t ? e : e.concat(t);
|
|
8032
|
-
},
|
|
8043
|
+
}, Qo = function(e) {
|
|
8033
8044
|
for (var t = [[]], a = [e], n = [0], o = [e.length], l = 0, i = 0, g = [], c = [g]; i > -1; ) {
|
|
8034
8045
|
for (; (l = n[i]++) < o[i]; ) {
|
|
8035
8046
|
var p = void 0, m = t[i], d = a[i], u = d[l];
|
|
@@ -8037,7 +8048,7 @@ var Xo = /\r\n|\r|\n/, ir = function(e) {
|
|
|
8037
8048
|
i++, t.push(m), a.push(p), n.push(0), o.push(p.length);
|
|
8038
8049
|
continue;
|
|
8039
8050
|
}
|
|
8040
|
-
var s = p.split(
|
|
8051
|
+
var s = p.split(Zo), f = s.length;
|
|
8041
8052
|
g.push({
|
|
8042
8053
|
types: m,
|
|
8043
8054
|
content: s[0]
|
|
@@ -8051,7 +8062,7 @@ var Xo = /\r\n|\r|\n/, ir = function(e) {
|
|
|
8051
8062
|
i--, t.pop(), a.pop(), n.pop(), o.pop();
|
|
8052
8063
|
}
|
|
8053
8064
|
return ir(g), c;
|
|
8054
|
-
},
|
|
8065
|
+
}, Jo = function(e, t) {
|
|
8055
8066
|
var a = e.plain, n = /* @__PURE__ */ Object.create(null), o = e.styles.reduce(function(l, i) {
|
|
8056
8067
|
var g = i.languages, c = i.style;
|
|
8057
8068
|
return g && !g.includes(t) || i.types.forEach(function(p) {
|
|
@@ -8068,14 +8079,14 @@ function sr(e, t) {
|
|
|
8068
8079
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) === -1 && (a[n] = e[n]);
|
|
8069
8080
|
return a;
|
|
8070
8081
|
}
|
|
8071
|
-
var
|
|
8082
|
+
var ei = /* @__PURE__ */ function(e) {
|
|
8072
8083
|
function t() {
|
|
8073
8084
|
for (var a = this, n = [], o = arguments.length; o--; ) n[o] = arguments[o];
|
|
8074
8085
|
e.apply(this, n), Ue(this, "getThemeDict", function(l) {
|
|
8075
8086
|
if (a.themeDict !== void 0 && l.theme === a.prevTheme && l.language === a.prevLanguage)
|
|
8076
8087
|
return a.themeDict;
|
|
8077
8088
|
a.prevTheme = l.theme, a.prevLanguage = l.language;
|
|
8078
|
-
var i = l.theme ?
|
|
8089
|
+
var i = l.theme ? Jo(l.theme, l.language) : void 0;
|
|
8079
8090
|
return a.themeDict = i;
|
|
8080
8091
|
}), Ue(this, "getLineProps", function(l) {
|
|
8081
8092
|
var i = l.key, g = l.className, c = l.style, p = sr(l, ["key", "className", "style", "line"]), m = p, d = he({}, m, {
|
|
@@ -8123,7 +8134,7 @@ var Jo = /* @__PURE__ */ function(e) {
|
|
|
8123
8134
|
});
|
|
8124
8135
|
}
|
|
8125
8136
|
return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.prototype.render = function() {
|
|
8126
|
-
var n = this.props, o = n.Prism, l = n.language, i = n.code, g = n.children, c = this.getThemeDict(this.props), p = o.languages[l], m = p !== void 0 ? this.tokenize(o, i, p, l) : [i], d =
|
|
8137
|
+
var n = this.props, o = n.Prism, l = n.language, i = n.code, g = n.children, c = this.getThemeDict(this.props), p = o.languages[l], m = p !== void 0 ? this.tokenize(o, i, p, l) : [i], d = Qo(m);
|
|
8127
8138
|
return g({
|
|
8128
8139
|
tokens: d,
|
|
8129
8140
|
className: "prism-code language-" + l,
|
|
@@ -8133,16 +8144,16 @@ var Jo = /* @__PURE__ */ function(e) {
|
|
|
8133
8144
|
});
|
|
8134
8145
|
}, t;
|
|
8135
8146
|
}(dr);
|
|
8136
|
-
const
|
|
8147
|
+
const ti = (e) => ri(
|
|
8137
8148
|
() => In.parse(e, (a, n) => n === !0 ? "true" : n === !1 ? "false" : n)
|
|
8138
|
-
),
|
|
8149
|
+
), ri = (e) => {
|
|
8139
8150
|
try {
|
|
8140
8151
|
return { status: "ok", value: e() };
|
|
8141
8152
|
} catch (t) {
|
|
8142
8153
|
return { status: "error", error: t };
|
|
8143
8154
|
}
|
|
8144
8155
|
};
|
|
8145
|
-
function
|
|
8156
|
+
function ai(e, t, a) {
|
|
8146
8157
|
const n = ur();
|
|
8147
8158
|
P(() => {
|
|
8148
8159
|
if (!t || !a) return;
|
|
@@ -8166,7 +8177,7 @@ function ri(e, t, a) {
|
|
|
8166
8177
|
};
|
|
8167
8178
|
}, [t, e, a, n]);
|
|
8168
8179
|
}
|
|
8169
|
-
const
|
|
8180
|
+
const ni = {
|
|
8170
8181
|
plain: {
|
|
8171
8182
|
backgroundColor: "#fff",
|
|
8172
8183
|
color: "#575279"
|
|
@@ -8209,10 +8220,10 @@ const ai = {
|
|
|
8209
8220
|
style: { color: "#b4637a" }
|
|
8210
8221
|
}
|
|
8211
8222
|
]
|
|
8212
|
-
},
|
|
8223
|
+
}, oi = ue("div", "flex flex-col gap-2"), ii = ue("div", "flex flex-col gap-2 md:flex-row"), gt = ue("div", "prose dark:text-neutral-400"), li = ue("div", "text-2xl font-bold"), si = ue("div", "text-xl font-bold"), di = ue("div", "text-lg"), ci = ue("div", "text-md font-bold"), ui = ue("div", "text-sm text-gray-400"), Re = ue(
|
|
8213
8224
|
"div",
|
|
8214
8225
|
"text-sm font-bold dark:text-neutral-400 text-gray-700"
|
|
8215
|
-
),
|
|
8226
|
+
), pi = ({
|
|
8216
8227
|
size: e = "mini",
|
|
8217
8228
|
className: t
|
|
8218
8229
|
}) => /* @__PURE__ */ r(
|
|
@@ -8343,7 +8354,7 @@ function Ne({
|
|
|
8343
8354
|
g ? /* @__PURE__ */ r("div", { className: "text-sm text-red-600", children: g }) : null
|
|
8344
8355
|
] });
|
|
8345
8356
|
}
|
|
8346
|
-
function
|
|
8357
|
+
function gi({
|
|
8347
8358
|
value: e,
|
|
8348
8359
|
autoFocus: t,
|
|
8349
8360
|
className: a,
|
|
@@ -8596,7 +8607,7 @@ function st() {
|
|
|
8596
8607
|
}
|
|
8597
8608
|
};
|
|
8598
8609
|
}
|
|
8599
|
-
function
|
|
8610
|
+
function hi({
|
|
8600
8611
|
...e
|
|
8601
8612
|
}) {
|
|
8602
8613
|
return /* @__PURE__ */ r(Te.Root, { "data-slot": "dialog", ...e });
|
|
@@ -8618,7 +8629,7 @@ const Hr = He.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
|
8618
8629
|
...t
|
|
8619
8630
|
}
|
|
8620
8631
|
));
|
|
8621
|
-
function
|
|
8632
|
+
function fi({ title: e }) {
|
|
8622
8633
|
const t = Xe(), a = He.useRef(null);
|
|
8623
8634
|
return He.useEffect(() => {
|
|
8624
8635
|
if (!t || process.env.NODE_ENV === "production")
|
|
@@ -8651,7 +8662,7 @@ function Wr({
|
|
|
8651
8662
|
),
|
|
8652
8663
|
...o,
|
|
8653
8664
|
children: [
|
|
8654
|
-
/* @__PURE__ */ r(
|
|
8665
|
+
/* @__PURE__ */ r(fi, { title: n }),
|
|
8655
8666
|
t,
|
|
8656
8667
|
a && /* @__PURE__ */ h(
|
|
8657
8668
|
Te.Close,
|
|
@@ -8678,7 +8689,7 @@ function fe({
|
|
|
8678
8689
|
hideCloseButton: i = !1
|
|
8679
8690
|
}) {
|
|
8680
8691
|
return /* @__PURE__ */ r(
|
|
8681
|
-
|
|
8692
|
+
hi,
|
|
8682
8693
|
{
|
|
8683
8694
|
onOpenChange: (g) => {
|
|
8684
8695
|
g || a();
|
|
@@ -8715,7 +8726,7 @@ function ge({
|
|
|
8715
8726
|
}) {
|
|
8716
8727
|
return /* @__PURE__ */ r("form", { onSubmit: (a) => a.preventDefault(), className: e, children: t });
|
|
8717
8728
|
}
|
|
8718
|
-
function
|
|
8729
|
+
function mi(e, t) {
|
|
8719
8730
|
let a = e;
|
|
8720
8731
|
const n = t?.message, o = t?.hint?.errors?.[0]?.message, l = n?.length;
|
|
8721
8732
|
return l && (a += `
|
|
@@ -8742,7 +8753,7 @@ function ve({
|
|
|
8742
8753
|
try {
|
|
8743
8754
|
await c(), g && oe(g);
|
|
8744
8755
|
} catch (f) {
|
|
8745
|
-
le(
|
|
8756
|
+
le(mi(i, f));
|
|
8746
8757
|
} finally {
|
|
8747
8758
|
u(!1);
|
|
8748
8759
|
}
|
|
@@ -8765,7 +8776,7 @@ function ve({
|
|
|
8765
8776
|
function _t(e) {
|
|
8766
8777
|
return e.length === 36 && e.indexOf("-") === 8 ? e.replaceAll(/[^-]/g, "*") : e.replaceAll(/./g, "*");
|
|
8767
8778
|
}
|
|
8768
|
-
function
|
|
8779
|
+
function bi({
|
|
8769
8780
|
value: e,
|
|
8770
8781
|
label: t,
|
|
8771
8782
|
size: a = "normal",
|
|
@@ -8830,7 +8841,7 @@ function mi({
|
|
|
8830
8841
|
}
|
|
8831
8842
|
);
|
|
8832
8843
|
}
|
|
8833
|
-
function
|
|
8844
|
+
function wi({
|
|
8834
8845
|
value: e,
|
|
8835
8846
|
label: t,
|
|
8836
8847
|
size: a = "normal",
|
|
@@ -8922,7 +8933,7 @@ function bi({
|
|
|
8922
8933
|
}
|
|
8923
8934
|
);
|
|
8924
8935
|
}
|
|
8925
|
-
function
|
|
8936
|
+
function vi({ value: e }) {
|
|
8926
8937
|
const [t, a] = C(!1);
|
|
8927
8938
|
return /* @__PURE__ */ h("span", { className: "inline-flex items-center rounded-sm bg-gray-500 px-2 text-sm text-white", children: [
|
|
8928
8939
|
/* @__PURE__ */ r(
|
|
@@ -9004,7 +9015,7 @@ const ft = ({
|
|
|
9004
9015
|
)
|
|
9005
9016
|
]
|
|
9006
9017
|
}
|
|
9007
|
-
),
|
|
9018
|
+
), yi = ({
|
|
9008
9019
|
children: e,
|
|
9009
9020
|
className: t
|
|
9010
9021
|
}) => /* @__PURE__ */ r(
|
|
@@ -9200,9 +9211,9 @@ function Ft(e) {
|
|
|
9200
9211
|
}
|
|
9201
9212
|
);
|
|
9202
9213
|
}
|
|
9203
|
-
function
|
|
9214
|
+
function ki(e) {
|
|
9204
9215
|
const [t, a] = C(e.value), o = `json-editor-${ur()}.json`, [l, i] = C(void 0);
|
|
9205
|
-
return
|
|
9216
|
+
return ai(o, l, e.schema), P(() => {
|
|
9206
9217
|
a(e.value);
|
|
9207
9218
|
}, [e.value]), /* @__PURE__ */ h("div", { className: "flex h-full min-h-0 flex-col bg-gray-50 dark:bg-[#252525]", children: [
|
|
9208
9219
|
/* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-4 border-b px-4 py-2 dark:border-b-neutral-700", children: [
|
|
@@ -9235,7 +9246,7 @@ function yi(e) {
|
|
|
9235
9246
|
m && setTimeout(async () => {
|
|
9236
9247
|
const d = m.getValue();
|
|
9237
9248
|
if (!d.trim()) return;
|
|
9238
|
-
const u =
|
|
9249
|
+
const u = ti(d);
|
|
9239
9250
|
u.status === "ok" && m.setValue(JSON.stringify(u.value, null, 2));
|
|
9240
9251
|
}, 20);
|
|
9241
9252
|
});
|
|
@@ -9244,7 +9255,7 @@ function yi(e) {
|
|
|
9244
9255
|
) })
|
|
9245
9256
|
] });
|
|
9246
9257
|
}
|
|
9247
|
-
function
|
|
9258
|
+
function xi(e) {
|
|
9248
9259
|
const [t, a] = Rt("diffSideBySide", !1), n = X(null);
|
|
9249
9260
|
return P(() => {
|
|
9250
9261
|
const o = n.current;
|
|
@@ -9304,9 +9315,9 @@ function $t({
|
|
|
9304
9315
|
}) {
|
|
9305
9316
|
const [i, g] = C("Copy");
|
|
9306
9317
|
return /* @__PURE__ */ r(
|
|
9307
|
-
|
|
9318
|
+
ei,
|
|
9308
9319
|
{
|
|
9309
|
-
...
|
|
9320
|
+
...Xo,
|
|
9310
9321
|
code: e.trimEnd(),
|
|
9311
9322
|
language: t,
|
|
9312
9323
|
theme: n ? {
|
|
@@ -9315,7 +9326,7 @@ function $t({
|
|
|
9315
9326
|
color: "white"
|
|
9316
9327
|
},
|
|
9317
9328
|
styles: []
|
|
9318
|
-
} :
|
|
9329
|
+
} : ni,
|
|
9319
9330
|
children: ({ className: c, style: p, tokens: m, getTokenProps: d }) => /* @__PURE__ */ h(
|
|
9320
9331
|
"pre",
|
|
9321
9332
|
{
|
|
@@ -9386,19 +9397,19 @@ function Jr({
|
|
|
9386
9397
|
}
|
|
9387
9398
|
);
|
|
9388
9399
|
}
|
|
9389
|
-
const
|
|
9400
|
+
const Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9390
9401
|
__proto__: null,
|
|
9391
9402
|
ActionButton: ve,
|
|
9392
9403
|
ActionForm: ge,
|
|
9393
|
-
Badge:
|
|
9404
|
+
Badge: yi,
|
|
9394
9405
|
BaseSelect: zr,
|
|
9395
|
-
BlockHeading:
|
|
9406
|
+
BlockHeading: ci,
|
|
9396
9407
|
Button: V,
|
|
9397
9408
|
Checkbox: te,
|
|
9398
9409
|
CodeEditor: Ft,
|
|
9399
9410
|
Content: gt,
|
|
9400
|
-
Copyable:
|
|
9401
|
-
Copytext:
|
|
9411
|
+
Copyable: wi,
|
|
9412
|
+
Copytext: vi,
|
|
9402
9413
|
Dialog: fe,
|
|
9403
9414
|
DialogContent: Wr,
|
|
9404
9415
|
DialogOverlay: Hr,
|
|
@@ -9411,30 +9422,30 @@ const Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9411
9422
|
DropdownMenuTrigger: Xr,
|
|
9412
9423
|
Fence: $t,
|
|
9413
9424
|
FullscreenLoading: Lt,
|
|
9414
|
-
Group:
|
|
9415
|
-
Hint:
|
|
9425
|
+
Group: ii,
|
|
9426
|
+
Hint: ui,
|
|
9416
9427
|
IconButton: ht,
|
|
9417
9428
|
InfoTip: Dt,
|
|
9418
|
-
JSONDiffEditor:
|
|
9419
|
-
JSONEditor:
|
|
9429
|
+
JSONDiffEditor: xi,
|
|
9430
|
+
JSONEditor: ki,
|
|
9420
9431
|
Label: Re,
|
|
9421
|
-
LogoIcon:
|
|
9432
|
+
LogoIcon: pi,
|
|
9422
9433
|
ProgressButton: Vr,
|
|
9423
|
-
ScreenHeading:
|
|
9424
|
-
SectionHeading:
|
|
9434
|
+
ScreenHeading: li,
|
|
9435
|
+
SectionHeading: si,
|
|
9425
9436
|
Select: we,
|
|
9426
9437
|
SelectContent: Mr,
|
|
9427
|
-
SelectGroup:
|
|
9438
|
+
SelectGroup: Go,
|
|
9428
9439
|
SelectItem: Ur,
|
|
9429
|
-
SelectLabel:
|
|
9430
|
-
SelectSeparator:
|
|
9440
|
+
SelectLabel: Ho,
|
|
9441
|
+
SelectSeparator: Wo,
|
|
9431
9442
|
SelectTrigger: jr,
|
|
9432
9443
|
SelectValue: Br,
|
|
9433
|
-
SmallCopyable:
|
|
9434
|
-
Stack:
|
|
9435
|
-
SubsectionHeading:
|
|
9444
|
+
SmallCopyable: bi,
|
|
9445
|
+
Stack: oi,
|
|
9446
|
+
SubsectionHeading: di,
|
|
9436
9447
|
Switch: Jr,
|
|
9437
|
-
TextArea:
|
|
9448
|
+
TextArea: gi,
|
|
9438
9449
|
TextInput: Ne,
|
|
9439
9450
|
Toaster: fa,
|
|
9440
9451
|
ToggleCollection: Pr,
|
|
@@ -9452,15 +9463,15 @@ const Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9452
9463
|
export {
|
|
9453
9464
|
ve as ActionButton,
|
|
9454
9465
|
ge as ActionForm,
|
|
9455
|
-
|
|
9466
|
+
yi as Badge,
|
|
9456
9467
|
zr as BaseSelect,
|
|
9457
|
-
|
|
9468
|
+
ci as BlockHeading,
|
|
9458
9469
|
V as Button,
|
|
9459
9470
|
te as Checkbox,
|
|
9460
9471
|
Ft as CodeEditor,
|
|
9461
9472
|
gt as Content,
|
|
9462
|
-
|
|
9463
|
-
|
|
9473
|
+
wi as Copyable,
|
|
9474
|
+
vi as Copytext,
|
|
9464
9475
|
fe as Dialog,
|
|
9465
9476
|
Wr as DialogContent,
|
|
9466
9477
|
Hr as DialogOverlay,
|
|
@@ -9471,36 +9482,36 @@ export {
|
|
|
9471
9482
|
Pe as DropdownMenuItem,
|
|
9472
9483
|
Qr as DropdownMenuSeparator,
|
|
9473
9484
|
Xr as DropdownMenuTrigger,
|
|
9474
|
-
|
|
9485
|
+
Qi as Explorer,
|
|
9475
9486
|
$t as Fence,
|
|
9476
9487
|
Lt as FullscreenLoading,
|
|
9477
|
-
|
|
9478
|
-
|
|
9488
|
+
ii as Group,
|
|
9489
|
+
ui as Hint,
|
|
9479
9490
|
ht as IconButton,
|
|
9480
9491
|
Dt as InfoTip,
|
|
9481
|
-
|
|
9482
|
-
|
|
9492
|
+
xi as JSONDiffEditor,
|
|
9493
|
+
ki as JSONEditor,
|
|
9483
9494
|
Re as Label,
|
|
9484
|
-
|
|
9495
|
+
pi as LogoIcon,
|
|
9485
9496
|
Vr as ProgressButton,
|
|
9486
|
-
|
|
9487
|
-
|
|
9497
|
+
li as ScreenHeading,
|
|
9498
|
+
si as SectionHeading,
|
|
9488
9499
|
we as Select,
|
|
9489
9500
|
Mr as SelectContent,
|
|
9490
|
-
|
|
9501
|
+
Go as SelectGroup,
|
|
9491
9502
|
Ur as SelectItem,
|
|
9492
|
-
|
|
9493
|
-
|
|
9503
|
+
Ho as SelectLabel,
|
|
9504
|
+
Wo as SelectSeparator,
|
|
9494
9505
|
jr as SelectTrigger,
|
|
9495
9506
|
Br as SelectValue,
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9507
|
+
bi as SmallCopyable,
|
|
9508
|
+
oi as Stack,
|
|
9509
|
+
qo as StyleMe,
|
|
9510
|
+
di as SubsectionHeading,
|
|
9500
9511
|
Jr as Switch,
|
|
9501
|
-
|
|
9512
|
+
gi as TextArea,
|
|
9502
9513
|
Ne as TextInput,
|
|
9503
|
-
|
|
9514
|
+
rl as Toaster,
|
|
9504
9515
|
Pr as ToggleCollection,
|
|
9505
9516
|
qr as ToggleGroup,
|
|
9506
9517
|
Ze as Tooltip,
|
|
@@ -9509,8 +9520,8 @@ export {
|
|
|
9509
9520
|
Qe as TooltipTrigger,
|
|
9510
9521
|
O as cn,
|
|
9511
9522
|
_t as redactedValue,
|
|
9512
|
-
|
|
9523
|
+
al as toast,
|
|
9513
9524
|
ue as twel,
|
|
9514
|
-
|
|
9525
|
+
Ji as ui,
|
|
9515
9526
|
st as useDialog
|
|
9516
9527
|
};
|