@linktr.ee/messaging-react 3.5.6-rc-1783064039 → 3.5.6-rc-1783100793
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 +75 -6
- 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,8 @@
|
|
|
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;
|
|
564
565
|
}
|
|
565
566
|
|
|
566
567
|
/* Chatbot reply markdown — restore semantics that consumer Tailwind preflight
|
|
@@ -673,15 +674,83 @@
|
|
|
673
674
|
margin-block-end: 0.875rem;
|
|
674
675
|
}
|
|
675
676
|
|
|
677
|
+
/* Re-round the outer bottom corner of the trailing/standalone bubble
|
|
678
|
+
(bottom-inline-start for `--other`, bottom-inline-end for `--me`) that
|
|
679
|
+
stream's grouping flattens — matches main's merged-run shape where the
|
|
680
|
+
run reads as one column capped by a rounded bottom corner. The inner
|
|
681
|
+
corners stay flattened so consecutive bubbles still merge. */
|
|
676
682
|
.str-chat__message--other .str-chat__message-bubble {
|
|
677
683
|
border-end-start-radius: var(--str-chat__message-bubble-border-radius);
|
|
678
684
|
}
|
|
679
|
-
|
|
680
685
|
.str-chat__message--me .str-chat__message-bubble {
|
|
681
686
|
border-end-end-radius: var(--str-chat__message-bubble-border-radius);
|
|
682
687
|
}
|
|
683
|
-
}
|
|
684
688
|
|
|
689
|
+
/* `:not([data-attachment-bubble])` keeps the tail off self-contained
|
|
690
|
+
attachment/media cards (see `MediaMessage`): those render their own
|
|
691
|
+
shadowed card inside a transparent bubble, so a tail tinted from the
|
|
692
|
+
text-bubble surface would hang off the card rather than read as part
|
|
693
|
+
of it. Only genuine text/message bubbles get a tail. */
|
|
694
|
+
.str-chat__message--other
|
|
695
|
+
.str-chat__message-bubble-wrapper
|
|
696
|
+
> .str-chat__message-bubble:last-child:not([data-attachment-bubble]) {
|
|
697
|
+
position: relative;
|
|
698
|
+
/* Form a stacking context so the `z-index: -1` tail below paints
|
|
699
|
+
*after* this bubble's own (opaque, same-color) background but
|
|
700
|
+
*behind* its in-flow content. Without this the tail would either
|
|
701
|
+
sit on top of content (a positioned pseudo-element paints above
|
|
702
|
+
in-flow siblings — switching to `::before` would NOT change that)
|
|
703
|
+
or drop behind the whole bubble. This matters most for the
|
|
704
|
+
zero-padding `MediaMessageRoot` bubble, whose media card reaches
|
|
705
|
+
the corner: the tail must tuck behind the card, not cover it. */
|
|
706
|
+
isolation: isolate;
|
|
707
|
+
|
|
708
|
+
&::after {
|
|
709
|
+
content: '';
|
|
710
|
+
position: absolute;
|
|
711
|
+
inset-block-end: 0;
|
|
712
|
+
inset-inline-start: calc(-1 * 0.25rem);
|
|
713
|
+
z-index: -1;
|
|
714
|
+
width: 1.25rem;
|
|
715
|
+
height: 1.4375rem;
|
|
716
|
+
background-color: var(--str-chat__message-bubble-background-color);
|
|
717
|
+
pointer-events: none;
|
|
718
|
+
transform: scaleX(-1);
|
|
719
|
+
transform-origin: center;
|
|
720
|
+
-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")
|
|
721
|
+
no-repeat center / 100% 100%;
|
|
722
|
+
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")
|
|
723
|
+
no-repeat center / 100% 100%;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.str-chat__message--me
|
|
728
|
+
.str-chat__message-bubble-wrapper
|
|
729
|
+
> .str-chat__message-bubble:last-child:not([data-attachment-bubble]) {
|
|
730
|
+
position: relative;
|
|
731
|
+
/* See the `--other` rule above: stacking context so the tail tucks
|
|
732
|
+
behind in-flow content (e.g. the corner of a zero-padding
|
|
733
|
+
`MediaMessageRoot` card) instead of painting over it. */
|
|
734
|
+
isolation: isolate;
|
|
735
|
+
|
|
736
|
+
&::after {
|
|
737
|
+
content: '';
|
|
738
|
+
position: absolute;
|
|
739
|
+
inset-block-end: 0;
|
|
740
|
+
inset-inline-end: calc(-1 * 0.25rem);
|
|
741
|
+
z-index: -1;
|
|
742
|
+
width: 1.25rem;
|
|
743
|
+
height: 1.4375rem;
|
|
744
|
+
background-color: var(--str-chat__own-message-bubble-background-color);
|
|
745
|
+
pointer-events: none;
|
|
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
|
+
}
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
}
|
|
685
754
|
/* Locked attachment wrapper: stack card + text bubble in the correct direction */
|
|
686
755
|
.str-chat__li .str-chat__message--me .str-chat__message-bubble-wrapper {
|
|
687
756
|
display: flex;
|