Skip to content

Commit

Permalink
Add onEvent and onButtonState callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
annmirosh committed Mar 19, 2021
1 parent f6a2d0a commit 4d54894
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 10 deletions.
2 changes: 2 additions & 0 deletions dist/AlanButtonOptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ export interface AlanButtonOptions {
pinned?: boolean;
zIndex?: number;
onCommand?(commandData: object): void;
onEvent?(event: object): void;
onButtonState?(state: string): void;
onConnectionStatus?(status: string): void;
}
35 changes: 27 additions & 8 deletions dist/alan_lib.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.24",
"version": "1.8.25",
"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 4d54894

Please sign in to comment.