@estiva-app/ui 0.96.0 → 0.97.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.
Files changed (49) hide show
  1. package/dist/Avatar.d.ts +6 -1
  2. package/dist/Avatar.d.ts.map +1 -1
  3. package/dist/AvatarGroup.d.ts +2 -0
  4. package/dist/AvatarGroup.d.ts.map +1 -1
  5. package/dist/ComposerTriggers.d.ts +2 -0
  6. package/dist/ComposerTriggers.d.ts.map +1 -1
  7. package/dist/ConversationCard.d.ts +2 -0
  8. package/dist/ConversationCard.d.ts.map +1 -1
  9. package/dist/LinkParts.d.ts +1 -0
  10. package/dist/LinkParts.d.ts.map +1 -1
  11. package/dist/MembersDialog.d.ts +4 -0
  12. package/dist/MembersDialog.d.ts.map +1 -1
  13. package/dist/Person.d.ts +3 -1
  14. package/dist/Person.d.ts.map +1 -1
  15. package/dist/PersonTrigger.d.ts +1 -1
  16. package/dist/PersonTrigger.d.ts.map +1 -1
  17. package/dist/RepliesRow.d.ts +1 -0
  18. package/dist/RepliesRow.d.ts.map +1 -1
  19. package/dist/editor.js +1 -1
  20. package/dist/editor.js.map +2 -2
  21. package/dist/index.js +47 -26
  22. package/dist/index.js.map +2 -2
  23. package/dist/linked.d.ts +4 -0
  24. package/dist/linked.d.ts.map +1 -1
  25. package/dist/linkedFrom.d.ts +2 -0
  26. package/dist/linkedFrom.d.ts.map +1 -1
  27. package/package.json +1 -1
  28. package/registry.json +20 -2
  29. package/src/Avatar.agent.test.tsx +63 -0
  30. package/src/Avatar.mdx +25 -0
  31. package/src/Avatar.stories.tsx +13 -0
  32. package/src/Avatar.tsx +51 -3
  33. package/src/AvatarGroup.tsx +3 -1
  34. package/src/ComposerTriggers.stories.tsx +2 -0
  35. package/src/ComposerTriggers.tsx +3 -1
  36. package/src/ConversationCard.tsx +4 -2
  37. package/src/LinkCard.tsx +3 -3
  38. package/src/LinkChip.tsx +1 -1
  39. package/src/LinkParts.tsx +4 -4
  40. package/src/LinkRow.tsx +1 -1
  41. package/src/MembersDialog.stories.tsx +11 -0
  42. package/src/MembersDialog.tsx +7 -3
  43. package/src/Person.tsx +4 -2
  44. package/src/PersonTrigger.tsx +3 -3
  45. package/src/PinnedComment.tsx +1 -1
  46. package/src/RepliesRow.tsx +2 -2
  47. package/src/linked.ts +4 -0
  48. package/src/linkedFrom.ts +5 -3
  49. package/src/registry/registry.test.ts +2 -1
package/dist/index.js CHANGED
@@ -977,12 +977,33 @@ var hueFor = (key) => {
977
977
  for (let i = 0; i < key.length; i++) h = h * 31 + key.charCodeAt(i) | 0;
978
978
  return HUES[Math.abs(h) % HUES.length];
979
979
  };
980
+ var groundFor = (hue) => `linear-gradient(160deg, color-mix(in srgb, ${hue} 92%, #fff) 0%, color-mix(in srgb, ${hue} 70%, #0b0d11) 100%)`;
980
981
  var initialsFor = (name) => {
981
982
  const words = name.split(/\s+/).slice(0, 2).filter((w) => /^[\p{L}\p{N}]/u.test(w));
982
983
  const initials = words.map((w) => w[0]).join("") || name.trim().charAt(0);
983
984
  return initials.toUpperCase();
984
985
  };
