@linktr.ee/messaging-react 3.5.6-rc-1783064039 → 3.5.6-rc-1783097662
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/{Card-BY5GWs2L.cjs → Card-4eHS-HQB.cjs} +2 -2
- package/dist/{Card-BY5GWs2L.cjs.map → Card-4eHS-HQB.cjs.map} +1 -1
- package/dist/{Card-DdUewLf6.cjs → Card-Bxu71IQM.cjs} +2 -2
- package/dist/{Card-DdUewLf6.cjs.map → Card-Bxu71IQM.cjs.map} +1 -1
- package/dist/{Card-CsQmLvWE.cjs → Card-By-eDX0U.cjs} +2 -2
- package/dist/{Card-CsQmLvWE.cjs.map → Card-By-eDX0U.cjs.map} +1 -1
- package/dist/{Card-CuWniEOV.js → Card-CmLNgIdO.js} +2 -2
- package/dist/{Card-CuWniEOV.js.map → Card-CmLNgIdO.js.map} +1 -1
- package/dist/{Card-CpgkVykU.js → Card-XSDNvOZf.js} +3 -3
- package/dist/{Card-CpgkVykU.js.map → Card-XSDNvOZf.js.map} +1 -1
- package/dist/{Card-DQdw5-A_.js → Card-mDB7sZiu.js} +2 -2
- package/dist/{Card-DQdw5-A_.js.map → Card-mDB7sZiu.js.map} +1 -1
- package/dist/{LockedThumbnail-D5hLQ6Kz.js → LockedThumbnail-C44Wkle9.js} +3 -3
- package/dist/{LockedThumbnail-D5hLQ6Kz.js.map → LockedThumbnail-C44Wkle9.js.map} +1 -1
- package/dist/{LockedThumbnail-s_LZkGm4.cjs → LockedThumbnail-CWhzO3wx.cjs} +2 -2
- package/dist/{LockedThumbnail-s_LZkGm4.cjs.map → LockedThumbnail-CWhzO3wx.cjs.map} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/{index-3vM1UOPb.js → index-BRV621wo.js} +1601 -1794
- package/dist/index-BRV621wo.js.map +1 -0
- package/dist/index-DBVgTHrA.cjs +2 -0
- package/dist/index-DBVgTHrA.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/components/AttachmentCard/index.tsx +1 -1
- package/src/components/ChannelView.stories.tsx +11 -65
- package/src/components/ChannelView.test.tsx +12 -30
- package/src/components/ChannelView.tsx +22 -50
- package/src/components/CustomLinkPreviewList/CustomLinkPreviewCard.tsx +1 -1
- package/src/components/CustomLinkPreviewList/index.tsx +6 -12
- package/src/components/CustomMessage/CustomMessage.stories.tsx +27 -0
- package/src/components/CustomMessage/MessageAttachmentConversations.stories.tsx +2 -2
- package/src/components/CustomMessage/MessageTag.stories.tsx +2 -2
- package/src/components/CustomMessageInput/index.tsx +4 -12
- package/src/components/LinkAttachment/components/_shared/CardShell.tsx +1 -1
- package/src/components/LockedAttachment/components/_shared/LockedCardShell.tsx +1 -1
- package/src/components/MediaMessage/index.tsx +8 -1
- package/src/components/MessageAttachment/_shared/Bubble.tsx +7 -7
- package/src/components/MessageAttachment/_shared/CompactDocumentRow.tsx +3 -3
- package/src/styles.css +104 -9
- package/dist/index-3vM1UOPb.js.map +0 -1
- package/dist/index-BIJpO0jL.cjs +0 -2
- package/dist/index-BIJpO0jL.cjs.map +0 -1
- package/src/components/ChannelHeaderRedesign.tsx +0 -231
package/src/styles.css
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
--str-chat__font-family: inherit;
|
|
9
9
|
|
|
10
10
|
--str-chat__message-bubble-border-radius: 1.5rem;
|
|
11
|
-
--str-chat__message-bubble-background-color: #
|
|
12
|
-
--str-chat__message-bubble-color: #
|
|
11
|
+
--str-chat__message-bubble-background-color: #f2f1ef;
|
|
12
|
+
--str-chat__message-bubble-color: #000000;
|
|
13
13
|
|
|
14
|
-
--str-chat__own-message-bubble-background-color: #
|
|
14
|
+
--str-chat__own-message-bubble-background-color: #1e2330;
|
|
15
15
|
--str-chat__own-message-bubble-color: #fff;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -560,7 +560,36 @@
|
|
|
560
560
|
|
|
561
561
|
.str-chat__message .str-chat__message-bubble {
|
|
562
562
|
font-size: 0.875rem;
|
|
563
|
-
line-height: 1.
|
|
563
|
+
line-height: 1.3125rem;
|
|
564
|
+
letter-spacing: 0.14px;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
/* Keep every bubble a full pill regardless of its position in a same-author
|
|
568
|
+
run. stream-chat-react's default theme flattens the inner corners of
|
|
569
|
+
grouped bubbles (bottom-/top-inline-end for `--me`, inline-start for
|
|
570
|
+
`--other`) via `.str-chat__li--{top,middle,bottom} .str-chat__message--{me,other}
|
|
571
|
+
.str-chat__message-bubble` rules at specificity (0,3,0). We prepend the
|
|
572
|
+
`.str-chat` root class to reach (0,4,0) so this wins independently of
|
|
573
|
+
stylesheet load order and restores the fully-rounded pill from the Figma
|
|
574
|
+
spec — only the trailing bubble's tail (`::after`, below) breaks the pill. */
|
|
575
|
+
.str-chat .str-chat__li--single .str-chat__message--me .str-chat__message-bubble,
|
|
576
|
+
.str-chat .str-chat__li--top .str-chat__message--me .str-chat__message-bubble,
|
|
577
|
+
.str-chat .str-chat__li--middle .str-chat__message--me .str-chat__message-bubble,
|
|
578
|
+
.str-chat .str-chat__li--bottom .str-chat__message--me .str-chat__message-bubble,
|
|
579
|
+
.str-chat
|
|
580
|
+
.str-chat__li--single
|
|
581
|
+
.str-chat__message--other
|
|
582
|
+
.str-chat__message-bubble,
|
|
583
|
+
.str-chat .str-chat__li--top .str-chat__message--other .str-chat__message-bubble,
|
|
584
|
+
.str-chat
|
|
585
|
+
.str-chat__li--middle
|
|
586
|
+
.str-chat__message--other
|
|
587
|
+
.str-chat__message-bubble,
|
|
588
|
+
.str-chat
|
|
589
|
+
.str-chat__li--bottom
|
|
590
|
+
.str-chat__message--other
|
|
591
|
+
.str-chat__message-bubble {
|
|
592
|
+
border-radius: var(--str-chat__message-bubble-border-radius);
|
|
564
593
|
}
|
|
565
594
|
|
|
566
595
|
/* Chatbot reply markdown — restore semantics that consumer Tailwind preflight
|
|
@@ -667,21 +696,87 @@
|
|
|
667
696
|
margin-bottom: 0;
|
|
668
697
|
}
|
|
669
698
|
|
|
699
|
+
/* Roomier, even vertical gap between bubbles within a same-author run.
|
|
700
|
+
stream defaults grouped messages to 0.125rem (2px), which reads as
|
|
701
|
+
cramped now that each bubble is a full pill; the Figma grouped-message
|
|
702
|
+
spacing is closer to 6px. `.str-chat` prefix → (0,3,0) so it beats
|
|
703
|
+
stream's (0,2,0) grouping rule regardless of stylesheet load order. */
|
|
704
|
+
.str-chat .str-chat__li--top .str-chat__message,
|
|
705
|
+
.str-chat .str-chat__li--middle .str-chat__message {
|
|
706
|
+
margin-block-end: 0.375rem;
|
|
707
|
+
}
|
|
708
|
+
|
|
670
709
|
.str-chat__li--single,
|
|
671
710
|
.str-chat__li--bottom {
|
|
672
711
|
.str-chat__message {
|
|
673
712
|
margin-block-end: 0.875rem;
|
|
674
713
|
}
|
|
675
714
|
|
|
676
|
-
|
|
677
|
-
|
|
715
|
+
/* `:not([data-attachment-bubble])` keeps the tail off self-contained
|
|
716
|
+
attachment/media cards (see `MediaMessage`): those render their own
|
|
717
|
+
shadowed card inside a transparent bubble, so a tail tinted from the
|
|
718
|
+
text-bubble surface would hang off the card rather than read as part
|
|
719
|
+
of it. Only genuine text/message bubbles get a tail. */
|
|
720
|
+
.str-chat__message--other
|
|
721
|
+
.str-chat__message-bubble-wrapper
|
|
722
|
+
> .str-chat__message-bubble:last-child:not([data-attachment-bubble]) {
|
|
723
|
+
position: relative;
|
|
724
|
+
/* Form a stacking context so the `z-index: -1` tail below paints
|
|
725
|
+
*after* this bubble's own (opaque, same-color) background but
|
|
726
|
+
*behind* its in-flow content. Without this the tail would either
|
|
727
|
+
sit on top of content (a positioned pseudo-element paints above
|
|
728
|
+
in-flow siblings — switching to `::before` would NOT change that)
|
|
729
|
+
or drop behind the whole bubble. This matters most for the
|
|
730
|
+
zero-padding `MediaMessageRoot` bubble, whose media card reaches
|
|
731
|
+
the corner: the tail must tuck behind the card, not cover it. */
|
|
732
|
+
isolation: isolate;
|
|
733
|
+
|
|
734
|
+
&::after {
|
|
735
|
+
content: '';
|
|
736
|
+
position: absolute;
|
|
737
|
+
inset-block-end: 0;
|
|
738
|
+
inset-inline-start: calc(-1 * 0.25rem);
|
|
739
|
+
z-index: -1;
|
|
740
|
+
width: 1.25rem;
|
|
741
|
+
height: 1.4375rem;
|
|
742
|
+
background-color: var(--str-chat__message-bubble-background-color);
|
|
743
|
+
pointer-events: none;
|
|
744
|
+
transform: scaleX(-1);
|
|
745
|
+
transform-origin: center;
|
|
746
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='23' fill='none'%3E%3Cpath fill='black' d='M0 0H15C15 10.1934 15.859 15.2345 19.168 21.4893C19.527 22.168 19.039 22.9917 18.274 22.9178C5.176 21.6506 0.32 6.0737 0 0Z'/%3E%3C/svg%3E")
|
|
747
|
+
no-repeat center / 100% 100%;
|
|
748
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='23' fill='none'%3E%3Cpath fill='black' d='M0 0H15C15 10.1934 15.859 15.2345 19.168 21.4893C19.527 22.168 19.039 22.9917 18.274 22.9178C5.176 21.6506 0.32 6.0737 0 0Z'/%3E%3C/svg%3E")
|
|
749
|
+
no-repeat center / 100% 100%;
|
|
750
|
+
}
|
|
678
751
|
}
|
|
679
752
|
|
|
680
|
-
.str-chat__message--me
|
|
681
|
-
|
|
753
|
+
.str-chat__message--me
|
|
754
|
+
.str-chat__message-bubble-wrapper
|
|
755
|
+
> .str-chat__message-bubble:last-child:not([data-attachment-bubble]) {
|
|
756
|
+
position: relative;
|
|
757
|
+
/* See the `--other` rule above: stacking context so the tail tucks
|
|
758
|
+
behind in-flow content (e.g. the corner of a zero-padding
|
|
759
|
+
`MediaMessageRoot` card) instead of painting over it. */
|
|
760
|
+
isolation: isolate;
|
|
761
|
+
|
|
762
|
+
&::after {
|
|
763
|
+
content: '';
|
|
764
|
+
position: absolute;
|
|
765
|
+
inset-block-end: 0;
|
|
766
|
+
inset-inline-end: calc(-1 * 0.25rem);
|
|
767
|
+
z-index: -1;
|
|
768
|
+
width: 1.25rem;
|
|
769
|
+
height: 1.4375rem;
|
|
770
|
+
background-color: var(--str-chat__own-message-bubble-background-color);
|
|
771
|
+
pointer-events: none;
|
|
772
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='23' fill='none'%3E%3Cpath fill='black' d='M0 0H15C15 10.1934 15.859 15.2345 19.168 21.4893C19.527 22.168 19.039 22.9917 18.274 22.9178C5.176 21.6506 0.32 6.0737 0 0Z'/%3E%3C/svg%3E")
|
|
773
|
+
no-repeat center / 100% 100%;
|
|
774
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='23' fill='none'%3E%3Cpath fill='black' d='M0 0H15C15 10.1934 15.859 15.2345 19.168 21.4893C19.527 22.168 19.039 22.9917 18.274 22.9178C5.176 21.6506 0.32 6.0737 0 0Z'/%3E%3C/svg%3E")
|
|
775
|
+
no-repeat center / 100% 100%;
|
|
776
|
+
}
|
|
682
777
|
}
|
|
683
|
-
}
|
|
684
778
|
|
|
779
|
+
}
|
|
685
780
|
/* Locked attachment wrapper: stack card + text bubble in the correct direction */
|
|
686
781
|
.str-chat__li .str-chat__message--me .str-chat__message-bubble-wrapper {
|
|
687
782
|
display: flex;
|