@versini/sassysaint 5.5.8 → 5.5.9

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,6 +1,6 @@
1
- import { jsxs as v, jsx as n, Fragment as G } from "react/jsx-runtime";
2
- import { g as Te, ACTION_RESTORE as we, ACTION_MESSAGE as B, ROLE_ASSISTANT as A, ACTION_RESET as _e, ACTION_MODEL as ie, ACTION_ENGINE as ne, ACTION_STREAMING as se, ACTION_SORT as Ne, ACTION_SEARCH as Ce, ACTION_SET_TAGS as de, ACTION_RESET_TAGS as ce, ACTION_TOGGLE_TAG as le, un as z, ROLE_SYSTEM as Ee, ROLE_INTERNAL as j, ROLE_HIDDEN as Se, DEFAULT_AI_ENGINE as L, STATS_SEPARATOR as Y, CLIPBOARD_TAG as J, TYPE_QUESTION as Ie, C as ge, SEND as Re, ERROR_MESSAGE as Be, ROLE_USER as $, L as Ae, j as Me, isLastMessageFromRole as Le, getMessageContaintWrapperClass as Oe, O as ze, MessagesContainerHeader as Ue, _ as Ve, LOCAL_STORAGE_PREFIX as Q, LOCAL_STORAGE_SEARCH as De, LOCAL_STORAGE_SORT as $e } from "./index.CKvmD6Gi.js";
3
- import { AppContext as M, TagsContext as F, restCall as He, Fe as Ge, NewChatButton as je, serviceCall as me, SERVICE_TYPES as ue, E as X, HistoryContext as Fe, f as Pe } from "./index.DMnfO73f.js";
1
+ import { jsxs as v, jsx as n, Fragment as P } from "react/jsx-runtime";
2
+ import { g as Te, ACTION_RESTORE as we, ACTION_MESSAGE as B, ROLE_ASSISTANT as M, ACTION_RESET as _e, ACTION_MODEL as ie, ACTION_ENGINE as ne, ACTION_STREAMING as se, ACTION_SORT as Ne, ACTION_SEARCH as Ce, ACTION_SET_TAGS as de, ACTION_RESET_TAGS as ce, ACTION_TOGGLE_TAG as le, un as z, ROLE_SYSTEM as Ee, ROLE_INTERNAL as G, ROLE_HIDDEN as Se, DEFAULT_AI_ENGINE as L, STATS_SEPARATOR as Y, CLIPBOARD_TAG as J, TYPE_QUESTION as Ie, C as ge, SEND as Re, ERROR_MESSAGE as Be, ROLE_USER as $, L as Me, j as Ae, isLastMessageFromRole as Le, getMessageContaintWrapperClass as Oe, O as ze, MessagesContainerHeader as Ue, _ as Ve, LOCAL_STORAGE_PREFIX as Q, LOCAL_STORAGE_SEARCH as De, LOCAL_STORAGE_SORT as $e } from "./index.CFKzlMOQ.js";
3
+ import { AppContext as A, TagsContext as j, restCall as He, Fe as Pe, NewChatButton as Ge, serviceCall as me, SERVICE_TYPES as ue, E as X, HistoryContext as je, f as Fe } from "./index.DPKX3b_X.js";
4
4
  import R, { useRef as _, useEffect as k, useCallback as H, useState as N, useMemo as We, useContext as I, lazy as Ke, Suspense as Z, useLayoutEffect as qe, useReducer as V } from "react";
5
5
  import s from "clsx";
