droplinked-chatbot-next 1.0.2 → 1.0.4
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/assets/icons/Action/Send/SendMd.d.ts +2 -0
- package/dist/assets/icons/system/Letter/LetterMd.d.ts +2 -0
- package/dist/components/SmartLink.d.ts +9 -0
- package/dist/components/TypingIndicator.d.ts +0 -2
- package/dist/index.esm.js +230 -219
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +230 -219
- package/dist/index.js.map +1 -1
- package/dist/views/HelloPage.d.ts +2 -1
- package/package.json +10 -3
package/dist/index.esm.js
CHANGED
|
@@ -4730,31 +4730,59 @@ var useChatbot = function useChatbot(_ref) {
|
|
|
4730
4730
|
};
|
|
4731
4731
|
};
|
|
4732
4732
|
|
|
4733
|
-
var _excluded$
|
|
4734
|
-
var
|
|
4733
|
+
var _excluded$b = ["color"];
|
|
4734
|
+
var SendMd = function SendMd(_ref) {
|
|
4735
4735
|
var _ref$color = _ref.color,
|
|
4736
4736
|
color = _ref$color === void 0 ? "black" : _ref$color,
|
|
4737
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4737
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
4738
4738
|
return jsxs("svg", _objectSpread2(_objectSpread2({
|
|
4739
|
-
width: "
|
|
4740
|
-
height: "
|
|
4741
|
-
viewBox: "0 0
|
|
4739
|
+
width: "20",
|
|
4740
|
+
height: "20",
|
|
4741
|
+
viewBox: "0 0 20 20",
|
|
4742
4742
|
fill: "none",
|
|
4743
4743
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4744
4744
|
}, props), {}, {
|
|
4745
4745
|
children: [jsx("path", {
|
|
4746
|
-
d: "
|
|
4746
|
+
d: "M5.3738 3.48795L15.9045 8.7562C16.1339 8.87345 16.3265 9.05162 16.4609 9.27115C16.5953 9.49055 16.6663 9.74278 16.6663 9.99991C16.6663 10.2572 16.5953 10.5093 16.4609 10.7288C16.3265 10.9482 16.1339 11.1264 15.9045 11.2436L5.3738 16.5119C5.1108 16.6469 4.81174 16.6952 4.51947 16.6502C4.22721 16.6051 3.95674 16.4688 3.74686 16.2609C3.53697 16.0531 3.39842 15.7842 3.35107 15.4929C3.30372 15.2015 3.35002 14.9027 3.48331 14.6393L5.49983 10.6287C5.59832 10.4337 5.64963 10.2183 5.64963 9.99991C5.64963 9.78149 5.59832 9.56615 5.49983 9.37107L3.48331 5.36049C3.35002 5.09705 3.30372 4.79827 3.35107 4.50696C3.39842 4.21565 3.53697 3.94678 3.74686 3.73888C3.95674 3.53099 4.22721 3.39473 4.51947 3.34965C4.81174 3.30458 5.1108 3.35299 5.3738 3.48795Z",
|
|
4747
4747
|
stroke: color,
|
|
4748
|
+
strokeWidth: "1.5",
|
|
4748
4749
|
"stroke-miterlimit": "10"
|
|
4749
4750
|
}), jsx("path", {
|
|
4750
|
-
d: "
|
|
4751
|
+
d: "M5.83301 10H9.16634",
|
|
4751
4752
|
stroke: color,
|
|
4753
|
+
strokeWidth: "1.5",
|
|
4752
4754
|
"stroke-miterlimit": "10",
|
|
4753
4755
|
strokeLinecap: "round"
|
|
4754
4756
|
})]
|
|
4755
4757
|
}));
|
|
4756
4758
|
};
|
|
4757
4759
|
|
|
4760
|
+
var _excluded$a = ["color"];
|
|
4761
|
+
var LetterMd = function LetterMd(_ref) {
|
|
4762
|
+
var _ref$color = _ref.color,
|
|
4763
|
+
color = _ref$color === void 0 ? "black" : _ref$color,
|
|
4764
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
4765
|
+
return jsxs("svg", _objectSpread2(_objectSpread2({
|
|
4766
|
+
width: "20",
|
|
4767
|
+
height: "20",
|
|
4768
|
+
viewBox: "0 0 20 20",
|
|
4769
|
+
fill: "none",
|
|
4770
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4771
|
+
}, props), {}, {
|
|
4772
|
+
children: [jsx("path", {
|
|
4773
|
+
d: "M5.83301 7.5L9.99967 10.4167L14.1663 7.5",
|
|
4774
|
+
stroke: color,
|
|
4775
|
+
strokeWidth: "1.5",
|
|
4776
|
+
strokeLinecap: "round",
|
|
4777
|
+
strokeLinejoin: "round"
|
|
4778
|
+
}), jsx("path", {
|
|
4779
|
+
d: "M1.66699 14.1667V5.83334C1.66699 4.91286 2.41318 4.16667 3.33366 4.16667H16.667C17.5875 4.16667 18.3337 4.91286 18.3337 5.83334V14.1667C18.3337 15.0872 17.5875 15.8333 16.667 15.8333H3.33366C2.41318 15.8333 1.66699 15.0872 1.66699 14.1667Z",
|
|
4780
|
+
stroke: color,
|
|
4781
|
+
strokeWidth: "1.5"
|
|
4782
|
+
})]
|
|
4783
|
+
}));
|
|
4784
|
+
};
|
|
4785
|
+
|
|
4758
4786
|
function EmailCapture(_ref) {
|
|
4759
4787
|
var onSubmit = _ref.onSubmit,
|
|
4760
4788
|
_ref$isSubmitting = _ref.isSubmitting,
|
|
@@ -4788,7 +4816,9 @@ function EmailCapture(_ref) {
|
|
|
4788
4816
|
border: "1px solid",
|
|
4789
4817
|
borderColor: "#27272A",
|
|
4790
4818
|
overflow: "hidden",
|
|
4791
|
-
children: [jsx(
|
|
4819
|
+
children: [jsx(LetterMd, {
|
|
4820
|
+
color: "#7B7B7B"
|
|
4821
|
+
}), jsx(Input, {
|
|
4792
4822
|
value: email,
|
|
4793
4823
|
onChange: function onChange(e) {
|
|
4794
4824
|
return setEmail(e.target.value);
|
|
@@ -4834,8 +4864,8 @@ function EmailCapture(_ref) {
|
|
|
4834
4864
|
color: "#525252",
|
|
4835
4865
|
cursor: "not-allowed"
|
|
4836
4866
|
},
|
|
4837
|
-
px:
|
|
4838
|
-
py:
|
|
4867
|
+
px: 3,
|
|
4868
|
+
py: 2,
|
|
4839
4869
|
borderRadius: "md",
|
|
4840
4870
|
height: "auto",
|
|
4841
4871
|
minHeight: "auto",
|
|
@@ -4877,6 +4907,8 @@ function SuggestionChips(_ref) {
|
|
|
4877
4907
|
fontSize: "sm",
|
|
4878
4908
|
fontWeight: "normal",
|
|
4879
4909
|
lineHeight: "tight",
|
|
4910
|
+
_hover: "none",
|
|
4911
|
+
_active: "none",
|
|
4880
4912
|
children: s.text
|
|
4881
4913
|
}, s.id);
|
|
4882
4914
|
})
|
|
@@ -4954,7 +4986,7 @@ function MessageInput(_ref) {
|
|
|
4954
4986
|
onKeyDown: function onKeyDown(e) {
|
|
4955
4987
|
return e.key === "Enter" && handleSend();
|
|
4956
4988
|
},
|
|
4957
|
-
placeholder: "
|
|
4989
|
+
placeholder: "Send a message",
|
|
4958
4990
|
bg: "transparent",
|
|
4959
4991
|
color: "white",
|
|
4960
4992
|
border: "none",
|
|
@@ -4976,7 +5008,6 @@ function MessageInput(_ref) {
|
|
|
4976
5008
|
fontSize: "sm"
|
|
4977
5009
|
})
|
|
4978
5010
|
}), jsxs(HStack, {
|
|
4979
|
-
p: 2,
|
|
4980
5011
|
align: "center",
|
|
4981
5012
|
w: "full",
|
|
4982
5013
|
children: [user.logoUrl && jsx(HStack, {
|
|
@@ -4994,7 +5025,7 @@ function MessageInput(_ref) {
|
|
|
4994
5025
|
onClick: handleSend,
|
|
4995
5026
|
isDisabled: !input.trim() || isLoading,
|
|
4996
5027
|
isLoading: isLoading,
|
|
4997
|
-
size: "
|
|
5028
|
+
size: "md",
|
|
4998
5029
|
bg: !input.trim() || isLoading ? "#262626" : "#2BCFA1",
|
|
4999
5030
|
_hover: {
|
|
5000
5031
|
bg: !input.trim() || isLoading ? "#262626" : "#22B890"
|
|
@@ -5005,7 +5036,7 @@ function MessageInput(_ref) {
|
|
|
5005
5036
|
},
|
|
5006
5037
|
borderRadius: "lg",
|
|
5007
5038
|
border: "none",
|
|
5008
|
-
children: jsx(
|
|
5039
|
+
children: jsx(SendMd, {
|
|
5009
5040
|
color: !input.trim() || isLoading ? "#525252" : "white"
|
|
5010
5041
|
})
|
|
5011
5042
|
})]
|
|
@@ -5024,13 +5055,9 @@ if (typeof document !== "undefined" && !document.getElementById("typing-indicato
|
|
|
5024
5055
|
document.head.appendChild(styleElement);
|
|
5025
5056
|
}
|
|
5026
5057
|
var TypingIndicator = /*#__PURE__*/React__default.memo(function TypingIndicator(_ref) {
|
|
5027
|
-
var isVisible = _ref.isVisible
|
|
5028
|
-
_ref$size = _ref.size,
|
|
5029
|
-
size = _ref$size === void 0 ? "normal" : _ref$size,
|
|
5030
|
-
_ref$state = _ref.state,
|
|
5031
|
-
state = _ref$state === void 0 ? "typing" : _ref$state;
|
|
5058
|
+
var isVisible = _ref.isVisible;
|
|
5032
5059
|
var getDotStyle = React__default.useMemo(function () {
|
|
5033
|
-
return function (index, delay
|
|
5060
|
+
return function (index, delay) {
|
|
5034
5061
|
var animationDelay = "".concat(index * 0.2 + delay * 0.5, "s");
|
|
5035
5062
|
return {
|
|
5036
5063
|
animation: "typingDotBounce 1.6s ease-in-out infinite",
|
|
@@ -5063,85 +5090,40 @@ var TypingIndicator = /*#__PURE__*/React__default.memo(function TypingIndicator(
|
|
|
5063
5090
|
};
|
|
5064
5091
|
}, [isVisible]);
|
|
5065
5092
|
if (!shouldRender) return null;
|
|
5066
|
-
var isSmall = size === "small";
|
|
5067
|
-
var dotSize = isSmall ? "6px" : "8px";
|
|
5068
|
-
var smallDotSize = isSmall ? "5px" : "6px";
|
|
5069
|
-
var containerPadding = isSmall ? "8px 12px" : "12px 16px";
|
|
5070
|
-
var smallContainerPadding = isSmall ? "6px 10px" : "8px 12px";
|
|
5071
|
-
var isCompleted = state === "completed";
|
|
5072
5093
|
var TypingDots = React__default.useMemo(function () {
|
|
5073
5094
|
return /*#__PURE__*/React__default.memo(function (_ref2) {
|
|
5074
5095
|
var _ref2$delay = _ref2.delay,
|
|
5075
|
-
delay = _ref2$delay === void 0 ? 0 : _ref2$delay
|
|
5076
|
-
_ref2$small = _ref2.small,
|
|
5077
|
-
small = _ref2$small === void 0 ? false : _ref2$small;
|
|
5096
|
+
delay = _ref2$delay === void 0 ? 0 : _ref2$delay;
|
|
5078
5097
|
return jsx(HStack, {
|
|
5079
|
-
gap:
|
|
5098
|
+
gap: "4px",
|
|
5080
5099
|
justify: "center",
|
|
5081
5100
|
children: [0, 1, 2].map(function (index) {
|
|
5082
5101
|
return jsx(Box, {
|
|
5083
|
-
|
|
5084
|
-
h: small ? smallDotSize : dotSize,
|
|
5102
|
+
boxSize: "8px",
|
|
5085
5103
|
bg: "#2BCFA1",
|
|
5086
5104
|
borderRadius: "full",
|
|
5087
|
-
style: getDotStyle(index, delay
|
|
5105
|
+
style: getDotStyle(index, delay)
|
|
5088
5106
|
}, index);
|
|
5089
5107
|
})
|
|
5090
5108
|
});
|
|
5091
5109
|
});
|
|
5092
|
-
}, [getDotStyle
|
|
5093
|
-
if (isCompleted) {
|
|
5094
|
-
return jsx(Box, {
|
|
5095
|
-
alignSelf: "flex-start",
|
|
5096
|
-
maxW: "80%",
|
|
5097
|
-
mb: isSmall ? 2 : 4,
|
|
5098
|
-
style: containerAnimationStyle,
|
|
5099
|
-
children: jsx(Box, {
|
|
5100
|
-
bg: "rgba(43, 207, 161, 0.15)",
|
|
5101
|
-
p: smallContainerPadding,
|
|
5102
|
-
borderRadius: "16px",
|
|
5103
|
-
w: "fit-content",
|
|
5104
|
-
border: "1px solid rgba(43, 207, 161, 0.2)",
|
|
5105
|
-
backdropFilter: "blur(10px)",
|
|
5106
|
-
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
|
|
5107
|
-
children: jsx(TypingDots, {
|
|
5108
|
-
delay: 0.1,
|
|
5109
|
-
small: true
|
|
5110
|
-
})
|
|
5111
|
-
})
|
|
5112
|
-
});
|
|
5113
|
-
}
|
|
5110
|
+
}, [getDotStyle]);
|
|
5114
5111
|
return jsx(Box, {
|
|
5115
5112
|
alignSelf: "flex-start",
|
|
5116
5113
|
maxW: "80%",
|
|
5117
|
-
mb:
|
|
5114
|
+
mb: 2,
|
|
5118
5115
|
style: containerAnimationStyle,
|
|
5119
|
-
children:
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
|
|
5131
|
-
children: jsx(TypingDots, {})
|
|
5132
|
-
}), jsx(Box, {
|
|
5133
|
-
bg: "rgba(34, 197, 94, 0.2)",
|
|
5134
|
-
p: smallContainerPadding,
|
|
5135
|
-
borderRadius: "16px",
|
|
5136
|
-
w: "fit-content",
|
|
5137
|
-
border: "1px solid rgba(34, 197, 94, 0.3)",
|
|
5138
|
-
backdropFilter: "blur(10px)",
|
|
5139
|
-
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
|
|
5140
|
-
children: jsx(TypingDots, {
|
|
5141
|
-
delay: 0.1,
|
|
5142
|
-
small: true
|
|
5143
|
-
})
|
|
5144
|
-
})]
|
|
5116
|
+
children: jsx(Box, {
|
|
5117
|
+
bg: "rgba(34, 197, 94, 0.2)",
|
|
5118
|
+
p: "10px 14px",
|
|
5119
|
+
borderRadius: "16px",
|
|
5120
|
+
w: "fit-content",
|
|
5121
|
+
border: "1px solid rgba(34, 197, 94, 0.3)",
|
|
5122
|
+
backdropFilter: "blur(10px)",
|
|
5123
|
+
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
|
|
5124
|
+
children: jsx(TypingDots, {
|
|
5125
|
+
delay: 0.1
|
|
5126
|
+
})
|
|
5145
5127
|
})
|
|
5146
5128
|
});
|
|
5147
5129
|
});
|
|
@@ -41625,38 +41607,36 @@ function GradualMessageDisplay(_ref) {
|
|
|
41625
41607
|
flexDirection: "column",
|
|
41626
41608
|
gap: 2,
|
|
41627
41609
|
children: [(phase === "typing" || phase === "revealing") && jsx(TypingIndicator, {
|
|
41628
|
-
isVisible: true
|
|
41629
|
-
size: "normal",
|
|
41630
|
-
state: phase === "typing" ? "typing" : "completed"
|
|
41610
|
+
isVisible: true
|
|
41631
41611
|
}), (phase === "revealing" || phase === "complete") && jsx(Box, {
|
|
41632
41612
|
position: "relative",
|
|
41633
41613
|
borderRadius: "12px",
|
|
41634
41614
|
_before: {
|
|
41635
41615
|
content: '""',
|
|
41636
|
-
position:
|
|
41616
|
+
position: "absolute",
|
|
41637
41617
|
zIndex: -1,
|
|
41638
|
-
width:
|
|
41639
|
-
height:
|
|
41618
|
+
width: "calc(100% + 1px)",
|
|
41619
|
+
height: "calc(100% + 1px)",
|
|
41640
41620
|
top: 0,
|
|
41641
41621
|
left: 0,
|
|
41642
|
-
borderRadius:
|
|
41643
|
-
backgroundSize:
|
|
41622
|
+
borderRadius: "12px",
|
|
41623
|
+
backgroundSize: "400% 400%",
|
|
41644
41624
|
opacity: phase === "revealing" ? 1 : 0,
|
|
41645
|
-
transition:
|
|
41625
|
+
transition: "opacity 0.3s ease"
|
|
41646
41626
|
},
|
|
41647
41627
|
_after: {
|
|
41648
41628
|
content: '""',
|
|
41649
|
-
position:
|
|
41629
|
+
position: "absolute",
|
|
41650
41630
|
zIndex: -1,
|
|
41651
|
-
width:
|
|
41652
|
-
height:
|
|
41631
|
+
width: "calc(100% + 1px)",
|
|
41632
|
+
height: "calc(100% + 1px)",
|
|
41653
41633
|
top: 0,
|
|
41654
41634
|
left: 0,
|
|
41655
|
-
borderRadius:
|
|
41656
|
-
backgroundSize:
|
|
41635
|
+
borderRadius: "12px",
|
|
41636
|
+
backgroundSize: "400% 400%",
|
|
41657
41637
|
opacity: phase === "revealing" ? 1 : 0,
|
|
41658
|
-
transition:
|
|
41659
|
-
filter:
|
|
41638
|
+
transition: "opacity 0.3s ease",
|
|
41639
|
+
filter: "blur(100px)"
|
|
41660
41640
|
},
|
|
41661
41641
|
children: jsx(Box, {
|
|
41662
41642
|
borderRadius: "11px",
|
|
@@ -65762,8 +65742,7 @@ function MessageList(_ref) {
|
|
|
65762
65742
|
clearProcessingMessageId: clearProcessingMessageId
|
|
65763
65743
|
}, message.id);
|
|
65764
65744
|
}), isTyping && !currentlyDisplayingMessage && jsx(TypingIndicator, {
|
|
65765
|
-
isVisible: true
|
|
65766
|
-
size: "normal"
|
|
65745
|
+
isVisible: true
|
|
65767
65746
|
})]
|
|
65768
65747
|
})
|
|
65769
65748
|
})
|
|
@@ -65864,7 +65843,9 @@ function HelloPage(_ref) {
|
|
|
65864
65843
|
var userName = _ref.userName,
|
|
65865
65844
|
onStartChat = _ref.onStartChat,
|
|
65866
65845
|
_ref$isStartingChat = _ref.isStartingChat,
|
|
65867
|
-
isStartingChat = _ref$isStartingChat === void 0 ? false : _ref$isStartingChat
|
|
65846
|
+
isStartingChat = _ref$isStartingChat === void 0 ? false : _ref$isStartingChat,
|
|
65847
|
+
LinkComponent = _ref.LinkComponent;
|
|
65848
|
+
var hasRouterLink = Boolean(LinkComponent);
|
|
65868
65849
|
var navigationItems = [{
|
|
65869
65850
|
label: "Documentation",
|
|
65870
65851
|
href: "https://droplinked.gitbook.io/droplinked-store-front-help-center",
|
|
@@ -65873,10 +65854,6 @@ function HelloPage(_ref) {
|
|
|
65873
65854
|
label: "Contact Us",
|
|
65874
65855
|
href: "/contact-us",
|
|
65875
65856
|
isExternal: false
|
|
65876
|
-
}, {
|
|
65877
|
-
label: "About Us",
|
|
65878
|
-
href: "/about",
|
|
65879
|
-
isExternal: false
|
|
65880
65857
|
}, {
|
|
65881
65858
|
label: "Changelog",
|
|
65882
65859
|
href: "/analytics/changelog",
|
|
@@ -65890,114 +65867,142 @@ function HelloPage(_ref) {
|
|
|
65890
65867
|
href: "https://www.youtube.com/watch?v=fuZLWeku6fw&list=PLwoJzeXHsBW6bAHmPz04RtWvpg_09-vqi",
|
|
65891
65868
|
isExternal: true
|
|
65892
65869
|
}];
|
|
65893
|
-
return jsx(
|
|
65870
|
+
return jsx(VStack, {
|
|
65894
65871
|
w: "full",
|
|
65895
|
-
h: "
|
|
65896
|
-
|
|
65897
|
-
|
|
65898
|
-
|
|
65899
|
-
children:
|
|
65900
|
-
|
|
65901
|
-
|
|
65902
|
-
|
|
65903
|
-
|
|
65904
|
-
|
|
65905
|
-
|
|
65906
|
-
|
|
65907
|
-
|
|
65908
|
-
|
|
65909
|
-
|
|
65910
|
-
|
|
65911
|
-
|
|
65912
|
-
|
|
65913
|
-
|
|
65914
|
-
|
|
65915
|
-
|
|
65916
|
-
|
|
65917
|
-
|
|
65918
|
-
|
|
65919
|
-
|
|
65920
|
-
|
|
65921
|
-
|
|
65922
|
-
|
|
65923
|
-
|
|
65924
|
-
|
|
65925
|
-
|
|
65926
|
-
|
|
65927
|
-
|
|
65928
|
-
|
|
65929
|
-
|
|
65930
|
-
|
|
65931
|
-
|
|
65932
|
-
|
|
65933
|
-
|
|
65934
|
-
|
|
65935
|
-
|
|
65936
|
-
|
|
65937
|
-
|
|
65938
|
-
|
|
65939
|
-
|
|
65940
|
-
|
|
65941
|
-
|
|
65942
|
-
|
|
65872
|
+
h: "full",
|
|
65873
|
+
minH: 0,
|
|
65874
|
+
spacing: 0,
|
|
65875
|
+
flex: 1,
|
|
65876
|
+
children: jsx(Box, {
|
|
65877
|
+
flex: 1,
|
|
65878
|
+
minH: 0,
|
|
65879
|
+
w: "full",
|
|
65880
|
+
overflowY: "auto",
|
|
65881
|
+
overflowX: "hidden",
|
|
65882
|
+
p: 4,
|
|
65883
|
+
css: {
|
|
65884
|
+
"&::-webkit-scrollbar": {
|
|
65885
|
+
width: "6px"
|
|
65886
|
+
},
|
|
65887
|
+
"&::-webkit-scrollbar-track": {
|
|
65888
|
+
background: "rgba(255, 255, 255, 0.1)",
|
|
65889
|
+
borderRadius: "3px"
|
|
65890
|
+
},
|
|
65891
|
+
"&::-webkit-scrollbar-thumb": {
|
|
65892
|
+
background: "rgba(255, 255, 255, 0.3)",
|
|
65893
|
+
borderRadius: "3px"
|
|
65894
|
+
},
|
|
65895
|
+
"&::-webkit-scrollbar-thumb:hover": {
|
|
65896
|
+
background: "rgba(255, 255, 255, 0.5)"
|
|
65897
|
+
},
|
|
65898
|
+
scrollBehavior: "smooth",
|
|
65899
|
+
WebkitOverflowScrolling: "touch"
|
|
65900
|
+
},
|
|
65901
|
+
children: jsxs(VStack, {
|
|
65902
|
+
align: "stretch",
|
|
65903
|
+
justify: "flex-end",
|
|
65904
|
+
gap: 4,
|
|
65905
|
+
minH: "full",
|
|
65906
|
+
children: [jsxs(Flex, {
|
|
65907
|
+
flexDirection: "column",
|
|
65908
|
+
justifyContent: "flex-end",
|
|
65909
|
+
flexShrink: 0,
|
|
65910
|
+
paddingTop: "48px",
|
|
65911
|
+
children: [jsx(Text, {
|
|
65912
|
+
color: "#2BCFA1",
|
|
65913
|
+
fontSize: "3xl",
|
|
65914
|
+
fontWeight: "bold",
|
|
65915
|
+
lineHeight: "40px",
|
|
65916
|
+
children: "Hi ".concat(userName ? userName : "", " \uD83D\uDC4B\uD83C\uDFFB")
|
|
65917
|
+
}), jsx(Text, {
|
|
65918
|
+
color: "white",
|
|
65919
|
+
fontSize: "3xl",
|
|
65920
|
+
fontWeight: "bold",
|
|
65921
|
+
lineHeight: "40px",
|
|
65922
|
+
children: "How can I help?"
|
|
65923
|
+
})]
|
|
65924
|
+
}), jsxs(RuledGrid, {
|
|
65925
|
+
columns: 1,
|
|
65926
|
+
borderRadius: 16,
|
|
65927
|
+
bg: "#222",
|
|
65928
|
+
overflow: "hidden",
|
|
65929
|
+
children: [jsxs(VStack, {
|
|
65943
65930
|
align: "stretch",
|
|
65944
|
-
|
|
65945
|
-
|
|
65946
|
-
|
|
65947
|
-
|
|
65948
|
-
|
|
65949
|
-
|
|
65950
|
-
|
|
65951
|
-
|
|
65952
|
-
|
|
65953
|
-
|
|
65954
|
-
|
|
65955
|
-
|
|
65931
|
+
gap: 3,
|
|
65932
|
+
p: 4,
|
|
65933
|
+
children: [jsx(Box, {
|
|
65934
|
+
p: 2.5,
|
|
65935
|
+
w: "fit-content",
|
|
65936
|
+
bg: "rgba(43, 207, 161, 0.1)",
|
|
65937
|
+
border: "1px solid",
|
|
65938
|
+
borderColor: "rgba(43, 207, 161, 0.1)",
|
|
65939
|
+
borderRadius: "lg",
|
|
65940
|
+
children: jsx(AIMd, {
|
|
65941
|
+
color: "#2BCFA1"
|
|
65942
|
+
})
|
|
65943
|
+
}), jsxs(VStack, {
|
|
65944
|
+
gap: 0.5,
|
|
65945
|
+
align: "stretch",
|
|
65946
|
+
children: [jsx(Text, {
|
|
65947
|
+
color: "white",
|
|
65948
|
+
fontSize: "base",
|
|
65949
|
+
fontWeight: "medium",
|
|
65950
|
+
lineHeight: "normal",
|
|
65951
|
+
children: "AI Merchant Assistant"
|
|
65952
|
+
}), jsx(Text, {
|
|
65953
|
+
color: "#737373",
|
|
65954
|
+
fontSize: "sm",
|
|
65955
|
+
fontWeight: "normal",
|
|
65956
|
+
lineHeight: "tight",
|
|
65957
|
+
children: "I can help with your shop setup, payment and more"
|
|
65958
|
+
})]
|
|
65956
65959
|
})]
|
|
65957
|
-
})
|
|
65958
|
-
|
|
65959
|
-
|
|
65960
|
-
|
|
65961
|
-
|
|
65962
|
-
|
|
65963
|
-
|
|
65964
|
-
|
|
65965
|
-
},
|
|
65966
|
-
fontSize: 14,
|
|
65967
|
-
fontWeight: 500,
|
|
65968
|
-
color: "#2BCFA1",
|
|
65969
|
-
onClick: onStartChat,
|
|
65970
|
-
isLoading: isStartingChat,
|
|
65971
|
-
isDisabled: isStartingChat,
|
|
65972
|
-
_disabled: {
|
|
65973
|
-
color: "#525252",
|
|
65974
|
-
cursor: "not-allowed"
|
|
65975
|
-
},
|
|
65976
|
-
children: "Start Chat"
|
|
65977
|
-
})]
|
|
65978
|
-
}), jsx(RuledGrid, {
|
|
65979
|
-
columns: 1,
|
|
65980
|
-
borderRadius: 16,
|
|
65981
|
-
bg: "#222",
|
|
65982
|
-
children: navigationItems.map(function (item, index) {
|
|
65983
|
-
return jsxs(Link, {
|
|
65984
|
-
display: "flex",
|
|
65985
|
-
justifyContent: "space-between",
|
|
65986
|
-
alignItems: "center",
|
|
65987
|
-
gap: 4,
|
|
65988
|
-
padding: "12px 16px",
|
|
65960
|
+
}), jsx(Button, {
|
|
65961
|
+
w: "full",
|
|
65962
|
+
padding: "10px 14px",
|
|
65963
|
+
borderRadius: 0,
|
|
65964
|
+
variant: "ghost",
|
|
65965
|
+
_hover: {
|
|
65966
|
+
bg: "rgba(43, 207, 161, 0.1)"
|
|
65967
|
+
},
|
|
65989
65968
|
fontSize: 14,
|
|
65990
65969
|
fontWeight: 500,
|
|
65991
|
-
color: "
|
|
65992
|
-
|
|
65993
|
-
|
|
65994
|
-
|
|
65995
|
-
|
|
65996
|
-
color: "
|
|
65997
|
-
|
|
65998
|
-
|
|
65999
|
-
|
|
66000
|
-
|
|
65970
|
+
color: "#2BCFA1",
|
|
65971
|
+
onClick: onStartChat,
|
|
65972
|
+
isLoading: isStartingChat,
|
|
65973
|
+
isDisabled: isStartingChat,
|
|
65974
|
+
_disabled: {
|
|
65975
|
+
color: "#525252",
|
|
65976
|
+
cursor: "not-allowed"
|
|
65977
|
+
},
|
|
65978
|
+
children: "Start Chat"
|
|
65979
|
+
})]
|
|
65980
|
+
}), jsx(RuledGrid, {
|
|
65981
|
+
columns: 1,
|
|
65982
|
+
borderRadius: 16,
|
|
65983
|
+
bg: "#222",
|
|
65984
|
+
children: navigationItems.map(function (item, index) {
|
|
65985
|
+
return jsxs(Link, {
|
|
65986
|
+
display: "flex",
|
|
65987
|
+
justifyContent: "space-between",
|
|
65988
|
+
alignItems: "center",
|
|
65989
|
+
gap: 4,
|
|
65990
|
+
padding: "12px 16px",
|
|
65991
|
+
fontSize: 14,
|
|
65992
|
+
fontWeight: 500,
|
|
65993
|
+
color: "white",
|
|
65994
|
+
textDecoration: "none",
|
|
65995
|
+
as: !item.isExternal && hasRouterLink ? LinkComponent : undefined,
|
|
65996
|
+
to: !item.isExternal && hasRouterLink ? item.href : undefined,
|
|
65997
|
+
href: item.isExternal || !hasRouterLink ? item.href : undefined,
|
|
65998
|
+
isExternal: item.isExternal,
|
|
65999
|
+
children: [item.label, jsx(ExternalarrowMd, {
|
|
66000
|
+
color: "white"
|
|
66001
|
+
})]
|
|
66002
|
+
}, index);
|
|
66003
|
+
})
|
|
66004
|
+
})]
|
|
66005
|
+
})
|
|
66001
66006
|
})
|
|
66002
66007
|
});
|
|
66003
66008
|
}
|
|
@@ -66024,6 +66029,7 @@ function ChatDrawer(_ref) {
|
|
|
66024
66029
|
flexDirection: "column",
|
|
66025
66030
|
position: "relative",
|
|
66026
66031
|
overflow: "hidden",
|
|
66032
|
+
minH: 0,
|
|
66027
66033
|
maxW: {
|
|
66028
66034
|
base: "100%",
|
|
66029
66035
|
md: "420px"
|
|
@@ -66173,24 +66179,26 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(_ref2, _ref) {
|
|
|
66173
66179
|
children = _ref2.children,
|
|
66174
66180
|
disabled = _ref2.disabled;
|
|
66175
66181
|
_ref2.portalled;
|
|
66176
|
-
var content = _ref2.content
|
|
66177
|
-
|
|
66178
|
-
placement = _ref2.placement,
|
|
66182
|
+
var content = _ref2.content;
|
|
66183
|
+
_ref2.portalRef;
|
|
66184
|
+
var placement = _ref2.placement,
|
|
66179
66185
|
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
66180
66186
|
if (disabled) return jsx(Fragment, {
|
|
66181
66187
|
children: children
|
|
66182
66188
|
});
|
|
66183
66189
|
return jsx(Tooltip$1, _objectSpread2(_objectSpread2({
|
|
66190
|
+
border: "1px solid",
|
|
66191
|
+
borderColor: "#292929",
|
|
66192
|
+
borderRadius: "6px",
|
|
66193
|
+
padding: "4px 16px",
|
|
66194
|
+
backgroundColor: "#1c1c1c",
|
|
66195
|
+
color: "white",
|
|
66196
|
+
placement: placement !== null && placement !== void 0 ? placement : "auto",
|
|
66184
66197
|
label: content,
|
|
66185
66198
|
hasArrow: !!showArrow,
|
|
66186
|
-
|
|
66187
|
-
containerRef: portalRef
|
|
66188
|
-
},
|
|
66189
|
-
placement: placement
|
|
66199
|
+
shouldWrapChildren: true
|
|
66190
66200
|
}, rest), {}, {
|
|
66191
|
-
children:
|
|
66192
|
-
children: children
|
|
66193
|
-
})
|
|
66201
|
+
children: children
|
|
66194
66202
|
}));
|
|
66195
66203
|
});
|
|
66196
66204
|
|
|
@@ -66433,6 +66441,9 @@ function Chatbot(_ref) {
|
|
|
66433
66441
|
flex: 1,
|
|
66434
66442
|
overflow: "hidden",
|
|
66435
66443
|
p: 0,
|
|
66444
|
+
minH: 0,
|
|
66445
|
+
display: "flex",
|
|
66446
|
+
flexDirection: "column",
|
|
66436
66447
|
children: currentView === "hello" ? jsx(HelloPage, {
|
|
66437
66448
|
userName: user === null || user === void 0 ? void 0 : user.name,
|
|
66438
66449
|
onStartChat: handleStartChat,
|