js.foresight 2.2.2 → 3.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/README.md +1 -1
- package/dist/index.d.ts +100 -69
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "js.foresight",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Predicts mouse trajectory to trigger actions as users approach elements, enabling anticipatory UI updates or pre-loading. Made with vanilla javascript and usable in every framework.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -42,23 +42,38 @@
|
|
|
42
42
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
43
43
|
"@rollup/plugin-terser": "^0.4.4",
|
|
44
44
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
45
|
+
"@testing-library/dom": "^10.4.0",
|
|
46
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
45
47
|
"@types/node": "^22.15.30",
|
|
48
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
49
|
+
"@vitest/ui": "^3.2.4",
|
|
50
|
+
"happy-dom": "^18.0.1",
|
|
51
|
+
"jsdom": "^26.1.0",
|
|
46
52
|
"rollup": "^4.42.0",
|
|
47
53
|
"rollup-plugin-dts": "^6.2.1",
|
|
48
54
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
49
55
|
"rollup-plugin-postcss": "^4.0.2",
|
|
50
56
|
"tslib": "^2.8.1",
|
|
51
|
-
"typescript": "^5.8.3"
|
|
57
|
+
"typescript": "^5.8.3",
|
|
58
|
+
"vitest": "^3.2.4"
|
|
52
59
|
},
|
|
53
60
|
"dependencies": {
|
|
54
|
-
"@thednp/position-observer": "^1.1.0",
|
|
55
61
|
"position-observer": "^1.0.0",
|
|
56
62
|
"tabbable": "^6.2.0"
|
|
57
63
|
},
|
|
58
64
|
"scripts": {
|
|
59
65
|
"build": "tsc --build --clean && tsc",
|
|
66
|
+
"rollup": "rollup -c --bundleConfigAsCjs",
|
|
67
|
+
"prepublish": "echo 'Skipping prepublish script'",
|
|
68
|
+
"publish:core": "npm publish",
|
|
69
|
+
"publish:debugger": "cd packages/debugger && npm publish",
|
|
70
|
+
"publish:all": "npm run publish:core && npm run publish:debugger",
|
|
60
71
|
"devpage": "cd ./development_page && pnpm dev",
|
|
61
72
|
"installDevPage": "cd ./development_page && pnpm install",
|
|
62
|
-
"
|
|
73
|
+
"test": "vitest",
|
|
74
|
+
"test:watch": "vitest --watch",
|
|
75
|
+
"test:ui": "vitest --ui",
|
|
76
|
+
"test:coverage": "vitest --coverage",
|
|
77
|
+
"test:run": "vitest run"
|
|
63
78
|
}
|
|
64
79
|
}
|