6
6
  const Ye = ({
@@ -109,7 +109,7 @@ function it() {
109
109
  return D(ot);
110
110
  }
111
111
  const nt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ee = { randomUUID: nt };
112
- function P(e, t, r) {
112
+ function F(e, t, r) {
113
113
  if (ee.randomUUID && !t && !e)
114
114
  return ee.randomUUID();
115
115
  e = e || {};
@@ -146,7 +146,7 @@ const st = (e, t) => {
146
146
  processingTime: i,
147
147
  messageId: l
148
148
  };
149
- if (r === A) {
149
+ if (r === M) {
150
150
  const c = e.messages.findIndex(
151
151
  (m) => m.message.messageId === l
152
152
  );
@@ -187,7 +187,7 @@ const st = (e, t) => {
187
187
  }
188
188
  }
189
189
  return (t == null ? void 0 : t.type) === _e ? {
190
- id: P(),
190
+ id: F(),
191
191
  model: e.model,
192
192
  engine: e.engine,
193
193
  usage: 0,
@@ -258,13 +258,13 @@ const st = (e, t) => {
258
258
  type: B,
259
259
  payload: {
260
260
  message: {
261
- role: j,
261
+ role: G,
262
262
  content: Be
263
263
  }
264
264
  }
265
265
  });
266
266
  }, lt = () => {
267
- const { state: e, dispatch: t } = I(M), { state: r, dispatch: a } = I(F), [o, i] = N(""), { getAccessToken: l, user: d } = z(), c = _(null), m = _(
267
+ const { state: e, dispatch: t } = I(A), { state: r, dispatch: a } = I(j), [o, i] = N(""), { getAccessToken: l, user: d } = z(), c = _(null), m = _(
268
268
  null
269
269
  );
270
270
  k(() => {
@@ -275,7 +275,7 @@ const st = (e, t) => {
275
275
  return;
276
276
  }
277
277
  const b = e.messages[e.messages.length - 1];
278
- if (!(e.messages.length === 0 || b.message.role === A || b.message.role === Ee || b.message.role === j || b.message.role === Se))
278
+ if (!(e.messages.length === 0 || b.message.role === M || b.message.role === Ee || b.message.role === G || b.message.role === Se))
279
279
  try {
280
280
  const h = await He({
281
281
  accessToken: await l(),
@@ -289,7 +289,7 @@ const st = (e, t) => {
289
289
  }
290
290
  });
291
291
  if (h && h.ok) {
292
- const p = P();
292
+ const p = F();
293
293
  m.current = h.body.getReader();
294
294
  const f = new TextDecoder();
295
295
  for (; ; ) {
@@ -315,7 +315,7 @@ const st = (e, t) => {
315
315
  payload: {
316
316
  message: {
317
317
  content: S,
318
- role: A,
318
+ role: M,
319
319
  messageId: p,
320
320
  processingTime: w.processingTime,
321
321
  name: w.name
@@ -329,7 +329,7 @@ const st = (e, t) => {
329
329
  payload: {
330
330
  message: {
331
331
  content: x,
332
- role: A,
332
+ role: M,
333
333
  messageId: p
334
334
  }
335
335
  }
@@ -364,8 +364,8 @@ const st = (e, t) => {
364
364
  }
365
365
  }, [r, a]), k(() => {
366
366
  e && e.usage === 0 && e.messages.length === 0 && c.current && c.current.focus();
367
- }, [e]), /* @__PURE__ */ n(G, { children: /* @__PURE__ */ n("form", { className: "mt-2", onSubmit: u, children: /* @__PURE__ */ n(
368
- Ge,
367
+ }, [e]), /* @__PURE__ */ n(P, { children: /* @__PURE__ */ n("form", { className: "mt-2", onSubmit: u, children: /* @__PURE__ */ n(
368
+ Pe,
369
369
  {
370
370
  mode: "dark",
371
371
  focusMode: "light",
@@ -378,7 +378,7 @@ const st = (e, t) => {
378
378
  value: o,
379
379
  onChange: (b) => i(b.target.value),
380
380
  onKeyDown: Ze([["mod+Enter", u]]),
381
- leftElement: /* @__PURE__ */ n(je, {}),
381
+ leftElement: /* @__PURE__ */ n(Ge, {}),
382
382
  rightElement: /* @__PURE__ */ n(
383
383
  ge,
384
384
  {
@@ -393,7 +393,7 @@ const st = (e, t) => {
393
393
  }
394
394
  ) }) });
395
395
  }, gt = () => {
396
- const { dispatch: e, state: t } = I(F), { getAccessToken: r, user: a } = z(), [o, i] = N({
396
+ const { dispatch: e, state: t } = I(j), { getAccessToken: r, user: a } = z(), [o, i] = N({
397
397
  loaded: !1
398
398
  }), l = "mt-2 flex justify-center rounded-md", d = (c, m) => {
399
399
  c.preventDefault(), e({
@@ -430,7 +430,7 @@ const st = (e, t) => {
430
430
  } catch {
431
431
  }
432
432
  })();
433
- }, [a]), /* @__PURE__ */ n(G, { children: /* @__PURE__ */ n(Ae, { alignHorizontal: "center", columnGap: 2, children: o && o.loaded && t.tags && t.tags.map((c) => c.enabled && c.label && c.content && /* @__PURE__ */ n(Me, { children: /* @__PURE__ */ n("div", { className: l, children: /* @__PURE__ */ n(
433
+ }, [a]), /* @__PURE__ */ n(P, { children: /* @__PURE__ */ n(Me, { alignHorizontal: "center", columnGap: 2, children: o && o.loaded && t.tags && t.tags.map((c) => c.enabled && c.label && c.content && /* @__PURE__ */ n(Ae, { children: /* @__PURE__ */ n("div", { className: l, children: /* @__PURE__ */ n(
434
434
  ge,
435
435
  {
436
436
  noBorder: !0,
@@ -442,7 +442,7 @@ const st = (e, t) => {
442
442
  }
443
443
  ) }) }, `tag-button-${c.slot}`)) }) });
444
444
  }, mt = () => {
445
- const { state: e } = I(M), t = _(!1), r = window.innerWidth < 403, [a, o] = N(
445
+ const { state: e } = I(A), t = _(!1), r = window.innerWidth < 403, [a, o] = N(
446
446
  r ? "bottom-10" : "top-[245px]"
447
447
  );
448
448
  return k(() => {
@@ -464,13 +464,13 @@ const st = (e, t) => {
464
464
  );
465
465
  };
466
466
  /*!
467
- @versini/ui-bubble v2.0.11
468
- © 2024 gizmette.com
467
+ @versini/ui-bubble v2.0.12
468
+ © 2025 gizmette.com
469
469
  */
470
470
  try {
471
471
  window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
472
- version: "2.0.11",
473
- buildTime: "12/31/2024 09:02 AM EST",
472
+ version: "2.0.12",
473
+ buildTime: "01/01/2025 07:31 PM EST",
474
474
  homepage: "https://github.com/aversini/ui-components",
475
475
  license: "MIT"
476
476
  });
@@ -800,13 +800,13 @@ const be = R.forwardRef(
800
800
  );
801
801
  be.displayName = "ButtonIcon";
802
802
  /*!
803
- @versini/ui-button v3.2.0
804
- © 2024 gizmette.com
803
+ @versini/ui-button v3.2.1
804
+ © 2025 gizmette.com
805
805
  */
806
806
  try {
807
807
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
808
- version: "3.2.0",
809
- buildTime: "12/31/2024 09:01 AM EST",
808
+ version: "3.2.1",
809
+ buildTime: "01/01/2025 07:31 PM EST",
810
810
  homepage: "https://github.com/aversini/ui-components",
811
811
  license: "MIT"
812
812
  });
@@ -902,7 +902,7 @@ const pe = ({
902
902
  ...c
903
903
  }) => {
904
904
  const m = s(i, a);
905
- return /* @__PURE__ */ v(G, { children: [
905
+ return /* @__PURE__ */ v(P, { children: [
906
906
  /* @__PURE__ */ n(
907
907
  "svg",
908
908
  {
@@ -922,12 +922,12 @@ const pe = ({
922
922
  };
923
923
  /*!
924
924
  @versini/ui-svgicon v3.0.2
925
- © 2024 gizmette.com
925
+ © 2025 gizmette.com
926
926
  */
927
927
  try {
928
928
  window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
929
929
  version: "3.0.2",
930
- buildTime: "12/31/2024 09:01 AM EST",
930
+ buildTime: "01/01/2025 07:31 PM EST",
931
931
  homepage: "https://github.com/aversini/ui-components",
932
932
  license: "MIT"
933
933
  });
@@ -978,13 +978,13 @@ const _t = ({
978
978
  }
979
979
  );
980
980
  /*!
981
- @versini/ui-icons v3.0.2
982
- © 2024 gizmette.com
981
+ @versini/ui-icons v3.1.0
982
+ © 2025 gizmette.com
983
983
  */
984
984
  try {
985
985
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
986
- version: "3.0.2",
987
- buildTime: "12/31/2024 09:01 AM EST",
986
+ version: "3.1.0",
987
+ buildTime: "01/01/2025 07:31 PM EST",
988
988
  homepage: "https://github.com/aversini/ui-components",
989
989
  license: "MIT"
990
990
  });
@@ -1073,7 +1073,7 @@ const Ct = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Et = ({ kind: e }) =>
1073
1073
  }
1074
1074
  ) })
1075
1075
  ] });
1076
- }, ae = "av-button", ye = "icon", fe = "button", At = "link", Mt = ({
1076
+ }, ae = "av-button", ye = "icon", fe = "button", Mt = "link", At = ({
1077
1077
  type: e,
1078
1078
  size: t,
1079
1079
  labelRight: r,
@@ -1088,7 +1088,7 @@ const Ct = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Et = ({ kind: e }) =>
1088
1088
  [l]: t === "medium",
1089
1089
  [d]: t === "large"
1090
1090
  });
1091
- case At:
1091
+ case Mt:
1092
1092
  return s("text-center", {
1093
1093
  [i]: t === "small",
1094
1094
  [l]: t === "medium",
@@ -1302,7 +1302,7 @@ const Ct = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Et = ({ kind: e }) =>
1302
1302
  noTruncate: h,
1303
1303
  radius: f
1304
1304
  }),
1305
- Mt({
1305
+ At({
1306
1306
  type: e,
1307
1307
  size: d,
1308
1308
  labelRight: m,
@@ -1379,13 +1379,13 @@ const ke = R.forwardRef(
1379
1379
  );
1380
1380
  ke.displayName = "Button";
1381
1381
  /*!
1382
- @versini/ui-button v3.2.0
1383
- © 2024 gizmette.com
1382
+ @versini/ui-button v3.2.1
1383
+ © 2025 gizmette.com
1384
1384
  */
1385
1385
  try {
1386
1386
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
1387
- version: "3.2.0",
1388
- buildTime: "12/31/2024 09:01 AM EST",
1387
+ version: "3.2.1",
1388
+ buildTime: "01/01/2025 07:31 PM EST",
1389
1389
  homepage: "https://github.com/aversini/ui-components",
1390
1390
  license: "MIT"
1391
1391
  });
@@ -1469,7 +1469,7 @@ const $t = R.forwardRef(
1469
1469
  }
1470
1470
  );
1471
1471
  $t.displayName = "ButtonSort";
1472
- const Ht = 200, Gt = ({
1472
+ const Ht = 200, Pt = ({
1473
1473
  string: e,
1474
1474
  idealLength: t = Ht
1475
1475
  }) => {
@@ -1482,7 +1482,7 @@ const Ht = 200, Gt = ({
1482
1482
  string: e.slice(0, t + r),
1483
1483
  isTruncated: !0
1484
1484
  };
1485
- }, jt = ({
1485
+ }, Gt = ({
1486
1486
  children: e,
1487
1487
  length: t = 200,
1488
1488
  mode: r = "system",
@@ -1491,7 +1491,7 @@ const Ht = 200, Gt = ({
1491
1491
  const [o, i] = N(!1);
1492
1492
  if (typeof e != "string")
1493
1493
  return e;
1494
- const { string: l, isTruncated: d } = Gt({
1494
+ const { string: l, isTruncated: d } = Pt({
1495
1495
  string: e,
1496
1496
  idealLength: t
1497
1497
  });
@@ -1513,13 +1513,13 @@ const Ht = 200, Gt = ({
1513
1513
  ] });
1514
1514
  };
1515
1515
  /*!
1516
- @versini/ui-truncate v2.0.8
1517
- © 2024 gizmette.com
1516
+ @versini/ui-truncate v2.0.9
1517
+ © 2025 gizmette.com
1518
1518
  */
1519
1519
  try {
1520
1520
  window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
1521
- version: "2.0.8",
1522
- buildTime: "12/31/2024 09:01 AM EST",
1521
+ version: "2.0.9",
1522
+ buildTime: "01/01/2025 07:31 PM EST",
1523
1523
  homepage: "https://github.com/aversini/ui-components",
1524
1524
  license: "MIT"
1525
1525
  });
@@ -1528,14 +1528,14 @@ try {
1528
1528
  const oe = Ke(
1529
1529
  () => import(
1530
1530
  /* webpackChunkName: "LazyMessageAssistant" */
1531
- "./LazyMessageAssistant.DCB_SFcK.js"
1531
+ "./LazyMessageAssistant.DLY895fQ.js"
1532
1532
  ).then((e) => e.LazyMessageAssistant)
1533
- ), Ft = () => {
1534
- const { state: e } = I(M);
1533
+ ), jt = () => {
1534
+ const { state: e } = I(A);
1535
1535
  return /* @__PURE__ */ v("div", { className: "space-y-6 mt-2", children: [
1536
1536
  e && e.messages.length > 0 && e.messages.map((t, r) => {
1537
1537
  const { role: a, content: o, name: i, processingTime: l } = t.message;
1538
- return (a === A || a === j) && o ? /* @__PURE__ */ n(Z, { fallback: /* @__PURE__ */ n("span", {}), children: /* @__PURE__ */ n(
1538
+ return (a === M || a === G) && o ? /* @__PURE__ */ n(Z, { fallback: /* @__PURE__ */ n("span", {}), children: /* @__PURE__ */ n(
1539
1539
  oe,
1540
1540
  {
1541
1541
  name: i,
@@ -1548,15 +1548,15 @@ const oe = Ke(
1548
1548
  kind: "right",
1549
1549
  copyToClipboard: o,
1550
1550
  copyToClipboardFocusMode: "light",
1551
- children: /* @__PURE__ */ n(jt, { mode: "light", focusMode: "light", children: o })
1551
+ children: /* @__PURE__ */ n(Gt, { mode: "light", focusMode: "light", children: o })
1552
1552
  },
1553
1553
  `${r}-${a}`
1554
1554
  ) : null;
1555
1555
  }),
1556
1556
  Le($, e) && /* @__PURE__ */ n(Z, { fallback: /* @__PURE__ */ n("span", {}), children: /* @__PURE__ */ n(oe, { loading: !0 }) })
1557
1557
  ] });
1558
- }, Pt = () => {
1559
- const { isAuthenticated: e } = z(), { state: t } = I(M), [r, a] = N(!1), [o, i] = rt(), l = Oe(e), d = _(!1), c = H(() => {
1558
+ }, Ft = () => {
1559
+ const { isAuthenticated: e } = z(), { state: t } = I(A), [r, a] = N(!1), [o, i] = rt(), l = Oe(e), d = _(!1), c = H(() => {
1560
1560
  const u = o.current;
1561
1561
  if (u) {
1562
1562
  const { scrollHeight: b, clientHeight: g, scrollTop: h } = u, p = b - g - h;
@@ -1594,7 +1594,7 @@ const oe = Ke(
1594
1594
  }
1595
1595
  ) }),
1596
1596
  /* @__PURE__ */ n(Ue, {}),
1597
- /* @__PURE__ */ n(Ft, {})
1597
+ /* @__PURE__ */ n(jt, {})
1598
1598
  ] });
1599
1599
  };
1600
1600
  function xe({ isComponent: e = !1 }) {
@@ -1603,9 +1603,9 @@ function xe({ isComponent: e = !1 }) {
1603
1603
  initialValue: ""
1604
1604
  }), [i] = X({
1605
1605
  key: Q + $e,
1606
- initialValue: Pe.ASC
1606
+ initialValue: Fe.ASC
1607
1607
  }), [l, d] = V(st, {
1608
- id: P(),
1608
+ id: F(),
1609
1609
  model: L,
1610
1610
  engine: L,
1611
1611
  usage: 0,
@@ -1652,19 +1652,19 @@ function xe({ isComponent: e = !1 }) {
1652
1652
  var f;
1653
1653
  (f = document.getElementById("root")) == null || f.classList.replace("app-hidden", "fadeIn");
1654
1654
  }, 500);
1655
- }), /* @__PURE__ */ n(M.Provider, { value: { state: l, dispatch: d, serverStats: g }, children: /* @__PURE__ */ n(
1656
- Fe.Provider,
1655
+ }), /* @__PURE__ */ n(A.Provider, { value: { state: l, dispatch: d, serverStats: g }, children: /* @__PURE__ */ n(
1656
+ je.Provider,
1657
1657
  {
1658
1658
  value: {
1659
1659
  state: c,
1660
1660
  dispatch: m
1661
1661
  },
1662
1662
  children: /* @__PURE__ */ v(
1663
- F.Provider,
1663
+ j.Provider,
1664
1664
  {
1665
1665
  value: { state: u, dispatch: b },
1666
1666
  children: [
1667
- /* @__PURE__ */ n(Ve, { className: "max-h-[calc(100svh_-_163px)]", children: /* @__PURE__ */ n(Pt, {}) }),
1667
+ /* @__PURE__ */ n(Ve, { className: "max-h-[calc(100svh_-_163px)]", children: /* @__PURE__ */ n(Ft, {}) }),
1668
1668
  /* @__PURE__ */ n(mt, {})
1669
1669
  ]
1670
1670
  }