@chrryai/chrry 1.4.42 → 1.4.43
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/Message.module.scss +6 -6
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/Message.module.scss
CHANGED
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
flex-direction: row;
|
|
84
84
|
flex-wrap: wrap;
|
|
85
85
|
gap: toRem.toRem(10);
|
|
86
|
+
}
|
|
86
87
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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.
|
|
1901
|
+
VERSION = config.version || "1.4.43";
|
|
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:
|
|
4954
|
-
height:
|
|
4955
|
-
size:
|
|
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.
|
|
24045
|
+
const VERSION4 = "1.4.43";
|
|
24045
24046
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24046
24047
|
const {
|
|
24047
24048
|
API_URL: API_URL2,
|
|
@@ -35718,8 +35719,7 @@ function App({
|
|
|
35718
35719
|
) : app?.id === chrry?.id && focus ? /* @__PURE__ */ import_react55.default.createElement(FocusButton, { time }) : hasHydrated && !canEditApp && !isManagingApp && /* @__PURE__ */ import_react55.default.createElement(
|
|
35719
35720
|
"span",
|
|
35720
35721
|
{
|
|
35721
|
-
style: { ...styles4.grip.style }
|
|
35722
|
-
title: t6("Drag and drop to reorder apps")
|
|
35722
|
+
style: { ...styles4.grip.style }
|
|
35723
35723
|
},
|
|
35724
35724
|
/* @__PURE__ */ import_react55.default.createElement(icons_exports.Grip, { size: 24, color: "var(--accent-1)" })
|
|
35725
35725
|
)), !isManagingApp && /* @__PURE__ */ import_react55.default.createElement(
|
|
@@ -45238,7 +45238,9 @@ var init_Message_styles = __esm({
|
|
|
45238
45238
|
display: "flex",
|
|
45239
45239
|
flexDirection: "row",
|
|
45240
45240
|
flexWrap: "wrap",
|
|
45241
|
-
gap: 10
|
|
45241
|
+
gap: 10
|
|
45242
|
+
},
|
|
45243
|
+
userMessageImage: {
|
|
45242
45244
|
borderRadius: 20,
|
|
45243
45245
|
maxWidth: "100%",
|
|
45244
45246
|
width: 250
|