@versini/sassysaint 8.45.4 → 8.45.5

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 (26) hide show
  1. package/dist/chunks/{AboutChangelog.Dm7CeWzJ.js → AboutChangelog.BpN2wOS7.js} +2 -2
  2. package/dist/chunks/{AboutEntry.z1IGd8nH.js → AboutEntry.Dhj2VuZW.js} +5 -5
  3. package/dist/chunks/App.D11WrOhS.js +11446 -0
  4. package/dist/chunks/{Chart.fnP0GZlV.js → Chart.CIxXVKbK.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.C214h3Za.js → ChatBubbleAssistant.BL27OUc-.js} +12 -12
  6. package/dist/chunks/ChatHistoryTable.DiJXlug9.js +649 -0
  7. package/dist/chunks/{HistoryEntry.Bg8wGgO6.js → HistoryEntry.C-g2zSt5.js} +27 -27
  8. package/dist/chunks/{LNWAZHJI.CgXWR3aC.js → LNWAZHJI.rjyRVWgx.js} +1 -1
  9. package/dist/chunks/{ProfileEntry.llkfgZbz.js → ProfileEntry.D9_uLmwO.js} +6 -6
  10. package/dist/chunks/SettingsEntry.CqtonnjU.js +889 -0
  11. package/dist/chunks/{UsageEntry.Dt5P9AhJ.js → UsageEntry.llD6nb8y.js} +7 -7
  12. package/dist/chunks/{index.Cdz3tBE5.js → index.5rAVjSln.js} +3 -3
  13. package/dist/chunks/index.BXSqY8t-.js +249 -0
  14. package/dist/chunks/{index.DXnBFV0d.js → index.C6rTHYVc.js} +2 -2
  15. package/dist/chunks/{index.aLXAYIRa.js → index.Ch7-8kkf.js} +1 -1
  16. package/dist/chunks/{index.xegEqIYd.js → index.D8CPTDrL.js} +1222 -1258
  17. package/dist/chunks/{index.Brh2cWqI.js → index.rezmsiOZ.js} +1 -1
  18. package/dist/chunks/{index.0hUxtRYc.js → index.ydUD8HKp.js} +1 -1
  19. package/dist/chunks/{useMarkdown.CWlc3oNt.js → useMarkdown.Cu3gwotw.js} +502 -502
  20. package/dist/components/SassySaint/SassySaint.js +1 -1
  21. package/dist/index.js +4 -4
  22. package/package.json +5 -5
  23. package/dist/chunks/App.Dxe8LDdD.js +0 -12621
  24. package/dist/chunks/ChatHistoryTable.CHWU2-BC.js +0 -1205
  25. package/dist/chunks/SettingsEntry.mv_g2-2P.js +0 -1064
  26. package/dist/chunks/index.CyMvgyLB.js +0 -804
@@ -1,7 +1,7 @@
1
1
  import { jsx as Tp } from "react/jsx-runtime";
2
- import { getDefaultExportFromCjs as ln } from "./App.Dxe8LDdD.js";
2
+ import { getDefaultExportFromCjs as ln } from "./App.D11WrOhS.js";
3
3
  import Ap, { useState as Cp, useEffect as Pp } from "react";
4
- import { TRIMESTERS as rn, TRIMESTERS_SHORT as Op, isProbablyMobile as Lp } from "./index.xegEqIYd.js";
4
+ import { TRIMESTERS as rn, TRIMESTERS_SHORT as Op, isProbablyMobile as Lp } from "./index.D8CPTDrL.js";
5
5
  var ls = { exports: {} }, Ep = ls.exports, on;
