@snapcall/stream-ui 1.31.0 → 1.31.1
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/stream-ui.esm.js +4 -4
- package/dist/stream-ui.js +4 -4
- package/package.json +1 -1
package/dist/stream-ui.esm.js
CHANGED
|
@@ -13421,9 +13421,10 @@ const $e17d510229c71a56$export$50c18ae22f50c0e = ()=>{
|
|
|
13421
13421
|
const [isZoomAvailable, setIsZoomAvailable] = (0, $3Sbms$useState)(false);
|
|
13422
13422
|
const [zoom, setZoom] = (0, $3Sbms$useState)('1');
|
|
13423
13423
|
const reportError = (0, $946223bbb2c552ef$export$5a5695b638d078e7)();
|
|
13424
|
-
(0, $3Sbms$
|
|
13424
|
+
const zoomCallback = (0, $3Sbms$useCallback)((z)=>{
|
|
13425
|
+
setZoom(z);
|
|
13425
13426
|
if (isZoomAvailable) {
|
|
13426
|
-
const numberZoom = Number(
|
|
13427
|
+
const numberZoom = Number(z);
|
|
13427
13428
|
if (numberZoom > 1) (0, $c9e496369b59be7a$export$2f377c2162fd02b2).zoomVideo().catch((error)=>reportError({
|
|
13428
13429
|
code: 'ZM_1',
|
|
13429
13430
|
error: error
|
|
@@ -13434,7 +13435,6 @@ const $e17d510229c71a56$export$50c18ae22f50c0e = ()=>{
|
|
|
13434
13435
|
}));
|
|
13435
13436
|
}
|
|
13436
13437
|
}, [
|
|
13437
|
-
zoom,
|
|
13438
13438
|
isZoomAvailable,
|
|
13439
13439
|
reportError
|
|
13440
13440
|
]);
|
|
@@ -13455,7 +13455,7 @@ const $e17d510229c71a56$export$50c18ae22f50c0e = ()=>{
|
|
|
13455
13455
|
}, []);
|
|
13456
13456
|
if (isZoomAvailable) return /*#__PURE__*/ (0, $3Sbms$jsx)((0, $3Sbms$Tabs), {
|
|
13457
13457
|
value: zoom,
|
|
13458
|
-
onValueChange:
|
|
13458
|
+
onValueChange: zoomCallback,
|
|
13459
13459
|
children: /*#__PURE__*/ (0, $3Sbms$jsx)((0, $3Sbms$TabsList), {
|
|
13460
13460
|
className: "flex w-full border rounded-2xl bg-gray-25/50 border-black/10 backdrop-blur-lg",
|
|
13461
13461
|
children: $e17d510229c71a56$var$zoomOptions.map((zoomOption)=>/*#__PURE__*/ (0, $3Sbms$jsxs)((0, $3Sbms$TabsTrigger), {
|
package/dist/stream-ui.js
CHANGED
|
@@ -13427,9 +13427,10 @@ const $a9c4bfaa4df801e6$export$50c18ae22f50c0e = ()=>{
|
|
|
13427
13427
|
const [isZoomAvailable, setIsZoomAvailable] = (0, $jQDcL$react.useState)(false);
|
|
13428
13428
|
const [zoom, setZoom] = (0, $jQDcL$react.useState)('1');
|
|
13429
13429
|
const reportError = (0, $8dfcca373a03b9e8$export$5a5695b638d078e7)();
|
|
13430
|
-
(0, $jQDcL$react.
|
|
13430
|
+
const zoomCallback = (0, $jQDcL$react.useCallback)((z)=>{
|
|
13431
|
+
setZoom(z);
|
|
13431
13432
|
if (isZoomAvailable) {
|
|
13432
|
-
const numberZoom = Number(
|
|
13433
|
+
const numberZoom = Number(z);
|
|
13433
13434
|
if (numberZoom > 1) (0, $c48c1ecc38fed4e9$export$2f377c2162fd02b2).zoomVideo().catch((error)=>reportError({
|
|
13434
13435
|
code: 'ZM_1',
|
|
13435
13436
|
error: error
|
|
@@ -13440,7 +13441,6 @@ const $a9c4bfaa4df801e6$export$50c18ae22f50c0e = ()=>{
|
|
|
13440
13441
|
}));
|
|
13441
13442
|
}
|
|
13442
13443
|
}, [
|
|
13443
|
-
zoom,
|
|
13444
13444
|
isZoomAvailable,
|
|
13445
13445
|
reportError
|
|
13446
13446
|
]);
|
|
@@ -13461,7 +13461,7 @@ const $a9c4bfaa4df801e6$export$50c18ae22f50c0e = ()=>{
|
|
|
13461
13461
|
}, []);
|
|
13462
13462
|
if (isZoomAvailable) return /*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsx)((0, $jQDcL$snapcalldesignsystem.Tabs), {
|
|
13463
13463
|
value: zoom,
|
|
13464
|
-
onValueChange:
|
|
13464
|
+
onValueChange: zoomCallback,
|
|
13465
13465
|
children: /*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsx)((0, $jQDcL$snapcalldesignsystem.TabsList), {
|
|
13466
13466
|
className: "flex w-full border rounded-2xl bg-gray-25/50 border-black/10 backdrop-blur-lg",
|
|
13467
13467
|
children: $a9c4bfaa4df801e6$var$zoomOptions.map((zoomOption)=>/*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsxs)((0, $jQDcL$snapcalldesignsystem.TabsTrigger), {
|