@athenaintel/react 0.10.7 → 0.10.9

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 CHANGED
@@ -58705,6 +58705,7 @@ const MENTION_TYPES = {
58705
58705
  }
58706
58706
  };
58707
58707
  function getMentionConfig(type) {
58708
+ if (!type) return null;
58708
58709
  const exact = MENTION_TYPES[type];
58709
58710
  if (exact) return exact;
58710
58711
  const lower = type.toLowerCase();
@@ -66631,7 +66632,8 @@ function useAthenaThreadManager() {
66631
66632
  var _a2;
66632
66633
  return (_a2 = s.metadata) == null ? void 0 : _a2.remoteId;
66633
66634
  } });
66634
- const isLoading = useThreadList({ optional: true, selector: (s) => s.isLoading });
66635
+ const isThreadLoading = useThread({ optional: true, selector: (s) => s.isLoading }) ?? false;
66636
+ const isListLoading = useThreadList({ optional: true, selector: (s) => s.isLoading });
66635
66637
  const runtimeRef = React.useRef(runtime);
66636
66638
  runtimeRef.current = runtime;
66637
66639
  const switchToThread = React.useCallback(
@@ -66644,16 +66646,17 @@ function useAthenaThreadManager() {
66644
66646
  );
66645
66647
  const activeThreadId = remoteId ?? null;
66646
66648
  return React.useMemo(() => {
66647
- if (!runtime || isLoading == null) {
66649
+ if (!runtime || isListLoading == null) {
66648
66650
  return null;
66649
66651
  }
66650
66652
  return {
66651
66653
  activeThreadId,
66652
- isLoading,
66654
+ isListLoading,
66655
+ isThreadLoading,
66653
66656
  switchToThread,
66654
66657
  switchToNewThread
66655
66658
  };
66656
- }, [runtime, activeThreadId, isLoading, switchToThread, switchToNewThread]);
66659
+ }, [runtime, activeThreadId, isListLoading, isThreadLoading, switchToThread, switchToNewThread]);
66657
66660
  }
66658
66661
  function useAppendToComposer() {
66659
66662
  const aui = useAui();