@chrryai/chrry 1.2.97 → 1.3.0

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.
@@ -143,10 +143,6 @@
143
143
  .installAppButton {
144
144
  animation: pulse 1s ease-in-out;
145
145
  @include utils.respect-reduced-motion;
146
-
147
- &.standalone {
148
- display: none;
149
- }
150
146
  }
151
147
 
152
148
  .installButton {
@@ -143,10 +143,6 @@
143
143
  .installAppButton {
144
144
  animation: pulse 1s ease-in-out;
145
145
  @include utils.respect-reduced-motion;
146
-
147
- &.standalone {
148
- display: none;
149
- }
150
146
  }
151
147
 
152
148
  .installButton {
package/dist/index.d.mts CHANGED
@@ -781,7 +781,7 @@ declare const isFirefox: boolean;
781
781
  declare function getFlag({ code }: {
782
782
  code?: string;
783
783
  }): string;
784
- declare const VERSION = "1.2.97";
784
+ declare const VERSION = "1.3.0";
785
785
  type instructionBase = {
786
786
  id: string;
787
787
  title: string;
package/dist/index.d.ts CHANGED
@@ -781,7 +781,7 @@ declare const isFirefox: boolean;
781
781
  declare function getFlag({ code }: {
782
782
  code?: string;
783
783
  }): string;
784
- declare const VERSION = "1.2.97";
784
+ declare const VERSION = "1.3.0";
785
785
  type instructionBase = {
786
786
  id: string;
787
787
  title: string;
package/dist/index.js CHANGED
@@ -21282,7 +21282,7 @@ function DataProvider({
21282
21282
  const [instructions, setInstructions] = (0, import_react14.useState)([]);
21283
21283
  const [affiliateStats, setAffiliateStats] = (0, import_react14.useState)(null);
21284
21284
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react14.useState)(false);
21285
- const VERSION3 = "1.2.97";
21285
+ const VERSION3 = "1.3.0";
21286
21286
  const [weather, setWeather] = useLocalStorage("weather", user?.weather || guest?.weather || void 0);
21287
21287
  const {
21288
21288
  API_URL: API_URL2,
@@ -22367,7 +22367,7 @@ var init_utils = __esm({
22367
22367
  window.history.replaceState({}, "", newUrl);
22368
22368
  };
22369
22369
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
22370
- VERSION = "1.2.97";
22370
+ VERSION = "1.3.0";
22371
22371
  getSlugFromPathname = (path) => {
22372
22372
  const siteConfig = getSiteConfig();
22373
22373
  return getAppAndStoreSlugs(path, {
@@ -23937,7 +23937,20 @@ function ChatProvider({
23937
23937
  hasNotification
23938
23938
  ]);
23939
23939
  const [collaborationStep, setCollaborationStep] = (0, import_react24.useState)(0);
23940
- const isIncognito = searchParams.get("incognito") === "true";
23940
+ const [isIncognito, setIsIncognito] = (0, import_react24.useState)(
23941
+ searchParams.get("incognito") === "true"
23942
+ );
23943
+ (0, import_react24.useEffect)(() => {
23944
+ if (isIncognito) {
23945
+ setWasIncognito(true);
23946
+ setIsNewChat(true, "/?incognito=true");
23947
+ } else {
23948
+ setWasIncognito(false);
23949
+ }
23950
+ }, [isIncognito]);
23951
+ (0, import_react24.useEffect)(() => {
23952
+ setIsIncognito(searchParams.get("incognito") === "true");
23953
+ }, [searchParams]);
23941
23954
  const [wasIncognito, setWasIncognito] = (0, import_react24.useState)(isIncognito);
23942
23955
  const [newChatTrigger, setNewChatTrigger] = (0, import_react24.useState)(0);
23943
23956
  const setIsNewChat = (value, to = app?.slug ? getAppSlug(app) : "/") => {
@@ -24526,77 +24539,9 @@ function NavigationProvider({
24526
24539
  };
24527
24540
  const navigation = useNavigation();
24528
24541
  const { searchParams, pathname, ...router } = navigation;
24529
- const getSlugFromPathname2 = (path) => {
24530
- const pathWithoutLocale = path.replace(/^\/[a-z]{2}\//, "/");
24531
- const match = pathWithoutLocale.match(/^\/([^\/]+)/);
24532
- if (!match) return null;
24533
- const segment = match[1];
24534
- const excludedRoutes = [
24535
- "threads",
24536
- "settings",
24537
- "profile",
24538
- "apps",
24539
- "api",
24540
- "_next",
24541
- "signin",
24542
- "signup",
24543
- "onboarding",
24544
- "lifeOS"
24545
- ];
24546
- if (segment && excludedRoutes.includes(segment)) return null;
24547
- return segment || null;
24548
- };
24549
- const { app, apps, setApp, baseApp, storeApp } = useApp();
24542
+ const { app } = useApp();
24550
24543
  const {
24551
- status,
24552
- isLoadingMore,
24553
- setIsLoadingMore,
24554
- setIsWebSearchEnabled,
24555
- input,
24556
- setIsAgentModalOpen,
24557
- isAgentModalOpen,
24558
- creditsLeft,
24559
- aiAgents,
24560
- setInput,
24561
- placeHolder,
24562
- setPlaceHolder,
24563
- isChatFloating,
24564
- setIsChatFloating,
24565
- thread: thread2,
24566
- setThread,
24567
24544
  threadId,
24568
- until,
24569
- liked,
24570
- setLiked,
24571
- error,
24572
- setUntil,
24573
- isEmpty,
24574
- setIsEmpty,
24575
- scrollToBottom,
24576
- setThreadId,
24577
- isWebSearchEnabled,
24578
- selectedAgent,
24579
- setSelectedAgent,
24580
- hitHourlyLimit,
24581
- debateAgent,
24582
- setDebateAgent,
24583
- isDebating,
24584
- setIsDebating,
24585
- hourlyLimit,
24586
- hourlyUsageLeft,
24587
- setCreditsLeft,
24588
- perplexityAgent,
24589
- deepSeekAgent,
24590
- claudeAgent,
24591
- favouriteAgent,
24592
- messages,
24593
- setMessages,
24594
- isAgentAuthorized,
24595
- setIsDebateAgentModalOpen,
24596
- isDebateAgentModalOpen,
24597
- setIsAgentModalOpenInternal,
24598
- nextPage,
24599
- setNextPage,
24600
24545
  setIsNewChat,
24601
24546
  isNewChat,
24602
24547
  hasNotification,
@@ -24643,23 +24588,8 @@ function NavigationProvider({
24643
24588
  const [isAccountVisible, setIsAccountVisible] = (0, import_react25.useState)(
24644
24589
  searchParams.get("account") === "true"
24645
24590
  );
24646
- const { isExtension: isExtension2, isMobile, viewPortWidth, os, device, isStandalone: isStandalone2 } = usePlatform();
24647
- const {
24648
- setProfile,
24649
- fingerprint,
24650
- user,
24651
- guest,
24652
- token,
24653
- setUser,
24654
- setGuest,
24655
- deviceId,
24656
- profile,
24657
- isLoading,
24658
- slug,
24659
- setSlug,
24660
- getAppSlug,
24661
- language
24662
- } = useAuth();
24591
+ const { os, isStandalone: isStandalone2 } = usePlatform();
24592
+ const { slug, setSlug, getAppSlug, language } = useAuth();
24663
24593
  const [isShowingCollaborate, setIsShowingCollaborate] = (0, import_react25.useState)(false);
24664
24594
  const [showAddToHomeScreen, setShowAddToHomeScreenInternal] = (0, import_react25.useState)(
24665
24595
  searchParams.get("showInstall") === "true"
@@ -29177,16 +29107,11 @@ function Instructions({
29177
29107
  collaborationStep,
29178
29108
  setCollaborationStep,
29179
29109
  isMemoryConsentManageVisible,
29180
- setShowAddToHomeScreen,
29181
- showAddToHomeScreen,
29182
- pathname
29110
+ setShowAddToHomeScreen
29183
29111
  } = useNavigationContext();
29184
29112
  const {
29185
- slug,
29186
29113
  isManagingApp,
29187
- app,
29188
29114
  appFormWatcher,
29189
- canEditApp,
29190
29115
  instructions,
29191
29116
  setInstructions,
29192
29117
  appStatus,
@@ -29194,9 +29119,9 @@ function Instructions({
29194
29119
  } = useApp();
29195
29120
  const { captureException } = useError();
29196
29121
  const { weather } = useData();
29197
- const { os, isStandalone: isStandalone2, viewPortWidth, viewPortHeight } = usePlatform();
29122
+ const { os, isStandalone: isStandalone2, viewPortHeight } = usePlatform();
29198
29123
  const getVisibleInstructionCount = () => {
29199
- const height = viewPortHeight || 0;
29124
+ const height = (viewPortHeight || 0) + (isStandalone2 ? 250 : 0);
29200
29125
  if (height >= 500 && height < 600) return 1;
29201
29126
  if (height >= 550 && height < 625) return 2;
29202
29127
  if (height >= 550 && height < 650) return 3;
@@ -29209,7 +29134,7 @@ function Instructions({
29209
29134
  );
29210
29135
  (0, import_react45.useEffect)(() => {
29211
29136
  setVisibleInstructionCount(getVisibleInstructionCount());
29212
- }, [viewPortHeight]);
29137
+ }, [viewPortHeight, isStandalone2]);
29213
29138
  const { addHapticFeedback, isDark, isMobileDevice } = useTheme2();
29214
29139
  const isManaging = isManagingApp;
29215
29140
  const [placeHolder, setPlaceHolder] = (0, import_react45.useState)(
@@ -30141,7 +30066,7 @@ var init_Instructions = __esm({
30141
30066
  "use strict";
30142
30067
  "use client";
30143
30068
  import_react45 = __toESM(require("react"));
30144
- import_Instructions_module = __toESM(require("./Instructions.module-GYOAE4FX.scss"));
30069
+ import_Instructions_module = __toESM(require("./Instructions.module-EJFD3FEO.scss"));
30145
30070
  import_clsx11 = __toESM(require("clsx"));
30146
30071
  init_icons();
30147
30072
  init_Modal();