@chatwidgetai/chat-widget 0.2.5 → 0.2.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.
- package/dist/actions/google-calendar-appointment/index.d.ts +0 -1
- package/dist/actions/google-calendar-appointment/index.d.ts.map +1 -1
- package/dist/ai-chat-widget.umd.js +3925 -4384
- package/dist/ai-chat-widget.umd.js.map +1 -1
- package/dist/api/client.d.ts +1 -0
- package/dist/api/client.d.ts.map +1 -1
- package/dist/components/ChatWidget.d.ts +1 -1
- package/dist/components/ChatWidget.d.ts.map +1 -1
- package/dist/components/ChatWindow.d.ts +6 -2
- package/dist/components/ChatWindow.d.ts.map +1 -1
- package/dist/components/FollowUpSuggestions.d.ts +17 -0
- package/dist/components/FollowUpSuggestions.d.ts.map +1 -0
- package/dist/components/MessageList.d.ts +9 -3
- package/dist/components/MessageList.d.ts.map +1 -1
- package/dist/components/Skeleton.d.ts +11 -0
- package/dist/components/Skeleton.d.ts.map +1 -0
- package/dist/components/SuggestedQuestions.d.ts +8 -3
- package/dist/components/SuggestedQuestions.d.ts.map +1 -1
- package/dist/components/ToolMessageGroup.d.ts.map +1 -1
- package/dist/components/TypingIndicator.d.ts +1 -1
- package/dist/components/TypingIndicator.d.ts.map +1 -1
- package/dist/hooks/useChat.d.ts +1 -0
- package/dist/hooks/useChat.d.ts.map +1 -1
- package/dist/index.esm.js +349 -156
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +386 -193
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +28 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +5 -3
- package/dist/actions/google-calendar-appointment/component.d.ts +0 -6
- package/dist/actions/google-calendar-appointment/component.d.ts.map +0 -1
package/dist/api/client.d.ts
CHANGED
package/dist/api/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AACA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E,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAqBtG,sBAAsB,CAC3B,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,EAAE,GACjB,cAAc,CAAC,WAAW,CAAC;IA+BvB,0BAA0B,CAC/B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,cAAc,CAAC,WAAW,CAAC;IAiC9B;;OAEG;IACG,cAAc,CAClB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,UAAU,GAAG,UAAU,EACjC,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAC7D,OAAO,CAAC,IAAI,CAAC;IA8BhB;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;CAqBzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatWidget.d.ts","sourceRoot":"","sources":["../../src/components/ChatWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAgB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatWidget.d.ts","sourceRoot":"","sources":["../../src/components/ChatWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAgB,MAAM,UAAU,CAAC;AAOrD,OAAO,+BAA+B,CAAC;AAoFvC,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAwT5C,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Main chat interface window - Modern minimal design
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { ConversationMessage, WidgetConfig } from '../types';
|
|
6
|
+
import { ConversationMessage, WidgetConfig, FollowUpSuggestion } from '../types';
|
|
7
7
|
import { ConversationSummary } from '../hooks/useChat';
|
|
8
8
|
export interface ChatWindowProps {
|
|
9
9
|
messages: ConversationMessage[];
|
|
@@ -14,6 +14,7 @@ export interface ChatWindowProps {
|
|
|
14
14
|
onSendMessage: (message: string) => void;
|
|
15
15
|
onClose: () => void;
|
|
16
16
|
onFeedback: (messageId: string, feedback: 'positive' | 'negative') => void;
|
|
17
|
+
onActionClick?: (suggestion: FollowUpSuggestion) => void;
|
|
17
18
|
conversations?: ConversationSummary[];
|
|
18
19
|
onLoadConversations?: () => void;
|
|
19
20
|
onSwitchConversation?: (conversationId: string) => Promise<void>;
|
|
@@ -24,7 +25,10 @@ export interface ChatWindowProps {
|
|
|
24
25
|
welcomeTitleOverride?: string;
|
|
25
26
|
welcomeMessageOverride?: string;
|
|
26
27
|
placeholderOverride?: string;
|
|
27
|
-
suggestedQuestionsOverride?: string
|
|
28
|
+
suggestedQuestionsOverride?: (string | {
|
|
29
|
+
text: string;
|
|
30
|
+
actionId?: string;
|
|
31
|
+
})[];
|
|
28
32
|
}
|
|
29
33
|
export declare const ChatWindow: React.FC<ChatWindowProps>;
|
|
30
34
|
//# sourceMappingURL=ChatWindow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatWindow.d.ts","sourceRoot":"","sources":["../../src/components/ChatWindow.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"ChatWindow.d.ts","sourceRoot":"","sources":["../../src/components/ChatWindow.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,O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AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmQhD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FollowUpSuggestions Component
|
|
3
|
+
* Displays clickable follow-up suggestions after assistant messages
|
|
4
|
+
* Supports both questions (sent as messages) and actions (trigger tool calls)
|
|
5
|
+
*
|
|
6
|
+
* Styling: Questions are outlined, Actions are filled with accent color + lightning icon
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { FollowUpSuggestion } from '../types';
|
|
10
|
+
export interface FollowUpSuggestionsProps {
|
|
11
|
+
suggestions: FollowUpSuggestion[];
|
|
12
|
+
onQuestionClick: (text: string, actionId?: string) => void;
|
|
13
|
+
onActionClick: (suggestion: FollowUpSuggestion) => void;
|
|
14
|
+
accentColor?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const FollowUpSuggestions: React.FC<FollowUpSuggestionsProps>;
|
|
17
|
+
//# sourceMappingURL=FollowUpSuggestions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FollowUpSuggestions.d.ts","sourceRoot":"","sources":["../../src/components/FollowUpSuggestions.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAI9C,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,kBAAkB,EAAE,CAAC;IAClC,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3D,aAAa,EAAE,CAAC,UAAU,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAeD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAgDlE,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Displays the list of chat messages with auto-scroll
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { ConversationMessage, SourceDisplayMode } from '../types';
|
|
6
|
+
import { ConversationMessage, SourceDisplayMode, FollowUpSuggestion } from '../types';
|
|
7
7
|
export interface MessageListProps {
|
|
8
8
|
messages: ConversationMessage[];
|
|
9
9
|
isTyping?: boolean;
|
|
@@ -14,9 +14,15 @@ export interface MessageListProps {
|
|
|
14
14
|
sourceDisplayMode?: SourceDisplayMode;
|
|
15
15
|
welcomeTitle?: string;
|
|
16
16
|
welcomeMessage?: string;
|
|
17
|
-
suggestedQuestions?: string
|
|
18
|
-
|
|
17
|
+
suggestedQuestions?: (string | {
|
|
18
|
+
text: string;
|
|
19
|
+
actionId?: string;
|
|
20
|
+
})[];
|
|
21
|
+
accentColor?: string;
|
|
22
|
+
onSuggestedQuestionClick?: (question: string, actionId?: string) => void;
|
|
23
|
+
onActionClick?: (suggestion: FollowUpSuggestion) => void;
|
|
19
24
|
onFeedback?: (messageId: string, feedback: 'positive' | 'negative') => void;
|
|
25
|
+
onScrollStateChange?: (showButton: boolean, scrollToBottom: () => void) => void;
|
|
20
26
|
}
|
|
21
27
|
export declare const MessageList: React.FC<MessageListProps>;
|
|
22
28
|
//# sourceMappingURL=MessageList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../src/components/MessageList.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../src/components/MessageList.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAWtF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,CAAC,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzE,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACzD,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,GAAG,UAAU,KAAK,IAAI,CAAC;IAC5E,mBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;CACjF;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2MlD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SkeletonProps {
|
|
3
|
+
height?: string | number;
|
|
4
|
+
width?: string | number;
|
|
5
|
+
borderRadius?: string | number;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
export declare const Skeleton: React.FC<SkeletonProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=Skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../src/components/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,aAAa;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAkB5C,CAAC"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* SuggestedQuestions Component
|
|
3
3
|
* Displays clickable suggested questions as horizontal pill buttons
|
|
4
|
-
* Modern minimal design
|
|
4
|
+
* Modern minimal design with action type highlighting
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
|
+
type SuggestedQuestion = string | {
|
|
8
|
+
text: string;
|
|
9
|
+
actionId?: string;
|
|
10
|
+
};
|
|
7
11
|
export interface SuggestedQuestionsProps {
|
|
8
|
-
questions:
|
|
9
|
-
onQuestionClick: (question: string) => void;
|
|
12
|
+
questions: SuggestedQuestion[];
|
|
13
|
+
onQuestionClick: (question: string, actionId?: string) => void;
|
|
10
14
|
}
|
|
11
15
|
export declare const SuggestedQuestions: React.FC<SuggestedQuestionsProps>;
|
|
16
|
+
export {};
|
|
12
17
|
//# sourceMappingURL=SuggestedQuestions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuggestedQuestions.d.ts","sourceRoot":"","sources":["../../src/components/SuggestedQuestions.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SuggestedQuestions.d.ts","sourceRoot":"","sources":["../../src/components/SuggestedQuestions.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,iBAAiB,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAChE;AAuBD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA4ChE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolMessageGroup.d.ts","sourceRoot":"","sources":["../../src/components/ToolMessageGroup.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolMessageGroup.d.ts","sourceRoot":"","sources":["../../src/components/ToolMessageGroup.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CACjC;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA+C5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypingIndicator.d.ts","sourceRoot":"","sources":["../../src/components/TypingIndicator.tsx"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"TypingIndicator.d.ts","sourceRoot":"","sources":["../../src/components/TypingIndicator.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAMnC,CAAC"}
|
package/dist/hooks/useChat.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { ConversationMessage, WidgetConfig } from '../types';
|
|
|
6
6
|
export interface UseChatOptions {
|
|
7
7
|
widgetId: string;
|
|
8
8
|
apiUrl: string;
|
|
9
|
+
currentRoute?: string;
|
|
9
10
|
onMessage?: (message: ConversationMessage) => void;
|
|
10
11
|
onError?: (error: Error) => void;
|
|
11
12
|
skipInitialization?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChat.d.ts","sourceRoot":"","sources":["../../src/hooks/useChat.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,mBAAmB,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"useChat.d.ts","sourceRoot":"","sources":["../../src/hooks/useChat.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAA2E,MAAM,UAAU,CAAC;AAetI,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EA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