@linktr.ee/messaging-react 4.5.1 → 4.6.0-rc-1788330362

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
@@ -576,13 +576,13 @@ var xt = ({ id: e, image: t, size: n = 40, className: r, starred: i = !1, shape:
576
576
  _.state?.members,
577
577
  v?.userID,
578
578
  _.type
579
- ]), b = ht(y?.user), x = y?.user?.image, S = ut(_), C = Ot(_.data?.customer_tag) && y?.is_follower === !0, w = r && S, T = C || w || !!g, E = async () => {
579
+ ]), b = ht(y?.user), x = y?.user?.image, S = ut(_), C = Ot(_.data?.customer_tag) && y?.is_follower === !0, w = C || S || !!g, T = async () => {
580
580
  try {
581
581
  S ? await _.unpin() : await _.pin();
582
582
  } catch (e) {
583
583
  console.error("[ChannelHeaderRedesign] Failed to update pinned status:", e);
584
584
  }
585
- }, D = /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(xt, {
585
+ }, E = /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(xt, {
586
586
  id: y?.user?.id || _.id || "unknown",
587
587
  name: b,
588
588
  image: x,
@@ -590,13 +590,13 @@ var xt = ({ id: e, image: t, size: n = 40, className: r, starred: i = !1, shape:
590
590
  size: 48,
591
591
  className: "-mb-2"
592
592
  }), /* @__PURE__ */ K("span", {
593
- className: X("relative z-10 flex max-w-full flex-col items-center justify-center rounded-full border border-white/10 bg-white/65 py-1.5 shadow-[0px_0px_0px_0px_rgba(0,0,0,0.04),0px_1px_2px_0px_rgba(0,0,0,0.04),0px_8px_32px_0px_rgba(0,0,0,0.1)] backdrop-blur-[2px] transition-filter duration-150 group-hover:brightness-95", T ? "pl-3 pr-2" : "px-3"),
593
+ className: X("relative z-10 flex max-w-full flex-col items-center justify-center rounded-full border border-white/10 bg-white/65 py-1.5 shadow-[0px_0px_0px_0px_rgba(0,0,0,0.04),0px_1px_2px_0px_rgba(0,0,0,0.04),0px_8px_32px_0px_rgba(0,0,0,0.1)] backdrop-blur-[2px] transition-filter duration-150 group-hover:brightness-95", w ? "pl-3 pr-2" : "px-3"),
594
594
  children: /* @__PURE__ */ q("span", {
595
595
  className: "flex max-w-full items-center justify-center",
596
596
  children: [/* @__PURE__ */ K("span", {
597
597
  className: "min-w-0 truncate text-sm font-bold leading-[1.43] tracking-[0.28px] text-black/90",
598
598
  children: b
599
- }), T && /* @__PURE__ */ q("span", {
599
+ }), w && /* @__PURE__ */ q("span", {
600
600
  className: "ml-2 flex gap-1",
601
601
  children: [
602
602
  C && /* @__PURE__ */ K("span", {
@@ -607,7 +607,7 @@ var xt = ({ id: e, image: t, size: n = 40, className: r, starred: i = !1, shape:
607
607
  weight: "bold"
608
608
  })
609
609
  }),
610
- w && /* @__PURE__ */ K("span", {
610
+ S && /* @__PURE__ */ K("span", {
611
611
  className: "messaging-header-star-badge flex overflow-hidden",
612
612
  children: /* @__PURE__ */ K("span", {
613
613
  "aria-label": "Starred conversation",
@@ -650,17 +650,17 @@ var xt = ({ id: e, image: t, size: n = 40, className: r, starred: i = !1, shape:
650
650
  onClick: g,
651
651
  "aria-label": `View details for ${b}`,
652
652
  className: "group flex min-w-0 max-w-full appearance-none flex-col items-center border-0 bg-transparent px-2 focus-ring focus-visible:outline-none",
653
- children: D
653
+ children: E
654
654
  }) : /* @__PURE__ */ K("div", {
655
655
  className: "flex min-w-0 max-w-full flex-col items-center px-2",
656
- children: D
656
+ children: E
657
657
  })
658
658
  }),
659
659
  /* @__PURE__ */ q("div", {
660
660
  className: "flex items-start justify-end gap-2",
661
661
  children: [r && /* @__PURE__ */ K("button", {
662
662
  className: Et,
663
- onClick: E,
663
+ onClick: T,
664
664
  type: "button",
665
665
  "aria-pressed": S,
666
666
  "aria-label": S ? "Unstar conversation" : "Star conversation",