@lokutor/sdk 1.1.32 → 1.1.34
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.js +13 -8
- package/dist/index.mjs +13 -8
- package/package.json +1 -1
- package/src/browser-audio.ts +5 -0
- package/src/conversational-panel.ts +8 -8
package/dist/index.js
CHANGED
|
@@ -474,6 +474,11 @@ var BrowserAudioManager = class {
|
|
|
474
474
|
*/
|
|
475
475
|
setMuted(muted) {
|
|
476
476
|
this.isMuted = muted;
|
|
477
|
+
if (this.mediaStream) {
|
|
478
|
+
this.mediaStream.getAudioTracks().forEach((track) => {
|
|
479
|
+
track.enabled = !muted;
|
|
480
|
+
});
|
|
481
|
+
}
|
|
477
482
|
}
|
|
478
483
|
/**
|
|
479
484
|
* Get current mute state
|
|
@@ -1310,7 +1315,7 @@ var PANEL_CSS = (
|
|
|
1310
1315
|
flex-direction: column;
|
|
1311
1316
|
align-items: center;
|
|
1312
1317
|
gap: clamp(0.75rem, 1.5vw, 1.5rem);
|
|
1313
|
-
color:
|
|
1318
|
+
color: #fff;
|
|
1314
1319
|
text-align: center;
|
|
1315
1320
|
z-index: 2;
|
|
1316
1321
|
padding: clamp(1rem, 2vw, 2rem);
|
|
@@ -1320,12 +1325,12 @@ var PANEL_CSS = (
|
|
|
1320
1325
|
font-weight: 800;
|
|
1321
1326
|
letter-spacing: -0.03em;
|
|
1322
1327
|
margin: 0;
|
|
1323
|
-
text-shadow: 0 4px 20px rgba(0,0,0,0.
|
|
1328
|
+
text-shadow: 0 4px 20px rgba(0,0,0,0.3);
|
|
1324
1329
|
}
|
|
1325
1330
|
.cv-curtain-desc {
|
|
1326
1331
|
font-size: clamp(0.75rem, 2vw, 1.1rem);
|
|
1327
1332
|
opacity: 0.8;
|
|
1328
|
-
color:
|
|
1333
|
+
color: rgba(255,255,255,0.8);
|
|
1329
1334
|
max-width: 400px;
|
|
1330
1335
|
margin: 0;
|
|
1331
1336
|
line-height: 1.5;
|
|
@@ -1334,8 +1339,8 @@ var PANEL_CSS = (
|
|
|
1334
1339
|
margin-top: 1rem;
|
|
1335
1340
|
padding: clamp(0.6rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
|
|
1336
1341
|
border-radius: 100px;
|
|
1337
|
-
background:
|
|
1338
|
-
color:
|
|
1342
|
+
background: #fff;
|
|
1343
|
+
color: #000;
|
|
1339
1344
|
border: none;
|
|
1340
1345
|
font-weight: 700;
|
|
1341
1346
|
font-size: clamp(0.8rem, 1.5vw, 1rem);
|
|
@@ -1344,12 +1349,12 @@ var PANEL_CSS = (
|
|
|
1344
1349
|
gap: 0.75rem;
|
|
1345
1350
|
cursor: pointer;
|
|
1346
1351
|
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1347
|
-
box-shadow: 0 10px 30px rgba(0,0,0,0.
|
|
1352
|
+
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
|
|
1348
1353
|
}
|
|
1349
1354
|
.cv-curtain-btn:hover {
|
|
1350
1355
|
transform: scale(1.05);
|
|
1351
|
-
|
|
1352
|
-
box-shadow: 0 15px 40px rgba(0,0,0,0.
|
|
1356
|
+
background: #f0f0f0;
|
|
1357
|
+
box-shadow: 0 15px 40px rgba(0,0,0,0.3);
|
|
1353
1358
|
}
|
|
1354
1359
|
.cv-curtain-btn svg { transition: transform 0.3s ease; }
|
|
1355
1360
|
.cv-curtain-btn:hover svg { transform: translateX(4px); }
|
package/dist/index.mjs
CHANGED
|
@@ -427,6 +427,11 @@ var BrowserAudioManager = class {
|
|
|
427
427
|
*/
|
|
428
428
|
setMuted(muted) {
|
|
429
429
|
this.isMuted = muted;
|
|
430
|
+
if (this.mediaStream) {
|
|
431
|
+
this.mediaStream.getAudioTracks().forEach((track) => {
|
|
432
|
+
track.enabled = !muted;
|
|
433
|
+
});
|
|
434
|
+
}
|
|
430
435
|
}
|
|
431
436
|
/**
|
|
432
437
|
* Get current mute state
|
|
@@ -1263,7 +1268,7 @@ var PANEL_CSS = (
|
|
|
1263
1268
|
flex-direction: column;
|
|
1264
1269
|
align-items: center;
|
|
1265
1270
|
gap: clamp(0.75rem, 1.5vw, 1.5rem);
|
|
1266
|
-
color:
|
|
1271
|
+
color: #fff;
|
|
1267
1272
|
text-align: center;
|
|
1268
1273
|
z-index: 2;
|
|
1269
1274
|
padding: clamp(1rem, 2vw, 2rem);
|
|
@@ -1273,12 +1278,12 @@ var PANEL_CSS = (
|
|
|
1273
1278
|
font-weight: 800;
|
|
1274
1279
|
letter-spacing: -0.03em;
|
|
1275
1280
|
margin: 0;
|
|
1276
|
-
text-shadow: 0 4px 20px rgba(0,0,0,0.
|
|
1281
|
+
text-shadow: 0 4px 20px rgba(0,0,0,0.3);
|
|
1277
1282
|
}
|
|
1278
1283
|
.cv-curtain-desc {
|
|
1279
1284
|
font-size: clamp(0.75rem, 2vw, 1.1rem);
|
|
1280
1285
|
opacity: 0.8;
|
|
1281
|
-
color:
|
|
1286
|
+
color: rgba(255,255,255,0.8);
|
|
1282
1287
|
max-width: 400px;
|
|
1283
1288
|
margin: 0;
|
|
1284
1289
|
line-height: 1.5;
|
|
@@ -1287,8 +1292,8 @@ var PANEL_CSS = (
|
|
|
1287
1292
|
margin-top: 1rem;
|
|
1288
1293
|
padding: clamp(0.6rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
|
|
1289
1294
|
border-radius: 100px;
|
|
1290
|
-
background:
|
|
1291
|
-
color:
|
|
1295
|
+
background: #fff;
|
|
1296
|
+
color: #000;
|
|
1292
1297
|
border: none;
|
|
1293
1298
|
font-weight: 700;
|
|
1294
1299
|
font-size: clamp(0.8rem, 1.5vw, 1rem);
|
|
@@ -1297,12 +1302,12 @@ var PANEL_CSS = (
|
|
|
1297
1302
|
gap: 0.75rem;
|
|
1298
1303
|
cursor: pointer;
|
|
1299
1304
|
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1300
|
-
box-shadow: 0 10px 30px rgba(0,0,0,0.
|
|
1305
|
+
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
|
|
1301
1306
|
}
|
|
1302
1307
|
.cv-curtain-btn:hover {
|
|
1303
1308
|
transform: scale(1.05);
|
|
1304
|
-
|
|
1305
|
-
box-shadow: 0 15px 40px rgba(0,0,0,0.
|
|
1309
|
+
background: #f0f0f0;
|
|
1310
|
+
box-shadow: 0 15px 40px rgba(0,0,0,0.3);
|
|
1306
1311
|
}
|
|
1307
1312
|
.cv-curtain-btn svg { transition: transform 0.3s ease; }
|
|
1308
1313
|
.cv-curtain-btn:hover svg { transform: translateX(4px); }
|
package/package.json
CHANGED
package/src/browser-audio.ts
CHANGED
|
@@ -314,6 +314,11 @@ export class BrowserAudioManager {
|
|
|
314
314
|
*/
|
|
315
315
|
setMuted(muted: boolean): void {
|
|
316
316
|
this.isMuted = muted;
|
|
317
|
+
if (this.mediaStream) {
|
|
318
|
+
this.mediaStream.getAudioTracks().forEach(track => {
|
|
319
|
+
track.enabled = !muted;
|
|
320
|
+
});
|
|
321
|
+
}
|
|
317
322
|
}
|
|
318
323
|
|
|
319
324
|
/**
|
|
@@ -45,7 +45,7 @@ const PANEL_CSS = /*css*/ `
|
|
|
45
45
|
flex-direction: column;
|
|
46
46
|
align-items: center;
|
|
47
47
|
gap: clamp(0.75rem, 1.5vw, 1.5rem);
|
|
48
|
-
color:
|
|
48
|
+
color: #fff;
|
|
49
49
|
text-align: center;
|
|
50
50
|
z-index: 2;
|
|
51
51
|
padding: clamp(1rem, 2vw, 2rem);
|
|
@@ -55,12 +55,12 @@ const PANEL_CSS = /*css*/ `
|
|
|
55
55
|
font-weight: 800;
|
|
56
56
|
letter-spacing: -0.03em;
|
|
57
57
|
margin: 0;
|
|
58
|
-
text-shadow: 0 4px 20px rgba(0,0,0,0.
|
|
58
|
+
text-shadow: 0 4px 20px rgba(0,0,0,0.3);
|
|
59
59
|
}
|
|
60
60
|
.cv-curtain-desc {
|
|
61
61
|
font-size: clamp(0.75rem, 2vw, 1.1rem);
|
|
62
62
|
opacity: 0.8;
|
|
63
|
-
color:
|
|
63
|
+
color: rgba(255,255,255,0.8);
|
|
64
64
|
max-width: 400px;
|
|
65
65
|
margin: 0;
|
|
66
66
|
line-height: 1.5;
|
|
@@ -69,8 +69,8 @@ const PANEL_CSS = /*css*/ `
|
|
|
69
69
|
margin-top: 1rem;
|
|
70
70
|
padding: clamp(0.6rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
|
|
71
71
|
border-radius: 100px;
|
|
72
|
-
background:
|
|
73
|
-
color:
|
|
72
|
+
background: #fff;
|
|
73
|
+
color: #000;
|
|
74
74
|
border: none;
|
|
75
75
|
font-weight: 700;
|
|
76
76
|
font-size: clamp(0.8rem, 1.5vw, 1rem);
|
|
@@ -79,12 +79,12 @@ const PANEL_CSS = /*css*/ `
|
|
|
79
79
|
gap: 0.75rem;
|
|
80
80
|
cursor: pointer;
|
|
81
81
|
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
82
|
-
box-shadow: 0 10px 30px rgba(0,0,0,0.
|
|
82
|
+
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
|
|
83
83
|
}
|
|
84
84
|
.cv-curtain-btn:hover {
|
|
85
85
|
transform: scale(1.05);
|
|
86
|
-
|
|
87
|
-
box-shadow: 0 15px 40px rgba(0,0,0,0.
|
|
86
|
+
background: #f0f0f0;
|
|
87
|
+
box-shadow: 0 15px 40px rgba(0,0,0,0.3);
|
|
88
88
|
}
|
|
89
89
|
.cv-curtain-btn svg { transition: transform 0.3s ease; }
|
|
90
90
|
.cv-curtain-btn:hover svg { transform: translateX(4px); }
|