react-atom-trigger 2.0.0 → 2.0.1
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 +5 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# react-atom-trigger
|
|
2
2
|
|
|
3
|
+
[](https://codecov.io/gh/innrvoice/react-atom-trigger)
|
|
4
|
+
|
|
3
5
|
`react-atom-trigger` helps with the usual "run some code when this thing enters or leaves view" problem.
|
|
4
6
|
It is a lightweight React alternative to `react-waypoint`, written in TypeScript.
|
|
5
7
|
|
|
@@ -266,6 +268,9 @@ To run Storybook locally:
|
|
|
266
268
|
pnpm storybook
|
|
267
269
|
```
|
|
268
270
|
|
|
271
|
+
The latest Storybook build for `react-atom-trigger` is also available at
|
|
272
|
+
[storybook.atomtrigger.dev](https://storybook.atomtrigger.dev/).
|
|
273
|
+
|
|
269
274
|
### CodeSandbox
|
|
270
275
|
|
|
271
276
|
Quick way to tweak it in the browser.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-atom-trigger",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Geometry-based scroll trigger for React with precise enter/leave control. A modern alternative to react-waypoint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intersection",
|
|
@@ -48,9 +48,13 @@
|
|
|
48
48
|
"lint": "oxlint . --ignore-pattern node_modules --ignore-pattern lib",
|
|
49
49
|
"prepare": "node scripts/setup-git-hooks.mjs",
|
|
50
50
|
"preview:sb": "pnpm build:sb && npx serve -s storybook-static -l 3000",
|
|
51
|
+
"start:storybook": "node scripts/serve-storybook.mjs",
|
|
51
52
|
"precommit:checks": "pnpm format:check && pnpm lint && pnpm test",
|
|
52
53
|
"test": "pnpm test:all",
|
|
53
54
|
"test:all": "pnpm test:unit && pnpm test:storybook",
|
|
55
|
+
"test:coverage": "pnpm test:coverage:unit && pnpm test:coverage:storybook",
|
|
56
|
+
"test:coverage:unit": "vitest run --project=unit --reporter=verbose --coverage.enabled=true --coverage.reportsDirectory=coverage/unit",
|
|
57
|
+
"test:coverage:storybook": "vitest run --project=storybook --coverage.enabled=true --coverage.reportsDirectory=coverage/storybook",
|
|
54
58
|
"test:unit": "vitest run --project=unit --reporter=verbose",
|
|
55
59
|
"test:watch": "vitest --project=unit",
|
|
56
60
|
"test:storybook": "vitest run --project=storybook",
|
|
@@ -78,7 +82,7 @@
|
|
|
78
82
|
"tsdown": "^0.21.7",
|
|
79
83
|
"tslib": "^2.8.0",
|
|
80
84
|
"typescript": "^5.6.3",
|
|
81
|
-
"vite": "^6.
|
|
85
|
+
"vite": "^6.4.2",
|
|
82
86
|
"vitest": "^4.1.2"
|
|
83
87
|
},
|
|
84
88
|
"peerDependencies": {
|