@meetreeve/ui 0.18.1 → 0.19.0
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/README.md +22 -0
- package/dist/index.d.mts +45 -1
- package/dist/index.d.ts +45 -1
- package/dist/index.js +244 -164
- package/dist/index.mjs +242 -164
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -417,12 +417,88 @@ function useResponsivePlaceholder(desktop, mobile) {
|
|
|
417
417
|
return isDesktop ? desktop : mobile ?? desktop;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
+
// src/site-footer.tsx
|
|
421
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
422
|
+
var DEFAULT_LEGAL_LINKS = [
|
|
423
|
+
{ href: "/privacy", label: "Privacy" },
|
|
424
|
+
{ href: "/terms", label: "Terms" },
|
|
425
|
+
{ href: "/cookies", label: "Cookies" }
|
|
426
|
+
];
|
|
427
|
+
var LINK_CLASS = "inline-flex items-center justify-center transition-colors hover:text-foreground";
|
|
428
|
+
function SiteFooter({
|
|
429
|
+
brandName,
|
|
430
|
+
links = [],
|
|
431
|
+
legal = DEFAULT_LEGAL_LINKS,
|
|
432
|
+
showBadge,
|
|
433
|
+
linkComponent,
|
|
434
|
+
className
|
|
435
|
+
}) {
|
|
436
|
+
const LinkEl = linkComponent ?? "a";
|
|
437
|
+
const badge = showBadge !== false;
|
|
438
|
+
return /* @__PURE__ */ jsx3("footer", { className: cn("border-t border-border", className), children: /* @__PURE__ */ jsxs3("div", { className: "mx-auto max-w-6xl px-6 py-8", children: [
|
|
439
|
+
links.length > 0 ? /* @__PURE__ */ jsx3(
|
|
440
|
+
"nav",
|
|
441
|
+
{
|
|
442
|
+
"aria-label": `${brandName} pages`,
|
|
443
|
+
className: "flex flex-wrap gap-x-5 gap-y-2 border-b border-border/60 pb-5 text-xs",
|
|
444
|
+
children: links.map((link) => /* @__PURE__ */ jsx3(
|
|
445
|
+
LinkEl,
|
|
446
|
+
{
|
|
447
|
+
href: link.href,
|
|
448
|
+
className: cn(LINK_CLASS, "text-muted-foreground"),
|
|
449
|
+
style: TOUCH_TARGET_STYLE,
|
|
450
|
+
children: link.label
|
|
451
|
+
},
|
|
452
|
+
link.href
|
|
453
|
+
))
|
|
454
|
+
}
|
|
455
|
+
) : null,
|
|
456
|
+
/* @__PURE__ */ jsxs3(
|
|
457
|
+
"div",
|
|
458
|
+
{
|
|
459
|
+
className: cn(
|
|
460
|
+
"flex flex-col items-start justify-between gap-2 text-xs text-muted-foreground sm:flex-row sm:items-center",
|
|
461
|
+
links.length > 0 && "pt-5"
|
|
462
|
+
),
|
|
463
|
+
children: [
|
|
464
|
+
/* @__PURE__ */ jsxs3("span", { children: [
|
|
465
|
+
"\xA9 ",
|
|
466
|
+
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
467
|
+
" ",
|
|
468
|
+
brandName
|
|
469
|
+
] }),
|
|
470
|
+
legal.length > 0 ? /* @__PURE__ */ jsx3("nav", { "aria-label": "Legal", className: "flex flex-wrap items-center gap-x-4", children: legal.map((link) => /* @__PURE__ */ jsx3(
|
|
471
|
+
LinkEl,
|
|
472
|
+
{
|
|
473
|
+
href: link.href,
|
|
474
|
+
className: LINK_CLASS,
|
|
475
|
+
style: TOUCH_TARGET_STYLE,
|
|
476
|
+
children: link.label
|
|
477
|
+
},
|
|
478
|
+
link.href
|
|
479
|
+
)) }) : null,
|
|
480
|
+
badge ? /* @__PURE__ */ jsx3(
|
|
481
|
+
"a",
|
|
482
|
+
{
|
|
483
|
+
href: "https://www.meetreeve.com",
|
|
484
|
+
rel: "noopener",
|
|
485
|
+
className: "inline-flex items-center text-[11px] text-muted-foreground transition-colors hover:text-foreground",
|
|
486
|
+
style: TOUCH_TARGET_STYLE,
|
|
487
|
+
children: "Made with Reeve"
|
|
488
|
+
}
|
|
489
|
+
) : null
|
|
490
|
+
]
|
|
491
|
+
}
|
|
492
|
+
)
|
|
493
|
+
] }) });
|
|
494
|
+
}
|
|
495
|
+
|
|
420
496
|
// src/info-tip.tsx
|
|
421
497
|
import { Popover } from "@base-ui/react/popover";
|
|
422
|
-
import { jsx as
|
|
498
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
423
499
|
function InfoTip({ children, label = "More information", side = "top", align = "center", className }) {
|
|
424
|
-
return /* @__PURE__ */
|
|
425
|
-
/* @__PURE__ */
|
|
500
|
+
return /* @__PURE__ */ jsxs4(Popover.Root, { children: [
|
|
501
|
+
/* @__PURE__ */ jsx4(
|
|
426
502
|
Popover.Trigger,
|
|
427
503
|
{
|
|
428
504
|
openOnHover: true,
|
|
@@ -434,7 +510,7 @@ function InfoTip({ children, label = "More information", side = "top", align = "
|
|
|
434
510
|
"group -my-3.5 inline-flex shrink-0 cursor-help items-center justify-center rounded-full align-middle text-muted-foreground outline-none transition-colors hover:text-foreground data-[popup-open]:text-foreground",
|
|
435
511
|
className
|
|
436
512
|
),
|
|
437
|
-
children: /* @__PURE__ */
|
|
513
|
+
children: /* @__PURE__ */ jsx4(
|
|
438
514
|
"span",
|
|
439
515
|
{
|
|
440
516
|
"aria-hidden": "true",
|
|
@@ -444,12 +520,12 @@ function InfoTip({ children, label = "More information", side = "top", align = "
|
|
|
444
520
|
)
|
|
445
521
|
}
|
|
446
522
|
),
|
|
447
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ jsx4(Popover.Portal, { children: /* @__PURE__ */ jsx4(Popover.Positioner, { side, align, sideOffset: 8, collisionPadding: 16, className: "z-50", children: /* @__PURE__ */ jsx4(
|
|
448
524
|
Popover.Popup,
|
|
449
525
|
{
|
|
450
526
|
"aria-label": label,
|
|
451
527
|
className: "max-w-[min(20rem,calc(100vw-2rem))] origin-[var(--transform-origin)] rounded-md border border-border bg-popover px-3 py-2 text-left text-xs font-normal leading-relaxed text-popover-foreground shadow-md outline-none transition-[opacity,transform] duration-150 ease-out data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0 motion-reduce:transition-none",
|
|
452
|
-
children: /* @__PURE__ */
|
|
528
|
+
children: /* @__PURE__ */ jsx4(Popover.Description, { children })
|
|
453
529
|
}
|
|
454
530
|
) }) })
|
|
455
531
|
] });
|
|
@@ -737,7 +813,7 @@ function useLadderRung(ladder, containerRef, options = {}) {
|
|
|
737
813
|
|
|
738
814
|
// src/ladder/flyout.tsx
|
|
739
815
|
import { useCallback as useCallback2, useEffect as useEffect4, useId as useId2, useLayoutEffect as useLayoutEffect2, useRef as useRef3, useState as useState5 } from "react";
|
|
740
|
-
import { jsx as
|
|
816
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
741
817
|
var PANEL_GAP = 4;
|
|
742
818
|
var HOVER_CLOSE_DELAY_MS = 300;
|
|
743
819
|
var HOVER_SLOP = 16;
|
|
@@ -837,7 +913,7 @@ function Flyout({
|
|
|
837
913
|
useEffect4(() => {
|
|
838
914
|
if (clickOpen && panelPosition) firstItemRef.current?.focus();
|
|
839
915
|
}, [clickOpen, panelPosition]);
|
|
840
|
-
return /* @__PURE__ */
|
|
916
|
+
return /* @__PURE__ */ jsxs5(
|
|
841
917
|
"div",
|
|
842
918
|
{
|
|
843
919
|
"data-testid": "ladder-flyout",
|
|
@@ -845,7 +921,7 @@ function Flyout({
|
|
|
845
921
|
onMouseEnter: hoverEnter,
|
|
846
922
|
onMouseLeave: hoverLeave,
|
|
847
923
|
children: [
|
|
848
|
-
/* @__PURE__ */
|
|
924
|
+
/* @__PURE__ */ jsxs5(
|
|
849
925
|
"button",
|
|
850
926
|
{
|
|
851
927
|
ref: triggerRef,
|
|
@@ -871,7 +947,7 @@ function Flyout({
|
|
|
871
947
|
active ? "bg-sidebar-accent text-sidebar-accent-foreground" : "text-sidebar-foreground/70 hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground"
|
|
872
948
|
),
|
|
873
949
|
children: [
|
|
874
|
-
/* @__PURE__ */
|
|
950
|
+
/* @__PURE__ */ jsx5(
|
|
875
951
|
Icon,
|
|
876
952
|
{
|
|
877
953
|
className: cn(
|
|
@@ -882,7 +958,7 @@ function Flyout({
|
|
|
882
958
|
"aria-hidden": "true"
|
|
883
959
|
}
|
|
884
960
|
),
|
|
885
|
-
/* @__PURE__ */
|
|
961
|
+
/* @__PURE__ */ jsx5("span", { className: cn("truncate", collapsed && "sr-only"), children: label })
|
|
886
962
|
]
|
|
887
963
|
}
|
|
888
964
|
),
|
|
@@ -891,7 +967,7 @@ function Flyout({
|
|
|
891
967
|
// the trigger's right edge (bridging PANEL_GAP) and pads HOVER_SLOP
|
|
892
968
|
// around the panel; the panel itself renders exactly where it did.
|
|
893
969
|
// `panelRef` lives here so a click in the slop isn't an "outside" one.
|
|
894
|
-
/* @__PURE__ */
|
|
970
|
+
/* @__PURE__ */ jsx5(
|
|
895
971
|
"div",
|
|
896
972
|
{
|
|
897
973
|
ref: panelRef,
|
|
@@ -903,7 +979,7 @@ function Flyout({
|
|
|
903
979
|
left: panelPosition.left - PANEL_GAP,
|
|
904
980
|
padding: `${HOVER_SLOP}px ${HOVER_SLOP}px ${HOVER_SLOP}px ${PANEL_GAP}px`
|
|
905
981
|
},
|
|
906
|
-
children: /* @__PURE__ */
|
|
982
|
+
children: /* @__PURE__ */ jsx5(
|
|
907
983
|
"div",
|
|
908
984
|
{
|
|
909
985
|
id: panelId,
|
|
@@ -923,7 +999,7 @@ function Flyout({
|
|
|
923
999
|
// silently loses the focus-on-open behavior (a console ref
|
|
924
1000
|
// warning, not a crash) — same tradeoff any Link-injection
|
|
925
1001
|
// pattern accepts; not a regression from today's plain `<a>`.
|
|
926
|
-
/* @__PURE__ */
|
|
1002
|
+
/* @__PURE__ */ jsx5(
|
|
927
1003
|
LinkEl,
|
|
928
1004
|
{
|
|
929
1005
|
ref: i === 0 ? firstItemRef : void 0,
|
|
@@ -949,7 +1025,7 @@ function Flyout({
|
|
|
949
1025
|
}
|
|
950
1026
|
|
|
951
1027
|
// src/app-sidebar.tsx
|
|
952
|
-
import { Fragment as Fragment2, jsx as
|
|
1028
|
+
import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
953
1029
|
var DEFAULT_COLLAPSE_STORAGE_KEY = "reeve-sidebar-collapsed";
|
|
954
1030
|
var COLLAPSED_WIDTH_CLASS = "w-14";
|
|
955
1031
|
var EXPANDED_WIDTH_CLASS = "w-64";
|
|
@@ -967,7 +1043,7 @@ function NavLink({
|
|
|
967
1043
|
}) {
|
|
968
1044
|
const Icon = resolveIcon(icon);
|
|
969
1045
|
const LinkEl = linkComponent ?? "a";
|
|
970
|
-
return /* @__PURE__ */
|
|
1046
|
+
return /* @__PURE__ */ jsxs6(
|
|
971
1047
|
LinkEl,
|
|
972
1048
|
{
|
|
973
1049
|
href,
|
|
@@ -987,7 +1063,7 @@ function NavLink({
|
|
|
987
1063
|
active ? "bg-sidebar-accent text-sidebar-accent-foreground" : "text-sidebar-foreground/70 hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground"
|
|
988
1064
|
),
|
|
989
1065
|
children: [
|
|
990
|
-
/* @__PURE__ */
|
|
1066
|
+
/* @__PURE__ */ jsx6(
|
|
991
1067
|
Icon,
|
|
992
1068
|
{
|
|
993
1069
|
className: cn(
|
|
@@ -998,7 +1074,7 @@ function NavLink({
|
|
|
998
1074
|
"aria-hidden": "true"
|
|
999
1075
|
}
|
|
1000
1076
|
),
|
|
1001
|
-
/* @__PURE__ */
|
|
1077
|
+
/* @__PURE__ */ jsx6("span", { className: cn("truncate", collapsed && "sr-only"), children: label })
|
|
1002
1078
|
]
|
|
1003
1079
|
}
|
|
1004
1080
|
);
|
|
@@ -1089,7 +1165,7 @@ function AppSidebar({
|
|
|
1089
1165
|
function renderAppItem(item, testIdPrefix, collapsedRow = false) {
|
|
1090
1166
|
const def = moduleMap.get(item.moduleId);
|
|
1091
1167
|
if (!def) return null;
|
|
1092
|
-
return /* @__PURE__ */
|
|
1168
|
+
return /* @__PURE__ */ jsx6(
|
|
1093
1169
|
NavLink,
|
|
1094
1170
|
{
|
|
1095
1171
|
href: def.href,
|
|
@@ -1115,7 +1191,7 @@ function AppSidebar({
|
|
|
1115
1191
|
};
|
|
1116
1192
|
});
|
|
1117
1193
|
const active = children.some((c) => c.active);
|
|
1118
|
-
return /* @__PURE__ */
|
|
1194
|
+
return /* @__PURE__ */ jsx6(
|
|
1119
1195
|
Flyout,
|
|
1120
1196
|
{
|
|
1121
1197
|
label: item.label,
|
|
@@ -1134,7 +1210,7 @@ function AppSidebar({
|
|
|
1134
1210
|
function brandBlockFor(collapsedMode) {
|
|
1135
1211
|
if (!brand) return null;
|
|
1136
1212
|
if (collapsedMode) {
|
|
1137
|
-
return /* @__PURE__ */
|
|
1213
|
+
return /* @__PURE__ */ jsxs6(
|
|
1138
1214
|
"a",
|
|
1139
1215
|
{
|
|
1140
1216
|
href: brand.href,
|
|
@@ -1142,28 +1218,28 @@ function AppSidebar({
|
|
|
1142
1218
|
title: brand.label,
|
|
1143
1219
|
className: "flex items-center justify-center border-b border-sidebar-border px-1 py-4",
|
|
1144
1220
|
children: [
|
|
1145
|
-
/* @__PURE__ */
|
|
1146
|
-
/* @__PURE__ */
|
|
1221
|
+
/* @__PURE__ */ jsx6("span", { className: "sr-only", children: brand.label }),
|
|
1222
|
+
/* @__PURE__ */ jsx6(BrandGlyph, { brand: { name: brand.label }, size: "xl" })
|
|
1147
1223
|
]
|
|
1148
1224
|
}
|
|
1149
1225
|
);
|
|
1150
1226
|
}
|
|
1151
|
-
return /* @__PURE__ */
|
|
1227
|
+
return /* @__PURE__ */ jsxs6(
|
|
1152
1228
|
"a",
|
|
1153
1229
|
{
|
|
1154
1230
|
href: brand.href,
|
|
1155
1231
|
"data-testid": "app-sidebar-brand",
|
|
1156
1232
|
className: "flex items-center gap-2.5 border-b border-sidebar-border px-5 py-4 text-sidebar-foreground",
|
|
1157
1233
|
children: [
|
|
1158
|
-
/* @__PURE__ */
|
|
1159
|
-
/* @__PURE__ */
|
|
1234
|
+
/* @__PURE__ */ jsx6("span", { className: "grid size-7 place-items-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground", children: /* @__PURE__ */ jsx6("span", { className: "font-mono text-sm font-bold", children: (brand.label[0] ?? "r").toUpperCase() }) }),
|
|
1235
|
+
/* @__PURE__ */ jsx6("span", { className: "truncate text-sm font-semibold tracking-tight", children: brand.label })
|
|
1160
1236
|
]
|
|
1161
1237
|
}
|
|
1162
1238
|
);
|
|
1163
1239
|
}
|
|
1164
1240
|
function topItemBlock(testId, collapsedMode = false) {
|
|
1165
1241
|
if (!topItem) return null;
|
|
1166
|
-
return /* @__PURE__ */
|
|
1242
|
+
return /* @__PURE__ */ jsx6("div", { className: cn("px-3 pt-4", collapsedMode && "flex justify-center px-0"), children: /* @__PURE__ */ jsx6(
|
|
1167
1243
|
NavLink,
|
|
1168
1244
|
{
|
|
1169
1245
|
href: topItem.href,
|
|
@@ -1176,8 +1252,8 @@ function AppSidebar({
|
|
|
1176
1252
|
}
|
|
1177
1253
|
) });
|
|
1178
1254
|
}
|
|
1179
|
-
return /* @__PURE__ */
|
|
1180
|
-
!isDesktop && /* @__PURE__ */
|
|
1255
|
+
return /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
1256
|
+
!isDesktop && /* @__PURE__ */ jsx6(
|
|
1181
1257
|
"button",
|
|
1182
1258
|
{
|
|
1183
1259
|
ref: mobileTriggerRef,
|
|
@@ -1189,11 +1265,11 @@ function AppSidebar({
|
|
|
1189
1265
|
onClick: () => setMobileOpen((v) => !v),
|
|
1190
1266
|
style: TOUCH_TARGET_STYLE,
|
|
1191
1267
|
className: "flex items-center justify-center rounded-md border border-border p-2 text-foreground",
|
|
1192
|
-
children: mobileOpen ? /* @__PURE__ */
|
|
1268
|
+
children: mobileOpen ? /* @__PURE__ */ jsx6(X2, { className: "h-5 w-5", "aria-hidden": "true" }) : /* @__PURE__ */ jsx6(Menu2, { className: "h-5 w-5", "aria-hidden": "true" })
|
|
1193
1269
|
}
|
|
1194
1270
|
),
|
|
1195
|
-
!isDesktop && mobileOpen && /* @__PURE__ */
|
|
1196
|
-
/* @__PURE__ */
|
|
1271
|
+
!isDesktop && mobileOpen && /* @__PURE__ */ jsxs6("div", { className: "fixed inset-0 z-50", children: [
|
|
1272
|
+
/* @__PURE__ */ jsx6(
|
|
1197
1273
|
"div",
|
|
1198
1274
|
{
|
|
1199
1275
|
"data-testid": "app-sidebar-mobile-scrim",
|
|
@@ -1202,7 +1278,7 @@ function AppSidebar({
|
|
|
1202
1278
|
onClick: () => setMobileOpen(false)
|
|
1203
1279
|
}
|
|
1204
1280
|
),
|
|
1205
|
-
/* @__PURE__ */
|
|
1281
|
+
/* @__PURE__ */ jsxs6(
|
|
1206
1282
|
"div",
|
|
1207
1283
|
{
|
|
1208
1284
|
ref: mobileDrawerRef,
|
|
@@ -1213,7 +1289,7 @@ function AppSidebar({
|
|
|
1213
1289
|
"data-testid": "app-sidebar-mobile-drawer",
|
|
1214
1290
|
className: "absolute inset-y-0 left-0 flex w-72 flex-col overflow-y-auto border-r border-sidebar-border bg-sidebar",
|
|
1215
1291
|
children: [
|
|
1216
|
-
/* @__PURE__ */
|
|
1292
|
+
/* @__PURE__ */ jsx6("div", { className: "sticky top-0 z-10 flex justify-end bg-sidebar p-2", children: /* @__PURE__ */ jsx6(
|
|
1217
1293
|
"button",
|
|
1218
1294
|
{
|
|
1219
1295
|
ref: mobileCloseRef,
|
|
@@ -1223,19 +1299,19 @@ function AppSidebar({
|
|
|
1223
1299
|
onClick: () => setMobileOpen(false),
|
|
1224
1300
|
style: TOUCH_TARGET_STYLE,
|
|
1225
1301
|
className: "flex items-center justify-center rounded-md p-2 text-sidebar-foreground/70 hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground",
|
|
1226
|
-
children: /* @__PURE__ */
|
|
1302
|
+
children: /* @__PURE__ */ jsx6(X2, { className: "h-5 w-5", "aria-hidden": "true" })
|
|
1227
1303
|
}
|
|
1228
1304
|
) }),
|
|
1229
1305
|
brandBlockFor(false),
|
|
1230
1306
|
topItemBlock("app-sidebar-mobile-top-item"),
|
|
1231
|
-
/* @__PURE__ */
|
|
1307
|
+
/* @__PURE__ */ jsx6("nav", { className: "flex-1 px-3 py-4", children: /* @__PURE__ */ jsx6("div", { className: "flex flex-col gap-0.5", children: rung0.items.map(
|
|
1232
1308
|
(item) => item.type === "app" ? renderAppItem(item, "app-sidebar-mobile-navlink") : null
|
|
1233
1309
|
) }) })
|
|
1234
1310
|
]
|
|
1235
1311
|
}
|
|
1236
1312
|
)
|
|
1237
1313
|
] }),
|
|
1238
|
-
/* @__PURE__ */
|
|
1314
|
+
/* @__PURE__ */ jsxs6(
|
|
1239
1315
|
"aside",
|
|
1240
1316
|
{
|
|
1241
1317
|
"data-testid": "app-sidebar-desktop",
|
|
@@ -1250,18 +1326,18 @@ function AppSidebar({
|
|
|
1250
1326
|
children: [
|
|
1251
1327
|
brandBlockFor(collapsed),
|
|
1252
1328
|
topItemBlock("app-sidebar-top-item", collapsed),
|
|
1253
|
-
/* @__PURE__ */
|
|
1329
|
+
/* @__PURE__ */ jsx6(
|
|
1254
1330
|
"nav",
|
|
1255
1331
|
{
|
|
1256
1332
|
ref: containerRef,
|
|
1257
1333
|
"data-testid": "app-sidebar-nav",
|
|
1258
1334
|
className: "flex-1 overflow-y-auto px-3 py-4",
|
|
1259
|
-
children: /* @__PURE__ */
|
|
1335
|
+
children: /* @__PURE__ */ jsx6("div", { className: "flex flex-col gap-0.5", children: rung.items.map(
|
|
1260
1336
|
(item) => item.type === "app" ? renderAppItem(item, "app-sidebar-navlink", collapsed) : renderGroupItem(item, collapsed)
|
|
1261
1337
|
) })
|
|
1262
1338
|
}
|
|
1263
1339
|
),
|
|
1264
|
-
collapsible && /* @__PURE__ */
|
|
1340
|
+
collapsible && /* @__PURE__ */ jsx6("div", { className: "border-t border-sidebar-border px-2 py-2", children: /* @__PURE__ */ jsxs6(
|
|
1265
1341
|
"button",
|
|
1266
1342
|
{
|
|
1267
1343
|
type: "button",
|
|
@@ -1275,8 +1351,8 @@ function AppSidebar({
|
|
|
1275
1351
|
collapsed && "justify-center px-0"
|
|
1276
1352
|
),
|
|
1277
1353
|
children: [
|
|
1278
|
-
collapsed ? /* @__PURE__ */
|
|
1279
|
-
/* @__PURE__ */
|
|
1354
|
+
collapsed ? /* @__PURE__ */ jsx6(PanelLeftOpen, { className: "size-4 shrink-0", strokeWidth: 1.5, "aria-hidden": "true" }) : /* @__PURE__ */ jsx6(PanelLeftClose, { className: "size-4 shrink-0", strokeWidth: 1.5, "aria-hidden": "true" }),
|
|
1355
|
+
/* @__PURE__ */ jsx6("span", { className: cn("truncate", collapsed && "sr-only"), children: collapsed ? "Expand sidebar" : "Collapse sidebar" })
|
|
1280
1356
|
]
|
|
1281
1357
|
}
|
|
1282
1358
|
) })
|
|
@@ -1319,19 +1395,19 @@ function groupItemsByOrg(rows, get) {
|
|
|
1319
1395
|
|
|
1320
1396
|
// src/lib/dropdown-menu.tsx
|
|
1321
1397
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
1322
|
-
import { jsx as
|
|
1398
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
1323
1399
|
function DropdownMenu(props) {
|
|
1324
|
-
return /* @__PURE__ */
|
|
1400
|
+
return /* @__PURE__ */ jsx7(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
1325
1401
|
}
|
|
1326
1402
|
function DropdownMenuTrigger(props) {
|
|
1327
|
-
return /* @__PURE__ */
|
|
1403
|
+
return /* @__PURE__ */ jsx7(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
1328
1404
|
}
|
|
1329
1405
|
function DropdownMenuContent({
|
|
1330
1406
|
className,
|
|
1331
1407
|
sideOffset = 4,
|
|
1332
1408
|
...props
|
|
1333
1409
|
}) {
|
|
1334
|
-
return /* @__PURE__ */
|
|
1410
|
+
return /* @__PURE__ */ jsx7(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx7(
|
|
1335
1411
|
DropdownMenuPrimitive.Content,
|
|
1336
1412
|
{
|
|
1337
1413
|
"data-slot": "dropdown-menu-content",
|
|
@@ -1348,7 +1424,7 @@ function DropdownMenuItem({
|
|
|
1348
1424
|
className,
|
|
1349
1425
|
...props
|
|
1350
1426
|
}) {
|
|
1351
|
-
return /* @__PURE__ */
|
|
1427
|
+
return /* @__PURE__ */ jsx7(
|
|
1352
1428
|
DropdownMenuPrimitive.Item,
|
|
1353
1429
|
{
|
|
1354
1430
|
"data-slot": "dropdown-menu-item",
|
|
@@ -1364,7 +1440,7 @@ function DropdownMenuLabel({
|
|
|
1364
1440
|
className,
|
|
1365
1441
|
...props
|
|
1366
1442
|
}) {
|
|
1367
|
-
return /* @__PURE__ */
|
|
1443
|
+
return /* @__PURE__ */ jsx7(
|
|
1368
1444
|
DropdownMenuPrimitive.Label,
|
|
1369
1445
|
{
|
|
1370
1446
|
"data-slot": "dropdown-menu-label",
|
|
@@ -1375,7 +1451,7 @@ function DropdownMenuLabel({
|
|
|
1375
1451
|
}
|
|
1376
1452
|
|
|
1377
1453
|
// src/context-switcher.tsx
|
|
1378
|
-
import { Fragment as Fragment3, jsx as
|
|
1454
|
+
import { Fragment as Fragment3, jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1379
1455
|
function groupByOrg(items) {
|
|
1380
1456
|
return groupItemsByOrg(items, {
|
|
1381
1457
|
orgId: (it) => it.orgId,
|
|
@@ -1407,29 +1483,29 @@ function ContextSwitcher({
|
|
|
1407
1483
|
const active = items.find((it) => it.refId === activeRefId) ?? null;
|
|
1408
1484
|
const groups = groupByOrg(items);
|
|
1409
1485
|
const showOrgHeaders = groups.length > 1;
|
|
1410
|
-
return /* @__PURE__ */
|
|
1411
|
-
/* @__PURE__ */
|
|
1486
|
+
return /* @__PURE__ */ jsxs7(DropdownMenu, { children: [
|
|
1487
|
+
/* @__PURE__ */ jsx8(DropdownMenuTrigger, { asChild: true, children: collapsed ? /* @__PURE__ */ jsx8(
|
|
1412
1488
|
"button",
|
|
1413
1489
|
{
|
|
1414
1490
|
type: "button",
|
|
1415
1491
|
title: active?.name || placeholder,
|
|
1416
1492
|
"aria-label": active?.name || placeholder,
|
|
1417
1493
|
className: "flex h-10 w-10 items-center justify-center rounded-lg text-sidebar-foreground/70 transition-colors hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground",
|
|
1418
|
-
children: /* @__PURE__ */
|
|
1494
|
+
children: /* @__PURE__ */ jsx8(BrandGlyph, { brand: toBrand(active ?? { name: "" }), size: "lg" })
|
|
1419
1495
|
}
|
|
1420
|
-
) : /* @__PURE__ */
|
|
1496
|
+
) : /* @__PURE__ */ jsxs7(
|
|
1421
1497
|
"button",
|
|
1422
1498
|
{
|
|
1423
1499
|
type: "button",
|
|
1424
1500
|
className: "group flex items-center gap-2 rounded-md border border-sidebar-border bg-sidebar-accent/60 px-2.5 py-1.5 text-sm font-medium transition-colors hover:bg-sidebar",
|
|
1425
1501
|
children: [
|
|
1426
|
-
/* @__PURE__ */
|
|
1427
|
-
/* @__PURE__ */
|
|
1428
|
-
/* @__PURE__ */
|
|
1502
|
+
/* @__PURE__ */ jsx8(BrandGlyph, { brand: toBrand(active ?? { name: "" }) }),
|
|
1503
|
+
/* @__PURE__ */ jsx8("span", { className: "max-w-[140px] truncate text-sidebar-accent-foreground", children: active?.name || placeholder }),
|
|
1504
|
+
/* @__PURE__ */ jsx8(ChevronDown, { className: "h-3.5 w-3.5 text-sidebar-foreground/70 transition-transform group-data-[state=open]:rotate-180" })
|
|
1429
1505
|
]
|
|
1430
1506
|
}
|
|
1431
1507
|
) }),
|
|
1432
|
-
/* @__PURE__ */
|
|
1508
|
+
/* @__PURE__ */ jsxs7(
|
|
1433
1509
|
DropdownMenuContent,
|
|
1434
1510
|
{
|
|
1435
1511
|
side,
|
|
@@ -1438,13 +1514,13 @@ function ContextSwitcher({
|
|
|
1438
1514
|
collisionPadding: 8,
|
|
1439
1515
|
className: cn("w-60 overflow-hidden p-0", contentClassName),
|
|
1440
1516
|
children: [
|
|
1441
|
-
groups.map((group) => /* @__PURE__ */
|
|
1442
|
-
showOrgHeaders && /* @__PURE__ */
|
|
1443
|
-
/* @__PURE__ */
|
|
1517
|
+
groups.map((group) => /* @__PURE__ */ jsxs7("div", { children: [
|
|
1518
|
+
showOrgHeaders && /* @__PURE__ */ jsx8(DropdownMenuLabel, { className: "px-3 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground", children: group.orgName ?? "Other" }),
|
|
1519
|
+
/* @__PURE__ */ jsx8("div", { className: cn(showOrgHeaders && "ml-5 border-l border-border/60"), children: group.items.map((item, i) => {
|
|
1444
1520
|
const isActive = item.refId === activeRefId;
|
|
1445
1521
|
const next = group.items[i + 1];
|
|
1446
1522
|
const endsPinned = item.pinned === true && next !== void 0 && next.pinned !== true;
|
|
1447
|
-
return /* @__PURE__ */
|
|
1523
|
+
return /* @__PURE__ */ jsxs7(
|
|
1448
1524
|
DropdownMenuItem,
|
|
1449
1525
|
{
|
|
1450
1526
|
"data-active": isActive || void 0,
|
|
@@ -1456,8 +1532,8 @@ function ContextSwitcher({
|
|
|
1456
1532
|
endsPinned && "border-b border-border/60"
|
|
1457
1533
|
),
|
|
1458
1534
|
children: [
|
|
1459
|
-
/* @__PURE__ */
|
|
1460
|
-
/* @__PURE__ */
|
|
1535
|
+
/* @__PURE__ */ jsx8(BrandGlyph, { brand: toBrand(item), subtle: true }),
|
|
1536
|
+
/* @__PURE__ */ jsx8(
|
|
1461
1537
|
"span",
|
|
1462
1538
|
{
|
|
1463
1539
|
className: cn(
|
|
@@ -1467,18 +1543,18 @@ function ContextSwitcher({
|
|
|
1467
1543
|
children: item.name
|
|
1468
1544
|
}
|
|
1469
1545
|
),
|
|
1470
|
-
item.kindLabel && /* @__PURE__ */
|
|
1546
|
+
item.kindLabel && /* @__PURE__ */ jsxs7(Fragment3, { children: [
|
|
1471
1547
|
" ",
|
|
1472
|
-
/* @__PURE__ */
|
|
1548
|
+
/* @__PURE__ */ jsx8("span", { className: "shrink-0 text-[11px] text-muted-foreground", children: item.kindLabel })
|
|
1473
1549
|
] }),
|
|
1474
|
-
isActive && /* @__PURE__ */
|
|
1550
|
+
isActive && /* @__PURE__ */ jsx8(Check, { className: "size-3.5 text-emerald-500" })
|
|
1475
1551
|
]
|
|
1476
1552
|
},
|
|
1477
1553
|
item.refId
|
|
1478
1554
|
);
|
|
1479
1555
|
}) })
|
|
1480
1556
|
] }, group.orgId ?? "unattributed")),
|
|
1481
|
-
footer && /* @__PURE__ */
|
|
1557
|
+
footer && /* @__PURE__ */ jsx8("div", { className: "sticky bottom-0 border-t border-border bg-popover", children: footer })
|
|
1482
1558
|
]
|
|
1483
1559
|
}
|
|
1484
1560
|
)
|
|
@@ -1487,7 +1563,7 @@ function ContextSwitcher({
|
|
|
1487
1563
|
|
|
1488
1564
|
// src/connector-picker.tsx
|
|
1489
1565
|
import { useCallback as useCallback4, useEffect as useEffect6, useRef as useRef5, useState as useState7 } from "react";
|
|
1490
|
-
import { Fragment as Fragment4, jsx as
|
|
1566
|
+
import { Fragment as Fragment4, jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1491
1567
|
function accessLabel(access) {
|
|
1492
1568
|
return access === "read" ? "Read" : "Read + write";
|
|
1493
1569
|
}
|
|
@@ -1748,35 +1824,35 @@ function ConnectorPicker({
|
|
|
1748
1824
|
);
|
|
1749
1825
|
const ownEntries = entries?.filter((entry) => !isSharedWithViewer(entry)) ?? null;
|
|
1750
1826
|
const sharedEntries = entries?.filter(isSharedWithViewer) ?? [];
|
|
1751
|
-
return /* @__PURE__ */
|
|
1752
|
-
/* @__PURE__ */
|
|
1753
|
-
entries === null && !loadError && Array.from({ length: SKELETON_COUNT }).map((_, i) => /* @__PURE__ */
|
|
1827
|
+
return /* @__PURE__ */ jsxs8("div", { "data-testid": "connector-picker", "data-layout": layout, className: "flex flex-col gap-4", children: [
|
|
1828
|
+
/* @__PURE__ */ jsxs8("div", { className: containerClassName, children: [
|
|
1829
|
+
entries === null && !loadError && Array.from({ length: SKELETON_COUNT }).map((_, i) => /* @__PURE__ */ jsxs8(
|
|
1754
1830
|
"div",
|
|
1755
1831
|
{
|
|
1756
1832
|
"data-testid": "connector-picker-skeleton-item",
|
|
1757
1833
|
"aria-hidden": "true",
|
|
1758
1834
|
className: "flex items-center gap-3 rounded-lg border border-border p-3",
|
|
1759
1835
|
children: [
|
|
1760
|
-
/* @__PURE__ */
|
|
1761
|
-
/* @__PURE__ */
|
|
1836
|
+
/* @__PURE__ */ jsx9("span", { className: "h-8 w-8 shrink-0 animate-pulse rounded bg-foreground/10" }),
|
|
1837
|
+
/* @__PURE__ */ jsx9("span", { className: "h-3 flex-1 animate-pulse rounded bg-foreground/10" })
|
|
1762
1838
|
]
|
|
1763
1839
|
},
|
|
1764
1840
|
i
|
|
1765
1841
|
)),
|
|
1766
|
-
loadError && /* @__PURE__ */
|
|
1842
|
+
loadError && /* @__PURE__ */ jsxs8(
|
|
1767
1843
|
"div",
|
|
1768
1844
|
{
|
|
1769
1845
|
role: "alert",
|
|
1770
1846
|
"data-testid": "connector-picker-load-error",
|
|
1771
1847
|
className: "flex items-center justify-between gap-3 rounded-lg border border-destructive/30 bg-destructive/5 p-3 text-sm text-destructive",
|
|
1772
1848
|
children: [
|
|
1773
|
-
/* @__PURE__ */
|
|
1774
|
-
/* @__PURE__ */
|
|
1849
|
+
/* @__PURE__ */ jsx9("span", { children: loadError }),
|
|
1850
|
+
/* @__PURE__ */ jsx9("button", { type: "button", onClick: () => void load(), className: "shrink-0 underline", children: "Retry" })
|
|
1775
1851
|
]
|
|
1776
1852
|
}
|
|
1777
1853
|
),
|
|
1778
|
-
entries !== null && entries.length === 0 && !loadError && /* @__PURE__ */
|
|
1779
|
-
ownEntries?.map((entry) => /* @__PURE__ */
|
|
1854
|
+
entries !== null && entries.length === 0 && !loadError && /* @__PURE__ */ jsx9("p", { "data-testid": "connector-picker-empty", className: "text-sm text-muted-foreground", children: "No connections available." }),
|
|
1855
|
+
ownEntries?.map((entry) => /* @__PURE__ */ jsx9(
|
|
1780
1856
|
ConnectorTile,
|
|
1781
1857
|
{
|
|
1782
1858
|
entry,
|
|
@@ -1796,9 +1872,9 @@ function ConnectorPicker({
|
|
|
1796
1872
|
entry.slug
|
|
1797
1873
|
))
|
|
1798
1874
|
] }),
|
|
1799
|
-
sharedEntries.length > 0 && /* @__PURE__ */
|
|
1800
|
-
/* @__PURE__ */
|
|
1801
|
-
/* @__PURE__ */
|
|
1875
|
+
sharedEntries.length > 0 && /* @__PURE__ */ jsxs8("section", { "data-testid": "connector-picker-shared-with-me", className: "flex flex-col gap-2", children: [
|
|
1876
|
+
/* @__PURE__ */ jsx9("h3", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: "Shared with me" }),
|
|
1877
|
+
/* @__PURE__ */ jsx9("div", { className: containerClassName, children: sharedEntries.map((entry) => /* @__PURE__ */ jsx9(
|
|
1802
1878
|
ConnectorTile,
|
|
1803
1879
|
{
|
|
1804
1880
|
entry,
|
|
@@ -1857,7 +1933,7 @@ function ConnectorTile({
|
|
|
1857
1933
|
const attribution = ownerLabel(entry);
|
|
1858
1934
|
const canDisconnect = isConnected && !shared;
|
|
1859
1935
|
const canManageSharing = isConnected && entry.connection.owned_by_viewer === true && grantsSupported;
|
|
1860
|
-
return /* @__PURE__ */
|
|
1936
|
+
return /* @__PURE__ */ jsxs8(
|
|
1861
1937
|
"div",
|
|
1862
1938
|
{
|
|
1863
1939
|
"data-testid": `connector-tile-${entry.slug}`,
|
|
@@ -1865,12 +1941,12 @@ function ConnectorTile({
|
|
|
1865
1941
|
"data-deprecated": entry.deprecated || void 0,
|
|
1866
1942
|
className: cn("flex flex-col p-3", layout === "tiles" && "rounded-lg border border-border"),
|
|
1867
1943
|
children: [
|
|
1868
|
-
/* @__PURE__ */
|
|
1869
|
-
/* @__PURE__ */
|
|
1870
|
-
/* @__PURE__ */
|
|
1871
|
-
/* @__PURE__ */
|
|
1872
|
-
/* @__PURE__ */
|
|
1873
|
-
entry.deprecated && /* @__PURE__ */
|
|
1944
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-3", children: [
|
|
1945
|
+
/* @__PURE__ */ jsx9(BrandGlyph, { brand: { name: entry.name, logo: entry.logo }, size: "lg" }),
|
|
1946
|
+
/* @__PURE__ */ jsxs8("div", { className: "min-w-0 flex-1", children: [
|
|
1947
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-2", children: [
|
|
1948
|
+
/* @__PURE__ */ jsx9("p", { className: "truncate text-sm font-medium", children: entry.name }),
|
|
1949
|
+
entry.deprecated && /* @__PURE__ */ jsx9(
|
|
1874
1950
|
"span",
|
|
1875
1951
|
{
|
|
1876
1952
|
"data-testid": `connector-deprecated-${entry.slug}`,
|
|
@@ -1879,24 +1955,24 @@ function ConnectorTile({
|
|
|
1879
1955
|
}
|
|
1880
1956
|
)
|
|
1881
1957
|
] }),
|
|
1882
|
-
/* @__PURE__ */
|
|
1883
|
-
(isConnected || choices.length === 0) && /* @__PURE__ */
|
|
1884
|
-
isConnected && /* @__PURE__ */
|
|
1885
|
-
/* @__PURE__ */
|
|
1886
|
-
/* @__PURE__ */
|
|
1958
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
|
|
1959
|
+
(isConnected || choices.length === 0) && /* @__PURE__ */ jsx9("span", { "data-testid": `connector-capability-${entry.slug}`, children: accessLabel(tileAccess(entry)) }),
|
|
1960
|
+
isConnected && /* @__PURE__ */ jsxs8(Fragment4, { children: [
|
|
1961
|
+
/* @__PURE__ */ jsx9("span", { "aria-hidden": "true", children: "\xB7" }),
|
|
1962
|
+
/* @__PURE__ */ jsxs8(
|
|
1887
1963
|
"span",
|
|
1888
1964
|
{
|
|
1889
1965
|
"data-testid": `connector-connected-${entry.slug}`,
|
|
1890
1966
|
className: "inline-flex items-center gap-1",
|
|
1891
1967
|
children: [
|
|
1892
|
-
/* @__PURE__ */
|
|
1968
|
+
/* @__PURE__ */ jsx9("span", { "aria-hidden": "true", className: "h-1.5 w-1.5 rounded-full bg-emerald-500" }),
|
|
1893
1969
|
"Connected"
|
|
1894
1970
|
]
|
|
1895
1971
|
}
|
|
1896
1972
|
)
|
|
1897
1973
|
] })
|
|
1898
1974
|
] }),
|
|
1899
|
-
isConnected && !shared && entry.connection.account_label && /* @__PURE__ */
|
|
1975
|
+
isConnected && !shared && entry.connection.account_label && /* @__PURE__ */ jsxs8(
|
|
1900
1976
|
"p",
|
|
1901
1977
|
{
|
|
1902
1978
|
"data-testid": `connector-account-${entry.slug}`,
|
|
@@ -1907,7 +1983,7 @@ function ConnectorTile({
|
|
|
1907
1983
|
]
|
|
1908
1984
|
}
|
|
1909
1985
|
),
|
|
1910
|
-
isConnected && entry.access_summary && /* @__PURE__ */
|
|
1986
|
+
isConnected && entry.access_summary && /* @__PURE__ */ jsx9(
|
|
1911
1987
|
"p",
|
|
1912
1988
|
{
|
|
1913
1989
|
"data-testid": `connector-access-summary-${entry.slug}`,
|
|
@@ -1915,7 +1991,7 @@ function ConnectorTile({
|
|
|
1915
1991
|
children: entry.access_summary
|
|
1916
1992
|
}
|
|
1917
1993
|
),
|
|
1918
|
-
unhealthy && /* @__PURE__ */
|
|
1994
|
+
unhealthy && /* @__PURE__ */ jsx9(
|
|
1919
1995
|
"p",
|
|
1920
1996
|
{
|
|
1921
1997
|
role: "alert",
|
|
@@ -1924,7 +2000,7 @@ function ConnectorTile({
|
|
|
1924
2000
|
children: DEFAULT_RECONNECT_MESSAGE
|
|
1925
2001
|
}
|
|
1926
2002
|
),
|
|
1927
|
-
attribution && /* @__PURE__ */
|
|
2003
|
+
attribution && /* @__PURE__ */ jsx9(
|
|
1928
2004
|
"p",
|
|
1929
2005
|
{
|
|
1930
2006
|
"data-testid": `connector-owner-${entry.slug}`,
|
|
@@ -1932,14 +2008,14 @@ function ConnectorTile({
|
|
|
1932
2008
|
children: attribution
|
|
1933
2009
|
}
|
|
1934
2010
|
),
|
|
1935
|
-
!isConnected && choices.length > 0 && /* @__PURE__ */
|
|
2011
|
+
!isConnected && choices.length > 0 && /* @__PURE__ */ jsx9(
|
|
1936
2012
|
"div",
|
|
1937
2013
|
{
|
|
1938
2014
|
"data-testid": `connector-access-choice-${entry.slug}`,
|
|
1939
2015
|
role: "group",
|
|
1940
2016
|
"aria-label": "Access",
|
|
1941
2017
|
className: "mt-1 flex items-center gap-1",
|
|
1942
|
-
children: choices.map((option) => /* @__PURE__ */
|
|
2018
|
+
children: choices.map((option) => /* @__PURE__ */ jsx9(
|
|
1943
2019
|
"button",
|
|
1944
2020
|
{
|
|
1945
2021
|
type: "button",
|
|
@@ -1958,7 +2034,7 @@ function ConnectorTile({
|
|
|
1958
2034
|
))
|
|
1959
2035
|
}
|
|
1960
2036
|
),
|
|
1961
|
-
!isConnected && orgPermitted && /* @__PURE__ */
|
|
2037
|
+
!isConnected && orgPermitted && /* @__PURE__ */ jsxs8(
|
|
1962
2038
|
"div",
|
|
1963
2039
|
{
|
|
1964
2040
|
"data-testid": `connector-kind-toggle-${entry.slug}`,
|
|
@@ -1966,7 +2042,7 @@ function ConnectorTile({
|
|
|
1966
2042
|
"aria-label": "Connect as",
|
|
1967
2043
|
className: "mt-1 flex items-center gap-1",
|
|
1968
2044
|
children: [
|
|
1969
|
-
/* @__PURE__ */
|
|
2045
|
+
/* @__PURE__ */ jsx9(
|
|
1970
2046
|
"button",
|
|
1971
2047
|
{
|
|
1972
2048
|
type: "button",
|
|
@@ -1983,7 +2059,7 @@ function ConnectorTile({
|
|
|
1983
2059
|
children: "Personal"
|
|
1984
2060
|
}
|
|
1985
2061
|
),
|
|
1986
|
-
/* @__PURE__ */
|
|
2062
|
+
/* @__PURE__ */ jsx9(
|
|
1987
2063
|
"button",
|
|
1988
2064
|
{
|
|
1989
2065
|
type: "button",
|
|
@@ -2003,10 +2079,10 @@ function ConnectorTile({
|
|
|
2003
2079
|
]
|
|
2004
2080
|
}
|
|
2005
2081
|
),
|
|
2006
|
-
errorMessage && /* @__PURE__ */
|
|
2082
|
+
errorMessage && /* @__PURE__ */ jsx9("p", { role: "alert", "data-testid": `connector-error-${entry.slug}`, className: "text-xs text-destructive", children: errorMessage })
|
|
2007
2083
|
] }),
|
|
2008
|
-
isConnected ? /* @__PURE__ */
|
|
2009
|
-
unhealthy && !shared && /* @__PURE__ */
|
|
2084
|
+
isConnected ? /* @__PURE__ */ jsxs8("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
|
|
2085
|
+
unhealthy && !shared && /* @__PURE__ */ jsx9(
|
|
2010
2086
|
"button",
|
|
2011
2087
|
{
|
|
2012
2088
|
type: "button",
|
|
@@ -2021,7 +2097,7 @@ function ConnectorTile({
|
|
|
2021
2097
|
// as an always-visible paragraph it wrapped to four lines
|
|
2022
2098
|
// beside every connected tile. Muted until hover so a
|
|
2023
2099
|
// destructive action isn't the loudest thing on the tile.
|
|
2024
|
-
/* @__PURE__ */
|
|
2100
|
+
/* @__PURE__ */ jsx9(
|
|
2025
2101
|
"button",
|
|
2026
2102
|
{
|
|
2027
2103
|
type: "button",
|
|
@@ -2033,7 +2109,7 @@ function ConnectorTile({
|
|
|
2033
2109
|
children: isDisconnecting ? "Disconnecting\u2026" : "Disconnect"
|
|
2034
2110
|
}
|
|
2035
2111
|
),
|
|
2036
|
-
canManageSharing && /* @__PURE__ */
|
|
2112
|
+
canManageSharing && /* @__PURE__ */ jsx9(
|
|
2037
2113
|
"button",
|
|
2038
2114
|
{
|
|
2039
2115
|
type: "button",
|
|
@@ -2044,8 +2120,8 @@ function ConnectorTile({
|
|
|
2044
2120
|
children: sharingOpen ? "Hide sharing" : "Manage sharing"
|
|
2045
2121
|
}
|
|
2046
2122
|
)
|
|
2047
|
-
] }) : /* @__PURE__ */
|
|
2048
|
-
/* @__PURE__ */
|
|
2123
|
+
] }) : /* @__PURE__ */ jsxs8("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
|
|
2124
|
+
/* @__PURE__ */ jsx9(
|
|
2049
2125
|
"button",
|
|
2050
2126
|
{
|
|
2051
2127
|
type: "button",
|
|
@@ -2056,7 +2132,7 @@ function ConnectorTile({
|
|
|
2056
2132
|
children: isConnecting ? "Connecting\u2026" : "Connect"
|
|
2057
2133
|
}
|
|
2058
2134
|
),
|
|
2059
|
-
canSetUp && /* @__PURE__ */
|
|
2135
|
+
canSetUp && /* @__PURE__ */ jsx9(
|
|
2060
2136
|
"button",
|
|
2061
2137
|
{
|
|
2062
2138
|
type: "button",
|
|
@@ -2070,15 +2146,15 @@ function ConnectorTile({
|
|
|
2070
2146
|
)
|
|
2071
2147
|
] })
|
|
2072
2148
|
] }),
|
|
2073
|
-
canSetUp && setupOpen && /* @__PURE__ */
|
|
2149
|
+
canSetUp && setupOpen && /* @__PURE__ */ jsxs8(
|
|
2074
2150
|
"div",
|
|
2075
2151
|
{
|
|
2076
2152
|
id: `connector-setup-panel-${entry.slug}`,
|
|
2077
2153
|
"data-testid": `connector-setup-panel-${entry.slug}`,
|
|
2078
2154
|
className: "mt-2 flex flex-col gap-3 rounded-md border border-border bg-foreground/5 p-2",
|
|
2079
2155
|
children: [
|
|
2080
|
-
guide && /* @__PURE__ */
|
|
2081
|
-
pasteSupported && /* @__PURE__ */
|
|
2156
|
+
guide && /* @__PURE__ */ jsx9(SetupGuidePanel, { entry, guide, showVerify: !pasteSupported }),
|
|
2157
|
+
pasteSupported && /* @__PURE__ */ jsx9(
|
|
2082
2158
|
CredentialForm,
|
|
2083
2159
|
{
|
|
2084
2160
|
entry,
|
|
@@ -2093,7 +2169,7 @@ function ConnectorTile({
|
|
|
2093
2169
|
]
|
|
2094
2170
|
}
|
|
2095
2171
|
),
|
|
2096
|
-
canManageSharing && sharingOpen && /* @__PURE__ */
|
|
2172
|
+
canManageSharing && sharingOpen && /* @__PURE__ */ jsx9(
|
|
2097
2173
|
ManageSharing,
|
|
2098
2174
|
{
|
|
2099
2175
|
entry,
|
|
@@ -2143,8 +2219,8 @@ function CopyableValue({ value, testId }) {
|
|
|
2143
2219
|
setCopied(false);
|
|
2144
2220
|
}
|
|
2145
2221
|
}, [value]);
|
|
2146
|
-
return /* @__PURE__ */
|
|
2147
|
-
/* @__PURE__ */
|
|
2222
|
+
return /* @__PURE__ */ jsxs8("span", { className: "mt-1 flex items-center gap-1.5", children: [
|
|
2223
|
+
/* @__PURE__ */ jsx9(
|
|
2148
2224
|
"code",
|
|
2149
2225
|
{
|
|
2150
2226
|
"data-testid": `${testId}-value`,
|
|
@@ -2152,7 +2228,7 @@ function CopyableValue({ value, testId }) {
|
|
|
2152
2228
|
children: value
|
|
2153
2229
|
}
|
|
2154
2230
|
),
|
|
2155
|
-
/* @__PURE__ */
|
|
2231
|
+
/* @__PURE__ */ jsx9(
|
|
2156
2232
|
"button",
|
|
2157
2233
|
{
|
|
2158
2234
|
type: "button",
|
|
@@ -2178,8 +2254,8 @@ function SetupGuidePanel({
|
|
|
2178
2254
|
ungrounded
|
|
2179
2255
|
);
|
|
2180
2256
|
}, [entry.slug, guide, leaked]);
|
|
2181
|
-
return /* @__PURE__ */
|
|
2182
|
-
leaked && isDevEnvironment() && /* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ jsxs8("div", { "data-testid": `connector-guide-${entry.slug}`, className: "flex flex-col gap-2", children: [
|
|
2258
|
+
leaked && isDevEnvironment() && /* @__PURE__ */ jsxs8(
|
|
2183
2259
|
"p",
|
|
2184
2260
|
{
|
|
2185
2261
|
role: "alert",
|
|
@@ -2191,25 +2267,25 @@ function SetupGuidePanel({
|
|
|
2191
2267
|
]
|
|
2192
2268
|
}
|
|
2193
2269
|
),
|
|
2194
|
-
prerequisites.length > 0 && /* @__PURE__ */
|
|
2195
|
-
/* @__PURE__ */
|
|
2196
|
-
/* @__PURE__ */
|
|
2270
|
+
prerequisites.length > 0 && /* @__PURE__ */ jsxs8("div", { children: [
|
|
2271
|
+
/* @__PURE__ */ jsx9("h4", { className: "text-xs font-medium", children: "Before you start" }),
|
|
2272
|
+
/* @__PURE__ */ jsx9(
|
|
2197
2273
|
"ul",
|
|
2198
2274
|
{
|
|
2199
2275
|
"data-testid": `connector-guide-prerequisites-${entry.slug}`,
|
|
2200
2276
|
className: "mt-1 list-disc pl-4 text-xs text-muted-foreground",
|
|
2201
|
-
children: prerequisites.map((item) => /* @__PURE__ */
|
|
2277
|
+
children: prerequisites.map((item) => /* @__PURE__ */ jsx9("li", { children: item }, item))
|
|
2202
2278
|
}
|
|
2203
2279
|
)
|
|
2204
2280
|
] }),
|
|
2205
|
-
steps.length > 0 && /* @__PURE__ */
|
|
2281
|
+
steps.length > 0 && /* @__PURE__ */ jsx9(
|
|
2206
2282
|
"ol",
|
|
2207
2283
|
{
|
|
2208
2284
|
"data-testid": `connector-guide-steps-${entry.slug}`,
|
|
2209
2285
|
className: "list-decimal pl-4 text-xs",
|
|
2210
|
-
children: steps.map((step, index) => /* @__PURE__ */
|
|
2211
|
-
/* @__PURE__ */
|
|
2212
|
-
step.copyable && /* @__PURE__ */
|
|
2286
|
+
children: steps.map((step, index) => /* @__PURE__ */ jsxs8("li", { className: "mt-1 first:mt-0", children: [
|
|
2287
|
+
/* @__PURE__ */ jsx9("span", { children: step.text }),
|
|
2288
|
+
step.copyable && /* @__PURE__ */ jsx9(
|
|
2213
2289
|
CopyableValue,
|
|
2214
2290
|
{
|
|
2215
2291
|
value: step.copyable,
|
|
@@ -2219,7 +2295,7 @@ function SetupGuidePanel({
|
|
|
2219
2295
|
] }, step.text))
|
|
2220
2296
|
}
|
|
2221
2297
|
),
|
|
2222
|
-
scopeNote && /* @__PURE__ */
|
|
2298
|
+
scopeNote && /* @__PURE__ */ jsx9(
|
|
2223
2299
|
"p",
|
|
2224
2300
|
{
|
|
2225
2301
|
"data-testid": `connector-guide-scope-note-${entry.slug}`,
|
|
@@ -2227,7 +2303,7 @@ function SetupGuidePanel({
|
|
|
2227
2303
|
children: scopeNote
|
|
2228
2304
|
}
|
|
2229
2305
|
),
|
|
2230
|
-
showVerify && verify && /* @__PURE__ */
|
|
2306
|
+
showVerify && verify && /* @__PURE__ */ jsx9(
|
|
2231
2307
|
"p",
|
|
2232
2308
|
{
|
|
2233
2309
|
"data-testid": `connector-guide-verify-${entry.slug}`,
|
|
@@ -2291,7 +2367,7 @@ function CredentialForm({
|
|
|
2291
2367
|
setBusy(false);
|
|
2292
2368
|
}
|
|
2293
2369
|
}, [kind, onSubmitCredentials, values]);
|
|
2294
|
-
return /* @__PURE__ */
|
|
2370
|
+
return /* @__PURE__ */ jsxs8(
|
|
2295
2371
|
"form",
|
|
2296
2372
|
{
|
|
2297
2373
|
"data-testid": `connector-credential-form-${entry.slug}`,
|
|
@@ -2305,12 +2381,12 @@ function CredentialForm({
|
|
|
2305
2381
|
fields.map((field) => {
|
|
2306
2382
|
const inputId = `connector-credential-${entry.slug}-${field.key}`;
|
|
2307
2383
|
const fieldError = fieldErrors?.[field.key] ?? null;
|
|
2308
|
-
return /* @__PURE__ */
|
|
2309
|
-
/* @__PURE__ */
|
|
2384
|
+
return /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-1", children: [
|
|
2385
|
+
/* @__PURE__ */ jsxs8("label", { htmlFor: inputId, className: "text-xs font-medium", children: [
|
|
2310
2386
|
field.label,
|
|
2311
|
-
field.required !== false && /* @__PURE__ */
|
|
2387
|
+
field.required !== false && /* @__PURE__ */ jsx9("span", { "aria-hidden": "true", className: "ml-0.5 text-destructive", children: "*" })
|
|
2312
2388
|
] }),
|
|
2313
|
-
/* @__PURE__ */
|
|
2389
|
+
/* @__PURE__ */ jsx9(
|
|
2314
2390
|
"input",
|
|
2315
2391
|
{
|
|
2316
2392
|
id: inputId,
|
|
@@ -2330,7 +2406,7 @@ function CredentialForm({
|
|
|
2330
2406
|
)
|
|
2331
2407
|
}
|
|
2332
2408
|
),
|
|
2333
|
-
fieldError && /* @__PURE__ */
|
|
2409
|
+
fieldError && /* @__PURE__ */ jsx9(
|
|
2334
2410
|
"p",
|
|
2335
2411
|
{
|
|
2336
2412
|
id: `${inputId}-error`,
|
|
@@ -2341,7 +2417,7 @@ function CredentialForm({
|
|
|
2341
2417
|
)
|
|
2342
2418
|
] }, field.key);
|
|
2343
2419
|
}),
|
|
2344
|
-
verify && /* @__PURE__ */
|
|
2420
|
+
verify && /* @__PURE__ */ jsx9(
|
|
2345
2421
|
"p",
|
|
2346
2422
|
{
|
|
2347
2423
|
"data-testid": `connector-guide-verify-${entry.slug}`,
|
|
@@ -2349,8 +2425,8 @@ function CredentialForm({
|
|
|
2349
2425
|
children: verify
|
|
2350
2426
|
}
|
|
2351
2427
|
),
|
|
2352
|
-
result && /* @__PURE__ */
|
|
2353
|
-
error && /* @__PURE__ */
|
|
2428
|
+
result && /* @__PURE__ */ jsx9(CredentialTestResult, { entry, result }),
|
|
2429
|
+
error && /* @__PURE__ */ jsx9(
|
|
2354
2430
|
"p",
|
|
2355
2431
|
{
|
|
2356
2432
|
role: "alert",
|
|
@@ -2359,8 +2435,8 @@ function CredentialForm({
|
|
|
2359
2435
|
children: error
|
|
2360
2436
|
}
|
|
2361
2437
|
),
|
|
2362
|
-
/* @__PURE__ */
|
|
2363
|
-
testSupported && /* @__PURE__ */
|
|
2438
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center justify-end gap-1.5", children: [
|
|
2439
|
+
testSupported && /* @__PURE__ */ jsx9(
|
|
2364
2440
|
"button",
|
|
2365
2441
|
{
|
|
2366
2442
|
type: "button",
|
|
@@ -2371,7 +2447,7 @@ function CredentialForm({
|
|
|
2371
2447
|
children: testing ? "Testing\u2026" : "Test connection"
|
|
2372
2448
|
}
|
|
2373
2449
|
),
|
|
2374
|
-
/* @__PURE__ */
|
|
2450
|
+
/* @__PURE__ */ jsx9(
|
|
2375
2451
|
"button",
|
|
2376
2452
|
{
|
|
2377
2453
|
type: "submit",
|
|
@@ -2392,15 +2468,15 @@ function CredentialTestResult({
|
|
|
2392
2468
|
result
|
|
2393
2469
|
}) {
|
|
2394
2470
|
if (result.valid === true) {
|
|
2395
|
-
return /* @__PURE__ */
|
|
2471
|
+
return /* @__PURE__ */ jsxs8(
|
|
2396
2472
|
"div",
|
|
2397
2473
|
{
|
|
2398
2474
|
role: "status",
|
|
2399
2475
|
"data-testid": `connector-credential-test-pass-${entry.slug}`,
|
|
2400
2476
|
className: "rounded-md border border-primary/30 bg-primary/5 px-2 py-1 text-xs",
|
|
2401
2477
|
children: [
|
|
2402
|
-
/* @__PURE__ */
|
|
2403
|
-
result.permissions_note && /* @__PURE__ */
|
|
2478
|
+
/* @__PURE__ */ jsx9("p", { children: result.account_name ? `Verified \u2014 connected as ${result.account_name}.` : "Verified \u2014 these credentials work." }),
|
|
2479
|
+
result.permissions_note && /* @__PURE__ */ jsx9(
|
|
2404
2480
|
"p",
|
|
2405
2481
|
{
|
|
2406
2482
|
"data-testid": `connector-credential-permissions-${entry.slug}`,
|
|
@@ -2413,7 +2489,7 @@ function CredentialTestResult({
|
|
|
2413
2489
|
);
|
|
2414
2490
|
}
|
|
2415
2491
|
if (result.valid === false) {
|
|
2416
|
-
return /* @__PURE__ */
|
|
2492
|
+
return /* @__PURE__ */ jsx9(
|
|
2417
2493
|
"p",
|
|
2418
2494
|
{
|
|
2419
2495
|
role: "alert",
|
|
@@ -2423,7 +2499,7 @@ function CredentialTestResult({
|
|
|
2423
2499
|
}
|
|
2424
2500
|
);
|
|
2425
2501
|
}
|
|
2426
|
-
return /* @__PURE__ */
|
|
2502
|
+
return /* @__PURE__ */ jsx9(
|
|
2427
2503
|
"p",
|
|
2428
2504
|
{
|
|
2429
2505
|
role: "status",
|
|
@@ -2486,13 +2562,13 @@ function ManageSharing({
|
|
|
2486
2562
|
},
|
|
2487
2563
|
[load, revokeGrant]
|
|
2488
2564
|
);
|
|
2489
|
-
return /* @__PURE__ */
|
|
2565
|
+
return /* @__PURE__ */ jsxs8(
|
|
2490
2566
|
"div",
|
|
2491
2567
|
{
|
|
2492
2568
|
"data-testid": `connector-sharing-panel-${entry.slug}`,
|
|
2493
2569
|
className: "mt-2 flex flex-col gap-2 rounded-md border border-border bg-foreground/5 p-2",
|
|
2494
2570
|
children: [
|
|
2495
|
-
grants === null && !error && /* @__PURE__ */
|
|
2571
|
+
grants === null && !error && /* @__PURE__ */ jsx9(
|
|
2496
2572
|
"p",
|
|
2497
2573
|
{
|
|
2498
2574
|
"data-testid": `connector-grants-loading-${entry.slug}`,
|
|
@@ -2500,7 +2576,7 @@ function ManageSharing({
|
|
|
2500
2576
|
children: "Loading sharing\u2026"
|
|
2501
2577
|
}
|
|
2502
2578
|
),
|
|
2503
|
-
error && /* @__PURE__ */
|
|
2579
|
+
error && /* @__PURE__ */ jsx9(
|
|
2504
2580
|
"p",
|
|
2505
2581
|
{
|
|
2506
2582
|
role: "alert",
|
|
@@ -2509,7 +2585,7 @@ function ManageSharing({
|
|
|
2509
2585
|
children: error
|
|
2510
2586
|
}
|
|
2511
2587
|
),
|
|
2512
|
-
grants !== null && grants.length === 0 && /* @__PURE__ */
|
|
2588
|
+
grants !== null && grants.length === 0 && /* @__PURE__ */ jsx9(
|
|
2513
2589
|
"p",
|
|
2514
2590
|
{
|
|
2515
2591
|
"data-testid": `connector-grants-empty-${entry.slug}`,
|
|
@@ -2517,21 +2593,21 @@ function ManageSharing({
|
|
|
2517
2593
|
children: "Not shared with anyone yet."
|
|
2518
2594
|
}
|
|
2519
2595
|
),
|
|
2520
|
-
grants?.map((grant) => /* @__PURE__ */
|
|
2596
|
+
grants?.map((grant) => /* @__PURE__ */ jsxs8(
|
|
2521
2597
|
"div",
|
|
2522
2598
|
{
|
|
2523
2599
|
"data-testid": `connector-grant-${entry.slug}-${grant.id}`,
|
|
2524
2600
|
className: "flex items-center justify-between gap-2 text-xs",
|
|
2525
2601
|
children: [
|
|
2526
|
-
/* @__PURE__ */
|
|
2602
|
+
/* @__PURE__ */ jsxs8("span", { className: "truncate", children: [
|
|
2527
2603
|
grant.grantee_name || grant.grantee_id,
|
|
2528
|
-
/* @__PURE__ */
|
|
2604
|
+
/* @__PURE__ */ jsxs8("span", { className: "text-muted-foreground", children: [
|
|
2529
2605
|
" ",
|
|
2530
2606
|
"\xB7 ",
|
|
2531
2607
|
grant.grantee_type === "role" ? "Role" : "User"
|
|
2532
2608
|
] })
|
|
2533
2609
|
] }),
|
|
2534
|
-
/* @__PURE__ */
|
|
2610
|
+
/* @__PURE__ */ jsx9(
|
|
2535
2611
|
"button",
|
|
2536
2612
|
{
|
|
2537
2613
|
type: "button",
|
|
@@ -2546,8 +2622,8 @@ function ManageSharing({
|
|
|
2546
2622
|
},
|
|
2547
2623
|
grant.id
|
|
2548
2624
|
)),
|
|
2549
|
-
/* @__PURE__ */
|
|
2550
|
-
/* @__PURE__ */
|
|
2625
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-1.5", children: [
|
|
2626
|
+
/* @__PURE__ */ jsxs8(
|
|
2551
2627
|
"select",
|
|
2552
2628
|
{
|
|
2553
2629
|
"data-testid": `connector-grant-type-${entry.slug}`,
|
|
@@ -2560,12 +2636,12 @@ function ManageSharing({
|
|
|
2560
2636
|
disabled: busy,
|
|
2561
2637
|
className: "rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50",
|
|
2562
2638
|
children: [
|
|
2563
|
-
/* @__PURE__ */
|
|
2564
|
-
/* @__PURE__ */
|
|
2639
|
+
/* @__PURE__ */ jsx9("option", { value: "user", children: "User" }),
|
|
2640
|
+
/* @__PURE__ */ jsx9("option", { value: "role", children: "Role" })
|
|
2565
2641
|
]
|
|
2566
2642
|
}
|
|
2567
2643
|
),
|
|
2568
|
-
granteeType === "user" ? /* @__PURE__ */
|
|
2644
|
+
granteeType === "user" ? /* @__PURE__ */ jsx9(
|
|
2569
2645
|
"input",
|
|
2570
2646
|
{
|
|
2571
2647
|
"data-testid": `connector-grant-grantee-${entry.slug}`,
|
|
@@ -2576,7 +2652,7 @@ function ManageSharing({
|
|
|
2576
2652
|
disabled: busy,
|
|
2577
2653
|
className: "min-w-0 flex-1 rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50"
|
|
2578
2654
|
}
|
|
2579
|
-
) : /* @__PURE__ */
|
|
2655
|
+
) : /* @__PURE__ */ jsxs8(
|
|
2580
2656
|
"select",
|
|
2581
2657
|
{
|
|
2582
2658
|
"data-testid": `connector-grant-role-${entry.slug}`,
|
|
@@ -2586,12 +2662,12 @@ function ManageSharing({
|
|
|
2586
2662
|
disabled: busy,
|
|
2587
2663
|
className: "min-w-0 flex-1 rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50",
|
|
2588
2664
|
children: [
|
|
2589
|
-
/* @__PURE__ */
|
|
2590
|
-
roleOptions.map((role) => /* @__PURE__ */
|
|
2665
|
+
/* @__PURE__ */ jsx9("option", { value: "", children: "Select a role\u2026" }),
|
|
2666
|
+
roleOptions.map((role) => /* @__PURE__ */ jsx9("option", { value: role.id, children: role.name }, role.id))
|
|
2591
2667
|
]
|
|
2592
2668
|
}
|
|
2593
2669
|
),
|
|
2594
|
-
/* @__PURE__ */
|
|
2670
|
+
/* @__PURE__ */ jsx9(
|
|
2595
2671
|
"button",
|
|
2596
2672
|
{
|
|
2597
2673
|
type: "button",
|
|
@@ -2612,6 +2688,7 @@ export {
|
|
|
2612
2688
|
BrandGlyph,
|
|
2613
2689
|
ConnectorPicker,
|
|
2614
2690
|
ContextSwitcher,
|
|
2691
|
+
DEFAULT_LEGAL_LINKS,
|
|
2615
2692
|
Flyout,
|
|
2616
2693
|
GLYPH_CANVAS_FILL,
|
|
2617
2694
|
HOVER_CLOSE_DELAY_MS,
|
|
@@ -2623,6 +2700,7 @@ export {
|
|
|
2623
2700
|
MARK_WEIGHT,
|
|
2624
2701
|
REEVE_ACCENT,
|
|
2625
2702
|
ResponsiveHeader,
|
|
2703
|
+
SiteFooter,
|
|
2626
2704
|
WORDMARK_WEIGHT,
|
|
2627
2705
|
accessLabel,
|
|
2628
2706
|
deriveFallbackLadder,
|