@poolse/react-ui 3.8.0 → 3.9.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/styles.css CHANGED
@@ -5213,3 +5213,467 @@
5213
5213
  scroll-behavior: auto !important;
5214
5214
  }
5215
5215
  }
5216
+
5217
+ /* ── Recording, consent and transcripts ─────────────────────────────── */
5218
+
5219
+ /* The recording dot: a red light, pulsing while live. */
5220
+ .poolse-rec-dot {
5221
+ flex: none;
5222
+ width: 8px;
5223
+ height: 8px;
5224
+ border-radius: 50%;
5225
+ background: var(--poolse-error);
5226
+ animation: poolse-rec-pulse 1.6s ease-in-out infinite;
5227
+ }
5228
+
5229
+ .poolse-rec-dot--off {
5230
+ background: var(--poolse-ink-3);
5231
+ animation: none;
5232
+ }
5233
+
5234
+ @keyframes poolse-rec-pulse {
5235
+ 50% {
5236
+ opacity: 0.35;
5237
+ }
5238
+ }
5239
+
5240
+ @media (prefers-reduced-motion: reduce) {
5241
+ .poolse-rec-dot {
5242
+ animation: none;
5243
+ }
5244
+ }
5245
+
5246
+ /* A strip across a captured call. */
5247
+ .poolse-rec-banner {
5248
+ display: flex;
5249
+ align-items: center;
5250
+ gap: 10px;
5251
+ padding: 6px 12px;
5252
+ color: var(--poolse-ink);
5253
+ background: color-mix(in srgb, var(--poolse-error) 12%, var(--poolse-surface));
5254
+ border-bottom: 1px solid color-mix(in srgb, var(--poolse-error) 30%, var(--poolse-border));
5255
+ }
5256
+
5257
+ .poolse-rec-banner__text {
5258
+ display: flex;
5259
+ flex-wrap: wrap;
5260
+ align-items: baseline;
5261
+ column-gap: 8px;
5262
+ flex: 1;
5263
+ min-width: 0;
5264
+ }
5265
+
5266
+ .poolse-rec-banner__title {
5267
+ font: 600 13px / 1.3 var(--poolse-font-body);
5268
+ white-space: nowrap;
5269
+ }
5270
+
5271
+ .poolse-rec-banner__meta {
5272
+ min-width: 0;
5273
+ font: 500 12px / 1.3 var(--poolse-font-body);
5274
+ color: var(--poolse-ink-2);
5275
+ overflow: hidden;
5276
+ text-overflow: ellipsis;
5277
+ white-space: nowrap;
5278
+ }
5279
+
5280
+ .poolse-rec-banner__btn {
5281
+ flex: none;
5282
+ padding: 4px 12px;
5283
+ font: 600 12px / 1.2 var(--poolse-font-body);
5284
+ color: var(--poolse-ink);
5285
+ background: var(--poolse-surface);
5286
+ border: 1px solid var(--poolse-border);
5287
+ border-radius: var(--poolse-radius-pill);
5288
+ cursor: pointer;
5289
+ }
5290
+
5291
+ .poolse-rec-banner__btn:disabled {
5292
+ opacity: 0.6;
5293
+ cursor: default;
5294
+ }
5295
+
5296
+ .poolse-rec-banner__btn:focus-visible {
5297
+ outline: 2px solid var(--poolse-brand);
5298
+ outline-offset: 1px;
5299
+ }
5300
+
5301
+ /* Inside the (always dark) room. */
5302
+ .poolse-room {
5303
+ position: relative;
5304
+ }
5305
+
5306
+ .poolse-room .poolse-rec-banner {
5307
+ margin: 4px 14px 0;
5308
+ color: #fff;
5309
+ background: rgba(229, 72, 77, 0.18);
5310
+ border: 1px solid rgba(229, 72, 77, 0.4);
5311
+ border-radius: var(--poolse-radius-md);
5312
+ }
5313
+
5314
+ .poolse-room .poolse-rec-banner__meta {
5315
+ color: rgba(255, 255, 255, 0.75);
5316
+ }
5317
+
5318
+ .poolse-room .poolse-rec-banner__btn {
5319
+ color: #fff;
5320
+ background: rgba(255, 255, 255, 0.12);
5321
+ border-color: rgba(255, 255, 255, 0.2);
5322
+ }
5323
+
5324
+ .poolse-rec-indicator {
5325
+ display: inline-flex;
5326
+ align-items: center;
5327
+ gap: 6px;
5328
+ padding: 2px 8px;
5329
+ font: 700 11px / 1.4 var(--poolse-font-body);
5330
+ letter-spacing: 0.04em;
5331
+ color: var(--poolse-error);
5332
+ background: color-mix(in srgb, var(--poolse-error) 12%, transparent);
5333
+ border-radius: var(--poolse-radius-pill);
5334
+ white-space: nowrap;
5335
+ }
5336
+
5337
+ .poolse-room .poolse-rec-indicator {
5338
+ color: #fff;
5339
+ }
5340
+
5341
+ /* The consent prompt: a card over a scrim filling the call. */
5342
+ .poolse-consent-scrim {
5343
+ position: absolute;
5344
+ inset: 0;
5345
+ z-index: 20;
5346
+ display: flex;
5347
+ align-items: center;
5348
+ justify-content: center;
5349
+ padding: 16px;
5350
+ background: rgba(12, 13, 16, 0.6);
5351
+ }
5352
+
5353
+ .poolse-consent {
5354
+ width: 100%;
5355
+ max-width: 380px;
5356
+ padding: 18px 18px 16px;
5357
+ color: var(--poolse-ink);
5358
+ background: var(--poolse-surface);
5359
+ border: 1px solid var(--poolse-border);
5360
+ border-radius: var(--poolse-radius-lg);
5361
+ box-shadow: var(--poolse-shadow-lg);
5362
+ }
5363
+
5364
+ .poolse-consent__head {
5365
+ display: flex;
5366
+ align-items: center;
5367
+ gap: 10px;
5368
+ }
5369
+
5370
+ .poolse-consent__title {
5371
+ margin: 0;
5372
+ font: 700 16px / 1.3 var(--poolse-font-body);
5373
+ overflow-wrap: anywhere;
5374
+ }
5375
+
5376
+ .poolse-consent__body {
5377
+ margin: 8px 0 16px;
5378
+ font: 400 14px / 1.45 var(--poolse-font-body);
5379
+ color: var(--poolse-ink-2);
5380
+ overflow-wrap: anywhere;
5381
+ }
5382
+
5383
+ .poolse-consent__actions {
5384
+ display: flex;
5385
+ flex-wrap: wrap;
5386
+ justify-content: flex-end;
5387
+ gap: 8px;
5388
+ }
5389
+
5390
+ .poolse-consent__btn {
5391
+ padding: 8px 16px;
5392
+ font: 600 14px / 1.2 var(--poolse-font-body);
5393
+ color: var(--poolse-ink);
5394
+ background: var(--poolse-surface-2);
5395
+ border: 1px solid var(--poolse-border);
5396
+ border-radius: var(--poolse-radius-pill);
5397
+ cursor: pointer;
5398
+ }
5399
+
5400
+ .poolse-consent__btn--primary {
5401
+ color: var(--poolse-on-brand);
5402
+ background: var(--poolse-brand);
5403
+ border-color: var(--poolse-brand);
5404
+ }
5405
+
5406
+ .poolse-consent__btn:disabled {
5407
+ opacity: 0.6;
5408
+ cursor: default;
5409
+ }
5410
+
5411
+ .poolse-consent__btn:focus-visible {
5412
+ outline: 2px solid var(--poolse-brand);
5413
+ outline-offset: 2px;
5414
+ }
5415
+
5416
+ .poolse-consent__error {
5417
+ margin: 10px 0 0;
5418
+ font: 500 13px / 1.4 var(--poolse-font-body);
5419
+ color: var(--poolse-error);
5420
+ }
5421
+
5422
+ /* Transcripts: the live panel and the stored viewer. */
5423
+ .poolse-transcript {
5424
+ display: flex;
5425
+ flex-direction: column;
5426
+ min-height: 0;
5427
+ height: 100%;
5428
+ color: var(--poolse-ink);
5429
+ background: var(--poolse-surface);
5430
+ font-family: var(--poolse-font-body);
5431
+ }
5432
+
5433
+ .poolse-transcript__head {
5434
+ display: flex;
5435
+ align-items: center;
5436
+ gap: 8px;
5437
+ padding: 10px 12px;
5438
+ border-bottom: 1px solid var(--poolse-border);
5439
+ }
5440
+
5441
+ .poolse-transcript__heading {
5442
+ display: flex;
5443
+ flex-direction: column;
5444
+ flex: 1;
5445
+ min-width: 0;
5446
+ }
5447
+
5448
+ .poolse-transcript__title {
5449
+ display: inline-flex;
5450
+ align-items: center;
5451
+ gap: 8px;
5452
+ flex: 1;
5453
+ min-width: 0;
5454
+ font: 600 14px / 1.3 var(--poolse-font-body);
5455
+ white-space: nowrap;
5456
+ overflow: hidden;
5457
+ text-overflow: ellipsis;
5458
+ }
5459
+
5460
+ .poolse-transcript__meta {
5461
+ font: 500 12px / 1.3 var(--poolse-font-body);
5462
+ color: var(--poolse-ink-3);
5463
+ white-space: nowrap;
5464
+ overflow: hidden;
5465
+ text-overflow: ellipsis;
5466
+ }
5467
+
5468
+ .poolse-transcript__btn {
5469
+ flex: none;
5470
+ padding: 4px 12px;
5471
+ font: 600 12px / 1.2 var(--poolse-font-body);
5472
+ color: var(--poolse-ink);
5473
+ background: var(--poolse-surface-2);
5474
+ border: 1px solid var(--poolse-border);
5475
+ border-radius: var(--poolse-radius-pill);
5476
+ cursor: pointer;
5477
+ }
5478
+
5479
+ .poolse-transcript__icon-btn {
5480
+ flex: none;
5481
+ display: inline-flex;
5482
+ align-items: center;
5483
+ justify-content: center;
5484
+ width: 28px;
5485
+ height: 28px;
5486
+ padding: 0;
5487
+ color: var(--poolse-ink-2);
5488
+ background: none;
5489
+ border: none;
5490
+ border-radius: var(--poolse-radius-sm);
5491
+ cursor: pointer;
5492
+ }
5493
+
5494
+ .poolse-transcript__icon-btn:hover:not(:disabled) {
5495
+ background: var(--poolse-surface-2);
5496
+ }
5497
+
5498
+ .poolse-transcript__icon-btn:disabled,
5499
+ .poolse-transcript__btn:disabled {
5500
+ opacity: 0.5;
5501
+ cursor: default;
5502
+ }
5503
+
5504
+ .poolse-transcript__btn:focus-visible,
5505
+ .poolse-transcript__icon-btn:focus-visible,
5506
+ .poolse-transcript__time--link:focus-visible {
5507
+ outline: 2px solid var(--poolse-brand);
5508
+ outline-offset: 1px;
5509
+ }
5510
+
5511
+ .poolse-transcript__search {
5512
+ display: flex;
5513
+ align-items: center;
5514
+ gap: 6px;
5515
+ margin: 8px 12px 0;
5516
+ padding: 4px 4px 4px 10px;
5517
+ color: var(--poolse-ink-3);
5518
+ background: var(--poolse-surface-2);
5519
+ border-radius: var(--poolse-radius-md);
5520
+ }
5521
+
5522
+ .poolse-transcript__search input {
5523
+ flex: 1;
5524
+ min-width: 0;
5525
+ padding: 4px 0;
5526
+ font: 400 14px / 1.3 var(--poolse-font-body);
5527
+ color: var(--poolse-ink);
5528
+ background: none;
5529
+ border: none;
5530
+ outline: none;
5531
+ }
5532
+
5533
+ .poolse-transcript__count {
5534
+ flex: none;
5535
+ font: 500 12px / 1 var(--poolse-font-body);
5536
+ font-variant-numeric: tabular-nums;
5537
+ white-space: nowrap;
5538
+ }
5539
+
5540
+ .poolse-transcript__speakers {
5541
+ padding: 8px 12px 0;
5542
+ }
5543
+
5544
+ .poolse-transcript__speakers ul {
5545
+ display: flex;
5546
+ flex-wrap: wrap;
5547
+ gap: 6px;
5548
+ margin: 0;
5549
+ padding: 0;
5550
+ list-style: none;
5551
+ }
5552
+
5553
+ .poolse-transcript__speaker {
5554
+ display: inline-flex;
5555
+ align-items: center;
5556
+ gap: 2px;
5557
+ max-width: 100%;
5558
+ padding: 2px 2px 2px 10px;
5559
+ font: 500 12px / 1.3 var(--poolse-font-body);
5560
+ background: var(--poolse-surface-2);
5561
+ border-radius: var(--poolse-radius-pill);
5562
+ }
5563
+
5564
+ .poolse-transcript__speaker-name {
5565
+ min-width: 0;
5566
+ max-width: 220px;
5567
+ overflow: hidden;
5568
+ text-overflow: ellipsis;
5569
+ white-space: nowrap;
5570
+ }
5571
+
5572
+ .poolse-transcript__rename {
5573
+ display: flex;
5574
+ flex-wrap: wrap;
5575
+ align-items: center;
5576
+ gap: 4px;
5577
+ padding: 2px 0;
5578
+ }
5579
+
5580
+ .poolse-transcript__rename input {
5581
+ width: 180px;
5582
+ max-width: 100%;
5583
+ padding: 3px 8px;
5584
+ font: 400 13px / 1.3 var(--poolse-font-body);
5585
+ color: var(--poolse-ink);
5586
+ background: var(--poolse-surface);
5587
+ border: 1px solid var(--poolse-border);
5588
+ border-radius: var(--poolse-radius-sm);
5589
+ }
5590
+
5591
+ .poolse-transcript__rename button {
5592
+ padding: 3px 8px;
5593
+ font: 600 12px / 1.2 var(--poolse-font-body);
5594
+ color: var(--poolse-ink);
5595
+ background: none;
5596
+ border: none;
5597
+ border-radius: var(--poolse-radius-sm);
5598
+ cursor: pointer;
5599
+ }
5600
+
5601
+ .poolse-transcript__rename button[type='submit'] {
5602
+ color: var(--poolse-brand-strong);
5603
+ }
5604
+
5605
+ .poolse-transcript__body {
5606
+ flex: 1;
5607
+ min-height: 0;
5608
+ overflow-y: auto;
5609
+ padding: 8px 12px 12px;
5610
+ }
5611
+
5612
+ .poolse-transcript__empty {
5613
+ margin: 24px 0;
5614
+ text-align: center;
5615
+ font: 400 14px / 1.4 var(--poolse-font-body);
5616
+ color: var(--poolse-ink-3);
5617
+ }
5618
+
5619
+ .poolse-transcript__block {
5620
+ padding: 6px 0;
5621
+ }
5622
+
5623
+ .poolse-transcript__who {
5624
+ display: flex;
5625
+ align-items: baseline;
5626
+ gap: 8px;
5627
+ min-width: 0;
5628
+ }
5629
+
5630
+ .poolse-transcript__name {
5631
+ min-width: 0;
5632
+ font: 600 13px / 1.3 var(--poolse-font-body);
5633
+ overflow: hidden;
5634
+ text-overflow: ellipsis;
5635
+ white-space: nowrap;
5636
+ }
5637
+
5638
+ .poolse-transcript__time {
5639
+ flex: none;
5640
+ font: 500 11px / 1.3 var(--poolse-font-body);
5641
+ color: var(--poolse-ink-3);
5642
+ font-variant-numeric: tabular-nums;
5643
+ }
5644
+
5645
+ .poolse-transcript__time--link {
5646
+ padding: 0;
5647
+ background: none;
5648
+ border: none;
5649
+ cursor: pointer;
5650
+ text-decoration: underline;
5651
+ text-underline-offset: 2px;
5652
+ }
5653
+
5654
+ .poolse-transcript__text {
5655
+ margin: 2px 0 0;
5656
+ font: 400 14px / 1.5 var(--poolse-font-body);
5657
+ overflow-wrap: anywhere;
5658
+ white-space: pre-wrap;
5659
+ }
5660
+
5661
+ .poolse-transcript__interim {
5662
+ color: var(--poolse-ink-3);
5663
+ }
5664
+
5665
+ .poolse-transcript__hit {
5666
+ color: inherit;
5667
+ background: color-mix(in srgb, var(--poolse-warning) 30%, transparent);
5668
+ border-radius: 2px;
5669
+ }
5670
+
5671
+ .poolse-transcript__hit--current {
5672
+ background: color-mix(in srgb, var(--poolse-warning) 65%, transparent);
5673
+ }
5674
+
5675
+ .poolse-transcript__error {
5676
+ margin: 6px 12px;
5677
+ font: 500 13px / 1.4 var(--poolse-font-body);
5678
+ color: var(--poolse-error);
5679
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolse/react-ui",
3
- "version": "3.8.0",
3
+ "version": "3.9.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.8.0",
62
- "@poolse/sdk": "^3.8.0",
63
- "@poolse/theme": "^3.8.0",
61
+ "@poolse/react": "^3.9.0",
62
+ "@poolse/sdk": "^3.9.0",
63
+ "@poolse/theme": "^3.9.0",
64
64
  "react-markdown": "^9.0.1",
65
65
  "remark-gfm": "^4.0.0"
66
66
  },