@number-flow/react 0.4.4 → 0.5.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.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { NumberFlowLite, Value, Format, Props } from 'number-flow';
3
3
  export { Format, NumberPartType, Trend, Value } from 'number-flow';
4
+ export * from 'number-flow/plugins';
4
5
 
5
6
  declare const OBSERVED_ATTRIBUTES: readonly ["data", "digits"];
6
7
  type ObservedAttribute = (typeof OBSERVED_ATTRIBUTES)[number];
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { NumberFlowLite, Value, Format, Props } from 'number-flow';
3
3
  export { Format, NumberPartType, Trend, Value } from 'number-flow';
4
+ export * from 'number-flow/plugins';
4
5
 
5
6
  declare const OBSERVED_ATTRIBUTES: readonly ["data", "digits"];
6
7
  type ObservedAttribute = (typeof OBSERVED_ATTRIBUTES)[number];
package/dist/index.js CHANGED
@@ -18,6 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  }
19
19
  return to;
20
20
  };
21
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
23
  // If the importer is in node compatibility mode or this is not an ESM
23
24
  // file that has been converted to a CommonJS file using a Babel-
@@ -42,6 +43,7 @@ module.exports = __toCommonJS(src_exports);
42
43
  var React = __toESM(require("react"));
43
44
  var import_number_flow = require("number-flow");
44
45
  var import_esm_env = require("esm-env");
46
+ __reExport(src_exports, require("number-flow/plugins"), module.exports);
45
47
  var REACT_MAJOR = parseInt(React.version.match(/^(\d+)\./)?.[1]);
46
48
  var isReact19 = REACT_MAJOR >= 19;
47
49
  var OBSERVED_ATTRIBUTES = ["data", "digits"];
@@ -62,7 +64,7 @@ function splitProps(props) {
62
64
  animated,
63
65
  respectMotionPreference,
64
66
  trend,
65
- continuous,
67
+ plugins,
66
68
  ...rest
67
69
  } = props;
68
70
  return [
@@ -73,7 +75,7 @@ function splitProps(props) {
73
75
  animated,
74
76
  respectMotionPreference,
75
77
  trend,
76
- continuous
78
+ plugins
77
79
  },
78
80
  rest
79
81
  ];
@@ -247,5 +249,6 @@ function useCanAnimate({ respectMotionPreference = true } = {}) {
247
249
  NumberFlowGroup,
248
250
  useCanAnimate,
249
251
  useIsSupported,
250
- usePrefersReducedMotion
252
+ usePrefersReducedMotion,
253
+ ...require("number-flow/plugins")
251
254
  });
package/dist/index.mjs CHANGED
@@ -11,6 +11,7 @@ import {
11
11
  define
12
12
  } from "number-flow";
13
13
  import { BROWSER } from "esm-env";
14
+ export * from "number-flow/plugins";
14
15
  var REACT_MAJOR = parseInt(React.version.match(/^(\d+)\./)?.[1]);
15
16
  var isReact19 = REACT_MAJOR >= 19;
16
17
  var OBSERVED_ATTRIBUTES = ["data", "digits"];
@@ -31,7 +32,7 @@ function splitProps(props) {
31
32
  animated,
32
33
  respectMotionPreference,
33
34
  trend,
34
- continuous,
35
+ plugins,
35
36
  ...rest
36
37
  } = props;
37
38
  return [
@@ -42,7 +43,7 @@ function splitProps(props) {
42
43
  animated,
43
44
  respectMotionPreference,
44
45
  trend,
45
- continuous
46
+ plugins
46
47
  },
47
48
  rest
48
49
  ];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.4.4",
6
+ "version": "0.5.1",
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.2"
52
+ "number-flow": "0.5.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@playwright/test": "^1.48.0",