@axiom-lattice/react-sdk 2.1.113 → 2.1.114

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.mjs CHANGED
@@ -137,6 +137,11 @@ var AuthProvider = ({
137
137
  sessionStorage.clear();
138
138
  onLogout?.();
139
139
  }, [onLogout]);
140
+ useEffect(() => {
141
+ const handler = () => logout();
142
+ window.addEventListener("lattice:unauthorized", handler);
143
+ return () => window.removeEventListener("lattice:unauthorized", handler);
144
+ }, [logout]);
140
145
  const selectTenant = useCallback(async (tenantId) => {
141
146
  if (!user) return;
142
147
  setIsLoading(true);
@@ -15247,7 +15252,7 @@ var ClarifyFeedback = ({
15247
15252
  const handleFileUpload = (info) => {
15248
15253
  if (info.file.status === "done") {
15249
15254
  const response = info.file.response;
15250
- const filePath = response?.id || response?.path || info.file.name;
15255
+ const filePath = response?.data?.path || info.file.name;
15251
15256
  setAnswers((prev) => ({
15252
15257
  ...prev,
15253
15258
  [currentStep]: {