@hopecloud/jetstream-player 1.0.13 → 1.0.15

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.
@@ -7,6 +7,7 @@ export class IFramePiPPlugin {
7
7
  this.iframe = iframe;
8
8
  this.containerSelector = containerSelector;
9
9
  this.iframe = iframe;
10
+ this.init();
10
11
  }
11
12
  init() {
12
13
  if (!this.iframe || !this.containerSelector)
@@ -18,7 +19,7 @@ export class IFramePiPPlugin {
18
19
  this.observer = new IntersectionObserver((entries) => {
19
20
  entries.forEach((entry) => {
20
21
  if (!entry.isIntersecting) {
21
- const height = parent.getBoundingClientRect().height + 'px';
22
+ const height = parent.getBoundingClientRect().height;
22
23
  this.iframe.classList.add('pip-active');
23
24
  parent.style.height = `${height}px`;
24
25
  }
@@ -32,7 +33,6 @@ export class IFramePiPPlugin {
32
33
  rootMargin: '0px',
33
34
  threshold: 0,
34
35
  });
35
- console.log('Loging:', this.observer, parent);
36
36
  this.observer.observe(this.iframe);
37
37
  }
38
38
  destory() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hopecloud/jetstream-player",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "JetStream Embed Player API",
5
5
  "type": "module",
6
6
  "author": {
@@ -19,6 +19,9 @@
19
19
  "exports": {
20
20
  ".": {
21
21
  "import": "./dist/index.js"
22
+ },
23
+ "./dist/main.css": {
24
+ "import": "./dist/main.css"
22
25
  }
23
26
  },
24
27
  "files": [