@chrryai/chrry 1.4.42 → 1.4.44

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.
@@ -83,13 +83,13 @@
83
83
  flex-direction: row;
84
84
  flex-wrap: wrap;
85
85
  gap: toRem.toRem(10);
86
+ }
86
87
 
87
- img {
88
- border-radius: toRem.toRem(20);
89
- max-width: 100%;
90
- // height: fit-content;
91
- width: toRem.toRem(250);
92
- }
88
+ .userMessageImage {
89
+ border-radius: toRem.toRem(20);
90
+ max-width: 100%;
91
+ // height: fit-content;
92
+ width: toRem.toRem(250);
93
93
  }
94
94
 
95
95
  .userMessageVideo {
package/dist/index.d.mts CHANGED
@@ -1285,9 +1285,9 @@ declare const getImageSrc: ({ app, icon, logo, store, PROD_FRONTEND_URL, src, sl
1285
1285
  image?: string;
1286
1286
  }) => {
1287
1287
  src: string | undefined;
1288
- width: number;
1289
- height: number;
1290
- size: number;
1288
+ width: string | number;
1289
+ height: string | number;
1290
+ size: string | number;
1291
1291
  };
1292
1292
  declare const getThreads: ({ pageSize, token, search, sort, threadId, userName, collaborationStatus, myPendingCollaborations, onError, slug, appId, API_URL, }: {
1293
1293
  pageSize?: number;
package/dist/index.d.ts CHANGED
@@ -1285,9 +1285,9 @@ declare const getImageSrc: ({ app, icon, logo, store, PROD_FRONTEND_URL, src, sl
1285
1285
  image?: string;
1286
1286
  }) => {
1287
1287
  src: string | undefined;
1288
- width: number;
1289
- height: number;
1290
- size: number;
1288
+ width: string | number;
1289
+ height: string | number;
1290
+ size: string | number;
1291
1291
  };
1292
1292
  declare const getThreads: ({ pageSize, token, search, sort, threadId, userName, collaborationStatus, myPendingCollaborations, onError, slug, appId, API_URL, }: {
1293
1293
  pageSize?: number;
package/dist/index.js CHANGED
@@ -1898,7 +1898,7 @@ var init_utils = __esm({
1898
1898
  };
1899
1899
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
1900
1900
  config = getSiteConfig(getClientHostname());
1901
- VERSION = config.version || "1.4.42";
1901
+ VERSION = config.version || "1.4.44";
1902
1902
  getSlugFromPathname = (path) => {
1903
1903
  return getAppAndStoreSlugs(path, {
1904
1904
  defaultAppSlug: config.slug,
@@ -4923,6 +4923,9 @@ var init_lib = __esm({
4923
4923
  canEditApp,
4924
4924
  image
4925
4925
  }) => {
4926
+ const finalWidth = typeof width === "number" ? width : typeof width === "string" && parseInt(width) ? parseInt(width) : width ? width : size2;
4927
+ const finalHeight = typeof height2 === "number" ? height2 : typeof height2 === "string" && parseInt(height2) ? parseInt(height2) : height2 ? height2 : size2;
4928
+ const finalSize = finalWidth || finalHeight;
4926
4929
  const iconSrc = icon ? icon === "spaceInvader" ? `${PROD_FRONTEND_URL2}/images/pacman/space-invader.png` : icon === "pacman" ? `${BASE_URL}/images/pacman/pacman.png` : icon === "heart" ? `${BASE_URL}/images/pacman/heart.png` : icon === "plus" ? `${BASE_URL}/icons/plus-128.png` : icon === "hamster" ? `${BASE_URL}/hamster.png` : icon === "frog" ? `${BASE_URL}/frog.png` : icon === "calendar" ? `${BASE_URL}/icons/calendar-128.png` : icon === "sushi" ? `${BASE_URL}/icons/sushi.png` : `${BASE_URL}/icons/${icon}-128.png` : null;
4927
4930
  const logoSrc = logo === "focus" ? `${BASE_URL}/images/focus.png` : logo === "blossom" ? `${BASE_URL}/images/apps/blossom.png` : logo === "grape" ? `${BASE_URL}/images/apps/grape.png` : logo === "chrry" || store?.slug === "explore" ? `${BASE_URL}/logo/cherry-500.png` : logo === "lifeOS" || store?.slug === "lifeOS" ? `${BASE_URL}/icons/lifeOS-128.png` : logo === "vex" || store?.slug === "vex" ? `${BASE_URL}/icons/icon-128.png` : logo ? `${BASE_URL}/icons/icon-128${logo === "isMagenta" ? "-m" : ""}${logo === "isVivid" ? "-v" : ""}.png` : null;
4928
4931
  const getImageBySize = (size3) => {
@@ -4946,13 +4949,11 @@ var init_lib = __esm({
4946
4949
  "grape"
4947
4950
  ].includes(app.slug) ? `${BASE_URL}/images/apps/${app.slug}.png` : getImageBySize(size2) || app?.image || (slug ? `${BASE_URL}/icons/${slug}-128.png` : canEditApp ? image || iconSrc : void 0);
4948
4951
  const finalSrc = src || logoSrc || !app && iconSrc || appImageSrc || void 0;
4949
- const finalWidth = typeof width === "number" ? width : typeof width === "string" ? parseInt(width) : size2;
4950
- const finalHeight = typeof height2 === "number" ? height2 : typeof height2 === "string" ? parseInt(height2) : size2;
4951
4952
  return {
4952
4953
  src: finalSrc,
4953
- width: size2 || finalWidth,
4954
- height: size2 || finalHeight,
4955
- size: size2
4954
+ width: finalWidth,
4955
+ height: finalHeight,
4956
+ size: finalSize
4956
4957
  };
4957
4958
  };
4958
4959
  getThreads = async ({
@@ -24041,7 +24042,7 @@ function DataProvider({ children, ...rest }) {
24041
24042
  const [instructions, setInstructions] = (0, import_react19.useState)([]);
24042
24043
  const [affiliateStats, setAffiliateStats] = (0, import_react19.useState)(null);
24043
24044
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react19.useState)(false);
24044
- const VERSION4 = "1.4.42";
24045
+ const VERSION4 = "1.4.44";
24045
24046
  const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
24046
24047
  const {
24047
24048
  API_URL: API_URL2,
@@ -29343,7 +29344,8 @@ function ImageComponent(props) {
29343
29344
  }
29344
29345
  }, [isEmoji, isAgent]);
29345
29346
  const color = COLORS[app?.themeColor] || "var(--accent-6)";
29346
- const emojiSize = size2 <= 24 ? size2 * 0.85 : size2;
29347
+ const intSize = parseInt(size2);
29348
+ const emojiSize = intSize && intSize <= 24 ? intSize * 0.85 : intSize;
29347
29349
  if (isEmoji) {
29348
29350
  if (app?.store?.slug === "books") {
29349
29351
  if (app.slug === "zarathustra") {
@@ -35718,8 +35720,7 @@ function App({
35718
35720
  ) : app?.id === chrry?.id && focus ? /* @__PURE__ */ import_react55.default.createElement(FocusButton, { time }) : hasHydrated && !canEditApp && !isManagingApp && /* @__PURE__ */ import_react55.default.createElement(
35719
35721
  "span",
35720
35722
  {
35721
- style: { ...styles4.grip.style },
35722
- title: t6("Drag and drop to reorder apps")
35723
+ style: { ...styles4.grip.style }
35723
35724
  },
35724
35725
  /* @__PURE__ */ import_react55.default.createElement(icons_exports.Grip, { size: 24, color: "var(--accent-1)" })
35725
35726
  )), !isManagingApp && /* @__PURE__ */ import_react55.default.createElement(
@@ -45238,7 +45239,9 @@ var init_Message_styles = __esm({
45238
45239
  display: "flex",
45239
45240
  flexDirection: "row",
45240
45241
  flexWrap: "wrap",
45241
- gap: 10,
45242
+ gap: 10
45243
+ },
45244
+ userMessageImage: {
45242
45245
  borderRadius: 20,
45243
45246
  maxWidth: "100%",
45244
45247
  width: 250