react-atom-trigger 1.0.15 → 1.0.16

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # react-atom-trigger
2
2
 
3
- Helps solve the problem of executing code when some element "scrolls into (or out of) view". A pretty simple "[react-waypoint](https://www.npmjs.com/package/react-waypoint)" alternative written in Typescript.
3
+ AtomTrigger helps solve the problem of executing code when some element "scrolls into (or out of) view". A pretty simple "[react-waypoint](https://www.npmjs.com/package/react-waypoint)" alternative written in Typescript.
4
4
 
5
5
  ## Basic features
6
6
 
@@ -10,7 +10,7 @@ Exposes `<AtomTrigger {...props} />` component, where `props` are:
10
10
  ```
11
11
  interface IAtomTriggerProps {
12
12
  scrollEvent: ScrollEvent;
13
- dimensions: Dimensions | null;
13
+ dimensions: Dimensions;
14
14
  behavior?: 'default' | 'enter' | 'leave';
15
15
  callback: () => unknown;
16
16
  getDebugInfo?: (data: DebugInfo) => void;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
7
7
  "typings": "lib/index.d.ts",
8
- "version": "1.0.15",
8
+ "version": "1.0.16",
9
9
  "license": "MIT",
10
10
  "author": "innrVoice <innrvoice@icloud.com>",
11
11
  "repository": {
@@ -19,13 +19,14 @@
19
19
  "build": "rimraf lib && rollup -c rollup.config.js"
20
20
  },
21
21
  "peerDependencies": {
22
- "react": "^18.2.0"
22
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@rollup/plugin-commonjs": "^28.0.1",
26
- "@rollup/plugin-node-resolve": "^16.0.0",
27
- "@types/node": "^22.10.6",
28
- "@types/react": "19.0.6",
25
+ "@rollup/plugin-commonjs": "^28.0.3",
26
+ "@rollup/plugin-node-resolve": "^16.0.1",
27
+ "@rollup/plugin-terser": "0.4.4",
28
+ "@types/node": "^20.6.3",
29
+ "@types/react": "^19.0.12",
29
30
  "@typescript-eslint/eslint-plugin": "^8.20.0",
30
31
  "@typescript-eslint/parser": "^8.20.0",
31
32
  "eslint": "^9.18.0",
@@ -37,9 +38,8 @@
37
38
  "eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
38
39
  "prettier": "^3.4.2",
39
40
  "rimraf": "^6.0.1",
40
- "rollup": "^4.24.0",
41
+ "rollup": "^4.37.0",
41
42
  "rollup-plugin-node-externals": "^8.0.0",
42
- "rollup-plugin-terser": "^7.0.2",
43
43
  "rollup-plugin-typescript2": "^0.36.0",
44
44
  "tslib": "^2.8.0",
45
45
  "typescript": "^5.6.3"