@orangecheck/design 0.14.1 → 0.15.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.
@@ -1266,7 +1266,11 @@ function OcAccountMenu(props) {
1266
1266
  // context (oc-www) can opt in incrementally.
1267
1267
  roster: session.roster,
1268
1268
  switchAccount: session.switchAccount,
1269
- addAccountUrl: session.addAccountUrl
1269
+ addAccountUrl: session.addAccountUrl,
1270
+ // Structural read keeps the auth-client peer floor at
1271
+ // ^2.17.0 — `tabPinned` ships in 2.18.0 and is simply
1272
+ // undefined (no hint) on older providers.
1273
+ tabPinned: session.tabPinned
1270
1274
  }
1271
1275
  }
1272
1276
  );
@@ -1295,7 +1299,8 @@ function OcAccountMenuView({
1295
1299
  setDisplayIdentity,
1296
1300
  roster,
1297
1301
  switchAccount,
1298
- addAccountUrl
1302
+ addAccountUrl,
1303
+ tabPinned
1299
1304
  } = session;
1300
1305
  const [hydrated, setHydrated] = React.useState(false);
1301
1306
  const [open, setOpen] = React.useState(false);
@@ -1404,7 +1409,19 @@ function OcAccountMenuView({
1404
1409
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-border border-b p-3", children: [
1405
1410
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-primary mb-1 font-mono text-[10px] tracking-widest uppercase", children: [
1406
1411
  "\xA7 signed in \xB7 ",
1407
- hostname
1412
+ hostname,
1413
+ tabPinned ? /* @__PURE__ */ jsxRuntime.jsxs(
1414
+ "span",
1415
+ {
1416
+ className: "text-muted-foreground/70 normal-case",
1417
+ "data-oc-account-menu-tab-pin": "",
1418
+ title: "This tab keeps this account even if you switch accounts in another tab",
1419
+ children: [
1420
+ " ",
1421
+ "\xB7 this tab"
1422
+ ]
1423
+ }
1424
+ ) : null
1408
1425
  ] }),
1409
1426
  /* @__PURE__ */ jsxRuntime.jsx(CopyableDid, { did: account.didOc }),
1410
1427
  displayName ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-muted-foreground/80 mt-1 font-mono text-[10px] tracking-wide", children: displayName }) : null