@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.
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
- import 'cleave.js/dist/addons/cleave-phone.us.js';
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("lit").TemplateResult<1>;
18
+ render(): import('lit-html').TemplateResult<1>;
19
19
  }
@@ -1,7 +1,8 @@
1
1
  import { LitElement } from 'lit';
2
+
2
3
  export default class TransferConfirmation extends LitElement {
3
4
  static styles: any[];
4
5
  transfer(): void;
5
6
  cancel(): void;
6
- render(): import("lit").TemplateResult<1>;
7
+ render(): import('lit-html').TemplateResult<1>;
7
8
  }
@@ -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("mitt").Handler<any>): void;
6
- (type: "*", handler: import("mitt").WildcardHandler<any>): void;
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("mitt").Handler<any> | undefined): void;
10
- (type: "*", handler: import("mitt").WildcardHandler<any>): void;
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("mitt").Handler<any>): void;
7
- (type: "*", handler: import("mitt").WildcardHandler<any>): void;
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("mitt").Handler<any> | undefined): void;
11
- (type: "*", handler: import("mitt").WildcardHandler<any>): void;
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,3 +1,4 @@
1
1
  import { EnhancedContentParams } from '@iai-lib/chat-widget/dist/types/schema/WidgetOptions';
2
2
  import { TemplateResult } from 'lit-html';
3
+
3
4
  export declare function unitList({ html, params }: EnhancedContentParams): TemplateResult;
@@ -1,2 +1,3 @@
1
1
  import { FunctionCallParams } from '@iai-lib/chat-widget/dist/types/schema/WidgetOptions';
2
+
2
3
  export declare function generateShowScheduleTourWidgetHandler(schedulerUrl: string): (params: FunctionCallParams) => void;
@@ -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.48",
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.47",
43
- "@iai-lib/sdk": "^1.0.0-alpha.28",
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": "fdbc85e3f25aa909b0357e065a2a72000ff05229"
50
+ "gitHead": "f2442f8bafba360aa8731bbc7d34959d5c06307e"
52
51
  }