@poolse/react-ui 2.20.0 → 2.22.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/dist/index.cjs +126 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -3
- package/dist/index.d.ts +40 -3
- package/dist/index.js +126 -9
- package/dist/index.js.map +1 -1
- package/dist/styles.css +120 -0
- package/package.json +11 -11
package/dist/styles.css
CHANGED
|
@@ -323,6 +323,126 @@
|
|
|
323
323
|
border-radius: var(--poolse-radius-pill);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
/* Call-log line — centered compact pill between bubble clusters,
|
|
327
|
+
same family as the day separator (surface chip, hairline border,
|
|
328
|
+
small semibold label). Missed calls take the error tone. */
|
|
329
|
+
.poolse-call-log {
|
|
330
|
+
display: flex;
|
|
331
|
+
justify-content: center;
|
|
332
|
+
align-items: center;
|
|
333
|
+
margin: 8px 0;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.poolse-call-log__chip {
|
|
337
|
+
display: inline-flex;
|
|
338
|
+
align-items: center;
|
|
339
|
+
gap: 6px;
|
|
340
|
+
max-width: 100%;
|
|
341
|
+
padding: 4px 12px;
|
|
342
|
+
font: 600 12px / 1.3 var(--poolse-font-body);
|
|
343
|
+
color: var(--poolse-ink-2);
|
|
344
|
+
background: var(--poolse-surface);
|
|
345
|
+
border: 1px solid var(--poolse-border);
|
|
346
|
+
border-radius: var(--poolse-radius-pill);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.poolse-call-log__icon {
|
|
350
|
+
flex: none;
|
|
351
|
+
color: var(--poolse-ink-3);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.poolse-call-log__title {
|
|
355
|
+
color: var(--poolse-ink);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.poolse-call-log__detail,
|
|
359
|
+
.poolse-call-log__time {
|
|
360
|
+
font-weight: 500;
|
|
361
|
+
color: var(--poolse-ink-3);
|
|
362
|
+
font-variant-numeric: tabular-nums;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.poolse-call-log__detail::before,
|
|
366
|
+
.poolse-call-log__time::before {
|
|
367
|
+
content: '·';
|
|
368
|
+
margin-right: 6px;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.poolse-call-log__call-back {
|
|
372
|
+
margin-left: 8px;
|
|
373
|
+
padding: 2px 8px;
|
|
374
|
+
font: 600 12px / 1.3 var(--poolse-font-body);
|
|
375
|
+
color: var(--poolse-brand);
|
|
376
|
+
background: none;
|
|
377
|
+
border: none;
|
|
378
|
+
border-radius: var(--poolse-radius-pill);
|
|
379
|
+
cursor: pointer;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.poolse-call-log__call-back:hover {
|
|
383
|
+
background: var(--poolse-surface);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.poolse-call-log__call-back:focus-visible {
|
|
387
|
+
outline: 2px solid var(--poolse-brand);
|
|
388
|
+
outline-offset: 1px;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/* Live-call banner — a strip across the top of the conversation while a
|
|
392
|
+
call runs that the viewer is not on. */
|
|
393
|
+
.poolse-live-call {
|
|
394
|
+
display: flex;
|
|
395
|
+
align-items: center;
|
|
396
|
+
gap: 10px;
|
|
397
|
+
padding: 8px 16px;
|
|
398
|
+
color: #fff;
|
|
399
|
+
background: var(--poolse-success);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.poolse-live-call__icon {
|
|
403
|
+
flex: none;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.poolse-live-call__text {
|
|
407
|
+
display: flex;
|
|
408
|
+
flex-direction: column;
|
|
409
|
+
flex: 1;
|
|
410
|
+
min-width: 0;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.poolse-live-call__title {
|
|
414
|
+
font: 600 14px / 1.3 var(--poolse-font-body);
|
|
415
|
+
white-space: nowrap;
|
|
416
|
+
overflow: hidden;
|
|
417
|
+
text-overflow: ellipsis;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.poolse-live-call__meta {
|
|
421
|
+
font: 500 12px / 1.3 var(--poolse-font-body);
|
|
422
|
+
opacity: 0.85;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.poolse-live-call__join {
|
|
426
|
+
flex: none;
|
|
427
|
+
padding: 6px 16px;
|
|
428
|
+
font: 700 14px / 1 var(--poolse-font-body);
|
|
429
|
+
color: var(--poolse-success);
|
|
430
|
+
background: #fff;
|
|
431
|
+
border: none;
|
|
432
|
+
border-radius: var(--poolse-radius-pill);
|
|
433
|
+
cursor: pointer;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.poolse-live-call__join:focus-visible {
|
|
437
|
+
outline: 2px solid #fff;
|
|
438
|
+
outline-offset: 2px;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.poolse-call-log--missed .poolse-call-log__icon,
|
|
442
|
+
.poolse-call-log--missed .poolse-call-log__title {
|
|
443
|
+
color: var(--poolse-error);
|
|
444
|
+
}
|
|
445
|
+
|
|
326
446
|
.poolse-conversation__load-more {
|
|
327
447
|
align-self: center;
|
|
328
448
|
margin-bottom: 8px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poolse/react-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.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": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -56,16 +56,9 @@
|
|
|
56
56
|
"README.md",
|
|
57
57
|
"CHANGELOG.md"
|
|
58
58
|
],
|
|
59
|
-
"scripts": {
|
|
60
|
-
"build": "tsup",
|
|
61
|
-
"dev": "tsup --watch src",
|
|
62
|
-
"test": "vitest run",
|
|
63
|
-
"typecheck": "tsc --noEmit",
|
|
64
|
-
"lint": "eslint src test"
|
|
65
|
-
},
|
|
66
59
|
"dependencies": {
|
|
67
|
-
"@poolse/react": "^2.
|
|
68
|
-
"@poolse/sdk": "^2.
|
|
60
|
+
"@poolse/react": "^2.26.0",
|
|
61
|
+
"@poolse/sdk": "^2.22.0",
|
|
69
62
|
"react-markdown": "^9.0.1",
|
|
70
63
|
"remark-gfm": "^4.0.0"
|
|
71
64
|
},
|
|
@@ -81,5 +74,12 @@
|
|
|
81
74
|
},
|
|
82
75
|
"publishConfig": {
|
|
83
76
|
"access": "public"
|
|
77
|
+
},
|
|
78
|
+
"scripts": {
|
|
79
|
+
"build": "tsup",
|
|
80
|
+
"dev": "tsup --watch src",
|
|
81
|
+
"test": "vitest run",
|
|
82
|
+
"typecheck": "tsc --noEmit",
|
|
83
|
+
"lint": "eslint src test"
|
|
84
84
|
}
|
|
85
|
-
}
|
|
85
|
+
}
|