@iai-lib/any-chat-widget 0.1.0-alpha.48 → 0.1.0-alpha.50
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/any-chat-widget.es.js +3001 -3257
- package/dist/any-chat-widget.umd.js +197 -132
- package/dist/types/components/contactForm.d.ts +2 -2
- package/dist/types/components/transferConfirmation.d.ts +2 -1
- package/dist/types/modules/five9/five9.ws.d.ts +4 -4
- package/dist/types/modules/five9/five9Manager.d.ts +5 -4
- package/dist/types/modules/iaiChatWidget/enhancedContentHandlers/unitList.d.ts +1 -0
- package/dist/types/modules/iaiChatWidget/functionCallHandlers/tourScheduler.d.ts +1 -0
- package/dist/types/modules/iaiChatWidget/functionCallHandlers/transferToLiveAgent.d.ts +1 -0
- package/dist/types/modules/iaiChatWidget/iaiChatWidget.d.ts +1 -0
- package/package.json +4 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
export default class ContactForm extends LitElement {
|
|
4
4
|
static styles: any[];
|
|
5
5
|
params: {
|
|
@@ -15,5 +15,5 @@ export default class ContactForm extends LitElement {
|
|
|
15
15
|
submit(e: Event): void;
|
|
16
16
|
cancel(): void;
|
|
17
17
|
updateField(field: string, value: string): void;
|
|
18
|
-
render(): import(
|
|
18
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
19
19
|
}
|
|
@@ -2,12 +2,12 @@ export declare class Five9WebSocket {
|
|
|
2
2
|
private chatWsUrl;
|
|
3
3
|
private readonly _emitter;
|
|
4
4
|
readonly on: {
|
|
5
|
-
<Key extends string | number | symbol>(type: Key, handler: import(
|
|
6
|
-
(type: "*", handler: import(
|
|
5
|
+
<Key extends string | number | symbol>(type: Key, handler: import('mitt').Handler<any>): void;
|
|
6
|
+
(type: "*", handler: import('mitt').WildcardHandler<any>): void;
|
|
7
7
|
};
|
|
8
8
|
readonly off: {
|
|
9
|
-
<Key extends string | number | symbol>(type: Key, handler?: import(
|
|
10
|
-
(type: "*", handler: import(
|
|
9
|
+
<Key extends string | number | symbol>(type: Key, handler?: import('mitt').Handler<any> | undefined): void;
|
|
10
|
+
(type: "*", handler: import('mitt').WildcardHandler<any>): void;
|
|
11
11
|
};
|
|
12
12
|
private reconnectCodes;
|
|
13
13
|
private reconnectAttempts;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { Five9Types } from '../../types/five9Types';
|
|
2
|
+
|
|
2
3
|
export declare class Five9Manager {
|
|
3
4
|
#private;
|
|
4
5
|
private readonly _emitter;
|
|
5
6
|
readonly on: {
|
|
6
|
-
<Key extends string | number | symbol>(type: Key, handler: import(
|
|
7
|
-
(type: "*", handler: import(
|
|
7
|
+
<Key extends string | number | symbol>(type: Key, handler: import('mitt').Handler<any>): void;
|
|
8
|
+
(type: "*", handler: import('mitt').WildcardHandler<any>): void;
|
|
8
9
|
};
|
|
9
10
|
readonly off: {
|
|
10
|
-
<Key extends string | number | symbol>(type: Key, handler?: import(
|
|
11
|
-
(type: "*", handler: import(
|
|
11
|
+
<Key extends string | number | symbol>(type: Key, handler?: import('mitt').Handler<any> | undefined): void;
|
|
12
|
+
(type: "*", handler: import('mitt').WildcardHandler<any>): void;
|
|
12
13
|
};
|
|
13
14
|
conversationStarted: boolean;
|
|
14
15
|
private five9WebSocket?;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FunctionCallParams } from '@iai-lib/chat-widget/dist/types/schema/WidgetOptions';
|
|
2
2
|
import { ChatWindowApi } from '@iai-lib/chat-widget/dist/types/types/widget';
|
|
3
3
|
import { Five9Manager } from '../../five9/five9Manager';
|
|
4
|
+
|
|
4
5
|
export declare function getChatSessionKey(historyKey: string | null): string;
|
|
5
6
|
export declare function transferToLiveAgent({ id, params, chatWindow, html, }: FunctionCallParams): Promise<void>;
|
|
6
7
|
export declare function hijackChatForLiveAgent(chatWindow: ChatWindowApi, five9Manager: Five9Manager): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IAIChatWidget } from '@iai-lib/chat-widget';
|
|
2
2
|
import { WidgetOptions } from '@iai-lib/chat-widget/dist/types/schema/WidgetOptions';
|
|
3
|
+
|
|
3
4
|
export declare class AnyChatWidget {
|
|
4
5
|
chatWidget: IAIChatWidget;
|
|
5
6
|
constructor(widgetOptions: Partial<WidgetOptions>, anyOptions: AnyOptions);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iai-lib/any-chat-widget",
|
|
3
3
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
4
|
-
"version": "0.1.0-alpha.
|
|
4
|
+
"version": "0.1.0-alpha.50",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"dev": "vite",
|
|
11
11
|
"dev:build": "vite build --watch",
|
|
12
|
-
"dev:build:delayed": "delay 10 && yarn dev:build",
|
|
13
12
|
"build": "vite build",
|
|
14
13
|
"lint": "eslint . --ignore-path .gitignore",
|
|
15
14
|
"lint:fix": "yarn lint --fix"
|
|
@@ -39,8 +38,8 @@
|
|
|
39
38
|
"vite-plugin-static-copy": "^1.0.1"
|
|
40
39
|
},
|
|
41
40
|
"dependencies": {
|
|
42
|
-
"@iai-lib/chat-widget": "^1.0.0-alpha.
|
|
43
|
-
"@iai-lib/sdk": "^1.0.0-alpha.
|
|
41
|
+
"@iai-lib/chat-widget": "^1.0.0-alpha.48",
|
|
42
|
+
"@iai-lib/sdk": "^1.0.0-alpha.29",
|
|
44
43
|
"cleave.js": "^1.6.0",
|
|
45
44
|
"dayjs": "^1.11.11",
|
|
46
45
|
"lit": "^3.1.3",
|
|
@@ -48,5 +47,5 @@
|
|
|
48
47
|
"mitt": "^3.0.1",
|
|
49
48
|
"zod": "^3.23.8"
|
|
50
49
|
},
|
|
51
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "f2442f8bafba360aa8731bbc7d34959d5c06307e"
|
|
52
51
|
}
|