@digipair/skill-web-chatbot 0.37.5 → 0.38.1

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.
@@ -8,10 +8,10 @@ export declare class ChatElement extends LitElement {
8
8
  get inputs(): {
9
9
  [key: string]: any;
10
10
  }[];
11
+ loadingStep: string;
11
12
  private messageInput;
12
13
  private inputsElement;
13
14
  private previousMessages;
14
- private previousCurrentBoostText;
15
15
  private converter;
16
16
  static styles: import("lit").CSSResult[];
17
17
  connectedCallback(): void;
@@ -11,12 +11,14 @@ export declare class DigipairFullElement extends LitElement {
11
11
  private loading;
12
12
  private currentBoost;
13
13
  private messages;
14
+ private loadingStep;
14
15
  private chatbot;
15
- private CHAT_COMMAND;
16
16
  private cacheBoosters;
17
17
  private isDigipairLoading;
18
18
  private metadata;
19
+ private CHAT_COMMAND;
19
20
  connectedCallback(): void;
21
+ private initializeSSE;
20
22
  private loadUser;
21
23
  private loadBoosters;
22
24
  private loadDigipair;
@@ -13,16 +13,18 @@ export declare class ChatbotElement extends LitElement {
13
13
  private resultState;
14
14
  private currentBoost;
15
15
  private messages;
16
+ private loadingStep;
16
17
  private chatbot;
17
- private CHAT_COMMAND;
18
18
  private alreadyOpened;
19
19
  private isDigipairLoading;
20
20
  private newUser;
21
21
  private metadata;
22
+ private CHAT_COMMAND;
22
23
  private blurEvent;
23
24
  connectedCallback(): void;
24
25
  disconnectedCallback(): void;
25
26
  private externalBoostListener;
27
+ private initializeSSE;
26
28
  private loadUser;
27
29
  private boostListener;
28
30
  private getBoostsFromTarget;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-chatbot",
3
- "version": "0.37.5",
3
+ "version": "0.38.1",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",
package/debug.html DELETED
@@ -1,18 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <title>@digipair/skill-web-chatbot</title>
6
- </head>
7
- <body>
8
- <script type="module">
9
- import { config } from './index.esm.js';
10
- config.set('API_URL', window.location.origin);
11
-
12
- // Load the chatbot
13
- const chatbot = document.createElement('digipair-chatbot-full');
14
- chatbot.setAttribute('code', 'admin');
15
- document.body.appendChild(chatbot);
16
- </script>
17
- </body>
18
- </html>