@rtsee/ngx 0.0.141 → 0.0.142

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.
@@ -69,7 +69,11 @@ declare class ProgressiveImageDirective implements OnChanges, OnDestroy {
69
69
  declare class RTSeeControlsComponent {
70
70
  rtsee: RTSeeConference;
71
71
  fullScreenMode?: boolean;
72
- onPresentClicked(): void;
72
+ get canSwitchCamera(): boolean;
73
+ get canShareScreen(): boolean;
74
+ onSwitchCameraClicked(event: Event): void;
75
+ onPresentClicked(event: Event): void;
76
+ onCornerModeClicked(event: Event): void;
73
77
  static ɵfac: i0.ɵɵFactoryDeclaration<RTSeeControlsComponent, never>;
74
78
  static ɵcmp: i0.ɵɵComponentDeclaration<RTSeeControlsComponent, "ngx-rtsee-controls", never, { "rtsee": { "alias": "rtsee"; "required": false; }; "fullScreenMode": { "alias": "fullScreenMode"; "required": false; }; }, {}, never, never, true, never>;
75
79
  }
@@ -87,26 +91,38 @@ declare class RtseeSettingsComponent implements OnInit {
87
91
  static ɵcmp: i0.ɵɵComponentDeclaration<RtseeSettingsComponent, "ngx-rtsee-settings", never, { "rtSee": { "alias": "rtSee"; "required": false; }; "fullScreenMode": { "alias": "fullScreenMode"; "required": false; }; }, {}, never, never, true, never>;
88
92
  }
89
93
 
90
- declare class RTSeeConferenceComponent {
94
+ declare class RTSeeConferenceComponent implements OnDestroy {
91
95
  settingsViewEnabled: boolean;
96
+ localVideoEl?: ElementRef<HTMLVideoElement>;
97
+ screenShareVideoEl?: ElementRef<HTMLVideoElement>;
92
98
  rtSee: RTSeeConference;
93
99
  constructor();
100
+ ngOnDestroy(): void;
101
+ private releaseVideoElement;
94
102
  toggleSettings(): void;
95
- toggleFullScreenMode(): void;
103
+ toggleFullScreenMode(event?: Event): void;
104
+ expandToFullScreen(event?: Event): void;
105
+ onShellClicked(event: MouseEvent): void;
106
+ isPeerVisibleInView(peer: RTSeePeerConnection): boolean;
107
+ get callHeaderTitle(): string;
96
108
  static ɵfac: i0.ɵɵFactoryDeclaration<RTSeeConferenceComponent, never>;
97
109
  static ɵcmp: i0.ɵɵComponentDeclaration<RTSeeConferenceComponent, "rtsee-conference", never, { "rtSee": { "alias": "rtSee"; "required": false; }; }, {}, never, never, true, never>;
98
110
  }
99
111
 
100
- declare class RtseePeerComponent implements AfterViewInit {
112
+ declare class RtseePeerComponent implements AfterViewInit, OnDestroy {
101
113
  intervalLength: number;
102
114
  noiceLevel: number;
103
- audioOutput?: ElementRef;
104
- videoOutput?: ElementRef;
115
+ audioOutput?: ElementRef<HTMLAudioElement>;
116
+ videoOutput?: ElementRef<HTMLVideoElement>;
105
117
  peer: RTSeePeerConnection;
118
+ compact: boolean;
106
119
  constructor();
120
+ get displayName(): string;
121
+ get initialLetter(): string;
107
122
  ngAfterViewInit(): void;
123
+ ngOnDestroy(): void;
108
124
  static ɵfac: i0.ɵɵFactoryDeclaration<RtseePeerComponent, never>;
109
- static ɵcmp: i0.ɵɵComponentDeclaration<RtseePeerComponent, "ngx-rtsee-peer", never, { "peer": { "alias": "peer"; "required": false; }; }, {}, never, never, true, never>;
125
+ static ɵcmp: i0.ɵɵComponentDeclaration<RtseePeerComponent, "ngx-rtsee-peer", never, { "peer": { "alias": "peer"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; }, {}, never, never, true, never>;
110
126
  }
111
127
 
112
128
  interface IRTSeeAuthRequestOptions {
@@ -17,12 +17,24 @@ $border-radius: 8px;
17
17
  $expanded-peer-wrapper-offset: 4px;
18
18
 
19
19
  .rtsee-conference-shell {
20
- background-color: $container-background-dark;
20
+ background-color: #141522;
21
21
  width: 100%;
22
22
  height: $video-container-height;
23
23
  overflow: hidden;
24
24
  position: relative;
25
25
 
26
+ &.rtsee-conference-shell-minified {
27
+ cursor: pointer;
28
+ }
29
+
30
+ .rtsee-controls-wrapper {
31
+ bottom: 8px;
32
+ }
33
+
34
+ .rtsee-window-controls {
35
+ top: $container-inner-offset;
36
+ }
37
+
26
38
  &:hover {
27
39
  .rtsee-controls-wrapper {
28
40
  bottom: 8px;
@@ -68,10 +80,27 @@ $expanded-peer-wrapper-offset: 4px;
68
80
 
69
81
  .rtsee-peers {
70
82
  height: 100%;
83
+ position: relative;
71
84
 
72
85
  .rtsee-peer-wrapper {
73
86
  box-sizing: border-box;
74
87
  height: 100%;
88
+ width: 100%;
89
+
90
+ &.rtsee-peer-wrapper-minified-hidden {
91
+ position: absolute;
92
+ width: 0;
93
+ height: 0;
94
+ overflow: hidden;
95
+ opacity: 0;
96
+ pointer-events: none;
97
+ }
98
+
99
+ &.rtsee-peer-wrapper-active-speaker {
100
+ .rtsee-peer-content {
101
+ box-shadow: inset 0 0 0 2px #7c6cff;
102
+ }
103
+ }
75
104
 
76
105
  .rtsee-peer {
77
106
  position: relative;
@@ -83,23 +112,75 @@ $expanded-peer-wrapper-offset: 4px;
83
112
  }
84
113
  }
85
114
 
115
+ .rtsee-waiting-placeholder {
116
+ position: absolute;
117
+ inset: 0;
118
+ display: flex;
119
+ flex-direction: column;
120
+ align-items: center;
121
+ justify-content: center;
122
+ gap: 8px;
123
+ color: rgba(255, 255, 255, 0.78);
124
+ pointer-events: none;
125
+
126
+ .rtsee-waiting-icon {
127
+ font-size: 32px;
128
+ opacity: 0.75;
129
+ }
130
+
131
+ .rtsee-waiting-text {
132
+ font-size: 14px;
133
+ font-weight: 500;
134
+ }
135
+ }
136
+
137
+ .rtsee-fullscreen-header {
138
+ position: absolute;
139
+ top: 0;
140
+ left: 0;
141
+ right: 0;
142
+ padding: 16px 20px;
143
+ display: flex;
144
+ align-items: center;
145
+ gap: 10px;
146
+ color: #ffffff;
147
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
148
+ z-index: 6;
149
+ pointer-events: none;
150
+
151
+ .rtsee-fullscreen-header-icon {
152
+ font-size: 20px;
153
+ opacity: 0.8;
154
+ }
155
+
156
+ .rtsee-fullscreen-header-title {
157
+ font-size: 16px;
158
+ font-weight: 600;
159
+ }
160
+ }
161
+
86
162
  .rtsee-controls-wrapper {
87
163
  height: $controls-panel-height;
88
164
  width: 100%;
89
165
  position: absolute;
90
166
  left: 0;
91
- bottom: - $controls-panel-height;
92
- transition: bottom 0.1s;
167
+ bottom: 8px;
168
+ transition: bottom 0.15s ease;
93
169
  text-align: center;
94
- z-index: 1;
170
+ z-index: 6;
171
+ pointer-events: none;
172
+
173
+ ngx-rtsee-controls {
174
+ pointer-events: auto;
175
+ }
95
176
  }
96
177
 
97
178
  .rtsee-window-controls {
98
179
  position: absolute;
99
- top: - $controls-panel-height;
180
+ top: $container-inner-offset;
100
181
  right: $container-inner-offset;
101
- transition: top 0.1s;
102
- z-index: 4;
182
+ transition: top 0.15s ease;
183
+ z-index: 6;
103
184
  cursor: pointer;
104
185
 
105
186
  .rtsee-ripple-button {
@@ -147,12 +228,19 @@ $expanded-peer-wrapper-offset: 4px;
147
228
  position: fixed;
148
229
  border-radius: 0;
149
230
  max-width: unset;
150
- height: unset;
151
- width: unset;
231
+ height: 100dvh;
232
+ width: 100vw;
152
233
  bottom: 0;
153
234
  right: 0;
154
235
  left: 0;
155
236
  top: 0;
237
+ z-index: 9999;
238
+ background-color: #0e0f1a;
239
+
240
+ .rtsee-controls-wrapper {
241
+ height: $expanded-controls-panel-height;
242
+ bottom: $container-offset;
243
+ }
156
244
 
157
245
  &:hover {
158
246
  .rtsee-controls-wrapper {
@@ -166,76 +254,112 @@ $expanded-peer-wrapper-offset: 4px;
166
254
  }
167
255
 
168
256
  .rtsee-local-peer {
169
- top: unset;
170
- left: unset;
171
- width: $expanded-video-container-width;
172
- height: $expanded-video-container-height;
173
- bottom: $container-offset;
257
+ top: 60px;
174
258
  right: $container-offset;
259
+ left: unset;
260
+ bottom: unset;
261
+ width: 132px;
262
+ height: 184px;
263
+ border-radius: 14px;
264
+ border: 1.5px solid rgba(255, 255, 255, 0.35);
265
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
175
266
  padding: 0;
176
- z-index: 5;
267
+ z-index: 7;
268
+
269
+ @media screen and (min-width: 768px) {
270
+ width: 180px;
271
+ height: 132px;
272
+ top: unset;
273
+ bottom: 108px;
274
+ }
275
+ }
276
+
277
+ &.rtsee-conference-shell-no-companions {
278
+ .rtsee-local-peer {
279
+ inset: 0;
280
+ width: 100%;
281
+ height: 100%;
282
+ border-radius: 0;
283
+ border: none;
284
+ }
177
285
  }
178
286
 
179
287
  .rtsee-peers {
180
288
  width: 100%;
181
289
  height: 100%;
182
- display: table;
183
- table-layout: fixed;
290
+ box-sizing: border-box;
291
+ padding: 58px 14px 104px;
292
+ display: grid;
293
+ gap: 12px;
294
+ align-items: stretch;
295
+ justify-items: stretch;
184
296
 
185
297
  .rtsee-peer-wrapper {
186
- display: table-cell;
187
- vertical-align: middle;
298
+ width: 100%;
299
+ height: 100%;
300
+ min-height: 0;
301
+ min-width: 0;
302
+
303
+ .rtsee-peer {
304
+ height: 100%;
305
+ width: 100%;
306
+ border-radius: 14px;
307
+ overflow: hidden;
308
+ }
309
+
310
+ .rtsee-peer-content {
311
+ border-radius: 14px;
312
+ }
188
313
 
189
314
  .rtsee-peer-video {
190
- border-radius: 0;
315
+ border-radius: 14px;
191
316
  }
192
317
  }
193
318
 
194
319
  &.rtsee-peers-one {
195
- .rtsee-peer-wrapper {
196
- width: 100%;
197
- height: 100%;
320
+ grid-template-columns: 1fr;
321
+ grid-template-rows: 1fr;
322
+ padding: 0;
198
323
 
199
- .rtsee-peer {
200
- height: 70%;
201
- position: relative;
324
+ .rtsee-peer-wrapper {
325
+ .rtsee-peer,
326
+ .rtsee-peer-content,
327
+ .rtsee-peer-video {
328
+ border-radius: 0;
202
329
  }
203
330
  }
204
331
  }
205
332
 
206
- &.rtsee-peers-three-grid {
207
- .rtsee-peer-wrapper {
208
- width: 50%;
209
- height: 100%;
210
-
211
-
212
- .rtsee-peer {
213
- height: 70%;
214
- position: relative;
215
- }
333
+ &.rtsee-peers-two-grid {
334
+ grid-template-columns: 1fr;
335
+ grid-template-rows: repeat(2, minmax(0, 1fr));
216
336
 
337
+ @media screen and (min-width: 768px) {
338
+ grid-template-columns: repeat(2, minmax(0, 1fr));
339
+ grid-template-rows: 1fr;
217
340
  }
218
341
  }
219
342
 
220
- &.rtsee-peers-six-grid {
221
- .rtsee-peer-wrapper {
222
- width: 33.3%;
223
- height: 50%;
224
- float: left;
225
- }
343
+ &.rtsee-peers-three-grid {
344
+ grid-template-columns: repeat(2, minmax(0, 1fr));
345
+ grid-template-rows: repeat(2, minmax(0, 1fr));
226
346
  }
227
347
 
228
- &.rtsee-conference-shell-no-companions {
229
- .rtsee-local-peer {
230
- height: 100%;
231
- max-width: 100%;
348
+ &.rtsee-peers-six-grid {
349
+ grid-template-columns: repeat(2, minmax(0, 1fr));
350
+ grid-template-rows: repeat(3, minmax(0, 1fr));
351
+
352
+ @media screen and (min-width: 900px) {
353
+ grid-template-columns: repeat(3, minmax(0, 1fr));
354
+ grid-template-rows: repeat(2, minmax(0, 1fr));
232
355
  }
233
356
  }
234
- }
235
357
 
236
- .rtsee-controls-wrapper {
237
- height: $expanded-controls-panel-height;
238
- bottom: -$expanded-controls-panel-height;
358
+ &.rtsee-peers-nine-grid {
359
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
360
+ grid-auto-rows: minmax(180px, 1fr);
361
+ overflow-y: auto;
362
+ }
239
363
  }
240
364
  }
241
365
 
@@ -25,24 +25,70 @@ ngx-rtsee-peer {
25
25
  border-radius: 4px;
26
26
 
27
27
  .rtsee-peer-photo {
28
+ height: 100%;
29
+ display: flex;
30
+ flex-direction: column;
31
+ align-items: center;
32
+ justify-content: center;
33
+ gap: 8px;
34
+
28
35
  .rtsee-peer-photo-wrapper {
29
- display: inline-block;
36
+ display: inline-flex;
37
+ align-items: center;
38
+ justify-content: center;
30
39
  height: $peer-photo-d;
31
40
  width: $peer-photo-d;
32
41
  border-radius: 50%;
33
42
  position: relative;
34
43
  border: 0 solid #ffffff;
44
+ overflow: hidden;
35
45
 
36
46
  .rtsee-peer-photo-image {
37
47
  border: 0 solid #fff;
38
48
  height: 100%;
49
+ width: 100%;
39
50
  left: 0;
40
51
  background-size: cover;
52
+ background-position: center;
53
+ border-radius: 50%;
54
+ }
55
+
56
+ .rtsee-peer-photo-fallback {
57
+ height: 100%;
58
+ width: 100%;
41
59
  border-radius: 50%;
60
+ background: linear-gradient(135deg, #4b429f, #2a2c47);
61
+ color: #ffffff;
62
+ font-size: 36px;
63
+ font-weight: 700;
64
+ display: flex;
65
+ align-items: center;
66
+ justify-content: center;
42
67
  }
43
68
  }
44
69
  }
45
70
 
71
+ .rtsee-peer-name-badge {
72
+ position: absolute;
73
+ left: 10px;
74
+ bottom: 12px;
75
+ z-index: 2;
76
+ display: inline-flex;
77
+ align-items: center;
78
+ gap: 4px;
79
+ padding: 4px 10px;
80
+ border-radius: 8px;
81
+ background: rgba(0, 0, 0, 0.58);
82
+ color: #ffffff;
83
+ font-size: 12px;
84
+ font-weight: 500;
85
+
86
+ .rtsee-peer-mic-muted-icon {
87
+ font-size: 15px;
88
+ color: #ff6b6b;
89
+ }
90
+ }
91
+
46
92
  .rtsee-peer-info {
47
93
  color: #ffffff;
48
94
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.141",
2
+ "version": "0.0.142",
3
3
  "name": "@rtsee/ngx",
4
4
  "module": "./dist/ngx/fesm2022/rtsee-ngx.mjs",
5
5
  "types": "./dist/ngx/index.d.ts",
@@ -40,15 +40,15 @@
40
40
  "@angular/platform-browser-dynamic": "^20.1.2",
41
41
  "@angular/router": "^20.1.2",
42
42
  "@primeuix/themes": "^1.2.3",
43
- "@rtsee/common": "^0.0.112",
44
- "@rtsee/conference": "^0.0.113",
45
- "@rtsee/core": "^0.0.156",
46
- "@rtsee/events-dashboard": "^0.0.146",
47
- "@rtsee/factory": "^0.0.155",
48
- "@rtsee/messenger": "^0.0.146",
49
- "@rtsee/presentation": "^0.0.145",
50
- "@rtsee/signaling-client": "^0.0.159",
51
- "@rtsee/utilities-ui": "^0.0.77",
43
+ "@rtsee/common": "^0.0.113",
44
+ "@rtsee/conference": "^0.0.114",
45
+ "@rtsee/core": "^0.0.157",
46
+ "@rtsee/events-dashboard": "^0.0.147",
47
+ "@rtsee/factory": "^0.0.156",
48
+ "@rtsee/messenger": "^0.0.147",
49
+ "@rtsee/presentation": "^0.0.146",
50
+ "@rtsee/signaling-client": "^0.0.160",
51
+ "@rtsee/utilities-ui": "^0.0.78",
52
52
  "@stripe/stripe-js": "^8.6.1",
53
53
  "@types/gtag.js": "^0.0.20",
54
54
  "@types/node": "~24.0.14",
@@ -71,5 +71,5 @@
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "fec1b54a34b124f03d17cea4d87f2074715e7696"
74
+ "gitHead": "3d4f7b9b35999d19c6f31882aa00c4c23db2a411"
75
75
  }