@hua-labs/motion-core 2.1.0-alpha.9 → 2.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/dist/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useState, useRef, useCallback, useEffect, useMemo } from 'react';
2
3
 
3
4
  // src/core/MotionEngine.ts
@@ -1662,7 +1663,7 @@ function useUnifiedMotion(options) {
1662
1663
  const {
1663
1664
  type,
1664
1665
  duration = 600,
1665
- autoStart = false,
1666
+ autoStart = true,
1666
1667
  delay = 0,
1667
1668
  easing: easing2,
1668
1669
  threshold = 0.1,
@@ -3236,8 +3237,7 @@ function useScrollProgress(options = {}) {
3236
3237
  function useMotionState(options = {}) {
3237
3238
  const {
3238
3239
  initialState = "idle",
3239
- autoPlay,
3240
- autoStart = autoPlay ?? false,
3240
+ autoStart = false,
3241
3241
  loop = false,
3242
3242
  direction = "forward",
3243
3243
  duration = 1e3,