@chrryai/chrry 1.4.79 → 1.4.81
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 +8 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -488,8 +488,8 @@ var init_locales = __esm({
|
|
|
488
488
|
});
|
|
489
489
|
|
|
490
490
|
// utils/siteConfig.ts
|
|
491
|
-
function detectSiteModeDomain(hostname2) {
|
|
492
|
-
const defaultMode = "
|
|
491
|
+
function detectSiteModeDomain(hostname2, mode) {
|
|
492
|
+
const defaultMode = process.env.MODE || import_meta.env?.VITE_SITE_MODE || mode || "vex";
|
|
493
493
|
const rawHost = hostname2 || (typeof window !== "undefined" ? window?.location?.hostname : "") || "";
|
|
494
494
|
let host = rawHost?.trim().toLowerCase();
|
|
495
495
|
if (host?.includes("://")) {
|
|
@@ -732,7 +732,7 @@ function getSiteConfig(hostnameOrMode) {
|
|
|
732
732
|
favicon: "focus",
|
|
733
733
|
mode: "focus",
|
|
734
734
|
slug: "focus",
|
|
735
|
-
version: "26.10.
|
|
735
|
+
version: "26.10.38",
|
|
736
736
|
storeSlug: "blossom",
|
|
737
737
|
name: "Focus",
|
|
738
738
|
domain: "focus.chrry.ai",
|
|
@@ -1119,9 +1119,11 @@ function getSiteConfig(hostnameOrMode) {
|
|
|
1119
1119
|
]
|
|
1120
1120
|
};
|
|
1121
1121
|
}
|
|
1122
|
+
var import_meta;
|
|
1122
1123
|
var init_siteConfig = __esm({
|
|
1123
1124
|
"utils/siteConfig.ts"() {
|
|
1124
1125
|
"use strict";
|
|
1126
|
+
import_meta = {};
|
|
1125
1127
|
}
|
|
1126
1128
|
});
|
|
1127
1129
|
|
|
@@ -1899,7 +1901,7 @@ var init_utils = __esm({
|
|
|
1899
1901
|
};
|
|
1900
1902
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
1901
1903
|
config = getSiteConfig(getClientHostname());
|
|
1902
|
-
VERSION = config.version || "1.4.
|
|
1904
|
+
VERSION = config.version || "1.4.81";
|
|
1903
1905
|
getSlugFromPathname = (path) => {
|
|
1904
1906
|
return getAppAndStoreSlugs(path, {
|
|
1905
1907
|
defaultAppSlug: config.slug,
|
|
@@ -22984,7 +22986,7 @@ function AuthProvider({
|
|
|
22984
22986
|
}
|
|
22985
22987
|
}, [deviceId, setDeviceId, isStorageReady]);
|
|
22986
22988
|
const [enableNotifications, setEnableNotifications] = useLocalStorage2("enableNotifications", true);
|
|
22987
|
-
const [shouldFetchSession, setShouldFetchSession] = (0, import_react19.useState)(
|
|
22989
|
+
const [shouldFetchSession, setShouldFetchSession] = (0, import_react19.useState)(!session2);
|
|
22988
22990
|
const [fingerprint, setFingerprint] = useCookieOrLocalStorage(
|
|
22989
22991
|
"fingerprint",
|
|
22990
22992
|
session2?.guest?.fingerprint || session2?.user?.fingerprint || fingerprintParam
|
|
@@ -22994,7 +22996,6 @@ function AuthProvider({
|
|
|
22994
22996
|
session2?.user?.token || session2?.guest?.fingerprint || apiKey,
|
|
22995
22997
|
isExtension2
|
|
22996
22998
|
);
|
|
22997
|
-
console.log(`\u{1F680} ~ DataProvider ~ token:`, token);
|
|
22998
22999
|
const [isCookieReady, setIsCookieReady] = (0, import_react19.useState)(false);
|
|
22999
23000
|
(0, import_react19.useEffect)(() => {
|
|
23000
23001
|
if (isExtension2) {
|
|
@@ -23021,7 +23022,6 @@ function AuthProvider({
|
|
|
23021
23022
|
}
|
|
23022
23023
|
}, [isExtension2]);
|
|
23023
23024
|
const setToken = (token2) => {
|
|
23024
|
-
console.log(`\u{1F680} ~ setToken ~ token:`, token2);
|
|
23025
23025
|
setTokenInternal(token2 || "");
|
|
23026
23026
|
};
|
|
23027
23027
|
(0, import_react19.useEffect)(() => {
|
|
@@ -23744,10 +23744,6 @@ function AuthProvider({
|
|
|
23744
23744
|
if (sessionData) {
|
|
23745
23745
|
setSession(sessionData);
|
|
23746
23746
|
if (sessionData.migratedFromGuest) {
|
|
23747
|
-
console.log(
|
|
23748
|
-
`\u{1F680} ~ AuthProvider ~ sessionData.migratedFromGuest):`,
|
|
23749
|
-
sessionData.migratedFromGuest
|
|
23750
|
-
);
|
|
23751
23747
|
migratedFromGuestRef.current = sessionData.migratedFromGuest;
|
|
23752
23748
|
}
|
|
23753
23749
|
if (sessionData.user) {
|
|
@@ -24067,7 +24063,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24067
24063
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24068
24064
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24069
24065
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24070
|
-
const VERSION4 = "1.4.
|
|
24066
|
+
const VERSION4 = "1.4.81";
|
|
24071
24067
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24072
24068
|
const {
|
|
24073
24069
|
API_URL: API_URL2,
|
|
@@ -37409,7 +37405,6 @@ Return ONLY ONE WORD: ${apps.map((a) => a.name).join(", ")}, or "none"`;
|
|
|
37409
37405
|
}
|
|
37410
37406
|
};
|
|
37411
37407
|
const clearFiles = () => setFiles([]);
|
|
37412
|
-
console.log(`\u{1F680} ~ file: hat.tsx:1047 ~ device:`, device);
|
|
37413
37408
|
const removeFile = (index) => {
|
|
37414
37409
|
setFilesInternal((prev2) => prev2.filter((_, i) => i !== index));
|
|
37415
37410
|
device === "desktop" && setShouldFocus(true);
|