@crestapps/ai-chat-ui 2.0.0-preview.203 → 2.0.0-preview.215
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/ai-chat.js +4 -1
- package/dist/ai-chat.js.map +1 -1
- package/dist/ai-chat.min.js +1 -1
- package/dist/ai-chat.min.js.map +1 -1
- package/dist/chat-image-carousel.css +277 -0
- package/dist/chat-image-carousel.css.map +1 -0
- package/dist/chat-image-carousel.js +485 -0
- package/dist/chat-image-carousel.js.map +1 -0
- package/dist/chat-image-carousel.min.css +1 -0
- package/dist/chat-image-carousel.min.js +2 -0
- package/dist/chat-image-carousel.min.js.map +1 -0
- package/dist/chat-interaction.js +4 -1
- package/dist/chat-interaction.js.map +1 -1
- package/dist/chat-interaction.min.js +1 -1
- package/dist/chat-interaction.min.js.map +1 -1
- package/dist/chat-markers.js +77 -28
- package/dist/chat-markers.js.map +1 -1
- package/dist/chat-markers.min.js +1 -1
- package/dist/chat-markers.min.js.map +1 -1
- package/package.json +10 -2
package/dist/ai-chat.js
CHANGED
|
@@ -765,10 +765,13 @@ window.coreAIChatManager = function (_window$CoreAIChatMar, _window$CoreAIChatMa
|
|
|
765
765
|
renderer: renderer
|
|
766
766
|
}));
|
|
767
767
|
message._pendingCharts = _pendingCharts.length > 0 ? _toConsumableArray(_pendingCharts) : [];
|
|
768
|
-
|
|
768
|
+
var sanitizedHtml = DOMPurify.sanitize(html, {
|
|
769
769
|
ADD_TAGS: ['canvas'],
|
|
770
770
|
ADD_ATTR: ['target']
|
|
771
771
|
});
|
|
772
|
+
|
|
773
|
+
// Optional, shared with every chat surface: a run of pictures becomes one stacked carousel.
|
|
774
|
+
return window.CoreAIChatImageCarousel ? window.CoreAIChatImageCarousel.stackAdjacentImages(sanitizedHtml) : sanitizedHtml;
|
|
772
775
|
}
|
|
773
776
|
function compactObject(source) {
|
|
774
777
|
if (!source || _typeof(source) !== 'object') {
|