@number-flow/react 0.5.14 → 0.6.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.
|
@@ -116,7 +116,7 @@ class NumberFlowImpl extends React.Component {
|
|
|
116
116
|
}
|
|
117
117
|
const NumberFlow = /*#__PURE__*/ React.forwardRef(function NumberFlow({ value, locales, format, prefix, suffix, ...props }, _ref) {
|
|
118
118
|
React.useImperativeHandle(_ref, ()=>ref.current, []);
|
|
119
|
-
const ref = React.useRef();
|
|
119
|
+
const ref = React.useRef(undefined);
|
|
120
120
|
const group = React.useContext(NumberFlowGroupContext);
|
|
121
121
|
group?.useRegister(ref);
|
|
122
122
|
const localesString = React.useMemo(()=>locales ? JSON.stringify(locales) : '', [
|
|
@@ -139,7 +139,7 @@ class NumberFlowImpl extends React__namespace.Component {
|
|
|
139
139
|
}
|
|
140
140
|
const NumberFlow = /*#__PURE__*/ React__namespace.forwardRef(function NumberFlow({ value, locales, format, prefix, suffix, ...props }, _ref) {
|
|
141
141
|
React__namespace.useImperativeHandle(_ref, ()=>ref.current, []);
|
|
142
|
-
const ref = React__namespace.useRef();
|
|
142
|
+
const ref = React__namespace.useRef(undefined);
|
|
143
143
|
const group = React__namespace.useContext(NumberFlowGroupContext);
|
|
144
144
|
group?.useRegister(ref);
|
|
145
145
|
const localesString = React__namespace.useMemo(()=>locales ? JSON.stringify(locales) : '', [
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var React = require('react');
|
|
|
4
4
|
var NumberFlowLite = require('number-flow/lite');
|
|
5
5
|
var csp = require('number-flow/csp');
|
|
6
6
|
var plugins = require('number-flow/plugins');
|
|
7
|
-
var NumberFlowClient = require('./NumberFlow-client-
|
|
7
|
+
var NumberFlowClient = require('./NumberFlow-client-Cwo3BD4J.js');
|
|
8
8
|
|
|
9
9
|
function _interopNamespace(e) {
|
|
10
10
|
if (e && e.__esModule) return e;
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { canAnimate, prefersReducedMotion } from 'number-flow/lite';
|
|
3
3
|
import { buildStyles } from 'number-flow/csp';
|
|
4
4
|
export * from 'number-flow/plugins';
|
|
5
|
-
export { a as NumberFlowElement, b as NumberFlowGroup, N as default } from './NumberFlow-client-
|
|
5
|
+
export { a as NumberFlowElement, b as NumberFlowGroup, N as default } from './NumberFlow-client-BGPmzcXX.mjs';
|
|
6
6
|
|
|
7
7
|
const styles = buildStyles('-react');
|
|
8
8
|
const useIsSupported = ()=>React.useSyncExternalStore(()=>()=>{}, ()=>canAnimate, ()=>false);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.6.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.
|
|
52
|
+
"number-flow": "0.6.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@playwright/test": "^1.48.0",
|