@stream-io/video-client 0.0.1-alpha.68 → 0.0.1-alpha.69

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.
@@ -86,7 +86,7 @@
86
86
  <div class='footer quiet pad2 space-top1 center small'>
87
87
  Code coverage generated by
88
88
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
89
- at 2023-03-29T13:02:17.519Z
89
+ at 2023-03-30T10:07:28.749Z
90
90
  </div>
91
91
  <script src="prettify.js"></script>
92
92
  <script>
@@ -5426,6 +5426,7 @@ const flatten = (report) => {
5426
5426
  return stats;
5427
5427
  };
5428
5428
 
5429
+ const DEFAULT_THRESHOLD = 0.15;
5429
5430
  class ViewportTracker {
5430
5431
  constructor() {
5431
5432
  /**
@@ -5463,7 +5464,7 @@ class ViewportTracker {
5463
5464
  const handler = this.elementHandlerMap.get(entry.target);
5464
5465
  handler === null || handler === void 0 ? void 0 : handler(entry);
5465
5466
  });
5466
- }, Object.assign(Object.assign({ root: viewportElement }, options), { threshold: (_a = options === null || options === void 0 ? void 0 : options.threshold) !== null && _a !== void 0 ? _a : 0.5 }));
5467
+ }, Object.assign(Object.assign({ root: viewportElement }, options), { threshold: (_a = options === null || options === void 0 ? void 0 : options.threshold) !== null && _a !== void 0 ? _a : DEFAULT_THRESHOLD }));
5467
5468
  if (this.queueSet.size) {
5468
5469
  this.queueSet.forEach(([queueElement, queueHandler]) => {
5469
5470
  // check if element which requested observation is
@@ -8308,7 +8309,7 @@ class StreamClient {
8308
8309
  }
8309
8310
  getUserAgent() {
8310
8311
  return (this.userAgent ||
8311
- `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.67"}`);
8312
+ `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.68"}`);
8312
8313
  }
8313
8314
  setUserAgent(userAgent) {
8314
8315
  this.userAgent = userAgent;