@chrryai/chrry 1.5.91 → 1.5.93
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 +10 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3108,7 +3108,7 @@ var init_utils = __esm({
|
|
|
3108
3108
|
};
|
|
3109
3109
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
3110
3110
|
config = getSiteConfig(getClientHostname());
|
|
3111
|
-
VERSION = config.version || "1.5.
|
|
3111
|
+
VERSION = config.version || "1.5.93";
|
|
3112
3112
|
getSlugFromPathname = (path) => {
|
|
3113
3113
|
return getAppAndStoreSlugs(path, {
|
|
3114
3114
|
defaultAppSlug: config.slug,
|
|
@@ -24616,7 +24616,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24616
24616
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24617
24617
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24618
24618
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24619
|
-
const VERSION4 = "1.5.
|
|
24619
|
+
const VERSION4 = "1.5.93";
|
|
24620
24620
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24621
24621
|
const {
|
|
24622
24622
|
API_URL: API_URL2,
|
|
@@ -37385,7 +37385,12 @@ function Chat({
|
|
|
37385
37385
|
shouldUseCompactMode
|
|
37386
37386
|
);
|
|
37387
37387
|
const floatingInitial = shouldUseCompactMode ? true : empty ? false : isChatFloatingContext && !showChatInput;
|
|
37388
|
-
const [isChatFloating] = useSyncedState(floatingInitial
|
|
37388
|
+
const [isChatFloating] = useSyncedState(floatingInitial, [
|
|
37389
|
+
empty,
|
|
37390
|
+
shouldUseCompactMode,
|
|
37391
|
+
isChatFloatingContext,
|
|
37392
|
+
showChatInput
|
|
37393
|
+
]);
|
|
37389
37394
|
(0, import_react55.useEffect)(() => {
|
|
37390
37395
|
setIsChatFloating(isChatFloating);
|
|
37391
37396
|
}, [isChatFloating]);
|
|
@@ -82531,12 +82536,12 @@ function useSyncedState(computedValue, deps) {
|
|
|
82531
82536
|
return;
|
|
82532
82537
|
}
|
|
82533
82538
|
setLocalValue(computedValue);
|
|
82534
|
-
}, [
|
|
82539
|
+
}, [...deps || []]);
|
|
82535
82540
|
(0, import_react117.useEffect)(() => {
|
|
82536
82541
|
if (!isFirstRender.current) {
|
|
82537
82542
|
setLocalValue(computedValue);
|
|
82538
82543
|
}
|
|
82539
|
-
}, [
|
|
82544
|
+
}, [...deps || []]);
|
|
82540
82545
|
return [localValue, setLocalValue];
|
|
82541
82546
|
}
|
|
82542
82547
|
function useComputedValue(computedValue) {
|