@poolse/react-ui 3.7.0 → 3.8.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 +35 -0
- package/README.md +33 -0
- package/dist/index.cjs +497 -81
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +194 -7
- package/dist/index.d.ts +194 -7
- package/dist/index.js +490 -83
- package/dist/index.js.map +1 -1
- package/dist/styles.css +136 -9
- package/package.json +5 -4
package/dist/styles.css
CHANGED
|
@@ -2995,7 +2995,11 @@
|
|
|
2995
2995
|
/* Later messages in a run: their time sits in the gutter, on hover. */
|
|
2996
2996
|
.poolse-row__gutter-time {
|
|
2997
2997
|
visibility: hidden;
|
|
2998
|
-
|
|
2998
|
+
/* "10:00PM" must fit the 40px gutter (gutterTime drops the space). */
|
|
2999
|
+
font-size: 10px;
|
|
3000
|
+
letter-spacing: -0.2px;
|
|
3001
|
+
max-width: 40px;
|
|
3002
|
+
overflow: hidden;
|
|
2999
3003
|
line-height: 22px;
|
|
3000
3004
|
color: var(--poolse-ink-3);
|
|
3001
3005
|
font-variant-numeric: tabular-nums;
|
|
@@ -4855,14 +4859,6 @@
|
|
|
4855
4859
|
white-space: nowrap;
|
|
4856
4860
|
}
|
|
4857
4861
|
|
|
4858
|
-
.poolse-mention-menu__handle {
|
|
4859
|
-
margin-left: auto;
|
|
4860
|
-
padding-left: 8px;
|
|
4861
|
-
font-size: 12px;
|
|
4862
|
-
color: var(--poolse-ink-3);
|
|
4863
|
-
white-space: nowrap;
|
|
4864
|
-
}
|
|
4865
|
-
|
|
4866
4862
|
/* Image thumbnail on an upload chip, before the message is sent. */
|
|
4867
4863
|
.poolse-upload-chip__thumb {
|
|
4868
4864
|
flex-shrink: 0;
|
|
@@ -5086,3 +5082,134 @@
|
|
|
5086
5082
|
line-height: 18px;
|
|
5087
5083
|
font-size: 10.5px;
|
|
5088
5084
|
}
|
|
5085
|
+
|
|
5086
|
+
/* ─────────────────────────────────────────────────────────────
|
|
5087
|
+
Empty states — what's empty and what to do next
|
|
5088
|
+
───────────────────────────────────────────────────────────── */
|
|
5089
|
+
|
|
5090
|
+
.poolse-empty-state {
|
|
5091
|
+
margin: auto;
|
|
5092
|
+
padding: 24px 16px;
|
|
5093
|
+
max-width: 320px;
|
|
5094
|
+
text-align: center;
|
|
5095
|
+
font-family: var(--poolse-font-body);
|
|
5096
|
+
}
|
|
5097
|
+
|
|
5098
|
+
.poolse-empty-state__title {
|
|
5099
|
+
margin: 0;
|
|
5100
|
+
color: var(--poolse-ink);
|
|
5101
|
+
font-size: 15px;
|
|
5102
|
+
font-weight: 600;
|
|
5103
|
+
}
|
|
5104
|
+
|
|
5105
|
+
.poolse-empty-state__hint {
|
|
5106
|
+
margin: 6px 0 0;
|
|
5107
|
+
color: var(--poolse-ink-2);
|
|
5108
|
+
font-size: 13px;
|
|
5109
|
+
line-height: 1.45;
|
|
5110
|
+
overflow-wrap: anywhere;
|
|
5111
|
+
}
|
|
5112
|
+
|
|
5113
|
+
.poolse-empty-state__action {
|
|
5114
|
+
margin-top: 12px;
|
|
5115
|
+
}
|
|
5116
|
+
|
|
5117
|
+
/* ─────────────────────────────────────────────────────────────
|
|
5118
|
+
Unsent messages (the outbox): queued offline, or refused
|
|
5119
|
+
───────────────────────────────────────────────────────────── */
|
|
5120
|
+
|
|
5121
|
+
.poolse-send-status {
|
|
5122
|
+
display: flex;
|
|
5123
|
+
flex-wrap: wrap;
|
|
5124
|
+
align-items: center;
|
|
5125
|
+
gap: 4px 8px;
|
|
5126
|
+
margin: 2px 4px 6px;
|
|
5127
|
+
font-family: var(--poolse-font-body);
|
|
5128
|
+
font-size: 12px;
|
|
5129
|
+
color: var(--poolse-ink-2);
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5132
|
+
.poolse-send-status--right {
|
|
5133
|
+
justify-content: flex-end;
|
|
5134
|
+
}
|
|
5135
|
+
|
|
5136
|
+
.poolse-send-status--failed .poolse-send-status__text {
|
|
5137
|
+
color: var(--poolse-error);
|
|
5138
|
+
}
|
|
5139
|
+
|
|
5140
|
+
.poolse-send-status__text {
|
|
5141
|
+
min-width: 0;
|
|
5142
|
+
overflow-wrap: anywhere;
|
|
5143
|
+
}
|
|
5144
|
+
|
|
5145
|
+
.poolse-send-status__button {
|
|
5146
|
+
border: none;
|
|
5147
|
+
background: none;
|
|
5148
|
+
padding: 2px 4px;
|
|
5149
|
+
font: inherit;
|
|
5150
|
+
font-weight: 600;
|
|
5151
|
+
color: var(--poolse-brand-strong);
|
|
5152
|
+
cursor: pointer;
|
|
5153
|
+
border-radius: var(--poolse-radius-sm);
|
|
5154
|
+
}
|
|
5155
|
+
|
|
5156
|
+
.poolse-send-status__button--danger {
|
|
5157
|
+
color: var(--poolse-error);
|
|
5158
|
+
}
|
|
5159
|
+
|
|
5160
|
+
.poolse-send-status__button:focus-visible {
|
|
5161
|
+
outline: 2px solid var(--poolse-brand);
|
|
5162
|
+
outline-offset: 1px;
|
|
5163
|
+
}
|
|
5164
|
+
|
|
5165
|
+
.poolse-message-row--unsent .poolse-message,
|
|
5166
|
+
.poolse-row--unsent .poolse-row__body {
|
|
5167
|
+
opacity: 0.7;
|
|
5168
|
+
}
|
|
5169
|
+
|
|
5170
|
+
/* ─────────────────────────────────────────────────────────────
|
|
5171
|
+
Keyboard: the focused message in the list (j / k)
|
|
5172
|
+
───────────────────────────────────────────────────────────── */
|
|
5173
|
+
|
|
5174
|
+
.poolse-conversation__messages:focus-visible {
|
|
5175
|
+
outline: 2px solid var(--poolse-brand);
|
|
5176
|
+
outline-offset: -2px;
|
|
5177
|
+
}
|
|
5178
|
+
|
|
5179
|
+
[data-message-id]:focus {
|
|
5180
|
+
outline: none;
|
|
5181
|
+
}
|
|
5182
|
+
|
|
5183
|
+
[data-message-id]:focus-visible {
|
|
5184
|
+
outline: 2px solid var(--poolse-brand);
|
|
5185
|
+
outline-offset: 2px;
|
|
5186
|
+
border-radius: var(--poolse-radius-sm);
|
|
5187
|
+
}
|
|
5188
|
+
|
|
5189
|
+
/* Visually hidden, still read by screen readers. */
|
|
5190
|
+
.poolse-sr-only {
|
|
5191
|
+
position: absolute;
|
|
5192
|
+
width: 1px;
|
|
5193
|
+
height: 1px;
|
|
5194
|
+
padding: 0;
|
|
5195
|
+
margin: -1px;
|
|
5196
|
+
overflow: hidden;
|
|
5197
|
+
clip: rect(0, 0, 0, 0);
|
|
5198
|
+
white-space: nowrap;
|
|
5199
|
+
border: 0;
|
|
5200
|
+
}
|
|
5201
|
+
|
|
5202
|
+
/* Reduced motion: no animation or smooth scrolling in any component. */
|
|
5203
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5204
|
+
[class^='poolse-'],
|
|
5205
|
+
[class*=' poolse-'],
|
|
5206
|
+
[class^='poolse-']::before,
|
|
5207
|
+
[class*=' poolse-']::before,
|
|
5208
|
+
[class^='poolse-']::after,
|
|
5209
|
+
[class*=' poolse-']::after {
|
|
5210
|
+
animation-duration: 0.01ms !important;
|
|
5211
|
+
animation-iteration-count: 1 !important;
|
|
5212
|
+
transition-duration: 0.01ms !important;
|
|
5213
|
+
scroll-behavior: auto !important;
|
|
5214
|
+
}
|
|
5215
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poolse/react-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.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,9 +58,9 @@
|
|
|
58
58
|
"CHANGELOG.md"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@poolse/react": "^3.
|
|
62
|
-
"@poolse/sdk": "^3.
|
|
63
|
-
"@poolse/theme": "^3.
|
|
61
|
+
"@poolse/react": "^3.8.0",
|
|
62
|
+
"@poolse/sdk": "^3.8.0",
|
|
63
|
+
"@poolse/theme": "^3.8.0",
|
|
64
64
|
"react-markdown": "^9.0.1",
|
|
65
65
|
"remark-gfm": "^4.0.0"
|
|
66
66
|
},
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@testing-library/react": "^16.3.2",
|
|
72
72
|
"@types/react": "^19.0.0",
|
|
73
|
+
"axe-core": "4.10.2",
|
|
73
74
|
"happy-dom": "^15.11.7",
|
|
74
75
|
"react": "^19.0.0",
|
|
75
76
|
"react-dom": "^19.0.0"
|