@choice-ui/react 1.7.2 → 1.7.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.
@@ -72,7 +72,7 @@ const ToasterItem = memo(
72
72
  const [swipeDirection, setSwipeDirection] = useState(null);
73
73
  const swipeStartRef = useRef(null);
74
74
  const toastDuration = toast.duration ?? defaultDuration;
75
- const shouldShowProgress = showProgress && toastDuration > 0 && toast.type !== "loading";
75
+ const shouldShowProgress = showProgress && toastDuration > 0 && Number.isFinite(toastDuration) && toast.type !== "loading";
76
76
  const offsetY = useMemo(() => {
77
77
  if (expanded) {
78
78
  let offset = 0;
@@ -101,7 +101,7 @@ const ToasterRoot = memo(
101
101
  var _a;
102
102
  if (toast.type === "loading") return;
103
103
  const toastDuration = toast.duration ?? duration;
104
- if (toastDuration <= 0) return;
104
+ if (toastDuration <= 0 || !Number.isFinite(toastDuration)) return;
105
105
  const hasTimer = timersRef.current.has(toast.id);
106
106
  if (hovering) {
107
107
  if (hasTimer) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choice-ui/react",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "A desktop-first React UI component library built for professional desktop applications with comprehensive documentation",
5
5
  "sideEffects": false,
6
6
  "type": "module",