@banbox/chat 1.0.2 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banbox/chat",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Banbox Chat UI components — reusable across all Banbox React/Next.js projects",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -58,17 +58,20 @@
58
58
  ],
59
59
  "peerDependencies": {
60
60
  "framer-motion": ">=10",
61
+ "lottie-react": ">=2",
61
62
  "react": ">=18",
62
63
  "react-dom": ">=18"
63
64
  },
64
65
  "peerDependenciesMeta": {
65
66
  "framer-motion": {
66
67
  "optional": false
68
+ },
69
+ "lottie-react": {
70
+ "optional": false
67
71
  }
68
72
  },
69
73
  "dependencies": {
70
74
  "clsx": "^2.1.1",
71
- "lottie-react": "^2.4.1",
72
75
  "tailwind-merge": "^3.6.0"
73
76
  },
74
77
  "devDependencies": {
@@ -1,7 +1,11 @@
1
1
  "use client";
2
2
 
3
3
  import clsx from "clsx";
4
- import Lottie from "lottie-react";
4
+ import _Lottie from "lottie-react";
5
+ // Handle ESM/CJS interop: when bundled by tsup the default export may be wrapped
6
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
7
+ const Lottie = ((_Lottie as any).default ?? _Lottie) as typeof _Lottie;
8
+
5
9
  import React from "react";
6
10
  import { BlueBadgeIcon } from "../../icons";
7
11
  import globe from "../../lottie/banbox-chat-globe.json";
@@ -1,6 +1,10 @@
1
1
  "use client";
2
2
 
3
- import Lottie from "lottie-react";
3
+ import _Lottie from "lottie-react";
4
+ // Handle ESM/CJS interop: when bundled by tsup the default export may be wrapped
5
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
+ const Lottie = ((_Lottie as any).default ?? _Lottie) as typeof _Lottie;
7
+
4
8
  import React from "react";
5
9
  import { cn } from "../../utils/cn";
6
10
  import dots from "../../lottie/typingdotanimation2.json";