@chrryai/chrry 1.6.52 → 1.6.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 +49 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49 -46
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3111,7 +3111,7 @@ var init_utils = __esm({
|
|
|
3111
3111
|
};
|
|
3112
3112
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
3113
3113
|
config = getSiteConfig(getClientHostname());
|
|
3114
|
-
VERSION = config.version || "1.6.
|
|
3114
|
+
VERSION = config.version || "1.6.53";
|
|
3115
3115
|
getSlugFromPathname = (path) => {
|
|
3116
3116
|
return getAppAndStoreSlugs(path, {
|
|
3117
3117
|
defaultAppSlug: config.slug,
|
|
@@ -24639,7 +24639,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24639
24639
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24640
24640
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24641
24641
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24642
|
-
const VERSION4 = "1.6.
|
|
24642
|
+
const VERSION4 = "1.6.53";
|
|
24643
24643
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24644
24644
|
const {
|
|
24645
24645
|
API_URL: API_URL2,
|
|
@@ -39496,45 +39496,57 @@ function Chat({
|
|
|
39496
39496
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, user?.speechCharactersToday || 0, " /", " ", SPEECH_LIMITS.USER.CHARACTERS_PER_DAY);
|
|
39497
39497
|
}
|
|
39498
39498
|
return null;
|
|
39499
|
-
})())))), /* @__PURE__ */ React.createElement(
|
|
39500
|
-
|
|
39499
|
+
})())))), /* @__PURE__ */ React.createElement(
|
|
39500
|
+
Div,
|
|
39501
39501
|
{
|
|
39502
|
-
|
|
39503
|
-
|
|
39504
|
-
|
|
39505
|
-
|
|
39502
|
+
style: {
|
|
39503
|
+
display: "flex",
|
|
39504
|
+
alignItems: "center",
|
|
39505
|
+
gap: 10
|
|
39506
39506
|
}
|
|
39507
39507
|
},
|
|
39508
|
-
/* @__PURE__ */ React.createElement(
|
|
39509
|
-
|
|
39510
|
-
|
|
39511
|
-
|
|
39512
|
-
|
|
39513
|
-
|
|
39514
|
-
|
|
39515
|
-
style: { ...utilities.transparent.style },
|
|
39516
|
-
onClick: () => {
|
|
39517
|
-
{
|
|
39518
|
-
setIsSpeechActive(false);
|
|
39519
|
-
addParams({ subscribe: "true" });
|
|
39508
|
+
guest && !user && /* @__PURE__ */ React.createElement(
|
|
39509
|
+
Button,
|
|
39510
|
+
{
|
|
39511
|
+
className: "transparent",
|
|
39512
|
+
style: { ...utilities.transparent.style },
|
|
39513
|
+
onClick: () => {
|
|
39514
|
+
addParams({ signIn: "register" });
|
|
39520
39515
|
}
|
|
39521
|
-
}
|
|
39522
|
-
|
|
39523
|
-
|
|
39524
|
-
|
|
39525
|
-
|
|
39526
|
-
|
|
39527
|
-
|
|
39528
|
-
|
|
39529
|
-
|
|
39530
|
-
|
|
39531
|
-
|
|
39532
|
-
|
|
39533
|
-
|
|
39534
|
-
|
|
39535
|
-
|
|
39536
|
-
|
|
39537
|
-
|
|
39516
|
+
},
|
|
39517
|
+
/* @__PURE__ */ React.createElement(Logo, { isVivid: true, size: 19 }),
|
|
39518
|
+
" ",
|
|
39519
|
+
t5("Sign up for 4x more usage")
|
|
39520
|
+
),
|
|
39521
|
+
user && !(user.subscription || guest?.subscription) && /* @__PURE__ */ React.createElement(
|
|
39522
|
+
Button,
|
|
39523
|
+
{
|
|
39524
|
+
className: "transparent",
|
|
39525
|
+
style: { ...utilities.transparent.style },
|
|
39526
|
+
onClick: () => {
|
|
39527
|
+
{
|
|
39528
|
+
setIsSpeechActive(false);
|
|
39529
|
+
addParams({ subscribe: "true" });
|
|
39530
|
+
}
|
|
39531
|
+
}
|
|
39532
|
+
},
|
|
39533
|
+
/* @__PURE__ */ React.createElement(Logo, { isVivid: true, size: 19 }),
|
|
39534
|
+
" ",
|
|
39535
|
+
t5("Need more, subscribe!")
|
|
39536
|
+
),
|
|
39537
|
+
!inConversationRef.current && !isListening && !isSpeaking && !isLoading && /* @__PURE__ */ React.createElement(
|
|
39538
|
+
Button,
|
|
39539
|
+
{
|
|
39540
|
+
onClick: () => {
|
|
39541
|
+
addHapticFeedback();
|
|
39542
|
+
startListening();
|
|
39543
|
+
}
|
|
39544
|
+
},
|
|
39545
|
+
/* @__PURE__ */ React.createElement(icons_exports.Megaphone, { size: 18 }),
|
|
39546
|
+
" ",
|
|
39547
|
+
t5("Speak")
|
|
39548
|
+
)
|
|
39549
|
+
))
|
|
39538
39550
|
),
|
|
39539
39551
|
isHydrated && /* @__PURE__ */ React.createElement(
|
|
39540
39552
|
Div,
|
|
@@ -42800,15 +42812,6 @@ function SignIn({
|
|
|
42800
42812
|
const successUrl = new URL(
|
|
42801
42813
|
callbackUrl ? isCallbackUrlURI ? callbackUrl : baseUrl + callbackUrl : baseUrl
|
|
42802
42814
|
);
|
|
42803
|
-
if (E2E) {
|
|
42804
|
-
if (user?.fingerprint) {
|
|
42805
|
-
successUrl.searchParams.set("fp", user.fingerprint);
|
|
42806
|
-
} else if (guest?.fingerprint) {
|
|
42807
|
-
successUrl.searchParams.set("fp", guest.fingerprint);
|
|
42808
|
-
}
|
|
42809
|
-
} else {
|
|
42810
|
-
successUrl.searchParams.set("welcome", "true");
|
|
42811
|
-
}
|
|
42812
42815
|
if (!isDevelopment && CHRRY_URL !== "https://chrry.ai") {
|
|
42813
42816
|
successUrl.searchParams.set("chrryUrl", encodeURIComponent(CHRRY_URL));
|
|
42814
42817
|
}
|