@poolse/react-ui 3.2.0-dev.1 → 3.2.0-dev.3

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
@@ -3380,7 +3380,7 @@
3380
3380
 
3381
3381
  .poolse-room__head {
3382
3382
  display: flex;
3383
- align-items: baseline;
3383
+ align-items: center;
3384
3384
  justify-content: space-between;
3385
3385
  gap: 12px;
3386
3386
  padding: 12px 16px 6px;
@@ -3398,6 +3398,65 @@
3398
3398
  color: rgba(255, 255, 255, 0.7);
3399
3399
  font-variant-numeric: tabular-nums;
3400
3400
  white-space: nowrap;
3401
+ margin-left: auto;
3402
+ }
3403
+
3404
+ /* Full screen: the whole room from its header, or only a shared screen
3405
+ from the button on it (double-clicking the screen does the same). */
3406
+ .poolse-room__fullscreen,
3407
+ .callpresent__fullscreen {
3408
+ display: inline-flex;
3409
+ align-items: center;
3410
+ justify-content: center;
3411
+ flex: none;
3412
+ padding: 0;
3413
+ border: none;
3414
+ border-radius: 999px;
3415
+ color: #fff;
3416
+ cursor: pointer;
3417
+ }
3418
+
3419
+ .poolse-room__fullscreen {
3420
+ width: 30px;
3421
+ height: 30px;
3422
+ margin: -4px -6px -4px 0;
3423
+ background: transparent;
3424
+ }
3425
+
3426
+ .poolse-room__fullscreen:hover,
3427
+ .poolse-room__fullscreen:focus-visible {
3428
+ background: rgba(255, 255, 255, 0.12);
3429
+ }
3430
+
3431
+ .poolse-room:fullscreen {
3432
+ border-radius: 0;
3433
+ }
3434
+
3435
+ .callpresent__fullscreen {
3436
+ position: absolute;
3437
+ top: 10px;
3438
+ right: 10px;
3439
+ width: 38px;
3440
+ height: 38px;
3441
+ background: rgba(0, 0, 0, 0.6);
3442
+ opacity: 0;
3443
+ transition: opacity 0.15s ease;
3444
+ }
3445
+
3446
+ .callpresent__screen:hover .callpresent__fullscreen,
3447
+ .callpresent__fullscreen:focus-visible {
3448
+ opacity: 1;
3449
+ }
3450
+
3451
+ /* No hover on touch screens: keep it visible. */
3452
+ @media (hover: none) {
3453
+ .callpresent__fullscreen {
3454
+ opacity: 1;
3455
+ }
3456
+ }
3457
+
3458
+ .callpresent__screen:fullscreen {
3459
+ border-radius: 0;
3401
3460
  }
3402
3461
 
3403
3462
  .poolse-room__stage {
@@ -3408,7 +3467,8 @@
3408
3467
  }
3409
3468
 
3410
3469
  .poolse-room__stage > .callgrid,
3411
- .poolse-room__stage > .callstage {
3470
+ .poolse-room__stage > .callstage,
3471
+ .poolse-room__stage > .callpresent {
3412
3472
  position: absolute;
3413
3473
  inset: 8px;
3414
3474
  }
@@ -3451,6 +3511,85 @@
3451
3511
  min-height: 0;
3452
3512
  }
3453
3513
 
3514
+ /* A shared screen fills the stage, uncropped, with everyone's faces in a
3515
+ strip beside it (under it on a narrow screen). */
3516
+ .callpresent {
3517
+ display: grid;
3518
+ grid-template-columns: minmax(0, 1fr) clamp(140px, 16vw, 200px);
3519
+ gap: 8px;
3520
+ min-height: 0;
3521
+ }
3522
+
3523
+ .callpresent__screen {
3524
+ position: relative;
3525
+ min-width: 0;
3526
+ min-height: 0;
3527
+ border-radius: 12px;
3528
+ overflow: hidden;
3529
+ background: #000;
3530
+ }
3531
+
3532
+ .callpresent__screen .callgrid__video {
3533
+ width: 100%;
3534
+ height: 100%;
3535
+ }
3536
+
3537
+ .callpresent__strip {
3538
+ display: flex;
3539
+ flex-direction: column;
3540
+ gap: 8px;
3541
+ min-height: 0;
3542
+ overflow-y: auto;
3543
+ }
3544
+
3545
+ .callpresent__strip .callgrid__tile {
3546
+ flex: none;
3547
+ aspect-ratio: 16 / 10;
3548
+ min-height: 0;
3549
+ }
3550
+
3551
+ @media (max-width: 640px) {
3552
+ .callpresent {
3553
+ grid-template-columns: minmax(0, 1fr);
3554
+ grid-template-rows: minmax(0, 1fr) 96px;
3555
+ }
3556
+
3557
+ .callpresent__strip {
3558
+ flex-direction: row;
3559
+ overflow-x: auto;
3560
+ overflow-y: hidden;
3561
+ }
3562
+
3563
+ .callpresent__strip .callgrid__tile {
3564
+ height: 100%;
3565
+ aspect-ratio: 4 / 3;
3566
+ }
3567
+ }
3568
+
3569
+ .poolse-room__sharing {
3570
+ display: flex;
3571
+ align-items: center;
3572
+ justify-content: center;
3573
+ gap: 10px;
3574
+ margin: 0 8px;
3575
+ padding: 8px 12px;
3576
+ border-radius: 10px;
3577
+ font-size: 13.5px;
3578
+ color: #fff;
3579
+ background: color-mix(in srgb, var(--poolse-brand, #e25a3a) 85%, #000);
3580
+ }
3581
+
3582
+ .poolse-room__sharing button {
3583
+ font: inherit;
3584
+ font-weight: 600;
3585
+ color: inherit;
3586
+ background: rgba(255, 255, 255, 0.18);
3587
+ border: none;
3588
+ border-radius: 999px;
3589
+ padding: 4px 12px;
3590
+ cursor: pointer;
3591
+ }
3592
+
3454
3593
  /* Initials sized to the tile, so the small self-view bubble does not
3455
3594
  overflow its circle. */
3456
3595
  .callgrid__placeholder {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolse/react-ui",
3
- "version": "3.2.0-dev.1",
3
+ "version": "3.2.0-dev.3",
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.2.0-dev.1",
62
- "@poolse/sdk": "^3.2.0-dev.1",
61
+ "@poolse/react": "^3.2.0-dev.3",
62
+ "@poolse/sdk": "^3.2.0-dev.3",
63
63
  "react-markdown": "^9.0.1",
64
64
  "remark-gfm": "^4.0.0"
65
65
  },