@number-flow/react 0.2.1 → 0.2.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/index.d.mts CHANGED
@@ -19,6 +19,7 @@ type NumberFlowProps = React.HTMLAttributes<NumberFlowElement> & {
19
19
  onAnimationsStart?: () => void;
20
20
  onAnimationsFinish?: () => void;
21
21
  trend?: (typeof NumberFlowElement)['prototype']['trend'];
22
+ continuous?: (typeof NumberFlowElement)['prototype']['continuous'];
22
23
  opacityTiming?: (typeof NumberFlowElement)['prototype']['opacityTiming'];
23
24
  transformTiming?: (typeof NumberFlowElement)['prototype']['transformTiming'];
24
25
  spinTiming?: (typeof NumberFlowElement)['prototype']['spinTiming'];
@@ -34,6 +35,7 @@ declare const NumberFlow: React.ForwardRefExoticComponent<React.HTMLAttributes<N
34
35
  onAnimationsStart?: () => void;
35
36
  onAnimationsFinish?: () => void;
36
37
  trend?: (typeof NumberFlowElement)["prototype"]["trend"];
38
+ continuous?: (typeof NumberFlowElement)["prototype"]["continuous"];
37
39
  opacityTiming?: (typeof NumberFlowElement)["prototype"]["opacityTiming"];
38
40
  transformTiming?: (typeof NumberFlowElement)["prototype"]["transformTiming"];
39
41
  spinTiming?: (typeof NumberFlowElement)["prototype"]["spinTiming"];
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ type NumberFlowProps = React.HTMLAttributes<NumberFlowElement> & {
19
19
  onAnimationsStart?: () => void;
20
20
  onAnimationsFinish?: () => void;
21
21
  trend?: (typeof NumberFlowElement)['prototype']['trend'];
22
+ continuous?: (typeof NumberFlowElement)['prototype']['continuous'];
22
23
  opacityTiming?: (typeof NumberFlowElement)['prototype']['opacityTiming'];
23
24
  transformTiming?: (typeof NumberFlowElement)['prototype']['transformTiming'];
24
25
  spinTiming?: (typeof NumberFlowElement)['prototype']['spinTiming'];
@@ -34,6 +35,7 @@ declare const NumberFlow: React.ForwardRefExoticComponent<React.HTMLAttributes<N
34
35
  onAnimationsStart?: () => void;
35
36
  onAnimationsFinish?: () => void;
36
37
  trend?: (typeof NumberFlowElement)["prototype"]["trend"];
38
+ continuous?: (typeof NumberFlowElement)["prototype"]["continuous"];
37
39
  opacityTiming?: (typeof NumberFlowElement)["prototype"]["opacityTiming"];
38
40
  transformTiming?: (typeof NumberFlowElement)["prototype"]["transformTiming"];
39
41
  spinTiming?: (typeof NumberFlowElement)["prototype"]["spinTiming"];
package/dist/index.js CHANGED
@@ -72,6 +72,7 @@ var NumberFlowImpl = class extends React.Component {
72
72
  if (this.props.respectMotionPreference != null)
73
73
  __privateGet(this, _el).respectMotionPreference = this.props.respectMotionPreference;
74
74
  if (this.props.trend != null) __privateGet(this, _el).trend = this.props.trend;
75
+ if (this.props.continuous != null) __privateGet(this, _el).continuous = this.props.continuous;
75
76
  if (this.props.opacityTiming) __privateGet(this, _el).opacityTiming = this.props.opacityTiming;
76
77
  if (this.props.transformTiming) __privateGet(this, _el).transformTiming = this.props.transformTiming;
77
78
  if (this.props.spinTiming) __privateGet(this, _el).spinTiming = this.props.spinTiming;
@@ -85,10 +86,10 @@ var NumberFlowImpl = class extends React.Component {
85
86
  __privateGet(this, _el).addEventListener("animationsfinish", this.props.onAnimationsFinish);
86
87
  }
87
88
  componentDidMount() {
89
+ this.updateNonPartsProps();
88
90
  if (isReact19 && __privateGet(this, _el)) {
89
91
  __privateGet(this, _el).parts = this.props.parts;
90
92
  }
91
- this.updateNonPartsProps();
92
93
  }
93
94
  getSnapshotBeforeUpdate(prevProps) {
94
95
  this.updateNonPartsProps(prevProps);
@@ -115,6 +116,7 @@ var NumberFlowImpl = class extends React.Component {
115
116
  respectMotionPreference,
116
117
  isolate,
117
118
  trend,
119
+ continuous,
118
120
  opacityTiming,
119
121
  transformTiming,
120
122
  spinTiming,
package/dist/index.mjs CHANGED
@@ -44,6 +44,7 @@ var NumberFlowImpl = class extends React.Component {
44
44
  if (this.props.respectMotionPreference != null)
45
45
  __privateGet(this, _el).respectMotionPreference = this.props.respectMotionPreference;
46
46
  if (this.props.trend != null) __privateGet(this, _el).trend = this.props.trend;
47
+ if (this.props.continuous != null) __privateGet(this, _el).continuous = this.props.continuous;
47
48
  if (this.props.opacityTiming) __privateGet(this, _el).opacityTiming = this.props.opacityTiming;
48
49
  if (this.props.transformTiming) __privateGet(this, _el).transformTiming = this.props.transformTiming;
49
50
  if (this.props.spinTiming) __privateGet(this, _el).spinTiming = this.props.spinTiming;
@@ -57,10 +58,10 @@ var NumberFlowImpl = class extends React.Component {
57
58
  __privateGet(this, _el).addEventListener("animationsfinish", this.props.onAnimationsFinish);
58
59
  }
59
60
  componentDidMount() {
61
+ this.updateNonPartsProps();
60
62
  if (isReact19 && __privateGet(this, _el)) {
61
63
  __privateGet(this, _el).parts = this.props.parts;
62
64
  }
63
- this.updateNonPartsProps();
64
65
  }
65
66
  getSnapshotBeforeUpdate(prevProps) {
66
67
  this.updateNonPartsProps(prevProps);
@@ -87,6 +88,7 @@ var NumberFlowImpl = class extends React.Component {
87
88
  respectMotionPreference,
88
89
  isolate,
89
90
  trend,
91
+ continuous,
90
92
  opacityTiming,
91
93
  transformTiming,
92
94
  spinTiming,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.2.1",
6
+ "version": "0.2.3",
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.0.0",
52
- "number-flow": "0.3.0"
52
+ "number-flow": "0.3.2"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/react": "^18.3.3",