@knotx/plugins-drag 0.2.10 → 0.2.12

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.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { DraggableOptions as DraggableOptions$1 } from '@interactjs/actions/drag/plugin';
2
- import { NodeData, BasePlugin, NodeOperation, InteractionPriority } from '@knotx/core';
2
+ import { Node, BasePlugin, NodeOperation, InteractionPriority } from '@knotx/core';
3
3
 
4
4
  type DraggableOptions = Omit<DraggableOptions$1, 'listeners'>;
5
5
  interface DragTransformerContext {
6
6
  nodeId: string;
7
- node: NodeData;
7
+ node: Node;
8
8
  defaultOptions: DraggableOptions;
9
9
  currentOptions: DraggableOptions;
10
10
  }
@@ -19,7 +19,7 @@ declare module '@knotx/core' {
19
19
  }
20
20
  declare class Drag extends BasePlugin {
21
21
  name: "drag";
22
- getNode: (id: string) => NodeData | undefined;
22
+ getNode: (id: string) => Node | undefined;
23
23
  dispatchNodeOperation: (operation: NodeOperation) => void;
24
24
  startInteraction: (pluginId: string, type: string, priority: InteractionPriority) => void;
25
25
  endInteraction: (pluginId: string, type: string) => void;
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { DraggableOptions as DraggableOptions$1 } from '@interactjs/actions/drag/plugin';
2
- import { NodeData, BasePlugin, NodeOperation, InteractionPriority } from '@knotx/core';
2
+ import { Node, BasePlugin, NodeOperation, InteractionPriority } from '@knotx/core';
3
3
 
4
4
  type DraggableOptions = Omit<DraggableOptions$1, 'listeners'>;
5
5
  interface DragTransformerContext {
6
6
  nodeId: string;
7
- node: NodeData;
7
+ node: Node;
8
8
  defaultOptions: DraggableOptions;
9
9
  currentOptions: DraggableOptions;
10
10
  }
@@ -19,7 +19,7 @@ declare module '@knotx/core' {
19
19
  }
20
20
  declare class Drag extends BasePlugin {
21
21
  name: "drag";
22
- getNode: (id: string) => NodeData | undefined;
22
+ getNode: (id: string) => Node | undefined;
23
23
  dispatchNodeOperation: (operation: NodeOperation) => void;
24
24
  startInteraction: (pluginId: string, type: string, priority: InteractionPriority) => void;
25
25
  endInteraction: (pluginId: string, type: string) => void;
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { DraggableOptions as DraggableOptions$1 } from '@interactjs/actions/drag/plugin';
2
- import { NodeData, BasePlugin, NodeOperation, InteractionPriority } from '@knotx/core';
2
+ import { Node, BasePlugin, NodeOperation, InteractionPriority } from '@knotx/core';
3
3
 
4
4
  type DraggableOptions = Omit<DraggableOptions$1, 'listeners'>;
5
5
  interface DragTransformerContext {
6
6
  nodeId: string;
7
- node: NodeData;
7
+ node: Node;
8
8
  defaultOptions: DraggableOptions;
9
9
  currentOptions: DraggableOptions;
10
10
  }
@@ -19,7 +19,7 @@ declare module '@knotx/core' {
19
19
  }
20
20
  declare class Drag extends BasePlugin {
21
21
  name: "drag";
22
- getNode: (id: string) => NodeData | undefined;
22
+ getNode: (id: string) => Node | undefined;
23
23
  dispatchNodeOperation: (operation: NodeOperation) => void;
24
24
  startInteraction: (pluginId: string, type: string, priority: InteractionPriority) => void;
25
25
  endInteraction: (pluginId: string, type: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/plugins-drag",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "Drag Plugin for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -28,8 +28,8 @@
28
28
  "dist"
29
29
  ],
30
30
  "peerDependencies": {
31
- "@knotx/jsx": "0.2.9",
32
- "@knotx/plugins-canvas": "0.2.10"
31
+ "@knotx/jsx": "0.2.11",
32
+ "@knotx/plugins-canvas": "0.2.12"
33
33
  },
34
34
  "dependencies": {
35
35
  "@interactjs/actions": "^1.10.27",
@@ -38,15 +38,15 @@
38
38
  "@interactjs/types": "^1.10.27",
39
39
  "interactjs": "^1.10.27",
40
40
  "rxjs": "^7.8.1",
41
- "@knotx/core": "0.2.9",
42
- "@knotx/decorators": "0.2.10"
41
+ "@knotx/core": "0.2.11",
42
+ "@knotx/decorators": "0.2.12"
43
43
  },
44
44
  "devDependencies": {
45
- "@knotx/build-config": "0.2.9",
46
- "@knotx/eslint-config": "0.2.9",
47
- "@knotx/jsx": "0.2.9",
48
- "@knotx/plugins-canvas": "0.2.10",
49
- "@knotx/typescript-config": "0.2.9"
45
+ "@knotx/build-config": "0.2.11",
46
+ "@knotx/eslint-config": "0.2.11",
47
+ "@knotx/jsx": "0.2.11",
48
+ "@knotx/plugins-canvas": "0.2.12",
49
+ "@knotx/typescript-config": "0.2.11"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "unbuild",