@developer.notchatbot/webchat 1.0.9 → 1.1.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.
package/dist/types.d.ts CHANGED
@@ -20,6 +20,12 @@ export interface WebChatConfig {
20
20
  mobile?: WebChatPositionConfig;
21
21
  desktop?: WebChatPositionConfig;
22
22
  }
23
+ export interface EmbedChatInputConfig {
24
+ backgroundColor?: string;
25
+ inputBorder?: string;
26
+ inputBorderRadius?: string;
27
+ iconColor?: string;
28
+ }
23
29
  export interface EmbedChatConfig {
24
30
  elementId: string;
25
31
  title?: string;
@@ -40,6 +46,13 @@ export interface EmbedChatConfig {
40
46
  borderRadius?: string | number;
41
47
  border?: string;
42
48
  boxShadow?: string;
49
+ chatTransparent?: boolean;
50
+ chatBackground?: string;
51
+ textColor?: string;
52
+ bubbleUserColor?: string;
53
+ input?: EmbedChatInputConfig;
54
+ footerColor?: string;
55
+ customCSS?: string;
43
56
  }
44
57
  export interface EmbedChatProps {
45
58
  config: EmbedChatConfig;
@@ -59,10 +72,13 @@ export interface EmbedChatHeaderProps {
59
72
  export interface EmbedChatFooterProps {
60
73
  footerText?: string;
61
74
  primaryColor?: string;
75
+ footerColor?: string;
62
76
  }
63
77
  export interface EmbedChatInstance {
64
78
  destroy: () => void;
65
79
  updateConfig: (newConfig: Partial<EmbedChatConfig>) => void;
80
+ injectCSS: (css: string) => void;
81
+ removeCustomCSS: () => void;
66
82
  }
67
83
  export interface Message {
68
84
  id: string;
@@ -111,16 +127,21 @@ export interface MessageListProps {
111
127
  messages: Message[];
112
128
  isTyping: boolean;
113
129
  avatar?: string;
130
+ textColor?: string;
131
+ bubbleUserColor?: string;
114
132
  }
115
133
  export interface MessageProps {
116
134
  message: Message;
117
135
  avatar?: string;
136
+ textColor?: string;
137
+ bubbleUserColor?: string;
118
138
  }
119
139
  export interface MessageInputProps {
120
140
  onSendMessage: (message: string) => void;
121
141
  placeholder?: string;
122
142
  primaryColor?: string;
123
143
  disabled?: boolean;
144
+ input?: EmbedChatInputConfig;
124
145
  }
125
146
  export interface TypingIndicatorProps {
126
147
  avatar?: string;