@flowengage/react-chatbot 2.0.6 → 2.0.7

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.
@@ -3559,9 +3559,9 @@ function or({ siteId: e, config: t, children: n, language: r = "en" }) {
3559
3559
  }, []);
3560
3560
  let Wt = o(() => {
3561
3561
  let e = i?.siteId;
3562
- _e(e), tt.current = !0, nt.current = null, O.current?.disconnect(), S([]), b(""), A.current = "", Ve(!1), re(!1), se(null), fe(null), s((e) => e + 1);
3562
+ _e(e), tt.current = !0, nt.current = null, O.current?.disconnect(), S([]), b(""), A.current = "", Ve(!1), re(!1), se(null), fe(null), et(!0), s((e) => e + 1);
3563
3563
  }, [i?.siteId]), Gt = o((e) => {
3564
- i?.siteId, tt.current = !1, nt.current = e, O.current?.disconnect(), S([]), b(""), A.current = "", Ve(!1), re(!1), se(null), fe(null), s((e) => e + 1);
3564
+ i?.siteId, tt.current = !1, nt.current = e, O.current?.disconnect(), S([]), b(""), A.current = "", Ve(!1), re(!1), se(null), fe(null), et(!0), s((e) => e + 1);
3565
3565
  }, [i?.siteId]), Kt = f(() => ({
3566
3566
  status: l,
3567
3567
  error: d,
@@ -30695,34 +30695,34 @@ function KO({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i
30695
30695
  agentHeadshot: y,
30696
30696
  agentDisplayName: v || b,
30697
30697
  botAvatarNode: /* @__PURE__ */ g(WO, { orbColors: t })
30698
- }) : Me ? /* @__PURE__ */ g("div", {
30698
+ }) : Me ? /* @__PURE__ */ _("div", {
30699
30699
  style: {
30700
30700
  flex: 1,
30701
30701
  display: "flex",
30702
+ flexDirection: "column",
30702
30703
  alignItems: "center",
30703
- justifyContent: "center"
30704
+ justifyContent: "center",
30705
+ gap: "16px"
30704
30706
  },
30705
- children: /* @__PURE__ */ _("div", {
30706
- className: "flowengage-typing-indicator",
30707
+ children: [/* @__PURE__ */ g("div", {
30707
30708
  style: {
30708
- display: "flex",
30709
- gap: "4px"
30709
+ width: "28px",
30710
+ height: "28px",
30711
+ border: "3px solid #f3f4f6",
30712
+ borderTop: `3px solid ${n}`,
30713
+ borderRadius: "50%",
30714
+ animation: "spin 1s linear infinite"
30710
30715
  },
30711
- children: [
30712
- /* @__PURE__ */ g("div", {
30713
- className: "flowengage-typing-dot",
30714
- style: { animationDelay: "0ms" }
30715
- }),
30716
- /* @__PURE__ */ g("div", {
30717
- className: "flowengage-typing-dot",
30718
- style: { animationDelay: "150ms" }
30719
- }),
30720
- /* @__PURE__ */ g("div", {
30721
- className: "flowengage-typing-dot",
30722
- style: { animationDelay: "300ms" }
30723
- })
30724
- ]
30725
- })
30716
+ children: /* @__PURE__ */ g("style", { children: "@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }" })
30717
+ }), /* @__PURE__ */ g("div", {
30718
+ style: {
30719
+ color: "#6b7280",
30720
+ fontSize: "14px",
30721
+ fontWeight: 500,
30722
+ animation: "fe-orb-fade-in 1s infinite alternate"
30723
+ },
30724
+ children: "Loading chat..."
30725
+ })]
30726
30726
  }) : /* @__PURE__ */ _("div", {
30727
30727
  style: {
30728
30728
  flex: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowengage/react-chatbot",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "Embeddable AI chat widget for React — powered by FlowEngage. Drop it in with a single siteId.",
5
5
  "keywords": [
6
6
  "chatbot",