@asgard-js/react 0.2.20 → 0.2.22
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-message-renderer.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/chatbot-body/conversation-message-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwB,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAuB,MAAM,iBAAiB,CAAC;AAoB3E,UAAU,gCAAgC;IACxC,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,gCAAgC,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"conversation-message-renderer.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/chatbot-body/conversation-message-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwB,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAuB,MAAM,iBAAiB,CAAC;AAoB3E,UAAU,gCAAgC;IACxC,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,gCAAgC,GAAG,SAAS,CAyF9F"}
|
package/dist/index.js
CHANGED
|
@@ -41630,16 +41630,16 @@ function Wye(e) {
|
|
|
41630
41630
|
}
|
|
41631
41631
|
function Hye(e) {
|
|
41632
41632
|
const { message: t } = e, { renderMessageContent: n } = Xf(), { avatar: r } = Dt(), i = xe(() => function({ children: a }) {
|
|
41633
|
-
return t.type === "bot"
|
|
41633
|
+
return t.type === "bot" ? /* @__PURE__ */ Y(dn, { type: "bot", direction: "horizontal", children: [
|
|
41634
41634
|
/* @__PURE__ */ C(cr, { avatar: r }),
|
|
41635
|
-
/* @__PURE__ */ C(ur, { message: t
|
|
41635
|
+
/* @__PURE__ */ C(ur, { message: t, time: t.time, children: a })
|
|
41636
41636
|
] }) : t.type === "user" ? /* @__PURE__ */ C(dn, { type: "user", direction: "horizontal", children: a }) : a;
|
|
41637
41637
|
}, [t, r]), o = pe(() => {
|
|
41638
41638
|
if (t.type === "user")
|
|
41639
41639
|
return t.blobIds && t.blobIds.length > 0 ? /* @__PURE__ */ C(I1e, { message: { type: "user", message: t } }) : /* @__PURE__ */ C(XC, { message: t });
|
|
41640
41640
|
if (t.type === "error")
|
|
41641
41641
|
return /* @__PURE__ */ C(ZC, { message: t });
|
|
41642
|
-
if (t.type === "tool-call"
|
|
41642
|
+
if (t.type === "tool-call")
|
|
41643
41643
|
return null;
|
|
41644
41644
|
if (t.isTyping)
|
|
41645
41645
|
return /* @__PURE__ */ C(ST, { isTyping: t.isTyping, typingText: t.typingText });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asgard-js/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.22",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"vite-plugin-svgr": "^4.3.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@asgard-js/core": "^0.2.
|
|
45
|
+
"@asgard-js/core": "^0.2.22",
|
|
46
46
|
"react": "^18.0.0 || ^19.0.0",
|
|
47
47
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
48
48
|
}
|