cypress-dragndrop-kit 1.0.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/commands.d.ts +1 -0
- package/commands.js +38 -0
- package/index.d.ts +2 -0
- package/index.js +3 -0
- package/npm-shrinkwrap.json +8482 -0
- package/package.json +29 -0
- package/utils.d.ts +13 -0
- package/utils.js +10 -0
package/package.json
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"name": "cypress-dragndrop-kit",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "Custom command meant for interacting with draggable elements in the UI",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"types": "dist/index.d.js",
|
7
|
+
"scripts": {
|
8
|
+
"build": "rm -rf dist/* && tsc",
|
9
|
+
"test": "npx cypress run",
|
10
|
+
"test:open": "npx cypress open"
|
11
|
+
},
|
12
|
+
"author": "Veronika Gjoreva",
|
13
|
+
"license": "MIT",
|
14
|
+
"keywords": [
|
15
|
+
"cypress",
|
16
|
+
"plugin",
|
17
|
+
"drag",
|
18
|
+
"drop",
|
19
|
+
"drag-and-drop"
|
20
|
+
],
|
21
|
+
"peerDependencies": {
|
22
|
+
"cypress": "^14.4.1"
|
23
|
+
},
|
24
|
+
"devDependencies": {
|
25
|
+
"@types/node": "^24.0.1",
|
26
|
+
"semantic-release": "^24.2.5",
|
27
|
+
"typescript": "^5.8.3"
|
28
|
+
}
|
29
|
+
}
|
package/utils.d.ts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
export type Coordinate = {
|
2
|
+
x: number;
|
3
|
+
y: number;
|
4
|
+
};
|
5
|
+
export type DraggableOption = {
|
6
|
+
pressDelay?: number;
|
7
|
+
};
|
8
|
+
export declare const params: ({ x, y }: Coordinate, offset?: number) => {
|
9
|
+
button: number;
|
10
|
+
clientX: number;
|
11
|
+
clientY: number;
|
12
|
+
force: boolean;
|
13
|
+
};
|
package/utils.js
ADDED