@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.
@@ -1,8 +1,8 @@
1
1
  import { jsxs as en, jsx as re, Fragment as er } from "react/jsx-runtime";
2
- import { AppContext as gi, E as di, Re as ct } from "./App.BO5ERHO6.js";
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.BiSTuu2f.js";
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.DC_AHnw9.js"
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 { state: i } = ki(gi), [o] = di({
8668
+ const {
8669
+ state: { streaming: i, model: o }
8670
+ } = ki(gi), [l] = di({
8669
8671
  key: bi + wi,
8670
8672
  initialValue: !1
8671
- }), l = {
8672
- [Ln.MODEL]: i && i.model && o ? i.model : null,
8673
- [Ln.PLUGIN]: t && o ? t : null,
8674
- [Ln.PROCESSING_TIME]: r && o ? Si(r) : null
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: l,
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 })