@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/dist/index.js CHANGED
@@ -35,6 +35,7 @@ __export(src_exports, {
35
35
  BrandGlyph: () => BrandGlyph,
36
36
  ConnectorPicker: () => ConnectorPicker,
37
37
  ContextSwitcher: () => ContextSwitcher,
38
+ DEFAULT_LEGAL_LINKS: () => DEFAULT_LEGAL_LINKS,
38
39
  Flyout: () => Flyout,
39
40
  GLYPH_CANVAS_FILL: () => GLYPH_CANVAS_FILL,
40
41
  HOVER_CLOSE_DELAY_MS: () => HOVER_CLOSE_DELAY_MS,
@@ -46,6 +47,7 @@ __export(src_exports, {
46
47
  MARK_WEIGHT: () => MARK_WEIGHT,
47
48
  REEVE_ACCENT: () => REEVE_ACCENT,
48
49
  ResponsiveHeader: () => ResponsiveHeader,
50
+ SiteFooter: () => SiteFooter,
49
51
  WORDMARK_WEIGHT: () => WORDMARK_WEIGHT,
50
52
  accessLabel: () => accessLabel,
51
53
  deriveFallbackLadder: () => deriveFallbackLadder,
@@ -476,12 +478,88 @@ function useResponsivePlaceholder(desktop, mobile) {
476
478
  return isDesktop ? desktop : mobile ?? desktop;
477
479
  }
478
480
 
481
+ // src/site-footer.tsx
482
+ var import_jsx_runtime3 = require("react/jsx-runtime");
483
+ var DEFAULT_LEGAL_LINKS = [
484
+ { href: "/privacy", label: "Privacy" },
485
+ { href: "/terms", label: "Terms" },
486
+ { href: "/cookies", label: "Cookies" }
487
+ ];
488
+ var LINK_CLASS = "inline-flex items-center justify-center transition-colors hover:text-foreground";
489
+ function SiteFooter({
490
+ brandName,
491
+ links = [],
492
+ legal = DEFAULT_LEGAL_LINKS,
493
+ showBadge,
494
+ linkComponent,
495
+ className
496
+ }) {
497
+ const LinkEl = linkComponent ?? "a";
498
+ const badge = showBadge !== false;
499
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("footer", { className: cn("border-t border-border", className), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "mx-auto max-w-6xl px-6 py-8", children: [
500
+ links.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
501
+ "nav",
502
+ {
503
+ "aria-label": `${brandName} pages`,
504
+ className: "flex flex-wrap gap-x-5 gap-y-2 border-b border-border/60 pb-5 text-xs",
505
+ children: links.map((link) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
506
+ LinkEl,
507
+ {
508
+ href: link.href,
509
+ className: cn(LINK_CLASS, "text-muted-foreground"),
510
+ style: TOUCH_TARGET_STYLE,
511
+ children: link.label
512
+ },
513
+ link.href
514
+ ))
515
+ }
516
+ ) : null,
517
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
518
+ "div",
519
+ {
520
+ className: cn(
521
+ "flex flex-col items-start justify-between gap-2 text-xs text-muted-foreground sm:flex-row sm:items-center",
522
+ links.length > 0 && "pt-5"
523
+ ),
524
+ children: [
525
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { children: [
526
+ "\xA9 ",
527
+ (/* @__PURE__ */ new Date()).getFullYear(),
528
+ " ",
529
+ brandName
530
+ ] }),
531
+ legal.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("nav", { "aria-label": "Legal", className: "flex flex-wrap items-center gap-x-4", children: legal.map((link) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
532
+ LinkEl,
533
+ {
534
+ href: link.href,
535
+ className: LINK_CLASS,
536
+ style: TOUCH_TARGET_STYLE,
537
+ children: link.label
538
+ },
539
+ link.href
540
+ )) }) : null,
541
+ badge ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
542
+ "a",
543
+ {
544
+ href: "https://www.meetreeve.com",
545
+ rel: "noopener",
546
+ className: "inline-flex items-center text-[11px] text-muted-foreground transition-colors hover:text-foreground",
547
+ style: TOUCH_TARGET_STYLE,
548
+ children: "Made with Reeve"
549
+ }
550
+ ) : null
551
+ ]
552
+ }
553
+ )
554
+ ] }) });
555
+ }
556
+
479
557
  // src/info-tip.tsx
480
558
  var import_popover = require("@base-ui/react/popover");
481
- var import_jsx_runtime3 = require("react/jsx-runtime");
559
+ var import_jsx_runtime4 = require("react/jsx-runtime");
482
560
  function InfoTip({ children, label = "More information", side = "top", align = "center", className }) {
483
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_popover.Popover.Root, { children: [
484
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
561
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_popover.Popover.Root, { children: [
562
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
485
563
  import_popover.Popover.Trigger,
486
564
  {
487
565
  openOnHover: true,
@@ -493,7 +571,7 @@ function InfoTip({ children, label = "More information", side = "top", align = "
493
571
  "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",
494
572
  className
495
573
  ),
496
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
574
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
497
575
  "span",
498
576
  {
499
577
  "aria-hidden": "true",
@@ -503,12 +581,12 @@ function InfoTip({ children, label = "More information", side = "top", align = "
503
581
  )
504
582
  }
505
583
  ),
506
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_popover.Popover.Positioner, { side, align, sideOffset: 8, collisionPadding: 16, className: "z-50", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
584
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.Popover.Positioner, { side, align, sideOffset: 8, collisionPadding: 16, className: "z-50", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
507
585
  import_popover.Popover.Popup,
508
586
  {
509
587
  "aria-label": label,
510
588
  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",
511
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_popover.Popover.Description, { children })
589
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.Popover.Description, { children })
512
590
  }
513
591
  ) }) })
514
592
  ] });
