@knotx/plugins-drag 0.2.11 → 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 +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +10 -10
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DraggableOptions as DraggableOptions$1 } from '@interactjs/actions/drag/plugin';
|
|
2
|
-
import {
|
|
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:
|
|
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) =>
|
|
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 {
|
|
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:
|
|
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) =>
|
|
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 {
|
|
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:
|
|
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) =>
|
|
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.
|
|
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.
|
|
32
|
-
"@knotx/plugins-canvas": "0.2.
|
|
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.
|
|
42
|
-
"@knotx/decorators": "0.2.
|
|
41
|
+
"@knotx/core": "0.2.11",
|
|
42
|
+
"@knotx/decorators": "0.2.12"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@knotx/build-config": "0.2.
|
|
46
|
-
"@knotx/eslint-config": "0.2.
|
|
47
|
-
"@knotx/jsx": "0.2.
|
|
48
|
-
"@knotx/plugins-canvas": "0.2.
|
|
49
|
-
"@knotx/typescript-config": "0.2.
|
|
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",
|