@2uinc/frontend-component-xpert-chatbot 1.40.3 → 1.40.5
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/dist/lib/index.min.js +60 -51
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -1607,20 +1607,20 @@ const Ou = 991, Z0 = () => {
|
|
1607
1607
|
}, tt = Xr({}), Ms = ({
|
1608
1608
|
children: e,
|
1609
1609
|
externalLoading: t = !1,
|
1610
|
-
|
1611
|
-
|
1610
|
+
externalLoadingHistory: n = !1,
|
1611
|
+
externalStreaming: r = !1
|
1612
1612
|
}) => {
|
1613
1613
|
const [a, i] = le(!1), [u, s] = le(!1), [l, c] = le(!1), [d, f] = le(!0), [p, h] = le(!1), [b, m] = le(!1), [T, g] = le(!1), [D, P] = le(Nt.XPERT), W = Z0(), j = {
|
1614
1614
|
disabledScroll: a,
|
1615
|
-
externalStreaming:
|
1615
|
+
externalStreaming: r,
|
1616
1616
|
hasError: u,
|
1617
1617
|
hasNewMessage: l,
|
1618
1618
|
internalStreaming: T,
|
1619
1619
|
isMobile: W,
|
1620
1620
|
isNormalSize: d || W,
|
1621
1621
|
loading: p || t,
|
1622
|
-
loadingHistory: b ||
|
1623
|
-
streaming: T ||
|
1622
|
+
loadingHistory: b || n,
|
1623
|
+
streaming: T || r,
|
1624
1624
|
mode: D,
|
1625
1625
|
setDisableScroll: i,
|
1626
1626
|
setHasError: s,
|
@@ -1995,7 +1995,7 @@ const rf = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20hei
|
|
1995
1995
|
handleFloatingActionButtonClick: e = null
|
1996
1996
|
}) => {
|
1997
1997
|
const { launchButton: t } = oe($e), { isMobile: n } = oe(tt);
|
1998
|
-
return /* @__PURE__ */ _.
|
1998
|
+
return /* @__PURE__ */ _.jsxs(
|
1999
1999
|
Si,
|
2000
2000
|
{
|
2001
2001
|
onClick: e,
|
@@ -2004,17 +2004,20 @@ const rf = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20hei
|
|
2004
2004
|
"aria-haspopup": "dialog",
|
2005
2005
|
"aria-expanded": open,
|
2006
2006
|
className: "xpert-chatbot-button",
|
2007
|
-
children:
|
2008
|
-
|
2009
|
-
|
2010
|
-
|
2011
|
-
|
2012
|
-
|
2013
|
-
|
2014
|
-
|
2015
|
-
|
2016
|
-
|
2017
|
-
|
2007
|
+
children: [
|
2008
|
+
/* @__PURE__ */ _.jsx(
|
2009
|
+
"img",
|
2010
|
+
{
|
2011
|
+
"data-ot-ignore": "",
|
2012
|
+
className: `xpert-chatbot-button__logo optanon-category-C0001 xpert-chatbot-button__logo--${t?.logoType || "default"}`,
|
2013
|
+
src: af[t?.logoType || "default"],
|
2014
|
+
alt: "xpert logo",
|
2015
|
+
"aria-hidden": !0,
|
2016
|
+
style: { width: t?.style?.iconWidth }
|
2017
|
+
}
|
2018
|
+
),
|
2019
|
+
t?.text && /* @__PURE__ */ _.jsx("div", { className: "xpert-chatbot-button-text", children: t?.text })
|
2020
|
+
]
|
2018
2021
|
}
|
2019
2022
|
);
|
2020
2023
|
};
|
@@ -22686,31 +22689,33 @@ const xd = ({
|
|
22686
22689
|
configurations: n = {},
|
22687
22690
|
conversation: r,
|
22688
22691
|
externalLoading: a = !1,
|
22689
|
-
|
22690
|
-
|
22691
|
-
|
22692
|
-
|
22693
|
-
|
22694
|
-
|
22695
|
-
|
22692
|
+
externalLoadingHistory: i = !1,
|
22693
|
+
externalStreaming: u = !1,
|
22694
|
+
liveChatPayload: s,
|
22695
|
+
onFeedbackSelection: l,
|
22696
|
+
onMessageSent: c,
|
22697
|
+
onStreamingStop: d,
|
22698
|
+
xpertKey: f,
|
22699
|
+
widgetMode: p = !0
|
22696
22700
|
}) => {
|
22697
|
-
const
|
22701
|
+
const h = {
|
22698
22702
|
clientId: t,
|
22699
22703
|
configurations: n,
|
22700
|
-
xpertKey:
|
22701
|
-
widgetMode:
|
22702
|
-
}, h = {
|
22703
|
-
conversation: r,
|
22704
|
-
onFeedbackSelection: s,
|
22705
|
-
onMessageSent: l,
|
22706
|
-
onStreamingStop: c
|
22704
|
+
xpertKey: f,
|
22705
|
+
widgetMode: p
|
22707
22706
|
}, b = {
|
22708
|
-
|
22707
|
+
conversation: r,
|
22708
|
+
onFeedbackSelection: l,
|
22709
|
+
onMessageSent: c,
|
22710
|
+
onStreamingStop: d
|
22709
22711
|
}, m = {
|
22712
|
+
liveChatPayload: s
|
22713
|
+
}, T = {
|
22710
22714
|
externalLoading: a,
|
22711
|
-
|
22715
|
+
externalLoadingHistory: i,
|
22716
|
+
externalStreaming: u
|
22712
22717
|
};
|
22713
|
-
return /* @__PURE__ */ _.jsx(Ps, { ...
|
22718
|
+
return /* @__PURE__ */ _.jsx(Ps, { ...h, children: /* @__PURE__ */ _.jsx(Ms, { ...T, children: /* @__PURE__ */ _.jsx(Hs, { ...b, children: /* @__PURE__ */ _.jsx(hd, { ...m, children: e }) }) }) });
|
22714
22719
|
};
|
22715
22720
|
xd.propTypes = {
|
22716
22721
|
children: A.element,
|
@@ -22719,6 +22724,7 @@ xd.propTypes = {
|
|
22719
22724
|
conversation: Kr,
|
22720
22725
|
id: A.string,
|
22721
22726
|
externalLoading: A.bool,
|
22727
|
+
externalLoadingHistory: A.bool,
|
22722
22728
|
externalStreaming: A.bool,
|
22723
22729
|
liveChatPayload: A.object,
|
22724
22730
|
onFeedbackSelection: A.func,
|
@@ -22732,14 +22738,15 @@ function vd({
|
|
22732
22738
|
configurations: t = {},
|
22733
22739
|
conversation: n,
|
22734
22740
|
externalLoading: r = !1,
|
22735
|
-
|
22736
|
-
|
22737
|
-
|
22738
|
-
|
22739
|
-
|
22740
|
-
|
22741
|
-
|
22742
|
-
|
22741
|
+
externalLoadingHistory: a = !1,
|
22742
|
+
externalStreaming: i = !1,
|
22743
|
+
liveChatPayload: u,
|
22744
|
+
onFeedbackSelection: s,
|
22745
|
+
onMessageSent: l,
|
22746
|
+
onStreamingStop: c,
|
22747
|
+
submitEventExternal: d,
|
22748
|
+
xpertKey: f,
|
22749
|
+
widgetMode: p = !0
|
22743
22750
|
}) {
|
22744
22751
|
return /* @__PURE__ */ _.jsx(
|
22745
22752
|
xd,
|
@@ -22748,14 +22755,15 @@ function vd({
|
|
22748
22755
|
configurations: t,
|
22749
22756
|
conversation: n,
|
22750
22757
|
externalLoading: r,
|
22751
|
-
|
22752
|
-
|
22753
|
-
|
22754
|
-
|
22755
|
-
|
22756
|
-
|
22757
|
-
|
22758
|
-
|
22758
|
+
externalLoadingHistory: a,
|
22759
|
+
externalStreaming: i,
|
22760
|
+
onFeedbackSelection: s,
|
22761
|
+
onMessageSent: l,
|
22762
|
+
onStreamingStop: c,
|
22763
|
+
liveChatPayload: u,
|
22764
|
+
xpertKey: f,
|
22765
|
+
widgetMode: p,
|
22766
|
+
children: /* @__PURE__ */ _.jsx(Sd, { submitEventExternal: d })
|
22759
22767
|
}
|
22760
22768
|
);
|
22761
22769
|
}
|
@@ -22764,6 +22772,7 @@ vd.propTypes = {
|
|
22764
22772
|
configurations: A.object,
|
22765
22773
|
conversation: Kr,
|
22766
22774
|
externalLoading: A.bool,
|
22775
|
+
externalLoadingHistory: A.bool,
|
22767
22776
|
externalStreaming: A.bool,
|
22768
22777
|
liveChatPayload: A.object,
|
22769
22778
|
onFeedbackSelection: A.func,
|