6
6
  function Ip() {
7
7
  return on || (on = 1, (function(ve, ne) {
@@ -1,10 +1,10 @@
1
- import { jsx as g } from "react/jsx-runtime";
2
- import { n as N, convertCamelCaseToReadable as O, numberFormatter as P, pluralize as R, ne as y } from "./index.xegEqIYd.js";
3
- import { BUBBLE_FOOTER_EMPTY as L } from "./index.CyMvgyLB.js";
1
+ import { jsx as M } from "react/jsx-runtime";
2
+ import { n as N, convertCamelCaseToReadable as O, numberFormatter as P, pluralize as R, ne as y } from "./index.D8CPTDrL.js";
3
+ import { BUBBLE_FOOTER_EMPTY as L } from "./index.BXSqY8t-.js";
4
4
  import U from "clsx";
5
5
  import _, { useState as b, useRef as A, useEffect as w, useContext as v } from "react";
6
- import { ChatContext as B, useUserPreferences as G, AsyncBubble as E } from "./App.Dxe8LDdD.js";
7
- import { useMarkdown as D } from "./useMarkdown.CWlc3oNt.js";
6
+ import { ChatContext as B, useUserPreferences as G, AsyncBubble as E } from "./App.D11WrOhS.js";
7
+ import { useMarkdown as D } from "./useMarkdown.Cu3gwotw.js";
8
8
  const j = 2, q = j * 1e3, x = "", I = (e) => e * (2 - e);
9
9
  function W(e, n = !0) {
10
10
  const [a, p] = b(0), [i, C] = b(0), [t, T] = b(e), r = A(0), s = A(0);
@@ -13,8 +13,8 @@ function W(e, n = !0) {
13
13
  return;
14
14
  const u = e.split(x).length, o = (c) => {
15
15
  s.current || (s.current = c);
16
- const l = c - s.current, m = Math.min(l / q, 1), h = I(m), M = i + (u - i) * h;
17
- p(Math.floor(M)), m < 1 && (r.current = requestAnimationFrame(o));
16
+ const l = c - s.current, m = Math.min(l / q, 1), h = I(m), g = i + (u - i) * h;
17
+ p(Math.floor(g)), m < 1 && (r.current = requestAnimationFrame(o));
18
18
  };
19
19
  return s.current = 0, r.current = requestAnimationFrame(o), () => {
20
20
  r.current && cancelAnimationFrame(r.current);
@@ -36,26 +36,26 @@ const d = {
36
36
  }) => {
37
37
  const t = W(e, i), {
38
38
  state: { streaming: T, restoredModel: r, tokenUsage: s }
39
- } = v(B), u = n?.model || r, o = s, [c, l] = D(), { user: m, getAccessToken: h } = N(), { data: M } = G({
39
+ } = v(B), u = n?.model || r, o = s, [c, l] = D(), { user: m, getAccessToken: h } = N(), { data: g } = G({
40
40
  user: m?.username,
41
41
  getAccessToken: h
42
- }), F = M?.showDetails || !1;
42
+ }), F = g?.showDetails || !1;
43
43
  let f;
44
44
  return F && (f = {
45
45
  [d.MODEL]: u || null,
46
46
  [d.PLUGIN]: a ? O(a) : null
47
47
  }, o && (C ? f[d.USAGE] = `${P.format(o)} ${R("token", o)}` : f[d.USAGE] = L)), w(() => {
48
48
  t && l(t);
49
- }, [t, l]), p === y ? /* @__PURE__ */ g(
49
+ }, [t, l]), p === y ? /* @__PURE__ */ M(
50
50
  E,
51
51
  {
52
52
  tail: !0,
53
53
  className: S,
54
54
  contentClassName: k,
55
55
  noMaxWidth: !0,
56
- children: /* @__PURE__ */ g("div", { className: "flex items-center justify-center italic text-copy-error-dark dark:text-red-300", children: c })
56
+ children: /* @__PURE__ */ M("div", { className: "flex items-center justify-center italic text-copy-error-dark dark:text-red-300", children: c })
57
57
  }
58
- ) : /* @__PURE__ */ g(
58
+ ) : /* @__PURE__ */ M(
59
59
  E,
60
60
  {
61
61
  tail: !0,