Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@squiz/chat-ui

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@squiz/chat-ui - npm Package Compare versions

Comparing version 1.8.0 to 1.8.1

6

CHANGELOG.md
# @squiz/chat-ui
## 1.8.1
### Patch Changes
- 4ab6e86: Added data-id attributes to ChatUI Components
## 1.8.0

@@ -4,0 +10,0 @@

13

dist/components/ChatConversation/ChatConversation.js

@@ -37,2 +37,3 @@ "use strict";

const conversationFrameRef = (0, react_1.useRef)(null);
const labelMessage = (message) => `message from ${message.sender.toLowerCase() == 'user' ? 'you' : 'chat ai'}`;
(0, react_1.useEffect)(() => {

@@ -48,3 +49,3 @@ const scroller = conversationFrameRef.current;

}, [conversation, isWaitingResponse]);
return (react_1.default.createElement("div", { className: "squizChatUIConversation" },
return (react_1.default.createElement("div", { className: "squizChatUIConversation", "data-id": "Chatbot Conversation UI" },
react_1.default.createElement("div", { ref: conversationFrameRef, className: "squizChatUIConversation__scroller" },

@@ -60,11 +61,11 @@ react_1.default.createElement("ol", { "aria-live": "polite", "aria-label": "Chatbot conversation", className: "squizChatUIConversation__messages" },

onNewChatConfirm(true);
}, className: "squizChatUINewChatRequest__button" }, "Yes"),
}, className: "squizChatUINewChatRequest__button", "data-id": "Chatbot New Chat Request Yes" }, "Yes"),
react_1.default.createElement("button", { type: "button", onClick: () => {
onNewChatConfirm(false);
}, className: "squizChatUINewChatRequest__button" }, "No"))),
isControlMessage && controlMessage.type === 'newChatBreak' && (react_1.default.createElement("li", { className: "squizChatUINewChatBreak" },
}, className: "squizChatUINewChatRequest__button", "data-id": "Chatbot New Chat Request No" }, "No"))),
isControlMessage && controlMessage.type === 'newChatBreak' && (react_1.default.createElement("li", { className: "squizChatUINewChatBreak", "data-id": "New Chat Break" },
react_1.default.createElement("div", { className: "squizChatUINewChatBreak__divider" }),
react_1.default.createElement("div", { className: "squizChatUINewChatBreak__text" }, "New chat"),
react_1.default.createElement("div", { className: "squizChatUINewChatBreak__divider" }))),
!isControlMessage && (react_1.default.createElement("li", { "aria-label": `message from ${message.sender.toLowerCase() == 'user' ? 'you' : 'chat ai'}`, className: `squizChatUIMessage squizChatUIMessage--${message.sender.toLowerCase()} ${message.isError ? 'squizChatUIMessage--error' : ''}` },
!isControlMessage && (react_1.default.createElement("li", { "aria-label": labelMessage(message), className: `squizChatUIMessage squizChatUIMessage--${message.sender.toLowerCase()} ${message.isError ? 'squizChatUIMessage--error' : ''}`, "data-id": labelMessage(message) },
react_1.default.createElement("div", { className: "squizChatUIMessage__inner" },

@@ -85,2 +86,2 @@ message.sender.toLowerCase() !== 'user' && (react_1.default.createElement("div", { className: "squizChatUIMessage__icon" },

exports.ChatConversation = ChatConversation;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2hhdENvbnZlcnNhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0NoYXRDb252ZXJzYXRpb24vQ2hhdENvbnZlcnNhdGlvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwrQ0FBaUQ7QUFFakQseURBQXNEO0FBQ3RELDZEQUEwRDtBQUMxRCw4Q0FBc0I7QUFDdEIsZ0dBQTZGO0FBV3RGLE1BQU0sZ0JBQWdCLEdBQUcsQ0FBQyxFQUMvQixhQUFhLEVBQ2IsWUFBWSxHQUFHLEtBQUssRUFDcEIseUJBQXlCLEVBQ3pCLGtCQUFrQixFQUNsQixZQUFZLEVBQ1osaUJBQWlCLEdBQUcsS0FBSyxFQUN6QixnQkFBZ0IsR0FDTSxFQUFFLEVBQUU7SUFDMUIsTUFBTSxvQkFBb0IsR0FBRyxJQUFB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wZScpO1xuICAgICAgICAgICAgY29uc3QgY29udHJvbE1lc3NhZ2UgPSBjb252ZXJzYXRpb25JdGVtIGFzIENvbnRyb2xNZXNzYWdlO1xuICAgICAgICAgICAgY29uc3QgbWVzc2FnZSA9IGNvbnZlcnNhdGlvbkl0ZW0gYXMgTWVzc2FnZTtcblxuICAgICAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgICAgPFJlYWN0LkZyYWdtZW50IGtleT17bWVzc2FnZS5pZH0+XG4gICAgICAgICAgICAgICAge2lzQ29udHJvbE1lc3NhZ2UgJiYgY29udHJvbE1lc3NhZ2UudHlwZSA9PT0gJ25ld0NoYXRSZXF1ZXN0JyAmJiAoXG4gICAgICAgICAgICAgICAgICA8bGkgY2xhc3NOYW1lPVwic3F1aXpDaGF0VUlOZXdDaGF0UmVxdWVzdFwiPlxuICAgICAgICAgICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgICAgICAgb25DbGljaz17KCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgb25OZXdDaGF0Q29uZmlybSh0cnVlKTtcbiAgICAgICAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICAgICAgICAgIGNsYXNzTmFtZT1cInNxdWl6Q2hhdFVJTmV3Q2hhdFJlcXVlc3RfX2J1dHRvblwiXG4gICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICBZZXNcbiAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XG4gICAgICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgICBvbkNsaWNrPXsoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBvbk5ld0NoYXRDb25maXJtKGZhbHNlKTtcbiAgICAgICAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICAgICAgICAgIGNsYXNzTmFtZT1cInNxdWl6Q2hhdFVJTmV3Q2hhdFJlcXVlc3RfX2J1dHRvblwiXG4gICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICBOb1xuICAgICAgICAgICAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgICAgICAgICAgIDwvbGk+XG4gICAgICAgICAgICAgICAgKX1cblxuICAgICAgICAgICAgICAgIHtpc0NvbnRyb2xNZXNzYWdlICYmIGNvbnRyb2xNZXNzYWdlLnR5cGUgPT09ICduZXdDaGF0QnJlYWsnICYmIChcbiAgICAgICAgICAgICAgICAgIDxsaSBjbGFzc05hbWU9XCJzcXVpekNoYXRVSU5ld0NoYXRCcmVha1wiPlxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT1cInNxdWl6Q2hhdFVJTmV3Q2hhdEJyZWFrX19kaXZpZGVyXCIgLz5cbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzc05hbWU9XCJzcXVpekNoYXRVSU5ld0NoYXRCcmVha19fdGV4dFwiPk5ldyBjaGF0PC9kaXY+XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3NOYW1lPVwic3F1aXpDaGF0VUlOZXdDaGF0QnJlYWtfX2RpdmlkZXJcIiAvPlxuICAgICAgICAgICAgICAgICAgPC9saT5cbiAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgIHshaXNDb250cm9sTWVzc2FnZSAmJiAoXG4gICAgICAgICAgICAgICAgICA8bGlcbiAgICAgICAgICAgICAgICAgICAgYXJpYS1sYWJlbD17YG1lc3NhZ2UgZnJvbSAke21lc3NhZ2Uuc2VuZGVyLnRvTG93ZXJDYXNlKCkgPT0gJ3VzZXInID8gJ3lvdScgOiAnY2hhdCBhaSd9YH1cbiAgICAgICAgICAgICAgICAgICAgY2xhc3NOYW1lPXtgc3F1aXpDaGF0VUlNZXNzYWdlIHNxdWl6Q2hhdFVJTWVzc2FnZS0tJHttZXNzYWdlLnNlbmRlci50b0xvd2VyQ2FzZSgpfSAke21lc3NhZ2UuaXNFcnJvciA/ICdzcXVpekNoYXRVSU1lc3NhZ2UtLWVycm9yJyA6ICcnfWB9XG4gICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3NOYW1lPVwic3F1aXpDaGF0VUlNZXNzYWdlX19pbm5lclwiPlxuICAgICAgICAgICAgICAgICAgICAgIHttZXNzYWdlLnNlbmRlci50b0xvd2VyQ2FzZSgpICE9PSAndXNlcicgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzc05hbWU9XCJzcXVpekNoYXRVSU1lc3NhZ2VfX2ljb25cIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAge3NlcnZlckljb25TcmMgJiYgPGltZyBzcmM9e3NlcnZlckljb25TcmN9IGNsYXNzTmFtZT1cInNxdWl6Q2hhdFVJTWVzc2FnZV9faWNvbi1pbWFnZVwiPjwvaW1nPn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgeyFzZXJ2ZXJJY29uU3JjICYmIDxTdXBwb3J0SWNvbiAvPn1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICAgICAgICAgICAgZGFuZ2Vyb3VzbHlTZXRJbm5lckhUTUw9e3sgX19odG1sOiBwYXJzZUNoYXRib3RSZXNwb25zZShtZXNzYWdlLnRleHQpIH19XG4gICAgICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2BzcXVpekNoYXRVSU1lc3NhZ2VfX2J1YmJsZSBzcXVpekNoYXRVSU1lc3NhZ2VfX2J1YmJsZS0tJHttZXNzYWdlLnNlbmRlci50b0xvd2VyQ2FzZSgpfSAke21lc3NhZ2UuaXNFcnJvciA/ICdzcXVpekNoYXRVSU1lc3NhZ2VfX2J1YmJsZS0tZXJyb3InIDogJyd9YH1cbiAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgIDwvbGk+XG4gICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgPC9SZWFjdC5GcmFnbWVudD5cbiAgICAgICAgICAgICk7XG4gICAgICAgICAgfSl9XG4gICAgICAgICAge2lzV2FpdGluZ1Jlc3BvbnNlICYmIChcbiAgICAgICAgICAgIDxsaVxuICAgICAgICAgICAgICBhcmlhLWxhYmVsPVwid2FpdGluZyByZXNwb25zZVwiXG4gICAgICAgICAgICAgIGtleT1cIndhaXRpbmdcIlxuICAgICAgICAgICAgICBjbGFzc05hbWU9e2BzcXVpekNoYXRVSU1lc3NhZ2Ugc3F1aXpDaGF0VUlNZXNzYWdlLS1mcm9udGVuZGB9XG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgIDxkaXYgY2xhc3NOYW1lPVwic3F1aXpDaGF0VUlNZXNzYWdlX19idWJibGUgc3F1aXpDaGF0VUlNZXNzYWdlX19idWJibGUtLWZyb250ZW5kXCI+4oCi4oCi4oCiPC9kaXY+XG4gICAgICAgICAgICA8L2xpPlxuICAgICAgICAgICl9XG4gICAgICAgICAge2lzRnVsbHNjcmVlbiAmJiBjb252ZXJzYXRpb24ubGVuZ3RoIDw9IDEgJiYgKFxuICAgICAgICAgICAgPGxpIGFyaWEtbGFiZWw9eydtZXNzYWdlIGZyb20gY2hhdCBhaSd9IGNsYXNzTmFtZT1cInNxdWl6Q2hhdFVJTWVzc2FnZV9fZ3JlZXRpbmdcIj5cbiAgICAgICAgICAgICAgPGRpdiBjbGFzc05hbWU9XCJzcXVpekNoYXRVSU1lc3NhZ2VfX2dyZWV0aW5nLWljb25cIj5cbiAgICAgICAgICAgICAgICB7ZnVsbFNjcmVlbkdyZWV0aW5nSWNvblNyYyAmJiAoXG4gICAgICAgICAgICAgICAgICA8aW1nIHN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AgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgICBvbkNsaWNrPXsoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBvbk5ld0NoYXRDb25maXJtKHRydWUpO1xuICAgICAgICAgICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgICAgICAgICAgY2xhc3NOYW1lPVwic3F1aXpDaGF0VUlOZXdDaGF0UmVxdWVzdF9fYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgICBkYXRhLWlkPVwiQ2hhdGJvdCBOZXcgQ2hhdCBSZXF1ZXN0IFllc1wiXG4gICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICBZZXNcbiAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XG4gICAgICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgICBvbkNsaWNrPXsoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBvbk5ld0NoYXRDb25maXJtKGZhbHNlKTtcbiAgICAgICAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICAgICAgICAgIGNsYXNzTmFtZT1cInNxdWl6Q2hhdFVJTmV3Q2hhdFJlcXVlc3RfX2J1dHRvblwiXG4gICAgICAgICAgICAgICAgICAgICAgZGF0YS1pZD1cIkNoYXRib3QgTmV3IENoYXQgUmVxdWVzdCBOb1wiXG4gICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICBOb1xuICAgICAgICAgICAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgICAgICAgICAgIDwvbGk+XG4gICAgICAgICAgICAgICAgKX1cblxuICAgICAgICAgICAgICAgIHtpc0NvbnRyb2xNZXNzYWdlICYmIGNvbnRyb2xNZXNzYWdlLnR5cGUgPT09ICduZXdDaGF0QnJlYWsnICYmIChcb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UoKSAhPT0gJ3VzZXInICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3NOYW1lPVwic3F1aXpDaGF0VUlNZXNzYWdlX19pY29uXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHtzZXJ2ZXJJY29uU3JjICYmIDxpbWcgc3JjPXtzZXJ2ZXJJY29uU3JjfSBjbGFzc05hbWU9XCJzcXVpekNoYXRVSU1lc3NhZ2VfX2ljb24taW1hZ2VcIj48L2ltZz59XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHshc2VydmVySWNvblNyYyAmJiA8U3VwcG9ydEljb24gLz59XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgIDxkaXZcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhbmdlcm91c2x5U2V0SW5uZXJIVE1MPXt7IF9faHRtbDogcGFyc2VDaGF0Ym90UmVzcG9uc2UobWVzc2FnZS50ZXh0KSB9fVxuICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3NOYW1lPXtgc3F1aXpDaGF0VUlNZXNzYWdlX19idWJibGUgc3F1aXpDaGF0VUlNZXNzYWdlX19idWJibGUtLSR7bWVzc2FnZS5zZW5kZXIudG9Mb3dlckNhc2UoKX0gJHttZXNzYWdlLmlzRXJyb3IgPyAnc3F1aXpDaGF0VUlNZXNzYWdlX19idWJibGUtLWVycm9yJyA6ICcnfWB9XG4gICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICA8L2xpPlxuICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgIDwvUmVhY3QuRnJhZ21lbnQ+XG4gICAgICAgICAgICApO1xuICAgICAgICAgIH0pfVxuICAgICAgICAgIHtpc1dhaXRpbmdSZXNwb25zZSAmJiAoXG4gICAgICAgICAgICA8bGlcbiAgICAgICA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gZGFuZ2Vyb3VzbHlTZXRJbm5lckhUTUw9e3sgX19odG1sOiB4c3MoZnVsbFNjcmVlbkdyZWV0aW5nIHx8ICcnKSB9fVxuICAgICAgICAgICAgICAgIGNsYXNzTmFtZT1cInNxdWl6Q2hhdFVJTWVzc2FnZV9fZ3JlZXRpbmctdGV4dFwiXG4gICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICA8L2xpPlxuICAgICAgICAgICl9XG4gICAgICAgIDwvb2w+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0=

@@ -42,3 +42,3 @@ "use strict";

return (react_1.default.createElement("div", { className: "squizChatUIFooter" },
react_1.default.createElement("button", { disabled: isWaitingUserInput || isNewChat, onClick: onNewChat, className: `squizChatUIFooter__newChat${isWaitingUserInput ? ` squizChatUIFooter__newChat--active` : ``}${isNewChat ? ` squizChatUIFooter__newChat--disabled` : ``}` },
react_1.default.createElement("button", { disabled: isWaitingUserInput || isNewChat, onClick: onNewChat, className: `squizChatUIFooter__newChat${isWaitingUserInput ? ` squizChatUIFooter__newChat--active` : ``}${isNewChat ? ` squizChatUIFooter__newChat--disabled` : ``}`, "data-id": "Chatbot New Chat Button" },
react_1.default.createElement(NewChatIcon_1.NewChatIcon, null),

@@ -50,3 +50,3 @@ react_1.default.createElement(NewChatIcon_1.NewChatIconHover, null),

react_1.default.createElement("span", { className: "squizChatUIFooter__rateChatLabel" }, "Rate chat"),
react_1.default.createElement("button", { "aria-label": "Rate chat response good", "aria-checked": rating === true ? true : false, disabled: isProcessingRating || isNewChat, onClick: () => handleSetRating(true), className: "squizChatUIFooter__rateGood" },
react_1.default.createElement("button", { "aria-label": "Rate chat response good", "aria-checked": rating === true ? true : false, disabled: isProcessingRating || isNewChat, onClick: () => handleSetRating(true), className: "squizChatUIFooter__rateGood", "data-id": "Chatbot Rate Good Button" },
rating !== true && (react_1.default.createElement(react_1.default.Fragment, null,

@@ -56,3 +56,3 @@ react_1.default.createElement(ThumbUpIcon_1.ThumbUpIcon, null),

rating === true && react_1.default.createElement(ThumbUpIcon_1.ThumbUpIconSelected, null)),
react_1.default.createElement("button", { "aria-label": "Rate chat response bad", "aria-checked": rating === false ? true : false, disabled: isProcessingRating || isNewChat, onClick: () => handleSetRating(false), className: "squizChatUIFooter__rateBad" },
react_1.default.createElement("button", { "aria-label": "Rate chat response bad", "aria-checked": rating === false ? true : false, disabled: isProcessingRating || isNewChat, onClick: () => handleSetRating(false), className: "squizChatUIFooter__rateBad", "data-id": "Chatbot Rate Bad Button" },
rating !== false && (react_1.default.createElement(react_1.default.Fragment, null,

@@ -64,2 +64,2 @@ react_1.default.createElement(ThumbDownIcon_1.ThumbDownIcon, null),

exports.ChatFooter = ChatFooter;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2hhdEZvb3Rlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0NoYXRGb290ZXIvQ2hhdEZvb3Rlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwrQ0FBMkM7QUFDM0MseURBQXdFO0FBQ3hFLHlEQUE2RjtBQUM3Riw2REFBcUc7QUFXOUYsTUFBTSxVQUFVLEdBQUcsQ0FBQyxFQUN6QixNQUFNLEVBQ04sa0JBQWtCLEVBQ2xCLGtCQUFrQixFQUNsQixTQUFTLEVBQ1QsU0FBUyxFQUNULFVBQVUsR0FDTSxFQUFFLEVBQUU7SUFDcEIsTUFBTSxlQUFlLEdBQUcsSUFBQSxtQkFBVyxFQUNqQyxDQUFDLFlBQXFCLEVBQUUsRUFBRTtRQUN4QixJQUFJLENBQUM7WUFFSCxJQUFJLFlBQVksS0FBSyxNQUFNLEVBQUUsQ0FBQztnQkFDNUIsVUFBVSxDQUFDLFlBQVksQ0FBQyxDQUFD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BvbnNlIGdvb2RcIlxuICAgICAgICAgIGFyaWEtY2hlY2tlZD17cmF0aW5nID09PSB0cnVlID8gdHJ1ZSA6IGZhbHNlfVxuICAgICAgICAgIGRpc2FibGVkPXtpc1Byb2Nlc3NpbmdSYXRpbmcgfHwgaXNOZXdDaGF0fVxuICAgICAgICAgIG9uQ2xpY2s9eygpID0+IGhhbmRsZVNldFJhdGluZyh0cnVlKX1cbiAgICAgICAgICBjbGFzc05hbWU9XCJzcXVpekNoYXRVSUZvb3Rlcl9fcmF0ZUdvb2RcIlxuICAgICAgICA+XG4gICAgICAgICAge3JhdGluZyAhPT0gdHJ1ZSAmJiAoXG4gICAgICAgICAgICA8PlxuICAgICAgICAgICAgICA8VGh1bWJVcEljb24gLz5cbiAgICAgICAgICAgICAgPFRodW1iVXBJY29uSG92ZXIgLz5cbiAgICAgICAgICAgIDwvPlxuICAgICAgICAgICl9XG4gICAgICAgICAge3JhdGluZyA9PT0gdHJ1ZSAmJiA8VGh1bWJVcEljb25TZWxlY3RlZCAvPn1cbiAgICAgICAgPC9idXR0b24+XG4gICAgICAgIDxidXR0b25cbiAgICAgICAgICBhcmlhLWxhYmVsPVwiUmF0ZSBjaGF0IHJlc3BvbnNlIGJhZFwiXG4gICAgICAgICAgYXJpYS1jaGVja2VkPXtyYXRpbmcgPT09IGZhbHNlID8gdHJ1ZSA6IGZhbHNlfVxuICAgICAgICAgIGRpc2FibGVkPXtpc1Byb2Nlc3NpbmdSYXRpbmcgfHwgaXNOZXdDaGF0fVxuICAgICAgICAgIG9uQ2xpY2s9eygpID0+IGhhbmRsZVNldFJhdGluZyhmYWxzZSl9XG4gICAgICAgICAgY2xhc3NOYW1lPVwic3F1aXpDaGF0VUlGb290ZXJfX3JhdGVCYWRcIlxuICAgICAgICA+XG4gICAgICAgICAge3JhdGluZyAhPT0gZmFsc2UgJiYgKFxuICAgICAgICAgICAgPD5cbiAgICAgICAgICAgICAgPFRodW1iRG93bkljb24gLz5cbiAgICAgICAgICAgIC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gICAgICAgICAgICA8VGh1bWJEb3duSWNvbiAvPlxuICAgICAgICAgICAgICA8VGh1bWJEb3duSWNvbkhvdmVyIC8+XG4gICAgICAgICAgICA8Lz5cbiAgICAgICAgICApfVxuICAgICAgICAgIHtyYXRpbmcgPT09IGZhbHNlICYmIDxUaHVtYkRvd25JY29uU2VsZWN0ZWQgLz59XG4gICAgICAgIDwvYnV0dG9uPlxuICAgICAgPC9kaXY+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19

@@ -10,3 +10,3 @@ "use strict";

const ChatHeader = ({ title = 'Ask a question', titleId, iconSrc }) => {
return (react_1.default.createElement("div", { className: "squizChatUIHeader" },
return (react_1.default.createElement("div", { className: "squizChatUIHeader", "data-id": "Chatbot Header Title" },
react_1.default.createElement("div", { className: "squizChatUIHeader__inner" },

@@ -19,2 +19,2 @@ react_1.default.createElement("div", { className: "squizChatUIHeader__headerIconWrapper" },

exports.ChatHeader = ChatHeader;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2hhdEhlYWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0NoYXRIZWFkZXIvQ2hhdEhlYWRlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsa0RBQTBCO0FBQzFCLHlEQUFzRDtBQU8vQyxNQUFNLFVBQVUsR0FBRyxDQUFDLEVBQUUsS0FBSyxHQUFHLGdCQUFnQixFQUFFLE9BQU8sRUFBRSxPQUFPLEVBQW1CLEVBQUUsRUFBRTtJQUM1RixPQUFPLENBQ0wsdUNBQUssU0FBUyxFQUFDLG1CQUFtQjtRQUNoQyx1Q0FBSyxTQUFTLEVBQUMsMEJBQTBCO1lBQ3ZDLHVDQUFLLFNBQVMsRUFBQyxzQ0FBc0M7Z0JBQ2xELE9BQU8sSUFBSSx1Q0FBSyxHQUFHLEVBQUUsT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FjdCBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBTdXBwb3J0SWNvbiB9IGZyb20gJy4uLy4uL2ljb25zL1N1cHBvcnRJY29uJztcblxuZXhwb3J0IHR5cGUgQ2hhdEhlYWRlclByb3BzID0ge1xuICB0aXRsZT86IHN0cmluZztcbiAgdGl0bGVJZD86IHN0cmluZztcbiAgaWNvblNyYz86IHN0cmluZztcbn07XG5leHBvcnQgY29uc3QgQ2hhdEhlYWRlciA9ICh7IHRpdGxlID0gJ0FzayBhIHF1ZXN0aW9uJywgdGl0bGVJZCwgaWNvblNyYyB9OiBDaGF0SGVhZGVyUHJvcHMpID0+IHtcbiAgcmV0dXJuIChcbiAgICA8ZGl2IGNsYXNzTmFtZT1cInNxdWl6Q2hhdFVJSGVhZGVyXCIgZGF0YS1pZD1cIkNoYXRib3QgSGVhZGVyIFRpdGxlXCI+XG4gICAgICA8ZGl2IGNsYXNzTmFtZT1cInNxdWl6Q2hhdFVJSGVhZGVyX19pbm5lclwiPlxuICAgICAgICA8ZGl2IGNsYXNzTmFtZT1cInNxdWl6Q2hhdFVJSGVhZGVyX19oZWFkZXJJY29uV3JhcHBlclwiPlxuICAgICAgICAgIHtpY29uU3JjICYmIDxpbWcgc3JjPXtpY29uU3JjfSBjbGFzc05hbWU9XCJzcXVpekNoYXRVSUhlYWRlcl9faGVhZGVySWNvblwiPjwvaW1nPn1cbiAgICAgICAgICB7IWljb25TcmMgJiYgPFN1cHBvcnRJY29uIC8+fVxuICAgICAgICA8L2Rpdj5cbiAgICAgICAgPGgxIGlkPXt0aXRsZUlkfSBjbGFzc05hbWU9XCJzcXVpekNoYXRVSUhlYWRlcl9fdGl0bGVcIj5cbiAgICAgICAgICB7dGl0bGV9XG4gICAgICAgIDwvaDE+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0=

@@ -65,7 +65,7 @@ "use strict";

react_1.default.createElement("div", { className: "squizChatUIInput__controls" },
react_1.default.createElement("input", { ref: inputRef, "aria-label": "message", "aria-invalid": validationMessage !== '', "aria-errormessage": "squizChatUIInput__validationMessage", autoComplete: "off", placeholder: "Type message here...", value: message, onChange: handleMessageChange, className: "squizChatUIInput__input" }),
react_1.default.createElement("button", { title: "Send", type: "submit", className: "squizChatUIInput__submit", disabled: inputLimitExceeded },
react_1.default.createElement("input", { ref: inputRef, "aria-label": "message", "aria-invalid": validationMessage !== '', "aria-errormessage": "squizChatUIInput__validationMessage", autoComplete: "off", "data-id": "Chatbot Input", placeholder: "Type message here...", value: message, onChange: handleMessageChange, className: "squizChatUIInput__input" }),
react_1.default.createElement("button", { title: "Send", type: "submit", className: "squizChatUIInput__submit", "data-id": "Chatbot Send Message", disabled: inputLimitExceeded },
react_1.default.createElement(SendIcon_1.SendIcon, null))),
validationMessage !== '' && (react_1.default.createElement("div", { id: "squizChatUIInput__validationMessage", className: validationMessageClass, "data-testid": "chat-ui-validation-message" }, validationMessage)))));
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2hhdElucHV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvQ2hhdElucHV0L0NoYXRJbnB1dC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwrQ0FBcUQ7QUFDckQsbURBQWdEO0FBQ2hELCtEQUE0RDtBQVEvQyxRQUFBLFNBQVMsR0FBRyxlQUFLLENBQUMsVUFBVSxDQUN2QyxDQUFDLEVBQUUsaUJBQWlCLEdBQUcsS0FBSyxFQUFFLE1BQU0sRUFBRSxnQkFBZ0IsRUFBRSw0QkFBNEIsRUFBRSxFQUFFLFFBQVEsRUFBRSxFQUFFO0lBQ2xHLE1BQU0sQ0FBQyxPQUFPLEVBQUUsVUFBVSxDQUFDLEdBQUcsSUFBQSxnQkFBUSxFQU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hZ2UgaGVyZS4uLlwiXG4gICAgICAgICAgICAgIHZhbHVlPXttZXNzYWdlfVxuICAgICAgICAgICAgICBvbkNoYW5nZT17aGFuZGxlTWVzc2FnZUNoYW5nZX1cbiAgICAgICAgICAgICAgY2xhc3NOYW1lPVwic3F1aXpDaGF0VUlJbnB1dF9faW5wdXRcIlxuICAgICAgICAgICAgLz5cbiAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgdGl0bGU9XCJTZW5kXCJcbiAgICAgICAgICAgICAgdHlwZT1cInN1Ym1pdFwiXG4gICAgICAgICAgICAgIGNsYXNzTmFtZT1cInNxdWl6Q2hhdFVJSW5wdXRfX3N1Ym1pdFwiXG4gICAgICAgICAgICAgIGRhdGEtaWQ9XCJDaGF0Ym90IFNlbmQgTWVzc2FnZVwiXG4gICAgICAgICAgICAgIGRpc2FibGVkPXtpbnB1dExpbWl0RXhjZWVkZWR9XG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgIDxTZW5kSWNvbiAvPlxuICAgICAgICAgICAgPC9idXR0b24+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgICAge3ZhbGlkYXRpb25NZXNzYWdlICE9PSAnJyAmJiAoXG4gICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgIGlkPVwic3F1aXpDaGF0VUlJbnB1dF9fdmFsaWRhdGlvbk1lc3NhZ2VcIlxuICAgICAgICAgICAgICBjbGFzc05hbWU9e3ZhbGlkYXRpb25NZXNzYWdlQ2xhc3N9XG4gICAgICAgICAgICAgIGRhdGEtdGVzdGlkPVwiY2hhdC11aS12YWxpZGF0aW9uLW1lc3NhZ2VcIlxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICB7dmFsaWRhdGlvbk1lc3NhZ2V9XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICApfVxuICAgICAgICA8L2Zvcm0+XG4gICAgICA8L2Rpdj5cbiAgICApO1xuICB9LFxuKTtcbiJdfQ==
{
"name": "@squiz/chat-ui",
"version": "1.8.0",
"version": "1.8.1",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc