@versini/sassysaint 5.5.10 → 5.5.12

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
1
  import { jsx as Ve, jsxs as P0, Fragment as Sa } from "react/jsx-runtime";
2
- import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as Ns, parse as Sn, parse$1 as Nn, normalize as kn, svg as ks, html as Ts, visitParents as Ms, SKIP as As, longestStreak as Os, factorySpace as xr, markdownLineEnding as $t, Markdown as Rs, remarkGfm as Cs } from "./MessageAssistant.BhHWTODt.js";
3
- import { P as Is, L as Ds, j as Ls } from "./index.ooLgUBkm.js";
2
+ import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as Ns, parse as Sn, parse$1 as Nn, normalize as kn, svg as ks, html as Ts, visitParents as Ms, SKIP as As, longestStreak as Os, factorySpace as xr, markdownLineEnding as $t, Markdown as Rs, remarkGfm as Cs } from "./MessageAssistant.BihILyCE.js";
3
+ import { P as Is, L as Ds, j as Ls } from "./index.B7w6LJPp.js";
4
4
  import Bs, { useState as zs, useEffect as Ps } from "react";
5
5
  import Fs from "clsx";
6
6
  const ka = ({
@@ -1,8 +1,8 @@
1
1
  import { jsxs as Ye, jsx as re, Fragment as Jt } from "react/jsx-runtime";
2
- import { AppContext as pi, E as hi, le as at } from "./App.niFY4VeQ.js";
2
+ import { AppContext as pi, E as hi, le as at } from "./App.CNyYloEL.js";
3
3
  import sn from "clsx";
4
4
  import { lazy as mi, useContext as gi, Suspense as di } from "react";
5
- import { LOCAL_STORAGE_PREFIX as yi, LOCAL_STORAGE_CHAT_DETAILS as ki, durationFormatter as xi } from "./index.ooLgUBkm.js";
5
+ import { LOCAL_STORAGE_PREFIX as yi, LOCAL_STORAGE_CHAT_DETAILS as ki, durationFormatter as xi } from "./index.B7w6LJPp.js";
6
6
  /*!
7
7
  @versini/ui-spinner v2.0.6
8
8
  © 2025 gizmette.com
@@ -8651,7 +8651,7 @@ function Uc(e) {
8651
8651
  const qc = mi(
8652
8652
  () => import(
8653
8653
  /* webpackChunkName: "LazyMarkdownWithExtra" */
8654
- "./MarkdownWithExtra.Cw9h4M2_.js"
8654
+ "./MarkdownWithExtra.CFyPsO_C.js"
8655
8655
  )
8656
8656
  ), Tn = {
8657
8657
  MODEL: "Model",
@@ -1917,7 +1917,7 @@ const Pa = (e) => q(
1917
1917
  children: e
1918
1918
  }
1919
1919
  ) });
