react-sway 0.1.1 → 0.2.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 +27 -5
- package/dist/index.cjs +314 -198
- package/dist/index.d.cts +55 -2
- package/dist/index.d.ts +55 -2
- package/dist/index.js +315 -199
- package/package.json +18 -12
- package/src/ReactSway.tsx +445 -230
- package/src/__tests__/ReactSway.test.tsx +508 -0
- package/src/__tests__/setup.ts +20 -0
- package/src/index.ts +5 -3
package/package.json
CHANGED
|
@@ -8,15 +8,19 @@
|
|
|
8
8
|
},
|
|
9
9
|
"description": "A React component for smooth infinite scrolling, designed for creating engaging, continuous content streams with minimal configuration.",
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@
|
|
12
|
-
"@
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"eslint
|
|
16
|
-
"react": "^
|
|
17
|
-
"react-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
11
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
12
|
+
"@testing-library/react": "^16.3.2",
|
|
13
|
+
"@types/react": "^19.2.14",
|
|
14
|
+
"@types/react-dom": "^19.2.3",
|
|
15
|
+
"eslint": "^9.39.4",
|
|
16
|
+
"eslint-plugin-react": "^7.37.5",
|
|
17
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
18
|
+
"jsdom": "^28.1.0",
|
|
19
|
+
"react": "^19.2.4",
|
|
20
|
+
"react-dom": "^19.2.4",
|
|
21
|
+
"tsup": "^8.5.1",
|
|
22
|
+
"typescript": "^5.9.3",
|
|
23
|
+
"vitest": "^4.1.0"
|
|
20
24
|
},
|
|
21
25
|
"files": [
|
|
22
26
|
"dist",
|
|
@@ -55,9 +59,11 @@
|
|
|
55
59
|
"build": "tsup src/index.ts --format cjs,esm --dts --external react",
|
|
56
60
|
"dev": "tsup src/index.ts --format cjs,esm --dts --external react --watch",
|
|
57
61
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
58
|
-
"prepublishOnly": "npm run build"
|
|
62
|
+
"prepublishOnly": "npm run build",
|
|
63
|
+
"test": "vitest run",
|
|
64
|
+
"test:watch": "vitest"
|
|
59
65
|
},
|
|
60
66
|
"type": "module",
|
|
61
67
|
"types": "dist/index.d.ts",
|
|
62
|
-
"version": "0.
|
|
63
|
-
}
|
|
68
|
+
"version": "0.2.0"
|
|
69
|
+
}
|