@2uinc/frontend-component-xpert-chatbot 1.40.18-alpha.4 → 1.40.18-alpha.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 +5 -5
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
|
@@ -1561,7 +1561,7 @@ V1.propTypes = {
|
|
|
1561
1561
|
text: C.string,
|
|
1562
1562
|
endDateTime: C.string
|
|
1563
1563
|
}),
|
|
1564
|
-
|
|
1564
|
+
surveys: C.arrayOf(wp),
|
|
1565
1565
|
liveChat: C.shape({
|
|
1566
1566
|
enabled: C.bool.isRequired,
|
|
1567
1567
|
form: C.arrayOf(
|
|
@@ -34570,7 +34570,7 @@ function NT(e) {
|
|
|
34570
34570
|
if (e?.questions?.length)
|
|
34571
34571
|
return e;
|
|
34572
34572
|
const t = P2(
|
|
34573
|
-
e?.conversationScreen?.
|
|
34573
|
+
e?.conversationScreen?.surveys
|
|
34574
34574
|
);
|
|
34575
34575
|
return t?.questions?.length ? t : null;
|
|
34576
34576
|
}
|
|
@@ -34632,8 +34632,8 @@ function RT({
|
|
|
34632
34632
|
isTestUser: s = !1
|
|
34633
34633
|
}) {
|
|
34634
34634
|
const [o, l] = Te(!1), [c, h] = Te(!1), [p, m] = Te(0), [, y] = Te(null), [b, T] = Te(null), [E, N] = Te(!1), [B, X] = Te(null), z = An(
|
|
34635
|
-
() => P2(n?.
|
|
34636
|
-
[n?.
|
|
34635
|
+
() => P2(n?.surveys),
|
|
34636
|
+
[n?.surveys]
|
|
34637
34637
|
), w = z?.enabled === !0, P = z?.externalTrigger === !0, $ = n?.conversationHistory?.enabled === !0, j = wt(o);
|
|
34638
34638
|
qe(() => {
|
|
34639
34639
|
j.current = o;
|
|
@@ -34720,7 +34720,7 @@ function RT({
|
|
|
34720
34720
|
), S = await LT(V), ae = NT(S);
|
|
34721
34721
|
if (!ae)
|
|
34722
34722
|
throw new Error(
|
|
34723
|
-
"Survey definition missing in conversationScreen.
|
|
34723
|
+
"Survey definition missing in conversationScreen.surveys array"
|
|
34724
34724
|
);
|
|
34725
34725
|
T(ae), G({
|
|
34726
34726
|
eventName: "xpert.chatbot.popup.chat.survey.start",
|