@chrryai/chrry 1.5.21 → 1.5.22
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 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1902,7 +1902,7 @@ var init_utils = __esm({
|
|
|
1902
1902
|
};
|
|
1903
1903
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
1904
1904
|
config = getSiteConfig(getClientHostname());
|
|
1905
|
-
VERSION = config.version || "1.5.
|
|
1905
|
+
VERSION = config.version || "1.5.22";
|
|
1906
1906
|
getSlugFromPathname = (path) => {
|
|
1907
1907
|
return getAppAndStoreSlugs(path, {
|
|
1908
1908
|
defaultAppSlug: config.slug,
|
|
@@ -24208,7 +24208,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24208
24208
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24209
24209
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24210
24210
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24211
|
-
const VERSION4 = "1.5.
|
|
24211
|
+
const VERSION4 = "1.5.22";
|
|
24212
24212
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24213
24213
|
const {
|
|
24214
24214
|
API_URL: API_URL2,
|
|
@@ -40957,7 +40957,7 @@ function Menu({
|
|
|
40957
40957
|
showThreads = true
|
|
40958
40958
|
}) {
|
|
40959
40959
|
const { t: t5 } = useAppContext();
|
|
40960
|
-
const { user, guest, profile, track,
|
|
40960
|
+
const { user, guest, profile, track, showFocus, setShowFocus, getAppSlug } = useAuth();
|
|
40961
40961
|
const styles4 = useMenuStyles();
|
|
40962
40962
|
const {
|
|
40963
40963
|
router,
|
|
@@ -41152,6 +41152,7 @@ function Menu({
|
|
|
41152
41152
|
return;
|
|
41153
41153
|
}
|
|
41154
41154
|
e.preventDefault();
|
|
41155
|
+
showFocus && setShowFocus(false);
|
|
41155
41156
|
isSmallDevice ? toggleMenu() : addHapticFeedback();
|
|
41156
41157
|
setIsNewChat(true);
|
|
41157
41158
|
reload();
|
|
@@ -41174,6 +41175,7 @@ function Menu({
|
|
|
41174
41175
|
if (e.metaKey || e.ctrlKey) {
|
|
41175
41176
|
return;
|
|
41176
41177
|
}
|
|
41178
|
+
showFocus && setShowFocus(false);
|
|
41177
41179
|
e.preventDefault();
|
|
41178
41180
|
isSmallDevice ? toggleMenu() : addHapticFeedback();
|
|
41179
41181
|
router.push("/?incognito=true");
|