@knotx/plugins-selection 0.4.15 → 0.4.16

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
@@ -169,8 +169,9 @@ class Selection extends (_a = core.BasePlugin, _selected_dec = [decorators.regis
169
169
  __publicField(this, "onBeforeStart", (_) => {
170
170
  });
171
171
  __publicField(this, "onBeforeDrag", () => {
172
- this.isDragging = this.enableDrag;
173
- return this.enableDrag && this.interaction.canInteract(core.InteractionPriority.MarqueeSelection);
172
+ const isDragging = Boolean(this.enableDrag && this.interaction.canInteract(core.InteractionPriority.MarqueeSelection));
173
+ this.isDragging = isDragging;
174
+ return isDragging;
174
175
  });
175
176
  __publicField(this, "onStart", ({ event, store }) => {
176
177
  var _a2;
package/dist/index.js CHANGED
@@ -163,8 +163,9 @@ class Selection extends (_a = BasePlugin, _selected_dec = [register("selected")]
163
163
  __publicField(this, "onBeforeStart", (_) => {
164
164
  });
165
165
  __publicField(this, "onBeforeDrag", () => {
166
- this.isDragging = this.enableDrag;
167
- return this.enableDrag && this.interaction.canInteract(InteractionPriority.MarqueeSelection);
166
+ const isDragging = Boolean(this.enableDrag && this.interaction.canInteract(InteractionPriority.MarqueeSelection));
167
+ this.isDragging = isDragging;
168
+ return isDragging;
168
169
  });
169
170
  __publicField(this, "onStart", ({ event, store }) => {
170
171
  var _a2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/plugins-selection",
3
- "version": "0.4.15",
3
+ "version": "0.4.16",
4
4
  "description": "Selection Plugin for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -28,19 +28,19 @@
28
28
  "dist"
29
29
  ],
30
30
  "peerDependencies": {
31
- "@knotx/plugins-canvas": "0.4.15"
31
+ "@knotx/plugins-canvas": "0.4.16"
32
32
  },
33
33
  "dependencies": {
34
34
  "@knotx/viselect": "^3.9.0",
35
35
  "rxjs": "^7.8.1",
36
- "@knotx/core": "0.4.15",
37
- "@knotx/decorators": "0.4.15"
36
+ "@knotx/core": "0.4.16",
37
+ "@knotx/decorators": "0.4.16"
38
38
  },
39
39
  "devDependencies": {
40
- "@knotx/build-config": "0.4.15",
41
- "@knotx/eslint-config": "0.4.15",
42
- "@knotx/plugins-canvas": "0.4.15",
43
- "@knotx/typescript-config": "0.4.15"
40
+ "@knotx/build-config": "0.4.16",
41
+ "@knotx/eslint-config": "0.4.16",
42
+ "@knotx/plugins-canvas": "0.4.16",
43
+ "@knotx/typescript-config": "0.4.16"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "unbuild",