@krak-stack/registry 0.1.26 → 0.1.27
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/LICENSE +21 -0
- package/README.md +5 -0
- package/dist/components/ui/data-table.js +212 -207
- package/dist/components/ui/effect-form.js +170 -169
- package/dist/components/ui/form.js +113 -112
- package/dist/components/ui/icon-input.js +43 -40
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/sidebar-layout.js +71 -66
- package/dist/components/ui/theme-switcher.js +3 -3
- package/dist/components/ui/virtualized-combobox.js +34 -31
- package/dist/lib/docs.js +138 -133
- package/dist/lib/docs.server.js +47 -23
- package/dist/lib/documentation-toolkit.js +48 -24
- package/dist/lib/httpapi-cli.js +7 -7
- package/dist/lib/httpapi-client.js +3 -3
- package/dist/lib/httpapi-helpers.js +11 -11
- package/dist/lib/httpapi-mcp.js +2 -2
- package/dist/lib/httpapi-toolkit.js +2 -2
- package/dist/lib/query.js +7 -7
- package/dist/lib/seo.js +2 -2
- package/dist/lib/webfetch-toolkit.js +6 -6
- package/dist/services/agent/client/index.js +128 -127
- package/dist/services/agent/schema.js +5 -5
- package/dist/services/file-extraction/index.js +4 -4
- package/dist/services/file-extraction/schema.js +2 -2
- package/dist/services/health/index.js +9 -9
- package/dist/services/notification/channels/ses/index.d.ts +2 -2
- package/dist/services/notification/channels/ses/index.js +2 -2
- package/dist/services/notification/channels/ses/schema.js +2 -2
- package/dist/services/notification/client/index.js +5 -5
- package/dist/services/notification/index.js +2 -2
- package/dist/services/notification/persistence/drizzle.d.ts +868 -0
- package/dist/services/notification/persistence/drizzle.js +2 -2
- package/dist/services/notification/persistence/index.d.ts +2 -0
- package/dist/services/notification/persistence/index.js +15 -15
- package/dist/services/notification/persistence/schema.d.ts +143 -0
- package/dist/services/notification/persistence/schema.js +12 -12
- package/dist/services/notification/public.js +7 -7
- package/dist/services/notification/schema.js +2 -2
- package/dist/services/s3/index.js +2 -2
- package/dist/services/s3/schema.js +2 -2
- package/package.json +2 -2
package/dist/lib/docs.js
CHANGED
|
@@ -1239,29 +1239,31 @@ function useIsMobile() {
|
|
|
1239
1239
|
|
|
1240
1240
|
// ../../src/components/ui/input.tsx
|
|
1241
1241
|
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
1242
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
1242
1243
|
|
|
1243
1244
|
// ../../src/components/ui/separator.tsx
|
|
1244
1245
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
1246
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
1245
1247
|
|
|
1246
1248
|
// ../../src/components/ui/sheet.tsx
|
|
1247
1249
|
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
1248
1250
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
1249
|
-
import { jsx as
|
|
1251
|
+
import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1250
1252
|
"use client";
|
|
1251
1253
|
function Sheet({ ...props }) {
|
|
1252
|
-
return /* @__PURE__ */
|
|
1254
|
+
return /* @__PURE__ */ jsx12(SheetPrimitive.Root, {
|
|
1253
1255
|
"data-slot": "sheet",
|
|
1254
1256
|
...props
|
|
1255
1257
|
});
|
|
1256
1258
|
}
|
|
1257
1259
|
function SheetPortal({ ...props }) {
|
|
1258
|
-
return /* @__PURE__ */
|
|
1260
|
+
return /* @__PURE__ */ jsx12(SheetPrimitive.Portal, {
|
|
1259
1261
|
"data-slot": "sheet-portal",
|
|
1260
1262
|
...props
|
|
1261
1263
|
});
|
|
1262
1264
|
}
|
|
1263
1265
|
function SheetOverlay({ className, ...props }) {
|
|
1264
|
-
return /* @__PURE__ */
|
|
1266
|
+
return /* @__PURE__ */ jsx12(SheetPrimitive.Backdrop, {
|
|
1265
1267
|
"data-slot": "sheet-overlay",
|
|
1266
1268
|
className: cn("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs", className),
|
|
1267
1269
|
...props
|
|
@@ -1276,7 +1278,7 @@ function SheetContent({
|
|
|
1276
1278
|
}) {
|
|
1277
1279
|
return /* @__PURE__ */ jsxs7(SheetPortal, {
|
|
1278
1280
|
children: [
|
|
1279
|
-
/* @__PURE__ */
|
|
1281
|
+
/* @__PURE__ */ jsx12(SheetOverlay, {}),
|
|
1280
1282
|
/* @__PURE__ */ jsxs7(SheetPrimitive.Popup, {
|
|
1281
1283
|
"data-slot": "sheet-content",
|
|
1282
1284
|
"data-side": side,
|
|
@@ -1286,14 +1288,14 @@ function SheetContent({
|
|
|
1286
1288
|
children,
|
|
1287
1289
|
showCloseButton && /* @__PURE__ */ jsxs7(SheetPrimitive.Close, {
|
|
1288
1290
|
"data-slot": "sheet-close",
|
|
1289
|
-
render: /* @__PURE__ */
|
|
1291
|
+
render: /* @__PURE__ */ jsx12(Button, {
|
|
1290
1292
|
variant: "ghost",
|
|
1291
1293
|
className: "absolute top-4 right-4",
|
|
1292
1294
|
size: "icon-sm"
|
|
1293
1295
|
}),
|
|
1294
1296
|
children: [
|
|
1295
|
-
/* @__PURE__ */
|
|
1296
|
-
/* @__PURE__ */
|
|
1297
|
+
/* @__PURE__ */ jsx12(XIcon2, {}),
|
|
1298
|
+
/* @__PURE__ */ jsx12("span", {
|
|
1297
1299
|
className: "sr-only",
|
|
1298
1300
|
children: "Close"
|
|
1299
1301
|
})
|
|
@@ -1305,14 +1307,14 @@ function SheetContent({
|
|
|
1305
1307
|
});
|
|
1306
1308
|
}
|
|
1307
1309
|
function SheetHeader({ className, ...props }) {
|
|
1308
|
-
return /* @__PURE__ */
|
|
1310
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1309
1311
|
"data-slot": "sheet-header",
|
|
1310
1312
|
className: cn("flex flex-col gap-1.5 p-4", className),
|
|
1311
1313
|
...props
|
|
1312
1314
|
});
|
|
1313
1315
|
}
|
|
1314
1316
|
function SheetTitle({ className, ...props }) {
|
|
1315
|
-
return /* @__PURE__ */
|
|
1317
|
+
return /* @__PURE__ */ jsx12(SheetPrimitive.Title, {
|
|
1316
1318
|
"data-slot": "sheet-title",
|
|
1317
1319
|
className: cn("font-medium text-foreground", className),
|
|
1318
1320
|
...props
|
|
@@ -1322,25 +1324,28 @@ function SheetDescription({
|
|
|
1322
1324
|
className,
|
|
1323
1325
|
...props
|
|
1324
1326
|
}) {
|
|
1325
|
-
return /* @__PURE__ */
|
|
1327
|
+
return /* @__PURE__ */ jsx12(SheetPrimitive.Description, {
|
|
1326
1328
|
"data-slot": "sheet-description",
|
|
1327
1329
|
className: cn("text-sm text-muted-foreground", className),
|
|
1328
1330
|
...props
|
|
1329
1331
|
});
|
|
1330
1332
|
}
|
|
1331
1333
|
|
|
1334
|
+
// ../../src/components/ui/skeleton.tsx
|
|
1335
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1336
|
+
|
|
1332
1337
|
// ../../src/components/ui/tooltip.tsx
|
|
1333
1338
|
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
1334
|
-
import { jsx as
|
|
1339
|
+
import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1335
1340
|
"use client";
|
|
1336
1341
|
function Tooltip({ ...props }) {
|
|
1337
|
-
return /* @__PURE__ */
|
|
1342
|
+
return /* @__PURE__ */ jsx14(TooltipPrimitive.Root, {
|
|
1338
1343
|
"data-slot": "tooltip",
|
|
1339
1344
|
...props
|
|
1340
1345
|
});
|
|
1341
1346
|
}
|
|
1342
1347
|
function TooltipTrigger({ ...props }) {
|
|
1343
|
-
return /* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ jsx14(TooltipPrimitive.Trigger, {
|
|
1344
1349
|
"data-slot": "tooltip-trigger",
|
|
1345
1350
|
...props
|
|
1346
1351
|
});
|
|
@@ -1354,8 +1359,8 @@ function TooltipContent({
|
|
|
1354
1359
|
children,
|
|
1355
1360
|
...props
|
|
1356
1361
|
}) {
|
|
1357
|
-
return /* @__PURE__ */
|
|
1358
|
-
children: /* @__PURE__ */
|
|
1362
|
+
return /* @__PURE__ */ jsx14(TooltipPrimitive.Portal, {
|
|
1363
|
+
children: /* @__PURE__ */ jsx14(TooltipPrimitive.Positioner, {
|
|
1359
1364
|
align,
|
|
1360
1365
|
alignOffset,
|
|
1361
1366
|
side,
|
|
@@ -1367,7 +1372,7 @@ function TooltipContent({
|
|
|
1367
1372
|
...props,
|
|
1368
1373
|
children: [
|
|
1369
1374
|
children,
|
|
1370
|
-
/* @__PURE__ */
|
|
1375
|
+
/* @__PURE__ */ jsx14(TooltipPrimitive.Arrow, {
|
|
1371
1376
|
className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"
|
|
1372
1377
|
})
|
|
1373
1378
|
]
|
|
@@ -1379,7 +1384,7 @@ function TooltipContent({
|
|
|
1379
1384
|
// ../../src/components/ui/sidebar.tsx
|
|
1380
1385
|
import { PanelLeftIcon } from "lucide-react";
|
|
1381
1386
|
import { Schema } from "effect";
|
|
1382
|
-
import { jsx as
|
|
1387
|
+
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1383
1388
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
1384
1389
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
1385
1390
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -1443,9 +1448,9 @@ function SidebarProvider({
|
|
|
1443
1448
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
1444
1449
|
...style
|
|
1445
1450
|
};
|
|
1446
|
-
return /* @__PURE__ */
|
|
1451
|
+
return /* @__PURE__ */ jsx15(SidebarContext.Provider, {
|
|
1447
1452
|
value: contextValue,
|
|
1448
|
-
children: /* @__PURE__ */
|
|
1453
|
+
children: /* @__PURE__ */ jsx15("div", {
|
|
1449
1454
|
"data-slot": "sidebar-wrapper",
|
|
1450
1455
|
style: wrapperStyle,
|
|
1451
1456
|
className: cn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", className),
|
|
@@ -1465,7 +1470,7 @@ function Sidebar({
|
|
|
1465
1470
|
}) {
|
|
1466
1471
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
1467
1472
|
if (collapsible === "none") {
|
|
1468
|
-
return /* @__PURE__ */
|
|
1473
|
+
return /* @__PURE__ */ jsx15("div", {
|
|
1469
1474
|
"data-slot": "sidebar",
|
|
1470
1475
|
className: cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", className),
|
|
1471
1476
|
...props,
|
|
@@ -1476,7 +1481,7 @@ function Sidebar({
|
|
|
1476
1481
|
const mobileStyle = {
|
|
1477
1482
|
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
1478
1483
|
};
|
|
1479
|
-
return /* @__PURE__ */
|
|
1484
|
+
return /* @__PURE__ */ jsx15(Sheet, {
|
|
1480
1485
|
open: openMobile,
|
|
1481
1486
|
onOpenChange: setOpenMobile,
|
|
1482
1487
|
...props,
|
|
@@ -1492,15 +1497,15 @@ function Sidebar({
|
|
|
1492
1497
|
/* @__PURE__ */ jsxs9(SheetHeader, {
|
|
1493
1498
|
className: "sr-only",
|
|
1494
1499
|
children: [
|
|
1495
|
-
/* @__PURE__ */
|
|
1500
|
+
/* @__PURE__ */ jsx15(SheetTitle, {
|
|
1496
1501
|
children: "Sidebar"
|
|
1497
1502
|
}),
|
|
1498
|
-
/* @__PURE__ */
|
|
1503
|
+
/* @__PURE__ */ jsx15(SheetDescription, {
|
|
1499
1504
|
children: "Displays the mobile sidebar."
|
|
1500
1505
|
})
|
|
1501
1506
|
]
|
|
1502
1507
|
}),
|
|
1503
|
-
/* @__PURE__ */
|
|
1508
|
+
/* @__PURE__ */ jsx15("div", {
|
|
1504
1509
|
className: "flex h-full w-full flex-col",
|
|
1505
1510
|
children
|
|
1506
1511
|
})
|
|
@@ -1516,16 +1521,16 @@ function Sidebar({
|
|
|
1516
1521
|
"data-side": side,
|
|
1517
1522
|
"data-slot": "sidebar",
|
|
1518
1523
|
children: [
|
|
1519
|
-
/* @__PURE__ */
|
|
1524
|
+
/* @__PURE__ */ jsx15("div", {
|
|
1520
1525
|
"data-slot": "sidebar-gap",
|
|
1521
1526
|
className: cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
1522
1527
|
}),
|
|
1523
|
-
/* @__PURE__ */
|
|
1528
|
+
/* @__PURE__ */ jsx15("div", {
|
|
1524
1529
|
"data-slot": "sidebar-container",
|
|
1525
1530
|
"data-side": side,
|
|
1526
1531
|
className: cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex", variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", className),
|
|
1527
1532
|
...props,
|
|
1528
|
-
children: /* @__PURE__ */
|
|
1533
|
+
children: /* @__PURE__ */ jsx15("div", {
|
|
1529
1534
|
"data-sidebar": "sidebar",
|
|
1530
1535
|
"data-slot": "sidebar-inner",
|
|
1531
1536
|
className: "bg-sidebar group-data-[variant=floating]:ring-sidebar-border flex size-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1",
|
|
@@ -1553,8 +1558,8 @@ function SidebarTrigger({
|
|
|
1553
1558
|
},
|
|
1554
1559
|
...props,
|
|
1555
1560
|
children: [
|
|
1556
|
-
/* @__PURE__ */
|
|
1557
|
-
/* @__PURE__ */
|
|
1561
|
+
/* @__PURE__ */ jsx15(PanelLeftIcon, {}),
|
|
1562
|
+
/* @__PURE__ */ jsx15("span", {
|
|
1558
1563
|
className: "sr-only",
|
|
1559
1564
|
children: "Toggle Sidebar"
|
|
1560
1565
|
})
|
|
@@ -1563,7 +1568,7 @@ function SidebarTrigger({
|
|
|
1563
1568
|
}
|
|
1564
1569
|
function SidebarRail({ className, ...props }) {
|
|
1565
1570
|
const { toggleSidebar } = useSidebar();
|
|
1566
|
-
return /* @__PURE__ */
|
|
1571
|
+
return /* @__PURE__ */ jsx15("button", {
|
|
1567
1572
|
"data-sidebar": "rail",
|
|
1568
1573
|
"data-slot": "sidebar-rail",
|
|
1569
1574
|
"aria-label": "Toggle Sidebar",
|
|
@@ -1575,14 +1580,14 @@ function SidebarRail({ className, ...props }) {
|
|
|
1575
1580
|
});
|
|
1576
1581
|
}
|
|
1577
1582
|
function SidebarInset({ className, ...props }) {
|
|
1578
|
-
return /* @__PURE__ */
|
|
1583
|
+
return /* @__PURE__ */ jsx15("main", {
|
|
1579
1584
|
"data-slot": "sidebar-inset",
|
|
1580
1585
|
className: cn("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", className),
|
|
1581
1586
|
...props
|
|
1582
1587
|
});
|
|
1583
1588
|
}
|
|
1584
1589
|
function SidebarHeader({ className, ...props }) {
|
|
1585
|
-
return /* @__PURE__ */
|
|
1590
|
+
return /* @__PURE__ */ jsx15("div", {
|
|
1586
1591
|
"data-slot": "sidebar-header",
|
|
1587
1592
|
"data-sidebar": "header",
|
|
1588
1593
|
className: cn("flex flex-col gap-2 p-2", className),
|
|
@@ -1590,7 +1595,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
1590
1595
|
});
|
|
1591
1596
|
}
|
|
1592
1597
|
function SidebarFooter({ className, ...props }) {
|
|
1593
|
-
return /* @__PURE__ */
|
|
1598
|
+
return /* @__PURE__ */ jsx15("div", {
|
|
1594
1599
|
"data-slot": "sidebar-footer",
|
|
1595
1600
|
"data-sidebar": "footer",
|
|
1596
1601
|
className: cn("flex flex-col gap-2 p-2", className),
|
|
@@ -1598,7 +1603,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
1598
1603
|
});
|
|
1599
1604
|
}
|
|
1600
1605
|
function SidebarContent({ className, ...props }) {
|
|
1601
|
-
return /* @__PURE__ */
|
|
1606
|
+
return /* @__PURE__ */ jsx15("div", {
|
|
1602
1607
|
"data-slot": "sidebar-content",
|
|
1603
1608
|
"data-sidebar": "content",
|
|
1604
1609
|
className: cn("no-scrollbar flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className),
|
|
@@ -1606,7 +1611,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
1606
1611
|
});
|
|
1607
1612
|
}
|
|
1608
1613
|
function SidebarGroup({ className, ...props }) {
|
|
1609
|
-
return /* @__PURE__ */
|
|
1614
|
+
return /* @__PURE__ */ jsx15("div", {
|
|
1610
1615
|
"data-slot": "sidebar-group",
|
|
1611
1616
|
"data-sidebar": "group",
|
|
1612
1617
|
className: cn("relative flex w-full min-w-0 flex-col p-2", className),
|
|
@@ -1634,7 +1639,7 @@ function SidebarGroupContent({
|
|
|
1634
1639
|
className,
|
|
1635
1640
|
...props
|
|
1636
1641
|
}) {
|
|
1637
|
-
return /* @__PURE__ */
|
|
1642
|
+
return /* @__PURE__ */ jsx15("div", {
|
|
1638
1643
|
"data-slot": "sidebar-group-content",
|
|
1639
1644
|
"data-sidebar": "group-content",
|
|
1640
1645
|
className: cn("w-full text-sm", className),
|
|
@@ -1642,7 +1647,7 @@ function SidebarGroupContent({
|
|
|
1642
1647
|
});
|
|
1643
1648
|
}
|
|
1644
1649
|
function SidebarMenu({ className, ...props }) {
|
|
1645
|
-
return /* @__PURE__ */
|
|
1650
|
+
return /* @__PURE__ */ jsx15("ul", {
|
|
1646
1651
|
"data-slot": "sidebar-menu",
|
|
1647
1652
|
"data-sidebar": "menu",
|
|
1648
1653
|
className: cn("flex w-full min-w-0 flex-col gap-1", className),
|
|
@@ -1650,7 +1655,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
1650
1655
|
});
|
|
1651
1656
|
}
|
|
1652
1657
|
function SidebarMenuItem({ className, ...props }) {
|
|
1653
|
-
return /* @__PURE__ */
|
|
1658
|
+
return /* @__PURE__ */ jsx15("li", {
|
|
1654
1659
|
"data-slot": "sidebar-menu-item",
|
|
1655
1660
|
"data-sidebar": "menu-item",
|
|
1656
1661
|
className: cn("group/menu-item relative", className),
|
|
@@ -1689,7 +1694,7 @@ function SidebarMenuButton({
|
|
|
1689
1694
|
props: mergeProps2({
|
|
1690
1695
|
className: cn(sidebarMenuButtonVariants({ variant, size }), className)
|
|
1691
1696
|
}, props),
|
|
1692
|
-
render: !tooltip ? render : /* @__PURE__ */
|
|
1697
|
+
render: !tooltip ? render : /* @__PURE__ */ jsx15(TooltipTrigger, {
|
|
1693
1698
|
render
|
|
1694
1699
|
}),
|
|
1695
1700
|
state: {
|
|
@@ -1706,7 +1711,7 @@ function SidebarMenuButton({
|
|
|
1706
1711
|
return /* @__PURE__ */ jsxs9(Tooltip, {
|
|
1707
1712
|
children: [
|
|
1708
1713
|
comp,
|
|
1709
|
-
/* @__PURE__ */
|
|
1714
|
+
/* @__PURE__ */ jsx15(TooltipContent, {
|
|
1710
1715
|
side: "right",
|
|
1711
1716
|
align: "center",
|
|
1712
1717
|
hidden: state !== "collapsed" || isMobile,
|
|
@@ -1717,7 +1722,7 @@ function SidebarMenuButton({
|
|
|
1717
1722
|
}
|
|
1718
1723
|
|
|
1719
1724
|
// ../../src/components/ui/sidebar-layout.tsx
|
|
1720
|
-
import { jsx as
|
|
1725
|
+
import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1721
1726
|
var SIDEBAR_COOKIE_NAME2 = "sidebar_state";
|
|
1722
1727
|
var SidebarOpenCookie = Schema2.Literals(["true", "false"]).annotate({
|
|
1723
1728
|
identifier: "SidebarOpenCookie"
|
|
@@ -1737,38 +1742,38 @@ function AppSidebar({ collapsible, footer, groups, header }) {
|
|
|
1737
1742
|
return /* @__PURE__ */ jsxs10(Sidebar, {
|
|
1738
1743
|
collapsible,
|
|
1739
1744
|
children: [
|
|
1740
|
-
header && /* @__PURE__ */
|
|
1745
|
+
header && /* @__PURE__ */ jsx16(SidebarHeader, {
|
|
1741
1746
|
children: header
|
|
1742
1747
|
}),
|
|
1743
|
-
/* @__PURE__ */
|
|
1748
|
+
/* @__PURE__ */ jsx16(SidebarContent, {
|
|
1744
1749
|
className: "group-data-[collapsible=icon]:overflow-x-hidden group-data-[collapsible=icon]:overflow-y-auto",
|
|
1745
1750
|
children: groups.map((group) => /* @__PURE__ */ jsxs10(SidebarGroup, {
|
|
1746
1751
|
children: [
|
|
1747
|
-
/* @__PURE__ */
|
|
1752
|
+
/* @__PURE__ */ jsx16(SidebarGroupLabel, {
|
|
1748
1753
|
children: group.label()
|
|
1749
1754
|
}),
|
|
1750
|
-
/* @__PURE__ */
|
|
1751
|
-
children: /* @__PURE__ */
|
|
1755
|
+
/* @__PURE__ */ jsx16(SidebarGroupContent, {
|
|
1756
|
+
children: /* @__PURE__ */ jsx16(SidebarMenu, {
|
|
1752
1757
|
children: group.items.map((item) => {
|
|
1753
|
-
const render = item.external ? /* @__PURE__ */
|
|
1758
|
+
const render = item.external ? /* @__PURE__ */ jsx16("a", {
|
|
1754
1759
|
href: item.href,
|
|
1755
1760
|
target: "_blank",
|
|
1756
1761
|
rel: "noreferrer"
|
|
1757
|
-
}) : /* @__PURE__ */
|
|
1762
|
+
}) : /* @__PURE__ */ jsx16(Link2, {
|
|
1758
1763
|
to: item.href
|
|
1759
1764
|
});
|
|
1760
|
-
return /* @__PURE__ */
|
|
1765
|
+
return /* @__PURE__ */ jsx16(SidebarMenuItem, {
|
|
1761
1766
|
children: /* @__PURE__ */ jsxs10(SidebarMenuButton, {
|
|
1762
1767
|
isActive: !item.external && pathname === item.href,
|
|
1763
1768
|
onClick: closeMobileSidebar,
|
|
1764
1769
|
render,
|
|
1765
1770
|
tooltip: item.label(),
|
|
1766
1771
|
children: [
|
|
1767
|
-
item.icon ? /* @__PURE__ */
|
|
1768
|
-
/* @__PURE__ */
|
|
1772
|
+
item.icon ? /* @__PURE__ */ jsx16(item.icon, {}) : null,
|
|
1773
|
+
/* @__PURE__ */ jsx16("span", {
|
|
1769
1774
|
children: item.label()
|
|
1770
1775
|
}),
|
|
1771
|
-
item.badge ? /* @__PURE__ */
|
|
1776
|
+
item.badge ? /* @__PURE__ */ jsx16(Badge, {
|
|
1772
1777
|
className: "ml-auto",
|
|
1773
1778
|
variant: "secondary",
|
|
1774
1779
|
children: item.badge()
|
|
@@ -1782,10 +1787,10 @@ function AppSidebar({ collapsible, footer, groups, header }) {
|
|
|
1782
1787
|
]
|
|
1783
1788
|
}, group.label()))
|
|
1784
1789
|
}),
|
|
1785
|
-
footer ? /* @__PURE__ */
|
|
1790
|
+
footer ? /* @__PURE__ */ jsx16(SidebarFooter, {
|
|
1786
1791
|
children: footer
|
|
1787
1792
|
}) : null,
|
|
1788
|
-
/* @__PURE__ */
|
|
1793
|
+
/* @__PURE__ */ jsx16(SidebarRail, {})
|
|
1789
1794
|
]
|
|
1790
1795
|
});
|
|
1791
1796
|
}
|
|
@@ -1806,7 +1811,7 @@ function SidebarLayout({
|
|
|
1806
1811
|
onOpenChange: setSidebarOpen,
|
|
1807
1812
|
className: cn(fullPage && "xl:h-svh xl:min-h-0 xl:overflow-hidden"),
|
|
1808
1813
|
children: [
|
|
1809
|
-
/* @__PURE__ */
|
|
1814
|
+
/* @__PURE__ */ jsx16(AppSidebar, {
|
|
1810
1815
|
collapsible: sidebarCollapsible,
|
|
1811
1816
|
footer: sidebarFooter,
|
|
1812
1817
|
groups,
|
|
@@ -1818,16 +1823,16 @@ function SidebarLayout({
|
|
|
1818
1823
|
/* @__PURE__ */ jsxs10("header", {
|
|
1819
1824
|
className: "bg-background/95 supports-[backdrop-filter]:bg-background/60 sticky top-0 z-10 flex h-14 shrink-0 items-center gap-2 border-b px-4 backdrop-blur",
|
|
1820
1825
|
children: [
|
|
1821
|
-
/* @__PURE__ */
|
|
1822
|
-
/* @__PURE__ */
|
|
1826
|
+
/* @__PURE__ */ jsx16(SidebarTrigger, {}),
|
|
1827
|
+
/* @__PURE__ */ jsx16("div", {
|
|
1823
1828
|
className: "ml-auto flex items-center gap-2",
|
|
1824
1829
|
children: headerActions
|
|
1825
1830
|
})
|
|
1826
1831
|
]
|
|
1827
1832
|
}),
|
|
1828
|
-
/* @__PURE__ */
|
|
1833
|
+
/* @__PURE__ */ jsx16("div", {
|
|
1829
1834
|
className: contentClassName ?? "flex flex-col gap-6 px-5 py-6 md:px-8",
|
|
1830
|
-
children: children ?? /* @__PURE__ */
|
|
1835
|
+
children: children ?? /* @__PURE__ */ jsx16(Outlet, {})
|
|
1831
1836
|
})
|
|
1832
1837
|
]
|
|
1833
1838
|
})
|
|
@@ -1949,7 +1954,7 @@ var createSeo = (defaults) => (options) => seo({
|
|
|
1949
1954
|
});
|
|
1950
1955
|
|
|
1951
1956
|
// ../../src/lib/docs.tsx
|
|
1952
|
-
import { jsx as
|
|
1957
|
+
import { jsx as jsx17, jsxs as jsxs11, Fragment as Fragment3 } from "react/jsx-runtime";
|
|
1953
1958
|
var SIDEBAR_COOKIE_NAME3 = "sidebar_state";
|
|
1954
1959
|
var SidebarOpenCookie2 = Schema3.Literals(["true", "false"]).annotate({
|
|
1955
1960
|
identifier: "SidebarOpenCookie"
|
|
@@ -1957,7 +1962,7 @@ var SidebarOpenCookie2 = Schema3.Literals(["true", "false"]).annotate({
|
|
|
1957
1962
|
var getSidebarOpenCookie = createIsomorphicFn().server(() => getCookie(SIDEBAR_COOKIE_NAME3)).client(() => Cookies2.parseHeader(globalThis.document?.cookie ?? "")[SIDEBAR_COOKIE_NAME3]);
|
|
1958
1963
|
var getSidebarDefaultOpen2 = () => Schema3.decodeUnknownOption(SidebarOpenCookie2)(getSidebarOpenCookie()).pipe(Option2.map((value) => value === "true"), Option2.getOrElse(() => true));
|
|
1959
1964
|
var makeIcon = (name, paths) => {
|
|
1960
|
-
const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */
|
|
1965
|
+
const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */ jsx17("svg", {
|
|
1961
1966
|
"aria-hidden": "true",
|
|
1962
1967
|
fill: "none",
|
|
1963
1968
|
height: size,
|
|
@@ -1976,71 +1981,71 @@ var makeIcon = (name, paths) => {
|
|
|
1976
1981
|
};
|
|
1977
1982
|
var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
1978
1983
|
children: [
|
|
1979
|
-
/* @__PURE__ */
|
|
1984
|
+
/* @__PURE__ */ jsx17("path", {
|
|
1980
1985
|
d: "m12 19-7-7 7-7"
|
|
1981
1986
|
}),
|
|
1982
|
-
/* @__PURE__ */
|
|
1987
|
+
/* @__PURE__ */ jsx17("path", {
|
|
1983
1988
|
d: "M19 12H5"
|
|
1984
1989
|
})
|
|
1985
1990
|
]
|
|
1986
1991
|
}));
|
|
1987
1992
|
var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
1988
1993
|
children: [
|
|
1989
|
-
/* @__PURE__ */
|
|
1994
|
+
/* @__PURE__ */ jsx17("path", {
|
|
1990
1995
|
d: "M5 12h14"
|
|
1991
1996
|
}),
|
|
1992
|
-
/* @__PURE__ */
|
|
1997
|
+
/* @__PURE__ */ jsx17("path", {
|
|
1993
1998
|
d: "m12 5 7 7-7 7"
|
|
1994
1999
|
})
|
|
1995
2000
|
]
|
|
1996
2001
|
}));
|
|
1997
2002
|
var BookOpen = makeIcon("BookOpen", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
1998
2003
|
children: [
|
|
1999
|
-
/* @__PURE__ */
|
|
2004
|
+
/* @__PURE__ */ jsx17("path", {
|
|
2000
2005
|
d: "M12 7v14"
|
|
2001
2006
|
}),
|
|
2002
|
-
/* @__PURE__ */
|
|
2007
|
+
/* @__PURE__ */ jsx17("path", {
|
|
2003
2008
|
d: "M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4Z"
|
|
2004
2009
|
})
|
|
2005
2010
|
]
|
|
2006
2011
|
}));
|
|
2007
|
-
var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */
|
|
2012
|
+
var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */ jsx17("path", {
|
|
2008
2013
|
d: "m6 9 6 6 6-6"
|
|
2009
2014
|
}));
|
|
2010
2015
|
var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
2011
2016
|
children: [
|
|
2012
|
-
/* @__PURE__ */
|
|
2017
|
+
/* @__PURE__ */ jsx17("path", {
|
|
2013
2018
|
d: "M15 3h6v6"
|
|
2014
2019
|
}),
|
|
2015
|
-
/* @__PURE__ */
|
|
2020
|
+
/* @__PURE__ */ jsx17("path", {
|
|
2016
2021
|
d: "M10 14 21 3"
|
|
2017
2022
|
}),
|
|
2018
|
-
/* @__PURE__ */
|
|
2023
|
+
/* @__PURE__ */ jsx17("path", {
|
|
2019
2024
|
d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"
|
|
2020
2025
|
})
|
|
2021
2026
|
]
|
|
2022
2027
|
}));
|
|
2023
2028
|
var Hash = makeIcon("Hash", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
2024
2029
|
children: [
|
|
2025
|
-
/* @__PURE__ */
|
|
2030
|
+
/* @__PURE__ */ jsx17("line", {
|
|
2026
2031
|
x1: "4",
|
|
2027
2032
|
x2: "20",
|
|
2028
2033
|
y1: "9",
|
|
2029
2034
|
y2: "9"
|
|
2030
2035
|
}),
|
|
2031
|
-
/* @__PURE__ */
|
|
2036
|
+
/* @__PURE__ */ jsx17("line", {
|
|
2032
2037
|
x1: "4",
|
|
2033
2038
|
x2: "20",
|
|
2034
2039
|
y1: "15",
|
|
2035
2040
|
y2: "15"
|
|
2036
2041
|
}),
|
|
2037
|
-
/* @__PURE__ */
|
|
2042
|
+
/* @__PURE__ */ jsx17("line", {
|
|
2038
2043
|
x1: "10",
|
|
2039
2044
|
x2: "8",
|
|
2040
2045
|
y1: "3",
|
|
2041
2046
|
y2: "21"
|
|
2042
2047
|
}),
|
|
2043
|
-
/* @__PURE__ */
|
|
2048
|
+
/* @__PURE__ */ jsx17("line", {
|
|
2044
2049
|
x1: "16",
|
|
2045
2050
|
x2: "14",
|
|
2046
2051
|
y1: "3",
|
|
@@ -2442,7 +2447,7 @@ var DocsArticle = ({
|
|
|
2442
2447
|
messages: messages3,
|
|
2443
2448
|
page
|
|
2444
2449
|
}) => {
|
|
2445
|
-
return /* @__PURE__ */
|
|
2450
|
+
return /* @__PURE__ */ jsx17(MarkdownContent, {
|
|
2446
2451
|
codeBlocks: page.codeBlocks,
|
|
2447
2452
|
html: page.html,
|
|
2448
2453
|
messages: { copy: messages3.copyCode, copied: messages3.copied }
|
|
@@ -2489,12 +2494,12 @@ var DocsTableOfContentsItems = ({
|
|
|
2489
2494
|
headings
|
|
2490
2495
|
}) => {
|
|
2491
2496
|
const activeHeadingId = useActiveDocsHeading(headings);
|
|
2492
|
-
return /* @__PURE__ */
|
|
2497
|
+
return /* @__PURE__ */ jsx17("ol", {
|
|
2493
2498
|
className: "border-l",
|
|
2494
2499
|
children: headings.map((heading) => {
|
|
2495
2500
|
const isActive = heading.id === activeHeadingId;
|
|
2496
|
-
return /* @__PURE__ */
|
|
2497
|
-
children: /* @__PURE__ */
|
|
2501
|
+
return /* @__PURE__ */ jsx17("li", {
|
|
2502
|
+
children: /* @__PURE__ */ jsx17("a", {
|
|
2498
2503
|
"aria-current": isActive ? "location" : undefined,
|
|
2499
2504
|
className: `hover:text-foreground -ml-px block border-l py-1.5 text-sm leading-5 transition-colors ${isActive ? "border-primary text-foreground font-medium" : "text-muted-foreground border-transparent"} ${heading.depth === 3 ? "pl-6" : "pl-4"}`,
|
|
2500
2505
|
href: `#${heading.id}`,
|
|
@@ -2514,11 +2519,11 @@ var DocsTableOfContents = ({
|
|
|
2514
2519
|
"aria-label": label,
|
|
2515
2520
|
className: "fixed top-20 max-h-[calc(100svh-6rem)] w-56 overflow-y-auto",
|
|
2516
2521
|
children: [
|
|
2517
|
-
/* @__PURE__ */
|
|
2522
|
+
/* @__PURE__ */ jsx17("p", {
|
|
2518
2523
|
className: "text-foreground mb-3 text-sm font-semibold",
|
|
2519
2524
|
children: label
|
|
2520
2525
|
}),
|
|
2521
|
-
/* @__PURE__ */
|
|
2526
|
+
/* @__PURE__ */ jsx17(DocsTableOfContentsItems, {
|
|
2522
2527
|
headings
|
|
2523
2528
|
})
|
|
2524
2529
|
]
|
|
@@ -2536,19 +2541,19 @@ var DocsMobileTableOfContents = ({
|
|
|
2536
2541
|
/* @__PURE__ */ jsxs11(CollapsibleTrigger, {
|
|
2537
2542
|
className: "group flex w-full cursor-pointer items-center justify-between p-4 text-left text-sm font-semibold",
|
|
2538
2543
|
children: [
|
|
2539
|
-
/* @__PURE__ */
|
|
2544
|
+
/* @__PURE__ */ jsx17("span", {
|
|
2540
2545
|
children: label
|
|
2541
2546
|
}),
|
|
2542
|
-
/* @__PURE__ */
|
|
2547
|
+
/* @__PURE__ */ jsx17(ChevronDown, {
|
|
2543
2548
|
className: "text-muted-foreground size-4 transition-transform group-data-[panel-open]:rotate-180"
|
|
2544
2549
|
})
|
|
2545
2550
|
]
|
|
2546
2551
|
}),
|
|
2547
|
-
/* @__PURE__ */
|
|
2552
|
+
/* @__PURE__ */ jsx17(CollapsibleContent, {
|
|
2548
2553
|
className: "px-4 pt-1 pb-4",
|
|
2549
|
-
children: /* @__PURE__ */
|
|
2554
|
+
children: /* @__PURE__ */ jsx17("nav", {
|
|
2550
2555
|
"aria-label": label,
|
|
2551
|
-
children: /* @__PURE__ */
|
|
2556
|
+
children: /* @__PURE__ */ jsx17(DocsTableOfContentsItems, {
|
|
2552
2557
|
headings
|
|
2553
2558
|
})
|
|
2554
2559
|
})
|
|
@@ -2586,7 +2591,7 @@ var DocsSearch = ({
|
|
|
2586
2591
|
id: `${page.path}#${heading.id}`,
|
|
2587
2592
|
label: heading.title,
|
|
2588
2593
|
description: page.title,
|
|
2589
|
-
icon: /* @__PURE__ */
|
|
2594
|
+
icon: /* @__PURE__ */ jsx17(Hash, {
|
|
2590
2595
|
className: "size-4"
|
|
2591
2596
|
}),
|
|
2592
2597
|
onSelect: () => docs.navigate(`${page.path}#${heading.id}`)
|
|
@@ -2600,7 +2605,7 @@ var DocsSearch = ({
|
|
|
2600
2605
|
if (page.icon) {
|
|
2601
2606
|
const PageIcon = iconFor(docs.icons, page.icon);
|
|
2602
2607
|
if (PageIcon)
|
|
2603
|
-
item.icon = /* @__PURE__ */
|
|
2608
|
+
item.icon = /* @__PURE__ */ jsx17(PageIcon, {
|
|
2604
2609
|
className: "size-4"
|
|
2605
2610
|
});
|
|
2606
2611
|
}
|
|
@@ -2608,7 +2613,7 @@ var DocsSearch = ({
|
|
|
2608
2613
|
})())
|
|
2609
2614
|
};
|
|
2610
2615
|
});
|
|
2611
|
-
return /* @__PURE__ */
|
|
2616
|
+
return /* @__PURE__ */ jsx17(SearchMenu, {
|
|
2612
2617
|
groups,
|
|
2613
2618
|
messages: {
|
|
2614
2619
|
title: messages3.searchTitle,
|
|
@@ -2678,11 +2683,11 @@ var DocsLayout = ({
|
|
|
2678
2683
|
]
|
|
2679
2684
|
});
|
|
2680
2685
|
}
|
|
2681
|
-
return /* @__PURE__ */
|
|
2686
|
+
return /* @__PURE__ */ jsx17(SidebarLayout, {
|
|
2682
2687
|
defaultOpen: getSidebarDefaultOpen2(),
|
|
2683
2688
|
groups,
|
|
2684
2689
|
sidebarCollapsible,
|
|
2685
|
-
sidebarHeader: /* @__PURE__ */
|
|
2690
|
+
sidebarHeader: /* @__PURE__ */ jsx17(AppBrand, {
|
|
2686
2691
|
label: brand.label,
|
|
2687
2692
|
subtitle: brand.subtitle(),
|
|
2688
2693
|
icon: brand.icon,
|
|
@@ -2698,12 +2703,12 @@ var DocsLayout = ({
|
|
|
2698
2703
|
rel: "noreferrer",
|
|
2699
2704
|
children: [
|
|
2700
2705
|
docs.githubLabel,
|
|
2701
|
-
/* @__PURE__ */
|
|
2706
|
+
/* @__PURE__ */ jsx17(ExternalLink, {
|
|
2702
2707
|
className: "size-3.5"
|
|
2703
2708
|
})
|
|
2704
2709
|
]
|
|
2705
2710
|
}) : null,
|
|
2706
|
-
/* @__PURE__ */
|
|
2711
|
+
/* @__PURE__ */ jsx17(DocsSearch, {
|
|
2707
2712
|
docs,
|
|
2708
2713
|
locale,
|
|
2709
2714
|
messages: resolvedMessages
|
|
@@ -2732,21 +2737,21 @@ var DocsHeader = ({ docs, resolution }) => {
|
|
|
2732
2737
|
/* @__PURE__ */ jsxs11("div", {
|
|
2733
2738
|
className: "flex flex-wrap items-center gap-3",
|
|
2734
2739
|
children: [
|
|
2735
|
-
/* @__PURE__ */
|
|
2740
|
+
/* @__PURE__ */ jsx17("h1", {
|
|
2736
2741
|
className: "text-3xl font-bold tracking-tight sm:text-4xl",
|
|
2737
2742
|
children: page.title
|
|
2738
2743
|
}),
|
|
2739
|
-
page.tags?.map((tag) => /* @__PURE__ */
|
|
2744
|
+
page.tags?.map((tag) => /* @__PURE__ */ jsx17(Badge, {
|
|
2740
2745
|
variant: "secondary",
|
|
2741
2746
|
children: tag
|
|
2742
2747
|
}, tag))
|
|
2743
2748
|
]
|
|
2744
2749
|
}),
|
|
2745
|
-
/* @__PURE__ */
|
|
2750
|
+
/* @__PURE__ */ jsx17("p", {
|
|
2746
2751
|
className: "text-muted-foreground mt-3 max-w-2xl text-base leading-7",
|
|
2747
2752
|
children: page.description
|
|
2748
2753
|
}),
|
|
2749
|
-
page.updatedAt ? /* @__PURE__ */
|
|
2754
|
+
page.updatedAt ? /* @__PURE__ */ jsx17("p", {
|
|
2750
2755
|
className: "text-muted-foreground mt-3 text-sm",
|
|
2751
2756
|
children: resolvedMessages.lastUpdated(new Date(page.updatedAt))
|
|
2752
2757
|
}) : null
|
|
@@ -2758,11 +2763,11 @@ var DocsContent = ({ docs, resolution }) => {
|
|
|
2758
2763
|
const resolvedMessages = docs.getMessages(page.locale);
|
|
2759
2764
|
return /* @__PURE__ */ jsxs11(Fragment3, {
|
|
2760
2765
|
children: [
|
|
2761
|
-
/* @__PURE__ */
|
|
2766
|
+
/* @__PURE__ */ jsx17(DocsMobileTableOfContents, {
|
|
2762
2767
|
headings: page.headings,
|
|
2763
2768
|
label: resolvedMessages.onThisPage
|
|
2764
2769
|
}),
|
|
2765
|
-
/* @__PURE__ */
|
|
2770
|
+
/* @__PURE__ */ jsx17(DocsArticle, {
|
|
2766
2771
|
messages: resolvedMessages,
|
|
2767
2772
|
page
|
|
2768
2773
|
})
|
|
@@ -2786,12 +2791,12 @@ var DocsFooter = ({ docs, resolution }) => {
|
|
|
2786
2791
|
rel: "noreferrer",
|
|
2787
2792
|
children: [
|
|
2788
2793
|
resolvedMessages.editPage,
|
|
2789
|
-
/* @__PURE__ */
|
|
2794
|
+
/* @__PURE__ */ jsx17(ExternalLink, {
|
|
2790
2795
|
className: "size-3.5"
|
|
2791
2796
|
})
|
|
2792
2797
|
]
|
|
2793
2798
|
}) : null,
|
|
2794
|
-
/* @__PURE__ */
|
|
2799
|
+
/* @__PURE__ */ jsx17("span", {
|
|
2795
2800
|
className: "text-muted-foreground",
|
|
2796
2801
|
children: resolvedMessages.latestVersionNotice
|
|
2797
2802
|
})
|
|
@@ -2808,18 +2813,18 @@ var DocsFooter = ({ docs, resolution }) => {
|
|
|
2808
2813
|
/* @__PURE__ */ jsxs11("span", {
|
|
2809
2814
|
className: "text-muted-foreground flex items-center gap-1 text-xs font-medium uppercase",
|
|
2810
2815
|
children: [
|
|
2811
|
-
/* @__PURE__ */
|
|
2816
|
+
/* @__PURE__ */ jsx17(ArrowLeft, {
|
|
2812
2817
|
className: "size-3.5"
|
|
2813
2818
|
}),
|
|
2814
2819
|
resolvedMessages.previous
|
|
2815
2820
|
]
|
|
2816
2821
|
}),
|
|
2817
|
-
/* @__PURE__ */
|
|
2822
|
+
/* @__PURE__ */ jsx17("span", {
|
|
2818
2823
|
className: "mt-1 block font-semibold",
|
|
2819
2824
|
children: neighbors.previous.title
|
|
2820
2825
|
})
|
|
2821
2826
|
]
|
|
2822
|
-
}) : /* @__PURE__ */
|
|
2827
|
+
}) : /* @__PURE__ */ jsx17("span", {}),
|
|
2823
2828
|
neighbors.next ? /* @__PURE__ */ jsxs11("a", {
|
|
2824
2829
|
className: "hover:bg-muted/50 rounded-lg border p-4 text-right transition-colors",
|
|
2825
2830
|
href: neighbors.next.path,
|
|
@@ -2828,12 +2833,12 @@ var DocsFooter = ({ docs, resolution }) => {
|
|
|
2828
2833
|
className: "text-muted-foreground flex items-center justify-end gap-1 text-xs font-medium uppercase",
|
|
2829
2834
|
children: [
|
|
2830
2835
|
resolvedMessages.next,
|
|
2831
|
-
/* @__PURE__ */
|
|
2836
|
+
/* @__PURE__ */ jsx17(ArrowRight, {
|
|
2832
2837
|
className: "size-3.5"
|
|
2833
2838
|
})
|
|
2834
2839
|
]
|
|
2835
2840
|
}),
|
|
2836
|
-
/* @__PURE__ */
|
|
2841
|
+
/* @__PURE__ */ jsx17("span", {
|
|
2837
2842
|
className: "mt-1 block font-semibold",
|
|
2838
2843
|
children: neighbors.next.title
|
|
2839
2844
|
})
|
|
@@ -2849,15 +2854,15 @@ var DocsPage = ({ children, docs, resolution }) => {
|
|
|
2849
2854
|
const resolvedMessages = docs.getMessages(page.locale);
|
|
2850
2855
|
const content = children ?? /* @__PURE__ */ jsxs11(Fragment3, {
|
|
2851
2856
|
children: [
|
|
2852
|
-
/* @__PURE__ */
|
|
2857
|
+
/* @__PURE__ */ jsx17(DocsHeader, {
|
|
2853
2858
|
docs,
|
|
2854
2859
|
resolution
|
|
2855
2860
|
}),
|
|
2856
|
-
/* @__PURE__ */
|
|
2861
|
+
/* @__PURE__ */ jsx17(DocsContent, {
|
|
2857
2862
|
docs,
|
|
2858
2863
|
resolution
|
|
2859
2864
|
}),
|
|
2860
|
-
/* @__PURE__ */
|
|
2865
|
+
/* @__PURE__ */ jsx17(DocsFooter, {
|
|
2861
2866
|
docs,
|
|
2862
2867
|
resolution
|
|
2863
2868
|
})
|
|
@@ -2865,7 +2870,7 @@ var DocsPage = ({ children, docs, resolution }) => {
|
|
|
2865
2870
|
});
|
|
2866
2871
|
return /* @__PURE__ */ jsxs11(Fragment3, {
|
|
2867
2872
|
children: [
|
|
2868
|
-
/* @__PURE__ */
|
|
2873
|
+
/* @__PURE__ */ jsx17("a", {
|
|
2869
2874
|
className: "bg-background focus:ring-ring fixed top-2 left-2 z-50 -translate-y-20 rounded-md border px-3 py-2 text-sm shadow-sm focus:translate-y-0 focus:ring-2",
|
|
2870
2875
|
href: "#docs-content",
|
|
2871
2876
|
children: resolvedMessages.skipToContent
|
|
@@ -2873,15 +2878,15 @@ var DocsPage = ({ children, docs, resolution }) => {
|
|
|
2873
2878
|
/* @__PURE__ */ jsxs11("div", {
|
|
2874
2879
|
className: "mx-auto grid w-full max-w-6xl gap-10 xl:grid-cols-[minmax(0,48rem)_14rem]",
|
|
2875
2880
|
children: [
|
|
2876
|
-
/* @__PURE__ */
|
|
2881
|
+
/* @__PURE__ */ jsx17("article", {
|
|
2877
2882
|
id: "docs-content",
|
|
2878
2883
|
className: "min-w-0 pb-16",
|
|
2879
2884
|
tabIndex: -1,
|
|
2880
2885
|
children: content
|
|
2881
2886
|
}),
|
|
2882
|
-
/* @__PURE__ */
|
|
2887
|
+
/* @__PURE__ */ jsx17("aside", {
|
|
2883
2888
|
className: "hidden xl:block",
|
|
2884
|
-
children: /* @__PURE__ */
|
|
2889
|
+
children: /* @__PURE__ */ jsx17(DocsTableOfContents, {
|
|
2885
2890
|
headings: page.headings,
|
|
2886
2891
|
label: resolvedMessages.onThisPage
|
|
2887
2892
|
})
|
|
@@ -2900,18 +2905,18 @@ var DocsNotFound = ({
|
|
|
2900
2905
|
return /* @__PURE__ */ jsxs11("main", {
|
|
2901
2906
|
className: "mx-auto flex min-h-screen max-w-lg flex-col justify-center px-6 text-center",
|
|
2902
2907
|
children: [
|
|
2903
|
-
/* @__PURE__ */
|
|
2908
|
+
/* @__PURE__ */ jsx17(BrandIcon, {
|
|
2904
2909
|
className: "text-primary mx-auto size-10"
|
|
2905
2910
|
}),
|
|
2906
|
-
/* @__PURE__ */
|
|
2911
|
+
/* @__PURE__ */ jsx17("h1", {
|
|
2907
2912
|
className: "mt-6 text-3xl font-bold tracking-tight",
|
|
2908
2913
|
children: resolvedMessages.notFoundTitle
|
|
2909
2914
|
}),
|
|
2910
|
-
/* @__PURE__ */
|
|
2915
|
+
/* @__PURE__ */ jsx17("p", {
|
|
2911
2916
|
className: "text-muted-foreground mt-3 leading-7",
|
|
2912
2917
|
children: resolvedMessages.notFoundDescription
|
|
2913
2918
|
}),
|
|
2914
|
-
/* @__PURE__ */
|
|
2919
|
+
/* @__PURE__ */ jsx17("a", {
|
|
2915
2920
|
className: "text-primary mt-6 font-semibold underline underline-offset-4",
|
|
2916
2921
|
href: docs.basePath,
|
|
2917
2922
|
children: resolvedMessages.notFoundAction
|
|
@@ -2920,20 +2925,20 @@ var DocsNotFound = ({
|
|
|
2920
2925
|
});
|
|
2921
2926
|
};
|
|
2922
2927
|
export {
|
|
2923
|
-
|
|
2924
|
-
DocsContent,
|
|
2925
|
-
DocsFooter,
|
|
2926
|
-
DocsFrontmatter,
|
|
2927
|
-
DocsHeader,
|
|
2928
|
-
DocsHeadingSchema,
|
|
2929
|
-
DocsLayout,
|
|
2930
|
-
DocsNotFound,
|
|
2931
|
-
DocsPage,
|
|
2932
|
-
DocsPageSchema,
|
|
2933
|
-
DocsPageType,
|
|
2934
|
-
DocsSection,
|
|
2935
|
-
createDocsSource,
|
|
2936
|
-
getDocsMessages,
|
|
2928
|
+
slugifyDocsHeading,
|
|
2937
2929
|
makeDocs,
|
|
2938
|
-
|
|
2930
|
+
getDocsMessages,
|
|
2931
|
+
createDocsSource,
|
|
2932
|
+
DocsSection,
|
|
2933
|
+
DocsPageType,
|
|
2934
|
+
DocsPageSchema,
|
|
2935
|
+
DocsPage,
|
|
2936
|
+
DocsNotFound,
|
|
2937
|
+
DocsLayout,
|
|
2938
|
+
DocsHeadingSchema,
|
|
2939
|
+
DocsHeader,
|
|
2940
|
+
DocsFrontmatter,
|
|
2941
|
+
DocsFooter,
|
|
2942
|
+
DocsContent,
|
|
2943
|
+
DocsCodeBlockSchema
|
|
2939
2944
|
};
|