@usecrow/ui 0.1.28 → 0.1.30
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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -568,8 +568,8 @@ declare function useChat({ productId, apiUrl, persistAnonymousConversations, wel
|
|
|
568
568
|
isLoading: boolean;
|
|
569
569
|
activeToolCalls: ToolCall[];
|
|
570
570
|
conversationId: string | null;
|
|
571
|
-
selectedModel: string;
|
|
572
|
-
setSelectedModel: react.Dispatch<react.SetStateAction<string>>;
|
|
571
|
+
selectedModel: string | undefined;
|
|
572
|
+
setSelectedModel: react.Dispatch<react.SetStateAction<string | undefined>>;
|
|
573
573
|
setConversationId: react.Dispatch<react.SetStateAction<string | null>>;
|
|
574
574
|
sendMessage: (content: string) => {
|
|
575
575
|
userMsgId: string;
|
|
@@ -606,7 +606,7 @@ interface UseWorkflowOptions {
|
|
|
606
606
|
productId: string;
|
|
607
607
|
apiUrl?: string;
|
|
608
608
|
conversationId: string | null;
|
|
609
|
-
selectedModel
|
|
609
|
+
selectedModel?: string;
|
|
610
610
|
onMessage?: (content: string) => void;
|
|
611
611
|
}
|
|
612
612
|
declare function useWorkflow({ productId, apiUrl, conversationId, selectedModel, onMessage, }: UseWorkflowOptions): {
|
package/dist/index.d.ts
CHANGED
|
@@ -568,8 +568,8 @@ declare function useChat({ productId, apiUrl, persistAnonymousConversations, wel
|
|
|
568
568
|
isLoading: boolean;
|
|
569
569
|
activeToolCalls: ToolCall[];
|
|
570
570
|
conversationId: string | null;
|
|
571
|
-
selectedModel: string;
|
|
572
|
-
setSelectedModel: react.Dispatch<react.SetStateAction<string>>;
|
|
571
|
+
selectedModel: string | undefined;
|
|
572
|
+
setSelectedModel: react.Dispatch<react.SetStateAction<string | undefined>>;
|
|
573
573
|
setConversationId: react.Dispatch<react.SetStateAction<string | null>>;
|
|
574
574
|
sendMessage: (content: string) => {
|
|
575
575
|
userMsgId: string;
|
|
@@ -606,7 +606,7 @@ interface UseWorkflowOptions {
|
|
|
606
606
|
productId: string;
|
|
607
607
|
apiUrl?: string;
|
|
608
608
|
conversationId: string | null;
|
|
609
|
-
selectedModel
|
|
609
|
+
selectedModel?: string;
|
|
610
610
|
onMessage?: (content: string) => void;
|
|
611
611
|
}
|
|
612
612
|
declare function useWorkflow({ productId, apiUrl, conversationId, selectedModel, onMessage, }: UseWorkflowOptions): {
|
package/dist/index.js
CHANGED
|
@@ -67,7 +67,7 @@ function useChat({
|
|
|
67
67
|
const [isLoading, setIsLoading] = useState(false);
|
|
68
68
|
const [activeToolCalls, setActiveToolCalls] = useState([]);
|
|
69
69
|
const [conversationId, setConversationId] = useState(null);
|
|
70
|
-
const [selectedModel, setSelectedModel] = useState(initialSelectedModel
|
|
70
|
+
const [selectedModel, setSelectedModel] = useState(initialSelectedModel);
|
|
71
71
|
const abortControllerRef = useRef(null);
|
|
72
72
|
const hasCheckedPersistRef = useRef(false);
|
|
73
73
|
const streamingToolCallsRef = useRef([]);
|
|
@@ -2840,7 +2840,7 @@ function CrowWidget({
|
|
|
2840
2840
|
});
|
|
2841
2841
|
const agentName = agentNameProp ?? agentNameFromAPI;
|
|
2842
2842
|
const welcomeMessage = welcomeMessageProp ?? welcomeMessageFromAPI;
|
|
2843
|
-
const selectedModel = selectedModelFromAPI
|
|
2843
|
+
const selectedModel = selectedModelFromAPI;
|
|
2844
2844
|
const showThinking = showThinkingProp ?? showThinkingFromAPI;
|
|
2845
2845
|
const [autoTools, setAutoTools] = useState({});
|
|
2846
2846
|
const cssVars = stylesToCssVars(styles);
|