r3f-motion 1.0.1 → 1.0.3

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/dist/cjs/index.js CHANGED
@@ -384,6 +384,8 @@ function custom(Component) {
384
384
  "stiffness",
385
385
  "damping",
386
386
  "mass",
387
+ "restDelta",
388
+ "restSpeed",
387
389
  ];
388
390
  return Object.assign(base, ...validKeys
389
391
  .filter((key) => opts[key] !== undefined)
@@ -456,7 +458,7 @@ function custom(Component) {
456
458
  animationRef.current = {
457
459
  stop: () => animations.forEach((anim) => { var _a; return (_a = anim.stop) === null || _a === void 0 ? void 0 : _a.call(anim); }),
458
460
  };
459
- }, []);
461
+ }, [animate]);
460
462
  react.useEffect(() => {
461
463
  if (!instanceRef.current || !animate)
462
464
  return;
@@ -117,6 +117,8 @@ function custom(Component) {
117
117
  "stiffness",
118
118
  "damping",
119
119
  "mass",
120
+ "restDelta",
121
+ "restSpeed",
120
122
  ];
121
123
  return Object.assign(base, ...validKeys
122
124
  .filter((key) => opts[key] !== undefined)
@@ -189,7 +191,7 @@ function custom(Component) {
189
191
  animationRef.current = {
190
192
  stop: () => animations.forEach((anim) => { var _a; return (_a = anim.stop) === null || _a === void 0 ? void 0 : _a.call(anim); }),
191
193
  };
192
- }, []);
194
+ }, [animate$1]);
193
195
  useEffect(() => {
194
196
  if (!instanceRef.current || !animate$1)
195
197
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "r3f-motion",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "A simple and powerful React animation library for @react-three/fiber leveraging motion.dev",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.mjs",