@cognigy/webchat 3.39.0 → 3.40.0
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/OSS_LICENSES.txt +4 -4
- package/dist/webchat.esm.js +71 -24
- package/dist/webchat.js +31 -31
- package/package.json +2 -2
package/OSS_LICENSES.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Created on
|
|
1
|
+
Created on 09-03-2026 at 12:42:58
|
|
2
2
|
|
|
3
3
|
{
|
|
4
4
|
"@babel/code-frame@7.29.0": {
|
|
@@ -157,7 +157,7 @@ Created on 23-02-2026 at 11:25:59
|
|
|
157
157
|
"licenseFile": "node_modules/@cognigy/chat-components/node_modules/@braintree/sanitize-url/LICENSE",
|
|
158
158
|
"copyright": "Copyright (c) 2017 Braintree"
|
|
159
159
|
},
|
|
160
|
-
"@cognigy/chat-components@0.
|
|
160
|
+
"@cognigy/chat-components@0.69.0": {
|
|
161
161
|
"licenses": "MIT*",
|
|
162
162
|
"repository": "https://github.com/Cognigy/chat-components",
|
|
163
163
|
"licenseFile": "node_modules/@cognigy/chat-components/LICENSE",
|
|
@@ -170,7 +170,7 @@ Created on 23-02-2026 at 11:25:59
|
|
|
170
170
|
"licenseFile": "node_modules/@cognigy/socket-client/LICENSE",
|
|
171
171
|
"copyright": "Copyright (c) 2019 Cognigy GmbH"
|
|
172
172
|
},
|
|
173
|
-
"@cognigy/webchat@3.
|
|
173
|
+
"@cognigy/webchat@3.40.0": {
|
|
174
174
|
"licenses": "MIT*",
|
|
175
175
|
"repository": "https://github.com/Cognigy/Webchat",
|
|
176
176
|
"publisher": "Cognigy GmbH",
|
|
@@ -2671,7 +2671,7 @@ Created on 23-02-2026 at 11:25:59
|
|
|
2671
2671
|
"licenseFile": "node_modules/supports-preserve-symlinks-flag/LICENSE",
|
|
2672
2672
|
"copyright": "Copyright (c) 2022 Inspect JS"
|
|
2673
2673
|
},
|
|
2674
|
-
"swiper@12.1.
|
|
2674
|
+
"swiper@12.1.2": {
|
|
2675
2675
|
"licenses": "MIT",
|
|
2676
2676
|
"repository": "https://github.com/nolimits4web/Swiper",
|
|
2677
2677
|
"publisher": "Vladimir Kharlampidi",
|
package/dist/webchat.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* webchat.esm.js v3.
|
|
3
|
-
* https://github.com/Cognigy/Webchat/tree/v3.
|
|
4
|
-
* https://github.com/Cognigy/Webchat/tree/v3.
|
|
2
|
+
* webchat.esm.js v3.40.0
|
|
3
|
+
* https://github.com/Cognigy/Webchat/tree/v3.40.0
|
|
4
|
+
* https://github.com/Cognigy/Webchat/tree/v3.40.0/OSS_LICENSES.txt
|
|
5
5
|
*/
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee__ from "react-dom";
|
|
@@ -90607,11 +90607,10 @@ function isNode(node2) {
|
|
|
90607
90607
|
}
|
|
90608
90608
|
function extend$1(...args) {
|
|
90609
90609
|
const to = Object(args[0]);
|
|
90610
|
-
const noExtend = ["__proto__", "constructor", "prototype"];
|
|
90611
90610
|
for (let i = 1; i < args.length; i += 1) {
|
|
90612
90611
|
const nextSource = args[i];
|
|
90613
90612
|
if (nextSource !== void 0 && nextSource !== null && !isNode(nextSource)) {
|
|
90614
|
-
const keysArray = Object.keys(Object(nextSource)).filter(key =>
|
|
90613
|
+
const keysArray = Object.keys(Object(nextSource)).filter(key => key !== "__proto__" && key !== "constructor" && key !== "prototype");
|
|
90615
90614
|
for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {
|
|
90616
90615
|
const nextKey = keysArray[nextIndex];
|
|
90617
90616
|
const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
|
|
@@ -90838,7 +90837,8 @@ function Navigation({
|
|
|
90838
90837
|
});
|
|
90839
90838
|
swiper.navigation = {
|
|
90840
90839
|
nextEl: null,
|
|
90841
|
-
prevEl: null
|
|
90840
|
+
prevEl: null,
|
|
90841
|
+
arrowSvg
|
|
90842
90842
|
};
|
|
90843
90843
|
function getEl(el) {
|
|
90844
90844
|
let res;
|
|
@@ -91017,7 +91017,7 @@ function Navigation({
|
|
|
91017
91017
|
});
|
|
91018
91018
|
}
|
|
91019
91019
|
function classesToSelector(classes2 = "") {
|
|
91020
|
-
return `.${classes2.trim().replace(/([\.:!+\/()[\]])/g, "\\$1").replace(/ /g, ".")}`;
|
|
91020
|
+
return `.${classes2.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g, "\\$1").replace(/ /g, ".")}`;
|
|
91021
91021
|
}
|
|
91022
91022
|
function Pagination({
|
|
91023
91023
|
swiper,
|
|
@@ -91684,7 +91684,8 @@ function A11y({
|
|
|
91684
91684
|
const slideEl = e.target.closest(`.${swiper.params.slideClass}, swiper-slide`);
|
|
91685
91685
|
if (!slideEl || !swiper.slides.includes(slideEl)) return;
|
|
91686
91686
|
focusTargetSlideEl = slideEl;
|
|
91687
|
-
const
|
|
91687
|
+
const isVirtual = swiper.virtual && swiper.params.virtual.enabled;
|
|
91688
|
+
const isActive = (isVirtual ? parseInt(slideEl.getAttribute("data-swiper-slide-index"), 10) : swiper.slides.indexOf(slideEl)) === swiper.activeIndex;
|
|
91688
91689
|
const isVisible = swiper.params.watchSlidesProgress && swiper.visibleSlides && swiper.visibleSlides.includes(slideEl);
|
|
91689
91690
|
if (isActive || isVisible) return;
|
|
91690
91691
|
if (e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents) return;
|
|
@@ -91697,6 +91698,8 @@ function A11y({
|
|
|
91697
91698
|
if (preventFocusHandler) return;
|
|
91698
91699
|
if (swiper.params.loop) {
|
|
91699
91700
|
swiper.slideToLoop(swiper.getSlideIndexWhenGrid(parseInt(slideEl.getAttribute("data-swiper-slide-index"))), 0);
|
|
91701
|
+
} else if (isVirtual) {
|
|
91702
|
+
swiper.slideTo(swiper.getSlideIndexWhenGrid(parseInt(slideEl.getAttribute("data-swiper-slide-index"), 10)), 0);
|
|
91700
91703
|
} else {
|
|
91701
91704
|
swiper.slideTo(swiper.getSlideIndexWhenGrid(swiper.slides.indexOf(slideEl)), 0);
|
|
91702
91705
|
}
|
|
@@ -91762,7 +91765,6 @@ function A11y({
|
|
|
91762
91765
|
const document2 = getDocument();
|
|
91763
91766
|
document2.addEventListener("visibilitychange", onVisibilityChange);
|
|
91764
91767
|
swiper.el.addEventListener("focus", handleFocus, true);
|
|
91765
|
-
swiper.el.addEventListener("focus", handleFocus, true);
|
|
91766
91768
|
swiper.el.addEventListener("pointerdown", handlePointerDown, true);
|
|
91767
91769
|
swiper.el.addEventListener("pointerup", handlePointerUp, true);
|
|
91768
91770
|
};
|
|
@@ -92216,6 +92218,10 @@ function updateSlides() {
|
|
|
92216
92218
|
setCSSProperty(wrapperEl, "--swiper-centered-offset-before", "");
|
|
92217
92219
|
setCSSProperty(wrapperEl, "--swiper-centered-offset-after", "");
|
|
92218
92220
|
}
|
|
92221
|
+
if (params.cssMode) {
|
|
92222
|
+
setCSSProperty(wrapperEl, "--swiper-slides-offset-before", `${offsetBefore}px`);
|
|
92223
|
+
setCSSProperty(wrapperEl, "--swiper-slides-offset-after", `${offsetAfter}px`);
|
|
92224
|
+
}
|
|
92219
92225
|
const gridEnabled = params.grid && params.grid.rows > 1 && swiper.grid;
|
|
92220
92226
|
if (gridEnabled) {
|
|
92221
92227
|
swiper.grid.initSlides(slides);
|
|
@@ -92322,17 +92328,44 @@ function updateSlides() {
|
|
|
92322
92328
|
swiper.grid.updateWrapperSize(slideSize, snapGrid);
|
|
92323
92329
|
}
|
|
92324
92330
|
if (!params.centeredSlides) {
|
|
92331
|
+
const isFractionalSlidesPerView = params.slidesPerView !== "auto" && params.slidesPerView % 1 !== 0;
|
|
92332
|
+
const shouldSnapToSlideEdge = params.snapToSlideEdge && !params.loop && (params.slidesPerView === "auto" || isFractionalSlidesPerView);
|
|
92333
|
+
let lastAllowedSnapIndex = snapGrid.length;
|
|
92334
|
+
if (shouldSnapToSlideEdge) {
|
|
92335
|
+
let minVisibleSlides;
|
|
92336
|
+
if (params.slidesPerView === "auto") {
|
|
92337
|
+
minVisibleSlides = 1;
|
|
92338
|
+
let accumulatedSize = 0;
|
|
92339
|
+
for (let i = slidesSizesGrid.length - 1; i >= 0; i -= 1) {
|
|
92340
|
+
accumulatedSize += slidesSizesGrid[i] + (i < slidesSizesGrid.length - 1 ? spaceBetween : 0);
|
|
92341
|
+
if (accumulatedSize <= swiperSize) {
|
|
92342
|
+
minVisibleSlides = slidesSizesGrid.length - i;
|
|
92343
|
+
} else {
|
|
92344
|
+
break;
|
|
92345
|
+
}
|
|
92346
|
+
}
|
|
92347
|
+
} else {
|
|
92348
|
+
minVisibleSlides = Math.floor(params.slidesPerView);
|
|
92349
|
+
}
|
|
92350
|
+
lastAllowedSnapIndex = Math.max(slidesLength - minVisibleSlides, 0);
|
|
92351
|
+
}
|
|
92325
92352
|
const newSlidesGrid = [];
|
|
92326
92353
|
for (let i = 0; i < snapGrid.length; i += 1) {
|
|
92327
92354
|
let slidesGridItem = snapGrid[i];
|
|
92328
92355
|
if (params.roundLengths) slidesGridItem = Math.floor(slidesGridItem);
|
|
92329
|
-
if (
|
|
92356
|
+
if (shouldSnapToSlideEdge) {
|
|
92357
|
+
if (i <= lastAllowedSnapIndex) {
|
|
92358
|
+
newSlidesGrid.push(slidesGridItem);
|
|
92359
|
+
}
|
|
92360
|
+
} else if (snapGrid[i] <= swiper.virtualSize - swiperSize) {
|
|
92330
92361
|
newSlidesGrid.push(slidesGridItem);
|
|
92331
92362
|
}
|
|
92332
92363
|
}
|
|
92333
92364
|
snapGrid = newSlidesGrid;
|
|
92334
92365
|
if (Math.floor(swiper.virtualSize - swiperSize) - Math.floor(snapGrid[snapGrid.length - 1]) > 1) {
|
|
92335
|
-
|
|
92366
|
+
if (!shouldSnapToSlideEdge) {
|
|
92367
|
+
snapGrid.push(swiper.virtualSize - swiperSize);
|
|
92368
|
+
}
|
|
92336
92369
|
}
|
|
92337
92370
|
}
|
|
92338
92371
|
if (isVirtual && params.loop) {
|
|
@@ -92384,9 +92417,8 @@ function updateSlides() {
|
|
|
92384
92417
|
allSlidesSize += slideSizeValue + (spaceBetween || 0);
|
|
92385
92418
|
});
|
|
92386
92419
|
allSlidesSize -= spaceBetween;
|
|
92387
|
-
|
|
92388
|
-
|
|
92389
|
-
const allSlidesOffset = (swiperSize - allSlidesSize - offsetSize) / 2;
|
|
92420
|
+
if (allSlidesSize < swiperSize) {
|
|
92421
|
+
const allSlidesOffset = (swiperSize - allSlidesSize) / 2;
|
|
92390
92422
|
snapGrid.forEach((snap, snapIndex) => {
|
|
92391
92423
|
snapGrid[snapIndex] = snap - allSlidesOffset;
|
|
92392
92424
|
});
|
|
@@ -92664,12 +92696,12 @@ const processLazyPreloader = (swiper, imageEl) => {
|
|
|
92664
92696
|
requestAnimationFrame(() => {
|
|
92665
92697
|
if (slideEl.shadowRoot) {
|
|
92666
92698
|
lazyEl = slideEl.shadowRoot.querySelector(`.${swiper.params.lazyPreloaderClass}`);
|
|
92667
|
-
if (lazyEl) lazyEl.remove();
|
|
92699
|
+
if (lazyEl && !lazyEl.lazyPreloaderManaged) lazyEl.remove();
|
|
92668
92700
|
}
|
|
92669
92701
|
});
|
|
92670
92702
|
}
|
|
92671
92703
|
}
|
|
92672
|
-
if (lazyEl) lazyEl.remove();
|
|
92704
|
+
if (lazyEl && !lazyEl.lazyPreloaderManaged) lazyEl.remove();
|
|
92673
92705
|
}
|
|
92674
92706
|
};
|
|
92675
92707
|
const unlazy = (swiper, index2) => {
|
|
@@ -92780,8 +92812,12 @@ function updateActiveIndex(newActiveIndex) {
|
|
|
92780
92812
|
}
|
|
92781
92813
|
const gridEnabled = swiper.grid && params.grid && params.grid.rows > 1;
|
|
92782
92814
|
let realIndex;
|
|
92783
|
-
if (swiper.virtual && params.virtual.enabled
|
|
92784
|
-
|
|
92815
|
+
if (swiper.virtual && params.virtual.enabled) {
|
|
92816
|
+
if (params.loop) {
|
|
92817
|
+
realIndex = getVirtualRealIndex(activeIndex);
|
|
92818
|
+
} else {
|
|
92819
|
+
realIndex = activeIndex;
|
|
92820
|
+
}
|
|
92785
92821
|
} else if (gridEnabled) {
|
|
92786
92822
|
const firstSlideInColumn = swiper.slides.find(slideEl => slideEl.column === activeIndex);
|
|
92787
92823
|
let activeSlideIndex = parseInt(firstSlideInColumn.getAttribute("data-swiper-slide-index"), 10);
|
|
@@ -94788,6 +94824,7 @@ var defaults$1 = {
|
|
|
94788
94824
|
// in px
|
|
94789
94825
|
normalizeSlideIndex: true,
|
|
94790
94826
|
centerInsufficientSlides: false,
|
|
94827
|
+
snapToSlideEdge: false,
|
|
94791
94828
|
// Disable swiper and hide navigation when container not overflow
|
|
94792
94829
|
watchOverflow: true,
|
|
94793
94830
|
// Round length
|
|
@@ -94936,7 +94973,11 @@ let Swiper$1 = class Swiper {
|
|
|
94936
94973
|
swiper.eventsAnyListeners = [];
|
|
94937
94974
|
swiper.modules = [...swiper.__modules__];
|
|
94938
94975
|
if (params.modules && Array.isArray(params.modules)) {
|
|
94939
|
-
|
|
94976
|
+
params.modules.forEach(mod => {
|
|
94977
|
+
if (typeof mod === "function" && swiper.modules.indexOf(mod) < 0) {
|
|
94978
|
+
swiper.modules.push(mod);
|
|
94979
|
+
}
|
|
94980
|
+
});
|
|
94940
94981
|
}
|
|
94941
94982
|
const allModulesParams = {};
|
|
94942
94983
|
swiper.modules.forEach(mod => {
|
|
@@ -95445,7 +95486,7 @@ Object.keys(prototypes).forEach(prototypeGroup => {
|
|
|
95445
95486
|
});
|
|
95446
95487
|
});
|
|
95447
95488
|
Swiper$1.use([Resize, Observer]);
|
|
95448
|
-
const paramsList = ["eventsPrefix", "injectStyles", "injectStylesUrls", "modules", "init", "_direction", "oneWayMovement", "swiperElementNodeName", "touchEventsTarget", "initialSlide", "_speed", "cssMode", "updateOnWindowResize", "resizeObserver", "nested", "focusableElements", "_enabled", "_width", "_height", "preventInteractionOnTransition", "userAgent", "url", "_edgeSwipeDetection", "_edgeSwipeThreshold", "_freeMode", "_autoHeight", "setWrapperSize", "virtualTranslate", "_effect", "breakpoints", "breakpointsBase", "_spaceBetween", "_slidesPerView", "maxBackfaceHiddenSlides", "_grid", "_slidesPerGroup", "_slidesPerGroupSkip", "_slidesPerGroupAuto", "_centeredSlides", "_centeredSlidesBounds", "_slidesOffsetBefore", "_slidesOffsetAfter", "normalizeSlideIndex", "_centerInsufficientSlides", "_watchOverflow", "roundLengths", "touchRatio", "touchAngle", "simulateTouch", "_shortSwipes", "_longSwipes", "longSwipesRatio", "longSwipesMs", "_followFinger", "allowTouchMove", "_threshold", "touchMoveStopPropagation", "touchStartPreventDefault", "touchStartForcePreventDefault", "touchReleaseOnEdges", "uniqueNavElements", "_resistance", "_resistanceRatio", "_watchSlidesProgress", "_grabCursor", "preventClicks", "preventClicksPropagation", "_slideToClickedSlide", "_loop", "loopAdditionalSlides", "loopAddBlankSlides", "loopPreventsSliding", "_rewind", "_allowSlidePrev", "_allowSlideNext", "_swipeHandler", "_noSwiping", "noSwipingClass", "noSwipingSelector", "passiveListeners", "containerModifierClass", "slideClass", "slideActiveClass", "slideVisibleClass", "slideFullyVisibleClass", "slideNextClass", "slidePrevClass", "slideBlankClass", "wrapperClass", "lazyPreloaderClass", "lazyPreloadPrevNext", "runCallbacksOnInit", "observer", "observeParents", "observeSlideChildren",
|
|
95489
|
+
const paramsList = ["eventsPrefix", "injectStyles", "injectStylesUrls", "modules", "init", "_direction", "oneWayMovement", "swiperElementNodeName", "touchEventsTarget", "initialSlide", "_speed", "cssMode", "updateOnWindowResize", "resizeObserver", "nested", "focusableElements", "_enabled", "_width", "_height", "preventInteractionOnTransition", "userAgent", "url", "_edgeSwipeDetection", "_edgeSwipeThreshold", "_freeMode", "_autoHeight", "setWrapperSize", "virtualTranslate", "_effect", "breakpoints", "breakpointsBase", "_spaceBetween", "_slidesPerView", "maxBackfaceHiddenSlides", "_grid", "_slidesPerGroup", "_slidesPerGroupSkip", "_slidesPerGroupAuto", "_centeredSlides", "_centeredSlidesBounds", "_slidesOffsetBefore", "_slidesOffsetAfter", "normalizeSlideIndex", "_centerInsufficientSlides", "_snapToSlideEdge", "_watchOverflow", "roundLengths", "touchRatio", "touchAngle", "simulateTouch", "_shortSwipes", "_longSwipes", "longSwipesRatio", "longSwipesMs", "_followFinger", "allowTouchMove", "_threshold", "touchMoveStopPropagation", "touchStartPreventDefault", "touchStartForcePreventDefault", "touchReleaseOnEdges", "uniqueNavElements", "_resistance", "_resistanceRatio", "_watchSlidesProgress", "_grabCursor", "preventClicks", "preventClicksPropagation", "_slideToClickedSlide", "_loop", "loopAdditionalSlides", "loopAddBlankSlides", "loopPreventsSliding", "_rewind", "_allowSlidePrev", "_allowSlideNext", "_swipeHandler", "_noSwiping", "noSwipingClass", "noSwipingSelector", "passiveListeners", "containerModifierClass", "slideClass", "slideActiveClass", "slideVisibleClass", "slideFullyVisibleClass", "slideNextClass", "slidePrevClass", "slideBlankClass", "wrapperClass", "lazyPreloaderClass", "lazyPreloadPrevNext", "runCallbacksOnInit", "observer", "observeParents", "observeSlideChildren",
|
|
95449
95490
|
// modules
|
|
95450
95491
|
"a11y", "_autoplay", "_controller", "coverflowEffect", "cubeEffect", "fadeEffect", "flipEffect", "creativeEffect", "cardsEffect", "hashNavigation", "history", "keyboard", "mousewheel", "_navigation", "_pagination", "parallax", "_scrollbar", "_thumbs", "virtual", "zoom", "control"];
|
|
95451
95492
|
function isObject(o) {
|
|
@@ -95620,14 +95661,14 @@ function updateSwiper({
|
|
|
95620
95661
|
if (!nextEl || typeof nextEl === "string") {
|
|
95621
95662
|
nextEl = document.createElement("div");
|
|
95622
95663
|
nextEl.classList.add("swiper-button-next");
|
|
95623
|
-
setInnerHTML(nextEl, swiper.
|
|
95664
|
+
setInnerHTML(nextEl, swiper.navigation.arrowSvg);
|
|
95624
95665
|
nextEl.part.add("button-next");
|
|
95625
95666
|
swiper.el.appendChild(nextEl);
|
|
95626
95667
|
}
|
|
95627
95668
|
if (!prevEl || typeof prevEl === "string") {
|
|
95628
95669
|
prevEl = document.createElement("div");
|
|
95629
95670
|
prevEl.classList.add("swiper-button-prev");
|
|
95630
|
-
setInnerHTML(prevEl, swiper.
|
|
95671
|
+
setInnerHTML(prevEl, swiper.navigation.arrowSvg);
|
|
95631
95672
|
prevEl.part.add("button-prev");
|
|
95632
95673
|
swiper.el.appendChild(prevEl);
|
|
95633
95674
|
}
|
|
@@ -96106,11 +96147,17 @@ const SwiperSlide = /* @__PURE__ */(0,react__WEBPACK_IMPORTED_MODULE_0__.forward
|
|
|
96106
96147
|
className: "swiper-zoom-container",
|
|
96107
96148
|
"data-swiper-zoom": typeof zoom === "number" ? zoom : void 0
|
|
96108
96149
|
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__["default"].createElement("div", {
|
|
96109
|
-
className: "swiper-lazy-preloader"
|
|
96150
|
+
className: "swiper-lazy-preloader",
|
|
96151
|
+
ref: node2 => {
|
|
96152
|
+
if (node2) node2.lazyPreloaderManaged = true;
|
|
96153
|
+
}
|
|
96110
96154
|
}))), !zoom && /* @__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__["default"].createElement(SwiperSlideContext.Provider, {
|
|
96111
96155
|
value: slideData
|
|
96112
96156
|
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__["default"].createElement("div", {
|
|
96113
|
-
className: "swiper-lazy-preloader"
|
|
96157
|
+
className: "swiper-lazy-preloader",
|
|
96158
|
+
ref: node2 => {
|
|
96159
|
+
if (node2) node2.lazyPreloaderManaged = true;
|
|
96160
|
+
}
|
|
96114
96161
|
})));
|
|
96115
96162
|
});
|
|
96116
96163
|
SwiperSlide.displayName = "SwiperSlide";
|