@chrryai/chrry 1.4.81 → 1.4.82
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 +4 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -489,7 +489,7 @@ var init_locales = __esm({
|
|
|
489
489
|
|
|
490
490
|
// utils/siteConfig.ts
|
|
491
491
|
function detectSiteModeDomain(hostname2, mode) {
|
|
492
|
-
const defaultMode = process.env.MODE || import_meta
|
|
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("://")) {
|
|
@@ -1901,7 +1901,7 @@ var init_utils = __esm({
|
|
|
1901
1901
|
};
|
|
1902
1902
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
1903
1903
|
config = getSiteConfig(getClientHostname());
|
|
1904
|
-
VERSION = config.version || "1.4.
|
|
1904
|
+
VERSION = config.version || "1.4.82";
|
|
1905
1905
|
getSlugFromPathname = (path) => {
|
|
1906
1906
|
return getAppAndStoreSlugs(path, {
|
|
1907
1907
|
defaultAppSlug: config.slug,
|
|
@@ -24063,7 +24063,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24063
24063
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24064
24064
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24065
24065
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24066
|
-
const VERSION4 = "1.4.
|
|
24066
|
+
const VERSION4 = "1.4.82";
|
|
24067
24067
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24068
24068
|
const {
|
|
24069
24069
|
API_URL: API_URL2,
|
|
@@ -37893,11 +37893,7 @@ Return ONLY ONE WORD: ${apps.map((a) => a.name).join(", ")}, or "none"`;
|
|
|
37893
37893
|
setIsLoading(true);
|
|
37894
37894
|
playNotification();
|
|
37895
37895
|
if (!suggestSaveApp) {
|
|
37896
|
-
if (
|
|
37897
|
-
import_react_hot_toast9.default.success(t6("Generating AI thread title, keep calm..."), {
|
|
37898
|
-
duration: 6e3
|
|
37899
|
-
});
|
|
37900
|
-
} else if (isImageGenerationEnabled) {
|
|
37896
|
+
if (isImageGenerationEnabled) {
|
|
37901
37897
|
import_react_hot_toast9.default.success(t6("Generating image, keep calm..."), {
|
|
37902
37898
|
duration: 6e3
|
|
37903
37899
|
});
|