@voicenter-team/events-sdk 0.0.57 → 0.0.59

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.
@@ -125,7 +125,7 @@ export declare type changeIsMutedListener = (value: boolean) => void
125
125
 
126
126
  export declare type changeMuteWhenJoinListener = (value: boolean) => void
127
127
 
128
- declare enum ConnectionStatusEnum {
128
+ export declare enum ConnectionStatusEnum {
129
129
  CONNECTED = 'connected',
130
130
  DISCONNECTED = 'disconnected',
131
131
  TRYING_TO_CONNECT = 'tryingToConnect',
@@ -154,7 +154,7 @@ class It {
154
154
  if (n[e])
155
155
  return r ? JSON.parse(n[e]) : n[e];
156
156
  }
157
- if (typeof window < "u") {
157
+ if (typeof window < "u" && typeof window.sessionStorage < "u" && typeof window.sessionStorage.getItem == "function") {
158
158
  const n = window.sessionStorage.getItem(e);
159
159
  if (n)
160
160
  return r ? JSON.parse(n) : n;
@@ -163,10 +163,10 @@ class It {
163
163
  static async updateSessionStorageKey(e, r) {
164
164
  typeof chrome < "u" && typeof chrome.storage < "u" && await chrome.storage.session.set({
165
165
  [e]: JSON.stringify(r)
166
- }), typeof window < "u" && window.sessionStorage.setItem(e, JSON.stringify(r));
166
+ }), typeof window < "u" && typeof window.sessionStorage < "u" && typeof window.sessionStorage.setItem == "function" && window.sessionStorage.setItem(e, JSON.stringify(r));
167
167
  }
168
168
  static clearSessionStorage() {
169
- typeof chrome < "u" && typeof chrome.storage < "u" && chrome.storage.session.clear(), typeof window < "u" && window.sessionStorage.clear();
169
+ typeof chrome < "u" && typeof chrome.storage < "u" && chrome.storage.session.clear(), typeof window < "u" && typeof window.sessionStorage < "u" && typeof window.sessionStorage.clear == "function" && window.sessionStorage.clear();
170
170
  }
171
171
  }
172
172
  var Br = Object.defineProperty, _r = (t, e, r) => e in t ? Br(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, V = (t, e, r) => (_r(t, typeof e != "symbol" ? e + "" : e, r), r);
@@ -2893,7 +2893,7 @@ const Io = {
2893
2893
  }
2894
2894
  };
2895
2895
  function Bo() {
2896
- return function t(e, r, n) {
2896
+ return (typeof window.navigator > "u" || typeof window.navigator.userAgent > "u") && (window.navigator.userAgent = "react-native"), function t(e, r, n) {
2897
2897
  function o(h, d) {
2898
2898
  if (!r[h]) {
2899
2899
  if (!e[h]) {
@@ -5563,6 +5563,7 @@ class Go {
5563
5563
  export {
5564
5564
  jo as CallStatusEnum,
5565
5565
  Mo as CallTypeEnum,
5566
+ mt as ConnectionStatusEnum,
5566
5567
  qo as DialerTypeEnum,
5567
5568
  zo as DirectionEnum,
5568
5569
  Xo as DoNotCallMeStatusCodeEnum,