@chrryai/chrry 1.5.34 → 1.5.35

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 CHANGED
@@ -2093,7 +2093,7 @@ var init_utils = __esm({
2093
2093
  };
2094
2094
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
2095
2095
  config = getSiteConfig(getClientHostname());
2096
- VERSION = config.version || "1.5.34";
2096
+ VERSION = config.version || "1.5.35";
2097
2097
  getSlugFromPathname = (path) => {
2098
2098
  return getAppAndStoreSlugs(path, {
2099
2099
  defaultAppSlug: config.slug,
@@ -3833,6 +3833,7 @@ var init_PlatformPrimitives = __esm({
3833
3833
  type = "button",
3834
3834
  onClick,
3835
3835
  disabled,
3836
+ suppressHydrationWarning,
3836
3837
  children,
3837
3838
  ...props
3838
3839
  }, ref) => {
@@ -3850,6 +3851,7 @@ var init_PlatformPrimitives = __esm({
3850
3851
  style: sanitizedStyle,
3851
3852
  onClick,
3852
3853
  disabled,
3854
+ suppressHydrationWarning,
3853
3855
  ...props
3854
3856
  },
3855
3857
  children
@@ -23782,14 +23784,14 @@ function AuthProvider({
23782
23784
  data: storeAppsSwr,
23783
23785
  mutate: refetchApps,
23784
23786
  isLoading: isLoadingApps
23785
- } = (0, import_swr2.default)(token && appId ? ["app", appId] : null, async () => {
23787
+ } = (0, import_swr2.default)(token && appId ? ["apps", appId] : null, async () => {
23786
23788
  try {
23787
23789
  if (!token || !appId) return;
23788
- const apps2 = await getApp({ token, appId });
23790
+ const apps2 = await getApps({ token, appId });
23789
23791
  if (loadingAppId) {
23790
23792
  setLoadingAppId(void 0);
23791
23793
  }
23792
- return apps2.store?.apps;
23794
+ return apps2;
23793
23795
  } catch (error2) {
23794
23796
  import_react_hot_toast.default.error("Something went wrong");
23795
23797
  }
@@ -24414,7 +24416,7 @@ function DataProvider({ children, ...rest }) {
24414
24416
  const [instructions, setInstructions] = (0, import_react21.useState)([]);
24415
24417
  const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
24416
24418
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
24417
- const VERSION4 = "1.5.34";
24419
+ const VERSION4 = "1.5.35";
24418
24420
  const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
24419
24421
  const {
24420
24422
  API_URL: API_URL2,
@@ -35464,7 +35466,7 @@ function App({
35464
35466
  const grape = apps.find((app2) => app2.slug === "grape");
35465
35467
  const zarathustra2 = apps.find((app2) => app2.slug === "zarathustra");
35466
35468
  const isBlossom = app?.store?.id === chrry?.store?.id;
35467
- const getApps3 = () => {
35469
+ const getApps2 = () => {
35468
35470
  return apps.filter(
35469
35471
  (item) => item.id !== store?.appId && item.id !== chrry?.id && item.id !== grape?.id && (isBlossom ? item.id !== atlas2?.id && item.id !== zarathustra2?.id && item.id !== popcorn2?.id : true)
35470
35472
  ).filter((item) => item.id !== focus2?.id).sort((a, b) => {
@@ -35484,9 +35486,9 @@ function App({
35484
35486
  return item;
35485
35487
  });
35486
35488
  };
35487
- const [appsState, setApps] = import_react55.default.useState(getApps3());
35489
+ const [appsState, setApps] = import_react55.default.useState(getApps2());
35488
35490
  (0, import_react55.useEffect)(() => {
35489
- setApps(getApps3());
35491
+ setApps(getApps2());
35490
35492
  }, [apps, store?.id, store?.appId, currentStoreId, baseApp, app]);
35491
35493
  const [file, setFile] = import_react55.default.useState();
35492
35494
  const [image, setImageInternal] = import_react55.default.useState(
@@ -41356,7 +41358,15 @@ function Menu({
41356
41358
  size: 20
41357
41359
  }
41358
41360
  )
41359
- )) : /* @__PURE__ */ import_react62.default.createElement(Button, { className: "link", onClick: toggleMenu }, /* @__PURE__ */ import_react62.default.createElement(ImageComponent, { app, size: 28 }))), /* @__PURE__ */ import_react62.default.createElement(
41361
+ )) : /* @__PURE__ */ import_react62.default.createElement(
41362
+ Button,
41363
+ {
41364
+ suppressHydrationWarning: true,
41365
+ className: "link",
41366
+ onClick: toggleMenu
41367
+ },
41368
+ /* @__PURE__ */ import_react62.default.createElement(ImageComponent, { app, size: 28 })
41369
+ )), /* @__PURE__ */ import_react62.default.createElement(
41360
41370
  Div,
41361
41371
  {
41362
41372
  style: {