@chrryai/chrry 1.5.52 → 1.5.53

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
@@ -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?.env?.VITE_SITE_MODE || mode || "zarathustra";
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("://")) {
@@ -773,7 +773,7 @@ var init_siteConfig = __esm({
773
773
  favicon: "focus",
774
774
  mode: "focus",
775
775
  slug: "focus",
776
- version: "26.10.48",
776
+ version: "26.10.49",
777
777
  storeSlug: "blossom",
778
778
  name: "Focus",
779
779
  domain: "focus.chrry.ai",
@@ -2093,7 +2093,7 @@ var init_utils = __esm({
2093
2093
  };
2094
2094
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
2095
2095
  config = getSiteConfig(getClientHostname());
2096
- VERSION = config.version || "1.5.52";
2096
+ VERSION = config.version || "1.5.53";
2097
2097
  getSlugFromPathname = (path) => {
2098
2098
  return getAppAndStoreSlugs(path, {
2099
2099
  defaultAppSlug: config.slug,
@@ -23583,7 +23583,7 @@ function AuthProvider({
23583
23583
  if (targetApp) {
23584
23584
  if (targetApp.id === baseApp?.id) {
23585
23585
  computedSlug = defaultSlug;
23586
- } else if (targetApp.id === app?.id && targetApp.store?.slug === baseApp?.store?.slug && baseApp?.store?.apps.some((app2) => app2.id === targetApp.id)) {
23586
+ } else if (targetApp.store?.slug === baseApp?.store?.slug || baseApp?.store?.apps.some((app2) => app2.id === targetApp.id)) {
23587
23587
  computedSlug = `/${targetApp.slug}`;
23588
23588
  } else {
23589
23589
  computedSlug = `/${targetApp.store?.slug}/${targetApp.slug}`;
@@ -24383,7 +24383,7 @@ function DataProvider({ children, ...rest }) {
24383
24383
  const [instructions, setInstructions] = (0, import_react21.useState)([]);
24384
24384
  const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
24385
24385
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
24386
- const VERSION4 = "1.5.52";
24386
+ const VERSION4 = "1.5.53";
24387
24387
  const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
24388
24388
  const {
24389
24389
  API_URL: API_URL2,
@@ -26547,7 +26547,7 @@ function ChatProvider({
26547
26547
  const [wasIncognito, setWasIncognito] = (0, import_react31.useState)(isIncognito);
26548
26548
  const [loading, setLoading] = (0, import_react31.useState)(false);
26549
26549
  const setIsNewAppChat = (item) => {
26550
- if (!loadingApp && hasStoreApps(item) && item) {
26550
+ if (hasStoreApps(item) && item) {
26551
26551
  setIsNewChat(true, getAppSlug(item));
26552
26552
  setLoading(false);
26553
26553
  return;
@@ -35392,7 +35392,6 @@ function App({
35392
35392
  setAppStatus,
35393
35393
  baseApp,
35394
35394
  isAppOwner,
35395
- storeApp,
35396
35395
  hasCustomInstructions,
35397
35396
  showingCustom,
35398
35397
  toggleInstructions
@@ -35421,6 +35420,8 @@ function App({
35421
35420
  const grape = apps.find((app2) => app2.slug === "grape");
35422
35421
  const zarathustra2 = apps.find((app2) => app2.slug === "zarathustra");
35423
35422
  const isBlossom = app?.store?.id === chrry?.store?.id;
35423
+ const storeApp = apps.find((item) => item.store?.id === app?.store?.id);
35424
+ console.log(`\u{1F680} ~ file: App.tsx:154 ~ apps:`, apps);
35424
35425
  const getApps2 = () => {
35425
35426
  return apps.filter(
35426
35427
  (item) => item.id !== store?.appId && item.id !== chrry?.id && item.id !== grape?.id && (isBlossom ? item.id !== atlas2?.id && item.id !== zarathustra2?.id && item.id !== popcorn2?.id : true)