@mxmweb/aichat 1.4.1 → 1.4.2

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.
Files changed (2) hide show
  1. package/index.js +28 -46
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -43729,57 +43729,39 @@ function KV({
43729
43729
  status: a,
43730
43730
  eventsEmit: o
43731
43731
  }) {
43732
- const i = Ue(null), s = (l, c) => /* @__PURE__ */ k.jsx(
43733
- "div",
43734
- {
43735
- className: "mb-6",
43736
- style: { transform: "rotate(180deg)", direction: "ltr" },
43737
- children: l.istype === "user" ? n ? /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: n(l, c) }) : /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: /* @__PURE__ */ k.jsx(
43738
- WV,
43739
- {
43740
- ...l,
43741
- sessionContext: r,
43742
- eventsEmit: o
43743
- }
43744
- ) }) : t ? /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: t(l, c) }) : /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: /* @__PURE__ */ k.jsx(
43745
- qV,
43746
- {
43747
- ...l,
43748
- sessionContext: r,
43749
- eventsEmit: o
43750
- }
43751
- ) })
43752
- },
43753
- l.istype === "user" ? l.queryId : "relatedTo-" + l.queryId
43754
- );
43732
+ const i = Ue(null);
43755
43733
  return /* @__PURE__ */ k.jsxs(
43756
43734
  "div",
43757
43735
  {
43758
- style: { direction: "rtl" },
43759
- className: "max-w-[1000px] min-w-[650px] mx-auto",
43760
- // messages.length > 10 ? (
43761
- // <Virtuoso
43762
- // style={{ height: 600, width: '100%', direction: 'rtl', transform: 'rotate(180deg)' }}
43763
- // totalCount={messages.length}
43764
- // itemContent={(index: number) => (
43765
- // <div style={{ transform: 'rotate(180deg)', direction: 'ltr' }}>
43766
- // {renderMessage(messages[index], index)}
43767
- // </div>
43768
- // )}
43769
- // data={messages}
43770
- // initialTopMostItemIndex={messages.length - 1}
43771
- // />
43736
+ style: { direction: "rtl", transform: "rotate(180deg)" },
43737
+ className: " max-w-[1000px] min-w-[650px] mx-auto",
43738
+ // messages.length > 50 ? (
43739
+ // <List
43740
+ // height={600}
43741
+ // itemCount={messages.length}
43742
+ // itemSize={80}
43743
+ // width={'100%'}
43744
+ // style={{ direction: 'ltr', transform: 'rotate(180deg)' }}
43745
+ // >
43746
+ // {renderRow}
43747
+ // </List>
43772
43748
  // ) : (
43773
43749
  children: [
43774
- e.map((l, c) => /* @__PURE__ */ k.jsx(
43775
- "div",
43750
+ e.map((s, l) => /* @__PURE__ */ k.jsx("div", { className: "mb-6", children: s.istype === "user" ? n ? /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: n(s, l) }) : /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: /* @__PURE__ */ k.jsx(
43751
+ WV,
43776
43752
  {
43777
- className: "mb-6",
43778
- style: { direction: "ltr" },
43779
- children: s(l, c)
43780
- },
43781
- l.istype === "user" ? l.queryId : "relatedTo-" + l.queryId
43782
- )),
43753
+ ...s,
43754
+ sessionContext: r,
43755
+ eventsEmit: o
43756
+ }
43757
+ ) }) : t ? /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: t(s, l) }) : /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: /* @__PURE__ */ k.jsx(
43758
+ qV,
43759
+ {
43760
+ ...s,
43761
+ sessionContext: r,
43762
+ eventsEmit: o
43763
+ }
43764
+ ) }) }, s.istype === "user" ? s.queryId : "relatedTo-" + s.queryId)),
43783
43765
  /* @__PURE__ */ k.jsx("div", { ref: i })
43784
43766
  ]
43785
43767
  }
@@ -44452,7 +44434,7 @@ function tW() {
44452
44434
  return /* @__PURE__ */ k.jsx("div", { className: "main relative h-full w-full flex items-center justify-center", children: /* @__PURE__ */ k.jsx("div", { className: "text-2xl font-bold", children: "display loading..." }) });
44453
44435
  }
44454
44436
  function nW() {
44455
- return /* @__PURE__ */ k.jsx("div", { className: "main relative h-full w-full flex items-center justify-center", children: /* @__PURE__ */ k.jsx("div", { className: "text-2xl font-bold", children: "app error..." }) });
44437
+ return /* @__PURE__ */ k.jsx("div", { className: "main relative h-full w-full bg-transparent! flex items-center justify-center", children: /* @__PURE__ */ k.jsx("div", { className: "text-2xl font-bold", children: "app error..." }) });
44456
44438
  }
44457
44439
  function rW() {
44458
44440
  return /* @__PURE__ */ k.jsx("div", { className: "main relative h-full w-full flex items-center justify-center", children: /* @__PURE__ */ k.jsx("div", { className: "text-2xl font-bold", children: "display error..." }) });
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "style": "assets/style.css",
6
6
  "types": "index.d.ts",
7
7
  "private": false,
8
- "version": "1.4.1",
8
+ "version": "1.4.2",
9
9
  "author": "hanfeng_Zhang",
10
10
  "type": "module",
11
11
  "scripts": {