@versini/sassysaint 8.18.2 → 8.19.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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as nn, Fragment as Op } from "react/jsx-runtime";
2
- import { getDefaultExportFromCjs as pn } from "./App.DRE11dLv.js";
2
+ import { getDefaultExportFromCjs as pn } from "./App.i_tZWP9Y.js";
3
3
  import Lp, { useState as Ep, useEffect as Ip } from "react";
4
- import { TRIMESTERS as ln, TRIMESTERS_SHORT as Dp, isProbablyMobile as Bp } from "./index.C7yV6Q_I.js";
4
+ import { TRIMESTERS as ln, TRIMESTERS_SHORT as Dp, isProbablyMobile as Bp } from "./index.ClNdn3VB.js";
5
5
  var ds = { exports: {} }, Np = ds.exports, hn;
6
6
  function zp() {
7
7
  return hn || (hn = 1, function(we, he) {
@@ -1,13 +1,13 @@
1
1
  import { jsx as E } from "react/jsx-runtime";
2
- import { ChatContext as O, E as _, ze as N, Me as S } from "./App.DRE11dLv.js";
3
- import R from "clsx";
4
- import w, { useState as g, useRef as x, useEffect as b, useContext as F } from "react";
5
- import { LOCAL_STORAGE_PREFIX as G, LOCAL_STORAGE_CHAT_DETAILS as k, convertCamelCaseToReadable as I, numberFormatter as P, pluralize as U, ROLE_INTERNAL as v } from "./index.C7yV6Q_I.js";
6
- import { useMarkdown as y } from "./useMarkdown.Cw4335gj.js";
2
+ import { ChatContext as b, E as _, Me as N, Oe as S } from "./App.i_tZWP9Y.js";
3
+ import O from "clsx";
4
+ import w, { useState as g, useRef as x, useEffect as R, useContext as F } from "react";
5
+ import { LOCAL_STORAGE_PREFIX as G, LOCAL_STORAGE_CHAT_DETAILS as k, convertCamelCaseToReadable as I, numberFormatter as P, pluralize as U, ROLE_INTERNAL as v } from "./index.ClNdn3VB.js";
6
+ import { useMarkdown as y } from "./useMarkdown.BVMyuFRA.js";
7
7
  const D = 2, j = D * 1e3, h = "", q = (e) => e * (2 - e);
8
8
  function V(e, t = !0) {
9
9
  const [i, d] = g(0), [c, C] = g(0), [r, p] = g(e), s = x(0), o = x(0);
10
- return r !== e && (p(e), C(e.startsWith(r) ? i : 0)), b(() => {
10
+ return r !== e && (p(e), C(e.startsWith(r) ? i : 0)), R(() => {
11
11
  if (!t)
12
12
  return;
13
13
  const A = e.split(h).length, u = (n) => {
@@ -24,7 +24,7 @@ const f = {
24
24
  MODEL: "Model",
25
25
  PLUGIN: "Plugin",
26
26
  USAGE: "Session usage"
27
- }, M = R("max-w-[99cqw] mt-3"), L = R("max-w-xs", "sm:max-w-3xl", "prose-li:ps-3"), X = w.memo(
27
+ }, M = O("max-w-[99cqw] mt-3"), L = O("max-w-xs", "sm:max-w-3xl", "prose-li:ps-3"), X = w.memo(
28
28
  ({
29
29
  content: e,
30
30
  annotations: t,
@@ -35,7 +35,7 @@ const f = {
35
35
  }) => {
36
36
  const r = V(e, c), {
37
37
  state: { streaming: p, restoredModel: s, usage: o, restoredUsage: A }
38
- } = F(O), u = (t == null ? void 0 : t.model) || s, n = A || o, [m, l] = y(), [T] = _({
38
+ } = F(b), u = (t == null ? void 0 : t.model) || s, n = A || o, [m, l] = y(), [T] = _({
39
39
  key: G + k,
40
40
  initialValue: !1
41
41
  });
@@ -43,7 +43,7 @@ const f = {
43
43
  return T && (a = {
44
44
  [f.MODEL]: u || null,
45
45
  [f.PLUGIN]: i ? I(i) : null
46
- }, n && (C ? a[f.USAGE] = `${P.format(n)} ${U("token", n)}` : a[f.USAGE] = N)), b(() => {
46
+ }, n && (C ? a[f.USAGE] = `${P.format(n)} ${U("token", n)}` : a[f.USAGE] = N)), R(() => {
47
47
  r && l(r);
48
48
  }, [r, l]), d === v ? /* @__PURE__ */ E(
49
49
  S,
@@ -1,5 +1,5 @@
1
- import { parse as _t, parse$1 as er, visitParents as Za, SKIP as Ja } from "./useMarkdown.Cw4335gj.js";
2
- import { toText as Qa } from "./index.B9jygvvM.js";
1
+ import { parse as _t, parse$1 as er, visitParents as Za, SKIP as Ja } from "./useMarkdown.BVMyuFRA.js";
2
+ import { toText as Qa } from "./index.DI1CVEcb.js";
3
3
  class ye {
4
4
  /**
5
5
  * @constructor
@@ -1,6 +1,6 @@
1
- import { getDefaultExportFromCjs as kn } from "./App.DRE11dLv.js";
2
- import { visit as In } from "./useMarkdown.Cw4335gj.js";
3
- import { toText as Cn } from "./index.B9jygvvM.js";
1
+ import { getDefaultExportFromCjs as kn } from "./App.i_tZWP9Y.js";
2
+ import { visit as In } from "./useMarkdown.BVMyuFRA.js";
3
+ import { toText as Cn } from "./index.DI1CVEcb.js";
4
4
  function xn(e) {
5
5
  const t = e.regex, i = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), a = "decltype\\(auto\\)", r = "[a-zA-Z_]\\w*::", d = "(?!struct)(" + a + "|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", c = {
6
6
  className: "type",