@xapp/chat-widget 1.84.1 → 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/index.css +1 -1
- package/dist/index.es.js +3 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/xapp-chat-widget.css +1 -1
- package/dist/xapp-chat-widget.js +1 -1
- package/dist/xapp-chat-widget.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8540,7 +8540,8 @@ var ChatMessagePart = function (props) {
|
|
|
8540
8540
|
var position = (_a = props.avatarPosition) !== null && _a !== void 0 ? _a : "left";
|
|
8541
8541
|
var containerClass = "xappw-chat-msg-part" +
|
|
8542
8542
|
(position === "below" ? " xappw-chat-msg-part--avatar-below" : "") +
|
|
8543
|
-
(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" : "");
|
|
8544
8545
|
var user = props.user, hideUserInfo = props.hideUserInfo;
|
|
8545
8546
|
// Hide user info if hideUserInfo is true and position is "bottom"
|
|
8546
8547
|
var shouldHideUserInfo = hideUserInfo && position === "bottom";
|
|
@@ -8838,7 +8839,7 @@ var ListMiddlewareWidget = function (props) {
|
|
|
8838
8839
|
}, [executeActionCallback]);
|
|
8839
8840
|
var handleButton = useButtonCallback();
|
|
8840
8841
|
var user = ctx.user;
|
|
8841
|
-
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 }) }))] }));
|
|
8842
8843
|
};
|
|
8843
8844
|
var ListMiddleware = function (next) { return function (props) {
|
|
8844
8845
|
var msg = props.msg, ctx = props.ctx;
|