1920
- }, qt = (e = jt) => It(e), io = "user", co = "assistant", lo = "system", uo = "internal", ho = "hidden", mo = "I'm having trouble right now. Please try again later.", po = "OpenAI", go = "OpenAI", yo = "Anthropic", fo = 128e3, bo = "action-message", Eo = "action-reset", wo = "action-model", To = "action-restore", Io = "action-streaming", So = "action-engine", _o = "action-search", ko = "action-sort", Ao = "action-toggle-tag", vo = "action-reset-tags", Ro = "action-set-tags", No = "sassy-saint-", xo = "details", Co = "search", Oo = "sort", Po = "engine-toggle", Do = "==stats==", Ma = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", ft = (e) => Number.isFinite(e) ? e : 0;
1920
+ }, qt = (e = jt) => It(e), io = "user", co = "assistant", lo = "system", uo = "internal", ho = "hidden", mo = "I'm having trouble right now. Please try again later.", po = "OpenAI", go = "OpenAI", yo = "Anthropic", fo = "action-message", bo = "action-reset", Eo = "action-model", wo = "action-restore", To = "action-streaming", Io = "action-engine", So = "action-search", _o = "action-sort", ko = "action-toggle-tag", Ao = "action-reset-tags", vo = "action-set-tags", Ro = "sassy-saint-", No = "details", xo = "search", Co = "sort", Oo = "engine-toggle", Po = "==stats==", Ma = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", ft = (e) => Number.isFinite(e) ? e : 0;
1921
1921
  function Ua(e) {
1922
1922
  return {
1923
1923
  days: Math.trunc(e / 864e5),
@@ -1997,7 +1997,7 @@ function Va(e, t) {
1997
1997
  const m = t.colonNotation ? ":" : " ";
1998
1998
  return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(m);
1999
1999
  }
2000
- const Ya = process.env.NODE_ENV === "production", za = !Ya, Fa = za ? "gizmette.local.com" : "gizmette.com", Lo = async () => {
2000
+ const Ya = process.env.NODE_ENV === "production", za = !Ya, Fa = za ? "gizmette.local.com" : "gizmette.com", Do = async () => {
2001
2001
  const e = {
2002
2002
  /**
2003
2003
  * A boolean value that indicates the application would
@@ -2046,40 +2046,22 @@ const Ya = process.env.NODE_ENV === "production", za = !Ya, Fa = za ? "gizmette.
2046
2046
  e
2047
2047
  );
2048
2048
  });
2049
- }, $o = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ C("div", { className: "flex items-center justify-between", children: [
2049
+ }, Lo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ C("div", { className: "flex items-center justify-between", children: [
2050
2050
  /* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
2051
2051
  /* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
2052
- ] }) }, `${e}-${r}`)) : null;
2053
- function Mo({
2054
- data: e,
2055
- formatter: t = (r) => r
2056
- }) {
2057
- const r = e.filter(
2058
- (n) => typeof n == "number" && n > 0
2059
- ), a = r.reduce(
2060
- (n, o) => (n || 0) + (o || 0),
2061
- 0
2062
- );
2063
- return t(a ? a / r.length : 0);
2064
- }
2065
- const Uo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Ko = new Intl.NumberFormat("en", {
2066
- style: "decimal",
2067
- signDisplay: "never",
2068
- minimumFractionDigits: 0,
2069
- maximumFractionDigits: 0
2070
- }), Ho = (e) => e > 0 ? Va(e, {
2052
+ ] }) }, `${e}-${r}`)) : null, $o = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Mo = (e) => e > 0 ? Va(e, {
2071
2053
  secondsDecimalDigits: 2,
2072
2054
  unitCount: 2
2073
2055
  }) : "N/A", ja = ({
2074
2056
  isAuthenticated: e,
2075
2057
  extraClass: t
2076
2058
  }) => g(
2077
- "flex-1 overflow-y-auto bg-slate-900 px-4 pb-10 text-base leading-6 text-slate-300 shadow-sm sm:text-base sm:leading-7 pt-10",
2059
+ "flex-1 overflow-y-auto bg-slate-900 px-4 pb-10 text-base leading-6 text-slate-300 shadow-sm sm:text-base sm:leading-7",
2078
2060
  e ? "pt-0" : "pt-10",
2079
2061
  t
2080
2062
  ), qa = ({
2081
2063
  extraClass: e
2082
- }) => g("px-2 sm:px-0", e), Wo = (e, t) => t === 1 ? e : `${e}s`, Go = (e, t) => {
2064
+ }) => g("px-2 sm:px-0", e), Uo = (e, t) => t === 1 ? e : `${e}s`, Ko = (e, t) => {
2083
2065
  let r;
2084
2066
  return (...a) => {
2085
2067
  window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
@@ -3546,7 +3528,7 @@ try {
3546
3528
  });
3547
3529
  } catch {
3548
3530
  }
3549
- const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Gn = "Log in", Bn = "Sign in with a Passkey", Bo = "Log out", Jn = "Password", Jo = "Send", Vo = "Profile", Yo = "Settings", zo = "Chat history", Fo = "About", jo = "Type your question here", qo = "<clipboard>", Xo = "N/A", Qo = "Tags are pre-filled buttons available on the main screen, to help you quickly start requests. The label is used for the button, and the content is what will be inserted in the chat when the button is pressed. You can use the special placeholder <clipboard> to automatically insert the content of your clipboard.", Zo = {
3531
+ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Gn = "Log in", Bn = "Sign in with a Passkey", Ho = "Log out", Jn = "Password", Wo = "Send", Go = "Profile", Bo = "Settings", Jo = "Chat history", Vo = "About", Yo = "Type your question here", zo = "<clipboard>", Fo = "Tags are pre-filled buttons available on the main screen, to help you quickly start requests. The label is used for the button, and the content is what will be inserted in the chat when the button is pressed. You can use the special placeholder <clipboard> to automatically insert the content of your clipboard.", jo = {
3550
3532
  PREFERENCES: {
3551
3533
  TITLE: "User profile",
3552
3534
  NAME: "Name",
@@ -3701,74 +3683,70 @@ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Gn = "Log in", Bn = "Sign in w
3701
3683
  ) });
3702
3684
  }, zn = new URL(document.location.href).searchParams, Fn = !!zn.get("debug") || !1, jn = sr(() => import(
3703
3685
  /* webpackChunkName: "LazyApp" */
3704
- "./App.niFY4VeQ.js"
3686
+ "./App.CNyYloEL.js"
3705
3687
  ).then((e) => e.App)), qn = ({ isComponent: e }) => {
3706
3688
  const { isAuthenticated: t } = qt();
3707
3689
  return t ? /* @__PURE__ */ l(ir, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(jn, { isComponent: e }) }) : /* @__PURE__ */ l(Yn, {});
3708
3690
  }, Xn = ({
3709
3691
  isComponent: e = !1,
3710
3692
  domain: t = Fa
3711
- }) => /* @__PURE__ */ l(Oe, { children: /* @__PURE__ */ l($a, { clientId: Ma, domain: t, debug: Fn, children: /* @__PURE__ */ l(qn, { isComponent: e }) }) }), es = ({ domain: e }) => /* @__PURE__ */ l(Xn, { isComponent: !0, domain: e });
3693
+ }) => /* @__PURE__ */ l(Oe, { children: /* @__PURE__ */ l($a, { clientId: Ma, domain: t, debug: Fn, children: /* @__PURE__ */ l(qn, { isComponent: e }) }) }), qo = ({ domain: e }) => /* @__PURE__ */ l(Xn, { isComponent: !0, domain: e });
3712
3694
  export {
3713
- Fo as ABOUT_TITLE,
3714
- So as ACTION_ENGINE,
3715
- bo as ACTION_MESSAGE,
3716
- wo as ACTION_MODEL,
3717
- Eo as ACTION_RESET,
3718
- vo as ACTION_RESET_TAGS,
3719
- To as ACTION_RESTORE,
3720
- _o as ACTION_SEARCH,
3721
- Ro as ACTION_SET_TAGS,
3722
- ko as ACTION_SORT,
3723
- Io as ACTION_STREAMING,
3724
- Ao as ACTION_TOGGLE_TAG,
3695
+ Vo as ABOUT_TITLE,
3696
+ Io as ACTION_ENGINE,
3697
+ fo as ACTION_MESSAGE,
3698
+ Eo as ACTION_MODEL,
3699
+ bo as ACTION_RESET,
3700
+ Ao as ACTION_RESET_TAGS,
3701
+ wo as ACTION_RESTORE,
3702
+ So as ACTION_SEARCH,
3703
+ vo as ACTION_SET_TAGS,
3704
+ _o as ACTION_SORT,
3705
+ To as ACTION_STREAMING,
3706
+ ko as ACTION_TOGGLE_TAG,
3725
3707
  Wn as APP_NAME,
3726
3708
  Xt as C,
3727
- Zo as CARDS,
3728
- qo as CLIPBOARD_TAG,
3709
+ jo as CARDS,
3710
+ zo as CLIPBOARD_TAG,
3729
3711
  po as DEFAULT_AI_ENGINE,
3730
3712
  yo as ENGINE_ANTHROPIC,
3731
3713
  go as ENGINE_OPENAI,
3732
3714
  mo as ERROR_MESSAGE,
3733
- fo as GPT4_MAX_TOKENS,
3734
- zo as HISTORY_TITLE,
3715
+ Jo as HISTORY_TITLE,
3735
3716
  Et as L,
3736
- xo as LOCAL_STORAGE_CHAT_DETAILS,
3737
- Po as LOCAL_STORAGE_ENGINE_TOGGLE,
3738
- No as LOCAL_STORAGE_PREFIX,
3739
- Co as LOCAL_STORAGE_SEARCH,
3740
- Oo as LOCAL_STORAGE_SORT,
3741
- Bo as LOG_OUT,
3717
+ No as LOCAL_STORAGE_CHAT_DETAILS,
3718
+ Oo as LOCAL_STORAGE_ENGINE_TOGGLE,
3719
+ Ro as LOCAL_STORAGE_PREFIX,
3720
+ xo as LOCAL_STORAGE_SEARCH,
3721
+ Co as LOCAL_STORAGE_SORT,
3722
+ Ho as LOG_OUT,
3742
3723
  Vn as Logo,
3743
3724
  ue as M,
3744
- Xo as NA,
3745
3725
  Xe as P,
3746
- Vo as PROFILE_TITLE,
3726
+ Go as PROFILE_TITLE,
3747
3727
  hn as R,
3748
3728
  co as ROLE_ASSISTANT,
3749
3729
  ho as ROLE_HIDDEN,
3750
3730
  uo as ROLE_INTERNAL,
3751
3731
  lo as ROLE_SYSTEM,
3752
3732
  io as ROLE_USER,
3753
- Jo as SEND,
3754
- Yo as SETTINGS_TITLE,
3755
- Do as STATS_SEPARATOR,
3756
- es as SassySaint,
3757
- Qo as TAGS_DESCRIPTION,
3758
- jo as TYPE_QUESTION,
3759
- Go as debounce,
3760
- Ho as durationFormatter,
3761
- Mo as extractAverage,
3733
+ Wo as SEND,
3734
+ Bo as SETTINGS_TITLE,
3735
+ Po as STATS_SEPARATOR,
3736
+ qo as SassySaint,
3737
+ Fo as TAGS_DESCRIPTION,
3738
+ Yo as TYPE_QUESTION,
3739
+ Ko as debounce,
3740
+ Mo as durationFormatter,
3762
3741
  Ue as g,
3763
- Lo as getCurrentGeoLocation,
3742
+ Do as getCurrentGeoLocation,
3764
3743
  qa as getMainPaddingClass,
3765
3744
  ja as getMessageContaintWrapperClass,
3766
- Uo as isLastMessageFromRole,
3745
+ $o as isLastMessageFromRole,
3767
3746
  le as j,
3768
- Ko as numberFormatter,
3769
- Wo as pluralize,
3747
+ Uo as pluralize,
3770
3748
  bn as r,
3771
- $o as renderDataAsList,
3749
+ Lo as renderDataAsList,
3772
3750
  qt as un,
3773
3751
  at as ye,
3774
3752
  gn as z
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { SassySaint as a } from "../../chunks/index.ooLgUBkm.js";
2
+ import { SassySaint as a } from "../../chunks/index.B7w6LJPp.js";
3
3
  export {
4
4
  a as SassySaint
5
5
  };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { SassySaint as r } from "./chunks/index.ooLgUBkm.js";
1
+ import { SassySaint as r } from "./chunks/index.B7w6LJPp.js";
2
2
  /*!
3
- @sassysaint/client v5.18.1
3
+ @sassysaint/client v5.18.3
4
4
  © 2025 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
8
- version: "5.18.1",
9
- buildTime: "01/02/2025 06:07 PM EST",
8
+ version: "5.18.3",
9
+ buildTime: "01/02/2025 08:11 PM EST",
10
10
  license: "MIT"
11
11
  });
12
12
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/sassysaint",
3
- "version": "5.5.10",
3
+ "version": "5.5.12",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -30,7 +30,7 @@
30
30
  "react-dom": "^18.3.1 || ^19.0.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@sassysaint/client": "5.18.1",
33
+ "@sassysaint/client": "5.18.3",
34
34
  "@versini/ui-styles": "2.1.1"
35
35
  },
36
36
  "dependencies": {
@@ -41,5 +41,5 @@
41
41
  "sideEffects": [
42
42
  "**/*.css"
43
43
  ],
44
- "gitHead": "f425b7ce8f18346018434b54faec9d9f1f9ed06f"
44
+ "gitHead": "c4e5fddb8bcabba42c42c89307958d51291d06d6"
45
45
  }