@chrryai/chrry 1.6.70 → 1.6.73
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 +5 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -779,7 +779,7 @@ var init_siteConfig = __esm({
|
|
|
779
779
|
isStoreApp: false,
|
|
780
780
|
mode: "focus",
|
|
781
781
|
slug: "focus",
|
|
782
|
-
version: "26.10.
|
|
782
|
+
version: "26.10.60",
|
|
783
783
|
storeSlug: "blossom",
|
|
784
784
|
name: "Focus",
|
|
785
785
|
domain: "focus.chrry.ai",
|
|
@@ -3152,7 +3152,7 @@ var init_utils = __esm({
|
|
|
3152
3152
|
};
|
|
3153
3153
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
3154
3154
|
config = getSiteConfig(getClientHostname());
|
|
3155
|
-
VERSION = config.version || "1.6.
|
|
3155
|
+
VERSION = config.version || "1.6.73";
|
|
3156
3156
|
getSlugFromPathname = (path) => {
|
|
3157
3157
|
return getAppAndStoreSlugs(path, {
|
|
3158
3158
|
defaultAppSlug: config.slug,
|
|
@@ -24698,7 +24698,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24698
24698
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24699
24699
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24700
24700
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24701
|
-
const VERSION4 = "1.6.
|
|
24701
|
+
const VERSION4 = "1.6.73";
|
|
24702
24702
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24703
24703
|
const {
|
|
24704
24704
|
API_URL: API_URL2,
|
|
@@ -42871,12 +42871,10 @@ function SignIn({
|
|
|
42871
42871
|
}
|
|
42872
42872
|
const siteConfig = getSiteConfig(CHRRY_URL);
|
|
42873
42873
|
const baseUrl = isDevelopment ? FRONTEND_URL3 : siteConfig.url;
|
|
42874
|
-
console.log(`\u{1F680} ~ getCallbacks ~ isDevelopment:`, isDevelopment);
|
|
42875
42874
|
const errorUrl = new URL(baseUrl + "/?signIn=login&error");
|
|
42876
42875
|
const successUrl = new URL(
|
|
42877
42876
|
callbackUrl ? isCallbackUrlURI ? callbackUrl : baseUrl + callbackUrl : baseUrl
|
|
42878
42877
|
);
|
|
42879
|
-
console.log(`\u{1F680} ~ getCallbacks ~ successUrl:`, successUrl);
|
|
42880
42878
|
isExtensionRedirect && successUrl.searchParams.set("extension", "true");
|
|
42881
42879
|
return {
|
|
42882
42880
|
successUrl,
|
|
@@ -42962,9 +42960,9 @@ function SignIn({
|
|
|
42962
42960
|
if (urlParams.get("isApp") === "true")
|
|
42963
42961
|
successUrl.searchParams.set("isApp", "true");
|
|
42964
42962
|
await signInContext?.("google", {
|
|
42965
|
-
callbackUrl: successUrl.toString(),
|
|
42966
42963
|
redirect: true,
|
|
42967
|
-
errorUrl: errorUrl.href
|
|
42964
|
+
errorUrl: errorUrl.href,
|
|
42965
|
+
callbackUrl: successUrl.toString()
|
|
42968
42966
|
});
|
|
42969
42967
|
}
|
|
42970
42968
|
try {
|