@chrryai/chrry 1.2.81 → 1.2.84
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -20662,7 +20662,7 @@ function DataProvider({
|
|
|
20662
20662
|
const [instructions, setInstructions] = (0, import_react14.useState)([]);
|
|
20663
20663
|
const [affiliateStats, setAffiliateStats] = (0, import_react14.useState)(null);
|
|
20664
20664
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react14.useState)(false);
|
|
20665
|
-
const VERSION3 = "1.2.
|
|
20665
|
+
const VERSION3 = "1.2.84";
|
|
20666
20666
|
const [weather, setWeather] = useLocalStorage("weather", user?.weather || guest?.weather || void 0);
|
|
20667
20667
|
const {
|
|
20668
20668
|
API_URL: API_URL2,
|
|
@@ -21712,7 +21712,7 @@ var init_utils = __esm({
|
|
|
21712
21712
|
window.history.replaceState({}, "", newUrl);
|
|
21713
21713
|
};
|
|
21714
21714
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
|
|
21715
|
-
VERSION = "1.2.
|
|
21715
|
+
VERSION = "1.2.84";
|
|
21716
21716
|
getSlugFromPathname = (path) => {
|
|
21717
21717
|
const siteConfig = getSiteConfig();
|
|
21718
21718
|
return getAppAndStoreSlugs(path, {
|
|
@@ -22755,7 +22755,11 @@ function ChatProvider({
|
|
|
22755
22755
|
const { pathname, addParams } = useNavigation();
|
|
22756
22756
|
const [threadId, setThreadId] = (0, import_react22.useState)(getThreadId2(pathname));
|
|
22757
22757
|
(0, import_react22.useEffect)(() => {
|
|
22758
|
-
|
|
22758
|
+
const id = getThreadId2(pathname);
|
|
22759
|
+
if (id) {
|
|
22760
|
+
setThreadId(id);
|
|
22761
|
+
setIsChatFloating(false);
|
|
22762
|
+
}
|
|
22759
22763
|
}, [pathname]);
|
|
22760
22764
|
const [creditsLeft, setCreditsLeft] = (0, import_react22.useState)(void 0);
|
|
22761
22765
|
(0, import_react22.useEffect)(() => {
|
|
@@ -33529,6 +33533,7 @@ Return ONLY ONE WORD: ${apps.map((a) => a.name).join(", ")}, or "none"`;
|
|
|
33529
33533
|
guest && /* @__PURE__ */ React.createElement(
|
|
33530
33534
|
"button",
|
|
33531
33535
|
{
|
|
33536
|
+
"data-testid": "login-from-chat-button",
|
|
33532
33537
|
onClick: () => {
|
|
33533
33538
|
addHapticFeedback();
|
|
33534
33539
|
if (guest) {
|