985
- function Avatar({ src, name, alt = "", size = 36, label: spoken, className }) {
986
+ var ROBOT_PATH = "M13.5 2C13.5 2.44425 13.3069 2.84339 13 3.11805V5H18C19.6569 5 21 6.34315 21 8V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V8C3 6.34315 4.34315 5 6 5H11V3.11805C10.6931 2.84339 10.5 2.44425 10.5 2C10.5 1.17157 11.1716 0.5 12 0.5C12.8284 0.5 13.5 1.17157 13.5 2ZM0 10H2V16H0V10ZM24 10H22V16H24V10ZM9 14.5C9.82843 14.5 10.5 13.8284 10.5 13C10.5 12.1716 9.82843 11.5 9 11.5C8.17157 11.5 7.5 12.1716 7.5 13C7.5 13.8284 8.17157 14.5 9 14.5ZM16.5 13C16.5 12.1716 15.8284 11.5 15 11.5C14.1716 11.5 13.5 12.1716 13.5 13C13.5 13.8284 14.1716 14.5 15 14.5C15.8284 14.5 16.5 13.8284 16.5 13Z";
987
+ var AGENT_HUE = "#d4ee4a";
988
+ function AgentFace({ size }) {
989
+ const glyph = Math.round(size * 0.625);
990
+ return /* @__PURE__ */ jsx13(
991
+ BaseAvatar.Fallback,
992
+ {
993
+ render: /* @__PURE__ */ jsx13("div", {}),
994
+ className: "w-full h-full flex items-center justify-center",
995
+ style: {
996
+ /* eslint-disable no-restricted-syntax -- @estiva-escape: one colour in every theme, on the initials' light
997
+ and shade, and their ink: a palette, as HUES, so none of it can be a token. */
998
+ background: groundFor(AGENT_HUE),
999
+ color: "#08121c"
1000
+ /* eslint-enable no-restricted-syntax */
1001
+ },
1002
+ children: /* @__PURE__ */ jsx13("svg", { width: glyph, height: glyph, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": true, children: /* @__PURE__ */ jsx13("path", { d: ROBOT_PATH }) })
1003
+ }
1004
+ );
1005
+ }
1006
+ function Avatar({ src, name, alt = "", size = 36, label: spoken, bot = false, className }) {
986
1007
  const label = name || alt;
987
1008
  const pictureFor = usePictureFor();
988
1009
  const picture = src ?? (label && pictureFor ? pictureFor(label) ?? void 0 : void 0);
@@ -1003,7 +1024,7 @@ function Avatar({ src, name, alt = "", size = 36, label: spoken, className }) {
1003
1024
  className: "w-full h-full object-cover data-[error]:hidden"
1004
1025
  }
1005
1026
  ),
1006
- label ? /* @__PURE__ */ jsx13(
1027
+ bot ? /* @__PURE__ */ jsx13(AgentFace, { size }) : label ? /* @__PURE__ */ jsx13(
1007
1028
  BaseAvatar.Fallback,
1008
1029
  {
1009
1030
  render: /* @__PURE__ */ jsx13("div", {}),
@@ -1017,7 +1038,7 @@ function Avatar({ src, name, alt = "", size = 36, label: spoken, className }) {
1017
1038
  // ink cannot be a token either.
1018
1039
  color: "#08121c",
1019
1040
  fontSize: Math.round(size * 0.36),
1020
- background: `linear-gradient(160deg, color-mix(in srgb, ${hueFor(label)} 92%, #fff) 0%, color-mix(in srgb, ${hueFor(label)} 70%, #0b0d11) 100%)`
1041
+ background: groundFor(hueFor(label))
1021
1042
  /* eslint-enable no-restricted-syntax */
1022
1043
  },
1023
1044
  children: /* @__PURE__ */ jsx13("span", { className: "[text-box:trim-both_cap_alphabetic]", children: initialsFor(label) })
@@ -1045,7 +1066,7 @@ function AvatarGroup({ members, size = 24, on = "surface" }) {
1045
1066
  {
1046
1067
  className: "relative flex rounded-sm",
1047
1068
  style: { marginRight: -overlap, boxShadow: `0 0 0 ${ring}px var(--bg-${on})` },
1048
- children: /* @__PURE__ */ jsx14(Avatar, { size, name: member.name, src: member.picture, label: member.name })
1069
+ children: /* @__PURE__ */ jsx14(Avatar, { size, name: member.name, src: member.picture, bot: member.bot, label: member.name })
1049
1070
  },
1050
1071
  i
1051
1072
  )
@@ -1892,8 +1913,8 @@ function MembersDialog({ members, count, self, candidates = [], onAdd, note, ini
1892
1913
  options: candidates,
1893
1914
  placeholder: "Search people...",
1894
1915
  excludeIds: members.map((m) => m.id),
1895
- chipLeading: (o) => /* @__PURE__ */ jsx26(Avatar, { name: o.label, src: o.picture, size: 16 }),
1896
- rowLeading: (o) => /* @__PURE__ */ jsx26(Avatar, { name: o.label, src: o.picture, size: 32 }),
1916
+ chipLeading: (o) => /* @__PURE__ */ jsx26(Avatar, { name: o.label, src: o.picture, bot: o.bot, size: 16 }),
1917
+ rowLeading: (o) => /* @__PURE__ */ jsx26(Avatar, { name: o.label, src: o.picture, bot: o.bot, size: 32 }),
1897
1918
  autoFocus: true
1898
1919
  }
1899
1920
  ) }) })
@@ -1936,7 +1957,7 @@ function MembersDialog({ members, count, self, candidates = [], onAdd, note, ini
1936
1957
  )
1937
1958
  ] }),
