@number-flow/react 0.4.0 → 0.4.2

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
@@ -136,6 +136,7 @@ var NumberFlowImpl = class extends React.Component {
136
136
  data,
137
137
  willChange,
138
138
  isolate,
139
+ group,
139
140
  digits,
140
141
  onAnimationsStart,
141
142
  onAnimationsFinish,
@@ -219,7 +220,7 @@ function NumberFlowGroup({ children }) {
219
220
  return /* @__PURE__ */ React.createElement(NumberFlowGroupContext.Provider, { value }, children);
220
221
  }
221
222
  function useCanAnimate({ respectMotionPreference = true } = {}) {
222
- const [canAnimate, setCanAnimate] = React.useState(import_number_flow.canAnimate);
223
+ const [canAnimate, setCanAnimate] = React.useState(false);
223
224
  const [reducedMotion, setReducedMotion] = React.useState(false);
224
225
  React.useEffect(() => {
225
226
  setCanAnimate(import_number_flow.canAnimate);
package/dist/index.mjs CHANGED
@@ -107,6 +107,7 @@ var NumberFlowImpl = class extends React.Component {
107
107
  data,
108
108
  willChange,
109
109
  isolate,
110
+ group,
110
111
  digits,
111
112
  onAnimationsStart,
112
113
  onAnimationsFinish,
@@ -190,7 +191,7 @@ function NumberFlowGroup({ children }) {
190
191
  return /* @__PURE__ */ React.createElement(NumberFlowGroupContext.Provider, { value }, children);
191
192
  }
192
193
  function useCanAnimate({ respectMotionPreference = true } = {}) {
193
- const [canAnimate, setCanAnimate] = React.useState(_canAnimate);
194
+ const [canAnimate, setCanAnimate] = React.useState(false);
194
195
  const [reducedMotion, setReducedMotion] = React.useState(false);
195
196
  React.useEffect(() => {
196
197
  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.2",
7
7
  "author": {
8
8
  "name": "Maxwell Barvian",
9
9
  "email": "max@barvian.me",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "esm-env": "^1.1.4",
52
- "number-flow": "0.4.0"
52
+ "number-flow": "0.4.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@playwright/test": "^1.48.0",