@schmitech/chatbot-widget 0.4.6 → 0.4.7

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,3 +1,4 @@
1
+ export type IconType = 'heart' | 'message-square' | 'message-circle' | 'help-circle' | 'info' | 'bot' | 'sparkles';
1
2
  export interface ChatConfig {
2
3
  header: {
3
4
  title: string;
@@ -8,6 +9,7 @@ export interface ChatConfig {
8
9
  background: string;
9
10
  text: {
10
11
  primary: string;
12
+ secondary: string;
11
13
  inverse: string;
12
14
  };
13
15
  input: {
@@ -28,7 +30,7 @@ export interface ChatConfig {
28
30
  background: string;
29
31
  hoverBackground?: string;
30
32
  };
31
- iconColor?: string;
33
+ iconColor: string;
32
34
  };
33
35
  welcome: {
34
36
  title: string;
@@ -38,7 +40,7 @@ export interface ChatConfig {
38
40
  text: string;
39
41
  query: string;
40
42
  }>;
41
- icon?: string;
43
+ icon?: IconType;
42
44
  }
43
45
  export declare const defaultTheme: {
44
46
  primary: string;
@@ -46,6 +48,7 @@ export declare const defaultTheme: {
46
48
  background: string;
47
49
  text: {
48
50
  primary: string;
51
+ secondary: string;
49
52
  inverse: string;
50
53
  };
51
54
  input: {
@@ -1,4 +1,4 @@
1
- export declare const DEFAULT_MAX_SUGGESTED_QUESTION_LENGTH = 50;
1
+ export declare const DEFAULT_MAX_SUGGESTED_QUESTION_LENGTH = 120;
2
2
  export declare const DEFAULT_MAX_SUGGESTED_QUESTION_QUERY_LENGTH = 200;
3
3
  export declare let CHAT_CONSTANTS: {
4
4
  MAX_MESSAGE_LENGTH: number;
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
2
  import { Message as MessageType } from '../store/chatStore';
3
+ import { ThemeConfig, ChatConfig } from '../config';
3
4
  export interface MessagesListProps {
4
5
  messages: MessageType[];
5
6
  isLoading: boolean;
6
- theme: any;
7
- currentConfig: any;
7
+ theme: ThemeConfig;
8
+ currentConfig: ChatConfig;
8
9
  showScrollTop: boolean;
9
10
  showScrollBottom: boolean;
10
11
  isAnimating: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@schmitech/chatbot-widget",
3
3
  "private": false,
4
- "version": "0.4.6",
4
+ "version": "0.4.7",
5
5
  "type": "module",
6
6
  "main": "./dist/chatbot-widget.umd.js",
7
7
  "module": "./dist/chatbot-widget.es.js",