@vkontakte/calls-sdk 2.8.11-dev.273c92c2.0 → 2.8.11-dev.37528a3e.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/calls-sdk.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @vkontakte/calls-sdk v2.8.11-dev.273c92c2.0
3
- * Thu, 28 May 2026 09:31:29 GMT
2
+ * @vkontakte/calls-sdk v2.8.11-dev.37528a3e.0
3
+ * Thu, 28 May 2026 15:32:02 GMT
4
4
  * https://calls-sdk.cdn-vk.ru/doc/latest/index.html
5
5
  */
6
6
 
@@ -739,7 +739,7 @@ var ye = ve.getInstance(), C = class e {
739
739
  return 1.1;
740
740
  }
741
741
  static get sdkVersion() {
742
- return "2.8.11-dev.273c92c2.0";
742
+ return "2.8.11-dev.37528a3e.0";
743
743
  }
744
744
  static get debug() {
745
745
  return e._params.debug;
@@ -1799,20 +1799,20 @@ var je;
1799
1799
  j("onLocalStream", e, N(t), n);
1800
1800
  }
1801
1801
  e.onLocalStream = t;
1802
- function n(e, t) {
1803
- j("onScreenStream", e, N(t));
1802
+ function n(e, t, n) {
1803
+ j("onScreenStream", e, N(t), n);
1804
1804
  }
1805
1805
  e.onScreenStream = n;
1806
- function r(e, t) {
1807
- j("onVmojiStream", e, N(t));
1806
+ function r(e, t, n) {
1807
+ j("onVmojiStream", e, N(t), n);
1808
1808
  }
1809
1809
  e.onVmojiStream = r;
1810
- function i(e) {
1811
- j("onVmojiError", e);
1810
+ function i(e, t) {
1811
+ j("onVmojiError", e, t);
1812
1812
  }
1813
1813
  e.onVmojiError = i;
1814
- function a(e, t) {
1815
- j("onLocalStreamUpdate", N(e), t);
1814
+ function a(e, t, n) {
1815
+ j("onLocalStreamUpdate", N(e), t, n);
1816
1816
  }
1817
1817
  e.onLocalStreamUpdate = a;
1818
1818
  function o(e, t) {
@@ -1823,68 +1823,68 @@ var je;
1823
1823
  M("onRemoteStream", e, t, n);
1824
1824
  }
1825
1825
  e.onRemoteStream = s;
1826
- function c(e, t) {
1827
- M("onRemoteLive", e, t);
1826
+ function c(e, t, n) {
1827
+ M("onRemoteLive", e, t, n);
1828
1828
  }
1829
1829
  e.onRemoteLive = c;
1830
- function l(e, t) {
1831
- M("onLocalLive", e, t);
1830
+ function l(e, t, n) {
1831
+ M("onLocalLive", e, t, n);
1832
1832
  }
1833
1833
  e.onLocalLive = l;
1834
- function u(e, t) {
1835
- M("onRemoteLiveUpdate", e, t);
1834
+ function u(e, t, n) {
1835
+ M("onRemoteLiveUpdate", e, t, n);
1836
1836
  }
1837
1837
  e.onRemoteLiveUpdate = u;
1838
- function d(e, t) {
1839
- M("onLocalLiveUpdate", e, t);
1838
+ function d(e, t, n) {
1839
+ M("onLocalLiveUpdate", e, t, n);
1840
1840
  }
1841
1841
  e.onLocalLiveUpdate = d;
1842
1842
  function f(e, t, n) {
1843
1843
  M("onRemoteScreenStream", e, t, n);
1844
1844
  }
1845
1845
  e.onRemoteScreenStream = f;
1846
- function p(e, t) {
1847
- M("onRemoteVmojiStream", e, t);
1846
+ function p(e, t, n) {
1847
+ M("onRemoteVmojiStream", e, t, n);
1848
1848
  }
1849
1849
  e.onRemoteVmojiStream = p;
1850
- function m(e, t, n) {
1851
- M("onRemoteStreamSuspended", e, t, n);
1850
+ function m(e, t, n, r) {
1851
+ M("onRemoteStreamSuspended", e, t, n, r);
1852
1852
  }
1853
1853
  e.onRemoteStreamSuspended = m;
1854
1854
  function ee(e, t, n, r, i, a) {
1855
1855
  M("onConversation", e, N(t), N(n), r, i, a);
1856
1856
  }
1857
1857
  e.onConversation = ee;
1858
- function h(e) {
1859
- e && j("onConversationParticipantListChunk", e);
1858
+ function h(e, t) {
1859
+ e && j("onConversationParticipantListChunk", e, t);
1860
1860
  }
1861
1861
  e.onConversationParticipantListChunk = h;
1862
- function g(e, t, n) {
1863
- M("onRemoteMediaSettings", e, N(t), n);
1862
+ function g(e, t, n, r) {
1863
+ M("onRemoteMediaSettings", e, N(t), n, r);
1864
1864
  }
1865
1865
  e.onRemoteMediaSettings = g;
1866
- function _(e, t) {
1867
- M("onLocalMediaSettings", e, N(t));
1866
+ function _(e, t, n) {
1867
+ M("onLocalMediaSettings", e, N(t), n);
1868
1868
  }
1869
1869
  e.onLocalMediaSettings = _;
1870
- function v(e, t, n) {
1871
- M("onRemoteSharedMovieInfo", e, N(t), n);
1870
+ function v(e, t, n, r) {
1871
+ M("onRemoteSharedMovieInfo", e, N(t), n, r);
1872
1872
  }
1873
1873
  e.onRemoteSharedMovieInfo = v;
1874
- function y(e, t, n) {
1875
- M("onRemoteSharedMovieStoppedInfo", e, N(t), n);
1874
+ function y(e, t, n, r) {
1875
+ M("onRemoteSharedMovieStoppedInfo", e, N(t), n, r);
1876
1876
  }
1877
1877
  e.onRemoteSharedMovieStoppedInfo = y;
1878
- function b(e, t, n) {
1879
- M("onLocalSharedMovieInfo", e, N(t), n);
1878
+ function b(e, t, n, r) {
1879
+ M("onLocalSharedMovieInfo", e, N(t), n, r);
1880
1880
  }
1881
1881
  e.onLocalSharedMovieInfo = b;
1882
- function x(e, t, n) {
1883
- M("onLocalSharedMovieStoppedInfo", e, N(t), n);
1882
+ function x(e, t, n, r) {
1883
+ M("onLocalSharedMovieStoppedInfo", e, N(t), n, r);
1884
1884
  }
1885
1885
  e.onLocalSharedMovieStoppedInfo = x;
1886
- function te(e, t, n) {
1887
- M("onRemoteSharedUrl", e, t, n);
1886
+ function te(e, t, n, r) {
1887
+ M("onRemoteSharedUrl", e, t, n, r);
1888
1888
  }
1889
1889
  e.onRemoteSharedUrl = te;
1890
1890
  function ne(e, t, n) {
@@ -1895,28 +1895,28 @@ var je;
1895
1895
  M("onParticipantJoined", e, t, n);
1896
1896
  }
1897
1897
  e.onParticipantJoined = re;
1898
- function ie(e, t = !1) {
1899
- j("onLocalParticipantState", N(e), t);
1898
+ function ie(e, t = !1, n) {
1899
+ j("onLocalParticipantState", N(e), t, n);
1900
1900
  }
1901
1901
  e.onLocalParticipantState = ie;
1902
- function ae(e, t, n) {
1903
- M("onRemoteParticipantState", e, N(t), n);
1902
+ function ae(e, t, n, r) {
1903
+ M("onRemoteParticipantState", e, N(t), n, r);
1904
1904
  }
1905
1905
  e.onRemoteParticipantState = ae;
1906
- function oe(e, t) {
1907
- j("onRemoteParticipantsState", e, t);
1906
+ function oe(e, t, n) {
1907
+ j("onRemoteParticipantsState", e, t, n);
1908
1908
  }
1909
1909
  e.onRemoteParticipantsState = oe;
1910
1910
  function se(e, t, n = null, r) {
1911
1911
  R.debug("Remote status:", t, e), M("onRemoteStatus", e, t, n, r);
1912
1912
  }
1913
1913
  e.onRemoteStatus = se;
1914
- function ce() {
1915
- j("onPermissionsRequested");
1914
+ function ce(e) {
1915
+ j("onPermissionsRequested", e);
1916
1916
  }
1917
1917
  e.onPermissionsRequested = ce;
1918
- function le(e, t) {
1919
- j("onPermissionsError", e, t);
1918
+ function le(e, t, n) {
1919
+ j("onPermissionsError", e, t, n);
1920
1920
  }
1921
1921
  e.onPermissionsError = le;
1922
1922
  function ue(e, t, n) {
@@ -1931,29 +1931,29 @@ var je;
1931
1931
  j("onDeviceSwitched", e, t, n);
1932
1932
  }
1933
1933
  e.onDeviceSwitched = fe;
1934
- function pe(e, t, n, r = !1, i = !1, a = null, o = null, s, c, l = null) {
1935
- let u = c ? Ae(c) : void 0;
1936
- j("onMuteStates", N(e), Ae(t), Ae(n), r, i, a, o, s, u, l);
1934
+ function pe(e, t, n, r = !1, i = !1, a = null, o = null, s, c, l = null, u) {
1935
+ let d = c ? Ae(c) : void 0;
1936
+ j("onMuteStates", N(e), Ae(t), Ae(n), r, i, a, o, s, d, l, u);
1937
1937
  }
1938
1938
  e.onMuteStates = pe;
1939
- function me(e, t, n = !1) {
1940
- M("onRolesChanged", e, Ae(t), n);
1939
+ function me(e, t, n = !1, r) {
1940
+ M("onRolesChanged", e, Ae(t), n, r);
1941
1941
  }
1942
1942
  e.onRolesChanged = me;
1943
- function S(e, t = !1) {
1944
- j("onLocalRolesChanged", Ae(e), t);
1943
+ function S(e, t = !1, n) {
1944
+ j("onLocalRolesChanged", Ae(e), t, n);
1945
1945
  }
1946
1946
  e.onLocalRolesChanged = S;
1947
- function he(e, t, n, r) {
1948
- M("onPinnedParticipant", e, t, n, r);
1947
+ function he(e, t, n, r, i) {
1948
+ M("onPinnedParticipant", e, t, n, r, i);
1949
1949
  }
1950
1950
  e.onPinnedParticipant = he;
1951
- function ge(e, t) {
1952
- j("onLocalPin", e, t);
1951
+ function ge(e, t, n) {
1952
+ j("onLocalPin", e, t, n);
1953
1953
  }
1954
1954
  e.onLocalPin = ge;
1955
- function _e(e) {
1956
- j("onOptionsChanged", Ae(e));
1955
+ function _e(e, t) {
1956
+ j("onOptionsChanged", Ae(e), t);
1957
1957
  }
1958
1958
  e.onOptionsChanged = _e;
1959
1959
  function ve(e) {
@@ -1968,164 +1968,164 @@ var je;
1968
1968
  M("onAcceptedCall", e, t, n);
1969
1969
  }
1970
1970
  e.onAcceptedCall = C;
1971
- function be() {
1972
- j("onRateNeeded");
1971
+ function be(e) {
1972
+ j("onRateNeeded", e);
1973
1973
  }
1974
1974
  e.onRateNeeded = be;
1975
1975
  function w(e, t) {
1976
1976
  M("onSpeakerChanged", e, t);
1977
1977
  }
1978
1978
  e.onSpeakerChanged = w;
1979
- function xe(e) {
1980
- j("onVolumesDetected", Ae(e));
1979
+ function xe(e, t) {
1980
+ j("onVolumesDetected", Ae(e), t);
1981
1981
  }
1982
1982
  e.onVolumesDetected = xe;
1983
- function Se(e, t) {
1984
- j("onLocalVolume", e, t);
1983
+ function Se(e, t, n) {
1984
+ j("onLocalVolume", e, t, n);
1985
1985
  }
1986
1986
  e.onLocalVolume = Se;
1987
- function Ce(e, t) {
1988
- j("onJoinStatus", e, t);
1987
+ function Ce(e, t, n) {
1988
+ j("onJoinStatus", e, t, n);
1989
1989
  }
1990
1990
  e.onJoinStatus = Ce;
1991
1991
  function we(e, t) {
1992
1992
  j("onHangup", e, t);
1993
1993
  }
1994
1994
  e.onHangup = we;
1995
- function T(e) {
1996
- j("onMultipartyChatCreated", N(e));
1995
+ function T(e, t) {
1996
+ j("onMultipartyChatCreated", N(e), t);
1997
1997
  }
1998
1998
  e.onMultipartyChatCreated = T;
1999
- function E() {
2000
- j("onDeviceChange");
1999
+ function E(e) {
2000
+ j("onDeviceChange", e);
2001
2001
  }
2002
2002
  e.onDeviceChange = E;
2003
- function D(e) {
2004
- j("onFingerprintChange", e);
2003
+ function D(e, t) {
2004
+ j("onFingerprintChange", e, t);
2005
2005
  }
2006
2006
  e.onFingerprintChange = D;
2007
- function Te() {
2008
- j("onTokenExpired");
2007
+ function Te(e) {
2008
+ j("onTokenExpired", e);
2009
2009
  }
2010
2010
  e.onTokenExpired = Te;
2011
- function Ee(e, t, n = !1) {
2012
- j("onChatMessage", e, t, n);
2011
+ function Ee(e, t, n = !1, r) {
2012
+ j("onChatMessage", e, t, n, r);
2013
2013
  }
2014
2014
  e.onChatMessage = Ee;
2015
- function O(e, t, n = !1) {
2016
- j("onCustomData", e, t, n);
2015
+ function O(e, t, n = !1, r) {
2016
+ j("onCustomData", e, t, n, r);
2017
2017
  }
2018
2018
  e.onCustomData = O;
2019
- function k(e, t, n, r, i, a, o = null) {
2020
- j("onRecordStarted", e, t, n, r, i, a, o);
2019
+ function k(e, t, n, r, i, a, o = null, s) {
2020
+ j("onRecordStarted", e, t, n, r, i, a, o, s);
2021
2021
  }
2022
2022
  e.onRecordStarted = k;
2023
- function De(e = null, t) {
2024
- j("onRecordStopped", e, t);
2023
+ function De(e = null, t, n) {
2024
+ j("onRecordStopped", e, t, n);
2025
2025
  }
2026
2026
  e.onRecordStopped = De;
2027
- function Oe(e) {
2028
- j("onLocalNetworkStatusChanged", e);
2027
+ function Oe(e, t) {
2028
+ j("onLocalNetworkStatusChanged", e, t);
2029
2029
  }
2030
2030
  e.onLocalNetworkStatusChanged = Oe;
2031
- function ke(e) {
2032
- j("onNetworkStatusChanged", e);
2031
+ function ke(e, t) {
2032
+ j("onNetworkStatusChanged", e, t);
2033
2033
  }
2034
2034
  e.onNetworkStatusChanged = ke;
2035
2035
  function A(e, ...t) {
2036
2036
  j("onDebugMessage", e, ...t);
2037
2037
  }
2038
2038
  e.onDebugMessage = A;
2039
- function je(e, t) {
2040
- j("onStatistics", Object.assign({}, e, { memory: t }));
2039
+ function je(e, t, n) {
2040
+ j("onStatistics", Object.assign({}, e, { memory: t }), n);
2041
2041
  }
2042
2042
  e.onStatistics = je;
2043
- function P() {
2044
- j("onAutoplayError");
2043
+ function P(e) {
2044
+ j("onAutoplayError", e);
2045
2045
  }
2046
2046
  e.onAutoplayError = P;
2047
- function Me(e, t, n, r, i) {
2048
- j("onChatRoomUpdated", e, t, n, r, i);
2047
+ function Me(e, t, n, r, i, a) {
2048
+ j("onChatRoomUpdated", e, t, n, r, i, a);
2049
2049
  }
2050
2050
  e.onChatRoomUpdated = Me;
2051
- function Ne(e) {
2052
- j("onPromoted", e);
2051
+ function Ne(e, t) {
2052
+ j("onPromoted", e, t);
2053
2053
  }
2054
2054
  e.onPromoted = Ne;
2055
- function Pe(e) {
2056
- j("onRemoteMixedAudioStream", e);
2055
+ function Pe(e, t) {
2056
+ j("onRemoteMixedAudioStream", e, t);
2057
2057
  }
2058
2058
  e.onRemoteMixedAudioStream = Pe;
2059
- function Fe(e) {
2060
- j("onJoinLinkChanged", e);
2059
+ function Fe(e, t) {
2060
+ j("onJoinLinkChanged", e, t);
2061
2061
  }
2062
2062
  e.onJoinLinkChanged = Fe;
2063
- function Ie(e) {
2064
- j("onRoomsUpdated", e);
2063
+ function Ie(e, t) {
2064
+ j("onRoomsUpdated", e, t);
2065
2065
  }
2066
2066
  e.onRoomsUpdated = Ie;
2067
- function Le(e, t, n, r) {
2068
- j("onRoomUpdated", e, t, n, r);
2067
+ function Le(e, t, n, r, i) {
2068
+ j("onRoomUpdated", e, t, n, r, i);
2069
2069
  }
2070
2070
  e.onRoomUpdated = Le;
2071
- function Re(e) {
2072
- j("onRoomParticipantsUpdated", e);
2071
+ function Re(e, t) {
2072
+ j("onRoomParticipantsUpdated", e, t);
2073
2073
  }
2074
2074
  e.onRoomParticipantsUpdated = Re;
2075
- function ze(e) {
2076
- j("onRoomSwitched", e);
2075
+ function ze(e, t) {
2076
+ j("onRoomSwitched", e, t);
2077
2077
  }
2078
2078
  e.onRoomSwitched = ze;
2079
- function Be(e) {
2080
- j("onRoomStart", e);
2079
+ function Be(e, t) {
2080
+ j("onRoomStart", e, t);
2081
2081
  }
2082
2082
  e.onRoomStart = Be;
2083
- function Ve(e, t = null) {
2084
- j("onFeedback", e, t);
2083
+ function Ve(e, t = null, n) {
2084
+ j("onFeedback", e, t, n);
2085
2085
  }
2086
2086
  e.onFeedback = Ve;
2087
- function He(e) {
2088
- j("onFeaturesPerRoleChanged", e);
2087
+ function He(e, t) {
2088
+ j("onFeaturesPerRoleChanged", e, t);
2089
2089
  }
2090
2090
  e.onFeaturesPerRoleChanged = He;
2091
- function Ue(e) {
2092
- j("onParticipantVmojiUpdate", e);
2091
+ function Ue(e, t) {
2092
+ j("onParticipantVmojiUpdate", e, t);
2093
2093
  }
2094
2094
  e.onParticipantVmojiUpdate = Ue;
2095
- function We(e, t) {
2096
- j("onAsrSet", e, t);
2095
+ function We(e, t, n) {
2096
+ j("onAsrSet", e, t, n);
2097
2097
  }
2098
2098
  e.onAsrSet = We;
2099
- function Ge(e, t, n) {
2100
- j("onAsrStarted", e, t, n);
2099
+ function Ge(e, t, n, r) {
2100
+ j("onAsrStarted", e, t, n, r);
2101
2101
  }
2102
2102
  e.onAsrStarted = Ge;
2103
- function Ke(e) {
2104
- j("onAsrStopped", e);
2103
+ function Ke(e, t) {
2104
+ j("onAsrStopped", e, t);
2105
2105
  }
2106
2106
  e.onAsrStopped = Ke;
2107
- function qe(e, t, n, r) {
2108
- j("onAsrTranscription", e, t, n, r);
2107
+ function qe(e, t, n, r, i) {
2108
+ j("onAsrTranscription", e, t, n, r, i);
2109
2109
  }
2110
2110
  e.onAsrTranscription = qe;
2111
- function Je(e, t) {
2112
- j("onParticipantIdChanged", e, t);
2111
+ function Je(e, t, n) {
2112
+ j("onParticipantIdChanged", e, t, n);
2113
2113
  }
2114
2114
  e.onParticipantIdChanged = Je;
2115
- function Ye(e) {
2116
- j("onVideoSuspendSuggest", e);
2115
+ function Ye(e, t) {
2116
+ j("onVideoSuspendSuggest", e, t);
2117
2117
  }
2118
2118
  e.onVideoSuspendSuggest = Ye;
2119
- function Xe(e) {
2120
- j("onSignalingMessage", typeof e == "string" ? e : N(e));
2119
+ function Xe(e, t) {
2120
+ j("onSignalingMessage", typeof e == "string" ? e : N(e), t);
2121
2121
  }
2122
2122
  e.onSignalingMessage = Xe;
2123
- function Ze(e) {
2124
- j("onPromotionApproved", e);
2123
+ function Ze(e, t) {
2124
+ j("onPromotionApproved", e, t);
2125
2125
  }
2126
2126
  e.onPromotionApproved = Ze;
2127
- function Qe() {
2128
- j("onPeerRegistered");
2127
+ function Qe(e) {
2128
+ j("onPeerRegistered", e);
2129
2129
  }
2130
2130
  e.onPeerRegistered = Qe;
2131
2131
  })(je || (je = {}));
@@ -2998,7 +2998,14 @@ var R = Wt, z = new class {
2998
2998
  this._conversations.set(e.id, e);
2999
2999
  }
3000
3000
  remove(e) {
3001
- e && this._conversations.delete(e), this._activeId === e && (this._activeId = null);
3001
+ if (!this._mutex && (e && this._conversations.delete(e), this._activeId === e)) if (this._conversations.size > 0) {
3002
+ let [e] = [...this._conversations][0];
3003
+ try {
3004
+ this.setActive(e);
3005
+ } catch {
3006
+ this._activeId = null;
3007
+ }
3008
+ } else this._activeId = null;
3002
3009
  }
3003
3010
  get(e) {
3004
3011
  return this._conversations.get(e);
@@ -3028,7 +3035,7 @@ var R = Wt, z = new class {
3028
3035
  } catch (e) {
3029
3036
  throw R.error(`Can't hold previous active, error: ${e}`), Error("Cannot switch call: hold failed");
3030
3037
  }
3031
- this._activeId = e, P.onCallActive(e);
3038
+ this._conversations.has(e) && (this._activeId = e, P.onCallActive(e));
3032
3039
  let n = this._conversations.get(e);
3033
3040
  if (n && n?.isCallHeld) try {
3034
3041
  await n.hold(!1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.8.11-dev.273c92c2.0",
3
+ "version": "2.8.11-dev.37528a3e.0",
4
4
  "author": "vk.com",
5
5
  "description": "Library for video calls based on the vk.com platform",
6
6
  "homepage": "https://vk.com",