@versini/sassysaint 8.90.2 → 8.91.0

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 (28) hide show
  1. package/dist/chunks/{AboutChangelog.Bzj36blr.js → AboutChangelog.DghwIbGm.js} +3 -3
  2. package/dist/chunks/AboutEntry.RlLAPOEe.js +89 -0
  3. package/dist/chunks/{App.BLhkVXVz.js → App.DkMgrvIO.js} +635 -613
  4. package/dist/chunks/{Chart.Ck03N8tk.js → Chart.v7akUZT3.js} +2 -2
  5. package/dist/chunks/ChatBubbleAssistant.Bu1x35ya.js +71 -0
  6. package/dist/chunks/{ChatBubbleUser.D0_zGRN6.js → ChatBubbleUser.DiGyPZ2b.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.DffhDAId.js → ChatHistoryTable.BgPyiv-W.js} +8 -8
  8. package/dist/chunks/{HistoryEntry.CyZKhE-r.js → HistoryEntry.BhfYcwPP.js} +38 -37
  9. package/dist/chunks/{ProfileEntry.CKZk7T66.js → ProfileEntry.FFqtFIdd.js} +21 -20
  10. package/dist/chunks/{SettingsEntry.Bmq54xRJ.js → SettingsEntry.BI15jO5w.js} +25 -24
  11. package/dist/chunks/{UsageEntry.CUOJVTSh.js → UsageEntry.DB1Dgup7.js} +26 -25
  12. package/dist/chunks/{UserMemoriesPanel.CewUKKEO.js → UserMemoriesPanel.CGE_KomO.js} +13 -12
  13. package/dist/chunks/{index.Cdezl5BS.js → index.8SDxHLuq.js} +638 -642
  14. package/dist/chunks/{index.CGkK3Bq7.js → index.BE8w381j.js} +1 -1
  15. package/dist/chunks/{index.Ds35lAgW.js → index.BRlTWyjo.js} +2 -2
  16. package/dist/chunks/{index.BnVRcTCh.js → index.C7z08Bcn.js} +1 -1
  17. package/dist/chunks/{index.DA-sTqbx.js → index.CEi6RNum.js} +1 -1
  18. package/dist/chunks/{index.25VgFBJF.js → index.CRj1aLR-.js} +1 -1
  19. package/dist/chunks/{index.D6Jf67I7.js → index.DBoCLIQA.js} +1 -1
  20. package/dist/chunks/{index.B2fv-jn6.js → index.eCKoB2IJ.js} +3 -3
  21. package/dist/chunks/{index.XVjKijS9.js → index.mhC0_M_t.js} +1 -1
  22. package/dist/chunks/{useMarkdown.CAyTbBaF.js → useMarkdown.fdak3xWv.js} +6 -6
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/dist/style.css +2 -2
  26. package/package.json +3 -3
  27. package/dist/chunks/AboutEntry.SY2SIeDZ.js +0 -69
  28. package/dist/chunks/ChatBubbleAssistant.DtgiothS.js +0 -82
@@ -1,82 +0,0 @@
1
- import { jsx as x } from "react/jsx-runtime";
2
- import { ChatContext as P, AppContext as R, n as y, useUserPreferences as L, convertCamelCaseToReadable as _, numberFormatter as v, pluralize as B, O as G } from "./index.Cdezl5BS.js";
3
- import { BUBBLE_FOOTER_EMPTY as D } from "./index.BnVRcTCh.js";
4
- import U from "clsx";
5
- import j, { useState as M, useRef as E, useEffect as O, useContext as S } from "react";
6
- import { AsyncBubble as k } from "./App.BLhkVXVz.js";
7
- import { useMarkdown as q } from "./useMarkdown.CAyTbBaF.js";
8
- const I = 2, W = I * 1e3, b = "", V = (e) => e * (2 - e);
9
- function Y(e, n = !0) {
10
- const [a, d] = M(0), [i, p] = M(0), [t, C] = M(e), r = E(0), s = E(0);
11
- return t !== e && (C(e), p(e.startsWith(t) ? a : 0)), O(() => {
12
- if (!n)
13
- return;
14
- const g = e.split(b).length, c = (o) => {
15
- s.current || (s.current = o);
16
- const u = o - s.current, l = Math.min(u / W, 1), h = V(l), T = i + (g - i) * h;
17
- d(Math.floor(T)), l < 1 && (r.current = requestAnimationFrame(c));
18
- };
19
- return s.current = 0, r.current = requestAnimationFrame(c), () => {
20
- r.current && cancelAnimationFrame(r.current);
21
- };
22
- }, [i, e, n]), n ? e.split(b).slice(0, a).join(b) : e;
23
- }
24
- const f = {
25
- MODEL: "Model",
26
- PLUGIN: "Plugin",
27
- USAGE: "Session usage"
28
- }, w = U("max-w-[99cqw]", "mt-3"), Z = j.memo(
29
- ({
30
- content: e,
31
- annotations: n,
32
- toolName: a,
33
- role: d,
34
- smooth: i = !1,
35
- isLastAssistantMessage: p = !1
36
- }) => {
37
- const t = Y(e, i), {
38
- state: { streaming: C, restoredModel: r, tokenUsage: s }
39
- } = S(P), {
40
- state: { fullScreen: g }
41
- } = S(R), c = n?.model || r, o = s, [u, l] = q(), { user: h, getAccessToken: T } = y(), { data: F } = L({
42
- user: h?.username,
43
- getAccessToken: T
44
- }), N = F?.showDetails || !1, A = U("prose-li:ps-3", {
45
- "max-w-xs sm:max-w-3xl": !g
46
- });
47
- let m;
48
- return N && (m = {
49
- [f.MODEL]: c || null,
50
- [f.PLUGIN]: a ? _(a) : null
51
- }, o && (p ? m[f.USAGE] = `${v.format(o)} ${B("token", o)}` : m[f.USAGE] = D)), O(() => {
52
- t && l(t);
53
- }, [t, l]), d === G ? /* @__PURE__ */ x(
54
- k,
55
- {
56
- gradient: "medium",
57
- tail: !0,
58
- className: w,
59
- contentClassName: A,
60
- noMaxWidth: !0,
61
- children: /* @__PURE__ */ x("div", { className: "flex items-center justify-center italic text-copy-error-dark dark:text-red-300", children: u })
62
- }
63
- ) : /* @__PURE__ */ x(
64
- k,
65
- {
66
- gradient: "light",
67
- tail: !0,
68
- copyToClipboardMode: "dark",
69
- copyToClipboardFocusMode: "light",
70
- copyToClipboard: C ? "loading..." : e,
71
- footer: m,
72
- className: w,
73
- contentClassName: A,
74
- noMaxWidth: !0,
75
- children: u
76
- }
77
- );
78
- }
79
- );
80
- export {
81
- Z as default
82
- };