yxuse 3.0.48 → 3.0.50

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.
@@ -203,6 +203,9 @@ const getCownDownTime = (time) => {
203
203
  }
204
204
  return formattedTime;
205
205
  };
206
+ function isTabActive() {
207
+ return document.visibilityState === "visible" && document.hasFocus();
208
+ }
206
209
  class YxSubscribe {
207
210
  constructor() {
208
211
  __publicField(this, "subscribers");
@@ -7054,10 +7057,11 @@ export {
7054
7057
  copyText as c,
7055
7058
  isDarkColor as d,
7056
7059
  enumToArray as e,
7057
- yxSubscribe as f,
7060
+ isTabActive as f,
7058
7061
  getCownDownTime as g,
7059
- commonjsRequire as h,
7062
+ yxSubscribe as h,
7060
7063
  isColorEqual as i,
7064
+ commonjsRequire as j,
7061
7065
  mqtt_minExports as m,
7062
7066
  notifyMessageToSystems as n,
7063
7067
  receiveMessage as r,
Binary file