@koredev/agentai-web-sdk 1.1.1-rc → 1.1.2-rc
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/esm/agentai-web-sdk-chat.min.js +1 -1
- package/dist/hot/hot-update.js +348 -4400
- package/dist/hot/hot-update.js.map +1 -1
- package/dist/hot/hot-update.json +1 -1
- package/dist/kore-web-sdk.esm.browser.js +7 -21
- package/dist/kore-web-sdk.esm.browser.js.map +1 -1
- package/dist/umd/agentai-web-sdk-umd.min.js +1 -1
- package/dist/umd/agentai-web-sdk-umd.min.js.map +1 -0
- package/dist/umd/hot/hot-update.js +1153 -0
- package/dist/umd/hot/hot-update.js.map +1 -0
- package/dist/umd/hot/hot-update.json +1 -0
- package/package.json +1 -1
package/dist/hot/hot-update.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"c":["esm"],"r":[],"m":[
|
|
1
|
+
{"c":["esm"],"r":[],"m":[]}
|
|
@@ -5610,11 +5610,9 @@ var aaWindow = /** @class */ (function (_super) {
|
|
|
5610
5610
|
aaWindow.prototype.handleAgentUserMessage = function (data) {
|
|
5611
5611
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
5612
5612
|
if ((data === null || data === void 0 ? void 0 : data.name) === 'agentAssist.AgentMessage' || data.type === 'AGENT' || ((_a = data === null || data === void 0 ? void 0 : data.author) === null || _a === void 0 ? void 0 : _a.type) === 'AGENT') {
|
|
5613
|
-
console.log("🚀 ~ handleAgentUserMessage ~ agentAssist.AgentMessage");
|
|
5614
5613
|
this.emitUserAgentMessage(data, 'agent_inp_msg');
|
|
5615
5614
|
}
|
|
5616
5615
|
else if ((data === null || data === void 0 ? void 0 : data.name) === 'agentAssist.CustomerMessage' || data.type === 'USER' || ((_b = data === null || data === void 0 ? void 0 : data.author) === null || _b === void 0 ? void 0 : _b.type) === 'USER') {
|
|
5617
|
-
console.log("🚀 ~ handleAgentUserMessage ~ agentAssist.CustomerMessage");
|
|
5618
5616
|
this.emitUserAgentMessage(data, 'user_inp_msg');
|
|
5619
5617
|
}
|
|
5620
5618
|
if (data.value) {
|
|
@@ -5626,7 +5624,7 @@ var aaWindow = /** @class */ (function (_super) {
|
|
|
5626
5624
|
"type": (_e = userInputData.author) === null || _e === void 0 ? void 0 : _e.type
|
|
5627
5625
|
},
|
|
5628
5626
|
'botId': this.rootService.connectionDetails.botId,
|
|
5629
|
-
'conversationId': userInputData.
|
|
5627
|
+
'conversationId': userInputData.conversationId,
|
|
5630
5628
|
'experience': (_f = this.rootService.connectionDetails) === null || _f === void 0 ? void 0 : _f.channel,
|
|
5631
5629
|
'query': userInputData.value,
|
|
5632
5630
|
'positionId': this.rootService.isAutomationOnGoing ? this.rootService.currentPositionId : null
|
|
@@ -5640,8 +5638,6 @@ var aaWindow = /** @class */ (function (_super) {
|
|
|
5640
5638
|
else {
|
|
5641
5639
|
if (((_g = userInputData === null || userInputData === void 0 ? void 0 : userInputData.author) === null || _g === void 0 ? void 0 : _g.type) === 'USER') {
|
|
5642
5640
|
this.socketConnection.emitEvents(_common_constants_events_cnst__WEBPACK_IMPORTED_MODULE_5__.EVENTS.agent_assist_request, agent_assist_request);
|
|
5643
|
-
// if (!hostInstance.rootService.OverRideMode && hostInstance.rootService.settingsData?.isProactiveEnabled) {
|
|
5644
|
-
// }
|
|
5645
5641
|
}
|
|
5646
5642
|
}
|
|
5647
5643
|
}
|
|
@@ -5671,16 +5667,15 @@ var aaWindow = /** @class */ (function (_super) {
|
|
|
5671
5667
|
.then(function (settings) {
|
|
5672
5668
|
_this.rootService.aaSettings = (settings === null || settings === void 0 ? void 0 : settings.agentAssistSettings) || {};
|
|
5673
5669
|
_this.socketConnection.socketConnection(config);
|
|
5670
|
+
var chatWindowHtml;
|
|
5671
|
+
chatWindowHtml = (0,_common_templatemanager_base_domManager__WEBPACK_IMPORTED_MODULE_2__.getHTML)(_common_templatemanager_base_aaContainer_aaContainer__WEBPACK_IMPORTED_MODULE_3__.AAContainer, {}, _this);
|
|
5672
|
+
_this.chatEle = chatWindowHtml;
|
|
5673
|
+
_this.render(chatWindowHtml);
|
|
5674
5674
|
_this.bindEvents();
|
|
5675
5675
|
});
|
|
5676
5676
|
})
|
|
5677
5677
|
.catch(function (err) {
|
|
5678
5678
|
});
|
|
5679
|
-
console.log("inside jew setup");
|
|
5680
|
-
var chatWindowHtml;
|
|
5681
|
-
chatWindowHtml = (0,_common_templatemanager_base_domManager__WEBPACK_IMPORTED_MODULE_2__.getHTML)(_common_templatemanager_base_aaContainer_aaContainer__WEBPACK_IMPORTED_MODULE_3__.AAContainer, {}, this);
|
|
5682
|
-
this.chatEle = chatWindowHtml;
|
|
5683
|
-
this.render(chatWindowHtml);
|
|
5684
5679
|
};
|
|
5685
5680
|
;
|
|
5686
5681
|
aaWindow.prototype.getAASettings = function (botId) {
|
|
@@ -5715,7 +5710,6 @@ var aaWindow = /** @class */ (function (_super) {
|
|
|
5715
5710
|
aaWindow.prototype.bindEvents = function () {
|
|
5716
5711
|
var _this = this;
|
|
5717
5712
|
this.on('beforeWSSendMessage', function (config) {
|
|
5718
|
-
console.log("🚀 ~ aaWindow ~ this.on ~ config:", config);
|
|
5719
5713
|
_this.commonEmitEvents(config);
|
|
5720
5714
|
});
|
|
5721
5715
|
};
|
|
@@ -6687,7 +6681,6 @@ var rootService = /** @class */ (function () {
|
|
|
6687
6681
|
}
|
|
6688
6682
|
message['type'] = (selectType == _constants_projConsts__WEBPACK_IMPORTED_MODULE_1__.ProjConstants.FAQ) ? 'faq' : 'article';
|
|
6689
6683
|
window.parent.postMessage(message, '*');
|
|
6690
|
-
console.log("🚀 ~ postMessage ~ agentAssist" + message.name);
|
|
6691
6684
|
return (this.faqArticleSendorCopyEvent(selectType, message, faq_or_article_obj));
|
|
6692
6685
|
};
|
|
6693
6686
|
rootService.prototype.faqArticleSendorCopyEvent = function (selectType, message, faq_or_article_obj) {
|
|
@@ -7632,7 +7625,6 @@ var EventManager = /** @class */ (function () {
|
|
|
7632
7625
|
var _a;
|
|
7633
7626
|
if (!hostele) {
|
|
7634
7627
|
if (this.eventMapper.filter(function (el) { return el.querySelector === querySelector && el.event == event; }).length) {
|
|
7635
|
-
console.log('An event already registered with the class');
|
|
7636
7628
|
return;
|
|
7637
7629
|
}
|
|
7638
7630
|
}
|
|
@@ -7688,13 +7680,7 @@ function AllTabs(props) {
|
|
|
7688
7680
|
(0,preact__WEBPACK_IMPORTED_MODULE_2__.h)("svg", { width: "25", height: "25", viewBox: "0 0 25 25", fill: "none" },
|
|
7689
7681
|
(0,preact__WEBPACK_IMPORTED_MODULE_2__.h)("path", { d: "M21.75 22.2001C21.55 22.2001 21.45 22.1001 21.35 22.0001L17.45 18.1001C15.95 19.4001 13.95 20.2001 11.85 20.2001C7.15 20.2001 3.25 16.3001 3.25 11.6001C3.25 6.90006 7.05 3.00006 11.75 3.00006C16.45 3.00006 20.35 6.90006 20.35 11.6001C20.35 13.8001 19.55 15.7001 18.25 17.2001L22.15 21.1001C22.35 21.3001 22.35 21.7001 22.15 21.9001C22.05 22.1001 21.95 22.2001 21.75 22.2001ZM11.75 4.20006C7.65 4.20006 4.35 7.50006 4.35 11.6001C4.35 15.7001 7.65 19.0001 11.75 19.0001C13.75 19.0001 15.55 18.2001 16.95 16.9001C16.95 16.9001 16.95 16.9001 17.05 16.8001C17.05 16.8001 17.05 16.8001 17.15 16.7001C18.45 15.4001 19.25 13.5001 19.25 11.5001C19.15 7.50006 15.85 4.20006 11.75 4.20006Z", fill: "#202939" }))),
|
|
7690
7682
|
(0,preact__WEBPACK_IMPORTED_MODULE_2__.h)("p", { className: "text-truncate", title: o.title }, o.title))),
|
|
7691
|
-
o.type === 'mB' &&
|
|
7692
|
-
(0,preact__WEBPACK_IMPORTED_MODULE_2__.h)("div", { className: "svg_icon" },
|
|
7693
|
-
(0,preact__WEBPACK_IMPORTED_MODULE_2__.h)("svg", { width: "26", height: "25", viewBox: "0 0 26 25", fill: "none" },
|
|
7694
|
-
(0,preact__WEBPACK_IMPORTED_MODULE_2__.h)("path", { d: "M4.92794 4.20001V21", stroke: "#202939", "stroke-width": "1.2" }),
|
|
7695
|
-
(0,preact__WEBPACK_IMPORTED_MODULE_2__.h)("path", { d: "M8.92794 4.20001V21", stroke: "#202939", "stroke-width": "1.2" }),
|
|
7696
|
-
(0,preact__WEBPACK_IMPORTED_MODULE_2__.h)("path", { d: "M12.9279 20V5.64677C12.9279 4.94753 13.6272 4.46419 14.2813 4.7113L21.1755 7.31574C21.5646 7.46274 21.8221 7.83526 21.8221 8.25121V20C21.8221 20.5523 21.3743 21 20.8221 21H13.9279C13.3757 21 12.9279 20.5523 12.9279 20Z", stroke: "#202939", "stroke-width": "1.2" }))),
|
|
7697
|
-
(0,preact__WEBPACK_IMPORTED_MODULE_2__.h)("p", { className: "text-truncate", title: o.title }, o.title))),
|
|
7683
|
+
o.type === 'mB' && false && (0),
|
|
7698
7684
|
o.type === 'ast' && ((0,preact__WEBPACK_IMPORTED_MODULE_2__.h)("button", { className: "aa-footer-btn-ast btn_footer ".concat(selectedTab === _constants_projConsts__WEBPACK_IMPORTED_MODULE_3__.Tabs.ASSIST ? 'selected-tab sel-bg' : '') },
|
|
7699
7685
|
(0,preact__WEBPACK_IMPORTED_MODULE_2__.h)("div", { className: "svg_icon" },
|
|
7700
7686
|
(0,preact__WEBPACK_IMPORTED_MODULE_2__.h)("svg", { width: "24", height: "25", viewBox: "0 0 24 25", fill: "none" },
|
|
@@ -16179,7 +16165,7 @@ function hasBinary(obj, toJSON) {
|
|
|
16179
16165
|
/******/
|
|
16180
16166
|
/******/ /* webpack/runtime/getFullHash */
|
|
16181
16167
|
/******/ (() => {
|
|
16182
|
-
/******/ __webpack_require__.h = () => ("
|
|
16168
|
+
/******/ __webpack_require__.h = () => ("650261aeedeeb74a33e4")
|
|
16183
16169
|
/******/ })();
|
|
16184
16170
|
/******/
|
|
16185
16171
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|