@chrryai/chrry 1.2.95 → 1.2.96

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.d.mts CHANGED
@@ -780,7 +780,7 @@ declare const isFirefox: boolean;
780
780
  declare function getFlag({ code }: {
781
781
  code?: string;
782
782
  }): string;
783
- declare const VERSION = "1.2.95";
783
+ declare const VERSION = "1.2.96";
784
784
  type instructionBase = {
785
785
  id: string;
786
786
  title: string;
package/dist/index.d.ts CHANGED
@@ -780,7 +780,7 @@ declare const isFirefox: boolean;
780
780
  declare function getFlag({ code }: {
781
781
  code?: string;
782
782
  }): string;
783
- declare const VERSION = "1.2.95";
783
+ declare const VERSION = "1.2.96";
784
784
  type instructionBase = {
785
785
  id: string;
786
786
  title: string;
package/dist/index.js CHANGED
@@ -21282,7 +21282,7 @@ function DataProvider({
21282
21282
  const [instructions, setInstructions] = (0, import_react14.useState)([]);
21283
21283
  const [affiliateStats, setAffiliateStats] = (0, import_react14.useState)(null);
21284
21284
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react14.useState)(false);
21285
- const VERSION3 = "1.2.95";
21285
+ const VERSION3 = "1.2.96";
21286
21286
  const [weather, setWeather] = useLocalStorage("weather", user?.weather || guest?.weather || void 0);
21287
21287
  const {
21288
21288
  API_URL: API_URL2,
@@ -22367,7 +22367,7 @@ var init_utils = __esm({
22367
22367
  window.history.replaceState({}, "", newUrl);
22368
22368
  };
22369
22369
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
22370
- VERSION = "1.2.95";
22370
+ VERSION = "1.2.96";
22371
22371
  getSlugFromPathname = (path) => {
22372
22372
  const siteConfig = getSiteConfig();
22373
22373
  return getAppAndStoreSlugs(path, {
@@ -35545,7 +35545,7 @@ function CharacterProfile({
35545
35545
  }, [props.characterProfile]);
35546
35546
  const { t: t6 } = useAppContext();
35547
35547
  const { token, user, guest, setUser, setGuest, setShowCharacterProfiles } = useAuth();
35548
- const { thread: thread2, setShouldRefetchThread } = useChat();
35548
+ const { thread: thread2, refetchThread } = useChat();
35549
35549
  const [showActions, setShowActions] = (0, import_react57.useState)(props.showActions);
35550
35550
  const [isPinning, setIsPinning] = (0, import_react57.useState)(false);
35551
35551
  const [isSharing, setIsSharing] = (0, import_react57.useState)(false);
@@ -35571,7 +35571,7 @@ function CharacterProfile({
35571
35571
  const updatedGuest = await actions.getGuest();
35572
35572
  setGuest(updatedGuest);
35573
35573
  }
35574
- thread2?.characterProfile?.id === characterProfile.id && setShouldRefetchThread(true);
35574
+ thread2?.characterProfile?.id === characterProfile.id && await refetchThread();
35575
35575
  } catch (error) {
35576
35576
  console.error("Error pinning thread:", error);
35577
35577
  } finally {
@@ -35594,7 +35594,7 @@ function CharacterProfile({
35594
35594
  visibility: response?.characterProfileVisibility,
35595
35595
  pinned: response?.pinCharacterProfile
35596
35596
  };
35597
- thread2?.characterProfile?.id === characterProfile.id && setShouldRefetchThread(true);
35597
+ thread2?.characterProfile?.id === characterProfile.id && await refetchThread();
35598
35598
  setCharacterProfile(newCharacterProfile);
35599
35599
  } catch (error) {
35600
35600
  console.error("Error pinning thread:", error);