@meetreeve/ui 0.18.1 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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
  );
@@ -1148,7 +1226,7 @@ function AppSidebar({
1148
1226
  function renderAppItem(item, testIdPrefix, collapsedRow = false) {
1149
1227
  const def = moduleMap.get(item.moduleId);
1150
1228
  if (!def) return null;
1151
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1229
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1152
1230
  NavLink,
1153
1231
  {
1154
1232
  href: def.href,
@@ -1174,7 +1252,7 @@ function AppSidebar({
1174
1252
  };
1175
1253
  });
1176
1254
  const active = children.some((c) => c.active);
1177
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1255
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1178
1256
  Flyout,
1179
1257
  {
1180
1258
  label: item.label,
@@ -1193,7 +1271,7 @@ function AppSidebar({
1193
1271
  function brandBlockFor(collapsedMode) {
1194
1272
  if (!brand) return null;
1195
1273
  if (collapsedMode) {
1196
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1274
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1197
1275
  "a",
1198
1276
  {
1199
1277
  href: brand.href,
@@ -1201,28 +1279,28 @@ function AppSidebar({
1201
1279
  title: brand.label,
1202
1280
  className: "flex items-center justify-center border-b border-sidebar-border px-1 py-4",
1203
1281
  children: [
1204
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "sr-only", children: brand.label }),
1205
- /* @__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" })
1206
1284
  ]
1207
1285
  }
1208
1286
  );
1209
1287
  }
1210
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1288
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1211
1289
  "a",
1212
1290
  {
1213
1291
  href: brand.href,
1214
1292
  "data-testid": "app-sidebar-brand",
1215
1293
  className: "flex items-center gap-2.5 border-b border-sidebar-border px-5 py-4 text-sidebar-foreground",
1216
1294
  children: [
1217
- /* @__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() }) }),
1218
- /* @__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 })
1219
1297
  ]
1220
1298
  }
1221
1299
  );
1222
1300
  }
1223
1301
  function topItemBlock(testId, collapsedMode = false) {
1224
1302
  if (!topItem) return null;
1225
- 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)(
1226
1304
  NavLink,
1227
1305
  {
1228
1306
  href: topItem.href,
@@ -1235,8 +1313,8 @@ function AppSidebar({
1235
1313
  }
1236
1314
  ) });
1237
1315
  }
1238
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
1239
- !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)(
1240
1318
  "button",
1241
1319
  {
1242
1320
  ref: mobileTriggerRef,
@@ -1248,11 +1326,11 @@ function AppSidebar({
1248
1326
  onClick: () => setMobileOpen((v) => !v),
1249
1327
  style: TOUCH_TARGET_STYLE,
1250
1328
  className: "flex items-center justify-center rounded-md border border-border p-2 text-foreground",
1251
- 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" })
1252
1330
  }
1253
1331
  ),
1254
- !isDesktop && mobileOpen && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "fixed inset-0 z-50", children: [
1255
- /* @__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)(
1256
1334
  "div",
1257
1335
  {
1258
1336
  "data-testid": "app-sidebar-mobile-scrim",
@@ -1261,7 +1339,7 @@ function AppSidebar({
1261
1339
  onClick: () => setMobileOpen(false)
1262
1340
  }
1263
1341
  ),
1264
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1342
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1265
1343
  "div",
1266
1344
  {
1267
1345
  ref: mobileDrawerRef,
@@ -1272,7 +1350,7 @@ function AppSidebar({
1272
1350
  "data-testid": "app-sidebar-mobile-drawer",
1273
1351
  className: "absolute inset-y-0 left-0 flex w-72 flex-col overflow-y-auto border-r border-sidebar-border bg-sidebar",
1274
1352
  children: [
1275
- /* @__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)(
1276
1354
  "button",
1277
1355
  {
1278
1356
  ref: mobileCloseRef,
@@ -1282,19 +1360,19 @@ function AppSidebar({
1282
1360
  onClick: () => setMobileOpen(false),
1283
1361
  style: TOUCH_TARGET_STYLE,
1284
1362
  className: "flex items-center justify-center rounded-md p-2 text-sidebar-foreground/70 hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground",
1285
- 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" })
1286
1364
  }
1287
1365
  ) }),
1288
1366
  brandBlockFor(false),
1289
1367
  topItemBlock("app-sidebar-mobile-top-item"),
1290
- /* @__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(
1291
1369
  (item) => item.type === "app" ? renderAppItem(item, "app-sidebar-mobile-navlink") : null
1292
1370
  ) }) })
1293
1371
  ]
1294
1372
  }
1295
1373
  )
1296
1374
  ] }),
1297
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1375
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1298
1376
  "aside",
1299
1377
  {
1300
1378
  "data-testid": "app-sidebar-desktop",
@@ -1309,18 +1387,18 @@ function AppSidebar({
1309
1387
  children: [
1310
1388
  brandBlockFor(collapsed),
1311
1389
  topItemBlock("app-sidebar-top-item", collapsed),
1312
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1390
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1313
1391
  "nav",
1314
1392
  {
1315
1393
  ref: containerRef,
1316
1394
  "data-testid": "app-sidebar-nav",
1317
1395
  className: "flex-1 overflow-y-auto px-3 py-4",
1318
- 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(
1319
1397
  (item) => item.type === "app" ? renderAppItem(item, "app-sidebar-navlink", collapsed) : renderGroupItem(item, collapsed)
1320
1398
  ) })
1321
1399
  }
1322
1400
  ),
1323
- 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)(
1324
1402
  "button",
1325
1403
  {
1326
1404
  type: "button",
@@ -1334,8 +1412,8 @@ function AppSidebar({
1334
1412
  collapsed && "justify-center px-0"
1335
1413
  ),
1336
1414
  children: [
1337
- 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" }),
1338
- /* @__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" })
1339
1417
  ]
1340
1418
  }
1341
1419
  ) })
@@ -1378,19 +1456,19 @@ function groupItemsByOrg(rows, get) {
1378
1456
 
1379
1457
  // src/lib/dropdown-menu.tsx
1380
1458
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
1381
- var import_jsx_runtime6 = require("react/jsx-runtime");
1459
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1382
1460
  function DropdownMenu(props) {
1383
- 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 });
1384
1462
  }
1385
1463
  function DropdownMenuTrigger(props) {
1386
- 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 });
1387
1465
  }
1388
1466
  function DropdownMenuContent({
1389
1467
  className,
1390
1468
  sideOffset = 4,
1391
1469
  ...props
1392
1470
  }) {
1393
- 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)(
1394
1472
  DropdownMenuPrimitive.Content,
1395
1473
  {
1396
1474
  "data-slot": "dropdown-menu-content",
@@ -1407,7 +1485,7 @@ function DropdownMenuItem({
1407
1485
  className,
1408
1486
  ...props
1409
1487
  }) {
1410
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1488
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1411
1489
  DropdownMenuPrimitive.Item,
1412
1490
  {
1413
1491
  "data-slot": "dropdown-menu-item",
@@ -1423,7 +1501,7 @@ function DropdownMenuLabel({
1423
1501
  className,
1424
1502
  ...props
1425
1503
  }) {
1426
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1504
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1427
1505
  DropdownMenuPrimitive.Label,
1428
1506
  {
1429
1507
  "data-slot": "dropdown-menu-label",
@@ -1434,7 +1512,7 @@ function DropdownMenuLabel({
1434
1512
  }
1435
1513
 
1436
1514
  // src/context-switcher.tsx
1437
- var import_jsx_runtime7 = require("react/jsx-runtime");
1515
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1438
1516
  function groupByOrg(items) {
1439
1517
  return groupItemsByOrg(items, {
1440
1518
  orgId: (it) => it.orgId,
@@ -1466,29 +1544,29 @@ function ContextSwitcher({
1466
1544
  const active = items.find((it) => it.refId === activeRefId) ?? null;
1467
1545
  const groups = groupByOrg(items);
1468
1546
  const showOrgHeaders = groups.length > 1;
1469
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(DropdownMenu, { children: [
1470
- /* @__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)(
1471
1549
  "button",
1472
1550
  {
1473
1551
  type: "button",
1474
1552
  title: active?.name || placeholder,
1475
1553
  "aria-label": active?.name || placeholder,
1476
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",
1477
- 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" })
1478
1556
  }
1479
- ) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1557
+ ) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1480
1558
  "button",
1481
1559
  {
1482
1560
  type: "button",
1483
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",
1484
1562
  children: [
1485
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(BrandGlyph, { brand: toBrand(active ?? { name: "" }) }),
1486
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "max-w-[140px] truncate text-sidebar-accent-foreground", children: active?.name || placeholder }),
1487
- /* @__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" })
1488
1566
  ]
1489
1567
  }
1490
1568
  ) }),
1491
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1569
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1492
1570
  DropdownMenuContent,
1493
1571
  {
1494
1572
  side,
@@ -1497,13 +1575,13 @@ function ContextSwitcher({
1497
1575
  collisionPadding: 8,
1498
1576
  className: cn("w-60 overflow-hidden p-0", contentClassName),
1499
1577
  children: [
1500
- groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
1501
- 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" }),
1502
- /* @__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) => {
1503
1581
  const isActive = item.refId === activeRefId;
1504
1582
  const next = group.items[i + 1];
1505
1583
  const endsPinned = item.pinned === true && next !== void 0 && next.pinned !== true;
1506
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1584
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1507
1585
  DropdownMenuItem,
1508
1586
  {
1509
1587
  "data-active": isActive || void 0,
@@ -1515,8 +1593,8 @@ function ContextSwitcher({
1515
1593
  endsPinned && "border-b border-border/60"
1516
1594
  ),
1517
1595
  children: [
1518
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(BrandGlyph, { brand: toBrand(item), subtle: true }),
1519
- /* @__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)(
1520
1598
  "span",
1521
1599
  {
1522
1600
  className: cn(
@@ -1526,18 +1604,18 @@ function ContextSwitcher({
1526
1604
  children: item.name
1527
1605
  }
1528
1606
  ),
1529
- 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: [
1530
1608
  " ",
1531
- /* @__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 })
1532
1610
  ] }),
1533
- 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" })
1534
1612
  ]
1535
1613
  },
1536
1614
  item.refId
1537
1615
  );
1538
1616
  }) })
1539
1617
  ] }, group.orgId ?? "unattributed")),
1540
- 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 })
1541
1619
  ]
1542
1620
  }
1543
1621
  )
@@ -1546,7 +1624,7 @@ function ContextSwitcher({
1546
1624
 
1547
1625
  // src/connector-picker.tsx
1548
1626
  var import_react9 = require("react");
1549
- var import_jsx_runtime8 = require("react/jsx-runtime");
1627
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1550
1628
  function accessLabel(access) {
1551
1629
  return access === "read" ? "Read" : "Read + write";
1552
1630
  }
@@ -1807,35 +1885,35 @@ function ConnectorPicker({
1807
1885
  );
1808
1886
  const ownEntries = entries?.filter((entry) => !isSharedWithViewer(entry)) ?? null;
1809
1887
  const sharedEntries = entries?.filter(isSharedWithViewer) ?? [];
1810
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { "data-testid": "connector-picker", "data-layout": layout, className: "flex flex-col gap-4", children: [
1811
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: containerClassName, children: [
1812
- 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)(
1813
1891
  "div",
1814
1892
  {
1815
1893
  "data-testid": "connector-picker-skeleton-item",
1816
1894
  "aria-hidden": "true",
1817
1895
  className: "flex items-center gap-3 rounded-lg border border-border p-3",
1818
1896
  children: [
1819
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "h-8 w-8 shrink-0 animate-pulse rounded bg-foreground/10" }),
1820
- /* @__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" })
1821
1899
  ]
1822
1900
  },
1823
1901
  i
1824
1902
  )),
1825
- loadError && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1903
+ loadError && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1826
1904
  "div",
1827
1905
  {
1828
1906
  role: "alert",
1829
1907
  "data-testid": "connector-picker-load-error",
1830
1908
  className: "flex items-center justify-between gap-3 rounded-lg border border-destructive/30 bg-destructive/5 p-3 text-sm text-destructive",
1831
1909
  children: [
1832
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: loadError }),
1833
- /* @__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" })
1834
1912
  ]
1835
1913
  }
1836
1914
  ),
1837
- 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." }),
1838
- 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)(
1839
1917
  ConnectorTile,
1840
1918
  {
1841
1919
  entry,
@@ -1855,9 +1933,9 @@ function ConnectorPicker({
1855
1933
  entry.slug
1856
1934
  ))
1857
1935
  ] }),
1858
- sharedEntries.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { "data-testid": "connector-picker-shared-with-me", className: "flex flex-col gap-2", children: [
1859
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: "Shared with me" }),
1860
- /* @__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)(
1861
1939
  ConnectorTile,
1862
1940
  {
1863
1941
  entry,
@@ -1916,7 +1994,7 @@ function ConnectorTile({
1916
1994
  const attribution = ownerLabel(entry);
1917
1995
  const canDisconnect = isConnected && !shared;
1918
1996
  const canManageSharing = isConnected && entry.connection.owned_by_viewer === true && grantsSupported;
1919
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1997
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1920
1998
  "div",
1921
1999
  {
1922
2000
  "data-testid": `connector-tile-${entry.slug}`,
@@ -1924,12 +2002,12 @@ function ConnectorTile({
1924
2002
  "data-deprecated": entry.deprecated || void 0,
1925
2003
  className: cn("flex flex-col p-3", layout === "tiles" && "rounded-lg border border-border"),
1926
2004
  children: [
1927
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-3", children: [
1928
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BrandGlyph, { brand: { name: entry.name, logo: entry.logo }, size: "lg" }),
1929
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "min-w-0 flex-1", children: [
1930
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2", children: [
1931
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "truncate text-sm font-medium", children: entry.name }),
1932
- 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)(
1933
2011
  "span",
1934
2012
  {
1935
2013
  "data-testid": `connector-deprecated-${entry.slug}`,
@@ -1938,24 +2016,24 @@ function ConnectorTile({
1938
2016
  }
1939
2017
  )
1940
2018
  ] }),
1941
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
1942
- (isConnected || choices.length === 0) && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "data-testid": `connector-capability-${entry.slug}`, children: accessLabel(tileAccess(entry)) }),
1943
- isConnected && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
1944
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": "true", children: "\xB7" }),
1945
- /* @__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)(
1946
2024
  "span",
1947
2025
  {
1948
2026
  "data-testid": `connector-connected-${entry.slug}`,
1949
2027
  className: "inline-flex items-center gap-1",
1950
2028
  children: [
1951
- /* @__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" }),
1952
2030
  "Connected"
1953
2031
  ]
1954
2032
  }
1955
2033
  )
1956
2034
  ] })
1957
2035
  ] }),
1958
- 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)(
1959
2037
  "p",
1960
2038
  {
1961
2039
  "data-testid": `connector-account-${entry.slug}`,
@@ -1966,7 +2044,7 @@ function ConnectorTile({
1966
2044
  ]
1967
2045
  }
1968
2046
  ),
1969
- isConnected && entry.access_summary && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2047
+ isConnected && entry.access_summary && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1970
2048
  "p",
1971
2049
  {
1972
2050
  "data-testid": `connector-access-summary-${entry.slug}`,
@@ -1974,7 +2052,7 @@ function ConnectorTile({
1974
2052
  children: entry.access_summary
1975
2053
  }
1976
2054
  ),
1977
- unhealthy && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2055
+ unhealthy && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1978
2056
  "p",
1979
2057
  {
1980
2058
  role: "alert",
@@ -1983,7 +2061,7 @@ function ConnectorTile({
1983
2061
  children: DEFAULT_RECONNECT_MESSAGE
1984
2062
  }
1985
2063
  ),
1986
- attribution && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2064
+ attribution && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1987
2065
  "p",
1988
2066
  {
1989
2067
  "data-testid": `connector-owner-${entry.slug}`,
@@ -1991,14 +2069,14 @@ function ConnectorTile({
1991
2069
  children: attribution
1992
2070
  }
1993
2071
  ),
1994
- !isConnected && choices.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2072
+ !isConnected && choices.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1995
2073
  "div",
1996
2074
  {
1997
2075
  "data-testid": `connector-access-choice-${entry.slug}`,
1998
2076
  role: "group",
1999
2077
  "aria-label": "Access",
2000
2078
  className: "mt-1 flex items-center gap-1",
2001
- children: choices.map((option) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2079
+ children: choices.map((option) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2002
2080
  "button",
2003
2081
  {
2004
2082
  type: "button",
@@ -2017,7 +2095,7 @@ function ConnectorTile({
2017
2095
  ))
2018
2096
  }
2019
2097
  ),
2020
- !isConnected && orgPermitted && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2098
+ !isConnected && orgPermitted && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2021
2099
  "div",
2022
2100
  {
2023
2101
  "data-testid": `connector-kind-toggle-${entry.slug}`,
@@ -2025,7 +2103,7 @@ function ConnectorTile({
2025
2103
  "aria-label": "Connect as",
2026
2104
  className: "mt-1 flex items-center gap-1",
2027
2105
  children: [
2028
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2106
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2029
2107
  "button",
2030
2108
  {
2031
2109
  type: "button",
@@ -2042,7 +2120,7 @@ function ConnectorTile({
2042
2120
  children: "Personal"
2043
2121
  }
2044
2122
  ),
2045
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2123
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2046
2124
  "button",
2047
2125
  {
2048
2126
  type: "button",
@@ -2062,10 +2140,10 @@ function ConnectorTile({
2062
2140
  ]
2063
2141
  }
2064
2142
  ),
2065
- 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 })
2066
2144
  ] }),
2067
- isConnected ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
2068
- 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)(
2069
2147
  "button",
2070
2148
  {
2071
2149
  type: "button",
@@ -2080,7 +2158,7 @@ function ConnectorTile({
2080
2158
  // as an always-visible paragraph it wrapped to four lines
2081
2159
  // beside every connected tile. Muted until hover so a
2082
2160
  // destructive action isn't the loudest thing on the tile.
2083
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2161
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2084
2162
  "button",
2085
2163
  {
2086
2164
  type: "button",
@@ -2092,7 +2170,7 @@ function ConnectorTile({
2092
2170
  children: isDisconnecting ? "Disconnecting\u2026" : "Disconnect"
2093
2171
  }
2094
2172
  ),
2095
- canManageSharing && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2173
+ canManageSharing && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2096
2174
  "button",
2097
2175
  {
2098
2176
  type: "button",
@@ -2103,8 +2181,8 @@ function ConnectorTile({
2103
2181
  children: sharingOpen ? "Hide sharing" : "Manage sharing"
2104
2182
  }
2105
2183
  )
2106
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
2107
- /* @__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)(
2108
2186
  "button",
2109
2187
  {
2110
2188
  type: "button",
@@ -2115,7 +2193,7 @@ function ConnectorTile({
2115
2193
  children: isConnecting ? "Connecting\u2026" : "Connect"
2116
2194
  }
2117
2195
  ),
2118
- canSetUp && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2196
+ canSetUp && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2119
2197
  "button",
2120
2198
  {
2121
2199
  type: "button",
@@ -2129,15 +2207,15 @@ function ConnectorTile({
2129
2207
  )
2130
2208
  ] })
2131
2209
  ] }),
2132
- canSetUp && setupOpen && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2210
+ canSetUp && setupOpen && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2133
2211
  "div",
2134
2212
  {
2135
2213
  id: `connector-setup-panel-${entry.slug}`,
2136
2214
  "data-testid": `connector-setup-panel-${entry.slug}`,
2137
2215
  className: "mt-2 flex flex-col gap-3 rounded-md border border-border bg-foreground/5 p-2",
2138
2216
  children: [
2139
- guide && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SetupGuidePanel, { entry, guide, showVerify: !pasteSupported }),
2140
- 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)(
2141
2219
  CredentialForm,
2142
2220
  {
2143
2221
  entry,
@@ -2152,7 +2230,7 @@ function ConnectorTile({
2152
2230
  ]
2153
2231
  }
2154
2232
  ),
2155
- canManageSharing && sharingOpen && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2233
+ canManageSharing && sharingOpen && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2156
2234
  ManageSharing,
2157
2235
  {
2158
2236
  entry,
@@ -2202,8 +2280,8 @@ function CopyableValue({ value, testId }) {
2202
2280
  setCopied(false);
2203
2281
  }
2204
2282
  }, [value]);
2205
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "mt-1 flex items-center gap-1.5", children: [
2206
- /* @__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)(
2207
2285
  "code",
2208
2286
  {
2209
2287
  "data-testid": `${testId}-value`,
@@ -2211,7 +2289,7 @@ function CopyableValue({ value, testId }) {
2211
2289
  children: value
2212
2290
  }
2213
2291
  ),
2214
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2292
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2215
2293
  "button",
2216
2294
  {
2217
2295
  type: "button",
@@ -2237,8 +2315,8 @@ function SetupGuidePanel({
2237
2315
  ungrounded
2238
2316
  );
2239
2317
  }, [entry.slug, guide, leaked]);
2240
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { "data-testid": `connector-guide-${entry.slug}`, className: "flex flex-col gap-2", children: [
2241
- 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)(
2242
2320
  "p",
2243
2321
  {
2244
2322
  role: "alert",
@@ -2250,25 +2328,25 @@ function SetupGuidePanel({
2250
2328
  ]
2251
2329
  }
2252
2330
  ),
2253
- prerequisites.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
2254
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h4", { className: "text-xs font-medium", children: "Before you start" }),
2255
- /* @__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)(
2256
2334
  "ul",
2257
2335
  {
2258
2336
  "data-testid": `connector-guide-prerequisites-${entry.slug}`,
2259
2337
  className: "mt-1 list-disc pl-4 text-xs text-muted-foreground",
2260
- 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))
2261
2339
  }
2262
2340
  )
2263
2341
  ] }),
2264
- steps.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2342
+ steps.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2265
2343
  "ol",
2266
2344
  {
2267
2345
  "data-testid": `connector-guide-steps-${entry.slug}`,
2268
2346
  className: "list-decimal pl-4 text-xs",
2269
- children: steps.map((step, index) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("li", { className: "mt-1 first:mt-0", children: [
2270
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: step.text }),
2271
- 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)(
2272
2350
  CopyableValue,
2273
2351
  {
2274
2352
  value: step.copyable,
@@ -2278,7 +2356,7 @@ function SetupGuidePanel({
2278
2356
  ] }, step.text))
2279
2357
  }
2280
2358
  ),
2281
- scopeNote && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2359
+ scopeNote && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2282
2360
  "p",
2283
2361
  {
2284
2362
  "data-testid": `connector-guide-scope-note-${entry.slug}`,
@@ -2286,7 +2364,7 @@ function SetupGuidePanel({
2286
2364
  children: scopeNote
2287
2365
  }
2288
2366
  ),
2289
- showVerify && verify && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2367
+ showVerify && verify && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2290
2368
  "p",
2291
2369
  {
2292
2370
  "data-testid": `connector-guide-verify-${entry.slug}`,
@@ -2350,7 +2428,7 @@ function CredentialForm({
2350
2428
  setBusy(false);
2351
2429
  }
2352
2430
  }, [kind, onSubmitCredentials, values]);
2353
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2431
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2354
2432
  "form",
2355
2433
  {
2356
2434
  "data-testid": `connector-credential-form-${entry.slug}`,
@@ -2364,12 +2442,12 @@ function CredentialForm({
2364
2442
  fields.map((field) => {
2365
2443
  const inputId = `connector-credential-${entry.slug}-${field.key}`;
2366
2444
  const fieldError = fieldErrors?.[field.key] ?? null;
2367
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-1", children: [
2368
- /* @__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: [
2369
2447
  field.label,
2370
- 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: "*" })
2371
2449
  ] }),
2372
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2450
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2373
2451
  "input",
2374
2452
  {
2375
2453
  id: inputId,
@@ -2389,7 +2467,7 @@ function CredentialForm({
2389
2467
  )
2390
2468
  }
2391
2469
  ),
2392
- fieldError && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2470
+ fieldError && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2393
2471
  "p",
2394
2472
  {
2395
2473
  id: `${inputId}-error`,
@@ -2400,7 +2478,7 @@ function CredentialForm({
2400
2478
  )
2401
2479
  ] }, field.key);
2402
2480
  }),
2403
- verify && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2481
+ verify && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2404
2482
  "p",
2405
2483
  {
2406
2484
  "data-testid": `connector-guide-verify-${entry.slug}`,
@@ -2408,8 +2486,8 @@ function CredentialForm({
2408
2486
  children: verify
2409
2487
  }
2410
2488
  ),
2411
- result && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CredentialTestResult, { entry, result }),
2412
- 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)(
2413
2491
  "p",
2414
2492
  {
2415
2493
  role: "alert",
@@ -2418,8 +2496,8 @@ function CredentialForm({
2418
2496
  children: error
2419
2497
  }
2420
2498
  ),
2421
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center justify-end gap-1.5", children: [
2422
- 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)(
2423
2501
  "button",
2424
2502
  {
2425
2503
  type: "button",
@@ -2430,7 +2508,7 @@ function CredentialForm({
2430
2508
  children: testing ? "Testing\u2026" : "Test connection"
2431
2509
  }
2432
2510
  ),
2433
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2511
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2434
2512
  "button",
2435
2513
  {
2436
2514
  type: "submit",
@@ -2451,15 +2529,15 @@ function CredentialTestResult({
2451
2529
  result
2452
2530
  }) {
2453
2531
  if (result.valid === true) {
2454
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2532
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2455
2533
  "div",
2456
2534
  {
2457
2535
  role: "status",
2458
2536
  "data-testid": `connector-credential-test-pass-${entry.slug}`,
2459
2537
  className: "rounded-md border border-primary/30 bg-primary/5 px-2 py-1 text-xs",
2460
2538
  children: [
2461
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: result.account_name ? `Verified \u2014 connected as ${result.account_name}.` : "Verified \u2014 these credentials work." }),
2462
- 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)(
2463
2541
  "p",
2464
2542
  {
2465
2543
  "data-testid": `connector-credential-permissions-${entry.slug}`,
@@ -2472,7 +2550,7 @@ function CredentialTestResult({
2472
2550
  );
2473
2551
  }
2474
2552
  if (result.valid === false) {
2475
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2553
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2476
2554
  "p",
2477
2555
  {
2478
2556
  role: "alert",
@@ -2482,7 +2560,7 @@ function CredentialTestResult({
2482
2560
  }
2483
2561
  );
2484
2562
  }
2485
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2563
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2486
2564
  "p",
2487
2565
  {
2488
2566
  role: "status",
@@ -2545,13 +2623,13 @@ function ManageSharing({
2545
2623
  },
2546
2624
  [load, revokeGrant]
2547
2625
  );
2548
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2626
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2549
2627
  "div",
2550
2628
  {
2551
2629
  "data-testid": `connector-sharing-panel-${entry.slug}`,
2552
2630
  className: "mt-2 flex flex-col gap-2 rounded-md border border-border bg-foreground/5 p-2",
2553
2631
  children: [
2554
- grants === null && !error && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2632
+ grants === null && !error && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2555
2633
  "p",
2556
2634
  {
2557
2635
  "data-testid": `connector-grants-loading-${entry.slug}`,
@@ -2559,7 +2637,7 @@ function ManageSharing({
2559
2637
  children: "Loading sharing\u2026"
2560
2638
  }
2561
2639
  ),
2562
- error && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2640
+ error && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2563
2641
  "p",
2564
2642
  {
2565
2643
  role: "alert",
@@ -2568,7 +2646,7 @@ function ManageSharing({
2568
2646
  children: error
2569
2647
  }
2570
2648
  ),
2571
- grants !== null && grants.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2649
+ grants !== null && grants.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2572
2650
  "p",
2573
2651
  {
2574
2652
  "data-testid": `connector-grants-empty-${entry.slug}`,
@@ -2576,21 +2654,21 @@ function ManageSharing({
2576
2654
  children: "Not shared with anyone yet."
2577
2655
  }
2578
2656
  ),
2579
- grants?.map((grant) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2657
+ grants?.map((grant) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2580
2658
  "div",
2581
2659
  {
2582
2660
  "data-testid": `connector-grant-${entry.slug}-${grant.id}`,
2583
2661
  className: "flex items-center justify-between gap-2 text-xs",
2584
2662
  children: [
2585
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "truncate", children: [
2663
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "truncate", children: [
2586
2664
  grant.grantee_name || grant.grantee_id,
2587
- /* @__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: [
2588
2666
  " ",
2589
2667
  "\xB7 ",
2590
2668
  grant.grantee_type === "role" ? "Role" : "User"
2591
2669
  ] })
2592
2670
  ] }),
2593
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2671
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2594
2672
  "button",
2595
2673
  {
2596
2674
  type: "button",
@@ -2605,8 +2683,8 @@ function ManageSharing({
2605
2683
  },
2606
2684
  grant.id
2607
2685
  )),
2608
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-1.5", children: [
2609
- /* @__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)(
2610
2688
  "select",
2611
2689
  {
2612
2690
  "data-testid": `connector-grant-type-${entry.slug}`,
@@ -2619,12 +2697,12 @@ function ManageSharing({
2619
2697
  disabled: busy,
2620
2698
  className: "rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50",
2621
2699
  children: [
2622
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "user", children: "User" }),
2623
- /* @__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" })
2624
2702
  ]
2625
2703
  }
2626
2704
  ),
2627
- granteeType === "user" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2705
+ granteeType === "user" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2628
2706
  "input",
2629
2707
  {
2630
2708
  "data-testid": `connector-grant-grantee-${entry.slug}`,
@@ -2635,7 +2713,7 @@ function ManageSharing({
2635
2713
  disabled: busy,
2636
2714
  className: "min-w-0 flex-1 rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50"
2637
2715
  }
2638
- ) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2716
+ ) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2639
2717
  "select",
2640
2718
  {
2641
2719
  "data-testid": `connector-grant-role-${entry.slug}`,
@@ -2645,12 +2723,12 @@ function ManageSharing({
2645
2723
  disabled: busy,
2646
2724
  className: "min-w-0 flex-1 rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50",
2647
2725
  children: [
2648
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "", children: "Select a role\u2026" }),
2649
- 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))
2650
2728
  ]
2651
2729
  }
2652
2730
  ),
2653
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2731
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2654
2732
  "button",
2655
2733
  {
2656
2734
  type: "button",
@@ -2672,6 +2750,7 @@ function ManageSharing({
2672
2750
  BrandGlyph,
2673
2751
  ConnectorPicker,
2674
2752
  ContextSwitcher,
2753
+ DEFAULT_LEGAL_LINKS,
2675
2754
  Flyout,
2676
2755
  GLYPH_CANVAS_FILL,
2677
2756
  HOVER_CLOSE_DELAY_MS,
@@ -2683,6 +2762,7 @@ function ManageSharing({
2683
2762
  MARK_WEIGHT,
2684
2763
  REEVE_ACCENT,
2685
2764
  ResponsiveHeader,
2765
+ SiteFooter,
2686
2766
  WORDMARK_WEIGHT,
2687
2767
  accessLabel,
2688
2768
  deriveFallbackLadder,