vg-x07df 0.1.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/.azure-pipelines/publish-public.yml +37 -0
- package/.azure-pipelines/publish.yml +39 -0
- package/.changeset/README.md +8 -0
- package/.changeset/config.json +11 -0
- package/AUTO_JOIN_GUIDE.md +411 -0
- package/README.md +215 -0
- package/Screenshot 2025-09-24 at 14.34.48.png +0 -0
- package/Screenshot 2025-10-04 at 12.58.54.png +0 -0
- package/biome.json +48 -0
- package/examples/demo/.env.example +19 -0
- package/examples/demo/CHANGELOG.md +22 -0
- package/examples/demo/README.md +72 -0
- package/examples/demo/eslint.config.js +23 -0
- package/examples/demo/index.html +13 -0
- package/examples/demo/package.json +34 -0
- package/examples/demo/pnpm-lock.yaml +2098 -0
- package/examples/demo/pnpm-workspace.yaml +1 -0
- package/examples/demo/public/vite.svg +1 -0
- package/examples/demo/src/App.css +52 -0
- package/examples/demo/src/App.tsx +176 -0
- package/examples/demo/src/assets/react.svg +1 -0
- package/examples/demo/src/components/auth/LoginForm.css +144 -0
- package/examples/demo/src/components/auth/LoginForm.tsx +80 -0
- package/examples/demo/src/components/calling/AutoJoinSettings.tsx +213 -0
- package/examples/demo/src/components/calling/AutoJoinStatus.tsx +72 -0
- package/examples/demo/src/components/calling/CallInitiator.css +258 -0
- package/examples/demo/src/components/calling/CallInitiator.tsx +142 -0
- package/examples/demo/src/components/calling/CallNotifications.css +119 -0
- package/examples/demo/src/components/calling/CallNotifications.tsx +108 -0
- package/examples/demo/src/components/calling/IncomingCallModal.css +192 -0
- package/examples/demo/src/components/calling/IncomingCallModal.tsx +78 -0
- package/examples/demo/src/components/calling/MinimizedCall.css +156 -0
- package/examples/demo/src/components/calling/MinimizedCall.tsx +78 -0
- package/examples/demo/src/components/conference/ConferenceHeader.css +265 -0
- package/examples/demo/src/components/conference/ConferenceHeader.tsx +78 -0
- package/examples/demo/src/components/conference/EnhancedControlBar.css +356 -0
- package/examples/demo/src/components/conference/EnhancedControlBar.tsx +262 -0
- package/examples/demo/src/components/conference/PaginationControls.css +67 -0
- package/examples/demo/src/components/conference/PaginationControls.tsx +64 -0
- package/examples/demo/src/components/conference/ParticipantGrid.css +153 -0
- package/examples/demo/src/components/conference/ParticipantGrid.tsx +87 -0
- package/examples/demo/src/components/conference/ParticipantTile.css +210 -0
- package/examples/demo/src/components/conference/ParticipantTile.tsx +114 -0
- package/examples/demo/src/components/conference/VideoConference.css +214 -0
- package/examples/demo/src/components/conference/VideoConference.tsx +93 -0
- package/examples/demo/src/contexts/AuthContext.tsx +105 -0
- package/examples/demo/src/hooks/useAuth.ts +5 -0
- package/examples/demo/src/hooks/useCallTimer.ts +42 -0
- package/examples/demo/src/index.css +68 -0
- package/examples/demo/src/main.tsx +10 -0
- package/examples/demo/src/services/auth.service.ts +153 -0
- package/examples/demo/src/types/auth.types.ts +31 -0
- package/examples/demo/tsconfig.app.json +28 -0
- package/examples/demo/tsconfig.json +7 -0
- package/examples/demo/tsconfig.node.json +26 -0
- package/examples/demo/vite.config.ts +15 -0
- package/images/callpad-without-ai.png +0 -0
- package/package.json +28 -0
- package/packages/sdk/CHANGELOG.md +33 -0
- package/packages/sdk/LICENSE +21 -0
- package/packages/sdk/README.md +97 -0
- package/packages/sdk/documentation.md +1132 -0
- package/packages/sdk/openapi-ts.config.ts +7 -0
- package/packages/sdk/package.json +88 -0
- package/packages/sdk/src/core/auth.manager.ts +52 -0
- package/packages/sdk/src/core/events/event-bus.ts +301 -0
- package/packages/sdk/src/core/events/index.ts +8 -0
- package/packages/sdk/src/core/events/types.ts +165 -0
- package/packages/sdk/src/core/index.ts +3 -0
- package/packages/sdk/src/core/signal/api.config.ts +49 -0
- package/packages/sdk/src/core/signal/index.ts +16 -0
- package/packages/sdk/src/core/signal/signal.client.ts +101 -0
- package/packages/sdk/src/core/signal/types.ts +110 -0
- package/packages/sdk/src/core/socketio/handlers/base.handler.ts +212 -0
- package/packages/sdk/src/core/socketio/handlers/call-accepted.handler.ts +34 -0
- package/packages/sdk/src/core/socketio/handlers/call-canceled.handler.ts +34 -0
- package/packages/sdk/src/core/socketio/handlers/call-declined.handler.ts +29 -0
- package/packages/sdk/src/core/socketio/handlers/call-ended.handler.ts +40 -0
- package/packages/sdk/src/core/socketio/handlers/call-incoming.handler.ts +72 -0
- package/packages/sdk/src/core/socketio/handlers/call-join-info.handler.ts +181 -0
- package/packages/sdk/src/core/socketio/handlers/call-participant-joined.handler.ts +42 -0
- package/packages/sdk/src/core/socketio/handlers/call-participant-joining.handler.ts +42 -0
- package/packages/sdk/src/core/socketio/handlers/call-timeout.handler.ts +31 -0
- package/packages/sdk/src/core/socketio/handlers/handler.registry.ts +62 -0
- package/packages/sdk/src/core/socketio/handlers/index.ts +21 -0
- package/packages/sdk/src/core/socketio/handlers/participant-left.handler.ts +37 -0
- package/packages/sdk/src/core/socketio/handlers/schema.ts +130 -0
- package/packages/sdk/src/core/socketio/index.ts +5 -0
- package/packages/sdk/src/core/socketio/socket.manager.ts +187 -0
- package/packages/sdk/src/core/socketio/types.ts +14 -0
- package/packages/sdk/src/core/types.ts +23 -0
- package/packages/sdk/src/generated/api/core/ApiError.ts +21 -0
- package/packages/sdk/src/generated/api/core/ApiRequestOptions.ts +13 -0
- package/packages/sdk/src/generated/api/core/ApiResult.ts +7 -0
- package/packages/sdk/src/generated/api/core/CancelablePromise.ts +126 -0
- package/packages/sdk/src/generated/api/core/OpenAPI.ts +55 -0
- package/packages/sdk/src/generated/api/core/request.ts +339 -0
- package/packages/sdk/src/generated/api/index.ts +5 -0
- package/packages/sdk/src/generated/api/models.ts +219 -0
- package/packages/sdk/src/generated/api/services.ts +225 -0
- package/packages/sdk/src/hooks/index.ts +21 -0
- package/packages/sdk/src/hooks/useAutoJoin.ts +66 -0
- package/packages/sdk/src/hooks/useCallActions.ts +28 -0
- package/packages/sdk/src/hooks/useCallQuality.ts +416 -0
- package/packages/sdk/src/hooks/useCallState.ts +23 -0
- package/packages/sdk/src/hooks/useConnection.ts +15 -0
- package/packages/sdk/src/hooks/useDevices.ts +296 -0
- package/packages/sdk/src/hooks/useErrorRecovery.ts +299 -0
- package/packages/sdk/src/hooks/useErrors.ts +84 -0
- package/packages/sdk/src/hooks/useEvent.ts +188 -0
- package/packages/sdk/src/hooks/useMediaControls.ts +215 -0
- package/packages/sdk/src/hooks/useParticipantStatus.ts +318 -0
- package/packages/sdk/src/hooks/useParticipants.ts +111 -0
- package/packages/sdk/src/index.ts +66 -0
- package/packages/sdk/src/livekit/constants.ts +76 -0
- package/packages/sdk/src/livekit/device.manager.ts +172 -0
- package/packages/sdk/src/livekit/error-classifier.ts +155 -0
- package/packages/sdk/src/livekit/events/eventBridge.ts +371 -0
- package/packages/sdk/src/livekit/events/trackRegistry.ts +114 -0
- package/packages/sdk/src/livekit/index.ts +49 -0
- package/packages/sdk/src/livekit/livekit.service.ts +110 -0
- package/packages/sdk/src/livekit/media.controls.ts +315 -0
- package/packages/sdk/src/livekit/room.manager.ts +79 -0
- package/packages/sdk/src/livekit/track.utils.ts +230 -0
- package/packages/sdk/src/livekit/types.ts +135 -0
- package/packages/sdk/src/provider/RtcProvider.tsx +78 -0
- package/packages/sdk/src/services/call-actions.ts +260 -0
- package/packages/sdk/src/services/error-recovery.ts +461 -0
- package/packages/sdk/src/services/index.ts +2 -0
- package/packages/sdk/src/services/sdk-builder.ts +104 -0
- package/packages/sdk/src/state/errors.ts +163 -0
- package/packages/sdk/src/state/selectors.ts +28 -0
- package/packages/sdk/src/state/store.ts +36 -0
- package/packages/sdk/src/state/types.ts +151 -0
- package/packages/sdk/src/utils/logger.ts +183 -0
- package/packages/sdk/tsconfig.json +49 -0
- package/packages/sdk/tsup.config.ts +51 -0
- package/pnpm-workspace.yaml +4 -0
- package/tsconfig.base.json +19 -0
- package/turbo.json +34 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
.conference-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
|
|
6
|
+
backdrop-filter: blur(20px);
|
|
7
|
+
border-bottom: 1px solid rgba(226, 232, 240, 0.8);
|
|
8
|
+
padding: 12px 24px;
|
|
9
|
+
height: 64px;
|
|
10
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.header-left {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 24px;
|
|
17
|
+
flex: 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.app-logo {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 8px;
|
|
24
|
+
font-weight: 700;
|
|
25
|
+
font-size: 18px;
|
|
26
|
+
color: #1e293b;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.logo-icon {
|
|
30
|
+
font-size: 24px;
|
|
31
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
32
|
+
-webkit-background-clip: text;
|
|
33
|
+
-webkit-text-fill-color: transparent;
|
|
34
|
+
background-clip: text;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.logo-text {
|
|
38
|
+
font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.call-status {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: 8px;
|
|
45
|
+
background: rgba(16, 185, 129, 0.1);
|
|
46
|
+
padding: 6px 12px;
|
|
47
|
+
border-radius: 20px;
|
|
48
|
+
border: 1px solid rgba(16, 185, 129, 0.2);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.status-indicator {
|
|
52
|
+
width: 8px;
|
|
53
|
+
height: 8px;
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
background: #10b981;
|
|
56
|
+
animation: pulse-green 2s ease-in-out infinite;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@keyframes pulse-green {
|
|
60
|
+
0%, 100% {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
transform: scale(1);
|
|
63
|
+
}
|
|
64
|
+
50% {
|
|
65
|
+
opacity: 0.7;
|
|
66
|
+
transform: scale(1.2);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.status-text {
|
|
71
|
+
font-size: 13px;
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
color: #059669;
|
|
74
|
+
font-family: 'Monaco', 'Menlo', monospace;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.header-center {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
flex: 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.user-info {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: 12px;
|
|
88
|
+
background: rgba(255, 255, 255, 0.7);
|
|
89
|
+
padding: 6px 12px 6px 16px;
|
|
90
|
+
border-radius: 24px;
|
|
91
|
+
border: 1px solid rgba(226, 232, 240, 0.8);
|
|
92
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.user-name {
|
|
96
|
+
font-size: 14px;
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
color: #374151;
|
|
99
|
+
max-width: 200px;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
text-overflow: ellipsis;
|
|
102
|
+
white-space: nowrap;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.user-avatar {
|
|
106
|
+
width: 32px;
|
|
107
|
+
height: 32px;
|
|
108
|
+
border-radius: 50%;
|
|
109
|
+
object-fit: cover;
|
|
110
|
+
border: 2px solid rgba(255, 255, 255, 0.8);
|
|
111
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.user-avatar-fallback {
|
|
115
|
+
width: 32px;
|
|
116
|
+
height: 32px;
|
|
117
|
+
border-radius: 50%;
|
|
118
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
color: white;
|
|
123
|
+
font-weight: 600;
|
|
124
|
+
font-size: 14px;
|
|
125
|
+
border: 2px solid rgba(255, 255, 255, 0.8);
|
|
126
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.header-right {
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
justify-content: flex-end;
|
|
133
|
+
flex: 1;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.window-controls {
|
|
137
|
+
display: flex;
|
|
138
|
+
gap: 8px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.window-control {
|
|
142
|
+
width: 32px;
|
|
143
|
+
height: 32px;
|
|
144
|
+
border: none;
|
|
145
|
+
border-radius: 8px;
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
font-size: 14px;
|
|
151
|
+
font-weight: 600;
|
|
152
|
+
transition: all 0.2s ease;
|
|
153
|
+
background: rgba(255, 255, 255, 0.7);
|
|
154
|
+
color: #64748b;
|
|
155
|
+
border: 1px solid rgba(226, 232, 240, 0.8);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.window-control:hover {
|
|
159
|
+
transform: translateY(-1px);
|
|
160
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.window-control.minimize {
|
|
164
|
+
color: #f59e0b;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.window-control.minimize:hover {
|
|
168
|
+
background: rgba(245, 158, 11, 0.1);
|
|
169
|
+
border-color: rgba(245, 158, 11, 0.3);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.window-control.fullscreen {
|
|
173
|
+
color: #10b981;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.window-control.fullscreen:hover {
|
|
177
|
+
background: rgba(16, 185, 129, 0.1);
|
|
178
|
+
border-color: rgba(16, 185, 129, 0.3);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.window-control.logout {
|
|
182
|
+
color: #ef4444;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.window-control.logout:hover {
|
|
186
|
+
background: rgba(239, 68, 68, 0.1);
|
|
187
|
+
border-color: rgba(239, 68, 68, 0.3);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* Responsive design */
|
|
191
|
+
@media (max-width: 768px) {
|
|
192
|
+
.conference-header {
|
|
193
|
+
padding: 8px 16px;
|
|
194
|
+
height: 56px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.header-left,
|
|
198
|
+
.header-right {
|
|
199
|
+
flex: 0.8;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.header-center {
|
|
203
|
+
flex: 1.4;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.app-logo {
|
|
207
|
+
font-size: 16px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.logo-icon {
|
|
211
|
+
font-size: 20px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.call-status {
|
|
215
|
+
display: none;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.user-name {
|
|
219
|
+
max-width: 120px;
|
|
220
|
+
font-size: 13px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.user-avatar,
|
|
224
|
+
.user-avatar-fallback {
|
|
225
|
+
width: 28px;
|
|
226
|
+
height: 28px;
|
|
227
|
+
font-size: 12px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.window-control {
|
|
231
|
+
width: 28px;
|
|
232
|
+
height: 28px;
|
|
233
|
+
font-size: 12px;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@media (max-width: 480px) {
|
|
238
|
+
.conference-header {
|
|
239
|
+
padding: 6px 12px;
|
|
240
|
+
height: 48px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.app-logo .logo-text {
|
|
244
|
+
display: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.user-info {
|
|
248
|
+
padding: 4px 8px 4px 12px;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.user-name {
|
|
252
|
+
max-width: 80px;
|
|
253
|
+
font-size: 12px;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.window-controls {
|
|
257
|
+
gap: 4px;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.window-control {
|
|
261
|
+
width: 24px;
|
|
262
|
+
height: 24px;
|
|
263
|
+
font-size: 10px;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { useAuth } from '../../hooks/useAuth';
|
|
2
|
+
import { useCallTimer } from '../../hooks/useCallTimer';
|
|
3
|
+
import './ConferenceHeader.css';
|
|
4
|
+
|
|
5
|
+
interface ConferenceHeaderProps {
|
|
6
|
+
onMinimize?: () => void;
|
|
7
|
+
onFullscreen?: () => void;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function ConferenceHeader({ onMinimize, onFullscreen }: ConferenceHeaderProps) {
|
|
11
|
+
const { user, logout } = useAuth();
|
|
12
|
+
const { formattedDuration, isActive } = useCallTimer();
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<div className="conference-header">
|
|
16
|
+
<div className="header-left">
|
|
17
|
+
<div className="app-logo">
|
|
18
|
+
<span className="logo-icon">📞</span>
|
|
19
|
+
<span className="logo-text">CallPad</span>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
{isActive && (
|
|
23
|
+
<div className="call-status">
|
|
24
|
+
<div className="status-indicator active"></div>
|
|
25
|
+
<span className="status-text">Call duration: {formattedDuration}</span>
|
|
26
|
+
</div>
|
|
27
|
+
)}
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div className="header-center">
|
|
31
|
+
{user && (
|
|
32
|
+
<div className="user-info">
|
|
33
|
+
<span className="user-name">
|
|
34
|
+
{user.firstName && user.lastName
|
|
35
|
+
? `${user.firstName} ${user.lastName}`
|
|
36
|
+
: user.email
|
|
37
|
+
}
|
|
38
|
+
</span>
|
|
39
|
+
{user.avatarUrl && (
|
|
40
|
+
<img src={user.avatarUrl} alt={user.email || 'User'} className="user-avatar" />
|
|
41
|
+
)}
|
|
42
|
+
{!user.avatarUrl && (
|
|
43
|
+
<div className="user-avatar-fallback">
|
|
44
|
+
{user.firstName?.charAt(0) || user.email?.charAt(0) || 'U'}
|
|
45
|
+
</div>
|
|
46
|
+
)}
|
|
47
|
+
</div>
|
|
48
|
+
)}
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div className="header-right">
|
|
52
|
+
<div className="window-controls">
|
|
53
|
+
<button
|
|
54
|
+
className="window-control minimize"
|
|
55
|
+
onClick={onMinimize}
|
|
56
|
+
title="Minimize"
|
|
57
|
+
>
|
|
58
|
+
−
|
|
59
|
+
</button>
|
|
60
|
+
<button
|
|
61
|
+
className="window-control fullscreen"
|
|
62
|
+
onClick={onFullscreen}
|
|
63
|
+
title="Fullscreen"
|
|
64
|
+
>
|
|
65
|
+
⚏
|
|
66
|
+
</button>
|
|
67
|
+
<button
|
|
68
|
+
className="window-control logout"
|
|
69
|
+
onClick={logout}
|
|
70
|
+
title="Logout"
|
|
71
|
+
>
|
|
72
|
+
⚑
|
|
73
|
+
</button>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
.enhanced-control-bar {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
background: rgba(0, 0, 0, 0.8);
|
|
7
|
+
backdrop-filter: blur(20px);
|
|
8
|
+
border-radius: 24px;
|
|
9
|
+
padding: 12px 20px;
|
|
10
|
+
margin: 16px;
|
|
11
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
12
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.control-section {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: 12px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.control-section.left {
|
|
22
|
+
flex: 1;
|
|
23
|
+
justify-content: flex-start;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.control-section.center {
|
|
27
|
+
flex: 2;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.control-section.right {
|
|
32
|
+
flex: 1;
|
|
33
|
+
justify-content: flex-end;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.call-info {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 12px;
|
|
40
|
+
color: white;
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.call-duration {
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
font-family: 'Monaco', 'Menlo', monospace;
|
|
47
|
+
background: rgba(255, 255, 255, 0.1);
|
|
48
|
+
padding: 4px 8px;
|
|
49
|
+
border-radius: 6px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.connection-indicator {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.signal-dots {
|
|
58
|
+
display: flex;
|
|
59
|
+
gap: 2px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.signal-dots .dot {
|
|
63
|
+
width: 4px;
|
|
64
|
+
height: 4px;
|
|
65
|
+
border-radius: 50%;
|
|
66
|
+
background: rgba(255, 255, 255, 0.3);
|
|
67
|
+
transition: all 0.3s;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.connection-indicator.excellent .dot {
|
|
71
|
+
background: #10b981;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.connection-indicator.good .dot:nth-child(1),
|
|
75
|
+
.connection-indicator.good .dot:nth-child(2) {
|
|
76
|
+
background: #f59e0b;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.connection-indicator.good .dot:nth-child(3) {
|
|
80
|
+
background: #10b981;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.connection-indicator.poor .dot:nth-child(1) {
|
|
84
|
+
background: #ef4444;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.media-controls {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
gap: 8px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.control-group {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
background: rgba(255, 255, 255, 0.05);
|
|
97
|
+
border-radius: 12px;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.control-button {
|
|
102
|
+
position: relative;
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
width: 48px;
|
|
107
|
+
height: 48px;
|
|
108
|
+
background: rgba(255, 255, 255, 0.1);
|
|
109
|
+
border: none;
|
|
110
|
+
border-radius: 12px;
|
|
111
|
+
color: white;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
transition: all 0.2s ease;
|
|
114
|
+
font-size: 18px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.control-button:hover:not(:disabled) {
|
|
118
|
+
background: rgba(255, 255, 255, 0.2);
|
|
119
|
+
transform: translateY(-1px);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.control-button:disabled {
|
|
123
|
+
opacity: 0.5;
|
|
124
|
+
cursor: not-allowed;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.control-button.active {
|
|
128
|
+
background: rgba(59, 130, 246, 0.8);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.control-button.disabled {
|
|
132
|
+
background: rgba(239, 68, 68, 0.8);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.control-button.leave-call {
|
|
136
|
+
background: #ef4444;
|
|
137
|
+
width: 56px;
|
|
138
|
+
height: 56px;
|
|
139
|
+
border-radius: 50%;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.control-button.leave-call:hover {
|
|
143
|
+
background: #dc2626;
|
|
144
|
+
transform: scale(1.05);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.device-selector-trigger {
|
|
148
|
+
width: 24px;
|
|
149
|
+
height: 48px;
|
|
150
|
+
background: rgba(255, 255, 255, 0.1);
|
|
151
|
+
border: none;
|
|
152
|
+
color: white;
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
font-size: 10px;
|
|
155
|
+
transition: all 0.2s;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.device-selector-trigger:hover {
|
|
159
|
+
background: rgba(255, 255, 255, 0.2);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.participant-count {
|
|
163
|
+
position: absolute;
|
|
164
|
+
top: -4px;
|
|
165
|
+
right: -4px;
|
|
166
|
+
background: #ef4444;
|
|
167
|
+
color: white;
|
|
168
|
+
font-size: 10px;
|
|
169
|
+
font-weight: 600;
|
|
170
|
+
border-radius: 50%;
|
|
171
|
+
width: 18px;
|
|
172
|
+
height: 18px;
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
border: 2px solid rgba(0, 0, 0, 0.8);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Dropdown panels */
|
|
180
|
+
.device-selector-panel,
|
|
181
|
+
.participants-panel {
|
|
182
|
+
position: absolute;
|
|
183
|
+
bottom: 100%;
|
|
184
|
+
right: 20px;
|
|
185
|
+
background: rgba(0, 0, 0, 0.95);
|
|
186
|
+
backdrop-filter: blur(20px);
|
|
187
|
+
border-radius: 12px;
|
|
188
|
+
padding: 16px;
|
|
189
|
+
margin-bottom: 12px;
|
|
190
|
+
min-width: 300px;
|
|
191
|
+
max-height: 400px;
|
|
192
|
+
overflow-y: auto;
|
|
193
|
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
|
|
194
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
195
|
+
z-index: 1000;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.device-section {
|
|
199
|
+
margin-bottom: 16px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.device-section:last-child {
|
|
203
|
+
margin-bottom: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.device-section h4 {
|
|
207
|
+
color: white;
|
|
208
|
+
font-size: 14px;
|
|
209
|
+
font-weight: 600;
|
|
210
|
+
margin: 0 0 8px 0;
|
|
211
|
+
padding-bottom: 4px;
|
|
212
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.device-option {
|
|
216
|
+
display: block;
|
|
217
|
+
width: 100%;
|
|
218
|
+
background: none;
|
|
219
|
+
border: none;
|
|
220
|
+
color: rgba(255, 255, 255, 0.8);
|
|
221
|
+
padding: 8px 12px;
|
|
222
|
+
text-align: left;
|
|
223
|
+
cursor: pointer;
|
|
224
|
+
border-radius: 6px;
|
|
225
|
+
transition: all 0.2s;
|
|
226
|
+
font-size: 13px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.device-option:hover {
|
|
230
|
+
background: rgba(255, 255, 255, 0.1);
|
|
231
|
+
color: white;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.participants-panel h4 {
|
|
235
|
+
color: white;
|
|
236
|
+
font-size: 16px;
|
|
237
|
+
font-weight: 600;
|
|
238
|
+
margin: 0 0 12px 0;
|
|
239
|
+
padding-bottom: 8px;
|
|
240
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.participants-list {
|
|
244
|
+
display: flex;
|
|
245
|
+
flex-direction: column;
|
|
246
|
+
gap: 8px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.participant-item {
|
|
250
|
+
display: flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
gap: 12px;
|
|
253
|
+
padding: 8px;
|
|
254
|
+
border-radius: 8px;
|
|
255
|
+
transition: background 0.2s;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.participant-item:hover {
|
|
259
|
+
background: rgba(255, 255, 255, 0.05);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.participant-avatar {
|
|
263
|
+
width: 32px;
|
|
264
|
+
height: 32px;
|
|
265
|
+
border-radius: 50%;
|
|
266
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
267
|
+
display: flex;
|
|
268
|
+
align-items: center;
|
|
269
|
+
justify-content: center;
|
|
270
|
+
color: white;
|
|
271
|
+
font-weight: 600;
|
|
272
|
+
font-size: 14px;
|
|
273
|
+
overflow: hidden;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.participant-avatar img {
|
|
277
|
+
width: 100%;
|
|
278
|
+
height: 100%;
|
|
279
|
+
object-fit: cover;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.participant-name {
|
|
283
|
+
color: white;
|
|
284
|
+
font-size: 14px;
|
|
285
|
+
flex: 1;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.speaking-indicator {
|
|
289
|
+
font-size: 12px;
|
|
290
|
+
animation: pulse 1.5s ease-in-out infinite;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* Responsive design */
|
|
294
|
+
@media (max-width: 768px) {
|
|
295
|
+
.enhanced-control-bar {
|
|
296
|
+
margin: 8px;
|
|
297
|
+
padding: 8px 12px;
|
|
298
|
+
border-radius: 16px;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.control-section.left,
|
|
302
|
+
.control-section.right {
|
|
303
|
+
flex: 0.5;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.control-section.center {
|
|
307
|
+
flex: 3;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.control-button {
|
|
311
|
+
width: 40px;
|
|
312
|
+
height: 40px;
|
|
313
|
+
font-size: 16px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.control-button.leave-call {
|
|
317
|
+
width: 48px;
|
|
318
|
+
height: 48px;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.media-controls {
|
|
322
|
+
gap: 4px;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.call-duration {
|
|
326
|
+
font-size: 12px;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.device-selector-panel,
|
|
330
|
+
.participants-panel {
|
|
331
|
+
right: 8px;
|
|
332
|
+
left: 8px;
|
|
333
|
+
min-width: auto;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
@media (max-width: 480px) {
|
|
338
|
+
.enhanced-control-bar {
|
|
339
|
+
flex-wrap: wrap;
|
|
340
|
+
gap: 8px;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.control-section {
|
|
344
|
+
flex: none;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.control-section.center {
|
|
348
|
+
order: -1;
|
|
349
|
+
flex-basis: 100%;
|
|
350
|
+
justify-content: center;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.call-info {
|
|
354
|
+
font-size: 12px;
|
|
355
|
+
}
|
|
356
|
+
}
|