@@ -796,7 +874,7 @@ function useLadderRung(ladder, containerRef, options = {}) {
796
874
 
797
875
  // src/ladder/flyout.tsx
798
876
  var import_react7 = require("react");
799
- var import_jsx_runtime4 = require("react/jsx-runtime");
877
+ var import_jsx_runtime5 = require("react/jsx-runtime");
800
878
  var PANEL_GAP = 4;
801
879
  var HOVER_CLOSE_DELAY_MS = 300;
802
880
  var HOVER_SLOP = 16;
@@ -896,7 +974,7 @@ function Flyout({
896
974
  (0, import_react7.useEffect)(() => {
897
975
  if (clickOpen && panelPosition) firstItemRef.current?.focus();
898
976
  }, [clickOpen, panelPosition]);
899
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
977
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
900
978
  "div",
901
979
  {
902
980
  "data-testid": "ladder-flyout",
@@ -904,7 +982,7 @@ function Flyout({
904
982
  onMouseEnter: hoverEnter,
905
983
  onMouseLeave: hoverLeave,
906
984
  children: [
907
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
985
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
908
986
  "button",
909
987
  {
910
988
  ref: triggerRef,
@@ -930,7 +1008,7 @@ function Flyout({
930
1008
  active ? "bg-sidebar-accent text-sidebar-accent-foreground" : "text-sidebar-foreground/70 hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground"
931
1009
  ),
932
1010
  children: [
933
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1011
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
934
1012
  Icon,
935
1013
  {
936
1014
  className: cn(
@@ -941,7 +1019,7 @@ function Flyout({
941
1019
  "aria-hidden": "true"
942
1020
  }
943
1021
  ),
944
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: cn("truncate", collapsed && "sr-only"), children: label })
1022
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: cn("truncate", collapsed && "sr-only"), children: label })
945
1023
  ]
946
1024
  }
947
1025
  ),
@@ -950,7 +1028,7 @@ function Flyout({
950
1028
  // the trigger's right edge (bridging PANEL_GAP) and pads HOVER_SLOP
951
1029
  // around the panel; the panel itself renders exactly where it did.
952
1030
  // `panelRef` lives here so a click in the slop isn't an "outside" one.
953
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1031
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
954
1032
  "div",
955
1033
  {
956
1034
  ref: panelRef,
@@ -962,7 +1040,7 @@ function Flyout({
962
1040
  left: panelPosition.left - PANEL_GAP,
963
1041
  padding: `${HOVER_SLOP}px ${HOVER_SLOP}px ${HOVER_SLOP}px ${PANEL_GAP}px`
964
1042
  },
965
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1043
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
966
1044
  "div",
967
1045
  {
968
1046
  id: panelId,
@@ -982,7 +1060,7 @@ function Flyout({
982
1060
  // silently loses the focus-on-open behavior (a console ref
983
1061
  // warning, not a crash) — same tradeoff any Link-injection
984
1062
  // pattern accepts; not a regression from today's plain `<a>`.
985
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1063
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
986
1064
  LinkEl,
987
1065
  {
988
1066
  ref: i === 0 ? firstItemRef : void 0,
@@ -1008,7 +1086,7 @@ function Flyout({
1008
1086
  }
1009
1087
 
1010
1088
  // src/app-sidebar.tsx
1011
- var import_jsx_runtime5 = require("react/jsx-runtime");
1089
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1012
1090
  var DEFAULT_COLLAPSE_STORAGE_KEY = "reeve-sidebar-collapsed";
1013
1091
  var COLLAPSED_WIDTH_CLASS = "w-14";
1014
1092
  var EXPANDED_WIDTH_CLASS = "w-64";
@@ -1026,7 +1104,7 @@ function NavLink({
1026
1104
  }) {
1027
1105
  const Icon = resolveIcon(icon);
1028
1106
  const LinkEl = linkComponent ?? "a";
1029
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1107
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1030
1108
  LinkEl,
1031
1109
  {
1032
1110
  href,
@@ -1046,7 +1124,7 @@ function NavLink({
1046
1124
  active ? "bg-sidebar-accent text-sidebar-accent-foreground" : "text-sidebar-foreground/70 hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground"
1047
1125
  ),
1048
1126
  children: [
1049
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1127
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1050
1128
  Icon,
1051
1129
  {
1052
1130
  className: cn(
@@ -1057,7 +1135,7 @@ function NavLink({
1057
1135
  "aria-hidden": "true"
1058
1136
  }
1059
1137
  ),
1060
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: cn("truncate", collapsed && "sr-only"), children: label })
1138
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: cn("truncate", collapsed && "sr-only"), children: label })
1061
1139
  ]
1062
1140
  }
1063
1141
  );
@@ -1090,12 +1168,17 @@ function AppSidebar({
1090
1168
  const mobileCloseRef = (0, import_react8.useRef)(null);
1091
1169
  const [collapsed, setCollapsed] = (0, import_react8.useState)(defaultCollapsed);
1092
1170
  const [collapseHydrated, setCollapseHydrated] = (0, import_react8.useState)(false);
1171
+ const collapsedRef = (0, import_react8.useRef)(defaultCollapsed);
1172
+ function applyCollapsed(next) {
1173
+ collapsedRef.current = next;
1174
+ setCollapsed(next);
1175
+ }
1093
1176
  (0, import_react8.useEffect)(() => {
1094
1177
  if (!collapsible) return;
1095
1178
  try {
1096
1179
  const stored = localStorage.getItem(storageKey);
1097
- if (stored === "true") setCollapsed(true);
1098
- else if (stored === "false") setCollapsed(false);
1180
+ if (stored === "true") applyCollapsed(true);
1181
+ else if (stored === "false") applyCollapsed(false);
1099
1182
  } catch {
1100
1183
  }
1101
1184
  setCollapseHydrated(true);
@@ -1108,11 +1191,9 @@ function AppSidebar({
1108
1191
  }
1109
1192
  }, [collapsed, collapseHydrated, collapsible, storageKey]);
1110
1193
  function handleToggleCollapsed() {
1111
- setCollapsed((prev) => {
1112
- const next = !prev;
1113
- onCollapsedChange?.(next);
1114
- return next;
1115
- });
1194
+ const next = !collapsedRef.current;
1195
+ applyCollapsed(next);
1196
+ onCollapsedChange?.(next);
1116
1197
  }
1117
1198
  const [openFlyoutId, setOpenFlyoutId] = (0, import_react8.useState)(null);
1118
1199
  const handleFlyoutOpenChange = (0, import_react8.useCallback)((id, isOpen) => {
@@ -1145,7 +1226,7 @@ function AppSidebar({
1145
1226
  function renderAppItem(item, testIdPrefix, collapsedRow = false) {
1146
1227
  const def = moduleMap.get(item.moduleId);
1147
1228
  if (!def) return null;
1148
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1229
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1149
1230
  NavLink,
1150
1231
  {
1151
1232
  href: def.href,
@@ -1171,7 +1252,7 @@ function AppSidebar({
1171
1252
  };
1172
1253
  });
1173
1254
  const active = children.some((c) => c.active);
1174
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1255
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1175
1256
  Flyout,
1176
1257
  {
1177
1258
  label: item.label,
@@ -1190,7 +1271,7 @@ function AppSidebar({
1190
1271
  function brandBlockFor(collapsedMode) {
1191
1272
  if (!brand) return null;
1192
1273
  if (collapsedMode) {
1193
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1274
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1194
1275
  "a",
1195
1276
  {
1196
1277
  href: brand.href,
@@ -1198,28 +1279,28 @@ function AppSidebar({
1198
1279
  title: brand.label,
1199
1280
  className: "flex items-center justify-center border-b border-sidebar-border px-1 py-4",
1200
1281
  children: [
1201
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "sr-only", children: brand.label }),
1202
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BrandGlyph, { brand: { name: brand.label }, size: "xl" })
1282
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "sr-only", children: brand.label }),
1283
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(BrandGlyph, { brand: { name: brand.label }, size: "xl" })
1203
1284
  ]
1204
1285
  }
1205
1286
  );
1206
1287
  }
1207
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1288
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1208
1289
  "a",
1209
1290
  {
1210
1291
  href: brand.href,
1211
1292
  "data-testid": "app-sidebar-brand",
1212
1293
  className: "flex items-center gap-2.5 border-b border-sidebar-border px-5 py-4 text-sidebar-foreground",
1213
1294
  children: [
1214
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "grid size-7 place-items-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "font-mono text-sm font-bold", children: (brand.label[0] ?? "r").toUpperCase() }) }),
1215
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "truncate text-sm font-semibold tracking-tight", children: brand.label })
1295
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "grid size-7 place-items-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "font-mono text-sm font-bold", children: (brand.label[0] ?? "r").toUpperCase() }) }),
1296
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "truncate text-sm font-semibold tracking-tight", children: brand.label })
1216
1297
  ]
1217
1298
  }
1218
1299
  );
1219
1300
  }
1220
1301
  function topItemBlock(testId, collapsedMode = false) {
1221
1302
  if (!topItem) return null;
1222
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: cn("px-3 pt-4", collapsedMode && "flex justify-center px-0"), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1303
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: cn("px-3 pt-4", collapsedMode && "flex justify-center px-0"), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1223
1304
  NavLink,
1224
1305
  {
1225
1306
  href: topItem.href,
@@ -1232,8 +1313,8 @@ function AppSidebar({
1232
1313
  }
1233
1314
  ) });
1234
1315
  }
1235
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
1236
- !isDesktop && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1316
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1317
+ !isDesktop && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1237
1318
  "button",
1238
1319
  {
1239
1320
  ref: mobileTriggerRef,
@@ -1245,11 +1326,11 @@ function AppSidebar({
1245
1326
  onClick: () => setMobileOpen((v) => !v),
1246
1327
  style: TOUCH_TARGET_STYLE,
1247
1328
  className: "flex items-center justify-center rounded-md border border-border p-2 text-foreground",
1248
- children: mobileOpen ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.X, { className: "h-5 w-5", "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.Menu, { className: "h-5 w-5", "aria-hidden": "true" })
1329
+ children: mobileOpen ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.X, { className: "h-5 w-5", "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.Menu, { className: "h-5 w-5", "aria-hidden": "true" })
1249
1330
  }
1250
1331
  ),
1251
- !isDesktop && mobileOpen && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "fixed inset-0 z-50", children: [
1252
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1332
+ !isDesktop && mobileOpen && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "fixed inset-0 z-50", children: [
1333
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1253
1334
  "div",
1254
1335
  {
1255
1336
  "data-testid": "app-sidebar-mobile-scrim",
@@ -1258,7 +1339,7 @@ function AppSidebar({
1258
1339
  onClick: () => setMobileOpen(false)
1259
1340
  }
1260
1341
  ),
1261
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1342
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1262
1343
  "div",
1263
1344
  {
1264
1345
  ref: mobileDrawerRef,
@@ -1269,7 +1350,7 @@ function AppSidebar({
1269
1350
  "data-testid": "app-sidebar-mobile-drawer",
1270
1351
  className: "absolute inset-y-0 left-0 flex w-72 flex-col overflow-y-auto border-r border-sidebar-border bg-sidebar",
1271
1352
  children: [
1272
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "sticky top-0 z-10 flex justify-end bg-sidebar p-2", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1353
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "sticky top-0 z-10 flex justify-end bg-sidebar p-2", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1273
1354
  "button",
1274
1355
  {
1275
1356
  ref: mobileCloseRef,
@@ -1279,19 +1360,19 @@ function AppSidebar({
1279
1360
  onClick: () => setMobileOpen(false),
1280
1361
  style: TOUCH_TARGET_STYLE,
1281
1362
  className: "flex items-center justify-center rounded-md p-2 text-sidebar-foreground/70 hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground",
1282
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.X, { className: "h-5 w-5", "aria-hidden": "true" })
1363
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.X, { className: "h-5 w-5", "aria-hidden": "true" })
1283
1364
  }
1284
1365
  ) }),
1285
1366
  brandBlockFor(false),
1286
1367
  topItemBlock("app-sidebar-mobile-top-item"),
1287
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("nav", { className: "flex-1 px-3 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex flex-col gap-0.5", children: rung0.items.map(
1368
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("nav", { className: "flex-1 px-3 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex flex-col gap-0.5", children: rung0.items.map(
1288
1369
  (item) => item.type === "app" ? renderAppItem(item, "app-sidebar-mobile-navlink") : null
1289
1370
  ) }) })
1290
1371
  ]
1291
1372
  }
1292
1373
  )
1293
1374
  ] }),
1294
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1375
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1295
1376
  "aside",
1296
1377
  {
1297
1378
  "data-testid": "app-sidebar-desktop",
@@ -1306,18 +1387,18 @@ function AppSidebar({
1306
1387
  children: [
1307
1388
  brandBlockFor(collapsed),
1308
1389
  topItemBlock("app-sidebar-top-item", collapsed),
1309
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1390
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1310
1391
  "nav",
1311
1392
  {
1312
1393
  ref: containerRef,
1313
1394
  "data-testid": "app-sidebar-nav",
1314
1395
  className: "flex-1 overflow-y-auto px-3 py-4",
1315
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex flex-col gap-0.5", children: rung.items.map(
1396
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex flex-col gap-0.5", children: rung.items.map(
1316
1397
  (item) => item.type === "app" ? renderAppItem(item, "app-sidebar-navlink", collapsed) : renderGroupItem(item, collapsed)
1317
1398
  ) })
1318
1399
  }
1319
1400
  ),
1320
- collapsible && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "border-t border-sidebar-border px-2 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1401
+ collapsible && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "border-t border-sidebar-border px-2 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1321
1402
  "button",
1322
1403
  {
1323
1404
  type: "button",
@@ -1331,8 +1412,8 @@ function AppSidebar({
1331
1412
  collapsed && "justify-center px-0"
1332
1413
  ),
1333
1414
  children: [
1334
- collapsed ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.PanelLeftOpen, { className: "size-4 shrink-0", strokeWidth: 1.5, "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.PanelLeftClose, { className: "size-4 shrink-0", strokeWidth: 1.5, "aria-hidden": "true" }),
1335
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: cn("truncate", collapsed && "sr-only"), children: collapsed ? "Expand sidebar" : "Collapse sidebar" })
1415
+ collapsed ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.PanelLeftOpen, { className: "size-4 shrink-0", strokeWidth: 1.5, "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.PanelLeftClose, { className: "size-4 shrink-0", strokeWidth: 1.5, "aria-hidden": "true" }),
1416
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: cn("truncate", collapsed && "sr-only"), children: collapsed ? "Expand sidebar" : "Collapse sidebar" })
1336
1417
  ]
1337
1418
  }
1338
1419
  ) })
@@ -1375,19 +1456,19 @@ function groupItemsByOrg(rows, get) {
1375
1456
 
1376
1457
  // src/lib/dropdown-menu.tsx
1377
1458
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
1378
- var import_jsx_runtime6 = require("react/jsx-runtime");
1459
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1379
1460
  function DropdownMenu(props) {
1380
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
1461
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
1381
1462
  }
1382
1463
  function DropdownMenuTrigger(props) {
1383
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
1464
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
1384
1465
  }
1385
1466
  function DropdownMenuContent({
1386
1467
  className,
1387
1468
  sideOffset = 4,
1388
1469
  ...props
1389
1470
  }) {
1390
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1471
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1391
1472
  DropdownMenuPrimitive.Content,
1392
1473
  {
1393
1474
  "data-slot": "dropdown-menu-content",
@@ -1404,7 +1485,7 @@ function DropdownMenuItem({
1404
1485
  className,
1405
1486
  ...props
1406
1487
  }) {
1407
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1488
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1408
1489
  DropdownMenuPrimitive.Item,
1409
1490
  {
1410
1491
  "data-slot": "dropdown-menu-item",
@@ -1420,7 +1501,7 @@ function DropdownMenuLabel({
1420
1501
  className,
1421
1502
  ...props
1422
1503
  }) {
1423
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1504
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1424
1505
  DropdownMenuPrimitive.Label,
1425
1506
  {
1426
1507
  "data-slot": "dropdown-menu-label",
@@ -1431,7 +1512,7 @@ function DropdownMenuLabel({
1431
1512
  }
1432
1513
 
1433
1514
  // src/context-switcher.tsx
1434
- var import_jsx_runtime7 = require("react/jsx-runtime");
1515
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1435
1516
  function groupByOrg(items) {
1436
1517
  return groupItemsByOrg(items, {
1437
1518
  orgId: (it) => it.orgId,
@@ -1463,29 +1544,29 @@ function ContextSwitcher({
1463
1544
  const active = items.find((it) => it.refId === activeRefId) ?? null;
1464
1545
  const groups = groupByOrg(items);
1465
1546
  const showOrgHeaders = groups.length > 1;
1466
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(DropdownMenu, { children: [
1467
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownMenuTrigger, { asChild: true, children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1547
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(DropdownMenu, { children: [
1548
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuTrigger, { asChild: true, children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1468
1549
  "button",
1469
1550
  {
1470
1551
  type: "button",
1471
1552
  title: active?.name || placeholder,
1472
1553
  "aria-label": active?.name || placeholder,
1473
1554
  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",
1474
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(BrandGlyph, { brand: toBrand(active ?? { name: "" }), size: "lg" })
1555
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BrandGlyph, { brand: toBrand(active ?? { name: "" }), size: "lg" })
1475
1556
  }
1476
- ) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1557
+ ) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1477
1558
  "button",
1478
1559
  {
1479
1560
  type: "button",
1480
1561
  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",
1481
1562
  children: [
1482
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(BrandGlyph, { brand: toBrand(active ?? { name: "" }) }),
1483
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "max-w-[140px] truncate text-sidebar-accent-foreground", children: active?.name || placeholder }),
1484
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.ChevronDown, { className: "h-3.5 w-3.5 text-sidebar-foreground/70 transition-transform group-data-[state=open]:rotate-180" })
1563
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BrandGlyph, { brand: toBrand(active ?? { name: "" }) }),
1564
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "max-w-[140px] truncate text-sidebar-accent-foreground", children: active?.name || placeholder }),
1565
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.ChevronDown, { className: "h-3.5 w-3.5 text-sidebar-foreground/70 transition-transform group-data-[state=open]:rotate-180" })
1485
1566
  ]
1486
1567
  }
1487
1568
  ) }),
1488
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1569
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1489
1570
  DropdownMenuContent,
1490
1571
  {
1491
1572
  side,
@@ -1494,13 +1575,13 @@ function ContextSwitcher({
1494
1575
  collisionPadding: 8,
1495
1576
  className: cn("w-60 overflow-hidden p-0", contentClassName),
1496
1577
  children: [
1497
- groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
1498
- showOrgHeaders && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownMenuLabel, { className: "px-3 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground", children: group.orgName ?? "Other" }),
1499
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: cn(showOrgHeaders && "ml-5 border-l border-border/60"), children: group.items.map((item, i) => {
1578
+ groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
1579
+ showOrgHeaders && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuLabel, { className: "px-3 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground", children: group.orgName ?? "Other" }),
1580
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: cn(showOrgHeaders && "ml-5 border-l border-border/60"), children: group.items.map((item, i) => {
1500
1581
  const isActive = item.refId === activeRefId;
1501
1582
  const next = group.items[i + 1];
1502
1583
  const endsPinned = item.pinned === true && next !== void 0 && next.pinned !== true;
1503
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1584
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1504
1585
  DropdownMenuItem,
1505
1586
  {
1506
1587
  "data-active": isActive || void 0,
@@ -1512,8 +1593,8 @@ function ContextSwitcher({
1512
1593
  endsPinned && "border-b border-border/60"
1513
1594
  ),
1514
1595
  children: [
1515
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(BrandGlyph, { brand: toBrand(item), subtle: true }),
1516
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1596
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BrandGlyph, { brand: toBrand(item), subtle: true }),
1597
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1517
1598
  "span",
1518
1599
  {
1519
1600
  className: cn(
@@ -1523,18 +1604,18 @@ function ContextSwitcher({
1523
1604
  children: item.name
1524
1605
  }
1525
1606
  ),
1526
- item.kindLabel && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
1607
+ item.kindLabel && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
1527
1608
  " ",
1528
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "shrink-0 text-[11px] text-muted-foreground", children: item.kindLabel })
1609
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "shrink-0 text-[11px] text-muted-foreground", children: item.kindLabel })
1529
1610
  ] }),
1530
- isActive && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.Check, { className: "size-3.5 text-emerald-500" })
1611
+ isActive && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Check, { className: "size-3.5 text-emerald-500" })
1531
1612
  ]
1532
1613
  },
1533
1614
  item.refId
1534
1615
  );
1535
1616
  }) })
1536
1617
  ] }, group.orgId ?? "unattributed")),
1537
- footer && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "sticky bottom-0 border-t border-border bg-popover", children: footer })
1618
+ footer && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "sticky bottom-0 border-t border-border bg-popover", children: footer })
1538
1619
  ]
1539
1620
  }
1540
1621
  )
@@ -1543,7 +1624,7 @@ function ContextSwitcher({
1543
1624
 
1544
1625
  // src/connector-picker.tsx
1545
1626
  var import_react9 = require("react");
1546
- var import_jsx_runtime8 = require("react/jsx-runtime");
1627
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1547
1628
  function accessLabel(access) {
1548
1629
  return access === "read" ? "Read" : "Read + write";
1549
1630
  }
@@ -1804,35 +1885,35 @@ function ConnectorPicker({
1804
1885
  );
1805
1886
  const ownEntries = entries?.filter((entry) => !isSharedWithViewer(entry)) ?? null;
1806
1887
  const sharedEntries = entries?.filter(isSharedWithViewer) ?? [];
1807
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { "data-testid": "connector-picker", "data-layout": layout, className: "flex flex-col gap-4", children: [
1808
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: containerClassName, children: [
1809
- entries === null && !loadError && Array.from({ length: SKELETON_COUNT }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1888
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { "data-testid": "connector-picker", "data-layout": layout, className: "flex flex-col gap-4", children: [
1889
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: containerClassName, children: [
1890
+ entries === null && !loadError && Array.from({ length: SKELETON_COUNT }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1810
1891
  "div",
1811
1892
  {
1812
1893
  "data-testid": "connector-picker-skeleton-item",
1813
1894
  "aria-hidden": "true",
1814
1895
  className: "flex items-center gap-3 rounded-lg border border-border p-3",
1815
1896
  children: [
1816
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "h-8 w-8 shrink-0 animate-pulse rounded bg-foreground/10" }),
1817
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "h-3 flex-1 animate-pulse rounded bg-foreground/10" })
1897
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "h-8 w-8 shrink-0 animate-pulse rounded bg-foreground/10" }),
1898
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "h-3 flex-1 animate-pulse rounded bg-foreground/10" })
1818
1899
  ]
1819
1900
  },
1820
1901
  i
1821
1902
  )),
1822
- loadError && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1903
+ loadError && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1823
1904
  "div",
1824
1905
  {
1825
1906
  role: "alert",
1826
1907
  "data-testid": "connector-picker-load-error",
1827
1908
  className: "flex items-center justify-between gap-3 rounded-lg border border-destructive/30 bg-destructive/5 p-3 text-sm text-destructive",
1828
1909
  children: [
1829
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: loadError }),
1830
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { type: "button", onClick: () => void load(), className: "shrink-0 underline", children: "Retry" })
1910
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: loadError }),
1911
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { type: "button", onClick: () => void load(), className: "shrink-0 underline", children: "Retry" })
1831
1912
  ]
