@xapp/chat-widget 1.84.0 → 1.84.2
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/ChatMessagePart/ChatMessagePart.d.ts +0 -0
- package/dist/components/ChatWidget/ChatWidget.d.ts +0 -0
- package/dist/index.css +1 -1
- package/dist/index.es.js +7 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/xapp-chat-widget.css +1 -1
- package/dist/xapp-chat-widget.js +2 -2
- package/dist/xapp-chat-widget.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -2089,6 +2089,7 @@ function convertFromListDisplay(list) {
|
|
|
2089
2089
|
subTitle: item.description,
|
|
2090
2090
|
token: item.token,
|
|
2091
2091
|
url: item.url,
|
|
2092
|
+
hideUrl: item.hideUrl,
|
|
2092
2093
|
imageUrl: (_a = item.image) === null || _a === void 0 ? void 0 : _a.url,
|
|
2093
2094
|
imageActionUrl: (_b = item.image) === null || _b === void 0 ? void 0 : _b.imageActionUrl
|
|
2094
2095
|
};
|
|
@@ -2115,6 +2116,7 @@ function convertToListDisplay(list) {
|
|
|
2115
2116
|
description: item.subTitle,
|
|
2116
2117
|
token: item.token,
|
|
2117
2118
|
url: item.url,
|
|
2119
|
+
hideUrl: item.hideUrl,
|
|
2118
2120
|
image: {
|
|
2119
2121
|
url: item.imageUrl,
|
|
2120
2122
|
imageActionUrl: item.imageActionUrl,
|
|
@@ -8538,7 +8540,8 @@ var ChatMessagePart = function (props) {
|
|
|
8538
8540
|
var position = (_a = props.avatarPosition) !== null && _a !== void 0 ? _a : "left";
|
|
8539
8541
|
var containerClass = "xappw-chat-msg-part" +
|
|
8540
8542
|
(position === "below" ? " xappw-chat-msg-part--avatar-below" : "") +
|
|
8541
|
-
(position === "bottom" ? " xappw-chat-msg-part--avatar-bottom" : "")
|
|
8543
|
+
(position === "bottom" ? " xappw-chat-msg-part--avatar-bottom" : "") +
|
|
8544
|
+
(props.fullWidth ? " xappw-chat-msg-part--full-width" : "");
|
|
8542
8545
|
var user = props.user, hideUserInfo = props.hideUserInfo;
|
|
8543
8546
|
// Hide user info if hideUserInfo is true and position is "bottom"
|
|
8544
8547
|
var shouldHideUserInfo = hideUserInfo && position === "bottom";
|
|
@@ -8836,7 +8839,7 @@ var ListMiddlewareWidget = function (props) {
|
|
|
8836
8839
|
}, [executeActionCallback]);
|
|
8837
8840
|
var handleButton = useButtonCallback();
|
|
8838
8841
|
var user = ctx.user;
|
|
8839
|
-
return (require$$0.jsxs(ChatMessagePart, { showAvatar: false, user: user, children: [list.type === "CAROUSEL" && (require$$0.jsx("div", { className: "chat-msg chat-msg--fullwidth chat-msg--no-ava", children: require$$0.jsx(Carousel, { list: list, onExecute: handleExecute.bind(null, "carousel"), onButtonClick: handleButton, onOpenUrl: ctx.openUrl }) })), list.type === "LIST" && (require$$0.jsx("div", { className: "chat-msg chat-msg--expand", children: require$$0.jsx(List, { list: list, onExecute: handleExecute.bind(null, "list"), onButtonClick: handleButton, onOpenUrl: ctx.openUrl }) }))] }));
|
|
8842
|
+
return (require$$0.jsxs(ChatMessagePart, { showAvatar: false, user: user, fullWidth: true, children: [list.type === "CAROUSEL" && (require$$0.jsx("div", { className: "chat-msg chat-msg--fullwidth chat-msg--no-ava", children: require$$0.jsx(Carousel, { list: list, onExecute: handleExecute.bind(null, "carousel"), onButtonClick: handleButton, onOpenUrl: ctx.openUrl }) })), list.type === "LIST" && (require$$0.jsx("div", { className: "chat-msg chat-msg--expand", children: require$$0.jsx(List, { list: list, onExecute: handleExecute.bind(null, "list"), onButtonClick: handleButton, onOpenUrl: ctx.openUrl }) }))] }));
|
|
8840
8843
|
};
|
|
8841
8844
|
var ListMiddleware = function (next) { return function (props) {
|
|
8842
8845
|
var msg = props.msg, ctx = props.ctx;
|
|
@@ -32773,6 +32776,7 @@ function convertPreviewMessagesToChatDetails(messages) {
|
|
|
32773
32776
|
subTitle: item.description,
|
|
32774
32777
|
url: item.url,
|
|
32775
32778
|
imageUrl: item.imageUrl,
|
|
32779
|
+
hideUrl: item.hideUrl,
|
|
32776
32780
|
}); })
|
|
32777
32781
|
} : undefined,
|
|
32778
32782
|
displays: msg.list ? [convertToListDisplay({
|
|
@@ -32783,6 +32787,7 @@ function convertPreviewMessagesToChatDetails(messages) {
|
|
|
32783
32787
|
subTitle: item.description,
|
|
32784
32788
|
url: item.url,
|
|
32785
32789
|
imageUrl: item.imageUrl,
|
|
32790
|
+
hideUrl: item.hideUrl,
|
|
32786
32791
|
}); })
|
|
32787
32792
|
})] : undefined
|
|
32788
32793
|
}
|