@chrryai/chrry 1.7.2 → 1.7.4

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
@@ -3153,7 +3153,7 @@ var init_utils = __esm({
3153
3153
  };
3154
3154
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
3155
3155
  config = getSiteConfig(getClientHostname2());
3156
- VERSION = config.version || "1.7.2";
3156
+ VERSION = config.version || "1.7.4";
3157
3157
  getSlugFromPathname = (path) => {
3158
3158
  return getAppAndStoreSlugs(path, {
3159
3159
  defaultAppSlug: config.slug,
@@ -24702,7 +24702,7 @@ function DataProvider({ children, ...rest }) {
24702
24702
  const [instructions, setInstructions] = (0, import_react21.useState)([]);
24703
24703
  const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
24704
24704
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
24705
- const VERSION4 = "1.7.2";
24705
+ const VERSION4 = "1.7.4";
24706
24706
  const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
24707
24707
  const {
24708
24708
  API_URL: API_URL2,
@@ -31821,7 +31821,7 @@ function EnableNotifications({
31821
31821
  }
31822
31822
  };
31823
31823
  if (!isMounted) return null;
31824
- const shouldShow = (device !== "mobile" || isStandalone2) && !isExtension2 && (isDevelopment || (user || guest)?.lastMessage) && isSubscribed === false && swRegistration;
31824
+ const shouldShow = !isExtension2 && (isDevelopment || (user || guest)?.lastMessage) && isSubscribed === false && swRegistration;
31825
31825
  return /* @__PURE__ */ import_react42.default.createElement(Div, { style: styles4.enableNotificationsContainer.style }, /* @__PURE__ */ import_react42.default.createElement(Weather, { onLocationClick, showLocation: !shouldShow }), isMounted && shouldShow && /* @__PURE__ */ import_react42.default.createElement(Div, { style: styles4.enableNotifications.style }, /* @__PURE__ */ import_react42.default.createElement(
31826
31826
  Button,
31827
31827
  {
@@ -42925,7 +42925,8 @@ function SignIn({
42925
42925
  return;
42926
42926
  } else {
42927
42927
  const redirectUrl2 = signInResult?.url || successUrl.toString();
42928
- window.location.href = redirectUrl2;
42928
+ console.log(`\u{1F680} ~ handleLogin ~ redirectUrl:`, redirectUrl2);
42929
+ window.location.href = `${redirectUrl2}?auth_token=${signInResult?.token}`;
42929
42930
  }
42930
42931
  };
42931
42932
  const [email, setEmail] = import_react64.default.useState("");