1832
1913
  }
1833
1914
  ),
1834
- entries !== null && entries.length === 0 && !loadError && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { "data-testid": "connector-picker-empty", className: "text-sm text-muted-foreground", children: "No connections available." }),
1835
- ownEntries?.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1915
+ entries !== null && entries.length === 0 && !loadError && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { "data-testid": "connector-picker-empty", className: "text-sm text-muted-foreground", children: "No connections available." }),
1916
+ ownEntries?.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1836
1917
  ConnectorTile,
1837
1918
  {
1838
1919
  entry,
@@ -1852,9 +1933,9 @@ function ConnectorPicker({
1852
1933
  entry.slug
1853
1934
  ))
1854
1935
  ] }),
1855
- sharedEntries.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { "data-testid": "connector-picker-shared-with-me", className: "flex flex-col gap-2", children: [
1856
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: "Shared with me" }),
1857
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: containerClassName, children: sharedEntries.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1936
+ sharedEntries.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("section", { "data-testid": "connector-picker-shared-with-me", className: "flex flex-col gap-2", children: [
1937
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h3", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: "Shared with me" }),
1938
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: containerClassName, children: sharedEntries.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1858
1939
  ConnectorTile,
1859
1940
  {
1860
1941
  entry,
@@ -1913,7 +1994,7 @@ function ConnectorTile({
1913
1994
  const attribution = ownerLabel(entry);
1914
1995
  const canDisconnect = isConnected && !shared;
1915
1996
  const canManageSharing = isConnected && entry.connection.owned_by_viewer === true && grantsSupported;
1916
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1997
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1917
1998
  "div",
1918
1999
  {
1919
2000
  "data-testid": `connector-tile-${entry.slug}`,
@@ -1921,12 +2002,12 @@ function ConnectorTile({
1921
2002
  "data-deprecated": entry.deprecated || void 0,
1922
2003
  className: cn("flex flex-col p-3", layout === "tiles" && "rounded-lg border border-border"),
1923
2004
  children: [
1924
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-3", children: [
1925
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BrandGlyph, { brand: { name: entry.name, logo: entry.logo }, size: "lg" }),
1926
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "min-w-0 flex-1", children: [
1927
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2", children: [
1928
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "truncate text-sm font-medium", children: entry.name }),
1929
- entry.deprecated && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2005
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center gap-3", children: [
2006
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(BrandGlyph, { brand: { name: entry.name, logo: entry.logo }, size: "lg" }),
2007
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "min-w-0 flex-1", children: [
2008
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center gap-2", children: [
2009
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "truncate text-sm font-medium", children: entry.name }),
2010
+ entry.deprecated && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1930
2011
  "span",
1931
2012
  {
1932
2013
  "data-testid": `connector-deprecated-${entry.slug}`,
@@ -1935,24 +2016,24 @@ function ConnectorTile({
1935
2016
  }
1936
2017
  )
1937
2018
  ] }),
1938
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
1939
- (isConnected || choices.length === 0) && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "data-testid": `connector-capability-${entry.slug}`, children: accessLabel(tileAccess(entry)) }),
1940
- isConnected && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
1941
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": "true", children: "\xB7" }),
1942
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2019
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
2020
+ (isConnected || choices.length === 0) && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "data-testid": `connector-capability-${entry.slug}`, children: accessLabel(tileAccess(entry)) }),
2021
+ isConnected && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
2022
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "aria-hidden": "true", children: "\xB7" }),
2023
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1943
2024
  "span",
