@linktr.ee/messaging-react 4.5.1 → 4.6.0-rc-1788328793
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +103 -101
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/ChannelHeader.tsx +5 -3
- package/src/components/ChannelView.test.tsx +36 -0
- package/src/components/ChannelView.tsx +5 -0
- package/src/types.ts +8 -0
package/dist/index.d.ts
CHANGED
|
@@ -298,6 +298,13 @@ export declare interface ChannelViewProps {
|
|
|
298
298
|
* and filter by starred/pinned status.
|
|
299
299
|
*/
|
|
300
300
|
showStarButton?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* Show the starred badge next to the participant name in the channel header
|
|
303
|
+
* when the channel is starred. Defaults to `showStarButton`, so hosts that
|
|
304
|
+
* replace the star button with their own control (e.g. a context menu via
|
|
305
|
+
* `renderChannelActions`) can keep the badge by passing this explicitly.
|
|
306
|
+
*/
|
|
307
|
+
showStarBadge?: boolean;
|
|
301
308
|
/**
|
|
302
309
|
* @deprecated No longer rendered. The redesigned header shows built-in paid
|
|
303
310
|
* and starred badges instead. Kept temporarily so existing call sites type-check.
|
package/dist/index.js
CHANGED
|
@@ -571,35 +571,35 @@ var xt = ({ id: e, image: t, size: n = 40, className: r, starred: i = !1, shape:
|
|
|
571
571
|
})
|
|
572
572
|
})]
|
|
573
573
|
});
|
|
574
|
-
}, Et = "flex size-10 flex-shrink-0 items-center justify-center rounded-full bg-white/65 shadow-[0px_4px_8px_0px_rgba(0,0,0,0.06),0px_0px_0px_1px_rgba(0,0,0,0.04)] backdrop-blur-[40px] transition-filter duration-150 hover:brightness-95 aria-expanded:brightness-95 focus-ring", Dt = "CUSTOMER_PAID", Ot = (e) => typeof e == "string" && e.trim().replace(/[\s-]+/g, "_").toUpperCase() === Dt, kt = ({ className: e, onBack: t, showBackButton: n, showStarButton: r = !1,
|
|
575
|
-
let { channel:
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
]),
|
|
574
|
+
}, Et = "flex size-10 flex-shrink-0 items-center justify-center rounded-full bg-white/65 shadow-[0px_4px_8px_0px_rgba(0,0,0,0.06),0px_0px_0px_1px_rgba(0,0,0,0.04)] backdrop-blur-[40px] transition-filter duration-150 hover:brightness-95 aria-expanded:brightness-95 focus-ring", Dt = "CUSTOMER_PAID", Ot = (e) => typeof e == "string" && e.trim().replace(/[\s-]+/g, "_").toUpperCase() === Dt, kt = ({ className: e, onBack: t, showBackButton: n, showStarButton: r = !1, showStarBadge: i = r, onLeaveConversation: a, onBlockParticipant: s, showDeleteConversation: c = !0, showBlockParticipant: l = !0, showReportParticipant: u = !0, onDeleteConversationClick: d, onBlockParticipantClick: f, onReportParticipantClick: p, customChannelActions: m, renderChannelActions: h, showChannelInfo: g = !0, onParticipantNameClick: _ }) => {
|
|
575
|
+
let { channel: v } = _e(), { client: y } = ve(), b = o.useMemo(() => dt(v.state?.members, y?.userID, v.type), [
|
|
576
|
+
v.state?.members,
|
|
577
|
+
y?.userID,
|
|
578
|
+
v.type
|
|
579
|
+
]), x = ht(b?.user), S = b?.user?.image, C = ut(v), w = Ot(v.data?.customer_tag) && b?.is_follower === !0, T = i && C, E = w || T || !!_, D = async () => {
|
|
580
580
|
try {
|
|
581
|
-
|
|
581
|
+
C ? await v.unpin() : await v.pin();
|
|
582
582
|
} catch (e) {
|
|
583
583
|
console.error("[ChannelHeaderRedesign] Failed to update pinned status:", e);
|
|
584
584
|
}
|
|
585
|
-
},
|
|
586
|
-
id:
|
|
587
|
-
name:
|
|
588
|
-
image:
|
|
585
|
+
}, O = /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(xt, {
|
|
586
|
+
id: b?.user?.id || v.id || "unknown",
|
|
587
|
+
name: x,
|
|
588
|
+
image: S,
|
|
589
589
|
shape: "circle",
|
|
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",
|
|
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", E ? "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
|
-
children:
|
|
599
|
-
}),
|
|
598
|
+
children: x
|
|
599
|
+
}), E && /* @__PURE__ */ q("span", {
|
|
600
600
|
className: "ml-2 flex gap-1",
|
|
601
601
|
children: [
|
|
602
|
-
|
|
602
|
+
w && /* @__PURE__ */ K("span", {
|
|
603
603
|
"aria-label": "Paid customer",
|
|
604
604
|
className: "flex size-4 shrink-0 items-center justify-center rounded-full bg-[#34C759] text-white",
|
|
605
605
|
children: /* @__PURE__ */ K(Pe, {
|
|
@@ -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
|
-
|
|
610
|
+
T && /* @__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",
|
|
@@ -618,7 +618,7 @@ var xt = ({ id: e, image: t, size: n = 40, className: r, starred: i = !1, shape:
|
|
|
618
618
|
})
|
|
619
619
|
})
|
|
620
620
|
}),
|
|
621
|
-
|
|
621
|
+
_ && /* @__PURE__ */ K(Me, {
|
|
622
622
|
"aria-hidden": "true",
|
|
623
623
|
className: "size-4 shrink-0 text-black/65",
|
|
624
624
|
weight: "bold"
|
|
@@ -645,46 +645,46 @@ var xt = ({ id: e, image: t, size: n = 40, className: r, starred: i = !1, shape:
|
|
|
645
645
|
/* @__PURE__ */ K("div", {
|
|
646
646
|
className: "flex min-w-0 justify-center",
|
|
647
647
|
"data-dd-privacy": "mask",
|
|
648
|
-
children:
|
|
648
|
+
children: _ ? /* @__PURE__ */ K("button", {
|
|
649
649
|
type: "button",
|
|
650
|
-
onClick:
|
|
651
|
-
"aria-label": `View details for ${
|
|
650
|
+
onClick: _,
|
|
651
|
+
"aria-label": `View details for ${x}`,
|
|
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:
|
|
653
|
+
children: O
|
|
654
654
|
}) : /* @__PURE__ */ K("div", {
|
|
655
655
|
className: "flex min-w-0 max-w-full flex-col items-center px-2",
|
|
656
|
-
children:
|
|
656
|
+
children: O
|
|
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:
|
|
663
|
+
onClick: D,
|
|
664
664
|
type: "button",
|
|
665
|
-
"aria-pressed":
|
|
666
|
-
"aria-label":
|
|
665
|
+
"aria-pressed": C,
|
|
666
|
+
"aria-label": C ? "Unstar conversation" : "Star conversation",
|
|
667
667
|
children: /* @__PURE__ */ K(Je, {
|
|
668
668
|
className: X("size-5", {
|
|
669
|
-
"text-[#FFD60A]":
|
|
670
|
-
"text-black/90": !
|
|
669
|
+
"text-[#FFD60A]": C,
|
|
670
|
+
"text-black/90": !C
|
|
671
671
|
}),
|
|
672
|
-
weight:
|
|
672
|
+
weight: C ? "fill" : "regular"
|
|
673
673
|
})
|
|
674
|
-
}),
|
|
675
|
-
channel:
|
|
676
|
-
participant:
|
|
677
|
-
showDeleteConversation:
|
|
678
|
-
showBlockParticipant:
|
|
679
|
-
showReportParticipant:
|
|
680
|
-
onLeaveConversation:
|
|
681
|
-
onBlockParticipant:
|
|
682
|
-
onDeleteConversationClick:
|
|
683
|
-
onBlockParticipantClick:
|
|
684
|
-
onReportParticipantClick:
|
|
685
|
-
customChannelActions:
|
|
674
|
+
}), g && (h === void 0 ? /* @__PURE__ */ K(Tt, {
|
|
675
|
+
channel: v,
|
|
676
|
+
participant: b,
|
|
677
|
+
showDeleteConversation: c,
|
|
678
|
+
showBlockParticipant: l,
|
|
679
|
+
showReportParticipant: u,
|
|
680
|
+
onLeaveConversation: a,
|
|
681
|
+
onBlockParticipant: s,
|
|
682
|
+
onDeleteConversationClick: d,
|
|
683
|
+
onBlockParticipantClick: f,
|
|
684
|
+
onReportParticipantClick: p,
|
|
685
|
+
customChannelActions: m,
|
|
686
686
|
triggerClassName: Et
|
|
687
|
-
}) :
|
|
687
|
+
}) : h)]
|
|
688
688
|
})
|
|
689
689
|
]
|
|
690
690
|
})
|
|
@@ -3353,19 +3353,20 @@ var ha = () => null, ga = ({ className: e, message: t }) => /* @__PURE__ */ q("d
|
|
|
3353
3353
|
_a.displayName = "LoadingState";
|
|
3354
3354
|
//#endregion
|
|
3355
3355
|
//#region src/components/ChannelView.tsx
|
|
3356
|
-
var va = ({ onBack: e, showBackButton: t, renderMessageInputActions: n, renderMessageInputFooter: r, renderConversationFooter: i, onLeaveConversation: a, onBlockParticipant: s, showDeleteConversation: c = !0, onDeleteConversationClick: u, onBlockParticipantClick: f, onReportParticipantClick: p, showBlockParticipant: h = !0, showReportParticipant: g = !0, composerDisabled: _ = !1, composerDisabledReason: v, showStarButton: y = !1,
|
|
3357
|
-
let { channel:
|
|
3356
|
+
var va = ({ onBack: e, showBackButton: t, renderMessageInputActions: n, renderMessageInputFooter: r, renderConversationFooter: i, onLeaveConversation: a, onBlockParticipant: s, showDeleteConversation: c = !0, onDeleteConversationClick: u, onBlockParticipantClick: f, onReportParticipantClick: p, showBlockParticipant: h = !0, showReportParticipant: g = !0, composerDisabled: _ = !1, composerDisabledReason: v, showStarButton: y = !1, showStarBadge: b, renderChannelBanner: x, customChannelActions: S, renderChannelActions: C, renderMessage: w, viewerLanguage: T, showChannelInfo: E = !0, onParticipantNameClick: D, onOutboundClick: O, resolveOutbound: k, composerInput: A }) => {
|
|
3357
|
+
let { channel: j, messages: M } = _e(), N = m(O);
|
|
3358
3358
|
d(() => {
|
|
3359
|
-
|
|
3360
|
-
}, [
|
|
3361
|
-
let
|
|
3362
|
-
|
|
3363
|
-
}, []),
|
|
3359
|
+
N.current = O;
|
|
3360
|
+
}, [O]);
|
|
3361
|
+
let P = l((e) => {
|
|
3362
|
+
N.current?.(e);
|
|
3363
|
+
}, []), F = O ? P : void 0, L = Fn(M, k), R = j.state.messages.some((e) => e.type !== "deleted"), z = x ? /* @__PURE__ */ K(o.Fragment, { children: x() }, "lt-channel-banner") : null, B = /* @__PURE__ */ K(kt, {
|
|
3364
3364
|
className: "-mx-[var(--str-chat\\_\\_spacing-2)] px-[var(--str-chat\\_\\_spacing-2)] md:-mx-[min(var(--str-chat\\_\\_spacing-10),4%)] md:px-[min(var(--str-chat\\_\\_spacing-10),4%)]",
|
|
3365
3365
|
onBack: e,
|
|
3366
3366
|
showBackButton: t,
|
|
3367
|
-
showChannelInfo:
|
|
3367
|
+
showChannelInfo: E,
|
|
3368
3368
|
showStarButton: y,
|
|
3369
|
+
showStarBadge: b,
|
|
3369
3370
|
onLeaveConversation: a,
|
|
3370
3371
|
onBlockParticipant: s,
|
|
3371
3372
|
showDeleteConversation: c,
|
|
@@ -3374,87 +3375,87 @@ var va = ({ onBack: e, showBackButton: t, renderMessageInputActions: n, renderMe
|
|
|
3374
3375
|
onDeleteConversationClick: u,
|
|
3375
3376
|
onBlockParticipantClick: f,
|
|
3376
3377
|
onReportParticipantClick: p,
|
|
3377
|
-
customChannelActions:
|
|
3378
|
-
renderChannelActions:
|
|
3379
|
-
onParticipantNameClick:
|
|
3380
|
-
}),
|
|
3378
|
+
customChannelActions: S,
|
|
3379
|
+
renderChannelActions: C,
|
|
3380
|
+
onParticipantNameClick: D
|
|
3381
|
+
}), ee = l((e) => {
|
|
3381
3382
|
let { message: t } = H("ChannelView"), n = /* @__PURE__ */ K(Bi, {
|
|
3382
3383
|
...e,
|
|
3383
|
-
viewerLanguage:
|
|
3384
|
-
onOutboundClick:
|
|
3384
|
+
viewerLanguage: T,
|
|
3385
|
+
onOutboundClick: F
|
|
3385
3386
|
});
|
|
3386
|
-
return !
|
|
3387
|
+
return !w || !t ? n : w(n, t);
|
|
3387
3388
|
}, [
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3389
|
+
F,
|
|
3390
|
+
w,
|
|
3391
|
+
T
|
|
3391
3392
|
]);
|
|
3392
3393
|
return /* @__PURE__ */ K(jn.Provider, {
|
|
3393
|
-
value:
|
|
3394
|
+
value: L,
|
|
3394
3395
|
children: /* @__PURE__ */ K(ae, {
|
|
3395
3396
|
overrides: {
|
|
3396
|
-
Message:
|
|
3397
|
+
Message: ee,
|
|
3397
3398
|
MessageActions: Ui,
|
|
3398
3399
|
UnreadMessagesNotification: () => null,
|
|
3399
3400
|
UnreadMessagesSeparator: () => null
|
|
3400
3401
|
},
|
|
3401
|
-
children: /* @__PURE__ */ K(ie, { children:
|
|
3402
|
+
children: /* @__PURE__ */ K(ie, { children: A ? /* @__PURE__ */ q("div", {
|
|
3402
3403
|
className: "messaging-channel-layout relative flex min-h-0 flex-1 flex-col",
|
|
3403
3404
|
children: [/* @__PURE__ */ q("div", {
|
|
3404
3405
|
className: "messaging-channel-message-list messaging-channel-message-list--floating relative min-h-0 flex-1 overflow-hidden",
|
|
3405
|
-
children: [!
|
|
3406
|
+
children: [!R && /* @__PURE__ */ K("div", {
|
|
3406
3407
|
className: "str-chat__list",
|
|
3407
3408
|
children: /* @__PURE__ */ q("div", {
|
|
3408
3409
|
className: "str-chat__message-list-scroll",
|
|
3409
|
-
children: [
|
|
3410
|
+
children: [B, z]
|
|
3410
3411
|
})
|
|
3411
3412
|
}), /* @__PURE__ */ K(I, {
|
|
3412
|
-
head:
|
|
3413
|
+
head: R ? /* @__PURE__ */ q("div", {
|
|
3413
3414
|
className: "sticky top-0 z-10",
|
|
3414
|
-
children: [
|
|
3415
|
+
children: [B, z]
|
|
3415
3416
|
}) : void 0,
|
|
3416
3417
|
hideDeletedMessages: !0,
|
|
3417
3418
|
hideNewMessageSeparator: !1
|
|
3418
3419
|
})]
|
|
3419
3420
|
}, "lt-channel-message-list"), /* @__PURE__ */ K(Qi, {
|
|
3420
|
-
...n && { renderActions: () => n?.(
|
|
3421
|
-
...i && { renderHeader: () => i(
|
|
3422
|
-
renderFooter: () => r?.(
|
|
3421
|
+
...n && { renderActions: () => n?.(j) },
|
|
3422
|
+
...i && { renderHeader: () => i(j) },
|
|
3423
|
+
renderFooter: () => r?.(j),
|
|
3423
3424
|
disabled: _,
|
|
3424
3425
|
disabledReason: v,
|
|
3425
|
-
composerInput:
|
|
3426
|
+
composerInput: A
|
|
3426
3427
|
}, "lt-channel-message-input")]
|
|
3427
3428
|
}) : /* @__PURE__ */ q(G, { children: [
|
|
3428
3429
|
/* @__PURE__ */ q("div", {
|
|
3429
3430
|
className: "flex-1 overflow-hidden relative",
|
|
3430
|
-
children: [!
|
|
3431
|
+
children: [!R && /* @__PURE__ */ K("div", {
|
|
3431
3432
|
className: "str-chat__list",
|
|
3432
3433
|
children: /* @__PURE__ */ q("div", {
|
|
3433
3434
|
className: "str-chat__message-list-scroll",
|
|
3434
|
-
children: [
|
|
3435
|
+
children: [B, z]
|
|
3435
3436
|
})
|
|
3436
3437
|
}), /* @__PURE__ */ K(I, {
|
|
3437
|
-
head:
|
|
3438
|
+
head: R ? /* @__PURE__ */ q("div", {
|
|
3438
3439
|
className: "sticky top-0 z-10",
|
|
3439
|
-
children: [
|
|
3440
|
+
children: [B, z]
|
|
3440
3441
|
}) : void 0,
|
|
3441
3442
|
hideDeletedMessages: !0,
|
|
3442
3443
|
hideNewMessageSeparator: !1
|
|
3443
3444
|
})]
|
|
3444
3445
|
}, "lt-channel-message-list"),
|
|
3445
|
-
i ? /* @__PURE__ */ K(o.Fragment, { children: i(
|
|
3446
|
+
i ? /* @__PURE__ */ K(o.Fragment, { children: i(j) }, "lt-channel-conversation-footer") : null,
|
|
3446
3447
|
/* @__PURE__ */ K(Qi, {
|
|
3447
|
-
...n && { renderActions: () => n?.(
|
|
3448
|
-
renderFooter: () => r?.(
|
|
3448
|
+
...n && { renderActions: () => n?.(j) },
|
|
3449
|
+
renderFooter: () => r?.(j),
|
|
3449
3450
|
disabled: _,
|
|
3450
3451
|
disabledReason: v,
|
|
3451
|
-
composerInput:
|
|
3452
|
+
composerInput: A
|
|
3452
3453
|
}, "lt-channel-message-input")
|
|
3453
3454
|
] }) })
|
|
3454
3455
|
})
|
|
3455
3456
|
});
|
|
3456
|
-
}, ya = o.memo(({ channel: e, onBack: t, showBackButton: n = !1, renderMessageInputActions: r, renderMessageInputFooter: i, renderConversationFooter: a, onLeaveConversation: o, onBlockParticipant: s, className: c, CustomChannelEmptyState: u = ha, showDeleteConversation: f = !0, onDeleteConversationClick: p, onBlockParticipantClick: h, onReportParticipantClick: g, showBlockParticipant: _ = !0, showReportParticipant: v = !0, composerDisabled: y = !1, composerDisabledReason: b, dmAgentEnabled: x, messageMetadata: S, onMessageSent: w, showStarButton: T = !1,
|
|
3457
|
-
let
|
|
3457
|
+
}, ya = o.memo(({ channel: e, onBack: t, showBackButton: n = !1, renderMessageInputActions: r, renderMessageInputFooter: i, renderConversationFooter: a, onLeaveConversation: o, onBlockParticipant: s, className: c, CustomChannelEmptyState: u = ha, showDeleteConversation: f = !0, onDeleteConversationClick: p, onBlockParticipantClick: h, onReportParticipantClick: g, showBlockParticipant: _ = !0, showReportParticipant: v = !0, composerDisabled: y = !1, composerDisabledReason: b, dmAgentEnabled: x, messageMetadata: S, onMessageSent: w, showStarButton: T = !1, showStarBadge: E, renderChannelBanner: D, customChannelActions: O, renderChannelActions: k, renderMessage: A, onMessageLinkClick: j, sendButton: M, attachmentPreviewList: N, viewerLanguage: P, showChannelInfo: F = !0, onParticipantNameClick: I, onOutboundClick: L, resolveOutbound: R, composerInput: z }) => {
|
|
3458
|
+
let B = l(async (t, n, r) => {
|
|
3458
3459
|
let i = e.data?.chatbot_paused === !0, a = x && !i, o = {
|
|
3459
3460
|
...n,
|
|
3460
3461
|
...a && { silent: !0 },
|
|
@@ -3472,25 +3473,25 @@ var va = ({ onBack: e, showBackButton: t, renderMessageInputActions: n, renderMe
|
|
|
3472
3473
|
x,
|
|
3473
3474
|
S,
|
|
3474
3475
|
w
|
|
3475
|
-
]),
|
|
3476
|
+
]), ee = m(null);
|
|
3476
3477
|
d(() => {
|
|
3477
|
-
if (!
|
|
3478
|
-
let t =
|
|
3478
|
+
if (!j) return;
|
|
3479
|
+
let t = ee.current;
|
|
3479
3480
|
if (!t) return;
|
|
3480
3481
|
let n = (t) => {
|
|
3481
3482
|
let n = t.target?.closest("a[href]"), r = n?.getAttribute("href");
|
|
3482
3483
|
if (!r) return;
|
|
3483
3484
|
let i = (n?.closest("[data-message-id]"))?.getAttribute("data-message-id");
|
|
3484
|
-
|
|
3485
|
+
j(r, i ? e.state.messages.find((e) => e.id === i) : void 0);
|
|
3485
3486
|
};
|
|
3486
3487
|
return t.addEventListener("click", n), () => t.removeEventListener("click", n);
|
|
3487
|
-
}, [
|
|
3488
|
-
let
|
|
3488
|
+
}, [j, e]);
|
|
3489
|
+
let te = Y(e.type) ? { "--lt-msg-card-width": "368px" } : void 0;
|
|
3489
3490
|
return /* @__PURE__ */ K("div", {
|
|
3490
|
-
ref:
|
|
3491
|
+
ref: ee,
|
|
3491
3492
|
"data-testid": "channel-view",
|
|
3492
3493
|
className: X("messaging-channel-view h-full flex flex-col", c),
|
|
3493
|
-
style:
|
|
3494
|
+
style: te,
|
|
3494
3495
|
children: /* @__PURE__ */ K(la.Provider, {
|
|
3495
3496
|
value: x ?? !1,
|
|
3496
3497
|
children: /* @__PURE__ */ K(C, {
|
|
@@ -3500,9 +3501,9 @@ var va = ({ onBack: e, showBackButton: t, renderMessageInputActions: n, renderMe
|
|
|
3500
3501
|
LoadingIndicator: _a,
|
|
3501
3502
|
DateSeparator: At,
|
|
3502
3503
|
TypingIndicator: fa,
|
|
3503
|
-
doSendMessageRequest:
|
|
3504
|
-
...
|
|
3505
|
-
...
|
|
3504
|
+
doSendMessageRequest: B,
|
|
3505
|
+
...M ? { SendButton: M } : {},
|
|
3506
|
+
...N ? { AttachmentPreviewList: N } : {},
|
|
3506
3507
|
children: /* @__PURE__ */ K(va, {
|
|
3507
3508
|
onBack: t,
|
|
3508
3509
|
showBackButton: n,
|
|
@@ -3521,16 +3522,17 @@ var va = ({ onBack: e, showBackButton: t, renderMessageInputActions: n, renderMe
|
|
|
3521
3522
|
composerDisabled: y,
|
|
3522
3523
|
composerDisabledReason: b,
|
|
3523
3524
|
showStarButton: T,
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3525
|
+
showStarBadge: E,
|
|
3526
|
+
renderChannelBanner: D,
|
|
3527
|
+
customChannelActions: O,
|
|
3528
|
+
renderChannelActions: k,
|
|
3529
|
+
renderMessage: A,
|
|
3530
|
+
viewerLanguage: P,
|
|
3531
|
+
showChannelInfo: F,
|
|
3532
|
+
onParticipantNameClick: I,
|
|
3533
|
+
onOutboundClick: L,
|
|
3534
|
+
resolveOutbound: R,
|
|
3535
|
+
composerInput: z
|
|
3534
3536
|
})
|
|
3535
3537
|
})
|
|
3536
3538
|
})
|