@chrryai/chrry 1.4.48 → 1.4.51
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 +8 -3
- package/dist/index.js +31 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -17
- package/dist/index.mjs.map +1 -1
- package/globals.scss +5 -0
- package/package.json +1 -1
package/Message.module.scss
CHANGED
|
@@ -19,16 +19,17 @@
|
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: row;
|
|
21
21
|
flex-wrap: wrap;
|
|
22
|
-
gap: toRem.toRem(
|
|
22
|
+
gap: toRem.toRem(15);
|
|
23
23
|
font-size: toRem.toRem(14);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.updateModalDescriptionItem {
|
|
27
27
|
display: flex;
|
|
28
|
-
gap: toRem.toRem(
|
|
29
|
-
border-bottom: toRem.toRem(1) dashed var(--shade-2);
|
|
28
|
+
gap: toRem.toRem(15);
|
|
30
29
|
padding-bottom: toRem.toRem(10);
|
|
31
30
|
|
|
31
|
+
border: toRem.toRem(1) dashed var(--shade-2);
|
|
32
|
+
|
|
32
33
|
&:last-child {
|
|
33
34
|
border-bottom: none;
|
|
34
35
|
padding-bottom: 0;
|
|
@@ -48,6 +49,10 @@
|
|
|
48
49
|
display: flex;
|
|
49
50
|
flex-direction: column;
|
|
50
51
|
gap: toRem.toRem(5);
|
|
52
|
+
border: toRem.toRem(1) dashed var(--shade-2);
|
|
53
|
+
border-radius: toRem.toRem(20);
|
|
54
|
+
padding: toRem.toRem(10);
|
|
55
|
+
flex: 1;
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
.thinking {
|
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.51";
|
|
1902
1902
|
getSlugFromPathname = (path) => {
|
|
1903
1903
|
return getAppAndStoreSlugs(path, {
|
|
1904
1904
|
defaultAppSlug: config.slug,
|
|
@@ -23597,12 +23597,14 @@ function AuthProvider({
|
|
|
23597
23597
|
...item,
|
|
23598
23598
|
image: item.image || item.images?.[0]?.url
|
|
23599
23599
|
} : void 0;
|
|
23600
|
+
console.log(`\u{1F680} ~ AuthProvider ~ newApp:`, newApp2);
|
|
23600
23601
|
if (newApp2?.id !== prevApp?.id) {
|
|
23601
23602
|
setTimeout(() => {
|
|
23602
23603
|
newApp2?.themeColor && setColorScheme(newApp2.themeColor);
|
|
23603
23604
|
newApp2?.backgroundColor && setAppTheme(newApp2.backgroundColor);
|
|
23604
23605
|
}, 0);
|
|
23605
23606
|
newApp2?.store?.apps && mergeApps(newApp2?.store?.apps);
|
|
23607
|
+
return newApp2;
|
|
23606
23608
|
}
|
|
23607
23609
|
return newApp2;
|
|
23608
23610
|
});
|
|
@@ -24043,7 +24045,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24043
24045
|
const [instructions, setInstructions] = (0, import_react19.useState)([]);
|
|
24044
24046
|
const [affiliateStats, setAffiliateStats] = (0, import_react19.useState)(null);
|
|
24045
24047
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react19.useState)(false);
|
|
24046
|
-
const VERSION4 = "1.4.
|
|
24048
|
+
const VERSION4 = "1.4.51";
|
|
24047
24049
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24048
24050
|
const {
|
|
24049
24051
|
API_URL: API_URL2,
|
|
@@ -29257,7 +29259,7 @@ function Img({
|
|
|
29257
29259
|
{
|
|
29258
29260
|
ref,
|
|
29259
29261
|
className: containerClass,
|
|
29260
|
-
style: { ...imgStyles.container.style, width, height: height2 }
|
|
29262
|
+
style: { ...imgStyles.container.style, width, height: height2, ...style2 }
|
|
29261
29263
|
},
|
|
29262
29264
|
/* @__PURE__ */ import_react37.default.createElement(
|
|
29263
29265
|
AnimatedImage,
|
|
@@ -29268,7 +29270,8 @@ function Img({
|
|
|
29268
29270
|
style: {
|
|
29269
29271
|
...imgStyles.img.style,
|
|
29270
29272
|
width,
|
|
29271
|
-
height: height2
|
|
29273
|
+
height: height2,
|
|
29274
|
+
...style2
|
|
29272
29275
|
},
|
|
29273
29276
|
isLoaded,
|
|
29274
29277
|
reduceMotion,
|
|
@@ -45192,14 +45195,15 @@ var init_Message_styles = __esm({
|
|
|
45192
45195
|
display: "flex",
|
|
45193
45196
|
flexDirection: "row",
|
|
45194
45197
|
flexWrap: "wrap",
|
|
45195
|
-
gap:
|
|
45198
|
+
gap: 15,
|
|
45196
45199
|
fontSize: 14
|
|
45197
45200
|
},
|
|
45198
45201
|
updateModalDescriptionItem: {
|
|
45199
45202
|
display: "flex",
|
|
45200
|
-
gap:
|
|
45201
|
-
|
|
45202
|
-
|
|
45203
|
+
gap: 15,
|
|
45204
|
+
paddingBottom: 0,
|
|
45205
|
+
border: "1px dashed var(--shade-2)",
|
|
45206
|
+
borderBottom: "none"
|
|
45203
45207
|
},
|
|
45204
45208
|
appIcon: {
|
|
45205
45209
|
display: "flex",
|
|
@@ -45212,7 +45216,11 @@ var init_Message_styles = __esm({
|
|
|
45212
45216
|
updateModalDescriptionButton: {
|
|
45213
45217
|
display: "flex",
|
|
45214
45218
|
flexDirection: "column",
|
|
45215
|
-
gap: 5
|
|
45219
|
+
gap: 5,
|
|
45220
|
+
border: "1px dashed var(--shade-2)",
|
|
45221
|
+
borderRadius: 20,
|
|
45222
|
+
padding: 10,
|
|
45223
|
+
flex: 1
|
|
45216
45224
|
},
|
|
45217
45225
|
thinking: {
|
|
45218
45226
|
display: "flex",
|
|
@@ -45595,7 +45603,7 @@ function Message({
|
|
|
45595
45603
|
setIsUpdatingApp(false);
|
|
45596
45604
|
return;
|
|
45597
45605
|
}
|
|
45598
|
-
|
|
45606
|
+
await refetchThread();
|
|
45599
45607
|
import_react_hot_toast16.default.success(t6("Updated"));
|
|
45600
45608
|
} catch (error) {
|
|
45601
45609
|
console.error(error);
|
|
@@ -45716,6 +45724,11 @@ function Message({
|
|
|
45716
45724
|
}
|
|
45717
45725
|
};
|
|
45718
45726
|
const [remoteDeleted, setRemoteDeleted] = (0, import_react76.useState)(false);
|
|
45727
|
+
const agentImageStyle = {
|
|
45728
|
+
...styles4.agentMessageImageContainer.style,
|
|
45729
|
+
width: isMobileDevice ? "100%" : "300px",
|
|
45730
|
+
height: isMobileDevice ? "100%" : "300px"
|
|
45731
|
+
};
|
|
45719
45732
|
useWebSocket({
|
|
45720
45733
|
onMessage: async ({ type, data }) => {
|
|
45721
45734
|
if (!token) return;
|
|
@@ -46014,6 +46027,7 @@ function Message({
|
|
|
46014
46027
|
images.map((image) => /* @__PURE__ */ React.createElement(
|
|
46015
46028
|
ImageComponent,
|
|
46016
46029
|
{
|
|
46030
|
+
style: styles4.userMessageImage.style,
|
|
46017
46031
|
dataTestId: "user-message-image",
|
|
46018
46032
|
key: image.id,
|
|
46019
46033
|
src: image.url,
|
|
@@ -46165,10 +46179,11 @@ function Message({
|
|
|
46165
46179
|
icon: "blob",
|
|
46166
46180
|
title: /* @__PURE__ */ React.createElement(Div, null, t6(isUpdatingApp ? "Updating..." : "Switch agent"))
|
|
46167
46181
|
},
|
|
46168
|
-
/* @__PURE__ */ React.createElement(Div, { style: styles4.updateModalDescription }, apps?.map((app2) => /* @__PURE__ */ React.createElement(
|
|
46182
|
+
/* @__PURE__ */ React.createElement(Div, { style: styles4.updateModalDescription.style }, apps?.map((app2) => /* @__PURE__ */ React.createElement(
|
|
46169
46183
|
Button,
|
|
46170
46184
|
{
|
|
46171
|
-
|
|
46185
|
+
key: app2.id,
|
|
46186
|
+
className: "card link border",
|
|
46172
46187
|
disabled: isUpdatingApp,
|
|
46173
46188
|
onClick: () => handleUpdateAgent(app2),
|
|
46174
46189
|
style: {
|
|
@@ -46176,9 +46191,8 @@ function Message({
|
|
|
46176
46191
|
...styles4.updateModalDescriptionButton.style
|
|
46177
46192
|
}
|
|
46178
46193
|
},
|
|
46179
|
-
/* @__PURE__ */ React.createElement(ImageComponent, { app: app2, showLoading: false, size: 50 })
|
|
46180
|
-
|
|
46181
|
-
), /* @__PURE__ */ React.createElement(Div, null, /* @__PURE__ */ React.createElement(Div, null, app2.description)))))
|
|
46194
|
+
/* @__PURE__ */ React.createElement(ImageComponent, { app: app2, showLoading: false, size: 50 })
|
|
46195
|
+
)))
|
|
46182
46196
|
), /* @__PURE__ */ React.createElement(
|
|
46183
46197
|
Div,
|
|
46184
46198
|
{
|
|
@@ -46219,10 +46233,10 @@ function Message({
|
|
|
46219
46233
|
}
|
|
46220
46234
|
), /* @__PURE__ */ React.createElement(Span, null, t6(
|
|
46221
46235
|
message2.message.isImageGenerationEnabled ? "Processing" : "Thinking"
|
|
46222
|
-
)), /* @__PURE__ */ React.createElement(Div, { "data-testid": "typing-indicator", style: styles4.dots.style }, /* @__PURE__ */ React.createElement(Span, null), /* @__PURE__ */ React.createElement(Span, null), /* @__PURE__ */ React.createElement(Span, null))) : /* @__PURE__ */ React.createElement(Div, { style: styles4.agentMessage.style }, /* @__PURE__ */ React.createElement(Div, { style: styles4.agentMessageContent.style }, message2.message.isStreaming && message2.message.isImageGenerationEnabled ? /* @__PURE__ */ React.createElement(Div, { style: styles4.agentMessageImages.style }, /* @__PURE__ */ React.createElement(Div, { style: styles4.placeholder.style }, /* @__PURE__ */ React.createElement(Loading, null))) : message2.message.images && message2.message.images?.length > 0 ? /* @__PURE__ */ React.createElement(Div, { style: styles4.agentMessageImages.style }, message2.message.images.map((image) => /* @__PURE__ */ React.createElement(Div, { key: image.url, style:
|
|
46236
|
+
)), /* @__PURE__ */ React.createElement(Div, { "data-testid": "typing-indicator", style: styles4.dots.style }, /* @__PURE__ */ React.createElement(Span, null), /* @__PURE__ */ React.createElement(Span, null), /* @__PURE__ */ React.createElement(Span, null))) : /* @__PURE__ */ React.createElement(Div, { style: styles4.agentMessage.style }, /* @__PURE__ */ React.createElement(Div, { style: styles4.agentMessageContent.style }, message2.message.isStreaming && message2.message.isImageGenerationEnabled ? /* @__PURE__ */ React.createElement(Div, { style: styles4.agentMessageImages.style }, /* @__PURE__ */ React.createElement(Div, { style: styles4.placeholder.style }, /* @__PURE__ */ React.createElement(Loading, null))) : message2.message.images && message2.message.images?.length > 0 ? /* @__PURE__ */ React.createElement(Div, { style: styles4.agentMessageImages.style }, message2.message.images.map((image) => /* @__PURE__ */ React.createElement(Div, { key: image.url, style: agentImageStyle }, /* @__PURE__ */ React.createElement(
|
|
46223
46237
|
ImageComponent,
|
|
46224
46238
|
{
|
|
46225
|
-
style:
|
|
46239
|
+
style: agentImageStyle,
|
|
46226
46240
|
src: image.url,
|
|
46227
46241
|
alt: "",
|
|
46228
46242
|
width: "100%",
|