@meetreeve/ui 0.18.0 → 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 +254 -171
- package/dist/index.mjs +252 -171
- 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
|
);
|
|
@@ -1031,12 +1107,17 @@ function AppSidebar({
|
|
|
1031
1107
|
const mobileCloseRef = useRef4(null);
|
|
1032
1108
|
const [collapsed, setCollapsed] = useState6(defaultCollapsed);
|
|
1033
1109
|
const [collapseHydrated, setCollapseHydrated] = useState6(false);
|
|
1110
|
+
const collapsedRef = useRef4(defaultCollapsed);
|
|
1111
|
+
function applyCollapsed(next) {
|
|
1112
|
+
collapsedRef.current = next;
|
|
1113
|
+
setCollapsed(next);
|
|
1114
|
+
}
|
|
1034
1115
|
useEffect5(() => {
|
|
1035
1116
|
if (!collapsible) return;
|
|
1036
1117
|
try {
|
|
1037
1118
|
const stored = localStorage.getItem(storageKey);
|
|
1038
|
-
if (stored === "true")
|
|
1039
|
-
else if (stored === "false")
|
|
1119
|
+
if (stored === "true") applyCollapsed(true);
|
|
1120
|
+
else if (stored === "false") applyCollapsed(false);
|
|
1040
1121
|
} catch {
|
|
1041
1122
|
}
|
|
1042
1123
|
setCollapseHydrated(true);
|
|
@@ -1049,11 +1130,9 @@ function AppSidebar({
|
|
|
1049
1130
|
}
|
|
1050
1131
|
}, [collapsed, collapseHydrated, collapsible, storageKey]);
|
|
1051
1132
|
function handleToggleCollapsed() {
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
return next;
|
|
1056
|
-
});
|
|
1133
|
+
const next = !collapsedRef.current;
|
|
1134
|
+
applyCollapsed(next);
|
|
1135
|
+
onCollapsedChange?.(next);
|
|
1057
1136
|
}
|
|
1058
1137
|
const [openFlyoutId, setOpenFlyoutId] = useState6(null);
|
|
1059
1138
|
const handleFlyoutOpenChange = useCallback3((id, isOpen) => {
|
|
@@ -1086,7 +1165,7 @@ function AppSidebar({
|
|
|
1086
1165
|
function renderAppItem(item, testIdPrefix, collapsedRow = false) {
|
|
1087
1166
|
const def = moduleMap.get(item.moduleId);
|
|
1088
1167
|
if (!def) return null;
|
|
1089
|
-
return /* @__PURE__ */
|
|
1168
|
+
return /* @__PURE__ */ jsx6(
|
|
1090
1169
|
NavLink,
|
|
1091
1170
|
{
|
|
1092
1171
|
href: def.href,
|
|
@@ -1112,7 +1191,7 @@ function AppSidebar({
|
|
|
1112
1191
|
};
|
|
1113
1192
|
});
|
|
1114
1193
|
const active = children.some((c) => c.active);
|
|
1115
|
-
return /* @__PURE__ */
|
|
1194
|
+
return /* @__PURE__ */ jsx6(
|
|
1116
1195
|
Flyout,
|
|
1117
1196
|
{
|
|
1118
1197
|
label: item.label,
|
|
@@ -1131,7 +1210,7 @@ function AppSidebar({
|
|
|
1131
1210
|
function brandBlockFor(collapsedMode) {
|
|
1132
1211
|
if (!brand) return null;
|
|
1133
1212
|
if (collapsedMode) {
|
|
1134
|
-
return /* @__PURE__ */
|
|
1213
|
+
return /* @__PURE__ */ jsxs6(
|
|
1135
1214
|
"a",
|
|
1136
1215
|
{
|
|
1137
1216
|
href: brand.href,
|
|
@@ -1139,28 +1218,28 @@ function AppSidebar({
|
|
|
1139
1218
|
title: brand.label,
|
|
1140
1219
|
className: "flex items-center justify-center border-b border-sidebar-border px-1 py-4",
|
|
1141
1220
|
children: [
|
|
1142
|
-
/* @__PURE__ */
|
|
1143
|
-
/* @__PURE__ */
|
|
1221
|
+
/* @__PURE__ */ jsx6("span", { className: "sr-only", children: brand.label }),
|
|
1222
|
+
/* @__PURE__ */ jsx6(BrandGlyph, { brand: { name: brand.label }, size: "xl" })
|
|
1144
1223
|
]
|
|
1145
1224
|
}
|
|
1146
1225
|
);
|
|
1147
1226
|
}
|
|
1148
|
-
return /* @__PURE__ */
|
|
1227
|
+
return /* @__PURE__ */ jsxs6(
|
|
1149
1228
|
"a",
|
|
1150
1229
|
{
|
|
1151
1230
|
href: brand.href,
|
|
1152
1231
|
"data-testid": "app-sidebar-brand",
|
|
1153
1232
|
className: "flex items-center gap-2.5 border-b border-sidebar-border px-5 py-4 text-sidebar-foreground",
|
|
1154
1233
|
children: [
|
|
1155
|
-
/* @__PURE__ */
|
|
1156
|
-
/* @__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 })
|
|
1157
1236
|
]
|
|
1158
1237
|
}
|
|
1159
1238
|
);
|
|
1160
1239
|
}
|
|
1161
1240
|
function topItemBlock(testId, collapsedMode = false) {
|
|
1162
1241
|
if (!topItem) return null;
|
|
1163
|
-
return /* @__PURE__ */
|
|
1242
|
+
return /* @__PURE__ */ jsx6("div", { className: cn("px-3 pt-4", collapsedMode && "flex justify-center px-0"), children: /* @__PURE__ */ jsx6(
|
|
1164
1243
|
NavLink,
|
|
1165
1244
|
{
|
|
1166
1245
|
href: topItem.href,
|
|
@@ -1173,8 +1252,8 @@ function AppSidebar({
|
|
|
1173
1252
|
}
|
|
1174
1253
|
) });
|
|
1175
1254
|
}
|
|
1176
|
-
return /* @__PURE__ */
|
|
1177
|
-
!isDesktop && /* @__PURE__ */
|
|
1255
|
+
return /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
1256
|
+
!isDesktop && /* @__PURE__ */ jsx6(
|
|
1178
1257
|
"button",
|
|
1179
1258
|
{
|
|
1180
1259
|
ref: mobileTriggerRef,
|
|
@@ -1186,11 +1265,11 @@ function AppSidebar({
|
|
|
1186
1265
|
onClick: () => setMobileOpen((v) => !v),
|
|
1187
1266
|
style: TOUCH_TARGET_STYLE,
|
|
1188
1267
|
className: "flex items-center justify-center rounded-md border border-border p-2 text-foreground",
|
|
1189
|
-
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" })
|
|
1190
1269
|
}
|
|
1191
1270
|
),
|
|
1192
|
-
!isDesktop && mobileOpen && /* @__PURE__ */
|
|
1193
|
-
/* @__PURE__ */
|
|
1271
|
+
!isDesktop && mobileOpen && /* @__PURE__ */ jsxs6("div", { className: "fixed inset-0 z-50", children: [
|
|
1272
|
+
/* @__PURE__ */ jsx6(
|
|
1194
1273
|
"div",
|
|
1195
1274
|
{
|
|
1196
1275
|
"data-testid": "app-sidebar-mobile-scrim",
|
|
@@ -1199,7 +1278,7 @@ function AppSidebar({
|
|
|
1199
1278
|
onClick: () => setMobileOpen(false)
|
|
1200
1279
|
}
|
|
1201
1280
|
),
|
|
1202
|
-
/* @__PURE__ */
|
|
1281
|
+
/* @__PURE__ */ jsxs6(
|
|
1203
1282
|
"div",
|
|
1204
1283
|
{
|
|
1205
1284
|
ref: mobileDrawerRef,
|
|
@@ -1210,7 +1289,7 @@ function AppSidebar({
|
|
|
1210
1289
|
"data-testid": "app-sidebar-mobile-drawer",
|
|
1211
1290
|
className: "absolute inset-y-0 left-0 flex w-72 flex-col overflow-y-auto border-r border-sidebar-border bg-sidebar",
|
|
1212
1291
|
children: [
|
|
1213
|
-
/* @__PURE__ */
|
|
1292
|
+
/* @__PURE__ */ jsx6("div", { className: "sticky top-0 z-10 flex justify-end bg-sidebar p-2", children: /* @__PURE__ */ jsx6(
|
|
1214
1293
|
"button",
|
|
1215
1294
|
{
|
|
1216
1295
|
ref: mobileCloseRef,
|
|
@@ -1220,19 +1299,19 @@ function AppSidebar({
|
|
|
1220
1299
|
onClick: () => setMobileOpen(false),
|
|
1221
1300
|
style: TOUCH_TARGET_STYLE,
|
|
1222
1301
|
className: "flex items-center justify-center rounded-md p-2 text-sidebar-foreground/70 hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground",
|
|
1223
|
-
children: /* @__PURE__ */
|
|
1302
|
+
children: /* @__PURE__ */ jsx6(X2, { className: "h-5 w-5", "aria-hidden": "true" })
|
|
1224
1303
|
}
|
|
1225
1304
|
) }),
|
|
1226
1305
|
brandBlockFor(false),
|
|
1227
1306
|
topItemBlock("app-sidebar-mobile-top-item"),
|
|
1228
|
-
/* @__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(
|
|
1229
1308
|
(item) => item.type === "app" ? renderAppItem(item, "app-sidebar-mobile-navlink") : null
|
|
1230
1309
|
) }) })
|
|
1231
1310
|
]
|
|
1232
1311
|
}
|
|
1233
1312
|
)
|
|
1234
1313
|
] }),
|
|
1235
|
-
/* @__PURE__ */
|
|
1314
|
+
/* @__PURE__ */ jsxs6(
|
|
1236
1315
|
"aside",
|
|
1237
1316
|
{
|
|
1238
1317
|
"data-testid": "app-sidebar-desktop",
|
|
@@ -1247,18 +1326,18 @@ function AppSidebar({
|
|
|
1247
1326
|
children: [
|
|
1248
1327
|
brandBlockFor(collapsed),
|
|
1249
1328
|
topItemBlock("app-sidebar-top-item", collapsed),
|
|
1250
|
-
/* @__PURE__ */
|
|
1329
|
+
/* @__PURE__ */ jsx6(
|
|
1251
1330
|
"nav",
|
|
1252
1331
|
{
|
|
1253
1332
|
ref: containerRef,
|
|
1254
1333
|
"data-testid": "app-sidebar-nav",
|
|
1255
1334
|
className: "flex-1 overflow-y-auto px-3 py-4",
|
|
1256
|
-
children: /* @__PURE__ */
|
|
1335
|
+
children: /* @__PURE__ */ jsx6("div", { className: "flex flex-col gap-0.5", children: rung.items.map(
|
|
1257
1336
|
(item) => item.type === "app" ? renderAppItem(item, "app-sidebar-navlink", collapsed) : renderGroupItem(item, collapsed)
|
|
1258
1337
|
) })
|
|
1259
1338
|
}
|
|
1260
1339
|
),
|
|
1261
|
-
collapsible && /* @__PURE__ */
|
|
1340
|
+
collapsible && /* @__PURE__ */ jsx6("div", { className: "border-t border-sidebar-border px-2 py-2", children: /* @__PURE__ */ jsxs6(
|
|
1262
1341
|
"button",
|
|
1263
1342
|
{
|
|
1264
1343
|
type: "button",
|
|
@@ -1272,8 +1351,8 @@ function AppSidebar({
|
|
|
1272
1351
|
collapsed && "justify-center px-0"
|
|
1273
1352
|
),
|
|
1274
1353
|
children: [
|
|
1275
|
-
collapsed ? /* @__PURE__ */
|
|
1276
|
-
/* @__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" })
|
|
1277
1356
|
]
|
|
1278
1357
|
}
|
|
1279
1358
|
) })
|
|
@@ -1316,19 +1395,19 @@ function groupItemsByOrg(rows, get) {
|
|
|
1316
1395
|
|
|
1317
1396
|
// src/lib/dropdown-menu.tsx
|
|
1318
1397
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
1319
|
-
import { jsx as
|
|
1398
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
1320
1399
|
function DropdownMenu(props) {
|
|
1321
|
-
return /* @__PURE__ */
|
|
1400
|
+
return /* @__PURE__ */ jsx7(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
1322
1401
|
}
|
|
1323
1402
|
function DropdownMenuTrigger(props) {
|
|
1324
|
-
return /* @__PURE__ */
|
|
1403
|
+
return /* @__PURE__ */ jsx7(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
1325
1404
|
}
|
|
1326
1405
|
function DropdownMenuContent({
|
|
1327
1406
|
className,
|
|
1328
1407
|
sideOffset = 4,
|
|
1329
1408
|
...props
|
|
1330
1409
|
}) {
|
|
1331
|
-
return /* @__PURE__ */
|
|
1410
|
+
return /* @__PURE__ */ jsx7(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx7(
|
|
1332
1411
|
DropdownMenuPrimitive.Content,
|
|
1333
1412
|
{
|
|
1334
1413
|
"data-slot": "dropdown-menu-content",
|
|
@@ -1345,7 +1424,7 @@ function DropdownMenuItem({
|
|
|
1345
1424
|
className,
|
|
1346
1425
|
...props
|
|
1347
1426
|
}) {
|
|
1348
|
-
return /* @__PURE__ */
|
|
1427
|
+
return /* @__PURE__ */ jsx7(
|
|
1349
1428
|
DropdownMenuPrimitive.Item,
|
|
1350
1429
|
{
|
|
1351
1430
|
"data-slot": "dropdown-menu-item",
|
|
@@ -1361,7 +1440,7 @@ function DropdownMenuLabel({
|
|
|
1361
1440
|
className,
|
|
1362
1441
|
...props
|
|
1363
1442
|
}) {
|
|
1364
|
-
return /* @__PURE__ */
|
|
1443
|
+
return /* @__PURE__ */ jsx7(
|
|
1365
1444
|
DropdownMenuPrimitive.Label,
|
|
1366
1445
|
{
|
|
1367
1446
|
"data-slot": "dropdown-menu-label",
|
|
@@ -1372,7 +1451,7 @@ function DropdownMenuLabel({
|
|
|
1372
1451
|
}
|
|
1373
1452
|
|
|
1374
1453
|
// src/context-switcher.tsx
|
|
1375
|
-
import { Fragment as Fragment3, jsx as
|
|
1454
|
+
import { Fragment as Fragment3, jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1376
1455
|
function groupByOrg(items) {
|
|
1377
1456
|
return groupItemsByOrg(items, {
|
|
1378
1457
|
orgId: (it) => it.orgId,
|
|
@@ -1404,29 +1483,29 @@ function ContextSwitcher({
|
|
|
1404
1483
|
const active = items.find((it) => it.refId === activeRefId) ?? null;
|
|
1405
1484
|
const groups = groupByOrg(items);
|
|
1406
1485
|
const showOrgHeaders = groups.length > 1;
|
|
1407
|
-
return /* @__PURE__ */
|
|
1408
|
-
/* @__PURE__ */
|
|
1486
|
+
return /* @__PURE__ */ jsxs7(DropdownMenu, { children: [
|
|
1487
|
+
/* @__PURE__ */ jsx8(DropdownMenuTrigger, { asChild: true, children: collapsed ? /* @__PURE__ */ jsx8(
|
|
1409
1488
|
"button",
|
|
1410
1489
|
{
|
|
1411
1490
|
type: "button",
|
|
1412
1491
|
title: active?.name || placeholder,
|
|
1413
1492
|
"aria-label": active?.name || placeholder,
|
|
1414
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",
|
|
1415
|
-
children: /* @__PURE__ */
|
|
1494
|
+
children: /* @__PURE__ */ jsx8(BrandGlyph, { brand: toBrand(active ?? { name: "" }), size: "lg" })
|
|
1416
1495
|
}
|
|
1417
|
-
) : /* @__PURE__ */
|
|
1496
|
+
) : /* @__PURE__ */ jsxs7(
|
|
1418
1497
|
"button",
|
|
1419
1498
|
{
|
|
1420
1499
|
type: "button",
|
|
1421
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",
|
|
1422
1501
|
children: [
|
|
1423
|
-
/* @__PURE__ */
|
|
1424
|
-
/* @__PURE__ */
|
|
1425
|
-
/* @__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" })
|
|
1426
1505
|
]
|
|
1427
1506
|
}
|
|
1428
1507
|
) }),
|
|
1429
|
-
/* @__PURE__ */
|
|
1508
|
+
/* @__PURE__ */ jsxs7(
|
|
1430
1509
|
DropdownMenuContent,
|
|
1431
1510
|
{
|
|
1432
1511
|
side,
|
|
@@ -1435,13 +1514,13 @@ function ContextSwitcher({
|
|
|
1435
1514
|
collisionPadding: 8,
|
|
1436
1515
|
className: cn("w-60 overflow-hidden p-0", contentClassName),
|
|
1437
1516
|
children: [
|
|
1438
|
-
groups.map((group) => /* @__PURE__ */
|
|
1439
|
-
showOrgHeaders && /* @__PURE__ */
|
|
1440
|
-
/* @__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) => {
|
|
1441
1520
|
const isActive = item.refId === activeRefId;
|
|
1442
1521
|
const next = group.items[i + 1];
|
|
1443
1522
|
const endsPinned = item.pinned === true && next !== void 0 && next.pinned !== true;
|
|
1444
|
-
return /* @__PURE__ */
|
|
1523
|
+
return /* @__PURE__ */ jsxs7(
|
|
1445
1524
|
DropdownMenuItem,
|
|
1446
1525
|
{
|
|
1447
1526
|
"data-active": isActive || void 0,
|
|
@@ -1453,8 +1532,8 @@ function ContextSwitcher({
|
|
|
1453
1532
|
endsPinned && "border-b border-border/60"
|
|
1454
1533
|
),
|
|
1455
1534
|
children: [
|
|
1456
|
-
/* @__PURE__ */
|
|
1457
|
-
/* @__PURE__ */
|
|
1535
|
+
/* @__PURE__ */ jsx8(BrandGlyph, { brand: toBrand(item), subtle: true }),
|
|
1536
|
+
/* @__PURE__ */ jsx8(
|
|
1458
1537
|
"span",
|
|
1459
1538
|
{
|
|
1460
1539
|
className: cn(
|
|
@@ -1464,18 +1543,18 @@ function ContextSwitcher({
|
|
|
1464
1543
|
children: item.name
|
|
1465
1544
|
}
|
|
1466
1545
|
),
|
|
1467
|
-
item.kindLabel && /* @__PURE__ */
|
|
1546
|
+
item.kindLabel && /* @__PURE__ */ jsxs7(Fragment3, { children: [
|
|
1468
1547
|
" ",
|
|
1469
|
-
/* @__PURE__ */
|
|
1548
|
+
/* @__PURE__ */ jsx8("span", { className: "shrink-0 text-[11px] text-muted-foreground", children: item.kindLabel })
|
|
1470
1549
|
] }),
|
|
1471
|
-
isActive && /* @__PURE__ */
|
|
1550
|
+
isActive && /* @__PURE__ */ jsx8(Check, { className: "size-3.5 text-emerald-500" })
|
|
1472
1551
|
]
|
|
1473
1552
|
},
|
|
1474
1553
|
item.refId
|
|
1475
1554
|
);
|
|
1476
1555
|
}) })
|
|
1477
1556
|
] }, group.orgId ?? "unattributed")),
|
|
1478
|
-
footer && /* @__PURE__ */
|
|
1557
|
+
footer && /* @__PURE__ */ jsx8("div", { className: "sticky bottom-0 border-t border-border bg-popover", children: footer })
|
|
1479
1558
|
]
|
|
1480
1559
|
}
|
|
1481
1560
|
)
|
|
@@ -1484,7 +1563,7 @@ function ContextSwitcher({
|
|
|
1484
1563
|
|
|
1485
1564
|
// src/connector-picker.tsx
|
|
1486
1565
|
import { useCallback as useCallback4, useEffect as useEffect6, useRef as useRef5, useState as useState7 } from "react";
|
|
1487
|
-
import { Fragment as Fragment4, jsx as
|
|
1566
|
+
import { Fragment as Fragment4, jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1488
1567
|
function accessLabel(access) {
|
|
1489
1568
|
return access === "read" ? "Read" : "Read + write";
|
|
1490
1569
|
}
|
|
@@ -1745,35 +1824,35 @@ function ConnectorPicker({
|
|
|
1745
1824
|
);
|
|
1746
1825
|
const ownEntries = entries?.filter((entry) => !isSharedWithViewer(entry)) ?? null;
|
|
1747
1826
|
const sharedEntries = entries?.filter(isSharedWithViewer) ?? [];
|
|
1748
|
-
return /* @__PURE__ */
|
|
1749
|
-
/* @__PURE__ */
|
|
1750
|
-
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(
|
|
1751
1830
|
"div",
|
|
1752
1831
|
{
|
|
1753
1832
|
"data-testid": "connector-picker-skeleton-item",
|
|
1754
1833
|
"aria-hidden": "true",
|
|
1755
1834
|
className: "flex items-center gap-3 rounded-lg border border-border p-3",
|
|
1756
1835
|
children: [
|
|
1757
|
-
/* @__PURE__ */
|
|
1758
|
-
/* @__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" })
|
|
1759
1838
|
]
|
|
1760
1839
|
},
|
|
1761
1840
|
i
|
|
1762
1841
|
)),
|
|
1763
|
-
loadError && /* @__PURE__ */
|
|
1842
|
+
loadError && /* @__PURE__ */ jsxs8(
|
|
1764
1843
|
"div",
|
|
1765
1844
|
{
|
|
1766
1845
|
role: "alert",
|
|
1767
1846
|
"data-testid": "connector-picker-load-error",
|
|
1768
1847
|
className: "flex items-center justify-between gap-3 rounded-lg border border-destructive/30 bg-destructive/5 p-3 text-sm text-destructive",
|
|
1769
1848
|
children: [
|
|
1770
|
-
/* @__PURE__ */
|
|
1771
|
-
/* @__PURE__ */
|
|
1849
|
+
/* @__PURE__ */ jsx9("span", { children: loadError }),
|
|
1850
|
+
/* @__PURE__ */ jsx9("button", { type: "button", onClick: () => void load(), className: "shrink-0 underline", children: "Retry" })
|
|
1772
1851
|
]
|
|
1773
1852
|
}
|
|
1774
1853
|
),
|
|
1775
|
-
entries !== null && entries.length === 0 && !loadError && /* @__PURE__ */
|
|
1776
|
-
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(
|
|
1777
1856
|
ConnectorTile,
|
|
1778
1857
|
{
|
|
1779
1858
|
entry,
|
|
@@ -1793,9 +1872,9 @@ function ConnectorPicker({
|
|
|
1793
1872
|
entry.slug
|
|
1794
1873
|
))
|
|
1795
1874
|
] }),
|
|
1796
|
-
sharedEntries.length > 0 && /* @__PURE__ */
|
|
1797
|
-
/* @__PURE__ */
|
|
1798
|
-
/* @__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(
|
|
1799
1878
|
ConnectorTile,
|
|
1800
1879
|
{
|
|
1801
1880
|
entry,
|
|
@@ -1854,7 +1933,7 @@ function ConnectorTile({
|
|
|
1854
1933
|
const attribution = ownerLabel(entry);
|
|
1855
1934
|
const canDisconnect = isConnected && !shared;
|
|
1856
1935
|
const canManageSharing = isConnected && entry.connection.owned_by_viewer === true && grantsSupported;
|
|
1857
|
-
return /* @__PURE__ */
|
|
1936
|
+
return /* @__PURE__ */ jsxs8(
|
|
1858
1937
|
"div",
|
|
1859
1938
|
{
|
|
1860
1939
|
"data-testid": `connector-tile-${entry.slug}`,
|
|
@@ -1862,12 +1941,12 @@ function ConnectorTile({
|
|
|
1862
1941
|
"data-deprecated": entry.deprecated || void 0,
|
|
1863
1942
|
className: cn("flex flex-col p-3", layout === "tiles" && "rounded-lg border border-border"),
|
|
1864
1943
|
children: [
|
|
1865
|
-
/* @__PURE__ */
|
|
1866
|
-
/* @__PURE__ */
|
|
1867
|
-
/* @__PURE__ */
|
|
1868
|
-
/* @__PURE__ */
|
|
1869
|
-
/* @__PURE__ */
|
|
1870
|
-
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(
|
|
1871
1950
|
"span",
|
|
1872
1951
|
{
|
|
1873
1952
|
"data-testid": `connector-deprecated-${entry.slug}`,
|
|
@@ -1876,24 +1955,24 @@ function ConnectorTile({
|
|
|
1876
1955
|
}
|
|
1877
1956
|
)
|
|
1878
1957
|
] }),
|
|
1879
|
-
/* @__PURE__ */
|
|
1880
|
-
(isConnected || choices.length === 0) && /* @__PURE__ */
|
|
1881
|
-
isConnected && /* @__PURE__ */
|
|
1882
|
-
/* @__PURE__ */
|
|
1883
|
-
/* @__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(
|
|
1884
1963
|
"span",
|
|
1885
1964
|
{
|
|
1886
1965
|
"data-testid": `connector-connected-${entry.slug}`,
|
|
1887
1966
|
className: "inline-flex items-center gap-1",
|
|
1888
1967
|
children: [
|
|
1889
|
-
/* @__PURE__ */
|
|
1968
|
+
/* @__PURE__ */ jsx9("span", { "aria-hidden": "true", className: "h-1.5 w-1.5 rounded-full bg-emerald-500" }),
|
|
1890
1969
|
"Connected"
|
|
1891
1970
|
]
|
|
1892
1971
|
}
|
|
1893
1972
|
)
|
|
1894
1973
|
] })
|
|
1895
1974
|
] }),
|
|
1896
|
-
isConnected && !shared && entry.connection.account_label && /* @__PURE__ */
|
|
1975
|
+
isConnected && !shared && entry.connection.account_label && /* @__PURE__ */ jsxs8(
|
|
1897
1976
|
"p",
|
|
1898
1977
|
{
|
|
1899
1978
|
"data-testid": `connector-account-${entry.slug}`,
|
|
@@ -1904,7 +1983,7 @@ function ConnectorTile({
|
|
|
1904
1983
|
]
|
|
1905
1984
|
}
|
|
1906
1985
|
),
|
|
1907
|
-
isConnected && entry.access_summary && /* @__PURE__ */
|
|
1986
|
+
isConnected && entry.access_summary && /* @__PURE__ */ jsx9(
|
|
1908
1987
|
"p",
|
|
1909
1988
|
{
|
|
1910
1989
|
"data-testid": `connector-access-summary-${entry.slug}`,
|
|
@@ -1912,7 +1991,7 @@ function ConnectorTile({
|
|
|
1912
1991
|
children: entry.access_summary
|
|
1913
1992
|
}
|
|
1914
1993
|
),
|
|
1915
|
-
unhealthy && /* @__PURE__ */
|
|
1994
|
+
unhealthy && /* @__PURE__ */ jsx9(
|
|
1916
1995
|
"p",
|
|
1917
1996
|
{
|
|
1918
1997
|
role: "alert",
|
|
@@ -1921,7 +2000,7 @@ function ConnectorTile({
|
|
|
1921
2000
|
children: DEFAULT_RECONNECT_MESSAGE
|
|
1922
2001
|
}
|
|
1923
2002
|
),
|
|
1924
|
-
attribution && /* @__PURE__ */
|
|
2003
|
+
attribution && /* @__PURE__ */ jsx9(
|
|
1925
2004
|
"p",
|
|
1926
2005
|
{
|
|
1927
2006
|
"data-testid": `connector-owner-${entry.slug}`,
|
|
@@ -1929,14 +2008,14 @@ function ConnectorTile({
|
|
|
1929
2008
|
children: attribution
|
|
1930
2009
|
}
|
|
1931
2010
|
),
|
|
1932
|
-
!isConnected && choices.length > 0 && /* @__PURE__ */
|
|
2011
|
+
!isConnected && choices.length > 0 && /* @__PURE__ */ jsx9(
|
|
1933
2012
|
"div",
|
|
1934
2013
|
{
|
|
1935
2014
|
"data-testid": `connector-access-choice-${entry.slug}`,
|
|
1936
2015
|
role: "group",
|
|
1937
2016
|
"aria-label": "Access",
|
|
1938
2017
|
className: "mt-1 flex items-center gap-1",
|
|
1939
|
-
children: choices.map((option) => /* @__PURE__ */
|
|
2018
|
+
children: choices.map((option) => /* @__PURE__ */ jsx9(
|
|
1940
2019
|
"button",
|
|
1941
2020
|
{
|
|
1942
2021
|
type: "button",
|
|
@@ -1955,7 +2034,7 @@ function ConnectorTile({
|
|
|
1955
2034
|
))
|
|
1956
2035
|
}
|
|
1957
2036
|
),
|
|
1958
|
-
!isConnected && orgPermitted && /* @__PURE__ */
|
|
2037
|
+
!isConnected && orgPermitted && /* @__PURE__ */ jsxs8(
|
|
1959
2038
|
"div",
|
|
1960
2039
|
{
|
|
1961
2040
|
"data-testid": `connector-kind-toggle-${entry.slug}`,
|
|
@@ -1963,7 +2042,7 @@ function ConnectorTile({
|
|
|
1963
2042
|
"aria-label": "Connect as",
|
|
1964
2043
|
className: "mt-1 flex items-center gap-1",
|
|
1965
2044
|
children: [
|
|
1966
|
-
/* @__PURE__ */
|
|
2045
|
+
/* @__PURE__ */ jsx9(
|
|
1967
2046
|
"button",
|
|
1968
2047
|
{
|
|
1969
2048
|
type: "button",
|
|
@@ -1980,7 +2059,7 @@ function ConnectorTile({
|
|
|
1980
2059
|
children: "Personal"
|
|
1981
2060
|
}
|
|
1982
2061
|
),
|
|
1983
|
-
/* @__PURE__ */
|
|
2062
|
+
/* @__PURE__ */ jsx9(
|
|
1984
2063
|
"button",
|
|
1985
2064
|
{
|
|
1986
2065
|
type: "button",
|
|
@@ -2000,10 +2079,10 @@ function ConnectorTile({
|
|
|
2000
2079
|
]
|
|
2001
2080
|
}
|
|
2002
2081
|
),
|
|
2003
|
-
errorMessage && /* @__PURE__ */
|
|
2082
|
+
errorMessage && /* @__PURE__ */ jsx9("p", { role: "alert", "data-testid": `connector-error-${entry.slug}`, className: "text-xs text-destructive", children: errorMessage })
|
|
2004
2083
|
] }),
|
|
2005
|
-
isConnected ? /* @__PURE__ */
|
|
2006
|
-
unhealthy && !shared && /* @__PURE__ */
|
|
2084
|
+
isConnected ? /* @__PURE__ */ jsxs8("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
|
|
2085
|
+
unhealthy && !shared && /* @__PURE__ */ jsx9(
|
|
2007
2086
|
"button",
|
|
2008
2087
|
{
|
|
2009
2088
|
type: "button",
|
|
@@ -2018,7 +2097,7 @@ function ConnectorTile({
|
|
|
2018
2097
|
// as an always-visible paragraph it wrapped to four lines
|
|
2019
2098
|
// beside every connected tile. Muted until hover so a
|
|
2020
2099
|
// destructive action isn't the loudest thing on the tile.
|
|
2021
|
-
/* @__PURE__ */
|
|
2100
|
+
/* @__PURE__ */ jsx9(
|
|
2022
2101
|
"button",
|
|
2023
2102
|
{
|
|
2024
2103
|
type: "button",
|
|
@@ -2030,7 +2109,7 @@ function ConnectorTile({
|
|
|
2030
2109
|
children: isDisconnecting ? "Disconnecting\u2026" : "Disconnect"
|
|
2031
2110
|
}
|
|
2032
2111
|
),
|
|
2033
|
-
canManageSharing && /* @__PURE__ */
|
|
2112
|
+
canManageSharing && /* @__PURE__ */ jsx9(
|
|
2034
2113
|
"button",
|
|
2035
2114
|
{
|
|
2036
2115
|
type: "button",
|
|
@@ -2041,8 +2120,8 @@ function ConnectorTile({
|
|
|
2041
2120
|
children: sharingOpen ? "Hide sharing" : "Manage sharing"
|
|
2042
2121
|
}
|
|
2043
2122
|
)
|
|
2044
|
-
] }) : /* @__PURE__ */
|
|
2045
|
-
/* @__PURE__ */
|
|
2123
|
+
] }) : /* @__PURE__ */ jsxs8("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
|
|
2124
|
+
/* @__PURE__ */ jsx9(
|
|
2046
2125
|
"button",
|
|
2047
2126
|
{
|
|
2048
2127
|
type: "button",
|
|
@@ -2053,7 +2132,7 @@ function ConnectorTile({
|
|
|
2053
2132
|
children: isConnecting ? "Connecting\u2026" : "Connect"
|
|
2054
2133
|
}
|
|
2055
2134
|
),
|
|
2056
|
-
canSetUp && /* @__PURE__ */
|
|
2135
|
+
canSetUp && /* @__PURE__ */ jsx9(
|
|
2057
2136
|
"button",
|
|
2058
2137
|
{
|
|
2059
2138
|
type: "button",
|
|
@@ -2067,15 +2146,15 @@ function ConnectorTile({
|
|
|
2067
2146
|
)
|
|
2068
2147
|
] })
|
|
2069
2148
|
] }),
|
|
2070
|
-
canSetUp && setupOpen && /* @__PURE__ */
|
|
2149
|
+
canSetUp && setupOpen && /* @__PURE__ */ jsxs8(
|
|
2071
2150
|
"div",
|
|
2072
2151
|
{
|
|
2073
2152
|
id: `connector-setup-panel-${entry.slug}`,
|
|
2074
2153
|
"data-testid": `connector-setup-panel-${entry.slug}`,
|
|
2075
2154
|
className: "mt-2 flex flex-col gap-3 rounded-md border border-border bg-foreground/5 p-2",
|
|
2076
2155
|
children: [
|
|
2077
|
-
guide && /* @__PURE__ */
|
|
2078
|
-
pasteSupported && /* @__PURE__ */
|
|
2156
|
+
guide && /* @__PURE__ */ jsx9(SetupGuidePanel, { entry, guide, showVerify: !pasteSupported }),
|
|
2157
|
+
pasteSupported && /* @__PURE__ */ jsx9(
|
|
2079
2158
|
CredentialForm,
|
|
2080
2159
|
{
|
|
2081
2160
|
entry,
|
|
@@ -2090,7 +2169,7 @@ function ConnectorTile({
|
|
|
2090
2169
|
]
|
|
2091
2170
|
}
|
|
2092
2171
|
),
|
|
2093
|
-
canManageSharing && sharingOpen && /* @__PURE__ */
|
|
2172
|
+
canManageSharing && sharingOpen && /* @__PURE__ */ jsx9(
|
|
2094
2173
|
ManageSharing,
|
|
2095
2174
|
{
|
|
2096
2175
|
entry,
|
|
@@ -2140,8 +2219,8 @@ function CopyableValue({ value, testId }) {
|
|
|
2140
2219
|
setCopied(false);
|
|
2141
2220
|
}
|
|
2142
2221
|
}, [value]);
|
|
2143
|
-
return /* @__PURE__ */
|
|
2144
|
-
/* @__PURE__ */
|
|
2222
|
+
return /* @__PURE__ */ jsxs8("span", { className: "mt-1 flex items-center gap-1.5", children: [
|
|
2223
|
+
/* @__PURE__ */ jsx9(
|
|
2145
2224
|
"code",
|
|
2146
2225
|
{
|
|
2147
2226
|
"data-testid": `${testId}-value`,
|
|
@@ -2149,7 +2228,7 @@ function CopyableValue({ value, testId }) {
|
|
|
2149
2228
|
children: value
|
|
2150
2229
|
}
|
|
2151
2230
|
),
|
|
2152
|
-
/* @__PURE__ */
|
|
2231
|
+
/* @__PURE__ */ jsx9(
|
|
2153
2232
|
"button",
|
|
2154
2233
|
{
|
|
2155
2234
|
type: "button",
|
|
@@ -2175,8 +2254,8 @@ function SetupGuidePanel({
|
|
|
2175
2254
|
ungrounded
|
|
2176
2255
|
);
|
|
2177
2256
|
}, [entry.slug, guide, leaked]);
|
|
2178
|
-
return /* @__PURE__ */
|
|
2179
|
-
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(
|
|
2180
2259
|
"p",
|
|
2181
2260
|
{
|
|
2182
2261
|
role: "alert",
|
|
@@ -2188,25 +2267,25 @@ function SetupGuidePanel({
|
|
|
2188
2267
|
]
|
|
2189
2268
|
}
|
|
2190
2269
|
),
|
|
2191
|
-
prerequisites.length > 0 && /* @__PURE__ */
|
|
2192
|
-
/* @__PURE__ */
|
|
2193
|
-
/* @__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(
|
|
2194
2273
|
"ul",
|
|
2195
2274
|
{
|
|
2196
2275
|
"data-testid": `connector-guide-prerequisites-${entry.slug}`,
|
|
2197
2276
|
className: "mt-1 list-disc pl-4 text-xs text-muted-foreground",
|
|
2198
|
-
children: prerequisites.map((item) => /* @__PURE__ */
|
|
2277
|
+
children: prerequisites.map((item) => /* @__PURE__ */ jsx9("li", { children: item }, item))
|
|
2199
2278
|
}
|
|
2200
2279
|
)
|
|
2201
2280
|
] }),
|
|
2202
|
-
steps.length > 0 && /* @__PURE__ */
|
|
2281
|
+
steps.length > 0 && /* @__PURE__ */ jsx9(
|
|
2203
2282
|
"ol",
|
|
2204
2283
|
{
|
|
2205
2284
|
"data-testid": `connector-guide-steps-${entry.slug}`,
|
|
2206
2285
|
className: "list-decimal pl-4 text-xs",
|
|
2207
|
-
children: steps.map((step, index) => /* @__PURE__ */
|
|
2208
|
-
/* @__PURE__ */
|
|
2209
|
-
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(
|
|
2210
2289
|
CopyableValue,
|
|
2211
2290
|
{
|
|
2212
2291
|
value: step.copyable,
|
|
@@ -2216,7 +2295,7 @@ function SetupGuidePanel({
|
|
|
2216
2295
|
] }, step.text))
|
|
2217
2296
|
}
|
|
2218
2297
|
),
|
|
2219
|
-
scopeNote && /* @__PURE__ */
|
|
2298
|
+
scopeNote && /* @__PURE__ */ jsx9(
|
|
2220
2299
|
"p",
|
|
2221
2300
|
{
|
|
2222
2301
|
"data-testid": `connector-guide-scope-note-${entry.slug}`,
|
|
@@ -2224,7 +2303,7 @@ function SetupGuidePanel({
|
|
|
2224
2303
|
children: scopeNote
|
|
2225
2304
|
}
|
|
2226
2305
|
),
|
|
2227
|
-
showVerify && verify && /* @__PURE__ */
|
|
2306
|
+
showVerify && verify && /* @__PURE__ */ jsx9(
|
|
2228
2307
|
"p",
|
|
2229
2308
|
{
|
|
2230
2309
|
"data-testid": `connector-guide-verify-${entry.slug}`,
|
|
@@ -2288,7 +2367,7 @@ function CredentialForm({
|
|
|
2288
2367
|
setBusy(false);
|
|
2289
2368
|
}
|
|
2290
2369
|
}, [kind, onSubmitCredentials, values]);
|
|
2291
|
-
return /* @__PURE__ */
|
|
2370
|
+
return /* @__PURE__ */ jsxs8(
|
|
2292
2371
|
"form",
|
|
2293
2372
|
{
|
|
2294
2373
|
"data-testid": `connector-credential-form-${entry.slug}`,
|
|
@@ -2302,12 +2381,12 @@ function CredentialForm({
|
|
|
2302
2381
|
fields.map((field) => {
|
|
2303
2382
|
const inputId = `connector-credential-${entry.slug}-${field.key}`;
|
|
2304
2383
|
const fieldError = fieldErrors?.[field.key] ?? null;
|
|
2305
|
-
return /* @__PURE__ */
|
|
2306
|
-
/* @__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: [
|
|
2307
2386
|
field.label,
|
|
2308
|
-
field.required !== false && /* @__PURE__ */
|
|
2387
|
+
field.required !== false && /* @__PURE__ */ jsx9("span", { "aria-hidden": "true", className: "ml-0.5 text-destructive", children: "*" })
|
|
2309
2388
|
] }),
|
|
2310
|
-
/* @__PURE__ */
|
|
2389
|
+
/* @__PURE__ */ jsx9(
|
|
2311
2390
|
"input",
|
|
2312
2391
|
{
|
|
2313
2392
|
id: inputId,
|
|
@@ -2327,7 +2406,7 @@ function CredentialForm({
|
|
|
2327
2406
|
)
|
|
2328
2407
|
}
|
|
2329
2408
|
),
|
|
2330
|
-
fieldError && /* @__PURE__ */
|
|
2409
|
+
fieldError && /* @__PURE__ */ jsx9(
|
|
2331
2410
|
"p",
|
|
2332
2411
|
{
|
|
2333
2412
|
id: `${inputId}-error`,
|
|
@@ -2338,7 +2417,7 @@ function CredentialForm({
|
|
|
2338
2417
|
)
|
|
2339
2418
|
] }, field.key);
|
|
2340
2419
|
}),
|
|
2341
|
-
verify && /* @__PURE__ */
|
|
2420
|
+
verify && /* @__PURE__ */ jsx9(
|
|
2342
2421
|
"p",
|
|
2343
2422
|
{
|
|
2344
2423
|
"data-testid": `connector-guide-verify-${entry.slug}`,
|
|
@@ -2346,8 +2425,8 @@ function CredentialForm({
|
|
|
2346
2425
|
children: verify
|
|
2347
2426
|
}
|
|
2348
2427
|
),
|
|
2349
|
-
result && /* @__PURE__ */
|
|
2350
|
-
error && /* @__PURE__ */
|
|
2428
|
+
result && /* @__PURE__ */ jsx9(CredentialTestResult, { entry, result }),
|
|
2429
|
+
error && /* @__PURE__ */ jsx9(
|
|
2351
2430
|
"p",
|
|
2352
2431
|
{
|
|
2353
2432
|
role: "alert",
|
|
@@ -2356,8 +2435,8 @@ function CredentialForm({
|
|
|
2356
2435
|
children: error
|
|
2357
2436
|
}
|
|
2358
2437
|
),
|
|
2359
|
-
/* @__PURE__ */
|
|
2360
|
-
testSupported && /* @__PURE__ */
|
|
2438
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center justify-end gap-1.5", children: [
|
|
2439
|
+
testSupported && /* @__PURE__ */ jsx9(
|
|
2361
2440
|
"button",
|
|
2362
2441
|
{
|
|
2363
2442
|
type: "button",
|
|
@@ -2368,7 +2447,7 @@ function CredentialForm({
|
|
|
2368
2447
|
children: testing ? "Testing\u2026" : "Test connection"
|
|
2369
2448
|
}
|
|
2370
2449
|
),
|
|
2371
|
-
/* @__PURE__ */
|
|
2450
|
+
/* @__PURE__ */ jsx9(
|
|
2372
2451
|
"button",
|
|
2373
2452
|
{
|
|
2374
2453
|
type: "submit",
|
|
@@ -2389,15 +2468,15 @@ function CredentialTestResult({
|
|
|
2389
2468
|
result
|
|
2390
2469
|
}) {
|
|
2391
2470
|
if (result.valid === true) {
|
|
2392
|
-
return /* @__PURE__ */
|
|
2471
|
+
return /* @__PURE__ */ jsxs8(
|
|
2393
2472
|
"div",
|
|
2394
2473
|
{
|
|
2395
2474
|
role: "status",
|
|
2396
2475
|
"data-testid": `connector-credential-test-pass-${entry.slug}`,
|
|
2397
2476
|
className: "rounded-md border border-primary/30 bg-primary/5 px-2 py-1 text-xs",
|
|
2398
2477
|
children: [
|
|
2399
|
-
/* @__PURE__ */
|
|
2400
|
-
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(
|
|
2401
2480
|
"p",
|
|
2402
2481
|
{
|
|
2403
2482
|
"data-testid": `connector-credential-permissions-${entry.slug}`,
|
|
@@ -2410,7 +2489,7 @@ function CredentialTestResult({
|
|
|
2410
2489
|
);
|
|
2411
2490
|
}
|
|
2412
2491
|
if (result.valid === false) {
|
|
2413
|
-
return /* @__PURE__ */
|
|
2492
|
+
return /* @__PURE__ */ jsx9(
|
|
2414
2493
|
"p",
|
|
2415
2494
|
{
|
|
2416
2495
|
role: "alert",
|
|
@@ -2420,7 +2499,7 @@ function CredentialTestResult({
|
|
|
2420
2499
|
}
|
|
2421
2500
|
);
|
|
2422
2501
|
}
|
|
2423
|
-
return /* @__PURE__ */
|
|
2502
|
+
return /* @__PURE__ */ jsx9(
|
|
2424
2503
|
"p",
|
|
2425
2504
|
{
|
|
2426
2505
|
role: "status",
|
|
@@ -2483,13 +2562,13 @@ function ManageSharing({
|
|
|
2483
2562
|
},
|
|
2484
2563
|
[load, revokeGrant]
|
|
2485
2564
|
);
|
|
2486
|
-
return /* @__PURE__ */
|
|
2565
|
+
return /* @__PURE__ */ jsxs8(
|
|
2487
2566
|
"div",
|
|
2488
2567
|
{
|
|
2489
2568
|
"data-testid": `connector-sharing-panel-${entry.slug}`,
|
|
2490
2569
|
className: "mt-2 flex flex-col gap-2 rounded-md border border-border bg-foreground/5 p-2",
|
|
2491
2570
|
children: [
|
|
2492
|
-
grants === null && !error && /* @__PURE__ */
|
|
2571
|
+
grants === null && !error && /* @__PURE__ */ jsx9(
|
|
2493
2572
|
"p",
|
|
2494
2573
|
{
|
|
2495
2574
|
"data-testid": `connector-grants-loading-${entry.slug}`,
|
|
@@ -2497,7 +2576,7 @@ function ManageSharing({
|
|
|
2497
2576
|
children: "Loading sharing\u2026"
|
|
2498
2577
|
}
|
|
2499
2578
|
),
|
|
2500
|
-
error && /* @__PURE__ */
|
|
2579
|
+
error && /* @__PURE__ */ jsx9(
|
|
2501
2580
|
"p",
|
|
2502
2581
|
{
|
|
2503
2582
|
role: "alert",
|
|
@@ -2506,7 +2585,7 @@ function ManageSharing({
|
|
|
2506
2585
|
children: error
|
|
2507
2586
|
}
|
|
2508
2587
|
),
|
|
2509
|
-
grants !== null && grants.length === 0 && /* @__PURE__ */
|
|
2588
|
+
grants !== null && grants.length === 0 && /* @__PURE__ */ jsx9(
|
|
2510
2589
|
"p",
|
|
2511
2590
|
{
|
|
2512
2591
|
"data-testid": `connector-grants-empty-${entry.slug}`,
|
|
@@ -2514,21 +2593,21 @@ function ManageSharing({
|
|
|
2514
2593
|
children: "Not shared with anyone yet."
|
|
2515
2594
|
}
|
|
2516
2595
|
),
|
|
2517
|
-
grants?.map((grant) => /* @__PURE__ */
|
|
2596
|
+
grants?.map((grant) => /* @__PURE__ */ jsxs8(
|
|
2518
2597
|
"div",
|
|
2519
2598
|
{
|
|
2520
2599
|
"data-testid": `connector-grant-${entry.slug}-${grant.id}`,
|
|
2521
2600
|
className: "flex items-center justify-between gap-2 text-xs",
|
|
2522
2601
|
children: [
|
|
2523
|
-
/* @__PURE__ */
|
|
2602
|
+
/* @__PURE__ */ jsxs8("span", { className: "truncate", children: [
|
|
2524
2603
|
grant.grantee_name || grant.grantee_id,
|
|
2525
|
-
/* @__PURE__ */
|
|
2604
|
+
/* @__PURE__ */ jsxs8("span", { className: "text-muted-foreground", children: [
|
|
2526
2605
|
" ",
|
|
2527
2606
|
"\xB7 ",
|
|
2528
2607
|
grant.grantee_type === "role" ? "Role" : "User"
|
|
2529
2608
|
] })
|
|
2530
2609
|
] }),
|
|
2531
|
-
/* @__PURE__ */
|
|
2610
|
+
/* @__PURE__ */ jsx9(
|
|
2532
2611
|
"button",
|
|
2533
2612
|
{
|
|
2534
2613
|
type: "button",
|
|
@@ -2543,8 +2622,8 @@ function ManageSharing({
|
|
|
2543
2622
|
},
|
|
2544
2623
|
grant.id
|
|
2545
2624
|
)),
|
|
2546
|
-
/* @__PURE__ */
|
|
2547
|
-
/* @__PURE__ */
|
|
2625
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-1.5", children: [
|
|
2626
|
+
/* @__PURE__ */ jsxs8(
|
|
2548
2627
|
"select",
|
|
2549
2628
|
{
|
|
2550
2629
|
"data-testid": `connector-grant-type-${entry.slug}`,
|
|
@@ -2557,12 +2636,12 @@ function ManageSharing({
|
|
|
2557
2636
|
disabled: busy,
|
|
2558
2637
|
className: "rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50",
|
|
2559
2638
|
children: [
|
|
2560
|
-
/* @__PURE__ */
|
|
2561
|
-
/* @__PURE__ */
|
|
2639
|
+
/* @__PURE__ */ jsx9("option", { value: "user", children: "User" }),
|
|
2640
|
+
/* @__PURE__ */ jsx9("option", { value: "role", children: "Role" })
|
|
2562
2641
|
]
|
|
2563
2642
|
}
|
|
2564
2643
|
),
|
|
2565
|
-
granteeType === "user" ? /* @__PURE__ */
|
|
2644
|
+
granteeType === "user" ? /* @__PURE__ */ jsx9(
|
|
2566
2645
|
"input",
|
|
2567
2646
|
{
|
|
2568
2647
|
"data-testid": `connector-grant-grantee-${entry.slug}`,
|
|
@@ -2573,7 +2652,7 @@ function ManageSharing({
|
|
|
2573
2652
|
disabled: busy,
|
|
2574
2653
|
className: "min-w-0 flex-1 rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50"
|
|
2575
2654
|
}
|
|
2576
|
-
) : /* @__PURE__ */
|
|
2655
|
+
) : /* @__PURE__ */ jsxs8(
|
|
2577
2656
|
"select",
|
|
2578
2657
|
{
|
|
2579
2658
|
"data-testid": `connector-grant-role-${entry.slug}`,
|
|
@@ -2583,12 +2662,12 @@ function ManageSharing({
|
|
|
2583
2662
|
disabled: busy,
|
|
2584
2663
|
className: "min-w-0 flex-1 rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50",
|
|
2585
2664
|
children: [
|
|
2586
|
-
/* @__PURE__ */
|
|
2587
|
-
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))
|
|
2588
2667
|
]
|
|
2589
2668
|
}
|
|
2590
2669
|
),
|
|
2591
|
-
/* @__PURE__ */
|
|
2670
|
+
/* @__PURE__ */ jsx9(
|
|
2592
2671
|
"button",
|
|
2593
2672
|
{
|
|
2594
2673
|
type: "button",
|
|
@@ -2609,6 +2688,7 @@ export {
|
|
|
2609
2688
|
BrandGlyph,
|
|
2610
2689
|
ConnectorPicker,
|
|
2611
2690
|
ContextSwitcher,
|
|
2691
|
+
DEFAULT_LEGAL_LINKS,
|
|
2612
2692
|
Flyout,
|
|
2613
2693
|
GLYPH_CANVAS_FILL,
|
|
2614
2694
|
HOVER_CLOSE_DELAY_MS,
|
|
@@ -2620,6 +2700,7 @@ export {
|
|
|
2620
2700
|
MARK_WEIGHT,
|
|
2621
2701
|
REEVE_ACCENT,
|
|
2622
2702
|
ResponsiveHeader,
|
|
2703
|
+
SiteFooter,
|
|
2623
2704
|
WORDMARK_WEIGHT,
|
|
2624
2705
|
accessLabel,
|
|
2625
2706
|
deriveFallbackLadder,
|