1938
1959
  roster.map((member) => /* @__PURE__ */ jsxs17("div", { className: "flex h-12 items-center gap-3 px-5", children: [
1939
- /* @__PURE__ */ jsx26(Avatar, { size: 32, name: member.name, src: member.picture }),
1960
+ /* @__PURE__ */ jsx26(Avatar, { size: 32, name: member.name, src: member.picture, bot: member.bot }),
1940
1961
  /* @__PURE__ */ jsxs17("div", { className: "flex min-w-0 flex-1 flex-col justify-center gap-[2px]", children: [
1941
1962
  /* @__PURE__ */ jsx26("div", { className: "truncate text-body-2 text-text-primary", children: member.name }),
1942
1963
  member.caption && /* @__PURE__ */ jsx26("div", { className: "truncate text-caption text-text-secondary", children: member.caption })
@@ -2858,13 +2879,13 @@ import { useCallback as useCallback3, useRef as useRef8 } from "react";
2858
2879
 
2859
2880
  // src/Person.tsx
2860
2881
  import { jsx as jsx36, jsxs as jsxs26 } from "react/jsx-runtime";
2861
- function Person({ name, picture, fallback = "\u2014", size = 20, className }) {
2882
+ function Person({ name, picture, bot, fallback = "\u2014", size = 20, className }) {
2862
2883
  return (
2863
2884
  // gap-2: the face-to-name distance is one rule (8px) wherever a person
2864
2885
  // appears — Katerina, 2026-09-01, set on Person so PersonTrigger and every
2865
2886
  // row agree by construction.
2866
2887
  /* @__PURE__ */ jsxs26("span", { className: cn("flex min-w-0 items-center gap-2", className), children: [
2867
- /* @__PURE__ */ jsx36(Avatar, { name, src: picture, size }),
2888
+ /* @__PURE__ */ jsx36(Avatar, { name, src: picture, bot, size }),
2868
2889
  /* @__PURE__ */ jsx36("span", { className: cn("truncate", !name && "text-text-muted"), children: name ?? fallback })
2869
2890
  ] })
2870
2891
  );
@@ -2874,7 +2895,7 @@ function Person({ name, picture, fallback = "\u2014", size = 20, className }) {
2874
2895
  import { Button as BaseButton7 } from "@base-ui/react/button";
2875
2896
  import { IconChevronDown as IconChevronDown2 } from "@tabler/icons-react";
2876
2897
  import { jsx as jsx37, jsxs as jsxs27 } from "react/jsx-runtime";
2877
- function PersonTrigger({ name, picture, fallback, size, open = false, compact = false, className, ...props }) {
2898
+ function PersonTrigger({ name, picture, bot, fallback, size, open = false, compact = false, className, ...props }) {
2878
2899
  if (compact) {
2879
2900
  return /* @__PURE__ */ jsx37(
2880
2901
  BaseButton7,
@@ -2885,7 +2906,7 @@ function PersonTrigger({ name, picture, fallback, size, open = false, compact =
2885
2906
  "aria-label": props["aria-label"] ?? name ?? fallback,
2886
2907
  className: cn("cursor-pointer rounded-full", className),
2887
2908
  ...props,
2888
- children: /* @__PURE__ */ jsx37(Avatar, { name, src: picture, size: size ?? 36 })
2909
+ children: /* @__PURE__ */ jsx37(Avatar, { name, src: picture, bot, size: size ?? 36 })
2889
2910
  }
2890
2911
  );
2891
2912
  }
@@ -2909,7 +2930,7 @@ function PersonTrigger({ name, picture, fallback, size, open = false, compact =
2909
2930
  ),
2910
2931
  ...props,
2911
2932
  children: [
2912
- /* @__PURE__ */ jsx37(Person, { name, picture, fallback, size: size ?? 22 }),
2933
+ /* @__PURE__ */ jsx37(Person, { name, picture, bot, fallback, size: size ?? 22 }),
2913
2934
  /* @__PURE__ */ jsx37(IconChevronDown2, { size: 14, stroke: 1.5, className: "shrink-0 text-text-muted" })
2914
2935
  ]
2915
2936
  }
@@ -4462,7 +4483,7 @@ function childrenOf(object, options) {
4462
4483
  href: options.hrefOf(child, false),
4463
4484
  ...key ? { key } : {},
4464
4485
  status: { label: status?.value ?? nounOf(child) ?? "File", colour: colourOf(status?.colour) ?? "muted" },
4465
- ...person?.displayName ? { owner: { name: person.displayName, ...person.picture ? { picture: person.picture } : {} } } : {}
4486
+ ...person?.displayName ? { owner: { name: person.displayName, ...person.picture ? { picture: person.picture } : {}, ...person.bot ? { bot: true } : {} } } : {}
4466
4487
  };
4467
4488
  });
4468
4489
  }
@@ -4508,7 +4529,7 @@ function ownerOf(object, options, onAct) {
4508
4529
  if (!slot) return void 0;
4509
4530
  const person = people?.[slot.value];
4510
4531
  return {
4511
- owner: { value: slot.value, options: [{ value: slot.value, label: person?.displayName ?? "\u2014", ...person?.picture ? { picture: person.picture } : {} }] },
4532
+ owner: { value: slot.value, options: [{ value: slot.value, label: person?.displayName ?? "\u2014", ...person?.picture ? { picture: person.picture } : {}, ...person?.bot ? { bot: true } : {} }] },
4512
4533
  ...slot.label ? { ownerLabel: slot.label } : {}
4513
4534
  };
4514
4535
  }
@@ -4534,7 +4555,7 @@ function linkedFrom(object, options) {
4534
4555
  kind: "message",
4535
4556
  title: name,
4536
4557
  href,
4537
- author: { name, ...person?.picture ? { picture: person.picture } : {} },
4558
+ author: { name, ...person?.picture ? { picture: person.picture } : {}, ...person?.bot ? { bot: true } : {} },
4538
4559
  ...body ? { body } : {},
4539
4560
  ...updated ? { updated } : {}
4540
4561
  };
@@ -4617,7 +4638,7 @@ function kindNounOf(linked) {
4617
4638
  return linked.noun ?? KIND_NOUN[linked.kind];
4618
4639
  }
4619
4640
  function LinkTile({ kind, author }) {
4620
- if (author) return /* @__PURE__ */ jsx61(Avatar, { name: author.name, src: author.picture, size: 36 });
4641
+ if (author) return /* @__PURE__ */ jsx61(Avatar, { name: author.name, src: author.picture, bot: author.bot, size: 36 });
4621
4642
  return /* @__PURE__ */ jsx61("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx61(LinkedIcon, { kind }) });
4622
4643
  }
4623
4644
  function ProgressRing({ done, total }) {
@@ -4671,7 +4692,7 @@ function CommentCount({ conversation, noun = "comments" }) {
4671
4692
  }
4672
4693
  function OwnerFace({ option }) {
4673
4694
  const nobody = !option || option.value === "";
4674
- return /* @__PURE__ */ jsx61(Avatar, { name: nobody ? void 0 : option.label, src: nobody ? void 0 : option.picture, size: 16 });
4695
+ return /* @__PURE__ */ jsx61(Avatar, { name: nobody ? void 0 : option.label, src: nobody ? void 0 : option.picture, bot: !nobody && option.bot, size: 16 });
4675
4696
  }
4676
4697
  function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false, disabledReason }) {
4677
4698
  const statusNow = chosenOf(status);
@@ -4785,7 +4806,7 @@ function LinkRow({ link, preview = true }) {
4785
4806
  /* @__PURE__ */ jsxs42("span", { className: "flex h-[19.6px] shrink-0 items-center gap-2 self-start", children: [
4786
4807
  linked.done ? /* @__PURE__ */ jsx62(ProgressRing, { done: linked.done.done, total: linked.done.total }) : status?.colour && /* @__PURE__ */ jsx62(StatusMark, { status: { label: status.label, colour: status.colour } }),
4787
4808
  linked.conversation && /* @__PURE__ */ jsx62(CommentCount, { conversation: linked.conversation, noun: linked.conversation.noun }),
4788
- owner && /* @__PURE__ */ jsx62(Avatar, { name: owner.label, src: owner.picture, size: 16 }),
4809
+ owner && /* @__PURE__ */ jsx62(Avatar, { name: owner.label, src: owner.picture, bot: owner.bot, size: 16 }),
4789
4810
  linked.members && /* @__PURE__ */ jsx62(AvatarGroup, { members: linked.members, size: 16, on: "inset" }),
4790
4811
  linked.authors && /* @__PURE__ */ jsx62(AvatarGroup, { members: linked.authors, size: 16, on: "inset" })
4791
4812
  ] })
@@ -4838,14 +4859,14 @@ function CardBody({ linked, readOnly }) {
4838
4859
  /* @__PURE__ */ jsx63(StatusMark, { status: child.status }),
4839
4860
  child.key && /* @__PURE__ */ jsx63(LinkKey, { children: child.key }),
4840
4861
  /* @__PURE__ */ jsx63("span", { className: "contents text-body-2 text-text-primary", children: boxed || !child.href ? /* @__PURE__ */ jsx63("span", { className: "min-w-0 flex-1 truncate", children: child.title }) : /* @__PURE__ */ jsx63(Link, { href: child.href, variant: "quiet", cover: true, truncate: true, className: "min-w-0 flex-1", children: child.title }) }),
4841
- child.owner ? /* @__PURE__ */ jsx63(Avatar, { name: child.owner.name, src: child.owner.picture, size: 16 }) : /* @__PURE__ */ jsx63("span", { className: "size-4 shrink-0", "aria-hidden": true })
4862
+ child.owner ? /* @__PURE__ */ jsx63(Avatar, { name: child.owner.name, src: child.owner.picture, bot: child.owner.bot, size: 16 }) : /* @__PURE__ */ jsx63("span", { className: "size-4 shrink-0", "aria-hidden": true })
4842
4863
  ] }, child.id)) }),
4843
4864
  linked.latest && // 12px between the words "Latest conversation" and the quote they name (Katerina, 29 Oct).
4844
4865
  /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-3", children: [
4845
4866
  /* @__PURE__ */ jsx63("span", { className: "text-caption text-text-muted", children: "Latest conversation" }),
4846
4867
  /* @__PURE__ */ jsxs43("div", { className: cn("flex flex-col gap-1", QUOTE_BAR_CLASSES), children: [
4847
4868
  /* @__PURE__ */ jsxs43("span", { className: "flex items-center gap-2 text-caption", children: [
4848
- /* @__PURE__ */ jsx63(Avatar, { name: linked.latest.author.name, src: linked.latest.author.picture, size: 16 }),
4869
+ /* @__PURE__ */ jsx63(Avatar, { name: linked.latest.author.name, src: linked.latest.author.picture, bot: linked.latest.author.bot, size: 16 }),
4849
4870
  /* @__PURE__ */ jsx63("span", { className: "text-text-primary", children: linked.latest.author.name }),
4850
4871
  /* @__PURE__ */ jsx63("span", { className: cn("text-text-muted", TIME_CLASSES), children: linked.latest.at })
4851
4872
  ] }),
@@ -4871,7 +4892,7 @@ function SaidBody({ linked }) {
4871
4892
  const author = linked.author;
4872
4893
  return /* @__PURE__ */ jsxs43(Fragment14, { children: [
4873
4894
  /* @__PURE__ */ jsxs43("div", { className: "flex items-center gap-2", children: [
4874
- /* @__PURE__ */ jsx63(Avatar, { name: author.name, src: author.picture, size: 24 }),
4895
+ /* @__PURE__ */ jsx63(Avatar, { name: author.name, src: author.picture, bot: author.bot, size: 24 }),
4875
4896
  /* @__PURE__ */ jsx63("span", { className: "text-body-2-strong text-text-primary", children: linked.updated ? author.name : /* @__PURE__ */ jsx63(CardLink, { href: linked.href, children: author.name }) }),
4876
4897
  linked.updated && /* @__PURE__ */ jsx63("span", { className: cn("text-caption text-text-muted", TIME_CLASSES), children: /* @__PURE__ */ jsx63(CardLink, { href: linked.href, children: linked.updated }) })
4877
4898
  ] }),
@@ -4964,7 +4985,7 @@ function LinkChip({ link, preview = true }) {
4964
4985
  const chip = /* @__PURE__ */ jsxs44(
4965
4986
  InlineChip,
4966
4987
  {
4967
- icon: said ? /* @__PURE__ */ jsx65(Avatar, { name: said.name, src: said.picture, size: 14 }) : /* @__PURE__ */ jsx65(LinkedIcon, { kind: linked.kind, size: 14, tone: "inherit" }),
4988
+ icon: said ? /* @__PURE__ */ jsx65(Avatar, { name: said.name, src: said.picture, bot: said.bot, size: 14 }) : /* @__PURE__ */ jsx65(LinkedIcon, { kind: linked.kind, size: 14, tone: "inherit" }),
4968
4989
  href: linked.href || void 0,
4969
4990
  className: preview ? "min-w-0 max-w-[40ch]" : "max-w-[min(40ch,calc(100%_-_4px))]",
4970
4991
  children: [
@@ -5310,7 +5331,7 @@ function RepliesRow({ count, faces, last, isNew = false, urgent = false, onOpen,
5310
5331
  const withFaces = !!faces && faces.length > 0;
5311
5332
  const label = `${count} ${count === 1 ? "reply" : "replies"}`;
5312
5333
  const inner = /* @__PURE__ */ jsxs53(Fragment18, { children: [
5313
- withFaces && /* @__PURE__ */ jsx77("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ jsx77(AvatarGroup, { size: 18, members: faces.map((f) => ({ name: f.name, picture: f.picture })) }) }),
5334
+ withFaces && /* @__PURE__ */ jsx77("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ jsx77(AvatarGroup, { size: 18, members: faces.map((f) => ({ name: f.name, picture: f.picture, bot: f.bot })) }) }),
5314
5335
  /* @__PURE__ */ jsx77(
5315
5336
  IconMessage24,
5316
5337
  {
@@ -5432,7 +5453,7 @@ import { Fragment as Fragment20, jsx as jsx79, jsxs as jsxs55 } from "react/jsx-
5432
5453
  function Head({ author, time, timeHref, edited, isNew, urgent, meta }) {
5433
5454
  return /* @__PURE__ */ jsxs55("div", { className: "flex w-full items-center gap-2", children: [
5434
5455
  /* @__PURE__ */ jsxs55("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
5435
- /* @__PURE__ */ jsx79("span", { "data-face": true, className: "relative flex shrink-0", children: /* @__PURE__ */ jsx79(Avatar, { size: 24, src: author.picture, alt: author.name }) }),
5456
+ /* @__PURE__ */ jsx79("span", { "data-face": true, className: "relative flex shrink-0", children: /* @__PURE__ */ jsx79(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot }) }),
5436
5457
  /* @__PURE__ */ jsx79("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
5437
5458
  timeHref ? /* @__PURE__ */ jsx79(WithTooltip, { label: "Link to this", wrapperClassName: "shrink-0", children: /* @__PURE__ */ jsx79(MetaText, { className: "contents", children: /* @__PURE__ */ jsx79(Link, { href: timeHref, variant: "quiet", "data-interactive": true, children: time }) }) }) : /* @__PURE__ */ jsx79(MetaText, { className: "shrink-0", children: time }),
5438
5459
  /* @__PURE__ */ jsx79(EditedMarker, { edited }),
@@ -5483,7 +5504,7 @@ function Reactions({ reactions, refused, readOnly }) {
5483
5504
  }
5484
5505
  function Editing({ author, children }) {
5485
5506
  return /* @__PURE__ */ jsx79("div", { className: "p-2", children: /* @__PURE__ */ jsxs55("div", { className: "flex items-start gap-2", children: [
5486
- /* @__PURE__ */ jsx79(Avatar, { size: 24, src: author.picture, alt: author.name, className: "mt-1 shrink-0" }),
5507
+ /* @__PURE__ */ jsx79(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot, className: "mt-1 shrink-0" }),
5487
5508
  /* @__PURE__ */ jsx79("div", { className: "min-w-0 flex-1", children })
5488
5509
  ] }) });
5489
5510
  }
@@ -5903,7 +5924,7 @@ import { jsx as jsx83, jsxs as jsxs60 } from "react/jsx-runtime";
5903
5924
  function PinnedComment({ author, time, words, deleted = false }) {
5904
5925
  return /* @__PURE__ */ jsx83(Card, { fill: "elevated", clip: true, children: deleted ? /* @__PURE__ */ jsx83("p", { className: "p-2 text-caption italic text-text-muted", children: "This comment was deleted." }) : /* @__PURE__ */ jsxs60("div", { className: "flex flex-col p-2", children: [
5905
5926
  /* @__PURE__ */ jsxs60("div", { className: "flex items-center gap-2", children: [
5906
- /* @__PURE__ */ jsx83(Avatar, { size: 24, src: author.picture, alt: author.name }),
5927
+ /* @__PURE__ */ jsx83(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot }),
5907
5928
  /* @__PURE__ */ jsx83("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
5908
5929
  /* @__PURE__ */ jsx83(MetaText, { className: "shrink-0", children: time })
5909
5930
  ] }),