@knotx/plugins-canvas 0.2.15 → 0.3.0

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
@@ -137,7 +137,7 @@ class Canvas extends (_a = core.BasePlugin, _ref_dec = [decorators.register("ref
137
137
  }
138
138
  scrollNodeIntoView({ nodeId, scale = this.transform.scale, block = "nearest", inline = "nearest", offset = 0, animationTime }) {
139
139
  var _a2, _b, _c, _d, _e, _f, _g;
140
- const node = nodeId && this.getNode(nodeId);
140
+ const node = nodeId && this.getNode({ id: nodeId });
141
141
  if (!node) {
142
142
  return;
143
143
  }
package/dist/index.js CHANGED
@@ -135,7 +135,7 @@ class Canvas extends (_a = BasePlugin, _ref_dec = [register("ref")], _transform_
135
135
  }
136
136
  scrollNodeIntoView({ nodeId, scale = this.transform.scale, block = "nearest", inline = "nearest", offset = 0, animationTime }) {
137
137
  var _a2, _b, _c, _d, _e, _f, _g;
138
- const node = nodeId && this.getNode(nodeId);
138
+ const node = nodeId && this.getNode({ id: nodeId });
139
139
  if (!node) {
140
140
  return;
141
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/plugins-canvas",
3
- "version": "0.2.15",
3
+ "version": "0.3.0",
4
4
  "description": "Canvas Plugin for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -29,23 +29,23 @@
29
29
  ],
30
30
  "peerDependencies": {
31
31
  "react": ">=17.0.0",
32
- "@knotx/jsx": "0.2.13"
32
+ "@knotx/jsx": "0.3.0"
33
33
  },
34
34
  "dependencies": {
35
35
  "lodash-es": "^4.17.21",
36
36
  "react-zoom-pan-pinch": "^3.7.0",
37
37
  "rxjs": "^7.8.1",
38
- "@knotx/core": "0.2.14",
39
- "@knotx/decorators": "0.2.15"
38
+ "@knotx/core": "0.3.0",
39
+ "@knotx/decorators": "0.3.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/lodash-es": "^4.17.12",
43
43
  "@types/react": "^17.0.0",
44
44
  "react": "^17.0.0",
45
- "@knotx/build-config": "0.2.13",
46
- "@knotx/eslint-config": "0.2.13",
47
- "@knotx/jsx": "0.2.13",
48
- "@knotx/typescript-config": "0.2.13"
45
+ "@knotx/build-config": "0.3.0",
46
+ "@knotx/eslint-config": "0.3.0",
47
+ "@knotx/jsx": "0.3.0",
48
+ "@knotx/typescript-config": "0.3.0"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "unbuild",