@chrryai/chrry 1.6.73 → 1.6.75
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 +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2967,7 +2967,7 @@ var init_utils = __esm({
|
|
|
2967
2967
|
const newUrl = searchParams.toString() ? `?${searchParams.toString()}` : window.location.pathname;
|
|
2968
2968
|
window.history.replaceState({}, "", newUrl);
|
|
2969
2969
|
};
|
|
2970
|
-
FE_PORT = typeof process !== "undefined" && process.env?.NEXT_PUBLIC_FE_PORT || "
|
|
2970
|
+
FE_PORT = typeof process !== "undefined" && process.env?.NEXT_PUBLIC_FE_PORT || "5173";
|
|
2971
2971
|
API_PORT = typeof process !== "undefined" && process.env?.API_PORT || "3001";
|
|
2972
2972
|
FRONTEND_URL = isTestingDevice ? `http://192.168.2.27:${FE_PORT}` : isDevelopment ? `http://localhost:${FE_PORT}` : CHRRY_URL;
|
|
2973
2973
|
PROD_FRONTEND_URL = CHRRY_URL;
|
|
@@ -3152,7 +3152,7 @@ var init_utils = __esm({
|
|
|
3152
3152
|
};
|
|
3153
3153
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
3154
3154
|
config = getSiteConfig(getClientHostname());
|
|
3155
|
-
VERSION = config.version || "1.6.
|
|
3155
|
+
VERSION = config.version || "1.6.75";
|
|
3156
3156
|
getSlugFromPathname = (path) => {
|
|
3157
3157
|
return getAppAndStoreSlugs(path, {
|
|
3158
3158
|
defaultAppSlug: config.slug,
|
|
@@ -24070,9 +24070,9 @@ function AuthProvider({
|
|
|
24070
24070
|
data: storeAppsSwr,
|
|
24071
24071
|
mutate: refetchApps,
|
|
24072
24072
|
isLoading: isLoadingApps
|
|
24073
|
-
} = (0, import_swr.default)(token &&
|
|
24073
|
+
} = (0, import_swr.default)(token && ["app", appId], async () => {
|
|
24074
24074
|
try {
|
|
24075
|
-
if (!token
|
|
24075
|
+
if (!token) return;
|
|
24076
24076
|
const app2 = await getApp({ token, appId, chrryUrl, pathname });
|
|
24077
24077
|
return app2.store?.apps;
|
|
24078
24078
|
} catch (error2) {
|
|
@@ -24698,7 +24698,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24698
24698
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24699
24699
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24700
24700
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24701
|
-
const VERSION4 = "1.6.
|
|
24701
|
+
const VERSION4 = "1.6.75";
|
|
24702
24702
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24703
24703
|
const {
|
|
24704
24704
|
API_URL: API_URL2,
|
|
@@ -24887,7 +24887,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24887
24887
|
const isE2E3 = process.env.NEXT_PUBLIC_TESTING_ENV === "e2e";
|
|
24888
24888
|
const [aiAgents, setAiAgents] = (0, import_react21.useState)(session2?.aiAgents || []);
|
|
24889
24889
|
const { data: aiAgentsData } = (0, import_swr2.default)(
|
|
24890
|
-
|
|
24890
|
+
siteConfig.mode !== "chrryDev" && aiAgents?.length > 0 ? null : token && ["aiAgents", token, app?.id],
|
|
24891
24891
|
async () => {
|
|
24892
24892
|
const url = new URL(`${API_URL2}/aiAgents`);
|
|
24893
24893
|
if (app?.id) {
|