@flowengage/react-chatbot 7.0.19 → 7.0.20

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.
@@ -30948,61 +30948,66 @@ function zk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i
30948
30948
  })
30949
30949
  })
30950
30950
  }),
30951
- /* @__PURE__ */ _("div", {
30952
- style: {
30953
- minWidth: 0,
30954
- maxWidth: s ? "100%" : "250px",
30955
- width: "100%",
30956
- justifySelf: "center",
30957
- display: "grid",
30958
- gridTemplateColumns: "minmax(72px, 40%) minmax(0, 60%)",
30959
- alignItems: "center"
30960
- },
30961
- children: [/* @__PURE__ */ g("div", {
30951
+ (() => {
30952
+ let t = !!i, n = !!e.hasCustomTitle, r = t || n, a = t || !r, o = n || !r, c = a && o;
30953
+ return /* @__PURE__ */ _("div", {
30962
30954
  style: {
30963
30955
  minWidth: 0,
30964
- display: "flex",
30956
+ maxWidth: s ? "100%" : "250px",
30957
+ width: "100%",
30958
+ justifySelf: "center",
30959
+ display: "grid",
30960
+ gridTemplateColumns: c ? "minmax(72px, 40%) minmax(0, 60%)" : "1fr",
30965
30961
  alignItems: "center",
30966
- justifyContent: "center",
30967
- height: "40px"
30962
+ justifyItems: c ? "stretch" : "center"
30968
30963
  },
30969
- children: i ? /* @__PURE__ */ g(Ak, {
30970
- logo: i,
30964
+ children: [a && /* @__PURE__ */ g("div", {
30971
30965
  style: {
30972
- height: "34px",
30973
- width: "100%",
30974
- maxWidth: "96px"
30975
- }
30976
- }) : /* @__PURE__ */ g("div", {
30977
- style: {
30978
- width: "40px",
30979
- height: "40px",
30980
- flexShrink: 0
30966
+ minWidth: 0,
30967
+ display: "flex",
30968
+ alignItems: "center",
30969
+ justifyContent: "center",
30970
+ height: "40px"
30981
30971
  },
30982
- children: /* @__PURE__ */ g(jk, { title: e.chatTitle })
30983
- })
30984
- }), /* @__PURE__ */ g("div", {
30985
- style: {
30986
- minWidth: 0,
30987
- display: "flex",
30988
- alignItems: "center"
30989
- },
30990
- children: /* @__PURE__ */ g("span", {
30972
+ children: i ? /* @__PURE__ */ g(Ak, {
30973
+ logo: i,
30974
+ style: {
30975
+ height: "34px",
30976
+ width: "100%",
30977
+ maxWidth: "96px"
30978
+ }
30979
+ }) : /* @__PURE__ */ g("div", {
30980
+ style: {
30981
+ width: "40px",
30982
+ height: "40px",
30983
+ flexShrink: 0
30984
+ },
30985
+ children: /* @__PURE__ */ g(jk, { title: e.chatTitle })
30986
+ })
30987
+ }), o && /* @__PURE__ */ g("div", {
30991
30988
  style: {
30992
- fontSize: "15px",
30993
- fontWeight: 600,
30994
- color: "#111827",
30995
- letterSpacing: "-0.01em",
30996
- lineHeight: 1.2,
30997
- overflow: "hidden",
30998
- textOverflow: "ellipsis",
30999
- whiteSpace: "nowrap"
30989
+ minWidth: 0,
30990
+ display: "flex",
30991
+ alignItems: "center",
30992
+ justifyContent: c ? "flex-start" : "center"
31000
30993
  },
31001
- title: e.chatTitle,
31002
- children: e.chatTitle
31003
- })
31004
- })]
31005
- }),
30994
+ children: /* @__PURE__ */ g("span", {
30995
+ style: {
30996
+ fontSize: "15px",
30997
+ fontWeight: 600,
30998
+ color: "#111827",
30999
+ letterSpacing: "-0.01em",
31000
+ lineHeight: 1.2,
31001
+ overflow: "hidden",
31002
+ textOverflow: "ellipsis",
31003
+ whiteSpace: "nowrap"
31004
+ },
31005
+ title: e.chatTitle,
31006
+ children: e.chatTitle
31007
+ })
31008
+ })]
31009
+ });
31010
+ })(),
31006
31011
  /* @__PURE__ */ _("div", {
31007
31012
  style: {
31008
31013
  position: "relative",
@@ -31631,6 +31636,7 @@ function Bk() {
31631
31636
  voiceLabel: Ae.voiceLabel || "Voice",
31632
31637
  textLabel: Ae.textLabel || "Text",
31633
31638
  chatTitle: Ae.headerName || "Chat with FlowEngage",
31639
+ hasCustomTitle: !!(Ae.headerName && String(Ae.headerName).trim()),
31634
31640
  introGreeting: Ze,
31635
31641
  inputPlaceholder: Ae.inputPlaceholder || "Type your message",
31636
31642
  analysingLabel: Ae.analysingLabel || "analysing..."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowengage/react-chatbot",
3
- "version": "7.0.19",
3
+ "version": "7.0.20",
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",