@linktr.ee/messaging-react 3.24.1 → 3.24.2-rc-1785435591
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/assets/index.css +1 -1
- package/package.json +2 -2
- package/src/styles.css +41 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linktr.ee/messaging-react",
|
|
3
|
-
"version": "3.24.
|
|
3
|
+
"version": "3.24.2-rc-1785435591",
|
|
4
4
|
"description": "React messaging components built on messaging-core for web applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@linktr.ee/component-library": "11.8.6",
|
|
53
|
-
"@linktr.ee/messaging-core": "
|
|
53
|
+
"@linktr.ee/messaging-core": "2.3.0-rc-1785435591",
|
|
54
54
|
"@linktr.ee/messaging-taxonomy": "^0.3.0",
|
|
55
55
|
"@phosphor-icons/react": "^2.1.10"
|
|
56
56
|
},
|
package/src/styles.css
CHANGED
|
@@ -485,9 +485,27 @@
|
|
|
485
485
|
background-color: transparent;
|
|
486
486
|
}
|
|
487
487
|
|
|
488
|
+
/* `str-chat__message-attachment--card` is emitted only by stream-chat-react's
|
|
489
|
+
default `Attachment` — no toolkit component renders that class. It is reached
|
|
490
|
+
when a message falls through `canRenderAttachmentsInToolkit`
|
|
491
|
+
(`CustomMessage/index.tsx`), which happens whenever ANY attachment on the
|
|
492
|
+
message fails classification: `buildOrderedAttachmentSegments` silently
|
|
493
|
+
`continue`s past it, `allAttachmentsRepresented` goes false, and the whole
|
|
494
|
+
message loses the toolkit's chrome.
|
|
495
|
+
|
|
496
|
+
The `color: white` below has been here since "Theme Stream chat UI" (#185) and
|
|
497
|
+
assumes an opaque dark card. Stream paints no background on the card content,
|
|
498
|
+
so on an own message the title and URL landed white on the `#FBFAF9` messaging
|
|
499
|
+
surface — measured ~1.02:1, effectively invisible (MES-1388).
|
|
500
|
+
|
|
501
|
+
Paint the same shade the designed link chin falls back to
|
|
502
|
+
(`CHIN_FALLBACK_BG` in `LinkAttachment/.../chinContrast.ts`), so the assumption
|
|
503
|
+
the white text makes is actually true. This is a floor, not the fix for why a
|
|
504
|
+
given attachment fails classification — see the note in MES-1388. */
|
|
488
505
|
.str-chat__message.str-chat__message--me {
|
|
489
506
|
.str-chat__attachment-list .str-chat__message-attachment--card {
|
|
490
507
|
color: white;
|
|
508
|
+
background-color: var(--brand-shade, #1e2330);
|
|
491
509
|
}
|
|
492
510
|
}
|
|
493
511
|
|
|
@@ -665,7 +683,9 @@
|
|
|
665
683
|
line-height: 1.4;
|
|
666
684
|
color: var(--str-chat__text-low-emphasis-color, rgba(0, 0, 0, 0.5));
|
|
667
685
|
}
|
|
668
|
-
.str-chat__li
|
|
686
|
+
.str-chat__li
|
|
687
|
+
.str-chat__message--me
|
|
688
|
+
.sent-message-status-row
|
|
669
689
|
.str-chat__message-status {
|
|
670
690
|
grid-area: auto;
|
|
671
691
|
justify-content: inherit;
|
|
@@ -694,7 +714,9 @@
|
|
|
694
714
|
.str-chat__li .str-chat__message--me .sent-message-status-row svg path {
|
|
695
715
|
fill: currentColor;
|
|
696
716
|
}
|
|
697
|
-
.str-chat__li
|
|
717
|
+
.str-chat__li
|
|
718
|
+
.str-chat__message--me
|
|
719
|
+
.sent-message-status-row
|
|
698
720
|
.sent-message-broadcast-badge {
|
|
699
721
|
display: inline-flex;
|
|
700
722
|
width: 16px;
|
|
@@ -706,20 +728,31 @@
|
|
|
706
728
|
background: var(--sent-message-broadcast-badge-color);
|
|
707
729
|
color: #fff;
|
|
708
730
|
}
|
|
709
|
-
.str-chat__li
|
|
710
|
-
.
|
|
731
|
+
.str-chat__li
|
|
732
|
+
.str-chat__message--me
|
|
733
|
+
.sent-message-status-row
|
|
734
|
+
.sent-message-broadcast-badge
|
|
735
|
+
svg {
|
|
711
736
|
width: 10px;
|
|
712
737
|
height: 10px;
|
|
713
738
|
}
|
|
714
|
-
.str-chat__li
|
|
715
|
-
.
|
|
739
|
+
.str-chat__li
|
|
740
|
+
.str-chat__message--me
|
|
741
|
+
.sent-message-status-row
|
|
742
|
+
.sent-message-broadcast-badge
|
|
743
|
+
svg
|
|
744
|
+
path {
|
|
716
745
|
fill: currentColor;
|
|
717
746
|
}
|
|
718
|
-
.str-chat__li
|
|
747
|
+
.str-chat__li
|
|
748
|
+
.str-chat__message--me
|
|
749
|
+
.sent-message-status-row
|
|
719
750
|
.sent-message-broadcast-name {
|
|
720
751
|
color: var(--sent-message-broadcast-name-color);
|
|
721
752
|
}
|
|
722
|
-
.str-chat__li
|
|
753
|
+
.str-chat__li
|
|
754
|
+
.str-chat__message--me
|
|
755
|
+
.sent-message-status-row
|
|
723
756
|
.sent-message-broadcast-link
|
|
724
757
|
.sent-message-broadcast-name {
|
|
725
758
|
text-decoration: underline;
|