@meetreeve/ui 0.10.0 → 0.11.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.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +4 -0
- package/dist/index.mjs +7 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -555,6 +555,17 @@ interface ContextSwitcherItem {
|
|
|
555
555
|
accentColor?: string | null;
|
|
556
556
|
orgId?: string | null;
|
|
557
557
|
orgName?: string | null;
|
|
558
|
+
/**
|
|
559
|
+
* Pre-resolved noun for what this context IS ("Company", "Space", …),
|
|
560
|
+
* rendered as a muted marker on the row. Optional, and omitted for a
|
|
561
|
+
* host's default kind — labelling every row is noise.
|
|
562
|
+
*
|
|
563
|
+
* Resolved by the host (DEV-8585), matching the `favicon` precedent
|
|
564
|
+
* above: two contexts can share a display name (a brand and a spawned
|
|
565
|
+
* company in the same org both render as "MindFortress"), and only the
|
|
566
|
+
* host knows its own vocabulary for telling them apart.
|
|
567
|
+
*/
|
|
568
|
+
kindLabel?: string | null;
|
|
558
569
|
}
|
|
559
570
|
interface ContextOrgGroup {
|
|
560
571
|
orgId: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -555,6 +555,17 @@ interface ContextSwitcherItem {
|
|
|
555
555
|
accentColor?: string | null;
|
|
556
556
|
orgId?: string | null;
|
|
557
557
|
orgName?: string | null;
|
|
558
|
+
/**
|
|
559
|
+
* Pre-resolved noun for what this context IS ("Company", "Space", …),
|
|
560
|
+
* rendered as a muted marker on the row. Optional, and omitted for a
|
|
561
|
+
* host's default kind — labelling every row is noise.
|
|
562
|
+
*
|
|
563
|
+
* Resolved by the host (DEV-8585), matching the `favicon` precedent
|
|
564
|
+
* above: two contexts can share a display name (a brand and a spawned
|
|
565
|
+
* company in the same org both render as "MindFortress"), and only the
|
|
566
|
+
* host knows its own vocabulary for telling them apart.
|
|
567
|
+
*/
|
|
568
|
+
kindLabel?: string | null;
|
|
558
569
|
}
|
|
559
570
|
interface ContextOrgGroup {
|
|
560
571
|
orgId: string | null;
|
package/dist/index.js
CHANGED
|
@@ -1403,6 +1403,10 @@ function ContextSwitcher({
|
|
|
1403
1403
|
children: [
|
|
1404
1404
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(BrandGlyph, { brand: toBrand(item), subtle: true }),
|
|
1405
1405
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "flex-1 truncate text-left text-foreground/90", children: item.name }),
|
|
1406
|
+
item.kindLabel && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1407
|
+
" ",
|
|
1408
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "shrink-0 text-[11px] text-muted-foreground", children: item.kindLabel })
|
|
1409
|
+
] }),
|
|
1406
1410
|
isActive && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react3.Check, { className: "size-3.5 text-emerald-500" })
|
|
1407
1411
|
]
|
|
1408
1412
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -1273,7 +1273,7 @@ function DropdownMenuLabel({
|
|
|
1273
1273
|
}
|
|
1274
1274
|
|
|
1275
1275
|
// src/context-switcher.tsx
|
|
1276
|
-
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1276
|
+
import { Fragment as Fragment3, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1277
1277
|
function groupByOrg(items) {
|
|
1278
1278
|
return groupItemsByOrg(items, {
|
|
1279
1279
|
orgId: (it) => it.orgId,
|
|
@@ -1348,6 +1348,10 @@ function ContextSwitcher({
|
|
|
1348
1348
|
children: [
|
|
1349
1349
|
/* @__PURE__ */ jsx6(BrandGlyph, { brand: toBrand(item), subtle: true }),
|
|
1350
1350
|
/* @__PURE__ */ jsx6("span", { className: "flex-1 truncate text-left text-foreground/90", children: item.name }),
|
|
1351
|
+
item.kindLabel && /* @__PURE__ */ jsxs5(Fragment3, { children: [
|
|
1352
|
+
" ",
|
|
1353
|
+
/* @__PURE__ */ jsx6("span", { className: "shrink-0 text-[11px] text-muted-foreground", children: item.kindLabel })
|
|
1354
|
+
] }),
|
|
1351
1355
|
isActive && /* @__PURE__ */ jsx6(Check, { className: "size-3.5 text-emerald-500" })
|
|
1352
1356
|
]
|
|
1353
1357
|
},
|
|
@@ -1364,7 +1368,7 @@ function ContextSwitcher({
|
|
|
1364
1368
|
|
|
1365
1369
|
// src/connector-picker.tsx
|
|
1366
1370
|
import { useCallback as useCallback4, useEffect as useEffect6, useRef as useRef5, useState as useState7 } from "react";
|
|
1367
|
-
import { Fragment as
|
|
1371
|
+
import { Fragment as Fragment4, jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1368
1372
|
var DEFAULT_CONNECT_ERROR = "Couldn't start the connection. Please try again.";
|
|
1369
1373
|
var DEFAULT_DISCONNECT_ERROR = "Couldn't disconnect. Please try again.";
|
|
1370
1374
|
var DEFAULT_LOAD_ERROR = "Couldn't load connections. Please try again.";
|
|
@@ -1702,7 +1706,7 @@ function ConnectorTile({
|
|
|
1702
1706
|
] }),
|
|
1703
1707
|
/* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
|
|
1704
1708
|
/* @__PURE__ */ jsx7("span", { "data-testid": `connector-capability-${entry.slug}`, children: capabilityLabel(entry.capability) }),
|
|
1705
|
-
entry.category && /* @__PURE__ */ jsxs6(
|
|
1709
|
+
entry.category && /* @__PURE__ */ jsxs6(Fragment4, { children: [
|
|
1706
1710
|
/* @__PURE__ */ jsx7("span", { "aria-hidden": "true", children: "\xB7" }),
|
|
1707
1711
|
/* @__PURE__ */ jsx7("span", { className: "truncate", children: entry.category })
|
|
1708
1712
|
] })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meetreeve/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Shared brand-adaptive UI primitives for MindFortress frontends — min-size tokens, a favicon→logo→monogram BrandGlyph, a responsive header that keeps the search bar usable on mobile, and AppSidebar's viewport-driven auto-collapse ladder.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"main": "./dist/index.js",
|