@arbidocs/react 0.5.187 → 0.5.189

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.
@@ -9,6 +9,13 @@ function configureSharingMembers(members) {
9
9
  sharedMembers = members;
10
10
  }
11
11
  const SHARING_LABELS = { onlyMe: "Only me", workspace: "Workspace" };
12
+ let sharingLabels = SHARING_LABELS;
13
+ function configureSharingLabels(labels) {
14
+ sharingLabels = { ...SHARING_LABELS, ...labels };
15
+ }
16
+ function getSharingLabels() {
17
+ return sharingLabels;
18
+ }
12
19
  function SharingEntity({
13
20
  shared,
14
21
  variant = "full",
@@ -27,7 +34,8 @@ function SharingEntity({
27
34
  const lastPointer = useRef("mouse");
28
35
  const canToggle = !!onToggle && !disabled;
29
36
  const blocked = !!onToggle && disabled;
30
- const label = shared ? SHARING_LABELS.workspace : SHARING_LABELS.onlyMe;
37
+ const labels = getSharingLabels();
38
+ const label = shared ? labels.workspace : labels.onlyMe;
31
39
  const hint = disabled ? disabledTooltip : shared ? tooltipActive : tooltipInactive;
32
40
  const handleClick = (e) => {
33
41
  e.stopPropagation();
@@ -67,7 +75,7 @@ function SharingEntity({
67
75
  {
68
76
  className: "inline-flex",
69
77
  role: "group",
70
- "aria-label": `${SHARING_LABELS.workspace}: shared with all workspace members`,
78
+ "aria-label": `${labels.workspace}: shared with all workspace members`,
71
79
  "aria-disabled": blocked || void 0,
72
80
  children: pill
73
81
  }
@@ -84,6 +92,8 @@ function SharingEntity({
84
92
  export {
85
93
  SHARING_LABELS,
86
94
  SharingEntity,
87
- configureSharingMembers
95
+ configureSharingLabels,
96
+ configureSharingMembers,
97
+ getSharingLabels
88
98
  };
89
99
  //# sourceMappingURL=SharingEntity.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/entities/SharingEntity.tsx"],
4
- "sourcesContent": ["/**\n * SharingEntity\n *\n * The entity pill of who can see an item: \"Only me\" (one person) or \"Workspace\" (several people).\n * It is the one pill every sharing indicator uses, in two variants: `full` (icon + label) and `icon`\n * (the glyph alone, for a narrow cell or a header; the label stays as its accessible name).\n *\n * The \"Workspace\" pill owns its hover: a card (opened by hover, keyboard focus, or a tap on a touch\n * screen) with `members`, the workspace's member list. `members` is only mounted while the card is\n * open, so a data-reading list costs nothing until someone looks. \"Only me\" has no card.\n *\n * With `onToggle` a click flips the visibility (a tap on a touch screen opens the card instead, so\n * a stray tap never changes who can see an item) and the pill is a toggle button, `aria-pressed`\n * while shared; without, the pill is a plain indicator. A click never reaches a parent's handler\n * (a row or card selection). A toggle that is `disabled` is marked `aria-disabled`.\n */\n\nimport { useRef, useState, type MouseEvent, type PointerEvent, type ReactNode } from 'react'\nimport { User, Users } from 'lucide-react'\nimport { cn } from '../lib/utils'\nimport { HoverCard, HoverCardContent, HoverCardTrigger } from '../ui/hover-card'\nimport { EntityPill } from './EntityPill'\n\nlet sharedMembers: ReactNode = null\n\n/**\n * Where every `SharingEntity` finds the member list of its card (the entity registry's seam: the\n * connected layer, which can read the workspace's members, registers it once; panels that portal\n * outside any one subtree still get it).\n */\nexport function configureSharingMembers(members: ReactNode): void {\n sharedMembers = members\n}\n\nexport const SHARING_LABELS = { onlyMe: 'Only me', workspace: 'Workspace' } as const\n\nexport interface SharingEntityProps {\n shared: boolean\n /** `full` (default) icon + label; `icon` the glyph alone. */\n variant?: 'full' | 'icon'\n size?: 'sm' | 'md'\n /** Called with true to share, false to make private. Omit for an indicator that is not clickable. */\n onToggle?: (shouldShare: boolean) => void\n disabled?: boolean\n /** Why the visibility cannot be changed (a line in the card, or the tooltip). */\n disabledTooltip?: string\n /** What a click does while shared / private. */\n tooltipActive?: string\n tooltipInactive?: string\n /** The member list of the Workspace card (default: the registered one, `configureSharingMembers`); mounted only while the card is open. */\n members?: ReactNode\n className?: string\n 'data-testid'?: string\n}\n\nexport function SharingEntity({\n shared,\n variant = 'full',\n size = 'sm',\n onToggle,\n disabled = false,\n disabledTooltip,\n tooltipActive,\n tooltipInactive,\n members: membersProp,\n className,\n 'data-testid': testId,\n}: SharingEntityProps) {\n const members = membersProp ?? sharedMembers\n const [open, setOpen] = useState(false)\n const lastPointer = useRef<string>('mouse')\n const canToggle = !!onToggle && !disabled\n // A toggle that cannot toggle now (not the creator's, or a change in flight) says so: a click on it\n // does nothing. aria-disabled, not `disabled`: the pill still shows its tooltip and member card.\n const blocked = !!onToggle && disabled\n const label = shared ? SHARING_LABELS.workspace : SHARING_LABELS.onlyMe\n const hint = disabled ? disabledTooltip : shared ? tooltipActive : tooltipInactive\n\n const handleClick = (e: MouseEvent) => {\n e.stopPropagation()\n // A touch screen has no hover: a tap on a Workspace pill shows who is in it (and never flips it).\n if (shared && lastPointer.current === 'touch') {\n setOpen(true)\n return\n }\n if (canToggle) onToggle(!shared)\n }\n\n const pill = (\n <EntityPill\n shape=\"pill\"\n size={size}\n icon={\n shared ? (\n <Users className=\"size-3.5 shrink-0 text-primary\" aria-hidden />\n ) : (\n <User className=\"size-3.5 shrink-0 text-muted-foreground\" aria-hidden />\n )\n }\n label={label}\n labelClassName={cn(variant === 'icon' && 'sr-only', !shared && 'text-muted-foreground')}\n className={cn(shared && 'text-primary', className)}\n onClick={handleClick}\n pressed={onToggle ? shared : undefined}\n tooltipContent={!shared && hint ? hint : undefined}\n data-testid={testId}\n />\n )\n\n if (!shared)\n return blocked ? (\n <span className=\"inline-flex\" aria-disabled=\"true\">\n {pill}\n </span>\n ) : (\n pill\n )\n\n return (\n <HoverCard open={open} onOpenChange={setOpen} openDelay={200} closeDelay={100}>\n <HoverCardTrigger\n asChild\n onPointerDown={(e: PointerEvent) => {\n lastPointer.current = e.pointerType\n }}\n >\n <span\n className=\"inline-flex\"\n role=\"group\"\n aria-label={`${SHARING_LABELS.workspace}: shared with all workspace members`}\n aria-disabled={blocked || undefined}\n >\n {pill}\n </span>\n </HoverCardTrigger>\n {open && (\n <HoverCardContent side=\"left\" align=\"center\" className=\"w-60 space-y-2 p-3\">\n <p className=\"text-xs font-semibold\">Workspace members</p>\n {members}\n {hint && <p className=\"border-t pt-2 text-xs text-muted-foreground\">{hint}</p>}\n </HoverCardContent>\n )}\n </HoverCard>\n )\n}\n"],
5
- "mappings": "AA8FU,cA0CF,YA1CE;AA7EV,SAAS,QAAQ,gBAAoE;AACrF,SAAS,MAAM,aAAa;AAC5B,SAAS,UAAU;AACnB,SAAS,WAAW,kBAAkB,wBAAwB;AAC9D,SAAS,kBAAkB;AAE3B,IAAI,gBAA2B;AAOxB,SAAS,wBAAwB,SAA0B;AAChE,kBAAgB;AAClB;AAEO,MAAM,iBAAiB,EAAE,QAAQ,WAAW,WAAW,YAAY;AAqBnE,SAAS,cAAc;AAAA,EAC5B;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP;AAAA,EACA,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AAAA,EACA,eAAe;AACjB,GAAuB;AACrB,QAAM,UAAU,eAAe;AAC/B,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AACtC,QAAM,cAAc,OAAe,OAAO;AAC1C,QAAM,YAAY,CAAC,CAAC,YAAY,CAAC;AAGjC,QAAM,UAAU,CAAC,CAAC,YAAY;AAC9B,QAAM,QAAQ,SAAS,eAAe,YAAY,eAAe;AACjE,QAAM,OAAO,WAAW,kBAAkB,SAAS,gBAAgB;AAEnE,QAAM,cAAc,CAAC,MAAkB;AACrC,MAAE,gBAAgB;AAElB,QAAI,UAAU,YAAY,YAAY,SAAS;AAC7C,cAAQ,IAAI;AACZ;AAAA,IACF;AACA,QAAI,UAAW,UAAS,CAAC,MAAM;AAAA,EACjC;AAEA,QAAM,OACJ;AAAA,IAAC;AAAA;AAAA,MACC,OAAM;AAAA,MACN;AAAA,MACA,MACE,SACE,oBAAC,SAAM,WAAU,kCAAiC,eAAW,MAAC,IAE9D,oBAAC,QAAK,WAAU,2CAA0C,eAAW,MAAC;AAAA,MAG1E;AAAA,MACA,gBAAgB,GAAG,YAAY,UAAU,WAAW,CAAC,UAAU,uBAAuB;AAAA,MACtF,WAAW,GAAG,UAAU,gBAAgB,SAAS;AAAA,MACjD,SAAS;AAAA,MACT,SAAS,WAAW,SAAS;AAAA,MAC7B,gBAAgB,CAAC,UAAU,OAAO,OAAO;AAAA,MACzC,eAAa;AAAA;AAAA,EACf;AAGF,MAAI,CAAC;AACH,WAAO,UACL,oBAAC,UAAK,WAAU,eAAc,iBAAc,QACzC,gBACH,IAEA;AAGJ,SACE,qBAAC,aAAU,MAAY,cAAc,SAAS,WAAW,KAAK,YAAY,KACxE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAO;AAAA,QACP,eAAe,CAAC,MAAoB;AAClC,sBAAY,UAAU,EAAE;AAAA,QAC1B;AAAA,QAEA;AAAA,UAAC;AAAA;AAAA,YACC,WAAU;AAAA,YACV,MAAK;AAAA,YACL,cAAY,GAAG,eAAe,SAAS;AAAA,YACvC,iBAAe,WAAW;AAAA,YAEzB;AAAA;AAAA,QACH;AAAA;AAAA,IACF;AAAA,IACC,QACC,qBAAC,oBAAiB,MAAK,QAAO,OAAM,UAAS,WAAU,sBACrD;AAAA,0BAAC,OAAE,WAAU,yBAAwB,+BAAiB;AAAA,MACrD;AAAA,MACA,QAAQ,oBAAC,OAAE,WAAU,+CAA+C,gBAAK;AAAA,OAC5E;AAAA,KAEJ;AAEJ;",
4
+ "sourcesContent": ["/**\n * SharingEntity\n *\n * The entity pill of who can see an item: \"Only me\" (one person) or \"Workspace\" (several people).\n * It is the one pill every sharing indicator uses, in two variants: `full` (icon + label) and `icon`\n * (the glyph alone, for a narrow cell or a header; the label stays as its accessible name).\n *\n * The \"Workspace\" pill owns its hover: a card (opened by hover, keyboard focus, or a tap on a touch\n * screen) with `members`, the workspace's member list. `members` is only mounted while the card is\n * open, so a data-reading list costs nothing until someone looks. \"Only me\" has no card.\n *\n * With `onToggle` a click flips the visibility (a tap on a touch screen opens the card instead, so\n * a stray tap never changes who can see an item) and the pill is a toggle button, `aria-pressed`\n * while shared; without, the pill is a plain indicator. A click never reaches a parent's handler\n * (a row or card selection). A toggle that is `disabled` is marked `aria-disabled`.\n */\n\nimport { useRef, useState, type MouseEvent, type PointerEvent, type ReactNode } from 'react'\nimport { User, Users } from 'lucide-react'\nimport { cn } from '../lib/utils'\nimport { HoverCard, HoverCardContent, HoverCardTrigger } from '../ui/hover-card'\nimport { EntityPill } from './EntityPill'\n\nlet sharedMembers: ReactNode = null\n\n/**\n * Where every `SharingEntity` finds the member list of its card (the entity registry's seam: the\n * connected layer, which can read the workspace's members, registers it once; panels that portal\n * outside any one subtree still get it).\n */\nexport function configureSharingMembers(members: ReactNode): void {\n sharedMembers = members\n}\n\n/** The default wording of the two pills. */\nexport const SHARING_LABELS = { onlyMe: 'Only me', workspace: 'Workspace' } as const\n\nexport interface SharingLabels {\n onlyMe: string\n workspace: string\n}\n\nlet sharingLabels: SharingLabels = SHARING_LABELS\n\n/**\n * Reword the pills for the whole app (a host that says \"Shared\" rather than \"Workspace\"). Called\n * once at start-up, before anything renders; an omitted label keeps its default.\n */\nexport function configureSharingLabels(labels: Partial<SharingLabels>): void {\n sharingLabels = { ...SHARING_LABELS, ...labels }\n}\n\n/** The wording in use: the defaults, or what the host configured. */\nexport function getSharingLabels(): SharingLabels {\n return sharingLabels\n}\n\nexport interface SharingEntityProps {\n shared: boolean\n /** `full` (default) icon + label; `icon` the glyph alone. */\n variant?: 'full' | 'icon'\n size?: 'sm' | 'md'\n /** Called with true to share, false to make private. Omit for an indicator that is not clickable. */\n onToggle?: (shouldShare: boolean) => void\n disabled?: boolean\n /** Why the visibility cannot be changed (a line in the card, or the tooltip). */\n disabledTooltip?: string\n /** What a click does while shared / private. */\n tooltipActive?: string\n tooltipInactive?: string\n /** The member list of the Workspace card (default: the registered one, `configureSharingMembers`); mounted only while the card is open. */\n members?: ReactNode\n className?: string\n 'data-testid'?: string\n}\n\nexport function SharingEntity({\n shared,\n variant = 'full',\n size = 'sm',\n onToggle,\n disabled = false,\n disabledTooltip,\n tooltipActive,\n tooltipInactive,\n members: membersProp,\n className,\n 'data-testid': testId,\n}: SharingEntityProps) {\n const members = membersProp ?? sharedMembers\n const [open, setOpen] = useState(false)\n const lastPointer = useRef<string>('mouse')\n const canToggle = !!onToggle && !disabled\n // A toggle that cannot toggle now (not the creator's, or a change in flight) says so: a click on it\n // does nothing. aria-disabled, not `disabled`: the pill still shows its tooltip and member card.\n const blocked = !!onToggle && disabled\n const labels = getSharingLabels()\n const label = shared ? labels.workspace : labels.onlyMe\n const hint = disabled ? disabledTooltip : shared ? tooltipActive : tooltipInactive\n\n const handleClick = (e: MouseEvent) => {\n e.stopPropagation()\n // A touch screen has no hover: a tap on a Workspace pill shows who is in it (and never flips it).\n if (shared && lastPointer.current === 'touch') {\n setOpen(true)\n return\n }\n if (canToggle) onToggle(!shared)\n }\n\n const pill = (\n <EntityPill\n shape=\"pill\"\n size={size}\n icon={\n shared ? (\n <Users className=\"size-3.5 shrink-0 text-primary\" aria-hidden />\n ) : (\n <User className=\"size-3.5 shrink-0 text-muted-foreground\" aria-hidden />\n )\n }\n label={label}\n labelClassName={cn(variant === 'icon' && 'sr-only', !shared && 'text-muted-foreground')}\n className={cn(shared && 'text-primary', className)}\n onClick={handleClick}\n pressed={onToggle ? shared : undefined}\n tooltipContent={!shared && hint ? hint : undefined}\n data-testid={testId}\n />\n )\n\n if (!shared)\n return blocked ? (\n <span className=\"inline-flex\" aria-disabled=\"true\">\n {pill}\n </span>\n ) : (\n pill\n )\n\n return (\n <HoverCard open={open} onOpenChange={setOpen} openDelay={200} closeDelay={100}>\n <HoverCardTrigger\n asChild\n onPointerDown={(e: PointerEvent) => {\n lastPointer.current = e.pointerType\n }}\n >\n <span\n className=\"inline-flex\"\n role=\"group\"\n aria-label={`${labels.workspace}: shared with all workspace members`}\n aria-disabled={blocked || undefined}\n >\n {pill}\n </span>\n </HoverCardTrigger>\n {open && (\n <HoverCardContent side=\"left\" align=\"center\" className=\"w-60 space-y-2 p-3\">\n <p className=\"text-xs font-semibold\">Workspace members</p>\n {members}\n {hint && <p className=\"border-t pt-2 text-xs text-muted-foreground\">{hint}</p>}\n </HoverCardContent>\n )}\n </HoverCard>\n )\n}\n"],
5
+ "mappings": "AAoHU,cA0CF,YA1CE;AAnGV,SAAS,QAAQ,gBAAoE;AACrF,SAAS,MAAM,aAAa;AAC5B,SAAS,UAAU;AACnB,SAAS,WAAW,kBAAkB,wBAAwB;AAC9D,SAAS,kBAAkB;AAE3B,IAAI,gBAA2B;AAOxB,SAAS,wBAAwB,SAA0B;AAChE,kBAAgB;AAClB;AAGO,MAAM,iBAAiB,EAAE,QAAQ,WAAW,WAAW,YAAY;AAO1E,IAAI,gBAA+B;AAM5B,SAAS,uBAAuB,QAAsC;AAC3E,kBAAgB,EAAE,GAAG,gBAAgB,GAAG,OAAO;AACjD;AAGO,SAAS,mBAAkC;AAChD,SAAO;AACT;AAqBO,SAAS,cAAc;AAAA,EAC5B;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP;AAAA,EACA,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AAAA,EACA,eAAe;AACjB,GAAuB;AACrB,QAAM,UAAU,eAAe;AAC/B,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AACtC,QAAM,cAAc,OAAe,OAAO;AAC1C,QAAM,YAAY,CAAC,CAAC,YAAY,CAAC;AAGjC,QAAM,UAAU,CAAC,CAAC,YAAY;AAC9B,QAAM,SAAS,iBAAiB;AAChC,QAAM,QAAQ,SAAS,OAAO,YAAY,OAAO;AACjD,QAAM,OAAO,WAAW,kBAAkB,SAAS,gBAAgB;AAEnE,QAAM,cAAc,CAAC,MAAkB;AACrC,MAAE,gBAAgB;AAElB,QAAI,UAAU,YAAY,YAAY,SAAS;AAC7C,cAAQ,IAAI;AACZ;AAAA,IACF;AACA,QAAI,UAAW,UAAS,CAAC,MAAM;AAAA,EACjC;AAEA,QAAM,OACJ;AAAA,IAAC;AAAA;AAAA,MACC,OAAM;AAAA,MACN;AAAA,MACA,MACE,SACE,oBAAC,SAAM,WAAU,kCAAiC,eAAW,MAAC,IAE9D,oBAAC,QAAK,WAAU,2CAA0C,eAAW,MAAC;AAAA,MAG1E;AAAA,MACA,gBAAgB,GAAG,YAAY,UAAU,WAAW,CAAC,UAAU,uBAAuB;AAAA,MACtF,WAAW,GAAG,UAAU,gBAAgB,SAAS;AAAA,MACjD,SAAS;AAAA,MACT,SAAS,WAAW,SAAS;AAAA,MAC7B,gBAAgB,CAAC,UAAU,OAAO,OAAO;AAAA,MACzC,eAAa;AAAA;AAAA,EACf;AAGF,MAAI,CAAC;AACH,WAAO,UACL,oBAAC,UAAK,WAAU,eAAc,iBAAc,QACzC,gBACH,IAEA;AAGJ,SACE,qBAAC,aAAU,MAAY,cAAc,SAAS,WAAW,KAAK,YAAY,KACxE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAO;AAAA,QACP,eAAe,CAAC,MAAoB;AAClC,sBAAY,UAAU,EAAE;AAAA,QAC1B;AAAA,QAEA;AAAA,UAAC;AAAA;AAAA,YACC,WAAU;AAAA,YACV,MAAK;AAAA,YACL,cAAY,GAAG,OAAO,SAAS;AAAA,YAC/B,iBAAe,WAAW;AAAA,YAEzB;AAAA;AAAA,QACH;AAAA;AAAA,IACF;AAAA,IACC,QACC,qBAAC,oBAAiB,MAAK,QAAO,OAAM,UAAS,WAAU,sBACrD;AAAA,0BAAC,OAAE,WAAU,yBAAwB,+BAAiB;AAAA,MACrD;AAAA,MACA,QAAQ,oBAAC,OAAE,WAAU,+CAA+C,gBAAK;AAAA,OAC5E;AAAA,KAEJ;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -9,6 +9,8 @@ import {
9
9
  import {
10
10
  SharingEntity,
11
11
  configureSharingMembers,
12
+ configureSharingLabels,
13
+ getSharingLabels,
12
14
  SHARING_LABELS
13
15
  } from "./SharingEntity.js";
14
16
  import { TagEntity } from "./TagEntity.js";
@@ -88,6 +90,7 @@ export {
88
90
  configureEntityRegistry,
89
91
  configureEntityVocabulary,
90
92
  configureRagLabels,
93
+ configureSharingLabels,
91
94
  configureSharingMembers,
92
95
  configureStatusRegistry,
93
96
  entityNoun,
@@ -98,6 +101,7 @@ export {
98
101
  getEntityColorStyles,
99
102
  getEntityIcon,
100
103
  getEntityLabel,
104
+ getSharingLabels,
101
105
  getStatusVariant,
102
106
  getTagTypeIcon,
103
107
  getTagTypeLabel,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/entities/index.ts"],
4
- "sourcesContent": ["export { ThreadVisibilityIcon } from './ThreadVisibilityIcon'\nexport { EntityPill, type EntitySize } from './EntityPill'\nexport {\n DocumentEntity,\n getDocIcon,\n getDocumentTitle,\n isImageDocument,\n type DocumentEntityProps,\n type DocumentLike,\n} from './DocumentEntity'\nexport {\n SharingEntity,\n configureSharingMembers,\n SHARING_LABELS,\n type SharingEntityProps,\n} from './SharingEntity'\nexport { TagEntity, type TagEntityProps, type TagLike } from './TagEntity'\nexport { TAG_TYPE_ICONS, TAG_TYPE_LABELS, getTagTypeIcon, getTagTypeLabel } from './tag-types'\nexport { tagKindTitle, tagKindNouns } from './tag-kinds'\nexport { ProjectEntity, type ProjectEntityProps, type ProjectRelation } from './ProjectEntity'\nexport { UserEntity, type UserEntityProps, type PresenceDisplayStatus } from './UserEntity'\nexport { VerifiedBadge, type VerifiedBadgeProps } from './VerifiedBadge'\n// One agent stamp and one presence wording for every surface \u2014 see AgentMarkers.\nexport { AgentBadge, PresenceLabel } from './AgentMarkers'\n\n// Status pill + RAG dot \u2014 generic presentation, domain vocabulary INJECTED.\nexport {\n StatusPill,\n type StatusPillProps,\n type StatusVariant,\n type StatusBadgeProps,\n type StatusBadgeComponent,\n configureStatusRegistry,\n getStatusVariant,\n type Rag,\n configureRagLabels,\n} from './status'\n\n// Canonical entity registry \u2014 icons, names, and the deployment injection seam.\nexport {\n ENTITY_MAPPINGS,\n type EntityType,\n type EntityIconComponent,\n type EntityRegistryOverride,\n type EntityLabelForm,\n configureEntityRegistry,\n getEntityIcon,\n getEntityLabel,\n entityNoun,\n EntityIcon,\n VISIBILITY_ICONS,\n VisibilityIcon,\n} from './registry'\n\nexport { configureEntityVocabulary, type EntityNoun, type EntityVocabulary } from './vocabulary'\n\n// Entity colour system \u2014 deterministic id \u2192 colour derivation.\nexport {\n BASE_COLORS,\n PLACEHOLDER_COLOR,\n NEUTRAL_GRAY,\n getEntityColor,\n getEntityColorStyles,\n getWorkspaceColor,\n} from './colors'\n\n// Workspace square glyph (initial on a colour fill) and the outlined agent-avatar colours.\nexport { ShieldIcon, type ShieldIconProps } from './ShieldIcon'\nexport { agentAvatarColors } from './agent-avatar-colors'\n\n// What kind of file a document is: the viewer's choice of renderer and the short label of its type.\nexport {\n isAudioFile,\n isDownloadOnlyFile,\n isImageFile,\n isMediaFile,\n isVideoFile,\n usesOriginalBytesForViewer,\n} from './media-type'\nexport {\n friendlyFileType,\n isPresentationFileName,\n PRESENTATIONS_FOLDER,\n PRESENTATION_TEMPLATES_FOLDER,\n} from './file-type'\n"],
5
- "mappings": "AAAA,SAAS,4BAA4B;AACrC,SAAS,kBAAmC;AAC5C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,iBAAoD;AAC7D,SAAS,gBAAgB,iBAAiB,gBAAgB,uBAAuB;AACjF,SAAS,cAAc,oBAAoB;AAC3C,SAAS,qBAAoE;AAC7E,SAAS,kBAAoE;AAC7E,SAAS,qBAA8C;AAEvD,SAAS,YAAY,qBAAqB;AAG1C;AAAA,EACE;AAAA,EAKA;AAAA,EACA;AAAA,EAEA;AAAA,OACK;AAGP;AAAA,EACE;AAAA,EAKA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,iCAAyE;AAGlF;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,kBAAwC;AACjD,SAAS,yBAAyB;AAGlC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;",
4
+ "sourcesContent": ["export { ThreadVisibilityIcon } from './ThreadVisibilityIcon'\nexport { EntityPill, type EntitySize } from './EntityPill'\nexport {\n DocumentEntity,\n getDocIcon,\n getDocumentTitle,\n isImageDocument,\n type DocumentEntityProps,\n type DocumentLike,\n} from './DocumentEntity'\nexport {\n SharingEntity,\n configureSharingMembers,\n configureSharingLabels,\n getSharingLabels,\n SHARING_LABELS,\n type SharingEntityProps,\n type SharingLabels,\n} from './SharingEntity'\nexport { TagEntity, type TagEntityProps, type TagLike } from './TagEntity'\nexport { TAG_TYPE_ICONS, TAG_TYPE_LABELS, getTagTypeIcon, getTagTypeLabel } from './tag-types'\nexport { tagKindTitle, tagKindNouns } from './tag-kinds'\nexport { ProjectEntity, type ProjectEntityProps, type ProjectRelation } from './ProjectEntity'\nexport { UserEntity, type UserEntityProps, type PresenceDisplayStatus } from './UserEntity'\nexport { VerifiedBadge, type VerifiedBadgeProps } from './VerifiedBadge'\n// One agent stamp and one presence wording for every surface \u2014 see AgentMarkers.\nexport { AgentBadge, PresenceLabel } from './AgentMarkers'\n\n// Status pill + RAG dot \u2014 generic presentation, domain vocabulary INJECTED.\nexport {\n StatusPill,\n type StatusPillProps,\n type StatusVariant,\n type StatusBadgeProps,\n type StatusBadgeComponent,\n configureStatusRegistry,\n getStatusVariant,\n type Rag,\n configureRagLabels,\n} from './status'\n\n// Canonical entity registry \u2014 icons, names, and the deployment injection seam.\nexport {\n ENTITY_MAPPINGS,\n type EntityType,\n type EntityIconComponent,\n type EntityRegistryOverride,\n type EntityLabelForm,\n configureEntityRegistry,\n getEntityIcon,\n getEntityLabel,\n entityNoun,\n EntityIcon,\n VISIBILITY_ICONS,\n VisibilityIcon,\n} from './registry'\n\nexport { configureEntityVocabulary, type EntityNoun, type EntityVocabulary } from './vocabulary'\n\n// Entity colour system \u2014 deterministic id \u2192 colour derivation.\nexport {\n BASE_COLORS,\n PLACEHOLDER_COLOR,\n NEUTRAL_GRAY,\n getEntityColor,\n getEntityColorStyles,\n getWorkspaceColor,\n} from './colors'\n\n// Workspace square glyph (initial on a colour fill) and the outlined agent-avatar colours.\nexport { ShieldIcon, type ShieldIconProps } from './ShieldIcon'\nexport { agentAvatarColors } from './agent-avatar-colors'\n\n// What kind of file a document is: the viewer's choice of renderer and the short label of its type.\nexport {\n isAudioFile,\n isDownloadOnlyFile,\n isImageFile,\n isMediaFile,\n isVideoFile,\n usesOriginalBytesForViewer,\n} from './media-type'\nexport {\n friendlyFileType,\n isPresentationFileName,\n PRESENTATIONS_FOLDER,\n PRESENTATION_TEMPLATES_FOLDER,\n} from './file-type'\n"],
5
+ "mappings": "AAAA,SAAS,4BAA4B;AACrC,SAAS,kBAAmC;AAC5C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,iBAAoD;AAC7D,SAAS,gBAAgB,iBAAiB,gBAAgB,uBAAuB;AACjF,SAAS,cAAc,oBAAoB;AAC3C,SAAS,qBAAoE;AAC7E,SAAS,kBAAoE;AAC7E,SAAS,qBAA8C;AAEvD,SAAS,YAAY,qBAAqB;AAG1C;AAAA,EACE;AAAA,EAKA;AAAA,EACA;AAAA,EAEA;AAAA,OACK;AAGP;AAAA,EACE;AAAA,EAKA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,iCAAyE;AAGlF;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,kBAAwC;AACjD,SAAS,yBAAyB;AAGlC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;",
6
6
  "names": []
7
7
  }