@poolse/react-ui 3.1.0 → 3.2.0-dev.0
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/CHANGELOG.md +8 -0
- package/dist/index.cjs +54 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +55 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +42 -0
- package/package.json +3 -3
package/dist/styles.css
CHANGED
|
@@ -3576,3 +3576,45 @@
|
|
|
3576
3576
|
outline: 2px solid var(--poolse-brand);
|
|
3577
3577
|
outline-offset: 2px;
|
|
3578
3578
|
}
|
|
3579
|
+
|
|
3580
|
+
/* ─────────────────────────────────────────────────────────────
|
|
3581
|
+
Streaming AI agent reply (useMessageStreams)
|
|
3582
|
+
───────────────────────────────────────────────────────────── */
|
|
3583
|
+
|
|
3584
|
+
/* A blinking caret after the text while the reply is being written.
|
|
3585
|
+
The timestamp is meaningless until the message lands, so hide it. */
|
|
3586
|
+
.poolse-stream .poolse-message__meta {
|
|
3587
|
+
visibility: hidden;
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
.poolse-stream .poolse-message__body:not(.poolse-message__body--md)::after,
|
|
3591
|
+
.poolse-stream .poolse-message__body--md > :last-child::after {
|
|
3592
|
+
content: '';
|
|
3593
|
+
display: inline-block;
|
|
3594
|
+
width: 0.5em;
|
|
3595
|
+
height: 1em;
|
|
3596
|
+
margin-left: 2px;
|
|
3597
|
+
vertical-align: text-bottom;
|
|
3598
|
+
background: currentColor;
|
|
3599
|
+
opacity: 0.6;
|
|
3600
|
+
animation: poolse-caret 1s steps(1) infinite;
|
|
3601
|
+
}
|
|
3602
|
+
|
|
3603
|
+
@keyframes poolse-caret {
|
|
3604
|
+
50% {
|
|
3605
|
+
opacity: 0;
|
|
3606
|
+
}
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3609
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3610
|
+
.poolse-stream .poolse-message__body:not(.poolse-message__body--md)::after,
|
|
3611
|
+
.poolse-stream .poolse-message__body--md > :last-child::after {
|
|
3612
|
+
animation: none;
|
|
3613
|
+
}
|
|
3614
|
+
}
|
|
3615
|
+
|
|
3616
|
+
.poolse-stream-failed {
|
|
3617
|
+
margin: 4px 16px;
|
|
3618
|
+
font-size: 12px;
|
|
3619
|
+
color: var(--poolse-ink-3);
|
|
3620
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poolse/react-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0-dev.0",
|
|
4
4
|
"description": "React chat UI components — ConversationView, PoolseInbox, MessageBubble, TypingIndicator, ReactionPicker, ThreadView. CSS-variable theming, render-prop escape hatches. MIT — alternative to Sendbird, Stream, TalkJS, CometChat.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"keywords": [
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"CHANGELOG.md"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@poolse/react": "^3.
|
|
62
|
-
"@poolse/sdk": "^3.
|
|
61
|
+
"@poolse/react": "^3.2.0-dev.0",
|
|
62
|
+
"@poolse/sdk": "^3.2.0-dev.0",
|
|
63
63
|
"react-markdown": "^9.0.1",
|
|
64
64
|
"remark-gfm": "^4.0.0"
|
|
65
65
|
},
|