droplinked-chatbot-next 1.0.6 → 1.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.
- package/dist/components/EmbeddedChatButton.d.ts +2 -1
- package/dist/index.esm.js +10 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -66277,7 +66277,8 @@ function ChatHeader(_ref) {
|
|
|
66277
66277
|
}
|
|
66278
66278
|
|
|
66279
66279
|
function EmbeddedChatButton(_ref) {
|
|
66280
|
-
var
|
|
66280
|
+
var showIconOnly = _ref.showIconOnly,
|
|
66281
|
+
onClick = _ref.onClick;
|
|
66281
66282
|
return jsxRuntime.jsxs(Chakra.Button, {
|
|
66282
66283
|
onClick: onClick,
|
|
66283
66284
|
bg: "transparent",
|
|
@@ -66310,7 +66311,7 @@ function EmbeddedChatButton(_ref) {
|
|
|
66310
66311
|
_focusVisible: {
|
|
66311
66312
|
boxShadow: "0 0 0 2px rgba(43, 207, 161, 0.3)"
|
|
66312
66313
|
},
|
|
66313
|
-
children: ["AI Assistant", jsxRuntime.jsx(Chakra.Box, {
|
|
66314
|
+
children: [!showIconOnly && "AI Assistant", jsxRuntime.jsx(Chakra.Box, {
|
|
66314
66315
|
position: "absolute",
|
|
66315
66316
|
bottom: 0,
|
|
66316
66317
|
left: 0,
|
|
@@ -66544,6 +66545,7 @@ function FloatingChatButton(_ref) {
|
|
|
66544
66545
|
}
|
|
66545
66546
|
|
|
66546
66547
|
function Chatbot(_ref) {
|
|
66548
|
+
var _useBreakpointValue;
|
|
66547
66549
|
var apiBaseUrl = _ref.apiBaseUrl,
|
|
66548
66550
|
apiKey = _ref.apiKey,
|
|
66549
66551
|
_ref$buttonType = _ref.buttonType,
|
|
@@ -66574,10 +66576,15 @@ function Chatbot(_ref) {
|
|
|
66574
66576
|
handleSendMessage = _useChatbot.handleSendMessage,
|
|
66575
66577
|
handleRetryLastMessage = _useChatbot.handleRetryLastMessage,
|
|
66576
66578
|
clearProcessingMessageId = _useChatbot.clearProcessingMessageId;
|
|
66579
|
+
var showIconOnly = (_useBreakpointValue = Chakra.useBreakpointValue({
|
|
66580
|
+
base: true,
|
|
66581
|
+
md: false
|
|
66582
|
+
})) !== null && _useBreakpointValue !== void 0 ? _useBreakpointValue : false;
|
|
66577
66583
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
66578
66584
|
children: [buttonType === "floating" ? jsxRuntime.jsx(FloatingChatButton, {
|
|
66579
66585
|
onClick: onOpen
|
|
66580
66586
|
}) : jsxRuntime.jsx(EmbeddedChatButton, {
|
|
66587
|
+
showIconOnly: showIconOnly,
|
|
66581
66588
|
onClick: onOpen
|
|
66582
66589
|
}), jsxRuntime.jsxs(ChatDrawer, {
|
|
66583
66590
|
isOpen: isOpen,
|