@cognigy/webchat 3.30.0 → 3.31.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 +33 -33
- package/dist/webchat.esm.js +17 -10
- package/dist/webchat.js +27 -27
- package/package.json +5 -5
package/OSS_LICENSES.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Created on
|
|
1
|
+
Created on 17-09-2025 at 11:54:39
|
|
2
2
|
|
|
3
3
|
{
|
|
4
4
|
"@ampproject/remapping@2.3.0": {
|
|
@@ -170,7 +170,7 @@ Created on 22-08-2025 at 12:20:46
|
|
|
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.31.0": {
|
|
174
174
|
"licenses": "MIT*",
|
|
175
175
|
"publisher": "Cognigy GmbH",
|
|
176
176
|
"email": "info@cognigy.com",
|
|
@@ -586,13 +586,13 @@ Created on 22-08-2025 at 12:20:46
|
|
|
586
586
|
"licenseFile": "node_modules/call-bind-apply-helpers/LICENSE",
|
|
587
587
|
"copyright": "Copyright (c) 2024 Jordan Harband"
|
|
588
588
|
},
|
|
589
|
-
"call-
|
|
589
|
+
"call-bound@1.0.4": {
|
|
590
590
|
"licenses": "MIT",
|
|
591
|
-
"repository": "https://github.com/ljharb/call-
|
|
591
|
+
"repository": "https://github.com/ljharb/call-bound",
|
|
592
592
|
"publisher": "Jordan Harband",
|
|
593
593
|
"email": "ljharb@gmail.com",
|
|
594
|
-
"licenseFile": "node_modules/call-
|
|
595
|
-
"copyright": "Copyright (c)
|
|
594
|
+
"licenseFile": "node_modules/call-bound/LICENSE",
|
|
595
|
+
"copyright": "Copyright (c) 2024 Jordan Harband"
|
|
596
596
|
},
|
|
597
597
|
"callsites@3.1.0": {
|
|
598
598
|
"licenses": "MIT",
|
|
@@ -821,14 +821,6 @@ Created on 22-08-2025 at 12:20:46
|
|
|
821
821
|
"licenseFile": "node_modules/deepmerge/license.txt",
|
|
822
822
|
"copyright": "Copyright (c) 2012 James Halliday, Josh Duff, and other contributors"
|
|
823
823
|
},
|
|
824
|
-
"define-data-property@1.1.4": {
|
|
825
|
-
"licenses": "MIT",
|
|
826
|
-
"repository": "https://github.com/ljharb/define-data-property",
|
|
827
|
-
"publisher": "Jordan Harband",
|
|
828
|
-
"email": "ljharb@gmail.com",
|
|
829
|
-
"licenseFile": "node_modules/define-data-property/LICENSE",
|
|
830
|
-
"copyright": "Copyright (c) 2023 Jordan Harband"
|
|
831
|
-
},
|
|
832
824
|
"delayed-stream@1.0.0": {
|
|
833
825
|
"licenses": "MIT",
|
|
834
826
|
"repository": "https://github.com/felixge/node-delayed-stream",
|
|
@@ -1137,14 +1129,6 @@ Created on 22-08-2025 at 12:20:46
|
|
|
1137
1129
|
"licenseFile": "node_modules/has-flag/license",
|
|
1138
1130
|
"copyright": "Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)"
|
|
1139
1131
|
},
|
|
1140
|
-
"has-property-descriptors@1.0.2": {
|
|
1141
|
-
"licenses": "MIT",
|
|
1142
|
-
"repository": "https://github.com/inspect-js/has-property-descriptors",
|
|
1143
|
-
"publisher": "Jordan Harband",
|
|
1144
|
-
"email": "ljharb@gmail.com",
|
|
1145
|
-
"licenseFile": "node_modules/has-property-descriptors/LICENSE",
|
|
1146
|
-
"copyright": "Copyright (c) 2022 Inspect JS"
|
|
1147
|
-
},
|
|
1148
1132
|
"has-symbols@1.1.0": {
|
|
1149
1133
|
"licenses": "MIT",
|
|
1150
1134
|
"repository": "https://github.com/inspect-js/has-symbols",
|
|
@@ -1984,7 +1968,7 @@ Created on 22-08-2025 at 12:20:46
|
|
|
1984
1968
|
"licenseFile": "node_modules/object-assign/license",
|
|
1985
1969
|
"copyright": "Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)"
|
|
1986
1970
|
},
|
|
1987
|
-
"object-inspect@1.13.
|
|
1971
|
+
"object-inspect@1.13.4": {
|
|
1988
1972
|
"licenses": "MIT",
|
|
1989
1973
|
"repository": "https://github.com/inspect-js/object-inspect",
|
|
1990
1974
|
"publisher": "James Halliday",
|
|
@@ -2136,7 +2120,7 @@ Created on 22-08-2025 at 12:20:46
|
|
|
2136
2120
|
"licenseFile": "node_modules/url/node_modules/punycode/LICENSE-MIT.txt",
|
|
2137
2121
|
"copyright": "Copyright Mathias Bynens <https://mathiasbynens.be/>"
|
|
2138
2122
|
},
|
|
2139
|
-
"qs@6.
|
|
2123
|
+
"qs@6.14.0": {
|
|
2140
2124
|
"licenses": "BSD-3-Clause",
|
|
2141
2125
|
"repository": "https://github.com/ljharb/qs",
|
|
2142
2126
|
"licenseFile": "node_modules/qs/LICENSE.md",
|
|
@@ -2406,14 +2390,6 @@ Created on 22-08-2025 at 12:20:46
|
|
|
2406
2390
|
"licenseFile": "node_modules/semver/LICENSE",
|
|
2407
2391
|
"copyright": "Copyright (c) Isaac Z. Schlueter and Contributors"
|
|
2408
2392
|
},
|
|
2409
|
-
"set-function-length@1.2.2": {
|
|
2410
|
-
"licenses": "MIT",
|
|
2411
|
-
"repository": "https://github.com/ljharb/set-function-length",
|
|
2412
|
-
"publisher": "Jordan Harband",
|
|
2413
|
-
"email": "ljharb@gmail.com",
|
|
2414
|
-
"licenseFile": "node_modules/set-function-length/LICENSE",
|
|
2415
|
-
"copyright": "Copyright (c) Jordan Harband and contributors"
|
|
2416
|
-
},
|
|
2417
2393
|
"shallow-equal@1.2.1": {
|
|
2418
2394
|
"licenses": "MIT",
|
|
2419
2395
|
"repository": "https://github.com/moroshko/shallow-equal",
|
|
@@ -2422,7 +2398,31 @@ Created on 22-08-2025 at 12:20:46
|
|
|
2422
2398
|
"licenseFile": "node_modules/shallow-equal/LICENSE",
|
|
2423
2399
|
"copyright": "Copyright © 2016 Misha Moroshko"
|
|
2424
2400
|
},
|
|
2425
|
-
"side-channel@1.0.
|
|
2401
|
+
"side-channel-list@1.0.0": {
|
|
2402
|
+
"licenses": "MIT",
|
|
2403
|
+
"repository": "https://github.com/ljharb/side-channel-list",
|
|
2404
|
+
"publisher": "Jordan Harband",
|
|
2405
|
+
"email": "ljharb@gmail.com",
|
|
2406
|
+
"licenseFile": "node_modules/side-channel-list/LICENSE",
|
|
2407
|
+
"copyright": "Copyright (c) 2024 Jordan Harband"
|
|
2408
|
+
},
|
|
2409
|
+
"side-channel-map@1.0.1": {
|
|
2410
|
+
"licenses": "MIT",
|
|
2411
|
+
"repository": "https://github.com/ljharb/side-channel-map",
|
|
2412
|
+
"publisher": "Jordan Harband",
|
|
2413
|
+
"email": "ljharb@gmail.com",
|
|
2414
|
+
"licenseFile": "node_modules/side-channel-map/LICENSE",
|
|
2415
|
+
"copyright": "Copyright (c) 2024 Jordan Harband"
|
|
2416
|
+
},
|
|
2417
|
+
"side-channel-weakmap@1.0.2": {
|
|
2418
|
+
"licenses": "MIT",
|
|
2419
|
+
"repository": "https://github.com/ljharb/side-channel-weakmap",
|
|
2420
|
+
"publisher": "Jordan Harband",
|
|
2421
|
+
"email": "ljharb@gmail.com",
|
|
2422
|
+
"licenseFile": "node_modules/side-channel-weakmap/LICENSE",
|
|
2423
|
+
"copyright": "Copyright (c) 2019 Jordan Harband"
|
|
2424
|
+
},
|
|
2425
|
+
"side-channel@1.1.0": {
|
|
2426
2426
|
"licenses": "MIT",
|
|
2427
2427
|
"repository": "https://github.com/ljharb/side-channel",
|
|
2428
2428
|
"publisher": "Jordan Harband",
|
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.31.0
|
|
3
|
+
* https://github.com/Cognigy/Webchat/tree/v3.31.0
|
|
4
|
+
* https://github.com/Cognigy/Webchat/tree/v3.31.0/OSS_LICENSES.txt
|
|
5
5
|
*/
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee__ from "react-dom";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
@@ -8573,7 +8573,7 @@ const DeleteAllConversationsModal = props => {
|
|
|
8573
8573
|
});
|
|
8574
8574
|
if (storage) {
|
|
8575
8575
|
Object.keys(storage).forEach(key => {
|
|
8576
|
-
if (key.includes(userId) && key.includes(
|
|
8576
|
+
if (key.includes(userId) && key.includes("webchat-client")) {
|
|
8577
8577
|
storage.removeItem(key);
|
|
8578
8578
|
}
|
|
8579
8579
|
});
|
|
@@ -27428,7 +27428,12 @@ const getFinishReason = (message, messageId) => {
|
|
|
27428
27428
|
return messageId ? message.data?._cognigy?._finishReason : "stop";
|
|
27429
27429
|
};
|
|
27430
27430
|
|
|
27431
|
-
//
|
|
27431
|
+
// Helper to determine if a message should be set as the currently animating message
|
|
27432
|
+
const shouldSetAsAnimating = (nextAnimatingId, newMessage, isEngagementMessageHidden) => {
|
|
27433
|
+
return !nextAnimatingId && !(newMessage.source === "engagement" && isEngagementMessageHidden);
|
|
27434
|
+
};
|
|
27435
|
+
|
|
27436
|
+
// slice of the store state that contains the info about streaming mode and teaserMessage, to avoid circular dependency
|
|
27432
27437
|
|
|
27433
27438
|
const createMessageReducer = getState => {
|
|
27434
27439
|
return (state = initialState, action) => {
|
|
@@ -27445,6 +27450,7 @@ const createMessageReducer = getState => {
|
|
|
27445
27450
|
const newMessage = action.message;
|
|
27446
27451
|
const isOutputCollationEnabled = getState().config?.settings?.behavior?.collateStreamedOutputs;
|
|
27447
27452
|
const isprogressiveMessageRenderingEnabled = getState().config?.settings?.behavior?.progressiveMessageRendering;
|
|
27453
|
+
const isEngagementMessageHidden = getState().config?.settings?.teaserMessage?.showInChat === false;
|
|
27448
27454
|
if (!isOutputCollationEnabled && !isprogressiveMessageRenderingEnabled || newMessage.source !== "bot" && newMessage.source !== "engagement") {
|
|
27449
27455
|
return {
|
|
27450
27456
|
...state,
|
|
@@ -27464,7 +27470,8 @@ const createMessageReducer = getState => {
|
|
|
27464
27470
|
if (!state.currentlyAnimatingId) {
|
|
27465
27471
|
visibleOutputMessages.push(newMessageId);
|
|
27466
27472
|
}
|
|
27467
|
-
|
|
27473
|
+
const shouldAnimate = shouldSetAsAnimating(nextAnimatingId, newMessage, isEngagementMessageHidden);
|
|
27474
|
+
if (shouldAnimate) {
|
|
27468
27475
|
nextAnimatingId = isAnimated ? newMessageId : null;
|
|
27469
27476
|
}
|
|
27470
27477
|
return {
|
|
@@ -27499,7 +27506,8 @@ const createMessageReducer = getState => {
|
|
|
27499
27506
|
if (!newMessageId || !isOutputCollationEnabled) {
|
|
27500
27507
|
newMessageId = (0,_helper__WEBPACK_IMPORTED_MODULE_0__/* .generateRandomId */ .M)();
|
|
27501
27508
|
}
|
|
27502
|
-
|
|
27509
|
+
const shouldAnimate = shouldSetAsAnimating(nextAnimatingId, newMessage, isEngagementMessageHidden);
|
|
27510
|
+
if (shouldAnimate) {
|
|
27503
27511
|
nextAnimatingId = newMessageId;
|
|
27504
27512
|
}
|
|
27505
27513
|
|
|
@@ -48587,11 +48595,10 @@ function spread(callback) {
|
|
|
48587
48595
|
/* harmony export */ });
|
|
48588
48596
|
const getOptionsKey = ({
|
|
48589
48597
|
userId,
|
|
48590
|
-
sessionId
|
|
48591
|
-
channel
|
|
48598
|
+
sessionId
|
|
48592
48599
|
}, {
|
|
48593
48600
|
URLToken
|
|
48594
|
-
}) => JSON.stringify([
|
|
48601
|
+
}) => JSON.stringify(["webchat-client", userId, sessionId, URLToken]);
|
|
48595
48602
|
|
|
48596
48603
|
/***/ }),
|
|
48597
48604
|
|