@alan-ai/alan-sdk-web 1.8.50 → 1.8.52
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/AlanButton.d.ts +1 -0
- package/dist/alan_lib.js +5 -2
- package/dist/alan_lib.min.js +1 -1
- package/package.json +1 -1
package/dist/AlanButton.d.ts
CHANGED
package/dist/alan_lib.js
CHANGED
|
@@ -3369,7 +3369,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
3369
3369
|
}
|
|
3370
3370
|
// alan_btn/alan_btn.ts
|
|
3371
3371
|
(function (ns) {
|
|
3372
|
-
var alanButtonVersion = "alan-version.1.8.
|
|
3372
|
+
var alanButtonVersion = "alan-version.1.8.52";
|
|
3373
3373
|
alanButtonVersion = alanButtonVersion.replace("alan-version.", "");
|
|
3374
3374
|
if (window.alanBtn) {
|
|
3375
3375
|
console.warn("Alan: the Alan Button source code has already added (v." + alanButtonVersion + ")");
|
|
@@ -5623,7 +5623,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
5623
5623
|
playSoundNext();
|
|
5624
5624
|
isAlanActive = true;
|
|
5625
5625
|
if (window.tutorProject) {
|
|
5626
|
+
window.tutorProject.off("recognized", onRecognizedCbInMicBtn);
|
|
5627
|
+
window.tutorProject.off("parsed", onParsedCbInMicBtn);
|
|
5628
|
+
window.tutorProject.off("options", onOptionsReceived);
|
|
5626
5629
|
window.tutorProject.on("recognized", onRecognizedCbInMicBtn);
|
|
5630
|
+
window.tutorProject.on("parsed", onParsedCbInMicBtn);
|
|
5627
5631
|
window.tutorProject.on("options", onOptionsReceived);
|
|
5628
5632
|
}
|
|
5629
5633
|
}
|
|
@@ -7006,7 +7010,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
7006
7010
|
}
|
|
7007
7011
|
window.switchState = switchState;
|
|
7008
7012
|
function switchState(newState) {
|
|
7009
|
-
console.info("newState", newState);
|
|
7010
7013
|
if (options2.onButtonState) {
|
|
7011
7014
|
options2.onButtonState(btnStateMapping[newState]);
|
|
7012
7015
|
}
|