1944
2025
  {
1945
2026
  "data-testid": `connector-connected-${entry.slug}`,
1946
2027
  className: "inline-flex items-center gap-1",
1947
2028
  children: [
1948
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": "true", className: "h-1.5 w-1.5 rounded-full bg-emerald-500" }),
2029
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "aria-hidden": "true", className: "h-1.5 w-1.5 rounded-full bg-emerald-500" }),
1949
2030
  "Connected"
1950
2031
  ]
1951
2032
  }
1952
2033
  )
1953
2034
  ] })
1954
2035
  ] }),
1955
- isConnected && !shared && entry.connection.account_label && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2036
+ isConnected && !shared && entry.connection.account_label && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1956
2037
  "p",
1957
2038
  {
1958
2039
  "data-testid": `connector-account-${entry.slug}`,
@@ -1963,7 +2044,7 @@ function ConnectorTile({
1963
2044
  ]
1964
2045
  }
1965
2046
  ),
1966
- isConnected && entry.access_summary && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2047
+ isConnected && entry.access_summary && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1967
2048
  "p",
1968
2049
  {
1969
2050
  "data-testid": `connector-access-summary-${entry.slug}`,
@@ -1971,7 +2052,7 @@ function ConnectorTile({
1971
2052
  children: entry.access_summary
1972
2053
  }
1973
2054
  ),
1974
- unhealthy && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2055
+ unhealthy && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1975
2056
  "p",
1976
2057
  {
1977
2058
  role: "alert",
@@ -1980,7 +2061,7 @@ function ConnectorTile({
1980
2061
  children: DEFAULT_RECONNECT_MESSAGE
1981
2062
  }
1982
2063
  ),
1983
- attribution && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2064
+ attribution && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1984
2065
  "p",
1985
2066
  {
1986
2067
  "data-testid": `connector-owner-${entry.slug}`,
@@ -1988,14 +2069,14 @@ function ConnectorTile({
1988
2069
  children: attribution
1989
2070
  }
1990
2071
  ),
1991
- !isConnected && choices.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2072
+ !isConnected && choices.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1992
2073
  "div",
1993
2074
  {
1994
2075
  "data-testid": `connector-access-choice-${entry.slug}`,
1995
2076
  role: "group",
1996
2077
  "aria-label": "Access",
1997
2078
  className: "mt-1 flex items-center gap-1",
1998
- children: choices.map((option) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2079
+ children: choices.map((option) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1999
2080
  "button",
2000
2081
  {
2001
2082
  type: "button",
@@ -2014,7 +2095,7 @@ function ConnectorTile({
2014
2095
  ))
2015
2096
  }
2016
2097
  ),
2017
- !isConnected && orgPermitted && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2098
+ !isConnected && orgPermitted && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2018
2099
  "div",
2019
2100
  {
2020
2101
  "data-testid": `connector-kind-toggle-${entry.slug}`,
@@ -2022,7 +2103,7 @@ function ConnectorTile({
2022
2103
  "aria-label": "Connect as",
2023
2104
  className: "mt-1 flex items-center gap-1",
2024
2105
  children: [
2025
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2106
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2026
2107
  "button",
2027
2108
  {
2028
2109
  type: "button",
@@ -2039,7 +2120,7 @@ function ConnectorTile({
2039
2120
  children: "Personal"
2040
2121
  }
2041
2122
  ),
2042
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2123
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2043
2124
  "button",
2044
2125
  {
2045
2126
  type: "button",
@@ -2059,10 +2140,10 @@ function ConnectorTile({
2059
2140
  ]
2060
2141
  }
2061
2142
  ),
2062
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { role: "alert", "data-testid": `connector-error-${entry.slug}`, className: "text-xs text-destructive", children: errorMessage })
2143
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { role: "alert", "data-testid": `connector-error-${entry.slug}`, className: "text-xs text-destructive", children: errorMessage })
2063
2144
  ] }),
2064
- isConnected ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
2065
- unhealthy && !shared && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2145
+ isConnected ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
2146
+ unhealthy && !shared && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2066
2147
  "button",
2067
2148
  {
2068
2149
  type: "button",
@@ -2077,7 +2158,7 @@ function ConnectorTile({
2077
2158
  // as an always-visible paragraph it wrapped to four lines
2078
2159
  // beside every connected tile. Muted until hover so a
2079
2160
  // destructive action isn't the loudest thing on the tile.
2080
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2161
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2081
2162
  "button",
2082
2163
  {
2083
2164
  type: "button",
@@ -2089,7 +2170,7 @@ function ConnectorTile({
2089
2170
  children: isDisconnecting ? "Disconnecting\u2026" : "Disconnect"
2090
2171
  }
2091
2172
  ),
2092
- canManageSharing && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2173
+ canManageSharing && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2093
2174
  "button",
2094
2175
  {
2095
2176
  type: "button",
@@ -2100,8 +2181,8 @@ function ConnectorTile({
2100
2181
  children: sharingOpen ? "Hide sharing" : "Manage sharing"
2101
2182
  }
2102
2183
  )
2103
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
2104
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2184
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
2185
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2105
2186
  "button",
2106
2187
  {
2107
2188
  type: "button",
@@ -2112,7 +2193,7 @@ function ConnectorTile({
2112
2193
  children: isConnecting ? "Connecting\u2026" : "Connect"
2113
2194
  }
2114
2195
  ),
2115
- canSetUp && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2196
+ canSetUp && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2116
2197
  "button",
2117
2198
  {
2118
2199
  type: "button",
@@ -2126,15 +2207,15 @@ function ConnectorTile({
2126
2207
  )
2127
2208
  ] })
2128
2209
  ] }),
2129
- canSetUp && setupOpen && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2210
+ canSetUp && setupOpen && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2130
2211
  "div",
2131
2212
  {
2132
2213
  id: `connector-setup-panel-${entry.slug}`,
2133
2214
  "data-testid": `connector-setup-panel-${entry.slug}`,
2134
2215
  className: "mt-2 flex flex-col gap-3 rounded-md border border-border bg-foreground/5 p-2",
2135
2216
  children: [
2136
- guide && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SetupGuidePanel, { entry, guide, showVerify: !pasteSupported }),
2137
- pasteSupported && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2217
+ guide && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SetupGuidePanel, { entry, guide, showVerify: !pasteSupported }),
2218
+ pasteSupported && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2138
2219
  CredentialForm,
2139
2220
  {
2140
2221
  entry,
@@ -2149,7 +2230,7 @@ function ConnectorTile({
2149
2230
  ]
2150
2231
  }
2151
2232
  ),
2152
- canManageSharing && sharingOpen && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2233
+ canManageSharing && sharingOpen && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2153
2234
  ManageSharing,
2154
2235
  {
2155
2236
  entry,
@@ -2199,8 +2280,8 @@ function CopyableValue({ value, testId }) {
2199
2280
  setCopied(false);
2200
2281
  }
2201
2282
  }, [value]);
2202
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "mt-1 flex items-center gap-1.5", children: [
2203
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2283
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "mt-1 flex items-center gap-1.5", children: [
2284
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2204
2285
  "code",
2205
2286
  {
2206
2287
  "data-testid": `${testId}-value`,
@@ -2208,7 +2289,7 @@ function CopyableValue({ value, testId }) {
2208
2289
  children: value
2209
2290
  }
2210
2291
  ),
2211
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2292
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2212
2293
  "button",
2213
2294
  {
2214
2295
  type: "button",
@@ -2234,8 +2315,8 @@ function SetupGuidePanel({
2234
2315
  ungrounded
2235
2316
  );
2236
2317
  }, [entry.slug, guide, leaked]);
2237
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { "data-testid": `connector-guide-${entry.slug}`, className: "flex flex-col gap-2", children: [
2238
- leaked && isDevEnvironment() && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2318
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { "data-testid": `connector-guide-${entry.slug}`, className: "flex flex-col gap-2", children: [
2319
+ leaked && isDevEnvironment() && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2239
2320
  "p",
2240
2321
  {
2241
2322
  role: "alert",
@@ -2247,25 +2328,25 @@ function SetupGuidePanel({
2247
2328
  ]
2248
2329
  }
2249
2330
  ),
2250
- prerequisites.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
2251
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h4", { className: "text-xs font-medium", children: "Before you start" }),
2252
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2331
+ prerequisites.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { children: [
2332
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h4", { className: "text-xs font-medium", children: "Before you start" }),
2333
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2253
2334
  "ul",
2254
2335
  {
2255
2336
  "data-testid": `connector-guide-prerequisites-${entry.slug}`,
2256
2337
  className: "mt-1 list-disc pl-4 text-xs text-muted-foreground",
2257
- children: prerequisites.map((item) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("li", { children: item }, item))
2338
+ children: prerequisites.map((item) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: item }, item))
2258
2339
  }
2259
2340
  )
2260
2341
  ] }),
2261
- steps.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2342
+ steps.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2262
2343
  "ol",
2263
2344
  {
2264
2345
  "data-testid": `connector-guide-steps-${entry.slug}`,
2265
2346
  className: "list-decimal pl-4 text-xs",
2266
- children: steps.map((step, index) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("li", { className: "mt-1 first:mt-0", children: [
2267
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: step.text }),
2268
- step.copyable && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2347
+ children: steps.map((step, index) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("li", { className: "mt-1 first:mt-0", children: [
2348
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: step.text }),
2349
+ step.copyable && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2269
2350
  CopyableValue,
2270
2351
  {
2271
2352
  value: step.copyable,
@@ -2275,7 +2356,7 @@ function SetupGuidePanel({
2275
2356
  ] }, step.text))
2276
2357
  }
2277
2358
  ),
2278
- scopeNote && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2359
+ scopeNote && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2279
2360
  "p",
2280
2361
  {
2281
2362
  "data-testid": `connector-guide-scope-note-${entry.slug}`,
@@ -2283,7 +2364,7 @@ function SetupGuidePanel({
2283
2364
  children: scopeNote
2284
2365
  }
2285
2366
  ),
2286
- showVerify && verify && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2367
+ showVerify && verify && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2287
2368
  "p",
2288
2369
  {
2289
2370
  "data-testid": `connector-guide-verify-${entry.slug}`,
@@ -2347,7 +2428,7 @@ function CredentialForm({
2347
2428
  setBusy(false);
2348
2429
  }
2349
2430
  }, [kind, onSubmitCredentials, values]);
2350
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2431
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2351
2432
  "form",
2352
2433
  {
2353
2434
  "data-testid": `connector-credential-form-${entry.slug}`,
@@ -2361,12 +2442,12 @@ function CredentialForm({
2361
2442
  fields.map((field) => {
2362
2443
  const inputId = `connector-credential-${entry.slug}-${field.key}`;
2363
2444
  const fieldError = fieldErrors?.[field.key] ?? null;
2364
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-1", children: [
2365
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { htmlFor: inputId, className: "text-xs font-medium", children: [
2445
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex flex-col gap-1", children: [
2446
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("label", { htmlFor: inputId, className: "text-xs font-medium", children: [
2366
2447
  field.label,
2367
- field.required !== false && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": "true", className: "ml-0.5 text-destructive", children: "*" })
2448
+ field.required !== false && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "aria-hidden": "true", className: "ml-0.5 text-destructive", children: "*" })
2368
2449
  ] }),
2369
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2450
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2370
2451
  "input",
2371
2452
  {
2372
2453
  id: inputId,
@@ -2386,7 +2467,7 @@ function CredentialForm({
2386
2467
  )
2387
2468
  }
2388
2469
  ),
2389
- fieldError && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2470
+ fieldError && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2390
2471
  "p",
2391
2472
  {
2392
2473
  id: `${inputId}-error`,
@@ -2397,7 +2478,7 @@ function CredentialForm({
2397
2478
  )
2398
2479
  ] }, field.key);
2399
2480
  }),
2400
- verify && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2481
+ verify && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2401
2482
  "p",
2402
2483
  {
2403
2484
  "data-testid": `connector-guide-verify-${entry.slug}`,
@@ -2405,8 +2486,8 @@ function CredentialForm({
2405
2486
  children: verify
2406
2487
  }
2407
2488
  ),
2408
- result && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CredentialTestResult, { entry, result }),
2409
- error && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2489
+ result && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(CredentialTestResult, { entry, result }),
2490
+ error && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2410
2491
  "p",
2411
2492
  {
2412
2493
  role: "alert",
@@ -2415,8 +2496,8 @@ function CredentialForm({
2415
2496
  children: error
2416
2497
  }
2417
2498
  ),
2418
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center justify-end gap-1.5", children: [
2419
- testSupported && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2499
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center justify-end gap-1.5", children: [
2500
+ testSupported && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2420
2501
  "button",
2421
2502
  {
2422
2503
  type: "button",
@@ -2427,7 +2508,7 @@ function CredentialForm({
2427
2508
  children: testing ? "Testing\u2026" : "Test connection"
2428
2509
  }
2429
2510
  ),
2430
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2511
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2431
2512
  "button",
2432
2513
  {
2433
2514
  type: "submit",
@@ -2448,15 +2529,15 @@ function CredentialTestResult({
2448
2529
  result
2449
2530
  }) {
2450
2531
  if (result.valid === true) {
2451
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2532
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2452
2533
  "div",
2453
2534
  {
2454
2535
  role: "status",
2455
2536
  "data-testid": `connector-credential-test-pass-${entry.slug}`,
2456
2537
  className: "rounded-md border border-primary/30 bg-primary/5 px-2 py-1 text-xs",
2457
2538
  children: [
2458
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: result.account_name ? `Verified \u2014 connected as ${result.account_name}.` : "Verified \u2014 these credentials work." }),
2459
- result.permissions_note && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2539
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { children: result.account_name ? `Verified \u2014 connected as ${result.account_name}.` : "Verified \u2014 these credentials work." }),
2540
+ result.permissions_note && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2460
2541
  "p",
2461
2542
  {
2462
2543
  "data-testid": `connector-credential-permissions-${entry.slug}`,
@@ -2469,7 +2550,7 @@ function CredentialTestResult({
2469
2550
  );
2470
2551
  }
2471
2552
  if (result.valid === false) {
2472
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2553
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2473
2554
  "p",
2474
2555
  {
2475
2556
  role: "alert",
@@ -2479,7 +2560,7 @@ function CredentialTestResult({
2479
2560
  }
2480
2561
  );
2481
2562
  }
2482
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2563
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2483
2564
  "p",
2484
2565
  {
2485
2566
  role: "status",
@@ -2542,13 +2623,13 @@ function ManageSharing({
2542
2623
  },
2543
2624
  [load, revokeGrant]
2544
2625
  );
2545
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2626
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2546
2627
  "div",
2547
2628
  {
2548
2629
  "data-testid": `connector-sharing-panel-${entry.slug}`,
2549
2630
  className: "mt-2 flex flex-col gap-2 rounded-md border border-border bg-foreground/5 p-2",
2550
2631
  children: [
2551
- grants === null && !error && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2632
+ grants === null && !error && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2552
2633
  "p",
2553
2634
  {
2554
2635
  "data-testid": `connector-grants-loading-${entry.slug}`,
@@ -2556,7 +2637,7 @@ function ManageSharing({
2556
2637
  children: "Loading sharing\u2026"
2557
2638
  }
2558
2639
  ),
2559
- error && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2640
+ error && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2560
2641
  "p",
2561
2642
  {
2562
2643
  role: "alert",
@@ -2565,7 +2646,7 @@ function ManageSharing({
2565
2646
  children: error
2566
2647
  }
2567
2648
  ),
2568
- grants !== null && grants.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2649
+ grants !== null && grants.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2569
2650
  "p",
2570
2651
  {
2571
2652
  "data-testid": `connector-grants-empty-${entry.slug}`,
@@ -2573,21 +2654,21 @@ function ManageSharing({
2573
2654
  children: "Not shared with anyone yet."
2574
2655
  }
2575
2656
  ),
2576
- grants?.map((grant) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2657
+ grants?.map((grant) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2577
2658
  "div",
2578
2659
  {
2579
2660
  "data-testid": `connector-grant-${entry.slug}-${grant.id}`,
2580
2661
  className: "flex items-center justify-between gap-2 text-xs",
2581
2662
  children: [
2582
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "truncate", children: [
2663
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "truncate", children: [
2583
2664
  grant.grantee_name || grant.grantee_id,
2584
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "text-muted-foreground", children: [
2665
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "text-muted-foreground", children: [
2585
2666
  " ",
2586
2667
  "\xB7 ",
2587
2668
  grant.grantee_type === "role" ? "Role" : "User"
2588
2669
  ] })
2589
2670
  ] }),
2590
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2671
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2591
2672
  "button",
2592
2673
  {
2593
2674
  type: "button",
@@ -2602,8 +2683,8 @@ function ManageSharing({
2602
2683
  },
2603
2684
  grant.id
2604
2685
  )),
2605
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-1.5", children: [
2606
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2686
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center gap-1.5", children: [
2687
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2607
2688
  "select",
2608
2689
  {
2609
2690
  "data-testid": `connector-grant-type-${entry.slug}`,
@@ -2616,12 +2697,12 @@ function ManageSharing({
2616
2697
  disabled: busy,
2617
2698
  className: "rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50",
2618
2699
  children: [
2619
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "user", children: "User" }),
2620
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "role", children: "Role" })
2700
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("option", { value: "user", children: "User" }),
2701
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("option", { value: "role", children: "Role" })
2621
2702
  ]
2622
2703
  }
2623
2704
  ),
2624
- granteeType === "user" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2705
+ granteeType === "user" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2625
2706
  "input",
2626
2707
  {
2627
2708
  "data-testid": `connector-grant-grantee-${entry.slug}`,
@@ -2632,7 +2713,7 @@ function ManageSharing({
2632
2713
  disabled: busy,
2633
2714
  className: "min-w-0 flex-1 rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50"
2634
2715
  }
2635
- ) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2716
+ ) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2636
2717
  "select",
2637
2718
  {
2638
2719
  "data-testid": `connector-grant-role-${entry.slug}`,
@@ -2642,12 +2723,12 @@ function ManageSharing({
2642
2723
  disabled: busy,
2643
2724
  className: "min-w-0 flex-1 rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50",
2644
2725
  children: [
2645
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "", children: "Select a role\u2026" }),
2646
- roleOptions.map((role) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: role.id, children: role.name }, role.id))
2726
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("option", { value: "", children: "Select a role\u2026" }),
2727
+ roleOptions.map((role) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("option", { value: role.id, children: role.name }, role.id))
2647
2728
  ]
2648
2729
  }
2649
2730
  ),
2650
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2731
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2651
2732
  "button",
2652
2733
  {
2653
2734
  type: "button",
@@ -2669,6 +2750,7 @@ function ManageSharing({
2669
2750
  BrandGlyph,
2670
2751
  ConnectorPicker,
2671
2752
  ContextSwitcher,
2753
+ DEFAULT_LEGAL_LINKS,
2672
2754
  Flyout,
2673
2755
  GLYPH_CANVAS_FILL,
2674
2756
  HOVER_CLOSE_DELAY_MS,
@@ -2680,6 +2762,7 @@ function ManageSharing({
2680
2762
  MARK_WEIGHT,
2681
2763
  REEVE_ACCENT,
2682
2764
  ResponsiveHeader,
2765
+ SiteFooter,
2683
2766
  WORDMARK_WEIGHT,
2684
2767
  accessLabel,
2685
2768
  deriveFallbackLadder,