@chrryai/chrry 1.2.59 → 1.2.61

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
@@ -782,7 +782,7 @@ declare const isFirefox: boolean;
782
782
  declare function getFlag({ code }: {
783
783
  code?: string;
784
784
  }): string;
785
- declare const VERSION = "1.2.59";
785
+ declare const VERSION = "1.2.61";
786
786
  type instructionBase = {
787
787
  id: string;
788
788
  title: string;
package/dist/index.d.ts CHANGED
@@ -782,7 +782,7 @@ declare const isFirefox: boolean;
782
782
  declare function getFlag({ code }: {
783
783
  code?: string;
784
784
  }): string;
785
- declare const VERSION = "1.2.59";
785
+ declare const VERSION = "1.2.61";
786
786
  type instructionBase = {
787
787
  id: string;
788
788
  title: string;
package/dist/index.js CHANGED
@@ -20661,7 +20661,7 @@ function DataProvider({
20661
20661
  const [instructions, setInstructions] = (0, import_react14.useState)([]);
20662
20662
  const [affiliateStats, setAffiliateStats] = (0, import_react14.useState)(null);
20663
20663
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react14.useState)(false);
20664
- const VERSION3 = "1.2.59";
20664
+ const VERSION3 = "1.2.61";
20665
20665
  const [weather, setWeather] = useLocalStorage("weather", user?.weather || guest?.weather || void 0);
20666
20666
  const {
20667
20667
  API_URL: API_URL2,
@@ -21702,7 +21702,7 @@ var init_utils = __esm({
21702
21702
  window.history.replaceState({}, "", newUrl);
21703
21703
  };
21704
21704
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
21705
- VERSION = "1.2.59";
21705
+ VERSION = "1.2.61";
21706
21706
  getSlugFromPathname = (path) => {
21707
21707
  const siteConfig = getSiteConfig();
21708
21708
  return getAppAndStoreSlugs(path, {
@@ -36920,17 +36920,8 @@ function Store({
36920
36920
  const { FRONTEND_URL: FRONTEND_URL4 } = useData();
36921
36921
  const { router, setIsNewChat, pathname, searchParams } = useNavigationContext();
36922
36922
  const { allApps, getAppSlug, setApp, app } = useAuth();
36923
- const { appSlug, storeSlug: storeSlugInternal } = getAppAndStoreSlugs(
36924
- pathname,
36925
- {
36926
- defaultAppSlug: app?.slug ?? "",
36927
- defaultStoreSlug: app?.store?.slug ?? "",
36928
- excludedRoutes: excludedSlugRoutes,
36929
- locales
36930
- }
36931
- );
36932
- const [storeSlug, setStoreSlug] = (0, import_react66.useState)(storeSlugInternal);
36933
- const matchedApp = allApps?.find((app2) => app2?.store?.slug === storeSlug) || allApps?.find((app2) => app2?.store?.slug === appSlug);
36923
+ const [storeSlug, setStoreSlug] = (0, import_react66.useState)(pathname.replace("/", ""));
36924
+ const matchedApp = allApps?.find((app2) => app2?.store?.slug === storeSlug);
36934
36925
  const store = matchedApp?.store;
36935
36926
  const apps = store?.apps;
36936
36927
  const baseApp = store?.app || apps?.find((app2) => app2?.id === store?.appId);
@@ -37146,8 +37137,6 @@ var init_Store = __esm({
37146
37137
  init_Store_styles();
37147
37138
  init_icons();
37148
37139
  init_platform();
37149
- init_url();
37150
- init_locales();
37151
37140
  }
37152
37141
  });
37153
37142
 
@@ -39585,7 +39574,7 @@ var init_Thread = __esm({
39585
39574
  }, [shouldRefetchThread]);
39586
39575
  const [status, setStatus] = (0, import_react76.useState)(null);
39587
39576
  const { actions } = useData();
39588
- const [shouldFetchThread, setShouldFetchThread] = (0, import_react76.useState)(!thread2);
39577
+ const [shouldFetchThread, setShouldFetchThread] = (0, import_react76.useState)(true);
39589
39578
  const {
39590
39579
  data: threadSWR,
39591
39580
  mutate,