@axiom-lattice/react-sdk 2.1.112 → 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.js CHANGED
@@ -276,6 +276,11 @@ var AuthProvider = ({
276
276
  sessionStorage.clear();
277
277
  onLogout?.();
278
278
  }, [onLogout]);
279
+ (0, import_react.useEffect)(() => {
280
+ const handler = () => logout();
281
+ window.addEventListener("lattice:unauthorized", handler);
282
+ return () => window.removeEventListener("lattice:unauthorized", handler);
283
+ }, [logout]);
279
284
  const selectTenant = (0, import_react.useCallback)(async (tenantId) => {
280
285
  if (!user) return;
281
286
  setIsLoading(true);
@@ -15205,7 +15210,7 @@ var ClarifyFeedback = ({
15205
15210
  const handleFileUpload = (info) => {
15206
15211
  if (info.file.status === "done") {
15207
15212
  const response = info.file.response;
15208
- const filePath = response?.id || response?.path || info.file.name;
15213
+ const filePath = response?.data?.path || info.file.name;
15209
15214
  setAnswers((prev) => ({
15210
15215
  ...prev,
15211
15216
  [currentStep]: {