@number-flow/react 0.4.0 → 0.4.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/dist/index.js CHANGED
@@ -219,7 +219,7 @@ function NumberFlowGroup({ children }) {
219
219
  return /* @__PURE__ */ React.createElement(NumberFlowGroupContext.Provider, { value }, children);
220
220
  }
221
221
  function useCanAnimate({ respectMotionPreference = true } = {}) {
222
- const [canAnimate, setCanAnimate] = React.useState(import_number_flow.canAnimate);
222
+ const [canAnimate, setCanAnimate] = React.useState(false);
223
223
  const [reducedMotion, setReducedMotion] = React.useState(false);
224
224
  React.useEffect(() => {
225
225
  setCanAnimate(import_number_flow.canAnimate);
package/dist/index.mjs CHANGED
@@ -190,7 +190,7 @@ function NumberFlowGroup({ children }) {
190
190
  return /* @__PURE__ */ React.createElement(NumberFlowGroupContext.Provider, { value }, children);
191
191
  }
192
192
  function useCanAnimate({ respectMotionPreference = true } = {}) {
193
- const [canAnimate, setCanAnimate] = React.useState(_canAnimate);
193
+ const [canAnimate, setCanAnimate] = React.useState(false);
194
194
  const [reducedMotion, setReducedMotion] = React.useState(false);
195
195
  React.useEffect(() => {
196
196
  setCanAnimate(_canAnimate);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.4.0",
6
+ "version": "0.4.1",
7
7
  "author": {
8
8
  "name": "Maxwell Barvian",
9
9
  "email": "max@barvian.me",