@versini/sassysaint 6.6.11 → 7.0.1
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/dist/chunks/{App.BO5ERHO6.js → App.CISJHSam.js} +2210 -2216
- package/dist/chunks/{ChatBubbleAssistant.CdMTnYhs.js → ChatBubbleAssistant.Dlqa0Yzb.js} +13 -11
- package/dist/chunks/{index.DBUj3LXB.js → HeaderEntry.CdYnDOWf.js} +431 -430
- package/dist/chunks/{MarkdownWithExtra.DC_AHnw9.js → MarkdownWithExtra.Dmu9NP5q.js} +2 -2
- package/dist/chunks/{index.BiSTuu2f.js → index.Dyd6jXma.js} +88 -94
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as en, jsx as re, Fragment as er } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { ChatContext as gi, E as di, Re as ct } from "./App.CISJHSam.js";
|
|
3
3
|
import hn from "clsx";
|
|
4
4
|
import { lazy as yi, useContext as ki, Suspense as xi } from "react";
|
|
5
|
-
import { LOCAL_STORAGE_PREFIX as bi, LOCAL_STORAGE_CHAT_DETAILS as wi, durationFormatter as Si } from "./index.
|
|
5
|
+
import { LOCAL_STORAGE_PREFIX as bi, LOCAL_STORAGE_CHAT_DETAILS as wi, durationFormatter as Si } from "./index.Dyd6jXma.js";
|
|
6
6
|
function nr(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
@@ -8653,7 +8653,7 @@ function Wc(e) {
|
|
|
8653
8653
|
const Qc = yi(
|
|
8654
8654
|
() => import(
|
|
8655
8655
|
/* webpackChunkName: "LazyMarkdownWithExtra" */
|
|
8656
|
-
"./MarkdownWithExtra.
|
|
8656
|
+
"./MarkdownWithExtra.Dmu9NP5q.js"
|
|
8657
8657
|
)
|
|
8658
8658
|
), Ln = {
|
|
8659
8659
|
MODEL: "Model",
|
|
@@ -8665,22 +8665,24 @@ const Qc = yi(
|
|
|
8665
8665
|
loading: n,
|
|
8666
8666
|
processingTime: r
|
|
8667
8667
|
}) => {
|
|
8668
|
-
const {
|
|
8668
|
+
const {
|
|
8669
|
+
state: { streaming: i, model: o }
|
|
8670
|
+
} = ki(gi), [l] = di({
|
|
8669
8671
|
key: bi + wi,
|
|
8670
8672
|
initialValue: !1
|
|
8671
|
-
}),
|
|
8672
|
-
[Ln.MODEL]:
|
|
8673
|
-
[Ln.PLUGIN]: t &&
|
|
8674
|
-
[Ln.PROCESSING_TIME]: r &&
|
|
8673
|
+
}), a = {
|
|
8674
|
+
[Ln.MODEL]: o && l ? o : null,
|
|
8675
|
+
[Ln.PLUGIN]: t && l ? t : null,
|
|
8676
|
+
[Ln.PROCESSING_TIME]: r && l ? Si(r) : null
|
|
8675
8677
|
};
|
|
8676
8678
|
return /* @__PURE__ */ re(er, { children: n ? /* @__PURE__ */ re(ct, { children: /* @__PURE__ */ re(Ci, { type: "dots" }) }) : /* @__PURE__ */ en(
|
|
8677
8679
|
ct,
|
|
8678
8680
|
{
|
|
8679
|
-
copyToClipboard: e,
|
|
8681
|
+
copyToClipboard: i ? "loading..." : e,
|
|
8680
8682
|
copyToClipboardFocusMode: "light",
|
|
8681
|
-
footer:
|
|
8683
|
+
footer: a,
|
|
8682
8684
|
noMaxWidth: !0,
|
|
8683
|
-
className: "max-w-[95cqw] @container",
|
|
8685
|
+
className: "max-w-[95cqw] @container mt-3",
|
|
8684
8686
|
children: [
|
|
8685
8687
|
e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ re(xi, { fallback: /* @__PURE__ */ re("div", {}), children: /* @__PURE__ */ re(Qc, { content: e }) }),
|
|
8686
8688
|
e && !e.includes("$$") && !e.includes("```") && /* @__PURE__ */ re(Ru, { remarkPlugins: [Wc], children: e })
|