@linktr.ee/messaging-react 3.5.5-rc-1782988006 → 3.5.6-rc-1782993089
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linktr.ee/messaging-react",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.6-rc-1782993089",
|
|
4
4
|
"description": "React messaging components built on messaging-core for web applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@linktr.ee/component-library": "11.8.6",
|
|
41
|
-
"@linktr.ee/messaging-core": "2.3.0-rc-
|
|
41
|
+
"@linktr.ee/messaging-core": "2.3.0-rc-1782993089",
|
|
42
42
|
"@phosphor-icons/react": "^2.1.10"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -247,6 +247,33 @@ WithTipTag.args = {
|
|
|
247
247
|
],
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
+
export const ThreeConsecutiveSentMessages: StoryFn<TemplateProps> =
|
|
251
|
+
Template.bind({})
|
|
252
|
+
ThreeConsecutiveSentMessages.args = {
|
|
253
|
+
messages: [
|
|
254
|
+
{
|
|
255
|
+
id: 'msg-1',
|
|
256
|
+
text: 'why is it that the sun',
|
|
257
|
+
user: storyUsers.visitor,
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
id: 'msg-2',
|
|
261
|
+
text: 'has rays',
|
|
262
|
+
user: storyUsers.creator,
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
id: 'msg-3',
|
|
266
|
+
text: 'how how how',
|
|
267
|
+
user: storyUsers.creator,
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
id: 'msg-4',
|
|
271
|
+
text: 'thanks for the note',
|
|
272
|
+
user: storyUsers.visitor,
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
}
|
|
276
|
+
|
|
250
277
|
export const TipOnly: StoryFn<TemplateProps> = Template.bind({})
|
|
251
278
|
TipOnly.args = {
|
|
252
279
|
messages: [
|
package/src/styles.css
CHANGED
|
@@ -564,6 +564,13 @@
|
|
|
564
564
|
letter-spacing: 0.14px;
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
+
.str-chat__li--single .str-chat__message-bubble,
|
|
568
|
+
.str-chat__li--top .str-chat__message-bubble,
|
|
569
|
+
.str-chat__li--middle .str-chat__message-bubble,
|
|
570
|
+
.str-chat__li--bottom .str-chat__message-bubble {
|
|
571
|
+
border-radius: var(--str-chat__message-bubble-border-radius);
|
|
572
|
+
}
|
|
573
|
+
|
|
567
574
|
/* Chatbot reply markdown — restore semantics that consumer Tailwind preflight
|
|
568
575
|
(or other resets) strip from the body of `.str-chat__message-text-inner`. */
|
|
569
576
|
.str-chat__message-text-inner :where(h1, h2, h3, h4, h5, h6) {
|
|
@@ -674,10 +681,6 @@
|
|
|
674
681
|
margin-block-end: 0.875rem;
|
|
675
682
|
}
|
|
676
683
|
|
|
677
|
-
.str-chat__message--other .str-chat__message-bubble {
|
|
678
|
-
border-end-start-radius: 0;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
684
|
.str-chat__message--other
|
|
682
685
|
.str-chat__message-bubble-wrapper
|
|
683
686
|
> .str-chat__message-bubble:last-child {
|
|
@@ -688,8 +691,8 @@
|
|
|
688
691
|
position: absolute;
|
|
689
692
|
inset-block-end: 0;
|
|
690
693
|
inset-inline-start: calc(-1 * 0.25rem);
|
|
691
|
-
width: 1.
|
|
692
|
-
height: 1.
|
|
694
|
+
width: 1.1875rem;
|
|
695
|
+
height: 1.4375rem;
|
|
693
696
|
background-color: var(--str-chat__message-bubble-background-color);
|
|
694
697
|
pointer-events: none;
|
|
695
698
|
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='25 22 20 23'%3E%3Cpath d='M45 22H30C30 32.1934 29.1413 37.2345 25.8323 43.4893C25.4732 44.168 25.9613 44.9917 26.7255 44.9178C39.8236 43.6506 44.6803 28.0737 45 22Z'/%3E%3C/svg%3E")
|
|
@@ -709,8 +712,8 @@
|
|
|
709
712
|
position: absolute;
|
|
710
713
|
inset-block-end: 0;
|
|
711
714
|
inset-inline-end: calc(-1 * 0.25rem);
|
|
712
|
-
width: 1.
|
|
713
|
-
height: 1.
|
|
715
|
+
width: 1.1875rem;
|
|
716
|
+
height: 1.4375rem;
|
|
714
717
|
background-color: var(--str-chat__own-message-bubble-background-color);
|
|
715
718
|
pointer-events: none;
|
|
716
719
|
transform: scaleX(-1);
|
|
@@ -722,11 +725,7 @@
|
|
|
722
725
|
}
|
|
723
726
|
}
|
|
724
727
|
|
|
725
|
-
.str-chat__message--me .str-chat__message-bubble {
|
|
726
|
-
border-end-end-radius: 0;
|
|
727
|
-
}
|
|
728
728
|
}
|
|
729
|
-
|
|
730
729
|
/* Locked attachment wrapper: stack card + text bubble in the correct direction */
|
|
731
730
|
.str-chat__li .str-chat__message--me .str-chat__message-bubble-wrapper {
|
|
732
731
|
display: flex;
|