Skip to content

Commit

Permalink
Improve sending syncPageState event
Browse files Browse the repository at this point in the history
  • Loading branch information
annmirosh committed Oct 7, 2024
1 parent aea91f4 commit 5181ab5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dist/alan_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -93599,7 +93599,7 @@ code.hljs {
// alan_btn/alan_btn.ts
var import_lodash2 = __toESM(require_lodash());
(function(ns) {
uiState.lib.version = "alan-version.1.8.65".replace("alan-version.", "");
uiState.lib.version = "alan-version.1.8.66".replace("alan-version.", "");
if (window.alanBtn) {
console.warn("Alan: the Alan Button source code has already added (v." + uiState.lib.version + ")");
}
Expand Down Expand Up @@ -96338,6 +96338,9 @@ ${LEARN_MORE_LABEL}
function onChatTextAreaFocus() {
sendSyncPageState();
}
function onChatTextAreaBlur() {
isMsgTypingInProcess = false;
}
function onChatTextAreaKeyDown(e) {
const keyCode = e.keyCode || e.which;
sendSyncPageState();
Expand Down Expand Up @@ -96437,6 +96440,7 @@ ${LEARN_MORE_LABEL}
el.setAttribute("autocomplete", "off");
el.classList.add("alan-btn__chat-textarea");
el.addEventListener("focus", onChatTextAreaFocus);
el.addEventListener("blur", onChatTextAreaBlur);
el.addEventListener("keydown", onChatTextAreaKeyDown);
el.addEventListener("keyup", onChatTextAreaKeyUp);
el.addEventListener("input", onChatTextAreaChange);
Expand Down
2 changes: 1 addition & 1 deletion dist/alan_lib.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alan-ai/alan-sdk-web",
"version": "1.8.65",
"version": "1.8.66",
"description": "Alan Web SDK: a lightweight JavaScript library for adding a voice experience to your website or web application",
"keywords": [
"alan sdk web",
Expand Down

0 comments on commit 5181ab5

Please sign in to comment.