@axiom-lattice/react-sdk 2.1.102 → 2.1.103

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.js CHANGED
@@ -14515,6 +14515,10 @@ var ClarifyFeedback = ({
14515
14515
  const { questions } = data ?? {};
14516
14516
  const { sendMessage, assistantId, threadId, tenantId } = useAgentChat();
14517
14517
  const { config } = useLatticeChatShellContext();
14518
+ const workspaceContext = (0, import_react47.useContext)(WorkspaceContext);
14519
+ const workspaceId = workspaceContext?.workspaceId ?? null;
14520
+ const projectId = workspaceContext?.projectId ?? null;
14521
+ const uploadURL = config?.baseURL ? workspaceId && projectId ? `${config.baseURL}/api/workspaces/${workspaceId}/projects/${projectId}/uploadfile` : `${config.baseURL}/api/assistants/${assistantId}/threads/${threadId}/sandbox/uploadfile` : "";
14518
14522
  const [currentStep, setCurrentStep] = (0, import_react47.useState)(0);
14519
14523
  const [answers, setAnswers] = (0, import_react47.useState)({});
14520
14524
  const [submitted, setSubmitted] = (0, import_react47.useState)(false);
@@ -14538,7 +14542,6 @@ var ClarifyFeedback = ({
14538
14542
  }
14539
14543
  }));
14540
14544
  };
14541
- const uploadURL = config?.baseURL && assistantId && threadId ? `${config.baseURL}/api/assistants/${assistantId}/threads/${threadId}/sandbox/uploadfile` : "";
14542
14545
  const handleFileUpload = (info) => {
14543
14546
  if (info.file.status === "done") {
14544
14547
  const response = info.file.response;