@knotx/plugins-canvas-scrollbar 0.4.16 → 0.5.1

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/dist/index.cjs CHANGED
@@ -223,7 +223,7 @@ class CanvasScrollbar extends (_a = core.BasePlugin, _showScrollbars_dec = [deco
223
223
  if (this.scrollbarTimeout) {
224
224
  clearTimeout(this.scrollbarTimeout);
225
225
  }
226
- this.scrollbarTimeout = window.setTimeout(() => {
226
+ this.scrollbarTimeout = setTimeout(() => {
227
227
  this.showScrollbars = false;
228
228
  }, this.config.hideTimeout);
229
229
  });
package/dist/index.js CHANGED
@@ -221,7 +221,7 @@ class CanvasScrollbar extends (_a = BasePlugin, _showScrollbars_dec = [observabl
221
221
  if (this.scrollbarTimeout) {
222
222
  clearTimeout(this.scrollbarTimeout);
223
223
  }
224
- this.scrollbarTimeout = window.setTimeout(() => {
224
+ this.scrollbarTimeout = setTimeout(() => {
225
225
  this.showScrollbars = false;
226
226
  }, this.config.hideTimeout);
227
227
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/plugins-canvas-scrollbar",
3
- "version": "0.4.16",
3
+ "version": "0.5.1",
4
4
  "description": "Canvas Scrollbar Plugin for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -29,21 +29,21 @@
29
29
  ],
30
30
  "peerDependencies": {
31
31
  "react": ">=17.0.0",
32
- "@knotx/jsx": "0.4.16",
33
- "@knotx/plugins-canvas": "0.4.16"
32
+ "@knotx/jsx": "0.5.1",
33
+ "@knotx/plugins-canvas": "0.5.1"
34
34
  },
35
35
  "dependencies": {
36
- "@knotx/core": "0.4.16",
37
- "@knotx/decorators": "0.4.16"
36
+ "@knotx/core": "0.5.1",
37
+ "@knotx/decorators": "0.5.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/react": "^17.0.0",
41
41
  "react": "^17.0.0",
42
- "@knotx/build-config": "0.4.16",
43
- "@knotx/eslint-config": "0.4.16",
44
- "@knotx/jsx": "0.4.16",
45
- "@knotx/plugins-canvas": "0.4.16",
46
- "@knotx/typescript-config": "0.4.16"
42
+ "@knotx/build-config": "0.5.1",
43
+ "@knotx/eslint-config": "0.5.1",
44
+ "@knotx/jsx": "0.5.1",
45
+ "@knotx/plugins-canvas": "0.5.1",
46
+ "@knotx/typescript-config": "0.5.1"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "unbuild",