orchid-ai 1.2.1 → 1.2.3
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.
|
@@ -49,7 +49,7 @@ interface ChatPanelProps {
|
|
|
49
49
|
query: string;
|
|
50
50
|
context?: string;
|
|
51
51
|
} | undefined>>;
|
|
52
|
-
headerIcon?: IconName;
|
|
52
|
+
headerIcon?: IconName | React.ReactElement;
|
|
53
53
|
headerTitle?: string;
|
|
54
54
|
headerSubtitle?: string;
|
|
55
55
|
}
|
|
@@ -79,7 +79,7 @@ interface ChatPanelProps {
|
|
|
79
79
|
* @param chatLevel - Optional chat level - 'full' or 'basic' or 'none'
|
|
80
80
|
* @param initialQuery - Optional initial query to send when modal opens
|
|
81
81
|
* @param setInitialQuery - Optional function to set/clear the initial query
|
|
82
|
-
* @param headerIcon - Optional icon
|
|
82
|
+
* @param headerIcon - Optional icon to display in header - can be IconName string or React component (default: 'command' bot icon)
|
|
83
83
|
* @param headerTitle - Optional header title text (default: 'AI Logistics & Customs Expert')
|
|
84
84
|
* @param headerSubtitle - Optional header subtitle text (default: 'Ready to assist you with your queries')
|
|
85
85
|
*/
|
|
@@ -49,7 +49,7 @@ interface ChatPanelProps {
|
|
|
49
49
|
query: string;
|
|
50
50
|
context?: string;
|
|
51
51
|
} | undefined>>;
|
|
52
|
-
headerIcon?: IconName;
|
|
52
|
+
headerIcon?: IconName | React.ReactElement;
|
|
53
53
|
headerTitle?: string;
|
|
54
54
|
headerSubtitle?: string;
|
|
55
55
|
}
|
|
@@ -79,7 +79,7 @@ interface ChatPanelProps {
|
|
|
79
79
|
* @param chatLevel - Optional chat level - 'full' or 'basic' or 'none'
|
|
80
80
|
* @param initialQuery - Optional initial query to send when modal opens
|
|
81
81
|
* @param setInitialQuery - Optional function to set/clear the initial query
|
|
82
|
-
* @param headerIcon - Optional icon
|
|
82
|
+
* @param headerIcon - Optional icon to display in header - can be IconName string or React component (default: 'command' bot icon)
|
|
83
83
|
* @param headerTitle - Optional header title text (default: 'AI Logistics & Customs Expert')
|
|
84
84
|
* @param headerSubtitle - Optional header subtitle text (default: 'Ready to assist you with your queries')
|
|
85
85
|
*/
|
package/dist/index.esm.js
CHANGED
|
@@ -3030,7 +3030,7 @@ const getTextFromMessage = (msg) => {
|
|
|
3030
3030
|
* @param chatLevel - Optional chat level - 'full' or 'basic' or 'none'
|
|
3031
3031
|
* @param initialQuery - Optional initial query to send when modal opens
|
|
3032
3032
|
* @param setInitialQuery - Optional function to set/clear the initial query
|
|
3033
|
-
* @param headerIcon - Optional icon
|
|
3033
|
+
* @param headerIcon - Optional icon to display in header - can be IconName string or React component (default: 'command' bot icon)
|
|
3034
3034
|
* @param headerTitle - Optional header title text (default: 'AI Logistics & Customs Expert')
|
|
3035
3035
|
* @param headerSubtitle - Optional header subtitle text (default: 'Ready to assist you with your queries')
|
|
3036
3036
|
*/
|
|
@@ -3235,7 +3235,7 @@ headerTitle = 'AI Logistics & Customs Expert', headerSubtitle = 'Ready to assist
|
|
|
3235
3235
|
}, ref: containerRef, onClick: (e) => e.stopPropagation(), children: [jsx("div", { className: `flex items-center justify-between px-6 py-4 border-b min-h-[72px] transition-all duration-500 delay-100 ${isOpen ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-2'}`, style: {
|
|
3236
3236
|
borderColor: finalTheme.colors.border.primary,
|
|
3237
3237
|
backgroundColor: finalTheme.colors.background.primary,
|
|
3238
|
-
}, children: jsxs("div", { className: "flex items-center gap-3", children: [jsx("span", { className: `inline-flex items-center justify-center rounded-full w-8 h-8 transition-all duration-500 delay-200 ${isOpen ? 'opacity-100 scale-100 rotate-0' : 'opacity-0 scale-75 rotate-12'}`, style: { backgroundColor: finalTheme.colors.primary[600] }, children: jsx(Icon, { name: headerIcon, size: "sm", style: { color: finalTheme.colors.text.primary } }) }), jsxs("div", { className: `transition-all duration-500 delay-300 ${isOpen ? 'opacity-100 translate-x-0' : 'opacity-0 translate-x-2'}`, children: [jsx("div", { className: "font-bold text-lg leading-tight", style: { color: finalTheme.colors.text.primary }, children: headerTitle }), jsx("div", { className: "text-xs", style: { color: finalTheme.colors.text.tertiary }, children: headerSubtitle })] })] }) }), jsxs("div", { className: `flex flex-1 min-h-0 h-full transition-all duration-500 delay-200 ${isOpen ? 'opacity-100 scale-100' : 'opacity-0 scale-95'}`, children: [showHistory && (jsx(ChatHistorySidebar, { chats: chats || {}, currentChatId: currentChatId || 'default', switchChat: () => { }, newChat: () => { }, theme: finalTheme, isOpen: isOpen })), jsx("div", { className: "flex-1 flex flex-col min-h-0 h-full", children: jsx("div", { className: `flex-1 px-6 py-4 min-h-0 transition-all duration-500 delay-300 ${isOpen ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-4'}`, style: {
|
|
3238
|
+
}, children: jsxs("div", { className: "flex items-center gap-3", children: [jsx("span", { className: `inline-flex items-center justify-center rounded-full w-8 h-8 transition-all duration-500 delay-200 ${isOpen ? 'opacity-100 scale-100 rotate-0' : 'opacity-0 scale-75 rotate-12'}`, style: { backgroundColor: finalTheme.colors.primary[600] }, children: typeof headerIcon === 'string' ? (jsx(Icon, { name: headerIcon, size: "sm", style: { color: finalTheme.colors.text.primary } })) : (headerIcon || (jsx(Icon, { name: "command", size: "sm", style: { color: finalTheme.colors.text.primary } }))) }), jsxs("div", { className: `transition-all duration-500 delay-300 ${isOpen ? 'opacity-100 translate-x-0' : 'opacity-0 translate-x-2'}`, children: [jsx("div", { className: "font-bold text-lg leading-tight", style: { color: finalTheme.colors.text.primary }, children: headerTitle }), jsx("div", { className: "text-xs", style: { color: finalTheme.colors.text.tertiary }, children: headerSubtitle })] })] }) }), jsxs("div", { className: `flex flex-1 min-h-0 h-full transition-all duration-500 delay-200 ${isOpen ? 'opacity-100 scale-100' : 'opacity-0 scale-95'}`, children: [showHistory && (jsx(ChatHistorySidebar, { chats: chats || {}, currentChatId: currentChatId || 'default', switchChat: () => { }, newChat: () => { }, theme: finalTheme, isOpen: isOpen })), jsx("div", { className: "flex-1 flex flex-col min-h-0 h-full", children: jsx("div", { className: `flex-1 px-6 py-4 min-h-0 transition-all duration-500 delay-300 ${isOpen ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-4'}`, style: {
|
|
3239
3239
|
backgroundColor: finalTheme.colors.background.primary,
|
|
3240
3240
|
}, children: jsx(Conversation, { onSuggestionClick: handleSuggestionClick, theme: finalTheme, showProfileBubbles: showProfileBubbles, autoScroll: true, showInput: true,
|
|
3241
3241
|
// AI functionality props
|
package/dist/index.js
CHANGED
|
@@ -3032,7 +3032,7 @@ const getTextFromMessage = (msg) => {
|
|
|
3032
3032
|
* @param chatLevel - Optional chat level - 'full' or 'basic' or 'none'
|
|
3033
3033
|
* @param initialQuery - Optional initial query to send when modal opens
|
|
3034
3034
|
* @param setInitialQuery - Optional function to set/clear the initial query
|
|
3035
|
-
* @param headerIcon - Optional icon
|
|
3035
|
+
* @param headerIcon - Optional icon to display in header - can be IconName string or React component (default: 'command' bot icon)
|
|
3036
3036
|
* @param headerTitle - Optional header title text (default: 'AI Logistics & Customs Expert')
|
|
3037
3037
|
* @param headerSubtitle - Optional header subtitle text (default: 'Ready to assist you with your queries')
|
|
3038
3038
|
*/
|
|
@@ -3237,7 +3237,7 @@ headerTitle = 'AI Logistics & Customs Expert', headerSubtitle = 'Ready to assist
|
|
|
3237
3237
|
}, ref: containerRef, onClick: (e) => e.stopPropagation(), children: [jsxRuntime.jsx("div", { className: `flex items-center justify-between px-6 py-4 border-b min-h-[72px] transition-all duration-500 delay-100 ${isOpen ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-2'}`, style: {
|
|
3238
3238
|
borderColor: finalTheme.colors.border.primary,
|
|
3239
3239
|
backgroundColor: finalTheme.colors.background.primary,
|
|
3240
|
-
}, children: jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [jsxRuntime.jsx("span", { className: `inline-flex items-center justify-center rounded-full w-8 h-8 transition-all duration-500 delay-200 ${isOpen ? 'opacity-100 scale-100 rotate-0' : 'opacity-0 scale-75 rotate-12'}`, style: { backgroundColor: finalTheme.colors.primary[600] }, children: jsxRuntime.jsx(Icon, { name: headerIcon, size: "sm", style: { color: finalTheme.colors.text.primary } }) }), jsxRuntime.jsxs("div", { className: `transition-all duration-500 delay-300 ${isOpen ? 'opacity-100 translate-x-0' : 'opacity-0 translate-x-2'}`, children: [jsxRuntime.jsx("div", { className: "font-bold text-lg leading-tight", style: { color: finalTheme.colors.text.primary }, children: headerTitle }), jsxRuntime.jsx("div", { className: "text-xs", style: { color: finalTheme.colors.text.tertiary }, children: headerSubtitle })] })] }) }), jsxRuntime.jsxs("div", { className: `flex flex-1 min-h-0 h-full transition-all duration-500 delay-200 ${isOpen ? 'opacity-100 scale-100' : 'opacity-0 scale-95'}`, children: [showHistory && (jsxRuntime.jsx(ChatHistorySidebar, { chats: chats || {}, currentChatId: currentChatId || 'default', switchChat: () => { }, newChat: () => { }, theme: finalTheme, isOpen: isOpen })), jsxRuntime.jsx("div", { className: "flex-1 flex flex-col min-h-0 h-full", children: jsxRuntime.jsx("div", { className: `flex-1 px-6 py-4 min-h-0 transition-all duration-500 delay-300 ${isOpen ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-4'}`, style: {
|
|
3240
|
+
}, children: jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [jsxRuntime.jsx("span", { className: `inline-flex items-center justify-center rounded-full w-8 h-8 transition-all duration-500 delay-200 ${isOpen ? 'opacity-100 scale-100 rotate-0' : 'opacity-0 scale-75 rotate-12'}`, style: { backgroundColor: finalTheme.colors.primary[600] }, children: typeof headerIcon === 'string' ? (jsxRuntime.jsx(Icon, { name: headerIcon, size: "sm", style: { color: finalTheme.colors.text.primary } })) : (headerIcon || (jsxRuntime.jsx(Icon, { name: "command", size: "sm", style: { color: finalTheme.colors.text.primary } }))) }), jsxRuntime.jsxs("div", { className: `transition-all duration-500 delay-300 ${isOpen ? 'opacity-100 translate-x-0' : 'opacity-0 translate-x-2'}`, children: [jsxRuntime.jsx("div", { className: "font-bold text-lg leading-tight", style: { color: finalTheme.colors.text.primary }, children: headerTitle }), jsxRuntime.jsx("div", { className: "text-xs", style: { color: finalTheme.colors.text.tertiary }, children: headerSubtitle })] })] }) }), jsxRuntime.jsxs("div", { className: `flex flex-1 min-h-0 h-full transition-all duration-500 delay-200 ${isOpen ? 'opacity-100 scale-100' : 'opacity-0 scale-95'}`, children: [showHistory && (jsxRuntime.jsx(ChatHistorySidebar, { chats: chats || {}, currentChatId: currentChatId || 'default', switchChat: () => { }, newChat: () => { }, theme: finalTheme, isOpen: isOpen })), jsxRuntime.jsx("div", { className: "flex-1 flex flex-col min-h-0 h-full", children: jsxRuntime.jsx("div", { className: `flex-1 px-6 py-4 min-h-0 transition-all duration-500 delay-300 ${isOpen ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-4'}`, style: {
|
|
3241
3241
|
backgroundColor: finalTheme.colors.background.primary,
|
|
3242
3242
|
}, children: jsxRuntime.jsx(Conversation, { onSuggestionClick: handleSuggestionClick, theme: finalTheme, showProfileBubbles: showProfileBubbles, autoScroll: true, showInput: true,
|
|
3243
3243
|
// AI functionality props
|
|
@@ -49,7 +49,7 @@ interface ChatPanelProps {
|
|
|
49
49
|
query: string;
|
|
50
50
|
context?: string;
|
|
51
51
|
} | undefined>>;
|
|
52
|
-
headerIcon?: IconName;
|
|
52
|
+
headerIcon?: IconName | React.ReactElement;
|
|
53
53
|
headerTitle?: string;
|
|
54
54
|
headerSubtitle?: string;
|
|
55
55
|
}
|
|
@@ -79,7 +79,7 @@ interface ChatPanelProps {
|
|
|
79
79
|
* @param chatLevel - Optional chat level - 'full' or 'basic' or 'none'
|
|
80
80
|
* @param initialQuery - Optional initial query to send when modal opens
|
|
81
81
|
* @param setInitialQuery - Optional function to set/clear the initial query
|
|
82
|
-
* @param headerIcon - Optional icon
|
|
82
|
+
* @param headerIcon - Optional icon to display in header - can be IconName string or React component (default: 'command' bot icon)
|
|
83
83
|
* @param headerTitle - Optional header title text (default: 'AI Logistics & Customs Expert')
|
|
84
84
|
* @param headerSubtitle - Optional header subtitle text (default: 'Ready to assist you with your queries')
|
|
85
85
|
*/
|